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 # aggregate syntax: 
query I rowsort label-4976
SELECT DISTINCT + 5 * - + 80 + 23 + 51 * + COUNT( * ) AS col0
----
-326

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT + 5 * - + 80 + 23 + 51 * + COUNT ( * ) AS col0
----
-326

query I rowsort
SELECT ALL - - ( 10 ) * + - 31 * + 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4978
SELECT 37 + + - ( + - 15 ) + 85 + ( - 35 ) + COUNT( + CAST( + - 5 AS SIGNED ) ) * + 92
----
194

skipif mysql # not compatible
query I rowsort label-4978
SELECT 37 + + - ( + - 15 ) + 85 + ( - 35 ) + COUNT ( + CAST ( + - 5 AS INTEGER ) ) * + 92
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL + 3 * COALESCE ( + 36, - ( - 34 ) * + 14 + - 2 + - 18 + + 34, + - COUNT( * ) + - - COUNT( * ) ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL + 3 * COALESCE ( + 36, - ( - 34 ) * + 14 + - 2 + - 18 + + 34, + - COUNT ( * ) + - - COUNT ( * ) ) AS col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4980
SELECT ALL + 75 * - + 85 * CAST( - 34 AS SIGNED ) + - 2 * - - 14 * - COUNT( * )
----
216778

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL + 75 * - + 85 * CAST ( - 34 AS INTEGER ) + - 2 * - - 14 * - COUNT ( * )
----
216778

query I rowsort
SELECT + 94 * 73 AS col1
----
6862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4982
SELECT 73 * + + SUM( ALL + 83 ) + 27 DIV + 79 AS col0
----
6059

skipif mysql # not compatible
query I rowsort label-4982
SELECT 73 * + + SUM ( ALL + 83 ) + 27 / + 79 AS col0
----
6059

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT ALL + + 64 * - 23 * - CASE - - 12 WHEN 70 THEN NULL ELSE - - 49 - 12 + 97 DIV + - 6 END + NULLIF ( - 66, + - 39 ) AS col2
----
30846

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL + + 64 * - 23 * - CASE - - 12 WHEN 70 THEN NULL ELSE - - 49 - 12 + 97 / + - 6 END + NULLIF ( - 66, + - 39 ) AS col2
----
30846

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL COUNT( DISTINCT - + 36 ) * 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL COUNT ( DISTINCT - + 36 ) * 28 AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT + 21 DIV + - 52 - + + 54 * + 37 AS col0
----
-1998

skipif mysql # not compatible
query I rowsort label-4986
SELECT + 21 / + - 52 - + + 54 * + 37 AS col0
----
-1998

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4987
SELECT + 40 * COALESCE ( + CASE + 65 WHEN - CAST( 89 AS DECIMAL ) THEN NULL ELSE + 31 * - + 91 - - + 25 * 37 * - 1 * - - COUNT( * ) * - 58 END, - 8 ) - + 23 AS col2
----
2033137

skipif mysql # not compatible
query I rowsort label-4987
SELECT + 40 * COALESCE ( + CASE + 65 WHEN - CAST ( 89 AS REAL ) THEN NULL ELSE + 31 * - + 91 - - + 25 * 37 * - 1 * - - COUNT ( * ) * - 58 END, - 8 ) - + 23 AS col2
----
2033137

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

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT + COUNT ( ALL + 68 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL - MAX( DISTINCT 98 ) * + 33 + - + 99
----
-3333

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL - MAX ( DISTINCT 98 ) * + 33 + - + 99
----
-3333

onlyif mysql # DIV for integer division: 
query I rowsort label-4990
SELECT ALL - 27 * - 22 + - 99 + 34 DIV 14 DIV - 63 * 83 AS col1
----
495

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL - 27 * - 22 + - 99 + 34 / 14 / - 63 * 83 AS col1
----
495

query I rowsort
SELECT + 92 * 46
----
4232

query I rowsort
SELECT + 4 * - 61
----
-244

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT + MIN( DISTINCT + - 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4993
SELECT + MIN ( DISTINCT + - 39 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL 97 * SUM( - - 69 ) + 87 AS col2
----
6780

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL 97 * SUM ( - - 69 ) + 87 AS col2
----
6780

query II rowsort
SELECT ALL + 85 AS col0, - 29 AS col0
----
85
-29

query I rowsort
SELECT ALL 45 * + 25 * 30 AS col1
----
33750

query II rowsort
SELECT ALL + 30 AS col2, 85
----
30
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT DISTINCT 79 * + NULLIF ( - 5, + MIN( ALL - + ( ( + 76 ) ) ) ) AS col2
----
-395

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT 79 * + NULLIF ( - 5, + MIN ( ALL - + ( ( + 76 ) ) ) ) AS col2
----
-395

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

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

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

skipif mysql # not compatible
query I rowsort label-5000
SELECT + 9 + + COUNT ( * ) AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT - 26 DIV + + 67 * 19 * - - 80 * - 11
----
0

skipif mysql # not compatible
query I rowsort label-5001
SELECT - 26 / + + 67 * 19 * - - 80 * - 11
----
0

query II rowsort
SELECT ALL + 20, - 28 col2
----
20
-28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT - CASE + SUM( DISTINCT - ( + + 48 ) ) WHEN - ( + - 69 ) THEN NULL WHEN + - 24 THEN + 71 - + 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT - CASE + SUM ( DISTINCT - ( + + 48 ) ) WHEN - ( + - 69 ) THEN NULL WHEN + - 24 THEN + 71 - + 96 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT - 78 + - 90 - + 74 * 6 * + COUNT( * )
----
-612

skipif mysql # not compatible
query I rowsort label-5006
SELECT - 78 + - 90 - + 74 * 6 * + COUNT ( * )
----
-612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5007
SELECT + CAST( + - COUNT( * ) AS SIGNED ) + + - 26 * - 4 AS col1, + COUNT( * ) AS col0
----
103
1

skipif mysql # not compatible
query II rowsort label-5007
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) + + - 26 * - 4 AS col1, + COUNT ( * ) AS col0
----
103
1

query II rowsort
SELECT ALL 96, + ( + - 80 ) * 38 + - 90 AS col1
----
96
-3130

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT - 19 + - - COUNT( - 68 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-5009
SELECT - 19 + - - COUNT ( - 68 ) AS col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5010
SELECT ALL 25 * - - ( - 63 ) * - + ( COUNT( * ) ) DIV - - COUNT( * )
----
1575

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL 25 * - - ( - 63 ) * - + ( COUNT ( * ) ) / - - COUNT ( * )
----
1575

query I rowsort
SELECT ALL ( + ( NULLIF ( + + 57, 47 * + 49 ) ) ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT + + 2 + + + 32 * + + 61 * COUNT( * ) - + - NULLIF ( + 54, + 39 )
----
2008

skipif mysql # not compatible
query I rowsort label-5012
SELECT + + 2 + + + 32 * + + 61 * COUNT ( * ) - + - NULLIF ( + 54, + 39 )
----
2008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT - - 38 + 26 + - 76 * - - CAST( - - 10 AS SIGNED ) * + 98
----
-74416

skipif mysql # not compatible
query I rowsort label-5013
SELECT - - 38 + 26 + - 76 * - - CAST ( - - 10 AS INTEGER ) * + 98
----
-74416

query I rowsort
SELECT - - 27 * ( - - 27 ) * 34 AS col2
----
24786

query I rowsort
SELECT DISTINCT - 16 + - 4 AS col1
----
-20

query I rowsort
SELECT DISTINCT - - 83 * + 61 AS col1
----
5063

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5018
SELECT ALL - NULLIF ( - - 56, 16 * + + COUNT( ALL + 77 ) + - - 12 + + 39 * - COALESCE ( + - MIN( 58 ), + 0 ) ) + - 54 * 63 AS col2, CAST( - 19 AS SIGNED ) + - COALESCE ( + 53, + 64 )
----
-3458
-72

skipif mysql # not compatible
query II rowsort label-5018
SELECT ALL - NULLIF ( - - 56, 16 * + + COUNT ( ALL + 77 ) + - - 12 + + 39 * - COALESCE ( + - MIN ( 58 ), + 0 ) ) + - 54 * 63 AS col2, CAST ( - 19 AS INTEGER ) + - COALESCE ( + 53, + 64 )
----
-3458
-72

query I rowsort
SELECT DISTINCT 40 * + - 69 AS col0
----
-2760

onlyif mysql # DIV for integer division: 
query I rowsort label-5020
SELECT - + 0 DIV 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5020
SELECT - + 0 / 95 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5021
SELECT - - 92 DIV - COUNT( * ) - 20 + + 6 DIV + + 57 * 4 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-5021
SELECT - - 92 / - COUNT ( * ) - 20 + + 6 / + + 57 * 4 AS col0
----
-112

query II rowsort
SELECT ALL + 41 AS col2, 63
----
41
63

query II rowsort
SELECT - - NULLIF ( + 68, + 91 ) * + 2, + 45 AS col1
----
136
45

query I rowsort
SELECT + + 61 * - 66
----
-4026

query I rowsort
SELECT ALL + + ( + - COALESCE ( - 79, - CASE 88 WHEN + 74 THEN 91 ELSE NULL END, + + 3 ) )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT 70 DIV 60 + + - 64 + - 75
----
-138

skipif mysql # not compatible
query I rowsort label-5026
SELECT 70 / 60 + + - 64 + - 75
----
-138

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

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

query I rowsort
SELECT ALL + CASE NULLIF ( + - 28, + ( - - 68 ) * + 87 ) WHEN 44 THEN + ( - - 93 ) * + 61 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 11 * - 9 AS col2
----
99

query I rowsort
SELECT + COALESCE ( + ( + 65 ), - 70, + - 72 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5031
SELECT DISTINCT + ( + COUNT( * ) ) AS col0, + MIN( - 23 )
----
1
-23

skipif mysql # not compatible
query II rowsort label-5031
SELECT DISTINCT + ( + COUNT ( * ) ) AS col0, + MIN ( - 23 )
----
1
-23

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

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

skipif mysql # not compatible
query I rowsort label-5033
SELECT + 85 * COUNT ( * ) * - 10 AS col2
----
-850

query I rowsort
SELECT + 14 * 98 col0
----
1372

query I rowsort
SELECT ALL 61 * + 36
----
2196

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT CASE 34 WHEN + - SUM( DISTINCT + 2 ) * - 84 * - AVG ( + 50 ) * - - 29 + - 34 + + 40 * - - 2 - - 27 - + 91 THEN NULL WHEN - 19 THEN NULL WHEN 88 THEN + + COALESCE ( - 32, - - 61 + 17, - + 2 ) * + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5036
SELECT CASE 34 WHEN + - SUM ( DISTINCT + 2 ) * - 84 * - AVG ( + 50 ) * - - 29 + - 34 + + 40 * - - 2 - - 27 - + 91 THEN NULL WHEN - 19 THEN NULL WHEN 88 THEN + + COALESCE ( - 32, - - 61 + 17, - + 2 ) * + 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT DISTINCT COUNT( ALL + 48 ) * COALESCE ( + + 30, 33, 44 * - 20, - 62 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT COUNT ( ALL + 48 ) * COALESCE ( + + 30, 33, 44 * - 20, - 62 ) AS col2
----
30

query I rowsort
SELECT + 13 * 6 + + 17 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT + - 72 + - + 37 * 59 - + - 41 - - - COUNT( * ) * - 12
----
-2202

skipif mysql # not compatible
query I rowsort label-5039
SELECT + - 72 + - + 37 * 59 - + - 41 - - - COUNT ( * ) * - 12
----
-2202

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5040
SELECT DISTINCT + NULLIF ( 81, SUM( ALL + - 16 ) + - - 59 * - COUNT( * ) ) + - ( + SUM( - 65 ) ) + + 90 AS col1, - 2 DIV - - 95 * + COUNT( * ) col2
----
236
0

skipif mysql # not compatible
query II rowsort label-5040
SELECT DISTINCT + NULLIF ( 81, SUM ( ALL + - 16 ) + - - 59 * - COUNT ( * ) ) + - ( + SUM ( - 65 ) ) + + 90 AS col1, - 2 / - - 95 * + COUNT ( * ) col2
----
236
0

query I rowsort
SELECT ALL 70 + + - 55 + - - CASE 10 WHEN 60 * + 9 THEN - ( - 17 ) WHEN 49 THEN NULL END / - - 7 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + + 94 + + ( + ( - - 55 ) )
----
149

query I rowsort
SELECT DISTINCT 27 + + 84
----
111

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT COUNT( ALL - 66 ) + - + 45
----
-44

skipif mysql # not compatible
query I rowsort label-5047
SELECT COUNT ( ALL - 66 ) + - + 45
----
-44

query I rowsort
SELECT ALL + 51 + + 7
----
58

query I rowsort
SELECT + 33 + - 89 AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5050
SELECT ALL - - CASE - 7 WHEN 94 THEN - 96 WHEN + - CASE - 92 WHEN + - 50 / 51 THEN + + 52 WHEN + COALESCE ( - + 0, - 19 ) + + 40 THEN + - CAST( NULL AS SIGNED ) ELSE + 35 END * - 78 / - 93 * + 62 + + COUNT( * ) THEN 63 * 30 * + 14 / 61 + - 36 END * 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL - - CASE - 7 WHEN 94 THEN - 96 WHEN + - CASE - 92 WHEN + - 50 / 51 THEN + + 52 WHEN + COALESCE ( - + 0, - 19 ) + + 40 THEN + - CAST ( NULL AS INTEGER ) ELSE + 35 END * - 78 / - 93 * + 62 + + COUNT ( * ) THEN 63 * 30 * + 14 / 61 + - 36 END * 26 AS col2
----
NULL

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

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

query I rowsort
SELECT 46 * - + 73 AS col0
----
-3358

onlyif mysql # DIV for integer division: 
query I rowsort label-5053
SELECT ALL 39 * + 27 * 8 - - 63 - - - 98 * 82 * + 96 + - + 72 DIV 58
----
-762970

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL 39 * + 27 * 8 - - 63 - - - 98 * 82 * + 96 + - + 72 / 58
----
-762970

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

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

query I rowsort
SELECT ALL - ( - 29 ) - - 48 AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5056
SELECT ALL + 34 * - COALESCE ( - + CAST( - 80 AS SIGNED ), + - 16 ) AS col0
----
-2720

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL + 34 * - COALESCE ( - + CAST ( - 80 AS INTEGER ), + - 16 ) AS col0
----
-2720

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT DISTINCT - 7 - - COUNT( * ) + + 62
----
56

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT - 7 - - COUNT ( * ) + + 62
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5058
SELECT DISTINCT + 53 DIV - 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT + 53 / - 70 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5059
SELECT 62 DIV 68 + - 61 - 69 * + - ( + + COUNT( * ) ) col1
----
8

skipif mysql # not compatible
query I rowsort label-5059
SELECT 62 / 68 + - 61 - 69 * + - ( + + COUNT ( * ) ) col1
----
8

query I rowsort
SELECT 26 * + 26 - - 7 * + 1 col0
----
683

query I rowsort
SELECT ALL + 35 * ( - 70 ) AS col0
----
-2450

query II rowsort
SELECT + 71 AS col0, ( + 55 )
----
71
55

query I rowsort
SELECT ALL - COALESCE ( + 78, + 38 + - - 87 * - + 85 * 70 ) col1
----
-78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL - 63 * - - SUM( ALL 36 )
----
-2268

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL - 63 * - - SUM ( ALL 36 )
----
-2268

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5066
SELECT NULLIF ( - 79, - 33 * 5 * - 54 + + + ( - CAST( 23 AS SIGNED ) ) * + 74 ) + 20, + ( - 30 ) AS col0
----
-59
-30

skipif mysql # not compatible
query II rowsort label-5066
SELECT NULLIF ( - 79, - 33 * 5 * - 54 + + + ( - CAST ( 23 AS INTEGER ) ) * + 74 ) + 20, + ( - 30 ) AS col0
----
-59
-30

query II rowsort
SELECT + 48 AS col0, + 98
----
48
98

query I rowsort
SELECT ALL 78 + + 8 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT - NULLIF ( - + MIN( + + ( - + 17 ) ), - 89 ) * + COALESCE ( - 44, 63 ) - COUNT( * )
----
747

skipif mysql # not compatible
query I rowsort label-5069
SELECT - NULLIF ( - + MIN ( + + ( - + 17 ) ), - 89 ) * + COALESCE ( - 44, 63 ) - COUNT ( * )
----
747

query I rowsort
SELECT 32 + - + 54 AS col2
----
-22

query I rowsort
SELECT ALL ( + 74 ) + - 85
----
-11

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5073
SELECT ALL - CASE + CASE - COUNT( * ) WHEN - + 3 THEN + 34 WHEN 10 * - MIN( 15 ) THEN + + 46 - 59 * + 36 + - COUNT( - - 75 ) WHEN + ( - CAST( NULL AS SIGNED ) ) * SUM( ALL - 19 ) THEN NULL ELSE NULL END WHEN - + 67 * - + COUNT( * ) * ( + - ( + 71 ) ) THEN + 41 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL - CASE + CASE - COUNT ( * ) WHEN - + 3 THEN + 34 WHEN 10 * - MIN ( 15 ) THEN + + 46 - 59 * + 36 + - COUNT ( - - 75 ) WHEN + ( - CAST ( NULL AS INTEGER ) ) * SUM ( ALL - 19 ) THEN NULL ELSE NULL END WHEN - + 67 * - + COUNT ( * ) * ( + - ( + 71 ) ) THEN + 41 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT DISTINCT COUNT( * ) + - + 99
----
-98

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT COUNT ( * ) + - + 99
----
-98

query I rowsort
SELECT ALL - 55 * + 49 AS col0
----
-2695

query I rowsort
SELECT ALL + 80 + - - 51 AS col1
----
131

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT DISTINCT + 72 - ( MIN( - 79 ) ) col1
----
151

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT + 72 - ( MIN ( - 79 ) ) col1
----
151

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5082
SELECT - 14 + - - ( 84 ) + + 34 * 42 * - 31 * - CAST( NULL AS SIGNED ) / + ( - COUNT( * ) ) * + + 82 * - - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT - 14 + - - ( 84 ) + + 34 * 42 * - 31 * - CAST ( NULL AS INTEGER ) / + ( - COUNT ( * ) ) * + + 82 * - - 20
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT ALL + MAX( - 31 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL + MAX ( - 31 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ( + 94 ) * + MIN( DISTINCT 46 ) * 46 - 41 * - COUNT( * )
----
198945

skipif mysql # not compatible
query I rowsort label-5085
SELECT ( + 94 ) * + MIN ( DISTINCT 46 ) * 46 - 41 * - COUNT ( * )
----
198945

query I rowsort
SELECT ALL - 48 * + - 98
----
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT - NULLIF ( - 19, 87 * - - 51 + + + COUNT( ALL - ( + 52 ) ) / - + 85 * - 89 )
----
19

skipif mysql # not compatible
query I rowsort label-5087
SELECT - NULLIF ( - 19, 87 * - - 51 + + + COUNT ( ALL - ( + 52 ) ) / - + 85 * - 89 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT - SUM( ALL - + 26 ) + - 18 * + 65
----
-1144

skipif mysql # not compatible
query I rowsort label-5088
SELECT - SUM ( ALL - + 26 ) + - 18 * + 65
----
-1144

query I rowsort
SELECT ALL 15 * - + 36 * - 17
----
9180

query I rowsort
SELECT 84 + - 16
----
68

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5092
SELECT ALL - 23 AS col2, 16 + + + ( NULLIF ( + 21, + CAST( NULL AS DECIMAL ) ) )
----
-23
37

skipif mysql # not compatible
query II rowsort label-5092
SELECT ALL - 23 AS col2, 16 + + + ( NULLIF ( + 21, + CAST ( NULL AS REAL ) ) )
----
-23
37

query I rowsort
SELECT DISTINCT + 48 * - 36
----
-1728

query I rowsort
SELECT ( + + 16 ) * ( + 46 )
----
736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5095
SELECT + SUM( DISTINCT - NULLIF ( - - 32, + CAST( NULL AS SIGNED ) ) ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-5095
SELECT + SUM ( DISTINCT - NULLIF ( - - 32, + CAST ( NULL AS INTEGER ) ) ) col2
----
-32

query I rowsort
SELECT DISTINCT 97 * + - 77
----
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT DISTINCT - NULLIF ( 39, + SUM( DISTINCT 57 ) * - 42 )
----
-39

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT - NULLIF ( 39, + SUM ( DISTINCT 57 ) * - 42 )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-5098
SELECT + 77 AS col1, - ( - - 7 ) * - + COUNT( * ) - - 94 AS col2
----
77
101

skipif mysql # not compatible
query II rowsort label-5098
SELECT + 77 AS col1, - ( - - 7 ) * - + COUNT ( * ) - - 94 AS col2
----
77
101

query I rowsort
SELECT DISTINCT + NULLIF ( 73, + AVG ( ALL - + 4 ) - - 63 ) * - - 1 + - 43 - + + 39 AS col2
----
-9

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

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

query II rowsort
SELECT + 38, + 43 * + 54 AS col2
----
38
2322

query I rowsort
SELECT ALL + 4 + 58 AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-5103
SELECT COUNT( * ) * 2, - 2 AS col1
----
2
-2

skipif mysql # not compatible
query II rowsort label-5103
SELECT COUNT ( * ) * 2, - 2 AS col1
----
2
-2

query I rowsort
SELECT 93 * - 28
----
-2604

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5106
SELECT + 49 AS col2, 69 + 17 DIV - - 94 AS col2
----
49
69

skipif mysql # not compatible
query II rowsort label-5106
SELECT + 49 AS col2, 69 + 17 / - - 94 AS col2
----
49
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5107
SELECT 2 DIV - 18 * + ( - 10 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5107
SELECT 2 / - 18 * + ( - 10 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5108
SELECT + 66 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-5108
SELECT + 66 / - 82
----
0

query II rowsort
SELECT DISTINCT - + 60 + - + 17 AS col0, + ( - 97 )
----
-77
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5110
SELECT ALL + - 61 AS col2, + SUM( + 53 ) + + + CAST( NULL AS SIGNED ) * + 6 AS col2
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-5110
SELECT ALL + - 61 AS col2, + SUM ( + 53 ) + + + CAST ( NULL AS INTEGER ) * + 6 AS col2
----
-61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL - 95 + + SUM( ALL + 33 ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL - 95 + + SUM ( ALL + 33 ) col2
----
-62

query II rowsort
SELECT + 45 AS col0, 83 AS col0
----
45
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL - - 10 + - + 56 + - + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL - - 10 + - + 56 + - + COUNT ( * )
----
-47

query I rowsort
SELECT DISTINCT + - 48 * - 37
----
1776

query I rowsort
SELECT - 49 * - 96 AS col2
----
4704

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

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL 88 + COUNT ( * ) + - - 70 AS col1
----
159

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

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

query I rowsort
SELECT ALL NULLIF ( + 2, + - 77 * 23 ) AS col2
----
2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5120
SELECT ALL - NULLIF ( + - 15, - + 13 * 87 ) DIV - - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL - NULLIF ( + - 15, - + 13 * 87 ) / - - COUNT ( * )
----
15

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

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

query I rowsort
SELECT DISTINCT 73 * - 23 + - 73 AS col2
----
-1752

query I rowsort
SELECT DISTINCT - 41 - - 58 + + - 13 AS col2
----
4

query I rowsort
SELECT ALL 91 * - 54
----
-4914

onlyif mysql # aggregate syntax: 
query II rowsort label-5125
SELECT DISTINCT ( + 60 ) AS col0, - 89 * + - COALESCE ( - 33, COUNT( * ) )
----
60
-2937

skipif mysql # not compatible
query II rowsort label-5125
SELECT DISTINCT ( + 60 ) AS col0, - 89 * + - COALESCE ( - 33, COUNT ( * ) )
----
60
-2937

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT DISTINCT + 50 * - COUNT( * ) + - ( - 61 ) + 48 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT + 50 * - COUNT ( * ) + - ( - 61 ) + 48 AS col2
----
59

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT - MIN( - 81 ) + 70 + + 12
----
163

skipif mysql # not compatible
query I rowsort label-5129
SELECT - MIN ( - 81 ) + 70 + + 12
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5130
SELECT + 74 DIV + 49 * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5130
SELECT + 74 / + 49 * COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + 80 * - ( + + 5 )
----
-400

query I rowsort
SELECT + CASE - 1 WHEN + 36 THEN NULL ELSE + 41 END * - NULLIF ( - 28, + - ( - 7 ) )
----
1148

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT ALL 5 DIV + - 58 * + 77 + - 11
----
-11

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL 5 / + - 58 * + 77 + - 11
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5134
SELECT + ( 76 ) DIV + 72 - MAX( + 24 )
----
-23

skipif mysql # not compatible
query I rowsort label-5134
SELECT + ( 76 ) / + 72 - MAX ( + 24 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5135
SELECT ( - 17 ) col0, - 11 * 89 + + - COUNT( * ) * - + MIN( + CAST( - 34 AS SIGNED ) ) * + 76
----
-17
-3563

skipif mysql # not compatible
query II rowsort label-5135
SELECT ( - 17 ) col0, - 11 * 89 + + - COUNT ( * ) * - + MIN ( + CAST ( - 34 AS INTEGER ) ) * + 76
----
-17
-3563

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT ALL - 32 * + COUNT( * ) * - SUM( ALL 1 ) + ( - 7 )
----
25

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL - 32 * + COUNT ( * ) * - SUM ( ALL 1 ) + ( - 7 )
----
25

query I rowsort
SELECT DISTINCT ( + 90 ) * + + 86 + - 69 AS col1
----
7671

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT + ( SUM( DISTINCT - + ( 15 ) ) ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-5139
SELECT + ( SUM ( DISTINCT - + ( 15 ) ) ) AS col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5140
SELECT ALL 48 * + COUNT( * ) * - 98 + 39 DIV + ( - - COUNT( ALL - 37 ) ), - 43 AS col1
----
-4665
-43

skipif mysql # not compatible
query II rowsort label-5140
SELECT ALL 48 * + COUNT ( * ) * - 98 + 39 / + ( - - COUNT ( ALL - 37 ) ), - 43 AS col1
----
-4665
-43

query I rowsort
SELECT 0 * + 68 - + 88 * + 70
----
-6160

query I rowsort
SELECT - 90 * + 56 AS col0
----
-5040

query I rowsort
SELECT NULLIF ( + - 80, 87 ) AS col2
----
-80

query I rowsort
SELECT CASE + + 80 WHEN 83 THEN + + 19 WHEN 25 THEN - 38 END AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( - - 7, + + 10 ) * - 45 + 63
----
-252

query I rowsort
SELECT ALL - 40 * - 58 + + 15
----
2335

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT 37 * - 84 + + COUNT( * ) AS col0
----
-3107

skipif mysql # not compatible
query I rowsort label-5147
SELECT 37 * - 84 + + COUNT ( * ) AS col0
----
-3107

query I rowsort
SELECT - 19 + - 60
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT ALL - - COUNT( * ) * + 14 + - ( ( - + COUNT( * ) ) ) + - + 65 * - - 98 + + ( - COALESCE ( 77, 78, - 27 + - 94 ) ) + COUNT( * ) + - + 63 - + 35 * + 65 + 52 col1
----
-8717

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL - - COUNT ( * ) * + 14 + - ( ( - + COUNT ( * ) ) ) + - + 65 * - - 98 + + ( - COALESCE ( 77, 78, - 27 + - 94 ) ) + COUNT ( * ) + - + 63 - + 35 * + 65 + 52 col1
----
-8717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5150
SELECT + + ( 12 ) * + COUNT( DISTINCT + CAST( + 57 AS SIGNED ) ) * + - 71 + 76 + + 3 + CASE + 82 WHEN + 15 THEN NULL WHEN 80 + 39 + + 92 THEN - MIN( - + 39 ) ELSE - COUNT( * ) END + - + 38 * - 33 * + NULLIF ( - 80, - COUNT( * ) ) AS col2, + 31 * ( 74 ) + - 63 + - 38 * - 28 * CASE + COUNT( * ) WHEN + COUNT( * ) * + NULLIF ( + 36, + 66 * + + ( - 67 ) + - 16 ) THEN NULL WHEN 27 THEN NULL WHEN + MIN( ALL - 26 ) * + CAST( NULL AS DECIMAL ) THEN + COUNT( * ) * - COUNT( * ) END / 69 - 53
----
-101094
NULL

skipif mysql # not compatible
query II rowsort label-5150
SELECT + + ( 12 ) * + COUNT ( DISTINCT + CAST ( + 57 AS INTEGER ) ) * + - 71 + 76 + + 3 + CASE + 82 WHEN + 15 THEN NULL WHEN 80 + 39 + + 92 THEN - MIN ( - + 39 ) ELSE - COUNT ( * ) END + - + 38 * - 33 * + NULLIF ( - 80, - COUNT ( * ) ) AS col2, + 31 * ( 74 ) + - 63 + - 38 * - 28 * CASE + COUNT ( * ) WHEN + COUNT ( * ) * + NULLIF ( + 36, + 66 * + + ( - 67 ) + - 16 ) THEN NULL WHEN 27 THEN NULL WHEN + MIN ( ALL - 26 ) * + CAST ( NULL AS REAL ) THEN + COUNT ( * ) * - COUNT ( * ) END / 69 - 53
----
-101094
NULL

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

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

query II rowsort
SELECT + - 58 * + - 95 AS col1, - 93 AS col0
----
5510
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - - SUM( 65 ) + ( - COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-5153
SELECT - - SUM ( 65 ) + ( - COUNT ( * ) )
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-5154
SELECT + ( 8 ) AS col2, - 89 DIV - 19
----
8
4

skipif mysql # not compatible
query II rowsort label-5154
SELECT + ( 8 ) AS col2, - 89 / - 19
----
8
4

query II rowsort
SELECT - 78 * + ( - + 71 ) AS col1, + ( - 39 )
----
5538
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5156
SELECT - COUNT( * ) * + - COALESCE ( + MAX( + 87 ), 29, - 64 ) DIV - - 87 + COUNT( * ) + + 84 * + - ( + - 24 ) AS col2
----
2018

skipif mysql # not compatible
query I rowsort label-5156
SELECT - COUNT ( * ) * + - COALESCE ( + MAX ( + 87 ), 29, - 64 ) / - - 87 + COUNT ( * ) + + 84 * + - ( + - 24 ) AS col2
----
2018

query I rowsort
SELECT DISTINCT + COALESCE ( - 50, + - 32 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5158
SELECT - + COALESCE ( COUNT( * ), - 50 * 58 ) * + 54 * 72 + NULLIF ( + 45, CAST( - 24 AS SIGNED ) ) AS col2
----
-3843

skipif mysql # not compatible
query I rowsort label-5158
SELECT - + COALESCE ( COUNT ( * ), - 50 * 58 ) * + 54 * 72 + NULLIF ( + 45, CAST ( - 24 AS INTEGER ) ) AS col2
----
-3843

onlyif mysql # aggregate syntax: 
query II rowsort label-5159
SELECT ALL NULLIF ( 97, + + COUNT( * ) * - 22 + 30 ) col0, + 29 AS col0
----
97
29

skipif mysql # not compatible
query II rowsort label-5159
SELECT ALL NULLIF ( 97, + + COUNT ( * ) * - 22 + 30 ) col0, + 29 AS col0
----
97
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5160
SELECT - - NULLIF ( + ( - COUNT( * ) ), + - CAST( - CAST( 49 AS SIGNED ) AS SIGNED ) * + CAST( + + 53 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5160
SELECT - - NULLIF ( + ( - COUNT ( * ) ), + - CAST ( - CAST ( 49 AS INTEGER ) AS INTEGER ) * + CAST ( + + 53 AS INTEGER ) ) AS col1
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5162
SELECT - - 65 + + - 53 - - 88 DIV 93
----
12

skipif mysql # not compatible
query I rowsort label-5162
SELECT - - 65 + + - 53 - - 88 / 93
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT + 94 + + + 32 * + COUNT( DISTINCT - 72 ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-5163
SELECT + 94 + + + 32 * + COUNT ( DISTINCT - 72 ) AS col0
----
126

query I rowsort
SELECT DISTINCT - 21 * + + 2
----
-42

query I rowsort
SELECT ALL 62 + 83
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-5166
SELECT - 68 + 31 + + ( - 42 ) + + 19 + + 20, COUNT( * ) AS col2
----
-40
1

skipif mysql # not compatible
query II rowsort label-5166
SELECT - 68 + 31 + + ( - 42 ) + + 19 + + 20, COUNT ( * ) AS col2
----
-40
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5167
SELECT DISTINCT - 31 + + CAST( NULL AS SIGNED ) * + 25 + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT - 31 + + CAST ( NULL AS INTEGER ) * + 25 + + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT + ( - + 89 ) + + 61 - + - ( + - 4 ) * + 40 * - 79 * + MAX( + - 86 ) - + 96 AS col1
----
-1087164

skipif mysql # not compatible
query I rowsort label-5168
SELECT + ( - + 89 ) + + 61 - + - ( + - 4 ) * + 40 * - 79 * + MAX ( + - 86 ) - + 96 AS col1
----
-1087164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT ALL - 4 + 9 * + + COALESCE ( 83, 62 * - - 70 ) * - 30 + - - CAST( NULL AS SIGNED ) * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL - 4 + 9 * + + COALESCE ( 83, 62 * - - 70 ) * - 30 + - - CAST ( NULL AS INTEGER ) * - 10
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5171
SELECT DISTINCT + COUNT( * ) DIV + + 56 + + 19
----
19

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT + COUNT ( * ) / + + 56 + + 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT 4 * NULLIF ( - + COUNT( * ), + ( - - 56 ) ) + + COUNT( * ) + + 21 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5172
SELECT 4 * NULLIF ( - + COUNT ( * ), + ( - - 56 ) ) + + COUNT ( * ) + + 21 AS col0
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-5173
SELECT ALL + 95 DIV - 73 + 18 AS col0, 83 AS col1
----
17
83

skipif mysql # not compatible
query II rowsort label-5173
SELECT ALL + 95 / - 73 + 18 AS col0, 83 AS col1
----
17
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5174
SELECT ALL - 67 AS col0, COUNT( * ) * - + 47 - + 94 col2
----
-67
-141

skipif mysql # not compatible
query II rowsort label-5174
SELECT ALL - 67 AS col0, COUNT ( * ) * - + 47 - + 94 col2
----
-67
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT DISTINCT 13 DIV + + 64
----
0

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT 13 / + + 64
----
0

query I rowsort
SELECT DISTINCT - 87 + + 87 + 7 + + 92 * - - 19 * + + 0
----
7

query I rowsort
SELECT 12 * - 76 AS col0
----
-912

query I rowsort
SELECT ALL 42 * + 16
----
672

onlyif mysql # aggregate syntax: 
query II rowsort label-5179
SELECT + COALESCE ( - + 12, - CASE 60 WHEN + 6 THEN 59 END + - COALESCE ( + + 59, - + 88 + SUM( DISTINCT + 7 ) * - - 90 ) * + ( + 57 ) ) col0, 36 * 14 * + 70 AS col2
----
-12
35280

skipif mysql # not compatible
query II rowsort label-5179
SELECT + COALESCE ( - + 12, - CASE 60 WHEN + 6 THEN 59 END + - COALESCE ( + + 59, - + 88 + SUM ( DISTINCT + 7 ) * - - 90 ) * + ( + 57 ) ) col0, 36 * 14 * + 70 AS col2
----
-12
35280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5180
SELECT 51 - COUNT( * ) * CASE - - COUNT( * ) WHEN - 39 - - 79 THEN NULL ELSE 64 END DIV - 26 + 92 + + + 81
----
226

skipif mysql # not compatible
query I rowsort label-5180
SELECT 51 - COUNT ( * ) * CASE - - COUNT ( * ) WHEN - 39 - - 79 THEN NULL ELSE 64 END / - 26 + 92 + + + 81
----
226

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

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

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

query I rowsort
SELECT ALL 10 * - + 71
----
-710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5184
SELECT ALL 23 - CAST( 83 AS SIGNED ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL 23 - CAST ( 83 AS INTEGER ) AS col0
----
-60

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5186
SELECT 20 DIV + ( + 49 ) * 5 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5186
SELECT 20 / + ( + 49 ) * 5 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5187
SELECT DISTINCT + CAST( - 25 AS SIGNED ) * 59 AS col0, + 79 AS col0
----
-1475
79

skipif mysql # not compatible
query II rowsort label-5187
SELECT DISTINCT + CAST ( - 25 AS INTEGER ) * 59 AS col0, + 79 AS col0
----
-1475
79

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

query I rowsort
SELECT + 42 * - + 9 AS col1
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL COUNT( 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL COUNT ( 31 ) AS col0
----
1

query I rowsort
SELECT ( + + 2 ) + + 22
----
24

query II rowsort
SELECT 17, - 95 * 89 AS col2
----
17
-8455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT + NULLIF ( + - CAST( - 5 AS SIGNED ), - + 78 * 11 )
----
5

skipif mysql # not compatible
query I rowsort label-5193
SELECT + NULLIF ( + - CAST ( - 5 AS INTEGER ), - + 78 * 11 )
----
5

query I rowsort
SELECT ALL - + 63 * + 21
----
-1323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5195
SELECT - CAST( + CAST( - + CAST( - 57 AS SIGNED ) AS SIGNED ) AS SIGNED ) - + + 60 AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-5195
SELECT - CAST ( + CAST ( - + CAST ( - 57 AS INTEGER ) AS INTEGER ) AS INTEGER ) - + + 60 AS col0
----
-117

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT ALL + SUM( ALL 28 ) + 64
----
92

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL + SUM ( ALL 28 ) + 64
----
92

query I rowsort
SELECT ALL - 17 + + 47 + + 11
----
41

query I rowsort
SELECT DISTINCT + 90 + + 39
----
129

query I rowsort
SELECT DISTINCT - 27 * ( + 81 ) AS col1
----
-2187

query I rowsort
SELECT ( - 66 ) - 69 * 17 * - 48 AS col1
----
56238

query I rowsort
SELECT 83 + - 40 + - + 34 col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT 32 + 71 + + + COUNT( * ) AS col2
----
104

skipif mysql # not compatible
query I rowsort label-5203
SELECT 32 + 71 + + + COUNT ( * ) AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT 9 - - + NULLIF ( + SUM( - + 73 ), COUNT( * ) * + - 39 * - - 87 ) + + + 47 - ( 1 ) * - + 76 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-5204
SELECT 9 - - + NULLIF ( + SUM ( - + 73 ), COUNT ( * ) * + - 39 * - - 87 ) + + + 47 - ( 1 ) * - + 76 AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5205
SELECT - SUM( + 75 ) / - 60 - - + 66 + 72 + + CAST( NULL AS SIGNED ) / COUNT( DISTINCT 8 ) * - 27 * - + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT - SUM ( + 75 ) / - 60 - - + 66 + 72 + + CAST ( NULL AS INTEGER ) / COUNT ( DISTINCT 8 ) * - 27 * - + 63
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5206
SELECT ALL + COUNT( * ) - 33 + - 15 * - 10 AS col0, - 7 AS col1
----
118
-7

skipif mysql # not compatible
query II rowsort label-5206
SELECT ALL + COUNT ( * ) - 33 + - 15 * - 10 AS col0, - 7 AS col1
----
118
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-5207
SELECT ALL - 82 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL - 82 / + 90 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT DISTINCT - CAST( - - 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT - CAST ( - - 97 AS INTEGER )
----
-97

query I rowsort
SELECT ALL NULLIF ( + 43, 33 / 27 + + 55 ) - - + 65
----
108

query II rowsort
SELECT 12 * - 80, 13 col0
----
-960
13

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

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

query I rowsort
SELECT + 99 * + 50 - - 94 - + 35 * + - 77
----
7739

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT 43 * - + COUNT( * ) - 86
----
-129

skipif mysql # not compatible
query I rowsort label-5213
SELECT 43 * - + COUNT ( * ) - 86
----
-129

query I rowsort
SELECT 1 * + + 91 AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5215
SELECT - + 81 * 86 + + 34 + - + 63 AS col0, 79 + + COUNT( * ) AS col1
----
-6995
80

skipif mysql # not compatible
query II rowsort label-5215
SELECT - + 81 * 86 + + 34 + - + 63 AS col0, 79 + + COUNT ( * ) AS col1
----
-6995
80

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

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

skipif mysql # not compatible
query I rowsort label-5217
SELECT 75 * CAST ( NULL AS INTEGER ) + - 40
----
NULL

query I rowsort
SELECT ALL - - ( + - 10 ) col2
----
-10

query I rowsort
SELECT DISTINCT - COALESCE ( + 10, ( 94 ) + - + 64, - 0 ) * + 84
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT + 31 + - ( + + COUNT( * ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5220
SELECT + 31 + - ( + + COUNT ( * ) ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT DISTINCT + 87 * + COUNT( * ) * 81 + 9
----
7056

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT + 87 * + COUNT ( * ) * 81 + 9
----
7056

query I rowsort
SELECT DISTINCT 28 + + + 9 * - CASE - 14 WHEN + + 7 THEN NULL WHEN + 64 THEN 9 END + - - 15 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5223
SELECT - 98 * + - ( - + MAX( DISTINCT 28 ) ) AS col1, ( - 92 ) * - ( + 77 ) AS col0
----
-2744
7084

skipif mysql # not compatible
query II rowsort label-5223
SELECT - 98 * + - ( - + MAX ( DISTINCT 28 ) ) AS col1, ( - 92 ) * - ( + 77 ) AS col0
----
-2744
7084

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5224
SELECT DISTINCT - 38 + + CASE - 69 WHEN - CASE - COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE - - 4 * + + 91 DIV + + 23 * - + 94 - - 19 END THEN 98 END, - 12 DIV + 56 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5224
SELECT DISTINCT - 38 + + CASE - 69 WHEN - CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE - - 4 * + + 91 / + + 23 * - + 94 - - 19 END THEN 98 END, - 12 / + 56 AS col1
----
NULL
0

query I rowsort
SELECT ALL - 79 + - + 5
----
-84

query I rowsort
SELECT DISTINCT 50 + 9 col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT - NULLIF ( - - 33, COUNT( 45 ) ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5227
SELECT - NULLIF ( - - 33, COUNT ( 45 ) ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-5228
SELECT - COUNT( * ) col1, - NULLIF ( - 18, + COALESCE ( + 30, + 63 ) ) AS col1
----
-1
18

skipif mysql # not compatible
query II rowsort label-5228
SELECT - COUNT ( * ) col1, - NULLIF ( - 18, + COALESCE ( + 30, + 63 ) ) AS col1
----
-1
18

query I rowsort
SELECT + 61 * + 28 AS col0
----
1708

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ALL + COALESCE ( + COALESCE ( - - 54, + 73, + COUNT( ( 91 ) ) + + - 40 ), NULLIF ( 14, - 70 ) ) * 4 * - 96 * 17 * + SUM( ALL COALESCE ( - + 2, ( CASE + 40 WHEN - 3 THEN - 55 * - 24 WHEN CASE - + 91 WHEN + 11 * - COALESCE ( + 2, + 81, + 84 ) * + 17 + - 54 THEN 9 END * 79 + - - 32 + - COALESCE ( + NULLIF ( - 56, + 81 + - 8 * - 2 ), 24 ) THEN NULL ELSE + 25 + 22 END ) + 67 * ( - 89 ) ) ) * 59 AS col1
----
41596416

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL + COALESCE ( + COALESCE ( - - 54, + 73, + COUNT ( ( 91 ) ) + + - 40 ), NULLIF ( 14, - 70 ) ) * 4 * - 96 * 17 * + SUM ( ALL COALESCE ( - + 2, ( CASE + 40 WHEN - 3 THEN - 55 * - 24 WHEN CASE - + 91 WHEN + 11 * - COALESCE ( + 2, + 81, + 84 ) * + 17 + - 54 THEN 9 END * 79 + - - 32 + - COALESCE ( + NULLIF ( - 56, + 81 + - 8 * - 2 ), 24 ) THEN NULL ELSE + 25 + 22 END ) + 67 * ( - 89 ) ) ) * 59 AS col1
----
41596416

query I rowsort
SELECT ALL - 87 - + ( 45 ) + 67 * 12
----
672

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5233
SELECT - 14 DIV + - 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5233
SELECT - 14 / + - 50 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT - 31 + + - MAX( - + 13 )
----
-18

skipif mysql # not compatible
query I rowsort label-5234
SELECT - 31 + + - MAX ( - + 13 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5235
SELECT ALL 87 AS col0, - 96 * CAST( NULL AS SIGNED ) + + 82 + SUM( ( - - 96 ) )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-5235
SELECT ALL 87 AS col0, - 96 * CAST ( NULL AS INTEGER ) + + 82 + SUM ( ( - - 96 ) )
----
87
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5236
SELECT - CASE + + 8 WHEN - - 76 + - 76 THEN NULL WHEN + + CAST( NULL AS DECIMAL ) * - 56 + + 89 + + - 6 THEN CASE + ( - + 72 ) WHEN + + SUM( DISTINCT 75 ) + + 51 + 91 - + 17 * 19 - 45 * - 22 * + - 25 THEN NULL WHEN + - 73 THEN + ( 21 ) ELSE - COUNT( * ) END * + COUNT( * ) - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT - CASE + + 8 WHEN - - 76 + - 76 THEN NULL WHEN + + CAST ( NULL AS REAL ) * - 56 + + 89 + + - 6 THEN CASE + ( - + 72 ) WHEN + + SUM ( DISTINCT 75 ) + + 51 + 91 - + 17 * 19 - 45 * - 22 * + - 25 THEN NULL WHEN + - 73 THEN + ( 21 ) ELSE - COUNT ( * ) END * + COUNT ( * ) - - COUNT ( * ) END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5238
SELECT - NULLIF ( + 24, 53 ) + - COALESCE ( + 40, + 7 DIV 55 DIV + + 0 ) + + 43 + + 96
----
75

skipif mysql # not compatible
query I rowsort label-5238
SELECT - NULLIF ( + 24, 53 ) + - COALESCE ( + 40, + 7 / 55 / + + 0 ) + + 43 + + 96
----
75

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5241
SELECT + - 80 col0, + ( + COUNT( ALL CAST( NULL AS SIGNED ) ) ) AS col0
----
-80
0

skipif mysql # not compatible
query II rowsort label-5241
SELECT + - 80 col0, + ( + COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) AS col0
----
-80
0

query I rowsort
SELECT + 72 * 39 * + + 44 + + + 16 AS col2
----
123568

query I rowsort
SELECT DISTINCT + 27 * 63 + 35 + + + 67
----
1803

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5246
SELECT - CAST( NULL AS SIGNED ) * ( AVG ( - 5 ) ) * + 51 * + COUNT( * ) / + ( 52 ) / - + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT - CAST ( NULL AS INTEGER ) * ( AVG ( - 5 ) ) * + 51 * + COUNT ( * ) / + ( 52 ) / - + 9 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5247
SELECT - CAST( AVG ( 73 ) AS SIGNED ) - + COUNT( * ) + + + 0 * - COUNT( * ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-5247
SELECT - CAST ( AVG ( 73 ) AS INTEGER ) - + COUNT ( * ) + + + 0 * - COUNT ( * ) AS col1
----
-74

query I rowsort
SELECT ALL + ( 71 ) * + - 83
----
-5893

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5250
SELECT - 82 DIV - + 4
----
20

skipif mysql # not compatible
query I rowsort label-5250
SELECT - 82 / - + 4
----
20

query I rowsort
SELECT + - 89 * - 33 AS col0
----
2937

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL 8 * - 32 + SUM( + 16 ) + + 96 AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL 8 * - 32 + SUM ( + 16 ) + + 96 AS col2
----
-144

query I rowsort
SELECT + - 28 - + 40 + - - 12
----
-56

query II rowsort
SELECT ALL + 85 AS col2, - 30 AS col1
----
85
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5255
SELECT DISTINCT + 61 * + 7 * - + 48 + - - 84 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT + 61 * + 7 * - + 48 + - - 84 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL - 25 * - ( - 38 ) + + + COUNT( * ) AS col2
----
-949

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL - 25 * - ( - 38 ) + + + COUNT ( * ) AS col2
----
-949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5257
SELECT - NULLIF ( - COALESCE ( + 63, - 43 * 36 + + 13 ), COALESCE ( - - 30, CASE + CASE - 50 WHEN - COUNT( * ) THEN + 14 WHEN 78 THEN 92 * COALESCE ( - 43, COUNT( * ) ) * + 98 + + AVG ( DISTINCT + + 33 ) + - + 66 / 79 - + SUM( + - 23 ) * + - 26 - - 77 + COUNT( * ) + - + COUNT( * ) + - COALESCE ( + + 3, COUNT( * ) / + + 62 + 86 - - 65, 17 / 35 + + + 95 ) + + - ( + 10 ) - + + 80 + + 98 * + 62 ELSE NULL END WHEN + 95 THEN + ( + 93 ) WHEN 6 THEN NULL WHEN + CAST( NULL AS SIGNED ) * - 58 + CASE WHEN NOT 12 + NULLIF ( + 58, + 56 ) IS NULL THEN NULLIF ( - MAX( DISTINCT + 41 ), + 77 * 29 ) ELSE NULL END * 94 THEN NULL END ) )
----
63

skipif mysql # not compatible
query I rowsort label-5257
SELECT - NULLIF ( - COALESCE ( + 63, - 43 * 36 + + 13 ), COALESCE ( - - 30, CASE + CASE - 50 WHEN - COUNT ( * ) THEN + 14 WHEN 78 THEN 92 * COALESCE ( - 43, COUNT ( * ) ) * + 98 + + AVG ( DISTINCT + + 33 ) + - + 66 / 79 - + SUM ( + - 23 ) * + - 26 - - 77 + COUNT ( * ) + - + COUNT ( * ) + - COALESCE ( + + 3, COUNT ( * ) / + + 62 + 86 - - 65, 17 / 35 + + + 95 ) + + - ( + 10 ) - + + 80 + + 98 * + 62 ELSE NULL END WHEN + 95 THEN + ( + 93 ) WHEN 6 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * - 58 + CASE WHEN NOT 12 + NULLIF ( + 58, + 56 ) IS NULL THEN NULLIF ( - MAX ( DISTINCT + 41 ), + 77 * 29 ) ELSE NULL END * 94 THEN NULL END ) )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5258
SELECT - 92 + + ( NULLIF ( 62, + - 8 * 46 * + 32 + + 99 + + - CAST( NULL AS SIGNED ) + 99 + - 0 * 50 ) ) + 67 col1
----
37

skipif mysql # not compatible
query I rowsort label-5258
SELECT - 92 + + ( NULLIF ( 62, + - 8 * 46 * + 32 + + 99 + + - CAST ( NULL AS INTEGER ) + 99 + - 0 * 50 ) ) + 67 col1
----
37

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

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

query I rowsort
SELECT + 74 * + 25 * - 83
----
-153550

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT ALL COUNT( ALL - 36 ) * + 9
----
9

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL COUNT ( ALL - 36 ) * + 9
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5262
SELECT DISTINCT SUM( - - ( 43 ) ) - 69 DIV + 82 + + 62 - + COUNT( * ) AS col2
----
104

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT SUM ( - - ( 43 ) ) - 69 / + 82 + + 62 - + COUNT ( * ) AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL COALESCE ( 12, + COUNT( * ), + 41 ) - ( - 0 ) - - 38 + 12
----
62

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL COALESCE ( 12, + COUNT ( * ), + 41 ) - ( - 0 ) - - 38 + 12
----
62

query I rowsort
SELECT + 38 * 44
----
1672

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT DISTINCT COUNT( ALL - - 43 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT COUNT ( ALL - - 43 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT + 95 + + MAX( + + ( + 92 ) ) AS col0
----
187

skipif mysql # not compatible
query I rowsort label-5268
SELECT + 95 + + MAX ( + + ( + 92 ) ) AS col0
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT + 59 - + COUNT( - 18 )
----
58

skipif mysql # not compatible
query I rowsort label-5269
SELECT + 59 - + COUNT ( - 18 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT ALL 33 * 57 + + + COUNT( - 82 ) * + SUM( DISTINCT + ( 10 ) )
----
1891

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL 33 * 57 + + + COUNT ( - 82 ) * + SUM ( DISTINCT + ( 10 ) )
----
1891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5271
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + 39 + ( SUM( ALL + + 30 ) ) / + 37, + MAX( - - CAST( NULL AS SIGNED ) ) * - 73 - 92 + - 78
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5271
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 39 + ( SUM ( ALL + + 30 ) ) / + 37, + MAX ( - - CAST ( NULL AS INTEGER ) ) * - 73 - 92 + - 78
----
NULL
NULL

query I rowsort
SELECT - 86 + + - 98 - + 55 col0
----
-239

query I rowsort
SELECT DISTINCT + - 60 col2
----
-60

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5275
SELECT - 66 AS col1, 35 * + 13 + COUNT( + - 52 ) col0
----
-66
456

skipif mysql # not compatible
query II rowsort label-5275
SELECT - 66 AS col1, 35 * + 13 + COUNT ( + - 52 ) col0
----
-66
456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5276
SELECT DISTINCT 19 DIV - 46 * + 61 + - 56 + - - COUNT( * ) * - + MAX( ALL + 39 ) * + + MIN( ALL + 84 ) * - + COUNT( * ) * + 41 + + 35
----
134295

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT 19 / - 46 * + 61 + - 56 + - - COUNT ( * ) * - + MAX ( ALL + 39 ) * + + MIN ( ALL + 84 ) * - + COUNT ( * ) * + 41 + + 35
----
134295

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT ALL 56 DIV + 71 * + - 26 + 0 * - 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL 56 / + 71 * + - 26 + 0 * - 27 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5278
SELECT + COALESCE ( 46, + CAST( + - 36 AS SIGNED ) + + ( + 80 ) * + 48, - + 47 * + 51, + 38, - 78 ), 10 AS col0
----
46
10

skipif mysql # not compatible
query II rowsort label-5278
SELECT + COALESCE ( 46, + CAST ( + - 36 AS INTEGER ) + + ( + 80 ) * + 48, - + 47 * + 51, + 38, - 78 ), 10 AS col0
----
46
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT + MIN( + 67 ) * - - 46 * - + 41 * + COUNT( * ) * - - COALESCE ( - 86, - 15 * + 66 + - 91 * - + 19 ) + + MIN( ALL - 32 ) AS col0
----
10867100

skipif mysql # not compatible
query I rowsort label-5279
SELECT + MIN ( + 67 ) * - - 46 * - + 41 * + COUNT ( * ) * - - COALESCE ( - 86, - 15 * + 66 + - 91 * - + 19 ) + + MIN ( ALL - 32 ) AS col0
----
10867100

onlyif mysql # DIV for integer division: 
query I rowsort label-5280
SELECT DISTINCT + 14 DIV + 45 + + 98 DIV + 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT + 14 / + 45 + + 98 / + 61 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5281
SELECT - 16 + 30 DIV + COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5281
SELECT - 16 + 30 / + COUNT ( * ) AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT ALL + ( - 55 ) * 31 * + CAST( 62 AS SIGNED ) * + 72 + + 78 + + CAST( 82 AS SIGNED ) * 65 AS col2
----
-7605712

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL + ( - 55 ) * 31 * + CAST ( 62 AS INTEGER ) * + 72 + + 78 + + CAST ( 82 AS INTEGER ) * 65 AS col2
----
-7605712

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT 86 * + COUNT( * ) + + 89 + 30 AS col1
----
205

skipif mysql # not compatible
query I rowsort label-5284
SELECT 86 * + COUNT ( * ) + + 89 + 30 AS col1
----
205

query II rowsort
SELECT 93 * - 64 AS col0, 79 AS col2
----
-5952
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5286
SELECT ALL 32 DIV + 33 * + 9
----
0

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL 32 / + 33 * + 9
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5287
SELECT 12 DIV COALESCE ( + ( 27 ), + COUNT( * ), - 10 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5287
SELECT 12 / COALESCE ( + ( 27 ), + COUNT ( * ), - 10 ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-5288
SELECT 19 + COUNT ( * ) * COUNT ( * ) * - + 80 * 66 AS col2
----
-5261

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT COUNT( * ) + + - 37 + 55 * - ( - 90 ) * - 49 + - - 6 + + + ( - 38 ) + - 56 AS col2
----
-242674

skipif mysql # not compatible
query I rowsort label-5289
SELECT COUNT ( * ) + + - 37 + 55 * - ( - 90 ) * - 49 + - - 6 + + + ( - 38 ) + - 56 AS col2
----
-242674

query I rowsort
SELECT 9 + + 67
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-5291
SELECT COUNT( * ) + - 52 AS col0, - 54 col1
----
-51
-54

skipif mysql # not compatible
query II rowsort label-5291
SELECT COUNT ( * ) + - 52 AS col0, - 54 col1
----
-51
-54

query I rowsort
SELECT ( 95 ) + + 5
----
100

query I rowsort
SELECT ALL 42 * - 78 col0
----
-3276

query I rowsort
SELECT NULLIF ( - - 39, - 50 ) * + - 31 AS col0
----
-1209

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL + MAX( + 14 ) + + - 68
----
-54

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL + MAX ( + 14 ) + + - 68
----
-54

query I rowsort
SELECT ( - 15 ) + 11 col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5297
SELECT ALL 36 + + + 84 + + 33 DIV + ( - + COUNT( * ) ) + - 91
----
-4

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL 36 + + + 84 + + 33 / + ( - + COUNT ( * ) ) + - 91
----
-4

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

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL 1 + + + CAST ( NULL AS INTEGER ) + 65
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5299
SELECT ALL + 77 + 20 DIV 1 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + 77 + 20 / 1 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT - 93 + NULLIF ( + + 52, - - 75 + + + 9 + + 33 + + COUNT( * ) * - 68 ) + 97
----
56

skipif mysql # not compatible
query I rowsort label-5300
SELECT - 93 + NULLIF ( + + 52, - - 75 + + + 9 + + 33 + + COUNT ( * ) * - 68 ) + 97
----
56

onlyif mysql # aggregate syntax: 
query III rowsort label-5301
SELECT ALL + 33 + - + 86 AS col1, COUNT( * ) col1, 93 * CASE + 98 WHEN + NULLIF ( - ( - + 20 ), + - 83 ) * + 79 THEN + + 80 + + + 18 + + - 86 WHEN + - 65 * + 63 + COUNT( * ) * - + 34 THEN 89 * - COUNT( * ) + - + 12 END + - 61
----
-53
1
NULL

skipif mysql # not compatible
query III rowsort label-5301
SELECT ALL + 33 + - + 86 AS col1, COUNT ( * ) col1, 93 * CASE + 98 WHEN + NULLIF ( - ( - + 20 ), + - 83 ) * + 79 THEN + + 80 + + + 18 + + - 86 WHEN + - 65 * + 63 + COUNT ( * ) * - + 34 THEN 89 * - COUNT ( * ) + - + 12 END + - 61
----
-53
1
NULL

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

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

query I rowsort
SELECT 10 + 5
----
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL MIN( + CASE 50 WHEN + 23 THEN NULL WHEN - + 50 THEN - 45 * + 22 END ) + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL MIN ( + CASE 50 WHEN + 23 THEN NULL WHEN - + 50 THEN - 45 * + 22 END ) + 35 AS col1
----
NULL

query II rowsort
SELECT ALL + 83 * - 38 AS col2, + 89 AS col0
----
-3154
89

onlyif mysql # DIV for integer division: 
query II rowsort label-5307
SELECT ALL 34 DIV - 70 AS col2, 41 * - ( - + 9 ) * - 30
----
0
-11070

skipif mysql # not compatible
query II rowsort label-5307
SELECT ALL 34 / - 70 AS col2, 41 * - ( - + 9 ) * - 30
----
0
-11070

onlyif mysql # aggregate syntax: 
query II rowsort label-5308
SELECT DISTINCT - COUNT( * ) + - + 70 * - 47, COUNT( * ) AS col1
----
3289
1

skipif mysql # not compatible
query II rowsort label-5308
SELECT DISTINCT - COUNT ( * ) + - + 70 * - 47, COUNT ( * ) AS col1
----
3289
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5309
SELECT DISTINCT 74 * MAX( DISTINCT 5 ) * + COUNT( * ) + + 1 DIV - 87 * - 56, COUNT( * ) * + COUNT( * ) * - - 30 - - + 61 AS col0
----
370
91

skipif mysql # not compatible
query II rowsort label-5309
SELECT DISTINCT 74 * MAX ( DISTINCT 5 ) * + COUNT ( * ) + + 1 / - 87 * - 56, COUNT ( * ) * + COUNT ( * ) * - - 30 - - + 61 AS col0
----
370
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT + 53 - - - ( COUNT( - - 11 ) ) + + 19 * - - 34 + COUNT( * ) - ( - - 29 )
----
670

skipif mysql # not compatible
query I rowsort label-5310
SELECT + 53 - - - ( COUNT ( - - 11 ) ) + + 19 * - - 34 + COUNT ( * ) - ( - - 29 )
----
670

query I rowsort
SELECT 58 * 73
----
4234

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5312
SELECT DISTINCT - COUNT( CAST( + CAST( - - 60 AS DECIMAL ) AS DECIMAL ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT - COUNT ( CAST ( + CAST ( - - 60 AS REAL ) AS REAL ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT 3 * - + MIN( - 74 ) * - 87 AS col0
----
-19314

skipif mysql # not compatible
query I rowsort label-5313
SELECT 3 * - + MIN ( - 74 ) * - 87 AS col0
----
-19314

query II rowsort
SELECT ALL - 38 AS col0, - 31
----
-38
-31

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

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 49
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5316
SELECT ALL - CASE 29 WHEN 84 + - 74 THEN + 51 * + AVG ( - 8 ) WHEN - 28 * + - CAST( NULL AS SIGNED ) THEN - - 48 + + - MAX( 10 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL - CASE 29 WHEN 84 + - 74 THEN + 51 * + AVG ( - 8 ) WHEN - 28 * + - CAST ( NULL AS INTEGER ) THEN - - 48 + + - MAX ( 10 ) END
----
NULL

query I rowsort
SELECT ALL - 28 * - 91 AS col1
----
2548

query I rowsort
SELECT 22 - + ( - - 60 ) AS col1
----
-38

query II rowsort
SELECT ALL - 57, + 93 * - 6 * 38 AS col1
----
-57
-21204

onlyif mysql # aggregate syntax: 
query II rowsort label-5320
SELECT 28 * MIN( ALL + 70 ), COALESCE ( + COUNT( * ), + - 88 ) * - 80 * - COUNT( * ) AS col2
----
1960
80

skipif mysql # not compatible
query II rowsort label-5320
SELECT 28 * MIN ( ALL + 70 ), COALESCE ( + COUNT ( * ), + - 88 ) * - 80 * - COUNT ( * ) AS col2
----
1960
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT - 55 * + MIN( - 9 ) * 21 + + 58 - + ( - COUNT( * ) )
----
10454

skipif mysql # not compatible
query I rowsort label-5321
SELECT - 55 * + MIN ( - 9 ) * 21 + + 58 - + ( - COUNT ( * ) )
----
10454

query II rowsort
SELECT ALL 73 AS col0, 79
----
73
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5323
SELECT 12 + + ( - + 94 ) + + - 85 DIV 77
----
-83

skipif mysql # not compatible
query I rowsort label-5323
SELECT 12 + + ( - + 94 ) + + - 85 / 77
----
-83

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

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

query II rowsort
SELECT 18 * + - 97 * + 28, + 98 AS col1
----
-48888
98

query I rowsort
SELECT 21 + + 39 + - + 62 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT SUM( ALL + + 71 ) - - 3 - - COUNT( ALL - 12 ) * - 53 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-5327
SELECT SUM ( ALL + + 71 ) - - 3 - - COUNT ( ALL - 12 ) * - 53 AS col2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5328
SELECT ALL COUNT( * ), 78 * + NULLIF ( + 24, 35 + - COUNT( * ) - + - CASE - 89 WHEN - MIN( DISTINCT + 18 ) THEN - 49 * NULLIF ( + 0, 18 ) - + 78 + + 51 * - 94 ELSE NULL END ) + 28 - + - COUNT( * ) * SUM( DISTINCT 47 ) DIV COUNT( * ) col2
----
1
1947

skipif mysql # not compatible
query II rowsort label-5328
SELECT ALL COUNT ( * ), 78 * + NULLIF ( + 24, 35 + - COUNT ( * ) - + - CASE - 89 WHEN - MIN ( DISTINCT + 18 ) THEN - 49 * NULLIF ( + 0, 18 ) - + 78 + + 51 * - 94 ELSE NULL END ) + 28 - + - COUNT ( * ) * SUM ( DISTINCT 47 ) / COUNT ( * ) col2
----
1
1947

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

query I rowsort
SELECT DISTINCT 95 + + + 84 AS col1
----
179

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5332
SELECT ALL COUNT( * ) AS col1, 20 + - 56 - - + 51 + + + 50 + + + 30 - + 77
----
1
18

skipif mysql # not compatible
query II rowsort label-5332
SELECT ALL COUNT ( * ) AS col1, 20 + - 56 - - + 51 + + + 50 + + + 30 - + 77
----
1
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5333
SELECT 63 DIV + 73 * + 17 AS col1, - 98 * + - 97 * 80 + COUNT( + + ( - 85 ) ) AS col2
----
0
760481

skipif mysql # not compatible
query II rowsort label-5333
SELECT 63 / + 73 * + 17 AS col1, - 98 * + - 97 * 80 + COUNT ( + + ( - 85 ) ) AS col2
----
0
760481

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5334
SELECT ALL - - 77 + - 86 + - COUNT( * ) AS col2, CAST( 76 AS SIGNED )
----
-10
76

skipif mysql # not compatible
query II rowsort label-5334
SELECT ALL - - 77 + - 86 + - COUNT ( * ) AS col2, CAST ( 76 AS INTEGER )
----
-10
76

query II rowsort
SELECT - + 78 AS col1, CASE + 99 WHEN 75 THEN + + 30 END + - 83 / - 48 * - 7 + COALESCE ( + 83, + 37, - 79 )
----
-78
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5336
SELECT COUNT( * ) * - 7 + - COUNT( * ) + - 92 * - 73 * - COUNT( - - 36 ) + + - 20 DIV + COUNT( * ) AS col1
----
-6744

skipif mysql # not compatible
query I rowsort label-5336
SELECT COUNT ( * ) * - 7 + - COUNT ( * ) + - 92 * - 73 * - COUNT ( - - 36 ) + + - 20 / + COUNT ( * ) AS col1
----
-6744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5337
SELECT 12 * + MAX( + 90 ) * + - 56 + 66 + ( + SUM( 96 ) ) + + NULLIF ( - CAST( NULL AS SIGNED ), + 49 ) * 77 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT 12 * + MAX ( + 90 ) * + - 56 + 66 + ( + SUM ( 96 ) ) + + NULLIF ( - CAST ( NULL AS INTEGER ), + 49 ) * 77 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT DISTINCT - CAST( + - 94 AS SIGNED ) * + 53 * - 57 * + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT - CAST ( + - 94 AS INTEGER ) * + 53 * - 57 * + 0 AS col1
----
0

query I rowsort
SELECT DISTINCT - 43 - - 7 col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL 85 * + - 40 + + 20 * + 81 - - COUNT( * ) - + 96 AS col1
----
-1875

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL 85 * + - 40 + + 20 * + 81 - - COUNT ( * ) - + 96 AS col1
----
-1875

query I rowsort
SELECT ALL - 6 * 83 - - + 58 AS col2
----
-440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5342
SELECT 21 col0, + COALESCE ( - - 97, COUNT( * ) + - - 81 * - CAST( COUNT( * ) AS SIGNED ) ) AS col0
----
21
97

skipif mysql # not compatible
query II rowsort label-5342
SELECT 21 col0, + COALESCE ( - - 97, COUNT ( * ) + - - 81 * - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0
----
21
97

onlyif mysql # DIV for integer division: 
query II rowsort label-5343
SELECT + + 96 AS col0, + 28 DIV 48
----
96
0

skipif mysql # not compatible
query II rowsort label-5343
SELECT + + 96 AS col0, + 28 / 48
----
96
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5344
SELECT AVG ( ALL - CAST( NULL AS SIGNED ) ) / + + CASE COALESCE ( 90, + 25, + - 31, - 27 / 37 ) WHEN 35 * - MAX( ALL + + 30 ) * + + COUNT( - 6 ) + + 26 / + + 89 + + 14 THEN + 16 WHEN ( - 54 ) THEN NULL END + + 83 + + ( + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT AVG ( ALL - CAST ( NULL AS INTEGER ) ) / + + CASE COALESCE ( 90, + 25, + - 31, - 27 / 37 ) WHEN 35 * - MAX ( ALL + + 30 ) * + + COUNT ( - 6 ) + + 26 / + + 89 + + 14 THEN + 16 WHEN ( - 54 ) THEN NULL END + + 83 + + ( + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT + 7 * MIN( ALL + - 87 ) + - 11
----
-620

skipif mysql # not compatible
query I rowsort label-5345
SELECT + 7 * MIN ( ALL + - 87 ) + - 11
----
-620

query I rowsort
SELECT + - NULLIF ( + 39, - 99 * + 68 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5347
SELECT ALL + - CASE - - MAX( 3 ) WHEN - 21 THEN - + 55 * + 30 - CAST( NULL AS SIGNED ) + + CAST( - 53 AS SIGNED ) WHEN + 51 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL + - CASE - - MAX ( 3 ) WHEN - 21 THEN - + 55 * + 30 - CAST ( NULL AS INTEGER ) + + CAST ( - 53 AS INTEGER ) WHEN + 51 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + 51 + - 48
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5349
SELECT - - 34 * - 82 - + + CAST( NULL AS DECIMAL ) AS col2, + NULLIF ( + 70, CAST( NULL AS SIGNED ) ) + - 40
----
NULL
30

skipif mysql # not compatible
query II rowsort label-5349
SELECT - - 34 * - 82 - + + CAST ( NULL AS REAL ) AS col2, + NULLIF ( + 70, CAST ( NULL AS INTEGER ) ) + - 40
----
NULL
30

query I rowsort
SELECT - 34 + - 15 col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5351
SELECT + + 89 DIV - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5351
SELECT + + 89 / - 93 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5352
SELECT DISTINCT 86 DIV + 89 * + 33
----
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT 86 / + 89 * + 33
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5353
SELECT ALL 50 * + + CAST( 67 AS SIGNED ) AS col2
----
3350

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL 50 * + + CAST ( 67 AS INTEGER ) AS col2
----
3350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5354
SELECT - 76 DIV + 92 + - - COUNT( 73 ) + + 95 * 52 AS col1
----
4941

skipif mysql # not compatible
query I rowsort label-5354
SELECT - 76 / + 92 + - - COUNT ( 73 ) + + 95 * 52 AS col1
----
4941

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5355
SELECT + 32 DIV - 52, COUNT( * ) DIV - 2
----
0
0

skipif mysql # not compatible
query II rowsort label-5355
SELECT + 32 / - 52, COUNT ( * ) / - 2
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5356
SELECT + 91 + + 40 DIV - 40
----
90

skipif mysql # not compatible
query I rowsort label-5356
SELECT + 91 + + 40 / - 40
----
90

query I rowsort
SELECT + 8 * - 56 AS col0
----
-448

query I rowsort
SELECT ALL 14 * - - 75 * + 11 * - ( - ( - + 80 ) ) AS col1
----
-924000

query I rowsort
SELECT ALL + 71 * 98 + - + 3 AS col0
----
6955

query I rowsort
SELECT - 78 * + + 46 * - 16 AS col1
----
57408

query I rowsort
SELECT ALL + NULLIF ( - 9, 8 )
----
-9

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

skipif mysql # not compatible
query I rowsort label-5362
SELECT COUNT ( 60 )
----
1

query I rowsort
SELECT DISTINCT ( + 39 ) + - 99 + - 53 * - 21
----
1053

onlyif mysql # aggregate syntax: 
query II rowsort label-5364
SELECT - 42 + 79 AS col1, - COUNT( - 48 )
----
37
-1

skipif mysql # not compatible
query II rowsort label-5364
SELECT - 42 + 79 AS col1, - COUNT ( - 48 )
----
37
-1

query I rowsort
SELECT DISTINCT - 79 + + 39
----
-40

query I rowsort
SELECT - ( 92 ) + - - 44
----
-48

query II rowsort
SELECT DISTINCT + 16 + 13, 67 AS col1
----
29
67

query II rowsort
SELECT ALL - 89 * 83 AS col0, 12
----
-7387
12

query I rowsort
SELECT + 92 + - 79
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT + AVG ( ALL 41 ) - - - CASE 82 WHEN - - 31 THEN NULL WHEN + + 24 * - COUNT( * ) * - COALESCE ( + AVG ( + 48 ), + 45, - 87 * - 52 ) * + 64 - - NULLIF ( - 20, 64 * - - 36 / - - 45 ) THEN 2 ELSE NULL END * 84 * + 74 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT + AVG ( ALL 41 ) - - - CASE 82 WHEN - - 31 THEN NULL WHEN + + 24 * - COUNT ( * ) * - COALESCE ( + AVG ( + 48 ), + 45, - 87 * - 52 ) * + 64 - - NULLIF ( - 20, 64 * - - 36 / - - 45 ) THEN 2 ELSE NULL END * 84 * + 74 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5371
SELECT DISTINCT - + COUNT( * ) + - COUNT( * ) + + 72 - CASE + 66 WHEN + CAST( NULL AS SIGNED ) + + - COUNT( * ) THEN - ( + - COUNT( * ) ) WHEN + 45 * - 4 * + - 15 + 12 - - 9 * - 83 + + COUNT( * ) THEN - - MAX( ALL - 94 ) END + - SUM( DISTINCT + 1 ) - - + 74 * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) + + 72 - CASE + 66 WHEN + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) THEN - ( + - COUNT ( * ) ) WHEN + 45 * - 4 * + - 15 + 12 - - 9 * - 83 + + COUNT ( * ) THEN - - MAX ( ALL - 94 ) END + - SUM ( DISTINCT + 1 ) - - + 74 * + 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5372
SELECT - - CAST( NULL AS SIGNED ) + COUNT( * ) - 85 + COUNT( - 3 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT - - CAST ( NULL AS INTEGER ) + COUNT ( * ) - 85 + COUNT ( - 3 ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5374
SELECT - - 20 + - 94 - + 11 DIV 55 * + 62 * + 15 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5374
SELECT - - 20 + - 94 - + 11 / 55 * + 62 * + 15 AS col0
----
-74

query I rowsort
SELECT - - 61 * - - 8 * + 21 col0
----
10248

onlyif mysql # DIV for integer division: 
query I rowsort label-5376
SELECT ALL + 50 DIV - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL + 50 / - 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT - MIN( DISTINCT + - 35 ) + + 62 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5377
SELECT - MIN ( DISTINCT + - 35 ) + + 62 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT - 12 * + MIN( 78 ) AS col2
----
-936

skipif mysql # not compatible
query I rowsort label-5378
SELECT - 12 * + MIN ( 78 ) AS col2
----
-936

query I rowsort
SELECT + 96 * + 93 * - 77 * - 56 + 64
----
38497600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT + - 4 + - - 55 * CAST( 90 AS SIGNED ) * - 29 + 78 + CASE + - 0 WHEN 53 THEN - 11 - + + 94 * 25 + + 63 ELSE + - 8 * + 88 END AS col2
----
-144180

skipif mysql # not compatible
query I rowsort label-5380
SELECT + - 4 + - - 55 * CAST ( 90 AS INTEGER ) * - 29 + 78 + CASE + - 0 WHEN 53 THEN - 11 - + + 94 * 25 + + 63 ELSE + - 8 * + 88 END AS col2
----
-144180

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5382
SELECT - - 72 * + - 11 + - - 93 + - + 18, COUNT( * ) AS col1
----
-717
1

skipif mysql # not compatible
query II rowsort label-5382
SELECT - - 72 * + - 11 + - - 93 + - + 18, COUNT ( * ) AS col1
----
-717
1

query I rowsort
SELECT - - CASE + 2 WHEN - 98 THEN NULL ELSE - 14 END * - - 11 * - 44 AS col1
----
6776

query I rowsort
SELECT ALL + 49 * - 86 * 14 * COALESCE ( - 38, + 39, 33 ) AS col0
----
2241848

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5385
SELECT SUM( + 8 ) col2, CAST( NULL AS DECIMAL ) AS col1
----
8
NULL

skipif mysql # not compatible
query II rowsort label-5385
SELECT SUM ( + 8 ) col2, CAST ( NULL AS REAL ) AS col1
----
8
NULL

query I rowsort
SELECT ALL - + 65 * - + 54 + - 66
----
3444

query I rowsort
SELECT + NULLIF ( + 37, - COALESCE ( - 0, + 15 * 13, 59 ) + 16 )
----
37

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

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

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

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

query I rowsort
SELECT ALL + 27 * 1 + ( + - 68 ) AS col2
----
-41

query I rowsort
SELECT - 79 - 33
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT + MAX( DISTINCT - ( - 10 ) ) * ( - MAX( DISTINCT - 8 ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5393
SELECT + MAX ( DISTINCT - ( - 10 ) ) * ( - MAX ( DISTINCT - 8 ) ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT + NULLIF ( - - 58, + + 51 * - MAX( + ( 41 ) ) )
----
58

skipif mysql # not compatible
query I rowsort label-5394
SELECT + NULLIF ( - - 58, + + 51 * - MAX ( + ( 41 ) ) )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5395
SELECT + COUNT( * ) - CAST( 36 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-5395
SELECT + COUNT ( * ) - CAST ( 36 AS INTEGER )
----
-35

query I rowsort
SELECT + 1 - + + 73
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-5397
SELECT ALL - 17 * - 96 DIV - 93 + + - 23 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL - 17 * - 96 / - 93 + + - 23 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT + MAX( + 60 ) * + + COUNT( ALL - ( + 57 ) ) * + + 73
----
4380

skipif mysql # not compatible
query I rowsort label-5398
SELECT + MAX ( + 60 ) * + + COUNT ( ALL - ( + 57 ) ) * + + 73
----
4380

query I rowsort
SELECT ALL 27 * + + 82 + + 63
----
2277

query I rowsort
SELECT + 65 + - - 43 AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT MIN( DISTINCT - 79 ) col2
----
-79

skipif mysql # not compatible
query I rowsort label-5401
SELECT MIN ( DISTINCT - 79 ) col2
----
-79

query I rowsort
SELECT - + 51 - - 63
----
12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5404
SELECT ALL + COUNT( * ) * - CAST( 97 AS SIGNED ) - - 84 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + COUNT ( * ) * - CAST ( 97 AS INTEGER ) - - 84 AS col1
----
-13

query II rowsort
SELECT DISTINCT - 36 AS col0, 77
----
-36
77

query II rowsort
SELECT ALL - + ( + 83 ) - - 31 AS col1, 6 AS col1
----
-52
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5407
SELECT DISTINCT + 21 * - 16 * CAST( NULL AS DECIMAL ) * + - 6 * - COUNT( * ) + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT + 21 * - 16 * CAST ( NULL AS REAL ) * + - 6 * - COUNT ( * ) + 63
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL + - 35 * - + 92 - + COUNT( * ) * 73 * 11
----
2417

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL + - 35 * - + 92 - + COUNT ( * ) * 73 * 11
----
2417

onlyif mysql # DIV for integer division: 
query I rowsort label-5410
SELECT ALL + 94 DIV + 24 + + 55 * + 48 + - 41 + + 96 * 24
----
4906

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL + 94 / + 24 + + 55 * + 48 + - 41 + + 96 * 24
----
4906

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT + + ( - + NULLIF ( + NULLIF ( MAX( DISTINCT + 82 ), 2 ), + - MAX( + - 84 ) ) ) + 86 * + 82 * + ( 96 )
----
676910

skipif mysql # not compatible
query I rowsort label-5411
SELECT + + ( - + NULLIF ( + NULLIF ( MAX ( DISTINCT + 82 ), 2 ), + - MAX ( + - 84 ) ) ) + 86 * + 82 * + ( 96 )
----
676910

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT + 6 + + COUNT( * ) + + 22 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5412
SELECT + 6 + + COUNT ( * ) + + 22 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT - - SUM( + 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5413
SELECT - - SUM ( + 84 ) AS col2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5414
SELECT DISTINCT CAST( - 1 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT CAST ( - 1 AS INTEGER ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5415
SELECT ALL COALESCE ( 43, 43 + + 23 DIV - 92 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL COALESCE ( 43, 43 + + 23 / - 92 ) AS col0
----
43

query I rowsort
SELECT DISTINCT + 0 * + 11
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5417
SELECT + COALESCE ( - 41, - ( + MAX( - 62 ) ) ) DIV - + 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5417
SELECT + COALESCE ( - 41, - ( + MAX ( - 62 ) ) ) / - + 58 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT - 69 + 62 - - + 44 + - + 45 + - - COUNT( * ) * - + 83
----
-91

skipif mysql # not compatible
query I rowsort label-5418
SELECT - 69 + 62 - - + 44 + - + 45 + - - COUNT ( * ) * - + 83
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT ALL - NULLIF ( + + 60, CASE CAST( NULL AS SIGNED ) WHEN + ( + 99 ) THEN + - 52 + - 33 * - CASE + + 21 WHEN - + COUNT( * ) THEN NULL WHEN + - 38 + SUM( ( 32 ) ) - - - 11 * 20 * - NULLIF ( - SUM( ALL - - 72 ), - - 14 ) / - NULLIF ( - - 90, + 68 ) THEN NULL WHEN + COUNT( DISTINCT + 16 ) THEN + 63 ELSE NULL END WHEN + - ( + - 61 ) + + 14 THEN NULL ELSE - 63 * - ( + - 62 ) END * - 15 )
----
-60

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL - NULLIF ( + + 60, CASE CAST ( NULL AS INTEGER ) WHEN + ( + 99 ) THEN + - 52 + - 33 * - CASE + + 21 WHEN - + COUNT ( * ) THEN NULL WHEN + - 38 + SUM ( ( 32 ) ) - - - 11 * 20 * - NULLIF ( - SUM ( ALL - - 72 ), - - 14 ) / - NULLIF ( - - 90, + 68 ) THEN NULL WHEN + COUNT ( DISTINCT + 16 ) THEN + 63 ELSE NULL END WHEN + - ( + - 61 ) + + 14 THEN NULL ELSE - 63 * - ( + - 62 ) END * - 15 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5420
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) DIV 75 * + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) / 75 * + 77 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-5421
SELECT COUNT ( * ) * + 78 + + 79 AS col1
----
157

query I rowsort
SELECT ALL - ( 79 ) + - 28 AS col2
----
-107

query I rowsort
SELECT 60 * - - 51 + + 63 AS col0
----
3123

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT - CASE + COUNT( * ) WHEN - + 0 + - 61 THEN NULL WHEN 79 THEN - + 28 ELSE NULL END * + 5 * - - 55 + - COUNT( * ) - - 96 + 33 + + 75 * + + NULLIF ( 97, + 62 - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT - CASE + COUNT ( * ) WHEN - + 0 + - 61 THEN NULL WHEN 79 THEN - + 28 ELSE NULL END * + 5 * - - 55 + - COUNT ( * ) - - 96 + 33 + + 75 * + + NULLIF ( 97, + 62 - + COUNT ( * ) )
----
NULL

query I rowsort
SELECT 21 + - - 56
----
77

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5427
SELECT ALL + 33 + - 52 + + 31 - - 24 * - - COUNT( * ) * - - CAST( - 91 AS SIGNED ) col2
----
-2172

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL + 33 + - 52 + + 31 - - 24 * - - COUNT ( * ) * - - CAST ( - 91 AS INTEGER ) col2
----
-2172

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

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT - ( COUNT ( - 0 ) ) + 42 AS col1
----
41

onlyif mysql # DIV for integer division: 
query II rowsort label-5429
SELECT + 80 AS col2, 52 + + 15 DIV 99 + 79 col1
----
80
131

skipif mysql # not compatible
query II rowsort label-5429
SELECT + 80 AS col2, 52 + + 15 / 99 + 79 col1
----
80
131

query I rowsort
SELECT DISTINCT + 88 * + 80 * - + 88
----
-619520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5431
SELECT ALL - 34 + + COUNT( * ) - - - NULLIF ( 83, + + 90 / + COUNT( * ) ) * + 1 * + 49 * - - 86 * - CASE 28 WHEN + 74 * ( - 48 ) / - 96 + MAX( - 37 ) + 71 * + ( + 33 ) - - 47 + CAST( + 47 AS SIGNED ) + 79 * COALESCE ( + 44, MIN( 92 ), - CAST( COUNT( ALL + 8 ) AS SIGNED ) * - 82 + + NULLIF ( - COUNT( * ), 50 ) - + + 98 * 17 ) + + 44 * - + 95 * - 68 THEN NULL ELSE + 41 * + + 56 END + 75 AS col1
----
803053594

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - 34 + + COUNT ( * ) - - - NULLIF ( 83, + + 90 / + COUNT ( * ) ) * + 1 * + 49 * - - 86 * - CASE 28 WHEN + 74 * ( - 48 ) / - 96 + MAX ( - 37 ) + 71 * + ( + 33 ) - - 47 + CAST ( + 47 AS INTEGER ) + 79 * COALESCE ( + 44, MIN ( 92 ), - CAST ( COUNT ( ALL + 8 ) AS INTEGER ) * - 82 + + NULLIF ( - COUNT ( * ), 50 ) - + + 98 * 17 ) + + 44 * - + 95 * - 68 THEN NULL ELSE + 41 * + + 56 END + 75 AS col1
----
803053594

query II rowsort
SELECT + 33, 0 AS col2
----
33
0

query II rowsort
SELECT 62, + ( 81 ) AS col0
----
62
81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5435
SELECT DISTINCT - CASE - 19 WHEN + - MIN( ALL + + 48 ) * + COUNT( * ) THEN + 49 ELSE - 0 * + ( - CAST( - 61 AS SIGNED ) ) END
----
0

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT - CASE - 19 WHEN + - MIN ( ALL + + 48 ) * + COUNT ( * ) THEN + 49 ELSE - 0 * + ( - CAST ( - 61 AS INTEGER ) ) END
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5436
SELECT ALL 40 * + COALESCE ( - NULLIF ( - 19, + - 42 - + CAST( NULL AS SIGNED ) * - 40 ), COUNT( * ) * + + SUM( DISTINCT 18 ) + - - MIN( DISTINCT + + 71 ) + NULLIF ( + MAX( DISTINCT + 37 ), - 9 + - 4 ) ) AS col1
----
760

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL 40 * + COALESCE ( - NULLIF ( - 19, + - 42 - + CAST ( NULL AS INTEGER ) * - 40 ), COUNT ( * ) * + + SUM ( DISTINCT 18 ) + - - MIN ( DISTINCT + + 71 ) + NULLIF ( + MAX ( DISTINCT + 37 ), - 9 + - 4 ) ) AS col1
----
760

query I rowsort
SELECT DISTINCT - 67 * + 3 * ( - 49 )
----
9849

onlyif mysql # DIV for integer division: 
query I rowsort label-5438
SELECT DISTINCT 89 DIV - 93 + - - 91
----
91

skipif mysql # not compatible
query I rowsort label-5438
SELECT DISTINCT 89 / - 93 + - - 91
----
91

query I rowsort
SELECT DISTINCT + ( + 40 ) - + 58
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT ALL NULLIF ( + - COUNT( * ), + 66 / 84 + 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL NULLIF ( + - COUNT ( * ), + 66 / 84 + 26 )
----
-1

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

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

query I rowsort
SELECT ALL - 23 * - 10
----
230

query I rowsort
SELECT ALL 11 * - 31 + + 40 * + COALESCE ( - 77, + + 20 ) AS col0
----
-3421

query I rowsort
SELECT + 51 * + - ( 40 ) AS col2
----
-2040

query I rowsort
SELECT + 94 - - 98 AS col2
----
192

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

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

query I rowsort
SELECT 79 + 38 * + + 8
----
383

query I rowsort
SELECT 81 * - 60 AS col1
----
-4860

query II rowsort
SELECT 52 AS col0, - 64 + - - 25 AS col2
----
52
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5450
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0, - 24 AS col2, 78 AS col0
----
NULL
-24
78

skipif mysql # not compatible
query III rowsort label-5450
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0, - 24 AS col2, 78 AS col0
----
NULL
-24
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT DISTINCT 18 + - - COUNT( * ) * 78 + - 51 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT 18 + - - COUNT ( * ) * 78 + - 51 AS col1
----
45

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

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

query II rowsort
SELECT - + 53, 37 AS col0
----
-53
37

query I rowsort
SELECT 12 * + - 28
----
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5455
SELECT ALL - CAST( + 5 AS SIGNED ) * + + ( - 27 )
----
135

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - CAST ( + 5 AS INTEGER ) * + + ( - 27 )
----
135

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT + COUNT( * ) * COALESCE ( - 50, - 34 ) + 28 * 60 + - + 11 AS col1
----
1619

skipif mysql # not compatible
query I rowsort label-5457
SELECT + COUNT ( * ) * COALESCE ( - 50, - 34 ) + 28 * 60 + - + 11 AS col1
----
1619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5458
SELECT ALL COUNT( * ) * + COUNT( * ) + - 0 DIV + + COALESCE ( 70, 15 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL COUNT ( * ) * + COUNT ( * ) + - 0 / + + COALESCE ( 70, 15 ) AS col1
----
1

query I rowsort
SELECT 37 * - 31
----
-1147

query I rowsort
SELECT ALL 55 * + 5
----
275

query I rowsort
SELECT ALL 39 * - 66 + - - 85 AS col1
----
-2489

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT ALL - 29 DIV - - 20
----
-1

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL - 29 / - - 20
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5464
SELECT CAST( NULL AS DECIMAL ) - - + 95 * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT CAST ( NULL AS REAL ) - - + 95 * 24
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5465
SELECT COUNT( * ) * - + 3 * + - CAST( NULL AS SIGNED ) + + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT COUNT ( * ) * - + 3 * + - CAST ( NULL AS INTEGER ) + + 67 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5466
SELECT 82 DIV + - 55
----
-1

skipif mysql # not compatible
query I rowsort label-5466
SELECT 82 / + - 55
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5467
SELECT + 0 * - + MIN( DISTINCT 89 ) * + 36 + + 75 * - + AVG ( - CAST( NULL AS SIGNED ) ) + 72 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5467
SELECT + 0 * - + MIN ( DISTINCT 89 ) * + 36 + + 75 * - + AVG ( - CAST ( NULL AS INTEGER ) ) + 72 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5468
SELECT MIN( - CAST( - + 46 AS SIGNED ) ) * + 23
----
1058

skipif mysql # not compatible
query I rowsort label-5468
SELECT MIN ( - CAST ( - + 46 AS INTEGER ) ) * + 23
----
1058

query I rowsort
SELECT DISTINCT + 57 * - + 80 col0
----
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT COALESCE ( 87, CASE - 45 WHEN - 91 THEN NULL WHEN + ( 79 ) THEN + 6 + - COUNT( * ) WHEN - MAX( + 12 ) THEN NULL ELSE NULL END + 47 * 17 - + 57 ) - + 39 - + ( - 33 ) - 0 + + - 34 - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5470
SELECT COALESCE ( 87, CASE - 45 WHEN - 91 THEN NULL WHEN + ( 79 ) THEN + 6 + - COUNT ( * ) WHEN - MAX ( + 12 ) THEN NULL ELSE NULL END + 47 * 17 - + 57 ) - + 39 - + ( - 33 ) - 0 + + - 34 - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT DISTINCT - 27 * - COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT - 27 * - COUNT ( * ) AS col2
----
27

query I rowsort
SELECT ALL - + CASE + + 39 WHEN - + 38 THEN NULL WHEN 49 THEN + 60 * 4 END
----
NULL

query I rowsort
SELECT - 74 * - - NULLIF ( - 76, 89 )
----
5624

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT - + ( COUNT( DISTINCT - + 13 ) ) + + 97 col1
----
96

skipif mysql # not compatible
query I rowsort label-5474
SELECT - + ( COUNT ( DISTINCT - + 13 ) ) + + 97 col1
----
96

query I rowsort
SELECT DISTINCT - 44 + + 63 - - 61
----
80

query I rowsort
SELECT + 62 - + + 55 AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5477
SELECT - 1 / - 71 + + 62 * - - CASE + 98 WHEN COALESCE ( + + 63, + - 54 + ( + - 37 ), + COUNT( * ) * - + 35 ) + 34 THEN NULL WHEN - 60 THEN 25 ELSE NULL END AS col2, 44
----
NULL
44

skipif mysql # not compatible
query II rowsort label-5477
SELECT - 1 / - 71 + + 62 * - - CASE + 98 WHEN COALESCE ( + + 63, + - 54 + ( + - 37 ), + COUNT ( * ) * - + 35 ) + 34 THEN NULL WHEN - 60 THEN 25 ELSE NULL END AS col2, 44
----
NULL
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5478
SELECT ALL + COUNT( * ) + 39, 82 AS col2
----
40
82

skipif mysql # not compatible
query II rowsort label-5478
SELECT ALL + COUNT ( * ) + 39, 82 AS col2
----
40
82

query I rowsort
SELECT ALL + 61 + - ( 96 ) + - 25
----
-60

query I rowsort
SELECT + + 56 * + 20 AS col1
----
1120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5481
SELECT ALL - - 59 + COUNT( * ) AS col2, 62 * - CAST( NULL AS SIGNED ) * - 59
----
60
NULL

skipif mysql # not compatible
query II rowsort label-5481
SELECT ALL - - 59 + COUNT ( * ) AS col2, 62 * - CAST ( NULL AS INTEGER ) * - 59
----
60
NULL

query I rowsort
SELECT + - 81 * + 59 * + 13 * - - ( + - 79 ) AS col1
----
4908033

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT - 90 + 73 * + 19 + + COUNT( * ) * - COUNT( * ) AS col0
----
1296

skipif mysql # not compatible
query I rowsort label-5483
SELECT - 90 + 73 * + 19 + + COUNT ( * ) * - COUNT ( * ) AS col0
----
1296

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT + 4 + 79 DIV - - 19 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5484
SELECT + 4 + 79 / - - 19 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT + 73 * + COUNT( * ) - - COUNT( * ) col1
----
74

skipif mysql # not compatible
query I rowsort label-5485
SELECT + 73 * + COUNT ( * ) - - COUNT ( * ) col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT ALL CAST( + 95 AS SIGNED ) * 91
----
8645

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL CAST ( + 95 AS INTEGER ) * 91
----
8645

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + 56 + + - CASE - 45 WHEN COUNT( * ) THEN - 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT + 56 + + - CASE - 45 WHEN COUNT ( * ) THEN - 80 END
----
NULL

query I rowsort
SELECT + 32 + 75
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT - NULLIF ( COUNT( * ), 72 + - 29 + + 26 + + 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-5489
SELECT - NULLIF ( COUNT ( * ), 72 + - 29 + + 26 + + 39 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT + 26 + - - MAX( - 78 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-5490
SELECT + 26 + - - MAX ( - 78 ) AS col1
----
-52

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

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL MAX ( ALL 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT + COUNT( * ) + + 92 * - 81 AS col2
----
-7451

skipif mysql # not compatible
query I rowsort label-5492
SELECT + COUNT ( * ) + + 92 * - 81 AS col2
----
-7451

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL - 43 * + SUM( ALL + ( + 21 ) )
----
-903

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL - 43 * + SUM ( ALL + ( + 21 ) )
----
-903

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5495
SELECT - COALESCE ( - COUNT( * ), 86 ) / + - NULLIF ( + + CAST( NULL AS SIGNED ), + 41 / - - 62 + CASE 23 WHEN 37 / + 6 THEN - CASE - 15 WHEN - 78 + + + 63 + - 37 + - - 87 * - COUNT( * ) THEN NULL ELSE + 24 + + 42 END ELSE - 26 END * - 58 ) * - 74 + - - 16 * - 86 * 64 + 12 + + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT - COALESCE ( - COUNT ( * ), 86 ) / + - NULLIF ( + + CAST ( NULL AS INTEGER ), + 41 / - - 62 + CASE 23 WHEN 37 / + 6 THEN - CASE - 15 WHEN - 78 + + + 63 + - 37 + - - 87 * - COUNT ( * ) THEN NULL ELSE + 24 + + 42 END ELSE - 26 END * - 58 ) * - 74 + - - 16 * - 86 * 64 + 12 + + 89 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5496
SELECT + 34 * + - CAST( NULL AS SIGNED ) * - 15 * + 31 - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT + 34 * + - CAST ( NULL AS INTEGER ) * - 15 * + 31 - 8
----
NULL

query I rowsort
SELECT ALL 37 * - 80 * - CASE + 65 WHEN + 95 THEN NULL WHEN - - 73 / - 43 THEN + ( + 87 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5498
SELECT + 43 + + 21 + 25 * - 36 AS col1, ( + 38 ) * CAST( NULL AS SIGNED ) * 13 - 75 + - COALESCE ( - + 38, COUNT( * ) * - 30, + 14 ) + + 11 * + 62 * + 80 * + 36 AS col2
----
-836
NULL

skipif mysql # not compatible
query II rowsort label-5498
SELECT + 43 + + 21 + 25 * - 36 AS col1, ( + 38 ) * CAST ( NULL AS INTEGER ) * 13 - 75 + - COALESCE ( - + 38, COUNT ( * ) * - 30, + 14 ) + + 11 * + 62 * + 80 * + 36 AS col2
----
-836
NULL

query I rowsort
SELECT + 60 * + - 41 col1
----
-2460

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5501
SELECT ALL + 7, - 55 DIV 4 col0
----
7
-13

skipif mysql # not compatible
query II rowsort label-5501
SELECT ALL + 7, - 55 / 4 col0
----
7
-13

query I rowsort
SELECT ALL 1 * - 45 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT 71 * - 12 + + + COUNT( * ) * + 96 - 9 AS col2
----
-765

skipif mysql # not compatible
query I rowsort label-5503
SELECT 71 * - 12 + + + COUNT ( * ) * + 96 - 9 AS col2
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT - COUNT( * ) * - + 24 * + SUM( + 8 )
----
192

skipif mysql # not compatible
query I rowsort label-5504
SELECT - COUNT ( * ) * - + 24 * + SUM ( + 8 )
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5505
SELECT + 31 AS col0, - 10 * CAST( NULL AS SIGNED ) * - 31 * + 91 + - - 20
----
31
NULL

skipif mysql # not compatible
query II rowsort label-5505
SELECT + 31 AS col0, - 10 * CAST ( NULL AS INTEGER ) * - 31 * + 91 + - - 20
----
31
NULL

query I rowsort
SELECT - - 28 + - 80 - + ( + - 36 ) - - 60 AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5507
SELECT ALL - SUM( DISTINCT - 81 ) * + 10 + COUNT( * ) - + 75 / - - COUNT( * ) - 39 + + ( - - COUNT( * ) ) + - + 50 + + 9 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - + COUNT( * ) - + - CAST( NULL AS SIGNED ) + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL - SUM ( DISTINCT - 81 ) * + 10 + COUNT ( * ) - + 75 / - - COUNT ( * ) - 39 + + ( - - COUNT ( * ) ) + - + 50 + + 9 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) + - 26
----
NULL

query I rowsort
SELECT - 22 + + 27 AS col2
----
5

query I rowsort
SELECT ALL - + 16 * 62 * 84 * 52 + - 76 AS col1
----
-4333132

query I rowsort
SELECT ALL - - 56 * 79 * + - 11
----
-48664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5511
SELECT + 40 * - COUNT( * ) + - - 37 DIV NULLIF ( + 22, 75 * - + ( + 24 ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5511
SELECT + 40 * - COUNT ( * ) + - - 37 / NULLIF ( + 22, 75 * - + ( + 24 ) ) AS col2
----
-39

query II rowsort
SELECT - 74 * - + ( - 37 ) AS col2, - 81 col0
----
-2738
-81

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

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

query I rowsort
SELECT ALL - 38 + - + 95
----
-133

onlyif mysql # DIV for integer division: 
query I rowsort label-5515
SELECT ALL 3 DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL 3 / 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT - 9 * COALESCE ( - + SUM( - 63 ), - - 17 + - 81 * + 97 * + 15 + - COUNT( * ) )
----
-567

skipif mysql # not compatible
query I rowsort label-5516
SELECT - 9 * COALESCE ( - + SUM ( - 63 ), - - 17 + - 81 * + 97 * + 15 + - COUNT ( * ) )
----
-567

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

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

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

query I rowsort
SELECT - COALESCE ( - 50, + - 9, - - 36 ) AS col2
----
50

query I rowsort
SELECT ALL - 2 - - + 74 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT - 73 * SUM( + 41 ) * - 80
----
239440

skipif mysql # not compatible
query I rowsort label-5521
SELECT - 73 * SUM ( + 41 ) * - 80
----
239440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5522
SELECT - 90 DIV MIN( DISTINCT - 43 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5522
SELECT - 90 / MIN ( DISTINCT - 43 ) AS col1
----
2

query I rowsort
SELECT DISTINCT 2 * 37 AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5524
SELECT + 72 * 86 * - COUNT( * ) * + COUNT( DISTINCT 12 ) * + + CAST( 6 AS SIGNED ) AS col2, 51 + + 99
----
-37152
150

skipif mysql # not compatible
query II rowsort label-5524
SELECT + 72 * 86 * - COUNT ( * ) * + COUNT ( DISTINCT 12 ) * + + CAST ( 6 AS INTEGER ) AS col2, 51 + + 99
----
-37152
150

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5526
SELECT ALL 80 DIV - 84 - + 52
----
-52

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL 80 / - 84 - + 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT + CASE + + NULLIF ( - CASE - 60 WHEN - 2 * + 95 + - - 82 THEN + 80 + + - 50 + - 62 * - + 12 * - - 93 * - COUNT( * ) END, 67 ) WHEN 30 THEN 55 WHEN + + COUNT( * ) / - 46 + - 85 * + 36 THEN NULL ELSE - - 77 END
----
77

skipif mysql # not compatible
query I rowsort label-5527
SELECT + CASE + + NULLIF ( - CASE - 60 WHEN - 2 * + 95 + - - 82 THEN + 80 + + - 50 + - 62 * - + 12 * - - 93 * - COUNT ( * ) END, 67 ) WHEN 30 THEN 55 WHEN + + COUNT ( * ) / - 46 + - 85 * + 36 THEN NULL ELSE - - 77 END
----
77

query II rowsort
SELECT 64 + - - 21 AS col2, 43 AS col1
----
85
43

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

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

query I rowsort
SELECT + 56 * + + NULLIF ( - - 79, + - 13 + + 83 * 12 + 41 ) + + 52 AS col0
----
4476

onlyif mysql # aggregate syntax: 
query III rowsort label-5531
SELECT ALL + 94 + + + COALESCE ( + + COUNT( * ), 17 ) AS col1, ( + 91 ) + 66 AS col0, - 9
----
95
157
-9

skipif mysql # not compatible
query III rowsort label-5531
SELECT ALL + 94 + + + COALESCE ( + + COUNT ( * ), 17 ) AS col1, ( + 91 ) + 66 AS col0, - 9
----
95
157
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5532
SELECT DISTINCT 62 + + + COUNT( * ) * - COALESCE ( + 97, - 70 DIV 93, + 23 - - - 45 DIV - COALESCE ( 34, - 92 * - 86 * + 31, + MAX( + 91 ) ) + 79 )
----
-35

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT 62 + + + COUNT ( * ) * - COALESCE ( + 97, - 70 / 93, + 23 - - - 45 / - COALESCE ( 34, - 92 * - 86 * + 31, + MAX ( + 91 ) ) + 79 )
----
-35

query I rowsort
SELECT - 6 * 2 + 2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5534
SELECT ALL 80 + + 98 - - 87 + - 12 AS col2, + SUM( ALL - 58 ) * + - COALESCE ( - CAST( - - COUNT( * ) AS SIGNED ), - + 6 )
----
253
-58

skipif mysql # not compatible
query II rowsort label-5534
SELECT ALL 80 + + 98 - - 87 + - 12 AS col2, + SUM ( ALL - 58 ) * + - COALESCE ( - CAST ( - - COUNT ( * ) AS INTEGER ), - + 6 )
----
253
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT DISTINCT - COUNT( DISTINCT - + 29 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT - COUNT ( DISTINCT - + 29 ) AS col2
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT + - NULLIF ( - 33, - COUNT( * ) * COUNT( * ) + - + MAX( ALL + 28 ) )
----
33

skipif mysql # not compatible
query I rowsort label-5537
SELECT + - NULLIF ( - 33, - COUNT ( * ) * COUNT ( * ) + - + MAX ( ALL + 28 ) )
----
33

query I rowsort
SELECT + 72 * + + 48 * 10 AS col1
----
34560

onlyif mysql # DIV for integer division: 
query I rowsort label-5539
SELECT 5 + + ( + COALESCE ( - - ( 0 ), ( + 57 ) ) ) + 35 + - 33 DIV 52 DIV - 38
----
40

skipif mysql # not compatible
query I rowsort label-5539
SELECT 5 + + ( + COALESCE ( - - ( 0 ), ( + 57 ) ) ) + 35 + - 33 / 52 / - 38
----
40

query II rowsort
SELECT + 46 * - + 44, 45 col2
----
-2024
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5541
SELECT + ( - + 11 ), + COALESCE ( SUM( ALL - 31 ), - 15 * - - 3 * COUNT( * ) * - 56, - 36 * NULLIF ( + - 7, + 55 * - - 60 ) ) AS col1
----
-11
-31

skipif mysql # not compatible
query II rowsort label-5541
SELECT + ( - + 11 ), + COALESCE ( SUM ( ALL - 31 ), - 15 * - - 3 * COUNT ( * ) * - 56, - 36 * NULLIF ( + - 7, + 55 * - - 60 ) ) AS col1
----
-11
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT DISTINCT + - 91 - MAX( DISTINCT + 55 )
----
-146

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT + - 91 - MAX ( DISTINCT + 55 )
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5543
SELECT ALL ( - - COUNT( * ) ) AS col2, - 76 DIV - + COUNT( * ) + + 58 AS col0
----
1
134

skipif mysql # not compatible
query II rowsort label-5543
SELECT ALL ( - - COUNT ( * ) ) AS col2, - 76 / - + COUNT ( * ) + + 58 AS col0
----
1
134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5544
SELECT DISTINCT 47 col2, - CAST( 98 AS SIGNED )
----
47
-98

skipif mysql # not compatible
query II rowsort label-5544
SELECT DISTINCT 47 col2, - CAST ( 98 AS INTEGER )
----
47
-98

query I rowsort
SELECT ALL + 33 - - 14 * + 12
----
201

query II rowsort
SELECT 37 + + 96 + + 21 + - 4 * 14 AS col1, - 1
----
98
-1

query I rowsort
SELECT 76 * + 87 * + 63 * + 46
----
19161576

query I rowsort
SELECT 46 + + 47
----
93

query I rowsort
SELECT 56 + - 32 AS col1
----
24

query I rowsort
SELECT 66 + + + 38
----
104

query I rowsort
SELECT 72 + 33
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT DISTINCT COUNT( * ) * + 68 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT COUNT ( * ) * + 68 AS col0
----
68

query I rowsort
SELECT 81 + 37 col0
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5554
SELECT CASE 18 WHEN + 28 + + 20 THEN - + 34 * - + COUNT( - 16 ) - - 72 WHEN - COUNT( * ) THEN - + 1 END / - - COALESCE ( - COALESCE ( + 86, - 92, + - MIN( ALL - - 51 ) ), - 99 ) * - CAST( - 9 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5554
SELECT CASE 18 WHEN + 28 + + 20 THEN - + 34 * - + COUNT ( - 16 ) - - 72 WHEN - COUNT ( * ) THEN - + 1 END / - - COALESCE ( - COALESCE ( + 86, - 92, + - MIN ( ALL - - 51 ) ), - 99 ) * - CAST ( - 9 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5555
SELECT DISTINCT + 99 + - CAST( NULL AS SIGNED ) * + - CASE + MIN( ALL + NULLIF ( - 65, NULLIF ( - - 53, - 82 + - - ( - 21 ) ) ) ) WHEN + + 34 + - 39 THEN NULL WHEN 88 THEN - 10 END AS col2, - 32
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-5555
SELECT DISTINCT + 99 + - CAST ( NULL AS INTEGER ) * + - CASE + MIN ( ALL + NULLIF ( - 65, NULLIF ( - - 53, - 82 + - - ( - 21 ) ) ) ) WHEN + + 34 + - 39 THEN NULL WHEN 88 THEN - 10 END AS col2, - 32
----
NULL
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT ALL COALESCE ( - - 54, + 93, - 81 ) + + 58 * 52 * + - COUNT( * ) - - 0 + + - 97
----
-3059

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL COALESCE ( - - 54, + 93, - 81 ) + + 58 * 52 * + - COUNT ( * ) - - 0 + + - 97
----
-3059

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT - 93 DIV + 65 + - 42 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-5558
SELECT - 93 / + 65 + - 42 AS col1
----
-43

query I rowsort
SELECT ALL + 36 * 24
----
864

query I rowsort
SELECT ALL - 81 + 77
----
-4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5562
SELECT 25 + + CAST( + 91 AS SIGNED ) * - 98
----
-8893

skipif mysql # not compatible
query I rowsort label-5562
SELECT 25 + + CAST ( + 91 AS INTEGER ) * - 98
----
-8893

query I rowsort
SELECT ( 98 ) * - 16 AS col2
----
-1568

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

skipif mysql # not compatible
query I rowsort label-5564
SELECT COUNT ( * ) * - 27
----
-27

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

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT ( + COUNT ( * ) ) - 60 AS col1
----
-59

query I rowsort
SELECT 73 * 70 + + 71
----
5181

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT + 92 * + 97 + 52 DIV 2 col1
----
8950

skipif mysql # not compatible
query I rowsort label-5567
SELECT + 92 * + 97 + 52 / 2 col1
----
8950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5568
SELECT ALL CAST( NULL AS SIGNED ) * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL CAST ( NULL AS INTEGER ) * - 89
----
NULL

query I rowsort
SELECT ( + 75 ) * - 23 col2
----
-1725

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT ALL CAST( + 24 AS SIGNED ) * 64
----
1536

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL CAST ( + 24 AS INTEGER ) * 64
----
1536

query I rowsort
SELECT 66 + + 92 AS col1
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-5574
SELECT 40 DIV + ( NULLIF ( - 76, - NULLIF ( 14, - 8 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5574
SELECT 40 / + ( NULLIF ( - 76, - NULLIF ( 14, - 8 ) ) ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5575
SELECT 76 DIV - 66
----
-1

skipif mysql # not compatible
query I rowsort label-5575
SELECT 76 / - 66
----
-1

query I rowsort
SELECT 46 * + 53 AS col1
----
2438

onlyif mysql # DIV for integer division: 
query I rowsort label-5577
SELECT DISTINCT - 2 DIV 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT - 2 / 25 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT - MIN( 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-5578
SELECT - MIN ( 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT 91 + 93 * + SUM( + 10 ) AS col2
----
1021

skipif mysql # not compatible
query I rowsort label-5579
SELECT 91 + 93 * + SUM ( + 10 ) AS col2
----
1021

query I rowsort
SELECT ALL - 84 * 44 AS col0
----
-3696

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

skipif mysql # not compatible
query I rowsort label-5581
SELECT 66 / 32
----
2

query I rowsort
SELECT 75 * + 91
----
6825

query I rowsort
SELECT ALL + 12 + + 23 AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5584
SELECT - COALESCE ( + CASE 9 WHEN - 8 + 28 THEN NULL ELSE + 57 DIV 86 END, - COUNT( + 98 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5584
SELECT - COALESCE ( + CASE 9 WHEN - 8 + 28 THEN NULL ELSE + 57 / 86 END, - COUNT ( + 98 ) )
----
0

query I rowsort
SELECT - 66 * 14 AS col1
----
-924

query I rowsort
SELECT ALL + 12 + - 94 col0
----
-82

query I rowsort
SELECT + ( 37 ) - 56
----
-19

query I rowsort
SELECT DISTINCT + 94 + + 95 * - 5
----
-381

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

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

query I rowsort
SELECT - 36 * 37 AS col1
----
-1332

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

skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT + - COUNT ( * ) * 57 + ( 80 ) / + 57 AS col1
----
-56

query I rowsort
SELECT DISTINCT - 22 * - 79 + + 43
----
1781

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT ALL + + COUNT( * ) * 23 + - 45 * - 2 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL + + COUNT ( * ) * 23 + - 45 * - 2 AS col1
----
113

query I rowsort
SELECT - + 89 * 75
----
-6675

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL + + COALESCE ( COUNT( * ), 29 + CASE 77 WHEN + 74 + + 39 THEN NULL WHEN - 15 THEN - 80 * - 11 WHEN - COUNT( * ) * 53 THEN - 78 ELSE NULL END ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL + + COALESCE ( COUNT ( * ), 29 + CASE 77 WHEN + 74 + + 39 THEN NULL WHEN - 15 THEN - 80 * - 11 WHEN - COUNT ( * ) * 53 THEN - 78 ELSE NULL END ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5596
SELECT CASE - 88 WHEN + CAST( NULLIF ( - 47, 19 * + CASE 89 WHEN 95 THEN NULL WHEN 79 THEN - ( 49 ) ELSE NULL END - - 61 ) AS SIGNED ) THEN 35 * - 61 + 75 * 7 WHEN 65 THEN 57 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5596
SELECT CASE - 88 WHEN + CAST ( NULLIF ( - 47, 19 * + CASE 89 WHEN 95 THEN NULL WHEN 79 THEN - ( 49 ) ELSE NULL END - - 61 ) AS INTEGER ) THEN 35 * - 61 + 75 * 7 WHEN 65 THEN 57 END AS col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-5598
SELECT - + COUNT ( * ) + 20 AS col0
----
19

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5600
SELECT + NULLIF ( + 26, ( COALESCE ( CAST( COUNT( * ) AS SIGNED ), 87, 76, 10 ) ) ) - + 70
----
-44

skipif mysql # not compatible
query I rowsort label-5600
SELECT + NULLIF ( + 26, ( COALESCE ( CAST ( COUNT ( * ) AS INTEGER ), 87, 76, 10 ) ) ) - + 70
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT + + 31 + + ( MIN( 8 ) + 60 )
----
99

skipif mysql # not compatible
query I rowsort label-5601
SELECT + + 31 + + ( MIN ( 8 ) + 60 )
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5602
SELECT ALL - COUNT( * ) * + 65 - 75 DIV - 19
----
-62

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL - COUNT ( * ) * + 65 - 75 / - 19
----
-62

query I rowsort
SELECT - 68 * - 28
----
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT ALL + + MAX( + 15 ) * - 84
----
-1260

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL + + MAX ( + 15 ) * - 84
----
-1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5605
SELECT DISTINCT + 92 * NULLIF ( + 32 * CAST( 44 * + 76 AS SIGNED ) - + CAST( + 42 AS SIGNED ), - MAX( ALL + 58 ) + 29 ) - CAST( NULL AS SIGNED ) * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT + 92 * NULLIF ( + 32 * CAST ( 44 * + 76 AS INTEGER ) - + CAST ( + 42 AS INTEGER ), - MAX ( ALL + 58 ) + 29 ) - CAST ( NULL AS INTEGER ) * + 8
----
NULL

query I rowsort
SELECT + - 12 + - 36 AS col2
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT DISTINCT + - MIN( ALL - 35 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT + - MIN ( ALL - 35 ) AS col0
----
35

query I rowsort
SELECT + 18 * 48
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT - 25 * 42 - COUNT( * )
----
-1051

skipif mysql # not compatible
query I rowsort label-5610
SELECT - 25 * 42 - COUNT ( * )
----
-1051

query I rowsort
SELECT + COALESCE ( 68, - 20, + 55 )
----
68

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

query I rowsort
SELECT ALL 38 * + 16 AS col0
----
608

query I rowsort
SELECT + 44 * - 92 * + 71
----
-287408

query I rowsort
SELECT + 50 * + 51
----
2550

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

query I rowsort
SELECT ALL 32 + - 45 AS col1
----
-13

query I rowsort
SELECT ALL 2 * 20 AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT + NULLIF ( + + ( - CAST( - 4 AS SIGNED ) ), 62 ) + + 35
----
39

skipif mysql # not compatible
query I rowsort label-5619
SELECT + NULLIF ( + + ( - CAST ( - 4 AS INTEGER ) ), 62 ) + + 35
----
39

query I rowsort
SELECT - COALESCE ( + 40, + 9 - 88 * + 7 ) AS col0
----
-40

query I rowsort
SELECT ALL 72 + - + 6 AS col1
----
66

query I rowsort
SELECT + 78 + + - 67
----
11

query I rowsort
SELECT - 84 * 68
----
-5712

query I rowsort
SELECT - 60 - + 98 + 25 * 13
----
167

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5626
SELECT ALL 24 DIV - + 55 * 7
----
0

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL 24 / - + 55 * 7
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT + COUNT( * ) * + COALESCE ( 11, 32 * + 14, - 21 * + COUNT( DISTINCT - 38 ) + 70, + 25 + + 26 )
----
11

skipif mysql # not compatible
query I rowsort label-5628
SELECT + COUNT ( * ) * + COALESCE ( 11, 32 * + 14, - 21 * + COUNT ( DISTINCT - 38 ) + 70, + 25 + + 26 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5629
SELECT - CAST( - COUNT( ALL - 40 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5629
SELECT - CAST ( - COUNT ( ALL - 40 ) AS INTEGER ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5630
SELECT ALL + 81 + + - 80 * CAST( 73 DIV ( - 79 ) AS SIGNED ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL + 81 + + - 80 * CAST ( 73 / ( - 79 ) AS INTEGER ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT - - COALESCE ( + COUNT( * ), 67 ) + - 1 col1
----
0

skipif mysql # not compatible
query I rowsort label-5631
SELECT - - COALESCE ( + COUNT ( * ), 67 ) + - 1 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT - + 43 + + ( - SUM( DISTINCT + 47 ) ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-5632
SELECT - + 43 + + ( - SUM ( DISTINCT + 47 ) ) AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5633
SELECT + 2 * 74 * + NULLIF ( + CAST( NULL AS SIGNED ), 97 ) + + MAX( 60 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT + 2 * 74 * + NULLIF ( + CAST ( NULL AS INTEGER ), 97 ) + + MAX ( 60 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT - + 67 * + + COUNT( * ) * - 45 + + 3 AS col1
----
3018

skipif mysql # not compatible
query I rowsort label-5634
SELECT - + 67 * + + COUNT ( * ) * - 45 + + 3 AS col1
----
3018

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5635
SELECT DISTINCT - - MAX( + - 27 ) DIV 77 - 68
----
-68

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT - - MAX ( + - 27 ) / 77 - 68
----
-68

query I rowsort
SELECT - - 66 * + - CASE - 82 WHEN 51 THEN - 74 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 17 * 92 * 57 col0
----
89148

onlyif mysql # DIV for integer division: 
query I rowsort label-5638
SELECT - - 16 DIV - 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5638
SELECT - - 16 / - 37 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT ALL + CASE + 55 WHEN + MAX( ALL 0 ) * - 11 THEN + CASE 59 WHEN MAX( + 5 ) THEN NULL WHEN + 26 THEN - 5 END WHEN + ( - 41 ) THEN NULL WHEN - 34 THEN 6 - 10 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL + CASE + 55 WHEN + MAX ( ALL 0 ) * - 11 THEN + CASE 59 WHEN MAX ( + 5 ) THEN NULL WHEN + 26 THEN - 5 END WHEN + ( - 41 ) THEN NULL WHEN - 34 THEN 6 - 10 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + + ( - + 96 ) AS col1
----
-96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT DISTINCT - 78 DIV + - 46 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT - 78 / + - 46 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT + NULLIF ( + 32, + 73 / + SUM( DISTINCT - 94 ) + ( 53 ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5643
SELECT + NULLIF ( + 32, + 73 / + SUM ( DISTINCT - 94 ) + ( 53 ) ) AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT - 32 DIV - + 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5644
SELECT - 32 / - + 56 AS col0
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-5646
SELECT - - 23 * + - COUNT ( * ) * COUNT ( * ) - - 80 AS col2
----
57

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

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

query I rowsort
SELECT - + 52 * + - 60 + 79 * 94 col2
----
10546

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT + COALESCE ( COUNT( * ), 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5649
SELECT + COALESCE ( COUNT ( * ), 33 ) AS col1
----
1

query I rowsort
SELECT ALL - 84 * + ( - - 31 )
----
-2604

onlyif mysql # DIV for integer division: 
query I rowsort label-5651
SELECT - 44 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-5651
SELECT - 44 / - 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ALL 95 * + 48 + - COUNT( * ) AS col1
----
4559

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL 95 * + 48 + - COUNT ( * ) AS col1
----
4559

query II rowsort
SELECT - 11 AS col2, + 54 * 29
----
-11
1566

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5655
SELECT CAST( NULL AS SIGNED ) * MAX( DISTINCT 61 ) + - ( SUM( + 71 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5655
SELECT CAST ( NULL AS INTEGER ) * MAX ( DISTINCT 61 ) + - ( SUM ( + 71 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT ALL - 12 + + CAST( + + 88 AS SIGNED ) + ( - 66 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL - 12 + + CAST ( + + 88 AS INTEGER ) + ( - 66 ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT DISTINCT 31 + - SUM( + 66 )
----
-35

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT 31 + - SUM ( + 66 )
----
-35

query II rowsort
SELECT - 22 AS col0, ( - - 31 ) * + 84 + 96
----
-22
2700

query I rowsort
SELECT 16 + - + 60 AS col2
----
-44

query II rowsort
SELECT ALL 78 AS col1, 3 + + 24
----
78
27

query I rowsort
SELECT DISTINCT 83 * - 56
----
-4648

query I rowsort
SELECT 6 * 35 AS col2
----
210

query I rowsort
SELECT DISTINCT 47 * + 99 col0
----
4653

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5665
SELECT ALL 17 - + 4 * 13 + - CASE 15 + 44 * 78 WHEN ( 62 ) THEN 8 WHEN 9 - ( - ( 55 ) ) THEN NULL WHEN 35 / CAST( NULL AS SIGNED ) + - 35 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL 17 - + 4 * 13 + - CASE 15 + 44 * 78 WHEN ( 62 ) THEN 8 WHEN 9 - ( - ( 55 ) ) THEN NULL WHEN 35 / CAST ( NULL AS INTEGER ) + - 35 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 87 - + 22 + + + 6 * 49 * + 62
----
18293

query I rowsort
SELECT + 56 * - + 48 AS col0
----
-2688

query I rowsort
SELECT + 0 - + + 86 * 89 AS col2
----
-7654

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5670
SELECT DISTINCT 62 DIV - + 25 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT 62 / - + 25 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT ALL + + SUM( - 53 ) * - 30 * + 16 AS col1
----
25440

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL + + SUM ( - 53 ) * - 30 * + 16 AS col1
----
25440

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5672
SELECT - 50 - - NULLIF ( - 15, CAST( 34 AS SIGNED ) ) - CAST( NULL AS DECIMAL ) * + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT - 50 - - NULLIF ( - 15, CAST ( 34 AS INTEGER ) ) - CAST ( NULL AS REAL ) * + 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5673
SELECT COUNT( ALL ( ( + 20 ) ) ) * + 25 - 31 DIV 81 col1
----
25

skipif mysql # not compatible
query I rowsort label-5673
SELECT COUNT ( ALL ( ( + 20 ) ) ) * + 25 - 31 / 81 col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT - ( + - CAST( + 23 AS SIGNED ) ) * + 29 AS col2
----
667

skipif mysql # not compatible
query I rowsort label-5674
SELECT - ( + - CAST ( + 23 AS INTEGER ) ) * + 29 AS col2
----
667

query I rowsort
SELECT - 91 * - 11 AS col1
----
1001

query II rowsort
SELECT DISTINCT - - 65 AS col1, 14 + + 6 * + 63 AS col0
----
65
392

query I rowsort
SELECT ALL - - ( + 48 ) * + + ( 86 ) + 89 AS col2
----
4217

query I rowsort
SELECT + ( 9 ) * - - 15 AS col2
----
135

query I rowsort
SELECT + - 62 * - 44 + 11 * 90
----
3718

query I rowsort
SELECT + 13 - - 71
----
84

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

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT - + ( + 23 ) + + COUNT ( * ) AS col1
----
-22

query I rowsort
SELECT DISTINCT + 43 + + + 16
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL 26 + 27 + + - SUM( + 84 ) * + 4 AS col1
----
-283

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL 26 + 27 + + - SUM ( + 84 ) * + 4 AS col1
----
-283

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT ALL + COUNT( * ) + - NULLIF ( - + 69, 50 * - 49 ) * 31
----
2140

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL + COUNT ( * ) + - NULLIF ( - + 69, 50 * - 49 ) * 31
----
2140

onlyif mysql # DIV for integer division: 
query I rowsort label-5686
SELECT DISTINCT + 71 DIV + - 53 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT + 71 / + - 53 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT ALL + CASE + + MIN( - 6 ) WHEN 73 THEN + COUNT( ALL 99 ) END * 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL + CASE + + MIN ( - 6 ) WHEN 73 THEN + COUNT ( ALL 99 ) END * 22 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5688
SELECT 91 DIV - + CASE + 65 WHEN 26 + + 57 THEN 80 * ( - 93 ) + + 64 * + 71 ELSE + 1 END AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-5688
SELECT 91 / - + CASE + 65 WHEN 26 + + 57 THEN 80 * ( - 93 ) + + 64 * + 71 ELSE + 1 END AS col1
----
-91

query I rowsort
SELECT ALL + 80 + + 5 + + 84 AS col2
----
169

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

query I rowsort
SELECT CASE 97 WHEN 67 THEN + + 22 END * 57 - - 31
----
NULL

query I rowsort
SELECT 75 * - 58 AS col2
----
-4350

query I rowsort
SELECT ALL + 53 * - 40 AS col2
----
-2120

query I rowsort
SELECT ALL - 81 - - 66 AS col0
----
-15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT ALL + 54 * CASE + + CASE CASE 49 WHEN + 56 THEN + 53 + 36 WHEN - COUNT( * ) / 9 THEN NULL ELSE + 50 END WHEN 79 + 3 THEN + 84 - - 17 END WHEN + 3 + 26 THEN - 55 * - 33 ELSE 87 END * - 86
----
-404028

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL + 54 * CASE + + CASE CASE 49 WHEN + 56 THEN + 53 + 36 WHEN - COUNT ( * ) / 9 THEN NULL ELSE + 50 END WHEN 79 + 3 THEN + 84 - - 17 END WHEN + 3 + 26 THEN - 55 * - 33 ELSE 87 END * - 86
----
-404028

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT COUNT( * ) - - 1 - - 30 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5697
SELECT COUNT ( * ) - - 1 - - 30 AS col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5698
SELECT DISTINCT ( ( + 38 ) ) DIV 27
----
1

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT ( ( + 38 ) ) / 27
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5699
SELECT 16 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT 16 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 82 - + - 66
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT ALL SUM( ALL - 81 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL SUM ( ALL - 81 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT 96 + + + CASE COUNT( * ) WHEN 8 THEN 59 * + 21 + 30 END / 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5702
SELECT 96 + + + CASE COUNT ( * ) WHEN 8 THEN 59 * + 21 + 30 END / 56 AS col1
----
NULL

query I rowsort
SELECT 0 * - 9 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT 92 - + 12 + + - COALESCE ( + COUNT( DISTINCT 1 ), 39 )
----
79

skipif mysql # not compatible
query I rowsort label-5704
SELECT 92 - + 12 + + - COALESCE ( + COUNT ( DISTINCT 1 ), 39 )
----
79

query I rowsort
SELECT + ( - + ( 40 ) ) + - - ( + 23 ) AS col2
----
-17

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

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

query I rowsort
SELECT - 48 + - 98 + - + 56 + - + 30 * ( + 30 ) AS col0
----
-1102

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL - 94 * MAX( ALL + 81 )
----
-7614

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL - 94 * MAX ( ALL + 81 )
----
-7614

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT - MAX( ALL + 59 ) + 8 + - COUNT( * ) * ( 32 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-5709
SELECT - MAX ( ALL + 59 ) + 8 + - COUNT ( * ) * ( 32 ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT + MAX( DISTINCT + COALESCE ( + - 3, + 74 + - 86 ) ) * + 77 + 56
----
-175

skipif mysql # not compatible
query I rowsort label-5710
SELECT + MAX ( DISTINCT + COALESCE ( + - 3, + 74 + - 86 ) ) * + 77 + 56
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT ALL - - MAX( - 59 ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL - - MAX ( - 59 ) col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5712
SELECT - 30 DIV 43 * 55 + - + 81 DIV 31
----
-2

skipif mysql # not compatible
query I rowsort label-5712
SELECT - 30 / 43 * 55 + - + 81 / 31
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5713
SELECT - CAST( + 78 AS SIGNED ) AS col0, 90 AS col1
----
-78
90

skipif mysql # not compatible
query II rowsort label-5713
SELECT - CAST ( + 78 AS INTEGER ) AS col0, 90 AS col1
----
-78
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5714
SELECT 89 DIV - 80 - + 41 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5714
SELECT 89 / - 80 - + 41 AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5715
SELECT ALL + CASE 75 WHEN - 32 THEN NULL ELSE + - COUNT( * ) + + COALESCE ( 22, 55 + + 0 ) DIV + NULLIF ( + 79 * 89, NULLIF ( 4, + COUNT( * ) ) * - 2 ) END * + COUNT( * ) + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL + CASE 75 WHEN - 32 THEN NULL ELSE + - COUNT ( * ) + + COALESCE ( 22, 55 + + 0 ) / + NULLIF ( + 79 * 89, NULLIF ( 4, + COUNT ( * ) ) * - 2 ) END * + COUNT ( * ) + - COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL - 36 * 90 * + 79 - - MIN( - 78 ) + ( + 54 )
----
-255984

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL - 36 * 90 * + 79 - - MIN ( - 78 ) + ( + 54 )
----
-255984

query I rowsort
SELECT DISTINCT + 39 * - 19 AS col2
----
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT 48 * - 87 * - 86 + - 53 - + 65 + MAX( DISTINCT + 90 + - CASE WHEN NOT + 75 NOT IN ( 47 ) THEN NULL WHEN NOT ( NULL ) <> + 69 THEN 46 ELSE NULL END ) * - 39 * - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5718
SELECT 48 * - 87 * - 86 + - 53 - + 65 + MAX ( DISTINCT + 90 + - CASE WHEN NOT + 75 NOT IN ( 47 ) THEN NULL WHEN NOT ( NULL ) <> + 69 THEN 46 ELSE NULL END ) * - 39 * - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT DISTINCT 81 * - + 48 + + 86
----
-3802

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT + SUM( DISTINCT + - CASE WHEN NOT 65 <= ( 81 ) THEN + 79 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5720
SELECT + SUM ( DISTINCT + - CASE WHEN NOT 65 <= ( 81 ) THEN + 79 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT + MIN( + 32 ) + 30 + - 40 * + + 82
----
-3218

skipif mysql # not compatible
query I rowsort label-5721
SELECT + MIN ( + 32 ) + 30 + - 40 * + + 82
----
-3218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5722
SELECT 94 * + + SUM( - - CAST( NULL AS SIGNED ) ) * + ( + 7 ) * COUNT( * ) - 18 * 51 - + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5722
SELECT 94 * + + SUM ( - - CAST ( NULL AS INTEGER ) ) * + ( + 7 ) * COUNT ( * ) - 18 * 51 - + 83 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5723
SELECT CASE 15 WHEN - COALESCE ( - 36, - - 84 ) THEN 49 WHEN COUNT( * ) THEN NULL WHEN + 56 THEN 25 END * COALESCE ( + 47, 7 * + 68, ( + 54 ) * 45 + 50 * + CASE 80 WHEN CASE 15 WHEN + 58 + + 43 THEN - 43 * 51 ELSE - ( CAST( NULL AS SIGNED ) ) END THEN 81 + 16 WHEN 85 * ( - 59 ) THEN - 98 ELSE SUM( + 27 ) * - 4 END ) + 55 * ( + 56 / - 44 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5723
SELECT CASE 15 WHEN - COALESCE ( - 36, - - 84 ) THEN 49 WHEN COUNT ( * ) THEN NULL WHEN + 56 THEN 25 END * COALESCE ( + 47, 7 * + 68, ( + 54 ) * 45 + 50 * + CASE 80 WHEN CASE 15 WHEN + 58 + + 43 THEN - 43 * 51 ELSE - ( CAST ( NULL AS INTEGER ) ) END THEN 81 + 16 WHEN 85 * ( - 59 ) THEN - 98 ELSE SUM ( + 27 ) * - 4 END ) + 55 * ( + 56 / - 44 ) col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5724
SELECT - 61 + - COUNT ( ALL + + ( + + 95 ) ) AS col2
----
-62

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

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

query I rowsort
SELECT ALL + 49 - + 38 * + + ( - - COALESCE ( + ( 91 ), - 69 + - 72 * + 95 ) ) - + 74
----
-3483

query I rowsort
SELECT DISTINCT 54 * + 49 AS col0
----
2646

query I rowsort
SELECT - 25 + - NULLIF ( - - 60, + 19 + + + 12 + - 73 ) + 44
----
-41

query I rowsort
SELECT - 83 * - + NULLIF ( - 16, - 9 * 83 ) AS col1
----
-1328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5730
SELECT ALL + CAST( NULL AS SIGNED ) / - ( - COALESCE ( + 90, - - 17, + 26 ) ) * ( + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL + CAST ( NULL AS INTEGER ) / - ( - COALESCE ( + 90, - - 17, + 26 ) ) * ( + 4 )
----
NULL

query I rowsort
SELECT - 1 + - 99 * + 14 * + ( 80 )
----
-110881

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

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL MIN ( 24 )
----
24

query I rowsort
SELECT 23 * - 92 + - 6 AS col1
----
-2122

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT - MIN( DISTINCT 83 ) * - 97 + 74
----
8125

skipif mysql # not compatible
query I rowsort label-5735
SELECT - MIN ( DISTINCT 83 ) * - 97 + 74
----
8125

onlyif mysql # aggregate syntax: 
query II rowsort label-5736
SELECT - MIN( + 38 ) + - - COUNT( * ) AS col1, 94 - COUNT( * ) AS col1
----
-37
93

skipif mysql # not compatible
query II rowsort label-5736
SELECT - MIN ( + 38 ) + - - COUNT ( * ) AS col1, 94 - COUNT ( * ) AS col1
----
-37
93

query II rowsort
SELECT - 70, - 36 AS col1
----
-70
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT - + NULLIF ( - 96, CASE + MAX( DISTINCT - 13 ) WHEN 23 THEN - 89 END + + 72 * 98 ) / - CASE + 78 / 23 + 71 WHEN - 85 THEN + NULLIF ( 8, 78 ) + - 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT - + NULLIF ( - 96, CASE + MAX ( DISTINCT - 13 ) WHEN 23 THEN - 89 END + + 72 * 98 ) / - CASE + 78 / 23 + 71 WHEN - 85 THEN + NULLIF ( 8, 78 ) + - 41 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5739
SELECT DISTINCT - + COALESCE ( - COALESCE ( - + NULLIF ( + CAST( NULL AS SIGNED ), 68 * CAST( 10 AS SIGNED ) + + 88 ), - COUNT( * ) * 22 + + 71 ), CAST( NULL AS SIGNED ) + - 46 ) * 64
----
3136

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT - + COALESCE ( - COALESCE ( - + NULLIF ( + CAST ( NULL AS INTEGER ), 68 * CAST ( 10 AS INTEGER ) + + 88 ), - COUNT ( * ) * 22 + + 71 ), CAST ( NULL AS INTEGER ) + - 46 ) * 64
----
3136

query I rowsort
SELECT ALL - 34 + + + 16 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT - + 29 * - 88 * + - COUNT( * ) + + 0 + - 18 * NULLIF ( - 39, 6 * 26 )
----
-1850

skipif mysql # not compatible
query I rowsort label-5741
SELECT - + 29 * - 88 * + - COUNT ( * ) + + 0 + - 18 * NULLIF ( - 39, 6 * 26 )
----
-1850

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT - - 54 * - 52 * + 36 + - COUNT( * ) AS col2
----
-101089

skipif mysql # not compatible
query I rowsort label-5743
SELECT - - 54 * - 52 * + 36 + - COUNT ( * ) AS col2
----
-101089

query I rowsort
SELECT - - 43 - + 0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5745
SELECT DISTINCT + 32 + + - 63 * - 65, CAST( NULL AS SIGNED ) AS col2
----
4127
NULL

skipif mysql # not compatible
query II rowsort label-5745
SELECT DISTINCT + 32 + + - 63 * - 65, CAST ( NULL AS INTEGER ) AS col2
----
4127
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT ALL - - 23 + - 81 + - COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL - - 23 + - 81 + - COUNT ( * ) AS col1
----
-59

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

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL + MAX ( + - ( + CAST ( NULL AS INTEGER ) ) ) + 91
----
NULL

query I rowsort
SELECT - 12 - + + 63 - - ( + 27 ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT DISTINCT + + ( - 1 ) + + COALESCE ( - - NULLIF ( - + 95, - COUNT( * ) - - 41 / - COUNT( * ) ), - MIN( DISTINCT 9 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT + + ( - 1 ) + + COALESCE ( - - NULLIF ( - + 95, - COUNT ( * ) - - 41 / - COUNT ( * ) ), - MIN ( DISTINCT 9 ) )
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5750
SELECT ALL + + 4 AS col0, + MIN( + 8 ) DIV - 5 + + - 13 + ( ( - ( 75 ) ) ) DIV 34
----
4
-16

skipif mysql # not compatible
query II rowsort label-5750
SELECT ALL + + 4 AS col0, + MIN ( + 8 ) / - 5 + + - 13 + ( ( - ( 75 ) ) ) / 34
----
4
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5751
SELECT ALL 44 DIV - + ( - - MIN( ALL - 77 ) ) * + - MIN( DISTINCT 33 ) + 39 DIV + 86 + 59
----
59

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL 44 / - + ( - - MIN ( ALL - 77 ) ) * + - MIN ( DISTINCT 33 ) + 39 / + 86 + 59
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5752
SELECT ALL + 16 * COALESCE ( 7, + - 67 + COUNT( * ) DIV 43 ) AS col0
----
112

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL + 16 * COALESCE ( 7, + - 67 + COUNT ( * ) / 43 ) AS col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT - ( 39 ) * - - SUM( - - 45 )
----
-1755

skipif mysql # not compatible
query I rowsort label-5753
SELECT - ( 39 ) * - - SUM ( - - 45 )
----
-1755

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT + 2 * + 31 * - + COUNT( * ) + + - 62 * - + 30
----
1798

skipif mysql # not compatible
query I rowsort label-5755
SELECT + 2 * + 31 * - + COUNT ( * ) + + - 62 * - + 30
----
1798

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT ( MIN( DISTINCT 49 ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5757
SELECT ( MIN ( DISTINCT 49 ) ) AS col1
----
49

query I rowsort
SELECT 99 * - 46 + + 2 AS col2
----
-4552

query I rowsort
SELECT + 20 - + - 49
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5760
SELECT DISTINCT + COALESCE ( + - 42, - CAST( NULL AS SIGNED ) - COALESCE ( + 5, + - 88, 90 + 90, - 71 * + 39 + 99 ), 21 * + CASE 30 / - CASE ( + 33 ) WHEN 78 THEN - 41 END WHEN - COUNT( DISTINCT + 2 ) * 91 + + 56 THEN 33 WHEN - 95 THEN NULL ELSE NULL END - 0 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5760
SELECT DISTINCT + COALESCE ( + - 42, - CAST ( NULL AS INTEGER ) - COALESCE ( + 5, + - 88, 90 + 90, - 71 * + 39 + 99 ), 21 * + CASE 30 / - CASE ( + 33 ) WHEN 78 THEN - 41 END WHEN - COUNT ( DISTINCT + 2 ) * 91 + + 56 THEN 33 WHEN - 95 THEN NULL ELSE NULL END - 0 ) AS col0
----
-42

query II rowsort
SELECT ALL + 26, - 32 AS col0
----
26
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT + CASE COUNT( * ) WHEN - + 5 THEN NULL WHEN + 30 * - - 79 - 13 THEN 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT + CASE COUNT ( * ) WHEN - + 5 THEN NULL WHEN + 30 * - - 79 - 13 THEN 38 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5763
SELECT DISTINCT 72 DIV + NULLIF ( + SUM( DISTINCT - - 77 ), - - 74 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT 72 / + NULLIF ( + SUM ( DISTINCT - - 77 ), - - 74 ) AS col0
----
0

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

query I rowsort
SELECT CASE - - 52 WHEN + 11 - + 42 THEN 48 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5766
SELECT DISTINCT 7 DIV 31
----
0

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT 7 / 31
----
0

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

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

query II rowsort
SELECT ALL + 71 AS col1, 3 * + - 9 AS col0
----
71
-27

query I rowsort
SELECT 55 * 34 * - + 29 + - 33 + - 83 - + - 31 + - NULLIF ( + ( 42 ), + ( 14 ) ) AS col2
----
-54357

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT CASE - COALESCE ( - + ( - 30 ), - + ( AVG ( ALL - 69 ) ), 75 - SUM( ALL - 87 ) ) WHEN - 18 / - 31 THEN NULL ELSE ( 74 ) - 18 END AS col2
----
56

skipif mysql # not compatible
query I rowsort label-5770
SELECT CASE - COALESCE ( - + ( - 30 ), - + ( AVG ( ALL - 69 ) ), 75 - SUM ( ALL - 87 ) ) WHEN - 18 / - 31 THEN NULL ELSE ( 74 ) - 18 END AS col2
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT + 41 + + MAX( DISTINCT + 20 ) * 87 + - - 78 AS col1
----
1859

skipif mysql # not compatible
query I rowsort label-5772
SELECT + 41 + + MAX ( DISTINCT + 20 ) * 87 + - - 78 AS col1
----
1859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5773
SELECT DISTINCT CASE + 11 WHEN 33 * + 29 + - 78 THEN NULL ELSE 46 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT CASE + 11 WHEN 33 * + 29 + - 78 THEN NULL ELSE 46 END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5774
SELECT + - NULLIF ( CAST( NULL AS SIGNED ), 83 / + + NULLIF ( - 81, - 47 ) + - 78 ) - + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5774
SELECT + - NULLIF ( CAST ( NULL AS INTEGER ), 83 / + + NULLIF ( - 81, - 47 ) + - 78 ) - + 13
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ALL - - COUNT( * ) * - - NULLIF ( - + COUNT( * ), - 73 ) + + MAX( + 77 ) + 31
----
107

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL - - COUNT ( * ) * - - NULLIF ( - + COUNT ( * ), - 73 ) + + MAX ( + 77 ) + 31
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5777
SELECT ALL COUNT( 87 ) * + COUNT( * ) DIV - 96 - COUNT( * ) + - - 70 + 7
----
76

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL COUNT ( 87 ) * + COUNT ( * ) / - 96 - COUNT ( * ) + - - 70 + 7
----
76

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

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

skipif mysql # not compatible
query I rowsort label-5779
SELECT + - COUNT ( ALL + 69 ) / + + 83 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-5780
SELECT - + 83 * - COUNT ( * ) * MAX ( + + 95 ) AS col2
----
7885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5781
SELECT + CAST( 54 AS SIGNED ) + + 54 + - COUNT( * ) DIV MAX( ALL - + 71 )
----
108

skipif mysql # not compatible
query I rowsort label-5781
SELECT + CAST ( 54 AS INTEGER ) + + 54 + - COUNT ( * ) / MAX ( ALL - + 71 )
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-5782
SELECT DISTINCT - 61 DIV ( - - 65 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT - 61 / ( - - 65 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT ALL + 3 + + COUNT( - 78 ) + + 19 + + + ( + - 24 ) * 74
----
-1753

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL + 3 + + COUNT ( - 78 ) + + 19 + + + ( + - 24 ) * 74
----
-1753

onlyif mysql # DIV for integer division: 
query I rowsort label-5784
SELECT + 83 + + 41 DIV - 99 + 56 DIV 3
----
101

skipif mysql # not compatible
query I rowsort label-5784
SELECT + 83 + + 41 / - 99 + 56 / 3
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT - COUNT( ALL 58 ) - 18 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5785
SELECT - COUNT ( ALL 58 ) - 18 AS col1
----
-19

query I rowsort
SELECT - 66 - + 77
----
-143

query I rowsort
SELECT ALL - 12 * + 40 AS col2
----
-480

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

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT - COUNT ( * ) / + ( + MIN ( DISTINCT + 99 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5789
SELECT ALL - COALESCE ( 5, + - CAST( - 2 AS SIGNED ) + + 74 ) + + 70 + + 75 * + COUNT( ALL 8 )
----
140

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL - COALESCE ( 5, + - CAST ( - 2 AS INTEGER ) + + 74 ) + + 70 + + 75 * + COUNT ( ALL 8 )
----
140

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

skipif mysql # not compatible
query I rowsort label-5790
SELECT - - MAX ( ALL - 2 )
----
-2

query I rowsort
SELECT ALL - - ( 18 ) * + 13 AS col0
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5792
SELECT DISTINCT + COUNT( * ) + + + 80 * ( COUNT( * ) ) + - + 87 * - 48 - CASE ( - 64 ) WHEN 21 / CAST( NULL AS SIGNED ) THEN 72 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT + COUNT ( * ) + + + 80 * ( COUNT ( * ) ) + - + 87 * - 48 - CASE ( - 64 ) WHEN 21 / CAST ( NULL AS INTEGER ) THEN 72 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT ALL + COALESCE ( + 74, + - 71 * - + COUNT( * ), + - 70 )
----
74

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL + COALESCE ( + 74, + - 71 * - + COUNT ( * ), + - 70 )
----
74

query I rowsort
SELECT ( 95 ) + - + 81 AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5796
SELECT ALL + + 91 + + - COUNT( * ) + + + 51 * - 82 + - - 67 + - + ( + 29 ) + 39 DIV - 83 * - NULLIF ( 93, 60 ) AS col0
----
-4054

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL + + 91 + + - COUNT ( * ) + + + 51 * - 82 + - - 67 + - + ( + 29 ) + 39 / - 83 * - NULLIF ( 93, 60 ) AS col0
----
-4054

onlyif mysql # aggregate syntax: 
query II rowsort label-5797
SELECT - 7 AS col0, + COUNT( * ) * + 94 AS col1
----
-7
94

skipif mysql # not compatible
query II rowsort label-5797
SELECT - 7 AS col0, + COUNT ( * ) * + 94 AS col1
----
-7
94

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

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

query I rowsort
SELECT 75 * 77
----
5775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5800
SELECT NULLIF ( + 44, - - 89 ) * + CASE CAST( NULL AS SIGNED ) WHEN COUNT( * ) / + 67 * COUNT( * ) + 83 THEN NULL WHEN 35 THEN 55 * - 72 + + 51 * AVG ( DISTINCT + ( - 25 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5800
SELECT NULLIF ( + 44, - - 89 ) * + CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) / + 67 * COUNT ( * ) + 83 THEN NULL WHEN 35 THEN 55 * - 72 + + 51 * AVG ( DISTINCT + ( - 25 ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5801
SELECT + 66 DIV COUNT( * ) + 10 * - 56
----
-494

skipif mysql # not compatible
query I rowsort label-5801
SELECT + 66 / COUNT ( * ) + 10 * - 56
----
-494

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL 19 * + CASE + - 52 WHEN + 19 THEN 49 * - 8 END * + 68 * - 63 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL 19 * + CASE + - 52 WHEN + 19 THEN 49 * - 8 END * + 68 * - 63 - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5804
SELECT DISTINCT - 49 * + 32 AS col0, + ( + - COUNT( * ) ) + - - CASE - 29 WHEN + + 60 THEN + COUNT( * ) * + 97 + 59 WHEN + 57 * + 25 THEN + 94 ELSE 39 END * - NULLIF ( 83, + 52 + 62 )
----
-1568
-3238

skipif mysql # not compatible
query II rowsort label-5804
SELECT DISTINCT - 49 * + 32 AS col0, + ( + - COUNT ( * ) ) + - - CASE - 29 WHEN + + 60 THEN + COUNT ( * ) * + 97 + 59 WHEN + 57 * + 25 THEN + 94 ELSE 39 END * - NULLIF ( 83, + 52 + 62 )
----
-1568
-3238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5805
SELECT ALL - COALESCE ( - COUNT( * ), - - 16 + - - CAST( - MIN( + 94 ) AS SIGNED ) * + ( 99 ), - 54 )
----
1

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL - COALESCE ( - COUNT ( * ), - - 16 + - - CAST ( - MIN ( + 94 ) AS INTEGER ) * + ( 99 ), - 54 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT - 22 * 67 * 75 + - COUNT( * )
----
-110551

skipif mysql # not compatible
query I rowsort label-5806
SELECT - 22 * 67 * 75 + - COUNT ( * )
----
-110551

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT 90 * + - CASE + 15 WHEN 75 THEN - 43 WHEN + 26 * + COUNT( * ) THEN + 34 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT 90 * + - CASE + 15 WHEN 75 THEN - 43 WHEN + 26 * + COUNT ( * ) THEN + 34 ELSE NULL END
----
NULL

query I rowsort
SELECT - 59 * - 37 + + + 17 AS col1
----
2200

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

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

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

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

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

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

query II rowsort
SELECT - 1 + - + 48 AS col1, + 35
----
-49
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5813
SELECT ALL CAST( - 40 AS SIGNED ) DIV NULLIF ( COUNT( * ), + + 33 ) AS col1, 78 AS col2
----
-40
78

skipif mysql # not compatible
query II rowsort label-5813
SELECT ALL CAST ( - 40 AS INTEGER ) / NULLIF ( COUNT ( * ), + + 33 ) AS col1, 78 AS col2
----
-40
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT DISTINCT - CAST( + - 81 AS SIGNED ) + + 22 * - 99 * + 67 + + - 90 - - 92 * - 89
----
-154123

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT - CAST ( + - 81 AS INTEGER ) + + 22 * - 99 * + 67 + + - 90 - - 92 * - 89
----
-154123

query I rowsort
SELECT ALL 84 + + ( + 91 ) AS col1
----
175

query I rowsort
SELECT DISTINCT - 16 * 14 * + - 47 AS col0
----
10528

onlyif mysql # aggregate syntax: 
query II rowsort label-5817
SELECT - ( - COUNT( * ) ) AS col0, SUM( 42 )
----
1
42

skipif mysql # not compatible
query II rowsort label-5817
SELECT - ( - COUNT ( * ) ) AS col0, SUM ( 42 )
----
1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT + CASE 34 WHEN - 90 THEN - 20 / + 80 * - MAX( DISTINCT 91 ) END + + 92 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5818
SELECT + CASE 34 WHEN - 90 THEN - 20 / + 80 * - MAX ( DISTINCT 91 ) END + + 92 col1
----
NULL

query I rowsort
SELECT ALL - 71 + + - CASE + 19 WHEN 11 * COALESCE ( + 25, + + 24, + 29 * - ( 82 ) ) * - CASE + 60 WHEN + 74 THEN NULLIF ( - 78, 11 ) - 85 ELSE NULL END + - 98 THEN NULL ELSE 22 END * - 14
----
237

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

skipif mysql # not compatible
query I rowsort label-5820
SELECT - 30 / + 30 * - COUNT ( DISTINCT + 98 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5821
SELECT 5 * - + 92 AS col1, 19 DIV 34 col2
----
-460
0

skipif mysql # not compatible
query II rowsort label-5821
SELECT 5 * - + 92 AS col1, 19 / 34 col2
----
-460
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5822
SELECT ALL - 56 DIV + - MIN( + 23 )
----
2

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL - 56 / + - MIN ( + 23 )
----
2

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

skipif mysql # not compatible
query I rowsort label-5823
SELECT 10 / - COUNT ( * ) col0
----
-10

query I rowsort
SELECT ALL - 26 * + 2 col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT MIN( DISTINCT - 20 ) * + 71 * - 12 AS col1
----
17040

skipif mysql # not compatible
query I rowsort label-5825
SELECT MIN ( DISTINCT - 20 ) * + 71 * - 12 AS col1
----
17040

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

skipif mysql # not compatible
query II rowsort label-5826
SELECT ALL 99, - COUNT ( * ) AS col0
----
99
-1

query I rowsort
SELECT ALL 96 * + 84
----
8064

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL - MAX( ALL + 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL - MAX ( ALL + 56 ) AS col1
----
-56

query I rowsort
SELECT DISTINCT 31 * - 89
----
-2759

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

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL - MAX ( ( - - 26 ) ) * + COUNT ( * ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT DISTINCT + 9 * + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT + 9 * + COUNT ( * ) AS col0
----
9

query II rowsort
SELECT - 18 * - 84 - 45, 72 + - - 24 AS col0
----
1467
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5833
SELECT ( + COUNT( * ) ) DIV + 76 - + 81 - 37
----
-118

skipif mysql # not compatible
query I rowsort label-5833
SELECT ( + COUNT ( * ) ) / + 76 - + 81 - 37
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5834
SELECT ALL - COUNT( DISTINCT + - NULLIF ( + 5, - 40 * - - 41 + + + 66 ) ) AS col1, CAST( + 97 AS SIGNED )
----
-1
97

skipif mysql # not compatible
query II rowsort label-5834
SELECT ALL - COUNT ( DISTINCT + - NULLIF ( + 5, - 40 * - - 41 + + + 66 ) ) AS col1, CAST ( + 97 AS INTEGER )
----
-1
97

query I rowsort
SELECT ALL + 73 + - - 20 * - 81 + ( + 28 ) + 85
----
-1434

query I rowsort
SELECT - 55 * - 91 + 31 + - - 64
----
5100

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5838
SELECT COUNT( * ) AS col0, COUNT( * ) DIV - - 85 + - - 54 + + + 70 - COUNT( * ) * + 92 AS col2
----
1
32

skipif mysql # not compatible
query II rowsort label-5838
SELECT COUNT ( * ) AS col0, COUNT ( * ) / - - 85 + - - 54 + + + 70 - COUNT ( * ) * + 92 AS col2
----
1
32

query I rowsort
SELECT ALL - 28 + - 11 AS col0
----
-39

query I rowsort
SELECT ALL 6 + - 98
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5841
SELECT ALL 65 + 38 DIV - ( 86 ) * 17
----
65

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL 65 + 38 / - ( 86 ) * 17
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT ALL - ( + 64 ) * 87 * + 21 + - COUNT( ALL - 29 ) + + 47 AS col1
----
-116882

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL - ( + 64 ) * 87 * + 21 + - COUNT ( ALL - 29 ) + + 47 AS col1
----
-116882

query I rowsort
SELECT DISTINCT + 69 + + - 49
----
20

query III rowsort
SELECT DISTINCT - + ( - 63 ) * - 54 AS col0, 86 AS col0, + 78
----
-3402
86
78

query I rowsort
SELECT + 21 * + - 13 AS col0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT DISTINCT - - MIN( DISTINCT - + 5 ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT - - MIN ( DISTINCT - + 5 ) col0
----
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT + 65 + - + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5848
SELECT + 65 + - + COUNT ( * ) AS col0
----
64

query II rowsort
SELECT DISTINCT - - 50 - - 95 * - 84 col0, 51 AS col2
----
-7930
51

query I rowsort
SELECT 15 * NULLIF ( - 74, + 5 ) - + 91
----
-1201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5851
SELECT ALL COALESCE ( COUNT( DISTINCT - ( - + 15 ) ), + 72, - COALESCE ( COUNT( * ), + + CAST( ( 17 ) AS SIGNED ) * + 87 + + COALESCE ( - COUNT( * ), + 21 - - 97, - 28 * + 98 ) DIV MAX( + 98 ) ) * 42 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL COALESCE ( COUNT ( DISTINCT - ( - + 15 ) ), + 72, - COALESCE ( COUNT ( * ), + + CAST ( ( 17 ) AS INTEGER ) * + 87 + + COALESCE ( - COUNT ( * ), + 21 - - 97, - 28 * + 98 ) / MAX ( + 98 ) ) * 42 ) col2
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5853
SELECT DISTINCT CAST( + 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-5853
SELECT DISTINCT CAST ( + 27 AS INTEGER )
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5854
SELECT - - COUNT( * ) DIV - 22 * 90 * + 50 + 27 col1
----
27

skipif mysql # not compatible
query I rowsort label-5854
SELECT - - COUNT ( * ) / - 22 * 90 * + 50 + 27 col1
----
27

query I rowsort
SELECT DISTINCT - ( 99 ) * - 90
----
8910

query I rowsort
SELECT - + 54 + + 26 col1
----
-28

query II rowsort
SELECT - 80 AS col1, 27 + - 26
----
-80
1

query I rowsort
SELECT ALL - 10 * 52 col1
----
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT + + 5 + + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-5859
SELECT + + 5 + + + COUNT ( * )
----
6

query I rowsort
SELECT ALL - + ( + 22 ) * + 73 + + 60 col0
----
-1546

query I rowsort
SELECT DISTINCT 56 * + ( + + 56 ) col0
----
3136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT + 61 + CASE 11 WHEN - 32 THEN + 56 - - - 10 * - ( - - COUNT( * ) ) WHEN + COUNT( * ) * ( - 78 + - 70 ) THEN 28 END + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5863
SELECT + 61 + CASE 11 WHEN - 32 THEN + 56 - - - 10 * - ( - - COUNT ( * ) ) WHEN + COUNT ( * ) * ( - 78 + - 70 ) THEN 28 END + - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT DISTINCT 84 + + 15 * MIN( 2 ) * - 22 * - + 3
----
2064

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT 84 + + 15 * MIN ( 2 ) * - 22 * - + 3
----
2064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5865
SELECT - CASE - 92 WHEN + + 49 THEN - + COUNT( - + 62 ) ELSE - - 90 * + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5865
SELECT - CASE - 92 WHEN + + 49 THEN - + COUNT ( - + 62 ) ELSE - - 90 * + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 1 * 25 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT ALL - 22 * + 92 + 41 * + COUNT( * ) AS col0
----
-1983

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL - 22 * + 92 + 41 * + COUNT ( * ) AS col0
----
-1983

onlyif mysql # aggregate syntax: 
query II rowsort label-5868
SELECT DISTINCT - MAX( ALL 13 ) * + COUNT( * ) + + 5 AS col1, 96 - - + 45
----
-8
141

skipif mysql # not compatible
query II rowsort label-5868
SELECT DISTINCT - MAX ( ALL 13 ) * + COUNT ( * ) + + 5 AS col1, 96 - - + 45
----
-8
141

query I rowsort
SELECT ALL + 83 * 0 + + 9 + + 73 * 26
----
1907

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT ALL 25 * - 14 * - CASE 99 WHEN - 15 THEN 20 - ( + COUNT( * ) ) WHEN + 71 THEN ( - COUNT( ALL - 65 ) ) END * 31 + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL 25 * - 14 * - CASE 99 WHEN - 15 THEN 20 - ( + COUNT ( * ) ) WHEN + 71 THEN ( - COUNT ( ALL - 65 ) ) END * 31 + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT DISTINCT COUNT( * ) * - 30 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT COUNT ( * ) * - 30 AS col1
----
-30

query I rowsort
SELECT - 65 + + 7
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5873
SELECT ALL + + 52 * 88 DIV + 9 + + COUNT( ALL - 99 ) * 76 AS col0
----
584

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL + + 52 * 88 / + 9 + + COUNT ( ALL - 99 ) * 76 AS col0
----
584

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

query I rowsort
SELECT DISTINCT + CASE - 99 WHEN + - 90 THEN - + 6 WHEN + - ( - 7 ) THEN + 49 + - 46 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5876
SELECT DISTINCT + 37 * + COALESCE ( + 73, CAST( NULL AS SIGNED ) ) - - 55 + + 28 * 9
----
3008

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT + 37 * + COALESCE ( + 73, CAST ( NULL AS INTEGER ) ) - - 55 + + 28 * 9
----
3008

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

query I rowsort
SELECT - + 44 + 6 * 7 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5879
SELECT DISTINCT - 33 * - - 69 * + - CAST( + COUNT( * ) AS SIGNED ) + + 78 * - 74 col2
----
-3495

skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT - 33 * - - 69 * + - CAST ( + COUNT ( * ) AS INTEGER ) + + 78 * - 74 col2
----
-3495

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL + SUM( DISTINCT - 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL + SUM ( DISTINCT - 85 ) AS col2
----
-85

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

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

query II rowsort
SELECT - + 0 * 81, 4 * + + 85 + - + 51 + + 96 AS col1
----
0
385

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

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

query I rowsort
SELECT + NULLIF ( - ( + 17 ), + + COALESCE ( + 26, + + 7 ) ) + 40 AS col0
----
23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5886
SELECT - 79 * 84 DIV 29 * - ( - 19 ) col2
----
-4332

skipif mysql # not compatible
query I rowsort label-5886
SELECT - 79 * 84 / 29 * - ( - 19 ) col2
----
-4332

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5888
SELECT - - 17 DIV - + MAX( + - 98 ) + + 39 DIV - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-5888
SELECT - - 17 / - + MAX ( + - 98 ) + + 39 / - COUNT ( * )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5889
SELECT DISTINCT ( 31 ) DIV CAST( - ( - ( + NULLIF ( - COUNT( * ), + 76 * - 0 DIV + 61 DIV - CAST( NULL AS SIGNED ) - + ( 13 + 10 ) + + 98 ) ) ) AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT ( 31 ) / CAST ( - ( - ( + NULLIF ( - COUNT ( * ), + 76 * - 0 / + 61 / - CAST ( NULL AS INTEGER ) - + ( 13 + 10 ) + + 98 ) ) ) AS INTEGER )
----
-31

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

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

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

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

query I rowsort
SELECT - 49 - + 44
----
-93

query I rowsort
SELECT - 25 - - 96
----
71

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

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

query I rowsort
SELECT ALL - 73 + - 6 + - 53
----
-132

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

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

query I rowsort
SELECT ALL ( + 12 ) + - 76 AS col2
----
-64

query I rowsort
SELECT ALL NULLIF ( 43, + 92 ) * 78 AS col1
----
3354

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5900
SELECT ALL + 78 / 54 + - 37 + COUNT( * ) + CAST( NULL AS DECIMAL ) * + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL + 78 / 54 + - 37 + COUNT ( * ) + CAST ( NULL AS REAL ) * + - 21
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5901
SELECT ALL + ( + 27 ) DIV - 65 + + 84 * - + 56 * 33
----
-155232

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL + ( + 27 ) / - 65 + + 84 * - + 56 * 33
----
-155232

query I rowsort
SELECT + CASE - 26 WHEN + - 44 THEN + 39 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT ALL - 12 DIV 61 + + - ( + - 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL - 12 / 61 + + - ( + - 86 ) AS col1
----
86

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5905
SELECT - 54 * + + 68 + 85 + - COUNT( * ) DIV 99 * + 24 + 8 * - + COUNT( * )
----
-3595

skipif mysql # not compatible
query I rowsort label-5905
SELECT - 54 * + + 68 + 85 + - COUNT ( * ) / 99 * + 24 + 8 * - + COUNT ( * )
----
-3595

query I rowsort
SELECT - ( + + 60 ) * - - 3
----
-180

query I rowsort
SELECT ALL 64 * 74
----
4736

onlyif mysql # aggregate syntax: 
query II rowsort label-5908
SELECT - 7 AS col0, - COUNT( * ) * + 63 AS col2
----
-7
-63

skipif mysql # not compatible
query II rowsort label-5908
SELECT - 7 AS col0, - COUNT ( * ) * + 63 AS col2
----
-7
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5909
SELECT DISTINCT 12 DIV - 3 - + + 2 + - 65 + + + 23 * - + COUNT( * ) * - - SUM( 42 )
----
-1037

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT 12 / - 3 - + + 2 + - 65 + + + 23 * - + COUNT ( * ) * - - SUM ( 42 )
----
-1037

onlyif mysql # DIV for integer division: 
query I rowsort label-5910
SELECT DISTINCT + 17 DIV + + 73
----
0

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT + 17 / + + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT ALL + + COALESCE ( CASE 48 WHEN - 71 + COUNT( * ) THEN - COALESCE ( - 67, 33, - - 18 ) END, + - 82 ) * + 86 col2
----
-7052

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL + + COALESCE ( CASE 48 WHEN - 71 + COUNT ( * ) THEN - COALESCE ( - 67, 33, - - 18 ) END, + - 82 ) * + 86 col2
----
-7052

query I rowsort
SELECT + 60 * + 98 + + - 78 + 91 * 71 AS col2
----
12263

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

query II rowsort
SELECT DISTINCT - - 35, - 78 AS col1
----
35
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5915
SELECT ALL - CAST( 18 AS SIGNED ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL - CAST ( 18 AS INTEGER ) AS col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5916
SELECT + 27 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-5916
SELECT + 27 / 86
----
0

query I rowsort
SELECT 70 * - 57 + 8 AS col0
----
-3982

query I rowsort
SELECT + 37 * - + 95 + - 20 AS col2
----
-3535

query I rowsort
SELECT 3 + - 95 AS col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5920
SELECT ALL - - 93 AS col0, + ( - + 57 ), - + CAST( NULL AS SIGNED ) AS col0
----
93
-57
NULL

skipif mysql # not compatible
query III rowsort label-5920
SELECT ALL - - 93 AS col0, + ( - + 57 ), - + CAST ( NULL AS INTEGER ) AS col0
----
93
-57
NULL

query I rowsort
SELECT + + ( - - 33 ) * - CASE + 34 WHEN + 99 THEN - 14 END + 0 + + 51 AS col0
----
NULL

query I rowsort
SELECT ALL + 77 * - - 0 - - 16 - + + 3 AS col2
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT COUNT( * ) + + COALESCE ( + COUNT( * ), 2 )
----
2

skipif mysql # not compatible
query I rowsort label-5924
SELECT COUNT ( * ) + + COALESCE ( + COUNT ( * ), 2 )
----
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5926
SELECT DISTINCT 44 AS col2, - MAX( DISTINCT - + CAST( + 24 AS SIGNED ) ) AS col0
----
44
24

skipif mysql # not compatible
query II rowsort label-5926
SELECT DISTINCT 44 AS col2, - MAX ( DISTINCT - + CAST ( + 24 AS INTEGER ) ) AS col0
----
44
24

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

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

query I rowsort
SELECT 0 + - 89
----
-89

query I rowsort
SELECT ALL - 77 + - - 94 + + 19 col0
----
36

query I rowsort
SELECT 45 - + 45 + + + 71 + 87 AS col1
----
158

query I rowsort
SELECT 19 + - 60 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT ALL + 41 + + - COUNT( * ) - - 39 * 68 + - 30
----
2662

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL + 41 + + - COUNT ( * ) - - 39 * 68 + - 30
----
2662

query I rowsort
SELECT ALL + 5 + 53 AS col1
----
58

query I rowsort
SELECT ALL 90 + + - 55 AS col0
----
35

query I rowsort
SELECT 35 * - + 14
----
-490

onlyif mysql # DIV for integer division: 
query I rowsort label-5936
SELECT ALL 7 DIV + 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL 7 / + 49 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5937
SELECT DISTINCT - 60 + + COALESCE ( 19, 28 DIV 91 ) + - CASE COUNT( DISTINCT + 26 ) WHEN 15 THEN 98 WHEN - + 63 THEN NULL ELSE - 2 + 14 * NULLIF ( - 67, - ( 29 ) ) END + + CAST( ( 87 ) + - 57 DIV 45 AS SIGNED ) AS col0
----
985

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT - 60 + + COALESCE ( 19, 28 / 91 ) + - CASE COUNT ( DISTINCT + 26 ) WHEN 15 THEN 98 WHEN - + 63 THEN NULL ELSE - 2 + 14 * NULLIF ( - 67, - ( 29 ) ) END + + CAST ( ( 87 ) + - 57 / 45 AS INTEGER ) AS col0
----
985

query I rowsort
SELECT 25 * - 19 AS col2
----
-475

query I rowsort
SELECT 34 * 60 * + 40 AS col1
----
81600

onlyif mysql # aggregate syntax: 
query II rowsort label-5940
SELECT 68 AS col0, - 0 + - + 12 + - + NULLIF ( - SUM( DISTINCT 95 ), 44 * - 5 ) * - SUM( DISTINCT + + 57 ) + + + 52
----
68
-5375

skipif mysql # not compatible
query II rowsort label-5940
SELECT 68 AS col0, - 0 + - + 12 + - + NULLIF ( - SUM ( DISTINCT 95 ), 44 * - 5 ) * - SUM ( DISTINCT + + 57 ) + + + 52
----
68
-5375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5941
SELECT ALL - 5, CASE - 30 WHEN - 89 THEN - 37 + - - ( + ( + NULLIF ( - CAST( + - 58 AS SIGNED ), + 54 ) ) ) WHEN 77 THEN NULL ELSE + 85 * - CASE + 91 WHEN 51 THEN 35 END END / 63 AS col2
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-5941
SELECT ALL - 5, CASE - 30 WHEN - 89 THEN - 37 + - - ( + ( + NULLIF ( - CAST ( + - 58 AS INTEGER ), + 54 ) ) ) WHEN 77 THEN NULL ELSE + 85 * - CASE + 91 WHEN 51 THEN 35 END END / 63 AS col2
----
-5
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5942
SELECT 70 / + - 56 * - + 99 * - + CAST( NULL AS SIGNED ) * - - 90 + - NULLIF ( - 71, MAX( ALL - + CAST( NULL AS SIGNED ) ) * - - 20 ) * + 16 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5942
SELECT 70 / + - 56 * - + 99 * - + CAST ( NULL AS INTEGER ) * - - 90 + - NULLIF ( - 71, MAX ( ALL - + CAST ( NULL AS INTEGER ) ) * - - 20 ) * + 16 col1
----
NULL

query I rowsort
SELECT ALL + + 18 - - 96 + 9 AS col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT ALL - 99 * - SUM( ALL ( 72 ) ) AS col2
----
7128

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL - 99 * - SUM ( ALL ( 72 ) ) AS col2
----
7128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5945
SELECT 69 * - ( CAST( + + 69 AS SIGNED ) )
----
-4761

skipif mysql # not compatible
query I rowsort label-5945
SELECT 69 * - ( CAST ( + + 69 AS INTEGER ) )
----
-4761

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT + - NULLIF ( - 7, CASE - 41 WHEN - 12 THEN NULL WHEN - 91 + + - 16 * - 40 * - 9 THEN + 88 ELSE NULL END * - COUNT( * ) + 76 * - COUNT( * ) )
----
7

skipif mysql # not compatible
query I rowsort label-5947
SELECT + - NULLIF ( - 7, CASE - 41 WHEN - 12 THEN NULL WHEN - 91 + + - 16 * - 40 * - 9 THEN + 88 ELSE NULL END * - COUNT ( * ) + 76 * - COUNT ( * ) )
----
7

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

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

query I rowsort
SELECT DISTINCT - - 23 col1
----
23

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

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

query II rowsort
SELECT - 64, ( + 96 ) - 1 - - 22 AS col0
----
-64
117

onlyif mysql # aggregate syntax: 
query II rowsort label-5952
SELECT ALL - - COUNT( * ) AS col2, 85 / + COALESCE ( + 87, + SUM( DISTINCT - 10 ) ) * CASE - COALESCE ( + 89, - 72, + - 19, SUM( 36 ) * - 71 ) WHEN + 60 THEN - 24 END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5952
SELECT ALL - - COUNT ( * ) AS col2, 85 / + COALESCE ( + 87, + SUM ( DISTINCT - 10 ) ) * CASE - COALESCE ( + 89, - 72, + - 19, SUM ( 36 ) * - 71 ) WHEN + 60 THEN - 24 END
----
1
NULL

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

skipif mysql # not compatible
query II rowsort label-5953
SELECT - 86 AS col0, COUNT ( * )
----
-86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT + COALESCE ( + 10, + 49 + SUM( ALL - 26 ), + 90 ) * 10 * + + 61 AS col0
----
6100

skipif mysql # not compatible
query I rowsort label-5954
SELECT + COALESCE ( + 10, + 49 + SUM ( ALL - 26 ), + 90 ) * 10 * + + 61 AS col0
----
6100

query II rowsort
SELECT ( 91 ) + + 38 * + + 20 + + 28 * - + 78 + 26 AS col0, + 47 AS col0
----
-1307
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5956
SELECT + 21, - MIN( - 53 ) AS col1
----
21
53

skipif mysql # not compatible
query II rowsort label-5956
SELECT + 21, - MIN ( - 53 ) AS col1
----
21
53

query I rowsort
SELECT ALL + 23 * + 18 AS col2
----
414

query I rowsort
SELECT ALL + 31 + COALESCE ( + 9, - 13, 41 ) AS col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5959
SELECT 43 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-5959
SELECT 43 / - 66
----
0

query I rowsort
SELECT ALL 66 + 25 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT 74 - 62 - + COALESCE ( 38, 38, + COUNT( * ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5961
SELECT 74 - 62 - + COALESCE ( 38, 38, + COUNT ( * ) ) AS col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5962
SELECT COUNT( * ) DIV + COUNT( ALL + 25 ) col2, - 22
----
1
-22

skipif mysql # not compatible
query II rowsort label-5962
SELECT COUNT ( * ) / + COUNT ( ALL + 25 ) col2, - 22
----
1
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT 19 * - COUNT( DISTINCT + + 16 )
----
-19

skipif mysql # not compatible
query I rowsort label-5963
SELECT 19 * - COUNT ( DISTINCT + + 16 )
----
-19

query I rowsort
SELECT ALL - 73 + - 44 AS col2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT DISTINCT COUNT( ALL - 47 )
----
1

skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT COUNT ( ALL - 47 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5966
SELECT ALL MIN( ALL + - 81 ) + 40 - - + ( COUNT( * ) ) AS col0, 2
----
-40
2

skipif mysql # not compatible
query II rowsort label-5966
SELECT ALL MIN ( ALL + - 81 ) + 40 - - + ( COUNT ( * ) ) AS col0, 2
----
-40
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT 44 * - CASE + 77 WHEN - + 59 - COUNT( * ) + - - 82 THEN - 31 * - 36 WHEN + - 51 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT 44 * - CASE + 77 WHEN - + 59 - COUNT ( * ) + - - 82 THEN - 31 * - 36 WHEN + - 51 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5968
SELECT ( - 68 ) + - 3 + 33 DIV - + COUNT( * ) AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-5968
SELECT ( - 68 ) + - 3 + 33 / - + COUNT ( * ) AS col1
----
-104

query I rowsort
SELECT DISTINCT - 56 * + ( 36 ) AS col1
----
-2016

onlyif mysql # aggregate syntax: 
query II rowsort label-5970
SELECT 34 - - - 67, COUNT( * ) * - 74 + 41
----
-33
-33

skipif mysql # not compatible
query II rowsort label-5970
SELECT 34 - - - 67, COUNT ( * ) * - 74 + 41
----
-33
-33

query I rowsort
SELECT 44 + + 0 + 79 + + 22 + 18 AS col0
----
163

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5972
SELECT ALL NULLIF ( + CAST( NULL AS DECIMAL ), - + COUNT( * ) / - 69 * ( + ( + + 53 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL NULLIF ( + CAST ( NULL AS REAL ), - + COUNT ( * ) / - 69 * ( + ( + + 53 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5973
SELECT ALL - 38 * - 32 AS col0, - CASE 52 WHEN - + 98 THEN + 25 ELSE - 31 + - + 55 * - 87 * - - 35 + - COUNT( * ) END
----
1216
-167443

skipif mysql # not compatible
query II rowsort label-5973
SELECT ALL - 38 * - 32 AS col0, - CASE 52 WHEN - + 98 THEN + 25 ELSE - 31 + - + 55 * - 87 * - - 35 + - COUNT ( * ) END
----
1216
-167443

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT DISTINCT + NULLIF ( NULLIF ( - 62, - + 64 ), - ( + - MAX( ALL - + 23 ) ) * ( + + 94 ) + + COUNT( * ) - + + ( + 48 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT + NULLIF ( NULLIF ( - 62, - + 64 ), - ( + - MAX ( ALL - + 23 ) ) * ( + + 94 ) + + COUNT ( * ) - + + ( + 48 ) )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT - 82 * + 21 + - CAST( + 55 AS SIGNED ) * 26 - - 54
----
-3098

skipif mysql # not compatible
query I rowsort label-5975
SELECT - 82 * + 21 + - CAST ( + 55 AS INTEGER ) * 26 - - 54
----
-3098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5976
SELECT ALL + CASE - 26 WHEN - 78 THEN - 23 + + + COUNT( * ) * + 72 - CAST( NULL AS SIGNED ) WHEN - 14 * + COALESCE ( + MIN( - 47 ), + CAST( NULL AS SIGNED ), 32 ) * + 14 THEN + 93 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL + CASE - 26 WHEN - 78 THEN - 23 + + + COUNT ( * ) * + 72 - CAST ( NULL AS INTEGER ) WHEN - 14 * + COALESCE ( + MIN ( - 47 ), + CAST ( NULL AS INTEGER ), 32 ) * + 14 THEN + 93 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5977
SELECT 38 * 39 + - - 72 * 1 * + - CAST( + + 61 AS SIGNED ) * + 37 AS col1, - 0 + - 44
----
-161022
-44

skipif mysql # not compatible
query II rowsort label-5977
SELECT 38 * 39 + - - 72 * 1 * + - CAST ( + + 61 AS INTEGER ) * + 37 AS col1, - 0 + - 44
----
-161022
-44

query I rowsort
SELECT DISTINCT - - 42 * 90 + - 86
----
3694

query I rowsort
SELECT DISTINCT - 44 * + 0 + - - 28 + + - ( - 39 )
----
67

query I rowsort
SELECT ALL + + 44 * + 39 + - 33 * - + 21 col1
----
2409

query I rowsort
SELECT + 67 * + ( - 70 )
----
-4690

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5982
SELECT + 2 * + 26 / CAST( NULL AS DECIMAL ) + + + 85 * - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5982
SELECT + 2 * + 26 / CAST ( NULL AS REAL ) + + + 85 * - 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT + CASE - ( + 22 ) WHEN - - 69 * + - COUNT( * ) + - 24 + - 23 THEN 52 WHEN - 40 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT + CASE - ( + 22 ) WHEN - - 69 * + - COUNT ( * ) + - 24 + - 23 THEN 52 WHEN - 40 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 56 * - 8 + - 6
----
442

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT + 20 * SUM( + 13 ) AS col2
----
260

skipif mysql # not compatible
query I rowsort label-5985
SELECT + 20 * SUM ( + 13 ) AS col2
----
260

onlyif mysql # aggregate syntax: 
query II rowsort label-5986
SELECT - COUNT( * ) * - 10 + + 44 col1, + 46 + - 40 + MAX( - 32 )
----
54
-26

skipif mysql # not compatible
query II rowsort label-5986
SELECT - COUNT ( * ) * - 10 + + 44 col1, + 46 + - 40 + MAX ( - 32 )
----
54
-26

query II rowsort
SELECT ALL 0 AS col0, - 81 AS col0
----
0
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5988
SELECT - COALESCE ( + 83, - COUNT( * ), + 52 ) * - NULLIF ( - 8, 77 + - - MIN( ALL + 36 ) / + 26 * - CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ) + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5988
SELECT - COALESCE ( + 83, - COUNT ( * ), + 52 ) * - NULLIF ( - 8, 77 + - - MIN ( ALL + 36 ) / + 26 * - CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) + COUNT ( * ) col2
----
NULL

query II rowsort
SELECT + 84 * 61 * - - 10 AS col1, 58
----
51240
58

query I rowsort
SELECT + 48 + ( - 33 )
----
15

query I rowsort
SELECT - NULLIF ( + 78, 0 ) col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT + 36 + - ( - 42 ) DIV 64 * - 85 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5992
SELECT + 36 + - ( - 42 ) / 64 * - 85 AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5993
SELECT - NULLIF ( + 83, - 91 ) DIV - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-5993
SELECT - NULLIF ( + 83, - 91 ) / - COUNT ( * )
----
83

query I rowsort
SELECT + 12 + + 23 col1
----
35

query I rowsort
SELECT - 18 + + + 24
----
6

query I rowsort
SELECT DISTINCT 36 * - 91
----
-3276

query I rowsort
SELECT ALL CASE - + 73 WHEN - + CASE + + 12 WHEN + 73 THEN + 51 END THEN NULL WHEN + 96 * ( + 87 ) THEN - 5 WHEN - 32 * 1 THEN NULL ELSE + - 25 END AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT DISTINCT NULLIF ( + 93, + 97 + MIN( DISTINCT - - 96 ) - + + ( + 34 ) * - COUNT( * ) * - ( + - 35 ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT NULLIF ( + 93, + 97 + MIN ( DISTINCT - - 96 ) - + + ( + 34 ) * - COUNT ( * ) * - ( + - 35 ) ) AS col1
----
93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6000
SELECT - - NULLIF ( + CAST( NULL AS SIGNED ), 64 * + - 31 + - + 34 - - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT - - NULLIF ( + CAST ( NULL AS INTEGER ), 64 * + - 31 + - + 34 - - 63 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6001
SELECT - + 27 + 60 * MAX( CAST( + 45 AS SIGNED ) ) + 7
----
2680

skipif mysql # not compatible
query I rowsort label-6001
SELECT - + 27 + 60 * MAX ( CAST ( + 45 AS INTEGER ) ) + 7
----
2680

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

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

skipif mysql # not compatible
query I rowsort label-6003
SELECT - - COUNT ( * ) * 23
----
23

query I rowsort
SELECT ALL - 5 + - 41 AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6005
SELECT DISTINCT + + ( CAST( 89 AS SIGNED ) ) AS col1
----
89

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6006
SELECT ALL - + 66 DIV 41 * 96 * + 12 + + + 99 - + + 5 - + COUNT( * ) AS col1
----
-1059

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL - + 66 / 41 * 96 * + 12 + + + 99 - + + 5 - + COUNT ( * ) AS col1
----
-1059

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6007
SELECT ALL + + MAX( - 99 ) DIV + - COUNT( * ) + - - 52 + + 51 AS col2
----
202

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL + + MAX ( - 99 ) / + - COUNT ( * ) + - - 52 + + 51 AS col2
----
202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6008
SELECT - + COUNT( * ) * + CAST( COUNT( + 70 ) AS SIGNED ) + + 27 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6008
SELECT - + COUNT ( * ) * + CAST ( COUNT ( + 70 ) AS INTEGER ) + + 27 AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6009
SELECT DISTINCT 34 / + 64 + - 10 + + + 12 + 65 * - CAST( NULL AS SIGNED ) - + COUNT( * ) + + NULLIF ( - + 77, - COUNT( * ) - COUNT( * ) * + + 67 / + + 63 + + 6 ) * + 23 * - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT 34 / + 64 + - 10 + + + 12 + 65 * - CAST ( NULL AS INTEGER ) - + COUNT ( * ) + + NULLIF ( - + 77, - COUNT ( * ) - COUNT ( * ) * + + 67 / + + 63 + + 6 ) * + 23 * - 87 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6010
SELECT DISTINCT ( + 90 ) DIV - 69
----
-1

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT ( + 90 ) / - 69
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT SUM( DISTINCT - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-6012
SELECT SUM ( DISTINCT - 23 )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6013
SELECT - NULLIF ( - 26, + 59 * ( - COUNT( * ) ) ) DIV - - COALESCE ( 64, - CASE - 81 WHEN + - COUNT( * ) THEN + + 46 WHEN + SUM( ALL 45 ) THEN 74 ELSE NULL END ) - - 65
----
65

skipif mysql # not compatible
query I rowsort label-6013
SELECT - NULLIF ( - 26, + 59 * ( - COUNT ( * ) ) ) / - - COALESCE ( 64, - CASE - 81 WHEN + - COUNT ( * ) THEN + + 46 WHEN + SUM ( ALL 45 ) THEN 74 ELSE NULL END ) - - 65
----
65

onlyif mysql # DIV for integer division: 
query II rowsort label-6014
SELECT + COALESCE ( - 27, - 35 DIV + + 40 ) col1, - 91 AS col2
----
-27
-91

skipif mysql # not compatible
query II rowsort label-6014
SELECT + COALESCE ( - 27, - 35 / + + 40 ) col1, - 91 AS col2
----
-27
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6015
SELECT - 32 * + 97 + + 72 + - + CASE - 50 WHEN + 97 THEN + COUNT( * ) WHEN 84 THEN - 44 + COUNT( * ) ELSE - 45 DIV + + 48 * - COALESCE ( 40, 79 * + ( 51 ) ) * + 49 + + 38 END
----
-3070

skipif mysql # not compatible
query I rowsort label-6015
SELECT - 32 * + 97 + + 72 + - + CASE - 50 WHEN + 97 THEN + COUNT ( * ) WHEN 84 THEN - 44 + COUNT ( * ) ELSE - 45 / + + 48 * - COALESCE ( 40, 79 * + ( 51 ) ) * + 49 + + 38 END
----
-3070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6016
SELECT + 1 + COALESCE ( 89, + - 19, + - CAST( NULL AS SIGNED ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6016
SELECT + 1 + COALESCE ( 89, + - 19, + - CAST ( NULL AS INTEGER ) ) AS col2
----
90

query I rowsort
SELECT ALL + - ( + - 49 ) * - ( - 52 ) * + + 23
----
58604

query II rowsort
SELECT ( + 31 ) AS col0, 86 AS col1
----
31
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT ALL MIN( + 77 ) * - - 40
----
3080

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL MIN ( + 77 ) * - - 40
----
3080

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6021
SELECT DISTINCT - 68 * - + 81 * - 93 - - 39 col1, - CAST( NULL AS SIGNED )
----
-512205
NULL

skipif mysql # not compatible
query II rowsort label-6021
SELECT DISTINCT - 68 * - + 81 * - 93 - - 39 col1, - CAST ( NULL AS INTEGER )
----
-512205
NULL

query I rowsort
SELECT + NULLIF ( - + 31, - 23 ) AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6023
SELECT ALL + 35 * - 43 - + 32 + - 65 + 14 + + COALESCE ( + 3, + COUNT( * ) + + 25 - + - 17 - CAST( 2 AS SIGNED ) )
----
-1585

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL + 35 * - 43 - + 32 + - 65 + 14 + + COALESCE ( + 3, + COUNT ( * ) + + 25 - + - 17 - CAST ( 2 AS INTEGER ) )
----
-1585

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT ALL + MIN( ALL - 7 ) * + COALESCE ( 53, + + 19 * - 5 )
----
-371

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL + MIN ( ALL - 7 ) * + COALESCE ( 53, + + 19 * - 5 )
----
-371

query I rowsort
SELECT COALESCE ( - - 63, + 29 )
----
63

query I rowsort
SELECT - 60 - - + 78
----
18

query I rowsort
SELECT + COALESCE ( 78, 26 * - 9 ) * + 50 AS col2
----
3900

onlyif mysql # DIV for integer division: 
query II rowsort label-6028
SELECT ALL 24 DIV + 35 AS col0, 18
----
0
18

skipif mysql # not compatible
query II rowsort label-6028
SELECT ALL 24 / + 35 AS col0, 18
----
0
18

query I rowsort
SELECT DISTINCT 59 * - 40
----
-2360

query I rowsort
SELECT ALL 77 * + 42
----
3234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6031
SELECT ALL 88 / - CAST( NULL AS SIGNED ) * - 34
----
NULL

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

query I rowsort
SELECT 50 * - 38
----
-1900

query I rowsort
SELECT CASE 81 WHEN + 41 + + 48 THEN + 58 END + + 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6034
SELECT CAST( 8 AS DECIMAL ) * + CAST( NULL AS SIGNED ) * - ( - 24 ) * - + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6034
SELECT CAST ( 8 AS REAL ) * + CAST ( NULL AS INTEGER ) * - ( - 24 ) * - + 84
----
NULL

query I rowsort
SELECT - 77 + 73 col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6036
SELECT 93 + - ( 16 ) + - 4 + + CAST( NULL AS SIGNED ) * 60 / - 30 / - MAX( ALL - - 76 ) - + MIN( + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT 93 + - ( 16 ) + - 4 + + CAST ( NULL AS INTEGER ) * 60 / - 30 / - MAX ( ALL - - 76 ) - + MIN ( + 81 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT - 4 + + COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6037
SELECT - 4 + + COUNT ( * ) AS col1
----
-3

query I rowsort
SELECT ALL 74 + 63
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6039
SELECT ALL + + CASE + COALESCE ( + 24, + 15 * - 52 + - 69 - - 79 ) WHEN + + 19 * - + 99 * ( - 94 ) * - NULLIF ( + 62, + COALESCE ( + 88, 57 * 86 + + 80 ) + + 77 ) - - 41 THEN + 11 WHEN - NULLIF ( - 20, + CAST( NULL AS SIGNED ) / ( - COUNT( * ) ) ) THEN CASE - 91 WHEN + COUNT( * ) THEN NULLIF ( 53, 50 ) WHEN 3 + CASE - SUM( 99 ) + - NULLIF ( + CAST( ( + 40 ) AS SIGNED ) + + 18 * + 76, 56 ) WHEN MAX( ALL 67 ) THEN NULL WHEN 74 / 23 + + ( + 97 ) THEN + 86 * 40 WHEN 84 THEN COUNT( * ) END * - 89 THEN - CASE 35 WHEN 73 THEN NULL ELSE 16 END ELSE 94 * 23 + 62 END END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL + + CASE + COALESCE ( + 24, + 15 * - 52 + - 69 - - 79 ) WHEN + + 19 * - + 99 * ( - 94 ) * - NULLIF ( + 62, + COALESCE ( + 88, 57 * 86 + + 80 ) + + 77 ) - - 41 THEN + 11 WHEN - NULLIF ( - 20, + CAST ( NULL AS INTEGER ) / ( - COUNT ( * ) ) ) THEN CASE - 91 WHEN + COUNT ( * ) THEN NULLIF ( 53, 50 ) WHEN 3 + CASE - SUM ( 99 ) + - NULLIF ( + CAST ( ( + 40 ) AS INTEGER ) + + 18 * + 76, 56 ) WHEN MAX ( ALL 67 ) THEN NULL WHEN 74 / 23 + + ( + 97 ) THEN + 86 * 40 WHEN 84 THEN COUNT ( * ) END * - 89 THEN - CASE 35 WHEN 73 THEN NULL ELSE 16 END ELSE 94 * 23 + 62 END END + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 60 + - - 80 * - + 21 AS col1
----
-1620

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6042
SELECT ALL COUNT( * ) + + + CAST( 7 AS SIGNED ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL COUNT ( * ) + + + CAST ( 7 AS INTEGER ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL + + 56 + + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL + + 56 + + COUNT ( * )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6044
SELECT - 48 * + - 91 + - 7 + - + COUNT( * ) DIV + COALESCE ( ( - 98 ), - COALESCE ( - - CAST( - + 18 AS SIGNED ), + 91 ) * - COUNT( * ) * + - CASE + 2 WHEN 75 * + CAST( + 68 AS SIGNED ) THEN 35 WHEN 34 THEN - COUNT( * ) * - 7 END * NULLIF ( + 17, CAST( - 36 AS DECIMAL ) ) + 29, 91 )
----
4361

skipif mysql # not compatible
query I rowsort label-6044
SELECT - 48 * + - 91 + - 7 + - + COUNT ( * ) / + COALESCE ( ( - 98 ), - COALESCE ( - - CAST ( - + 18 AS INTEGER ), + 91 ) * - COUNT ( * ) * + - CASE + 2 WHEN 75 * + CAST ( + 68 AS INTEGER ) THEN 35 WHEN 34 THEN - COUNT ( * ) * - 7 END * NULLIF ( + 17, CAST ( - 36 AS REAL ) ) + 29, 91 )
----
4361

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT ALL - COUNT( ALL - + 94 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL - COUNT ( ALL - + 94 ) AS col2
----
-1

query I rowsort
SELECT + ( CASE 35 WHEN - 51 * - 74 THEN + 17 / - - 42 WHEN + 58 + - 85 THEN NULL END ) * + 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6047
SELECT DISTINCT - CASE 98 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 23 THEN NULL WHEN MIN( + + COALESCE ( + 48, 99 ) ) THEN + COUNT( * ) + - + 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT - CASE 98 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 23 THEN NULL WHEN MIN ( + + COALESCE ( + 48, 99 ) ) THEN + COUNT ( * ) + - + 44 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT - 71 * + - 89 * + 91 + + 97 - COUNT( * ) AS col2
----
575125

skipif mysql # not compatible
query I rowsort label-6048
SELECT - 71 * + - 89 * + 91 + + 97 - COUNT ( * ) AS col2
----
575125

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

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

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

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL - MAX ( ALL - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT - 39 * - 76 + - COUNT( * ) + + - 45 AS col1
----
2918

skipif mysql # not compatible
query I rowsort label-6052
SELECT - 39 * - 76 + - COUNT ( * ) + + - 45 AS col1
----
2918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT DISTINCT - NULLIF ( - - 94, - + ( + + CAST( - 55 AS SIGNED ) ) + CAST( NULL AS SIGNED ) ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT - NULLIF ( - - 94, - + ( + + CAST ( - 55 AS INTEGER ) ) + CAST ( NULL AS INTEGER ) ) AS col0
----
-94

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

skipif mysql # not compatible
query I rowsort label-6054
SELECT 44 + CAST ( NULL AS INTEGER ) + + 78 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6055
SELECT ALL - 79 * + 13 * + + 85 * NULLIF ( + CASE + - 24 WHEN + AVG ( 24 ) / - 95 THEN - + 95 * + 94 WHEN - + AVG ( DISTINCT - 79 ) + CASE 52 WHEN CAST( NULL AS SIGNED ) * 70 + - 97 THEN 78 WHEN 9 * + 85 + ( ( + 20 ) ) * + 18 THEN 84 + 30 ELSE NULL END THEN NULL END, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL - 79 * + 13 * + + 85 * NULLIF ( + CASE + - 24 WHEN + AVG ( 24 ) / - 95 THEN - + 95 * + 94 WHEN - + AVG ( DISTINCT - 79 ) + CASE 52 WHEN CAST ( NULL AS INTEGER ) * 70 + - 97 THEN 78 WHEN 9 * + 85 + ( ( + 20 ) ) * + 18 THEN 84 + 30 ELSE NULL END THEN NULL END, COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + 24 * - 53 AS col0
----
-1272

onlyif mysql # DIV for integer division: 
query I rowsort label-6057
SELECT 54 + ( + ( ( + 45 ) ) ) DIV 54
----
54

skipif mysql # not compatible
query I rowsort label-6057
SELECT 54 + ( + ( ( + 45 ) ) ) / 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT ALL - COUNT( DISTINCT NULLIF ( - 23, - 35 / - 95 * 12 + 94 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL - COUNT ( DISTINCT NULLIF ( - 23, - 35 / - 95 * 12 + 94 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6059
SELECT ( - 65 ) * + ( - 7 ) + + 71 - ( + CAST( NULL AS SIGNED ) ) * 38 - - - 10 * + + 43 + + - 57 * + + 58 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6059
SELECT ( - 65 ) * + ( - 7 ) + + 71 - ( + CAST ( NULL AS INTEGER ) ) * 38 - - - 10 * + + 43 + + - 57 * + + 58 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6060
SELECT ALL 22, MAX( ALL - 66 ) AS col1
----
22
-66

skipif mysql # not compatible
query II rowsort label-6060
SELECT ALL 22, MAX ( ALL - 66 ) AS col1
----
22
-66

query I rowsort
SELECT DISTINCT + 7 + + 21 * + 17 AS col0
----
364

query I rowsort
SELECT ALL - 52 + - 48 + - 10
----
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-6063
SELECT 61, - NULLIF ( - ( - + COUNT( * ) ), + ( + - 77 ) ) AS col2
----
61
-1

skipif mysql # not compatible
query II rowsort label-6063
SELECT 61, - NULLIF ( - ( - + COUNT ( * ) ), + ( + - 77 ) ) AS col2
----
61
-1

query I rowsort
SELECT ALL + 89 + + - 11
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6065
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 58 + + 61, 3 * - 10 * + + 51 AS col1
----
NULL
-1530

skipif mysql # not compatible
query II rowsort label-6065
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 58 + + 61, 3 * - 10 * + + 51 AS col1
----
NULL
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT DISTINCT 37 + - + 13 - - 10 + ( - 20 ) / - + CASE - 23 WHEN + ( + 67 ) THEN COUNT( * ) * + 90 + MAX( ALL - 21 ) + COUNT( * ) * 43 + + 63 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT 37 + - + 13 - - 10 + ( - 20 ) / - + CASE - 23 WHEN + ( + 67 ) THEN COUNT ( * ) * + 90 + MAX ( ALL - 21 ) + COUNT ( * ) * 43 + + 63 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6067
SELECT ALL - 64 + - COUNT( * ) - 2 AS col2, + ( - - 70 )
----
-67
70

skipif mysql # not compatible
query II rowsort label-6067
SELECT ALL - 64 + - COUNT ( * ) - 2 AS col2, + ( - - 70 )
----
-67
70

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6069
SELECT - + 61, - 32 + + - COUNT( * ) AS col0
----
-61
-33

skipif mysql # not compatible
query II rowsort label-6069
SELECT - + 61, - 32 + + - COUNT ( * ) AS col0
----
-61
-33

query I rowsort
SELECT DISTINCT 3 * + COALESCE ( - 72, 92 )
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT ALL 8 - - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL 8 - - COUNT ( * ) AS col1
----
9

query I rowsort
SELECT ALL 21 - - - 68 AS col0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT - 91 DIV 17
----
-5

skipif mysql # not compatible
query I rowsort label-6073
SELECT - 91 / 17
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT - 61 * - MAX( DISTINCT - - 38 ) AS col1
----
2318

skipif mysql # not compatible
query I rowsort label-6074
SELECT - 61 * - MAX ( DISTINCT - - 38 ) AS col1
----
2318

onlyif mysql # DIV for integer division: 
query I rowsort label-6075
SELECT DISTINCT 49 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT 49 / - 82
----
0

query I rowsort
SELECT + 41 * - - 21
----
861

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT - ( + COUNT( * ) ) * + 43 + 27 * - 53 AS col1
----
-1474

skipif mysql # not compatible
query I rowsort label-6077
SELECT - ( + COUNT ( * ) ) * + 43 + 27 * - 53 AS col1
----
-1474

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT MAX( - - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-6078
SELECT MAX ( - - 20 )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-6079
SELECT MIN( + 78 ) AS col1, - 9
----
78
-9

skipif mysql # not compatible
query II rowsort label-6079
SELECT MIN ( + 78 ) AS col1, - 9
----
78
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT MIN( 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6080
SELECT MIN ( 6 ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6081
SELECT CAST( NULL AS SIGNED ) * 50, CASE + 58 WHEN 58 THEN + 87 WHEN - + 14 THEN NULL ELSE NULL END AS col0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-6081
SELECT CAST ( NULL AS INTEGER ) * 50, CASE + 58 WHEN 58 THEN + 87 WHEN - + 14 THEN NULL ELSE NULL END AS col0
----
NULL
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6082
SELECT COUNT( - ( - + CAST( NULL AS SIGNED ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6082
SELECT COUNT ( - ( - + CAST ( NULL AS INTEGER ) ) ) AS col0
----
0

query I rowsort
SELECT 70 + + - 80
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT DISTINCT - 10 * + + 60 DIV 6 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT - 10 * + + 60 / 6 AS col1
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-6085
SELECT + CASE - AVG ( ALL 11 ) WHEN + 32 THEN NULL ELSE + MAX( ALL + + 94 ) END, 76 + + 89 * - 25 + - COUNT( * ) * + - 29 * - 88 * - ( - - 92 ) AS col0
----
94
232635

skipif mysql # not compatible
query II rowsort label-6085
SELECT + CASE - AVG ( ALL 11 ) WHEN + 32 THEN NULL ELSE + MAX ( ALL + + 94 ) END, 76 + + 89 * - 25 + - COUNT ( * ) * + - 29 * - 88 * - ( - - 92 ) AS col0
----
94
232635

query II rowsort
SELECT + 90 * + 60 AS col0, 10 AS col0
----
5400
10

query II rowsort
SELECT DISTINCT + 37, 26 * - 19 AS col2
----
37
-494

query II rowsort
SELECT + 16 AS col2, ( + 47 ) AS col2
----
16
47

query I rowsort
SELECT DISTINCT + 38 + - 69 * - 61 AS col2
----
4247

query I rowsort
SELECT ALL + 21 + + 97
----
118

query I rowsort
SELECT + COALESCE ( 98, 29 + - - 38 ) - + - 34 + 80 * 49 AS col0
----
4052

query I rowsort
SELECT - 24 - ( 87 ) + 89 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT - 29 * + COUNT( DISTINCT + + 18 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-6093
SELECT - 29 * + COUNT ( DISTINCT + + 18 ) AS col0
----
-29

query I rowsort
SELECT ALL - 48 * - + 98 AS col0
----
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL + MIN( DISTINCT 86 ) + - MAX( ALL + ( 16 ) ) + - 55 + + 29 - + COUNT( * ) * + 72
----
-28

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL + MIN ( DISTINCT 86 ) + - MAX ( ALL + ( 16 ) ) + - 55 + + 29 - + COUNT ( * ) * + 72
----
-28

query II rowsort
SELECT - ( + - 63 ) * + ( COALESCE ( - 61, - 21 ) ), + 41 AS col1
----
-3843
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ALL 6 + + + SUM( DISTINCT + 13 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL 6 + + + SUM ( DISTINCT + 13 ) col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL - 68 + - + 39 * COUNT( * )
----
-107

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL - 68 + - + 39 * COUNT ( * )
----
-107

query I rowsort
SELECT - 82 * - NULLIF ( 13, 4 )
----
1066

onlyif mysql # aggregate syntax: 
query II rowsort label-6100
SELECT ALL - 50 AS col1, SUM( ALL - 15 )
----
-50
-15

skipif mysql # not compatible
query II rowsort label-6100
SELECT ALL - 50 AS col1, SUM ( ALL - 15 )
----
-50
-15

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

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL + - 56 + + - COUNT ( * ) * - + 19 / - + 83
----
-56

query I rowsort
SELECT - 95 - + 29 * 64
----
-1951

query I rowsort
SELECT DISTINCT - 66 + 70 col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT - + MIN( - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-6104
SELECT - + MIN ( - 89 )
----
89

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

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

query I rowsort
SELECT - - 27 * + 4 AS col1
----
108

onlyif mysql # aggregate syntax: 
query III rowsort label-6107
SELECT COUNT( * ) AS col1, 46 AS col0, 27 * + NULLIF ( 91, 66 ) + - 45
----
1
46
2412

skipif mysql # not compatible
query III rowsort label-6107
SELECT COUNT ( * ) AS col1, 46 AS col0, 27 * + NULLIF ( 91, 66 ) + - 45
----
1
46
2412

onlyif mysql # DIV for integer division: 
query II rowsort label-6108
SELECT - + ( - 3 ) + ( - 40 ) AS col2, 37 DIV 70
----
-37
0

skipif mysql # not compatible
query II rowsort label-6108
SELECT - + ( - 3 ) + ( - 40 ) AS col2, 37 / 70
----
-37
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6109
SELECT ALL CAST( 18 AS SIGNED ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL CAST ( 18 AS INTEGER ) AS col2
----
18

query II rowsort
SELECT DISTINCT - 81, 85 * - + 30 AS col0
----
-81
-2550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6111
SELECT - - 78 + + SUM( ALL + 86 ) + CAST( + 95 AS SIGNED ) * NULLIF ( - - 70, + 74 ) * + + COUNT( * ) AS col1
----
6814

skipif mysql # not compatible
query I rowsort label-6111
SELECT - - 78 + + SUM ( ALL + 86 ) + CAST ( + 95 AS INTEGER ) * NULLIF ( - - 70, + 74 ) * + + COUNT ( * ) AS col1
----
6814

query I rowsort
SELECT ALL COALESCE ( + 40, 39 ) - 45
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6113
SELECT - - 2, 53 * + + 0 - + + 10 * - + 66 + - COUNT( DISTINCT 44 ) + + ( CAST( NULL AS SIGNED ) ) * - + 12 col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-6113
SELECT - - 2, 53 * + + 0 - + + 10 * - + 66 + - COUNT ( DISTINCT 44 ) + + ( CAST ( NULL AS INTEGER ) ) * - + 12 col1
----
2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL 55 * 84 + + + 91 + 15 - - COUNT( * ) * + 12 AS col0
----
4738

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL 55 * 84 + + + 91 + 15 - - COUNT ( * ) * + 12 AS col0
----
4738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6115
SELECT + 25 DIV - 91 * - - CAST( 86 AS SIGNED ) - - COUNT( * ) + + + 11 + + 79 DIV COUNT( * ) * + 73 + - ( + 19 ) AS col0
----
5760

skipif mysql # not compatible
query I rowsort label-6115
SELECT + 25 / - 91 * - - CAST ( 86 AS INTEGER ) - - COUNT ( * ) + + + 11 + + 79 / COUNT ( * ) * + 73 + - ( + 19 ) AS col0
----
5760

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

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

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

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

query I rowsort
SELECT + NULLIF ( - + 9, + + 44 ) col0
----
-9

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

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

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

skipif mysql # not compatible
query I rowsort label-6120
SELECT - 37 - CAST ( NULL AS INTEGER ) * - CAST ( + 78 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT ( - MAX( - - 64 ) ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-6121
SELECT ( - MAX ( - - 64 ) ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT ALL - ( - + 22 ) * ( MIN( - 14 ) )
----
-308

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL - ( - + 22 ) * ( MIN ( - 14 ) )
----
-308

query II rowsort
SELECT + ( + - 67 ), - 40 AS col2
----
-67
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6124
SELECT ( + 27 ) * - COALESCE ( ( COUNT( * ) ), - 85 - + CAST( - 6 AS SIGNED ) * - 72 DIV + NULLIF ( CAST( SUM( ALL - + 6 ) AS SIGNED ), - - CAST( 76 AS SIGNED ) ) + 95 * + 36 ) - - ( ( + 84 ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-6124
SELECT ( + 27 ) * - COALESCE ( ( COUNT ( * ) ), - 85 - + CAST ( - 6 AS INTEGER ) * - 72 / + NULLIF ( CAST ( SUM ( ALL - + 6 ) AS INTEGER ), - - CAST ( 76 AS INTEGER ) ) + 95 * + 36 ) - - ( ( + 84 ) ) AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6125
SELECT ( COUNT( * ) ), CAST( + 11 AS SIGNED ) * + 68 AS col0
----
1
748

skipif mysql # not compatible
query II rowsort label-6125
SELECT ( COUNT ( * ) ), CAST ( + 11 AS INTEGER ) * + 68 AS col0
----
1
748

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL SUM( 1 ) * + 69 + + 70 + 94
----
233

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL SUM ( 1 ) * + 69 + + 70 + 94
----
233

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT + COALESCE ( + 17, - + COUNT( * ) * 66 * - - 10 + - + 10 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6127
SELECT + COALESCE ( + 17, - + COUNT ( * ) * 66 * - - 10 + - + 10 ) AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6128
SELECT + 36 * 29 AS col2, + CASE 29 WHEN - 6 + - COUNT( * ) THEN NULL WHEN - 82 + - 28 THEN - 78 WHEN + 79 THEN NULL ELSE NULL END + - + 79 + + + CAST( - SUM( 13 ) AS SIGNED )
----
1044
NULL

skipif mysql # not compatible
query II rowsort label-6128
SELECT + 36 * 29 AS col2, + CASE 29 WHEN - 6 + - COUNT ( * ) THEN NULL WHEN - 82 + - 28 THEN - 78 WHEN + 79 THEN NULL ELSE NULL END + - + 79 + + + CAST ( - SUM ( 13 ) AS INTEGER )
----
1044
NULL

query I rowsort
SELECT CASE + 77 WHEN 88 THEN - - 36 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6130
SELECT ALL 94 * + 52 * - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL 94 * + 52 * - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6131
SELECT + CAST( 70 AS SIGNED ) + ( - COUNT( * ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-6131
SELECT + CAST ( 70 AS INTEGER ) + ( - COUNT ( * ) ) AS col1
----
69

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6133
SELECT ALL 40 * CASE + AVG ( ALL 50 ) WHEN - 29 THEN - COUNT( * ) ELSE - - 39 END AS col1, + 14 * - 0 * + ( - NULLIF ( - ( + 64 ), 65 ) ) AS col2
----
1560
0

skipif mysql # not compatible
query II rowsort label-6133
SELECT ALL 40 * CASE + AVG ( ALL 50 ) WHEN - 29 THEN - COUNT ( * ) ELSE - - 39 END AS col1, + 14 * - 0 * + ( - NULLIF ( - ( + 64 ), 65 ) ) AS col2
----
1560
0

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6136
SELECT ALL 12 * + - 24 - - 59 AS col1, - 55 - 75 * + COUNT( * ) + - - 51 AS col0
----
-229
-79

skipif mysql # not compatible
query II rowsort label-6136
SELECT ALL 12 * + - 24 - - 59 AS col1, - 55 - 75 * + COUNT ( * ) + - - 51 AS col0
----
-229
-79

query I rowsort
SELECT - COALESCE ( - 21, + 67, - NULLIF ( + 32, - ( + 58 ) ) + - 47 )
----
21

query I rowsort
SELECT - + 68 + - 92 + + - 47 - + 12
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT - + 51 * - 44 + - 54 - - CAST( NULL AS SIGNED ) * NULLIF ( + CAST( NULL AS SIGNED ), - - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6139
SELECT - + 51 * - 44 + - 54 - - CAST ( NULL AS INTEGER ) * NULLIF ( + CAST ( NULL AS INTEGER ), - - 60 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6140
SELECT ALL + CAST( NULL AS SIGNED ) / + 60 - - COUNT( + ( 29 ) ) * ( + ( + + 3 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL + CAST ( NULL AS INTEGER ) / + 60 - - COUNT ( + ( 29 ) ) * ( + ( + + 3 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 49 * + 32 * + + 17 + - 90 AS col1
----
26566

query I rowsort
SELECT ALL - - 37 * - - 51 + - 46
----
1841

onlyif mysql # DIV for integer division: 
query I rowsort label-6143
SELECT - - 24 + + 82 + - 22 + 8 + - ( + 54 ) DIV + 59 + - 17
----
75

skipif mysql # not compatible
query I rowsort label-6143
SELECT - - 24 + + 82 + - 22 + 8 + - ( + 54 ) / + 59 + - 17
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT ALL - - COALESCE ( - + 28, + 52 - + MAX( + - 99 ) ) * + + 63 * - 35
----
61740

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL - - COALESCE ( - + 28, + 52 - + MAX ( + - 99 ) ) * + + 63 * - 35
----
61740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6145
SELECT - + MAX( - + 83 ) * 74 DIV + 12
----
511

skipif mysql # not compatible
query I rowsort label-6145
SELECT - + MAX ( - + 83 ) * 74 / + 12
----
511

onlyif mysql # aggregate syntax: 
query II rowsort label-6146
SELECT - + COUNT( * ) * 37 AS col0, 6 AS col2
----
-37
6

skipif mysql # not compatible
query II rowsort label-6146
SELECT - + COUNT ( * ) * 37 AS col0, 6 AS col2
----
-37
6

query I rowsort
SELECT 35 + 10 AS col0
----
45

query II rowsort
SELECT - 38 AS col0, 38
----
-38
38

query I rowsort
SELECT 44 + 14 AS col2
----
58

query II rowsort
SELECT 29 AS col0, ( 33 ) AS col1
----
29
33

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

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT - MAX ( 11 )
----
-11

query I rowsort
SELECT ALL 2 + - + 79 AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6153
SELECT ALL 61 * - + NULLIF ( + 9, - - 16 * CAST( NULL AS SIGNED ) ) col0
----
-549

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL 61 * - + NULLIF ( + 9, - - 16 * CAST ( NULL AS INTEGER ) ) col0
----
-549

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6154
SELECT ALL + CAST( + - 9 AS SIGNED ) + - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0, - 24 + + MIN( DISTINCT + 19 )
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-6154
SELECT ALL + CAST ( + - 9 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0, - 24 + + MIN ( DISTINCT + 19 )
----
NULL
-5

query I rowsort
SELECT DISTINCT - 38 + ( + 66 ) AS col2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT DISTINCT 96 * 90 * 62 DIV 53
----
10107

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT 96 * 90 * 62 / 53
----
10107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6157
SELECT ALL - 20 + - - CASE - CAST( NULL AS SIGNED ) WHEN 5 THEN CAST( NULL AS SIGNED ) - + 93 WHEN COALESCE ( - + 45, + + 59 * - 47 ) * + COUNT( * ) + CAST( 30 AS SIGNED ) THEN + + 43 * 27 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL - 20 + - - CASE - CAST ( NULL AS INTEGER ) WHEN 5 THEN CAST ( NULL AS INTEGER ) - + 93 WHEN COALESCE ( - + 45, + + 59 * - 47 ) * + COUNT ( * ) + CAST ( 30 AS INTEGER ) THEN + + 43 * 27 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6158
SELECT ALL + 66 * - - 51 * - + CAST( CASE + CASE - 30 WHEN + - 8 THEN NULL WHEN + 91 THEN + AVG ( - NULLIF ( + 49, - + 47 ) ) END WHEN - 79 * - 9 * + + 65 / ( 89 ) THEN NULL WHEN - 98 THEN NULL WHEN CAST( - 6 AS SIGNED ) THEN NULL ELSE - 87 END AS SIGNED )
----
292842

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL + 66 * - - 51 * - + CAST ( CASE + CASE - 30 WHEN + - 8 THEN NULL WHEN + 91 THEN + AVG ( - NULLIF ( + 49, - + 47 ) ) END WHEN - 79 * - 9 * + + 65 / ( 89 ) THEN NULL WHEN - 98 THEN NULL WHEN CAST ( - 6 AS INTEGER ) THEN NULL ELSE - 87 END AS INTEGER )
----
292842

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6159
SELECT + 14 AS col2, - NULLIF ( + 68, - 98 ) + - + COUNT( * ) DIV - 96
----
14
-68

skipif mysql # not compatible
query II rowsort label-6159
SELECT + 14 AS col2, - NULLIF ( + 68, - 98 ) + - + COUNT ( * ) / - 96
----
14
-68

query I rowsort
SELECT ALL 18 * - 2 * + - 99
----
3564

query I rowsort
SELECT 4 + 37 AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6162
SELECT COALESCE ( + 88, + 33, 23 ) * + - COUNT( DISTINCT + - 71 ), + 29 DIV - 20 + - + 36 - - SUM( DISTINCT 47 ) + 3 + ( + 55 ) AS col1
----
-88
68

skipif mysql # not compatible
query II rowsort label-6162
SELECT COALESCE ( + 88, + 33, 23 ) * + - COUNT ( DISTINCT + - 71 ), + 29 / - 20 + - + 36 - - SUM ( DISTINCT 47 ) + 3 + ( + 55 ) AS col1
----
-88
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6163
SELECT + 72 AS col0, 19 + + COALESCE ( + COALESCE ( - 26, - 16 + - - MAX( ALL 20 ) + 41 ), - COALESCE ( + COALESCE ( 38, + 1 + + CASE 85 WHEN - 75 DIV - 35 * + + 76 + - 42 THEN COALESCE ( 48, 24 ) ELSE NULL END + 91 ), - 82 DIV 23, + 17 * - 24, 70 + - 28 ) ) AS col2
----
72
-7

skipif mysql # not compatible
query II rowsort label-6163
SELECT + 72 AS col0, 19 + + COALESCE ( + COALESCE ( - 26, - 16 + - - MAX ( ALL 20 ) + 41 ), - COALESCE ( + COALESCE ( 38, + 1 + + CASE 85 WHEN - 75 / - 35 * + + 76 + - 42 THEN COALESCE ( 48, 24 ) ELSE NULL END + 91 ), - 82 / 23, + 17 * - 24, 70 + - 28 ) ) AS col2
----
72
-7

query I rowsort
SELECT DISTINCT + 48 * - + 57 col1
----
-2736

query I rowsort
SELECT ALL 88 - - 9
----
97

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

query II rowsort
SELECT DISTINCT - - 3, - 98 AS col1
----
3
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT 23 * CASE - + 49 WHEN 65 + - - 65 THEN + 19 WHEN + 54 THEN - NULLIF ( + NULLIF ( + + CAST( NULL AS SIGNED ), - 44 ), - 17 ) WHEN ( - 75 ) THEN - - 20 ELSE + 54 * + ( + - 42 ) * CASE - 99 WHEN - 53 THEN + 27 * + 97 - + 91 WHEN 72 * CAST( - 28 AS SIGNED ) THEN 24 WHEN - 59 THEN - CAST( + 22 AS SIGNED ) END END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6168
SELECT 23 * CASE - + 49 WHEN 65 + - - 65 THEN + 19 WHEN + 54 THEN - NULLIF ( + NULLIF ( + + CAST ( NULL AS INTEGER ), - 44 ), - 17 ) WHEN ( - 75 ) THEN - - 20 ELSE + 54 * + ( + - 42 ) * CASE - 99 WHEN - 53 THEN + 27 * + 97 - + 91 WHEN 72 * CAST ( - 28 AS INTEGER ) THEN 24 WHEN - 59 THEN - CAST ( + 22 AS INTEGER ) END END + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6169
SELECT - 30 - COUNT( * ) * - + 86 DIV - 18
----
-34

skipif mysql # not compatible
query I rowsort label-6169
SELECT - 30 - COUNT ( * ) * - + 86 / - 18
----
-34

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

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

query I rowsort
SELECT - 44 - + - 28 col1
----
-16

query I rowsort
SELECT - ( - - ( - + 2 ) ) * - ( + 54 ) + + + ( + 65 )
----
-43

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

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

query II rowsort
SELECT - 70 AS col2, 68 + + 31 AS col0
----
-70
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6175
SELECT DISTINCT ( MIN( DISTINCT - 25 ) ), - MAX( + 4 ) AS col0
----
-25
-4

skipif mysql # not compatible
query II rowsort label-6175
SELECT DISTINCT ( MIN ( DISTINCT - 25 ) ), - MAX ( + 4 ) AS col0
----
-25
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6176
SELECT ALL COUNT( * ) AS col0, 56 - + 14 AS col2
----
1
42

skipif mysql # not compatible
query II rowsort label-6176
SELECT ALL COUNT ( * ) AS col0, 56 - + 14 AS col2
----
1
42

query I rowsort
SELECT DISTINCT 59 * - ( ( ( - 61 ) ) )
----
3599

onlyif mysql # aggregate syntax: 
query II rowsort label-6178
SELECT + 37 + - 23 + - 24 AS col2, 20 - + + 6 * - SUM( 3 ) AS col1
----
-10
38

skipif mysql # not compatible
query II rowsort label-6178
SELECT + 37 + - 23 + - 24 AS col2, 20 - + + 6 * - SUM ( 3 ) AS col1
----
-10
38

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

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

query I rowsort
SELECT - ( + + NULLIF ( + 67, + 44 + - 74 ) )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6181
SELECT 10 + COALESCE ( - 39, + ( 74 ), 91 * - 73 + CAST( NULL AS SIGNED ) ), + 40 AS col2
----
-29
40

skipif mysql # not compatible
query II rowsort label-6181
SELECT 10 + COALESCE ( - 39, + ( 74 ), 91 * - 73 + CAST ( NULL AS INTEGER ) ), + 40 AS col2
----
-29
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT - MIN( - 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6182
SELECT - MIN ( - 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6183
SELECT COUNT( * ) DIV - COUNT( - 1 ) + - - ( - - COALESCE ( - 16, + 20 + - - 23 ) ) + - 37 + - 53
----
-107

skipif mysql # not compatible
query I rowsort label-6183
SELECT COUNT ( * ) / - COUNT ( - 1 ) + - - ( - - COALESCE ( - 16, + 20 + - - 23 ) ) + - 37 + - 53
----
-107

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6185
SELECT DISTINCT CAST( NULL AS SIGNED ) / + COUNT( * ) * 87 * - - 52, 43 AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-6185
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + COUNT ( * ) * 87 * - - 52, 43 AS col1
----
NULL
43

query I rowsort
SELECT DISTINCT - 79 * + 95 AS col1
----
-7505

query I rowsort
SELECT 79 * - - NULLIF ( - + 58, 23 * 87 + 79 )
----
-4582

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6189
SELECT MIN( - - 35 ) DIV - 93 - + ( 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6189
SELECT MIN ( - - 35 ) / - 93 - + ( 2 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT 69 + - 23 - + ( + + 86 ) * MIN( ALL + - 74 ) - + 56 + - 92 AS col1
----
6262

skipif mysql # not compatible
query I rowsort label-6190
SELECT 69 + - 23 - + ( + + 86 ) * MIN ( ALL + - 74 ) - + 56 + - 92 AS col1
----
6262

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

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

query I rowsort
SELECT ALL - 89 - + 92 * + 35 AS col1
----
-3309

query II rowsort
SELECT ALL - ( + 11 ) AS col0, - 51 + - 82 * + - 25 AS col1
----
-11
1999

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6194
SELECT DISTINCT NULLIF ( 29, 21 ) * - 35 + + MIN( - 32 ) + 11 + - COUNT( * ) * + - ( 40 ) DIV + 60 AS col1
----
-1036

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT NULLIF ( 29, 21 ) * - 35 + + MIN ( - 32 ) + 11 + - COUNT ( * ) * + - ( 40 ) / + 60 AS col1
----
-1036

query I rowsort
SELECT DISTINCT - NULLIF ( 57, + AVG ( DISTINCT 10 ) - + + 53 )
----
-57

query I rowsort
SELECT 84 * + - 1
----
-84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6198
SELECT - 19 * + - ( + 52 ) + CAST( + + 26 AS SIGNED ) + - - 52 AS col2
----
1066

skipif mysql # not compatible
query I rowsort label-6198
SELECT - 19 * + - ( + 52 ) + CAST ( + + 26 AS INTEGER ) + - - 52 AS col2
----
1066

query I rowsort
SELECT 97 * + 99
----
9603

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

skipif mysql # not compatible
query I rowsort label-6200
SELECT - COUNT ( * ) + - SUM ( ALL + 28 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT NULLIF ( + CASE + 0 WHEN 38 THEN + - 61 WHEN + ( - NULLIF ( - CASE - 99 WHEN - + 63 THEN 10 * - - 63 - MIN( ALL + 52 ) + - COALESCE ( - 31, - 33 * 8 ) ELSE AVG ( 40 ) * 6 + 89 END, + COUNT( * ) ) ) * + 55 THEN NULL END, + COUNT( * ) ) + - CASE 11 - 47 WHEN + 40 THEN 29 WHEN 35 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT NULLIF ( + CASE + 0 WHEN 38 THEN + - 61 WHEN + ( - NULLIF ( - CASE - 99 WHEN - + 63 THEN 10 * - - 63 - MIN ( ALL + 52 ) + - COALESCE ( - 31, - 33 * 8 ) ELSE AVG ( 40 ) * 6 + 89 END, + COUNT ( * ) ) ) * + 55 THEN NULL END, + COUNT ( * ) ) + - CASE 11 - 47 WHEN + 40 THEN 29 WHEN 35 THEN NULL ELSE NULL END col0
----
NULL

query I rowsort
SELECT + 69 * 82 * - 5 - + 47
----
-28337

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT - + ( - + 23 ) * - MIN( - + 62 ) + 75
----
1501

skipif mysql # not compatible
query I rowsort label-6203
SELECT - + ( - + 23 ) * - MIN ( - + 62 ) + 75
----
1501

query I rowsort
SELECT - 17 * - - NULLIF ( - 81, + 24 ) col2
----
1377

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT - MIN( - - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-6205
SELECT - MIN ( - - 10 )
----
-10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6207
SELECT - 35 * + 36 * 42 * - - 0 + - 53 + - CAST( NULL AS SIGNED ) + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6207
SELECT - 35 * + 36 * 42 * - - 0 + - 53 + - CAST ( NULL AS INTEGER ) + COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6208
SELECT + CAST( NULL AS DECIMAL ) + 69 / - 39 * - + MAX( ALL + CAST( + 86 AS SIGNED ) ) * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT + CAST ( NULL AS REAL ) + 69 / - 39 * - + MAX ( ALL + CAST ( + 86 AS INTEGER ) ) * 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6209
SELECT DISTINCT 93 + + 17 AS col2, - COUNT( * ) + COUNT( ALL + 15 ) + 95 * + MIN( ALL - 77 ) * 43 * COUNT( * ) + - MIN( 28 ) + - 46 * COUNT( * ) + - 33
----
110
-314652

skipif mysql # not compatible
query II rowsort label-6209
SELECT DISTINCT 93 + + 17 AS col2, - COUNT ( * ) + COUNT ( ALL + 15 ) + 95 * + MIN ( ALL - 77 ) * 43 * COUNT ( * ) + - MIN ( 28 ) + - 46 * COUNT ( * ) + - 33
----
110
-314652

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT + + 89 * + MAX( + 20 ) + 47 * + 53 - - + 47 AS col1
----
4318

skipif mysql # not compatible
query I rowsort label-6210
SELECT + + 89 * + MAX ( + 20 ) + 47 * + 53 - - + 47 AS col1
----
4318

query I rowsort
SELECT ALL + 78 * + 25
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT ALL MAX( ALL - 55 ) + + + 7
----
-48

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL MAX ( ALL - 55 ) + + + 7
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT - COALESCE ( + COUNT( * ), 47 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6213
SELECT - COALESCE ( + COUNT ( * ), 47 ) AS col2
----
-1

query I rowsort
SELECT + ( - 82 ) * 17
----
-1394

query I rowsort
SELECT ALL 49 * - - 36
----
1764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6216
SELECT + CAST( - 2 AS SIGNED ) + - COUNT( * ), 94 AS col2
----
-3
94

skipif mysql # not compatible
query II rowsort label-6216
SELECT + CAST ( - 2 AS INTEGER ) + - COUNT ( * ), 94 AS col2
----
-3
94

query I rowsort
SELECT + 7 * - 24
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6218
SELECT + MAX( - 95 ) - + 1 + - + 20 DIV + 3 + 75
----
-27

skipif mysql # not compatible
query I rowsort label-6218
SELECT + MAX ( - 95 ) - + 1 + - + 20 / + 3 + 75
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6219
SELECT - CASE + + CAST( NULL AS SIGNED ) WHEN + 55 THEN NULL WHEN - 51 THEN + COALESCE ( + SUM( - + 57 ), 57 + + 16 + - 51 * - 45 * + 79 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6219
SELECT - CASE + + CAST ( NULL AS INTEGER ) WHEN + 55 THEN NULL WHEN - 51 THEN + COALESCE ( + SUM ( - + 57 ), 57 + + 16 + - 51 * - 45 * + 79 ) END
----
NULL

query II rowsort
SELECT DISTINCT - 13 * - + 60 * 57 - ( + 80 ) AS col1, 12
----
44380
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT ALL - COUNT( * ) * - ( - 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL - COUNT ( * ) * - ( - 49 ) AS col0
----
-49

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

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

query II rowsort
SELECT DISTINCT + 27, 65 AS col0
----
27
65

query II rowsort
SELECT + 68 AS col2, + 51 AS col0
----
68
51

query I rowsort
SELECT ALL + NULLIF ( + + 7, - CASE - 72 WHEN - + 15 THEN 83 + - 9 - - 11 END ) * + 90 AS col1
----
630

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6226
SELECT DISTINCT NULLIF ( 55, - - CAST( NULL AS DECIMAL ) ) * + COUNT( * ) + + 39 - + + 37 * - NULLIF ( - 57, COALESCE ( - COUNT( * ), + 21 ) + - 11 ) col2
----
-2015

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT NULLIF ( 55, - - CAST ( NULL AS REAL ) ) * + COUNT ( * ) + + 39 - + + 37 * - NULLIF ( - 57, COALESCE ( - COUNT ( * ), + 21 ) + - 11 ) col2
----
-2015

query I rowsort
SELECT ALL 35 * 70
----
2450

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT + ( + ( COALESCE ( - - 43, CASE 99 WHEN COUNT( * ) + 30 THEN NULL WHEN - 86 THEN + 23 END + - + 72 ) ) ) * ( - COALESCE ( + 23, + 61 * 15 - - NULLIF ( - 32, ( - 95 ) + 77 ) ) )
----
-989

skipif mysql # not compatible
query I rowsort label-6228
SELECT + ( + ( COALESCE ( - - 43, CASE 99 WHEN COUNT ( * ) + 30 THEN NULL WHEN - 86 THEN + 23 END + - + 72 ) ) ) * ( - COALESCE ( + 23, + 61 * 15 - - NULLIF ( - 32, ( - 95 ) + 77 ) ) )
----
-989

query I rowsort
SELECT ALL + 31 * - 73 AS col2
----
-2263

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6231
SELECT ALL + 24 * 89 DIV COUNT( * ) + - CAST( 3 AS SIGNED ) AS col2
----
2133

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL + 24 * 89 / COUNT ( * ) + - CAST ( 3 AS INTEGER ) AS col2
----
2133

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6233
SELECT - COALESCE ( - COUNT( DISTINCT + - 26 ), + 7 ) DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-6233
SELECT - COALESCE ( - COUNT ( DISTINCT + - 26 ), + 7 ) / + 91
----
0

query I rowsort
SELECT - + 93 - - + 74 AS col2
----
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-6235
SELECT DISTINCT - - 71 * 12 DIV 12 AS col1, 69 + + + COALESCE ( + 14, + + 62 * - 52, 32, + 45 )
----
71
83

skipif mysql # not compatible
query II rowsort label-6235
SELECT DISTINCT - - 71 * 12 / 12 AS col1, 69 + + + COALESCE ( + 14, + + 62 * - 52, 32, + 45 )
----
71
83

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

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

query II rowsort
SELECT ALL + + 59 + - + 50 * + + 34 col0, 7
----
-1641
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT DISTINCT - + MAX( + + 7 ) + 74 * - 5
----
-377

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT - + MAX ( + + 7 ) + 74 * - 5
----
-377

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT ALL 22 + + - 64 * - 42 * COUNT( * )
----
2710

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL 22 + + - 64 * - 42 * COUNT ( * )
----
2710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6240
SELECT + CAST( NULL AS SIGNED ) - - + 47 + + + 91 + - - ( + + 50 ) - 93 * + MAX( + 42 ) * CAST( - - 56 AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6240
SELECT + CAST ( NULL AS INTEGER ) - - + 47 + + + 91 + - - ( + + 50 ) - 93 * + MAX ( + 42 ) * CAST ( - - 56 AS INTEGER ) col2
----
NULL

query II rowsort
SELECT ALL 92, 1 AS col1
----
92
1

query I rowsort
SELECT ALL 2 - + - 61 - + 89 * + 44 col2
----
-3853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6243
SELECT + CAST( 68 AS SIGNED ) + - NULLIF ( + + 4, + 4 - - 90 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-6243
SELECT + CAST ( 68 AS INTEGER ) + - NULLIF ( + + 4, + 4 - - 90 ) AS col2
----
64

query I rowsort
SELECT ALL 95 * NULLIF ( - - ( 45 ), + 48 )
----
4275

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6245
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + ( - 0 ) * 46 * - 22 - + 84
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-6245
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + ( - 0 ) * 46 * - 22 - + 84
----
NULL
-84

query I rowsort
SELECT DISTINCT 30 * - 47 AS col1
----
-1410

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT ALL MIN( DISTINCT 36 )
----
36

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL MIN ( DISTINCT 36 )
----
36

query I rowsort
SELECT + 54 * - - 73 AS col2
----
3942

onlyif mysql # aggregate syntax: 
query II rowsort label-6249
SELECT ALL COUNT( * ) col1, - 20 * - 35 AS col1
----
1
700

skipif mysql # not compatible
query II rowsort label-6249
SELECT ALL COUNT ( * ) col1, - 20 * - 35 AS col1
----
1
700

query I rowsort
SELECT + 30 + - 21
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6251
SELECT ALL 67, 83 * - 1 * - NULLIF ( + 43, - COUNT( * ) * 74 - 51 - + 94 / - + 70 / 1 - 44 ) + 64 AS col2
----
67
3633

skipif mysql # not compatible
query II rowsort label-6251
SELECT ALL 67, 83 * - 1 * - NULLIF ( + 43, - COUNT ( * ) * 74 - 51 - + 94 / - + 70 / 1 - 44 ) + 64 AS col2
----
67
3633

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

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

query I rowsort
SELECT + 24 * 33 * - 49 col2
----
-38808

query I rowsort
SELECT + 11 + - - 21 - 26
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6255
SELECT + CAST( NULL AS SIGNED ), + 34 * + - MIN( - 65 ) AS col1
----
NULL
2210

skipif mysql # not compatible
query II rowsort label-6255
SELECT + CAST ( NULL AS INTEGER ), + 34 * + - MIN ( - 65 ) AS col1
----
NULL
2210

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6256
SELECT ALL + 29 DIV + CAST( 18 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL + 29 / + CAST ( 18 AS INTEGER )
----
1

query I rowsort
SELECT 23 * + 37 + - 87 + + - 11 + + 3
----
756

query I rowsort
SELECT + 24 * + 89 - 83 + - + 42 * + 11 * + 87
----
-38141

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6259
SELECT ALL + - ( ( + 8 ) ) / - 85 + 12 + SUM( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL + - ( ( + 8 ) ) / - 85 + 12 + SUM ( + CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT - 70 * 89 - + 92 - + - 49 AS col1, 68 col2
----
-6273
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6261
SELECT + + CAST( 22 AS SIGNED ) * - 73 col0
----
-1606

skipif mysql # not compatible
query I rowsort label-6261
SELECT + + CAST ( 22 AS INTEGER ) * - 73 col0
----
-1606

query I rowsort
SELECT - + 82 + - 28
----
-110

query I rowsort
SELECT + NULLIF ( 42, 76 * 5 * - - 22 ) col0
----
42

query I rowsort
SELECT ALL + - 98 + - + 70 AS col0
----
-168

query II rowsort
SELECT - 72, 5 - - - 45 AS col0
----
-72
-40

query I rowsort
SELECT 16 + 7 AS col0
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-6267
SELECT ALL - - 66, 9 DIV + - 44 AS col0
----
66
0

skipif mysql # not compatible
query II rowsort label-6267
SELECT ALL - - 66, 9 / + - 44 AS col0
----
66
0

query I rowsort
SELECT ALL - COALESCE ( + 97, - 45 - + 42 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT - COUNT( * ) + - COALESCE ( + 64, 49 + 28 )
----
-65

skipif mysql # not compatible
query I rowsort label-6269
SELECT - COUNT ( * ) + - COALESCE ( + 64, 49 + 28 )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT ALL 10 + 18 - - 74 DIV + - 71
----
27

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL 10 + 18 - - 74 / + - 71
----
27

query II rowsort
SELECT + 95 AS col2, 26 * - 42 AS col0
----
95
-1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6272
SELECT 39 * + NULLIF ( - + CAST( NULL AS SIGNED ), - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6272
SELECT 39 * + NULLIF ( - + CAST ( NULL AS INTEGER ), - 34 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL + - 23 + + 27 * - MIN( ALL - + 37 ) + - 94 * + + COUNT( * ) * + + 79 - 32 AS col1
----
-6482

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL + - 23 + + 27 * - MIN ( ALL - + 37 ) + - 94 * + + COUNT ( * ) * + + 79 - 32 AS col1
----
-6482

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT + + 83 * - MAX( ALL - 66 ) * + ( + - 98 ) + - - 68 + 12 * - COUNT( * )
----
-536788

skipif mysql # not compatible
query I rowsort label-6275
SELECT + + 83 * - MAX ( ALL - 66 ) * + ( + - 98 ) + - - 68 + 12 * - COUNT ( * )
----
-536788

query I rowsort
SELECT + 89 + + + 51 col1
----
140

query I rowsort
SELECT 53 * 61 AS col1
----
3233

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT 89 * 45 * + - COUNT( * )
----
-4005

skipif mysql # not compatible
query I rowsort label-6278
SELECT 89 * 45 * + - COUNT ( * )
----
-4005

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6280
SELECT DISTINCT - 20 * 63 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT - 20 * 63 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6281
SELECT 79 + 88 col2, 27 + COUNT( * )
----
167
28

skipif mysql # not compatible
query II rowsort label-6281
SELECT 79 + 88 col2, 27 + COUNT ( * )
----
167
28

query II rowsort
SELECT DISTINCT - 30 * 55, 45 AS col1
----
-1650
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6283
SELECT DISTINCT - 58 - 81 + - + 86 * COUNT( * ) DIV 17 AS col0
----
-144

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT - 58 - 81 + - + 86 * COUNT ( * ) / 17 AS col0
----
-144

query I rowsort
SELECT 14 + + + 26 AS col0
----
40

query II rowsort
SELECT 33 * 67 AS col0, + ( - COALESCE ( - 44, - - 63 - 78 ) ) * - 21 + 29
----
2211
-895

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT COUNT( * ) - - 64 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6286
SELECT COUNT ( * ) - - 64 AS col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6287
SELECT DISTINCT 41 + - 43 DIV 30 * + COALESCE ( + 26, COUNT( * ) ) + - 88 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT 41 + - 43 / 30 * + COALESCE ( + 26, COUNT ( * ) ) + - 88 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT 23 * - + MAX( - 5 )
----
115

skipif mysql # not compatible
query I rowsort label-6288
SELECT 23 * - + MAX ( - 5 )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT ALL - MAX( + 93 ) + NULLIF ( + 49, - - COUNT( * ) )
----
-44

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL - MAX ( + 93 ) + NULLIF ( + 49, - - COUNT ( * ) )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT + MAX( - 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6290
SELECT + MAX ( - 11 ) AS col2
----
-11

query I rowsort
SELECT ALL + ( + - 98 ) + - - 55 * - 13 * - + 48 - + NULLIF ( 87, - 59 ) * + 30 * - 34 + - + 76
----
122886

query II rowsort
SELECT ALL 14 + - + 19, 59 + - - 62 + + - ( - + 51 ) AS col1
----
-5
172

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT 93 * - - ( + NULLIF ( + + COUNT( ALL + 90 ), 80 * + ( + + 72 ) * + COUNT( * ) + 43 ) )
----
93

skipif mysql # not compatible
query I rowsort label-6293
SELECT 93 * - - ( + NULLIF ( + + COUNT ( ALL + 90 ), 80 * + ( + + 72 ) * + COUNT ( * ) + 43 ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT - MIN( ALL - - 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-6294
SELECT - MIN ( ALL - - 55 ) AS col0
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6295
SELECT DISTINCT - 73 + + ( - CAST( NULL AS DECIMAL ) ) + + + 19 * - + ( 8 ) + 52, + 80 col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-6295
SELECT DISTINCT - 73 + + ( - CAST ( NULL AS REAL ) ) + + + 19 * - + ( 8 ) + 52, + 80 col1
----
NULL
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6296
SELECT 85 DIV 18
----
4

skipif mysql # not compatible
query I rowsort label-6296
SELECT 85 / 18
----
4

query I rowsort
SELECT ALL - - 54 col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6298
SELECT DISTINCT - 23 + - COALESCE ( 79, 79, + COUNT( * ) DIV + - 82 + - 4 * COUNT( * ) * - 98 ) + + ( - + MAX( + - 23 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT - 23 + - COALESCE ( 79, 79, + COUNT ( * ) / + - 82 + - 4 * COUNT ( * ) * - 98 ) + + ( - + MAX ( + - 23 ) )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT + SUM( 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6299
SELECT + SUM ( 1 ) AS col0
----
1

query I rowsort
SELECT + 47 * + + 72 + - + 12
----
3372

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT ALL - 79 DIV + - 34 - - 61 * + 58 AS col1
----
3540

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL - 79 / + - 34 - - 61 * + 58 AS col1
----
3540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6302
SELECT - 13 DIV COUNT( * ) * 92 col0
----
-1196

skipif mysql # not compatible
query I rowsort label-6302
SELECT - 13 / COUNT ( * ) * 92 col0
----
-1196

onlyif mysql # aggregate syntax: 
query II rowsort label-6303
SELECT 98 * - 37 * 31 col2, 80 + 85 * - ( 4 ) * - + 22 + - SUM( DISTINCT + 77 ) AS col0
----
-112406
7483

skipif mysql # not compatible
query II rowsort label-6303
SELECT 98 * - 37 * 31 col2, 80 + 85 * - ( 4 ) * - + 22 + - SUM ( DISTINCT + 77 ) AS col0
----
-112406
7483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6304
SELECT CASE + ( 50 ) WHEN - 72 THEN NULL WHEN COALESCE ( ( - 34 ), + 44 + 91 ) THEN + COALESCE ( + - 30, - - 1 ) END * - CAST( NULL AS SIGNED ) + 94 - + 64 * - 59 + 47 * - COALESCE ( AVG ( + 7 ), - 19 ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6304
SELECT CASE + ( 50 ) WHEN - 72 THEN NULL WHEN COALESCE ( ( - 34 ), + 44 + 91 ) THEN + COALESCE ( + - 30, - - 1 ) END * - CAST ( NULL AS INTEGER ) + 94 - + 64 * - 59 + 47 * - COALESCE ( AVG ( + 7 ), - 19 ) - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 66 * + 35
----
2310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT 88 * + MAX( - CAST( NULL AS SIGNED ) ) * + 46 * - SUM( - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT 88 * + MAX ( - CAST ( NULL AS INTEGER ) ) * + 46 * - SUM ( - 62 )
----
NULL

query II rowsort
SELECT 13 col0, + 77
----
13
77

query II rowsort
SELECT ALL 0, 83 AS col1
----
0
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6309
SELECT CASE 8 WHEN - 78 + + 61 THEN COALESCE ( - 13, 64 * - 16 + - 84, - 44, - - 45 + ( CAST( NULL AS SIGNED ) ) ) WHEN + 24 THEN + - 96 ELSE NULL END + - ( 46 ) + - 24 * - CASE - - MAX( DISTINCT + + 95 ) WHEN - 88 THEN 65 * ( + 92 * - 4 ) END + - 30 * - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT CASE 8 WHEN - 78 + + 61 THEN COALESCE ( - 13, 64 * - 16 + - 84, - 44, - - 45 + ( CAST ( NULL AS INTEGER ) ) ) WHEN + 24 THEN + - 96 ELSE NULL END + - ( 46 ) + - 24 * - CASE - - MAX ( DISTINCT + + 95 ) WHEN - 88 THEN 65 * ( + 92 * - 4 ) END + - 30 * - 45 AS col0
----
NULL

query I rowsort
SELECT 14 * - 29 * + 64 AS col1
----
-25984

onlyif mysql # DIV for integer division: 
query I rowsort label-6311
SELECT DISTINCT + 99 DIV + 59
----
1

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT + 99 / + 59
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT 97 + - 28 + MAX( DISTINCT - 48 ) + - 70 * 37 AS col2
----
-2569

skipif mysql # not compatible
query I rowsort label-6312
SELECT 97 + - 28 + MAX ( DISTINCT - 48 ) + - 70 * 37 AS col2
----
-2569

query I rowsort
SELECT 4 * + 59 * - NULLIF ( + ( 9 ), - + ( 20 ) ) AS col1
----
-2124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6314
SELECT DISTINCT 18 + 1 + + COUNT( + 77 ) * + 27 + MIN( + 15 ) DIV - + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT 18 + 1 + + COUNT ( + 77 ) * + 27 + MIN ( + 15 ) / - + COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6315
SELECT DISTINCT COUNT( * ) AS col0, 34 * 84 + + 43
----
1
2899

skipif mysql # not compatible
query II rowsort label-6315
SELECT DISTINCT COUNT ( * ) AS col0, 34 * 84 + + 43
----
1
2899

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT DISTINCT + CASE + 73 WHEN COUNT( * ) THEN + - 87 END + - - 49 + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT + CASE + 73 WHEN COUNT ( * ) THEN + - 87 END + - - 49 + 93
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6317
SELECT + 28 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-6317
SELECT + 28 / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT ALL - - 58 * + SUM( DISTINCT + + 60 ) + + COALESCE ( + COUNT( * ), - 30, - NULLIF ( + - 15, - + 76 ) )
----
3481

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL - - 58 * + SUM ( DISTINCT + + 60 ) + + COALESCE ( + COUNT ( * ), - 30, - NULLIF ( + - 15, - + 76 ) )
----
3481

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6319
SELECT - COALESCE ( - 95, - 37 + - 72, 95 ) DIV - COUNT( * ) + - 67 + COUNT( * ) + + 25
----
-136

skipif mysql # not compatible
query I rowsort label-6319
SELECT - COALESCE ( - 95, - 37 + - 72, 95 ) / - COUNT ( * ) + - 67 + COUNT ( * ) + + 25
----
-136

query II rowsort
SELECT + - 66 AS col2, 14 AS col0
----
-66
14

query I rowsort
SELECT - 35 * + 97 + + 65
----
-3330

query I rowsort
SELECT ALL - 47 * + ( NULLIF ( - + 63, + 5 ) ) - - 23 * - 57 + - 87 + + 21 + + + 48 AS col0
----
1632

query I rowsort
SELECT ALL + - 52 * - - 99
----
-5148

query I rowsort
SELECT + 44 + - - 64 + - - 72 + + - 34 + 63 AS col1
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT + SUM( + 42 ) + MIN( ALL - 62 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-6325
SELECT + SUM ( + 42 ) + MIN ( ALL - 62 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6326
SELECT ALL + - 28 AS col0, 36 - ( + 62 ) + - - 49 * - SUM( - 8 )
----
-28
366

skipif mysql # not compatible
query II rowsort label-6326
SELECT ALL + - 28 AS col0, 36 - ( + 62 ) + - - 49 * - SUM ( - 8 )
----
-28
366

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6327
SELECT + 80 col0, 92 + - CAST( NULL AS SIGNED )
----
80
NULL

skipif mysql # not compatible
query II rowsort label-6327
SELECT + 80 col0, 92 + - CAST ( NULL AS INTEGER )
----
80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT + ( - 24 ) * NULLIF ( 38, + 11 ) + - + COUNT( * ) AS col0
----
-913

skipif mysql # not compatible
query I rowsort label-6328
SELECT + ( - 24 ) * NULLIF ( 38, + 11 ) + - + COUNT ( * ) AS col0
----
-913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6329
SELECT DISTINCT + CAST( 68 AS SIGNED ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT + CAST ( 68 AS INTEGER ) AS col1
----
68

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

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

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

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

query I rowsort
SELECT + ( 8 ) + - 46
----
-38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6333
SELECT + CAST( - ( + 91 ) AS SIGNED ) DIV + NULLIF ( - ( 51 ), 38 * AVG ( ALL + 65 ) * + 97 )
----
1

skipif mysql # not compatible
query I rowsort label-6333
SELECT + CAST ( - ( + 91 ) AS INTEGER ) / + NULLIF ( - ( 51 ), 38 * AVG ( ALL + 65 ) * + 97 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT + COALESCE ( + + NULLIF ( 0, CASE + MIN( ALL + 10 ) WHEN + 4 * - - 67 + - - 12 + + 40 THEN - 36 - + COALESCE ( 76, + - COUNT( * ) ) * + 30 + + + CASE - 71 WHEN 38 THEN + 50 + - - 97 ELSE 73 + + ( + 44 ) + + 13 + + COUNT( * ) * + 72 * - NULLIF ( 14, - 24 ) END END ), + 78, - MIN( DISTINCT 81 ), 68 + + 87 * 44 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6334
SELECT + COALESCE ( + + NULLIF ( 0, CASE + MIN ( ALL + 10 ) WHEN + 4 * - - 67 + - - 12 + + 40 THEN - 36 - + COALESCE ( 76, + - COUNT ( * ) ) * + 30 + + + CASE - 71 WHEN 38 THEN + 50 + - - 97 ELSE 73 + + ( + 44 ) + + 13 + + COUNT ( * ) * + 72 * - NULLIF ( 14, - 24 ) END END ), + 78, - MIN ( DISTINCT 81 ), 68 + + 87 * 44 ) col0
----
0

query I rowsort
SELECT ALL - NULLIF ( + 26, 10 ) * + 12 * + + 95 - + 24 AS col1
----
-29664

query II rowsort
SELECT + 31 + - 94 + ( + 31 ), - 13 + + - 69 col0
----
-32
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6337
SELECT + CAST( NULL AS SIGNED ) / - + 62, 86 AS col2
----
NULL
86

skipif mysql # not compatible
query II rowsort label-6337
SELECT + CAST ( NULL AS INTEGER ) / - + 62, 86 AS col2
----
NULL
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6338
SELECT + 7 + - 54 + + - 44 * COUNT( * ) * + CAST( NULL AS SIGNED ) * COUNT( * ) + + + NULLIF ( + - NULLIF ( 44, 8 ), 2 - 39 + 0 - - 27 + 81 + - ( - SUM( - 58 ) ) * - 48 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6338
SELECT + 7 + - 54 + + - 44 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) * COUNT ( * ) + + + NULLIF ( + - NULLIF ( 44, 8 ), 2 - 39 + 0 - - 27 + 81 + - ( - SUM ( - 58 ) ) * - 48 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6339
SELECT ALL 13 * + NULLIF ( - COALESCE ( + + 97, + COALESCE ( + NULLIF ( - ( + 92 ), + NULLIF ( + - COUNT( * ), - 25 + 75 * - COUNT( * ) - + COALESCE ( + 28, COUNT( * ) ) * - + 47 DIV - 75 ) + + - 46 ), - - 85, + 12 + + 47 * ( - - 36 ) ), - 77 DIV 53 ), + 66 ) AS col1
----
-1261

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL 13 * + NULLIF ( - COALESCE ( + + 97, + COALESCE ( + NULLIF ( - ( + 92 ), + NULLIF ( + - COUNT ( * ), - 25 + 75 * - COUNT ( * ) - + COALESCE ( + 28, COUNT ( * ) ) * - + 47 / - 75 ) + + - 46 ), - - 85, + 12 + + 47 * ( - - 36 ) ), - 77 / 53 ), + 66 ) AS col1
----
-1261

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT - CASE + - 47 WHEN + 82 + - + MIN( 29 ) + + - 89 / - + 25 * + MIN( + 13 ) * AVG ( + 35 ) + + COUNT( * ) THEN NULL ELSE - - 15 END AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-6340
SELECT - CASE + - 47 WHEN + 82 + - + MIN ( 29 ) + + - 89 / - + 25 * + MIN ( + 13 ) * AVG ( + 35 ) + + COUNT ( * ) THEN NULL ELSE - - 15 END AS col2
----
-15

query I rowsort
SELECT - COALESCE ( + 63, + 75 * 85 + - 68 ) col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT DISTINCT 18 + COUNT( * ) + - 30 * + - COUNT( * ) * + 59 AS col2
----
1789

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT 18 + COUNT ( * ) + - 30 * + - COUNT ( * ) * + 59 AS col2
----
1789

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT ALL 77 + - CASE - + 68 WHEN + + 27 THEN + 81 * 96 * COUNT( DISTINCT 74 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL 77 + - CASE - + 68 WHEN + + 27 THEN + 81 * 96 * COUNT ( DISTINCT 74 ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6344
SELECT - ( + - 60 ) AS col1, 12 DIV + - 80
----
60
0

skipif mysql # not compatible
query II rowsort label-6344
SELECT - ( + - 60 ) AS col1, 12 / + - 80
----
60
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT ALL COALESCE ( MAX( ALL + + 97 ), + + 86, - 35 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL COALESCE ( MAX ( ALL + + 97 ), + + 86, - 35 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6346
SELECT DISTINCT NULLIF ( COUNT( * ), MAX( 58 ) ) col2, - COUNT( * ) col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-6346
SELECT DISTINCT NULLIF ( COUNT ( * ), MAX ( 58 ) ) col2, - COUNT ( * ) col0
----
1
-1

query I rowsort
SELECT ALL + 41 * - 66 AS col2
----
-2706

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT - NULLIF ( COUNT( * ), - + 23 - 60 ) * 96 - - - ( + - CASE 29 WHEN + + 46 + - - 2 / COALESCE ( ( + + 47 ), - - 57 * - - 19 ) THEN + + 8 * 90 + - 59 ELSE 22 END ) * - COALESCE ( - ( + 34 ), + - CASE 71 WHEN - AVG ( - 94 ) * 1 THEN + 76 * NULLIF ( - ( + 57 ), 0 ) ELSE NULL END + 12 ) * - 3 AS col2
----
-2340

skipif mysql # not compatible
query I rowsort label-6348
SELECT - NULLIF ( COUNT ( * ), - + 23 - 60 ) * 96 - - - ( + - CASE 29 WHEN + + 46 + - - 2 / COALESCE ( ( + + 47 ), - - 57 * - - 19 ) THEN + + 8 * 90 + - 59 ELSE 22 END ) * - COALESCE ( - ( + 34 ), + - CASE 71 WHEN - AVG ( - 94 ) * 1 THEN + 76 * NULLIF ( - ( + 57 ), 0 ) ELSE NULL END + 12 ) * - 3 AS col2
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT - - 95 + - - COUNT( - + 97 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6349
SELECT - - 95 + - - COUNT ( - + 97 ) AS col2
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL + + COALESCE ( - MIN( DISTINCT + 97 ), - 48 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL + + COALESCE ( - MIN ( DISTINCT + 97 ), - 48 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT - 15 + + COUNT( * ) + - + 8 / - 55 * - + 97 + + - 91 * - 59 + + 40 * + 84 / + 92 * - CASE COUNT( * ) WHEN + 30 THEN - MAX( ALL 20 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT - 15 + + COUNT ( * ) + - + 8 / - 55 * - + 97 + + - 91 * - 59 + + 40 * + 84 / + 92 * - CASE COUNT ( * ) WHEN + 30 THEN - MAX ( ALL 20 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6354
SELECT ALL ( 92 ) DIV 90 * + COUNT( * ) * + + 62 - + MAX( 59 ) * + COUNT( * ) + - 22 + + 96 AS col1, + 66 * 45 AS col0
----
77
2970

skipif mysql # not compatible
query II rowsort label-6354
SELECT ALL ( 92 ) / 90 * + COUNT ( * ) * + + 62 - + MAX ( 59 ) * + COUNT ( * ) + - 22 + + 96 AS col1, + 66 * 45 AS col0
----
77
2970

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT - 86 DIV - 48
----
1

skipif mysql # not compatible
query I rowsort label-6355
SELECT - 86 / - 48
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT + CASE - 9 WHEN - 77 - MAX( ALL 21 ) * - 88 THEN + 73 ELSE NULL END * - - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT + CASE - 9 WHEN - 77 - MAX ( ALL 21 ) * - 88 THEN + 73 ELSE NULL END * - - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT - SUM( ALL + 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-6357
SELECT - SUM ( ALL + 34 ) AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6358
SELECT + - 44 * 26 * + CAST( - + 17 AS SIGNED ) + 54 + + 26
----
19528

skipif mysql # not compatible
query I rowsort label-6358
SELECT + - 44 * 26 * + CAST ( - + 17 AS INTEGER ) + 54 + + 26
----
19528

query I rowsort
SELECT DISTINCT + + CASE - 61 WHEN - 32 * 16 - + + CASE 39 WHEN - + 46 + 89 * 47 THEN - 3 * 25 + - 76 WHEN - 98 THEN NULL ELSE - 8 * - AVG ( - + 68 ) - + 41 * + - 41 END THEN - 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT DISTINCT COALESCE ( + COUNT( * ), 56 ) * - - 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT COALESCE ( + COUNT ( * ), 56 ) * - - 19 AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6361
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) * 84 * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6361
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) * 84 * 44
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6362
SELECT ALL 4 * 74 + COUNT( * ) + + 74 + + 50 DIV 52 + 98 + + 22 + + COALESCE ( + + COUNT( * ), - - SUM( DISTINCT + NULLIF ( - 13, 43 ) ), - - CAST( NULL AS SIGNED ), 97 ) * + + NULLIF ( 34, - 42 + - 28 )
----
525

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL 4 * 74 + COUNT ( * ) + + 74 + + 50 / 52 + 98 + + 22 + + COALESCE ( + + COUNT ( * ), - - SUM ( DISTINCT + NULLIF ( - 13, 43 ) ), - - CAST ( NULL AS INTEGER ), 97 ) * + + NULLIF ( 34, - 42 + - 28 )
----
525

onlyif mysql # DIV for integer division: 
query I rowsort label-6363
SELECT 17 * ( - - 15 ) DIV - 48 - + 65 + - + 29
----
-99

skipif mysql # not compatible
query I rowsort label-6363
SELECT 17 * ( - - 15 ) / - 48 - + 65 + - + 29
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6364
SELECT - CAST( NULL AS SIGNED ) + - CASE + 32 WHEN - 96 + + + 96 THEN - CASE + - ( + 7 ) WHEN - 96 THEN + COUNT( * ) END * COALESCE ( + 40, 47, - CASE 22 WHEN + NULLIF ( 26, 77 / - 8 * - + 42 ) - + + 30 + - 5 THEN NULL ELSE - 87 * - SUM( - 69 ) * + ( 96 ) - 65 * - 39 END ) * 66 END * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-6364
SELECT - CAST ( NULL AS INTEGER ) + - CASE + 32 WHEN - 96 + + + 96 THEN - CASE + - ( + 7 ) WHEN - 96 THEN + COUNT ( * ) END * COALESCE ( + 40, 47, - CASE 22 WHEN + NULLIF ( 26, 77 / - 8 * - + 42 ) - + + 30 + - 5 THEN NULL ELSE - 87 * - SUM ( - 69 ) * + ( 96 ) - 65 * - 39 END ) * 66 END * + 16
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT ALL + SUM( DISTINCT + 80 ) * ( + + 43 ) + + 85 AS col0
----
3525

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL + SUM ( DISTINCT + 80 ) * ( + + 43 ) + + 85 AS col0
----
3525

query I rowsort
SELECT ALL ( - 28 ) * + - 46 + + + 5 * - ( - CASE 35 WHEN 61 THEN + 60 - - 48 WHEN 72 THEN NULL WHEN + ( - ( 7 ) ) THEN - 58 / - 66 ELSE NULL END ) * + 1 + 9 + + 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT DISTINCT ( + COUNT( * ) ) * - 72 * 65 + - + COUNT( * ) + 42
----
-4639

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT ( + COUNT ( * ) ) * - 72 * 65 + - + COUNT ( * ) + 42
----
-4639

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6369
SELECT ALL + 67 * - COUNT( * ) + 19 DIV + + 76
----
-67

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL + 67 * - COUNT ( * ) + 19 / + + 76
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT COUNT( * ) + - 51 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-6370
SELECT COUNT ( * ) + - 51 AS col1
----
-50

query I rowsort
SELECT 51 + ( - 18 ) * + 27 + - 86 + - - 91
----
-430

query I rowsort
SELECT 22 * 39
----
858

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

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

query I rowsort
SELECT 60 + - 47
----
13

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

skipif mysql # not compatible
query I rowsort label-6375
SELECT + ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6376
SELECT + 68 + - 69 * + + ( + 68 ) + 83 DIV 5 + + - 24 + - 25 AS col0
----
-4657

skipif mysql # not compatible
query I rowsort label-6376
SELECT + 68 + - 69 * + + ( + 68 ) + 83 / 5 + + - 24 + - 25 AS col0
----
-4657

query I rowsort
SELECT DISTINCT + 16 * + 50
----
800

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6379
SELECT + MAX( ALL + 62 ) * 7 * + 15 + 66 - - 79 * + - ( - 86 ) + 90 DIV - + 34 * + + COUNT( - - 37 ) AS col0
----
13368

skipif mysql # not compatible
query I rowsort label-6379
SELECT + MAX ( ALL + 62 ) * 7 * + 15 + 66 - - 79 * + - ( - 86 ) + 90 / - + 34 * + + COUNT ( - - 37 ) AS col0
----
13368

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6381
SELECT + MAX( 71 ) DIV 45 + + 11 + 29 * - 95 * + 14
----
-38558

skipif mysql # not compatible
query I rowsort label-6381
SELECT + MAX ( 71 ) / 45 + + 11 + 29 * - 95 * + 14
----
-38558

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT + MIN( DISTINCT + 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6382
SELECT + MIN ( DISTINCT + 39 ) AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6383
SELECT ( + - 53 ) * + 3 + + 69 + + + 12 DIV + 37, + 22 * - 4 + 45 DIV - 67 + COUNT( ALL - 6 ) AS col0
----
-90
-87

skipif mysql # not compatible
query II rowsort label-6383
SELECT ( + - 53 ) * + 3 + + 69 + + + 12 / + 37, + 22 * - 4 + 45 / - 67 + COUNT ( ALL - 6 ) AS col0
----
-90
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT 85 + - 11 + 33 * - + COUNT( * ) + 29 * + - 32 AS col0
----
-887

skipif mysql # not compatible
query I rowsort label-6384
SELECT 85 + - 11 + 33 * - + COUNT ( * ) + 29 * + - 32 AS col0
----
-887

query I rowsort
SELECT ALL - 51 * - - 76
----
-3876

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT DISTINCT - NULLIF ( 27, - COUNT( * ) ) * 6
----
-162

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT - NULLIF ( 27, - COUNT ( * ) ) * 6
----
-162

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

skipif mysql # not compatible
query I rowsort label-6387
SELECT 78 / COUNT ( * ) AS col2
----
78

query I rowsort
SELECT ALL - 7 + + + 2 * + 95 * - 47 * - 83 AS col1
----
741183

onlyif mysql # DIV for integer division: 
query I rowsort label-6389
SELECT 96 * - + 26 + 43 DIV + 96 AS col0
----
-2496

skipif mysql # not compatible
query I rowsort label-6389
SELECT 96 * - + 26 + 43 / + 96 AS col0
----
-2496

query I rowsort
SELECT 7 + + 10
----
17

query II rowsort
SELECT 99 AS col2, 90 AS col2
----
99
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6392
SELECT 17 + - 95 AS col0, - 69 DIV + ( + SUM( DISTINCT - 64 ) )
----
-78
1

skipif mysql # not compatible
query II rowsort label-6392
SELECT 17 + - 95 AS col0, - 69 / + ( + SUM ( DISTINCT - 64 ) )
----
-78
1

query II rowsort
SELECT 10 col1, + 5 AS col1
----
10
5

query I rowsort
SELECT - 75 * - 41 + + + 83
----
3158

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT + NULLIF ( + 32, 75 ) * COALESCE ( - - 6, 22 * + 7 ) + 89 DIV 31 + - + 80
----
114

skipif mysql # not compatible
query I rowsort label-6395
SELECT + NULLIF ( + 32, 75 ) * COALESCE ( - - 6, 22 * + 7 ) + 89 / 31 + - + 80
----
114

query II rowsort
SELECT ALL - 36 AS col0, + ( - + 75 )
----
-36
-75

query I rowsort
SELECT 7 + - - 38 * + 58 AS col1
----
2211

query II rowsort
SELECT 29 AS col2, + 78 + - 75 AS col0
----
29
3

query I rowsort
SELECT 16 * 93
----
1488

query I rowsort
SELECT ALL - 86 + - 48
----
-134

query I rowsort
SELECT DISTINCT - ( + - 74 ) + + - 70 AS col0
----
4

query I rowsort
SELECT 42 + - + 91 + + NULLIF ( + + 40, 46 )
----
-9

query I rowsort
SELECT ALL - 50 * - + 54 AS col1
----
2700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6404
SELECT - 19, + 65 + + - 90 + + CAST( NULL AS SIGNED ) AS col0
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-6404
SELECT - 19, + 65 + + - 90 + + CAST ( NULL AS INTEGER ) AS col0
----
-19
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-6405
SELECT ALL 26 AS col2, + 88, COUNT( * ) AS col0
----
26
88
1

skipif mysql # not compatible
query III rowsort label-6405
SELECT ALL 26 AS col2, + 88, COUNT ( * ) AS col0
----
26
88
1

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

skipif mysql # not compatible
query II rowsort label-6406
SELECT 32 * + - COUNT ( * ), 60 AS col1
----
-32
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6407
SELECT DISTINCT 79 AS col2, SUM( + 56 ) + 1 + 70
----
79
127

skipif mysql # not compatible
query II rowsort label-6407
SELECT DISTINCT 79 AS col2, SUM ( + 56 ) + 1 + 70
----
79
127

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6408
SELECT 4, 48 + + - CAST( 65 AS SIGNED ) * + - 38 AS col2
----
4
2518

skipif mysql # not compatible
query II rowsort label-6408
SELECT 4, 48 + + - CAST ( 65 AS INTEGER ) * + - 38 AS col2
----
4
2518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6409
SELECT + 41 DIV - 21 * + COUNT( DISTINCT - + 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-6409
SELECT + 41 / - 21 * + COUNT ( DISTINCT - + 12 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6410
SELECT - 24 * - 88 - - NULLIF ( 39, + 38 * - 88 - NULLIF ( - 20, + CAST( NULL AS SIGNED ) ) + + - 2 ) - - 31 AS col0, + ( + + 87 ) + 62 - + ( + 83 )
----
2182
66

skipif mysql # not compatible
query II rowsort label-6410
SELECT - 24 * - 88 - - NULLIF ( 39, + 38 * - 88 - NULLIF ( - 20, + CAST ( NULL AS INTEGER ) ) + + - 2 ) - - 31 AS col0, + ( + + 87 ) + 62 - + ( + 83 )
----
2182
66

onlyif mysql # aggregate syntax: 
query II rowsort label-6411
SELECT - 98, + 9 + - - COUNT( * ) col0
----
-98
10

skipif mysql # not compatible
query II rowsort label-6411
SELECT - 98, + 9 + - - COUNT ( * ) col0
----
-98
10

query II rowsort
SELECT - - 54 AS col2, COALESCE ( + - NULLIF ( 86, - 75 ), + 68, - - CASE + 25 WHEN - 23 THEN + 22 ELSE NULL END )
----
54
-86

query I rowsort
SELECT ALL - 11 + - 13 AS col2
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-6414
SELECT DISTINCT - - 65 col2, + 87 + - ( - + 61 ) DIV 57 AS col2
----
65
88

skipif mysql # not compatible
query II rowsort label-6414
SELECT DISTINCT - - 65 col2, + 87 + - ( - + 61 ) / 57 AS col2
----
65
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT DISTINCT + 83 * - COUNT( * ) + - - 98
----
15

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT + 83 * - COUNT ( * ) + - - 98
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6416
SELECT ALL + 47 * - + 46 * 34 - - 53 - + - COUNT( * ) + - NULLIF ( 9, - - 45 * - MAX( DISTINCT + 77 ) - 91 + + - CAST( 48 AS SIGNED ) * + ( 16 ) )
----
-73463

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL + 47 * - + 46 * 34 - - 53 - + - COUNT ( * ) + - NULLIF ( 9, - - 45 * - MAX ( DISTINCT + 77 ) - 91 + + - CAST ( 48 AS INTEGER ) * + ( 16 ) )
----
-73463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6417
SELECT + 99 AS col2, + 61 / CASE + - 6 WHEN CAST( + - 80 AS SIGNED ) + - - COUNT( * ) + + 70 THEN - 83 + - + 45 ELSE NULL END * - + 4 + + 1 * + COUNT( * ) / 73 AS col2
----
99
NULL

skipif mysql # not compatible
query II rowsort label-6417
SELECT + 99 AS col2, + 61 / CASE + - 6 WHEN CAST ( + - 80 AS INTEGER ) + - - COUNT ( * ) + + 70 THEN - 83 + - + 45 ELSE NULL END * - + 4 + + 1 * + COUNT ( * ) / 73 AS col2
----
99
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT COUNT( * ) * 50 * - 50 AS col1
----
-2500

skipif mysql # not compatible
query I rowsort label-6419
SELECT COUNT ( * ) * 50 * - 50 AS col1
----
-2500

onlyif mysql # aggregate syntax: 
query II rowsort label-6420
SELECT COUNT( ALL + - 34 ), 36 AS col2
----
1
36

skipif mysql # not compatible
query II rowsort label-6420
SELECT COUNT ( ALL + - 34 ), 36 AS col2
----
1
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT COUNT( ALL - - COALESCE ( + + 60, - 85 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6421
SELECT COUNT ( ALL - - COALESCE ( + + 60, - 85 ) ) AS col0
----
1

query I rowsort
SELECT ALL + 44 * - - 12 + - + 99
----
429

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

skipif mysql # not compatible
query II rowsort label-6423
SELECT COUNT ( + 1 ) * + 15, - 8 AS col2
----
15
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6424
SELECT 33 * + NULLIF ( 72, - - NULLIF ( + + COALESCE ( + COUNT( * ), 31 * + COALESCE ( ( - 79 ), + AVG ( - 92 ) - - + CAST( + 87 AS SIGNED ) ) + + 71 ), CAST( - SUM( - - 2 ) AS SIGNED ) + - 9 ) )
----
2376

skipif mysql # not compatible
query I rowsort label-6424
SELECT 33 * + NULLIF ( 72, - - NULLIF ( + + COALESCE ( + COUNT ( * ), 31 * + COALESCE ( ( - 79 ), + AVG ( - 92 ) - - + CAST ( + 87 AS INTEGER ) ) + + 71 ), CAST ( - SUM ( - - 2 ) AS INTEGER ) + - 9 ) )
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT DISTINCT 77 * 51 + CASE + 4 WHEN - 54 THEN NULL ELSE - + 24 + - 37 + - - SUM( 43 ) END AS col2
----
3909

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT 77 * 51 + CASE + 4 WHEN - 54 THEN NULL ELSE - + 24 + - 37 + - - SUM ( 43 ) END AS col2
----
3909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6426
SELECT ALL + 67 * 80 * 86 + + CAST( + 6 AS SIGNED )
----
460966

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL + 67 * 80 * 86 + + CAST ( + 6 AS INTEGER )
----
460966

query I rowsort
SELECT DISTINCT - 84 * + 4 + - - 58 * - 89
----
-5498

onlyif mysql # aggregate syntax: 
query II rowsort label-6428
SELECT DISTINCT - SUM( + 8 ) col0, + COUNT( * ) * + 11 AS col2
----
-8
11

skipif mysql # not compatible
query II rowsort label-6428
SELECT DISTINCT - SUM ( + 8 ) col0, + COUNT ( * ) * + 11 AS col2
----
-8
11

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6431
SELECT + 12 + + 25 DIV CAST( + + 20 AS SIGNED ) * - 37 + + - 41 + - - 83 DIV + 2 + - 82 - 68 * - 58 AS col0
----
3837

skipif mysql # not compatible
query I rowsort label-6431
SELECT + 12 + + 25 / CAST ( + + 20 AS INTEGER ) * - 37 + + - 41 + - - 83 / + 2 + - 82 - 68 * - 58 AS col0
----
3837

onlyif mysql # aggregate syntax: 
query II rowsort label-6432
SELECT DISTINCT + MIN( - 27 ), + 7 * - 70 AS col1
----
-27
-490

skipif mysql # not compatible
query II rowsort label-6432
SELECT DISTINCT + MIN ( - 27 ), + 7 * - 70 AS col1
----
-27
-490

query I rowsort
SELECT - 6 * + 90
----
-540

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

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL + CAST ( + + 15 AS INTEGER ) / + 64
----
0

query I rowsort
SELECT - 82 + ( 80 )
----
-2

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

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

query I rowsort
SELECT - 0 * + 96 AS col2
----
0

query I rowsort
SELECT 92 * 97 + - 78
----
8846

query I rowsort
SELECT - 76 * + - 68
----
5168

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

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

query II rowsort
SELECT ALL + 78 * 18 + - 62, 38 + 78 AS col0
----
1342
116

query I rowsort
SELECT - 12 * + 73 * - - 21
----
-18396

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT - - 3 + - COUNT( * ) - 89 * + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-6443
SELECT - - 3 + - COUNT ( * ) - 89 * + - COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT DISTINCT - + 43 * + ( + - 71 ) * COUNT( * ) + ( + 70 ) * + 95 AS col0
----
9703

skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT - + 43 * + ( + - 71 ) * COUNT ( * ) + ( + 70 ) * + 95 AS col0
----
9703

query I rowsort
SELECT + + 23 + - 92 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT + COUNT( * ) * - ( + CASE COUNT( * ) WHEN - 99 THEN - + 99 * 43 / 63 WHEN - 53 THEN NULL WHEN + 54 + + COALESCE ( - COUNT( * ), COUNT( - 66 ) ) THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT + COUNT ( * ) * - ( + CASE COUNT ( * ) WHEN - 99 THEN - + 99 * 43 / 63 WHEN - 53 THEN NULL WHEN + 54 + + COALESCE ( - COUNT ( * ), COUNT ( - 66 ) ) THEN NULL ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6447
SELECT DISTINCT + + 51 + + 68 AS col1, - COUNT( ALL - - 26 ) AS col1
----
119
-1

skipif mysql # not compatible
query II rowsort label-6447
SELECT DISTINCT + + 51 + + 68 AS col1, - COUNT ( ALL - - 26 ) AS col1
----
119
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6448
SELECT - + NULLIF ( - 1, + 16 ) DIV + 95 DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-6448
SELECT - + NULLIF ( - 1, + 16 ) / + 95 / - 39
----
0

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

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL - - COUNT ( * ) + + 36 + - - 97 AS col1
----
134

query I rowsort
SELECT ALL - 60 + + 94 - + 48 * + 97 AS col1
----
-4622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT + CAST( NULL AS SIGNED ) / + ( 52 ) + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT + CAST ( NULL AS INTEGER ) / + ( 52 ) + 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT + - 21 + + 38 * - MIN( 76 )
----
-2909

skipif mysql # not compatible
query I rowsort label-6452
SELECT + - 21 + + 38 * - MIN ( 76 )
----
-2909

query I rowsort
SELECT DISTINCT - ( - 17 ) * + 52 col1
----
884

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6454
SELECT - ( + - COUNT( * ) ) DIV 29 + ( + - 30 ) AS col0, 72 + 89 - + 0 + - - 19 * + 9
----
-30
332

skipif mysql # not compatible
query II rowsort label-6454
SELECT - ( + - COUNT ( * ) ) / 29 + ( + - 30 ) AS col0, 72 + 89 - + 0 + - - 19 * + 9
----
-30
332

query I rowsort
SELECT - 67 * 51 - 5 AS col2
----
-3422

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT ALL + MIN( DISTINCT + 95 ) col2
----
95

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL + MIN ( DISTINCT + 95 ) col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT DISTINCT - COUNT( * ) * 25 * + ( + - 95 ) - - 13 * - - 42 col2
----
2921

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT - COUNT ( * ) * 25 * + ( + - 95 ) - - 13 * - - 42 col2
----
2921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6458
SELECT + NULLIF ( - CASE - + 25 WHEN + + 94 * - COUNT( * ) THEN + 1 END, + 95 - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6458
SELECT + NULLIF ( - CASE - + 25 WHEN + + 94 * - COUNT ( * ) THEN + 1 END, + 95 - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6459
SELECT + 18 + COUNT( * ) + + COUNT( * ) AS col2, 28 AS col1
----
20
28

skipif mysql # not compatible
query II rowsort label-6459
SELECT + 18 + COUNT ( * ) + + COUNT ( * ) AS col2, 28 AS col1
----
20
28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6460
SELECT ( CAST( + CAST( 90 AS DECIMAL ) AS SIGNED ) )
----
90

skipif mysql # not compatible
query I rowsort label-6460
SELECT ( CAST ( + CAST ( 90 AS REAL ) AS INTEGER ) )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6461
SELECT + CASE 42 WHEN - CAST( NULL AS SIGNED ) THEN + - 44 WHEN + 42 THEN NULL WHEN COUNT( + 23 ) THEN NULL ELSE 28 / - SUM( + CAST( + NULLIF ( + - 8, + 68 + + 31 ) AS SIGNED ) ) * SUM( - + 20 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6461
SELECT + CASE 42 WHEN - CAST ( NULL AS INTEGER ) THEN + - 44 WHEN + 42 THEN NULL WHEN COUNT ( + 23 ) THEN NULL ELSE 28 / - SUM ( + CAST ( + NULLIF ( + - 8, + 68 + + 31 ) AS INTEGER ) ) * SUM ( - + 20 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6462
SELECT + 6 * - CAST( 38 AS SIGNED )
----
-228

skipif mysql # not compatible
query I rowsort label-6462
SELECT + 6 * - CAST ( 38 AS INTEGER )
----
-228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6463
SELECT CASE 65 WHEN - NULLIF ( + + MIN( ALL - - 90 ), + 11 ) * + - 22 THEN NULL WHEN + MIN( DISTINCT + 96 ) THEN NULL ELSE - NULLIF ( - 43, - 24 ) - + 23 DIV - COUNT( * ) DIV - + COUNT( * ) END * + - 89 * ( - + 3 ) * - + 71 + - 8 + + 89 * - CAST( - 37 AS SIGNED ) * COUNT( * ) + + - 79 * 72 AS col2
----
-381543

skipif mysql # not compatible
query I rowsort label-6463
SELECT CASE 65 WHEN - NULLIF ( + + MIN ( ALL - - 90 ), + 11 ) * + - 22 THEN NULL WHEN + MIN ( DISTINCT + 96 ) THEN NULL ELSE - NULLIF ( - 43, - 24 ) - + 23 / - COUNT ( * ) / - + COUNT ( * ) END * + - 89 * ( - + 3 ) * - + 71 + - 8 + + 89 * - CAST ( - 37 AS INTEGER ) * COUNT ( * ) + + - 79 * 72 AS col2
----
-381543

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT + 82 + + + COALESCE ( + 48, - - COALESCE ( - 51, COUNT( * ), - + 2 ) ) AS col2
----
130

skipif mysql # not compatible
query I rowsort label-6464
SELECT + 82 + + + COALESCE ( + 48, - - COALESCE ( - 51, COUNT ( * ), - + 2 ) ) AS col2
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6465
SELECT ALL CASE + 3 WHEN CAST( NULL AS SIGNED ) + + + 66 THEN 15 + - 51 WHEN - CAST( NULL AS SIGNED ) - - - 65 THEN NULL WHEN - MIN( 60 ) * + - 36 - 49 THEN + 49 * - 15 + - 16 END / + 25 * + ( - 79 ) * - 27 - - 41 + - 43 * + - COUNT( * ) / - 74 / 18 AS col2, - ( - 31 ) AS col2, + - 54 col1
----
NULL
31
-54

skipif mysql # not compatible
query III rowsort label-6465
SELECT ALL CASE + 3 WHEN CAST ( NULL AS INTEGER ) + + + 66 THEN 15 + - 51 WHEN - CAST ( NULL AS INTEGER ) - - - 65 THEN NULL WHEN - MIN ( 60 ) * + - 36 - 49 THEN + 49 * - 15 + - 16 END / + 25 * + ( - 79 ) * - 27 - - 41 + - 43 * + - COUNT ( * ) / - 74 / 18 AS col2, - ( - 31 ) AS col2, + - 54 col1
----
NULL
31
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT + MIN( DISTINCT + ( - 40 ) ) * + 77 AS col1
----
-3080

skipif mysql # not compatible
query I rowsort label-6466
SELECT + MIN ( DISTINCT + ( - 40 ) ) * + 77 AS col1
----
-3080

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

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

query I rowsort
SELECT DISTINCT ( 19 ) * 54 AS col2
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT + 62 * + COUNT( * ) + - - 59 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-6469
SELECT + 62 * + COUNT ( * ) + - - 59 AS col0
----
121

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT DISTINCT + ( MIN( ALL ( NULLIF ( + ( 31 ), - 58 + 68 ) ) ) )
----
31

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT + ( MIN ( ALL ( NULLIF ( + ( 31 ), - 58 + 68 ) ) ) )
----
31

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

query I rowsort
SELECT DISTINCT 11 + 72 AS col0
----
83

query I rowsort
SELECT DISTINCT 15 + 65 AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6475
SELECT ALL + 86 + - 99 * - - COUNT( * ) + - ( + ( + 66 ) ), - 99 DIV 61 DIV ( 8 ) * + - 79 AS col2
----
-79
0

skipif mysql # not compatible
query II rowsort label-6475
SELECT ALL + 86 + - 99 * - - COUNT ( * ) + - ( + ( + 66 ) ), - 99 / 61 / ( 8 ) * + - 79 AS col2
----
-79
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6476
SELECT DISTINCT + 22 + + 79 - + CAST( - CASE + - 45 WHEN - 62 * + CASE + 48 WHEN + COALESCE ( - - CASE 26 WHEN + 0 + + + 64 THEN NULL ELSE - CASE COALESCE ( - 84, 37 * 61 + 49 + 87 + + 6 * - - 32 ) WHEN + COUNT( * ) THEN + COUNT( * ) + + 98 END * - - 33 * - - COUNT( * ) + + NULLIF ( + 76, - 2 ) END, + AVG ( - 10 ) ) + + 3 / 67 THEN 18 + - 46 END THEN 40 ELSE NULL END AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT + 22 + + 79 - + CAST ( - CASE + - 45 WHEN - 62 * + CASE + 48 WHEN + COALESCE ( - - CASE 26 WHEN + 0 + + + 64 THEN NULL ELSE - CASE COALESCE ( - 84, 37 * 61 + 49 + 87 + + 6 * - - 32 ) WHEN + COUNT ( * ) THEN + COUNT ( * ) + + 98 END * - - 33 * - - COUNT ( * ) + + NULLIF ( + 76, - 2 ) END, + AVG ( - 10 ) ) + + 3 / 67 THEN 18 + - 46 END THEN 40 ELSE NULL END AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 64 + + COALESCE ( 27, - 34 ) col1
----
-37

query II rowsort
SELECT ALL 72, + 62 AS col1
----
72
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6479
SELECT - + 9 AS col0, 65 * - - 61 / + 65 * - 10 * - + 97 + + - COUNT( * ) + + 20 + CASE 74 WHEN 99 THEN NULL WHEN - CASE + 97 WHEN - + 66 + + - 98 THEN + 90 END THEN - 99 * 97 END * 65 * - AVG ( ALL 60 )
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-6479
SELECT - + 9 AS col0, 65 * - - 61 / + 65 * - 10 * - + 97 + + - COUNT ( * ) + + 20 + CASE 74 WHEN 99 THEN NULL WHEN - CASE + 97 WHEN - + 66 + + - 98 THEN + 90 END THEN - 99 * 97 END * 65 * - AVG ( ALL 60 )
----
-9
NULL

query I rowsort
SELECT - + COALESCE ( + 97, - 91 * 36 ) AS col0
----
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT ALL MIN( 3 ) - - 21 * - + 3 + + - 82 + - 55 * - + 68
----
3598

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL MIN ( 3 ) - - 21 * - + 3 + + - 82 + - 55 * - + 68
----
3598

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6483
SELECT NULLIF ( - 15, + COUNT( + 40 ) ) DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-6483
SELECT NULLIF ( - 15, + COUNT ( + 40 ) ) / 80
----
0

query I rowsort
SELECT ALL 1 * + 79 AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6485
SELECT DISTINCT - CASE + 28 WHEN + 19 THEN - + CAST( 42 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT - CASE + 28 WHEN + 19 THEN - + CAST ( 42 AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 37 * - 84 AS col0
----
-3108

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6488
SELECT CAST( + 84 AS SIGNED ) * + + 86
----
7224

skipif mysql # not compatible
query I rowsort label-6488
SELECT CAST ( + 84 AS INTEGER ) * + + 86
----
7224

query I rowsort
SELECT ALL - 75 + - - 55
----
-20

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6491
SELECT ALL 60 * - + ( + 31 ) * - - NULLIF ( + 39, CAST( NULL AS SIGNED ) + - 0 ) * + - 18 + 76 + ( - 73 ) + + MAX( + 33 ) AS col0
----
1305756

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL 60 * - + ( + 31 ) * - - NULLIF ( + 39, CAST ( NULL AS INTEGER ) + - 0 ) * + - 18 + 76 + ( - 73 ) + + MAX ( + 33 ) AS col0
----
1305756

onlyif mysql # DIV for integer division: 
query II rowsort label-6492
SELECT 60 DIV 16 AS col1, + 79 AS col2
----
3
79

skipif mysql # not compatible
query II rowsort label-6492
SELECT 60 / 16 AS col1, + 79 AS col2
----
3
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT DISTINCT 0 + - - 47 + + COUNT( * ) - - - 51
----
-3

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT 0 + - - 47 + + COUNT ( * ) - - - 51
----
-3

query I rowsort
SELECT ALL - 15 + + + 45
----
30

query I rowsort
SELECT ALL 27 * 32
----
864

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

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT 31 + - 19 * + - ( 47 ) * - - ( + - ( - + COUNT ( * ) ) ) + - CAST ( NULL AS REAL ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + - ( + 14 ) - 59 AS col1
----
-73

query I rowsort
SELECT DISTINCT 16 - - 70
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT ALL - - 58 DIV 27 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL - - 58 / 27 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT COALESCE ( + MAX( ALL + + ( - + 65 ) ), 47, 14 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-6501
SELECT COALESCE ( + MAX ( ALL + + ( - + 65 ) ), 47, 14 ) AS col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-6502
SELECT ALL - 38 - + 76 DIV + 27
----
-40

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL - 38 - + 76 / + 27
----
-40

query II rowsort
SELECT DISTINCT 82 AS col2, + 82 AS col1
----
82
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6504
SELECT ALL 34 AS col1, - 18 * COUNT( * ) AS col2
----
34
-18

skipif mysql # not compatible
query II rowsort label-6504
SELECT ALL 34 AS col1, - 18 * COUNT ( * ) AS col2
----
34
-18

query I rowsort
SELECT 33 - - - 62 - + - 94 AS col2
----
65

query I rowsort
SELECT ALL + 23 * + 63 AS col1
----
1449

query I rowsort
SELECT 22 + + 79
----
101

query I rowsort
SELECT ALL - ( + - 33 ) * - - 2 * + 5
----
330

query I rowsort
SELECT ALL - COALESCE ( 26, + - 47 + - 21 )
----
-26

query I rowsort
SELECT - ( + 84 ) * + - ( - 28 ) + - + 82 * + + 89 AS col2
----
-9650

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

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

query I rowsort
SELECT DISTINCT - 5 * + + 75 AS col0
----
-375

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6514
SELECT ALL 47 DIV - - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL 47 / - - 94 AS col0
----
0

query II rowsort
SELECT DISTINCT - 93 col0, - 81
----
-93
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-6516
SELECT 16 AS col2, ( 58 ) * + MAX( + 20 ) * - COUNT( * ) AS col2
----
16
-1160

skipif mysql # not compatible
query II rowsort label-6516
SELECT 16 AS col2, ( 58 ) * + MAX ( + 20 ) * - COUNT ( * ) AS col2
----
16
-1160

query I rowsort
SELECT 41 * - 65 * + 17
----
-45305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6518
SELECT 76 + - - CASE + COUNT( * ) WHEN - - 82 / - NULLIF ( - COALESCE ( + - CAST( NULL AS SIGNED ), 22 * - + 21 + 96 * + ( + - 13 ), - + 82 + - 56 ), 23 ) * - 56 + - - 67 THEN NULL WHEN - 0 THEN + ( + 61 ) - 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6518
SELECT 76 + - - CASE + COUNT ( * ) WHEN - - 82 / - NULLIF ( - COALESCE ( + - CAST ( NULL AS INTEGER ), 22 * - + 21 + 96 * + ( + - 13 ), - + 82 + - 56 ), 23 ) * - 56 + - - 67 THEN NULL WHEN - 0 THEN + ( + 61 ) - 76 END
----
NULL

query I rowsort
SELECT 51 * + 25 AS col1
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT + 75 * + COUNT( * ) + + 57 - 66 + + COUNT( * ) * ( + - 70 ) + 39 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6520
SELECT + 75 * + COUNT ( * ) + + 57 - 66 + + COUNT ( * ) * ( + - 70 ) + 39 AS col2
----
35

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT 35 * ( + MAX( 91 ) ) * + 7 + - ( + 57 ) + - + 67
----
22171

skipif mysql # not compatible
query I rowsort label-6523
SELECT 35 * ( + MAX ( 91 ) ) * + 7 + - ( + 57 ) + - + 67
----
22171

query I rowsort
SELECT DISTINCT + 77 + + 20 + 25
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT ALL 49 + - ( + MIN( - + 50 ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL 49 + - ( + MIN ( - + 50 ) ) AS col1
----
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6527
SELECT ALL + CAST( NULL AS SIGNED ) + + 7 * + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL + CAST ( NULL AS INTEGER ) + + 7 * + 62 AS col2
----
NULL

query I rowsort
SELECT ALL + 27 * + 28
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT ALL CASE - - 26 WHEN 90 THEN - 96 - - CASE - 58 WHEN 21 * - 48 + + 53 - 40 + 18 THEN 61 END * - - COUNT( * ) END + - - 45 + + - 13 - + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL CASE - - 26 WHEN 90 THEN - 96 - - CASE - 58 WHEN 21 * - 48 + + 53 - 40 + 18 THEN 61 END * - - COUNT ( * ) END + - - 45 + + - 13 - + 14 AS col0
----
NULL

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

query I rowsort
SELECT 23 * + 1
----
23

query I rowsort
SELECT + 55 * - 18 AS col1
----
-990

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT SUM( 12 )
----
12

skipif mysql # not compatible
query I rowsort label-6534
SELECT SUM ( 12 )
----
12

query II rowsort
SELECT ALL + 3 - + ( + 5 ) AS col2, + NULLIF ( - 8, 21 - - - 8 )
----
-2
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6536
SELECT - ( + 77 ) + + 19 + + 51 * - - 46 col0, ( - SUM( DISTINCT 27 ) ) * + 64 col1
----
2288
-1728

skipif mysql # not compatible
query II rowsort label-6536
SELECT - ( + 77 ) + + 19 + + 51 * - - 46 col0, ( - SUM ( DISTINCT 27 ) ) * + 64 col1
----
2288
-1728

query I rowsort
SELECT DISTINCT - - 89 - + 85 AS col2
----
4

query I rowsort
SELECT - 10 * 47 + - - 93 AS col2
----
-377

query I rowsort
SELECT DISTINCT + 20 - + - 81
----
101

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6541
SELECT ALL + 51 DIV + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL + 51 / + 57 AS col2
----
0

query I rowsort
SELECT ALL + 87 - 83 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT - NULLIF ( - 38, - MAX( - 27 ) * - 9 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6543
SELECT - NULLIF ( - 38, - MAX ( - 27 ) * - 9 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT ALL COALESCE ( 80, - COUNT( * ), - COUNT( * ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL COALESCE ( 80, - COUNT ( * ), - COUNT ( * ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT - COUNT( - 59 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6545
SELECT - COUNT ( - 59 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6546
SELECT + 43 + + 20 DIV + + 97 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-6546
SELECT + 43 + + 20 / + + 97 AS col2
----
43

query II rowsort
SELECT DISTINCT 80 AS col0, - 95
----
80
-95

query I rowsort
SELECT - 19 + - 80 - + + ( - + 78 ) * - + 66 + - - 46 + + 86 * - 77 AS col0
----
-11823

query II rowsort
SELECT 78 AS col2, 35 AS col1
----
78
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6550
SELECT + 66 DIV CASE + - 18 WHEN - 20 DIV + 81 + + 26 - + 8 DIV - 91 THEN - 44 ELSE - 76 END
----
0

skipif mysql # not compatible
query I rowsort label-6550
SELECT + 66 / CASE + - 18 WHEN - 20 / + 81 + + 26 - + 8 / - 91 THEN - 44 ELSE - 76 END
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6551
SELECT - 72 DIV 86 col2
----
0

skipif mysql # not compatible
query I rowsort label-6551
SELECT - 72 / 86 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6552
SELECT DISTINCT ( + 86 ) * - + 66 + - - 91 DIV 28 + 24 * - - 21 * - - 34
----
11463

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT ( + 86 ) * - + 66 + - - 91 / 28 + 24 * - - 21 * - - 34
----
11463

query II rowsort
SELECT DISTINCT 3 AS col2, - 16 AS col1
----
3
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT ALL COALESCE ( - COUNT( ALL - 61 ), - 4 + 37 ) + 11 * + 68
----
747

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL COALESCE ( - COUNT ( ALL - 61 ), - 4 + 37 ) + 11 * + 68
----
747

query II rowsort
SELECT 7 AS col2, 41
----
7
41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT + 24 * + COUNT( * ) * + ( 57 ) * + 78
----
106704

skipif mysql # not compatible
query I rowsort label-6557
SELECT + 24 * + COUNT ( * ) * + ( 57 ) * + 78
----
106704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6558
SELECT ALL 9 * - 87 + 8 * + 66 * - + COUNT( * ) * - NULLIF ( - COALESCE ( + + 96, 15, + 48 - + CASE - SUM( DISTINCT 11 ) WHEN - 70 THEN + 12 * + 94 END + - 29 * - CAST( - 22 AS SIGNED ) * + COUNT( * ) * - 95 ), - - 22 ) AS col1
----
-51471

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL 9 * - 87 + 8 * + 66 * - + COUNT ( * ) * - NULLIF ( - COALESCE ( + + 96, 15, + 48 - + CASE - SUM ( DISTINCT 11 ) WHEN - 70 THEN + 12 * + 94 END + - 29 * - CAST ( - 22 AS INTEGER ) * + COUNT ( * ) * - 95 ), - - 22 ) AS col1
----
-51471

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

query I rowsort
SELECT - 93 - - 40 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-6561
SELECT + 23 col1, - CASE + 50 WHEN 65 + - 4 * - COUNT( * ) * COUNT( * ) + + 40 / + 77 THEN + 87 + + - 30 ELSE NULL END
----
23
NULL

skipif mysql # not compatible
query II rowsort label-6561
SELECT + 23 col1, - CASE + 50 WHEN 65 + - 4 * - COUNT ( * ) * COUNT ( * ) + + 40 / + 77 THEN + 87 + + - 30 ELSE NULL END
----
23
NULL

query II rowsort
SELECT + 76 AS col1, - 62 + + + 6
----
76
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT ALL MAX( + - 52 ) * + 28 + - 72 AS col1
----
-1528

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL MAX ( + - 52 ) * + 28 + - 72 AS col1
----
-1528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6564
SELECT DISTINCT - 91 * - - 16 + 36 + + CAST( + + 49 AS SIGNED ) AS col2
----
-1371

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT - 91 * - - 16 + 36 + + CAST ( + + 49 AS INTEGER ) AS col2
----
-1371

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

query I rowsort
SELECT DISTINCT - + NULLIF ( - + NULLIF ( - + 56, - 18 ), + COALESCE ( - + 40, + 72 ) ) * - 95
----
5320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6567
SELECT ALL CAST( + + ( + 54 ) AS SIGNED ) * 53 * - - COUNT( * ) + COUNT( * ) - CAST( NULL AS DECIMAL ) * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL CAST ( + + ( + 54 ) AS INTEGER ) * 53 * - - COUNT ( * ) + COUNT ( * ) - CAST ( NULL AS REAL ) * 90
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6568
SELECT - 29 AS col1, - COUNT( * ) * - 44 - + COUNT( * ) + 9
----
-29
52

skipif mysql # not compatible
query II rowsort label-6568
SELECT - 29 AS col1, - COUNT ( * ) * - 44 - + COUNT ( * ) + 9
----
-29
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6569
SELECT + 83 * 23 + + 0 DIV - ( - + 82 ) AS col0
----
1909

skipif mysql # not compatible
query I rowsort label-6569
SELECT + 83 * 23 + + 0 / - ( - + 82 ) AS col0
----
1909

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT - + 12 - + - 21 + + 63 * 52 * 36 * SUM( ALL + 42 ) * - ( 92 ) AS col2
----
-455704695

skipif mysql # not compatible
query I rowsort label-6570
SELECT - + 12 - + - 21 + + 63 * 52 * 36 * SUM ( ALL + 42 ) * - ( 92 ) AS col2
----
-455704695

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT - - COUNT( * ) + - 89 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-6571
SELECT - - COUNT ( * ) + - 89 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-6572
SELECT DISTINCT + - COUNT( * ), + 67 * + 70 AS col1
----
-1
4690

skipif mysql # not compatible
query II rowsort label-6572
SELECT DISTINCT + - COUNT ( * ), + 67 * + 70 AS col1
----
-1
4690

query I rowsort
SELECT + 75 * + 85 - 28
----
6347

query I rowsort
SELECT ALL + 41 * - - 70 AS col0
----
2870

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6576
SELECT DISTINCT - - COUNT( * ) * - 20 - + 73 + + 46 * NULLIF ( + 49, + 86 + COUNT( * ) + COUNT( * ) ) * COUNT( * ) * - 65 DIV COUNT( * ) + - 19 * + 43 * MIN( - + 28 ) AS col0
----
-123727

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT - - COUNT ( * ) * - 20 - + 73 + + 46 * NULLIF ( + 49, + 86 + COUNT ( * ) + COUNT ( * ) ) * COUNT ( * ) * - 65 / COUNT ( * ) + - 19 * + 43 * MIN ( - + 28 ) AS col0
----
-123727

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT DISTINCT + - 25 * + + 73 * - 23 * - - COUNT( * )
----
41975

skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT + - 25 * + + 73 * - 23 * - - COUNT ( * )
----
41975

query I rowsort
SELECT - 8 * 80 * + - 76 * + 40 + 73 col0
----
1945673

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT ALL COALESCE ( - - ( + MAX( + 38 ) ), - 76, 74 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL COALESCE ( - - ( + MAX ( + 38 ) ), - 76, 74 ) AS col2
----
38

query I rowsort
SELECT - - 86 * + - 78 * + 79 AS col2
----
-529932

query I rowsort
SELECT ALL + 80 * - - 86 * + 94 AS col0
----
646720

query I rowsort
SELECT ALL - + 12 * + - 43
----
516

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

query I rowsort
SELECT + - 36 + - ( 91 )
----
-127

query I rowsort
SELECT - 90 * - 80 AS col2
----
7200

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6587
SELECT ALL 71 + + - 11 * + 86 * + CAST( NULL AS SIGNED ) * - + ( 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL 71 + + - 11 * + 86 * + CAST ( NULL AS INTEGER ) * - + ( 60 ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6588
SELECT - ( - + 22 ), - CAST( NULL AS DECIMAL ) AS col0
----
22
NULL

skipif mysql # not compatible
query II rowsort label-6588
SELECT - ( - + 22 ), - CAST ( NULL AS REAL ) AS col0
----
22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT DISTINCT COALESCE ( 2, - 81, + 35 ) + - - SUM( - + 78 ) + COALESCE ( + NULLIF ( - MIN( - - 37 ), + - 20 ), - 28 ) col1
----
-113

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT COALESCE ( 2, - 81, + 35 ) + - - SUM ( - + 78 ) + COALESCE ( + NULLIF ( - MIN ( - - 37 ), + - 20 ), - 28 ) col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT + COUNT( * ) - - - MIN( ALL + 36 ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-6590
SELECT + COUNT ( * ) - - - MIN ( ALL + 36 ) col1
----
-35

query I rowsort
SELECT ALL 35 + + 37
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-6592
SELECT + 0 + 46 col1, 25 - - - 17 DIV + 67
----
46
25

skipif mysql # not compatible
query II rowsort label-6592
SELECT + 0 + 46 col1, 25 - - - 17 / + 67
----
46
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6593
SELECT - NULLIF ( SUM( ( + 71 ) ), CAST( + + 66 AS DECIMAL ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-6593
SELECT - NULLIF ( SUM ( ( + 71 ) ), CAST ( + + 66 AS REAL ) ) AS col2
----
-71

query I rowsort
SELECT ALL 88 + - - 77 + 93 AS col1
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT - ( 11 ) * - 96 + - COUNT( * ) AS col1
----
1055

skipif mysql # not compatible
query I rowsort label-6595
SELECT - ( 11 ) * - 96 + - COUNT ( * ) AS col1
----
1055

query I rowsort
SELECT + 96 * - 35 * - - 12 AS col2
----
-40320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6597
SELECT DISTINCT + COALESCE ( + + 20, + + 24, + CAST( 66 AS SIGNED ) * COUNT( * ) ) DIV - 25 DIV 1 - + COUNT( * ) * - 7 + - - 6 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT + COALESCE ( + + 20, + + 24, + CAST ( 66 AS INTEGER ) * COUNT ( * ) ) / - 25 / 1 - + COUNT ( * ) * - 7 + - - 6 AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6598
SELECT - COALESCE ( + 3, MIN( 73 ) ) + - CAST( + - 42 AS SIGNED ) col0
----
39

skipif mysql # not compatible
query I rowsort label-6598
SELECT - COALESCE ( + 3, MIN ( 73 ) ) + - CAST ( + - 42 AS INTEGER ) col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6599
SELECT + 76 * - CAST( + 69 AS SIGNED ) / + - ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6599
SELECT + 76 * - CAST ( + 69 AS INTEGER ) / + - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT DISTINCT - 45 * - 9 + - SUM( DISTINCT + + 2 ) col0
----
403

skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT - 45 * - 9 + - SUM ( DISTINCT + + 2 ) col0
----
403

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

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

query I rowsort
SELECT ALL + + 64 * - 33 AS col0
----
-2112

onlyif mysql # aggregate syntax: 
query II rowsort label-6603
SELECT DISTINCT + - MIN( ALL - 65 ) AS col0, 47
----
65
47

skipif mysql # not compatible
query II rowsort label-6603
SELECT DISTINCT + - MIN ( ALL - 65 ) AS col0, 47
----
65
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6604
SELECT COALESCE ( - 85, COUNT( 17 ) * + CAST( NULL AS SIGNED ) ) AS col1, + 57 * + - 99 AS col2
----
-85
-5643

skipif mysql # not compatible
query II rowsort label-6604
SELECT COALESCE ( - 85, COUNT ( 17 ) * + CAST ( NULL AS INTEGER ) ) AS col1, + 57 * + - 99 AS col2
----
-85
-5643

onlyif mysql # DIV for integer division: 
query II rowsort label-6605
SELECT 53 DIV 8 col1, 66
----
6
66

skipif mysql # not compatible
query II rowsort label-6605
SELECT 53 / 8 col1, 66
----
6
66

query II rowsort
SELECT - 29, - 78 col2
----
-29
-78

query I rowsort
SELECT 32 + 80 * + 49
----
3952

query I rowsort
SELECT 35 * 63
----
2205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6609
SELECT ALL + SUM( DISTINCT - 63 ) DIV + + ( - COALESCE ( - 91, - + ( - 43 ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL + SUM ( DISTINCT - 63 ) / + + ( - COALESCE ( - 91, - + ( - 43 ) ) ) AS col0
----
0

query I rowsort
SELECT ALL + 37 * + 90
----
3330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6611
SELECT COUNT( * ) DIV - ( - 74 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6611
SELECT COUNT ( * ) / - ( - 74 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6612
SELECT ALL + CASE 79 WHEN 7 THEN 53 * - + 87 * - CAST( NULL AS SIGNED ) * + 46 * - NULLIF ( + - 5, + 56 * + COUNT( * ) * - + ( + 7 ) ) WHEN - ( COALESCE ( - + CAST( NULL AS DECIMAL ), - ( + 60 ) ) ) THEN NULL END + ( 40 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL + CASE 79 WHEN 7 THEN 53 * - + 87 * - CAST ( NULL AS INTEGER ) * + 46 * - NULLIF ( + - 5, + 56 * + COUNT ( * ) * - + ( + 7 ) ) WHEN - ( COALESCE ( - + CAST ( NULL AS REAL ), - ( + 60 ) ) ) THEN NULL END + ( 40 ) col2
----
NULL

query I rowsort
SELECT ALL 30 * + 85 * + 17 AS col1
----
43350

query I rowsort
SELECT DISTINCT 89 + + - 97 - - 31
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-6615
SELECT DISTINCT - CASE - + 0 WHEN + COALESCE ( COUNT( * ), + 38 * - - MIN( - 38 ) ) * 0 * 31 + + - MAX( + 67 ) THEN + 97 + + 26 END * 78 + 40 - + 85, 42 + + 36 + + + 6 * + - 99 * + 57 AS col0
----
NULL
-33780

skipif mysql # not compatible
query II rowsort label-6615
SELECT DISTINCT - CASE - + 0 WHEN + COALESCE ( COUNT ( * ), + 38 * - - MIN ( - 38 ) ) * 0 * 31 + + - MAX ( + 67 ) THEN + 97 + + 26 END * 78 + 40 - + 85, 42 + + 36 + + + 6 * + - 99 * + 57 AS col0
----
NULL
-33780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6616
SELECT CASE - 6 WHEN - 95 THEN + 34 + + CAST( NULL AS SIGNED ) + + 14 WHEN - - 19 THEN + 35 / - 59 / + 33 + CASE + ( + 37 ) WHEN 87 + - - 52 THEN NULL WHEN + - 58 / + COUNT( * ) + - 9 * - + 4 / - ( + 49 ) THEN NULL ELSE + 9 * 67 END * + - 78 / - + 71 END + 9, 56 + - 26 AS col2
----
NULL
30

skipif mysql # not compatible
query II rowsort label-6616
SELECT CASE - 6 WHEN - 95 THEN + 34 + + CAST ( NULL AS INTEGER ) + + 14 WHEN - - 19 THEN + 35 / - 59 / + 33 + CASE + ( + 37 ) WHEN 87 + - - 52 THEN NULL WHEN + - 58 / + COUNT ( * ) + - 9 * - + 4 / - ( + 49 ) THEN NULL ELSE + 9 * 67 END * + - 78 / - + 71 END + 9, 56 + - 26 AS col2
----
NULL
30

query I rowsort
SELECT DISTINCT + 28 + - 4
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-6618
SELECT ALL 51, 95 DIV 35 AS col2
----
51
2

skipif mysql # not compatible
query II rowsort label-6618
SELECT ALL 51, 95 / 35 AS col2
----
51
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6619
SELECT 70, + CAST( + - 33 AS SIGNED ) col0
----
70
-33

skipif mysql # not compatible
query II rowsort label-6619
SELECT 70, + CAST ( + - 33 AS INTEGER ) col0
----
70
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT ALL 88 + MIN( DISTINCT + + 76 )
----
164

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL 88 + MIN ( DISTINCT + + 76 )
----
164

query II rowsort
SELECT - 61 AS col1, 72 AS col1
----
-61
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT SUM( + - 32 ) * 28 AS col1
----
-896

skipif mysql # not compatible
query I rowsort label-6622
SELECT SUM ( + - 32 ) * 28 AS col1
----
-896

query I rowsort
SELECT ALL - 2 - - - 30
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-6624
SELECT ALL 28 DIV - COALESCE ( + 62, + 12 + - 8 + + + 22 )
----
0

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL 28 / - COALESCE ( + 62, + 12 + - 8 + + + 22 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6625
SELECT DISTINCT 87 - + + ( 95 ) DIV - COUNT( * )
----
182

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT 87 - + + ( 95 ) / - COUNT ( * )
----
182

query I rowsort
SELECT ALL - 65 - 20 AS col1
----
-85

query I rowsort
SELECT ALL 82 * - 57 AS col0
----
-4674

query I rowsort
SELECT ( 73 ) * + 10
----
730

onlyif mysql # aggregate syntax: 
query II rowsort label-6629
SELECT ALL - 46 * + ( - 72 ) * - 16 + + ( + COUNT( * ) ) AS col2, ( + 51 ) + + - 13 + + 89 + - + ( - 12 ) * - + 95 + - 41 * 1
----
-52991
-1054

skipif mysql # not compatible
query II rowsort label-6629
SELECT ALL - 46 * + ( - 72 ) * - 16 + + ( + COUNT ( * ) ) AS col2, ( + 51 ) + + - 13 + + 89 + - + ( - 12 ) * - + 95 + - 41 * 1
----
-52991
-1054

query I rowsort
SELECT - + 39 * 19 + - + 87 - - + 96
----
-732

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

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

query III rowsort
SELECT 29 * - 21 + 18 AS col0, 72 AS col0, 32 AS col1
----
-591
72
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6633
SELECT - COUNT( * ) * + 91 DIV 11
----
-8

skipif mysql # not compatible
query I rowsort label-6633
SELECT - COUNT ( * ) * + 91 / 11
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-6634
SELECT ALL 93 DIV - 59 - + - 68
----
67

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL 93 / - 59 - + - 68
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-6635
SELECT 8 DIV + + 44 + - - 71, + 64 + + 18 + - 49 + - - 76 AS col0
----
71
109

skipif mysql # not compatible
query II rowsort label-6635
SELECT 8 / + + 44 + - - 71, + 64 + + 18 + - 49 + - - 76 AS col0
----
71
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT - - 46 * + - 33 * + 70 - 28 + - COUNT( * ) AS col0
----
-106289

skipif mysql # not compatible
query I rowsort label-6636
SELECT - - 46 * + - 33 * + 70 - 28 + - COUNT ( * ) AS col0
----
-106289

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

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

query I rowsort
SELECT ( - + 29 ) * 34 AS col0
----
-986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6639
SELECT ALL - 97 + SUM( 44 ) AS col0, CAST( NULL AS SIGNED ) AS col1
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-6639
SELECT ALL - 97 + SUM ( 44 ) AS col0, CAST ( NULL AS INTEGER ) AS col1
----
-53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL + - 45 + + CASE + 56 WHEN - ( - 65 ) + - 4 THEN NULL WHEN - 53 THEN NULL ELSE - NULLIF ( 13, + 43 ) END * + - 1 * + - MAX( ALL + + 73 )
----
-994

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL + - 45 + + CASE + 56 WHEN - ( - 65 ) + - 4 THEN NULL WHEN - 53 THEN NULL ELSE - NULLIF ( 13, + 43 ) END * + - 1 * + - MAX ( ALL + + 73 )
----
-994

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6641
SELECT ( - + CASE - - COALESCE ( + AVG ( ALL 89 ), + + COUNT( * ) * - ( + COUNT( * ) ) ) WHEN 18 - + + COALESCE ( 36, + COUNT( * ) * + 19 + - + 12, 85 * - COUNT( * ) * - 82 ) * - 39 - - - NULLIF ( + 79, - CASE + 21 WHEN - 97 + + ( + - MIN( DISTINCT ( + - 29 ) ) ) THEN - - 87 * 26 - 46 ELSE + - MAX( + 11 ) * 73 * + ( - 81 * + 26 ) END + COUNT( * ) ) + - 28 * NULLIF ( - COUNT( * ), - 64 ) THEN 15 ELSE 10 DIV 40 END ) + 28 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6641
SELECT ( - + CASE - - COALESCE ( + AVG ( ALL 89 ), + + COUNT ( * ) * - ( + COUNT ( * ) ) ) WHEN 18 - + + COALESCE ( 36, + COUNT ( * ) * + 19 + - + 12, 85 * - COUNT ( * ) * - 82 ) * - 39 - - - NULLIF ( + 79, - CASE + 21 WHEN - 97 + + ( + - MIN ( DISTINCT ( + - 29 ) ) ) THEN - - 87 * 26 - 46 ELSE + - MAX ( + 11 ) * 73 * + ( - 81 * + 26 ) END + COUNT ( * ) ) + - 28 * NULLIF ( - COUNT ( * ), - 64 ) THEN 15 ELSE 10 / 40 END ) + 28 AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT ALL - CAST( 16 AS SIGNED ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL - CAST ( 16 AS INTEGER ) AS col0
----
-16

query I rowsort
SELECT DISTINCT + 70 + - 51 AS col2
----
19

query I rowsort
SELECT DISTINCT + 50 + + 72 + + 38 * - - 67 AS col2
----
2668

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6645
SELECT ALL ( COUNT( * ) ) + 1 + 55 * + COALESCE ( - 9, + 29 + COUNT( * ) DIV + 80 ) + - NULLIF ( - 50, - + MIN( + 84 ) DIV + NULLIF ( + 83, 22 * 13 * + COUNT( - 53 ) ) + - MIN( + + 66 ) DIV + 57 ) DIV + - COUNT( * )
----
-543

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL ( COUNT ( * ) ) + 1 + 55 * + COALESCE ( - 9, + 29 + COUNT ( * ) / + 80 ) + - NULLIF ( - 50, - + MIN ( + 84 ) / + NULLIF ( + 83, 22 * 13 * + COUNT ( - 53 ) ) + - MIN ( + + 66 ) / + 57 ) / + - COUNT ( * )
----
-543

query I rowsort
SELECT ALL + 33 + + + ( 47 )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6647
SELECT ALL + 33 + - + 83 - + - COUNT( * ) * - 25 col1, 51 + + - 18 AS col1
----
-75
33

skipif mysql # not compatible
query II rowsort label-6647
SELECT ALL + 33 + - + 83 - + - COUNT ( * ) * - 25 col1, 51 + + - 18 AS col1
----
-75
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT ALL MAX( DISTINCT 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL MAX ( DISTINCT 39 ) AS col2
----
39

query I rowsort
SELECT 60 * + + 1 col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT DISTINCT - MIN( DISTINCT + 99 ) - - + 74
----
-25

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT - MIN ( DISTINCT + 99 ) - - + 74
----
-25

query I rowsort
SELECT ALL + 43 * - 66 * - 81 AS col0
----
229878

query I rowsort
SELECT DISTINCT - 88 * - 37
----
3256

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT 86 * - 58 * MAX( ALL + 43 )
----
-214484

skipif mysql # not compatible
query I rowsort label-6654
SELECT 86 * - 58 * MAX ( ALL + 43 )
----
-214484

onlyif mysql # aggregate syntax: 
query II rowsort label-6655
SELECT DISTINCT + 52 * - 83 AS col1, + COALESCE ( COUNT( ALL 82 ), + 52 ) + - COUNT( * ) * - 30 * - - 30 * 23 AS col0
----
-4316
20701

skipif mysql # not compatible
query II rowsort label-6655
SELECT DISTINCT + 52 * - 83 AS col1, + COALESCE ( COUNT ( ALL 82 ), + 52 ) + - COUNT ( * ) * - 30 * - - 30 * 23 AS col0
----
-4316
20701

query I rowsort
SELECT DISTINCT - 98 * - - ( + 38 ) AS col2
----
-3724

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6658
SELECT 66 + - + 60 AS col2, MAX( DISTINCT - 28 ) AS col1
----
6
-28

skipif mysql # not compatible
query II rowsort label-6658
SELECT 66 + - + 60 AS col2, MAX ( DISTINCT - 28 ) AS col1
----
6
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-6659
SELECT COUNT( * ) - - 58 + MAX( 88 ), - COUNT( * ) AS col2
----
147
-1

skipif mysql # not compatible
query II rowsort label-6659
SELECT COUNT ( * ) - - 58 + MAX ( 88 ), - COUNT ( * ) AS col2
----
147
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6660
SELECT - - NULLIF ( - + CASE 69 WHEN + 89 + + AVG ( DISTINCT - - NULLIF ( + + 15, 12 * - ( + 75 ) ) ) * + 1 THEN - 46 END, - 91 * - - 25 ), - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6660
SELECT - - NULLIF ( - + CASE 69 WHEN + 89 + + AVG ( DISTINCT - - NULLIF ( + + 15, 12 * - ( + 75 ) ) ) * + 1 THEN - 46 END, - 91 * - - 25 ), - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT 75 + - + COUNT( * ) col2
----
74

skipif mysql # not compatible
query I rowsort label-6661
SELECT 75 + - + COUNT ( * ) col2
----
74

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

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

query I rowsort
SELECT - 58 + - 58 + + 84
----
-32

query I rowsort
SELECT 67 + - 76 * 24 * 46 AS col1
----
-83837

onlyif mysql # aggregate syntax: 
query II rowsort label-6665
SELECT ALL COUNT( * ) * + - 77 AS col2, 90 AS col2
----
-77
90

skipif mysql # not compatible
query II rowsort label-6665
SELECT ALL COUNT ( * ) * + - 77 AS col2, 90 AS col2
----
-77
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6666
SELECT - CAST( - CASE 75 WHEN - 92 THEN + + 99 WHEN - ( - COUNT( * ) ) THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS SIGNED ) * - - 43 + + CAST( COUNT( * ) AS SIGNED ) + + - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT - CAST ( - CASE 75 WHEN - 92 THEN + + 99 WHEN - ( - COUNT ( * ) ) THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS INTEGER ) * - - 43 + + CAST ( COUNT ( * ) AS INTEGER ) + + - 75 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - ( - ( ( - 35 ) ) ) AS col1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6668
SELECT DISTINCT - 51 DIV 66 + 47 - - 31 - + 43 DIV 1
----
35

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT - 51 / 66 + 47 - - 31 - + 43 / 1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6669
SELECT ALL + - 29 * 84 DIV + COUNT( * ) + - 68 col0, + ( - - 68 ) * + + 47 col1
----
-2504
3196

skipif mysql # not compatible
query II rowsort label-6669
SELECT ALL + - 29 * 84 / + COUNT ( * ) + - 68 col0, + ( - - 68 ) * + + 47 col1
----
-2504
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT + - 23 + + + 19 DIV - 96 + - + 77 + 4 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6670
SELECT + - 23 + + + 19 / - 96 + - + 77 + 4 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT DISTINCT - 63 * - 94 + + + 1 + - 84 * + + 53 * COALESCE ( - 72, + COUNT( + NULLIF ( ( - 32 ), 50 ) ), 80 * + 7 ) * 71 * + 83
----
1888971715

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT - 63 * - 94 + + + 1 + - 84 * + + 53 * COALESCE ( - 72, + COUNT ( + NULLIF ( ( - 32 ), 50 ) ), 80 * + 7 ) * 71 * + 83
----
1888971715

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6673
SELECT ALL + 20 * + 87 - - 4 * - 14 * 84 + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL + 20 * + 87 - - 4 * - 14 * 84 + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + - 44 * - + 47 + + 91 col2
----
2159

onlyif mysql # DIV for integer division: 
query I rowsort label-6675
SELECT DISTINCT 45 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT 45 / + 76
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6676
SELECT + 15 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-6676
SELECT + 15 / + 94
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT ALL 50 * NULLIF ( - 63, 58 + - - 25 * + - 11 ) + COUNT( * ) + + - ( - - 58 )
----
-3207

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL 50 * NULLIF ( - 63, 58 + - - 25 * + - 11 ) + COUNT ( * ) + + - ( - - 58 )
----
-3207

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT COUNT( - 8 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6679
SELECT COUNT ( - 8 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT MAX( DISTINCT + 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6680
SELECT MAX ( DISTINCT + 14 ) AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6681
SELECT MAX( - CAST( - 32 AS SIGNED ) ) AS col1, - 8 - + - NULLIF ( - - COUNT( - - 93 ), - AVG ( DISTINCT 10 ) + + - 89 ) AS col0
----
32
-7

skipif mysql # not compatible
query II rowsort label-6681
SELECT MAX ( - CAST ( - 32 AS INTEGER ) ) AS col1, - 8 - + - NULLIF ( - - COUNT ( - - 93 ), - AVG ( DISTINCT 10 ) + + - 89 ) AS col0
----
32
-7

query I rowsort
SELECT DISTINCT 13 + 77 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT ALL MAX( DISTINCT 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL MAX ( DISTINCT 52 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6684
SELECT + MAX( - + 87 ) + - 76 AS col1, + 69 col1
----
-163
69

skipif mysql # not compatible
query II rowsort label-6684
SELECT + MAX ( - + 87 ) + - 76 AS col1, + 69 col1
----
-163
69

query I rowsort
SELECT ALL NULLIF ( + 70, 73 ) AS col1
----
70

query I rowsort
SELECT DISTINCT 70 * + 55 AS col0
----
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT DISTINCT MAX( + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT MAX ( + 9 ) AS col0
----
9

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

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

query I rowsort
SELECT - 76 - + 1 * - 88 AS col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6690
SELECT ALL - COUNT( ALL - 52 ) DIV + 2 + 88 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL - COUNT ( ALL - 52 ) / + 2 + 88 AS col2
----
88

query I rowsort
SELECT + + 85 * - 49 AS col2
----
-4165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6692
SELECT - 3 * - + ( - 76 ) * CAST( - ( - 76 ) AS SIGNED ) * + 35 + + 92 AS col2
----
-606388

skipif mysql # not compatible
query I rowsort label-6692
SELECT - 3 * - + ( - 76 ) * CAST ( - ( - 76 ) AS INTEGER ) * + 35 + + 92 AS col2
----
-606388

query I rowsort
SELECT DISTINCT - ( - 58 ) * + - 10 AS col2
----
-580

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6694
SELECT ALL - 92 AS col2, - CAST( + 32 AS SIGNED ) * 46 * + + ( - 94 )
----
-92
138368

skipif mysql # not compatible
query II rowsort label-6694
SELECT ALL - 92 AS col2, - CAST ( + 32 AS INTEGER ) * 46 * + + ( - 94 )
----
-92
138368

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT ALL - CASE NULLIF ( + - 43, + 9 * - 32 ) WHEN CASE COUNT( * ) WHEN 66 THEN NULL WHEN + 98 + COUNT( * ) / 36 + 86 - + COUNT( * ) + + 28 * - - 91 * + 84 + - 14 + CASE + - 74 WHEN + COALESCE ( + COUNT( 80 ), + 96 + - + 45 + 7 ) + - 70 * + 41 THEN - + 74 - - - 22 * - 18 / - 77 * ( - NULLIF ( + 89, 11 * 80 + - 97 ) ) END / - COUNT( * ) THEN + ( 58 ) ELSE ( 70 ) - MIN( DISTINCT COALESCE ( - 37, 65 - + 90 ) ) END THEN + COUNT( * ) WHEN - COUNT( * ) THEN - ( 14 ) * - 25 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL - CASE NULLIF ( + - 43, + 9 * - 32 ) WHEN CASE COUNT ( * ) WHEN 66 THEN NULL WHEN + 98 + COUNT ( * ) / 36 + 86 - + COUNT ( * ) + + 28 * - - 91 * + 84 + - 14 + CASE + - 74 WHEN + COALESCE ( + COUNT ( 80 ), + 96 + - + 45 + 7 ) + - 70 * + 41 THEN - + 74 - - - 22 * - 18 / - 77 * ( - NULLIF ( + 89, 11 * 80 + - 97 ) ) END / - COUNT ( * ) THEN + ( 58 ) ELSE ( 70 ) - MIN ( DISTINCT COALESCE ( - 37, 65 - + 90 ) ) END THEN + COUNT ( * ) WHEN - COUNT ( * ) THEN - ( 14 ) * - 25 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6696
SELECT ALL - 24 * + COUNT( * ) * + 93 * + 70 * + 76 + + 6 AS col2, + COALESCE ( 18, - 8, - COUNT( * ) )
----
-11874234
18

skipif mysql # not compatible
query II rowsort label-6696
SELECT ALL - 24 * + COUNT ( * ) * + 93 * + 70 * + 76 + + 6 AS col2, + COALESCE ( 18, - 8, - COUNT ( * ) )
----
-11874234
18

query I rowsort
SELECT ALL + - 45 + + 62
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6698
SELECT 58 DIV + 44 + + ( - + 65 ) + - - 29 * + 16 + 63
----
463

skipif mysql # not compatible
query I rowsort label-6698
SELECT 58 / + 44 + + ( - + 65 ) + - - 29 * + 16 + 63
----
463

query II rowsort
SELECT - + 52 * + 1 * - + ( + 5 ) * + - 40 col0, ( - ( 47 ) ) * + 25 + - 74
----
-10400
-1249

query I rowsort
SELECT - + 83 * + 50 + 12 + - 54
----
-4192

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT - 19 * + - 7 * COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-6701
SELECT - 19 * + - 7 * COUNT ( * )
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6702
SELECT ALL + + COUNT( * ) DIV + ( + 14 ) + + + ( - + 88 ) AS col0, + 36 AS col0, 64 col1
----
-88
36
64

skipif mysql # not compatible
query III rowsort label-6702
SELECT ALL + + COUNT ( * ) / + ( + 14 ) + + + ( - + 88 ) AS col0, + 36 AS col0, 64 col1
----
-88
36
64

query I rowsort
SELECT + + CASE + - 21 WHEN + + 81 THEN 20 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6704
SELECT 47 col1, 42 - 44 - CAST( NULL AS SIGNED ) col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-6704
SELECT 47 col1, 42 - 44 - CAST ( NULL AS INTEGER ) col2
----
47
NULL

query I rowsort
SELECT ALL - - 2 * - - 7 + - 37 + + + ( 50 ) - + 65 AS col0
----
-38

query II rowsort
SELECT ALL + 50 AS col1, - 51 * + 87 * + - ( + 39 ) AS col1
----
50
173043

query I rowsort
SELECT 14 * + 90 * - - 28 + + + 42 + + 38 AS col0
----
35360

query I rowsort
SELECT + 13 * + - 62
----
-806

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

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

query II rowsort
SELECT ALL + 31 AS col1, + 65 * 1 col1
----
31
65

query I rowsort
SELECT DISTINCT + 70 * + 41 * 78 AS col0
----
223860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6712
SELECT ALL 52 * NULLIF ( + MIN( 5 ), + - COUNT( * ) ) * - + 46 - + CAST( + 16 AS SIGNED ) + + 96 - + CASE 37 WHEN + 68 THEN NULL WHEN + 7 / 16 THEN + 9 + COALESCE ( - - NULLIF ( - 50, + - 16 * + 76 ), + 91, + - 59 ) * + 2 WHEN + - CASE COUNT( * ) WHEN - - 38 THEN ( + COUNT( * ) ) ELSE - + 48 END * - - 30 THEN 59 END * - + 75 / MIN( DISTINCT - 32 ) * 36 - + 42 / - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL 52 * NULLIF ( + MIN ( 5 ), + - COUNT ( * ) ) * - + 46 - + CAST ( + 16 AS INTEGER ) + + 96 - + CASE 37 WHEN + 68 THEN NULL WHEN + 7 / 16 THEN + 9 + COALESCE ( - - NULLIF ( - 50, + - 16 * + 76 ), + 91, + - 59 ) * + 2 WHEN + - CASE COUNT ( * ) WHEN - - 38 THEN ( + COUNT ( * ) ) ELSE - + 48 END * - - 30 THEN 59 END * - + 75 / MIN ( DISTINCT - 32 ) * 36 - + 42 / - 74
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6713
SELECT DISTINCT 59 DIV - + 13 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT 59 / - + 13 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6714
SELECT ALL COUNT( * ) AS col2, - 18 + + - 24 + + - 76
----
1
-118

skipif mysql # not compatible
query II rowsort label-6714
SELECT ALL COUNT ( * ) AS col2, - 18 + + - 24 + + - 76
----
1
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-6715
SELECT + NULLIF ( - COALESCE ( - 39, 3 - 84 + - 47 * - 10, - - 69 + + 28 + + - 14 - - - AVG ( DISTINCT 79 ) ), + + 9 - - 69 ) DIV + - 33 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6715
SELECT + NULLIF ( - COALESCE ( - 39, 3 - 84 + - 47 * - 10, - - 69 + + 28 + + - 14 - - - AVG ( DISTINCT 79 ) ), + + 9 - - 69 ) / + - 33 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6716
SELECT ALL 6 DIV - - 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL 6 / - - 54 AS col2
----
0

query I rowsort
SELECT + 17 * 14 * + 89 AS col2
----
21182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6718
SELECT DISTINCT 23 DIV - + COUNT( * ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT 23 / - + COUNT ( * ) AS col0
----
-23

query I rowsort
SELECT + 88 * - + 69
----
-6072

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT ALL MIN( DISTINCT - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL MIN ( DISTINCT - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT + ( MIN( - 22 ) ) + + + 20
----
-2

skipif mysql # not compatible
query I rowsort label-6721
SELECT + ( MIN ( - 22 ) ) + + + 20
----
-2

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

skipif mysql # not compatible
query I rowsort label-6722
SELECT MAX ( ALL 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT - ( + + COUNT( 9 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6723
SELECT - ( + + COUNT ( 9 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT ALL + COUNT( * ) + + 21 * - 53 col2
----
-1112

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL + COUNT ( * ) + + 21 * - 53 col2
----
-1112

query I rowsort
SELECT 96 * + 20 AS col1
----
1920

query I rowsort
SELECT ALL - 67 + + + 80 AS col1
----
13

query I rowsort
SELECT ALL 60 + + 47 AS col0
----
107

query I rowsort
SELECT - 4 + + 44
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT DISTINCT 22 + + COALESCE ( COUNT( * ), - 73 * 0 * + 52 * + 84 ) * - COALESCE ( - + 4, 2, + CASE - 5 WHEN - + 22 THEN NULL ELSE + - 83 END )
----
26

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT 22 + + COALESCE ( COUNT ( * ), - 73 * 0 * + 52 * + 84 ) * - COALESCE ( - + 4, 2, + CASE - 5 WHEN - + 22 THEN NULL ELSE + - 83 END )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT NULLIF ( - 39, + + 25 * - COUNT( * ) * COUNT( * ) )
----
-39

skipif mysql # not compatible
query I rowsort label-6730
SELECT NULLIF ( - 39, + + 25 * - COUNT ( * ) * COUNT ( * ) )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-6731
SELECT - 36 DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6731
SELECT - 36 / - 75 AS col1
----
0

query I rowsort
SELECT - 45 * - 70 + + 67 * + 29
----
5093

query I rowsort
SELECT ALL + 83 - - + 19 AS col0
----
102

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6735
SELECT DISTINCT - CASE - 19 WHEN CASE 22 WHEN + - ( 46 ) THEN NULL ELSE - 54 * + 29 END THEN COUNT( * ) + + ( - 8 ) + + 15 - + 62 * - - 84 * 63 END, + CAST( - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6735
SELECT DISTINCT - CASE - 19 WHEN CASE 22 WHEN + - ( 46 ) THEN NULL ELSE - 54 * + 29 END THEN COUNT ( * ) + + ( - 8 ) + + 15 - + 62 * - - 84 * 63 END, + CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6736
SELECT ALL 18 - + ( + - 5 ) + 5 DIV - 82 * - - 90
----
23

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL 18 - + ( + - 5 ) + 5 / - 82 * - - 90
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-6737
SELECT 86 * COUNT( * ) AS col0, - 78 * - 70 AS col2
----
86
5460

skipif mysql # not compatible
query II rowsort label-6737
SELECT 86 * COUNT ( * ) AS col0, - 78 * - 70 AS col2
----
86
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT DISTINCT + 93 * - 19 * - NULLIF ( + + 30, - + COUNT( + + 4 ) * 56 ) * - + 88
----
-4664880

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT + 93 * - 19 * - NULLIF ( + + 30, - + COUNT ( + + 4 ) * 56 ) * - + 88
----
-4664880

query I rowsort
SELECT 69 - + 80 * - 82
----
6629

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL + MAX( 88 ) * CASE WHEN NOT NULL BETWEEN NULL AND + 11 THEN + 95 - - 39 + - - NULLIF ( + COALESCE ( + 32, 27 ), - + ( - - 87 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL + MAX ( 88 ) * CASE WHEN NOT NULL BETWEEN NULL AND + 11 THEN + 95 - - 39 + - - NULLIF ( + COALESCE ( + 32, 27 ), - + ( - - 87 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6741
SELECT 76 * - MAX( DISTINCT + CASE - 14 WHEN - 86 THEN NULL ELSE + + 79 * - 24 END ) * - - 90 + + + MIN( DISTINCT 58 ), 96 * - 29 * - + 49 col2
----
12968698
136416

skipif mysql # not compatible
query II rowsort label-6741
SELECT 76 * - MAX ( DISTINCT + CASE - 14 WHEN - 86 THEN NULL ELSE + + 79 * - 24 END ) * - - 90 + + + MIN ( DISTINCT 58 ), 96 * - 29 * - + 49 col2
----
12968698
136416

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

skipif mysql # not compatible
query I rowsort label-6742
SELECT COUNT ( * ) + + + 89 + + + 66 + + + 8 AS col1
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6743
SELECT DISTINCT COUNT( * ) * - - 68 * + - CASE - 69 WHEN 60 + + 86 THEN + 89 / + CASE + 43 WHEN - 13 THEN NULL WHEN - 8 THEN + - 80 WHEN 29 * - + 84 * + 24 * + + SUM( DISTINCT - 42 ) / ( CAST( NULL AS SIGNED ) ) + - - 74 * - ( 37 ) - - 62 + 1 * - 62 * + 92 + + ( + 74 ) THEN NULL ELSE - + 64 - 69 * - 13 / + + 77 * COUNT( * ) END END * + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT COUNT ( * ) * - - 68 * + - CASE - 69 WHEN 60 + + 86 THEN + 89 / + CASE + 43 WHEN - 13 THEN NULL WHEN - 8 THEN + - 80 WHEN 29 * - + 84 * + 24 * + + SUM ( DISTINCT - 42 ) / ( CAST ( NULL AS INTEGER ) ) + - - 74 * - ( 37 ) - - 62 + 1 * - 62 * + 92 + + ( + 74 ) THEN NULL ELSE - + 64 - 69 * - 13 / + + 77 * COUNT ( * ) END END * + - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT 92 + MAX( ALL 14 ) * 29 AS col0
----
498

skipif mysql # not compatible
query I rowsort label-6744
SELECT 92 + MAX ( ALL 14 ) * 29 AS col0
----
498

onlyif mysql # aggregate syntax: 
query II rowsort label-6745
SELECT COUNT( * ) * - + 99, - 1 - 32 col1
----
-99
-33

skipif mysql # not compatible
query II rowsort label-6745
SELECT COUNT ( * ) * - + 99, - 1 - 32 col1
----
-99
-33

query I rowsort
SELECT 4 - - - 78 AS col2
----
-74

query I rowsort
SELECT ALL 78 + 57 + - + 39 - NULLIF ( - - ( + 5 ), 25 ) + 18 * + 33 AS col1
----
685

onlyif mysql # DIV for integer division: 
query II rowsort label-6748
SELECT ALL + 8 DIV + + 74, + 77 AS col0
----
0
77

skipif mysql # not compatible
query II rowsort label-6748
SELECT ALL + 8 / + + 74, + 77 AS col0
----
0
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT 52 DIV + - 29 + - 96
----
-97

skipif mysql # not compatible
query I rowsort label-6749
SELECT 52 / + - 29 + - 96
----
-97

query I rowsort
SELECT - 61 + 63 * 40 AS col1
----
2459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6751
SELECT COUNT( * ) + - 28 AS col2, COUNT( * ) AS col0, CASE + 13 WHEN CASE + NULLIF ( + + 34, CAST( NULL AS SIGNED ) ) WHEN - 27 * - - 29 THEN NULL ELSE COUNT( + 8 ) * ( - COUNT( * ) ) * - 47 + - - 76 END THEN 6 + + - 97 + + + 93 + + 79 + - COUNT( * ) - 26 * 5 * + 99 WHEN + 34 + - 79 * 49 / + 41 + MAX( ALL + + 99 ) THEN + - 76 WHEN + + 46 * - 40 THEN + 52 / + - 39 * + - 34 * 76 ELSE NULL END + - 78 col2
----
-27
1
NULL

skipif mysql # not compatible
query III rowsort label-6751
SELECT COUNT ( * ) + - 28 AS col2, COUNT ( * ) AS col0, CASE + 13 WHEN CASE + NULLIF ( + + 34, CAST ( NULL AS INTEGER ) ) WHEN - 27 * - - 29 THEN NULL ELSE COUNT ( + 8 ) * ( - COUNT ( * ) ) * - 47 + - - 76 END THEN 6 + + - 97 + + + 93 + + 79 + - COUNT ( * ) - 26 * 5 * + 99 WHEN + 34 + - 79 * 49 / + 41 + MAX ( ALL + + 99 ) THEN + - 76 WHEN + + 46 * - 40 THEN + 52 / + - 39 * + - 34 * 76 ELSE NULL END + - 78 col2
----
-27
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT ALL 48 / + 80 * - + 56 + + NULLIF ( - 27, + + 50 + 91 ) - + - 58 - - - COUNT( * ) * - + 85 * MIN( DISTINCT CASE - 94 WHEN 85 * - ( + + 73 ) THEN + 15 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL 48 / + 80 * - + 56 + + NULLIF ( - 27, + + 50 + 91 ) - + - 58 - - - COUNT ( * ) * - + 85 * MIN ( DISTINCT CASE - 94 WHEN 85 * - ( + + 73 ) THEN + 15 END ) AS col0
----
NULL

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

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

query I rowsort
SELECT + 88 + + 79 AS col0
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6755
SELECT CAST( - 49 AS SIGNED ), + 90 AS col2
----
-49
90

skipif mysql # not compatible
query II rowsort label-6755
SELECT CAST ( - 49 AS INTEGER ), + 90 AS col2
----
-49
90

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

skipif mysql # not compatible
query I rowsort label-6756
SELECT - - MAX ( ALL - - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT ALL + CASE - - COUNT( * ) WHEN - + 50 + - 5 THEN NULLIF ( - 67, - - 57 * - - 36 * + + COUNT( * ) ) * - + 24 ELSE + 75 END + COUNT( ALL 43 ) + - + 78
----
-2

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL + CASE - - COUNT ( * ) WHEN - + 50 + - 5 THEN NULLIF ( - 67, - - 57 * - - 36 * + + COUNT ( * ) ) * - + 24 ELSE + 75 END + COUNT ( ALL 43 ) + - + 78
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6758
SELECT CAST( NULL AS SIGNED ) * - 96 / 94 * + AVG ( ALL + 80 ) * 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6758
SELECT CAST ( NULL AS INTEGER ) * - 96 / 94 * + AVG ( ALL + 80 ) * 34 AS col1
----
NULL

query I rowsort
SELECT ALL 10 + 76
----
86

query I rowsort
SELECT - COALESCE ( + 87, 13 + - 20 + - 0 + - 51 + - + 40 * - 29 * - - 82 ) col0
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6761
SELECT - 34 + - + 36 AS col0, + 41 DIV + COUNT( * ) col2
----
-70
41

skipif mysql # not compatible
query II rowsort label-6761
SELECT - 34 + - + 36 AS col0, + 41 / + COUNT ( * ) col2
----
-70
41

query I rowsort
SELECT + 43 * - 88 - - 40 AS col1
----
-3744

query I rowsort
SELECT + + CASE - + 83 WHEN + 58 THEN - 41 ELSE + 2 END col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6764
SELECT DISTINCT - COUNT( * ), 63 - + 37 AS col0
----
-1
26

skipif mysql # not compatible
query II rowsort label-6764
SELECT DISTINCT - COUNT ( * ), 63 - + 37 AS col0
----
-1
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT ALL + 88 DIV - 28
----
-3

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL + 88 / - 28
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT + 88 * - 11 - COUNT( * ) + + 34
----
-935

skipif mysql # not compatible
query I rowsort label-6766
SELECT + 88 * - 11 - COUNT ( * ) + + 34
----
-935

onlyif mysql # DIV for integer division: 
query I rowsort label-6767
SELECT DISTINCT 95 DIV + + 69
----
1

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT 95 / + + 69
----
1

query I rowsort
SELECT 79 + 22
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6769
SELECT 86 DIV ( 99 ) * 57 + - 5 + 34 + - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-6769
SELECT 86 / ( 99 ) * 57 + - 5 + 34 + - COUNT ( * )
----
28

query I rowsort
SELECT ALL 30 * + 92
----
2760

onlyif mysql # aggregate syntax: 
query III rowsort label-6771
SELECT ALL - 24 AS col0, + MAX( - 21 ) * - 63 AS col0, + 3
----
-24
1323
3

skipif mysql # not compatible
query III rowsort label-6771
SELECT ALL - 24 AS col0, + MAX ( - 21 ) * - 63 AS col0, + 3
----
-24
1323
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6772
SELECT 76 DIV - 58 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6772
SELECT 76 / - 58 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6773
SELECT 11 DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-6773
SELECT 11 / + 47
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6775
SELECT 21 * - - COALESCE ( + - CAST( - 59 AS SIGNED ), - COUNT( DISTINCT + 34 ) ), - 30 + - - 71 - - - 69 AS col1
----
1239
-28

skipif mysql # not compatible
query II rowsort label-6775
SELECT 21 * - - COALESCE ( + - CAST ( - 59 AS INTEGER ), - COUNT ( DISTINCT + 34 ) ), - 30 + - - 71 - - - 69 AS col1
----
1239
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT DISTINCT + 62 + + COUNT( - 94 ) + - 11 + 92 * + - 83 * + + 58
----
-442836

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT + 62 + + COUNT ( - 94 ) + - 11 + 92 * + - 83 * + + 58
----
-442836

query II rowsort
SELECT - 93 * + + 50 + + + 23, + 5 AS col0
----
-4627
5

query I rowsort
SELECT ALL + 81 + 83 AS col0
----
164

query I rowsort
SELECT - + 20 + + 40
----
20

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

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

query I rowsort
SELECT - - ( - 21 ) + - ( 97 ) + - 68
----
-186

query I rowsort
SELECT - - 40 * 36 * + 98 - 19 - + - CASE + AVG ( ALL 9 ) WHEN 19 + 81 * 37 THEN + + 6 * + ( + 69 ) / - AVG ( + 85 ) END + ( + 2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT - + NULLIF ( - 84, - + NULLIF ( 53, + 13 + + COUNT( * ) ) * + 5 * AVG ( DISTINCT - 81 ) + - + 68 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6783
SELECT - + NULLIF ( - 84, - + NULLIF ( 53, + 13 + + COUNT ( * ) ) * + 5 * AVG ( DISTINCT - 81 ) + - + 68 ) AS col0
----
84

query I rowsort
SELECT - 11 + + + NULLIF ( - 94, + 56 )
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6785
SELECT - COALESCE ( - 0, - + 25, - + COALESCE ( - - 29, + CAST( NULL AS SIGNED ) - + - SUM( - - 65 ) * - 79, + 42 * 92 * - - 75 * 56 ) ) + 92 + + - SUM( DISTINCT 64 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6785
SELECT - COALESCE ( - 0, - + 25, - + COALESCE ( - - 29, + CAST ( NULL AS INTEGER ) - + - SUM ( - - 65 ) * - 79, + 42 * 92 * - - 75 * 56 ) ) + 92 + + - SUM ( DISTINCT 64 ) AS col0
----
28

query I rowsort
SELECT ALL + - ( + - 28 ) - - 51 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT - 39 + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6787
SELECT - 39 + COUNT ( * ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT + MAX( ALL - - ( + + 86 ) ) + + 30 * + ( + 64 ) AS col0
----
2006

skipif mysql # not compatible
query I rowsort label-6788
SELECT + MAX ( ALL - - ( + + 86 ) ) + + 30 * + ( + 64 ) AS col0
----
2006

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT + + 13 DIV 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6789
SELECT + + 13 / 73 AS col0
----
0

query II rowsort
SELECT ALL 13 AS col2, 96
----
13
96

query I rowsort
SELECT + - COALESCE ( 7, - + 87 ) - 49 AS col1
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6792
SELECT + COUNT( ALL + - 86 ) * - COUNT( * ) * 22 * + SUM( + 65 ) * - ( - 9 ) * - - ( + ( COUNT( * ) ) ) + - COUNT( - 20 ) * - 50 DIV 34 * + 9 + + 61 + + COUNT( * ) AS col2
----
-12799

skipif mysql # not compatible
query I rowsort label-6792
SELECT + COUNT ( ALL + - 86 ) * - COUNT ( * ) * 22 * + SUM ( + 65 ) * - ( - 9 ) * - - ( + ( COUNT ( * ) ) ) + - COUNT ( - 20 ) * - 50 / 34 * + 9 + + 61 + + COUNT ( * ) AS col2
----
-12799

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6794
SELECT ALL + MIN( ALL + + 96 ) - - COUNT( * ) AS col2, 14
----
97
14

skipif mysql # not compatible
query II rowsort label-6794
SELECT ALL + MIN ( ALL + + 96 ) - - COUNT ( * ) AS col2, 14
----
97
14

query I rowsort
SELECT + - 89 + + 33 AS col2
----
-56

query II rowsort
SELECT + 41 + + - 1 * - 75, 38 AS col1
----
116
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT + ( + 11 ) * + COUNT( * ) * - 92 * + MAX( ALL 95 ) col0
----
-96140

skipif mysql # not compatible
query I rowsort label-6797
SELECT + ( + 11 ) * + COUNT ( * ) * - 92 * + MAX ( ALL 95 ) col0
----
-96140

query I rowsort
SELECT + 55 + - 88 col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6799
SELECT ALL ( - NULLIF ( + 44, + 84 ) ) AS col2, MIN( ALL - 25 )
----
-44
-25

skipif mysql # not compatible
query II rowsort label-6799
SELECT ALL ( - NULLIF ( + 44, + 84 ) ) AS col2, MIN ( ALL - 25 )
----
-44
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT + ( - SUM( - 22 ) ) * + 84 + - + ( + - 36 )
----
1884

skipif mysql # not compatible
query I rowsort label-6801
SELECT + ( - SUM ( - 22 ) ) * + 84 + - + ( + - 36 )
----
1884

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT DISTINCT 54 * SUM( DISTINCT - 88 )
----
-4752

skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT 54 * SUM ( DISTINCT - 88 )
----
-4752

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT + COALESCE ( - 12, 91 + - - MAX( 21 ) + - 0 )
----
-12

skipif mysql # not compatible
query I rowsort label-6803
SELECT + COALESCE ( - 12, 91 + - - MAX ( 21 ) + - 0 )
----
-12

query I rowsort
SELECT ALL 6 * + + 55 * + 94
----
31020

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT + ( COUNT( * ) ) * 76 + + + MAX( DISTINCT 35 ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-6805
SELECT + ( COUNT ( * ) ) * 76 + + + MAX ( DISTINCT 35 ) AS col2
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT + COALESCE ( - NULLIF ( - 66, - - 2 - + - 64 ), 66 * + COUNT( - CAST( 95 AS SIGNED ) ) * 37 - - COUNT( * ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-6806
SELECT + COALESCE ( - NULLIF ( - 66, - - 2 - + - 64 ), 66 * + COUNT ( - CAST ( 95 AS INTEGER ) ) * 37 - - COUNT ( * ) ) AS col1
----
66

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6808
SELECT ALL + 38 * + CAST( + - 15 AS SIGNED ) * + - COUNT( * ) + - + 55 + - - 37 AS col2
----
552

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL + 38 * + CAST ( + - 15 AS INTEGER ) * + - COUNT ( * ) + - + 55 + - - 37 AS col2
----
552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6809
SELECT + 17 * - + CAST( NULL AS SIGNED ) * + + 41 * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT + 17 * - + CAST ( NULL AS INTEGER ) * + + 41 * + 42
----
NULL

query I rowsort
SELECT ALL - 21 * + ( - ( + ( + 60 ) ) ) AS col1
----
1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6811
SELECT CASE + CAST( NULL AS SIGNED ) WHEN + - ( + 2 ) + - + NULLIF ( ( + + 83 ), - 92 * - 50 * - 6 + MAX( 62 ) ) * + + 6 * - - 49 THEN - - 99 + - + 62 WHEN - 11 / 57 * 46 THEN - 90 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN + - ( + 2 ) + - + NULLIF ( ( + + 83 ), - 92 * - 50 * - 6 + MAX ( 62 ) ) * + + 6 * - - 49 THEN - - 99 + - + 62 WHEN - 11 / 57 * 46 THEN - 90 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT + ( - COUNT( * ) ) * - + 97 * - - 58 AS col0
----
5626

skipif mysql # not compatible
query I rowsort label-6812
SELECT + ( - COUNT ( * ) ) * - + 97 * - - 58 AS col0
----
5626

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

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

query I rowsort
SELECT ALL 93 * - 34 AS col2
----
-3162

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT CASE + ( + - 52 ) WHEN + - 14 * - 85 - 73 THEN - COUNT( * ) + - 60 + + COUNT( * ) WHEN + 23 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT CASE + ( + - 52 ) WHEN + - 14 * - 85 - 73 THEN - COUNT ( * ) + - 60 + + COUNT ( * ) WHEN + 23 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6816
SELECT + MAX( - 95 ) * - 16 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6816
SELECT + MAX ( - 95 ) * - 16 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6817
SELECT ( 10 ), MAX( + - ( + + 0 ) ) DIV + 2 + - 72 * + COALESCE ( - CASE + MIN( DISTINCT 71 ) WHEN - - 22 THEN - CAST( - 15 AS SIGNED ) END, 98 * 13 ) col0
----
10
-91728

skipif mysql # not compatible
query II rowsort label-6817
SELECT ( 10 ), MAX ( + - ( + + 0 ) ) / + 2 + - 72 * + COALESCE ( - CASE + MIN ( DISTINCT 71 ) WHEN - - 22 THEN - CAST ( - 15 AS INTEGER ) END, 98 * 13 ) col0
----
10
-91728

query I rowsort
SELECT ALL + 89 * + - 35
----
-3115

query I rowsort
SELECT DISTINCT - 13 * + NULLIF ( 70, - 62 ) - 18
----
-928

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

query I rowsort
SELECT ALL 83 * 6
----
498

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

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

query I rowsort
SELECT - + 67 + - + 39
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6824
SELECT - COUNT( - CASE 65 WHEN - + 25 * - 60 + + + 22 THEN NULL ELSE - 28 + - CAST( - + CASE - 2 WHEN + - 54 THEN NULL WHEN + - 71 THEN + 65 ELSE NULL END AS SIGNED ) END ) + 39 * + 3 * ( COUNT( ALL - + 53 ) ) + 3 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-6824
SELECT - COUNT ( - CASE 65 WHEN - + 25 * - 60 + + + 22 THEN NULL ELSE - 28 + - CAST ( - + CASE - 2 WHEN + - 54 THEN NULL WHEN + - 71 THEN + 65 ELSE NULL END AS INTEGER ) END ) + 39 * + 3 * ( COUNT ( ALL - + 53 ) ) + 3 AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ALL - COUNT( * ) * - ( 80 ) col1
----
80

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL - COUNT ( * ) * - ( 80 ) col1
----
80

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

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL - - 60 * + - COUNT ( ALL - + ( 18 ) ) AS col0
----
-60

query I rowsort
SELECT - 52 * - - 38
----
-1976

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT - 49 DIV 22 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6828
SELECT - 49 / 22 AS col0
----
-2

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

query II rowsort
SELECT 50 AS col1, - 70 AS col2
----
50
-70

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6832
SELECT - 13 DIV - 20
----
0

skipif mysql # not compatible
query I rowsort label-6832
SELECT - 13 / - 20
----
0

query I rowsort
SELECT - ( 72 ) + 66 AS col2
----
-6

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6835
SELECT DISTINCT 42 DIV + COUNT( DISTINCT - 32 ), MIN( + 20 ) + 94 AS col2
----
42
114

skipif mysql # not compatible
query II rowsort label-6835
SELECT DISTINCT 42 / + COUNT ( DISTINCT - 32 ), MIN ( + 20 ) + 94 AS col2
----
42
114

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6837
SELECT + 53 DIV - + 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6837
SELECT + 53 / - + 56 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6838
SELECT ALL - 53 DIV CAST( COUNT( * ) AS SIGNED ) AS col2, COUNT( * )
----
-53
1

skipif mysql # not compatible
query II rowsort label-6838
SELECT ALL - 53 / CAST ( COUNT ( * ) AS INTEGER ) AS col2, COUNT ( * )
----
-53
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT + 41 * 3 * + CAST( NULL AS SIGNED ) - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT + 41 * 3 * + CAST ( NULL AS INTEGER ) - + 29
----
NULL

query I rowsort
SELECT ALL 53 * + 67 AS col0
----
3551

query I rowsort
SELECT DISTINCT - 80 + 56 * 52
----
2832

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

skipif mysql # not compatible
query II rowsort label-6842
SELECT ALL - 75, + COUNT ( * ) AS col2
----
-75
1

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

skipif mysql # not compatible
query I rowsort label-6843
SELECT 14 + COUNT ( * ) / + + 92
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6844
SELECT ALL 99 + - 76 + 44 DIV - + COALESCE ( + 71, 56, - COUNT( * ) + 91, ( - CAST( NULL AS SIGNED ) ) + 14 + ( - - ( + + 38 ) ) ) * + 91 * - 66 DIV 44
----
23

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL 99 + - 76 + 44 / - + COALESCE ( + 71, 56, - COUNT ( * ) + 91, ( - CAST ( NULL AS INTEGER ) ) + 14 + ( - - ( + + 38 ) ) ) * + 91 * - 66 / 44
----
23

query II rowsort
SELECT DISTINCT - 53 AS col1, - ( - 29 ) AS col0
----
-53
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6846
SELECT ALL - 65 AS col0, 73 DIV NULLIF ( - COUNT( * ), COUNT( * ) ) + + + ( - - 0 ) AS col0
----
-65
-73

skipif mysql # not compatible
query II rowsort label-6846
SELECT ALL - 65 AS col0, 73 / NULLIF ( - COUNT ( * ), COUNT ( * ) ) + + + ( - - 0 ) AS col0
----
-65
-73

query II rowsort
SELECT + 66, COALESCE ( - 70, - 41 - + - 78 ) col0
----
66
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT 4 + + 23 * COUNT( + 85 )
----
27

skipif mysql # not compatible
query I rowsort label-6848
SELECT 4 + + 23 * COUNT ( + 85 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT 63 * - COUNT( * ) - - 99 * - 1
----
-162

skipif mysql # not compatible
query I rowsort label-6849
SELECT 63 * - COUNT ( * ) - - 99 * - 1
----
-162

onlyif mysql # DIV for integer division: 
query II rowsort label-6850
SELECT 34, + 28 DIV - - 56 AS col1
----
34
0

skipif mysql # not compatible
query II rowsort label-6850
SELECT 34, + 28 / - - 56 AS col1
----
34
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6851
SELECT ALL ( ( 4 ) ) DIV + 53 * + + 29 * - COUNT( + 25 ) DIV + + ( + COUNT( DISTINCT ( - - 10 ) ) ) - - - COUNT( * ) * - 21, 1 * + COALESCE ( + COALESCE ( COUNT( * ), + - 5, + 57 ), - - 51 * - 4, + - 22 * - 36 ) AS col0
----
21
1

skipif mysql # not compatible
query II rowsort label-6851
SELECT ALL ( ( 4 ) ) / + 53 * + + 29 * - COUNT ( + 25 ) / + + ( + COUNT ( DISTINCT ( - - 10 ) ) ) - - - COUNT ( * ) * - 21, 1 * + COALESCE ( + COALESCE ( COUNT ( * ), + - 5, + 57 ), - - 51 * - 4, + - 22 * - 36 ) AS col0
----
21
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6852
SELECT ALL - 68 DIV + + ( + 57 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL - 68 / + + ( + 57 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6853
SELECT ALL + CAST( NULL AS SIGNED ) / 24 + - - COUNT( * ) + + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL + CAST ( NULL AS INTEGER ) / 24 + - - COUNT ( * ) + + 49 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6854
SELECT DISTINCT 8 col1, CAST( NULL AS SIGNED ) * 41 * - + 9 * 37
----
8
NULL

skipif mysql # not compatible
query II rowsort label-6854
SELECT DISTINCT 8 col1, CAST ( NULL AS INTEGER ) * 41 * - + 9 * 37
----
8
NULL

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

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

query I rowsort
SELECT + 48 * 92
----
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT ALL COALESCE ( + - 72, - 44 * - - 17 * - - SUM( ALL - 19 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL COALESCE ( + - 72, - 44 * - - 17 * - - SUM ( ALL - 19 ) )
----
-72

query I rowsort
SELECT 14 + + 35 - + - 28
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6859
SELECT ALL - 0 + - - 11 DIV 40 - + + 41 * - 72 * + 76 + 87 + + + 54 AS col2
----
224493

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL - 0 + - - 11 / 40 - + + 41 * - 72 * + 76 + 87 + + + 54 AS col2
----
224493

query I rowsort
SELECT 95 + 64 AS col2
----
159

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

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

query II rowsort
SELECT - 84 AS col0, 83 AS col2
----
-84
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6863
SELECT COUNT( * ) + 71, 0 col2
----
72
0

skipif mysql # not compatible
query II rowsort label-6863
SELECT COUNT ( * ) + 71, 0 col2
----
72
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL - 66 / CASE 51 WHEN - + 53 THEN + COALESCE ( + 21, + 63 ) * CASE - - 90 WHEN COUNT( - 4 ) THEN NULL WHEN - 84 THEN - - 21 + - + 53 END + + + ( 44 ) + 77 + - 23 + - + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL - 66 / CASE 51 WHEN - + 53 THEN + COALESCE ( + 21, + 63 ) * CASE - - 90 WHEN COUNT ( - 4 ) THEN NULL WHEN - 84 THEN - - 21 + - + 53 END + + + ( 44 ) + 77 + - 23 + - + 19 END
----
NULL

query I rowsort
SELECT DISTINCT - 49 + - 60 + - - ( - 15 )
----
-124

query I rowsort
SELECT ALL + 94 + 0 * + 37 AS col2
----
94

query I rowsort
SELECT 20 * - 98
----
-1960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6868
SELECT 95 / CAST( NULL AS SIGNED ) + - 11 + - 66 + - 50 * + 54 - + - ( + - 96 ) + - 50 * - 55 * + 29 * + + 21 * 72 / + 34 * ( + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6868
SELECT 95 / CAST ( NULL AS INTEGER ) + - 11 + - 66 + - 50 * + 54 - + - ( + - 96 ) + - 50 * - 55 * + 29 * + + 21 * 72 / + 34 * ( + - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - CASE + 29 WHEN - 5 THEN 61 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6870
SELECT + 61, + COUNT( * ) + + 24 AS col0
----
61
25

skipif mysql # not compatible
query II rowsort label-6870
SELECT + 61, + COUNT ( * ) + + 24 AS col0
----
61
25

query I rowsort
SELECT 10 * + - CASE + 43 WHEN - 33 THEN - - 4 * 36 * + + 16 + - - 31 WHEN ( + 28 ) THEN NULL END
----
NULL

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

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

query I rowsort
SELECT 20 * + + NULLIF ( + + 26, - 29 * + 11 ) * 85 AS col2
----
44200

onlyif mysql # DIV for integer division: 
query I rowsort label-6874
SELECT DISTINCT + 4 DIV + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT + 4 / + 93 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT ALL - + ( CASE + + AVG ( - 18 ) WHEN - COALESCE ( - 12, - - ( 69 ) / + 21 * 86 / 83 + - - 45 - - 16 ) / - 46 + - COUNT( * ) THEN - ( + 81 ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL - + ( CASE + + AVG ( - 18 ) WHEN - COALESCE ( - 12, - - ( 69 ) / + 21 * 86 / 83 + - - 45 - - 16 ) / - 46 + - COUNT ( * ) THEN - ( + 81 ) ELSE NULL END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6877
SELECT 42 + - COALESCE ( + - 67, 28 ) DIV - 52 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6877
SELECT 42 + - COALESCE ( + - 67, 28 ) / - 52 AS col1
----
41

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6879
SELECT - 5 * - 38 * 58 * 0 AS col1, - ( - CAST( NULL AS SIGNED ) ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6879
SELECT - 5 * - 38 * 58 * 0 AS col1, - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
0
NULL

query II rowsort
SELECT 90 - - + 36 AS col0, - 90
----
126
-90

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

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

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

query I rowsort
SELECT - 43 * - 78 - - + 61 + + 2 + + + 68 col0
----
3485

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6885
SELECT ALL - - 29, - 8 * - CAST( + 28 AS SIGNED ) AS col2
----
29
224

skipif mysql # not compatible
query II rowsort label-6885
SELECT ALL - - 29, - 8 * - CAST ( + 28 AS INTEGER ) AS col2
----
29
224

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT DISTINCT - - COUNT( * ) + + - COUNT( * ) + - 91 + - + 94 AS col1
----
-185

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT - - COUNT ( * ) + + - COUNT ( * ) + - 91 + - + 94 AS col1
----
-185

query I rowsort
SELECT + 12 - + 21 AS col2
----
-9

query I rowsort
SELECT DISTINCT - 63 + - 33 + + 1
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-6889
SELECT ALL + CASE + 46 WHEN - 88 THEN 39 + 98 - + COALESCE ( + 6, - 14 + + 90 ) ELSE - 54 DIV - 94 + - 49 END
----
-49

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL + CASE + 46 WHEN - 88 THEN 39 + 98 - + COALESCE ( + 6, - 14 + + 90 ) ELSE - 54 / - 94 + - 49 END
----
-49

query I rowsort
SELECT ALL 18 + - 38 * - 19 AS col0
----
740

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

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

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

skipif mysql # not compatible
query I rowsort label-6892
SELECT 5 / + + COUNT ( * ) AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT 15 * + COUNT( * ) * - - NULLIF ( - - 69, + COUNT( * ) * + CAST( + - 42 AS SIGNED ) )
----
1035

skipif mysql # not compatible
query I rowsort label-6893
SELECT 15 * + COUNT ( * ) * - - NULLIF ( - - 69, + COUNT ( * ) * + CAST ( + - 42 AS INTEGER ) )
----
1035

query I rowsort
SELECT ALL 60 + + + 47 - + + 16 * NULLIF ( + - 87, + 28 )
----
1499

query I rowsort
SELECT DISTINCT + 7 + - ( - 72 ) * + - 34
----
-2441

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6897
SELECT ALL 30 * COUNT( * ) DIV 31, + 9 col2
----
0
9

skipif mysql # not compatible
query II rowsort label-6897
SELECT ALL 30 * COUNT ( * ) / 31, + 9 col2
----
0
9

query I rowsort
SELECT DISTINCT 89 + 17 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT ALL SUM( DISTINCT - - 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL SUM ( DISTINCT - - 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6900
SELECT ALL + 62 - - 19 + ( - - 51 ) - + 71 * - 46 * - CASE - ( - 0 ) WHEN + - 79 * - 85 THEN + - 56 - + COUNT( - 43 ) + COUNT( * ) WHEN + 90 + - + COUNT( * ) DIV + ( COUNT( * ) ) - + 2 THEN NULL ELSE 96 DIV 91 * - 46 + 90 END * - CASE 14 WHEN + 70 THEN NULL WHEN + CASE - - 95 WHEN + 63 THEN NULL ELSE - - 73 END THEN + - 16 ELSE - 2 + - - 60 END * MAX( + - 2 )
----
-16669532

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL + 62 - - 19 + ( - - 51 ) - + 71 * - 46 * - CASE - ( - 0 ) WHEN + - 79 * - 85 THEN + - 56 - + COUNT ( - 43 ) + COUNT ( * ) WHEN + 90 + - + COUNT ( * ) / + ( COUNT ( * ) ) - + 2 THEN NULL ELSE 96 / 91 * - 46 + 90 END * - CASE 14 WHEN + 70 THEN NULL WHEN + CASE - - 95 WHEN + 63 THEN NULL ELSE - - 73 END THEN + - 16 ELSE - 2 + - - 60 END * MAX ( + - 2 )
----
-16669532

onlyif mysql # DIV for integer division: 
query I rowsort label-6901
SELECT - 88 * + 99 * - COALESCE ( + ( - 33 ), 69 DIV - 47, + 73 ) AS col2
----
-287496

skipif mysql # not compatible
query I rowsort label-6901
SELECT - 88 * + 99 * - COALESCE ( + ( - 33 ), 69 / - 47, + 73 ) AS col2
----
-287496

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT + 58 + + MIN( DISTINCT + 38 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6902
SELECT + 58 + + MIN ( DISTINCT + 38 ) AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6903
SELECT ALL + CASE COUNT( * ) WHEN - - 13 * + 0 / + - CAST( NULL AS SIGNED ) * + 26 + - 58 THEN - 67 ELSE NULL END * + - 92 - + - 51 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL + CASE COUNT ( * ) WHEN - - 13 * + 0 / + - CAST ( NULL AS INTEGER ) * + 26 + - 58 THEN - 67 ELSE NULL END * + - 92 - + - 51 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT COALESCE ( 4, - + 2 + ( + 77 ) * - 33, + 40 DIV 17 * - - 35 * 93 * + 28 )
----
4

skipif mysql # not compatible
query I rowsort label-6904
SELECT COALESCE ( 4, - + 2 + ( + 77 ) * - 33, + 40 / 17 * - - 35 * 93 * + 28 )
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT - MIN( 97 ) * - 9 * + 63 * + - 58 - + ( + 95 ) AS col2
----
-3190037

skipif mysql # not compatible
query I rowsort label-6906
SELECT - MIN ( 97 ) * - 9 * + 63 * + - 58 - + ( + 95 ) AS col2
----
-3190037

query I rowsort
SELECT ALL + ( 44 ) * + 65 AS col2
----
2860

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

query I rowsort
SELECT - 80 + - ( - 81 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6910
SELECT ALL + + COUNT( * ) * 6, - SUM( DISTINCT 67 ) - 24 - - + 29 AS col1
----
6
-62

skipif mysql # not compatible
query II rowsort label-6910
SELECT ALL + + COUNT ( * ) * 6, - SUM ( DISTINCT 67 ) - 24 - - + 29 AS col1
----
6
-62

query I rowsort
SELECT DISTINCT + + NULLIF ( 79, - 13 ) AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6912
SELECT 77 * 85 * - - 3 + - - 37 + + + 49 + + - CAST( NULL AS SIGNED ) * + 82 - - 85 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6912
SELECT 77 * 85 * - - 3 + - - 37 + + + 49 + + - CAST ( NULL AS INTEGER ) * + 82 - - 85 + + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 28 * 93 + - 68 - + 92
----
2444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6914
SELECT - + 86 DIV - 7 + + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-6914
SELECT - + 86 / - 7 + + + COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT + - 80 * + 64 * SUM( DISTINCT - - 35 ) * - 20 + 81
----
3584081

skipif mysql # not compatible
query I rowsort label-6915
SELECT + - 80 * + 64 * SUM ( DISTINCT - - 35 ) * - 20 + 81
----
3584081

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6918
SELECT ALL 20 * - 44 + NULLIF ( CAST( NULL AS SIGNED ), 79 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL 20 * - 44 + NULLIF ( CAST ( NULL AS INTEGER ), 79 ) AS col1
----
NULL

query I rowsort
SELECT - 92 * 50 AS col2
----
-4600

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT ALL COALESCE ( + ( 76 ), - 70 + + 84, + 38, COUNT( + 41 ) + COUNT( * ) ) * MIN( - 45 ) * + 70 - + 66 * + 59 AS col0
----
-243294

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL COALESCE ( + ( 76 ), - 70 + + 84, + 38, COUNT ( + 41 ) + COUNT ( * ) ) * MIN ( - 45 ) * + 70 - + 66 * + 59 AS col0
----
-243294

query I rowsort
SELECT - 5 * + 45
----
-225

query I rowsort
SELECT ALL - + 2 * - + 20 + + - 7
----
33

query I rowsort
SELECT - - ( 72 ) + - - 4 AS col0
----
76

query II rowsort
SELECT - + 9 + 29, - 4 AS col2
----
20
-4

query I rowsort
SELECT ALL + 98 + + + 76
----
174

query II rowsort
SELECT DISTINCT 76 AS col1, 37 * 83
----
76
3071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6927
SELECT DISTINCT CAST( + 64 AS SIGNED ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT CAST ( + 64 AS INTEGER ) AS col0
----
64

query I rowsort
SELECT ALL - 94 - + 56 col1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT + 18 + + SUM( ALL + 61 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6929
SELECT + 18 + + SUM ( ALL + 61 ) AS col0
----
79

query II rowsort
SELECT 55 col2, 40 AS col2
----
55
40

query I rowsort
SELECT + 0 * - 16 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT - NULLIF ( COUNT( * ), MAX( - 46 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6932
SELECT - NULLIF ( COUNT ( * ), MAX ( - 46 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT + 64 + - - 35 + - + 58 * - COUNT( * ) AS col1
----
157

skipif mysql # not compatible
query I rowsort label-6933
SELECT + 64 + - - 35 + - + 58 * - COUNT ( * ) AS col1
----
157

query I rowsort
SELECT + 76 * - + 64 col2
----
-4864

query I rowsort
SELECT + 35 * + 21 AS col2
----
735

query I rowsort
SELECT - 41 + - - 16 + + 67 AS col2
----
42

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

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

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

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

query I rowsort
SELECT + 46 * + + 24 AS col2
----
1104

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6940
SELECT DISTINCT + COUNT( * ) col0, 62 * - 80 / - - 92 + - CAST( NULL AS DECIMAL ) - + - 37 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6940
SELECT DISTINCT + COUNT ( * ) col0, 62 * - 80 / - - 92 + - CAST ( NULL AS REAL ) - + - 37 AS col2
----
1
NULL

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

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

query II rowsort
SELECT ALL + 81, - 65 col2
----
81
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT - - 26 + - COUNT( * ) + + 83 * ( - 77 ) AS col0
----
-6366

skipif mysql # not compatible
query I rowsort label-6944
SELECT - - 26 + - COUNT ( * ) + + 83 * ( - 77 ) AS col0
----
-6366

query I rowsort
SELECT + + 56 * + 68 col0
----
3808

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6946
SELECT ALL - COALESCE ( + CAST( NULL AS SIGNED ), - CAST( NULL AS DECIMAL ) ) / + 66 + CAST( + 33 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL - COALESCE ( + CAST ( NULL AS INTEGER ), - CAST ( NULL AS REAL ) ) / + 66 + CAST ( + 33 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6947
SELECT DISTINCT + 88 DIV 49 + NULLIF ( - - 59, - 64 * + 10 + ( 52 ) ) AS col2, 33 * - NULLIF ( + - 10, - COUNT( * ) ) + - MAX( + - 1 ) * 80 * SUM( ALL - 87 ) * + + COUNT( * ) * - - 35
----
60
-243270

skipif mysql # not compatible
query II rowsort label-6947
SELECT DISTINCT + 88 / 49 + NULLIF ( - - 59, - 64 * + 10 + ( 52 ) ) AS col2, 33 * - NULLIF ( + - 10, - COUNT ( * ) ) + - MAX ( + - 1 ) * 80 * SUM ( ALL - 87 ) * + + COUNT ( * ) * - - 35
----
60
-243270

query I rowsort
SELECT - - ( + 9 ) + - 32 * + COALESCE ( + 22, - - 12, + + 96 )
----
-695

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

query I rowsort
SELECT + - 30 - - 87 AS col0
----
57

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

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

query I rowsort
SELECT + 84 * - 37 * + 25 * - 36 + 59 - + ( 37 ) - - - ( + 64 ) + - 17 AS col2
----
2797141

query I rowsort
SELECT DISTINCT 75 * - + 4 + + 23 + + + 81 + + 57 * 19 * 88 * + + 36 * 75 + 50
----
257320654

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT - 96 * - 50 + + COUNT( * ) AS col2
----
4801

skipif mysql # not compatible
query I rowsort label-6954
SELECT - 96 * - 50 + + COUNT ( * ) AS col2
----
4801

query I rowsort
SELECT - - 74 * + 26 AS col1
----
1924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6956
SELECT ALL - - 25 DIV - + 55 + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL - - 25 / - + 55 + + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT 89 + + NULLIF ( 92, - ( CAST( NULL AS SIGNED ) ) )
----
181

skipif mysql # not compatible
query I rowsort label-6957
SELECT 89 + + NULLIF ( 92, - ( CAST ( NULL AS INTEGER ) ) )
----
181

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6959
SELECT ALL - 7 DIV 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL - 7 / 14 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6960
SELECT ALL 30 - + 98 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL 30 - + 98 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL ( - 84 ) * 51 + 73 + - ( + 38 )
----
-4249

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT DISTINCT + 17 * - 34 * + - COUNT( * )
----
578

skipif mysql # not compatible
query I rowsort label-6962
SELECT DISTINCT + 17 * - 34 * + - COUNT ( * )
----
578

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6963
SELECT ALL - ( 66 ) - + 24 + - CAST( - 20 AS SIGNED ) + - 57 * + 11 * + 11 AS col0
----
-6967

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL - ( 66 ) - + 24 + - CAST ( - 20 AS INTEGER ) + - 57 * + 11 * + 11 AS col0
----
-6967

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT DISTINCT 75 * SUM( DISTINCT - - 29 ) * - 55 AS col0
----
-119625

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT 75 * SUM ( DISTINCT - - 29 ) * - 55 AS col0
----
-119625

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT 19 + - MAX( DISTINCT + 77 ) * MAX( ALL + 78 ) AS col1
----
-5987

skipif mysql # not compatible
query I rowsort label-6966
SELECT 19 + - MAX ( DISTINCT + 77 ) * MAX ( ALL + 78 ) AS col1
----
-5987

query I rowsort
SELECT 88 + - 60
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT DISTINCT + ( - NULLIF ( NULLIF ( + COUNT( * ), - 58 * - + 47 * + 8 ), 60 * 16 ) ) * - - 65
----
-65

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT + ( - NULLIF ( NULLIF ( + COUNT ( * ), - 58 * - + 47 * + 8 ), 60 * 16 ) ) * - - 65
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6969
SELECT - 69 DIV - 10 + + + 37 + MIN( DISTINCT - 58 ) + 71 * + 3 + 16 * 0 * 41 + + COUNT( * ) * COUNT( * ) * - 11
----
187

skipif mysql # not compatible
query I rowsort label-6969
SELECT - 69 / - 10 + + + 37 + MIN ( DISTINCT - 58 ) + 71 * + 3 + 16 * 0 * 41 + + COUNT ( * ) * COUNT ( * ) * - 11
----
187

query I rowsort
SELECT ALL + 14 + 18 * - - 0 col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT DISTINCT ( - MIN( DISTINCT + 29 ) ) * 77
----
-2233

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT ( - MIN ( DISTINCT + 29 ) ) * 77
----
-2233

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT 58 + - 33 + - 56 * 54 * + NULLIF ( - 52, - + COUNT( * ) * + - 85 + + - COALESCE ( - + 94, ( + - COALESCE ( - - MIN( - 4 ), + + 23 ) ), - AVG ( + + 51 ) / + - COUNT( * ), - 10 + 70 ) ) + - + 44 * - 92 * - 95 AS col1
----
-227287

skipif mysql # not compatible
query I rowsort label-6972
SELECT 58 + - 33 + - 56 * 54 * + NULLIF ( - 52, - + COUNT ( * ) * + - 85 + + - COALESCE ( - + 94, ( + - COALESCE ( - - MIN ( - 4 ), + + 23 ) ), - AVG ( + + 51 ) / + - COUNT ( * ), - 10 + 70 ) ) + - + 44 * - 92 * - 95 AS col1
----
-227287

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6974
SELECT + 77 * 27 + CAST( 55 AS SIGNED ) + - + 30
----
2104

skipif mysql # not compatible
query I rowsort label-6974
SELECT + 77 * 27 + CAST ( 55 AS INTEGER ) + - + 30
----
2104

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6976
SELECT 84 DIV - COUNT( * ) + - + 14 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6976
SELECT 84 / - COUNT ( * ) + - + 14 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT 78 * + - 96 + + - 10 - + NULLIF ( - 0, + 95 * - 76 ) + - + COUNT( * )
----
-7499

skipif mysql # not compatible
query I rowsort label-6977
SELECT 78 * + - 96 + + - 10 - + NULLIF ( - 0, + 95 * - 76 ) + - + COUNT ( * )
----
-7499

query I rowsort
SELECT COALESCE ( - 56, 15 * 11 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT - 94 * + 83 * - COUNT( * ) + 87
----
7889

skipif mysql # not compatible
query I rowsort label-6979
SELECT - 94 * + 83 * - COUNT ( * ) + 87
----
7889

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT DISTINCT - 40 * 53 * - 73 * - 46 + - 3 * COUNT( * ) AS col1
----
-7118963

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT - 40 * 53 * - 73 * - 46 + - 3 * COUNT ( * ) AS col1
----
-7118963

query I rowsort
SELECT - COALESCE ( 83, + 79 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6982
SELECT + COUNT( * ) * 36 + - ( - COUNT( + COALESCE ( + CAST( NULL AS SIGNED ), - 71 + - 40, + 10 * - 37 - - 70 * + 4 ) ) ), - 93 AS col2
----
37
-93

skipif mysql # not compatible
query II rowsort label-6982
SELECT + COUNT ( * ) * 36 + - ( - COUNT ( + COALESCE ( + CAST ( NULL AS INTEGER ), - 71 + - 40, + 10 * - 37 - - 70 * + 4 ) ) ), - 93 AS col2
----
37
-93

query I rowsort
SELECT 14 * - + 32
----
-448

query I rowsort
SELECT 85 + - 84 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6985
SELECT 31 * + COUNT( * ) - 38 AS col1, + 49
----
-7
49

skipif mysql # not compatible
query II rowsort label-6985
SELECT 31 * + COUNT ( * ) - 38 AS col1, + 49
----
-7
49

query II rowsort
SELECT 23 AS col2, 46
----
23
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6987
SELECT 33 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-6987
SELECT 33 / 32
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6988
SELECT 40 * - + COALESCE ( - 93, - 97 - - + 96 + + 92 * + 48 + + + 27 - MIN( DISTINCT 10 ) * + ( + COUNT( * ) ) * NULLIF ( 16, + - 32 * 80 * - + 14 * - 61 + + - CAST( NULL AS SIGNED ) * - - 97 + + 50 + + - 62 * + 9 / 34 ) ) AS col1
----
3720

skipif mysql # not compatible
query I rowsort label-6988
SELECT 40 * - + COALESCE ( - 93, - 97 - - + 96 + + 92 * + 48 + + + 27 - MIN ( DISTINCT 10 ) * + ( + COUNT ( * ) ) * NULLIF ( 16, + - 32 * 80 * - + 14 * - 61 + + - CAST ( NULL AS INTEGER ) * - - 97 + + 50 + + - 62 * + 9 / 34 ) ) AS col1
----
3720

query I rowsort
SELECT 20 + + 0 * - 74 + + 38 * + 4 AS col0
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-6990
SELECT 23 DIV 3
----
7

skipif mysql # not compatible
query I rowsort label-6990
SELECT 23 / 3
----
7

query I rowsort
SELECT 30 + + ( - 51 )
----
-21

query I rowsort
SELECT ALL + 32 * - 75 col1
----
-2400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6993
SELECT DISTINCT + MAX( ( 36 ) ) DIV ( + 15 )
----
2

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT + MAX ( ( 36 ) ) / ( + 15 )
----
2

query I rowsort
SELECT ALL 17 * - - 60
----
1020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6995
SELECT ALL + CAST( NULL AS SIGNED ) + - + CASE + - 46 WHEN + 95 + - 97 + 76 * + 94 / COALESCE ( ( - 51 ), - + 54 ) * - + 89 THEN NULL WHEN + CASE + 69 WHEN 27 * + - CAST( NULL AS DECIMAL ) + - 58 THEN + 35 END * ( + - 2 ) + 79 + 14 + - + 44 THEN COALESCE ( COALESCE ( - 64, - + CASE + 16 WHEN NULLIF ( - - 95, - 84 ) / - 5 * - - CASE - 4 WHEN + - CAST( + 31 AS SIGNED ) + - 85 THEN 58 + + + ( - + 0 ) / - - 99 - + 9 ELSE + 66 END + + - 47 + - COUNT( * ) + + 90 * COALESCE ( + 11, - COUNT( 69 ) + - ( + 39 ) ) THEN COUNT( * ) + 69 WHEN + 45 THEN NULL END + 32 ), 46, 29 ) ELSE + MAX( 32 ) END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL + CAST ( NULL AS INTEGER ) + - + CASE + - 46 WHEN + 95 + - 97 + 76 * + 94 / COALESCE ( ( - 51 ), - + 54 ) * - + 89 THEN NULL WHEN + CASE + 69 WHEN 27 * + - CAST ( NULL AS REAL ) + - 58 THEN + 35 END * ( + - 2 ) + 79 + 14 + - + 44 THEN COALESCE ( COALESCE ( - 64, - + CASE + 16 WHEN NULLIF ( - - 95, - 84 ) / - 5 * - - CASE - 4 WHEN + - CAST ( + 31 AS INTEGER ) + - 85 THEN 58 + + + ( - + 0 ) / - - 99 - + 9 ELSE + 66 END + + - 47 + - COUNT ( * ) + + 90 * COALESCE ( + 11, - COUNT ( 69 ) + - ( + 39 ) ) THEN COUNT ( * ) + 69 WHEN + 45 THEN NULL END + 32 ), 46, 29 ) ELSE + MAX ( 32 ) END + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6996
SELECT 29 * - - NULLIF ( - + 59, + 18 * ( - CAST( + ( 12 ) AS DECIMAL ) ) / + + 33 ) AS col0
----
-1711

skipif mysql # not compatible
query I rowsort label-6996
SELECT 29 * - - NULLIF ( - + 59, + 18 * ( - CAST ( + ( 12 ) AS REAL ) ) / + + 33 ) AS col0
----
-1711

query I rowsort
SELECT 64 + 98 AS col2
----
162

query I rowsort
SELECT ALL - 69 * 65 AS col0
----
-4485

query II rowsort
SELECT + 27, 67 col2
----
27
67

query II rowsort
SELECT DISTINCT 61 AS col2, + NULLIF ( - COALESCE ( + + 14, 40 ), - 23 ) + 56 AS col0
----
61
42

query II rowsort
SELECT ALL 25 * - 15 + - 48 col0, + 3 AS col1
----
-423
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT ALL NULLIF ( + 14, 3 * COUNT( * ) ) * - 14 * - - 19 + - 26
----
-3750

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL NULLIF ( + 14, 3 * COUNT ( * ) ) * - 14 * - - 19 + - 26
----
-3750

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT - 29 DIV - 67 col0
----
0

skipif mysql # not compatible
query I rowsort label-7004
SELECT - 29 / - 67 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7005
SELECT ALL 68 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL 68 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7006
SELECT - - 97 * 35 - + 28, + COALESCE ( - 11, ( - COUNT( * ) ), 13, - + 40 ) AS col2
----
3367
-11

skipif mysql # not compatible
query II rowsort label-7006
SELECT - - 97 * 35 - + 28, + COALESCE ( - 11, ( - COUNT ( * ) ), 13, - + 40 ) AS col2
----
3367
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT + NULLIF ( - 84, - COUNT( + + 7 ) ) * + - SUM( ALL - 94 ) * + 41 col2
----
-323736

skipif mysql # not compatible
query I rowsort label-7007
SELECT + NULLIF ( - 84, - COUNT ( + + 7 ) ) * + - SUM ( ALL - 94 ) * + 41 col2
----
-323736

query II rowsort
SELECT + 74 AS col1, - 20
----
74
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT ALL + ( NULLIF ( - COUNT( * ), + 36 - + 53 ) ) * - 70 * 22 AS col0
----
1540

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL + ( NULLIF ( - COUNT ( * ), + 36 - + 53 ) ) * - 70 * 22 AS col0
----
1540

query I rowsort
SELECT ALL - + 85 * - 4 - 5 + + + 85 * + 56 * + - 71
----
-337625

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7011
SELECT + SUM( ALL + 50 ) DIV + + COUNT( * ) - - + 61 DIV 51 col1, + 44 AS col2
----
51
44

skipif mysql # not compatible
query II rowsort label-7011
SELECT + SUM ( ALL + 50 ) / + + COUNT ( * ) - - + 61 / 51 col1, + 44 AS col2
----
51
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT ALL + 41 * - ( MIN( DISTINCT 0 ) ) * - 47 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL + 41 * - ( MIN ( DISTINCT 0 ) ) * - 47 + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7013
SELECT DISTINCT + 93 * + 31 - 23 + - + CAST( NULL AS SIGNED ) * ( + - 53 ) - + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT + 93 * + 31 - 23 + - + CAST ( NULL AS INTEGER ) * ( + - 53 ) - + 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT ALL 57 * - - 80 * + COUNT( * ) * + + 92
----
419520

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL 57 * - - 80 * + COUNT ( * ) * + + 92
----
419520

query II rowsort
SELECT + 66 + + - 48 AS col0, 11 * - 38
----
18
-418

query II rowsort
SELECT + 72 * NULLIF ( - + 85, 63 + + 52 * + NULLIF ( + + 63, + 24 + - + 31 ) ), - ( - 82 ) AS col0
----
-6120
82

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

skipif mysql # not compatible
query I rowsort label-7017
SELECT MAX ( DISTINCT - 25 )
----
-25

query I rowsort
SELECT + 36 * - 15 * + + 72
----
-38880

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

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

query III rowsort
SELECT DISTINCT + 56 AS col2, 63, - + 31 AS col0
----
56
63
-31

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

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

query I rowsort
SELECT - 6 * + ( + 78 ) AS col0
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT ALL COUNT( * ) + - 70 + - 65 AS col0
----
-134

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL COUNT ( * ) + - 70 + - 65 AS col0
----
-134

query I rowsort
SELECT - NULLIF ( + 54, - AVG ( DISTINCT + - 26 ) * - + 20 * + + 50 )
----
-54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7025
SELECT + 70 * 21 DIV + ( - - 72 ) AS col0, 68 + CAST( 28 AS SIGNED )
----
20
96

skipif mysql # not compatible
query II rowsort label-7025
SELECT + 70 * 21 / + ( - - 72 ) AS col0, 68 + CAST ( 28 AS INTEGER )
----
20
96

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7027
SELECT - 12 AS col1, 71 + - + 35 + - COUNT( * )
----
-12
35

skipif mysql # not compatible
query II rowsort label-7027
SELECT - 12 AS col1, 71 + - + 35 + - COUNT ( * )
----
-12
35

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

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

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

query II rowsort
SELECT ALL 95, 48 col0
----
95
48

query I rowsort
SELECT - 56 * + 51 AS col2
----
-2856

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT - - COALESCE ( 57, 24, - - COUNT( DISTINCT + COALESCE ( + + NULLIF ( + 76, + 31 ), + + 79 ) ) ) - - 94 * + COUNT( * )
----
151

skipif mysql # not compatible
query I rowsort label-7032
SELECT - - COALESCE ( 57, 24, - - COUNT ( DISTINCT + COALESCE ( + + NULLIF ( + 76, + 31 ), + + 79 ) ) ) - - 94 * + COUNT ( * )
----
151

query I rowsort
SELECT ALL - 6 * - + 70 * 3 AS col1
----
1260

query I rowsort
SELECT - + 37 - 0 AS col0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7035
SELECT - - 51 * - MIN( DISTINCT + 47 ) - - MIN( DISTINCT - 22 ) - - + 81 * 2 DIV + + 18
----
-2410

skipif mysql # not compatible
query I rowsort label-7035
SELECT - - 51 * - MIN ( DISTINCT + 47 ) - - MIN ( DISTINCT - 22 ) - - + 81 * 2 / + + 18
----
-2410

query I rowsort
SELECT ALL - 45 * + + 60 + - 61 AS col1
----
-2761

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

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

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

query II rowsort
SELECT DISTINCT + 12 * 63 AS col0, - 32 AS col2
----
756
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT - - 99 + COUNT( * ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-7040
SELECT - - 99 + COUNT ( * ) AS col0
----
100

query I rowsort
SELECT - ( 95 ) * + 78 * - 54 * - 88
----
-35212320

query I rowsort
SELECT + 89 * ( ( 53 ) ) col0
----
4717

query I rowsort
SELECT 49 * - ( 65 ) + - 73 AS col2
----
-3258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7044
SELECT - 63 DIV + - 22 + + MIN( DISTINCT ( - 67 ) ) * - - 34 * + COUNT( * ) AS col2
----
-2276

skipif mysql # not compatible
query I rowsort label-7044
SELECT - 63 / + - 22 + + MIN ( DISTINCT ( - 67 ) ) * - - 34 * + COUNT ( * ) AS col2
----
-2276

onlyif mysql # DIV for integer division: 
query I rowsort label-7045
SELECT ALL + 77 DIV 2 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL + 77 / 2 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7046
SELECT + 53 - 27 + - - NULLIF ( + COUNT( * ), + ( - CASE - 3 WHEN - CAST( - - 51 AS SIGNED ) THEN NULL WHEN - + COUNT( - - 9 ) THEN + + 45 * 54 WHEN + + 59 THEN NULL ELSE NULL END ) * - - 79 / + 26 ) * + 96, - COUNT( * ) AS col2
----
122
-1

skipif mysql # not compatible
query II rowsort label-7046
SELECT + 53 - 27 + - - NULLIF ( + COUNT ( * ), + ( - CASE - 3 WHEN - CAST ( - - 51 AS INTEGER ) THEN NULL WHEN - + COUNT ( - - 9 ) THEN + + 45 * 54 WHEN + + 59 THEN NULL ELSE NULL END ) * - - 79 / + 26 ) * + 96, - COUNT ( * ) AS col2
----
122
-1

query I rowsort
SELECT + NULLIF ( - 70, - 96 + - + ( + ( - 7 ) ) ) col2
----
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT ALL - 32 * 26 + + - MAX( - - 88 )
----
-920

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL - 32 * 26 + + - MAX ( - - 88 )
----
-920

onlyif mysql # aggregate syntax: 
query II rowsort label-7050
SELECT DISTINCT + 49 * 76 + + + 59 col1, COUNT( * ) * - 30 AS col2
----
3783
-30

skipif mysql # not compatible
query II rowsort label-7050
SELECT DISTINCT + 49 * 76 + + + 59 col1, COUNT ( * ) * - 30 AS col2
----
3783
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT + SUM( ALL + ( + 91 ) ) * SUM( DISTINCT + 33 ) + + 95
----
3098

skipif mysql # not compatible
query I rowsort label-7052
SELECT + SUM ( ALL + ( + 91 ) ) * SUM ( DISTINCT + 33 ) + + 95
----
3098

onlyif mysql # aggregate syntax: 
query II rowsort label-7053
SELECT ALL 5 * + 85 + - COUNT( * ) * - - COALESCE ( - 81, 54, 49 ) AS col0, - MAX( DISTINCT - 34 ) + - 81 + + 30
----
506
-17

skipif mysql # not compatible
query II rowsort label-7053
SELECT ALL 5 * + 85 + - COUNT ( * ) * - - COALESCE ( - 81, 54, 49 ) AS col0, - MAX ( DISTINCT - 34 ) + - 81 + + 30
----
506
-17

query I rowsort
SELECT + 64 + ( - 78 )
----
-14

query I rowsort
SELECT + 40 + + + 79 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT DISTINCT NULLIF ( 1, + - CASE 58 WHEN + - 28 THEN NULL WHEN + - 98 THEN - - 63 WHEN 5 * + 7 THEN NULL END + - MAX( ALL - 56 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT NULLIF ( 1, + - CASE 58 WHEN + - 28 THEN NULL WHEN + - 98 THEN - - 63 WHEN 5 * + 7 THEN NULL END + - MAX ( ALL - 56 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7057
SELECT + NULLIF ( 41, CAST( NULL AS SIGNED ) ) + 13 * COUNT( ALL + - 14 ) + - - 94 AS col1
----
148

skipif mysql # not compatible
query I rowsort label-7057
SELECT + NULLIF ( 41, CAST ( NULL AS INTEGER ) ) + 13 * COUNT ( ALL + - 14 ) + - - 94 AS col1
----
148

query I rowsort
SELECT ALL 1 - 61 + - - 20
----
-40

query I rowsort
SELECT DISTINCT 5 - + - 46 - + 55 * 3 * + + 78 AS col1
----
-12819

query II rowsort
SELECT - + 41 + 53 col1, - 44 AS col2
----
12
-44

query I rowsort
SELECT - - 43 col1
----
43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7063
SELECT ( 18 ) + COALESCE ( + COUNT( * ), - 52 * - - 4 + - 76 * + - 76, + ( - CAST( NULL AS SIGNED ) ) ) * + + 99 + - + 29 + - COUNT( * ) * + - 52 DIV - ( - 48 ) col2
----
89

skipif mysql # not compatible
query I rowsort label-7063
SELECT ( 18 ) + COALESCE ( + COUNT ( * ), - 52 * - - 4 + - 76 * + - 76, + ( - CAST ( NULL AS INTEGER ) ) ) * + + 99 + - + 29 + - COUNT ( * ) * + - 52 / - ( - 48 ) col2
----
89

query I rowsort
SELECT ALL COALESCE ( 1, + 37 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7065
SELECT DISTINCT + 52 - + + 19 AS col2, COUNT( * ) AS col0
----
33
1

skipif mysql # not compatible
query II rowsort label-7065
SELECT DISTINCT + 52 - + + 19 AS col2, COUNT ( * ) AS col0
----
33
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7066
SELECT 43 / - + CAST( NULL AS DECIMAL ) + + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7066
SELECT 43 / - + CAST ( NULL AS REAL ) + + + 21
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7067
SELECT DISTINCT - COUNT( * ) * 78 + + - 55 AS col2, 91 - 50
----
-133
41

skipif mysql # not compatible
query II rowsort label-7067
SELECT DISTINCT - COUNT ( * ) * 78 + + - 55 AS col2, 91 - 50
----
-133
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7068
SELECT DISTINCT - - COUNT( * ) DIV - + 20, - 50 AS col1
----
0
-50

skipif mysql # not compatible
query II rowsort label-7068
SELECT DISTINCT - - COUNT ( * ) / - + 20, - 50 AS col1
----
0
-50

query I rowsort
SELECT 91 - - + 89
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ALL - MIN( DISTINCT - - 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL - MIN ( DISTINCT - - 74 ) AS col2
----
-74

query I rowsort
SELECT 68 * - 97 + + + 47
----
-6549

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT DISTINCT + MIN( 66 ) * + 78
----
5148

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT + MIN ( 66 ) * + 78
----
5148

query I rowsort
SELECT ALL + 72 + 76
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-7074
SELECT DISTINCT 59 + - + MAX( DISTINCT - 29 ) AS col0, - COUNT( 85 ) * 18 AS col1
----
88
-18

skipif mysql # not compatible
query II rowsort label-7074
SELECT DISTINCT 59 + - + MAX ( DISTINCT - 29 ) AS col0, - COUNT ( 85 ) * 18 AS col1
----
88
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT ALL 18 + - 10 * 83 - - NULLIF ( + 8, - COUNT( 32 ) ) + 92 * + + COUNT( * ) * 59
----
4624

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL 18 + - 10 * 83 - - NULLIF ( + 8, - COUNT ( 32 ) ) + 92 * + + COUNT ( * ) * 59
----
4624

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

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

query I rowsort
SELECT 20 * - + 62
----
-1240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7078
SELECT CASE + + 67 WHEN + + 96 THEN + 29 * + - 90 + + 22 WHEN - + 32 * - + 49 THEN NULL ELSE - 54 * - 48 * + 2 + - 26 + + + COUNT( * ) DIV + COUNT( + - 41 ) * NULLIF ( + AVG ( - - 2 ), 83 DIV + 41 ) END + 43 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7078
SELECT CASE + + 67 WHEN + + 96 THEN + 29 * + - 90 + + 22 WHEN - + 32 * - + 49 THEN NULL ELSE - 54 * - 48 * + 2 + - 26 + + + COUNT ( * ) / + COUNT ( + - 41 ) * NULLIF ( + AVG ( - - 2 ), 83 / + 41 ) END + 43 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT ALL - SUM( DISTINCT - 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL - SUM ( DISTINCT - 79 ) AS col1
----
79

query I rowsort
SELECT ( - 63 ) - + + 90 AS col0
----
-153

query I rowsort
SELECT ( 87 ) + + 0
----
87

query I rowsort
SELECT ALL 58 + + 88
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-7083
SELECT 45 * + + CASE + ( + - 84 ) WHEN 58 THEN + 90 END / - NULLIF ( - 10, + - 13 + + 75 * - 90 * - + 70 + - - COUNT( * ) ) AS col2, 24 AS col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-7083
SELECT 45 * + + CASE + ( + - 84 ) WHEN 58 THEN + 90 END / - NULLIF ( - 10, + - 13 + + 75 * - 90 * - + 70 + - - COUNT ( * ) ) AS col2, 24 AS col1
----
NULL
24

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7085
SELECT 58 * + 58 * - + 2 AS col0, - 11 DIV - COUNT( * )
----
-6728
11

skipif mysql # not compatible
query II rowsort label-7085
SELECT 58 * + 58 * - + 2 AS col0, - 11 / - COUNT ( * )
----
-6728
11

onlyif mysql # DIV for integer division: 
query II rowsort label-7086
SELECT - 10 AS col1, ( + 68 ) DIV - 24
----
-10
-2

skipif mysql # not compatible
query II rowsort label-7086
SELECT - 10 AS col1, ( + 68 ) / - 24
----
-10
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7087
SELECT ALL - 10 - + 94 DIV 49 * + 31 DIV - 74 + + 57 * - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL - 10 - + 94 / 49 * + 31 / - 74 + + 57 * - COUNT ( * )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7088
SELECT ALL COUNT( * ) - - - COALESCE ( + MAX( - - CAST( - 68 AS SIGNED ) ), + - COALESCE ( - COUNT( * ), + 1 ) + - - 32 * COUNT( DISTINCT - 6 ) )
----
69

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL COUNT ( * ) - - - COALESCE ( + MAX ( - - CAST ( - 68 AS INTEGER ) ), + - COALESCE ( - COUNT ( * ), + 1 ) + - - 32 * COUNT ( DISTINCT - 6 ) )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7089
SELECT - NULLIF ( 53, 84 + - CAST( NULL AS SIGNED ) * ( - - COUNT( * ) ) ) * + + 1 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-7089
SELECT - NULLIF ( 53, 84 + - CAST ( NULL AS INTEGER ) * ( - - COUNT ( * ) ) ) * + + 1 AS col2
----
-53

query I rowsort
SELECT DISTINCT 94 * - 31 col1
----
-2914

onlyif mysql # DIV for integer division: 
query I rowsort label-7091
SELECT 9 DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7091
SELECT 9 / - 76 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7092
SELECT + 42 * 15 DIV - COALESCE ( + - 74, CASE + 7 WHEN CASE - 63 WHEN - - 61 THEN NULL ELSE - 45 END - + 2 THEN NULL WHEN - 64 THEN 39 * 69 + + ( - + CAST( NULL AS SIGNED ) ) ELSE NULL END )
----
8

skipif mysql # not compatible
query I rowsort label-7092
SELECT + 42 * 15 / - COALESCE ( + - 74, CASE + 7 WHEN CASE - 63 WHEN - - 61 THEN NULL ELSE - 45 END - + 2 THEN NULL WHEN - 64 THEN 39 * 69 + + ( - + CAST ( NULL AS INTEGER ) ) ELSE NULL END )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT DISTINCT COUNT( 47 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT COUNT ( 47 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7094
SELECT - COUNT( 10 ) * + - CAST( - - 92 AS SIGNED ) * 12 * - 21 + + 15 AS col1
----
-23169

skipif mysql # not compatible
query I rowsort label-7094
SELECT - COUNT ( 10 ) * + - CAST ( - - 92 AS INTEGER ) * 12 * - 21 + + 15 AS col1
----
-23169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7095
SELECT - 8 AS col1, + ( - + CASE - + CAST( + 50 AS SIGNED ) WHEN - 77 * 63 + + 19 / 56 / 22 THEN 48 * - 40 + + 31 WHEN - 29 * MIN( 42 ) THEN NULL END ) col2
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-7095
SELECT - 8 AS col1, + ( - + CASE - + CAST ( + 50 AS INTEGER ) WHEN - 77 * 63 + + 19 / 56 / 22 THEN 48 * - 40 + + 31 WHEN - 29 * MIN ( 42 ) THEN NULL END ) col2
----
-8
NULL

query I rowsort
SELECT 88 - 97
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7097
SELECT - 9 * + 51 - - 49 * ( + - COUNT( * ) ) * + 53 + 50 + - CAST( - COUNT( * ) AS SIGNED ) + 92 + + 17 + - COALESCE ( 84, + + 42 ) + + + 74 AS col0
----
-2906

skipif mysql # not compatible
query I rowsort label-7097
SELECT - 9 * + 51 - - 49 * ( + - COUNT ( * ) ) * + 53 + 50 + - CAST ( - COUNT ( * ) AS INTEGER ) + 92 + + 17 + - COALESCE ( 84, + + 42 ) + + + 74 AS col0
----
-2906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7098
SELECT DISTINCT + CAST( + COALESCE ( + 36, - - COUNT( * ), ( - 15 ) ) AS SIGNED ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT + CAST ( + COALESCE ( + 36, - - COUNT ( * ), ( - 15 ) ) AS INTEGER ) AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7099
SELECT ALL - 23 * - ( - 10 ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL - 23 * - ( - 10 ) * + - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL MAX ( 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT ( SUM( ALL - 75 ) ) * + + ( + CASE - - 53 WHEN - 20 / + 72 THEN - 20 WHEN + 20 THEN NULL WHEN + COUNT( * ) * + + ( - 12 ) / ( COUNT( * ) ) + - 31 + + 66 THEN - 53 END ) + + + CASE - 79 WHEN + 28 - - COUNT( * ) THEN - COUNT( * ) + - + 82 + - - 61 ELSE 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7101
SELECT ( SUM ( ALL - 75 ) ) * + + ( + CASE - - 53 WHEN - 20 / + 72 THEN - 20 WHEN + 20 THEN NULL WHEN + COUNT ( * ) * + + ( - 12 ) / ( COUNT ( * ) ) + - 31 + + 66 THEN - 53 END ) + + + CASE - 79 WHEN + 28 - - COUNT ( * ) THEN - COUNT ( * ) + - + 82 + - - 61 ELSE 78 END
----
NULL

query I rowsort
SELECT ALL 23 * - + 98
----
-2254

onlyif mysql # aggregate syntax: 
query II rowsort label-7103
SELECT + COUNT( DISTINCT + 59 ) + - + 2 AS col1, - 84
----
-1
-84

skipif mysql # not compatible
query II rowsort label-7103
SELECT + COUNT ( DISTINCT + 59 ) + - + 2 AS col1, - 84
----
-1
-84

query I rowsort
SELECT - 81 - - 91
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7105
SELECT ALL - - COUNT( * ) * - 59 + + 70 * + 40 - - 50 DIV + 66
----
2741

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL - - COUNT ( * ) * - 59 + + 70 * + 40 - - 50 / + 66
----
2741

onlyif mysql # aggregate syntax: 
query II rowsort label-7106
SELECT 42 AS col0, + SUM( ALL - + ( + 45 ) ) col2
----
42
-45

skipif mysql # not compatible
query II rowsort label-7106
SELECT 42 AS col0, + SUM ( ALL - + ( + 45 ) ) col2
----
42
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7107
SELECT DISTINCT - 27 * 75 + + CASE COUNT( * ) WHEN + 9 * - NULLIF ( - + MIN( DISTINCT - - 77 ), + COUNT( DISTINCT 29 ) ) * 3 + 87 * - 80 * - CASE SUM( DISTINCT + 5 ) WHEN - - 3 THEN MIN( 66 ) ELSE NULL END - + SUM( + CAST( NULL AS SIGNED ) ) * + 54 + - 63 THEN NULL WHEN + + 20 THEN + + 40 ELSE NULL END + - 15 + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT - 27 * 75 + + CASE COUNT ( * ) WHEN + 9 * - NULLIF ( - + MIN ( DISTINCT - - 77 ), + COUNT ( DISTINCT 29 ) ) * 3 + 87 * - 80 * - CASE SUM ( DISTINCT + 5 ) WHEN - - 3 THEN MIN ( 66 ) ELSE NULL END - + SUM ( + CAST ( NULL AS INTEGER ) ) * + 54 + - 63 THEN NULL WHEN + + 20 THEN + + 40 ELSE NULL END + - 15 + 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7108
SELECT ALL - 13 DIV + + 78 AS col0, + 16 * - + COALESCE ( 67, + 44 ) + - COUNT( * )
----
0
-1073

skipif mysql # not compatible
query II rowsort label-7108
SELECT ALL - 13 / + + 78 AS col0, + 16 * - + COALESCE ( 67, + 44 ) + - COUNT ( * )
----
0
-1073

onlyif mysql # DIV for integer division: 
query I rowsort label-7109
SELECT 30 DIV 98 * + - 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7109
SELECT 30 / 98 * + - 62 AS col1
----
0

query I rowsort
SELECT DISTINCT 17 * + 32 + - 8
----
536

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7112
SELECT COUNT( * ) + 84 DIV + 91
----
1

skipif mysql # not compatible
query I rowsort label-7112
SELECT COUNT ( * ) + 84 / + 91
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT + MAX( ALL + + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7114
SELECT + MAX ( ALL + + 0 ) AS col1
----
0

query I rowsort
SELECT 65 * + 33
----
2145

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT DISTINCT + 41 + - COUNT( * ) * + 48 - - - 67 + - + NULLIF ( 15, + 77 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT + 41 + - COUNT ( * ) * + 48 - - - 67 + - + NULLIF ( 15, + 77 ) AS col2
----
-89

query I rowsort
SELECT ALL + 23 - 83 + 62 * NULLIF ( 31, - 20 + + 39 / AVG ( + + 91 ) * 30 )
----
1862

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7120
SELECT ALL - NULLIF ( + - 35, + + ( + - CAST( NULL AS DECIMAL ) ) )
----
35

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL - NULLIF ( + - 35, + + ( + - CAST ( NULL AS REAL ) ) )
----
35

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

skipif mysql # not compatible
query I rowsort label-7121
SELECT 64 + - - CAST ( NULL AS INTEGER ) + 22 col0
----
NULL

query I rowsort
SELECT ALL - 24 * + - 48
----
1152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7123
SELECT ALL - COALESCE ( 85, - CAST( NULL AS SIGNED ) * + 31 * 90 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - COALESCE ( 85, - CAST ( NULL AS INTEGER ) * + 31 * 90 ) AS col2
----
-85

query I rowsort
SELECT 54 + + 69
----
123

query I rowsort
SELECT + ( + 12 ) * 15 - + - 83
----
263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7126
SELECT - CAST( NULL AS SIGNED ) * - NULLIF ( + + CAST( NULL AS SIGNED ), - 6 ) + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7126
SELECT - CAST ( NULL AS INTEGER ) * - NULLIF ( + + CAST ( NULL AS INTEGER ), - 6 ) + 16
----
NULL

query I rowsort
SELECT - 66 + ( - 79 ) AS col1
----
-145

query II rowsort
SELECT + 36 + + - 16 + - + ( - 43 ) AS col2, 47 col1
----
63
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7129
SELECT ALL - 19 DIV - 22 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL - 19 / - 22 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-7130
SELECT - MAX ( DISTINCT 88 )
----
-88

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

query I rowsort
SELECT - + 89 + - + 5 AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7133
SELECT DISTINCT - 25 * SUM( ALL - + CAST( NULL AS SIGNED ) ) * - 29 + - + COUNT( * ) - - - ( 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT - 25 * SUM ( ALL - + CAST ( NULL AS INTEGER ) ) * - 29 + - + COUNT ( * ) - - - ( 26 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT + + 39 * MIN( ALL + 54 ) AS col0
----
2106

skipif mysql # not compatible
query I rowsort label-7134
SELECT + + 39 * MIN ( ALL + 54 ) AS col0
----
2106

query I rowsort
SELECT ALL + 34 + + + CASE 11 WHEN + - 83 THEN NULL ELSE + 6 END
----
40

query I rowsort
SELECT + 52 + - 44 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-7137
SELECT - + COALESCE ( + COUNT( 78 ), 83 ) * - 68 AS col1, + 38 + + - 38
----
68
0

skipif mysql # not compatible
query II rowsort label-7137
SELECT - + COALESCE ( + COUNT ( 78 ), 83 ) * - 68 AS col1, + 38 + + - 38
----
68
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ALL + 42 + - COUNT( DISTINCT + 89 ) - + - 16 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL + 42 + - COUNT ( DISTINCT + 89 ) - + - 16 AS col0
----
57

query I rowsort
SELECT + 9 * - 59 AS col2
----
-531

query II rowsort
SELECT + 79 + - 9 AS col0, + 80 * - - 88
----
70
7040

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT ALL CASE - 89 WHEN - ( - 34 ) + + COUNT( * ) THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL CASE - 89 WHEN - ( - 34 ) + + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END
----
1

query II rowsort
SELECT DISTINCT - 40 + - + 27 AS col1, 71
----
-67
71

query I rowsort
SELECT + 89 * + 78 AS col0
----
6942

query I rowsort
SELECT + 77 - 81 - + ( ( + + 60 ) ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT + CASE COUNT( * ) WHEN - 3 - + 42 THEN ( - 6 ) WHEN - 48 * NULLIF ( + + 49, - + 54 + + - COUNT( * ) + COUNT( * ) ) * + - 57 THEN NULL ELSE + 10 + + + NULLIF ( - 73, ( + 7 ) ) + 80 END
----
17

skipif mysql # not compatible
query I rowsort label-7146
SELECT + CASE COUNT ( * ) WHEN - 3 - + 42 THEN ( - 6 ) WHEN - 48 * NULLIF ( + + 49, - + 54 + + - COUNT ( * ) + COUNT ( * ) ) * + - 57 THEN NULL ELSE + 10 + + + NULLIF ( - 73, ( + 7 ) ) + 80 END
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT + MAX( ALL + COALESCE ( + 29, - + 95 ) )
----
29

skipif mysql # not compatible
query I rowsort label-7147
SELECT + MAX ( ALL + COALESCE ( + 29, - + 95 ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT + 53 - - - SUM( ALL 98 )
----
-45

skipif mysql # not compatible
query I rowsort label-7148
SELECT + 53 - - - SUM ( ALL 98 )
----
-45

query I rowsort
SELECT + 59 * - + 16 * + - 58 * - 3 * ( 10 ) AS col0
----
-1642560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7150
SELECT COALESCE ( + + 68, + 30 * - + COUNT( * ) ) DIV + + 39 + - 25 + - 40 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-7150
SELECT COALESCE ( + + 68, + 30 * - + COUNT ( * ) ) / + + 39 + - 25 + - 40 AS col2
----
-64

query II rowsort
SELECT DISTINCT 81 * 43 - + 35, - ( 56 ) AS col1
----
3448
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT + CASE - - 7 WHEN + 65 * - + 50 - - + COUNT( * ) / + 48 + COALESCE ( + 11, 69, - 30 * + 35 ) + + 83 THEN NULL ELSE 85 * - - COUNT( * ) END AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7152
SELECT + CASE - - 7 WHEN + 65 * - + 50 - - + COUNT ( * ) / + 48 + COALESCE ( + 11, 69, - 30 * + 35 ) + + 83 THEN NULL ELSE 85 * - - COUNT ( * ) END AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT - ( + ( + - 80 ) ) + 1 DIV + - 45 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-7153
SELECT - ( + ( + - 80 ) ) + 1 / + - 45 AS col0
----
80

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

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

query II rowsort
SELECT + 23 * + - 87 * - 30, - 25 AS col1
----
60030
-25

query I rowsort
SELECT 46 * 46 * - + 20 * 25 + 19 - + - 15 * - ( - + 54 ) AS col1
----
-1057171

query I rowsort
SELECT DISTINCT - 57 * 47 - - 27
----
-2652

onlyif mysql # DIV for integer division: 
query II rowsort label-7158
SELECT DISTINCT - 65 DIV - + ( + - 20 ) AS col0, ( 85 )
----
-3
85

skipif mysql # not compatible
query II rowsort label-7158
SELECT DISTINCT - 65 / - + ( + - 20 ) AS col0, ( 85 )
----
-3
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7159
SELECT ALL 99 DIV - 8
----
-12

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL 99 / - 8
----
-12

query I rowsort
SELECT + CASE + 56 WHEN ( + + 88 ) THEN - 66 WHEN + 87 + 45 + + 57 THEN + ( + 75 ) * + - 27 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT + MAX( DISTINCT 56 ) * + 4
----
224

skipif mysql # not compatible
query I rowsort label-7161
SELECT + MAX ( DISTINCT 56 ) * + 4
----
224

query I rowsort
SELECT ALL - 93 * 94 AS col0
----
-8742

query I rowsort
SELECT + 33 * + 64 col0
----
2112

query I rowsort
SELECT - 39 + 78 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT NULLIF ( NULLIF ( + 11, SUM( 90 ) * - 91 ), - CASE - 16 WHEN + 27 THEN + ( + 9 ) ELSE - 2 * - 54 END )
----
11

skipif mysql # not compatible
query I rowsort label-7165
SELECT NULLIF ( NULLIF ( + 11, SUM ( 90 ) * - 91 ), - CASE - 16 WHEN + 27 THEN + ( + 9 ) ELSE - 2 * - 54 END )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7166
SELECT DISTINCT - MAX( ALL 69 ) * CAST( - 38 * + CAST( - 34 AS SIGNED ) + 69 * + 40 AS SIGNED ) AS col2
----
-279588

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT - MAX ( ALL 69 ) * CAST ( - 38 * + CAST ( - 34 AS INTEGER ) + 69 * + 40 AS INTEGER ) AS col2
----
-279588

query I rowsort
SELECT DISTINCT + 59 * - 22 + + 33
----
-1265

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7168
SELECT DISTINCT CASE + 65 WHEN 4 + COUNT( * ) THEN + 75 ELSE CAST( NULL AS DECIMAL ) * 72 - + 19 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT CASE + 65 WHEN 4 + COUNT ( * ) THEN + 75 ELSE CAST ( NULL AS REAL ) * 72 - + 19 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT DISTINCT NULLIF ( + 46, - CASE + 34 WHEN 89 * 45 + + 47 THEN - COALESCE ( + 5, COUNT( ALL - 39 ) * 57, COUNT( * ) + + 53 ) END )
----
46

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT NULLIF ( + 46, - CASE + 34 WHEN 89 * 45 + + 47 THEN - COALESCE ( + 5, COUNT ( ALL - 39 ) * 57, COUNT ( * ) + + 53 ) END )
----
46

query I rowsort
SELECT ALL 29 * 37 + + 32 AS col0
----
1105

onlyif mysql # DIV for integer division: 
query I rowsort label-7171
SELECT - 56 DIV - 27 col2
----
2

skipif mysql # not compatible
query I rowsort label-7171
SELECT - 56 / - 27 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT ALL - MAX( DISTINCT + 24 ) + 46 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL - MAX ( DISTINCT + 24 ) + 46 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT - MAX( + 23 ) + 51
----
28

skipif mysql # not compatible
query I rowsort label-7173
SELECT - MAX ( + 23 ) + 51
----
28

query I rowsort
SELECT ALL + 58 + 61 * 77 AS col1
----
4755

onlyif mysql # DIV for integer division: 
query I rowsort label-7175
SELECT - 37 - ( - 14 ) DIV 39
----
-37

skipif mysql # not compatible
query I rowsort label-7175
SELECT - 37 - ( - 14 ) / 39
----
-37

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

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL - 58 + COUNT ( CAST ( NULL AS INTEGER ) ) * - 17 AS col1
----
-58

query I rowsort
SELECT - 13 - + 84 AS col2
----
-97

query I rowsort
SELECT - 90 + 41 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT - MAX( 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7179
SELECT - MAX ( 9 ) AS col0
----
-9

query I rowsort
SELECT DISTINCT + 13 * + 19 AS col0
----
247

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT ALL - CASE 88 WHEN 82 THEN NULL WHEN 54 THEN + 19 ELSE 22 END + COUNT( DISTINCT ( - 99 ) ) * - 6 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL - CASE 88 WHEN 82 THEN NULL WHEN 54 THEN + 19 ELSE 22 END + COUNT ( DISTINCT ( - 99 ) ) * - 6 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT - 77 + - CASE ( 88 ) - + 63 WHEN CASE 7 WHEN + 54 * 41 THEN - ( 93 ) ELSE + 49 + - MIN( ALL 73 ) END THEN + 76 WHEN CASE - SUM( 39 ) WHEN - 48 + - 17 THEN - 47 + + 74 / 2 ELSE 18 END THEN + 93 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7182
SELECT - 77 + - CASE ( 88 ) - + 63 WHEN CASE 7 WHEN + 54 * 41 THEN - ( 93 ) ELSE + 49 + - MIN ( ALL 73 ) END THEN + 76 WHEN CASE - SUM ( 39 ) WHEN - 48 + - 17 THEN - 47 + + 74 / 2 ELSE 18 END THEN + 93 END AS col0
----
NULL

query I rowsort
SELECT - 71 * + 5 col2
----
-355

query I rowsort
SELECT - 30 + 35 * 93 col0
----
3225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7185
SELECT ALL CAST( 21 AS SIGNED ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL CAST ( 21 AS INTEGER ) AS col0
----
21

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

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT + CAST ( ( - 75 ) AS INTEGER ) AS col2
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT - NULLIF ( + 64, + 63 / + 5 ) + + NULLIF ( + COUNT( ( NULLIF ( 94, 78 * - 5 ) ) ) + - ( - 62 + + 19 * MIN( - 34 + + ( - 25 ) ) ), 24 * - ( - COUNT( * ) * ( + AVG ( 5 ) ) ) ) * + 11
----
12960

skipif mysql # not compatible
query I rowsort label-7188
SELECT - NULLIF ( + 64, + 63 / + 5 ) + + NULLIF ( + COUNT ( ( NULLIF ( 94, 78 * - 5 ) ) ) + - ( - 62 + + 19 * MIN ( - 34 + + ( - 25 ) ) ), 24 * - ( - COUNT ( * ) * ( + AVG ( 5 ) ) ) ) * + 11
----
12960

onlyif mysql # DIV for integer division: 
query I rowsort label-7189
SELECT - 64 DIV - 12 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7189
SELECT - 64 / - 12 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT + MAX( DISTINCT - 57 ) * - 48 AS col2
----
2736

skipif mysql # not compatible
query I rowsort label-7190
SELECT + MAX ( DISTINCT - 57 ) * - 48 AS col2
----
2736

query I rowsort
SELECT DISTINCT 93 * - ( - 73 )
----
6789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7192
SELECT COUNT( 61 ) * + 91 + 41 * CAST( 32 / + 87 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-7192
SELECT COUNT ( 61 ) * + 91 + 41 * CAST ( 32 / + 87 AS INTEGER )
----
91

query I rowsort
SELECT - 64 * + 41 + 6 col0
----
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT MAX( 65 ) * 44
----
2860

skipif mysql # not compatible
query I rowsort label-7194
SELECT MAX ( 65 ) * 44
----
2860

query I rowsort
SELECT 9 * 87
----
783

query I rowsort
SELECT DISTINCT 57 * - 27 AS col2
----
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT ALL NULLIF ( - MAX( DISTINCT + 63 ), - 7 ) + + 30 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL NULLIF ( - MAX ( DISTINCT + 63 ), - 7 ) + + 30 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT ALL - MIN( - 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL - MIN ( - 24 ) AS col2
----
24

query I rowsort
SELECT DISTINCT - 0 + - 30 AS col1
----
-30

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

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL + 36 / COUNT ( * )
----
36

query I rowsort
SELECT 33 * + 13 AS col1
----
429

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

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

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

skipif mysql # not compatible
query I rowsort label-7204
SELECT + 20 - + COUNT ( * ) AS col0
----
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7206
SELECT + NULLIF ( + COALESCE ( CAST( NULL AS SIGNED ), - COUNT( * ) * - 52, 70 * COUNT( * ) + + 21 ), + 40 ) + 9 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7206
SELECT + NULLIF ( + COALESCE ( CAST ( NULL AS INTEGER ), - COUNT ( * ) * - 52, 70 * COUNT ( * ) + + 21 ), + 40 ) + 9 AS col1
----
61

query I rowsort
SELECT DISTINCT - 84 * 59
----
-4956

query I rowsort
SELECT DISTINCT + 73 + 82
----
155

query I rowsort
SELECT ALL - 51 + ( - 23 + - 78 ) * 91 AS col1
----
-9242

query I rowsort
SELECT - 0 + 58 AS col1
----
58

query I rowsort
SELECT DISTINCT + 23 * 1 col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT ALL SUM( DISTINCT 77 ) col1
----
77

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL SUM ( DISTINCT 77 ) col1
----
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7213
SELECT - 27 + 86 DIV - CAST( 93 + + CAST( 18 AS DECIMAL ) AS SIGNED ) col1
----
-27

skipif mysql # not compatible
query I rowsort label-7213
SELECT - 27 + 86 / - CAST ( 93 + + CAST ( 18 AS REAL ) AS INTEGER ) col1
----
-27

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

skipif mysql # not compatible
query I rowsort label-7214
SELECT + 67 * + COUNT ( ALL 13 ) AS col0
----
67

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT MIN( - COALESCE ( 66, - 92, - 54 ) ) * SUM( - 24 * + 86 )
----
136224

skipif mysql # not compatible
query I rowsort label-7217
SELECT MIN ( - COALESCE ( 66, - 92, - 54 ) ) * SUM ( - 24 * + 86 )
----
136224

query I rowsort
SELECT DISTINCT + ( - 53 ) - 20
----
-73

query I rowsort
SELECT ALL + 64 * 3 * 22 AS col2
----
4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7220
SELECT DISTINCT - 10 - + 53 DIV CAST( 81 * COUNT( * ) AS SIGNED ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-7220
SELECT DISTINCT - 10 - + 53 / CAST ( 81 * COUNT ( * ) AS INTEGER ) col2
----
-10

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

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

query I rowsort
SELECT DISTINCT + 83 * - + 5
----
-415

query I rowsort
SELECT ALL + 65 * + 20
----
1300

query I rowsort
SELECT 48 - + + 9 AS col2
----
39

query I rowsort
SELECT 54 * - + ( 96 )
----
-5184

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

skipif mysql # not compatible
query I rowsort label-7226
SELECT 65 * - + 62 - COUNT ( * ) AS col1
----
-4031

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7228
SELECT + 22 / - - SUM( CAST( NULL AS SIGNED ) ) + + 27 * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7228
SELECT + 22 / - - SUM ( CAST ( NULL AS INTEGER ) ) + + 27 * 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7229
SELECT ALL 46 + - NULLIF ( CAST( - 94 AS SIGNED ), - 36 )
----
140

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL 46 + - NULLIF ( CAST ( - 94 AS INTEGER ), - 36 )
----
140

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT + 59 * + COUNT( * ) * COUNT( 47 ) + - 16 * - 62
----
1051

skipif mysql # not compatible
query I rowsort label-7231
SELECT + 59 * + COUNT ( * ) * COUNT ( 47 ) + - 16 * - 62
----
1051

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT 92 - - 30 + COUNT( * ) * 35 * - 95
----
-3203

skipif mysql # not compatible
query I rowsort label-7232
SELECT 92 - - 30 + COUNT ( * ) * 35 * - 95
----
-3203

query I rowsort
SELECT DISTINCT + + 38 + + 16 * 82 col0
----
1350

query I rowsort
SELECT ALL - + 76 + 50 AS col2
----
-26

query I rowsort
SELECT ALL - 7 * - 18
----
126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT + CASE - 35 WHEN CASE 60 WHEN 63 THEN COUNT( * ) * 4 ELSE NULL END THEN 91 + + COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT + CASE - 35 WHEN CASE 60 WHEN 63 THEN COUNT ( * ) * 4 ELSE NULL END THEN 91 + + COUNT ( * ) END col1
----
NULL

query I rowsort
SELECT + - COALESCE ( 58, + 28 + + 19 )
----
-58

query I rowsort
SELECT 10 * - + 49 + + 50 * 62 AS col1
----
2610

query I rowsort
SELECT DISTINCT 74 + 44
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT ALL - COUNT( * ) * - COALESCE ( 9, - 49, - 1 * + COUNT( DISTINCT - 4 ) + 40 )
----
9

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL - COUNT ( * ) * - COALESCE ( 9, - 49, - 1 * + COUNT ( DISTINCT - 4 ) + 40 )
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7242
SELECT - 96 * - CAST( NULL AS DECIMAL ) + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7242
SELECT - 96 * - CAST ( NULL AS REAL ) + + 15
----
NULL

query I rowsort
SELECT ALL 1 + - 65 + 68 AS col2
----
4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7245
SELECT + 84 / - 67 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7245
SELECT + 84 / - 67 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7246
SELECT ALL + 63 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL + 63 / + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT ALL - ( - COUNT( * ) ) - 21
----
-20

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL - ( - COUNT ( * ) ) - 21
----
-20

query I rowsort
SELECT ALL - + 38 * 65 + + 99 AS col1
----
-2371

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7249
SELECT ALL + COUNT( * ) / + 79 - + CAST( NULL AS DECIMAL ) * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL + COUNT ( * ) / + 79 - + CAST ( NULL AS REAL ) * - 55
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7250
SELECT + CAST( + 88 AS SIGNED ) - + 92 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7250
SELECT + CAST ( + 88 AS INTEGER ) - + 92 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT - + SUM( 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-7251
SELECT - + SUM ( 28 ) AS col0
----
-28

query I rowsort
SELECT 75 + + - 18 + 90 * 92 AS col0
----
8337

onlyif mysql # DIV for integer division: 
query I rowsort label-7253
SELECT 39 DIV - 36 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7253
SELECT 39 / - 36 AS col0
----
-1

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

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

query I rowsort
SELECT ALL + 96 * 98 AS col0
----
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT ( - - COUNT( * ) ) - 32 * + 11
----
-351

skipif mysql # not compatible
query I rowsort label-7256
SELECT ( - - COUNT ( * ) ) - 32 * + 11
----
-351

query II rowsort
SELECT ALL 72 AS col1, + 11 col1
----
72
11

query I rowsort
SELECT 58 - - 10
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7259
SELECT DISTINCT CAST( 9 AS SIGNED ) * - 18 AS col0
----
-162

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT CAST ( 9 AS INTEGER ) * - 18 AS col0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT 67 + + MIN( 3 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7260
SELECT 67 + + MIN ( 3 ) AS col2
----
70

query I rowsort
SELECT 74 * - 6 col0
----
-444

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7262
SELECT 12, - AVG ( - CAST( NULL AS SIGNED ) ) AS col0
----
12
NULL

skipif mysql # not compatible
query II rowsort label-7262
SELECT 12, - AVG ( - CAST ( NULL AS INTEGER ) ) AS col0
----
12
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7263
SELECT + 64 + - 67 DIV + ( + 88 )
----
64

skipif mysql # not compatible
query I rowsort label-7263
SELECT + 64 + - 67 / + ( + 88 )
----
64

query II rowsort
SELECT 18, 80 AS col2
----
18
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT + NULLIF ( - - 6, + + 25 * + COUNT( * ) ) + - NULLIF ( - 73 - 82, 68 + + 80 ) AS col0
----
161

skipif mysql # not compatible
query I rowsort label-7265
SELECT + NULLIF ( - - 6, + + 25 * + COUNT ( * ) ) + - NULLIF ( - 73 - 82, 68 + + 80 ) AS col0
----
161

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7266
SELECT ALL MAX( DISTINCT - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL MAX ( DISTINCT - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT + ( 81 ) * 3 col2
----
243

query I rowsort
SELECT - 23 - - 11 + - - 23 + + 95 AS col1
----
106

query I rowsort
SELECT ALL + 88 + + + 9
----
97

query I rowsort
SELECT DISTINCT 30 * - 23 + - 27
----
-717

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT ALL 74 * 87 + + - COUNT( * ) + 12
----
6449

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL 74 * 87 + + - COUNT ( * ) + 12
----
6449

query II rowsort
SELECT + - 72, COALESCE ( + 26, - 18 ) AS col0
----
-72
26

query I rowsort
SELECT NULLIF ( - - 85, - + 42 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT ALL + SUM( ALL - 53 ) * - + 53 + 26
----
2835

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL + SUM ( ALL - 53 ) * - + 53 + 26
----
2835

query I rowsort
SELECT - 89 * 46
----
-4094

onlyif mysql # DIV for integer division: 
query I rowsort label-7276
SELECT + 2 DIV + + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7276
SELECT + 2 / + + 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7277
SELECT 42, SUM( DISTINCT - 45 ) + - 27 AS col2
----
42
-72

skipif mysql # not compatible
query II rowsort label-7277
SELECT 42, SUM ( DISTINCT - 45 ) + - 27 AS col2
----
42
-72

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7279
SELECT - - COALESCE ( + - COUNT( * ), + 45 DIV 88, 31 * 41 ) + COUNT( * ) DIV + 75 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7279
SELECT - - COALESCE ( + - COUNT ( * ), + 45 / 88, 31 * 41 ) + COUNT ( * ) / + 75 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7280
SELECT ALL + 34 * + + 65 * + + COALESCE ( + 62, + COUNT( * ) * + 91, + 0 DIV COUNT( * ) + 75 ) AS col1
----
137020

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL + 34 * + + 65 * + + COALESCE ( + 62, + COUNT ( * ) * + 91, + 0 / COUNT ( * ) + 75 ) AS col1
----
137020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7281
SELECT - 77 * 86 + + 37 * COALESCE ( MAX( ALL - 81 ) DIV + 9, CASE CAST( NULL AS SIGNED ) WHEN MAX( - 8 ) THEN NULL ELSE 56 END + + 43 * - COUNT( * ) )
----
-6955

skipif mysql # not compatible
query I rowsort label-7281
SELECT - 77 * 86 + + 37 * COALESCE ( MAX ( ALL - 81 ) / + 9, CASE CAST ( NULL AS INTEGER ) WHEN MAX ( - 8 ) THEN NULL ELSE 56 END + + 43 * - COUNT ( * ) )
----
-6955

query I rowsort
SELECT - 35 + + 38 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT + 64 * 16 * - 8 - COUNT( * ) - - 63 AS col0
----
-8130

skipif mysql # not compatible
query I rowsort label-7283
SELECT + 64 * 16 * - 8 - COUNT ( * ) - - 63 AS col0
----
-8130

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

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

query I rowsort
SELECT - 49 + 77 * + + NULLIF ( 98, 63 ) + - 93 * ( 55 )
----
2382

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT + COALESCE ( - 16, - 8 + + COUNT( - 5 ) * + COUNT( * ) ) + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-7286
SELECT + COALESCE ( - 16, - 8 + + COUNT ( - 5 ) * + COUNT ( * ) ) + COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT - ( - MIN( ALL - + COALESCE ( - 3, 0 ) ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7287
SELECT - ( - MIN ( ALL - + COALESCE ( - 3, 0 ) ) ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT + 76 * - CASE + MIN( DISTINCT + 60 ) WHEN 8 THEN 77 + + 24 END * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT + 76 * - CASE + MIN ( DISTINCT + 60 ) WHEN 8 THEN 77 + + 24 END * 99
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7289
SELECT ALL COUNT( * ) AS col2, CASE WHEN + ( CASE COUNT( * ) WHEN + 35 THEN 26 WHEN 70 + + 72 THEN NULL ELSE 3 + COUNT( * ) END ) NOT BETWEEN - 56 AND NULL THEN 53 * + COUNT( ALL + 12 ) WHEN NOT NULL IS NULL THEN NULL WHEN COUNT( * ) NOT BETWEEN - 32 AND NULL THEN 15 END + + ( 94 ) * 73 col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7289
SELECT ALL COUNT ( * ) AS col2, CASE WHEN + ( CASE COUNT ( * ) WHEN + 35 THEN 26 WHEN 70 + + 72 THEN NULL ELSE 3 + COUNT ( * ) END ) NOT BETWEEN - 56 AND NULL THEN 53 * + COUNT ( ALL + 12 ) WHEN NOT NULL IS NULL THEN NULL WHEN COUNT ( * ) NOT BETWEEN - 32 AND NULL THEN 15 END + + ( 94 ) * 73 col0
----
1
NULL

query II rowsort
SELECT ALL ( + - 95 ), + 67 AS col1
----
-95
67

onlyif mysql # DIV for integer division: 
query II rowsort label-7291
SELECT ALL 71 DIV - 84 AS col2, + ( - 77 ) * 42
----
0
-3234

skipif mysql # not compatible
query II rowsort label-7291
SELECT ALL 71 / - 84 AS col2, + ( - 77 ) * 42
----
0
-3234

onlyif mysql # DIV for integer division: 
query I rowsort label-7292
SELECT + 94 DIV - - 76 col1
----
1

skipif mysql # not compatible
query I rowsort label-7292
SELECT + 94 / - - 76 col1
----
1

query I rowsort
SELECT - ( + + 66 ) col2
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7294
SELECT DISTINCT 18 DIV MAX( DISTINCT + 23 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT 18 / MAX ( DISTINCT + 23 ) AS col0
----
0

query I rowsort
SELECT ALL 35 + 86 AS col2
----
121

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

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

query II rowsort
SELECT DISTINCT 11 + + - 75, ( + 43 ) * + 93 AS col0
----
-64
3999

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7298
SELECT ALL COUNT( * ) + 58 * - - CAST( 52 AS SIGNED ) - 97 AS col1
----
2920

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL COUNT ( * ) + 58 * - - CAST ( 52 AS INTEGER ) - 97 AS col1
----
2920

query I rowsort
SELECT - ( - 22 )
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-7300
SELECT ALL 5 + + 74, COUNT( * ) * - 58 * + 41 AS col0
----
79
-2378

skipif mysql # not compatible
query II rowsort label-7300
SELECT ALL 5 + + 74, COUNT ( * ) * - 58 * + 41 AS col0
----
79
-2378

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7301
SELECT - ( - 74 ) AS col2, CAST( NULL AS DECIMAL ) * - COALESCE ( 36, + 66 / 28, - 28 + - 52 ) + + 77 col0
----
74
NULL

skipif mysql # not compatible
query II rowsort label-7301
SELECT - ( - 74 ) AS col2, CAST ( NULL AS REAL ) * - COALESCE ( 36, + 66 / 28, - 28 + - 52 ) + + 77 col0
----
74
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7302
SELECT DISTINCT 75 + + COALESCE ( - 87, - 2 + 88 ) + CAST( NULL AS SIGNED ) * ( ( ( + NULLIF ( SUM( 21 ), 15 * - CAST( NULL AS SIGNED ) + + 44 ) ) ) * + 74 ) * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT 75 + + COALESCE ( - 87, - 2 + 88 ) + CAST ( NULL AS INTEGER ) * ( ( ( + NULLIF ( SUM ( 21 ), 15 * - CAST ( NULL AS INTEGER ) + + 44 ) ) ) * + 74 ) * 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT DISTINCT 34 + + COUNT( ALL 59 ) - 39 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT 34 + + COUNT ( ALL 59 ) - 39 AS col2
----
-4

query I rowsort
SELECT + 4 + + - 51
----
-47

query II rowsort
SELECT ALL 10 + - + 12, 46 AS col2
----
-2
46

query I rowsort
SELECT ALL 69 + - ( + 1 )
----
68

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

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

query I rowsort
SELECT + 51 - - - 93 - 86 + - 19 * + 99 AS col2
----
-2009

query I rowsort
SELECT + COALESCE ( + - 83, - 41 * - 36 ) col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7310
SELECT ALL + COALESCE ( 93, - COUNT( * ), + - MAX( ALL 92 ) + - CASE + CAST( NULL AS SIGNED ) WHEN - 34 THEN NULL WHEN + 19 THEN + 36 + - 27 DIV 16 WHEN - 65 THEN NULL ELSE 23 END, 99 * 38 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL + COALESCE ( 93, - COUNT ( * ), + - MAX ( ALL 92 ) + - CASE + CAST ( NULL AS INTEGER ) WHEN - 34 THEN NULL WHEN + 19 THEN + 36 + - 27 / 16 WHEN - 65 THEN NULL ELSE 23 END, 99 * 38 ) AS col1
----
93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7312
SELECT ALL + ( - + 63 ) / - 95 - CAST( NULL AS SIGNED ) * + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL + ( - + 63 ) / - 95 - CAST ( NULL AS INTEGER ) * + 39 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7313
SELECT DISTINCT - + 4 * - 45 * - MAX( DISTINCT - 76 ) + - CAST( NULL AS SIGNED ) * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT - + 4 * - 45 * - MAX ( DISTINCT - 76 ) + - CAST ( NULL AS INTEGER ) * 18
----
NULL

query I rowsort
SELECT DISTINCT + 61 * 89 AS col0
----
5429

query I rowsort
SELECT ALL - 3 * + 67 AS col0
----
-201

query I rowsort
SELECT - + 97 * + 96 AS col0
----
-9312

query I rowsort
SELECT - 37 * - + 46 * COALESCE ( - 58, - 3 ) + 81 + 26
----
-98609

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

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

query I rowsort
SELECT DISTINCT - + 24 * + + 55 + - 17
----
-1337

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

skipif mysql # not compatible
query I rowsort label-7320
SELECT - - 73 * - - COUNT ( * )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT ALL 30 * - 98 * - CAST( - - 12 AS SIGNED ) * - + CASE - COALESCE ( + 73, ( + COUNT( DISTINCT - CAST( + 72 AS SIGNED ) ) ) * + 27 ) WHEN 48 THEN + NULLIF ( + 64, 84 * 94 ) WHEN - 22 * - 28 THEN NULL ELSE NULL END / 41 + 30 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL 30 * - 98 * - CAST ( - - 12 AS INTEGER ) * - + CASE - COALESCE ( + 73, ( + COUNT ( DISTINCT - CAST ( + 72 AS INTEGER ) ) ) * + 27 ) WHEN 48 THEN + NULLIF ( + 64, 84 * 94 ) WHEN - 22 * - 28 THEN NULL ELSE NULL END / 41 + 30 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7322
SELECT 38 - - + 64 + - + 93 DIV - 80
----
103

skipif mysql # not compatible
query I rowsort label-7322
SELECT 38 - - + 64 + - + 93 / - 80
----
103

query I rowsort
SELECT 42 * 75 AS col0
----
3150

query I rowsort
SELECT 77 * - 86
----
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT 48 + - NULLIF ( + 1, COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7325
SELECT 48 + - NULLIF ( + 1, COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 60 * + 73 * + 25
----
-109500

query I rowsort
SELECT ALL + 6 + - CASE + 73 WHEN 34 THEN ( - 19 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7328
SELECT 58 + - - 42 + - CAST( + 56 AS SIGNED ) + 55 * COALESCE ( 72, + COALESCE ( - 77, 11, 35 ) + + 8, ( COUNT( * ) ) )
----
4004

skipif mysql # not compatible
query I rowsort label-7328
SELECT 58 + - - 42 + - CAST ( + 56 AS INTEGER ) + 55 * COALESCE ( 72, + COALESCE ( - 77, 11, 35 ) + + 8, ( COUNT ( * ) ) )
----
4004

query I rowsort
SELECT 67 + + + ( - 59 ) AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7330
SELECT 3 * - 22 * NULLIF ( + - ( - COUNT( * ) ), CASE CASE + COUNT( * ) WHEN CASE SUM( ALL - 30 ) WHEN - 46 * 75 THEN + 64 WHEN 39 + 97 THEN NULL END THEN NULL ELSE - 72 END WHEN + 79 THEN NULL WHEN CAST( NULL AS SIGNED ) / - 74 THEN NULL ELSE 69 END - 78 * - 16 ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-7330
SELECT 3 * - 22 * NULLIF ( + - ( - COUNT ( * ) ), CASE CASE + COUNT ( * ) WHEN CASE SUM ( ALL - 30 ) WHEN - 46 * 75 THEN + 64 WHEN 39 + 97 THEN NULL END THEN NULL ELSE - 72 END WHEN + 79 THEN NULL WHEN CAST ( NULL AS INTEGER ) / - 74 THEN NULL ELSE 69 END - 78 * - 16 ) col0
----
-66

query I rowsort
SELECT ALL 29 + + 24
----
53

query II rowsort
SELECT DISTINCT 86, 47 AS col2
----
86
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT ALL + 6 + + - 15 + 79 + COUNT( - 44 )
----
71

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL + 6 + + - 15 + 79 + COUNT ( - 44 )
----
71

query II rowsort
SELECT ALL 92 AS col0, + 67 + - 39
----
92
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7335
SELECT DISTINCT + 89 + 89 + - - CAST( 17 AS SIGNED ) * + COUNT( * )
----
195

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT + 89 + 89 + - - CAST ( 17 AS INTEGER ) * + COUNT ( * )
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT ALL - 34 + + 41 + 75 + 47 * + COUNT( * ) * NULLIF ( 13, 45 + + 9 ) * 11 col0
----
6803

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL - 34 + + 41 + 75 + 47 * + COUNT ( * ) * NULLIF ( 13, 45 + + 9 ) * 11 col0
----
6803

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7337
SELECT ( - - 55 ) + - + 84 AS col1, + CAST( ( - 74 ) AS SIGNED )
----
-29
-74

skipif mysql # not compatible
query II rowsort label-7337
SELECT ( - - 55 ) + - + 84 AS col1, + CAST ( ( - 74 ) AS INTEGER )
----
-29
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-7338
SELECT 37, + 42 DIV - - 71 + - + 8 + + 35 col1
----
37
27

skipif mysql # not compatible
query II rowsort label-7338
SELECT 37, + 42 / - - 71 + - + 8 + + 35 col1
----
37
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7339
SELECT - 2, - CAST( NULL AS SIGNED ) / COUNT( * ) AS col2
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-7339
SELECT - 2, - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col2
----
-2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT 82 + 36 * - COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-7340
SELECT 82 + 36 * - COUNT ( * ) AS col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7341
SELECT COALESCE ( 88, 7, 35 ) * + 87 - + 57 DIV - 10
----
7661

skipif mysql # not compatible
query I rowsort label-7341
SELECT COALESCE ( 88, 7, 35 ) * + 87 - + 57 / - 10
----
7661

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT 92 + + ( - 92 ) + - COUNT( * ) + - + 74 * 75 col1
----
-5551

skipif mysql # not compatible
query I rowsort label-7342
SELECT 92 + + ( - 92 ) + - COUNT ( * ) + - + 74 * 75 col1
----
-5551

query I rowsort
SELECT 45 - 65 * 70 AS col0
----
-4505

query I rowsort
SELECT NULLIF ( 28, 90 ) * - - 63 AS col2
----
1764

query I rowsort
SELECT DISTINCT - ( + 28 ) AS col1
----
-28

query I rowsort
SELECT - 28 * - 18 - 20 AS col2
----
484

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT ALL 67 * + + CASE + 25 WHEN 38 THEN - - 18 * - 13 + + COALESCE ( - 35 + MIN( 48 ) / 37, + 99 ) ELSE NULL END + 78 * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL 67 * + + CASE + 25 WHEN 38 THEN - - 18 * - 13 + + COALESCE ( - 35 + MIN ( 48 ) / 37, + 99 ) ELSE NULL END + 78 * 12
----
NULL

query I rowsort
SELECT DISTINCT + 56 * + 70 * - NULLIF ( + 4, + 96 )
----
-15680

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT ALL - - COALESCE ( - 55, - CASE COUNT( * ) WHEN ( + 20 ) + 92 * + SUM( ALL 56 ) THEN + ( ( - ( + 57 ) ) ) - - 59 END, - COALESCE ( - ( + 93 ), 30 ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL - - COALESCE ( - 55, - CASE COUNT ( * ) WHEN ( + 20 ) + 92 * + SUM ( ALL 56 ) THEN + ( ( - ( + 57 ) ) ) - - 59 END, - COALESCE ( - ( + 93 ), 30 ) ) AS col1
----
-55

query I rowsort
SELECT ALL 25 * 61
----
1525

query I rowsort
SELECT - 95 * + 53 * - + 55 AS col0
----
276925

query I rowsort
SELECT 2 * - - 46
----
92

query I rowsort
SELECT ALL + 7 * 65 AS col0
----
455

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT - MIN( ALL - 93 ) col1
----
93

skipif mysql # not compatible
query I rowsort label-7354
SELECT - MIN ( ALL - 93 ) col1
----
93

query I rowsort
SELECT - 6 * - ( - 80 ) + - NULLIF ( - - 68, + 25 + - 20 * - 69 ) + - COALESCE ( - 27, 90 * 1, 66 )
----
-521

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT + 18 / - - CASE + NULLIF ( CASE + - 26 WHEN - 19 * + MAX( + 69 ) THEN NULL WHEN 73 * 39 THEN 43 ELSE NULL END, - 83 ) WHEN 67 THEN ( - 57 ) WHEN 46 / 52 + - 80 THEN NULL END + COUNT( * ) / + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7356
SELECT + 18 / - - CASE + NULLIF ( CASE + - 26 WHEN - 19 * + MAX ( + 69 ) THEN NULL WHEN 73 * 39 THEN 43 ELSE NULL END, - 83 ) WHEN 67 THEN ( - 57 ) WHEN 46 / 52 + - 80 THEN NULL END + COUNT ( * ) / + 88
----
NULL

query I rowsort
SELECT 25 * + 3 col0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7358
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT - CAST ( NULL AS REAL ) / - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT DISTINCT - + MIN( DISTINCT - 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT - + MIN ( DISTINCT - 33 ) AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7360
SELECT ALL - 80 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL - 80 / 86
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT COUNT( * ) * - 97 + + 20, - 76 col0
----
-77
-76

skipif mysql # not compatible
query II rowsort label-7361
SELECT COUNT ( * ) * - 97 + + 20, - 76 col0
----
-77
-76

query II rowsort
SELECT + 14 AS col2, + 5 AS col0
----
14
5

query I rowsort
SELECT ALL + 37 + + 54
----
91

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

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

query II rowsort
SELECT 28, + 37 AS col0
----
28
37

query I rowsort
SELECT ALL - 74 + - - 12 - + ( + 70 ) * - 54
----
3718

onlyif mysql # DIV for integer division: 
query I rowsort label-7367
SELECT 67 DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7367
SELECT 67 / + 89 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7368
SELECT COUNT( * ) + ( - + NULLIF ( - COUNT( * ), + 67 / - CAST( NULL AS SIGNED ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-7368
SELECT COUNT ( * ) + ( - + NULLIF ( - COUNT ( * ), + 67 / - CAST ( NULL AS INTEGER ) ) )
----
2

query I rowsort
SELECT ALL + 2 + - - 9 AS col2
----
11

query I rowsort
SELECT 73 * + 56 AS col1
----
4088

query I rowsort
SELECT ALL 41 * - 25
----
-1025

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT ALL MIN( DISTINCT - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL MIN ( DISTINCT - 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL + 2 + + NULLIF ( ( ( + 55 ) ), + ( ( COUNT( * ) ) ) * - 59 + COUNT( * ) * + 94 ) + 76 * 57
----
4389

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL + 2 + + NULLIF ( ( ( + 55 ) ), + ( ( COUNT ( * ) ) ) * - 59 + COUNT ( * ) * + 94 ) + 76 * 57
----
4389

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

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

query II rowsort
SELECT - 45, - 87 col0
----
-45
-87

query II rowsort
SELECT ALL 46, 48 AS col0
----
46
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7377
SELECT 14 AS col1, MAX( DISTINCT - 44 )
----
14
-44

skipif mysql # not compatible
query II rowsort label-7377
SELECT 14 AS col1, MAX ( DISTINCT - 44 )
----
14
-44

query II rowsort
SELECT 20, 10 AS col2
----
20
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT DISTINCT - CASE - 71 WHEN 52 THEN + COUNT( * ) - 89 WHEN - 94 / - ( + 60 ) THEN + COUNT( * ) ELSE NULL END - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT - CASE - 71 WHEN 52 THEN + COUNT ( * ) - 89 WHEN - 94 / - ( + 60 ) THEN + COUNT ( * ) ELSE NULL END - + 82
----
NULL

query I rowsort
SELECT ALL + 3 * + 19 AS col2
----
57

query I rowsort
SELECT 98 * 14 * + 48 * 78 AS col1
----
5136768

query II rowsort
SELECT ALL 13 AS col1, 70 * + 50 AS col1
----
13
3500

query I rowsort
SELECT ( - 47 ) + 4
----
-43

query I rowsort
SELECT DISTINCT + 85 * - 4 + 19
----
-321

query I rowsort
SELECT + 35 + 60 AS col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-7386
SELECT 57 * - 98 * + SUM( DISTINCT + + 39 ), + 69 - + 42 AS col0
----
-217854
27

skipif mysql # not compatible
query II rowsort label-7386
SELECT 57 * - 98 * + SUM ( DISTINCT + + 39 ), + 69 - + 42 AS col0
----
-217854
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT + 92 - - + 21 * + COUNT( * )
----
113

skipif mysql # not compatible
query I rowsort label-7387
SELECT + 92 - - + 21 * + COUNT ( * )
----
113

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7389
SELECT DISTINCT + 3 DIV 5
----
0

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT + 3 / 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT - 4 * + - COUNT( * ) + + 75 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-7390
SELECT - 4 * + - COUNT ( * ) + + 75 AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7391
SELECT - CAST( - 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-7391
SELECT - CAST ( - 73 AS INTEGER )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7392
SELECT ALL 45 DIV + 24 + - - ( + COUNT( * ) ) AS col0, - ( + 27 ) * 17 AS col1
----
2
-459

skipif mysql # not compatible
query II rowsort label-7392
SELECT ALL 45 / + 24 + - - ( + COUNT ( * ) ) AS col0, - ( + 27 ) * 17 AS col1
----
2
-459

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7393
SELECT 50 DIV 79 + - - 83 + + + 91 + - 8 * - CAST( 10 AS SIGNED )
----
254

skipif mysql # not compatible
query I rowsort label-7393
SELECT 50 / 79 + - - 83 + + + 91 + - 8 * - CAST ( 10 AS INTEGER )
----
254

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT - SUM( DISTINCT + + 94 ) + - 79
----
-173

skipif mysql # not compatible
query I rowsort label-7394
SELECT - SUM ( DISTINCT + + 94 ) + - 79
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT 96 * + SUM( - - 53 ) AS col1
----
5088

skipif mysql # not compatible
query I rowsort label-7395
SELECT 96 * + SUM ( - - 53 ) AS col1
----
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT ALL + ( - 63 ) * + + 68 + 53 + - CASE + 26 WHEN + 75 + COUNT( * ) THEN COUNT( * ) WHEN + 57 THEN NULL ELSE NULL END - - COUNT( * ) * 25 * ( 5 + + 28 * - MAX( 73 ) ) + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL + ( - 63 ) * + + 68 + 53 + - CASE + 26 WHEN + 75 + COUNT ( * ) THEN COUNT ( * ) WHEN + 57 THEN NULL ELSE NULL END - - COUNT ( * ) * 25 * ( 5 + + 28 * - MAX ( 73 ) ) + - 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7397
SELECT + 4, 64 * + COALESCE ( - - 52, - COUNT( DISTINCT + 17 ) * COUNT( * ) ) col0
----
4
3328

skipif mysql # not compatible
query II rowsort label-7397
SELECT + 4, 64 * + COALESCE ( - - 52, - COUNT ( DISTINCT + 17 ) * COUNT ( * ) ) col0
----
4
3328

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL - 67 * - 27 + MAX( ALL - 16 ) AS col1
----
1793

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL - 67 * - 27 + MAX ( ALL - 16 ) AS col1
----
1793

query I rowsort
SELECT ALL 25 * - 42 * + NULLIF ( - 24, + 54 * + 89 )
----
25200

query I rowsort
SELECT + - 40 * - + 16 * - 45 * 16 AS col1
----
-460800

onlyif mysql # aggregate syntax: 
query II rowsort label-7401
SELECT + NULLIF ( 26, - 44 * + COUNT( * ) ) AS col0, 39 col0
----
26
39

skipif mysql # not compatible
query II rowsort label-7401
SELECT + NULLIF ( 26, - 44 * + COUNT ( * ) ) AS col0, 39 col0
----
26
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT ALL MIN( + 51 ) * + 53 + + - 63 + 27 AS col2
----
2667

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL MIN ( + 51 ) * + 53 + + - 63 + 27 AS col2
----
2667

query II rowsort
SELECT + 88 AS col2, - 66 AS col1
----
88
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT + CASE - - 49 WHEN - 61 * + 7 + + COUNT( * ) + COUNT( * ) * + 81 + 68 * + 74 THEN 13 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT + CASE - - 49 WHEN - 61 * + 7 + + COUNT ( * ) + COUNT ( * ) * + 81 + 68 * + 74 THEN 13 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7405
SELECT ALL 34 * + ( + 87 ) * - - 31 * - CASE 46 WHEN - 93 THEN NULL WHEN 37 THEN NULL ELSE 32 END * COUNT( * ) + 96 DIV 5 + 27 col2
----
-2934290

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL 34 * + ( + 87 ) * - - 31 * - CASE 46 WHEN - 93 THEN NULL WHEN 37 THEN NULL ELSE 32 END * COUNT ( * ) + 96 / 5 + 27 col2
----
-2934290

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT MAX( ALL - 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-7406
SELECT MAX ( ALL - 65 ) AS col2
----
-65

query I rowsort
SELECT + 36 - 11 + + ( + 23 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query III rowsort label-7408
SELECT ALL + 6 + + - 26 AS col0, COUNT( * ) * + 53 + + + COUNT( * ) AS col0, - - CASE - + 28 WHEN + 70 * - 92 THEN 87 ELSE + 21 END + SUM( ALL 88 )
----
-20
54
109

skipif mysql # not compatible
query III rowsort label-7408
SELECT ALL + 6 + + - 26 AS col0, COUNT ( * ) * + 53 + + + COUNT ( * ) AS col0, - - CASE - + 28 WHEN + 70 * - 92 THEN 87 ELSE + 21 END + SUM ( ALL 88 )
----
-20
54
109

query I rowsort
SELECT + COALESCE ( - 11, 66 * - + 69 - 45 + + 67 ) AS col2
----
-11

query I rowsort
SELECT ALL 94 - - - 3 * - + 36 col0
----
202

onlyif mysql # DIV for integer division: 
query I rowsort label-7411
SELECT DISTINCT 52 DIV - 12 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT 52 / - 12 AS col0
----
-4

query I rowsort
SELECT - 82 * 50 AS col0
----
-4100

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT DISTINCT COUNT( - - 28 ) * 35
----
35

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT COUNT ( - - 28 ) * 35
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7414
SELECT NULLIF ( + + COALESCE ( 25, + CASE + - 87 WHEN CASE 27 WHEN + 40 * - 0 THEN 55 + 21 * CAST( + COUNT( 65 ) + 3 AS SIGNED ) END THEN + 44 END ), - 64 ) * + 10 + + 57 col2
----
307

skipif mysql # not compatible
query I rowsort label-7414
SELECT NULLIF ( + + COALESCE ( 25, + CASE + - 87 WHEN CASE 27 WHEN + 40 * - 0 THEN 55 + 21 * CAST ( + COUNT ( 65 ) + 3 AS INTEGER ) END THEN + 44 END ), - 64 ) * + 10 + + 57 col2
----
307

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT - 4 + + COUNT( * ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-7415
SELECT - 4 + + COUNT ( * ) col0
----
-3

query I rowsort
SELECT DISTINCT CASE - 43 WHEN - ( + 48 ) THEN 5 WHEN - 95 * 71 / + ( 28 ) THEN NULL WHEN - 87 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT - 19 * + ( 48 ) AS col0
----
-912

query I rowsort
SELECT - - 87 + + 23
----
110

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7421
SELECT - 86 * - + 32 * - - 41 * + 36 + + 91 AS col0, COUNT( * ) - - - 17 + 15 AS col0
----
4062043
-1

skipif mysql # not compatible
query II rowsort label-7421
SELECT - 86 * - + 32 * - - 41 * + 36 + + 91 AS col0, COUNT ( * ) - - - 17 + 15 AS col0
----
4062043
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7422
SELECT - + 19 * CAST( + 55 AS SIGNED ) DIV - + 42 + - 80
----
-56

skipif mysql # not compatible
query I rowsort label-7422
SELECT - + 19 * CAST ( + 55 AS INTEGER ) / - + 42 + - 80
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-7423
SELECT DISTINCT + - 18 + - MAX( ALL + - 45 ), - 53 AS col0
----
27
-53

skipif mysql # not compatible
query II rowsort label-7423
SELECT DISTINCT + - 18 + - MAX ( ALL + - 45 ), - 53 AS col0
----
27
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT + - ( + 39 ) DIV + 82 - - 6 + + 49
----
55

skipif mysql # not compatible
query I rowsort label-7424
SELECT + - ( + 39 ) / + 82 - - 6 + + 49
----
55

query I rowsort
SELECT ALL + COALESCE ( + 71, + 74 )
----
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7426
SELECT + + CASE AVG ( DISTINCT + 14 ) WHEN 66 + - 97 THEN NULL ELSE CAST( NULL AS DECIMAL ) END / 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7426
SELECT + + CASE AVG ( DISTINCT + 14 ) WHEN 66 + - 97 THEN NULL ELSE CAST ( NULL AS REAL ) END / 11 AS col0
----
NULL

query I rowsort
SELECT - 2 + 31 * 65 AS col1
----
2013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7428
SELECT + 59 * CAST( NULL AS SIGNED ) * - - 32 + + 4 * + + 96 * + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT + 59 * CAST ( NULL AS INTEGER ) * - - 32 + + 4 * + + 96 * + + 75
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7429
SELECT + 85 DIV - 67 + - + 28 * 11 * - COUNT( * ) col0
----
307

skipif mysql # not compatible
query I rowsort label-7429
SELECT + 85 / - 67 + - + 28 * 11 * - COUNT ( * ) col0
----
307

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ALL + COUNT( * ) * + MIN( ALL + 57 ) + - - 63
----
120

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + COUNT ( * ) * + MIN ( ALL + 57 ) + - - 63
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-7431
SELECT + SUM( - ( + 53 ) ) AS col1, - 52
----
-53
-52

skipif mysql # not compatible
query II rowsort label-7431
SELECT + SUM ( - ( + 53 ) ) AS col1, - 52
----
-53
-52

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7433
SELECT DISTINCT 24 * + + CAST( NULL AS SIGNED ) + COUNT( * ) AS col1, 18
----
NULL
18

skipif mysql # not compatible
query II rowsort label-7433
SELECT DISTINCT 24 * + + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1, 18
----
NULL
18

query I rowsort
SELECT + 95 * + 16
----
1520

query II rowsort
SELECT ALL 6 * + 85 * + 26, 2 AS col0
----
13260
2

query I rowsort
SELECT ALL 98 * + ( + + 96 ) - + 67 AS col1
----
9341

query I rowsort
SELECT ALL + ( NULLIF ( - 16, 35 ) ) AS col2
----
-16

query I rowsort
SELECT + ( + 68 ) + - + 62 AS col0
----
6

query I rowsort
SELECT ALL NULLIF ( - 85, - 63 ) * + 68 AS col2
----
-5780

query I rowsort
SELECT DISTINCT 12 * 60 AS col2
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT CASE - - ( - 69 ) WHEN CASE + ( SUM( 83 ) ) WHEN - 5 THEN - 99 + 30 END THEN - 63 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7441
SELECT CASE - - ( - 69 ) WHEN CASE + ( SUM ( 83 ) ) WHEN - 5 THEN - 99 + 30 END THEN - 63 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT ALL COUNT( * ) * + 44 * - 20 AS col0
----
-880

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL COUNT ( * ) * + 44 * - 20 AS col0
----
-880

query I rowsort
SELECT - 41 * + 45 + - 39 * + - 13
----
-1338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7444
SELECT CASE CAST( NULL AS SIGNED ) WHEN - - ( - 96 ) THEN NULL ELSE + COUNT( ALL + 87 ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7444
SELECT CASE CAST ( NULL AS INTEGER ) WHEN - - ( - 96 ) THEN NULL ELSE + COUNT ( ALL + 87 ) END AS col0
----
1

query I rowsort
SELECT + COALESCE ( - ( - 45 ), - 90, + 40 * + COALESCE ( - - 43, - 75 ) * + 64 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT + 34 + ( COUNT( * ) ) * - 24 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7446
SELECT + 34 + ( COUNT ( * ) ) * - 24 AS col1
----
10

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

query I rowsort
SELECT DISTINCT - CASE - 23 WHEN + AVG ( - 22 ) THEN + 90 / - 81 * 31 END * 84 * + 32
----
NULL

query I rowsort
SELECT DISTINCT ( - - 89 ) AS col0
----
89

query I rowsort
SELECT ALL + 19 * + 92 * + - 9 AS col1
----
-15732

query I rowsort
SELECT - 44 + - 9
----
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-7452
SELECT ALL + 95 + ( - 73 ) AS col0, + 6 DIV - - ( + NULLIF ( - + ( - ( + 43 ) ), 24 + - ( 32 ) ) ) AS col0
----
22
0

skipif mysql # not compatible
query II rowsort label-7452
SELECT ALL + 95 + ( - 73 ) AS col0, + 6 / - - ( + NULLIF ( - + ( - ( + 43 ) ), 24 + - ( 32 ) ) ) AS col0
----
22
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT DISTINCT - 37 DIV - ( + 45 ) + + 74 + - ( - ( 99 ) )
----
173

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT - 37 / - ( + 45 ) + + 74 + - ( - ( 99 ) )
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT DISTINCT + COUNT( * ) + + + 76 * - + 59 AS col1
----
-4483

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT + COUNT ( * ) + + + 76 * - + 59 AS col1
----
-4483

query I rowsort
SELECT + 24 * 31 AS col2
----
744

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7457
SELECT - 55 AS col0, CAST( NULL AS DECIMAL ) AS col2
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-7457
SELECT - 55 AS col0, CAST ( NULL AS REAL ) AS col2
----
-55
NULL

query I rowsort
SELECT - 90 - + 34 + + 68
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7459
SELECT + + 22 DIV 90 * + 30 * - 92 DIV - 79 + - 74 + - + 45 + - 19 * COALESCE ( - 5 DIV - 66, - MAX( 76 ) + - 64 )
----
-119

skipif mysql # not compatible
query I rowsort label-7459
SELECT + + 22 / 90 * + 30 * - 92 / - 79 + - 74 + - + 45 + - 19 * COALESCE ( - 5 / - 66, - MAX ( 76 ) + - 64 )
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7460
SELECT - ( + 29 ) * - CAST( 75 AS SIGNED ) AS col2
----
2175

skipif mysql # not compatible
query I rowsort label-7460
SELECT - ( + 29 ) * - CAST ( 75 AS INTEGER ) AS col2
----
2175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7461
SELECT DISTINCT - COALESCE ( - - 97, + 10 * + CASE - 21 WHEN + CAST( + + 44 AS SIGNED ) + - 15 * 92 THEN - 61 WHEN MIN( + 59 ) THEN 79 END - - 52 + COUNT( * ) ) * - 38
----
3686

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT - COALESCE ( - - 97, + 10 * + CASE - 21 WHEN + CAST ( + + 44 AS INTEGER ) + - 15 * 92 THEN - 61 WHEN MIN ( + 59 ) THEN 79 END - - 52 + COUNT ( * ) ) * - 38
----
3686

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT DISTINCT - SUM( ALL - 12 ) - - 45 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT - SUM ( ALL - 12 ) - - 45 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT 86 * + COUNT( + 55 ) AS col1
----
86

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7465
SELECT ALL - 16 * - MIN( DISTINCT + - ( 21 ) ), + 53 DIV - + ( + - SUM( + 45 ) ) AS col2
----
-336
1

skipif mysql # not compatible
query II rowsort label-7465
SELECT ALL - 16 * - MIN ( DISTINCT + - ( 21 ) ), + 53 / - + ( + - SUM ( + 45 ) ) AS col2
----
-336
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT - NULLIF ( CASE 91 WHEN + + CASE - 47 WHEN + 85 + + 95 + - 17 THEN 97 WHEN ( - 42 ) THEN NULL WHEN ( 47 ) * + 95 + + 5 THEN + 2 ELSE - COUNT( * ) END THEN 11 * 64 WHEN 88 + 56 / - 24 THEN - 18 ELSE NULL END, + COUNT( * ) + + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT - NULLIF ( CASE 91 WHEN + + CASE - 47 WHEN + 85 + + 95 + - 17 THEN 97 WHEN ( - 42 ) THEN NULL WHEN ( 47 ) * + 95 + + 5 THEN + 2 ELSE - COUNT ( * ) END THEN 11 * 64 WHEN 88 + 56 / - 24 THEN - 18 ELSE NULL END, + COUNT ( * ) + + 17 )
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7468
SELECT + 50 * - 95 - + 37 + - - CAST( + + CASE + 3 WHEN + 85 * - + 0 + 12 * - 3 THEN 16 + + 84 ELSE NULL END AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT + 50 * - 95 - + 37 + - - CAST ( + + CASE + 3 WHEN + 85 * - + 0 + 12 * - 3 THEN 16 + + 84 ELSE NULL END AS REAL ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7469
SELECT 76 * COUNT ( * )
----
76

query I rowsort
SELECT 2 * - 15 * - 35
----
1050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7471
SELECT ALL COUNT( * ) * CAST( - COUNT( * ) AS SIGNED ) * - 78 * 81 AS col1
----
6318

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL COUNT ( * ) * CAST ( - COUNT ( * ) AS INTEGER ) * - 78 * 81 AS col1
----
6318

onlyif mysql # DIV for integer division: 
query I rowsort label-7472
SELECT ALL - 71 DIV 20
----
-3

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL - 71 / 20
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT DISTINCT MAX( ALL 1 ) * + 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT MAX ( ALL 1 ) * + 80 AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7474
SELECT COUNT( * ) DIV + COUNT( * ) AS col0, + 82
----
1
82

skipif mysql # not compatible
query II rowsort label-7474
SELECT COUNT ( * ) / + COUNT ( * ) AS col0, + 82
----
1
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7475
SELECT 7 + - ( + + COALESCE ( 86, + CAST( + - 45 AS SIGNED ), + + 38 * - 87 + + - COUNT( * ) - 33, + 61 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-7475
SELECT 7 + - ( + + COALESCE ( 86, + CAST ( + - 45 AS INTEGER ), + + 38 * - 87 + + - COUNT ( * ) - 33, + 61 ) )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT - - COALESCE ( 22, + 33 ) * + 94 + - + 99 - + - CASE + 22 WHEN 23 * 50 * MAX( ALL ( - 78 ) ) THEN NULL WHEN 3 + + COUNT( * ) THEN NULL ELSE 93 END * 55 + 95 AS col0
----
7179

skipif mysql # not compatible
query I rowsort label-7476
SELECT - - COALESCE ( 22, + 33 ) * + 94 + - + 99 - + - CASE + 22 WHEN 23 * 50 * MAX ( ALL ( - 78 ) ) THEN NULL WHEN 3 + + COUNT ( * ) THEN NULL ELSE 93 END * 55 + 95 AS col0
----
7179

query I rowsort
SELECT 22 - + + NULLIF ( 63, + 93 / + - 18 ) + + 85 - - 75 * - - 27
----
2069

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT COUNT( * ) + - 19 * + COUNT( * ) + - ( + - 94 )
----
76

skipif mysql # not compatible
query I rowsort label-7478
SELECT COUNT ( * ) + - 19 * + COUNT ( * ) + - ( + - 94 )
----
76

query I rowsort
SELECT DISTINCT + NULLIF ( + CASE 39 WHEN - 77 THEN + + 79 END, - - 47 / - + 64 / - CASE - - 69 WHEN 93 + - 9 THEN NULL ELSE + 67 + + 90 / + 76 END * + 64 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7480
SELECT ALL + 24 + + COUNT( * ) DIV - SUM( ALL + 23 ) + 12 + - - CAST( 54 AS SIGNED ) * + ( COUNT( - 85 ) ) * 73 + 25 AS col1
----
4003

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL + 24 + + COUNT ( * ) / - SUM ( ALL + 23 ) + 12 + - - CAST ( 54 AS INTEGER ) * + ( COUNT ( - 85 ) ) * 73 + 25 AS col1
----
4003

query I rowsort
SELECT ALL 34 * 78 AS col0
----
2652

onlyif mysql # aggregate syntax: 
query II rowsort label-7482
SELECT DISTINCT - 96 + + 30, - COUNT( * ) AS col0
----
-66
-1

skipif mysql # not compatible
query II rowsort label-7482
SELECT DISTINCT - 96 + + 30, - COUNT ( * ) AS col0
----
-66
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT ALL + CASE - 37 WHEN + 10 THEN - + ( - 5 ) WHEN - - 34 THEN 58 + - 71 + 65 - + 96 * + CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL + CASE - 37 WHEN + 10 THEN - + ( - 5 ) WHEN - - 34 THEN 58 + - 71 + 65 - + 96 * + CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 91 + - - COALESCE ( - + 23, - 51 ) + 37
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-7485
SELECT - 61 * + - 29 * - - 77 * 36 AS col1, SUM( + COALESCE ( 64, + - 86 ) )
----
4903668
64

skipif mysql # not compatible
query II rowsort label-7485
SELECT - 61 * + - 29 * - - 77 * 36 AS col1, SUM ( + COALESCE ( 64, + - 86 ) )
----
4903668
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT SUM( ALL + + 16 ) + - 41 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-7486
SELECT SUM ( ALL + + 16 ) + - 41 AS col2
----
-25

query I rowsort
SELECT DISTINCT 19 * 93 AS col2
----
1767

onlyif mysql # DIV for integer division: 
query I rowsort label-7488
SELECT + 88 DIV - 3 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-7488
SELECT + 88 / - 3 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT ALL 80 * + 67 * + - 92 + - - COALESCE ( + + COUNT( * ), + 62, - 57, + 69 ) * - 79
----
-493199

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL 80 * + 67 * + - 92 + - - COALESCE ( + + COUNT ( * ), + 62, - 57, + 69 ) * - 79
----
-493199

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT - 20 - - ( + 43 ) + + COUNT( - 29 ) - + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-7490
SELECT - 20 - - ( + 43 ) + + COUNT ( - 29 ) - + COUNT ( * )
----
23

query I rowsort
SELECT 42 + 22
----
64

query I rowsort
SELECT ALL + NULLIF ( + + ( + CASE WHEN NULL IS NOT NULL THEN 72 END ), + 76 ) / + 53
----
NULL

query II rowsort
SELECT + 62 AS col1, + 55 * + 72 * - - 13 AS col1
----
62
51480

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT 73 + + CASE 23 WHEN - 52 * + + 34 THEN NULL ELSE + - CASE - - 28 WHEN 10 * - - 46 - 14 THEN - 16 END END + MIN( + 12 ) * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT 73 + + CASE 23 WHEN - 52 * + + 34 THEN NULL ELSE + - CASE - - 28 WHEN 10 * - - 46 - 14 THEN - 16 END END + MIN ( + 12 ) * 14
----
NULL

query I rowsort
SELECT + 84 * 35 + + 69 AS col1
----
3009

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT DISTINCT - CASE + 87 WHEN + 51 THEN NULL WHEN 13 THEN 69 / + ( + ( - COUNT( * ) ) ) + + - 91 + - ( COUNT( * ) ) + - COALESCE ( COUNT( * ), COALESCE ( 9, COUNT( * ) + - 93 * - 7 ), 97 ) * + 79 / - 88 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT - CASE + 87 WHEN + 51 THEN NULL WHEN 13 THEN 69 / + ( + ( - COUNT ( * ) ) ) + + - 91 + - ( COUNT ( * ) ) + - COALESCE ( COUNT ( * ), COALESCE ( 9, COUNT ( * ) + - 93 * - 7 ), 97 ) * + 79 / - 88 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT 48 * + - 3 + - + MAX( + 69 )
----
-213

skipif mysql # not compatible
query I rowsort label-7497
SELECT 48 * + - 3 + - + MAX ( + 69 )
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT - MIN( + + 89 ) * + 30 col2
----
-2670

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT - MIN ( + + 89 ) * + 30 col2
----
-2670

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT 11 * - - COUNT( * ) * 77
----
847

skipif mysql # not compatible
query I rowsort label-7499
SELECT 11 * - - COUNT ( * ) * 77
----
847

query I rowsort
SELECT 18 + 35 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT - COUNT( * ) * 66 + + + 47
----
-19

skipif mysql # not compatible
query I rowsort label-7501
SELECT - COUNT ( * ) * 66 + + + 47
----
-19

query II rowsort
SELECT ALL - ( - ( - 63 ) ), + 37 + + ( + COALESCE ( 84, + 97 ) ) AS col0
----
-63
121

onlyif mysql # DIV for integer division: 
query I rowsort label-7503
SELECT 1 DIV 75 * + 26
----
0

skipif mysql # not compatible
query I rowsort label-7503
SELECT 1 / 75 * + 26
----
0

query II rowsort
SELECT 86 * + - 14 + 81 AS col0, + 83 col0
----
-1123
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT DISTINCT - SUM( 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-7505
SELECT DISTINCT - SUM ( 19 )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7506
SELECT 27 DIV 65 col0
----
0

skipif mysql # not compatible
query I rowsort label-7506
SELECT 27 / 65 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7507
SELECT ( + 59 ) * + 77 AS col2, + 17 DIV SUM( - COALESCE ( - + 92, 91 ) ) col1
----
4543
0

skipif mysql # not compatible
query II rowsort label-7507
SELECT ( + 59 ) * + 77 AS col2, + 17 / SUM ( - COALESCE ( - + 92, 91 ) ) col1
----
4543
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7509
SELECT DISTINCT - 70 * - CAST( - COUNT( - + 91 ) AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT - 70 * - CAST ( - COUNT ( - + 91 ) AS INTEGER )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7510
SELECT ALL + 59 DIV + 23 + + 41 + COUNT( * ) + - - 74 * + 82 * 91 + + COUNT( ALL + 39 ) * - + 34
----
552198

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL + 59 / + 23 + + 41 + COUNT ( * ) + - - 74 * + 82 * 91 + + COUNT ( ALL + 39 ) * - + 34
----
552198

query I rowsort
SELECT - 79 * + ( - 70 ) + + 13
----
5543

query I rowsort
SELECT ALL + 37 * 4
----
148

query I rowsort
SELECT ALL 23 * + + 37
----
851

onlyif mysql # DIV for integer division: 
query I rowsort label-7514
SELECT ALL - 67 + + 87 + 83 + - 41 DIV + - 29
----
104

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL - 67 + + 87 + 83 + - 41 / + - 29
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7515
SELECT ALL + + ( - COALESCE ( + 80, - - 4 ) ) + COUNT( DISTINCT + + 2 ) * 61 DIV - 94 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL + + ( - COALESCE ( + 80, - - 4 ) ) + COUNT ( DISTINCT + + 2 ) * 61 / - 94 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT - + CASE + COUNT( * ) WHEN - 90 * + + 85 + - 86 THEN - 44 END - + COALESCE ( + COUNT( DISTINCT - ( - 12 ) ), NULLIF ( 63, - 2 ) + 16 * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7516
SELECT - + CASE + COUNT ( * ) WHEN - 90 * + + 85 + - 86 THEN - 44 END - + COALESCE ( + COUNT ( DISTINCT - ( - 12 ) ), NULLIF ( 63, - 2 ) + 16 * - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7517
SELECT - - 12 * - + 87 * + 98 AS col2, CAST( NULL AS SIGNED )
----
-102312
NULL

skipif mysql # not compatible
query II rowsort label-7517
SELECT - - 12 * - + 87 * + 98 AS col2, CAST ( NULL AS INTEGER )
----
-102312
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7519
SELECT DISTINCT + NULLIF ( 66, - 33 ) AS col1, + CAST( NULL AS SIGNED )
----
66
NULL

skipif mysql # not compatible
query II rowsort label-7519
SELECT DISTINCT + NULLIF ( 66, - 33 ) AS col1, + CAST ( NULL AS INTEGER )
----
66
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7520
SELECT DISTINCT COALESCE ( - - COALESCE ( + 24, + + CAST( NULL AS SIGNED ) + 35, - + 61 * + 84 - - MAX( DISTINCT + NULLIF ( + 91, + 6 ) ), - 27 * - 6, CAST( 23 AS SIGNED ) ), + ( - ( COUNT( * ) ) ) * 80 + + 95 ) - - 99 * - 72
----
-7104

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT COALESCE ( - - COALESCE ( + 24, + + CAST ( NULL AS INTEGER ) + 35, - + 61 * + 84 - - MAX ( DISTINCT + NULLIF ( + 91, + 6 ) ), - 27 * - 6, CAST ( 23 AS INTEGER ) ), + ( - ( COUNT ( * ) ) ) * 80 + + 95 ) - - 99 * - 72
----
-7104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7521
SELECT DISTINCT - - COUNT( * ) * + 44 * + COALESCE ( - ( - 79 ), - - CAST( NULL AS SIGNED ) + - 66, - COUNT( * ) - - + COALESCE ( - + 86, - 87 * + 20 ) * 78 )
----
3476

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT - - COUNT ( * ) * + 44 * + COALESCE ( - ( - 79 ), - - CAST ( NULL AS INTEGER ) + - 66, - COUNT ( * ) - - + COALESCE ( - + 86, - 87 * + 20 ) * 78 )
----
3476

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL 25 - + + 49 - 63 * + CASE + 13 WHEN + 1 THEN - MIN( 14 ) WHEN + 32 THEN - + 14 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL 25 - + + 49 - 63 * + CASE + 13 WHEN + 1 THEN - MIN ( 14 ) WHEN + 32 THEN - + 14 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT + MIN( DISTINCT - 93 ) * - ( 38 )
----
3534

skipif mysql # not compatible
query I rowsort label-7523
SELECT + MIN ( DISTINCT - 93 ) * - ( 38 )
----
3534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT + - 55 + - - CASE 90 WHEN - - 73 / - MAX( COALESCE ( - CASE + 46 WHEN 24 THEN - - 13 ELSE + 23 END, - 78 / 72 + + 7 * 50 ) ) + 6 * 38 THEN 90 END * MIN( 97 + CAST( + 83 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT + - 55 + - - CASE 90 WHEN - - 73 / - MAX ( COALESCE ( - CASE + 46 WHEN 24 THEN - - 13 ELSE + 23 END, - 78 / 72 + + 7 * 50 ) ) + 6 * 38 THEN 90 END * MIN ( 97 + CAST ( + 83 AS INTEGER ) ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7526
SELECT - + 85 * - + CAST( + - 92 AS SIGNED ) - - COUNT( * ) + - + 85
----
-7904

skipif mysql # not compatible
query I rowsort label-7526
SELECT - + 85 * - + CAST ( + - 92 AS INTEGER ) - - COUNT ( * ) + - + 85
----
-7904

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

skipif mysql # not compatible
query I rowsort label-7527
SELECT - SUM ( ALL 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT - NULLIF ( + SUM( DISTINCT + - 71 ), - 1 + 66 + + + 48 + - COUNT( * ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7528
SELECT - NULLIF ( + SUM ( DISTINCT + - 71 ), - 1 + 66 + + + 48 + - COUNT ( * ) ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT + 59 + + + 28 + 17 + COUNT( * )
----
105

skipif mysql # not compatible
query I rowsort label-7529
SELECT + 59 + + + 28 + 17 + COUNT ( * )
----
105

query I rowsort
SELECT + ( - 70 ) * - + 11
----
770

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

skipif mysql # not compatible
query I rowsort label-7531
SELECT - COUNT ( * ) / - COUNT ( * ) + 64 AS col1
----
65

query I rowsort
SELECT ALL NULLIF ( - - 79, + + 43 ) * + 15 * 75 AS col2
----
88875

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

query I rowsort
SELECT + CASE + 57 WHEN - + 27 THEN NULL WHEN + 67 THEN 55 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL MIN( - ( - 52 ) ) * + 18 + + 18 AS col2
----
954

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL MIN ( - ( - 52 ) ) * + 18 + + 18 AS col2
----
954

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT DISTINCT - 37 * + 62 + + CASE 80 WHEN + 89 THEN + - 85 WHEN - 91 / - 16 * + COUNT( * ) + + COALESCE ( + 50, - 17 ) + + 24 * - 25 THEN + 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT DISTINCT - 37 * + 62 + + CASE 80 WHEN + 89 THEN + - 85 WHEN - 91 / - 16 * + COUNT ( * ) + + COALESCE ( + 50, - 17 ) + + 24 * - 25 THEN + 68 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT CASE MAX( ALL 69 ) WHEN + - MAX( + 44 ) THEN 2 * 86 + 6 + - - COUNT( * ) + 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT CASE MAX ( ALL 69 ) WHEN + - MAX ( + 44 ) THEN 2 * 86 + 6 + - - COUNT ( * ) + 25 END
----
NULL

query I rowsort
SELECT ALL + ( - 96 ) * 12 + - + 71 - - - 63 + - - 53 * 24 * ( + + 63 ) + - 22
----
78828

onlyif mysql # aggregate syntax: 
query II rowsort label-7540
SELECT ALL + MIN( 40 ) AS col0, 89 * + - 90 col2
----
40
-8010

skipif mysql # not compatible
query II rowsort label-7540
SELECT ALL + MIN ( 40 ) AS col0, 89 * + - 90 col2
----
40
-8010

query I rowsort
SELECT + CASE 59 WHEN - 31 THEN - - 89 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7542
SELECT - MIN( ALL + 60 ) DIV 17 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7542
SELECT - MIN ( ALL + 60 ) / 17 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT - COALESCE ( 64, + - COUNT( * ), 60, + COUNT( * ) ) * + 0 - - 44 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7543
SELECT - COALESCE ( 64, + - COUNT ( * ), 60, + COUNT ( * ) ) * + 0 - - 44 AS col1
----
44

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

skipif mysql # not compatible
query I rowsort label-7544
SELECT COALESCE ( - 24, + - COUNT ( * ) ) AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7545
SELECT DISTINCT + CASE - + 34 WHEN + 17 THEN NULL ELSE - 67 * CAST( NULL AS SIGNED ) + - + 94 + + MIN( + - 32 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT + CASE - + 34 WHEN + 17 THEN NULL ELSE - 67 * CAST ( NULL AS INTEGER ) + - + 94 + + MIN ( + - 32 ) END AS col0
----
NULL

query II rowsort
SELECT + 40 * 5 col1, + 72 + + 79 + - NULLIF ( 39, 46 ) AS col2
----
200
112

query II rowsort
SELECT + 1 AS col2, 3
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT CASE + 52 WHEN COUNT( * ) * - 23 * 50 THEN COUNT( * ) WHEN MAX( - - 26 ) * + - 52 + - 96 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT CASE + 52 WHEN COUNT ( * ) * - 23 * 50 THEN COUNT ( * ) WHEN MAX ( - - 26 ) * + - 52 + - 96 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7549
SELECT CASE + 25 WHEN - + 94 + + + 27 THEN - - SUM( + CAST( NULL AS SIGNED ) ) + + 56 / - 54 - 39 WHEN - 38 THEN + - 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT CASE + 25 WHEN - + 94 + + + 27 THEN - - SUM ( + CAST ( NULL AS INTEGER ) ) + + 56 / - 54 - 39 WHEN - 38 THEN + - 28 ELSE NULL END
----
NULL

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

query I rowsort
SELECT ALL 47 * + 77 + + 65
----
3684

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT - + 52 - + + 46 + - CASE + + COUNT( * ) WHEN 0 THEN NULL WHEN + 49 + + 25 THEN - + 55 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7552
SELECT - + 52 - + + 46 + - CASE + + COUNT ( * ) WHEN 0 THEN NULL WHEN + 49 + + 25 THEN - + 55 ELSE NULL END col1
----
NULL

query II rowsort
SELECT ALL + 72, - 85 AS col2
----
72
-85

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

skipif mysql # not compatible
query I rowsort label-7554
SELECT - + 2 / - 58
----
0

query I rowsort
SELECT + + 91 * - 16
----
-1456

query II rowsort
SELECT + - 62 col1, - 96 col1
----
-62
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT - NULLIF ( + - 5, + 27 * - + 16 / 35 - + 39 * NULLIF ( - 51, + COUNT( * ) ) ) - + - 60 + - - 70 + 9 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-7558
SELECT - NULLIF ( + - 5, + 27 * - + 16 / 35 - + 39 * NULLIF ( - 51, + COUNT ( * ) ) ) - + - 60 + - - 70 + 9 AS col1
----
144

query I rowsort
SELECT - 52 * ( + 31 )
----
-1612

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

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL MAX ( - - 3 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT - - 75 DIV - 25 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7561
SELECT - - 75 / - 25 AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7562
SELECT DISTINCT + - SUM( ALL + 28 ) DIV 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT + - SUM ( ALL + 28 ) / 73 AS col0
----
0

query I rowsort
SELECT ALL + 89 * - 8 * 95
----
-67640

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7564
SELECT DISTINCT + COUNT( * ) * - SUM( - NULLIF ( + 18, - - CAST( NULL AS DECIMAL ) * + 74 - + 98 + - COALESCE ( 45, + 90 * 70 / ( - ( 22 ) ) - - 67, + 29 ) - 5 ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT + COUNT ( * ) * - SUM ( - NULLIF ( + 18, - - CAST ( NULL AS REAL ) * + 74 - + 98 + - COALESCE ( 45, + 90 * 70 / ( - ( 22 ) ) - - 67, + 29 ) - 5 ) ) AS col2
----
18

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7566
SELECT + 94 + + COALESCE ( + + COUNT( * ), + 10 * - + 36, - 90 DIV - NULLIF ( - + 46, + 52 + 70 ) + 72 ) + - - 96
----
191

skipif mysql # not compatible
query I rowsort label-7566
SELECT + 94 + + COALESCE ( + + COUNT ( * ), + 10 * - + 36, - 90 / - NULLIF ( - + 46, + 52 + 70 ) + 72 ) + - - 96
----
191

query I rowsort
SELECT + 0 + + 21 * + 12 AS col2
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT ALL + 38 DIV + 69 + + 54 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL + 38 / + 69 + + 54 AS col2
----
54

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

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL CAST ( NULL AS INTEGER ) * - MIN ( - 41 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT + COUNT( * ) + + - 27 * + COALESCE ( 45, - 18 * - 56 + 16 ) + COUNT( * ) * - 31 * + - 74
----
1080

skipif mysql # not compatible
query I rowsort label-7570
SELECT + COUNT ( * ) + + - 27 * + COALESCE ( 45, - 18 * - 56 + 16 ) + COUNT ( * ) * - 31 * + - 74
----
1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7571
SELECT ALL - COUNT( * ) DIV 28 + - 80 * - - 21 * - - 83
----
-139440

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL - COUNT ( * ) / 28 + - 80 * - - 21 * - - 83
----
-139440

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7572
SELECT CAST( + 79 AS SIGNED ) AS col0, 19 * + 53 + + 97 AS col1
----
79
1104

skipif mysql # not compatible
query II rowsort label-7572
SELECT CAST ( + 79 AS INTEGER ) AS col0, 19 * + 53 + + 97 AS col1
----
79
1104

query I rowsort
SELECT ALL 98 * + 13 AS col2
----
1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7574
SELECT CAST( 33 AS SIGNED ), 77 * NULLIF ( - + 88, + COUNT( * ) ) * 19 + + + 96 DIV - + 54 + + 61 DIV - 58 AS col2
----
33
-128746

skipif mysql # not compatible
query II rowsort label-7574
SELECT CAST ( 33 AS INTEGER ), 77 * NULLIF ( - + 88, + COUNT ( * ) ) * 19 + + + 96 / - + 54 + + 61 / - 58 AS col2
----
33
-128746

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7575
SELECT - 0 / 7 / ( + CAST( NULL AS SIGNED ) ) * + + 2 * + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT - 0 / 7 / ( + CAST ( NULL AS INTEGER ) ) * + + 2 * + 16 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT DISTINCT - SUM( 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT - SUM ( 74 ) AS col1
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7578
SELECT DISTINCT - CAST( 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT - CAST ( 23 AS INTEGER )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7579
SELECT ALL + 85 - - + 64 + + - CASE - 68 WHEN - - COUNT( * ) THEN NULL WHEN + ( 44 ) * - 68 + - 35 THEN + - CAST( NULL AS SIGNED ) * SUM( DISTINCT 17 ) + 68 WHEN - 29 THEN NULL END + CAST( ( COUNT( * ) ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL + 85 - - + 64 + + - CASE - 68 WHEN - - COUNT ( * ) THEN NULL WHEN + ( 44 ) * - 68 + - 35 THEN + - CAST ( NULL AS INTEGER ) * SUM ( DISTINCT 17 ) + 68 WHEN - 29 THEN NULL END + CAST ( ( COUNT ( * ) ) AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + 50 * + 50
----
2500

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

skipif mysql # not compatible
query I rowsort label-7581
SELECT + COALESCE ( - COUNT ( * ), - COUNT ( * ) * COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT - + COALESCE ( 38, COUNT( * ) * + 38 - - + 42, 84 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7582
SELECT - + COALESCE ( 38, COUNT ( * ) * + 38 - - + 42, 84 ) AS col2
----
-38

query I rowsort
SELECT ALL + 35 * - 53 * - 2 + - 3
----
3707

onlyif mysql # DIV for integer division: 
query I rowsort label-7584
SELECT ALL 47 * 26 - 49 DIV - 79 AS col1
----
1222

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL 47 * 26 - 49 / - 79 AS col1
----
1222

query I rowsort
SELECT 79 * - + ( - 84 ) * + 63 + + - 27 * + + 40 AS col0
----
416988

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT - ( CASE - - 80 WHEN + + COUNT( * ) THEN + 6 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT - ( CASE - - 80 WHEN + + COUNT ( * ) THEN + 6 END )
----
NULL

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

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

query I rowsort
SELECT - 4 * - - 58 AS col2
----
-232

query I rowsort
SELECT 28 - - 16
----
44

query I rowsort
SELECT 28 + - + 12
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT DISTINCT + 80 + + 91 * + 33 * + + SUM( + 65 ) col1
----
195275

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT + 80 + + 91 * + 33 * + + SUM ( + 65 ) col1
----
195275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7592
SELECT ALL - 53 + + + CASE - 75 WHEN - COUNT( * ) / + AVG ( ALL - - 44 ) + COUNT( * ) + + 14 * + - 97 * 95 + + COUNT( * ) + 48 * + 36 + + 19 THEN - CAST( NULL AS SIGNED ) / + 43 WHEN - 28 * - 36 THEN 73 WHEN 96 THEN + 2 END + 41 / - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL - 53 + + + CASE - 75 WHEN - COUNT ( * ) / + AVG ( ALL - - 44 ) + COUNT ( * ) + + 14 * + - 97 * 95 + + COUNT ( * ) + 48 * + 36 + + 19 THEN - CAST ( NULL AS INTEGER ) / + 43 WHEN - 28 * - 36 THEN 73 WHEN 96 THEN + 2 END + 41 / - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL + MIN( ALL + 85 ) + COALESCE ( 12, - 24 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL + MIN ( ALL + 85 ) + COALESCE ( 12, - 24 ) AS col1
----
97

query I rowsort
SELECT DISTINCT - 8 * - 27 AS col0
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7595
SELECT ALL + CAST( AVG ( - 46 ) AS SIGNED ) + - COALESCE ( - - 23, - - COALESCE ( - ( + 59 ), - ( + 95 ) ) )
----
-69

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL + CAST ( AVG ( - 46 ) AS INTEGER ) + - COALESCE ( - - 23, - - COALESCE ( - ( + 59 ), - ( + 95 ) ) )
----
-69

query I rowsort
SELECT DISTINCT + 81 + + 81
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-7597
SELECT 27 DIV + 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7597
SELECT 27 / + 70 AS col2
----
0

query I rowsort
SELECT 8 * - - 13 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ALL - MIN( - 92 ) * + ( + 23 )
----
2116

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL - MIN ( - 92 ) * + ( + 23 )
----
2116

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

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 69 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7601
SELECT DISTINCT - CASE + CAST( - 63 AS SIGNED ) WHEN + - 6 THEN 59 + 49 WHEN + 77 THEN NULL END + + CAST( COUNT( * ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT - CASE + CAST ( - 63 AS INTEGER ) WHEN + - 6 THEN 59 + 49 WHEN + 77 THEN NULL END + + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 32 AS col2, 39 AS col0
----
32
39

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

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

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

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

query II rowsort
SELECT + 99, + 34 AS col2
----
99
34

query II rowsort
SELECT ALL - 17 AS col0, 35 * + 9
----
-17
315

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT DISTINCT 15 * + - CASE - 64 WHEN + ( + 71 ) THEN + + 43 * - 52 - + + 59 * - 38 - + 49 + COUNT( - 55 ) * - COUNT( * ) * 79 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT 15 * + - CASE - 64 WHEN + ( + 71 ) THEN + + 43 * - 52 - + + 59 * - 38 - + 49 + COUNT ( - 55 ) * - COUNT ( * ) * 79 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT CASE + + CASE - 73 WHEN + 11 THEN NULL ELSE - + COUNT( * ) + - - 51 END WHEN - 15 THEN - - 15 * - - 83 + + 36 + 36 * + + COUNT( * ) * + 14 * 1 END - - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT CASE + + CASE - 73 WHEN + 11 THEN NULL ELSE - + COUNT ( * ) + - - 51 END WHEN - 15 THEN - - 15 * - - 83 + + 36 + 36 * + + COUNT ( * ) * + 14 * 1 END - - 5 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7609
SELECT - 89 * + - 95 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT 74 * 61 - - 88 * - NULLIF ( - 5, + 16 ) * + 71 + + 29 + - - COUNT( * ) - - + CASE + 65 WHEN - 89 * 6 + NULLIF ( 72, - COUNT( * ) ) / 46 + + 2 THEN COALESCE ( - 92, + 11 * 17 ) * 91 END / + 19 + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT 74 * 61 - - 88 * - NULLIF ( - 5, + 16 ) * + 71 + + 29 + - - COUNT ( * ) - - + CASE + 65 WHEN - 89 * 6 + NULLIF ( 72, - COUNT ( * ) ) / 46 + + 2 THEN COALESCE ( - 92, + 11 * 17 ) * 91 END / + 19 + 49 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7611
SELECT + 46 DIV - - 73 + - 25
----
-25

skipif mysql # not compatible
query I rowsort label-7611
SELECT + 46 / - - 73 + - 25
----
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT ALL + NULLIF ( + COUNT( * ), + NULLIF ( + 50, + COUNT( ALL 49 ) * + + 13 ) ) * ( 53 ) + - 47 * - 44
----
2121

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL + NULLIF ( + COUNT ( * ), + NULLIF ( + 50, + COUNT ( ALL 49 ) * + + 13 ) ) * ( 53 ) + - 47 * - 44
----
2121

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

skipif mysql # not compatible
query I rowsort label-7614
SELECT 25 / - COUNT ( * ) AS col1
----
-25

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

query I rowsort
SELECT DISTINCT - 86 * - 43
----
3698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7617
SELECT ALL COALESCE ( + CASE COUNT( * ) WHEN + 52 THEN - - CAST( NULL AS SIGNED ) ELSE NULL END, + COUNT( * ) * + COUNT( CAST( + + 28 AS SIGNED ) ), ( + CASE 26 WHEN 18 THEN NULLIF ( - ( + 1 ), 15 ) END ) * + 9 + COUNT( * ) ) * 7
----
7

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL COALESCE ( + CASE COUNT ( * ) WHEN + 52 THEN - - CAST ( NULL AS INTEGER ) ELSE NULL END, + COUNT ( * ) * + COUNT ( CAST ( + + 28 AS INTEGER ) ), ( + CASE 26 WHEN 18 THEN NULLIF ( - ( + 1 ), 15 ) END ) * + 9 + COUNT ( * ) ) * 7
----
7

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT COUNT( ALL + - 51 ) * - 20 * + - 29 + + - SUM( + ( 67 ) )
----
513

skipif mysql # not compatible
query I rowsort label-7620
SELECT COUNT ( ALL + - 51 ) * - 20 * + - 29 + + - SUM ( + ( 67 ) )
----
513

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7621
SELECT DISTINCT - + 54 AS col0, CAST( + 86 AS SIGNED ) * 73 * + 42 AS col2
----
-54
263676

skipif mysql # not compatible
query II rowsort label-7621
SELECT DISTINCT - + 54 AS col0, CAST ( + 86 AS INTEGER ) * 73 * + 42 AS col2
----
-54
263676

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL CASE 1 WHEN + - 31 THEN - 28 * 98 * + 55 + + COUNT( * ) / - - 67 + 92 + + COUNT( * ) * 20 WHEN + AVG ( 93 ) THEN + 84 * - 77 + ( 95 ) ELSE NULL END + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL CASE 1 WHEN + - 31 THEN - 28 * 98 * + 55 + + COUNT ( * ) / - - 67 + 92 + + COUNT ( * ) * 20 WHEN + AVG ( 93 ) THEN + 84 * - 77 + ( 95 ) ELSE NULL END + + 98
----
NULL

query II rowsort
SELECT 68, + 36 AS col2
----
68
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7624
SELECT + NULLIF ( 48, - + 26 * - + COUNT( * ) * + 41 ) - 72 * + - CAST( NULL AS SIGNED ) * - - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT + NULLIF ( 48, - + 26 * - + COUNT ( * ) * + 41 ) - 72 * + - CAST ( NULL AS INTEGER ) * - - 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT ALL CASE - 40 WHEN + 32 * 74 THEN NULL WHEN + - 91 THEN - 59 * 84 + + - 12 * 80 + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL CASE - 40 WHEN + 32 * 74 THEN NULL WHEN + - 91 THEN - 59 * 84 + + - 12 * 80 + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7626
SELECT CAST( + 54 AS SIGNED ) * 20 + + MIN( ALL 40 ) + 34 + 12 + - CAST( - + 1 AS SIGNED ) + - 69 * - ( 72 ) * + 83 AS col0
----
413511

skipif mysql # not compatible
query I rowsort label-7626
SELECT CAST ( + 54 AS INTEGER ) * 20 + + MIN ( ALL 40 ) + 34 + 12 + - CAST ( - + 1 AS INTEGER ) + - 69 * - ( 72 ) * + 83 AS col0
----
413511

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

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL + CAST ( NULL AS INTEGER ) + 51 + + - 9 AS col2
----
NULL

query I rowsort
SELECT ALL + 85 + 68
----
153

query I rowsort
SELECT DISTINCT 30 + + - ( - 44 ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT ALL - CAST( NULL AS SIGNED ) * - - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 12 AS col2
----
NULL

query I rowsort
SELECT 21 + + 38 AS col0
----
59

query I rowsort
SELECT DISTINCT 23 * - 23 * + 62
----
-32798

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT ALL - COALESCE ( + 85, + 46 * + 78 + + 22 ) * 43 * - COUNT( * ) + + 33
----
3688

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL - COALESCE ( + 85, + 46 * + 78 + + 22 ) * 43 * - COUNT ( * ) + + 33
----
3688

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT 8 + + 6 + - - CASE + - 82 WHEN 83 THEN - - 44 + + NULLIF ( - 91, COUNT( * ) + COUNT( * ) * 46 ) ELSE NULL END + 34 * - + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT 8 + + 6 + - - CASE + - 82 WHEN 83 THEN - - 44 + + NULLIF ( - 91, COUNT ( * ) + COUNT ( * ) * 46 ) ELSE NULL END + 34 * - + 31
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7635
SELECT CAST( NULL AS SIGNED ) + ( - 52 ) + + 19 / 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT CAST ( NULL AS INTEGER ) + ( - 52 ) + + 19 / 71
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7637
SELECT 56 * 63 col0, - 51 + 41 DIV 38 + 65 + - ( - 73 ) AS col1
----
3528
88

skipif mysql # not compatible
query II rowsort label-7637
SELECT 56 * 63 col0, - 51 + 41 / 38 + 65 + - ( - 73 ) AS col1
----
3528
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7638
SELECT ALL 22 * CAST( - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL 22 * CAST ( - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT - COUNT( * ) - 61 * - 76 + 2 + + COUNT( * ) AS col0
----
4638

skipif mysql # not compatible
query I rowsort label-7639
SELECT - COUNT ( * ) - 61 * - 76 + 2 + + COUNT ( * ) AS col0
----
4638

query II rowsort
SELECT ALL - 59 * - 74, 33 AS col2
----
4366
33

query I rowsort
SELECT - 87 + + 39
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT DISTINCT - 50 * + 57 * - + MIN( DISTINCT + + 55 ) AS col0
----
156750

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT - 50 * + 57 * - + MIN ( DISTINCT + + 55 ) AS col0
----
156750

onlyif mysql # DIV for integer division: 
query I rowsort label-7643
SELECT DISTINCT + 78 DIV - 24
----
-3

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT + 78 / - 24
----
-3

query I rowsort
SELECT - 33 * 56
----
-1848

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT 29 * + SUM( - 73 ) + 39 + + - 42 + - + 67
----
-2187

skipif mysql # not compatible
query I rowsort label-7646
SELECT 29 * + SUM ( - 73 ) + 39 + + - 42 + - + 67
----
-2187

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

query I rowsort
SELECT - 23 * - - 20 * + ( 87 ) AS col2
----
-40020

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

query II rowsort
SELECT ALL - + 97 * + - 48 AS col2, 66 * - 6 * - - 15 * + + 0 AS col0
----
4656
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7651
SELECT - 46 + + CAST( + MAX( + 43 ) AS SIGNED ) - - 55 * CASE + 84 WHEN 99 THEN 73 * 85 WHEN + 55 THEN - 51 WHEN - + 69 + 66 + 65 THEN - 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT - 46 + + CAST ( + MAX ( + 43 ) AS INTEGER ) - - 55 * CASE + 84 WHEN 99 THEN 73 * 85 WHEN + 55 THEN - 51 WHEN - + 69 + 66 + 65 THEN - 96 END
----
NULL

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

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

query I rowsort
SELECT - + 18 * + 10 + - + 62 AS col0
----
-242

onlyif mysql # DIV for integer division: 
query I rowsort label-7654
SELECT - COALESCE ( + 68, 12 + + + 67 DIV + - 78 * - 24 - - ( + 84 ) * - 53 * 93 * + - 28 )
----
-68

skipif mysql # not compatible
query I rowsort label-7654
SELECT - COALESCE ( + 68, 12 + + + 67 / + - 78 * - 24 - - ( + 84 ) * - 53 * 93 * + - 28 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7655
SELECT - + 52 * CASE COUNT( * ) WHEN - - CASE 12 WHEN + 66 THEN - 83 ELSE - 41 * 52 END / + 98 - - 48 + 32 + 6 * + + 37 * 25 THEN COUNT( * ) * ( COUNT( CAST( NULL AS SIGNED ) ) ) WHEN CASE 72 WHEN + 34 THEN NULL WHEN + 92 / COUNT( * ) THEN 18 * + 16 + + CAST( NULL AS DECIMAL ) WHEN 32 THEN NULL WHEN - 92 THEN NULL ELSE NULL END THEN NULL WHEN 12 THEN NULL ELSE NULL END - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT - + 52 * CASE COUNT ( * ) WHEN - - CASE 12 WHEN + 66 THEN - 83 ELSE - 41 * 52 END / + 98 - - 48 + 32 + 6 * + + 37 * 25 THEN COUNT ( * ) * ( COUNT ( CAST ( NULL AS INTEGER ) ) ) WHEN CASE 72 WHEN + 34 THEN NULL WHEN + 92 / COUNT ( * ) THEN 18 * + 16 + + CAST ( NULL AS REAL ) WHEN 32 THEN NULL WHEN - 92 THEN NULL ELSE NULL END THEN NULL WHEN 12 THEN NULL ELSE NULL END - 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7656
SELECT ALL 65 * 77 AS col1, - COUNT( * ) AS col1
----
5005
-1

skipif mysql # not compatible
query II rowsort label-7656
SELECT ALL 65 * 77 AS col1, - COUNT ( * ) AS col1
----
5005
-1

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

query I rowsort
SELECT DISTINCT - + 24 * - 83 + + - 95
----
1897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7659
SELECT ALL 53 + - + CAST( - 49 AS SIGNED ) AS col2
----
102

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL 53 + - + CAST ( - 49 AS INTEGER ) AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT DISTINCT COUNT( * ) * 71 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT COUNT ( * ) * 71 AS col2
----
71

query I rowsort
SELECT DISTINCT 83 + + ( - 29 ) * + 21
----
-526

query I rowsort
SELECT - 47 * + 68 AS col2
----
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7663
SELECT + 23 - + 49 DIV - COALESCE ( - - CASE + AVG ( DISTINCT + + 5 ) WHEN + - 53 * CAST( + 67 AS SIGNED ) + + + 99 THEN + ( 40 ) + + 79 * - - 82 + + 56 - + COUNT( ALL + 31 ) DIV - 20 * + 54 END, 51 + + 46 )
----
23

skipif mysql # not compatible
query I rowsort label-7663
SELECT + 23 - + 49 / - COALESCE ( - - CASE + AVG ( DISTINCT + + 5 ) WHEN + - 53 * CAST ( + 67 AS INTEGER ) + + + 99 THEN + ( 40 ) + + 79 * - - 82 + + 56 - + COUNT ( ALL + 31 ) / - 20 * + 54 END, 51 + + 46 )
----
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT + 99 - - COUNT( * ) + 50 AS col1
----
150

skipif mysql # not compatible
query I rowsort label-7665
SELECT + 99 - - COUNT ( * ) + 50 AS col1
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7666
SELECT - COALESCE ( - 36, - 75 ) DIV COUNT( * ) - - 51
----
87

skipif mysql # not compatible
query I rowsort label-7666
SELECT - COALESCE ( - 36, - 75 ) / COUNT ( * ) - - 51
----
87

query II rowsort
SELECT ALL 77 AS col0, 58 col2
----
77
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7668
SELECT ALL 82 - COALESCE ( - 68, + - 96 + - 15 + - - NULLIF ( + 3, MAX( ( 86 ) ) ), - - COUNT( + 25 ) * - 24 - - CAST( 71 AS SIGNED ) * - 35 ) + + 57
----
207

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL 82 - COALESCE ( - 68, + - 96 + - 15 + - - NULLIF ( + 3, MAX ( ( 86 ) ) ), - - COUNT ( + 25 ) * - 24 - - CAST ( 71 AS INTEGER ) * - 35 ) + + 57
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT ALL + 36 - - SUM( + 55 )
----
91

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL + 36 - - SUM ( + 55 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7670
SELECT + 46 - - CAST( + COALESCE ( + 12, CAST( 58 AS SIGNED ) * + 82, - ( - 20 ) ) AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-7670
SELECT + 46 - - CAST ( + COALESCE ( + 12, CAST ( 58 AS INTEGER ) * + 82, - ( - 20 ) ) AS INTEGER )
----
58

query I rowsort
SELECT ALL - 64 * + + 94
----
-6016

query I rowsort
SELECT DISTINCT 4 * + 64 AS col0
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT + 10 + + ( - 92 ) + MIN( - 38 ) * + COUNT( ALL - + 30 ) * 8 + 45 AS col1
----
-341

skipif mysql # not compatible
query I rowsort label-7673
SELECT + 10 + + ( - 92 ) + MIN ( - 38 ) * + COUNT ( ALL - + 30 ) * 8 + 45 AS col1
----
-341

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

skipif mysql # not compatible
query I rowsort label-7674
SELECT + COUNT ( * ) * - 0 / 40 AS col2
----
0

query II rowsort
SELECT 24, - 97 * + ( 64 ) AS col2
----
24
-6208

query I rowsort
SELECT DISTINCT ( 40 ) * - - 49 AS col2
----
1960

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7678
SELECT DISTINCT - + 63 DIV - 59 + 9, + 85 * + 20 * 67 col0
----
10
113900

skipif mysql # not compatible
query II rowsort label-7678
SELECT DISTINCT - + 63 / - 59 + 9, + 85 * + 20 * 67 col0
----
10
113900

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

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

query I rowsort
SELECT - - 42 * + 51 AS col0
----
2142

query I rowsort
SELECT + + 57 * + 52 - - ( - 74 ) AS col2
----
2890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7682
SELECT + 71, - CAST( - 16 AS SIGNED ) * - ( - 73 ) * + 69 + - CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
71
80591

skipif mysql # not compatible
query II rowsort label-7682
SELECT + 71, - CAST ( - 16 AS INTEGER ) * - ( - 73 ) * + 69 + - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
71
80591

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT - COALESCE ( NULLIF ( - 47, - MAX( 89 ) ), + + 92 ) + 1 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7683
SELECT - COALESCE ( NULLIF ( - 47, - MAX ( 89 ) ), + + 92 ) + 1 AS col1
----
48

query II rowsort
SELECT - 80 * + 14 - 27, 41 + 44 * - 33 AS col0
----
-1147
-1411

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT - 23 * + MIN( + 13 )
----
-299

skipif mysql # not compatible
query I rowsort label-7685
SELECT - 23 * + MIN ( + 13 )
----
-299

query I rowsort
SELECT DISTINCT + COALESCE ( - 51, - + 33 ) AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7687
SELECT ALL + - 80 * + SUM( ALL + 73 ) * + - 68 + + 11 * - 1 DIV + - 30 + - + 13 + - 97 * + 47 * + 63 * - 41 - + - 42 * - 93 - 81
----
12169017

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL + - 80 * + SUM ( ALL + 73 ) * + - 68 + + 11 * - 1 / + - 30 + - + 13 + - 97 * + 47 * + 63 * - 41 - + - 42 * - 93 - 81
----
12169017

query II rowsort
SELECT ALL + + 16, 5 AS col1
----
16
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT ALL + 52 * 51 * - MIN( 88 ) + - SUM( ALL - + 20 ) + 13 - - + 29 * + ( + 89 ) * + - 42 + - 32 * + - 90 * 63 * + 3
----
202575

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL + 52 * 51 * - MIN ( 88 ) + - SUM ( ALL - + 20 ) + 13 - - + 29 * + ( + 89 ) * + - 42 + - 32 * + - 90 * 63 * + 3
----
202575

onlyif mysql # aggregate syntax: 
query II rowsort label-7690
SELECT + 78 AS col0, MAX( 17 ) * - 84
----
78
-1428

skipif mysql # not compatible
query II rowsort label-7690
SELECT + 78 AS col0, MAX ( 17 ) * - 84
----
78
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT - 36 + + 98 + + 46 * COUNT( * ) * - 25
----
-1088

skipif mysql # not compatible
query I rowsort label-7691
SELECT - 36 + + 98 + + 46 * COUNT ( * ) * - 25
----
-1088

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

query I rowsort
SELECT NULLIF ( - 99, - ( - + 79 ) * - 21 * 4 )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7694
SELECT + COUNT( * ) * - 84 DIV ( - - COALESCE ( - 48, 7 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7694
SELECT + COUNT ( * ) * - 84 / ( - - COALESCE ( - 48, 7 ) )
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7696
SELECT + 6 - - 37, 27 * - + COUNT( - CAST( NULL AS SIGNED ) ) AS col2
----
43
0

skipif mysql # not compatible
query II rowsort label-7696
SELECT + 6 - - 37, 27 * - + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2
----
43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT DISTINCT ( - + 42 ) * - + ( - 57 ) * - COUNT( * )
----
2394

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT ( - + 42 ) * - + ( - 57 ) * - COUNT ( * )
----
2394

query I rowsort
SELECT - 76 + - + 22
----
-98

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

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

query I rowsort
SELECT ALL 5 * + 95 AS col1
----
475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7701
SELECT 46 + + + COUNT( CAST( - + 87 AS SIGNED ) ) * 91 + + 8 AS col2
----
145

skipif mysql # not compatible
query I rowsort label-7701
SELECT 46 + + + COUNT ( CAST ( - + 87 AS INTEGER ) ) * 91 + + 8 AS col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT + MIN( DISTINCT ( + - 3 ) ) * - 38
----
114

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT + MIN ( DISTINCT ( + - 3 ) ) * - 38
----
114

query I rowsort
SELECT 65 + - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT 36 * 6 * - MAX( DISTINCT - + COALESCE ( 1, + 54 ) ) AS col0
----
216

skipif mysql # not compatible
query I rowsort label-7704
SELECT 36 * 6 * - MAX ( DISTINCT - + COALESCE ( 1, + 54 ) ) AS col0
----
216

onlyif mysql # aggregate syntax: 
query II rowsort label-7705
SELECT 77, MIN( ALL + 5 ) AS col1
----
77
5

skipif mysql # not compatible
query II rowsort label-7705
SELECT 77, MIN ( ALL + 5 ) AS col1
----
77
5

query I rowsort
SELECT 42 + 9
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7707
SELECT DISTINCT 46, MIN( ALL - 41 ) - - COUNT( * ) AS col0
----
46
-40

skipif mysql # not compatible
query II rowsort label-7707
SELECT DISTINCT 46, MIN ( ALL - 41 ) - - COUNT ( * ) AS col0
----
46
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-7708
SELECT ALL 22 DIV - ( 76 )
----
0

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL 22 / - ( 76 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT CASE 36 WHEN - ( + 33 ) THEN - 65 WHEN 40 + 54 + - + 9 * + 21 THEN NULL WHEN + 7 THEN COUNT( * ) WHEN - 89 THEN NULL END + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT CASE 36 WHEN - ( + 33 ) THEN - 65 WHEN 40 + 54 + - + 9 * + 21 THEN NULL WHEN + 7 THEN COUNT ( * ) WHEN - 89 THEN NULL END + - 31
----
NULL

query II rowsort
SELECT DISTINCT 5, - 33 * - 41 AS col0
----
5
1353

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7714
SELECT ALL + 36 AS col1, 54 * - SUM( 51 ) + + NULLIF ( + 10, 96 ) * + 25 * ( 14 ) * + 67
----
36
231746

skipif mysql # not compatible
query II rowsort label-7714
SELECT ALL + 36 AS col1, 54 * - SUM ( 51 ) + + NULLIF ( + 10, 96 ) * + 25 * ( 14 ) * + 67
----
36
231746

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7717
SELECT + 51 DIV + 29 + + + 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7717
SELECT + 51 / + 29 + + + 37 AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7718
SELECT MAX( 97 ) DIV 97 + - 36
----
-35

skipif mysql # not compatible
query I rowsort label-7718
SELECT MAX ( 97 ) / 97 + - 36
----
-35

query II rowsort
SELECT - 27 AS col2, - 25
----
-27
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7720
SELECT - 81 + + - 73 + CAST( NULL AS DECIMAL ) - - 70 * 90 / + + 17 * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT - 81 + + - 73 + CAST ( NULL AS REAL ) - - 70 * 90 / + + 17 * + 79
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7721
SELECT - COUNT( * ) DIV 10 - + ( + 91 ) * 33
----
-3003

skipif mysql # not compatible
query I rowsort label-7721
SELECT - COUNT ( * ) / 10 - + ( + 91 ) * 33
----
-3003

query I rowsort
SELECT DISTINCT + 74 * - 39 AS col2
----
-2886

query I rowsort
SELECT + 64 + 91
----
155

query I rowsort
SELECT ALL + + 55 + 19
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT + 17 * NULLIF ( 92, + 57 ) DIV + 97 + 74 + 59
----
149

skipif mysql # not compatible
query I rowsort label-7725
SELECT + 17 * NULLIF ( 92, + 57 ) / + 97 + 74 + 59
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-7726
SELECT DISTINCT - 69 AS col1, MAX( ALL 30 ) * - - NULLIF ( + - 33, 37 * 34 ) * 62 AS col2
----
-69
-61380

skipif mysql # not compatible
query II rowsort label-7726
SELECT DISTINCT - 69 AS col1, MAX ( ALL 30 ) * - - NULLIF ( + - 33, 37 * 34 ) * 62 AS col2
----
-69
-61380

query I rowsort
SELECT ALL - 50 + - 75 * + + 54 AS col2
----
-4100

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7729
SELECT ALL - NULLIF ( CAST( + CAST( - - 89 AS DECIMAL ) AS SIGNED ), + COUNT( * ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL - NULLIF ( CAST ( + CAST ( - - 89 AS REAL ) AS INTEGER ), + COUNT ( * ) ) AS col2
----
-89

query I rowsort
SELECT ALL + 59 * + - 10 * - 21 AS col2
----
12390

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT DISTINCT - - 13 / - + CASE 79 WHEN + 85 THEN 68 WHEN ( + 94 ) THEN ( SUM( + 64 ) ) WHEN + COALESCE ( COUNT( * ), 49 ) THEN 6 + + 46 END / + - 81 * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT - - 13 / - + CASE 79 WHEN + 85 THEN 68 WHEN ( + 94 ) THEN ( SUM ( + 64 ) ) WHEN + COALESCE ( COUNT ( * ), 49 ) THEN 6 + + 46 END / + - 81 * + 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7733
SELECT 11 AS col0, + COUNT( * ) * 80 * + 37 * + 1 * 54 * - - 99 - - 18 AS col1
----
11
15824178

skipif mysql # not compatible
query II rowsort label-7733
SELECT 11 AS col0, + COUNT ( * ) * 80 * + 37 * + 1 * 54 * - - 99 - - 18 AS col1
----
11
15824178

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT 11 DIV 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7734
SELECT 11 / 65 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7735
SELECT 46 DIV - 63 col2, - 95 - + - 4 DIV + COUNT( * )
----
0
-91

skipif mysql # not compatible
query II rowsort label-7735
SELECT 46 / - 63 col2, - 95 - + - 4 / + COUNT ( * )
----
0
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT ALL - SUM( + + 1 ) * 71 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL - SUM ( + + 1 ) * 71 AS col1
----
-71

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

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

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

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

query I rowsort
SELECT ALL - 36 - + - 28 + + + 21
----
13

query II rowsort
SELECT ALL - ( + 82 ) AS col0, - 17 * + 54
----
-82
-918

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7742
SELECT 62 + - 66 + + 17 + - - 76 - 63 + + + 51 * - 21 * + - COUNT( * ) * 15 + + + 87 * + - 38 - - 95, + 91 AS col2
----
12880
91

skipif mysql # not compatible
query II rowsort label-7742
SELECT 62 + - 66 + + 17 + - - 76 - 63 + + + 51 * - 21 * + - COUNT ( * ) * 15 + + + 87 * + - 38 - - 95, + 91 AS col2
----
12880
91

query I rowsort
SELECT 42 * - + ( - + 62 ) AS col1
----
2604

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

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

query I rowsort
SELECT 55 - 92 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7746
SELECT ALL COUNT( * ) + + - 68, 20 AS col1
----
-67
20

skipif mysql # not compatible
query II rowsort label-7746
SELECT ALL COUNT ( * ) + + - 68, 20 AS col1
----
-67
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7747
SELECT DISTINCT - 56 DIV - SUM( DISTINCT - 59 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT - 56 / - SUM ( DISTINCT - 59 ) AS col0
----
0

query I rowsort
SELECT 77 + + 52
----
129

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

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL COUNT ( * ) + 24 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT ALL - 70 + + + 31 + + COUNT( - 65 ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL - 70 + + + 31 + + COUNT ( - 65 ) col1
----
-38

query I rowsort
SELECT 37 * 52 * 19 * + + 74
----
2705144

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7753
SELECT + 65 DIV + 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7753
SELECT + 65 / + 71 AS col1
----
0

query I rowsort
SELECT 14 + + ( - 26 ) AS col0
----
-12

query I rowsort
SELECT COALESCE ( - 0, - 46 * - + 86 ) * 91 + 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT + NULLIF ( + COUNT( * ), - - 20 / - 90 * - 64 + - + 84 ) + + 32 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7756
SELECT + NULLIF ( + COUNT ( * ), - - 20 / - 90 * - 64 + - + 84 ) + + 32 AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7757
SELECT ALL - 12 * + 48 - + 81 / + 22 * - ( - CAST( NULL AS SIGNED ) ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL - 12 * + 48 - + 81 / + 22 * - ( - CAST ( NULL AS INTEGER ) ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT ALL - MAX( DISTINCT - 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL - MAX ( DISTINCT - 8 ) AS col2
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT - 14 * - CASE + 48 WHEN + 54 THEN + COALESCE ( - 95, COUNT( 29 ) ) WHEN - 16 + + - 12 - 13 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT - 14 * - CASE + 48 WHEN + 54 THEN + COALESCE ( - 95, COUNT ( 29 ) ) WHEN - 16 + + - 12 - 13 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7761
SELECT 63 * - + NULLIF ( COUNT( * ), - 89 + - - COUNT( * ) * + 65 ) * - CAST( + MIN( DISTINCT + + 19 ) AS SIGNED )
----
1197

skipif mysql # not compatible
query I rowsort label-7761
SELECT 63 * - + NULLIF ( COUNT ( * ), - 89 + - - COUNT ( * ) * + 65 ) * - CAST ( + MIN ( DISTINCT + + 19 ) AS INTEGER )
----
1197

query II rowsort
SELECT DISTINCT - 2 * 11 AS col1, 94 AS col1
----
-22
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT - + 11 * - - 11 + 74 + + - 1 * - CAST( 85 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-7763
SELECT - + 11 * - - 11 + 74 + + - 1 * - CAST ( 85 AS INTEGER )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT 11 + - + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7764
SELECT 11 + - + COUNT ( * ) AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7765
SELECT DISTINCT - 59 AS col1, - CAST( NULL AS SIGNED ) AS col0
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-7765
SELECT DISTINCT - 59 AS col1, - CAST ( NULL AS INTEGER ) AS col0
----
-59
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7766
SELECT ALL - 32 DIV 50 DIV - 81, + 22 AS col0
----
0
22

skipif mysql # not compatible
query II rowsort label-7766
SELECT ALL - 32 / 50 / - 81, + 22 AS col0
----
0
22

query I rowsort
SELECT ALL + NULLIF ( 11, - 97 / + AVG ( DISTINCT + - 75 ) )
----
11

query II rowsort
SELECT + 25 * 61 + - 95 AS col2, + 47 AS col1
----
1430
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT SUM( - 84 ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-7769
SELECT SUM ( - 84 ) col1
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7770
SELECT - 23 + - MAX( ALL 95 ) + + 81 DIV + 73
----
-117

skipif mysql # not compatible
query I rowsort label-7770
SELECT - 23 + - MAX ( ALL 95 ) + + 81 / + 73
----
-117

query I rowsort
SELECT + 34 + - 55 AS col1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7772
SELECT - 40 DIV + - 36 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7772
SELECT - 40 / + - 36 AS col2
----
1

query I rowsort
SELECT ALL - 32 * - - ( 89 )
----
-2848

query I rowsort
SELECT + NULLIF ( 98, + - 71 / + NULLIF ( + 26, + 30 ) * - 92 * + 8 ) * 45 AS col0
----
4410

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7775
SELECT CAST( NULL AS DECIMAL ) * - 88 - 47 + - 78 - + - 50 * 90 AS col0, 36 DIV - COUNT( * )
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-7775
SELECT CAST ( NULL AS REAL ) * - 88 - 47 + - 78 - + - 50 * 90 AS col0, 36 / - COUNT ( * )
----
NULL
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT DISTINCT NULLIF ( - 59, MIN( ALL - 84 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-7776
SELECT DISTINCT NULLIF ( - 59, MIN ( ALL - 84 ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT DISTINCT 45 + - MAX( 31 ) col2
----
14

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT 45 + - MAX ( 31 ) col2
----
14

query I rowsort
SELECT ALL CASE + 82 WHEN - 31 + + + 48 * 52 THEN + 30 END
----
NULL

query I rowsort
SELECT DISTINCT - 15 + 19 AS col0
----
4

query II rowsort
SELECT - + 6 AS col0, - 60
----
-6
-60

query II rowsort
SELECT DISTINCT - 58 + 77 * - 61, ( 76 ) + + + 23 AS col1
----
-4755
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7782
SELECT - 76 + - 48 DIV + 49 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-7782
SELECT - 76 + - 48 / + 49 AS col2
----
-76

query I rowsort
SELECT ALL - 25 * - 23 * + 96 AS col0
----
55200

query I rowsort
SELECT - 90 * 79
----
-7110

onlyif mysql # DIV for integer division: 
query I rowsort label-7785
SELECT ALL - 14 DIV - - 85
----
0

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL - 14 / - - 85
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7786
SELECT DISTINCT CASE 6 WHEN + + 30 THEN - 49 WHEN + - 21 THEN NULL ELSE 2 DIV + ( - 66 ) * + ( + 84 ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT CASE 6 WHEN + + 30 THEN - 49 WHEN + - 21 THEN NULL ELSE 2 / + ( - 66 ) * + ( + 84 ) END AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7787
SELECT - - 28 + + 3 DIV COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-7787
SELECT - - 28 + + 3 / COUNT ( * )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7788
SELECT ALL + CAST( NULL AS SIGNED ) - COALESCE ( 13, + ( + COUNT( * ) ) ) + + + COUNT( * ), - MAX( DISTINCT - + 19 ) AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-7788
SELECT ALL + CAST ( NULL AS INTEGER ) - COALESCE ( 13, + ( + COUNT ( * ) ) ) + + + COUNT ( * ), - MAX ( DISTINCT - + 19 ) AS col0
----
NULL
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL - 64 * MIN( + 21 ) + + 72
----
-1272

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL - 64 * MIN ( + 21 ) + + 72
----
-1272

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT - 56 * - 35 * MIN( - 64 )
----
-125440

skipif mysql # not compatible
query I rowsort label-7790
SELECT - 56 * - 35 * MIN ( - 64 )
----
-125440

query I rowsort
SELECT - + ( ( + - 72 ) ) + - 2 * + 48 AS col0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7792
SELECT + + 37 DIV - - 75
----
0

skipif mysql # not compatible
query I rowsort label-7792
SELECT + + 37 / - - 75
----
0

query II rowsort
SELECT DISTINCT + - 5, + 12 + ( 4 ) AS col1
----
-5
16

query I rowsort
SELECT - - 67 + + ( + 37 ) col0
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT - - ( 56 ) DIV 95 * - ( + - 94 ) * 64 + 99 col2
----
99

skipif mysql # not compatible
query I rowsort label-7795
SELECT - - ( 56 ) / 95 * - ( + - 94 ) * 64 + 99 col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7796
SELECT + + NULLIF ( - ( + 79 ), - ( + COUNT( ALL + 49 ) ) ) DIV + COUNT( * ) - - 18
----
-61

skipif mysql # not compatible
query I rowsort label-7796
SELECT + + NULLIF ( - ( + 79 ), - ( + COUNT ( ALL + 49 ) ) ) / + COUNT ( * ) - - 18
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7797
SELECT - + CAST( + 0 AS SIGNED ) * - - COALESCE ( - 42, 13 )
----
0

skipif mysql # not compatible
query I rowsort label-7797
SELECT - + CAST ( + 0 AS INTEGER ) * - - COALESCE ( - 42, 13 )
----
0

query I rowsort
SELECT + 62 + - + 48
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7799
SELECT ALL 32 DIV + - 5 + 42
----
36

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL 32 / + - 5 + 42
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7800
SELECT COUNT( * ) DIV ( 84 ) + 45 AS col2, COUNT( * )
----
45
1

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

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

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

query I rowsort
SELECT ALL 41 * - 35
----
-1435

query I rowsort
SELECT + 64 * + 6 * - 31
----
-11904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7804
SELECT + 59 * 37 + + + 99 + COALESCE ( - - COUNT( * ), + 78 * - CAST( + 16 AS SIGNED ) ) + + 14
----
2297

skipif mysql # not compatible
query I rowsort label-7804
SELECT + 59 * 37 + + + 99 + COALESCE ( - - COUNT ( * ), + 78 * - CAST ( + 16 AS INTEGER ) ) + + 14
----
2297

query I rowsort
SELECT CASE + + 92 WHEN + 10 THEN - - 70 * + 35 END
----
NULL

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

query I rowsort
SELECT + 28 * - 48 AS col1
----
-1344

query I rowsort
SELECT ALL - 82 * 65 + + 78 AS col1
----
-5252

query I rowsort
SELECT ALL 64 * 3 + 69
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT DISTINCT 89 * - - 92 + + 94 * CAST( NULL AS SIGNED ) / 56 * + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT 89 * - - 92 + + 94 * CAST ( NULL AS INTEGER ) / 56 * + - 7
----
NULL

query I rowsort
SELECT ALL + 54 * 30 + - - 40 * + 60 + - 57
----
3963

query I rowsort
SELECT + - 15 - 63 * - + 13 col0
----
804

onlyif mysql # aggregate syntax: 
query II rowsort label-7813
SELECT - COUNT( * ) * - 79 AS col2, 91 AS col2
----
79
91

skipif mysql # not compatible
query II rowsort label-7813
SELECT - COUNT ( * ) * - 79 AS col2, 91 AS col2
----
79
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT DISTINCT + MAX( + - ( - 67 ) ) - 13 col1
----
54

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT + MAX ( + - ( - 67 ) ) - 13 col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7815
SELECT ALL - COALESCE ( + - 19, + - 6, - 82 ) * - 8 AS col2, - MIN( DISTINCT + 75 ) * + COALESCE ( + 10, + 14, - 26 ) * - 79
----
-152
59250

skipif mysql # not compatible
query II rowsort label-7815
SELECT ALL - COALESCE ( + - 19, + - 6, - 82 ) * - 8 AS col2, - MIN ( DISTINCT + 75 ) * + COALESCE ( + 10, + 14, - 26 ) * - 79
----
-152
59250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7816
SELECT - MIN( ALL - CAST( + ( - 62 ) AS SIGNED ) ) * + - CASE - SUM( 47 ) WHEN + + CASE - MIN( ALL 50 ) WHEN - ( - CAST( NULL AS SIGNED ) ) THEN + - 67 * - AVG ( - - 13 ) - + ( - + 83 ) WHEN 95 + - 44 THEN - AVG ( 73 ) ELSE 96 END - SUM( DISTINCT + 77 + CAST( NULL AS SIGNED ) ) THEN - 74 + 27 WHEN - 47 THEN + CAST( 17 AS SIGNED ) * + ( - ( - 91 ) ) ELSE COUNT( * ) END
----
95914

skipif mysql # not compatible
query I rowsort label-7816
SELECT - MIN ( ALL - CAST ( + ( - 62 ) AS INTEGER ) ) * + - CASE - SUM ( 47 ) WHEN + + CASE - MIN ( ALL 50 ) WHEN - ( - CAST ( NULL AS INTEGER ) ) THEN + - 67 * - AVG ( - - 13 ) - + ( - + 83 ) WHEN 95 + - 44 THEN - AVG ( 73 ) ELSE 96 END - SUM ( DISTINCT + 77 + CAST ( NULL AS INTEGER ) ) THEN - 74 + 27 WHEN - 47 THEN + CAST ( 17 AS INTEGER ) * + ( - ( - 91 ) ) ELSE COUNT ( * ) END
----
95914

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7818
SELECT ALL COUNT( DISTINCT + 22 ), 82 * COUNT( * ) AS col2
----
1
82

skipif mysql # not compatible
query II rowsort label-7818
SELECT ALL COUNT ( DISTINCT + 22 ), 82 * COUNT ( * ) AS col2
----
1
82

query I rowsort
SELECT - + 7 * - - 47 * - 83 * 73
----
1993411

query I rowsort
SELECT ALL - + 93 * 15 AS col2
----
-1395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7821
SELECT 95 * - + MAX( + 50 ) - + + 74 - - 28 DIV - 69 + - + 84 AS col1
----
-4908

skipif mysql # not compatible
query I rowsort label-7821
SELECT 95 * - + MAX ( + 50 ) - + + 74 - - 28 / - 69 + - + 84 AS col1
----
-4908

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT DISTINCT + 19 * ( COUNT( * ) ) col1
----
19

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT + 19 * ( COUNT ( * ) ) col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7823
SELECT DISTINCT + - 26 DIV + 95 + - - 56
----
56

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT + - 26 / + 95 + - - 56
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT 56 * ( SUM( ALL + 39 ) )
----
2184

skipif mysql # not compatible
query I rowsort label-7824
SELECT 56 * ( SUM ( ALL + 39 ) )
----
2184

query I rowsort
SELECT DISTINCT + ( + 77 ) + - 39 + + 28
----
66

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

query I rowsort
SELECT CASE - 40 WHEN 56 + - 57 THEN 18 END * - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT 55 + - COUNT( DISTINCT - 71 ) + - NULLIF ( + 80, - + NULLIF ( - 21, + 37 ) ) - - - CASE + COUNT( * ) WHEN 50 THEN - 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7828
SELECT 55 + - COUNT ( DISTINCT - 71 ) + - NULLIF ( + 80, - + NULLIF ( - 21, + 37 ) ) - - - CASE + COUNT ( * ) WHEN 50 THEN - 34 END AS col1
----
NULL

query I rowsort
SELECT ALL 99 + + 67 AS col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT + COUNT( * ) * + 18 + + 68 + + ( - - 89 ) + + 53 * + 15 AS col2
----
970

skipif mysql # not compatible
query I rowsort label-7830
SELECT + COUNT ( * ) * + 18 + + 68 + + ( - - 89 ) + + 53 * + 15 AS col2
----
970

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL + 15 + - ( + SUM( ALL + + 39 ) ) + + + 91
----
67

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL + 15 + - ( + SUM ( ALL + + 39 ) ) + + + 91
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7832
SELECT COUNT( + 59 ) * + 99 DIV - 33
----
-3

skipif mysql # not compatible
query I rowsort label-7832
SELECT COUNT ( + 59 ) * + 99 / - 33
----
-3

query I rowsort
SELECT + 79 * - - 61 + - NULLIF ( + + 81, + - 94 )
----
4738

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT COUNT( * ) + - ( - ( 13 ) ) + - COALESCE ( + + 39, + - 75 ) + + 72 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7834
SELECT COUNT ( * ) + - ( - ( 13 ) ) + - COALESCE ( + + 39, + - 75 ) + + 72 AS col1
----
47

query I rowsort
SELECT 70 + 80
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7836
SELECT CAST( NULL AS SIGNED ) * - - 1 + - - 25 * - SUM( DISTINCT 31 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT CAST ( NULL AS INTEGER ) * - - 1 + - - 25 * - SUM ( DISTINCT 31 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT CASE + 26 WHEN - 65 THEN 30 END * + CASE + 3 WHEN - 37 * + SUM( + + 39 ) + + 36 + - 10 + + 10 - + 46 THEN NULL WHEN 65 + + MAX( DISTINCT - 46 ) THEN + 58 END / + 33 + + COUNT( * ) * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT CASE + 26 WHEN - 65 THEN 30 END * + CASE + 3 WHEN - 37 * + SUM ( + + 39 ) + + 36 + - 10 + + 10 - + 46 THEN NULL WHEN 65 + + MAX ( DISTINCT - 46 ) THEN + 58 END / + 33 + + COUNT ( * ) * + 66
----
NULL

query I rowsort
SELECT ALL + 47 * + 36 AS col1
----
1692

query I rowsort
SELECT ALL - COALESCE ( - 20, - + 64 + - 46 * + 41 ) AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7840
SELECT ( SUM( - + 73 ) ) AS col0, 38 DIV - ( + 36 )
----
-73
-1

skipif mysql # not compatible
query II rowsort label-7840
SELECT ( SUM ( - + 73 ) ) AS col0, 38 / - ( + 36 )
----
-73
-1

query I rowsort
SELECT + 85 + 49
----
134

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

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

query I rowsort
SELECT - 34 + + ( + 28 ) AS col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7844
SELECT 40 DIV 9
----
4

skipif mysql # not compatible
query I rowsort label-7844
SELECT 40 / 9
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT MAX( + 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT MAX ( + 93 ) AS col2
----
93

query I rowsort
SELECT ALL - 90 + 61 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL SUM( + - 20 ) * 39 * 76 AS col2
----
-59280

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL SUM ( + - 20 ) * 39 * 76 AS col2
----
-59280

query I rowsort
SELECT 86 + 34 AS col1
----
120

query I rowsort
SELECT DISTINCT - ( - 8 ) + + ( + 49 )
----
57

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

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL + 46 + + COUNT ( * ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7851
SELECT MIN( - + 54 ), - 96 AS col2
----
-54
-96

skipif mysql # not compatible
query II rowsort label-7851
SELECT MIN ( - + 54 ), - 96 AS col2
----
-54
-96

query II rowsort
SELECT + 60 AS col1, 42 AS col0
----
60
42

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

query I rowsort
SELECT 55 * + + 6
----
330

query II rowsort
SELECT + 71 AS col2, 11 AS col1
----
71
11

query I rowsort
SELECT ALL 70 + + - 19 * - 91
----
1799

query I rowsort
SELECT ALL + 83 + - 82 + - 96 * + - 37 col2
----
3553

query I rowsort
SELECT 81 + - 9 AS col1
----
72

query I rowsort
SELECT ALL + 10 * + ( + 53 )
----
530

query II rowsort
SELECT + 36 AS col0, 70 * ( ( ( - + 58 ) ) )
----
36
-4060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7861
SELECT NULLIF ( + 58, + - COUNT( * ) * COALESCE ( COUNT( * ), + ( + 96 ) + CAST( NULL AS SIGNED ), - 64 - 33 ) * + 18 * - 67 + + - 1 + + 4 * - 77 + + ( + - 35 ) + + 32 DIV + - 45 ) * 43 + + 65 DIV COUNT( * ) AS col0
----
2559

skipif mysql # not compatible
query I rowsort label-7861
SELECT NULLIF ( + 58, + - COUNT ( * ) * COALESCE ( COUNT ( * ), + ( + 96 ) + CAST ( NULL AS INTEGER ), - 64 - 33 ) * + 18 * - 67 + + - 1 + + 4 * - 77 + + ( + - 35 ) + + 32 / + - 45 ) * 43 + + 65 / COUNT ( * ) AS col0
----
2559

query I rowsort
SELECT 80 * + + ( - 86 ) AS col2
----
-6880

query I rowsort
SELECT 15 + + 55
----
70

query I rowsort
SELECT ALL - CASE + 89 WHEN + + 20 THEN ( + + 62 ) WHEN + 97 + + + 56 THEN NULL END
----
NULL

query II rowsort
SELECT ALL - 25 col0, - 41 AS col0
----
-25
-41

query I rowsort
SELECT 96 * - + 69
----
-6624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7867
SELECT DISTINCT 68 DIV + + COUNT( ALL 4 ) col2
----
68

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT 68 / + + COUNT ( ALL 4 ) col2
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT MIN( + + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-7869
SELECT MIN ( + + 36 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7870
SELECT DISTINCT CAST( - + 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT CAST ( - + 72 AS INTEGER )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7871
SELECT - 91 AS col0, + CAST( NULL AS SIGNED ) + 8 * - 82 * ( + 82 ) AS col0
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-7871
SELECT - 91 AS col0, + CAST ( NULL AS INTEGER ) + 8 * - 82 * ( + 82 ) AS col0
----
-91
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7873
SELECT ALL COUNT( * ) AS col2, 31 * - 59 * + 72
----
1
-131688

skipif mysql # not compatible
query II rowsort label-7873
SELECT ALL COUNT ( * ) AS col2, 31 * - 59 * + 72
----
1
-131688

query I rowsort
SELECT 55 - 6 * 18 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT + COALESCE ( - + ( COUNT( - - 35 ) ), - + NULLIF ( COUNT( * ), - + 75 + - AVG ( + 82 ) ) - + + 33 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7875
SELECT + COALESCE ( - + ( COUNT ( - - 35 ) ), - + NULLIF ( COUNT ( * ), - + 75 + - AVG ( + 82 ) ) - + + 33 ) AS col1
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7877
SELECT ALL + - 85 + - - CASE + 32 WHEN 89 + - 47 + - - 51 THEN + - 76 DIV + - 90 WHEN + 60 DIV - + 23 THEN SUM( ALL + COALESCE ( + 65, - ( + 15 ) + 89 * 43 * - 71 ) ) - - COUNT( * ) DIV - 99 ELSE - COUNT( * ) * - 28 END + - COUNT( * ) * 8
----
-65

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL + - 85 + - - CASE + 32 WHEN 89 + - 47 + - - 51 THEN + - 76 / + - 90 WHEN + 60 / - + 23 THEN SUM ( ALL + COALESCE ( + 65, - ( + 15 ) + 89 * 43 * - 71 ) ) - - COUNT ( * ) / - 99 ELSE - COUNT ( * ) * - 28 END + - COUNT ( * ) * 8
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7878
SELECT ALL - NULLIF ( + ( + 10 ), - 15 + 30 + 20 + + + COUNT( * ) / CAST( - - 42 AS SIGNED ) + + ( COALESCE ( COUNT( * ), - 79 ) ) )
----
-10

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL - NULLIF ( + ( + 10 ), - 15 + 30 + 20 + + + COUNT ( * ) / CAST ( - - 42 AS INTEGER ) + + ( COALESCE ( COUNT ( * ), - 79 ) ) )
----
-10

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

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

query I rowsort
SELECT + + 55 - - 13 AS col0
----
68

query II rowsort
SELECT - 71 AS col0, 67
----
-71
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7882
SELECT + 41 * 27, CASE + 21 WHEN 62 * + NULLIF ( + 83, + 32 ) THEN 45 * - - 49 + - 19 + + NULLIF ( - - COUNT( * ), - 54 + 66 / + COUNT( * ) ) ELSE NULL END AS col2
----
1107
NULL

skipif mysql # not compatible
query II rowsort label-7882
SELECT + 41 * 27, CASE + 21 WHEN 62 * + NULLIF ( + 83, + 32 ) THEN 45 * - - 49 + - 19 + + NULLIF ( - - COUNT ( * ), - 54 + 66 / + COUNT ( * ) ) ELSE NULL END AS col2
----
1107
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN + 79 THEN NULL ELSE 37 + - + CASE - 58 WHEN - 98 * - - 3 / 13 - + - 19 THEN - COALESCE ( + 61, - - COUNT( * ), - - 38 ) * 58 * - 82 END + ( + + 28 ) * 19 + 25 * ( 24 ) + - 88 * + COALESCE ( - 57, + 11 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN + 79 THEN NULL ELSE 37 + - + CASE - 58 WHEN - 98 * - - 3 / 13 - + - 19 THEN - COALESCE ( + 61, - - COUNT ( * ), - - 38 ) * 58 * - 82 END + ( + + 28 ) * 19 + 25 * ( 24 ) + - 88 * + COALESCE ( - 57, + 11 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT - MIN( - 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-7884
SELECT - MIN ( - 67 ) AS col2
----
67

query I rowsort
SELECT ALL 82 * + 17
----
1394

query I rowsort
SELECT ALL 94 + 68 AS col2
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-7887
SELECT DISTINCT ( + 6 ) + 88 DIV + 42 - + - 1 * - 6
----
2

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT ( + 6 ) + 88 / + 42 - + - 1 * - 6
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ALL 9 * - 25 + - ( + COUNT( * ) )
----
-226

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL 9 * - 25 + - ( + COUNT ( * ) )
----
-226

query I rowsort
SELECT + ( 87 ) * 11 * + + 9 * - 6 - 22 AS col1
----
-51700

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7890
SELECT + 58 DIV 10 col0, - SUM( DISTINCT - + 98 )
----
5
98

skipif mysql # not compatible
query II rowsort label-7890
SELECT + 58 / 10 col0, - SUM ( DISTINCT - + 98 )
----
5
98

query I rowsort
SELECT ALL 22 * - 30 * + 59 col1
----
-38940

query I rowsort
SELECT + 21 * - 30 + 26
----
-604

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

query I rowsort
SELECT + COALESCE ( + 83, 94 ) AS col1
----
83

query I rowsort
SELECT NULLIF ( - ( - 38 ), 54 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7896
SELECT 15 * + COUNT( * ) + 45 DIV MIN( ALL ( - 98 ) )
----
15

skipif mysql # not compatible
query I rowsort label-7896
SELECT 15 * + COUNT ( * ) + 45 / MIN ( ALL ( - 98 ) )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7897
SELECT NULLIF ( - COALESCE ( 11, + + 76 DIV - 32, + 0 ), 81 DIV 88 + - 28 * - 32 * - 40 + - 19 )
----
-11

skipif mysql # not compatible
query I rowsort label-7897
SELECT NULLIF ( - COALESCE ( 11, + + 76 / - 32, + 0 ), 81 / 88 + - 28 * - 32 * - 40 + - 19 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7898
SELECT + CASE - 42 WHEN + CAST( - NULLIF ( + 19, - - COUNT( * ) + + 42 ) AS DECIMAL ) * + 40 + + MIN( ALL - + 66 ) + ( - SUM( 16 ) ) * - - 38 THEN NULL WHEN - 35 * + 95 - - + ( - 50 ) THEN ( - - 79 ) END / + 6 + - + 39 / + 32 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT + CASE - 42 WHEN + CAST ( - NULLIF ( + 19, - - COUNT ( * ) + + 42 ) AS REAL ) * + 40 + + MIN ( ALL - + 66 ) + ( - SUM ( 16 ) ) * - - 38 THEN NULL WHEN - 35 * + 95 - - + ( - 50 ) THEN ( - - 79 ) END / + 6 + - + 39 / + 32 + COUNT ( * )
----
NULL

query I rowsort
SELECT - 4 * + 37 * + 28 AS col2
----
-4144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT + COUNT( DISTINCT - 40 ) + - - 97 + COUNT( * ) + - - 16 * 60 AS col1
----
1059

skipif mysql # not compatible
query I rowsort label-7901
SELECT + COUNT ( DISTINCT - 40 ) + - - 97 + COUNT ( * ) + - - 16 * 60 AS col1
----
1059

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7902
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + 37 ) AS col2, 42
----
NULL
42

skipif mysql # not compatible
query II rowsort label-7902
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + 37 ) AS col2, 42
----
NULL
42

query I rowsort
SELECT - 68 * 61 AS col2
----
-4148

query I rowsort
SELECT DISTINCT - 97 * - 16 * + 19 * + 97 AS col0
----
2860336

query I rowsort
SELECT + 84 * + 6 * 96 - - 4 AS col0
----
48388

query I rowsort
SELECT - 54 + - 14 * - 79 * + 91 - 5
----
100587

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT - + CASE 49 WHEN - 41 THEN NULL WHEN + 32 THEN COUNT( * ) + - + 66 / - 92 ELSE NULL END * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT - + CASE 49 WHEN - 41 THEN NULL WHEN + 32 THEN COUNT ( * ) + - + 66 / - 92 ELSE NULL END * - 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT - - 12 * + 83 - - COUNT( DISTINCT - 18 ) + - + 8 AS col1
----
989

skipif mysql # not compatible
query I rowsort label-7908
SELECT - - 12 * + 83 - - COUNT ( DISTINCT - 18 ) + - + 8 AS col1
----
989

onlyif mysql # DIV for integer division: 
query I rowsort label-7909
SELECT - 79 * 57 * - NULLIF ( - 49, + 73 - + + 27 * + 29 + + - 83 ) + + 77 + + ( - 79 ) + - 35 DIV - 28 AS col1
----
-220648

skipif mysql # not compatible
query I rowsort label-7909
SELECT - 79 * 57 * - NULLIF ( - 49, + 73 - + + 27 * + 29 + + - 83 ) + + 77 + + ( - 79 ) + - 35 / - 28 AS col1
----
-220648

onlyif mysql # DIV for integer division: 
query I rowsort label-7910
SELECT - 29 DIV + ( 36 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7910
SELECT - 29 / + ( 36 ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL - - COUNT ( * ) * + + COUNT ( * ) + + ( + 11 ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7912
SELECT ALL + 12 * - 70 DIV 84 DIV + + ( 88 ) + + 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL + 12 * - 70 / 84 / + + ( 88 ) + + 91 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT DISTINCT + 96 + 74 + COUNT( DISTINCT - - 52 ) + + + COUNT( * ) + - 37 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT + 96 + 74 + COUNT ( DISTINCT - - 52 ) + + + COUNT ( * ) + - 37 AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT DISTINCT - + 20 + - ( - ( COUNT( * ) ) ) + 98 col1
----
79

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT - + 20 + - ( - ( COUNT ( * ) ) ) + 98 col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7915
SELECT - + 82 + + - 31 + + 10 DIV + 2
----
-108

skipif mysql # not compatible
query I rowsort label-7915
SELECT - + 82 + + - 31 + + 10 / + 2
----
-108

query I rowsort
SELECT + 15 - + 20
----
-5

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

query II rowsort
SELECT ALL 54, + ( + + 54 ) * - 12 * - 74 + 77 AS col0
----
54
48029

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT DISTINCT - COALESCE ( + 30, + - 99 + + 36 ) + + MIN( DISTINCT + 83 ) + + NULLIF ( + 96, - - 14 * - 2 + - - 21 - COUNT( * ) + + + 63 ) * - ( 55 )
----
-5227

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT - COALESCE ( + 30, + - 99 + + 36 ) + + MIN ( DISTINCT + 83 ) + + NULLIF ( + 96, - - 14 * - 2 + - - 21 - COUNT ( * ) + + + 63 ) * - ( 55 )
----
-5227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7920
SELECT DISTINCT CAST( 77 AS SIGNED ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT CAST ( 77 AS INTEGER ) AS col2
----
77

query I rowsort
SELECT ALL 76 - - 28
----
104

query I rowsort
SELECT + 82 + 4
----
86

query I rowsort
SELECT DISTINCT - 10 * + - 29 AS col1
----
290

query I rowsort
SELECT DISTINCT - 1 * + + 31
----
-31

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

query I rowsort
SELECT - 46 * + 12
----
-552

query II rowsort
SELECT 46 AS col2, 66
----
46
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT + 11 + + 66 * + 72 * MAX( - 61 )
----
-289861

skipif mysql # not compatible
query I rowsort label-7928
SELECT + 11 + + 66 * + 72 * MAX ( - 61 )
----
-289861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7929
SELECT DISTINCT NULLIF ( - 40, - + COUNT( * ) ) DIV - 48 - - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT NULLIF ( - 40, - + COUNT ( * ) ) / - 48 - - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT + 4 + - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7930
SELECT + 4 + - COUNT ( * ) AS col1
----
3

query I rowsort
SELECT DISTINCT 28 * ( + 42 ) col1
----
1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7932
SELECT DISTINCT 39 DIV + 44 * - - CAST( - - 78 AS SIGNED ) * 61 * - - COUNT( * ), 52 col1
----
0
52

skipif mysql # not compatible
query II rowsort label-7932
SELECT DISTINCT 39 / + 44 * - - CAST ( - - 78 AS INTEGER ) * 61 * - - COUNT ( * ), 52 col1
----
0
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT + COUNT( - - 81 ) * - 8 * - 33 * + 72
----
19008

skipif mysql # not compatible
query I rowsort label-7933
SELECT + COUNT ( - - 81 ) * - 8 * - 33 * + 72
----
19008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7934
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) * + COALESCE ( - 88, + 85 * - 31, + + 69 - + 80 / COUNT( * ), + + 97 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) * + COALESCE ( - 88, + 85 * - 31, + + 69 - + 80 / COUNT ( * ), + + 97 ) col0
----
NULL

query II rowsort
SELECT ALL + 86 AS col2, - 72 + + CASE - + 43 WHEN - 44 THEN NULL WHEN + 15 * 85 + + ( - ( - 33 ) ) THEN + ( 60 ) END * + + 43 AS col2
----
86
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT 77 + ( + - COUNT( * ) ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7937
SELECT 77 + ( + - COUNT ( * ) ) AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7938
SELECT CASE + ( + - AVG ( - - 17 ) ) WHEN - + 59 THEN + - 99 * + 40 ELSE + - MIN( + - 58 ) + + - COUNT( + + 17 ) - + CASE - - 59 WHEN + + MAX( ALL + 36 ) / 17 * - CAST( 23 AS DECIMAL ) THEN - + 37 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT CASE + ( + - AVG ( - - 17 ) ) WHEN - + 59 THEN + - 99 * + 40 ELSE + - MIN ( + - 58 ) + + - COUNT ( + + 17 ) - + CASE - - 59 WHEN + + MAX ( ALL + 36 ) / 17 * - CAST ( 23 AS REAL ) THEN - + 37 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT - COUNT( * ) * + 59 * - 39
----
2301

skipif mysql # not compatible
query I rowsort label-7939
SELECT - COUNT ( * ) * + 59 * - 39
----
2301

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7940
SELECT ALL CAST( - 38 AS SIGNED ) + - - 75 * + 2 col2, + 54 AS col2
----
112
54

skipif mysql # not compatible
query II rowsort label-7940
SELECT ALL CAST ( - 38 AS INTEGER ) + - - 75 * + 2 col2, + 54 AS col2
----
112
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL - 58 + 51 + COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL - 58 + 51 + COUNT ( * ) AS col1
----
-6

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

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

query I rowsort
SELECT DISTINCT ( + 0 ) + + + 86 * + 97 + ( 37 ) AS col1
----
8379

query I rowsort
SELECT DISTINCT - 66 + + - 63 AS col1
----
-129

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT ALL - - COUNT( * ) + - - 17
----
18

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL - - COUNT ( * ) + - - 17
----
18

query I rowsort
SELECT ALL + + 55 + - - 5 AS col2
----
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT COUNT( * ) + - 36 - - 41 - MAX( + 79 )
----
-73

skipif mysql # not compatible
query I rowsort label-7949
SELECT COUNT ( * ) + - 36 - - 41 - MAX ( + 79 )
----
-73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT 65 * - COUNT( * ) * NULLIF ( - 97, + 32 + - 73 * + 44 ) * + 28 * SUM( + - 26 ) + + 28 AS col1
----
-4590012

skipif mysql # not compatible
query I rowsort label-7951
SELECT 65 * - COUNT ( * ) * NULLIF ( - 97, + 32 + - 73 * + 44 ) * + 28 * SUM ( + - 26 ) + + 28 AS col1
----
-4590012

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7952
SELECT DISTINCT + COUNT( * ) DIV 83 AS col2, 50 AS col1
----
0
50

skipif mysql # not compatible
query II rowsort label-7952
SELECT DISTINCT + COUNT ( * ) / 83 AS col2, 50 AS col1
----
0
50

query I rowsort
SELECT ALL - 15 - - - 34 * - 12 AS col0
----
393

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT 55 * - ( + 5 ) * - COUNT( * ) col2
----
275

skipif mysql # not compatible
query I rowsort label-7954
SELECT 55 * - ( + 5 ) * - COUNT ( * ) col2
----
275

query I rowsort
SELECT 61 - 90
----
-29

query II rowsort
SELECT 6 * 62 * - 35 * 37 * - 90, 41 AS col2
----
43356600
41

onlyif mysql # aggregate syntax: 
query II rowsort label-7957
SELECT DISTINCT - 79 * 29 AS col0, + MIN( + 16 )
----
-2291
16

skipif mysql # not compatible
query II rowsort label-7957
SELECT DISTINCT - 79 * 29 AS col0, + MIN ( + 16 )
----
-2291
16

query I rowsort
SELECT ALL 87 * + - 41 AS col1
----
-3567

query I rowsort
SELECT 96 * - 71 * - - 53 AS col2
----
-361248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7960
SELECT - MIN( DISTINCT - CAST( + + 14 AS SIGNED ) ) * + 16 * - 88 + - 20 * - + 20 - + COUNT( * ) - + 82 AS col2, 62 - + + 18 DIV - 50 * 50 * 76 * + + 34
----
-19395
62

skipif mysql # not compatible
query II rowsort label-7960
SELECT - MIN ( DISTINCT - CAST ( + + 14 AS INTEGER ) ) * + 16 * - 88 + - 20 * - + 20 - + COUNT ( * ) - + 82 AS col2, 62 - + + 18 / - 50 * 50 * 76 * + + 34
----
-19395
62

query I rowsort
SELECT ALL - 62 * + 82
----
-5084

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL - MIN( DISTINCT + 79 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL - MIN ( DISTINCT + 79 ) AS col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7963
SELECT ALL 15 DIV - 99 + + COUNT( * ) + + - 6
----
-5

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL 15 / - 99 + + COUNT ( * ) + + - 6
----
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL + COUNT( DISTINCT + 28 ) + 56 * + 40
----
2241

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL + COUNT ( DISTINCT + 28 ) + 56 * + 40
----
2241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7967
SELECT ALL + ( - CASE + 5 WHEN - 85 * - + 65 THEN - - ( 59 ) DIV + 52 + - COUNT( * ) WHEN + + MIN( + 23 ) THEN NULL ELSE - 36 END ) DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL + ( - CASE + 5 WHEN - 85 * - + 65 THEN - - ( 59 ) / + 52 + - COUNT ( * ) WHEN + + MIN ( + 23 ) THEN NULL ELSE - 36 END ) / + 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT 18 * - 10 + + NULLIF ( + 63, 8 ) + - COUNT( * ) AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-7968
SELECT 18 * - 10 + + NULLIF ( + 63, 8 ) + - COUNT ( * ) AS col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL - SUM( + 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL - SUM ( + 52 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT DISTINCT COUNT( * ) + + 89 * + - 36 AS col0
----
-3203

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT COUNT ( * ) + + 89 * + - 36 AS col0
----
-3203

query II rowsort
SELECT ALL + 37 * 21 AS col1, + 43
----
777
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT + 52 + + 30 - - + COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7972
SELECT + 52 + + 30 - - + COUNT ( * ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT ALL - 63 + - ( + COALESCE ( COUNT( + 60 ), - 95 - COUNT( * ) - - 98, - 99 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL - 63 + - ( + COALESCE ( COUNT ( + 60 ), - 95 - COUNT ( * ) - - 98, - 99 ) )
----
-64

query I rowsort
SELECT 99 + + 90
----
189

query I rowsort
SELECT - + CASE + 16 WHEN 2 THEN AVG ( 22 ) * 71 + + - 11 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 56 * + + 86
----
4816

query II rowsort
SELECT DISTINCT 55, + 87 col0
----
55
87

query I rowsort
SELECT ALL 0 - + + 90 * - 9 AS col2
----
810

query I rowsort
SELECT 6 - - 31 AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7980
SELECT 80 + - COALESCE ( 18, + 21 ) + - - 64 * CASE - 73 WHEN + 41 THEN NULL WHEN 63 THEN - 63 ELSE - 14 DIV 58 END AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7980
SELECT 80 + - COALESCE ( 18, + 21 ) + - - 64 * CASE - 73 WHEN + 41 THEN NULL WHEN 63 THEN - 63 ELSE - 14 / 58 END AS col0
----
62

query I rowsort
SELECT 16 - + 16
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT 90 + + + 50 DIV - 61
----
90

skipif mysql # not compatible
query I rowsort label-7983
SELECT 90 + + + 50 / - 61
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT ALL SUM( ALL - ( 18 ) ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL SUM ( ALL - ( 18 ) ) AS col0
----
-18

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

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

query II rowsort
SELECT ALL 30, 87 AS col0
----
30
87

query I rowsort
SELECT 6 + 86
----
92

query I rowsort
SELECT 15 + 90
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL MIN( ALL 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL MIN ( ALL 66 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT 89 * NULLIF ( - COUNT( * ), + 18 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-7990
SELECT 89 * NULLIF ( - COUNT ( * ), + 18 ) AS col1
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7991
SELECT DISTINCT + COALESCE ( + 24, + + COUNT( * ) + 78, ( 94 ) DIV + 28 + + 8, - 86 ) DIV - 89 * - 24, - COUNT( * ) DIV 89 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-7991
SELECT DISTINCT + COALESCE ( + 24, + + COUNT ( * ) + 78, ( 94 ) / + 28 + + 8, - 86 ) / - 89 * - 24, - COUNT ( * ) / 89 AS col2
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT COALESCE ( + 28, - 89 + - + ( + + NULLIF ( - - 51, + + NULLIF ( - 23, - - MIN( + 54 ) ) + + 23 ) ) )
----
28

skipif mysql # not compatible
query I rowsort label-7992
SELECT COALESCE ( + 28, - 89 + - + ( + + NULLIF ( - - 51, + + NULLIF ( - 23, - - MIN ( + 54 ) ) + + 23 ) ) )
----
28

query I rowsort
SELECT ALL + 27 * - - 47 + - 69 + + - 90
----
1110

query I rowsort
SELECT - - 13 * - 24
----
-312

onlyif mysql # aggregate syntax: 
query II rowsort label-7995
SELECT + - COUNT( * ) + + - NULLIF ( + 73, - ( - COUNT( - 36 ) ) ) + - + 84 * + COUNT( * ) AS col2, 90 * - + COUNT( * )
----
-158
-90

skipif mysql # not compatible
query II rowsort label-7995
SELECT + - COUNT ( * ) + + - NULLIF ( + 73, - ( - COUNT ( - 36 ) ) ) + - + 84 * + COUNT ( * ) AS col2, 90 * - + COUNT ( * )
----
-158
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT DISTINCT - 69 * + + 50 * + CASE - 31 WHEN - - 41 * COUNT( * ) + + 17 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT - 69 * + + 50 * + CASE - 31 WHEN - - 41 * COUNT ( * ) + + 17 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT - - 37 * 65 + - 91 AS col0
----
2314

query I rowsort
SELECT ALL + ( + 84 ) * 61 + + 68
----
5192

query II rowsort
SELECT 0 AS col0, 93 + + 90 AS col2
----
0
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8000
SELECT + COUNT( * ) DIV + 57 * - - 68 + - 91 + - 3
----
-94

skipif mysql # not compatible
query I rowsort label-8000
SELECT + COUNT ( * ) / + 57 * - - 68 + - 91 + - 3
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8001
SELECT - COUNT( ALL + 21 ) * CAST( NULL AS SIGNED ) / + 20 + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT - COUNT ( ALL + 21 ) * CAST ( NULL AS INTEGER ) / + 20 + - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT + MAX( ALL - 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-8002
SELECT + MAX ( ALL - 20 ) AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8003
SELECT ALL ( 26 ) DIV - 96 * 86 * COUNT( * ) * + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL ( 26 ) / - 96 * 86 * COUNT ( * ) * + 97 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8004
SELECT ALL + ( 29 ) DIV COUNT( * ) - + NULLIF ( - 54, COUNT( DISTINCT + + 7 ) * - - 88 + 6 * ( + - 39 ) + - 82 - 9 )
----
83

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL + ( 29 ) / COUNT ( * ) - + NULLIF ( - 54, COUNT ( DISTINCT + + 7 ) * - - 88 + 6 * ( + - 39 ) + - 82 - 9 )
----
83

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8006
SELECT DISTINCT 17 * 95 DIV + - MIN( - - 7 ) + 89 AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT 17 * 95 / + - MIN ( - - 7 ) + 89 AS col2
----
-141

onlyif mysql # DIV for integer division: 
query II rowsort label-8007
SELECT + 6 DIV - 49, - 69 * - + 39 * + 87 AS col2
----
0
234117

skipif mysql # not compatible
query II rowsort label-8007
SELECT + 6 / - 49, - 69 * - + 39 * + 87 AS col2
----
0
234117

onlyif mysql # DIV for integer division: 
query I rowsort label-8008
SELECT + 11 DIV - - 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8008
SELECT + 11 / - - 31 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8009
SELECT - COUNT( * ) AS col2, CAST( NULL AS DECIMAL ) * + 51
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8009
SELECT - COUNT ( * ) AS col2, CAST ( NULL AS REAL ) * + 51
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT + CASE - - 0 WHEN 21 THEN + + 82 END + 93 + - 57 * - + ( + - 15 ) * - 78 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8010
SELECT + CASE - - 0 WHEN 21 THEN + + 82 END + 93 + - 57 * - + ( + - 15 ) * - 78 + COUNT ( * )
----
NULL

query I rowsort
SELECT + 88 * + 20
----
1760

query II rowsort
SELECT 67 col0, + 48 col2
----
67
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8013
SELECT - 5 + - + 46 + COUNT( * ) + + COUNT( * ) DIV + + 82 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8013
SELECT - 5 + - + 46 + COUNT ( * ) + + COUNT ( * ) / + + 82 AS col0
----
-50

query II rowsort
SELECT DISTINCT 65 AS col0, 45 * + 50 AS col1
----
65
2250

query I rowsort
SELECT DISTINCT 23 * - + 97 AS col1
----
-2231

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

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL SUM ( - - 20 )
----
20

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

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

query I rowsort
SELECT ALL 58 + 77 AS col1
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8019
SELECT ALL - MAX( - + 25 ) + 6 + + 88 * - 28 / 13 / - 74 + - + COUNT( * ) + - + 75 + + + COUNT( * ) + 58 * + COUNT( * ) * - 47 * 58 - AVG ( ALL - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL - MAX ( - + 25 ) + 6 + + 88 * - 28 / 13 / - 74 + - + COUNT ( * ) + - + 75 + + + COUNT ( * ) + 58 * + COUNT ( * ) * - 47 * 58 - AVG ( ALL - CAST ( NULL AS INTEGER ) ) col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8021
SELECT ALL NULLIF ( + 39, + - 52 DIV - - 28 ) DIV - + 14
----
-2

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL NULLIF ( + 39, + - 52 / - - 28 ) / - + 14
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8022
SELECT + CAST( NULL AS SIGNED ) / + - NULLIF ( + 39, + 89 / - CAST( NULL AS SIGNED ) * + - 61 + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8022
SELECT + CAST ( NULL AS INTEGER ) / + - NULLIF ( + 39, + 89 / - CAST ( NULL AS INTEGER ) * + - 61 + 91 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8023
SELECT + CAST( NULL AS DECIMAL ) - - 55 - + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8023
SELECT + CAST ( NULL AS REAL ) - - 55 - + 41 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8024
SELECT ALL 4 + - 45 * - - CASE + 47 WHEN - + CASE - 63 WHEN - + 23 THEN - ( - 50 ) - - 84 + + + 38 WHEN - - CASE - 98 WHEN - + NULLIF ( - 75, + 39 * - 52 + - COUNT( * ) ) / CAST( 89 AS SIGNED ) * - 87 * - 33 THEN + 74 + - AVG ( - + 42 ) END THEN NULL ELSE 14 END THEN 88 WHEN 17 THEN - ( + COALESCE ( COUNT( * ), 75 + 45, - COUNT( * ) + + 68 ) ) + - 0 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL 4 + - 45 * - - CASE + 47 WHEN - + CASE - 63 WHEN - + 23 THEN - ( - 50 ) - - 84 + + + 38 WHEN - - CASE - 98 WHEN - + NULLIF ( - 75, + 39 * - 52 + - COUNT ( * ) ) / CAST ( 89 AS INTEGER ) * - 87 * - 33 THEN + 74 + - AVG ( - + 42 ) END THEN NULL ELSE 14 END THEN 88 WHEN 17 THEN - ( + COALESCE ( COUNT ( * ), 75 + 45, - COUNT ( * ) + + 68 ) ) + - 0 END AS col2
----
NULL

query II rowsort
SELECT + 9 - - 14 col1, 63 * + 51 AS col0
----
23
3213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8026
SELECT DISTINCT NULLIF ( + 32, - COUNT( - 13 ) * 84 ) * + - CAST( NULL AS SIGNED ) * + + 20 * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT NULLIF ( + 32, - COUNT ( - 13 ) * 84 ) * + - CAST ( NULL AS INTEGER ) * + + 20 * - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT ALL SUM( DISTINCT 50 ) + - 52 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL SUM ( DISTINCT 50 ) + - 52 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8028
SELECT - COUNT( DISTINCT - 61 ), 82 col0
----
-1
82

skipif mysql # not compatible
query II rowsort label-8028
SELECT - COUNT ( DISTINCT - 61 ), 82 col0
----
-1
82

query II rowsort
SELECT ALL 6, + 32 AS col2
----
6
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8030
SELECT DISTINCT - - ( + + 16 ) DIV - 46 + + + COUNT( * ) + - - 3
----
4

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT - - ( + + 16 ) / - 46 + + + COUNT ( * ) + - - 3
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8031
SELECT + - 95 DIV + COUNT( DISTINCT - 92 ) - - + 85 col1
----
-10

skipif mysql # not compatible
query I rowsort label-8031
SELECT + - 95 / + COUNT ( DISTINCT - 92 ) - - + 85 col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8032
SELECT ALL - + 94 DIV - + 49 - - 50 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL - + 94 / - + 49 - - 50 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT - 27 * + - 5 * COUNT( DISTINCT + 97 ) + - 40 col0
----
95

skipif mysql # not compatible
query I rowsort label-8033
SELECT - 27 * + - 5 * COUNT ( DISTINCT + 97 ) + - 40 col0
----
95

query I rowsort
SELECT - + 10 * - 12
----
120

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

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

query II rowsort
SELECT + 35 AS col0, + 44
----
35
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8037
SELECT - + CAST( - 49 AS SIGNED ) + - - 25
----
74

skipif mysql # not compatible
query I rowsort label-8037
SELECT - + CAST ( - 49 AS INTEGER ) + - - 25
----
74

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8039
SELECT ALL + 29 AS col2, + COUNT( DISTINCT 2 ) col2
----
29
1

skipif mysql # not compatible
query II rowsort label-8039
SELECT ALL + 29 AS col2, + COUNT ( DISTINCT 2 ) col2
----
29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL + COUNT( ALL + 39 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL + COUNT ( ALL + 39 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8041
SELECT + - 65 * + + 59 + + 86 * CAST( NULL AS SIGNED ) * + + 58 / + 30 col2, + CASE ( - 79 ) WHEN COUNT( * ) * - - CAST( NULL AS SIGNED ) - + + 29 + - 84 THEN + COUNT( * ) WHEN COALESCE ( + + 52, + 72 ) THEN - 53 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8041
SELECT + - 65 * + + 59 + + 86 * CAST ( NULL AS INTEGER ) * + + 58 / + 30 col2, + CASE ( - 79 ) WHEN COUNT ( * ) * - - CAST ( NULL AS INTEGER ) - + + 29 + - 84 THEN + COUNT ( * ) WHEN COALESCE ( + + 52, + 72 ) THEN - 53 END
----
NULL
NULL

query I rowsort
SELECT ALL + 19 * - - ( 80 ) * + 8
----
12160

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

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

query I rowsort
SELECT + + NULLIF ( + ( - - 68 ), - 44 ) * + 12
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT + 50 + - COUNT( * ) - 80 * - COALESCE ( + - 22, ( + - 37 ) ) * - + 21
----
37009

skipif mysql # not compatible
query I rowsort label-8045
SELECT + 50 + - COUNT ( * ) - 80 * - COALESCE ( + - 22, ( + - 37 ) ) * - + 21
----
37009

query I rowsort
SELECT - 0 * - 33 AS col0
----
0

query I rowsort
SELECT COALESCE ( - 70, - ( + 77 ) )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8048
SELECT ALL CAST( NULL AS SIGNED ) * + - 8 + + 41 * CASE WHEN + 73 NOT IN ( + ( 45 ), 80 * - 60 ) THEN NULL WHEN NOT ( 29 ) IS NULL THEN - 52 - - 38 ELSE NULL END + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL CAST ( NULL AS INTEGER ) * + - 8 + + 41 * CASE WHEN + 73 NOT IN ( + ( 45 ), 80 * - 60 ) THEN NULL WHEN NOT ( 29 ) IS NULL THEN - 52 - - 38 ELSE NULL END + 50 AS col1
----
NULL

query I rowsort
SELECT ALL 94 * + + 36 * + + 34 + 7
----
115063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8050
SELECT CASE 27 WHEN COUNT( * ) THEN + 95 + - - 10 END, - 72 * + - 51 * + + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8050
SELECT CASE 27 WHEN COUNT ( * ) THEN + 95 + - - 10 END, - 72 * + - 51 * + + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT + 69 - 10 + - 48 AS col2
----
11

query I rowsort
SELECT + 4 * 8 * + 58
----
1856

query I rowsort
SELECT ALL 10 * ( + ( + 0 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8054
SELECT ALL - CAST( NULL AS SIGNED ) * 43 + + - CAST( NULL AS SIGNED ), 64 DIV - 66 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8054
SELECT ALL - CAST ( NULL AS INTEGER ) * 43 + + - CAST ( NULL AS INTEGER ), 64 / - 66 AS col0
----
NULL
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8056
SELECT 15 + + 30 + + 6 DIV ( + + 11 ) * + + 4 + + 34
----
79

skipif mysql # not compatible
query I rowsort label-8056
SELECT 15 + + 30 + + 6 / ( + + 11 ) * + + 4 + + 34
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT ALL MIN( - 87 ) + 55
----
-32

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL MIN ( - 87 ) + 55
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8058
SELECT DISTINCT COUNT( * ) + - MAX( + ( + 80 ) ) DIV - - COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT COUNT ( * ) + - MAX ( + ( + 80 ) ) / - - COUNT ( * ) AS col0
----
-79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT DISTINCT 70 * - MIN( DISTINCT 84 ) * - 78 + + 57 AS col1
----
458697

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT 70 * - MIN ( DISTINCT 84 ) * - 78 + + 57 AS col1
----
458697

query I rowsort
SELECT ALL - ( - + 66 ) * - 37 AS col1
----
-2442

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT MIN( - + 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-8062
SELECT MIN ( - + 5 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL 97 * + - 60 - + COUNT( - 76 )
----
-5821

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL 97 * + - 60 - + COUNT ( - 76 )
----
-5821

query I rowsort
SELECT 8 * - - 62
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT DISTINCT + MIN( - 51 ) - + 6
----
-57

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT + MIN ( - 51 ) - + 6
----
-57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT MIN( ALL + 39 ) * - - 84
----
3276

skipif mysql # not compatible
query I rowsort label-8067
SELECT MIN ( ALL + 39 ) * - - 84
----
3276

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT + 60 DIV - 19
----
-3

skipif mysql # not compatible
query I rowsort label-8068
SELECT + 60 / - 19
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8069
SELECT + 30 DIV + 96 * - 12 * 63 * - 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8069
SELECT + 30 / + 96 * - 12 * 63 * - 23 AS col2
----
0

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

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

query I rowsort
SELECT - 43 * - 19
----
817

query I rowsort
SELECT ALL - 99 + - + 67 AS col2
----
-166

query I rowsort
SELECT + 87 - + + ( 27 ) col1
----
60

query I rowsort
SELECT DISTINCT 6 + + + 57 + - - 28 col2
----
91

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

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

query I rowsort
SELECT 90 * + 29
----
2610

query I rowsort
SELECT ALL 82 + 73
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT ALL + 7 + + MAX( DISTINCT - + 26 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL + 7 + + MAX ( DISTINCT - + 26 ) AS col0
----
-19

query I rowsort
SELECT ALL - 7 + + 67 * + 68 AS col0
----
4549

query I rowsort
SELECT ALL - 34 * - 43
----
1462

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT + CASE + MAX( ALL + + 84 ) WHEN - - 69 + 22 THEN NULL ELSE - + 79 + + 79 END + + - ( + + 73 ) + + 4
----
-69

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT + CASE + MAX ( ALL + + 84 ) WHEN - - 69 + 22 THEN NULL ELSE - + 79 + + 79 END + + - ( + + 73 ) + + 4
----
-69

query I rowsort
SELECT 18 - - - 64
----
-46

query II rowsort
SELECT 43 AS col2, ( + 86 )
----
43
86

query I rowsort
SELECT ALL + 62 + + 84
----
146

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

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

query I rowsort
SELECT 8 + + - 70
----
-62

query II rowsort
SELECT ALL 81 AS col0, + 6 AS col1
----
81
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL + CASE - 20 WHEN - 85 THEN NULL WHEN + + 98 THEN + 81 END + + + 7 / + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL + CASE - 20 WHEN - 85 THEN NULL WHEN + + 98 THEN + 81 END + + + 7 / + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8089
SELECT DISTINCT 87 AS col2, COUNT( * ) * COALESCE ( + + 25, - + 56 * + COUNT( 86 ) + - - 53 * + 12 * - COUNT( * ) ) * 66 - + 64 + 1
----
87
1587

skipif mysql # not compatible
query II rowsort label-8089
SELECT DISTINCT 87 AS col2, COUNT ( * ) * COALESCE ( + + 25, - + 56 * + COUNT ( 86 ) + - - 53 * + 12 * - COUNT ( * ) ) * 66 - + 64 + 1
----
87
1587

query I rowsort
SELECT DISTINCT + 44 - 76
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-8091
SELECT DISTINCT - ( 2 ) DIV + 62 - 32 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT - ( 2 ) / + 62 - 32 AS col1
----
-32

query II rowsort
SELECT ALL 93, + 78 AS col0
----
93
78

query I rowsort
SELECT ALL - 72 * + - 49 * + 95 col2
----
335160

onlyif mysql # DIV for integer division: 
query I rowsort label-8094
SELECT 92 DIV 22
----
4

skipif mysql # not compatible
query I rowsort label-8094
SELECT 92 / 22
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT - ( MIN( + 39 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-8095
SELECT - ( MIN ( + 39 ) )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8096
SELECT - COUNT( * ) col1, - CAST( NULL AS SIGNED ) + - - COUNT( * ) * - CAST( 15 AS DECIMAL ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8096
SELECT - COUNT ( * ) col1, - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * - CAST ( 15 AS REAL ) AS col2
----
-1
NULL

query II rowsort
SELECT - 28 - 74 * + + 3, 78 - 84 AS col1
----
-250
-6

query I rowsort
SELECT 81 * + COALESCE ( - 29, - 62 * - 6, 75 ) AS col2
----
-2349

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT 84 - - MAX( 67 ) * - 1 * - 50
----
3434

skipif mysql # not compatible
query I rowsort label-8099
SELECT 84 - - MAX ( 67 ) * - 1 * - 50
----
3434

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

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

query I rowsort
SELECT 43 * - ( + + 89 ) * - 70 col1
----
267890

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT DISTINCT MIN( - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT MIN ( - 8 )
----
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT DISTINCT NULLIF ( - + CASE - - COUNT( * ) WHEN + 94 + + + 16 + - ( MIN( DISTINCT + + 34 ) ) THEN 81 + + 63 ELSE - NULLIF ( 13, - + 15 * NULLIF ( + + 19, + 58 * + - 24 * ( 17 ) * + - NULLIF ( - 54, 12 ) + - 21 / COUNT( * ) + - 75 * - - 43 + + 56 + - - 24 - ( MIN( 8 ) ) ) ) * - 41 END, SUM( ( 93 ) ) * + 60 ) AS col2
----
-533

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT NULLIF ( - + CASE - - COUNT ( * ) WHEN + 94 + + + 16 + - ( MIN ( DISTINCT + + 34 ) ) THEN 81 + + 63 ELSE - NULLIF ( 13, - + 15 * NULLIF ( + + 19, + 58 * + - 24 * ( 17 ) * + - NULLIF ( - 54, 12 ) + - 21 / COUNT ( * ) + - 75 * - - 43 + + 56 + - - 24 - ( MIN ( 8 ) ) ) ) * - 41 END, SUM ( ( 93 ) ) * + 60 ) AS col2
----
-533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8105
SELECT CAST( ( 39 ) AS SIGNED ) - - 24 * + 73 AS col2
----
1791

skipif mysql # not compatible
query I rowsort label-8105
SELECT CAST ( ( 39 ) AS INTEGER ) - - 24 * + 73 AS col2
----
1791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8106
SELECT - - CAST( NULL AS SIGNED ) * - 30 + - 29 - - 10 * - 19 - - + 82 + + 74 * + 58 * 77 - COALESCE ( - CASE - - 36 WHEN + 2 THEN NULL WHEN + 61 THEN - 47 END, + + 31 * + 71 ) + + 57 AS col1, - 25 + + CAST( NULL AS DECIMAL ) * + - 31 + - NULLIF ( + 37, - COUNT( * ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8106
SELECT - - CAST ( NULL AS INTEGER ) * - 30 + - 29 - - 10 * - 19 - - + 82 + + 74 * + 58 * 77 - COALESCE ( - CASE - - 36 WHEN + 2 THEN NULL WHEN + 61 THEN - 47 END, + + 31 * + 71 ) + + 57 AS col1, - 25 + + CAST ( NULL AS REAL ) * + - 31 + - NULLIF ( + 37, - COUNT ( * ) )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8107
SELECT + - ( + 13 ) DIV + 29 - - + 46 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-8107
SELECT + - ( + 13 ) / + 29 - - + 46 AS col2
----
46

query I rowsort
SELECT ( 74 ) * - 83 * + 82 * 68 + + 62
----
-34247730

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT + NULLIF ( + COUNT( ALL + 63 ), - - MAX( - 61 ) * - 44 ) * 19 + - 66 * COUNT( * ) * - 23 * + 47
----
71365

skipif mysql # not compatible
query I rowsort label-8109
SELECT + NULLIF ( + COUNT ( ALL + 63 ), - - MAX ( - 61 ) * - 44 ) * 19 + - 66 * COUNT ( * ) * - 23 * + 47
----
71365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8110
SELECT + + 28 / + 3 + - 58 + - COALESCE ( - + CASE - CAST( + NULLIF ( - NULLIF ( 71, CAST( - 42 AS SIGNED ) / 8 + - 28 ), + 84 ) AS SIGNED ) WHEN COUNT( DISTINCT - 90 ) * 71 + - ( + NULLIF ( - 2, - 81 ) ) - - CASE - 52 WHEN + CAST( NULL AS DECIMAL ) + 74 + + ( + - COUNT( * ) ) * + ( + 68 ) THEN + 30 END * 36 THEN NULL WHEN - 54 THEN NULL ELSE 18 * 97 + - 12 END, ( 57 ) + + CAST( - 47 AS DECIMAL ) * - COUNT( * ) ) + - CAST( NULL AS SIGNED ) * - ( 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT + + 28 / + 3 + - 58 + - COALESCE ( - + CASE - CAST ( + NULLIF ( - NULLIF ( 71, CAST ( - 42 AS INTEGER ) / 8 + - 28 ), + 84 ) AS INTEGER ) WHEN COUNT ( DISTINCT - 90 ) * 71 + - ( + NULLIF ( - 2, - 81 ) ) - - CASE - 52 WHEN + CAST ( NULL AS REAL ) + 74 + + ( + - COUNT ( * ) ) * + ( + 68 ) THEN + 30 END * 36 THEN NULL WHEN - 54 THEN NULL ELSE 18 * 97 + - 12 END, ( 57 ) + + CAST ( - 47 AS REAL ) * - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) * - ( 45 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8111
SELECT 37 AS col0, + 78 + COUNT( * )
----
37
79

skipif mysql # not compatible
query II rowsort label-8111
SELECT 37 AS col0, + 78 + COUNT ( * )
----
37
79

query I rowsort
SELECT ALL - - ( - 19 ) col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8113
SELECT COUNT( * ) * + 72 DIV + ( - 96 ) + - 59 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-8113
SELECT COUNT ( * ) * + 72 / + ( - 96 ) + - 59 AS col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8114
SELECT ALL COUNT( * ) * - + COUNT( * ) + + 9 DIV + + 42
----
-1

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL COUNT ( * ) * - + COUNT ( * ) + + 9 / + + 42
----
-1

query I rowsort
SELECT DISTINCT 0 * 8 AS col0
----
0

query I rowsort
SELECT ALL - NULLIF ( + 79, - - 78 ) * + 61 + - 93 AS col0
----
-4912

query I rowsort
SELECT - 80 * - - 29 + - 84
----
-2404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8118
SELECT 15 DIV + 94 DIV 60 * + ( + 53 ) * + - 30 * - ( + COALESCE ( COUNT( * ), 0 + - 2 ) ) + + - 60
----
-60

skipif mysql # not compatible
query I rowsort label-8118
SELECT 15 / + 94 / 60 * + ( + 53 ) * + - 30 * - ( + COALESCE ( COUNT ( * ), 0 + - 2 ) ) + + - 60
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT DISTINCT COUNT( + 55 ) + + 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT COUNT ( + 55 ) + + 59 AS col0
----
60

query I rowsort
SELECT + ( - 69 ) * - 89
----
6141

query I rowsort
SELECT - 99 * 64 * ( 19 )
----
-120384

query I rowsort
SELECT + 10 + 83 + 55
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8123
SELECT DISTINCT COUNT( * ) DIV - - 27 * 13
----
0

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT COUNT ( * ) / - - 27 * 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL SUM( 12 ) - + - 14
----
26

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL SUM ( 12 ) - + - 14
----
26

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

skipif mysql # not compatible
query II rowsort label-8125
SELECT ALL COUNT ( ALL - - 40 ), COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT - 39 * 80 * - 18
----
56160

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

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

query I rowsort
SELECT - 56 + - + ( + - 73 )
----
17

query I rowsort
SELECT - 3 * 85
----
-255

query I rowsort
SELECT - 20 + 1 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT DISTINCT COALESCE ( 22, - 41 * 47 * - 54 + - 60, - SUM( ( 57 ) ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT COALESCE ( 22, - 41 * 47 * - 54 + - 60, - SUM ( ( 57 ) ) ) AS col0
----
22

query I rowsort
SELECT - + 28 + - 77 + + 32
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT - - MAX( DISTINCT 37 ) + + + 80
----
117

skipif mysql # not compatible
query I rowsort label-8133
SELECT - - MAX ( DISTINCT 37 ) + + + 80
----
117

query I rowsort
SELECT DISTINCT + - 91 * 63
----
-5733

query I rowsort
SELECT - 62 + - ( - + 18 )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8136
SELECT ALL + 98 DIV - 90 + + COUNT( ALL + 12 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL + 98 / - 90 + + COUNT ( ALL + 12 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT DISTINCT + + COUNT( DISTINCT + + 11 ) + 2
----
3

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT + + COUNT ( DISTINCT + + 11 ) + 2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8138
SELECT - COUNT( * ) DIV 98 + 8 + CAST( + 46 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-8138
SELECT - COUNT ( * ) / 98 + 8 + CAST ( + 46 AS INTEGER )
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT + - 46 + - COUNT( * ) + + 18 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-8141
SELECT + - 46 + - COUNT ( * ) + + 18 AS col2
----
-29

query I rowsort
SELECT DISTINCT - 13 * + + 86 * - 32 * - + ( + 80 ) AS col0
----
-2862080

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT - COALESCE ( - 46, + COUNT( * ) * - 40, - 96 ) * - 57 AS col0
----
-2622

skipif mysql # not compatible
query I rowsort label-8145
SELECT - COALESCE ( - 46, + COUNT ( * ) * - 40, - 96 ) * - 57 AS col0
----
-2622

query I rowsort
SELECT + 5 * ( 77 ) AS col2
----
385

query I rowsort
SELECT ALL - 72 * + 28 + 93 AS col1
----
-1923

onlyif mysql # aggregate syntax: 
query II rowsort label-8148
SELECT ( + SUM( DISTINCT + 31 ) ) AS col2, 81 * - - 42 + 74 AS col0
----
31
3476

skipif mysql # not compatible
query II rowsort label-8148
SELECT ( + SUM ( DISTINCT + 31 ) ) AS col2, 81 * - - 42 + 74 AS col0
----
31
3476

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT DISTINCT COUNT( * ) * - 56 col2
----
-56

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT COUNT ( * ) * - 56 col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8150
SELECT + NULLIF ( - 0, - + CAST( NULL AS SIGNED ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8150
SELECT + NULLIF ( - 0, - + CAST ( NULL AS INTEGER ) ) col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8151
SELECT ALL COUNT( + 8 ) * - - 17, 49 AS col2
----
17
49

skipif mysql # not compatible
query II rowsort label-8151
SELECT ALL COUNT ( + 8 ) * - - 17, 49 AS col2
----
17
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT DISTINCT + 40 * - + COUNT( * ) - - 23
----
-17

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT + 40 * - + COUNT ( * ) - - 23
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT DISTINCT COUNT( * ) * - MAX( DISTINCT 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT COUNT ( * ) * - MAX ( DISTINCT 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT ALL - COUNT( * ) * 82 - + 50 AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL - COUNT ( * ) * 82 - + 50 AS col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT + 39 * NULLIF ( COUNT( * ), 41 )
----
39

skipif mysql # not compatible
query I rowsort label-8155
SELECT + 39 * NULLIF ( COUNT ( * ), 41 )
----
39

query I rowsort
SELECT + 15 - - 35
----
50

query I rowsort
SELECT CASE - 88 WHEN - - 50 + - 8 THEN + 6 * + NULLIF ( CASE WHEN + 54 >= + 88 THEN 49 * - 14 END, + 92 ) WHEN + 18 * 23 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8158
SELECT ALL + 85, - MAX( 9 ) AS col2
----
85
-9

skipif mysql # not compatible
query II rowsort label-8158
SELECT ALL + 85, - MAX ( 9 ) AS col2
----
85
-9

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

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

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

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

query I rowsort
SELECT + 80 * - 83 AS col0
----
-6640

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT - COUNT( * ) + - 6 + ( - 95 ) AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-8162
SELECT - COUNT ( * ) + - 6 + ( - 95 ) AS col1
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-8163
SELECT - + ( + 93 ) DIV + 81 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8163
SELECT - + ( + 93 ) / + 81 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8164
SELECT ALL + 77 / + - 87 + - CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8164
SELECT ALL + 77 / + - 87 + - CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT ALL NULLIF ( + 49, 18 ) AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8166
SELECT ALL CAST( - 11 AS SIGNED ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL CAST ( - 11 AS INTEGER ) AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8167
SELECT - CASE - COUNT( * ) WHEN - - ( - CAST( NULL AS SIGNED ) ) THEN - COALESCE ( + 25, NULLIF ( CAST( COUNT( * ) AS SIGNED ), - + 76 * ( 37 ) * 41 - - 37 + - CAST( NULL AS SIGNED ) ) * 37 + + - COUNT( * ) ) + 48 WHEN 8 THEN NULL WHEN - + 0 * ( + COUNT( * ) ) + - ( - COALESCE ( + 63, 27, + + SUM( - 9 ) - 96 * CAST( 21 AS DECIMAL ) ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT - CASE - COUNT ( * ) WHEN - - ( - CAST ( NULL AS INTEGER ) ) THEN - COALESCE ( + 25, NULLIF ( CAST ( COUNT ( * ) AS INTEGER ), - + 76 * ( 37 ) * 41 - - 37 + - CAST ( NULL AS INTEGER ) ) * 37 + + - COUNT ( * ) ) + 48 WHEN 8 THEN NULL WHEN - + 0 * ( + COUNT ( * ) ) + - ( - COALESCE ( + 63, 27, + + SUM ( - 9 ) - 96 * CAST ( 21 AS REAL ) ) ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 69 + - 84 + ( 40 )
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8169
SELECT ALL + + 97 + - 12 * + CAST( NULL AS SIGNED ), + 0 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8169
SELECT ALL + + 97 + - 12 * + CAST ( NULL AS INTEGER ), + 0 AS col0
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8170
SELECT - - 55 - CAST( 16 AS SIGNED ) AS col0, MAX( ALL - 92 ) AS col1
----
39
-92

skipif mysql # not compatible
query II rowsort label-8170
SELECT - - 55 - CAST ( 16 AS INTEGER ) AS col0, MAX ( ALL - 92 ) AS col1
----
39
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT - - COUNT( * ) + 64 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-8172
SELECT - - COUNT ( * ) + 64 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT DISTINCT - 3 * - CASE 40 WHEN CASE + - SUM( DISTINCT + + 40 ) WHEN ( + + 12 ) + - 64 * + 52 + + + NULLIF ( 61, + - 7 ) THEN + + 32 END THEN NULL WHEN + COALESCE ( + 60, + 26 ) THEN - 9 ELSE COUNT( * ) END - ( + - 48 )
----
51

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT - 3 * - CASE 40 WHEN CASE + - SUM ( DISTINCT + + 40 ) WHEN ( + + 12 ) + - 64 * + 52 + + + NULLIF ( 61, + - 7 ) THEN + + 32 END THEN NULL WHEN + COALESCE ( + 60, + 26 ) THEN - 9 ELSE COUNT ( * ) END - ( + - 48 )
----
51

query I rowsort
SELECT 89 * 4 AS col2
----
356

query I rowsort
SELECT 25 * 47 AS col2
----
1175

onlyif mysql # aggregate syntax: 
query III rowsort label-8176
SELECT 54 AS col1, 50 * - + 98 + - + 1 AS col1, - - COUNT( * ) * 97
----
54
-4901
97

skipif mysql # not compatible
query III rowsort label-8176
SELECT 54 AS col1, 50 * - + 98 + - + 1 AS col1, - - COUNT ( * ) * 97
----
54
-4901
97

query I rowsort
SELECT + ( 80 ) * - 72 + - - 19 + 0
----
-5741

query I rowsort
SELECT ALL + 3 * - + 28
----
-84

query I rowsort
SELECT 15 * - - 7 col0
----
105

query I rowsort
SELECT 18 + + 76 + + + 38 AS col2
----
132

query I rowsort
SELECT ALL 34 - + - 73
----
107

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

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

query I rowsort
SELECT ALL 91 * + 96
----
8736

onlyif mysql # aggregate syntax: 
query II rowsort label-8184
SELECT + 42, - MIN( + 1 ) AS col1
----
42
-1

skipif mysql # not compatible
query II rowsort label-8184
SELECT + 42, - MIN ( + 1 ) AS col1
----
42
-1

query II rowsort
SELECT ALL 52 * 35 AS col1, 64 col0
----
1820
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL 91 + 53 + + ( COUNT( * ) ) + COUNT( * )
----
146

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL 91 + 53 + + ( COUNT ( * ) ) + COUNT ( * )
----
146

query I rowsort
SELECT 20 * + 68 + - 76 + + + 61
----
1345

query I rowsort
SELECT ALL + 51 + - 24 * ( + - 34 )
----
867

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT MIN( + 29 ) + 82
----
111

skipif mysql # not compatible
query I rowsort label-8189
SELECT MIN ( + 29 ) + 82
----
111

query I rowsort
SELECT ALL + 40 + - ( + 39 ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8192
SELECT + MIN( - 54 ) + - 21 + - COALESCE ( - 38, - COUNT( * ) * + 18 + + 26 * + 73 + + 52 * - ( 32 ), - 12 - + 11 DIV + - 12, COUNT( * ) - 36, - 32 ) + - 21 * 3
----
-100

skipif mysql # not compatible
query I rowsort label-8192
SELECT + MIN ( - 54 ) + - 21 + - COALESCE ( - 38, - COUNT ( * ) * + 18 + + 26 * + 73 + + 52 * - ( 32 ), - 12 - + 11 / + - 12, COUNT ( * ) - 36, - 32 ) + - 21 * 3
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT + COUNT( DISTINCT - 7 ) + + + 24
----
25

skipif mysql # not compatible
query I rowsort label-8193
SELECT + COUNT ( DISTINCT - 7 ) + + + 24
----
25

query I rowsort
SELECT 38 + + 68
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-8195
SELECT - + 54, MAX( ALL 16 ) col0
----
-54
16

skipif mysql # not compatible
query II rowsort label-8195
SELECT - + 54, MAX ( ALL 16 ) col0
----
-54
16

query I rowsort
SELECT 85 + + 48
----
133

query I rowsort
SELECT - 38 + + + 13 AS col2
----
-25

query I rowsort
SELECT ALL + 24 + + 38 + + - 17
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8199
SELECT COUNT( * ) + + 96, + 54 * - 52 AS col0
----
97
-2808

skipif mysql # not compatible
query II rowsort label-8199
SELECT COUNT ( * ) + + 96, + 54 * - 52 AS col0
----
97
-2808

onlyif mysql # aggregate syntax: 
query II rowsort label-8200
SELECT ALL 0 AS col0, SUM( - 99 ) col0
----
0
-99

skipif mysql # not compatible
query II rowsort label-8200
SELECT ALL 0 AS col0, SUM ( - 99 ) col0
----
0
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8201
SELECT ALL + 74 * - - NULLIF ( - SUM( DISTINCT 5 ), CAST( NULL AS DECIMAL ) ) AS col2
----
-370

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL + 74 * - - NULLIF ( - SUM ( DISTINCT 5 ), CAST ( NULL AS REAL ) ) AS col2
----
-370

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8202
SELECT + 87 + 21 + + COUNT( * ) * - ( + 93 ) DIV 75 AS col0, 3 AS col1
----
107
3

skipif mysql # not compatible
query II rowsort label-8202
SELECT + 87 + 21 + + COUNT ( * ) * - ( + 93 ) / 75 AS col0, 3 AS col1
----
107
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + 26
----
27

skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + 26
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT DISTINCT - 62 - + ( + 47 ) + + NULLIF ( - CASE - 69 WHEN 8 / - CASE 27 WHEN - 65 THEN + 19 + - 61 WHEN + 20 + - 71 / 67 * - - 66 THEN NULL ELSE - - 94 + + - COUNT( * ) END / + COUNT( * ) THEN + 23 ELSE + 79 END, 49 + + ( - 55 ) ) * + 27
----
-2242

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT - 62 - + ( + 47 ) + + NULLIF ( - CASE - 69 WHEN 8 / - CASE 27 WHEN - 65 THEN + 19 + - 61 WHEN + 20 + - 71 / 67 * - - 66 THEN NULL ELSE - - 94 + + - COUNT ( * ) END / + COUNT ( * ) THEN + 23 ELSE + 79 END, 49 + + ( - 55 ) ) * + 27
----
-2242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8205
SELECT ALL - NULLIF ( - 91, + COUNT( * ) + 46 + - 62 + MAX( + CAST( NULL AS SIGNED ) ) / 58 * + 77 - - ( + 71 ) * + 68 / - + 68 + + 76 + 59 + - + 67 * - 16 * + 58 * - 17 * - 50 ) - - 53 - 52
----
92

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL - NULLIF ( - 91, + COUNT ( * ) + 46 + - 62 + MAX ( + CAST ( NULL AS INTEGER ) ) / 58 * + 77 - - ( + 71 ) * + 68 / - + 68 + + 76 + 59 + - + 67 * - 16 * + 58 * - 17 * - 50 ) - - 53 - 52
----
92

query I rowsort
SELECT 24 * - + ( - + 31 ) * - 13 * - 56 + + 35
----
541667

query I rowsort
SELECT DISTINCT - 26 * + 16
----
-416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8208
SELECT ALL - 17 * - 11 * 11 * - CAST( - 72 AS SIGNED ) AS col0
----
148104

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL - 17 * - 11 * 11 * - CAST ( - 72 AS INTEGER ) AS col0
----
148104

query I rowsort
SELECT 14 * 27 AS col1
----
378

onlyif mysql # aggregate syntax: 
query II rowsort label-8210
SELECT 50 + - - 43 AS col2, + COUNT( * )
----
93
1

skipif mysql # not compatible
query II rowsort label-8210
SELECT 50 + - - 43 AS col2, + COUNT ( * )
----
93
1

query I rowsort
SELECT 24 * 36 * + - 13 AS col1
----
-11232

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT 33 - - COUNT( * ) * + COUNT( * ) * - - 15
----
48

skipif mysql # not compatible
query I rowsort label-8212
SELECT 33 - - COUNT ( * ) * + COUNT ( * ) * - - 15
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-8213
SELECT 69 DIV - 44, 57 AS col2
----
-1
57

skipif mysql # not compatible
query II rowsort label-8213
SELECT 69 / - 44, 57 AS col2
----
-1
57

query I rowsort
SELECT 40 * + 57 * 85
----
193800

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT 43 - - 17 + - 94 DIV - ( + 69 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8215
SELECT 43 - - 17 + - 94 / - ( + 69 ) AS col2
----
61

query I rowsort
SELECT DISTINCT 85 + 3
----
88

query I rowsort
SELECT DISTINCT 3 + ( 61 ) AS col0
----
64

query I rowsort
SELECT DISTINCT + 55 + 5
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT + 29 * - + 7 + + COUNT( DISTINCT + ( - COALESCE ( 47, + 98, - + ( + + 55 ), 18 ) ) ) AS col0
----
-202

skipif mysql # not compatible
query I rowsort label-8219
SELECT + 29 * - + 7 + + COUNT ( DISTINCT + ( - COALESCE ( 47, + 98, - + ( + + 55 ), 18 ) ) ) AS col0
----
-202

query I rowsort
SELECT DISTINCT - ( - 44 ) + 16
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8221
SELECT ALL - + NULLIF ( + 46, - ( + 66 ) + - + CAST( + 36 AS SIGNED ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL - + NULLIF ( + 46, - ( + 66 ) + - + CAST ( + 36 AS INTEGER ) ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT + MAX( ALL - - 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-8222
SELECT + MAX ( ALL - - 94 ) AS col1
----
94

query II rowsort
SELECT ALL 25 + + - 77, + 89 - 4 + 53 AS col1
----
-52
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8224
SELECT - 95 * 59 DIV - COUNT( * ) AS col2
----
5605

skipif mysql # not compatible
query I rowsort label-8224
SELECT - 95 * 59 / - COUNT ( * ) AS col2
----
5605

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

query I rowsort
SELECT DISTINCT NULLIF ( - + 94, 98 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT DISTINCT - + 13 * - SUM( 94 )
----
1222

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT - + 13 * - SUM ( 94 )
----
1222

query I rowsort
SELECT DISTINCT 10 - 46 - + + 81
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT 91 * 85 DIV - 86 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-8229
SELECT 91 * 85 / - 86 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT ALL SUM( ALL + 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL SUM ( ALL + 3 ) AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT ( 55 ) DIV - ( 2 ) - - + 0
----
-27

skipif mysql # not compatible
query I rowsort label-8231
SELECT ( 55 ) / - ( 2 ) - - + 0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT - - 29 + + COUNT( 32 ) - + + 54 * + 85 - - + 87 * + 76 + 4 * 47 * - + COUNT( * ) col0
----
1864

skipif mysql # not compatible
query I rowsort label-8232
SELECT - - 29 + + COUNT ( 32 ) - + + 54 * + 85 - - + 87 * + 76 + 4 * 47 * - + COUNT ( * ) col0
----
1864

query I rowsort
SELECT + + 54 * + - 35 AS col0
----
-1890

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT + 25 - - + COALESCE ( - - 25, + CAST( NULL AS SIGNED ) - - 58, + - 63 ) + - 7 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8235
SELECT + 25 - - + COALESCE ( - - 25, + CAST ( NULL AS INTEGER ) - - 58, + - 63 ) + - 7 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT + 47 + + 48 + - + 28 * - + 15 * + MAX( 79 ) + - - 87 AS col2
----
33362

skipif mysql # not compatible
query I rowsort label-8236
SELECT + 47 + + 48 + - + 28 * - + 15 * + MAX ( 79 ) + - - 87 AS col2
----
33362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8237
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 42 * + + SUM( ALL + + 9 ) / + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 42 * + + SUM ( ALL + + 9 ) / + 37
----
NULL

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

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

query I rowsort
SELECT ALL - 40 * + 2 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT DISTINCT 81 * + 95 * - COUNT( * ) * + + 48 * + - COALESCE ( 38, - 61 - - 40 )
----
14035680

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT 81 * + 95 * - COUNT ( * ) * + + 48 * + - COALESCE ( 38, - 61 - - 40 )
----
14035680

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

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT + MIN ( DISTINCT - + CAST ( + + 92 AS INTEGER ) )
----
-92

query I rowsort
SELECT ALL + 48 * + - 57 + + 45 AS col1
----
-2691

query I rowsort
SELECT ALL 19 * + + 20 + - + 10 AS col0
----
370

onlyif mysql # aggregate syntax: 
query II rowsort label-8244
SELECT ALL + ( ( - 5 ) ) * - 47 + + SUM( 24 ), ( - COUNT( * ) ) AS col0
----
259
-1

skipif mysql # not compatible
query II rowsort label-8244
SELECT ALL + ( ( - 5 ) ) * - 47 + + SUM ( 24 ), ( - COUNT ( * ) ) AS col0
----
259
-1

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

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

query I rowsort
SELECT - - 70 + - - ( - + 56 )
----
14

query II rowsort
SELECT + 66, - 50 AS col0
----
66
-50

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8249
SELECT - 97 DIV 23 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8249
SELECT - 97 / 23 AS col0
----
-4

query I rowsort
SELECT + - 50 * + - ( + 14 ) + - 82 * + 61 AS col1
----
-4302

query II rowsort
SELECT ALL + 88 * + - 29 + - 64 AS col1, 53
----
-2616
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT - COUNT( * ) + + - 66 + CASE - + CASE - 88 WHEN - - 67 + + 5 THEN NULL WHEN + 61 THEN - 91 + 73 END WHEN 29 + + 74 / + 97 THEN NULLIF ( 49, + MAX( DISTINCT - 31 ) ) WHEN - - 30 - + 3 * + - 39 + - 39 + 7 * - 15 * + + 65 THEN - 34 END * 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT - COUNT ( * ) + + - 66 + CASE - + CASE - 88 WHEN - - 67 + + 5 THEN NULL WHEN + 61 THEN - 91 + 73 END WHEN 29 + + 74 / + 97 THEN NULLIF ( 49, + MAX ( DISTINCT - 31 ) ) WHEN - - 30 - + 3 * + - 39 + - 39 + 7 * - 15 * + + 65 THEN - 34 END * 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT - COUNT( * ) + + + 29 + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-8254
SELECT - COUNT ( * ) + + + 29 + - COUNT ( * )
----
27

query I rowsort
SELECT ALL + 22 - + + 28
----
-6

query I rowsort
SELECT - + 66 + + 92
----
26

query I rowsort
SELECT + + 61 - + 49
----
12

query II rowsort
SELECT + 83 * ( - 78 ) AS col2, + 34 AS col0
----
-6474
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT - - 92 + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-8259
SELECT - - 92 + COUNT ( * ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT - CASE 51 WHEN + 31 * - 79 THEN - + 35 * - - CASE - + SUM( - ( + 9 ) ) WHEN - 20 * + 33 * + COUNT( * ) + - - 10 THEN NULL WHEN - 72 THEN NULL WHEN - 4 THEN 5 ELSE - 44 END WHEN + - 85 / + 67 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT - CASE 51 WHEN + 31 * - 79 THEN - + 35 * - - CASE - + SUM ( - ( + 9 ) ) WHEN - 20 * + 33 * + COUNT ( * ) + - - 10 THEN NULL WHEN - 72 THEN NULL WHEN - 4 THEN 5 ELSE - 44 END WHEN + - 85 / + 67 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 23 * + - 42 AS col0
----
-966

query I rowsort
SELECT + 40 + 32 AS col2
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT - 87 * - + COUNT( - 49 )
----
87

skipif mysql # not compatible
query I rowsort label-8264
SELECT - 87 * - + COUNT ( - 49 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT + MIN( - 94 ) + - 13 * - 57 AS col1
----
647

skipif mysql # not compatible
query I rowsort label-8265
SELECT + MIN ( - 94 ) + - 13 * - 57 AS col1
----
647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8266
SELECT - MAX( - CAST( + NULLIF ( + 91, 87 * + 21 + 36 + + 17 ) AS SIGNED ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8266
SELECT - MAX ( - CAST ( + NULLIF ( + 91, 87 * + 21 + 36 + + 17 ) AS INTEGER ) ) AS col1
----
91

query I rowsort
SELECT ALL 75 + - 52
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8268
SELECT ALL 69 DIV + ( - 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL 69 / + ( - 44 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8269
SELECT ALL - COUNT( * ) DIV + COUNT( + + 8 ) + - 72 + 34 + 87
----
48

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL - COUNT ( * ) / + COUNT ( + + 8 ) + - 72 + 34 + 87
----
48

query II rowsort
SELECT + ( 9 ) AS col2, - 20 - - - 52 + + 30 + + - 68
----
9
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8271
SELECT DISTINCT 27 DIV + MAX( ALL + 26 ) + - 53 * 38 AS col2
----
-2013

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT 27 / + MAX ( ALL + 26 ) + - 53 * 38 AS col2
----
-2013

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8274
SELECT + ( + 18 ), 5 * COUNT( - 64 ) AS col0
----
18
5

skipif mysql # not compatible
query II rowsort label-8274
SELECT + ( + 18 ), 5 * COUNT ( - 64 ) AS col0
----
18
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT + + COUNT( * ) - 36 * 50 AS col0
----
-1799

skipif mysql # not compatible
query I rowsort label-8275
SELECT + + COUNT ( * ) - 36 * 50 AS col0
----
-1799

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8277
SELECT 39 * + + 50 - + + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8277
SELECT 39 * + + 50 - + + CAST ( NULL AS REAL ) col2
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8280
SELECT ALL + NULLIF ( NULLIF ( - 48, - MAX( 30 ) ), + + COUNT( ALL + 48 ) ) * + 56 * - CASE 96 WHEN + 53 THEN + + 87 - - CAST( - + 15 AS SIGNED ) + + - 87 * + + 74 END - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL + NULLIF ( NULLIF ( - 48, - MAX ( 30 ) ), + + COUNT ( ALL + 48 ) ) * + 56 * - CASE 96 WHEN + 53 THEN + + 87 - - CAST ( - + 15 AS INTEGER ) + + - 87 * + + 74 END - + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 4 * + 34 * + 51 - - ( 73 ) AS col1
----
-6863

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

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

query I rowsort
SELECT ALL - 38 * 85 - - 54 col1
----
-3176

query I rowsort
SELECT - 31 - - 53
----
22

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

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

query I rowsort
SELECT DISTINCT + 43 * - 34
----
-1462

onlyif mysql # DIV for integer division: 
query I rowsort label-8287
SELECT + 98 DIV + 31 col2
----
3

skipif mysql # not compatible
query I rowsort label-8287
SELECT + 98 / + 31 col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8288
SELECT + MAX( 57 ) DIV + + ( + CAST( + + 67 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8288
SELECT + MAX ( 57 ) / + + ( + CAST ( + + 67 AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8289
SELECT + NULLIF ( + 82, - CAST( + 88 AS SIGNED ) ) * + CASE + CASE - COUNT( * ) WHEN + + 27 THEN NULL WHEN 45 THEN NULL ELSE + 90 END WHEN + - 48 THEN - + 22 + + COALESCE ( - 0, CAST( NULL AS SIGNED ) * + NULLIF ( + - 57, + 33 ) ) - - 19 END * - 49 * 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8289
SELECT + NULLIF ( + 82, - CAST ( + 88 AS INTEGER ) ) * + CASE + CASE - COUNT ( * ) WHEN + + 27 THEN NULL WHEN 45 THEN NULL ELSE + 90 END WHEN + - 48 THEN - + 22 + + COALESCE ( - 0, CAST ( NULL AS INTEGER ) * + NULLIF ( + - 57, + 33 ) ) - - 19 END * - 49 * 76 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8290
SELECT ALL + + CASE + 83 WHEN - 98 THEN - COUNT( + + 33 ) WHEN + COALESCE ( + - ( + COUNT( * ) ), + ( - 91 ) * ( + + 81 ) + 6 ) + - COUNT( * ) * - CAST( - COUNT( * ) AS DECIMAL ) THEN NULL ELSE NULL END / COUNT( * ), + 20 AS col2
----
NULL
20

skipif mysql # not compatible
query II rowsort label-8290
SELECT ALL + + CASE + 83 WHEN - 98 THEN - COUNT ( + + 33 ) WHEN + COALESCE ( + - ( + COUNT ( * ) ), + ( - 91 ) * ( + + 81 ) + 6 ) + - COUNT ( * ) * - CAST ( - COUNT ( * ) AS REAL ) THEN NULL ELSE NULL END / COUNT ( * ), + 20 AS col2
----
NULL
20

query I rowsort
SELECT 8 + 65 AS col0
----
73

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

skipif mysql # not compatible
query II rowsort label-8292
SELECT 47, COUNT ( * ) AS col2
----
47
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT SUM( DISTINCT - 12 ) * 74
----
-888

skipif mysql # not compatible
query I rowsort label-8295
SELECT SUM ( DISTINCT - 12 ) * 74
----
-888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8296
SELECT 34 + MAX( DISTINCT + ( 89 ) ) DIV - + 19 + 36 DIV + 83 * + + 78
----
30

skipif mysql # not compatible
query I rowsort label-8296
SELECT 34 + MAX ( DISTINCT + ( 89 ) ) / - + 19 + 36 / + 83 * + + 78
----
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT DISTINCT + 41 + - COUNT( ALL + 90 )
----
40

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT + 41 + - COUNT ( ALL + 90 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL 28 * + 60 * COUNT( * )
----
1680

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL 28 * + 60 * COUNT ( * )
----
1680

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT 62 + - + 77 + 28 + + + 46 + COUNT( * ) + + 90
----
150

skipif mysql # not compatible
query I rowsort label-8301
SELECT 62 + - + 77 + 28 + + + 46 + COUNT ( * ) + + 90
----
150

query I rowsort
SELECT ALL 21 + 54
----
75

query I rowsort
SELECT ALL + 96 * 58
----
5568

onlyif mysql # aggregate syntax: 
query II rowsort label-8304
SELECT DISTINCT - 20, + 47 + - + MAX( DISTINCT 23 ) AS col2
----
-20
24

skipif mysql # not compatible
query II rowsort label-8304
SELECT DISTINCT - 20, + 47 + - + MAX ( DISTINCT 23 ) AS col2
----
-20
24

query I rowsort
SELECT ALL 85 - - + 51 AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT ALL SUM( ALL + + 54 ) - + 73 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL SUM ( ALL + + 54 ) - + 73 AS col2
----
-19

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

skipif mysql # not compatible
query I rowsort label-8307
SELECT CAST ( NULL AS REAL ) * - + 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8308
SELECT ALL 92 DIV 84 * + 81 * - COUNT( ALL + 20 ) * - ( 20 ) + 92, ( + 77 ) AS col0
----
1712
77

skipif mysql # not compatible
query II rowsort label-8308
SELECT ALL 92 / 84 * + 81 * - COUNT ( ALL + 20 ) * - ( 20 ) + 92, ( + 77 ) AS col0
----
1712
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8309
SELECT ALL 49 DIV + + 16 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL 49 / + + 16 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT DISTINCT - MIN( + 73 ) col2
----
-73

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT - MIN ( + 73 ) col2
----
-73

query I rowsort
SELECT ALL + 66 * - 33 col1
----
-2178

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT + - COUNT( * ) * - 77 + + + 51 + 73 col0
----
201

skipif mysql # not compatible
query I rowsort label-8312
SELECT + - COUNT ( * ) * - 77 + + + 51 + 73 col0
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT + SUM( 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8313
SELECT + SUM ( 59 ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT ALL - COUNT( * ) * + COALESCE ( 65, COUNT( * ) + - ( - 89 ), 6 )
----
-65

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL - COUNT ( * ) * + COALESCE ( 65, COUNT ( * ) + - ( - 89 ), 6 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8315
SELECT 77 * - - ( - 83 ) + 57 / + 66 * + + 61 / + ( + - 74 ) * + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT 77 * - - ( - 83 ) + 57 / + 66 * + + 61 / + ( + - 74 ) * + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 38 * 24 AS col1
----
912

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8319
SELECT DISTINCT - NULLIF ( + + 33, COUNT( ALL - 20 ) ) * 55 AS col2, 4 AS col2
----
-1815
4

skipif mysql # not compatible
query II rowsort label-8319
SELECT DISTINCT - NULLIF ( + + 33, COUNT ( ALL - 20 ) ) * 55 AS col2, 4 AS col2
----
-1815
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8320
SELECT ALL - 97 AS col1, + 75 + - 79 + + 25 + ( ( + - CAST( NULL AS SIGNED ) ) ) * - - 20 - - 39 * + 8
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-8320
SELECT ALL - 97 AS col1, + 75 + - 79 + + 25 + ( ( + - CAST ( NULL AS INTEGER ) ) ) * - - 20 - - 39 * + 8
----
-97
NULL

query I rowsort
SELECT - 60 * + 61 + 30 col2
----
-3630

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

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

query II rowsort
SELECT - 71 AS col2, - 67
----
-71
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT + CAST( + - 62 AS SIGNED ) * CAST( + + ( - 14 ) AS SIGNED ) col0
----
868

skipif mysql # not compatible
query I rowsort label-8324
SELECT + CAST ( + - 62 AS INTEGER ) * CAST ( + + ( - 14 ) AS INTEGER ) col0
----
868

query I rowsort
SELECT + 41 + 70 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT - MAX( 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-8326
SELECT - MAX ( 95 )
----
-95

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

query I rowsort
SELECT 34 * + ( - - 99 )
----
3366

query I rowsort
SELECT 69 + - 59 AS col1
----
10

query I rowsort
SELECT DISTINCT - 81 * + 89 AS col1
----
-7209

query I rowsort
SELECT ALL + 27 * + 12 * + 13 AS col0
----
4212

query II rowsort
SELECT ALL - 55 + + + 9 - + 52 + - - 14 AS col0, + 37 + - - 60
----
-84
97

query I rowsort
SELECT 59 * - + 64 AS col1
----
-3776

query I rowsort
SELECT ALL + 91 + 17
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8335
SELECT DISTINCT - COUNT( * ) DIV - 35 * - + 5 * + COUNT( DISTINCT - 72 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT - COUNT ( * ) / - 35 * - + 5 * + COUNT ( DISTINCT - 72 ) AS col0
----
0

query II rowsort
SELECT ALL 25, 0 AS col2
----
25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT ALL + 92 - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL + 92 - COUNT ( * )
----
91

query I rowsort
SELECT 58 * + ( - 84 )
----
-4872

onlyif mysql # DIV for integer division: 
query II rowsort label-8339
SELECT - 84 AS col0, 66 DIV 74 AS col0
----
-84
0

skipif mysql # not compatible
query II rowsort label-8339
SELECT - 84 AS col0, 66 / 74 AS col0
----
-84
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT 74 + - ( - 23 ) DIV 79
----
74

skipif mysql # not compatible
query I rowsort label-8340
SELECT 74 + - ( - 23 ) / 79
----
74

query I rowsort
SELECT ALL + 92 - - - 21
----
71

query I rowsort
SELECT DISTINCT + ( NULLIF ( + 74, - 99 ) ) * 3 - 15 AS col2
----
207

query I rowsort
SELECT ALL 16 * + 56 * 57 col0
----
51072

query I rowsort
SELECT - + 20 * + 11 * - + 37
----
8140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8345
SELECT DISTINCT - 9 * - CAST( + 47 AS SIGNED )
----
423

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT - 9 * - CAST ( + 47 AS INTEGER )
----
423

query I rowsort
SELECT + COALESCE ( + + 9, + + 48, - + 89 + + 67 ) AS col2
----
9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8349
SELECT - 62 * + COUNT( * ) * + 17 * + 84, + COUNT( * ) col0
----
-88536
1

skipif mysql # not compatible
query II rowsort label-8349
SELECT - 62 * + COUNT ( * ) * + 17 * + 84, + COUNT ( * ) col0
----
-88536
1

query I rowsort
SELECT DISTINCT - 86 * - + NULLIF ( 96, 25 ) + + - 49
----
8207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8351
SELECT + 89 DIV MAX( 74 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8351
SELECT + 89 / MAX ( 74 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT ALL - - 9 * - CASE - 28 WHEN - 58 THEN + 18 WHEN 8 THEN - ( 8 ) END + - 73 + - 68 + - 74 + - ( - - 62 ) * - + 62 + + COUNT( * ) * - NULLIF ( 89, 47 / ( + + 99 ) - + - 49 + + COUNT( * ) / - - 75 + ( + - 13 ) ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL - - 9 * - CASE - 28 WHEN - 58 THEN + 18 WHEN 8 THEN - ( 8 ) END + - 73 + - 68 + - 74 + - ( - - 62 ) * - + 62 + + COUNT ( * ) * - NULLIF ( 89, 47 / ( + + 99 ) - + - 49 + + COUNT ( * ) / - - 75 + ( + - 13 ) ) / COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 51 * 39 + + 31
----
2020

onlyif mysql # DIV for integer division: 
query I rowsort label-8354
SELECT - - 44 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-8354
SELECT - - 44 / - 33
----
-1

query I rowsort
SELECT + 38 * - 99 + + + 20 + + 17 * - + 71 AS col2
----
-4949

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL - 7 * + + CASE - MIN( - + COALESCE ( - 56, - 28 * + - 17 * 16 ) ) WHEN + COUNT( * ) THEN NULL WHEN - 94 + - 86 THEN 88 + + COUNT( * ) / - COUNT( * ) END + + 39 + - 1 - + - 20 * + COUNT( - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL - 7 * + + CASE - MIN ( - + COALESCE ( - 56, - 28 * + - 17 * 16 ) ) WHEN + COUNT ( * ) THEN NULL WHEN - 94 + - 86 THEN 88 + + COUNT ( * ) / - COUNT ( * ) END + + 39 + - 1 - + - 20 * + COUNT ( - 37 )
----
NULL

query I rowsort
SELECT + 5 - + 9 AS col0
----
-4

query I rowsort
SELECT + 58 * - 36
----
-2088

query I rowsort
SELECT ALL 64 + 97 + - 53 * - + 36 AS col2
----
2069

query I rowsort
SELECT ALL + 23 + + + 81 AS col1
----
104

query I rowsort
SELECT + 28 * 39
----
1092

query II rowsort
SELECT ALL 10 - - 74, + 88 AS col0
----
84
88

query I rowsort
SELECT + 74 + + 61 - - 46
----
181

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT - 98 * - 28 * + 76 * + COUNT( * ) * - 46 col2
----
-9593024

skipif mysql # not compatible
query I rowsort label-8365
SELECT - 98 * - 28 * + 76 * + COUNT ( * ) * - 46 col2
----
-9593024

query II rowsort
SELECT DISTINCT - 51 * - 56, + 90 AS col2
----
2856
90

query I rowsort
SELECT ALL - 33 * + 36
----
-1188

query II rowsort
SELECT ALL 50 * + - 96, + 50 AS col0
----
-4800
50

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8371
SELECT ALL 44 * + + CASE - 75 WHEN - + 28 THEN - 76 * CAST( NULL AS SIGNED ) + - + 83 WHEN - + 93 THEN NULLIF ( + + 43, ( + - COUNT( * ) ) + 72 + + + COUNT( * ) / - COUNT( * ) - + 20 ) ELSE + 44 * + + 46 + - 56 + 49 + - + COUNT( - - 47 ) - + 59 * - + COALESCE ( - NULLIF ( + 61, + 60 ), + ( 76 ) ) END
----
-69652

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL 44 * + + CASE - 75 WHEN - + 28 THEN - 76 * CAST ( NULL AS INTEGER ) + - + 83 WHEN - + 93 THEN NULLIF ( + + 43, ( + - COUNT ( * ) ) + 72 + + + COUNT ( * ) / - COUNT ( * ) - + 20 ) ELSE + 44 * + + 46 + - 56 + 49 + - + COUNT ( - - 47 ) - + 59 * - + COALESCE ( - NULLIF ( + 61, + 60 ), + ( 76 ) ) END
----
-69652

query I rowsort
SELECT ALL - 71 * - + 6
----
426

query I rowsort
SELECT - 93 * + + ( 39 ) col2
----
-3627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8374
SELECT ALL - 53 / + 91 + - ( - 85 ) + - + COUNT( * ) - - 83 + - CAST( NULL AS SIGNED ) * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL - 53 / + 91 + - ( - 85 ) + - + COUNT ( * ) - - 83 + - CAST ( NULL AS INTEGER ) * 93
----
NULL

query I rowsort
SELECT DISTINCT + + 65 * 55 * + 11 + 48
----
39373

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8376
SELECT - SUM( - 51 ) * 39 + - ( + 42 ) DIV 67 col1
----
1989

skipif mysql # not compatible
query I rowsort label-8376
SELECT - SUM ( - 51 ) * 39 + - ( + 42 ) / 67 col1
----
1989

query II rowsort
SELECT DISTINCT - + NULLIF ( - - 47, 67 ) * - 13 + + 57 AS col1, - 72 AS col1
----
668
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-8378
SELECT ALL - 3 * 26 AS col1, + COUNT( * ) AS col0
----
-78
1

skipif mysql # not compatible
query II rowsort label-8378
SELECT ALL - 3 * 26 AS col1, + COUNT ( * ) AS col0
----
-78
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8379
SELECT COALESCE ( 50, + 5 - + 44 + - - ( - 60 ) + 89 DIV - - 4 )
----
50

skipif mysql # not compatible
query I rowsort label-8379
SELECT COALESCE ( 50, + 5 - + 44 + - - ( - 60 ) + 89 / - - 4 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8380
SELECT - + ( - MAX( - 30 ) ) + CAST( 83 AS SIGNED ), 86 DIV 42 AS col2
----
53
2

skipif mysql # not compatible
query II rowsort label-8380
SELECT - + ( - MAX ( - 30 ) ) + CAST ( 83 AS INTEGER ), 86 / 42 AS col2
----
53
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT DISTINCT + COUNT( ALL - 10 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT + COUNT ( ALL - 10 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT + COUNT( * ) * - ( 75 ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-8382
SELECT + COUNT ( * ) * - ( 75 ) col2
----
-75

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

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL + 64 / - CAST ( 88 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8384
SELECT DISTINCT + 1 AS col0, + 64 DIV + 51
----
1
1

skipif mysql # not compatible
query II rowsort label-8384
SELECT DISTINCT + 1 AS col0, + 64 / + 51
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8385
SELECT - COUNT( * ), COALESCE ( - COUNT( * ), - - 82 DIV + 95 - 62, + + 82 * - ( + ( - + 24 ) ) + - 6 )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8385
SELECT - COUNT ( * ), COALESCE ( - COUNT ( * ), - - 82 / + 95 - 62, + + 82 * - ( + ( - + 24 ) ) + - 6 )
----
-1
-1

query I rowsort
SELECT + 4 + + 83 + + 16 + - 13 * 52 * - 18 AS col2
----
12271

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL 36 * + + CASE + - 81 WHEN COUNT( * ) THEN - + SUM( ALL + 2 ) * MAX( DISTINCT + 52 ) + + - 51 + + NULLIF ( - - 1, COUNT( * ) ) WHEN + 82 THEN NULL ELSE + - COUNT( * ) END - - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL 36 * + + CASE + - 81 WHEN COUNT ( * ) THEN - + SUM ( ALL + 2 ) * MAX ( DISTINCT + 52 ) + + - 51 + + NULLIF ( - - 1, COUNT ( * ) ) WHEN + 82 THEN NULL ELSE + - COUNT ( * ) END - - COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-8388
SELECT - 16 * - 77 * + COUNT( * ), 20 AS col0
----
1232
20

skipif mysql # not compatible
query II rowsort label-8388
SELECT - 16 * - 77 * + COUNT ( * ), 20 AS col0
----
1232
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8389
SELECT - CAST( 30 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-8389
SELECT - CAST ( 30 AS INTEGER )
----
-30

query I rowsort
SELECT + 57 + - - 55
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-8391
SELECT 92 * - 1 + + + 30 col1, + COUNT( DISTINCT + 18 ) AS col2
----
-62
1

skipif mysql # not compatible
query II rowsort label-8391
SELECT 92 * - 1 + + + 30 col1, + COUNT ( DISTINCT + 18 ) AS col2
----
-62
1

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

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

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

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

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

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

query II rowsort
SELECT 82 col1, - 31
----
82
-31

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8397
SELECT - + 26 AS col2, 72 DIV - COALESCE ( - 47, - - ( + 38 ) )
----
-26
1

skipif mysql # not compatible
query II rowsort label-8397
SELECT - + 26 AS col2, 72 / - COALESCE ( - 47, - - ( + 38 ) )
----
-26
1

query II rowsort
SELECT ALL + 70 AS col0, 29 AS col0
----
70
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL MIN( DISTINCT - ( 48 ) ) + - - 59 col1
----
11

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL MIN ( DISTINCT - ( 48 ) ) + - - 59 col1
----
11

query I rowsort
SELECT + 35 * + 54
----
1890

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8402
SELECT + NULLIF ( + 25, 32 ) DIV 23 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8402
SELECT + NULLIF ( + 25, 32 ) / 23 AS col2
----
1

query I rowsort
SELECT ALL 27 + + - 33
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8404
SELECT ALL + - 62 + - 25 DIV + - 65 + 77 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL + - 62 + - 25 / + - 65 + 77 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT DISTINCT - ( + MIN( + - NULLIF ( + + 81, + 10 ) ) )
----
81

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT - ( + MIN ( + - NULLIF ( + + 81, + 10 ) ) )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8406
SELECT DISTINCT - 66 + CASE - MIN( ALL + 15 ) WHEN - COUNT( * ) THEN - 51 END, SUM( - 38 ) AS col1
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-8406
SELECT DISTINCT - 66 + CASE - MIN ( ALL + 15 ) WHEN - COUNT ( * ) THEN - 51 END, SUM ( - 38 ) AS col1
----
NULL
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8407
SELECT + 93 + + 32 + - CASE + CASE 38 WHEN - CAST( + + 12 AS SIGNED ) THEN + + 96 END WHEN + 76 * + 37 * - MAX( - 56 ) THEN + 24 * - CAST( 92 AS SIGNED ) + - + COALESCE ( + 80, - 96 + - ( + 22 ) + - + 75 / - - 92 * + - 28 * - + 43 ) + - 82 ELSE NULL END * - 84 * - - 72 - - 89 / - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT + 93 + + 32 + - CASE + CASE 38 WHEN - CAST ( + + 12 AS INTEGER ) THEN + + 96 END WHEN + 76 * + 37 * - MAX ( - 56 ) THEN + 24 * - CAST ( 92 AS INTEGER ) + - + COALESCE ( + 80, - 96 + - ( + 22 ) + - + 75 / - - 92 * + - 28 * - + 43 ) + - 82 ELSE NULL END * - 84 * - - 72 - - 89 / - 82 AS col1
----
NULL

query I rowsort
SELECT 44 * - - 39
----
1716

query II rowsort
SELECT ALL - - 67, COALESCE ( + 1, - 74 ) * 83 + - ( 13 ) + - 89 * + 40 + + 11 * 36 AS col1
----
67
-3094

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT + - NULLIF ( SUM( + 31 ), 72 + CASE + NULLIF ( - + 9, 39 ) WHEN - 13 THEN + COUNT( * ) WHEN + 36 THEN 1 ELSE NULL END ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-8410
SELECT + - NULLIF ( SUM ( + 31 ), 72 + CASE + NULLIF ( - + 9, 39 ) WHEN - 13 THEN + COUNT ( * ) WHEN + 36 THEN 1 ELSE NULL END ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-8411
SELECT + 60 * ( COUNT( * ) ), 20 * - COUNT( * ) + 2 AS col1
----
60
-18

skipif mysql # not compatible
query II rowsort label-8411
SELECT + 60 * ( COUNT ( * ) ), 20 * - COUNT ( * ) + 2 AS col1
----
60
-18

query I rowsort
SELECT 23 + + 50 - - 79 * + + ( 52 )
----
4181

query I rowsort
SELECT DISTINCT + - 44 - 7
----
-51

query I rowsort
SELECT DISTINCT + 50 * + 21 AS col2
----
1050

query I rowsort
SELECT DISTINCT + 77 * + 81 AS col0
----
6237

onlyif mysql # DIV for integer division: 
query II rowsort label-8416
SELECT DISTINCT + 51 * 77 AS col1, - 11 DIV - 51
----
3927
0

skipif mysql # not compatible
query II rowsort label-8416
SELECT DISTINCT + 51 * 77 AS col1, - 11 / - 51
----
3927
0

query I rowsort
SELECT 59 - + 67 * - 7
----
528

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

query I rowsort
SELECT ALL + 60 * - 92 AS col0
----
-5520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8420
SELECT ALL COUNT( * ) DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL COUNT ( * ) / 79 AS col0
----
0

query II rowsort
SELECT 97 * - 69 AS col1, 85 * + 7
----
-6693
595

query I rowsort
SELECT 77 + + + ( - 65 ) * 15
----
-898

query I rowsort
SELECT ( ( 15 ) ) * 53
----
795

query I rowsort
SELECT 87 + 3
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT + 66 * - - 97 * - 80 / + SUM( + + 33 ) + 7 + + COALESCE ( + ( - 26 ), - 61, + + 40 - 15 + ( + 17 ) ) + CASE + + 70 WHEN - - COALESCE ( ( - + 82 ), 69 + - 6 ) + - + 57 THEN - 43 WHEN + ( MIN( ALL - 36 ) ) * - + 24 * SUM( NULLIF ( + 20, - 32 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT + 66 * - - 97 * - 80 / + SUM ( + + 33 ) + 7 + + COALESCE ( + ( - 26 ), - 61, + + 40 - 15 + ( + 17 ) ) + CASE + + 70 WHEN - - COALESCE ( ( - + 82 ), 69 + - 6 ) + - + 57 THEN - 43 WHEN + ( MIN ( ALL - 36 ) ) * - + 24 * SUM ( NULLIF ( + 20, - 32 ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8426
SELECT + COUNT( * ) + - 82, + MIN( 93 ) DIV 26 + - - 86 * + - 68 * + COUNT( * ) * - 98 AS col2
----
-81
573107

skipif mysql # not compatible
query II rowsort label-8426
SELECT + COUNT ( * ) + - 82, + MIN ( 93 ) / 26 + - - 86 * + - 68 * + COUNT ( * ) * - 98 AS col2
----
-81
573107

query I rowsort
SELECT ALL + 88 + + 53 + + 30 * 13
----
531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8428
SELECT 97 + CAST( + CAST( COUNT( - + 89 ) AS SIGNED ) AS SIGNED ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-8428
SELECT 97 + CAST ( + CAST ( COUNT ( - + 89 ) AS INTEGER ) AS INTEGER ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT DISTINCT + NULLIF ( 4, + 30 * + 63 - 86 ) * + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT + NULLIF ( 4, + 30 * + 63 - 86 ) * + COUNT ( * )
----
4

query I rowsort
SELECT + 32 + - + 39
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-8431
SELECT 90 + 50 AS col0, - ( + COUNT( * ) )
----
140
-1

skipif mysql # not compatible
query II rowsort label-8431
SELECT 90 + 50 AS col0, - ( + COUNT ( * ) )
----
140
-1

query I rowsort
SELECT ALL 16 + 10
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8433
SELECT ALL 99 + 19 AS col0, 56 * + 84 + + + MIN( ALL - - 35 )
----
118
4739

skipif mysql # not compatible
query II rowsort label-8433
SELECT ALL 99 + 19 AS col0, 56 * + 84 + + + MIN ( ALL - - 35 )
----
118
4739

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT SUM( + 80 ) + + - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-8434
SELECT SUM ( + 80 ) + + - COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL NULLIF ( + + 3, + + COUNT( * ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL NULLIF ( + + 3, + + COUNT ( * ) ) AS col1
----
3

query I rowsort
SELECT - 82 + + 50
----
-32

query I rowsort
SELECT 46 * + 68 * + 3 AS col2
----
9384

query I rowsort
SELECT + 5 * - 88 + 42 AS col2
----
-398

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT + ( COALESCE ( COUNT( DISTINCT + 33 ), + 40 + - 50 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8439
SELECT + ( COALESCE ( COUNT ( DISTINCT + 33 ), + 40 + - 50 ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8440
SELECT DISTINCT + 43 / + - NULLIF ( + 0, 99 + ( - 65 ) + + - MIN( ALL + - 27 ) ) / - - 27 * - 23 * CAST( NULL AS DECIMAL ) + - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT + 43 / + - NULLIF ( + 0, 99 + ( - 65 ) + + - MIN ( ALL + - 27 ) ) / - - 27 * - 23 * CAST ( NULL AS REAL ) + - 8 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8441
SELECT DISTINCT CAST( NULL AS SIGNED ) * 46 * + CASE + 81 WHEN - 12 THEN NULL WHEN + + 22 THEN 19 * + 10 * + + 52 END * - COUNT( * ) - - - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 46 * + CASE + 81 WHEN - 12 THEN NULL WHEN + + 22 THEN 19 * + 10 * + + 52 END * - COUNT ( * ) - - - 72 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8442
SELECT ALL + 21 * - CAST( - 10 AS SIGNED ) AS col2
----
210

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL + 21 * - CAST ( - 10 AS INTEGER ) AS col2
----
210

query I rowsort
SELECT 69 * - + 9
----
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT MIN( ALL 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8444
SELECT MIN ( ALL 65 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT 69 - - - 39 + 3 + + ( COUNT( * ) ) * + 91 * - - COUNT( * ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-8445
SELECT 69 - - - 39 + 3 + + ( COUNT ( * ) ) * + 91 * - - COUNT ( * ) AS col0
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8446
SELECT DISTINCT MIN( DISTINCT - 57 ) * + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + CAST( NULL AS SIGNED ) - - CASE + 8 WHEN + - 90 THEN NULL ELSE + - 43 END + COUNT( * ) * + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT MIN ( DISTINCT - 57 ) * + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + CAST ( NULL AS INTEGER ) - - CASE + 8 WHEN + - 90 THEN NULL ELSE + - 43 END + COUNT ( * ) * + 60 AS col0
----
NULL

query I rowsort
SELECT 43 * - - 18 col2
----
774

query II rowsort
SELECT + 1 AS col2, 99
----
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8449
SELECT ALL - COUNT( * ) col1, ( + - 16 )
----
-1
-16

skipif mysql # not compatible
query II rowsort label-8449
SELECT ALL - COUNT ( * ) col1, ( + - 16 )
----
-1
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8450
SELECT + COALESCE ( - + 75, - + COUNT( * ) + 3, - 30 DIV - 84 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-8450
SELECT + COALESCE ( - + 75, - + COUNT ( * ) + 3, - 30 / - 84 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT 68 + + - 83 + + + 40 + + 69 * + - SUM( DISTINCT 18 ) * - 12 * + 92 AS col2
----
1371193

skipif mysql # not compatible
query I rowsort label-8451
SELECT 68 + + - 83 + + + 40 + + 69 * + - SUM ( DISTINCT 18 ) * - 12 * + 92 AS col2
----
1371193

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT + 21 * - - 79 + + 3 + - COUNT( * )
----
1661

skipif mysql # not compatible
query I rowsort label-8452
SELECT + 21 * - - 79 + + 3 + - COUNT ( * )
----
1661

query I rowsort
SELECT ALL - COALESCE ( - 49, + ( - + 8 ) - + + NULLIF ( + 61, + NULLIF ( 77, + 5 * ( + + 39 ) ) ) + + + 42 * 99 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT DISTINCT + COUNT( * ) * - - ( - 3 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT + COUNT ( * ) * - - ( - 3 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT COUNT( * ) * - + 95 + - 50 AS col1
----
-145

skipif mysql # not compatible
query I rowsort label-8455
SELECT COUNT ( * ) * - + 95 + - 50 AS col1
----
-145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8456
SELECT - CAST( + 77 AS SIGNED ) * + 73 AS col2, 38 * + 19 * - 57 col0
----
-5621
-41154

skipif mysql # not compatible
query II rowsort label-8456
SELECT - CAST ( + 77 AS INTEGER ) * + 73 AS col2, 38 * + 19 * - 57 col0
----
-5621
-41154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8457
SELECT ALL + 2 + + COALESCE ( - NULLIF ( - - 41, 83 * - CASE + 0 WHEN + 30 + - 96 THEN - 16 + - 11 + + MIN( ALL - 73 ) DIV 72 DIV - - 18 WHEN + 35 THEN + - 98 + + + 89 END + - 14 + - - 12 + - 79 + - + 23 * + 52 ), + 70 DIV + + 0 ) * + + 22
----
-900

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL + 2 + + COALESCE ( - NULLIF ( - - 41, 83 * - CASE + 0 WHEN + 30 + - 96 THEN - 16 + - 11 + + MIN ( ALL - 73 ) / 72 / - - 18 WHEN + 35 THEN + - 98 + + + 89 END + - 14 + - - 12 + - 79 + - + 23 * + 52 ), + 70 / + + 0 ) * + + 22
----
-900

query I rowsort
SELECT ALL + 29 * - - 48 AS col1
----
1392

onlyif mysql # aggregate syntax: 
query II rowsort label-8459
SELECT ALL COUNT( * ), + 34 * - ( + 33 ) * + 45 - + - 27 AS col0
----
1
-50463

skipif mysql # not compatible
query II rowsort label-8459
SELECT ALL COUNT ( * ), + 34 * - ( + 33 ) * + 45 - + - 27 AS col0
----
1
-50463

query I rowsort
SELECT - 91 + 83
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL + COALESCE ( + - 4, - 73, - COUNT( * ) + 62 ) + + 38 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL + COALESCE ( + - 4, - 73, - COUNT ( * ) + 62 ) + + 38 AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT - CAST( + + COUNT( * ) AS SIGNED ) * - 14
----
14

skipif mysql # not compatible
query I rowsort label-8462
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) * - 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT DISTINCT - MIN( DISTINCT - ( 63 ) ) + 79 + 33 + - - 7 * - + MAX( ALL - 46 ) AS col1
----
497

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT - MIN ( DISTINCT - ( 63 ) ) + 79 + 33 + - - 7 * - + MAX ( ALL - 46 ) AS col1
----
497

query I rowsort
SELECT DISTINCT + 10 + - - 85
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8465
SELECT - - CAST( - 53 AS SIGNED ) DIV ( - + 95 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8465
SELECT - - CAST ( - 53 AS INTEGER ) / ( - + 95 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8466
SELECT + + 71 * - 58 * + 9 AS col2, + COUNT( * )
----
-37062
1

skipif mysql # not compatible
query II rowsort label-8466
SELECT + + 71 * - 58 * + 9 AS col2, + COUNT ( * )
----
-37062
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT ALL - + 78 / - + 39 + - CASE 67 WHEN - AVG ( 92 ) THEN NULL WHEN - 98 THEN - + ( + 98 ) - - CASE - 38 WHEN 61 / + 15 THEN - 76 * + 36 + 5 ELSE + COUNT( * ) END END + ( - + 86 ) + - + 98 * - 18 + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL - + 78 / - + 39 + - CASE 67 WHEN - AVG ( 92 ) THEN NULL WHEN - 98 THEN - + ( + 98 ) - - CASE - 38 WHEN 61 / + 15 THEN - 76 * + 36 + 5 ELSE + COUNT ( * ) END END + ( - + 86 ) + - + 98 * - 18 + + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT DISTINCT - MAX( 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT - MAX ( 27 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT + - CASE - 55 WHEN + + SUM( - 50 ) THEN NULL WHEN 57 THEN 92 WHEN - 48 / + + 95 THEN + 99 + 67 + - 80 - - COUNT( * ) + 11 END * + NULLIF ( - + 85, - ( 34 ) / + 60 + 29 * 89 ) * COUNT( * ) - - - NULLIF ( + 85, - 23 ) * + 85 - - 52 + + + ( + 49 ) - - + 99 + - 35 / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT + - CASE - 55 WHEN + + SUM ( - 50 ) THEN NULL WHEN 57 THEN 92 WHEN - 48 / + + 95 THEN + 99 + 67 + - 80 - - COUNT ( * ) + 11 END * + NULLIF ( - + 85, - ( 34 ) / + 60 + 29 * 89 ) * COUNT ( * ) - - - NULLIF ( + 85, - 23 ) * + 85 - - 52 + + + ( + 49 ) - - + 99 + - 35 / + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8470
SELECT - + 68, SUM( - ( + + 84 ) ) col0
----
-68
-84

skipif mysql # not compatible
query II rowsort label-8470
SELECT - + 68, SUM ( - ( + + 84 ) ) col0
----
-68
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8471
SELECT ALL + COUNT( * ) - 25 + CAST( - 77 AS SIGNED ) * + 25 AS col1
----
-1949

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL + COUNT ( * ) - 25 + CAST ( - 77 AS INTEGER ) * + 25 AS col1
----
-1949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8472
SELECT - 19 - + - 59 + 3, MIN( + 26 ) + + - 71 * + COALESCE ( 51, + 40, - 15 + - COALESCE ( - 85, + - 39 * + + COALESCE ( + - CAST( NULL AS SIGNED ), + MIN( ALL 52 ) * + + COUNT( * ) DIV - MIN( + + 85 ) + COUNT( * ) ) + - 67, - 51 * 71 ) ) AS col1
----
43
-3595

skipif mysql # not compatible
query II rowsort label-8472
SELECT - 19 - + - 59 + 3, MIN ( + 26 ) + + - 71 * + COALESCE ( 51, + 40, - 15 + - COALESCE ( - 85, + - 39 * + + COALESCE ( + - CAST ( NULL AS INTEGER ), + MIN ( ALL 52 ) * + + COUNT ( * ) / - MIN ( + + 85 ) + COUNT ( * ) ) + - 67, - 51 * 71 ) ) AS col1
----
43
-3595

query I rowsort
SELECT - 33 * 39 * 19
----
-24453

query II rowsort
SELECT ALL 96 AS col0, + 70
----
96
70

query I rowsort
SELECT + - 95 - + 81
----
-176

query II rowsort
SELECT ALL + 7 AS col0, + 97
----
7
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8477
SELECT + COUNT( * ) + - CAST( - + ( + 25 ) AS SIGNED ) + + 93
----
119

skipif mysql # not compatible
query I rowsort label-8477
SELECT + COUNT ( * ) + - CAST ( - + ( + 25 ) AS INTEGER ) + + 93
----
119

query I rowsort
SELECT + ( + + 89 )
----
89

query II rowsort
SELECT ALL + 23 AS col0, 60 AS col0
----
23
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8480
SELECT + 28 + + 12 + + 54 + - 39 * COUNT( * ) DIV 93
----
94

skipif mysql # not compatible
query I rowsort label-8480
SELECT + 28 + + 12 + + 54 + - 39 * COUNT ( * ) / 93
----
94

query I rowsort
SELECT ALL 40 * 23
----
920

query I rowsort
SELECT + 45 * - 10
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL 61 * 58 + 98 + COUNT( * ) AS col0
----
3637

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL 61 * 58 + 98 + COUNT ( * ) AS col0
----
3637

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT + 70 * - COUNT( * ) + + 16 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT + 70 * - COUNT ( * ) + + 16 AS col1
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8485
SELECT ALL - 87 * - CAST( NULL AS DECIMAL ) + + 20 * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL - 87 * - CAST ( NULL AS REAL ) + + 20 * 58 AS col2
----
NULL

query I rowsort
SELECT + 15 * - 20 AS col2
----
-300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8487
SELECT CASE 66 WHEN + 50 THEN - 79 * - - 28 WHEN - + 6 + - + AVG ( + CAST( NULL AS SIGNED ) ) THEN NULL WHEN 57 - 20 + + 32 THEN NULL END AS col2, - CASE + + COUNT( * ) WHEN 73 THEN + 65 END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8487
SELECT CASE 66 WHEN + 50 THEN - 79 * - - 28 WHEN - + 6 + - + AVG ( + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 57 - 20 + + 32 THEN NULL END AS col2, - CASE + + COUNT ( * ) WHEN 73 THEN + 65 END AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT ALL MIN( DISTINCT - 61 ) * - COUNT( * ) * - 13 + - 70 - + + MAX( 16 ) + ( - + 28 ) * - COUNT( * ) * + + 74
----
1193

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL MIN ( DISTINCT - 61 ) * - COUNT ( * ) * - 13 + - 70 - + + MAX ( 16 ) + ( - + 28 ) * - COUNT ( * ) * + + 74
----
1193

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT + ( - 13 ) * COUNT( DISTINCT + 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-8489
SELECT + ( - 13 ) * COUNT ( DISTINCT + 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT COALESCE ( - 49, + 30 - COUNT( * ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-8490
SELECT COALESCE ( - 49, + 30 - COUNT ( * ) ) AS col2
----
-49

query I rowsort
SELECT + ( ( - 40 ) )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8492
SELECT - 68 DIV MAX( DISTINCT + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-8492
SELECT - 68 / MAX ( DISTINCT + 88 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL + 60 * + CASE + 24 WHEN - - 17 THEN + 33 WHEN + 36 THEN NULL END + - COUNT( * ) * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL + 60 * + CASE + 24 WHEN - - 17 THEN + 33 WHEN + 36 THEN NULL END + - COUNT ( * ) * - 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8494
SELECT CAST( NULL AS SIGNED ) * + - COUNT( * ) * + 93 * - 97 - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8494
SELECT CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * + 93 * - 97 - 48 AS col0
----
NULL

query I rowsort
SELECT - 85 * - 30
----
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT - COUNT( * ) * + 9 - 10 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8496
SELECT - COUNT ( * ) * + 9 - 10 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-8497
SELECT + + COUNT( * ) + 52, 84 AS col1
----
53
84

skipif mysql # not compatible
query II rowsort label-8497
SELECT + + COUNT ( * ) + 52, 84 AS col1
----
53
84

query II rowsort
SELECT 3 AS col0, 98 AS col2
----
3
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8499
SELECT - CAST( + NULLIF ( + 34, - - COUNT( + 61 ) ) AS SIGNED ) * 20
----
-680

skipif mysql # not compatible
query I rowsort label-8499
SELECT - CAST ( + NULLIF ( + 34, - - COUNT ( + 61 ) ) AS INTEGER ) * 20
----
-680

query II rowsort
SELECT ALL - 39, 88 AS col2
----
-39
88

query I rowsort
SELECT - 17 + 25 * 17 AS col2
----
408

query I rowsort
SELECT - - 48 * + 96 + + + 19 - + 86 AS col2
----
4541

onlyif mysql # aggregate syntax: 
query II rowsort label-8503
SELECT ALL 25 AS col1, MIN( + - 20 )
----
25
-20

skipif mysql # not compatible
query II rowsort label-8503
SELECT ALL 25 AS col1, MIN ( + - 20 )
----
25
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT - + ( + 25 ) + - - 13 * + COUNT( * ) * - MAX( CASE + NULLIF ( - 48, 29 ) WHEN - - 22 THEN 11 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8504
SELECT - + ( + 25 ) + - - 13 * + COUNT ( * ) * - MAX ( CASE + NULLIF ( - 48, 29 ) WHEN - - 22 THEN 11 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8505
SELECT DISTINCT - + 8 DIV SUM( - 38 )
----
0

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT - + 8 / SUM ( - 38 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT + 80 + 89 + + 89 * - + COUNT( - - 6 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8506
SELECT + 80 + 89 + + 89 * - + COUNT ( - - 6 ) AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8507
SELECT + MAX( + + 92 ) DIV 71 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8507
SELECT + MAX ( + + 92 ) / 71 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT + SUM( ALL - 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8508
SELECT + SUM ( ALL - 78 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8509
SELECT ALL - 47 * + COUNT( * ) AS col0, + 15
----
-47
15

skipif mysql # not compatible
query II rowsort label-8509
SELECT ALL - 47 * + COUNT ( * ) AS col0, + 15
----
-47
15

query I rowsort
SELECT ALL 34 + 63
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT ALL MIN( DISTINCT 12 ) + 33 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL MIN ( DISTINCT 12 ) + 33 AS col1
----
45

query I rowsort
SELECT ALL - ( + - 87 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8513
SELECT COUNT( * ) + - 79 AS col2, 6
----
-78
6

skipif mysql # not compatible
query II rowsort label-8513
SELECT COUNT ( * ) + - 79 AS col2, 6
----
-78
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT DISTINCT COUNT( * ) + + + 67 * + 82 AS col2
----
5495

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT COUNT ( * ) + + + 67 * + 82 AS col2
----
5495

query I rowsort
SELECT ALL 98 + + + 74
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT COUNT( - 13 ) + - ( - - 97 ) + + 5 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-8516
SELECT COUNT ( - 13 ) + - ( - - 97 ) + + 5 AS col2
----
-91

query I rowsort
SELECT DISTINCT + 57 + 62 AS col0
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-8518
SELECT - 75 * CASE - 56 WHEN + 58 THEN NULL WHEN - 27 * - 62 + - 59 THEN + 63 * - + 60 + - ( + - 31 ) DIV - 63 ELSE + + 57 * 78 END + + ( - + 10 ) AS col0
----
-333460

skipif mysql # not compatible
query I rowsort label-8518
SELECT - 75 * CASE - 56 WHEN + 58 THEN NULL WHEN - 27 * - 62 + - 59 THEN + 63 * - + 60 + - ( + - 31 ) / - 63 ELSE + + 57 * 78 END + + ( - + 10 ) AS col0
----
-333460

query I rowsort
SELECT DISTINCT 97 + - 35 * 89 + 2
----
-3016

query I rowsort
SELECT DISTINCT 77 * + ( - 99 )
----
-7623

query I rowsort
SELECT 72 + + 22 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT DISTINCT - 7 * + - 28 * + + COALESCE ( 1, 41 * COUNT( * ) + + 60 ) AS col0
----
196

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT - 7 * + - 28 * + + COALESCE ( 1, 41 * COUNT ( * ) + + 60 ) AS col0
----
196

query II rowsort
SELECT ALL 5 - - 40 col0, + 53 AS col0
----
45
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8524
SELECT CAST( - + 23 AS SIGNED ) * + 92
----
-2116

skipif mysql # not compatible
query I rowsort label-8524
SELECT CAST ( - + 23 AS INTEGER ) * + 92
----
-2116

query II rowsort
SELECT ALL ( - 58 ), 64 AS col2
----
-58
64

query II rowsort
SELECT 75 * 93 AS col0, 47 AS col0
----
6975
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT + CASE MAX( ALL - ( 80 ) ) WHEN + COUNT( * ) THEN - ( 89 ) ELSE - 46 END + 23
----
-23

skipif mysql # not compatible
query I rowsort label-8527
SELECT + CASE MAX ( ALL - ( 80 ) ) WHEN + COUNT ( * ) THEN - ( 89 ) ELSE - 46 END + 23
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT ALL + MAX( ALL + - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL + MAX ( ALL + - 60 )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8529
SELECT - 78 * 62 DIV 87 + 86 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8529
SELECT - 78 * 62 / 87 + 86 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT + 17 - - - SUM( ALL 81 ) * ( + 70 ) col1
----
-5653

skipif mysql # not compatible
query I rowsort label-8530
SELECT + 17 - - - SUM ( ALL 81 ) * ( + 70 ) col1
----
-5653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8531
SELECT - - COUNT( ALL + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8531
SELECT - - COUNT ( ALL + + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT 17 + - + 41 + - + 83 * 40 AS col0
----
-3344

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT DISTINCT - CASE - 32 WHEN 52 / + + 37 * 41 * + - 7 * + COUNT( * ) THEN NULL WHEN + 58 THEN - 18 * + + 7 / 47 WHEN - + 55 THEN NULL END + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8533
SELECT DISTINCT - CASE - 32 WHEN 52 / + + 37 * 41 * + - 7 * + COUNT ( * ) THEN NULL WHEN + 58 THEN - 18 * + + 7 / 47 WHEN - + 55 THEN NULL END + - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT 81 * COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8534
SELECT 81 * COUNT ( * ) AS col0
----
81

query I rowsort
SELECT ALL - ( + + CASE - 91 WHEN 82 * - - 41 THEN 65 END ) + 90
----
NULL

query I rowsort
SELECT 68 * 51
----
3468

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT 70 / + - CASE 16 WHEN 73 - - 13 THEN - - 46 WHEN - ( + MIN( - 95 ) ) * 63 THEN NULL ELSE NULL END + + 2 + 76 / 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8537
SELECT 70 / + - CASE 16 WHEN 73 - - 13 THEN - - 46 WHEN - ( + MIN ( - 95 ) ) * 63 THEN NULL ELSE NULL END + + 2 + 76 / 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8538
SELECT ALL + CASE - COALESCE ( + CAST( - 20 AS DECIMAL ), + 21 * - CAST( NULL AS SIGNED ) - 55, + 19 ) WHEN 9 + + + MAX( - - 83 ) THEN NULL WHEN + 77 * - + CAST( + 45 AS SIGNED ) THEN + - COUNT( * ) END + + - 3 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL + CASE - COALESCE ( + CAST ( - 20 AS REAL ), + 21 * - CAST ( NULL AS INTEGER ) - 55, + 19 ) WHEN 9 + + + MAX ( - - 83 ) THEN NULL WHEN + 77 * - + CAST ( + 45 AS INTEGER ) THEN + - COUNT ( * ) END + + - 3 * + COUNT ( * )
----
NULL

query I rowsort
SELECT 93 * + - 19
----
-1767

query I rowsort
SELECT 96 * 29
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT ALL + COUNT( * ) * - 55
----
-55

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL + COUNT ( * ) * - 55
----
-55

query I rowsort
SELECT ALL + 71 - + 9
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT DISTINCT - MIN( + + 56 ) * 39 AS col1
----
-2184

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT - MIN ( + + 56 ) * 39 AS col1
----
-2184

onlyif mysql # aggregate syntax: 
query II rowsort label-8544
SELECT ALL MIN( - - ( 4 ) ) - - - 38, 11 + + - CASE 87 WHEN + - 18 THEN COUNT( * ) WHEN - 86 THEN NULL ELSE NULL END col0
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-8544
SELECT ALL MIN ( - - ( 4 ) ) - - - 38, 11 + + - CASE 87 WHEN + - 18 THEN COUNT ( * ) WHEN - 86 THEN NULL ELSE NULL END col0
----
-34
NULL

query I rowsort
SELECT 31 * - + 34
----
-1054

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT ALL - ( + - 56 ) * + 95 DIV 92 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL - ( + - 56 ) * + 95 / 92 / 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT SUM( ALL + 19 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-8547
SELECT SUM ( ALL + 19 ) col0
----
19

query I rowsort
SELECT + ( + + 3 ) - 92 AS col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8549
SELECT + NULLIF ( + CASE - + ( - CAST( - 99 AS DECIMAL ) ) WHEN 31 THEN 76 WHEN + 83 / - ( - 29 ) THEN NULL ELSE ( - COUNT( * ) ) END, + NULLIF ( + + 80, + - 15 - COUNT( + ( - + 54 ) ) / COUNT( * ) ) * - - MIN( COALESCE ( - + 98, + ( - 54 ), - + 67 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8549
SELECT + NULLIF ( + CASE - + ( - CAST ( - 99 AS REAL ) ) WHEN 31 THEN 76 WHEN + 83 / - ( - 29 ) THEN NULL ELSE ( - COUNT ( * ) ) END, + NULLIF ( + + 80, + - 15 - COUNT ( + ( - + 54 ) ) / COUNT ( * ) ) * - - MIN ( COALESCE ( - + 98, + ( - 54 ), - + 67 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT - ( - - COUNT( * ) ) * + COUNT( * ) - + 59 + NULLIF ( + COUNT( * ), - 31 ) + + 66 * - - 70 AS col1
----
4561

skipif mysql # not compatible
query I rowsort label-8550
SELECT - ( - - COUNT ( * ) ) * + COUNT ( * ) - + 59 + NULLIF ( + COUNT ( * ), - 31 ) + + 66 * - - 70 AS col1
----
4561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8551
SELECT - COUNT( * ) * + - 59 DIV + COUNT( ALL ( 41 ) ) + + + 82 + + 47 AS col1
----
188

skipif mysql # not compatible
query I rowsort label-8551
SELECT - COUNT ( * ) * + - 59 / + COUNT ( ALL ( 41 ) ) + + + 82 + + 47 AS col1
----
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8552
SELECT - 99 * + CAST( NULL AS SIGNED ) * + + 52 * + ( + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT - 99 * + CAST ( NULL AS INTEGER ) * + + 52 * + ( + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 38 * + 14 AS col0
----
532

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8554
SELECT - COUNT( * ) DIV - 64 + - COUNT( * ) AS col1, + 46
----
-1
46

skipif mysql # not compatible
query II rowsort label-8554
SELECT - COUNT ( * ) / - 64 + - COUNT ( * ) AS col1, + 46
----
-1
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8555
SELECT DISTINCT + ( + 62 ) DIV COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT + ( + 62 ) / COUNT ( * ) AS col1
----
62

query I rowsort
SELECT 89 - - 61
----
150

query I rowsort
SELECT ALL 96 * - + 84 AS col0
----
-8064

query I rowsort
SELECT - ( - 77 ) + - 30 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT COUNT( * ) - - NULLIF ( + 38, + 42 )
----
39

skipif mysql # not compatible
query I rowsort label-8559
SELECT COUNT ( * ) - - NULLIF ( + 38, + 42 )
----
39

query I rowsort
SELECT + 49 - - 11 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT DISTINCT MIN( 42 )
----
42

skipif mysql # not compatible
query I rowsort label-8561
SELECT DISTINCT MIN ( 42 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8562
SELECT ALL 41 DIV 24 DIV + MIN( 9 ) - - 26 * + 66 * 99 AS col0
----
169884

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL 41 / 24 / + MIN ( 9 ) - - 26 * + 66 * 99 AS col0
----
169884

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT ALL - 52 + COUNT( + 85 ) + 23 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL - 52 + COUNT ( + 85 ) + 23 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT + COUNT( * ) + - + 17 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8564
SELECT + COUNT ( * ) + - + 17 AS col1
----
-16

query I rowsort
SELECT ALL 85 + 71
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8566
SELECT + CAST( NULL AS SIGNED ) + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT + CAST ( NULL AS INTEGER ) + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT + COUNT( * ) + + 27 * + 69 col0
----
1864

skipif mysql # not compatible
query I rowsort label-8567
SELECT + COUNT ( * ) + + 27 * + 69 col0
----
1864

query II rowsort
SELECT DISTINCT 22 + - 60, 41 AS col2
----
-38
41

query I rowsort
SELECT - 51 + + + 32 AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8570
SELECT ALL COUNT( DISTINCT - + 43 ) + + 4 DIV + 32 * + - 88 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL COUNT ( DISTINCT - + 43 ) + + 4 / + 32 * + - 88 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT + COALESCE ( + 6, - COUNT( * ), - - 83 * 99 * - ( + - 7 ) - - COUNT( * ) * + - COUNT( ALL + 97 ) )
----
6

skipif mysql # not compatible
query I rowsort label-8571
SELECT + COALESCE ( + 6, - COUNT ( * ), - - 83 * 99 * - ( + - 7 ) - - COUNT ( * ) * + - COUNT ( ALL + 97 ) )
----
6

query I rowsort
SELECT 75 * 2 + 1
----
151

query I rowsort
SELECT DISTINCT 36 * 5 - - 61
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL - 62 * + 8 - ( + - COUNT( * ) ) + - + COUNT( + 29 ) * + MAX( ALL - - 96 ) - - 50 * - + 65
----
-3841

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL - 62 * + 8 - ( + - COUNT ( * ) ) + - + COUNT ( + 29 ) * + MAX ( ALL - - 96 ) - - 50 * - + 65
----
-3841

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT DISTINCT + MIN( DISTINCT + ( 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT + MIN ( DISTINCT + ( 17 ) )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT - 26 - 44 + + 2 * - COUNT( * ) + 22 * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-8576
SELECT - 26 - 44 + + 2 * - COUNT ( * ) + 22 * - COUNT ( * )
----
-94

query I rowsort
SELECT - 85 * - + 31 AS col2
----
2635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8578
SELECT + ( + CASE + COUNT( * ) WHEN - SUM( DISTINCT - 67 ) THEN 33 + CAST( NULL AS SIGNED ) ELSE + - ( - + 88 ) + - 0 END )
----
88

skipif mysql # not compatible
query I rowsort label-8578
SELECT + ( + CASE + COUNT ( * ) WHEN - SUM ( DISTINCT - 67 ) THEN 33 + CAST ( NULL AS INTEGER ) ELSE + - ( - + 88 ) + - 0 END )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8579
SELECT - COUNT( * ) + + 33 * + CAST( 23 AS SIGNED ) * - - 55 * + MAX( DISTINCT - 83 ) * - - 11
----
-38113186

skipif mysql # not compatible
query I rowsort label-8579
SELECT - COUNT ( * ) + + 33 * + CAST ( 23 AS INTEGER ) * - - 55 * + MAX ( DISTINCT - 83 ) * - - 11
----
-38113186

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT COUNT( * ) * - 7 + - + 35 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-8580
SELECT COUNT ( * ) * - 7 + - + 35 AS col2
----
-42

query II rowsort
SELECT ALL - 58 * - ( + 41 ) - 3 AS col0, 95 AS col2
----
2375
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT - COUNT( * ) * + - 28 + 23
----
51

skipif mysql # not compatible
query I rowsort label-8582
SELECT - COUNT ( * ) * + - 28 + 23
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT DISTINCT + SUM( ALL - 93 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT + SUM ( ALL - 93 ) AS col2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8584
SELECT - + 86 + - SUM( + + 26 ) + 31 * 34 DIV COUNT( * ) AS col2
----
942

skipif mysql # not compatible
query I rowsort label-8584
SELECT - + 86 + - SUM ( + + 26 ) + 31 * 34 / COUNT ( * ) AS col2
----
942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8585
SELECT - + 42 * - - CAST( - 42 AS SIGNED )
----
1764

skipif mysql # not compatible
query I rowsort label-8585
SELECT - + 42 * - - CAST ( - 42 AS INTEGER )
----
1764

query I rowsort
SELECT DISTINCT + 14 + COALESCE ( + 48, + 27 ) + 10 AS col0
----
72

query I rowsort
SELECT - 99 * + - 33 AS col0
----
3267

query I rowsort
SELECT DISTINCT + 54 + + - 21 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL + SUM( - + 62 ) + COALESCE ( + 57, + 92 * - + COUNT( 14 ) + + 55 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL + SUM ( - + 62 ) + COALESCE ( + 57, + 92 * - + COUNT ( 14 ) + + 55 ) AS col0
----
-5

query I rowsort
SELECT ALL + 88 + + - 87 AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8591
SELECT 37 AS col1, + ( - + 65 ) + + CAST( NULL AS DECIMAL )
----
37
NULL

skipif mysql # not compatible
query II rowsort label-8591
SELECT 37 AS col1, + ( - + 65 ) + + CAST ( NULL AS REAL )
----
37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT - COUNT( DISTINCT + 84 ) + + - 8 * - 69 * 31 col2
----
17111

skipif mysql # not compatible
query I rowsort label-8592
SELECT - COUNT ( DISTINCT + 84 ) + + - 8 * - 69 * 31 col2
----
17111

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT - SUM( DISTINCT - 20 ) col1
----
20

skipif mysql # not compatible
query I rowsort label-8593
SELECT - SUM ( DISTINCT - 20 ) col1
----
20

query I rowsort
SELECT + 93 + + 14
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-8595
SELECT + 51 DIV + 65 * + - 8 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8595
SELECT + 51 / + 65 * + - 8 AS col2
----
0

query I rowsort
SELECT + 63 * 86 col0
----
5418

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT + 69 * - + COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8597
SELECT + 69 * - + COUNT ( * ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + ( + 64 ) - 6 + - + COUNT( ALL - + 59 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-8598
SELECT + ( + 64 ) - 6 + - + COUNT ( ALL - + 59 ) AS col1
----
57

query II rowsort
SELECT ALL + 16 * - 53 * - + 75 AS col2, 84 AS col1
----
63600
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8600
SELECT DISTINCT 10 DIV + 71 * 93
----
0

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT 10 / + 71 * 93
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT ALL 21 - + + 16 - - 99 DIV 35 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL 21 - + + 16 - - 99 / 35 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL COUNT( 33 )
----
1

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL COUNT ( 33 )
----
1

query I rowsort
SELECT + 9 * 57 AS col0
----
513

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8604
SELECT 44 DIV + 12 + + - 65 * - - COUNT( * ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-8604
SELECT 44 / + 12 + + - 65 * - - COUNT ( * ) AS col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8605
SELECT - CASE - - 16 WHEN COUNT( + 77 ) - - + 63 - + 21 THEN CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN - COUNT( * ) ELSE NULL END * + COALESCE ( - 93, - 93 ) - + - 33 + + 42 / + 31 * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT - CASE - - 16 WHEN COUNT ( + 77 ) - - + 63 - + 21 THEN CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END * + COALESCE ( - 93, - 93 ) - + - 33 + + 42 / + 31 * 93
----
NULL

query I rowsort
SELECT + 73 * 37
----
2701

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8607
SELECT DISTINCT CAST( NULL AS SIGNED ) * NULLIF ( + + 51, + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT CAST ( NULL AS INTEGER ) * NULLIF ( + + 51, + 14 )
----
NULL

query I rowsort
SELECT ALL 15 * - 20
----
-300

query I rowsort
SELECT + 54 * - 57 col1
----
-3078

query I rowsort
SELECT DISTINCT - 59 * + - 36 col1
----
2124

onlyif mysql # DIV for integer division: 
query I rowsort label-8611
SELECT ALL - 55 DIV - - 58 + + 33 + 92
----
125

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL - 55 / - - 58 + + 33 + 92
----
125

query I rowsort
SELECT ALL + - NULLIF ( - 89, - 41 - 81 / + 17 ) AS col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT - - CAST( NULL AS SIGNED ) / + 30 + + 24 + + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT - - CAST ( NULL AS INTEGER ) / + 30 + + 24 + + + 94
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8614
SELECT ALL - - 98 DIV COUNT( * ) + 42 AS col0
----
140

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL - - 98 / COUNT ( * ) + 42 AS col0
----
140

query I rowsort
SELECT + ( - - 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT + + 46 + + COUNT( ALL - 23 ) + + - 77 * + 43 * + + 30
----
-99283

skipif mysql # not compatible
query I rowsort label-8616
SELECT + + 46 + + COUNT ( ALL - 23 ) + + - 77 * + 43 * + + 30
----
-99283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8617
SELECT ALL - 77 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL - 77 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8618
SELECT + - MIN( DISTINCT 27 ) DIV - MAX( + + 61 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8618
SELECT + - MIN ( DISTINCT 27 ) / - MAX ( + + 61 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT - 17 DIV - 82 * - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8619
SELECT - 17 / - 82 * - 66 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT + 57 - + COUNT( * ) + - 44
----
12

skipif mysql # not compatible
query I rowsort label-8620
SELECT + 57 - + COUNT ( * ) + - 44
----
12

query I rowsort
SELECT - ( - + 97 ) * 88 * + - 36
----
-307296

query I rowsort
SELECT ALL 37 * + 49 + - ( 52 ) AS col1
----
1761

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8623
SELECT ALL 44 DIV + 47 * + COALESCE ( COUNT( * ), + MAX( DISTINCT 7 ), + 3 + + + COUNT( * ) - 50 * COUNT( * ) * + 80 + + COUNT( * ) * + COUNT( * ) * COUNT( * ) - - + 45 * - 56 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL 44 / + 47 * + COALESCE ( COUNT ( * ), + MAX ( DISTINCT 7 ), + 3 + + + COUNT ( * ) - 50 * COUNT ( * ) * + 80 + + COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) - - + 45 * - 56 ) AS col2
----
0

query I rowsort
SELECT ALL - + 24 * - ( 47 )
----
1128

onlyif mysql # aggregate syntax: 
query II rowsort label-8625
SELECT - COALESCE ( + COUNT( * ), - 64 ) AS col1, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-8625
SELECT - COALESCE ( + COUNT ( * ), - 64 ) AS col1, COUNT ( * )
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT ALL + COALESCE ( + + ( - 42 ), + COUNT( * ) * + 43 + + COUNT( * ) + - 45 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + COALESCE ( + + ( - 42 ), + COUNT ( * ) * + 43 + + COUNT ( * ) + - 45 ) AS col1
----
-42

query I rowsort
SELECT - 3 * 85 * - 24 - + + NULLIF ( + 93, - 66 ) + - 26 * + - 90
----
8367

query I rowsort
SELECT 16 + + 21 AS col0
----
37

query I rowsort
SELECT 97 + + 66
----
163

query I rowsort
SELECT 6 + + 51 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8631
SELECT ALL 59 AS col2, - 8 DIV CAST( + + 70 AS SIGNED )
----
59
0

skipif mysql # not compatible
query II rowsort label-8631
SELECT ALL 59 AS col2, - 8 / CAST ( + + 70 AS INTEGER )
----
59
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8632
SELECT 16 + 27 DIV COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8632
SELECT 16 + 27 / COUNT ( * ) AS col2
----
43

query II rowsort
SELECT ALL 12 col1, + 6 - - + 58 + + + 44 * - 48 col0
----
12
-2048

query I rowsort
SELECT 22 * 81 AS col0
----
1782

query II rowsort
SELECT - 68 AS col2, + 30 AS col2
----
-68
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8636
SELECT 65 AS col0, - COUNT( * )
----
65
-1

skipif mysql # not compatible
query II rowsort label-8636
SELECT 65 AS col0, - COUNT ( * )
----
65
-1

query I rowsort
SELECT ALL 68 * + 41
----
2788

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8638
SELECT 12 DIV + + COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8638
SELECT 12 / + + COUNT ( * ) AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8639
SELECT ( + CAST( NULL AS SIGNED ) ) + SUM( - + COALESCE ( + 38, - 87 - + 58 - - 50 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT ( + CAST ( NULL AS INTEGER ) ) + SUM ( - + COALESCE ( + 38, - 87 - + 58 - - 50 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8640
SELECT - 71 * COUNT( * ) * CAST( NULL AS SIGNED ) * - + 27 + + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT - 71 * COUNT ( * ) * CAST ( NULL AS INTEGER ) * - + 27 + + 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT DISTINCT + CASE 34 WHEN + - 0 THEN NULL WHEN - + 98 * 21 + - COUNT( * ) * COUNT( * ) THEN + ( ( - 96 ) ) + + 76 END * + 39 + 11 * 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT + CASE 34 WHEN + - 0 THEN NULL WHEN - + 98 * 21 + - COUNT ( * ) * COUNT ( * ) THEN + ( ( - 96 ) ) + + 76 END * + 39 + 11 * 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT DISTINCT + ( - + 23 ) * - - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT + ( - + 23 ) * - - COUNT ( * )
----
-23

query II rowsort
SELECT 63 AS col2, 82 AS col1
----
63
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8644
SELECT DISTINCT - 47, 24 * - - CAST( NULL AS SIGNED ) + + + 55 + 89 AS col2
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-8644
SELECT DISTINCT - 47, 24 * - - CAST ( NULL AS INTEGER ) + + + 55 + 89 AS col2
----
-47
NULL

query II rowsort
SELECT ALL - 72 + + 95, - 66 * + 60 AS col1
----
23
-3960

onlyif mysql # aggregate syntax: 
query II rowsort label-8646
SELECT DISTINCT 0 + + + 88, + COUNT( * ) AS col2
----
88
1

skipif mysql # not compatible
query II rowsort label-8646
SELECT DISTINCT 0 + + + 88, + COUNT ( * ) AS col2
----
88
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8647
SELECT ALL COALESCE ( - COUNT( * ), + 14 + - COUNT( * ), 46 DIV - 50 ) + - - MIN( DISTINCT 9 )
----
8

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL COALESCE ( - COUNT ( * ), + 14 + - COUNT ( * ), 46 / - 50 ) + - - MIN ( DISTINCT 9 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8648
SELECT 95 + - + COUNT( * ) + CAST( - COALESCE ( - ( - + 97 ), - + 50 ) AS SIGNED ) + + 9 * - NULLIF ( - + 47, - 40 )
----
420

skipif mysql # not compatible
query I rowsort label-8648
SELECT 95 + - + COUNT ( * ) + CAST ( - COALESCE ( - ( - + 97 ), - + 50 ) AS INTEGER ) + + 9 * - NULLIF ( - + 47, - 40 )
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT - COUNT( * ) * + 71 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-8649
SELECT - COUNT ( * ) * + 71 AS col1
----
-71

query I rowsort
SELECT DISTINCT + 47 + - - 97 AS col2
----
144

query I rowsort
SELECT 75 + + COALESCE ( 66, + 39 ) * + 82 AS col2
----
5487

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT ALL + ( - + 7 ) + + 81 * + ( - COUNT( * ) )
----
-88

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL + ( - + 7 ) + + 81 * + ( - COUNT ( * ) )
----
-88

query I rowsort
SELECT + 54 + - 54 + + - 77
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8654
SELECT ALL + 3 + + NULLIF ( - - 32, COUNT( * ) ) DIV 1
----
35

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL + 3 + + NULLIF ( - - 32, COUNT ( * ) ) / 1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8655
SELECT DISTINCT 33 * + 65 AS col2, 28 * + 10 * + - 90 * - 4 - - 13 * + 41 * - - COUNT( * )
----
2145
101333

skipif mysql # not compatible
query II rowsort label-8655
SELECT DISTINCT 33 * + 65 AS col2, 28 * + 10 * + - 90 * - 4 - - 13 * + 41 * - - COUNT ( * )
----
2145
101333

query II rowsort
SELECT + 67, + 28 - 22 col0
----
67
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT + COALESCE ( + - 7, + + COUNT( * ) )
----
-7

skipif mysql # not compatible
query I rowsort label-8657
SELECT + COALESCE ( + - 7, + + COUNT ( * ) )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL + 73 - - - COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL + 73 - - - COUNT ( * ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT - COALESCE ( + COUNT( * ), + 75 ) + + - 2 + + COUNT( * ) + ( - 55 ) * CASE - 21 WHEN - 61 + + 15 THEN - 34 END * - 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8659
SELECT - COALESCE ( + COUNT ( * ), + 75 ) + + - 2 + + COUNT ( * ) + ( - 55 ) * CASE - 21 WHEN - 61 + + 15 THEN - 34 END * - 10 AS col1
----
NULL

query I rowsort
SELECT ALL - 25 * - - 24 AS col1
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT DISTINCT + ( + + COUNT( * ) ) - + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT + ( + + COUNT ( * ) ) - + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT DISTINCT COUNT( DISTINCT + 95 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT COUNT ( DISTINCT + 95 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT 16 * + - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-8663
SELECT 16 * + - COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8664
SELECT ALL + COALESCE ( 53, ( 14 ) DIV - 90 + ( COUNT( * ) ) + + 1 ) * + + 86 DIV + + COUNT( ALL + 35 ) - + 51 + 15
----
4522

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL + COALESCE ( 53, ( 14 ) / - 90 + ( COUNT ( * ) ) + + 1 ) * + + 86 / + + COUNT ( ALL + 35 ) - + 51 + 15
----
4522

onlyif mysql # aggregate syntax: 
query II rowsort label-8665
SELECT DISTINCT COUNT( - 34 ) AS col0, 36
----
1
36

skipif mysql # not compatible
query II rowsort label-8665
SELECT DISTINCT COUNT ( - 34 ) AS col0, 36
----
1
36

query I rowsort
SELECT 96 - ( 69 ) + + - 87 * + - 23 + + + 98 AS col1
----
2126

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT 2 * - ( + + MAX( ALL 20 ) ) * ( - + 80 ) * + + 49 * + 9
----
1411200

skipif mysql # not compatible
query I rowsort label-8667
SELECT 2 * - ( + + MAX ( ALL 20 ) ) * ( - + 80 ) * + + 49 * + 9
----
1411200

onlyif mysql # DIV for integer division: 
query I rowsort label-8668
SELECT 6 + + + 68 * 60 DIV + 77 + + 98 + 58 * 38 + 97 * 49 * + 39
----
187727

skipif mysql # not compatible
query I rowsort label-8668
SELECT 6 + + + 68 * 60 / + 77 + + 98 + 58 * 38 + 97 * 49 * + 39
----
187727

query II rowsort
SELECT 57 * + 73 col1, 3
----
4161
3

query I rowsort
SELECT 31 - + + 43 AS col2
----
-12

query I rowsort
SELECT DISTINCT - ( + - 14 ) + + - 73
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-8672
SELECT ALL 14 * + - ( + + 7 ) * 96 + - + COUNT( * ) * - COUNT( * ) + COUNT( * ), 14 AS col1
----
-9406
14

skipif mysql # not compatible
query II rowsort label-8672
SELECT ALL 14 * + - ( + + 7 ) * 96 + - + COUNT ( * ) * - COUNT ( * ) + COUNT ( * ), 14 AS col1
----
-9406
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8673
SELECT 47 DIV 1 * + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-8673
SELECT 47 / 1 * + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8674
SELECT ALL - 18 + 97 AS col2, SUM( ALL - 69 )
----
79
-69

skipif mysql # not compatible
query II rowsort label-8674
SELECT ALL - 18 + 97 AS col2, SUM ( ALL - 69 )
----
79
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8675
SELECT ALL 89 + - 2 col2, 21 DIV COUNT( * ) col2
----
87
21

skipif mysql # not compatible
query II rowsort label-8675
SELECT ALL 89 + - 2 col2, 21 / COUNT ( * ) col2
----
87
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8676
SELECT + COALESCE ( 15, - - 19 + 90, + COUNT( * ), 12 DIV - 78 DIV - CASE 19 WHEN + 10 + 31 THEN NULL WHEN + - 81 THEN - - 20 + + - 99 + - + ( - 68 ) + - 74 END * + ( + + 37 ) * - 42 * + ( - - 4 ) * + - 65 * + - 9 + SUM( DISTINCT 9 ) + CAST( - + CASE 8 WHEN + 22 THEN ( + 29 ) ELSE - NULLIF ( + 55, - ( - - 85 ) DIV + 95 * - + 90 * + MIN( DISTINCT - 44 ) + - 39 * + 42 * 22 ) END AS SIGNED ) + + ( CAST( NULL AS SIGNED ) ) + COUNT( * ) + + ( 46 ) DIV + 39 )
----
15

skipif mysql # not compatible
query I rowsort label-8676
SELECT + COALESCE ( 15, - - 19 + 90, + COUNT ( * ), 12 / - 78 / - CASE 19 WHEN + 10 + 31 THEN NULL WHEN + - 81 THEN - - 20 + + - 99 + - + ( - 68 ) + - 74 END * + ( + + 37 ) * - 42 * + ( - - 4 ) * + - 65 * + - 9 + SUM ( DISTINCT 9 ) + CAST ( - + CASE 8 WHEN + 22 THEN ( + 29 ) ELSE - NULLIF ( + 55, - ( - - 85 ) / + 95 * - + 90 * + MIN ( DISTINCT - 44 ) + - 39 * + 42 * 22 ) END AS INTEGER ) + + ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) + + ( 46 ) / + 39 )
----
15

query I rowsort
SELECT DISTINCT - 68 * + 70 - 44 + 0 AS col1
----
-4804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8678
SELECT ALL - - 57 * - 74 + + + 18 + CASE + 38 WHEN - 75 * 53 THEN 23 WHEN 56 THEN - + ( NULLIF ( + 92, 59 * - CAST( NULL AS SIGNED ) * + + 95 ) ) + + 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL - - 57 * - 74 + + + 18 + CASE + 38 WHEN - 75 * 53 THEN 23 WHEN 56 THEN - + ( NULLIF ( + 92, 59 * - CAST ( NULL AS INTEGER ) * + + 95 ) ) + + 45 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8679
SELECT ALL 45 * - COUNT( - + 80 ) + + + COUNT( * ) + + 8, + 10 AS col0
----
-36
10

skipif mysql # not compatible
query II rowsort label-8679
SELECT ALL 45 * - COUNT ( - + 80 ) + + + COUNT ( * ) + + 8, + 10 AS col0
----
-36
10

query II rowsort
SELECT + + ( - 41 ) AS col2, + 5 - 56 + + + 95 AS col2
----
-41
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8681
SELECT - - COUNT( * ) DIV - 48 * + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8681
SELECT - - COUNT ( * ) / - 48 * + 30 AS col2
----
0

query I rowsort
SELECT ALL - - 78 * - 51 * 20 AS col0
----
-79560

query I rowsort
SELECT DISTINCT + + 15 * + + 76
----
1140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8684
SELECT ALL - COUNT( + - 17 ) DIV + 11
----
0

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL - COUNT ( + - 17 ) / + 11
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8685
SELECT DISTINCT 3 * - - 53 - 16 AS col0, - 23 + CAST( + + ( + 78 ) AS SIGNED ) + + 42 + - 35 * - 17 AS col2
----
143
692

skipif mysql # not compatible
query II rowsort label-8685
SELECT DISTINCT 3 * - - 53 - 16 AS col0, - 23 + CAST ( + + ( + 78 ) AS INTEGER ) + + 42 + - 35 * - 17 AS col2
----
143
692

query I rowsort
SELECT - 19 + + - 81 AS col1
----
-100

query I rowsort
SELECT - 32 + - 5 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT CASE - COUNT( ALL 37 ) WHEN 86 THEN - - 54 + + 75 + + MIN( + 97 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8688
SELECT CASE - COUNT ( ALL 37 ) WHEN 86 THEN - - 54 + + 75 + + MIN ( + 97 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT + ( + MIN( DISTINCT ( - 75 ) ) ) col1
----
-75

skipif mysql # not compatible
query I rowsort label-8689
SELECT + ( + MIN ( DISTINCT ( - 75 ) ) ) col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT CASE - COUNT( * ) WHEN 15 THEN + 34 WHEN - 23 * 95 THEN + 87 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT CASE - COUNT ( * ) WHEN 15 THEN + 34 WHEN - 23 * 95 THEN + 87 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8691
SELECT ALL - CAST( NULL AS SIGNED ) * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL - CAST ( NULL AS INTEGER ) * - 8
----
NULL

query I rowsort
SELECT + 16 + + 80 col1
----
96

query I rowsort
SELECT + 34 * - 82 * 1 AS col0
----
-2788

query I rowsort
SELECT + 93 + + - 33 AS col2
----
60

query I rowsort
SELECT DISTINCT 57 * 80 AS col2
----
4560

query I rowsort
SELECT + 69 * - 24
----
-1656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8697
SELECT + CASE ( + 98 ) WHEN - - ( + 80 ) * + CAST( - - 13 AS SIGNED ) + 83 * 45 * 54 + + - 98 THEN + COUNT( DISTINCT ( + + CAST( NULL AS DECIMAL ) ) ) * + COALESCE ( 40, + 4 - + 49, + 15 ) + 94 * + + ( + - AVG ( DISTINCT 29 ) ) END + 4 / + + 47 * - CAST( - 66 AS DECIMAL ) + + SUM( ALL + 84 ) + + ( 2 ) * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT + CASE ( + 98 ) WHEN - - ( + 80 ) * + CAST ( - - 13 AS INTEGER ) + 83 * 45 * 54 + + - 98 THEN + COUNT ( DISTINCT ( + + CAST ( NULL AS REAL ) ) ) * + COALESCE ( 40, + 4 - + 49, + 15 ) + 94 * + + ( + - AVG ( DISTINCT 29 ) ) END + 4 / + + 47 * - CAST ( - 66 AS REAL ) + + SUM ( ALL + 84 ) + + ( 2 ) * - 45
----
NULL

query I rowsort
SELECT + 86 - + 87 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8699
SELECT ALL 57 AS col1, NULLIF ( - CAST( NULL AS SIGNED ), - - 94 )
----
57
NULL

skipif mysql # not compatible
query II rowsort label-8699
SELECT ALL 57 AS col1, NULLIF ( - CAST ( NULL AS INTEGER ), - - 94 )
----
57
NULL

query I rowsort
SELECT + 98 * + + 53 AS col1
----
5194

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT DISTINCT 86 + + - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT 86 + + - COUNT ( * )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8702
SELECT ALL + SUM( DISTINCT + 11 ) DIV - - 25 * 76, + 23 AS col2
----
0
23

skipif mysql # not compatible
query II rowsort label-8702
SELECT ALL + SUM ( DISTINCT + 11 ) / - - 25 * 76, + 23 AS col2
----
0
23

query I rowsort
SELECT - 15 + + 70 * - + 37 + - + 92 AS col2
----
-2697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8704
SELECT + 27 + + 19 DIV + 57 + - COUNT( * ) DIV - 23 * + 89
----
27

skipif mysql # not compatible
query I rowsort label-8704
SELECT + 27 + + 19 / + 57 + - COUNT ( * ) / - 23 * + 89
----
27

query II rowsort
SELECT + 44 * - + ( - ( - 80 ) ), + 15 * 59 AS col0
----
-3520
885

query I rowsort
SELECT ALL ( - ( 79 ) ) + - 13
----
-92

query I rowsort
SELECT DISTINCT - 4 + 50
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-8708
SELECT DISTINCT + 49 + 1 + + - 55, COUNT( ALL - 97 ) * + MAX( + + 13 ) / ( - CASE + ( 2 ) WHEN - 0 / + + COUNT( * ) + 9 THEN 42 + - 33 + + 74 ELSE NULL END ) AS col1
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-8708
SELECT DISTINCT + 49 + 1 + + - 55, COUNT ( ALL - 97 ) * + MAX ( + + 13 ) / ( - CASE + ( 2 ) WHEN - 0 / + + COUNT ( * ) + 9 THEN 42 + - 33 + + 74 ELSE NULL END ) AS col1
----
-5
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8709
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT CAST ( NULL AS REAL ) * - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT + - COUNT( * ) + - 98
----
-99

skipif mysql # not compatible
query I rowsort label-8710
SELECT + - COUNT ( * ) + - 98
----
-99

query I rowsort
SELECT DISTINCT + - 93 + + 25 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT COUNT( ALL - 49 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8712
SELECT COUNT ( ALL - 49 ) AS col2
----
1

query II rowsort
SELECT - - 25 AS col1, + 9
----
25
9

query I rowsort
SELECT - + 9 * 69 * - + 86 + - 30 AS col2
----
53376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8715
SELECT ALL - - 6 DIV - 29 * + 90 - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL - - 6 / - 29 * + 90 - - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - 63 * 93
----
-5859

onlyif mysql # DIV for integer division: 
query I rowsort label-8717
SELECT ALL + 37 DIV + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL + 37 / + 88 AS col2
----
0

query I rowsort
SELECT DISTINCT + 4 * - 62 AS col0
----
-248

query I rowsort
SELECT - + 82 * + 28 * + 70 AS col2
----
-160720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8720
SELECT - 39 + + CAST( + COUNT( * ) AS SIGNED ) - 65
----
-103

skipif mysql # not compatible
query I rowsort label-8720
SELECT - 39 + + CAST ( + COUNT ( * ) AS INTEGER ) - 65
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT + - 2 + + COALESCE ( + 25, COUNT( * ) ) + - 64 + - 41 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-8721
SELECT + - 2 + + COALESCE ( + 25, COUNT ( * ) ) + - 64 + - 41 AS col2
----
-82

query I rowsort
SELECT DISTINCT + 44 * + 27 * ( + 90 )
----
106920

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL + - MAX( DISTINCT 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL + - MAX ( DISTINCT 8 ) AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8724
SELECT - 17 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT - 17 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT DISTINCT + CASE 77 WHEN 98 THEN COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT + CASE 77 WHEN 98 THEN COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT + COUNT( DISTINCT + - 79 )
----
1

skipif mysql # not compatible
query I rowsort label-8726
SELECT + COUNT ( DISTINCT + - 79 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8727
SELECT + 87 + 83 AS col1, ( + 80 ) - + COALESCE ( + - 15, - + COUNT( * ), + ( - CAST( NULL AS SIGNED ) ) )
----
170
95

skipif mysql # not compatible
query II rowsort label-8727
SELECT + 87 + 83 AS col1, ( + 80 ) - + COALESCE ( + - 15, - + COUNT ( * ), + ( - CAST ( NULL AS INTEGER ) ) )
----
170
95

query I rowsort
SELECT NULLIF ( 91, - 71 - + ( 85 ) - + ( - + 61 ) )
----
91

query I rowsort
SELECT - 57 * + - 67 * - - 48 AS col1
----
183312

query I rowsort
SELECT + 63 + 24 + 86 * - + 42 + 90
----
-3435

query I rowsort
SELECT 99 * - + 95 + 67 AS col1
----
-9338

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL - 32 * + + ( MIN( ALL - 59 ) ) + - 68
----
1820

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - 32 * + + ( MIN ( ALL - 59 ) ) + - 68
----
1820

query I rowsort
SELECT ALL 39 * - + 59
----
-2301

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT + 44 + + COUNT( ALL + 15 ) - - 62 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-8734
SELECT + 44 + + COUNT ( ALL + 15 ) - - 62 AS col0
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT ALL - 55 * 1 + 1 + - 4 * - ( + 29 ) + - COALESCE ( + + 55, - 82 ) DIV - - 96
----
62

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL - 55 * 1 + 1 + - 4 * - ( + 29 ) + - COALESCE ( + + 55, - 82 ) / - - 96
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8736
SELECT - CAST( - + 70 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-8736
SELECT - CAST ( - + 70 AS INTEGER )
----
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8737
SELECT ALL CAST( NULL AS DECIMAL ) * 90 col1, - 49 + - - 53 * - COALESCE ( - 40, + 64 * + COUNT( * ), + - NULLIF ( NULLIF ( - 82, - COUNT( * ) ), - 22 + 31 + - 57 ) ) col2
----
NULL
2071

skipif mysql # not compatible
query II rowsort label-8737
SELECT ALL CAST ( NULL AS REAL ) * 90 col1, - 49 + - - 53 * - COALESCE ( - 40, + 64 * + COUNT ( * ), + - NULLIF ( NULLIF ( - 82, - COUNT ( * ) ), - 22 + 31 + - 57 ) ) col2
----
NULL
2071

query II rowsort
SELECT ALL 61 + - - ( + 91 ) - + + 36 AS col1, 38 * + - 60 AS col0
----
116
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT + 67 + + 5 + + COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8739
SELECT + 67 + + 5 + + COUNT ( * ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8740
SELECT + COUNT( * ) + 0 AS col2, 42 AS col2
----
1
42

skipif mysql # not compatible
query II rowsort label-8740
SELECT + COUNT ( * ) + 0 AS col2, 42 AS col2
----
1
42

query I rowsort
SELECT + 85 * + 37 + + 69 AS col1
----
3214

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT ALL NULLIF ( 57, + + ( 43 ) * + + 48 * - COUNT( * ) ) - - 9 * + + 0 * - - 25 + - MAX( + 61 ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL NULLIF ( 57, + + ( 43 ) * + + 48 * - COUNT ( * ) ) - - 9 * + + 0 * - - 25 + - MAX ( + 61 ) col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8743
SELECT DISTINCT - 60 DIV - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT - 60 / - 86 AS col1
----
0

query I rowsort
SELECT DISTINCT - 8 * + 28 + + 49 - - 89 * + + 44 * - 82 * + + ( 26 )
----
-8349087

query I rowsort
SELECT 11 * + 11
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8746
SELECT ALL + + MAX( - + 63 ) * 33 * + + 55 + - 5 + + NULLIF ( - ( - 58 ), - - 52 + 77 ) + 55 + - - 90 * - 2 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL + + MAX ( - + 63 ) * 33 * + + 55 + - 5 + + NULLIF ( - ( - 58 ), - - 52 + 77 ) + 55 + - - 90 * - 2 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT + 64 * - - ( COUNT( * ) ) / 33 * + 34 - - 78 / + CASE 47 WHEN - 81 + - + 97 THEN + - ( + 82 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8747
SELECT + 64 * - - ( COUNT ( * ) ) / 33 * + 34 - - 78 / + CASE 47 WHEN - 81 + - + 97 THEN + - ( + 82 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 93 * - 58
----
-5394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT - 99 * + CAST( NULL AS SIGNED ) - + - 92 / + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-8749
SELECT - 99 * + CAST ( NULL AS INTEGER ) - + - 92 / + + 55
----
NULL

query I rowsort
SELECT DISTINCT - ( - 4 ) AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8751
SELECT ALL - CASE - 16 WHEN - MAX( ALL - 87 ) THEN - + COUNT( * ) * ( + 93 ) WHEN - 6 - - 39 THEN - + 75 ELSE CAST( NULL AS SIGNED ) END + - - CASE + + 55 WHEN + 0 THEN NULL WHEN + 6 * - + ( - + 38 ) + - CAST( 1 AS SIGNED ) THEN COALESCE ( + MAX( ALL - ( + 94 ) ), + 0 + - 23 ) * + 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL - CASE - 16 WHEN - MAX ( ALL - 87 ) THEN - + COUNT ( * ) * ( + 93 ) WHEN - 6 - - 39 THEN - + 75 ELSE CAST ( NULL AS INTEGER ) END + - - CASE + + 55 WHEN + 0 THEN NULL WHEN + 6 * - + ( - + 38 ) + - CAST ( 1 AS INTEGER ) THEN COALESCE ( + MAX ( ALL - ( + 94 ) ), + 0 + - 23 ) * + 83 END
----
NULL

query I rowsort
SELECT 96 + + 43 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT - MAX( + 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT - MAX ( + 69 ) AS col2
----
-69

query I rowsort
SELECT - 5 * - - 6 + + 9 + + 39
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8755
SELECT - COALESCE ( - + 72, + CAST( NULL AS SIGNED ) + + 24, - - COUNT( * ) ) * + + 29 + - 51 AS col2
----
2037

skipif mysql # not compatible
query I rowsort label-8755
SELECT - COALESCE ( - + 72, + CAST ( NULL AS INTEGER ) + + 24, - - COUNT ( * ) ) * + + 29 + - 51 AS col2
----
2037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT DISTINCT - CASE 10 WHEN - - 21 * - 49 * NULLIF ( 83, + MAX( - 8 ) ) THEN + - CAST( NULL AS SIGNED ) * + 50 + - 0 + 88 * + + 74 + - - 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT - CASE 10 WHEN - - 21 * - 49 * NULLIF ( 83, + MAX ( - 8 ) ) THEN + - CAST ( NULL AS INTEGER ) * + 50 + - 0 + 88 * + + 74 + - - 16 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8757
SELECT DISTINCT + COALESCE ( - - 84, SUM( - - 42 ) * + 12 * AVG ( + 65 ) ) + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT + COALESCE ( - - 84, SUM ( - - 42 ) * + 12 * AVG ( + 65 ) ) + - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 41 + + 37 + - - 92 * + 97
----
9002

query I rowsort
SELECT ALL + 31 + 4 AS col2
----
35

query I rowsort
SELECT 50 + + 60 AS col0
----
110

query I rowsort
SELECT ALL 91 + + 57
----
148

query I rowsort
SELECT 57 * + - 40 col0
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT 31 + 10 * - ( SUM( DISTINCT + 39 ) )
----
-359

skipif mysql # not compatible
query I rowsort label-8763
SELECT 31 + 10 * - ( SUM ( DISTINCT + 39 ) )
----
-359

query I rowsort
SELECT 40 + + + NULLIF ( - ( - - ( + 26 ) ), + - 40 ) + - 80
----
-66

query I rowsort
SELECT 76 + 63 * - 32 AS col1
----
-1940

query I rowsort
SELECT ALL 55 - + 63
----
-8

query I rowsort
SELECT ( - - 7 ) + + 25
----
32

query I rowsort
SELECT 66 + 96 col0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT DISTINCT MIN( 6 ) * 6
----
36

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT MIN ( 6 ) * 6
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8770
SELECT ( - CAST( - 93 AS SIGNED ) ) + 62
----
155

skipif mysql # not compatible
query I rowsort label-8770
SELECT ( - CAST ( - 93 AS INTEGER ) ) + 62
----
155

query I rowsort
SELECT ALL + 69 - + 61 * - 43
----
2692

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ( - COUNT( * ) ) * + 72
----
-72

skipif mysql # not compatible
query I rowsort label-8772
SELECT ( - COUNT ( * ) ) * + 72
----
-72

query I rowsort
SELECT ALL 13 * - 88 AS col1
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT ALL SUM( ALL - ( 19 ) ) - 38 * + 84 col0
----
-3211

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL SUM ( ALL - ( 19 ) ) - 38 * + 84 col0
----
-3211

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT 62 + ( + 84 + - COUNT( * ) ) * 83 AS col2
----
6951

skipif mysql # not compatible
query I rowsort label-8775
SELECT 62 + ( + 84 + - COUNT ( * ) ) * 83 AS col2
----
6951

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT 0 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-8776
SELECT 0 / + 80
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8777
SELECT 71 + + 83 DIV - 43
----
70

skipif mysql # not compatible
query I rowsort label-8777
SELECT 71 + + 83 / - 43
----
70

query I rowsort
SELECT 7 * + 10 AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8779
SELECT CASE - 33 WHEN 11 * + 63 THEN NULLIF ( CAST( NULL AS SIGNED ), COUNT( * ) - + 0 ) WHEN 66 THEN NULL END + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8779
SELECT CASE - 33 WHEN 11 * + 63 THEN NULLIF ( CAST ( NULL AS INTEGER ), COUNT ( * ) - + 0 ) WHEN 66 THEN NULL END + 14 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8780
SELECT ALL 35 DIV + 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL 35 / + 51 AS col1
----
0

query I rowsort
SELECT - 83 / - 75 + - CASE + 14 WHEN - 41 THEN + 42 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - CASE + 63 WHEN 17 / 92 THEN NULL ELSE 69 END
----
-69

query I rowsort
SELECT ALL + 59 * 79 + 85 AS col2
----
4746

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8784
SELECT 25 DIV 57 + + 4 * MAX( + 91 ) AS col0
----
364

skipif mysql # not compatible
query I rowsort label-8784
SELECT 25 / 57 + + 4 * MAX ( + 91 ) AS col0
----
364

query I rowsort
SELECT ALL + 10 * - 17 + COALESCE ( 58, 16 )
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ( 83 ) * - MAX( + ( + 26 ) )
----
-2158

skipif mysql # not compatible
query I rowsort label-8786
SELECT ( 83 ) * - MAX ( + ( + 26 ) )
----
-2158

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT 32 + + 3 * + ( - CASE WHEN NOT ( NULL ) IN ( + NULLIF ( 63, + 44 - 98 ) ) THEN NULL ELSE COUNT( * ) END )
----
29

skipif mysql # not compatible
query I rowsort label-8787
SELECT 32 + + 3 * + ( - CASE WHEN NOT ( NULL ) IN ( + NULLIF ( 63, + 44 - 98 ) ) THEN NULL ELSE COUNT ( * ) END )
----
29

query I rowsort
SELECT ALL + 43 * 66 + - 86 * 61 AS col0
----
-2408

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT 98 * 84 + + COUNT( * ) AS col1
----
8233

skipif mysql # not compatible
query I rowsort label-8789
SELECT 98 * 84 + + COUNT ( * ) AS col1
----
8233

query I rowsort
SELECT ALL + 8 * 58 AS col0
----
464

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT COUNT( 45 )
----
1

skipif mysql # not compatible
query I rowsort label-8791
SELECT COUNT ( 45 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT ALL COUNT( * ) + ( COUNT( + 50 ) + 19 ) * 8 col1
----
161

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL COUNT ( * ) + ( COUNT ( + 50 ) + 19 ) * 8 col1
----
161

query I rowsort
SELECT ALL 92 * 44
----
4048

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT 41 * MAX( DISTINCT 70 )
----
2870

skipif mysql # not compatible
query I rowsort label-8794
SELECT 41 * MAX ( DISTINCT 70 )
----
2870

query I rowsort
SELECT ALL - 63 + 91
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8796
SELECT ALL + CAST( NULL AS SIGNED ) + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL + CAST ( NULL AS INTEGER ) + 67 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8797
SELECT 31 DIV - 10
----
-3

skipif mysql # not compatible
query I rowsort label-8797
SELECT 31 / - 10
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8798
SELECT ALL - 63 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL - 63 / 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT ALL + 0 - NULLIF ( - MIN( 10 ) + COUNT( * ), 43 )
----
9

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL + 0 - NULLIF ( - MIN ( 10 ) + COUNT ( * ), 43 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT DISTINCT - 45 * COUNT( - 50 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT - 45 * COUNT ( - 50 ) AS col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8801
SELECT - 38 DIV 33 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8801
SELECT - 38 / 33 AS col1
----
-1

query I rowsort
SELECT ALL - 28 * - 60 AS col0
----
1680

query I rowsort
SELECT DISTINCT - - 57 * 67
----
3819

query I rowsort
SELECT DISTINCT + ( + 1 ) * + 28 AS col2
----
28

query I rowsort
SELECT - 16 * 97 AS col0
----
-1552

onlyif mysql # DIV for integer division: 
query I rowsort label-8806
SELECT ALL + + COALESCE ( + 68, + NULLIF ( + 27, 81 + + 23 * - 65 ) ) DIV 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + + COALESCE ( + 68, + NULLIF ( + 27, 81 + + 23 * - 65 ) ) / 90 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT + + COUNT( * ) + + 68
----
69

skipif mysql # not compatible
query I rowsort label-8807
SELECT + + COUNT ( * ) + + 68
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT - - ( ( CASE 48 WHEN 70 THEN NULL ELSE - 27 END ) ) * MIN( + 3 )
----
-81

skipif mysql # not compatible
query I rowsort label-8808
SELECT - - ( ( CASE 48 WHEN 70 THEN NULL ELSE - 27 END ) ) * MIN ( + 3 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ALL - MAX( ALL 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL - MAX ( ALL 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ALL ( MAX( ALL 50 ) )
----
50

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL ( MAX ( ALL 50 ) )
----
50

query I rowsort
SELECT DISTINCT - 25 + + 41 * - 34 AS col2
----
-1419

query I rowsort
SELECT - - 20 - - 30 AS col2
----
50

query I rowsort
SELECT + 19 * 47
----
893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8814
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 57
----
NULL

query I rowsort
SELECT ALL + 23 + 45
----
68

query I rowsort
SELECT DISTINCT - 65 + - 40 AS col1
----
-105

query I rowsort
SELECT - 76 + - 24 * - 2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8818
SELECT - ( - CAST( COUNT( * ) AS SIGNED ) ) * 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8818
SELECT - ( - CAST ( COUNT ( * ) AS INTEGER ) ) * 33 AS col1
----
33

query I rowsort
SELECT + + 37 * 41 AS col0
----
1517

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT DISTINCT + 92 * 99 + + COUNT( * ) AS col2
----
9109

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT + 92 * 99 + + COUNT ( * ) AS col2
----
9109

query I rowsort
SELECT CASE 20 WHEN 23 THEN 82 WHEN + 76 THEN NULL END col0
----
NULL

query I rowsort
SELECT ALL - ( - - 68 ) * 2 + 91 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT 30 * - + 90 * 25 - + COUNT( * ) AS col0
----
-67501

skipif mysql # not compatible
query I rowsort label-8823
SELECT 30 * - + 90 * 25 - + COUNT ( * ) AS col0
----
-67501

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT ALL + MAX( + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL + MAX ( + 19 )
----
19

query I rowsort
SELECT ALL 34 * + 11 + 27 * 87 AS col0
----
2723

query I rowsort
SELECT DISTINCT - CASE - - CASE - 84 WHEN - 87 THEN + 28 ELSE NULL END WHEN 62 THEN + 34 - + ( 29 + + 80 / 63 ) ELSE NULL END * 62 - 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT + SUM( - ( - 18 ) ) * - NULLIF ( + MIN( DISTINCT - 68 ), 81 ) AS col2
----
1224

skipif mysql # not compatible
query I rowsort label-8827
SELECT + SUM ( - ( - 18 ) ) * - NULLIF ( + MIN ( DISTINCT - 68 ), 81 ) AS col2
----
1224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8828
SELECT - SUM( ALL - ( 28 ) ) DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-8828
SELECT - SUM ( ALL - ( 28 ) ) / 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT ALL 80 * + COUNT( * ) * - 75 AS col2
----
-6000

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL 80 * + COUNT ( * ) * - 75 AS col2
----
-6000

query I rowsort
SELECT ALL 38 * - + 49 * ( 98 ) AS col0
----
-182476

query I rowsort
SELECT NULLIF ( + 71, - 59 ) col0
----
71

query I rowsort
SELECT NULLIF ( - ( - CASE 61 WHEN - 17 + - 74 THEN NULL WHEN + 17 + COALESCE ( 63, - 39 * ( 0 ), - 50 ) THEN 5 + - 53 END ), 61 * 75 - 85 )
----
NULL

query I rowsort
SELECT + 14 + + 75
----
89

query I rowsort
SELECT ALL 14 * 62 - - 12 AS col0
----
880

query I rowsort
SELECT - 32 * - - 22 AS col1
----
-704

query I rowsort
SELECT - ( + 91 ) + + 92 * 18 AS col1
----
1565

query I rowsort
SELECT ALL + ( - + 40 )
----
-40

query I rowsort
SELECT ALL COALESCE ( + 95, + 31, - NULLIF ( + 62, + 6 ) * + 54 - 66 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT - 0 * - 61 + 45 * - COUNT( * ) + + 70 * 74
----
5135

skipif mysql # not compatible
query I rowsort label-8839
SELECT - 0 * - 61 + 45 * - COUNT ( * ) + + 70 * 74
----
5135

query I rowsort
SELECT DISTINCT - ( 31 ) * + 39
----
-1209

query I rowsort
SELECT + - 15 * + 56
----
-840

query I rowsort
SELECT - + 10 + + 51 + - 30
----
11

query I rowsort
SELECT - ( - - 65 ) AS col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8844
SELECT - CAST( NULL AS DECIMAL ) / COUNT( * ) + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT - CAST ( NULL AS REAL ) / COUNT ( * ) + - 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT ALL + + 12 * + 46 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL + + 12 * + 46 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8846
SELECT - 3 / CAST( NULL AS SIGNED ) / + 55 - - CAST( NULL AS DECIMAL ) * - COUNT( DISTINCT 19 / 3 - + 32 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8846
SELECT - 3 / CAST ( NULL AS INTEGER ) / + 55 - - CAST ( NULL AS REAL ) * - COUNT ( DISTINCT 19 / 3 - + 32 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 27 + + - 71
----
-44

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8848
SELECT ALL - + CASE + 23 WHEN + CAST( NULL AS DECIMAL ) THEN CAST( NULL AS SIGNED ) + + 55 END + + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL - + CASE + 23 WHEN + CAST ( NULL AS REAL ) THEN CAST ( NULL AS INTEGER ) + + 55 END + + 99 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8849
SELECT - 60 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT - 60 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT DISTINCT + - 87 + + + ( + COUNT( * ) ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT + - 87 + + + ( + COUNT ( * ) ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT + + 92 * COUNT( * ) * COUNT( * ) + - 52
----
40

skipif mysql # not compatible
query I rowsort label-8851
SELECT + + 92 * COUNT ( * ) * COUNT ( * ) + - 52
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT + - COUNT( * ) + - - 10 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8852
SELECT + - COUNT ( * ) + - - 10 AS col1
----
9

query I rowsort
SELECT ALL + - 11 + - 43 col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT - NULLIF ( COUNT( DISTINCT - 90 ), AVG ( DISTINCT 18 ) ) + - 24
----
-25

skipif mysql # not compatible
query I rowsort label-8854
SELECT - NULLIF ( COUNT ( DISTINCT - 90 ), AVG ( DISTINCT 18 ) ) + - 24
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT DISTINCT + MAX( ALL + 60 ) + - 16 * 75 AS col1
----
-1140

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT + MAX ( ALL + 60 ) + - 16 * 75 AS col1
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT - 28 + - MIN( 88 )
----
-116

skipif mysql # not compatible
query I rowsort label-8856
SELECT - 28 + - MIN ( 88 )
----
-116

query I rowsort
SELECT DISTINCT 40 * + - 21 AS col2
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT + MIN( DISTINCT - 63 ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT + MIN ( DISTINCT - 63 ) col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT ALL + CAST( 90 AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL + CAST ( 90 AS INTEGER )
----
90

query I rowsort
SELECT ALL 75 * 1 * - 37
----
-2775

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8861
SELECT ALL - CAST( + 29 AS SIGNED ) * 50 DIV 19 col1
----
-76

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL - CAST ( + 29 AS INTEGER ) * 50 / 19 col1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8862
SELECT DISTINCT - 45 DIV - 56 - - 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT - 45 / - 56 - - 57 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT DISTINCT + 63 * + SUM( + 75 ) AS col2
----
4725

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT + 63 * + SUM ( + 75 ) AS col2
----
4725

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT + 74 + - 60 + - COUNT( 94 ) + - 68 * - ( + ( SUM( ALL + 5 ) ) ) AS col0
----
353

skipif mysql # not compatible
query I rowsort label-8864
SELECT + 74 + - 60 + - COUNT ( 94 ) + - 68 * - ( + ( SUM ( ALL + 5 ) ) ) AS col0
----
353

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8865
SELECT ALL 99 DIV COUNT( * ) - + + 0
----
99

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL 99 / COUNT ( * ) - + + 0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT + MIN( + 11 ) * 83 + + 96 AS col1
----
1009

skipif mysql # not compatible
query I rowsort label-8866
SELECT + MIN ( + 11 ) * 83 + + 96 AS col1
----
1009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8867
SELECT 9 DIV - + ( + COUNT( * ) ) + 14 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8867
SELECT 9 / - + ( + COUNT ( * ) ) + 14 AS col0
----
5

query I rowsort
SELECT DISTINCT 91 - - 75 col1
----
166

query II rowsort
SELECT DISTINCT - 33 AS col2, - 68 * + - 38
----
-33
2584

onlyif mysql # DIV for integer division: 
query I rowsort label-8870
SELECT ALL 26 DIV 52 col0
----
0

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL 26 / 52 col0
----
0

query I rowsort
SELECT 82 * 32 * - + 32 AS col0
----
-83968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT ( - CAST( + 2 AS SIGNED ) ) * 63 AS col2
----
-126

skipif mysql # not compatible
query I rowsort label-8872
SELECT ( - CAST ( + 2 AS INTEGER ) ) * 63 AS col2
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8873
SELECT ALL 73 DIV + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL 73 / + COUNT ( * )
----
73

query II rowsort
SELECT 50 AS col2, - ( - 15 ) * - 60 + 12 AS col1
----
50
-888

query I rowsort
SELECT ALL 90 * - 85 * - 10 AS col1
----
76500

query I rowsort
SELECT 73 * - 91 AS col2
----
-6643

query I rowsort
SELECT 32 * CASE - 33 WHEN 91 THEN COALESCE ( 61, 3 * 83 + - ( - 23 ), 33 / 45 ) + + 47 WHEN COALESCE ( - 35, - 23 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 91 + - + ( 16 )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8879
SELECT ALL 95 + CAST( NULL AS SIGNED ) * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL 95 + CAST ( NULL AS INTEGER ) * - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT - CASE - - 76 WHEN + 36 THEN NULL WHEN + 70 * + 86 + 76 / 70 THEN 17 * COUNT( * ) - - COALESCE ( 15, - 69, + 51 * 87 ) ELSE + 18 END - 56 col1
----
-74

skipif mysql # not compatible
query I rowsort label-8880
SELECT - CASE - - 76 WHEN + 36 THEN NULL WHEN + 70 * + 86 + 76 / 70 THEN 17 * COUNT ( * ) - - COALESCE ( 15, - 69, + 51 * 87 ) ELSE + 18 END - 56 col1
----
-74

query I rowsort
SELECT ALL 34 * 35 AS col1
----
1190

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8882
SELECT - 32, ( + 15 ) DIV COUNT( * ) AS col2
----
-32
15

skipif mysql # not compatible
query II rowsort label-8882
SELECT - 32, ( + 15 ) / COUNT ( * ) AS col2
----
-32
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT DISTINCT + - 1 + - COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT + - 1 + - COUNT ( * ) col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT COUNT( 62 ) * + - 1 * + 29 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8884
SELECT COUNT ( 62 ) * + - 1 * + 29 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT MIN( 10 ) + - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-8885
SELECT MIN ( 10 ) + - COUNT ( * )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8886
SELECT CASE - CAST( + 84 AS SIGNED ) WHEN 30 * 60 + 47 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT CASE - CAST ( + 84 AS INTEGER ) WHEN 30 * 60 + 47 THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT ALL - ( + + COUNT( - - 90 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL - ( + + COUNT ( - - 90 ) )
----
-1

query I rowsort
SELECT 37 + - 95 AS col2
----
-58

query I rowsort
SELECT 80 * + 24 + + 61 + 35
----
2016

onlyif mysql # DIV for integer division: 
query I rowsort label-8890
SELECT ALL + 32 DIV - 60 + - + 42 * 50 AS col1
----
-2100

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL + 32 / - 60 + - + 42 * 50 AS col1
----
-2100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8891
SELECT 11 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT 11 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 59 + - 97 * 88 - 9 AS col1
----
-8486

query I rowsort
SELECT ALL + 82 - + 72
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT 60 * + + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-8894
SELECT 60 * + + COUNT ( * )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT ALL 64 DIV + + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL 64 / + + 73 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8896
SELECT ALL + NULLIF ( 34, CAST( NULL AS SIGNED ) ) - 52 * - MIN( DISTINCT - 81 * + 38 ) AS col1
----
-160022

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL + NULLIF ( 34, CAST ( NULL AS INTEGER ) ) - 52 * - MIN ( DISTINCT - 81 * + 38 ) AS col1
----
-160022

onlyif mysql # aggregate syntax: 
query II rowsort label-8897
SELECT 50 * + 46 AS col2, - SUM( ALL + 72 )
----
2300
-72

skipif mysql # not compatible
query II rowsort label-8897
SELECT 50 * + 46 AS col2, - SUM ( ALL + 72 )
----
2300
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8898
SELECT COUNT( ALL + 78 ) DIV + - COUNT( * ) + + + 78
----
77

skipif mysql # not compatible
query I rowsort label-8898
SELECT COUNT ( ALL + 78 ) / + - COUNT ( * ) + + + 78
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8899
SELECT 69 DIV COUNT( ALL 43 ) * - 7 AS col2
----
-483

skipif mysql # not compatible
query I rowsort label-8899
SELECT 69 / COUNT ( ALL 43 ) * - 7 AS col2
----
-483

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8900
SELECT ALL - 13 DIV + 22 AS col0, COUNT( * ) * 34 + - 96
----
0
-62

skipif mysql # not compatible
query II rowsort label-8900
SELECT ALL - 13 / + 22 AS col0, COUNT ( * ) * 34 + - 96
----
0
-62

query I rowsort
SELECT 40 * 94 * + - 73
----
-274480

query II rowsort
SELECT 76 * - 16 col2, 84 * + + 49 + - 38
----
-1216
4078

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT ALL - 4 DIV - 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL - 4 / - 12 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8904
SELECT MIN( + 11 ) * + 14 - + CAST( + 80 AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8904
SELECT MIN ( + 11 ) * + 14 - + CAST ( + 80 AS INTEGER ) AS col2
----
74

query I rowsort
SELECT ALL - NULLIF ( - 65, + 25 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL - MIN( DISTINCT - 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL - MIN ( DISTINCT - 81 ) AS col2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8907
SELECT ALL 85 * 68 DIV + 68
----
85

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL 85 * 68 / + 68
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8908
SELECT COUNT( DISTINCT + 61 ) * - MIN( - ( + 41 ) ) DIV + ( 98 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8908
SELECT COUNT ( DISTINCT + 61 ) * - MIN ( - ( + 41 ) ) / + ( 98 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8909
SELECT DISTINCT COUNT( * ) * - 36 DIV 14 DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT COUNT ( * ) * - 36 / 14 / 32
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8910
SELECT CAST( NULL AS SIGNED ) * - ( + 35 ) - 19 + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT CAST ( NULL AS INTEGER ) * - ( + 35 ) - 19 + - 73
----
NULL

query I rowsort
SELECT CASE 13 WHEN - 1 - 50 THEN NULL ELSE + 17 * + 58 END * 5
----
4930

query I rowsort
SELECT 65 + + 15 * + CASE + 52 WHEN - 74 * 11 THEN 30 END + 6 col1
----
NULL

query I rowsort
SELECT - 12 * + 40 - + 14 AS col1
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT + 41 * COUNT( 96 ) + 61 + - 64
----
38

skipif mysql # not compatible
query I rowsort label-8914
SELECT + 41 * COUNT ( 96 ) + 61 + - 64
----
38

query I rowsort
SELECT ALL 79 + + 95 + - 64 * - 29 AS col1
----
2030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8916
SELECT + COUNT( * ) * - 69 * 19 + - 40 + 15 * AVG ( 7 + - CAST( NULL AS SIGNED ) / 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT + COUNT ( * ) * - 69 * 19 + - 40 + 15 * AVG ( 7 + - CAST ( NULL AS INTEGER ) / 12 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8917
SELECT ALL - - ( 33 ) AS col0, 18 + 14 + 5 * CASE 27 + - COUNT( * ) WHEN + 95 + + 76 THEN 24 / ( + MIN( - 9 ) * + 96 ) + 75 * COUNT( * ) WHEN 24 THEN 67 + + 85 * - 9 END AS col0
----
33
NULL

skipif mysql # not compatible
query II rowsort label-8917
SELECT ALL - - ( 33 ) AS col0, 18 + 14 + 5 * CASE 27 + - COUNT ( * ) WHEN + 95 + + 76 THEN 24 / ( + MIN ( - 9 ) * + 96 ) + 75 * COUNT ( * ) WHEN 24 THEN 67 + + 85 * - 9 END AS col0
----
33
NULL

query I rowsort
SELECT DISTINCT + - 95 + 68
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8919
SELECT ALL 6 * 39 + + + 93 DIV - 92 AS col1
----
233

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL 6 * 39 + + + 93 / - 92 AS col1
----
233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8920
SELECT ALL - COUNT( * ) + + - CAST( 35 AS SIGNED ) * + 35
----
-1226

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL - COUNT ( * ) + + - CAST ( 35 AS INTEGER ) * + 35
----
-1226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8921
SELECT DISTINCT 64 + + 70 + + 9 DIV COUNT( * ) * + 53 - - 10 * + 16 AS col2
----
771

skipif mysql # not compatible
query I rowsort label-8921
SELECT DISTINCT 64 + + 70 + + 9 / COUNT ( * ) * + 53 - - 10 * + 16 AS col2
----
771

onlyif mysql # DIV for integer division: 
query I rowsort label-8922
SELECT ( - 80 ) DIV - 6
----
13

skipif mysql # not compatible
query I rowsort label-8922
SELECT ( - 80 ) / - 6
----
13

query I rowsort
SELECT - 53 * - + 37 + - 78
----
1883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8924
SELECT COUNT( * ) * + + 91 AS col2, + CAST( 92 AS SIGNED ) * 65 AS col2
----
91
5980

skipif mysql # not compatible
query II rowsort label-8924
SELECT COUNT ( * ) * + + 91 AS col2, + CAST ( 92 AS INTEGER ) * 65 AS col2
----
91
5980

query I rowsort
SELECT DISTINCT - 44 * + 32
----
-1408

query I rowsort
SELECT ALL 95 - - 71 * - 60
----
-4165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8927
SELECT ALL CAST( NULL AS SIGNED ) - - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL CAST ( NULL AS INTEGER ) - - 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8928
SELECT - MAX( ALL + + 84 ), - 1 AS col2
----
-84
-1

skipif mysql # not compatible
query II rowsort label-8928
SELECT - MAX ( ALL + + 84 ), - 1 AS col2
----
-84
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT DISTINCT 53 * - COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT 53 * - COUNT ( * ) AS col1
----
-53

query I rowsort
SELECT 74 * - 10
----
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT ALL - CASE + MAX( ALL - ( 54 ) ) WHEN 22 * + 90 THEN + 46 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL - CASE + MAX ( ALL - ( 54 ) ) WHEN 22 * + 90 THEN + 46 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ( + + 78 ) * - COUNT( * ) * + 35 AS col2
----
-2730

skipif mysql # not compatible
query I rowsort label-8932
SELECT ( + + 78 ) * - COUNT ( * ) * + 35 AS col2
----
-2730

query I rowsort
SELECT 60 * + + 34 AS col0
----
2040

query I rowsort
SELECT ( + + 51 ) + 84 + - 81
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-8935
SELECT 66 + COUNT( * ) * + + 57 AS col0, + 14
----
123
14

skipif mysql # not compatible
query II rowsort label-8935
SELECT 66 + COUNT ( * ) * + + 57 AS col0, + 14
----
123
14

onlyif mysql # DIV for integer division: 
query I rowsort label-8936
SELECT DISTINCT 98 DIV 94
----
1

skipif mysql # not compatible
query I rowsort label-8936
SELECT DISTINCT 98 / 94
----
1

query I rowsort
SELECT ALL - 18 * + 98
----
-1764

query I rowsort
SELECT - 27 * + 44 AS col2
----
-1188

query I rowsort
SELECT + 39 + 14 + + - 46 + - - 74 + + - 94 * 56 AS col1
----
-5183

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT ALL MAX( + ( 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL MAX ( + ( 1 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT ALL 2 * - 37 + - + 51 + + COUNT( - - 19 ) + 83 * - 51 * 37 AS col0
----
-156745

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL 2 * - 37 + - + 51 + + COUNT ( - - 19 ) + 83 * - 51 * 37 AS col0
----
-156745

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8942
SELECT DISTINCT - 1 * ( - 80 ) AS col0, 22 * + - CAST( NULL AS DECIMAL )
----
80
NULL

skipif mysql # not compatible
query II rowsort label-8942
SELECT DISTINCT - 1 * ( - 80 ) AS col0, 22 * + - CAST ( NULL AS REAL )
----
80
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT + CASE + - CAST( 40 AS SIGNED ) WHEN 41 THEN + 9 * 3 + 24 / - 66 ELSE - ( + 19 ) * - CASE + 10 * 29 WHEN 20 THEN 51 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT + CASE + - CAST ( 40 AS INTEGER ) WHEN 41 THEN + 9 * 3 + 24 / - 66 ELSE - ( + 19 ) * - CASE + 10 * 29 WHEN 20 THEN 51 END END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8944
SELECT ALL COUNT( * ) * + 9 DIV - - 23 + + + 52 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL COUNT ( * ) * + 9 / - - 23 + + + 52 AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8945
SELECT + 55 DIV - 42 DIV - 1
----
1

skipif mysql # not compatible
query I rowsort label-8945
SELECT + 55 / - 42 / - 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT 10 * + 40 * + - NULLIF ( COALESCE ( + 18, MAX( DISTINCT 78 ) + 85 ), - 30 + + SUM( DISTINCT 11 ) * + 40 ) + COUNT( * )
----
-7199

skipif mysql # not compatible
query I rowsort label-8946
SELECT 10 * + 40 * + - NULLIF ( COALESCE ( + 18, MAX ( DISTINCT 78 ) + 85 ), - 30 + + SUM ( DISTINCT 11 ) * + 40 ) + COUNT ( * )
----
-7199

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT - ( 53 ) * + + COUNT( * ) col2
----
-53

skipif mysql # not compatible
query I rowsort label-8947
SELECT - ( 53 ) * + + COUNT ( * ) col2
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT DISTINCT - 56 DIV 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT - 56 / 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT ALL 52 * - - 89 + - CASE + 37 WHEN + COUNT( * ) THEN NULL WHEN + 70 * 94 THEN + 11 * - COUNT( * ) - 62 * 51 ELSE NULL END * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL 52 * - - 89 + - CASE + 37 WHEN + COUNT ( * ) THEN NULL WHEN + 70 * 94 THEN + 11 * - COUNT ( * ) - 62 * 51 ELSE NULL END * 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8950
SELECT DISTINCT + + 14 * - 72 * + - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + - 41 * 66 * 38 + - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT + + 14 * - 72 * + - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - 41 * 66 * 38 + - 20 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8951
SELECT ALL + - 82 * - 99 * + CAST( NULL AS SIGNED ) + + + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL + - 82 * - 99 * + CAST ( NULL AS INTEGER ) + + + 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT ALL - COUNT( * ) * - 38 + 14
----
52

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL - COUNT ( * ) * - 38 + 14
----
52

query I rowsort
SELECT ALL + ( + 31 ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8954
SELECT + + CAST( + 4 AS SIGNED ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8954
SELECT + + CAST ( + 4 AS INTEGER ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL 5 * + 12 * 26 + COUNT( * )
----
1561

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL 5 * + 12 * 26 + COUNT ( * )
----
1561

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT - 13 - + + 82 - + SUM( DISTINCT + ( - - 41 ) ) * 42 AS col2
----
-1817

skipif mysql # not compatible
query I rowsort label-8956
SELECT - 13 - + + 82 - + SUM ( DISTINCT + ( - - 41 ) ) * 42 AS col2
----
-1817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT DISTINCT + ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT + ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - - 10 * 90 * - 37 AS col0
----
-33300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8959
SELECT ALL - MAX( + 6 ) - - CAST( NULL AS SIGNED ) - - - SUM( DISTINCT - 97 ) * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL - MAX ( + 6 ) - - CAST ( NULL AS INTEGER ) - - - SUM ( DISTINCT - 97 ) * + 76
----
NULL

query I rowsort
SELECT + 85 * 41
----
3485

onlyif mysql # DIV for integer division: 
query I rowsort label-8961
SELECT DISTINCT - - 75 DIV - 51
----
-1

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT - - 75 / - 51
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT ALL + SUM( ALL - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL + SUM ( ALL - 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT - 43 + - MAX( DISTINCT - + 61 ) * + 30
----
1787

skipif mysql # not compatible
query I rowsort label-8963
SELECT - 43 + - MAX ( DISTINCT - + 61 ) * + 30
----
1787

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT + 58 DIV - ( + + 12 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8964
SELECT + 58 / - ( + + 12 ) AS col1
----
-4

query I rowsort
SELECT - 69 * + - 91 * + 70
----
439530

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT - COUNT( * ) + + 78 col0
----
77

skipif mysql # not compatible
query I rowsort label-8966
SELECT - COUNT ( * ) + + 78 col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8967
SELECT + COUNT( * ) * + 80 * + + CASE MAX( DISTINCT - 61 ) WHEN + CASE + 90 WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN + 90 THEN 21 ELSE NULL END THEN NULL WHEN 62 THEN COUNT( ALL + 72 ) WHEN 47 - + 91 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT + COUNT ( * ) * + 80 * + + CASE MAX ( DISTINCT - 61 ) WHEN + CASE + 90 WHEN CAST ( NULL AS REAL ) THEN NULL WHEN + 90 THEN 21 ELSE NULL END THEN NULL WHEN 62 THEN COUNT ( ALL + 72 ) WHEN 47 - + 91 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + ( COALESCE ( + + 95, - - ( - 57 ), - 38 * 10 ) ) + 87 col2
----
182

query I rowsort
SELECT ALL 57 * - 86 col0
----
-4902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8970
SELECT ALL 16 * + - CAST( + COUNT( * ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL 16 * + - CAST ( + COUNT ( * ) AS INTEGER )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8971
SELECT + COUNT( * ) DIV + 33 * + 55
----
0

skipif mysql # not compatible
query I rowsort label-8971
SELECT + COUNT ( * ) / + 33 * + 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8972
SELECT DISTINCT CAST( - MIN( + 12 ) AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT CAST ( - MIN ( + 12 ) AS INTEGER )
----
-12

query I rowsort
SELECT DISTINCT 68 + 37 - - 94 * - 20 + + 22 AS col0
----
-1753

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT + MAX( DISTINCT + - 43 ) + SUM( DISTINCT - - 76 )
----
33

skipif mysql # not compatible
query I rowsort label-8974
SELECT + MAX ( DISTINCT + - 43 ) + SUM ( DISTINCT - - 76 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8975
SELECT DISTINCT 44 + - 86 - - - 0 - + 10 * 13 * 32 DIV + 70 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-8975
SELECT DISTINCT 44 + - 86 - - - 0 - + 10 * 13 * 32 / + 70 AS col0
----
-101

query I rowsort
SELECT ALL + 41 + + 94 AS col0
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8977
SELECT ALL NULLIF ( + CAST( - 8 AS SIGNED ), 29 * - 68 + + 86 * COALESCE ( ( 70 ), CASE - CASE COUNT( * ) WHEN 65 THEN - 21 WHEN 48 * COUNT( * ) THEN NULL ELSE NULL END WHEN 90 + 84 THEN + 25 + 36 END ) )
----
-8

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL NULLIF ( + CAST ( - 8 AS INTEGER ), 29 * - 68 + + 86 * COALESCE ( ( 70 ), CASE - CASE COUNT ( * ) WHEN 65 THEN - 21 WHEN 48 * COUNT ( * ) THEN NULL ELSE NULL END WHEN 90 + 84 THEN + 25 + 36 END ) )
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8978
SELECT - CAST( NULL AS DECIMAL ) AS col0, - 54 * - 23 AS col0
----
NULL
1242

skipif mysql # not compatible
query II rowsort label-8978
SELECT - CAST ( NULL AS REAL ) AS col0, - 54 * - 23 AS col0
----
NULL
1242

query I rowsort
SELECT ALL 74 + + + 11 - + + 16
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8980
SELECT + 79 + + ( + - CAST( COUNT( * ) AS SIGNED ) ) * 27 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8980
SELECT + 79 + + ( + - CAST ( COUNT ( * ) AS INTEGER ) ) * 27 AS col2
----
52

query II rowsort
SELECT 96 AS col2, - 42 col0
----
96
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8982
SELECT ALL 66, - COUNT( * ) col0
----
66
-1

skipif mysql # not compatible
query II rowsort label-8982
SELECT ALL 66, - COUNT ( * ) col0
----
66
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT DISTINCT 8 + + SUM( ALL - + 24 )
----
-16

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT 8 + + SUM ( ALL - + 24 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT ALL 67 + MIN( 0 ) * 56 + + 35 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL 67 + MIN ( 0 ) * 56 + + 35 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT - 38 * COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8985
SELECT - 38 * COUNT ( * ) AS col2
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8986
SELECT ALL COUNT( ALL + 88 ) DIV - 88 + NULLIF ( COALESCE ( + 20, 14 ), - 17 )
----
20

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL COUNT ( ALL + 88 ) / - 88 + NULLIF ( COALESCE ( + 20, 14 ), - 17 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT COUNT( * ) * + + 99 - + 86
----
13

skipif mysql # not compatible
query I rowsort label-8987
SELECT COUNT ( * ) * + + 99 - + 86
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8988
SELECT DISTINCT - MAX( - + 86 ) * - + CAST( NULL AS SIGNED ) / + 56 * + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT - MAX ( - + 86 ) * - + CAST ( NULL AS INTEGER ) / + 56 * + 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8989
SELECT + 31 DIV + 70 + + 10 - - - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-8989
SELECT + 31 / + 70 + + 10 - - - COUNT ( * )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT ALL + + 73 DIV - 47 + 97 * NULLIF ( 23, - 16 ) * - 41 AS col0
----
-91472

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + + 73 / - 47 + 97 * NULLIF ( 23, - 16 ) * - 41 AS col0
----
-91472

query I rowsort
SELECT + 97 + 42 + 33
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8992
SELECT ALL + - ( - 13 ) col0, - CAST( NULL AS SIGNED ) col2
----
13
NULL

skipif mysql # not compatible
query II rowsort label-8992
SELECT ALL + - ( - 13 ) col0, - CAST ( NULL AS INTEGER ) col2
----
13
NULL

query I rowsort
SELECT + + 30 + + - 91 + - 71 + + 78 * - + 88 + - 24 + ( + 68 + 14 )
----
-6938

onlyif mysql # DIV for integer division: 
query I rowsort label-8994
SELECT + 74 DIV + 73 - - 5 + + ( 15 ) * 27
----
411

skipif mysql # not compatible
query I rowsort label-8994
SELECT + 74 / + 73 - - 5 + + ( 15 ) * 27
----
411

query I rowsort
SELECT ALL - - ( - 40 ) * - + 30 * + 91 - + 89 * - 59
----
114451

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT - + 39 DIV - - 25
----
-1

skipif mysql # not compatible
query I rowsort label-8996
SELECT - + 39 / - - 25
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT - NULLIF ( COUNT( * ), - 46 * NULLIF ( + COUNT( * ), + + 25 * 52 + 10 ) + AVG ( ALL 88 ) - - 25 ) * + 21 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8997
SELECT - NULLIF ( COUNT ( * ), - 46 * NULLIF ( + COUNT ( * ), + + 25 * 52 + 10 ) + AVG ( ALL 88 ) - - 25 ) * + 21 AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8998
SELECT DISTINCT + - 53 DIV + ( - - CASE 75 WHEN - + CASE COALESCE ( 12, - 16 * + COUNT( * ) + + COUNT( * ) ) WHEN 34 THEN + COUNT( * ) - - COUNT( * ) ELSE + COALESCE ( - COUNT( 70 ), - 80 * 51, + 63 ) END * + 22 + + 83 THEN - 79 - + 60 ELSE + COUNT( * ) + 2 * - 45 END )
----
0

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT + - 53 / + ( - - CASE 75 WHEN - + CASE COALESCE ( 12, - 16 * + COUNT ( * ) + + COUNT ( * ) ) WHEN 34 THEN + COUNT ( * ) - - COUNT ( * ) ELSE + COALESCE ( - COUNT ( 70 ), - 80 * 51, + 63 ) END * + 22 + + 83 THEN - 79 - + 60 ELSE + COUNT ( * ) + 2 * - 45 END )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8999
SELECT - 61 + - + 48 DIV - - 82 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-8999
SELECT - 61 + - + 48 / - - 82 AS col0
----
-61

query I rowsort
SELECT DISTINCT + + ( - 77 )
----
-77

query I rowsort
SELECT - 74 + - + ( + NULLIF ( 73, - + 77 * 6 ) ) AS col2
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9002
SELECT - - CAST( + 92 AS SIGNED ) * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9002
SELECT - - CAST ( + 92 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL - - CASE + COUNT( * ) WHEN + 19 THEN NULL WHEN + 54 THEN NULL WHEN + 34 THEN + 66 / + 63 ELSE NULL END * - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL - - CASE + COUNT ( * ) WHEN + 19 THEN NULL WHEN + 54 THEN NULL WHEN + 34 THEN + 66 / + 63 ELSE NULL END * - 49
----
NULL

query I rowsort
SELECT - - COALESCE ( - 51, - 17 ) AS col0
----
-51

query I rowsort
SELECT DISTINCT - ( - 31 ) * + - 41 col2
----
-1271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9006
SELECT ALL - - MIN( 9 ) * - CASE CAST( NULL AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) THEN + + 34 + - COALESCE ( - 82 + + 4 DIV + 85, 44 - - 44, 38 * MAX( 20 * 44 ), 22 + + 49 ) ELSE - 98 * ( + 51 ) + - 40 END
----
45342

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL - - MIN ( 9 ) * - CASE CAST ( NULL AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) THEN + + 34 + - COALESCE ( - 82 + + 4 / + 85, 44 - - 44, 38 * MAX ( 20 * 44 ), 22 + + 49 ) ELSE - 98 * ( + 51 ) + - 40 END
----
45342

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT 76 * - COUNT( DISTINCT - 64 )
----
-76

skipif mysql # not compatible
query I rowsort label-9007
SELECT 76 * - COUNT ( DISTINCT - 64 )
----
-76

query I rowsort
SELECT ALL + 45 + + 26
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9009
SELECT 66 + - CAST( 72 AS SIGNED ) - + 55 + COUNT( * ) AS col0, + 69 AS col2
----
-60
69

skipif mysql # not compatible
query II rowsort label-9009
SELECT 66 + - CAST ( 72 AS INTEGER ) - + 55 + COUNT ( * ) AS col0, + 69 AS col2
----
-60
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9010
SELECT DISTINCT 27 + + ( - CAST( NULL AS SIGNED ) ) + + + 64 + + AVG ( 95 ) * - 69 * + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT 27 + + ( - CAST ( NULL AS INTEGER ) ) + + + 64 + + AVG ( 95 ) * - 69 * + 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL 3 + - 29 + - COUNT( * ) * + 20 col1
----
-46

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL 3 + - 29 + - COUNT ( * ) * + 20 col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL 62 * - MAX( ALL - 43 ) AS col1
----
2666

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL 62 * - MAX ( ALL - 43 ) AS col1
----
2666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9013
SELECT ALL + 82 + - CAST( - + ( - - 61 ) AS SIGNED )
----
143

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL + 82 + - CAST ( - + ( - - 61 ) AS INTEGER )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT 56 + + - SUM( ALL - 28 ) * - - 44 * 2 AS col1
----
2520

skipif mysql # not compatible
query I rowsort label-9014
SELECT 56 + + - SUM ( ALL - 28 ) * - - 44 * 2 AS col1
----
2520

query I rowsort
SELECT 65 * + 46 AS col0
----
2990

query II rowsort
SELECT 1 + + 30, 67 * + + 71 AS col2
----
31
4757

query I rowsort
SELECT ALL 26 * + 22 AS col2
----
572

onlyif mysql # DIV for integer division: 
query II rowsort label-9018
SELECT NULLIF ( - 43, 72 ) DIV 79 * + 6 AS col2, 44
----
0
44

skipif mysql # not compatible
query II rowsort label-9018
SELECT NULLIF ( - 43, 72 ) / 79 * + 6 AS col2, 44
----
0
44

query II rowsort
SELECT ALL 20 + + 54 AS col1, 48
----
74
48

onlyif mysql # DIV for integer division: 
query II rowsort label-9020
SELECT 91 + 96 AS col1, 24 + + 79 + - 40 + + 36 DIV 15 + 85 DIV - 84
----
187
64

skipif mysql # not compatible
query II rowsort label-9020
SELECT 91 + 96 AS col1, 24 + + 79 + - 40 + + 36 / 15 + 85 / - 84
----
187
64

query I rowsort
SELECT NULLIF ( - 45, + + 0 ) + + 76 col2
----
31

query I rowsort
SELECT ALL ( + 50 ) + + ( 20 ) col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9023
SELECT 10 + 3, MAX( ALL + 68 ) + + 46 AS col0
----
13
114

skipif mysql # not compatible
query II rowsort label-9023
SELECT 10 + 3, MAX ( ALL + 68 ) + + 46 AS col0
----
13
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT ALL - 9 - - + ( 99 ) + COUNT( * ) * 88 AS col0
----
178

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL - 9 - - + ( 99 ) + COUNT ( * ) * 88 AS col0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT + + ( - SUM( ALL - 33 ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-9025
SELECT + + ( - SUM ( ALL - 33 ) ) AS col1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9026
SELECT CAST( NULL AS SIGNED ) + - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9026
SELECT CAST ( NULL AS INTEGER ) + - - 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9027
SELECT + 56 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT + 56 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT ALL NULLIF ( + + 22, + 46 * + 21 * 82 + + 30 * + COUNT( * ) + 32 ) - 92 * - 10 col0
----
942

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL NULLIF ( + + 22, + 46 * + 21 * 82 + + 30 * + COUNT ( * ) + 32 ) - 92 * - 10 col0
----
942

query I rowsort
SELECT 42 * - 48 * + - ( + + 40 )
----
80640

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT DISTINCT - COUNT( * ) * + 93
----
-93

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT - COUNT ( * ) * + 93
----
-93

query I rowsort
SELECT + 22 * 50 AS col2
----
1100

query I rowsort
SELECT DISTINCT 19 * + + 65 + 5 AS col2
----
1240

onlyif mysql # aggregate syntax: 
query II rowsort label-9033
SELECT ALL - 21 * + MIN( + 42 ) AS col1, 96
----
-882
96

skipif mysql # not compatible
query II rowsort label-9033
SELECT ALL - 21 * + MIN ( + 42 ) AS col1, 96
----
-882
96

query I rowsort
SELECT 58 * - 8 - + 33 AS col2
----
-497

query I rowsort
SELECT + 25 * + - 89
----
-2225

query I rowsort
SELECT 80 + + 5 AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9037
SELECT DISTINCT + + COUNT( * ) DIV + 76 DIV + - COUNT( * ) * 10
----
0

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT + + COUNT ( * ) / + 76 / + - COUNT ( * ) * 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ALL + 59 + + CASE 66 WHEN + + 4 THEN 74 * + COUNT( * ) * - - 34 * 93 + + COUNT( * ) WHEN 19 + 56 THEN 8 * - 46 WHEN 89 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL + 59 + + CASE 66 WHEN + + 4 THEN 74 * + COUNT ( * ) * - - 34 * 93 + + COUNT ( * ) WHEN 19 + 56 THEN 8 * - 46 WHEN 89 THEN NULL END col0
----
NULL

query I rowsort
SELECT 60 - - 84 AS col1
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9040
SELECT ALL CAST( NULL AS SIGNED ) / - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL CAST ( NULL AS INTEGER ) / - 91
----
NULL

query II rowsort
SELECT 10 AS col0, - ( + - 17 ) * 29 * - 20 * - 21 AS col0
----
10
207060

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ALL - SUM( DISTINCT - - 9 ) * - 21 AS col2
----
189

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL - SUM ( DISTINCT - - 9 ) * - 21 AS col2
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL - 14 + + SUM( ALL - 15 )
----
-29

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL - 14 + + SUM ( ALL - 15 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT ALL MIN( ALL - 56 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL MIN ( ALL - 56 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-9045
SELECT 97, - COUNT( * ) AS col2
----
97
-1

skipif mysql # not compatible
query II rowsort label-9045
SELECT 97, - COUNT ( * ) AS col2
----
97
-1

query I rowsort
SELECT 1 + + 20 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT DISTINCT + 78 + + + CASE - 30 WHEN - + 89 - + 43 THEN - ( 55 ) WHEN + 5 + - 22 THEN + 72 + - 64 * + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT + 78 + + + CASE - 30 WHEN - + 89 - + 43 THEN - ( 55 ) WHEN + 5 + - 22 THEN + 72 + - 64 * + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL MIN( 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL MIN ( 75 ) AS col0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT 91 DIV + 38 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9049
SELECT 91 / + 38 AS col0
----
2

query I rowsort
SELECT DISTINCT + 79 - + + 1 * - 74 AS col2
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-9051
SELECT DISTINCT 14 - 99 DIV ( 92 )
----
13

skipif mysql # not compatible
query I rowsort label-9051
SELECT DISTINCT 14 - 99 / ( 92 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9052
SELECT ALL CASE + - 33 WHEN - CASE 36 WHEN - 24 THEN + 41 WHEN + 57 THEN NULL END / + 98 + + 38 THEN NULL WHEN - 71 THEN 92 * + COUNT( * ) - - ( - 84 ) * COALESCE ( CAST( NULL AS SIGNED ) * 99 + - 27, 93 ) ELSE NULL END / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL CASE + - 33 WHEN - CASE 36 WHEN - 24 THEN + 41 WHEN + 57 THEN NULL END / + 98 + + 38 THEN NULL WHEN - 71 THEN 92 * + COUNT ( * ) - - ( - 84 ) * COALESCE ( CAST ( NULL AS INTEGER ) * 99 + - 27, 93 ) ELSE NULL END / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9053
SELECT 77 * + 68 DIV + ( + COUNT( * ) ) + COUNT( * ) + COUNT( * ) * + - NULLIF ( + 76, + 13 ) * + 28 AS col0
----
3109

skipif mysql # not compatible
query I rowsort label-9053
SELECT 77 * + 68 / + ( + COUNT ( * ) ) + COUNT ( * ) + COUNT ( * ) * + - NULLIF ( + 76, + 13 ) * + 28 AS col0
----
3109

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT ALL + COUNT( * ) * - 29 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL + COUNT ( * ) * - 29 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-9055
SELECT + COUNT( * ) + + + 20 + + 62 AS col2, 60 AS col1
----
83
60

skipif mysql # not compatible
query II rowsort label-9055
SELECT + COUNT ( * ) + + + 20 + + 62 AS col2, 60 AS col1
----
83
60

query I rowsort
SELECT - 38 * - 17 AS col2
----
646

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT + 25 * + - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT + 25 * + - COUNT ( * )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT ALL - COUNT( * ) * - COUNT( * ) + + 7 * + + 49 + ( + - 62 ) + - ( - - 53 ) * 7
----
-89

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + + 7 * + + 49 + ( + - 62 ) + - ( - - 53 ) * 7
----
-89

query I rowsort
SELECT - 96 + + 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9060
SELECT + + 12 * - - CAST( + - 86 AS SIGNED ) - 63 + - - 23 / - - CAST( NULL AS SIGNED ) * + 94 + + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT + + 12 * - - CAST ( + - 86 AS INTEGER ) - 63 + - - 23 / - - CAST ( NULL AS INTEGER ) * + 94 + + - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT + COUNT( * ) + + - ( + 48 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-9061
SELECT + COUNT ( * ) + + - ( + 48 ) AS col0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9062
SELECT + + COALESCE ( - CASE - 63 WHEN + COUNT( * ) THEN - 56 DIV + 72 * - - NULLIF ( - 9, ( 81 ) ) - 56 ELSE 58 END, 69 - + 77, - 96 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9062
SELECT + + COALESCE ( - CASE - 63 WHEN + COUNT ( * ) THEN - 56 / + 72 * - - NULLIF ( - 9, ( 81 ) ) - 56 ELSE 58 END, 69 - + 77, - 96 ) AS col2
----
-58

query II rowsort
SELECT + 26 AS col0, 48
----
26
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL 6 * - - 32 + - NULLIF ( ( ( + - MAX( DISTINCT - 59 ) ) ), - + 96 ) AS col1
----
133

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL 6 * - - 32 + - NULLIF ( ( ( + - MAX ( DISTINCT - 59 ) ) ), - + 96 ) AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT ALL + 32 * - 37 * - SUM( + 74 ) * - + ( COALESCE ( 3, - + MAX( - 36 ) ) ) + + COUNT( * ) + - COUNT( * ) * + ( - 28 * - 27 )
----
-263603

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL + 32 * - 37 * - SUM ( + 74 ) * - + ( COALESCE ( 3, - + MAX ( - 36 ) ) ) + + COUNT ( * ) + - COUNT ( * ) * + ( - 28 * - 27 )
----
-263603

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT COUNT( DISTINCT - ( + 12 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9066
SELECT COUNT ( DISTINCT - ( + 12 ) )
----
1

query I rowsort
SELECT ALL 57 + - + 49 + - 80
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT MIN( DISTINCT - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9068
SELECT MIN ( DISTINCT - 85 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT + 80 + + COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9069
SELECT + 80 + + COUNT ( * ) AS col1
----
81

query I rowsort
SELECT + NULLIF ( - + 17, 30 ) * - 1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT + 36 * + - COALESCE ( SUM( DISTINCT + 91 ), - 14 ) + 13 + - 25 * + COUNT( * ) + 30 + + COUNT( * ) AS col2
----
-3257

skipif mysql # not compatible
query I rowsort label-9071
SELECT + 36 * + - COALESCE ( SUM ( DISTINCT + 91 ), - 14 ) + 13 + - 25 * + COUNT ( * ) + 30 + + COUNT ( * ) AS col2
----
-3257

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT + COUNT( * ) * - - 76
----
76

skipif mysql # not compatible
query I rowsort label-9072
SELECT + COUNT ( * ) * - - 76
----
76

query I rowsort
SELECT - 21 + - 5 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT ALL MAX( 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL MAX ( 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL MIN( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL MIN ( 73 )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9076
SELECT DISTINCT 56 - + 8 AS col0, - 72 * + COUNT( * ) + + 15 * + COUNT( * )
----
48
-57

skipif mysql # not compatible
query II rowsort label-9076
SELECT DISTINCT 56 - + 8 AS col0, - 72 * + COUNT ( * ) + + 15 * + COUNT ( * )
----
48
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9077
SELECT + 26 + - MAX( DISTINCT + 78 ) DIV 51 * + 51
----
-25

skipif mysql # not compatible
query I rowsort label-9077
SELECT + 26 + - MAX ( DISTINCT + 78 ) / 51 * + 51
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-9078
SELECT DISTINCT 50 DIV NULLIF ( - 24, + COALESCE ( - 90, + + 53 * - - 48 + - ( 89 ) ) + + 35 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT 50 / NULLIF ( - 24, + COALESCE ( - 90, + + 53 * - - 48 + - ( 89 ) ) + + 35 ) AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9079
SELECT DISTINCT + 47 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT + 47 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9080
SELECT ALL COALESCE ( + SUM( DISTINCT + 35 ), + + 34 DIV - COUNT( - 46 ) + + + 17, + 32 )
----
35

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL COALESCE ( + SUM ( DISTINCT + 35 ), + + 34 / - COUNT ( - 46 ) + + + 17, + 32 )
----
35

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9081
SELECT DISTINCT + 38 * - - CAST( NULL AS SIGNED ) AS col0, + 12 - - - CAST( NULL AS DECIMAL ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9081
SELECT DISTINCT + 38 * - - CAST ( NULL AS INTEGER ) AS col0, + 12 - - - CAST ( NULL AS REAL ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT + ( + 12 ) * + - 5 + - - 35 - + 73 + + 50 * - - CASE SUM( - 35 ) WHEN + 14 * + 54 THEN - 35 / COUNT( * ) END + + NULLIF ( ( + 86 ) + 9, + 91 ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9082
SELECT + ( + 12 ) * + - 5 + - - 35 - + 73 + + 50 * - - CASE SUM ( - 35 ) WHEN + 14 * + 54 THEN - 35 / COUNT ( * ) END + + NULLIF ( ( + 86 ) + 9, + 91 ) * 12
----
NULL

query I rowsort
SELECT + ( + - 8 ) + - 61 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT DISTINCT + COALESCE ( 21, - 21 ) - - + 20 + + CASE + + ( + ( + + 88 ) ) WHEN - + 76 THEN 56 WHEN + 46 - - 66 THEN 30 * 99 WHEN COUNT( * ) + 10 THEN 73 + + 41 * 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT + COALESCE ( 21, - 21 ) - - + 20 + + CASE + + ( + ( + + 88 ) ) WHEN - + 76 THEN 56 WHEN + 46 - - 66 THEN 30 * 99 WHEN COUNT ( * ) + 10 THEN 73 + + 41 * 98 END
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 21, 64 - + - 17 )
----
-21

query II rowsort
SELECT - ( 42 ) AS col2, 58 + - - 5 * - - 41 AS col0
----
-42
263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9087
SELECT - 49 + + CASE + CASE + + CASE - 4 WHEN + 75 THEN NULL WHEN 18 THEN + MIN( ALL 11 ) + 43 END WHEN 2 THEN + 9 WHEN 24 THEN NULL WHEN CASE ( + 43 ) WHEN + 65 + - SUM( ALL 64 ) THEN + 77 ELSE NULL END THEN 7 * 67 END WHEN 44 * - 11 THEN - CAST( ( - 90 ) AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT - 49 + + CASE + CASE + + CASE - 4 WHEN + 75 THEN NULL WHEN 18 THEN + MIN ( ALL 11 ) + 43 END WHEN 2 THEN + 9 WHEN 24 THEN NULL WHEN CASE ( + 43 ) WHEN + 65 + - SUM ( ALL 64 ) THEN + 77 ELSE NULL END THEN 7 * 67 END WHEN 44 * - 11 THEN - CAST ( ( - 90 ) AS INTEGER ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - - 26 + - 29
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT DISTINCT - COUNT( * ) * 16 * - 7
----
112

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT - COUNT ( * ) * 16 * - 7
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9090
SELECT ALL MAX( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL MAX ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

query II rowsort
SELECT ALL + 88 * + - 26, 50 + + ( 35 ) * - 88 AS col1
----
-2288
-3030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9092
SELECT - - 77 + - + 43 - + 94 * - 59 + 9 + - CAST( NULL AS SIGNED ) * + 0 + - MAX( ALL - 20 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9092
SELECT - - 77 + - + 43 - + 94 * - 59 + 9 + - CAST ( NULL AS INTEGER ) * + 0 + - MAX ( ALL - 20 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT ( - + MIN( ALL - ( 7 ) ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9093
SELECT ( - + MIN ( ALL - ( 7 ) ) ) AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9094
SELECT ALL + + ( + 97 ) DIV - - 18 + - 65 + + - 39 + - + 20 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL + + ( + 97 ) / - - 18 + - 65 + + - 39 + - + 20 AS col0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT - CASE + + SUM( + 74 ) WHEN + - 89 * + + 20 + + + 82 THEN NULL ELSE - + COALESCE ( 91, - 87 ) END * - 43
----
-3913

skipif mysql # not compatible
query I rowsort label-9095
SELECT - CASE + + SUM ( + 74 ) WHEN + - 89 * + + 20 + + + 82 THEN NULL ELSE - + COALESCE ( 91, - 87 ) END * - 43
----
-3913

query I rowsort
SELECT - 50 + + - 25 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL - + 66 / 82 - + 38 - CASE + + 34 WHEN - - 71 * - 54 - 10 * + 2 * 99 - 32 / - CASE 4 WHEN 31 / + 28 THEN COUNT( * ) END THEN 5 WHEN 82 + COUNT( * ) THEN NULL ELSE NULL END * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL - + 66 / 82 - + 38 - CASE + + 34 WHEN - - 71 * - 54 - 10 * + 2 * 99 - 32 / - CASE 4 WHEN 31 / + 28 THEN COUNT ( * ) END THEN 5 WHEN 82 + COUNT ( * ) THEN NULL ELSE NULL END * + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT + MIN( ALL - + 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9098
SELECT + MIN ( ALL - + 9 ) AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9099
SELECT + + COUNT( + 76 ) * 21 + - ( - - COALESCE ( - NULLIF ( 91, - - COUNT( * ) * 14 + - AVG ( DISTINCT + 1 ) DIV - 74 ), 75 DIV + 85 ) ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-9099
SELECT + + COUNT ( + 76 ) * 21 + - ( - - COALESCE ( - NULLIF ( 91, - - COUNT ( * ) * 14 + - AVG ( DISTINCT + 1 ) / - 74 ), 75 / + 85 ) ) AS col2
----
112

query II rowsort
SELECT + ( 59 ) AS col0, + 53 AS col2
----
59
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9101
SELECT - COALESCE ( + COALESCE ( + ( MIN( + + 36 ) ), - 45 ), 50 ) DIV + 2 - - + CAST( 44 AS SIGNED ) + 15 * MAX( 33 )
----
521

skipif mysql # not compatible
query I rowsort label-9101
SELECT - COALESCE ( + COALESCE ( + ( MIN ( + + 36 ) ), - 45 ), 50 ) / + 2 - - + CAST ( 44 AS INTEGER ) + 15 * MAX ( 33 )
----
521

onlyif mysql # DIV for integer division: 
query I rowsort label-9102
SELECT - + 50 * - + NULLIF ( 31, + ( - 32 ) - 32 ) * + NULLIF ( - COALESCE ( 73, + 77 DIV 15 ), + 59 - - 36 ) + 36 AS col0
----
-113114

skipif mysql # not compatible
query I rowsort label-9102
SELECT - + 50 * - + NULLIF ( 31, + ( - 32 ) - 32 ) * + NULLIF ( - COALESCE ( 73, + 77 / 15 ), + 59 - - 36 ) + 36 AS col0
----
-113114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9103
SELECT ALL - + SUM( ALL - 38 ) DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL - + SUM ( ALL - 38 ) / - 33
----
-1

query I rowsort
SELECT + COALESCE ( + 61, - - 15 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-9105
SELECT ALL + - SUM( ALL - 67 ) AS col0, + 11
----
67
11

skipif mysql # not compatible
query II rowsort label-9105
SELECT ALL + - SUM ( ALL - 67 ) AS col0, + 11
----
67
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ( - NULLIF ( - + COUNT( * ), - + ( + 90 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9106
SELECT ( - NULLIF ( - + COUNT ( * ), - + ( + 90 ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT ALL NULLIF ( - - 44, + 13 ) * - 64 + - 29 + + COUNT( * )
----
-2844

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL NULLIF ( - - 44, + 13 ) * - 64 + - 29 + + COUNT ( * )
----
-2844

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT - MIN( - + 85 ) - + ( - 99 ) col1
----
184

skipif mysql # not compatible
query I rowsort label-9108
SELECT - MIN ( - + 85 ) - + ( - 99 ) col1
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT + SUM( - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-9109
SELECT + SUM ( - 63 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9110
SELECT + CASE - ( 92 ) WHEN 83 + - 38 THEN MAX( 20 ) WHEN NULLIF ( - CASE + - 4 WHEN - 84 + + 64 THEN NULL WHEN 83 / + 81 THEN + CASE 47 WHEN 9 + - CAST( NULL AS DECIMAL ) THEN NULL WHEN 10 - COUNT( * ) THEN NULLIF ( + 93, CASE 16 WHEN + AVG ( ALL 40 ) * 10 THEN + 51 / + 71 ELSE NULL END ) + + 58 END + - 52 END, ( 45 ) ) THEN 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT + CASE - ( 92 ) WHEN 83 + - 38 THEN MAX ( 20 ) WHEN NULLIF ( - CASE + - 4 WHEN - 84 + + 64 THEN NULL WHEN 83 / + 81 THEN + CASE 47 WHEN 9 + - CAST ( NULL AS REAL ) THEN NULL WHEN 10 - COUNT ( * ) THEN NULLIF ( + 93, CASE 16 WHEN + AVG ( ALL 40 ) * 10 THEN + 51 / + 71 ELSE NULL END ) + + 58 END + - 52 END, ( 45 ) ) THEN 54 END
----
NULL

query I rowsort
SELECT ALL 63 * - 61 - - 40 col1
----
-3803

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9112
SELECT ALL + NULLIF ( - - 96, - 52 ) col0, MIN( DISTINCT + 2 ) DIV - 2 + COUNT( * )
----
96
0

skipif mysql # not compatible
query II rowsort label-9112
SELECT ALL + NULLIF ( - - 96, - 52 ) col0, MIN ( DISTINCT + 2 ) / - 2 + COUNT ( * )
----
96
0

query I rowsort
SELECT ALL 80 * 28 AS col1
----
2240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9114
SELECT + 85 - + 1 / - 59 + CAST( NULL AS SIGNED ) * + 70 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT + 85 - + 1 / - 59 + CAST ( NULL AS INTEGER ) * + 70 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9115
SELECT ALL 97 * + ( + 65 ) * 45 * 38, + 8 * COUNT( * ) AS col2
----
10781550
8

skipif mysql # not compatible
query II rowsort label-9115
SELECT ALL 97 * + ( + 65 ) * 45 * 38, + 8 * COUNT ( * ) AS col2
----
10781550
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9116
SELECT DISTINCT 9 DIV - + 47
----
0

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT 9 / - + 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT ALL SUM( DISTINCT - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL SUM ( DISTINCT - 86 )
----
-86

query I rowsort
SELECT DISTINCT 32 * + 72 AS col2
----
2304

query I rowsort
SELECT + 55 * - 42 AS col2
----
-2310

query I rowsort
SELECT + 73 + 36 * + + 69 AS col0
----
2557

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT ALL SUM( - + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL SUM ( - + 6 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9122
SELECT - 49 + NULLIF ( + COUNT( * ), 45 + - 55 ) DIV 22
----
-49

skipif mysql # not compatible
query I rowsort label-9122
SELECT - 49 + NULLIF ( + COUNT ( * ), 45 + - 55 ) / 22
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT - 8 - + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-9123
SELECT - 8 - + COUNT ( * )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9124
SELECT + 19 DIV + + 24 * - + 10
----
0

skipif mysql # not compatible
query I rowsort label-9124
SELECT + 19 / + + 24 * - + 10
----
0

query I rowsort
SELECT - 25 * - 52
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT ALL COALESCE ( 46, CASE 16 WHEN - 31 THEN - - 45 WHEN - - COUNT( * ) THEN + 15 ELSE NULL END, + 63 )
----
46

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL COALESCE ( 46, CASE 16 WHEN - 31 THEN - - 45 WHEN - - COUNT ( * ) THEN + 15 ELSE NULL END, + 63 )
----
46

query I rowsort
SELECT ALL COALESCE ( - NULLIF ( 70, 84 ), - ( + - 26 ), 51 ) AS col2
----
-70

query I rowsort
SELECT ALL - - 44 * - 46
----
-2024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9129
SELECT + ( + - 93 ) * 41 * - + CAST( - COALESCE ( - + COUNT( * ), - - 9 ) AS SIGNED ) AS col0
----
3813

skipif mysql # not compatible
query I rowsort label-9129
SELECT + ( + - 93 ) * 41 * - + CAST ( - COALESCE ( - + COUNT ( * ), - - 9 ) AS INTEGER ) AS col0
----
3813

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL + COUNT( * ) * - + 29
----
-29

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL + COUNT ( * ) * - + 29
----
-29

query I rowsort
SELECT - 11 * 82 * + - 43 + 24 col2
----
38810

query I rowsort
SELECT + 51 + - - 96
----
147

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9133
SELECT DISTINCT - COALESCE ( + - 48, COALESCE ( 49, + 54, + ( - COALESCE ( - - 16, - 7 * - - CAST( + 6 AS SIGNED ), + 68 + 40 * + 51 ) ) DIV 78 ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT - COALESCE ( + - 48, COALESCE ( 49, + 54, + ( - COALESCE ( - - 16, - 7 * - - CAST ( + 6 AS INTEGER ), + 68 + 40 * + 51 ) ) / 78 ) ) AS col1
----
48

query I rowsort
SELECT 65 + 25 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT ALL - 76 * - - SUM( + 7 ) * + 19 AS col2
----
-10108

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL - 76 * - - SUM ( + 7 ) * + 19 AS col2
----
-10108

onlyif mysql # DIV for integer division: 
query I rowsort label-9136
SELECT + 78 + 67 - 18 * - 82 DIV 40 AS col1
----
181

skipif mysql # not compatible
query I rowsort label-9136
SELECT + 78 + 67 - 18 * - 82 / 40 AS col1
----
181

query I rowsort
SELECT DISTINCT - 43 + + + 98 + 90 - - - 64 * + 73 + + 44
----
-4483

query I rowsort
SELECT ALL + 84 + + 29 AS col1
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9139
SELECT + - COUNT( 39 ) * + - 84 * + 55 * + CASE - + 53 WHEN + COUNT( + + CAST( NULL AS SIGNED ) ) THEN - 56 * COUNT( * ) + MAX( DISTINCT + 35 ) WHEN NULLIF ( + ( - 21 ), 54 * + 48 + 88 * COUNT( * ) ) + COUNT( * ) THEN 18 * 98 + COUNT( * ) END * 2 - 40 - 41 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT + - COUNT ( 39 ) * + - 84 * + 55 * + CASE - + 53 WHEN + COUNT ( + + CAST ( NULL AS INTEGER ) ) THEN - 56 * COUNT ( * ) + MAX ( DISTINCT + 35 ) WHEN NULLIF ( + ( - 21 ), 54 * + 48 + 88 * COUNT ( * ) ) + COUNT ( * ) THEN 18 * 98 + COUNT ( * ) END * 2 - 40 - 41 col2
----
NULL

query I rowsort
SELECT DISTINCT - 82 * ( 28 )
----
-2296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9141
SELECT 43 DIV - 20 + + 69 + - 93 * + - 49 + MIN( DISTINCT + 40 )
----
4664

skipif mysql # not compatible
query I rowsort label-9141
SELECT 43 / - 20 + + 69 + - 93 * + - 49 + MIN ( DISTINCT + 40 )
----
4664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9142
SELECT + 66 * - 31 * - COALESCE ( - 80, + 48 ) * - 9 * 20 - - 93 * - 3 + - NULLIF ( + + 20, 84 / + COUNT( * ) ) - + 15 * - CAST( + 73 + - COALESCE ( COALESCE ( 35, + 1, - 99 ) + - ( + 35 + - 49 ), 10 * 99 ) AS SIGNED )
----
29462461

skipif mysql # not compatible
query I rowsort label-9142
SELECT + 66 * - 31 * - COALESCE ( - 80, + 48 ) * - 9 * 20 - - 93 * - 3 + - NULLIF ( + + 20, 84 / + COUNT ( * ) ) - + 15 * - CAST ( + 73 + - COALESCE ( COALESCE ( 35, + 1, - 99 ) + - ( + 35 + - 49 ), 10 * 99 ) AS INTEGER )
----
29462461

onlyif mysql # aggregate syntax: 
query II rowsort label-9143
SELECT 13 AS col1, SUM( DISTINCT 8 ) AS col0
----
13
8

skipif mysql # not compatible
query II rowsort label-9143
SELECT 13 AS col1, SUM ( DISTINCT 8 ) AS col0
----
13
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9144
SELECT 1 * - 53 DIV + 11 + MAX( + 55 ) + - COALESCE ( - 73, - ( + - 50 ) * - + 0 ) * + 23 - - MAX( ALL + 44 )
----
1774

skipif mysql # not compatible
query I rowsort label-9144
SELECT 1 * - 53 / + 11 + MAX ( + 55 ) + - COALESCE ( - 73, - ( + - 50 ) * - + 0 ) * + 23 - - MAX ( ALL + 44 )
----
1774

query I rowsort
SELECT 4 - - + 90 + + 88 AS col1
----
182

query I rowsort
SELECT DISTINCT - 19 * 13 * + + 51 AS col1
----
-12597

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL - ( CASE + 66 WHEN + 66 * - 85 + + 82 THEN NULL WHEN + - 74 THEN - COUNT( ALL 62 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL - ( CASE + 66 WHEN + 66 * - 85 + + 82 THEN NULL WHEN + - 74 THEN - COUNT ( ALL 62 ) END )
----
NULL

query I rowsort
SELECT 0 * + 7 * ( - - 78 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9149
SELECT DISTINCT + 20 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT + 20 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 65 * + 33 AS col0
----
-2145

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT 10 * + NULLIF ( - COUNT( * ), COALESCE ( - + COUNT( ALL 40 ), 19, 98 + - 54 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT 10 * + NULLIF ( - COUNT ( * ), COALESCE ( - + COUNT ( ALL 40 ), 19, 98 + - 54 ) )
----
NULL

query II rowsort
SELECT DISTINCT - 47 * 87, 68 AS col2
----
-4089
68

query I rowsort
SELECT ALL - ( - - 77 ) AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9154
SELECT + AVG ( - 66 ) * + - 35 + + - 22 * ( + 20 ) * 29 + 51 + + + CASE 0 WHEN 40 - + COUNT( * ) THEN NULL WHEN CASE CAST( - 86 AS SIGNED ) WHEN 64 THEN 79 * 65 WHEN + ( - 80 ) * 52 THEN NULL END THEN + 92 WHEN 10 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT + AVG ( - 66 ) * + - 35 + + - 22 * ( + 20 ) * 29 + 51 + + + CASE 0 WHEN 40 - + COUNT ( * ) THEN NULL WHEN CASE CAST ( - 86 AS INTEGER ) WHEN 64 THEN 79 * 65 WHEN + ( - 80 ) * 52 THEN NULL END THEN + 92 WHEN 10 THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9155
SELECT 0 + - - COUNT( * ) + + - 96 * - COUNT( * ) AS col2, 51 + 32
----
97
83

skipif mysql # not compatible
query II rowsort label-9155
SELECT 0 + - - COUNT ( * ) + + - 96 * - COUNT ( * ) AS col2, 51 + 32
----
97
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9156
SELECT DISTINCT 19 AS col0, 84 * - ( - ( - NULLIF ( ( 25 ), - MAX( + 28 ) ) ) )
----
19
-2100

skipif mysql # not compatible
query II rowsort label-9156
SELECT DISTINCT 19 AS col0, 84 * - ( - ( - NULLIF ( ( 25 ), - MAX ( + 28 ) ) ) )
----
19
-2100

onlyif mysql # DIV for integer division: 
query II rowsort label-9157
SELECT - - 24 AS col0, NULLIF ( + 40, + 40 + + 35 * + + ( - - 29 ) ) DIV + 80
----
24
0

skipif mysql # not compatible
query II rowsort label-9157
SELECT - - 24 AS col0, NULLIF ( + 40, + 40 + + 35 * + + ( - - 29 ) ) / + 80
----
24
0

query I rowsort
SELECT - 82 + + + 29 * 94 AS col2
----
2644

query I rowsort
SELECT ALL - COALESCE ( - 80, - 59, 66 ) + 52 AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ALL 56 / - + 8 * - - CASE 67 WHEN + - 46 * MIN( DISTINCT + 95 ) THEN + 0 * - - 67 + - 5 + + 81 + 63 * 67 END + + ( + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL 56 / - + 8 * - - CASE 67 WHEN + - 46 * MIN ( DISTINCT + 95 ) THEN + 0 * - - 67 + - 5 + + 81 + 63 * 67 END + + ( + 1 )
----
NULL

query I rowsort
SELECT COALESCE ( + 92, - ( 67 ) ) + + 64
----
156

query I rowsort
SELECT + 35 + + 42 * - 42 AS col2
----
-1729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9163
SELECT ALL - CAST( 48 AS SIGNED ) + + 61 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL - CAST ( 48 AS INTEGER ) + + 61 AS col2
----
13

query II rowsort
SELECT - + NULLIF ( - 40, + + 85 * + 90 ) AS col1, 90
----
40
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT 80 DIV + + 38 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9165
SELECT 80 / + + 38 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT - 32 + SUM( - - 57 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-9166
SELECT - 32 + SUM ( - - 57 ) AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9167
SELECT 95 AS col0, + 78 + - MAX( ALL + 28 ) * - + CAST( NULL AS SIGNED ) * + 47
----
95
NULL

skipif mysql # not compatible
query II rowsort label-9167
SELECT 95 AS col0, + 78 + - MAX ( ALL + 28 ) * - + CAST ( NULL AS INTEGER ) * + 47
----
95
NULL

query II rowsort
SELECT 70 + 39 AS col0, - 76 + + 76
----
109
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9169
SELECT 72 * + 15 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9169
SELECT 72 * + 15 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9170
SELECT ALL + 16 AS col0, - 38 + - + ( - - CAST( + + 56 AS SIGNED ) ) * + 26
----
16
-1494

skipif mysql # not compatible
query II rowsort label-9170
SELECT ALL + 16 AS col0, - 38 + - + ( - - CAST ( + + 56 AS INTEGER ) ) * + 26
----
16
-1494

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT DISTINCT - 86 + + - SUM( ALL + ( + 84 ) ) + + - MAX( DISTINCT + 4 ) * - 84 col1
----
166

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT - 86 + + - SUM ( ALL + ( + 84 ) ) + + - MAX ( DISTINCT + 4 ) * - 84 col1
----
166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9172
SELECT DISTINCT + + 99 DIV + + NULLIF ( + + NULLIF ( + NULLIF ( SUM( 87 ), - SUM( DISTINCT + + 78 ) ), 89 ), + + 11 )
----
1

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT + + 99 / + + NULLIF ( + + NULLIF ( + NULLIF ( SUM ( 87 ), - SUM ( DISTINCT + + 78 ) ), 89 ), + + 11 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT COUNT( * ) + + COUNT( + 6 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9173
SELECT COUNT ( * ) + + COUNT ( + 6 ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9174
SELECT ALL - CAST( - - 53 AS SIGNED ) + - + 9 - - 13 - + 29 * - 87 * CASE + + 75 WHEN + 52 THEN COUNT( * ) * CASE + ( + COUNT( * ) ) WHEN COUNT( * ) * 22 THEN NULL WHEN + 55 THEN 84 WHEN MAX( 15 ) THEN NULLIF ( 39, COUNT( ALL ( - ( - 71 ) ) ) - ( - ( CASE + CAST( NULL AS SIGNED ) WHEN COALESCE ( + CAST( 17 AS DECIMAL ), CAST( NULL AS SIGNED ) ) THEN NULL ELSE + 66 END ) ) / - 62 ) + - 27 ELSE 10 + - 30 * + 76 END - 19 WHEN 62 * - 74 - - 69 THEN + 20 / 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL - CAST ( - - 53 AS INTEGER ) + - + 9 - - 13 - + 29 * - 87 * CASE + + 75 WHEN + 52 THEN COUNT ( * ) * CASE + ( + COUNT ( * ) ) WHEN COUNT ( * ) * 22 THEN NULL WHEN + 55 THEN 84 WHEN MAX ( 15 ) THEN NULLIF ( 39, COUNT ( ALL ( - ( - 71 ) ) ) - ( - ( CASE + CAST ( NULL AS INTEGER ) WHEN COALESCE ( + CAST ( 17 AS REAL ), CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + 66 END ) ) / - 62 ) + - 27 ELSE 10 + - 30 * + 76 END - 19 WHEN 62 * - 74 - - 69 THEN + 20 / 75 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9175
SELECT DISTINCT 86 DIV + 86
----
1

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT 86 / + 86
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT + CAST( + - 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-9176
SELECT + CAST ( + - 5 AS INTEGER )
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-9177
SELECT + - 60 AS col0, 38 DIV 53
----
-60
0

skipif mysql # not compatible
query II rowsort label-9177
SELECT + - 60 AS col0, 38 / 53
----
-60
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT COUNT( ALL 24 )
----
1

skipif mysql # not compatible
query I rowsort label-9178
SELECT COUNT ( ALL 24 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT - 0 * - - 78 + MIN( DISTINCT + - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-9179
SELECT - 0 * - - 78 + MIN ( DISTINCT + - 91 )
----
-91

query II rowsort
SELECT ALL + 96 - - 39 AS col2, + ( - 33 )
----
135
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT + SUM( 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9181
SELECT + SUM ( 97 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT MAX( DISTINCT ( - 64 ) ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-9182
SELECT MAX ( DISTINCT ( - 64 ) ) AS col1
----
-64

query I rowsort
SELECT DISTINCT 33 * + 56
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT ALL - MIN( - + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL - MIN ( - + 23 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9185
SELECT DISTINCT - CAST( - - 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT - CAST ( - - 36 AS INTEGER )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT 10 * + SUM( + + 0 ) * - 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9186
SELECT 10 * + SUM ( + + 0 ) * - 6 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9187
SELECT ALL - MAX( - 1 ) AS col0, 2
----
1
2

skipif mysql # not compatible
query II rowsort label-9187
SELECT ALL - MAX ( - 1 ) AS col0, 2
----
1
2

query I rowsort
SELECT + 80 * - 79 + 54 + 43 + + 63 * - 43 + - - 48 AS col0
----
-8884

onlyif mysql # DIV for integer division: 
query I rowsort label-9189
SELECT 0 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-9189
SELECT 0 / 75
----
0

query I rowsort
SELECT 45 + 9
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9191
SELECT ALL + CAST( - - 79 AS SIGNED ) * - MAX( DISTINCT - 52 )
----
4108

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + CAST ( - - 79 AS INTEGER ) * - MAX ( DISTINCT - 52 )
----
4108

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL + 62 + COUNT( 47 ) + - 64
----
-1

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL + 62 + COUNT ( 47 ) + - 64
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9193
SELECT 25 * CAST( NULL AS DECIMAL ) * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT 25 * CAST ( NULL AS REAL ) * 56
----
NULL

query I rowsort
SELECT DISTINCT + 89 + ( + 27 ) * + ( 51 ) + - 71 * 27 AS col0
----
-451

query I rowsort
SELECT 35 * + + ( - ( - 96 ) ) AS col1
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL + MIN( - 37 ) + + NULLIF ( + 78, + + 2 ) + + 29 * + 71 - + 3
----
2097

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL + MIN ( - 37 ) + + NULLIF ( + 78, + + 2 ) + + 29 * + 71 - + 3
----
2097

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT DISTINCT - NULLIF ( + 22, - + CASE + COUNT( * ) WHEN + 34 * - COALESCE ( + 11, + + 3 + 81, + + 67 * AVG ( + - 57 ) / 71 ) THEN + 81 WHEN + 60 THEN NULL END ) * + 18
----
-396

skipif mysql # not compatible
query I rowsort label-9197
SELECT DISTINCT - NULLIF ( + 22, - + CASE + COUNT ( * ) WHEN + 34 * - COALESCE ( + 11, + + 3 + 81, + + 67 * AVG ( + - 57 ) / 71 ) THEN + 81 WHEN + 60 THEN NULL END ) * + 18
----
-396

query I rowsort
SELECT - + 20 + + ( - - 2 )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9199
SELECT ALL - COUNT( * ) * - - 52, 41 AS col2
----
-52
41

skipif mysql # not compatible
query II rowsort label-9199
SELECT ALL - COUNT ( * ) * - - 52, 41 AS col2
----
-52
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9200
SELECT + 2 * + - 28 + 35 * - CASE MAX( DISTINCT 14 ) WHEN 55 THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN 9 ELSE + 62 END
----
-2226

skipif mysql # not compatible
query I rowsort label-9200
SELECT + 2 * + - 28 + 35 * - CASE MAX ( DISTINCT 14 ) WHEN 55 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN 9 ELSE + 62 END
----
-2226

query I rowsort
SELECT - ( + - CASE - ( - - 77 ) WHEN + 79 * - 28 * + 16 THEN + 30 END )
----
NULL

query I rowsort
SELECT - + 37 * + - 57 AS col0
----
2109

query I rowsort
SELECT ALL - 93 * - - 19 * - 29
----
51243

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT - 49 + COALESCE ( ( + 12 ), - - 15 * - + CASE 86 WHEN - 29 * + + COUNT( * ) * COUNT( * ) THEN NULLIF ( - 58, COUNT( * ) + 91 ) END + + 69 * SUM( 60 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-9204
SELECT - 49 + COALESCE ( ( + 12 ), - - 15 * - + CASE 86 WHEN - 29 * + + COUNT ( * ) * COUNT ( * ) THEN NULLIF ( - 58, COUNT ( * ) + 91 ) END + + 69 * SUM ( 60 ) )
----
-37

query I rowsort
SELECT + + 38 * + 35 AS col1
----
1330

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9206
SELECT ALL + NULLIF ( 40, - CAST( NULL AS DECIMAL ) + - 63 ) * - 11 AS col2
----
-440

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL + NULLIF ( 40, - CAST ( NULL AS REAL ) + - 63 ) * - 11 AS col2
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT + 76 + + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-9207
SELECT + 76 + + COUNT ( * )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9208
SELECT + ( - - 44 ) * - COUNT( * ) * + + CASE 3 WHEN 91 THEN 24 * 11 + COUNT( * ) WHEN + ( + ( + + CASE - 67 WHEN + 29 + - 44 THEN NULL WHEN 34 THEN 63 * 80 + CAST( + ( - ( + 41 ) ) AS SIGNED ) ELSE - 42 * 22 END ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT + ( - - 44 ) * - COUNT ( * ) * + + CASE 3 WHEN 91 THEN 24 * 11 + COUNT ( * ) WHEN + ( + ( + + CASE - 67 WHEN + 29 + - 44 THEN NULL WHEN 34 THEN 63 * 80 + CAST ( + ( - ( + 41 ) ) AS INTEGER ) ELSE - 42 * 22 END ) ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ALL + 37 * 69 * - COUNT( * )
----
-2553

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL + 37 * 69 * - COUNT ( * )
----
-2553

onlyif mysql # DIV for integer division: 
query I rowsort label-9210
SELECT ALL ( - + 39 ) DIV + 6
----
-6

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL ( - + 39 ) / + 6
----
-6

query I rowsort
SELECT + 63 + ( 11 )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9212
SELECT + 80 DIV + 74 col0
----
1

skipif mysql # not compatible
query I rowsort label-9212
SELECT + 80 / + 74 col0
----
1

query I rowsort
SELECT + ( + + 44 ) col2
----
44

query I rowsort
SELECT + 27 + 58 - + 45 AS col2
----
40

query II rowsort
SELECT - 13 * - - 41 * 65 + 7 AS col1, 74 + - 84 * + 48
----
-34638
-3958

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT ALL NULLIF ( 78, COALESCE ( - 40, 13 + - - COUNT( * ) + - 60 + + 52 * + 32 ) ) * - + 74
----
-5772

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL NULLIF ( 78, COALESCE ( - 40, 13 + - - COUNT ( * ) + - 60 + + 52 * + 32 ) ) * - + 74
----
-5772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9217
SELECT ALL ( + 11 ) * - 53 * COUNT( * ) + - - 99 + - 57 + + 98 DIV - - ( - + COUNT( * ) ) + - ( - ( 66 ) )
----
-573

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL ( + 11 ) * - 53 * COUNT ( * ) + - - 99 + - 57 + + 98 / - - ( - + COUNT ( * ) ) + - ( - ( 66 ) )
----
-573

onlyif mysql # DIV for integer division: 
query I rowsort label-9218
SELECT 3 * + 75 + + + ( - - 15 ) DIV + 33 col2
----
225

skipif mysql # not compatible
query I rowsort label-9218
SELECT 3 * + 75 + + + ( - - 15 ) / + 33 col2
----
225

query I rowsort
SELECT ALL - 87 * 89 + 53 AS col0
----
-7690

onlyif mysql # aggregate syntax: 
query II rowsort label-9220
SELECT ALL + COUNT( * ) * 40 + 95 AS col1, - 55
----
135
-55

skipif mysql # not compatible
query II rowsort label-9220
SELECT ALL + COUNT ( * ) * 40 + 95 AS col1, - 55
----
135
-55

query I rowsort
SELECT + 73 + - 41 AS col1
----
32

query I rowsort
SELECT ALL CASE ( - - 74 ) WHEN + 41 * + 70 THEN NULL ELSE - ( - ( - - 27 ) ) END * 48 col1
----
1296

query I rowsort
SELECT - 49 + - 31 + + 86 * 8 AS col0
----
608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9224
SELECT ALL + 9 AS col2, + CASE - + NULLIF ( + - 6, + CAST( NULL AS SIGNED ) ) WHEN + + COUNT( * ) - - + 30 THEN NULL WHEN + + 61 / - - 73 * + 16 + - ( - - ( + - 87 ) ) THEN NULL ELSE - 50 * + 71 END AS col0
----
9
-3550

skipif mysql # not compatible
query II rowsort label-9224
SELECT ALL + 9 AS col2, + CASE - + NULLIF ( + - 6, + CAST ( NULL AS INTEGER ) ) WHEN + + COUNT ( * ) - - + 30 THEN NULL WHEN + + 61 / - - 73 * + 16 + - ( - - ( + - 87 ) ) THEN NULL ELSE - 50 * + 71 END AS col0
----
9
-3550

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT NULLIF ( 95, - CASE + COUNT( * ) WHEN - COUNT( * ) THEN + 61 + + 37 + 95 + - - ( - 5 ) / + - 16 * 99 / 87 + 79 * 88 * COUNT( * ) ELSE NULL END / - 69 - - 98 ) col1
----
95

skipif mysql # not compatible
query I rowsort label-9225
SELECT NULLIF ( 95, - CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN + 61 + + 37 + 95 + - - ( - 5 ) / + - 16 * 99 / 87 + 79 * 88 * COUNT ( * ) ELSE NULL END / - 69 - - 98 ) col1
----
95

query I rowsort
SELECT - - 98 * + - 36 + + - 35 + + 43 * 60
----
-983

query I rowsort
SELECT - + 27 * 36 AS col2
----
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT DISTINCT + - 64 * - 98 + COUNT( * ) * - - 85 + + - COUNT( * ) AS col0
----
6356

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT + - 64 * - 98 + COUNT ( * ) * - - 85 + + - COUNT ( * ) AS col0
----
6356

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT - COUNT( * ) + - 24 + + - 99 * 68 col1
----
-6757

skipif mysql # not compatible
query I rowsort label-9229
SELECT - COUNT ( * ) + - 24 + + - 99 * 68 col1
----
-6757

query I rowsort
SELECT ALL + - ( - - 66 ) * 50 AS col0
----
-3300

query I rowsort
SELECT DISTINCT 18 + - 26 + - - 64 AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9232
SELECT - - 10 AS col2, 25 * - - COUNT( * ) AS col2
----
10
25

skipif mysql # not compatible
query II rowsort label-9232
SELECT - - 10 AS col2, 25 * - - COUNT ( * ) AS col2
----
10
25

query I rowsort
SELECT - + 92 + + ( - + 88 )
----
-180

query I rowsort
SELECT - - ( + 42 ) + 55 + - 49
----
48

query I rowsort
SELECT ALL - 6 - - 16 AS col0
----
10

query I rowsort
SELECT ALL + + 53 * 75
----
3975

query II rowsort
SELECT - 7 AS col2, 28 AS col1
----
-7
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9238
SELECT DISTINCT + COUNT( * ) AS col2, 49
----
1
49

skipif mysql # not compatible
query II rowsort label-9238
SELECT DISTINCT + COUNT ( * ) AS col2, 49
----
1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT ALL - + COUNT( * ) - - 63 + - - COALESCE ( - + 32, 19 + 18, - 8 )
----
30

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - + COUNT ( * ) - - 63 + - - COALESCE ( - + 32, 19 + 18, - 8 )
----
30

query I rowsort
SELECT + + 76 + - ( + 51 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT - - MIN( ALL - 74 ) * + ( - 21 ) AS col2
----
1554

skipif mysql # not compatible
query I rowsort label-9241
SELECT - - MIN ( ALL - 74 ) * + ( - 21 ) AS col2
----
1554

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9242
SELECT - + CAST( - 88 AS SIGNED ) + + CASE + + COALESCE ( + - NULLIF ( - 8, 72 / - CAST( + - 80 AS SIGNED ) * + 94 ), - CAST( + 36 AS SIGNED ), 98 ) WHEN + COALESCE ( 85, 72 * - 36, 11 - + NULLIF ( CAST( NULL AS DECIMAL ), + ( 33 ) ) ) + 17 * 32 THEN NULL ELSE - 83 END AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9242
SELECT - + CAST ( - 88 AS INTEGER ) + + CASE + + COALESCE ( + - NULLIF ( - 8, 72 / - CAST ( + - 80 AS INTEGER ) * + 94 ), - CAST ( + 36 AS INTEGER ), 98 ) WHEN + COALESCE ( 85, 72 * - 36, 11 - + NULLIF ( CAST ( NULL AS REAL ), + ( 33 ) ) ) + 17 * 32 THEN NULL ELSE - 83 END AS col0
----
5

query I rowsort
SELECT - + 32 * - + 41
----
1312

query I rowsort
SELECT ALL - 21 * - 84
----
1764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9245
SELECT - CAST( - 6 AS SIGNED ) + 92 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9245
SELECT - CAST ( - 6 AS INTEGER ) + 92 AS col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9246
SELECT ALL CAST( + 37 AS SIGNED ), 68 AS col1
----
37
68

skipif mysql # not compatible
query II rowsort label-9246
SELECT ALL CAST ( + 37 AS INTEGER ), 68 AS col1
----
37
68

query I rowsort
SELECT - NULLIF ( + 65, + - 9 * - 53 / - 21 * - 27 - - + 25 ) AS col2
----
-65

query II rowsort
SELECT + 39 * + 54 AS col1, + 11 * - - 90
----
2106
990

query I rowsort
SELECT + 56 + + 32
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9250
SELECT DISTINCT + CAST( CAST( 60 AS SIGNED ) AS SIGNED ) DIV - 47 + - ( + 6 ) - + ( - 49 ) DIV - ( + MAX( ALL - + 80 ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT + CAST ( CAST ( 60 AS INTEGER ) AS INTEGER ) / - 47 + - ( + 6 ) - + ( - 49 ) / - ( + MAX ( ALL - + 80 ) ) AS col0
----
-7

query I rowsort
SELECT + NULLIF ( + + 45, + + 5 )
----
45

query I rowsort
SELECT - 3 * 91 AS col2
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9253
SELECT + NULLIF ( + - CAST( NULL AS SIGNED ), 85 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT + NULLIF ( + - CAST ( NULL AS INTEGER ), 85 ) AS col2
----
NULL

query II rowsort
SELECT + 79 * - 0 col2, 54 * + 70
----
0
3780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9255
SELECT ALL COUNT( DISTINCT 89 ) DIV 71 + - 61 + - + 8 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL COUNT ( DISTINCT 89 ) / 71 + - 61 + - + 8 AS col2
----
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-9256
SELECT DISTINCT - 15 DIV 41 + 8 - 88 AS col0, - 31 * - + COALESCE ( - 5, - - 55, + - 74, - 84 + - + 93 + ( + 41 ) )
----
-80
-155

skipif mysql # not compatible
query II rowsort label-9256
SELECT DISTINCT - 15 / 41 + 8 - 88 AS col0, - 31 * - + COALESCE ( - 5, - - 55, + - 74, - 84 + - + 93 + ( + 41 ) )
----
-80
-155

query I rowsort
SELECT + 73 * 60
----
4380

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT NULLIF ( - - NULLIF ( + - 31, + 22 + - 88 ), - COUNT( * ) * + 95 * - 12 * 64 * - 94 ) * - 84 + CASE + ( - + 36 ) WHEN 61 / - 79 THEN + 61 ELSE 46 END
----
2650

skipif mysql # not compatible
query I rowsort label-9258
SELECT NULLIF ( - - NULLIF ( + - 31, + 22 + - 88 ), - COUNT ( * ) * + 95 * - 12 * 64 * - 94 ) * - 84 + CASE + ( - + 36 ) WHEN 61 / - 79 THEN + 61 ELSE 46 END
----
2650

query I rowsort
SELECT ALL 31 + + + 38 AS col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-9260
SELECT 19 - 49 AS col2, MAX( ALL - - 10 ) + + + 36 + - + 21 + + + 18
----
-30
43

skipif mysql # not compatible
query II rowsort label-9260
SELECT 19 - 49 AS col2, MAX ( ALL - - 10 ) + + + 36 + - + 21 + + + 18
----
-30
43

query I rowsort
SELECT 54 * + 30
----
1620

query I rowsort
SELECT - 33 * 66 + - 98 AS col1
----
-2276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9263
SELECT CAST( + - 94 AS SIGNED ) * - MAX( + 75 ) * + CASE + - 86 WHEN - + CAST( NULL AS SIGNED ) THEN 51 * + ( + + ( - 91 ) ) - + + COUNT( * ) * + 20 * - - COUNT( * ) * 15 WHEN + 58 / 93 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT CAST ( + - 94 AS INTEGER ) * - MAX ( + 75 ) * + CASE + - 86 WHEN - + CAST ( NULL AS INTEGER ) THEN 51 * + ( + + ( - 91 ) ) - + + COUNT ( * ) * + 20 * - - COUNT ( * ) * 15 WHEN + 58 / 93 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT DISTINCT 7 - 43 + 71 * 86 DIV 70
----
51

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT 7 - 43 + 71 * 86 / 70
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9265
SELECT 24 - + 66 * - 30 + CAST( NULL AS DECIMAL ) AS col0, + 16 AS col2
----
NULL
16

skipif mysql # not compatible
query II rowsort label-9265
SELECT 24 - + 66 * - 30 + CAST ( NULL AS REAL ) AS col0, + 16 AS col2
----
NULL
16

query I rowsort
SELECT DISTINCT + 99 * - 92 AS col2
----
-9108

onlyif mysql # DIV for integer division: 
query I rowsort label-9267
SELECT 58 * 97 DIV 54 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-9267
SELECT 58 * 97 / 54 AS col1
----
104

query I rowsort
SELECT - 78 * - 76 * - 89
----
-527592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9269
SELECT 4 + + ( - 68 ) - - ( COUNT( * ) ) - + 13 * COUNT( * ) * 62 + - + 75 * COUNT( * ) DIV - NULLIF ( ( + 71 ), + 1 + - ( + 90 + - 0 ) * - 47 )
----
-868

skipif mysql # not compatible
query I rowsort label-9269
SELECT 4 + + ( - 68 ) - - ( COUNT ( * ) ) - + 13 * COUNT ( * ) * 62 + - + 75 * COUNT ( * ) / - NULLIF ( ( + 71 ), + 1 + - ( + 90 + - 0 ) * - 47 )
----
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT 94 - COUNT( 13 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9270
SELECT 94 - COUNT ( 13 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-9271
SELECT COUNT( * ) * - 21, - COUNT( * ) + + ( 89 ) * - - 80 AS col0
----
-21
7119

skipif mysql # not compatible
query II rowsort label-9271
SELECT COUNT ( * ) * - 21, - COUNT ( * ) + + ( 89 ) * - - 80 AS col0
----
-21
7119

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT - - ( - MIN( 1 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9272
SELECT - - ( - MIN ( 1 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT 4 * - - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-9273
SELECT 4 * - - COUNT ( * )
----
4

query I rowsort
SELECT ALL - 74 + - 20 * + 13 * 56
----
-14634

query I rowsort
SELECT 84 + + - 59 + + 28
----
53

query I rowsort
SELECT 20 - - 39
----
59

query I rowsort
SELECT 94 + - - ( 88 ) AS col0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL + 2 + - + 0 + - - COUNT( ALL + - 22 ) * - 43 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL + 2 + - + 0 + - - COUNT ( ALL + - 22 ) * - 43 AS col1
----
-41

query II rowsort
SELECT 14 AS col1, + ( - - ( - + 29 ) )
----
14
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT DISTINCT - CASE 95 WHEN 5 + + 57 THEN - 45 WHEN + 13 THEN + COALESCE ( CAST( - 55 AS SIGNED ), - NULLIF ( - 6, + 4 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT - CASE 95 WHEN 5 + + 57 THEN - 45 WHEN + 13 THEN + COALESCE ( CAST ( - 55 AS INTEGER ), - NULLIF ( - 6, + 4 ) ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9281
SELECT ALL - CAST( + + 84 AS SIGNED ) + + + COUNT( DISTINCT + - 81 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL - CAST ( + + 84 AS INTEGER ) + + + COUNT ( DISTINCT + - 81 ) AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9282
SELECT 39 DIV + NULLIF ( 61, - - 95 + 59 + 60 - + - 80 ) * - 49 + - - ( + 87 ) * 65
----
5655

skipif mysql # not compatible
query I rowsort label-9282
SELECT 39 / + NULLIF ( 61, - - 95 + 59 + 60 - + - 80 ) * - 49 + - - ( + 87 ) * 65
----
5655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9283
SELECT 29 + - ( - - 57 ) + - COUNT( * ) * 40 DIV - + 74 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9283
SELECT 29 + - ( - - 57 ) + - COUNT ( * ) * 40 / - + 74 AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9284
SELECT DISTINCT - 67, + MIN( DISTINCT + COALESCE ( - 91, - 3 ) ) DIV 38 col0
----
-67
-2

skipif mysql # not compatible
query II rowsort label-9284
SELECT DISTINCT - 67, + MIN ( DISTINCT + COALESCE ( - 91, - 3 ) ) / 38 col0
----
-67
-2

query I rowsort
SELECT ALL 61 + + 0 AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9286
SELECT - 29 * + 51 + 0 - - 59 * + - 91 * - 80 - - + NULLIF ( - - COUNT( * ), 41 ) + + MAX( - 24 ) DIV 80 * + + ( + - 80 ) DIV 23 + 37 DIV - 28 AS col0
----
428041

skipif mysql # not compatible
query I rowsort label-9286
SELECT - 29 * + 51 + 0 - - 59 * + - 91 * - 80 - - + NULLIF ( - - COUNT ( * ), 41 ) + + MAX ( - 24 ) / 80 * + + ( + - 80 ) / 23 + 37 / - 28 AS col0
----
428041

query I rowsort
SELECT ALL + 12 + + 2
----
14

query I rowsort
SELECT 28 + - + 5
----
23

query I rowsort
SELECT ALL 25 * 43 AS col1
----
1075

onlyif mysql # aggregate syntax: 
query II rowsort label-9290
SELECT + - 24, 7 + + 5 + + NULLIF ( + MAX( 45 ), AVG ( ALL + 75 ) ) AS col1
----
-24
57

skipif mysql # not compatible
query II rowsort label-9290
SELECT + - 24, 7 + + 5 + + NULLIF ( + MAX ( 45 ), AVG ( ALL + 75 ) ) AS col1
----
-24
57

query I rowsort
SELECT - 53 + - 69 + - - 0 col0
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT - 92 DIV 99 + + COALESCE ( 27, + + 22 * + 99 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9292
SELECT - 92 / 99 + + COALESCE ( 27, + + 22 * + 99 ) AS col0
----
27

query I rowsort
SELECT + COALESCE ( + 53, + 65 - + - 19 * + - 57 ) + + 58
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9294
SELECT DISTINCT 41 DIV - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT 41 / - COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9295
SELECT + + 67 * 76 + + - 86 * 65 DIV 24 * + - CASE - + 47 WHEN - CASE - + 88 WHEN + + 51 + - 6 THEN NULL WHEN + - 75 THEN NULL WHEN - 21 THEN NULL ELSE 36 * - 22 END THEN - 16 - 17 WHEN - ( - 64 ) * COALESCE ( 0 * 1, + COUNT( * ) ) THEN 92 WHEN 54 * COUNT( * ) + - 36 THEN NULL ELSE + 28 + SUM( 85 ) END col2
----
31308

skipif mysql # not compatible
query I rowsort label-9295
SELECT + + 67 * 76 + + - 86 * 65 / 24 * + - CASE - + 47 WHEN - CASE - + 88 WHEN + + 51 + - 6 THEN NULL WHEN + - 75 THEN NULL WHEN - 21 THEN NULL ELSE 36 * - 22 END THEN - 16 - 17 WHEN - ( - 64 ) * COALESCE ( 0 * 1, + COUNT ( * ) ) THEN 92 WHEN 54 * COUNT ( * ) + - 36 THEN NULL ELSE + 28 + SUM ( 85 ) END col2
----
31308

query I rowsort
SELECT DISTINCT + 87 * - 12 AS col2
----
-1044

onlyif mysql # aggregate syntax: 
query II rowsort label-9297
SELECT ALL CASE + - COUNT( + + 3 ) WHEN - 85 * + 83 THEN NULL WHEN + COUNT( * ) THEN - - 37 ELSE NULL END * - ( - + 13 ) / + - ( + 65 ) * + - 28 + - 53, - 5 AS col2
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-9297
SELECT ALL CASE + - COUNT ( + + 3 ) WHEN - 85 * + 83 THEN NULL WHEN + COUNT ( * ) THEN - - 37 ELSE NULL END * - ( - + 13 ) / + - ( + 65 ) * + - 28 + - 53, - 5 AS col2
----
NULL
-5

query I rowsort
SELECT - 51 + + 60 - - 7 * + 70 * - 63 AS col1
----
-30861

query I rowsort
SELECT DISTINCT + 43 * - - 69
----
2967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9300
SELECT DISTINCT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9301
SELECT COUNT( * ) + - ( - 72 ) + - 50 / - CAST( NULL AS SIGNED ), - NULLIF ( 21, - MAX( + + 14 ) ) + 87 AS col1
----
NULL
66

skipif mysql # not compatible
query II rowsort label-9301
SELECT COUNT ( * ) + - ( - 72 ) + - 50 / - CAST ( NULL AS INTEGER ), - NULLIF ( 21, - MAX ( + + 14 ) ) + 87 AS col1
----
NULL
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9302
SELECT ALL + COUNT( - CAST( NULL AS DECIMAL ) ) + - 21
----
-21

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL + COUNT ( - CAST ( NULL AS REAL ) ) + - 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT - COUNT( ALL - - 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-9303
SELECT - COUNT ( ALL - - 2 )
----
-1

query II rowsort
SELECT DISTINCT 80 AS col0, - ( + 9 )
----
80
-9

query I rowsort
SELECT 29 + 17
----
46

query II rowsort
SELECT 86 AS col2, + 36
----
86
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT 39 + 43 + + COUNT( * ) * - 22
----
60

skipif mysql # not compatible
query I rowsort label-9307
SELECT 39 + 43 + + COUNT ( * ) * - 22
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9308
SELECT ALL - CAST( NULL AS SIGNED ) + - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9309
SELECT COALESCE ( - + NULLIF ( 45, - COUNT( + - 33 ) ), COALESCE ( - 82, CASE - 93 WHEN + 58 THEN - 73 * - 71 WHEN - 43 * + AVG ( ALL + - 81 ) THEN 6 WHEN + 86 THEN NULL ELSE NULL END ), + CAST( NULL AS SIGNED ) * + 86 ) * + 93
----
-4185

skipif mysql # not compatible
query I rowsort label-9309
SELECT COALESCE ( - + NULLIF ( 45, - COUNT ( + - 33 ) ), COALESCE ( - 82, CASE - 93 WHEN + 58 THEN - 73 * - 71 WHEN - 43 * + AVG ( ALL + - 81 ) THEN 6 WHEN + 86 THEN NULL ELSE NULL END ), + CAST ( NULL AS INTEGER ) * + 86 ) * + 93
----
-4185

query II rowsort
SELECT ALL 97 AS col0, - 17 AS col0
----
97
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT ALL - 71 * - CAST( - 72 AS SIGNED )
----
-5112

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL - 71 * - CAST ( - 72 AS INTEGER )
----
-5112

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL + COUNT( * ) + + 91
----
92

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL + COUNT ( * ) + + 91
----
92

query I rowsort
SELECT + 61 - - - 52
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT - 67 * + CASE + + 51 WHEN + COUNT( * ) * - 7 THEN + 50 * + 34 + - SUM( ALL + ( + 76 ) ) WHEN 23 THEN NULL WHEN + ( - + SUM( ALL + 54 ) ) THEN 63 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT - 67 * + CASE + + 51 WHEN + COUNT ( * ) * - 7 THEN + 50 * + 34 + - SUM ( ALL + ( + 76 ) ) WHEN 23 THEN NULL WHEN + ( - + SUM ( ALL + 54 ) ) THEN 63 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - - 49, + - 31 + NULLIF ( - 65, - 80 ) )
----
49

query I rowsort
SELECT + 38 * 86
----
3268

query I rowsort
SELECT - 43 * 75 col2
----
-3225

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT ALL - CASE - - CASE + + COUNT( * ) WHEN - 59 THEN + 42 ELSE ( 67 ) * - - 33 * - 29 END WHEN - COUNT( * ) * + - 85 / - + 32 * + + 53 + + 6 * + + 78 + - 81 - 86 THEN - 20 ELSE NULL END * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL - CASE - - CASE + + COUNT ( * ) WHEN - 59 THEN + 42 ELSE ( 67 ) * - - 33 * - 29 END WHEN - COUNT ( * ) * + - 85 / - + 32 * + + 53 + + 6 * + + 78 + - 81 - 86 THEN - 20 ELSE NULL END * - 78
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9319
SELECT - COUNT( * ) DIV - SUM( 70 )
----
0

skipif mysql # not compatible
query I rowsort label-9319
SELECT - COUNT ( * ) / - SUM ( 70 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT DISTINCT + 35 * + + 29 - - COUNT( ALL - 62 ) + - + 15 AS col2
----
1001

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT + 35 * + + 29 - - COUNT ( ALL - 62 ) + - + 15 AS col2
----
1001

query I rowsort
SELECT ALL + ( - + 26 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT COALESCE ( - 33, + COUNT( * ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9322
SELECT COALESCE ( - 33, + COUNT ( * ) ) AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9323
SELECT ALL + COUNT( * ) * + 48 + - 60 + 68, COUNT( * ) * + + 48 + ( + - 76 ) * - - CAST( NULL AS DECIMAL ) AS col1, + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col1
----
56
NULL
NULL

skipif mysql # not compatible
query III rowsort label-9323
SELECT ALL + COUNT ( * ) * + 48 + - 60 + 68, COUNT ( * ) * + + 48 + ( + - 76 ) * - - CAST ( NULL AS REAL ) AS col1, + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1
----
56
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9324
SELECT - + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT - + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + + 7, + 88 * 30 AS col0
----
7
2640

query II rowsort
SELECT 74, 59 AS col0
----
74
59

query I rowsort
SELECT ALL - - 46 * - 14 AS col2
----
-644

query I rowsort
SELECT - ( - + 62 ) * - + 48
----
-2976

query I rowsort
SELECT + CASE + - 35 WHEN + + 69 THEN NULL ELSE - 29 END + - 88
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9330
SELECT ALL - COUNT( * ) DIV + - 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL - COUNT ( * ) / + - 99 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9331
SELECT ALL + 22 + + + 71 + - 61 * + - CAST( 30 AS SIGNED ) * + 29 + + 5 col2
----
53168

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL + 22 + + + 71 + - 61 * + - CAST ( 30 AS INTEGER ) * + 29 + + 5 col2
----
53168

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT + - 91 * - 42 - + MAX( DISTINCT - + 3 ) + - - 10 * - 97 AS col0
----
2855

skipif mysql # not compatible
query I rowsort label-9332
SELECT + - 91 * - 42 - + MAX ( DISTINCT - + 3 ) + - - 10 * - 97 AS col0
----
2855

onlyif mysql # aggregate syntax: 
query II rowsort label-9333
SELECT - - 64 AS col0, 23 - NULLIF ( 96, - - CASE - 61 WHEN 6 THEN + - 19 - + + COUNT( * ) WHEN + - NULLIF ( + - ( - 80 ), - 29 * - 96 ) * 12 + - ( - 53 ) THEN NULL END ) AS col0
----
64
-73

skipif mysql # not compatible
query II rowsort label-9333
SELECT - - 64 AS col0, 23 - NULLIF ( 96, - - CASE - 61 WHEN 6 THEN + - 19 - + + COUNT ( * ) WHEN + - NULLIF ( + - ( - 80 ), - 29 * - 96 ) * 12 + - ( - 53 ) THEN NULL END ) AS col0
----
64
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-9334
SELECT ALL 59 DIV + + 58, 51 AS col0
----
1
51

skipif mysql # not compatible
query II rowsort label-9334
SELECT ALL 59 / + + 58, 51 AS col0
----
1
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9335
SELECT - COUNT( * ) / + CAST( NULL AS SIGNED ) + - ( - 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT - COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - ( - 22 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT + 99 DIV + + 16
----
6

skipif mysql # not compatible
query I rowsort label-9336
SELECT + 99 / + + 16
----
6

query I rowsort
SELECT + 92 - - + 65
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9338
SELECT + 10 * + 99 AS col0, - ( 22 ) * - CAST( NULL AS SIGNED ) + CASE - - 91 WHEN - 0 - + + COUNT( - - 44 ) THEN NULL WHEN 22 - 40 THEN NULL ELSE 55 END + - COALESCE ( COUNT( * ), + COUNT( * ) )
----
990
NULL

skipif mysql # not compatible
query II rowsort label-9338
SELECT + 10 * + 99 AS col0, - ( 22 ) * - CAST ( NULL AS INTEGER ) + CASE - - 91 WHEN - 0 - + + COUNT ( - - 44 ) THEN NULL WHEN 22 - 40 THEN NULL ELSE 55 END + - COALESCE ( COUNT ( * ), + COUNT ( * ) )
----
990
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9339
SELECT ALL 16 + + 25 + + 63 * + 46 + + NULLIF ( - ( - 59 ), 88 ) * + 37 * + 10 AS col0, + COUNT( * ) * ( - 39 ) + + COUNT( * ) + - + 70
----
24769
-108

skipif mysql # not compatible
query II rowsort label-9339
SELECT ALL 16 + + 25 + + 63 * + 46 + + NULLIF ( - ( - 59 ), 88 ) * + 37 * + 10 AS col0, + COUNT ( * ) * ( - 39 ) + + COUNT ( * ) + - + 70
----
24769
-108

query I rowsort
SELECT + 21 - - 47 AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT ALL CAST( 99 AS SIGNED ) col0
----
99

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL CAST ( 99 AS INTEGER ) col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT DISTINCT COUNT( + COALESCE ( - + 76, + + 0 * - - 77 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT COUNT ( + COALESCE ( - + 76, + + 0 * - - 77 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT + 74 * ( + - CAST( - + 54 AS SIGNED ) ) AS col2
----
3996

skipif mysql # not compatible
query I rowsort label-9343
SELECT + 74 * ( + - CAST ( - + 54 AS INTEGER ) ) AS col2
----
3996

onlyif mysql # aggregate syntax: 
query II rowsort label-9344
SELECT + 62 + - NULLIF ( - 55, - COUNT( * ) * COUNT( * ) ) AS col2, - 32
----
117
-32

skipif mysql # not compatible
query II rowsort label-9344
SELECT + 62 + - NULLIF ( - 55, - COUNT ( * ) * COUNT ( * ) ) AS col2, - 32
----
117
-32

query I rowsort
SELECT + 20 * - 82 AS col2
----
-1640

query I rowsort
SELECT + 14 + - 16 + 99 + + 96 AS col1
----
193

query II rowsort
SELECT + 90 + - 63, - 98 col1
----
27
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9348
SELECT - CASE + + 69 WHEN - + 23 + + - 74 * - - 75 THEN + COUNT( * ) * + + 19 * + 0 + 51 * + + MIN( + ( + CAST( NULL AS SIGNED ) ) ) * + 63 - - 95 - - - 46 * + 7 / - COUNT( * ) + AVG ( ALL 8 + 20 ) END + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT - CASE + + 69 WHEN - + 23 + + - 74 * - - 75 THEN + COUNT ( * ) * + + 19 * + 0 + 51 * + + MIN ( + ( + CAST ( NULL AS INTEGER ) ) ) * + 63 - - 95 - - - 46 * + 7 / - COUNT ( * ) + AVG ( ALL 8 + 20 ) END + - 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9349
SELECT - 17 * COUNT( * ) * + - CAST( NULL AS SIGNED ) * - 56 - + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT - 17 * COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - 56 - + 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT 75 * 26 + + MIN( ALL - + 51 ) + COUNT( * ) + + - CASE - 54 WHEN + 4 THEN 24 + + + 50 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT 75 * 26 + + MIN ( ALL - + 51 ) + COUNT ( * ) + + - CASE - 54 WHEN + 4 THEN 24 + + + 50 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9351
SELECT DISTINCT + COUNT( * ) * + - 92 DIV + - 2
----
46

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT + COUNT ( * ) * + - 92 / + - 2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9352
SELECT - CAST( - 77 AS SIGNED ) + + CASE - 94 WHEN - 16 + 94 + - - 2 + - 46 * + - SUM( + - 10 ) THEN NULL ELSE + - ( + NULLIF ( - COUNT( * ), + 77 ) ) + + ( + + SUM( - 86 ) ) * + COUNT( * ) END AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9352
SELECT - CAST ( - 77 AS INTEGER ) + + CASE - 94 WHEN - 16 + 94 + - - 2 + - 46 * + - SUM ( + - 10 ) THEN NULL ELSE + - ( + NULLIF ( - COUNT ( * ), + 77 ) ) + + ( + + SUM ( - 86 ) ) * + COUNT ( * ) END AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT - - 92 * ( + + ( - - ( - + COUNT( * ) ) ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-9353
SELECT - - 92 * ( + + ( - - ( - + COUNT ( * ) ) ) ) AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9354
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + COALESCE ( - - 6, - NULLIF ( 47, - - 66 * + - 72 + - + 67 * - 3 + - 19 + CASE 93 WHEN 61 THEN NULL WHEN - + 49 THEN + 59 * + - ( + - 54 ) ELSE - 55 END + CAST( - ( CAST( NULL AS SIGNED ) ) + - 69 * 32 AS SIGNED ) ), + ( - 36 ) + + NULLIF ( 30, 92 + - 96 ), 90 ) + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + COALESCE ( - - 6, - NULLIF ( 47, - - 66 * + - 72 + - + 67 * - 3 + - 19 + CASE 93 WHEN 61 THEN NULL WHEN - + 49 THEN + 59 * + - ( + - 54 ) ELSE - 55 END + CAST ( - ( CAST ( NULL AS INTEGER ) ) + - 69 * 32 AS INTEGER ) ), + ( - 36 ) + + NULLIF ( 30, 92 + - 96 ), 90 ) + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT + COUNT( * ) * - 71 + 43 - - - 93 col1
----
-121

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT + COUNT ( * ) * - 71 + 43 - - - 93 col1
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9356
SELECT DISTINCT - 1 * - 56 DIV - ( 39 ) + + - 5 - + - COUNT( * ) * - 53 + 1 + 60 + + COUNT( * ) + + COALESCE ( + 18, + + 81 * + 3 DIV + - 11 ) * + + 31 + ( 1 ) DIV 32 AS col2
----
561

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT - 1 * - 56 / - ( 39 ) + + - 5 - + - COUNT ( * ) * - 53 + 1 + 60 + + COUNT ( * ) + + COALESCE ( + 18, + + 81 * + 3 / + - 11 ) * + + 31 + ( 1 ) / 32 AS col2
----
561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9357
SELECT COALESCE ( 19, + - ( + - COUNT( - + 80 ) ) + - + CAST( + 11 AS SIGNED ) ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9357
SELECT COALESCE ( 19, + - ( + - COUNT ( - + 80 ) ) + - + CAST ( + 11 AS INTEGER ) ) AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT + - 29 * - + 26 + 22 + - + ( CAST( 24 AS SIGNED ) )
----
752

skipif mysql # not compatible
query I rowsort label-9358
SELECT + - 29 * - + 26 + 22 + - + ( CAST ( 24 AS INTEGER ) )
----
752

onlyif mysql # aggregate syntax: 
query II rowsort label-9359
SELECT ALL + MIN( - 70 ), - CASE 33 WHEN COUNT( * ) THEN 90 WHEN - 19 + 36 - + COUNT( * ) + 96 - - 49 * 96 * 63 * - + 4 * 25 THEN NULL ELSE NULL END AS col1
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-9359
SELECT ALL + MIN ( - 70 ), - CASE 33 WHEN COUNT ( * ) THEN 90 WHEN - 19 + 36 - + COUNT ( * ) + 96 - - 49 * 96 * 63 * - + 4 * 25 THEN NULL ELSE NULL END AS col1
----
-70
NULL

query I rowsort
SELECT ALL - - 60 * 10 + - ( - 46 ) col2
----
646

query I rowsort
SELECT ALL ( + COALESCE ( + 46, + 72 ) ) AS col0
----
46

query I rowsort
SELECT DISTINCT + 61 * - 62 AS col0
----
-3782

query I rowsort
SELECT - 57 * + - 0 * + 45 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9364
SELECT ALL 85 AS col2, + 90 * + NULLIF ( - + 48, + - COUNT( * ) * + + 96 ) + + 18
----
85
-4302

skipif mysql # not compatible
query II rowsort label-9364
SELECT ALL 85 AS col2, + 90 * + NULLIF ( - + 48, + - COUNT ( * ) * + + 96 ) + + 18
----
85
-4302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9365
SELECT COUNT( * ) + NULLIF ( + - 5, + + 50 + - + 60 / + 29 ) + + NULLIF ( CAST( + 52 AS SIGNED ), + 44 ) + - 86 * + 43 * - 82 AS col0
----
303284

skipif mysql # not compatible
query I rowsort label-9365
SELECT COUNT ( * ) + NULLIF ( + - 5, + + 50 + - + 60 / + 29 ) + + NULLIF ( CAST ( + 52 AS INTEGER ), + 44 ) + - 86 * + 43 * - 82 AS col0
----
303284

query I rowsort
SELECT 38 + - 97
----
-59

query I rowsort
SELECT 9 * - - 59 AS col1
----
531

query I rowsort
SELECT ( 62 ) + + 38 + 24 AS col1
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-9369
SELECT ALL 50 AS col0, - ( - 64 ) + - COUNT( * ) * + - 35 + - COUNT( * ) AS col1
----
50
98

skipif mysql # not compatible
query II rowsort label-9369
SELECT ALL 50 AS col0, - ( - 64 ) + - COUNT ( * ) * + - 35 + - COUNT ( * ) AS col1
----
50
98

query I rowsort
SELECT 38 * + - 66 * 88 * + + ( - - 42 )
----
-9269568

query I rowsort
SELECT DISTINCT 61 * + 7 AS col2
----
427

query II rowsort
SELECT ALL 61 AS col2, 17 AS col2
----
61
17

query II rowsort
SELECT DISTINCT 13 AS col1, 4
----
13
4

query II rowsort
SELECT DISTINCT ( - 64 ) * + - 10 AS col1, + 75 col1
----
640
75

query II rowsort
SELECT + 75 AS col2, - 58
----
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT ALL 3 + - 30 + - + MAX( + 86 ) AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL 3 + - 30 + - + MAX ( + 86 ) AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT - 72 * + MAX( + 40 ) + - 28 * + 26
----
-3608

skipif mysql # not compatible
query I rowsort label-9377
SELECT - 72 * + MAX ( + 40 ) + - 28 * + 26
----
-3608

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT + MIN( ALL - ( 53 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-9378
SELECT + MIN ( ALL - ( 53 ) )
----
-53

query I rowsort
SELECT + ( + - 13 ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT DISTINCT MAX( DISTINCT + 78 ) + - - 40 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT MAX ( DISTINCT + 78 ) + - - 40 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT ALL + - SUM( 48 ) * 39
----
-1872

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL + - SUM ( 48 ) * 39
----
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT 78 + - - COUNT( ALL + - 3 )
----
79

skipif mysql # not compatible
query I rowsort label-9382
SELECT 78 + - - COUNT ( ALL + - 3 )
----
79

query II rowsort
SELECT DISTINCT 87 + + 70 * + + 39, 73 col1
----
2817
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT ALL 92 + + 5 + ( 95 ) DIV - - 44 col0
----
99

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL 92 + + 5 + ( 95 ) / - - 44 col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9385
SELECT - 35 DIV 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9385
SELECT - 35 / 68 AS col0
----
0

query I rowsort
SELECT 27 + 7
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT + SUM( 36 )
----
36

skipif mysql # not compatible
query I rowsort label-9387
SELECT + SUM ( 36 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9388
SELECT + + 39 * - COUNT( * ) DIV 46 + + 97 - + MIN( + + 31 ) + + 75
----
141

skipif mysql # not compatible
query I rowsort label-9388
SELECT + + 39 * - COUNT ( * ) / 46 + + 97 - + MIN ( + + 31 ) + + 75
----
141

query I rowsort
SELECT ( + + ( 40 ) ) + 57
----
97

query I rowsort
SELECT DISTINCT + + 74 + + ( - 84 ) + + 30 * + 68 * 2 AS col0
----
4070

query II rowsort
SELECT + 11 * - 72 * 24 AS col2, ( - + ( + 3 ) ) * + + 95 AS col2
----
-19008
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT 93 + + + 37 + + 20 + - - MAX( - - ( - 91 ) ) - + + 30 * + CASE - COALESCE ( 34, 5, + MIN( DISTINCT - - 17 ) * + 65 ) WHEN + 60 + - AVG ( ALL + - 29 ) / + MAX( 30 ) THEN NULL ELSE - SUM( - 7 ) + 37 END + 20 * + 27 * + SUM( ALL + 71 + 17 ) * ( - 36 )
----
-1711981

skipif mysql # not compatible
query I rowsort label-9392
SELECT 93 + + + 37 + + 20 + - - MAX ( - - ( - 91 ) ) - + + 30 * + CASE - COALESCE ( 34, 5, + MIN ( DISTINCT - - 17 ) * + 65 ) WHEN + 60 + - AVG ( ALL + - 29 ) / + MAX ( 30 ) THEN NULL ELSE - SUM ( - 7 ) + 37 END + 20 * + 27 * + SUM ( ALL + 71 + 17 ) * ( - 36 )
----
-1711981

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT DISTINCT - MIN( - ( - 64 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT - MIN ( - ( - 64 ) )
----
-64

query I rowsort
SELECT 22 + - 12 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT - SUM( DISTINCT - COALESCE ( 93, + 20, - 61 + + + 1 ) ) * + 59 + + - 80
----
5407

skipif mysql # not compatible
query I rowsort label-9395
SELECT - SUM ( DISTINCT - COALESCE ( 93, + 20, - 61 + + + 1 ) ) * + 59 + + - 80
----
5407

query I rowsort
SELECT ALL + 12 * - 78
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT 54 - - 50 + COUNT( * ) * 9 * + 68 AS col0
----
716

skipif mysql # not compatible
query I rowsort label-9397
SELECT 54 - - 50 + COUNT ( * ) * 9 * + 68 AS col0
----
716

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9398
SELECT ALL - CAST( NULL AS SIGNED ) * - 85, - 20 AS col0
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-9398
SELECT ALL - CAST ( NULL AS INTEGER ) * - 85, - 20 AS col0
----
NULL
-20

query I rowsort
SELECT 73 * - 27 AS col2
----
-1971

query I rowsort
SELECT ALL + 23 + + 16 + ( 73 ) AS col0
----
112

query I rowsort
SELECT 53 + - 95 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT + COUNT( * ) * - 17 + + + 14 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9402
SELECT + COUNT ( * ) * - 17 + + + 14 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9403
SELECT ALL - CAST( ( NULLIF ( - 73, - 85 * + - 7 * - 11 * - 20 + + COUNT( * ) ) ) AS SIGNED ) + + 25
----
98

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL - CAST ( ( NULLIF ( - 73, - 85 * + - 7 * - 11 * - 20 + + COUNT ( * ) ) ) AS INTEGER ) + + 25
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9404
SELECT DISTINCT COUNT( * ) * 76 DIV ( - 41 ) + - + MAX( ALL - 93 ) + - + 20 + + + COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT COUNT ( * ) * 76 / ( - 41 ) + - + MAX ( ALL - 93 ) + - + 20 + + + COUNT ( * ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL - COUNT( DISTINCT - 75 ) * - 82 + 42
----
124

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL - COUNT ( DISTINCT - 75 ) * - 82 + 42
----
124

query I rowsort
SELECT 62 + - + 35 AS col2
----
27

query I rowsort
SELECT ALL 60 * + 91 * - 89 * - 37 + + + 53 + + ( 73 )
----
17979906

query I rowsort
SELECT 57 * - 35 + 77
----
-1918

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9409
SELECT ALL CAST( NULL AS DECIMAL ) * COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL CAST ( NULL AS REAL ) * COUNT ( * ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9410
SELECT SUM( - 94 ) * - + COUNT( * ) * - ( - - 39 ) + 51 * + ( 96 ) + ( + - 1 ) AS col0, + COALESCE ( - ( - 23 ), - 51 DIV + MAX( + - 3 ), 0 * - 14 - + - 97 * 85 )
----
1229
23

skipif mysql # not compatible
query II rowsort label-9410
SELECT SUM ( - 94 ) * - + COUNT ( * ) * - ( - - 39 ) + 51 * + ( 96 ) + ( + - 1 ) AS col0, + COALESCE ( - ( - 23 ), - 51 / + MAX ( + - 3 ), 0 * - 14 - + - 97 * 85 )
----
1229
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT ALL - + COALESCE ( - COUNT( - 48 ), + 61 * - 85 * - - ( + ( 32 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL - + COALESCE ( - COUNT ( - 48 ), + 61 * - 85 * - - ( + ( 32 ) ) )
----
1

query I rowsort
SELECT - 9 * - 90 - + 8 AS col1
----
802

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9413
SELECT ALL 48 DIV + ( MAX( DISTINCT - 47 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL 48 / + ( MAX ( DISTINCT - 47 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT + 51 * - 64 - + + 72 + + - MIN( ALL - + 12 ) + 91 AS col1
----
-3233

skipif mysql # not compatible
query I rowsort label-9414
SELECT + 51 * - 64 - + + 72 + + - MIN ( ALL - + 12 ) + 91 AS col1
----
-3233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9415
SELECT ALL + - CASE - MIN( ALL + 33 ) WHEN + + 33 THEN + + COUNT( + - ( - 37 ) ) WHEN - + 33 * CAST( COUNT( * ) AS SIGNED ) - - 67 * + COALESCE ( - 93, - - 45 * - 22 * + - 89 * - + COALESCE ( + MIN( ALL 31 ), ( + 51 ) ) + + 56 * - 4 - + 98 * - 68 ) THEN 32 ELSE 48 * + 10 END
----
-480

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL + - CASE - MIN ( ALL + 33 ) WHEN + + 33 THEN + + COUNT ( + - ( - 37 ) ) WHEN - + 33 * CAST ( COUNT ( * ) AS INTEGER ) - - 67 * + COALESCE ( - 93, - - 45 * - 22 * + - 89 * - + COALESCE ( + MIN ( ALL 31 ), ( + 51 ) ) + + 56 * - 4 - + 98 * - 68 ) THEN 32 ELSE 48 * + 10 END
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT ALL + MAX( DISTINCT 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL + MAX ( DISTINCT 79 ) AS col2
----
79

query I rowsort
SELECT - 91 * 81 * + 57 * + 13 * + - 16 + + - 60 * - 25
----
87392076

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9418
SELECT - 3 DIV - NULLIF ( 24, - MIN( DISTINCT - + 34 ) ) * + 92 + COALESCE ( - 90, - 0 * - COUNT( * ) ) AS col0, - COUNT( * ) + 93
----
-90
92

skipif mysql # not compatible
query II rowsort label-9418
SELECT - 3 / - NULLIF ( 24, - MIN ( DISTINCT - + 34 ) ) * + 92 + COALESCE ( - 90, - 0 * - COUNT ( * ) ) AS col0, - COUNT ( * ) + 93
----
-90
92

query I rowsort
SELECT + 15 * + + 8
----
120

query I rowsort
SELECT - 21 + - 13 + ( + 41 ) AS col0
----
7

query I rowsort
SELECT ALL ( + ( 66 ) ) * + 57
----
3762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9422
SELECT - NULLIF ( 5, COALESCE ( 25, + 46, CAST( NULL AS SIGNED ) * - 71 + 62 ) ) AS col2, + 29 * 76 + + 1 + + + COUNT( * )
----
-5
2206

skipif mysql # not compatible
query II rowsort label-9422
SELECT - NULLIF ( 5, COALESCE ( 25, + 46, CAST ( NULL AS INTEGER ) * - 71 + 62 ) ) AS col2, + 29 * 76 + + 1 + + + COUNT ( * )
----
-5
2206

query I rowsort
SELECT DISTINCT 32 * - 0
----
0

query I rowsort
SELECT - 61 + - 79 AS col0
----
-140

query II rowsort
SELECT ALL NULLIF ( - ( 12 ), + 57 + + 58 ) AS col1, 69 * - + ( + 67 ) AS col0
----
-12
-4623

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT - COALESCE ( 46, + COUNT( * ) ) + + + 75
----
29

skipif mysql # not compatible
query I rowsort label-9426
SELECT - COALESCE ( 46, + COUNT ( * ) ) + + + 75
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT - NULLIF ( + COUNT( * ), + - 58 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9427
SELECT - NULLIF ( + COUNT ( * ), + - 58 ) AS col1
----
-1

query I rowsort
SELECT + 25 * + 80 AS col0
----
2000

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9429
SELECT - 31 + + CAST( NULL AS DECIMAL ) - - 69 * - ( + 4 ) + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT - 31 + + CAST ( NULL AS REAL ) - - 69 * - ( + 4 ) + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT - ( - 95 ) + + - COUNT( - - 79 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9430
SELECT - ( - 95 ) + + - COUNT ( - - 79 ) AS col2
----
94

query II rowsort
SELECT - 73 AS col1, - 22 - + - 37 AS col2
----
-73
15

query II rowsort
SELECT 11, 87 col0
----
11
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT ALL NULLIF ( - + 92, - - 39 + + 86 - + + AVG ( 51 ) * COUNT( * ) / NULLIF ( + - 6, 22 ) * 54 + + COUNT( * ) * - - NULLIF ( + + 29, - ( + COALESCE ( + 81, - 66, + 2 ) ) ) + + SUM( DISTINCT + 13 ) ) + + 85 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL NULLIF ( - + 92, - - 39 + + 86 - + + AVG ( 51 ) * COUNT ( * ) / NULLIF ( + - 6, 22 ) * 54 + + COUNT ( * ) * - - NULLIF ( + + 29, - ( + COALESCE ( + 81, - 66, + 2 ) ) ) + + SUM ( DISTINCT + 13 ) ) + + 85 AS col1
----
-7

query I rowsort
SELECT DISTINCT - 63 + + - 45 + - 88
----
-196

query I rowsort
SELECT ALL + - 24 + 31 AS col1
----
7

query I rowsort
SELECT ALL - 72 * - 81 * + 20 * + 13 * 64
----
97044480

onlyif mysql # DIV for integer division: 
query I rowsort label-9437
SELECT - - 61 DIV - 46 col1
----
-1

skipif mysql # not compatible
query I rowsort label-9437
SELECT - - 61 / - 46 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT - + CASE + - 61 WHEN + 85 / + + 50 THEN NULL WHEN 26 THEN NULL WHEN - + 21 * - 12 + - ( - 69 ) + - 68 * - + 60 * + NULLIF ( - - 71, - 56 - + 77 ) THEN - - 69 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9438
SELECT - + CASE + - 61 WHEN + 85 / + + 50 THEN NULL WHEN 26 THEN NULL WHEN - + 21 * - 12 + - ( - 69 ) + - 68 * - + 60 * + NULLIF ( - - 71, - 56 - + 77 ) THEN - - 69 + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - + 75 - - + 80
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9440
SELECT ALL + 67 AS col2, COUNT( 49 ) AS col2
----
67
1

skipif mysql # not compatible
query II rowsort label-9440
SELECT ALL + 67 AS col2, COUNT ( 49 ) AS col2
----
67
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9441
SELECT + COUNT( * ) DIV - ( 60 ) + 87
----
87

skipif mysql # not compatible
query I rowsort label-9441
SELECT + COUNT ( * ) / - ( 60 ) + 87
----
87

query I rowsort
SELECT + 40 * + 52 col1
----
2080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9443
SELECT ALL + 9 DIV + - 83 + - + ( 44 ) + 93 * + + 48 * COUNT( * ) * - 27 - + - 21 + - 76 + - COUNT( * ) + - 5 DIV - + 58
----
-120628

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL + 9 / + - 83 + - + ( 44 ) + 93 * + + 48 * COUNT ( * ) * - 27 - + - 21 + - 76 + - COUNT ( * ) + - 5 / - + 58
----
-120628

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT DISTINCT - 56 * + + 2 * - 68 - + 15 * - + 59 + + ( + + 79 ) / - - 10 / CASE 48 WHEN - 69 * COUNT( * ) + + 18 + - + 82 THEN + 30 ELSE NULL END / - - ( 64 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT - 56 * + + 2 * - 68 - + 15 * - + 59 + + ( + + 79 ) / - - 10 / CASE 48 WHEN - 69 * COUNT ( * ) + + 18 + - + 82 THEN + 30 ELSE NULL END / - - ( 64 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9445
SELECT ALL + - 53 DIV + 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL + - 53 / + 55 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT ALL 37 * + 23 + + ( + COUNT( ALL 56 ) ) AS col2
----
852

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL 37 * + 23 + + ( + COUNT ( ALL 56 ) ) AS col2
----
852

query I rowsort
SELECT ( + 80 ) col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9448
SELECT DISTINCT CAST( COUNT( ALL - 50 ) AS SIGNED ) * - 22
----
-22

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT CAST ( COUNT ( ALL - 50 ) AS INTEGER ) * - 22
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 11 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 11 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9450
SELECT - AVG ( 45 ) * + CAST( NULL AS SIGNED ) + + 20 * - - SUM( DISTINCT 9 ), - 77 AS col2
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-9450
SELECT - AVG ( 45 ) * + CAST ( NULL AS INTEGER ) + + 20 * - - SUM ( DISTINCT 9 ), - 77 AS col2
----
NULL
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT + MAX( - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-9451
SELECT + MAX ( - 92 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT + COALESCE ( ( + 38 ), - 54 ) + + MAX( + 58 )
----
96

skipif mysql # not compatible
query I rowsort label-9452
SELECT + COALESCE ( ( + 38 ), - 54 ) + + MAX ( + 58 )
----
96

query I rowsort
SELECT + 92 * - - 84 AS col2
----
7728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9454
SELECT ALL - CAST( NULL AS SIGNED ) * + 55, 68 AS col0
----
NULL
68

skipif mysql # not compatible
query II rowsort label-9454
SELECT ALL - CAST ( NULL AS INTEGER ) * + 55, 68 AS col0
----
NULL
68

query I rowsort
SELECT ALL 62 * - - 91 + - + 36 col2
----
5606

query I rowsort
SELECT + 44 + + 80
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9457
SELECT DISTINCT - 15 * ( - 53 ) + - 78 * - - COUNT( - CAST( + COALESCE ( + 94, - NULLIF ( 13, - 87 ) ) AS SIGNED ) ) + + ( COUNT( DISTINCT 15 ) ) * 91 AS col1
----
808

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT - 15 * ( - 53 ) + - 78 * - - COUNT ( - CAST ( + COALESCE ( + 94, - NULLIF ( 13, - 87 ) ) AS INTEGER ) ) + + ( COUNT ( DISTINCT 15 ) ) * 91 AS col1
----
808

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT DISTINCT COUNT( * ) * 5 + + - COUNT( * ) * 32 * + + 47
----
-1499

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT COUNT ( * ) * 5 + + - COUNT ( * ) * 32 * + + 47
----
-1499

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9459
SELECT - CAST( + 75 AS SIGNED ) AS col0, + 77
----
-75
77

skipif mysql # not compatible
query II rowsort label-9459
SELECT - CAST ( + 75 AS INTEGER ) AS col0, + 77
----
-75
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT + COALESCE ( + + 4, + NULLIF ( - MAX( ALL + NULLIF ( + + 48, + - 35 + - - 69 * 13 ) ), + 76 / + 71 * + COUNT( * ) + - 83 ), - CAST( - 19 AS SIGNED ), - - 67 ) * - 53 AS col2
----
-212

skipif mysql # not compatible
query I rowsort label-9460
SELECT + COALESCE ( + + 4, + NULLIF ( - MAX ( ALL + NULLIF ( + + 48, + - 35 + - - 69 * 13 ) ), + 76 / + 71 * + COUNT ( * ) + - 83 ), - CAST ( - 19 AS INTEGER ), - - 67 ) * - 53 AS col2
----
-212

query I rowsort
SELECT DISTINCT 42 * + 17 * - 58 + 21
----
-41391

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT + 2 * - - MIN( ALL - NULLIF ( 71, 67 ) ) AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-9462
SELECT + 2 * - - MIN ( ALL - NULLIF ( 71, 67 ) ) AS col0
----
-142

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT - 8 * 91 DIV 7 * - 6 AS col0
----
624

skipif mysql # not compatible
query I rowsort label-9463
SELECT - 8 * 91 / 7 * - 6 AS col0
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL MAX( ALL + + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL MAX ( ALL + + 0 ) AS col2
----
0

query I rowsort
SELECT ALL 84 + - 93
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT DISTINCT 42 + - - COUNT( 8 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT 42 + - - COUNT ( 8 ) AS col0
----
43

query I rowsort
SELECT DISTINCT 1 * + + 66 col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT ALL - SUM( ALL 43 ) + - - 88 - + CASE 51 WHEN + - 8 THEN 3 + COUNT( * ) - 44 + + AVG ( ALL 41 ) * + COUNT( * ) * + 25 END * 83 / - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL - SUM ( ALL 43 ) + - - 88 - + CASE 51 WHEN + - 8 THEN 3 + COUNT ( * ) - 44 + + AVG ( ALL 41 ) * + COUNT ( * ) * + 25 END * 83 / - 66 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9469
SELECT ALL + 79 + - - 75 DIV + - 6 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL + 79 + - - 75 / + - 6 AS col0
----
67

query II rowsort
SELECT DISTINCT - 74 AS col2, 64
----
-74
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9471
SELECT ALL ( COALESCE ( - 6, - 41 + - 71 + + - 75 * - 98, + CAST( 80 AS SIGNED ) ) )
----
-6

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL ( COALESCE ( - 6, - 41 + - 71 + + - 75 * - 98, + CAST ( 80 AS INTEGER ) ) )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9472
SELECT + 28 + - - NULLIF ( + 62, - CAST( NULL AS SIGNED ) + + 1 + + 67 / + AVG ( + 29 ) * - 84 )
----
90

skipif mysql # not compatible
query I rowsort label-9472
SELECT + 28 + - - NULLIF ( + 62, - CAST ( NULL AS INTEGER ) + + 1 + + 67 / + AVG ( + 29 ) * - 84 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT - COUNT( - - 62 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9473
SELECT - COUNT ( - - 62 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT DISTINCT - MIN( ALL - + 52 ) - + 95 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT - MIN ( ALL - + 52 ) - + 95 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9475
SELECT ALL COUNT( * ) AS col2, 10 AS col0
----
1
10

skipif mysql # not compatible
query II rowsort label-9475
SELECT ALL COUNT ( * ) AS col2, 10 AS col0
----
1
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9476
SELECT + 55 + - 23 col1, CAST( - + COALESCE ( 32, + 18 ) AS SIGNED ) col2
----
32
-32

skipif mysql # not compatible
query II rowsort label-9476
SELECT + 55 + - 23 col1, CAST ( - + COALESCE ( 32, + 18 ) AS INTEGER ) col2
----
32
-32

query I rowsort
SELECT - NULLIF ( + CASE - 38 WHEN + + 58 - 98 + 87 THEN - 89 WHEN - 5 THEN NULL END, 51 ) - + AVG ( + + 88 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT - + COUNT( * ) * + 24 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9478
SELECT - + COUNT ( * ) * + 24 AS col1
----
-24

query I rowsort
SELECT DISTINCT + 27 * + + 22 * 97 AS col1
----
57618

query II rowsort
SELECT DISTINCT - + 65, 38 AS col0
----
-65
38

query I rowsort
SELECT DISTINCT + 66 * + - 83 AS col1
----
-5478

query II rowsort
SELECT + 58 AS col0, ( - 2 ) AS col2
----
58
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT COALESCE ( 81, COUNT( * ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9483
SELECT COALESCE ( 81, COUNT ( * ) ) AS col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9484
SELECT ALL - + CAST( + - ( + 0 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL - + CAST ( + - ( + 0 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9485
SELECT - + 83 DIV COUNT( * ) + - + 65 * + 74
----
-4893

skipif mysql # not compatible
query I rowsort label-9485
SELECT - + 83 / COUNT ( * ) + - + 65 * + 74
----
-4893

query II rowsort
SELECT 32 * - - 82 col2, - 67
----
2624
-67

query I rowsort
SELECT DISTINCT 97 * - + 10
----
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT ALL + ( - + COUNT( * ) ) + + + COALESCE ( + 2, - 27, + 57 * + 10 + 32 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL + ( - + COUNT ( * ) ) + + + COALESCE ( + 2, - 27, + 57 * + 10 + 32 ) AS col1
----
1

query I rowsort
SELECT ALL - 91 + - + 42
----
-133

query I rowsort
SELECT 44 + COALESCE ( + - 73, 63 ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT DISTINCT 37 + COUNT( * ) col1
----
38

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT 37 + COUNT ( * ) col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9492
SELECT ALL 90 + + + COUNT( * ) DIV COALESCE ( - 47, COALESCE ( - - COUNT( * ), - + CASE - ( 62 ) WHEN - COUNT( ALL - 57 ) + - 84 THEN NULL WHEN - + NULLIF ( - 63, + - NULLIF ( + - 30, - COUNT( * ) ) * + 65 + 22 ) * - 79 THEN - NULLIF ( 51, 77 DIV + 28 + 60 ) END ) ) - 9
----
81

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL 90 + + + COUNT ( * ) / COALESCE ( - 47, COALESCE ( - - COUNT ( * ), - + CASE - ( 62 ) WHEN - COUNT ( ALL - 57 ) + - 84 THEN NULL WHEN - + NULLIF ( - 63, + - NULLIF ( + - 30, - COUNT ( * ) ) * + 65 + 22 ) * - 79 THEN - NULLIF ( 51, 77 / + 28 + 60 ) END ) ) - 9
----
81

query I rowsort
SELECT 79 + - 93 * 16 * - 45
----
67039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9494
SELECT DISTINCT CASE - 28 WHEN COUNT( * ) THEN NULL WHEN 66 * + 82 + + 93 + COALESCE ( + - 65, ( - 22 ) + NULLIF ( MIN( ALL - 36 ), - COUNT( * ) ) + + 59 * + 17 * COUNT( * ), + 17 * 43 * + - 76 ) * CAST( - - 65 AS SIGNED ) + ( 39 ) THEN CASE - COUNT( DISTINCT CASE + 88 WHEN + CAST( NULL AS SIGNED ) THEN + 30 * 16 WHEN - 46 * 0 + 73 THEN NULL END ) WHEN ( + 66 ) THEN - 52 END END * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT CASE - 28 WHEN COUNT ( * ) THEN NULL WHEN 66 * + 82 + + 93 + COALESCE ( + - 65, ( - 22 ) + NULLIF ( MIN ( ALL - 36 ), - COUNT ( * ) ) + + 59 * + 17 * COUNT ( * ), + 17 * 43 * + - 76 ) * CAST ( - - 65 AS INTEGER ) + ( 39 ) THEN CASE - COUNT ( DISTINCT CASE + 88 WHEN + CAST ( NULL AS INTEGER ) THEN + 30 * 16 WHEN - 46 * 0 + 73 THEN NULL END ) WHEN ( + 66 ) THEN - 52 END END * + 43
----
NULL

query I rowsort
SELECT ALL 29 - - - 20
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9496
SELECT ALL NULLIF ( + 4, - 67 ) DIV 55 * CAST( + COALESCE ( + + 2, + - ( + 79 ) + - + AVG ( ALL 30 ) DIV + 55 ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL NULLIF ( + 4, - 67 ) / 55 * CAST ( + COALESCE ( + + 2, + - ( + 79 ) + - + AVG ( ALL 30 ) / + 55 ) AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT + 82 + - + 72 + - 18 + + - COUNT( * ) + - 41 + 50
----
0

skipif mysql # not compatible
query I rowsort label-9497
SELECT + 82 + - + 72 + - 18 + + - COUNT ( * ) + - 41 + 50
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9498
SELECT DISTINCT - NULLIF ( + + 19, + - 5 + + + 65 * 78 * 59 ) * + ( - COUNT( * ) ) * + + COUNT( ALL NULLIF ( - - 93, + + 51 ) ) AS col1, 91
----
19
91

skipif mysql # not compatible
query II rowsort label-9498
SELECT DISTINCT - NULLIF ( + + 19, + - 5 + + + 65 * 78 * 59 ) * + ( - COUNT ( * ) ) * + + COUNT ( ALL NULLIF ( - - 93, + + 51 ) ) AS col1, 91
----
19
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9499
SELECT + ( + + 36 ) + - COUNT( * ) DIV 30 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-9499
SELECT + ( + + 36 ) + - COUNT ( * ) / 30 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT ALL MAX( ALL 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL MAX ( ALL 28 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT DISTINCT 13 - SUM( DISTINCT + 33 ) + - + 51 - - 54 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT 13 - SUM ( DISTINCT + 33 ) + - + 51 - - 54 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9502
SELECT DISTINCT CAST( NULL AS SIGNED ) * 95 + COALESCE ( 8, + - 76, - 36 + - 54 * + 42 * - SUM( - + ( - 60 ) ) ) * + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 95 + COALESCE ( 8, + - 76, - 36 + - 54 * + 42 * - SUM ( - + ( - 60 ) ) ) * + - 41
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9503
SELECT ALL 31 * - 81 - 29 + + + COUNT( * ) + - 97, - 34 + + - CASE - 49 WHEN + - 45 / MIN( ALL - + 23 ) THEN - + 98 ELSE 31 * + 4 END * - 52 AS col2
----
-2636
6414

skipif mysql # not compatible
query II rowsort label-9503
SELECT ALL 31 * - 81 - 29 + + + COUNT ( * ) + - 97, - 34 + + - CASE - 49 WHEN + - 45 / MIN ( ALL - + 23 ) THEN - + 98 ELSE 31 * + 4 END * - 52 AS col2
----
-2636
6414

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT DISTINCT SUM( - + ( - 14 ) )
----
14

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT SUM ( - + ( - 14 ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT DISTINCT + MIN( ALL + 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT + MIN ( ALL + 23 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT 96 - - 7 + + COALESCE ( 45, - 65 + - COUNT( * ) - - + 53 + 37 * - 97, COUNT( * ) ) AS col2
----
148

skipif mysql # not compatible
query I rowsort label-9506
SELECT 96 - - 7 + + COALESCE ( 45, - 65 + - COUNT ( * ) - - + 53 + 37 * - 97, COUNT ( * ) ) AS col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT + SUM( ALL + - 46 ) * - 32 * + 17 * - 3 * + - COUNT( * )
----
75072

skipif mysql # not compatible
query I rowsort label-9507
SELECT + SUM ( ALL + - 46 ) * - 32 * + 17 * - 3 * + - COUNT ( * )
----
75072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9508
SELECT + + NULLIF ( + ( + + COUNT( * ) ), ( + 52 ) * - 65 + CAST( - + 48 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9508
SELECT + + NULLIF ( + ( + + COUNT ( * ) ), ( + 52 ) * - 65 + CAST ( - + 48 AS INTEGER ) )
----
1

query I rowsort
SELECT DISTINCT - 22 + 82
----
60

query I rowsort
SELECT ALL + 67 + + 35 AS col0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9511
SELECT ALL ( - - 37 ) * - - 73 + CAST( - 21 AS SIGNED ) AS col2
----
2680

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL ( - - 37 ) * - - 73 + CAST ( - 21 AS INTEGER ) AS col2
----
2680

query I rowsort
SELECT 67 * + + 86 - + 90
----
5672

onlyif mysql # aggregate syntax: 
query II rowsort label-9513
SELECT ALL - COUNT( * ) AS col0, + SUM( 12 ) AS col1
----
-1
12

skipif mysql # not compatible
query II rowsort label-9513
SELECT ALL - COUNT ( * ) AS col0, + SUM ( 12 ) AS col1
----
-1
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9514
SELECT COUNT( * ), - 26 AS col1
----
1
-26

skipif mysql # not compatible
query II rowsort label-9514
SELECT COUNT ( * ), - 26 AS col1
----
1
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9515
SELECT ALL + 68 + - 2 + + - CAST( ( + 17 ) AS SIGNED ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL + 68 + - 2 + + - CAST ( ( + 17 ) AS INTEGER ) AS col0
----
49

query II rowsort
SELECT + 90 AS col1, 75
----
90
75

query I rowsort
SELECT NULLIF ( - - 23, + + 26 ) + 31 + + + 14 * - 8 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-9518
SELECT ALL - COUNT( * ), ( - + 9 ) * 52 * - 45 AS col0
----
-1
21060

skipif mysql # not compatible
query II rowsort label-9518
SELECT ALL - COUNT ( * ), ( - + 9 ) * 52 * - 45 AS col0
----
-1
21060

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT COUNT( DISTINCT + 2 ) - + 67 * - COUNT( * ) col0
----
68

skipif mysql # not compatible
query I rowsort label-9519
SELECT COUNT ( DISTINCT + 2 ) - + 67 * - COUNT ( * ) col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9520
SELECT ALL - 32 DIV + 11
----
-2

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL - 32 / + 11
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9521
SELECT 98 + - CAST( + + 50 AS SIGNED ) AS col0, 30 + - 46 AS col2
----
48
-16

skipif mysql # not compatible
query II rowsort label-9521
SELECT 98 + - CAST ( + + 50 AS INTEGER ) AS col0, 30 + - 46 AS col2
----
48
-16

query II rowsort
SELECT ALL 67 + - ( - 98 ) AS col1, 64 AS col2
----
165
64

query I rowsort
SELECT 79 * - + 25
----
-1975

onlyif mysql # DIV for integer division: 
query I rowsort label-9524
SELECT ALL - 32 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL - 32 / 94
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9525
SELECT DISTINCT - COUNT( * ), 74 - 49 * COUNT( * ) + + 87 + + ( 3 ) * ( - - COUNT( * ) ) + 13 * + - 62 AS col1
----
-1
-691

skipif mysql # not compatible
query II rowsort label-9525
SELECT DISTINCT - COUNT ( * ), 74 - 49 * COUNT ( * ) + + 87 + + ( 3 ) * ( - - COUNT ( * ) ) + 13 * + - 62 AS col1
----
-1
-691

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT 91 + + - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9526
SELECT 91 + + - COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL - COALESCE ( 21, COALESCE ( + - ( + 0 ), - - 68 ) * + COUNT( * ) + - 60 + + + 76 ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL - COALESCE ( 21, COALESCE ( + - ( + 0 ), - - 68 ) * + COUNT ( * ) + - 60 + + + 76 ) col0
----
-21

query I rowsort
SELECT + 58 * - 45 * + - 81 * + + 42 - - 24
----
8879244

query I rowsort
SELECT - 70 * - 41 + - - ( - 68 ) AS col2
----
2802

query I rowsort
SELECT + 10 + + - 24
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9531
SELECT 52, + 17 + - - ( + + COALESCE ( - + MAX( + - CAST( NULL AS SIGNED ) ), - 91 ) ) AS col1
----
52
-74

skipif mysql # not compatible
query II rowsort label-9531
SELECT 52, + 17 + - - ( + + COALESCE ( - + MAX ( + - CAST ( NULL AS INTEGER ) ), - 91 ) ) AS col1
----
52
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT - - CASE + 15 WHEN + 29 + 62 THEN SUM( CAST( 90 AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT - - CASE + 15 WHEN + 29 + 62 THEN SUM ( CAST ( 90 AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT - 46 - - - 83 - + - 63 col1
----
-66

query I rowsort
SELECT - + 61 + 66
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9535
SELECT - - 86 + - NULLIF ( - - 79, + - NULLIF ( 86, - - 26 / + 19 * + SUM( CAST( 9 AS SIGNED ) ) * + MAX( + 84 ) + + 13 + 78 + 93 + + 91 ) )
----
7

skipif mysql # not compatible
query I rowsort label-9535
SELECT - - 86 + - NULLIF ( - - 79, + - NULLIF ( 86, - - 26 / + 19 * + SUM ( CAST ( 9 AS INTEGER ) ) * + MAX ( + 84 ) + + 13 + 78 + 93 + + 91 ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT - NULLIF ( - COUNT( * ), - 44 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9536
SELECT - NULLIF ( - COUNT ( * ), - 44 ) col1
----
1

query I rowsort
SELECT + + 11 + 32
----
43

query I rowsort
SELECT + + 6 - - 13 * + - 84
----
-1086

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9539
SELECT ALL - 42 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL - 42 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT + - COUNT( * ) + 14 col0
----
13

skipif mysql # not compatible
query I rowsort label-9540
SELECT + - COUNT ( * ) + 14 col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT DISTINCT - 73 * - - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT - 73 * - - COUNT ( * )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9542
SELECT ALL CAST( NULL AS SIGNED ) + - - MAX( DISTINCT + + 24 ) + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL CAST ( NULL AS INTEGER ) + - - MAX ( DISTINCT + + 24 ) + + 41
----
NULL

query I rowsort
SELECT + 75 + + 52
----
127

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9544
SELECT ALL 45 * NULLIF ( - - 27, + + ( 83 ) * + CASE 6 WHEN - MAX( + - 5 ) THEN - + COUNT( * ) + 18 + + 56 ELSE - + 6 END ) + + 72 + + CAST( NULL AS DECIMAL ) + + COUNT( + - 3 ) / + COUNT( - + 58 ) + 85 * - 55 * - - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL 45 * NULLIF ( - - 27, + + ( 83 ) * + CASE 6 WHEN - MAX ( + - 5 ) THEN - + COUNT ( * ) + 18 + + 56 ELSE - + 6 END ) + + 72 + + CAST ( NULL AS REAL ) + + COUNT ( + - 3 ) / + COUNT ( - + 58 ) + 85 * - 55 * - - 95
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9545
SELECT DISTINCT ( + + 96 ) + CASE 84 WHEN + 27 / + 34 THEN - + 87 WHEN - + 66 THEN NULL WHEN - 53 THEN NULL ELSE + COUNT( CASE 62 WHEN 49 * - 5 THEN - + 87 / 44 + - - 92 END ) END AS col2, - 9 * - - 95 AS col2
----
96
-855

skipif mysql # not compatible
query II rowsort label-9545
SELECT DISTINCT ( + + 96 ) + CASE 84 WHEN + 27 / + 34 THEN - + 87 WHEN - + 66 THEN NULL WHEN - 53 THEN NULL ELSE + COUNT ( CASE 62 WHEN 49 * - 5 THEN - + 87 / 44 + - - 92 END ) END AS col2, - 9 * - - 95 AS col2
----
96
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT DISTINCT + COUNT( * ) * 38 + + 69 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT + COUNT ( * ) * 38 + + 69 AS col2
----
107

query I rowsort
SELECT ( - - 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT + COUNT( * ) * 53 col0
----
53

skipif mysql # not compatible
query I rowsort label-9548
SELECT + COUNT ( * ) * 53 col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT CAST( NULL AS SIGNED ) / - 34 * 99 * + + CAST( NULL AS SIGNED ) + - + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT CAST ( NULL AS INTEGER ) / - 34 * 99 * + + CAST ( NULL AS INTEGER ) + - + 95 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9550
SELECT DISTINCT 30 * - COUNT( ALL NULLIF ( - 11, + 0 + 67 * + - 14 * + 58 ) ) - - 11, 25 * + CAST( - 20 AS SIGNED ) + - + 54 col1
----
-19
-554

skipif mysql # not compatible
query II rowsort label-9550
SELECT DISTINCT 30 * - COUNT ( ALL NULLIF ( - 11, + 0 + 67 * + - 14 * + 58 ) ) - - 11, 25 * + CAST ( - 20 AS INTEGER ) + - + 54 col1
----
-19
-554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9551
SELECT + CAST( 61 AS SIGNED ) * - 65 * + 1 AS col2
----
-3965

skipif mysql # not compatible
query I rowsort label-9551
SELECT + CAST ( 61 AS INTEGER ) * - 65 * + 1 AS col2
----
-3965

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9552
SELECT ALL COUNT( * ) * + + NULLIF ( - 35, - - 78 * + - 17 ) DIV - - 10 - 26 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL COUNT ( * ) * + + NULLIF ( - 35, - - 78 * + - 17 ) / - - 10 - 26 AS col2
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9553
SELECT DISTINCT 20 * COUNT( * ) DIV 57 * + 32 * + + MIN( 17 ) * 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT 20 * COUNT ( * ) / 57 * + 32 * + + MIN ( 17 ) * 83 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9554
SELECT DISTINCT CAST( + 13 AS SIGNED ) * 2 * - 16 * + 42 + + 20 - + 69 + 97 AS col1
----
-17424

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT CAST ( + 13 AS INTEGER ) * 2 * - 16 * + 42 + + 20 - + 69 + 97 AS col1
----
-17424

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT DISTINCT - COUNT( * ) * 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT - COUNT ( * ) * 81 AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9556
SELECT CAST( COUNT( * ) AS SIGNED ) * - ( COUNT( + 7 ) ) * + + 18 - - 99 + - 49
----
32

skipif mysql # not compatible
query I rowsort label-9556
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - ( COUNT ( + 7 ) ) * + + 18 - - 99 + - 49
----
32

query I rowsort
SELECT - 1 * 48 * - 20
----
960

onlyif mysql # aggregate syntax: 
query II rowsort label-9558
SELECT 65 * + COUNT( * ) + - MAX( - 93 ) AS col2, 34 * - + 50 col1
----
158
-1700

skipif mysql # not compatible
query II rowsort label-9558
SELECT 65 * + COUNT ( * ) + - MAX ( - 93 ) AS col2, 34 * - + 50 col1
----
158
-1700

onlyif mysql # aggregate syntax: 
query II rowsort label-9559
SELECT - 64 + + NULLIF ( - 0, - 16 ), - COUNT( * ) AS col0
----
-64
-1

skipif mysql # not compatible
query II rowsort label-9559
SELECT - 64 + + NULLIF ( - 0, - 16 ), - COUNT ( * ) AS col0
----
-64
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9560
SELECT - + AVG ( CAST( NULL AS SIGNED ) ) * - ( - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9560
SELECT - + AVG ( CAST ( NULL AS INTEGER ) ) * - ( - 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT DISTINCT + COUNT( ALL + 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT + COUNT ( ALL + 78 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT - 30 + + + COUNT( * ) * + + 88 * - - 26 col1
----
2258

skipif mysql # not compatible
query I rowsort label-9562
SELECT - 30 + + + COUNT ( * ) * + + 88 * - - 26 col1
----
2258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9563
SELECT - 35 * - + 7 * 26 * + CAST( NULLIF ( - ( - 42 ), 4 + - COUNT( * ) ) AS SIGNED ) - - 98 AS col1
----
267638

skipif mysql # not compatible
query I rowsort label-9563
SELECT - 35 * - + 7 * 26 * + CAST ( NULLIF ( - ( - 42 ), 4 + - COUNT ( * ) ) AS INTEGER ) - - 98 AS col1
----
267638

onlyif mysql # DIV for integer division: 
query II rowsort label-9564
SELECT DISTINCT - 28 DIV 68 AS col0, 70
----
0
70

skipif mysql # not compatible
query II rowsort label-9564
SELECT DISTINCT - 28 / 68 AS col0, 70
----
0
70

query I rowsort
SELECT 1 * 59 + - - 8 col0
----
67

query I rowsort
SELECT - ( - ( - 76 ) )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT - ( - 57 ) + + + CASE + 20 WHEN - - COUNT( - 30 ) * + + 68 + - 19 * - + 30 THEN - SUM( - - 31 ) ELSE + 22 END
----
79

skipif mysql # not compatible
query I rowsort label-9567
SELECT - ( - 57 ) + + + CASE + 20 WHEN - - COUNT ( - 30 ) * + + 68 + - 19 * - + 30 THEN - SUM ( - - 31 ) ELSE + 22 END
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9568
SELECT ALL - - 81 * - - 90 AS col1, - 73 + + COUNT( * ) * + 74 + - + NULLIF ( - COUNT( * ), - 83 + - - 43 ) + + 80 + ( 43 ) + - + 85 * + - 78
----
7290
6755

skipif mysql # not compatible
query II rowsort label-9568
SELECT ALL - - 81 * - - 90 AS col1, - 73 + + COUNT ( * ) * + 74 + - + NULLIF ( - COUNT ( * ), - 83 + - - 43 ) + + 80 + ( 43 ) + - + 85 * + - 78
----
7290
6755

query I rowsort
SELECT ALL + 46 + - 25
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT DISTINCT - MIN( + + 22 ) + + - 46
----
-68

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT - MIN ( + + 22 ) + + - 46
----
-68

query I rowsort
SELECT - 37 * - + 39
----
1443

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT ALL - - COUNT( * ) + - 28 - - + 40
----
13

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL - - COUNT ( * ) + - 28 - - + 40
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL - 43 * - COALESCE ( - COUNT( * ), - 42 * - COUNT( * ) + 0 ) - 94
----
-137

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL - 43 * - COALESCE ( - COUNT ( * ), - 42 * - COUNT ( * ) + 0 ) - 94
----
-137

onlyif mysql # aggregate syntax: 
query II rowsort label-9574
SELECT ALL + 85 + 18 + 32 * - 93, COUNT( * ) * - COUNT( ALL + 78 ) col1
----
-2873
-1

skipif mysql # not compatible
query II rowsort label-9574
SELECT ALL + 85 + 18 + 32 * - 93, COUNT ( * ) * - COUNT ( ALL + 78 ) col1
----
-2873
-1

query I rowsort
SELECT COALESCE ( - - ( + + 97 ), + 7 + - + 2 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT DISTINCT + SUM( DISTINCT - 76 ) + MIN( ALL - 53 ) + + 7 AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT + SUM ( DISTINCT - 76 ) + MIN ( ALL - 53 ) + + 7 AS col0
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-9577
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), + 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT - CASE COUNT( * ) WHEN 77 THEN NULL WHEN 98 THEN + - 22 * - + 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT - CASE COUNT ( * ) WHEN 77 THEN NULL WHEN 98 THEN + - 22 * - + 7 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 4 + 41 * + 6
----
250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9580
SELECT - CASE - COALESCE ( - - CAST( NULL AS SIGNED ), - - 28 + - + 78 + COUNT( * ) + CASE + 49 WHEN - + 51 / + COUNT( * ) THEN - 88 + 22 / + + 20 END - 96 * + 54 ) WHEN + 16 * - 42 + - 97 * - + 42 THEN + - 6 + + - 68 * - - MIN( + 1 ) * - 8 + - 42 - - 38 WHEN - NULLIF ( ( - 11 ), NULLIF ( - 25, + 10 ) * + 46 ) + COUNT( * ) THEN NULL ELSE + 37 + 88 END
----
-125

skipif mysql # not compatible
query I rowsort label-9580
SELECT - CASE - COALESCE ( - - CAST ( NULL AS INTEGER ), - - 28 + - + 78 + COUNT ( * ) + CASE + 49 WHEN - + 51 / + COUNT ( * ) THEN - 88 + 22 / + + 20 END - 96 * + 54 ) WHEN + 16 * - 42 + - 97 * - + 42 THEN + - 6 + + - 68 * - - MIN ( + 1 ) * - 8 + - 42 - - 38 WHEN - NULLIF ( ( - 11 ), NULLIF ( - 25, + 10 ) * + 46 ) + COUNT ( * ) THEN NULL ELSE + 37 + 88 END
----
-125

query I rowsort
SELECT + 15 * - 37 AS col1
----
-555

query I rowsort
SELECT ALL 21 * 54
----
1134

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9583
SELECT - CASE + - CAST( NULL AS DECIMAL ) WHEN ( + - 75 ) + - 40 THEN - - CASE - + 90 WHEN 46 THEN - ( + + 11 ) ELSE NULL END ELSE - 90 END - - COUNT( * ) - + - 92 AS col1
----
183

skipif mysql # not compatible
query I rowsort label-9583
SELECT - CASE + - CAST ( NULL AS REAL ) WHEN ( + - 75 ) + - 40 THEN - - CASE - + 90 WHEN 46 THEN - ( + + 11 ) ELSE NULL END ELSE - 90 END - - COUNT ( * ) - + - 92 AS col1
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT COUNT( * ) * + 11 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT COUNT ( * ) * + 11 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT + SUM( - COALESCE ( + + 86, - 84 ) ) * 92 * - SUM( DISTINCT + - 7 ) + 33 - - 40
----
-55311

skipif mysql # not compatible
query I rowsort label-9585
SELECT + SUM ( - COALESCE ( + + 86, - 84 ) ) * 92 * - SUM ( DISTINCT + - 7 ) + 33 - - 40
----
-55311

query I rowsort
SELECT ALL - 32 * + 38
----
-1216

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL + SUM( + 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL + SUM ( + 93 ) AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9588
SELECT CAST( - CAST( - - 14 AS SIGNED ) AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-9588
SELECT CAST ( - CAST ( - - 14 AS INTEGER ) AS INTEGER )
----
-14

query I rowsort
SELECT DISTINCT 79 * + 59 * 48 AS col0
----
223728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9590
SELECT 78 / - - ( - 32 ) - + CAST( NULL AS SIGNED ) * + 77, 19 AS col1
----
NULL
19

skipif mysql # not compatible
query II rowsort label-9590
SELECT 78 / - - ( - 32 ) - + CAST ( NULL AS INTEGER ) * + 77, 19 AS col1
----
NULL
19

query II rowsort
SELECT + 19 * 23 * - 36 AS col2, 26
----
-15732
26

query I rowsort
SELECT + 25 * + 94 AS col2
----
2350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9593
SELECT CAST( - - 29 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-9593
SELECT CAST ( - - 29 AS INTEGER )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT - 78 - - MIN( + - 77 ) + MAX( ALL - ( + 83 ) )
----
-238

skipif mysql # not compatible
query I rowsort label-9594
SELECT - 78 - - MIN ( + - 77 ) + MAX ( ALL - ( + 83 ) )
----
-238

query I rowsort
SELECT + 89 * - - ( 79 ) * + 14
----
98434

query I rowsort
SELECT DISTINCT - 43 * + COALESCE ( + 77, - 75 ) AS col0
----
-3311

query I rowsort
SELECT 22 * - 50 * + - 40
----
44000

query I rowsort
SELECT ALL - ( + - 50 ) * - 87
----
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT - + 45 * - 66 - - - COUNT( * ) - 22 AS col1
----
2947

skipif mysql # not compatible
query I rowsort label-9599
SELECT - + 45 * - 66 - - - COUNT ( * ) - 22 AS col1
----
2947

onlyif mysql # DIV for integer division: 
query I rowsort label-9600
SELECT 15 DIV + + 49 + 67 * - 80 AS col1
----
-5360

skipif mysql # not compatible
query I rowsort label-9600
SELECT 15 / + + 49 + 67 * - 80 AS col1
----
-5360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9601
SELECT ALL 25 + COUNT( * ) + - 5 * 50 + + - 9 + - + 58 + - COALESCE ( CAST( - 56 AS SIGNED ), + 99 ) * 92 col1
----
4861

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL 25 + COUNT ( * ) + - 5 * 50 + + - 9 + - + 58 + - COALESCE ( CAST ( - 56 AS INTEGER ), + 99 ) * 92 col1
----
4861

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL + - COUNT( ALL ( 16 ) ) + + 71 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL + - COUNT ( ALL ( 16 ) ) + + 71 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT - COUNT( * ) + + - 93 * 23
----
-2140

skipif mysql # not compatible
query I rowsort label-9603
SELECT - COUNT ( * ) + + - 93 * 23
----
-2140

query I rowsort
SELECT ALL + 58 + 72
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9605
SELECT + 30 * + - 94 * - CAST( + - 61 AS SIGNED ) AS col2
----
-172020

skipif mysql # not compatible
query I rowsort label-9605
SELECT + 30 * + - 94 * - CAST ( + - 61 AS INTEGER ) AS col2
----
-172020

query I rowsort
SELECT DISTINCT + ( 25 ) AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9607
SELECT DISTINCT + - NULLIF ( - 72, + 84 ) DIV + 48 - + NULLIF ( + + 64, + 2 ) * - 73
----
4673

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT + - NULLIF ( - 72, + 84 ) / + 48 - + NULLIF ( + + 64, + 2 ) * - 73
----
4673

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT + COUNT( DISTINCT ( + - ( + 44 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT + COUNT ( DISTINCT ( + - ( + 44 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9609
SELECT ALL + + COUNT( - 55 ) * 92 AS col2, - 97 + 99 AS col1
----
92
2

skipif mysql # not compatible
query II rowsort label-9609
SELECT ALL + + COUNT ( - 55 ) * 92 AS col2, - 97 + 99 AS col1
----
92
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT + 57 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9610
SELECT + 57 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT ALL + + 74 + - ( + COUNT( * ) ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL + + 74 + - ( + COUNT ( * ) ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT 63 + + NULLIF ( + CASE + 88 WHEN - + 14 + 42 + + ( 13 ) * - 68 THEN COUNT( * ) + - - 63 + + 11 WHEN - - 80 THEN 95 ELSE 26 END, 38 + + - 6 - - 98 ) * - 60
----
-1497

skipif mysql # not compatible
query I rowsort label-9612
SELECT 63 + + NULLIF ( + CASE + 88 WHEN - + 14 + 42 + + ( 13 ) * - 68 THEN COUNT ( * ) + - - 63 + + 11 WHEN - - 80 THEN 95 ELSE 26 END, 38 + + - 6 - - 98 ) * - 60
----
-1497

query I rowsort
SELECT 50 + - 27 + + 79 + + 12
----
114

query I rowsort
SELECT DISTINCT - 63 * - ( - 53 )
----
-3339

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT 47 + - 33 - - 53 DIV 99 + 55
----
69

skipif mysql # not compatible
query I rowsort label-9615
SELECT 47 + - 33 - - 53 / 99 + 55
----
69

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9616
SELECT ALL - 45 * CAST( - 20 AS DECIMAL ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL - 45 * CAST ( - 20 AS REAL ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 57 + 52
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9618
SELECT 92 - - + ( 19 ) - - 81 / MIN( ALL - - 73 ) + + CAST( NULL AS SIGNED ) * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT 92 - - + ( 19 ) - - 81 / MIN ( ALL - - 73 ) + + CAST ( NULL AS INTEGER ) * 95
----
NULL

query I rowsort
SELECT DISTINCT - 64 * + 51 * + 97 * - 78
----
24695424

query I rowsort
SELECT ALL + 73 - + + 52 AS col1
----
21

query I rowsort
SELECT 82 + + + 36 * - - 57 AS col2
----
2134

onlyif mysql # aggregate syntax: 
query II rowsort label-9622
SELECT ALL 43 AS col2, + COUNT( * ) * - COUNT( * )
----
43
-1

skipif mysql # not compatible
query II rowsort label-9622
SELECT ALL 43 AS col2, + COUNT ( * ) * - COUNT ( * )
----
43
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT MAX( 80 ) + + 51
----
131

skipif mysql # not compatible
query I rowsort label-9623
SELECT MAX ( 80 ) + + 51
----
131

query I rowsort
SELECT ALL + 73 - + 75
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9625
SELECT DISTINCT - COUNT( * ) AS col1, + 29
----
-1
29

skipif mysql # not compatible
query II rowsort label-9625
SELECT DISTINCT - COUNT ( * ) AS col1, + 29
----
-1
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT - 84 * + + MIN( DISTINCT + 94 ) + - 50
----
-7946

skipif mysql # not compatible
query I rowsort label-9626
SELECT - 84 * + + MIN ( DISTINCT + 94 ) + - 50
----
-7946

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9627
SELECT 72 DIV NULLIF ( + 6, - 97 ) * + - COUNT( * ) DIV 60 * - - 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9627
SELECT 72 / NULLIF ( + 6, - 97 ) * + - COUNT ( * ) / 60 * - - 6 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9628
SELECT ALL + 1 DIV MAX( ALL 79 ) * + 76
----
0

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL + 1 / MAX ( ALL 79 ) * + 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9629
SELECT + 46 * 93 * + 28 + + COALESCE ( + - CASE 99 WHEN 44 DIV 62 + + COUNT( * ) THEN NULL WHEN - ( 80 ) + + 93 THEN - + COUNT( * ) END, + COALESCE ( 20, + 83 * + + 0 * + - 65 ) * + COUNT( * ) - - 36 DIV + 19 + - MIN( - - 25 ) ) - 29 + - 11 * - 96 DIV 2
----
120279

skipif mysql # not compatible
query I rowsort label-9629
SELECT + 46 * 93 * + 28 + + COALESCE ( + - CASE 99 WHEN 44 / 62 + + COUNT ( * ) THEN NULL WHEN - ( 80 ) + + 93 THEN - + COUNT ( * ) END, + COALESCE ( 20, + 83 * + + 0 * + - 65 ) * + COUNT ( * ) - - 36 / + 19 + - MIN ( - - 25 ) ) - 29 + - 11 * - 96 / 2
----
120279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9630
SELECT - 34 DIV COUNT( * ) + + COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9630
SELECT - 34 / COUNT ( * ) + + COUNT ( * ) AS col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9631
SELECT ALL + COUNT( * ) DIV - 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL + COUNT ( * ) / - 5 AS col1
----
0

query I rowsort
SELECT ALL 60 * 31 AS col1
----
1860

onlyif mysql # DIV for integer division: 
query II rowsort label-9633
SELECT ALL - 42 AS col2, - 97 DIV - 31 AS col0
----
-42
3

skipif mysql # not compatible
query II rowsort label-9633
SELECT ALL - 42 AS col2, - 97 / - 31 AS col0
----
-42
3

query I rowsort
SELECT ALL 77 + + 26
----
103

query I rowsort
SELECT ALL + 39 + + 61
----
100

query I rowsort
SELECT ALL 82 + + - 47 + 76
----
111

query I rowsort
SELECT DISTINCT - ( + - 73 ) + + - 96
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT - 65 + + + 2 + - - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-9638
SELECT - 65 + + + 2 + - - COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9639
SELECT ALL 9 + 87 - - + 67 DIV 65 + - ( - 19 ) DIV - + 4 - + + 57 + + 53 - - 13 * COUNT( * ) * 78 DIV - - 89 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL 9 + 87 - - + 67 / 65 + - ( - 19 ) / - + 4 - + + 57 + + 53 - - 13 * COUNT ( * ) * 78 / - - 89 AS col2
----
100

onlyif mysql # DIV for integer division: 
query II rowsort label-9640
SELECT - + 84 * + - 61 + - + 60 + + 89 * 13 DIV - - 73, + 9 * - 66 * 32 + 89 AS col0
----
5079
-18919

skipif mysql # not compatible
query II rowsort label-9640
SELECT - + 84 * + - 61 + - + 60 + + 89 * 13 / - - 73, + 9 * - 66 * 32 + 89 AS col0
----
5079
-18919

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9641
SELECT + - 29 AS col2, - CAST( - - 33 AS SIGNED ) - + 85 + + 8
----
-29
-110

skipif mysql # not compatible
query II rowsort label-9641
SELECT + - 29 AS col2, - CAST ( - - 33 AS INTEGER ) - + 85 + + 8
----
-29
-110

query I rowsort
SELECT 17 * + 41 * 1 AS col2
----
697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9643
SELECT SUM( ALL - - 76 ) + - CAST( NULL AS SIGNED ) * 14 AS col1, 28 AS col2
----
NULL
28

skipif mysql # not compatible
query II rowsort label-9643
SELECT SUM ( ALL - - 76 ) + - CAST ( NULL AS INTEGER ) * 14 AS col1, 28 AS col2
----
NULL
28

query I rowsort
SELECT ALL + 88 + + 65
----
153

query I rowsort
SELECT ALL + 18 + - 85 + 34 AS col2
----
-33

query I rowsort
SELECT + 15 + - + 28
----
-13

query II rowsort
SELECT + - 9, 2 AS col0
----
-9
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9648
SELECT 86 + - 41 + + 10 DIV COUNT( DISTINCT - + CAST( + 99 AS SIGNED ) ) + 35 + - - ( - - ( + + COUNT( * ) ) )
----
91

skipif mysql # not compatible
query I rowsort label-9648
SELECT 86 + - 41 + + 10 / COUNT ( DISTINCT - + CAST ( + 99 AS INTEGER ) ) + 35 + - - ( - - ( + + COUNT ( * ) ) )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9649
SELECT ALL + 94 * + - MAX( DISTINCT - 75 ) * - - 83 + + - 15 + + 30, 93 col1
----
585165
93

skipif mysql # not compatible
query II rowsort label-9649
SELECT ALL + 94 * + - MAX ( DISTINCT - 75 ) * - - 83 + + - 15 + + 30, 93 col1
----
585165
93

query I rowsort
SELECT + 64 * - 78 * 68 AS col0
----
-339456

query I rowsort
SELECT DISTINCT 43 - + - 3 * + 68 * - 85 * - 26
----
450883

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT - 82 * COUNT( * ) + + 82 + + + 74 * + 93 AS col0
----
6882

skipif mysql # not compatible
query I rowsort label-9652
SELECT - 82 * COUNT ( * ) + + 82 + + + 74 * + 93 AS col0
----
6882

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT - MIN( DISTINCT - - 58 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-9653
SELECT - MIN ( DISTINCT - - 58 ) AS col0
----
-58

query I rowsort
SELECT 92 + + - 26 * 34 + - 4 * - + 78
----
-480

query I rowsort
SELECT ( - 54 ) * + - 5 * + 84 * + - 55
----
-1247400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9656
SELECT DISTINCT CAST( NULL AS SIGNED ) * 33 AS col2, - 37
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-9656
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 33 AS col2, - 37
----
NULL
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT DISTINCT + CASE WHEN 52 < - - COUNT( * ) THEN - 56 END * + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT + CASE WHEN 52 < - - COUNT ( * ) THEN - 56 END * + + 20
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9658
SELECT DISTINCT + COUNT( + 57 ) DIV 86 col1, 76 AS col1
----
0
76

skipif mysql # not compatible
query II rowsort label-9658
SELECT DISTINCT + COUNT ( + 57 ) / 86 col1, 76 AS col1
----
0
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT 1 * - MIN( - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-9659
SELECT 1 * - MIN ( - 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL MIN( + + 94 ) col2
----
94

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL MIN ( + + 94 ) col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT 88 * + MAX( - - 81 ) * + 20 AS col1
----
142560

skipif mysql # not compatible
query I rowsort label-9661
SELECT 88 * + MAX ( - - 81 ) * + 20 AS col1
----
142560

query I rowsort
SELECT 91 + - ( + - 2 )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT DISTINCT + 88 * - 36 / + 60 * + + CAST( NULL AS SIGNED ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT + 88 * - 36 / + 60 * + + CAST ( NULL AS INTEGER ) * 17
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9664
SELECT COALESCE ( + + 16, - 14, CAST( 62 AS SIGNED ) * - 88 + + + 31 )
----
16

skipif mysql # not compatible
query I rowsort label-9664
SELECT COALESCE ( + + 16, - 14, CAST ( 62 AS INTEGER ) * - 88 + + + 31 )
----
16

query I rowsort
SELECT ALL + 59 * - 2 + - - 86 * 41
----
3408

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL - 76 * - + NULLIF ( 77, + - COUNT( * ) / + 34 ) * + + 87 + + - COUNT( * ) AS col0
----
509123

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL - 76 * - + NULLIF ( 77, + - COUNT ( * ) / + 34 ) * + + 87 + + - COUNT ( * ) AS col0
----
509123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9667
SELECT 79 * + SUM( + + 95 ) / + COALESCE ( - 90, - 93 ) / + ( 95 ) / MAX( + 60 ) - ( - 11 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT 79 * + SUM ( + + 95 ) / + COALESCE ( - 90, - 93 ) / + ( 95 ) / MAX ( + 60 ) - ( - 11 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( + 38, - 3 ) AS col2
----
38

query I rowsort
SELECT - 4 * 21 - 70 AS col0
----
-154

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9670
SELECT DISTINCT + COALESCE ( CAST( + 14 AS SIGNED ), - + 97 DIV + ( + - CAST( - ( + - 68 ) AS SIGNED ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT + COALESCE ( CAST ( + 14 AS INTEGER ), - + 97 / + ( + - CAST ( - ( + - 68 ) AS INTEGER ) ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT - + 94 * NULLIF ( CASE - 87 WHEN - 23 THEN NULL ELSE COUNT( * ) + + 30 END, 30 ) + - COUNT( * ) AS col1
----
-2915

skipif mysql # not compatible
query I rowsort label-9671
SELECT - + 94 * NULLIF ( CASE - 87 WHEN - 23 THEN NULL ELSE COUNT ( * ) + + 30 END, 30 ) + - COUNT ( * ) AS col1
----
-2915

onlyif mysql # DIV for integer division: 
query I rowsort label-9672
SELECT + - 22 DIV + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9672
SELECT + - 22 / + 61 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9673
SELECT DISTINCT + COUNT( * ) DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT + COUNT ( * ) / + 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT DISTINCT - + 17 * - ( + SUM( ALL - + 60 ) ) + COUNT( * ) - 12 col1
----
-1031

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT - + 17 * - ( + SUM ( ALL - + 60 ) ) + COUNT ( * ) - 12 col1
----
-1031

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT - + 78 * COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-9675
SELECT - + 78 * COUNT ( * ) AS col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-9676
SELECT - 70 * 12 DIV - 21 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9676
SELECT - 70 * 12 / - 21 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9677
SELECT + 99 * - CAST( NULL AS SIGNED ) + - SUM( 97 ) / + 97, 33 AS col2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-9677
SELECT + 99 * - CAST ( NULL AS INTEGER ) + - SUM ( 97 ) / + 97, 33 AS col2
----
NULL
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT - - COUNT( * ) + + 2 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9678
SELECT - - COUNT ( * ) + + 2 AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9679
SELECT + + 51 + - COALESCE ( + - 11, - 49 * - + 28 DIV - + 10 * + 28 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-9679
SELECT + + 51 + - COALESCE ( + - 11, - 49 * - + 28 / - + 10 * + 28 ) col1
----
62

query II rowsort
SELECT ALL 29, 94 AS col2
----
29
94

query I rowsort
SELECT ALL 21 * 37 AS col0
----
777

query I rowsort
SELECT ALL + 73 * + + 19 AS col1
----
1387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT + CAST( - 97 AS SIGNED ) * + + ( + 83 ) AS col0
----
-8051

skipif mysql # not compatible
query I rowsort label-9683
SELECT + CAST ( - 97 AS INTEGER ) * + + ( + 83 ) AS col0
----
-8051

query II rowsort
SELECT + 85 * - 23 * - 40 AS col2, + 43
----
78200
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT + CAST( - 43 AS SIGNED ) + + 5 col2
----
-38

skipif mysql # not compatible
query I rowsort label-9685
SELECT + CAST ( - 43 AS INTEGER ) + + 5 col2
----
-38

query I rowsort
SELECT - 2 - + 5 + 54 + - ( + COALESCE ( + + 25, + 2 + 93 * + 6 ) )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ALL MIN( 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL MIN ( 29 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-9688
SELECT DISTINCT COUNT( * ) AS col2, 76 AS col2
----
1
76

skipif mysql # not compatible
query II rowsort label-9688
SELECT DISTINCT COUNT ( * ) AS col2, 76 AS col2
----
1
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT + 49 * SUM( ALL ( + - 41 ) )
----
-2009

skipif mysql # not compatible
query I rowsort label-9689
SELECT + 49 * SUM ( ALL ( + - 41 ) )
----
-2009

onlyif mysql # DIV for integer division: 
query I rowsort label-9690
SELECT ALL 55 + 27 + - 55 DIV 37 * + 30 DIV ( - 83 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL 55 + 27 + - 55 / 37 * + 30 / ( - 83 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT ALL - ( - 0 ) + + ( 27 ) + + - COUNT( * ) * - - 64
----
-37

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL - ( - 0 ) + + ( 27 ) + + - COUNT ( * ) * - - 64
----
-37

query I rowsort
SELECT + 43 + - 33 - - 9
----
19

query I rowsort
SELECT - 19 + - + 93 AS col0
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9694
SELECT CAST( - 37 AS SIGNED ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-9694
SELECT CAST ( - 37 AS INTEGER ) col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9695
SELECT ALL - COUNT( * ) DIV 38 + + + 80 + - 89 * + 2 * - COUNT( * )
----
258

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL - COUNT ( * ) / 38 + + + 80 + - 89 * + 2 * - COUNT ( * )
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT + SUM( + - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-9696
SELECT + SUM ( + - 95 )
----
-95

query II rowsort
SELECT 75 AS col1, 87 * 90 * 54 - - - 17
----
75
422803

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT - 39 * - 55 / + 13 + + ( + CASE 47 WHEN - COALESCE ( + + COUNT( * ), MIN( COALESCE ( + 84, - 14 - + COALESCE ( 90, - 5 * + + 16 * 88 ) + + - 4, + 71 * + + 93 / 71 - 82, - - 91 ) ) ) THEN NULL WHEN NULLIF ( - NULLIF ( 50, - - 29 ), + 64 + 28 ) THEN + 48 ELSE NULL END ) + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT - 39 * - 55 / + 13 + + ( + CASE 47 WHEN - COALESCE ( + + COUNT ( * ), MIN ( COALESCE ( + 84, - 14 - + COALESCE ( 90, - 5 * + + 16 * 88 ) + + - 4, + 71 * + + 93 / 71 - 82, - - 91 ) ) ) THEN NULL WHEN NULLIF ( - NULLIF ( 50, - - 29 ), + 64 + 28 ) THEN + 48 ELSE NULL END ) + 88
----
NULL

query I rowsort
SELECT ( - + 52 )
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9700
SELECT + SUM( - - 45 ) DIV 74 + - + MIN( + + 86 ) + 64 + - 1 * + 86 - - COALESCE ( 79, 80 ) + + 93
----
64

skipif mysql # not compatible
query I rowsort label-9700
SELECT + SUM ( - - 45 ) / 74 + - + MIN ( + + 86 ) + 64 + - 1 * + 86 - - COALESCE ( 79, 80 ) + + 93
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9701
SELECT ALL + + 72 * 69 DIV 63
----
78

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL + + 72 * 69 / 63
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9702
SELECT ALL - COUNT( * ) / + - 71 - - - 12 - + CASE - + 35 WHEN + 85 * 63 * 30 / CAST( + COUNT( * ) AS DECIMAL ) THEN + + 48 / COUNT( * ) WHEN + 28 + + - 25 - + + 62 + + ( - + 97 ) * + 54 THEN NULL END + + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL - COUNT ( * ) / + - 71 - - - 12 - + CASE - + 35 WHEN + 85 * 63 * 30 / CAST ( + COUNT ( * ) AS REAL ) THEN + + 48 / COUNT ( * ) WHEN + 28 + + - 25 - + + 62 + + ( - + 97 ) * + 54 THEN NULL END + + 91 AS col2
----
NULL

query II rowsort
SELECT ALL + - 27 AS col2, 27
----
-27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT DISTINCT + + 74 * 60 - - 7 + + COALESCE ( + 99, COUNT( * ) ) * + 48
----
9199

skipif mysql # not compatible
query I rowsort label-9704
SELECT DISTINCT + + 74 * 60 - - 7 + + COALESCE ( + 99, COUNT ( * ) ) * + 48
----
9199

query I rowsort
SELECT + 63 * + + 9 + - 84
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT DISTINCT 47 * + 80 - - + COUNT( * ) + + - 59
----
3702

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT 47 * + 80 - - + COUNT ( * ) + + - 59
----
3702

query I rowsort
SELECT - - 66 * + - 1 + - + 31
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9708
SELECT DISTINCT + + NULLIF ( + COALESCE ( + - ( - COUNT( * ) ), + 11 * + 3 + + - 45 * + NULLIF ( - CAST( 43 AS SIGNED ), + 25 ), - + 74 ), + + ( ( - 22 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT + + NULLIF ( + COALESCE ( + - ( - COUNT ( * ) ), + 11 * + 3 + + - 45 * + NULLIF ( - CAST ( 43 AS INTEGER ), + 25 ), - + 74 ), + + ( ( - 22 ) ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9709
SELECT DISTINCT - + 55 DIV 29
----
-1

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT - + 55 / 29
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9710
SELECT + - 48 col1, COUNT( * ) * - ( - 32 )
----
-48
32

skipif mysql # not compatible
query II rowsort label-9710
SELECT + - 48 col1, COUNT ( * ) * - ( - 32 )
----
-48
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9711
SELECT ALL - 11 * - 92 - + 38 AS col0, - COUNT( * )
----
974
-1

skipif mysql # not compatible
query II rowsort label-9711
SELECT ALL - 11 * - 92 - + 38 AS col0, - COUNT ( * )
----
974
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9712
SELECT DISTINCT - ( - + 97 ) DIV - COALESCE ( 56, 24, COUNT( ALL CASE + 77 WHEN - 2 * - 90 THEN NULL WHEN - + 96 THEN - 78 ELSE - 32 END ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT - ( - + 97 ) / - COALESCE ( 56, 24, COUNT ( ALL CASE + 77 WHEN - 2 * - 90 THEN NULL WHEN - + 96 THEN - 78 ELSE - 32 END ) ) AS col1
----
-1

query I rowsort
SELECT COALESCE ( - + 10, 12 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT ALL - 87 * SUM( 27 ) col2
----
-2349

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL - 87 * SUM ( 27 ) col2
----
-2349

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT COUNT( + ( + + 26 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9715
SELECT COUNT ( + ( + + 26 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL 79 * - MIN( DISTINCT - 41 ) + + - 35 * 39
----
1874

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL 79 * - MIN ( DISTINCT - 41 ) + + - 35 * 39
----
1874

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT SUM( ALL + COALESCE ( + 86, - 70 * - + 37 + 55 * + 74 ) ) * ( - ( - - 66 ) ) + - - ( 86 ) AS col1
----
-5590

skipif mysql # not compatible
query I rowsort label-9717
SELECT SUM ( ALL + COALESCE ( + 86, - 70 * - + 37 + 55 * + 74 ) ) * ( - ( - - 66 ) ) + - - ( 86 ) AS col1
----
-5590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9718
SELECT CAST( NULL AS SIGNED ) + + ( 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT CAST ( NULL AS INTEGER ) + + ( 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9719
SELECT DISTINCT ( + NULLIF ( + 83, - 38 ) ) + + 1 AS col1, 84 * 40 + 81 * + ( CASE - 47 WHEN NULLIF ( + 78, + NULLIF ( + + 9, 84 / ( - - 90 ) ) ) THEN NULL ELSE - NULLIF ( + COUNT( * ), 35 ) END )
----
84
3279

skipif mysql # not compatible
query II rowsort label-9719
SELECT DISTINCT ( + NULLIF ( + 83, - 38 ) ) + + 1 AS col1, 84 * 40 + 81 * + ( CASE - 47 WHEN NULLIF ( + 78, + NULLIF ( + + 9, 84 / ( - - 90 ) ) ) THEN NULL ELSE - NULLIF ( + COUNT ( * ), 35 ) END )
----
84
3279

onlyif mysql # aggregate syntax: 
query II rowsort label-9720
SELECT DISTINCT 66 + - 89, COUNT( * ) - - NULLIF ( + 65, - + 35 ) col2
----
-23
66

skipif mysql # not compatible
query II rowsort label-9720
SELECT DISTINCT 66 + - 89, COUNT ( * ) - - NULLIF ( + 65, - + 35 ) col2
----
-23
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9721
SELECT ALL 1 + + CAST( NULL AS SIGNED ) * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL 1 + + CAST ( NULL AS INTEGER ) * 9
----
NULL

query I rowsort
SELECT 7 - - + 92 AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9723
SELECT COALESCE ( 20, - 53 * + + 76 * - 34 * 26 + 81 DIV - 59 ) + + + 76
----
96

skipif mysql # not compatible
query I rowsort label-9723
SELECT COALESCE ( 20, - 53 * + + 76 * - 34 * 26 + 81 / - 59 ) + + + 76
----
96

query I rowsort
SELECT 66 + 34
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT - 19 * - 55 * COUNT( * )
----
1045

skipif mysql # not compatible
query I rowsort label-9725
SELECT - 19 * - 55 * COUNT ( * )
----
1045

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT ALL ( - 34 ) - - 44 * MAX( ALL - + 73 ) + + + 96 + - 81 - - 78
----
-3153

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL ( - 34 ) - - 44 * MAX ( ALL - + 73 ) + + + 96 + - 81 - - 78
----
-3153

onlyif mysql # DIV for integer division: 
query I rowsort label-9727
SELECT ALL - 67 DIV - - 5
----
-13

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL - 67 / - - 5
----
-13

query I rowsort
SELECT ALL - - 32 * - 61 AS col2
----
-1952

onlyif mysql # aggregate syntax: 
query II rowsort label-9729
SELECT - COUNT( ALL 4 ) AS col1, 81
----
-1
81

skipif mysql # not compatible
query II rowsort label-9729
SELECT - COUNT ( ALL 4 ) AS col1, 81
----
-1
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9730
SELECT ALL + CAST( NULL AS SIGNED ) / 11 - 20 * + 5 + + + NULLIF ( - - MIN( ALL 10 ), - 20 ) + - 93 * 55, 80 AS col2
----
NULL
80

skipif mysql # not compatible
query II rowsort label-9730
SELECT ALL + CAST ( NULL AS INTEGER ) / 11 - 20 * + 5 + + + NULLIF ( - - MIN ( ALL 10 ), - 20 ) + - 93 * 55, 80 AS col2
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT 84 / CASE - 35 WHEN 37 + - 32 THEN - + COUNT( * ) + + 15 WHEN 3 * - 5 * - 11 * ( - 15 ) THEN - MIN( DISTINCT + - ( 74 ) ) WHEN - 86 * + - COALESCE ( - ( NULLIF ( + + 10, MAX( + 66 ) ) ), - + 47 * - 63 ) THEN - COUNT( ALL + - 33 ) * + + ( + 52 ) * + 63 * 51 + 65 * - ( + 53 ) ELSE NULL END + + NULLIF ( + COUNT( * ), CASE - 32 WHEN 50 / 72 THEN 19 * - 81 ELSE 25 + 12 * 14 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT 84 / CASE - 35 WHEN 37 + - 32 THEN - + COUNT ( * ) + + 15 WHEN 3 * - 5 * - 11 * ( - 15 ) THEN - MIN ( DISTINCT + - ( 74 ) ) WHEN - 86 * + - COALESCE ( - ( NULLIF ( + + 10, MAX ( + 66 ) ) ), - + 47 * - 63 ) THEN - COUNT ( ALL + - 33 ) * + + ( + 52 ) * + 63 * 51 + 65 * - ( + 53 ) ELSE NULL END + + NULLIF ( + COUNT ( * ), CASE - 32 WHEN 50 / 72 THEN 19 * - 81 ELSE 25 + 12 * 14 END ) AS col0
----
NULL

query I rowsort
SELECT 71 * + - 81 * - 5
----
28755

query I rowsort
SELECT - 35 * 85 + - - COALESCE ( 65, - 72 ) * - 98
----
-9345

query I rowsort
SELECT ALL - + 52 * - 23 * + + ( - 59 ) AS col0
----
-70564

query I rowsort
SELECT DISTINCT - + ( 55 ) col1
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9736
SELECT ALL - - ( CASE - CAST( - 29 AS SIGNED ) WHEN - 65 THEN NULL WHEN + - 63 THEN 98 WHEN + - 97 / + - CAST( NULL AS SIGNED ) - - + 61 THEN NULL END ) col2, - 99
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-9736
SELECT ALL - - ( CASE - CAST ( - 29 AS INTEGER ) WHEN - 65 THEN NULL WHEN + - 63 THEN 98 WHEN + - 97 / + - CAST ( NULL AS INTEGER ) - - + 61 THEN NULL END ) col2, - 99
----
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT DISTINCT - 82 * + NULLIF ( + 61, - - 34 / + + COUNT( * ) * - + 82 + - - 90 ) * 44 + + 93 + + 50 - - - 76 * 42 + + 42 + 18 - COUNT( * ) * + + 16
----
-223093

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT - 82 * + NULLIF ( + 61, - - 34 / + + COUNT ( * ) * - + 82 + - - 90 ) * 44 + + 93 + + 50 - - - 76 * 42 + + 42 + 18 - COUNT ( * ) * + + 16
----
-223093

query I rowsort
SELECT + + 5 * + 54 - - 67
----
337

query I rowsort
SELECT - 1 * + + 90 + - + 38
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ALL + SUM( 28 ) * 56 AS col2
----
1568

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL + SUM ( 28 ) * 56 AS col2
----
1568

query I rowsort
SELECT DISTINCT - 21 + + 89 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT ( + 91 ) + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-9742
SELECT ( + 91 ) + COUNT ( * )
----
92

query II rowsort
SELECT 1 * ( - 46 ) AS col1, + 44
----
-46
44

query I rowsort
SELECT ALL - 83 + - - 81 + ( - 1 ) AS col2
----
-3

query II rowsort
SELECT 46 * 77 * - ( 96 ) + + 50, ( - + 51 ) AS col2
----
-339982
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9746
SELECT 82 + + 40 DIV - - COUNT( * ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-9746
SELECT 82 + + 40 / - - COUNT ( * ) AS col1
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9747
SELECT ALL - AVG ( + - CASE - - ( 4 ) WHEN + + CAST( + 66 AS SIGNED ) - - 3 THEN - + 68 END ) / - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL - AVG ( + - CASE - - ( 4 ) WHEN + + CAST ( + 66 AS INTEGER ) - - 3 THEN - + 68 END ) / - + 11
----
NULL

query I rowsort
SELECT 91 + + 46 AS col2
----
137

query II rowsort
SELECT 20, + 36 AS col1
----
20
36

query I rowsort
SELECT 7 + - - 37 AS col1
----
44

query I rowsort
SELECT 17 + 89 * + 67 AS col1
----
5980

onlyif mysql # aggregate syntax: 
query II rowsort label-9752
SELECT ALL 0 AS col1, MIN( + 8 ) AS col1
----
0
8

skipif mysql # not compatible
query II rowsort label-9752
SELECT ALL 0 AS col1, MIN ( + 8 ) AS col1
----
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT DISTINCT + COUNT( * ) + - 90
----
-89

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT + COUNT ( * ) + - 90
----
-89

query I rowsort
SELECT ALL - 84 + 42 AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9755
SELECT COUNT( * ) + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * - 38 * + 53 + - 19 AS col0, 73 - COUNT( * ) AS col1
----
-18
72

skipif mysql # not compatible
query II rowsort label-9755
SELECT COUNT ( * ) + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - 38 * + 53 + - 19 AS col0, 73 - COUNT ( * ) AS col1
----
-18
72

query I rowsort
SELECT ALL + 20 + - 56 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-9757
SELECT DISTINCT COUNT( * ) AS col2, 80
----
1
80

skipif mysql # not compatible
query II rowsort label-9757
SELECT DISTINCT COUNT ( * ) AS col2, 80
----
1
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9758
SELECT 16 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT 16 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 18 AS col2, + 83 AS col0
----
18
83

query I rowsort
SELECT ALL - ( + 58 ) col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9761
SELECT DISTINCT + 21 * + 57 - - ( + COUNT( * ) ) + - NULLIF ( + - COALESCE ( + + 73, + NULLIF ( COUNT( * ), + + 71 * - 42 ) * CAST( + 22 AS SIGNED ) + - + NULLIF ( + + ( - CASE 46 WHEN + COUNT( * ) THEN NULL ELSE + + 98 + CAST( + 28 AS SIGNED ) END ), - 53 * - 38 + + 48 - - - 95 / COUNT( * ) - - + 82 * - - 92 * + - AVG ( DISTINCT 48 ) + ( + 37 + 76 ) * AVG ( + 16 + 13 / + 28 ) ) - 60 ), + CASE NULLIF ( - 17, 99 * + 34 + - 96 / ( + CAST( NULL AS SIGNED ) ) ) WHEN COUNT( * ) + 44 THEN NULL WHEN 60 + COUNT( * ) THEN NULL ELSE COALESCE ( - COUNT( * ), + COALESCE ( - ( + COALESCE ( 22, + CAST( COUNT( * ) AS SIGNED ) - + 10 * 93 ) ), - 85 + 16 * + CASE 94 * - 11 + + COUNT( DISTINCT 48 ) WHEN + 93 / - 31 THEN 55 WHEN SUM( + 5 ) THEN 40 END, - 76 - 96 * + 47 ), 97 - 23, 66 - + 73 ) * 5 - 73 END ) AS col0
----
1271

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT + 21 * + 57 - - ( + COUNT ( * ) ) + - NULLIF ( + - COALESCE ( + + 73, + NULLIF ( COUNT ( * ), + + 71 * - 42 ) * CAST ( + 22 AS INTEGER ) + - + NULLIF ( + + ( - CASE 46 WHEN + COUNT ( * ) THEN NULL ELSE + + 98 + CAST ( + 28 AS INTEGER ) END ), - 53 * - 38 + + 48 - - - 95 / COUNT ( * ) - - + 82 * - - 92 * + - AVG ( DISTINCT 48 ) + ( + 37 + 76 ) * AVG ( + 16 + 13 / + 28 ) ) - 60 ), + CASE NULLIF ( - 17, 99 * + 34 + - 96 / ( + CAST ( NULL AS INTEGER ) ) ) WHEN COUNT ( * ) + 44 THEN NULL WHEN 60 + COUNT ( * ) THEN NULL ELSE COALESCE ( - COUNT ( * ), + COALESCE ( - ( + COALESCE ( 22, + CAST ( COUNT ( * ) AS INTEGER ) - + 10 * 93 ) ), - 85 + 16 * + CASE 94 * - 11 + + COUNT ( DISTINCT 48 ) WHEN + 93 / - 31 THEN 55 WHEN SUM ( + 5 ) THEN 40 END, - 76 - 96 * + 47 ), 97 - 23, 66 - + 73 ) * 5 - 73 END ) AS col0
----
1271

query I rowsort
SELECT - NULLIF ( + 11, - - 12 ) * 39
----
-429

query I rowsort
SELECT DISTINCT - ( + 72 ) * + 94
----
-6768

onlyif mysql # DIV for integer division: 
query I rowsort label-9764
SELECT - 92 DIV + 16 + - + 51 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-9764
SELECT - 92 / + 16 + - + 51 AS col1
----
-56

query I rowsort
SELECT + 59 + 34 AS col0
----
93

query I rowsort
SELECT 29 * 87 AS col2
----
2523

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT DISTINCT COUNT( * ) * + 6 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT COUNT ( * ) * + 6 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT DISTINCT 58 * 18 + MAX( DISTINCT - + COALESCE ( 93, + ( - 12 ) ) ) AS col0
----
951

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT 58 * 18 + MAX ( DISTINCT - + COALESCE ( 93, + ( - 12 ) ) ) AS col0
----
951

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT DISTINCT + 58 * SUM( ALL 17 ) - - ( + 15 ) + - 91
----
910

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT + 58 * SUM ( ALL 17 ) - - ( + 15 ) + - 91
----
910

query I rowsort
SELECT ALL 92 + 42 * + 92 * 15 * ( 6 )
----
347852

query I rowsort
SELECT + 97 * + 1 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT SUM( DISTINCT - + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-9772
SELECT SUM ( DISTINCT - + 63 )
----
-63

query I rowsort
SELECT ALL + COALESCE ( - + 48, - 35 * 23 ) + - 43 AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9774
SELECT DISTINCT + 33 AS col0, CAST( + 68 AS SIGNED ) * - 87 + + - 26 - - 57
----
33
-5885

skipif mysql # not compatible
query II rowsort label-9774
SELECT DISTINCT + 33 AS col0, CAST ( + 68 AS INTEGER ) * - 87 + + - 26 - - 57
----
33
-5885

query I rowsort
SELECT + 67 * - 11
----
-737

query I rowsort
SELECT ALL COALESCE ( - - 2, - 26 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT ALL COUNT( * ) - + 45
----
-44

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL COUNT ( * ) - + 45
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT + NULLIF ( 57, + 97 + NULLIF ( - ( - - NULLIF ( 22, 69 ) ), + 10 ) + + 49 + - 60 ) * + 44 + - 97 * - 10 * - 14 / - CAST( NULL AS SIGNED ) + 24 + + 92 + 70 * - - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9778
SELECT + NULLIF ( 57, + 97 + NULLIF ( - ( - - NULLIF ( 22, 69 ) ), + 10 ) + + 49 + - 60 ) * + 44 + - 97 * - 10 * - 14 / - CAST ( NULL AS INTEGER ) + 24 + + 92 + 70 * - - 24 AS col1
----
NULL

query II rowsort
SELECT 22, + 67 AS col0
----
22
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT DISTINCT + NULLIF ( 94, - NULLIF ( + + 67, COUNT( * ) + MAX( ( + + 49 ) ) ) * - 86 ) - 53
----
41

skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT + NULLIF ( 94, - NULLIF ( + + 67, COUNT ( * ) + MAX ( ( + + 49 ) ) ) * - 86 ) - 53
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT ALL COUNT( ALL - - 73 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL COUNT ( ALL - - 73 ) AS col2
----
1

query III rowsort
SELECT - 56, - 35 * + 10 * 22 AS col0, + + ( 21 ) + 7 AS col0
----
-56
-7700
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9783
SELECT - MIN( DISTINCT - 8 ) * 8 * 56 AS col1, + 82
----
3584
82

skipif mysql # not compatible
query II rowsort label-9783
SELECT - MIN ( DISTINCT - 8 ) * 8 * 56 AS col1, + 82
----
3584
82

query I rowsort
SELECT - 1 * + 63
----
-63

query I rowsort
SELECT DISTINCT + 7 * ( + 51 ) AS col1
----
357

query I rowsort
SELECT ALL - ( + 41 ) - + - 0 - 39 * - 30 * - 60 col0
----
-70241

onlyif mysql # aggregate syntax: 
query II rowsort label-9787
SELECT ALL COUNT( * ) col0, 93 AS col2
----
1
93

skipif mysql # not compatible
query II rowsort label-9787
SELECT ALL COUNT ( * ) col0, 93 AS col2
----
1
93

query I rowsort
SELECT ALL + 89 * - 43 AS col0
----
-3827

query I rowsort
SELECT DISTINCT + - 23 * - - 5 + - 27
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9790
SELECT ALL 8, - CAST( + CAST( + MAX( ALL - 4 ) AS SIGNED ) AS SIGNED ) AS col1
----
8
4

skipif mysql # not compatible
query II rowsort label-9790
SELECT ALL 8, - CAST ( + CAST ( + MAX ( ALL - 4 ) AS INTEGER ) AS INTEGER ) AS col1
----
8
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9791
SELECT ALL + COUNT( * ) * - 56 DIV + 94 + + 93, 93
----
93
93

skipif mysql # not compatible
query II rowsort label-9791
SELECT ALL + COUNT ( * ) * - 56 / + 94 + + 93, 93
----
93
93

query II rowsort
SELECT + 69 col2, 56
----
69
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT - CAST( NULL AS SIGNED ) + + 54 * + 76 + - - 54 + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT - CAST ( NULL AS INTEGER ) + + 54 * + 76 + - - 54 + - 52
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9794
SELECT ALL + 80 col0, + COUNT( * ) + 28 * + 94 AS col0, - 59 col1
----
80
2633
-59

skipif mysql # not compatible
query III rowsort label-9794
SELECT ALL + 80 col0, + COUNT ( * ) + 28 * + 94 AS col0, - 59 col1
----
80
2633
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT + CASE + 68 WHEN + 71 / - + 68 + 39 * + - COUNT( * ) THEN NULL WHEN - 4 THEN + 84 * + COUNT( * ) + - 68 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT + CASE + 68 WHEN + 71 / - + 68 + 39 * + - COUNT ( * ) THEN NULL WHEN - 4 THEN + 84 * + COUNT ( * ) + - 68 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT - + 68 DIV + - 84 * - 18
----
0

skipif mysql # not compatible
query I rowsort label-9796
SELECT - + 68 / + - 84 * - 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT - + COUNT( * ) + - - NULLIF ( + - 68, - CASE - 23 WHEN ( 4 ) * + 1 - - 41 THEN 50 * - 75 + + - ( - - 63 ) WHEN + 13 THEN NULL ELSE NULL END * + ( - 86 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-9797
SELECT - + COUNT ( * ) + - - NULLIF ( + - 68, - CASE - 23 WHEN ( 4 ) * + 1 - - 41 THEN 50 * - 75 + + - ( - - 63 ) WHEN + 13 THEN NULL ELSE NULL END * + ( - 86 ) )
----
-69

query I rowsort
SELECT - - 93 * + + 16 AS col0
----
1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9799
SELECT ALL 69 / NULLIF ( CASE AVG ( 2 ) WHEN - NULLIF ( - + 81, 4 + - COUNT( * ) / + 13 + + + COUNT( * ) ) THEN ( + 17 ) WHEN ( 94 ) THEN 45 - CASE - - 23 WHEN - + CASE + NULLIF ( ( - 79 ), - + COUNT( - + 7 ) + COUNT( * ) ) WHEN + - COUNT( * ) + 77 * 65 + + 53 * - + CAST( NULL AS SIGNED ) + + - NULLIF ( COUNT( * ), - ( + COUNT( * ) ) * SUM( ALL 27 ) + - 95 ) THEN + 45 END THEN COALESCE ( - 79, + COUNT( * ) ) END ELSE NULL END, 79 + + 50 ) + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL 69 / NULLIF ( CASE AVG ( 2 ) WHEN - NULLIF ( - + 81, 4 + - COUNT ( * ) / + 13 + + + COUNT ( * ) ) THEN ( + 17 ) WHEN ( 94 ) THEN 45 - CASE - - 23 WHEN - + CASE + NULLIF ( ( - 79 ), - + COUNT ( - + 7 ) + COUNT ( * ) ) WHEN + - COUNT ( * ) + 77 * 65 + + 53 * - + CAST ( NULL AS INTEGER ) + + - NULLIF ( COUNT ( * ), - ( + COUNT ( * ) ) * SUM ( ALL 27 ) + - 95 ) THEN + 45 END THEN COALESCE ( - 79, + COUNT ( * ) ) END ELSE NULL END, 79 + + 50 ) + 23 AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 87, - - 99 ) col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9801
SELECT ALL + 90 * - 98 * + CAST( + + 73 AS SIGNED ) * - - COUNT( * ) + - 16 col0
----
-643876

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL + 90 * - 98 * + CAST ( + + 73 AS INTEGER ) * - - COUNT ( * ) + - 16 col0
----
-643876

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9802
SELECT DISTINCT + COALESCE ( + ( 77 ), NULLIF ( COUNT( * ), + 52 ) DIV + + SUM( DISTINCT + 78 ) * + - MAX( ALL + 18 ) + + 1 + 15 * - 13, 16 ) AS col1, - 92 AS col1
----
77
-92

skipif mysql # not compatible
query II rowsort label-9802
SELECT DISTINCT + COALESCE ( + ( 77 ), NULLIF ( COUNT ( * ), + 52 ) / + + SUM ( DISTINCT + 78 ) * + - MAX ( ALL + 18 ) + + 1 + 15 * - 13, 16 ) AS col1, - 92 AS col1
----
77
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT + 4 * + + MAX( - 94 ) AS col1
----
-376

skipif mysql # not compatible
query I rowsort label-9803
SELECT + 4 * + + MAX ( - 94 ) AS col1
----
-376

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ( - - MAX( - 69 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-9804
SELECT ( - - MAX ( - 69 ) )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9805
SELECT DISTINCT - 38 * 39 + - + CAST( - 6 AS SIGNED ) + 85 + + COUNT( * ) AS col0
----
-1390

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT - 38 * 39 + - + CAST ( - 6 AS INTEGER ) + 85 + + COUNT ( * ) AS col0
----
-1390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9806
SELECT ALL + 55 * - CAST( + - 29 AS SIGNED ) + + 52 AS col2
----
1647

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL + 55 * - CAST ( + - 29 AS INTEGER ) + + 52 AS col2
----
1647

query I rowsort
SELECT ALL + 56 * ( + 70 ) AS col2
----
3920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9808
SELECT CASE + CAST( 43 AS SIGNED ) WHEN + - COUNT( DISTINCT + 68 ) THEN - - ( NULLIF ( + 47, + 28 ) ) * + 24 * - NULLIF ( + 39, + 22 + ( - 60 ) * + 75 ) + 41 + - 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9808
SELECT CASE + CAST ( 43 AS INTEGER ) WHEN + - COUNT ( DISTINCT + 68 ) THEN - - ( NULLIF ( + 47, + 28 ) ) * + 24 * - NULLIF ( + 39, + 22 + ( - 60 ) * + 75 ) + 41 + - 93 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT ALL CAST( NULL AS SIGNED ) * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL CAST ( NULL AS INTEGER ) * 43
----
NULL

query I rowsort
SELECT CASE + 24 WHEN - 42 * + + NULLIF ( - 81, + 81 ) + - 12 THEN NULL ELSE + - 80 * 95 END AS col0
----
-7600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9811
SELECT + 66 * 70 * + + CAST( NULL AS SIGNED ) * COUNT( * ) + + 9 * COUNT( * ) + - CAST( - COUNT( - 72 ) AS DECIMAL ) + + + 81 * - ( - 51 ) * CAST( NULL AS SIGNED ) * 52 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT + 66 * 70 * + + CAST ( NULL AS INTEGER ) * COUNT ( * ) + + 9 * COUNT ( * ) + - CAST ( - COUNT ( - 72 ) AS REAL ) + + + 81 * - ( - 51 ) * CAST ( NULL AS INTEGER ) * 52 col1
----
NULL

query I rowsort
SELECT 20 * + 18 + 68 AS col0
----
428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9813
SELECT ALL CAST( - + 73 AS SIGNED ) * + COUNT( * ) + 39
----
-34

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL CAST ( - + 73 AS INTEGER ) * + COUNT ( * ) + 39
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT + 84 + + 93 * - ( 17 ) * - COALESCE ( SUM( + + 0 ), + - 45 * - - COALESCE ( - COUNT( * ), - MIN( - + 81 ) ) ) * + ( - 27 ) * + 53 + + 69 * + SUM( - 56 ) * 86 + 38 + - 62 * + + 14 - - - 40 * ( ( + 86 ) )
----
-336490

skipif mysql # not compatible
query I rowsort label-9814
SELECT + 84 + + 93 * - ( 17 ) * - COALESCE ( SUM ( + + 0 ), + - 45 * - - COALESCE ( - COUNT ( * ), - MIN ( - + 81 ) ) ) * + ( - 27 ) * + 53 + + 69 * + SUM ( - 56 ) * 86 + 38 + - 62 * + + 14 - - - 40 * ( ( + 86 ) )
----
-336490

onlyif mysql # DIV for integer division: 
query I rowsort label-9815
SELECT + 60 + 93 DIV - 24 + + + 71 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-9815
SELECT + 60 + 93 / - 24 + + + 71 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL + 13 * COUNT( * ) - - + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + 13 * COUNT ( * ) - - + COUNT ( * )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9817
SELECT + 78 * - 45 AS col0, 19 * + 46 * - - 41 / - 83 * - - MIN( ALL CASE - CAST( NULL AS SIGNED ) WHEN + + 58 THEN - 57 END ) AS col0
----
-3510
NULL

skipif mysql # not compatible
query II rowsort label-9817
SELECT + 78 * - 45 AS col0, 19 * + 46 * - - 41 / - 83 * - - MIN ( ALL CASE - CAST ( NULL AS INTEGER ) WHEN + + 58 THEN - 57 END ) AS col0
----
-3510
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT + 54 + - MIN( DISTINCT 42 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9818
SELECT + 54 + - MIN ( DISTINCT 42 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT + COUNT( * ) + 49
----
50

skipif mysql # not compatible
query I rowsort label-9819
SELECT + COUNT ( * ) + 49
----
50

query I rowsort
SELECT ALL ( 86 ) * + 58 + + + 99
----
5087

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9821
SELECT - 52 + 11 col0, - CASE - 44 WHEN - 5 + + 81 THEN NULL ELSE + 86 END * + 70 + - 61 DIV + 92 + + COUNT( 74 ) AS col0
----
-41
-6019

skipif mysql # not compatible
query II rowsort label-9821
SELECT - 52 + 11 col0, - CASE - 44 WHEN - 5 + + 81 THEN NULL ELSE + 86 END * + 70 + - 61 / + 92 + + COUNT ( 74 ) AS col0
----
-41
-6019

query I rowsort
SELECT DISTINCT COALESCE ( 10, + 92, - 82 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT ALL CAST( - - 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL CAST ( - - 15 AS INTEGER )
----
15

query II rowsort
SELECT ALL - - 58 + 52 AS col0, + 48
----
110
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9825
SELECT + CAST( + 9 AS SIGNED ) AS col1, - 52 * 53 DIV + 94
----
9
-29

skipif mysql # not compatible
query II rowsort label-9825
SELECT + CAST ( + 9 AS INTEGER ) AS col1, - 52 * 53 / + 94
----
9
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT - - COUNT( * ) + + + 8 - - 66 * + MIN( ALL + - 41 )
----
-2697

skipif mysql # not compatible
query I rowsort label-9826
SELECT - - COUNT ( * ) + + + 8 - - 66 * + MIN ( ALL + - 41 )
----
-2697

query II rowsort
SELECT - - 39 * + 10 AS col2, - 36
----
390
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT ALL + - 46 * + + COALESCE ( + 79, - 27 + + COUNT( * ), - 88 ) AS col0
----
-3634

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL + - 46 * + + COALESCE ( + 79, - 27 + + COUNT ( * ), - 88 ) AS col0
----
-3634

query I rowsort
SELECT ALL 10 + - 5 + - 44
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9830
SELECT ALL 15 + + + 51 + - + ( - - 33 ) + 23 + + 11 DIV - - COALESCE ( 83, - COUNT( * ) ) - - + 43 + - COUNT( * ) + - 57 * - - ( COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL 15 + + + 51 + - + ( - - 33 ) + 23 + + 11 / - - COALESCE ( 83, - COUNT ( * ) ) - - + 43 + - COUNT ( * ) + - 57 * - - ( COUNT ( * ) )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9831
SELECT DISTINCT + CAST( + 53 AS SIGNED ) * - 45
----
-2385

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT + CAST ( + 53 AS INTEGER ) * - 45
----
-2385

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT ALL - - COUNT( * ) + - 71 * + COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL - - COUNT ( * ) + - 71 * + COUNT ( * )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9833
SELECT ALL + - CAST( CASE 74 WHEN - + CASE ( + COUNT( * ) ) WHEN - + 86 THEN NULL ELSE - - 51 * + + CAST( NULL AS SIGNED ) END / 40 + + 8 - + 13 THEN NULL WHEN COALESCE ( - + 30, + + 61, + 57 * 38 ) + 30 + - 27 * 33 THEN COUNT( * ) END AS SIGNED ) + + ( - 94 ) - + 43 / 14 * + CAST( + 46 AS DECIMAL ) + - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL + - CAST ( CASE 74 WHEN - + CASE ( + COUNT ( * ) ) WHEN - + 86 THEN NULL ELSE - - 51 * + + CAST ( NULL AS INTEGER ) END / 40 + + 8 - + 13 THEN NULL WHEN COALESCE ( - + 30, + + 61, + 57 * 38 ) + 30 + - 27 * 33 THEN COUNT ( * ) END AS INTEGER ) + + ( - 94 ) - + 43 / 14 * + CAST ( + 46 AS REAL ) + - 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT - CASE - + 66 WHEN + - 50 THEN + 49 WHEN + MIN( ALL + 45 ) THEN NULL END * + - COUNT( DISTINCT - 8 ) * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT - CASE - + 66 WHEN + - 50 THEN + 49 WHEN + MIN ( ALL + 45 ) THEN NULL END * + - COUNT ( DISTINCT - 8 ) * - 83
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9835
SELECT - - CAST( + NULLIF ( + + ( + - 11 ), - - 86 ) AS SIGNED ) DIV 93 * - 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9835
SELECT - - CAST ( + NULLIF ( + + ( + - 11 ), - - 86 ) AS INTEGER ) / 93 * - 42 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT + COUNT( + - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-9836
SELECT + COUNT ( + - 84 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT + 33 * 90 * - + NULLIF ( SUM( DISTINCT - - NULLIF ( 89, + + 21 ) ), 6 * - - ( - MAX( ALL - - 15 ) ) + - + 22 ) + + 69 AS col2
----
-264261

skipif mysql # not compatible
query I rowsort label-9837
SELECT + 33 * 90 * - + NULLIF ( SUM ( DISTINCT - - NULLIF ( 89, + + 21 ) ), 6 * - - ( - MAX ( ALL - - 15 ) ) + - + 22 ) + + 69 AS col2
----
-264261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9838
SELECT + 34 * MIN( - + 72 ) + - CAST( + COUNT( * ) AS SIGNED )
----
-2449

skipif mysql # not compatible
query I rowsort label-9838
SELECT + 34 * MIN ( - + 72 ) + - CAST ( + COUNT ( * ) AS INTEGER )
----
-2449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9839
SELECT - 37 * + 92 - + 43 - + 39 * + + CAST( + + 38 AS SIGNED ) + COUNT( * ) DIV 13 AS col0
----
-4929

skipif mysql # not compatible
query I rowsort label-9839
SELECT - 37 * + 92 - + 43 - + 39 * + + CAST ( + + 38 AS INTEGER ) + COUNT ( * ) / 13 AS col0
----
-4929

query I rowsort
SELECT DISTINCT - + ( - 4 ) + + 69 AS col2
----
73

query I rowsort
SELECT ALL + CASE + 17 WHEN + - 50 / - 68 THEN - ( ( + ( + 13 ) ) ) * + + 75 / 9 END + - 90 * - + 10 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( + ( - 54 ) )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-9843
SELECT DISTINCT + 70 - COUNT( * ) + - + 92 AS col1, - ( - COUNT( * ) ) * - 39 + + 23 AS col0
----
-23
-16

skipif mysql # not compatible
query II rowsort label-9843
SELECT DISTINCT + 70 - COUNT ( * ) + - + 92 AS col1, - ( - COUNT ( * ) ) * - 39 + + 23 AS col0
----
-23
-16

query I rowsort
SELECT ALL + 52 - + 98
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-9845
SELECT 31 AS col2, 2 + COUNT( ALL - 52 ) AS col1
----
31
3

skipif mysql # not compatible
query II rowsort label-9845
SELECT 31 AS col2, 2 + COUNT ( ALL - 52 ) AS col1
----
31
3

query II rowsort
SELECT + 42, + 55 AS col1
----
42
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT COUNT( ALL 22 ) + + - 46 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-9847
SELECT COUNT ( ALL 22 ) + + - 46 AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9848
SELECT CAST( - 62 AS SIGNED ) * 55
----
-3410

skipif mysql # not compatible
query I rowsort label-9848
SELECT CAST ( - 62 AS INTEGER ) * 55
----
-3410

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9849
SELECT DISTINCT - 7 * - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT - 7 * - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9850
SELECT 45 DIV 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9850
SELECT 45 / 47 AS col0
----
0

query II rowsort
SELECT ALL 11 AS col2, - 4 AS col1
----
11
-4

query II rowsort
SELECT DISTINCT 75 AS col2, 54
----
75
54

query I rowsort
SELECT ALL + 23 + 81 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT 15 - - + MAX( - 81 )
----
-66

skipif mysql # not compatible
query I rowsort label-9854
SELECT 15 - - + MAX ( - 81 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT DISTINCT + COUNT( * ) + - + 32 + + + 44 + - 45 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT + COUNT ( * ) + - + 32 + + + 44 + - 45 AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9856
SELECT - + 38, - CAST( NULL AS SIGNED ) AS col1
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-9856
SELECT - + 38, - CAST ( NULL AS INTEGER ) AS col1
----
-38
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9857
SELECT DISTINCT + 40 + - - COUNT( * ) * + 52 AS col0, + COUNT( * ) * + - 9 DIV - - NULLIF ( - 32, + 6 - + 58 + ( + 61 ) DIV - NULLIF ( 49, + + 31 ) * + 6 + - 64 * + 41 * MAX( ALL - + 24 ) ) AS col1
----
92
0

skipif mysql # not compatible
query II rowsort label-9857
SELECT DISTINCT + 40 + - - COUNT ( * ) * + 52 AS col0, + COUNT ( * ) * + - 9 / - - NULLIF ( - 32, + 6 - + 58 + ( + 61 ) / - NULLIF ( 49, + + 31 ) * + 6 + - 64 * + 41 * MAX ( ALL - + 24 ) ) AS col1
----
92
0

query I rowsort
SELECT DISTINCT + 29 + + 49 AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9859
SELECT ALL - CAST( NULL AS SIGNED ) + - - 79 + + 30 + ( + + 10 ) + + ( 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 79 + + 30 + ( + + 10 ) + + ( 54 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9860
SELECT DISTINCT + 49 + + - 21 + - 51 * 69 * - - ( - + 93 ) AS col2, - ( - MIN( + 45 ) )
----
327295
45

skipif mysql # not compatible
query II rowsort label-9860
SELECT DISTINCT + 49 + + - 21 + - 51 * 69 * - - ( - + 93 ) AS col2, - ( - MIN ( + 45 ) )
----
327295
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT ( + - 84 ) * - NULLIF ( - COUNT( * ), - 77 ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-9861
SELECT ( + - 84 ) * - NULLIF ( - COUNT ( * ), - 77 ) col1
----
-84

query II rowsort
SELECT DISTINCT - 12 AS col2, - ( + 82 ) AS col0
----
-12
-82

query I rowsort
SELECT 55 + + 49 col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT - 2 - + ( + - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9864
SELECT - 2 - + ( + - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT + - COALESCE ( - COUNT( * ), + 16, 62 )
----
1

skipif mysql # not compatible
query I rowsort label-9865
SELECT + - COALESCE ( - COUNT ( * ), + 16, 62 )
----
1

query II rowsort
SELECT ALL - + 94 AS col0, 6 * - 29
----
-94
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9867
SELECT ALL - SUM( DISTINCT - + ( - CAST( NULL AS SIGNED ) ) ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL - SUM ( DISTINCT - + ( - CAST ( NULL AS INTEGER ) ) ) * 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT DISTINCT - COUNT( * ) * - 45 * - 72 AS col1
----
-3240

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT - COUNT ( * ) * - 45 * - 72 AS col1
----
-3240

query I rowsort
SELECT 36 * - 5 AS col1
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9870
SELECT ALL - 93 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL - 93 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 7 - 93 AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9872
SELECT 10 * - + 94 AS col1, 79 + - COUNT( * ) - + COUNT( * ) * - 52 * - COUNT( * ) DIV COUNT( * )
----
-940
26

skipif mysql # not compatible
query II rowsort label-9872
SELECT 10 * - + 94 AS col1, 79 + - COUNT ( * ) - + COUNT ( * ) * - 52 * - COUNT ( * ) / COUNT ( * )
----
-940
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT DISTINCT - MAX( DISTINCT + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT - MAX ( DISTINCT + 6 )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9874
SELECT DISTINCT - ( - 68 ) AS col1, - COUNT( * ) + 48 AS col0
----
68
47

skipif mysql # not compatible
query II rowsort label-9874
SELECT DISTINCT - ( - 68 ) AS col1, - COUNT ( * ) + 48 AS col0
----
68
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT 26 * - 69 * - 19 * MIN( + 44 )
----
1499784

skipif mysql # not compatible
query I rowsort label-9875
SELECT 26 * - 69 * - 19 * MIN ( + 44 )
----
1499784

query I rowsort
SELECT 51 - - 30
----
81

query I rowsort
SELECT ALL + 31 + 24 AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9878
SELECT 41 + + + 30 DIV 51 * + - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9878
SELECT 41 + + + 30 / 51 * + - COUNT ( * ) AS col2
----
41

query I rowsort
SELECT + 38 * - 25 - - + 7 * + 26 * - - 24 AS col1
----
3418

query I rowsort
SELECT 29 + - 78 * 80 + 89 * + + 49
----
-1850

query II rowsort
SELECT ALL - 61 * + 70 col2, 66 AS col1
----
-4270
66

query I rowsort
SELECT ALL + - ( - 36 ) + - - 12 + + - ( 81 )
----
-33

query I rowsort
SELECT ALL - 11 + + 16 + + 53 * + 72 * + 89
----
339629

query I rowsort
SELECT + 23 + - - 61
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT + 50 + + - 51 - + 46 + - 69 * - - MAX( 71 ) * 85 AS col0
----
-416462

skipif mysql # not compatible
query I rowsort label-9885
SELECT + 50 + + - 51 - + 46 + - 69 * - - MAX ( 71 ) * 85 AS col0
----
-416462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9886
SELECT + + ( - + CAST( + 98 AS SIGNED ) ) + + COUNT( * ) - - - CAST( NULL AS SIGNED ) * 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT + + ( - + CAST ( + 98 AS INTEGER ) ) + + COUNT ( * ) - - - CAST ( NULL AS INTEGER ) * 0 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT ALL + 84 * - CAST( NULL AS SIGNED ) + - + 45 * 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL + 84 * - CAST ( NULL AS INTEGER ) + - + 45 * 35 AS col0
----
NULL

query I rowsort
SELECT ALL + ( - 48 ) * + + 14
----
-672

query I rowsort
SELECT ALL + 35 - + + 91
----
-56

query I rowsort
SELECT + 15 * - - 14 col0
----
210

query I rowsort
SELECT ALL 27 * 16
----
432

query I rowsort
SELECT - 54 * + - 63 * - 34 + 48 AS col1
----
-115620

query I rowsort
SELECT + 67 - + ( + 66 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT COALESCE ( + 84, + CASE + 46 WHEN + 38 * + 91 + + + 41 THEN 13 ELSE NULL END * - - COUNT( * ) ) * + 97 - - MAX( + 5 ) + + 58 + - 66 AS col0
----
8145

skipif mysql # not compatible
query I rowsort label-9894
SELECT COALESCE ( + 84, + CASE + 46 WHEN + 38 * + 91 + + + 41 THEN 13 ELSE NULL END * - - COUNT ( * ) ) * + 97 - - MAX ( + 5 ) + + 58 + - 66 AS col0
----
8145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9895
SELECT DISTINCT + 87 col0, 69 + + 25 - CAST( - COUNT( * ) AS SIGNED ) + + + 81 AS col1
----
87
176

skipif mysql # not compatible
query II rowsort label-9895
SELECT DISTINCT + 87 col0, 69 + + 25 - CAST ( - COUNT ( * ) AS INTEGER ) + + + 81 AS col1
----
87
176

query I rowsort
SELECT + 37 * 45 * + 64 col1
----
106560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9897
SELECT ALL MAX( ALL - 90 ) * - - 86 + - - 86 + + COUNT( * ) + 58 * - 47 * CAST( - 29 AS SIGNED )
----
71401

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL MAX ( ALL - 90 ) * - - 86 + - - 86 + + COUNT ( * ) + 58 * - 47 * CAST ( - 29 AS INTEGER )
----
71401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9898
SELECT + 55 + + MIN( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT + 55 + + MIN ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + 15 * + + 17 + + 28 AS col2, - 26
----
283
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9900
SELECT + 1 DIV - 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9900
SELECT + 1 / - 25 AS col1
----
0

query I rowsort
SELECT + ( - - 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT DISTINCT 9 * - 78 + + COUNT( - + 60 ) - 39 + - ( - + 93 ) * + 1 AS col2
----
-647

skipif mysql # not compatible
query I rowsort label-9902
SELECT DISTINCT 9 * - 78 + + COUNT ( - + 60 ) - 39 + - ( - + 93 ) * + 1 AS col2
----
-647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9903
SELECT - COUNT( DISTINCT - 12 ) / - ( + 15 ) * 5 + CAST( NULL AS SIGNED ) + + + MIN( 25 ) * + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT - COUNT ( DISTINCT - 12 ) / - ( + 15 ) * 5 + CAST ( NULL AS INTEGER ) + + + MIN ( 25 ) * + 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL 83 * + ( - + SUM( DISTINCT 83 ) ) + + - 82 * - - 66
----
-12301

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL 83 * + ( - + SUM ( DISTINCT 83 ) ) + + - 82 * - - 66
----
-12301

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT - - COUNT( * ) * 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9905
SELECT - - COUNT ( * ) * 14 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT ALL + - 50 * 75 + + + COUNT( * ) * + - COUNT( * ) * 53
----
-3803

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL + - 50 * 75 + + + COUNT ( * ) * + - COUNT ( * ) * 53
----
-3803

query I rowsort
SELECT DISTINCT - + 83 * 63 + 87 + 79 AS col1
----
-5063

query I rowsort
SELECT ALL - 2 * 55 + + 58 + + 88 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT DISTINCT MIN( ALL - NULLIF ( - - 23, + 76 * + 10 ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT MIN ( ALL - NULLIF ( - - 23, + 76 * + 10 ) ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT - 73 - - MAX( ALL + - 9 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-9910
SELECT - 73 - - MAX ( ALL + - 9 ) AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9911
SELECT - + MIN( - + CAST( + 93 AS SIGNED ) ) - - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-9911
SELECT - + MIN ( - + CAST ( + 93 AS INTEGER ) ) - - COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9912
SELECT + + CASE + - 35 WHEN - + 15 THEN + - MIN( + 50 ) + + AVG ( 36 ) END * + - 37, + 32 AS col0
----
NULL
32

skipif mysql # not compatible
query II rowsort label-9912
SELECT + + CASE + - 35 WHEN - + 15 THEN + - MIN ( + 50 ) + + AVG ( 36 ) END * + - 37, + 32 AS col0
----
NULL
32

query I rowsort
SELECT ALL - - 34 * + 28
----
952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9914
SELECT ALL + + MAX( 76 ) * CAST( NULL AS SIGNED ) + - 72 + - - AVG ( - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL + + MAX ( 76 ) * CAST ( NULL AS INTEGER ) + - 72 + - - AVG ( - 68 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9915
SELECT ALL COUNT( * ) AS col2, + 72 AS col1
----
1
72

skipif mysql # not compatible
query II rowsort label-9915
SELECT ALL COUNT ( * ) AS col2, + 72 AS col1
----
1
72

onlyif mysql # aggregate syntax: 
query II rowsort label-9916
SELECT - 37 - NULLIF ( COUNT( DISTINCT + + 67 ), - 91 ) * + - 26 AS col0, 7 AS col1
----
-11
7

skipif mysql # not compatible
query II rowsort label-9916
SELECT - 37 - NULLIF ( COUNT ( DISTINCT + + 67 ), - 91 ) * + - 26 AS col0, 7 AS col1
----
-11
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9917
SELECT DISTINCT - CAST( + 97 AS SIGNED ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT - CAST ( + 97 AS INTEGER ) AS col0
----
-97

query I rowsort
SELECT + 50 - 25 * 79
----
-1925

query II rowsort
SELECT - 90 * + 13 + - 58 AS col0, - 94 * - + ( + 92 ) + + - 56 * + - 49 AS col2
----
-1228
11392

query I rowsort
SELECT ALL ( - + ( + + 67 ) ) AS col1
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9921
SELECT ALL ( - 99 ) DIV - 53
----
1

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL ( - 99 ) / - 53
----
1

query I rowsort
SELECT - 85 * 30 AS col2
----
-2550

query I rowsort
SELECT + 61 * + - 50
----
-3050

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL COUNT( - 86 ) * + 66 col2
----
66

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL COUNT ( - 86 ) * + 66 col2
----
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9925
SELECT DISTINCT CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) * - + 11
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9925
SELECT DISTINCT CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) * - + 11
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9926
SELECT CAST( - 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-9926
SELECT CAST ( - 23 AS INTEGER )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9927
SELECT ALL - 10 DIV 61 * - COUNT( * ) + - 44 + + 92 * + + COUNT( * ) * 61 + + 78 * 86
----
12276

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL - 10 / 61 * - COUNT ( * ) + - 44 + + 92 * + + COUNT ( * ) * 61 + + 78 * 86
----
12276

query I rowsort
SELECT + 95 + - - 51
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9929
SELECT CAST( + 83 AS SIGNED ) col1, + MIN( ALL 37 ) * 20 DIV - - 18 + - - 99 AS col0
----
83
140

skipif mysql # not compatible
query II rowsort label-9929
SELECT CAST ( + 83 AS INTEGER ) col1, + MIN ( ALL 37 ) * 20 / - - 18 + - - 99 AS col0
----
83
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT ALL 17 / - - 82 * 30 + + ( CASE - - COUNT( * ) WHEN - + 97 * + 61 * 72 + + 56 + 18 - - COUNT( * ) / 86 THEN - 73 WHEN - 25 THEN NULL END ) + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL 17 / - - 82 * 30 + + ( CASE - - COUNT ( * ) WHEN - + 97 * + 61 * 72 + + 56 + 18 - - COUNT ( * ) / 86 THEN - 73 WHEN - 25 THEN NULL END ) + 41
----
NULL

query I rowsort
SELECT + ( + - 92 ) * + 91 - - 30 * + 89 AS col0
----
-5702

query II rowsort
SELECT DISTINCT + 2 AS col0, 18 col0
----
2
18

query I rowsort
SELECT + - 78 * + - 28 AS col2
----
2184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9934
SELECT ALL + 9 - 72 - COUNT( * ) - - 21 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + 9 - 72 - COUNT ( * ) - - 21 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9935
SELECT - CAST( - MIN( - ( - 2 ) ) AS SIGNED ) * - 87 * - - 87 AS col1
----
-15138

skipif mysql # not compatible
query I rowsort label-9935
SELECT - CAST ( - MIN ( - ( - 2 ) ) AS INTEGER ) * - 87 * - - 87 AS col1
----
-15138

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT + 71 + - SUM( ALL + 4 )
----
67

skipif mysql # not compatible
query I rowsort label-9936
SELECT + 71 + - SUM ( ALL + 4 )
----
67

query I rowsort
SELECT ALL - NULLIF ( - - 28, 87 )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9938
SELECT ( - 70 ) + - - 4 * + 47 * - + 13 * + 82 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9938
SELECT ( - 70 ) + - - 4 * + 47 * - + 13 * + 82 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9939
SELECT ALL + + 19 DIV + COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL + + 19 / + COUNT ( * ) AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-9940
SELECT 38 DIV + 20 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9940
SELECT 38 / + 20 AS col1
----
1

query I rowsort
SELECT - - 61 * + 54 * + - 19 + - + 6 + + 96 + - 1 * 53 - + 14 + + - 82 AS col2
----
-62645

query I rowsort
SELECT 76 + 33
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9943
SELECT COUNT( * ) * - ( 60 ) DIV + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-9943
SELECT COUNT ( * ) * - ( 60 ) / + COUNT ( * )
----
-60

query I rowsort
SELECT 26 * - - 36
----
936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT DISTINCT + ( - 63 ) * + - CAST( 61 AS SIGNED ) - 89 AS col2
----
3754

skipif mysql # not compatible
query I rowsort label-9945
SELECT DISTINCT + ( - 63 ) * + - CAST ( 61 AS INTEGER ) - 89 AS col2
----
3754

query I rowsort
SELECT ALL 26 + + COALESCE ( + 22, + 51 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT DISTINCT + COUNT( - 4 ) + NULLIF ( - 31, - - 34 + + - 28 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT + COUNT ( - 4 ) + NULLIF ( - 31, - - 34 + + - 28 ) AS col0
----
-30

query I rowsort
SELECT ALL + 44 + + 38 * + 10 * + 30 + + - 9 AS col1
----
11435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9949
SELECT + 13 / - 86 + + CAST( NULL AS SIGNED ) * - 17 / MAX( ALL - 82 ) * - CAST( + + 7 AS SIGNED ) - - + NULLIF ( - - 26, 22 + 21 ) + + 6 * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9949
SELECT + 13 / - 86 + + CAST ( NULL AS INTEGER ) * - 17 / MAX ( ALL - 82 ) * - CAST ( + + 7 AS INTEGER ) - - + NULLIF ( - - 26, 22 + 21 ) + + 6 * + 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9950
SELECT + CAST( NULL AS DECIMAL ) * + 15 * - COUNT( * ) + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT + CAST ( NULL AS REAL ) * + 15 * - COUNT ( * ) + 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9951
SELECT ALL - COUNT( * ) + - COUNT( * ) - + + CASE 39 WHEN ( + 74 ) THEN - - 73 - - CASE - - 70 WHEN - 4 THEN - 77 - 75 WHEN + COUNT( * ) + + + 78 * - + COALESCE ( 28, - - 47, + COUNT( * ) * + + NULLIF ( 10, - 11 ) * - COUNT( * ) + + + COUNT( * ) - COUNT( * ) / - - 93 + ( - 10 ) + 46 + - 9 ) * - - 6 * 46 + COUNT( ALL CAST( NULL AS SIGNED ) ) + - + SUM( + 91 ) + + 19 * + 56 * - 4 THEN - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) * MAX( DISTINCT + 41 * 86 ) + + ( CASE 55 WHEN + ( ( 86 ) ) / 37 + 42 THEN NULL WHEN - 55 THEN - 7 / 39 END + 78 ) * CASE ( 10 ) / ( 47 + - 72 * 84 ) + NULLIF ( CAST( 48 AS SIGNED ), 5 * COUNT( * ) ) WHEN 67 * - 17 + + 25 THEN 36 + 43 WHEN - COUNT( * ) THEN NULL END THEN COUNT( * ) ELSE + 81 * - 88 END END + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL - COUNT ( * ) + - COUNT ( * ) - + + CASE 39 WHEN ( + 74 ) THEN - - 73 - - CASE - - 70 WHEN - 4 THEN - 77 - 75 WHEN + COUNT ( * ) + + + 78 * - + COALESCE ( 28, - - 47, + COUNT ( * ) * + + NULLIF ( 10, - 11 ) * - COUNT ( * ) + + + COUNT ( * ) - COUNT ( * ) / - - 93 + ( - 10 ) + 46 + - 9 ) * - - 6 * 46 + COUNT ( ALL CAST ( NULL AS INTEGER ) ) + - + SUM ( + 91 ) + + 19 * + 56 * - 4 THEN - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) * MAX ( DISTINCT + 41 * 86 ) + + ( CASE 55 WHEN + ( ( 86 ) ) / 37 + 42 THEN NULL WHEN - 55 THEN - 7 / 39 END + 78 ) * CASE ( 10 ) / ( 47 + - 72 * 84 ) + NULLIF ( CAST ( 48 AS INTEGER ), 5 * COUNT ( * ) ) WHEN 67 * - 17 + + 25 THEN 36 + 43 WHEN - COUNT ( * ) THEN NULL END THEN COUNT ( * ) ELSE + 81 * - 88 END END + + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL 60 + + - ( + COUNT( * ) ) - - + 50 * + + 34
----
1759

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL 60 + + - ( + COUNT ( * ) ) - - + 50 * + + 34
----
1759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT + 63 * CAST( NULL AS SIGNED ) * + 32 + + - 5 * - 43 * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT + 63 * CAST ( NULL AS INTEGER ) * + 32 + + - 5 * - 43 * + 76
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9954
SELECT DISTINCT 54 * - + 92 DIV - 91
----
54

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT 54 * - + 92 / - 91
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ALL + COUNT( * ) - - - 44 * - 54 col1
----
2377

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL + COUNT ( * ) - - - 44 * - 54 col1
----
2377

query I rowsort
SELECT 38 * 92
----
3496

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT - COUNT( * ) * NULLIF ( + CASE + 46 WHEN + - 83 THEN 84 END, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT - COUNT ( * ) * NULLIF ( + CASE + 46 WHEN + - 83 THEN 84 END, COUNT ( * ) )
----
NULL

query I rowsort
SELECT 27 + - 63
----
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9959
SELECT DISTINCT - + NULLIF ( + + 52, + - ( 74 ) / - + CAST( 51 AS DECIMAL ) )
----
-52

skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT - + NULLIF ( + + 52, + - ( 74 ) / - + CAST ( 51 AS REAL ) )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT DISTINCT 26 * 47 * + CAST( 12 AS SIGNED )
----
14664

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT 26 * 47 * + CAST ( 12 AS INTEGER )
----
14664

query I rowsort
SELECT ALL + - 67 * - - 2 AS col0
----
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9962
SELECT DISTINCT 84 DIV + ( + 99 ) + + + COUNT( DISTINCT 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT 84 / + ( + 99 ) + + + COUNT ( DISTINCT 95 ) AS col0
----
1

query I rowsort
SELECT NULLIF ( 53, + 57 - - - 80 ) * - 28 AS col2
----
-1484

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT - COUNT( 71 ) - + + 87 + - 3
----
-91

skipif mysql # not compatible
query I rowsort label-9964
SELECT - COUNT ( 71 ) - + + 87 + - 3
----
-91

query I rowsort
SELECT ALL - + 25 + 70
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT - 17 * - COUNT( * ) - - 49
----
66

skipif mysql # not compatible
query I rowsort label-9966
SELECT - 17 * - COUNT ( * ) - - 49
----
66

query II rowsort
SELECT ALL + 75 + + + ( - 31 ) AS col2, - 48
----
44
-48

query II rowsort
SELECT 1 AS col1, + 10 * - 6 AS col2
----
1
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-9969
SELECT ALL 3 + - 70 + + + 37 AS col1, + COUNT( * )
----
-30
1

skipif mysql # not compatible
query II rowsort label-9969
SELECT ALL 3 + - 70 + + + 37 AS col1, + COUNT ( * )
----
-30
1

query I rowsort
SELECT 45 - - + 28
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9971
SELECT ALL - 3 DIV - + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL - 3 / - + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT DISTINCT - COUNT( * ) + 31 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT - COUNT ( * ) + 31 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT - MAX( - - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-9973
SELECT - MAX ( - - 30 )
----
-30

query II rowsort
SELECT 25, - 74 * 69 AS col0
----
25
-5106

query II rowsort
SELECT - 37 AS col0, - 5
----
-37
-5

query I rowsort
SELECT 45 + 68
----
113

query I rowsort
SELECT 54 + 71
----
125

query I rowsort
SELECT 70 * - 30 col0
----
-2100

query I rowsort
SELECT ALL - 41 * - - 94 AS col2
----
-3854

onlyif mysql # DIV for integer division: 
query I rowsort label-9980
SELECT 76 DIV - 97 col2
----
0

skipif mysql # not compatible
query I rowsort label-9980
SELECT 76 / - 97 col2
----
0

query II rowsort
SELECT ALL - 50, 48 AS col2
----
-50
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT COALESCE ( + + MAX( 42 ), - 3 * + 4 + + COALESCE ( 0, + 81 ) + - 82 + - 32 )
----
42

skipif mysql # not compatible
query I rowsort label-9982
SELECT COALESCE ( + + MAX ( 42 ), - 3 * + 4 + + COALESCE ( 0, + 81 ) + - 82 + - 32 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL - NULLIF ( - 45, + ( - + MAX( 84 ) ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL - NULLIF ( - 45, + ( - + MAX ( 84 ) ) ) AS col2
----
45

query I rowsort
SELECT - 89 * + 20
----
-1780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9985
SELECT - 20 DIV + - COUNT( * ) - + 79 + + 26
----
-33

skipif mysql # not compatible
query I rowsort label-9985
SELECT - 20 / + - COUNT ( * ) - + 79 + + 26
----
-33

query II rowsort
SELECT DISTINCT + + 66 AS col1, 24 AS col2
----
66
24

query II rowsort
SELECT ALL + 9 AS col0, + 43 AS col2
----
9
43

query I rowsort
SELECT - 40 + 25 AS col0
----
-15

query I rowsort
SELECT + 14 * 53 AS col0
----
742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9990
SELECT ALL - CAST( NULL AS SIGNED ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL - CAST ( NULL AS INTEGER ) * + 52
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9991
SELECT DISTINCT - 90 DIV 84
----
-1

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT - 90 / 84
----
-1

query I rowsort
SELECT - + 60 * + 9 * + 7 - - 27 AS col0
----
-3753

query II rowsort
SELECT ALL + + 33 AS col1, + 28 AS col2
----
33
28

query I rowsort
SELECT + + 71 + - 28 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ALL + - COALESCE ( - COUNT( * ), - MIN( ALL - 65 ), - ( - 29 ) ) * 9
----
9

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL + - COALESCE ( - COUNT ( * ), - MIN ( ALL - 65 ), - ( - 29 ) ) * 9
----
9

query II rowsort
SELECT DISTINCT + + 77, - 50 * - 43 AS col1
----
77
2150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9997
SELECT 85 * - 73 + + COALESCE ( - COUNT( * ), + CASE + + 39 WHEN - - COALESCE ( - COUNT( * ), 45, - 80 + - + NULLIF ( - - 70, - MAX( - - 29 ) ) ) THEN NULL WHEN - COUNT( * ) * + 19 - - - CAST( NULL AS DECIMAL ) THEN + 85 * - 47 DIV + COUNT( 51 ) ELSE 92 END, 16, - 31 ) AS col2
----
-6206

skipif mysql # not compatible
query I rowsort label-9997
SELECT 85 * - 73 + + COALESCE ( - COUNT ( * ), + CASE + + 39 WHEN - - COALESCE ( - COUNT ( * ), 45, - 80 + - + NULLIF ( - - 70, - MAX ( - - 29 ) ) ) THEN NULL WHEN - COUNT ( * ) * + 19 - - - CAST ( NULL AS REAL ) THEN + 85 * - 47 / + COUNT ( 51 ) ELSE 92 END, 16, - 31 ) AS col2
----
-6206

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT DISTINCT + COUNT( ALL - 22 )
----
1

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT + COUNT ( ALL - 22 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT ALL + 74 * + 98 + - + 98 * + 13 + + ( + COUNT( * ) ) AS col0
----
5979

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL + 74 * + 98 + - + 98 * + 13 + + ( + COUNT ( * ) ) AS col0
----
5979

