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 II rowsort
SELECT ALL ( - + 97 ) AS col1, 65 + 77 AS col2
----
-97
142

query I rowsort
SELECT DISTINCT - 25 + 72 AS col0
----
47

query I rowsort
SELECT ALL 67 + + + 25
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3
SELECT DISTINCT + 55 * 70 DIV 95 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT + 55 * 70 / 95 AS col1
----
40

query I rowsort
SELECT + - 86 + - + ( + 25 )
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT DISTINCT + 75 DIV 38 + + 29
----
30

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT + 75 / 38 + + 29
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6
SELECT + 35 DIV + 50 + - 16 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-6
SELECT + 35 / + 50 + - 16 AS col2
----
-16

query I rowsort
SELECT ALL 26 * 21 * + + 4 + - + 42 + 96
----
2238

query I rowsort
SELECT ALL - 34 * + 58 + - 52 AS col2
----
-2024

query I rowsort
SELECT + 17 * - 53 AS col0
----
-901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-10
SELECT + 34 * 92 + + COUNT( * ) * - 80 col0, - 1 * + - CAST( NULL AS SIGNED )
----
3048
NULL

skipif mysql # not compatible
query II rowsort label-10
SELECT + 34 * 92 + + COUNT ( * ) * - 80 col0, - 1 * + - CAST ( NULL AS INTEGER )
----
3048
NULL

query I rowsort
SELECT DISTINCT - - 96 * 6 + - 31 AS col1
----
545

onlyif mysql # aggregate syntax: 
query II rowsort label-12
SELECT ALL + + 31 * 48 + + + COALESCE ( 47, + 79 ) + COUNT( * ) + + + 22 + 26 * + 87, + 51 + + 17 AS col1
----
3820
68

skipif mysql # not compatible
query II rowsort label-12
SELECT ALL + + 31 * 48 + + + COALESCE ( 47, + 79 ) + COUNT ( * ) + + + 22 + 26 * + 87, + 51 + + 17 AS col1
----
3820
68

query II rowsort
SELECT DISTINCT - 79 * 74, 42 AS col2
----
-5846
42

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL - - 12 * - SUM( DISTINCT + 59 ) - 79
----
-787

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL - - 12 * - SUM ( DISTINCT + 59 ) - 79
----
-787

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

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT COALESCE ( + NULLIF ( - 59, + NULLIF ( - 8, - CASE 17 WHEN + + 86 * - - 88 / - 24 THEN - 95 ELSE COUNT( * ) + + - 56 * - ( + 56 ) * - - 11 END / + 8 + + 11 - + 33 + - ( - + 32 ) * + - 5 ) + - 37 ), + 11 + + COUNT( DISTINCT 74 ) * - MAX( DISTINCT - 13 ) - + - 68 + + + 45 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-16
SELECT COALESCE ( + NULLIF ( - 59, + NULLIF ( - 8, - CASE 17 WHEN + + 86 * - - 88 / - 24 THEN - 95 ELSE COUNT ( * ) + + - 56 * - ( + 56 ) * - - 11 END / + 8 + + 11 - + 33 + - ( - + 32 ) * + - 5 ) + - 37 ), + 11 + + COUNT ( DISTINCT 74 ) * - MAX ( DISTINCT - 13 ) - + - 68 + + + 45 ) AS col0
----
-59

query I rowsort
SELECT - 92 * - - 12 * + - 76
----
83904

query I rowsort
SELECT - 51 - + 70
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT ALL + 87 * - CASE + - 27 WHEN + NULLIF ( + COUNT( * ), + - 47 * - 43 * + COUNT( * ) * + - 12 ) THEN NULL ELSE - MAX( DISTINCT - ( + 57 ) ) END AS col0
----
-4959

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL + 87 * - CASE + - 27 WHEN + NULLIF ( + COUNT ( * ), + - 47 * - 43 * + COUNT ( * ) * + - 12 ) THEN NULL ELSE - MAX ( DISTINCT - ( + 57 ) ) END AS col0
----
-4959

onlyif mysql # DIV for integer division: 
query I rowsort label-20
SELECT - 45 DIV + + 92
----
0

skipif mysql # not compatible
query I rowsort label-20
SELECT - 45 / + + 92
----
0

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

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

query I rowsort
SELECT ALL COALESCE ( - 85, 93 * - 97, - - 20 )
----
-85

query I rowsort
SELECT - 21 - ( 71 ) * - 76 AS col0
----
5375

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT ALL 33 * COUNT( * ) * + 76 * - 53
----
-132924

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL 33 * COUNT ( * ) * + 76 * - 53
----
-132924

query I rowsort
SELECT - 91 + + 69 * + 13
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT + 71 * + - 10 - 36 + - 99 + - NULLIF ( - COUNT( * ), 61 ) * - 95 - + 58
----
-998

skipif mysql # not compatible
query I rowsort label-26
SELECT + 71 * + - 10 - 36 + - 99 + - NULLIF ( - COUNT ( * ), 61 ) * - 95 - + 58
----
-998

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

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

query I rowsort
SELECT ALL - 25 * - + 82
----
2050

query II rowsort
SELECT - 25, - 2 - - 8 AS col1
----
-25
6

query I rowsort
SELECT + 91 * - + 38 AS col1
----
-3458

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL - 16 + - - AVG ( DISTINCT - + 45 ) + - + CASE + 88 WHEN + 75 THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL - 16 + - - AVG ( DISTINCT - + 45 ) + - + CASE + 88 WHEN + 75 THEN COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT - MAX( + 27 ) + + 43 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-32
SELECT - MAX ( + 27 ) + + 43 AS col1
----
16

query I rowsort
SELECT - 37 + + + ( - 49 ) AS col0
----
-86

query I rowsort
SELECT - 55 * + - 68 AS col1
----
3740

query I rowsort
SELECT ALL 67 + + 2 * 60
----
187

query I rowsort
SELECT ALL + 53 + ( - 18 + 4 * 37 ) * + 1 AS col2
----
183

query I rowsort
SELECT DISTINCT - 98 + 37
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT - COALESCE ( 16, - 48 - + COALESCE ( COUNT( * ), MIN( DISTINCT 91 ) ) ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-38
SELECT - COALESCE ( 16, - 48 - + COALESCE ( COUNT ( * ), MIN ( DISTINCT 91 ) ) ) AS col0
----
-16

query I rowsort
SELECT - 19 * + 79
----
-1501

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT ALL + 80 + - COUNT( DISTINCT + 57 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL + 80 + - COUNT ( DISTINCT + 57 ) AS col2
----
79

query I rowsort
SELECT - 13 - + 91
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT - SUM( ALL 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-42
SELECT - SUM ( ALL 41 ) AS col2
----
-41

query I rowsort
SELECT ALL 83 * - 45 AS col2
----
-3735

query I rowsort
SELECT - CASE AVG ( ( 35 ) ) WHEN + 51 + 8 THEN NULL WHEN 9 THEN NULL WHEN - 41 * 39 THEN 24 ELSE 45 END + 92 col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT + 95 * + SUM( DISTINCT + 13 )
----
1235

skipif mysql # not compatible
query I rowsort label-45
SELECT + 95 * + SUM ( DISTINCT + 13 )
----
1235

onlyif mysql # DIV for integer division: 
query I rowsort label-46
SELECT ( 75 ) DIV 15 + 16
----
21

skipif mysql # not compatible
query I rowsort label-46
SELECT ( 75 ) / 15 + 16
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-47
SELECT ALL + NULLIF ( - 66, + 97 - - 26 ) DIV + 96 + + 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL + NULLIF ( - 66, + 97 - - 26 ) / + 96 + + 12 AS col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT ALL + 66 DIV + 86 - 73 * + 20
----
-1460

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL + 66 / + 86 - 73 * + 20
----
-1460

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

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT COUNT ( * ) / 92 - - 17
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-50
SELECT + 87 DIV + 36 + 33 * 93
----
3071

skipif mysql # not compatible
query I rowsort label-50
SELECT + 87 / + 36 + 33 * 93
----
3071

query I rowsort
SELECT - 0 * - NULLIF ( + 52, - 94 / 62 ) + + 36 col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-52
SELECT ALL - 89 DIV - 57 - 94 col0
----
-93

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL - 89 / - 57 - 94 col0
----
-93

query I rowsort
SELECT + 99 + + 23 AS col1
----
122

query I rowsort
SELECT + 5 * - 1 AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT ALL ( - 36 ) DIV 32
----
-1

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL ( - 36 ) / 32
----
-1

query I rowsort
SELECT + 75 + 4
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-57
SELECT 92 * MAX( + 24 ) + - 98 DIV 88
----
2207

skipif mysql # not compatible
query I rowsort label-57
SELECT 92 * MAX ( + 24 ) + - 98 / 88
----
2207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-58
SELECT COUNT( * ) * + ( - CAST( NULLIF ( + CAST( + 30 AS SIGNED ), 76 * - 40 - 64 / + COUNT( * ) ) AS SIGNED ) ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-58
SELECT COUNT ( * ) * + ( - CAST ( NULLIF ( + CAST ( + 30 AS INTEGER ), 76 * - 40 - 64 / + COUNT ( * ) ) AS INTEGER ) ) AS col2
----
-30

query I rowsort
SELECT 28 * 71 + - 25
----
1963

query I rowsort
SELECT DISTINCT + 1 * 15 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT 47 + + CAST( + 69 - - AVG ( + 51 ) * 14 AS SIGNED ) AS col0
----
830

skipif mysql # not compatible
query I rowsort label-61
SELECT 47 + + CAST ( + 69 - - AVG ( + 51 ) * 14 AS INTEGER ) AS col0
----
830

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT NULLIF ( - ( + 94 ), - ( SUM( ALL 66 ) ) ) * - 50
----
4700

skipif mysql # not compatible
query I rowsort label-62
SELECT NULLIF ( - ( + 94 ), - ( SUM ( ALL 66 ) ) ) * - 50
----
4700

onlyif mysql # DIV for integer division: 
query I rowsort label-63
SELECT 57 + 60 DIV + 32 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-63
SELECT 57 + 60 / + 32 AS col2
----
58

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

skipif mysql # not compatible
query I rowsort label-64
SELECT + 5 * + 72 + - 72 / COUNT ( * )
----
288

query I rowsort
SELECT ALL + 84 + 39
----
123

query I rowsort
SELECT ALL - 29 + - 13 col1
----
-42

query I rowsort
SELECT 56 * 8 AS col2
----
448

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT ALL + 57 DIV - 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL + 57 / - 41 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-69
SELECT ALL CAST( 35 AS SIGNED ) + COUNT( DISTINCT CAST( + 3 AS SIGNED ) ) * + 33 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL CAST ( 35 AS INTEGER ) + COUNT ( DISTINCT CAST ( + 3 AS INTEGER ) ) * + 33 AS col2
----
68

query I rowsort
SELECT ALL - 93 + + 6 * 89
----
441

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

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

query I rowsort
SELECT ALL - 85 + 51 AS col0
----
-34

query I rowsort
SELECT DISTINCT - 39 + 47
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT - MAX( ALL 1 ) * 30 col1
----
-30

skipif mysql # not compatible
query I rowsort label-75
SELECT - MAX ( ALL 1 ) * 30 col1
----
-30

query I rowsort
SELECT ALL - NULLIF ( 90, 19 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-77
SELECT + CAST( - 97 AS SIGNED ) + COUNT( * ) * - 52 AS col2
----
-149

skipif mysql # not compatible
query I rowsort label-77
SELECT + CAST ( - 97 AS INTEGER ) + COUNT ( * ) * - 52 AS col2
----
-149

query I rowsort
SELECT ALL + - 59 - + 24
----
-83

query I rowsort
SELECT DISTINCT + - 42 * CASE - 85 WHEN 75 + 61 THEN 69 WHEN + 88 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 35 + + 12
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-81
SELECT - CAST( - 28 AS SIGNED ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-81
SELECT - CAST ( - 28 AS INTEGER ) AS col0
----
28

query I rowsort
SELECT 0 + - 85 * COALESCE ( 26, 24 * + 93 )
----
-2210

query I rowsort
SELECT - 6 * 80 AS col2
----
-480

query I rowsort
SELECT + 85 * ( - 64 )
----
-5440

query I rowsort
SELECT DISTINCT - 96 * - 87 AS col1
----
8352

query I rowsort
SELECT - 87 * - 24 + 70
----
2158

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-88
SELECT 18 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-88
SELECT 18 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-89
SELECT 22 + - 76 DIV + COUNT( ALL 14 * + 4 )
----
-54

skipif mysql # not compatible
query I rowsort label-89
SELECT 22 + - 76 / + COUNT ( ALL 14 * + 4 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT CASE + 70 WHEN + COUNT( * ) + - 2 THEN NULL WHEN ( + 18 ) THEN + 57 END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-90
SELECT CASE + 70 WHEN + COUNT ( * ) + - 2 THEN NULL WHEN ( + 18 ) THEN + 57 END * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + - 42 ) + 83 AS col1
----
41

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

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

query I rowsort
SELECT ALL 56 + + 53 * + 73
----
3925

onlyif mysql # DIV for integer division: 
query I rowsort label-94
SELECT DISTINCT 26 DIV - - 99 col0
----
0

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT 26 / - - 99 col0
----
0

query I rowsort
SELECT DISTINCT 8 * + - 14
----
-112

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-97
SELECT ALL 20 + - - 53 DIV - 14 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL 20 + - - 53 / - 14 AS col1
----
17

query I rowsort
SELECT ALL + 53 * 87 AS col0
----
4611

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-100
SELECT - NULLIF ( + 35, ( + 72 ) ) - + 16 * ( + CAST( + 12 AS SIGNED ) )
----
-227

skipif mysql # not compatible
query I rowsort label-100
SELECT - NULLIF ( + 35, ( + 72 ) ) - + 16 * ( + CAST ( + 12 AS INTEGER ) )
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT - CASE + 1 WHEN 35 / 83 THEN + COUNT( * ) WHEN - 59 + - 73 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-101
SELECT - CASE + 1 WHEN 35 / 83 THEN + COUNT ( * ) WHEN - 59 + - 73 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 18 * - 27
----
-486

query I rowsort
SELECT ALL + 74 * - + 52 * 58
----
-223184

query I rowsort
SELECT ALL ( - + CASE + 93 WHEN 53 * 24 THEN + 88 ELSE - 10 + - 70 END ) AS col1
----
80

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

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT - - 94 / ( + 97 ) * COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - 24 * + 42 * 66 + + 58 AS col1
----
-66470

query I rowsort
SELECT ALL - NULLIF ( + 94, + 30 ) * 85
----
-7990

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT DISTINCT - + 27 - - + 61 * - NULLIF ( + CASE 60 WHEN - 76 THEN - 67 - + ( 99 + NULLIF ( 29 + 65, NULLIF ( + ( ( - 81 ) ), - 41 * 94 ) ) ) ELSE - 55 + + 19 * 53 END + + 87 * + 74, + ( ( - COUNT( * ) ) ) )
----
-450817

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT - + 27 - - + 61 * - NULLIF ( + CASE 60 WHEN - 76 THEN - 67 - + ( 99 + NULLIF ( 29 + 65, NULLIF ( + ( ( - 81 ) ), - 41 * 94 ) ) ) ELSE - 55 + + 19 * 53 END + + 87 * + 74, + ( ( - COUNT ( * ) ) ) )
----
-450817

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT COUNT( * ) + + + 92 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-109
SELECT COUNT ( * ) + + + 92 AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-110
SELECT - CASE - - COALESCE ( - 45, MIN( 82 ) ) WHEN CAST( NULL AS SIGNED ) * - 99 + + 30 THEN + 53 * + 24 ELSE 31 * 1 END
----
-31

skipif mysql # not compatible
query I rowsort label-110
SELECT - CASE - - COALESCE ( - 45, MIN ( 82 ) ) WHEN CAST ( NULL AS INTEGER ) * - 99 + + 30 THEN + 53 * + 24 ELSE 31 * 1 END
----
-31

query I rowsort
SELECT 14 * - - 41 * 1 + + 92
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT ALL - + 52 * COUNT( * ) * - 35 - COUNT( * ) col0
----
1819

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL - + 52 * COUNT ( * ) * - 35 - COUNT ( * ) col0
----
1819

query I rowsort
SELECT + 99 + + - 41 AS col2
----
58

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

query I rowsort
SELECT ALL + 67 * - - 36 - - 47 * + 67 AS col1
----
5561

query I rowsort
SELECT - - 62 + - 90 * + 8 AS col2
----
-658

query I rowsort
SELECT ALL - 98 * + + NULLIF ( + 12, + ( 92 ) ) AS col0
----
-1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-118
SELECT DISTINCT + - COUNT( * ) * + CAST( + ( ( SUM( 88 ) ) ) AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT + - COUNT ( * ) * + CAST ( + ( ( SUM ( 88 ) ) ) AS INTEGER )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-119
SELECT - 41 DIV + 47 * - 92 - 95
----
-95

skipif mysql # not compatible
query I rowsort label-119
SELECT - 41 / + 47 * - 92 - 95
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT NULLIF ( + + COUNT( * ), - + 49 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-120
SELECT NULLIF ( + + COUNT ( * ), - + 49 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-121
SELECT ALL 35 * + - 65 + - - 0 DIV + 49
----
-2275

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL 35 * + - 65 + - - 0 / + 49
----
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT - 22 - - 93 + - CASE 72 WHEN - 67 * 19 + ( COUNT( * ) ) THEN + 64 + - 94 END + - 94 * + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-122
SELECT - 22 - - 93 + - CASE 72 WHEN - 67 * 19 + ( COUNT ( * ) ) THEN + 64 + - 94 END + - 94 * + 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT ALL + MAX( DISTINCT - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL + MAX ( DISTINCT - 0 ) AS col2
----
0

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

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

query I rowsort
SELECT - 92 * - - 3
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-126
SELECT COALESCE ( - CAST( NULL AS SIGNED ), + + 21 * - CAST( 18 AS SIGNED ) - - 59 )
----
-319

skipif mysql # not compatible
query I rowsort label-126
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), + + 21 * - CAST ( 18 AS INTEGER ) - - 59 )
----
-319

query I rowsort
SELECT + CASE - + 84 WHEN - 45 THEN 9 - 94 ELSE NULL END / + 27 + - 96
----
NULL

query I rowsort
SELECT ALL 72 * COALESCE ( + 17, - ( + 91 ), + 39 - - 9 ) * 42 + - 7
----
51401

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-131
SELECT + 50 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-131
SELECT + 50 / - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT ALL MIN( DISTINCT - 39 ) * - 48 + 42 * 95
----
5862

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL MIN ( DISTINCT - 39 ) * - 48 + 42 * 95
----
5862

query I rowsort
SELECT - 62 + - - 1 + - - 54 col0
----
-7

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

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

query I rowsort
SELECT ALL 74 * - 45 * + 11
----
-36630

query I rowsort
SELECT NULLIF ( + 55, + + ( 41 ) + + 62 * - 1 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) + - 4 - + 73 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) + - 4 - + 73 AS col0
----
-76

query II rowsort
SELECT ALL + 27 AS col1, + 32 AS col2
----
27
32

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT + SUM( DISTINCT + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-139
SELECT + SUM ( DISTINCT + 61 ) AS col2
----
61

query I rowsort
SELECT + 14 + - 49
----
-35

query I rowsort
SELECT ALL 15 * + ( - - 17 ) + + ( - 3 ) AS col0
----
252

query I rowsort
SELECT DISTINCT 84 * + ( 87 ) + 2 AS col2
----
7310

query I rowsort
SELECT ALL 33 * 80 + + 67 + 74 col0
----
2781

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-144
SELECT + ( - 89 ) + NULLIF ( - 99, 78 * 68 + + 37 ) + 71 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-144
SELECT + ( - 89 ) + NULLIF ( - 99, 78 * 68 + + 37 ) + 71 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-145
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-145
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 21
----
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT + SUM( ALL - - 80 ) + + 72
----
152

skipif mysql # not compatible
query I rowsort label-146
SELECT + SUM ( ALL - - 80 ) + + 72
----
152

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-147
SELECT - 96 * + - CASE - COUNT( * ) WHEN - 71 * 35 THEN NULL WHEN COUNT( * ) - - CAST( NULL AS DECIMAL ) / 86 THEN - 79 - - 73 ELSE 95 END
----
9120

skipif mysql # not compatible
query I rowsort label-147
SELECT - 96 * + - CASE - COUNT ( * ) WHEN - 71 * 35 THEN NULL WHEN COUNT ( * ) - - CAST ( NULL AS REAL ) / 86 THEN - 79 - - 73 ELSE 95 END
----
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT MAX( ALL + - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-148
SELECT MAX ( ALL + - 89 ) AS col1
----
-89

query I rowsort
SELECT - 58 * - - 27 + - - 91 + 90 * 28 AS col0
----
1045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-150
SELECT + 68 + - 8 * - + COUNT( * ) DIV - 49
----
68

skipif mysql # not compatible
query I rowsort label-150
SELECT + 68 + - 8 * - + COUNT ( * ) / - 49
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-151
SELECT + - 9 DIV - 21 col2
----
0

skipif mysql # not compatible
query I rowsort label-151
SELECT + - 9 / - 21 col2
----
0

query I rowsort
SELECT ALL 11 * - - 79
----
869

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

skipif mysql # not compatible
query I rowsort label-153
SELECT + COUNT ( ALL - ( 88 ) ) + + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT ALL 25 * - 6 AS col2
----
-150

query II rowsort
SELECT DISTINCT + 86, 34 AS col1
----
86
34

query I rowsort
SELECT ALL - 7 * - ( - 19 )
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT + + 26 + + CASE + COUNT( * ) WHEN 45 + - COUNT( * ) THEN NULL WHEN + AVG ( ALL - 59 ) THEN 59 ELSE + MIN( DISTINCT - 98 ) + + 47 * - 57 END * + 77 col1
----
-213803

skipif mysql # not compatible
query I rowsort label-157
SELECT + + 26 + + CASE + COUNT ( * ) WHEN 45 + - COUNT ( * ) THEN NULL WHEN + AVG ( ALL - 59 ) THEN 59 ELSE + MIN ( DISTINCT - 98 ) + + 47 * - 57 END * + 77 col1
----
-213803

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT + - 52 + 80 + NULLIF ( - 97, 7 - COUNT( * ) )
----
-69

skipif mysql # not compatible
query I rowsort label-158
SELECT + - 52 + 80 + NULLIF ( - 97, 7 - COUNT ( * ) )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT - - MAX( ALL - 69 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-159
SELECT - - MAX ( ALL - 69 ) AS col1
----
-69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT - + MAX( + 42 ) + - COUNT( * ) * 98 col0
----
-140

skipif mysql # not compatible
query I rowsort label-161
SELECT - + MAX ( + 42 ) + - COUNT ( * ) * 98 col0
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT MAX( DISTINCT + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-162
SELECT MAX ( DISTINCT + 50 )
----
50

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

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

query II rowsort
SELECT - + 16 AS col0, ( - 32 ) AS col0
----
-16
-32

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-166
SELECT ALL - + 50 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL - + 50 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 24 * 17 * 84 col2
----
34272

query I rowsort
SELECT ALL + 97 + 40 + - + 4 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT - COALESCE ( + MIN( DISTINCT - 5 ), 84 ) + - 62
----
-57

skipif mysql # not compatible
query I rowsort label-169
SELECT - COALESCE ( + MIN ( DISTINCT - 5 ), 84 ) + - 62
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-170
SELECT + 93 / + CAST( NULL AS SIGNED ) / + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-170
SELECT + 93 / + CAST ( NULL AS INTEGER ) / + 39
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-171
SELECT - 98 + + 25 DIV 23 * + 55 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-171
SELECT - 98 + + 25 / 23 * + 55 AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-172
SELECT DISTINCT 68 DIV - - 92 + - + 29 * + 8 * 93 col1
----
-21576

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT 68 / - - 92 + - + 29 * + 8 * 93 col1
----
-21576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-173
SELECT - 62 DIV - CASE 39 WHEN + COUNT( * ) + COUNT( * ) * 91 THEN NULL WHEN 21 THEN NULL ELSE 4 - 32 END
----
-2

skipif mysql # not compatible
query I rowsort label-173
SELECT - 62 / - CASE 39 WHEN + COUNT ( * ) + COUNT ( * ) * 91 THEN NULL WHEN 21 THEN NULL ELSE 4 - 32 END
----
-2

query I rowsort
SELECT DISTINCT + NULLIF ( + - ( + 91 ), 49 + + 1 ) AS col1
----
-91

query I rowsort
SELECT - 8 * + 6 * - 12 AS col1
----
576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-176
SELECT DISTINCT + COALESCE ( CASE + 26 WHEN 61 DIV - 54 THEN COUNT( * ) + - 57 ELSE - 5 - + COUNT( * ) DIV - 91 END, 74 + 90 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT + COALESCE ( CASE + 26 WHEN 61 / - 54 THEN COUNT ( * ) + - 57 ELSE - 5 - + COUNT ( * ) / - 91 END, 74 + 90 ) AS col2
----
-5

query I rowsort
SELECT ( + COALESCE ( + 51, - 47 ) )
----
51

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

query I rowsort
SELECT + 78 * - - 61
----
4758

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT + 16 * - ( - 64 ) * + - COALESCE ( NULLIF ( - COUNT( * ), 22 * 76 ), 83, - 93 ) * + 93 - + 75 AS col0
----
95157

skipif mysql # not compatible
query I rowsort label-180
SELECT + 16 * - ( - 64 ) * + - COALESCE ( NULLIF ( - COUNT ( * ), 22 * 76 ), 83, - 93 ) * + 93 - + 75 AS col0
----
95157

query I rowsort
SELECT - + ( - 48 ) * 92 * - 82
----
-362112

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT DISTINCT - COUNT( * ) * 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT - COUNT ( * ) * 28 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT ALL COALESCE ( + ( - + 39 ), - + COALESCE ( COUNT( * ), ( + 91 ) ) * + 83 )
----
-39

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL COALESCE ( + ( - + 39 ), - + COALESCE ( COUNT ( * ), ( + 91 ) ) * + 83 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT - + SUM( ALL + + 12 ) * + + 98 * - + 54
----
63504

skipif mysql # not compatible
query I rowsort label-184
SELECT - + SUM ( ALL + + 12 ) * + + 98 * - + 54
----
63504

query I rowsort
SELECT + 15 * + 47 + + + 65
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT + - 22 - + - 8 + 41 * + - COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-186
SELECT + - 22 - + - 8 + 41 * + - COUNT ( * ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT - 59 * - COUNT( * ) + - 70 * + 41 AS col0
----
-2811

skipif mysql # not compatible
query I rowsort label-187
SELECT - 59 * - COUNT ( * ) + - 70 * + 41 AS col0
----
-2811

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT 98 DIV - 21
----
-4

skipif mysql # not compatible
query I rowsort label-188
SELECT 98 / - 21
----
-4

query I rowsort
SELECT - 86 + 41
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL - + 81 + + + 13 - - COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL - + 81 + + + 13 - - COUNT ( * ) AS col1
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT ALL + ( - - 15 ) DIV 15
----
1

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL + ( - - 15 ) / 15
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-192
SELECT 77 DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-192
SELECT 77 / 97 AS col1
----
0

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

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

query I rowsort
SELECT 54 * + 76 - - - 5 AS col0
----
4099

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-195
SELECT ALL CAST( NULL AS SIGNED ) + 79 - - - NULLIF ( + + 20, + 60 ) - - NULLIF ( - 33, + COUNT( * ) * - 15 ) * - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL CAST ( NULL AS INTEGER ) + 79 - - - NULLIF ( + + 20, + 60 ) - - NULLIF ( - 33, + COUNT ( * ) * - 15 ) * - 46 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-196
SELECT COUNT( * ) + - CASE - 70 WHEN - COUNT( * ) THEN CASE 84 WHEN COALESCE ( 31, - 43 ) THEN 11 + - NULLIF ( 81, - 61 ) WHEN 77 THEN CASE + COUNT( * ) WHEN + 76 + + CASE 48 WHEN + 30 THEN - 29 * 47 - + 94 END THEN NULL WHEN - 7 + 42 THEN NULL WHEN 3 * - CAST( NULL AS SIGNED ) THEN 42 * + 98 ELSE + 99 END END * + 17 WHEN - 9 / 6 THEN - NULLIF ( 34, - 36 ) + 39 WHEN + 24 THEN NULL ELSE - NULLIF ( - 70, - 9 * 63 ) END
----
-69

skipif mysql # not compatible
query I rowsort label-196
SELECT COUNT ( * ) + - CASE - 70 WHEN - COUNT ( * ) THEN CASE 84 WHEN COALESCE ( 31, - 43 ) THEN 11 + - NULLIF ( 81, - 61 ) WHEN 77 THEN CASE + COUNT ( * ) WHEN + 76 + + CASE 48 WHEN + 30 THEN - 29 * 47 - + 94 END THEN NULL WHEN - 7 + 42 THEN NULL WHEN 3 * - CAST ( NULL AS INTEGER ) THEN 42 * + 98 ELSE + 99 END END * + 17 WHEN - 9 / 6 THEN - NULLIF ( 34, - 36 ) + 39 WHEN + 24 THEN NULL ELSE - NULLIF ( - 70, - 9 * 63 ) END
----
-69

query II rowsort
SELECT DISTINCT 46, 20 AS col0
----
46
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-198
SELECT ALL COALESCE ( 63, + - 94 DIV + - 26 * + - 85 ) + 22 DIV - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL COALESCE ( 63, + - 94 / + - 26 * + - 85 ) + 22 / - COUNT ( * )
----
41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT ALL - 66 - + MAX( DISTINCT 17 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - 66 - + MAX ( DISTINCT 17 ) AS col2
----
-83

query I rowsort
SELECT 72 - - - 56
----
16

query I rowsort
SELECT 82 + 91 AS col0
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT CASE 1 WHEN - 7 + - + 4 THEN 45 * + 91 ELSE NULL END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-203
SELECT CASE 1 WHEN - 7 + - + 4 THEN 45 * + 91 ELSE NULL END * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-204
SELECT DISTINCT 32 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT 32 / + 61
----
0

query I rowsort
SELECT ALL 91 - - 62
----
153

query I rowsort
SELECT ( - 94 ) * - 44 AS col2
----
4136

onlyif mysql # DIV for integer division: 
query I rowsort label-207
SELECT - 13 DIV - ( - - 86 ) + + 24
----
24

skipif mysql # not compatible
query I rowsort label-207
SELECT - 13 / - ( - - 86 ) + + 24
----
24

query I rowsort
SELECT ( 15 ) + 50 * + 0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL + SUM( + 70 ) * + + 3 - 32 AS col2
----
178

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL + SUM ( + 70 ) * + + 3 - 32 AS col2
----
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-210
SELECT DISTINCT 96 * CAST( 40 AS SIGNED ) AS col0
----
3840

skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT 96 * CAST ( 40 AS INTEGER ) AS col0
----
3840

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

skipif mysql # not compatible
query II rowsort label-211
SELECT 2, COUNT ( * ) AS col0
----
2
1

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

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

query I rowsort
SELECT ALL 31 * - 9
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT DISTINCT 28 * COALESCE ( COUNT( ALL + - 78 ), - 62 )
----
28

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT 28 * COALESCE ( COUNT ( ALL + - 78 ), - 62 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT ALL - CASE - - COUNT( * ) WHEN + 59 THEN + - 33 WHEN - COUNT( * ) + + 22 THEN NULL WHEN - 74 + + 57 THEN + 82 * 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL - CASE - - COUNT ( * ) WHEN + 59 THEN + - 33 WHEN - COUNT ( * ) + + 22 THEN NULL WHEN - 74 + + 57 THEN + 82 * 51 END
----
NULL

query I rowsort
SELECT 43 + - - 9 + - - 39 + 65
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-217
SELECT - - COUNT( * ) * + 59 + COUNT( * ) DIV 99 * + 88 + - 86 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-217
SELECT - - COUNT ( * ) * + 59 + COUNT ( * ) / 99 * + 88 + - 86 AS col0
----
-27

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

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

query I rowsort
SELECT 20 * - 19 AS col0
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT - + MAX( DISTINCT + 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-220
SELECT - + MAX ( DISTINCT + 78 ) AS col1
----
-78

query I rowsort
SELECT DISTINCT - + 29 + - - 90
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-222
SELECT 0 + + 57 * CAST( 59 AS SIGNED ) * 84 + 66 * + 73 AS col1
----
287310

skipif mysql # not compatible
query I rowsort label-222
SELECT 0 + + 57 * CAST ( 59 AS INTEGER ) * 84 + 66 * + 73 AS col1
----
287310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-223
SELECT DISTINCT + + COUNT( * ) * + - 55 * COALESCE ( + 86, - CAST( NULL AS SIGNED ) ) + 17 AS col1
----
-4713

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT + + COUNT ( * ) * + - 55 * COALESCE ( + 86, - CAST ( NULL AS INTEGER ) ) + 17 AS col1
----
-4713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-224
SELECT ALL + 19 * - - 93 * + - 13 * + - ( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL + 19 * - - 93 * + - 13 * + - ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT 69 + - - NULLIF ( + ( + + 79 ), + + 33 / + 78 )
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-226
SELECT ALL - 28 + - ( 87 ), 62 - + - COUNT( * ) + - COUNT( ALL 26 + 72 * 30 ) DIV - 43 AS col2
----
-115
63

skipif mysql # not compatible
query II rowsort label-226
SELECT ALL - 28 + - ( 87 ), 62 - + - COUNT ( * ) + - COUNT ( ALL 26 + 72 * 30 ) / - 43 AS col2
----
-115
63

query II rowsort
SELECT ALL 41, - 84 * - + 73 * - 0 AS col0
----
41
0

query I rowsort
SELECT 47 * - + 53 * - - 0
----
0

query I rowsort
SELECT ALL - ( + - 96 ) - - 67 AS col2
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-230
SELECT 50 AS col2, 76 - + + COUNT( * ) AS col2
----
50
75

skipif mysql # not compatible
query II rowsort label-230
SELECT 50 AS col2, 76 - + + COUNT ( * ) AS col2
----
50
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-231
SELECT DISTINCT - ( - COALESCE ( - 18, COUNT( ALL 61 ) * 92, + 23 DIV + 76 ) ) DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT - ( - COALESCE ( - 18, COUNT ( ALL 61 ) * 92, + 23 / + 76 ) ) / 44
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-232
SELECT ALL 27 * CASE WHEN NOT - CAST( NULL AS SIGNED ) IS NOT NULL THEN + 68 DIV 69 + - 81 + 63 * 42 WHEN NULL IN ( 68 * + COUNT( * ) - - 55 DIV + CASE CAST( NULL AS SIGNED ) DIV 77 WHEN 81 THEN + 37 WHEN 57 THEN 90 * 10 ELSE - 12 END ) THEN NULL ELSE - NULLIF ( 79, + 82 + 14 ) END AS col2
----
69255

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL 27 * CASE WHEN NOT - CAST ( NULL AS INTEGER ) IS NOT NULL THEN + 68 / 69 + - 81 + 63 * 42 WHEN NULL IN ( 68 * + COUNT ( * ) - - 55 / + CASE CAST ( NULL AS INTEGER ) / 77 WHEN 81 THEN + 37 WHEN 57 THEN 90 * 10 ELSE - 12 END ) THEN NULL ELSE - NULLIF ( 79, + 82 + 14 ) END AS col2
----
69255

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT MAX( ALL + 59 ) * + + 3
----
177

skipif mysql # not compatible
query I rowsort label-233
SELECT MAX ( ALL + 59 ) * + + 3
----
177

query II rowsort
SELECT - 5 AS col2, + 86 * - - 92 * - 33 AS col2
----
-5
-261096

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

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

query I rowsort
SELECT ALL 91 * + 41 AS col1
----
3731

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-237
SELECT + 19 AS col1, COUNT( * ) + - 32 DIV + - ( - + 45 ) + + COUNT( * ) AS col2
----
19
2

skipif mysql # not compatible
query II rowsort label-237
SELECT + 19 AS col1, COUNT ( * ) + - 32 / + - ( - + 45 ) + + COUNT ( * ) AS col2
----
19
2

onlyif mysql # aggregate syntax: 
query II rowsort label-238
SELECT DISTINCT - 43 col2, - COUNT( * ) * - - 50
----
-43
-50

skipif mysql # not compatible
query II rowsort label-238
SELECT DISTINCT - 43 col2, - COUNT ( * ) * - - 50
----
-43
-50

query II rowsort
SELECT DISTINCT - 14 AS col2, 17 + - + 14 + + - 30 col2
----
-14
-27

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

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

query I rowsort
SELECT ( 76 ) * - 40
----
-3040

onlyif mysql # DIV for integer division: 
query II rowsort label-242
SELECT ALL + 72 DIV 58, + 83 AS col1
----
1
83

skipif mysql # not compatible
query II rowsort label-242
SELECT ALL + 72 / 58, + 83 AS col1
----
1
83

query I rowsort
SELECT 68 + 63 AS col0
----
131

query II rowsort
SELECT - 2 AS col2, - 31
----
-2
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT COUNT( * ) * + 11 + - + 80
----
-69

skipif mysql # not compatible
query I rowsort label-245
SELECT COUNT ( * ) * + 11 + - + 80
----
-69

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

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

query I rowsort
SELECT ALL 58 * - + 33
----
-1914

query I rowsort
SELECT - - 32 * + - 25 - - 13 * - + 3 AS col2
----
-839

query I rowsort
SELECT ALL + ( 42 ) * + 65 + + 25 AS col0
----
2755

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-250
SELECT + + 22 col1, - 94 * + CAST( + 50 AS SIGNED ) + + 25 col2
----
22
-4675

skipif mysql # not compatible
query II rowsort label-250
SELECT + + 22 col1, - 94 * + CAST ( + 50 AS INTEGER ) + + 25 col2
----
22
-4675

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT DISTINCT COUNT( * ) + 26 + - - 17 * 44
----
775

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT COUNT ( * ) + 26 + - - 17 * 44
----
775

query I rowsort
SELECT ALL + 14 + - + 30 - + - 30
----
14

query I rowsort
SELECT + - ( 99 ) + + 19 + 38 * - 49 * 22 * 35 AS col0
----
-1433820

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT DISTINCT - 81 * - - 70 * - COUNT( * )
----
5670

skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT - 81 * - - 70 * - COUNT ( * )
----
5670

query I rowsort
SELECT ALL 47 * - 21
----
-987

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT ALL - - 43 + - 55 DIV + + 2 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL - - 43 + - 55 / + + 2 AS col0
----
16

query II rowsort
SELECT - 87 AS col1, 68 - - 95
----
-87
163

query I rowsort
SELECT + 47 * + 98 + 82 - + - 47
----
4735

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT - - NULLIF ( - 65, + MAX( 54 ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-259
SELECT - - NULLIF ( - 65, + MAX ( 54 ) ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT CASE + 1 WHEN + COUNT( DISTINCT - - 70 ) * 9 * - 10 * - 69 - COUNT( * ) THEN + ( - 39 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-260
SELECT CASE + 1 WHEN + COUNT ( DISTINCT - - 70 ) * 9 * - 10 * - 69 - COUNT ( * ) THEN + ( - 39 ) END
----
NULL

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

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

query I rowsort
SELECT ALL + + 38 * - COALESCE ( 56, 57 ) + 50 * + 30
----
-628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-263
SELECT DISTINCT NULLIF ( + 29, + ( - CAST( NULL AS SIGNED ) ) * - 17 + + + CASE + 46 WHEN 99 THEN NULL WHEN + 91 THEN 8 END * + COALESCE ( 65, 38 ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-263
SELECT DISTINCT NULLIF ( + 29, + ( - CAST ( NULL AS INTEGER ) ) * - 17 + + + CASE + 46 WHEN 99 THEN NULL WHEN + 91 THEN 8 END * + COALESCE ( 65, 38 ) ) AS col2
----
29

query II rowsort
SELECT ALL - 66 - - + 75, + 64 col2
----
9
64

query I rowsort
SELECT - ( CASE - 55 WHEN 79 * 60 / - 29 + - - 65 THEN NULL ELSE + 36 END ) - 87
----
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-266
SELECT - 4 + - 95 + - - COUNT( * ) + ( 74 ), - 26 AS col2
----
-24
-26

skipif mysql # not compatible
query II rowsort label-266
SELECT - 4 + - 95 + - - COUNT ( * ) + ( 74 ), - 26 AS col2
----
-24
-26

query I rowsort
SELECT ALL + 66 - - 62 + 0 * 58
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-268
SELECT - 80 + + COALESCE ( - 60, + 49 * + + 37 + + + 38 ) + - + 25 + COUNT( CAST( NULL AS SIGNED ) ) * 79 col2
----
-165

skipif mysql # not compatible
query I rowsort label-268
SELECT - 80 + + COALESCE ( - 60, + 49 * + + 37 + + + 38 ) + - + 25 + COUNT ( CAST ( NULL AS INTEGER ) ) * 79 col2
----
-165

query I rowsort
SELECT - 97 + + 28 * + 88
----
2367

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT - CASE 6 WHEN - COUNT( ALL - + 41 ) THEN 68 * 82 + 56 END + 32 / - CASE + 68 WHEN + 95 THEN AVG ( - 14 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-270
SELECT - CASE 6 WHEN - COUNT ( ALL - + 41 ) THEN 68 * 82 + 56 END + 32 / - CASE + 68 WHEN + 95 THEN AVG ( - 14 ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT + 38 * 88 AS col1, ( 1 ) AS col0
----
3344
1

onlyif mysql # DIV for integer division: 
query I rowsort label-272
SELECT ALL 44 DIV + + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL 44 / + + 57 AS col2
----
0

query I rowsort
SELECT - 50 + + ( - - 7 ) * + 32 AS col0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT ALL NULLIF ( - MAX( + - 3 ), + 69 * - 24 )
----
3

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL NULLIF ( - MAX ( + - 3 ), + 69 * - 24 )
----
3

query I rowsort
SELECT - ( + 8 ) + + 43 * 22 AS col0
----
938

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

query I rowsort
SELECT + 20 + - 80
----
-60

query I rowsort
SELECT DISTINCT 98 * + CASE - + 57 WHEN + ( + 62 ) * - 57 * - 85 THEN NULL WHEN + 35 THEN 34 END + 94 * 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT DISTINCT 46 * COUNT( * ) * - + 10 * 97
----
-44620

skipif mysql # not compatible
query I rowsort label-279
SELECT DISTINCT 46 * COUNT ( * ) * - + 10 * 97
----
-44620

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT 49 * + - 39 * - + COUNT( * ) + + 32
----
1943

skipif mysql # not compatible
query I rowsort label-280
SELECT 49 * + - 39 * - + COUNT ( * ) + + 32
----
1943

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-281
SELECT ALL - COUNT( * ) * 47 DIV - - 5 + MAX( DISTINCT 31 ) + + ( - + 53 ) + - 89 AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL - COUNT ( * ) * 47 / - - 5 + MAX ( DISTINCT 31 ) + + ( - + 53 ) + - 89 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT + SUM( - 28 ) * + - 54 * - 65
----
-98280

skipif mysql # not compatible
query I rowsort label-282
SELECT + SUM ( - 28 ) * + - 54 * - 65
----
-98280

query I rowsort
SELECT DISTINCT + + CASE 3 WHEN 70 + + + 4 THEN - + 97 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-284
SELECT + + 72 + + - 21 + - ( + 44 ) + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-284
SELECT + + 72 + + - 21 + - ( + 44 ) + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + + ( + 25 ) + + + 87 AS col2
----
112

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

skipif mysql # not compatible
query II rowsort label-286
SELECT - ( COUNT ( * ) ) AS col0, 91 col0
----
-1
91

query I rowsort
SELECT + - NULLIF ( + 72, - + 98 + - 97 + 38 * + + 52 ) AS col1
----
-72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-289
SELECT + - COUNT( * ) * - AVG ( - CAST( + 9 AS SIGNED ) ) + + - 16 + - 66 + + CAST( NULL AS SIGNED ) - + 37 / - 77 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-289
SELECT + - COUNT ( * ) * - AVG ( - CAST ( + 9 AS INTEGER ) ) + + - 16 + - 66 + + CAST ( NULL AS INTEGER ) - + 37 / - 77 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-290
SELECT + CASE - 99 WHEN ( 63 ) * - ( - + 81 ) + 79 THEN NULL WHEN + 15 + COALESCE ( COUNT( * ) + - COALESCE ( - 27, - 22 ), - 61, 0 - 60 ) * + 90 THEN - 46 * + NULLIF ( + COUNT( * ), AVG ( 93 ) * + CAST( 61 AS SIGNED ) ) END + - COUNT( * ) * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT + CASE - 99 WHEN ( 63 ) * - ( - + 81 ) + 79 THEN NULL WHEN + 15 + COALESCE ( COUNT ( * ) + - COALESCE ( - 27, - 22 ), - 61, 0 - 60 ) * + 90 THEN - 46 * + NULLIF ( + COUNT ( * ), AVG ( 93 ) * + CAST ( 61 AS INTEGER ) ) END + - COUNT ( * ) * 46
----
NULL

query II rowsort
SELECT + + 73 * 83, ( - 33 ) AS col2
----
6059
-33

query I rowsort
SELECT ALL NULLIF ( + NULLIF ( + 62, + 9 + + + 96 ), - ( + + 55 ) + - + 56 ) AS col1
----
62

query I rowsort
SELECT ALL 22 * - 88
----
-1936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-294
SELECT DISTINCT 81 * - CASE ( + - 80 ) WHEN - - 83 THEN - + 90 + 68 + - CAST( 8 AS SIGNED ) WHEN - 48 * 23 - + 25 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT 81 * - CASE ( + - 80 ) WHEN - - 83 THEN - + 90 + 68 + - CAST ( 8 AS INTEGER ) WHEN - 48 * 23 - + 25 THEN NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-295
SELECT COUNT ( - 53 )
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-297
SELECT - CASE - 94 WHEN - 63 * - - COUNT( * ) THEN 11 + CASE - 8 WHEN - - CAST( 45 AS SIGNED ) THEN ( + CAST( NULL AS SIGNED ) ) * ( 53 ) WHEN + 51 + 44 THEN 26 END ELSE NULL END + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-297
SELECT - CASE - 94 WHEN - 63 * - - COUNT ( * ) THEN 11 + CASE - 8 WHEN - - CAST ( 45 AS INTEGER ) THEN ( + CAST ( NULL AS INTEGER ) ) * ( 53 ) WHEN + 51 + 44 THEN 26 END ELSE NULL END + + 6
----
NULL

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

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

query I rowsort
SELECT + 56 * + 67
----
3752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-300
SELECT - 62 + 46 * - COUNT( * ) * COALESCE ( - 84, + - COUNT( * ) * - - 89 + + CAST( COUNT( * ) AS SIGNED ) - + 30 )
----
3802

skipif mysql # not compatible
query I rowsort label-300
SELECT - 62 + 46 * - COUNT ( * ) * COALESCE ( - 84, + - COUNT ( * ) * - - 89 + + CAST ( COUNT ( * ) AS INTEGER ) - + 30 )
----
3802

query I rowsort
SELECT - 80 + + - 29 AS col0
----
-109

query I rowsort
SELECT DISTINCT - 90 * - - 27 AS col1
----
-2430

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

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL CAST ( - MIN ( ALL 35 ) AS INTEGER )
----
-35

query II rowsort
SELECT 18, + 0 + + 54 AS col1
----
18
54

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT DISTINCT - COUNT( - 57 ) + + 6 col0
----
5

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT - COUNT ( - 57 ) + + 6 col0
----
5

query I rowsort
SELECT DISTINCT - 90 + - 52 + - 90 AS col0
----
-232

query I rowsort
SELECT + 90 * 71
----
6390

query I rowsort
SELECT - 96 * 60 AS col1
----
-5760

query I rowsort
SELECT ALL - 72 + - + 83 AS col0
----
-155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-310
SELECT ALL CAST( + COALESCE ( + 61, 99 * - - 40 + + + 21 + + COUNT( * ), 52 + 30 ) AS SIGNED ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL CAST ( + COALESCE ( + 61, 99 * - - 40 + + + 21 + + COUNT ( * ), 52 + 30 ) AS INTEGER ) AS col0
----
61

query II rowsort
SELECT 42 AS col1, - 19
----
42
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-312
SELECT + 83 col0, + MIN( DISTINCT + - ( - 30 ) ) col1
----
83
30

skipif mysql # not compatible
query II rowsort label-312
SELECT + 83 col0, + MIN ( DISTINCT + - ( - 30 ) ) col1
----
83
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-313
SELECT + SUM( ALL - 90 ) DIV + + 33 col1
----
-2

skipif mysql # not compatible
query I rowsort label-313
SELECT + SUM ( ALL - 90 ) / + + 33 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT ALL - MIN( DISTINCT 17 ) + + - ( 21 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL - MIN ( DISTINCT 17 ) + + - ( 21 ) AS col1
----
-38

query I rowsort
SELECT 29 * 20
----
580

query I rowsort
SELECT DISTINCT - - 1 + - + 90 col2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-317
SELECT ALL - - CASE ( CAST( NULL AS SIGNED ) ) WHEN ( 81 ) * 33 * - - 93 + - 42 THEN NULLIF ( + 11, - 35 * + 99 ) * - 22 WHEN 58 / + 24 + 90 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL - - CASE ( CAST ( NULL AS INTEGER ) ) WHEN ( 81 ) * 33 * - - 93 + - 42 THEN NULLIF ( + 11, - 35 * + 99 ) * - 22 WHEN 58 / + 24 + 90 THEN NULL END AS col2
----
NULL

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

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

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

query I rowsort
SELECT + 46 * - 65 col2
----
-2990

onlyif mysql # aggregate syntax: 
query II rowsort label-321
SELECT DISTINCT + MAX( - 37 ) * + + 37, - 13 AS col0
----
-1369
-13

skipif mysql # not compatible
query II rowsort label-321
SELECT DISTINCT + MAX ( - 37 ) * + + 37, - 13 AS col0
----
-1369
-13

query I rowsort
SELECT DISTINCT + - 9 + 94
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-323
SELECT + 3 + - 42 + 65 * + - CASE - + 81 WHEN + 86 THEN - + CAST( 30 AS SIGNED ) + COUNT( * ) * 36 WHEN - 44 * ( - 55 ) THEN NULL WHEN + COUNT( * ) * 55 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-323
SELECT + 3 + - 42 + 65 * + - CASE - + 81 WHEN + 86 THEN - + CAST ( 30 AS INTEGER ) + COUNT ( * ) * 36 WHEN - 44 * ( - 55 ) THEN NULL WHEN + COUNT ( * ) * 55 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ( - ( 84 ) )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT ALL MIN( ( 72 ) ) * + 49 AS col2
----
3528

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL MIN ( ( 72 ) ) * + 49 AS col2
----
3528

query I rowsort
SELECT DISTINCT - 13 * 77 AS col0
----
-1001

query I rowsort
SELECT - 53 + + - 12
----
-65

query I rowsort
SELECT ALL - - 54 * + + 40 AS col1
----
2160

query I rowsort
SELECT 47 * + 22 * - 66 col2
----
-68244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-330
SELECT MIN( + 2 ) DIV + 90 * + 62
----
0

skipif mysql # not compatible
query I rowsort label-330
SELECT MIN ( + 2 ) / + 90 * + 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-331
SELECT COALESCE ( + 53, + CAST( + - COUNT( * ) AS SIGNED ) ) * - 76 + - 48 AS col0
----
-4076

skipif mysql # not compatible
query I rowsort label-331
SELECT COALESCE ( + 53, + CAST ( + - COUNT ( * ) AS INTEGER ) ) * - 76 + - 48 AS col0
----
-4076

onlyif mysql # DIV for integer division: 
query I rowsort label-332
SELECT DISTINCT 97 + 76 DIV + 4 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT 97 + 76 / + 4 AS col1
----
116

query I rowsort
SELECT DISTINCT 62 * + ( + 7 )
----
434

query I rowsort
SELECT ALL 32 + - - 73 * - 86
----
-6246

onlyif mysql # aggregate syntax: 
query II rowsort label-335
SELECT DISTINCT + COUNT( * ) + + 86, + COUNT( * ) * - MAX( 1 ) AS col0
----
87
-1

skipif mysql # not compatible
query II rowsort label-335
SELECT DISTINCT + COUNT ( * ) + + 86, + COUNT ( * ) * - MAX ( 1 ) AS col0
----
87
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-336
SELECT ALL - 76 + - ( - - 82 ) + 80 / + 23 + - 80 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL - 76 + - ( - - 82 ) + 80 / + 23 + - 80 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 7 - + 38 - - + 71 * - 54 AS col2
----
-3865

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT DISTINCT 26 * MAX( DISTINCT - 7 )
----
-182

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT 26 * MAX ( DISTINCT - 7 )
----
-182

onlyif mysql # aggregate syntax: 
query II rowsort label-339
SELECT 91 + + 38 + + 39 * - ( - 83 ) * - COUNT( * ) * - 28, 86 AS col1
----
90765
86

skipif mysql # not compatible
query II rowsort label-339
SELECT 91 + + 38 + + 39 * - ( - 83 ) * - COUNT ( * ) * - 28, 86 AS col1
----
90765
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-340
SELECT 26 * - - CAST( + 7 AS SIGNED ) AS col2
----
182

skipif mysql # not compatible
query I rowsort label-340
SELECT 26 * - - CAST ( + 7 AS INTEGER ) AS col2
----
182

query I rowsort
SELECT 97 + + - 36 + + COALESCE ( 26, 57 ) * 59 AS col0
----
1595

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

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

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

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

query I rowsort
SELECT ALL - 47 - 21 AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-345
SELECT ALL - - 7 * + CAST( + 26 AS SIGNED ) AS col0
----
182

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL - - 7 * + CAST ( + 26 AS INTEGER ) AS col0
----
182

query I rowsort
SELECT 66 * + ( - - 74 ) + 50
----
4934

query I rowsort
SELECT DISTINCT + 3 * + 6 + 19 * + 27 AS col2
----
531

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

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

query I rowsort
SELECT - 84 + - 54
----
-138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT DISTINCT + + MIN( + 13 ) * - 64 * - 33 * + 44 * + 81
----
97853184

skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT + + MIN ( + 13 ) * - 64 * - 33 * + 44 * + 81
----
97853184

onlyif mysql # DIV for integer division: 
query I rowsort label-352
SELECT ALL + 20 DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL + 20 / 81 AS col2
----
0

query I rowsort
SELECT 69 * 99 * + 28 * + 11
----
2103948

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

skipif mysql # not compatible
query I rowsort label-354
SELECT + 59 * + CAST ( NULL AS INTEGER ) * + 69
----
NULL

query I rowsort
SELECT ALL - 70 * - + 42 AS col0
----
2940

onlyif mysql # DIV for integer division: 
query I rowsort label-356
SELECT ALL + 59 DIV 12 - + 84 * - + 96
----
8068

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL + 59 / 12 - + 84 * - + 96
----
8068

query I rowsort
SELECT 48 * 64 AS col2
----
3072

query I rowsort
SELECT 92 * - 61 * - 61 * - 47 * + 27
----
-434419308

query I rowsort
SELECT 92 * - + 76 * + - 52 AS col1
----
363584

query I rowsort
SELECT ALL - 7 * - 58 AS col0
----
406

query II rowsort
SELECT DISTINCT - 43 AS col2, 57
----
-43
57

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

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

query I rowsort
SELECT ALL - 8 + - + 46
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-364
SELECT DISTINCT SUM( + 25 ) + - ( + CAST( - 8 AS SIGNED ) ) - + 66 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT SUM ( + 25 ) + - ( + CAST ( - 8 AS INTEGER ) ) - + 66 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL + 90 + + + COUNT( - - 21 ) * 99 AS col1
----
189

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + 90 + + + COUNT ( - - 21 ) * 99 AS col1
----
189

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

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL COUNT ( * ) + 89 AS col0
----
90

query I rowsort
SELECT 17 + - ( + + 61 ) + + 29 * + ( + - 81 ) * + - 64
----
150292

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

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT + ( + + ( 86 ) ) * - + CASE + 54 WHEN 21 + - + 73 THEN + CASE 23 WHEN - - COUNT( * ) THEN 78 END / 4 + COUNT( * ) WHEN + COUNT( * ) * 2 THEN 68 WHEN CASE ( CASE ( - 61 ) WHEN 39 THEN + 1 * ( AVG ( DISTINCT 26 ) ) ELSE + 49 END ) WHEN + 75 THEN NULL WHEN - 13 * + 26 THEN COALESCE ( - 61, + 37 - + 67, 37 / COUNT( * ) ) END THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-369
SELECT + ( + + ( 86 ) ) * - + CASE + 54 WHEN 21 + - + 73 THEN + CASE 23 WHEN - - COUNT ( * ) THEN 78 END / 4 + COUNT ( * ) WHEN + COUNT ( * ) * 2 THEN 68 WHEN CASE ( CASE ( - 61 ) WHEN 39 THEN + 1 * ( AVG ( DISTINCT 26 ) ) ELSE + 49 END ) WHEN + 75 THEN NULL WHEN - 13 * + 26 THEN COALESCE ( - 61, + 37 - + 67, 37 / COUNT ( * ) ) END THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT DISTINCT NULLIF ( + 73, - - CASE + 81 WHEN + + ( 96 ) THEN ( + + 62 ) * COUNT( * ) + - - 52 WHEN - ( - 15 ) THEN NULL WHEN 20 * - COUNT( * ) THEN NULL END ) + - COUNT( * ) * - ( 83 ) AS col1
----
156

skipif mysql # not compatible
query I rowsort label-370
SELECT DISTINCT NULLIF ( + 73, - - CASE + 81 WHEN + + ( 96 ) THEN ( + + 62 ) * COUNT ( * ) + - - 52 WHEN - ( - 15 ) THEN NULL WHEN 20 * - COUNT ( * ) THEN NULL END ) + - COUNT ( * ) * - ( 83 ) AS col1
----
156

query II rowsort
SELECT 67 AS col2, - 3 AS col1
----
67
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-372
SELECT ALL COUNT( * ) - - - 6 + + + 58 * - 87 * - CASE + 46 WHEN - 38 + + - ( - - 76 ) THEN 82 WHEN - 91 + - 35 / CAST( - 13 - 60 * - 29 AS SIGNED ) THEN NULL WHEN AVG ( 24 ) / CASE - 65 WHEN - MIN( DISTINCT 37 ) THEN 33 * 42 + - 67 ELSE + 82 END THEN - 1 / 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL COUNT ( * ) - - - 6 + + + 58 * - 87 * - CASE + 46 WHEN - 38 + + - ( - - 76 ) THEN 82 WHEN - 91 + - 35 / CAST ( - 13 - 60 * - 29 AS INTEGER ) THEN NULL WHEN AVG ( 24 ) / CASE - 65 WHEN - MIN ( DISTINCT 37 ) THEN 33 * 42 + - 67 ELSE + 82 END THEN - 1 / 2 END
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 98 - - 56 AS col0
----
154

query I rowsort
SELECT + + 87 * 86 - - - 0 * - NULLIF ( - - COALESCE ( - 98, - 70 * + 50 * + 67 - 56 ), - 75 ) AS col0
----
7482

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-376
SELECT ALL 99 AS col2, - CAST( NULL AS SIGNED ) * + 80 AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-376
SELECT ALL 99 AS col2, - CAST ( NULL AS INTEGER ) * + 80 AS col0
----
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT ALL COUNT( * ) * 59 * - + 28 AS col0
----
-1652

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL COUNT ( * ) * 59 * - + 28 AS col0
----
-1652

onlyif mysql # aggregate syntax: 
query II rowsort label-378
SELECT 22 AS col0, + MIN( ALL 4 )
----
22
4

skipif mysql # not compatible
query II rowsort label-378
SELECT 22 AS col0, + MIN ( ALL 4 )
----
22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT + COUNT( + 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-379
SELECT + COUNT ( + 33 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-380
SELECT + + CASE 70 WHEN - - COALESCE ( - COUNT( * ), + - 62 * - CASE 72 WHEN + - 49 THEN NULL WHEN + CASE 12 WHEN - COALESCE ( 78, ( - ( + COUNT( * ) ) ), - 89 ) THEN NULL WHEN 81 THEN NULL ELSE 31 + NULLIF ( 31, - NULLIF ( CAST( NULL AS SIGNED ), + COUNT( + 55 ) * - COUNT( * ) ) - 42 ) END THEN 98 + 10 ELSE CASE + COUNT( * ) WHEN - 89 * 49 THEN + AVG ( DISTINCT + 74 ) / ( 3 ) WHEN - 77 THEN NULL END * + 16 END ) THEN NULL WHEN 6 THEN NULL ELSE - COUNT( * ) / CASE + CAST( - COALESCE ( - NULLIF ( 40, + 34 - + 17 ), - AVG ( - CASE 50 WHEN 77 + - 53 / - 56 THEN 86 * 95 ELSE NULL END ), - 33 * + 42, + 66 + 28 ) AS DECIMAL ) WHEN AVG ( ALL 56 ) / 1 + 95 THEN + 45 * CASE 9 * CAST( NULL AS DECIMAL ) WHEN 6 THEN NULL WHEN 91 * - COUNT( * ) + - 7 THEN - 84 * + 40 ELSE NULL END END END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-380
SELECT + + CASE 70 WHEN - - COALESCE ( - COUNT ( * ), + - 62 * - CASE 72 WHEN + - 49 THEN NULL WHEN + CASE 12 WHEN - COALESCE ( 78, ( - ( + COUNT ( * ) ) ), - 89 ) THEN NULL WHEN 81 THEN NULL ELSE 31 + NULLIF ( 31, - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( + 55 ) * - COUNT ( * ) ) - 42 ) END THEN 98 + 10 ELSE CASE + COUNT ( * ) WHEN - 89 * 49 THEN + AVG ( DISTINCT + 74 ) / ( 3 ) WHEN - 77 THEN NULL END * + 16 END ) THEN NULL WHEN 6 THEN NULL ELSE - COUNT ( * ) / CASE + CAST ( - COALESCE ( - NULLIF ( 40, + 34 - + 17 ), - AVG ( - CASE 50 WHEN 77 + - 53 / - 56 THEN 86 * 95 ELSE NULL END ), - 33 * + 42, + 66 + 28 ) AS REAL ) WHEN AVG ( ALL 56 ) / 1 + 95 THEN + 45 * CASE 9 * CAST ( NULL AS REAL ) WHEN 6 THEN NULL WHEN 91 * - COUNT ( * ) + - 7 THEN - 84 * + 40 ELSE NULL END END END * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT 10 * + 56 - 80 + COUNT( * ) * + + 85
----
565

skipif mysql # not compatible
query I rowsort label-381
SELECT 10 * + 56 - 80 + COUNT ( * ) * + + 85
----
565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-382
SELECT DISTINCT + - ( + COALESCE ( + - 79, - 26, + 59 - + 6 + COUNT( * ) + - ( MIN( DISTINCT - - NULLIF ( - CAST( NULL AS SIGNED ), - ( - 18 ) * - 38 + + 77 ) ) ) * 64, - CASE 63 WHEN - 58 THEN NULL WHEN 11 THEN - 95 END ) ) * - 83
----
-6557

skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT + - ( + COALESCE ( + - 79, - 26, + 59 - + 6 + COUNT ( * ) + - ( MIN ( DISTINCT - - NULLIF ( - CAST ( NULL AS INTEGER ), - ( - 18 ) * - 38 + + 77 ) ) ) * 64, - CASE 63 WHEN - 58 THEN NULL WHEN 11 THEN - 95 END ) ) * - 83
----
-6557

query I rowsort
SELECT - 44 * + - 85 col1
----
3740

query I rowsort
SELECT - COALESCE ( + 83, + 60 * 36 + + + 64 ) * - CASE + 18 WHEN + 24 * - + 12 - ( - 12 ) THEN NULL ELSE 83 END - + ( + ( - 54 ) ) col0
----
6943

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT NULLIF ( + - 70, 14 * + 26 / MIN( ALL - 29 ) * + 17 * + COALESCE ( - 19, - - COUNT( - + ( 90 ) ) / 16, - COUNT( * ) ) - 36 + 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-388
SELECT NULLIF ( + - 70, 14 * + 26 / MIN ( ALL - 29 ) * + 17 * + COALESCE ( - 19, - - COUNT ( - + ( 90 ) ) / 16, - COUNT ( * ) ) - 36 + 70 ) AS col0
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-389
SELECT + 70 * + 83 + + COUNT( * ) - + 3 - 29 DIV 91 - + 28 + - COUNT( * )
----
5779

skipif mysql # not compatible
query I rowsort label-389
SELECT + 70 * + 83 + + COUNT ( * ) - + 3 - 29 / 91 - + 28 + - COUNT ( * )
----
5779

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT DISTINCT SUM( + + 65 ) * - 31 * - 42 + 85 * + 21 + + + 48
----
86463

skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT SUM ( + + 65 ) * - 31 * - 42 + 85 * + 21 + + + 48
----
86463

query I rowsort
SELECT ALL 89 * + ( + 70 ) + - + 28 AS col1
----
6202

onlyif mysql # aggregate syntax: 
query II rowsort label-392
SELECT COUNT( * ), - 8 * - 26 AS col0
----
1
208

skipif mysql # not compatible
query II rowsort label-392
SELECT COUNT ( * ), - 8 * - 26 AS col0
----
1
208

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT DISTINCT - COUNT( * ) * - 53 * + + 83 + - COUNT( * )
----
4398

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT - COUNT ( * ) * - 53 * + + 83 + - COUNT ( * )
----
4398

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-395
SELECT DISTINCT 7 * + 70 * COUNT( * ) + + 80 DIV - NULLIF ( 15, + ( - CASE + - 9 WHEN + 89 THEN 73 WHEN AVG ( ALL + ( 49 ) ) + 7 THEN + 23 * - NULLIF ( - 64, + ( 22 ) ) END ) ) + 44
----
529

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT 7 * + 70 * COUNT ( * ) + + 80 / - NULLIF ( 15, + ( - CASE + - 9 WHEN + 89 THEN 73 WHEN AVG ( ALL + ( 49 ) ) + 7 THEN + 23 * - NULLIF ( - 64, + ( 22 ) ) END ) ) + 44
----
529

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT ALL - COALESCE ( - COUNT( * ), 42 ) + 11 AS col0, 81 col0
----
12
81

skipif mysql # not compatible
query II rowsort label-396
SELECT ALL - COALESCE ( - COUNT ( * ), 42 ) + 11 AS col0, 81 col0
----
12
81

query I rowsort
SELECT - 61 - - 50
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT DISTINCT + NULLIF ( MIN( DISTINCT 88 ), + 39 ) * - 78 - - + 79 + - 70 AS col2
----
-6855

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT + NULLIF ( MIN ( DISTINCT 88 ), + 39 ) * - 78 - - + 79 + - 70 AS col2
----
-6855

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT DISTINCT + MIN( - 13 ) * - 21 * - COUNT( 12 ) AS col2
----
-273

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT + MIN ( - 13 ) * - 21 * - COUNT ( 12 ) AS col2
----
-273

query I rowsort
SELECT ALL - 14 - - 46 AS col1
----
32

query I rowsort
SELECT ALL + 59 * + - 54
----
-3186

query II rowsort
SELECT DISTINCT 28 AS col2, + 81 + 87 * - 30 * + 29 * - 62
----
28
4692861

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT + 31 - + + MIN( DISTINCT + 50 ) * 69
----
-3419

skipif mysql # not compatible
query I rowsort label-404
SELECT + 31 - + + MIN ( DISTINCT + 50 ) * 69
----
-3419

query I rowsort
SELECT + + 0 - + 76
----
-76

query I rowsort
SELECT + 16 * + 67
----
1072

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

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

query I rowsort
SELECT - 56 + 80 AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-409
SELECT + - 25 - + + 53 + - COALESCE ( 21, - + 82 * - - CAST( NULL AS SIGNED ) + - COUNT( * ) - - 54 * - MAX( - 81 ) * ( SUM( ( + 43 ) ) ) DIV - 97 + 18 * 85 ) * - 17 AS col0
----
279

skipif mysql # not compatible
query I rowsort label-409
SELECT + - 25 - + + 53 + - COALESCE ( 21, - + 82 * - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) - - 54 * - MAX ( - 81 ) * ( SUM ( ( + 43 ) ) ) / - 97 + 18 * 85 ) * - 17 AS col0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT - - 14 * - MAX( ALL + 31 )
----
-434

skipif mysql # not compatible
query I rowsort label-410
SELECT - - 14 * - MAX ( ALL + 31 )
----
-434

query I rowsort
SELECT - + CASE 33 WHEN - ( - ( - - 60 ) ) * + 22 - + - 38 THEN + - 9 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - + ( 33 ) + + 70
----
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-413
SELECT - - CAST( + 53 AS DECIMAL ) * + CAST( NULL AS DECIMAL ) / - + 81 + + 42 * + 37 - - 41 - - + 0 * - ( COUNT( - 99 ) ) / - NULLIF ( - 55 * 70, - CAST( + 30 AS DECIMAL ) ) * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-413
SELECT - - CAST ( + 53 AS REAL ) * + CAST ( NULL AS REAL ) / - + 81 + + 42 * + 37 - - 41 - - + 0 * - ( COUNT ( - 99 ) ) / - NULLIF ( - 55 * 70, - CAST ( + 30 AS REAL ) ) * 24
----
NULL

query I rowsort
SELECT + - 75 * - + 4 - + - 95 * + - 54 * - + 77 * + ( - 81 ) AS col0
----
-31995510

query I rowsort
SELECT ALL 31 * - + 86 AS col1
----
-2666

query I rowsort
SELECT + ( 15 ) + - 19 - + + 66 * + 47 + - 27
----
-3133

onlyif mysql # aggregate syntax: 
query II rowsort label-417
SELECT ALL 1, + 60 * - + SUM( + 34 ) + - 3 col1
----
1
-2043

skipif mysql # not compatible
query II rowsort label-417
SELECT ALL 1, + 60 * - + SUM ( + 34 ) + - 3 col1
----
1
-2043

query I rowsort
SELECT + 19 + 89 AS col0
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-419
SELECT + + 55 AS col2, COUNT( 94 )
----
55
1

skipif mysql # not compatible
query II rowsort label-419
SELECT + + 55 AS col2, COUNT ( 94 )
----
55
1

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

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

query I rowsort
SELECT + - ( - - 23 ) * + 81
----
-1863

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-422
SELECT + 85 * + CASE 97 WHEN - 78 + + - 10 THEN - 20 WHEN + - CASE 86 WHEN + 22 + + - COUNT( * ) THEN NULL WHEN 39 THEN CAST( NULL AS SIGNED ) * - 51 END THEN + 13 * + 71 + + 11 END * 84 + ( + 98 - + COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-422
SELECT + 85 * + CASE 97 WHEN - 78 + + - 10 THEN - 20 WHEN + - CASE 86 WHEN + 22 + + - COUNT ( * ) THEN NULL WHEN 39 THEN CAST ( NULL AS INTEGER ) * - 51 END THEN + 13 * + 71 + + 11 END * 84 + ( + 98 - + COUNT ( * ) ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-423
SELECT + - CAST( NULL AS SIGNED ) AS col2, - 39 + + 75 + - 61 * 48 * - - 18 col0
----
NULL
-52668

skipif mysql # not compatible
query II rowsort label-423
SELECT + - CAST ( NULL AS INTEGER ) AS col2, - 39 + + 75 + - 61 * 48 * - - 18 col0
----
NULL
-52668

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

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT DISTINCT + 80 DIV + ( 13 ) + - ( - 52 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT + 80 / + ( 13 ) + - ( - 52 ) AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-426
SELECT ALL + COUNT( * ) DIV + 11 DIV + COUNT( * ) + 98
----
98

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

query I rowsort
SELECT - 80 * + + NULLIF ( + + 88, 7 ) * + - 15 - - - 60
----
105540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-428
SELECT DISTINCT 3 + - COUNT( * ) + + CAST( + 26 AS SIGNED ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT 3 + - COUNT ( * ) + + CAST ( + 26 AS INTEGER ) AS col2
----
28

query II rowsort
SELECT 0 * 79 AS col1, 67 AS col1
----
0
67

query II rowsort
SELECT DISTINCT 67 - - 54, - 62 - + - 84 AS col2
----
121
22

query I rowsort
SELECT 16 + 6 + + 80
----
102

query I rowsort
SELECT ALL 2 - 26 AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-433
SELECT 26 * COUNT( ALL - + 50 ) * - 3 / 62 + - CASE 30 WHEN CAST( - - ( + + CAST( NULL AS SIGNED ) ) AS SIGNED ) THEN NULL WHEN 5 * + AVG ( + 23 ) THEN + 4 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-433
SELECT 26 * COUNT ( ALL - + 50 ) * - 3 / 62 + - CASE 30 WHEN CAST ( - - ( + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) THEN NULL WHEN 5 * + AVG ( + 23 ) THEN + 4 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-434
SELECT ALL - 82 DIV + - MIN( - + 59 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL - 82 / + - MIN ( - + 59 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-435
SELECT DISTINCT - COUNT( * ) DIV - ( - NULLIF ( + + 22, + + 86 ) ) * - + 49 + 5 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT - COUNT ( * ) / - ( - NULLIF ( + + 22, + + 86 ) ) * - + 49 + 5 AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT 45 DIV - - 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-436
SELECT 45 / - - 58 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT + COALESCE ( + - 2, - + 8, - + COALESCE ( 84, - COUNT( + + 45 ) * + - 2 ) * 45 - + + 42 + - 18 ) * + + 14
----
-28

skipif mysql # not compatible
query I rowsort label-437
SELECT + COALESCE ( + - 2, - + 8, - + COALESCE ( 84, - COUNT ( + + 45 ) * + - 2 ) * 45 - + + 42 + - 18 ) * + + 14
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-438
SELECT ( + 16 ) + - COUNT( * ) - - COALESCE ( 39, - + 22 * + 39 + - + ( - + COUNT( * ) ) + CAST( - 57 AS SIGNED ) * 15 * CAST( NULL AS SIGNED ) ) + + 63
----
117

skipif mysql # not compatible
query I rowsort label-438
SELECT ( + 16 ) + - COUNT ( * ) - - COALESCE ( 39, - + 22 * + 39 + - + ( - + COUNT ( * ) ) + CAST ( - 57 AS INTEGER ) * 15 * CAST ( NULL AS INTEGER ) ) + + 63
----
117

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

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL - + COUNT ( * ) / + + 73 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-440
SELECT + 23 + - MAX( - CAST( 72 AS SIGNED ) ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-440
SELECT + 23 + - MAX ( - CAST ( 72 AS INTEGER ) ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT DISTINCT CASE + - 26 WHEN 51 THEN + - ( + 25 ) * + 51 + - COALESCE ( + 42, + ( + 13 ), - + 40 * - SUM( 67 ) + 98 ) WHEN - ( - 88 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT CASE + - 26 WHEN 51 THEN + - ( + 25 ) * + 51 + - COALESCE ( + 42, + ( + 13 ), - + 40 * - SUM ( 67 ) + 98 ) WHEN - ( - 88 ) THEN NULL END
----
NULL

query II rowsort
SELECT DISTINCT + - 88 * + 17 AS col1, + 44 AS col1
----
-1496
44

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT DISTINCT - ( - CASE - 90 WHEN + - 83 THEN NULL WHEN + - 65 THEN 34 * COUNT( * ) + SUM( + 17 ) WHEN - MAX( ALL - + 77 ) THEN + 7 ELSE NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT - ( - CASE - 90 WHEN + - 83 THEN NULL WHEN + - 65 THEN 34 * COUNT ( * ) + SUM ( + 17 ) WHEN - MAX ( ALL - + 77 ) THEN + 7 ELSE NULL END ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT DISTINCT - NULLIF ( + 76, + + ( NULLIF ( COUNT( * ), - 68 + + 79 ) ) * COUNT( * ) * COUNT( * ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT - NULLIF ( + 76, + + ( NULLIF ( COUNT ( * ), - 68 + + 79 ) ) * COUNT ( * ) * COUNT ( * ) ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-445
SELECT - ( + CASE + 42 WHEN - 50 * + 61 + - MIN( DISTINCT - 10 ) + - 77 + + 41 + + ( + + ( - 66 ) ) - + 59 THEN + 11 * - COALESCE ( CASE + 2 WHEN - 28 THEN NULL WHEN ( + 50 ) THEN + 50 + 15 * COUNT( * ) WHEN 59 + - 8 * - 90 THEN NULL END, - COUNT( DISTINCT 16 ) ) WHEN 22 THEN + CAST( + 66 AS SIGNED ) * CAST( + 35 AS DECIMAL ) END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-445
SELECT - ( + CASE + 42 WHEN - 50 * + 61 + - MIN ( DISTINCT - 10 ) + - 77 + + 41 + + ( + + ( - 66 ) ) - + 59 THEN + 11 * - COALESCE ( CASE + 2 WHEN - 28 THEN NULL WHEN ( + 50 ) THEN + 50 + 15 * COUNT ( * ) WHEN 59 + - 8 * - 90 THEN NULL END, - COUNT ( DISTINCT 16 ) ) WHEN 22 THEN + CAST ( + 66 AS INTEGER ) * CAST ( + 35 AS REAL ) END ) col2
----
NULL

query I rowsort
SELECT 36 * 2 + 43 * 28
----
1276

onlyif mysql # DIV for integer division: 
query II rowsort label-447
SELECT + 56 - + 48 AS col2, + 79 DIV + 16
----
8
4

skipif mysql # not compatible
query II rowsort label-447
SELECT + 56 - + 48 AS col2, + 79 / + 16
----
8
4

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

query I rowsort
SELECT ALL + 72 + - 39 + - 23 AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-450
SELECT ( + 89 ) DIV - 38 + 65 - + 38 * + 70 * - - 26 AS col0
----
-69097

skipif mysql # not compatible
query I rowsort label-450
SELECT ( + 89 ) / - 38 + 65 - + 38 * + 70 * - - 26 AS col0
----
-69097

onlyif mysql # DIV for integer division: 
query II rowsort label-451
SELECT ALL 31 DIV - 95, 58 AS col1
----
0
58

skipif mysql # not compatible
query II rowsort label-451
SELECT ALL 31 / - 95, 58 AS col1
----
0
58

query II rowsort
SELECT DISTINCT - 70 + - 88 AS col1, COALESCE ( 21, + 56, + - 81 )
----
-158
21

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT + - NULLIF ( 34, NULLIF ( - + COUNT( * ), + - AVG ( 64 ) ) )
----
-34

skipif mysql # not compatible
query I rowsort label-453
SELECT + - NULLIF ( 34, NULLIF ( - + COUNT ( * ), + - AVG ( 64 ) ) )
----
-34

query I rowsort
SELECT - 19 * 81
----
-1539

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT ALL ( + + COALESCE ( - - 23, 92 - + NULLIF ( - - 17, + + 74 + - COUNT( * ) ) + - - 85 * + - 28 + + 96 + + NULLIF ( - + 96, + 42 ), + 55 + + 86 ) ) + 36 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL ( + + COALESCE ( - - 23, 92 - + NULLIF ( - - 17, + + 74 + - COUNT ( * ) ) + - - 85 * + - 28 + + 96 + + NULLIF ( - + 96, + 42 ), + 55 + + 86 ) ) + 36 AS col1
----
59

query II rowsort
SELECT 67 AS col0, - 14 col1
----
67
-14

query I rowsort
SELECT ALL 68 * + 42
----
2856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-460
SELECT 75 + - 25 - + 49 DIV 28 DIV + NULLIF ( - COUNT( * ), 90 + - 23 * 31 * + CASE + 89 WHEN + CAST( - 83 AS SIGNED ) + 6 * + 66 THEN NULL WHEN - 64 - 74 THEN + 19 * 59 END ) col2
----
51

skipif mysql # not compatible
query I rowsort label-460
SELECT 75 + - 25 - + 49 / 28 / + NULLIF ( - COUNT ( * ), 90 + - 23 * 31 * + CASE + 89 WHEN + CAST ( - 83 AS INTEGER ) + 6 * + 66 THEN NULL WHEN - 64 - 74 THEN + 19 * 59 END ) col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT 58 * - + MIN( DISTINCT + - 18 ) * - - 45 - - + 79 AS col2
----
47059

skipif mysql # not compatible
query I rowsort label-461
SELECT 58 * - + MIN ( DISTINCT + - 18 ) * - - 45 - - + 79 AS col2
----
47059

query I rowsort
SELECT DISTINCT 3 - - - 29 AS col2
----
-26

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

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

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT 9 * + COUNT ( * ) * + 81
----
729

onlyif mysql # aggregate syntax: 
query II rowsort label-465
SELECT DISTINCT - 84 AS col1, 69 - - COUNT( * ) + - - 1 AS col0
----
-84
71

skipif mysql # not compatible
query II rowsort label-465
SELECT DISTINCT - 84 AS col1, 69 - - COUNT ( * ) + - - 1 AS col0
----
-84
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-466
SELECT COALESCE ( + - 56, - + COUNT( * ) ) + - + CAST( NULL AS SIGNED ) - + - COUNT( * ) - + 46 / - - 68 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-466
SELECT COALESCE ( + - 56, - + COUNT ( * ) ) + - + CAST ( NULL AS INTEGER ) - + - COUNT ( * ) - + 46 / - - 68 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT ALL COUNT( * ) - + 85 + + 97 * + - 72 * - 81 AS col1
----
565620

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL COUNT ( * ) - + 85 + + 97 * + - 72 * - 81 AS col1
----
565620

query II rowsort
SELECT 83 AS col0, + 43 + - 71 + 28 AS col1
----
83
0

onlyif mysql # aggregate syntax: 
query II rowsort label-469
SELECT ALL - 96 - - 28 - 79 AS col0, - COUNT( * ) * + COUNT( DISTINCT - 7 )
----
-147
-1

skipif mysql # not compatible
query II rowsort label-469
SELECT ALL - 96 - - 28 - 79 AS col0, - COUNT ( * ) * + COUNT ( DISTINCT - 7 )
----
-147
-1

query I rowsort
SELECT 35 * + + 33 AS col2
----
1155

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

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

query I rowsort
SELECT 54 + - 33
----
21

query I rowsort
SELECT ALL 48 * + + 63
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT 25 * + MAX( - 26 ) * + COUNT( * ) * COUNT( DISTINCT + - CASE 57 WHEN - 89 THEN NULL WHEN + 95 THEN - 35 END ) * + CASE - ( - 18 ) WHEN 57 THEN 35 ELSE - 65 END + - 29
----
-29

skipif mysql # not compatible
query I rowsort label-474
SELECT 25 * + MAX ( - 26 ) * + COUNT ( * ) * COUNT ( DISTINCT + - CASE 57 WHEN - 89 THEN NULL WHEN + 95 THEN - 35 END ) * + CASE - ( - 18 ) WHEN 57 THEN 35 ELSE - 65 END + - 29
----
-29

query I rowsort
SELECT - 47 - + ( - - 87 ) * + ( - 52 ) AS col0
----
4477

query I rowsort
SELECT DISTINCT - 75 * 76
----
-5700

query II rowsort
SELECT - 68 AS col0, 35
----
-68
35

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT ALL 35 * - 77 * - CASE - + COALESCE ( - COUNT( * ), - MAX( DISTINCT NULLIF ( + + 74, - CASE - 70 WHEN + - 30 * 18 THEN + 78 WHEN 57 THEN NULL END ) ) + 23, 17 + + 94 ) WHEN + 19 * 83 THEN NULL WHEN + 85 - + 14 THEN NULL ELSE 9 END
----
24255

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL 35 * - 77 * - CASE - + COALESCE ( - COUNT ( * ), - MAX ( DISTINCT NULLIF ( + + 74, - CASE - 70 WHEN + - 30 * 18 THEN + 78 WHEN 57 THEN NULL END ) ) + 23, 17 + + 94 ) WHEN + 19 * 83 THEN NULL WHEN + 85 - + 14 THEN NULL ELSE 9 END
----
24255

query II rowsort
SELECT DISTINCT 47 AS col1, 93 AS col2
----
47
93

query II rowsort
SELECT ALL + 67 + + 72 * - 64, - 26 AS col2
----
-4541
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT DISTINCT - 45 + - + COUNT( * ) - - + ( - 91 ) AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT - 45 + - + COUNT ( * ) - - + ( - 91 ) AS col2
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-482
SELECT - 10 - - CASE + ( - - COALESCE ( - 97, + CAST( 41 AS SIGNED ) - - AVG ( ALL + 9 ) * - + 22 * - 95 ) ) WHEN 55 THEN + + 20 ELSE NULL END / 43
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT - 10 - - CASE + ( - - COALESCE ( - 97, + CAST ( 41 AS INTEGER ) - - AVG ( ALL + 9 ) * - + 22 * - 95 ) ) WHEN 55 THEN + + 20 ELSE NULL END / 43
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-483
SELECT ALL + ( + 11 ) DIV + - 42 AS col2, - 7
----
0
-7

skipif mysql # not compatible
query II rowsort label-483
SELECT ALL + ( + 11 ) / + - 42 AS col2, - 7
----
0
-7

query I rowsort
SELECT 82 + + 20 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT ALL - - 93 + - COUNT( * ) * + 99 * 86 AS col2
----
-8421

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL - - 93 + - COUNT ( * ) * + 99 * 86 AS col2
----
-8421

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

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

query II rowsort
SELECT - 25 AS col0, - 55 AS col1
----
-25
-55

query I rowsort
SELECT - 76 + - COALESCE ( 40, - - NULLIF ( - 28, + 55 ) * NULLIF ( + 82, - + 49 + + + 61 ) )
----
-116

onlyif mysql # aggregate syntax: 
query II rowsort label-489
SELECT ALL - - 18 + + 51 * - - 40, - 68 - - COUNT( * ) - + 72 - SUM( ALL + + 86 ) AS col2
----
2058
-225

skipif mysql # not compatible
query II rowsort label-489
SELECT ALL - - 18 + + 51 * - - 40, - 68 - - COUNT ( * ) - + 72 - SUM ( ALL + + 86 ) AS col2
----
2058
-225

query I rowsort
SELECT 61 + - - 36 * + 45
----
1681

query I rowsort
SELECT ALL - 40 + ( + 20 ) AS col2
----
-20

query I rowsort
SELECT + 3 + + 68
----
71

query II rowsort
SELECT + 17 + 13 * + 11 AS col0, ( - 82 ) AS col1
----
160
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-494
SELECT ALL - CAST( + - 2 AS SIGNED ) + + 86 - + 76
----
12

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL - CAST ( + - 2 AS INTEGER ) + + 86 - + 76
----
12

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

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

query I rowsort
SELECT ALL + 55 * 4 - + 77
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-498
SELECT COALESCE ( 57, - 8, 10 DIV - + 72 - 67 DIV 55 - 51 )
----
57

skipif mysql # not compatible
query I rowsort label-498
SELECT COALESCE ( 57, - 8, 10 / - + 72 - 67 / 55 - 51 )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-499
SELECT - 38 + 77 * 93 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-499
SELECT - 38 + 77 * 93 * - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT + COUNT ( * ) / + 2
----
0

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

skipif mysql # not compatible
query I rowsort label-501
SELECT + 91 / + 17 * COUNT ( * )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-502
SELECT - 2 * - - 48 DIV 8
----
-12

skipif mysql # not compatible
query I rowsort label-502
SELECT - 2 * - - 48 / 8
----
-12

query I rowsort
SELECT ALL 73 * 70 AS col1
----
5110

query II rowsort
SELECT + 84 + + 71 AS col2, - 69
----
155
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-505
SELECT + CASE + COALESCE ( - - COUNT( * ), - 23 ) WHEN + CAST( 33 AS SIGNED ) + + ( - NULLIF ( + 16, - - 94 + - - COALESCE ( NULLIF ( 63, - + 35 ), + 90, ( + 26 ) + ( - ( 71 ) ) ) ) ) * - COUNT( * ) THEN NULL WHEN 66 THEN - 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-505
SELECT + CASE + COALESCE ( - - COUNT ( * ), - 23 ) WHEN + CAST ( 33 AS INTEGER ) + + ( - NULLIF ( + 16, - - 94 + - - COALESCE ( NULLIF ( 63, - + 35 ), + 90, ( + 26 ) + ( - ( 71 ) ) ) ) ) * - COUNT ( * ) THEN NULL WHEN 66 THEN - 55 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-506
SELECT - 55 DIV 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-506
SELECT - 55 / 60 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT + CASE - ( ( 8 ) ) WHEN 0 THEN - + NULLIF ( - 15, + COUNT( * ) ) END / + - ( + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT + CASE - ( ( 8 ) ) WHEN 0 THEN - + NULLIF ( - 15, + COUNT ( * ) ) END / + - ( + 73 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT + 37 * + COALESCE ( COUNT( * ), - + 47 * + 8 )
----
37

skipif mysql # not compatible
query I rowsort label-508
SELECT + 37 * + COALESCE ( COUNT ( * ), - + 47 * + 8 )
----
37

query II rowsort
SELECT ALL - 46 * - 31 AS col2, 28 AS col0
----
1426
28

query I rowsort
SELECT DISTINCT 23 + + 40
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-511
SELECT ALL CASE + 29 WHEN - 0 * AVG ( ( + + 39 ) ) THEN + 72 ELSE + + 16 END + - + CAST( + + 69 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL CASE + 29 WHEN - 0 * AVG ( ( + + 39 ) ) THEN + 72 ELSE + + 16 END + - + CAST ( + + 69 AS INTEGER )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT ALL 41 + + 73 + + + 2 * - MAX( ALL 52 )
----
10

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL 41 + + 73 + + + 2 * - MAX ( ALL 52 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-513
SELECT - + ( 48 ), - 51 + + 7 DIV ( SUM( DISTINCT - + 3 ) ) AS col0
----
-48
-53

skipif mysql # not compatible
query II rowsort label-513
SELECT - + ( 48 ), - 51 + + 7 / ( SUM ( DISTINCT - + 3 ) ) AS col0
----
-48
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-514
SELECT DISTINCT + 63 + - - 49 + - - ( - + 98 ) AS col0, COUNT( * ) AS col2
----
14
1

skipif mysql # not compatible
query II rowsort label-514
SELECT DISTINCT + 63 + - - 49 + - - ( - + 98 ) AS col0, COUNT ( * ) AS col2
----
14
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-515
SELECT ALL 64 + CASE + + 27 WHEN + - COUNT( ALL + 37 ) / MIN( 13 ) THEN NULL WHEN + CASE 39 WHEN + + COALESCE ( + + 30, + 3 * + COUNT( * ) * + 67 / - 26 - + 37, - 32, - COUNT( * ) + ( - CASE + 71 WHEN - COUNT( * ) * - ( + 78 ) THEN - 25 + - 91 * + COUNT( * ) WHEN 9 * 4 THEN NULL END ) ) + + 50 * 66 THEN COUNT( * ) ELSE NULL END / - 25 THEN MAX( DISTINCT + CAST( 44 AS SIGNED ) ) END + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL 64 + CASE + + 27 WHEN + - COUNT ( ALL + 37 ) / MIN ( 13 ) THEN NULL WHEN + CASE 39 WHEN + + COALESCE ( + + 30, + 3 * + COUNT ( * ) * + 67 / - 26 - + 37, - 32, - COUNT ( * ) + ( - CASE + 71 WHEN - COUNT ( * ) * - ( + 78 ) THEN - 25 + - 91 * + COUNT ( * ) WHEN 9 * 4 THEN NULL END ) ) + + 50 * 66 THEN COUNT ( * ) ELSE NULL END / - 25 THEN MAX ( DISTINCT + CAST ( 44 AS INTEGER ) ) END + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT + 38 * + COUNT( - 15 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-516
SELECT + 38 * + COUNT ( - 15 ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT DISTINCT + 14 * + NULLIF ( + 1, + + 42 + - + COUNT( * ) ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT + 14 * + NULLIF ( + 1, + + 42 + - + COUNT ( * ) ) AS col0
----
14

query I rowsort
SELECT + + 75 * - 30
----
-2250

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL + SUM( DISTINCT 9 ) + + - 61 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL + SUM ( DISTINCT 9 ) + + - 61 AS col1
----
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT DISTINCT + ( COUNT( * ) ) - 58 * 98 * - + 98
----
557033

skipif mysql # not compatible
query I rowsort label-521
SELECT DISTINCT + ( COUNT ( * ) ) - 58 * 98 * - + 98
----
557033

query I rowsort
SELECT + 54 + - 40 * + 97
----
-3826

query II rowsort
SELECT 84, 55 + + 91 col0
----
84
146

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-524
SELECT + CAST( 98 AS SIGNED ) DIV - 45 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-524
SELECT + CAST ( 98 AS INTEGER ) / - 45 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT - 74 * - 8 * - - COUNT( 98 )
----
592

skipif mysql # not compatible
query I rowsort label-525
SELECT - 74 * - 8 * - - COUNT ( 98 )
----
592

query I rowsort
SELECT - 51 * + 61 * 7
----
-21777

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

query I rowsort
SELECT - 21 - 82
----
-103

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

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL 91 / 18 / COUNT ( * ) - + + COUNT ( * )
----
4

query II rowsort
SELECT DISTINCT + 49 AS col1, - 81 AS col1
----
49
-81

query I rowsort
SELECT - 15 * - - 58 AS col0
----
-870

query I rowsort
SELECT ALL + 23 * + CASE WHEN NOT NULL >= + 57 THEN - 83 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-533
SELECT DISTINCT + 14 * + + COUNT( * ) * - + 55 * - 80 * + 39, + NULLIF ( - 89, - 83 * - + COUNT( * ) + + 64 + 40 * + + 38 + 50 ) col0
----
2402400
-89

skipif mysql # not compatible
query II rowsort label-533
SELECT DISTINCT + 14 * + + COUNT ( * ) * - + 55 * - 80 * + 39, + NULLIF ( - 89, - 83 * - + COUNT ( * ) + + 64 + 40 * + + 38 + 50 ) col0
----
2402400
-89

query I rowsort
SELECT - 61 + + + 73 + 15 * - + ( + 49 ) * - CASE - 48 WHEN - 99 THEN 69 * - 19 / + + 58 - - 67 WHEN - - 9 THEN 99 + + - 58 / - COALESCE ( + 50, + ( - 1 ) ) END - 9
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-535
SELECT - 34 DIV 28 - - 13 * - 77 - + CAST( NULL AS SIGNED ) - + ( ( + - 18 ) ) AS col0, + 79 DIV - - MAX( 49 ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-535
SELECT - 34 / 28 - - 13 * - 77 - + CAST ( NULL AS INTEGER ) - + ( ( + - 18 ) ) AS col0, + 79 / - - MAX ( 49 ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-536
SELECT - 79 * + - ( - - CAST( NULL AS SIGNED ) ) * + - 96 + + CAST( NULL AS SIGNED ) / CAST( 16 AS SIGNED ) + - - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-536
SELECT - 79 * + - ( - - CAST ( NULL AS INTEGER ) ) * + - 96 + + CAST ( NULL AS INTEGER ) / CAST ( 16 AS INTEGER ) + - - 53 AS col1
----
NULL

query I rowsort
SELECT - 43 - - 31 + - - 10 * - 28
----
-292

query II rowsort
SELECT DISTINCT + ( - - ( + - 98 ) ) col2, + 32 AS col0
----
-98
32

onlyif mysql # DIV for integer division: 
query I rowsort label-539
SELECT ALL + 2 * 29 DIV + 12 + - 12 * 79 + - 63
----
-1007

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL + 2 * 29 / + 12 + - 12 * 79 + - 63
----
-1007

query I rowsort
SELECT - 7 + 9 * - ( 35 ) + - ( + + ( 50 ) )
----
-372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-541
SELECT DISTINCT + COALESCE ( 74, - CAST( + MAX( 55 ) AS SIGNED ), + 54 + + + 25, + NULLIF ( - COALESCE ( 58, + COUNT( * ) ), + 66 + + 29 ) + - 83 ) * + 55 * 83 + + 68
----
337878

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT + COALESCE ( 74, - CAST ( + MAX ( 55 ) AS INTEGER ), + 54 + + + 25, + NULLIF ( - COALESCE ( 58, + COUNT ( * ) ), + 66 + + 29 ) + - 83 ) * + 55 * 83 + + 68
----
337878

onlyif mysql # aggregate syntax: 
query II rowsort label-542
SELECT ALL 86 * 25 * COUNT( * ) AS col0, + COALESCE ( 1, 21 ) AS col0
----
2150
1

skipif mysql # not compatible
query II rowsort label-542
SELECT ALL 86 * 25 * COUNT ( * ) AS col0, + COALESCE ( 1, 21 ) AS col0
----
2150
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-543
SELECT DISTINCT + COALESCE ( MAX( ALL 60 ), - COUNT( * ), 33 + 35 ) * 73 + - - COUNT( * ) + - 39 DIV 56 AS col2
----
4381

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT + COALESCE ( MAX ( ALL 60 ), - COUNT ( * ), 33 + 35 ) * 73 + - - COUNT ( * ) + - 39 / 56 AS col2
----
4381

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT DISTINCT + COUNT( * ) * - + 70 + 53
----
-17

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT + COUNT ( * ) * - + 70 + 53
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT DISTINCT + 9 * + + COUNT( * ) * + 98
----
882

skipif mysql # not compatible
query I rowsort label-545
SELECT DISTINCT + 9 * + + COUNT ( * ) * + 98
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT 45 * SUM( - + 44 ) * COUNT( * ) + 14 + 92 AS col1
----
-1874

skipif mysql # not compatible
query I rowsort label-546
SELECT 45 * SUM ( - + 44 ) * COUNT ( * ) + 14 + 92 AS col1
----
-1874

query I rowsort
SELECT DISTINCT 1 * - - 83 * - 70 + + 75
----
-5735

onlyif mysql # aggregate syntax: 
query II rowsort label-548
SELECT ALL + - COUNT( * ) * + MAX( DISTINCT + + 96 ) col0, + 57 AS col1
----
-96
57

skipif mysql # not compatible
query II rowsort label-548
SELECT ALL + - COUNT ( * ) * + MAX ( DISTINCT + + 96 ) col0, + 57 AS col1
----
-96
57

onlyif mysql # DIV for integer division: 
query I rowsort label-549
SELECT + + 65 DIV 21 * 97
----
291

skipif mysql # not compatible
query I rowsort label-549
SELECT + + 65 / 21 * 97
----
291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-550
SELECT ALL ( - 66 ) * + + CAST( + CASE 87 WHEN - 1 + CASE - + 49 WHEN - 74 THEN NULL WHEN COALESCE ( + - 98, 8 + - COUNT( * ) ) THEN NULL ELSE - 87 END THEN CAST( NULL AS SIGNED ) * - 76 ELSE NULL END AS SIGNED ) + MAX( DISTINCT + 1 - - 70 ) / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL ( - 66 ) * + + CAST ( + CASE 87 WHEN - 1 + CASE - + 49 WHEN - 74 THEN NULL WHEN COALESCE ( + - 98, 8 + - COUNT ( * ) ) THEN NULL ELSE - 87 END THEN CAST ( NULL AS INTEGER ) * - 76 ELSE NULL END AS INTEGER ) + MAX ( DISTINCT + 1 - - 70 ) / COUNT ( * ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT 63 * - 56 / + COUNT ( * ) + - COUNT ( * )
----
-3529

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

skipif mysql # not compatible
query I rowsort label-552
SELECT - + COUNT ( * ) * + - 64 + 33 / - 55
----
64

query I rowsort
SELECT + 58 + - - 69 AS col1
----
127

query I rowsort
SELECT ALL - 21 * + 33 - 16
----
-709

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

onlyif mysql # DIV for integer division: 
query I rowsort label-556
SELECT DISTINCT 60 - - - ( + 33 ) + 7 DIV + - 24
----
27

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT 60 - - - ( + 33 ) + 7 / + - 24
----
27

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

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

query II rowsort
SELECT + 38 + 2 * - 63 AS col2, 70
----
-88
70

query I rowsort
SELECT + 8 - + 59 AS col1
----
-51

query II rowsort
SELECT ALL - 11 AS col1, - 11 * + 19 AS col2
----
-11
-209

query I rowsort
SELECT DISTINCT 87 * + 9 col0
----
783

query II rowsort
SELECT ALL NULLIF ( - + 9, + 2 * 76 - - 70 / + CASE + 81 WHEN 35 THEN NULL WHEN + + 35 THEN - + 44 END ) * 40, + ( 85 ) + - + 68 AS col0
----
-360
17

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT ( + NULLIF ( MIN( DISTINCT 17 ), 25 ) ) + + 42 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-563
SELECT ( + NULLIF ( MIN ( DISTINCT 17 ), 25 ) ) + + 42 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT ALL MAX( 98 ) * - 79 AS col2
----
-7742

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL MAX ( 98 ) * - 79 AS col2
----
-7742

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT COUNT( * ) + + 21 - + 25 + + ( 91 )
----
88

skipif mysql # not compatible
query I rowsort label-565
SELECT COUNT ( * ) + + 21 - + 25 + + ( 91 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-566
SELECT CAST( NULL AS SIGNED ) + + MAX( + NULLIF ( + 16, + 0 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-566
SELECT CAST ( NULL AS INTEGER ) + + MAX ( + NULLIF ( + 16, + 0 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( + + 45, - - 42 ) * 90
----
4050

query II rowsort
SELECT ALL 48 AS col0, 40 - + 76
----
48
-36

query II rowsort
SELECT ALL - 71 AS col0, 58
----
-71
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-570
SELECT COUNT( * ) + - - 23 AS col1, CAST( + - 28 AS SIGNED )
----
24
-28

skipif mysql # not compatible
query II rowsort label-570
SELECT COUNT ( * ) + - - 23 AS col1, CAST ( + - 28 AS INTEGER )
----
24
-28

query I rowsort
SELECT 9 * - + 5 col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT ALL 73 DIV + - 49 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL 73 / + - 49 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-573
SELECT 16 / - 79 * + + MAX( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-573
SELECT 16 / - 79 * + + MAX ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-574
SELECT 51 DIV + + 77 * + SUM( - 58 )
----
0

skipif mysql # not compatible
query I rowsort label-574
SELECT 51 / + + 77 * + SUM ( - 58 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT DISTINCT 91 + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT 91 + COUNT ( * ) AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-576
SELECT 61 * - + CAST( 63 AS SIGNED ) AS col0
----
-3843

skipif mysql # not compatible
query I rowsort label-576
SELECT 61 * - + CAST ( 63 AS INTEGER ) AS col0
----
-3843

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT ALL - 37 + 68 - - 77 + - + 60 * - 44 * COUNT( DISTINCT - 38 ) * + + 47 AS col0
----
124188

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL - 37 + 68 - - 77 + - + 60 * - 44 * COUNT ( DISTINCT - 38 ) * + + 47 AS col0
----
124188

query I rowsort
SELECT ALL ( - - 79 ) + 51 * 20 + - + 41 + + - ( + 48 ) + + 44
----
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT ALL - 93 + + + COALESCE ( + 20, + - 0 * + - 62 + 91 + + + 83 - + 24 * + 55 - COUNT( 42 ) + 16 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL - 93 + + + COALESCE ( + 20, + - 0 * + - 62 + 91 + + + 83 - + 24 * + 55 - COUNT ( 42 ) + 16 ) AS col0
----
-73

query I rowsort
SELECT ALL + + 87 * + - 57
----
-4959

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-581
SELECT + 20 AS col0, 45 - - 53 * - 11 - + ( ( - - 53 ) ) DIV + 65 * + COUNT( * ) AS col1
----
20
-538

skipif mysql # not compatible
query II rowsort label-581
SELECT + 20 AS col0, 45 - - 53 * - 11 - + ( ( - - 53 ) ) / + 65 * + COUNT ( * ) AS col1
----
20
-538

onlyif mysql # aggregate syntax: 
query II rowsort label-582
SELECT - 90 + - COUNT( * ) AS col1, 15 AS col1
----
-91
15

skipif mysql # not compatible
query II rowsort label-582
SELECT - 90 + - COUNT ( * ) AS col1, 15 AS col1
----
-91
15

query I rowsort
SELECT DISTINCT - CASE - 14 WHEN - CASE 4 WHEN + + 11 THEN - + 37 END THEN NULL WHEN - 29 + + 16 THEN NULL ELSE - - 7 END AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-584
SELECT - CAST( NULL AS SIGNED ) - - - 67 + - 99 * - CASE - 68 WHEN - 14 THEN - ( - 27 ) WHEN 34 - - CASE 57 WHEN + 78 THEN - AVG ( DISTINCT + 90 ) ELSE NULL END THEN NULL ELSE - COUNT( * ) * + + 26 + - 61 END * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-584
SELECT - CAST ( NULL AS INTEGER ) - - - 67 + - 99 * - CASE - 68 WHEN - 14 THEN - ( - 27 ) WHEN 34 - - CASE 57 WHEN + 78 THEN - AVG ( DISTINCT + 90 ) ELSE NULL END THEN NULL ELSE - COUNT ( * ) * + + 26 + - 61 END * 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT ALL + + COUNT( * ) - - 73
----
74

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL + + COUNT ( * ) - - 73
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT + 79 + + - 5 * - 94 + - COUNT( * ) AS col0
----
548

skipif mysql # not compatible
query I rowsort label-586
SELECT + 79 + + - 5 * - 94 + - COUNT ( * ) AS col0
----
548

query II rowsort
SELECT DISTINCT NULLIF ( + + 97, AVG ( + 76 ) ) AS col1, ( 55 ) AS col1
----
97
55

query I rowsort
SELECT ALL - 3 * - 80 * + + 30 * 9 * 36
----
2332800

query I rowsort
SELECT + CASE 92 WHEN ( - 43 ) + - - 96 THEN NULL ELSE - - 41 * - NULLIF ( - 62, 40 ) * - + 97 END col0
----
-246574

query I rowsort
SELECT ALL + + 32 * - 7 AS col1
----
-224

query I rowsort
SELECT DISTINCT - 70 * - 22 * 95
----
146300

query I rowsort
SELECT - 45 * - 86 AS col0
----
3870

query I rowsort
SELECT 28 * - ( + - 86 )
----
2408

query I rowsort
SELECT ALL + 41 * 2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT DISTINCT MIN( ALL - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT MIN ( ALL - 44 )
----
-44

query II rowsort
SELECT ( + 34 ) * - - 44 AS col2, - 77
----
1496
-77

query I rowsort
SELECT ALL 86 * + + 56 * + 65 AS col0
----
313040

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

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

query I rowsort
SELECT 10 + - + 62 + 6 + - 55 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT 19 * - COUNT( ALL - - ( - 96 ) ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-600
SELECT 19 * - COUNT ( ALL - - ( - 96 ) ) col1
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT ALL ( 1 ) + + 14 + - MIN( DISTINCT 18 )
----
-3

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL ( 1 ) + + 14 + - MIN ( DISTINCT 18 )
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-604
SELECT DISTINCT + 86 * + - 5 * + ( + 93 ) + 51 + NULLIF ( - 29, - 7 ) * - CAST( NULL AS SIGNED ) / - - 34 * 77 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-604
SELECT DISTINCT + 86 * + - 5 * + ( + 93 ) + 51 + NULLIF ( - 29, - 7 ) * - CAST ( NULL AS INTEGER ) / - - 34 * 77 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT DISTINCT - NULLIF ( - + ( - + 20 ), - 11 ) * 32 + + 37 + + ( COUNT( * ) )
----
-602

skipif mysql # not compatible
query I rowsort label-605
SELECT DISTINCT - NULLIF ( - + ( - + 20 ), - 11 ) * 32 + + 37 + + ( COUNT ( * ) )
----
-602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-606
SELECT 70 * + NULLIF ( + ( - 98 ), 69 / + 69 * + 43 ), 31 + - 56 * + 8 * + COUNT( + CAST( NULL AS SIGNED ) ) col0
----
-6860
31

skipif mysql # not compatible
query II rowsort label-606
SELECT 70 * + NULLIF ( + ( - 98 ), 69 / + 69 * + 43 ), 31 + - 56 * + 8 * + COUNT ( + CAST ( NULL AS INTEGER ) ) col0
----
-6860
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-607
SELECT NULLIF ( CAST( NULL AS SIGNED ), + CASE + 11 WHEN + 21 * + 11 + COALESCE ( + - COUNT( * ), - + MIN( DISTINCT - 36 ) ) THEN + 69 - + + 40 - - CAST( NULL AS SIGNED ) * + 62 END ) + - + COUNT( ALL - 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-607
SELECT NULLIF ( CAST ( NULL AS INTEGER ), + CASE + 11 WHEN + 21 * + 11 + COALESCE ( + - COUNT ( * ), - + MIN ( DISTINCT - 36 ) ) THEN + 69 - + + 40 - - CAST ( NULL AS INTEGER ) * + 62 END ) + - + COUNT ( ALL - 84 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT - COUNT( * ) * + + MAX( ALL + COALESCE ( - 33, + 74 + + + 24 ) ) + - 99
----
-66

skipif mysql # not compatible
query I rowsort label-608
SELECT - COUNT ( * ) * + + MAX ( ALL + COALESCE ( - 33, + 74 + + + 24 ) ) + - 99
----
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-609
SELECT ALL - CAST( NULL AS DECIMAL ) * - - 56 - - + AVG ( ALL + 24 ) / + + CASE + - 32 WHEN + 56 + COUNT( * ) THEN 51 * + - 16 - - 45 END + + ( - - 20 ) + 87 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL - CAST ( NULL AS REAL ) * - - 56 - - + AVG ( ALL + 24 ) / + + CASE + - 32 WHEN + 56 + COUNT ( * ) THEN 51 * + - 16 - - 45 END + + ( - - 20 ) + 87 * - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT DISTINCT - COUNT( * ) * - 46 * + 54
----
2484

skipif mysql # not compatible
query I rowsort label-610
SELECT DISTINCT - COUNT ( * ) * - 46 * + 54
----
2484

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

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

query I rowsort
SELECT ALL - - ( - - 24 ) * 23
----
552

query I rowsort
SELECT ALL 15 - + - 37 col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-614
SELECT + - COALESCE ( 94, + + ( - - 10 ) + 90 * - 72, + 40 * COALESCE ( - + 89, CASE + + ( + + 23 ) WHEN + 22 + COUNT( * ) DIV - 6 THEN 96 + 99 * + 78 END + ( ( - 13 ) ), + 62 DIV COUNT( * ) ) + 66 ) col2
----
-94

skipif mysql # not compatible
query I rowsort label-614
SELECT + - COALESCE ( 94, + + ( - - 10 ) + 90 * - 72, + 40 * COALESCE ( - + 89, CASE + + ( + + 23 ) WHEN + 22 + COUNT ( * ) / - 6 THEN 96 + 99 * + 78 END + ( ( - 13 ) ), + 62 / COUNT ( * ) ) + 66 ) col2
----
-94

query I rowsort
SELECT + 20 + + 6 * + COALESCE ( + 61, - 10 )
----
386

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT ALL + SUM( + 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL + SUM ( + 82 ) AS col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-617
SELECT - COUNT( * ) - + - ( + COALESCE ( + - 45, - ( + CASE + 6 WHEN COUNT( * ) DIV - + 57 THEN - 22 ELSE - - 31 DIV - + 71 + + 60 DIV 68 * + + 98 END ) ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-617
SELECT - COUNT ( * ) - + - ( + COALESCE ( + - 45, - ( + CASE + 6 WHEN COUNT ( * ) / - + 57 THEN - 22 ELSE - - 31 / - + 71 + + 60 / 68 * + + 98 END ) ) ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT - - SUM( ALL + - 84 ) + 31
----
-53

skipif mysql # not compatible
query I rowsort label-618
SELECT - - SUM ( ALL + - 84 ) + 31
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT DISTINCT - CASE + - 95 WHEN 93 THEN NULL WHEN - + 46 + - MAX( DISTINCT + 21 ) THEN NULL ELSE + 47 END
----
-47

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT - CASE + - 95 WHEN 93 THEN NULL WHEN - + 46 + - MAX ( DISTINCT + 21 ) THEN NULL ELSE + 47 END
----
-47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-620
SELECT ALL COUNT( DISTINCT - CAST( + + 70 AS DECIMAL ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL COUNT ( DISTINCT - CAST ( + + 70 AS REAL ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT DISTINCT SUM( + + 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT SUM ( + + 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT ALL 86 + + 60 * + 11 - - SUM( - 80 )
----
666

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL 86 + + 60 * + 11 - - SUM ( - 80 )
----
666

query I rowsort
SELECT - 92 - 81 + + 1
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT ALL - ( 9 ) * + CASE - 10 WHEN + 43 * + 81 THEN - NULLIF ( 30, + COUNT( * ) * - - 85 + 4 ) * - 89 + - + COUNT( * ) - 89 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL - ( 9 ) * + CASE - 10 WHEN + 43 * + 81 THEN - NULLIF ( 30, + COUNT ( * ) * - - 85 + 4 ) * - 89 + - + COUNT ( * ) - 89 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-625
SELECT - 38 DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-625
SELECT - 38 / - 65 AS col2
----
0

query I rowsort
SELECT + 44 + 85
----
129

query I rowsort
SELECT ALL - NULLIF ( + ( 49 ), + 12 - - 9 ) + + - 4 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-628
SELECT - COUNT( * ) AS col1, 28 + - SUM( DISTINCT - 89 ) AS col1
----
-1
117

skipif mysql # not compatible
query II rowsort label-628
SELECT - COUNT ( * ) AS col1, 28 + - SUM ( DISTINCT - 89 ) AS col1
----
-1
117

query I rowsort
SELECT + 20 + + - ( + - 12 )
----
32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT - 8 + - 73 * + - 6 + - COUNT( * ) col2
----
429

skipif mysql # not compatible
query I rowsort label-631
SELECT - 8 + - 73 * + - 6 + - COUNT ( * ) col2
----
429

query I rowsort
SELECT - 84 + + + 75
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-633
SELECT ALL - CAST( - MAX( 85 ) AS SIGNED ) + + 74 col0
----
159

skipif mysql # not compatible
query I rowsort label-633
SELECT ALL - CAST ( - MAX ( 85 ) AS INTEGER ) + + 74 col0
----
159

query II rowsort
SELECT 57 AS col1, + 93
----
57
93

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

query I rowsort
SELECT - 48 * - 98 * - 71 * + 72 * 3 AS col2
----
-72140544

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT CASE ( + + 14 ) WHEN 84 * + - 34 THEN 90 * - + 26 END * - 34 + + 22 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-637
SELECT CASE ( + + 14 ) WHEN 84 * + - 34 THEN 90 * - + 26 END * - 34 + + 22 * + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT + 26 AS col1, 75
----
26
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-639
SELECT ( + + COALESCE ( + CAST( + CASE - - 59 WHEN + + 19 THEN 42 END AS SIGNED ), + - 0 * + 82 + 73 + - NULLIF ( + 15, + 85 ), - + 76 * + CAST( + 33 AS SIGNED ) * - 58 - + + 84 * 42 + - ( 96 ), + MIN( ALL - 0 ) ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-639
SELECT ( + + COALESCE ( + CAST ( + CASE - - 59 WHEN + + 19 THEN 42 END AS INTEGER ), + - 0 * + 82 + 73 + - NULLIF ( + 15, + 85 ), - + 76 * + CAST ( + 33 AS INTEGER ) * - 58 - + + 84 * 42 + - ( 96 ), + MIN ( ALL - 0 ) ) ) AS col1
----
58

query I rowsort
SELECT + + 92 + - ( 50 )
----
42

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

query I rowsort
SELECT ALL 8 * - 9 AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-643
SELECT + COUNT( * ) DIV - 64 + + 45 * + 19 * + + 21 + 61 * - 87 AS col2
----
12648

skipif mysql # not compatible
query I rowsort label-643
SELECT + COUNT ( * ) / - 64 + + 45 * + 19 * + + 21 + 61 * - 87 AS col2
----
12648

onlyif mysql # aggregate syntax: 
query II rowsort label-644
SELECT DISTINCT + NULLIF ( + - 12, 67 ), + COUNT( * ) AS col1
----
-12
1

skipif mysql # not compatible
query II rowsort label-644
SELECT DISTINCT + NULLIF ( + - 12, 67 ), + COUNT ( * ) AS col1
----
-12
1

query I rowsort
SELECT + - 76 + - 69
----
-145

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT ALL - 70 DIV 29
----
-2

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL - 70 / 29
----
-2

query I rowsort
SELECT + 18 * + 19 * - - 33 + + 25
----
11311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-648
SELECT + CASE + MAX( + 91 ) WHEN - + CAST( NULL AS SIGNED ) THEN - + 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT + CASE + MAX ( + 91 ) WHEN - + CAST ( NULL AS INTEGER ) THEN - + 83 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT + - COUNT( * ) * 82 * - CASE + - 15 WHEN 29 + - + 75 + - COUNT( * ) THEN - 81 * 12 * + MIN( 86 ) + + + ( + 11 ) END * - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT + - COUNT ( * ) * 82 * - CASE + - 15 WHEN 29 + - + 75 + - COUNT ( * ) THEN - 81 * 12 * + MIN ( 86 ) + + + ( + 11 ) END * - 47 AS col1
----
NULL

query I rowsort
SELECT + + 40 * + - 65
----
-2600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-651
SELECT ALL - - 3 * 63 - 39 + - CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL - - 3 * 63 - 39 + - CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 33 * 20 * 40
----
26400

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT ALL + 58 * COUNT( * ) + - 12
----
46

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL + 58 * COUNT ( * ) + - 12
----
46

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

skipif mysql # not compatible
query I rowsort label-654
SELECT COUNT ( 83 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT - SUM( 72 ) + 16 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-655
SELECT - SUM ( 72 ) + 16 AS col1
----
-56

query I rowsort
SELECT + 62 * + 40 AS col2
----
2480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-657
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) / + - 46 + - + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-657
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) / + - 46 + - + 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT ALL + COUNT( * ) * + 80 + + - 49
----
31

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL + COUNT ( * ) * + 80 + + - 49
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-659
SELECT - CAST( - 32 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-659
SELECT - CAST ( - 32 AS INTEGER )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL + COALESCE ( + 53, CASE - + 93 WHEN 33 * + - 70 THEN NULL WHEN + 54 + ( 80 ) * - - 38 THEN NULL WHEN + 37 THEN NULL ELSE + MAX( + ( + 32 ) ) * 55 - + 68 * 2 END * 6, + 91 ) + + NULLIF ( 95 + ( - 57 ), - 73 + - 58 )
----
91

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL + COALESCE ( + 53, CASE - + 93 WHEN 33 * + - 70 THEN NULL WHEN + 54 + ( 80 ) * - - 38 THEN NULL WHEN + 37 THEN NULL ELSE + MAX ( + ( + 32 ) ) * 55 - + 68 * 2 END * 6, + 91 ) + + NULLIF ( 95 + ( - 57 ), - 73 + - 58 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-661
SELECT - CAST( - 15 AS SIGNED ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-661
SELECT - CAST ( - 15 AS INTEGER ) AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-662
SELECT DISTINCT ( 59 ) + NULLIF ( - 56, - + CASE - 36 WHEN + + 38 THEN - 44 * - CAST( + + 1 AS SIGNED ) * 14 + 51 WHEN + CAST( NULL AS SIGNED ) * - 2 + NULLIF ( 6, ( - ( - 97 ) ) ) + 35 / 79 + 92 THEN - 30 WHEN 13 THEN 33 WHEN ( + 87 ) * - 61 + 2 THEN NULL END * COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT ( 59 ) + NULLIF ( - 56, - + CASE - 36 WHEN + + 38 THEN - 44 * - CAST ( + + 1 AS INTEGER ) * 14 + 51 WHEN + CAST ( NULL AS INTEGER ) * - 2 + NULLIF ( 6, ( - ( - 97 ) ) ) + 35 / 79 + 92 THEN - 30 WHEN 13 THEN 33 WHEN ( + 87 ) * - 61 + 2 THEN NULL END * COUNT ( * ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT DISTINCT CASE WHEN NOT 4 NOT BETWEEN - CASE + 23 WHEN - + CASE + 63 WHEN 13 THEN - + COUNT( * ) * + COUNT( ALL - 82 ) + - + 91 ELSE CASE + 97 WHEN ( + - SUM( ALL - 37 ) ) + + NULLIF ( - 20, 42 - ( ( 79 ) ) * 9 ) * 21 THEN NULL ELSE - 74 - 41 END / + 21 END THEN - COUNT( * ) ELSE 13 END AND + 11 + 35 THEN NULL WHEN NOT NULL IS NOT NULL THEN 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT CASE WHEN NOT 4 NOT BETWEEN - CASE + 23 WHEN - + CASE + 63 WHEN 13 THEN - + COUNT ( * ) * + COUNT ( ALL - 82 ) + - + 91 ELSE CASE + 97 WHEN ( + - SUM ( ALL - 37 ) ) + + NULLIF ( - 20, 42 - ( ( 79 ) ) * 9 ) * 21 THEN NULL ELSE - 74 - 41 END / + 21 END THEN - COUNT ( * ) ELSE 13 END AND + 11 + 35 THEN NULL WHEN NOT NULL IS NOT NULL THEN 45 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-664
SELECT ALL + 33 DIV - 11 col1
----
-3

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL + 33 / - 11 col1
----
-3

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

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

query I rowsort
SELECT + 73 + NULLIF ( 85, 74 ) AS col2
----
158

query I rowsort
SELECT ALL + 16 * ( - + 48 )
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT - SUM( ALL 76 ) * - 44 col0
----
3344

skipif mysql # not compatible
query I rowsort label-668
SELECT - SUM ( ALL 76 ) * - 44 col0
----
3344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-669
SELECT - ( - 57 ) + - COUNT( - 12 ) * + COUNT( * ) * - CASE - + 54 WHEN + COUNT( * ) THEN + 80 DIV CASE + - 26 WHEN 77 THEN NULL ELSE + - 50 * - - COUNT( * ) + 23 END ELSE + 72 END
----
129

skipif mysql # not compatible
query I rowsort label-669
SELECT - ( - 57 ) + - COUNT ( - 12 ) * + COUNT ( * ) * - CASE - + 54 WHEN + COUNT ( * ) THEN + 80 / CASE + - 26 WHEN 77 THEN NULL ELSE + - 50 * - - COUNT ( * ) + 23 END ELSE + 72 END
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-670
SELECT ALL - 43 - - COUNT( * ) AS col2, 82 AS col1
----
-42
82

skipif mysql # not compatible
query II rowsort label-670
SELECT ALL - 43 - - COUNT ( * ) AS col2, 82 AS col1
----
-42
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-671
SELECT DISTINCT CAST( - 98 AS SIGNED ) AS col1, + 17
----
-98
17

skipif mysql # not compatible
query II rowsort label-671
SELECT DISTINCT CAST ( - 98 AS INTEGER ) AS col1, + 17
----
-98
17

query I rowsort
SELECT - CASE 3 WHEN - 51 THEN NULL WHEN + 52 THEN ( 77 ) * 28 + - 77 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( ( 12 ) ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT - MAX( DISTINCT - 86 ) * - 9
----
-774

skipif mysql # not compatible
query I rowsort label-674
SELECT - MAX ( DISTINCT - 86 ) * - 9
----
-774

query I rowsort
SELECT - + 62 + ( 86 ) AS col0
----
24

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

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT + + COUNT ( - 48 ) AS col0
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-678
SELECT - ( + + COUNT ( * ) ) + + 32 AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT COALESCE ( + 29, 54 ) - - - 48 DIV - 91 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-679
SELECT COALESCE ( + 29, 54 ) - - - 48 / - 91 AS col2
----
29

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

skipif mysql # not compatible
query I rowsort label-680
SELECT 34 * - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT DISTINCT - MIN( + - 92 ) + + 6 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-681
SELECT DISTINCT - MIN ( + - 92 ) + + 6 AS col0
----
98

query I rowsort
SELECT 83 + + ( - 76 )
----
7

query I rowsort
SELECT ALL + 81 * - 37
----
-2997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-684
SELECT 13 * - MAX( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT + 48 * - + 40 col2
----
-1920

query I rowsort
SELECT ALL 22 + - - 0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-687
SELECT 62 * - - CAST( NULL AS SIGNED ) * - 24 * + 42 + 3 + - + 83 + + 90 + + CASE - 23 WHEN + 44 THEN + 72 WHEN - COUNT( * ) * - 0 + + ( 89 ) + + NULLIF ( + NULLIF ( + + 74, + - 59 ), - ( 92 ) ) + COALESCE ( 48, 7 ) * - 66 THEN COUNT( * ) ELSE NULL END * + 94 * 84 * + 2 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-687
SELECT 62 * - - CAST ( NULL AS INTEGER ) * - 24 * + 42 + 3 + - + 83 + + 90 + + CASE - 23 WHEN + 44 THEN + 72 WHEN - COUNT ( * ) * - 0 + + ( 89 ) + + NULLIF ( + NULLIF ( + + 74, + - 59 ), - ( 92 ) ) + COALESCE ( 48, 7 ) * - 66 THEN COUNT ( * ) ELSE NULL END * + 94 * 84 * + 2 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-688
SELECT - 58 * + 86 + ( CASE MAX( - + 28 ) WHEN - + CASE + 83 WHEN CASE + ( 25 ) WHEN - - 96 THEN NULL WHEN - - 66 THEN - + CASE - 20 WHEN + CAST( NULL AS SIGNED ) + - + COUNT( * ) THEN NULL WHEN + + 38 THEN + CAST( NULL AS SIGNED ) * - 53 / 75 END + - 88 ELSE NULL END THEN 57 + COUNT( - 65 ) END THEN 51 * 7 WHEN - 98 THEN NULL WHEN 70 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-688
SELECT - 58 * + 86 + ( CASE MAX ( - + 28 ) WHEN - + CASE + 83 WHEN CASE + ( 25 ) WHEN - - 96 THEN NULL WHEN - - 66 THEN - + CASE - 20 WHEN + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) THEN NULL WHEN + + 38 THEN + CAST ( NULL AS INTEGER ) * - 53 / 75 END + - 88 ELSE NULL END THEN 57 + COUNT ( - 65 ) END THEN 51 * 7 WHEN - 98 THEN NULL WHEN 70 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT ( ( - 12 ) ) * + 75 AS col2
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT ALL ( - SUM( ALL - - 55 ) ) + + + 56 + + ( 79 )
----
80

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL ( - SUM ( ALL - - 55 ) ) + + + 56 + + ( 79 )
----
80

query I rowsort
SELECT 19 + - - 38 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT ALL 27 + + + 28 + - MIN( ALL - ( 51 ) ) AS col2
----
106

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL 27 + + + 28 + - MIN ( ALL - ( 51 ) ) AS col2
----
106

query I rowsort
SELECT ( - 54 ) + + - COALESCE ( 32, + + 4 + NULLIF ( 50, + 84 ) ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT ALL ( - 53 ) + COUNT( * ) * - 81 * - + 70 AS col1
----
5617

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL ( - 53 ) + COUNT ( * ) * - 81 * - + 70 AS col1
----
5617

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT ALL COUNT( * ) - - - 89
----
-88

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL COUNT ( * ) - - - 89
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT ALL 20 * + COUNT( * ) * - 25
----
-500

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL 20 * + COUNT ( * ) * - 25
----
-500

query I rowsort
SELECT ALL - 74 - - - 97
----
-171

query I rowsort
SELECT 60 * + 67
----
4020

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT ALL CASE 33 WHEN - 81 * ( + COUNT( * ) ) THEN NULL WHEN 37 THEN + - 3 END * 42 * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL CASE 33 WHEN - 81 * ( + COUNT ( * ) ) THEN NULL WHEN 37 THEN + - 3 END * 42 * 99
----
NULL

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

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

query I rowsort
SELECT ALL 61 - - - ( - 34 ) * - 48 - + - 65
----
-1506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-702
SELECT 82 AS col2, + 93 / - CASE + 30 WHEN 10 + + + 29 THEN - + 49 / + NULLIF ( 11, 85 ) * 8 * + + 45 + 20 + 18 * - - MAX( ALL - 60 ) * + 29 + + CAST( NULL AS SIGNED ) * - + CASE - 80 WHEN 36 + 21 THEN - 52 WHEN 90 * - 0 THEN - 58 ELSE NULL END END + - 44 / 25
----
82
NULL

skipif mysql # not compatible
query II rowsort label-702
SELECT 82 AS col2, + 93 / - CASE + 30 WHEN 10 + + + 29 THEN - + 49 / + NULLIF ( 11, 85 ) * 8 * + + 45 + 20 + 18 * - - MAX ( ALL - 60 ) * + 29 + + CAST ( NULL AS INTEGER ) * - + CASE - 80 WHEN 36 + 21 THEN - 52 WHEN 90 * - 0 THEN - 58 ELSE NULL END END + - 44 / 25
----
82
NULL

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

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

query I rowsort
SELECT DISTINCT 66 * 5 AS col2
----
330

onlyif mysql # DIV for integer division: 
query I rowsort label-705
SELECT ALL + 81 DIV + 29
----
2

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL + 81 / + 29
----
2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-707
SELECT - 98 + + - ( + ( COUNT( * ) ) ) + + 72 DIV 14 + - 51 col1
----
-145

skipif mysql # not compatible
query I rowsort label-707
SELECT - 98 + + - ( + ( COUNT ( * ) ) ) + + 72 / 14 + - 51 col1
----
-145

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-709
SELECT ALL + CAST( NULL AS SIGNED ) / - AVG ( ALL - + 73 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL + CAST ( NULL AS INTEGER ) / - AVG ( ALL - + 73 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT ( - + MAX( DISTINCT - - 60 ) ) * - - 56
----
-3360

skipif mysql # not compatible
query I rowsort label-710
SELECT ( - + MAX ( DISTINCT - - 60 ) ) * - - 56
----
-3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-711
SELECT 51 * + - 62 + COALESCE ( - 55, - 86 * + CASE - 26 WHEN + 1 * 81 + - 98 + + + 73 THEN + ( - 17 ) + 15 DIV + - COUNT( + 73 ) WHEN - - 56 * - 5 THEN NULLIF ( + 19, 39 ) END * + 62, + CASE - 89 WHEN + 1 * 81 THEN 4 DIV + 27 + SUM( ALL 3 ) WHEN - 88 THEN NULL ELSE NULL END + + ( + COUNT( 89 ) ) ) * 11
----
-3767

skipif mysql # not compatible
query I rowsort label-711
SELECT 51 * + - 62 + COALESCE ( - 55, - 86 * + CASE - 26 WHEN + 1 * 81 + - 98 + + + 73 THEN + ( - 17 ) + 15 / + - COUNT ( + 73 ) WHEN - - 56 * - 5 THEN NULLIF ( + 19, 39 ) END * + 62, + CASE - 89 WHEN + 1 * 81 THEN 4 / + 27 + SUM ( ALL 3 ) WHEN - 88 THEN NULL ELSE NULL END + + ( + COUNT ( 89 ) ) ) * 11
----
-3767

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT DISTINCT + 87 * 75 + - - COUNT( ALL + ( - 68 ) ) AS col2
----
6526

skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT + 87 * 75 + - - COUNT ( ALL + ( - 68 ) ) AS col2
----
6526

query I rowsort
SELECT ALL + 96 + - 36 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT 36 + + - COUNT( DISTINCT - 64 ) + + 5
----
40

skipif mysql # not compatible
query I rowsort label-714
SELECT 36 + + - COUNT ( DISTINCT - 64 ) + + 5
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT DISTINCT + - COUNT( * ) + 72 * - 65 + - 69 col0
----
-4750

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT + - COUNT ( * ) + 72 * - 65 + - 69 col0
----
-4750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-716
SELECT ALL - - 85 DIV COUNT( * ) - - 50 * 81 AS col2
----
4135

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL - - 85 / COUNT ( * ) - - 50 * 81 AS col2
----
4135

onlyif mysql # DIV for integer division: 
query II rowsort label-717
SELECT ALL - 93 + - 44 + + NULLIF ( 88, 98 ) + + + COALESCE ( + - COALESCE ( + + 83, + 78 ), 8 DIV + 35 * 11 + - + ( - 32 ) + - 24 + + 33 DIV 67 ) - 38 AS col2, 90
----
-170
90

skipif mysql # not compatible
query II rowsort label-717
SELECT ALL - 93 + - 44 + + NULLIF ( 88, 98 ) + + + COALESCE ( + - COALESCE ( + + 83, + 78 ), 8 / + 35 * 11 + - + ( - 32 ) + - 24 + + 33 / 67 ) - 38 AS col2, 90
----
-170
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-718
SELECT ( + - CAST( - + COUNT( * ) AS SIGNED ) ) * - - COUNT( ALL - ( 38 ) ) * + COALESCE ( - 46, + - 1 )
----
-46

skipif mysql # not compatible
query I rowsort label-718
SELECT ( + - CAST ( - + COUNT ( * ) AS INTEGER ) ) * - - COUNT ( ALL - ( 38 ) ) * + COALESCE ( - 46, + - 1 )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-719
SELECT - - 99 * CAST( NULL AS SIGNED ) * + 86 + + COUNT( - 2 ) + - - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-719
SELECT - - 99 * CAST ( NULL AS INTEGER ) * + 86 + + COUNT ( - 2 ) + - - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT COUNT( * ) + + 35 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-720
SELECT COUNT ( * ) + + 35 AS col1
----
36

query I rowsort
SELECT ALL - - 68 + + 77
----
145

query I rowsort
SELECT ALL - + COALESCE ( - 4, + 31 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-723
SELECT DISTINCT CAST( - NULLIF ( - 49, - - 45 * + COUNT( DISTINCT + - CASE - 72 WHEN - - 18 THEN 68 ELSE NULL END ) + - 72 / - COUNT( 83 ) ) AS SIGNED ) * - CASE 42 WHEN - NULLIF ( + - 76, - + 18 + + 10 ) THEN NULL WHEN + + 76 + + 96 + + - 4 + - 81 * 37 / 87 THEN + 33 * 25 + - 20 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT CAST ( - NULLIF ( - 49, - - 45 * + COUNT ( DISTINCT + - CASE - 72 WHEN - - 18 THEN 68 ELSE NULL END ) + - 72 / - COUNT ( 83 ) ) AS INTEGER ) * - CASE 42 WHEN - NULLIF ( + - 76, - + 18 + + 10 ) THEN NULL WHEN + + 76 + + 96 + + - 4 + - 81 * 37 / 87 THEN + 33 * 25 + - 20 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT DISTINCT 86 - + - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT 86 - + - COUNT ( * )
----
87

query I rowsort
SELECT ALL 21 - 46
----
-25

query II rowsort
SELECT ALL - 19 AS col1, 24 AS col0
----
-19
24

query II rowsort
SELECT + 43 AS col1, - 42
----
43
-42

query II rowsort
SELECT ALL 96, + 66 * - 8 - + 99 AS col0
----
96
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT ( 53 ) * + 33 * - CASE + 83 WHEN + 14 THEN NULL WHEN - + 60 * - 18 * - + 44 + - 69 + + + ( + + 21 ) + - MIN( ALL + ( - ( 41 ) ) ) THEN + - 31 * - + 0 ELSE - 84 END AS col2
----
146916

skipif mysql # not compatible
query I rowsort label-729
SELECT ( 53 ) * + 33 * - CASE + 83 WHEN + 14 THEN NULL WHEN - + 60 * - 18 * - + 44 + - 69 + + + ( + + 21 ) + - MIN ( ALL + ( - ( 41 ) ) ) THEN + - 31 * - + 0 ELSE - 84 END AS col2
----
146916

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

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

query II rowsort
SELECT 73 AS col2, 15
----
73
15

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-733
SELECT ALL 61 - CAST( - 89 AS SIGNED )
----
150

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL 61 - CAST ( - 89 AS INTEGER )
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-734
SELECT 86, NULLIF ( + CASE - COUNT( * ) WHEN - + CAST( 26 AS SIGNED ) THEN NULL WHEN + COUNT( * ) * + - ( + + COUNT( * ) ) - + 75 THEN NULL WHEN + + 12 THEN - 50 - ( - COUNT( - 48 ) ) * + 36 END, 28 * + + 37 + 31 ) AS col1
----
86
NULL

skipif mysql # not compatible
query II rowsort label-734
SELECT 86, NULLIF ( + CASE - COUNT ( * ) WHEN - + CAST ( 26 AS INTEGER ) THEN NULL WHEN + COUNT ( * ) * + - ( + + COUNT ( * ) ) - + 75 THEN NULL WHEN + + 12 THEN - 50 - ( - COUNT ( - 48 ) ) * + 36 END, 28 * + + 37 + 31 ) AS col1
----
86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT 60 - SUM( DISTINCT 5 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-735
SELECT 60 - SUM ( DISTINCT 5 ) AS col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-736
SELECT DISTINCT 55 DIV + + 17 * - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT 55 / + + 17 * - COUNT ( * )
----
-3

query I rowsort
SELECT ALL CASE - 82 WHEN AVG ( + 77 ) THEN NULL ELSE - 92 END
----
-92

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

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

query I rowsort
SELECT + 95 * 74 AS col1
----
7030

query I rowsort
SELECT ALL 7 * 52
----
364

onlyif mysql # DIV for integer division: 
query I rowsort label-741
SELECT DISTINCT 19 DIV + 68 * - 55
----
0

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT 19 / + 68 * - 55
----
0

query I rowsort
SELECT + + 60 + + 82 * 36 AS col1
----
3012

query I rowsort
SELECT ALL 88 * - 67
----
-5896

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-744
SELECT DISTINCT 86 AS col2, + 8 DIV COUNT( 50 ) AS col1
----
86
8

skipif mysql # not compatible
query II rowsort label-744
SELECT DISTINCT 86 AS col2, + 8 / COUNT ( 50 ) AS col1
----
86
8

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

query II rowsort
SELECT - 30, ( - 86 ) AS col1
----
-30
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-747
SELECT 39, COALESCE ( ( + 44 ), 24 + + - 11, - 84 ) * - + CASE 66 WHEN + CAST( - 72 AS SIGNED ) THEN NULL WHEN 83 THEN NULL ELSE + 97 END col2
----
39
-4268

skipif mysql # not compatible
query II rowsort label-747
SELECT 39, COALESCE ( ( + 44 ), 24 + + - 11, - 84 ) * - + CASE 66 WHEN + CAST ( - 72 AS INTEGER ) THEN NULL WHEN 83 THEN NULL ELSE + 97 END col2
----
39
-4268

query I rowsort
SELECT + ( - 85 ) - + 38 AS col0
----
-123

query I rowsort
SELECT ALL 54 * - ( - 49 ) AS col1
----
2646

onlyif mysql # aggregate syntax: 
query II rowsort label-750
SELECT DISTINCT + 33 AS col0, - 49 + - COUNT( * )
----
33
-50

skipif mysql # not compatible
query II rowsort label-750
SELECT DISTINCT + 33 AS col0, - 49 + - COUNT ( * )
----
33
-50

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

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT - 16 * + COUNT ( * ) + - - 27 AS col2
----
11

query I rowsort
SELECT ALL - - 82 * 62 + 11
----
5095

query I rowsort
SELECT ALL + + 16 * 97 + + + 79 * 92 AS col0
----
8820

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT + + ( MAX( - + 76 ) ) + - + 93 * - 48 * - - 42
----
187412

skipif mysql # not compatible
query I rowsort label-754
SELECT + + ( MAX ( - + 76 ) ) + - + 93 * - 48 * - - 42
----
187412

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-757
SELECT + - 30 AS col2, + MAX( ALL 65 ) DIV + 83
----
-30
0

skipif mysql # not compatible
query II rowsort label-757
SELECT + - 30 AS col2, + MAX ( ALL 65 ) / + 83
----
-30
0

query I rowsort
SELECT ALL - 98 * - - 66 * + 64
----
-413952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-759
SELECT COALESCE ( - + CAST( NULL AS SIGNED ), - + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-759
SELECT COALESCE ( - + CAST ( NULL AS INTEGER ), - + 56 )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-760
SELECT MAX( + 51 ) * 14 * 65 * COALESCE ( - ( + MAX( ALL 67 ) ), - - NULLIF ( - - COUNT( * ), - 29 - + - 17 ) * + 50 ) + + + 56 + + 30 DIV - 68
----
-3109414

skipif mysql # not compatible
query I rowsort label-760
SELECT MAX ( + 51 ) * 14 * 65 * COALESCE ( - ( + MAX ( ALL 67 ) ), - - NULLIF ( - - COUNT ( * ), - 29 - + - 17 ) * + 50 ) + + + 56 + + 30 / - 68
----
-3109414

onlyif mysql # aggregate syntax: 
query II rowsort label-761
SELECT ALL 98 * 66 AS col1, - COUNT( * )
----
6468
-1

skipif mysql # not compatible
query II rowsort label-761
SELECT ALL 98 * 66 AS col1, - COUNT ( * )
----
6468
-1

query I rowsort
SELECT COALESCE ( ( - + 43 ), - + 53 ) AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-763
SELECT DISTINCT + CASE + 9 WHEN + ( + 58 ) * + - 54 + + + 8 THEN + 41 * - COALESCE ( COUNT( * ), - - 76 DIV + CASE 55 WHEN + 76 + - - 49 * - - CASE 14 WHEN - + CASE WHEN - AVG ( DISTINCT - 39 ) BETWEEN ( - 49 * 40 + + 64 ) AND ( NULL ) THEN NULL WHEN NOT NULL IS NOT NULL THEN 25 END * - ( 73 DIV + 33 ) THEN + MAX( ALL + 98 ) ELSE 38 END THEN NULL WHEN CASE + 39 WHEN - COALESCE ( - 21, CASE COUNT( * ) WHEN + 3 THEN 7 ELSE + COUNT( * ) END + + 67 ) * - 13 + + COUNT( * ) THEN 71 WHEN + MAX( ALL 53 ) + - CASE - COUNT( 51 ) WHEN 93 + CASE + 19 WHEN COUNT( * ) - 97 * - 76 THEN - 6 + 32 END * + 55 THEN + 89 WHEN + 43 THEN NULL END DIV - CAST( - COUNT( * ) DIV 39 AS SIGNED ) THEN NULL END THEN NULL ELSE - 34 * + 69 + 34 END + 92 ) ELSE + 60 + COUNT( * ) END * - COUNT( * ) - + ( + NULLIF ( 78, COUNT( * ) ) )
----
-139

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT + CASE + 9 WHEN + ( + 58 ) * + - 54 + + + 8 THEN + 41 * - COALESCE ( COUNT ( * ), - - 76 / + CASE 55 WHEN + 76 + - - 49 * - - CASE 14 WHEN - + CASE WHEN - AVG ( DISTINCT - 39 ) BETWEEN ( - 49 * 40 + + 64 ) AND ( NULL ) THEN NULL WHEN NOT NULL IS NOT NULL THEN 25 END * - ( 73 / + 33 ) THEN + MAX ( ALL + 98 ) ELSE 38 END THEN NULL WHEN CASE + 39 WHEN - COALESCE ( - 21, CASE COUNT ( * ) WHEN + 3 THEN 7 ELSE + COUNT ( * ) END + + 67 ) * - 13 + + COUNT ( * ) THEN 71 WHEN + MAX ( ALL 53 ) + - CASE - COUNT ( 51 ) WHEN 93 + CASE + 19 WHEN COUNT ( * ) - 97 * - 76 THEN - 6 + 32 END * + 55 THEN + 89 WHEN + 43 THEN NULL END / - CAST ( - COUNT ( * ) / 39 AS INTEGER ) THEN NULL END THEN NULL ELSE - 34 * + 69 + 34 END + 92 ) ELSE + 60 + COUNT ( * ) END * - COUNT ( * ) - + ( + NULLIF ( 78, COUNT ( * ) ) )
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT - 62 * - CASE + - 73 WHEN - 31 THEN NULL WHEN - 83 THEN - - COUNT( * ) + + + 33 + - COUNT( * ) END * + + 81 * - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-764
SELECT - 62 * - CASE + - 73 WHEN - 31 THEN NULL WHEN - 83 THEN - - COUNT ( * ) + + + 33 + - COUNT ( * ) END * + + 81 * - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - ( - 83 ) * - 42 + 82
----
-3404

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

skipif mysql # not compatible
query I rowsort label-766
SELECT - COUNT ( * ) * 1 / - 90 + ( - + 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT + COUNT( ALL - + NULLIF ( - 16, - 49 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-767
SELECT + COUNT ( ALL - + NULLIF ( - 16, - 49 ) ) AS col1
----
1

query I rowsort
SELECT ALL + NULLIF ( 68, - 44 )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-769
SELECT + COUNT( 17 ) AS col0, - 39 col1
----
1
-39

skipif mysql # not compatible
query II rowsort label-769
SELECT + COUNT ( 17 ) AS col0, - 39 col1
----
1
-39

query II rowsort
SELECT ALL ( 38 ) AS col2, ( - 92 ) * 57 * - 86
----
38
450984

query II rowsort
SELECT - 2 * - 43 AS col1, + 77 * - 18 AS col2
----
86
-1386

query I rowsort
SELECT ALL - 84 * - 23
----
1932

query I rowsort
SELECT DISTINCT 31 * + + ( 69 )
----
2139

query II rowsort
SELECT DISTINCT - 3 * 16 AS col0, 15 * + 64
----
-48
960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT - COALESCE ( + 18, 10, + COUNT( * ) )
----
-18

skipif mysql # not compatible
query I rowsort label-776
SELECT - COALESCE ( + 18, 10, + COUNT ( * ) )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT DISTINCT - 67 + 16 * - + MIN( ALL - 98 )
----
1501

skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT - 67 + 16 * - + MIN ( ALL - 98 )
----
1501

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT DISTINCT + SUM( - 24 ) + + + 14
----
-10

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT + SUM ( - 24 ) + + + 14
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-780
SELECT ALL 99 + CASE + - 34 WHEN COUNT( * ) THEN NULL WHEN + 94 THEN - MAX( + + 23 ) + - 81 + COUNT( * ) - + 33 - - ( 67 ) + + SUM( DISTINCT - + 4 ) WHEN ( - - 72 ) + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + 70 - + COALESCE ( - 86, - ( 61 ) ) * + COUNT( * ) / + 60 THEN NULL ELSE 64 + + NULLIF ( 92, CAST( NULL AS SIGNED ) ) END AS col2
----
255

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL 99 + CASE + - 34 WHEN COUNT ( * ) THEN NULL WHEN + 94 THEN - MAX ( + + 23 ) + - 81 + COUNT ( * ) - + 33 - - ( 67 ) + + SUM ( DISTINCT - + 4 ) WHEN ( - - 72 ) + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + 70 - + COALESCE ( - 86, - ( 61 ) ) * + COUNT ( * ) / + 60 THEN NULL ELSE 64 + + NULLIF ( 92, CAST ( NULL AS INTEGER ) ) END AS col2
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT + - COUNT( * ) + 68 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-781
SELECT + - COUNT ( * ) + 68 AS col2
----
67

query I rowsort
SELECT ALL + 37 * - 60
----
-2220

onlyif mysql # DIV for integer division: 
query II rowsort label-783
SELECT DISTINCT - - 76 + - 45 AS col0, 2 DIV 62 * 48
----
31
0

skipif mysql # not compatible
query II rowsort label-783
SELECT DISTINCT - - 76 + - 45 AS col0, 2 / 62 * 48
----
31
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT + - MAX( - 71 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-784
SELECT + - MAX ( - 71 ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-785
SELECT + 49 * 35 AS col2, + 98 + - - 13 + + 37 AS col0, + + 50 DIV - - 9
----
1715
148
5

skipif mysql # not compatible
query III rowsort label-785
SELECT + 49 * 35 AS col2, + 98 + - - 13 + + 37 AS col0, + + 50 / - - 9
----
1715
148
5

onlyif mysql # aggregate syntax: 
query II rowsort label-786
SELECT + 18 + - + 52 AS col2, MIN( DISTINCT + 57 ) - 92
----
-34
-35

skipif mysql # not compatible
query II rowsort label-786
SELECT + 18 + - + 52 AS col2, MIN ( DISTINCT + 57 ) - 92
----
-34
-35

query I rowsort
SELECT ALL 88 * + COALESCE ( - - 86, + 97 * NULLIF ( 72, 7 ) + 13 + - 56 ) AS col0
----
7568

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT - - 47 * 54 + - 92 + - 64 * 9 * - - 67 * + COUNT( 20 ) + - 9 AS col2
----
-36155

skipif mysql # not compatible
query I rowsort label-788
SELECT - - 47 * 54 + - 92 + - 64 * 9 * - - 67 * + COUNT ( 20 ) + - 9 AS col2
----
-36155

query I rowsort
SELECT DISTINCT 6 * + 66 * + 6 * - - 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-790
SELECT ALL - 83 DIV 79 + + 86 + - 5 + + ( 64 ) * 67 - + 53
----
4315

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL - 83 / 79 + + 86 + - 5 + + ( 64 ) * 67 - + 53
----
4315

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-791
SELECT ALL + 41 * - CAST( NULL AS DECIMAL ) + - 98 * - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL + 41 * - CAST ( NULL AS REAL ) + - 98 * - 93 AS col2
----
NULL

query II rowsort
SELECT + + 30 + + 50, - 29 AS col0
----
80
-29

query I rowsort
SELECT + 86 * - 72 AS col0
----
-6192

query I rowsort
SELECT ALL - 79 * 7 * 80 * + ( + 40 ) * 43 + + 55 AS col0
----
-76092745

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT + ( + 65 ) * - 54 + COUNT( * ) - + - COALESCE ( 14, - 17 )
----
-3495

skipif mysql # not compatible
query I rowsort label-795
SELECT + ( + 65 ) * - 54 + COUNT ( * ) - + - COALESCE ( 14, - 17 )
----
-3495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-796
SELECT - COUNT( * ) DIV 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-796
SELECT - COUNT ( * ) / 70 AS col1
----
0

query I rowsort
SELECT + 50 * - 14 AS col2
----
-700

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

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT DISTINCT - 61 * + 53 * + MIN( ALL - 77 )
----
248941

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT - 61 * + 53 * + MIN ( ALL - 77 )
----
248941

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-800
SELECT ALL COALESCE ( - - 12, + + 82 * - COUNT( DISTINCT + - 35 ) + - 23 * + 8 + - ( CASE - 35 WHEN + + MIN( ( + - 20 ) ) THEN - MIN( DISTINCT 78 ) - + - 52 WHEN 45 THEN NULL END ) DIV + - 10 ) * - + COALESCE ( - - COUNT( * ), + 56 * - COUNT( * ), - NULLIF ( + SUM( DISTINCT - 50 ), 89 + + 62 ), - 44 )
----
-12

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL COALESCE ( - - 12, + + 82 * - COUNT ( DISTINCT + - 35 ) + - 23 * + 8 + - ( CASE - 35 WHEN + + MIN ( ( + - 20 ) ) THEN - MIN ( DISTINCT 78 ) - + - 52 WHEN 45 THEN NULL END ) / + - 10 ) * - + COALESCE ( - - COUNT ( * ), + 56 * - COUNT ( * ), - NULLIF ( + SUM ( DISTINCT - 50 ), 89 + + 62 ), - 44 )
----
-12

query II rowsort
SELECT DISTINCT + 37 AS col1, - 29
----
37
-29

query I rowsort
SELECT DISTINCT 43 + + + 41 col0
----
84

query I rowsort
SELECT ALL 2 + - CASE 9 WHEN + 97 THEN + 7 + 18 - + - 71 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-804
SELECT ALL - CASE + + ( + - 16 ) WHEN SUM( - + COALESCE ( + + 60, + 95 ) ) + 77 THEN + - 3 WHEN COALESCE ( + 27, - NULLIF ( - 66, + ( - 44 ) + - 98 + COUNT( * ) * + 88 + - COUNT( * ) ) * - COUNT( * ) - - 70, + + 37 * + 77, - 25 / - 49 - - 55 ) - + 77 THEN NULL ELSE CASE + 49 WHEN - 70 + 6 THEN + COUNT( * ) WHEN 2 / 19 + ( + 87 + 75 ) * + 83 THEN NULL ELSE NULL END + - MIN( 51 ) * - CAST( - 31 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL - CASE + + ( + - 16 ) WHEN SUM ( - + COALESCE ( + + 60, + 95 ) ) + 77 THEN + - 3 WHEN COALESCE ( + 27, - NULLIF ( - 66, + ( - 44 ) + - 98 + COUNT ( * ) * + 88 + - COUNT ( * ) ) * - COUNT ( * ) - - 70, + + 37 * + 77, - 25 / - 49 - - 55 ) - + 77 THEN NULL ELSE CASE + 49 WHEN - 70 + 6 THEN + COUNT ( * ) WHEN 2 / 19 + ( + 87 + 75 ) * + 83 THEN NULL ELSE NULL END + - MIN ( 51 ) * - CAST ( - 31 AS INTEGER ) END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-805
SELECT 89 / + 20
----
4

query II rowsort
SELECT DISTINCT 66, + 26 AS col1
----
66
26

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

query II rowsort
SELECT ALL 20, + 79 AS col0
----
20
79

onlyif mysql # aggregate syntax: 
query II rowsort label-809
SELECT - 73 AS col1, ( 92 ) + - COUNT( * )
----
-73
91

skipif mysql # not compatible
query II rowsort label-809
SELECT - 73 AS col1, ( 92 ) + - COUNT ( * )
----
-73
91

query II rowsort
SELECT 41 AS col1, 77 AS col2
----
41
77

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

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

query I rowsort
SELECT DISTINCT + 16 + + 97 col0
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-813
SELECT ALL - 58 + + 65 * + 18, COUNT( * ) + + COUNT( + - 50 ) + - ( + 62 ) - 23 + - 85 / CASE + 67 WHEN + + CASE + - 23 WHEN + 55 * 92 - ( - + 19 ) THEN NULL ELSE COUNT( DISTINCT - - 60 ) END * - 85 THEN - - 71 END - 18 AS col2
----
1112
NULL

skipif mysql # not compatible
query II rowsort label-813
SELECT ALL - 58 + + 65 * + 18, COUNT ( * ) + + COUNT ( + - 50 ) + - ( + 62 ) - 23 + - 85 / CASE + 67 WHEN + + CASE + - 23 WHEN + 55 * 92 - ( - + 19 ) THEN NULL ELSE COUNT ( DISTINCT - - 60 ) END * - 85 THEN - - 71 END - 18 AS col2
----
1112
NULL

query I rowsort
SELECT ALL - NULLIF ( 22, + 14 ) AS col0
----
-22

query II rowsort
SELECT 87 AS col2, 96
----
87
96

query II rowsort
SELECT ALL 15 col1, + 4
----
15
4

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ALL - 8 * - - 17 * - MIN( DISTINCT + - 86 ) AS col1
----
-11696

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL - 8 * - - 17 * - MIN ( DISTINCT + - 86 ) AS col1
----
-11696

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ALL - - MAX( DISTINCT + 79 ) + - 45
----
34

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL - - MAX ( DISTINCT + 79 ) + - 45
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-819
SELECT DISTINCT + CAST( - COALESCE ( - ( - - 26 ), + + NULLIF ( + - 63, MIN( DISTINCT - 38 ) + 72 ) * 16 + 11 * 76 + 25 * ( + + COUNT( * ) ) + + - 60 + + 88 ) AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT + CAST ( - COALESCE ( - ( - - 26 ), + + NULLIF ( + - 63, MIN ( DISTINCT - 38 ) + 72 ) * 16 + 11 * 76 + 25 * ( + + COUNT ( * ) ) + + - 60 + + 88 ) AS INTEGER )
----
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT - 33 + + 15 * + + 25 * + COUNT( DISTINCT - ( 2 ) ) - - ( + + ( 59 ) )
----
401

skipif mysql # not compatible
query I rowsort label-821
SELECT - 33 + + 15 * + + 25 * + COUNT ( DISTINCT - ( 2 ) ) - - ( + + ( 59 ) )
----
401

onlyif mysql # aggregate syntax: 
query II rowsort label-822
SELECT ALL - COALESCE ( + - 4, + 14 ), + COUNT( * ) AS col2
----
4
1

skipif mysql # not compatible
query II rowsort label-822
SELECT ALL - COALESCE ( + - 4, + 14 ), + COUNT ( * ) AS col2
----
4
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-823
SELECT - CAST( + MAX( ( ( - + 54 ) ) ) AS SIGNED )
----
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT ALL + 81 - COUNT( * ) + - 91
----
-11

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL + 81 - COUNT ( * ) + - 91
----
-11

query I rowsort
SELECT + 69 * + - 13 * 92
----
-82524

query I rowsort
SELECT + 83 + - 24
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT DISTINCT - SUM( DISTINCT 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT - SUM ( DISTINCT 36 )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-828
SELECT ALL + ( - + 55 ) DIV + MAX( DISTINCT + 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL + ( - + 55 ) / + MAX ( DISTINCT + 39 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT DISTINCT 98 * + CASE 52 WHEN - SUM( + 2 ) THEN NULL WHEN + 35 THEN - 78 + MAX( DISTINCT + + 32 ) + + 49 - 69 + + - 29 + 29 + - 10 - - 73 * - 47 * 93 * + 26 * + - 98 + + - 11 + - ( + 95 ) WHEN - - 69 - + COUNT( * ) * + 10 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT 98 * + CASE 52 WHEN - SUM ( + 2 ) THEN NULL WHEN + 35 THEN - 78 + MAX ( DISTINCT + + 32 ) + + 49 - 69 + + - 29 + 29 + - 10 - - 73 * - 47 * 93 * + 26 * + - 98 + + - 11 + - ( + 95 ) WHEN - - 69 - + COUNT ( * ) * + 10 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-830
SELECT 92 DIV 86 + - ( 11 ) * COUNT( ALL - 46 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-830
SELECT 92 / 86 + - ( 11 ) * COUNT ( ALL - 46 ) AS col2
----
-10

query I rowsort
SELECT 64 * + 92 AS col0
----
5888

query I rowsort
SELECT ALL 44 * + 25
----
1100

query I rowsort
SELECT 54 * + 72 AS col0
----
3888

query I rowsort
SELECT ALL 38 * + - 19 AS col1
----
-722

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT COUNT( - 36 ) * - 87
----
-87

skipif mysql # not compatible
query I rowsort label-836
SELECT COUNT ( - 36 ) * - 87
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-837
SELECT DISTINCT + 39 + + 25 - 92 DIV + + 67 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT + 39 + + 25 - 92 / + + 67 AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-838
SELECT ALL - CASE CASE COUNT( * ) WHEN - 3 THEN 80 * - + CAST( + + 36 AS SIGNED ) + CASE + 38 WHEN + 36 + + 44 * + COUNT( * ) THEN + + 78 ELSE NULL END + 70 ELSE NULL END WHEN COUNT( * ) THEN 77 WHEN - - 7 THEN - 13 ELSE NULL END + + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL - CASE CASE COUNT ( * ) WHEN - 3 THEN 80 * - + CAST ( + + 36 AS INTEGER ) + CASE + 38 WHEN + 36 + + 44 * + COUNT ( * ) THEN + + 78 ELSE NULL END + 70 ELSE NULL END WHEN COUNT ( * ) THEN 77 WHEN - - 7 THEN - 13 ELSE NULL END + + + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT 95 - 29 * - 33 * COUNT( * ) * COUNT( * ) AS col0
----
1052

skipif mysql # not compatible
query I rowsort label-839
SELECT 95 - 29 * - 33 * COUNT ( * ) * COUNT ( * ) AS col0
----
1052

query I rowsort
SELECT ALL 55 + + 80
----
135

query I rowsort
SELECT + 59 * - 81 + + 26
----
-4753

query I rowsort
SELECT 5 - + ( + - 23 ) * - ( 46 )
----
-1053

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-843
SELECT ALL 48 + + 78 DIV + ( ( 9 ) ) + - MAX( DISTINCT + 18 ) + + + 49 * + - 48 AS col0, 99
----
-2314
99

skipif mysql # not compatible
query II rowsort label-843
SELECT ALL 48 + + 78 / + ( ( 9 ) ) + - MAX ( DISTINCT + 18 ) + + + 49 * + - 48 AS col0, 99
----
-2314
99

onlyif mysql # DIV for integer division: 
query I rowsort label-844
SELECT 24 DIV 24 * + - 89
----
-89

skipif mysql # not compatible
query I rowsort label-844
SELECT 24 / 24 * + - 89
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-845
SELECT ALL + 22 + - + 75 DIV + 61 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL + 22 + - + 75 / + 61 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ( + 38 ) + + NULLIF ( + COUNT( * ), + 54 / - 37 ) - + - 94 * - 31 * + - 11 AS col2
----
32093

skipif mysql # not compatible
query I rowsort label-846
SELECT ( + 38 ) + + NULLIF ( + COUNT ( * ), + 54 / - 37 ) - + - 94 * - 31 * + - 11 AS col2
----
32093

onlyif mysql # aggregate syntax: 
query II rowsort label-847
SELECT DISTINCT - 59 + - 52, + 39 * - COUNT( * ) AS col2
----
-111
-39

skipif mysql # not compatible
query II rowsort label-847
SELECT DISTINCT - 59 + - 52, + 39 * - COUNT ( * ) AS col2
----
-111
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-848
SELECT - 43 * 20 DIV - 64 + 91 + + - 94 DIV 71 * ( - 33 ) + - + 24 * 86 * - + 16 + 18 + - 83 AS col0
----
33096

skipif mysql # not compatible
query I rowsort label-848
SELECT - 43 * 20 / - 64 + 91 + + - 94 / 71 * ( - 33 ) + - + 24 * 86 * - + 16 + 18 + - 83 AS col0
----
33096

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

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL 21 - + COUNT ( * ) AS col1
----
20

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

skipif mysql # not compatible
query I rowsort label-850
SELECT DISTINCT 25 * + COUNT ( - 92 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT - MIN( ALL ( 19 ) ) + 88
----
69

skipif mysql # not compatible
query I rowsort label-851
SELECT - MIN ( ALL ( 19 ) ) + 88
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-852
SELECT COUNT( * ) * + 26 DIV + + 15
----
1

skipif mysql # not compatible
query I rowsort label-852
SELECT COUNT ( * ) * + 26 / + + 15
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT ALL COALESCE ( COUNT( * ), - 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL COALESCE ( COUNT ( * ), - 20 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT 49 + + 23 + - 81 * 64 * - COUNT( * ) * - 80 + NULLIF ( COUNT( * ), + - 34 + - 47 ) AS col0
----
-414647

skipif mysql # not compatible
query I rowsort label-854
SELECT 49 + + 23 + - 81 * 64 * - COUNT ( * ) * - 80 + NULLIF ( COUNT ( * ), + - 34 + - 47 ) AS col0
----
-414647

query I rowsort
SELECT + 26 * - 81 AS col2
----
-2106

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-858
SELECT + 76 * 77 AS col0, - COUNT( * ) + 26 + COALESCE ( 18, 53 * 63 ) * 7 + + 74 * + + 73 + - 50 * + 35 * + 7 AS col1
----
5852
-6697

skipif mysql # not compatible
query II rowsort label-858
SELECT + 76 * 77 AS col0, - COUNT ( * ) + 26 + COALESCE ( 18, 53 * 63 ) * 7 + + 74 * + + 73 + - 50 * + 35 * + 7 AS col1
----
5852
-6697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-859
SELECT DISTINCT + + 21 * COALESCE ( 60, + COUNT( - - 67 ) DIV + + COUNT( * ) * - COUNT( * ) ) + - COUNT( * ) col2
----
1259

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT + + 21 * COALESCE ( 60, + COUNT ( - - 67 ) / + + COUNT ( * ) * - COUNT ( * ) ) + - COUNT ( * ) col2
----
1259

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT DISTINCT + + NULLIF ( + COUNT( + 10 ), + + 5 ) * - COALESCE ( + 17, ( COUNT( * ) ), - - 87 ) + 73 + - - 25
----
81

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT + + NULLIF ( + COUNT ( + 10 ), + + 5 ) * - COALESCE ( + 17, ( COUNT ( * ) ), - - 87 ) + 73 + - - 25
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-861
SELECT 97 * + CASE - 43 WHEN AVG ( DISTINCT - ( - + 48 ) ) THEN NULL WHEN - ( + NULLIF ( COUNT( * ), CAST( - COUNT( * ) AS SIGNED ) * + 49 ) ) THEN NULL ELSE 78 END + + 73
----
7639

skipif mysql # not compatible
query I rowsort label-861
SELECT 97 * + CASE - 43 WHEN AVG ( DISTINCT - ( - + 48 ) ) THEN NULL WHEN - ( + NULLIF ( COUNT ( * ), CAST ( - COUNT ( * ) AS INTEGER ) * + 49 ) ) THEN NULL ELSE 78 END + + 73
----
7639

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT ALL + - CASE + COUNT( * ) WHEN + COUNT( * ) THEN - 80 END * 81 + + 90 AS col1
----
6570

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL + - CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN - 80 END * 81 + + 90 AS col1
----
6570

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT + COALESCE ( - - COUNT( * ), - 48, - 57 ) + + COUNT( ALL - ( 12 ) )
----
2

skipif mysql # not compatible
query I rowsort label-863
SELECT + COALESCE ( - - COUNT ( * ), - 48, - 57 ) + + COUNT ( ALL - ( 12 ) )
----
2

query I rowsort
SELECT CASE 53 WHEN - 97 THEN NULL WHEN + 6 + + - 92 THEN - - 20 * - 36 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-865
SELECT 54 / + CAST( NULL AS SIGNED ) * + COALESCE ( + 9, 64 - + CASE + ( + ( - + 85 ) ) WHEN - 2 * + - COALESCE ( 51, - 30 ) * + 81 * - 36 THEN + ( - COALESCE ( + - 45, CASE ( - 52 ) WHEN + - 20 + - 37 * - MAX( ALL + 98 ) + + AVG ( - 63 + 93 ) * MAX( DISTINCT 65 ) THEN 24 + + 66 ELSE NULL END ) ) - 86 WHEN 3 THEN - 31 * + 22 + 12 * - 82 WHEN COUNT( * ) + 74 THEN NULL ELSE + 65 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-865
SELECT 54 / + CAST ( NULL AS INTEGER ) * + COALESCE ( + 9, 64 - + CASE + ( + ( - + 85 ) ) WHEN - 2 * + - COALESCE ( 51, - 30 ) * + 81 * - 36 THEN + ( - COALESCE ( + - 45, CASE ( - 52 ) WHEN + - 20 + - 37 * - MAX ( ALL + 98 ) + + AVG ( - 63 + 93 ) * MAX ( DISTINCT 65 ) THEN 24 + + 66 ELSE NULL END ) ) - 86 WHEN 3 THEN - 31 * + 22 + 12 * - 82 WHEN COUNT ( * ) + 74 THEN NULL ELSE + 65 END ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 56 * + - 85 + - 61 + - 83 AS col2
----
-4904

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT DISTINCT + 44 DIV - - 80
----
0

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT + 44 / - - 80
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-868
SELECT - 61 DIV + 84 * - 33 * 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-868
SELECT - 61 / + 84 * - 33 * 34 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-869
SELECT ALL - 93 * - 90 * - ( - 26 ) + - + 0 AS col1, - 2 - COUNT( * ) AS col0
----
217620
-3

skipif mysql # not compatible
query II rowsort label-869
SELECT ALL - 93 * - 90 * - ( - 26 ) + - + 0 AS col1, - 2 - COUNT ( * ) AS col0
----
217620
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT DISTINCT + SUM( - 25 ) * + COUNT( * ) + + 92
----
67

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT + SUM ( - 25 ) * + COUNT ( * ) + + 92
----
67

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

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

query II rowsort
SELECT DISTINCT + 36 AS col2, 37 * + 52 + - 83 * - 43
----
36
5493

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL 54 * 16 - + CASE + 27 WHEN + 35 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL 54 * 16 - + CASE + 27 WHEN + 35 THEN - COUNT ( * ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-875
SELECT + - COUNT( + - ( + + NULLIF ( - + 68, + + 30 ) ) ) * + 45 DIV COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-875
SELECT + - COUNT ( + - ( + + NULLIF ( - + 68, + + 30 ) ) ) * + 45 / COUNT ( * ) AS col1
----
-45

query I rowsort
SELECT ALL 54 * 17 AS col0
----
918

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT + COUNT( * ) * - 80 * ( - 15 ) - 3 AS col1
----
1197

skipif mysql # not compatible
query I rowsort label-877
SELECT + COUNT ( * ) * - 80 * ( - 15 ) - 3 AS col1
----
1197

query I rowsort
SELECT ALL - + NULLIF ( 70, + 37 + + 82 ) * + 69 * - 21 + - + 98
----
101332

query I rowsort
SELECT ALL + 62 * 17 * 57 * + + 84
----
5046552

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT + + 99 + 44 + - COUNT( * ) * COUNT( * ) AS col2
----
142

skipif mysql # not compatible
query I rowsort label-880
SELECT + + 99 + 44 + - COUNT ( * ) * COUNT ( * ) AS col2
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-881
SELECT + 27 DIV - + 10 col0
----
-2

skipif mysql # not compatible
query I rowsort label-881
SELECT + 27 / - + 10 col0
----
-2

query I rowsort
SELECT + - 24 + - 21
----
-45

query I rowsort
SELECT - - 18 - 97 AS col1
----
-79

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

skipif mysql # not compatible
query I rowsort label-884
SELECT - COUNT ( * ) + - - 49 AS col2
----
48

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

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

query II rowsort
SELECT - 81 AS col1, 83 AS col0
----
-81
83

query II rowsort
SELECT + 38 col2, - 70 * - 15 AS col2
----
38
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT ALL + COUNT( * ) * + 76 * + 14
----
1064

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL + COUNT ( * ) * + 76 * + 14
----
1064

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-889
SELECT + 7 * 46 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-889
SELECT + 7 * 46 + CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT + 47 AS col2, 80 * 65 AS col1
----
47
5200

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT ( SUM( DISTINCT + 82 ) ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-891
SELECT ( SUM ( DISTINCT + 82 ) ) AS col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-892
SELECT ALL - 48 DIV - COUNT( * ) + + 22
----
70

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL - 48 / - COUNT ( * ) + + 22
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-893
SELECT DISTINCT COUNT( * ) * - 16 DIV + 73 - + 82 * + - 14 AS col1
----
1148

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT COUNT ( * ) * - 16 / + 73 - + 82 * + - 14 AS col1
----
1148

onlyif mysql # DIV for integer division: 
query I rowsort label-894
SELECT ALL 1 DIV + + 47
----
0

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL 1 / + + 47
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-895
SELECT + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ), + 64 + + + CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-895
SELECT + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ), + 64 + + + CAST ( NULL AS REAL )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ALL + 33 * + - COUNT( * ) - - - 58 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL + 33 * + - COUNT ( * ) - - - 58 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT + COUNT( * ) - 83 * 62 AS col0
----
-5145

skipif mysql # not compatible
query I rowsort label-897
SELECT + COUNT ( * ) - 83 * 62 AS col0
----
-5145

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT + MAX( ALL - - 58 ) - - - 84 + + 78 + + - 39 * - - 95 * - 33 * + - ( 45 ) + 99 + 26
----
-5501748

skipif mysql # not compatible
query I rowsort label-898
SELECT + MAX ( ALL - - 58 ) - - - 84 + + 78 + + - 39 * - - 95 * - 33 * + - ( 45 ) + 99 + 26
----
-5501748

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT ALL + 81 * - 46 - - + COUNT( - 29 ) AS col0
----
-3725

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL + 81 * - 46 - - + COUNT ( - 29 ) AS col0
----
-3725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-900
SELECT - CAST( + COUNT( + + 20 ) AS SIGNED ) + - + 35, + CAST( + - 45 AS SIGNED ) AS col1
----
-36
-45

skipif mysql # not compatible
query II rowsort label-900
SELECT - CAST ( + COUNT ( + + 20 ) AS INTEGER ) + - + 35, + CAST ( + - 45 AS INTEGER ) AS col1
----
-36
-45

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-902
SELECT ALL 39 * + 79 + CAST( + - 49 AS SIGNED ) + COUNT( * ) DIV - + 76 * 89, 59 AS col1
----
3032
59

skipif mysql # not compatible
query II rowsort label-902
SELECT ALL 39 * + 79 + CAST ( + - 49 AS INTEGER ) + COUNT ( * ) / - + 76 * 89, 59 AS col1
----
3032
59

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

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

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

query I rowsort
SELECT + - 88 + + + 80 AS col2
----
-8

query I rowsort
SELECT DISTINCT + 25 * 36
----
900

query I rowsort
SELECT + 96 * + + 29 + 77 AS col1
----
2861

query I rowsort
SELECT + 58 * + 28 AS col2
----
1624

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-909
SELECT ALL + 30 * + + CAST( - 30 AS SIGNED ) + 25, 75 AS col0
----
-875
75

skipif mysql # not compatible
query II rowsort label-909
SELECT ALL + 30 * + + CAST ( - 30 AS INTEGER ) + 25, 75 AS col0
----
-875
75

onlyif mysql # aggregate syntax: 
query II rowsort label-910
SELECT NULLIF ( - - COUNT( DISTINCT + 81 ), 39 ) AS col1, 12 col1
----
1
12

skipif mysql # not compatible
query II rowsort label-910
SELECT NULLIF ( - - COUNT ( DISTINCT + 81 ), 39 ) AS col1, 12 col1
----
1
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-911
SELECT + COUNT( * ) * - ( COUNT( * ) ) + - CAST( ( + 23 ) AS SIGNED ) - + 78 + + + 57
----
-45

skipif mysql # not compatible
query I rowsort label-911
SELECT + COUNT ( * ) * - ( COUNT ( * ) ) + - CAST ( ( + 23 ) AS INTEGER ) - + 78 + + + 57
----
-45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT + 99 + - 53 + + + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-913
SELECT + 99 + - 53 + + + COUNT ( * )
----
47

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

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT ( + 23 ) * - + COALESCE ( COUNT ( * ), + - 17 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-915
SELECT DISTINCT + 51 + + - ( - - MAX( ALL - 31 ) ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT + 51 + + - ( - - MAX ( ALL - 31 ) ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-916
SELECT DISTINCT CAST( + SUM( 41 ) AS DECIMAL ) + COUNT( * ) + CASE ( COUNT( * ) ) WHEN 9 THEN - - 98 * + CASE NULLIF ( 1, 67 ) WHEN 85 / - - 72 * - 80 + 86 THEN NULL WHEN 69 THEN - 36 END * - - 72 - 53 + + COUNT( * ) * - 68 + 49 WHEN + - CASE + 16 WHEN + COUNT( * ) * + CAST( 42 * + 68 AS SIGNED ) THEN NULL WHEN CAST( NULL AS DECIMAL ) / - 46 + 16 THEN CASE + 47 WHEN 80 THEN CAST( NULL AS DECIMAL ) * ( - 41 / + 24 ) END ELSE + AVG ( ALL 84 ) END THEN 55 END * 91 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT CAST ( + SUM ( 41 ) AS REAL ) + COUNT ( * ) + CASE ( COUNT ( * ) ) WHEN 9 THEN - - 98 * + CASE NULLIF ( 1, 67 ) WHEN 85 / - - 72 * - 80 + 86 THEN NULL WHEN 69 THEN - 36 END * - - 72 - 53 + + COUNT ( * ) * - 68 + 49 WHEN + - CASE + 16 WHEN + COUNT ( * ) * + CAST ( 42 * + 68 AS INTEGER ) THEN NULL WHEN CAST ( NULL AS REAL ) / - 46 + 16 THEN CASE + 47 WHEN 80 THEN CAST ( NULL AS REAL ) * ( - 41 / + 24 ) END ELSE + AVG ( ALL 84 ) END THEN 55 END * 91 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT ALL SUM( DISTINCT + + ( 1 ) ) + - - 18 + + - 99
----
-80

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL SUM ( DISTINCT + + ( 1 ) ) + - - 18 + + - 99
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-918
SELECT MAX( ALL - 68 ) DIV - - 12 + + 80
----
75

skipif mysql # not compatible
query I rowsort label-918
SELECT MAX ( ALL - 68 ) / - - 12 + + 80
----
75

query I rowsort
SELECT 8 * 53 * 52 * - 98 * 95 AS col1
----
-205266880

query I rowsort
SELECT 14 + + NULLIF ( 92, + - 42 )
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-921
SELECT COUNT( ALL + + 1 ) DIV + COUNT( 93 ) + 86 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-921
SELECT COUNT ( ALL + + 1 ) / + COUNT ( 93 ) + 86 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-922
SELECT DISTINCT 37 - + 97 AS col0, + NULLIF ( - - 61, NULLIF ( 41, + - 93 ) * - - 73 + 8 + 82 - - + COUNT( * ) * - 52 * + COUNT( * ) ) + + CAST( - 89 AS SIGNED ) + + - 0 DIV + + 37 AS col2
----
-60
-28

skipif mysql # not compatible
query II rowsort label-922
SELECT DISTINCT 37 - + 97 AS col0, + NULLIF ( - - 61, NULLIF ( 41, + - 93 ) * - - 73 + 8 + 82 - - + COUNT ( * ) * - 52 * + COUNT ( * ) ) + + CAST ( - 89 AS INTEGER ) + + - 0 / + + 37 AS col2
----
-60
-28

query I rowsort
SELECT ALL - ( - 91 ) col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-924
SELECT ALL - SUM( ALL 48 ) AS col2, + COUNT( * )
----
-48
1

skipif mysql # not compatible
query II rowsort label-924
SELECT ALL - SUM ( ALL 48 ) AS col2, + COUNT ( * )
----
-48
1

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT DISTINCT - 9 * - + 26 * COUNT( * ) * + 97
----
22698

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT - 9 * - + 26 * COUNT ( * ) * + 97
----
22698

onlyif mysql # aggregate syntax: 
query II rowsort label-926
SELECT 33 * SUM( + 25 ), 60 AS col0
----
825
60

skipif mysql # not compatible
query II rowsort label-926
SELECT 33 * SUM ( + 25 ), 60 AS col0
----
825
60

query I rowsort
SELECT ALL - 47 * + 81 * 54 AS col2
----
-205578

query I rowsort
SELECT + 53 + - 29
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-929
SELECT ALL - ( - - 85 ) * CAST( NULL AS DECIMAL ) * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL - ( - - 85 ) * CAST ( NULL AS REAL ) * + 80
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + - 16, 45 )
----
16

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

onlyif mysql # aggregate syntax: 
query II rowsort label-932
SELECT ALL - - 60 + 27 AS col2, - 13 * + SUM( DISTINCT 82 ) AS col0
----
87
-1066

skipif mysql # not compatible
query II rowsort label-932
SELECT ALL - - 60 + 27 AS col2, - 13 * + SUM ( DISTINCT 82 ) AS col0
----
87
-1066

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT + SUM( DISTINCT + 81 ) * 75 AS col1
----
6075

skipif mysql # not compatible
query I rowsort label-933
SELECT + SUM ( DISTINCT + 81 ) * 75 AS col1
----
6075

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-934
SELECT ALL + + 47 * + - 4, 53 * + 44 + - 20 - + CAST( - ( - 14 ) AS SIGNED ) AS col0
----
-188
2298

skipif mysql # not compatible
query II rowsort label-934
SELECT ALL + + 47 * + - 4, 53 * + 44 + - 20 - + CAST ( - ( - 14 ) AS INTEGER ) AS col0
----
-188
2298

query I rowsort
SELECT CASE + 9 WHEN + 21 THEN + - 61 WHEN + 42 THEN - + 45 * + 3 / + 92 * 17 - + 52 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT CASE + + COUNT( * ) WHEN 84 THEN + - ( + 70 ) ELSE NULL END * ( - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT CASE + + COUNT ( * ) WHEN 84 THEN + - ( + 70 ) ELSE NULL END * ( - 36 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT DISTINCT COUNT( + 23 ) + ( - + 34 )
----
-33

skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT COUNT ( + 23 ) + ( - + 34 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-938
SELECT + 36 - 34, - CASE + - COALESCE ( + 38, 20, CAST( NULL AS SIGNED ) * - 70 - + + 45 ) WHEN - - 61 / + - 72 - + 99 THEN NULL WHEN + 44 THEN - 1 * - COALESCE ( + 27, 41, COALESCE ( - + 85, CAST( 58 AS SIGNED ) - 15, - 19 ) ) WHEN - - 48 + - 92 THEN - - 89 END AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-938
SELECT + 36 - 34, - CASE + - COALESCE ( + 38, 20, CAST ( NULL AS INTEGER ) * - 70 - + + 45 ) WHEN - - 61 / + - 72 - + 99 THEN NULL WHEN + 44 THEN - 1 * - COALESCE ( + 27, 41, COALESCE ( - + 85, CAST ( 58 AS INTEGER ) - 15, - 19 ) ) WHEN - - 48 + - 92 THEN - - 89 END AS col2
----
2
NULL

query I rowsort
SELECT ALL - 47 + + 56 * 94
----
5217

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT MIN( - + 8 ) - - 78
----
70

skipif mysql # not compatible
query I rowsort label-940
SELECT MIN ( - + 8 ) - - 78
----
70

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

query I rowsort
SELECT DISTINCT - 57 * 88
----
-5016

query I rowsort
SELECT 63 + + 21 AS col0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-944
SELECT 98 * + 51 DIV - + COUNT( * )
----
-4998

skipif mysql # not compatible
query I rowsort label-944
SELECT 98 * + 51 / - + COUNT ( * )
----
-4998

onlyif mysql # aggregate syntax: 
query II rowsort label-945
SELECT - 36 col2, COALESCE ( + 75, COUNT( * ) ) AS col0
----
-36
75

skipif mysql # not compatible
query II rowsort label-945
SELECT - 36 col2, COALESCE ( + 75, COUNT ( * ) ) AS col0
----
-36
75

onlyif mysql # aggregate syntax: 
query II rowsort label-946
SELECT MAX( + + 4 ) + - 92, 59 AS col0
----
-88
59

skipif mysql # not compatible
query II rowsort label-946
SELECT MAX ( + + 4 ) + - 92, 59 AS col0
----
-88
59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-948
SELECT COUNT( * ) DIV 35 * - CAST( - - COUNT( - 58 ) AS SIGNED ) * - 99 - - + 79
----
79

skipif mysql # not compatible
query I rowsort label-948
SELECT COUNT ( * ) / 35 * - CAST ( - - COUNT ( - 58 ) AS INTEGER ) * - 99 - - + 79
----
79

query I rowsort
SELECT ALL 26 * - + 42 AS col1
----
-1092

query I rowsort
SELECT DISTINCT 37 - + 99 AS col2
----
-62

query II rowsort
SELECT ALL 1, 97 AS col0
----
1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT DISTINCT SUM( DISTINCT 22 ) * + 21 AS col2
----
462

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT SUM ( DISTINCT 22 ) * + 21 AS col2
----
462

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-953
SELECT ( - - 33 ) DIV + COUNT( * ), 73 DIV ( - + COUNT( * ) ) AS col1, - ( - 45 ) DIV + 55 col2
----
33
-73
0

skipif mysql # not compatible
query III rowsort label-953
SELECT ( - - 33 ) / + COUNT ( * ), 73 / ( - + COUNT ( * ) ) AS col1, - ( - 45 ) / + 55 col2
----
33
-73
0

onlyif mysql # DIV for integer division: 
query I rowsort label-954
SELECT ALL + + 0 DIV - + 28
----
0

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL + + 0 / - + 28
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-955
SELECT ALL - ( + - CAST( NULL AS DECIMAL ) ) * - + MIN( 52 ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT + COALESCE ( + - COUNT( * ), COUNT( * ) * 80 ) - + 66 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-956
SELECT + COALESCE ( + - COUNT ( * ), COUNT ( * ) * 80 ) - + 66 AS col1
----
-67

query I rowsort
SELECT DISTINCT - - 95 * + + 32
----
3040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT ( - 17 ) * NULLIF ( + - 18, - AVG ( DISTINCT - 13 ) + 0 * 84 + + - ( + 37 ) ) * - 87 / ( CAST( NULL AS SIGNED ) ) + + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-958
SELECT ( - 17 ) * NULLIF ( + - 18, - AVG ( DISTINCT - 13 ) + 0 * 84 + + - ( + 37 ) ) * - 87 / ( CAST ( NULL AS INTEGER ) ) + + 79 AS col1
----
NULL

query I rowsort
SELECT 18 - 54
----
-36

query I rowsort
SELECT ALL + 42 * + 29
----
1218

query I rowsort
SELECT DISTINCT - + 83 + + 34 + 12 * 13 + 13
----
120

onlyif mysql # DIV for integer division: 
query II rowsort label-962
SELECT - 87 AS col0, 3 DIV + 49 AS col2
----
-87
0

skipif mysql # not compatible
query II rowsort label-962
SELECT - 87 AS col0, 3 / + 49 AS col2
----
-87
0

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT - COUNT( * ) + + 9 - 90
----
-82

skipif mysql # not compatible
query I rowsort label-963
SELECT - COUNT ( * ) + + 9 - 90
----
-82

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-965
SELECT - COALESCE ( - COUNT( * ), - COUNT( - NULLIF ( + + 66, + 68 ) ) * - 8 DIV NULLIF ( + - 98, + 75 ) * 14 + ( + ( - + AVG ( DISTINCT 81 ) ) ) + - 86 ) DIV - - 74
----
0

skipif mysql # not compatible
query I rowsort label-965
SELECT - COALESCE ( - COUNT ( * ), - COUNT ( - NULLIF ( + + 66, + 68 ) ) * - 8 / NULLIF ( + - 98, + 75 ) * 14 + ( + ( - + AVG ( DISTINCT 81 ) ) ) + - 86 ) / - - 74
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-966
SELECT + 26 + - + 24 + - 76 * - 16 * - - 25, MIN( + - 95 ) * 60 - + ( 32 ) AS col2
----
30402
-5732

skipif mysql # not compatible
query II rowsort label-966
SELECT + 26 + - + 24 + - 76 * - 16 * - - 25, MIN ( + - 95 ) * 60 - + ( 32 ) AS col2
----
30402
-5732

query I rowsort
SELECT DISTINCT - 26 * 80
----
-2080

query II rowsort
SELECT ALL 85 * + 52 * - 48 * - + 72 AS col0, 58 AS col0
----
15275520
58

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ALL NULLIF ( 66, + COUNT( * ) / + 49 * - - ( 70 ) / - - 66 + + 12 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL NULLIF ( 66, + COUNT ( * ) / + 49 * - - ( 70 ) / - - 66 + + 12 ) AS col0
----
66

query I rowsort
SELECT ALL + 9 * + 58 AS col0
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT + 54 + + ( CASE + - 33 WHEN + 43 THEN + COALESCE ( - COUNT( * ), + 45 + - 77, + + 53 + + 70 + 10 * CASE - ( - 65 ) WHEN + + 49 THEN - + 63 WHEN + ( 94 ) + 59 / - 10 THEN - 89 END * 93 * - - 16 ) WHEN 12 THEN NULL ELSE + COALESCE ( 31, 1 ) * 93 END ) col1
----
2937

skipif mysql # not compatible
query I rowsort label-971
SELECT + 54 + + ( CASE + - 33 WHEN + 43 THEN + COALESCE ( - COUNT ( * ), + 45 + - 77, + + 53 + + 70 + 10 * CASE - ( - 65 ) WHEN + + 49 THEN - + 63 WHEN + ( 94 ) + 59 / - 10 THEN - 89 END * 93 * - - 16 ) WHEN 12 THEN NULL ELSE + COALESCE ( 31, 1 ) * 93 END ) col1
----
2937

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-972
SELECT - 24 * 49 * + CASE - - MIN( DISTINCT - 90 ) WHEN + - 81 THEN + 91 WHEN 77 THEN + 34 * - - 42 + + 68 - 75 * + 69 DIV + 15 WHEN - 40 THEN NULL ELSE 3 * - 47 * + - ( + + COUNT( * ) ) + + + 3 - + 36 END
----
-127008

skipif mysql # not compatible
query I rowsort label-972
SELECT - 24 * 49 * + CASE - - MIN ( DISTINCT - 90 ) WHEN + - 81 THEN + 91 WHEN 77 THEN + 34 * - - 42 + + 68 - 75 * + 69 / + 15 WHEN - 40 THEN NULL ELSE 3 * - 47 * + - ( + + COUNT ( * ) ) + + + 3 - + 36 END
----
-127008

onlyif mysql # aggregate syntax: 
query II rowsort label-973
SELECT - 13 * - + 82 * - 96 * - - 49 + COUNT( * ) * + 12 * - - 17 AS col2, 10 AS col1
----
-5014260
10

skipif mysql # not compatible
query II rowsort label-973
SELECT - 13 * - + 82 * - 96 * - - 49 + COUNT ( * ) * + 12 * - - 17 AS col2, 10 AS col1
----
-5014260
10

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

skipif mysql # not compatible
query I rowsort label-974
SELECT COUNT ( * ) * ( - 39 ) - - 71 AS col2
----
32

query I rowsort
SELECT DISTINCT - - 83 * - - 22 + - - 75 + + + 6
----
1907

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-976
SELECT + - COALESCE ( + + 9, + 29, + ( 8 ) DIV + 9 * + MIN( DISTINCT - + 86 ), 42 ) * - 75 AS col2
----
675

skipif mysql # not compatible
query I rowsort label-976
SELECT + - COALESCE ( + + 9, + 29, + ( 8 ) / + 9 * + MIN ( DISTINCT - + 86 ), 42 ) * - 75 AS col2
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT + 64 * - - 9 + 42 * COUNT( * ) * - - 32 * - 10 + - - 78 + COUNT( * ) + + 15 AS col1
----
-12770

skipif mysql # not compatible
query I rowsort label-977
SELECT + 64 * - - 9 + 42 * COUNT ( * ) * - - 32 * - 10 + - - 78 + COUNT ( * ) + + 15 AS col1
----
-12770

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT + ( + 45 ) + + - 79 + COALESCE ( COALESCE ( + COALESCE ( 13, + 46 * + - 48 * 44, - + 62 ), + 69, + MAX( ALL - 51 ) * 18 ), MAX( ALL - 71 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-979
SELECT + ( + 45 ) + + - 79 + COALESCE ( COALESCE ( + COALESCE ( 13, + 46 * + - 48 * 44, - + 62 ), + 69, + MAX ( ALL - 51 ) * 18 ), MAX ( ALL - 71 ) )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-980
SELECT + 91 * CAST( + COUNT( * ) AS SIGNED ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-980
SELECT + 91 * CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-982
SELECT ALL 1 * - 18 * + + COUNT( ALL + 77 ) DIV + + 31 - 46 DIV - 9
----
5

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL 1 * - 18 * + + COUNT ( ALL + 77 ) / + + 31 - 46 / - 9
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT - - COUNT( * ) * - ( 34 ) + + + 38 * + + COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-983
SELECT - - COUNT ( * ) * - ( 34 ) + + + 38 * + + COUNT ( * ) AS col2
----
4

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

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

query I rowsort
SELECT ALL + 12 * - 57
----
-684

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-986
SELECT - CAST( NULL AS DECIMAL ), COUNT( * ) * + + 43 AS col0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-986
SELECT - CAST ( NULL AS REAL ), COUNT ( * ) * + + 43 AS col0
----
NULL
43

query I rowsort
SELECT ALL COALESCE ( + 11, - 66 * 21 ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT - 43 * MAX( + 48 )
----
-2064

skipif mysql # not compatible
query I rowsort label-988
SELECT - 43 * MAX ( + 48 )
----
-2064

query I rowsort
SELECT ALL CASE 40 WHEN 27 THEN - 5 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-990
SELECT - 61 DIV 9 * - 98 AS col0, - 43 AS col2
----
588
-43

skipif mysql # not compatible
query II rowsort label-990
SELECT - 61 / 9 * - 98 AS col0, - 43 AS col2
----
588
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-991
SELECT - COALESCE ( 57, 11 * - - 13 + + 16 + + 86 ) + + COALESCE ( + - 52, + 19 * + 35 + + 57 + + 28 DIV + - 34 ) + - + 27 * + - 72 * + 39 + - - 32 + - ( - 39 ) + 50 * + 72
----
79378

skipif mysql # not compatible
query I rowsort label-991
SELECT - COALESCE ( 57, 11 * - - 13 + + 16 + + 86 ) + + COALESCE ( + - 52, + 19 * + 35 + + 57 + + 28 / + - 34 ) + - + 27 * + - 72 * + 39 + - - 32 + - ( - 39 ) + 50 * + 72
----
79378

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT - MAX( - 75 ) col2
----
75

skipif mysql # not compatible
query I rowsort label-992
SELECT - MAX ( - 75 ) col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-993
SELECT DISTINCT - 50 + + + 96 * + CAST( - 89 AS SIGNED ) * - - 72 AS col0
----
-615218

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT - 50 + + + 96 * + CAST ( - 89 AS INTEGER ) * - - 72 AS col0
----
-615218

query I rowsort
SELECT - 13 - + + 58 - + 26 * + 34
----
-955

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT - 25 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-995
SELECT - 25 / - 83
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-996
SELECT + 31 DIV - 51 col2
----
0

skipif mysql # not compatible
query I rowsort label-996
SELECT + 31 / - 51 col2
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-999
SELECT 28 AS col0, ( - - 35 ) DIV 82
----
28
0

skipif mysql # not compatible
query II rowsort label-999
SELECT 28 AS col0, ( - - 35 ) / 82
----
28
0

query I rowsort
SELECT ALL 89 + 70 AS col2
----
159

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

skipif mysql # not compatible
query I rowsort label-1001
SELECT - + SUM ( - + 9 )
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT - + 30 * SUM( DISTINCT + 36 ) + - + 22
----
-1102

skipif mysql # not compatible
query I rowsort label-1003
SELECT - + 30 * SUM ( DISTINCT + 36 ) + - + 22
----
-1102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1004
SELECT ALL 20 DIV + - 80 + - 20 + + COUNT( + 51 ) * - + 98 * - 40
----
3900

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL 20 / + - 80 + - 20 + + COUNT ( + 51 ) * - + 98 * - 40
----
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT - + SUM( 53 ) * - + 54
----
2862

skipif mysql # not compatible
query I rowsort label-1005
SELECT - + SUM ( 53 ) * - + 54
----
2862

query II rowsort
SELECT ALL + 68 AS col0, 97 AS col1
----
68
97

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

skipif mysql # not compatible
query I rowsort label-1007
SELECT - COUNT ( * ) / + ( + 95 ) + - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + 22 * - 73 + - - 85 * + - COUNT( * ) + - ( + 11 )
----
-1702

skipif mysql # not compatible
query I rowsort label-1008
SELECT + 22 * - 73 + - - 85 * + - COUNT ( * ) + - ( + 11 )
----
-1702

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

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

query I rowsort
SELECT ALL + 84 + - 37 + + + 53 AS col2
----
100

query I rowsort
SELECT DISTINCT + 92 * 54 col2
----
4968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1012
SELECT ALL - NULLIF ( - 64, - CAST( NULL AS SIGNED ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL - NULLIF ( - 64, - CAST ( NULL AS INTEGER ) ) AS col1
----
64

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

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

query I rowsort
SELECT ALL 55 - - 44
----
99

query I rowsort
SELECT 58 * - 65
----
-3770

query I rowsort
SELECT DISTINCT 94 * - 56 AS col2
----
-5264

query I rowsort
SELECT - 38 - - 47 * - 4 + + + 32
----
-194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1018
SELECT - CAST( 82 AS DECIMAL ) * + - COUNT( * ) * - 19 * - 74 + 12 + - + COUNT( * ) + + CAST( NULL AS SIGNED ) * - + 25 * - COUNT( + - 59 ) + - 1 + - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT - CAST ( 82 AS REAL ) * + - COUNT ( * ) * - 19 * - 74 + 12 + - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - + 25 * - COUNT ( + - 59 ) + - 1 + - - 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1019
SELECT + CASE CASE - - 57 WHEN + - ( + - COUNT( * ) ) THEN + + 99 ELSE NULL END WHEN + CAST( NULL AS SIGNED ) * - - SUM( + + 67 ) - + CAST( - 97 AS SIGNED ) / + 28 * 69 THEN + 86 + + + SUM( - 70 ) * CASE - CAST( 32 AS SIGNED ) WHEN - 36 + + + 90 THEN - COUNT( * ) ELSE - MAX( DISTINCT - 34 ) / - 0 END END * + 88 - - 69 + - 28 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1019
SELECT + CASE CASE - - 57 WHEN + - ( + - COUNT ( * ) ) THEN + + 99 ELSE NULL END WHEN + CAST ( NULL AS INTEGER ) * - - SUM ( + + 67 ) - + CAST ( - 97 AS INTEGER ) / + 28 * 69 THEN + 86 + + + SUM ( - 70 ) * CASE - CAST ( 32 AS INTEGER ) WHEN - 36 + + + 90 THEN - COUNT ( * ) ELSE - MAX ( DISTINCT - 34 ) / - 0 END END * + 88 - - 69 + - 28 / COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1020
SELECT 79 / + 82
----
0

query I rowsort
SELECT - 37 * - ( + 13 ) + 33 AS col1
----
514

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1022
SELECT CASE - 56 WHEN 1 + - CAST( - 26 AS SIGNED ) * 68 * - 29 THEN NULL WHEN 82 + + 5 * 59 + - 88 THEN NULL WHEN - 4 THEN 12 + - - 80 - 57 ELSE + + CASE + + NULLIF ( + 9, CAST( NULL AS SIGNED ) ) WHEN + 56 THEN NULL WHEN 93 + + 95 THEN + + CAST( NULL AS SIGNED ) END END + + 76 AS col1, ( 68 )
----
NULL
68

skipif mysql # not compatible
query II rowsort label-1022
SELECT CASE - 56 WHEN 1 + - CAST ( - 26 AS INTEGER ) * 68 * - 29 THEN NULL WHEN 82 + + 5 * 59 + - 88 THEN NULL WHEN - 4 THEN 12 + - - 80 - 57 ELSE + + CASE + + NULLIF ( + 9, CAST ( NULL AS INTEGER ) ) WHEN + 56 THEN NULL WHEN 93 + + 95 THEN + + CAST ( NULL AS INTEGER ) END END + + 76 AS col1, ( 68 )
----
NULL
68

query I rowsort
SELECT ALL 21 * + ( + 24 )
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1024
SELECT ALL - 27 AS col2, CASE 33 WHEN + 43 THEN NULL WHEN - ( - 21 ) THEN + 7 END * + - NULLIF ( - ( - ( + + COALESCE ( - ( - CAST( NULL AS SIGNED ) ), - - ( 66 ) ) ) ), 44 + + COALESCE ( + 95, 17 + - 76 ) * - 90 ) * - COUNT( * ) - 83 * 68 - + CASE - + COUNT( - ( 86 ) ) WHEN + + COALESCE ( 75, + 50 ) THEN NULL ELSE - 68 END AS col2
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-1024
SELECT ALL - 27 AS col2, CASE 33 WHEN + 43 THEN NULL WHEN - ( - 21 ) THEN + 7 END * + - NULLIF ( - ( - ( + + COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), - - ( 66 ) ) ) ), 44 + + COALESCE ( + 95, 17 + - 76 ) * - 90 ) * - COUNT ( * ) - 83 * 68 - + CASE - + COUNT ( - ( 86 ) ) WHEN + + COALESCE ( 75, + 50 ) THEN NULL ELSE - 68 END AS col2
----
-27
NULL

query I rowsort
SELECT 98 + - 38 AS col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1026
SELECT COUNT( * ) + 73 + + - 15 DIV 94 * - 11 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-1026
SELECT COUNT ( * ) + 73 + + - 15 / 94 * - 11 AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1027
SELECT - 96 AS col0, CAST( NULL AS SIGNED ) - - 10 AS col1
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-1027
SELECT - 96 AS col0, CAST ( NULL AS INTEGER ) - - 10 AS col1
----
-96
NULL

query I rowsort
SELECT 33 + - 82 - - + 90
----
41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1030
SELECT 19 AS col1, - 32 - - 15 + + + ( + 55 ) * CAST( NULL AS SIGNED ) + COUNT( * ) + - + 57 + - 56 AS col1
----
19
NULL

skipif mysql # not compatible
query II rowsort label-1030
SELECT 19 AS col1, - 32 - - 15 + + + ( + 55 ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) + - + 57 + - 56 AS col1
----
19
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1031
SELECT 52 + + 31 DIV - 19
----
51

skipif mysql # not compatible
query I rowsort label-1031
SELECT 52 + + 31 / - 19
----
51

query I rowsort
SELECT ALL 7 * + + 45
----
315

query II rowsort
SELECT 0 AS col1, - 35 AS col0
----
0
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1034
SELECT ALL 64, COALESCE ( + + 12, ( - 4 ) * - 18 + + + COUNT( * ) * 69 + COUNT( * ) * + CAST( NULL AS SIGNED ) ) * - + CAST( NULL AS SIGNED ) AS col0
----
64
NULL

skipif mysql # not compatible
query II rowsort label-1034
SELECT ALL 64, COALESCE ( + + 12, ( - 4 ) * - 18 + + + COUNT ( * ) * 69 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) ) * - + CAST ( NULL AS INTEGER ) AS col0
----
64
NULL

query I rowsort
SELECT 39 + + + 8 * + 45
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL 60 + 63 * 83 - + 43 - + + 56 * - + ( - CASE - 74 WHEN 32 + + MAX( - 96 ) THEN + 84 WHEN - 9 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL 60 + 63 * 83 - + 43 - + + 56 * - + ( - CASE - 74 WHEN 32 + + MAX ( - 96 ) THEN + 84 WHEN - 9 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT - + 81 + + 16 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT DISTINCT - CASE 82 WHEN + + 7 * + + 57 - - 70 THEN - 82 + - 58 + + COUNT( * ) ELSE - 91 * + + 72 END AS col1
----
6552

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT - CASE 82 WHEN + + 7 * + + 57 - - 70 THEN - 82 + - 58 + + COUNT ( * ) ELSE - 91 * + + 72 END AS col1
----
6552

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT - 28 - - + CASE - + COUNT( * ) WHEN 53 THEN + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT - 28 - - + CASE - + COUNT ( * ) WHEN 53 THEN + 78 END
----
NULL

query I rowsort
SELECT 93 * - 88 col0
----
-8184

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1042
SELECT NULLIF ( - CAST( NULL AS DECIMAL ), - ( - 11 ) ) + 57 - + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1042
SELECT NULLIF ( - CAST ( NULL AS REAL ), - ( - 11 ) ) + 57 - + 43 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + ( - 91 ) + 53 * + + 44 * 47
----
109695

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT ALL - - NULLIF ( + COUNT( * ), - 11 ) - 13 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL - - NULLIF ( + COUNT ( * ), - 11 ) - 13 AS col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1045
SELECT 33 DIV 49 + - 68 * + 22
----
-1496

skipif mysql # not compatible
query I rowsort label-1045
SELECT 33 / 49 + - 68 * + 22
----
-1496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1046
SELECT ALL + + COUNT( * ) * 74 + - 31 DIV + + 59
----
74

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL + + COUNT ( * ) * 74 + - 31 / + + 59
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT - NULLIF ( COUNT( * ), 52 ) * - + 62 * - 91 + - 4 * 79 AS col2
----
-5958

skipif mysql # not compatible
query I rowsort label-1047
SELECT - NULLIF ( COUNT ( * ), 52 ) * - + 62 * - 91 + - 4 * 79 AS col2
----
-5958

query I rowsort
SELECT 41 * 96 * - 11
----
-43296

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT - MAX( DISTINCT - 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1049
SELECT - MAX ( DISTINCT - 11 ) AS col0
----
11

query I rowsort
SELECT + 17 * + 47 + - 66
----
733

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

query I rowsort
SELECT + 36 + - 29
----
7

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

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

query I rowsort
SELECT ( 12 ) + + 1 AS col2
----
13

query II rowsort
SELECT DISTINCT - 23, 18 * 2 AS col0
----
-23
36

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1057
SELECT ALL 62 * + 24 AS col1, - CASE 16 WHEN + + 53 + + + 79 + + 3 + 94 * + CAST( NULL AS SIGNED ) + - 76 * + + 97 * 26 THEN + 93 ELSE NULL END * + - COUNT( - + 56 )
----
1488
NULL

skipif mysql # not compatible
query II rowsort label-1057
SELECT ALL 62 * + 24 AS col1, - CASE 16 WHEN + + 53 + + + 79 + + 3 + 94 * + CAST ( NULL AS INTEGER ) + - 76 * + + 97 * 26 THEN + 93 ELSE NULL END * + - COUNT ( - + 56 )
----
1488
NULL

query I rowsort
SELECT 8 * - + 92
----
-736

onlyif mysql # DIV for integer division: 
query I rowsort label-1059
SELECT 14 DIV - - 94
----
0

skipif mysql # not compatible
query I rowsort label-1059
SELECT 14 / - - 94
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1061
SELECT 98 + - COUNT( * ), + 99 + + 61 AS col0
----
97
160

skipif mysql # not compatible
query II rowsort label-1061
SELECT 98 + - COUNT ( * ), + 99 + + 61 AS col0
----
97
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1062
SELECT 4 DIV COUNT( * ) * 53
----
212

skipif mysql # not compatible
query I rowsort label-1062
SELECT 4 / COUNT ( * ) * 53
----
212

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

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL CAST ( NULL AS REAL ) + + ( 22 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT DISTINCT COUNT( * ) + 26
----
27

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT COUNT ( * ) + 26
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-1065
SELECT ALL 48 + - 7 - + 3 DIV 30 DIV 57 AS col0, + 31 col1
----
41
31

skipif mysql # not compatible
query II rowsort label-1065
SELECT ALL 48 + - 7 - + 3 / 30 / 57 AS col0, + 31 col1
----
41
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT COALESCE ( - COUNT( * ), - 33 ) - 42
----
-43

skipif mysql # not compatible
query I rowsort label-1066
SELECT COALESCE ( - COUNT ( * ), - 33 ) - 42
----
-43

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

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

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

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL ( COUNT ( ALL - 2 ) ) + 95 AS col0
----
96

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

skipif mysql # not compatible
query I rowsort label-1069
SELECT - MAX ( - 17 )
----
17

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

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT 27 - + 23 + - COUNT ( * ) AS col0
----
3

query I rowsort
SELECT - - 29 + ( + 96 ) AS col2
----
125

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1072
SELECT + - 26 * - 76 + - CAST( NULL AS DECIMAL ) + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT + - 26 * - 76 + - CAST ( NULL AS REAL ) + 29 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1073
SELECT + 28 DIV 3 * - 4 * - COALESCE ( - + 39, 95 ) * + + ( - ( - 82 ) ) + - - NULLIF ( 24, 51 ) * - - 71 * - 61 - - 33 * - 26 AS col1
----
-219930

skipif mysql # not compatible
query I rowsort label-1073
SELECT + 28 / 3 * - 4 * - COALESCE ( - + 39, 95 ) * + + ( - ( - 82 ) ) + - - NULLIF ( 24, 51 ) * - - 71 * - 61 - - 33 * - 26 AS col1
----
-219930

query I rowsort
SELECT - 98 * 67
----
-6566

onlyif mysql # aggregate syntax: 
query II rowsort label-1075
SELECT + + 51 + + + 54 + + - 34 + + + MIN( ALL + 90 ) col0, + 57 AS col2
----
161
57

skipif mysql # not compatible
query II rowsort label-1075
SELECT + + 51 + + + 54 + + - 34 + + + MIN ( ALL + 90 ) col0, + 57 AS col2
----
161
57

query I rowsort
SELECT - - 71 * 47 AS col2
----
3337

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT - + 2 * - 98 + - COUNT( * )
----
195

skipif mysql # not compatible
query I rowsort label-1077
SELECT - + 2 * - 98 + - COUNT ( * )
----
195

query I rowsort
SELECT ALL + ( 18 ) col1
----
18

query I rowsort
SELECT DISTINCT + COALESCE ( + 21, + 28 + + ( - + 25 ) ) AS col0
----
21

query I rowsort
SELECT - 56 + - 70 AS col1
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1081
SELECT NULLIF ( - + 62, - + ( 55 ) * + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) )
----
-62

skipif mysql # not compatible
query I rowsort label-1081
SELECT NULLIF ( - + 62, - + ( 55 ) * + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1082
SELECT COALESCE ( ( + NULLIF ( 59, + COUNT( ALL - - 15 ) * - ( + - 3 ) ) ), - CAST( NULL AS SIGNED ) )
----
59

skipif mysql # not compatible
query I rowsort label-1082
SELECT COALESCE ( ( + NULLIF ( 59, + COUNT ( ALL - - 15 ) * - ( + - 3 ) ) ), - CAST ( NULL AS INTEGER ) )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1083
SELECT ALL - 80 * 22 + + 16 * + - ( + 66 ) * 45 * + - CAST( + + 73 AS SIGNED ) + - ( ( - 85 ) ) AS col1, + 89 / 56 * + + CASE + COUNT( * ) WHEN - 11 + - 29 THEN + + 46 * + 95 ELSE NULL END col1
----
3467285
NULL

skipif mysql # not compatible
query II rowsort label-1083
SELECT ALL - 80 * 22 + + 16 * + - ( + 66 ) * 45 * + - CAST ( + + 73 AS INTEGER ) + - ( ( - 85 ) ) AS col1, + 89 / 56 * + + CASE + COUNT ( * ) WHEN - 11 + - 29 THEN + + 46 * + 95 ELSE NULL END col1
----
3467285
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT + 66 * + 23 + - COALESCE ( + + 52, - + COUNT( * ) + + - 68 + 78 * + - 54 ) * 32
----
-146

skipif mysql # not compatible
query I rowsort label-1084
SELECT + 66 * + 23 + - COALESCE ( + + 52, - + COUNT ( * ) + + - 68 + 78 * + - 54 ) * 32
----
-146

query I rowsort
SELECT - 38 - + 22 * - 23 * - 28
----
-14206

query I rowsort
SELECT - 8 + - 75
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1087
SELECT 82 * + 50 + + COUNT( CAST( - - 98 AS SIGNED ) ) + + 91 * - ( COUNT( * ) ) AS col2
----
4010

skipif mysql # not compatible
query I rowsort label-1087
SELECT 82 * + 50 + + COUNT ( CAST ( - - 98 AS INTEGER ) ) + + 91 * - ( COUNT ( * ) ) AS col2
----
4010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1088
SELECT DISTINCT + CAST( + 93 AS SIGNED ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT + CAST ( + 93 AS INTEGER ) AS col0
----
93

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1091
SELECT DISTINCT - COUNT( * ) * COUNT( * ) * - 8 DIV - NULLIF ( 52, NULLIF ( - ( - 51 ), - + 31 * - 10 - + + 8 ) + - - 93 + + 5 ) + - 67 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1091
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) * - 8 / - NULLIF ( 52, NULLIF ( - ( - 51 ), - + 31 * - 10 - + + 8 ) + - - 93 + + 5 ) + - 67 AS col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1092
SELECT 19 * CAST( NULL AS SIGNED ) + 8, 13 AS col1
----
NULL
13

skipif mysql # not compatible
query II rowsort label-1092
SELECT 19 * CAST ( NULL AS INTEGER ) + 8, 13 AS col1
----
NULL
13

query I rowsort
SELECT DISTINCT + 28 * + 91 AS col2
----
2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1094
SELECT + COUNT( * ) + + - COALESCE ( - + 67, + - 74 * CAST( NULL AS SIGNED ) )
----
68

skipif mysql # not compatible
query I rowsort label-1094
SELECT + COUNT ( * ) + + - COALESCE ( - + 67, + - 74 * CAST ( NULL AS INTEGER ) )
----
68

query I rowsort
SELECT - 42 * + + 26 * 50 AS col1
----
-54600

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT + COUNT( * ) * 42 * + + 54 * - ( - 22 ) AS col1
----
49896

skipif mysql # not compatible
query I rowsort label-1096
SELECT + COUNT ( * ) * 42 * + + 54 * - ( - 22 ) AS col1
----
49896

query I rowsort
SELECT DISTINCT 71 - + 91
----
-20

query I rowsort
SELECT + - ( - 77 ) + + 58 * - 82 * + 97 AS col1
----
-461255

query I rowsort
SELECT - 19 * - 76 * - 44 * 7
----
-444752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1100
SELECT ALL - - 67 * + CAST( NULL AS SIGNED ) + + ( 83 ) * + 40 / - + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL - - 67 * + CAST ( NULL AS INTEGER ) + + ( 83 ) * + 40 / - + 32 AS col1
----
NULL

query III rowsort
SELECT DISTINCT + - ( - 44 ) - - 79 col2, + 58 AS col2, 52 AS col0
----
123
58
52

onlyif mysql # DIV for integer division: 
query II rowsort label-1102
SELECT ALL 76 DIV NULLIF ( - + 87, - + 75 ), + 3 AS col0
----
0
3

skipif mysql # not compatible
query II rowsort label-1102
SELECT ALL 76 / NULLIF ( - + 87, - + 75 ), + 3 AS col0
----
0
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1103
SELECT + 46 DIV 75 + - 47 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-1103
SELECT + 46 / 75 + - 47 AS col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1104
SELECT + + NULLIF ( - SUM( CAST( NULL AS DECIMAL ) ), + 56 - 60 ) + - 74 + - + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1104
SELECT + + NULLIF ( - SUM ( CAST ( NULL AS REAL ) ), + 56 - 60 ) + - 74 + - + 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1105
SELECT DISTINCT 34 DIV - NULLIF ( + 93, + 48 + + 43 ) + - 45 + COUNT( * ) * 21, + 3 AS col0
----
-24
3

skipif mysql # not compatible
query II rowsort label-1105
SELECT DISTINCT 34 / - NULLIF ( + 93, + 48 + + 43 ) + - 45 + COUNT ( * ) * 21, + 3 AS col0
----
-24
3

query II rowsort
SELECT DISTINCT - 53 AS col1, 59
----
-53
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1107
SELECT + 35 * + NULLIF ( - 45, + 96 ) + + COUNT( * ) + - + 15 + 24 * + COUNT( * ), 56 AS col1
----
-1565
56

skipif mysql # not compatible
query II rowsort label-1107
SELECT + 35 * + NULLIF ( - 45, + 96 ) + + COUNT ( * ) + - + 15 + 24 * + COUNT ( * ), 56 AS col1
----
-1565
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT + COUNT( * ) + 31 + 54 * 54 + - + SUM( ALL - 52 ) AS col2
----
3000

skipif mysql # not compatible
query I rowsort label-1108
SELECT + COUNT ( * ) + 31 + 54 * 54 + - + SUM ( ALL - 52 ) AS col2
----
3000

query I rowsort
SELECT - + CASE 19 WHEN + 30 THEN NULL ELSE ( - 34 ) + - 54 END
----
88

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

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT + 53 * + 4 / + COUNT ( * ) AS col1
----
212

query I rowsort
SELECT DISTINCT - 42 * + 65
----
-2730

query I rowsort
SELECT + + 14 * + - 35
----
-490

query II rowsort
SELECT ALL + 94, 48 AS col0
----
94
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1114
SELECT ALL + 49 DIV 7 + - 79 * + 2 + 0 + 48 + 22 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + 49 / 7 + - 79 * + 2 + 0 + 48 + 22 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT ALL + MAX( DISTINCT - + 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL + MAX ( DISTINCT - + 53 ) AS col1
----
-53

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

skipif mysql # not compatible
query I rowsort label-1116
SELECT - 44 / + + ( - 52 ) * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1117
SELECT ALL + SUM( DISTINCT + + 86 ) DIV COUNT( * ) + + - 93 + 42 DIV - 44
----
-7

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL + SUM ( DISTINCT + + 86 ) / COUNT ( * ) + + - 93 + 42 / - 44
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT + ( - 95 ) * - 21 * - + SUM( ( + 57 ) ) * + NULLIF ( + + COUNT( * ), 68 )
----
-113715

skipif mysql # not compatible
query I rowsort label-1118
SELECT + ( - 95 ) * - 21 * - + SUM ( ( + 57 ) ) * + NULLIF ( + + COUNT ( * ), 68 )
----
-113715

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

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

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

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

query I rowsort
SELECT + 26 * - 80 * + + CASE + + 71 WHEN - 23 * - + 24 THEN - - 56 ELSE + - 7 END
----
14560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1122
SELECT - MIN( 38 ) DIV - + CAST( - - 7 AS SIGNED ) + + 65 AS col2, - 42 AS col0
----
70
-42

skipif mysql # not compatible
query II rowsort label-1122
SELECT - MIN ( 38 ) / - + CAST ( - - 7 AS INTEGER ) + + 65 AS col2, - 42 AS col0
----
70
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1123
SELECT ALL + 43 * + + 67 DIV COUNT( 51 ) + - 73 * 76 AS col1
----
-2667

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL + 43 * + + 67 / COUNT ( 51 ) + - 73 * 76 AS col1
----
-2667

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

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

query II rowsort
SELECT ALL + COALESCE ( + 2, + 78 * + 51 ) AS col1, 90 * + 95 col1
----
2
8550

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

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

skipif mysql # not compatible
query I rowsort label-1127
SELECT + SUM ( 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT - COUNT( * ) * - - 25 * + + 9
----
-225

skipif mysql # not compatible
query I rowsort label-1128
SELECT - COUNT ( * ) * - - 25 * + + 9
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT 42 + + + MAX( ALL + 16 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1129
SELECT 42 + + + MAX ( ALL + 16 ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1130
SELECT DISTINCT - 89 - - + 78 + 56 * + + 81 * - ( + 40 ) * + 52 * - MIN( - + CAST( NULL AS SIGNED ) ) - + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT - 89 - - + 78 + 56 * + + 81 * - ( + 40 ) * + 52 * - MIN ( - + CAST ( NULL AS INTEGER ) ) - + + 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT - 30 - + COUNT( * ) + - 95
----
-126

skipif mysql # not compatible
query I rowsort label-1131
SELECT - 30 - + COUNT ( * ) + - 95
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1132
SELECT ( 15 ) * CAST( 7 AS SIGNED ) AS col0, NULLIF ( - 5, + + 71 * + + AVG ( ( - 47 ) ) + - + 63 + - + 13 * - COALESCE ( - 25, + COUNT( * ) + 66 ) - + 6 * - 71 ) + + SUM( 94 ) * - COUNT( * ) AS col1
----
105
-99

skipif mysql # not compatible
query II rowsort label-1132
SELECT ( 15 ) * CAST ( 7 AS INTEGER ) AS col0, NULLIF ( - 5, + + 71 * + + AVG ( ( - 47 ) ) + - + 63 + - + 13 * - COALESCE ( - 25, + COUNT ( * ) + 66 ) - + 6 * - 71 ) + + SUM ( 94 ) * - COUNT ( * ) AS col1
----
105
-99

query I rowsort
SELECT + 97 + - + 76
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1134
SELECT - NULLIF ( + COUNT( * ), - SUM( ALL - - 76 ) + + 3 * - - 26 + COALESCE ( 76, - - COUNT( * ) ) ), COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-1134
SELECT - NULLIF ( + COUNT ( * ), - SUM ( ALL - - 76 ) + + 3 * - - 26 + COALESCE ( 76, - - COUNT ( * ) ) ), COUNT ( * ) AS col0
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1135
SELECT ( COUNT( - + 50 ) ) + - CASE - ( + - COUNT( ALL + 9 ) ) WHEN - 1 * - CASE - 89 WHEN + 51 / - 76 THEN - + SUM( - 49 ) END * + 76 * - COUNT( + 58 ) THEN - 84 * - CAST( NULL AS SIGNED ) + + MIN( 17 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1135
SELECT ( COUNT ( - + 50 ) ) + - CASE - ( + - COUNT ( ALL + 9 ) ) WHEN - 1 * - CASE - 89 WHEN + 51 / - 76 THEN - + SUM ( - 49 ) END * + 76 * - COUNT ( + 58 ) THEN - 84 * - CAST ( NULL AS INTEGER ) + + MIN ( 17 ) END
----
NULL

query I rowsort
SELECT ALL + - 27 * - + 96
----
2592

query I rowsort
SELECT 81 * 99 AS col1
----
8019

query I rowsort
SELECT 40 - + 55 + 70 * - 75 - ( - 23 )
----
-5242

query I rowsort
SELECT - 33 * 51 AS col1
----
-1683

query I rowsort
SELECT ALL + 24 + + 74
----
98

query I rowsort
SELECT + 55 * 84
----
4620

onlyif mysql # aggregate syntax: 
query II rowsort label-1142
SELECT DISTINCT - + 85 + - + 76 + + 32 * - + COUNT( * ) AS col1, ( - 25 ) + - 10 + + 91 * NULLIF ( + - 79, 74 * - NULLIF ( 31, + 90 * + 78 + 54 ) ) + - ( + 65 )
----
-193
-7289

skipif mysql # not compatible
query II rowsort label-1142
SELECT DISTINCT - + 85 + - + 76 + + 32 * - + COUNT ( * ) AS col1, ( - 25 ) + - 10 + + 91 * NULLIF ( + - 79, 74 * - NULLIF ( 31, + 90 * + 78 + 54 ) ) + - ( + 65 )
----
-193
-7289

onlyif mysql # DIV for integer division: 
query I rowsort label-1143
SELECT ALL + + 23 + 1 + - + 53 + + 14 DIV - 21 * - 42 * - 53
----
-29

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL + + 23 + 1 + - + 53 + + 14 / - 21 * - 42 * - 53
----
-29

query I rowsort
SELECT ALL 52 + 7 - 19 + + + COALESCE ( - + 79, 59, + 24 ) AS col1
----
-39

query I rowsort
SELECT + 27 * + - 64 + - 85 + + + 11
----
-1802

onlyif mysql # DIV for integer division: 
query II rowsort label-1146
SELECT + 21 DIV + 29 + + 97, 97 AS col1
----
97
97

skipif mysql # not compatible
query II rowsort label-1146
SELECT + 21 / + 29 + + 97, 97 AS col1
----
97
97

query I rowsort
SELECT DISTINCT NULLIF ( ( + 69 ), 27 ) + - - 16 + 71 AS col1
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT 7 + + 50 + + 48 DIV + 57 * + 60 + + 25 col1
----
82

skipif mysql # not compatible
query I rowsort label-1148
SELECT 7 + + 50 + + 48 / + 57 * + 60 + + 25 col1
----
82

query II rowsort
SELECT DISTINCT - 84, 84 col0
----
-84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1150
SELECT ALL CAST( 81 AS SIGNED ) + + ( - 21 )
----
60

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL CAST ( 81 AS INTEGER ) + + ( - 21 )
----
60

query I rowsort
SELECT ( + + 6 ) + 43 AS col0
----
49

query I rowsort
SELECT DISTINCT NULLIF ( 49, - 17 ) * + 87 AS col0
----
4263

query I rowsort
SELECT ALL ( - - 59 ) * - 22 + - 28
----
-1326

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

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL CAST ( + 14 AS INTEGER ) - - CAST ( + + 26 AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT CASE + ( + COUNT( * ) ) WHEN + 45 THEN + 45 * 52 ELSE NULL END + - + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1155
SELECT CASE + ( + COUNT ( * ) ) WHEN + 45 THEN + 45 * 52 ELSE NULL END + - + 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT COUNT( * ) + + 93 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1156
SELECT COUNT ( * ) + + 93 AS col0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-1157
SELECT 61 * MAX( ALL 52 ) AS col2, COUNT( * ) * - CASE SUM( COALESCE ( 45, + - 9 * + 19 ) ) WHEN - 30 THEN - 86 END + - ( - COUNT( 50 ) )
----
3172
NULL

skipif mysql # not compatible
query II rowsort label-1157
SELECT 61 * MAX ( ALL 52 ) AS col2, COUNT ( * ) * - CASE SUM ( COALESCE ( 45, + - 9 * + 19 ) ) WHEN - 30 THEN - 86 END + - ( - COUNT ( 50 ) )
----
3172
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT 68 + + 89 + + 87 + - - COUNT( * )
----
245

skipif mysql # not compatible
query I rowsort label-1158
SELECT 68 + + 89 + + 87 + - - COUNT ( * )
----
245

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

query I rowsort
SELECT ALL - 56 * + - CASE + 86 WHEN 24 + 53 THEN NULL WHEN + 74 THEN NULL ELSE - ( COALESCE ( 4, - 20 ) ) END * - + 2 AS col0
----
448

query I rowsort
SELECT 57 + + + 53 AS col2
----
110

query III rowsort
SELECT 67 + - 0 - + + 67 + - - 42 - - + 85 * - - 26 AS col1, ( - 40 ) col1, - 41
----
2252
-40
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1163
SELECT ALL - CAST( NULL AS DECIMAL ) * - COALESCE ( 53, + MIN( ALL 48 ) / MIN( - 95 ), - 52 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL - CAST ( NULL AS REAL ) * - COALESCE ( 53, + MIN ( ALL 48 ) / MIN ( - 95 ), - 52 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1164
SELECT ALL + - 0 * + + MAX( ALL + CAST( - 19 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL + - 0 * + + MAX ( ALL + CAST ( - 19 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT 3 + + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1165
SELECT 3 + + + COUNT ( * ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1166
SELECT - 18, 35 * + COUNT( * ) * - SUM( ALL 61 ) + + 69 * 46 AS col1
----
-18
1039

skipif mysql # not compatible
query II rowsort label-1166
SELECT - 18, 35 * + COUNT ( * ) * - SUM ( ALL 61 ) + + 69 * 46 AS col1
----
-18
1039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1167
SELECT - CASE CAST( + ( + COUNT( * ) ) AS SIGNED ) WHEN - + 29 THEN NULL ELSE - 17 END AS col2
----
17

skipif mysql # not compatible
query I rowsort label-1167
SELECT - CASE CAST ( + ( + COUNT ( * ) ) AS INTEGER ) WHEN - + 29 THEN NULL ELSE - 17 END AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1168
SELECT 68 col1, - 4 * 95 * + 11 + CAST( NULL AS DECIMAL ) + - - MAX( 51 ) + + 25 * + 61 / + NULLIF ( 75, + - 47 )
----
68
NULL

skipif mysql # not compatible
query II rowsort label-1168
SELECT 68 col1, - 4 * 95 * + 11 + CAST ( NULL AS REAL ) + - - MAX ( 51 ) + + 25 * + 61 / + NULLIF ( 75, + - 47 )
----
68
NULL

query I rowsort
SELECT - 78 + + + 91 + 60
----
73

query II rowsort
SELECT - - 95, 68 AS col2
----
95
68

query I rowsort
SELECT ALL + CASE + + NULLIF ( 80, - 29 ) WHEN - 1 + - + 59 THEN + 79 + + 21 WHEN + 39 THEN NULL END + - 55
----
NULL

query II rowsort
SELECT ALL - ( + - 11 ) + + 3 AS col0, 51 AS col0
----
14
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT ALL - CASE + - 66 WHEN - CASE - 50 WHEN 91 * - ( - 84 ) + 79 THEN + ( 52 ) WHEN - ( - + AVG ( - - COALESCE ( 27, - 19 ) ) ) THEN + 22 * 88 + ( COALESCE ( + 34, + NULLIF ( - ( + SUM( - ( - 78 ) ) ), 61 + - - 8 ), + 83 * + 83 * COUNT( - 77 ) ) ) ELSE NULL END / + + 7 THEN NULL WHEN + 78 THEN NULL ELSE - 34 END
----
34

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL - CASE + - 66 WHEN - CASE - 50 WHEN 91 * - ( - 84 ) + 79 THEN + ( 52 ) WHEN - ( - + AVG ( - - COALESCE ( 27, - 19 ) ) ) THEN + 22 * 88 + ( COALESCE ( + 34, + NULLIF ( - ( + SUM ( - ( - 78 ) ) ), 61 + - - 8 ), + 83 * + 83 * COUNT ( - 77 ) ) ) ELSE NULL END / + + 7 THEN NULL WHEN + 78 THEN NULL ELSE - 34 END
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-1174
SELECT DISTINCT + - 33 + - ( + 45 ), 1 + - - COUNT( * ) + + - 93 AS col1
----
-78
-91

skipif mysql # not compatible
query II rowsort label-1174
SELECT DISTINCT + - 33 + - ( + 45 ), 1 + - - COUNT ( * ) + + - 93 AS col1
----
-78
-91

query I rowsort
SELECT ALL - ( 35 ) * - - ( + 27 ) * - - 90 + + + 52
----
-84998

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT ALL - 92 + 52 DIV - - 68 * ( + 41 ) + 50 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL - 92 + 52 / - - 68 * ( + 41 ) + 50 AS col2
----
-42

query I rowsort
SELECT ALL + + 20 + - - 58
----
78

query I rowsort
SELECT ALL - 59 + + 21 - - 95 + - 85 AS col0
----
-28

query I rowsort
SELECT - 10 - - + 34
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1180
SELECT - ( 5 ) DIV 8 + + 77
----
77

skipif mysql # not compatible
query I rowsort label-1180
SELECT - ( 5 ) / 8 + + 77
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1181
SELECT DISTINCT - NULLIF ( COUNT( * ), - MIN( DISTINCT + 50 ) * + 29 - - 43 ) * + 95 * - NULLIF ( - - CAST( NULL AS SIGNED ), - COUNT( * ) ) / + 29 * + 28 * - - AVG ( - + 59 ) + + ( - 81 ), + 11 AS col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-1181
SELECT DISTINCT - NULLIF ( COUNT ( * ), - MIN ( DISTINCT + 50 ) * + 29 - - 43 ) * + 95 * - NULLIF ( - - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) / + 29 * + 28 * - - AVG ( - + 59 ) + + ( - 81 ), + 11 AS col0
----
NULL
11

query II rowsort
SELECT ALL 25 col2, 11 * - + 73 * 70
----
25
-56210

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

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

query I rowsort
SELECT DISTINCT - 14 * + 97
----
-1358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1185
SELECT COALESCE ( + + COUNT( * ), 89 * 14, + ( - 87 ) * + 80 + + + CAST( - CASE COALESCE ( 22, - + 59 ) WHEN + MAX( + 0 ) THEN + SUM( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) END AS SIGNED ), - ( 20 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1185
SELECT COALESCE ( + + COUNT ( * ), 89 * 14, + ( - 87 ) * + 80 + + + CAST ( - CASE COALESCE ( 22, - + 59 ) WHEN + MAX ( + 0 ) THEN + SUM ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) END AS INTEGER ), - ( 20 ) ) AS col1
----
1

query I rowsort
SELECT ALL 49 / + CASE 86 WHEN - 94 + + + CASE 20 WHEN - 5 THEN NULL ELSE - 82 - 47 END * + 21 THEN - + 33 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL - SUM( ALL - 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL - SUM ( ALL - 94 ) AS col0
----
94

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

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

query II rowsort
SELECT + 91, 83 AS col1
----
91
83

onlyif mysql # aggregate syntax: 
query II rowsort label-1190
SELECT DISTINCT - 94 AS col2, - MAX( 33 ) AS col2
----
-94
-33

skipif mysql # not compatible
query II rowsort label-1190
SELECT DISTINCT - 94 AS col2, - MAX ( 33 ) AS col2
----
-94
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-1191
SELECT ALL 90 * - 1 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL 90 * - 1 / + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT + MIN( DISTINCT + ( + 14 ) )
----
14

skipif mysql # not compatible
query I rowsort label-1192
SELECT + MIN ( DISTINCT + ( + 14 ) )
----
14

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

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

query I rowsort
SELECT ALL 54 * + - 54
----
-2916

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT SUM( ALL + NULLIF ( - 55, - 23 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-1195
SELECT SUM ( ALL + NULLIF ( - 55, - 23 ) )
----
-55

query I rowsort
SELECT + 26 * + 95
----
2470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT 59 * + - 2 * - MIN( + 29 ) * + 81 DIV COUNT( * ) + - 8 + + 2 AS col0
----
277176

skipif mysql # not compatible
query I rowsort label-1197
SELECT 59 * + - 2 * - MIN ( + 29 ) * + 81 / COUNT ( * ) + - 8 + + 2 AS col0
----
277176

query I rowsort
SELECT + COALESCE ( + 81, + + 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT + ( - SUM( DISTINCT + - 98 ) ) + - + 82
----
16

skipif mysql # not compatible
query I rowsort label-1199
SELECT + ( - SUM ( DISTINCT + - 98 ) ) + - + 82
----
16

query I rowsort
SELECT - NULLIF ( - 84, - 76 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-1201
SELECT + - COUNT( * ) + 47 * 41 * + 95 AS col2, 14 * - COALESCE ( + - 99, - ( ( - COUNT( * ) ) ) ) AS col2
----
183064
1386

skipif mysql # not compatible
query II rowsort label-1201
SELECT + - COUNT ( * ) + 47 * 41 * + 95 AS col2, 14 * - COALESCE ( + - 99, - ( ( - COUNT ( * ) ) ) ) AS col2
----
183064
1386

query I rowsort
SELECT - - COALESCE ( - - 87, 47 + - + 56 ) * + - 74
----
-6438

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1204
SELECT ALL 69, + COUNT( ALL 33 ) AS col2
----
69
1

skipif mysql # not compatible
query II rowsort label-1204
SELECT ALL 69, + COUNT ( ALL 33 ) AS col2
----
69
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1205
SELECT + - 18 - + - COALESCE ( - 9, 73, - 71 DIV + - 14 - 52 ) * + 57 * + MIN( - 40 )
----
20502

skipif mysql # not compatible
query I rowsort label-1205
SELECT + - 18 - + - COALESCE ( - 9, 73, - 71 / + - 14 - 52 ) * + 57 * + MIN ( - 40 )
----
20502

query I rowsort
SELECT DISTINCT - ( 29 ) + - - 34 AS col1
----
5

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

skipif mysql # not compatible
query I rowsort label-1207
SELECT - + MAX ( 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT - 5 * - NULLIF ( + - 90, + COUNT( * ) * - 17 ) + - + 36 AS col2
----
-486

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT - 5 * - NULLIF ( + - 90, + COUNT ( * ) * - 17 ) + - + 36 AS col2
----
-486

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT + COUNT( ALL - 2 ) + + - 11
----
-10

skipif mysql # not compatible
query I rowsort label-1210
SELECT + COUNT ( ALL - 2 ) + + - 11
----
-10

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1212
SELECT - - 3 - 73 + + COUNT( * ) DIV 48 col1
----
-70

skipif mysql # not compatible
query I rowsort label-1212
SELECT - - 3 - 73 + + COUNT ( * ) / 48 col1
----
-70

query I rowsort
SELECT - CASE - 81 WHEN - 95 THEN NULL ELSE + ( + 39 ) END
----
-39

query I rowsort
SELECT ALL - - CASE - AVG ( DISTINCT 54 ) WHEN 74 + 20 THEN AVG ( ALL - 51 ) WHEN - NULLIF ( - 76, - 93 ) THEN NULL WHEN - - 5 + - 41 - - 20 THEN NULL END - + - 38
----
NULL

query I rowsort
SELECT DISTINCT 96 * - - 80 col1
----
7680

query II rowsort
SELECT - 3 - 35 + - 86, - 95 AS col0
----
-124
-95

query I rowsort
SELECT - 62 * + + 52 AS col0
----
-3224

query II rowsort
SELECT ALL ( ( + - 52 ) ), + 35 AS col0
----
-52
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1219
SELECT DISTINCT - 73 * + - CAST( + 46 AS SIGNED ), 45 AS col1
----
3358
45

skipif mysql # not compatible
query II rowsort label-1219
SELECT DISTINCT - 73 * + - CAST ( + 46 AS INTEGER ), 45 AS col1
----
3358
45

query I rowsort
SELECT ALL - 0 - + 4 + 14 col0
----
10

query I rowsort
SELECT + 26 * - 80 col2
----
-2080

query I rowsort
SELECT - 32 * + NULLIF ( 18, - + 36 )
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT - 96 + NULLIF ( - COUNT( * ), + 38 / + + 86 + + + COUNT( * ) )
----
-97

skipif mysql # not compatible
query I rowsort label-1223
SELECT - 96 + NULLIF ( - COUNT ( * ), + 38 / + + 86 + + + COUNT ( * ) )
----
-97

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1225
SELECT - COUNT( * ) DIV ( - 16 ) DIV - - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1225
SELECT - COUNT ( * ) / ( - 16 ) / - - 90 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1226
SELECT ALL + COALESCE ( 87, + 82, + 22 DIV COUNT( * ) + - 86 ) col0
----
87

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL + COALESCE ( 87, + 82, + 22 / COUNT ( * ) + - 86 ) col0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1227
SELECT COUNT( * ) DIV 64 DIV + 44 + + ( + 39 ) col2
----
39

skipif mysql # not compatible
query I rowsort label-1227
SELECT COUNT ( * ) / 64 / + 44 + + ( + 39 ) col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1228
SELECT + COALESCE ( 26, COUNT( * ) DIV + - 60 + 35 DIV - 19 * - ( 90 ) + + ( - 37 ) + 69 ) + + 37 + - ( - 79 ) + - 29 AS col1, 4
----
113
4

skipif mysql # not compatible
query II rowsort label-1228
SELECT + COALESCE ( 26, COUNT ( * ) / + - 60 + 35 / - 19 * - ( 90 ) + + ( - 37 ) + 69 ) + + 37 + - ( - 79 ) + - 29 AS col1, 4
----
113
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT - COUNT( * ) * + 18 * + MIN( ALL + 27 ) AS col1
----
-486

skipif mysql # not compatible
query I rowsort label-1229
SELECT - COUNT ( * ) * + 18 * + MIN ( ALL + 27 ) AS col1
----
-486

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT - 29 * SUM( + 59 ) + + 82
----
-1629

skipif mysql # not compatible
query I rowsort label-1231
SELECT - 29 * SUM ( + 59 ) + + 82
----
-1629

query II rowsort
SELECT ALL - 90 * + + 90 + + CASE WHEN NOT + 33 NOT BETWEEN NULL AND + 11 * + AVG ( ALL 82 ) THEN + - 35 END + + - 14, 58 * - 11 AS col1
----
NULL
-638

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1235
SELECT + COALESCE ( + + 16, + 27 + + CAST( NULL AS SIGNED ) ) * - 9
----
-144

skipif mysql # not compatible
query I rowsort label-1235
SELECT + COALESCE ( + + 16, + 27 + + CAST ( NULL AS INTEGER ) ) * - 9
----
-144

query I rowsort
SELECT + 88 + + 94 col0
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1237
SELECT + + COALESCE ( + 35, - COUNT( ALL ( 54 ) ) ) DIV 25 + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1237
SELECT + + COALESCE ( + 35, - COUNT ( ALL ( 54 ) ) ) / 25 + + COUNT ( * ) AS col2
----
2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1239
SELECT DISTINCT COUNT( * ) DIV ( - 52 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT COUNT ( * ) / ( - 52 ) AS col0
----
0

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

skipif mysql # not compatible
query II rowsort label-1240
SELECT + 29 / + + COUNT ( * ), ( 0 ) col2
----
29
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT ALL + MIN( ALL + 71 ) * + - 86 AS col2
----
-6106

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL + MIN ( ALL + 71 ) * + - 86 AS col2
----
-6106

onlyif mysql # aggregate syntax: 
query II rowsort label-1242
SELECT + 80 + - - MAX( - 29 ) col1, - 7
----
51
-7

skipif mysql # not compatible
query II rowsort label-1242
SELECT + 80 + - - MAX ( - 29 ) col1, - 7
----
51
-7

query II rowsort
SELECT ALL 20 AS col1, - 52
----
20
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1244
SELECT + 56 + + 99 * + - 61 * + - 17 * - MIN( - CAST( - 57 AS SIGNED ) ) + - + CASE 69 WHEN CAST( NULL AS SIGNED ) * + 61 THEN NULL ELSE + 61 * 7 + - 69 + + + 3 - ( - + 33 ) END AS col2
----
-5852129

skipif mysql # not compatible
query I rowsort label-1244
SELECT + 56 + + 99 * + - 61 * + - 17 * - MIN ( - CAST ( - 57 AS INTEGER ) ) + - + CASE 69 WHEN CAST ( NULL AS INTEGER ) * + 61 THEN NULL ELSE + 61 * 7 + - 69 + + + 3 - ( - + 33 ) END AS col2
----
-5852129

query I rowsort
SELECT ALL ( - 10 ) * - ( 91 )
----
910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1246
SELECT + 26 / - COALESCE ( - CAST( NULL AS SIGNED ), + 24 * - - 6 + - + 55 + - CAST( NULL AS SIGNED ) - 82 * + ( + + COUNT( * ) ) + - 75 + 12 + + ( + COUNT( * ) ) / + 25 + + + 85 ) * + ( 85 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1246
SELECT + 26 / - COALESCE ( - CAST ( NULL AS INTEGER ), + 24 * - - 6 + - + 55 + - CAST ( NULL AS INTEGER ) - 82 * + ( + + COUNT ( * ) ) + - 75 + 12 + + ( + COUNT ( * ) ) / + 25 + + + 85 ) * + ( 85 ) AS col1
----
NULL

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

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

query II rowsort
SELECT 72 AS col0, 32 * + 47 + + + 88
----
72
1592

onlyif mysql # aggregate syntax: 
query II rowsort label-1249
SELECT 26 - + - MAX( ALL - + 5 ), - 82 * COUNT( * ) - CASE + + 5 WHEN + SUM( DISTINCT - 52 ) + - 99 THEN NULL ELSE - 65 END * - 66 + 14 AS col1
----
21
-4358

skipif mysql # not compatible
query II rowsort label-1249
SELECT 26 - + - MAX ( ALL - + 5 ), - 82 * COUNT ( * ) - CASE + + 5 WHEN + SUM ( DISTINCT - 52 ) + - 99 THEN NULL ELSE - 65 END * - 66 + 14 AS col1
----
21
-4358

query I rowsort
SELECT 68 + 33 AS col2
----
101

query II rowsort
SELECT - 87, + 8 AS col2
----
-87
8

query I rowsort
SELECT 77 + - 64
----
13

query II rowsort
SELECT DISTINCT 94 AS col2, 98
----
94
98

query I rowsort
SELECT ALL + 97 + + ( - - 17 ) + - 32
----
82

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1256
SELECT - 88 / - 29 * 64 - 48 + + - CAST( NULL AS SIGNED ) - - 40 - - + CAST( NULL AS DECIMAL ) * 87 * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1256
SELECT - 88 / - 29 * 64 - 48 + + - CAST ( NULL AS INTEGER ) - - 40 - - + CAST ( NULL AS REAL ) * 87 * - 29
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1257
SELECT ALL - 98 + NULLIF ( CAST( NULL AS SIGNED ), 88 * - 55 - + + ( CAST( + 61 AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL - 98 + NULLIF ( CAST ( NULL AS INTEGER ), 88 * - 55 - + + ( CAST ( + 61 AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1258
SELECT 33 col2, - 73 * - - COUNT( * ) AS col2
----
33
-73

skipif mysql # not compatible
query II rowsort label-1258
SELECT 33 col2, - 73 * - - COUNT ( * ) AS col2
----
33
-73

query I rowsort
SELECT ALL + 34 + + 58 * ( - + 31 ) AS col0
----
-1764

onlyif mysql # aggregate syntax: 
query II rowsort label-1260
SELECT - COUNT( * ) AS col1, - 4 + + 44 - - 58 + - - 69 AS col1
----
-1
167

skipif mysql # not compatible
query II rowsort label-1260
SELECT - COUNT ( * ) AS col1, - 4 + + 44 - - 58 + - - 69 AS col1
----
-1
167

query I rowsort
SELECT ALL - + 81 + + + 91
----
10

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

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

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT - COUNT ( * ) + - - 57 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT DISTINCT + - MIN( ALL + + 20 ) + 20 col1
----
0

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT + - MIN ( ALL + + 20 ) + 20 col1
----
0

query I rowsort
SELECT ALL - - ( 2 ) + - 12 AS col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1266
SELECT DISTINCT - SUM( - ( + 68 ) ) AS col2, + 31 DIV - 45 AS col1
----
68
0

skipif mysql # not compatible
query II rowsort label-1266
SELECT DISTINCT - SUM ( - ( + 68 ) ) AS col2, + 31 / - 45 AS col1
----
68
0

query I rowsort
SELECT DISTINCT 45 + - ( - 2 ) * - 70
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1268
SELECT ALL + - 76 DIV COUNT( * ) * 11, 43 AS col1
----
-836
43

skipif mysql # not compatible
query II rowsort label-1268
SELECT ALL + - 76 / COUNT ( * ) * 11, 43 AS col1
----
-836
43

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1270
SELECT ALL + 72 / ( + CAST( NULL AS DECIMAL ) ) * 71 + + + CASE 31 WHEN - 13 * - - 7 THEN - + 58 WHEN COALESCE ( + + 78, - 46, 57 ) * COUNT( * ) THEN NULL END - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL + 72 / ( + CAST ( NULL AS REAL ) ) * 71 + + + CASE 31 WHEN - 13 * - - 7 THEN - + 58 WHEN COALESCE ( + + 78, - 46, 57 ) * COUNT ( * ) THEN NULL END - 45
----
NULL

query II rowsort
SELECT 36 AS col1, 61 + + - 18 * 26 AS col2
----
36
-407

onlyif mysql # DIV for integer division: 
query I rowsort label-1272
SELECT + 84 * - + 53 + + + 27 * - - 33 + - + 86 DIV ( 8 )
----
-3571

skipif mysql # not compatible
query I rowsort label-1272
SELECT + 84 * - + 53 + + + 27 * - - 33 + - + 86 / ( 8 )
----
-3571

onlyif mysql # aggregate syntax: 
query II rowsort label-1273
SELECT - 99 * - - 20 * - COUNT( * ) AS col2, 18 col2
----
1980
18

skipif mysql # not compatible
query II rowsort label-1273
SELECT - 99 * - - 20 * - COUNT ( * ) AS col2, 18 col2
----
1980
18

query II rowsort
SELECT ALL + 55 AS col1, 4 col1
----
55
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1275
SELECT - 17 * - 74 + - 41 DIV - - 10 + - 4 - + SUM( 45 ) DIV - COUNT( * )
----
1295

skipif mysql # not compatible
query I rowsort label-1275
SELECT - 17 * - 74 + - 41 / - - 10 + - 4 - + SUM ( 45 ) / - COUNT ( * )
----
1295

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT DISTINCT ( - COUNT( DISTINCT - - 92 ) ) * + 40 + + + 4
----
-36

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT ( - COUNT ( DISTINCT - - 92 ) ) * + 40 + + + 4
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT COUNT( * ) + + 0 + + 50 + 22 - 99 * 34
----
-3293

skipif mysql # not compatible
query I rowsort label-1277
SELECT COUNT ( * ) + + 0 + + 50 + 22 - 99 * 34
----
-3293

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT ( 57 ) DIV + + 6 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1278
SELECT ( 57 ) / + + 6 AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1279
SELECT COUNT( * ) * 44 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-1279
SELECT COUNT ( * ) * 44 / + 39
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1280
SELECT 35 + 9 * - 69 + CAST( 61 AS SIGNED ) + + - 64 * - 9
----
51

skipif mysql # not compatible
query I rowsort label-1280
SELECT 35 + 9 * - 69 + CAST ( 61 AS INTEGER ) + + - 64 * - 9
----
51

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

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

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL 67 / COUNT ( * ) col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1283
SELECT DISTINCT COUNT( * ) + - + 32 + MIN( DISTINCT 4 ) DIV - MIN( - 94 ) + MIN( DISTINCT - 20 ) * - + 7 * + COALESCE ( + 51, 45 ) - + 83 AS col1
----
7026

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT COUNT ( * ) + - + 32 + MIN ( DISTINCT 4 ) / - MIN ( - 94 ) + MIN ( DISTINCT - 20 ) * - + 7 * + COALESCE ( + 51, 45 ) - + 83 AS col1
----
7026

onlyif mysql # DIV for integer division: 
query I rowsort label-1284
SELECT ALL 31 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL 31 / 94
----
0

query I rowsort
SELECT DISTINCT 90 + 6
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1286
SELECT ( + 86 ) + 16 + - 29 + COALESCE ( CAST( NULL AS SIGNED ), + 26 - + + 13 - - - COUNT( ALL 13 ) + + 52 ) + 4 + 30 * + + 46
----
1521

skipif mysql # not compatible
query I rowsort label-1286
SELECT ( + 86 ) + 16 + - 29 + COALESCE ( CAST ( NULL AS INTEGER ), + 26 - + + 13 - - - COUNT ( ALL 13 ) + + 52 ) + 4 + 30 * + + 46
----
1521

query I rowsort
SELECT DISTINCT 66 * 91 * - + 60 AS col0
----
-360360

query I rowsort
SELECT ALL 24 + - - 99
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-1289
SELECT 66 DIV 4 + - 45 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-1289
SELECT 66 / 4 + - 45 AS col0
----
-29

query I rowsort
SELECT 30 * 71 - - 28 AS col1
----
2158

query I rowsort
SELECT 12 * + - 75
----
-900

query I rowsort
SELECT ( + 92 ) + - + 8 AS col0
----
84

query I rowsort
SELECT ALL - + NULLIF ( - - ( + - 4 ), - 85 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT - + 10 * - COUNT( * ) + 74
----
84

skipif mysql # not compatible
query I rowsort label-1294
SELECT - + 10 * - COUNT ( * ) + 74
----
84

query I rowsort
SELECT ALL - 25 - + 38 + 33
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ( MIN( - - 22 ) ) + - SUM( DISTINCT COALESCE ( - 47, - 27 ) ) - - 41 * - 21 AS col2
----
-792

skipif mysql # not compatible
query I rowsort label-1296
SELECT ( MIN ( - - 22 ) ) + - SUM ( DISTINCT COALESCE ( - 47, - 27 ) ) - - 41 * - 21 AS col2
----
-792

query II rowsort
SELECT 54 + + + 39 col1, + 29
----
93
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1298
SELECT ALL + CAST( 66 AS SIGNED ) DIV - COALESCE ( + 62, - 38 ), COUNT( * ) + - COUNT( * ) col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-1298
SELECT ALL + CAST ( 66 AS INTEGER ) / - COALESCE ( + 62, - 38 ), COUNT ( * ) + - COUNT ( * ) col1
----
-1
0

query I rowsort
SELECT 85 + - + 94
----
-9

query I rowsort
SELECT DISTINCT + 26 * - 3 AS col2
----
-78

query I rowsort
SELECT ( + 55 ) * 73
----
4015

query II rowsort
SELECT DISTINCT - 82 * + 35 AS col0, - 3
----
-2870
-3

query I rowsort
SELECT ALL - NULLIF ( + 96, - 20 ) col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT - 20 * - MAX( 12 ) * + 27 * - 54 AS col1
----
-349920

skipif mysql # not compatible
query I rowsort label-1304
SELECT - 20 * - MAX ( 12 ) * + 27 * - 54 AS col1
----
-349920

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

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL SUM ( - 19 )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1306
SELECT - 20 DIV + 61 DIV - 93 DIV + 89 * + COUNT( * ) AS col1, + 60 col1
----
0
60

skipif mysql # not compatible
query II rowsort label-1306
SELECT - 20 / + 61 / - 93 / + 89 * + COUNT ( * ) AS col1, + 60 col1
----
0
60

query I rowsort
SELECT + 26 + + + 70 * 48
----
3386

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT ALL CASE - 16 WHEN 42 + + COUNT( ALL - - 60 ) THEN + ( - 7 ) ELSE + MAX( - 53 ) END
----
-53

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL CASE - 16 WHEN 42 + + COUNT ( ALL - - 60 ) THEN + ( - 7 ) ELSE + MAX ( - 53 ) END
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT - MAX( DISTINCT 68 ) * + 93 AS col0
----
-6324

skipif mysql # not compatible
query I rowsort label-1309
SELECT - MAX ( DISTINCT 68 ) * + 93 AS col0
----
-6324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1310
SELECT ALL - NULLIF ( - + CAST( - + CAST( - + 83 AS SIGNED ) AS SIGNED ), + COALESCE ( + 27, - + COUNT( * ) / + 42 * - COUNT( * ) + + 20 ) * - - COUNT( * ) ) + 80 AS col1
----
163

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL - NULLIF ( - + CAST ( - + CAST ( - + 83 AS INTEGER ) AS INTEGER ), + COALESCE ( + 27, - + COUNT ( * ) / + 42 * - COUNT ( * ) + + 20 ) * - - COUNT ( * ) ) + 80 AS col1
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-1311
SELECT ALL 85 + - 5 + + - 30 DIV - - 99
----
80

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL 85 + - 5 + + - 30 / - - 99
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1312
SELECT - 90 + + - ( NULLIF ( - 37, + - CAST( 40 AS SIGNED ) ) )
----
-53

skipif mysql # not compatible
query I rowsort label-1312
SELECT - 90 + + - ( NULLIF ( - 37, + - CAST ( 40 AS INTEGER ) ) )
----
-53

query I rowsort
SELECT DISTINCT + 52 * + + 22 AS col0
----
1144

query I rowsort
SELECT ALL - 97 + - ( 66 )
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT - COUNT( - 19 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1315
SELECT - COUNT ( - 19 ) AS col1
----
-1

query I rowsort
SELECT ALL + 34 + - 63 AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1317
SELECT ALL NULLIF ( - 49, + - CAST( NULL AS SIGNED ) ), 26 AS col1
----
-49
26

skipif mysql # not compatible
query II rowsort label-1317
SELECT ALL NULLIF ( - 49, + - CAST ( NULL AS INTEGER ) ), 26 AS col1
----
-49
26

query I rowsort
SELECT DISTINCT + 80 + - - 35 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT DISTINCT - 16 - NULLIF ( - 53, - 68 / - CASE - + 91 WHEN - + 23 THEN NULL ELSE - 78 * + AVG ( ALL - 97 ) + - 90 + - + COUNT( * ) + - SUM( 33 ) + 50 * - - 26 / - 2 END )
----
37

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT - 16 - NULLIF ( - 53, - 68 / - CASE - + 91 WHEN - + 23 THEN NULL ELSE - 78 * + AVG ( ALL - 97 ) + - 90 + - + COUNT ( * ) + - SUM ( 33 ) + 50 * - - 26 / - 2 END )
----
37

query I rowsort
SELECT ALL + NULLIF ( - 99, + 46 ) AS col0
----
-99

query I rowsort
SELECT ALL 5 * - 77
----
-385

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT DISTINCT - 38 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT - 38 / - 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT + ( + COUNT( * ) ) * - SUM( + + 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-1323
SELECT + ( + COUNT ( * ) ) * - SUM ( + + 59 ) AS col0
----
-59

query I rowsort
SELECT + 92 * 37
----
3404

onlyif mysql # aggregate syntax: 
query II rowsort label-1325
SELECT ALL ( - COUNT( * ) ) * - 93 AS col2, + 89 * - ( - + 90 ) col0
----
93
8010

skipif mysql # not compatible
query II rowsort label-1325
SELECT ALL ( - COUNT ( * ) ) * - 93 AS col2, + 89 * - ( - + 90 ) col0
----
93
8010

query I rowsort
SELECT + 32 - + 44
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1327
SELECT + - 94 DIV 60 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1327
SELECT + - 94 / 60 AS col1
----
-1

query II rowsort
SELECT ALL - ( 58 ) * + 38 AS col1, 91 AS col0
----
-2204
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1329
SELECT ALL - - 5 * - 28 - 80 + - NULLIF ( MIN( ALL ( + 58 ) ), - 60 - - + 20 + - + COUNT( * ) + - 82 * - - ( - + COUNT( * ) ) + - + 80 + + COALESCE ( - CAST( NULL AS SIGNED ), + 75 + - - CAST( NULL AS SIGNED ) + + + 71 ) * + 29 ) * - ( - 64 ) * 60 * 6 + 83 - + COALESCE ( 79, + 73 + 29, + - 84 ) DIV - 83 * + 53 AS col1
----
-1336457

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL - - 5 * - 28 - 80 + - NULLIF ( MIN ( ALL ( + 58 ) ), - 60 - - + 20 + - + COUNT ( * ) + - 82 * - - ( - + COUNT ( * ) ) + - + 80 + + COALESCE ( - CAST ( NULL AS INTEGER ), + 75 + - - CAST ( NULL AS INTEGER ) + + + 71 ) * + 29 ) * - ( - 64 ) * 60 * 6 + 83 - + COALESCE ( 79, + 73 + 29, + - 84 ) / - 83 * + 53 AS col1
----
-1336457

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT + + NULLIF ( + 58, + ( - 23 ) ) * - SUM( - 63 ) AS col0
----
3654

skipif mysql # not compatible
query I rowsort label-1330
SELECT + + NULLIF ( + 58, + ( - 23 ) ) * - SUM ( - 63 ) AS col0
----
3654

query I rowsort
SELECT + - 50 * - 23
----
1150

query I rowsort
SELECT DISTINCT 33 * + 52
----
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT + + SUM( + - 15 ) * - COUNT( * ) - + + 63 + + 65
----
17

skipif mysql # not compatible
query I rowsort label-1333
SELECT + + SUM ( + - 15 ) * - COUNT ( * ) - + + 63 + + 65
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1334
SELECT ALL + + 12 AS col0, - 26 * - + CASE + - ( 24 ) WHEN CASE + - 97 WHEN 17 THEN NULL WHEN - + 96 * - 86 - - 20 * + ( - 40 ) * + SUM( ALL + + 48 ) + 96 * + ( 54 ) THEN NULL ELSE + - 29 * 87 END * 29 + + - 9 * + 28 THEN + 68 WHEN - 76 DIV + + COUNT( * ) THEN + 32 DIV - 27 - - + 7 ELSE - + CASE + + 57 WHEN 19 THEN NULL ELSE - 39 + + 61 END END * - - MAX( DISTINCT + - 81 ) col1
----
12
46332

skipif mysql # not compatible
query II rowsort label-1334
SELECT ALL + + 12 AS col0, - 26 * - + CASE + - ( 24 ) WHEN CASE + - 97 WHEN 17 THEN NULL WHEN - + 96 * - 86 - - 20 * + ( - 40 ) * + SUM ( ALL + + 48 ) + 96 * + ( 54 ) THEN NULL ELSE + - 29 * 87 END * 29 + + - 9 * + 28 THEN + 68 WHEN - 76 / + + COUNT ( * ) THEN + 32 / - 27 - - + 7 ELSE - + CASE + + 57 WHEN 19 THEN NULL ELSE - 39 + + 61 END END * - - MAX ( DISTINCT + - 81 ) col1
----
12
46332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1335
SELECT DISTINCT + + NULLIF ( + 17, + 71 + - + CAST( NULL AS SIGNED ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT + + NULLIF ( + 17, + 71 + - + CAST ( NULL AS INTEGER ) ) AS col0
----
17

query I rowsort
SELECT DISTINCT + COALESCE ( + 92, + - ( 89 ) )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1337
SELECT ALL + - MAX( + CAST( NULL AS SIGNED ) ) * + 86 + - 68 * CAST( NULL AS SIGNED ) + 25 / + 93 + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL + - MAX ( + CAST ( NULL AS INTEGER ) ) * + 86 + - 68 * CAST ( NULL AS INTEGER ) + 25 / + 93 + 13 AS col1
----
NULL

query I rowsort
SELECT + 61 + + - ( - + 46 )
----
107

query I rowsort
SELECT ALL - 37 * - + 16
----
592

onlyif mysql # aggregate syntax: 
query II rowsort label-1340
SELECT ALL - 58 * 17 + + - 0 + - 79 AS col2, SUM( + 60 ) col1
----
-1065
60

skipif mysql # not compatible
query II rowsort label-1340
SELECT ALL - 58 * 17 + + - 0 + - 79 AS col2, SUM ( + 60 ) col1
----
-1065
60

query I rowsort
SELECT DISTINCT 15 * + 17 + + 58
----
313

query I rowsort
SELECT DISTINCT 20 * - 74
----
-1480

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT AVG ( 68 ) * 53 * + - CASE - 87 WHEN - 85 THEN + 77 ELSE NULL END + - - MAX( + + 76 ) * + SUM( - 66 ) * - 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1343
SELECT AVG ( 68 ) * 53 * + - CASE - 87 WHEN - 85 THEN + 77 ELSE NULL END + - - MAX ( + + 76 ) * + SUM ( - 66 ) * - 76 AS col1
----
NULL

query I rowsort
SELECT ALL 55 * + 79
----
4345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1345
SELECT DISTINCT NULLIF ( - - CASE + CAST( + + COUNT( * ) AS SIGNED ) WHEN 39 THEN + 92 * 17 + - + 96 + 80 + - 6 * + COUNT( * ) END, + 52 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT NULLIF ( - - CASE + CAST ( + + COUNT ( * ) AS INTEGER ) WHEN 39 THEN + 92 * 17 + - + 96 + 80 + - 6 * + COUNT ( * ) END, + 52 ) col2
----
NULL

query I rowsort
SELECT ALL + 65 + - + ( + ( + 16 ) ) + 42
----
91

query I rowsort
SELECT ALL - 11 + ( 52 ) AS col1
----
41

query I rowsort
SELECT + 13 * - + 7
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1349
SELECT DISTINCT - 93 DIV ( + 25 )
----
-3

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT - 93 / ( + 25 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1350
SELECT ALL ( - CASE + + CAST( - 63 AS SIGNED ) WHEN + COALESCE ( + - 26, - - MAX( DISTINCT 29 ) ) + + 64 THEN CAST( 42 AS SIGNED ) + - 19 * + - 35 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL ( - CASE + + CAST ( - 63 AS INTEGER ) WHEN + COALESCE ( + - 26, - - MAX ( DISTINCT 29 ) ) + + 64 THEN CAST ( 42 AS INTEGER ) + - 19 * + - 35 ELSE NULL END )
----
NULL

query I rowsort
SELECT - 13 * + - 12 AS col2
----
156

query I rowsort
SELECT - 72 + + 33 + - 24
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT ALL + CASE + - AVG ( DISTINCT + 8 ) WHEN 87 * + 87 THEN COUNT( * ) + - 0 END - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL + CASE + - AVG ( DISTINCT + 8 ) WHEN 87 * + 87 THEN COUNT ( * ) + - 0 END - - 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1354
SELECT DISTINCT CASE - ( + 92 ) WHEN - - CAST( + + 70 AS SIGNED ) THEN + + 44 WHEN - 28 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT CASE - ( + 92 ) WHEN - - CAST ( + + 70 AS INTEGER ) THEN + + 44 WHEN - 28 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 30 - + + 83 * - 46 + - 48 AS col0
----
3740

query I rowsort
SELECT DISTINCT - 21 * - - 91
----
-1911

query II rowsort
SELECT 44 AS col0, - 64 AS col0
----
44
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT - - 3 + + + MAX( ALL - 65 ) + - - 3 * + ( - COUNT( + - 7 ) ) - 95 * + 72 AS col0
----
-6905

skipif mysql # not compatible
query I rowsort label-1358
SELECT - - 3 + + + MAX ( ALL - 65 ) + - - 3 * + ( - COUNT ( + - 7 ) ) - 95 * + 72 AS col0
----
-6905

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1359
SELECT 50, - 26 + CAST( NULL AS DECIMAL ) col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-1359
SELECT 50, - 26 + CAST ( NULL AS REAL ) col2
----
50
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1360
SELECT ( - 85 ) * - NULLIF ( + 45, ( - 16 ) * - 61 + - 80 - + CAST( 55 AS DECIMAL ) ) + - 80 - - - 87 + - + 31 - COUNT( * ) AS col1
----
3626

skipif mysql # not compatible
query I rowsort label-1360
SELECT ( - 85 ) * - NULLIF ( + 45, ( - 16 ) * - 61 + - 80 - + CAST ( 55 AS REAL ) ) + - 80 - - - 87 + - + 31 - COUNT ( * ) AS col1
----
3626

query I rowsort
SELECT - 39 * + 17 - - + 66
----
-597

query III rowsort
SELECT ALL + 45, ( - 74 ) + - + 19 col2, 35 * - - 63 AS col2
----
45
-93
2205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1363
SELECT COUNT( ALL + 87 ) * - 58 DIV + 81 + + 70 * - 21 AS col2
----
-1470

skipif mysql # not compatible
query I rowsort label-1363
SELECT COUNT ( ALL + 87 ) * - 58 / + 81 + + 70 * - 21 AS col2
----
-1470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1364
SELECT ALL + 77 * + 44 + - MAX( - 73 ) - MIN( - 7 ) * 87 DIV COUNT( * )
----
4070

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL + 77 * + 44 + - MAX ( - 73 ) - MIN ( - 7 ) * 87 / COUNT ( * )
----
4070

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1365
SELECT DISTINCT - - MIN( ALL - 66 ) DIV + 44
----
-1

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT - - MIN ( ALL - 66 ) / + 44
----
-1

query II rowsort
SELECT + - 25 col0, 36
----
-25
36

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

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

query I rowsort
SELECT ALL + NULLIF ( - 36, - - 63 ) + + 33 + + 43
----
40

query I rowsort
SELECT DISTINCT 80 + - 85 * - - 36 AS col0
----
-2980

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT ALL - NULLIF ( - MIN( DISTINCT + 6 ), + - 58 ) * 79 AS col0
----
474

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL - NULLIF ( - MIN ( DISTINCT + 6 ), + - 58 ) * 79 AS col0
----
474

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT 4 * - + 55 - - 17 + + 65 * CASE 86 WHEN - COUNT( DISTINCT + 66 ) * - - 12 THEN NULL WHEN - - 62 THEN - 10 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT 4 * - + 55 - - 17 + + 65 * CASE 86 WHEN - COUNT ( DISTINCT + 66 ) * - - 12 THEN NULL WHEN - - 62 THEN - 10 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + - 78 * - + 26 + + + 7 + + + 55 AS col2
----
2090

onlyif mysql # aggregate syntax: 
query II rowsort label-1373
SELECT ALL - 97 + + COUNT( * ), COUNT( * ) + - 47 AS col2
----
-96
-46

skipif mysql # not compatible
query II rowsort label-1373
SELECT ALL - 97 + + COUNT ( * ), COUNT ( * ) + - 47 AS col2
----
-96
-46

query I rowsort
SELECT ALL 68 + 51 col1
----
119

query I rowsort
SELECT ALL 79 * - + 84 * ( + 52 )
----
-345072

query I rowsort
SELECT ALL 44 + + - 36 AS col0
----
8

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

query I rowsort
SELECT ALL 8 + + 0 + + + 6 * 23 col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT ( + 51 ) + - COUNT( * ) + - + 39 * 65 AS col2
----
-2485

skipif mysql # not compatible
query I rowsort label-1379
SELECT ( + 51 ) + - COUNT ( * ) + - + 39 * 65 AS col2
----
-2485

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1380
SELECT 60 - + - 10 + - 9 DIV - MIN( + 12 ) AS col2, 8 DIV 20
----
70
0

skipif mysql # not compatible
query II rowsort label-1380
SELECT 60 - + - 10 + - 9 / - MIN ( + 12 ) AS col2, 8 / 20
----
70
0

query I rowsort
SELECT 96 * - - 4
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT ALL 2 * - MIN( DISTINCT 70 ) col2
----
-140

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL 2 * - MIN ( DISTINCT 70 ) col2
----
-140

query I rowsort
SELECT DISTINCT - 89 * + + 87
----
-7743

query II rowsort
SELECT ALL 48 - - 88 AS col0, ( - 35 ) * + 86
----
136
-3010

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1385
SELECT ALL 66 * COUNT( * ), + 80 - 23 - + 47 * - COALESCE ( + 24, + - 20 DIV - 46 * - ( - 45 ) * + 96 * - 39 - - - ( + 82 ) ) + - + 24 * + - 51 * + 75 col1
----
66
92985

skipif mysql # not compatible
query II rowsort label-1385
SELECT ALL 66 * COUNT ( * ), + 80 - 23 - + 47 * - COALESCE ( + 24, + - 20 / - 46 * - ( - 45 ) * + 96 * - 39 - - - ( + 82 ) ) + - + 24 * + - 51 * + 75 col1
----
66
92985

query II rowsort
SELECT 92 + - + 91 AS col1, + 63
----
1
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1387
SELECT DISTINCT 1 * - 94 / + CASE - 41 WHEN + 96 / - 28 * - - MIN( + 58 ) / + 56 THEN + - ( - 24 ) - + 53 WHEN - 49 * - NULLIF ( + + AVG ( 66 ), - 50 * + + 84 + - CAST( NULL AS SIGNED ) + + + 97 * + COALESCE ( 96, + 52 + - 76 + COUNT( * ) * 79, + + 24 ) + - + 86 ) + 94 * - 41 THEN 8 * + 75 + - ( - COALESCE ( + 69, - 58 ) ) + + COALESCE ( + ( + - 87 ), 34 * 34 / + + 49, 12 * + 54 ) + - 36 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT 1 * - 94 / + CASE - 41 WHEN + 96 / - 28 * - - MIN ( + 58 ) / + 56 THEN + - ( - 24 ) - + 53 WHEN - 49 * - NULLIF ( + + AVG ( 66 ), - 50 * + + 84 + - CAST ( NULL AS INTEGER ) + + + 97 * + COALESCE ( 96, + 52 + - 76 + COUNT ( * ) * 79, + + 24 ) + - + 86 ) + 94 * - 41 THEN 8 * + 75 + - ( - COALESCE ( + 69, - 58 ) ) + + COALESCE ( + ( + - 87 ), 34 * 34 / + + 49, 12 * + 54 ) + - 36 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 11 * 41 AS col2
----
451

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT 93 * + 80 * - - ( - + 14 ) + + - 70 + + 38 * - NULLIF ( 42, + MAX( 97 ) )
----
-105826

skipif mysql # not compatible
query I rowsort label-1389
SELECT 93 * + 80 * - - ( - + 14 ) + + - 70 + + 38 * - NULLIF ( 42, + MAX ( 97 ) )
----
-105826

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT - SUM( DISTINCT - ( - 62 ) ) + 1 / - CASE 37 WHEN - - 23 - - - 73 THEN + MAX( ALL + 7 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1390
SELECT - SUM ( DISTINCT - ( - 62 ) ) + 1 / - CASE 37 WHEN - - 23 - - - 73 THEN + MAX ( ALL + 7 ) END AS col0
----
NULL

query I rowsort
SELECT 40 * 52
----
2080

onlyif mysql # DIV for integer division: 
query II rowsort label-1392
SELECT DISTINCT + 44 DIV 14, 94 + + 24 * - 13 * + - 45 * - 87 AS col0
----
3
-1221386

skipif mysql # not compatible
query II rowsort label-1392
SELECT DISTINCT + 44 / 14, 94 + + 24 * - 13 * + - 45 * - 87 AS col0
----
3
-1221386

query I rowsort
SELECT DISTINCT + - 92 * + - NULLIF ( - 81, - 13 )
----
-7452

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT CASE 64 WHEN - 42 THEN NULL WHEN - - 36 * + - 10 * + COUNT( + ( + 86 ) ) THEN - 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1394
SELECT CASE 64 WHEN - 42 THEN NULL WHEN - - 36 * + - 10 * + COUNT ( + ( + 86 ) ) THEN - 15 END
----
NULL

query I rowsort
SELECT ALL - 47 + + 4 * + 41 * - 54
----
-8903

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT ALL + 62 + - - MAX( ALL 67 ) * 40 col0
----
2742

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL + 62 + - - MAX ( ALL 67 ) * 40 col0
----
2742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1397
SELECT - - MAX( ALL + 16 ) DIV - 25 - + COUNT( * ) DIV 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1397
SELECT - - MAX ( ALL + 16 ) / - 25 - + COUNT ( * ) / 4 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-1398
SELECT + COUNT ( ALL 19 ) * - + 43 AS col0
----
-43

query I rowsort
SELECT 42 - + + ( - - 27 ) AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1400
SELECT DISTINCT + 79 + - CAST( NULL AS SIGNED ) * - ( 7 ) + - - ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT + 79 + - CAST ( NULL AS INTEGER ) * - ( 7 ) + - - ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL 96 + - + 18 + + - 84 AS col0
----
-6

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

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

query I rowsort
SELECT ALL 20 * + 5
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1404
SELECT ALL + 11 + + 93 + - - 29 AS col2, - COUNT( * ) DIV + 78 - - - 40 DIV COUNT( * )
----
133
-40

skipif mysql # not compatible
query II rowsort label-1404
SELECT ALL + 11 + + 93 + - - 29 AS col2, - COUNT ( * ) / + 78 - - - 40 / COUNT ( * )
----
133
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1405
SELECT ( - - ( + MAX( ALL + 92 ) ) ) * + CAST( + + 65 AS SIGNED )
----
5980

skipif mysql # not compatible
query I rowsort label-1405
SELECT ( - - ( + MAX ( ALL + 92 ) ) ) * + CAST ( + + 65 AS INTEGER )
----
5980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1406
SELECT ALL 2 * - + COUNT( * ) DIV 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL 2 * - + COUNT ( * ) / 26 AS col2
----
0

query I rowsort
SELECT DISTINCT 61 * 88 AS col0
----
5368

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT 70 + + 81 * - COUNT( * ) + 84
----
73

skipif mysql # not compatible
query I rowsort label-1408
SELECT 70 + + 81 * - COUNT ( * ) + 84
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT COUNT( * ) - + COUNT( * ) * 18 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-1409
SELECT COUNT ( * ) - + COUNT ( * ) * 18 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT DISTINCT + 93 * - + COUNT( * ) * - 97
----
9021

skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT + 93 * - + COUNT ( * ) * - 97
----
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT ALL CASE - 92 WHEN - COUNT( * ) + - 85 THEN 18 ELSE + 11 END - 54
----
-43

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL CASE - 92 WHEN - COUNT ( * ) + - 85 THEN 18 ELSE + 11 END - 54
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1412
SELECT MAX( 78 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT MAX ( 78 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 48 AS col2, - 15 AS col0
----
48
-15

query I rowsort
SELECT 5 + + - 98 AS col0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1415
SELECT ALL 18 - + COALESCE ( + 55, + - 64 DIV SUM( DISTINCT + 20 ), 19 - - - 75 - - - 32 ) * + - 51
----
2823

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL 18 - + COALESCE ( + 55, + - 64 / SUM ( DISTINCT + 20 ), 19 - - - 75 - - - 32 ) * + - 51
----
2823

query II rowsort
SELECT - 3 AS col2, + 97 AS col0
----
-3
97

query II rowsort
SELECT 82 + + ( + 36 ) AS col2, 69 + - + 87
----
118
-18

query II rowsort
SELECT ALL 59 AS col0, 35
----
59
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1419
SELECT CAST( NULL AS SIGNED ) AS col1, 66 AS col1
----
NULL
66

skipif mysql # not compatible
query II rowsort label-1419
SELECT CAST ( NULL AS INTEGER ) AS col1, 66 AS col1
----
NULL
66

query I rowsort
SELECT - 72 + - 45
----
-117

query I rowsort
SELECT ALL + + 15 * NULLIF ( + - ( - 87 ), + 35 ) * + + 44 + 10
----
57430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1422
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 67 * + - 67 * + + 98 * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 67 * + - 67 * + + 98 * 19
----
NULL

query I rowsort
SELECT DISTINCT + 10 * + - 36 * + + 69
----
-24840

onlyif mysql # DIV for integer division: 
query I rowsort label-1424
SELECT DISTINCT 99 + - 52 DIV - - 75 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT 99 + - 52 / - - 75 AS col2
----
99

query I rowsort
SELECT + 48 + + 93 + + 47
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT ALL ( + + SUM( - 42 ) ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL ( + + SUM ( - 42 ) ) AS col0
----
-42

query I rowsort
SELECT - NULLIF ( + 72, + 52 ) AS col1
----
-72

query I rowsort
SELECT + 14 + 64 AS col1
----
78

query I rowsort
SELECT - 84 - - - CASE - - 50 WHEN - + ( - 22 ) - 31 * + 21 THEN NULL WHEN - 64 + - 81 THEN NULL ELSE - - 58 + + + 61 END
----
-203

query I rowsort
SELECT + NULLIF ( - 62, + - 75 ) + - 61
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1431
SELECT - COUNT( * ) * - 38 - 86 DIV 30
----
36

skipif mysql # not compatible
query I rowsort label-1431
SELECT - COUNT ( * ) * - 38 - 86 / 30
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT ALL + 6 * - CASE + AVG ( DISTINCT - 0 ) WHEN + 24 THEN + 87 ELSE NULL END / + 92 + + COUNT( * ) * + MAX( ALL + + ( - 40 ) ) * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL + 6 * - CASE + AVG ( DISTINCT - 0 ) WHEN + 24 THEN + 87 ELSE NULL END / + 92 + + COUNT ( * ) * + MAX ( ALL + + ( - 40 ) ) * - 16
----
NULL

query I rowsort
SELECT - + 44 + 91
----
47

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

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

query I rowsort
SELECT ALL + 58 * 59 AS col2
----
3422

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1436
SELECT - CAST( + + 71 AS SIGNED ) DIV 78 + - ( 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-1436
SELECT - CAST ( + + 71 AS INTEGER ) / 78 + - ( 77 ) AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1437
SELECT CASE + 2 WHEN NULLIF ( + + 49, - 53 ) * + - CASE 86 WHEN SUM( + 17 ) THEN NULL ELSE + 81 END THEN NULL WHEN - CASE - + SUM( 11 ) WHEN 69 * - SUM( + 38 ) * ( + 96 ) + - COUNT( * ) * NULLIF ( 61, 16 ) THEN - ( + COUNT( * ) ) ELSE NULL END THEN NULL ELSE 11 * + CAST( NULL AS SIGNED ) - 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1437
SELECT CASE + 2 WHEN NULLIF ( + + 49, - 53 ) * + - CASE 86 WHEN SUM ( + 17 ) THEN NULL ELSE + 81 END THEN NULL WHEN - CASE - + SUM ( 11 ) WHEN 69 * - SUM ( + 38 ) * ( + 96 ) + - COUNT ( * ) * NULLIF ( 61, 16 ) THEN - ( + COUNT ( * ) ) ELSE NULL END THEN NULL ELSE 11 * + CAST ( NULL AS INTEGER ) - 68 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - 45 * + + COUNT( * ) + - 62
----
-107

skipif mysql # not compatible
query I rowsort label-1439
SELECT - 45 * + + COUNT ( * ) + - 62
----
-107

query I rowsort
SELECT - ( - 55 ) * 88
----
4840

query I rowsort
SELECT ALL + 7 * + + COALESCE ( - 13, 79 ) AS col2
----
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT ALL ( MAX( + 13 ) ) * - COALESCE ( - 21, - 48 ) * 51 AS col2
----
13923

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL ( MAX ( + 13 ) ) * - COALESCE ( - 21, - 48 ) * 51 AS col2
----
13923

query I rowsort
SELECT - 54 + 99 AS col1
----
45

query I rowsort
SELECT - 1 - + + 48
----
-49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT ALL 12 * - 55 * + COUNT( * )
----
-660

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL 12 * - 55 * + COUNT ( * )
----
-660

query I rowsort
SELECT - 18 * 30 * - 90 AS col1
----
48600

query I rowsort
SELECT + 0 + + 9 AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1450
SELECT DISTINCT COALESCE ( + 66, - - 20 + + 68 - + NULLIF ( 72, 44 ) ) * - - CAST( 93 AS SIGNED ) + - + COALESCE ( - - 12, 35 ) AS col1
----
6126

skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT COALESCE ( + 66, - - 20 + + 68 - + NULLIF ( 72, 44 ) ) * - - CAST ( 93 AS INTEGER ) + - + COALESCE ( - - 12, 35 ) AS col1
----
6126

query I rowsort
SELECT ALL - 61 + - 12
----
-73

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

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

query I rowsort
SELECT ALL + + ( 21 ) * - 92 * - 60 + - ( - 73 ) AS col0
----
115993

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1454
SELECT ALL 49 + - 24 DIV + 38 - - MIN( DISTINCT + 79 ) * 13 + + 20 AS col1
----
1096

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL 49 + - 24 / + 38 - - MIN ( DISTINCT + 79 ) * 13 + + 20 AS col1
----
1096

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT DISTINCT 88 + + ( - 15 ) * + MAX( ALL - 84 ) AS col2
----
1348

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT 88 + + ( - 15 ) * + MAX ( ALL - 84 ) AS col2
----
1348

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT + 32 + - 19 + - COALESCE ( ( COUNT( * ) ), - 5 * + + 64 + + 29 + - 21 * - - 78 ) + 10 * + ( + 88 ) AS col2
----
892

skipif mysql # not compatible
query I rowsort label-1456
SELECT + 32 + - 19 + - COALESCE ( ( COUNT ( * ) ), - 5 * + + 64 + + 29 + - 21 * - - 78 ) + 10 * + ( + 88 ) AS col2
----
892

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1457
SELECT ALL COUNT( * ) + + 66 + 62 DIV - 45 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL COUNT ( * ) + + 66 + 62 / - 45 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT COALESCE ( ( 29 ), + 17 - - 10 + + MIN( 74 ) + + 97 + + ( + 62 ) )
----
29

skipif mysql # not compatible
query I rowsort label-1458
SELECT COALESCE ( ( 29 ), + 17 - - 10 + + MIN ( 74 ) + + 97 + + ( + 62 ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT DISTINCT COALESCE ( COUNT( - + 80 ), - 44 ) + - - NULLIF ( + 79, - 96 )
----
80

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT COALESCE ( COUNT ( - + 80 ), - 44 ) + - - NULLIF ( + 79, - 96 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1460
SELECT DISTINCT COUNT( * ) + - 31 AS col1, ( + CASE 48 WHEN - 34 / + 68 * - + 1 - - + CAST( + 71 AS DECIMAL ) THEN NULL ELSE + - COUNT( 52 ) * + COUNT( * ) END ) * 69 AS col0
----
-30
-69

skipif mysql # not compatible
query II rowsort label-1460
SELECT DISTINCT COUNT ( * ) + - 31 AS col1, ( + CASE 48 WHEN - 34 / + 68 * - + 1 - - + CAST ( + 71 AS REAL ) THEN NULL ELSE + - COUNT ( 52 ) * + COUNT ( * ) END ) * 69 AS col0
----
-30
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1461
SELECT - - ( - 79 ) AS col0, - CAST( NULL AS SIGNED ) * + 3 + + 82 AS col2
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-1461
SELECT - - ( - 79 ) AS col0, - CAST ( NULL AS INTEGER ) * + 3 + + 82 AS col2
----
-79
NULL

query II rowsort
SELECT ALL - - 20 * 55, - 20 + + 37 AS col0
----
1100
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1463
SELECT + COUNT( * ) DIV - + 56 + + - 27 * - MAX( 82 )
----
2214

skipif mysql # not compatible
query I rowsort label-1463
SELECT + COUNT ( * ) / - + 56 + + - 27 * - MAX ( 82 )
----
2214

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1465
SELECT ALL 16 DIV + 91 * + 95 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL 16 / + 91 * + 95 - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1466
SELECT DISTINCT - 60 * + + 53 + + + 40 DIV + COUNT( * ) - + ( + + 16 )
----
-3156

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT - 60 * + + 53 + + + 40 / + COUNT ( * ) - + ( + + 16 )
----
-3156

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT + ( + 61 ) * + MIN( ALL - 7 ) AS col1
----
-427

skipif mysql # not compatible
query I rowsort label-1467
SELECT + ( + 61 ) * + MIN ( ALL - 7 ) AS col1
----
-427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1468
SELECT - 20 DIV - MIN( 14 ) + - - 88 * + COUNT( * ) * - - 82 - 90 - + COUNT( * )
----
7126

skipif mysql # not compatible
query I rowsort label-1468
SELECT - 20 / - MIN ( 14 ) + - - 88 * + COUNT ( * ) * - - 82 - 90 - + COUNT ( * )
----
7126

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT - 20 * 98 * COUNT( * )
----
-1960

skipif mysql # not compatible
query I rowsort label-1469
SELECT - 20 * 98 * COUNT ( * )
----
-1960

query II rowsort
SELECT ALL + 22, - 82 col0
----
22
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT + COUNT( ALL - 89 ) + - - 5 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1471
SELECT + COUNT ( ALL - 89 ) + - - 5 AS col0
----
6

query I rowsort
SELECT - ( + + 56 ) * 79
----
-4424

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1473
SELECT + 85 DIV - ( + + 73 ) AS col0, - COUNT( * ) AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-1473
SELECT + 85 / - ( + + 73 ) AS col0, - COUNT ( * ) AS col1
----
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1474
SELECT ALL + ( - CAST( - COUNT( * ) AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT ALL - 21 * - 69 AS col0
----
1449

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT - COUNT( * ) - + 33 + 8 + 20 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-1476
SELECT - COUNT ( * ) - + 33 + 8 + 20 AS col1
----
-6

query I rowsort
SELECT ALL + 57 * - 54
----
-3078

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

query I rowsort
SELECT - 31 * 60 AS col2
----
-1860

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT 85 * - 30 + COUNT( * ) AS col1
----
-2549

skipif mysql # not compatible
query I rowsort label-1481
SELECT 85 * - 30 + COUNT ( * ) AS col1
----
-2549

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT ALL + 90 * - 5 * + 83 * + ( - 62 ) + + 95 * - COUNT( * )
----
2315605

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL + 90 * - 5 * + 83 * + ( - 62 ) + + 95 * - COUNT ( * )
----
2315605

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT 85 * - 47 * - - COUNT( * ) - - 48 AS col1
----
-3947

skipif mysql # not compatible
query I rowsort label-1483
SELECT 85 * - 47 * - - COUNT ( * ) - - 48 AS col1
----
-3947

query I rowsort
SELECT - 1 * - 2
----
2

query II rowsort
SELECT DISTINCT - 57 * - + 83 + + + 96 AS col2, - 1 AS col1
----
4827
-1

query I rowsort
SELECT ALL 9 * + 19 * - + 63 * + 92 + - 72
----
-991188

query I rowsort
SELECT - 3 * - 98
----
294

query I rowsort
SELECT DISTINCT + + 0 * 24 + - + 40 + - - 2
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1489
SELECT DISTINCT 51 + - - 0 DIV - 74 DIV - - 66 + 28 + - + 36 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT 51 + - - 0 / - 74 / - - 66 + 28 + - + 36 AS col1
----
43

query I rowsort
SELECT ALL - 66 + - 84 * + 81 AS col1
----
-6870

query I rowsort
SELECT DISTINCT + ( - - 79 ) col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1492
SELECT + 69 + MIN( ALL + 79 ) - 90 / - - CASE 34 WHEN + - 89 THEN - + 88 + 98 * + + COUNT( * ) + - - SUM( DISTINCT + 14 ) * - + 31 WHEN CAST( + 91 AS SIGNED ) * 71 THEN + - 41 * 92 + CASE - 91 WHEN + CAST( 40 AS SIGNED ) + + - COUNT( * ) THEN NULL WHEN + COUNT( * ) + 32 THEN + 27 / + 49 END - + 83 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1492
SELECT + 69 + MIN ( ALL + 79 ) - 90 / - - CASE 34 WHEN + - 89 THEN - + 88 + 98 * + + COUNT ( * ) + - - SUM ( DISTINCT + 14 ) * - + 31 WHEN CAST ( + 91 AS INTEGER ) * 71 THEN + - 41 * 92 + CASE - 91 WHEN + CAST ( 40 AS INTEGER ) + + - COUNT ( * ) THEN NULL WHEN + COUNT ( * ) + 32 THEN + 27 / + 49 END - + 83 * - COUNT ( * ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT + - 43 + 14 AS col0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1495
SELECT 38 DIV + - COALESCE ( + 64, 86 ) + + 95
----
95

skipif mysql # not compatible
query I rowsort label-1495
SELECT 38 / + - COALESCE ( + 64, 86 ) + + 95
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1496
SELECT ALL 35 + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1, - 14 * + 26
----
NULL
-364

skipif mysql # not compatible
query II rowsort label-1496
SELECT ALL 35 + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1, - 14 * + 26
----
NULL
-364

query II rowsort
SELECT ALL + 84 AS col1, + 2 AS col1
----
84
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT 86 * 30 + 43 + + + NULLIF ( + CASE WHEN NOT + 51 IS NOT NULL THEN + 6 * + + COUNT( * ) + + 42 - 77 ELSE NULL END, + 87 * 73 + + 13 ) / 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1498
SELECT 86 * 30 + 43 + + + NULLIF ( + CASE WHEN NOT + 51 IS NOT NULL THEN + 6 * + + COUNT ( * ) + + 42 - 77 ELSE NULL END, + 87 * 73 + + 13 ) / 53 AS col2
----
NULL

query II rowsort
SELECT ALL 16 AS col2, 71 * + 25 * - - 74
----
16
131350

query II rowsort
SELECT 17 + - - ( - 18 ) AS col1, 52 * 85
----
-1
4420

query I rowsort
SELECT ALL - 22 - - 74 * - 55
----
-4092

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT COUNT( DISTINCT 22 ) + + - 9
----
-8

skipif mysql # not compatible
query I rowsort label-1502
SELECT COUNT ( DISTINCT 22 ) + + - 9
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-1503
SELECT 86 - + 80 DIV - 49 + 26 + - - 98, 10 * - - 93 AS col0
----
211
930

skipif mysql # not compatible
query II rowsort label-1503
SELECT 86 - + 80 / - 49 + 26 + - - 98, 10 * - - 93 AS col0
----
211
930

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT SUM( DISTINCT - + 30 ) + + 8 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1504
SELECT SUM ( DISTINCT - + 30 ) + + 8 AS col1
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-1505
SELECT ALL - 41 AS col2, 14 DIV 20 * - - 35 col2
----
-41
0

skipif mysql # not compatible
query II rowsort label-1505
SELECT ALL - 41 AS col2, 14 / 20 * - - 35 col2
----
-41
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1506
SELECT DISTINCT 38 * + + CAST( + - 35 AS SIGNED ) * 78 AS col0
----
-103740

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT 38 * + + CAST ( + - 35 AS INTEGER ) * 78 AS col0
----
-103740

query I rowsort
SELECT 80 * 82
----
6560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1508
SELECT + 37 * - ( - 93 ) + - - MIN( + - 16 ) DIV + - ( - - 21 ) AS col2
----
3441

skipif mysql # not compatible
query I rowsort label-1508
SELECT + 37 * - ( - 93 ) + - - MIN ( + - 16 ) / + - ( - - 21 ) AS col2
----
3441

query I rowsort
SELECT DISTINCT 2 * - 33
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT ALL 72 + 89 - + ( - SUM( - 54 ) ) * 1 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL 72 + 89 - + ( - SUM ( - 54 ) ) * 1 AS col0
----
107

query I rowsort
SELECT DISTINCT - ( 1 ) + - 77 col0
----
-78

query I rowsort
SELECT 27 + - 64 - + 95
----
-132

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1514
SELECT + CASE - 0 WHEN + 27 THEN + NULLIF ( ( + 54 ), - - 99 + + COUNT( - 66 ) ) * + - 25 DIV 17 - - + 85 WHEN + - 28 THEN NULL ELSE - 9 + - 20 * - + 32 END - + + 54 * + 71
----
-3203

skipif mysql # not compatible
query I rowsort label-1514
SELECT + CASE - 0 WHEN + 27 THEN + NULLIF ( ( + 54 ), - - 99 + + COUNT ( - 66 ) ) * + - 25 / 17 - - + 85 WHEN + - 28 THEN NULL ELSE - 9 + - 20 * - + 32 END - + + 54 * + 71
----
-3203

query II rowsort
SELECT DISTINCT 27 col2, 7 AS col0
----
27
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1516
SELECT DISTINCT - ( + + COUNT( * ) ) * - COUNT( * ) + - + 35 AS col0, + 7
----
-34
7

skipif mysql # not compatible
query II rowsort label-1516
SELECT DISTINCT - ( + + COUNT ( * ) ) * - COUNT ( * ) + - + 35 AS col0, + 7
----
-34
7

query II rowsort
SELECT ALL 72, - ( + 50 ) * + - 12 AS col2
----
72
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1518
SELECT + CAST( NULL AS SIGNED ) + - 70 / 83 + - 99 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1518
SELECT + CAST ( NULL AS INTEGER ) + - 70 / 83 + - 99 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT COUNT( * ) - - 60
----
61

skipif mysql # not compatible
query I rowsort label-1519
SELECT COUNT ( * ) - - 60
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1520
SELECT COALESCE ( + 66, - ( - 51 ), + ( - 23 ) + - 37 * + COUNT( * ) ) DIV - COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1520
SELECT COALESCE ( + 66, - ( - 51 ), + ( - 23 ) + - 37 * + COUNT ( * ) ) / - COUNT ( * ) AS col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT DISTINCT - - 11 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT - - 11 / 63
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1522
SELECT - 6 col1, - 47 + + - 7 DIV - + 23 + - 50
----
-6
-97

skipif mysql # not compatible
query II rowsort label-1522
SELECT - 6 col1, - 47 + + - 7 / - + 23 + - 50
----
-6
-97

query I rowsort
SELECT 9 + + - 20 + ( + + 65 ) - - 43 * + + 25 + - 83 AS col2
----
1046

query I rowsort
SELECT ALL + + 36 - + - ( + 51 ) - 67 AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1525
SELECT 80 DIV COALESCE ( - + 9, + - COUNT( * ) * + 17 + + 15 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1525
SELECT 80 / COALESCE ( - + 9, + - COUNT ( * ) * + 17 + + 15 ) AS col1
----
-8

query I rowsort
SELECT ALL + 48 * - - 5 AS col1
----
240

onlyif mysql # aggregate syntax: 
query II rowsort label-1527
SELECT SUM( + - 39 ) AS col0, 14
----
-39
14

skipif mysql # not compatible
query II rowsort label-1527
SELECT SUM ( + - 39 ) AS col0, 14
----
-39
14

query I rowsort
SELECT 15 * + 51 * - + 42 * - 60 AS col2
----
1927800

onlyif mysql # aggregate syntax: 
query II rowsort label-1529
SELECT COUNT( + 50 ), - 62 * - 76 AS col0
----
1
4712

skipif mysql # not compatible
query II rowsort label-1529
SELECT COUNT ( + 50 ), - 62 * - 76 AS col0
----
1
4712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1530
SELECT 95 * - 81 + - 63 - - + 32 + 98 / + CAST( NULL AS SIGNED ) / + - 40 * + 1 * 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT 95 * - 81 + - 63 - - + 32 + 98 / + CAST ( NULL AS INTEGER ) / + - 40 * + 1 * 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT ALL COUNT( * ) * + COUNT( + + 14 ) * - COUNT( * ) + 64 + - + 67 * + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL COUNT ( * ) * + COUNT ( + + 14 ) * - COUNT ( * ) + 64 + - + 67 * + COUNT ( * )
----
-4

query I rowsort
SELECT + 24 - - 30 * - + 9 col1
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT MIN( + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-1533
SELECT MIN ( + 3 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1534
SELECT + COUNT( * ) * COUNT( * ), 42 / + + 9 / CASE ( - + 97 ) WHEN + 42 THEN 55 + + COUNT( * ) END * COALESCE ( 75, 3 * 44 - - ( - 51 ), - 6 ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1534
SELECT + COUNT ( * ) * COUNT ( * ), 42 / + + 9 / CASE ( - + 97 ) WHEN + 42 THEN 55 + + COUNT ( * ) END * COALESCE ( 75, 3 * 44 - - ( - 51 ), - 6 ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1535
SELECT - 9 * CAST( - COUNT( * ) AS SIGNED ) - + - 44
----
53

skipif mysql # not compatible
query I rowsort label-1535
SELECT - 9 * CAST ( - COUNT ( * ) AS INTEGER ) - + - 44
----
53

query II rowsort
SELECT ALL - + 26 - + 42 AS col2, + ( + 53 )
----
-68
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT - + 28 + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-1537
SELECT - + 28 + COUNT ( * ) AS col2
----
-27

query II rowsort
SELECT + - 42 * 93 AS col1, 40
----
-3906
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT + 67 + + - SUM( DISTINCT - - 64 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1539
SELECT + 67 + + - SUM ( DISTINCT - - 64 ) AS col2
----
3

query I rowsort
SELECT + 81 + + - 92 AS col0
----
-11

query I rowsort
SELECT ALL + + 34 * - 31 * + 55
----
-57970

query I rowsort
SELECT ALL - 90 + + NULLIF ( 45, 52 / + - 9 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT - - 84 + - - MAX( + - 16 )
----
68

skipif mysql # not compatible
query I rowsort label-1543
SELECT - - 84 + - - MAX ( + - 16 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT DISTINCT - COALESCE ( 59, NULLIF ( 58, - 47 * - MIN( - - 57 ) + + 93 ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT - COALESCE ( 59, NULLIF ( 58, - 47 * - MIN ( - - 57 ) + + 93 ) ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT - ( COUNT( * ) ) + - - COALESCE ( 18, + 30 )
----
17

skipif mysql # not compatible
query I rowsort label-1545
SELECT - ( COUNT ( * ) ) + - - COALESCE ( 18, + 30 )
----
17

query I rowsort
SELECT ALL - 89 + + 67 AS col0
----
-22

query I rowsort
SELECT + 26 + + 13
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1548
SELECT ALL + NULLIF ( 76, + 48 ) + - COALESCE ( + 82, + - 65 + + CAST( NULL AS SIGNED ) ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL + NULLIF ( 76, + 48 ) + - COALESCE ( + 82, + - 65 + + CAST ( NULL AS INTEGER ) ) col0
----
-6

query I rowsort
SELECT - 8 - 64 + - 99 * + 69
----
-6903

onlyif mysql # DIV for integer division: 
query I rowsort label-1550
SELECT ALL + 17 DIV - - ( + 70 )
----
0

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL + 17 / - - ( + 70 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT - MAX( - 53 ) + + 33 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1551
SELECT - MAX ( - 53 ) + + 33 AS col2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1552
SELECT ALL 54 DIV 13 * 45 + + 31
----
211

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL 54 / 13 * 45 + + 31
----
211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1553
SELECT DISTINCT 22 DIV + COUNT( * ) + - CAST( + 22 AS SIGNED ) + + ( - + 86 ) DIV + MIN( DISTINCT + 74 ) AS col1, - ( 41 )
----
-1
-41

skipif mysql # not compatible
query II rowsort label-1553
SELECT DISTINCT 22 / + COUNT ( * ) + - CAST ( + 22 AS INTEGER ) + + ( - + 86 ) / + MIN ( DISTINCT + 74 ) AS col1, - ( 41 )
----
-1
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT ALL - 92 DIV + 48 + 65 + + 33 * MAX( DISTINCT 56 )
----
1912

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL - 92 / + 48 + 65 + + 33 * MAX ( DISTINCT 56 )
----
1912

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

skipif mysql # not compatible
query I rowsort label-1555
SELECT 90 * - - COUNT ( * ) + - ( 98 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-1556
SELECT ALL + 0 * - CASE 1 WHEN + CASE - - 58 WHEN - - 34 * 77 * + 8 + + + COUNT( * ) THEN 40 * - 79 / 30 * - 16 ELSE NULL END * - 3 + 25 THEN NULL WHEN + 58 THEN - 54 END * COUNT( * ) * - - 40 * + - ( - - 28 ), 72 * - 76 * 68 + - + 52 * 7 AS col0
----
NULL
-372460

skipif mysql # not compatible
query II rowsort label-1556
SELECT ALL + 0 * - CASE 1 WHEN + CASE - - 58 WHEN - - 34 * 77 * + 8 + + + COUNT ( * ) THEN 40 * - 79 / 30 * - 16 ELSE NULL END * - 3 + 25 THEN NULL WHEN + 58 THEN - 54 END * COUNT ( * ) * - - 40 * + - ( - - 28 ), 72 * - 76 * 68 + - + 52 * 7 AS col0
----
NULL
-372460

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT - 91 * - ( 78 ) * - COALESCE ( + + 87, + 85 ) * - COALESCE ( + + 40, + 45 ) + - 56 + 6 * - + ( - SUM( DISTINCT 40 ) ) AS col1
----
24701224

skipif mysql # not compatible
query I rowsort label-1557
SELECT - 91 * - ( 78 ) * - COALESCE ( + + 87, + 85 ) * - COALESCE ( + + 40, + 45 ) + - 56 + 6 * - + ( - SUM ( DISTINCT 40 ) ) AS col1
----
24701224

onlyif mysql # DIV for integer division: 
query I rowsort label-1558
SELECT ALL 36 DIV - COALESCE ( 21, + 89 + 23 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL 36 / - COALESCE ( 21, + 89 + 23 ) AS col1
----
-1

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

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

query I rowsort
SELECT ALL - 15 * 30 - - 19
----
-431

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT + CASE 21 WHEN - ( - + COUNT( * ) ) * + SUM( DISTINCT 84 ) * - 39 - + + 4 * 17 + - - 58 THEN NULL WHEN - COUNT( * ) * 86 THEN + 54 + 23 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1561
SELECT + CASE 21 WHEN - ( - + COUNT ( * ) ) * + SUM ( DISTINCT 84 ) * - 39 - + + 4 * 17 + - - 58 THEN NULL WHEN - COUNT ( * ) * 86 THEN + 54 + 23 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL + 85 AS col1, + 4
----
85
4

query I rowsort
SELECT - 6 + + 85
----
79

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1566
SELECT ALL + + 46, CAST( + + CASE - 98 WHEN + 70 THEN 78 / COUNT( * ) + SUM( DISTINCT 96 ) / + 17 ELSE + 36 * + 48 * - 81 END AS SIGNED ) AS col0
----
46
-139968

skipif mysql # not compatible
query II rowsort label-1566
SELECT ALL + + 46, CAST ( + + CASE - 98 WHEN + 70 THEN 78 / COUNT ( * ) + SUM ( DISTINCT 96 ) / + 17 ELSE + 36 * + 48 * - 81 END AS INTEGER ) AS col0
----
46
-139968

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

query I rowsort
SELECT DISTINCT 24 * - 14
----
-336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1569
SELECT + MIN( DISTINCT + CAST( + 4 AS SIGNED ) ) + + + 75 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1569
SELECT + MIN ( DISTINCT + CAST ( + 4 AS INTEGER ) ) + + + 75 AS col2
----
79

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

skipif mysql # not compatible
query I rowsort label-1570
SELECT - ( - - COUNT ( * ) ) / + 47 + + 71
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT + 12 * + 15 * 69 * - - COUNT( * ) * ( + 57 ) * 44 AS col2
----
31149360

skipif mysql # not compatible
query I rowsort label-1571
SELECT + 12 * + 15 * 69 * - - COUNT ( * ) * ( + 57 ) * 44 AS col2
----
31149360

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT + 56 - - - COUNT( ALL + 44 ) / + CASE + 79 WHEN - - 7 - - 67 THEN NULL WHEN 91 THEN - - 21 + - 3 ELSE NULL END + 64 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1572
SELECT + 56 - - - COUNT ( ALL + 44 ) / + CASE + 79 WHEN - - 7 - - 67 THEN NULL WHEN 91 THEN - - 21 + - 3 ELSE NULL END + 64 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1573
SELECT + + SUM( ALL + 6 ) + 5 DIV 74
----
6

skipif mysql # not compatible
query I rowsort label-1573
SELECT + + SUM ( ALL + 6 ) + 5 / 74
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1574
SELECT + - CAST( NULL AS SIGNED ) / 65 * + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT + - CAST ( NULL AS INTEGER ) / 65 * + 39 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1575
SELECT ALL 31 + + COALESCE ( - 69, 10 * - + 52 * + 0 + + 30 + 85 + - 56 ), - COUNT( * ) AS col1
----
-38
-1

skipif mysql # not compatible
query II rowsort label-1575
SELECT ALL 31 + + COALESCE ( - 69, 10 * - + 52 * + 0 + + 30 + 85 + - 56 ), - COUNT ( * ) AS col1
----
-38
-1

query I rowsort
SELECT - COALESCE ( + - 56, + 60 )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1577
SELECT ALL - 50 DIV + 19
----
-2

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL - 50 / + 19
----
-2

query I rowsort
SELECT DISTINCT - - 69 * 35
----
2415

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

query I rowsort
SELECT + 14 * - - 46
----
644

onlyif mysql # aggregate syntax: 
query II rowsort label-1581
SELECT ALL 20 + + NULLIF ( + + 52, - COUNT( * ) ) AS col2, COUNT( * ) AS col0
----
72
1

skipif mysql # not compatible
query II rowsort label-1581
SELECT ALL 20 + + NULLIF ( + + 52, - COUNT ( * ) ) AS col2, COUNT ( * ) AS col0
----
72
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1583
SELECT ALL COALESCE ( - COUNT( * ), COALESCE ( 32, - - CAST( - COALESCE ( + - 12, - 49 * 95 * - 63 ) AS SIGNED ) * - - COUNT( * ) * 54 ) * + CAST( - COUNT( * ) AS SIGNED ), + 50 ) AS col2, 63
----
-1
63

skipif mysql # not compatible
query II rowsort label-1583
SELECT ALL COALESCE ( - COUNT ( * ), COALESCE ( 32, - - CAST ( - COALESCE ( + - 12, - 49 * 95 * - 63 ) AS INTEGER ) * - - COUNT ( * ) * 54 ) * + CAST ( - COUNT ( * ) AS INTEGER ), + 50 ) AS col2, 63
----
-1
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1584
SELECT DISTINCT + 13 + - 39 + 74 + CAST( + + 61 AS SIGNED ) + - - 14
----
123

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT + 13 + - 39 + 74 + CAST ( + + 61 AS INTEGER ) + - - 14
----
123

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

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

query I rowsort
SELECT ALL + 95 - 33 AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1587
SELECT - 49 DIV - ( - 72 ) - - 19 * + - COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1587
SELECT - 49 / - ( - 72 ) - - 19 * + - COUNT ( * ) AS col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-1588
SELECT 20 + - NULLIF ( + ( + + 11 ), - 72 ) DIV + + 25
----
20

skipif mysql # not compatible
query I rowsort label-1588
SELECT 20 + - NULLIF ( + ( + + 11 ), - 72 ) / + + 25
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1589
SELECT ALL - CASE 24 WHEN + + 36 THEN COUNT( ALL + + 78 ) WHEN - - 87 THEN NULL END * - 49 * 8 * + + 21 + - 5 col0, + 97 col0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-1589
SELECT ALL - CASE 24 WHEN + + 36 THEN COUNT ( ALL + + 78 ) WHEN - - 87 THEN NULL END * - 49 * 8 * + + 21 + - 5 col0, + 97 col0
----
NULL
97

query I rowsort
SELECT 36 * - 84
----
-3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1591
SELECT - MAX( ALL + CAST( NULL AS SIGNED ) ) * - + 38 + ( - 60 ) + - 70 - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1591
SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) * - + 38 + ( - 60 ) + - 70 - 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1592
SELECT ALL + + COUNT( * ) - + - NULLIF ( + 34, - 52 * + NULLIF ( + + 88, 39 ) * - 50 ) + 75 * - 41 * - 99 * - + 36 AS col2, - 3 AS col2
----
-10959265
-3

skipif mysql # not compatible
query II rowsort label-1592
SELECT ALL + + COUNT ( * ) - + - NULLIF ( + 34, - 52 * + NULLIF ( + + 88, 39 ) * - 50 ) + 75 * - 41 * - 99 * - + 36 AS col2, - 3 AS col2
----
-10959265
-3

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1595
SELECT DISTINCT - - 5 * - + COUNT( * ) * 94 * + + 74 col0, 12
----
-34780
12

skipif mysql # not compatible
query II rowsort label-1595
SELECT DISTINCT - - 5 * - + COUNT ( * ) * 94 * + + 74 col0, 12
----
-34780
12

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

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

query I rowsort
SELECT 17 * - 69 AS col1
----
-1173

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT + 54 + - COUNT( + - 24 ) * - - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-1598
SELECT + 54 + - COUNT ( + - 24 ) * - - COUNT ( * )
----
53

query II rowsort
SELECT + ( - 85 ) col2, - 21 col0
----
-85
-21

query I rowsort
SELECT ALL - 65 * - 72 AS col1
----
4680

query I rowsort
SELECT ALL + 54 + 53
----
107

query I rowsort
SELECT DISTINCT + 32 * 93 - + 1 AS col2
----
2975

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ALL COUNT( * ) + - 82 * - 31 + + 89 * + 70 AS col2
----
8773

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL COUNT ( * ) + - 82 * - 31 + + 89 * + 70 AS col2
----
8773

query II rowsort
SELECT ALL + 62 + - - ( + - 39 ) + + 1 AS col0, + 87 + - - 93
----
24
180

query I rowsort
SELECT + 52 + 71 * - 90
----
-6338

query I rowsort
SELECT - - COALESCE ( + - 29, + + 83 - - 3 * + - 12 * + 34 ) AS col0
----
-29

query I rowsort
SELECT 95 + - 5 * + - 61 * 81 AS col0
----
24800

query II rowsort
SELECT COALESCE ( + + 49, - - 29, - + 17 ) + - 6, 31 AS col1
----
43
31

query I rowsort
SELECT COALESCE ( CASE - 60 WHEN AVG ( ALL + 73 ) THEN - 6 WHEN 81 THEN NULL END, - 13 ) + 51 AS col0
----
38

query I rowsort
SELECT 21 + + 28
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT DISTINCT MIN( ALL - 82 ) * - COUNT( * ) + 9
----
91

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT MIN ( ALL - 82 ) * - COUNT ( * ) + 9
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT 4 * - CASE 20 WHEN + 57 * + 63 + 14 THEN + 25 / + COUNT( ALL - 8 ) * + 14 - + - 15 ELSE NULL END * - 11 * + + AVG ( 75 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1612
SELECT 4 * - CASE 20 WHEN + 57 * + 63 + 14 THEN + 25 / + COUNT ( ALL - 8 ) * + 14 - + - 15 ELSE NULL END * - 11 * + + AVG ( 75 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1613
SELECT COUNT( * ) DIV - NULLIF ( + + 41, - ( - + 20 ) * + 30 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1613
SELECT COUNT ( * ) / - NULLIF ( + + 41, - ( - + 20 ) * + 30 ) AS col2
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT ( + - CAST( 63 AS SIGNED ) ) + - 49 - 64 - + 62
----
-238

skipif mysql # not compatible
query I rowsort label-1615
SELECT ( + - CAST ( 63 AS INTEGER ) ) + - 49 - 64 - + 62
----
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT 56 + - - MIN( ALL - - 35 )
----
91

skipif mysql # not compatible
query I rowsort label-1616
SELECT 56 + - - MIN ( ALL - - 35 )
----
91

query I rowsort
SELECT 46 * - + 91
----
-4186

query I rowsort
SELECT ALL 65 * - + ( + + 47 )
----
-3055

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT + 38 * - MAX( - ( 74 ) ) + 96 AS col2
----
2908

skipif mysql # not compatible
query I rowsort label-1619
SELECT + 38 * - MAX ( - ( 74 ) ) + 96 AS col2
----
2908

query I rowsort
SELECT ALL - NULLIF ( + 30, 46 ) AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT 1 DIV 58 + 75
----
75

skipif mysql # not compatible
query I rowsort label-1621
SELECT 1 / 58 + 75
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1622
SELECT 35 DIV 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1622
SELECT 35 / 46 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1623
SELECT 71 * CAST( - 21 * 41 AS SIGNED ) AS col2
----
-61131

skipif mysql # not compatible
query I rowsort label-1623
SELECT 71 * CAST ( - 21 * 41 AS INTEGER ) AS col2
----
-61131

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT 74 + COUNT( * ) * 60 AS col1
----
134

skipif mysql # not compatible
query I rowsort label-1624
SELECT 74 + COUNT ( * ) * 60 AS col1
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT SUM( 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1625
SELECT SUM ( 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ( 58 ) * 17 + COUNT( * )
----
987

skipif mysql # not compatible
query I rowsort label-1626
SELECT ( 58 ) * 17 + COUNT ( * )
----
987

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT DISTINCT + MIN( ALL - 35 ) + - MAX( 54 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT + MIN ( ALL - 35 ) + - MAX ( 54 ) AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1629
SELECT DISTINCT + COALESCE ( 31, CAST( NULL AS SIGNED ) * - 29 + 7, - 50 DIV + 98 ) * + NULLIF ( + 93 * COUNT( * ) - ( NULLIF ( - 36, 4 ) + - 75 ) * 96, 11 )
----
333219

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT + COALESCE ( 31, CAST ( NULL AS INTEGER ) * - 29 + 7, - 50 / + 98 ) * + NULLIF ( + 93 * COUNT ( * ) - ( NULLIF ( - 36, 4 ) + - 75 ) * 96, 11 )
----
333219

query I rowsort
SELECT DISTINCT + 75 + 48
----
123

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

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT - SUM ( DISTINCT 16 )
----
-16

query I rowsort
SELECT 96 + + 32 * 68
----
2272

query I rowsort
SELECT DISTINCT + 57 + + 24 * + 43 AS col0
----
1089

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

query I rowsort
SELECT - 80 * 22 + 21 AS col1
----
-1739

query I rowsort
SELECT 86 * 87
----
7482

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1638
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) + 63 * 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) + 63 * 37 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT MAX ( ( ( + 41 ) ) )
----
41

query I rowsort
SELECT ALL 67 - 74 * - 65
----
4877

query I rowsort
SELECT DISTINCT 84 * + 25 AS col1
----
2100

query I rowsort
SELECT ALL 19 * + 43
----
817

query I rowsort
SELECT ALL - 95 - + 45 AS col2
----
-140

query I rowsort
SELECT - 72 * 98 col1
----
-7056

query I rowsort
SELECT + 78 * 42
----
3276

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

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

query I rowsort
SELECT DISTINCT - 78 * - 21 col0
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT - MIN( DISTINCT 69 ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-1648
SELECT - MIN ( DISTINCT 69 ) col0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-1649
SELECT DISTINCT 71 DIV 39 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT 71 / 39 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT ALL 6 * COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL 6 * COUNT ( * ) AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1651
SELECT ALL + 39 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL + 39 / - 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1652
SELECT ALL - CAST( NULL AS SIGNED ) * - AVG ( + ( + 40 ) ) + + CASE 29 + ( 3 ) WHEN - 2 THEN 49 WHEN + 1 THEN + 57 WHEN COUNT( + 94 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL - CAST ( NULL AS INTEGER ) * - AVG ( + ( + 40 ) ) + + CASE 29 + ( 3 ) WHEN - 2 THEN 49 WHEN + 1 THEN + 57 WHEN COUNT ( + 94 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1653
SELECT + 9 + 97 DIV COUNT( * ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-1653
SELECT + 9 + 97 / COUNT ( * ) AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT + + CASE - 90 WHEN - 18 * 92 + + 18 THEN 10 * - 6 + - COUNT( * ) / - COALESCE ( ( 51 ) / 73 - - AVG ( 64 ), 11, - 97 * - COUNT( * ) ) END / + 77 - COUNT( * ) / 78
----
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT + + CASE - 90 WHEN - 18 * 92 + + 18 THEN 10 * - 6 + - COUNT ( * ) / - COALESCE ( ( 51 ) / 73 - - AVG ( 64 ), 11, - 97 * - COUNT ( * ) ) END / + 77 - COUNT ( * ) / 78
----
NULL

query I rowsort
SELECT + 92 * 81 + 20 * - 53 AS col0
----
6392

query I rowsort
SELECT + CASE + 36 WHEN 52 THEN 48 END
----
NULL

query I rowsort
SELECT ALL 58 * ( + 37 * + 16 ) + 49 AS col1
----
34385

query I rowsort
SELECT ALL 87 * ( + 9 ) + 8 * COALESCE ( ( 66 ), + NULLIF ( - 15, 54 + 37 ) + + 23 )
----
1311

query I rowsort
SELECT ALL + - 61 * - 53 + 85
----
3318

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1660
SELECT DISTINCT 45 * AVG ( ALL + CAST( NULL AS DECIMAL ) * ( 65 * + 85 ) ) + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT 45 * AVG ( ALL + CAST ( NULL AS REAL ) * ( 65 * + 85 ) ) + 24 AS col0
----
NULL

query I rowsort
SELECT - - 68 + - 78
----
-10

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

skipif mysql # not compatible
query I rowsort label-1662
SELECT + MAX ( - 20 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1663
SELECT + CAST( NULL AS SIGNED ) * 53 + + ( 65 ) * ( + 34 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT + CAST ( NULL AS INTEGER ) * 53 + + ( 65 ) * ( + 34 ) AS col0
----
NULL

query I rowsort
SELECT + 25 * + 75 col0
----
1875

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

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

query I rowsort
SELECT - - ( 25 ) * 59
----
1475

onlyif mysql # DIV for integer division: 
query I rowsort label-1667
SELECT ALL 61 DIV + + 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL 61 / + + 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT ALL - 83 * - 86 * + 50 - COALESCE ( 67, 4, - 81 * COUNT( * ) + - 30 )
----
356833

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL - 83 * - 86 * + 50 - COALESCE ( 67, 4, - 81 * COUNT ( * ) + - 30 )
----
356833

query I rowsort
SELECT DISTINCT + ( + - 76 ) * 38
----
-2888

query I rowsort
SELECT ALL - ( - 88 ) * 76 AS col0
----
6688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1671
SELECT DISTINCT CASE CAST( NULL AS SIGNED ) WHEN 68 * + ( COUNT( * ) * + 51 ) THEN CASE AVG ( - COALESCE ( + 94, - 90 ) ) WHEN CAST( NULL AS SIGNED ) + 47 THEN NULL ELSE 77 END / 11 WHEN - 33 THEN 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1671
SELECT DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN 68 * + ( COUNT ( * ) * + 51 ) THEN CASE AVG ( - COALESCE ( + 94, - 90 ) ) WHEN CAST ( NULL AS INTEGER ) + 47 THEN NULL ELSE 77 END / 11 WHEN - 33 THEN 0 END
----
NULL

query I rowsort
SELECT - 13 + + - 35
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT - 72 DIV - 93 * 12 col0
----
0

skipif mysql # not compatible
query I rowsort label-1673
SELECT - 72 / - 93 * 12 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT - SUM( - 62 ) * + 80
----
4960

skipif mysql # not compatible
query I rowsort label-1674
SELECT - SUM ( - 62 ) * + 80
----
4960

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT - 89 + 9 + + COUNT( * ) * - 37
----
-117

skipif mysql # not compatible
query I rowsort label-1675
SELECT - 89 + 9 + + COUNT ( * ) * - 37
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT - CASE + 17 WHEN - CASE - 31 WHEN 28 THEN 19 * - 79 + ( - 71 + ( + 46 ) ) ELSE NULL END THEN NULL ELSE - MAX( DISTINCT + 85 ) * - 47 END - - 65
----
-3930

skipif mysql # not compatible
query I rowsort label-1676
SELECT - CASE + 17 WHEN - CASE - 31 WHEN 28 THEN 19 * - 79 + ( - 71 + ( + 46 ) ) ELSE NULL END THEN NULL ELSE - MAX ( DISTINCT + 85 ) * - 47 END - - 65
----
-3930

query I rowsort
SELECT - 54 * 7
----
-378

query I rowsort
SELECT - 66 + - - 84
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT - COUNT( * ) + - - 8 * + ( 95 + + 72 ) AS col1
----
1335

skipif mysql # not compatible
query I rowsort label-1680
SELECT - COUNT ( * ) + - - 8 * + ( 95 + + 72 ) AS col1
----
1335

query I rowsort
SELECT ALL CASE 31 WHEN - 70 THEN NULL ELSE + 33 END col1
----
33

query I rowsort
SELECT ALL 30 + - + 55
----
-25

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

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

query I rowsort
SELECT ALL 6 + + 75 * 9 AS col0
----
681

query I rowsort
SELECT - 12 + + 0 * 66 AS col0
----
-12

query I rowsort
SELECT DISTINCT + 47 * + 81 AS col2
----
3807

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT - 82 * COUNT( 94 )
----
-82

skipif mysql # not compatible
query I rowsort label-1687
SELECT - 82 * COUNT ( 94 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT + SUM( + 0 ) + + 72 * 92 AS col1
----
6624

skipif mysql # not compatible
query I rowsort label-1688
SELECT + SUM ( + 0 ) + + 72 * 92 AS col1
----
6624

query I rowsort
SELECT + 54 + + ( 5 ) + - 66
----
-7

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

query I rowsort
SELECT ALL - 27 + - 13 AS col1
----
-40

query I rowsort
SELECT DISTINCT + - 18 * + 79 + 57
----
-1365

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT ALL CASE + 63 WHEN 78 * COUNT( * ) THEN - 48 + - 0 * 24 WHEN + 34 THEN NULL WHEN + SUM( 34 ) THEN 56 / + 79 END / - 71 + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL CASE + 63 WHEN 78 * COUNT ( * ) THEN - 48 + - 0 * 24 WHEN + 34 THEN NULL WHEN + SUM ( 34 ) THEN 56 / + 79 END / - 71 + - 79
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1694
SELECT DISTINCT + - CAST( 12 AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT + - CAST ( 12 AS INTEGER ) AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1695
SELECT ALL - + COUNT( * ) DIV 26 + 66
----
66

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

query I rowsort
SELECT + - 72 * + - 56 AS col1
----
4032

query I rowsort
SELECT + + 97 * + 36
----
3492

query I rowsort
SELECT - 9 - + + 12 + 85 AS col2
----
64

query I rowsort
SELECT + ( - NULLIF ( + 91, ( 49 ) + - 45 ) ) * 50
----
-4550

query I rowsort
SELECT + 92 * - COALESCE ( + 54, + 38 )
----
-4968

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1702
SELECT COUNT( * ) * + 3 + CAST( - COALESCE ( - ( - 70 ), 69 / 69 + 59, - 5 + ( - ( 52 ) ) ) AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-1702
SELECT COUNT ( * ) * + 3 + CAST ( - COALESCE ( - ( - 70 ), 69 / 69 + 59, - 5 + ( - ( 52 ) ) ) AS INTEGER )
----
-67

query I rowsort
SELECT COALESCE ( - 91, - + 32 ) + + 30 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT DISTINCT COUNT( - 34 ) * COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT COUNT ( - 34 ) * COUNT ( * ) col2
----
1

query I rowsort
SELECT COALESCE ( 12, - 53, + 5 ) * 94
----
1128

query II rowsort
SELECT 8, + 55 AS col1
----
8
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT 59 DIV + + 85
----
0

skipif mysql # not compatible
query I rowsort label-1707
SELECT 59 / + + 85
----
0

query I rowsort
SELECT ( 50 ) * + 4 * + 59 AS col1
----
11800

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT DISTINCT + 23 * MIN( DISTINCT + 22 )
----
506

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT + 23 * MIN ( DISTINCT + 22 )
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL + 5 + - - CASE CASE - 12 WHEN 54 * - 0 + COUNT( * ) THEN NULL ELSE - 56 END WHEN 37 THEN - 41 * CASE 17 WHEN + 41 THEN 46 WHEN + 74 THEN NULL ELSE 40 END - 49 ELSE 8 END - + 20 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL + 5 + - - CASE CASE - 12 WHEN 54 * - 0 + COUNT ( * ) THEN NULL ELSE - 56 END WHEN 37 THEN - 41 * CASE 17 WHEN + 41 THEN 46 WHEN + 74 THEN NULL ELSE 40 END - 49 ELSE 8 END - + 20 AS col0
----
-7

query I rowsort
SELECT 55 * + ( + - 65 )
----
-3575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1712
SELECT ALL CAST( NULL AS SIGNED ) * + + NULLIF ( - 55, + ( 34 ) * 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL CAST ( NULL AS INTEGER ) * + + NULLIF ( - 55, + ( 34 ) * 45 )
----
NULL

query II rowsort
SELECT ALL 44 AS col0, - 23
----
44
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ALL - 6 + + MIN( ALL + 60 )
----
54

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL - 6 + + MIN ( ALL + 60 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT 45 - + SUM( DISTINCT 89 )
----
-44

skipif mysql # not compatible
query I rowsort label-1715
SELECT 45 - + SUM ( DISTINCT 89 )
----
-44

query II rowsort
SELECT 32 col2, 24 * - 31
----
32
-744

query I rowsort
SELECT DISTINCT - 88 + 66 col2
----
-22

query II rowsort
SELECT - 42, 20 + - 64 + + 44 AS col1
----
-42
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT - - COALESCE ( + - 83, + CAST( NULL AS SIGNED ) - 35 )
----
-83

skipif mysql # not compatible
query I rowsort label-1719
SELECT - - COALESCE ( + - 83, + CAST ( NULL AS INTEGER ) - 35 )
----
-83

query II rowsort
SELECT ALL 3, 50 AS col0
----
3
50

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

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

query I rowsort
SELECT DISTINCT - 28 + + - 71 + + + 75 + 54
----
30

query I rowsort
SELECT ALL - + 20 + + + 4 * 36
----
124

query I rowsort
SELECT - 71 + - 89 AS col2
----
-160

query I rowsort
SELECT 76 * - 39
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT + CASE ( + 8 ) WHEN 19 + + COUNT( * ) * + 50 THEN 73 END * 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT + CASE ( + 8 ) WHEN 19 + + COUNT ( * ) * + 50 THEN 73 END * 19 AS col0
----
NULL

query II rowsort
SELECT 62 AS col0, 95 AS col0
----
62
95

query I rowsort
SELECT DISTINCT + + 91 * 51 + 81 - 46 * - 30 AS col0
----
6102

query I rowsort
SELECT ALL - 46 - 41 AS col1
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1730
SELECT - + 48 DIV CASE - 6 WHEN + 94 THEN NULL WHEN 91 THEN NULL WHEN 21 THEN + 39 DIV - 97 ELSE - SUM( DISTINCT - COALESCE ( + 93, + 20 ) ) END - COALESCE ( + ( - 90 ), + COUNT( 18 ) DIV - 64, 24 * + 51 ) * 96
----
8640

skipif mysql # not compatible
query I rowsort label-1730
SELECT - + 48 / CASE - 6 WHEN + 94 THEN NULL WHEN 91 THEN NULL WHEN 21 THEN + 39 / - 97 ELSE - SUM ( DISTINCT - COALESCE ( + 93, + 20 ) ) END - COALESCE ( + ( - 90 ), + COUNT ( 18 ) / - 64, 24 * + 51 ) * 96
----
8640

query I rowsort
SELECT 86 * 60 AS col1
----
5160

query I rowsort
SELECT DISTINCT + 43 * + 63
----
2709

query II rowsort
SELECT DISTINCT - - 69 AS col1, 47 AS col0
----
69
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1734
SELECT DISTINCT + 52 - + 42 - - 52 DIV - 55
----
10

skipif mysql # not compatible
query I rowsort label-1734
SELECT DISTINCT + 52 - + 42 - - 52 / - 55
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT ALL - - MAX( DISTINCT 76 )
----
76

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL - - MAX ( DISTINCT 76 )
----
76

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1737
SELECT 34 + + + 21 DIV COALESCE ( + - 70, + 73 * 32, - 31 ) * - ( + 41 ) + COALESCE ( 59, - 62 )
----
93

skipif mysql # not compatible
query I rowsort label-1737
SELECT 34 + + + 21 / COALESCE ( + - 70, + 73 * 32, - 31 ) * - ( + 41 ) + COALESCE ( 59, - 62 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1738
SELECT 4 DIV - COUNT( + 94 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1738
SELECT 4 / - COUNT ( + 94 ) AS col1
----
-4

query II rowsort
SELECT 40 * - 50 AS col1, + 97 col1
----
-2000
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1740
SELECT ALL 8 DIV 39, - MIN( + + 15 ) AS col2
----
0
-15

skipif mysql # not compatible
query II rowsort label-1740
SELECT ALL 8 / 39, - MIN ( + + 15 ) AS col2
----
0
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT 23 + - - MAX( ALL - 76 ) + + 94 * 21 AS col0
----
1921

skipif mysql # not compatible
query I rowsort label-1741
SELECT 23 + - - MAX ( ALL - 76 ) + + 94 * 21 AS col0
----
1921

query I rowsort
SELECT ALL 60 * - 31 AS col1
----
-1860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1743
SELECT ALL - NULLIF ( + 70, - - 30 / + - 22 * + CAST( NULL AS SIGNED ) ) + + MAX( - 93 )
----
-163

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL - NULLIF ( + 70, - - 30 / + - 22 * + CAST ( NULL AS INTEGER ) ) + + MAX ( - 93 )
----
-163

query I rowsort
SELECT ALL 54 + - 7
----
47

query I rowsort
SELECT DISTINCT ( + 20 ) * 39 * 60 col1
----
46800

query I rowsort
SELECT 55 - 9 AS col1
----
46

query I rowsort
SELECT ALL 94 + + + 91 * - 15 + - 11 * + 0
----
-1271

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT COUNT( * ) + - + 24 + 66
----
43

skipif mysql # not compatible
query I rowsort label-1748
SELECT COUNT ( * ) + - + 24 + 66
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1749
SELECT 55 + - CAST( - 95 AS SIGNED ) + - COUNT( * ) * 61 * 28 AS col1
----
-1558

skipif mysql # not compatible
query I rowsort label-1749
SELECT 55 + - CAST ( - 95 AS INTEGER ) + - COUNT ( * ) * 61 * 28 AS col1
----
-1558

query I rowsort
SELECT 90 - - 50 + ( 72 ) col2
----
212

query I rowsort
SELECT ALL 58 + 82 AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT DISTINCT - CASE + - 94 WHEN - - COUNT( * ) + + 35 + + COUNT( * ) * - NULLIF ( - 69, - 9 ) THEN NULL WHEN + 21 THEN - 28 + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT - CASE + - 94 WHEN - - COUNT ( * ) + + 35 + + COUNT ( * ) * - NULLIF ( - 69, - 9 ) THEN NULL WHEN + 21 THEN - 28 + 88 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1753
SELECT ALL - - 68 + + NULLIF ( 93, - - CAST( NULL AS SIGNED ) ) AS col0
----
161

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL - - 68 + + NULLIF ( 93, - - CAST ( NULL AS INTEGER ) ) AS col0
----
161

query I rowsort
SELECT 52 + + 45 + - - 65 - - 2 + 37 * - 26
----
-798

onlyif mysql # DIV for integer division: 
query I rowsort label-1755
SELECT ALL - ( - 1 ) DIV + + 81 col1
----
0

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL - ( - 1 ) / + + 81 col1
----
0

query I rowsort
SELECT - NULLIF ( + + 79, + - 7 ) + 69
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL CASE COUNT( DISTINCT 1 ) WHEN 81 THEN NULL ELSE - 45 END * - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL CASE COUNT ( DISTINCT 1 ) WHEN 81 THEN NULL ELSE - 45 END * - COUNT ( * )
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT MAX( - 13 ) * - COUNT( DISTINCT + 92 )
----
13

skipif mysql # not compatible
query I rowsort label-1759
SELECT MAX ( - 13 ) * - COUNT ( DISTINCT + 92 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT MAX( DISTINCT + 30 ) + 68 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-1760
SELECT MAX ( DISTINCT + 30 ) + 68 AS col0
----
98

query I rowsort
SELECT ALL + - 89 * ( 39 )
----
-3471

query I rowsort
SELECT + 52 * 80 * + + ( + 30 )
----
124800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1763
SELECT - 61 + + - COUNT( * ) DIV - 24 * CASE 0 WHEN 26 THEN NULL WHEN - 1 THEN + CAST( NULL AS SIGNED ) * MAX( DISTINCT + 88 ) + 30 DIV - 45 WHEN + 76 * + 5 THEN NULL ELSE + MIN( ALL - 81 ) DIV 40 + - 0 * + 64 END + 19
----
-42

skipif mysql # not compatible
query I rowsort label-1763
SELECT - 61 + + - COUNT ( * ) / - 24 * CASE 0 WHEN 26 THEN NULL WHEN - 1 THEN + CAST ( NULL AS INTEGER ) * MAX ( DISTINCT + 88 ) + 30 / - 45 WHEN + 76 * + 5 THEN NULL ELSE + MIN ( ALL - 81 ) / 40 + - 0 * + 64 END + 19
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1764
SELECT 55 * 33 + - + CAST( + 97 AS SIGNED ) AS col1
----
1718

skipif mysql # not compatible
query I rowsort label-1764
SELECT 55 * 33 + - + CAST ( + 97 AS INTEGER ) AS col1
----
1718

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1765
SELECT - CASE 62 WHEN 19 THEN + + 54 * 25 WHEN - ( + COUNT( * ) ) / 50 THEN 4 WHEN CAST( NULL AS DECIMAL ) * - 84 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1765
SELECT - CASE 62 WHEN 19 THEN + + 54 * 25 WHEN - ( + COUNT ( * ) ) / 50 THEN 4 WHEN CAST ( NULL AS REAL ) * - 84 THEN NULL END
----
NULL

query I rowsort
SELECT - 14 * + 82 + + 55 * - - ( + 32 ) * ( - 20 ) AS col1
----
-36348

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

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

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

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL + COUNT ( 42 ) AS col0
----
1

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

query I rowsort
SELECT - - 37 * + 46 * + - 69 * - 57 AS col1
----
6693966

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

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

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

query I rowsort
SELECT 13 * - ( + - 26 ) - - 59
----
397

query I rowsort
SELECT NULLIF ( - 79, + - 30 * + + 1 )
----
-79

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1776
SELECT DISTINCT - 24 * - 6 + 52 + + 11 + - + NULLIF ( - COUNT( * ), 54 * + 31 + 48 ) DIV - 11 * + 7
----
207

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT - 24 * - 6 + 52 + + 11 + - + NULLIF ( - COUNT ( * ), 54 * + 31 + 48 ) / - 11 * + 7
----
207

query I rowsort
SELECT - 25 * + 78 AS col0
----
-1950

query I rowsort
SELECT ALL 25 * + 61 + + + 63
----
1588

query I rowsort
SELECT ALL + ( - + CASE + 25 WHEN - 89 THEN - 12 ELSE NULL END )
----
NULL

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

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

query I rowsort
SELECT DISTINCT CASE - - 74 WHEN - 6 THEN NULL WHEN - + 72 THEN 77 END * - 3 + - 81
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1783
SELECT - 77 DIV 57 * + 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-1783
SELECT - 77 / 57 * + 98 AS col1
----
-98

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT - SUM( DISTINCT - 81 )
----
81

skipif mysql # not compatible
query I rowsort label-1786
SELECT - SUM ( DISTINCT - 81 )
----
81

query I rowsort
SELECT DISTINCT + 88 + 25 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT - SUM( - 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1788
SELECT - SUM ( - 87 ) AS col0
----
87

query I rowsort
SELECT ALL 41 - + ( - - 15 )
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1790
SELECT - CASE 35 WHEN - 53 THEN NULL WHEN - 64 + 97 THEN - NULLIF ( CAST( - 39 AS DECIMAL ), 76 * 59 ) + + AVG ( 69 ) / 4 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1790
SELECT - CASE 35 WHEN - 53 THEN NULL WHEN - 64 + 97 THEN - NULLIF ( CAST ( - 39 AS REAL ), 76 * 59 ) + + AVG ( 69 ) / 4 END col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1792
SELECT ALL ( + ( 57 ) ) * + CASE - ( 17 ) WHEN - 10 * + 65 THEN NULL WHEN 34 THEN + CASE - 50 WHEN 8 THEN 59 END WHEN 63 - CAST( NULL AS SIGNED ) * - 36 THEN NULL END + + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL ( + ( 57 ) ) * + CASE - ( 17 ) WHEN - 10 * + 65 THEN NULL WHEN 34 THEN + CASE - 50 WHEN 8 THEN 59 END WHEN 63 - CAST ( NULL AS INTEGER ) * - 36 THEN NULL END + + 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT + - ( NULLIF ( SUM( DISTINCT + 17 ), + 34 ) ) * - COUNT( ALL + CASE 42 WHEN + 86 THEN 8 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1793
SELECT + - ( NULLIF ( SUM ( DISTINCT + 17 ), + 34 ) ) * - COUNT ( ALL + CASE 42 WHEN + 86 THEN 8 END ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-1794
SELECT + COUNT ( * ) * - - ( - 57 ) * - + 80 + - - COUNT ( * ) / + 50
----
4560

query II rowsort
SELECT + 83 AS col1, 1 col2
----
83
1

query II rowsort
SELECT DISTINCT 62 col2, 87 * 57 * + + 46
----
62
228114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1797
SELECT ALL COALESCE ( 46, - 54 - + CASE WHEN + COUNT( * ) IN ( CAST( NULL AS DECIMAL ) * 68 ) THEN 70 WHEN - 3 IS NULL THEN NULL END ) col1
----
46

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL COALESCE ( 46, - 54 - + CASE WHEN + COUNT ( * ) IN ( CAST ( NULL AS REAL ) * 68 ) THEN 70 WHEN - 3 IS NULL THEN NULL END ) col1
----
46

query I rowsort
SELECT + - 58 - 0
----
-58

query I rowsort
SELECT + + 83 - - COALESCE ( 95, 74 )
----
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1800
SELECT + + MIN( ALL 99 ) DIV - 48 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1800
SELECT + + MIN ( ALL 99 ) / - 48 AS col2
----
-2

query I rowsort
SELECT + - COALESCE ( + 34, + ( + - 28 ), + 16 ) + 15 AS col1
----
-19

query I rowsort
SELECT - 48 * + + 25
----
-1200

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1804
SELECT + MAX( DISTINCT + 50 ) + - CAST( + 59 AS SIGNED ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-1804
SELECT + MAX ( DISTINCT + 50 ) + - CAST ( + 59 AS INTEGER ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-1805
SELECT + 67 * ( + MAX( 12 ) ) AS col1, 56 + - + 11 + 4
----
804
49

skipif mysql # not compatible
query II rowsort label-1805
SELECT + 67 * ( + MAX ( 12 ) ) AS col1, 56 + - + 11 + 4
----
804
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1806
SELECT ALL - 2 DIV + 91 + 69 + - - MAX( 27 ) DIV - 1
----
42

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - 2 / + 91 + 69 + - - MAX ( 27 ) / - 1
----
42

query I rowsort
SELECT DISTINCT 90 * - 26 col2
----
-2340

query I rowsort
SELECT DISTINCT + COALESCE ( 60, - NULLIF ( + - 14, 64 ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT - CASE + + 32 WHEN ( + 41 ) * - + 41 THEN + NULLIF ( + ( 30 ), - MAX( 97 ) ) * 60 + 91 END + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT - CASE + + 32 WHEN ( + 41 ) * - + 41 THEN + NULLIF ( + ( 30 ), - MAX ( 97 ) ) * 60 + 91 END + 35
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT ALL 20 * - 19 + - - COALESCE ( - 51, + - 41 * 9 * 99, - 81 - + COUNT( * ), - 34 )
----
-431

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL 20 * - 19 + - - COALESCE ( - 51, + - 41 * 9 * 99, - 81 - + COUNT ( * ), - 34 )
----
-431

query I rowsort
SELECT 74 * + 63 + - 3 AS col0
----
4659

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1814
SELECT + 45 * + 0 * + COUNT( * ) * + 53 + CAST( - + 41 AS SIGNED ) * + 93 AS col2
----
-3813

skipif mysql # not compatible
query I rowsort label-1814
SELECT + 45 * + 0 * + COUNT ( * ) * + 53 + CAST ( - + 41 AS INTEGER ) * + 93 AS col2
----
-3813

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1816
SELECT DISTINCT - 2 * - CAST( + 88 AS SIGNED )
----
176

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT - 2 * - CAST ( + 88 AS INTEGER )
----
176

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1817
SELECT - CAST( NULL AS DECIMAL ) - + ( 10 ) - + AVG ( 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT - CAST ( NULL AS REAL ) - + ( 10 ) - + AVG ( 57 )
----
NULL

query I rowsort
SELECT - NULLIF ( - 34, - 3 * + - 39 ) * - 2 AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1819
SELECT DISTINCT + 22 AS col1, CAST( NULL AS SIGNED )
----
22
NULL

skipif mysql # not compatible
query II rowsort label-1819
SELECT DISTINCT + 22 AS col1, CAST ( NULL AS INTEGER )
----
22
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT NULLIF ( + COUNT( * ), ( + - 95 ) ) AS col0, 45
----
1
45

skipif mysql # not compatible
query II rowsort label-1820
SELECT NULLIF ( + COUNT ( * ), ( + - 95 ) ) AS col0, 45
----
1
45

query II rowsort
SELECT - - 82 AS col2, - 47
----
82
-47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1823
SELECT - NULLIF ( - - CAST( NULL AS SIGNED ), + - 55 ) * + - ( + ( - MIN( ALL + 88 ) ) ) + + 15 * 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT - NULLIF ( - - CAST ( NULL AS INTEGER ), + - 55 ) * + - ( + ( - MIN ( ALL + 88 ) ) ) + + 15 * 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT + 7 * + COALESCE ( - COUNT( - COALESCE ( + 80, 16 ) ), + CASE 94 WHEN ( 72 ) THEN - 92 + + 86 * 69 WHEN + 98 THEN COUNT( DISTINCT 4 ) ELSE NULL END + 2, - 22, - 32 )
----
-7

skipif mysql # not compatible
query I rowsort label-1824
SELECT + 7 * + COALESCE ( - COUNT ( - COALESCE ( + 80, 16 ) ), + CASE 94 WHEN ( 72 ) THEN - 92 + + 86 * 69 WHEN + 98 THEN COUNT ( DISTINCT 4 ) ELSE NULL END + 2, - 22, - 32 )
----
-7

query I rowsort
SELECT - 46 + + 32
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1826
SELECT + - 22 - + 48 DIV - 61
----
-22

skipif mysql # not compatible
query I rowsort label-1826
SELECT + - 22 - + 48 / - 61
----
-22

query I rowsort
SELECT - 60 + 53 + + 21
----
14

query I rowsort
SELECT + + 47 - - - 36
----
11

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

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

query I rowsort
SELECT + 73 + 60 + + 84 AS col1
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT DISTINCT + CASE CASE + COUNT( * ) WHEN MIN( - 63 ) THEN - + COUNT( * ) ELSE NULL END WHEN 79 THEN - 70 + AVG ( 88 ) WHEN 42 + 31 THEN NULL ELSE NULL END / - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT + CASE CASE + COUNT ( * ) WHEN MIN ( - 63 ) THEN - + COUNT ( * ) ELSE NULL END WHEN 79 THEN - 70 + AVG ( 88 ) WHEN 42 + 31 THEN NULL ELSE NULL END / - 52
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1832
SELECT ALL - 43 AS col1, - NULLIF ( + 47, + MIN( + 91 ) ) + 89 + 72 * 18 col1
----
-43
1338

skipif mysql # not compatible
query II rowsort label-1832
SELECT ALL - 43 AS col1, - NULLIF ( + 47, + MIN ( + 91 ) ) + 89 + 72 * 18 col1
----
-43
1338

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT DISTINCT - CASE - + ( + 16 ) WHEN + 5 * - COALESCE ( - + 70, 3 * + ( COUNT( * ) ) - 55 ) + + 33 + - 50 / + ( - 54 * - 48 ) THEN NULL WHEN + 43 THEN NULL WHEN + 59 THEN NULL ELSE 22 + 64 END * - 55
----
4730

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT - CASE - + ( + 16 ) WHEN + 5 * - COALESCE ( - + 70, 3 * + ( COUNT ( * ) ) - 55 ) + + 33 + - 50 / + ( - 54 * - 48 ) THEN NULL WHEN + 43 THEN NULL WHEN + 59 THEN NULL ELSE 22 + 64 END * - 55
----
4730

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

query I rowsort
SELECT ALL 92 + - + 42 + + 53 * + 62 + + 53
----
3389

query II rowsort
SELECT DISTINCT + 35 AS col1, - 80 * - 3 AS col1
----
35
240

query I rowsort
SELECT 22 + - 56 + + 43 AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1838
SELECT - CASE + NULLIF ( - + 82, + 48 ) WHEN + 39 + + - 6 THEN NULL WHEN 26 THEN - 1 ELSE - 37 * + 29 END * - CAST( + 57 * 74 + - SUM( 89 ) * 14 AS SIGNED )
----
-3188956

skipif mysql # not compatible
query I rowsort label-1838
SELECT - CASE + NULLIF ( - + 82, + 48 ) WHEN + 39 + + - 6 THEN NULL WHEN 26 THEN - 1 ELSE - 37 * + 29 END * - CAST ( + 57 * 74 + - SUM ( 89 ) * 14 AS INTEGER )
----
-3188956

query I rowsort
SELECT + 59 + - - 34 col0
----
93

query II rowsort
SELECT - + 87 AS col1, - 24 AS col1
----
-87
-24

query I rowsort
SELECT DISTINCT 79 + + + 25 AS col1
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1842
SELECT ALL NULLIF ( - 39, + - 59 * + - 43 + + 26 + CASE - - 82 WHEN - CAST( + COUNT( * ) AS SIGNED ) THEN 59 * - 93 END ) + + NULLIF ( COUNT( * ), COALESCE ( - 42, - ( - 7 ) + COUNT( * ) * - 97 ) + - 77 )
----
-38

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL NULLIF ( - 39, + - 59 * + - 43 + + 26 + CASE - - 82 WHEN - CAST ( + COUNT ( * ) AS INTEGER ) THEN 59 * - 93 END ) + + NULLIF ( COUNT ( * ), COALESCE ( - 42, - ( - 7 ) + COUNT ( * ) * - 97 ) + - 77 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1843
SELECT NULLIF ( MIN( DISTINCT - - ( + ( 12 ) ) ), + - 97 ) * - + CAST( + 69 AS SIGNED )
----
-828

skipif mysql # not compatible
query I rowsort label-1843
SELECT NULLIF ( MIN ( DISTINCT - - ( + ( 12 ) ) ), + - 97 ) * - + CAST ( + 69 AS INTEGER )
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT ALL 31 * - + ( - ( - 15 ) ) * 8 + 48 + + COUNT( * )
----
-3671

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL 31 * - + ( - ( - 15 ) ) * 8 + 48 + + COUNT ( * )
----
-3671

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1845
SELECT DISTINCT ( MIN( + 57 ) ) + - + COUNT( * ) + - 85 - + - 67 + - 46 DIV - 66 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT ( MIN ( + 57 ) ) + - + COUNT ( * ) + - 85 - + - 67 + - 46 / - 66 AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1846
SELECT ( + 1 ) DIV - - 94 * COUNT( * ) * - - 79 AS col0, 75 + + 31
----
0
106

skipif mysql # not compatible
query II rowsort label-1846
SELECT ( + 1 ) / - - 94 * COUNT ( * ) * - - 79 AS col0, 75 + + 31
----
0
106

query I rowsort
SELECT ALL 78 + + 73 AS col2
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1848
SELECT COALESCE ( + - 16, - CAST( NULL AS SIGNED ) + + - 69 DIV - + COUNT( * ) * + ( + + 29 ), - 71 + COALESCE ( + 1, ( 51 ) * COUNT( * ), 38 * + 88 ) DIV + 41 ) * + 79 col1
----
-1264

skipif mysql # not compatible
query I rowsort label-1848
SELECT COALESCE ( + - 16, - CAST ( NULL AS INTEGER ) + + - 69 / - + COUNT ( * ) * + ( + + 29 ), - 71 + COALESCE ( + 1, ( 51 ) * COUNT ( * ), 38 * + 88 ) / + 41 ) * + 79 col1
----
-1264

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT CASE + + 91 WHEN - 38 THEN NULL WHEN - + 1 + 57 + 68 / 22 * 86 THEN 85 + 89 ELSE NULL END * - COUNT( * ) + COUNT( * ) * ( - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1849
SELECT CASE + + 91 WHEN - 38 THEN NULL WHEN - + 1 + 57 + 68 / 22 * 86 THEN 85 + 89 ELSE NULL END * - COUNT ( * ) + COUNT ( * ) * ( - 36 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1850
SELECT ALL CAST( NULL AS SIGNED ) - - 57 + COALESCE ( + 28, - + ( - 18 ), + + ( - 16 ) * - 67 ) - + ( CASE + 74 WHEN + 68 / - 45 THEN 95 ELSE NULL END ) * 6 * - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL CAST ( NULL AS INTEGER ) - - 57 + COALESCE ( + 28, - + ( - 18 ), + + ( - 16 ) * - 67 ) - + ( CASE + 74 WHEN + 68 / - 45 THEN 95 ELSE NULL END ) * 6 * - 66 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1851
SELECT DISTINCT + 43 DIV 81 * + - 75 DIV 27
----
0

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT + 43 / 81 * + - 75 / 27
----
0

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

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

query I rowsort
SELECT 90 + - 84 AS col2
----
6

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

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT - NULLIF ( COUNT ( * ), + - 47 )
----
-1

query I rowsort
SELECT 99 + 39 + 80 + 47 * 43
----
2239

query I rowsort
SELECT ALL - 25 - + 15 + - 27
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT 99 * COUNT( * ) - - COALESCE ( 47, - 30 * + - 41 ) AS col2
----
146

skipif mysql # not compatible
query I rowsort label-1857
SELECT 99 * COUNT ( * ) - - COALESCE ( 47, - 30 * + - 41 ) AS col2
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-1858
SELECT - COUNT( * ) * + 34 col1, 10 + + 87 AS col1
----
-34
97

skipif mysql # not compatible
query II rowsort label-1858
SELECT - COUNT ( * ) * + 34 col1, 10 + + 87 AS col1
----
-34
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL + + ( - SUM( - 22 ) ) * COUNT( * ) * 33 * - + COUNT( * ) AS col1
----
-726

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL + + ( - SUM ( - 22 ) ) * COUNT ( * ) * 33 * - + COUNT ( * ) AS col1
----
-726

query I rowsort
SELECT + 14 + - 62 * NULLIF ( ( + + 26 ), - 1 + 92 ) * 87
----
-140230

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT DISTINCT 23 * - 87 * ( + 57 ) + + COUNT( DISTINCT - 20 ) AS col2
----
-114056

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT 23 * - 87 * ( + 57 ) + + COUNT ( DISTINCT - 20 ) AS col2
----
-114056

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL + 27 * - NULLIF ( 69, + MAX( 77 ) )
----
-1863

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL + 27 * - NULLIF ( 69, + MAX ( 77 ) )
----
-1863

query I rowsort
SELECT ALL - + 94 + 41 + + 28 * 40 * 36
----
40267

onlyif mysql # aggregate syntax: 
query II rowsort label-1864
SELECT ALL MIN( ALL 14 ) AS col2, + 63 * - ( - 39 ) + + + 96 * - 33
----
14
-711

skipif mysql # not compatible
query II rowsort label-1864
SELECT ALL MIN ( ALL 14 ) AS col2, + 63 * - ( - 39 ) + + + 96 * - 33
----
14
-711

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT - 37 / - MAX( - 95 ) + + + 73 + - CASE + NULLIF ( - - ( - COUNT( * ) ), - 21 ) WHEN ( 20 ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT - 37 / - MAX ( - 95 ) + + + 73 + - CASE + NULLIF ( - - ( - COUNT ( * ) ), - 21 ) WHEN ( 20 ) THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 7 * + + 84 + + ( + 20 )
----
-568

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT DISTINCT + - MIN( + 86 ) + + NULLIF ( + 24, - 80 * MIN( DISTINCT + 80 ) / 22 + - 20 )
----
-62

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT + - MIN ( + 86 ) + + NULLIF ( + 24, - 80 * MIN ( DISTINCT + 80 ) / 22 + - 20 )
----
-62

query II rowsort
SELECT 78 - - + 30 * 68, + 25 AS col2
----
2118
25

query I rowsort
SELECT + 73 + + 71
----
144

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

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

query II rowsort
SELECT ALL 26 + - ( - 78 ) AS col1, 61 * + 12 AS col1
----
104
732

query II rowsort
SELECT DISTINCT - 62 * + 72 col0, + 10 AS col2
----
-4464
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL - + COUNT( * ) + + + 53 * - 65 AS col1
----
-3446

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL - + COUNT ( * ) + + + 53 * - 65 AS col1
----
-3446

query I rowsort
SELECT ALL 90 + 78
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL + 19 * COUNT( * ) * + + 95 * - - 63 AS col2
----
113715

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL + 19 * COUNT ( * ) * + + 95 * - - 63 AS col2
----
113715

onlyif mysql # aggregate syntax: 
query II rowsort label-1876
SELECT 62 AS col1, COUNT( * ) + - 62 AS col0
----
62
-61

skipif mysql # not compatible
query II rowsort label-1876
SELECT 62 AS col1, COUNT ( * ) + - 62 AS col0
----
62
-61

query II rowsort
SELECT - 15 col0, + 41
----
-15
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT DISTINCT 37 * COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT 37 * COUNT ( * ) AS col0
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-1879
SELECT ALL 19, - 31 DIV + 49 AS col0
----
19
0

skipif mysql # not compatible
query II rowsort label-1879
SELECT ALL 19, - 31 / + 49 AS col0
----
19
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1880
SELECT COUNT( * ) + + - 42 * + COUNT( * ) DIV + 55
----
1

skipif mysql # not compatible
query I rowsort label-1880
SELECT COUNT ( * ) + + - 42 * + COUNT ( * ) / + 55
----
1

query I rowsort
SELECT ( - 22 ) * + - NULLIF ( - 55, + 94 )
----
-1210

query I rowsort
SELECT 92 * - 24 + - ( 7 ) AS col2
----
-2215

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT MAX( DISTINCT 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1883
SELECT MAX ( DISTINCT 75 ) AS col0
----
75

query II rowsort
SELECT ALL - 0 AS col1, + 84
----
0
84

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1885
SELECT ALL - 54, CAST( NULL AS DECIMAL ) + - - 51 AS col0
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-1885
SELECT ALL - 54, CAST ( NULL AS REAL ) + - - 51 AS col0
----
-54
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1886
SELECT + COUNT( * ) AS col1, + 67 * - - SUM( ALL ( 30 ) ) AS col1
----
1
2010

skipif mysql # not compatible
query II rowsort label-1886
SELECT + COUNT ( * ) AS col1, + 67 * - - SUM ( ALL ( 30 ) ) AS col1
----
1
2010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1887
SELECT CAST( + - 0 AS SIGNED ) * + 68
----
0

skipif mysql # not compatible
query I rowsort label-1887
SELECT CAST ( + - 0 AS INTEGER ) * + 68
----
0

query I rowsort
SELECT DISTINCT 23 * 80 * - 69 AS col0
----
-126960

onlyif mysql # DIV for integer division: 
query I rowsort label-1889
SELECT 18 DIV + 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1889
SELECT 18 / + 46 AS col2
----
0

query I rowsort
SELECT - 98 * 21
----
-2058

query I rowsort
SELECT DISTINCT ( - 13 ) * - + 67 col0
----
871

query I rowsort
SELECT ALL 11 + - - 85 AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1893
SELECT + CASE 70 WHEN + + 74 THEN + CAST( - + COUNT( * ) AS SIGNED ) ELSE - 14 END DIV CAST( - COUNT( * ) AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-1893
SELECT + CASE 70 WHEN + + 74 THEN + CAST ( - + COUNT ( * ) AS INTEGER ) ELSE - 14 END / CAST ( - COUNT ( * ) AS INTEGER )
----
14

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

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

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

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + ( - CAST ( 10 AS INTEGER ) ) AS col2
----
-10

query I rowsort
SELECT ALL + 76 + 58 * + 57 * - - 17 col2
----
56278

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1897
SELECT - + COUNT( * ) * - 12 + - - 72 + + - 67 * + COUNT( * ) + COALESCE ( - 59, 63 * - 73 ) + + 65 DIV 26 * - 7 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-1897
SELECT - + COUNT ( * ) * - 12 + - - 72 + + - 67 * + COUNT ( * ) + COALESCE ( - 59, 63 * - 73 ) + + 65 / 26 * - 7 AS col0
----
-56

query I rowsort
SELECT - + 95 + - - 53
----
-42

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

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

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

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

query I rowsort
SELECT + + 10 + + 39 AS col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1902
SELECT COALESCE ( 58, + 43 DIV + - 40 ) * + 6 + + + MAX( - 74 ) + - 10 + - 92 AS col2
----
172

skipif mysql # not compatible
query I rowsort label-1902
SELECT COALESCE ( 58, + 43 / + - 40 ) * + 6 + + + MAX ( - 74 ) + - 10 + - 92 AS col2
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-1903
SELECT DISTINCT - 71 DIV - 38 + - 4 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT - 71 / - 38 + - 4 AS col0
----
-3

query I rowsort
SELECT ALL ( + 39 ) + + 19 + - - ( - 53 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT - ( - - 72 ) * - COALESCE ( + MIN( ALL + + 41 ), - + COUNT( * ) - + 73, 17 )
----
2952

skipif mysql # not compatible
query I rowsort label-1905
SELECT - ( - - 72 ) * - COALESCE ( + MIN ( ALL + + 41 ), - + COUNT ( * ) - + 73, 17 )
----
2952

query I rowsort
SELECT DISTINCT - 21 + 84 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL SUM( DISTINCT - + 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL SUM ( DISTINCT - + 95 ) AS col0
----
-95

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

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

query I rowsort
SELECT - + 94 + NULLIF ( - 7, + 93 + + 2 ) AS col1
----
-101

query I rowsort
SELECT ALL - 87 - 55 - + 18 + + ( + CASE 61 WHEN 48 + 52 * - 75 + 42 THEN + NULLIF ( + 49, AVG ( 23 ) ) * 47 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT + 8 * + 26 * + + 12 * - COUNT( * ) * + 32
----
-79872

skipif mysql # not compatible
query I rowsort label-1911
SELECT + 8 * + 26 * + + 12 * - COUNT ( * ) * + 32
----
-79872

onlyif mysql # DIV for integer division: 
query I rowsort label-1912
SELECT ALL - 60 DIV - + 75 * + - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL - 60 / - + 75 * + - 71 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT - 60 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT - 60 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 66 * - - 59
----
-3894

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1917
SELECT ALL - 61 DIV 37 * 47 * 32 * - MIN( - + 79 )
----
-118816

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL - 61 / 37 * 47 * 32 * - MIN ( - + 79 )
----
-118816

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

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

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

query I rowsort
SELECT DISTINCT + 70 * 31 col0
----
2170

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1922
SELECT - CAST( + CAST( + + 89 AS SIGNED ) AS SIGNED ) + 49 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1922
SELECT - CAST ( + CAST ( + + 89 AS INTEGER ) AS INTEGER ) + 49 AS col2
----
-40

query I rowsort
SELECT DISTINCT - 38 * + 48 + - 50
----
-1874

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT ALL - + 28 * - CASE + 46 WHEN - 60 + + 14 THEN + + 53 - + 21 END + - 36 + + 27 + 65 * MIN( ( - CASE + 61 WHEN 36 THEN - 99 + - 76 ELSE 34 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL - + 28 * - CASE + 46 WHEN - 60 + + 14 THEN + + 53 - + 21 END + - 36 + + 27 + 65 * MIN ( ( - CASE + 61 WHEN 36 THEN - 99 + - 76 ELSE 34 END ) )
----
NULL

query II rowsort
SELECT DISTINCT - ( + 14 ) * 2 + - 3 col2, - 0 AS col1
----
-31
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT - + 51 * - + CASE - + COUNT( * ) WHEN 30 THEN 6 * - - ( + 31 ) * - + 13 + 22 / COUNT( * ) END * COUNT( * ) - ( 44 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT - + 51 * - + CASE - + COUNT ( * ) WHEN 30 THEN 6 * - - ( + 31 ) * - + 13 + 22 / COUNT ( * ) END * COUNT ( * ) - ( 44 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1927
SELECT DISTINCT 41 * + 63 + - CASE + + 67 WHEN - 84 THEN NULL WHEN ( 50 ) THEN 11 ELSE - CAST( NULL AS SIGNED ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1927
SELECT DISTINCT 41 * + 63 + - CASE + + 67 WHEN - 84 THEN NULL WHEN ( 50 ) THEN 11 ELSE - CAST ( NULL AS INTEGER ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT COUNT( ALL - 30 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1928
SELECT COUNT ( ALL - 30 ) AS col2
----
1

query I rowsort
SELECT + 28 * 42 * + 58 AS col0
----
68208

query II rowsort
SELECT ( - 98 ) * 79 * + 62 + 1 AS col2, 20
----
-480003
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT - ( - + CASE CAST( NULL AS SIGNED ) WHEN + - 98 THEN NULL WHEN - 27 THEN - - 38 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1931
SELECT - ( - + CASE CAST ( NULL AS INTEGER ) WHEN + - 98 THEN NULL WHEN - 27 THEN - - 38 ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT - 42 * - - 3 * 72 AS col0
----
-9072

query I rowsort
SELECT ALL - 86 * - 43 + - 14 + 21 + - 83 AS col0
----
3622

query I rowsort
SELECT DISTINCT + 50 * 36 + - 3 AS col1
----
1797

onlyif mysql # DIV for integer division: 
query I rowsort label-1935
SELECT DISTINCT + 62 DIV + - COALESCE ( - 48, - - 30 )
----
1

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT + 62 / + - COALESCE ( - 48, - - 30 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1936
SELECT + + ( + CASE + 86 WHEN 88 THEN NULL WHEN - 12 / - - NULLIF ( + MIN( - CAST( NULL AS DECIMAL ) ), + 51 + + 42 ) THEN + 30 ELSE NULL END ) * ( - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1936
SELECT + + ( + CASE + 86 WHEN 88 THEN NULL WHEN - 12 / - - NULLIF ( + MIN ( - CAST ( NULL AS REAL ) ), + 51 + + 42 ) THEN + 30 ELSE NULL END ) * ( - 97 )
----
NULL

query I rowsort
SELECT + 83 * - 65 col0
----
-5395

query I rowsort
SELECT ALL - CASE + - 87 WHEN - 49 THEN + 19 END
----
NULL

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

query I rowsort
SELECT - 90 * 38 col2
----
-3420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1941
SELECT ALL CASE + 4 WHEN - 15 THEN + CASE + 89 WHEN + 27 THEN + NULLIF ( + COALESCE ( 82, - - 16 ), 70 + CASE COUNT( * ) WHEN 92 * + CAST( 10 AS SIGNED ) THEN NULL WHEN 68 THEN 0 END ) * - 70 ELSE + 59 + 46 * 32 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL CASE + 4 WHEN - 15 THEN + CASE + 89 WHEN + 27 THEN + NULLIF ( + COALESCE ( 82, - - 16 ), 70 + CASE COUNT ( * ) WHEN 92 * + CAST ( 10 AS INTEGER ) THEN NULL WHEN 68 THEN 0 END ) * - 70 ELSE + 59 + 46 * 32 END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT + 37 + 63 + + - COUNT( * ) col1
----
99

skipif mysql # not compatible
query I rowsort label-1942
SELECT + 37 + 63 + + - COUNT ( * ) col1
----
99

query I rowsort
SELECT ALL - 56 * 62 col1
----
-3472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1944
SELECT + 54 * 95 / - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT + 54 * 95 / - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 78 - 90 + + - 54
----
-66

query II rowsort
SELECT DISTINCT ( ( + - 12 ) ) AS col0, - 68 * - 52 AS col2
----
-12
3536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1947
SELECT - 7 - ( - 2 ) DIV COUNT( ALL + - 16 ) + + + 14
----
9

skipif mysql # not compatible
query I rowsort label-1947
SELECT - 7 - ( - 2 ) / COUNT ( ALL + - 16 ) + + + 14
----
9

query I rowsort
SELECT ALL 13 * + + 95 AS col1
----
1235

query II rowsort
SELECT DISTINCT CASE + 70 WHEN 73 THEN + ( + + 67 ) - - 37 END AS col2, + 1
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1950
SELECT - 77 DIV - - NULLIF ( - - 22, - + 35 )
----
-3

skipif mysql # not compatible
query I rowsort label-1950
SELECT - 77 / - - NULLIF ( - - 22, - + 35 )
----
-3

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

query I rowsort
SELECT ALL - 94 * + 26
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL - 21 + - CASE 57 WHEN - + MIN( DISTINCT + + 36 ) + COUNT( * ) THEN + + ( - NULLIF ( - 27, + 38 ) ) ELSE NULL END - + 38 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL - 21 + - CASE 57 WHEN - + MIN ( DISTINCT + + 36 ) + COUNT ( * ) THEN + + ( - NULLIF ( - 27, + 38 ) ) ELSE NULL END - + 38 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1954
SELECT DISTINCT + 12 DIV NULLIF ( + + 64, + COUNT( * ) ) * 55 + - - 76 * + 91
----
6916

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT + 12 / NULLIF ( + + 64, + COUNT ( * ) ) * 55 + - - 76 * + 91
----
6916

query I rowsort
SELECT ALL - 50 + - + 86 col1
----
-136

query I rowsort
SELECT 74 * NULLIF ( 79, 78 ) + 63
----
5909

query I rowsort
SELECT + 51 + + + 16 AS col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1958
SELECT DISTINCT - + CAST( NULL AS SIGNED ), + 60 + 18 AS col1
----
NULL
78

skipif mysql # not compatible
query II rowsort label-1958
SELECT DISTINCT - + CAST ( NULL AS INTEGER ), + 60 + 18 AS col1
----
NULL
78

query I rowsort
SELECT ALL - 48 + 4 + 32 * 25 AS col2
----
756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1960
SELECT ALL + 90 + + - CASE - 97 WHEN + SUM( DISTINCT + + 64 ) - + + CAST( NULL AS SIGNED ) THEN NULL WHEN + 38 THEN 54 * - 83 * 31 + - ( + COUNT( * ) + 5 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL + 90 + + - CASE - 97 WHEN + SUM ( DISTINCT + + 64 ) - + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 38 THEN 54 * - 83 * 31 + - ( + COUNT ( * ) + 5 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - - NULLIF ( - - 72, - + 4 ) * + 94 - 29 + 19 col0
----
6758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1962
SELECT ALL - CAST( - - AVG ( - + 46 ) AS SIGNED ) + - COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL - CAST ( - - AVG ( - + 46 ) AS INTEGER ) + - COUNT ( * ) AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1963
SELECT DISTINCT - - 28 - - 77 + + 21 - + + 69 * 85 + + SUM( ALL + + 2 ) + + COUNT( * ) * - + CAST( + 5 AS SIGNED ) * + 69
----
-6082

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT - - 28 - - 77 + + 21 - + + 69 * 85 + + SUM ( ALL + + 2 ) + + COUNT ( * ) * - + CAST ( + 5 AS INTEGER ) * + 69
----
-6082

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT + + COALESCE ( - COUNT( * ), 60, + 99 ) * ( + 57 ) + COUNT( * ) + + 15 + - - 47
----
6

skipif mysql # not compatible
query I rowsort label-1964
SELECT + + COALESCE ( - COUNT ( * ), 60, + 99 ) * ( + 57 ) + COUNT ( * ) + + 15 + - - 47
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1965
SELECT 2 * - CAST( 66 AS SIGNED ) AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-1965
SELECT 2 * - CAST ( 66 AS INTEGER ) AS col1
----
-132

query I rowsort
SELECT - 89 + + 69 + - 24 * - 94 * - + 54 + 84 col0
----
-121760

query I rowsort
SELECT + ( + 93 ) * 70
----
6510

query II rowsort
SELECT - 5 AS col0, 56 AS col2
----
-5
56

query I rowsort
SELECT DISTINCT 77 * - 26 * + + ( - + 23 ) + + 72 / + + ( - 88 ) + + ( + 58 ) / + + CASE - 51 WHEN + 65 * 54 THEN 46 ELSE NULL END * - 80 col1
----
NULL

query II rowsort
SELECT DISTINCT 7 AS col2, - 54 + - 90
----
7
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1971
SELECT MIN( DISTINCT - 52 ) DIV - 19
----
2

skipif mysql # not compatible
query I rowsort label-1971
SELECT MIN ( DISTINCT - 52 ) / - 19
----
2

query I rowsort
SELECT ALL 19 * + 77
----
1463

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT DISTINCT 78 * + ( - COUNT( * ) ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT 78 * + ( - COUNT ( * ) ) AS col0
----
-78

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1975
SELECT ALL COUNT( * ) DIV + 48, + ( 0 ) AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-1975
SELECT ALL COUNT ( * ) / + 48, + ( 0 ) AS col1
----
0
0

query II rowsort
SELECT ALL 22, + 79 * 81 AS col1
----
22
6399

onlyif mysql # DIV for integer division: 
query I rowsort label-1977
SELECT 93 + - 33 DIV 42
----
93

skipif mysql # not compatible
query I rowsort label-1977
SELECT 93 + - 33 / 42
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-1978
SELECT 59, 50 - - - 75 + - 26 + + ( + 78 ) DIV + 95 * - 40 * + - 66 AS col2
----
59
-51

skipif mysql # not compatible
query II rowsort label-1978
SELECT 59, 50 - - - 75 + - 26 + + ( + 78 ) / + 95 * - 40 * + - 66 AS col2
----
59
-51

query I rowsort
SELECT 99 * 2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT DISTINCT 7 + + COUNT( * ) + + 36 + - 57 + - - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT 7 + + COUNT ( * ) + + 36 + - 57 + - - COUNT ( * )
----
-12

query I rowsort
SELECT 12 * + 11 * + 51 col1
----
6732

query II rowsort
SELECT - 34 AS col1, + 39 AS col1
----
-34
39

query I rowsort
SELECT ALL 59 * 3 AS col0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT SUM( DISTINCT + + ( + 77 ) ) + - 39 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1984
SELECT SUM ( DISTINCT + + ( + 77 ) ) + - 39 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT 71 + + + NULLIF ( + + 34, + MIN( ALL - - 40 ) * + 14 + + SUM( + + 83 ) ) * COUNT( * ) * + 59 AS col0
----
2077

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT 71 + + + NULLIF ( + + 34, + MIN ( ALL - - 40 ) * + 14 + + SUM ( + + 83 ) ) * COUNT ( * ) * + 59 AS col0
----
2077

onlyif mysql # aggregate syntax: 
query II rowsort label-1986
SELECT - 92 AS col2, - CASE - 32 WHEN MAX( - 95 ) * + 28 * + 27 + COUNT( * ) THEN NULL WHEN COALESCE ( - 69, - - NULLIF ( - 51, + 19 ) + 43, 56, 97 + - 61 ) + + 6 THEN - ( + 90 ) ELSE NULL END * 97
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-1986
SELECT - 92 AS col2, - CASE - 32 WHEN MAX ( - 95 ) * + 28 * + 27 + COUNT ( * ) THEN NULL WHEN COALESCE ( - 69, - - NULLIF ( - 51, + 19 ) + 43, 56, 97 + - 61 ) + + 6 THEN - ( + 90 ) ELSE NULL END * 97
----
-92
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1987
SELECT COUNT( * ) * - 42 * + - COALESCE ( 72, + COUNT( * ) * + + 52 DIV - - 45 ) AS col1
----
3024

skipif mysql # not compatible
query I rowsort label-1987
SELECT COUNT ( * ) * - 42 * + - COALESCE ( 72, + COUNT ( * ) * + + 52 / - - 45 ) AS col1
----
3024

query I rowsort
SELECT ALL 23 * 84
----
1932

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1989
SELECT ALL - CAST( NULL AS DECIMAL ) + 89 * + - COUNT( DISTINCT - 32 ) * + 86 + + ( 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL - CAST ( NULL AS REAL ) + 89 * + - COUNT ( DISTINCT - 32 ) * + 86 + + ( 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1990
SELECT + 3 AS col0, - SUM( + 63 )
----
3
-63

skipif mysql # not compatible
query II rowsort label-1990
SELECT + 3 AS col0, - SUM ( + 63 )
----
3
-63

query I rowsort
SELECT 58 * 93 + - 44 - + - NULLIF ( - 21, + + ( + - 46 ) * - 10 ) + - + 81 + - 95 AS col2
----
5153

query I rowsort
SELECT DISTINCT 0 + - 78 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT - COUNT( * ) * + 77 * - + 78 - - - 4 + + + 49 AS col0
----
6051

skipif mysql # not compatible
query I rowsort label-1993
SELECT - COUNT ( * ) * + 77 * - + 78 - - - 4 + + + 49 AS col0
----
6051

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT ALL - + 68 + - 9 DIV + 26 * + 85 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL - + 68 + - 9 / + 26 * + 85 AS col0
----
-68

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

query I rowsort
SELECT - - 14 * - + ( - 43 ) * + 25 - + 3 * - 19 * + 97 AS col2
----
20579

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT COUNT( * ) * - 34 * + 74 + + + 70 AS col1
----
-2446

skipif mysql # not compatible
query I rowsort label-1997
SELECT COUNT ( * ) * - 34 * + 74 + + + 70 AS col1
----
-2446

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1999
SELECT DISTINCT + - CAST( - + 18 AS SIGNED ) - 38 * + 87 + + 32 AS col2
----
-3256

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT + - CAST ( - + 18 AS INTEGER ) - 38 * + 87 + + 32 AS col2
----
-3256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2000
SELECT ALL + - 64 / - + 61 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL + - 64 / - + 61 * - CAST ( NULL AS INTEGER ) col2
----
NULL

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

query I rowsort
SELECT 37 * + - 27
----
-999

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

skipif mysql # not compatible
query II rowsort label-2003
SELECT ALL - 81, - COUNT ( * ) AS col2
----
-81
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT DISTINCT + + 13 * SUM( DISTINCT - 24 )
----
-312

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT + + 13 * SUM ( DISTINCT - 24 )
----
-312

query I rowsort
SELECT ALL - - 51 * - 99 AS col1
----
-5049

query II rowsort
SELECT + + 1, + 55 * + 22 * 19 AS col2
----
1
22990

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT + 59 * + - COUNT( * ) + + + 30
----
-29

skipif mysql # not compatible
query I rowsort label-2007
SELECT + 59 * + - COUNT ( * ) + + + 30
----
-29

query I rowsort
SELECT DISTINCT + 99 * + ( 84 ) + - - 74 AS col1
----
8390

onlyif mysql # aggregate syntax: 
query II rowsort label-2009
SELECT ALL MAX( ALL + 4 ) AS col1, + MAX( DISTINCT 19 )
----
4
19

skipif mysql # not compatible
query II rowsort label-2009
SELECT ALL MAX ( ALL + 4 ) AS col1, + MAX ( DISTINCT 19 )
----
4
19

query I rowsort
SELECT 58 + ( - 15 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2011
SELECT COUNT( ALL + COALESCE ( - + 1, - - CAST( + + ( - - 20 ) AS SIGNED ) * + 37 ) ) * 82
----
82

skipif mysql # not compatible
query I rowsort label-2011
SELECT COUNT ( ALL + COALESCE ( - + 1, - - CAST ( + + ( - - 20 ) AS INTEGER ) * + 37 ) ) * 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT ALL 66 + - CASE + + 59 WHEN + + 45 THEN + + ( + COUNT( * ) ) WHEN 18 THEN + 26 * + 44 * - MAX( - 86 ) END + 81 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL 66 + - CASE + + 59 WHEN + + 45 THEN + + ( + COUNT ( * ) ) WHEN 18 THEN + 26 * + 44 * - MAX ( - 86 ) END + 81 * 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT - ( - + COUNT( DISTINCT + 7 ) ) + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-2013
SELECT - ( - + COUNT ( DISTINCT + 7 ) ) + - 87
----
-86

query I rowsort
SELECT ALL 18 + - + 81 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT + COUNT( * ) + + 14 + + 70 col2
----
85

skipif mysql # not compatible
query I rowsort label-2015
SELECT + COUNT ( * ) + + 14 + + 70 col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2016
SELECT ALL - 66 + 11, COUNT( * ) AS col0, + 44 + + COALESCE ( 39, - 90 * - + 88 ) + + - CAST( + + 73 AS SIGNED ) col2
----
-55
1
10

skipif mysql # not compatible
query III rowsort label-2016
SELECT ALL - 66 + 11, COUNT ( * ) AS col0, + 44 + + COALESCE ( 39, - 90 * - + 88 ) + + - CAST ( + + 73 AS INTEGER ) col2
----
-55
1
10

query I rowsort
SELECT ALL ( + 23 ) + + 42 AS col1
----
65

query I rowsort
SELECT + 18 * 23 * - + 53
----
-21942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2019
SELECT ALL 82 + 48, CASE 83 WHEN + + 74 THEN - 33 + + CASE WHEN 21 NOT BETWEEN + - COALESCE ( + 25, + 13 * - NULLIF ( 41 + + 96 * - 26, + 87 * CAST( NULL AS SIGNED ) ), 98 + 8 * 22 ) * - 88 - 84 * + 2 AND ( ( AVG ( - 60 ) ) ) + - 77 * + 26 THEN + COUNT( * ) END + 31 ELSE NULL END AS col1
----
130
NULL

skipif mysql # not compatible
query II rowsort label-2019
SELECT ALL 82 + 48, CASE 83 WHEN + + 74 THEN - 33 + + CASE WHEN 21 NOT BETWEEN + - COALESCE ( + 25, + 13 * - NULLIF ( 41 + + 96 * - 26, + 87 * CAST ( NULL AS INTEGER ) ), 98 + 8 * 22 ) * - 88 - 84 * + 2 AND ( ( AVG ( - 60 ) ) ) + - 77 * + 26 THEN + COUNT ( * ) END + 31 ELSE NULL END AS col1
----
130
NULL

query II rowsort
SELECT + 94 - - 17 AS col0, - 80 * + + 53 * 91
----
111
-385840

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT - NULLIF ( + 80, - 33 * COUNT( * ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-2021
SELECT - NULLIF ( + 80, - 33 * COUNT ( * ) ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT DISTINCT COUNT( * ) + + 5 - + 24 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT COUNT ( * ) + + 5 - + 24 AS col0
----
-18

query I rowsort
SELECT + 82 * 98 AS col2
----
8036

query I rowsort
SELECT + 33 + - - 54 + 25 * - 10 * 17 + - + 97 AS col1
----
-4260

query II rowsort
SELECT ALL - 48 - + 48, - 24 col2
----
-96
-24

query I rowsort
SELECT + - ( 37 ) * - 76 * + 11 AS col1
----
30932

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT - - NULLIF ( - + 19, - - COUNT( DISTINCT + 54 ) + 41 )
----
-19

skipif mysql # not compatible
query I rowsort label-2027
SELECT - - NULLIF ( - + 19, - - COUNT ( DISTINCT + 54 ) + 41 )
----
-19

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2029
SELECT NULLIF ( - CASE 38 WHEN - CAST( NULL AS SIGNED ) THEN 1 END, + + COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2029
SELECT NULLIF ( - CASE 38 WHEN - CAST ( NULL AS INTEGER ) THEN 1 END, + + COUNT ( * ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2030
SELECT - + AVG ( + - CAST( - + 18 AS DECIMAL ) ) * + ( 40 ) + + + CASE 92 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 67 THEN + 97 + - 9 ELSE NULL END + 40 + + 91 * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT - + AVG ( + - CAST ( - + 18 AS REAL ) ) * + ( 40 ) + + + CASE 92 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 67 THEN + 97 + - 9 ELSE NULL END + 40 + + 91 * - 20
----
NULL

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

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

query I rowsort
SELECT ALL + 65 * 30
----
1950

query I rowsort
SELECT ALL 41 * - 15 + 67 + + + 4 + 78 * ( + - 62 ) * - 48 - 16 + NULLIF ( - 58, - 37 / + 22 + 68 ) col0
----
231510

query I rowsort
SELECT DISTINCT 96 * 80 + + 79
----
7759

query I rowsort
SELECT + 35 * - 58
----
-2030

query I rowsort
SELECT + 15 * - - 93 + - 7 + + 8 * - + 72
----
812

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2038
SELECT - 28 * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + 11 * + 60 - + 18 + + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT - 28 * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + 11 * + 60 - + 18 + + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2039
SELECT - 38 + - 99 + CASE CAST( NULL AS SIGNED ) WHEN - 95 / 1 * COUNT( * ) + - - 28 THEN + + 83 END * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT - 38 + - 99 + CASE CAST ( NULL AS INTEGER ) WHEN - 95 / 1 * COUNT ( * ) + - - 28 THEN + + 83 END * 73
----
NULL

query I rowsort
SELECT ALL - + ( 66 ) * + - 99
----
6534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2041
SELECT - COUNT( * ) + + - 58 + - 80 DIV 32 + + 21 DIV + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-2041
SELECT - COUNT ( * ) + + - 58 + - 80 / 32 + + 21 / + COUNT ( * )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT DISTINCT 37 DIV - 36 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT 37 / - 36 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2043
SELECT COUNT( * ), 53 * + - NULLIF ( - - 70, - 76 ) AS col1
----
1
-3710

skipif mysql # not compatible
query II rowsort label-2043
SELECT COUNT ( * ), 53 * + - NULLIF ( - - 70, - 76 ) AS col1
----
1
-3710

onlyif mysql # DIV for integer division: 
query I rowsort label-2044
SELECT + 78 DIV - - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2044
SELECT + 78 / - - 92 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2045
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) * + COUNT( * ) / + NULLIF ( + ( - 50 ), 36 ) * + 35 * 92 + - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) * + COUNT ( * ) / + NULLIF ( + ( - 50 ), 36 ) * + 35 * 92 + - 26 AS col2
----
NULL

query II rowsort
SELECT - 19 AS col1, + 46 AS col1
----
-19
46

query I rowsort
SELECT - 48 + - 72 + + + 49 * 11
----
419

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

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

query I rowsort
SELECT ALL + 35 + + 67 AS col2
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT DISTINCT NULLIF ( + MAX( ALL + 12 ), 44 - - COALESCE ( - SUM( ALL + 4 ), + ( + + COUNT( * ) ) * + 63 * + 39 + COALESCE ( - - 42, + CAST( NULL AS SIGNED ) - + NULLIF ( COUNT( * ), 25 * + COUNT( * ) ) * 49 ) ) - + COUNT( - 61 ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT NULLIF ( + MAX ( ALL + 12 ), 44 - - COALESCE ( - SUM ( ALL + 4 ), + ( + + COUNT ( * ) ) * + 63 * + 39 + COALESCE ( - - 42, + CAST ( NULL AS INTEGER ) - + NULLIF ( COUNT ( * ), 25 * + COUNT ( * ) ) * 49 ) ) - + COUNT ( - 61 ) ) AS col0
----
12

query I rowsort
SELECT DISTINCT + 26 * + 58
----
1508

onlyif mysql # DIV for integer division: 
query I rowsort label-2052
SELECT DISTINCT - 53 + - - 37 DIV - 41 * + + COALESCE ( + - 12, + 14 )
----
-53

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT - 53 + - - 37 / - 41 * + + COALESCE ( + - 12, + 14 )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-2053
SELECT 16, + SUM( ALL - 49 ) AS col1
----
16
-49

skipif mysql # not compatible
query II rowsort label-2053
SELECT 16, + SUM ( ALL - 49 ) AS col1
----
16
-49

query I rowsort
SELECT + 70 + - 82 + - - 64 * + ( + 49 ) AS col0
----
3124

query II rowsort
SELECT 21, - 44 AS col0
----
21
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT + COUNT( * ) + + 25 col1
----
26

skipif mysql # not compatible
query I rowsort label-2056
SELECT + COUNT ( * ) + + 25 col1
----
26

query I rowsort
SELECT - 58 * 29 * 74 AS col2
----
-124468

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

query I rowsort
SELECT ALL 70 * - 27 * + 6 AS col0
----
-11340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2060
SELECT ALL - COALESCE ( COALESCE ( + 31, + + 72 ), + MIN( - CAST( NULL AS SIGNED ) ) * - 74, + 9 ) - + - SUM( - - 97 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL - COALESCE ( COALESCE ( + 31, + + 72 ), + MIN ( - CAST ( NULL AS INTEGER ) ) * - 74, + 9 ) - + - SUM ( - - 97 ) AS col1
----
66

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2062
SELECT - 80 * 7 + - - NULLIF ( - 23, + + 19 + + 15 + + + 87 ) * COUNT( * ) + 93 + + 73 DIV ( SUM( - - 13 ) ) col0
----
-485

skipif mysql # not compatible
query I rowsort label-2062
SELECT - 80 * 7 + - - NULLIF ( - 23, + + 19 + + 15 + + + 87 ) * COUNT ( * ) + 93 + + 73 / ( SUM ( - - 13 ) ) col0
----
-485

onlyif mysql # aggregate syntax: 
query II rowsort label-2063
SELECT + - NULLIF ( 23, - 36 ), - AVG ( - 84 ) * + CASE - COUNT( * ) WHEN + 6 THEN + 38 + 22 + - + 52 + - - 58 END * ( MAX( DISTINCT 32 ) ) * - 71 + COUNT( * ) * + ( 32 * - COUNT( * ) ) + 49 + - 80 AS col1
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-2063
SELECT + - NULLIF ( 23, - 36 ), - AVG ( - 84 ) * + CASE - COUNT ( * ) WHEN + 6 THEN + 38 + 22 + - + 52 + - - 58 END * ( MAX ( DISTINCT 32 ) ) * - 71 + COUNT ( * ) * + ( 32 * - COUNT ( * ) ) + 49 + - 80 AS col1
----
-23
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT + 25 * + COUNT( * ) * + + 16 - 28
----
372

skipif mysql # not compatible
query I rowsort label-2065
SELECT + 25 * + COUNT ( * ) * + + 16 - 28
----
372

query I rowsort
SELECT + 9 * + 28
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT ALL + - MAX( - 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL + - MAX ( - 29 ) AS col1
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-2068
SELECT + 96 AS col0, 25 DIV + 54 + + ( ( + 18 ) )
----
96
18

skipif mysql # not compatible
query II rowsort label-2068
SELECT + 96 AS col0, 25 / + 54 + + ( ( + 18 ) )
----
96
18

query I rowsort
SELECT ALL 66 * - 74
----
-4884

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2071
SELECT ALL ( + 74 ) * + - 57 + - 77 + 40 - + COUNT( * ) - + + 94 * 9 * + + 28 col2, + 86 + - 42 AS col0
----
-27944
44

skipif mysql # not compatible
query II rowsort label-2071
SELECT ALL ( + 74 ) * + - 57 + - 77 + 40 - + COUNT ( * ) - + + 94 * 9 * + + 28 col2, + 86 + - 42 AS col0
----
-27944
44

query I rowsort
SELECT ( + - ( CASE 22 WHEN + 8 THEN - 92 + + 53 + - 4 END ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT 3 DIV - 97 * - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2073
SELECT 3 / - 97 * - 52 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2074
SELECT 74 * + - CAST( + - 73 AS SIGNED )
----
5402

skipif mysql # not compatible
query I rowsort label-2074
SELECT 74 * + - CAST ( + - 73 AS INTEGER )
----
5402

onlyif mysql # DIV for integer division: 
query I rowsort label-2075
SELECT 93 DIV 74 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2075
SELECT 93 / 74 AS col0
----
1

query I rowsort
SELECT ALL - 66 + - 92 AS col2
----
-158

query I rowsort
SELECT 99 * 3 AS col0
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2078
SELECT DISTINCT - NULLIF ( - NULLIF ( - 33, - CAST( NULL AS SIGNED ) * 47 / - COUNT( * ) / - 44 ), - 45 ) * - + 42 - COUNT( * ) + + COUNT( * ) col0
----
1386

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT - NULLIF ( - NULLIF ( - 33, - CAST ( NULL AS INTEGER ) * 47 / - COUNT ( * ) / - 44 ), - 45 ) * - + 42 - COUNT ( * ) + + COUNT ( * ) col0
----
1386

query I rowsort
SELECT 12 * - + ( - 33 )
----
396

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT ALL 83 DIV + 76
----
1

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL 83 / + 76
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT DISTINCT COUNT( * ) - - 73 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT COUNT ( * ) - - 73 AS col0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2082
SELECT ALL 0 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL 0 / + 79
----
0

query I rowsort
SELECT 89 * 74
----
6586

query I rowsort
SELECT ALL + COALESCE ( 2, + 55 * + + 41 ) - 72 * + 29 AS col0
----
-2086

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

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

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

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

query II rowsort
SELECT 18 + + 4 AS col0, + 36 AS col1
----
22
36

query I rowsort
SELECT ALL NULLIF ( - 21, + 54 ) - + 86 AS col0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT 27 + - MAX( - 78 )
----
105

skipif mysql # not compatible
query I rowsort label-2089
SELECT 27 + - MAX ( - 78 )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT DISTINCT - + MIN( ALL + + 69 ) * + - 74 col2
----
5106

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT - + MIN ( ALL + + 69 ) * + - 74 col2
----
5106

query I rowsort
SELECT ALL - 71 * + + 12 col1
----
-852

query I rowsort
SELECT 46 + - - ( - + 88 )
----
-42

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

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

query I rowsort
SELECT ALL - COALESCE ( + 96, + 41 ) AS col0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2095
SELECT 76 DIV + + 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2095
SELECT 76 / + + 39 AS col1
----
1

query I rowsort
SELECT ALL - - 94 + - 24 + + 6
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT - CASE - 78 WHEN - 49 * + 18 + COUNT( * ) THEN + COUNT( * ) WHEN - 23 + 38 THEN 58 ELSE + - 19 END + + 79 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-2097
SELECT - CASE - 78 WHEN - 49 * + 18 + COUNT ( * ) THEN + COUNT ( * ) WHEN - 23 + 38 THEN 58 ELSE + - 19 END + + 79 AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2098
SELECT ALL - - 77 DIV + COUNT( * ) - + 58 + 56 AS col1, + 89
----
75
89

skipif mysql # not compatible
query II rowsort label-2098
SELECT ALL - - 77 / + COUNT ( * ) - + 58 + 56 AS col1, + 89
----
75
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2099
SELECT + 93 DIV - 59
----
-1

skipif mysql # not compatible
query I rowsort label-2099
SELECT + 93 / - 59
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2100
SELECT DISTINCT - 22 + + 88 col2, + COUNT( - 26 )
----
66
1

skipif mysql # not compatible
query II rowsort label-2100
SELECT DISTINCT - 22 + + 88 col2, + COUNT ( - 26 )
----
66
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2101
SELECT DISTINCT 41 + - 63 AS col1, COUNT( * ) / - CASE + + 20 WHEN - COUNT( 45 ) THEN NULL ELSE CAST( NULL AS SIGNED ) END AS col1
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-2101
SELECT DISTINCT 41 + - 63 AS col1, COUNT ( * ) / - CASE + + 20 WHEN - COUNT ( 45 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END AS col1
----
-22
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2102
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + 36 * - 29 * - 42 + - 62 * + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + 36 * - 29 * - 42 + - 62 * + 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL - CASE + 48 WHEN + - 7 * - + ( + + MAX( 56 ) ) * 56 THEN + 23 + 97 ELSE NULL END + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL - CASE + 48 WHEN + - 7 * - + ( + + MAX ( 56 ) ) * 56 THEN + 23 + 97 ELSE NULL END + + 6
----
NULL

query I rowsort
SELECT 22 * 79 + + 41
----
1779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2105
SELECT ALL - ( + CASE + - COALESCE ( ( - + ( - 9 ) ), + AVG ( ALL 8 ) / + CAST( + ( - 54 ) AS SIGNED ) + - + MAX( 33 ) * - COUNT( * ) ) WHEN ( + 43 ) THEN 82 ELSE 69 END )
----
-69

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL - ( + CASE + - COALESCE ( ( - + ( - 9 ) ), + AVG ( ALL 8 ) / + CAST ( + ( - 54 ) AS INTEGER ) + - + MAX ( 33 ) * - COUNT ( * ) ) WHEN ( + 43 ) THEN 82 ELSE 69 END )
----
-69

query I rowsort
SELECT ALL 67 + - 14
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT + 46 * - COUNT( * ) + + - 49 * + 45 * 46 col0, COUNT( * ) * 67 + 52 - COUNT( DISTINCT - + 71 ) + + COUNT( * ) + + 55 AS col1
----
-101476
174

skipif mysql # not compatible
query II rowsort label-2107
SELECT + 46 * - COUNT ( * ) + + - 49 * + 45 * 46 col0, COUNT ( * ) * 67 + 52 - COUNT ( DISTINCT - + 71 ) + + COUNT ( * ) + + 55 AS col1
----
-101476
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2108
SELECT ALL - 34 + + COALESCE ( - COUNT( * ), + + 63 DIV - ( + 56 ) * 89 + - 29 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL - 34 + + COALESCE ( - COUNT ( * ), + + 63 / - ( + 56 ) * 89 + - 29 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT ALL - NULLIF ( - 8, - - ( SUM( DISTINCT 37 ) ) - + COUNT( * ) + - 82 + + 26 + COUNT( * ) * 83 * - 80 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL - NULLIF ( - 8, - - ( SUM ( DISTINCT 37 ) ) - + COUNT ( * ) + - 82 + + 26 + COUNT ( * ) * 83 * - 80 ) AS col2
----
8

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2112
SELECT + 72, + 7 + + 0 AS col1, 87 * CAST( - - 78 AS SIGNED ) + - 20 + - 40 AS col0
----
72
7
6726

skipif mysql # not compatible
query III rowsort label-2112
SELECT + 72, + 7 + + 0 AS col1, 87 * CAST ( - - 78 AS INTEGER ) + - 20 + - 40 AS col0
----
72
7
6726

query I rowsort
SELECT DISTINCT 42 * + 56
----
2352

query I rowsort
SELECT ALL 59 * + 58
----
3422

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2115
SELECT 55, CAST( NULL AS SIGNED ) AS col1
----
55
NULL

skipif mysql # not compatible
query II rowsort label-2115
SELECT 55, CAST ( NULL AS INTEGER ) AS col1
----
55
NULL

query I rowsort
SELECT 99 * - 66
----
-6534

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

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

query I rowsort
SELECT 47 + 1
----
48

query II rowsort
SELECT ALL 40 AS col1, + 12 * + 21
----
40
252

query I rowsort
SELECT ALL 41 * + 3
----
123

query II rowsort
SELECT ALL 51 AS col2, + 32 AS col2
----
51
32

query I rowsort
SELECT DISTINCT + 78 * + + 87
----
6786

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

query I rowsort
SELECT - 32 * 63 * + + 68 * - 44 AS col1
----
6031872

query II rowsort
SELECT ALL + 17 + - 8 + 73 AS col0, - 23 AS col0
----
82
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2126
SELECT ALL - - NULLIF ( + 44, ( - 86 ) ) + - 64 + - 51 + - CAST( - 16 AS SIGNED ) + - 12 * + 65 * + - 44 - - - 8 + + 13 + - COUNT( * ) * - ( MAX( - 36 ) ) DIV + 88 AS col2
----
34270

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL - - NULLIF ( + 44, ( - 86 ) ) + - 64 + - 51 + - CAST ( - 16 AS INTEGER ) + - 12 * + 65 * + - 44 - - - 8 + + 13 + - COUNT ( * ) * - ( MAX ( - 36 ) ) / + 88 AS col2
----
34270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2127
SELECT + MAX( - CAST( + - 56 AS SIGNED ) )
----
56

skipif mysql # not compatible
query I rowsort label-2127
SELECT + MAX ( - CAST ( + - 56 AS INTEGER ) )
----
56

query I rowsort
SELECT 22 + + 18 AS col1
----
40

query I rowsort
SELECT ALL 47 + 66 + - 63 AS col1
----
50

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2131
SELECT ALL 60 + - COUNT( - 27 ) + - CAST( NULL AS SIGNED ) + + COUNT( * ) + - 63 * - ( + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL 60 + - COUNT ( - 27 ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - 63 * - ( + 37 )
----
NULL

query I rowsort
SELECT ALL - 76 + - 75 + - 21 AS col0
----
-172

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

query II rowsort
SELECT + 59 AS col2, 39 AS col2
----
59
39

query I rowsort
SELECT - 84 * + - 59 AS col0
----
4956

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT COALESCE ( 69, + 56, + NULLIF ( ( + 65 ), MAX( DISTINCT + 91 ) * + - 67 + + 81 ) )
----
69

skipif mysql # not compatible
query I rowsort label-2136
SELECT COALESCE ( 69, + 56, + NULLIF ( ( + 65 ), MAX ( DISTINCT + 91 ) * + - 67 + + 81 ) )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2137
SELECT 84 DIV - COUNT( * ) - - - MIN( CAST( - 37 AS SIGNED ) ) col2
----
-47

skipif mysql # not compatible
query I rowsort label-2137
SELECT 84 / - COUNT ( * ) - - - MIN ( CAST ( - 37 AS INTEGER ) ) col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2138
SELECT DISTINCT + 93 DIV NULLIF ( + - SUM( - 13 ), 2 )
----
7

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT + 93 / NULLIF ( + - SUM ( - 13 ), 2 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2139
SELECT ALL + 67 AS col1, - CAST( - ( - - CAST( NULL AS SIGNED ) ) AS SIGNED ) * - 4
----
67
NULL

skipif mysql # not compatible
query II rowsort label-2139
SELECT ALL + 67 AS col1, - CAST ( - ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - 4
----
67
NULL

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

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

query I rowsort
SELECT ALL + 76 * - 24 AS col2
----
-1824

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - ( + SUM( - + 65 ) ) * + 79 AS col2
----
5135

skipif mysql # not compatible
query I rowsort label-2144
SELECT - ( + SUM ( - + 65 ) ) * + 79 AS col2
----
5135

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT + 66 * + 82 - SUM( - - 92 )
----
5320

skipif mysql # not compatible
query I rowsort label-2146
SELECT + 66 * + 82 - SUM ( - - 92 )
----
5320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2147
SELECT DISTINCT ( COALESCE ( + + ( + - 5 ), + + MAX( 70 ) ) ) DIV 73 + - + 15 - 79 + + + 53 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT ( COALESCE ( + + ( + - 5 ), + + MAX ( 70 ) ) ) / 73 + - + 15 - 79 + + + 53 AS col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2148
SELECT - 18 DIV - - 95 col0, + ( + - COUNT( * ) ) + - - 63 * 12 AS col1
----
0
755

skipif mysql # not compatible
query II rowsort label-2148
SELECT - 18 / - - 95 col0, + ( + - COUNT ( * ) ) + - - 63 * 12 AS col1
----
0
755

query II rowsort
SELECT DISTINCT + 85 AS col0, 89
----
85
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2150
SELECT ALL + 92, COUNT( * ) DIV COUNT( * ) AS col2
----
92
1

skipif mysql # not compatible
query II rowsort label-2150
SELECT ALL + 92, COUNT ( * ) / COUNT ( * ) AS col2
----
92
1

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

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

query I rowsort
SELECT DISTINCT 41 * - 43 * - + 10 AS col0
----
17630

query II rowsort
SELECT ALL 95, - COALESCE ( 2, + - 73, 48, + + 40 * - + 36 * - 9 ) - - 15 AS col2
----
95
13

query I rowsort
SELECT - 28 * - 60 * - + 33 - + 10 AS col0
----
-55450

query II rowsort
SELECT ALL 97 AS col1, + 37 * - - 82
----
97
3034

query I rowsort
SELECT - 76 + - + 20 AS col1
----
-96

query II rowsort
SELECT + 7 AS col2, 13 + - - 70 + + 12
----
7
95

query I rowsort
SELECT ALL 42 * 32 - 59
----
1285

query I rowsort
SELECT 74 * - 88 * + - 37 + + 54 col2
----
240998

query II rowsort
SELECT + 57, + NULLIF ( - CASE 60 WHEN 54 + 86 THEN 54 * - + 79 + - 40 ELSE NULL END, - 73 ) col2
----
57
NULL

query II rowsort
SELECT - - NULLIF ( - + 95, - 86 * + + 0 ) AS col0, 3 + + - 7 * 28
----
-95
-193

query I rowsort
SELECT DISTINCT - 47 + - 73
----
-120

query I rowsort
SELECT ALL - 88 + - + 98
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT + + 8 + COUNT( + 3 ) + + + 50 * + 56 AS col2
----
2809

skipif mysql # not compatible
query I rowsort label-2164
SELECT + + 8 + COUNT ( + 3 ) + + + 50 * + 56 AS col2
----
2809

query I rowsort
SELECT DISTINCT - 44 * + 25 AS col2
----
-1100

query I rowsort
SELECT DISTINCT - 39 + - 22 AS col1
----
-61

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2168
SELECT DISTINCT - CASE 23 WHEN - CAST( NULL AS SIGNED ) + COUNT( * ) * + - 76 + + - COALESCE ( - 89, 98 + + - 53, + 16 ) THEN 25 ELSE 30 END
----
-30

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT - CASE 23 WHEN - CAST ( NULL AS INTEGER ) + COUNT ( * ) * + - 76 + + - COALESCE ( - 89, 98 + + - 53, + 16 ) THEN 25 ELSE 30 END
----
-30

query I rowsort
SELECT DISTINCT + + 77 + + 27 + + 80
----
184

query I rowsort
SELECT ALL - 47 + 88 col1
----
41

query II rowsort
SELECT + 32 + - + 5 AS col1, + 13
----
27
13

onlyif mysql # DIV for integer division: 
query I rowsort label-2172
SELECT ALL 72 DIV - + 61
----
-1

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL 72 / - + 61
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2174
SELECT - + 8 AS col2, - CAST( - COUNT( * ) AS SIGNED ) * - 34
----
-8
-34

skipif mysql # not compatible
query II rowsort label-2174
SELECT - + 8 AS col2, - CAST ( - COUNT ( * ) AS INTEGER ) * - 34
----
-8
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2175
SELECT + + COUNT( * ) + - + CAST( - + NULLIF ( + 82, - + AVG ( - + 67 ) + 14 * + + 41 / + COUNT( - CAST( - 87 AS SIGNED ) ) ) AS SIGNED ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-2175
SELECT + + COUNT ( * ) + - + CAST ( - + NULLIF ( + 82, - + AVG ( - + 67 ) + 14 * + + 41 / + COUNT ( - CAST ( - 87 AS INTEGER ) ) ) AS INTEGER ) AS col0
----
83

query I rowsort
SELECT + - 32 + - - ( + + 13 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT ALL + - NULLIF ( 13, + 13 / - + SUM( ALL 22 ) - 17 )
----
-13

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL + - NULLIF ( 13, + 13 / - + SUM ( ALL 22 ) - 17 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT CAST( - - 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-2178
SELECT CAST ( - - 61 AS INTEGER )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2179
SELECT DISTINCT + MIN( DISTINCT - ( + 3 ) ) AS col2, - 86 DIV 82 AS col2
----
-3
-1

skipif mysql # not compatible
query II rowsort label-2179
SELECT DISTINCT + MIN ( DISTINCT - ( + 3 ) ) AS col2, - 86 / 82 AS col2
----
-3
-1

query I rowsort
SELECT DISTINCT 66 * - - 88 * - 13
----
-75504

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

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

query II rowsort
SELECT - 54 + + 82 AS col1, + 95 AS col0
----
28
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2183
SELECT ( - - 84 ), COALESCE ( + + 68, 90 * + 59 + + 67 DIV - 23 + - - 77 ) * + 60 + - COUNT( * ) col2
----
84
4079

skipif mysql # not compatible
query II rowsort label-2183
SELECT ( - - 84 ), COALESCE ( + + 68, 90 * + 59 + + 67 / - 23 + - - 77 ) * + 60 + - COUNT ( * ) col2
----
84
4079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2184
SELECT - 42 * COUNT( * ) AS col2, + NULLIF ( 80, - 28 * + 59 / + COALESCE ( + CAST( NULL AS SIGNED ), MIN( + + 9 ), + CAST( NULL AS SIGNED ) * CAST( + - 22 AS DECIMAL ) * - 5 + - 35 * + 46 + - COUNT( * ) ) + - 3 * - 16 ) * + 34
----
-42
2720

skipif mysql # not compatible
query II rowsort label-2184
SELECT - 42 * COUNT ( * ) AS col2, + NULLIF ( 80, - 28 * + 59 / + COALESCE ( + CAST ( NULL AS INTEGER ), MIN ( + + 9 ), + CAST ( NULL AS INTEGER ) * CAST ( + - 22 AS REAL ) * - 5 + - 35 * + 46 + - COUNT ( * ) ) + - 3 * - 16 ) * + 34
----
-42
2720

query I rowsort
SELECT - 48 * + 37 * + 36
----
-63936

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

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

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

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

query II rowsort
SELECT ALL + 18 * - 31, ( - 98 ) AS col0
----
-558
-98

query I rowsort
SELECT - 12 + - ( + 10 )
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT ALL + 45 DIV 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL + 45 / 64 AS col0
----
0

query I rowsort
SELECT - 5 + 36 AS col0
----
31

query I rowsort
SELECT ALL + ( + 76 ) * + ( + + ( + 22 ) )
----
1672

onlyif mysql # aggregate syntax: 
query II rowsort label-2193
SELECT + SUM( ( 0 ) ) * + 71 + + ( + ( - + 62 ) ) + - 95 + + + 67 * + 87 AS col0, 15 * 3 AS col1
----
5672
45

skipif mysql # not compatible
query II rowsort label-2193
SELECT + SUM ( ( 0 ) ) * + 71 + + ( + ( - + 62 ) ) + - 95 + + + 67 * + 87 AS col0, 15 * 3 AS col1
----
5672
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL + COUNT( * ) * + 80 + - 4
----
76

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL + COUNT ( * ) * + 80 + - 4
----
76

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

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

query I rowsort
SELECT ALL + 24 * + + 24 + - + 70
----
506

query I rowsort
SELECT - + 12 * + 14
----
-168

query I rowsort
SELECT DISTINCT + 38 * 65 * - 29 + - 78 + - 88
----
-71796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2200
SELECT + + CAST( 27 AS SIGNED ) * ( + ( + + 99 ) ) - - + 23 + + 87 AS col0
----
2783

skipif mysql # not compatible
query I rowsort label-2200
SELECT + + CAST ( 27 AS INTEGER ) * ( + ( + + 99 ) ) - - + 23 + + 87 AS col0
----
2783

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL + MIN( + + 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL + MIN ( + + 62 ) AS col1
----
62

query I rowsort
SELECT DISTINCT 60 * 70
----
4200

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2204
SELECT CAST( 17 AS SIGNED ) * + + 89 AS col2
----
1513

skipif mysql # not compatible
query I rowsort label-2204
SELECT CAST ( 17 AS INTEGER ) * + + 89 AS col2
----
1513

query I rowsort
SELECT DISTINCT + + 16 * 64
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT 0 * - 9 + + ( + MAX( - ( ( + 60 ) ) ) )
----
-60

skipif mysql # not compatible
query I rowsort label-2206
SELECT 0 * - 9 + + ( + MAX ( - ( ( + 60 ) ) ) )
----
-60

query I rowsort
SELECT ALL 72 * 98 AS col0
----
7056

onlyif mysql # DIV for integer division: 
query I rowsort label-2208
SELECT DISTINCT 19 DIV 70 DIV 11
----
0

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT 19 / 70 / 11
----
0

query I rowsort
SELECT ALL 36 * 79 AS col2
----
2844

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT DISTINCT COALESCE ( + ( - 2 ), - MIN( ALL - 31 ) + + 77 * - + COUNT( * ) * COUNT( * ) ) * - ( - 65 )
----
-130

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT COALESCE ( + ( - 2 ), - MIN ( ALL - 31 ) + + 77 * - + COUNT ( * ) * COUNT ( * ) ) * - ( - 65 )
----
-130

query I rowsort
SELECT DISTINCT 71 * 14
----
994

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT ALL ( COUNT( * ) ) * - + 8 * + + 6 col1
----
-48

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL ( COUNT ( * ) ) * - + 8 * + + 6 col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2213
SELECT DISTINCT + ( 4 ) + + 28 AS col0, 64 * - CAST( NULL AS SIGNED )
----
32
NULL

skipif mysql # not compatible
query II rowsort label-2213
SELECT DISTINCT + ( 4 ) + + 28 AS col0, 64 * - CAST ( NULL AS INTEGER )
----
32
NULL

query II rowsort
SELECT ALL - 98, 47 col2
----
-98
47

query I rowsort
SELECT 37 * + - 79
----
-2923

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

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

query I rowsort
SELECT 62 * + 97 * - 41
----
-246574

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT - COALESCE ( - - 72, + 70, - 97, + 12 + - 79 - 77 DIV + 23 ) * - 97 + - + 47 - - 47 AS col0
----
6984

skipif mysql # not compatible
query I rowsort label-2218
SELECT - COALESCE ( - - 72, + 70, - 97, + 12 + - 79 - 77 / + 23 ) * - 97 + - + 47 - - 47 AS col0
----
6984

query I rowsort
SELECT 43 - - 79 + ( 52 )
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2220
SELECT + + 40 AS col1, ( + CAST( - 38 AS SIGNED ) ) AS col1
----
40
-38

skipif mysql # not compatible
query II rowsort label-2220
SELECT + + 40 AS col1, ( + CAST ( - 38 AS INTEGER ) ) AS col1
----
40
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT DISTINCT - MIN( - ( + 14 ) )
----
14

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT - MIN ( - ( + 14 ) )
----
14

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2223
SELECT + ( ( + + 1 ) ), 75 DIV + + 79 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-2223
SELECT + ( ( + + 1 ) ), 75 / + + 79 AS col1
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2224
SELECT DISTINCT - CAST( + COUNT( DISTINCT 82 ) AS SIGNED ) AS col1, + 47 + COALESCE ( + 46, 92 * + 34 + + 66 ) AS col0
----
-1
93

skipif mysql # not compatible
query II rowsort label-2224
SELECT DISTINCT - CAST ( + COUNT ( DISTINCT 82 ) AS INTEGER ) AS col1, + 47 + COALESCE ( + 46, 92 * + 34 + + 66 ) AS col0
----
-1
93

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2226
SELECT COUNT( * ) * - 24 * 36 - - + 16 * ( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) * + 62 * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT COUNT ( * ) * - 24 * 36 - - + 16 * ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * + 62 * - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT ALL - 95 * SUM( + - 71 )
----
6745

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL - 95 * SUM ( + - 71 )
----
6745

query I rowsort
SELECT ALL - 45 - - 94
----
49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-2229
SELECT ALL - CAST( - 68 AS SIGNED ) DIV - - 12 AS col2, 88 DIV 61 * CAST( NULL AS SIGNED ), - 5 col2
----
5
NULL
-5

skipif mysql # not compatible
query III rowsort label-2229
SELECT ALL - CAST ( - 68 AS INTEGER ) / - - 12 AS col2, 88 / 61 * CAST ( NULL AS INTEGER ), - 5 col2
----
5
NULL
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2230
SELECT - 50 + + COUNT( * ) * 14, - 7 + + 28 AS col1
----
-36
21

skipif mysql # not compatible
query II rowsort label-2230
SELECT - 50 + + COUNT ( * ) * 14, - 7 + + 28 AS col1
----
-36
21

query I rowsort
SELECT ALL - + 51 - - 17 col1
----
-34

query II rowsort
SELECT 84 + + + 95 + - - 69 + 44 * 21 * - 95 AS col0, CASE - 56 WHEN 70 THEN NULL WHEN + ( + 11 ) THEN - 43 + - NULLIF ( - 8, - + 6 + 68 ) END AS col1
----
-87532
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2234
SELECT ALL + NULLIF ( CAST( + 65 AS SIGNED ), + 35 * + 33 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL + NULLIF ( CAST ( + 65 AS INTEGER ), + 35 * + 33 ) AS col1
----
65

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2236
SELECT DISTINCT + 62 * - + CAST( NULL AS DECIMAL ) * - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT + 62 * - + CAST ( NULL AS REAL ) * - 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT ALL 78 * + MIN( DISTINCT 94 ) * 24 * + + 2
----
351936

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL 78 * + MIN ( DISTINCT 94 ) * 24 * + + 2
----
351936

query I rowsort
SELECT DISTINCT 95 * 35 AS col1
----
3325

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT 8 + - COUNT( DISTINCT - - 4 ) + + 74 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-2239
SELECT 8 + - COUNT ( DISTINCT - - 4 ) + + 74 AS col2
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL MIN( - 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL MIN ( - 18 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT SUM( + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2242
SELECT SUM ( + 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT ALL - MIN( + 2 ) * 91 + + COUNT( * )
----
-181

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL - MIN ( + 2 ) * 91 + + COUNT ( * )
----
-181

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT ALL 83 DIV + - ( - 19 )
----
4

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL 83 / + - ( - 19 )
----
4

query I rowsort
SELECT ALL + 2 * + 76 + 91 - - + 39 * 97 * - + 27 col1
----
-101898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2246
SELECT 45 * + 17 - 47 - 35 AS col0, + CASE + - COUNT( * ) WHEN COUNT( * ) * - - 24 - 14 - - + COALESCE ( 66, + 12, + NULLIF ( - 31, - + ( + + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) ) ) ) - - 90 THEN 83 + 48 END
----
683
NULL

skipif mysql # not compatible
query II rowsort label-2246
SELECT 45 * + 17 - 47 - 35 AS col0, + CASE + - COUNT ( * ) WHEN COUNT ( * ) * - - 24 - 14 - - + COALESCE ( 66, + 12, + NULLIF ( - 31, - + ( + + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) ) ) - - 90 THEN 83 + 48 END
----
683
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2247
SELECT + MIN( DISTINCT + - 85 ) AS col0, 99 + + 71 * - + 64 * + - 57 - - + 85 - ( - 10 ) AS col0
----
-85
259202

skipif mysql # not compatible
query II rowsort label-2247
SELECT + MIN ( DISTINCT + - 85 ) AS col0, 99 + + 71 * - + 64 * + - 57 - - + 85 - ( - 10 ) AS col0
----
-85
259202

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2249
SELECT + ( + + ( COUNT( * ) ) ) DIV - COUNT( * ) - - 46 * + 58 * 92
----
245455

skipif mysql # not compatible
query I rowsort label-2249
SELECT + ( + + ( COUNT ( * ) ) ) / - COUNT ( * ) - - 46 * + 58 * 92
----
245455

onlyif mysql # aggregate syntax: 
query II rowsort label-2250
SELECT ALL + 86 * 56 + - - COUNT( + 80 ) col1, 73
----
4817
73

skipif mysql # not compatible
query II rowsort label-2250
SELECT ALL + 86 * 56 + - - COUNT ( + 80 ) col1, 73
----
4817
73

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

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

query I rowsort
SELECT 33 + + 48
----
81

query I rowsort
SELECT DISTINCT 82 * + NULLIF ( + + 65, + + 46 )
----
5330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT 78 - - CAST( - + 31 AS SIGNED ) col0
----
47

skipif mysql # not compatible
query I rowsort label-2254
SELECT 78 - - CAST ( - + 31 AS INTEGER ) col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT DISTINCT 58 * + COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT 58 * + COUNT ( * ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2256
SELECT ALL 17 * - - 88, - COUNT( * ) col0
----
1496
-1

skipif mysql # not compatible
query II rowsort label-2256
SELECT ALL 17 * - - 88, - COUNT ( * ) col0
----
1496
-1

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

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL - SUM ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + ( 81 ) + + 79 + 37 + 95 * 16 * + 44 * + 43
----
2876037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2259
SELECT ALL - 10 + - CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT 97 * + - 73 AS col0
----
-7081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2261
SELECT - COUNT( * ) + + 79 col0, + NULLIF ( + 29, + CAST( NULL AS SIGNED ) ) AS col2
----
78
29

skipif mysql # not compatible
query II rowsort label-2261
SELECT - COUNT ( * ) + + 79 col0, + NULLIF ( + 29, + CAST ( NULL AS INTEGER ) ) AS col2
----
78
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2262
SELECT - 68 + + COUNT( * ) AS col0, - 33 + + 21 - + - 51 AS col2, 25 DIV + + 51 + - 26
----
-67
39
-26

skipif mysql # not compatible
query III rowsort label-2262
SELECT - 68 + + COUNT ( * ) AS col0, - 33 + + 21 - + - 51 AS col2, 25 / + + 51 + - 26
----
-67
39
-26

query II rowsort
SELECT - 82 + + 27 AS col2, 73 AS col1
----
-55
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2264
SELECT ALL - - CASE + CAST( + 4 AS SIGNED ) WHEN - SUM( - 6 ) THEN + 38 END * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL - - CASE + CAST ( + 4 AS INTEGER ) WHEN - SUM ( - 6 ) THEN + 38 END * - 14
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2265
SELECT - NULLIF ( + - COUNT( * ), + ( + 95 ) ) AS col1, 20 + + - 86 + 31 + + 32 + 85 + + + 76 * - 98 + COUNT( * ) * + COUNT( * ) DIV 40 * 3 AS col1
----
1
-7366

skipif mysql # not compatible
query II rowsort label-2265
SELECT - NULLIF ( + - COUNT ( * ), + ( + 95 ) ) AS col1, 20 + + - 86 + 31 + + 32 + 85 + + + 76 * - 98 + COUNT ( * ) * + COUNT ( * ) / 40 * 3 AS col1
----
1
-7366

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2267
SELECT - CAST( + SUM( + 83 ) AS SIGNED ) DIV 72 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-2267
SELECT - CAST ( + SUM ( + 83 ) AS INTEGER ) / 72 / + 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2268
SELECT + 15 * - 97 + + 6 + 51, CAST( - 67 AS SIGNED ) / + 22 * + 95 * - 54 + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * - 17 + - - 6 + + - 49 * - ( + 16 ) / - 40 AS col0
----
-1398
NULL

skipif mysql # not compatible
query II rowsort label-2268
SELECT + 15 * - 97 + + 6 + 51, CAST ( - 67 AS INTEGER ) / + 22 * + 95 * - 54 + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 17 + - - 6 + + - 49 * - ( + 16 ) / - 40 AS col0
----
-1398
NULL

query I rowsort
SELECT - - 61 * + 21
----
1281

query I rowsort
SELECT ALL COALESCE ( + 40, 75 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT DISTINCT CASE WHEN ( COUNT( * ) ) IS NULL THEN NULL ELSE CASE + 21 WHEN - - 44 * + - ( + 48 ) + 72 THEN + 16 WHEN 47 THEN NULL END + + + 94 + 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT CASE WHEN ( COUNT ( * ) ) IS NULL THEN NULL ELSE CASE + 21 WHEN - - 44 * + - ( + 48 ) + 72 THEN + 16 WHEN 47 THEN NULL END + + + 94 + 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL - COUNT( * ) + - 5 - + ( - 88 ) - - COUNT( * ) * - 67
----
15

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL - COUNT ( * ) + - 5 - + ( - 88 ) - - COUNT ( * ) * - 67
----
15

query I rowsort
SELECT - 19 - - 97
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2274
SELECT ALL + 85 DIV - + 98 col0
----
0

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL + 85 / - + 98 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2275
SELECT DISTINCT 24 + MIN( - 4 ) AS col1, COALESCE ( + + COUNT( * ), 89 ) + + + 67 + + COUNT( * ) * + 85 col1
----
20
153

skipif mysql # not compatible
query II rowsort label-2275
SELECT DISTINCT 24 + MIN ( - 4 ) AS col1, COALESCE ( + + COUNT ( * ), 89 ) + + + 67 + + COUNT ( * ) * + 85 col1
----
20
153

query I rowsort
SELECT DISTINCT 42 * + 70 AS col2
----
2940

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT DISTINCT - COUNT( * ) + + - 23 * + MAX( + - 66 ) - + CASE + COUNT( * ) WHEN - + 92 + - + 76 + + ( - COUNT( * ) ) / - 53 THEN NULL WHEN - ( 48 ) THEN 95 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT - COUNT ( * ) + + - 23 * + MAX ( + - 66 ) - + CASE + COUNT ( * ) WHEN - + 92 + - + 76 + + ( - COUNT ( * ) ) / - 53 THEN NULL WHEN - ( 48 ) THEN 95 ELSE NULL END
----
NULL

query II rowsort
SELECT - 24, + CASE - ( 29 ) WHEN + 59 THEN NULL ELSE 15 END col1
----
-24
15

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2280
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - ( + MIN( DISTINCT + - 12 ) ) / 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - ( + MIN ( DISTINCT + - 12 ) ) / 23 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT ( CASE + 58 WHEN COUNT( * ) THEN NULL WHEN - 71 * + 50 THEN - 8 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT ( CASE + 58 WHEN COUNT ( * ) THEN NULL WHEN - 71 * + 50 THEN - 8 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL 31 * 3 + + + 96 + - + 59 * - 4 * 79 AS col0
----
18833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2284
SELECT ( + COALESCE ( - COALESCE ( + 2, - + ( - 46 ), + 48 ), SUM( + 25 ) DIV + + 81 DIV + 12 * - COUNT( * ) ) )
----
-2

skipif mysql # not compatible
query I rowsort label-2284
SELECT ( + COALESCE ( - COALESCE ( + 2, - + ( - 46 ), + 48 ), SUM ( + 25 ) / + + 81 / + 12 * - COUNT ( * ) ) )
----
-2

query I rowsort
SELECT ALL 41 * + 17 AS col2
----
697

query I rowsort
SELECT - 49 * - 6 * - 90 + 29 AS col1
----
-26431

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT + MIN( 79 ) col0
----
79

skipif mysql # not compatible
query I rowsort label-2287
SELECT + MIN ( 79 ) col0
----
79

query I rowsort
SELECT ALL 11 * - 18 + ( - + 94 )
----
-292

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT + COUNT( * ) * 3 col1
----
3

skipif mysql # not compatible
query I rowsort label-2289
SELECT + COUNT ( * ) * 3 col1
----
3

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

query I rowsort
SELECT + - 6 col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2292
SELECT - - MIN( DISTINCT + 75 ) * COUNT( * ), 72 + + 3
----
75
75

skipif mysql # not compatible
query II rowsort label-2292
SELECT - - MIN ( DISTINCT + 75 ) * COUNT ( * ), 72 + + 3
----
75
75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2295
SELECT + - COALESCE ( + 4, + 21 ) DIV 32 col1
----
0

skipif mysql # not compatible
query I rowsort label-2295
SELECT + - COALESCE ( + 4, + 21 ) / 32 col1
----
0

query I rowsort
SELECT ALL + 54 * - + 53 - - 92 + + 91 AS col2
----
-2679

onlyif mysql # DIV for integer division: 
query I rowsort label-2297
SELECT + 28 * 83 + - 38 + + 6 + + - 23 DIV - 28 + - - 27 * - 27
----
1563

skipif mysql # not compatible
query I rowsort label-2297
SELECT + 28 * 83 + - 38 + + 6 + + - 23 / - 28 + - - 27 * - 27
----
1563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2298
SELECT DISTINCT + COALESCE ( CAST( NULL AS SIGNED ), + 27 * - 30 * 32, 86 ) AS col0
----
-25920

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT + COALESCE ( CAST ( NULL AS INTEGER ), + 27 * - 30 * 32, 86 ) AS col0
----
-25920

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2299
SELECT + - CAST( 60 AS SIGNED ) * + + 84, + 39 + 4 AS col1
----
-5040
43

skipif mysql # not compatible
query II rowsort label-2299
SELECT + - CAST ( 60 AS INTEGER ) * + + 84, + 39 + 4 AS col1
----
-5040
43

query I rowsort
SELECT + 99 + + 39 + - 74 + 33
----
97

query I rowsort
SELECT - 69 - + 17
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL + MAX( - + 57 ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL + MAX ( - + 57 ) col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT - + NULLIF ( + - 84, 8 * - - COUNT( * ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2303
SELECT - + NULLIF ( + - 84, 8 * - - COUNT ( * ) ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT + COUNT( * ) + 72 - + ( + - 30 ) + - COUNT( + 44 )
----
102

skipif mysql # not compatible
query I rowsort label-2304
SELECT + COUNT ( * ) + 72 - + ( + - 30 ) + - COUNT ( + 44 )
----
102

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2306
SELECT - NULLIF ( + + 79, CASE + 30 WHEN - 87 * - 34 - + 57 THEN 6 * - ( MAX( 11 ) ) - CAST( NULL AS SIGNED ) * - 16 * 13 + 55 + - 13 / - 55 + - 0 * - - 13 * 7 + 42 WHEN 12 THEN - 35 * + 85 WHEN + 68 THEN NULL END ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-2306
SELECT - NULLIF ( + + 79, CASE + 30 WHEN - 87 * - 34 - + 57 THEN 6 * - ( MAX ( 11 ) ) - CAST ( NULL AS INTEGER ) * - 16 * 13 + 55 + - 13 / - 55 + - 0 * - - 13 * 7 + 42 WHEN 12 THEN - 35 * + 85 WHEN + 68 THEN NULL END ) AS col0
----
-79

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

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL - COUNT ( * ) + - 57 AS col2
----
-58

query I rowsort
SELECT + 96 + 85 * 68 col1
----
5876

onlyif mysql # DIV for integer division: 
query I rowsort label-2309
SELECT - 72 + + 2 DIV - 30 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-2309
SELECT - 72 + + 2 / - 30 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-2310
SELECT ALL - 27 + COUNT( * ) AS col1, - 2 AS col2
----
-26
-2

skipif mysql # not compatible
query II rowsort label-2310
SELECT ALL - 27 + COUNT ( * ) AS col1, - 2 AS col2
----
-26
-2

query I rowsort
SELECT ALL - 18 + - 64
----
-82

query I rowsort
SELECT DISTINCT 12 + + 73 * - - 37 AS col2
----
2713

query II rowsort
SELECT 86 AS col1, - 31 - - 67 AS col1
----
86
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2314
SELECT - AVG ( DISTINCT - 11 ) / SUM( ALL 25 ) + + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2314
SELECT - AVG ( DISTINCT - 11 ) / SUM ( ALL 25 ) + + CAST ( NULL AS REAL ) col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2316
SELECT 38 AS col2, - 21 * - - 15 * - + MAX( DISTINCT - + 70 ) AS col1
----
38
-22050

skipif mysql # not compatible
query II rowsort label-2316
SELECT 38 AS col2, - 21 * - - 15 * - + MAX ( DISTINCT - + 70 ) AS col1
----
38
-22050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2317
SELECT ALL ( + + COALESCE ( - 30, - MAX( + 94 ) DIV - 32 ) ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL ( + + COALESCE ( - 30, - MAX ( + 94 ) / - 32 ) ) AS col2
----
-30

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

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

query I rowsort
SELECT ALL 11 * - NULLIF ( - + 35, - 36 ) AS col0
----
385

onlyif mysql # DIV for integer division: 
query I rowsort label-2320
SELECT DISTINCT + 37 DIV + - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT + 37 / + - 70 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2321
SELECT ALL + 28 DIV ( - - 23 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL + 28 / ( - - 23 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT - CASE 40 WHEN + + 80 * 71 + - + 12 THEN NULL ELSE 18 + + 81 END * + + CAST( 82 AS SIGNED )
----
-8118

skipif mysql # not compatible
query I rowsort label-2322
SELECT - CASE 40 WHEN + + 80 * 71 + - + 12 THEN NULL ELSE 18 + + 81 END * + + CAST ( 82 AS INTEGER )
----
-8118

onlyif mysql # DIV for integer division: 
query I rowsort label-2323
SELECT ALL + 55 DIV 73 * - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL + 55 / 73 * - 74 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2324
SELECT ALL + COUNT( * ) AS col1, ( + ( 28 ) ) + + + 5 AS col0
----
1
33

skipif mysql # not compatible
query II rowsort label-2324
SELECT ALL + COUNT ( * ) AS col1, ( + ( 28 ) ) + + + 5 AS col0
----
1
33

onlyif mysql # aggregate syntax: 
query II rowsort label-2325
SELECT + COUNT( * ) AS col0, + 94 * + 98 * + 29 AS col2
----
1
267148

skipif mysql # not compatible
query II rowsort label-2325
SELECT + COUNT ( * ) AS col0, + 94 * + 98 * + 29 AS col2
----
1
267148

query I rowsort
SELECT ALL 87 * + 26 * + 68 * + 11 AS col1
----
1691976

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2327
SELECT CAST( NULL AS DECIMAL ) * - + 30 - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT CAST ( NULL AS REAL ) * - + 30 - 80 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 83 - - 58 + - - 94 + - 71 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2329
SELECT 13 DIV - 34 * + 74 + 29 + - + 81 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-2329
SELECT 13 / - 34 * + 74 + 29 + - + 81 AS col2
----
-52

query I rowsort
SELECT + + 28 * - 54 + - 22
----
-1534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2331
SELECT + COALESCE ( - 76, + CASE - 39 WHEN + 97 * + 29 + 68 THEN - - 69 + + MAX( DISTINCT - 45 ) + + + COUNT( * ) + - 40 + COUNT( * ) DIV - - 51 DIV - 91 DIV 45 + - CASE - 86 WHEN 5 THEN - 50 END + + 59 ELSE NULL END, 40 DIV COUNT( ALL 10 ) - CAST( - 50 AS SIGNED ) )
----
-76

skipif mysql # not compatible
query I rowsort label-2331
SELECT + COALESCE ( - 76, + CASE - 39 WHEN + 97 * + 29 + 68 THEN - - 69 + + MAX ( DISTINCT - 45 ) + + + COUNT ( * ) + - 40 + COUNT ( * ) / - - 51 / - 91 / 45 + - CASE - 86 WHEN 5 THEN - 50 END + + 59 ELSE NULL END, 40 / COUNT ( ALL 10 ) - CAST ( - 50 AS INTEGER ) )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-2332
SELECT ALL - + COUNT( * ) AS col0, + 22 * - 46 AS col2
----
-1
-1012

skipif mysql # not compatible
query II rowsort label-2332
SELECT ALL - + COUNT ( * ) AS col0, + 22 * - 46 AS col2
----
-1
-1012

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT + NULLIF ( - 13, - 94 ) * 6 + 29 + ( + CAST( - ( + 82 ) AS SIGNED ) )
----
-131

skipif mysql # not compatible
query I rowsort label-2333
SELECT + NULLIF ( - 13, - 94 ) * 6 + 29 + ( + CAST ( - ( + 82 ) AS INTEGER ) )
----
-131

query I rowsort
SELECT ALL + + ( + 13 ) * 42 AS col0
----
546

query I rowsort
SELECT - 3 + - 50 AS col1
----
-53

query II rowsort
SELECT ALL - - 47, - 66 col1
----
47
-66

query I rowsort
SELECT 90 + - + ( + + 84 )
----
6

query II rowsort
SELECT ALL - - 86 AS col2, NULLIF ( + + 69, + 23 )
----
86
69

query I rowsort
SELECT - 30 * 49 + - 36 col1
----
-1506

query I rowsort
SELECT ALL - 17 + - - 46 + + - 66 * 21 AS col0
----
-1357

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT - - 27 * - 51 + + 13 + - SUM( ALL - + 57 ) AS col1
----
-1307

skipif mysql # not compatible
query I rowsort label-2341
SELECT - - 27 * - 51 + + 13 + - SUM ( ALL - + 57 ) AS col1
----
-1307

query I rowsort
SELECT ALL - NULLIF ( - - 1, + 45 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2343
SELECT + 90 AS col1, - ( 91 ) * + COUNT( * ) + - - ( - 92 ) AS col2
----
90
-183

skipif mysql # not compatible
query II rowsort label-2343
SELECT + 90 AS col1, - ( 91 ) * + COUNT ( * ) + - - ( - 92 ) AS col2
----
90
-183

query I rowsort
SELECT 36 * - 16 + + - 41
----
-617

query I rowsort
SELECT DISTINCT 27 / + CASE + 13 WHEN 45 THEN - 37 / 50 + 61 + + AVG ( DISTINCT + + 56 ) + + 73 / - 12 / + 74 * - 56 END AS col1
----
NULL

query III rowsort
SELECT 99 AS col1, 77 AS col0, 8
----
99
77
8

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

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

query I rowsort
SELECT ALL - 81 + 55 * + + ( - - 10 ) * + + 17 * + ( - 99 )
----
-925731

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2349
SELECT - 25 AS col1, CAST( - 92 AS SIGNED ) AS col2
----
-25
-92

skipif mysql # not compatible
query II rowsort label-2349
SELECT - 25 AS col1, CAST ( - 92 AS INTEGER ) AS col2
----
-25
-92

query II rowsort
SELECT ALL 36, 64 AS col2
----
36
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2351
SELECT DISTINCT + + 90 DIV + + 76
----
1

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT + + 90 / + + 76
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT COUNT( * ) * + + 8 * MAX( DISTINCT 36 ) * - 48
----
-13824

skipif mysql # not compatible
query I rowsort label-2352
SELECT COUNT ( * ) * + + 8 * MAX ( DISTINCT 36 ) * - 48
----
-13824

query I rowsort
SELECT ALL - 31 + ( + - ( 68 ) ) + + 35 * - 15 AS col2
----
-624

onlyif mysql # aggregate syntax: 
query II rowsort label-2354
SELECT ( 15 ) * + MAX( - 21 ) + 46, + 33 col1
----
-269
33

skipif mysql # not compatible
query II rowsort label-2354
SELECT ( 15 ) * + MAX ( - 21 ) + 46, + 33 col1
----
-269
33

query I rowsort
SELECT 43 + - 34 * - 85 + - - COALESCE ( - 28, - - 77 )
----
2905

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT ALL 64 DIV - 18
----
-3

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL 64 / - 18
----
-3

query I rowsort
SELECT 71 * + ( 58 )
----
4118

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2359
SELECT 78 + 29 / 21 + MIN( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT 78 + 29 / 21 + MIN ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 99 - + 30
----
69

query II rowsort
SELECT 87 + - + 82, - ( 20 ) AS col1
----
5
-20

query I rowsort
SELECT - 88 * - COALESCE ( + 98, - 86 )
----
8624

onlyif mysql # DIV for integer division: 
query I rowsort label-2363
SELECT ALL - + 84 DIV - 55
----
1

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL - + 84 / - 55
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2364
SELECT - 1 * COUNT( * ), + MAX( 49 ) AS col0
----
-1
49

skipif mysql # not compatible
query II rowsort label-2364
SELECT - 1 * COUNT ( * ), + MAX ( 49 ) AS col0
----
-1
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2365
SELECT ALL + 26 + + 1 + + + 4 + 1 + - - 30 + - MIN( + 67 ) / - 74 * - 32 / + 23 * + - 16 * - 4 / - 35 * - CASE - COUNT( * ) WHEN - NULLIF ( + MAX( DISTINCT + ( + 84 ) ), - - 78 ) THEN NULL WHEN 13 THEN MIN( DISTINCT - ( - 44 ) ) + - 72 * + 3 WHEN CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL + 26 + + 1 + + + 4 + 1 + - - 30 + - MIN ( + 67 ) / - 74 * - 32 / + 23 * + - 16 * - 4 / - 35 * - CASE - COUNT ( * ) WHEN - NULLIF ( + MAX ( DISTINCT + ( + 84 ) ), - - 78 ) THEN NULL WHEN 13 THEN MIN ( DISTINCT - ( - 44 ) ) + - 72 * + 3 WHEN CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2366
SELECT DISTINCT - - COALESCE ( + 75, + 58 + + 64 ) DIV + MIN( 98 ) * + 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT - - COALESCE ( + 75, + 58 + + 64 ) / + MIN ( 98 ) * + 50 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2367
SELECT COUNT( * ) DIV 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2367
SELECT COUNT ( * ) / 9 AS col1
----
0

query I rowsort
SELECT + 67 * - 3 * 93 AS col1
----
-18693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2369
SELECT + COALESCE ( + 31, + + ( + 77 ) DIV COUNT( * ), - 16 ) * - 73 * + CAST( + + CAST( COUNT( * ) AS SIGNED ) AS SIGNED )
----
-2263

skipif mysql # not compatible
query I rowsort label-2369
SELECT + COALESCE ( + 31, + + ( + 77 ) / COUNT ( * ), - 16 ) * - 73 * + CAST ( + + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER )
----
-2263

onlyif mysql # aggregate syntax: 
query II rowsort label-2370
SELECT - COUNT( DISTINCT + ( - + 54 ) ), COALESCE ( + + 48, - 18 * + + 2 ) AS col2
----
-1
48

skipif mysql # not compatible
query II rowsort label-2370
SELECT - COUNT ( DISTINCT + ( - + 54 ) ), COALESCE ( + + 48, - 18 * + + 2 ) AS col2
----
-1
48

query II rowsort
SELECT ALL - 85 + + 55 AS col0, + 33
----
-30
33

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

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

query I rowsort
SELECT DISTINCT - 45 + 62
----
17

query I rowsort
SELECT 36 * - 58 * - - 49 + - 8 + + 52 + 4
----
-102264

query I rowsort
SELECT 56 - - + 10 + 55
----
121

query I rowsort
SELECT 27 * - - 14
----
378

onlyif mysql # DIV for integer division: 
query I rowsort label-2377
SELECT DISTINCT 66 DIV - 49 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT 66 / - 49 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2378
SELECT ALL 24 - + MIN( ALL + 18 ) AS col1, - 78 + - - 30 DIV - + SUM( + ( 55 ) ) AS col0
----
6
-78

skipif mysql # not compatible
query II rowsort label-2378
SELECT ALL 24 - + MIN ( ALL + 18 ) AS col1, - 78 + - - 30 / - + SUM ( + ( 55 ) ) AS col0
----
6
-78

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

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

query I rowsort
SELECT 46 + - 90
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-2381
SELECT DISTINCT COUNT( ALL - ( - 40 ) ), 80 AS col1
----
1
80

skipif mysql # not compatible
query II rowsort label-2381
SELECT DISTINCT COUNT ( ALL - ( - 40 ) ), 80 AS col1
----
1
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT DISTINCT - 55 DIV + + 26
----
-2

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT - 55 / + + 26
----
-2

query I rowsort
SELECT ALL 94 * + 77 * + + 66 * - 45 AS col1
----
-21496860

query I rowsort
SELECT ALL 65 * + 96 AS col0
----
6240

query I rowsort
SELECT DISTINCT 23 * - ( - 44 )
----
1012

query II rowsort
SELECT ALL 32, NULLIF ( 88, + 92 ) AS col0
----
32
88

onlyif mysql # aggregate syntax: 
query II rowsort label-2387
SELECT + COUNT( * ) + - 92 * - 67 AS col1, ( - 11 ) AS col2
----
6165
-11

skipif mysql # not compatible
query II rowsort label-2387
SELECT + COUNT ( * ) + - 92 * - 67 AS col1, ( - 11 ) AS col2
----
6165
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2388
SELECT - COUNT( * ) AS col0, - 0 + + - COUNT( * ) + - COALESCE ( + MIN( + 33 ), + COUNT( ALL + 51 ), - 5 * 63 + + + 88 + - NULLIF ( + COUNT( * ), + AVG ( + - 73 ) ) * 67 + 74 * 44 * + 41 * 3 + + 54 * + ( - COUNT( * ) ) * + 66 ) DIV 84
----
-1
-1

skipif mysql # not compatible
query II rowsort label-2388
SELECT - COUNT ( * ) AS col0, - 0 + + - COUNT ( * ) + - COALESCE ( + MIN ( + 33 ), + COUNT ( ALL + 51 ), - 5 * 63 + + + 88 + - NULLIF ( + COUNT ( * ), + AVG ( + - 73 ) ) * 67 + 74 * 44 * + 41 * 3 + + 54 * + ( - COUNT ( * ) ) * + 66 ) / 84
----
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2389
SELECT ALL 43, 85 * + + 50 * + 56 + - 81 * + - COUNT( * ) * - COUNT( * ) * + 23 AS col0
----
43
236137

skipif mysql # not compatible
query II rowsort label-2389
SELECT ALL 43, 85 * + + 50 * + 56 + - 81 * + - COUNT ( * ) * - COUNT ( * ) * + 23 AS col0
----
43
236137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2390
SELECT + + 10 + + 18 + - 2 + 40 * + + COALESCE ( 53, + ( - 10 ), + 45 DIV COUNT( * ) ) AS col0
----
2146

skipif mysql # not compatible
query I rowsort label-2390
SELECT + + 10 + + 18 + - 2 + 40 * + + COALESCE ( 53, + ( - 10 ), + 45 / COUNT ( * ) ) AS col0
----
2146

query II rowsort
SELECT + 96 AS col2, + 6 AS col2
----
96
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT + - ( - 82 ) + ( + CAST( + 30 AS SIGNED ) )
----
112

skipif mysql # not compatible
query I rowsort label-2392
SELECT + - ( - 82 ) + ( + CAST ( + 30 AS INTEGER ) )
----
112

query I rowsort
SELECT ALL - 30 + - CASE + + 48 WHEN 17 THEN NULL ELSE - 76 * 36 * - 38 END + - ( - 90 )
----
-103908

query I rowsort
SELECT ALL - + 82 * + 19 * + 84
----
-130872

query I rowsort
SELECT + 94 - + 58
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2396
SELECT DISTINCT 64 DIV MAX( ALL - + 64 ), - 65 col0
----
-1
-65

skipif mysql # not compatible
query II rowsort label-2396
SELECT DISTINCT 64 / MAX ( ALL - + 64 ), - 65 col0
----
-1
-65

query I rowsort
SELECT - 61 * - 40 + + 3 + + + 40 col2
----
2483

query II rowsort
SELECT 85 AS col0, 55
----
85
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2399
SELECT ALL - 47 * CAST( NULL AS SIGNED ) * + 81 + COALESCE ( + COUNT( - + 72 ), - + 21 + 16 * + - 46, - 91 + - + 72 ) * 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL - 47 * CAST ( NULL AS INTEGER ) * + 81 + COALESCE ( + COUNT ( - + 72 ), - + 21 + 16 * + - 46, - 91 + - + 72 ) * 12 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT - + 90 * + COUNT( * ) + + + 99
----
9

skipif mysql # not compatible
query I rowsort label-2400
SELECT - + 90 * + COUNT ( * ) + + + 99
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT 34 * + COUNT( * ) + + 99
----
133

skipif mysql # not compatible
query I rowsort label-2401
SELECT 34 * + COUNT ( * ) + + 99
----
133

query I rowsort
SELECT ALL - + 96 * - 12 + - ( 71 )
----
1081

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

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT + - MAX ( DISTINCT ( - - 80 ) ) AS col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT ALL - + ( + 17 ) DIV + - 49
----
0

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL - + ( + 17 ) / + - 49
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT + COUNT( * ) * - + 82 + + ( 87 ) - - - 83 * + 24 * + - 55 - + 27 * - 39 * + COUNT( * )
----
110618

skipif mysql # not compatible
query I rowsort label-2406
SELECT + COUNT ( * ) * - + 82 + + ( 87 ) - - - 83 * + 24 * + - 55 - + 27 * - 39 * + COUNT ( * )
----
110618

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT - 19 + - COUNT( * ) + + 36 + + MAX( + 68 ) + + COUNT( * ) col0
----
85

skipif mysql # not compatible
query I rowsort label-2407
SELECT - 19 + - COUNT ( * ) + + 36 + + MAX ( + 68 ) + + COUNT ( * ) col0
----
85

query I rowsort
SELECT ALL - 68 * 29 AS col1
----
-1972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2409
SELECT - 30 * 57 col2, CAST( NULL AS SIGNED ) * - - 89 + - 29 * 10 + 56 * + + COUNT( * ) AS col0
----
-1710
NULL

skipif mysql # not compatible
query II rowsort label-2409
SELECT - 30 * 57 col2, CAST ( NULL AS INTEGER ) * - - 89 + - 29 * 10 + 56 * + + COUNT ( * ) AS col0
----
-1710
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2410
SELECT - 36 * + - COUNT( * ) AS col2, 22 * + 12 AS col2
----
36
264

skipif mysql # not compatible
query II rowsort label-2410
SELECT - 36 * + - COUNT ( * ) AS col2, 22 * + 12 AS col2
----
36
264

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2412
SELECT DISTINCT COUNT( * ) * - 77 - + 59 DIV + 81 + ( - 80 ) AS col2
----
-157

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT COUNT ( * ) * - 77 - + 59 / + 81 + ( - 80 ) AS col2
----
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT - COUNT( * ) + 13 + + 37 * + CAST( - 11 AS SIGNED )
----
-395

skipif mysql # not compatible
query I rowsort label-2413
SELECT - COUNT ( * ) + 13 + + 37 * + CAST ( - 11 AS INTEGER )
----
-395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2414
SELECT DISTINCT CASE COUNT( * ) WHEN + 23 THEN + 17 * + - COUNT( * ) WHEN - + CAST( NULL AS SIGNED ) THEN + 53 END AS col2, - 72
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-2414
SELECT DISTINCT CASE COUNT ( * ) WHEN + 23 THEN + 17 * + - COUNT ( * ) WHEN - + CAST ( NULL AS INTEGER ) THEN + 53 END AS col2, - 72
----
NULL
-72

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

query I rowsort
SELECT DISTINCT - 51 * - ( 50 ) col0
----
2550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2417
SELECT 6 * 46 - 42 + + COUNT( * ) DIV COUNT( * )
----
235

skipif mysql # not compatible
query I rowsort label-2417
SELECT 6 * 46 - 42 + + COUNT ( * ) / COUNT ( * )
----
235

query I rowsort
SELECT - 64 * - 48 col1
----
3072

query I rowsort
SELECT + 70 + + 88
----
158

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

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

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

skipif mysql # not compatible
query I rowsort label-2421
SELECT + 23 / - CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT DISTINCT + 79 + 43 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT ALL - 1 + SUM( - 2 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL - 1 + SUM ( - 2 ) AS col0
----
-3

query I rowsort
SELECT DISTINCT - 37 + - + 58 * - - 23
----
-1371

query I rowsort
SELECT ALL + 21 + + COALESCE ( - + 77, + 0, 50 ) - 31 * + + 24
----
-800

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT + 92 + - MAX( - 10 ) - - 55 - 15 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-2427
SELECT + 92 + - MAX ( - 10 ) - - 55 - 15 AS col0
----
142

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2428
SELECT ALL + NULLIF ( + + 51, - 91 ) + + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL + NULLIF ( + + 51, - 91 ) + + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2429
SELECT ALL - + COUNT( * ) DIV - COUNT( * ) + ( 50 ) + + ( + 41 ) + + ( + + COUNT( * ) ) col0
----
93

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL - + COUNT ( * ) / - COUNT ( * ) + ( 50 ) + + ( + 41 ) + + ( + + COUNT ( * ) ) col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2430
SELECT DISTINCT + COALESCE ( CAST( NULL AS SIGNED ), - ( + - NULLIF ( + - 63, + NULLIF ( NULLIF ( + 17, + 10 * - 50 - + 40 + + 80 - - 55 ), COUNT( * ) + + 33 ) + - - 85 ) ) + + 79 + + - 0 * - - CASE - 16 WHEN - 0 + - 95 THEN NULL WHEN CAST( - COALESCE ( - 72, CAST( 95 AS SIGNED ) * COUNT( * ) + 75 ) AS SIGNED ) * 88 THEN - 98 ELSE + 86 + AVG ( ALL - CAST( NULL AS SIGNED ) ) END * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT + COALESCE ( CAST ( NULL AS INTEGER ), - ( + - NULLIF ( + - 63, + NULLIF ( NULLIF ( + 17, + 10 * - 50 - + 40 + + 80 - - 55 ), COUNT ( * ) + + 33 ) + - - 85 ) ) + + 79 + + - 0 * - - CASE - 16 WHEN - 0 + - 95 THEN NULL WHEN CAST ( - COALESCE ( - 72, CAST ( 95 AS INTEGER ) * COUNT ( * ) + 75 ) AS INTEGER ) * 88 THEN - 98 ELSE + 86 + AVG ( ALL - CAST ( NULL AS INTEGER ) ) END * COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2431
SELECT DISTINCT + 61 * - CAST( NULL AS SIGNED ) AS col1, CASE - COUNT( * ) WHEN - 61 + 28 THEN NULL WHEN + COUNT( * ) * - + 25 * + 85 THEN - + 4 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2431
SELECT DISTINCT + 61 * - CAST ( NULL AS INTEGER ) AS col1, CASE - COUNT ( * ) WHEN - 61 + 28 THEN NULL WHEN + COUNT ( * ) * - + 25 * + 85 THEN - + 4 ELSE NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT DISTINCT - COUNT( * ) * + 22 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT - COUNT ( * ) * + 22 AS col2
----
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL CASE - 68 WHEN + COALESCE ( AVG ( + 40 ), - COALESCE ( - + 6, + - 10 ), - 58 ) * - 15 * + COUNT( * ) + 81 THEN 33 ELSE + - 40 - - MAX( + 23 ) + 38 + - ( - - NULLIF ( + 4, + ( 15 ) ) ) * + 9 * NULLIF ( - 63, - 30 ) * CASE + 78 WHEN 73 + 85 THEN NULL WHEN 55 + NULLIF ( - COUNT( 54 ), COALESCE ( + COUNT( * ), 51 + + 8 ) + 88 * + COUNT( * ) ) THEN NULL WHEN - 20 * 86 THEN + 67 + - 95 END * - 97 END * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL CASE - 68 WHEN + COALESCE ( AVG ( + 40 ), - COALESCE ( - + 6, + - 10 ), - 58 ) * - 15 * + COUNT ( * ) + 81 THEN 33 ELSE + - 40 - - MAX ( + 23 ) + 38 + - ( - - NULLIF ( + 4, + ( 15 ) ) ) * + 9 * NULLIF ( - 63, - 30 ) * CASE + 78 WHEN 73 + 85 THEN NULL WHEN 55 + NULLIF ( - COUNT ( 54 ), COALESCE ( + COUNT ( * ), 51 + + 8 ) + 88 * + COUNT ( * ) ) THEN NULL WHEN - 20 * 86 THEN + 67 + - 95 END * - 97 END * + 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2435
SELECT - 62 * - 11 + - + NULLIF ( + MAX( - 62 ), + CAST( + + 88 AS SIGNED ) * 70 )
----
744

skipif mysql # not compatible
query I rowsort label-2435
SELECT - 62 * - 11 + - + NULLIF ( + MAX ( - 62 ), + CAST ( + + 88 AS INTEGER ) * 70 )
----
744

query I rowsort
SELECT + 13 * + 72 AS col1
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT DISTINCT CASE - ( - - 10 ) WHEN + 81 THEN + 50 WHEN + 36 * + COUNT( * ) - - ( - 47 ) THEN NULL WHEN 58 THEN NULL ELSE NULL END * 66 * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT CASE - ( - - 10 ) WHEN + 81 THEN + 50 WHEN + 36 * + COUNT ( * ) - - ( - 47 ) THEN NULL WHEN 58 THEN NULL ELSE NULL END * 66 * + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + ( + + 97 ) * + 53 + - + 10 - + 75
----
5056

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2439
SELECT DISTINCT + 92 DIV + 97 * + + 47 AS col0, + 24 * COUNT( * ) * - + 31
----
0
-744

skipif mysql # not compatible
query II rowsort label-2439
SELECT DISTINCT + 92 / + 97 * + + 47 AS col0, + 24 * COUNT ( * ) * - + 31
----
0
-744

query I rowsort
SELECT DISTINCT + 83 * + 96 AS col0
----
7968

onlyif mysql # DIV for integer division: 
query I rowsort label-2441
SELECT ALL 41 DIV - 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL 41 / - 57 AS col2
----
0

query II rowsort
SELECT 23 col0, - 21
----
23
-21

query I rowsort
SELECT 97 * + 20 AS col2
----
1940

query I rowsort
SELECT 0 + - + ( - 47 ) + + 88 AS col1
----
135

query I rowsort
SELECT 71 + + - 95 AS col2
----
-24

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

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

query I rowsort
SELECT DISTINCT 40 + 67 AS col1
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2448
SELECT 87 * CAST( + COUNT( * ) AS SIGNED ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2448
SELECT 87 * CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
87

query I rowsort
SELECT 90 + + - 0
----
90

query I rowsort
SELECT ALL + 75 + - 4 col0
----
71

query I rowsort
SELECT DISTINCT - 20 * + 96 * 86
----
-165120

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ALL + COALESCE ( 62, - - 27 * - - 58, 17 ) + + + 56 - + COUNT( ALL 5 ) * + - NULLIF ( + 13, 49 )
----
131

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL + COALESCE ( 62, - - 27 * - - 58, 17 ) + + + 56 - + COUNT ( ALL 5 ) * + - NULLIF ( + 13, 49 )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ALL - ( + + CASE - SUM( - + ( - 21 ) ) WHEN COUNT( * ) THEN NULL WHEN + 42 * MIN( DISTINCT 3 ) THEN + - COUNT( * ) ELSE NULL END ) + + 71 * + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - ( + + CASE - SUM ( - + ( - 21 ) ) WHEN COUNT ( * ) THEN NULL WHEN + 42 * MIN ( DISTINCT 3 ) THEN + - COUNT ( * ) ELSE NULL END ) + + 71 * + + 2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2455
SELECT COALESCE ( + CAST( - 44 AS DECIMAL ), + 24 ) * 39 - - + 30 * CASE ( + 37 ) WHEN - + COUNT( * ) + + + CAST( + CASE MAX( 5 ) WHEN + - COALESCE ( - + ( + 3 ), - CASE - + COUNT( * ) WHEN + 38 + + 29 - - - 34 + - 67 * - - 38 THEN - 59 WHEN + COALESCE ( - 97, 29, + 40 * + 38 ) + + 55 / + 97 THEN CAST( + 17 AS SIGNED ) * + 48 ELSE NULL END * + COUNT( * ) ) + + CAST( NULL AS SIGNED ) THEN NULL WHEN + ( - 64 ) THEN 20 END AS SIGNED ) + - CASE 0 WHEN - COUNT( * ) THEN 56 END * + ( + 90 ) THEN MAX( + 27 ) + AVG ( DISTINCT 27 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT COALESCE ( + CAST ( - 44 AS REAL ), + 24 ) * 39 - - + 30 * CASE ( + 37 ) WHEN - + COUNT ( * ) + + + CAST ( + CASE MAX ( 5 ) WHEN + - COALESCE ( - + ( + 3 ), - CASE - + COUNT ( * ) WHEN + 38 + + 29 - - - 34 + - 67 * - - 38 THEN - 59 WHEN + COALESCE ( - 97, 29, + 40 * + 38 ) + + 55 / + 97 THEN CAST ( + 17 AS INTEGER ) * + 48 ELSE NULL END * + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + ( - 64 ) THEN 20 END AS INTEGER ) + - CASE 0 WHEN - COUNT ( * ) THEN 56 END * + ( + 90 ) THEN MAX ( + 27 ) + AVG ( DISTINCT 27 ) END
----
NULL

query I rowsort
SELECT 43 + - 37 + - 11
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT MAX( DISTINCT - + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-2457
SELECT MAX ( DISTINCT - + 88 )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2458
SELECT ALL - 47 + - + 0 * + 80, 45 * - - 4 + + COUNT( * ) DIV + 55 AS col1
----
-47
180

skipif mysql # not compatible
query II rowsort label-2458
SELECT ALL - 47 + - + 0 * + 80, 45 * - - 4 + + COUNT ( * ) / + 55 AS col1
----
-47
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2459
SELECT DISTINCT + 56 / + + 99 * + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT + 56 / + + 99 * + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL 37, - 44 AS col0
----
37
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT - COUNT( 26 ) + - 39 * - NULLIF ( + COUNT( * ), 31 * - - 96 * + + 91 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2461
SELECT - COUNT ( 26 ) + - 39 * - NULLIF ( + COUNT ( * ), 31 * - - 96 * + + 91 ) AS col2
----
38

query I rowsort
SELECT ALL - - 93 - - 77
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-2463
SELECT 13 + 11 + + - 8, + 11 * - + 82 * + - 56 + + COUNT( * ) * 7 AS col1
----
16
50519

skipif mysql # not compatible
query II rowsort label-2463
SELECT 13 + 11 + + - 8, + 11 * - + 82 * + - 56 + + COUNT ( * ) * 7 AS col1
----
16
50519

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

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL 9 - - + COUNT ( * ) AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2465
SELECT DISTINCT + CASE + 9 WHEN NULLIF ( - + 19, + + 30 ) THEN NULL ELSE CAST( - 1 AS SIGNED ) END * 34 * - 42 + - 64 * + + CASE - 26 WHEN - 92 + + - NULLIF ( - MIN( ALL + 58 ), - CASE COUNT( * ) WHEN + 9 * + 75 * - - 77 THEN CASE - ( + NULLIF ( + 78, + ( - 96 ) / 97 + + 48 * 26 ) ) WHEN 9 THEN COUNT( * ) * 68 + - 12 WHEN COUNT( - 91 ) / - AVG ( DISTINCT - 84 + ( CAST( - 9 AS DECIMAL ) ) ) + - 25 THEN NULL WHEN COALESCE ( 30, 9 * + 73 ) * COALESCE ( 78 + - 25, + 14 * 50 + - ( 93 + 47 ) ) THEN COUNT( * ) + 63 END + 23 WHEN 6 THEN - CAST( ( + 15 ) AS SIGNED ) + + CAST( NULL AS SIGNED ) END ) THEN 51 END - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT + CASE + 9 WHEN NULLIF ( - + 19, + + 30 ) THEN NULL ELSE CAST ( - 1 AS INTEGER ) END * 34 * - 42 + - 64 * + + CASE - 26 WHEN - 92 + + - NULLIF ( - MIN ( ALL + 58 ), - CASE COUNT ( * ) WHEN + 9 * + 75 * - - 77 THEN CASE - ( + NULLIF ( + 78, + ( - 96 ) / 97 + + 48 * 26 ) ) WHEN 9 THEN COUNT ( * ) * 68 + - 12 WHEN COUNT ( - 91 ) / - AVG ( DISTINCT - 84 + ( CAST ( - 9 AS REAL ) ) ) + - 25 THEN NULL WHEN COALESCE ( 30, 9 * + 73 ) * COALESCE ( 78 + - 25, + 14 * 50 + - ( 93 + 47 ) ) THEN COUNT ( * ) + 63 END + 23 WHEN 6 THEN - CAST ( ( + 15 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) END ) THEN 51 END - 80
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT 51 * 63 + + MAX( DISTINCT - 50 )
----
3163

skipif mysql # not compatible
query I rowsort label-2467
SELECT 51 * 63 + + MAX ( DISTINCT - 50 )
----
3163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2468
SELECT ALL - + 89 AS col0, - CAST( CASE 38 WHEN + COUNT( * ) * - - ( + - 89 ) - 54 + + COUNT( * ) * - CAST( NULL AS DECIMAL ) * 51 + + ( + + 47 ) THEN 28 WHEN + 94 THEN - + 33 ELSE NULL END AS SIGNED ) * - 96 / + 65 + + 61 AS col0
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-2468
SELECT ALL - + 89 AS col0, - CAST ( CASE 38 WHEN + COUNT ( * ) * - - ( + - 89 ) - 54 + + COUNT ( * ) * - CAST ( NULL AS REAL ) * 51 + + ( + + 47 ) THEN 28 WHEN + 94 THEN - + 33 ELSE NULL END AS INTEGER ) * - 96 / + 65 + + 61 AS col0
----
-89
NULL

query I rowsort
SELECT 69 + + 46 + 70 * 78 * - 25 * + ( - 38 )
----
5187115

query I rowsort
SELECT + COALESCE ( + - 33, 65, + 31 ) AS col0
----
-33

query I rowsort
SELECT 28 + + 90 AS col0
----
118

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

query I rowsort
SELECT ALL 71 * - 99 AS col0
----
-7029

query I rowsort
SELECT DISTINCT 0 * 29
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT ALL SUM( DISTINCT - - 87 ) + 24 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL SUM ( DISTINCT - - 87 ) + 24 AS col1
----
111

query II rowsort
SELECT - 84 AS col1, 7 AS col1
----
-84
7

query II rowsort
SELECT ALL 37 AS col1, 96 + + - 91 AS col0
----
37
5

query II rowsort
SELECT ALL 39, - 5 col1
----
39
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT ALL + COUNT( * ) + + - 76 * - ( + - 10 ) - + 82
----
-841

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL + COUNT ( * ) + + - 76 * - ( + - 10 ) - + 82
----
-841

query I rowsort
SELECT 6 * - 83 * + + 94 AS col2
----
-46812

query I rowsort
SELECT DISTINCT 26 + - 64 + 1 + 32 - 44 AS col1
----
-49

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

skipif mysql # not compatible
query II rowsort label-2483
SELECT - COUNT ( * ), 86 AS col2
----
-1
86

query I rowsort
SELECT - + ( 43 ) col1
----
-43

query I rowsort
SELECT 56 + - + 5 * + - 32 AS col2
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT - ( MIN( DISTINCT - + 35 ) )
----
35

skipif mysql # not compatible
query I rowsort label-2486
SELECT - ( MIN ( DISTINCT - + 35 ) )
----
35

query I rowsort
SELECT DISTINCT - 16 - 4 * - 67 AS col1
----
252

onlyif mysql # aggregate syntax: 
query II rowsort label-2488
SELECT - + 81 AS col0, - 38 + - NULLIF ( - 45, + + 99 ) + + 68 * COUNT( * ) col0
----
-81
75

skipif mysql # not compatible
query II rowsort label-2488
SELECT - + 81 AS col0, - 38 + - NULLIF ( - 45, + + 99 ) + + 68 * COUNT ( * ) col0
----
-81
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT ALL - COUNT( DISTINCT - - 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL - COUNT ( DISTINCT - - 36 )
----
-1

query I rowsort
SELECT 27 * + 53 * + 30
----
42930

onlyif mysql # aggregate syntax: 
query III rowsort label-2491
SELECT ALL - 2 - - - 48 col1, COUNT( * ) - - + 98 AS col1, - 68 AS col0
----
-50
99
-68

skipif mysql # not compatible
query III rowsort label-2491
SELECT ALL - 2 - - - 48 col1, COUNT ( * ) - - + 98 AS col1, - 68 AS col0
----
-50
99
-68

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2493
SELECT 7 * 31 * + COALESCE ( + 46, - 74 * + + 46 * - + COUNT( * ) + + - ( - - 56 ) * 99 + - COUNT( * ) - + - 11 + - ( + 5 ) * + ( + NULLIF ( + CAST( NULL AS SIGNED ), + 19 ) ) + + 12 + - ( 71 ), + 75 )
----
9982

skipif mysql # not compatible
query I rowsort label-2493
SELECT 7 * 31 * + COALESCE ( + 46, - 74 * + + 46 * - + COUNT ( * ) + + - ( - - 56 ) * 99 + - COUNT ( * ) - + - 11 + - ( + 5 ) * + ( + NULLIF ( + CAST ( NULL AS INTEGER ), + 19 ) ) + + 12 + - ( 71 ), + 75 )
----
9982

query II rowsort
SELECT - - 38, + 66 AS col1
----
38
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT DISTINCT - COALESCE ( CAST( NULL AS SIGNED ), 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT - COALESCE ( CAST ( NULL AS INTEGER ), 78 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2496
SELECT 14 DIV - + 80 DIV COUNT( * ) + - 69 AS col2, 21 AS col0
----
-69
21

skipif mysql # not compatible
query II rowsort label-2496
SELECT 14 / - + 80 / COUNT ( * ) + - 69 AS col2, 21 AS col0
----
-69
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL - MIN( - 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - MIN ( - 26 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT ALL 54 * - 75 AS col0, COUNT( * ) AS col2
----
-4050
1

skipif mysql # not compatible
query II rowsort label-2499
SELECT ALL 54 * - 75 AS col0, COUNT ( * ) AS col2
----
-4050
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2500
SELECT - 60 DIV - 43, + 37 + + + MIN( + 1 ) + 77 * 91 AS col1
----
1
7045

skipif mysql # not compatible
query II rowsort label-2500
SELECT - 60 / - 43, + 37 + + + MIN ( + 1 ) + 77 * 91 AS col1
----
1
7045

query I rowsort
SELECT ALL 65 * + 41 + 86 AS col0
----
2751

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

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

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

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

query I rowsort
SELECT + 30 * 98 AS col0
----
2940

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT DISTINCT MIN( 3 ) * - + 7 + - - 91 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT MIN ( 3 ) * - + 7 + - - 91 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL COUNT( * ) * 83 + - - 45
----
128

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL COUNT ( * ) * 83 + - - 45
----
128

query I rowsort
SELECT + 94 + + 53 AS col1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL 52 * COUNT( * ) + 55 + + COUNT( * ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL 52 * COUNT ( * ) + 55 + + COUNT ( * ) AS col1
----
108

query II rowsort
SELECT DISTINCT + ( + - 2 ) AS col2, + 38
----
-2
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT + COUNT( * ) * + + 71 + + 1 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-2510
SELECT + COUNT ( * ) * + + 71 + + 1 AS col0
----
72

query I rowsort
SELECT ALL 64 * + 59 + - 51 AS col1
----
3725

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT + NULLIF ( COALESCE ( + + 78, 60 + + COUNT( * ) ), + 87 )
----
78

skipif mysql # not compatible
query I rowsort label-2512
SELECT + NULLIF ( COALESCE ( + + 78, 60 + + COUNT ( * ) ), + 87 )
----
78

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

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

query I rowsort
SELECT + 40 - 3 + - + 19 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL COALESCE ( CASE + 76 WHEN - - 16 * - 72 THEN + 64 * + COUNT( * ) WHEN + - 9 THEN - 19 ELSE NULL END, 8 + 79, - 58 ) * 0 / 72 * - + 9 + - + CASE + 67 WHEN - 98 THEN 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL COALESCE ( CASE + 76 WHEN - - 16 * - 72 THEN + 64 * + COUNT ( * ) WHEN + - 9 THEN - 19 ELSE NULL END, 8 + 79, - 58 ) * 0 / 72 * - + 9 + - + CASE + 67 WHEN - 98 THEN 95 END
----
NULL

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

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

query II rowsort
SELECT + 63 + + 91 col2, + ( + 1 ) + + + 26 - + 60 AS col1
----
154
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2518
SELECT ( 81 ) * - 46 + ( - COUNT( * ) ) AS col1, + 17
----
-3727
17

skipif mysql # not compatible
query II rowsort label-2518
SELECT ( 81 ) * - 46 + ( - COUNT ( * ) ) AS col1, + 17
----
-3727
17

query I rowsort
SELECT DISTINCT 4 * ( - 92 ) + + 40 col1
----
-328

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2520
SELECT ALL - + 55 DIV COUNT( * ) AS col1, 77 AS col0
----
-55
77

skipif mysql # not compatible
query II rowsort label-2520
SELECT ALL - + 55 / COUNT ( * ) AS col1, 77 AS col0
----
-55
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT + + NULLIF ( COUNT( * ), - - 44 ) * 15
----
15

skipif mysql # not compatible
query I rowsort label-2521
SELECT + + NULLIF ( COUNT ( * ), - - 44 ) * 15
----
15

query I rowsort
SELECT DISTINCT CASE + + 42 WHEN + 42 * + + 69 THEN 60 ELSE ( + 68 ) END
----
68

query I rowsort
SELECT + 5 + 83
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT - + ( 70 ) + - COUNT( * ) + + 63 * 48 + - 9 + + 18 + 55 * - 72 * COALESCE ( - ( - 93 ), 94 + + 97 * - 80 ) col1
----
-365318

skipif mysql # not compatible
query I rowsort label-2524
SELECT - + ( 70 ) + - COUNT ( * ) + + 63 * 48 + - 9 + + 18 + 55 * - 72 * COALESCE ( - ( - 93 ), 94 + + 97 * - 80 ) col1
----
-365318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2525
SELECT ALL 49 / 34 + + - NULLIF ( + + CAST( NULL AS SIGNED ), 2 + + 54 * - + 12 / - + 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL 49 / 34 + + - NULLIF ( + + CAST ( NULL AS INTEGER ), 2 + + 54 * - + 12 / - + 58 )
----
NULL

query II rowsort
SELECT + ( + 86 ) * - 21, + 27 - 80 AS col2
----
-1806
-53

query I rowsort
SELECT + 32 * + + 44 AS col0
----
1408

query I rowsort
SELECT DISTINCT CASE + 73 WHEN + 70 THEN NULL WHEN + 92 THEN NULL ELSE - 61 END AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT + - CASE + 48 WHEN - AVG ( DISTINCT + 96 ) THEN + - 39 * + 87 - - 72 ELSE NULL END + 10 / - 41 * + + NULLIF ( ( + + COUNT( * ) ), - 36 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT + - CASE + 48 WHEN - AVG ( DISTINCT + 96 ) THEN + - 39 * + 87 - - 72 ELSE NULL END + 10 / - 41 * + + NULLIF ( ( + + COUNT ( * ) ), - 36 ) col1
----
NULL

query I rowsort
SELECT DISTINCT ( 69 ) AS col0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2531
SELECT DISTINCT 61 DIV ( + + MIN( + - 33 ) ) + + 0 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT 61 / ( + + MIN ( + - 33 ) ) + + 0 col0
----
-1

query I rowsort
SELECT + 48 * - - 58 col1
----
2784

onlyif mysql # DIV for integer division: 
query I rowsort label-2533
SELECT NULLIF ( 40, - ( + 23 ) ) DIV - 29 + - 78 - 63 * + 66 + 58 AS col1
----
-4179

skipif mysql # not compatible
query I rowsort label-2533
SELECT NULLIF ( 40, - ( + 23 ) ) / - 29 + - 78 - 63 * + 66 + 58 AS col1
----
-4179

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT - COALESCE ( - + 5, - 29 + + 83 ) + - + 53 DIV - 24
----
7

skipif mysql # not compatible
query I rowsort label-2534
SELECT - COALESCE ( - + 5, - 29 + + 83 ) + - + 53 / - 24
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT - COUNT( * ) + - + 11
----
-12

skipif mysql # not compatible
query I rowsort label-2535
SELECT - COUNT ( * ) + - + 11
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2536
SELECT ALL 48 DIV 25 * + 73 * 70 * - 61 + - 53 + + + 4 * - + 7 * 75 * + COUNT( * )
----
-313863

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL 48 / 25 * + 73 * 70 * - 61 + - 53 + + + 4 * - + 7 * 75 * + COUNT ( * )
----
-313863

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2537
SELECT 42 * - - 89 * + 58 + - 69 + - - 18 + - 95 + + 67 * - 28 AS col1, 87 + - 78 * - CASE WHEN 35 IS NULL THEN - MIN( ALL - 75 ) END - CAST( NULL AS SIGNED ) AS col2
----
214782
NULL

skipif mysql # not compatible
query II rowsort label-2537
SELECT 42 * - - 89 * + 58 + - 69 + - - 18 + - 95 + + 67 * - 28 AS col1, 87 + - 78 * - CASE WHEN 35 IS NULL THEN - MIN ( ALL - 75 ) END - CAST ( NULL AS INTEGER ) AS col2
----
214782
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2538
SELECT + CAST( - 41 AS SIGNED ) DIV - - ( CAST( - - NULLIF ( - - ( + 2 ), - 70 ) AS SIGNED ) ) + + - 91 + - 58 AS col2
----
-169

skipif mysql # not compatible
query I rowsort label-2538
SELECT + CAST ( - 41 AS INTEGER ) / - - ( CAST ( - - NULLIF ( - - ( + 2 ), - 70 ) AS INTEGER ) ) + + - 91 + - 58 AS col2
----
-169

onlyif mysql # aggregate syntax: 
query II rowsort label-2539
SELECT ALL + ( - COUNT( + 67 ) ), 93 AS col2
----
-1
93

skipif mysql # not compatible
query II rowsort label-2539
SELECT ALL + ( - COUNT ( + 67 ) ), 93 AS col2
----
-1
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2540
SELECT DISTINCT + NULLIF ( + - 56, COUNT( * ) + 56 + + + 19 + + - 76 ) AS col0, - 15 + - MAX( + - 13 )
----
-56
-2

skipif mysql # not compatible
query II rowsort label-2540
SELECT DISTINCT + NULLIF ( + - 56, COUNT ( * ) + 56 + + + 19 + + - 76 ) AS col0, - 15 + - MAX ( + - 13 )
----
-56
-2

query I rowsort
SELECT - 88 * 69 AS col0
----
-6072

query I rowsort
SELECT 80 * - ( - - 86 ) + + 37 AS col1
----
-6843

query I rowsort
SELECT + 16 + ( - 39 ) AS col2
----
-23

query I rowsort
SELECT + CASE + - 36 WHEN 51 THEN - + 47 ELSE - + 16 END AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL + MAX( + 33 ) col0
----
33

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL + MAX ( + 33 ) col0
----
33

query I rowsort
SELECT - - 80 + 34
----
114

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

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

query I rowsort
SELECT DISTINCT - 77 * - 15 + - + ( + 76 ) * 11
----
319

query I rowsort
SELECT ALL NULLIF ( 29, 80 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT - SUM( + 65 ) - - - 36 * + + 33 * + 78 AS col1
----
-92729

skipif mysql # not compatible
query I rowsort label-2550
SELECT - SUM ( + 65 ) - - - 36 * + + 33 * + 78 AS col1
----
-92729

query I rowsort
SELECT + 50 * - - 16 AS col0
----
800

query I rowsort
SELECT + - 39 + - 14
----
-53

query II rowsort
SELECT DISTINCT 37 * + 77 + - - 6 col1, 63 * - 43 AS col2
----
2855
-2709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2554
SELECT ALL - CASE 34 WHEN CAST( + - 4 AS SIGNED ) THEN 80 END * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL - CASE 34 WHEN CAST ( + - 4 AS INTEGER ) THEN 80 END * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2555
SELECT + - 78 * COUNT( * ) DIV + MAX( - 59 ) + - - 15 * + 71 * - 78 * 92 AS col1
----
-7642439

skipif mysql # not compatible
query I rowsort label-2555
SELECT + - 78 * COUNT ( * ) / + MAX ( - 59 ) + - - 15 * + 71 * - 78 * 92 AS col1
----
-7642439

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT DISTINCT - ( + + 41 ) * - 81 + - COUNT( - 65 ) AS col0
----
3320

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT - ( + + 41 ) * - 81 + - COUNT ( - 65 ) AS col0
----
3320

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT + + COUNT( * ) - COUNT( DISTINCT - 8 )
----
0

skipif mysql # not compatible
query I rowsort label-2557
SELECT + + COUNT ( * ) - COUNT ( DISTINCT - 8 )
----
0

query I rowsort
SELECT DISTINCT 17 * + 86
----
1462

query II rowsort
SELECT ALL 22 + 11 + + 54 AS col2, 81 AS col1
----
87
81

query I rowsort
SELECT ALL + - 23 + 74
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT - 10 + 80 + - 67 * COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2561
SELECT - 10 + 80 + - 67 * COUNT ( * ) AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2562
SELECT 46 / 39 * + CASE + + COUNT( * ) WHEN - 25 THEN + 75 * + CAST( NULL AS SIGNED ) WHEN + - 41 + + CAST( NULL AS SIGNED ) * - 24 THEN NULL END * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2562
SELECT 46 / 39 * + CASE + + COUNT ( * ) WHEN - 25 THEN + 75 * + CAST ( NULL AS INTEGER ) WHEN + - 41 + + CAST ( NULL AS INTEGER ) * - 24 THEN NULL END * 19
----
NULL

query I rowsort
SELECT 62 - - - 54 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT ALL 12 + - - 98 * 78 * + MIN( DISTINCT + + 35 ) AS col2
----
267552

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL 12 + - - 98 * 78 * + MIN ( DISTINCT + + 35 ) AS col2
----
267552

query I rowsort
SELECT DISTINCT 71 + - - 36 + - 91 * - 28 AS col0
----
2655

query I rowsort
SELECT ALL - 75 * 87 AS col1
----
-6525

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL - SUM( - 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - SUM ( - 83 ) AS col2
----
83

query I rowsort
SELECT ALL 76 + + 12 col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT DISTINCT - CASE 72 WHEN - 25 THEN + 21 / + MIN( ALL + 34 ) - + + ( 60 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT - CASE 72 WHEN - 25 THEN + 21 / + MIN ( ALL + 34 ) - + + ( 60 ) END
----
NULL

query I rowsort
SELECT 71 + - 24 col0
----
47

query I rowsort
SELECT 6 * - - ( 19 ) AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL 70 * + - NULLIF ( ( 32 ), COUNT( * ) ) * - + COALESCE ( + ( + 39 ), + - 84 * + + 13 ) AS col1
----
87360

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL 70 * + - NULLIF ( ( 32 ), COUNT ( * ) ) * - + COALESCE ( + ( + 39 ), + - 84 * + + 13 ) AS col1
----
87360

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT + COUNT( * ) * - 35 * - ( + - 77 ) * - 97 + 25 AS col1
----
261440

skipif mysql # not compatible
query I rowsort label-2573
SELECT + COUNT ( * ) * - 35 * - ( + - 77 ) * - 97 + 25 AS col1
----
261440

onlyif mysql # DIV for integer division: 
query I rowsort label-2574
SELECT 21 DIV - 95 + + - 15 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2574
SELECT 21 / - 95 + + - 15 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT MAX( - 98 ) * + 4 + - 20 * + - ( + + COUNT( * ) ) AS col2
----
-372

skipif mysql # not compatible
query I rowsort label-2575
SELECT MAX ( - 98 ) * + 4 + - 20 * + - ( + + COUNT ( * ) ) AS col2
----
-372

query I rowsort
SELECT 6 + - 70
----
-64

query I rowsort
SELECT ALL - 39 * - - 67
----
-2613

onlyif mysql # aggregate syntax: 
query II rowsort label-2578
SELECT - 7 * CASE + ( 8 ) WHEN - + COUNT( * ) / + 3 THEN NULL WHEN + 50 THEN - - 93 + + 59 ELSE NULL END AS col0, + 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-2578
SELECT - 7 * CASE + ( 8 ) WHEN - + COUNT ( * ) / + 3 THEN NULL WHEN + 50 THEN - - 93 + + 59 ELSE NULL END AS col0, + 91
----
NULL
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2579
SELECT DISTINCT - - MAX( + 99 ) * - CASE 52 WHEN 6 * + 28 + - 27 + 79 * + CAST( - + 1 AS SIGNED ) * - 15 + + 86 THEN - - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT - - MAX ( + 99 ) * - CASE 52 WHEN 6 * + 28 + - 27 + 79 * + CAST ( - + 1 AS INTEGER ) * - 15 + + 86 THEN - - 11 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT ALL + 79 * + 35 * - CAST( 65 AS SIGNED ) AS col1
----
-179725

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL + 79 * + 35 * - CAST ( 65 AS INTEGER ) AS col1
----
-179725

query I rowsort
SELECT + 1 * + - 38 + - 98 + + 74 + 25 * 3 AS col2
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT - ( - MIN( + 29 ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2583
SELECT - ( - MIN ( + 29 ) ) AS col1
----
29

query I rowsort
SELECT ALL - + 9 + + 5 AS col0
----
-4

query I rowsort
SELECT + 14 + - 35
----
-21

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

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT + COUNT( * ) + 15 col1
----
16

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT + COUNT ( * ) + 15 col1
----
16

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

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL - 94 + + CAST ( 56 AS INTEGER )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2589
SELECT ALL + 72 + + 28 DIV 87 * - NULLIF ( + + ( - - 95 ), + - NULLIF ( + - 54, + - 18 ) ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL + 72 + + 28 / 87 * - NULLIF ( + + ( - - 95 ), + - NULLIF ( + - 54, + - 18 ) ) AS col2
----
72

query II rowsort
SELECT DISTINCT - - 67 + - 33 * + 88 + - 28 AS col0, + 89
----
-2865
89

query I rowsort
SELECT 61 + + - 8
----
53

query I rowsort
SELECT 20 + 21 - + - 57
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2593
SELECT ALL 37 + - - 61 + 76 DIV + + 78 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL 37 + - - 61 + 76 / + + 78 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT 62 + 57 + + - COUNT( * ) + + COUNT( * ) * + 62
----
180

skipif mysql # not compatible
query I rowsort label-2594
SELECT 62 + 57 + + - COUNT ( * ) + + COUNT ( * ) * + 62
----
180

query I rowsort
SELECT 71 + - 99
----
-28

query I rowsort
SELECT 74 * - - COALESCE ( - 3, - 92 ) AS col0
----
-222

query I rowsort
SELECT ALL + 88 * + ( - + 7 ) col2
----
-616

query I rowsort
SELECT 90 + + 62 * - 50 col2
----
-3010

query I rowsort
SELECT DISTINCT 36 - - - ( 37 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2600
SELECT 16 DIV + 30 + - 86
----
-86

skipif mysql # not compatible
query I rowsort label-2600
SELECT 16 / + 30 + - 86
----
-86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2602
SELECT ALL NULLIF ( - 60, - CASE + ( 59 ) WHEN - COUNT( * ) THEN NULL WHEN - 35 + + + 32 + - COUNT( * ) * + 60 * + 15 THEN NULL ELSE - AVG ( ALL - - 22 ) - CAST( NULL AS SIGNED ) + - 25 * + + 37 DIV + 8 END * 38 + COALESCE ( + CAST( NULL AS SIGNED ), + ( + ( + COUNT( * ) ) ) DIV 28 - - 63 + + COUNT( * ) + - 35 ) + - 66 * - 10 ) DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL NULLIF ( - 60, - CASE + ( 59 ) WHEN - COUNT ( * ) THEN NULL WHEN - 35 + + + 32 + - COUNT ( * ) * + 60 * + 15 THEN NULL ELSE - AVG ( ALL - - 22 ) - CAST ( NULL AS INTEGER ) + - 25 * + + 37 / + 8 END * 38 + COALESCE ( + CAST ( NULL AS INTEGER ), + ( + ( + COUNT ( * ) ) ) / 28 - - 63 + + COUNT ( * ) + - 35 ) + - 66 * - 10 ) / + 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT DISTINCT - MIN( DISTINCT - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT - MIN ( DISTINCT - 92 )
----
92

query I rowsort
SELECT ALL 17 * 76
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT + MAX( ALL - 38 ) col2
----
-38

skipif mysql # not compatible
query I rowsort label-2605
SELECT + MAX ( ALL - 38 ) col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT MIN( - 6 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-2606
SELECT MIN ( - 6 ) AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2607
SELECT + - NULLIF ( + 3, - 90 ), - CAST( + 74 AS SIGNED ) AS col1
----
-3
-74

skipif mysql # not compatible
query II rowsort label-2607
SELECT + - NULLIF ( + 3, - 90 ), - CAST ( + 74 AS INTEGER ) AS col1
----
-3
-74

query I rowsort
SELECT ALL - 50 * + - 33 + + + 58 * + 32 + - - 25 col1
----
3531

query II rowsort
SELECT + 62 * - ( + 83 ) AS col2, + 64 * - + ( - 2 ) + 99
----
-5146
227

query I rowsort
SELECT + - 74 * - 66 + + + 5 + - - 96 AS col2
----
4985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2611
SELECT ALL - + 57 + - - 66 - - CAST( - 90 AS SIGNED ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL - + 57 + - - 66 - - CAST ( - 90 AS INTEGER ) col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT ALL + + 44 DIV + 56 * - + 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL + + 44 / + 56 * - + 21 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2613
SELECT DISTINCT - - COALESCE ( + 53, + - 65 * - 5 DIV + 7 ) + + 92 * + 73 * - - 89 + + 96 AS col0
----
597873

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT - - COALESCE ( + 53, + - 65 * - 5 / + 7 ) + + 92 * + 73 * - - 89 + + 96 AS col0
----
597873

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2614
SELECT + - ( 54 ) DIV + COUNT( DISTINCT - 48 ) - 92 + + + 10 - + - 78 DIV - ( 97 ) AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-2614
SELECT + - ( 54 ) / + COUNT ( DISTINCT - 48 ) - 92 + + + 10 - + - 78 / - ( 97 ) AS col0
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2615
SELECT CAST( NULL AS SIGNED ) * + 52 + 3 + - COUNT( * ) * 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT CAST ( NULL AS INTEGER ) * + 52 + 3 + - COUNT ( * ) * 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2616
SELECT DISTINCT + - 2 * - 96 * - 49 AS col2, - COUNT( + + 30 ) AS col2
----
-9408
-1

skipif mysql # not compatible
query II rowsort label-2616
SELECT DISTINCT + - 2 * - 96 * - 49 AS col2, - COUNT ( + + 30 ) AS col2
----
-9408
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT ALL + 40 + - + COUNT( * ) + + + 93
----
132

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL + 40 + - + COUNT ( * ) + + + 93
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT ALL - COUNT( ALL + 58 ) + MIN( + ( + 92 ) )
----
91

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL - COUNT ( ALL + 58 ) + MIN ( + ( + 92 ) )
----
91

query I rowsort
SELECT DISTINCT + 65 * + 24 AS col2
----
1560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2621
SELECT - CAST( + COUNT( * ) AS SIGNED ) - MIN( + - 83 )
----
82

skipif mysql # not compatible
query I rowsort label-2621
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) - MIN ( + - 83 )
----
82

query II rowsort
SELECT - 99 col1, + 60
----
-99
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT ALL - 47 - + COUNT( * ) + 45 - 80 + COUNT( * ) * - - 56 * - COUNT( * ) * + 73 AS col0
----
-4171

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL - 47 - + COUNT ( * ) + 45 - 80 + COUNT ( * ) * - - 56 * - COUNT ( * ) * + 73 AS col0
----
-4171

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

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

query II rowsort
SELECT - 54 AS col1, - 43 AS col0
----
-54
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT + 24 * + - 75 * MIN( DISTINCT - 31 ) * - COUNT( * ) col0
----
-55800

skipif mysql # not compatible
query I rowsort label-2626
SELECT + 24 * + - 75 * MIN ( DISTINCT - 31 ) * - COUNT ( * ) col0
----
-55800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2627
SELECT ALL CASE + 26 WHEN 40 - ( + 57 ) / - 74 THEN - + COALESCE ( + COUNT( * ), 73 * 82 / - 32 * - 61 ) WHEN + ( + 89 ) * - 24 / - 33 * 38 - CAST( NULL AS SIGNED ) * - 10 THEN NULL WHEN COUNT( * ) THEN NULL ELSE 66 * - 66 END AS col2
----
-4356

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL CASE + 26 WHEN 40 - ( + 57 ) / - 74 THEN - + COALESCE ( + COUNT ( * ), 73 * 82 / - 32 * - 61 ) WHEN + ( + 89 ) * - 24 / - 33 * 38 - CAST ( NULL AS INTEGER ) * - 10 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 66 * - 66 END AS col2
----
-4356

onlyif mysql # aggregate syntax: 
query II rowsort label-2628
SELECT ALL 21 AS col0, + COUNT( * ) - + 19 AS col2
----
21
-18

skipif mysql # not compatible
query II rowsort label-2628
SELECT ALL 21 AS col0, + COUNT ( * ) - + 19 AS col2
----
21
-18

query I rowsort
SELECT - 29 - 66 AS col2
----
-95

query I rowsort
SELECT + 94 * - 30 AS col2
----
-2820

query I rowsort
SELECT DISTINCT ( + 93 ) * - 51 AS col1
----
-4743

query II rowsort
SELECT ALL + 80 AS col2, - 13 AS col1
----
80
-13

query II rowsort
SELECT DISTINCT + 31 * 38 AS col0, 45 AS col1
----
1178
45

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

query I rowsort
SELECT 22 * - - 89 + + 82 - 60 * + 2 AS col0
----
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT + - 43 - + - COUNT( * ) - + 62
----
-104

skipif mysql # not compatible
query I rowsort label-2636
SELECT + - 43 - + - COUNT ( * ) - + 62
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2637
SELECT ALL + + CASE - - 65 WHEN + 85 * - - 71 + COUNT( * ) * + + NULLIF ( - CAST( - ( - 55 ) AS SIGNED ), 65 * - + 9 * + 60 + + - 86 + 37 ) * + - 55 THEN + ( + 30 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL + + CASE - - 65 WHEN + 85 * - - 71 + COUNT ( * ) * + + NULLIF ( - CAST ( - ( - 55 ) AS INTEGER ), 65 * - + 9 * + 60 + + - 86 + 37 ) * + - 55 THEN + ( + 30 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2638
SELECT - COUNT( * ) * - 85 + + 4 + + + COUNT( * ) + - COUNT( * ) * 11, MAX( - - 84 ) AS col0
----
79
84

skipif mysql # not compatible
query II rowsort label-2638
SELECT - COUNT ( * ) * - 85 + + 4 + + + COUNT ( * ) + - COUNT ( * ) * 11, MAX ( - - 84 ) AS col0
----
79
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2639
SELECT + COALESCE ( + 66, 14 + - 84 DIV 39 * - 45 ) * + 13 * ( 32 )
----
27456

skipif mysql # not compatible
query I rowsort label-2639
SELECT + COALESCE ( + 66, 14 + - 84 / 39 * - 45 ) * + 13 * ( 32 )
----
27456

onlyif mysql # aggregate syntax: 
query II rowsort label-2640
SELECT ALL - + 82 * + COUNT( * ) + - - 85 * + 56 * - - 97 + + - 42 col0, - 65 col0
----
461596
-65

skipif mysql # not compatible
query II rowsort label-2640
SELECT ALL - + 82 * + COUNT ( * ) + - - 85 * + 56 * - - 97 + + - 42 col0, - 65 col0
----
461596
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT - + 98 DIV - - 79 + 70
----
69

skipif mysql # not compatible
query I rowsort label-2641
SELECT - + 98 / - - 79 + 70
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-2642
SELECT + 69, 42 * - + 53 + - + 85 DIV 45 AS col0
----
69
-2227

skipif mysql # not compatible
query II rowsort label-2642
SELECT + 69, 42 * - + 53 + - + 85 / 45 AS col0
----
69
-2227

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL + 5 * + COUNT( * ) * - + 80 + - 1 * + - 69
----
-331

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL + 5 * + COUNT ( * ) * - + 80 + - 1 * + - 69
----
-331

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2645
SELECT DISTINCT - + COALESCE ( + 89, + - COUNT( * ) + 80 + - 92 DIV - 11, 22 * + 91 * - 57 ) * + 21 * 3 * + 10 + + 80 + - COUNT( * ) AS col1
----
-55991

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT - + COALESCE ( + 89, + - COUNT ( * ) + 80 + - 92 / - 11, 22 * + 91 * - 57 ) * + 21 * 3 * + 10 + + 80 + - COUNT ( * ) AS col1
----
-55991

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2646
SELECT ALL + - 62 * - + 69 + + 24 * CAST( - 74 AS SIGNED ) * + - 11 AS col0, 40
----
23814
40

skipif mysql # not compatible
query II rowsort label-2646
SELECT ALL + - 62 * - + 69 + + 24 * CAST ( - 74 AS INTEGER ) * + - 11 AS col0, 40
----
23814
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT DISTINCT + - SUM( DISTINCT + + 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT + - SUM ( DISTINCT + + 90 ) AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2648
SELECT 57 * 71 + + AVG ( ALL 22 ) * + - 14 * + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + SUM( DISTINCT - 66 ) + - - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT 57 * 71 + + AVG ( ALL 22 ) * + - 14 * + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + SUM ( DISTINCT - 66 ) + - - 97 AS col1
----
NULL

query I rowsort
SELECT ALL 29 * + + 6 + - ( 29 ) AS col2
----
145

query I rowsort
SELECT + + CASE - + 58 WHEN + 9 THEN - 65 + + 59 WHEN 19 THEN - + 46 * + 73 END + + + 36 * 24 col1
----
NULL

query I rowsort
SELECT + + 66 + + 70 AS col2
----
136

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL 49 * - 59 - - - COUNT( 52 )
----
-2892

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL 49 * - 59 - - - COUNT ( 52 )
----
-2892

query I rowsort
SELECT + 99 * - 54
----
-5346

onlyif mysql # aggregate syntax: 
query II rowsort label-2656
SELECT MIN( DISTINCT + 91 ), MIN( - - ( + 68 ) ) AS col2
----
91
68

skipif mysql # not compatible
query II rowsort label-2656
SELECT MIN ( DISTINCT + 91 ), MIN ( - - ( + 68 ) ) AS col2
----
91
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT ALL MAX( DISTINCT - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL MAX ( DISTINCT - 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT + MIN( + 17 ) + - 38 + 72
----
51

skipif mysql # not compatible
query I rowsort label-2659
SELECT + MIN ( + 17 ) + - 38 + 72
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2660
SELECT - 24 DIV + + 39 * - 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2660
SELECT - 24 / + + 39 * - 84 AS col1
----
0

query I rowsort
SELECT + 36 + + - 61
----
-25

query I rowsort
SELECT ALL - 16 * 69
----
-1104

query I rowsort
SELECT ALL 11 * 32
----
352

onlyif mysql # DIV for integer division: 
query I rowsort label-2664
SELECT - 82 + - + 2 + - + 23 DIV - NULLIF ( 34, + 2 ) * + ( + 40 ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-2664
SELECT - 82 + - + 2 + - + 23 / - NULLIF ( 34, + 2 ) * + ( + 40 ) col1
----
-84

query I rowsort
SELECT - 58 + - 38
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL + 26 + + + 23 / + + CASE - - 10 WHEN - 74 THEN + 27 + 3 END * + + 97 + + COUNT( * ) + + 50 - - - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + 26 + + + 23 / + + CASE - - 10 WHEN - 74 THEN + 27 + 3 END * + + 97 + + COUNT ( * ) + + 50 - - - 46 AS col1
----
NULL

query I rowsort
SELECT - 46 * - - 57 AS col2
----
-2622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2668
SELECT DISTINCT + 35 DIV + 43 + ( COALESCE ( - 92, 50, - + 83 + + 24 ) ) * - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT + 35 / + 43 + ( COALESCE ( - 92, 50, - + 83 + + 24 ) ) * - COUNT ( * )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2669
SELECT ALL - + 4 DIV + COUNT( * ) + + 81 + + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL - + 4 / + COUNT ( * ) + + 81 + + COUNT ( * )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2670
SELECT + ( + CAST( - - 44 AS SIGNED ) ) + - 41 + + 28 * 97
----
2719

skipif mysql # not compatible
query I rowsort label-2670
SELECT + ( + CAST ( - - 44 AS INTEGER ) ) + - 41 + + 28 * 97
----
2719

onlyif mysql # aggregate syntax: 
query II rowsort label-2671
SELECT DISTINCT - - COUNT( * ) + - COUNT( * ) col1, 26 * + + 22 + + 57 + + - 20 + + 97 * - + 0 + + NULLIF ( + - 55, COUNT( * ) + - 19 ) * - 58 AS col2
----
0
3799

skipif mysql # not compatible
query II rowsort label-2671
SELECT DISTINCT - - COUNT ( * ) + - COUNT ( * ) col1, 26 * + + 22 + + 57 + + - 20 + + 97 * - + 0 + + NULLIF ( + - 55, COUNT ( * ) + - 19 ) * - 58 AS col2
----
0
3799

onlyif mysql # DIV for integer division: 
query I rowsort label-2672
SELECT ALL + + 73 + - - 90 DIV + 51 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL + + 73 + - - 90 / + 51 AS col0
----
74

query I rowsort
SELECT ALL - 67 * 45
----
-3015

query I rowsort
SELECT 57 * + - 63 AS col2
----
-3591

query I rowsort
SELECT ALL - 56 + - ( 37 ) * - 17
----
573

query I rowsort
SELECT DISTINCT - - 60 * NULLIF ( + + 85, + 14 ) + + 65 col2
----
5165

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2678
SELECT 36 DIV - 12 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2678
SELECT 36 / - 12 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT + - MIN( DISTINCT + - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-2679
SELECT + - MIN ( DISTINCT + - 87 )
----
87

query I rowsort
SELECT ALL 0 - + 73 + 52 * ( 30 ) * - 23 + + + 47 AS col2
----
-35906

onlyif mysql # DIV for integer division: 
query II rowsort label-2681
SELECT ALL + 24 DIV - 87, + 80 - + 46 + + 17 AS col1
----
0
51

skipif mysql # not compatible
query II rowsort label-2681
SELECT ALL + 24 / - 87, + 80 - + 46 + + 17 AS col1
----
0
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT DISTINCT - 13 DIV + - 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT - 13 / + - 19 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT + 89 * 8 * + - COALESCE ( NULLIF ( + 26, - 41 + - - 58 * - 77 ), 36 * 65 ) + + + MIN( 76 )
----
-18436

skipif mysql # not compatible
query I rowsort label-2683
SELECT + 89 * 8 * + - COALESCE ( NULLIF ( + 26, - 41 + - - 58 * - 77 ), 36 * 65 ) + + + MIN ( 76 )
----
-18436

query I rowsort
SELECT + CASE - 55 WHEN - 57 THEN - 28 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2685
SELECT ALL + CAST( 47 AS SIGNED ) - MIN( ALL + 19 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL + CAST ( 47 AS INTEGER ) - MIN ( ALL + 19 ) AS col2
----
28

query II rowsort
SELECT ALL ( + + 68 ) - - - 81, + 4 AS col0
----
-13
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2687
SELECT ALL MIN( - - ( ( - CAST( NULL AS DECIMAL ) ) ) ) * CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL MIN ( - - ( ( - CAST ( NULL AS REAL ) ) ) ) * CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2688
SELECT 66 * 10 + + CAST( NULL AS SIGNED ) + - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2688
SELECT 66 * 10 + + CAST ( NULL AS INTEGER ) + - - 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2689
SELECT NULLIF ( 91, - 26 * 38 * - ( + SUM( DISTINCT + 94 ) ) * + NULLIF ( + - SUM( - - 89 ), + + MIN( DISTINCT 57 ) * + + CAST( NULL AS SIGNED ) + + - COUNT( * ) ) * - ( - ( + 8 ) ) ) + + 20, - 61 AS col2
----
111
-61

skipif mysql # not compatible
query II rowsort label-2689
SELECT NULLIF ( 91, - 26 * 38 * - ( + SUM ( DISTINCT + 94 ) ) * + NULLIF ( + - SUM ( - - 89 ), + + MIN ( DISTINCT 57 ) * + + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) ) * - ( - ( + 8 ) ) ) + + 20, - 61 AS col2
----
111
-61

query I rowsort
SELECT 90 * - 97
----
-8730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT 25 + + + CASE - - 96 WHEN - + 6 THEN 56 ELSE - CAST( NULL AS SIGNED ) * - AVG ( ALL + 93 ) END + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT 25 + + + CASE - - 96 WHEN - + 6 THEN 56 ELSE - CAST ( NULL AS INTEGER ) * - AVG ( ALL + 93 ) END + 16 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 53 * + 89 AS col2
----
4717

query I rowsort
SELECT 9 - - 48 * + 7 * + 55
----
18489

query I rowsort
SELECT 15 * + - 26
----
-390

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2695
SELECT ALL - CAST( + AVG ( 39 ) AS SIGNED ) DIV + 71, + 13 AS col1
----
0
13

skipif mysql # not compatible
query II rowsort label-2695
SELECT ALL - CAST ( + AVG ( 39 ) AS INTEGER ) / + 71, + 13 AS col1
----
0
13

query I rowsort
SELECT ALL 40 + 18 AS col2
----
58

query I rowsort
SELECT 5 * 76
----
380

query I rowsort
SELECT 41 * - 78 * + 78 * - - 67 AS col2
----
-16712748

query I rowsort
SELECT ALL 58 + 24 * 87
----
2146

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2703
SELECT 60 DIV + 38
----
1

skipif mysql # not compatible
query I rowsort label-2703
SELECT 60 / + 38
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT ALL + MIN( ( - NULLIF ( - ( + 91 ), + + 15 ) ) ) + - 71 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL + MIN ( ( - NULLIF ( - ( + 91 ), + + 15 ) ) ) + - 71 AS col2
----
20

query I rowsort
SELECT ALL 21 + + 61
----
82

query II rowsort
SELECT + + 56 AS col0, 24 + 14
----
56
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2707
SELECT DISTINCT - + 43 AS col2, 48 - MAX( CAST( NULL AS SIGNED ) ) AS col1
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-2707
SELECT DISTINCT - + 43 AS col2, 48 - MAX ( CAST ( NULL AS INTEGER ) ) AS col1
----
-43
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2708
SELECT ALL - 10 + - 5 + + CAST( - + AVG ( + 31 ) AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL - 10 + - 5 + + CAST ( - + AVG ( + 31 ) AS INTEGER )
----
-46

query II rowsort
SELECT ALL - 92 AS col0, + 95 AS col1
----
-92
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2710
SELECT CASE + 21 WHEN + CAST( + NULLIF ( - 18, + 82 ) AS SIGNED ) * COUNT( * ) + + - 23 + - NULLIF ( - 77, + 22 * - 48 * 28 ) THEN + COUNT( * ) ELSE + - 34 * + COALESCE ( CAST( + SUM( - + 80 ) AS SIGNED ), + ( + 24 ) * + - 13 + - 57 ) * - 81 * COUNT( * ) + + ( 32 ) * - 31 * + NULLIF ( + - 22, - 89 ) * + 17 - - + 7 END
----
150695

skipif mysql # not compatible
query I rowsort label-2710
SELECT CASE + 21 WHEN + CAST ( + NULLIF ( - 18, + 82 ) AS INTEGER ) * COUNT ( * ) + + - 23 + - NULLIF ( - 77, + 22 * - 48 * 28 ) THEN + COUNT ( * ) ELSE + - 34 * + COALESCE ( CAST ( + SUM ( - + 80 ) AS INTEGER ), + ( + 24 ) * + - 13 + - 57 ) * - 81 * COUNT ( * ) + + ( 32 ) * - 31 * + NULLIF ( + - 22, - 89 ) * + 17 - - + 7 END
----
150695

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT ALL - - MAX( DISTINCT - 41 ) - - ( + 44 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL - - MAX ( DISTINCT - 41 ) - - ( + 44 ) AS col0
----
3

query I rowsort
SELECT ( - 59 ) * - 41
----
2419

query I rowsort
SELECT + ( - ( + + 11 ) ) + + + 34 * ( + 36 ) AS col2
----
1213

query I rowsort
SELECT + 86 * ( ( 83 ) ) + + 76 - - ( - 74 )
----
7140

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT DISTINCT - + COUNT( * ) * + ( + + 75 ) * + 93
----
-6975

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT - + COUNT ( * ) * + ( + + 75 ) * + 93
----
-6975

query I rowsort
SELECT ALL - - ( + 1 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2717
SELECT ALL - - 91 * + - 46 * CAST( NULL AS SIGNED ) col2, 76 * + COUNT( * ) + - - 38
----
NULL
114

skipif mysql # not compatible
query II rowsort label-2717
SELECT ALL - - 91 * + - 46 * CAST ( NULL AS INTEGER ) col2, 76 * + COUNT ( * ) + - - 38
----
NULL
114

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

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

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

skipif mysql # not compatible
query I rowsort label-2719
SELECT 90 / + COUNT ( * ) AS col1
----
90

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

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

query I rowsort
SELECT 89 * + 22 + + 57 AS col2
----
2015

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT DISTINCT - 53 + + SUM( ALL + 80 ) + - COUNT( * ) + MAX( ALL 2 ) + - - 86
----
114

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT - 53 + + SUM ( ALL + 80 ) + - COUNT ( * ) + MAX ( ALL 2 ) + - - 86
----
114

query I rowsort
SELECT DISTINCT - 44 + 15 * 69 AS col1
----
991

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2724
SELECT DISTINCT CASE 74 WHEN 42 THEN + + 9 WHEN COUNT( * ) * - - CAST( + CASE - + 21 WHEN - 56 * + + 56 THEN NULL ELSE - SUM( ALL - 0 ) END AS SIGNED ) THEN NULL ELSE NULL END + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT CASE 74 WHEN 42 THEN + + 9 WHEN COUNT ( * ) * - - CAST ( + CASE - + 21 WHEN - 56 * + + 56 THEN NULL ELSE - SUM ( ALL - 0 ) END AS INTEGER ) THEN NULL ELSE NULL END + 29 AS col0
----
NULL

query I rowsort
SELECT ALL 53 * - 41 AS col0
----
-2173

query I rowsort
SELECT ALL 64 + + 44
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT DISTINCT COALESCE ( - COUNT( * ), 97 * - + MAX( - 4 ) ) + - 55 + - ( + ( + MIN( 37 ) ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT COALESCE ( - COUNT ( * ), 97 * - + MAX ( - 4 ) ) + - 55 + - ( + ( + MIN ( 37 ) ) ) AS col0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2728
SELECT ( - ( COUNT( * ) ) ) - 5 DIV + 22 * + - 17 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2728
SELECT ( - ( COUNT ( * ) ) ) - 5 / + 22 * + - 17 AS col0
----
-1

query I rowsort
SELECT ALL 17 * + ( 88 )
----
1496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2730
SELECT 50 * + 54 * - 44 * + ( ( ( - COUNT( DISTINCT - CASE + 63 WHEN 65 THEN CAST( NULL AS SIGNED ) / + - 11 / + 81 * + 84 + - 90 WHEN + + 16 THEN ( - 91 ) * - 38 * - + 66 + + 63 * - 65 + - 23 WHEN 68 THEN NULL ELSE NULL END ) ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2730
SELECT 50 * + 54 * - 44 * + ( ( ( - COUNT ( DISTINCT - CASE + 63 WHEN 65 THEN CAST ( NULL AS INTEGER ) / + - 11 / + 81 * + 84 + - 90 WHEN + + 16 THEN ( - 91 ) * - 38 * - + 66 + + 63 * - 65 + - 23 WHEN 68 THEN NULL ELSE NULL END ) ) ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2731
SELECT - MAX( DISTINCT 5 ) AS col1, 51 AS col0
----
-5
51

skipif mysql # not compatible
query II rowsort label-2731
SELECT - MAX ( DISTINCT 5 ) AS col1, 51 AS col0
----
-5
51

query I rowsort
SELECT ( ( 97 ) ) + 29 AS col0
----
126

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

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

query I rowsort
SELECT DISTINCT ( 80 ) AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2735
SELECT ALL + CAST( NULL AS SIGNED ) - 48 AS col1, 38 + SUM( DISTINCT + 63 ) + + + 78 + - - 46 AS col2
----
NULL
225

skipif mysql # not compatible
query II rowsort label-2735
SELECT ALL + CAST ( NULL AS INTEGER ) - 48 AS col1, 38 + SUM ( DISTINCT + 63 ) + + + 78 + - - 46 AS col2
----
NULL
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2736
SELECT ALL - + COALESCE ( + + CASE - + 16 WHEN - 51 - COUNT( * ) - - NULLIF ( + 46, 66 * ( CAST( NULL AS SIGNED ) ) ) + - - 89 + + 42 THEN + CAST( NULL AS SIGNED ) END, + + 62 ) * 61 + - 29 + + MIN( + 84 ) * 26 * + 92 * - CASE - - 29 WHEN 85 THEN + CASE - + 26 WHEN - 36 THEN + 6 * - - CASE WHEN NOT NULL IN ( - CASE 93 WHEN + 0 THEN - - 93 + + - 43 * + ( + ( + ( 28 ) ) ) END ) THEN - 50 END ELSE NULL END ELSE NULL END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL - + COALESCE ( + + CASE - + 16 WHEN - 51 - COUNT ( * ) - - NULLIF ( + 46, 66 * ( CAST ( NULL AS INTEGER ) ) ) + - - 89 + + 42 THEN + CAST ( NULL AS INTEGER ) END, + + 62 ) * 61 + - 29 + + MIN ( + 84 ) * 26 * + 92 * - CASE - - 29 WHEN 85 THEN + CASE - + 26 WHEN - 36 THEN + 6 * - - CASE WHEN NOT NULL IN ( - CASE 93 WHEN + 0 THEN - - 93 + + - 43 * + ( + ( + ( 28 ) ) ) END ) THEN - 50 END ELSE NULL END ELSE NULL END * COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2737
SELECT DISTINCT 37 - - CAST( + 5 AS SIGNED ) * + COALESCE ( + 40, + 28 ) + - 94 + - 72 - - COUNT( - 83 ) DIV - + 63 * + 16 AS col1, 58
----
71
58

skipif mysql # not compatible
query II rowsort label-2737
SELECT DISTINCT 37 - - CAST ( + 5 AS INTEGER ) * + COALESCE ( + 40, + 28 ) + - 94 + - 72 - - COUNT ( - 83 ) / - + 63 * + 16 AS col1, 58
----
71
58

onlyif mysql # DIV for integer division: 
query II rowsort label-2738
SELECT DISTINCT 50 DIV + NULLIF ( + 71, 69 ) AS col2, 50
----
0
50

skipif mysql # not compatible
query II rowsort label-2738
SELECT DISTINCT 50 / + NULLIF ( + 71, 69 ) AS col2, 50
----
0
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2739
SELECT + + 28 DIV + 52 * + 1 * - 20 + - 83 * - 49 + - MAX( DISTINCT + 22 ) AS col1
----
4045

skipif mysql # not compatible
query I rowsort label-2739
SELECT + + 28 / + 52 * + 1 * - 20 + - 83 * - 49 + - MAX ( DISTINCT + 22 ) AS col1
----
4045

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT + - MIN( - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-2741
SELECT + - MIN ( - 69 )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT + CAST( - 0 AS SIGNED ) * - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2742
SELECT + CAST ( - 0 AS INTEGER ) * - 73 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2743
SELECT ALL - 42 * + 55 + + CASE - CAST( 51 AS SIGNED ) WHEN 28 THEN + COUNT( * ) * - 51 + - ( + + 51 ) * - MIN( + 90 ) ELSE ( 98 ) + + + SUM( ALL - - CAST( NULL AS SIGNED ) ) END * + ( 78 ) - + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL - 42 * + 55 + + CASE - CAST ( 51 AS INTEGER ) WHEN 28 THEN + COUNT ( * ) * - 51 + - ( + + 51 ) * - MIN ( + 90 ) ELSE ( 98 ) + + + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) END * + ( 78 ) - + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT 39 * + + 98 * - + COUNT( * )
----
-3822

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT 39 * + + 98 * - + COUNT ( * )
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT + 96 * 41 * - 80 + - 75 + + 69 - + 71 * - 43 * - MIN( DISTINCT 3 ) + - + NULLIF ( - 53, + + 74 / - 94 )
----
-323992

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT + 96 * 41 * - 80 + - 75 + + 69 - + 71 * - 43 * - MIN ( DISTINCT 3 ) + - + NULLIF ( - 53, + + 74 / - 94 )
----
-323992

query I rowsort
SELECT - - 27 * 66 col0
----
1782

query I rowsort
SELECT + NULLIF ( 96, - + 2 )
----
96

query II rowsort
SELECT 57 * 37 + - 90 AS col1, - 26
----
2019
-26

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

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

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

query I rowsort
SELECT - 6 + - 42 col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT 3 * 92 * + - 40 - COUNT( * )
----
-11041

skipif mysql # not compatible
query I rowsort label-2752
SELECT 3 * 92 * + - 40 - COUNT ( * )
----
-11041

onlyif mysql # aggregate syntax: 
query II rowsort label-2753
SELECT ALL + 45 AS col0, - COUNT( * )
----
45
-1

skipif mysql # not compatible
query II rowsort label-2753
SELECT ALL + 45 AS col0, - COUNT ( * )
----
45
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2754
SELECT ALL + COUNT( * ) * 95 + - + 77 + - COALESCE ( - 95, - + COUNT( 76 ) ) + + 61 AS col2, + 50 AS col2
----
174
50

skipif mysql # not compatible
query II rowsort label-2754
SELECT ALL + COUNT ( * ) * 95 + - + 77 + - COALESCE ( - 95, - + COUNT ( 76 ) ) + + 61 AS col2, + 50 AS col2
----
174
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2755
SELECT DISTINCT 10 AS col0, ( - COUNT( * ) ), CAST( + 54 AS SIGNED ) * + 79 + + COUNT( * ) + + 35 AS col1
----
10
-1
4302

skipif mysql # not compatible
query III rowsort label-2755
SELECT DISTINCT 10 AS col0, ( - COUNT ( * ) ), CAST ( + 54 AS INTEGER ) * + 79 + + COUNT ( * ) + + 35 AS col1
----
10
-1
4302

onlyif mysql # DIV for integer division: 
query I rowsort label-2756
SELECT ALL - 3 * + + 10 * - 76 + - 3 DIV + + 66 AS col1
----
2280

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL - 3 * + + 10 * - 76 + - 3 / + + 66 AS col1
----
2280

query I rowsort
SELECT - 29 + 38 AS col0
----
9

query I rowsort
SELECT + 52 + + + 90
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-2759
SELECT DISTINCT - NULLIF ( + - 41, - + COUNT( * ) + - 23 ) + - 81, - 93 * + 56 AS col2
----
-40
-5208

skipif mysql # not compatible
query II rowsort label-2759
SELECT DISTINCT - NULLIF ( + - 41, - + COUNT ( * ) + - 23 ) + - 81, - 93 * + 56 AS col2
----
-40
-5208

query I rowsort
SELECT DISTINCT ( - NULLIF ( + 78, - + 66 ) ) AS col1
----
-78

query I rowsort
SELECT - COALESCE ( - 74, - 5 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2762
SELECT DISTINCT CAST( CASE COUNT( * ) WHEN + + 56 / - 54 * + 9 THEN + 54 + - COUNT( - 49 ) END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT CAST ( CASE COUNT ( * ) WHEN + + 56 / - 54 * + 9 THEN + 54 + - COUNT ( - 49 ) END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 11 + - + 0 AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2764
SELECT DISTINCT - 22 + - 9 * - 12 DIV - + 6 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT - 22 + - 9 * - 12 / - + 6 AS col0
----
-40

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2766
SELECT DISTINCT + 50 DIV + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT + 50 / + 95 AS col1
----
0

query I rowsort
SELECT ALL 77 * + - 87
----
-6699

query I rowsort
SELECT DISTINCT - + 16 - 65 * - - 80 AS col0
----
-5216

query I rowsort
SELECT - + 5 * 3 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT DISTINCT + MIN( DISTINCT - ( - 26 ) ) * - COUNT( ALL - 59 )
----
-26

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT + MIN ( DISTINCT - ( - 26 ) ) * - COUNT ( ALL - 59 )
----
-26

query I rowsort
SELECT + 27 * 16 * ( 96 )
----
41472

query I rowsort
SELECT DISTINCT + + 65 * + 75
----
4875

query I rowsort
SELECT + - 87 + - 10 + - 62 * - - 2
----
-221

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

skipif mysql # not compatible
query I rowsort label-2774
SELECT + ( - 20 ) - + COUNT ( * ) * - 31 AS col2
----
11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2776
SELECT + ( + 36 ) DIV + COUNT( * ) col2, - COUNT( * )
----
36
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2777
SELECT COUNT( * ) DIV - 63 + - + 78 + + 64 * + 64 col0
----
4018

skipif mysql # not compatible
query I rowsort label-2777
SELECT COUNT ( * ) / - 63 + - + 78 + + 64 * + 64 col0
----
4018

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT - COUNT( * ) * + 31 * COUNT( * ) - - + 85 + 70 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-2778
SELECT - COUNT ( * ) * + 31 * COUNT ( * ) - - + 85 + 70 AS col1
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT DISTINCT - - 44 DIV + ( - + 91 ) + + 90 + + - 25 * + 89 DIV + 86 + - 90
----
-25

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT - - 44 / + ( - + 91 ) + + 90 + + - 25 * + 89 / + 86 + - 90
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2780
SELECT ALL + 85 DIV + COUNT( * ) + + 99
----
184

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL + 85 / + COUNT ( * ) + + 99
----
184

query I rowsort
SELECT + 89 + + + 65 AS col0
----
154

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2783
SELECT + 65 + + + 46 * + 89 + - 24 + - COALESCE ( - - 54, + - 64 + + 29 + - 75 + 3 * - + 57 ) + COALESCE ( - CASE 95 WHEN ( - 80 ) * 79 THEN 43 DIV + 98 ELSE NULL END, + 60 )
----
4141

skipif mysql # not compatible
query I rowsort label-2783
SELECT + 65 + + + 46 * + 89 + - 24 + - COALESCE ( - - 54, + - 64 + + 29 + - 75 + 3 * - + 57 ) + COALESCE ( - CASE 95 WHEN ( - 80 ) * 79 THEN 43 / + 98 ELSE NULL END, + 60 )
----
4141

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT + 91 * + 83 + CASE + NULLIF ( + 59, + 28 ) WHEN + 13 + + - 89 THEN - COUNT( * ) WHEN 52 - - SUM( - 21 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT + 91 * + 83 + CASE + NULLIF ( + 59, + 28 ) WHEN + 13 + + - 89 THEN - COUNT ( * ) WHEN 52 - - SUM ( - 21 ) THEN NULL END
----
NULL

query II rowsort
SELECT + 3, 74 col2
----
3
74

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

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

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

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

query I rowsort
SELECT NULLIF ( 56, 25 ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2790
SELECT DISTINCT - 76 * - SUM( COALESCE ( + + 10, 40, + - 76 ) ) + 92 * + NULLIF ( - + CAST( NULL AS DECIMAL ), + MIN( DISTINCT - 22 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - 76 * - SUM ( COALESCE ( + + 10, 40, + - 76 ) ) + 92 * + NULLIF ( - + CAST ( NULL AS REAL ), + MIN ( DISTINCT - 22 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2791
SELECT ALL - ( + + 30 ) - - NULLIF ( + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ), - - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL - ( + + 30 ) - - NULLIF ( + CAST ( CAST ( NULL AS INTEGER ) AS REAL ), - - COUNT ( * ) ) AS col2
----
NULL

query II rowsort
SELECT 9, 61 * + 21 AS col1
----
9
1281

query I rowsort
SELECT 44 * - + 19 AS col0
----
-836

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

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

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL - COUNT ( * ) - + 33 * 85 + - COUNT ( * ) * + 84 col2
----
-2890

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

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

query I rowsort
SELECT 66 - 28
----
38

query I rowsort
SELECT ALL + + 51 * - 67 - - 24
----
-3393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2799
SELECT 11 + COUNT( DISTINCT + + CAST( + - 95 AS SIGNED ) ) + 48 * - 80 DIV + - COUNT( ALL - + 87 ) - + 23 + + - 35 DIV + 21 + + 13 + + ( - - ( + ( - 57 ) ) ) + - 63 - + + COUNT( * ) * - SUM( + 73 ) DIV + + 13 + - ( + 32 ) * 92 col0, 69 AS col0
----
782
69

skipif mysql # not compatible
query II rowsort label-2799
SELECT 11 + COUNT ( DISTINCT + + CAST ( + - 95 AS INTEGER ) ) + 48 * - 80 / + - COUNT ( ALL - + 87 ) - + 23 + + - 35 / + 21 + + 13 + + ( - - ( + ( - 57 ) ) ) + - 63 - + + COUNT ( * ) * - SUM ( + 73 ) / + + 13 + - ( + 32 ) * 92 col0, 69 AS col0
----
782
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2800
SELECT 26, 82 + + 65 + NULLIF ( + CAST( NULL AS SIGNED ), + - 63 / 99 ) * 11 * ( + 52 ) + + - ( - 68 ) AS col2
----
26
NULL

skipif mysql # not compatible
query II rowsort label-2800
SELECT 26, 82 + + 65 + NULLIF ( + CAST ( NULL AS INTEGER ), + - 63 / 99 ) * 11 * ( + 52 ) + + - ( - 68 ) AS col2
----
26
NULL

query I rowsort
SELECT 0 + + 55 AS col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2802
SELECT COUNT( * ) * + - CASE - 65 WHEN - 14 THEN NULL WHEN 11 THEN + - 87 WHEN SUM( - 85 ) THEN ( 33 ) * 39 - + + 46 END AS col0, + 36 - 50
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-2802
SELECT COUNT ( * ) * + - CASE - 65 WHEN - 14 THEN NULL WHEN 11 THEN + - 87 WHEN SUM ( - 85 ) THEN ( 33 ) * 39 - + + 46 END AS col0, + 36 - 50
----
NULL
-14

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

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

query II rowsort
SELECT ALL + 93 col0, 52
----
93
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2805
SELECT DISTINCT 39, - ( + - 96 ) + - + COUNT( * ) AS col2
----
39
95

skipif mysql # not compatible
query II rowsort label-2805
SELECT DISTINCT 39, - ( + - 96 ) + - + COUNT ( * ) AS col2
----
39
95

query I rowsort
SELECT ALL + ( - 7 ) * - 71 AS col1
----
497

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2808
SELECT ALL - 96 DIV - + CAST( - + 73 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL - 96 / - + CAST ( - + 73 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2809
SELECT DISTINCT COUNT( * ) AS col2, - 86 DIV 60 * + 90 + + - 27
----
1
-117

skipif mysql # not compatible
query II rowsort label-2809
SELECT DISTINCT COUNT ( * ) AS col2, - 86 / 60 * + 90 + + - 27
----
1
-117

query I rowsort
SELECT DISTINCT + NULLIF ( + 43, 84 * - + 92 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2811
SELECT - 96, + 3 * - - CAST( NULL AS SIGNED ) + + 20 * + 22 - + + 20 + - 5 AS col2
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-2811
SELECT - 96, + 3 * - - CAST ( NULL AS INTEGER ) + + 20 * + 22 - + + 20 + - 5 AS col2
----
-96
NULL

query I rowsort
SELECT ALL - 46 + 35 AS col0
----
-11

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

skipif mysql # not compatible
query I rowsort label-2813
SELECT COUNT ( * ) / + - 5 + + 56
----
56

query I rowsort
SELECT ALL 57 * + - 57 * 31
----
-100719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2815
SELECT - COUNT( * ) * + + CASE + CAST( NULL AS SIGNED ) WHEN ( + 80 ) + + 37 + 23 + + - NULLIF ( + - ( - - COUNT( * ) ), + 33 ) * 77 * - 43 * + + 60 THEN + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT - COUNT ( * ) * + + CASE + CAST ( NULL AS INTEGER ) WHEN ( + 80 ) + + 37 + 23 + + - NULLIF ( + - ( - - COUNT ( * ) ), + 33 ) * 77 * - 43 * + + 60 THEN + 72 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2816
SELECT ALL MIN( ALL 80 ) + + 71 + + + 87 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL MIN ( ALL 80 ) + + 71 + + + 87 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - + COALESCE ( 5, + 70 ) AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2820
SELECT ALL + + 4 * - COALESCE ( - + CAST( + COUNT( * ) AS SIGNED ), 74 ) DIV - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL + + 4 * - COALESCE ( - + CAST ( + COUNT ( * ) AS INTEGER ), 74 ) / - 78 AS col2
----
0

query I rowsort
SELECT DISTINCT - 57 + 48 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2822
SELECT ALL - SUM( DISTINCT 61 ) AS col1, NULLIF ( - 0, ( ( - 34 ) ) ) - ( - COUNT( 37 ) ) * + - 8 AS col0
----
-61
-8

skipif mysql # not compatible
query II rowsort label-2822
SELECT ALL - SUM ( DISTINCT 61 ) AS col1, NULLIF ( - 0, ( ( - 34 ) ) ) - ( - COUNT ( 37 ) ) * + - 8 AS col0
----
-61
-8

query I rowsort
SELECT ALL 48 + 38 * + 76 AS col2
----
2936

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT 35 * + COUNT( * ) * ( - 35 ) * + - ( + 81 ) AS col1
----
99225

skipif mysql # not compatible
query I rowsort label-2824
SELECT 35 * + COUNT ( * ) * ( - 35 ) * + - ( + 81 ) AS col1
----
99225

query I rowsort
SELECT DISTINCT 76 * - ( 54 )
----
-4104

query I rowsort
SELECT ALL 94 - 50
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT - AVG ( + + 55 ) * - AVG ( ALL + ( 16 ) ) / - 12 - + - CASE SUM( ALL - - 64 ) WHEN + 21 THEN 94 ELSE NULL END + + 23 - - - 94 * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2827
SELECT - AVG ( + + 55 ) * - AVG ( ALL + ( 16 ) ) / - 12 - + - CASE SUM ( ALL - - 64 ) WHEN + 21 THEN 94 ELSE NULL END + + 23 - - - 94 * + 50
----
NULL

query I rowsort
SELECT ALL 88 * + - 25 AS col0
----
-2200

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ( + + MAX( + 54 ) ) + - + 43 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-2829
SELECT ( + + MAX ( + 54 ) ) + - + 43 AS col1
----
11

query I rowsort
SELECT 50 * + NULLIF ( - 16, + 83 ) AS col1
----
-800

query I rowsort
SELECT ALL 75 * 99 AS col2
----
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL ( - + MIN( - + 49 ) ) - 55 * + NULLIF ( COUNT( * ), 23 / - - ( + 92 ) * 20 * - + 8 + - 90 )
----
-6

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL ( - + MIN ( - + 49 ) ) - 55 * + NULLIF ( COUNT ( * ), 23 / - - ( + 92 ) * 20 * - + 8 + - 90 )
----
-6

query I rowsort
SELECT 75 + - + 25 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT COUNT( * ) * + + 17 * 95
----
1615

skipif mysql # not compatible
query I rowsort label-2834
SELECT COUNT ( * ) * + + 17 * 95
----
1615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2835
SELECT + CASE + COALESCE ( + 92, 10 + 15 + 1 * - 23 * + 83 + + 10 / + + 25 - + CASE - + 91 WHEN + - 84 THEN 58 + CAST( - SUM( - - 22 ) AS SIGNED ) + - CAST( NULL AS SIGNED ) WHEN ( + - 24 ) / 86 / 84 THEN NULL WHEN + - 8 THEN NULL END / + 68 ) WHEN 45 * + - 68 + COUNT( * ) - + - MAX( ALL + + 15 ) * + 26 * + 47 - 24 * - 28 THEN - 14 + + 89 WHEN + 98 * 19 + - ( + COUNT( * ) + + 17 ) * + 20 THEN NULL WHEN 67 + - NULLIF ( + 81 + - CAST( NULL AS SIGNED ) * COUNT( * ), - 36 - + 63 ) THEN NULL END + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT + CASE + COALESCE ( + 92, 10 + 15 + 1 * - 23 * + 83 + + 10 / + + 25 - + CASE - + 91 WHEN + - 84 THEN 58 + CAST ( - SUM ( - - 22 ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) WHEN ( + - 24 ) / 86 / 84 THEN NULL WHEN + - 8 THEN NULL END / + 68 ) WHEN 45 * + - 68 + COUNT ( * ) - + - MAX ( ALL + + 15 ) * + 26 * + 47 - 24 * - 28 THEN - 14 + + 89 WHEN + 98 * 19 + - ( + COUNT ( * ) + + 17 ) * + 20 THEN NULL WHEN 67 + - NULLIF ( + 81 + - CAST ( NULL AS INTEGER ) * COUNT ( * ), - 36 - + 63 ) THEN NULL END + 47 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL - - 24 * + 79 - - 78 + 29 + + + MAX( ALL + 51 )
----
2054

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - - 24 * + 79 - - 78 + 29 + + + MAX ( ALL + 51 )
----
2054

query I rowsort
SELECT DISTINCT - + 57 * 69
----
-3933

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2839
SELECT - 84 + ( - + 92 ) + - CASE + CAST( + 81 AS SIGNED ) WHEN - - 60 * 56 * 47 * 53 THEN - + 11 + 14 END AS col0, + 90 AS col2
----
NULL
90

skipif mysql # not compatible
query II rowsort label-2839
SELECT - 84 + ( - + 92 ) + - CASE + CAST ( + 81 AS INTEGER ) WHEN - - 60 * 56 * 47 * 53 THEN - + 11 + 14 END AS col0, + 90 AS col2
----
NULL
90

onlyif mysql # aggregate syntax: 
query II rowsort label-2840
SELECT DISTINCT - 34 * - COUNT( * ), - 66 AS col2
----
34
-66

skipif mysql # not compatible
query II rowsort label-2840
SELECT DISTINCT - 34 * - COUNT ( * ), - 66 AS col2
----
34
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT COUNT( ALL + - 3 ) + - 9 * 11
----
-98

skipif mysql # not compatible
query I rowsort label-2841
SELECT COUNT ( ALL + - 3 ) + - 9 * 11
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2842
SELECT 20 DIV - COUNT( * ) + - - 28 col0
----
8

skipif mysql # not compatible
query I rowsort label-2842
SELECT 20 / - COUNT ( * ) + - - 28 col0
----
8

query I rowsort
SELECT ALL - 84 + - 62 col2
----
-146

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2844
SELECT + CASE 38 WHEN - 64 * + - CAST( 73 AS DECIMAL ) THEN + 94 WHEN - 7 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT + CASE 38 WHEN - 64 * + - CAST ( 73 AS REAL ) THEN + 94 WHEN - 7 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2845
SELECT ALL + - 52 + - COUNT( * ) + - - 81 + 19 * - 46 * - + 0 + 7 + + 5 DIV + + ( + 34 ) * + MIN( DISTINCT 27 )
----
35

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL + - 52 + - COUNT ( * ) + - - 81 + 19 * - 46 * - + 0 + 7 + + 5 / + + ( + 34 ) * + MIN ( DISTINCT 27 )
----
35

query II rowsort
SELECT + 34 - + 76, - NULLIF ( - 96, + 69 ) AS col1
----
-42
96

query I rowsort
SELECT DISTINCT + + 2 + - 50 - + 75 * - + 28 - - + 16 AS col0
----
2068

query I rowsort
SELECT ALL - 49 * - 89 + 16 - 48
----
4329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2849
SELECT 99 + + NULLIF ( - + ( 23 ), COALESCE ( COUNT( * ), - COUNT( * ) * - 18 + + - 20 * + 44 + + + 92 ) * - CAST( + 63 AS SIGNED ) + - 9 * - NULLIF ( - 55, + 78 ) ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2849
SELECT 99 + + NULLIF ( - + ( 23 ), COALESCE ( COUNT ( * ), - COUNT ( * ) * - 18 + + - 20 * + 44 + + + 92 ) * - CAST ( + 63 AS INTEGER ) + - 9 * - NULLIF ( - 55, + 78 ) ) AS col1
----
76

query I rowsort
SELECT 35 * 26 * 49
----
44590

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2851
SELECT - 44 * + 63 * + 24 + + - 90 AS col0, CAST( NULL AS SIGNED ) AS col1
----
-66618
NULL

skipif mysql # not compatible
query II rowsort label-2851
SELECT - 44 * + 63 * + 24 + + - 90 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
-66618
NULL

query I rowsort
SELECT 44 - - 25 col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT - ( + - CASE + 46 WHEN - 63 THEN + 40 + - + 27 * - MAX( + 27 ) WHEN + + 12 * + MAX( - 38 ) THEN COUNT( * ) * + + 50 * + 9 END ) / + 50 * + 96 + 80 + - 30 + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT - ( + - CASE + 46 WHEN - 63 THEN + 40 + - + 27 * - MAX ( + 27 ) WHEN + + 12 * + MAX ( - 38 ) THEN COUNT ( * ) * + + 50 * + 9 END ) / + 50 * + 96 + 80 + - 30 + + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ALL + 4 * - 8 - - ( + COUNT( DISTINCT - 18 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL + 4 * - 8 - - ( + COUNT ( DISTINCT - 18 ) )
----
-31

query I rowsort
SELECT DISTINCT 53 * - 64 * 16 AS col2
----
-54272

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL - SUM( - + 10 ) * 42 * - COUNT( * )
----
-420

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL - SUM ( - + 10 ) * 42 * - COUNT ( * )
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT - 76 + + + COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-2857
SELECT - 76 + + + COUNT ( * ) AS col2
----
-75

query II rowsort
SELECT ALL + 8, - 57 col2
----
8
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2859
SELECT + MIN( + 79 ) + - 71 + - 29 DIV 59 DIV - 81 * + - 30 * - 72 * + 45 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2859
SELECT + MIN ( + 79 ) + - 71 + - 29 / 59 / - 81 * + - 30 * - 72 * + 45 AS col0
----
8

query I rowsort
SELECT + 46 * - 73 * - 5 AS col0
----
16790

onlyif mysql # aggregate syntax: 
query II rowsort label-2861
SELECT ALL + 95 AS col0, - COUNT( * )
----
95
-1

skipif mysql # not compatible
query II rowsort label-2861
SELECT ALL + 95 AS col0, - COUNT ( * )
----
95
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2862
SELECT ALL + 4, 34 - + CASE + + 44 WHEN + COALESCE ( + COUNT( * ), COUNT( * ) * + 38 + - CAST( NULL AS SIGNED ) + - + 84 + - 2 ) THEN - - ( - 70 ) * - 13 WHEN 16 + COUNT( * ) THEN NULL END AS col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-2862
SELECT ALL + 4, 34 - + CASE + + 44 WHEN + COALESCE ( + COUNT ( * ), COUNT ( * ) * + 38 + - CAST ( NULL AS INTEGER ) + - + 84 + - 2 ) THEN - - ( - 70 ) * - 13 WHEN 16 + COUNT ( * ) THEN NULL END AS col1
----
4
NULL

query I rowsort
SELECT + CASE + 68 WHEN + 57 THEN 7 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2864
SELECT DISTINCT + 11, - CAST( NULL AS SIGNED ) * - 29 + CAST( 94 AS SIGNED ) AS col1
----
11
NULL

skipif mysql # not compatible
query II rowsort label-2864
SELECT DISTINCT + 11, - CAST ( NULL AS INTEGER ) * - 29 + CAST ( 94 AS INTEGER ) AS col1
----
11
NULL

query I rowsort
SELECT + 10 * + + 47 AS col0
----
470

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2868
SELECT + COALESCE ( + 89, + + 64, MAX( - + 41 ) * 22 + + 5 + - 6 DIV + + 24 - CAST( NULL AS SIGNED ) )
----
89

skipif mysql # not compatible
query I rowsort label-2868
SELECT + COALESCE ( + 89, + + 64, MAX ( - + 41 ) * 22 + + 5 + - 6 / + + 24 - CAST ( NULL AS INTEGER ) )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT + 2 + + MIN( - 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2869
SELECT + 2 + + MIN ( - 1 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT + 15 + - 62 + + 96 * - CAST( 96 AS SIGNED ) col1
----
-9263

skipif mysql # not compatible
query I rowsort label-2870
SELECT + 15 + - 62 + + 96 * - CAST ( 96 AS INTEGER ) col1
----
-9263

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT DISTINCT + COUNT( * ) * - + 95 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT + COUNT ( * ) * - + 95 AS col0
----
-95

query I rowsort
SELECT + + ( - 19 ) + + 72
----
53

query I rowsort
SELECT ALL + 88 + + 90
----
178

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

query I rowsort
SELECT ALL + 13 + COALESCE ( 1, + 53 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT + 4 + - 2 - 58 + - 0 - COUNT( * ) + - 11
----
-68

skipif mysql # not compatible
query I rowsort label-2876
SELECT + 4 + - 2 - 58 + - 0 - COUNT ( * ) + - 11
----
-68

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT DISTINCT - COUNT( * ) + + 88
----
87

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT - COUNT ( * ) + + 88
----
87

query II rowsort
SELECT DISTINCT 42 AS col1, - 6 + - 54
----
42
-60

query I rowsort
SELECT DISTINCT - 61 * - + 96 + NULLIF ( - 14, - 53 + + 88 ) AS col1
----
5842

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT - COUNT( * ) + - 11 col1
----
-12

skipif mysql # not compatible
query I rowsort label-2882
SELECT - COUNT ( * ) + - 11 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT DISTINCT CASE + 32 WHEN + ( + 6 ) THEN - 87 * 89 + + + 18 - - ( + + 11 ) - + COUNT( * ) * + 59 + + ( 36 ) * + - SUM( + + ( + - 46 ) ) * + 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT CASE + 32 WHEN + ( + 6 ) THEN - 87 * 89 + + + 18 - - ( + + 11 ) - + COUNT ( * ) * + 59 + + ( 36 ) * + - SUM ( + + ( + - 46 ) ) * + 81 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2884
SELECT ALL - COUNT( * ) DIV + SUM( ALL + + 73 ) - - 85
----
85

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL - COUNT ( * ) / + SUM ( ALL + + 73 ) - - 85
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2885
SELECT - 76 DIV - 51
----
1

skipif mysql # not compatible
query I rowsort label-2885
SELECT - 76 / - 51
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2886
SELECT DISTINCT + 95 DIV + SUM( + + 15 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT + 95 / + SUM ( + + 15 ) AS col2
----
6

query I rowsort
SELECT ALL 41 * + 93 col2
----
3813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2888
SELECT - COUNT( * ) DIV COUNT( * ) DIV - 9 * - + 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2888
SELECT - COUNT ( * ) / COUNT ( * ) / - 9 * - + 51 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT 14 * + + ( - 53 ) - + 38 + 43 - - - 95 * - COUNT( * ) - 58 + - 15 * + 41 * - 57 + - 20 AS col1
----
34335

skipif mysql # not compatible
query I rowsort label-2889
SELECT 14 * + + ( - 53 ) - + 38 + 43 - - - 95 * - COUNT ( * ) - 58 + - 15 * + 41 * - 57 + - 20 AS col1
----
34335

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT ( - MAX( 85 ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-2890
SELECT ( - MAX ( 85 ) ) AS col2
----
-85

query I rowsort
SELECT - 34 * 36
----
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT - MIN( ALL - 23 ) - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-2892
SELECT - MIN ( ALL - 23 ) - COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL - 14 * COUNT( * ) * 14 * + + MAX( ALL - - 40 ) * + - ( + 26 ) * - 12 AS col2
----
-2446080

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL - 14 * COUNT ( * ) * 14 * + + MAX ( ALL - - 40 ) * + - ( + 26 ) * - 12 AS col2
----
-2446080

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT ALL 39 * + COUNT( * ) + - NULLIF ( 42, - + COUNT( ALL 47 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL 39 * + COUNT ( * ) + - NULLIF ( 42, - + COUNT ( ALL 47 ) )
----
-3

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

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

query I rowsort
SELECT ALL - 0 * - + 20 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT DISTINCT + - MIN( + - 63 )
----
63

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT + - MIN ( + - 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL + 7 * + CASE 14 WHEN - + 12 THEN + - COALESCE ( + 98, - + 32 ) + - + 46 + - 20 END + + COUNT( * ) * COUNT( * ) * - 84 + + - 87 + 68 * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + 7 * + CASE 14 WHEN - + 12 THEN + - COALESCE ( + 98, - + 32 ) + - + 46 + - 20 END + + COUNT ( * ) * COUNT ( * ) * - 84 + + - 87 + 68 * + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT + + MAX( ALL - 60 ) * - 28 + + 96 AS col0
----
1776

skipif mysql # not compatible
query I rowsort label-2899
SELECT + + MAX ( ALL - 60 ) * - 28 + + 96 AS col0
----
1776

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

skipif mysql # not compatible
query I rowsort label-2900
SELECT - 66 / + COUNT ( * ) + 77
----
11

query I rowsort
SELECT + NULLIF ( 10, - - 85 ) + - - 48
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2902
SELECT - COUNT( ALL + 80 ), + 56 + + 25 DIV 65 + - + COUNT( * ) AS col1
----
-1
55

skipif mysql # not compatible
query II rowsort label-2902
SELECT - COUNT ( ALL + 80 ), + 56 + + 25 / 65 + - + COUNT ( * ) AS col1
----
-1
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL 33 * + + COUNT( * ) + 14 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL 33 * + + COUNT ( * ) + 14 AS col2
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-2905
SELECT + - 62 DIV - + NULLIF ( - 7, - 88 * 59 ) + 21 + - + 87 AS col2, 86 AS col0
----
-74
86

skipif mysql # not compatible
query II rowsort label-2905
SELECT + - 62 / - + NULLIF ( - 7, - 88 * 59 ) + 21 + - + 87 AS col2, 86 AS col0
----
-74
86

query I rowsort
SELECT ALL + CASE 96 WHEN - - 93 THEN - 82 END + + - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT ALL 46 * + 44 + 52 * - - 96 + - + COUNT( * ) + - 39 AS col1
----
6976

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL 46 * + 44 + 52 * - - 96 + - + COUNT ( * ) + - 39 AS col1
----
6976

onlyif mysql # aggregate syntax: 
query II rowsort label-2908
SELECT ALL + 82 - 11 + + MAX( + 88 ) AS col1, + 53 AS col1
----
159
53

skipif mysql # not compatible
query II rowsort label-2908
SELECT ALL + 82 - 11 + + MAX ( + 88 ) AS col1, + 53 AS col1
----
159
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL MAX( ALL - - 21 ) * 6 col2
----
126

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL MAX ( ALL - - 21 ) * 6 col2
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2910
SELECT ALL - 2 - 74 + - NULLIF ( + 79, + 1 * - + 92 * + - COUNT( ALL 73 ) - + 0 ) * CAST( NULL AS SIGNED ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL - 2 - 74 + - NULLIF ( + 79, + 1 * - + 92 * + - COUNT ( ALL 73 ) - + 0 ) * CAST ( NULL AS INTEGER ) * - - COUNT ( * )
----
NULL

query I rowsort
SELECT + + 96 * - + 66 AS col2
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT + + COALESCE ( - + 53, - 0, 76 + - COUNT( * ) ) + - - 69 - - 57
----
73

skipif mysql # not compatible
query I rowsort label-2912
SELECT + + COALESCE ( - + 53, - 0, 76 + - COUNT ( * ) ) + - - 69 - - 57
----
73

query I rowsort
SELECT + 52 * 43 AS col2
----
2236

query I rowsort
SELECT + - 52 + + 60 * + 62 * - 35
----
-130252

onlyif mysql # aggregate syntax: 
query II rowsort label-2915
SELECT ALL ( - COUNT( * ) ) - ( + COUNT( * ) ) + 48 AS col1, - 18
----
46
-18

skipif mysql # not compatible
query II rowsort label-2915
SELECT ALL ( - COUNT ( * ) ) - ( + COUNT ( * ) ) + 48 AS col1, - 18
----
46
-18

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

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

query II rowsort
SELECT ALL 97 col1, 47 col1
----
97
47

query I rowsort
SELECT ALL + 18 * 66 AS col0
----
1188

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2920
SELECT 18 DIV + - 77 + + 95 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-2920
SELECT 18 / + - 77 + + 95 AS col0
----
95

query I rowsort
SELECT 63 * + 13
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT - 92 * + + 17 + 19 + - 36 * + ( - 11 ) * + 98 * COUNT( * ) + - + ( - 85 )
----
37348

skipif mysql # not compatible
query I rowsort label-2922
SELECT - 92 * + + 17 + 19 + - 36 * + ( - 11 ) * + 98 * COUNT ( * ) + - + ( - 85 )
----
37348

onlyif mysql # aggregate syntax: 
query II rowsort label-2923
SELECT 69 - - 78 + + + 22 AS col2, - COUNT( * )
----
169
-1

skipif mysql # not compatible
query II rowsort label-2923
SELECT 69 - - 78 + + + 22 AS col2, - COUNT ( * )
----
169
-1

query I rowsort
SELECT ( - - 74 ) * 32
----
2368

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2925
SELECT COUNT( * ) * - CAST( NULL AS DECIMAL ) + - 39 + - SUM( ALL - - CAST( 61 AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT COUNT ( * ) * - CAST ( NULL AS REAL ) + - 39 + - SUM ( ALL - - CAST ( 61 AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT + 16 * + + 27 + - 90 AS col1
----
342

query I rowsort
SELECT ALL - 19 + + ( - 47 ) col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-2928
SELECT ALL + 47 DIV - 44
----
-1

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL + 47 / - 44
----
-1

query I rowsort
SELECT ALL + 13 + 11 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT + CASE + 7 WHEN MIN( 39 ) * - 58 * - - COUNT( ALL - - 92 ) THEN NULL WHEN 83 * + 0 + + 78 THEN NULL ELSE 50 + + 91 END AS col2
----
141

skipif mysql # not compatible
query I rowsort label-2930
SELECT + CASE + 7 WHEN MIN ( 39 ) * - 58 * - - COUNT ( ALL - - 92 ) THEN NULL WHEN 83 * + 0 + + 78 THEN NULL ELSE 50 + + 91 END AS col2
----
141

query I rowsort
SELECT - 4 * + 78 + - - 13 col1
----
-299

query I rowsort
SELECT 49 * 68 AS col0
----
3332

query I rowsort
SELECT - 11 * - 61 AS col0
----
671

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT - 20 DIV - - 68
----
0

skipif mysql # not compatible
query I rowsort label-2934
SELECT - 20 / - - 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT DISTINCT - + COUNT( * ) + + + COUNT( DISTINCT - 10 ) + + 28 + - - 33 - - - 76 * + 57 * + 82 * - - 39 + - 53 + + 59 AS col2
----
-13853669

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT - + COUNT ( * ) + + + COUNT ( DISTINCT - 10 ) + + 28 + - - 33 - - - 76 * + 57 * + 82 * - - 39 + - 53 + + 59 AS col2
----
-13853669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT ALL + + CAST( NULL AS SIGNED ) * + - 94 * 75 / - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL + + CAST ( NULL AS INTEGER ) * + - 94 * 75 / - 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2937
SELECT - CAST( NULL AS SIGNED ) * - 22 + - 48 + + COUNT( DISTINCT + 43 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT - CAST ( NULL AS INTEGER ) * - 22 + - 48 + + COUNT ( DISTINCT + 43 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT 49 + 64 + 72 + 84 * + COUNT( * ) - + + 1 + - 20 AS col1
----
248

skipif mysql # not compatible
query I rowsort label-2938
SELECT 49 + 64 + 72 + 84 * + COUNT ( * ) - + + 1 + - 20 AS col1
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT DISTINCT 39 - 49 + COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT 39 - 49 + COUNT ( * ) AS col2
----
-9

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT 98 * + 0 + - - COUNT( * ) * 76 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-2942
SELECT 98 * + 0 + - - COUNT ( * ) * 76 AS col0
----
76

query I rowsort
SELECT + 27 * + 65
----
1755

query II rowsort
SELECT ALL 38 col1, 4 * NULLIF ( - 7, + 15 )
----
38
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2945
SELECT - COALESCE ( - 29, - 67 ) + + ( CASE WHEN - COUNT( * ) BETWEEN + 90 + + AVG ( - 7 ) + + 28 * - ( - 44 ) AND NULL THEN - 48 ELSE + - SUM( 57 ) DIV + - 9 END ) * 97 AS col1, COALESCE ( + - COUNT( * ), - CASE + - ( + ( - - COUNT( ( - - 2 ) ) ) ) WHEN + COUNT( * ) - - 60 + 26 * 23 * + 27 + + AVG ( ALL + 7 ) THEN - 33 - 90 * 96 * + 80 * - - CAST( NULL AS SIGNED ) + 92 END, - 24 * 60 + 24 * + 20 ) + - 55 col0
----
611
-56

skipif mysql # not compatible
query II rowsort label-2945
SELECT - COALESCE ( - 29, - 67 ) + + ( CASE WHEN - COUNT ( * ) BETWEEN + 90 + + AVG ( - 7 ) + + 28 * - ( - 44 ) AND NULL THEN - 48 ELSE + - SUM ( 57 ) / + - 9 END ) * 97 AS col1, COALESCE ( + - COUNT ( * ), - CASE + - ( + ( - - COUNT ( ( - - 2 ) ) ) ) WHEN + COUNT ( * ) - - 60 + 26 * 23 * + 27 + + AVG ( ALL + 7 ) THEN - 33 - 90 * 96 * + 80 * - - CAST ( NULL AS INTEGER ) + 92 END, - 24 * 60 + 24 * + 20 ) + - 55 col0
----
611
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT - 94 * - CAST( 16 AS SIGNED )
----
1504

skipif mysql # not compatible
query I rowsort label-2946
SELECT - 94 * - CAST ( 16 AS INTEGER )
----
1504

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

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

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

query I rowsort
SELECT ( 28 ) + + + 34 + 53 * 32
----
1758

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2950
SELECT DISTINCT 77 * 90 AS col1, + CAST( ( - 74 ) AS SIGNED ) AS col1
----
6930
-74

skipif mysql # not compatible
query II rowsort label-2950
SELECT DISTINCT 77 * 90 AS col1, + CAST ( ( - 74 ) AS INTEGER ) AS col1
----
6930
-74

query I rowsort
SELECT ALL 12 + + 33
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-2952
SELECT 34 * + ( + - ( + COUNT( * ) ) ) AS col1, ( - ( + + 73 ) ) AS col0
----
-34
-73

skipif mysql # not compatible
query II rowsort label-2952
SELECT 34 * + ( + - ( + COUNT ( * ) ) ) AS col1, ( - ( + + 73 ) ) AS col0
----
-34
-73

query I rowsort
SELECT 69 + - 73
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT 40 DIV 14 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2954
SELECT 40 / 14 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT SUM( ALL + - 83 ) col0
----
-83

skipif mysql # not compatible
query I rowsort label-2955
SELECT SUM ( ALL + - 83 ) col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT DISTINCT - 35 * + COUNT( DISTINCT + ( 85 ) ) + + 40
----
5

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT - 35 * + COUNT ( DISTINCT + ( 85 ) ) + + 40
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL SUM( + 97 ) * + 71 + 38 AS col0
----
6925

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL SUM ( + 97 ) * + 71 + 38 AS col0
----
6925

query I rowsort
SELECT DISTINCT 16 + + - 99 - - + 68
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2959
SELECT ALL - 49 AS col1, + ( - 37 ) * + - COUNT( * ) + 75 + 79 col0
----
-49
191

skipif mysql # not compatible
query II rowsort label-2959
SELECT ALL - 49 AS col1, + ( - 37 ) * + - COUNT ( * ) + 75 + 79 col0
----
-49
191

onlyif mysql # aggregate syntax: 
query II rowsort label-2960
SELECT + COUNT( * ) AS col0, 11 * + + 96
----
1
1056

skipif mysql # not compatible
query II rowsort label-2960
SELECT + COUNT ( * ) AS col0, 11 * + + 96
----
1
1056

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2962
SELECT + 12 * 58 DIV + + MAX( 37 ) - - - 83 * - COALESCE ( - 81, + - 39 )
----
-6705

skipif mysql # not compatible
query I rowsort label-2962
SELECT + 12 * 58 / + + MAX ( 37 ) - - - 83 * - COALESCE ( - 81, + - 39 )
----
-6705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2963
SELECT - 2 DIV + COUNT( * ) - NULLIF ( + 72, 27 )
----
-74

skipif mysql # not compatible
query I rowsort label-2963
SELECT - 2 / + COUNT ( * ) - NULLIF ( + 72, 27 )
----
-74

query II rowsort
SELECT + 76 col2, + 26 + + 87 + + + ( + - CASE + 61 WHEN + 12 THEN + 7 END ) + - 3 / + 67 col0
----
76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT 92 + - - MAX( DISTINCT + 74 ) AS col1
----
166

skipif mysql # not compatible
query I rowsort label-2965
SELECT 92 + - - MAX ( DISTINCT + 74 ) AS col1
----
166

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2966
SELECT ALL + COUNT( * ) * - CASE + - 72 WHEN ( + + CAST( NULL AS DECIMAL ) ) THEN - 83 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL + COUNT ( * ) * - CASE + - 72 WHEN ( + + CAST ( NULL AS REAL ) ) THEN - 83 END AS col2
----
NULL

query II rowsort
SELECT + 48 AS col2, ( 96 )
----
48
96

query I rowsort
SELECT - 81 * + 64 + + 19 AS col1
----
-5165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2969
SELECT ALL - + 1, 2 DIV - COUNT( * ) AS col0
----
-1
-2

skipif mysql # not compatible
query II rowsort label-2969
SELECT ALL - + 1, 2 / - COUNT ( * ) AS col0
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ( - MAX( - - 8 ) ) * 22 - - 44 AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-2970
SELECT ( - MAX ( - - 8 ) ) * 22 - - 44 AS col0
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-2971
SELECT ALL - + 45 AS col0, - COUNT( * ) AS col0
----
-45
-1

skipif mysql # not compatible
query II rowsort label-2971
SELECT ALL - + 45 AS col0, - COUNT ( * ) AS col0
----
-45
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2972
SELECT DISTINCT - + COUNT( * ) AS col1, + 69 * 77 AS col0
----
-1
5313

skipif mysql # not compatible
query II rowsort label-2972
SELECT DISTINCT - + COUNT ( * ) AS col1, + 69 * 77 AS col0
----
-1
5313

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

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

query II rowsort
SELECT ALL - - 28 AS col0, 8 AS col2
----
28
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT DISTINCT - 18 * - 54 * - COUNT( * ) * 94 AS col2
----
-91368

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT - 18 * - 54 * - COUNT ( * ) * 94 AS col2
----
-91368

query I rowsort
SELECT ALL - - 30 - + ( + ( - - 69 ) ) AS col1
----
-39

query I rowsort
SELECT - 34 * + 8 * - 81 * - 72 + + + 53 AS col2
----
-1586251

query I rowsort
SELECT - 25 * + 78
----
-1950

query I rowsort
SELECT ALL - - 30 * - 15 AS col0
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT CASE - 20 WHEN - + 96 - + CASE - 50 WHEN + NULLIF ( + + 61, + 97 ) THEN NULL WHEN + COUNT( * ) THEN - 78 END THEN - 83 + - ( - 46 ) + 23 ELSE + COUNT( + 6 ) + - + 74 + - 56 END
----
-129

skipif mysql # not compatible
query I rowsort label-2980
SELECT CASE - 20 WHEN - + 96 - + CASE - 50 WHEN + NULLIF ( + + 61, + 97 ) THEN NULL WHEN + COUNT ( * ) THEN - 78 END THEN - 83 + - ( - 46 ) + 23 ELSE + COUNT ( + 6 ) + - + 74 + - 56 END
----
-129

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

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL + - 17 * COUNT ( * ) / 32 * - ( + ( 82 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT DISTINCT MAX( - + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT MAX ( - + 16 )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT DISTINCT CASE + 71 WHEN - - ( - ( - 44 ) ) THEN NULL ELSE - 79 * 55 + NULLIF ( 93, + 68 + - ( - 33 ) + + ( + - CAST( 5 AS SIGNED ) ) * - + 19 / NULLIF ( - + CAST( + 44 AS SIGNED ), 47 ) ) * - - 20 END
----
-2485

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT CASE + 71 WHEN - - ( - ( - 44 ) ) THEN NULL ELSE - 79 * 55 + NULLIF ( 93, + 68 + - ( - 33 ) + + ( + - CAST ( 5 AS INTEGER ) ) * - + 19 / NULLIF ( - + CAST ( + 44 AS INTEGER ), 47 ) ) * - - 20 END
----
-2485

query I rowsort
SELECT DISTINCT + 36 * - 37 AS col0
----
-1332

query I rowsort
SELECT - COALESCE ( - 68, - 46, 31 * - 68 ) * - 63 / + CASE - 53 WHEN - - ( + ( + - 62 ) ) THEN 75 WHEN - - ( - - 11 ) THEN NULL ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT - 41 + + ( 45 ) * + ( - 75 ) * - 85
----
286834

query I rowsort
SELECT - 18 + + 37
----
19

query I rowsort
SELECT - 94 + 19 + - 61
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT - COUNT( DISTINCT ( 37 ) ) + - 58 + ( - + 98 ) * + MIN( + 92 ) AS col1
----
-9075

skipif mysql # not compatible
query I rowsort label-2990
SELECT - COUNT ( DISTINCT ( 37 ) ) + - 58 + ( - + 98 ) * + MIN ( + 92 ) AS col1
----
-9075

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT - COUNT( DISTINCT 76 ) - + 41 + 66 - 19 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2991
SELECT - COUNT ( DISTINCT 76 ) - + 41 + 66 - 19 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL 58 + + - 73 + + 3 * - COUNT( * ) * - + AVG ( - 44 ) * CASE - 36 WHEN - + 77 THEN 28 WHEN - 50 THEN NULL WHEN + 52 THEN NULL ELSE NULL END * + + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL 58 + + - 73 + + 3 * - COUNT ( * ) * - + AVG ( - 44 ) * CASE - 36 WHEN - + 77 THEN 28 WHEN - 50 THEN NULL WHEN + 52 THEN NULL ELSE NULL END * + + 12 AS col2
----
NULL

query I rowsort
SELECT - 64 + 79 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT ALL 75 * ( - SUM( DISTINCT + 76 ) ) * + CASE 50 WHEN - - 71 THEN - SUM( + - 32 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL 75 * ( - SUM ( DISTINCT + 76 ) ) * + CASE 50 WHEN - - 71 THEN - SUM ( + - 32 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 74 + + ( + 88 ) * 22
----
1862

onlyif mysql # DIV for integer division: 
query II rowsort label-2996
SELECT 92 DIV - 49 + + 43 AS col0, 40 - + 77
----
42
-37

skipif mysql # not compatible
query II rowsort label-2996
SELECT 92 / - 49 + + 43 AS col0, 40 - + 77
----
42
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2997
SELECT ALL 26 * + - 4 * - COALESCE ( - 6, - 97 ) / + CASE + 42 WHEN - NULLIF ( 11, COUNT( DISTINCT - 27 ) ) THEN - CAST( - + 1 AS SIGNED ) END * 53 + + - NULLIF ( + 42, + 2 * + 41 ) * 83 + 62 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL 26 * + - 4 * - COALESCE ( - 6, - 97 ) / + CASE + 42 WHEN - NULLIF ( 11, COUNT ( DISTINCT - 27 ) ) THEN - CAST ( - + 1 AS INTEGER ) END * 53 + + - NULLIF ( + 42, + 2 * + 41 ) * 83 + 62 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 81 * + 23 AS col0
----
1863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2999
SELECT + 45 * CAST( - 59 AS SIGNED ) + + 68 AS col0
----
-2587

skipif mysql # not compatible
query I rowsort label-2999
SELECT + 45 * CAST ( - 59 AS INTEGER ) + + 68 AS col0
----
-2587

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT + 10 - COALESCE ( + - MAX( - 90 ), - ( + - COUNT( * ) ) + 59 + + 10, 47 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-3000
SELECT + 10 - COALESCE ( + - MAX ( - 90 ), - ( + - COUNT ( * ) ) + 59 + + 10, 47 ) AS col1
----
-80

query I rowsort
SELECT ( + CASE - ( - + 14 ) WHEN - NULLIF ( + 91, 90 ) - + - 69 THEN 92 WHEN - + 48 + + 77 - - 19 THEN NULL END ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3002
SELECT + - 41 * - 20 + - 28 + + 91 DIV 60 AS col2
----
793

skipif mysql # not compatible
query I rowsort label-3002
SELECT + - 41 * - 20 + - 28 + + 91 / 60 AS col2
----
793

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3003
SELECT - 79 * - 54 + - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + AVG ( - + 61 ) + - 11 + - ( COUNT( * ) ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT - 79 * - 54 + - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + AVG ( - + 61 ) + - 11 + - ( COUNT ( * ) ) - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ALL + + CASE - 96 WHEN 99 THEN NULL WHEN + 37 THEN + 79 + - + 40 - COALESCE ( - 29, 83 ) + - NULLIF ( - + 77, - 66 + + ( + - 69 ) * - 75 ) * - COUNT( * ) + + - ( + 24 ) ELSE - 76 END * 33 - - 37 - - 20 AS col2
----
-2451

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL + + CASE - 96 WHEN 99 THEN NULL WHEN + 37 THEN + 79 + - + 40 - COALESCE ( - 29, 83 ) + - NULLIF ( - + 77, - 66 + + ( + - 69 ) * - 75 ) * - COUNT ( * ) + + - ( + 24 ) ELSE - 76 END * 33 - - 37 - - 20 AS col2
----
-2451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3005
SELECT + + 66 * - CAST( NULL AS SIGNED ) * - - 18 * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT + + 66 * - CAST ( NULL AS INTEGER ) * - - 18 * 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3006
SELECT DISTINCT - 78 * - 47 AS col0, + 34 + + 51 + + - COUNT( * )
----
3666
84

skipif mysql # not compatible
query II rowsort label-3006
SELECT DISTINCT - 78 * - 47 AS col0, + 34 + + 51 + + - COUNT ( * )
----
3666
84

query I rowsort
SELECT + + 14 + + COALESCE ( - 96, - 89, + 97 ) AS col2
----
-82

query I rowsort
SELECT + - 39 + - 37 AS col1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT + CAST( 71 AS SIGNED ) + - + 50
----
21

skipif mysql # not compatible
query I rowsort label-3009
SELECT + CAST ( 71 AS INTEGER ) + - + 50
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-3010
SELECT + - 90 DIV + + 17, - 85 AS col2
----
-5
-85

skipif mysql # not compatible
query II rowsort label-3010
SELECT + - 90 / + + 17, - 85 AS col2
----
-5
-85

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3012
SELECT DISTINCT - + COUNT( * ) * 48 + - - 40 * - NULLIF ( + 65, + 7 ) * - 54 AS col2, - 62 + - - 63 AS col1
----
140352
1

skipif mysql # not compatible
query II rowsort label-3012
SELECT DISTINCT - + COUNT ( * ) * 48 + - - 40 * - NULLIF ( + 65, + 7 ) * - 54 AS col2, - 62 + - - 63 AS col1
----
140352
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3013
SELECT ALL + + MAX( 56 ) * - 51 + - 57 + ( - 8 ) + 52 AS col2, 70
----
-2869
70

skipif mysql # not compatible
query II rowsort label-3013
SELECT ALL + + MAX ( 56 ) * - 51 + - 57 + ( - 8 ) + 52 AS col2, 70
----
-2869
70

query II rowsort
SELECT - 30 + + ( 38 ), + COALESCE ( 17, - 41 + 30 * - 94 ) AS col0
----
8
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT ALL COUNT( * ) + - + COALESCE ( - - COUNT( * ), - 74 * 81 * - COUNT( * ) + + 58 ) + + ( + 58 ) * - 41
----
-2378

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL COUNT ( * ) + - + COALESCE ( - - COUNT ( * ), - 74 * 81 * - COUNT ( * ) + + 58 ) + + ( + 58 ) * - 41
----
-2378

query I rowsort
SELECT + 42 * + + 38 AS col2
----
1596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3017
SELECT DISTINCT - CASE WHEN NOT NULL IS NOT NULL THEN - 71 ELSE NULL END DIV + MAX( 38 )
----
1

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT - CASE WHEN NOT NULL IS NOT NULL THEN - 71 ELSE NULL END / + MAX ( 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT COUNT( - 74 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3018
SELECT COUNT ( - 74 ) col1
----
1

query I rowsort
SELECT - ( + 98 ) + - - 37
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT ALL CASE - 86 WHEN - 59 THEN NULL WHEN - ( COUNT( * ) ) THEN NULL ELSE - 64 END AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL CASE - 86 WHEN - 59 THEN NULL WHEN - ( COUNT ( * ) ) THEN NULL ELSE - 64 END AS col0
----
-64

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3022
SELECT - COUNT( * ) + - COUNT( * ) + + 53 DIV + 71 * + COUNT( 17 ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-3022
SELECT - COUNT ( * ) + - COUNT ( * ) + + 53 / + 71 * + COUNT ( 17 ) col2
----
-2

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

skipif mysql # not compatible
query I rowsort label-3023
SELECT - 12 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL - 87 + COUNT ( * ) AS col0
----
-86

query I rowsort
SELECT - 88 + + 46
----
-42

query II rowsort
SELECT - 57 AS col2, + 97
----
-57
97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3028
SELECT - COUNT( - 93 ) + 88 AS col2, + 25
----
87
25

skipif mysql # not compatible
query II rowsort label-3028
SELECT - COUNT ( - 93 ) + 88 AS col2, + 25
----
87
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3029
SELECT ALL CAST( 0 AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL CAST ( 0 AS INTEGER ) col1
----
0

query I rowsort
SELECT DISTINCT CASE + 25 WHEN 78 + - 86 THEN - + 1 + + 69 / 65 + 23 ELSE 23 END
----
23

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

skipif mysql # not compatible
query II rowsort label-3031
SELECT 31, - COUNT ( * ) AS col2
----
31
-1

query I rowsort
SELECT ALL + 24 + - 24 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT DISTINCT - 70 + - - COUNT( * ) + - 45 + - MAX( ALL + 31 ) * - 62
----
1808

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT - 70 + - - COUNT ( * ) + - 45 + - MAX ( ALL + 31 ) * - 62
----
1808

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT - 10 + + 79 DIV + 91
----
-10

skipif mysql # not compatible
query I rowsort label-3036
SELECT - 10 + + 79 / + 91
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT ALL CAST( - 73 AS SIGNED ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL CAST ( - 73 AS INTEGER ) AS col2
----
-73

query II rowsort
SELECT + 86 + 95 + + 16 AS col0, 96 AS col2
----
197
96

query II rowsort
SELECT + 35 col2, + 1 col2
----
35
1

query I rowsort
SELECT ALL - - 31 * 45
----
1395

onlyif mysql # aggregate syntax: 
query II rowsort label-3041
SELECT - 30 * - - ( + 66 ) * + COUNT( DISTINCT - 95 ) + + 80 AS col0, 95 * - COALESCE ( + + 15, + + NULLIF ( - + 70, + - AVG ( + 2 ) + 81 - - + 67 ) ) + - - 38 AS col1
----
-1900
-1387

skipif mysql # not compatible
query II rowsort label-3041
SELECT - 30 * - - ( + 66 ) * + COUNT ( DISTINCT - 95 ) + + 80 AS col0, 95 * - COALESCE ( + + 15, + + NULLIF ( - + 70, + - AVG ( + 2 ) + 81 - - + 67 ) ) + - - 38 AS col1
----
-1900
-1387

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3042
SELECT ALL + - 0 AS col2, + 52 + + 5 * + + CAST( NULL AS DECIMAL ) / + 50
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3042
SELECT ALL + - 0 AS col2, + 52 + + 5 * + + CAST ( NULL AS REAL ) / + 50
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT - + 82 * + COUNT( * ) + NULLIF ( - COUNT( * ), 79 + + 69 + - - 74 + + COUNT( * ) * - - 83 - + 21 * + - 67 * + 15 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-3043
SELECT - + 82 * + COUNT ( * ) + NULLIF ( - COUNT ( * ), 79 + + 69 + - - 74 + + COUNT ( * ) * - - 83 - + 21 * + - 67 * + 15 ) AS col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT ALL - 40 * - COALESCE ( + 44, + 60 ) + 20 + 30 + CAST( NULL AS SIGNED ) - + - AVG ( ( - 21 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL - 40 * - COALESCE ( + 44, + 60 ) + 20 + 30 + CAST ( NULL AS INTEGER ) - + - AVG ( ( - 21 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT + - 29 * 52 + + COUNT( * ) * + COUNT( ALL + 71 )
----
-1507

skipif mysql # not compatible
query I rowsort label-3045
SELECT + - 29 * 52 + + COUNT ( * ) * + COUNT ( ALL + 71 )
----
-1507

onlyif mysql # aggregate syntax: 
query II rowsort label-3046
SELECT + + MAX( DISTINCT - 6 ) * + - 23 AS col2, COUNT( ALL ( 76 ) )
----
138
1

skipif mysql # not compatible
query II rowsort label-3046
SELECT + + MAX ( DISTINCT - 6 ) * + - 23 AS col2, COUNT ( ALL ( 76 ) )
----
138
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3047
SELECT + 24 - 29 + - - 6 DIV 36 * - ( + COUNT( * ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3047
SELECT + 24 - 29 + - - 6 / 36 * - ( + COUNT ( * ) ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT + - COUNT( ALL + - 88 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3048
SELECT + - COUNT ( ALL + - 88 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3049
SELECT - COALESCE ( + + 47, - + 54 + 0 / MIN( ALL + - 45 ) + - ( 61 ), CAST( NULL AS SIGNED ) * + COUNT( ALL - 46 ) + + - 23 ) / + CAST( NULL AS SIGNED ) AS col1, + 1 + ( - 50 ) + 75 + - 95 * + 21 * 11 AS col1
----
NULL
-21919

skipif mysql # not compatible
query II rowsort label-3049
SELECT - COALESCE ( + + 47, - + 54 + 0 / MIN ( ALL + - 45 ) + - ( 61 ), CAST ( NULL AS INTEGER ) * + COUNT ( ALL - 46 ) + + - 23 ) / + CAST ( NULL AS INTEGER ) AS col1, + 1 + ( - 50 ) + 75 + - 95 * + 21 * 11 AS col1
----
NULL
-21919

query I rowsort
SELECT - 22 * - + 96 * 20 + - 22 + + + 30 * 33
----
43208

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

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

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

query II rowsort
SELECT ALL - - 90, - 30 + 33 AS col0
----
90
3

query I rowsort
SELECT DISTINCT - COALESCE ( - + 49, + + 44, 74 )
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3055
SELECT DISTINCT - - 84 + - NULLIF ( COUNT( * ), - 72 + + COUNT( * ) + - 87 ) AS col2, 61 * - 11
----
83
-671

skipif mysql # not compatible
query II rowsort label-3055
SELECT DISTINCT - - 84 + - NULLIF ( COUNT ( * ), - 72 + + COUNT ( * ) + - 87 ) AS col2, 61 * - 11
----
83
-671

query I rowsort
SELECT + 82 * - 79 col2
----
-6478

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3057
SELECT + ( - SUM( ALL + 31 ) ) AS col1, + CAST( NULL AS DECIMAL )
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-3057
SELECT + ( - SUM ( ALL + 31 ) ) AS col1, + CAST ( NULL AS REAL )
----
-31
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3058
SELECT ALL COUNT( * ) + + 60 + + - 88 + + 20 / + CASE 2 WHEN + 30 THEN COUNT( * ) - - 58 END * + 61 + 52 * + 34 + - 79 + + 14 / COUNT( * ) * - + ( COALESCE ( 98, - + 82 * - 12 + + 99 * + 8 + + - 86 + - - 85, - 76 ) ), 51 AS col0
----
NULL
51

skipif mysql # not compatible
query II rowsort label-3058
SELECT ALL COUNT ( * ) + + 60 + + - 88 + + 20 / + CASE 2 WHEN + 30 THEN COUNT ( * ) - - 58 END * + 61 + 52 * + 34 + - 79 + + 14 / COUNT ( * ) * - + ( COALESCE ( 98, - + 82 * - 12 + + 99 * + 8 + + - 86 + - - 85, - 76 ) ), 51 AS col0
----
NULL
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT 34 * COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3059
SELECT 34 * COUNT ( * ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT MAX( 99 ) * 88 * 51 AS col1
----
444312

skipif mysql # not compatible
query I rowsort label-3060
SELECT MAX ( 99 ) * 88 * 51 AS col1
----
444312

query I rowsort
SELECT ALL 6 + 59 AS col0
----
65

query I rowsort
SELECT ALL 82 + - - 43
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT COUNT( - 37 ) * 33 + - - 17 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3063
SELECT COUNT ( - 37 ) * 33 + - - 17 AS col1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3064
SELECT DISTINCT 11 + - + 74 + + 92 + COUNT( * ) * + - 44 * - - 9 * - 31 AS col0, 37
----
12305
37

skipif mysql # not compatible
query II rowsort label-3064
SELECT DISTINCT 11 + - + 74 + + 92 + COUNT ( * ) * + - 44 * - - 9 * - 31 AS col0, 37
----
12305
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3065
SELECT DISTINCT - CASE - + AVG ( - CAST( 0 AS DECIMAL ) ) WHEN 90 THEN NULL ELSE + - 94 END + 93
----
187

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT - CASE - + AVG ( - CAST ( 0 AS REAL ) ) WHEN 90 THEN NULL ELSE + - 94 END + 93
----
187

query I rowsort
SELECT 59 + + 49 + + 26 * - 73 AS col1
----
-1790

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3068
SELECT 4 DIV ( - 99 )
----
0

skipif mysql # not compatible
query I rowsort label-3068
SELECT 4 / ( - 99 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ( + + 86 ) * + 2 * + COUNT( * )
----
172

skipif mysql # not compatible
query I rowsort label-3069
SELECT ( + + 86 ) * + 2 * + COUNT ( * )
----
172

query I rowsort
SELECT 84 * - + 56 AS col1
----
-4704

query II rowsort
SELECT 94 + 67 * - 4 + + NULLIF ( - + ( + 11 ), + - 98 ) AS col1, 34 + + - 20
----
-185
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT + 28 + - 10 * + - 21 + 59 + + CASE 93 WHEN + - ( + SUM( DISTINCT + 92 ) ) + + COUNT( * ) * - 28 + + 75 THEN + + COUNT( * ) * + - COUNT( ALL + 34 ) + 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT + 28 + - 10 * + - 21 + 59 + + CASE 93 WHEN + - ( + SUM ( DISTINCT + 92 ) ) + + COUNT ( * ) * - 28 + + 75 THEN + + COUNT ( * ) * + - COUNT ( ALL + 34 ) + 93 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 61, 1 * 64 + + - 81 - + ( 30 ) * - COALESCE ( 4, 63 ), - 82 + + 52 ) * + - 11
----
-671

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3074
SELECT ALL COUNT( DISTINCT - + 86 ) AS col1, 12 DIV + 40
----
1
0

skipif mysql # not compatible
query II rowsort label-3074
SELECT ALL COUNT ( DISTINCT - + 86 ) AS col1, 12 / + 40
----
1
0

query II rowsort
SELECT DISTINCT - + 36 * - NULLIF ( + 19, - 35 ) AS col1, 75
----
684
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT + COUNT( 22 ) + - + 19
----
-18

skipif mysql # not compatible
query I rowsort label-3076
SELECT + COUNT ( 22 ) + - + 19
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT - 64 * + + ( 87 ) * - NULLIF ( - 77, - COALESCE ( MIN( DISTINCT - 68 ), - + 12 ) - 51 / - 28 )
----
-428736

skipif mysql # not compatible
query I rowsort label-3077
SELECT - 64 * + + ( 87 ) * - NULLIF ( - 77, - COALESCE ( MIN ( DISTINCT - 68 ), - + 12 ) - 51 / - 28 )
----
-428736

query I rowsort
SELECT - 3 * + 40 + + + 21 + - + 22
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-3079
SELECT - - 56 DIV - 41 + - 90
----
-91

skipif mysql # not compatible
query I rowsort label-3079
SELECT - - 56 / - 41 + - 90
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3080
SELECT ALL - - MAX( - - 82 ) col1, 94
----
82
94

skipif mysql # not compatible
query II rowsort label-3080
SELECT ALL - - MAX ( - - 82 ) col1, 94
----
82
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3081
SELECT + + MAX( 4 ) AS col0, - 67 - 14 * + + COUNT( * ) AS col2
----
4
-81

skipif mysql # not compatible
query II rowsort label-3081
SELECT + + MAX ( 4 ) AS col0, - 67 - 14 * + + COUNT ( * ) AS col2
----
4
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT NULLIF ( ( + 64 ), 29 ) * - 21 * - - COUNT( DISTINCT 0 ) + - 2 + 67 * - 99 * COUNT( * ) AS col1
----
-7979

skipif mysql # not compatible
query I rowsort label-3082
SELECT NULLIF ( ( + 64 ), 29 ) * - 21 * - - COUNT ( DISTINCT 0 ) + - 2 + 67 * - 99 * COUNT ( * ) AS col1
----
-7979

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3084
SELECT ALL - 37 + + - 54 * + - 68 * + 94 col1, 17 * + - 71 * CASE - CAST( 21 AS SIGNED ) WHEN + 81 * - 81 THEN + COUNT( ALL 0 ) * + CASE + 63 WHEN 8 + - 88 + + COUNT( 56 ) THEN - 60 END / - 83 END * + - COUNT( * ) + - 13 + + COUNT( * ) * + 7 * 22
----
345131
NULL

skipif mysql # not compatible
query II rowsort label-3084
SELECT ALL - 37 + + - 54 * + - 68 * + 94 col1, 17 * + - 71 * CASE - CAST ( 21 AS INTEGER ) WHEN + 81 * - 81 THEN + COUNT ( ALL 0 ) * + CASE + 63 WHEN 8 + - 88 + + COUNT ( 56 ) THEN - 60 END / - 83 END * + - COUNT ( * ) + - 13 + + COUNT ( * ) * + 7 * 22
----
345131
NULL

query I rowsort
SELECT DISTINCT - - 82 + - 79 + - - 43 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3086
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) * + 65
----
65

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) * + 65
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT 18 DIV + - 10 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3087
SELECT 18 / + - 10 AS col2
----
-1

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

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

query I rowsort
SELECT 43 + ( 26 ) * - 69
----
-1751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3090
SELECT 79 * 39 DIV - CAST( + MAX( DISTINCT + 56 ) AS SIGNED ) AS col2, - 52
----
-55
-52

skipif mysql # not compatible
query II rowsort label-3090
SELECT 79 * 39 / - CAST ( + MAX ( DISTINCT + 56 ) AS INTEGER ) AS col2, - 52
----
-55
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL 6 + - + COUNT( * ) * 23 * 87
----
-1995

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL 6 + - + COUNT ( * ) * 23 * 87
----
-1995

query II rowsort
SELECT ALL + ( 33 ) * + + 98 AS col2, 70 * 4
----
3234
280

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3093
SELECT DISTINCT COUNT( * ) DIV ( 4 ), - 30 col0
----
0
-30

skipif mysql # not compatible
query II rowsort label-3093
SELECT DISTINCT COUNT ( * ) / ( 4 ), - 30 col0
----
0
-30

query I rowsort
SELECT ALL - 87 - - 3 AS col1
----
-84

query I rowsort
SELECT ALL 52 - - - COALESCE ( 40, - 32 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT ( - + 55 ) + - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-3096
SELECT ( - + 55 ) + - COUNT ( * )
----
-56

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

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

query II rowsort
SELECT DISTINCT + 79 AS col1, + 48 + - 65 + 53
----
79
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ( ( + COUNT( * ) ) ) * + SUM( - + ( + 12 ) ) * + 37 * 66 + 10 + - + 74 + 57
----
-29311

skipif mysql # not compatible
query I rowsort label-3099
SELECT ( ( + COUNT ( * ) ) ) * + SUM ( - + ( + 12 ) ) * + 37 * 66 + 10 + - + 74 + 57
----
-29311

onlyif mysql # DIV for integer division: 
query I rowsort label-3100
SELECT DISTINCT + 90 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT + 90 / 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT + + 27 * - 40 - + COUNT( DISTINCT - 14 ) AS col0
----
-1081

skipif mysql # not compatible
query I rowsort label-3101
SELECT + + 27 * - 40 - + COUNT ( DISTINCT - 14 ) AS col0
----
-1081

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

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

query I rowsort
SELECT ALL - 57 * + 75 AS col1
----
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL - + COUNT( * ) * - 89 + + + 86 - + - 59 + - 91 * - 82
----
7696

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL - + COUNT ( * ) * - 89 + + + 86 - + - 59 + - 91 * - 82
----
7696

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL + + 57 * + 40 + + + 86 + COUNT( * ) - 87 + + 11
----
2291

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL + + 57 * + 40 + + + 86 + COUNT ( * ) - 87 + + 11
----
2291

query I rowsort
SELECT ALL 96 * + 91 * + + 39 + + 10 AS col2
----
340714

onlyif mysql # aggregate syntax: 
query III rowsort label-3108
SELECT DISTINCT + 65 * - - 78 + + 97 AS col1, + CASE - COUNT( DISTINCT - + 37 ) WHEN - 61 THEN NULL WHEN + 8 + + 39 THEN NULL ELSE 53 END * - + 83 AS col0, - 8 * - COALESCE ( 28, + 63 + + - 41, + 77 ) + + 70 + + 89
----
5167
-4399
383

skipif mysql # not compatible
query III rowsort label-3108
SELECT DISTINCT + 65 * - - 78 + + 97 AS col1, + CASE - COUNT ( DISTINCT - + 37 ) WHEN - 61 THEN NULL WHEN + 8 + + 39 THEN NULL ELSE 53 END * - + 83 AS col0, - 8 * - COALESCE ( 28, + 63 + + - 41, + 77 ) + + 70 + + 89
----
5167
-4399
383

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3109
SELECT ALL + 5 * + 93 DIV + SUM( 90 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL + 5 * + 93 / + SUM ( 90 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT + 22 + + - ( + 65 ) + COUNT( * ) * - 5 - + - 75 + - 19
----
8

skipif mysql # not compatible
query I rowsort label-3110
SELECT + 22 + + - ( + 65 ) + COUNT ( * ) * - 5 - + - 75 + - 19
----
8

query I rowsort
SELECT ALL + 93 * - 69 * + + 85 + + 72 - + 83 + + 14 col2
----
-545442

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT NULLIF ( - + 67, - - 69 * + CASE + 11 WHEN - 51 THEN + 6 ELSE NULL END - - 39 + + + 5 - 36 * + - COUNT( * ) * - + 54 + + 64 )
----
-67

skipif mysql # not compatible
query I rowsort label-3112
SELECT NULLIF ( - + 67, - - 69 * + CASE + 11 WHEN - 51 THEN + 6 ELSE NULL END - - 39 + + + 5 - 36 * + - COUNT ( * ) * - + 54 + + 64 )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3113
SELECT - NULLIF ( 90, - + 68 + + 49 ) * 88 DIV + + NULLIF ( 77, + - COUNT( * ) ) - - 99 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3113
SELECT - NULLIF ( 90, - + 68 + + 49 ) * 88 / + + NULLIF ( 77, + - COUNT ( * ) ) - - 99 AS col1
----
-3

query I rowsort
SELECT DISTINCT 67 * - 58 - + - 85 AS col1
----
-3801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3115
SELECT 37 * + - 58 - + 40 + - COUNT( - 98 ) DIV - 13 * 52 * + - 22 AS col0
----
-2186

skipif mysql # not compatible
query I rowsort label-3115
SELECT 37 * + - 58 - + 40 + - COUNT ( - 98 ) / - 13 * 52 * + - 22 AS col0
----
-2186

query I rowsort
SELECT - 17 * - 68
----
1156

onlyif mysql # DIV for integer division: 
query I rowsort label-3117
SELECT - 35 DIV + - NULLIF ( + 21, COALESCE ( + - 24, 21 + + - 4 ) DIV - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-3117
SELECT - 35 / + - NULLIF ( + 21, COALESCE ( + - 24, 21 + + - 4 ) / - 86 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3118
SELECT MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3118
SELECT MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT + 57 AS col1, + 28
----
57
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT MIN( + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-3120
SELECT MIN ( + 53 )
----
53

query II rowsort
SELECT - 81 * + - 26 * - - 90 * - + 6, 36 + + 76 col2
----
-1137240
112

query I rowsort
SELECT - NULLIF ( + 13, - + 38 ) col0
----
-13

query I rowsort
SELECT ALL + 66 * + ( + 58 ) AS col1
----
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT DISTINCT NULLIF ( + 59, - - COUNT( * ) - + 61 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT NULLIF ( + 59, - - COUNT ( * ) - + 61 ) AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3125
SELECT ALL 45 DIV + SUM( 27 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL 45 / + SUM ( 27 ) col1
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3127
SELECT - CASE + 13 WHEN - 85 THEN - ( + COUNT( * ) ) * + + COALESCE ( - CAST( NULL AS SIGNED ), 31 ) * + - 22 + + 41 ELSE - ( 93 ) + 45 END AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3127
SELECT - CASE + 13 WHEN - 85 THEN - ( + COUNT ( * ) ) * + + COALESCE ( - CAST ( NULL AS INTEGER ), 31 ) * + - 22 + + 41 ELSE - ( 93 ) + 45 END AS col1
----
48

query I rowsort
SELECT ALL ( - CASE 37 WHEN + + 86 THEN NULL WHEN - 67 THEN + 17 + - 23 END ) * - 96 * 11 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3129
SELECT - CASE + 68 WHEN + MAX( ALL - CAST( NULL AS SIGNED ) ) THEN + 47 ELSE + MIN( + 15 ) DIV - NULLIF ( + - 84, - CAST( NULL AS SIGNED ) ) + + - 50 END col0
----
50

skipif mysql # not compatible
query I rowsort label-3129
SELECT - CASE + 68 WHEN + MAX ( ALL - CAST ( NULL AS INTEGER ) ) THEN + 47 ELSE + MIN ( + 15 ) / - NULLIF ( + - 84, - CAST ( NULL AS INTEGER ) ) + + - 50 END col0
----
50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3131
SELECT ALL 10 + - 25 + - + 35 + - CASE - 49 WHEN + 29 * + + CAST( NULL AS SIGNED ) THEN NULL WHEN + ( - SUM( DISTINCT 57 ) ) + + 45 THEN + 47 * 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL 10 + - 25 + - + 35 + - CASE - 49 WHEN + 29 * + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + ( - SUM ( DISTINCT 57 ) ) + + 45 THEN + 47 * 47 END AS col1
----
NULL

query I rowsort
SELECT - 63 + - - 97 col2
----
34

query I rowsort
SELECT + COALESCE ( + - 3, + 0 ) * - 44 AS col2
----
132

query I rowsort
SELECT + + 98 + + 9
----
107

query I rowsort
SELECT - + COALESCE ( 35, + 19 )
----
-35

query I rowsort
SELECT ALL + 87 + 90
----
177

query I rowsort
SELECT + - 23 + - 64 + 90
----
3

query I rowsort
SELECT ALL + ( ( + - 53 ) ) + - 72 + 37 AS col0
----
-88

query I rowsort
SELECT DISTINCT + 59 + 85 * - 90
----
-7591

query I rowsort
SELECT ALL + COALESCE ( 44, + 71 ) + + 72
----
116

query I rowsort
SELECT + 26 + - - 3 + + 57
----
86

query I rowsort
SELECT ALL ( 50 ) + - + 49 + - 82
----
-81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT + + 96 DIV - + 59
----
-1

skipif mysql # not compatible
query I rowsort label-3144
SELECT + + 96 / - + 59
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT - + CAST( 70 AS SIGNED ) + - 21
----
-91

skipif mysql # not compatible
query I rowsort label-3145
SELECT - + CAST ( 70 AS INTEGER ) + - 21
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT ALL + 85 DIV - 40 + - 59
----
-61

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL + 85 / - 40 + - 59
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-3147
SELECT ALL + 3 DIV + 47 - + 15 + - 11 DIV - 68 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL + 3 / + 47 - + 15 + - 11 / - 68 AS col1
----
-15

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3149
SELECT DISTINCT + 17 DIV 36 - + 71
----
-71

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT + 17 / 36 - + 71
----
-71

query I rowsort
SELECT DISTINCT + 42 * - + 20 * + 41 * - 68
----
2341920

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3152
SELECT + ( 71 ), COUNT( * ) DIV + 87 AS col0
----
71
0

skipif mysql # not compatible
query II rowsort label-3152
SELECT + ( 71 ), COUNT ( * ) / + 87 AS col0
----
71
0

query I rowsort
SELECT 60 * + 62 + NULLIF ( + 64, - 56 ) AS col0
----
3784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3154
SELECT + ( + 13 ) * COALESCE ( 36, 92 DIV + MIN( DISTINCT - 20 ) + + 7 * + 81, + + 22 + - MIN( 47 ) * 40 ) * - + COUNT( * ) * - 73 + - 30 col0
----
34134

skipif mysql # not compatible
query I rowsort label-3154
SELECT + ( + 13 ) * COALESCE ( 36, 92 / + MIN ( DISTINCT - 20 ) + + 7 * + 81, + + 22 + - MIN ( 47 ) * 40 ) * - + COUNT ( * ) * - 73 + - 30 col0
----
34134

query II rowsort
SELECT ( - 72 ), + 18 AS col1
----
-72
18

query I rowsort
SELECT - 58 * + - 17 AS col0
----
986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3157
SELECT CAST( - ( + COUNT( * ) ) AS SIGNED ) * 66 DIV 62 * 46 + - 5
----
-51

skipif mysql # not compatible
query I rowsort label-3157
SELECT CAST ( - ( + COUNT ( * ) ) AS INTEGER ) * 66 / 62 * 46 + - 5
----
-51

query I rowsort
SELECT - COALESCE ( + - 89, + - 49 + + - 41 ) * + 79 + + + 67
----
7098

query I rowsort
SELECT ALL NULLIF ( + ( + 26 ), - 54 + - 13 * + 22 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3160
SELECT - 28 + ( 62 ) + - 54 - SUM( ALL - + 8 ) + - 42 * + 41, 71 AS col0
----
-1734
71

skipif mysql # not compatible
query II rowsort label-3160
SELECT - 28 + ( 62 ) + - 54 - SUM ( ALL - + 8 ) + - 42 * + 41, 71 AS col0
----
-1734
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ALL - SUM( ALL + 93 ) * 30
----
-2790

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL - SUM ( ALL + 93 ) * 30
----
-2790

query I rowsort
SELECT ALL + 34 + + - 74 + - + 21 * 54
----
-1174

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT ALL - - 79 + + + COUNT( * ) - - - 64
----
16

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL - - 79 + + + COUNT ( * ) - - - 64
----
16

query I rowsort
SELECT + 74 * - 28
----
-2072

query I rowsort
SELECT 14 + 46
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT NULLIF ( CAST( NULL AS SIGNED ), + 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT NULLIF ( CAST ( NULL AS INTEGER ), + 26 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL 27 + - 57 + 46 * - MAX( 91 )
----
-4216

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL 27 + - 57 + 46 * - MAX ( 91 )
----
-4216

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ALL + MIN( DISTINCT + - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL + MIN ( DISTINCT + - 41 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3170
SELECT DISTINCT + CAST( 55 AS SIGNED ) col1
----
55

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT + CAST ( 55 AS INTEGER ) col1
----
55

query I rowsort
SELECT + 63 - - ( + + 32 ) AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3172
SELECT ( + + 51 ) * 11 + - + 72 + + 30 + - ( - - 24 ) + 16 - + + 69 + - 92 * COUNT( * ) * - CASE - CAST( NULL AS DECIMAL ) WHEN + + NULLIF ( + CASE + CAST( NULL AS SIGNED ) WHEN MAX( ALL + 91 ) THEN + 46 WHEN + 46 + - 12 THEN NULL ELSE NULL END, - + SUM( DISTINCT - 55 ) ) * - 61 THEN + 32 WHEN - ( - + 25 ) * + 76 / + + 23 THEN NULL ELSE NULL END + - AVG ( ALL 43 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT ( + + 51 ) * 11 + - + 72 + + 30 + - ( - - 24 ) + 16 - + + 69 + - 92 * COUNT ( * ) * - CASE - CAST ( NULL AS REAL ) WHEN + + NULLIF ( + CASE + CAST ( NULL AS INTEGER ) WHEN MAX ( ALL + 91 ) THEN + 46 WHEN + 46 + - 12 THEN NULL ELSE NULL END, - + SUM ( DISTINCT - 55 ) ) * - 61 THEN + 32 WHEN - ( - + 25 ) * + 76 / + + 23 THEN NULL ELSE NULL END + - AVG ( ALL 43 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3173
SELECT DISTINCT + 56 * - CAST( - 54 AS SIGNED ) AS col0
----
3024

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT + 56 * - CAST ( - 54 AS INTEGER ) AS col0
----
3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3174
SELECT + CAST( + COUNT( * ) AS SIGNED ), + 60 - + 48 + - 98 AS col0
----
1
-86

skipif mysql # not compatible
query II rowsort label-3174
SELECT + CAST ( + COUNT ( * ) AS INTEGER ), + 60 - + 48 + - 98 AS col0
----
1
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3175
SELECT ALL - - SUM( - 52 ), 96 DIV 48 - 15 - + 62 AS col1
----
-52
-75

skipif mysql # not compatible
query II rowsort label-3175
SELECT ALL - - SUM ( - 52 ), 96 / 48 - 15 - + 62 AS col1
----
-52
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT DISTINCT - COALESCE ( + + 94, - - 17, + + CASE + COALESCE ( 5, - - 20, - + 3 + + 87, + COUNT( * ) ) WHEN + 37 THEN + 83 END + + 0 ) - + 89
----
-183

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT - COALESCE ( + + 94, - - 17, + + CASE + COALESCE ( 5, - - 20, - + 3 + + 87, + COUNT ( * ) ) WHEN + 37 THEN + 83 END + + 0 ) - + 89
----
-183

query I rowsort
SELECT 78 * 6
----
468

query I rowsort
SELECT ALL 48 * - 89
----
-4272

onlyif mysql # aggregate syntax: 
query II rowsort label-3179
SELECT 81 AS col0, MIN( - - 32 ) * - COUNT( * ) + + 39 AS col2
----
81
7

skipif mysql # not compatible
query II rowsort label-3179
SELECT 81 AS col0, MIN ( - - 32 ) * - COUNT ( * ) + + 39 AS col2
----
81
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3180
SELECT DISTINCT 35 DIV + - ( 75 ) * - + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT 35 / + - ( 75 ) * - + 82 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3181
SELECT 5 AS col0, - 86 + - 91 + 31 * COUNT( * ) * 0 AS col1
----
5
-177

skipif mysql # not compatible
query II rowsort label-3181
SELECT 5 AS col0, - 86 + - 91 + 31 * COUNT ( * ) * 0 AS col1
----
5
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT DISTINCT 82 DIV + 41
----
2

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT 82 / + 41
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3183
SELECT + 10, CAST( + 4 AS SIGNED ) DIV + ( + 52 ) + 20 + - 64 * + - ( + + 9 ) col0
----
10
596

skipif mysql # not compatible
query II rowsort label-3183
SELECT + 10, CAST ( + 4 AS INTEGER ) / + ( + 52 ) + 20 + - 64 * + - ( + + 9 ) col0
----
10
596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3184
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) + - + 28 - + - COUNT( * ) - 20 + 78 + + 13 * + COUNT( * ) * - 26 * - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - + 28 - + - COUNT ( * ) - 20 + 78 + + 13 * + COUNT ( * ) * - 26 * - - 63
----
NULL

query II rowsort
SELECT ALL 29 AS col0, 62 - + - 8 AS col0
----
29
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT DISTINCT + 21 + COUNT( * ) * + + 65 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT + 21 + COUNT ( * ) * + + 65 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT DISTINCT + COUNT( - - 18 ) + - 80 * 41
----
-3279

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT + COUNT ( - - 18 ) + - 80 * 41
----
-3279

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3189
SELECT + 81 - COALESCE ( - ( + - 91 ), + 65 / - CAST( 86 AS DECIMAL ) * - 79 + + 78 * ( + - 3 ) + 22 + - COUNT( * ) ) + + + 45 + - 23 * + CASE 92 WHEN + 11 THEN + + 45 ELSE NULL END * + - 79 * - MIN( - 48 ) * - - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT + 81 - COALESCE ( - ( + - 91 ), + 65 / - CAST ( 86 AS REAL ) * - 79 + + 78 * ( + - 3 ) + 22 + - COUNT ( * ) ) + + + 45 + - 23 * + CASE 92 WHEN + 11 THEN + + 45 ELSE NULL END * + - 79 * - MIN ( - 48 ) * - - 3
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL - MIN ( ALL 84 )
----
-84

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

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

query I rowsort
SELECT ALL - 79 * - - 81 col1
----
-6399

query I rowsort
SELECT ALL COALESCE ( - - 47, NULLIF ( + - 51, - 38 - 82 ) ) AS col1
----
47

query I rowsort
SELECT - 31 - - + 45 col0
----
14

query I rowsort
SELECT ALL + 18 * - 17
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT 87 + 56 + + COUNT( * ) + 12 * 52 AS col1
----
768

skipif mysql # not compatible
query I rowsort label-3196
SELECT 87 + 56 + + COUNT ( * ) + 12 * 52 AS col1
----
768

query I rowsort
SELECT 31 - + 68
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3198
SELECT - - 18 AS col1, + 13 * - 95 * + - 38 + + COUNT( DISTINCT 84 )
----
18
46931

skipif mysql # not compatible
query II rowsort label-3198
SELECT - - 18 AS col1, + 13 * - 95 * + - 38 + + COUNT ( DISTINCT 84 )
----
18
46931

query I rowsort
SELECT - 88 + + 12
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT DISTINCT - ( - 94 ) - + 84 - - + 10 - - + COUNT( * ) * 87 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT - ( - 94 ) - + 84 - - + 10 - - + COUNT ( * ) * 87 AS col2
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3201
SELECT MAX( + - 2 ) + - CAST( NULL AS SIGNED ) - MAX( ALL + + 27 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3201
SELECT MAX ( + - 2 ) + - CAST ( NULL AS INTEGER ) - MAX ( ALL + + 27 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT ALL + 2 DIV - 99 * - 29
----
0

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL + 2 / - 99 * - 29
----
0

query I rowsort
SELECT + 38 + - 15 AS col2
----
23

query II rowsort
SELECT - 47 * 35 + - 56 * 41, - ( - 97 ) AS col0
----
-3941
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3205
SELECT 7 + 11 AS col0, - CASE + - ( 51 ) WHEN + - 34 THEN + + COUNT( * ) WHEN - CASE + 30 WHEN - - 9 / + - 65 + + 87 - - ( 74 ) * COUNT( DISTINCT + 14 ) + + COUNT( * ) * + + 22 * - + AVG ( + 89 ) THEN + - 11 / - 70 * - 0 * 20 / 43 + - 65 ELSE + 96 + + COUNT( * ) END THEN + - 46 END
----
18
NULL

skipif mysql # not compatible
query II rowsort label-3205
SELECT 7 + 11 AS col0, - CASE + - ( 51 ) WHEN + - 34 THEN + + COUNT ( * ) WHEN - CASE + 30 WHEN - - 9 / + - 65 + + 87 - - ( 74 ) * COUNT ( DISTINCT + 14 ) + + COUNT ( * ) * + + 22 * - + AVG ( + 89 ) THEN + - 11 / - 70 * - 0 * 20 / 43 + - 65 ELSE + 96 + + COUNT ( * ) END THEN + - 46 END
----
18
NULL

query I rowsort
SELECT 78 * + + 46
----
3588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3207
SELECT + CAST( + 43 AS SIGNED ) * + COALESCE ( 65, CAST( NULL AS SIGNED ) + - + 37 * - - ( - 62 ) + + COUNT( * ) ) + - - 17 - - MIN( ALL 3 ), - 61 AS col0
----
2815
-61

skipif mysql # not compatible
query II rowsort label-3207
SELECT + CAST ( + 43 AS INTEGER ) * + COALESCE ( 65, CAST ( NULL AS INTEGER ) + - + 37 * - - ( - 62 ) + + COUNT ( * ) ) + - - 17 - - MIN ( ALL 3 ), - 61 AS col0
----
2815
-61

query I rowsort
SELECT ALL + 7 * + 13
----
91

query I rowsort
SELECT ALL 10 * - 87 + 27 col2
----
-843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3210
SELECT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * + - COUNT( * ) + - 20 / + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) + - 20 / + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT + NULLIF ( + ( 18 ), + + COALESCE ( + + 78, - ( + SUM( 40 ) ) ) )
----
18

skipif mysql # not compatible
query I rowsort label-3211
SELECT + NULLIF ( + ( 18 ), + + COALESCE ( + + 78, - ( + SUM ( 40 ) ) ) )
----
18

query I rowsort
SELECT + 92 + + 93 AS col0
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-3213
SELECT COUNT( * ) * + 55 * 27 - 41 AS col0, 43
----
1444
43

skipif mysql # not compatible
query II rowsort label-3213
SELECT COUNT ( * ) * + 55 * 27 - 41 AS col0, 43
----
1444
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3214
SELECT + SUM( ALL + 69 ) DIV 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3214
SELECT + SUM ( ALL + 69 ) / 60 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3215
SELECT + 86 + + - 45 DIV + - COUNT( * ) AS col2
----
131

skipif mysql # not compatible
query I rowsort label-3215
SELECT + 86 + + - 45 / + - COUNT ( * ) AS col2
----
131

query I rowsort
SELECT 35 * - 50 + - 42
----
-1792

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

skipif mysql # not compatible
query II rowsort label-3217
SELECT + - 35 * + COUNT ( * ) AS col1, 95
----
-35
95

query I rowsort
SELECT ALL - 30 / + CASE + 1 WHEN + 60 THEN - - 90 END * 99
----
NULL

query I rowsort
SELECT + + 19 + - 96
----
-77

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

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

query I rowsort
SELECT DISTINCT 47 - 28 * - ( ( + 29 ) )
----
859

query I rowsort
SELECT - ( - - ( 85 ) )
----
-85

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3224
SELECT - 31 DIV - - 97 - - 25 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-3224
SELECT - 31 / - - 97 - - 25 / - 63
----
0

query I rowsort
SELECT + 75 - + 58 * + + 34 AS col0
----
-1897

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3227
SELECT - 88 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-3227
SELECT - 88 / - 92
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT ALL COALESCE ( + CAST( + 84 AS SIGNED ), 72 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL COALESCE ( + CAST ( + 84 AS INTEGER ), 72 ) AS col1
----
84

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3230
SELECT ALL + 23 AS col2, 8 + - - ( COALESCE ( - 64, - 21, 88 - + 59 / - + 76 * - 6 ) ) * + COUNT( * ) + + + CASE + ( COALESCE ( CAST( + 77 AS SIGNED ), + 88, - 25 + + 79 * + 36 ) ) WHEN - - 54 THEN NULL WHEN + 73 THEN 73 * + ( CAST( NULL AS DECIMAL ) ) + - 9 END AS col0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-3230
SELECT ALL + 23 AS col2, 8 + - - ( COALESCE ( - 64, - 21, 88 - + 59 / - + 76 * - 6 ) ) * + COUNT ( * ) + + + CASE + ( COALESCE ( CAST ( + 77 AS INTEGER ), + 88, - 25 + + 79 * + 36 ) ) WHEN - - 54 THEN NULL WHEN + 73 THEN 73 * + ( CAST ( NULL AS REAL ) ) + - 9 END AS col0
----
23
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT DISTINCT 63 DIV + 87 + - 45 * 1 col1
----
-45

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT 63 / + 87 + - 45 * 1 col1
----
-45

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

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT COUNT ( * ) / - 37 + - 46
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3233
SELECT DISTINCT + 8 DIV + 17 + + 46 - - 88
----
134

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT + 8 / + 17 + + 46 - - 88
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3234
SELECT ALL + 30 * - COUNT( ALL + - 76 ) DIV 36 + - COUNT( * ) + + + 94 - + 90
----
3

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL + 30 * - COUNT ( ALL + - 76 ) / 36 + - COUNT ( * ) + + + 94 - + 90
----
3

query I rowsort
SELECT DISTINCT + CASE - 90 WHEN + 56 THEN + 19 - - 89 + 22 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3236
SELECT + COUNT ( * ) / + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + COUNT ( * ) + + 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3237
SELECT DISTINCT - 31 * - 88 + - + 50 AS col2, + COUNT( * )
----
2678
1

skipif mysql # not compatible
query II rowsort label-3237
SELECT DISTINCT - 31 * - 88 + - + 50 AS col2, + COUNT ( * )
----
2678
1

query I rowsort
SELECT 48 * 49 - - 83 + - + 66 AS col0
----
2369

query I rowsort
SELECT ALL + 98 * + 54 + + 0 AS col2
----
5292

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT - 63 * COUNT( - - 71 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3240
SELECT - 63 * COUNT ( - - 71 ) AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3241
SELECT DISTINCT CAST( 83 AS SIGNED ) * - - 54 + - COUNT( * ) AS col2
----
4481

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT CAST ( 83 AS INTEGER ) * - - 54 + - COUNT ( * ) AS col2
----
4481

query I rowsort
SELECT - 27 - - 85
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT CASE + 95 WHEN 75 THEN NULL WHEN + SUM( + 96 ) THEN + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT CASE + 95 WHEN 75 THEN NULL WHEN + SUM ( + 96 ) THEN + 64 END
----
NULL

query I rowsort
SELECT - 3 - 87 AS col1
----
-90

query I rowsort
SELECT + ( 23 ) * - 88 col0
----
-2024

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT + MAX( DISTINCT 40 )
----
40

skipif mysql # not compatible
query I rowsort label-3246
SELECT + MAX ( DISTINCT 40 )
----
40

query I rowsort
SELECT + 4 * - 97 - 67 col1
----
-455

query I rowsort
SELECT + 32 * + 70 AS col2
----
2240

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

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

query I rowsort
SELECT ALL 61 * - 19
----
-1159

query I rowsort
SELECT ALL 19 * 50
----
950

query I rowsort
SELECT + COALESCE ( 54, + 84 ) - - 55
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT + COALESCE ( - 78, 35, - SUM( - 66 ) * MIN( ALL + 44 ) ) * + 98
----
-7644

skipif mysql # not compatible
query I rowsort label-3253
SELECT + COALESCE ( - 78, 35, - SUM ( - 66 ) * MIN ( ALL + 44 ) ) * + 98
----
-7644

query I rowsort
SELECT + 1 * 40
----
40

query I rowsort
SELECT + 13 + 86
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT + ( 0 ) * SUM( DISTINCT - 32 + 95 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3256
SELECT + ( 0 ) * SUM ( DISTINCT - 32 + 95 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3257
SELECT + CASE - 79 WHEN 32 / CASE 98 * + CASE + NULLIF ( - NULLIF ( + 92, 1 ), - COUNT( * ) ) WHEN COALESCE ( 54, + 24 * + 10 ) + + CAST( NULL AS SIGNED ) * 66 THEN 5 / - 70 ELSE NULL END WHEN 99 THEN 87 WHEN MAX( 5 ) * 7 THEN NULL END THEN 78 / 23 END + CASE NULLIF ( + SUM( 72 ), 4 + 4 ) + SUM( 15 ) WHEN + 88 - - 81 * + 6 THEN - 61 + CASE 43 + CAST( + 44 + 78 AS SIGNED ) * COUNT( * ) WHEN CASE 30 WHEN COUNT( * ) / - 86 - 33 * - COUNT( * ) THEN CASE + 58 WHEN COUNT( * ) THEN NULL WHEN 36 / - ( 50 ) THEN - 21 - 40 ELSE NULL END + 1 END THEN NULL WHEN - 36 / + 64 THEN NULL ELSE + 63 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3257
SELECT + CASE - 79 WHEN 32 / CASE 98 * + CASE + NULLIF ( - NULLIF ( + 92, 1 ), - COUNT ( * ) ) WHEN COALESCE ( 54, + 24 * + 10 ) + + CAST ( NULL AS INTEGER ) * 66 THEN 5 / - 70 ELSE NULL END WHEN 99 THEN 87 WHEN MAX ( 5 ) * 7 THEN NULL END THEN 78 / 23 END + CASE NULLIF ( + SUM ( 72 ), 4 + 4 ) + SUM ( 15 ) WHEN + 88 - - 81 * + 6 THEN - 61 + CASE 43 + CAST ( + 44 + 78 AS INTEGER ) * COUNT ( * ) WHEN CASE 30 WHEN COUNT ( * ) / - 86 - 33 * - COUNT ( * ) THEN CASE + 58 WHEN COUNT ( * ) THEN NULL WHEN 36 / - ( 50 ) THEN - 21 - 40 ELSE NULL END + 1 END THEN NULL WHEN - 36 / + 64 THEN NULL ELSE + 63 END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3258
SELECT + COALESCE ( 99, + CASE 86 WHEN + 1 * 61 THEN NULL WHEN - 28 - 8 * + 75 THEN NULL ELSE 10 END * - COUNT( * ) ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT + COALESCE ( 99, + CASE 86 WHEN + 1 * 61 THEN NULL WHEN - 28 - 8 * + 75 THEN NULL ELSE 10 END * - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT COUNT ( * ) + 83 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT + ( + COUNT( * ) ) + - ( + 87 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-3260
SELECT + ( + COUNT ( * ) ) + - ( + 87 ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT DISTINCT COALESCE ( ( CASE 6 WHEN 20 + 58 / + 53 THEN + 45 END ), - COALESCE ( - CASE - COUNT( DISTINCT 45 ) WHEN 76 / ( + ( 39 ) * NULLIF ( + 49, 76 ) ) THEN + COALESCE ( + 32, - COUNT( * ) ) * 49 - + 16 END, + 27, + SUM( ALL - 41 ) ) )
----
-27

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT COALESCE ( ( CASE 6 WHEN 20 + 58 / + 53 THEN + 45 END ), - COALESCE ( - CASE - COUNT ( DISTINCT 45 ) WHEN 76 / ( + ( 39 ) * NULLIF ( + 49, 76 ) ) THEN + COALESCE ( + 32, - COUNT ( * ) ) * 49 - + 16 END, + 27, + SUM ( ALL - 41 ) ) )
----
-27

query I rowsort
SELECT ALL 24 + + 18 * - 48 AS col1
----
-840

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

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

query I rowsort
SELECT ALL + 52 + 63
----
115

query I rowsort
SELECT + 12 + 95 col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL COUNT( * ) + MIN( 65 + 21 )
----
87

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL COUNT ( * ) + MIN ( 65 + 21 )
----
87

query I rowsort
SELECT 16 + 67 * + 43
----
2897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3268
SELECT CASE COUNT( + 50 ) WHEN + MIN( 75 ) DIV 63 THEN NULL WHEN 91 THEN ( NULLIF ( - 67, 79 + - 93 ) ) + CAST( NULL AS SIGNED ) WHEN 19 * + 67 + - 77 THEN NULL ELSE ( - ( - 50 ) ) * ( 70 DIV - COUNT( * ) ) END + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT CASE COUNT ( + 50 ) WHEN + MIN ( 75 ) / 63 THEN NULL WHEN 91 THEN ( NULLIF ( - 67, 79 + - 93 ) ) + CAST ( NULL AS INTEGER ) WHEN 19 * + 67 + - 77 THEN NULL ELSE ( - ( - 50 ) ) * ( 70 / - COUNT ( * ) ) END + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 97 * - 68 AS col1
----
-6596

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

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT - MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 35 + - 70
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL - COUNT( * ) - + 99 * 94
----
-9307

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL - COUNT ( * ) - + 99 * 94
----
-9307

query I rowsort
SELECT 22 * 82 AS col1
----
1804

query I rowsort
SELECT ALL 51 * 34 AS col0
----
1734

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3276
SELECT 38 + COALESCE ( - COUNT( * ), - MIN( 14 ) * + ( CAST( 18 AS SIGNED ) ) - + 78 * 93 )
----
37

skipif mysql # not compatible
query I rowsort label-3276
SELECT 38 + COALESCE ( - COUNT ( * ), - MIN ( 14 ) * + ( CAST ( 18 AS INTEGER ) ) - + 78 * 93 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL - MIN( DISTINCT 46 ) col2
----
-46

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL - MIN ( DISTINCT 46 ) col2
----
-46

query I rowsort
SELECT 47 * 16
----
752

query I rowsort
SELECT 72 * - 91 + - 24 AS col2
----
-6576

query I rowsort
SELECT 16 * 33
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT + + SUM( + 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-3281
SELECT + + SUM ( + 74 ) AS col0
----
74

query I rowsort
SELECT ALL - NULLIF ( 96, 29 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3283
SELECT - 58 DIV + 64 + - COALESCE ( 76, 89, - ( ( CAST( NULL AS SIGNED ) ) ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-3283
SELECT - 58 / + 64 + - COALESCE ( 76, 89, - ( ( CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
-76

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

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

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

skipif mysql # not compatible
query I rowsort label-3285
SELECT - COUNT ( DISTINCT 43 ) * + 70 + COUNT ( * ) / 48
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL - - CASE - ( - 79 ) WHEN 96 + - COUNT( * ) THEN + COUNT( * ) * 34 + COUNT( * ) * 24 WHEN + 6 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL - - CASE - ( - 79 ) WHEN 96 + - COUNT ( * ) THEN + COUNT ( * ) * 34 + COUNT ( * ) * 24 WHEN + 6 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 24 * 28 AS col1
----
672

query I rowsort
SELECT 62 + + 78 AS col1
----
140

query I rowsort
SELECT ALL - 95 * - 8 AS col2
----
760

query I rowsort
SELECT + 91 + + 28 AS col0
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT 54 DIV 46 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3291
SELECT 54 / 46 AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL - CAST ( NULL AS REAL ) + + ( 23 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 92 + 59 AS col1
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT ALL 96 + 47 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL 96 + 47 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT COALESCE ( + 24, 34 + 67 DIV 92 ) DIV 63 col0
----
0

skipif mysql # not compatible
query I rowsort label-3295
SELECT COALESCE ( + 24, 34 + 67 / 92 ) / 63 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT ALL - + COUNT( * ) + - NULLIF ( - 3, 39 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL - + COUNT ( * ) + - NULLIF ( - 3, 39 ) AS col1
----
2

query I rowsort
SELECT DISTINCT - 63 * - 29 AS col0
----
1827

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3300
SELECT 7 / 93 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL 18 + - COUNT( - 42 )
----
17

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL 18 + - COUNT ( - 42 )
----
17

query I rowsort
SELECT ( 46 ) * 50
----
2300

query I rowsort
SELECT ALL COALESCE ( + + ( + 63 ), 84 ) * 65 AS col2
----
4095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3304
SELECT 97 - - 45 + - COUNT( - ( + 97 ) ) DIV CAST( 79 AS SIGNED ) * 87 col1
----
142

skipif mysql # not compatible
query I rowsort label-3304
SELECT 97 - - 45 + - COUNT ( - ( + 97 ) ) / CAST ( 79 AS INTEGER ) * 87 col1
----
142

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL 75 * - - COUNT( * ) * 16 AS col1
----
1200

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL 75 * - - COUNT ( * ) * 16 AS col1
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL - MIN( DISTINCT - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - MIN ( DISTINCT - 84 )
----
84

query I rowsort
SELECT ( - - 96 ) - - 90
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT ALL COALESCE ( 48, - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) - COALESCE ( - 78, - 4 ) AS col2
----
126

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL COALESCE ( 48, - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) - COALESCE ( - 78, - 4 ) AS col2
----
126

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

skipif mysql # not compatible
query I rowsort label-3310
SELECT SUM ( - - 21 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3311
SELECT 22 / + + CASE + 8 WHEN NULLIF ( 52, CASE 67 WHEN + CASE ( + 55 ) WHEN + 91 - - 67 THEN 37 END * + 9 THEN NULLIF ( 66, - ( 34 ) + - 3 ) + CAST( 77 + 64 * - 23 AS DECIMAL ) * 66 ELSE NULL END ) THEN 25 WHEN + CASE 69 WHEN ( - ( 51 ) ) THEN + 41 WHEN - 73 THEN 9 * - 85 + 3 END THEN NULL ELSE NULL END / - ( COUNT( * ) / 55 + - 11 * 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT 22 / + + CASE + 8 WHEN NULLIF ( 52, CASE 67 WHEN + CASE ( + 55 ) WHEN + 91 - - 67 THEN 37 END * + 9 THEN NULLIF ( 66, - ( 34 ) + - 3 ) + CAST ( 77 + 64 * - 23 AS REAL ) * 66 ELSE NULL END ) THEN 25 WHEN + CASE 69 WHEN ( - ( 51 ) ) THEN + 41 WHEN - 73 THEN 9 * - 85 + 3 END THEN NULL ELSE NULL END / - ( COUNT ( * ) / 55 + - 11 * 86 ) AS col2
----
NULL

query I rowsort
SELECT 57 * - - 59 AS col0
----
3363

onlyif mysql # DIV for integer division: 
query I rowsort label-3313
SELECT ALL 98 DIV - 26
----
-3

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL 98 / - 26
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT DISTINCT - MIN( DISTINCT - 30 )
----
30

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT - MIN ( DISTINCT - 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL - COUNT( * ) * + + COALESCE ( 65, ( + 74 ) * 57 + 15, 6 ) * - 96 AS col1
----
6240

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - COUNT ( * ) * + + COALESCE ( 65, ( + 74 ) * 57 + 15, 6 ) * - 96 AS col1
----
6240

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT - 25 * - - ( COUNT( 12 ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3316
SELECT - 25 * - - ( COUNT ( 12 ) ) AS col0
----
-25

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

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL COUNT ( - + 78 ) * 30 AS col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT DISTINCT - - CASE - 73 WHEN + 56 * + 9 + - 4 * + 96 THEN NULL ELSE CAST( - 27 AS SIGNED ) END
----
-27

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT - - CASE - 73 WHEN + 56 * + 9 + - 4 * + 96 THEN NULL ELSE CAST ( - 27 AS INTEGER ) END
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3319
SELECT - NULLIF ( 22, + 84 ) * NULLIF ( - 60 * + 45 + + 65 DIV 71, - 56 )
----
59400

skipif mysql # not compatible
query I rowsort label-3319
SELECT - NULLIF ( 22, + 84 ) * NULLIF ( - 60 * + 45 + + 65 / 71, - 56 )
----
59400

query I rowsort
SELECT DISTINCT 13 + - - 2 * 55 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT COALESCE ( + - SUM( ALL - 64 ), + 15 ) * + 58
----
3712

skipif mysql # not compatible
query I rowsort label-3321
SELECT COALESCE ( + - SUM ( ALL - 64 ), + 15 ) * + 58
----
3712

onlyif mysql # DIV for integer division: 
query I rowsort label-3322
SELECT ALL + 19 DIV - 45 * - 21 + + 40 * 7
----
280

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL + 19 / - 45 * - 21 + + 40 * 7
----
280

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3323
SELECT CAST( - CASE 60 WHEN COUNT( * ) THEN - 56 ELSE NULL END AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT CAST ( - CASE 60 WHEN COUNT ( * ) THEN - 56 ELSE NULL END AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + 75 * + + 29 - 79
----
2096

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL + + CASE - - CASE - 46 WHEN 51 THEN 35 WHEN 29 * 33 THEN + 96 ELSE 35 + + COALESCE ( + 16 + + 58, + COUNT( * ) + + 23 ) END WHEN - 49 THEN 3 ELSE + COUNT( * ) END + + COALESCE ( + 99, SUM( DISTINCT + 76 ), 63 ) * 86
----
8515

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL + + CASE - - CASE - 46 WHEN 51 THEN 35 WHEN 29 * 33 THEN + 96 ELSE 35 + + COALESCE ( + 16 + + 58, + COUNT ( * ) + + 23 ) END WHEN - 49 THEN 3 ELSE + COUNT ( * ) END + + COALESCE ( + 99, SUM ( DISTINCT + 76 ), 63 ) * 86
----
8515

query I rowsort
SELECT 10 + + + 37 + + 80
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT - COUNT( * ) * + NULLIF ( 43, 93 ) * + 53 + + 18 * - NULLIF ( + ( 51 ), 4 + 47 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT - COUNT ( * ) * + NULLIF ( 43, 93 ) * + 53 + + 18 * - NULLIF ( + ( 51 ), 4 + 47 ) AS col0
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT - ( 31 ) AS col0
----
-31

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

query I rowsort
SELECT DISTINCT - 56 + - + ( + 69 ) + - 4 * 30 col1
----
-245

query I rowsort
SELECT DISTINCT - NULLIF ( + 59, - 36 + + 38 )
----
-59

query I rowsort
SELECT ALL - - 71 + + 15
----
86

query I rowsort
SELECT ALL - - 54 * 96 * 46 AS col2
----
238464

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT - 12 + + + CASE + 73 WHEN + 47 THEN 38 WHEN 89 + 51 THEN COUNT( * ) END + COUNT( * ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT - 12 + + + CASE + 73 WHEN + 47 THEN 38 WHEN 89 + 51 THEN COUNT ( * ) END + COUNT ( * ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT - MIN( DISTINCT 38 ) * + - 29
----
1102

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT - MIN ( DISTINCT 38 ) * + - 29
----
1102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3339
SELECT - 34, - COUNT( * ) DIV - 16 * COUNT( * ) AS col2
----
-34
0

skipif mysql # not compatible
query II rowsort label-3339
SELECT - 34, - COUNT ( * ) / - 16 * COUNT ( * ) AS col2
----
-34
0

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

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

query I rowsort
SELECT + 6 * - + 6 AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3342
SELECT ALL CASE + 58 WHEN + 50 / 7 THEN ( - 19 ) WHEN + 19 THEN + CAST( NULL AS SIGNED ) - 43 * - MAX( + 38 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL CASE + 58 WHEN + 50 / 7 THEN ( - 19 ) WHEN + 19 THEN + CAST ( NULL AS INTEGER ) - 43 * - MAX ( + 38 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT - 52 + 41 + - NULLIF ( 11, + 88 + MIN( - 41 ) * 47 ) - 68
----
-90

skipif mysql # not compatible
query I rowsort label-3343
SELECT - 52 + 41 + - NULLIF ( 11, + 88 + MIN ( - 41 ) * 47 ) - 68
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT + 58 - + 25 + + + NULLIF ( 14, 25 ) DIV - 4
----
30

skipif mysql # not compatible
query I rowsort label-3344
SELECT + 58 - + 25 + + + NULLIF ( 14, 25 ) / - 4
----
30

query I rowsort
SELECT - 70 * + + 36 AS col0
----
-2520

query I rowsort
SELECT DISTINCT + NULLIF ( + COALESCE ( 22, 57 - + 16 ), 13 * - 50 - + 94 ) - + 61 * + 35 AS col1
----
-2113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3347
SELECT + 22 + + CAST( NULL AS SIGNED ) + 99 / 32 * 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT + 22 + + CAST ( NULL AS INTEGER ) + 99 / 32 * 22 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3348
SELECT ALL + 17 DIV + - 18 * - + 82 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL + 17 / + - 18 * - + 82 / - 66
----
0

query I rowsort
SELECT + 40 * ( - + 74 )
----
-2960

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT + 98 + 47 * + COUNT( * ) * - 37 col2
----
-1641

skipif mysql # not compatible
query I rowsort label-3350
SELECT + 98 + 47 * + COUNT ( * ) * - 37 col2
----
-1641

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

query II rowsort
SELECT ALL 15 AS col0, 51
----
15
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT - 4 + - 36 - MIN( + NULLIF ( 84, + 73 ) ) AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-3353
SELECT - 4 + - 36 - MIN ( + NULLIF ( 84, + 73 ) ) AS col2
----
-124

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT + COUNT( * ) * + - 53 + + 24 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-3355
SELECT + COUNT ( * ) * + - 53 + + 24 AS col0
----
-29

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3357
SELECT ALL 99 * + 40 + + + 95 DIV 11 AS col0
----
3968

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL 99 * + 40 + + + 95 / 11 AS col0
----
3968

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT + 90 DIV - 87 + - 65 - 50 * - 17 + 18 AS col2
----
802

skipif mysql # not compatible
query I rowsort label-3358
SELECT + 90 / - 87 + - 65 - 50 * - 17 + 18 AS col2
----
802

query II rowsort
SELECT ALL + + 6 AS col1, 33 AS col1
----
6
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT + - CASE + COUNT( * ) WHEN + ( - 60 ) THEN NULL WHEN + 41 THEN - COUNT( DISTINCT 60 ) END + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT + - CASE + COUNT ( * ) WHEN + ( - 60 ) THEN NULL WHEN + 41 THEN - COUNT ( DISTINCT 60 ) END + 93 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 88 * 69 + ( + 46 ) + - 39
----
-6065

query I rowsort
SELECT + COALESCE ( + + 76, - 0 ) + + 67 * 80 col0
----
5436

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3364
SELECT - CAST( NULL AS DECIMAL ) * 40 - - 96 + - CASE + 41 + - NULLIF ( 7, + 74 * 72 ) * 76 WHEN COUNT( - 66 ) + + 64 / 72 THEN COUNT( * ) WHEN - 40 THEN - 97 * + 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT - CAST ( NULL AS REAL ) * 40 - - 96 + - CASE + 41 + - NULLIF ( 7, + 74 * 72 ) * 76 WHEN COUNT ( - 66 ) + + 64 / 72 THEN COUNT ( * ) WHEN - 40 THEN - 97 * + 40 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT DISTINCT + CASE - + 43 WHEN + 65 + + 91 THEN + CAST( NULL AS SIGNED ) + + 52 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT + CASE - + 43 WHEN + 65 + + 91 THEN + CAST ( NULL AS INTEGER ) + + 52 END col2
----
NULL

query I rowsort
SELECT - - ( - 64 ) + - 53
----
-117

query I rowsort
SELECT DISTINCT 65 * 89 * - 82 + ( - 64 ) AS col0
----
-474434

query I rowsort
SELECT - NULLIF ( + 25, + 57 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3369
SELECT ALL + 4 AS col2, - SUM( DISTINCT + + CAST( NULL AS DECIMAL ) ) AS col0
----
4
NULL

skipif mysql # not compatible
query II rowsort label-3369
SELECT ALL + 4 AS col2, - SUM ( DISTINCT + + CAST ( NULL AS REAL ) ) AS col0
----
4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT + COUNT( * ) * + 46 + + + 82 * CASE 82 WHEN COALESCE ( 93, ( 95 ) * - COUNT( * ) ) THEN + 59 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT + COUNT ( * ) * + 46 + + + 82 * CASE 82 WHEN COALESCE ( 93, ( 95 ) * - COUNT ( * ) ) THEN + 59 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 73 * - 67 * + 4 + 45
----
19609

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT ALL + 94 * - + COUNT( * ) * - CASE - ( - SUM( - 23 ) ) WHEN 25 + 99 THEN 49 WHEN 52 + - 56 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL + 94 * - + COUNT ( * ) * - CASE - ( - SUM ( - 23 ) ) WHEN 25 + 99 THEN 49 WHEN 52 + - 56 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3373
SELECT - + CAST( + - 30 AS SIGNED ) + ( - 27 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3373
SELECT - + CAST ( + - 30 AS INTEGER ) + ( - 27 ) AS col2
----
3

query I rowsort
SELECT NULLIF ( + - 23, + + 51 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL MIN( ALL + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL MIN ( ALL + 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3376
SELECT - 6 * 96 DIV - - MAX( - 43 )
----
13

skipif mysql # not compatible
query I rowsort label-3376
SELECT - 6 * 96 / - - MAX ( - 43 )
----
13

query I rowsort
SELECT - 82 + + 23 * 56 AS col1
----
1206

query I rowsort
SELECT ALL COALESCE ( - 47, + 29 ) col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3379
SELECT - 53 * + SUM( ALL - 60 ) + - + 74 - COUNT( ALL 80 ) DIV 34
----
3106

skipif mysql # not compatible
query I rowsort label-3379
SELECT - 53 * + SUM ( ALL - 60 ) + - + 74 - COUNT ( ALL 80 ) / 34
----
3106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT DISTINCT MIN( ALL + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT MIN ( ALL + 55 )
----
55

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

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

query I rowsort
SELECT - 16 * - 12 AS col2
----
192

query I rowsort
SELECT - 87 - + 71
----
-158

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3388
SELECT - COALESCE ( + 64, - ( + CASE COUNT( * ) WHEN 7 THEN + 56 WHEN + 29 DIV 11 THEN 98 * CAST( - 39 AS SIGNED ) END ) * 6 - + 49 DIV - 83, 68 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-3388
SELECT - COALESCE ( + 64, - ( + CASE COUNT ( * ) WHEN 7 THEN + 56 WHEN + 29 / 11 THEN 98 * CAST ( - 39 AS INTEGER ) END ) * 6 - + 49 / - 83, 68 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL 68 + - CASE 92 WHEN - 33 + MAX( ALL + 15 ) THEN NULL ELSE - 53 END
----
121

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL 68 + - CASE 92 WHEN - 33 + MAX ( ALL + 15 ) THEN NULL ELSE - 53 END
----
121

query I rowsort
SELECT DISTINCT ( - 80 ) AS col2
----
-80

query I rowsort
SELECT - 16 * + 60 * - + 10 AS col1
----
9600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3392
SELECT - 88 DIV + 75 + + + SUM( ALL - 35 ) - + 50 - 56
----
-142

skipif mysql # not compatible
query I rowsort label-3392
SELECT - 88 / + 75 + + + SUM ( ALL - 35 ) - + 50 - 56
----
-142

onlyif mysql # DIV for integer division: 
query I rowsort label-3393
SELECT DISTINCT + 77 DIV - 12 + 41
----
35

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT + 77 / - 12 + 41
----
35

query I rowsort
SELECT - + 2 * + + 3 * - 46 AS col2
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT - - COALESCE ( SUM( DISTINCT - ( 19 ) ), 94 ) * 75 AS col0
----
-1425

skipif mysql # not compatible
query I rowsort label-3395
SELECT - - COALESCE ( SUM ( DISTINCT - ( 19 ) ), 94 ) * 75 AS col0
----
-1425

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL + MIN( DISTINCT - - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL + MIN ( DISTINCT - - 72 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3398
SELECT + + CASE - 38 WHEN COUNT( * ) / - + 97 * + MAX( ALL + 10 * + 75 ) - + CAST( NULL AS SIGNED ) THEN - COUNT( * ) WHEN - 74 * - 7 THEN - 88 WHEN + CASE 72 WHEN - AVG ( 39 ) THEN 70 END + 64 * COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT + + CASE - 38 WHEN COUNT ( * ) / - + 97 * + MAX ( ALL + 10 * + 75 ) - + CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) WHEN - 74 * - 7 THEN - 88 WHEN + CASE 72 WHEN - AVG ( 39 ) THEN 70 END + 64 * COUNT ( * ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3399
SELECT - + 69 / MIN( ALL - COALESCE ( - 66, 51 / - 66 ) ) * - 17 - + CAST( NULL AS SIGNED ) - COUNT( * ) / - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3399
SELECT - + 69 / MIN ( ALL - COALESCE ( - 66, 51 / - 66 ) ) * - 17 - + CAST ( NULL AS INTEGER ) - COUNT ( * ) / - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT + - 62 * - CASE + - 1 WHEN + 87 THEN 49 WHEN + MAX( ALL + 30 ) THEN NULL END - + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT + - 62 * - CASE + - 1 WHEN + 87 THEN 49 WHEN + MAX ( ALL + 30 ) THEN NULL END - + 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3401
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 87 - CASE + 57 WHEN COUNT( * ) - ( COALESCE ( 2, 99 ) ) THEN + 96 ELSE NULL END * AVG ( + 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 87 - CASE + 57 WHEN COUNT ( * ) - ( COALESCE ( 2, 99 ) ) THEN + 96 ELSE NULL END * AVG ( + 38 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT ALL 29 - + SUM( ALL + 21 ) - - + 98 col2
----
106

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL 29 - + SUM ( ALL + 21 ) - - + 98 col2
----
106

query I rowsort
SELECT + + 54 * + - 79 - 57 * + 77 AS col0
----
-8655

query I rowsort
SELECT + 12 + + 66 + - 16 + 31
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3405
SELECT CAST( NULL AS SIGNED ) / + 55 * + ( ( - 9 ) ) * - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3405
SELECT CAST ( NULL AS INTEGER ) / + 55 * + ( ( - 9 ) ) * - 83 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3406
SELECT 25 * - COALESCE ( + COUNT( * ), - COUNT( * ), 17, - 30 + + CAST( NULL AS SIGNED ) * - 36 ) + 71
----
46

skipif mysql # not compatible
query I rowsort label-3406
SELECT 25 * - COALESCE ( + COUNT ( * ), - COUNT ( * ), 17, - 30 + + CAST ( NULL AS INTEGER ) * - 36 ) + 71
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT COUNT( * ) - - - 21
----
-20

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT COUNT ( * ) - - - 21
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3408
SELECT ALL CAST( NULL AS DECIMAL ) * - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL CAST ( NULL AS REAL ) * - 14 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL CASE - + 82 WHEN + 19 THEN NULL WHEN + 94 THEN - 61 ELSE ( 16 ) END * + 22 AS col1
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT COUNT( * ) - 84 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3411
SELECT COUNT ( * ) - 84 AS col0
----
-83

query I rowsort
SELECT DISTINCT ( - 20 ) * - 60 col1
----
1200

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

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

query I rowsort
SELECT 31 + - 3
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3415
SELECT ALL - 54 DIV + + COUNT( * ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL - 54 / + + COUNT ( * ) col1
----
-54

query I rowsort
SELECT ( + ( - ( + 22 ) ) ) + 67 * - 38
----
-2568

query I rowsort
SELECT 76 - + 19 AS col0
----
57

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT ALL - 27 + 10 + - CAST( NULL AS SIGNED ) * + ( - + 56 ) * CAST( + 93 + 78 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL - 27 + 10 + - CAST ( NULL AS INTEGER ) * + ( - + 56 ) * CAST ( + 93 + 78 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( - + 89 ) + + 7 col0
----
-82

query I rowsort
SELECT 66 + 44
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT DISTINCT + + 15 + + - 6 - - 1 * - COUNT( ALL + 13 ) * 21 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT + + 15 + + - 6 - - 1 * - COUNT ( ALL + 13 ) * 21 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3423
SELECT - + COUNT( * ) AS col2, - 78 * 84 * - 69 + - + 55 - NULLIF ( + 82, - 7 )
----
-1
451951

skipif mysql # not compatible
query II rowsort label-3423
SELECT - + COUNT ( * ) AS col2, - 78 * 84 * - 69 + - + 55 - NULLIF ( + 82, - 7 )
----
-1
451951

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT - COUNT( + 33 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3424
SELECT - COUNT ( + 33 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT + 67 + 46 + 20 - COUNT( * ) col1
----
132

skipif mysql # not compatible
query I rowsort label-3425
SELECT + 67 + 46 + 20 - COUNT ( * ) col1
----
132

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ALL + 18 + + COUNT( * ) - - 45 col0
----
64

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL + 18 + + COUNT ( * ) - - 45 col0
----
64

query I rowsort
SELECT 90 * 2 + - 37 AS col0
----
143

query II rowsort
SELECT DISTINCT - 83 AS col2, 44 + + 64 * - - 17 AS col2
----
-83
1132

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT - COALESCE ( - + 68, + - 56, - - MIN( - - 60 ) * 89 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT - COALESCE ( - + 68, + - 56, - - MIN ( - - 60 ) * 89 ) AS col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3431
SELECT - 35 DIV + - 78 + + - 22 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3431
SELECT - 35 / + - 78 + + - 22 AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3432
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - 26 * + 26 + + - 65 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 26 * + 26 + + - 65 * + COUNT ( * )
----
NULL

query I rowsort
SELECT + 44 + - 99
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3434
SELECT ALL - 35 DIV SUM( ALL - 46 ) AS col2, 42 DIV + - 89
----
0
0

skipif mysql # not compatible
query II rowsort label-3434
SELECT ALL - 35 / SUM ( ALL - 46 ) AS col2, 42 / + - 89
----
0
0

query I rowsort
SELECT 30 * 4 + + 12 + - - 39 + 37 * 29 * 55 * + 26 AS col1
----
1534561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3436
SELECT - + NULLIF ( + 62, + 4 ) * + COALESCE ( - CASE COALESCE ( - 56, + 91 + COUNT( * ) ) WHEN 18 + ( - CAST( NULL AS SIGNED ) ) THEN NULL WHEN SUM( DISTINCT 51 ) THEN 1 * 95 + - 76 END, 65, + CAST( NULL AS SIGNED ) ) - + 61 + - ( 14 ) * + 61 AS col0
----
-4945

skipif mysql # not compatible
query I rowsort label-3436
SELECT - + NULLIF ( + 62, + 4 ) * + COALESCE ( - CASE COALESCE ( - 56, + 91 + COUNT ( * ) ) WHEN 18 + ( - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN SUM ( DISTINCT 51 ) THEN 1 * 95 + - 76 END, 65, + CAST ( NULL AS INTEGER ) ) - + 61 + - ( 14 ) * + 61 AS col0
----
-4945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3437
SELECT + + COUNT( + + 22 ) * 62 + + ( - 60 ) + - MIN( ( - CAST( NULL AS SIGNED ) ) + 22 / + ( 80 * + 33 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT + + COUNT ( + + 22 ) * 62 + + ( - 60 ) + - MIN ( ( - CAST ( NULL AS INTEGER ) ) + 22 / + ( 80 * + 33 ) )
----
NULL

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

query I rowsort
SELECT 24 * + - 32 AS col1
----
-768

query I rowsort
SELECT + NULLIF ( + 80, + + 32 ) AS col0
----
80

query I rowsort
SELECT CASE - 67 WHEN NULLIF ( + 88, 80 / + 42 + 51 ) THEN NULL ELSE - 82 END
----
-82

query I rowsort
SELECT - 93 + + NULLIF ( ( - 20 ), + 86 * + COALESCE ( - ( - COALESCE ( 31, - 30 ) ) * 9, - 52 * + 66 ) )
----
-113

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3445
SELECT COUNT( * ) + - 53 + + + 93 DIV 73 + + 48 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3445
SELECT COUNT ( * ) + - 53 + + + 93 / 73 + + 48 AS col0
----
-3

query II rowsort
SELECT ALL - 77, - 99 col0
----
-77
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3447
SELECT CAST( + 87 AS SIGNED ) * - 22 AS col1
----
-1914

skipif mysql # not compatible
query I rowsort label-3447
SELECT CAST ( + 87 AS INTEGER ) * - 22 AS col1
----
-1914

query II rowsort
SELECT ALL 1 col0, + COALESCE ( - 0, 15 )
----
1
0

query II rowsort
SELECT 56 AS col2, 9 AS col1
----
56
9

query I rowsort
SELECT ALL 34 + - 31 * 2 col2
----
-28

query II rowsort
SELECT 70, + 92 * + 78 + + 82 * 58 AS col1
----
70
11932

query II rowsort
SELECT ALL 28 + 24, 89 AS col1
----
52
89

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT DISTINCT 33 + - + 30 * - 8 * + + NULLIF ( - COUNT( * ), 36 + COUNT( * ) * + COUNT( * ) )
----
-207

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT 33 + - + 30 * - 8 * + + NULLIF ( - COUNT ( * ), 36 + COUNT ( * ) * + COUNT ( * ) )
----
-207

query I rowsort
SELECT ALL 92 + + - 58 * 95
----
-5418

query I rowsort
SELECT + CASE - 99 WHEN 28 THEN 55 WHEN + ( 61 ) * 10 THEN NULL END - 48 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3458
SELECT + 25 * - + 33 * + 34 * 14 + - 32 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT + 25 * - + 33 * + 34 * 14 + - 32 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT COUNT( * ) - NULLIF ( + + 34, + 63 * 71 )
----
-33

skipif mysql # not compatible
query I rowsort label-3459
SELECT COUNT ( * ) - NULLIF ( + + 34, + 63 * 71 )
----
-33

query II rowsort
SELECT - + NULLIF ( - + 85, - AVG ( ALL - 73 ) ) AS col0, 3 * 49 AS col0
----
85
147

query I rowsort
SELECT - ( 50 ) + 35
----
-15

query I rowsort
SELECT DISTINCT + - 87 - 7
----
-94

query II rowsort
SELECT - 26 AS col0, - 44 AS col1
----
-26
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3464
SELECT ALL + + 37 - - 10 DIV - + 54 * - 18 DIV 9 + ( 75 )
----
112

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL + + 37 - - 10 / - + 54 * - 18 / 9 + ( 75 )
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT ALL SUM( DISTINCT + - 60 ) col1
----
-60

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL SUM ( DISTINCT + - 60 ) col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT DISTINCT + COUNT( * ) * - 33 - - 56
----
23

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT + COUNT ( * ) * - 33 - - 56
----
23

query I rowsort
SELECT DISTINCT - + 62 * + + NULLIF ( - 57, + + 26 / + 24 ) * 59 + + 93
----
208599

query I rowsort
SELECT ALL - 67 * + 75 - - 73
----
-4952

query I rowsort
SELECT + + 1 * + 78
----
78

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

query I rowsort
SELECT - 8 * ( - - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT DISTINCT + - CASE 43 WHEN - 87 * - + AVG ( ALL + 46 ) + + 24 THEN - 3 WHEN + COUNT( * ) * 27 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT + - CASE 43 WHEN - 87 * - + AVG ( ALL + 46 ) + + 24 THEN - 3 WHEN + COUNT ( * ) * 27 THEN NULL END col2
----
NULL

query I rowsort
SELECT DISTINCT - - 3 * + 92
----
276

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3474
SELECT - 6 DIV + 39 AS col1, COUNT( * ) + + 51 col2
----
0
52

skipif mysql # not compatible
query II rowsort label-3474
SELECT - 6 / + 39 AS col1, COUNT ( * ) + + 51 col2
----
0
52

query I rowsort
SELECT DISTINCT + 62 * - 97 + - 6 * - + 70 + + ( 85 )
----
-5509

query I rowsort
SELECT ALL - 29 * - 63 + - 19 + - 37
----
1771

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3477
SELECT DISTINCT + CAST( 46 AS SIGNED ) AS col0, + 7 AS col2, COUNT( * ) * + 20 + 14 + - + 77 + COUNT( * ) * 20 AS col0
----
46
7
-23

skipif mysql # not compatible
query III rowsort label-3477
SELECT DISTINCT + CAST ( 46 AS INTEGER ) AS col0, + 7 AS col2, COUNT ( * ) * + 20 + 14 + - + 77 + COUNT ( * ) * 20 AS col0
----
46
7
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT - 88 + - + CAST( - + 46 AS SIGNED ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3478
SELECT - 88 + - + CAST ( - + 46 AS INTEGER ) AS col2
----
-42

query I rowsort
SELECT ALL + 30 * - 67 * 34 + - 11
----
-68351

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

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

query I rowsort
SELECT - 21 * - + 68 * + + 26 + - 21 * - + 78 AS col2
----
38766

query I rowsort
SELECT ALL 52 + - 86 AS col0
----
-34

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

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL - 0 + + COUNT ( DISTINCT + 13 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT - 34 - + 46 + + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-3484
SELECT - 34 - + 46 + + COUNT ( * )
----
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL + 27 + - - 31 + + COUNT( * ) * - 53 * 64 AS col1
----
-3334

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL + 27 + - - 31 + + COUNT ( * ) * - 53 * 64 AS col1
----
-3334

query I rowsort
SELECT + 86 + + 44 AS col2
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT ALL - 64 + 90 DIV - - 25 + - + 5 - + + 37 DIV - 91
----
-66

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL - 64 + 90 / - - 25 + - + 5 - + + 37 / - 91
----
-66

query I rowsort
SELECT - 98 * NULLIF ( 57, + 61 ) AS col2
----
-5586

query I rowsort
SELECT - COALESCE ( - 39, - 64, - CASE 41 WHEN - 36 THEN - + 94 * 51 END + + 35 ) col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT + ( 28 ) + + COALESCE ( + + 78, + 84 - 66 + - 87 - 80 DIV 33 DIV - 77 * - 6, 29 ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-3491
SELECT + ( 28 ) + + COALESCE ( + + 78, + 84 - 66 + - 87 - 80 / 33 / - 77 * - 6, 29 ) AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - SUM( - + 50 ) + - 80 * + 84 + 13 * - COUNT( * )
----
-6683

skipif mysql # not compatible
query I rowsort label-3492
SELECT - SUM ( - + 50 ) + - 80 * + 84 + 13 * - COUNT ( * )
----
-6683

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3493
SELECT MIN( 84 ) AS col0, 30 * ( - - 12 ) + - 74 DIV 1 + + CASE - 63 WHEN - 63 + + 73 THEN 68 + + COUNT( * ) ELSE + 45 * + 72 END
----
84
3526

skipif mysql # not compatible
query II rowsort label-3493
SELECT MIN ( 84 ) AS col0, 30 * ( - - 12 ) + - 74 / 1 + + CASE - 63 WHEN - 63 + + 73 THEN 68 + + COUNT ( * ) ELSE + 45 * + 72 END
----
84
3526

query I rowsort
SELECT DISTINCT + 29 * + 41 + 96 - - - 13
----
1272

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT ALL 50 DIV 79 col0
----
0

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL 50 / 79 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + - 41 + + + 21 + + SUM( ALL + 50 ) col0
----
30

skipif mysql # not compatible
query I rowsort label-3497
SELECT + - 41 + + + 21 + + SUM ( ALL + 50 ) col0
----
30

query I rowsort
SELECT - 39 * - + 30 + 22 AS col0
----
1192

onlyif mysql # aggregate syntax: 
query II rowsort label-3499
SELECT + 79 + - 5, + COUNT( DISTINCT + 64 ) col1
----
74
1

skipif mysql # not compatible
query II rowsort label-3499
SELECT + 79 + - 5, + COUNT ( DISTINCT + 64 ) col1
----
74
1

query I rowsort
SELECT - 53 + + NULLIF ( - 73, - 44 )
----
-126

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3501
SELECT - + ( + CASE + ( + COUNT( * ) ) WHEN - + 60 THEN - + 1 + + 32 END ) * MAX( 73 * CAST( NULLIF ( - 30, + 35 + 7 ) AS DECIMAL ) + + 82 ) + NULLIF ( 46, + 21 + - 72 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3501
SELECT - + ( + CASE + ( + COUNT ( * ) ) WHEN - + 60 THEN - + 1 + + 32 END ) * MAX ( 73 * CAST ( NULLIF ( - 30, + 35 + 7 ) AS REAL ) + + 82 ) + NULLIF ( 46, + 21 + - 72 ) col2
----
NULL

query I rowsort
SELECT + - 89 * 95 AS col0
----
-8455

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT ALL + SUM( ALL + 48 ) col1
----
48

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL + SUM ( ALL + 48 ) col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT DISTINCT - + SUM( DISTINCT ( - ( - 81 ) ) ) * - COUNT( * ) + 18 + - 5 * ( - 15 ) AS col1
----
174

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT - + SUM ( DISTINCT ( - ( - 81 ) ) ) * - COUNT ( * ) + 18 + - 5 * ( - 15 ) AS col1
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-3505
SELECT ALL - - 19 DIV - 10 + - 29 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL - - 19 / - 10 + - 29 AS col2
----
-30

query I rowsort
SELECT - 0 + + 29 AS col1
----
29

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3508
SELECT ALL + 35 DIV - + 27 + - CAST( - - 73 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL + 35 / - + 27 + - CAST ( - - 73 AS INTEGER )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT + CAST( + + CASE 93 WHEN + 7 THEN 40 ELSE CASE - 42 WHEN + 73 * - 71 - 85 THEN - 31 * + 1 END * - 75 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT + CAST ( + + CASE 93 WHEN + 7 THEN 40 ELSE CASE - 42 WHEN + 73 * - 71 - 85 THEN - 31 * + 1 END * - 75 END AS INTEGER )
----
NULL

query II rowsort
SELECT + 39 AS col0, 62 AS col1
----
39
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT + 64 * - SUM( + + 87 )
----
-5568

skipif mysql # not compatible
query I rowsort label-3511
SELECT + 64 * - SUM ( + + 87 )
----
-5568

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3513
SELECT DISTINCT + 25 * - ( - 14 ) + - - 27 + - 13 * + + 48 * 95 + 15 DIV + 25
----
-58903

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT + 25 * - ( - 14 ) + - - 27 + - 13 * + + 48 * 95 + 15 / + 25
----
-58903

onlyif mysql # DIV for integer division: 
query II rowsort label-3514
SELECT DISTINCT + 23 DIV 43 DIV + 54 col2, 49 col2
----
0
49

skipif mysql # not compatible
query II rowsort label-3514
SELECT DISTINCT + 23 / 43 / + 54 col2, 49 col2
----
0
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3515
SELECT ALL + 31, - CAST( - - ( - 57 ) AS SIGNED ) AS col2
----
31
57

skipif mysql # not compatible
query II rowsort label-3515
SELECT ALL + 31, - CAST ( - - ( - 57 ) AS INTEGER ) AS col2
----
31
57

query I rowsort
SELECT - 10 + - + 43 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT ALL 10 * + 95 + + SUM( + 98 )
----
1048

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL 10 * + 95 + + SUM ( + 98 )
----
1048

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT COALESCE ( + - 24, + 45 + - - ( + 20 ) DIV - 96 + - 51, - 18 DIV - 91 )
----
-24

skipif mysql # not compatible
query I rowsort label-3518
SELECT COALESCE ( + - 24, + 45 + - - ( + 20 ) / - 96 + - 51, - 18 / - 91 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT - COUNT( 32 ) * + 34 + 51 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-3519
SELECT - COUNT ( 32 ) * + 34 + 51 AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT DISTINCT + 23 DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT + 23 / + 26
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3521
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - 79
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-3521
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - 79
----
NULL
-79

query I rowsort
SELECT - 74 * - 22 AS col0
----
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT - COALESCE ( + - NULLIF ( + - COUNT( * ), + + 89 * COUNT( * ) ), - 39 * 26 - + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3523
SELECT - COALESCE ( + - NULLIF ( + - COUNT ( * ), + + 89 * COUNT ( * ) ), - 39 * 26 - + + COUNT ( * ) )
----
-1

query I rowsort
SELECT - 54 * + ( 93 ) + - 22 AS col1
----
-5044

query I rowsort
SELECT ALL + 95 * 62 + 14 - + 62 col0
----
5842

query I rowsort
SELECT - - 94 * 40 col2
----
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT DISTINCT - + COUNT( * ) * - 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT - + COUNT ( * ) * - 24 AS col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3528
SELECT ALL - 63, + 52 + + COUNT( * ) AS col2
----
-63
53

skipif mysql # not compatible
query II rowsort label-3528
SELECT ALL - 63, + 52 + + COUNT ( * ) AS col2
----
-63
53

query I rowsort
SELECT ALL - + 53 * - - 38 AS col0
----
-2014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3530
SELECT COUNT( * ) * 25 + + SUM( CAST( - 75 AS SIGNED ) ) * COUNT( * ) * + - 2 - + 95 col1
----
80

skipif mysql # not compatible
query I rowsort label-3530
SELECT COUNT ( * ) * 25 + + SUM ( CAST ( - 75 AS INTEGER ) ) * COUNT ( * ) * + - 2 - + 95 col1
----
80

query I rowsort
SELECT 60 + 80 AS col2
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3532
SELECT CASE + 46 WHEN + ( + 82 ) * + - CAST( NULL AS SIGNED ) * 62 / CAST( + 2 AS DECIMAL ) / 77 + - 73 THEN - 46 / - 56 ELSE + 0 + + COUNT( * ) * + 11 END AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3532
SELECT CASE + 46 WHEN + ( + 82 ) * + - CAST ( NULL AS INTEGER ) * 62 / CAST ( + 2 AS REAL ) / 77 + - 73 THEN - 46 / - 56 ELSE + 0 + + COUNT ( * ) * + 11 END AS col1
----
11

query I rowsort
SELECT ALL + 24 * + 60
----
1440

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

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT + ( - 25 ) / + 28 + + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL COUNT( * ) + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL COUNT ( * ) + - 58
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3536
SELECT - 94 DIV + CASE - - COUNT( * ) WHEN - + 41 THEN NULL WHEN + COUNT( DISTINCT - 74 ) THEN + 82 - - 43 END - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3536
SELECT - 94 / + CASE - - COUNT ( * ) WHEN - + 41 THEN NULL WHEN + COUNT ( DISTINCT - 74 ) THEN + 82 - - 43 END - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3537
SELECT COUNT( * ) - - - CAST( - - 84 AS SIGNED ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3537
SELECT COUNT ( * ) - - - CAST ( - - 84 AS INTEGER ) AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3538
SELECT ALL 82 + + COUNT( * ) + - - 16 * + COALESCE ( + + 95, + SUM( - 20 ) * + 6 + + 68 * CAST( + 14 AS SIGNED ), + SUM( 17 ) ) * + 45
----
68483

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL 82 + + COUNT ( * ) + - - 16 * + COALESCE ( + + 95, + SUM ( - 20 ) * + 6 + + 68 * CAST ( + 14 AS INTEGER ), + SUM ( 17 ) ) * + 45
----
68483

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3540
SELECT - 32 DIV - COUNT( * ) + + - 97 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-3540
SELECT - 32 / - COUNT ( * ) + + - 97 AS col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT COALESCE ( + 47, - 14 ) DIV 20 + 72 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-3541
SELECT COALESCE ( + 47, - 14 ) / 20 + 72 AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3542
SELECT 27 DIV - COUNT( * ) - 69 - - + 53 * - 91
----
-4919

skipif mysql # not compatible
query I rowsort label-3542
SELECT 27 / - COUNT ( * ) - 69 - - + 53 * - 91
----
-4919

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3543
SELECT ALL CAST( NULL AS SIGNED ) / - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL CAST ( NULL AS INTEGER ) / - 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT DISTINCT COUNT( DISTINCT + 7 ) + 20 * + + 65 - - 60 + + + 22
----
1383

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT COUNT ( DISTINCT + 7 ) + 20 * + + 65 - - 60 + + + 22
----
1383

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

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

query I rowsort
SELECT ALL 16 - 41 AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3547
SELECT 47 + + 69 + + NULLIF ( + + CASE CASE - AVG ( 53 ) WHEN + COUNT( * ) THEN - + CASE COUNT( * ) WHEN + 25 * 13 THEN + 21 * COUNT( * ) WHEN - 68 THEN NULL END / 40 ELSE NULL END WHEN - 80 THEN NULL WHEN + 39 * + 87 THEN NULLIF ( + 25, + 79 ) * ( + 98 + ( + CASE 41 WHEN - CASE + NULLIF ( - 41, 13 ) WHEN + CAST( - 17 AS SIGNED ) + - 44 THEN NULL ELSE - 99 END THEN NULL WHEN 34 * - 93 THEN - ( 56 ) - + 21 WHEN 51 THEN NULL WHEN + ( SUM( + 19 ) ) - + 49 THEN NULL ELSE NULL END ) * + NULLIF ( CASE WHEN NOT + COUNT( * ) IS NULL THEN 67 * + 14 WHEN NULL < 84 THEN - 57 END, - COUNT( * ) ) ) END, + COUNT( * ) * + MIN( DISTINCT + 74 ) ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3547
SELECT 47 + + 69 + + NULLIF ( + + CASE CASE - AVG ( 53 ) WHEN + COUNT ( * ) THEN - + CASE COUNT ( * ) WHEN + 25 * 13 THEN + 21 * COUNT ( * ) WHEN - 68 THEN NULL END / 40 ELSE NULL END WHEN - 80 THEN NULL WHEN + 39 * + 87 THEN NULLIF ( + 25, + 79 ) * ( + 98 + ( + CASE 41 WHEN - CASE + NULLIF ( - 41, 13 ) WHEN + CAST ( - 17 AS INTEGER ) + - 44 THEN NULL ELSE - 99 END THEN NULL WHEN 34 * - 93 THEN - ( 56 ) - + 21 WHEN 51 THEN NULL WHEN + ( SUM ( + 19 ) ) - + 49 THEN NULL ELSE NULL END ) * + NULLIF ( CASE WHEN NOT + COUNT ( * ) IS NULL THEN 67 * + 14 WHEN NULL < 84 THEN - 57 END, - COUNT ( * ) ) ) END, + COUNT ( * ) * + MIN ( DISTINCT + 74 ) ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 69 * - 33
----
-2277

query I rowsort
SELECT ALL - NULLIF ( - CASE + 44 WHEN + - 96 - + 31 * + - 38 THEN - 97 - + 69 / + + ( 5 ) END, + 73 - - 46 )
----
NULL

query I rowsort
SELECT ( - 27 ) + + 97 AS col2
----
70

query I rowsort
SELECT ALL 33 * 54 AS col2
----
1782

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT 75 + 85 * COUNT( ALL - 23 ) * 5 * - - 89 + + 78 AS col0
----
37978

skipif mysql # not compatible
query I rowsort label-3554
SELECT 75 + 85 * COUNT ( ALL - 23 ) * 5 * - - 89 + + 78 AS col0
----
37978

query I rowsort
SELECT 6 * + ( + + 35 ) - + + 51
----
159

query I rowsort
SELECT - 85 + - 93 + - 8 * 69 AS col0
----
-730

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

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

query I rowsort
SELECT 54 + 37
----
91

query I rowsort
SELECT + 52 + 13
----
65

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

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

query I rowsort
SELECT - 61 * - 58 * 56 * - ( ( - + 73 ) ) * - 35
----
-506217040

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL + 16 + - - MAX( DISTINCT NULLIF ( + 44, + 83 ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL + 16 + - - MAX ( DISTINCT NULLIF ( + 44, + 83 ) ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query III rowsort label-3563
SELECT ALL - MIN( ALL 70 ) + + - 75 + - 37 AS col0, 97 AS col2, 85 + - 46
----
-182
97
39

skipif mysql # not compatible
query III rowsort label-3563
SELECT ALL - MIN ( ALL 70 ) + + - 75 + - 37 AS col0, 97 AS col2, 85 + - 46
----
-182
97
39

query I rowsort
SELECT ALL - + 13 + - 76 AS col2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT DISTINCT - + 96 + CAST( + 47 AS SIGNED ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT - + 96 + CAST ( + 47 AS INTEGER ) col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT - COUNT( * ) + - 33 * CASE - - 68 WHEN + - 80 * 33 * + + 77 THEN NULL WHEN - - COUNT( * ) THEN - - COUNT( * ) END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT - COUNT ( * ) + - 33 * CASE - - 68 WHEN + - 80 * 33 * + + 77 THEN NULL WHEN - - COUNT ( * ) THEN - - COUNT ( * ) END + + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3567
SELECT - - MIN ( ALL - 65 )
----
-65

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3570
SELECT DISTINCT CAST( NULL AS SIGNED ) * - AVG ( 96 ) + + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - AVG ( 96 ) + + + COUNT ( * ) AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT 70 * 81 col1
----
5670

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT DISTINCT - CASE 55 WHEN + 16 THEN NULL WHEN - ( + SUM( 37 ) ) THEN 95 ELSE NULL END * + COUNT( * ) - + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT - CASE 55 WHEN + 16 THEN NULL WHEN - ( + SUM ( 37 ) ) THEN 95 ELSE NULL END * + COUNT ( * ) - + 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT ( 0 ) + - 65 * + + COUNT( * ) + + COUNT( DISTINCT - - 9 )
----
-64

skipif mysql # not compatible
query I rowsort label-3574
SELECT ( 0 ) + - 65 * + + COUNT ( * ) + + COUNT ( DISTINCT - - 9 )
----
-64

query I rowsort
SELECT DISTINCT 34 * - 7
----
-238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3576
SELECT 50 * + - COUNT( * ) DIV + 59 * + 97 col2
----
0

skipif mysql # not compatible
query I rowsort label-3576
SELECT 50 * + - COUNT ( * ) / + 59 * + 97 col2
----
0

query I rowsort
SELECT 85 * - 7
----
-595

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT MIN( DISTINCT 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3579
SELECT MIN ( DISTINCT 8 ) AS col1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3580
SELECT - COUNT( * ) * - + 77 + 28, + 35 * COUNT( * ) * + - MAX( ALL + + NULLIF ( - - 70, - 62 DIV NULLIF ( ( + 16 ), 47 ) - + 79 ) ) DIV - COUNT( * ) - 60 DIV - 29 AS col0
----
105
2452

skipif mysql # not compatible
query II rowsort label-3580
SELECT - COUNT ( * ) * - + 77 + 28, + 35 * COUNT ( * ) * + - MAX ( ALL + + NULLIF ( - - 70, - 62 / NULLIF ( ( + 16 ), 47 ) - + 79 ) ) / - COUNT ( * ) - 60 / - 29 AS col0
----
105
2452

query I rowsort
SELECT ALL 21 * + + 1 * 83 - - 90 AS col0
----
1833

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT SUM( ALL + 72 ) * 4 * + + 14
----
4032

skipif mysql # not compatible
query I rowsort label-3582
SELECT SUM ( ALL + 72 ) * 4 * + + 14
----
4032

query II rowsort
SELECT DISTINCT - 43 AS col0, - 21
----
-43
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3584
SELECT + ( + COUNT( * ) ) * - ( 54 ) * - 0 AS col0, 36 * - - 30 AS col0
----
0
1080

skipif mysql # not compatible
query II rowsort label-3584
SELECT + ( + COUNT ( * ) ) * - ( 54 ) * - 0 AS col0, 36 * - - 30 AS col0
----
0
1080

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

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

query II rowsort
SELECT - 73, 63 AS col0
----
-73
63

query II rowsort
SELECT DISTINCT + - 35 AS col0, - ( - + 61 ) AS col2
----
-35
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3588
SELECT ALL + COUNT( * ) + - - 48 * - + 62, + 95 - - 99 AS col2
----
-2975
194

skipif mysql # not compatible
query II rowsort label-3588
SELECT ALL + COUNT ( * ) + - - 48 * - + 62, + 95 - - 99 AS col2
----
-2975
194

query I rowsort
SELECT + - 68 * + 82 * + + 32 AS col0
----
-178432

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

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

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

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

query I rowsort
SELECT ALL - 7 + + 9 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3593
SELECT - CASE + ( - CAST( NULL AS SIGNED ) ) WHEN - 99 THEN 84 * + + 32 - - 60 * 51 WHEN - - 92 THEN NULL END * + - 66 - ( 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3593
SELECT - CASE + ( - CAST ( NULL AS INTEGER ) ) WHEN - 99 THEN 84 * + + 32 - - 60 * 51 WHEN - - 92 THEN NULL END * + - 66 - ( 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL MAX( + 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL MAX ( + 85 ) AS col1
----
85

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

query I rowsort
SELECT + + 41 * + ( + + 86 ) * 83 + - ( - + 66 ) AS col0
----
292724

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3598
SELECT + - 66 + + + CAST( 91 AS SIGNED ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3598
SELECT + - 66 + + + CAST ( 91 AS INTEGER ) AS col0
----
25

query I rowsort
SELECT - ( + - 36 ) + 11 col0
----
47

query I rowsort
SELECT ALL - 8 * 38
----
-304

onlyif mysql # DIV for integer division: 
query I rowsort label-3601
SELECT ALL 47 DIV - 73 col2
----
0

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL 47 / - 73 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3602
SELECT ALL - 99 - - - 78 + - + 89 - + 90 + NULLIF ( 4, COUNT( * ) * + 98 * 60 * - 28 * - 7 DIV 74 ) DIV 3 DIV + 54 AS col0
----
-356

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL - 99 - - - 78 + - + 89 - + 90 + NULLIF ( 4, COUNT ( * ) * + 98 * 60 * - 28 * - 7 / 74 ) / 3 / + 54 AS col0
----
-356

query I rowsort
SELECT DISTINCT - COALESCE ( 36, + - 11 ) * ( - 90 )
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT ALL ( - COUNT( ALL + 39 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL ( - COUNT ( ALL + 39 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3605
SELECT 24 AS col0, + 87 - - + COUNT( * )
----
24
88

skipif mysql # not compatible
query II rowsort label-3605
SELECT 24 AS col0, + 87 - - + COUNT ( * )
----
24
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT DISTINCT + COUNT( 37 ) - + 35
----
-34

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT + COUNT ( 37 ) - + 35
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT DISTINCT + ( + - 3 ) * + + MIN( DISTINCT + 59 )
----
-177

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT + ( + - 3 ) * + + MIN ( DISTINCT + 59 )
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - ( NULLIF ( - - 59, COUNT( * ) ) ) - + + 18 * COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-3608
SELECT - ( NULLIF ( - - 59, COUNT ( * ) ) ) - + + 18 * COUNT ( * )
----
-77

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

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

query II rowsort
SELECT + 46 AS col2, 32 AS col0
----
46
32

query II rowsort
SELECT ( - - 8 ) AS col0, + 72
----
8
72

query II rowsort
SELECT + 49 AS col0, 6
----
49
6

query I rowsort
SELECT DISTINCT + COALESCE ( - 49, - 8 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT DISTINCT + COALESCE ( - 51, CAST( NULL AS SIGNED ) )
----
-51

skipif mysql # not compatible
query I rowsort label-3615
SELECT DISTINCT + COALESCE ( - 51, CAST ( NULL AS INTEGER ) )
----
-51

query I rowsort
SELECT ALL 15 * + 4
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT - 21 - + + COALESCE ( + + 33, - 86 * + NULLIF ( + 3, + 22 * 9 + + + 13 ) * - - COALESCE ( COUNT( * ), + 66 ) + + 35, - COUNT( * ), - COUNT( * ) + 0 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3617
SELECT - 21 - + + COALESCE ( + + 33, - 86 * + NULLIF ( + 3, + 22 * 9 + + + 13 ) * - - COALESCE ( COUNT ( * ), + 66 ) + + 35, - COUNT ( * ), - COUNT ( * ) + 0 ) AS col1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT ALL - 1 DIV + 98 col1
----
0

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL - 1 / + 98 col1
----
0

query I rowsort
SELECT DISTINCT - 92 * - 89 AS col2
----
8188

query II rowsort
SELECT + 71 AS col0, 67
----
71
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3621
SELECT - 68 DIV + 11
----
-6

skipif mysql # not compatible
query I rowsort label-3621
SELECT - 68 / + 11
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3622
SELECT ALL 47 * + 23 + - AVG ( DISTINCT + - 18 ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL 47 * + 23 + - AVG ( DISTINCT + - 18 ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3624
SELECT - 7 + - 13 * - + COUNT ( * ) AS col1
----
6

query I rowsort
SELECT + 76 - + 75 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3626
SELECT ALL - - ( - 71 ) * - - 19 + - - 24 + - 30 + - - 88 - 66 * - COALESCE ( 53, 0 * + 21 DIV - 86, COUNT( * ) ) * 87 AS col2
----
303059

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL - - ( - 71 ) * - - 19 + - - 24 + - 30 + - - 88 - 66 * - COALESCE ( 53, 0 * + 21 / - 86, COUNT ( * ) ) * 87 AS col2
----
303059

query I rowsort
SELECT - 63 * + 0 * + 38 * - 36 + 45 + + + 32
----
77

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

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

query I rowsort
SELECT + 34 + 76 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT ALL - - 41 * - 4 + SUM( ALL - 4 ) * 38
----
-316

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL - - 41 * - 4 + SUM ( ALL - 4 ) * 38
----
-316

query I rowsort
SELECT ALL - - ( - 6 ) * 72 + - 27 + 18 col2
----
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT + - COUNT( * ) + 93
----
92

skipif mysql # not compatible
query I rowsort label-3632
SELECT + - COUNT ( * ) + 93
----
92

query II rowsort
SELECT DISTINCT + 20, - 93 AS col0
----
20
-93

query II rowsort
SELECT 15 AS col1, 78
----
15
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3635
SELECT - + CAST( NULL AS SIGNED ) * MIN( DISTINCT 4 ) * - 41 + + 22 + CAST( - NULLIF ( + + 23, - - 82 + - CAST( NULL AS DECIMAL ) ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT - + CAST ( NULL AS INTEGER ) * MIN ( DISTINCT 4 ) * - 41 + + 22 + CAST ( - NULLIF ( + + 23, - - 82 + - CAST ( NULL AS REAL ) ) AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + + NULLIF ( - 89, 52 + - 13 + + - 51 + - ( - + 83 ) * - 13 ) * 49 + + + 69 + + 85 + + 63
----
-4144

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3637
SELECT + CAST( NULL AS DECIMAL ) * ( + NULLIF ( + 9, + 48 + + 42 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT + CAST ( NULL AS REAL ) * ( + NULLIF ( + 9, + 48 + + 42 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT - COUNT( * ) * + - ( - - 42 ) * - 84 + + - 22 AS col2
----
-3550

skipif mysql # not compatible
query I rowsort label-3638
SELECT - COUNT ( * ) * + - ( - - 42 ) * - 84 + + - 22 AS col2
----
-3550

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3640
SELECT ALL - 35 - + COUNT( * ) DIV - 81 + 38 col0
----
3

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL - 35 - + COUNT ( * ) / - 81 + 38 col0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT + 35 - - + NULLIF ( - 89, + COUNT( * ) )
----
-54

skipif mysql # not compatible
query I rowsort label-3642
SELECT + 35 - - + NULLIF ( - 89, + COUNT ( * ) )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-3643
SELECT DISTINCT ( - 54 ), + 67 * + ( + - COUNT( * ) ) AS col0
----
-54
-67

skipif mysql # not compatible
query II rowsort label-3643
SELECT DISTINCT ( - 54 ), + 67 * + ( + - COUNT ( * ) ) AS col0
----
-54
-67

query I rowsort
SELECT + 82 * - + 37 AS col0
----
-3034

query I rowsort
SELECT - 88 * + 98 AS col1
----
-8624

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ALL NULLIF ( + + 43, + + COUNT( DISTINCT 84 ) )
----
43

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL NULLIF ( + + 43, + + COUNT ( DISTINCT 84 ) )
----
43

query I rowsort
SELECT + 99 + - 59 AS col2
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-3648
SELECT DISTINCT - 96 DIV - 88 AS col2, - 96 - + 70 AS col0
----
1
-166

skipif mysql # not compatible
query II rowsort label-3648
SELECT DISTINCT - 96 / - 88 AS col2, - 96 - + 70 AS col0
----
1
-166

query I rowsort
SELECT DISTINCT ( + COALESCE ( - - 2, 0 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL - 78 * + SUM( DISTINCT + 74 )
----
-5772

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL - 78 * + SUM ( DISTINCT + 74 )
----
-5772

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT + MIN( DISTINCT 87 ) + - 89
----
-2

skipif mysql # not compatible
query I rowsort label-3651
SELECT + MIN ( DISTINCT 87 ) + - 89
----
-2

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3653
SELECT 85 DIV 86, CAST( 44 AS SIGNED ) + - 75 * + ( - + 40 ) AS col2
----
0
3044

skipif mysql # not compatible
query II rowsort label-3653
SELECT 85 / 86, CAST ( 44 AS INTEGER ) + - 75 * + ( - + 40 ) AS col2
----
0
3044

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL 10 * + 70 * + 37 * COUNT( * ) * + COUNT( * ) * - 25
----
-647500

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL 10 * + 70 * + 37 * COUNT ( * ) * + COUNT ( * ) * - 25
----
-647500

onlyif mysql # DIV for integer division: 
query I rowsort label-3655
SELECT + 0 DIV 59 + 47 * + 19 AS col2
----
893

skipif mysql # not compatible
query I rowsort label-3655
SELECT + 0 / 59 + 47 * + 19 AS col2
----
893

query I rowsort
SELECT ALL - 6 + - 47 + + + 64
----
11

query I rowsort
SELECT - ( - 68 ) * - + 5 * - - 69 + + - 76 AS col2
----
-23536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3658
SELECT DISTINCT - CASE + - ( 87 ) WHEN - 97 THEN NULL WHEN + 27 THEN - CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT - CASE + - ( 87 ) WHEN - 97 THEN NULL WHEN + 27 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT COUNT( 99 ) * 52
----
52

skipif mysql # not compatible
query I rowsort label-3659
SELECT COUNT ( 99 ) * 52
----
52

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3661
SELECT DISTINCT - - SUM( DISTINCT - 10 ) AS col0, 58 AS col1
----
-10
58

skipif mysql # not compatible
query II rowsort label-3661
SELECT DISTINCT - - SUM ( DISTINCT - 10 ) AS col0, 58 AS col1
----
-10
58

query I rowsort
SELECT ALL - 40 + - 71
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT 83 * 50 * - COUNT( 91 ) AS col2
----
-4150

skipif mysql # not compatible
query I rowsort label-3663
SELECT 83 * 50 * - COUNT ( 91 ) AS col2
----
-4150

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT + CASE 25 WHEN + - 98 THEN - + ( - 18 ) + - 20 WHEN + + NULLIF ( + + ( + 63 ), - SUM( 25 ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT + CASE 25 WHEN + - 98 THEN - + ( - 18 ) + - 20 WHEN + + NULLIF ( + + ( + 63 ), - SUM ( 25 ) ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3665
SELECT ALL - 90 * CAST( NULL AS SIGNED ) * 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - 90 * CAST ( NULL AS INTEGER ) * 43 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT - 54 DIV - - 41 + + - 23
----
-24

skipif mysql # not compatible
query I rowsort label-3666
SELECT - 54 / - - 41 + + - 23
----
-24

query I rowsort
SELECT 63 * + - 51 AS col0
----
-3213

query I rowsort
SELECT ALL - + 39 - - 64 + - 46 + 79 col2
----
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT COUNT( 32 ) * + 38
----
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT + ( - 27 ) * + MIN( ALL 3 )
----
-81

skipif mysql # not compatible
query I rowsort label-3671
SELECT + ( - 27 ) * + MIN ( ALL 3 )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3672
SELECT ( MIN( - 16 ) ) DIV - + 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3672
SELECT ( MIN ( - 16 ) ) / - + 74 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + 70 - + - NULLIF ( - 65, - - ( - 41 ) / - COUNT( * ) ) * COUNT( * ) * - 57
----
3775

skipif mysql # not compatible
query I rowsort label-3673
SELECT + 70 - + - NULLIF ( - 65, - - ( - 41 ) / - COUNT ( * ) ) * COUNT ( * ) * - 57
----
3775

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3674
SELECT DISTINCT CAST( 90 AS DECIMAL ) / + - COUNT( * ) + - 56 + + 10 * - CASE + + 57 WHEN + + 56 * - + 68 THEN - - ( 46 ) * + + 79 + + 68 + + 21 WHEN 65 + - 83 * + 75 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT CAST ( 90 AS REAL ) / + - COUNT ( * ) + - 56 + + 10 * - CASE + + 57 WHEN + + 56 * - + 68 THEN - - ( 46 ) * + + 79 + + 68 + + 21 WHEN 65 + - 83 * + 75 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 65 * + - 38 AS col2
----
-2470

query I rowsort
SELECT ALL 76 - - - ( COALESCE ( - 55, - 84 ) )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT SUM( + 11 ) * - 20 * + 20
----
-4400

skipif mysql # not compatible
query I rowsort label-3677
SELECT SUM ( + 11 ) * - 20 * + 20
----
-4400

query II rowsort
SELECT DISTINCT 94, 9 AS col0
----
94
9

query I rowsort
SELECT DISTINCT 51 * 13 AS col0
----
663

query II rowsort
SELECT DISTINCT 69 + - - 68 * 26, - 35 AS col1
----
1837
-35

query I rowsort
SELECT ALL + ( + 41 ) + + 35 AS col0
----
76

onlyif mysql # aggregate syntax: 
query III rowsort label-3682
SELECT 26 * + MIN( ALL + 80 ) AS col1, 46 AS col1, + 19 + + 58
----
2080
46
77

skipif mysql # not compatible
query III rowsort label-3682
SELECT 26 * + MIN ( ALL + 80 ) AS col1, 46 AS col1, + 19 + + 58
----
2080
46
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3683
SELECT ALL - 65, CAST( NULL AS SIGNED ) / - - COUNT( * ) AS col2
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-3683
SELECT ALL - 65, CAST ( NULL AS INTEGER ) / - - COUNT ( * ) AS col2
----
-65
NULL

query I rowsort
SELECT ALL - 44 + - - 69 col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL + - COUNT( ALL - 11 ) + + 42 - + 19 + - + 6 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + - COUNT ( ALL - 11 ) + + 42 - + 19 + - + 6 AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3686
SELECT - COUNT( * ) - - CASE - 42 WHEN + 2 THEN + COUNT( * ) ELSE COUNT( * ) + 82 + - 17 * + 84 * + + CAST( NULL AS DECIMAL ) / MAX( + 58 ) END * 53 * - 32 + + COUNT( * ) * MIN( - 56 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT - COUNT ( * ) - - CASE - 42 WHEN + 2 THEN + COUNT ( * ) ELSE COUNT ( * ) + 82 + - 17 * + 84 * + + CAST ( NULL AS REAL ) / MAX ( + 58 ) END * 53 * - 32 + + COUNT ( * ) * MIN ( - 56 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT ALL CAST( - - 80 AS SIGNED ) * ( + 91 )
----
7280

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL CAST ( - - 80 AS INTEGER ) * ( + 91 )
----
7280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3688
SELECT DISTINCT - COALESCE ( - + 93, - COUNT( * ) + SUM( DISTINCT CAST( NULL AS SIGNED ) ) ) col0
----
93

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT - COALESCE ( - + 93, - COUNT ( * ) + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ) col0
----
93

query I rowsort
SELECT DISTINCT - 42 + + 91 AS col1
----
49

query I rowsort
SELECT DISTINCT - + 50 * 42
----
-2100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3691
SELECT NULLIF ( + 82, + CAST( NULL AS DECIMAL ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-3691
SELECT NULLIF ( + 82, + CAST ( NULL AS REAL ) ) AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3692
SELECT COUNT( + - 5 ) + ( 4 ) + SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3692
SELECT COUNT ( + - 5 ) + ( 4 ) + SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - 4 * + - 2 + 9 + COUNT( * ) + 75 * - 88 * + 90
----
-593982

skipif mysql # not compatible
query I rowsort label-3695
SELECT - 4 * + - 2 + 9 + COUNT ( * ) + 75 * - 88 * + 90
----
-593982

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT 67 - MIN( - 19 ) * - + COUNT( * ) * - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-3696
SELECT 67 - MIN ( - 19 ) * - + COUNT ( * ) * - COUNT ( * )
----
86

query I rowsort
SELECT - - 87 * - 9 + + + 89
----
-694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3698
SELECT ALL + + SUM( + 29 ) - + NULLIF ( + 54, 61 * - - COUNT( DISTINCT + 49 ) * + - CAST( NULL AS SIGNED ) - + 55 ) * 37 * - 28, - 60 + + - COALESCE ( 50, COUNT( * ), COUNT( ALL 41 ) ) + 50 AS col1
----
55973
-60

skipif mysql # not compatible
query II rowsort label-3698
SELECT ALL + + SUM ( + 29 ) - + NULLIF ( + 54, 61 * - - COUNT ( DISTINCT + 49 ) * + - CAST ( NULL AS INTEGER ) - + 55 ) * 37 * - 28, - 60 + + - COALESCE ( 50, COUNT ( * ), COUNT ( ALL 41 ) ) + 50 AS col1
----
55973
-60

query I rowsort
SELECT - 27 * + 84 AS col1
----
-2268

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

skipif mysql # not compatible
query I rowsort label-3700
SELECT CAST ( NULL AS INTEGER ) + - 4 + + 21 + ( - 16 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3701
SELECT - 33, + 28 * + + MAX( + 19 ) AS col2
----
-33
532

skipif mysql # not compatible
query II rowsort label-3701
SELECT - 33, + 28 * + + MAX ( + 19 ) AS col2
----
-33
532

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

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

query I rowsort
SELECT DISTINCT + 90 * + - 25
----
-2250

query I rowsort
SELECT + 37 * + 57 * - 76 + + 39 + 37 * + 55
----
-158210

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT DISTINCT NULLIF ( + + MAX( DISTINCT 60 ), - 57 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT NULLIF ( + + MAX ( DISTINCT 60 ), - 57 ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3706
SELECT 56 + - CAST( + 68 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-3706
SELECT 56 + - CAST ( + 68 AS INTEGER )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3707
SELECT DISTINCT COUNT( * ) + - 1 * - 85 * - NULLIF ( + 96, + CAST( NULL AS SIGNED ) + + 59 * 99 ) AS col1
----
-8159

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT COUNT ( * ) + - 1 * - 85 * - NULLIF ( + 96, + CAST ( NULL AS INTEGER ) + + 59 * 99 ) AS col1
----
-8159

query I rowsort
SELECT - ( + 25 ) * + 82
----
-2050

query I rowsort
SELECT DISTINCT - 33 * - - ( - 47 )
----
1551

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT ALL 16 + 42 * - 72 + 80 - + 42 - ( - SUM( DISTINCT + 12 ) ) + + 34 * - - 20
----
-2278

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL 16 + 42 * - 72 + 80 - + 42 - ( - SUM ( DISTINCT + 12 ) ) + + 34 * - - 20
----
-2278

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT + COUNT( * ) + COUNT( * ) + + SUM( ALL - - 84 )
----
86

skipif mysql # not compatible
query I rowsort label-3711
SELECT + COUNT ( * ) + COUNT ( * ) + + SUM ( ALL - - 84 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT DISTINCT - 6 + + COUNT( * ) + - CASE 96 WHEN - + 70 / 39 THEN - NULLIF ( 27, - 42 / - 14 + 53 + + 42 ) + - - 19 / CASE 55 WHEN AVG ( 40 ) * - 18 THEN + COUNT( * ) WHEN - 64 * + 38 THEN NULL ELSE NULL END WHEN + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT - 6 + + COUNT ( * ) + - CASE 96 WHEN - + 70 / 39 THEN - NULLIF ( 27, - 42 / - 14 + 53 + + 42 ) + - - 19 / CASE 55 WHEN AVG ( 40 ) * - 18 THEN + COUNT ( * ) WHEN - 64 * + 38 THEN NULL ELSE NULL END WHEN + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( 16 ) * + + ( 66 )
----
1056

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT + 62 + + - COUNT( ALL + 51 ) DIV - - 68 + + + 23 + - 32 * - + COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-3716
SELECT + 62 + + - COUNT ( ALL + 51 ) / - - 68 + + + 23 + - 32 * - + COUNT ( * )
----
117

query I rowsort
SELECT + 68 - 85
----
-17

query I rowsort
SELECT + 39 + - 88
----
-49

query I rowsort
SELECT DISTINCT + 70 * + 61 AS col1
----
4270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT DISTINCT + + CAST( + 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT + + CAST ( + 42 AS INTEGER )
----
42

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3723
SELECT DISTINCT + 30 DIV CAST( - 91 AS SIGNED ) * - + 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT + 30 / CAST ( - 91 AS INTEGER ) * - + 59 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3724
SELECT + 12 DIV + COALESCE ( - - 91, - - COUNT( * ) * - + ( - ( - 32 ) ) * 4 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3724
SELECT + 12 / + COALESCE ( - - 91, - - COUNT ( * ) * - + ( - ( - 32 ) ) * 4 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3725
SELECT DISTINCT + 86 DIV 33
----
2

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT + 86 / 33
----
2

query I rowsort
SELECT ALL + 36 * + + 49 + + 97 + 50
----
1911

query I rowsort
SELECT ALL - 61 * + + 81 * + 92 + - 31
----
-454603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3728
SELECT ( - 84 ) AS col0, CAST( MAX( ALL 74 ) AS SIGNED ) * 63
----
-84
4662

skipif mysql # not compatible
query II rowsort label-3728
SELECT ( - 84 ) AS col0, CAST ( MAX ( ALL 74 ) AS INTEGER ) * 63
----
-84
4662

query I rowsort
SELECT - - 50 * + - 57
----
-2850

query II rowsort
SELECT DISTINCT + 45 * - 61 * - 41 * 11, - ( 28 ) col1
----
1237995
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3731
SELECT ALL 83 * - 71 + - + ( - COUNT( * ) ) DIV - + 6
----
-5893

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL 83 * - 71 + - + ( - COUNT ( * ) ) / - + 6
----
-5893

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3732
SELECT + COALESCE ( - - COUNT( * ), - 68 * 8 DIV + + 76, 66 ) - 52 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3732
SELECT + COALESCE ( - - COUNT ( * ), - 68 * 8 / + + 76, 66 ) - 52 AS col0
----
-51

query I rowsort
SELECT DISTINCT + 73 + + + 90 * - 24 * 92 * + 1
----
-198647

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

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL 35 + + COUNT ( * ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT ALL + 92 + SUM( ALL 2 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL + 92 + SUM ( ALL 2 ) AS col2
----
94

query II rowsort
SELECT ALL + 47 + 65 * 76, - 63 AS col2
----
4987
-63

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

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

query I rowsort
SELECT ALL NULLIF ( + 1, + ( - 60 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3739
SELECT 6 col0, + CAST( NULL AS DECIMAL ) / COUNT( ALL - 99 ) AS col1
----
6
NULL

skipif mysql # not compatible
query II rowsort label-3739
SELECT 6 col0, + CAST ( NULL AS REAL ) / COUNT ( ALL - 99 ) AS col1
----
6
NULL

query II rowsort
SELECT 42 AS col2, - 42 - - 68
----
42
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT ALL + COUNT( * ) + + + 71 + - 31 * 61 AS col0
----
-1819

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL + COUNT ( * ) + + + 71 + - 31 * 61 AS col0
----
-1819

query I rowsort
SELECT - 86 * + 28 AS col1
----
-2408

onlyif mysql # aggregate syntax: 
query II rowsort label-3743
SELECT DISTINCT - 29 + MAX( 48 ) * ( 12 ), 88 * 30 * - 85 + - 5 * 78 AS col0
----
547
-224790

skipif mysql # not compatible
query II rowsort label-3743
SELECT DISTINCT - 29 + MAX ( 48 ) * ( 12 ), 88 * 30 * - 85 + - 5 * 78 AS col0
----
547
-224790

query I rowsort
SELECT + 27 * - 0 col0
----
0

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

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

query I rowsort
SELECT ALL + 84 * + 46
----
3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3747
SELECT - 91 * - - 36 * + 42 * - COALESCE ( - - 12, COUNT( * ) DIV - 89 * + 13, + CAST( NULL AS SIGNED ) ) AS col0
----
1651104

skipif mysql # not compatible
query I rowsort label-3747
SELECT - 91 * - - 36 * + 42 * - COALESCE ( - - 12, COUNT ( * ) / - 89 * + 13, + CAST ( NULL AS INTEGER ) ) AS col0
----
1651104

onlyif mysql # DIV for integer division: 
query I rowsort label-3748
SELECT ALL 3 DIV + 78 col1
----
0

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL 3 / + 78 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + 98 + + COUNT( * ) + MAX( 1 ) * + 47 + 34 * + NULLIF ( - 55, COUNT( * ) ) AS col1
----
-1724

skipif mysql # not compatible
query I rowsort label-3749
SELECT + 98 + + COUNT ( * ) + MAX ( 1 ) * + 47 + 34 * + NULLIF ( - 55, COUNT ( * ) ) AS col1
----
-1724

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ALL + SUM( ALL + + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL + SUM ( ALL + + 68 ) AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT - + CAST( 44 AS SIGNED ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-3751
SELECT - + CAST ( 44 AS INTEGER ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT - 46 - COUNT( * ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-3752
SELECT - 46 - COUNT ( * ) AS col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3753
SELECT ALL + - COUNT( CAST( NULL AS SIGNED ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL + - COUNT ( CAST ( NULL AS INTEGER ) ) col1
----
0

query I rowsort
SELECT - 60 - - 69 col1
----
9

query I rowsort
SELECT - + 28 * + 21 AS col2
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT + + 23 * - COUNT( DISTINCT - + 34 )
----
-23

skipif mysql # not compatible
query I rowsort label-3756
SELECT + + 23 * - COUNT ( DISTINCT - + 34 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3757
SELECT ALL + CASE CAST( 12 AS SIGNED ) WHEN - 89 - + 83 + - - 65 * - + 19 THEN - - NULLIF ( - 42, - 66 ) * + COUNT( * ) ELSE - 4 END AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + CASE CAST ( 12 AS INTEGER ) WHEN - 89 - + 83 + - - 65 * - + 19 THEN - - NULLIF ( - 42, - 66 ) * + COUNT ( * ) ELSE - 4 END AS col0
----
-4

query I rowsort
SELECT ALL 31 * + + NULLIF ( - - 23, - + 60 )
----
713

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3759
SELECT + 0 * - COALESCE ( - COUNT( * ), - 47 ) DIV + 70 AS col1, + 81
----
0
81

skipif mysql # not compatible
query II rowsort label-3759
SELECT + 0 * - COALESCE ( - COUNT ( * ), - 47 ) / + 70 AS col1, + 81
----
0
81

query I rowsort
SELECT ALL + ( - 68 ) * + 37 * + 7
----
-17612

query I rowsort
SELECT + 36 * + - 61 - - ( - 79 ) - - 67
----
-2208

query II rowsort
SELECT ALL + + 93 AS col1, 10
----
93
10

query I rowsort
SELECT - - 1 + - + 46 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT DISTINCT + NULLIF ( - + 85, 41 / 84 - + SUM( + + ( - + 34 ) ) - + 79 )
----
-85

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT + NULLIF ( - + 85, 41 / 84 - + SUM ( + + ( - + 34 ) ) - + 79 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT COUNT( DISTINCT - 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3765
SELECT COUNT ( DISTINCT - 51 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + 89 + + + NULLIF ( + - 18, 4 ) + + SUM( ALL + + 90 )
----
161

skipif mysql # not compatible
query I rowsort label-3766
SELECT + 89 + + + NULLIF ( + - 18, 4 ) + + SUM ( ALL + + 90 )
----
161

query I rowsort
SELECT DISTINCT 82 * + ( 49 ) AS col0
----
4018

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3768
SELECT DISTINCT + 78 + SUM( DISTINCT + 38 ) DIV - + COALESCE ( - 83, - 64 + + 55 + 97 + CASE + 88 WHEN + + 80 THEN + COUNT( * ) + - NULLIF ( COUNT( * ), - - CASE SUM( 83 ) WHEN + 35 * 23 THEN - 82 END ) - + NULLIF ( - 4, COALESCE ( - 50, ( + 98 ) + 53 ) ) END, - 59 * - 87 ) * 79 + - 8 * + 71 col0
----
-490

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT + 78 + SUM ( DISTINCT + 38 ) / - + COALESCE ( - 83, - 64 + + 55 + 97 + CASE + 88 WHEN + + 80 THEN + COUNT ( * ) + - NULLIF ( COUNT ( * ), - - CASE SUM ( 83 ) WHEN + 35 * 23 THEN - 82 END ) - + NULLIF ( - 4, COALESCE ( - 50, ( + 98 ) + 53 ) ) END, - 59 * - 87 ) * 79 + - 8 * + 71 col0
----
-490

query I rowsort
SELECT DISTINCT 52 + - - 17
----
69

query I rowsort
SELECT DISTINCT 46 * ( 21 ) col0
----
966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT 4 + + - CAST( - 36 AS SIGNED ) * - 46 AS col2
----
-1652

skipif mysql # not compatible
query I rowsort label-3771
SELECT 4 + + - CAST ( - 36 AS INTEGER ) * - 46 AS col2
----
-1652

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT SUM( ALL 4 ) * + 33 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-3772
SELECT SUM ( ALL 4 ) * + 33 AS col1
----
132

query I rowsort
SELECT DISTINCT - COALESCE ( - 36, 53 ) - + + 69 col0
----
-33

query I rowsort
SELECT DISTINCT 86 * - 80 AS col2
----
-6880

onlyif mysql # aggregate syntax: 
query II rowsort label-3775
SELECT ALL 6 AS col1, + 46 * - COUNT( * ) * - CASE + 99 WHEN - 16 * + 25 THEN NULL WHEN - 9 THEN - 56 + - - 1 * + 17 END
----
6
NULL

skipif mysql # not compatible
query II rowsort label-3775
SELECT ALL 6 AS col1, + 46 * - COUNT ( * ) * - CASE + 99 WHEN - 16 * + 25 THEN NULL WHEN - 9 THEN - 56 + - - 1 * + 17 END
----
6
NULL

query II rowsort
SELECT DISTINCT 60, + 98 AS col1
----
60
98

query I rowsort
SELECT DISTINCT 39 - - 49 col1
----
88

query II rowsort
SELECT ALL 64 AS col2, - 37 AS col0
----
64
-37

query I rowsort
SELECT 26 + + 82
----
108

query I rowsort
SELECT 29 * + 79
----
2291

query I rowsort
SELECT 0 * + 57 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT 35 + + COUNT( - 74 ) * - + MIN( 14 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3782
SELECT 35 + + COUNT ( - 74 ) * - + MIN ( 14 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3783
SELECT ALL + 40 AS col2, 95 - - + MIN( ALL - 59 )
----
40
36

skipif mysql # not compatible
query II rowsort label-3783
SELECT ALL + 40 AS col2, 95 - - + MIN ( ALL - 59 )
----
40
36

query I rowsort
SELECT 83 + - + 4 AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3785
SELECT - COUNT( * ) / - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3785
SELECT - COUNT ( * ) / - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 42 * 6
----
252

query I rowsort
SELECT + 58 + + 8 * + - 69 + + 94 + + - 59 + + 57 col0
----
-402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3788
SELECT DISTINCT - - AVG ( + 1 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT - - AVG ( + 1 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3789
SELECT ALL COUNT( * ), - 55 AS col1
----
1
-55

skipif mysql # not compatible
query II rowsort label-3789
SELECT ALL COUNT ( * ), - 55 AS col1
----
1
-55

query I rowsort
SELECT ALL - + COALESCE ( - + 22, 4 + 2, - NULLIF ( 9, + + 29 ) )
----
22

query II rowsort
SELECT DISTINCT - - 63 col2, - 7 + + - 71
----
63
-78

query I rowsort
SELECT ALL - 5 + - 38 AS col1
----
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-3793
SELECT + - 38 DIV + 95 + 73 * 67 AS col1, - 95
----
4891
-95

skipif mysql # not compatible
query II rowsort label-3793
SELECT + - 38 / + 95 + 73 * 67 AS col1, - 95
----
4891
-95

query I rowsort
SELECT ALL - - ( + 10 )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3795
SELECT 1 DIV - + 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3795
SELECT 1 / - + 6 AS col2
----
0

query I rowsort
SELECT - 21 + 2 - - 64 col0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3797
SELECT DISTINCT + 3 DIV - - 14 * + - ( 60 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT + 3 / - - 14 * + - ( 60 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT + + SUM( 63 )
----
63

skipif mysql # not compatible
query I rowsort label-3798
SELECT + + SUM ( 63 )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3799
SELECT - NULLIF ( 28, - + CAST( NULL AS SIGNED ) )
----
-28

skipif mysql # not compatible
query I rowsort label-3799
SELECT - NULLIF ( 28, - + CAST ( NULL AS INTEGER ) )
----
-28

query I rowsort
SELECT + + 45 * + + 90 - ( + + 14 ) + + 29 * - + 6 col2
----
3862

query I rowsort
SELECT DISTINCT + + 84 + 94 + + - 81 AS col0
----
97

query I rowsort
SELECT DISTINCT 41 + + 21 + 60
----
122

query II rowsort
SELECT ALL 76 + + + 25 AS col0, 72 AS col0
----
101
72

query I rowsort
SELECT 95 * + 6 * 93 AS col1
----
53010

query I rowsort
SELECT 83 * 46 + - 38 + 61 * 5 AS col2
----
4085

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3806
SELECT DISTINCT 5 * CAST( NULL AS SIGNED ), 41 * + 18 AS col0
----
NULL
738

skipif mysql # not compatible
query II rowsort label-3806
SELECT DISTINCT 5 * CAST ( NULL AS INTEGER ), 41 * + 18 AS col0
----
NULL
738

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT COUNT( * ) * + - 54 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3807
SELECT COUNT ( * ) * + - 54 AS col2
----
-54

query I rowsort
SELECT ( 95 ) - + ( + + 56 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT - MAX( - + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-3809
SELECT - MAX ( - + 85 )
----
85

query I rowsort
SELECT ALL 4 - 37
----
-33

query I rowsort
SELECT ALL 86 - 2 - + 90 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ( - COUNT( * ) ) * 91 + COUNT( * ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-3812
SELECT ( - COUNT ( * ) ) * 91 + COUNT ( * ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT 10 * + + NULLIF ( + 7, - COUNT( * ) ) col2
----
70

skipif mysql # not compatible
query I rowsort label-3813
SELECT 10 * + + NULLIF ( + 7, - COUNT ( * ) ) col2
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-3814
SELECT ALL 68 * - 77 AS col0, 33 DIV 92 * + 76 AS col1
----
-5236
0

skipif mysql # not compatible
query II rowsort label-3814
SELECT ALL 68 * - 77 AS col0, 33 / 92 * + 76 AS col1
----
-5236
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3815
SELECT - NULLIF ( 25, + - 88 * + - 19 / - CAST( NULL AS DECIMAL ) )
----
-25

skipif mysql # not compatible
query I rowsort label-3815
SELECT - NULLIF ( 25, + - 88 * + - 19 / - CAST ( NULL AS REAL ) )
----
-25

query I rowsort
SELECT + 11 + - 7 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3817
SELECT + COUNT( DISTINCT + - 45 ) * - 18 DIV - + 72 * - - CAST( 24 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3817
SELECT + COUNT ( DISTINCT + - 45 ) * - 18 / - + 72 * - - CAST ( 24 AS INTEGER )
----
0

query I rowsort
SELECT ALL + 90 * 71
----
6390

query I rowsort
SELECT ALL + 9 + + 66
----
75

query I rowsort
SELECT 67 * - + 25 + + - 19 AS col0
----
-1694

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3821
SELECT - 18 DIV + COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3821
SELECT - 18 / + COUNT ( * ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL ( + 94 ) * + COUNT( * ) + - 48 + 94 + - 68 + + 29 * - ( - 68 ) * - 96 + - 13 col1
----
-189253

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL ( + 94 ) * + COUNT ( * ) + - 48 + 94 + - 68 + + 29 * - ( - 68 ) * - 96 + - 13 col1
----
-189253

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT + ( - + COUNT( * ) ) * + 2 + + 27
----
25

skipif mysql # not compatible
query I rowsort label-3823
SELECT + ( - + COUNT ( * ) ) * + 2 + + 27
----
25

query I rowsort
SELECT ALL + 83 * + 18 * - 79 + - - 16
----
-118010

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT + COUNT( ALL + + ( + 26 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3825
SELECT + COUNT ( ALL + + ( + 26 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT ALL - COUNT( * ) * + + ( 76 ) - - + CASE - COUNT( * ) WHEN - + 71 THEN NULL WHEN + ( - - 34 ) / - 16 THEN NULL WHEN + - 6 + + 37 THEN + 42 ELSE + 50 END + - MAX( - + 43 ) + 1
----
18

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL - COUNT ( * ) * + + ( 76 ) - - + CASE - COUNT ( * ) WHEN - + 71 THEN NULL WHEN + ( - - 34 ) / - 16 THEN NULL WHEN + - 6 + + 37 THEN + 42 ELSE + 50 END + - MAX ( - + 43 ) + 1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT - 7 - + + COALESCE ( - + 35, 70 + 14 + + + 28, - MAX( 93 ) )
----
28

skipif mysql # not compatible
query I rowsort label-3827
SELECT - 7 - + + COALESCE ( - + 35, 70 + 14 + + + 28, - MAX ( 93 ) )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT + COALESCE ( - - 83, - 90 + + 14, COALESCE ( + - CAST( NULL AS SIGNED ), - COALESCE ( - SUM( - 95 ), - 51 ) ) * - - 41 ) * 38 - - 26 AS col2
----
3180

skipif mysql # not compatible
query I rowsort label-3828
SELECT + COALESCE ( - - 83, - 90 + + 14, COALESCE ( + - CAST ( NULL AS INTEGER ), - COALESCE ( - SUM ( - 95 ), - 51 ) ) * - - 41 ) * 38 - - 26 AS col2
----
3180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3829
SELECT 97 * COUNT( * ) + - ( + 19 ) DIV + 70
----
97

skipif mysql # not compatible
query I rowsort label-3829
SELECT 97 * COUNT ( * ) + - ( + 19 ) / + 70
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3830
SELECT ALL MAX( ALL - 84 ) * - CASE - 74 WHEN + + COALESCE ( COALESCE ( + 72, + - 6 * - 38 * COALESCE ( + CAST( NULL AS SIGNED ), - - 28, - 0 + - 51 ) * + + 98 + - - ( CASE 65 WHEN CAST( 77 AS DECIMAL ) THEN 57 WHEN - 58 THEN + 97 END ), - 80 * COUNT( * ) ), - CAST( + AVG ( ALL 59 ) AS DECIMAL ), - 58 ) THEN NULL ELSE - ( + NULLIF ( 9, 88 DIV - COUNT( - 67 ) ) ) END - 63 DIV - 55
----
-755

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL MAX ( ALL - 84 ) * - CASE - 74 WHEN + + COALESCE ( COALESCE ( + 72, + - 6 * - 38 * COALESCE ( + CAST ( NULL AS INTEGER ), - - 28, - 0 + - 51 ) * + + 98 + - - ( CASE 65 WHEN CAST ( 77 AS REAL ) THEN 57 WHEN - 58 THEN + 97 END ), - 80 * COUNT ( * ) ), - CAST ( + AVG ( ALL 59 ) AS REAL ), - 58 ) THEN NULL ELSE - ( + NULLIF ( 9, 88 / - COUNT ( - 67 ) ) ) END - 63 / - 55
----
-755

query I rowsort
SELECT ALL 34 * 32
----
1088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3832
SELECT - 99 + - + CASE - COUNT( ALL 54 ) WHEN 79 THEN - ( + 77 ) * CAST( NULL AS SIGNED ) WHEN - NULLIF ( + 6, - 25 + + 23 ) THEN - ( - + 16 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3832
SELECT - 99 + - + CASE - COUNT ( ALL 54 ) WHEN 79 THEN - ( + 77 ) * CAST ( NULL AS INTEGER ) WHEN - NULLIF ( + 6, - 25 + + 23 ) THEN - ( - + 16 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3833
SELECT DISTINCT + COUNT( * ) AS col0, 71 col0
----
1
71

skipif mysql # not compatible
query II rowsort label-3833
SELECT DISTINCT + COUNT ( * ) AS col0, 71 col0
----
1
71

query I rowsort
SELECT + 92 + - ( + 36 ) AS col1
----
56

query I rowsort
SELECT + 68 + 58 AS col1
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3836
SELECT - 37 * - COUNT( * ) + + + COUNT( * ) DIV + ( - MIN( 78 ) ) * - 25 + + MAX( DISTINCT + 43 ) * + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-3836
SELECT - 37 * - COUNT ( * ) + + + COUNT ( * ) / + ( - MIN ( 78 ) ) * - 25 + + MAX ( DISTINCT + 43 ) * + COUNT ( * )
----
80

query II rowsort
SELECT ALL 59 col1, - 46 AS col1
----
59
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3838
SELECT - 56 DIV + 21
----
-2

skipif mysql # not compatible
query I rowsort label-3838
SELECT - 56 / + 21
----
-2

query I rowsort
SELECT - ( - + 16 ) AS col1
----
16

query I rowsort
SELECT + 40 * - 84 AS col1
----
-3360

query I rowsort
SELECT ALL 92 + + 93
----
185

query II rowsort
SELECT + 29, + 5 AS col0
----
29
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT DISTINCT COUNT( * ) + ( 88 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT COUNT ( * ) + ( 88 ) AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3844
SELECT - + 38, 98 * - NULLIF ( - COUNT( * ), + CAST( - 7 AS SIGNED ) ) + - ( 63 ) AS col1
----
-38
35

skipif mysql # not compatible
query II rowsort label-3844
SELECT - + 38, 98 * - NULLIF ( - COUNT ( * ), + CAST ( - 7 AS INTEGER ) ) + - ( 63 ) AS col1
----
-38
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3845
SELECT + - CAST( - - 90 AS SIGNED ) + - COUNT( * ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-3845
SELECT + - CAST ( - - 90 AS INTEGER ) + - COUNT ( * ) col2
----
-91

query I rowsort
SELECT ALL - 78 + 28
----
-50

query II rowsort
SELECT 61 AS col0, - 12 AS col1
----
61
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3848
SELECT - CASE - 51 WHEN - - NULLIF ( + COUNT( * ), + + 22 ) DIV - 16 - 14 THEN + 44 - + 62 + - COALESCE ( - CASE + 3 WHEN - 7 DIV - ( - + 7 ) THEN NULL ELSE + ( - + 85 ) END, + + 11 + + 21, MIN( DISTINCT - 47 ) * + 12 ) * 72 DIV + ( + CAST( + 37 AS SIGNED ) DIV 56 + 32 ) WHEN + 8 THEN 61 * 88 WHEN 92 THEN NULL ELSE 91 END
----
-91

skipif mysql # not compatible
query I rowsort label-3848
SELECT - CASE - 51 WHEN - - NULLIF ( + COUNT ( * ), + + 22 ) / - 16 - 14 THEN + 44 - + 62 + - COALESCE ( - CASE + 3 WHEN - 7 / - ( - + 7 ) THEN NULL ELSE + ( - + 85 ) END, + + 11 + + 21, MIN ( DISTINCT - 47 ) * + 12 ) * 72 / + ( + CAST ( + 37 AS INTEGER ) / 56 + 32 ) WHEN + 8 THEN 61 * 88 WHEN 92 THEN NULL ELSE 91 END
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT - ( + + 27 ) - + - CAST( + 82 AS SIGNED ) + - + CAST( NULL AS SIGNED ) + - 76 * - - 95 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT - ( + + 27 ) - + - CAST ( + 82 AS INTEGER ) + - + CAST ( NULL AS INTEGER ) + - 76 * - - 95 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3850
SELECT + 56 + - CAST( NULL AS SIGNED ) + + 26 AS col1, COUNT( * ) * + + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3850
SELECT + 56 + - CAST ( NULL AS INTEGER ) + + 26 AS col1, COUNT ( * ) * + + COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT - 25 + + 63 AS col1
----
38

query I rowsort
SELECT ALL - 37 + - 17
----
-54

query II rowsort
SELECT + 87, 16 * + + ( COALESCE ( 7, - ( - 54 ) ) ) AS col1
----
87
112

query II rowsort
SELECT DISTINCT + 59 AS col2, + 96 + + - 35 * + ( + - 45 ) * 77 AS col0
----
59
121371

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3855
SELECT + NULLIF ( NULLIF ( + + 80, + CASE - CASE ( - 23 ) WHEN + + ( 33 ) THEN - 68 * ( + 40 ) - + 70 + - 40 + - + 91 * 52 END WHEN COUNT( * ) THEN 4 WHEN 1 * + 75 + + 72 * 44 THEN NULL ELSE + CAST( NULL AS DECIMAL ) END ), - 92 )
----
80

skipif mysql # not compatible
query I rowsort label-3855
SELECT + NULLIF ( NULLIF ( + + 80, + CASE - CASE ( - 23 ) WHEN + + ( 33 ) THEN - 68 * ( + 40 ) - + 70 + - 40 + - + 91 * 52 END WHEN COUNT ( * ) THEN 4 WHEN 1 * + 75 + + 72 * 44 THEN NULL ELSE + CAST ( NULL AS REAL ) END ), - 92 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT - 59 + ( + 9 ) * - + NULLIF ( 3, - + 3 - + MAX( + 35 ) ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-3856
SELECT - 59 + ( + 9 ) * - + NULLIF ( 3, - + 3 - + MAX ( + 35 ) ) AS col2
----
-86

query I rowsort
SELECT - 76 * - 7 col1
----
532

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT DISTINCT + 49 DIV - + 38 - + 88 + 43 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT + 49 / - + 38 - + 88 + 43 AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT - 11 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT - 11 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL + 2 * + + 11 * - ( + ( - COUNT( 75 ) ) ) * ( + 53 )
----
1166

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL + 2 * + + 11 * - ( + ( - COUNT ( 75 ) ) ) * ( + 53 )
----
1166

query I rowsort
SELECT ALL 28 * 65
----
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT - 40 * - COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3862
SELECT - 40 * - COUNT ( * ) AS col0
----
40

query I rowsort
SELECT DISTINCT + ( - + 58 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT DISTINCT + MIN( - 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + MIN ( - 51 ) AS col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT ALL + 57 DIV + - 78 * 35
----
0

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL + 57 / + - 78 * 35
----
0

query I rowsort
SELECT DISTINCT + ( - 35 )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-3867
SELECT - 80 * + 61 DIV - + 61
----
80

skipif mysql # not compatible
query I rowsort label-3867
SELECT - 80 * + 61 / - + 61
----
80

query II rowsort
SELECT - 45 * - 12 * - 87 * - - 54, 66 * - 45 * 98 * + 75 AS col1
----
-2536920
-21829500

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT - 96 * COALESCE ( - MIN( ALL + 56 ), - - 61 + AVG ( 46 ) ) * - CASE - + COALESCE ( + 23, COUNT( - 82 ) * + - COUNT( * ) + + 14 + - + CASE + - 44 WHEN - - 10 THEN NULL WHEN COUNT( * ) THEN COUNT( * ) END * 23, 35 ) WHEN MIN( + 28 ) * 43 THEN + ( COUNT( * ) ) * 72 END - 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT - 96 * COALESCE ( - MIN ( ALL + 56 ), - - 61 + AVG ( 46 ) ) * - CASE - + COALESCE ( + 23, COUNT ( - 82 ) * + - COUNT ( * ) + + 14 + - + CASE + - 44 WHEN - - 10 THEN NULL WHEN COUNT ( * ) THEN COUNT ( * ) END * 23, 35 ) WHEN MIN ( + 28 ) * 43 THEN + ( COUNT ( * ) ) * 72 END - 89 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL + CASE - - 8 WHEN - + COUNT( ALL + + 13 ) * - - 55 * 49 THEN - - 54 + - COUNT( - + 13 ) WHEN 55 THEN - - 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL + CASE - - 8 WHEN - + COUNT ( ALL + + 13 ) * - - 55 * 49 THEN - - 54 + - COUNT ( - + 13 ) WHEN 55 THEN - - 59 END
----
NULL

query II rowsort
SELECT - 50 * - + 69 AS col0, 95
----
3450
95

query I rowsort
SELECT - 9 - + 19
----
-28

query I rowsort
SELECT NULLIF ( - 93, + ( - ( 23 ) ) ) col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT DISTINCT 64 * COUNT( * ) + - 78 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT 64 * COUNT ( * ) + - 78 AS col0
----
-14

query I rowsort
SELECT ALL 97 * - 72 * + 95
----
-663480

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3876
SELECT ALL - ( + 62 ) * + + 68 * + - 29 + - 88 - + - CAST( 31 AS SIGNED ) + + 90 DIV + + 42 - 81 AS col0
----
122128

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL - ( + 62 ) * + + 68 * + - 29 + - 88 - + - CAST ( 31 AS INTEGER ) + + 90 / + + 42 - 81 AS col0
----
122128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3877
SELECT ALL 11 * + CASE - + 60 WHEN ( - 9 ) THEN NULL WHEN 62 * + - 78 * + 95 THEN + - COUNT( * ) ELSE NULL END + 1 + - 69 / - + 34 * CAST( + + 86 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL 11 * + CASE - + 60 WHEN ( - 9 ) THEN NULL WHEN 62 * + - 78 * + 95 THEN + - COUNT ( * ) ELSE NULL END + 1 + - 69 / - + 34 * CAST ( + + 86 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3878
SELECT - + CASE 84 WHEN + 69 + - + 50 + + + CAST( NULL AS SIGNED ) + - 45 * - 13 THEN + MIN( ALL + - NULLIF ( 6, 3 ) ) / 3 * + + 43 WHEN ( - 57 ) * - - 8 THEN + 49 - - - 71 * 38 * - CASE ( + 6 ) WHEN 33 THEN NULL WHEN COUNT( * ) + 84 THEN + COUNT( * ) * 94 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT - + CASE 84 WHEN + 69 + - + 50 + + + CAST ( NULL AS INTEGER ) + - 45 * - 13 THEN + MIN ( ALL + - NULLIF ( 6, 3 ) ) / 3 * + + 43 WHEN ( - 57 ) * - - 8 THEN + 49 - - - 71 * 38 * - CASE ( + 6 ) WHEN 33 THEN NULL WHEN COUNT ( * ) + 84 THEN + COUNT ( * ) * 94 ELSE NULL END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3879
SELECT ALL + CAST( NULL AS SIGNED ) * - + 29 + + ( CASE + ( 85 ) WHEN + 54 * CAST( + - 70 AS SIGNED ) THEN NULL WHEN - 96 THEN NULL WHEN 73 * - + 7 THEN + + MAX( + 91 ) ELSE NULL END ) * + COUNT( * ) + 11 / 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 29 + + ( CASE + ( 85 ) WHEN + 54 * CAST ( + - 70 AS INTEGER ) THEN NULL WHEN - 96 THEN NULL WHEN 73 * - + 7 THEN + + MAX ( + 91 ) ELSE NULL END ) * + COUNT ( * ) + 11 / 89
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3880
SELECT + + COUNT( * ) * + 83 AS col0, 79 col0
----
83
79

skipif mysql # not compatible
query II rowsort label-3880
SELECT + + COUNT ( * ) * + 83 AS col0, 79 col0
----
83
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT - ( ( COUNT( * ) ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3881
SELECT - ( ( COUNT ( * ) ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3882
SELECT - MAX( 50 ), - 50 col0
----
-50
-50

skipif mysql # not compatible
query II rowsort label-3882
SELECT - MAX ( 50 ), - 50 col0
----
-50
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-3883
SELECT ALL + 46 + + + 47 DIV - 37 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL + 46 + + + 47 / - 37 AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3884
SELECT DISTINCT - COALESCE ( - + 30, + 49 * 51 DIV COUNT( * ), - + 79 ) DIV - - MIN( DISTINCT 52 )
----
0

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT - COALESCE ( - + 30, + 49 * 51 / COUNT ( * ), - + 79 ) / - - MIN ( DISTINCT 52 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3885
SELECT ALL + ( - + NULLIF ( + 14, CAST( + - 19 AS SIGNED ) * + - 60 ) ) + + 38 + + 46 + - + CASE + + 4 WHEN - + 50 * + NULLIF ( + 17, - + 75 ) * COUNT( * ) - + ( - 90 ) THEN NULL WHEN + CAST( + CAST( 21 AS SIGNED ) AS DECIMAL ) THEN NULL WHEN - 41 THEN NULL ELSE + 53 END * + 78 AS col2
----
-4064

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL + ( - + NULLIF ( + 14, CAST ( + - 19 AS INTEGER ) * + - 60 ) ) + + 38 + + 46 + - + CASE + + 4 WHEN - + 50 * + NULLIF ( + 17, - + 75 ) * COUNT ( * ) - + ( - 90 ) THEN NULL WHEN + CAST ( + CAST ( 21 AS INTEGER ) AS REAL ) THEN NULL WHEN - 41 THEN NULL ELSE + 53 END * + 78 AS col2
----
-4064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3886
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * - 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * - 62 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3887
SELECT + MAX( ALL - 48 ) AS col0, - 41 + + 56 - + - 54 AS col2
----
-48
69

skipif mysql # not compatible
query II rowsort label-3887
SELECT + MAX ( ALL - 48 ) AS col0, - 41 + + 56 - + - 54 AS col2
----
-48
69

query I rowsort
SELECT DISTINCT 15 * + + 29 + 70 + ( 4 ) AS col0
----
509

query I rowsort
SELECT ALL + 16 * 2
----
32

query I rowsort
SELECT - 42 - + 69
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3891
SELECT + COALESCE ( - 48, 97 + - COUNT( * ) - NULLIF ( + ( MAX( - - 99 ) ), + MAX( DISTINCT - 14 ) ) ) * 34 + - 85 DIV - - 20 col1, + 26
----
-1636
26

skipif mysql # not compatible
query II rowsort label-3891
SELECT + COALESCE ( - 48, 97 + - COUNT ( * ) - NULLIF ( + ( MAX ( - - 99 ) ), + MAX ( DISTINCT - 14 ) ) ) * 34 + - 85 / - - 20 col1, + 26
----
-1636
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3892
SELECT ( + 9 ) * - CAST( + NULLIF ( 11, - 73 - - - 82 + - - 93 * - 22 * + 45 * + COUNT( * ) ) AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-3892
SELECT ( + 9 ) * - CAST ( + NULLIF ( 11, - 73 - - - 82 + - - 93 * - 22 * + 45 * + COUNT ( * ) ) AS INTEGER )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ( + CASE - - 72 WHEN - COUNT( DISTINCT 20 ) THEN COUNT( * ) ELSE NULL END ) + + ( 92 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT ( + CASE - - 72 WHEN - COUNT ( DISTINCT 20 ) THEN COUNT ( * ) ELSE NULL END ) + + ( 92 ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT ( - MAX( 40 ) ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-3894
SELECT ( - MAX ( 40 ) ) * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3895
SELECT ALL + ( COALESCE ( CASE 74 WHEN 13 * + 24 THEN - CAST( NULL AS SIGNED ) ELSE + CAST( NULL AS SIGNED ) * 34 END, COUNT( ALL - - 32 ) ) ) * - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL + ( COALESCE ( CASE 74 WHEN 13 * + 24 THEN - CAST ( NULL AS INTEGER ) ELSE + CAST ( NULL AS INTEGER ) * 34 END, COUNT ( ALL - - 32 ) ) ) * - 98 AS col2
----
-98

query I rowsort
SELECT - 86 * 39 + - 46
----
-3400

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT ALL - SUM( DISTINCT + - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - SUM ( DISTINCT + - 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ( + + MIN( + 22 ) ) * - NULLIF ( + 33, + 54 ) * - - COUNT( * ) AS col2
----
-726

skipif mysql # not compatible
query I rowsort label-3898
SELECT ( + + MIN ( + 22 ) ) * - NULLIF ( + 33, + 54 ) * - - COUNT ( * ) AS col2
----
-726

query I rowsort
SELECT 36 * - 37
----
-1332

query I rowsort
SELECT 19 + + NULLIF ( + - 67, + + 97 / - 89 ) + - 1 + - 51
----
-100

query I rowsort
SELECT 26 * - - 84 col2
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT - 29 * + 75 * + COUNT( * ) + - 5 col1
----
-2180

skipif mysql # not compatible
query I rowsort label-3902
SELECT - 29 * + 75 * + COUNT ( * ) + - 5 col1
----
-2180

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL COUNT( * ) + + 99 + 44
----
144

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL COUNT ( * ) + + 99 + 44
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-3904
SELECT 38 + + COUNT( * ) + - 26, + 58 AS col2
----
13
58

skipif mysql # not compatible
query II rowsort label-3904
SELECT 38 + + COUNT ( * ) + - 26, + 58 AS col2
----
13
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT ALL - 35 + + 8 + + - CAST( NULL AS SIGNED ) / - ( - 19 ) * 52 / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL - 35 + + 8 + + - CAST ( NULL AS INTEGER ) / - ( - 19 ) * 52 / 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT DISTINCT - COALESCE ( + COALESCE ( - COUNT( * ), - 54 ), COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT - COALESCE ( + COALESCE ( - COUNT ( * ), - 54 ), COUNT ( * ) )
----
1

query I rowsort
SELECT 54 + - - 28
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3908
SELECT + CAST( NULL AS SIGNED ) + - + COUNT( * ) + - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-3908
SELECT + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT CASE + 64 WHEN - 34 THEN - 64 * MIN( - 20 ) WHEN MIN( - 80 ) THEN 93 * - + 14 ELSE - NULLIF ( - - 90, + COALESCE ( - 78, 34 * 97 + - 35 * + 90 ) * 14 + + 53 ) END + + 69 * + 34
----
2256

skipif mysql # not compatible
query I rowsort label-3909
SELECT CASE + 64 WHEN - 34 THEN - 64 * MIN ( - 20 ) WHEN MIN ( - 80 ) THEN 93 * - + 14 ELSE - NULLIF ( - - 90, + COALESCE ( - 78, 34 * 97 + - 35 * + 90 ) * 14 + + 53 ) END + + 69 * + 34
----
2256

query I rowsort
SELECT 11 * + + 13
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3911
SELECT DISTINCT - + COALESCE ( + 87, - ( + - 48 ) DIV 80 + - - 67 * + - 2 * 64, - ( - + 52 ) ) - - COUNT( * ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT - + COALESCE ( + 87, - ( + - 48 ) / 80 + - - 67 * + - 2 * 64, - ( - + 52 ) ) - - COUNT ( * ) AS col1
----
-86

query II rowsort
SELECT ALL + 47 AS col0, 6
----
47
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3913
SELECT ALL - NULLIF ( + 90, + COUNT( * ) ) AS col0, 36 AS col2
----
-90
36

skipif mysql # not compatible
query II rowsort label-3913
SELECT ALL - NULLIF ( + 90, + COUNT ( * ) ) AS col0, 36 AS col2
----
-90
36

onlyif mysql # aggregate syntax: 
query II rowsort label-3914
SELECT + MIN( DISTINCT NULLIF ( - 49, + 42 ) ) * + 60 AS col1, 62
----
-2940
62

skipif mysql # not compatible
query II rowsort label-3914
SELECT + MIN ( DISTINCT NULLIF ( - 49, + 42 ) ) * + 60 AS col1, 62
----
-2940
62

query I rowsort
SELECT ALL - 34 * - + 70 * 49 AS col0
----
116620

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT 14 + - 62 * CASE COUNT( * ) WHEN + 15 * - COUNT( * ) THEN 51 WHEN - 18 * 21 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT 14 + - 62 * CASE COUNT ( * ) WHEN + 15 * - COUNT ( * ) THEN 51 WHEN - 18 * 21 THEN NULL END
----
NULL

query I rowsort
SELECT 1 + + 60
----
61

query I rowsort
SELECT - 31 * - - 54
----
-1674

query I rowsort
SELECT 60 * + 83 - + 56 col2
----
4924

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT DISTINCT MAX( + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT MAX ( + 9 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3921
SELECT ALL 11 DIV + - 29 col1
----
0

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL 11 / + - 29 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT 10 + - COUNT( * ) + + + 20 * + 65 * 68
----
88409

skipif mysql # not compatible
query I rowsort label-3922
SELECT 10 + - COUNT ( * ) + + + 20 * + 65 * 68
----
88409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT ALL - ( ( - CAST( NULL AS SIGNED ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - ( ( - CAST ( NULL AS INTEGER ) ) ) col0
----
NULL

query I rowsort
SELECT 94 * - - 50 AS col2
----
4700

query I rowsort
SELECT 29 + - 93 + + NULLIF ( + + 10, 74 / - + 60 + - - 42 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT COUNT( 67 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3926
SELECT COUNT ( 67 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3927
SELECT DISTINCT CAST( + 93 AS SIGNED ) * 79 AS col0
----
7347

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT CAST ( + 93 AS INTEGER ) * 79 AS col0
----
7347

query I rowsort
SELECT 19 * - 73 AS col1
----
-1387

query I rowsort
SELECT 67 * - + 72 + + 41 + ( 52 ) - + - 84 * - ( 72 )
----
-10779

query II rowsort
SELECT ALL - 0, + 60 AS col1
----
0
60

query I rowsort
SELECT DISTINCT - 8 * + 82 + - - 16 col1
----
-640

onlyif mysql # aggregate syntax: 
query II rowsort label-3932
SELECT ALL - 25 AS col0, ( COUNT( * ) )
----
-25
1

skipif mysql # not compatible
query II rowsort label-3932
SELECT ALL - 25 AS col0, ( COUNT ( * ) )
----
-25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT COUNT( * ) + + NULLIF ( + 31, - + 12 ) + NULLIF ( + 94, - + 40 ) * + - 49
----
-4574

skipif mysql # not compatible
query I rowsort label-3933
SELECT COUNT ( * ) + + NULLIF ( + 31, - + 12 ) + NULLIF ( + 94, - + 40 ) * + - 49
----
-4574

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT SUM( DISTINCT - - 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-3934
SELECT SUM ( DISTINCT - - 78 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3935
SELECT ALL ( 5 ) + ( + 75 ) + + 91 + + COUNT( * ) AS col1, + 15 AS col0
----
172
15

skipif mysql # not compatible
query II rowsort label-3935
SELECT ALL ( 5 ) + ( + 75 ) + + 91 + + COUNT ( * ) AS col1, + 15 AS col0
----
172
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT SUM( + + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-3936
SELECT SUM ( + + 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT + - MIN( ALL - ( + 81 ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3937
SELECT + - MIN ( ALL - ( + 81 ) ) AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3938
SELECT - 47 * 59 * - + CAST( NULL AS SIGNED ) / - - 82, 88 AS col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-3938
SELECT - 47 * 59 * - + CAST ( NULL AS INTEGER ) / - - 82, 88 AS col0
----
NULL
88

query I rowsort
SELECT + 86 * 94
----
8084

query II rowsort
SELECT ALL - 90 * ( + 0 ) * 30 AS col2, 40 * - 15 * + 77 * - 73
----
0
3372600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3941
SELECT + + COALESCE ( 16, 58 * ( - + 71 ), + 80 DIV 48 + + ( 70 ) + - 8 DIV COUNT( ALL - + ( + 74 ) ) * - 2 * - + MIN( + + 44 ) * 74 + + - 76 )
----
16

skipif mysql # not compatible
query I rowsort label-3941
SELECT + + COALESCE ( 16, 58 * ( - + 71 ), + 80 / 48 + + ( 70 ) + - 8 / COUNT ( ALL - + ( + 74 ) ) * - 2 * - + MIN ( + + 44 ) * 74 + + - 76 )
----
16

query I rowsort
SELECT + 44 * 97 - - 70 AS col1
----
4338

query I rowsort
SELECT + - 52 + ( 40 ) + - 9 * - 61 AS col0
----
537

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL + - CASE 96 WHEN - 30 THEN 14 END - 73 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL + - CASE 96 WHEN - 30 THEN 14 END - 73 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT DISTINCT NULLIF ( - CAST( NULL AS SIGNED ), - - 0 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT NULLIF ( - CAST ( NULL AS INTEGER ), - - 0 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 14 - + 89
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3947
SELECT ALL + 93 AS col2, + 6 * - COUNT( - + 91 ) * + 22 AS col2
----
93
-132

skipif mysql # not compatible
query II rowsort label-3947
SELECT ALL + 93 AS col2, + 6 * - COUNT ( - + 91 ) * + 22 AS col2
----
93
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT - 63 - 26 + - 44 + COUNT( * ) + + 35 * + 5 + + - COUNT( + 27 ) * 81 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3948
SELECT - 63 - 26 + - 44 + COUNT ( * ) + + 35 * + 5 + + - COUNT ( + 27 ) * 81 AS col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3949
SELECT ALL 16 AS col1, CAST( 97 AS SIGNED ) AS col1
----
16
97

skipif mysql # not compatible
query II rowsort label-3949
SELECT ALL 16 AS col1, CAST ( 97 AS INTEGER ) AS col1
----
16
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3950
SELECT + CAST( - 10 AS SIGNED ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-3950
SELECT + CAST ( - 10 AS INTEGER ) AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3951
SELECT ALL + COUNT( * ) DIV 37 + - 43 + + - 2 * - ( 17 ) * - - 4 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL + COUNT ( * ) / 37 + - 43 + + - 2 * - ( 17 ) * - - 4 AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3952
SELECT DISTINCT 17 AS col2, + MIN( 62 )
----
17
62

skipif mysql # not compatible
query II rowsort label-3952
SELECT DISTINCT 17 AS col2, + MIN ( 62 )
----
17
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT - 29 + + 41 * + COALESCE ( + COUNT( * ), COUNT( ALL + 3 ) ) * 37
----
1488

skipif mysql # not compatible
query I rowsort label-3953
SELECT - 29 + + 41 * + COALESCE ( + COUNT ( * ), COUNT ( ALL + 3 ) ) * 37
----
1488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3954
SELECT - - CAST( NULL AS SIGNED ) * - 9 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT - - CAST ( NULL AS INTEGER ) * - 9 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL + CASE 46 WHEN COUNT( * ) THEN NULL ELSE - + 8 END * + 36 - 88 + 66 - 16 + + ( - 71 ) + + 56 + COUNT( * ) + + - 14
----
-354

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + CASE 46 WHEN COUNT ( * ) THEN NULL ELSE - + 8 END * + 36 - 88 + 66 - 16 + + ( - 71 ) + + 56 + COUNT ( * ) + + - 14
----
-354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT - - 59 / + CAST( NULL AS SIGNED ) + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT - - 59 / + CAST ( NULL AS INTEGER ) + + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ALL - CASE - MAX( ALL 37 ) WHEN 21 * - - 41 * + - COUNT( * ) * - + 93 * + COUNT( * ) / + 67 * - 73 + - + MAX( DISTINCT + 66 ) + - 13 * + - 33 THEN + 56 END * + + 28 - - + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL - CASE - MAX ( ALL 37 ) WHEN 21 * - - 41 * + - COUNT ( * ) * - + 93 * + COUNT ( * ) / + 67 * - 73 + - + MAX ( DISTINCT + 66 ) + - 13 * + - 33 THEN + 56 END * + + 28 - - + 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT - 76 * - COUNT( * ) * - 5
----
-380

skipif mysql # not compatible
query I rowsort label-3958
SELECT - 76 * - COUNT ( * ) * - 5
----
-380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT - CAST( + + 12 AS SIGNED ) + + 68
----
56

skipif mysql # not compatible
query I rowsort label-3959
SELECT - CAST ( + + 12 AS INTEGER ) + + 68
----
56

query I rowsort
SELECT ALL - 80 * - 45
----
3600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3961
SELECT - 40 * NULLIF ( - 53, ( CAST( NULL AS SIGNED ) ) ) AS col1
----
2120

skipif mysql # not compatible
query I rowsort label-3961
SELECT - 40 * NULLIF ( - 53, ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
2120

query I rowsort
SELECT - 46 * 16
----
-736

query I rowsort
SELECT - 57 + + 22 col2
----
-35

query II rowsort
SELECT ( - - 74 ), + 97 AS col2
----
74
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3965
SELECT ALL - 57 / + - COALESCE ( COUNT( - 47 ), - COUNT( * ) + COUNT( * ) ) + - AVG ( ALL - + CAST( NULL AS SIGNED ) ) + - - ( - - CASE - 81 WHEN + 90 - + 54 * 60 THEN - 46 + + COUNT( - + 28 ) + 61 * 48 END ) + 40 + - + 87 + + - ( 93 ) / 98 * + 30 * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - 57 / + - COALESCE ( COUNT ( - 47 ), - COUNT ( * ) + COUNT ( * ) ) + - AVG ( ALL - + CAST ( NULL AS INTEGER ) ) + - - ( - - CASE - 81 WHEN + 90 - + 54 * 60 THEN - 46 + + COUNT ( - + 28 ) + 61 * 48 END ) + 40 + - + 87 + + - ( 93 ) / 98 * + 30 * - 44
----
NULL

query I rowsort
SELECT - 78 * - + 70 * - - 4 + - - 78
----
21918

query II rowsort
SELECT ( + 80 ) AS col2, 20 AS col2
----
80
20

query I rowsort
SELECT + COALESCE ( 80, + 59 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT 8 / - 2 * + - 13 + + + ( + + 93 ) * - + 20 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT 8 / - 2 * + - 13 + + + ( + + 93 ) * - + 20 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3970
SELECT ALL 9 * + CAST( NULL AS SIGNED ) + ( - 79 ) / + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL 9 * + CAST ( NULL AS INTEGER ) + ( - 79 ) / + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT ALL + 80 * - COUNT( * ) + 38 * + - 12 * - ( + 46 )
----
20896

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL + 80 * - COUNT ( * ) + 38 * + - 12 * - ( + 46 )
----
20896

query II rowsort
SELECT DISTINCT 56 * 10 AS col2, + 96
----
560
96

query II rowsort
SELECT ( - + 32 ) AS col0, ( 25 ) AS col1
----
-32
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3974
SELECT ALL 21 * + 59 DIV + COUNT( * ) + + + MAX( ALL + 6 ) + 50
----
1295

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL 21 * + 59 / + COUNT ( * ) + + + MAX ( ALL + 6 ) + 50
----
1295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3975
SELECT ALL + CAST( NULL AS SIGNED ) / - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL + CAST ( NULL AS INTEGER ) / - 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT COUNT( * ) * + COUNT( 99 ) + - - 65 col2
----
66

skipif mysql # not compatible
query I rowsort label-3976
SELECT COUNT ( * ) * + COUNT ( 99 ) + - - 65 col2
----
66

query I rowsort
SELECT DISTINCT + 18 * - 61 * - 92 AS col1
----
101016

onlyif mysql # DIV for integer division: 
query I rowsort label-3978
SELECT + 45 DIV + + 83 + - - ( + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-3978
SELECT + 45 / + + 83 + - - ( + 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT - COUNT( * ) + - COUNT( * ) + - 30 * + NULLIF ( + + NULLIF ( - 36, + + 61 / 12 / + - 49 ), - - 75 + 27 ) * - 81 AS col2
----
-87482

skipif mysql # not compatible
query I rowsort label-3979
SELECT - COUNT ( * ) + - COUNT ( * ) + - 30 * + NULLIF ( + + NULLIF ( - 36, + + 61 / 12 / + - 49 ), - - 75 + 27 ) * - 81 AS col2
----
-87482

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT ALL - 61 * - SUM( + - 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL - 61 * - SUM ( + - 0 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT 56 * + 89 + - MAX( + 32 ) * + 34
----
3896

skipif mysql # not compatible
query I rowsort label-3981
SELECT 56 * + 89 + - MAX ( + 32 ) * + 34
----
3896

query I rowsort
SELECT DISTINCT + + COALESCE ( - 0, + 65 ) * + + 21 + + + 39 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT + + 41 * - COUNT( + 61 ) + - 2
----
-43

skipif mysql # not compatible
query I rowsort label-3983
SELECT + + 41 * - COUNT ( + 61 ) + - 2
----
-43

query I rowsort
SELECT + 6 * + 93 AS col0
----
558

query I rowsort
SELECT ALL + 59 * - + 87 AS col1
----
-5133

query I rowsort
SELECT + 20 * - - 37 AS col2
----
740

query II rowsort
SELECT + 33 + - + 54 AS col0, 3 * + CASE 42 WHEN - 77 THEN + 66 END
----
-21
NULL

query I rowsort
SELECT + + 29 * ( - - 57 )
----
1653

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT + + COUNT( * ) * + 31 - - + 64
----
95

skipif mysql # not compatible
query I rowsort label-3989
SELECT + + COUNT ( * ) * + 31 - - + 64
----
95

query I rowsort
SELECT - ( + + ( 44 ) ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT + ( + COUNT( * ) ) + + + 91 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3991
SELECT + ( + COUNT ( * ) ) + + + 91 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT DISTINCT + - 70 * - + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT + - 70 * - + COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT DISTINCT COUNT( * ) * - 25
----
-25

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT COUNT ( * ) * - 25
----
-25

query I rowsort
SELECT ALL + 2 + 75 col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT DISTINCT COUNT( * ) * + 38 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT COUNT ( * ) * + 38 AS col2
----
38

query I rowsort
SELECT - ( + 71 ) col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT - 70 + - 20 - + 62 + + 70 DIV - - 26 AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-3997
SELECT - 70 + - 20 - + 62 + + 70 / - - 26 AS col1
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3998
SELECT - CAST( - 34 AS SIGNED ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3998
SELECT - CAST ( - 34 AS INTEGER ) AS col1
----
34

query I rowsort
SELECT + 58 * 17
----
986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4000
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 16 * + COUNT( * ) AS col2, - 66
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-4000
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 16 * + COUNT ( * ) AS col2, - 66
----
NULL
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT ALL ( COALESCE ( + - 50, - + ( - 44 ), ( + + 42 ) DIV 18 - 90 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL ( COALESCE ( + - 50, - + ( - 44 ), ( + + 42 ) / 18 - 90 ) )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4002
SELECT DISTINCT COUNT( * ) col1, + 1 * - 24 DIV - 55 - - CAST( 57 AS SIGNED ) AS col1
----
1
57

skipif mysql # not compatible
query II rowsort label-4002
SELECT DISTINCT COUNT ( * ) col1, + 1 * - 24 / - 55 - - CAST ( 57 AS INTEGER ) AS col1
----
1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT - COUNT( * ) * - - 48 * - 86 AS col0
----
4128

skipif mysql # not compatible
query I rowsort label-4003
SELECT - COUNT ( * ) * - - 48 * - 86 AS col0
----
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT DISTINCT + 94 * - MAX( DISTINCT + + 96 )
----
-9024

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT + 94 * - MAX ( DISTINCT + + 96 )
----
-9024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4005
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) + - COALESCE ( 13, 91 ) * 81 AS col0
----
-1052

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) + - COALESCE ( 13, 91 ) * 81 AS col0
----
-1052

onlyif mysql # DIV for integer division: 
query II rowsort label-4006
SELECT ALL ( + 51 ) DIV - 73 + 57 * - COALESCE ( + - 3, - - 50 ) * + + 33 col1, + ( - 42 ) AS col2
----
5643
-42

skipif mysql # not compatible
query II rowsort label-4006
SELECT ALL ( + 51 ) / - 73 + 57 * - COALESCE ( + - 3, - - 50 ) * + + 33 col1, + ( - 42 ) AS col2
----
5643
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL + COUNT( * ) * 88 * + - 40 * - 82
----
288640

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + COUNT ( * ) * 88 * + - 40 * - 82
----
288640

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT - SUM( DISTINCT - + COALESCE ( 40, + 96 * - + 88 + - 81 + - 17 ) ) * MIN( 31 ) AS col0
----
1240

skipif mysql # not compatible
query I rowsort label-4008
SELECT - SUM ( DISTINCT - + COALESCE ( 40, + 96 * - + 88 + - 81 + - 17 ) ) * MIN ( 31 ) AS col0
----
1240

query I rowsort
SELECT 35 * - COALESCE ( + 25, - 5 ) * + - 83
----
72625

query II rowsort
SELECT ALL - 9, - 86 + 9 AS col1
----
-9
-77

query II rowsort
SELECT + 62 AS col2, 22 * 85 AS col2
----
62
1870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4012
SELECT DISTINCT - 59 - - 96 * + 4 DIV + COUNT( * ) AS col0
----
325

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT - 59 - - 96 * + 4 / + COUNT ( * ) AS col0
----
325

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL - ( - ( MAX( DISTINCT + 64 ) ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL - ( - ( MAX ( DISTINCT + 64 ) ) ) AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4014
SELECT DISTINCT + 63 * + MAX( + CAST( 84 AS SIGNED ) ) AS col1
----
5292

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT + 63 * + MAX ( + CAST ( 84 AS INTEGER ) ) AS col1
----
5292

query II rowsort
SELECT DISTINCT - - 25, 54 AS col2
----
25
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4016
SELECT DISTINCT - 71 - + - 84 + - 61 DIV + 67 + - ( + CASE - MAX( DISTINCT + 89 ) WHEN - CASE - + 84 WHEN 71 * - 76 THEN 17 WHEN - + 5 + - 6 * + 0 THEN - ( 2 ) ELSE NULL END + - + 76 + - COUNT( * ) * + CASE WHEN ( 82 ) >= - 68 THEN NULL ELSE + 40 - - 83 END + ( - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) * + 26 THEN NULL WHEN 90 THEN NULL WHEN 79 + 25 THEN - SUM( ALL + 12 ) DIV COALESCE ( + ( + NULLIF ( ( 34 ), NULLIF ( - 55, COUNT( * ) ) ) ) + + 4, ( 21 ) + 25 * - 18 ) ELSE - 63 * + 23 END ) AS col2
----
1462

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT - 71 - + - 84 + - 61 / + 67 + - ( + CASE - MAX ( DISTINCT + 89 ) WHEN - CASE - + 84 WHEN 71 * - 76 THEN 17 WHEN - + 5 + - 6 * + 0 THEN - ( 2 ) ELSE NULL END + - + 76 + - COUNT ( * ) * + CASE WHEN ( 82 ) >= - 68 THEN NULL ELSE + 40 - - 83 END + ( - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) * + 26 THEN NULL WHEN 90 THEN NULL WHEN 79 + 25 THEN - SUM ( ALL + 12 ) / COALESCE ( + ( + NULLIF ( ( 34 ), NULLIF ( - 55, COUNT ( * ) ) ) ) + + 4, ( 21 ) + 25 * - 18 ) ELSE - 63 * + 23 END ) AS col2
----
1462

onlyif mysql # DIV for integer division: 
query II rowsort label-4017
SELECT ALL - 99, - 78 * 2 DIV ( + 90 ) DIV - 9 * 14 AS col0
----
-99
0

skipif mysql # not compatible
query II rowsort label-4017
SELECT ALL - 99, - 78 * 2 / ( + 90 ) / - 9 * 14 AS col0
----
-99
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4018
SELECT + + COUNT( * ), 17 + - 52 + - 22 + + + 79 + + 20 DIV + + 11 + + 74 * - 41 - 45 AS col1
----
1
-3056

skipif mysql # not compatible
query II rowsort label-4018
SELECT + + COUNT ( * ), 17 + - 52 + - 22 + + + 79 + + 20 / + + 11 + + 74 * - 41 - 45 AS col1
----
1
-3056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / + 87 AS col0
----
NULL

query II rowsort
SELECT - 17 AS col2, - 67 * + 51
----
-17
-3417

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT 20 * 27 + - + COUNT( DISTINCT 52 ) AS col0
----
539

skipif mysql # not compatible
query I rowsort label-4021
SELECT 20 * 27 + - + COUNT ( DISTINCT 52 ) AS col0
----
539

query I rowsort
SELECT - ( - 85 ) * 38 - + 74
----
3156

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT 66 * + NULLIF ( + 41, + + ( - - MAX( - + 46 ) ) + - 86 + 94 + + 35 + + 15 + CASE COUNT( ALL + 23 ) WHEN - COUNT( * ) * - + ( - - 30 ) THEN + - COUNT( * ) END * - 23 )
----
2706

skipif mysql # not compatible
query I rowsort label-4023
SELECT 66 * + NULLIF ( + 41, + + ( - - MAX ( - + 46 ) ) + - 86 + 94 + + 35 + + 15 + CASE COUNT ( ALL + 23 ) WHEN - COUNT ( * ) * - + ( - - 30 ) THEN + - COUNT ( * ) END * - 23 )
----
2706

query I rowsort
SELECT 68 - + + 20
----
48

query I rowsort
SELECT ALL - - ( - 92 ) + - 41 - + 58 AS col0
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT 45 * + 76 / + - NULLIF ( - CASE + ( MIN( DISTINCT + - 31 ) ) WHEN + AVG ( - 12 ) + - 86 THEN NULL WHEN - 32 THEN + 17 + - 59 * - 8 * + 44 WHEN - + COUNT( * ) THEN NULL END, + 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4026
SELECT 45 * + 76 / + - NULLIF ( - CASE + ( MIN ( DISTINCT + - 31 ) ) WHEN + AVG ( - 12 ) + - 86 THEN NULL WHEN - 32 THEN + 17 + - 59 * - 8 * + 44 WHEN - + COUNT ( * ) THEN NULL END, + 96 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 6 + 61 + - 42 + - 99 * + ( - 70 )
----
6943

query I rowsort
SELECT ALL 52 + 16
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4029
SELECT NULLIF ( + + 43, + 42 ) * - 23 + + 9, - COUNT( * ) AS col2
----
-980
-1

skipif mysql # not compatible
query II rowsort label-4029
SELECT NULLIF ( + + 43, + 42 ) * - 23 + + 9, - COUNT ( * ) AS col2
----
-980
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4030
SELECT CAST( + + 50 AS DECIMAL ) * - NULLIF ( + 90, - 6 ) + + - CASE - 6 WHEN - - 32 THEN NULL WHEN 69 + + CASE + ( 43 ) WHEN - + COUNT( * ) * 27 THEN + ( 96 ) + + - COUNT( * ) * 62 WHEN - 45 * - - 57 * 68 THEN NULL END THEN 70 + 97 / 60 WHEN - CASE - 31 WHEN + 98 THEN 13 - - 76 * - 2 ELSE 61 - - 62 END / 39 THEN + 22 ELSE NULL END * ( 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT CAST ( + + 50 AS REAL ) * - NULLIF ( + 90, - 6 ) + + - CASE - 6 WHEN - - 32 THEN NULL WHEN 69 + + CASE + ( 43 ) WHEN - + COUNT ( * ) * 27 THEN + ( 96 ) + + - COUNT ( * ) * 62 WHEN - 45 * - - 57 * 68 THEN NULL END THEN 70 + 97 / 60 WHEN - CASE - 31 WHEN + 98 THEN 13 - - 76 * - 2 ELSE 61 - - 62 END / 39 THEN + 22 ELSE NULL END * ( 64 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4031
SELECT DISTINCT CAST( NULL AS SIGNED ) * CAST( - 29 AS SIGNED ) * - 53 * 59, + CASE ( - + 27 ) WHEN NULLIF ( - 95, 20 ) * - 31 THEN + 89 ELSE NULL END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4031
SELECT DISTINCT CAST ( NULL AS INTEGER ) * CAST ( - 29 AS INTEGER ) * - 53 * 59, + CASE ( - + 27 ) WHEN NULLIF ( - 95, 20 ) * - 31 THEN + 89 ELSE NULL END AS col2
----
NULL
NULL

query I rowsort
SELECT ALL 98 + 62 AS col1
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4033
SELECT CAST( NULL AS SIGNED ) - + CAST( - + 97 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT CAST ( NULL AS INTEGER ) - + CAST ( - + 97 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT DISTINCT CAST( NULL AS SIGNED ) * 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4035
SELECT ( 92 ) + - - ( - - 54 ), COUNT( * ) DIV + 16 AS col2
----
146
0

skipif mysql # not compatible
query II rowsort label-4035
SELECT ( 92 ) + - - ( - - 54 ), COUNT ( * ) / + 16 AS col2
----
146
0

query I rowsort
SELECT ( - 58 ) * - 60
----
3480

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4037
SELECT COUNT( * ) + + 32 - + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT COUNT ( * ) + + 32 - + CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT 83 * 55
----
4565

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT 45 * COUNT( ALL - - 97 ) + + 59
----
104

skipif mysql # not compatible
query I rowsort label-4039
SELECT 45 * COUNT ( ALL - - 97 ) + + 59
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4040
SELECT 89 DIV ( COUNT( * ) ) * + 21
----
1869

skipif mysql # not compatible
query I rowsort label-4040
SELECT 89 / ( COUNT ( * ) ) * + 21
----
1869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4041
SELECT ALL - 73 DIV + ( + MIN( + 54 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL - 73 / + ( + MIN ( + 54 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4042
SELECT + CAST( NULL AS DECIMAL ) / - + 17 * - COUNT( * ) * + SUM( DISTINCT - CAST( - + 18 AS SIGNED ) ) + + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT + CAST ( NULL AS REAL ) / - + 17 * - COUNT ( * ) * + SUM ( DISTINCT - CAST ( - + 18 AS INTEGER ) ) + + 26 AS col0
----
NULL

query II rowsort
SELECT 70 * - 62 AS col1, 58
----
-4340
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT ( + 16 ) DIV - 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4044
SELECT ( + 16 ) / - 19 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4045
SELECT ALL + 42 DIV 40 + + + MAX( DISTINCT - - 45 ) * - 69 AS col2
----
-3104

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL + 42 / 40 + + + MAX ( DISTINCT - - 45 ) * - 69 AS col2
----
-3104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4046
SELECT + 37 * 22 + + 97 + + CAST( NULL AS SIGNED ) + + 41 + - 91 * 77 + 20 / - 25 + - 89 + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT + 37 * 22 + + 97 + + CAST ( NULL AS INTEGER ) + + 41 + - 91 * 77 + 20 / - 25 + - 89 + 44 AS col1
----
NULL

query I rowsort
SELECT 4 + - + 17 + - 70
----
-83

query I rowsort
SELECT 91 + + 19 AS col0
----
110

query I rowsort
SELECT - COALESCE ( + 45, + COALESCE ( + 32, 42 - + 30 ) + ( + 31 ) * - 28 )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4050
SELECT ALL - 16 + CAST( 37 AS SIGNED ) + 21 + + CAST( NULL AS DECIMAL ) / 3 * + COALESCE ( 83, + 50 + - MIN( + - 11 ) * - + 34, - - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - 16 + CAST ( 37 AS INTEGER ) + 21 + + CAST ( NULL AS REAL ) / 3 * + COALESCE ( 83, + 50 + - MIN ( + - 11 ) * - + 34, - - 38 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4051
SELECT ALL - 75 + + - CAST( NULL AS SIGNED ) AS col0, ( ( + 65 ) ) AS col1
----
NULL
65

skipif mysql # not compatible
query II rowsort label-4051
SELECT ALL - 75 + + - CAST ( NULL AS INTEGER ) AS col0, ( ( + 65 ) ) AS col1
----
NULL
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT - + COUNT( * ) * + + 34 + + COUNT( * ) * + + 83 col0
----
49

skipif mysql # not compatible
query I rowsort label-4052
SELECT - + COUNT ( * ) * + + 34 + + COUNT ( * ) * + + 83 col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT 13 * - ( + CASE + 82 WHEN - 41 * - 69 THEN + - COUNT( DISTINCT 43 ) END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT 13 * - ( + CASE + 82 WHEN - 41 * - 69 THEN + - COUNT ( DISTINCT 43 ) END ) col1
----
NULL

query I rowsort
SELECT ALL ( + - 27 ) * - CASE + 57 WHEN + + 56 THEN NULL WHEN 14 * - 38 THEN + 58 - - 28 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT ALL + 76 + 88 DIV - + 52 col0
----
75

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL + 76 + 88 / - + 52 col0
----
75

query I rowsort
SELECT 38 * - + 82 col0
----
-3116

query I rowsort
SELECT 45 + - 82 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT DISTINCT COALESCE ( - 21, SUM( ALL 83 ), + 36 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT COALESCE ( - 21, SUM ( ALL 83 ), + 36 ) AS col0
----
-21

query I rowsort
SELECT ALL + ( + 28 ) * - NULLIF ( - + 29, + - 16 * - - AVG ( + 20 ) )
----
812

query II rowsort
SELECT 56 AS col0, ( - ( + 78 ) ) + + - 76 * + 91 * - 31
----
56
214318

query I rowsort
SELECT + COALESCE ( - 92, 30 * - 34 + - + 43 ) + + 76
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT ALL 91 * + 53 * - - CASE + 66 WHEN + COUNT( * ) * - + 56 * + 57 + + 60 THEN + 96 - 57 ELSE - 53 END
----
-255619

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL 91 * + 53 * - - CASE + 66 WHEN + COUNT ( * ) * - + 56 * + 57 + + 60 THEN + 96 - 57 ELSE - 53 END
----
-255619

query II rowsort
SELECT 64, 54 * + 71 col2
----
64
3834

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL COALESCE ( COALESCE ( + 99, + - 81 * - MAX( - 25 ) * + + 8 ), COUNT( * ) + + 27, + 25 + - COUNT( * ), + COUNT( * ) ) col2
----
99

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL COALESCE ( COALESCE ( + 99, + - 81 * - MAX ( - 25 ) * + + 8 ), COUNT ( * ) + + 27, + 25 + - COUNT ( * ), + COUNT ( * ) ) col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT + 15 * MIN( - + 29 ) * + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4065
SELECT + 15 * MIN ( - + 29 ) * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT - SUM( DISTINCT 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4066
SELECT - SUM ( DISTINCT 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT + 50 * - 59 * + NULLIF ( + NULLIF ( + + 15, - COUNT( * ) ), - - 85 )
----
-44250

skipif mysql # not compatible
query I rowsort label-4067
SELECT + 50 * - 59 * + NULLIF ( + NULLIF ( + + 15, - COUNT ( * ) ), - - 85 )
----
-44250

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT + 25 / + MAX( 97 ) * + 77 + 50 * COALESCE ( - 23, 74 + 59 ) + + 22 + CASE 9 WHEN + - 44 THEN + 68 * - 54 * - 76 * + 61 - - + 98 WHEN + + 64 THEN NULL ELSE NULL END - + 96 * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT + 25 / + MAX ( 97 ) * + 77 + 50 * COALESCE ( - 23, 74 + 59 ) + + 22 + CASE 9 WHEN + - 44 THEN + 68 * - 54 * - 76 * + 61 - - + 98 WHEN + + 64 THEN NULL ELSE NULL END - + 96 * + 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4069
SELECT DISTINCT + CASE - 14 WHEN NULLIF ( - + 28, - 74 ) THEN NULL WHEN + ( - 98 ) * - 84 THEN COUNT( * ) * 23 END * + + CAST( + 78 AS SIGNED ) * COALESCE ( - 27, - 4 ) + - 2, 32 - - 91 AS col2
----
NULL
123

skipif mysql # not compatible
query II rowsort label-4069
SELECT DISTINCT + CASE - 14 WHEN NULLIF ( - + 28, - 74 ) THEN NULL WHEN + ( - 98 ) * - 84 THEN COUNT ( * ) * 23 END * + + CAST ( + 78 AS INTEGER ) * COALESCE ( - 27, - 4 ) + - 2, 32 - - 91 AS col2
----
NULL
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT - ( - - MAX( 61 ) ) * 59 col2
----
-3599

skipif mysql # not compatible
query I rowsort label-4070
SELECT - ( - - MAX ( 61 ) ) * 59 col2
----
-3599

query I rowsort
SELECT + + 50 * + + 72 + - 36 * + 61
----
1404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT ALL + 27 * 26 + + 73 + ( + ( 85 ) ) + 84 + + 80 + + + ( + CAST( + - 79 AS SIGNED ) ) + + 25 / - 4 * - 51 * + COALESCE ( 87, + 47 * - - 4 + 11 + - + 14 + + + 23 ) * - CAST( NULL AS SIGNED ) * - - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL + 27 * 26 + + 73 + ( + ( 85 ) ) + 84 + + 80 + + + ( + CAST ( + - 79 AS INTEGER ) ) + + 25 / - 4 * - 51 * + COALESCE ( 87, + 47 * - - 4 + 11 + - + 14 + + + 23 ) * - CAST ( NULL AS INTEGER ) * - - 88 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 63 * + 0 * - 85
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4074
SELECT DISTINCT - - SUM( + 16 ) * - + 57 + + 94 * + ( 48 ), 56 AS col2
----
3600
56

skipif mysql # not compatible
query II rowsort label-4074
SELECT DISTINCT - - SUM ( + 16 ) * - + 57 + + 94 * + ( 48 ), 56 AS col2
----
3600
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT - 4 * - + 51 + + - 18 * - NULLIF ( + COUNT( * ), - COUNT( * ) ) + 44 col0
----
266

skipif mysql # not compatible
query I rowsort label-4075
SELECT - 4 * - + 51 + + - 18 * - NULLIF ( + COUNT ( * ), - COUNT ( * ) ) + 44 col0
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT DISTINCT + - SUM( - 37 ) * + 71 + 16
----
2643

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT + - SUM ( - 37 ) * + 71 + 16
----
2643

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT MAX( ALL - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-4077
SELECT MAX ( ALL - 23 )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4078
SELECT ALL + + COUNT( * ) AS col2, + 36 DIV - ( + 53 ) AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-4078
SELECT ALL + + COUNT ( * ) AS col2, + 36 / - ( + 53 ) AS col1
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT + COUNT( ALL + - ( - 63 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4079
SELECT + COUNT ( ALL + - ( - 63 ) )
----
1

query I rowsort
SELECT - - 90 + 11
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-4081
SELECT ALL 99 * + 38 * - 29 * - + 82, + COUNT( * ) AS col0
----
8946036
1

skipif mysql # not compatible
query II rowsort label-4081
SELECT ALL 99 * + 38 * - 29 * - + 82, + COUNT ( * ) AS col0
----
8946036
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT 18 * - + 79 - - + COUNT( * ) + + 50 col2
----
-1371

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT 18 * - + 79 - - + COUNT ( * ) + + 50 col2
----
-1371

query I rowsort
SELECT DISTINCT 34 * + 26
----
884

query I rowsort
SELECT ALL - 90 - + - 17
----
-73

query I rowsort
SELECT - 63 * - - ( - 33 ) AS col0
----
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT - SUM( DISTINCT + ( + - 97 ) )
----
97

skipif mysql # not compatible
query I rowsort label-4086
SELECT - SUM ( DISTINCT + ( + - 97 ) )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4087
SELECT ALL - 90 DIV + MIN( + + 58 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - 90 / + MIN ( + + 58 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT - COUNT( * ) * - MAX( ALL + 72 ) col2
----
72

skipif mysql # not compatible
query I rowsort label-4088
SELECT - COUNT ( * ) * - MAX ( ALL + 72 ) col2
----
72

query I rowsort
SELECT DISTINCT - 72 * 44
----
-3168

query II rowsort
SELECT - 95 AS col2, - 80 AS col0
----
-95
-80

query I rowsort
SELECT - 91 - - 11 AS col0
----
-80

query I rowsort
SELECT DISTINCT - 1 + - + 34 AS col0
----
-35

query I rowsort
SELECT - 38 + + COALESCE ( + 85, + 23 * + - 5 )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT ALL - - 61 + - 9 + + 15 DIV + 16
----
52

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL - - 61 + - 9 + + 15 / + 16
----
52

query I rowsort
SELECT - - 45 + + 11 AS col0
----
56

query II rowsort
SELECT - - 25 AS col1, 17 col2
----
25
17

query II rowsort
SELECT 54, + 44 AS col0
----
54
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT - CASE + ( - COUNT( * ) ) WHEN - + 66 * 35 THEN NULL WHEN - 56 THEN MAX( ALL + 26 ) / - 56 + + 4 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4098
SELECT - CASE + ( - COUNT ( * ) ) WHEN - + 66 * 35 THEN NULL WHEN - 56 THEN MAX ( ALL + 26 ) / - 56 + + 4 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4099
SELECT ALL 69 DIV COUNT( * ) + - + ( - + 78 ) AS col1, 92
----
147
92

skipif mysql # not compatible
query II rowsort label-4099
SELECT ALL 69 / COUNT ( * ) + - + ( - + 78 ) AS col1, 92
----
147
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL + MAX( 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL + MAX ( 40 ) AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4101
SELECT DISTINCT - - COUNT( * ) DIV - COUNT( * ) + - + 22 - CAST( 11 AS SIGNED ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT - - COUNT ( * ) / - COUNT ( * ) + - + 22 - CAST ( 11 AS INTEGER ) AS col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4102
SELECT + + COUNT( ALL - + 61 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT + + COUNT ( ALL - + 61 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + + 5 + + - 18 + 47
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4104
SELECT + CAST( NULL AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) * + 56 + + 64 * 93 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4104
SELECT + CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) * + 56 + + 64 * 93 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4105
SELECT ALL + 10, - COUNT( * ) + 93 AS col1
----
10
92

skipif mysql # not compatible
query II rowsort label-4105
SELECT ALL + 10, - COUNT ( * ) + 93 AS col1
----
10
92

query I rowsort
SELECT DISTINCT + - ( - 82 ) col2
----
82

query I rowsort
SELECT ALL - - 32 * - 44 - - 56 AS col0
----
-1352

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT DISTINCT 28 DIV + 72 - + 72 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT 28 / + 72 - + 72 AS col1
----
-72

query I rowsort
SELECT ALL + 49 * - - NULLIF ( + 83, - 67 ) * 25 AS col2
----
101675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4110
SELECT 83 * CAST( + MAX( 65 ) AS SIGNED ) * - MAX( DISTINCT + + 4 ) AS col1
----
-21580

skipif mysql # not compatible
query I rowsort label-4110
SELECT 83 * CAST ( + MAX ( 65 ) AS INTEGER ) * - MAX ( DISTINCT + + 4 ) AS col1
----
-21580

query I rowsort
SELECT ALL - 86 * 24
----
-2064

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT MAX( ALL + 40 ) + 80 + 45 * - 14 - + - COUNT( + + 7 )
----
-509

skipif mysql # not compatible
query I rowsort label-4112
SELECT MAX ( ALL + 40 ) + 80 + 45 * - 14 - + - COUNT ( + + 7 )
----
-509

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL COUNT( * ) * AVG ( ALL - 20 ) / - + CASE + 53 WHEN 59 THEN COUNT( * ) END * + 96 * - + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL COUNT ( * ) * AVG ( ALL - 20 ) / - + CASE + 53 WHEN 59 THEN COUNT ( * ) END * + 96 * - + 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4114
SELECT DISTINCT COUNT( * ) * + 61 AS col2, MAX( + - 88 )
----
61
-88

skipif mysql # not compatible
query II rowsort label-4114
SELECT DISTINCT COUNT ( * ) * + 61 AS col2, MAX ( + - 88 )
----
61
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT 73 * - - MAX( + 17 )
----
1241

skipif mysql # not compatible
query I rowsort label-4115
SELECT 73 * - - MAX ( + 17 )
----
1241

query II rowsort
SELECT 79 + - - 14, + 84 AS col0
----
93
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4117
SELECT DISTINCT + 41 DIV + - COUNT( * ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT + 41 / + - COUNT ( * ) AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4118
SELECT ( 18 ) / - CASE + SUM( - 52 ) WHEN COUNT( * ) + + - 35 + + - 22 + + AVG ( + 70 ) * SUM( DISTINCT + 84 ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END - - + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT ( 18 ) / - CASE + SUM ( - 52 ) WHEN COUNT ( * ) + + - 35 + + - 22 + + AVG ( + 70 ) * SUM ( DISTINCT + 84 ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END - - + 84
----
NULL

query I rowsort
SELECT 98 + + 79 * 18 + - 79 AS col2
----
1441

onlyif mysql # DIV for integer division: 
query I rowsort label-4120
SELECT DISTINCT + 42 DIV - ( + - 27 )
----
1

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT + 42 / - ( + - 27 )
----
1

onlyif mysql # DIV for integer division: 
query III rowsort label-4121
SELECT 40 + 63 DIV 89 AS col0, - 75 + - 4, 53 + + + 14 + + 9 AS col1
----
40
-79
76

skipif mysql # not compatible
query III rowsort label-4121
SELECT 40 + 63 / 89 AS col0, - 75 + - 4, 53 + + + 14 + + 9 AS col1
----
40
-79
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT - + COUNT( - 59 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4122
SELECT - + COUNT ( - 59 ) AS col0
----
-1

query I rowsort
SELECT ALL + + 46 + + 91 AS col0
----
137

query I rowsort
SELECT - 35 * 82 AS col1
----
-2870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4125
SELECT DISTINCT + 3 * CAST( - MAX( - - 91 ) AS SIGNED )
----
-273

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT + 3 * CAST ( - MAX ( - - 91 ) AS INTEGER )
----
-273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4126
SELECT ALL - ( + 36 ) + - 91 + + 73 + - + ( ( - 70 ) ) * + + 75 + 32 * + COUNT( * ) DIV + COUNT( * ) - + COUNT( * ) + 0 DIV - - 63 DIV - COUNT( ALL 31 ) + + - 37 * - + SUM( - 8 ) + - + 0
----
4931

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL - ( + 36 ) + - 91 + + 73 + - + ( ( - 70 ) ) * + + 75 + 32 * + COUNT ( * ) / + COUNT ( * ) - + COUNT ( * ) + 0 / - - 63 / - COUNT ( ALL 31 ) + + - 37 * - + SUM ( - 8 ) + - + 0
----
4931

query I rowsort
SELECT ALL + + 54 + + 82
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-4128
SELECT DISTINCT - + 92 + 63, - MIN( + 81 ) AS col2
----
-29
-81

skipif mysql # not compatible
query II rowsort label-4128
SELECT DISTINCT - + 92 + 63, - MIN ( + 81 ) AS col2
----
-29
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT ALL - + COALESCE ( - 19, + 38 DIV + + 72, - - 88 * + + COALESCE ( + 9, + 97 ) * + 84 * + 92 ) + 35 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL - + COALESCE ( - 19, + 38 / + + 72, - - 88 * + + COALESCE ( + 9, + 97 ) * + 84 * + 92 ) + 35 AS col2
----
54

query I rowsort
SELECT + NULLIF ( 69, - 59 * 33 ) col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT - COUNT( * ) * - 84 + - + 1 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4131
SELECT - COUNT ( * ) * - 84 + - + 1 AS col1
----
83

query I rowsort
SELECT ALL - + 94 col2
----
-94

query I rowsort
SELECT DISTINCT - 96 - ( - 37 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT ALL ( - 66 ) - 94 * - COUNT( DISTINCT + 15 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL ( - 66 ) - 94 * - COUNT ( DISTINCT + 15 ) AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4135
SELECT + 87 * + + 69, CAST( NULL AS SIGNED ) col1
----
6003
NULL

skipif mysql # not compatible
query II rowsort label-4135
SELECT + 87 * + + 69, CAST ( NULL AS INTEGER ) col1
----
6003
NULL

query I rowsort
SELECT DISTINCT + ( + + 30 ) - - 78 + + + 5 * 96 AS col2
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL ( - - COUNT( * ) ) * + - 67 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL ( - - COUNT ( * ) ) * + - 67 AS col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4138
SELECT COUNT( * ) * + 94 * + COALESCE ( + 49, CAST( NULL AS SIGNED ), - CAST( - 10 AS SIGNED ) + + 10 * + + COUNT( * ) )
----
4606

skipif mysql # not compatible
query I rowsort label-4138
SELECT COUNT ( * ) * + 94 * + COALESCE ( + 49, CAST ( NULL AS INTEGER ), - CAST ( - 10 AS INTEGER ) + + 10 * + + COUNT ( * ) )
----
4606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4139
SELECT CASE + + 40 WHEN 75 * - 66 * + ( 53 ) + 50 * + COUNT( * ) + + + CASE WHEN COUNT( * ) IS NULL THEN + 61 ELSE NULL END * + 44 THEN NULL WHEN - 11 * 8 + - 34 * - COUNT( + + CAST( + 46 AS SIGNED ) ) THEN - 90 ELSE NULL END * - - 69 AS col2, + 54 * 52 AS col0
----
NULL
2808

skipif mysql # not compatible
query II rowsort label-4139
SELECT CASE + + 40 WHEN 75 * - 66 * + ( 53 ) + 50 * + COUNT ( * ) + + + CASE WHEN COUNT ( * ) IS NULL THEN + 61 ELSE NULL END * + 44 THEN NULL WHEN - 11 * 8 + - 34 * - COUNT ( + + CAST ( + 46 AS INTEGER ) ) THEN - 90 ELSE NULL END * - - 69 AS col2, + 54 * 52 AS col0
----
NULL
2808

query I rowsort
SELECT - 3 * + 85 * + 3 + + 21 AS col0
----
-744

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT 57 + COUNT( * ) - - SUM( - 10 ) * 66 + - 24
----
-626

skipif mysql # not compatible
query I rowsort label-4141
SELECT 57 + COUNT ( * ) - - SUM ( - 10 ) * 66 + - 24
----
-626

query II rowsort
SELECT ALL - 93 AS col2, - ( + 55 )
----
-93
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT ALL COUNT( * ) + + COUNT( + 6 ) col2
----
2

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL COUNT ( * ) + + COUNT ( + 6 ) col2
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4144
SELECT CAST( - 78 AS SIGNED ) DIV 37
----
-2

skipif mysql # not compatible
query I rowsort label-4144
SELECT CAST ( - 78 AS INTEGER ) / 37
----
-2

query I rowsort
SELECT ALL 80 + + - 25 + 84 * ( - 33 ) AS col0
----
-2717

query I rowsort
SELECT DISTINCT 39 + + 66 AS col0
----
105

query I rowsort
SELECT 53 * + + ( + 22 )
----
1166

onlyif mysql # aggregate syntax: 
query II rowsort label-4148
SELECT - COUNT( * ) AS col2, - MIN( - - 83 ) * 75 - - - 70 AS col2
----
-1
-6295

skipif mysql # not compatible
query II rowsort label-4148
SELECT - COUNT ( * ) AS col2, - MIN ( - - 83 ) * 75 - - - 70 AS col2
----
-1
-6295

query I rowsort
SELECT ALL 74 + - 70
----
4

query I rowsort
SELECT ALL 32 * 77 AS col0
----
2464

query I rowsort
SELECT 69 - 23 * - + NULLIF ( + 60, - 87 ) AS col0
----
1449

query I rowsort
SELECT ALL 26 + - 75 AS col1
----
-49

query II rowsort
SELECT 15 AS col2, + 4 AS col1
----
15
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4154
SELECT ALL COUNT( + - 40 ) * - + 96 * + 92 DIV + 4 - + 66 AS col2
----
-2274

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL COUNT ( + - 40 ) * - + 96 * + 92 / + 4 - + 66 AS col2
----
-2274

query II rowsort
SELECT DISTINCT 64 AS col1, - 93
----
64
-93

query I rowsort
SELECT ALL + 74 + 64 AS col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT + 41 * + + 70 * + 59 * - 61 * - + COUNT( * ) AS col0
----
10329130

skipif mysql # not compatible
query I rowsort label-4157
SELECT + 41 * + + 70 * + 59 * - 61 * - + COUNT ( * ) AS col0
----
10329130

query I rowsort
SELECT + 68 - 93 AS col2
----
-25

query I rowsort
SELECT 14 + 52 - - 56 + 71 - - ( - 6 ) AS col0
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT - MIN( ALL 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4160
SELECT - MIN ( ALL 31 ) AS col1
----
-31

query I rowsort
SELECT DISTINCT - COALESCE ( - 23, - - 40, 47 )
----
23

query I rowsort
SELECT ALL + 58 * - 84
----
-4872

query I rowsort
SELECT - 35 + + 2 - - 37 AS col2
----
4

query I rowsort
SELECT 3 * - CASE - 55 WHEN + 24 * - 36 + + 51 THEN - 69 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - ( - + 5 ) col0
----
5

query I rowsort
SELECT + ( + + ( ( + + 53 ) ) ) col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT DISTINCT - COUNT( ALL - ( + 14 ) ) * + + 18 * - COUNT( * ) col0
----
18

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT - COUNT ( ALL - ( + 14 ) ) * + + 18 * - COUNT ( * ) col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT ALL + COUNT( * ) * COUNT( * ) * + ( - - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL + COUNT ( * ) * COUNT ( * ) * + ( - - 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT + COUNT( * ) * + - 6 + + - 12 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-4169
SELECT + COUNT ( * ) * + - 6 + + - 12 AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4170
SELECT - 52 DIV 37
----
-1

skipif mysql # not compatible
query I rowsort label-4170
SELECT - 52 / 37
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4171
SELECT - 58 DIV - 6
----
9

skipif mysql # not compatible
query I rowsort label-4171
SELECT - 58 / - 6
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4172
SELECT + 99 DIV 46 * + 52 + - + 30 + + 96 + COUNT( * )
----
171

skipif mysql # not compatible
query I rowsort label-4172
SELECT + 99 / 46 * + 52 + - + 30 + + 96 + COUNT ( * )
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT + NULLIF ( - 89, - CASE CASE - COUNT( * ) WHEN - 4 THEN - 95 WHEN + 23 THEN NULL ELSE + COUNT( * ) END WHEN 32 THEN - 68 WHEN + 7 THEN - COUNT( * ) + - 21 * - 78 WHEN + 78 THEN + AVG ( 84 ) ELSE - + 15 END - - 7 + + 60 - + 3 / + 50 * 51 + + 98 ) * - 6 AS col1
----
534

skipif mysql # not compatible
query I rowsort label-4173
SELECT + NULLIF ( - 89, - CASE CASE - COUNT ( * ) WHEN - 4 THEN - 95 WHEN + 23 THEN NULL ELSE + COUNT ( * ) END WHEN 32 THEN - 68 WHEN + 7 THEN - COUNT ( * ) + - 21 * - 78 WHEN + 78 THEN + AVG ( 84 ) ELSE - + 15 END - - 7 + + 60 - + 3 / + 50 * 51 + + 98 ) * - 6 AS col1
----
534

query I rowsort
SELECT ALL + ( + - COALESCE ( - 50, - 62 ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT MAX( ALL - 36 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4175
SELECT MAX ( ALL - 36 ) AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4176
SELECT DISTINCT + CASE - + MAX( + 95 ) WHEN - + SUM( + + 36 ) + - 28 THEN - 76 + + COUNT( * ) WHEN - - CAST( - 16 AS SIGNED ) THEN 89 WHEN - + 48 * 95 THEN 52 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT + CASE - + MAX ( + 95 ) WHEN - + SUM ( + + 36 ) + - 28 THEN - 76 + + COUNT ( * ) WHEN - - CAST ( - 16 AS INTEGER ) THEN 89 WHEN - + 48 * 95 THEN 52 END AS col1
----
NULL

query I rowsort
SELECT ALL 93 * + 84
----
7812

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT COUNT( * ) * + COUNT( ALL + 25 )
----
1

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT COUNT ( * ) * + COUNT ( ALL + 25 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4179
SELECT ALL CAST( NULL AS SIGNED ) * CAST( + 46 AS DECIMAL ) * 5 * - - 18 + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( + 46 AS REAL ) * 5 * - - 18 + + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT 30 * + - 18 + MAX( 28 ) AS col1
----
-512

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT 30 * + - 18 + MAX ( 28 ) AS col1
----
-512

query I rowsort
SELECT ALL + 59 * + + 71
----
4189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4182
SELECT + CAST( + 74 AS SIGNED ) + 13 + + CASE 84 WHEN - 27 THEN - COUNT( * ) END + + 19 + 52 * + 71 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT + CAST ( + 74 AS INTEGER ) + 13 + + CASE 84 WHEN - 27 THEN - COUNT ( * ) END + + 19 + 52 * + 71 / + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4183
SELECT - NULLIF ( + + CAST( NULL AS SIGNED ), - 77 * 51 * + - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT - NULLIF ( + + CAST ( NULL AS INTEGER ), - 77 * 51 * + - 91 )
----
NULL

query I rowsort
SELECT ALL 26 + 91 AS col1
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT 87 * - 21 + + CAST( - 35 AS SIGNED ) + + 4 AS col2
----
-1858

skipif mysql # not compatible
query I rowsort label-4185
SELECT 87 * - 21 + + CAST ( - 35 AS INTEGER ) + + 4 AS col2
----
-1858

query II rowsort
SELECT DISTINCT - 42 * 74, + 32 - + - 25 AS col1
----
-3108
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4187
SELECT DISTINCT COUNT( * ) + 99 * - CAST( - 41 AS SIGNED )
----
4060

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT COUNT ( * ) + 99 * - CAST ( - 41 AS INTEGER )
----
4060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4188
SELECT ALL 79 DIV + + COUNT( ALL NULLIF ( + + 53, - + 96 * + - 27 * 11 ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL 79 / + + COUNT ( ALL NULLIF ( + + 53, - + 96 * + - 27 * 11 ) ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4189
SELECT DISTINCT - 70 - + - 97 AS col1, + 57 * COUNT( * ) AS col2
----
27
57

skipif mysql # not compatible
query II rowsort label-4189
SELECT DISTINCT - 70 - + - 97 AS col1, + 57 * COUNT ( * ) AS col2
----
27
57

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4190
SELECT + - 59 * - CAST( NULL AS SIGNED ) * + CAST( + + 87 AS DECIMAL ) * - + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT + - 59 * - CAST ( NULL AS INTEGER ) * + CAST ( + + 87 AS REAL ) * - + 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT + MIN( ALL + 73 ) + - 18 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-4191
SELECT + MIN ( ALL + 73 ) + - 18 AS col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4192
SELECT + MAX( ALL + ( - 82 ) ) DIV - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4192
SELECT + MAX ( ALL + ( - 82 ) ) / - COUNT ( * )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4193
SELECT DISTINCT - 20 * 74 DIV + 16 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT - 20 * 74 / + 16 AS col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT - - 51 * + CAST( + ( + - 96 ) AS SIGNED )
----
-4896

skipif mysql # not compatible
query I rowsort label-4194
SELECT - - 51 * + CAST ( + ( + - 96 ) AS INTEGER )
----
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT - MIN( DISTINCT - 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4195
SELECT - MIN ( DISTINCT - 76 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT 54 - + 83 + + - COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT 54 - + 83 + + - COUNT ( * ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ( - MIN( ALL + 80 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-4197
SELECT ( - MIN ( ALL + 80 ) )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4198
SELECT + 42 * + + 21 * CAST( NULL AS SIGNED ) * 27 AS col1, + NULLIF ( - - ( 13 ), - - 53 ) * - + 72 - CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4198
SELECT + 42 * + + 21 * CAST ( NULL AS INTEGER ) * 27 AS col1, + NULLIF ( - - ( 13 ), - - 53 ) * - + 72 - CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4199
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS SIGNED ) * COALESCE ( - - 36, - 31 + 0 / - + COUNT( * ) + - - COUNT( * ) + COUNT( * ), + 30 * - 52, + - 55 ) + + - COUNT( * ) + + 89 / - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ) * COALESCE ( - - 36, - 31 + 0 / - + COUNT ( * ) + - - COUNT ( * ) + COUNT ( * ), + 30 * - 52, + - 55 ) + + - COUNT ( * ) + + 89 / - 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT DISTINCT - 68 * + MIN( - 77 )
----
5236

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT - 68 * + MIN ( - 77 )
----
5236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4201
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) * COUNT( * ) / 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) * COUNT ( * ) / 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4202
SELECT NULLIF ( - + 17, + 88 + - 54 ) AS col2, 70 DIV + - COUNT( * )
----
-17
-70

skipif mysql # not compatible
query II rowsort label-4202
SELECT NULLIF ( - + 17, + 88 + - 54 ) AS col2, 70 / + - COUNT ( * )
----
-17
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT + + COUNT( 45 )
----
1

skipif mysql # not compatible
query I rowsort label-4203
SELECT + + COUNT ( 45 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT DISTINCT + COALESCE ( ( - 81 ), + ( - - COUNT( 63 ) ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT + COALESCE ( ( - 81 ), + ( - - COUNT ( 63 ) ) ) AS col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4205
SELECT - 58 DIV + 14 - - 16
----
12

skipif mysql # not compatible
query I rowsort label-4205
SELECT - 58 / + 14 - - 16
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4206
SELECT DISTINCT - 85 DIV - + 98 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT - 85 / - + 98 + COUNT ( * )
----
1

query I rowsort
SELECT ALL 82 * + + 16 + 67 AS col0
----
1379

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT DISTINCT - 45 * + COUNT( * ) * ( - + 26 ) * + 78 AS col2
----
91260

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT - 45 * + COUNT ( * ) * ( - + 26 ) * + 78 AS col2
----
91260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4209
SELECT ALL 1 * - CASE + 50 WHEN + COUNT( * ) THEN NULL WHEN 41 THEN - 34 WHEN + 29 * - 44 + 76 THEN - + 64 * + CAST( NULL AS SIGNED ) + + 67 END + + CAST( NULL AS SIGNED ) / + + 62 * + 87 + COUNT( * ) * 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL 1 * - CASE + 50 WHEN + COUNT ( * ) THEN NULL WHEN 41 THEN - 34 WHEN + 29 * - 44 + 76 THEN - + 64 * + CAST ( NULL AS INTEGER ) + + 67 END + + CAST ( NULL AS INTEGER ) / + + 62 * + 87 + COUNT ( * ) * 79 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4210
SELECT ALL - 28 * 74 * + - 64 AS col2, MAX( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
132608
NULL

skipif mysql # not compatible
query II rowsort label-4210
SELECT ALL - 28 * 74 * + - 64 AS col2, MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
132608
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT - CAST( NULL AS SIGNED ) - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT - CAST ( NULL AS INTEGER ) - 87
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4212
SELECT DISTINCT + COUNT( * ) AS col0, CASE 29 WHEN + 72 THEN NULL ELSE - 24 END + - 12 AS col1
----
1
-36

skipif mysql # not compatible
query II rowsort label-4212
SELECT DISTINCT + COUNT ( * ) AS col0, CASE 29 WHEN + 72 THEN NULL ELSE - 24 END + - 12 AS col1
----
1
-36

query I rowsort
SELECT ALL 69 * + 28 + - ( 93 )
----
1839

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4214
SELECT NULLIF ( 80, + CAST( + - 68 AS DECIMAL ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4214
SELECT NULLIF ( 80, + CAST ( + - 68 AS REAL ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL COUNT( * ) * + 31 + - 37 * + 58
----
-2115

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL COUNT ( * ) * + 31 + - 37 * + 58
----
-2115

query I rowsort
SELECT ALL + COALESCE ( 7, + + 88 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4217
SELECT ALL 6 * COUNT( * ) + - CAST( 75 AS SIGNED ) + - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL 6 * COUNT ( * ) + - CAST ( 75 AS INTEGER ) + - COUNT ( * )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4218
SELECT COALESCE ( - + 15, COUNT( * ) DIV + 14 + + 89 + + 31 + + 80 * 38 + + CASE + CAST( NULL AS DECIMAL ) WHEN 36 * 96 THEN + 43 + + 6 + 78 DIV 62 DIV + - COUNT( DISTINCT 86 ) ELSE 46 END ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4218
SELECT COALESCE ( - + 15, COUNT ( * ) / + 14 + + 89 + + 31 + + 80 * 38 + + CASE + CAST ( NULL AS REAL ) WHEN 36 * 96 THEN + 43 + + 6 + 78 / 62 / + - COUNT ( DISTINCT 86 ) ELSE 46 END ) AS col0
----
-15

query I rowsort
SELECT NULLIF ( + 90, - ( + 44 ) ) AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT - NULLIF ( - 92, + 86 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT - NULLIF ( - 92, + 86 ) * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - 24 * + - 10 * - 33 AS col2, 82 - 89
----
-7920
-7

query I rowsort
SELECT - 81 * - 56
----
4536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT ALL - - 35 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL - - 35 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 11 - + 78 col0
----
-67

query I rowsort
SELECT + + 36 + ( - 97 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT ALL - CAST( NULL AS SIGNED ) * + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - CAST ( NULL AS INTEGER ) * + 41 AS col2
----
NULL

query I rowsort
SELECT CASE - + 2 WHEN + - 75 / - - 4 + - 66 - + + 31 * + 89 * 39 * - 40 THEN NULL ELSE + - 97 END
----
-97

query I rowsort
SELECT DISTINCT ( + 82 ) col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4229
SELECT ALL 83 * + CAST( NULL AS SIGNED ) / + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL 83 * + CAST ( NULL AS INTEGER ) / + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4230
SELECT - 53 - - 40 * - 33 * + - SUM( CAST( + 4 AS SIGNED ) ) - + 88 AS col2
----
5139

skipif mysql # not compatible
query I rowsort label-4230
SELECT - 53 - - 40 * - 33 * + - SUM ( CAST ( + 4 AS INTEGER ) ) - + 88 AS col2
----
5139

onlyif mysql # DIV for integer division: 
query I rowsort label-4231
SELECT ALL - 64 DIV + 53 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL - 64 / + 53 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT COUNT( * ) - + 75 * 33 AS col2
----
-2474

skipif mysql # not compatible
query I rowsort label-4232
SELECT COUNT ( * ) - + 75 * 33 AS col2
----
-2474

onlyif mysql # DIV for integer division: 
query I rowsort label-4233
SELECT 15 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-4233
SELECT 15 / + 25
----
0

query I rowsort
SELECT + 80 * + ( + + 91 ) * 41 * + 38 + + 30 + ( + 5 ) AS col0
----
11342275

onlyif mysql # DIV for integer division: 
query I rowsort label-4235
SELECT ALL - 15 + 23 DIV - 3 col2
----
-22

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL - 15 + 23 / - 3 col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + 19 + - COUNT( * ) - 47 - - 92 + + 31 - 2 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4236
SELECT + 19 + - COUNT ( * ) - 47 - - 92 + + 31 - 2 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT COALESCE ( - + 63, + + ( + COUNT( * ) ) - - + 72 ) * COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-4237
SELECT COALESCE ( - + 63, + + ( + COUNT ( * ) ) - - + 72 ) * COUNT ( * )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4238
SELECT CAST( - 18 AS SIGNED ) + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4238
SELECT CAST ( - 18 AS INTEGER ) + COUNT ( * ) AS col2
----
-17

query I rowsort
SELECT ALL 72 * - 16 AS col1
----
-1152

query I rowsort
SELECT ALL ( + 43 ) + + - 45 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4241
SELECT DISTINCT - 31 AS col2, - 57 - COUNT( * ) * + 93 AS col2
----
-31
-150

skipif mysql # not compatible
query II rowsort label-4241
SELECT DISTINCT - 31 AS col2, - 57 - COUNT ( * ) * + 93 AS col2
----
-31
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4242
SELECT ALL 63 + + 23 AS col0, CAST( + + NULLIF ( - 66, COUNT( * ) ) AS SIGNED ) DIV + ( - 51 ) * + COUNT( * ) AS col2
----
86
1

skipif mysql # not compatible
query II rowsort label-4242
SELECT ALL 63 + + 23 AS col0, CAST ( + + NULLIF ( - 66, COUNT ( * ) ) AS INTEGER ) / + ( - 51 ) * + COUNT ( * ) AS col2
----
86
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4243
SELECT 88, - 2 * + COUNT( 3 ) AS col1
----
88
-2

skipif mysql # not compatible
query II rowsort label-4243
SELECT 88, - 2 * + COUNT ( 3 ) AS col1
----
88
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ALL 81 * - + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL 81 * - + COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL + 68 + - COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL + 68 + - COUNT ( * ) AS col1
----
67

query I rowsort
SELECT 57 * 90 AS col0
----
5130

query I rowsort
SELECT 69 * - 67 + + 3 AS col1
----
-4620

query III rowsort
SELECT + 33 AS col2, 20, - 91 AS col0
----
33
20
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4249
SELECT ALL - 34 AS col2, - 26 DIV COUNT( * )
----
-34
-26

skipif mysql # not compatible
query II rowsort label-4249
SELECT ALL - 34 AS col2, - 26 / COUNT ( * )
----
-34
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4250
SELECT ALL COUNT( * ) + - + CASE + + 32 WHEN + - 4 THEN + CAST( NULL AS SIGNED ) END * COUNT( * ) - - + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL COUNT ( * ) + - + CASE + + 32 WHEN + - 4 THEN + CAST ( NULL AS INTEGER ) END * COUNT ( * ) - - + 29 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4251
SELECT CAST( - 53 AS SIGNED ) + - 78 + 10 - 54 AS col2
----
-175

skipif mysql # not compatible
query I rowsort label-4251
SELECT CAST ( - 53 AS INTEGER ) + - 78 + 10 - 54 AS col2
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT COUNT( DISTINCT 52 ) * - 65 * + 62 AS col1
----
-4030

skipif mysql # not compatible
query I rowsort label-4252
SELECT COUNT ( DISTINCT 52 ) * - 65 * + 62 AS col1
----
-4030

query I rowsort
SELECT ALL - 97 * + 57
----
-5529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4254
SELECT ALL 74 - 57 + - + MIN( DISTINCT CAST( NULL AS SIGNED ) ) - + - ( + 2 ) * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL 74 - 57 + - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) - + - ( + 2 ) * 26
----
NULL

query I rowsort
SELECT DISTINCT + 79 * - 38
----
-3002

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL 50 - - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL 50 - - COUNT ( * )
----
51

query I rowsort
SELECT - 71 * - 6 * 29 + - - ( 27 )
----
12381

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ALL - 34 * - + COUNT( 94 )
----
34

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL - 34 * - + COUNT ( 94 )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4259
SELECT + 10 AS col1, NULLIF ( ( + 86 ), + - MAX( 58 ) ) AS col2
----
10
86

skipif mysql # not compatible
query II rowsort label-4259
SELECT + 10 AS col1, NULLIF ( ( + 86 ), + - MAX ( 58 ) ) AS col2
----
10
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4260
SELECT ALL - COUNT( * ) * + ( - 35 ) DIV 12 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL - COUNT ( * ) * + ( - 35 ) / 12 AS col2
----
2

query I rowsort
SELECT 89 * - - 87
----
7743

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT + 35 * - 87 * + - ( + 9 ) * + 87 * COUNT( * ) AS col2
----
2384235

skipif mysql # not compatible
query I rowsort label-4262
SELECT + 35 * - 87 * + - ( + 9 ) * + 87 * COUNT ( * ) AS col2
----
2384235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4263
SELECT ALL - + 4, COALESCE ( + COALESCE ( ( 35 ), + + 19 + - COUNT( * ) + - - 76 ), 92 - 29, + + SUM( ALL + CAST( NULL AS SIGNED ) ) + - 99 * - 32 DIV - - 68 * + 17 ) col2
----
-4
35

skipif mysql # not compatible
query II rowsort label-4263
SELECT ALL - + 4, COALESCE ( + COALESCE ( ( 35 ), + + 19 + - COUNT ( * ) + - - 76 ), 92 - 29, + + SUM ( ALL + CAST ( NULL AS INTEGER ) ) + - 99 * - 32 / - - 68 * + 17 ) col2
----
-4
35

query I rowsort
SELECT - 87 * 6 * - + 7 + - 93
----
3561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT + 79 * - + CAST( NULL AS SIGNED ) - - + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT + 79 * - + CAST ( NULL AS INTEGER ) - - + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT - SUM( ( + + 21 ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-4266
SELECT - SUM ( ( + + 21 ) ) AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4267
SELECT - ( COUNT( * ) ) + - 78 + 14 DIV - 59
----
-79

skipif mysql # not compatible
query I rowsort label-4267
SELECT - ( COUNT ( * ) ) + - 78 + 14 / - 59
----
-79

query I rowsort
SELECT 9 - + 69 + + 72
----
12

query II rowsort
SELECT - 1 + + 22, 31 AS col0
----
21
31

onlyif mysql # aggregate syntax: 
query II rowsort label-4270
SELECT ALL - 71 AS col0, MIN( ALL ( + + 48 ) ) * + 22 * - 28 * 64 + + 88 col2
----
-71
-1892264

skipif mysql # not compatible
query II rowsort label-4270
SELECT ALL - 71 AS col0, MIN ( ALL ( + + 48 ) ) * + 22 * - 28 * 64 + + 88 col2
----
-71
-1892264

query I rowsort
SELECT 58 * 89 * + 1 col1
----
5162

query I rowsort
SELECT 89 + - 35 col0
----
54

query II rowsort
SELECT - 95 AS col1, 98 * - 28
----
-95
-2744

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL - 35 * MAX( DISTINCT 65 ) AS col0
----
-2275

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL - 35 * MAX ( DISTINCT 65 ) AS col0
----
-2275

query I rowsort
SELECT 37 * - - 90 AS col1
----
3330

query I rowsort
SELECT + 51 + - 25
----
26

query II rowsort
SELECT ALL - 19 + - 66 AS col1, - 96 AS col2
----
-85
-96

query I rowsort
SELECT ( ( 91 ) ) + - + 53 AS col2
----
38

query I rowsort
SELECT ALL + + 28 + 72
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT + SUM( 48 ) * 7 AS col1
----
336

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT + SUM ( 48 ) * 7 AS col1
----
336

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT + 78 DIV - 73 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4281
SELECT + 78 / - 73 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4282
SELECT ALL 74, + COUNT( * ) AS col2
----
74
1

skipif mysql # not compatible
query II rowsort label-4282
SELECT ALL 74, + COUNT ( * ) AS col2
----
74
1

query I rowsort
SELECT ALL ( + NULLIF ( 87, - ( + - 50 ) ) ) + - + 2
----
85

query I rowsort
SELECT ALL - 83 + + 99
----
16

query I rowsort
SELECT DISTINCT + 25 * + + 56
----
1400

query I rowsort
SELECT ALL 70 + - - 5 AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4287
SELECT DISTINCT 16 DIV - ( - + 89 ) * + MAX( + - ( - 92 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT 16 / - ( - + 89 ) * + MAX ( + - ( - 92 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT ALL 87 * - + 75 + - MIN( - 59 )
----
-6466

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL 87 * - + 75 + - MIN ( - 59 )
----
-6466

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4289
SELECT MAX( DISTINCT + - 46 ) * + 23 * 83 + 26 DIV 33 DIV 54 AS col2
----
-87814

skipif mysql # not compatible
query I rowsort label-4289
SELECT MAX ( DISTINCT + - 46 ) * + 23 * 83 + 26 / 33 / 54 AS col2
----
-87814

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT 1 DIV + 2 - 79
----
-79

skipif mysql # not compatible
query I rowsort label-4290
SELECT 1 / + 2 - 79
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT MAX( 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4291
SELECT MAX ( 72 ) AS col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4292
SELECT ALL 27 * 62 DIV - - 46 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL 27 * 62 / - - 46 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT CASE - + MIN( + 13 ) WHEN + 74 + 35 THEN - + 70 - + - 11 ELSE NULL END - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT CASE - + MIN ( + 13 ) WHEN + 74 + 35 THEN - + 70 - + - 11 ELSE NULL END - - 9
----
NULL

query I rowsort
SELECT 92 - - ( + 20 ) * - ( + 47 )
----
-848

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT MIN( DISTINCT + - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-4295
SELECT MIN ( DISTINCT + - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL ( - 66 ) - - - COUNT( + 71 ) * + 70 * - - 5 AS col0
----
-416

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL ( - 66 ) - - - COUNT ( + 71 ) * + 70 * - - 5 AS col0
----
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT DISTINCT 26 * + COUNT( * ) col0
----
26

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT 26 * + COUNT ( * ) col0
----
26

query I rowsort
SELECT 27 - - 19
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT 47 * 5 * COALESCE ( 58, - 55 - - CAST( NULL AS SIGNED ) * - + COALESCE ( NULLIF ( - - CAST( - 92 AS SIGNED ), - 61 * 59 ), - 18 * - - 64 ) ) + + 10 + - 58
----
13582

skipif mysql # not compatible
query I rowsort label-4299
SELECT 47 * 5 * COALESCE ( 58, - 55 - - CAST ( NULL AS INTEGER ) * - + COALESCE ( NULLIF ( - - CAST ( - 92 AS INTEGER ), - 61 * 59 ), - 18 * - - 64 ) ) + + 10 + - 58
----
13582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4300
SELECT ALL COUNT( * ) DIV + ( - CAST( - 25 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL COUNT ( * ) / + ( - CAST ( - 25 AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4301
SELECT DISTINCT - + COALESCE ( - 70, - CAST( - 1 AS SIGNED ) )
----
70

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT - + COALESCE ( - 70, - CAST ( - 1 AS INTEGER ) )
----
70

query I rowsort
SELECT DISTINCT + 42 * 46
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT DISTINCT - CASE + - NULLIF ( + + 27, 51 * - + 42 + - 19 * - 12 ) WHEN - 40 + + COUNT( * ) THEN NULL WHEN - NULLIF ( + - 83, + - 47 ) * 40 + + 1 + - - 47 THEN - 31 + + - 96 WHEN - 74 * 37 + 93 * 13 * COUNT( * ) + - + 91 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT - CASE + - NULLIF ( + + 27, 51 * - + 42 + - 19 * - 12 ) WHEN - 40 + + COUNT ( * ) THEN NULL WHEN - NULLIF ( + - 83, + - 47 ) * 40 + + 1 + - - 47 THEN - 31 + + - 96 WHEN - 74 * 37 + 93 * 13 * COUNT ( * ) + - + 91 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + - 68 + + 98 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT 87 + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT 87 + COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT - COUNT( * ) * + 39 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4306
SELECT - COUNT ( * ) * + 39 AS col2
----
-39

query I rowsort
SELECT ALL + + 76 + 69 * 89 * 28
----
172024

onlyif mysql # aggregate syntax: 
query II rowsort label-4308
SELECT - COUNT( * ) * + - 67, + 8 AS col0
----
67
8

skipif mysql # not compatible
query II rowsort label-4308
SELECT - COUNT ( * ) * + - 67, + 8 AS col0
----
67
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4309
SELECT DISTINCT SUM( + + 28 ) AS col0, + COUNT( * ) col1
----
28
1

skipif mysql # not compatible
query II rowsort label-4309
SELECT DISTINCT SUM ( + + 28 ) AS col0, + COUNT ( * ) col1
----
28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL + + COUNT( * ) + 96 * CASE 87 WHEN - 9 THEN NULL WHEN - 35 THEN NULL ELSE - 5 * + 66 END + + 60 AS col1
----
-31619

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL + + COUNT ( * ) + 96 * CASE 87 WHEN - 9 THEN NULL WHEN - 35 THEN NULL ELSE - 5 * + 66 END + + 60 AS col1
----
-31619

onlyif mysql # DIV for integer division: 
query I rowsort label-4311
SELECT - 1 + - ( + 38 ) DIV 95 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4311
SELECT - 1 + - ( + 38 ) / 95 AS col2
----
-1

query I rowsort
SELECT - NULLIF ( + + 49, 38 - - 90 + 94 ) + 64
----
15

query I rowsort
SELECT ALL + 12 + 66 * - 7
----
-450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT - CAST( + + 82 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-4314
SELECT - CAST ( + + 82 AS INTEGER )
----
-82

query I rowsort
SELECT DISTINCT NULLIF ( - 90, - CASE 28 WHEN + 85 THEN - 45 WHEN - 92 THEN NULL END + - 38 * + COALESCE ( + 82, 18 + + 87 + 87 ) )
----
-90

query I rowsort
SELECT ALL - 32 + 31 col2
----
-1

query I rowsort
SELECT DISTINCT + 74 * + 19 AS col2
----
1406

query I rowsort
SELECT - 22 + + 62 * 5 - + 41 AS col2
----
247

query I rowsort
SELECT - 28 + 47
----
19

query I rowsort
SELECT ALL - 69 - - 39
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT + COUNT( * ) * + 72 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT + COUNT ( * ) * + 72 AS col2
----
72

query II rowsort
SELECT 15 col2, 92
----
15
92

query I rowsort
SELECT + 4 + + 87 AS col2
----
91

query II rowsort
SELECT ALL - 69 - 80 * 20 AS col1, + 45 AS col2
----
-1669
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4325
SELECT + COUNT( * ) DIV + 93 + - 47
----
-47

skipif mysql # not compatible
query I rowsort label-4325
SELECT + COUNT ( * ) / + 93 + - 47
----
-47

query I rowsort
SELECT ALL + 6 * - ( 2 )
----
-12

query I rowsort
SELECT + 56 * - 2 * - 73 * + 17 col1
----
138992

query I rowsort
SELECT + 91 + + - 4
----
87

query I rowsort
SELECT NULLIF ( - + 77, 95 + 1 )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4330
SELECT + 8 DIV - 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4330
SELECT + 8 / - 43 AS col0
----
0

query I rowsort
SELECT ALL 14 * - 7 * 31
----
-3038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4332
SELECT + 20 + + 50 DIV + COUNT( ALL - 73 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4332
SELECT + 20 + + 50 / + COUNT ( ALL - 73 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + + SUM( DISTINCT + - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-4333
SELECT + + SUM ( DISTINCT + - 12 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4334
SELECT ALL + NULLIF ( - CAST( NULL AS SIGNED ), - + 83 * + CAST( - + 17 AS DECIMAL ) - - COUNT( * ) + + 29 + + 64 ), 45 AS col1
----
NULL
45

skipif mysql # not compatible
query II rowsort label-4334
SELECT ALL + NULLIF ( - CAST ( NULL AS INTEGER ), - + 83 * + CAST ( - + 17 AS REAL ) - - COUNT ( * ) + + 29 + + 64 ), 45 AS col1
----
NULL
45

query I rowsort
SELECT DISTINCT + 1 * + 66
----
66

query I rowsort
SELECT ALL + - 92 * - - 27 * 64 + + 12 * + 73 AS col2
----
-158100

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT ALL + MAX( DISTINCT - + 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL + MAX ( DISTINCT - + 94 ) AS col1
----
-94

query II rowsort
SELECT 87 AS col2, 0 AS col0
----
87
0

query I rowsort
SELECT ALL + + 93 * - - 3 + - - 32 * + 31 + 47
----
1318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4340
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 61 * 43 + - 53 + + 25 * COUNT( * ) / + CASE AVG ( DISTINCT + + 47 ) WHEN + 82 THEN NULL ELSE + 91 / 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 61 * 43 + - 53 + + 25 * COUNT ( * ) / + CASE AVG ( DISTINCT + + 47 ) WHEN + 82 THEN NULL ELSE + 91 / 67 END
----
NULL

query II rowsort
SELECT + 30 AS col1, 98
----
30
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4342
SELECT ALL + 77 AS col0, CASE + 52 WHEN 60 THEN + - CAST( NULL AS SIGNED ) * ( - 86 ) END AS col0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-4342
SELECT ALL + 77 AS col0, CASE + 52 WHEN 60 THEN + - CAST ( NULL AS INTEGER ) * ( - 86 ) END AS col0
----
77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT DISTINCT + + CAST( - 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT + + CAST ( - 81 AS INTEGER )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT + + CAST( NULL AS SIGNED ) + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT + + CAST ( NULL AS INTEGER ) + - 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT ALL 48 * - 0 * - - ( + + 8 ) + - SUM( ALL + 88 ) + 54 col2
----
-34

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL 48 * - 0 * - - ( + + 8 ) + - SUM ( ALL + 88 ) + 54 col2
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4346
SELECT DISTINCT 78 DIV ( ( - COUNT( * ) ) )
----
-78

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT 78 / ( ( - COUNT ( * ) ) )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4347
SELECT ALL + ( + CAST( + COUNT( * ) AS SIGNED ) ), - 84 AS col0
----
1
-84

skipif mysql # not compatible
query II rowsort label-4347
SELECT ALL + ( + CAST ( + COUNT ( * ) AS INTEGER ) ), - 84 AS col0
----
1
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4348
SELECT + 22 + - COUNT( ALL - CAST( + + 89 AS SIGNED ) )
----
21

skipif mysql # not compatible
query I rowsort label-4348
SELECT + 22 + - COUNT ( ALL - CAST ( + + 89 AS INTEGER ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT + - 97 * - COUNT( * ) * - + ( COUNT( + 66 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-4349
SELECT + - 97 * - COUNT ( * ) * - + ( COUNT ( + 66 ) )
----
-97

query I rowsort
SELECT DISTINCT - 34 - - + 28 AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4351
SELECT ALL 5 - CASE + SUM( + + 91 ) WHEN MIN( DISTINCT - + 4 ) / - 77 - - + MIN( DISTINCT 16 ) + + 99 THEN NULL ELSE + COUNT( * ) END - 9 + - 42 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL 5 - CASE + SUM ( + + 91 ) WHEN MIN ( DISTINCT - + 4 ) / - 77 - - + MIN ( DISTINCT 16 ) + + 99 THEN NULL ELSE + COUNT ( * ) END - 9 + - 42 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( - 44 ) + 22 AS col1
----
66

query I rowsort
SELECT ALL 34 - 68
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4354
SELECT DISTINCT NULLIF ( CASE COUNT( * ) WHEN COUNT( - 20 ) THEN - - 57 * + COUNT( * ) * - + 60 * 46 * + 15 + 63 + 98 * + ( 46 ) * - 32 * - COALESCE ( - 11, - 3 + - NULLIF ( - 40, + + 22 ), ( + 25 ) ) * - - MIN( ALL - 57 ) + + COALESCE ( 73, - 32, + 1 * 49 * 73, - COUNT( * ) * + 15 * - ( + 11 ) + - 47 ) - + 62 DIV 54 * 96 END, - 72 DIV MIN( ALL - 67 ) + + 23 * 46 ) AS col1
----
88088752

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT NULLIF ( CASE COUNT ( * ) WHEN COUNT ( - 20 ) THEN - - 57 * + COUNT ( * ) * - + 60 * 46 * + 15 + 63 + 98 * + ( 46 ) * - 32 * - COALESCE ( - 11, - 3 + - NULLIF ( - 40, + + 22 ), ( + 25 ) ) * - - MIN ( ALL - 57 ) + + COALESCE ( 73, - 32, + 1 * 49 * 73, - COUNT ( * ) * + 15 * - ( + 11 ) + - 47 ) - + 62 / 54 * 96 END, - 72 / MIN ( ALL - 67 ) + + 23 * 46 ) AS col1
----
88088752

query I rowsort
SELECT + 99 * 37 col1
----
3663

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4356
SELECT + 16 DIV COUNT( * ) col1, - NULLIF ( 25, 6 ) AS col1
----
16
-25

skipif mysql # not compatible
query II rowsort label-4356
SELECT + 16 / COUNT ( * ) col1, - NULLIF ( 25, 6 ) AS col1
----
16
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4357
SELECT - 22 DIV + 92 * + 13 * - - MAX( DISTINCT - 47 )
----
0

skipif mysql # not compatible
query I rowsort label-4357
SELECT - 22 / + 92 * + 13 * - - MAX ( DISTINCT - 47 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4358
SELECT DISTINCT - 55 DIV - COUNT( * ) * + + COUNT( * ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT - 55 / - COUNT ( * ) * + + COUNT ( * ) AS col1
----
55

query II rowsort
SELECT DISTINCT ( - - 18 ), + 5 col0
----
18
5

query I rowsort
SELECT DISTINCT + ( + + 32 ) * 95 col1
----
3040

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT DISTINCT + SUM( 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT + SUM ( 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT - 58 DIV COUNT( * ) - - 27 + + ( 10 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-4362
SELECT - 58 / COUNT ( * ) - - 27 + + ( 10 ) AS col0
----
-21

query I rowsort
SELECT - 79 - + + 65 AS col2
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL - CASE WHEN NOT NULL BETWEEN NULL AND ( - - 39 ) THEN - COUNT( * ) + + - 82 ELSE NULL END * COALESCE ( - 71, COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL - CASE WHEN NOT NULL BETWEEN NULL AND ( - - 39 ) THEN - COUNT ( * ) + + - 82 ELSE NULL END * COALESCE ( - 71, COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4365
SELECT DISTINCT + MIN( 90 ) AS col2, 54 * ( 83 ) AS col0
----
90
4482

skipif mysql # not compatible
query II rowsort label-4365
SELECT DISTINCT + MIN ( 90 ) AS col2, 54 * ( 83 ) AS col0
----
90
4482

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT - 71 * COUNT( * ) + - - COALESCE ( - NULLIF ( + COUNT( * ), - COUNT( * ) ), 36, - 3 * - 5 + 80 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4366
SELECT - 71 * COUNT ( * ) + - - COALESCE ( - NULLIF ( + COUNT ( * ), - COUNT ( * ) ), 36, - 3 * - 5 + 80 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT DISTINCT - + 59 * + MIN( DISTINCT 21 )
----
-1239

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT - + 59 * + MIN ( DISTINCT 21 )
----
-1239

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT DISTINCT + 25 + + - COUNT( * ) + 59 * 90 + - 22 AS col2
----
5312

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT + 25 + + - COUNT ( * ) + 59 * 90 + - 22 AS col2
----
5312

query I rowsort
SELECT ALL - - 34 + 21
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT + COUNT( * ) + - 27 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT + COUNT ( * ) + - 27 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4371
SELECT 12 + 28 col0, ( - COUNT( * ) ) AS col0
----
40
-1

skipif mysql # not compatible
query II rowsort label-4371
SELECT 12 + 28 col0, ( - COUNT ( * ) ) AS col0
----
40
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT CASE 50 WHEN - MAX( ALL 91 ) THEN - 99 * + + ( - 3 ) ELSE NULL END * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT CASE 50 WHEN - MAX ( ALL 91 ) THEN - 99 * + + ( - 3 ) ELSE NULL END * - 5
----
NULL

query I rowsort
SELECT 2 - - 63 AS col1
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4374
SELECT ALL - COUNT( * ) DIV NULLIF ( + COUNT( * ), 38 ) * + + COALESCE ( - COUNT( * ), + 82, 38 * + 62 * - - 95 )
----
1

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL - COUNT ( * ) / NULLIF ( + COUNT ( * ), 38 ) * + + COALESCE ( - COUNT ( * ), + 82, 38 * + 62 * - - 95 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4375
SELECT ALL + ( + + 62 ) + 1 - 83 + + NULLIF ( + 22, - NULLIF ( 83, - 7 * - COUNT( * ) ) + + NULLIF ( - 46, - 3 ) ) DIV 77 * + 76 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL + ( + + 62 ) + 1 - 83 + + NULLIF ( + 22, - NULLIF ( 83, - 7 * - COUNT ( * ) ) + + NULLIF ( - 46, - 3 ) ) / 77 * + 76 AS col2
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4376
SELECT + 56 DIV COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-4376
SELECT + 56 / COUNT ( * )
----
56

query I rowsort
SELECT + - COALESCE ( 99, - - ( - 2 ) - 10 ) AS col1
----
-99

query I rowsort
SELECT 66 * + - 3 AS col0
----
-198

query I rowsort
SELECT ALL + 45 + + 96
----
141

query I rowsort
SELECT DISTINCT 9 * - 39
----
-351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4381
SELECT ALL - 7 * - 94 + - COUNT( DISTINCT + + 40 ) DIV - 49
----
658

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL - 7 * - 94 + - COUNT ( DISTINCT + + 40 ) / - 49
----
658

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT ALL + 96 * ( + 26 ) DIV - - 11 AS col2
----
226

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL + 96 * ( + 26 ) / - - 11 AS col2
----
226

onlyif mysql # DIV for integer division: 
query I rowsort label-4383
SELECT - + 80 * + + ( - 43 ) + 25 DIV 21 + - 36
----
3405

skipif mysql # not compatible
query I rowsort label-4383
SELECT - + 80 * + + ( - 43 ) + 25 / 21 + - 36
----
3405

query I rowsort
SELECT ALL - ( + + 50 ) - - ( + 84 ) + COALESCE ( - 61, + 67 ) * 82 AS col2
----
-4968

query I rowsort
SELECT - 64 + + + ( - 14 ) + + 20
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4386
SELECT + CASE 19 WHEN + 20 THEN COUNT( * ) DIV - 41 * + 19 ELSE + COUNT( * ) + - - 6 * - 36 + + - 4 END - + - COUNT( * ) + + + 16 AS col1, - 66
----
-202
-66

skipif mysql # not compatible
query II rowsort label-4386
SELECT + CASE 19 WHEN + 20 THEN COUNT ( * ) / - 41 * + 19 ELSE + COUNT ( * ) + - - 6 * - 36 + + - 4 END - + - COUNT ( * ) + + + 16 AS col1, - 66
----
-202
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-4387
SELECT 76 * + + SUM( + 42 ) AS col1, 14
----
3192
14

skipif mysql # not compatible
query II rowsort label-4387
SELECT 76 * + + SUM ( + 42 ) AS col1, 14
----
3192
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT 11 * - 99 * COUNT( * )
----
-1089

skipif mysql # not compatible
query I rowsort label-4388
SELECT 11 * - 99 * COUNT ( * )
----
-1089

query II rowsort
SELECT ALL 16, 16 * - 46 col2
----
16
-736

query I rowsort
SELECT ALL 4 * - 12
----
-48

query I rowsort
SELECT ALL 39 * + - 99 AS col1
----
-3861

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT ALL 51 DIV - - 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL 51 / - - 59 AS col2
----
0

query I rowsort
SELECT 8 - 87
----
-79

query I rowsort
SELECT DISTINCT - ( - - 23 ) * + + 63
----
-1449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT CAST( NULL AS SIGNED ) - + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT CAST ( NULL AS INTEGER ) - + 83
----
NULL

query II rowsort
SELECT ALL 84 AS col1, 75 * - + 6 * 34 AS col0
----
84
-15300

query I rowsort
SELECT DISTINCT 3 * - - 30 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4398
SELECT 27 + - + SUM( + - ( - CAST( + 16 AS SIGNED ) ) ) + + 90 + COUNT( * ) * - 17 AS col1, + MAX( DISTINCT - - 48 )
----
84
48

skipif mysql # not compatible
query II rowsort label-4398
SELECT 27 + - + SUM ( + - ( - CAST ( + 16 AS INTEGER ) ) ) + + 90 + COUNT ( * ) * - 17 AS col1, + MAX ( DISTINCT - - 48 )
----
84
48

query II rowsort
SELECT DISTINCT ( - 95 ) * - 1 + - - 30 + 84 AS col2, 35 col1
----
209
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT COUNT( * ) + + + 1 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT COUNT ( * ) + + + 1 AS col0
----
2

query I rowsort
SELECT ALL ( - 68 ) + 54
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT CAST( NULL AS SIGNED ) + + + 79 + + 20 * + 86 / 15 + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT CAST ( NULL AS INTEGER ) + + + 79 + + 20 * + 86 / 15 + 95
----
NULL

query I rowsort
SELECT ALL - ( + 57 ) + 76 AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT COALESCE ( + - 32, 49, + 30 ) DIV - + 58
----
0

skipif mysql # not compatible
query I rowsort label-4404
SELECT COALESCE ( + - 32, 49, + 30 ) / - + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT COUNT( * ) + - 67 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT COUNT ( * ) + - 67 AS col1
----
-66

query I rowsort
SELECT DISTINCT - 35 + - 49 - + + 70 + + 5 AS col2
----
-149

query I rowsort
SELECT 57 * + 74 + - 66 col0
----
4152

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT - - COUNT( - ( + + 92 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT - - COUNT ( - ( + + 92 ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4409
SELECT + + 56 * + + 97 + + COALESCE ( - 82, - - CAST( COUNT( * ) AS SIGNED ) DIV - 29, - 98 ) + 33 * - 18 + + + 93
----
4849

skipif mysql # not compatible
query I rowsort label-4409
SELECT + + 56 * + + 97 + + COALESCE ( - 82, - - CAST ( COUNT ( * ) AS INTEGER ) / - 29, - 98 ) + 33 * - 18 + + + 93
----
4849

query I rowsort
SELECT DISTINCT - - 32 * + - 74 AS col1
----
-2368

query I rowsort
SELECT ALL - NULLIF ( 66, - 44 ) + + - 37 + - 78 AS col2
----
-181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4412
SELECT + 45 * + + NULLIF ( - - 2, 44 + - 51 ) / + + 48 * - + CASE NULLIF ( 17, - 99 ) WHEN - 34 - - 2 THEN + 30 WHEN 63 THEN - CASE 44 WHEN - - 84 - COUNT( * ) + + + 81 * 1 * + COUNT( * ) THEN NULL WHEN 37 THEN - 50 ELSE NULL END - + COALESCE ( - 86, 15, ( 77 ) / COUNT( * ) - - + NULLIF ( - - 95, MAX( ALL - 94 ) ) + 71 - - 95 * - CASE 82 WHEN 42 / CAST( NULL AS SIGNED ) THEN + 91 WHEN 31 THEN + 6 ELSE - CASE - 86 WHEN - COUNT( * ) * COUNT( * ) + - 99 THEN 71 * ( - 52 * 29 ) + + COUNT( ALL 36 ) WHEN - 4 * NULLIF ( 5, - 23 * + 5 ) + 92 THEN NULL ELSE NULL END END * - NULLIF ( CASE + MAX( ALL - 23 ) WHEN 34 THEN 78 / + 28 ELSE 28 + + 63 END, - 88 * + NULLIF ( 41, + ( - 75 ) ) ) ) END * 96 + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT + 45 * + + NULLIF ( - - 2, 44 + - 51 ) / + + 48 * - + CASE NULLIF ( 17, - 99 ) WHEN - 34 - - 2 THEN + 30 WHEN 63 THEN - CASE 44 WHEN - - 84 - COUNT ( * ) + + + 81 * 1 * + COUNT ( * ) THEN NULL WHEN 37 THEN - 50 ELSE NULL END - + COALESCE ( - 86, 15, ( 77 ) / COUNT ( * ) - - + NULLIF ( - - 95, MAX ( ALL - 94 ) ) + 71 - - 95 * - CASE 82 WHEN 42 / CAST ( NULL AS INTEGER ) THEN + 91 WHEN 31 THEN + 6 ELSE - CASE - 86 WHEN - COUNT ( * ) * COUNT ( * ) + - 99 THEN 71 * ( - 52 * 29 ) + + COUNT ( ALL 36 ) WHEN - 4 * NULLIF ( 5, - 23 * + 5 ) + 92 THEN NULL ELSE NULL END END * - NULLIF ( CASE + MAX ( ALL - 23 ) WHEN 34 THEN 78 / + 28 ELSE 28 + + 63 END, - 88 * + NULLIF ( 41, + ( - 75 ) ) ) ) END * 96 + 49
----
NULL

query I rowsort
SELECT + - NULLIF ( 33, 11 - - 17 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4414
SELECT + - CAST( + - 85 AS SIGNED ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4414
SELECT + - CAST ( + - 85 AS INTEGER ) AS col2
----
85

query I rowsort
SELECT DISTINCT - 58 * 7 AS col2
----
-406

query I rowsort
SELECT ALL - - NULLIF ( - 17, - 61 + - 58 * + 65 ) AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4417
SELECT 27 * - ( + 55 ) + + CASE 75 WHEN 29 * + 93 THEN 38 WHEN - NULLIF ( + CAST( NULL AS SIGNED ), + - COUNT( * ) ) THEN NULL END * + - SUM( DISTINCT + 42 ), 21 AS col2
----
NULL
21

skipif mysql # not compatible
query II rowsort label-4417
SELECT 27 * - ( + 55 ) + + CASE 75 WHEN 29 * + 93 THEN 38 WHEN - NULLIF ( + CAST ( NULL AS INTEGER ), + - COUNT ( * ) ) THEN NULL END * + - SUM ( DISTINCT + 42 ), 21 AS col2
----
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT ALL - + 89 * + + 16 + + 93 + + - COUNT( * ) * + 95 + 38 * - + ( MAX( ALL 28 ) )
----
-2490

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL - + 89 * + + 16 + + 93 + + - COUNT ( * ) * + 95 + 38 * - + ( MAX ( ALL 28 ) )
----
-2490

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + 4 + 63 * + SUM( 52 )
----
3280

skipif mysql # not compatible
query I rowsort label-4419
SELECT + 4 + 63 * + SUM ( 52 )
----
3280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT DISTINCT + - 77 - + 36 + - 44 + - MAX( DISTINCT CAST( 16 AS SIGNED ) )
----
-173

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT + - 77 - + 36 + - 44 + - MAX ( DISTINCT CAST ( 16 AS INTEGER ) )
----
-173

query I rowsort
SELECT ( - 12 ) * + ( - 47 ) col0
----
564

query I rowsort
SELECT 50 + + + 87 AS col2
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-4423
SELECT + 10 * + + 91 * + 52 + - 37 DIV - - ( - 46 )
----
47320

skipif mysql # not compatible
query I rowsort label-4423
SELECT + 10 * + + 91 * + 52 + - 37 / - - ( - 46 )
----
47320

query I rowsort
SELECT + 45 * - 83 AS col2
----
-3735

query II rowsort
SELECT - 15 AS col0, 88
----
-15
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4426
SELECT - 69, COUNT( * ) AS col2
----
-69
1

skipif mysql # not compatible
query II rowsort label-4426
SELECT - 69, COUNT ( * ) AS col2
----
-69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL MAX( ALL + 98 ) col1
----
98

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL MAX ( ALL + 98 ) col1
----
98

query I rowsort
SELECT 11 * 66 * + 29 AS col1
----
21054

query II rowsort
SELECT 31, 8 * + - 49 AS col2
----
31
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT 17 + - + 81 + 99 - COALESCE ( + ( 24 ), CASE 91 WHEN - 67 THEN NULL WHEN - - 66 THEN + 39 END * COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-4430
SELECT 17 + - + 81 + 99 - COALESCE ( + ( 24 ), CASE 91 WHEN - 67 THEN NULL WHEN - - 66 THEN + 39 END * COUNT ( * ) )
----
11

query I rowsort
SELECT ALL 45 * + 36
----
1620

query II rowsort
SELECT 36, 10 + + + 16 AS col2
----
36
26

query I rowsort
SELECT DISTINCT 62 + + - 91 col1
----
-29

query II rowsort
SELECT - 83 AS col0, 90
----
-83
90

query I rowsort
SELECT 1 * - - 13 * 25 AS col2
----
325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4436
SELECT ALL + COUNT( * ) + + CASE WHEN 53 IS NULL THEN NULL WHEN - COUNT( * ) + 9 NOT BETWEEN - CASE + 63 WHEN - - 23 THEN + COALESCE ( + + 96, + COUNT( * ) / + 58 + 44 + + 32, 82 ) - - 41 WHEN + 8 THEN + 33 + 33 ELSE CAST( 73 AS DECIMAL ) * + - 57 + - + 17 + + 75 / - CAST( + CAST( 57 AS SIGNED ) AS SIGNED ) * - NULLIF ( + + 77, + - 89 * - 3 - + + 75 + - 84 ) / + + ( 1 ) * - 47 + - 82 END AND NULL THEN - 83 END * 88 AS col0
----
-7303

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL + COUNT ( * ) + + CASE WHEN 53 IS NULL THEN NULL WHEN - COUNT ( * ) + 9 NOT BETWEEN - CASE + 63 WHEN - - 23 THEN + COALESCE ( + + 96, + COUNT ( * ) / + 58 + 44 + + 32, 82 ) - - 41 WHEN + 8 THEN + 33 + 33 ELSE CAST ( 73 AS REAL ) * + - 57 + - + 17 + + 75 / - CAST ( + CAST ( 57 AS INTEGER ) AS INTEGER ) * - NULLIF ( + + 77, + - 89 * - 3 - + + 75 + - 84 ) / + + ( 1 ) * - 47 + - 82 END AND NULL THEN - 83 END * 88 AS col0
----
-7303

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT COUNT( * ) + + - 15 + - NULLIF ( + + 37, COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT COUNT ( * ) + + - 15 + - NULLIF ( + + 37, COUNT ( * ) )
----
-51

query I rowsort
SELECT DISTINCT COALESCE ( + 21, + - 23 )
----
21

query I rowsort
SELECT + 56 * - + 96
----
-5376

query I rowsort
SELECT DISTINCT 85 + + + 72 col1
----
157

query I rowsort
SELECT ALL 44 + + 73 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT - NULLIF ( + + 26, 96 * - + 39 * MAX( - + 74 ) * - - 20 + + + 12 + 27 + + + 39 )
----
-26

skipif mysql # not compatible
query I rowsort label-4442
SELECT - NULLIF ( + + 26, 96 * - + 39 * MAX ( - + 74 ) * - - 20 + + + 12 + 27 + + + 39 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT + 20 + + COUNT( * ) + + - ( + 14 ) * + 65 AS col1
----
-889

skipif mysql # not compatible
query I rowsort label-4443
SELECT + 20 + + COUNT ( * ) + + - ( + 14 ) * + 65 AS col1
----
-889

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT + COUNT( * ) * 57 * 46
----
2622

skipif mysql # not compatible
query I rowsort label-4444
SELECT + COUNT ( * ) * 57 * 46
----
2622

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT ALL NULLIF ( COALESCE ( + 94, - 59 * + 13 ), 18 / COUNT( * ) ) * - - 91
----
8554

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL NULLIF ( COALESCE ( + 94, - 59 * + 13 ), 18 / COUNT ( * ) ) * - - 91
----
8554

onlyif mysql # aggregate syntax: 
query II rowsort label-4446
SELECT COUNT( * ) AS col2, 24 AS col1
----
1
24

skipif mysql # not compatible
query II rowsort label-4446
SELECT COUNT ( * ) AS col2, 24 AS col1
----
1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT + 72 + - COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4447
SELECT + 72 + - COUNT ( * ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT DISTINCT 42 + - + COUNT( * ) - - 52 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT 42 + - + COUNT ( * ) - - 52 AS col2
----
93

query I rowsort
SELECT + - ( - - 35 ) AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4450
SELECT ALL 67 * 55 - - - COUNT( + - 43 ) DIV - - COUNT( 30 )
----
3684

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL 67 * 55 - - - COUNT ( + - 43 ) / - - COUNT ( 30 )
----
3684

query I rowsort
SELECT - 99 * 56
----
-5544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT + 43 - + 21 + - 29 + + CAST( NULL AS SIGNED ) * - - COUNT( * ) - - 1 * + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT + 43 - + 21 + - 29 + + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) - - 1 * + 25 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + ( ( + ( + 98 ) ) )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4454
SELECT DISTINCT + - CAST( - ( + + 2 ) AS SIGNED ) DIV - COUNT( - 34 ) - 95 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT + - CAST ( - ( + + 2 ) AS INTEGER ) / - COUNT ( - 34 ) - 95 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT + + ( 78 ) * + 34 + - SUM( ALL 68 ) * 24 AS col0
----
1020

skipif mysql # not compatible
query I rowsort label-4455
SELECT + + ( 78 ) * + 34 + - SUM ( ALL 68 ) * 24 AS col0
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL + CASE - COUNT( * ) WHEN - 75 * + 38 THEN NULL ELSE + 44 END AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL + CASE - COUNT ( * ) WHEN - 75 * + 38 THEN NULL ELSE + 44 END AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4457
SELECT ALL - CAST( NULL AS SIGNED ) * - 81 * + 39 - - 41 AS col1, NULLIF ( MIN( DISTINCT + - 16 ), - + COUNT( * ) + - 92 )
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-4457
SELECT ALL - CAST ( NULL AS INTEGER ) * - 81 * + 39 - - 41 AS col1, NULLIF ( MIN ( DISTINCT + - 16 ), - + COUNT ( * ) + - 92 )
----
NULL
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-4458
SELECT + - 73 AS col0, 71 * 18 + - + 56 * + 6 DIV - 1 AS col2
----
-73
1614

skipif mysql # not compatible
query II rowsort label-4458
SELECT + - 73 AS col0, 71 * 18 + - + 56 * + 6 / - 1 AS col2
----
-73
1614

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT + + MIN( ( + 7 ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT + + MIN ( ( + 7 ) ) AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4460
SELECT ALL + 62 AS col1, + ( + COUNT( * ) ) + - + CASE - 15 WHEN + - ( + COALESCE ( - - 18, 45, - - 88 * - 4 * - 36 ) ) THEN NULL WHEN - 18 THEN + 82 - - - ( - CAST( 79 AS SIGNED ) ) END
----
62
NULL

skipif mysql # not compatible
query II rowsort label-4460
SELECT ALL + 62 AS col1, + ( + COUNT ( * ) ) + - + CASE - 15 WHEN + - ( + COALESCE ( - - 18, 45, - - 88 * - 4 * - 36 ) ) THEN NULL WHEN - 18 THEN + 82 - - - ( - CAST ( 79 AS INTEGER ) ) END
----
62
NULL

query I rowsort
SELECT + 46 * 53 * 68 * + 14 + + 60 * + - 7 AS col0
----
2320556

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4462
SELECT - 15 * 61 DIV + COALESCE ( - + 43, + 12 - 3, + - 50 + + 89 + COUNT( + + 52 ) * - 85 )
----
21

skipif mysql # not compatible
query I rowsort label-4462
SELECT - 15 * 61 / + COALESCE ( - + 43, + 12 - 3, + - 50 + + 89 + COUNT ( + + 52 ) * - 85 )
----
21

query II rowsort
SELECT ALL - 13 * - + ( + 80 ) + 62 AS col0, 70 AS col0
----
1102
70

query II rowsort
SELECT - 39 AS col1, 52
----
-39
52

query I rowsort
SELECT DISTINCT + 86 * 41
----
3526

query II rowsort
SELECT ALL + - 12 AS col2, - 2 AS col2
----
-12
-2

query II rowsort
SELECT ALL 75 * + - 55, + 3 AS col1
----
-4125
3

query I rowsort
SELECT DISTINCT + ( - + 68 )
----
-68

query I rowsort
SELECT ALL + ( + + 57 ) * ( 87 ) + + 1 + - 10 + + 24
----
4974

onlyif mysql # DIV for integer division: 
query II rowsort label-4470
SELECT DISTINCT + ( - + 42 ) AS col2, - 52 DIV - 65
----
-42
0

skipif mysql # not compatible
query II rowsort label-4470
SELECT DISTINCT + ( - + 42 ) AS col2, - 52 / - 65
----
-42
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT ALL CASE 90 WHEN - NULLIF ( - CAST( - + 82 AS SIGNED ), + CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) ) * ( - - 53 ) / - 2 THEN ( + + 97 ) WHEN 52 THEN - 55 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL CASE 90 WHEN - NULLIF ( - CAST ( - + 82 AS INTEGER ), + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) ) * ( - - 53 ) / - 2 THEN ( + + 97 ) WHEN 52 THEN - 55 ELSE NULL END col2
----
NULL

query I rowsort
SELECT - 40 * - + 85
----
3400

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT - 10 + - 80 + + + COUNT( DISTINCT - 41 ) * + + 81 * - 46 + - 44 * - - 31 col0
----
-5180

skipif mysql # not compatible
query I rowsort label-4473
SELECT - 10 + - 80 + + + COUNT ( DISTINCT - 41 ) * + + 81 * - 46 + - 44 * - - 31 col0
----
-5180

query I rowsort
SELECT ALL - 79 + - 46
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4475
SELECT + MIN( - - 33 ) DIV + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4475
SELECT + MIN ( - - 33 ) / + 77 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL + ( - 36 ) + - + SUM( DISTINCT + 5 )
----
-41

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL + ( - 36 ) + - + SUM ( DISTINCT + 5 )
----
-41

query II rowsort
SELECT - 4 + - 18 AS col1, - 94 AS col1
----
-22
-94

query I rowsort
SELECT DISTINCT + 7 * - 76
----
-532

query I rowsort
SELECT DISTINCT + 34 + 6 * 72 * + 80 * + - ( - 76 ) col0
----
2626594

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4480
SELECT ALL MIN( DISTINCT ( 34 ) ) * - COUNT( * ) DIV + + 41 + - 9
----
-9

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL MIN ( DISTINCT ( 34 ) ) * - COUNT ( * ) / + + 41 + - 9
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT - 56 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT - 56 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL - NULLIF ( ( + 65 ), + COUNT( * ) ) * - MAX( DISTINCT - 56 ) * + 11 * - + 30
----
1201200

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - NULLIF ( ( + 65 ), + COUNT ( * ) ) * - MAX ( DISTINCT - 56 ) * + 11 * - + 30
----
1201200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT ALL ( - ( + CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query II rowsort
SELECT + 26 + + 29 AS col1, - 9
----
55
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT DISTINCT + CAST( NULL AS SIGNED ) * CASE - - 82 WHEN + + 56 THEN + 27 - + CASE + 51 WHEN + 23 THEN COUNT( * ) + - + 38 END * - 38 WHEN - + 9 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CASE - - 82 WHEN + + 56 THEN + 27 - + CASE + 51 WHEN + 23 THEN COUNT ( * ) + - + 38 END * - 38 WHEN - + 9 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4486
SELECT + COUNT( * ) + - - 37 AS col1, + 88
----
38
88

skipif mysql # not compatible
query II rowsort label-4486
SELECT + COUNT ( * ) + - - 37 AS col1, + 88
----
38
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4487
SELECT - 14 * - 46 AS col0, + NULLIF ( + ( + + 26 ), - + MAX( ALL 0 ) ) AS col1
----
644
26

skipif mysql # not compatible
query II rowsort label-4487
SELECT - 14 * - 46 AS col0, + NULLIF ( + ( + + 26 ), - + MAX ( ALL 0 ) ) AS col1
----
644
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4488
SELECT + 74 + 17, 27 * MAX( + 11 ) AS col2
----
91
297

skipif mysql # not compatible
query II rowsort label-4488
SELECT + 74 + 17, 27 * MAX ( + 11 ) AS col2
----
91
297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4489
SELECT - 14 + 71 + + COUNT( DISTINCT - + 98 ) DIV COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-4489
SELECT - 14 + 71 + + COUNT ( DISTINCT - + 98 ) / COUNT ( * )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4490
SELECT ALL MAX( ALL + CAST( - ( 29 ) AS SIGNED ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL MAX ( ALL + CAST ( - ( 29 ) AS INTEGER ) ) AS col2
----
-29

query I rowsort
SELECT + - 64 * + 43 AS col0
----
-2752

query I rowsort
SELECT ALL - CASE + 57 WHEN - 75 THEN NULL WHEN - 35 * 54 THEN 67 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 76 * + - 1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT ALL - ( + 68 ) * - 34 * - ( + - 30 ) + 0 DIV COALESCE ( - - NULLIF ( 34, + - 81 + + 40 ), + - 4 )
----
69360

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL - ( + 68 ) * - 34 * - ( + - 30 ) + 0 / COALESCE ( - - NULLIF ( 34, + - 81 + + 40 ), + - 4 )
----
69360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4495
SELECT + - 14 DIV - 4, COUNT( DISTINCT - - 86 ) + + COUNT( * ) + + 30 + + AVG ( ALL - - 59 ) + 6 * - 71 DIV - NULLIF ( CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) + ( + 9 ) + 10 DIV 4 ) col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4495
SELECT + - 14 / - 4, COUNT ( DISTINCT - - 86 ) + + COUNT ( * ) + + 30 + + AVG ( ALL - - 59 ) + 6 * - 71 / - NULLIF ( CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) + ( + 9 ) + 10 / 4 ) col0
----
3
NULL

query I rowsort
SELECT ALL 33 * + 61
----
2013

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4497
SELECT + CAST( - 10 AS SIGNED ), 59 * + + NULLIF ( COALESCE ( 17, - ( 58 ) ), 20 ) AS col2
----
-10
1003

skipif mysql # not compatible
query II rowsort label-4497
SELECT + CAST ( - 10 AS INTEGER ), 59 * + + NULLIF ( COALESCE ( 17, - ( 58 ) ), 20 ) AS col2
----
-10
1003

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT + COUNT( * ) * 85 + - 55 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4498
SELECT + COUNT ( * ) * 85 + - 55 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL 60 * - COALESCE ( + - MAX( DISTINCT + 11 ), + 80 + + - 67 + + 79, 5 * - 40 ) AS col0
----
660

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL 60 * - COALESCE ( + - MAX ( DISTINCT + 11 ), + 80 + + - 67 + + 79, 5 * - 40 ) AS col0
----
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4500
SELECT + COALESCE ( + SUM( ALL + 4 ), - COUNT( * ) ) / - + CAST( NULL AS SIGNED ) + 90 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT + COALESCE ( + SUM ( ALL + 4 ), - COUNT ( * ) ) / - + CAST ( NULL AS INTEGER ) + 90 col0
----
NULL

query I rowsort
SELECT + 99 * - 62 AS col1
----
-6138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT + 14 / + 10 + + 31 + + CAST( NULL AS SIGNED ) * 95 * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT + 14 / + 10 + + 31 + + CAST ( NULL AS INTEGER ) * 95 * - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT DISTINCT COUNT( * ) * ( + + 80 ) * - 19 AS col0
----
-1520

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT COUNT ( * ) * ( + + 80 ) * - 19 AS col0
----
-1520

query I rowsort
SELECT ALL + 56 * - 22 + + 58
----
-1174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4505
SELECT ALL + ( - - COUNT( * ) ) DIV + - 57
----
0

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL + ( - - COUNT ( * ) ) / + - 57
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4506
SELECT - ( + COUNT( * ) ) * - - 14 + + CASE - ( - 73 ) WHEN - 2 * - - 99 - + + 54 THEN 57 * - - 23 * + - COALESCE ( + CASE 28 WHEN - 80 * + 98 THEN - - 35 WHEN + MAX( ALL + 30 ) THEN + ( CAST( NULL AS SIGNED ) ) * 45 + - ( 16 ) + - + AVG ( 42 ) + - + ( 54 ) + - 5 ELSE NULL END, 84, - - 96 + + + 34 / - - 20 ) * + - 61 * - 99 * COUNT( * ) + 49 * ( AVG ( + ( - CASE ( + CAST( ( 43 ) AS SIGNED ) ) WHEN 86 THEN CASE 10 WHEN + 51 THEN - 19 * - 40 WHEN - 89 * CAST( + 25 * 94 AS SIGNED ) - - 67 * + 8 THEN NULL ELSE NULL END - - CAST( NULL AS SIGNED ) ELSE NULL END ) ) ) - - 84 * - 36 WHEN + 41 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT - ( + COUNT ( * ) ) * - - 14 + + CASE - ( - 73 ) WHEN - 2 * - - 99 - + + 54 THEN 57 * - - 23 * + - COALESCE ( + CASE 28 WHEN - 80 * + 98 THEN - - 35 WHEN + MAX ( ALL + 30 ) THEN + ( CAST ( NULL AS INTEGER ) ) * 45 + - ( 16 ) + - + AVG ( 42 ) + - + ( 54 ) + - 5 ELSE NULL END, 84, - - 96 + + + 34 / - - 20 ) * + - 61 * - 99 * COUNT ( * ) + 49 * ( AVG ( + ( - CASE ( + CAST ( ( 43 ) AS INTEGER ) ) WHEN 86 THEN CASE 10 WHEN + 51 THEN - 19 * - 40 WHEN - 89 * CAST ( + 25 * 94 AS INTEGER ) - - 67 * + 8 THEN NULL ELSE NULL END - - CAST ( NULL AS INTEGER ) ELSE NULL END ) ) ) - - 84 * - 36 WHEN + 41 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT ALL - 60 / + - 61 + 72 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL - 60 / + - 61 + 72 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - COALESCE ( - 52, + 66 ) * - 19 + + 87 AS col1
----
-901

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT - 25 * + - NULLIF ( - 80, COUNT( * ) ) + - + 74 col1
----
-2074

skipif mysql # not compatible
query I rowsort label-4509
SELECT - 25 * + - NULLIF ( - 80, COUNT ( * ) ) + - + 74 col1
----
-2074

onlyif mysql # aggregate syntax: 
query II rowsort label-4510
SELECT ( ( + + 74 ) ) col2, 60 + + COUNT( * )
----
74
61

skipif mysql # not compatible
query II rowsort label-4510
SELECT ( ( + + 74 ) ) col2, 60 + + COUNT ( * )
----
74
61

query I rowsort
SELECT - 40 + 76
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT COUNT( * ) * - 46 + 37 + 88 col0
----
79

skipif mysql # not compatible
query I rowsort label-4512
SELECT COUNT ( * ) * - 46 + 37 + 88 col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4513
SELECT ALL + ( + + 90 ) * CAST( NULL AS SIGNED ) * + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + ( + + 90 ) * CAST ( NULL AS INTEGER ) * + 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT DISTINCT + 2 + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT + 2 + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4515
SELECT ALL - ( 34 ) + + 14 - ( + 75 ) * + - ( + 32 ) * + 55 * + NULLIF ( - 15, + 66 - + 18 - - - 31 ) AS col1, COUNT( * ) AS col2
----
-1980020
1

skipif mysql # not compatible
query II rowsort label-4515
SELECT ALL - ( 34 ) + + 14 - ( + 75 ) * + - ( + 32 ) * + 55 * + NULLIF ( - 15, + 66 - + 18 - - - 31 ) AS col1, COUNT ( * ) AS col2
----
-1980020
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4516
SELECT DISTINCT 38 col0, - COUNT( * )
----
38
-1

skipif mysql # not compatible
query II rowsort label-4516
SELECT DISTINCT 38 col0, - COUNT ( * )
----
38
-1

query I rowsort
SELECT ALL + 85 + 79 col1
----
164

query I rowsort
SELECT 42 * - 18 AS col1
----
-756

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4519
SELECT DISTINCT 95 AS col2, - CASE - 33 WHEN - - 36 * - 73 THEN 85 * + 82 END * - + 69 * - 96 - AVG ( CAST( - 40 AS SIGNED ) ) AS col0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-4519
SELECT DISTINCT 95 AS col2, - CASE - 33 WHEN - - 36 * - 73 THEN 85 * + 82 END * - + 69 * - 96 - AVG ( CAST ( - 40 AS INTEGER ) ) AS col0
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL - 85 - SUM( DISTINCT - - 54 )
----
-139

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL - 85 - SUM ( DISTINCT - - 54 )
----
-139

query I rowsort
SELECT 68 * + 87 AS col2
----
5916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT 42 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT 42 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT ALL - - 83 - + - ( COUNT( * ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL - - 83 - + - ( COUNT ( * ) ) AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4524
SELECT 87 * + 34 + 87 - COUNT( * ) * + - NULLIF ( - 99, + NULLIF ( + + 40, + COUNT( CAST( NULL AS SIGNED ) ) + 62 + - 5 * 89 / - COALESCE ( 22, - - 69, + - COALESCE ( + 7, - MIN( 77 ), - - 78 + + COALESCE ( + + 71, - MIN( 30 ) ) / - COALESCE ( + - 30, + + 7, + 73 ) - - ( - 7 ) ) * - 24 / - CAST( NULL AS SIGNED ) ) ) + - SUM( ALL + 7 ) * - - 97 ) / + 9 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT 87 * + 34 + 87 - COUNT ( * ) * + - NULLIF ( - 99, + NULLIF ( + + 40, + COUNT ( CAST ( NULL AS INTEGER ) ) + 62 + - 5 * 89 / - COALESCE ( 22, - - 69, + - COALESCE ( + 7, - MIN ( 77 ), - - 78 + + COALESCE ( + + 71, - MIN ( 30 ) ) / - COALESCE ( + - 30, + + 7, + 73 ) - - ( - 7 ) ) * - 24 / - CAST ( NULL AS INTEGER ) ) ) + - SUM ( ALL + 7 ) * - - 97 ) / + 9 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL MAX( ALL - ( - 88 ) ) - 75 + 33
----
46

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL MAX ( ALL - ( - 88 ) ) - 75 + 33
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT - 34 * COUNT( * ) - + 45 - - 11 * + - 95
----
-1124

skipif mysql # not compatible
query I rowsort label-4526
SELECT - 34 * COUNT ( * ) - + 45 - - 11 * + - 95
----
-1124

onlyif mysql # aggregate syntax: 
query II rowsort label-4527
SELECT + 1 * + COUNT( * ) * 98, ( - - 89 ) AS col2
----
98
89

skipif mysql # not compatible
query II rowsort label-4527
SELECT + 1 * + COUNT ( * ) * 98, ( - - 89 ) AS col2
----
98
89

query II rowsort
SELECT + 95 col0, - 23 col0
----
95
-23

query I rowsort
SELECT + COALESCE ( - 80, 14, - 23 * - + 73 + - 47 + - + 3 - 35 )
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT + 12 DIV + 67 + 89 + 49 - - - 51 + 82
----
169

skipif mysql # not compatible
query I rowsort label-4530
SELECT + 12 / + 67 + 89 + 49 - - - 51 + 82
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT 35 * - 82 - - + CASE - AVG ( ALL - 5 ) WHEN + 62 + - - 68 + 19 THEN + ( 6 ) * + 68 + - + COUNT( * ) WHEN + 40 + + 15 * 47 THEN NULL ELSE NULL END - - 71 * - + ( + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT 35 * - 82 - - + CASE - AVG ( ALL - 5 ) WHEN + 62 + - - 68 + 19 THEN + ( 6 ) * + 68 + - + COUNT ( * ) WHEN + 40 + + 15 * 47 THEN NULL ELSE NULL END - - 71 * - + ( + 69 )
----
NULL

query I rowsort
SELECT DISTINCT + 86 + 13 AS col2
----
99

query I rowsort
SELECT ALL - 36 + ( 1 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT - 8 + + SUM( - 61 )
----
-69

skipif mysql # not compatible
query I rowsort label-4534
SELECT - 8 + + SUM ( - 61 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT DISTINCT 51 + - - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT 51 + - - COUNT ( * )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4536
SELECT DISTINCT COUNT( * ) + - - CAST( NULL AS SIGNED ) * - 82 * + 31 AS col0, COUNT( * ) * - 22 col2
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-4536
SELECT DISTINCT COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * - 82 * + 31 AS col0, COUNT ( * ) * - 22 col2
----
NULL
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4537
SELECT 27 DIV 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4537
SELECT 27 / 70 AS col2
----
0

query I rowsort
SELECT DISTINCT 40 * + 78 AS col0
----
3120

query I rowsort
SELECT 11 * + 92 * - - 13
----
13156

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4540
SELECT 17 DIV + 71 col2, 56 DIV MIN( ALL - 76 ) * - - 8 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-4540
SELECT 17 / + 71 col2, 56 / MIN ( ALL - 76 ) * - - 8 AS col2
----
0
0

query I rowsort
SELECT ALL 86 + + - 44
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT ALL COUNT( * ) * + NULLIF ( - 4, - ( - - ( + 67 ) ) )
----
-4

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL COUNT ( * ) * + NULLIF ( - 4, - ( - - ( + 67 ) ) )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4543
SELECT DISTINCT 9 DIV + + 32 AS col2, + 78 * COUNT( * ) AS col0
----
0
78

skipif mysql # not compatible
query II rowsort label-4543
SELECT DISTINCT 9 / + + 32 AS col2, + 78 * COUNT ( * ) AS col0
----
0
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT ALL CAST( 92 AS SIGNED ) - - - 97
----
-5

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL CAST ( 92 AS INTEGER ) - - - 97
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4545
SELECT ALL - 62 / + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL - 62 / + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 36 * + 73 AS col0
----
2628

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT COUNT( * ) - + - 83
----
84

skipif mysql # not compatible
query I rowsort label-4547
SELECT COUNT ( * ) - + - 83
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT - 44 * CASE - 7 WHEN - 83 THEN CAST( NULL AS SIGNED ) * + + 43 / - - 1 * CAST( + - ( - 14 ) AS SIGNED ) ELSE NULL END + + + 62 * - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT - 44 * CASE - 7 WHEN - 83 THEN CAST ( NULL AS INTEGER ) * + + 43 / - - 1 * CAST ( + - ( - 14 ) AS INTEGER ) ELSE NULL END + + + 62 * - 9 AS col2
----
NULL

query I rowsort
SELECT ( + + 85 ) * 50
----
4250

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT COUNT( * ) + - 73 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4550
SELECT COUNT ( * ) + - 73 AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4551
SELECT CAST( NULL AS SIGNED ) * - + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT CAST ( NULL AS INTEGER ) * - + 40 AS col2
----
NULL

query I rowsort
SELECT 71 + - 19 AS col2
----
52

query I rowsort
SELECT 1 * 93 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL - COUNT( * ) * 92 + + 8
----
-84

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL - COUNT ( * ) * 92 + + 8
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT - 32 + CAST( NULL AS SIGNED ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT - 32 + CAST ( NULL AS INTEGER ) * + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT SUM( + + 30 ) * - 90 + - COUNT( * )
----
-2701

skipif mysql # not compatible
query I rowsort label-4556
SELECT SUM ( + + 30 ) * - 90 + - COUNT ( * )
----
-2701

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT + 54 * - - MAX( + 60 )
----
3240

skipif mysql # not compatible
query I rowsort label-4557
SELECT + 54 * - - MAX ( + 60 )
----
3240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT COUNT( * ) + - COALESCE ( - 21, + 71 + + CAST( NULL AS SIGNED ) )
----
22

skipif mysql # not compatible
query I rowsort label-4558
SELECT COUNT ( * ) + - COALESCE ( - 21, + 71 + + CAST ( NULL AS INTEGER ) )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4559
SELECT CAST( 13 AS SIGNED ) * - - COALESCE ( + ( - 41 ), - - 42 * + 17 * - ( + - 42 ) ) - + 70 * + - COUNT( * ) AS col0
----
-463

skipif mysql # not compatible
query I rowsort label-4559
SELECT CAST ( 13 AS INTEGER ) * - - COALESCE ( + ( - 41 ), - - 42 * + 17 * - ( + - 42 ) ) - + 70 * + - COUNT ( * ) AS col0
----
-463

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT + 73 + COUNT( * ) + - 50 + COUNT( * ) + 44 * - 36 * 71 AS col2
----
-112439

skipif mysql # not compatible
query I rowsort label-4560
SELECT + 73 + COUNT ( * ) + - 50 + COUNT ( * ) + 44 * - 36 * 71 AS col2
----
-112439

query II rowsort
SELECT DISTINCT 77 + - 65 AS col0, 6 AS col2
----
12
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4562
SELECT - 21 DIV ( 38 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4562
SELECT - 21 / ( 38 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4563
SELECT CAST( NULL AS SIGNED ) + + CASE - - 73 WHEN - 7 * + CAST( + + 33 AS SIGNED ) + + - 37 / - 47 THEN NULL ELSE 63 END / 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT CAST ( NULL AS INTEGER ) + + CASE - - 73 WHEN - 7 * + CAST ( + + 33 AS INTEGER ) + + - 37 / - 47 THEN NULL ELSE 63 END / 36
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT DISTINCT - 98 DIV - 61 - 98
----
-97

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT - 98 / - 61 - 98
----
-97

query I rowsort
SELECT DISTINCT + + 17 * - 71
----
-1207

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT + CASE + ( + 12 ) WHEN - + 42 THEN NULL WHEN - - AVG ( DISTINCT + 44 ) * - ( - 46 ) + COUNT( 91 ) THEN + - 37 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT + CASE + ( + 12 ) WHEN - + 42 THEN NULL WHEN - - AVG ( DISTINCT + 44 ) * - ( - 46 ) + COUNT ( 91 ) THEN + - 37 END AS col2
----
NULL

query I rowsort
SELECT 7 + - 73 + + + 66 * 52
----
3366

query II rowsort
SELECT DISTINCT 35 * + + 34 + + + 50 AS col0, 37 - - + 9 * 88
----
1240
829

query I rowsort
SELECT DISTINCT + CASE + 18 WHEN 16 / + 91 THEN NULL WHEN + 55 + + 59 * + + 75 THEN - + 85 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT + MAX( - + ( - NULLIF ( - 14, - 67 ) ) )
----
-14

skipif mysql # not compatible
query I rowsort label-4570
SELECT + MAX ( - + ( - NULLIF ( - 14, - 67 ) ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL + ( - ( + COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL + ( - ( + COUNT ( * ) ) ) AS col0
----
-1

query II rowsort
SELECT DISTINCT + 84 AS col2, - 66
----
84
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4573
SELECT ALL - CAST( NULL AS SIGNED ) * + 50 - + COUNT( * ) * + + 68 * 62 - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL - CAST ( NULL AS INTEGER ) * + 50 - + COUNT ( * ) * + + 68 * 62 - 64
----
NULL

query II rowsort
SELECT + 86, ( + 33 ) AS col0
----
86
33

query I rowsort
SELECT + COALESCE ( - 11, - 36, + - ( - 91 ) ) + - 32 * + 94
----
-3019

query I rowsort
SELECT DISTINCT 68 * + - 81 * + 31
----
-170748

query I rowsort
SELECT - 73 * - 83 AS col2
----
6059

query I rowsort
SELECT ALL 85 * - - 64 * 68
----
369920

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT MIN( - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-4579
SELECT MIN ( - 63 )
----
-63

query II rowsort
SELECT ALL 97, 4 AS col2
----
97
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT COUNT( DISTINCT - + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-4581
SELECT COUNT ( DISTINCT - + 30 )
----
1

query I rowsort
SELECT DISTINCT 90 * 55 * - 14 col1
----
-69300

onlyif mysql # DIV for integer division: 
query I rowsort label-4583
SELECT ALL 55 DIV - 28 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL 55 / - 28 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4584
SELECT - CASE + + MIN( DISTINCT 70 ) WHEN 9 * + - 23 - ( + 38 ) + 0 + + 98 * 24 * CAST( - 93 AS SIGNED ) - - MIN( - - 64 ) THEN NULL WHEN + + 74 THEN ( + + 34 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4584
SELECT - CASE + + MIN ( DISTINCT 70 ) WHEN 9 * + - 23 - ( + 38 ) + 0 + + 98 * 24 * CAST ( - 93 AS INTEGER ) - - MIN ( - - 64 ) THEN NULL WHEN + + 74 THEN ( + + 34 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 19 * 48 AS col1
----
912

query I rowsort
SELECT DISTINCT + NULLIF ( - 12, - 46 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT + - 52 * COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-4587
SELECT + - 52 * COUNT ( * )
----
-52

query I rowsort
SELECT + 83 - ( - 38 ) + + 37 col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL - SUM( ALL - 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL - SUM ( ALL - 7 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4590
SELECT + 10 * - 26 * 70 * + + 37 * - COALESCE ( + + 25, + 82, 20 ) AS col0, SUM( ( ( 59 ) ) ) - - 6 AS col0
----
16835000
65

skipif mysql # not compatible
query II rowsort label-4590
SELECT + 10 * - 26 * 70 * + + 37 * - COALESCE ( + + 25, + 82, 20 ) AS col0, SUM ( ( ( 59 ) ) ) - - 6 AS col0
----
16835000
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4591
SELECT ALL - + COUNT( * ) * - 91 * - 20 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL - + COUNT ( * ) * - 91 * - 20 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4592
SELECT ALL + 5 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL + 5 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4593
SELECT ALL + AVG ( + CAST( NULL AS SIGNED ) ) + + - COUNT( 41 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL + AVG ( + CAST ( NULL AS INTEGER ) ) + + - COUNT ( 41 ) AS col2
----
NULL

query I rowsort
SELECT - + 25 - + 87
----
-112

query II rowsort
SELECT DISTINCT - 16, + 86 AS col2
----
-16
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4596
SELECT - + 75 DIV - + 79 + + + 53, + 34 + - 67 - MIN( DISTINCT - ( 28 ) ) col0
----
53
-5

skipif mysql # not compatible
query II rowsort label-4596
SELECT - + 75 / - + 79 + + + 53, + 34 + - 67 - MIN ( DISTINCT - ( 28 ) ) col0
----
53
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4597
SELECT + CAST( NULL AS SIGNED ) * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4597
SELECT + CAST ( NULL AS INTEGER ) * + 81
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4598
SELECT ALL + MAX( ALL + + 84 ) DIV 25, COUNT( * ) AS col2
----
3
1

skipif mysql # not compatible
query II rowsort label-4598
SELECT ALL + MAX ( ALL + + 84 ) / 25, COUNT ( * ) AS col2
----
3
1

query I rowsort
SELECT - 64 + 73 AS col0
----
9

query II rowsort
SELECT + 10, 63 AS col1
----
10
63

query I rowsort
SELECT - 40 + + - 2 col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL + CASE 17 WHEN + + 4 + + - COALESCE ( + + 93, + ( + 67 ), - 82 + + + 22 ) + - 49 * - 83 + + 78 THEN NULL ELSE COUNT( - 14 ) * - 59 * 50 END * COUNT( * )
----
-2950

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL + CASE 17 WHEN + + 4 + + - COALESCE ( + + 93, + ( + 67 ), - 82 + + + 22 ) + - 49 * - 83 + + 78 THEN NULL ELSE COUNT ( - 14 ) * - 59 * 50 END * COUNT ( * )
----
-2950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4603
SELECT ALL + SUM( + 54 ) DIV 36
----
1

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL + SUM ( + 54 ) / 36
----
1

query I rowsort
SELECT ALL - 98 * + - 86 AS col0
----
8428

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT DISTINCT + ( - COUNT( - 75 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT + ( - COUNT ( - 75 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4606
SELECT - COUNT( * ) DIV + 39 * COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4606
SELECT - COUNT ( * ) / + 39 * COUNT ( * ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT + MIN( 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4607
SELECT + MIN ( 52 ) AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4608
SELECT ALL - CAST( - + 34 AS SIGNED ) * - MIN( DISTINCT - 95 ) AS col0, 87 AS col2
----
3230
87

skipif mysql # not compatible
query II rowsort label-4608
SELECT ALL - CAST ( - + 34 AS INTEGER ) * - MIN ( DISTINCT - 95 ) AS col0, 87 AS col2
----
3230
87

query I rowsort
SELECT - 97 * - + ( - 54 )
----
-5238

query II rowsort
SELECT + 84, - 47 + - 11 AS col0
----
84
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4611
SELECT ALL + CAST( 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL + CAST ( 98 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT - COUNT( * ) * + + 12 * 70 AS col0
----
-840

skipif mysql # not compatible
query I rowsort label-4612
SELECT - COUNT ( * ) * + + 12 * 70 AS col0
----
-840

query II rowsort
SELECT - 92 * - - 48 * - 38 + - 18, ( + + 93 ) AS col1
----
167790
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT + COUNT( * ) - + ( + 26 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4614
SELECT + COUNT ( * ) - + ( + 26 ) AS col0
----
-25

query I rowsort
SELECT ALL + NULLIF ( 98, - 35 + + 14 * - - 75 * - 89 ) col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT - - COUNT( DISTINCT - 32 ) + 78 + - ( - - 79 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4616
SELECT - - COUNT ( DISTINCT - 32 ) + 78 + - ( - - 79 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4617
SELECT ALL + CAST( + 88 AS SIGNED ) * 9 + - + 37 DIV - - 85 AS col2
----
792

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL + CAST ( + 88 AS INTEGER ) * 9 + - + 37 / - - 85 AS col2
----
792

onlyif mysql # DIV for integer division: 
query I rowsort label-4618
SELECT - 58 DIV - ( + 69 )
----
0

skipif mysql # not compatible
query I rowsort label-4618
SELECT - 58 / - ( + 69 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT + COALESCE ( 31, + 62 ) * 48 + - CASE 27 WHEN + CASE - 35 WHEN + 72 THEN + - 82 / - 23 END THEN + - COUNT( * ) + - - 83 - - 0 + + 26 + 4 WHEN - 20 + - 34 THEN NULL WHEN + 64 + - 80 * - 7 + + CASE - - 96 WHEN 11 * + 93 * - COUNT( * ) - - 60 * 90 - - 86 THEN 85 + + COUNT( * ) * + - 78 WHEN + 54 THEN NULL END THEN - MAX( + COALESCE ( + 59, - 76, - 13 ) ) * COUNT( * ) ELSE + 54 END - - - 60 AS col2
----
1374

skipif mysql # not compatible
query I rowsort label-4619
SELECT + COALESCE ( 31, + 62 ) * 48 + - CASE 27 WHEN + CASE - 35 WHEN + 72 THEN + - 82 / - 23 END THEN + - COUNT ( * ) + - - 83 - - 0 + + 26 + 4 WHEN - 20 + - 34 THEN NULL WHEN + 64 + - 80 * - 7 + + CASE - - 96 WHEN 11 * + 93 * - COUNT ( * ) - - 60 * 90 - - 86 THEN 85 + + COUNT ( * ) * + - 78 WHEN + 54 THEN NULL END THEN - MAX ( + COALESCE ( + 59, - 76, - 13 ) ) * COUNT ( * ) ELSE + 54 END - - - 60 AS col2
----
1374

query I rowsort
SELECT ALL - 37 * ( 42 ) + + 57 * - 53 + - 13 + - 31 + 25
----
-4594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT + + NULLIF ( 51, + 50 ) + + CAST( 38 AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4621
SELECT + + NULLIF ( 51, + 50 ) + + CAST ( 38 AS INTEGER ) AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT - - 60 DIV 34 col0
----
1

skipif mysql # not compatible
query I rowsort label-4622
SELECT - - 60 / 34 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4623
SELECT + 30 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT + 30 + + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 42 AS col2, + 29
----
-42
29

query I rowsort
SELECT + 44 + + 64
----
108

query I rowsort
SELECT + 57 + + - 34
----
23

query II rowsort
SELECT - + 2 AS col0, 94 + + 92 * 43 AS col0
----
-2
4050

onlyif mysql # aggregate syntax: 
query II rowsort label-4628
SELECT ALL + COUNT( * ), + ( 21 ) AS col1
----
1
21

skipif mysql # not compatible
query II rowsort label-4628
SELECT ALL + COUNT ( * ), + ( 21 ) AS col1
----
1
21

query I rowsort
SELECT ALL NULLIF ( - - 3, + - 95 ) * + 86 AS col0
----
258

query II rowsort
SELECT ALL - 49 AS col2, - 9 AS col2
----
-49
-9

query II rowsort
SELECT - 43 AS col1, + ( - 8 )
----
-43
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT + 75 * - 80 * + + CASE + + ( - + 29 ) WHEN AVG ( DISTINCT - - 63 ) / - 48 * - - MIN( + - 35 ) * + 65 * + 29 THEN NULL WHEN 16 THEN - 25 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT + 75 * - 80 * + + CASE + + ( - + 29 ) WHEN AVG ( DISTINCT - - 63 ) / - 48 * - - MIN ( + - 35 ) * + 65 * + 29 THEN NULL WHEN 16 THEN - 25 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ( 89 ) * COUNT( * ) + + 45 + - COUNT( * ) + 36 AS col1
----
169

skipif mysql # not compatible
query I rowsort label-4633
SELECT ( 89 ) * COUNT ( * ) + + 45 + - COUNT ( * ) + 36 AS col1
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4634
SELECT DISTINCT CASE + 59 WHEN + SUM( ALL + 37 ) THEN - 2 * + 97 + + 44 ELSE - 16 / + 48 + CAST( NULL AS SIGNED ) END * 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT CASE + 59 WHEN + SUM ( ALL + 37 ) THEN - 2 * + 97 + + 44 ELSE - 16 / + 48 + CAST ( NULL AS INTEGER ) END * 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT COUNT( * ) + - 52 * + + 37
----
-1923

skipif mysql # not compatible
query I rowsort label-4635
SELECT COUNT ( * ) + - 52 * + + 37
----
-1923

query I rowsort
SELECT DISTINCT + 22 * 81 AS col2
----
1782

query I rowsort
SELECT DISTINCT + 13 + - 69 - + 13 + 29 AS col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4638
SELECT DISTINCT 8 DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT 8 / + 18
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4639
SELECT 71 DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT 71 / + 94 AS col2
----
0

query I rowsort
SELECT ALL + 22 * 23
----
506

query I rowsort
SELECT ALL + 68 * - 11 * - 56 AS col2
----
41888

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT 86 + SUM( ALL - 51 )
----
35

skipif mysql # not compatible
query I rowsort label-4642
SELECT 86 + SUM ( ALL - 51 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4643
SELECT ALL - CAST( NULL AS SIGNED ) + - + 66 + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL - CAST ( NULL AS INTEGER ) + - + 66 + + 44
----
NULL

query I rowsort
SELECT DISTINCT + 2 + + + COALESCE ( - 83, + + 64 )
----
-81

query I rowsort
SELECT ALL - - 48 + ( - 74 ) col0
----
-26

query II rowsort
SELECT - ( + 79 ) AS col2, - 37
----
-79
-37

query I rowsort
SELECT DISTINCT - 11 + + - ( 60 ) AS col1
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4648
SELECT ALL + 19 DIV - 48 * - 88 * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL + 19 / - 48 * - 88 * + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT DISTINCT + + 44 * + - ( + COUNT( * ) ) + - ( 58 ) - - 49
----
-53

skipif mysql # not compatible
query I rowsort label-4649
SELECT DISTINCT + + 44 * + - ( + COUNT ( * ) ) + - ( 58 ) - - 49
----
-53

query I rowsort
SELECT ALL - + 81 - - + 1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT + 81 - - COALESCE ( + 53, - 15 * - 56, + - 16 * + + ( - 10 ) ) + + COUNT( * ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-4651
SELECT + 81 - - COALESCE ( + 53, - 15 * - 56, + - 16 * + + ( - 10 ) ) + + COUNT ( * ) AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL - 53 * + - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL - 53 * + - COUNT ( * )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT COUNT( + - CASE 16 WHEN + 46 / - 33 * 78 - 16 THEN 75 WHEN - - ( - + 70 ) THEN NULL ELSE NULL END ) - + 38 + - - COUNT( * ) * 7 * - + 68 * - 63 * + 94
----
2818834

skipif mysql # not compatible
query I rowsort label-4653
SELECT COUNT ( + - CASE 16 WHEN + 46 / - 33 * 78 - 16 THEN 75 WHEN - - ( - + 70 ) THEN NULL ELSE NULL END ) - + 38 + - - COUNT ( * ) * 7 * - + 68 * - 63 * + 94
----
2818834

onlyif mysql # aggregate syntax: 
query II rowsort label-4654
SELECT ALL + ( + 3 ) AS col1, - COUNT( * ) * + 72 + + 31 col0
----
3
-41

skipif mysql # not compatible
query II rowsort label-4654
SELECT ALL + ( + 3 ) AS col1, - COUNT ( * ) * + 72 + + 31 col0
----
3
-41

query I rowsort
SELECT DISTINCT + - 52 * + 74
----
-3848

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL ( + MIN( - 83 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL ( + MIN ( - 83 ) )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4657
SELECT DISTINCT - COALESCE ( - CAST( + - 16 AS SIGNED ), - COUNT( * ) DIV - CAST( NULL AS SIGNED ) )
----
-16

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT - COALESCE ( - CAST ( + - 16 AS INTEGER ), - COUNT ( * ) / - CAST ( NULL AS INTEGER ) )
----
-16

query I rowsort
SELECT 7 * + ( - 5 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT 10 + COALESCE ( - 3, - MIN( DISTINCT + 41 ), - 95 * 1 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4659
SELECT 10 + COALESCE ( - 3, - MIN ( DISTINCT + 41 ), - 95 * 1 ) AS col1
----
7

query II rowsort
SELECT ALL 62 AS col1, 46 + 82
----
62
128

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT DISTINCT 75 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT 75 / 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT 20 + COUNT( * ) col0
----
21

skipif mysql # not compatible
query I rowsort label-4662
SELECT 20 + COUNT ( * ) col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4663
SELECT 78, + CAST( NULL AS SIGNED ) - - - 85 + - 24 + - ( + 76 ) + COUNT( * ) AS col0
----
78
NULL

skipif mysql # not compatible
query II rowsort label-4663
SELECT 78, + CAST ( NULL AS INTEGER ) - - - 85 + - 24 + - ( + 76 ) + COUNT ( * ) AS col0
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT - SUM( ALL - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4664
SELECT - SUM ( ALL - 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT 45 + - 7 * + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-4665
SELECT 45 + - 7 * + COUNT ( * )
----
38

query II rowsort
SELECT ALL - 16 col0, + 26 * 94
----
-16
2444

query II rowsort
SELECT + 29 AS col0, + 10 - - 7
----
29
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL 74 + - COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL 74 + - COUNT ( * ) AS col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4669
SELECT DISTINCT 67 * + + ( 60 ) col0, 29 - - ( COUNT( * ) ) DIV 68
----
4020
29

skipif mysql # not compatible
query II rowsort label-4669
SELECT DISTINCT 67 * + + ( 60 ) col0, 29 - - ( COUNT ( * ) ) / 68
----
4020
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT MIN( ALL + 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4670
SELECT MIN ( ALL + 28 ) AS col0
----
28

query II rowsort
SELECT ALL 2 * 91 * + + 11 col0, - 72 AS col0
----
2002
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT MIN( DISTINCT 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4672
SELECT MIN ( DISTINCT 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4673
SELECT COUNT( * ) col0, 93 DIV + COUNT( * ) AS col0
----
1
93

skipif mysql # not compatible
query II rowsort label-4673
SELECT COUNT ( * ) col0, 93 / + COUNT ( * ) AS col0
----
1
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4674
SELECT ALL 96 + - - 11 * - 26 AS col1, - SUM( ALL - + 65 ) + 82 + 62
----
-190
209

skipif mysql # not compatible
query II rowsort label-4674
SELECT ALL 96 + - - 11 * - 26 AS col1, - SUM ( ALL - + 65 ) + 82 + 62
----
-190
209

onlyif mysql # DIV for integer division: 
query I rowsort label-4675
SELECT 53 * - 51 * + + 68 * - 44 * + - 59 + + 79 - + + 37 DIV 70
----
-477155105

skipif mysql # not compatible
query I rowsort label-4675
SELECT 53 * - 51 * + + 68 * - 44 * + - 59 + + 79 - + + 37 / 70
----
-477155105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT ALL - CAST( - 78 AS SIGNED ) col2
----
78

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL - CAST ( - 78 AS INTEGER ) col2
----
78

query II rowsort
SELECT + - 94 AS col1, 15
----
-94
15

query I rowsort
SELECT ALL 32 + 61
----
93

query I rowsort
SELECT ALL - 9 * + 84
----
-756

query I rowsort
SELECT ALL - - 21 - ( - ( + 38 ) )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT DISTINCT + 82 DIV 54 * 4 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT + 82 / 54 * 4 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4682
SELECT + 99 - - - COUNT( - CASE + 55 WHEN - 76 / - 69 * 53 THEN NULL WHEN - 40 THEN + ( - + CAST( NULL AS SIGNED ) ) * + 6 + + - 74 END )
----
99

skipif mysql # not compatible
query I rowsort label-4682
SELECT + 99 - - - COUNT ( - CASE + 55 WHEN - 76 / - 69 * 53 THEN NULL WHEN - 40 THEN + ( - + CAST ( NULL AS INTEGER ) ) * + 6 + + - 74 END )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4683
SELECT ALL - + COUNT( DISTINCT CAST( + NULLIF ( - + 87, + - 14 ) AS SIGNED ) ) * - + 83 * + 72
----
5976

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL - + COUNT ( DISTINCT CAST ( + NULLIF ( - + 87, + - 14 ) AS INTEGER ) ) * - + 83 * + 72
----
5976

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT COUNT( * ) + + 32
----
33

skipif mysql # not compatible
query I rowsort label-4684
SELECT COUNT ( * ) + + 32
----
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4685
SELECT 50 DIV - + NULLIF ( - 85, 93 + - CAST( + 36 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4685
SELECT 50 / - + NULLIF ( - 85, 93 + - CAST ( + 36 AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT - 79 + - ( - 80 ) + 15 * 10 DIV 95 col2
----
2

skipif mysql # not compatible
query I rowsort label-4686
SELECT - 79 + - ( - 80 ) + 15 * 10 / 95 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT ALL + - ( NULLIF ( 82, - - 40 + - 66 * - + ( + 21 ) * - COUNT( * ) ) ) * 3 * - 43
----
10578

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL + - ( NULLIF ( 82, - - 40 + - 66 * - + ( + 21 ) * - COUNT ( * ) ) ) * 3 * - 43
----
10578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4688
SELECT - 1 * - 74 * + 80 * + - COUNT( ( 5 ) ) * 29 / + NULLIF ( CAST( NULL AS SIGNED ), 29 / + CASE + 70 WHEN - 56 THEN NULL ELSE 37 END - - 57 ) + + - NULLIF ( 75, + 71 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT - 1 * - 74 * + 80 * + - COUNT ( ( 5 ) ) * 29 / + NULLIF ( CAST ( NULL AS INTEGER ), 29 / + CASE + 70 WHEN - 56 THEN NULL ELSE 37 END - - 57 ) + + - NULLIF ( 75, + 71 ) AS col1
----
NULL

query I rowsort
SELECT - 6 + - 35
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT DISTINCT + COUNT( DISTINCT 12 )
----
1

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT + COUNT ( DISTINCT 12 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - + COUNT( * ) + + - ( - COUNT( * ) ) + - + 7 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4691
SELECT - + COUNT ( * ) + + - ( - COUNT ( * ) ) + - + 7 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT - SUM( - ( + 11 ) )
----
11

skipif mysql # not compatible
query I rowsort label-4692
SELECT - SUM ( - ( + 11 ) )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT ALL - 39 * - COALESCE ( - 98, - 63 + + 83 + ( - + CASE COALESCE ( - 15, + + 44, - 98 + + 47 + + 23 + AVG ( - 15 ) + + ( - 80 ) ) WHEN 48 THEN + 37 ELSE - 77 END ) * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * + + 48 + 47 + 4
----
-183405

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL - 39 * - COALESCE ( - 98, - 63 + + 83 + ( - + CASE COALESCE ( - 15, + + 44, - 98 + + 47 + + 23 + AVG ( - 15 ) + + ( - 80 ) ) WHEN 48 THEN + 37 ELSE - 77 END ) * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + + 48 + 47 + 4
----
-183405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT DISTINCT CASE - 11 WHEN + 81 + - COUNT( * ) THEN NULL WHEN - CAST( + + COUNT( * ) AS SIGNED ) THEN NULL WHEN - ( 0 ) THEN - 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT CASE - 11 WHEN + 81 + - COUNT ( * ) THEN NULL WHEN - CAST ( + + COUNT ( * ) AS INTEGER ) THEN NULL WHEN - ( 0 ) THEN - 55 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT DISTINCT + COUNT( * ) + + - 31
----
-30

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT + COUNT ( * ) + + - 31
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-4696
SELECT DISTINCT 4 * 14, + MAX( DISTINCT NULLIF ( + - 64, + 81 ) ) - - COALESCE ( COUNT( * ), + - 77 * ( - 85 ) + NULLIF ( - + 9, + 85 ) ) AS col2
----
56
-63

skipif mysql # not compatible
query II rowsort label-4696
SELECT DISTINCT 4 * 14, + MAX ( DISTINCT NULLIF ( + - 64, + 81 ) ) - - COALESCE ( COUNT ( * ), + - 77 * ( - 85 ) + NULLIF ( - + 9, + 85 ) ) AS col2
----
56
-63

query II rowsort
SELECT DISTINCT 21 + + 58 AS col1, - 33 col2
----
79
-33

query II rowsort
SELECT - 27 * - - 91 AS col2, + 70
----
-2457
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT ALL - COUNT( * ) + + 7 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL - COUNT ( * ) + + 7 AS col1
----
6

query I rowsort
SELECT DISTINCT 97 + + 76 * + 73
----
5645

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4701
SELECT ALL 56 + + MIN( 10 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL 56 + + MIN ( 10 ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT ALL COUNT( * ) + - - 42
----
43

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL COUNT ( * ) + - - 42
----
43

query I rowsort
SELECT - 74 * 27 + 10
----
-1988

onlyif mysql # aggregate syntax: 
query II rowsort label-4704
SELECT DISTINCT COUNT( * ) * + + 30 + - ( + - 6 ) AS col2, ( - + COUNT( - + ( 62 ) ) )
----
36
-1

skipif mysql # not compatible
query II rowsort label-4704
SELECT DISTINCT COUNT ( * ) * + + 30 + - ( + - 6 ) AS col2, ( - + COUNT ( - + ( 62 ) ) )
----
36
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4705
SELECT + 23 DIV + + 57 + - COALESCE ( - 17, + - COUNT( ALL - 19 ) + + 5, + + 4 * 64 + + 31 )
----
17

skipif mysql # not compatible
query I rowsort label-4705
SELECT + 23 / + + 57 + - COALESCE ( - 17, + - COUNT ( ALL - 19 ) + + 5, + + 4 * 64 + + 31 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT COUNT( + 70 ) * + 24 * + COUNT( * ) - - + 20
----
44

skipif mysql # not compatible
query I rowsort label-4706
SELECT COUNT ( + 70 ) * + 24 * + COUNT ( * ) - - + 20
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL 77 * + - 98 + - COALESCE ( + COUNT( * ), + 81 )
----
-7547

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL 77 * + - 98 + - COALESCE ( + COUNT ( * ), + 81 )
----
-7547

query I rowsort
SELECT ALL - 88 * - 61 - - 1 AS col1
----
5369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4709
SELECT ALL + CASE - - 12 WHEN 98 THEN + 50 + 0 WHEN + 76 THEN + 20 END * CAST( NULL AS SIGNED ) * - COUNT( * ) * - 97 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL + CASE - - 12 WHEN 98 THEN + 50 + 0 WHEN + 76 THEN + 20 END * CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - 97 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT + MAX( DISTINCT + + 33 ) / + 13 * + 47 + - CASE - AVG ( ALL - 88 ) WHEN - 54 + + ( + COUNT( * ) ) * + CASE + - COUNT( * ) WHEN - + 52 + - 83 - - SUM( + - 99 ) THEN 41 ELSE NULL END THEN NULLIF ( + 88, + 90 ) END + + 7 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT + MAX ( DISTINCT + + 33 ) / + 13 * + 47 + - CASE - AVG ( ALL - 88 ) WHEN - 54 + + ( + COUNT ( * ) ) * + CASE + - COUNT ( * ) WHEN - + 52 + - 83 - - SUM ( + - 99 ) THEN 41 ELSE NULL END THEN NULLIF ( + 88, + 90 ) END + + 7 col0
----
NULL

query II rowsort
SELECT ( - 65 ), + 21 AS col0
----
-65
21

query I rowsort
SELECT DISTINCT 62 * - 27 + 2 AS col2
----
-1672

query I rowsort
SELECT ALL - + NULLIF ( + 8, + - 34 ) * - + 36 - + 80 - + 56 * 71 AS col1
----
-3768

query I rowsort
SELECT + + 97 * 67 + + 84 + + - 20 * 17 AS col2
----
6243

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT DISTINCT - - 84 * + 56 - - 26 + + 16 DIV - - 28 AS col0
----
4730

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT - - 84 * + 56 - - 26 + + 16 / - - 28 AS col0
----
4730

query II rowsort
SELECT COALESCE ( - 57, - 22 + - 89 ) AS col0, + 38 AS col2
----
-57
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4717
SELECT + - CAST( NULL AS SIGNED ) / + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT + - CAST ( NULL AS INTEGER ) / + 35
----
NULL

query I rowsort
SELECT DISTINCT - + 76 * + - 52 + 29 * + - 96
----
1168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4719
SELECT ALL CASE + ( - 57 ) WHEN + COUNT( * ) THEN - CAST( 86 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL CASE + ( - 57 ) WHEN + COUNT ( * ) THEN - CAST ( 86 AS INTEGER ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - ( 58 ) * - 87 col1
----
5046

query I rowsort
SELECT + - 71 * - 91 * - - 2 AS col2
----
12922

query I rowsort
SELECT - 4 * - 39 AS col1
----
156

query I rowsort
SELECT + 75 - + + 60 AS col1
----
15

query I rowsort
SELECT DISTINCT + 63 + + 14
----
77

query I rowsort
SELECT ALL - 8 + + 6
----
-2

query I rowsort
SELECT ALL NULLIF ( + - 53, + + 9 * + 93 ) col2
----
-53

query I rowsort
SELECT + 33 * - 17 * + + 81
----
-45441

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT + MIN( DISTINCT - + 29 ) + ( + COUNT( * ) )
----
-28

skipif mysql # not compatible
query I rowsort label-4728
SELECT + MIN ( DISTINCT - + 29 ) + ( + COUNT ( * ) )
----
-28

query I rowsort
SELECT ALL - 9 + - + 75
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4730
SELECT 46, 23 + + - MAX( ALL - ( CAST( - 67 AS SIGNED ) ) ) AS col2
----
46
-44

skipif mysql # not compatible
query II rowsort label-4730
SELECT 46, 23 + + - MAX ( ALL - ( CAST ( - 67 AS INTEGER ) ) ) AS col2
----
46
-44

query I rowsort
SELECT DISTINCT - 91 * - + 25
----
2275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4732
SELECT DISTINCT - 18 / - 65 * + 44 / CASE - - 99 WHEN + ( + - CAST( NULL AS SIGNED ) ) THEN - CAST( COUNT( * ) AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT - 18 / - 65 * + 44 / CASE - - 99 WHEN + ( + - CAST ( NULL AS INTEGER ) ) THEN - CAST ( COUNT ( * ) AS REAL ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4733
SELECT DISTINCT CASE + 60 WHEN + 86 + - 26 / + ( + 62 ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END / + + ( - CAST( 36 AS SIGNED ) ) * 56 + + + CAST( - - 90 AS DECIMAL ) - 96 + - 99 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT CASE + 60 WHEN + 86 + - 26 / + ( + 62 ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END / + + ( - CAST ( 36 AS INTEGER ) ) * 56 + + + CAST ( - - 90 AS REAL ) - 96 + - 99 col0
----
NULL

query I rowsort
SELECT DISTINCT + 92 * 11 AS col2
----
1012

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4735
SELECT - + ( - - 94 ) DIV COALESCE ( + - 9, - COUNT( * ) * - - 39 * - COUNT( + - CASE - 8 WHEN 8 THEN - ( - 43 ) + + + 93 WHEN 4 * 25 THEN NULL ELSE + - 0 - 71 END ) ) DIV - 14, + 75 * COALESCE ( COUNT( DISTINCT 97 ), + 17 ) * 48 col2
----
0
3600

skipif mysql # not compatible
query II rowsort label-4735
SELECT - + ( - - 94 ) / COALESCE ( + - 9, - COUNT ( * ) * - - 39 * - COUNT ( + - CASE - 8 WHEN 8 THEN - ( - 43 ) + + + 93 WHEN 4 * 25 THEN NULL ELSE + - 0 - 71 END ) ) / - 14, + 75 * COALESCE ( COUNT ( DISTINCT 97 ), + 17 ) * 48 col2
----
0
3600

query I rowsort
SELECT - - 87 * - 76 AS col0
----
-6612

query I rowsort
SELECT ALL + + 28 col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT + + COALESCE ( + CASE 83 WHEN - ( - + CASE 54 WHEN COUNT( * ) * COUNT( * ) * + COUNT( * ) / 31 THEN 54 / - - 88 / + + ( 0 ) WHEN - - 21 / 25 THEN NULL END ) * + 37 + + 3 THEN NULL WHEN - + 83 * - - ( - + 50 ) * - + 36 + 4 - + + SUM( + - 20 ) + 33 + + COUNT( * ) * NULLIF ( - + 9, + 42 ) * + CASE + COUNT( * ) WHEN + 25 THEN + + ( + 46 ) - - 62 * - 64 * + 48 * 37 WHEN 44 + + 54 * - 89 + + 69 THEN NULL END * NULLIF ( - 61, + 99 + 28 ) THEN NULL ELSE - 40 END, - CAST( 0 AS SIGNED ) * 88 ) * + 93
----
-3720

skipif mysql # not compatible
query I rowsort label-4738
SELECT + + COALESCE ( + CASE 83 WHEN - ( - + CASE 54 WHEN COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) / 31 THEN 54 / - - 88 / + + ( 0 ) WHEN - - 21 / 25 THEN NULL END ) * + 37 + + 3 THEN NULL WHEN - + 83 * - - ( - + 50 ) * - + 36 + 4 - + + SUM ( + - 20 ) + 33 + + COUNT ( * ) * NULLIF ( - + 9, + 42 ) * + CASE + COUNT ( * ) WHEN + 25 THEN + + ( + 46 ) - - 62 * - 64 * + 48 * 37 WHEN 44 + + 54 * - 89 + + 69 THEN NULL END * NULLIF ( - 61, + 99 + 28 ) THEN NULL ELSE - 40 END, - CAST ( 0 AS INTEGER ) * 88 ) * + 93
----
-3720

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT 3 * - MAX( ALL - 13 )
----
39

skipif mysql # not compatible
query I rowsort label-4739
SELECT 3 * - MAX ( ALL - 13 )
----
39

query I rowsort
SELECT - 94 * - 87 + 61
----
8239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT COUNT( * ) - - + NULLIF ( CAST( NULL AS SIGNED ), + 60 ) + - + 60 * + - AVG ( ( + 23 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT COUNT ( * ) - - + NULLIF ( CAST ( NULL AS INTEGER ), + 60 ) + - + 60 * + - AVG ( ( + 23 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4742
SELECT COUNT( * ) * - + COUNT( * ) + - - 60 + - 97 * - 72 * + COALESCE ( + SUM( - 59 ), - 37 + + - 70 + - NULLIF ( - + ( - + 33 ), + 41 * + 35 + 34 * + ( + - 0 ) + + 17 + NULLIF ( - - 68, - + NULLIF ( + 50, + COUNT( DISTINCT + + 36 ) + - 83 DIV + ( - 53 ) * 75 + - - 40 ) ) + 73 ) * 10 * - 98 + 97 + + + 46 DIV + - CAST( 39 AS SIGNED ) ) + 91
----
-411906

skipif mysql # not compatible
query I rowsort label-4742
SELECT COUNT ( * ) * - + COUNT ( * ) + - - 60 + - 97 * - 72 * + COALESCE ( + SUM ( - 59 ), - 37 + + - 70 + - NULLIF ( - + ( - + 33 ), + 41 * + 35 + 34 * + ( + - 0 ) + + 17 + NULLIF ( - - 68, - + NULLIF ( + 50, + COUNT ( DISTINCT + + 36 ) + - 83 / + ( - 53 ) * 75 + - - 40 ) ) + 73 ) * 10 * - 98 + 97 + + + 46 / + - CAST ( 39 AS INTEGER ) ) + 91
----
-411906

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT DISTINCT ( - CASE MIN( - ( - 9 ) ) WHEN 36 THEN NULL WHEN - + 59 THEN NULL ELSE + 71 END ) * 18
----
-1278

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT ( - CASE MIN ( - ( - 9 ) ) WHEN 36 THEN NULL WHEN - + 59 THEN NULL ELSE + 71 END ) * 18
----
-1278

query I rowsort
SELECT 2 - 60 * - 69 + - 70 AS col0
----
4072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4745
SELECT + - COALESCE ( + - COUNT( * ), - - 37 * + ( 1 ) DIV - ( - 54 ) * - 81 + + 46 * + 72 + + COUNT( * ) - + 78 * CASE - 56 WHEN - + 97 + CAST( NULL AS SIGNED ) THEN NULL WHEN + 23 THEN - 30 ELSE 1 + 43 END + 42 ) AS col1, CAST( - 30 AS SIGNED ) * 20 DIV - - 20 + + + 2 - + 48 * + - 17
----
1
788

skipif mysql # not compatible
query II rowsort label-4745
SELECT + - COALESCE ( + - COUNT ( * ), - - 37 * + ( 1 ) / - ( - 54 ) * - 81 + + 46 * + 72 + + COUNT ( * ) - + 78 * CASE - 56 WHEN - + 97 + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 23 THEN - 30 ELSE 1 + 43 END + 42 ) AS col1, CAST ( - 30 AS INTEGER ) * 20 / - - 20 + + + 2 - + 48 * + - 17
----
1
788

query I rowsort
SELECT - 87 * - + 39 * 71 + 40 AS col1
----
240943

query I rowsort
SELECT 51 + + - 40
----
11

query I rowsort
SELECT + 91 * 72 + + + 4
----
6556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4749
SELECT ALL 80 + - 96 - + 31 + 96 + - + 73 - + CASE - CAST( NULL AS SIGNED ) WHEN - 20 THEN NULL ELSE + - 7 - - - COUNT( * ) END * 51 - - 72 AS col1
----
456

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL 80 + - 96 - + 31 + 96 + - + 73 - + CASE - CAST ( NULL AS INTEGER ) WHEN - 20 THEN NULL ELSE + - 7 - - - COUNT ( * ) END * 51 - - 72 AS col1
----
456

query I rowsort
SELECT 28 + - 10 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT ALL 46 + - NULLIF ( - 10, - + 9 + + COUNT( * ) ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL 46 + - NULLIF ( - 10, - + 9 + + COUNT ( * ) ) AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4752
SELECT 55 + - - CASE + - 31 WHEN - 7 + 40 THEN NULL WHEN - 77 * - CASE + 65 WHEN 18 THEN + COUNT( * ) + 15 ELSE - + NULLIF ( - - 18, + CAST( - 2 AS DECIMAL ) + 72 ) - + - 46 + + 11 END * - - COUNT( * ) + - AVG ( + 69 ) / + 56 * - 95 THEN NULL ELSE - 38 END
----
17

skipif mysql # not compatible
query I rowsort label-4752
SELECT 55 + - - CASE + - 31 WHEN - 7 + 40 THEN NULL WHEN - 77 * - CASE + 65 WHEN 18 THEN + COUNT ( * ) + 15 ELSE - + NULLIF ( - - 18, + CAST ( - 2 AS REAL ) + 72 ) - + - 46 + + 11 END * - - COUNT ( * ) + - AVG ( + 69 ) / + 56 * - 95 THEN NULL ELSE - 38 END
----
17

query I rowsort
SELECT ALL - 40 + + 13 - - - 37 * - 90 * - 3 col1
----
-10017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4754
SELECT ALL 15 AS col0, CAST( NULL AS SIGNED ) * + 42 + - 36 + + 66 - 10 + + - ( - 31 ) + + + COUNT( * ) + - - 58 + + NULLIF ( + + COUNT( * ), MIN( - ( 14 ) ) )
----
15
NULL

skipif mysql # not compatible
query II rowsort label-4754
SELECT ALL 15 AS col0, CAST ( NULL AS INTEGER ) * + 42 + - 36 + + 66 - 10 + + - ( - 31 ) + + + COUNT ( * ) + - - 58 + + NULLIF ( + + COUNT ( * ), MIN ( - ( 14 ) ) )
----
15
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4755
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) * + - 61 * + 29 * - + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) * + - 61 * + 29 * - + 91 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT DISTINCT 45 + + + 21 + - 83 + - CAST( - 99 AS SIGNED ) + + - 41 + 5 * + 68
----
381

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT 45 + + + 21 + - 83 + - CAST ( - 99 AS INTEGER ) + + - 41 + 5 * + 68
----
381

onlyif mysql # DIV for integer division: 
query II rowsort label-4757
SELECT - 25 AS col1, + 80 DIV + ( 78 ) - 59
----
-25
-58

skipif mysql # not compatible
query II rowsort label-4757
SELECT - 25 AS col1, + 80 / + ( 78 ) - 59
----
-25
-58

query I rowsort
SELECT ( + 1 ) * + 74
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT SUM( DISTINCT + 54 ) + - 42 + + + 53 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4759
SELECT SUM ( DISTINCT + 54 ) + - 42 + + + 53 AS col2
----
65

query I rowsort
SELECT DISTINCT 85 - + 15 - + 79 + + + ( 58 )
----
49

query I rowsort
SELECT 86 + + 39
----
125

query I rowsort
SELECT 70 - + + 46 + 0 AS col0
----
24

query I rowsort
SELECT 11 + 30 AS col1
----
41

query I rowsort
SELECT 25 * - + ( + 77 ) AS col1
----
-1925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4765
SELECT 17 DIV - MAX( ALL + 64 ) + + + 21
----
21

skipif mysql # not compatible
query I rowsort label-4765
SELECT 17 / - MAX ( ALL + 64 ) + + + 21
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4766
SELECT ALL + - NULLIF ( 59, + - 16 * + - 45 + - - CAST( NULL AS SIGNED ) ) * - 56
----
3304

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL + - NULLIF ( 59, + - 16 * + - 45 + - - CAST ( NULL AS INTEGER ) ) * - 56
----
3304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4767
SELECT ( + + 41 ) + + 80 - COUNT( * ) DIV 27 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-4767
SELECT ( + + 41 ) + + 80 - COUNT ( * ) / 27 AS col0
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-4768
SELECT + COUNT( * ) AS col1, 81 + + 48 AS col2
----
1
129

skipif mysql # not compatible
query II rowsort label-4768
SELECT + COUNT ( * ) AS col1, 81 + + 48 AS col2
----
1
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL - - SUM( 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL - - SUM ( 6 ) AS col2
----
6

query I rowsort
SELECT ALL + + 43 + - 23
----
20

query I rowsort
SELECT 27 * - 41 AS col1
----
-1107

query I rowsort
SELECT - + 93 * + 10 + - 29
----
-959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4773
SELECT 63 + + + 14 * + COUNT( * ) * + + ( - 1 ) - 78 + 91 * 38 - 93 * - + 72 - - + 19 + + CAST( + ( - 72 ) AS SIGNED ) + + 40 * - COUNT( * ) * 24
----
9112

skipif mysql # not compatible
query I rowsort label-4773
SELECT 63 + + + 14 * + COUNT ( * ) * + + ( - 1 ) - 78 + 91 * 38 - 93 * - + 72 - - + 19 + + CAST ( + ( - 72 ) AS INTEGER ) + + 40 * - COUNT ( * ) * 24
----
9112

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT DISTINCT - - 69 col2, 35 * + COUNT( * )
----
69
35

skipif mysql # not compatible
query II rowsort label-4774
SELECT DISTINCT - - 69 col2, 35 * + COUNT ( * )
----
69
35

query II rowsort
SELECT 38, - 14 col0
----
38
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4776
SELECT 81, COUNT( ALL - + 86 ) AS col2
----
81
1

skipif mysql # not compatible
query II rowsort label-4776
SELECT 81, COUNT ( ALL - + 86 ) AS col2
----
81
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4777
SELECT ALL - 82 + 12 * 89 + COALESCE ( - 59, + NULLIF ( - 39, - CAST( NULL AS SIGNED ) + - 42 + - - 42 ) DIV 28 * + COUNT( * ), ( 55 ) + ( - - 43 ) * - CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
927

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL - 82 + 12 * 89 + COALESCE ( - 59, + NULLIF ( - 39, - CAST ( NULL AS INTEGER ) + - 42 + - - 42 ) / 28 * + COUNT ( * ), ( 55 ) + ( - - 43 ) * - CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
927

query II rowsort
SELECT DISTINCT - + 35, 42 AS col0
----
-35
42

query I rowsort
SELECT ALL 40 + 22 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT DISTINCT COUNT( ALL + 79 )
----
1

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT COUNT ( ALL + 79 )
----
1

query I rowsort
SELECT ALL - 81 + + 72 AS col1
----
-9

query I rowsort
SELECT 35 - - 8
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT CASE + - 99 WHEN + - 89 THEN + + COUNT( * ) / + - 68 ELSE NULL END * + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT CASE + - 99 WHEN + - 89 THEN + + COUNT ( * ) / + - 68 ELSE NULL END * + - 2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT + 74 * + 76 + - 90 * - ( - 89 ) * + 60 * 74 - - 64 + 48 DIV 44
----
-35558711

skipif mysql # not compatible
query I rowsort label-4784
SELECT + 74 * + 76 + - 90 * - ( - 89 ) * + 60 * 74 - - 64 + 48 / 44
----
-35558711

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT - COUNT( ALL - 72 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4785
SELECT - COUNT ( ALL - 72 ) AS col1
----
-1

query II rowsort
SELECT DISTINCT - 64 - NULLIF ( 18, + AVG ( ALL - 18 ) ) AS col0, 1 AS col2
----
-82
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL 44 - - + COUNT( * ) + - - ( - 2 ) - - 22 * + 34 col1
----
791

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL 44 - - + COUNT ( * ) + - - ( - 2 ) - - 22 * + 34 col1
----
791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4788
SELECT ALL NULLIF ( + COUNT( * ), - ( + 96 ) + - 42 ) * - 53 * - ( COUNT( ALL + CAST( 31 AS SIGNED ) ) ) * - 76 AS col0
----
-4028

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL NULLIF ( + COUNT ( * ), - ( + 96 ) + - 42 ) * - 53 * - ( COUNT ( ALL + CAST ( 31 AS INTEGER ) ) ) * - 76 AS col0
----
-4028

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT CAST( 72 AS SIGNED ) * + 55 + 51 * + 84 * - + 37 AS col0
----
-154548

skipif mysql # not compatible
query I rowsort label-4789
SELECT CAST ( 72 AS INTEGER ) * + 55 + 51 * + 84 * - + 37 AS col0
----
-154548

query I rowsort
SELECT 70 + ( - - 21 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT NULLIF ( - 38, - 62 * 16 ) + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-4791
SELECT NULLIF ( - 38, - 62 * 16 ) + COUNT ( * )
----
-37

query I rowsort
SELECT - 2 * + + 75 AS col0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT + - COUNT( + - 83 ) * + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4793
SELECT + - COUNT ( + - 83 ) * + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL + 74 * + 97 * + + NULLIF ( + MAX( - 55 ), + 72 ) * - ( - + 62 ) AS col0
----
-24476980

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL + 74 * + 97 * + + NULLIF ( + MAX ( - 55 ), + 72 ) * - ( - + 62 ) AS col0
----
-24476980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4795
SELECT - ( - + MIN( DISTINCT - CAST( - 74 AS SIGNED ) ) ) col1
----
74

skipif mysql # not compatible
query I rowsort label-4795
SELECT - ( - + MIN ( DISTINCT - CAST ( - 74 AS INTEGER ) ) ) col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT DISTINCT + + MIN( 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT + + MIN ( 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4797
SELECT + - 35 + 38 AS col0, - COUNT( * ) AS col0
----
3
-1

skipif mysql # not compatible
query II rowsort label-4797
SELECT + - 35 + 38 AS col0, - COUNT ( * ) AS col0
----
3
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4798
SELECT + 95 * + - NULLIF ( - - 61, - - COUNT( * ) ) + - + ( - COUNT( * ) ) + - - 85 - - 97 * - 83 + + ( - 73 ) - + 73 DIV - 47 + - COALESCE ( + + 81, + 63, SUM( + - 82 ) * 10 + - COUNT( * ) ) + - 61 AS col2
----
-13974

skipif mysql # not compatible
query I rowsort label-4798
SELECT + 95 * + - NULLIF ( - - 61, - - COUNT ( * ) ) + - + ( - COUNT ( * ) ) + - - 85 - - 97 * - 83 + + ( - 73 ) - + 73 / - 47 + - COALESCE ( + + 81, + 63, SUM ( + - 82 ) * 10 + - COUNT ( * ) ) + - 61 AS col2
----
-13974

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT MIN( ALL 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4799
SELECT MIN ( ALL 32 ) AS col2
----
32

query I rowsort
SELECT + - COALESCE ( + 67, + 5 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4801
SELECT + + 67 - - 71 col1, 17 * - COUNT( * )
----
138
-17

skipif mysql # not compatible
query II rowsort label-4801
SELECT + + 67 - - 71 col1, 17 * - COUNT ( * )
----
138
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT - - 2 * - COUNT( * ) + - - ( - 36 ) + - + COALESCE ( ( - 70 ), - - 7 ) + 11 + - + 68 * + 64 - - - COUNT( * )
----
-4310

skipif mysql # not compatible
query I rowsort label-4802
SELECT - - 2 * - COUNT ( * ) + - - ( - 36 ) + - + COALESCE ( ( - 70 ), - - 7 ) + 11 + - + 68 * + 64 - - - COUNT ( * )
----
-4310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4803
SELECT ALL - 53 * COALESCE ( - - 48, + 73, - 21 * - NULLIF ( - 2, + 62 ) * COUNT( * ) + COUNT( * ) + + + MAX( - 63 ) DIV 63, COUNT( * ) + + 88 ) DIV + + 95
----
-26

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL - 53 * COALESCE ( - - 48, + 73, - 21 * - NULLIF ( - 2, + 62 ) * COUNT ( * ) + COUNT ( * ) + + + MAX ( - 63 ) / 63, COUNT ( * ) + + 88 ) / + + 95
----
-26

query I rowsort
SELECT DISTINCT + + 24 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT - + ( COUNT( * ) ) * 14 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4805
SELECT - + ( COUNT ( * ) ) * 14 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT - 46 * - COALESCE ( - 80, 28, - 34 * + 90 * - 1 ) + COUNT( * ) + + 12
----
-3667

skipif mysql # not compatible
query I rowsort label-4806
SELECT - 46 * - COALESCE ( - 80, 28, - 34 * + 90 * - 1 ) + COUNT ( * ) + + 12
----
-3667

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT - COUNT( * ) - + 4 * + 20
----
-81

skipif mysql # not compatible
query I rowsort label-4807
SELECT - COUNT ( * ) - + 4 * + 20
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT COUNT( * ) * + - CASE - 90 WHEN + + 28 + 18 THEN + + 58 * - 69 + ( - 17 ) ELSE NULL END + + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT COUNT ( * ) * + - CASE - 90 WHEN + + 28 + 18 THEN + + 58 * - 69 + ( - 17 ) ELSE NULL END + + 7 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4809
SELECT - 98 - + 64 - + NULLIF ( COUNT( * ), + - CAST( + - 0 AS DECIMAL ) ) AS col1
----
-163

skipif mysql # not compatible
query I rowsort label-4809
SELECT - 98 - + 64 - + NULLIF ( COUNT ( * ), + - CAST ( + - 0 AS REAL ) ) AS col1
----
-163

query I rowsort
SELECT - 10 * - 63 AS col0
----
630

onlyif mysql # aggregate syntax: 
query II rowsort label-4811
SELECT COUNT( * ) col2, + 73
----
1
73

skipif mysql # not compatible
query II rowsort label-4811
SELECT COUNT ( * ) col2, + 73
----
1
73

query I rowsort
SELECT DISTINCT ( - - 51 )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT ALL - 50 DIV + 14 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL - 50 / + 14 AS col2
----
-3

query I rowsort
SELECT ALL NULLIF ( ( - 35 ), 44 ) AS col0
----
-35

query II rowsort
SELECT - ( - 93 ) + - 48, + 94 AS col1
----
45
94

query II rowsort
SELECT ALL 78 AS col0, - 30 AS col0
----
78
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT DISTINCT CASE + 32 WHEN + + 94 THEN - + 98 * - 8 + - - COUNT( * ) WHEN - + 29 + + + COUNT( * ) + COUNT( * ) * 60 THEN NULL END * - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT CASE + 32 WHEN + + 94 THEN - + 98 * - 8 + - - COUNT ( * ) WHEN - + 29 + + + COUNT ( * ) + COUNT ( * ) * 60 THEN NULL END * - 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4818
SELECT - 87 AS col1, - MAX( ALL - 68 )
----
-87
68

skipif mysql # not compatible
query II rowsort label-4818
SELECT - 87 AS col1, - MAX ( ALL - 68 )
----
-87
68

query I rowsort
SELECT + 8 * + ( COALESCE ( 66, - + 77, + + 73 ) )
----
528

query II rowsort
SELECT - ( + - 50 ) + + 66, - ( 20 ) AS col2
----
116
-20

query I rowsort
SELECT + 61 + + 5 * - + 98 * - 67
----
32891

onlyif mysql # aggregate syntax: 
query II rowsort label-4822
SELECT ALL - 98 AS col2, + ( - COUNT( * ) ) AS col2
----
-98
-1

skipif mysql # not compatible
query II rowsort label-4822
SELECT ALL - 98 AS col2, + ( - COUNT ( * ) ) AS col2
----
-98
-1

query I rowsort
SELECT + 13 + - 28
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4824
SELECT ALL - ( 89 ) + - 92 AS col1, CAST( COUNT( * ) AS SIGNED ) * 36 + + COUNT( 51 ) AS col2
----
-181
37

skipif mysql # not compatible
query II rowsort label-4824
SELECT ALL - ( 89 ) + - 92 AS col1, CAST ( COUNT ( * ) AS INTEGER ) * 36 + + COUNT ( 51 ) AS col2
----
-181
37

query II rowsort
SELECT 74, 54 AS col2
----
74
54

query I rowsort
SELECT - 71 - - 47 + + 6 * - 29
----
-198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4827
SELECT CASE CAST( NULL AS SIGNED ) WHEN 26 + - 62 - - 41 THEN NULL WHEN + + NULLIF ( - + 19, + - ( + 97 ) + + ( - 85 ) + COUNT( - 36 ) * 62 ) * - ( CASE 29 WHEN - + 73 THEN NULL WHEN - 46 THEN COUNT( * ) ELSE NULL END ) THEN NULL ELSE CAST( + - 10 AS SIGNED ) END
----
-10

skipif mysql # not compatible
query I rowsort label-4827
SELECT CASE CAST ( NULL AS INTEGER ) WHEN 26 + - 62 - - 41 THEN NULL WHEN + + NULLIF ( - + 19, + - ( + 97 ) + + ( - 85 ) + COUNT ( - 36 ) * 62 ) * - ( CASE 29 WHEN - + 73 THEN NULL WHEN - 46 THEN COUNT ( * ) ELSE NULL END ) THEN NULL ELSE CAST ( + - 10 AS INTEGER ) END
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT + + 87 DIV - - 63
----
1

skipif mysql # not compatible
query I rowsort label-4828
SELECT + + 87 / - - 63
----
1

query I rowsort
SELECT DISTINCT 28 * - + 81 AS col0
----
-2268

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT MIN( + - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-4830
SELECT MIN ( + - 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT + COUNT( * ) + + 70 - + MAX( ALL 1 )
----
70

skipif mysql # not compatible
query I rowsort label-4831
SELECT + COUNT ( * ) + + 70 - + MAX ( ALL 1 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT ALL + - CASE + + 17 WHEN - + 66 THEN - 39 WHEN - 21 THEN NULL ELSE NULL END / - 34 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL + - CASE + + 17 WHEN - + 66 THEN - 39 WHEN - 21 THEN NULL ELSE NULL END / - 34 + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT ALL + - 90 col0, 73
----
-90
73

query I rowsort
SELECT ALL + - ( 67 )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT + + ( - 25 ) * COALESCE ( + 99, + - CAST( NULL AS SIGNED ) * + + 88 + ( + - 12 ) * 60 ) AS col0
----
-2475

skipif mysql # not compatible
query I rowsort label-4835
SELECT + + ( - 25 ) * COALESCE ( + 99, + - CAST ( NULL AS INTEGER ) * + + 88 + ( + - 12 ) * 60 ) AS col0
----
-2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4836
SELECT - 75 + + - COUNT( + - CAST( NULL AS SIGNED ) )
----
-75

skipif mysql # not compatible
query I rowsort label-4836
SELECT - 75 + + - COUNT ( + - CAST ( NULL AS INTEGER ) )
----
-75

query I rowsort
SELECT + 86 * 33
----
2838

query I rowsort
SELECT - 92 * NULLIF ( - 61, + 32 ) AS col2
----
5612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4839
SELECT NULLIF ( + - 50, - 5 * - COALESCE ( ( - - 60 ), 34, - + 41 ) + 15 * - CAST( NULL AS SIGNED ) * NULLIF ( + 57, - 4 ) * 6 - + NULLIF ( - 97, - + 12 ) * + 60 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-4839
SELECT NULLIF ( + - 50, - 5 * - COALESCE ( ( - - 60 ), 34, - + 41 ) + 15 * - CAST ( NULL AS INTEGER ) * NULLIF ( + 57, - 4 ) * 6 - + NULLIF ( - 97, - + 12 ) * + 60 ) AS col2
----
-50

query I rowsort
SELECT ALL - 46 * - + 99 * + 39
----
177606

query I rowsort
SELECT - 56 * + 55
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT + 3 - - NULLIF ( COUNT( - 55 ), 7 )
----
4

skipif mysql # not compatible
query I rowsort label-4842
SELECT + 3 - - NULLIF ( COUNT ( - 55 ), 7 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4843
SELECT CAST( - CAST( 32 AS SIGNED ) AS SIGNED ) + - 13 * - 12 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-4843
SELECT CAST ( - CAST ( 32 AS INTEGER ) AS INTEGER ) + - 13 * - 12 AS col1
----
124

query I rowsort
SELECT 86 * - 84
----
-7224

query I rowsort
SELECT DISTINCT + 74 + - 92
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT 31 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4846
SELECT 31 / - 74 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4847
SELECT ALL + AVG ( DISTINCT 1 ) + + 81 + COUNT( DISTINCT + 36 ) * 0 * + - COUNT( * ) / + - CASE - + ( 86 ) WHEN - 78 / - CASE WHEN - NULLIF ( 64, - - 95 ) IN ( + - 66 * + 62, 85 * - 94 * - NULLIF ( - MIN( - 9 ), - 14 ), - + 34 / - 14 * NULLIF ( - 48, + 13 + + - 82 ) / 25 * + 65 + - ( 7 ) / - - COUNT( * ) * + - MIN( + - 20 ) + MAX( CAST( + + 3 AS DECIMAL ) ) * - CASE - ( - 25 ) WHEN 65 THEN NULL WHEN - 3 THEN NULL ELSE MAX( - - 6 ) END + + - 76 + 89 * + AVG ( - 76 ) ) THEN - 6 * 5 ELSE NULL END * 30 THEN - 0 + 4 WHEN 82 * + 55 THEN 22 + 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL + AVG ( DISTINCT 1 ) + + 81 + COUNT ( DISTINCT + 36 ) * 0 * + - COUNT ( * ) / + - CASE - + ( 86 ) WHEN - 78 / - CASE WHEN - NULLIF ( 64, - - 95 ) IN ( + - 66 * + 62, 85 * - 94 * - NULLIF ( - MIN ( - 9 ), - 14 ), - + 34 / - 14 * NULLIF ( - 48, + 13 + + - 82 ) / 25 * + 65 + - ( 7 ) / - - COUNT ( * ) * + - MIN ( + - 20 ) + MAX ( CAST ( + + 3 AS REAL ) ) * - CASE - ( - 25 ) WHEN 65 THEN NULL WHEN - 3 THEN NULL ELSE MAX ( - - 6 ) END + + - 76 + 89 * + AVG ( - 76 ) ) THEN - 6 * 5 ELSE NULL END * 30 THEN - 0 + 4 WHEN 82 * + 55 THEN 22 + 74 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4848
SELECT 5 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT 5 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4849
SELECT DISTINCT - 29 + - - SUM( ALL + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT - 29 + - - SUM ( ALL + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT - 2 + + + 71 AS col0
----
69

query I rowsort
SELECT 33 * + 14 AS col1
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT + MAX( DISTINCT - 51 ) + - - COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4852
SELECT + MAX ( DISTINCT - 51 ) + - - COUNT ( * ) AS col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4853
SELECT - - CAST( 48 AS SIGNED ) AS col1, + ( 75 ) AS col0
----
48
75

skipif mysql # not compatible
query II rowsort label-4853
SELECT - - CAST ( 48 AS INTEGER ) AS col1, + ( 75 ) AS col0
----
48
75

query I rowsort
SELECT + 38 - + - 55 AS col0
----
93

query I rowsort
SELECT ALL - - 23 + - + 31 AS col0
----
-8

query I rowsort
SELECT ALL - + ( 67 ) * - 33
----
2211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4857
SELECT DISTINCT - - CAST( + + 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT - - CAST ( + + 77 AS INTEGER )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT - ( - + SUM( 60 ) ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4858
SELECT - ( - + SUM ( 60 ) ) AS col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4859
SELECT ALL - COALESCE ( + - 53, - - COUNT( * ), + - 71 * + - 55 DIV - 51 )
----
53

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL - COALESCE ( + - 53, - - COUNT ( * ), + - 71 * + - 55 / - 51 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4860
SELECT CAST( NULL AS SIGNED ) * + 17 AS col2, 80 * + 29 AS col2
----
NULL
2320

skipif mysql # not compatible
query II rowsort label-4860
SELECT CAST ( NULL AS INTEGER ) * + 17 AS col2, 80 * + 29 AS col2
----
NULL
2320

query I rowsort
SELECT 15 * + 79 + + 55 + - + ( - 84 ) + - - 54 / 7 / + 85 * - 82 + + CASE + - 14 WHEN + + 85 THEN 89 ELSE NULL END * - 79 + + 57 + - + 15 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4862
SELECT DISTINCT 19 DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT 19 / 44
----
0

query I rowsort
SELECT 20 + - - 2 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL 81 * - - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL 81 * - - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4865
SELECT CASE - - 59 WHEN - 56 / - ( + COUNT( * ) ) + + 29 + + 81 + - - 13 THEN NULL ELSE 72 * + 21 END * + 4 + + 82 + - 13 * - - 26 * + 57 AS col2, + 59
----
-13136
59

skipif mysql # not compatible
query II rowsort label-4865
SELECT CASE - - 59 WHEN - 56 / - ( + COUNT ( * ) ) + + 29 + + 81 + - - 13 THEN NULL ELSE 72 * + 21 END * + 4 + + 82 + - 13 * - - 26 * + 57 AS col2, + 59
----
-13136
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4866
SELECT ALL 45 * + - NULLIF ( COUNT( + + 21 ), COUNT( * ) / + COUNT( * ) * - 28 / CAST( NULL AS SIGNED ) / - 44 + - - 35 + + 44 )
----
-45

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL 45 * + - NULLIF ( COUNT ( + + 21 ), COUNT ( * ) / + COUNT ( * ) * - 28 / CAST ( NULL AS INTEGER ) / - 44 + - - 35 + + 44 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT + 99 * - COUNT( * ) + - - 85 * + + 57
----
4746

skipif mysql # not compatible
query I rowsort label-4867
SELECT + 99 * - COUNT ( * ) + - - 85 * + + 57
----
4746

query I rowsort
SELECT 87 * 1 * - COALESCE ( ( - + 18 ), - 75 ) + + 92
----
1658

query I rowsort
SELECT DISTINCT 8 + + - 56 AS col1
----
-48

query I rowsort
SELECT ALL 37 + 26
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT DISTINCT 72 + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT 72 + COUNT ( * )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT DISTINCT - CAST( 6 AS SIGNED ) * + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - CAST ( 6 AS INTEGER ) * + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4873
SELECT ALL COUNT( * ) + - COALESCE ( COUNT( - + 48 ), - + 39 DIV 85, + 63 )
----
0

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL COUNT ( * ) + - COALESCE ( COUNT ( - + 48 ), - + 39 / 85, + 63 )
----
0

query I rowsort
SELECT NULLIF ( 57, 90 ) + 22
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4875
SELECT COALESCE ( - CAST( NULL AS SIGNED ), 18 ) DIV + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4875
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), 18 ) / + COUNT ( * ) AS col2
----
18

query I rowsort
SELECT 49 + 22 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT - MAX( DISTINCT 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4877
SELECT - MAX ( DISTINCT 40 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL - NULLIF ( + 72, + COUNT( + 87 ) ) + + 89 * 24
----
2064

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL - NULLIF ( + 72, + COUNT ( + 87 ) ) + + 89 * 24
----
2064

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL 65 * + ( ( - COUNT( * ) ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL 65 * + ( ( - COUNT ( * ) ) ) AS col2
----
-65

query I rowsort
SELECT 36 + + ( 67 ) * + 13
----
907

onlyif mysql # DIV for integer division: 
query I rowsort label-4881
SELECT 39 DIV 20 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4881
SELECT 39 / 20 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4882
SELECT ALL + 53 DIV - 10
----
-5

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL + 53 / - 10
----
-5

query I rowsort
SELECT 46 + + 4
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT 49 * MAX( 71 )
----
3479

skipif mysql # not compatible
query I rowsort label-4884
SELECT 49 * MAX ( 71 )
----
3479

query I rowsort
SELECT 55 + - 30
----
25

query I rowsort
SELECT ALL - 81 * 51
----
-4131

query I rowsort
SELECT 74 * - 56
----
-4144

query I rowsort
SELECT ALL - 90 * 8 AS col0
----
-720

query I rowsort
SELECT 64 * 27
----
1728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4890
SELECT ALL + 91 * - ( + MAX( CAST( 13 AS SIGNED ) ) )
----
-1183

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL + 91 * - ( + MAX ( CAST ( 13 AS INTEGER ) ) )
----
-1183

query I rowsort
SELECT DISTINCT + 73 * 93 col1
----
6789

query I rowsort
SELECT ALL - NULLIF ( + 79, + 8 )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4893
SELECT ALL COUNT( * ) DIV 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL COUNT ( * ) / 45 AS col2
----
0

query I rowsort
SELECT DISTINCT - ( 12 ) AS col0
----
-12

query I rowsort
SELECT 19 * 64 + 61 AS col0
----
1277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4896
SELECT ALL MAX( ( CAST( NULL AS SIGNED ) ) ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL MAX ( ( CAST ( NULL AS INTEGER ) ) ) / - COUNT ( * )
----
NULL

query I rowsort
SELECT + 85 + + ( 89 )
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ALL + 29 + ( COUNT( * ) ) * 91 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL + 29 + ( COUNT ( * ) ) * 91 AS col1
----
120

query I rowsort
SELECT + 26 * + 57 AS col1
----
1482

query I rowsort
SELECT ALL 31 + + 57
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT + 2 DIV 53 col1
----
0

skipif mysql # not compatible
query I rowsort label-4901
SELECT + 2 / 53 col1
----
0

query I rowsort
SELECT + 95 * - 93 col0
----
-8835

query I rowsort
SELECT + 37 + 78
----
115

query I rowsort
SELECT - + 94 + + 10 AS col1
----
-84

query I rowsort
SELECT - - 36 * + 93 AS col1
----
3348

query I rowsort
SELECT + - 25 * + 53 AS col2
----
-1325

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL - MAX( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL - MAX ( + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT DISTINCT SUM( - 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT SUM ( - 40 ) AS col2
----
-40

query I rowsort
SELECT DISTINCT + 81 * 62 AS col0
----
5022

query I rowsort
SELECT + - 75 + ( - ( + 77 ) ) * 44 AS col1
----
-3463

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT ALL - 70 - + 77 DIV + 2 AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL - 70 - + 77 / + 2 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT DISTINCT - SUM( 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT - SUM ( 5 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT DISTINCT + - 56 * - CASE - 44 WHEN + CASE - NULLIF ( + COUNT( * ), 70 ) WHEN - 91 THEN NULL WHEN - 42 THEN - COUNT( * ) END THEN 37 + + 94 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT + - 56 * - CASE - 44 WHEN + CASE - NULLIF ( + COUNT ( * ), 70 ) WHEN - 91 THEN NULL WHEN - 42 THEN - COUNT ( * ) END THEN 37 + + 94 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4914
SELECT + COUNT( * ) + + 37 DIV + COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-4914
SELECT + COUNT ( * ) + + 37 / + COUNT ( * ) AS col0
----
38

query I rowsort
SELECT + + 98 * - 45 AS col0
----
-4410

onlyif mysql # DIV for integer division: 
query I rowsort label-4916
SELECT DISTINCT COALESCE ( 49, + 78 + - ( 37 + + ( 25 + + 16 ) ) DIV 41 )
----
49

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT COALESCE ( 49, + 78 + - ( 37 + + ( 25 + + 16 ) ) / 41 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4917
SELECT + + 49 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-4917
SELECT + + 49 / 82
----
0

query I rowsort
SELECT - - 74 + 46 AS col2
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4919
SELECT DISTINCT - COALESCE ( - - 23, 42 * - 31 - COUNT( * ) DIV 65, 82 DIV 26 - 38 ) DIV ( + 12 - 73 )
----
0

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT - COALESCE ( - - 23, 42 * - 31 - COUNT ( * ) / 65, 82 / 26 - 38 ) / ( + 12 - 73 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4920
SELECT ALL - 32 DIV + - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL - 32 / + - 99 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4921
SELECT - 16 DIV - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4921
SELECT - 16 / - 92 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4922
SELECT ALL - COUNT( * ) DIV - 29 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL - COUNT ( * ) / - 29 + COUNT ( * )
----
1

query I rowsort
SELECT - 33 - + + 90 AS col0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT - ( + COALESCE ( + 40, 30 - - COUNT( * ), - 55 * + 77 ) ) * 14
----
-560

skipif mysql # not compatible
query I rowsort label-4924
SELECT - ( + COALESCE ( + 40, 30 - - COUNT ( * ), - 55 * + 77 ) ) * 14
----
-560

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4925
SELECT ALL ( - 57 ) DIV 83 + 52 * CAST( 29 AS SIGNED ) col0
----
1508

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL ( - 57 ) / 83 + 52 * CAST ( 29 AS INTEGER ) col0
----
1508

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT + 54 DIV + - 4 + - ( - 4 + + 67 * 67 )
----
-4498

skipif mysql # not compatible
query I rowsort label-4926
SELECT + 54 / + - 4 + - ( - 4 + + 67 * 67 )
----
-4498

query I rowsort
SELECT - 80 + - 52 * 77 AS col1
----
-4084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4928
SELECT ALL + CAST( + 91 AS SIGNED ) * - 97 + NULLIF ( 42 - - 17, - 6 * - 49 )
----
-8768

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL + CAST ( + 91 AS INTEGER ) * - 97 + NULLIF ( 42 - - 17, - 6 * - 49 )
----
-8768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4929
SELECT + CASE - CAST( + 64 AS SIGNED ) WHEN - 27 THEN - COUNT( * ) + - 82 ELSE NULL END * - 65 + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT + CASE - CAST ( + 64 AS INTEGER ) WHEN - 27 THEN - COUNT ( * ) + - 82 ELSE NULL END * - 65 + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT - ( COALESCE ( - 16, CASE - 54 WHEN - 29 + 61 THEN NULL WHEN + 98 * + 56 THEN ( 52 ) END ) ) + - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-4930
SELECT - ( COALESCE ( - 16, CASE - 54 WHEN - 29 + 61 THEN NULL WHEN + 98 * + 56 THEN ( 52 ) END ) ) + - COUNT ( * )
----
15

query I rowsort
SELECT DISTINCT + NULLIF ( - ( 59 ), + 93 ) * 37 col2
----
-2183

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT DISTINCT SUM( DISTINCT + 46 ) * + 48 + SUM( ALL + 62 ) AS col2
----
2270

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT SUM ( DISTINCT + 46 ) * + 48 + SUM ( ALL + 62 ) AS col2
----
2270

query I rowsort
SELECT ALL COALESCE ( - 18, + 95 ) * - 27 + - 93 AS col2
----
393

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT - 15 * 53 + - COUNT( * ) * - 23
----
-772

skipif mysql # not compatible
query I rowsort label-4934
SELECT - 15 * 53 + - COUNT ( * ) * - 23
----
-772

query I rowsort
SELECT ALL - 36 * 66 + 24 col2
----
-2352

query I rowsort
SELECT - 2 + - + 59 col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT - COUNT( * ) + - - 23 - + 57
----
-35

skipif mysql # not compatible
query I rowsort label-4937
SELECT - COUNT ( * ) + - - 23 - + 57
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT CASE + 38 WHEN CAST( NULL AS SIGNED ) + + 92 THEN ( + NULLIF ( + CAST( COALESCE ( 76, - 11 + 10 / - 6 ) AS SIGNED ), CAST( + 52 AS SIGNED ) + - 42 * - 34 ) ) + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4938
SELECT CASE + 38 WHEN CAST ( NULL AS INTEGER ) + + 92 THEN ( + NULLIF ( + CAST ( COALESCE ( 76, - 11 + 10 / - 6 ) AS INTEGER ), CAST ( + 52 AS INTEGER ) + - 42 * - 34 ) ) + 5 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT + MAX( DISTINCT - 51 ) + 73 col1
----
22

skipif mysql # not compatible
query I rowsort label-4939
SELECT + MAX ( DISTINCT - 51 ) + 73 col1
----
22

query I rowsort
SELECT NULLIF ( ( 80 ), 27 )
----
80

query I rowsort
SELECT ALL + 20 * + 52 - - 64 AS col2
----
1104

query I rowsort
SELECT + + 65 + ( - COALESCE ( - 94, + 78 ) ) + - 1 AS col2
----
158

query I rowsort
SELECT - ( CASE + ( - 41 ) WHEN 84 THEN 18 * + 86 + + 1 WHEN - 57 THEN - AVG ( + 5 ) + + 16 ELSE NULL END ) / 89 AS col1
----
NULL

query I rowsort
SELECT ALL 83 * 16 AS col2
----
1328

onlyif mysql # DIV for integer division: 
query I rowsort label-4945
SELECT DISTINCT - 32 DIV + 6 + 12 DIV + 62 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT - 32 / + 6 + 12 / + 62 AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4946
SELECT + 58 * - + 91 + + CASE - 44 WHEN - AVG ( ( 84 ) ) DIV CASE + CASE WHEN NOT 13 = 96 THEN 96 END WHEN 93 THEN + 7 WHEN 28 * 64 THEN NULL END THEN + CASE - 32 WHEN 71 * - AVG ( DISTINCT 42 ) THEN + 38 + COALESCE ( + 7 + CASE WHEN NOT ( 47 ) NOT BETWEEN ( 43 * + 99 ) AND ( 35 ) THEN + 44 END DIV MAX( + 95 ), 87, 1 * + ( + 96 ) ) ELSE NULL END * - 86 ELSE 45 * + 51 END
----
-2983

skipif mysql # not compatible
query I rowsort label-4946
SELECT + 58 * - + 91 + + CASE - 44 WHEN - AVG ( ( 84 ) ) / CASE + CASE WHEN NOT 13 = 96 THEN 96 END WHEN 93 THEN + 7 WHEN 28 * 64 THEN NULL END THEN + CASE - 32 WHEN 71 * - AVG ( DISTINCT 42 ) THEN + 38 + COALESCE ( + 7 + CASE WHEN NOT ( 47 ) NOT BETWEEN ( 43 * + 99 ) AND ( 35 ) THEN + 44 END / MAX ( + 95 ), 87, 1 * + ( + 96 ) ) ELSE NULL END * - 86 ELSE 45 * + 51 END
----
-2983

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ALL - COALESCE ( CASE - AVG ( ALL - 39 ) WHEN 69 THEN 61 + - ( - COUNT( * ) ) WHEN COUNT( * ) * 43 THEN NULL ELSE NULL END, 79 * 36 ) * 95 - + 98
----
-270278

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL - COALESCE ( CASE - AVG ( ALL - 39 ) WHEN 69 THEN 61 + - ( - COUNT ( * ) ) WHEN COUNT ( * ) * 43 THEN NULL ELSE NULL END, 79 * 36 ) * 95 - + 98
----
-270278

query I rowsort
SELECT DISTINCT + 41 * + + 47 AS col2
----
1927

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4949
SELECT ALL - 82 * 58 / 73 + + 9 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL - 82 * 58 / 73 + + 9 * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT - 24 * 62 + COUNT( * )
----
-1487

skipif mysql # not compatible
query I rowsort label-4950
SELECT - 24 * 62 + COUNT ( * )
----
-1487

onlyif mysql # DIV for integer division: 
query I rowsort label-4951
SELECT + + NULLIF ( - COALESCE ( - 1, 69 DIV + 43 + - 34 * + 92, 77 + + 78 ), - 4 ) * 79 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-4951
SELECT + + NULLIF ( - COALESCE ( - 1, 69 / + 43 + - 34 * + 92, 77 + + 78 ), - 4 ) * 79 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT - + 2 + + - SUM( DISTINCT - 23 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4952
SELECT - + 2 + + - SUM ( DISTINCT - 23 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT - + MIN( + - 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-4953
SELECT - + MIN ( + - 55 ) AS col2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4954
SELECT + + 63 + - 13 DIV + 78
----
63

skipif mysql # not compatible
query I rowsort label-4954
SELECT + + 63 + - 13 / + 78
----
63

query I rowsort
SELECT + + 52 * + + 7 AS col2
----
364

query I rowsort
SELECT + 30 * - 47
----
-1410

query I rowsort
SELECT DISTINCT ( + + 94 ) AS col0
----
94

query I rowsort
SELECT DISTINCT - COALESCE ( 47, - 35 )
----
-47

query I rowsort
SELECT DISTINCT + 75 * - 16 AS col2
----
-1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4960
SELECT DISTINCT + 64 DIV - COALESCE ( + 93, COUNT( * ) ) + + ( 37 )
----
37

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT + 64 / - COALESCE ( + 93, COUNT ( * ) ) + + ( 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL + COUNT( * ) + + 56 + + COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + COUNT ( * ) + + 56 + + COUNT ( * ) AS col2
----
58

query II rowsort
SELECT 62, - 22 col2
----
62
-22

query II rowsort
SELECT 98, + 52 AS col0
----
98
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT DISTINCT 57 + - - 59 - + - COUNT( * ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT 57 + - - 59 - + - COUNT ( * ) AS col2
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4965
SELECT 6 AS col0, 96 + + - CAST( + 62 AS SIGNED ) AS col0
----
6
34

skipif mysql # not compatible
query II rowsort label-4965
SELECT 6 AS col0, 96 + + - CAST ( + 62 AS INTEGER ) AS col0
----
6
34

query II rowsort
SELECT + 59 AS col2, 58 + 34
----
59
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT 15 + + 3 DIV 65 + - 92 col2
----
-77

skipif mysql # not compatible
query I rowsort label-4967
SELECT 15 + + 3 / 65 + - 92 col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT ALL MIN( + 16 ) + + + 81
----
97

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL MIN ( + 16 ) + + + 81
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4969
SELECT 28 * + 78 * - - 51 DIV COUNT( * ) + + ( - ( 4 ) )
----
111380

skipif mysql # not compatible
query I rowsort label-4969
SELECT 28 * + 78 * - - 51 / COUNT ( * ) + + ( - ( 4 ) )
----
111380

query I rowsort
SELECT DISTINCT 21 + - 81 * + 95 AS col2
----
-7674

query II rowsort
SELECT 92 AS col0, 91
----
92
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT ALL MIN( 35 ) + 80
----
115

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL MIN ( 35 ) + 80
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4973
SELECT 14 DIV + 43 * - 8 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4973
SELECT 14 / + 43 * - 8 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL - SUM( + - 5 ) + + - 68 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL - SUM ( + - 5 ) + + - 68 AS col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4975
SELECT DISTINCT 49 DIV + - SUM( DISTINCT 6 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT 49 / + - SUM ( DISTINCT 6 ) AS col2
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4976
SELECT ( + + 71 ) * - + 69 DIV + COUNT( * ) AS col2
----
-4899

skipif mysql # not compatible
query I rowsort label-4976
SELECT ( + + 71 ) * - + 69 / + COUNT ( * ) AS col2
----
-4899

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT DISTINCT + COUNT( * ) - - COALESCE ( - - COUNT( * ), 75 ) + + COUNT( - 95 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT + COUNT ( * ) - - COALESCE ( - - COUNT ( * ), 75 ) + + COUNT ( - 95 ) col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4978
SELECT ALL + ( + 55 ) - + CASE ( + CAST( - COUNT( * ) AS SIGNED ) ) WHEN 48 + 29 / - 24 THEN ( 24 ) * 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL + ( + 55 ) - + CASE ( + CAST ( - COUNT ( * ) AS INTEGER ) ) WHEN 48 + 29 / - 24 THEN ( 24 ) * 47 END AS col1
----
NULL

query I rowsort
SELECT 20 * + + 76
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT ( - - 46 ) - - 1 * + COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT ( - - 46 ) - - 1 * + COUNT ( * ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT ALL - - 98 * - SUM( ALL + 11 ) col2
----
-1078

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL - - 98 * - SUM ( ALL + 11 ) col2
----
-1078

query I rowsort
SELECT 23 * + NULLIF ( + 97, 94 ) + + 55
----
2286

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT - COALESCE ( - 79, + - 55, + NULLIF ( - 83, ( - ( + COUNT( * ) ) ) + 53 ) * - 78 )
----
79

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT - COALESCE ( - 79, + - 55, + NULLIF ( - 83, ( - ( + COUNT ( * ) ) ) + 53 ) * - 78 )
----
79

query I rowsort
SELECT DISTINCT - + 48 * + 82
----
-3936

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT + - SUM( ALL - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-4985
SELECT + - SUM ( ALL - 53 )
----
53

query I rowsort
SELECT 2 * 80
----
160

query I rowsort
SELECT + 22 + - 5 AS col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4988
SELECT ALL - MAX( DISTINCT 91 ) DIV + 7 * COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL - MAX ( DISTINCT 91 ) / + 7 * COUNT ( * ) AS col0
----
-13

query I rowsort
SELECT - 14 * - 61 * - 37 + 27 * + 56
----
-30086

query I rowsort
SELECT DISTINCT + ( 83 ) AS col0
----
83

query II rowsort
SELECT ALL + 28 AS col0, - CASE - 34 WHEN 59 THEN NULL WHEN 38 THEN - 44 - 56 END AS col2
----
28
NULL

query I rowsort
SELECT ALL 2 + + 19 + 98 * ( 19 * + 54 )
----
100569

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4993
SELECT ALL - - 30 DIV + - CAST( - + 45 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL - - 30 / + - CAST ( - + 45 AS INTEGER )
----
0

query II rowsort
SELECT DISTINCT + 46, + 34 AS col2
----
46
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ALL + 35 + COALESCE ( - + 78, SUM( ALL + 77 ), 51, - COUNT( ALL 35 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL + 35 + COALESCE ( - + 78, SUM ( ALL + 77 ), 51, - COUNT ( ALL 35 ) )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT + COALESCE ( - - 92, - COUNT( * ) + - 35, 48 * - 85 ) + 75 * 80 AS col2
----
6092

skipif mysql # not compatible
query I rowsort label-4996
SELECT + COALESCE ( - - 92, - COUNT ( * ) + - 35, 48 * - 85 ) + 75 * 80 AS col2
----
6092

query I rowsort
SELECT - - ( + 26 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT DISTINCT - COALESCE ( + - ( - NULLIF ( + 51, CAST( NULL AS SIGNED ) ) ), - 56 * 7 + 56, 39 ) + 63 col1
----
12

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT - COALESCE ( + - ( - NULLIF ( + 51, CAST ( NULL AS INTEGER ) ) ), - 56 * 7 + 56, 39 ) + 63 col1
----
12

query I rowsort
SELECT 15 * + - 59
----
-885

query I rowsort
SELECT ALL 56 + - + 99 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT ALL ( ( - MAX( 47 ) ) ) - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL ( ( - MAX ( 47 ) ) ) - COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT ALL 97 * + COUNT( * ) * + MIN( - 39 )
----
-3783

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL 97 * + COUNT ( * ) * + MIN ( - 39 )
----
-3783

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT MAX( 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-5003
SELECT MAX ( 87 ) AS col2
----
87

query I rowsort
SELECT 61 * - 9 * 39 + + 24
----
-21387

query I rowsort
SELECT 30 - 12
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT + MAX( DISTINCT + - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-5006
SELECT + MAX ( DISTINCT + - 49 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT ALL 61 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL 61 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT 14 + + NULLIF ( + + 59, - COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-5008
SELECT 14 + + NULLIF ( + + 59, - COUNT ( * ) )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5009
SELECT COUNT( * ) * - 39 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-5009
SELECT COUNT ( * ) * - 39 / - 62
----
0

query I rowsort
SELECT ALL ( - + 5 ) * - 45
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT 98 * - + 36 + 54 + CASE 84 WHEN + ( - 3 ) THEN COUNT( * ) + 5 * + 26 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT 98 * - + 36 + 54 + CASE 84 WHEN + ( - 3 ) THEN COUNT ( * ) + 5 * + 26 END * COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5012
SELECT - 79 DIV + 78 + - COALESCE ( + 3, + 24, - 43 ) + + 70 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5012
SELECT - 79 / + 78 + - COALESCE ( + 3, + 24, - 43 ) + + 70 AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5013
SELECT 38 * + CASE - 85 WHEN 6 + - CAST( 92 AS SIGNED ) THEN - COUNT( * ) + - 13 WHEN COUNT( * ) THEN NULL WHEN - 45 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT 38 * + CASE - 85 WHEN 6 + - CAST ( 92 AS INTEGER ) THEN - COUNT ( * ) + - 13 WHEN COUNT ( * ) THEN NULL WHEN - 45 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT 17 * - 12 + 73 * - 74 - - ( + COUNT( * ) + - 31 )
----
-5636

skipif mysql # not compatible
query I rowsort label-5014
SELECT 17 * - 12 + 73 * - 74 - - ( + COUNT ( * ) + - 31 )
----
-5636

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT + + 87 * 63 * - + MAX( - ( + 59 ) ) + 36 AS col2
----
323415

skipif mysql # not compatible
query I rowsort label-5015
SELECT + + 87 * 63 * - + MAX ( - ( + 59 ) ) + 36 AS col2
----
323415

query I rowsort
SELECT DISTINCT - 58 * + 42 + + + 71 AS col0
----
-2365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5017
SELECT DISTINCT + COUNT( * ) + + CAST( - + CASE 31 WHEN 7 * 79 THEN 98 ELSE - 53 * - ( ( NULLIF ( 29, - 35 ) ) ) END AS SIGNED ) * - 57 AS col1
----
87610

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT + COUNT ( * ) + + CAST ( - + CASE 31 WHEN 7 * 79 THEN 98 ELSE - 53 * - ( ( NULLIF ( 29, - 35 ) ) ) END AS INTEGER ) * - 57 AS col1
----
87610

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT DISTINCT - NULLIF ( 12, + COUNT( * ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT - NULLIF ( 12, + COUNT ( * ) ) AS col1
----
-12

query I rowsort
SELECT ALL + 30 * - - 75 - - 60 AS col1
----
2310

onlyif mysql # DIV for integer division: 
query I rowsort label-5020
SELECT ALL + - ( + 63 ) + 87 DIV + 72 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL + - ( + 63 ) + 87 / + 72 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT 56 + COUNT( * ) * + 26 - + SUM( DISTINCT - 65 ) col1
----
147

skipif mysql # not compatible
query I rowsort label-5021
SELECT 56 + COUNT ( * ) * + 26 - + SUM ( DISTINCT - 65 ) col1
----
147

query I rowsort
SELECT DISTINCT - NULLIF ( - 32, - 11 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT ALL + NULLIF ( + 99, + COUNT( * ) ) + 58
----
157

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL + NULLIF ( + 99, + COUNT ( * ) ) + 58
----
157

query I rowsort
SELECT - ( + + 71 ) * + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT - 5 + + + MAX( DISTINCT + + 31 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5025
SELECT - 5 + + + MAX ( DISTINCT + + 31 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT ALL - SUM( 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL - SUM ( 55 ) AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5027
SELECT DISTINCT COALESCE ( 59, - 42 * - + SUM( - 18 ) + - 18, - CAST( NULL AS SIGNED ) DIV 26, + NULLIF ( 99, + COALESCE ( 6, - COUNT( * ) ) * + 80 ) + 98 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT COALESCE ( 59, - 42 * - + SUM ( - 18 ) + - 18, - CAST ( NULL AS INTEGER ) / 26, + NULLIF ( 99, + COALESCE ( 6, - COUNT ( * ) ) * + 80 ) + 98 ) AS col2
----
59

query I rowsort
SELECT + 45 + + 66
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5029
SELECT ALL COALESCE ( - NULLIF ( + 79, + 85 * CAST( NULL AS SIGNED ) + + 96 * - COUNT( * ) ), + ( + 89 ) * + CAST( NULL AS SIGNED ), - 38 * - MAX( ( - 84 ) ) ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL COALESCE ( - NULLIF ( + 79, + 85 * CAST ( NULL AS INTEGER ) + + 96 * - COUNT ( * ) ), + ( + 89 ) * + CAST ( NULL AS INTEGER ), - 38 * - MAX ( ( - 84 ) ) ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT DISTINCT - 56 + COUNT( DISTINCT + 85 )
----
-55

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT - 56 + COUNT ( DISTINCT + 85 )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5031
SELECT ALL + 1 DIV - - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL + 1 / - - COUNT ( * ) col0
----
1

query I rowsort
SELECT DISTINCT 3 - + 72
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5033
SELECT DISTINCT CASE COUNT( * ) WHEN - - 2 THEN + + 87 DIV + 74 ELSE ( + 81 ) END * + 86 AS col1
----
6966

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT CASE COUNT ( * ) WHEN - - 2 THEN + + 87 / + 74 ELSE ( + 81 ) END * + 86 AS col1
----
6966

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT DISTINCT + MIN( ALL + ( + 28 ) ) * - 97 AS col0
----
-2716

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT + MIN ( ALL + ( + 28 ) ) * - 97 AS col0
----
-2716

query II rowsort
SELECT ALL COALESCE ( + + 14, 67 ) AS col1, - 67 * + - 79
----
14
5293

query I rowsort
SELECT + 3 * - 88
----
-264

query I rowsort
SELECT DISTINCT - COALESCE ( - 14, - + 29 ) - + 34
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT - 73 * + COUNT( * ) col2
----
-73

skipif mysql # not compatible
query I rowsort label-5038
SELECT - 73 * + COUNT ( * ) col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5039
SELECT + 97 + + CAST( - - MAX( - - 64 ) AS SIGNED ) AS col2
----
161

skipif mysql # not compatible
query I rowsort label-5039
SELECT + 97 + + CAST ( - - MAX ( - - 64 ) AS INTEGER ) AS col2
----
161

query II rowsort
SELECT DISTINCT + 82, + 52 AS col2
----
82
52

query I rowsort
SELECT - 43 * 25 * + 66 AS col2
----
-70950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5042
SELECT ALL + CAST( + 51 AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL + CAST ( + 51 AS INTEGER ) AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT + NULLIF ( CAST( NULL AS SIGNED ), + 90 + + 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), + 90 + + 0 )
----
NULL

query I rowsort
SELECT + 31 * - 46 AS col1
----
-1426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5045
SELECT ALL + + COALESCE ( - 23, + - 15 * COUNT( + CAST( + CASE 21 WHEN + CAST( NULL AS SIGNED ) THEN - 58 * + ( - 71 ) - - CAST( 30 + - 62 AS DECIMAL ) WHEN 37 + 86 THEN NULL ELSE NULL END AS SIGNED ) ) ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL + + COALESCE ( - 23, + - 15 * COUNT ( + CAST ( + CASE 21 WHEN + CAST ( NULL AS INTEGER ) THEN - 58 * + ( - 71 ) - - CAST ( 30 + - 62 AS REAL ) WHEN 37 + 86 THEN NULL ELSE NULL END AS INTEGER ) ) ) col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5046
SELECT + MAX( - + CASE + CAST( NULL AS DECIMAL ) WHEN - - 40 * 94 * + CAST( NULL AS DECIMAL ) + 13 THEN 2 END ) * MAX( 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5046
SELECT + MAX ( - + CASE + CAST ( NULL AS REAL ) WHEN - - 40 * 94 * + CAST ( NULL AS REAL ) + 13 THEN 2 END ) * MAX ( 84 )
----
NULL

query I rowsort
SELECT ALL + 20 * - 74
----
-1480

query I rowsort
SELECT DISTINCT - 12 * + 5 + - 43
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5049
SELECT + - NULLIF ( + 5, - 87 ) AS col2, + CASE + - MAX( + ( 76 ) ) WHEN 59 THEN NULL ELSE - 99 + - 9 DIV + 71 END
----
-5
-99

skipif mysql # not compatible
query II rowsort label-5049
SELECT + - NULLIF ( + 5, - 87 ) AS col2, + CASE + - MAX ( + ( 76 ) ) WHEN 59 THEN NULL ELSE - 99 + - 9 / + 71 END
----
-5
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5050
SELECT + CAST( - 55 AS SIGNED ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5050
SELECT + CAST ( - 55 AS INTEGER ) AS col2
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5051
SELECT DISTINCT 18 * - 83 + + 87 + - MAX( ALL 76 ) + ( - ( + 62 ) + - 0 DIV 68 ) AS col1
----
-1545

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT 18 * - 83 + + 87 + - MAX ( ALL 76 ) + ( - ( + 62 ) + - 0 / 68 ) AS col1
----
-1545

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL SUM( - + 15 ) * ( 6 ) * 23 + - 39 AS col0
----
-2109

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL SUM ( - + 15 ) * ( 6 ) * 23 + - 39 AS col0
----
-2109

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT + - COUNT( * ) * + 69 - NULLIF ( 51, MAX( - 42 ) ) - ( + 96 ) * COUNT( * )
----
-216

skipif mysql # not compatible
query I rowsort label-5053
SELECT + - COUNT ( * ) * + 69 - NULLIF ( 51, MAX ( - 42 ) ) - ( + 96 ) * COUNT ( * )
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL - 60 * COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL - 60 * COUNT ( * ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL 76 * - COALESCE ( - COUNT( * ), 2 * - 34 + + 20 ) + - MAX( 55 + - 23 ) col0
----
44

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL 76 * - COALESCE ( - COUNT ( * ), 2 * - 34 + + 20 ) + - MAX ( 55 + - 23 ) col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5056
SELECT DISTINCT + 25 * - - 34 + + COUNT( * ) AS col0, 23 + - - 47 AS col0
----
851
70

skipif mysql # not compatible
query II rowsort label-5056
SELECT DISTINCT + 25 * - - 34 + + COUNT ( * ) AS col0, 23 + - - 47 AS col0
----
851
70

query I rowsort
SELECT DISTINCT + ( + ( + NULLIF ( + 50, 92 ) ) )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5058
SELECT DISTINCT - 75 * + 89 * - - CAST( NULL AS SIGNED ) + 75 + 66 + 11 * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT - 75 * + 89 * - - CAST ( NULL AS INTEGER ) + 75 + 66 + 11 * 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5059
SELECT ALL 63 * ( COALESCE ( - COALESCE ( - - 60, 12 * 45, - 10 ), - 25 - CAST( CASE + 67 WHEN - 39 THEN 62 + 32 WHEN 87 * 67 THEN - 25 END + 41 AS SIGNED ) * 79, 96 + - COALESCE ( CASE + 98 WHEN 47 THEN ( + 50 ) DIV COUNT( * ) - 53 END, COUNT( ALL + 21 ) ), 47 * COUNT( * ) + 95 * + 75 ) ) + + 53
----
-3727

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL 63 * ( COALESCE ( - COALESCE ( - - 60, 12 * 45, - 10 ), - 25 - CAST ( CASE + 67 WHEN - 39 THEN 62 + 32 WHEN 87 * 67 THEN - 25 END + 41 AS INTEGER ) * 79, 96 + - COALESCE ( CASE + 98 WHEN 47 THEN ( + 50 ) / COUNT ( * ) - 53 END, COUNT ( ALL + 21 ) ), 47 * COUNT ( * ) + 95 * + 75 ) ) + + 53
----
-3727

query II rowsort
SELECT - 41, - 16 col1
----
-41
-16

query II rowsort
SELECT - 67 * - 43 - + 30 col1, - 36
----
2851
-36

query I rowsort
SELECT + 6 + - - 44 + - + 87 col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-5063
SELECT - MIN( ALL + 14 ) - + 75, - 37 AS col1
----
-89
-37

skipif mysql # not compatible
query II rowsort label-5063
SELECT - MIN ( ALL + 14 ) - + 75, - 37 AS col1
----
-89
-37

query II rowsort
SELECT + 64 AS col1, 82 AS col2
----
64
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5065
SELECT - 99 AS col2, - CAST( NULL AS SIGNED ) + - + 34 AS col2
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-5065
SELECT - 99 AS col2, - CAST ( NULL AS INTEGER ) + - + 34 AS col2
----
-99
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5066
SELECT ALL COUNT( * ), 43 * - 49 AS col2
----
1
-2107

skipif mysql # not compatible
query II rowsort label-5066
SELECT ALL COUNT ( * ), 43 * - 49 AS col2
----
1
-2107

query I rowsort
SELECT DISTINCT 98 * 1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL COUNT( * ) * - 77 * 59 * - 41
----
186263

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL COUNT ( * ) * - 77 * 59 * - 41
----
186263

query I rowsort
SELECT ALL - NULLIF ( - ( - 83 ), - 8 * - 2 * + ( 99 ) ) - + 39
----
-122

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5070
SELECT + 15 - 36 * CAST( - 84 AS SIGNED ) DIV + 20 + + - 73
----
93

skipif mysql # not compatible
query I rowsort label-5070
SELECT + 15 - 36 * CAST ( - 84 AS INTEGER ) / + 20 + + - 73
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT + ( NULLIF ( - COUNT( * ), - - 88 ) ) + + ( - 26 ) + - ( 62 - - ( 31 ) ) AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-5071
SELECT + ( NULLIF ( - COUNT ( * ), - - 88 ) ) + + ( - 26 ) + - ( 62 - - ( 31 ) ) AS col1
----
-120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5072
SELECT - 79 * CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT - 79 * CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT ALL CASE WHEN NULL IN ( 59, - 48 + - 14 ) THEN + 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5074
SELECT - MIN( DISTINCT - - 74 ) AS col1, + 17
----
-74
17

skipif mysql # not compatible
query II rowsort label-5074
SELECT - MIN ( DISTINCT - - 74 ) AS col1, + 17
----
-74
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5075
SELECT - 44 * - 12, + NULLIF ( - + CASE 12 WHEN 28 - - 71 * - 68 THEN NULL WHEN COALESCE ( - COUNT( * ), 42 + 41 ) THEN 47 WHEN + COALESCE ( + 58, - 45, + 3 ) * + 44 THEN - 89 * 64 WHEN - ( + 98 ) + 82 THEN COUNT( * ) + 74 ELSE 70 * SUM( ALL 61 * 53 ) END, - 59 ) AS col2
----
528
-226310

skipif mysql # not compatible
query II rowsort label-5075
SELECT - 44 * - 12, + NULLIF ( - + CASE 12 WHEN 28 - - 71 * - 68 THEN NULL WHEN COALESCE ( - COUNT ( * ), 42 + 41 ) THEN 47 WHEN + COALESCE ( + 58, - 45, + 3 ) * + 44 THEN - 89 * 64 WHEN - ( + 98 ) + 82 THEN COUNT ( * ) + 74 ELSE 70 * SUM ( ALL 61 * 53 ) END, - 59 ) AS col2
----
528
-226310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5076
SELECT ALL + COALESCE ( + COUNT( * ), + 95 ) DIV ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL + COALESCE ( + COUNT ( * ), + 95 ) / ( COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT - 61 - 43 + + COUNT( DISTINCT - + 1 ) + 33 * - 18 * 62 AS col2
----
-36931

skipif mysql # not compatible
query I rowsort label-5077
SELECT - 61 - 43 + + COUNT ( DISTINCT - + 1 ) + 33 * - 18 * 62 AS col2
----
-36931

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL COALESCE ( - COUNT( * ), + 94 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL COALESCE ( - COUNT ( * ), + 94 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5079
SELECT DISTINCT + ( CAST( + 26 AS SIGNED ) ) DIV 13
----
2

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT + ( CAST ( + 26 AS INTEGER ) ) / 13
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5080
SELECT - COALESCE ( + - 75, 53, 52 ) * - + MIN( + 56 ) + 87 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT - COALESCE ( + - 75, 53, 52 ) * - + MIN ( + 56 ) + 87 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5081
SELECT ALL + 35 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL + 35 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT DISTINCT + SUM( ALL - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT + SUM ( ALL - 88 )
----
-88

query I rowsort
SELECT - 90 * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5084
SELECT + COUNT( * ) - 49 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT + COUNT ( * ) - 49 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT ALL - 1 DIV + + 13 + - ( + 48 ) + + 75 + - 46 * - 73
----
3385

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL - 1 / + + 13 + - ( + 48 ) + + 75 + - 46 * - 73
----
3385

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5086
SELECT ALL + COUNT( * ), - 74 * + - 83 DIV + - 1 AS col0
----
1
-6142

skipif mysql # not compatible
query II rowsort label-5086
SELECT ALL + COUNT ( * ), - 74 * + - 83 / + - 1 AS col0
----
1
-6142

query I rowsort
SELECT - + ( + + 97 ) + + ( 56 ) AS col2
----
-41

query II rowsort
SELECT + 13, + 32 + - - 51 AS col2
----
13
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT ALL 15 DIV 27 + + 78 * 79
----
6162

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL 15 / 27 + + 78 * 79
----
6162

query I rowsort
SELECT ALL + - ( + 28 ) AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5091
SELECT ALL + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) / 51 col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5091
SELECT ALL + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / 51 col2
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5092
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + AVG ( + 27 ) * - - 43 + + ( 35 ) - + 11 / SUM( - 54 ) * + 29 + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + AVG ( + 27 ) * - - 43 + + ( 35 ) - + 11 / SUM ( - 54 ) * + 29 + + 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT ALL - 85 / 1 + CAST( NULL AS SIGNED ) + + 14 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - 85 / 1 + CAST ( NULL AS INTEGER ) + + 14 col2
----
NULL

query I rowsort
SELECT - ( ( - 83 ) ) col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT + ( COUNT( * ) ) * - 40 + + COUNT( ALL - 36 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5095
SELECT + ( COUNT ( * ) ) * - 40 + + COUNT ( ALL - 36 ) AS col2
----
-39

query I rowsort
SELECT DISTINCT - 15 * + 87
----
-1305

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5097
SELECT DISTINCT - 36 col0, 58 DIV - COUNT( * )
----
-36
-58

skipif mysql # not compatible
query II rowsort label-5097
SELECT DISTINCT - 36 col0, 58 / - COUNT ( * )
----
-36
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL + MAX( ALL - 29 ) - - + 29
----
0

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL + MAX ( ALL - 29 ) - - + 29
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5099
SELECT ALL + - CAST( NULL AS DECIMAL ) * + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL + - CAST ( NULL AS REAL ) * + 3 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 13 col1, - 99 AS col2
----
13
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5101
SELECT 87 DIV - 20
----
-4

skipif mysql # not compatible
query I rowsort label-5101
SELECT 87 / - 20
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5102
SELECT ALL CAST( NULL AS SIGNED ) / + + ( + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL CAST ( NULL AS INTEGER ) / + + ( + - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT 15 * - 69
----
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT 98 - + + COUNT( ALL - 65 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5104
SELECT 98 - + + COUNT ( ALL - 65 ) AS col2
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT 34 DIV + + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5105
SELECT 34 / + + 48 AS col0
----
0

query I rowsort
SELECT ALL + 39 * + 51
----
1989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5107
SELECT CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col1, + 10 / - ( + 38 ) * - + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5107
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col1, + 10 / - ( + 38 ) * - + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT 49 + + 66 AS col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL 20 + + ( - + COUNT( * ) )
----
19

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL 20 + + ( - + COUNT ( * ) )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5110
SELECT ALL CAST( + 90 AS SIGNED ) * - 50, 66 AS col2
----
-4500
66

skipif mysql # not compatible
query II rowsort label-5110
SELECT ALL CAST ( + 90 AS INTEGER ) * - 50, 66 AS col2
----
-4500
66

query I rowsort
SELECT 59 * + + 5 AS col1
----
295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5112
SELECT CAST( NULL AS SIGNED ) * - 52 * + - 33 * + MAX( DISTINCT 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT CAST ( NULL AS INTEGER ) * - 52 * + - 33 * + MAX ( DISTINCT 72 ) AS col1
----
NULL

query I rowsort
SELECT 65 + - 42 AS col2
----
23

query II rowsort
SELECT ALL - 76 + + 27 * + - 94 AS col1, 46 * - 16 col1
----
-2614
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT DISTINCT + 22 + + 55 * + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT + 22 + + 55 * + COUNT ( * )
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-5116
SELECT 48 DIV + ( 36 ), - 87 AS col1
----
1
-87

skipif mysql # not compatible
query II rowsort label-5116
SELECT 48 / + ( 36 ), - 87 AS col1
----
1
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5117
SELECT ALL 55 + 89 AS col1, + CAST( NULL AS SIGNED )
----
144
NULL

skipif mysql # not compatible
query II rowsort label-5117
SELECT ALL 55 + 89 AS col1, + CAST ( NULL AS INTEGER )
----
144
NULL

query I rowsort
SELECT ALL - - 88 + + 21 * - - NULLIF ( - 88, 97 + - 68 - + 23 + - 57 ) AS col2
----
-1760

query I rowsort
SELECT DISTINCT - ( + ( - 43 ) ) * 68 AS col0
----
2924

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT 84 * + ( - + 7 ) + + 38 * 73 DIV + + ( - 29 ) col1
----
-683

skipif mysql # not compatible
query I rowsort label-5120
SELECT 84 * + ( - + 7 ) + + 38 * 73 / + + ( - 29 ) col1
----
-683

query I rowsort
SELECT ALL - 77 * + 5 AS col0
----
-385

query I rowsort
SELECT ALL + 19 * 13 AS col0
----
247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5123
SELECT DISTINCT - 60 - - ( ( + COALESCE ( + - CAST( + - 93 AS SIGNED ), 29, + COALESCE ( + COUNT( * ), 29 ) ) ) ) * + 3 col2
----
219

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT - 60 - - ( ( + COALESCE ( + - CAST ( + - 93 AS INTEGER ), 29, + COALESCE ( + COUNT ( * ), 29 ) ) ) ) * + 3 col2
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT ALL - 27 - 9 + - 47 * - ( - COUNT( * ) ) * + - 71
----
3301

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL - 27 - 9 + - 47 * - ( - COUNT ( * ) ) * + - 71
----
3301

onlyif mysql # aggregate syntax: 
query II rowsort label-5125
SELECT + 0 * - COUNT( - - 48 ) - - - 48 * + 55 AS col2, - ( COUNT( * ) ) AS col2
----
-2640
-1

skipif mysql # not compatible
query II rowsort label-5125
SELECT + 0 * - COUNT ( - - 48 ) - - - 48 * + 55 AS col2, - ( COUNT ( * ) ) AS col2
----
-2640
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5126
SELECT DISTINCT - - ( + CAST( NULL AS SIGNED ) ), ( 19 ) * 30 AS col2
----
NULL
570

skipif mysql # not compatible
query II rowsort label-5126
SELECT DISTINCT - - ( + CAST ( NULL AS INTEGER ) ), ( 19 ) * 30 AS col2
----
NULL
570

query I rowsort
SELECT 98 + 87 * - + 37 AS col1
----
-3121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5128
SELECT - 53, - COUNT( * ) DIV + - 56 + - COUNT( ALL - 64 ) DIV - 83 AS col2
----
-53
0

skipif mysql # not compatible
query II rowsort label-5128
SELECT - 53, - COUNT ( * ) / + - 56 + - COUNT ( ALL - 64 ) / - 83 AS col2
----
-53
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5129
SELECT 43 - - 91 * CAST( COUNT( * ) AS SIGNED ) DIV + 96 + - - 91 * COUNT( DISTINCT + 89 ) DIV - 52
----
42

skipif mysql # not compatible
query I rowsort label-5129
SELECT 43 - - 91 * CAST ( COUNT ( * ) AS INTEGER ) / + 96 + - - 91 * COUNT ( DISTINCT + 89 ) / - 52
----
42

query I rowsort
SELECT 14 * - 74 AS col0
----
-1036

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT 50 * + 41 * ( + COALESCE ( 61, + + 31 ) ) * + CASE - 68 WHEN - COUNT( * ) + + 4 THEN 65 * 34 WHEN + 94 / + ( 16 * + 32 ) THEN 18 * 59 ELSE NULL END / - 69 + + 34 / - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT 50 * + 41 * ( + COALESCE ( 61, + + 31 ) ) * + CASE - 68 WHEN - COUNT ( * ) + + 4 THEN 65 * 34 WHEN + 94 / + ( 16 * + 32 ) THEN 18 * 59 ELSE NULL END / - 69 + + 34 / - 2 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5132
SELECT DISTINCT 80 * 71 DIV 80 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT 80 * 71 / 80 AS col0
----
71

query I rowsort
SELECT DISTINCT 97 * + 3 AS col0
----
291

query I rowsort
SELECT DISTINCT - 52 + - 40 AS col1
----
-92

query I rowsort
SELECT DISTINCT CASE + 20 WHEN 72 THEN NULL WHEN - + 38 THEN - + 17 END + + 23 * + 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT DISTINCT 91 + - - MAX( 80 )
----
171

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT 91 + - - MAX ( 80 )
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5137
SELECT ALL 74 AS col1, + CAST( NULL AS SIGNED ) col1
----
74
NULL

skipif mysql # not compatible
query II rowsort label-5137
SELECT ALL 74 AS col1, + CAST ( NULL AS INTEGER ) col1
----
74
NULL

query I rowsort
SELECT DISTINCT 67 + + 51 col1
----
118

query I rowsort
SELECT DISTINCT 26 + - 2
----
24

query II rowsort
SELECT - 29, 12 AS col1
----
-29
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5141
SELECT ALL AVG ( DISTINCT ( + 88 ) ) + + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL AVG ( DISTINCT ( + 88 ) ) + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 29 + 18
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT 78 + + COALESCE ( + 46, COUNT( - + ( + - 44 ) ) )
----
124

skipif mysql # not compatible
query I rowsort label-5143
SELECT 78 + + COALESCE ( + 46, COUNT ( - + ( + - 44 ) ) )
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT 84 DIV - 15 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5144
SELECT 84 / - 15 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT - MIN( + 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-5145
SELECT - MIN ( + 41 ) AS col1
----
-41

query II rowsort
SELECT ALL 96 AS col1, - 60 AS col1
----
96
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT DISTINCT 44 + + 18 + + + COUNT( * ) * COUNT( * ) - + ( + - 1 )
----
64

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT 44 + + 18 + + + COUNT ( * ) * COUNT ( * ) - + ( + - 1 )
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-5148
SELECT 30 + - - 59 DIV + 3 col2, - 37 AS col0
----
49
-37

skipif mysql # not compatible
query II rowsort label-5148
SELECT 30 + - - 59 / + 3 col2, - 37 AS col0
----
49
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT ALL - CASE + 4 WHEN 87 THEN + - 9 * - 5 - 25 ELSE + COUNT( * ) * + - CASE + 37 WHEN 8 * 59 THEN 21 ELSE NULL END + 53 / + 49 END + + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL - CASE + 4 WHEN 87 THEN + - 9 * - 5 - 25 ELSE + COUNT ( * ) * + - CASE + 37 WHEN 8 * 59 THEN 21 ELSE NULL END + 53 / + 49 END + + 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5150
SELECT ALL + ( - - 50 ) * - COUNT( * ), 27 AS col0
----
-50
27

skipif mysql # not compatible
query II rowsort label-5150
SELECT ALL + ( - - 50 ) * - COUNT ( * ), 27 AS col0
----
-50
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT - SUM( + 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5151
SELECT - SUM ( + 5 ) AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5152
SELECT ALL - COUNT( * ) * + 88 * 50 - + - 75 * - 34 * + 7 - + 73 + + 35 DIV COALESCE ( + COALESCE ( + 31, COUNT( * ) * - 36 + + 5 * - 57 ) + + 84, - 95, 23 * + 20 + 51 )
----
-22323

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL - COUNT ( * ) * + 88 * 50 - + - 75 * - 34 * + 7 - + 73 + + 35 / COALESCE ( + COALESCE ( + 31, COUNT ( * ) * - 36 + + 5 * - 57 ) + + 84, - 95, 23 * + 20 + 51 )
----
-22323

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - 15 * - - 91 + - + 19 * + CASE + MAX( + 17 ) WHEN - 37 THEN - 71 END + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT - 15 * - - 91 + - + 19 * + CASE + MAX ( + 17 ) WHEN - 37 THEN - 71 END + 21
----
NULL

query I rowsort
SELECT DISTINCT 85 * - 34
----
-2890

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL + COUNT( - - 64 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL + COUNT ( - - 64 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT + 48 * - 49 + COUNT( * ) + - 53
----
-2404

skipif mysql # not compatible
query I rowsort label-5156
SELECT + 48 * - 49 + COUNT ( * ) + - 53
----
-2404

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5157
SELECT - + 53 * - 33 + + + 76 + + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT - + 53 * - 33 + + + 76 + + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5158
SELECT COUNT( * ) * - 47 - COALESCE ( + + 47, + + 17 DIV + COUNT( * ) + + - COALESCE ( + + CASE - ( + 70 ) WHEN + 31 THEN - 14 END, - 87, - 27 * - 21 ) + - 13 ) col2
----
-94

skipif mysql # not compatible
query I rowsort label-5158
SELECT COUNT ( * ) * - 47 - COALESCE ( + + 47, + + 17 / + COUNT ( * ) + + - COALESCE ( + + CASE - ( + 70 ) WHEN + 31 THEN - 14 END, - 87, - 27 * - 21 ) + - 13 ) col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5159
SELECT ALL 44 * + CAST( + CAST( 51 AS DECIMAL ) AS SIGNED ) - - CASE - + ( - 88 ) WHEN - + COALESCE ( - 93, + 6 - ( 4 + 60 / - ( + 64 * - 81 ) ) ) + COUNT( CAST( 78 AS SIGNED ) ) * + COUNT( * ) THEN + 66 / CAST( NULL AS SIGNED ) WHEN + 54 + COUNT( ALL 16 ) THEN + 8 - - 96 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL 44 * + CAST ( + CAST ( 51 AS REAL ) AS INTEGER ) - - CASE - + ( - 88 ) WHEN - + COALESCE ( - 93, + 6 - ( 4 + 60 / - ( + 64 * - 81 ) ) ) + COUNT ( CAST ( 78 AS INTEGER ) ) * + COUNT ( * ) THEN + 66 / CAST ( NULL AS INTEGER ) WHEN + 54 + COUNT ( ALL 16 ) THEN + 8 - - 96 END AS col2
----
NULL

query I rowsort
SELECT + - ( 61 ) * + - 45 * - + 97 - - 1 * - 81
----
-266346

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT ALL + MAX( DISTINCT - ( 82 ) )
----
-82

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL + MAX ( DISTINCT - ( 82 ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT + MAX( DISTINCT + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-5162
SELECT + MAX ( DISTINCT + 7 )
----
7

query I rowsort
SELECT ALL + ( 24 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT 76 * - 19 * - 6 + + 6 - - 13 + - - 68 * COUNT( * ) + + + COUNT( * ) * + ( - 1 ) AS col1
----
8750

skipif mysql # not compatible
query I rowsort label-5164
SELECT 76 * - 19 * - 6 + + 6 - - 13 + - - 68 * COUNT ( * ) + + + COUNT ( * ) * + ( - 1 ) AS col1
----
8750

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT ALL - + COUNT( * ) * - 92
----
92

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL - + COUNT ( * ) * - 92
----
92

query I rowsort
SELECT ALL + + ( 80 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5167
SELECT ALL + CAST( - + MAX( DISTINCT + + 38 ) AS SIGNED ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL + CAST ( - + MAX ( DISTINCT + + 38 ) AS INTEGER ) AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5168
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT - - 26 + COUNT( * ) - 59 * - + COUNT( * ) + + + 7
----
93

skipif mysql # not compatible
query I rowsort label-5169
SELECT - - 26 + COUNT ( * ) - 59 * - + COUNT ( * ) + + + 7
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5170
SELECT - 45 DIV - 2
----
22

skipif mysql # not compatible
query I rowsort label-5170
SELECT - 45 / - 2
----
22

query I rowsort
SELECT ALL - - 52 * - - 71
----
3692

query I rowsort
SELECT ALL + + ( + 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL - COUNT( * ) * 74 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL - COUNT ( * ) * 74 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL + SUM( + 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL + SUM ( + 5 ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT + 74 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-5175
SELECT + 74 / 85
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5176
SELECT 84 * 96 DIV CASE + 40 WHEN - - 3 THEN NULL ELSE - + 39 END * - - COUNT( DISTINCT 34 ) + COALESCE ( - 62, 89 ) + + 88 AS col2
----
-180

skipif mysql # not compatible
query I rowsort label-5176
SELECT 84 * 96 / CASE + 40 WHEN - - 3 THEN NULL ELSE - + 39 END * - - COUNT ( DISTINCT 34 ) + COALESCE ( - 62, 89 ) + + 88 AS col2
----
-180

query I rowsort
SELECT - 38 + - 82 + - 66 * - + 83 + + 19 AS col0
----
5377

query I rowsort
SELECT DISTINCT 50 + - 80 - - + 32
----
2

query I rowsort
SELECT DISTINCT 26 + - 4
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5180
SELECT DISTINCT ( - 6 ), + COUNT( * ) AS col2
----
-6
1

skipif mysql # not compatible
query II rowsort label-5180
SELECT DISTINCT ( - 6 ), + COUNT ( * ) AS col2
----
-6
1

query II rowsort
SELECT - 61 - + + 71 col1, 23 - 55 AS col1
----
-132
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT - 78 DIV - + 78
----
1

skipif mysql # not compatible
query I rowsort label-5182
SELECT - 78 / - + 78
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT + 84 + - 84 - ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5183
SELECT + 84 + - 84 - ( COUNT ( * ) )
----
-1

query II rowsort
SELECT DISTINCT 90 + - 11 AS col1, 96
----
79
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT - MIN( ALL - 62 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-5185
SELECT - MIN ( ALL - 62 ) col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT DISTINCT - 4 + - COUNT( * ) + - ( + 56 )
----
-61

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT - 4 + - COUNT ( * ) + - ( + 56 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5187
SELECT + + CAST( NULL AS SIGNED ) + ( + 11 ) + - 99 + + + 33 + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT + + CAST ( NULL AS INTEGER ) + ( + 11 ) + - 99 + + + 33 + 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT DISTINCT 16 - + 30 + CASE + - 46 WHEN - SUM( ALL - 68 ) THEN - 1 END * - 85 / + 84 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT 16 - + 30 + CASE + - 46 WHEN - SUM ( ALL - 68 ) THEN - 1 END * - 85 / + 84 / COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT - 30 DIV - 72 + + + 10 + - - ( + COALESCE ( - - ( - 18 ), - 13 ) ) * 3 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-5189
SELECT - 30 / - 72 + + + 10 + - - ( + COALESCE ( - - ( - 18 ), - 13 ) ) * 3 AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5190
SELECT + 17 * - CAST( - - 13 AS SIGNED ) col1
----
-221

skipif mysql # not compatible
query I rowsort label-5190
SELECT + 17 * - CAST ( - - 13 AS INTEGER ) col1
----
-221

query II rowsort
SELECT + + 66 + - 38 AS col2, + 15 * + + 20
----
28
300

query I rowsort
SELECT ALL + 60 - + 95 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT ALL MAX( + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL MAX ( + 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT + - 80 * + CASE + 24 WHEN + 2 * + + 69 * 41 THEN + + 69 + + - 28 ELSE NULL END * - COALESCE ( + 82, 18 - CASE - 16 WHEN + COUNT( * ) * 16 THEN + 18 WHEN - CASE WHEN NULL = NULL THEN + 6 END THEN + 71 * 25 ELSE 90 END * 63 ) * + 88 + 77 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5194
SELECT + - 80 * + CASE + 24 WHEN + 2 * + + 69 * 41 THEN + + 69 + + - 28 ELSE NULL END * - COALESCE ( + 82, 18 - CASE - 16 WHEN + COUNT ( * ) * 16 THEN + 18 WHEN - CASE WHEN NULL = NULL THEN + 6 END THEN + 71 * 25 ELSE 90 END * 63 ) * + 88 + 77 * + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT ALL + ( - - 53 ) AS col1, - 43 AS col1
----
53
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5196
SELECT - CAST( + SUM( DISTINCT 18 ) AS SIGNED ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-5196
SELECT - CAST ( + SUM ( DISTINCT 18 ) AS INTEGER ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT ALL - 36 * + COALESCE ( - 48, NULLIF ( 18, - 27 ) DIV + + CASE + + 94 WHEN + 36 - + 17 THEN NULL ELSE - ( + 50 ) * NULLIF ( + 97, + 57 ) END, 47 )
----
1728

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL - 36 * + COALESCE ( - 48, NULLIF ( 18, - 27 ) / + + CASE + + 94 WHEN + 36 - + 17 THEN NULL ELSE - ( + 50 ) * NULLIF ( + 97, + 57 ) END, 47 )
----
1728

query I rowsort
SELECT ALL 76 * ( - 4 ) col1
----
-304

query I rowsort
SELECT ALL - + 16 * 85 * - 80 col0
----
108800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT ALL 3 * - 90 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL 3 * - 90 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ( - - 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5202
SELECT - CASE - MAX( DISTINCT + 43 ) WHEN - + 84 THEN + CAST( NULL AS SIGNED ) * - - 53 WHEN - 4 THEN NULL ELSE + 84 END + + 14 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5202
SELECT - CASE - MAX ( DISTINCT + 43 ) WHEN - + 84 THEN + CAST ( NULL AS INTEGER ) * - - 53 WHEN - 4 THEN NULL ELSE + 84 END + + 14 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT - 33 * + + COUNT( * ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-5203
SELECT - 33 * + + COUNT ( * ) AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT + CAST( - 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-5204
SELECT + CAST ( - 15 AS INTEGER )
----
-15

query I rowsort
SELECT ALL + 18 * - - 4 + - - 28 * + 91 AS col0
----
2620

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ALL - COUNT( * ) * + - 91 + + 42 * - COUNT( * ) col2
----
49

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL - COUNT ( * ) * + - 91 + + 42 * - COUNT ( * ) col2
----
49

query I rowsort
SELECT - 21 - 62 AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) * + + 98 + - 84 * - 15 * + 90 * - 98
----
-11113298

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) * + + 98 + - 84 * - 15 * + 90 * - 98
----
-11113298

query I rowsort
SELECT ALL - 7 * - 0 * - 45 + 89 + 55 + + 72 AS col2
----
216

query I rowsort
SELECT ALL + 80 * 69
----
5520

query II rowsort
SELECT COALESCE ( - 47, + ( 63 ), - + 63 ), + ( + - 88 ) AS col0
----
-47
-88

query II rowsort
SELECT + 17 col1, 34 * + 25 AS col1
----
17
850

query I rowsort
SELECT + 61 + - ( - ( ( + - 67 ) ) ) AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT - CASE + 81 WHEN - 81 / - CAST( NULL AS SIGNED ) * + SUM( + 76 ) + - 6 THEN 27 ELSE + 17 END * + 82 * 10 + 22 AS col2
----
-13918

skipif mysql # not compatible
query I rowsort label-5214
SELECT - CASE + 81 WHEN - 81 / - CAST ( NULL AS INTEGER ) * + SUM ( + 76 ) + - 6 THEN 27 ELSE + 17 END * + 82 * 10 + 22 AS col2
----
-13918

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT DISTINCT ( 75 ) * 44 + COUNT( * ) + 37 * - - ( + + ( + NULLIF ( + + ( - 30 ), 57 + ( 2 ) * - 39 ) ) ) AS col2
----
2191

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT ( 75 ) * 44 + COUNT ( * ) + 37 * - - ( + + ( + NULLIF ( + + ( - 30 ), 57 + ( 2 ) * - 39 ) ) ) AS col2
----
2191

query I rowsort
SELECT ALL - 17 * + + 64
----
-1088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5217
SELECT ALL - NULLIF ( + - CAST( - 6 AS SIGNED ), + + COUNT( * ) + - MIN( ALL - 87 ) + + - CAST( + + 8 AS SIGNED ) ) * - 77 + 37 - COUNT( * ) + ( + 42 + + 91 )
----
631

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL - NULLIF ( + - CAST ( - 6 AS INTEGER ), + + COUNT ( * ) + - MIN ( ALL - 87 ) + + - CAST ( + + 8 AS INTEGER ) ) * - 77 + 37 - COUNT ( * ) + ( + 42 + + 91 )
----
631

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT - NULLIF ( - - 16, 75 / - 49 * 40 * + + 22 ) * 43 * + COALESCE ( + - 74, + - COUNT( * ) + - 28 )
----
50912

skipif mysql # not compatible
query I rowsort label-5218
SELECT - NULLIF ( - - 16, 75 / - 49 * 40 * + + 22 ) * 43 * + COALESCE ( + - 74, + - COUNT ( * ) + - 28 )
----
50912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT ALL 76 * + + ( 73 ) * - 15 + 37 / + + CASE + - 36 WHEN + CASE + NULLIF ( + - 46, + 90 ) WHEN 36 THEN NULL ELSE - CAST( NULL AS SIGNED ) END THEN 68 - 56 WHEN CASE + 59 WHEN + 84 THEN 4 END THEN NULL END + - 8 - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL 76 * + + ( 73 ) * - 15 + 37 / + + CASE + - 36 WHEN + CASE + NULLIF ( + - 46, + 90 ) WHEN 36 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END THEN 68 - 56 WHEN CASE + 59 WHEN + 84 THEN 4 END THEN NULL END + - 8 - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT - 7 + + COUNT( + 8 ) * 22 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5220
SELECT - 7 + + COUNT ( + 8 ) * 22 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5221
SELECT COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) + - ( - 29 ) col1
----
29

skipif mysql # not compatible
query I rowsort label-5221
SELECT COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + - ( - 29 ) col1
----
29

query I rowsort
SELECT 1 - - NULLIF ( + ( COALESCE ( 6, + - 64 * + 24 ) ), 54 / + ( + ( 39 ) ) + - 50 ) AS col1
----
7

query I rowsort
SELECT - 18 * + + 38 + + - 31 * - 23 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT - SUM( 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-5224
SELECT - SUM ( 65 )
----
-65

query II rowsort
SELECT - - 36, 57 col2
----
36
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL - COUNT( DISTINCT - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - COUNT ( DISTINCT - 72 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5227
SELECT ALL + CAST( NULL AS SIGNED ) * + CASE 9 WHEN MAX( DISTINCT CAST( NULL AS DECIMAL ) ) - SUM( - 79 ) THEN COUNT( * ) * - + 1 WHEN - 47 THEN 38 + 35 END + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL + CAST ( NULL AS INTEGER ) * + CASE 9 WHEN MAX ( DISTINCT CAST ( NULL AS REAL ) ) - SUM ( - 79 ) THEN COUNT ( * ) * - + 1 WHEN - 47 THEN 38 + 35 END + 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT COALESCE ( + 51, 92 * + NULLIF ( 24, - 89 ) + 42 + - + 85 - - COUNT( * ), - 96 ) * - ( + ( COUNT( * ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-5228
SELECT COALESCE ( + 51, 92 * + NULLIF ( 24, - 89 ) + 42 + - + 85 - - COUNT ( * ), - 96 ) * - ( + ( COUNT ( * ) ) )
----
-51

query II rowsort
SELECT 70 - - + 1 + 79 AS col0, 72
----
150
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT - COALESCE ( + 63, - COUNT( * ) + - ( - - COUNT( * ) ) )
----
-63

skipif mysql # not compatible
query I rowsort label-5230
SELECT - COALESCE ( + 63, - COUNT ( * ) + - ( - - COUNT ( * ) ) )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT - ( + 75 ) + 8 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT - ( + 75 ) + 8 * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT ALL - - SUM( ALL - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL - - SUM ( ALL - 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT + COUNT( DISTINCT - 0 ) * - COALESCE ( + 82, 1, - ( - + 65 ) ) * + MAX( ALL - + 70 ) + + ( - COALESCE ( + 96, COUNT( * ), + ( + COUNT( * ) ) + + COUNT( DISTINCT + 20 + ( + 79 - - ( - 3 ) ) ) ) ) + - 67 * + COUNT( * )
----
5577

skipif mysql # not compatible
query I rowsort label-5233
SELECT + COUNT ( DISTINCT - 0 ) * - COALESCE ( + 82, 1, - ( - + 65 ) ) * + MAX ( ALL - + 70 ) + + ( - COALESCE ( + 96, COUNT ( * ), + ( + COUNT ( * ) ) + + COUNT ( DISTINCT + 20 + ( + 79 - - ( - 3 ) ) ) ) ) + - 67 * + COUNT ( * )
----
5577

query I rowsort
SELECT ALL 87 + + 25 AS col0
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT DISTINCT - 55 DIV 75 col0
----
0

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT - 55 / 75 col0
----
0

query I rowsort
SELECT ALL NULLIF ( + 48, + 7 ) + - + 67 - + 62
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT 84 * COUNT( * ) + + - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-5237
SELECT 84 * COUNT ( * ) + + - COUNT ( * )
----
83

query III rowsort
SELECT DISTINCT - 72 col0, + 15 + + + 45 + 88 AS col1, + 72
----
-72
148
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5239
SELECT COUNT( * ) DIV COUNT( * ) + MIN( 81 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5239
SELECT COUNT ( * ) / COUNT ( * ) + MIN ( 81 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT DISTINCT CASE + NULLIF ( + COUNT( * ), ( - + COALESCE ( - - 93, - + 34 ) ) * + 18 - 12 ) WHEN 65 * + 56 - - 82 THEN 21 / 19 + 5 / + 4 WHEN CASE 19 WHEN ( + COUNT( * ) ) + 15 THEN NULL WHEN 78 / + 3 THEN + 78 WHEN - 68 * ( COUNT( * ) ) + CASE + 61 + - COUNT( ALL + 14 ) WHEN + 15 THEN NULL ELSE + COUNT( * ) END THEN NULL ELSE - MAX( - 20 ) - 71 * - NULLIF ( - 89, 13 ) END + - 84 THEN ( 72 ) * 13 - + 98 ELSE NULL END * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT CASE + NULLIF ( + COUNT ( * ), ( - + COALESCE ( - - 93, - + 34 ) ) * + 18 - 12 ) WHEN 65 * + 56 - - 82 THEN 21 / 19 + 5 / + 4 WHEN CASE 19 WHEN ( + COUNT ( * ) ) + 15 THEN NULL WHEN 78 / + 3 THEN + 78 WHEN - 68 * ( COUNT ( * ) ) + CASE + 61 + - COUNT ( ALL + 14 ) WHEN + 15 THEN NULL ELSE + COUNT ( * ) END THEN NULL ELSE - MAX ( - 20 ) - 71 * - NULLIF ( - 89, 13 ) END + - 84 THEN ( 72 ) * 13 - + 98 ELSE NULL END * 65
----
NULL

query I rowsort
SELECT ALL CASE - 63 WHEN - NULLIF ( - 63, AVG ( 78 ) ) THEN - 94 WHEN - - 24 THEN NULL END + + 15 - 34 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5242
SELECT COUNT( * ) * + - CASE 32 WHEN + 84 THEN CAST( 83 AS SIGNED ) - + + AVG ( + - 53 ) END * + AVG ( - 13 ) + + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5242
SELECT COUNT ( * ) * + - CASE 32 WHEN + 84 THEN CAST ( 83 AS INTEGER ) - + + AVG ( + - 53 ) END * + AVG ( - 13 ) + + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5243
SELECT ALL 56 + + COUNT( * ), - 50 col0
----
57
-50

skipif mysql # not compatible
query II rowsort label-5243
SELECT ALL 56 + + COUNT ( * ), - 50 col0
----
57
-50

query I rowsort
SELECT DISTINCT 14 + - + 29 AS col2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5245
SELECT COUNT( * ) * - + COUNT( * ) + - COUNT( * ) + - 62 + - - COUNT( * ) DIV - ( - 81 ) * + + 11 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-5245
SELECT COUNT ( * ) * - + COUNT ( * ) + - COUNT ( * ) + - 62 + - - COUNT ( * ) / - ( - 81 ) * + + 11 AS col1
----
-64

query I rowsort
SELECT + 78 * - 67 + 88 - - 34
----
-5104

onlyif mysql # aggregate syntax: 
query II rowsort label-5247
SELECT ALL - COUNT( * ), 67 AS col0
----
-1
67

skipif mysql # not compatible
query II rowsort label-5247
SELECT ALL - COUNT ( * ), 67 AS col0
----
-1
67

query II rowsort
SELECT + 72, + 68 AS col1
----
72
68

query II rowsort
SELECT + 73 AS col0, + 70 AS col1
----
73
70

query I rowsort
SELECT DISTINCT ( - + 25 ) - + 24
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT CAST( - 54 AS SIGNED ) * - 59
----
3186

skipif mysql # not compatible
query I rowsort label-5251
SELECT CAST ( - 54 AS INTEGER ) * - 59
----
3186

query I rowsort
SELECT 74 + + + 75 AS col2
----
149

query I rowsort
SELECT DISTINCT + 40 - + 8 + + 13
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5254
SELECT - 38 AS col1, + MAX( - 71 ) * - 23 * 42 * + + 7
----
-38
480102

skipif mysql # not compatible
query II rowsort label-5254
SELECT - 38 AS col1, + MAX ( - 71 ) * - 23 * 42 * + + 7
----
-38
480102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5255
SELECT ALL 66 DIV - + COUNT( * ) AS col0, - 51 + + 31 * - ( + 30 ) + + 26 + - - COUNT( * )
----
-66
-954

skipif mysql # not compatible
query II rowsort label-5255
SELECT ALL 66 / - + COUNT ( * ) AS col0, - 51 + + 31 * - ( + 30 ) + + 26 + - - COUNT ( * )
----
-66
-954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5256
SELECT 93 * + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT 93 * + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5257
SELECT CAST( COUNT( ALL + NULLIF ( + + NULLIF ( - ( - - 2 ), - - 30 ), - + 17 ) ) AS SIGNED ) + - 65 DIV + 72 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5257
SELECT CAST ( COUNT ( ALL + NULLIF ( + + NULLIF ( - ( - - 2 ), - - 30 ), - + 17 ) ) AS INTEGER ) + - 65 / + 72 AS col2
----
1

query I rowsort
SELECT + 16 - + 52 AS col1
----
-36

query I rowsort
SELECT - + ( + 50 )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5260
SELECT 5 + CAST( + - 46 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-5260
SELECT 5 + CAST ( + - 46 AS INTEGER )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-5261
SELECT ALL 5 AS col1, + 88 + + MIN( ALL + 65 )
----
5
153

skipif mysql # not compatible
query II rowsort label-5261
SELECT ALL 5 AS col1, + 88 + + MIN ( ALL + 65 )
----
5
153

onlyif mysql # DIV for integer division: 
query I rowsort label-5262
SELECT - 39 DIV + - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5262
SELECT - 39 / + - 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT DISTINCT - 91 * - + 73 + - MIN( 21 ) * + + 7 AS col2
----
6496

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT - 91 * - + 73 + - MIN ( 21 ) * + + 7 AS col2
----
6496

query I rowsort
SELECT DISTINCT + 33 * + 89
----
2937

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT 84 + COUNT( * ) * + 95
----
179

skipif mysql # not compatible
query I rowsort label-5265
SELECT 84 + COUNT ( * ) * + 95
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5266
SELECT ALL ( + CAST( - 26 AS SIGNED ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL ( + CAST ( - 26 AS INTEGER ) ) AS col1
----
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5267
SELECT ALL + 8 + - - 47 - 17 * + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL + 8 + - - 47 - 17 * + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5268
SELECT 63 AS col1, + 90 + COUNT( * )
----
63
91

skipif mysql # not compatible
query II rowsort label-5268
SELECT 63 AS col1, + 90 + COUNT ( * )
----
63
91

query I rowsort
SELECT ALL + 59 * + 92
----
5428

query I rowsort
SELECT + 55 * + 28 * + + ( 75 ) AS col0
----
115500

query I rowsort
SELECT - 25 + + + 30 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT COALESCE ( + - COUNT( * ), 58 * - 18 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5272
SELECT COALESCE ( + - COUNT ( * ), 58 * - 18 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5273
SELECT ALL - CAST( + 34 AS SIGNED ) * - 78 + - + 24 * 90 AS col2
----
492

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL - CAST ( + 34 AS INTEGER ) * - 78 + - + 24 * 90 AS col2
----
492

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL - + COALESCE ( - + 37, + 52, + 26 - + COUNT( * ) * + ( - - 94 ) + + 22 * - - CASE 94 WHEN - 33 THEN - 47 * ( 50 ) END ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL - + COALESCE ( - + 37, + 52, + 26 - + COUNT ( * ) * + ( - - 94 ) + + 22 * - - CASE 94 WHEN - 33 THEN - 47 * ( 50 ) END ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT - 2 * + + COUNT( * ) + + - COUNT( 93 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT - 2 * + + COUNT ( * ) + + - COUNT ( 93 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT MIN( - 64 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-5276
SELECT MIN ( - 64 ) AS col1
----
-64

query I rowsort
SELECT DISTINCT - CASE + 65 WHEN + NULLIF ( - 88, ( 86 ) ) THEN NULL WHEN + 63 + + 88 THEN - 38 END
----
NULL

query I rowsort
SELECT ALL + ( + - ( 94 ) ) * - 91 + + + 88 AS col1
----
8642

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5279
SELECT 53 / + - 64 - + + 19 + 63 / - - 33 + + 35 + - - 64 + ( - 8 ) / 85 / + ( + CAST( NULL AS DECIMAL ) ) * - 16 + CASE 22 WHEN 87 THEN 73 END * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5279
SELECT 53 / + - 64 - + + 19 + 63 / - - 33 + + 35 + - - 64 + ( - 8 ) / 85 / + ( + CAST ( NULL AS REAL ) ) * - 16 + CASE 22 WHEN 87 THEN 73 END * 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT 59 * - COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5280
SELECT 59 * - COUNT ( * ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5281
SELECT MIN( DISTINCT - 8 ), - 56 - 63 col2
----
-8
-119

skipif mysql # not compatible
query II rowsort label-5281
SELECT MIN ( DISTINCT - 8 ), - 56 - 63 col2
----
-8
-119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5282
SELECT ALL 32 DIV + 70, SUM( + 22 ) AS col1
----
0
22

skipif mysql # not compatible
query II rowsort label-5282
SELECT ALL 32 / + 70, SUM ( + 22 ) AS col1
----
0
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT 26 * + - 69 + COUNT( * )
----
-1793

skipif mysql # not compatible
query I rowsort label-5283
SELECT 26 * + - 69 + COUNT ( * )
----
-1793

onlyif mysql # DIV for integer division: 
query I rowsort label-5284
SELECT DISTINCT 67 DIV ( + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT 67 / ( + 61 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5285
SELECT ALL 24 * + ( - CAST( + - 67 AS SIGNED ) ) - + ( COUNT( * ) )
----
1607

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL 24 * + ( - CAST ( + - 67 AS INTEGER ) ) - + ( COUNT ( * ) )
----
1607

query II rowsort
SELECT ALL 2 * 30 col0, - 22 AS col1
----
60
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5287
SELECT + ( + 72 ) - + - MIN( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT + ( + 72 ) - + - MIN ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ALL MIN( DISTINCT + - 43 ) * - - 9
----
-387

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL MIN ( DISTINCT + - 43 ) * - - 9
----
-387

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5289
SELECT ALL 7 * + + 10, CASE + 20 WHEN + CAST( NULL AS SIGNED ) + - + 20 THEN NULL ELSE + + 22 END AS col0
----
70
22

skipif mysql # not compatible
query II rowsort label-5289
SELECT ALL 7 * + + 10, CASE + 20 WHEN + CAST ( NULL AS INTEGER ) + - + 20 THEN NULL ELSE + + 22 END AS col0
----
70
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT COUNT( + 7 ) * - COUNT( + 14 ) * + - 30 + + 91 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-5290
SELECT COUNT ( + 7 ) * - COUNT ( + 14 ) * + - 30 + + 91 AS col2
----
121

query I rowsort
SELECT + COALESCE ( - + 67, + 9 * 58 + + 14, 2 ) AS col1
----
-67

query I rowsort
SELECT + ( - 41 ) + - - 0 AS col1
----
-41

query I rowsort
SELECT + 54 * + + 75 * - - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL MIN( ( 47 ) ) * 67 AS col0
----
3149

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL MIN ( ( 47 ) ) * 67 AS col0
----
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT + ( - COUNT( * ) ) * + - 62 * 84 + - 60 * + 30 AS col0
----
3408

skipif mysql # not compatible
query I rowsort label-5295
SELECT + ( - COUNT ( * ) ) * + - 62 * 84 + - 60 * + 30 AS col0
----
3408

query I rowsort
SELECT DISTINCT - ( 67 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL + CASE + 38 WHEN - COUNT( * ) THEN CASE + - 67 WHEN - - 94 THEN NULL WHEN - 66 * COALESCE ( - 16, 32 * 63 * NULLIF ( 61, 70 ) * - COUNT( * ) ) THEN + 1 WHEN - 25 THEN NULL END * 82 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL + CASE + 38 WHEN - COUNT ( * ) THEN CASE + - 67 WHEN - - 94 THEN NULL WHEN - 66 * COALESCE ( - 16, 32 * 63 * NULLIF ( 61, 70 ) * - COUNT ( * ) ) THEN + 1 WHEN - 25 THEN NULL END * 82 END col2
----
NULL

query II rowsort
SELECT + + 93 * 6, + 42 AS col1
----
558
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL MIN( ALL - 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL MIN ( ALL - 51 ) AS col2
----
-51

query I rowsort
SELECT ALL - 12 + 36 - - 35 + 35
----
94

query I rowsort
SELECT ALL - 48 * 52 AS col0
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL + COUNT( * ) + 23 + + 11
----
35

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL + COUNT ( * ) + 23 + + 11
----
35

query I rowsort
SELECT ALL - + ( + + 76 ) * - 44
----
3344

query I rowsort
SELECT + 39 + - 5 + + 65 - - ( - 34 ) AS col0
----
65

query I rowsort
SELECT - + 91 - + 85
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL NULLIF ( + + 94, + + 65 * - + 86 ) * - NULLIF ( - 6, + 97 ) * - + MAX( DISTINCT + + 11 ) AS col1
----
-6204

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL NULLIF ( + + 94, + + 65 * - + 86 ) * - NULLIF ( - 6, + 97 ) * - + MAX ( DISTINCT + + 11 ) AS col1
----
-6204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5307
SELECT - - COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col1, 96 DIV - - ( 74 ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5307
SELECT - - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col1, 96 / - - ( 74 ) AS col2
----
NULL
1

query I rowsort
SELECT DISTINCT NULLIF ( 5, + 32 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5309
SELECT - + CAST( NULL AS SIGNED ) + - + 29 * - COUNT( * ) + + 87 / + 51 * - 63 + + + CASE - - COUNT( * ) WHEN SUM( ALL - 19 ) THEN NULL ELSE - - 41 END + - 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5309
SELECT - + CAST ( NULL AS INTEGER ) + - + 29 * - COUNT ( * ) + + 87 / + 51 * - 63 + + + CASE - - COUNT ( * ) WHEN SUM ( ALL - 19 ) THEN NULL ELSE - - 41 END + - 63 AS col0
----
NULL

query I rowsort
SELECT ALL + - 38 + + 99 AS col1
----
61

query I rowsort
SELECT ALL ( 74 ) col1
----
74

query II rowsort
SELECT 25, + ( 31 ) AS col1
----
25
31

query I rowsort
SELECT ALL - ( + + 50 ) + - - 73 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT 21 * COUNT( * ) + + 41 * - + 3 - + 39
----
-141

skipif mysql # not compatible
query I rowsort label-5314
SELECT 21 * COUNT ( * ) + + 41 * - + 3 - + 39
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT DISTINCT + COUNT( + 37 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT + COUNT ( + 37 ) AS col2
----
1

query I rowsort
SELECT 58 / - 26 * + 36 + 77 * + + 53 / + + CASE - 22 WHEN + 77 * + COALESCE ( + NULLIF ( - - 27, - + ( + - 23 ) + 26 / + 93 ), 60 ) THEN 58 END - 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5317
SELECT ALL + 4 AS col0, COUNT( * )
----
4
1

skipif mysql # not compatible
query II rowsort label-5317
SELECT ALL + 4 AS col0, COUNT ( * )
----
4
1

query I rowsort
SELECT - 38 + 34 AS col1
----
-4

query I rowsort
SELECT ( + - 74 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT - 32 + 58 - + MAX( + 62 )
----
-36

skipif mysql # not compatible
query I rowsort label-5320
SELECT - 32 + 58 - + MAX ( + 62 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT ALL + COUNT( + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL + COUNT ( + 30 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT + 70 * - 79 + + SUM( DISTINCT 27 )
----
-5503

skipif mysql # not compatible
query I rowsort label-5322
SELECT + 70 * - 79 + + SUM ( DISTINCT 27 )
----
-5503

onlyif mysql # aggregate syntax: 
query II rowsort label-5323
SELECT ALL + 39, MIN( + 33 ) AS col2
----
39
33

skipif mysql # not compatible
query II rowsort label-5323
SELECT ALL + 39, MIN ( + 33 ) AS col2
----
39
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT + SUM( + 33 ) col2
----
33

skipif mysql # not compatible
query I rowsort label-5324
SELECT + SUM ( + 33 ) col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT DISTINCT + NULLIF ( ( - - ( 95 ) ), 2 * - COUNT( * ) + 45 - + 74 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT + NULLIF ( ( - - ( 95 ) ), 2 * - COUNT ( * ) + 45 - + 74 ) AS col0
----
95

query I rowsort
SELECT ALL - 59 * - - 54 * + + 48 AS col1
----
-152928

query I rowsort
SELECT - 2 * - + 70
----
140

query II rowsort
SELECT + 54 + - 23 + 92 AS col0, - 91 AS col0
----
123
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5329
SELECT DISTINCT 78 DIV - 9 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT 78 / - 9 AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5330
SELECT - CAST( NULL AS SIGNED ) * CAST( - MAX( 93 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT - CAST ( NULL AS INTEGER ) * CAST ( - MAX ( 93 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT ALL + 44 * + COALESCE ( + COUNT( * ), 59 )
----
44

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL + 44 * + COALESCE ( + COUNT ( * ), 59 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT - COUNT( - 23 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5332
SELECT - COUNT ( - 23 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5333
SELECT DISTINCT + 27 * + 3 + 3 + COUNT( ALL CAST( - + 68 AS SIGNED ) ) * + NULLIF ( + NULLIF ( + 95, - CAST( - ( + - 78 ) AS SIGNED ) ), 33 + - MAX( 83 ) ) * - 85 + - COUNT( * ) col0
----
-7992

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT + 27 * + 3 + 3 + COUNT ( ALL CAST ( - + 68 AS INTEGER ) ) * + NULLIF ( + NULLIF ( + 95, - CAST ( - ( + - 78 ) AS INTEGER ) ), 33 + - MAX ( 83 ) ) * - 85 + - COUNT ( * ) col0
----
-7992

query I rowsort
SELECT ALL + 52 * + 75 AS col2
----
3900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5335
SELECT ALL 66 * + CASE - - 95 WHEN ( - - COALESCE ( - - 7, - + CASE + + 55 WHEN ( - 62 ) THEN + - ( - 11 ) END ) ) * ( + CAST( NULL AS SIGNED ) ) * + NULLIF ( + 19 * - 20 + ( - 47 ), 92 ) + - CAST( NULL AS SIGNED ) THEN NULL WHEN 5 THEN 37 * 51 END + 31 + - 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL 66 * + CASE - - 95 WHEN ( - - COALESCE ( - - 7, - + CASE + + 55 WHEN ( - 62 ) THEN + - ( - 11 ) END ) ) * ( + CAST ( NULL AS INTEGER ) ) * + NULLIF ( + 19 * - 20 + ( - 47 ), 92 ) + - CAST ( NULL AS INTEGER ) THEN NULL WHEN 5 THEN 37 * 51 END + 31 + - 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT DISTINCT CASE + MIN( ALL + 26 ) WHEN - + 70 THEN NULL WHEN 90 THEN + 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT CASE + MIN ( ALL + 26 ) WHEN - + 70 THEN NULL WHEN 90 THEN + 32 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 24 AS col0, - 46
----
24
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT DISTINCT + CAST( - 64 AS SIGNED ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT + CAST ( - 64 AS INTEGER ) AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5339
SELECT ALL - 26 + COUNT( * ) / - CAST( NULL AS SIGNED ) * - 15 - + CASE + ( 15 ) WHEN 24 / - 1 THEN + 54 END + 83 + + + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL - 26 + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * - 15 - + CASE + ( 15 ) WHEN 24 / - 1 THEN + 54 END + 83 + + + 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT + - COUNT( * ) + - 19
----
-20

skipif mysql # not compatible
query I rowsort label-5340
SELECT + - COUNT ( * ) + - 19
----
-20

onlyif mysql # aggregate syntax: 
query III rowsort label-5341
SELECT 61, + 65 * - 76 + COUNT( * ) AS col1, - ( + - 87 ) + - 76 * - 80 AS col0
----
61
-4939
6167

skipif mysql # not compatible
query III rowsort label-5341
SELECT 61, + 65 * - 76 + COUNT ( * ) AS col1, - ( + - 87 ) + - 76 * - 80 AS col0
----
61
-4939
6167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5342
SELECT DISTINCT COUNT( * ) + ( - MIN( + 17 ) ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT COUNT ( * ) + ( - MIN ( + 17 ) ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + + 87 - 46 AS col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5344
SELECT ( - COUNT( DISTINCT 13 ) ) AS col2, COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-5344
SELECT ( - COUNT ( DISTINCT 13 ) ) AS col2, COUNT ( * ) AS col1
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) AS col0
----
2

query I rowsort
SELECT - 0 * - 70 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5347
SELECT - COUNT( DISTINCT + 15 ) + + CAST( - + 72 AS SIGNED ), 41 + + 69 * - + COUNT( * ) AS col2
----
-73
-28

skipif mysql # not compatible
query II rowsort label-5347
SELECT - COUNT ( DISTINCT + 15 ) + + CAST ( - + 72 AS INTEGER ), 41 + + 69 * - + COUNT ( * ) AS col2
----
-73
-28

query I rowsort
SELECT ALL CASE + 71 WHEN - 24 / + - 42 - - 12 THEN NULL ELSE - 93 END
----
-93

query I rowsort
SELECT ALL - 90 - + ( - - 5 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT + COUNT( * ) * + + 38 * + - MIN( ALL - 18 ) * COUNT( * ) AS col0
----
684

skipif mysql # not compatible
query I rowsort label-5350
SELECT + COUNT ( * ) * + + 38 * + - MIN ( ALL - 18 ) * COUNT ( * ) AS col0
----
684

query I rowsort
SELECT ALL ( - - 60 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5352
SELECT + COUNT( * ) DIV + - 21 * - 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT + COUNT ( * ) / + - 21 * - 13 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT DISTINCT 56 * COALESCE ( + 0, 89 * 59 * - MAX( + - 34 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT 56 * COALESCE ( + 0, 89 * 59 * - MAX ( + - 34 ) )
----
0

query I rowsort
SELECT ALL - NULLIF ( - 75, - 49 * + - 96 )
----
75

query I rowsort
SELECT ALL - 28 * + 47 AS col0
----
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT DISTINCT - NULLIF ( + 20, + COUNT( * ) ) * - - 73
----
-1460

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT - NULLIF ( + 20, + COUNT ( * ) ) * - - 73
----
-1460

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5357
SELECT ALL + 55 + + 95 AS col1, 94 + + CAST( NULL AS SIGNED )
----
150
NULL

skipif mysql # not compatible
query II rowsort label-5357
SELECT ALL + 55 + + 95 AS col1, 94 + + CAST ( NULL AS INTEGER )
----
150
NULL

query I rowsort
SELECT DISTINCT + 83 + - 86 + - 78 AS col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5359
SELECT - 28 DIV - + 43 - CAST( - 50 AS SIGNED ) DIV + 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5359
SELECT - 28 / - + 43 - CAST ( - 50 AS INTEGER ) / + 63 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5360
SELECT - 85 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT - 85 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5361
SELECT + 94 DIV - 52, + 89 + 82 - + 94 + COUNT( * ) AS col1
----
-1
78

skipif mysql # not compatible
query II rowsort label-5361
SELECT + 94 / - 52, + 89 + 82 - + 94 + COUNT ( * ) AS col1
----
-1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT + SUM( DISTINCT + - 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-5362
SELECT + SUM ( DISTINCT + - 75 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT CASE WHEN - COUNT( * ) <= ( + 48 / + CASE - MIN( 34 ) WHEN + + 60 THEN + NULLIF ( COUNT( * ), - + 20 * ( + + 51 ) * + 4 + 75 ) + 4 * 78 END + + COUNT( * ) ) THEN 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT CASE WHEN - COUNT ( * ) <= ( + 48 / + CASE - MIN ( 34 ) WHEN + + 60 THEN + NULLIF ( COUNT ( * ), - + 20 * ( + + 51 ) * + 4 + 75 ) + 4 * 78 END + + COUNT ( * ) ) THEN 35 END
----
NULL

query I rowsort
SELECT DISTINCT - 30 + + 90 AS col0
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-5365
SELECT 39 DIV 33, - 79 AS col0
----
1
-79

skipif mysql # not compatible
query II rowsort label-5365
SELECT 39 / 33, - 79 AS col0
----
1
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT - ( COUNT( ALL - 88 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5366
SELECT - ( COUNT ( ALL - 88 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5367
SELECT DISTINCT + 27 DIV COUNT( * ) + + + 51 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT + 27 / COUNT ( * ) + + + 51 AS col0
----
78

query I rowsort
SELECT ALL - 69 - - 68 + + 51 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT + COUNT( * ) + + COUNT( 16 )
----
2

skipif mysql # not compatible
query I rowsort label-5369
SELECT + COUNT ( * ) + + COUNT ( 16 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL - CASE - 62 WHEN + COUNT( DISTINCT + 44 ) THEN - 91 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL - CASE - 62 WHEN + COUNT ( DISTINCT + 44 ) THEN - 91 ELSE NULL END
----
NULL

query I rowsort
SELECT + 24 + - 72 AS col2
----
-48

query I rowsort
SELECT 69 * + + 84 col0
----
5796

query I rowsort
SELECT 43 + - 15 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT 49 * - ( + 64 ) * - - 65 * - - COALESCE ( + + COALESCE ( + COUNT( * ), - 26 ), + + ( - COUNT( * ) ), + 26 )
----
-203840

skipif mysql # not compatible
query I rowsort label-5374
SELECT 49 * - ( + 64 ) * - - 65 * - - COALESCE ( + + COALESCE ( + COUNT ( * ), - 26 ), + + ( - COUNT ( * ) ), + 26 )
----
-203840

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT DISTINCT - CASE - - 53 WHEN 34 + - + 92 + + + SUM( 48 ) THEN + COUNT( * ) * + ( ( 67 ) ) * 55 + + - ( 41 ) WHEN + 83 THEN NULL END * + - 28 * ( - 35 ) - + NULLIF ( + 76, - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT - CASE - - 53 WHEN 34 + - + 92 + + + SUM ( 48 ) THEN + COUNT ( * ) * + ( ( 67 ) ) * 55 + + - ( 41 ) WHEN + 83 THEN NULL END * + - 28 * ( - 35 ) - + NULLIF ( + 76, - 8 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT 58 + - ( + COUNT( * ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5376
SELECT 58 + - ( + COUNT ( * ) ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT COUNT( + 84 ) * + 15
----
15

skipif mysql # not compatible
query I rowsort label-5377
SELECT COUNT ( + 84 ) * + 15
----
15

query II rowsort
SELECT ALL 9, + 36 AS col0
----
9
36

query I rowsort
SELECT 77 + 86 AS col1
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT 48 + - 56 * + + COUNT( DISTINCT - + 0 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5380
SELECT 48 + - 56 * + + COUNT ( DISTINCT - + 0 ) AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5381
SELECT CASE - 32 WHEN - 76 + + 83 * + 91 THEN NULL ELSE + 55 END + - CAST( NULL AS SIGNED ) * MIN( ALL + 75 ) + - 39 * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT CASE - 32 WHEN - 76 + + 83 * + 91 THEN NULL ELSE + 55 END + - CAST ( NULL AS INTEGER ) * MIN ( ALL + 75 ) + - 39 * - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT + ( - 90 ) * 63 + + 34 * - 39 + - COUNT( * ) * + 54
----
-7050

skipif mysql # not compatible
query I rowsort label-5382
SELECT + ( - 90 ) * 63 + + 34 * - 39 + - COUNT ( * ) * + 54
----
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT ALL 43 + + - COUNT( * ) * - 45
----
88

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL 43 + + - COUNT ( * ) * - 45
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5384
SELECT COUNT( * ) DIV + + 43 + 40 + COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5384
SELECT COUNT ( * ) / + + 43 + 40 + COUNT ( * ) AS col0
----
41

query I rowsort
SELECT 74 * - 36
----
-2664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5386
SELECT - 86 DIV 7 + + - ( + 21 ) - + MIN( 3 ) * - - 24 * + 94 * 0 - + 78
----
-111

skipif mysql # not compatible
query I rowsort label-5386
SELECT - 86 / 7 + + - ( + 21 ) - + MIN ( 3 ) * - - 24 * + 94 * 0 - + 78
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-5387
SELECT ALL COUNT( * ) * + MAX( ALL 86 ), - MAX( ALL - + 54 ) AS col0
----
86
54

skipif mysql # not compatible
query II rowsort label-5387
SELECT ALL COUNT ( * ) * + MAX ( ALL 86 ), - MAX ( ALL - + 54 ) AS col0
----
86
54

query I rowsort
SELECT ALL 49 * + 3 AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT ALL + ( 42 ) + 57 + - - SUM( + - 21 ) - - - COUNT( * ) * + 44
----
34

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL + ( 42 ) + 57 + - - SUM ( + - 21 ) - - - COUNT ( * ) * + 44
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT - COUNT( * ) * 38 + - + COUNT( * ) - 77 * SUM( ALL - 85 ) + 85 AS col2
----
6591

skipif mysql # not compatible
query I rowsort label-5390
SELECT - COUNT ( * ) * 38 + - + COUNT ( * ) - 77 * SUM ( ALL - 85 ) + 85 AS col2
----
6591

query I rowsort
SELECT + NULLIF ( + 86, - 13 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT ALL - COUNT( - 89 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL - COUNT ( - 89 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT + - SUM( ALL - + 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5393
SELECT + - SUM ( ALL - + 82 ) AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5394
SELECT + + 30 AS col2, - 91 * + 15 * - 73 DIV COUNT( * )
----
30
99645

skipif mysql # not compatible
query II rowsort label-5394
SELECT + + 30 AS col2, - 91 * + 15 * - 73 / COUNT ( * )
----
30
99645

query I rowsort
SELECT ALL + - 23 * + 4
----
-92

query I rowsort
SELECT + 42 + 14 AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-5397
SELECT DISTINCT - + 11 - + COUNT( * ) + + 14 - 86 + - 25 * 70 + + ( + COUNT( * ) ) + 77 * 70, - 40 AS col1
----
3557
-40

skipif mysql # not compatible
query II rowsort label-5397
SELECT DISTINCT - + 11 - + COUNT ( * ) + + 14 - 86 + - 25 * 70 + + ( + COUNT ( * ) ) + 77 * 70, - 40 AS col1
----
3557
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT + MIN( 78 ) * + + 11 AS col0
----
858

skipif mysql # not compatible
query I rowsort label-5398
SELECT + MIN ( 78 ) * + + 11 AS col0
----
858

query I rowsort
SELECT ALL + + 31 * - 65 + - + 69
----
-2084

query II rowsort
SELECT + 32 col1, - 4
----
32
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT DISTINCT - + 19 - + + COUNT( ALL 82 )
----
-20

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT - + 19 - + + COUNT ( ALL 82 )
----
-20

query I rowsort
SELECT - 22 * - + 14 AS col1
----
308

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5403
SELECT DISTINCT + - COALESCE ( - 25, 3, + 14 DIV - + 41 + + - COUNT( * ) + - - 65 * + - NULLIF ( + 9, 14 DIV - + 68 ) ) DIV - + 21
----
-1

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT + - COALESCE ( - 25, 3, + 14 / - + 41 + + - COUNT ( * ) + - - 65 * + - NULLIF ( + 9, 14 / - + 68 ) ) / - + 21
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT DISTINCT COUNT( ALL + 17 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT COUNT ( ALL + 17 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT ALL COUNT( * ) * - - 36 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL COUNT ( * ) * - - 36 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT - ( - + 71 ) * - MAX( ( 85 ) ) * COUNT( * ) + 66 AS col2
----
-5969

skipif mysql # not compatible
query I rowsort label-5406
SELECT - ( - + 71 ) * - MAX ( ( 85 ) ) * COUNT ( * ) + 66 AS col2
----
-5969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5407
SELECT ALL - 26 DIV + COUNT( DISTINCT CAST( - ( + 17 ) AS SIGNED ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL - 26 / + COUNT ( DISTINCT CAST ( - ( + 17 ) AS INTEGER ) ) AS col0
----
-26

query II rowsort
SELECT - 53 col1, - 93 + 65
----
-53
-28

query II rowsort
SELECT 27, + 97 AS col2
----
27
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5410
SELECT - COUNT( * ) AS col0, - 30 + - MIN( ALL + 54 ) AS col0
----
-1
-84

skipif mysql # not compatible
query II rowsort label-5410
SELECT - COUNT ( * ) AS col0, - 30 + - MIN ( ALL + 54 ) AS col0
----
-1
-84

query I rowsort
SELECT + ( - 23 ) * 98 col0
----
-2254

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT - NULLIF ( - + COUNT( * ), + - 47 ) * - 17 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-5412
SELECT - NULLIF ( - + COUNT ( * ), + - 47 ) * - 17 AS col1
----
-17

query II rowsort
SELECT + 55 + + 46, + 96 AS col0
----
101
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL 61 * COUNT( * ) * + 87 AS col1
----
5307

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL 61 * COUNT ( * ) * + 87 AS col1
----
5307

query I rowsort
SELECT ALL 37 + - - 65 AS col2
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-5416
SELECT - COUNT( * ) AS col1, 29 + + MIN( + NULLIF ( 28, - 19 ) ) + 64
----
-1
121

skipif mysql # not compatible
query II rowsort label-5416
SELECT - COUNT ( * ) AS col1, 29 + + MIN ( + NULLIF ( 28, - 19 ) ) + 64
----
-1
121

query II rowsort
SELECT DISTINCT - 82 + - 65 * NULLIF ( - 9, + 96 - - - 99 ) AS col2, - 77 * + - 49
----
503
3773

query I rowsort
SELECT ALL + 85 * - + 0 + + 95
----
95

query I rowsort
SELECT ( + + 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL 63 * + NULLIF ( 82, + AVG ( 79 ) ) + - - COALESCE ( + COUNT( * ), + 1 ) + + CASE - 26 WHEN + + 50 * - COUNT( * ) THEN - 64 * COUNT( * ) + + 8 WHEN - 73 THEN 73 END / + COUNT( * ) * + 31 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL 63 * + NULLIF ( 82, + AVG ( 79 ) ) + - - COALESCE ( + COUNT ( * ), + 1 ) + + CASE - 26 WHEN + + 50 * - COUNT ( * ) THEN - 64 * COUNT ( * ) + + 8 WHEN - 73 THEN 73 END / + COUNT ( * ) * + 31 col1
----
NULL

query I rowsort
SELECT + 72 * + 25
----
1800

query III rowsort
SELECT ALL + 54 AS col2, + 87 AS col0, + - 41
----
54
87
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL + COUNT( * ) * + ( 14 ) * 11 + + 57
----
211

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL + COUNT ( * ) * + ( 14 ) * 11 + + 57
----
211

onlyif mysql # aggregate syntax: 
query II rowsort label-5424
SELECT + + 66, MAX( 43 ) AS col1
----
66
43

skipif mysql # not compatible
query II rowsort label-5424
SELECT + + 66, MAX ( 43 ) AS col1
----
66
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT ALL - MAX( 93 ) * + 66 - - 63 + - 97 AS col2
----
-6172

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL - MAX ( 93 ) * + 66 - - 63 + - 97 AS col2
----
-6172

query II rowsort
SELECT DISTINCT + 71 * - NULLIF ( + - 94, - + 62 + + - 0 + - 81 ) AS col2, - 14 col2
----
6674
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5427
SELECT DISTINCT + - 68 * + 30 - + 36 + + CAST( NULL AS SIGNED ) + 26 + + 32 * + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT + - 68 * + 30 - + 36 + + CAST ( NULL AS INTEGER ) + 26 + + 32 * + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT + 17 - 19 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT ALL + ( 80 ) * + CAST( NULL AS SIGNED ) * - - 12 * - CAST( NULL AS SIGNED ) * + - 91 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL + ( 80 ) * + CAST ( NULL AS INTEGER ) * - - 12 * - CAST ( NULL AS INTEGER ) * + - 91 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT 0 * - MIN( + 18 ) * - 72 + 13
----
13

skipif mysql # not compatible
query I rowsort label-5430
SELECT 0 * - MIN ( + 18 ) * - 72 + 13
----
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5431
SELECT + - CASE + CASE + 31 WHEN - ( - CASE + 74 WHEN - 38 + - + 51 THEN + 20 ELSE NULL END ) + + 72 THEN NULL WHEN - 88 THEN COALESCE ( - 54, - 20, + 43 ) ELSE - - 68 + 33 * - 27 END WHEN + 87 DIV 16 THEN - 69 + 30 WHEN + 76 * AVG ( - 98 ) THEN - CAST( 65 AS SIGNED ) - 3 ELSE - 73 END DIV - 24 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5431
SELECT + - CASE + CASE + 31 WHEN - ( - CASE + 74 WHEN - 38 + - + 51 THEN + 20 ELSE NULL END ) + + 72 THEN NULL WHEN - 88 THEN COALESCE ( - 54, - 20, + 43 ) ELSE - - 68 + 33 * - 27 END WHEN + 87 / 16 THEN - 69 + 30 WHEN + 76 * AVG ( - 98 ) THEN - CAST ( 65 AS INTEGER ) - 3 ELSE - 73 END / - 24 AS col1
----
-3

query II rowsort
SELECT ALL + + NULLIF ( 56, 60 - + 53 ) AS col0, + 74 AS col1
----
56
74

query II rowsort
SELECT + + 91 col1, 15 AS col2
----
91
15

query I rowsort
SELECT + 19 * - 64 AS col1
----
-1216

query I rowsort
SELECT - ( 79 ) + 13 + + 7 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5436
SELECT ALL 74 * - 8 AS col0, COUNT( * ) col2
----
-592
1

skipif mysql # not compatible
query II rowsort label-5436
SELECT ALL 74 * - 8 AS col0, COUNT ( * ) col2
----
-592
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5437
SELECT - CAST( - MAX( + + 83 ) AS SIGNED ) * - - 66 + - COUNT( * )
----
5477

skipif mysql # not compatible
query I rowsort label-5437
SELECT - CAST ( - MAX ( + + 83 ) AS INTEGER ) * - - 66 + - COUNT ( * )
----
5477

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5438
SELECT - CAST( + + CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT - CAST ( + + CAST ( CAST ( NULL AS REAL ) AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5439
SELECT ALL + 68 + - CASE - 56 WHEN 35 THEN - CAST( NULL AS SIGNED ) / 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL + 68 + - CASE - 56 WHEN 35 THEN - CAST ( NULL AS INTEGER ) / 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT + MAX( - - ( - 59 ) ) + - - 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5440
SELECT + MAX ( - - ( - 59 ) ) + - - 59 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT - CASE 2 WHEN - + 99 THEN COUNT( * ) / + 90 END - - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT - CASE 2 WHEN - + 99 THEN COUNT ( * ) / + 90 END - - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5442
SELECT - 50 + - ( + + COALESCE ( + ( + 73 ), + CAST( - CASE + MAX( ALL + CASE - - 91 WHEN 21 THEN - 24 / - CAST( NULL AS SIGNED ) ELSE - + 3 + + 36 END ) WHEN 65 / - + 70 THEN NULL WHEN - 18 THEN - 67 + + COUNT( * ) ELSE NULL END AS SIGNED ) ) )
----
-123

skipif mysql # not compatible
query I rowsort label-5442
SELECT - 50 + - ( + + COALESCE ( + ( + 73 ), + CAST ( - CASE + MAX ( ALL + CASE - - 91 WHEN 21 THEN - 24 / - CAST ( NULL AS INTEGER ) ELSE - + 3 + + 36 END ) WHEN 65 / - + 70 THEN NULL WHEN - 18 THEN - 67 + + COUNT ( * ) ELSE NULL END AS INTEGER ) ) )
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT ALL - 95 + 78 * + ( - COUNT( * ) ) * 30
----
-2435

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL - 95 + 78 * + ( - COUNT ( * ) ) * 30
----
-2435

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT - NULLIF ( 68, ( + 20 ) + + 12 * + COUNT( * ) ) + - ( + 98 ) * - - MIN( + - 73 ) col2
----
7086

skipif mysql # not compatible
query I rowsort label-5444
SELECT - NULLIF ( 68, ( + 20 ) + + 12 * + COUNT ( * ) ) + - ( + 98 ) * - - MIN ( + - 73 ) col2
----
7086

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5445
SELECT ALL - 69 + - + CAST( NULL AS SIGNED ) + 9 * 67 + 26 + + + 90 * + AVG ( + 55 ) * ( + NULLIF ( + + 37, - - ( COUNT( * ) ) ) ) * + - CAST( NULLIF ( - 60, 64 ) AS SIGNED ) * 3 - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL - 69 + - + CAST ( NULL AS INTEGER ) + 9 * 67 + 26 + + + 90 * + AVG ( + 55 ) * ( + NULLIF ( + + 37, - - ( COUNT ( * ) ) ) ) * + - CAST ( NULLIF ( - 60, 64 ) AS INTEGER ) * 3 - 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT - 20 + - COUNT( * ) + + 0 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-5446
SELECT - 20 + - COUNT ( * ) + + 0 AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5447
SELECT - 96 + + CAST( + 8 AS SIGNED ) + + - 90 * - ( 90 ) * + COUNT( * ) + + 9 * 66 * + 27
----
24050

skipif mysql # not compatible
query I rowsort label-5447
SELECT - 96 + + CAST ( + 8 AS INTEGER ) + + - 90 * - ( 90 ) * + COUNT ( * ) + + 9 * 66 * + 27
----
24050

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT DISTINCT - 78 DIV + 44 col1
----
-1

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT - 78 / + 44 col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5449
SELECT + 48 + - - 31 + + - 44 * + 94 - - COUNT( * ) * - ( - COALESCE ( - 42, - 53 - - + COUNT( * ) DIV + + 71 + - 10, + ( 16 ) ) )
----
-4099

skipif mysql # not compatible
query I rowsort label-5449
SELECT + 48 + - - 31 + + - 44 * + 94 - - COUNT ( * ) * - ( - COALESCE ( - 42, - 53 - - + COUNT ( * ) / + + 71 + - 10, + ( 16 ) ) )
----
-4099

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5450
SELECT ALL CAST( + 49 AS SIGNED ) AS col0, 15 * - 5 * + 86 * - - 73
----
49
-470850

skipif mysql # not compatible
query II rowsort label-5450
SELECT ALL CAST ( + 49 AS INTEGER ) AS col0, 15 * - 5 * + 86 * - - 73
----
49
-470850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5451
SELECT - CAST( 51 AS SIGNED ) + COUNT( * ) + - 81 + - + 74 AS col2
----
-205

skipif mysql # not compatible
query I rowsort label-5451
SELECT - CAST ( 51 AS INTEGER ) + COUNT ( * ) + - 81 + - + 74 AS col2
----
-205

query I rowsort
SELECT + 66 * 54
----
3564

query I rowsort
SELECT 70 * - 64 + ( + 18 ) AS col1
----
-4462

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ALL + MIN( - 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL + MIN ( - 39 ) AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5455
SELECT + + SUM( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT + + SUM ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - - 53 * 9
----
477

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT DISTINCT + - 91 DIV - 93 * + 61 * - 41 - 12
----
-12

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT + - 91 / - 93 * + 61 * - 41 - 12
----
-12

query I rowsort
SELECT ALL + ( NULLIF ( - 65, - 30 ) ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT + 10 * - COUNT( * ) * - 13 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-5459
SELECT + 10 * - COUNT ( * ) * - 13 AS col1
----
130

query I rowsort
SELECT COALESCE ( + 18, + 72 )
----
18

query I rowsort
SELECT - 56 * + 77 + - 51
----
-4363

query I rowsort
SELECT DISTINCT 25 * - 22 AS col1
----
-550

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT + 4 DIV + - 87 * 86 + + 48 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-5463
SELECT + 4 / + - 87 * 86 + + 48 / - 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT ALL + SUM( - + 28 ) + 95 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL + SUM ( - + 28 ) + 95 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT ALL - + COUNT( DISTINCT - 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL - + COUNT ( DISTINCT - 47 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT - COALESCE ( + + 89, COUNT( * ) * 89, - - COUNT( * ) * + - 82 - + 12 + + 56 + + 81 + + 33 ) + 55 + COUNT( * ) + COUNT( * ) + + 32
----
0

skipif mysql # not compatible
query I rowsort label-5466
SELECT - COALESCE ( + + 89, COUNT ( * ) * 89, - - COUNT ( * ) * + - 82 - + 12 + + 56 + + 81 + + 33 ) + 55 + COUNT ( * ) + COUNT ( * ) + + 32
----
0

query I rowsort
SELECT NULLIF ( 61, + - 61 ) * + 75
----
4575

onlyif mysql # DIV for integer division: 
query II rowsort label-5468
SELECT 31 + + 25 col2, 83 + - - 3 DIV + + 93
----
56
83

skipif mysql # not compatible
query II rowsort label-5468
SELECT 31 + + 25 col2, 83 + - - 3 / + + 93
----
56
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5469
SELECT ALL 92 + MIN( ALL - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL 92 + MIN ( ALL - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5470
SELECT - 95 AS col0, CAST( NULL AS SIGNED ) + - + AVG ( ALL + 57 ) * + 40 * - - CASE + ( - COUNT( * ) ) WHEN + 30 THEN NULL WHEN - 22 * COUNT( ALL 7 ) THEN - - 11 * - 89 + - 30 + 82 WHEN 71 THEN NULL END col0
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-5470
SELECT - 95 AS col0, CAST ( NULL AS INTEGER ) + - + AVG ( ALL + 57 ) * + 40 * - - CASE + ( - COUNT ( * ) ) WHEN + 30 THEN NULL WHEN - 22 * COUNT ( ALL 7 ) THEN - - 11 * - 89 + - 30 + 82 WHEN 71 THEN NULL END col0
----
-95
NULL

query I rowsort
SELECT DISTINCT 27 + - + 52 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT MAX( - 57 ) - - 31 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5472
SELECT MAX ( - 57 ) - - 31 AS col1
----
-26

query II rowsort
SELECT 4, - 74 * - 80 AS col2
----
4
5920

query II rowsort
SELECT - 6 AS col1, 47 AS col0
----
-6
47

query I rowsort
SELECT ALL 32 + - - 17 + - + 34 + - 87 * + 4 + 23 * 44 AS col2
----
679

query I rowsort
SELECT DISTINCT 91 + 73 AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL + 37 + + + 63 * SUM( - - 77 )
----
4888

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL + 37 + + + 63 * SUM ( - - 77 )
----
4888

query II rowsort
SELECT ALL 71 AS col2, + 83
----
71
83

query II rowsort
SELECT - 72, 94 AS col0
----
-72
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT ( - MIN( 77 ) ) - + COUNT( * ) - + 96 - - 36 * + MIN( 53 ) * - 5 AS col2
----
-9714

skipif mysql # not compatible
query I rowsort label-5480
SELECT ( - MIN ( 77 ) ) - + COUNT ( * ) - + 96 - - 36 * + MIN ( 53 ) * - 5 AS col2
----
-9714

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT 92 DIV - 88
----
-1

skipif mysql # not compatible
query I rowsort label-5481
SELECT 92 / - 88
----
-1

query I rowsort
SELECT 28 * - 77 AS col1
----
-2156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5483
SELECT ALL - CASE + + 68 WHEN - COUNT( * ) * COALESCE ( - 56, 84, + 31 * - 41 ) THEN + 89 + - 96 - + AVG ( - - 14 ) + ( - - COUNT( * ) ) / - CAST( + - ( + + 11 ) AS SIGNED ) END * CAST( NULL AS SIGNED ) + + 50 * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL - CASE + + 68 WHEN - COUNT ( * ) * COALESCE ( - 56, 84, + 31 * - 41 ) THEN + 89 + - 96 - + AVG ( - - 14 ) + ( - - COUNT ( * ) ) / - CAST ( + - ( + + 11 ) AS INTEGER ) END * CAST ( NULL AS INTEGER ) + + 50 * + 29
----
NULL

query II rowsort
SELECT 33 AS col1, - 2 * 38
----
33
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT DISTINCT CASE - 14 WHEN - 71 THEN 83 END - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT CASE - 14 WHEN - 71 THEN 83 END - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT COUNT( DISTINCT + + 47 )
----
1

skipif mysql # not compatible
query I rowsort label-5486
SELECT COUNT ( DISTINCT + + 47 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5487
SELECT 29 * - + NULLIF ( + ( - + 78 ), + - COUNT( * ) * - CAST( NULL AS DECIMAL ) * - CASE + COUNT( * ) WHEN ( + - 26 ) THEN NULL WHEN 77 THEN - 63 ELSE + 19 END ) AS col2
----
2262

skipif mysql # not compatible
query I rowsort label-5487
SELECT 29 * - + NULLIF ( + ( - + 78 ), + - COUNT ( * ) * - CAST ( NULL AS REAL ) * - CASE + COUNT ( * ) WHEN ( + - 26 ) THEN NULL WHEN 77 THEN - 63 ELSE + 19 END ) AS col2
----
2262

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT ALL - MIN( - 16 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL - MIN ( - 16 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT - 94 * - COUNT( ALL - 95 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5489
SELECT - 94 * - COUNT ( ALL - 95 ) AS col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5490
SELECT DISTINCT + COUNT( * ) DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT + COUNT ( * ) / 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT 52 * COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-5491
SELECT 52 * COUNT ( * ) AS col1
----
52

query I rowsort
SELECT 67 * 70 + 52 + - - 28 * + + 5 AS col1
----
4882

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT - CASE - 52 WHEN + + 59 * - + COUNT( * ) + 53 THEN - 42 WHEN 62 + - 3 * - ( AVG ( DISTINCT - 58 ) ) THEN NULL ELSE ( + 44 ) END + - 72 * - COUNT( * ) * 75 - - 86 AS col2
----
5442

skipif mysql # not compatible
query I rowsort label-5493
SELECT - CASE - 52 WHEN + + 59 * - + COUNT ( * ) + 53 THEN - 42 WHEN 62 + - 3 * - ( AVG ( DISTINCT - 58 ) ) THEN NULL ELSE ( + 44 ) END + - 72 * - COUNT ( * ) * 75 - - 86 AS col2
----
5442

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5494
SELECT CASE + 39 WHEN 4 DIV - 18 * COUNT( * ) * + - 57 THEN NULL WHEN + 27 * COUNT( * ) THEN - + COUNT( * ) * + 60 + - 35 + + 30 - - + 81 END AS col0, + ( 12 ) DIV - 27 + - 79 - + COUNT( * )
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-5494
SELECT CASE + 39 WHEN 4 / - 18 * COUNT ( * ) * + - 57 THEN NULL WHEN + 27 * COUNT ( * ) THEN - + COUNT ( * ) * + 60 + - 35 + + 30 - - + 81 END AS col0, + ( 12 ) / - 27 + - 79 - + COUNT ( * )
----
NULL
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT 97 * + - 2 + 21 + + 23 - 15 * COUNT( * )
----
-165

skipif mysql # not compatible
query I rowsort label-5495
SELECT 97 * + - 2 + 21 + + 23 - 15 * COUNT ( * )
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT - CASE 10 WHEN - COALESCE ( 97, + 88 ) * 96 + + - 86 THEN COUNT( DISTINCT + 65 ) * + 95 * - ( + COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT - CASE 10 WHEN - COALESCE ( 97, + 88 ) * 96 + + - 86 THEN COUNT ( DISTINCT + 65 ) * + 95 * - ( + COUNT ( * ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT ( MAX( + 29 ) ) * 89
----
2581

skipif mysql # not compatible
query I rowsort label-5497
SELECT ( MAX ( + 29 ) ) * 89
----
2581

onlyif mysql # aggregate syntax: 
query II rowsort label-5498
SELECT DISTINCT - 59 * + 64 + + COALESCE ( + NULLIF ( - + 22, 83 ), - 97 - + 78 * + 87 ), - ( - SUM( DISTINCT 78 ) ) col2
----
-3798
78

skipif mysql # not compatible
query II rowsort label-5498
SELECT DISTINCT - 59 * + 64 + + COALESCE ( + NULLIF ( - + 22, 83 ), - 97 - + 78 * + 87 ), - ( - SUM ( DISTINCT 78 ) ) col2
----
-3798
78

query I rowsort
SELECT ALL + 37 + 75 col2
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5500
SELECT ALL - + 45 * COUNT( * ) DIV 84, 89 AS col2
----
0
89

skipif mysql # not compatible
query II rowsort label-5500
SELECT ALL - + 45 * COUNT ( * ) / 84, 89 AS col2
----
0
89

query I rowsort
SELECT 69 + + 30
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT ALL + - COUNT( * ) + + 93 * - 59 + - COUNT( * ) + 48 + + 37 * - + 47
----
-7180

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL + - COUNT ( * ) + + 93 * - 59 + - COUNT ( * ) + 48 + + 37 * - + 47
----
-7180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5503
SELECT ALL - + CAST( 12 AS SIGNED ) + NULLIF ( 21, 81 ) + - 33 * - + 65 * + ( + CAST( + - 79 AS SIGNED ) ) col0
----
-169446

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL - + CAST ( 12 AS INTEGER ) + NULLIF ( 21, 81 ) + - 33 * - + 65 * + ( + CAST ( + - 79 AS INTEGER ) ) col0
----
-169446

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5504
SELECT + 77 * - + 47 + + CAST( - - 61 AS SIGNED )
----
-3558

skipif mysql # not compatible
query I rowsort label-5504
SELECT + 77 * - + 47 + + CAST ( - - 61 AS INTEGER )
----
-3558

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5505
SELECT ALL 38 + - - SUM( DISTINCT + 41 ) + + - CAST( NULL AS DECIMAL ) AS col2, + 16 * SUM( ALL + 51 ) + + + 65 AS col2
----
NULL
881

skipif mysql # not compatible
query II rowsort label-5505
SELECT ALL 38 + - - SUM ( DISTINCT + 41 ) + + - CAST ( NULL AS REAL ) AS col2, + 16 * SUM ( ALL + 51 ) + + + 65 AS col2
----
NULL
881

onlyif mysql # aggregate syntax: 
query II rowsort label-5506
SELECT 93 - 53, - COUNT( * ) + + 69 AS col1
----
40
68

skipif mysql # not compatible
query II rowsort label-5506
SELECT 93 - 53, - COUNT ( * ) + + 69 AS col1
----
40
68

query I rowsort
SELECT ALL 85 * - - 39
----
3315

query I rowsort
SELECT ALL 78 * + 28
----
2184

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5509
SELECT ( NULLIF ( - - CAST( NULL AS SIGNED ), + 29 ) ) * + CAST( + + 51 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT ( NULLIF ( - - CAST ( NULL AS INTEGER ), + 29 ) ) * + CAST ( + + 51 AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5510
SELECT CASE + SUM( DISTINCT - + 34 ) WHEN + 67 THEN NULL WHEN - CASE - - 20 WHEN + 59 * MIN( ( - 84 ) ) + CAST( - 44 AS SIGNED ) THEN 8 * 64 ELSE + + MAX( - 63 ) - - - 90 - + CASE + ( 44 ) WHEN + COUNT( * ) THEN - 62 WHEN + 49 + 23 THEN NULL END END THEN NULL WHEN 76 + + 99 * + 75 THEN NULL ELSE 68 DIV 13 END + 48 col2
----
53

skipif mysql # not compatible
query I rowsort label-5510
SELECT CASE + SUM ( DISTINCT - + 34 ) WHEN + 67 THEN NULL WHEN - CASE - - 20 WHEN + 59 * MIN ( ( - 84 ) ) + CAST ( - 44 AS INTEGER ) THEN 8 * 64 ELSE + + MAX ( - 63 ) - - - 90 - + CASE + ( 44 ) WHEN + COUNT ( * ) THEN - 62 WHEN + 49 + 23 THEN NULL END END THEN NULL WHEN 76 + + 99 * + 75 THEN NULL ELSE 68 / 13 END + 48 col2
----
53

query I rowsort
SELECT 2 + - - 72
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5512
SELECT ( 25 ) + 6 + 48 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5512
SELECT ( 25 ) + 6 + 48 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT COUNT( * ) * - - 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5513
SELECT COUNT ( * ) * - - 10 AS col1
----
10

query I rowsort
SELECT DISTINCT - + 64 * + - ( - 54 ) * - + 35
----
120960

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT DISTINCT COALESCE ( + 96, 56 * 4, SUM( 34 ), + 30 )
----
96

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT COALESCE ( + 96, 56 * 4, SUM ( 34 ), + 30 )
----
96

query I rowsort
SELECT 46 * - 15
----
-690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5517
SELECT - ( MAX( - - 73 ) ) + MAX( ALL - 72 ) + - 59 * - 75 - - COUNT( * ) * + ( - 15 ) * - 7 - + 60 + - 20 DIV + - SUM( DISTINCT - 48 ) + 77
----
4402

skipif mysql # not compatible
query I rowsort label-5517
SELECT - ( MAX ( - - 73 ) ) + MAX ( ALL - 72 ) + - 59 * - 75 - - COUNT ( * ) * + ( - 15 ) * - 7 - + 60 + - 20 / + - SUM ( DISTINCT - 48 ) + 77
----
4402

onlyif mysql # aggregate syntax: 
query II rowsort label-5518
SELECT ALL 22 * + + 28 + 18 + - - 2, COUNT( * ) col0
----
636
1

skipif mysql # not compatible
query II rowsort label-5518
SELECT ALL 22 * + + 28 + 18 + - - 2, COUNT ( * ) col0
----
636
1

query I rowsort
SELECT + ( + + 20 ) * 61
----
1220

query I rowsort
SELECT ALL 10 * - 28 + - - 7 AS col0
----
-273

query I rowsort
SELECT - 86 * - + 40 AS col0
----
3440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5522
SELECT ALL + + 97 / + ( - + CASE - 45 WHEN - 62 THEN + - 62 ELSE NULL END ) / ( - - 71 ) + + + CAST( - + COALESCE ( + 69, - + ( + MAX( + 79 ) ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL + + 97 / + ( - + CASE - 45 WHEN - 62 THEN + - 62 ELSE NULL END ) / ( - - 71 ) + + + CAST ( - + COALESCE ( + 69, - + ( + MAX ( + 79 ) ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT DISTINCT + COUNT( * ) * - 90 + 22 + 83 + 19 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT + COUNT ( * ) * - 90 + 22 + 83 + 19 AS col0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5524
SELECT - 13 DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-5524
SELECT - 13 / 21
----
0

query I rowsort
SELECT ALL 30 * - 46 + ( - 6 ) + + 73 AS col0
----
-1313

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT + + COUNT( * ) * COALESCE ( - 48, + + 1 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-5526
SELECT + + COUNT ( * ) * COALESCE ( - 48, + + 1 ) AS col2
----
-48

query I rowsort
SELECT - + 83 + - + 48 * + + 76 * - + 51 + - 77 AS col0
----
185888

onlyif mysql # aggregate syntax: 
query II rowsort label-5528
SELECT + NULLIF ( 17, COUNT( * ) + - 82 + + + SUM( DISTINCT + + 95 ) + - - 54 ), 54 AS col1
----
17
54

skipif mysql # not compatible
query II rowsort label-5528
SELECT + NULLIF ( 17, COUNT ( * ) + - 82 + + + SUM ( DISTINCT + + 95 ) + - - 54 ), 54 AS col1
----
17
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT COUNT( * ) * - 27 + - 75 * - NULLIF ( 0, + - 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-5529
SELECT COUNT ( * ) * - 27 + - 75 * - NULLIF ( 0, + - 27 ) AS col0
----
-27

query I rowsort
SELECT - 86 * - ( + - 50 ) + 57
----
-4243

query II rowsort
SELECT + 93 AS col0, 63 AS col2
----
93
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5532
SELECT + 2 col0, - COUNT( * ) AS col2
----
2
-1

skipif mysql # not compatible
query II rowsort label-5532
SELECT + 2 col0, - COUNT ( * ) AS col2
----
2
-1

query I rowsort
SELECT DISTINCT + 91 * - 25 AS col2
----
-2275

query I rowsort
SELECT ALL - 37 - + 91 col1
----
-128

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5535
SELECT - 66 * + - NULLIF ( 13, CASE WHEN NOT - 49 BETWEEN - 6 + - SUM( + 89 ) + + - 71 * + - 75 + - 15 + + 26 + COALESCE ( 69, + 95, - ( 79 ) ) / - 36 * - 30 * 41 + 3 AND ( NULL ) THEN - 59 WHEN NOT + 18 IS NOT NULL THEN ( - 25 ) + - COUNT( * ) * CAST( 66 AS DECIMAL ) END ) + 40 AS col0
----
898

skipif mysql # not compatible
query I rowsort label-5535
SELECT - 66 * + - NULLIF ( 13, CASE WHEN NOT - 49 BETWEEN - 6 + - SUM ( + 89 ) + + - 71 * + - 75 + - 15 + + 26 + COALESCE ( 69, + 95, - ( 79 ) ) / - 36 * - 30 * 41 + 3 AND ( NULL ) THEN - 59 WHEN NOT + 18 IS NOT NULL THEN ( - 25 ) + - COUNT ( * ) * CAST ( 66 AS REAL ) END ) + 40 AS col0
----
898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5536
SELECT - CASE 94 WHEN - 77 - + + CASE + ( - 10 ) WHEN - MIN( - 48 ) THEN NULL WHEN + 52 THEN + 1 + 87 END THEN AVG ( ALL - + 56 ) DIV - 73 WHEN 86 * - + 3 DIV 64 THEN NULL ELSE + + 89 END DIV - 5
----
17

skipif mysql # not compatible
query I rowsort label-5536
SELECT - CASE 94 WHEN - 77 - + + CASE + ( - 10 ) WHEN - MIN ( - 48 ) THEN NULL WHEN + 52 THEN + 1 + 87 END THEN AVG ( ALL - + 56 ) / - 73 WHEN 86 * - + 3 / 64 THEN NULL ELSE + + 89 END / - 5
----
17

query I rowsort
SELECT 37 * 45 + - 45
----
1620

query I rowsort
SELECT + 25 * + - 45 AS col0
----
-1125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5539
SELECT - NULLIF ( + 95, - 37 ), + CASE + 45 WHEN - COUNT( * ) * - CAST( NULL AS SIGNED ) + + 12 + - - 0 * - 77 THEN - 87 + - 72 WHEN NULLIF ( - - COUNT( * ), - 82 * 23 + + 33 * - 60 ) + - - NULLIF ( + 19, + 74 * - 63 ) THEN + 70 / - 72 ELSE NULL END AS col1
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-5539
SELECT - NULLIF ( + 95, - 37 ), + CASE + 45 WHEN - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 12 + - - 0 * - 77 THEN - 87 + - 72 WHEN NULLIF ( - - COUNT ( * ), - 82 * 23 + + 33 * - 60 ) + - - NULLIF ( + 19, + 74 * - 63 ) THEN + 70 / - 72 ELSE NULL END AS col1
----
-95
NULL

query II rowsort
SELECT ALL 27 AS col1, - ( + 98 )
----
27
-98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5541
SELECT + 89 * - + COUNT( - CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-5541
SELECT + 89 * - + COUNT ( - CAST ( NULL AS REAL ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5542
SELECT ALL + NULLIF ( - 40, - COUNT( * ) ) DIV 12 * MIN( ALL - 83 ) AS col0
----
249

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL + NULLIF ( - 40, - COUNT ( * ) ) / 12 * MIN ( ALL - 83 ) AS col0
----
249

onlyif mysql # DIV for integer division: 
query I rowsort label-5543
SELECT - - 22 DIV + + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5543
SELECT - - 22 / + + 90 AS col1
----
0

query I rowsort
SELECT - + 5 - + - CASE + - 19 WHEN + + 85 THEN - 99 WHEN 41 THEN NULL END + 43 * - + 25 AS col1
----
NULL

query I rowsort
SELECT + + 41 * + 45 AS col0
----
1845

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5546
SELECT ALL - ( - COUNT( - 79 ) ) + + 23 * + ( + 91 ) DIV - COUNT( * ) AS col0
----
-2092

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL - ( - COUNT ( - 79 ) ) + + 23 * + ( + 91 ) / - COUNT ( * ) AS col0
----
-2092

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT + 47 * + 93 + - 7 + + 37 * - SUM( + 3 ) * 44 AS col0
----
-520

skipif mysql # not compatible
query I rowsort label-5547
SELECT + 47 * + 93 + - 7 + + 37 * - SUM ( + 3 ) * 44 AS col0
----
-520

query I rowsort
SELECT + - 15 * + 12
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5549
SELECT ALL + 17 / CAST( NULL AS SIGNED ) * + - 62 * + 52 + + MIN( DISTINCT - + 62 ) - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL + 17 / CAST ( NULL AS INTEGER ) * + - 62 * + 52 + + MIN ( DISTINCT - + 62 ) - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5550
SELECT + MAX( DISTINCT - + COALESCE ( + - 50, 77 * 95 + 60 ) ) AS col1, COALESCE ( 6, + 9 - 96 * - 21 + COUNT( 0 ) * + + 76 DIV - + 46 * + - CASE 97 WHEN 96 THEN + 90 + - 35 + + 41 WHEN 7 THEN NULL WHEN + 84 * + 54 THEN - 63 * - 33 END * 45 ) + COUNT( * ) * 32
----
50
38

skipif mysql # not compatible
query II rowsort label-5550
SELECT + MAX ( DISTINCT - + COALESCE ( + - 50, 77 * 95 + 60 ) ) AS col1, COALESCE ( 6, + 9 - 96 * - 21 + COUNT ( 0 ) * + + 76 / - + 46 * + - CASE 97 WHEN 96 THEN + 90 + - 35 + + 41 WHEN 7 THEN NULL WHEN + 84 * + 54 THEN - 63 * - 33 END * 45 ) + COUNT ( * ) * 32
----
50
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5551
SELECT 29 DIV + + COUNT( * ) + - 24 DIV 59 * + ( - - CAST( - COUNT( * ) AS SIGNED ) ) - - 17 + + COUNT( * ) * - 34 + + + 49 + + COUNT( DISTINCT - 38 ) DIV 74
----
61

skipif mysql # not compatible
query I rowsort label-5551
SELECT 29 / + + COUNT ( * ) + - 24 / 59 * + ( - - CAST ( - COUNT ( * ) AS INTEGER ) ) - - 17 + + COUNT ( * ) * - 34 + + + 49 + + COUNT ( DISTINCT - 38 ) / 74
----
61

query I rowsort
SELECT - 20 * + 38 * - 8 - 99 col0
----
5981

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT DISTINCT - COUNT( * ) * + 50 * + - 99
----
4950

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT - COUNT ( * ) * + 50 * + - 99
----
4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5554
SELECT + CAST( NULL AS SIGNED ) * - 80 * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-5554
SELECT + CAST ( NULL AS INTEGER ) * - 80 * + 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5555
SELECT DISTINCT + 25 AS col0, CAST( NULL AS SIGNED )
----
25
NULL

skipif mysql # not compatible
query II rowsort label-5555
SELECT DISTINCT + 25 AS col0, CAST ( NULL AS INTEGER )
----
25
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5556
SELECT + 49, 94 / CAST( NULL AS SIGNED ) AS col1
----
49
NULL

skipif mysql # not compatible
query II rowsort label-5556
SELECT + 49, 94 / CAST ( NULL AS INTEGER ) AS col1
----
49
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5557
SELECT - 56 + CASE - 43 WHEN + - 3 THEN + - 69 WHEN + + 60 * 81 * - MIN( ALL CAST( NULL AS SIGNED ) ) * - CASE + + 62 WHEN + NULLIF ( + 40, - 21 * - 12 + - 20 ) + - + 20 + + 22 THEN COUNT( - ( - + 14 ) ) * + 5 ELSE NULL END * - 42 - - CAST( - 78 - + ( + 17 + - 20 * + 13 ) AS SIGNED ) + + 31 * + 43 THEN NULL WHEN COUNT( * ) THEN 59 + 92 * + 50 WHEN NULLIF ( 79, ( 28 ) ) * + ( MAX( ALL 71 ) + COUNT( * ) ) THEN - NULLIF ( + 1, + COUNT( * ) - CASE 7 WHEN 22 * 54 THEN + 49 END * - 66 ) - + 15 * COUNT( * ) END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT - 56 + CASE - 43 WHEN + - 3 THEN + - 69 WHEN + + 60 * 81 * - MIN ( ALL CAST ( NULL AS INTEGER ) ) * - CASE + + 62 WHEN + NULLIF ( + 40, - 21 * - 12 + - 20 ) + - + 20 + + 22 THEN COUNT ( - ( - + 14 ) ) * + 5 ELSE NULL END * - 42 - - CAST ( - 78 - + ( + 17 + - 20 * + 13 ) AS INTEGER ) + + 31 * + 43 THEN NULL WHEN COUNT ( * ) THEN 59 + 92 * + 50 WHEN NULLIF ( 79, ( 28 ) ) * + ( MAX ( ALL 71 ) + COUNT ( * ) ) THEN - NULLIF ( + 1, + COUNT ( * ) - CASE 7 WHEN 22 * 54 THEN + 49 END * - 66 ) - + 15 * COUNT ( * ) END * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5558
SELECT ALL + 41 AS col0, - 56 * 11 * - COUNT( * ) - 30
----
41
586

skipif mysql # not compatible
query II rowsort label-5558
SELECT ALL + 41 AS col0, - 56 * 11 * - COUNT ( * ) - 30
----
41
586

query I rowsort
SELECT - 73 * + + 65 col2
----
-4745

query I rowsort
SELECT + 85 - + 73 AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5561
SELECT + COALESCE ( 58, + 30 ) * - NULLIF ( + COUNT( * ), - 96 ), + 70 AS col1
----
-58
70

skipif mysql # not compatible
query II rowsort label-5561
SELECT + COALESCE ( 58, + 30 ) * - NULLIF ( + COUNT ( * ), - 96 ), + 70 AS col1
----
-58
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT ALL + MIN( ALL COALESCE ( 45, - 14 / 55 ) )
----
45

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL + MIN ( ALL COALESCE ( 45, - 14 / 55 ) )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT COALESCE ( 26, 23 * + 60 + + ( COUNT( ALL 4 ) ) - + 53 * + 19 * - ( + - 79 ), - + COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-5563
SELECT COALESCE ( 26, 23 * + 60 + + ( COUNT ( ALL 4 ) ) - + 53 * + 19 * - ( + - 79 ), - + COUNT ( * ) )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5564
SELECT - 37 * - + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT - 37 * - + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT + 44 AS col2, + 63 AS col0
----
44
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL COALESCE ( - + CASE + 31 WHEN - 25 THEN + NULLIF ( + 64, - 10 ) WHEN - + 54 + + 20 THEN NULL ELSE NULL END, - 98, + COUNT( * ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL COALESCE ( - + CASE + 31 WHEN - 25 THEN + NULLIF ( + 64, - 10 ) WHEN - + 54 + + 20 THEN NULL ELSE NULL END, - 98, + COUNT ( * ) ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT DISTINCT + MAX( DISTINCT 50 ) * + - 42 AS col1
----
-2100

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT + MAX ( DISTINCT 50 ) * + - 42 AS col1
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT - SUM( ALL + 35 ) * - 81
----
2835

skipif mysql # not compatible
query I rowsort label-5568
SELECT - SUM ( ALL + 35 ) * - 81
----
2835

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT ALL + ( - 16 ) * COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL + ( - 16 ) * COUNT ( * )
----
-16

query I rowsort
SELECT ALL ( - - ( - 56 ) ) AS col2
----
-56

query I rowsort
SELECT - 71 + 87 AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5572
SELECT COUNT( * ), ( + 90 ) AS col1
----
1
90

skipif mysql # not compatible
query II rowsort label-5572
SELECT COUNT ( * ), ( + 90 ) AS col1
----
1
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT - COUNT( * ) + ( - 11 )
----
-12

skipif mysql # not compatible
query I rowsort label-5573
SELECT - COUNT ( * ) + ( - 11 )
----
-12

query I rowsort
SELECT + 74 - + - 19
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-5575
SELECT - 85, 55 DIV - - 70 col2
----
-85
0

skipif mysql # not compatible
query II rowsort label-5575
SELECT - 85, 55 / - - 70 col2
----
-85
0

query II rowsort
SELECT 6 + + 75, 0 AS col1
----
81
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5577
SELECT - 88 - + 89 - + - COUNT( * ) + - + NULLIF ( + CAST( NULL AS SIGNED ), + - 67 * + 79 + 15 + + 40 * - ( - ( - 0 ) ) ) AS col1, + 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-5577
SELECT - 88 - + 89 - + - COUNT ( * ) + - + NULLIF ( + CAST ( NULL AS INTEGER ), + - 67 * + 79 + 15 + + 40 * - ( - ( - 0 ) ) ) AS col1, + 91
----
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT ( - COUNT( * ) ) + - 45 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-5578
SELECT ( - COUNT ( * ) ) + - 45 AS col0
----
-46

query I rowsort
SELECT DISTINCT - CASE 94 WHEN 57 / 50 * + 6 + - 6 * - 89 * - 92 THEN NULL WHEN - - 5 THEN - 4 ELSE NULL END * + 6 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 71 + - 99 + + 46 AS col0
----
-124

query II rowsort
SELECT ALL + ( + + 58 ) col2, CASE 51 WHEN - - 23 THEN + 69 * + 13 - - - 43 * - 79 WHEN + 46 + - + 27 + - + 76 + 61 + - - 20 - + - 20 + - 31 + + 53 * 72 / - - ( + 81 ) - - 73 / 14 THEN ( + 10 ) * + 36 END * 69
----
58
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5582
SELECT CAST( - MIN( 1 ) AS SIGNED ) + + 66 + - 14 col1
----
51

skipif mysql # not compatible
query I rowsort label-5582
SELECT CAST ( - MIN ( 1 ) AS INTEGER ) + + 66 + - 14 col1
----
51

query I rowsort
SELECT ALL - 38 + - 16 AS col1
----
-54

query I rowsort
SELECT 62 * + 25
----
1550

query I rowsort
SELECT + 81 + + 53 * 54
----
2943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5586
SELECT ALL - SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL - SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL 3, 94 AS col2
----
3
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5588
SELECT 55 DIV + COUNT( * ) + - COUNT( * ) DIV 28 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-5588
SELECT 55 / + COUNT ( * ) + - COUNT ( * ) / 28 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT - 4 + - COUNT( - 36 ) + - 56 * 26 AS col2
----
-1461

skipif mysql # not compatible
query I rowsort label-5589
SELECT - 4 + - COUNT ( - 36 ) + - 56 * 26 AS col2
----
-1461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT ALL - + CAST( - 17 AS SIGNED ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL - + CAST ( - 17 AS INTEGER ) AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5591
SELECT ( CAST( NULL AS DECIMAL ) ) * + COUNT( * ) * + 58 + - 56 - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT ( CAST ( NULL AS REAL ) ) * + COUNT ( * ) * + 58 + - 56 - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 37 * 27
----
999

query I rowsort
SELECT DISTINCT COALESCE ( 16, - - 81, + 37 ) * 19 * - 14 + + 6 AS col1
----
-4250

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT 86 * + NULLIF ( - + COUNT( * ), CASE + 69 WHEN + 78 * - 78 THEN 88 ELSE - - 58 + + - 71 END ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-5594
SELECT 86 * + NULLIF ( - + COUNT ( * ), CASE + 69 WHEN + 78 * - 78 THEN 88 ELSE - - 58 + + - 71 END ) AS col1
----
-86

query I rowsort
SELECT 22 * + + 0
----
0

query I rowsort
SELECT 93 + + + 29
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-5597
SELECT 38 + - 16 AS col1, 3 - - COUNT( * )
----
22
4

skipif mysql # not compatible
query II rowsort label-5597
SELECT 38 + - 16 AS col1, 3 - - COUNT ( * )
----
22
4

query I rowsort
SELECT 12 * - ( - - 23 )
----
-276

query I rowsort
SELECT ALL 20 * 2 * 42
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL + 47 + - - ( + COUNT( * ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL + 47 + - - ( + COUNT ( * ) ) AS col2
----
48

query I rowsort
SELECT ( 88 ) + 69 - 25
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT 56 * + - 79 * + COUNT( * ) - 40 - - 97 * - + 94 * ( - - 21 ) * CASE 8 WHEN + 4 * - 52 THEN + + MIN( - 48 ) ELSE - 64 END * 79 AS col0
----
968108304

skipif mysql # not compatible
query I rowsort label-5602
SELECT 56 * + - 79 * + COUNT ( * ) - 40 - - 97 * - + 94 * ( - - 21 ) * CASE 8 WHEN + 4 * - 52 THEN + + MIN ( - 48 ) ELSE - 64 END * 79 AS col0
----
968108304

query I rowsort
SELECT 37 + + 10 * - - 60 * + ( + - 47 ) + - - 68
----
-28095

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT DISTINCT 7 DIV 7
----
1

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT 7 / 7
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT ALL - MAX( - 39 ) + 36
----
75

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL - MAX ( - 39 ) + 36
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5606
SELECT COUNT( * ) * + COALESCE ( + ( SUM( DISTINCT COALESCE ( - 7, - - 70, - 14 ) ) ), + 17, - + CAST( NULL AS SIGNED ) )
----
-7

skipif mysql # not compatible
query I rowsort label-5606
SELECT COUNT ( * ) * + COALESCE ( + ( SUM ( DISTINCT COALESCE ( - 7, - - 70, - 14 ) ) ), + 17, - + CAST ( NULL AS INTEGER ) )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT COUNT( * ) * - + 46 * - 45 + - + 39 + - 48 * - - 99
----
-2721

skipif mysql # not compatible
query I rowsort label-5607
SELECT COUNT ( * ) * - + 46 * - 45 + - + 39 + - 48 * - - 99
----
-2721

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT COALESCE ( - + 91, + COUNT( * ) ) + 24 + - 22
----
-89

skipif mysql # not compatible
query I rowsort label-5608
SELECT COALESCE ( - + 91, + COUNT ( * ) ) + 24 + - 22
----
-89

query I rowsort
SELECT ALL + + 78 + 17
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5610
SELECT ALL - COALESCE ( + MIN( - - 25 ), - NULLIF ( - + 11, 7 ) + ( 13 ), - NULLIF ( - + 74, - - CAST( NULL AS SIGNED ) + - 68 - + 32 ) + - + 41 * + 38 + - 14 + - 86 * - SUM( ALL NULLIF ( + + 38, - 2 ) ) + - 46, - 41 + 31 ) + 50 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL - COALESCE ( + MIN ( - - 25 ), - NULLIF ( - + 11, 7 ) + ( 13 ), - NULLIF ( - + 74, - - CAST ( NULL AS INTEGER ) + - 68 - + 32 ) + - + 41 * + 38 + - 14 + - 86 * - SUM ( ALL NULLIF ( + + 38, - 2 ) ) + - 46, - 41 + 31 ) + 50 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT + SUM( 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5611
SELECT + SUM ( 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5612
SELECT ALL - + COUNT( * ) + 30 AS col0, - COUNT( DISTINCT + + 89 ) - 24 col0
----
29
-25

skipif mysql # not compatible
query II rowsort label-5612
SELECT ALL - + COUNT ( * ) + 30 AS col0, - COUNT ( DISTINCT + + 89 ) - 24 col0
----
29
-25

query I rowsort
SELECT 98 * ( 49 ) + 98 - - 91 - + 25 - + 79 * + 87 AS col1
----
-1907

onlyif mysql # aggregate syntax: 
query II rowsort label-5614
SELECT ALL - 42 + + - COUNT( * ), - 11 AS col1
----
-43
-11

skipif mysql # not compatible
query II rowsort label-5614
SELECT ALL - 42 + + - COUNT ( * ), - 11 AS col1
----
-43
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5615
SELECT DISTINCT - - 53 + CAST( NULL AS SIGNED ) - 32 * + - 51 * + ( + SUM( 42 ) ) / + 93 * + 29 * - - 45 * CAST( NULL AS SIGNED ) * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT - - 53 + CAST ( NULL AS INTEGER ) - 32 * + - 51 * + ( + SUM ( 42 ) ) / + 93 * + 29 * - - 45 * CAST ( NULL AS INTEGER ) * + 47
----
NULL

query I rowsort
SELECT DISTINCT - - 36 * - 96 AS col0
----
-3456

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5617
SELECT DISTINCT - ( + - 26 ) AS col1, ( 14 ) DIV + + COUNT( * ) AS col2
----
26
14

skipif mysql # not compatible
query II rowsort label-5617
SELECT DISTINCT - ( + - 26 ) AS col1, ( 14 ) / + + COUNT ( * ) AS col2
----
26
14

query I rowsort
SELECT 77 - 36 + + 14 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT 21 * + MAX( ALL - ( + 46 ) ) - 30 AS col0
----
-996

skipif mysql # not compatible
query I rowsort label-5619
SELECT 21 * + MAX ( ALL - ( + 46 ) ) - 30 AS col0
----
-996

query I rowsort
SELECT - 18 - 20 + 97 + - + 98 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT - + NULLIF ( + - 37, - 80 * + 33 + - SUM( ALL 33 ) + - 59 / + 52 + + + 19 )
----
37

skipif mysql # not compatible
query I rowsort label-5621
SELECT - + NULLIF ( + - 37, - 80 * + 33 + - SUM ( ALL 33 ) + - 59 / + 52 + + + 19 )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-5622
SELECT ALL - ( - - ( - 2 ) ) AS col2, COUNT( ALL - 93 ) * + - 79
----
2
-79

skipif mysql # not compatible
query II rowsort label-5622
SELECT ALL - ( - - ( - 2 ) ) AS col2, COUNT ( ALL - 93 ) * + - 79
----
2
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5623
SELECT ALL - CASE + 91 WHEN + - 16 THEN + - 0 * - 19 / + 1 ELSE - 54 END * + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL - CASE + 91 WHEN + - 16 THEN + - 0 * - 19 / + 1 ELSE - 54 END * + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL - - 19 * - - 67 AS col1
----
1273

query I rowsort
SELECT - 77 * - 77 * + 79
----
468391

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT 86 + - 9 * + ( COUNT( * ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5626
SELECT 86 + - 9 * + ( COUNT ( * ) ) AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5627
SELECT COUNT( * ) DIV + 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5627
SELECT COUNT ( * ) / + 23 AS col2
----
0

query I rowsort
SELECT 93 * + - 13 AS col2
----
-1209

onlyif mysql # aggregate syntax: 
query II rowsort label-5629
SELECT MAX( + 42 ) + COUNT( * ) AS col2, 44 * + - COUNT( * )
----
43
-44

skipif mysql # not compatible
query II rowsort label-5629
SELECT MAX ( + 42 ) + COUNT ( * ) AS col2, 44 * + - COUNT ( * )
----
43
-44

query I rowsort
SELECT 2 * - 3
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5631
SELECT ALL COUNT( * ) DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL COUNT ( * ) / + 53
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5632
SELECT COUNT( * ) DIV - 4
----
0

skipif mysql # not compatible
query I rowsort label-5632
SELECT COUNT ( * ) / - 4
----
0

query I rowsort
SELECT ALL - NULLIF ( - 58, + + 51 + - 67 + - + 52 * 36 / 41 ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5634
SELECT ALL + COALESCE ( + 28, - 63, - 76 * - - 88 DIV - 59 + - ( - - SUM( + 7 ) ) * - 69, 97 * + ( - + 43 ) * + COALESCE ( - CAST( - 21 AS SIGNED ), + - 27 ) + - 99 + 17 * + ( CAST( - 57 AS SIGNED ) ) * - COUNT( * ) DIV 87 + - 53 ) * 91 + 64 * NULLIF ( 19, 66 + ( + 61 + 82 ) ) AS col1
----
3764

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL + COALESCE ( + 28, - 63, - 76 * - - 88 / - 59 + - ( - - SUM ( + 7 ) ) * - 69, 97 * + ( - + 43 ) * + COALESCE ( - CAST ( - 21 AS INTEGER ), + - 27 ) + - 99 + 17 * + ( CAST ( - 57 AS INTEGER ) ) * - COUNT ( * ) / 87 + - 53 ) * 91 + 64 * NULLIF ( 19, 66 + ( + 61 + 82 ) ) AS col1
----
3764

query I rowsort
SELECT ALL - 84 * + 38 + 87 AS col0
----
-3105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5636
SELECT ALL + NULLIF ( - NULLIF ( - - 4, + + 68 ), + + 97 ) * 11 + NULLIF ( + CAST( NULL AS SIGNED ), - ( COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL + NULLIF ( - NULLIF ( - - 4, + + 68 ), + + 97 ) * 11 + NULLIF ( + CAST ( NULL AS INTEGER ), - ( COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT COALESCE ( + COUNT( * ), 64 ) + + + 62
----
63

skipif mysql # not compatible
query I rowsort label-5637
SELECT COALESCE ( + COUNT ( * ), 64 ) + + + 62
----
63

query I rowsort
SELECT 40 + - 18 col2
----
22

query I rowsort
SELECT ALL 66 + + 96
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT 79 * - COUNT( ALL 33 ) - 81 + + 72
----
-88

skipif mysql # not compatible
query I rowsort label-5640
SELECT 79 * - COUNT ( ALL 33 ) - 81 + + 72
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT SUM( - - 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5641
SELECT SUM ( - - 6 ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5642
SELECT + CASE - 24 WHEN 75 * CAST( + + ( + ( NULLIF ( + COUNT( * ), + + 77 - - AVG ( DISTINCT 67 ) ) ) ) AS SIGNED ) + + - COUNT( DISTINCT - 69 ) * 31 THEN NULL ELSE 14 * 92 * 18 + - 12 - - 86 + + + CAST( - 34 AS SIGNED ) END AS col2
----
23224

skipif mysql # not compatible
query I rowsort label-5642
SELECT + CASE - 24 WHEN 75 * CAST ( + + ( + ( NULLIF ( + COUNT ( * ), + + 77 - - AVG ( DISTINCT 67 ) ) ) ) AS INTEGER ) + + - COUNT ( DISTINCT - 69 ) * 31 THEN NULL ELSE 14 * 92 * 18 + - 12 - - 86 + + + CAST ( - 34 AS INTEGER ) END AS col2
----
23224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5643
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) + + 27 AS col1, 20
----
28
20

skipif mysql # not compatible
query II rowsort label-5643
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) + + 27 AS col1, 20
----
28
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT + MIN( + + 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5644
SELECT + MIN ( + + 38 ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT DISTINCT + COUNT( * ) + - + 91
----
-90

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT + COUNT ( * ) + - + 91
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT + COUNT( * ) - + 32 * - 10 + + - 95 + ( - 72 ) col0
----
154

skipif mysql # not compatible
query I rowsort label-5646
SELECT + COUNT ( * ) - + 32 * - 10 + + - 95 + ( - 72 ) col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL 92 + - 40 * - 28 + + + COALESCE ( + 50, - 74 * + - COUNT( + + 15 ) + + 99 ) + CASE + + 59 WHEN - CASE - 51 WHEN + MAX( - + 43 ) / CASE - 44 WHEN - ( - - ( + - COALESCE ( + SUM( DISTINCT - + 69 ), + - 60, - 46 ) ) ) THEN COUNT( DISTINCT 68 ) * + 12 END THEN NULL WHEN 30 THEN NULL WHEN + NULLIF ( 1, 52 ) THEN 5 ELSE ( 0 ) * + 55 END * - 90 THEN NULL WHEN - 7 / - 16 THEN NULL ELSE 81 * + 49 END + 53 * - 38
----
3217

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL 92 + - 40 * - 28 + + + COALESCE ( + 50, - 74 * + - COUNT ( + + 15 ) + + 99 ) + CASE + + 59 WHEN - CASE - 51 WHEN + MAX ( - + 43 ) / CASE - 44 WHEN - ( - - ( + - COALESCE ( + SUM ( DISTINCT - + 69 ), + - 60, - 46 ) ) ) THEN COUNT ( DISTINCT 68 ) * + 12 END THEN NULL WHEN 30 THEN NULL WHEN + NULLIF ( 1, 52 ) THEN 5 ELSE ( 0 ) * + 55 END * - 90 THEN NULL WHEN - 7 / - 16 THEN NULL ELSE 81 * + 49 END + 53 * - 38
----
3217

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT + - 91 + COUNT( * ) * + 66
----
-25

skipif mysql # not compatible
query I rowsort label-5648
SELECT + - 91 + COUNT ( * ) * + 66
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT - MIN( ALL 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-5649
SELECT - MIN ( ALL 94 )
----
-94

query I rowsort
SELECT ALL + 22 / - + CASE - + 72 WHEN + 77 THEN - 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT + + COUNT( * ) + COUNT( * ) * + - CASE - COUNT( * ) WHEN + 56 * + MIN( ALL + 34 ) THEN 94 * - NULLIF ( - + 88, 67 ) + - 43 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT + + COUNT ( * ) + COUNT ( * ) * + - CASE - COUNT ( * ) WHEN + 56 * + MIN ( ALL + 34 ) THEN 94 * - NULLIF ( - + 88, 67 ) + - 43 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5652
SELECT - 4, COUNT( * ) * + - MAX( DISTINCT + - 80 ) col2
----
-4
80

skipif mysql # not compatible
query II rowsort label-5652
SELECT - 4, COUNT ( * ) * + - MAX ( DISTINCT + - 80 ) col2
----
-4
80

query I rowsort
SELECT - - 36 - - - 18
----
18

query II rowsort
SELECT ALL 48 AS col1, - 26
----
48
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5655
SELECT + + 67 + - ( + 13 ) DIV + + 37
----
67

skipif mysql # not compatible
query I rowsort label-5655
SELECT + + 67 + - ( + 13 ) / + + 37
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-5656
SELECT + 25 DIV + + ( + 96 ) * 13, + 64 AS col2
----
0
64

skipif mysql # not compatible
query II rowsort label-5656
SELECT + 25 / + + ( + 96 ) * 13, + 64 AS col2
----
0
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5657
SELECT DISTINCT 32 AS col1, COUNT( * ) AS col1
----
32
1

skipif mysql # not compatible
query II rowsort label-5657
SELECT DISTINCT 32 AS col1, COUNT ( * ) AS col1
----
32
1

query I rowsort
SELECT - 39 + - 60 + COALESCE ( 61, - 10 ) + - ( 60 ) * + 46
----
-2798

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT ALL MIN( + 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL MIN ( + 37 ) AS col2
----
37

query II rowsort
SELECT ALL + 17 AS col1, 13 * - + 69 + ( + 59 ) AS col1
----
17
-838

query I rowsort
SELECT - 66 + + - 50 col0
----
-116

query I rowsort
SELECT + + 15 * + + 98 + 83 * + - 11 * - 89 + 80
----
82807

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT - + COUNT( * ) * - - 95
----
-95

skipif mysql # not compatible
query I rowsort label-5663
SELECT - + COUNT ( * ) * - - 95
----
-95

query I rowsort
SELECT - 79 + + 22 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL COALESCE ( 14, + COUNT( * ) * + 70 + - + 83 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL COALESCE ( 14, + COUNT ( * ) * + 70 + - + 83 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5666
SELECT DISTINCT CASE 4 WHEN - - COALESCE ( + 35, - COUNT( DISTINCT + + 43 ) ) THEN NULL WHEN + 39 + + 67 THEN - 59 / - 10 + + 97 * - - 98 ELSE - ( - 55 ) * 2 END col0, 22
----
110
22

skipif mysql # not compatible
query II rowsort label-5666
SELECT DISTINCT CASE 4 WHEN - - COALESCE ( + 35, - COUNT ( DISTINCT + + 43 ) ) THEN NULL WHEN + 39 + + 67 THEN - 59 / - 10 + + 97 * - - 98 ELSE - ( - 55 ) * 2 END col0, 22
----
110
22

query I rowsort
SELECT - 38 * - + 67 AS col2
----
2546

query I rowsort
SELECT ( - ( - 66 ) ) col2
----
66

query I rowsort
SELECT ALL + NULLIF ( - 34, - 92 ) AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5670
SELECT DISTINCT + COALESCE ( + CASE - 4 WHEN COUNT( * ) / - CASE + COUNT( * ) WHEN - COALESCE ( 75, + 71 ) + + 93 THEN + 86 END * 81 THEN NULL WHEN + 68 + + + CASE + COALESCE ( COUNT( * ), - SUM( ALL + - 12 ) * COUNT( * ), 33 ) WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN CASE - ( - 58 ) WHEN - 71 / + 56 THEN + 70 + CAST( NULL AS SIGNED ) * 61 WHEN 96 THEN NULL END THEN COUNT( * ) WHEN ( - 39 ) + - NULLIF ( COUNT( * ), 89 + 17 * - 97 ) THEN NULL END THEN 3 WHEN 62 THEN NULL ELSE NULL END, ( + 40 ) + CASE - 21 WHEN - COUNT( * ) + - CAST( NULL AS SIGNED ) * 89 THEN NULL ELSE ( 92 ) END ) * - 48 AS col2
----
-6336

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT + COALESCE ( + CASE - 4 WHEN COUNT ( * ) / - CASE + COUNT ( * ) WHEN - COALESCE ( 75, + 71 ) + + 93 THEN + 86 END * 81 THEN NULL WHEN + 68 + + + CASE + COALESCE ( COUNT ( * ), - SUM ( ALL + - 12 ) * COUNT ( * ), 33 ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN CASE - ( - 58 ) WHEN - 71 / + 56 THEN + 70 + CAST ( NULL AS INTEGER ) * 61 WHEN 96 THEN NULL END THEN COUNT ( * ) WHEN ( - 39 ) + - NULLIF ( COUNT ( * ), 89 + 17 * - 97 ) THEN NULL END THEN 3 WHEN 62 THEN NULL ELSE NULL END, ( + 40 ) + CASE - 21 WHEN - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 89 THEN NULL ELSE ( 92 ) END ) * - 48 AS col2
----
-6336

query I rowsort
SELECT DISTINCT - 90 * + 27 + + 40
----
-2390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5672
SELECT ALL + NULLIF ( COALESCE ( - + COUNT( * ), - + 92, - 43 * - 68 ), 77 ) DIV + - CAST( + - 24 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL + NULLIF ( COALESCE ( - + COUNT ( * ), - + 92, - 43 * - 68 ), 77 ) / + - CAST ( + - 24 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT ALL + 57 * COUNT( * ) + - 24 * - - ( - 58 ) AS col0
----
1449

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL + 57 * COUNT ( * ) + - 24 * - - ( - 58 ) AS col0
----
1449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT DISTINCT - ( + - 46 ) * - 75 * + + 0 + 4 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT - ( + - 46 ) * - 75 * + + 0 + 4 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT DISTINCT - 96 * + NULLIF ( + CASE WHEN NOT NULL IS NOT NULL THEN 98 END, + COUNT( * ) ) + - 42
----
-9450

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT - 96 * + NULLIF ( + CASE WHEN NOT NULL IS NOT NULL THEN 98 END, + COUNT ( * ) ) + - 42
----
-9450

query I rowsort
SELECT - 43 * 30
----
-1290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5677
SELECT ALL + CAST( + + 78 AS SIGNED ) * - NULLIF ( - CAST( NULL AS SIGNED ), - 43 * - 0 + + 79 ) + 72 + - 6 * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL + CAST ( + + 78 AS INTEGER ) * - NULLIF ( - CAST ( NULL AS INTEGER ), - 43 * - 0 + + 79 ) + 72 + - 6 * - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT 93 * + 53 - - + COUNT( * )
----
4930

skipif mysql # not compatible
query I rowsort label-5678
SELECT 93 * + 53 - - + COUNT ( * )
----
4930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5679
SELECT - 48 + - 37 + - + ( SUM( + NULLIF ( + 63, + 76 + - + 35 ) ) ) - CAST( - - ( - - SUM( + 34 ) ) AS SIGNED ) * 73 + + + 48 * + 13 AS col0
----
-2006

skipif mysql # not compatible
query I rowsort label-5679
SELECT - 48 + - 37 + - + ( SUM ( + NULLIF ( + 63, + 76 + - + 35 ) ) ) - CAST ( - - ( - - SUM ( + 34 ) ) AS INTEGER ) * 73 + + + 48 * + 13 AS col0
----
-2006

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5680
SELECT + 54 + 74 AS col0, + 66 * CAST( NULL AS SIGNED )
----
128
NULL

skipif mysql # not compatible
query II rowsort label-5680
SELECT + 54 + 74 AS col0, + 66 * CAST ( NULL AS INTEGER )
----
128
NULL

query II rowsort
SELECT DISTINCT + 47 * + - 86 + 18 - - 96 AS col1, + 35
----
-3928
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5682
SELECT + MAX( - CAST( + + 85 AS SIGNED ) )
----
-85

skipif mysql # not compatible
query I rowsort label-5682
SELECT + MAX ( - CAST ( + + 85 AS INTEGER ) )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT NULLIF ( + - MIN( + 65 ), - 11 + + COUNT( * ) - - 54 )
----
-65

skipif mysql # not compatible
query I rowsort label-5683
SELECT NULLIF ( + - MIN ( + 65 ), - 11 + + COUNT ( * ) - - 54 )
----
-65

query I rowsort
SELECT 48 * + - 59 + 81 AS col0
----
-2751

onlyif mysql # aggregate syntax: 
query II rowsort label-5685
SELECT DISTINCT + MAX( - 45 ) AS col0, - COUNT( 80 ) AS col0
----
-45
-1

skipif mysql # not compatible
query II rowsort label-5685
SELECT DISTINCT + MAX ( - 45 ) AS col0, - COUNT ( 80 ) AS col0
----
-45
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT ALL + CAST( - 41 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL + CAST ( - 41 AS INTEGER )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-5687
SELECT ALL + - MIN( - 85 ) AS col1, - 44 col1
----
85
-44

skipif mysql # not compatible
query II rowsort label-5687
SELECT ALL + - MIN ( - 85 ) AS col1, - 44 col1
----
85
-44

query I rowsort
SELECT + + 31 + + 67 + - 42
----
56

query I rowsort
SELECT + NULLIF ( + - 30, + 97 ) AS col2
----
-30

query I rowsort
SELECT - - 87 * - - 34
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT + + MIN( - + 56 ) * + 36 AS col2
----
-2016

skipif mysql # not compatible
query I rowsort label-5691
SELECT + + MIN ( - + 56 ) * + 36 AS col2
----
-2016

query I rowsort
SELECT ALL 26 * - + 54 AS col1
----
-1404

query I rowsort
SELECT - COALESCE ( - 34, - 55 ) AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5694
SELECT ALL - 99 * + 73 * + CASE + CASE 10 WHEN + 42 / + + 50 + - + 21 THEN + 14 / + 68 * - - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) WHEN + 33 THEN NULL ELSE + COUNT( * ) END WHEN + - COALESCE ( - ( + + 53 ), - 38 ) THEN ( - 29 ) WHEN - COUNT( * ) * COUNT( 51 ) - + + 15 + 56 * - COUNT( ALL + 54 ) THEN NULL ELSE NULL END - + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL - 99 * + 73 * + CASE + CASE 10 WHEN + 42 / + + 50 + - + 21 THEN + 14 / + 68 * - - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) WHEN + 33 THEN NULL ELSE + COUNT ( * ) END WHEN + - COALESCE ( - ( + + 53 ), - 38 ) THEN ( - 29 ) WHEN - COUNT ( * ) * COUNT ( 51 ) - + + 15 + 56 * - COUNT ( ALL + 54 ) THEN NULL ELSE NULL END - + 0 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5695
SELECT - + COUNT( + - CAST( + 13 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5695
SELECT - + COUNT ( + - CAST ( + 13 AS INTEGER ) ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5696
SELECT + 59 DIV 4
----
14

skipif mysql # not compatible
query I rowsort label-5696
SELECT + 59 / 4
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT - ( MIN( DISTINCT - 24 ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5697
SELECT - ( MIN ( DISTINCT - 24 ) ) AS col0
----
24

query I rowsort
SELECT ALL CASE - 64 WHEN - - 44 THEN - + 12 WHEN - ( 84 ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + + 69 - + - 12 AS col0
----
81

query I rowsort
SELECT + 17 - + 99 * - 49 + 88 AS col2
----
4956

onlyif mysql # aggregate syntax: 
query II rowsort label-5701
SELECT ALL ( + COUNT( * ) ) * COUNT( * ) - + 96 + + CASE - 94 WHEN + 99 THEN + + 30 * - 46 - + 24 - + - 16 + - 53 * + 10 END AS col1, 4
----
NULL
4

skipif mysql # not compatible
query II rowsort label-5701
SELECT ALL ( + COUNT ( * ) ) * COUNT ( * ) - + 96 + + CASE - 94 WHEN + 99 THEN + + 30 * - 46 - + 24 - + - 16 + - 53 * + 10 END AS col1, 4
----
NULL
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5702
SELECT + 38 DIV - 74 col2
----
0

skipif mysql # not compatible
query I rowsort label-5702
SELECT + 38 / - 74 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5703
SELECT + 73 DIV CAST( 86 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5703
SELECT + 73 / CAST ( 86 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5704
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5704
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) + - - COUNT ( * )
----
2

query I rowsort
SELECT + 91 - + + 43 col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL MIN( DISTINCT + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL MIN ( DISTINCT + 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT + 31 + + 72 - + - 13 * - 89 - + - COUNT( * )
----
-1053

skipif mysql # not compatible
query I rowsort label-5707
SELECT + 31 + + 72 - + - 13 * - 89 - + - COUNT ( * )
----
-1053

query I rowsort
SELECT 98 * 31 + + + 29 AS col2
----
3067

query I rowsort
SELECT 66 - - 59
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT DISTINCT - COALESCE ( + 14, MAX( - ( 45 ) ) )
----
-14

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT - COALESCE ( + 14, MAX ( - ( 45 ) ) )
----
-14

query II rowsort
SELECT ALL - 98 - NULLIF ( + - 96, AVG ( DISTINCT + - 35 ) ), 74 AS col0
----
-2
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5712
SELECT DISTINCT + MAX( ALL 11 ) DIV 80 DIV + - NULLIF ( + 71, + 98 + 26 - + 43 ) + + 4 + - 18 * 97
----
-1742

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT + MAX ( ALL 11 ) / 80 / + - NULLIF ( + 71, + 98 + 26 - + 43 ) + + 4 + - 18 * 97
----
-1742

query I rowsort
SELECT 65 + + 52 - - 9 * 20 col2
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5714
SELECT ALL MAX( ALL + - 64 ) * - 59, CAST( - 23 AS SIGNED ) AS col0
----
3776
-23

skipif mysql # not compatible
query II rowsort label-5714
SELECT ALL MAX ( ALL + - 64 ) * - 59, CAST ( - 23 AS INTEGER ) AS col0
----
3776
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5715
SELECT ALL + ( + + CAST( - + SUM( ALL + 37 ) AS SIGNED ) ) * - 34
----
1258

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL + ( + + CAST ( - + SUM ( ALL + 37 ) AS INTEGER ) ) * - 34
----
1258

query I rowsort
SELECT ALL - 96 - - + 42 AS col1
----
-54

query I rowsort
SELECT - 32 * 30 * - 12 * + 67 * - - 34 AS col2
----
26242560

query I rowsort
SELECT - ( - 33 ) * - - 17 + 78
----
639

query I rowsort
SELECT ALL + - 0 * + 92 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT DISTINCT + COUNT( * ) * - 84
----
-84

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT + COUNT ( * ) * - 84
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-5721
SELECT ALL + 39 DIV + 7 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL + 39 / + 7 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT + COUNT( * ) - - - 6 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5722
SELECT + COUNT ( * ) - - - 6 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT CASE - 50 WHEN + 21 THEN NULL ELSE SUM( - 25 ) END * - - 66
----
-1650

skipif mysql # not compatible
query I rowsort label-5723
SELECT CASE - 50 WHEN + 21 THEN NULL ELSE SUM ( - 25 ) END * - - 66
----
-1650

query II rowsort
SELECT + - 81 * 28 + + + 68 AS col0, 21
----
-2200
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT - SUM( 70 ) + - ( 80 )
----
-150

skipif mysql # not compatible
query I rowsort label-5725
SELECT - SUM ( 70 ) + - ( 80 )
----
-150

query I rowsort
SELECT 47 * - - 57
----
2679

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT + 48 * COUNT( * ) col0
----
48

skipif mysql # not compatible
query I rowsort label-5727
SELECT + 48 * COUNT ( * ) col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5728
SELECT COUNT( * ) + + NULLIF ( - 4, - ( COUNT( * ) ) ) AS col0, ( + COUNT( * ) ) * + 73 * 99
----
-3
7227

skipif mysql # not compatible
query II rowsort label-5728
SELECT COUNT ( * ) + + NULLIF ( - 4, - ( COUNT ( * ) ) ) AS col0, ( + COUNT ( * ) ) * + 73 * 99
----
-3
7227

query I rowsort
SELECT - 70 - + - 3
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-5730
SELECT - 29 AS col0, 20 + - - SUM( - ( - - 24 ) ) * - + 30
----
-29
740

skipif mysql # not compatible
query II rowsort label-5730
SELECT - 29 AS col0, 20 + - - SUM ( - ( - - 24 ) ) * - + 30
----
-29
740

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT DISTINCT + 96 + 45 - + 83 * COUNT( * ) + + 75 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT + 96 + 45 - + 83 * COUNT ( * ) + + 75 AS col2
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5732
SELECT 61 AS col1, COUNT( * ) * + COUNT( * ) DIV + + 76
----
61
0

skipif mysql # not compatible
query II rowsort label-5732
SELECT 61 AS col1, COUNT ( * ) * + COUNT ( * ) / + + 76
----
61
0

query I rowsort
SELECT ALL + 19 * + 63
----
1197

query II rowsort
SELECT ALL 42 col2, ( + 83 )
----
42
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT DISTINCT COUNT( * ) + - 0 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT COUNT ( * ) + - 0 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5736
SELECT ALL COUNT( * ) + + 3, 95 * + - 80 AS col0
----
4
-7600

skipif mysql # not compatible
query II rowsort label-5736
SELECT ALL COUNT ( * ) + + 3, 95 * + - 80 AS col0
----
4
-7600

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT 50 + + + 30 - 61 + + + 67 + - + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-5737
SELECT 50 + + + 30 - 61 + + + 67 + - + COUNT ( * )
----
85

query I rowsort
SELECT 21 * 22 AS col1
----
462

query I rowsort
SELECT 56 * - 44 AS col0
----
-2464

onlyif mysql # DIV for integer division: 
query I rowsort label-5740
SELECT ALL 43 DIV - 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL 43 / - 41 AS col0
----
-1

query I rowsort
SELECT 27 + - - 58
----
85

query I rowsort
SELECT NULLIF ( 39, - 11 * 89 * - - 67 + 41 ) * + - 70 AS col1
----
-2730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5743
SELECT 66 + COUNT( * ) + - + 15 - - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + 90 + - + 23 * - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT 66 + COUNT ( * ) + - + 15 - - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + 90 + - + 23 * - + 56
----
NULL

query I rowsort
SELECT DISTINCT 78 * + COALESCE ( - + 51, - 94, 13 + - ( + + 35 ) * + + 93 )
----
-3978

query II rowsort
SELECT 79, - 5 AS col1
----
79
-5

query I rowsort
SELECT 46 * 16 * + 36 AS col0
----
26496

onlyif mysql # DIV for integer division: 
query I rowsort label-5747
SELECT ALL 7 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL 7 / + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT ALL + 67 - + 82 * - 93 - + MIN( 74 ) * + CASE + 7 WHEN - + 40 THEN NULL WHEN - 56 * + 85 * - - COUNT( * ) / + COUNT( * ) + - 89 + + 73 THEN - 71 ELSE NULL END + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL + 67 - + 82 * - 93 - + MIN ( 74 ) * + CASE + 7 WHEN - + 40 THEN NULL WHEN - 56 * + 85 * - - COUNT ( * ) / + COUNT ( * ) + - 89 + + 73 THEN - 71 ELSE NULL END + 53 AS col1
----
NULL

query I rowsort
SELECT ( 16 ) * - 60 * - 99 AS col1
----
95040

query II rowsort
SELECT ALL - 91 col2, 19
----
-91
19

onlyif mysql # aggregate syntax: 
query II rowsort label-5751
SELECT + 27 AS col2, + SUM( DISTINCT - 72 )
----
27
-72

skipif mysql # not compatible
query II rowsort label-5751
SELECT + 27 AS col2, + SUM ( DISTINCT - 72 )
----
27
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5752
SELECT ALL - 7 AS col2, - 31 * + CASE - - 24 WHEN + - 52 * - - MAX( DISTINCT + 33 ) THEN - 51 END - + - CAST( + COUNT( * ) AS SIGNED ) - + 56 + + + 53 AS col0
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-5752
SELECT ALL - 7 AS col2, - 31 * + CASE - - 24 WHEN + - 52 * - - MAX ( DISTINCT + 33 ) THEN - 51 END - + - CAST ( + COUNT ( * ) AS INTEGER ) - + 56 + + + 53 AS col0
----
-7
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5753
SELECT ALL 36 - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL 36 - + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ( 22 ) * + 26
----
572

query I rowsort
SELECT 81 * 42 AS col0
----
3402

query I rowsort
SELECT 52 + 57 AS col0
----
109

query II rowsort
SELECT 41 + + 14 + - ( + - ( - - 50 ) ) * - - 71, + 42 + 52 AS col1
----
3605
94

query I rowsort
SELECT - 30 * + 85
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT + 69 * + - 63 * - + COUNT( * ) AS col0
----
4347

skipif mysql # not compatible
query I rowsort label-5759
SELECT + 69 * + - 63 * - + COUNT ( * ) AS col0
----
4347

query I rowsort
SELECT ALL - ( - - 92 ) AS col0
----
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5761
SELECT DISTINCT - - 48, + CAST( NULL AS DECIMAL ) AS col2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-5761
SELECT DISTINCT - - 48, + CAST ( NULL AS REAL ) AS col2
----
48
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5762
SELECT + ( - COALESCE ( + 58, 29 DIV - COUNT( * ), 64 ) ) * 23 + + - 24 DIV - - 56 + + 32 AS col2
----
-1302

skipif mysql # not compatible
query I rowsort label-5762
SELECT + ( - COALESCE ( + 58, 29 / - COUNT ( * ), 64 ) ) * 23 + + - 24 / - - 56 + + 32 AS col2
----
-1302

query I rowsort
SELECT + NULLIF ( - 50, + 7 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT DISTINCT + + COUNT( * ) + 21 + + 82 + + COUNT( * ) - + 91 * - 82 * COUNT( + 69 )
----
7567

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT + + COUNT ( * ) + 21 + + 82 + + COUNT ( * ) - + 91 * - 82 * COUNT ( + 69 )
----
7567

onlyif mysql # DIV for integer division: 
query I rowsort label-5765
SELECT ALL - - ( 9 ) DIV - + 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL - - ( 9 ) / - + 69 AS col2
----
0

query I rowsort
SELECT DISTINCT - + NULLIF ( + + 74, 0 ) * + + 30 * 6 AS col1
----
-13320

query I rowsort
SELECT DISTINCT - + ( - ( + - 91 ) )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT + 71 * + 98 - - 9 - + 83 + + ( - - 33 ) DIV 63 * 61 DIV + - 71 * - 60
----
6884

skipif mysql # not compatible
query I rowsort label-5768
SELECT + 71 * + 98 - - 9 - + 83 + + ( - - 33 ) / 63 * 61 / + - 71 * - 60
----
6884

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT COUNT( * ) * - + 73 * + 86 + 90
----
-6188

skipif mysql # not compatible
query I rowsort label-5769
SELECT COUNT ( * ) * - + 73 * + 86 + 90
----
-6188

query I rowsort
SELECT DISTINCT - 16 * + - ( 22 ) AS col0
----
352

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5771
SELECT ALL + 58 + CASE + - 57 WHEN + 57 + + 44 - 46 / - 71 * + + 74 * + + COUNT( * ) THEN - + 37 WHEN + CAST( - 77 AS DECIMAL ) THEN NULL ELSE NULL END - + COALESCE ( - 61, 7 ) * - 17 * + - COUNT( * ) * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL + 58 + CASE + - 57 WHEN + 57 + + 44 - 46 / - 71 * + + 74 * + + COUNT ( * ) THEN - + 37 WHEN + CAST ( - 77 AS REAL ) THEN NULL ELSE NULL END - + COALESCE ( - 61, 7 ) * - 17 * + - COUNT ( * ) * + 16
----
NULL

query I rowsort
SELECT ALL - 67 + - 39 * + + 44 col2
----
-1783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5773
SELECT ALL + - CAST( NULL AS SIGNED ) + - - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL + - CAST ( NULL AS INTEGER ) + - - 60 AS col1
----
NULL

query II rowsort
SELECT - + 15, 1 AS col0
----
-15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT ALL + MAX( DISTINCT 34 ) + + 42
----
76

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL + MAX ( DISTINCT 34 ) + + 42
----
76

query I rowsort
SELECT 11 - + - 77 * 37 * - 93 AS col0
----
-264946

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT - MIN( + COALESCE ( 10, - 76 * 72 - 17 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-5777
SELECT - MIN ( + COALESCE ( 10, - 76 * 72 - 17 ) )
----
-10

query I rowsort
SELECT ALL 2 * - - 30 * + 83 AS col1
----
4980

query I rowsort
SELECT - 8 + + 12 AS col1
----
4

query I rowsort
SELECT + 14 * + + 52 * + 86 * 56 * + 31 col0
----
108687488

onlyif mysql # aggregate syntax: 
query II rowsort label-5781
SELECT DISTINCT SUM( ALL + 58 ), + 80 * - CASE + COALESCE ( + 20, - - ( - - 14 ), + + COUNT( DISTINCT - + 65 ) * - 20 * - - 50 * + 17 - + + COUNT( DISTINCT + + 24 ) ) WHEN - AVG ( - ( - 46 ) ) THEN + 25 ELSE NULL END AS col0
----
58
NULL

skipif mysql # not compatible
query II rowsort label-5781
SELECT DISTINCT SUM ( ALL + 58 ), + 80 * - CASE + COALESCE ( + 20, - - ( - - 14 ), + + COUNT ( DISTINCT - + 65 ) * - 20 * - - 50 * + 17 - + + COUNT ( DISTINCT + + 24 ) ) WHEN - AVG ( - ( - 46 ) ) THEN + 25 ELSE NULL END AS col0
----
58
NULL

query I rowsort
SELECT DISTINCT 37 * - + 60
----
-2220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5783
SELECT ALL 96 - + + 31 DIV + + 99 * + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL 96 - + + 31 / + + 99 * + COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT - MIN( - - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-5784
SELECT - MIN ( - - 3 )
----
-3

query I rowsort
SELECT + 78 - - ( - 69 ) AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5786
SELECT - 42 DIV - 41
----
1

skipif mysql # not compatible
query I rowsort label-5786
SELECT - 42 / - 41
----
1

query I rowsort
SELECT + 48 * + 25 * + 1 AS col0
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT + CASE - - 12 WHEN - 11 THEN + + COALESCE ( + + 36, - 13, - MIN( ALL + 52 ) ) + + 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5788
SELECT + CASE - - 12 WHEN - 11 THEN + + COALESCE ( + + 36, - 13, - MIN ( ALL + 52 ) ) + + 41 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5789
SELECT + 54 * CAST( - SUM( DISTINCT - 40 ) AS SIGNED ) + 42 - + ( 50 ) AS col1
----
2152

skipif mysql # not compatible
query I rowsort label-5789
SELECT + 54 * CAST ( - SUM ( DISTINCT - 40 ) AS INTEGER ) + 42 - + ( 50 ) AS col1
----
2152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5790
SELECT - + 94 - - CAST( - 87 AS SIGNED ) * 63 AS col1
----
-5575

skipif mysql # not compatible
query I rowsort label-5790
SELECT - + 94 - - CAST ( - 87 AS INTEGER ) * 63 AS col1
----
-5575

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT ALL 93 * - 48 + COUNT( * )
----
-4463

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL 93 * - 48 + COUNT ( * )
----
-4463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5792
SELECT DISTINCT + 81 * + ( + - CAST( NULL AS SIGNED ) ) + + - 83 * + MIN( ALL 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT + 81 * + ( + - CAST ( NULL AS INTEGER ) ) + + - 83 * + MIN ( ALL 71 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5793
SELECT ALL + 30 * + + 97 * - 20 + + ( SUM( - ( 34 ) ) ) + + COUNT( * ) + - 88 + + + COUNT( * ) * + 98 + + - 6 AS col0, 12 * 91 * - + ( - NULLIF ( - NULLIF ( ( + CASE - AVG ( ALL - - 20 ) WHEN - COUNT( * ) THEN + 57 + COALESCE ( + - 91, 85 * 44 ) END ), + 37 ), + 31 / - 95 - 18 / 60 ) ) * 16 + 4
----
-58229
NULL

skipif mysql # not compatible
query II rowsort label-5793
SELECT ALL + 30 * + + 97 * - 20 + + ( SUM ( - ( 34 ) ) ) + + COUNT ( * ) + - 88 + + + COUNT ( * ) * + 98 + + - 6 AS col0, 12 * 91 * - + ( - NULLIF ( - NULLIF ( ( + CASE - AVG ( ALL - - 20 ) WHEN - COUNT ( * ) THEN + 57 + COALESCE ( + - 91, 85 * 44 ) END ), + 37 ), + 31 / - 95 - 18 / 60 ) ) * 16 + 4
----
-58229
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5794
SELECT ALL + 15 * - - COUNT( * ) + + 59 col0, 39 AS col2
----
74
39

skipif mysql # not compatible
query II rowsort label-5794
SELECT ALL + 15 * - - COUNT ( * ) + + 59 col0, 39 AS col2
----
74
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5795
SELECT ALL ( 74 ) * - 66 col2, - COUNT( ALL 98 ) + + 78 * - 60
----
-4884
-4681

skipif mysql # not compatible
query II rowsort label-5795
SELECT ALL ( 74 ) * - 66 col2, - COUNT ( ALL 98 ) + + 78 * - 60
----
-4884
-4681

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5796
SELECT + 33 * + 95 DIV COUNT( * )
----
3135

skipif mysql # not compatible
query I rowsort label-5796
SELECT + 33 * + 95 / COUNT ( * )
----
3135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5797
SELECT + ( - + CAST( NULL AS SIGNED ) ) * - + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5797
SELECT + ( - + CAST ( NULL AS INTEGER ) ) * - + 14 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5798
SELECT + - COUNT( * ) + 4 - - - SUM( ( - + 89 ) ), 72 + + 11 AS col2
----
92
83

skipif mysql # not compatible
query II rowsort label-5798
SELECT + - COUNT ( * ) + 4 - - - SUM ( ( - + 89 ) ), 72 + + 11 AS col2
----
92
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5799
SELECT CASE + 99 WHEN - + 33 / - 23 + + - 70 * - + 55 + 7 * + CAST( NULL AS SIGNED ) - - 44 + + 23 THEN - 43 / 30 WHEN - COUNT( * ) THEN - - 4 + + ( 47 ) + 40 WHEN + + 38 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5799
SELECT CASE + 99 WHEN - + 33 / - 23 + + - 70 * - + 55 + 7 * + CAST ( NULL AS INTEGER ) - - 44 + + 23 THEN - 43 / 30 WHEN - COUNT ( * ) THEN - - 4 + + ( 47 ) + 40 WHEN + + 38 THEN COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + ( - 58 ) AS col0, - 79 * - - 35 AS col0
----
-58
-2765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5801
SELECT + - CASE + 58 WHEN 56 * + 15 + + - 94 + - COALESCE ( - MIN( ALL + - CAST( NULL AS SIGNED ) ), 43 ) / 52 THEN NULL WHEN - - 50 / - 60 + - 87 THEN + ( + 69 ) + MAX( ALL - + 79 ) ELSE NULL END + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-5801
SELECT + - CASE + 58 WHEN 56 * + 15 + + - 94 + - COALESCE ( - MIN ( ALL + - CAST ( NULL AS INTEGER ) ), 43 ) / 52 THEN NULL WHEN - - 50 / - 60 + - 87 THEN + ( + 69 ) + MAX ( ALL - + 79 ) ELSE NULL END + - 17
----
NULL

query I rowsort
SELECT - - 76 * + 72 * - + 73
----
-399456

query I rowsort
SELECT DISTINCT 48 * - - 42 * 18 * + 14
----
508032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5804
SELECT ALL - NULLIF ( - 7, - - 29 + + AVG ( - + 88 ) * - 41 ) * - 3 + + 16 + - ( + COUNT( * ) ) * COUNT( * ) DIV 21 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - NULLIF ( - 7, - - 29 + + AVG ( - + 88 ) * - 41 ) * - 3 + + 16 + - ( + COUNT ( * ) ) * COUNT ( * ) / 21 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT DISTINCT - + 74 * - + 35 + + MAX( ALL + ( 87 ) ) + + + 54 + + 12 * - COUNT( * ) * - 80 * 4 * 60 * CASE - 96 WHEN + 13 THEN NULL WHEN + CASE + 52 WHEN ( + 72 ) * - 92 + + 19 * - 32 THEN NULL ELSE - 26 * + CASE WHEN NOT ( NULL ) IN ( 63 ) THEN NULL ELSE 27 * - 18 END / 26 END THEN NULL WHEN 39 THEN 66 END / ( 4 ) / + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT - + 74 * - + 35 + + MAX ( ALL + ( 87 ) ) + + + 54 + + 12 * - COUNT ( * ) * - 80 * 4 * 60 * CASE - 96 WHEN + 13 THEN NULL WHEN + CASE + 52 WHEN ( + 72 ) * - 92 + + 19 * - 32 THEN NULL ELSE - 26 * + CASE WHEN NOT ( NULL ) IN ( 63 ) THEN NULL ELSE 27 * - 18 END / 26 END THEN NULL WHEN 39 THEN 66 END / ( 4 ) / + 69
----
NULL

query I rowsort
SELECT DISTINCT - + 32 * 12 + 68 + 46
----
-270

query I rowsort
SELECT DISTINCT - + 75 * - + 98 + + 25
----
7375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5808
SELECT CAST( CAST( + + CASE - 51 WHEN COUNT( * ) + 67 + + + 43 * - 88 * COUNT( * ) THEN NULL WHEN - - 21 - - 69 THEN - 90 + - 94 END AS SIGNED ) AS SIGNED ), 71 AS col1
----
NULL
71

skipif mysql # not compatible
query II rowsort label-5808
SELECT CAST ( CAST ( + + CASE - 51 WHEN COUNT ( * ) + 67 + + + 43 * - 88 * COUNT ( * ) THEN NULL WHEN - - 21 - - 69 THEN - 90 + - 94 END AS INTEGER ) AS INTEGER ), 71 AS col1
----
NULL
71

query I rowsort
SELECT - 44 + 70
----
26

query I rowsort
SELECT + 56 + + 34 + - + 3 * - 10 AS col0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5811
SELECT - NULLIF ( + 75, COUNT( * ) * + COALESCE ( + - 64, SUM( - 89 ) + - ( - COUNT( * ) ) - + 99 - - 52, + 28 * - CASE - 48 WHEN + COALESCE ( CAST( NULL AS SIGNED ), + + 99 / 23 + + - 21 * SUM( 95 ) * + + 48 * + 15 + + CAST( NULL AS SIGNED ) + + - COALESCE ( - - 47, + - 88, + 96 ) - - COUNT( * ) ) * - COUNT( * ) THEN + 74 WHEN COALESCE ( 8, ( 5 ) * 94 + 44 ) THEN NULL END ) + 42 + - COUNT( * ) * 30 ) - - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-5811
SELECT - NULLIF ( + 75, COUNT ( * ) * + COALESCE ( + - 64, SUM ( - 89 ) + - ( - COUNT ( * ) ) - + 99 - - 52, + 28 * - CASE - 48 WHEN + COALESCE ( CAST ( NULL AS INTEGER ), + + 99 / 23 + + - 21 * SUM ( 95 ) * + + 48 * + 15 + + CAST ( NULL AS INTEGER ) + + - COALESCE ( - - 47, + - 88, + 96 ) - - COUNT ( * ) ) * - COUNT ( * ) THEN + 74 WHEN COALESCE ( 8, ( 5 ) * 94 + 44 ) THEN NULL END ) + 42 + - COUNT ( * ) * 30 ) - - COUNT ( * )
----
-74

query I rowsort
SELECT - 97 * + - 40
----
3880

query I rowsort
SELECT ALL - 39 * + - ( + 92 )
----
3588

query I rowsort
SELECT - 8 + + 15 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5815
SELECT ALL - 66 - + SUM( DISTINCT + NULLIF ( 56, - - CAST( - 39 AS SIGNED ) ) )
----
-122

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL - 66 - + SUM ( DISTINCT + NULLIF ( 56, - - CAST ( - 39 AS INTEGER ) ) )
----
-122

query I rowsort
SELECT - 2 * 69 col0
----
-138

query I rowsort
SELECT ALL - 94 * + 6 AS col2
----
-564

onlyif mysql # DIV for integer division: 
query I rowsort label-5818
SELECT ALL 90 DIV + - 21
----
-4

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL 90 / + - 21
----
-4

query II rowsort
SELECT - 54 + ( - - 0 ) AS col2, ( ( - 60 ) ) AS col1
----
-54
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5820
SELECT ALL - 67 - - - 85 + - 14 AS col1, - CAST( NULL AS SIGNED ) AS col2
----
-166
NULL

skipif mysql # not compatible
query II rowsort label-5820
SELECT ALL - 67 - - - 85 + - 14 AS col1, - CAST ( NULL AS INTEGER ) AS col2
----
-166
NULL

query I rowsort
SELECT - NULLIF ( 27, + COALESCE ( - 73, + ( + - 99 ) + + - 70 ) ) + - - ( - 98 ) + + 76 * 30 AS col0
----
2155

query I rowsort
SELECT - 36 + 67 AS col0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5823
SELECT DISTINCT ( - + CAST( + 6 AS SIGNED ) )
----
-6

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT ( - + CAST ( + 6 AS INTEGER ) )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5824
SELECT ALL - 32 * - + CAST( NULL AS SIGNED ) * + + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL - 32 * - + CAST ( NULL AS INTEGER ) * + + 56 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 68 * + - 66
----
-4488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5826
SELECT + NULLIF ( + 6, 35 * + COUNT( * ) + - 74 - - 98 / + - 70 * MIN( DISTINCT + CAST( + 88 AS SIGNED ) ) * + - CASE + CASE + 77 WHEN - 98 + ( - 80 ) + + + 61 * - - NULLIF ( - COUNT( * ), NULLIF ( + 62, - 24 ) ) THEN 85 WHEN CAST( NULL AS SIGNED ) * + CASE + COUNT( * ) WHEN 93 + 63 THEN 99 WHEN ( ( 90 ) ) THEN NULL END + CAST( NULL AS SIGNED ) THEN + 52 + 46 ELSE NULL END WHEN - 9 + ( - 47 + 6 ) * 30 THEN COUNT( ALL 61 ) * - 38 END ) col1
----
6

skipif mysql # not compatible
query I rowsort label-5826
SELECT + NULLIF ( + 6, 35 * + COUNT ( * ) + - 74 - - 98 / + - 70 * MIN ( DISTINCT + CAST ( + 88 AS INTEGER ) ) * + - CASE + CASE + 77 WHEN - 98 + ( - 80 ) + + + 61 * - - NULLIF ( - COUNT ( * ), NULLIF ( + 62, - 24 ) ) THEN 85 WHEN CAST ( NULL AS INTEGER ) * + CASE + COUNT ( * ) WHEN 93 + 63 THEN 99 WHEN ( ( 90 ) ) THEN NULL END + CAST ( NULL AS INTEGER ) THEN + 52 + 46 ELSE NULL END WHEN - 9 + ( - 47 + 6 ) * 30 THEN COUNT ( ALL 61 ) * - 38 END ) col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5827
SELECT CASE + - CAST( - + 30 AS SIGNED ) WHEN + NULLIF ( + CAST( + - CAST( - 66 AS SIGNED ) AS SIGNED ), - + 21 * + 81 ) THEN AVG ( + 11 ) * + + 58 WHEN ( - 8 ) THEN NULL END * + COUNT( * ) + 50 * + 52 * + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT CASE + - CAST ( - + 30 AS INTEGER ) WHEN + NULLIF ( + CAST ( + - CAST ( - 66 AS INTEGER ) AS INTEGER ), - + 21 * + 81 ) THEN AVG ( + 11 ) * + + 58 WHEN ( - 8 ) THEN NULL END * + COUNT ( * ) + 50 * + 52 * + 71 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT ALL - + 81 / + CAST( NULL AS SIGNED ) + - - 39 + - 56 * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL - + 81 / + CAST ( NULL AS INTEGER ) + - - 39 + - 56 * 28
----
NULL

query II rowsort
SELECT - 13 AS col2, 83 + 56 AS col0
----
-13
139

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5830
SELECT + - 54 * CAST( 48 AS SIGNED ) DIV + 74 + + - NULLIF ( - 76, + 7 * - 74 ) - + 51
----
-10

skipif mysql # not compatible
query I rowsort label-5830
SELECT + - 54 * CAST ( 48 AS INTEGER ) / + 74 + + - NULLIF ( - 76, + 7 * - 74 ) - + 51
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5831
SELECT + + 76 AS col2, - CAST( NULL AS SIGNED ) + - 91 - + COUNT( * ) + - 67 + 26 * - + 73 * + AVG ( DISTINCT - 0 ) AS col1
----
76
NULL

skipif mysql # not compatible
query II rowsort label-5831
SELECT + + 76 AS col2, - CAST ( NULL AS INTEGER ) + - 91 - + COUNT ( * ) + - 67 + 26 * - + 73 * + AVG ( DISTINCT - 0 ) AS col1
----
76
NULL

query I rowsort
SELECT DISTINCT + + ( - 32 ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT DISTINCT - + CASE - COUNT( * ) WHEN + + 82 * - - 11 THEN - 84 WHEN 57 - + CASE + ( - + 10 ) WHEN + 43 THEN - 53 WHEN + 9 / 49 - + - 0 THEN + COALESCE ( + - 44, - 87 / 91 + - 28 + + + 55 / + - 13 - 64 * - CASE + + 50 WHEN 41 + + - 92 THEN NULL WHEN - 66 * ( 1 ) THEN 1 * 24 END ) WHEN 46 THEN NULL WHEN 3 THEN 12 ELSE 30 * - 60 END / NULLIF ( 2, + 76 ) THEN - 5 + 87 ELSE NULL END * + 56 + + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT - + CASE - COUNT ( * ) WHEN + + 82 * - - 11 THEN - 84 WHEN 57 - + CASE + ( - + 10 ) WHEN + 43 THEN - 53 WHEN + 9 / 49 - + - 0 THEN + COALESCE ( + - 44, - 87 / 91 + - 28 + + + 55 / + - 13 - 64 * - CASE + + 50 WHEN 41 + + - 92 THEN NULL WHEN - 66 * ( 1 ) THEN 1 * 24 END ) WHEN 46 THEN NULL WHEN 3 THEN 12 ELSE 30 * - 60 END / NULLIF ( 2, + 76 ) THEN - 5 + 87 ELSE NULL END * + 56 + + 32 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + - 30 * - + 59 + + 57 col1, + 46
----
1827
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT ALL - 75 * - SUM( DISTINCT 82 )
----
6150

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL - 75 * - SUM ( DISTINCT 82 )
----
6150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5836
SELECT ALL + + 31 * - MAX( DISTINCT - ( - 57 ) ) - + COALESCE ( COUNT( * ), - - SUM( - - 39 ), + + 17, 0 * - 67 DIV + 18 ) * - - 51 DIV + - COUNT( * ) + COALESCE ( + + 93, - 13, - 94 )
----
-1623

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL + + 31 * - MAX ( DISTINCT - ( - 57 ) ) - + COALESCE ( COUNT ( * ), - - SUM ( - - 39 ), + + 17, 0 * - 67 / + 18 ) * - - 51 / + - COUNT ( * ) + COALESCE ( + + 93, - 13, - 94 )
----
-1623

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ALL + SUM( - 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL + SUM ( - 78 ) AS col0
----
-78

query I rowsort
SELECT DISTINCT ( + ( + ( + 94 ) ) ) * + 27
----
2538

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT ALL COUNT( * ) * + 74 col0
----
74

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL COUNT ( * ) * + 74 col0
----
74

query I rowsort
SELECT 66 + 13
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5841
SELECT ALL 20 - + 61 * 25 DIV + - COALESCE ( 17, 46 ) col2
----
109

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL 20 - + 61 * 25 / + - COALESCE ( 17, 46 ) col2
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-5842
SELECT DISTINCT 78 DIV - 29 col1
----
-2

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT 78 / - 29 col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5843
SELECT 46 - + CAST( - 39 AS SIGNED ) col1
----
85

skipif mysql # not compatible
query I rowsort label-5843
SELECT 46 - + CAST ( - 39 AS INTEGER ) col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT 84 * - SUM( 6 ) AS col1
----
-504

skipif mysql # not compatible
query I rowsort label-5844
SELECT 84 * - SUM ( 6 ) AS col1
----
-504

query I rowsort
SELECT ALL + 8 * - + 82
----
-656

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5846
SELECT DISTINCT 59 * CAST( + 27 AS SIGNED ) DIV + 20
----
79

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT 59 * CAST ( + 27 AS INTEGER ) / + 20
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5847
SELECT ALL 18 + - MAX( 2 ) + + + MIN( - 99 ) * - MIN( ALL + 76 ) AS col2, 50 * + 88 AS col2
----
7540
4400

skipif mysql # not compatible
query II rowsort label-5847
SELECT ALL 18 + - MAX ( 2 ) + + + MIN ( - 99 ) * - MIN ( ALL + 76 ) AS col2, 50 * + 88 AS col2
----
7540
4400

query II rowsort
SELECT ALL + 63 + - - 72 * 33 + - - 54 AS col0, 31 AS col0
----
2493
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT + SUM( + - 7 ) * 30 col0
----
-210

skipif mysql # not compatible
query I rowsort label-5849
SELECT + SUM ( + - 7 ) * 30 col0
----
-210

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5850
SELECT - - CAST( + ( CAST( NULL AS SIGNED ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5850
SELECT - - CAST ( + ( CAST ( NULL AS INTEGER ) ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5851
SELECT ALL + 95 + COUNT( * ), 45 * - - 11 AS col1
----
96
495

skipif mysql # not compatible
query II rowsort label-5851
SELECT ALL + 95 + COUNT ( * ), 45 * - - 11 AS col1
----
96
495

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT - COUNT( * ) * - 4 * - 46 col0
----
-184

skipif mysql # not compatible
query I rowsort label-5852
SELECT - COUNT ( * ) * - 4 * - 46 col0
----
-184

query I rowsort
SELECT 67 + - 94
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5854
SELECT + COUNT( * ) * - - 19 + - + 40 DIV - 80 col0
----
19

skipif mysql # not compatible
query I rowsort label-5854
SELECT + COUNT ( * ) * - - 19 + - + 40 / - 80 col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5855
SELECT ALL - CASE + 94 WHEN - SUM( DISTINCT 65 ) - CASE - COUNT( * ) WHEN - COUNT( * ) * - 48 * - 69 * - 40 - + - 87 THEN NULL ELSE 86 END THEN + 82 / + + 50 + - + 42 * + CAST( - COUNT( * ) AS SIGNED ) - COUNT( * ) * + 56 / 18 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL - CASE + 94 WHEN - SUM ( DISTINCT 65 ) - CASE - COUNT ( * ) WHEN - COUNT ( * ) * - 48 * - 69 * - 40 - + - 87 THEN NULL ELSE 86 END THEN + 82 / + + 50 + - + 42 * + CAST ( - COUNT ( * ) AS INTEGER ) - COUNT ( * ) * + 56 / 18 END AS col0
----
NULL

query I rowsort
SELECT ALL - - 11 + ( 22 )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5857
SELECT DISTINCT 0 * + 92, COUNT( * ) + 13 + 59 + - + 8 * 93 * 78 AS col2
----
0
-57959

skipif mysql # not compatible
query II rowsort label-5857
SELECT DISTINCT 0 * + 92, COUNT ( * ) + 13 + 59 + - + 8 * 93 * 78 AS col2
----
0
-57959

query I rowsort
SELECT ALL + + 98 * + 0 + 23 AS col0
----
23

query I rowsort
SELECT 83 + + 9 * + ( 1 ) AS col0
----
92

query I rowsort
SELECT - 40 + 48
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT - 15 * + ( 54 ) * + SUM( DISTINCT - 58 ) * + - 19
----
-892620

skipif mysql # not compatible
query I rowsort label-5861
SELECT - 15 * + ( 54 ) * + SUM ( DISTINCT - 58 ) * + - 19
----
-892620

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT - 90 * 0 * + COUNT( * ) + 79 - + 97 * + 8
----
-697

skipif mysql # not compatible
query I rowsort label-5862
SELECT - 90 * 0 * + COUNT ( * ) + 79 - + 97 * + 8
----
-697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5863
SELECT - COUNT( * ) DIV - 9 + + + ( 32 )
----
32

skipif mysql # not compatible
query I rowsort label-5863
SELECT - COUNT ( * ) / - 9 + + + ( 32 )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5864
SELECT 31 + 20 - - 28 * ( MIN( DISTINCT + 20 ) ) * 92 + - 31 + + - 88 + - 38 DIV 60
----
51452

skipif mysql # not compatible
query I rowsort label-5864
SELECT 31 + 20 - - 28 * ( MIN ( DISTINCT + 20 ) ) * 92 + - 31 + + - 88 + - 38 / 60
----
51452

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT ALL 20 - 41 + 95 * - 5 * + COUNT( * ) AS col2
----
-496

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL 20 - 41 + 95 * - 5 * + COUNT ( * ) AS col2
----
-496

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT ALL 79 DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL 79 / - 60
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT ALL - CAST( + + 5 AS SIGNED ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL - CAST ( + + 5 AS INTEGER ) col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT DISTINCT - MIN( ALL + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT - MIN ( ALL + 2 )
----
-2

query II rowsort
SELECT + 44 AS col1, - 69 AS col2
----
44
-69

query I rowsort
SELECT ALL 73 * 27 AS col1
----
1971

query I rowsort
SELECT ALL 43 * 67 * + + 81
----
233361

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5872
SELECT COUNT( * ) * + 27 + COALESCE ( + - 29, 86 + + - 9 * 54 DIV + + 83 * - + 91 ) DIV MAX( ALL + 51 ) + + 45
----
72

skipif mysql # not compatible
query I rowsort label-5872
SELECT COUNT ( * ) * + 27 + COALESCE ( + - 29, 86 + + - 9 * 54 / + + 83 * - + 91 ) / MAX ( ALL + 51 ) + + 45
----
72

query I rowsort
SELECT DISTINCT 19 * - 6 AS col1
----
-114

query I rowsort
SELECT ALL 13 + + 85 col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT 91 - - CAST( NULL AS SIGNED ) - + - COALESCE ( - - 63, + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT 91 - - CAST ( NULL AS INTEGER ) - + - COALESCE ( - - 63, + 77 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT DISTINCT 18 + + - MIN( DISTINCT 5 ) + 7 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT 18 + + - MIN ( DISTINCT 5 ) + 7 AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5877
SELECT DISTINCT COUNT( * ) + COUNT( ALL + 58 ) + + COUNT( ALL + 91 ) DIV + 3
----
2

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT COUNT ( * ) + COUNT ( ALL + 58 ) + + COUNT ( ALL + 91 ) / + 3
----
2

query I rowsort
SELECT DISTINCT 36 + + 22 - 59 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5879
SELECT DISTINCT - 31 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT - 31 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5880
SELECT CAST( - COUNT( * ) AS SIGNED ) + + + 56 + + - 9 + 15 + + 85 col2
----
146

skipif mysql # not compatible
query I rowsort label-5880
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + + 56 + + - 9 + 15 + + 85 col2
----
146

query II rowsort
SELECT DISTINCT 25 + - CASE + 50 WHEN 94 THEN + - 0 WHEN - 45 - + - 36 + 36 * - 18 + + 60 * + 30 * + - 51 - - 95 THEN NULL END, COALESCE ( 29, + + 62 ) AS col1
----
NULL
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT ALL COUNT( * ) + - - 79 + - 57 * - 46
----
2702

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL COUNT ( * ) + - - 79 + - 57 * - 46
----
2702

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT DISTINCT + 33 + + 56 + - CASE - 79 WHEN + COUNT( * ) THEN NULL WHEN - + 97 THEN + + 74 * + + NULLIF ( - 4, + - COUNT( * ) * + - 10 ) WHEN + 76 THEN NULL END * + - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT + 33 + + 56 + - CASE - 79 WHEN + COUNT ( * ) THEN NULL WHEN - + 97 THEN + + 74 * + + NULLIF ( - 4, + - COUNT ( * ) * + - 10 ) WHEN + 76 THEN NULL END * + - 85 AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( 36, + 73 ) + + 45 AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5885
SELECT MAX( + - 14 ) DIV 14
----
-1

skipif mysql # not compatible
query I rowsort label-5885
SELECT MAX ( + - 14 ) / 14
----
-1

query II rowsort
SELECT DISTINCT + 85 AS col2, + 21 - - 64 AS col1
----
85
85

query I rowsort
SELECT ALL - - CASE - 7 WHEN + 0 THEN 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT 90 + 42 - 84 + + + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-5888
SELECT 90 + 42 - 84 + + + COUNT ( * )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5889
SELECT DISTINCT + 31 * - COUNT( * ) * + + COALESCE ( - COUNT( * ), MIN( + 13 ) * - - 66 * + CAST( NULL AS SIGNED ) - + 16 + 25 / - 76 * COALESCE ( + 24, - - 42 + + + 70 ), 5 ) - CASE - NULLIF ( - ( - MIN( 63 ) ), 27 * 92 + + + 67 * 92 * - 61 + - 37 ) WHEN 8 THEN 18 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT + 31 * - COUNT ( * ) * + + COALESCE ( - COUNT ( * ), MIN ( + 13 ) * - - 66 * + CAST ( NULL AS INTEGER ) - + 16 + 25 / - 76 * COALESCE ( + 24, - - 42 + + + 70 ), 5 ) - CASE - NULLIF ( - ( - MIN ( 63 ) ), 27 * 92 + + + 67 * 92 * - 61 + - 37 ) WHEN 8 THEN 18 ELSE NULL END
----
NULL

query I rowsort
SELECT - 42 * + + 8 + - 46 AS col0
----
-382

onlyif mysql # DIV for integer division: 
query I rowsort label-5891
SELECT DISTINCT - 6 DIV - 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT - 6 / - 17 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5892
SELECT DISTINCT + - CAST( - 9 AS SIGNED ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT + - CAST ( - 9 AS INTEGER ) AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT - 88 * + 87 - 78 + - - 95 DIV + ( 22 ) AS col1
----
-7730

skipif mysql # not compatible
query I rowsort label-5893
SELECT - 88 * + 87 - 78 + - - 95 / + ( 22 ) AS col1
----
-7730

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT ALL + + CASE + - MAX( DISTINCT + - 23 ) WHEN - 70 + + COUNT( * ) + - COUNT( * ) THEN 64 * - + 10 + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL + + CASE + - MAX ( DISTINCT + - 23 ) WHEN - 70 + + COUNT ( * ) + - COUNT ( * ) THEN 64 * - + 10 + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + - ( - 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5896
SELECT DISTINCT + CASE CAST( SUM( DISTINCT + + 96 ) AS SIGNED ) WHEN 60 THEN + + 17 WHEN 31 * - - 10 + - + 83 * + + CASE CAST( COUNT( * ) AS DECIMAL ) WHEN - - ( 98 ) THEN - 95 END THEN - - 96 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT + CASE CAST ( SUM ( DISTINCT + + 96 ) AS INTEGER ) WHEN 60 THEN + + 17 WHEN 31 * - - 10 + - + 83 * + + CASE CAST ( COUNT ( * ) AS REAL ) WHEN - - ( 98 ) THEN - 95 END THEN - - 96 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 73 * 50
----
3650

onlyif mysql # aggregate syntax: 
query II rowsort label-5898
SELECT ALL + MIN( DISTINCT + 75 ), - 18 AS col0
----
75
-18

skipif mysql # not compatible
query II rowsort label-5898
SELECT ALL + MIN ( DISTINCT + 75 ), - 18 AS col0
----
75
-18

query I rowsort
SELECT DISTINCT - 11 * + + 18 + - 48
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT - COUNT( * ) * - + 66 * - 77 * - - 91
----
-462462

skipif mysql # not compatible
query I rowsort label-5900
SELECT - COUNT ( * ) * - + 66 * - 77 * - - 91
----
-462462

query I rowsort
SELECT + 31 * + 20
----
620

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT DISTINCT + COALESCE ( ( + - 48 ), 16 + + 66 * COALESCE ( COUNT( DISTINCT - 99 ), - 19, + 45 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-5902
SELECT DISTINCT + COALESCE ( ( + - 48 ), 16 + + 66 * COALESCE ( COUNT ( DISTINCT - 99 ), - 19, + 45 ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT MIN( ALL + 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5903
SELECT MIN ( ALL + 2 ) AS col2
----
2

query I rowsort
SELECT ALL 90 + - 85 * 42
----
-3480

query I rowsort
SELECT - 95 * 33 * + 14
----
-43890

query I rowsort
SELECT ALL - 8 + 42 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT - COUNT( DISTINCT - - ( + 65 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5907
SELECT - COUNT ( DISTINCT - - ( + 65 ) )
----
-1

query II rowsort
SELECT 58, 46 + + 91 AS col1
----
58
137

onlyif mysql # aggregate syntax: 
query II rowsort label-5909
SELECT ALL 60 + - 47 AS col1, - SUM( 44 ) AS col0
----
13
-44

skipif mysql # not compatible
query II rowsort label-5909
SELECT ALL 60 + - 47 AS col1, - SUM ( 44 ) AS col0
----
13
-44

query I rowsort
SELECT + 65 * + 72 AS col0
----
4680

onlyif mysql # DIV for integer division: 
query I rowsort label-5911
SELECT ALL - 72 DIV - 90 * - 33
----
0

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL - 72 / - 90 * - 33
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5912
SELECT DISTINCT 89 + - - 24 + - - CASE + 8 WHEN - - 59 * + SUM( ALL + - 95 ) * + ( - 65 ) + 46 * COUNT( * ) - - 89 * + ( + COUNT( * ) ) THEN - AVG ( ALL + CAST( NULL AS SIGNED ) ) ELSE NULL END * + ( - 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT 89 + - - 24 + - - CASE + 8 WHEN - - 59 * + SUM ( ALL + - 95 ) * + ( - 65 ) + 46 * COUNT ( * ) - - 89 * + ( + COUNT ( * ) ) THEN - AVG ( ALL + CAST ( NULL AS INTEGER ) ) ELSE NULL END * + ( - 27 ) AS col0
----
NULL

query II rowsort
SELECT - 12 + - 52, - 73 * - 85 AS col2
----
-64
6205

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT + 18 DIV - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5914
SELECT + 18 / - 80 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT ALL 24 + + CASE COUNT( * ) WHEN 83 THEN - 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL 24 + + CASE COUNT ( * ) WHEN 83 THEN - 98 END
----
NULL

query I rowsort
SELECT + + 15 + - 81 col0
----
-66

query I rowsort
SELECT ALL ( + + 95 ) col2
----
95

query I rowsort
SELECT DISTINCT + ( - 64 ) * - 70 AS col2
----
4480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5919
SELECT ALL + CAST( NULL AS SIGNED ) - 28 * + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL + CAST ( NULL AS INTEGER ) - 28 * + - 66
----
NULL

query I rowsort
SELECT + 33 * - 45
----
-1485

query I rowsort
SELECT + ( 71 ) - - + COALESCE ( - 98, 65 * + 28 ) AS col0
----
-27

query I rowsort
SELECT DISTINCT NULLIF ( - 15, 2 * - - 56 / 89 + + - 22 ) AS col2
----
-15

query II rowsort
SELECT DISTINCT - 48, - 99 AS col1
----
-48
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5924
SELECT + 0 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT + 0 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5925
SELECT + COUNT( * ) AS col0, ( - + ( - CAST( + - 72 AS SIGNED ) ) ) AS col1
----
1
-72

skipif mysql # not compatible
query II rowsort label-5925
SELECT + COUNT ( * ) AS col0, ( - + ( - CAST ( + - 72 AS INTEGER ) ) ) AS col1
----
1
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT ALL - + 31 * COUNT( - - 16 )
----
-31

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL - + 31 * COUNT ( - - 16 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5927
SELECT + + 22 * + CAST( MAX( DISTINCT + 75 ) AS SIGNED ) - + - 99
----
1749

skipif mysql # not compatible
query I rowsort label-5927
SELECT + + 22 * + CAST ( MAX ( DISTINCT + 75 ) AS INTEGER ) - + - 99
----
1749

query II rowsort
SELECT ALL + + 10 col0, - 61 col0
----
10
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-5929
SELECT 99, + 77 DIV - - 29 - - - 6 AS col0
----
99
-4

skipif mysql # not compatible
query II rowsort label-5929
SELECT 99, + 77 / - - 29 - - - 6 AS col0
----
99
-4

query I rowsort
SELECT ALL + + ( 31 )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5931
SELECT - 63 DIV - 43 - + ( - COUNT( * ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5931
SELECT - 63 / - 43 - + ( - COUNT ( * ) ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT ALL 33 * - COUNT( * ) * + COALESCE ( - 76, ( + 88 ) )
----
2508

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL 33 * - COUNT ( * ) * + COALESCE ( - 76, ( + 88 ) )
----
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT - 79 * NULLIF ( - 39, + - COALESCE ( - - 0, - COUNT( * ) * + - 52 + + COUNT( * ), 46 * - + 56 + 19 * - + ( - + 28 ) * + 13 ) - 58 / 50 ) * NULLIF ( - 9, 13 ) AS col2
----
-27729

skipif mysql # not compatible
query I rowsort label-5933
SELECT - 79 * NULLIF ( - 39, + - COALESCE ( - - 0, - COUNT ( * ) * + - 52 + + COUNT ( * ), 46 * - + 56 + 19 * - + ( - + 28 ) * + 13 ) - 58 / 50 ) * NULLIF ( - 9, 13 ) AS col2
----
-27729

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT ALL + MIN( - + 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL + MIN ( - + 10 ) AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5935
SELECT ALL 61 * - + SUM( DISTINCT 57 ) + - 39 * + CAST( NULL AS SIGNED ) + - + 87 * - 43 AS col0, - 44 + + + 72 - ( + + 92 ) col2
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-5935
SELECT ALL 61 * - + SUM ( DISTINCT 57 ) + - 39 * + CAST ( NULL AS INTEGER ) + - + 87 * - 43 AS col0, - 44 + + + 72 - ( + + 92 ) col2
----
NULL
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5936
SELECT ALL MAX( DISTINCT 27 ) * COUNT( * ) - NULLIF ( + - 72, + 10 * - - 17 ) + CAST( NULL AS SIGNED ) * + 86 + + 88 * - - MIN( 94 ) * 96 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL MAX ( DISTINCT 27 ) * COUNT ( * ) - NULLIF ( + - 72, + 10 * - - 17 ) + CAST ( NULL AS INTEGER ) * + 86 + + 88 * - - MIN ( 94 ) * 96 col1
----
NULL

query I rowsort
SELECT 40 * - - 39 + + + 83
----
1643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5938
SELECT + CAST( - NULLIF ( + COALESCE ( - 98, + 84 ), + + COUNT( * ) * - COUNT( * ) * + MIN( + + ( 83 ) ) / - 64 ) AS SIGNED ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5938
SELECT + CAST ( - NULLIF ( + COALESCE ( - 98, + 84 ), + + COUNT ( * ) * - COUNT ( * ) * + MIN ( + + ( 83 ) ) / - 64 ) AS INTEGER ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT 76 * + - 92 + - SUM( 45 )
----
-7037

skipif mysql # not compatible
query I rowsort label-5939
SELECT 76 * + - 92 + - SUM ( 45 )
----
-7037

query I rowsort
SELECT NULLIF ( 92, 6 ) col2
----
92

query I rowsort
SELECT - 89 + - CASE + 58 WHEN - 69 * - - 75 THEN NULL ELSE 35 * 5 END
----
-264

query II rowsort
SELECT DISTINCT - 4 * 14, - 70 AS col2
----
-56
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5943
SELECT + COALESCE ( + 82, - 85 * 90 + 25, - - MIN( - + ( - - 23 ) ) * - CAST( NULL AS SIGNED ) + + CAST( + + 17 AS SIGNED ) * - 97 + - 20 - - + 39 ) * ( 52 ) * + - 41 + 21 * + 6 AS col2
----
-174698

skipif mysql # not compatible
query I rowsort label-5943
SELECT + COALESCE ( + 82, - 85 * 90 + 25, - - MIN ( - + ( - - 23 ) ) * - CAST ( NULL AS INTEGER ) + + CAST ( + + 17 AS INTEGER ) * - 97 + - 20 - - + 39 ) * ( 52 ) * + - 41 + 21 * + 6 AS col2
----
-174698

query II rowsort
SELECT ALL - 86 * + 10, - 64 AS col1
----
-860
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-5945
SELECT NULLIF ( - - 95, + 78 ), 66 * - + 55 + - + ( + - CASE - COALESCE ( + + 83, + 76 ) WHEN - MIN( ALL + 30 ) - + MAX( ( 2 ) ) * + + COUNT( * ) THEN - + COUNT( * ) ELSE + + 6 END ) AS col2
----
95
-3624

skipif mysql # not compatible
query II rowsort label-5945
SELECT NULLIF ( - - 95, + 78 ), 66 * - + 55 + - + ( + - CASE - COALESCE ( + + 83, + 76 ) WHEN - MIN ( ALL + 30 ) - + MAX ( ( 2 ) ) * + + COUNT ( * ) THEN - + COUNT ( * ) ELSE + + 6 END ) AS col2
----
95
-3624

query I rowsort
SELECT 14 * + 70 + - 72
----
908

query I rowsort
SELECT - 54 * + 4 * + 69
----
-14904

query I rowsort
SELECT - NULLIF ( + 93, - + 54 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT - 18 + - MIN( ALL + 8 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5949
SELECT - 18 + - MIN ( ALL + 8 ) AS col1
----
-26

query I rowsort
SELECT ALL 65 * + 56 - + 42 + + 23 AS col2
----
3621

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT SUM( - 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-5951
SELECT SUM ( - 53 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT - COUNT( * ) + + 88 + - - 58 * - - MAX( DISTINCT 76 ) AS col0
----
4495

skipif mysql # not compatible
query I rowsort label-5952
SELECT - COUNT ( * ) + + 88 + - - 58 * - - MAX ( DISTINCT 76 ) AS col0
----
4495

query I rowsort
SELECT + NULLIF ( 22, + 14 ) AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5954
SELECT ALL COUNT( * ) - + MIN( ALL - + 62 ) DIV + 13 + + + 10 col2, COUNT( * ) DIV 67 DIV - + 94 AS col2
----
15
0

skipif mysql # not compatible
query II rowsort label-5954
SELECT ALL COUNT ( * ) - + MIN ( ALL - + 62 ) / + 13 + + + 10 col2, COUNT ( * ) / 67 / - + 94 AS col2
----
15
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5955
SELECT - CAST( NULL AS DECIMAL ) / + + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5955
SELECT - CAST ( NULL AS REAL ) / + + 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5956
SELECT ALL - - ( NULLIF ( - - 31, - COALESCE ( - 39, - 70 + - 63 - SUM( DISTINCT + 18 ) * + 9 ) ) ) DIV - COUNT( DISTINCT 83 ) col2, - 44 + - MIN( DISTINCT + CASE + 18 WHEN - 30 + + 57 THEN + - 75 ELSE NULL END )
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-5956
SELECT ALL - - ( NULLIF ( - - 31, - COALESCE ( - 39, - 70 + - 63 - SUM ( DISTINCT + 18 ) * + 9 ) ) ) / - COUNT ( DISTINCT 83 ) col2, - 44 + - MIN ( DISTINCT + CASE + 18 WHEN - 30 + + 57 THEN + - 75 ELSE NULL END )
----
-31
NULL

query I rowsort
SELECT + 31 + 97
----
128

query I rowsort
SELECT ALL + 92 * - + NULLIF ( + 81, - 7 + - 93 * - 30 )
----
-7452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5959
SELECT - CAST( NULL AS SIGNED ) + 12 AS col2, + MAX( - 88 )
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-5959
SELECT - CAST ( NULL AS INTEGER ) + 12 AS col2, + MAX ( - 88 )
----
NULL
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-5960
SELECT ALL + 22 * + - 66 + + + 13, COALESCE ( - + 85, - + 26 * + + 76, 76 ) + + 78 * MAX( ALL 53 ) AS col2
----
-1439
4049

skipif mysql # not compatible
query II rowsort label-5960
SELECT ALL + 22 * + - 66 + + + 13, COALESCE ( - + 85, - + 26 * + + 76, 76 ) + + 78 * MAX ( ALL 53 ) AS col2
----
-1439
4049

onlyif mysql # DIV for integer division: 
query I rowsort label-5961
SELECT + 84 DIV - 77
----
-1

skipif mysql # not compatible
query I rowsort label-5961
SELECT + 84 / - 77
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5962
SELECT 19 * - CAST( - 42 AS SIGNED ) + - COUNT( * ) + 50 * 51 AS col2
----
3347

skipif mysql # not compatible
query I rowsort label-5962
SELECT 19 * - CAST ( - 42 AS INTEGER ) + - COUNT ( * ) + 50 * 51 AS col2
----
3347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5963
SELECT ALL + 48 * + COUNT( * ) * - 1 + + ( + - MIN( - 47 ) ) * + ( + - 31 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL + 48 * + COUNT ( * ) * - 1 + + ( + - MIN ( - 47 ) ) * + ( + - 31 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT ALL 37 * COUNT( ALL + 42 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL 37 * COUNT ( ALL + 42 ) AS col1
----
37

query II rowsort
SELECT 53 + - + 30, 13 col1
----
23
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5966
SELECT 99 + - - CAST( NULL AS SIGNED ), + 63 col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-5966
SELECT 99 + - - CAST ( NULL AS INTEGER ), + 63 col2
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT DISTINCT ( MIN( - - ( + 36 ) ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT ( MIN ( - - ( + 36 ) ) ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-5968
SELECT DISTINCT - + MIN( ALL 36 ), + 74 col0
----
-36
74

skipif mysql # not compatible
query II rowsort label-5968
SELECT DISTINCT - + MIN ( ALL 36 ), + 74 col0
----
-36
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT DISTINCT COUNT( * ) + + 90
----
91

skipif mysql # not compatible
query I rowsort label-5969
SELECT DISTINCT COUNT ( * ) + + 90
----
91

query I rowsort
SELECT + 0 * + 81 AS col1
----
0

query I rowsort
SELECT ALL 62 + + 89
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5972
SELECT DISTINCT - COUNT( * ) AS col0, CASE - - CAST( NULL AS SIGNED ) WHEN 78 THEN - 20 + + 67 ELSE + 25 * ( - + COUNT( * ) ) END AS col0
----
-1
-25

skipif mysql # not compatible
query II rowsort label-5972
SELECT DISTINCT - COUNT ( * ) AS col0, CASE - - CAST ( NULL AS INTEGER ) WHEN 78 THEN - 20 + + 67 ELSE + 25 * ( - + COUNT ( * ) ) END AS col0
----
-1
-25

query II rowsort
SELECT 10 col1, + 76
----
10
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT ALL - COALESCE ( - 65, MAX( ALL + - 99 ) ) col2
----
65

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL - COALESCE ( - 65, MAX ( ALL + - 99 ) ) col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ALL + COUNT( * ) + - 86 + 34 + 93 - - + 86 + + 92 + ( + 42 ) * 35 * COUNT( * )
----
1690

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL + COUNT ( * ) + - 86 + 34 + 93 - - + 86 + + 92 + ( + 42 ) * 35 * COUNT ( * )
----
1690

query I rowsort
SELECT DISTINCT 96 * + + 20
----
1920

query I rowsort
SELECT DISTINCT 13 + + 3
----
16

query II rowsort
SELECT DISTINCT - 32 AS col2, ( + 97 ) - - + NULLIF ( + 37, + - 56 )
----
-32
134

query I rowsort
SELECT ALL 48 - - - 4 * - - NULLIF ( - 3, + 86 + + ( - + 67 ) ) AS col0
----
60

query I rowsort
SELECT 80 * 72 * + 5 AS col2
----
28800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5981
SELECT ALL - CASE 69 WHEN + CAST( NULL AS SIGNED ) THEN + - 76 * 76 * + 42 WHEN 81 + + COUNT( ALL + 26 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL - CASE 69 WHEN + CAST ( NULL AS INTEGER ) THEN + - 76 * 76 * + 42 WHEN 81 + + COUNT ( ALL + 26 ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5982
SELECT - 30 AS col0, - MAX( DISTINCT CAST( - 36 AS SIGNED ) ) * + - 91 + ( + 75 ) + COUNT( * ) * 0 AS col2
----
-30
-3201

skipif mysql # not compatible
query II rowsort label-5982
SELECT - 30 AS col0, - MAX ( DISTINCT CAST ( - 36 AS INTEGER ) ) * + - 91 + ( + 75 ) + COUNT ( * ) * 0 AS col2
----
-30
-3201

query II rowsort
SELECT ALL - ( - + 98 ) - + 94 AS col0, 4 AS col0
----
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT COALESCE ( + 8, - - 34 * + COUNT( * ) - + 26 ) * + ( - COUNT( * ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-5984
SELECT COALESCE ( + 8, - - 34 * + COUNT ( * ) - + 26 ) * + ( - COUNT ( * ) ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT DISTINCT COALESCE ( CASE + 24 WHEN + 2 * - 38 THEN NULL ELSE - 60 END, + SUM( DISTINCT 51 ) * + 94 * 46, + 85 + 41 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT COALESCE ( CASE + 24 WHEN + 2 * - 38 THEN NULL ELSE - 60 END, + SUM ( DISTINCT 51 ) * + 94 * 46, + 85 + 41 ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT - - 97 * + 33 - - 44 + + MAX( + 99 )
----
3344

skipif mysql # not compatible
query I rowsort label-5986
SELECT - - 97 * + 33 - - 44 + + MAX ( + 99 )
----
3344

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5987
SELECT ALL - COUNT( * ) AS col1, + MAX( DISTINCT - + 70 ) DIV + 43 + - 91 * + - 14
----
-1
1273

skipif mysql # not compatible
query II rowsort label-5987
SELECT ALL - COUNT ( * ) AS col1, + MAX ( DISTINCT - + 70 ) / + 43 + - 91 * + - 14
----
-1
1273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5988
SELECT CASE - + COUNT( * ) WHEN - ( AVG ( ALL - + 83 ) ) THEN NULL WHEN - + COUNT( * ) * + CAST( - 52 AS SIGNED ) + - - COUNT( * ) THEN NULL ELSE 55 END
----
55

skipif mysql # not compatible
query I rowsort label-5988
SELECT CASE - + COUNT ( * ) WHEN - ( AVG ( ALL - + 83 ) ) THEN NULL WHEN - + COUNT ( * ) * + CAST ( - 52 AS INTEGER ) + - - COUNT ( * ) THEN NULL ELSE 55 END
----
55

query I rowsort
SELECT 98 * - + 26
----
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT + 59 + - ( COUNT( * ) ) * - 72 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-5990
SELECT + 59 + - ( COUNT ( * ) ) * - 72 AS col2
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5991
SELECT - 44 AS col1, CAST( - COALESCE ( + + CAST( NULL AS SIGNED ), - - 73, 65 ) AS SIGNED ) * + 27 col1
----
-44
-1971

skipif mysql # not compatible
query II rowsort label-5991
SELECT - 44 AS col1, CAST ( - COALESCE ( + + CAST ( NULL AS INTEGER ), - - 73, 65 ) AS INTEGER ) * + 27 col1
----
-44
-1971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5992
SELECT ALL CAST( + + 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL CAST ( + + 92 AS INTEGER )
----
92

query I rowsort
SELECT - CASE - 82 WHEN - 32 THEN 48 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5994
SELECT - 82 + ( - - 2 ) + - 89 + + + SUM( + 30 ) * 50 * + CAST( NULL AS SIGNED ) - + ( - COUNT( * ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT - 82 + ( - - 2 ) + - 89 + + + SUM ( + 30 ) * 50 * + CAST ( NULL AS INTEGER ) - + ( - COUNT ( * ) ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5995
SELECT 37 + - + ( + + 77 ) DIV + 27, - MAX( DISTINCT 48 ) AS col1
----
35
-48

skipif mysql # not compatible
query II rowsort label-5995
SELECT 37 + - + ( + + 77 ) / + 27, - MAX ( DISTINCT 48 ) AS col1
----
35
-48

query I rowsort
SELECT - ( - 83 ) - - 93
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT DISTINCT + 27 + + COUNT( * ) col2
----
28

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT + 27 + + COUNT ( * ) col2
----
28

query I rowsort
SELECT DISTINCT 66 * - - 35 - - ( + 34 ) + 83 AS col0
----
2427

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT DISTINCT - 8 + - + COALESCE ( - 44, 75, - COUNT( * ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT - 8 + - + COALESCE ( - 44, 75, - COUNT ( * ) ) AS col0
----
36

query I rowsort
SELECT ALL + + 47 + 91 AS col2
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6001
SELECT - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) * + 13 * - 19 - - - 97
----
NULL
-344

skipif mysql # not compatible
query II rowsort label-6001
SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * + 13 * - 19 - - - 97
----
NULL
-344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6002
SELECT 76 * + CAST( NULL AS SIGNED ) - + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6002
SELECT 76 * + CAST ( NULL AS INTEGER ) - + 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6003
SELECT COUNT( * ) * - 29 * - + ( - + 73 ) AS col1, 58 * - COUNT( * ) * - 69
----
-2117
4002

skipif mysql # not compatible
query II rowsort label-6003
SELECT COUNT ( * ) * - 29 * - + ( - + 73 ) AS col1, 58 * - COUNT ( * ) * - 69
----
-2117
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT + COUNT( + + 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6004
SELECT + COUNT ( + + 51 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT ALL 71 * - - COUNT( * ) + - 31 + - + 89
----
-49

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL 71 * - - COUNT ( * ) + - 31 + - + 89
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT + ( + 71 ) * COUNT( * ) * + 39 - - 6
----
2775

skipif mysql # not compatible
query I rowsort label-6006
SELECT + ( + 71 ) * COUNT ( * ) * + 39 - - 6
----
2775

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT SUM( + 51 ) * + 41
----
2091

skipif mysql # not compatible
query I rowsort label-6007
SELECT SUM ( + 51 ) * + 41
----
2091

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT ALL 72 - MIN( ALL 78 )
----
-6

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL 72 - MIN ( ALL 78 )
----
-6

query I rowsort
SELECT 86 * - 34 * 1 + + ( + 59 ) AS col2
----
-2865

query I rowsort
SELECT ALL 48 - + ( - + 24 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT 71 + 10 * - COUNT( * ) * 45 + + 37 col2
----
-342

skipif mysql # not compatible
query I rowsort label-6011
SELECT 71 + 10 * - COUNT ( * ) * 45 + + 37 col2
----
-342

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6012
SELECT ( 63 ) * + - 60 + - - 84 + + 13 + 33 + 29 + - - ( - 27 ) - CAST( - 94 AS SIGNED ) / - CAST( NULL AS DECIMAL ) * + 16 * + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6012
SELECT ( 63 ) * + - 60 + - - 84 + + 13 + 33 + 29 + - - ( - 27 ) - CAST ( - 94 AS INTEGER ) / - CAST ( NULL AS REAL ) * + 16 * + + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT DISTINCT COUNT( * ) * 56 * - + 94 col2
----
-5264

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT COUNT ( * ) * 56 * - + 94 col2
----
-5264

query I rowsort
SELECT 50 * - 81 + 3 AS col1
----
-4047

onlyif mysql # DIV for integer division: 
query I rowsort label-6015
SELECT ALL 71 DIV - 23
----
-3

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL 71 / - 23
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT COALESCE ( + 0, + 6 * COUNT( * ) + 30 ) + 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6016
SELECT COALESCE ( + 0, + 6 * COUNT ( * ) + 30 ) + 7 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6017
SELECT ( + + 37 ) DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-6017
SELECT ( + + 37 ) / - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT DISTINCT COUNT( * ) * ( + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT COUNT ( * ) * ( + 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6019
SELECT DISTINCT 65 * - COUNT( * ), + 36 col0
----
-65
36

skipif mysql # not compatible
query II rowsort label-6019
SELECT DISTINCT 65 * - COUNT ( * ), + 36 col0
----
-65
36

query I rowsort
SELECT - 22 * + + 51 + 57 AS col0
----
-1065

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT - COUNT( * ) + ( + 34 )
----
33

skipif mysql # not compatible
query I rowsort label-6021
SELECT - COUNT ( * ) + ( + 34 )
----
33

query I rowsort
SELECT ALL + 31 + + 50 AS col2
----
81

query I rowsort
SELECT - - 20 + + 64
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT + + COUNT( * ) * 59 col0
----
59

skipif mysql # not compatible
query I rowsort label-6024
SELECT + + COUNT ( * ) * 59 col0
----
59

query II rowsort
SELECT ALL + ( + 27 ), 81 AS col1
----
27
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT ALL - MIN( + 35 ) + - + 71 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL - MIN ( + 35 ) + - + 71 AS col2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT + CASE NULLIF ( - - 49, 19 ) WHEN - + 71 THEN + 78 * ( - - 31 ) ELSE + - MIN( ALL + 18 ) END
----
-18

skipif mysql # not compatible
query I rowsort label-6027
SELECT + CASE NULLIF ( - - 49, 19 ) WHEN - + 71 THEN + 78 * ( - - 31 ) ELSE + - MIN ( ALL + 18 ) END
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL + - 12 + 33 * - + COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL + - 12 + 33 * - + COUNT ( * ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT ALL + + 45 + - ( COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL + + 45 + - ( COUNT ( * ) )
----
44

query I rowsort
SELECT DISTINCT - ( - 96 )
----
96

query I rowsort
SELECT - 96 - - 66
----
-30

query I rowsort
SELECT - + 7 + + 95
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6033
SELECT ALL CAST( 91 AS SIGNED ) * 43 + + 35 - 90 AS col1, - 45 AS col2
----
3858
-45

skipif mysql # not compatible
query II rowsort label-6033
SELECT ALL CAST ( 91 AS INTEGER ) * 43 + + 35 - 90 AS col1, - 45 AS col2
----
3858
-45

query I rowsort
SELECT DISTINCT + 45 - + ( + 32 ) * + 1 AS col2
----
13

query II rowsort
SELECT 27, - 28 * + + COALESCE ( - 59, + + 96 ) + + 23 * - - 73 AS col0
----
27
3331

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6036
SELECT DISTINCT 60 * - COALESCE ( - 21, + 37 ) DIV - COUNT( * ) - - 56 col1, - 63
----
-1204
-63

skipif mysql # not compatible
query II rowsort label-6036
SELECT DISTINCT 60 * - COALESCE ( - 21, + 37 ) / - COUNT ( * ) - - 56 col1, - 63
----
-1204
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6037
SELECT - CAST( NULL AS DECIMAL ) * + 60 * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6037
SELECT - CAST ( NULL AS REAL ) * + 60 * + COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6038
SELECT ALL CASE + 39 WHEN 38 THEN NULL WHEN + - 89 THEN NULL WHEN + 4 THEN NULL ELSE - 32 END * + CAST( NULL AS SIGNED ) * - ( + 57 ) * CAST( NULL AS SIGNED ) - MIN( + 7 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL CASE + 39 WHEN 38 THEN NULL WHEN + - 89 THEN NULL WHEN + 4 THEN NULL ELSE - 32 END * + CAST ( NULL AS INTEGER ) * - ( + 57 ) * CAST ( NULL AS INTEGER ) - MIN ( + 7 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6039
SELECT DISTINCT COUNT( * ) * + + COALESCE ( - 98, 63 * + ( - - CAST( 83 AS SIGNED ) ) + - 94 + 31 DIV + + 92 - - 38 + - 40 * + - 88 * + 40 ) - + COUNT( * ) * - ( - 93 ) AS col2
----
-191

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT COUNT ( * ) * + + COALESCE ( - 98, 63 * + ( - - CAST ( 83 AS INTEGER ) ) + - 94 + 31 / + + 92 - - 38 + - 40 * + - 88 * + 40 ) - + COUNT ( * ) * - ( - 93 ) AS col2
----
-191

query I rowsort
SELECT - 29 * - + 59 + + 93 * NULLIF ( + 54, - + 15 )
----
6733

query I rowsort
SELECT ALL - 27 * - 66 AS col2
----
1782

query I rowsort
SELECT - 13 * - + 96 AS col0
----
1248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6043
SELECT + 19 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT + 19 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( + + 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT ALL COUNT( * ) * + - NULLIF ( + + 83, + - 25 )
----
-83

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL COUNT ( * ) * + - NULLIF ( + + 83, + - 25 )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6046
SELECT + 13 + 91 * + - NULLIF ( + NULLIF ( 36, + 48 ), 53 + CAST( 75 AS SIGNED ) ) * + 74
----
-242411

skipif mysql # not compatible
query I rowsort label-6046
SELECT + 13 + 91 * + - NULLIF ( + NULLIF ( 36, + 48 ), 53 + CAST ( 75 AS INTEGER ) ) * + 74
----
-242411

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT DISTINCT COUNT( * ) * - 19 * - - 59
----
-1121

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT COUNT ( * ) * - 19 * - - 59
----
-1121

query I rowsort
SELECT DISTINCT + 73 * 2 AS col1
----
146

query I rowsort
SELECT + 59 * + - 79 * - - 33
----
-153813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6050
SELECT DISTINCT + CAST( 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT + CAST ( 6 AS INTEGER )
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6051
SELECT - 28 * + 43 * - + CASE + CASE COUNT( * ) WHEN - - 61 * 81 * - - COALESCE ( 96, 35 ) + + 49 + 87 + + - ( + 72 ) / - - 95 * + 85 THEN NULL WHEN - COUNT( * ) THEN + CAST( 72 AS DECIMAL ) ELSE NULL END WHEN + CASE - COUNT( * ) WHEN - 99 * CASE 19 WHEN - 74 + - 7 / + 22 + + CASE - 6 WHEN + - 17 THEN NULL ELSE - 85 * - + 4 END THEN - 69 END / 92 THEN + - 59 * 81 END THEN - COUNT( * ) END * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT - 28 * + 43 * - + CASE + CASE COUNT ( * ) WHEN - - 61 * 81 * - - COALESCE ( 96, 35 ) + + 49 + 87 + + - ( + 72 ) / - - 95 * + 85 THEN NULL WHEN - COUNT ( * ) THEN + CAST ( 72 AS REAL ) ELSE NULL END WHEN + CASE - COUNT ( * ) WHEN - 99 * CASE 19 WHEN - 74 + - 7 / + 22 + + CASE - 6 WHEN + - 17 THEN NULL ELSE - 85 * - + 4 END THEN - 69 END / 92 THEN + - 59 * 81 END THEN - COUNT ( * ) END * 2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6052
SELECT + COALESCE ( - 78, COUNT( * ) ) DIV - ( + 43 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6052
SELECT + COALESCE ( - 78, COUNT ( * ) ) / - ( + 43 ) AS col1
----
1

query I rowsort
SELECT ALL - 44 * - - 44 * - 76
----
147136

query II rowsort
SELECT - + 51 AS col1, 21 AS col0
----
-51
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT DISTINCT - - 40 * - ( + 21 ) - - + 70 * + COALESCE ( - - 22, - + 52 ) + 46 + - + COALESCE ( + - COUNT( + 73 ), 84 ) col1
----
747

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT - - 40 * - ( + 21 ) - - + 70 * + COALESCE ( - - 22, - + 52 ) + 46 + - + COALESCE ( + - COUNT ( + 73 ), 84 ) col1
----
747

query II rowsort
SELECT ALL + + 9 + + 98 + - 14, + 70 AS col2
----
93
70

query I rowsort
SELECT - NULLIF ( + 25, + + 89 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT ALL SUM( + + 17 ) col2
----
17

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL SUM ( + + 17 ) col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT - COALESCE ( - 28, + - 64 + - 76, + 94 * + + 54 * - NULLIF ( - + COUNT( * ), - - 76 * + 96 + - 44 ), + 43 ) col1
----
28

skipif mysql # not compatible
query I rowsort label-6059
SELECT - COALESCE ( - 28, + - 64 + - 76, + 94 * + + 54 * - NULLIF ( - + COUNT ( * ), - - 76 * + 96 + - 44 ), + 43 ) col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT + - ( + + 5 ) + 21 * - - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-6060
SELECT + - ( + + 5 ) + 21 * - - COUNT ( * )
----
16

query I rowsort
SELECT ALL CASE - 40 WHEN - 16 - + 58 * - - 72 THEN - 75 * + 87 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT DISTINCT ( + MAX( - + 33 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT ( + MAX ( - + 33 ) ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL + COUNT( * ) * COUNT( * ) * - 31 col0
----
-31

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL + COUNT ( * ) * COUNT ( * ) * - 31 col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6064
SELECT DISTINCT 97 - + - 32 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT 97 - + - 32 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 31 * - 34 AS col0
----
-1054

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT + ( - 26 ) * + COUNT( * ) + - 84 + - 60
----
-170

skipif mysql # not compatible
query I rowsort label-6066
SELECT + ( - 26 ) * + COUNT ( * ) + - 84 + - 60
----
-170

query II rowsort
SELECT 18 AS col2, - 51 AS col0
----
18
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT - 2 + + 37 + + 16 + + NULLIF ( - 43, - COUNT( * ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6068
SELECT - 2 + + 37 + + 16 + + NULLIF ( - 43, - COUNT ( * ) ) AS col1
----
8

query I rowsort
SELECT DISTINCT + 41 * - 51
----
-2091

query I rowsort
SELECT + 90 * + 8 AS col1
----
720

query I rowsort
SELECT - 96 * + 20 * + + 88
----
-168960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6072
SELECT + 62 * + + 7 * - 18 * - COALESCE ( - 32, - NULLIF ( - + 80, + - 79 ) * 40, - - 1 * 8 + - CAST( - 57 AS SIGNED ) + 45 + COUNT( * ) * - 0 + - 65 ) + - 2 AS col1
----
-249986

skipif mysql # not compatible
query I rowsort label-6072
SELECT + 62 * + + 7 * - 18 * - COALESCE ( - 32, - NULLIF ( - + 80, + - 79 ) * 40, - - 1 * 8 + - CAST ( - 57 AS INTEGER ) + 45 + COUNT ( * ) * - 0 + - 65 ) + - 2 AS col1
----
-249986

query II rowsort
SELECT ALL + 74 col2, 57 + 69 + - 24 AS col2
----
74
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT DISTINCT + ( CASE MAX( - ( - + 37 ) ) WHEN COUNT( * ) * + COUNT( * ) THEN NULL ELSE 50 * + + 27 END )
----
1350

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT + ( CASE MAX ( - ( - + 37 ) ) WHEN COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE 50 * + + 27 END )
----
1350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6075
SELECT ALL - ( - ( - CAST( NULL AS DECIMAL ) ) ) / - - AVG ( + + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL - ( - ( - CAST ( NULL AS REAL ) ) ) / - - AVG ( + + 31 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6076
SELECT 51 * - 26 * ( - 96 ) * + - 67 + + 52 - SUM( + - 15 ) + - CASE + - CAST( NULL AS SIGNED ) WHEN 54 THEN - + 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT 51 * - 26 * ( - 96 ) * + - 67 + + 52 - SUM ( + - 15 ) + - CASE + - CAST ( NULL AS INTEGER ) WHEN 54 THEN - + 36 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6077
SELECT - COALESCE ( - + MIN( DISTINCT - - 24 ), - 60 + + 23, - 96 + - + SUM( ALL - + 83 ) ) * + 22 + - + 13 - + + 27 DIV + - COUNT( * ) - - COUNT( * ) AS col2
----
543

skipif mysql # not compatible
query I rowsort label-6077
SELECT - COALESCE ( - + MIN ( DISTINCT - - 24 ), - 60 + + 23, - 96 + - + SUM ( ALL - + 83 ) ) * + 22 + - + 13 - + + 27 / + - COUNT ( * ) - - COUNT ( * ) AS col2
----
543

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT ALL - CASE + 91 WHEN MIN( + 71 ) THEN NULL WHEN + 80 THEN + + 85 END, 53 AS col0
----
NULL
53

skipif mysql # not compatible
query II rowsort label-6078
SELECT ALL - CASE + 91 WHEN MIN ( + 71 ) THEN NULL WHEN + 80 THEN + + 85 END, 53 AS col0
----
NULL
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6079
SELECT ALL - 97 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL - 97 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6080
SELECT 99 DIV 77 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6080
SELECT 99 / 77 AS col0
----
1

query I rowsort
SELECT 35 * - 58
----
-2030

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6082
SELECT 5 + - 53, - COUNT( * ) DIV + 3 * MIN( - 92 ) * COUNT( * ) + 16 + - 47 AS col2
----
-48
-31

skipif mysql # not compatible
query II rowsort label-6082
SELECT 5 + - 53, - COUNT ( * ) / + 3 * MIN ( - 92 ) * COUNT ( * ) + 16 + - 47 AS col2
----
-48
-31

query I rowsort
SELECT + 95 * + - NULLIF ( - + 62, + 81 )
----
5890

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT ALL + + COUNT( * ) + + 59 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL + + COUNT ( * ) + + 59 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT + COUNT( * ) - 10
----
-9

skipif mysql # not compatible
query I rowsort label-6085
SELECT + COUNT ( * ) - 10
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6086
SELECT ALL + COUNT( * ) * - 25 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL + COUNT ( * ) * - 25 / - 35
----
0

query I rowsort
SELECT NULLIF ( 36, + - 19 + - + 58 * 3 )
----
36

query II rowsort
SELECT + 35, 89 * 65 AS col0
----
35
5785

query I rowsort
SELECT ALL 15 + - + 3
----
12

query II rowsort
SELECT 41 AS col2, - 40 * + 1
----
41
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT + COUNT( * ) + + + 48 * - + COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6091
SELECT + COUNT ( * ) + + + 48 * - + COUNT ( * ) AS col2
----
-47

query I rowsort
SELECT - COALESCE ( - - 24, + 7 ) col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT ALL - CASE + 79 WHEN + 15 - + 78 THEN - - 43 * + + 27 * - ( - 39 ) / + 70 WHEN 59 THEN NULL WHEN + 16 * + CASE 97 WHEN + MIN( - 84 ) + + 9 THEN - 65 WHEN + 59 + COUNT( * ) * + COUNT( * ) THEN NULL END + ( - 91 ) THEN NULL END + - - MAX( - 18 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL - CASE + 79 WHEN + 15 - + 78 THEN - - 43 * + + 27 * - ( - 39 ) / + 70 WHEN 59 THEN NULL WHEN + 16 * + CASE 97 WHEN + MIN ( - 84 ) + + 9 THEN - 65 WHEN + 59 + COUNT ( * ) * + COUNT ( * ) THEN NULL END + ( - 91 ) THEN NULL END + - - MAX ( - 18 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT + 34 * + MAX( ( - 79 ) )
----
-2686

skipif mysql # not compatible
query I rowsort label-6094
SELECT + 34 * + MAX ( ( - 79 ) )
----
-2686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6095
SELECT - + CAST( NULL AS SIGNED ) col0, - 61 + COUNT( * )
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-6095
SELECT - + CAST ( NULL AS INTEGER ) col0, - 61 + COUNT ( * )
----
NULL
-60

query I rowsort
SELECT DISTINCT - 38 * 16
----
-608

query I rowsort
SELECT DISTINCT + 5 * + + 27 AS col0
----
135

query I rowsort
SELECT DISTINCT 97 - + - 63 * + + 79
----
5074

query II rowsort
SELECT ( + + ( 92 ) ) + 37 * 18, 33 * + 52 AS col0
----
758
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT COUNT( DISTINCT - 57 ) - 89 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-6100
SELECT COUNT ( DISTINCT - 57 ) - 89 AS col0
----
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6101
SELECT 19 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6101
SELECT 19 / - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 0 * + COALESCE ( 98, - 28 ) AS col1
----
0

query I rowsort
SELECT ( + 89 ) + - - 83
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6104
SELECT 56 * - CAST( - CASE + 59 WHEN + + 46 THEN - ( 34 ) WHEN + 43 THEN CAST( 55 AS SIGNED ) END AS SIGNED ) * + 54 * - NULLIF ( 80, + 29 ) + - COUNT( * ) * - 0 / - + 16, - 4 AS col1
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-6104
SELECT 56 * - CAST ( - CASE + 59 WHEN + + 46 THEN - ( 34 ) WHEN + 43 THEN CAST ( 55 AS INTEGER ) END AS INTEGER ) * + 54 * - NULLIF ( 80, + 29 ) + - COUNT ( * ) * - 0 / - + 16, - 4 AS col1
----
NULL
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6105
SELECT - 45 DIV 93 - + CAST( - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6105
SELECT - 45 / 93 - + CAST ( - COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT DISTINCT 77 + + 85
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT ALL COALESCE ( - - 83, - - COUNT( * ) ) + 92 AS col0
----
175

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL COALESCE ( - - 83, - - COUNT ( * ) ) + 92 AS col0
----
175

query I rowsort
SELECT ALL + ( - 38 ) + 69
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT DISTINCT + 85 + - + 38 * - - COUNT( * ) * + 12
----
-371

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT + 85 + - + 38 * - - COUNT ( * ) * + 12
----
-371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT DISTINCT 20 + 9 * - CAST( - + 95 AS SIGNED ) + + 89
----
964

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT 20 + 9 * - CAST ( - + 95 AS INTEGER ) + + 89
----
964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6111
SELECT ALL - + COALESCE ( + 57, - + 4 + ( 25 ) + - SUM( DISTINCT 32 ) DIV - - SUM( ALL - 12 ), - 60 - - - 87 )
----
-57

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL - + COALESCE ( + 57, - + 4 + ( 25 ) + - SUM ( DISTINCT 32 ) / - - SUM ( ALL - 12 ), - 60 - - - 87 )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-6112
SELECT + ( + - 21 ) DIV - + 89 * 38
----
0

skipif mysql # not compatible
query I rowsort label-6112
SELECT + ( + - 21 ) / - + 89 * 38
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6113
SELECT DISTINCT + COUNT( + 52 ) DIV 73 col0
----
0

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT + COUNT ( + 52 ) / 73 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT 86 * - 20 - + COUNT( * ) + - 40
----
-1761

skipif mysql # not compatible
query I rowsort label-6114
SELECT 86 * - 20 - + COUNT ( * ) + - 40
----
-1761

query I rowsort
SELECT ALL + - 38 * - + ( - 16 ) AS col1
----
-608

onlyif mysql # DIV for integer division: 
query I rowsort label-6116
SELECT - 18 DIV 4
----
-4

skipif mysql # not compatible
query I rowsort label-6116
SELECT - 18 / 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT ALL + COUNT( * ) * 37 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL + COUNT ( * ) * 37 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT DISTINCT - 98 * - COUNT( * ) * - 11 AS col0
----
-1078

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT - 98 * - COUNT ( * ) * - 11 AS col0
----
-1078

query I rowsort
SELECT DISTINCT + CASE - 96 WHEN - + 53 THEN NULL ELSE - 49 END col2
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-6120
SELECT + 98 - - 75, MAX( 88 ) AS col0
----
173
88

skipif mysql # not compatible
query II rowsort label-6120
SELECT + 98 - - 75, MAX ( 88 ) AS col0
----
173
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6121
SELECT ALL - + COALESCE ( - - 93, 99 * - 44 * - - 40 * CASE - 74 WHEN - 94 THEN NULL WHEN - 92 THEN + 94 END * - SUM( + 73 ) + SUM( ALL - + COALESCE ( + 37, - + 29 + - 48, - 76 ) ) + 27 + - 0 + + - COALESCE ( - CASE WHEN - ( - 69 ) IS NOT NULL THEN NULL ELSE + + 29 END, + CAST( NULL AS SIGNED ) ) * + 34 + + 43 ) * + 93
----
-8649

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL - + COALESCE ( - - 93, 99 * - 44 * - - 40 * CASE - 74 WHEN - 94 THEN NULL WHEN - 92 THEN + 94 END * - SUM ( + 73 ) + SUM ( ALL - + COALESCE ( + 37, - + 29 + - 48, - 76 ) ) + 27 + - 0 + + - COALESCE ( - CASE WHEN - ( - 69 ) IS NOT NULL THEN NULL ELSE + + 29 END, + CAST ( NULL AS INTEGER ) ) * + 34 + + 43 ) * + 93
----
-8649

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT + 42 + + + 70 + - COUNT( * )
----
111

skipif mysql # not compatible
query I rowsort label-6122
SELECT + 42 + + + 70 + - COUNT ( * )
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT MAX( - + 57 ) - + 1 + + 38
----
-20

skipif mysql # not compatible
query I rowsort label-6123
SELECT MAX ( - + 57 ) - + 1 + + 38
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6124
SELECT - 81 AS col2, - 27 + + MIN( + 48 ) AS col2
----
-81
21

skipif mysql # not compatible
query II rowsort label-6124
SELECT - 81 AS col2, - 27 + + MIN ( + 48 ) AS col2
----
-81
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT DISTINCT MAX( DISTINCT 58 )
----
58

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT MAX ( DISTINCT 58 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6126
SELECT COUNT( + COALESCE ( - CAST( NULL AS SIGNED ), 63 ) ) + + 63
----
64

skipif mysql # not compatible
query I rowsort label-6126
SELECT COUNT ( + COALESCE ( - CAST ( NULL AS INTEGER ), 63 ) ) + + 63
----
64

query II rowsort
SELECT 43 AS col0, - 35
----
43
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6128
SELECT DISTINCT MAX( - CASE - + 20 WHEN CAST( NULL AS SIGNED ) * + + 92 * - + 48 * 10 * - 52 THEN NULL WHEN - 14 THEN + - 98 + - 90 - - 52 / - + ( + 30 ) * + + 25 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT MAX ( - CASE - + 20 WHEN CAST ( NULL AS INTEGER ) * + + 92 * - + 48 * 10 * - 52 THEN NULL WHEN - 14 THEN + - 98 + - 90 - - 52 / - + ( + 30 ) * + + 25 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT 0 * + 33 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT DISTINCT + 14 DIV ( - + 85 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT + 14 / ( - + 85 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6131
SELECT ALL 72 + 92 + COALESCE ( + 31, + - COUNT( * ) * + 25, + 64 ) + - 8 * 14 AS col1, 94 AS col1
----
83
94

skipif mysql # not compatible
query II rowsort label-6131
SELECT ALL 72 + 92 + COALESCE ( + 31, + - COUNT ( * ) * + 25, + 64 ) + - 8 * 14 AS col1, 94 AS col1
----
83
94

query II rowsort
SELECT DISTINCT 7 AS col0, - ( + 83 )
----
7
-83

query I rowsort
SELECT DISTINCT 1 + + - 97
----
-96

query I rowsort
SELECT + 13 + + 74 * - 64 * 93 + 1 AS col2
----
-440434

query I rowsort
SELECT ALL 36 + + 39 AS col1
----
75

query I rowsort
SELECT + 18 + - - 98 AS col2
----
116

query I rowsort
SELECT CASE 90 WHEN 8 THEN + 59 ELSE NULL END
----
NULL

query I rowsort
SELECT + 94 + + 45 AS col1
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-6139
SELECT ALL - 58 * + 34 + + MAX( ALL 75 ) AS col2, - 52 AS col0
----
-1897
-52

skipif mysql # not compatible
query II rowsort label-6139
SELECT ALL - 58 * + 34 + + MAX ( ALL 75 ) AS col2, - 52 AS col0
----
-1897
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-6140
SELECT ALL SUM( DISTINCT - - 88 ) * - + COUNT( * ) + - SUM( + - ( - CASE + 1 WHEN 64 THEN + 65 + - 91 + - 96 END ) ), - 8 AS col2
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-6140
SELECT ALL SUM ( DISTINCT - - 88 ) * - + COUNT ( * ) + - SUM ( + - ( - CASE + 1 WHEN 64 THEN + 65 + - 91 + - 96 END ) ), - 8 AS col2
----
NULL
-8

query II rowsort
SELECT + 47 AS col2, + 91 * - + 68
----
47
-6188

query I rowsort
SELECT ALL + ( + 58 ) * 20 * + - 73 + + 55
----
-84625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6143
SELECT - COUNT( ALL + COALESCE ( - - CAST( NULL AS SIGNED ), - + 74 ) ) * + + 75 DIV - 90 * + - 16 * 43 - - 90
----
90

skipif mysql # not compatible
query I rowsort label-6143
SELECT - COUNT ( ALL + COALESCE ( - - CAST ( NULL AS INTEGER ), - + 74 ) ) * + + 75 / - 90 * + - 16 * 43 - - 90
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6144
SELECT + - 7 + ( + - CAST( NULL AS SIGNED ) ) * + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT + - 7 + ( + - CAST ( NULL AS INTEGER ) ) * + + 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6145
SELECT - 81 AS col2, + COUNT( * )
----
-81
1

skipif mysql # not compatible
query II rowsort label-6145
SELECT - 81 AS col2, + COUNT ( * )
----
-81
1

query I rowsort
SELECT - + 35 - + 18 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT ALL - 60 * + 25 * - - COUNT( * ) AS col2
----
-1500

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL - 60 * + 25 * - - COUNT ( * ) AS col2
----
-1500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6148
SELECT + - 49 * + + 94 * ( - - ( - 42 ) ) * CAST( NULL AS SIGNED ) - + ( - - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT + - 49 * + + 94 * ( - - ( - 42 ) ) * CAST ( NULL AS INTEGER ) - + ( - - 85 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6149
SELECT ALL + 5 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL + 5 / + 92
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT - - CAST( NULL AS SIGNED ) + + 13 + - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT - - CAST ( NULL AS INTEGER ) + + 13 + - 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT ALL + + 85 * + + NULLIF ( 99, - CASE WHEN MIN( + ( + + 62 ) ) = NULL THEN - 43 * - + 44 / 70 - + 9 / - 91 + + 36 - - 58 ELSE NULL END + - 32 ) * + 74 AS col0
----
622710

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL + + 85 * + + NULLIF ( 99, - CASE WHEN MIN ( + ( + + 62 ) ) = NULL THEN - 43 * - + 44 / 70 - + 9 / - 91 + + 36 - - 58 ELSE NULL END + - 32 ) * + 74 AS col0
----
622710

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT DISTINCT + SUM( DISTINCT - 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT + SUM ( DISTINCT - 47 ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6153
SELECT - COUNT( * ) AS col2, - 74
----
-1
-74

skipif mysql # not compatible
query II rowsort label-6153
SELECT - COUNT ( * ) AS col2, - 74
----
-1
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6154
SELECT - COUNT( * ) + - CAST( - 35 AS SIGNED ) AS col2, - 6
----
34
-6

skipif mysql # not compatible
query II rowsort label-6154
SELECT - COUNT ( * ) + - CAST ( - 35 AS INTEGER ) AS col2, - 6
----
34
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6155
SELECT ALL + - COUNT( * ) DIV + 50 * - 89 DIV - - 5
----
0

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL + - COUNT ( * ) / + 50 * - 89 / - - 5
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6156
SELECT - 20 DIV 75, - 83 + + + 34 AS col1
----
0
-49

skipif mysql # not compatible
query II rowsort label-6156
SELECT - 20 / 75, - 83 + + + 34 AS col1
----
0
-49

query I rowsort
SELECT DISTINCT + 82 * - - 78
----
6396

query I rowsort
SELECT ALL COALESCE ( - 68, 21 + + + 42 * + 55 ) col1
----
-68

query I rowsort
SELECT ALL + 0 * + + 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT DISTINCT + ( + + 46 ) + - COUNT( DISTINCT 53 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT + ( + + 46 ) + - COUNT ( DISTINCT 53 ) AS col1
----
45

query I rowsort
SELECT ALL ( ( 4 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT DISTINCT - MIN( + COALESCE ( + + 18, 85 ) ) + 16
----
-2

skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT - MIN ( + COALESCE ( + + 18, 85 ) ) + 16
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6163
SELECT - MAX( - 57 ), 71 AS col2
----
57
71

skipif mysql # not compatible
query II rowsort label-6163
SELECT - MAX ( - 57 ), 71 AS col2
----
57
71

query I rowsort
SELECT ALL - ( + - 39 ) + ( - 39 ) * 35
----
-1326

query I rowsort
SELECT - 77 - - 1 - + 73
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT ALL ( MIN( - 87 ) ) * + - ( 59 )
----
5133

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL ( MIN ( - 87 ) ) * + - ( 59 )
----
5133

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT - MAX( ALL 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-6167
SELECT - MAX ( ALL 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT DISTINCT 24 * MIN( 63 )
----
1512

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT 24 * MIN ( 63 )
----
1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6169
SELECT ALL 82 + + 83 + + COALESCE ( - 18, - 7, + COALESCE ( - NULLIF ( - CAST( NULL AS SIGNED ), 58 ), NULLIF ( + + 40, - 60 ) - 38 ) * + 87 DIV - + 1 ) * MIN( ALL - - 27 ) * - + 20 * - CAST( - 40 AS SIGNED ) AS col1, 61 AS col2
----
388965
61

skipif mysql # not compatible
query II rowsort label-6169
SELECT ALL 82 + + 83 + + COALESCE ( - 18, - 7, + COALESCE ( - NULLIF ( - CAST ( NULL AS INTEGER ), 58 ), NULLIF ( + + 40, - 60 ) - 38 ) * + 87 / - + 1 ) * MIN ( ALL - - 27 ) * - + 20 * - CAST ( - 40 AS INTEGER ) AS col1, 61 AS col2
----
388965
61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6170
SELECT ALL 41 * - 52 * - CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL 41 * - 52 * - CAST ( - CAST ( NULL AS REAL ) AS REAL ) * + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT ALL + COUNT( + 48 ) * - 66 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL + COUNT ( + 48 ) * - 66 AS col2
----
-66

query I rowsort
SELECT + 37 + + ( - 27 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT + COUNT( - + 16 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6173
SELECT + COUNT ( - + 16 ) AS col0
----
1

query II rowsort
SELECT DISTINCT + - 96 * - ( - 75 ) * + 7, - 7 AS col0
----
-50400
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6175
SELECT ALL - 78 DIV + + 27 - - ( + ( 48 ) ) - - 47 + - 23 DIV 76 * + + COALESCE ( - CAST( NULL AS SIGNED ), - CAST( + 76 AS SIGNED ) ) * + COUNT( * ) * 1 + + 50 * 92 + 77
----
4770

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL - 78 / + + 27 - - ( + ( 48 ) ) - - 47 + - 23 / 76 * + + COALESCE ( - CAST ( NULL AS INTEGER ), - CAST ( + 76 AS INTEGER ) ) * + COUNT ( * ) * 1 + + 50 * 92 + 77
----
4770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6176
SELECT MIN( 10 ) DIV + 11 DIV COUNT( * ) + + 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-6176
SELECT MIN ( 10 ) / + 11 / COUNT ( * ) + + 35 AS col1
----
35

query II rowsort
SELECT + 91 * + 8, 86 AS col0
----
728
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6178
SELECT ALL - ( 88 ) / - - CASE WHEN ( - 10 ) IS NULL OR NOT 12 IS NULL THEN NULL WHEN NULL NOT BETWEEN + MIN( ALL - 85 ) AND 59 THEN CAST( NULL AS SIGNED ) ELSE 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL - ( 88 ) / - - CASE WHEN ( - 10 ) IS NULL OR NOT 12 IS NULL THEN NULL WHEN NULL NOT BETWEEN + MIN ( ALL - 85 ) AND 59 THEN CAST ( NULL AS INTEGER ) ELSE 55 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6179
SELECT DISTINCT 79 DIV - + COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT 79 / - + COUNT ( * ) AS col0
----
-79

query I rowsort
SELECT + 53 * 89 AS col2
----
4717

query I rowsort
SELECT DISTINCT - 76 * 74 col1
----
-5624

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT 68 * + - 85 * - + COUNT( * ) - 5 * - 94 * 84 AS col0
----
45260

skipif mysql # not compatible
query I rowsort label-6182
SELECT 68 * + - 85 * - + COUNT ( * ) - 5 * - 94 * 84 AS col0
----
45260

onlyif mysql # aggregate syntax: 
query II rowsort label-6183
SELECT - 7 * - 12 AS col1, COUNT( * ) - - ( + 48 )
----
84
49

skipif mysql # not compatible
query II rowsort label-6183
SELECT - 7 * - 12 AS col1, COUNT ( * ) - - ( + 48 )
----
84
49

query I rowsort
SELECT ALL CASE - 67 WHEN - - 78 THEN 50 END * + 54 + + + 83 * - 42 / - 11 * 33 * + 46 + - 59
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6185
SELECT + 43 * - 36 * COUNT( * ) AS col1, ( 90 )
----
-1548
90

skipif mysql # not compatible
query II rowsort label-6185
SELECT + 43 * - 36 * COUNT ( * ) AS col1, ( 90 )
----
-1548
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6186
SELECT ALL + AVG ( DISTINCT + CASE + + 63 WHEN 57 / 22 * + + 89 * - + 13 THEN NULL WHEN - CAST( NULL AS SIGNED ) * - 53 THEN - - 48 END ) + - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL + AVG ( DISTINCT + CASE + + 63 WHEN 57 / 22 * + + 89 * - + 13 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * - 53 THEN - - 48 END ) + - - 17
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6187
SELECT ALL 25 + + CASE - COUNT( * ) WHEN 64 * - MAX( + 61 ) / + 7 THEN 10 WHEN + - COUNT( * ) THEN NULL ELSE NULL END * + - CAST( NULL AS SIGNED ) * - ( + 51 ) * 45 + 65 * + CASE + 91 WHEN + COUNT( * ) / + COUNT( * ) THEN - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL 25 + + CASE - COUNT ( * ) WHEN 64 * - MAX ( + 61 ) / + 7 THEN 10 WHEN + - COUNT ( * ) THEN NULL ELSE NULL END * + - CAST ( NULL AS INTEGER ) * - ( + 51 ) * 45 + 65 * + CASE + 91 WHEN + COUNT ( * ) / + COUNT ( * ) THEN - 79 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6188
SELECT CAST( - AVG ( DISTINCT - + 88 ) AS SIGNED ) + - - 76 + + + 19 * CAST( 45 AS SIGNED ) * - 94 + 59 DIV SUM( 72 )
----
-80206

skipif mysql # not compatible
query I rowsort label-6188
SELECT CAST ( - AVG ( DISTINCT - + 88 ) AS INTEGER ) + - - 76 + + + 19 * CAST ( 45 AS INTEGER ) * - 94 + 59 / SUM ( 72 )
----
-80206

query II rowsort
SELECT 28 - ( + 62 ) AS col0, 97 AS col2
----
-34
97

query I rowsort
SELECT ALL ( + - 51 ) + + 96 + - 81 * + 53 * 46 col0
----
-197433

query I rowsort
SELECT 18 + - + 58 + - 39 AS col2
----
-79

query I rowsort
SELECT 28 + + CASE 75 WHEN 11 THEN NULL WHEN - + 33 THEN NULL ELSE 56 END
----
84

query I rowsort
SELECT DISTINCT 18 * + + 44 * - COALESCE ( - 20, + 45 + + + 38 )
----
15840

query I rowsort
SELECT ALL + 61 * + 31
----
1891

query I rowsort
SELECT ALL - 7 - - 88
----
81

query I rowsort
SELECT 44 * 60
----
2640

query I rowsort
SELECT DISTINCT + 79 * + + 63 * + 67 AS col1
----
333459

query I rowsort
SELECT 53 * 52
----
2756

query I rowsort
SELECT - COALESCE ( - - 29, + 1 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT - COUNT( DISTINCT - - 91 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6200
SELECT - COUNT ( DISTINCT - - 91 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT 35 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT 35 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT ALL - NULLIF ( ( + 25 ), + 44 * + ( 75 ) * + + COUNT( * ) / + ( 19 ) - + + 23 )
----
-25

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL - NULLIF ( ( + 25 ), + 44 * + ( 75 ) * + + COUNT ( * ) / + ( 19 ) - + + 23 )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6203
SELECT + COALESCE ( - 77, + + 79 + - + COUNT( * ) + - 29 + - MIN( ALL + 65 ) * 45 DIV + 64 * 38 ) + 0 * + 56
----
-77

skipif mysql # not compatible
query I rowsort label-6203
SELECT + COALESCE ( - 77, + + 79 + - + COUNT ( * ) + - 29 + - MIN ( ALL + 65 ) * 45 / + 64 * 38 ) + 0 * + 56
----
-77

query II rowsort
SELECT - 77, 3 AS col0
----
-77
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT 11 + MAX( + 11 ) + 63 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6205
SELECT 11 + MAX ( + 11 ) + 63 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT ALL MAX( - 36 ) * + ( 74 ) AS col2
----
-2664

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL MAX ( - 36 ) * + ( 74 ) AS col2
----
-2664

query I rowsort
SELECT - 37 - + 97
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT DISTINCT - 11 * - - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT - 11 * - - COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-6209
SELECT - COUNT( - 88 ) * COUNT( * ) * + + 42 + - NULLIF ( 14, + - 76 + 75 * + + 93 ) + - 36 AS col1, 18 * - 69
----
-92
-1242

skipif mysql # not compatible
query II rowsort label-6209
SELECT - COUNT ( - 88 ) * COUNT ( * ) * + + 42 + - NULLIF ( 14, + - 76 + 75 * + + 93 ) + - 36 AS col1, 18 * - 69
----
-92
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT ALL - 77 * + 83 + + + COUNT( * ) + - + 6
----
-6396

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL - 77 * + 83 + + + COUNT ( * ) + - + 6
----
-6396

query I rowsort
SELECT - COALESCE ( + 24, + 95 * + - 94 * 7, - - 52 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT + 78 + + 95 + - + COUNT( * ) * - 8
----
181

skipif mysql # not compatible
query I rowsort label-6212
SELECT + 78 + + 95 + - + COUNT ( * ) * - 8
----
181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6213
SELECT + 31 * + 15 + AVG ( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT + 31 * + 15 + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6214
SELECT 22 * 79 + + + 26 + + MAX( ALL + 75 ), NULLIF ( - - 62, + 37 ) AS col0
----
1839
62

skipif mysql # not compatible
query II rowsort label-6214
SELECT 22 * 79 + + + 26 + + MAX ( ALL + 75 ), NULLIF ( - - 62, + 37 ) AS col0
----
1839
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6215
SELECT 4 - CASE + - ( - + 91 ) WHEN - - COALESCE ( - 46, 35 * + - CAST( + NULLIF ( + + 9, + NULLIF ( - 48, - COUNT( DISTINCT - 93 ) ) ) AS SIGNED ) * + 96 ) THEN NULL WHEN - ( - + 18 ) + - 87 * 79 * ( + - 16 ) * 19 THEN + - 0 * 34 + + ( + 46 ) WHEN + 0 THEN NULL ELSE 1 + - - 9 END AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-6215
SELECT 4 - CASE + - ( - + 91 ) WHEN - - COALESCE ( - 46, 35 * + - CAST ( + NULLIF ( + + 9, + NULLIF ( - 48, - COUNT ( DISTINCT - 93 ) ) ) AS INTEGER ) * + 96 ) THEN NULL WHEN - ( - + 18 ) + - 87 * 79 * ( + - 16 ) * 19 THEN + - 0 * 34 + + ( + 46 ) WHEN + 0 THEN NULL ELSE 1 + - - 9 END AS col1
----
-6

query I rowsort
SELECT ALL 55 + 0 + 17 AS col1
----
72

query I rowsort
SELECT 9 * - 84 * + 1 * - + 52 AS col1
----
39312

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT DISTINCT MAX( DISTINCT - 51 ) * 45 + + SUM( DISTINCT - 93 )
----
-2388

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT MAX ( DISTINCT - 51 ) * 45 + + SUM ( DISTINCT - 93 )
----
-2388

query II rowsort
SELECT DISTINCT 84 + - 25 * + 52 + + + 21 AS col2, 64
----
-1195
64

query I rowsort
SELECT 74 * + 55 + - 52 AS col2
----
4018

query I rowsort
SELECT ( + 7 ) * + - 41 * + + ( + + 93 ) * + 39 * + 52
----
-54129348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6222
SELECT DISTINCT COALESCE ( + 76, 96 + - 53 * + 14, + - MIN( ALL 36 ) DIV + - 16 * 63 + ( + - 3 ) + + 6 + - SUM( ALL + + ( 94 ) ) - - + 51 * 86 * - 63 DIV + COUNT( 51 ) * + - CAST( NULL AS SIGNED ) ) - 25, 23 AS col0
----
51
23

skipif mysql # not compatible
query II rowsort label-6222
SELECT DISTINCT COALESCE ( + 76, 96 + - 53 * + 14, + - MIN ( ALL 36 ) / + - 16 * 63 + ( + - 3 ) + + 6 + - SUM ( ALL + + ( 94 ) ) - - + 51 * 86 * - 63 / + COUNT ( 51 ) * + - CAST ( NULL AS INTEGER ) ) - 25, 23 AS col0
----
51
23

query II rowsort
SELECT ALL 9 AS col0, - ( 85 ) + - 54 AS col0
----
9
-139

query I rowsort
SELECT ALL 77 * - + 91
----
-7007

query I rowsort
SELECT ALL + 75 - - 52 AS col1
----
127

query I rowsort
SELECT 24 * ( + 7 ) col0
----
168

query I rowsort
SELECT 60 + + 22
----
82

query I rowsort
SELECT 69 + - 7 AS col0
----
62

query I rowsort
SELECT ALL - 33 * + + 27
----
-891

query I rowsort
SELECT - 86 + - 12 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT COUNT( * ) - + 0 * ( 53 ) + + - 73 - COUNT( * ) * 93 * 91 AS col2
----
-8535

skipif mysql # not compatible
query I rowsort label-6231
SELECT COUNT ( * ) - + 0 * ( 53 ) + + - 73 - COUNT ( * ) * 93 * 91 AS col2
----
-8535

onlyif mysql # DIV for integer division: 
query I rowsort label-6232
SELECT 26 DIV 89 - - - 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-6232
SELECT 26 / 89 - - - 38 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT ALL 82 * + - COUNT( * ) * - 81 * + ( 67 ) * - MIN( 97 ) col0
----
-43166358

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL 82 * + - COUNT ( * ) * - 81 * + ( 67 ) * - MIN ( 97 ) col0
----
-43166358

query I rowsort
SELECT - NULLIF ( + - 36, + + 83 ) * ( 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT DISTINCT - 81 * - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT - 81 * - COUNT ( * )
----
81

query I rowsort
SELECT + 95 * + 98 + - 39
----
9271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6237
SELECT ALL - NULLIF ( - 86, - SUM( DISTINCT - NULLIF ( - 31, + - 66 + 51 ) ) / + 20 * - COUNT( * ) + - 99 - + COALESCE ( - - 24, + + 10 * - + COUNT( * ), + COUNT( - CAST( NULL AS SIGNED ) ) ) + + 76 / 32 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL - NULLIF ( - 86, - SUM ( DISTINCT - NULLIF ( - 31, + - 66 + 51 ) ) / + 20 * - COUNT ( * ) + - 99 - + COALESCE ( - - 24, + + 10 * - + COUNT ( * ), + COUNT ( - CAST ( NULL AS INTEGER ) ) ) + + 76 / 32 ) AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6238
SELECT + CASE 70 WHEN COALESCE ( 22, - - 31 + - + 5, - + COUNT( * ) + + 27 ) + + 82 + + 58 - + - 33 THEN + 30 * + CASE 51 WHEN - + 42 THEN + 28 * NULLIF ( + 50, - COALESCE ( + - 71, 63 + + CAST( 79 AS SIGNED ) + - 88 * MAX( 35 ) ) ) WHEN - 15 * - 3 THEN NULL ELSE - 22 END END * + - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6238
SELECT + CASE 70 WHEN COALESCE ( 22, - - 31 + - + 5, - + COUNT ( * ) + + 27 ) + + 82 + + 58 - + - 33 THEN + 30 * + CASE 51 WHEN - + 42 THEN + 28 * NULLIF ( + 50, - COALESCE ( + - 71, 63 + + CAST ( 79 AS INTEGER ) + - 88 * MAX ( 35 ) ) ) WHEN - 15 * - 3 THEN NULL ELSE - 22 END END * + - 35 AS col0
----
NULL

query II rowsort
SELECT + 46 AS col0, 0
----
46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ( MAX( DISTINCT - 61 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-6240
SELECT ( MAX ( DISTINCT - 61 ) )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT ALL - 25 * - + 16 + + COUNT( * ) col2
----
401

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - 25 * - + 16 + + COUNT ( * ) col2
----
401

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT DISTINCT - + NULLIF ( + 28, + COUNT( * ) * + 18 / MIN( - 88 ) / + 93 ) * 85 + 97
----
-2283

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT - + NULLIF ( + 28, + COUNT ( * ) * + 18 / MIN ( - 88 ) / + 93 ) * 85 + 97
----
-2283

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6243
SELECT ALL - 88 AS col2, CAST( 62 AS SIGNED )
----
-88
62

skipif mysql # not compatible
query II rowsort label-6243
SELECT ALL - 88 AS col2, CAST ( 62 AS INTEGER )
----
-88
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6244
SELECT + - COUNT( * ), + 57 - + 45 AS col1
----
-1
12

skipif mysql # not compatible
query II rowsort label-6244
SELECT + - COUNT ( * ), + 57 - + 45 AS col1
----
-1
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6245
SELECT DISTINCT 14 * - 23, 67 * + COUNT( * ) AS col0
----
-322
67

skipif mysql # not compatible
query II rowsort label-6245
SELECT DISTINCT 14 * - 23, 67 * + COUNT ( * ) AS col0
----
-322
67

query I rowsort
SELECT ALL - 69 * + 90 AS col0
----
-6210

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT + 69 * 15 + + - COUNT( * )
----
1034

skipif mysql # not compatible
query I rowsort label-6247
SELECT + 69 * 15 + + - COUNT ( * )
----
1034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6248
SELECT DISTINCT + CAST( - + 68 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT + CAST ( - + 68 AS INTEGER )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT - 2 - + COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6249
SELECT - 2 - + COUNT ( * ) AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6250
SELECT + 7 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6250
SELECT + 7 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 78 - 76 AS col2
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT - COALESCE ( 37, - 45, MAX( DISTINCT - 17 ) ) * - - 29 + + 38 + - - 31 * + + 42 AS col2
----
267

skipif mysql # not compatible
query I rowsort label-6252
SELECT - COALESCE ( 37, - 45, MAX ( DISTINCT - 17 ) ) * - - 29 + + 38 + - - 31 * + + 42 AS col2
----
267

onlyif mysql # DIV for integer division: 
query I rowsort label-6253
SELECT ALL ( - - 17 ) DIV - ( + 6 ) + + 80 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL ( - - 17 ) / - ( + 6 ) + + 80 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT + 0 - - ( 0 ) + 30 * MIN( ALL - 59 ) AS col0
----
-1770

skipif mysql # not compatible
query I rowsort label-6254
SELECT + 0 - - ( 0 ) + 30 * MIN ( ALL - 59 ) AS col0
----
-1770

query I rowsort
SELECT - 12 * 57 AS col1
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT + 18 * - COUNT( ALL + 39 )
----
-18

skipif mysql # not compatible
query I rowsort label-6256
SELECT + 18 * - COUNT ( ALL + 39 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT + CASE COUNT( * ) WHEN - 61 * 30 + - 13 THEN + 45 * - 0 ELSE NULL END + 99 - + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6257
SELECT + CASE COUNT ( * ) WHEN - 61 * 30 + - 13 THEN + 45 * - 0 ELSE NULL END + 99 - + 10
----
NULL

query I rowsort
SELECT - ( - COALESCE ( - 81, - - 86 + + 76 + - 60, + 4 ) ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT - MIN( - 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6259
SELECT - MIN ( - 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT + MAX( ALL 1 ) + - + ( 6 ) + - + 93 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6260
SELECT + MAX ( ALL 1 ) + - + ( 6 ) + - + 93 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT ALL + 2 + ( CASE - 57 WHEN 18 - - - 98 * - ( - - 42 ) THEN NULL WHEN - + COUNT( * ) THEN - 69 ELSE NULL END ) * 57 * - + 67 * + + 36 * - - 47 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL + 2 + ( CASE - 57 WHEN 18 - - - 98 * - ( - - 42 ) THEN NULL WHEN - + COUNT ( * ) THEN - 69 ELSE NULL END ) * 57 * - + 67 * + + 36 * - - 47 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT ALL - - 52 + - ( + COUNT( * ) ) + - 45 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL - - 52 + - ( + COUNT ( * ) ) + - 45 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT + NULLIF ( - + CASE + - 22 WHEN + 63 + - 57 + - 92 THEN + 33 WHEN 19 * - 51 + COUNT( * ) THEN 39 END, - - 61 * 29 ) * AVG ( - + 8 ) * 92 + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT + NULLIF ( - + CASE + - 22 WHEN + 63 + - 57 + - 92 THEN + 33 WHEN 19 * - 51 + COUNT ( * ) THEN 39 END, - - 61 * 29 ) * AVG ( - + 8 ) * 92 + 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT ALL MAX( DISTINCT + 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL MAX ( DISTINCT + 87 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT + - COALESCE ( 0, - MIN( 55 ), 69 + - 81 + + + 49 * + 26 - - 87 + 79 ) + - 49
----
-49

skipif mysql # not compatible
query I rowsort label-6265
SELECT + - COALESCE ( 0, - MIN ( 55 ), 69 + - 81 + + + 49 * + 26 - - 87 + 79 ) + - 49
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6266
SELECT DISTINCT + CAST( 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT + CAST ( 50 AS INTEGER )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT ALL 80 DIV + 19 + + - 89
----
-85

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL 80 / + 19 + + - 89
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6268
SELECT DISTINCT 18 DIV + COUNT( * ) + + 96
----
114

skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT 18 / + COUNT ( * ) + + 96
----
114

onlyif mysql # DIV for integer division: 
query II rowsort label-6269
SELECT - + 56 * 12 DIV - 26 - + 75 * 99 AS col2, + 43 + - 15
----
-7400
28

skipif mysql # not compatible
query II rowsort label-6269
SELECT - + 56 * 12 / - 26 - + 75 * 99 AS col2, + 43 + - 15
----
-7400
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6270
SELECT ALL - - ( - SUM( ALL + 75 ) ) DIV + 61 + - 59, + 49 * 65 AS col2
----
-60
3185

skipif mysql # not compatible
query II rowsort label-6270
SELECT ALL - - ( - SUM ( ALL + 75 ) ) / + 61 + - 59, + 49 * 65 AS col2
----
-60
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT - - COUNT( * ) * 37 + - COUNT( * ) + + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6271
SELECT - - COUNT ( * ) * 37 + - COUNT ( * ) + + COUNT ( * ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT ALL - 83 * - MIN( + 8 ) AS col0
----
664

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL - 83 * - MIN ( + 8 ) AS col0
----
664

onlyif mysql # aggregate syntax: 
query II rowsort label-6273
SELECT - 14 + - 63 + - COUNT( * ), + 91 AS col2
----
-78
91

skipif mysql # not compatible
query II rowsort label-6273
SELECT - 14 + - 63 + - COUNT ( * ), + 91 AS col2
----
-78
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT + COUNT( * ) * + 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6274
SELECT + COUNT ( * ) * + 10 AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6275
SELECT ALL + CASE - - 22 WHEN CAST( NULL AS SIGNED ) - 59 THEN NULL WHEN - - 49 THEN - 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL + CASE - - 22 WHEN CAST ( NULL AS INTEGER ) - 59 THEN NULL WHEN - - 49 THEN - 47 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6276
SELECT - 40 * 34 DIV - ( - 86 ) + + 40 DIV - + MAX( ( ( - 75 ) ) )
----
-15

skipif mysql # not compatible
query I rowsort label-6276
SELECT - 40 * 34 / - ( - 86 ) + + 40 / - + MAX ( ( ( - 75 ) ) )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-6277
SELECT + COUNT( * ), + 56 col1
----
1
56

skipif mysql # not compatible
query II rowsort label-6277
SELECT + COUNT ( * ), + 56 col1
----
1
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT 10 * + 66 + NULLIF ( + COUNT( * ), 63 )
----
661

skipif mysql # not compatible
query I rowsort label-6278
SELECT 10 * + 66 + NULLIF ( + COUNT ( * ), 63 )
----
661

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT ALL + COUNT( + CASE + + 19 WHEN + 69 * - - 73 THEN 40 WHEN + 33 * - COALESCE ( - 14, + 3 ) + - ( - 43 ) THEN NULL END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL + COUNT ( + CASE + + 19 WHEN + 69 * - - 73 THEN 40 WHEN + 33 * - COALESCE ( - 14, + 3 ) + - ( - 43 ) THEN NULL END ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6280
SELECT DISTINCT + 60, + 0 * COUNT( * ) AS col2
----
60
0

skipif mysql # not compatible
query II rowsort label-6280
SELECT DISTINCT + 60, + 0 * COUNT ( * ) AS col2
----
60
0

query I rowsort
SELECT COALESCE ( + 66, ( - 73 ), + 49 )
----
66

query II rowsort
SELECT DISTINCT + 5 AS col2, 97 - 17
----
5
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT DISTINCT + COUNT( * ) * - 38 * + 32 - + SUM( DISTINCT - 3 )
----
-1213

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT + COUNT ( * ) * - 38 * + 32 - + SUM ( DISTINCT - 3 )
----
-1213

query I rowsort
SELECT DISTINCT 60 * ( + - 59 )
----
-3540

query I rowsort
SELECT 11 * 17 * + 97 * 59 + + + 37 AS col2
----
1070238

query I rowsort
SELECT - 95 * + 68 AS col0
----
-6460

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT - 12 / - CASE - + 43 WHEN - 78 + COUNT( * ) THEN + + 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT - 12 / - CASE - + 43 WHEN - 78 + COUNT ( * ) THEN + + 6 ELSE NULL END
----
NULL

query I rowsort
SELECT + NULLIF ( - - 30, 47 ) * 50 AS col0
----
1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6289
SELECT DISTINCT + 3 * + 34 * ( - COALESCE ( - - ( + 32 ), + CAST( + 36 AS SIGNED ), + MAX( - - CAST( 14 AS SIGNED ) ) ) ) col2
----
-3264

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT + 3 * + 34 * ( - COALESCE ( - - ( + 32 ), + CAST ( + 36 AS INTEGER ), + MAX ( - - CAST ( 14 AS INTEGER ) ) ) ) col2
----
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT - MIN( ALL + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-6290
SELECT - MIN ( ALL + 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT - - NULLIF ( ( 85 ), - - COUNT( * ) ) * 35 * - COALESCE ( - 26, - 53 ) col2
----
77350

skipif mysql # not compatible
query I rowsort label-6291
SELECT - - NULLIF ( ( 85 ), - - COUNT ( * ) ) * 35 * - COALESCE ( - 26, - 53 ) col2
----
77350

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT ALL COUNT( * ) + - + 60
----
-59

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL COUNT ( * ) + - + 60
----
-59

query I rowsort
SELECT ALL 34 + - + 66 AS col2
----
-32

query II rowsort
SELECT - 57, - 83 col2
----
-57
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT + ( + + 79 ) + MAX( - - 12 ) * + ( - 81 ) AS col1
----
-893

skipif mysql # not compatible
query I rowsort label-6295
SELECT + ( + + 79 ) + MAX ( - - 12 ) * + ( - 81 ) AS col1
----
-893

query I rowsort
SELECT + 31 + - 74 + NULLIF ( - 60, + 70 ) AS col1
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6297
SELECT ALL - 90 + - CAST( NULL AS SIGNED ) + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL - 90 + - CAST ( NULL AS INTEGER ) + 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT + + NULLIF ( + COUNT( - 17 ), 58 + - 59 + + + 44 + + + 80 ) * - + 38 * + 87
----
-3306

skipif mysql # not compatible
query I rowsort label-6298
SELECT + + NULLIF ( + COUNT ( - 17 ), 58 + - 59 + + + 44 + + + 80 ) * - + 38 * + 87
----
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT DISTINCT + 88 * - - COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT + 88 * - - COUNT ( * ) AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6300
SELECT ALL - + 28 + + 42 - - 5 + - - ( 78 ) + + 79 DIV - + 97 * + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL - + 28 + + 42 - - 5 + - - ( 78 ) + + 79 / - + 97 * + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT 89 + 24 + + COUNT( * )
----
114

skipif mysql # not compatible
query I rowsort label-6301
SELECT 89 + 24 + + COUNT ( * )
----
114

query I rowsort
SELECT DISTINCT 89 * + 10 AS col2
----
890

query I rowsort
SELECT + NULLIF ( - - 66, 80 * + 47 ) * 70
----
4620

onlyif mysql # aggregate syntax: 
query II rowsort label-6304
SELECT + COUNT( * ) AS col1, + 20 AS col2
----
1
20

skipif mysql # not compatible
query II rowsort label-6304
SELECT + COUNT ( * ) AS col1, + 20 AS col2
----
1
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6305
SELECT COUNT( ALL + 84 ) * 66 DIV + + CAST( - MAX( ALL ( + - ( 55 ) ) ) AS SIGNED ) + 30
----
31

skipif mysql # not compatible
query I rowsort label-6305
SELECT COUNT ( ALL + 84 ) * 66 / + + CAST ( - MAX ( ALL ( + - ( 55 ) ) ) AS INTEGER ) + 30
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT DISTINCT ( 29 ) - - + CASE + 26 WHEN 35 THEN + + ( 50 ) WHEN - 15 * - 24 + - - 12 / 73 * - + AVG ( - 2 ) + - 7 * COUNT( * ) THEN + 83 * 26 + 13 + - SUM( 26 ) * 95 / - + NULLIF ( - - ( + COUNT( * ) ), - 70 + + - CASE + - 91 WHEN - 96 THEN + 7 WHEN + 41 THEN NULL WHEN - 52 THEN + - ( + 34 ) END + + - 50 ) * - 36 * + + 6 - - 98 ELSE - 26 - - 37 + ( - + 47 ) * - SUM( 83 ) END + + COUNT( * ) / CAST( NULL AS SIGNED ) / 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT ( 29 ) - - + CASE + 26 WHEN 35 THEN + + ( 50 ) WHEN - 15 * - 24 + - - 12 / 73 * - + AVG ( - 2 ) + - 7 * COUNT ( * ) THEN + 83 * 26 + 13 + - SUM ( 26 ) * 95 / - + NULLIF ( - - ( + COUNT ( * ) ), - 70 + + - CASE + - 91 WHEN - 96 THEN + 7 WHEN + 41 THEN NULL WHEN - 52 THEN + - ( + 34 ) END + + - 50 ) * - 36 * + + 6 - - 98 ELSE - 26 - - 37 + ( - + 47 ) * - SUM ( 83 ) END + + COUNT ( * ) / CAST ( NULL AS INTEGER ) / 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT 48 * + CASE - 22 WHEN + - 87 THEN 80 / - 83 + - 73 + + 23 + + 70 WHEN MAX( - + 70 ) + + + 78 THEN NULL ELSE NULL END * 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6307
SELECT 48 * + CASE - 22 WHEN + - 87 THEN 80 / - 83 + - 73 + + 23 + + 70 WHEN MAX ( - + 70 ) + + + 78 THEN NULL ELSE NULL END * 35 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6308
SELECT ALL CAST( ( - 26 ) AS SIGNED ) * - CAST( NULL AS SIGNED ) + - - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL CAST ( ( - 26 ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - - 64
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6309
SELECT DISTINCT NULLIF ( - 21, + ( + 94 ) DIV 63 ) DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT NULLIF ( - 21, + ( + 94 ) / 63 ) / 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL - ( MIN( DISTINCT + - 4 ) ) col1
----
4

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL - ( MIN ( DISTINCT + - 4 ) ) col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6311
SELECT ALL CAST( - + 82 AS SIGNED ) * 87 AS col1
----
-7134

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL CAST ( - + 82 AS INTEGER ) * 87 AS col1
----
-7134

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT COUNT( * ) * NULLIF ( + + 18, + 81 - + - SUM( 34 ) + + MAX( DISTINCT 83 ) / 32 + - 59 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6312
SELECT COUNT ( * ) * NULLIF ( + + 18, + 81 - + - SUM ( 34 ) + + MAX ( DISTINCT 83 ) / 32 + - 59 ) AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6313
SELECT 52 * + 58 + - COUNT( * ) DIV - - 45 AS col0
----
3016

skipif mysql # not compatible
query I rowsort label-6313
SELECT 52 * + 58 + - COUNT ( * ) / - - 45 AS col0
----
3016

query I rowsort
SELECT 63 * - 88 * + - 89 AS col2
----
493416

onlyif mysql # aggregate syntax: 
query II rowsort label-6315
SELECT ( 26 ) - + - SUM( DISTINCT - ( 85 ) ) + MAX( - - 49 ) + + 99 * + 99, 44 AS col2
----
9791
44

skipif mysql # not compatible
query II rowsort label-6315
SELECT ( 26 ) - + - SUM ( DISTINCT - ( 85 ) ) + MAX ( - - 49 ) + + 99 * + 99, 44 AS col2
----
9791
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT DISTINCT NULLIF ( 35, - 54 * - 85 ) + - 41 + COUNT( * ) * - 22 * - 80 + - 22 AS col1
----
1732

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT NULLIF ( 35, - 54 * - 85 ) + - 41 + COUNT ( * ) * - 22 * - 80 + - 22 AS col1
----
1732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6317
SELECT + 78 * - 31 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6317
SELECT + 78 * - 31 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL ( 60 ) + 60
----
120

query I rowsort
SELECT DISTINCT + 71 + + 4 AS col1
----
75

query I rowsort
SELECT 24 - 46 AS col2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6321
SELECT 55 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-6321
SELECT 55 / + 97
----
0

query I rowsort
SELECT DISTINCT + ( - - 96 ) + - - 94 AS col2
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6323
SELECT - + MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT - + MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT 4 * + - 48 AS col2, + 58 * - 63 AS col2
----
-192
-3654

query I rowsort
SELECT DISTINCT + + 76 + - - 18
----
94

query II rowsort
SELECT ALL + 59 * - 77, 44 AS col2
----
-4543
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL - 0 - - CASE - 49 WHEN - 59 THEN NULL WHEN 52 THEN 48 ELSE NULL END - - + COALESCE ( 16, + - 20 + - + COUNT( DISTINCT + - 97 ) * 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL - 0 - - CASE - 49 WHEN - 59 THEN NULL WHEN 52 THEN 48 ELSE NULL END - - + COALESCE ( 16, + - 20 + - + COUNT ( DISTINCT + - 97 ) * 41 )
----
NULL

query I rowsort
SELECT - 95 * - - ( + 21 ) AS col0
----
-1995

onlyif mysql # DIV for integer division: 
query II rowsort label-6329
SELECT ALL 34 DIV + + 87 AS col1, - 76 col1
----
0
-76

skipif mysql # not compatible
query II rowsort label-6329
SELECT ALL 34 / + + 87 AS col1, - 76 col1
----
0
-76

query I rowsort
SELECT ALL 39 - 81
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT + 61 + - 68 + CASE - - COUNT( * ) WHEN 31 - 2 THEN + - COUNT( * ) * - 90 + + 86 WHEN 15 / + - 67 * - COUNT( * ) + - 1 * - + 52 * - 35 THEN - + COUNT( * ) * + - 1 - 77 * + + MAX( - - 81 ) ELSE NULL END * - 57 * ( + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6331
SELECT + 61 + - 68 + CASE - - COUNT ( * ) WHEN 31 - 2 THEN + - COUNT ( * ) * - 90 + + 86 WHEN 15 / + - 67 * - COUNT ( * ) + - 1 * - + 52 * - 35 THEN - + COUNT ( * ) * + - 1 - 77 * + + MAX ( - - 81 ) ELSE NULL END * - 57 * ( + 67 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT SUM( DISTINCT + 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6332
SELECT SUM ( DISTINCT + 91 ) AS col1
----
91

query II rowsort
SELECT DISTINCT 77 AS col1, ( 34 ) + + CASE 57 WHEN + + 9 + + - 79 THEN - + 60 + - 19 ELSE - 24 END
----
77
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6334
SELECT ALL CAST( NULL AS SIGNED ) * 50 * + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL CAST ( NULL AS INTEGER ) * 50 * + 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT COALESCE ( - 71, - COUNT( * ), 58 ) + CASE + - 42 WHEN + 46 THEN + 5 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6335
SELECT COALESCE ( - 71, - COUNT ( * ), 58 ) + CASE + - 42 WHEN + 46 THEN + 5 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6336
SELECT ALL + COUNT( * ) * - 72 / - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL + COUNT ( * ) * - 72 / - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT DISTINCT - MAX( DISTINCT + 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT - MAX ( DISTINCT + 55 )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6338
SELECT ( - - 27 ) * + 45 col2, + CASE WHEN NULL IS NULL THEN - 0 WHEN NOT NULL IS NULL THEN 22 ELSE NULL END * + ( - CAST( NULL AS SIGNED ) )
----
1215
NULL

skipif mysql # not compatible
query II rowsort label-6338
SELECT ( - - 27 ) * + 45 col2, + CASE WHEN NULL IS NULL THEN - 0 WHEN NOT NULL IS NULL THEN 22 ELSE NULL END * + ( - CAST ( NULL AS INTEGER ) )
----
1215
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6339
SELECT ALL CAST( NULL AS SIGNED ) * - 51 * + 0 AS col1, + COUNT( * ) + + + 51 AS col1
----
NULL
52

skipif mysql # not compatible
query II rowsort label-6339
SELECT ALL CAST ( NULL AS INTEGER ) * - 51 * + 0 AS col1, + COUNT ( * ) + + + 51 AS col1
----
NULL
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6340
SELECT + 56 / + CAST( NULL AS SIGNED ) + - - COUNT( * ), CAST( NULL AS SIGNED ) * 44
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6340
SELECT + 56 / + CAST ( NULL AS INTEGER ) + - - COUNT ( * ), CAST ( NULL AS INTEGER ) * 44
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6341
SELECT NULLIF ( - COUNT( * ), + + 28 ) DIV - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6341
SELECT NULLIF ( - COUNT ( * ), + + 28 ) / - 46 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6342
SELECT 37 DIV + + 29
----
1

skipif mysql # not compatible
query I rowsort label-6342
SELECT 37 / + + 29
----
1

query I rowsort
SELECT 73 + + + 20 - 12 * - + 25 col2
----
393

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT COUNT( * ) * - - 29 + - - 94
----
123

skipif mysql # not compatible
query I rowsort label-6344
SELECT COUNT ( * ) * - - 29 + - - 94
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-6345
SELECT ALL 1 DIV - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL 1 / - 66 AS col0
----
0

query I rowsort
SELECT DISTINCT 12 + + 66 + - - 15 * - 60 + - - 26
----
-796

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT ALL CASE - + MAX( + 94 ) WHEN + + COUNT( * ) THEN NULL WHEN + 98 + + + 31 + + 34 * COUNT( * ) THEN NULL ELSE 21 + - 21 END + + 30 * - ( + - 16 ) + + MAX( + 83 ) + ( - 36 )
----
527

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL CASE - + MAX ( + 94 ) WHEN + + COUNT ( * ) THEN NULL WHEN + 98 + + + 31 + + 34 * COUNT ( * ) THEN NULL ELSE 21 + - 21 END + + 30 * - ( + - 16 ) + + MAX ( + 83 ) + ( - 36 )
----
527

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6348
SELECT ALL 35 + - 76 - + COUNT( * ) DIV 72 * + 60 * SUM( DISTINCT - - 74 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL 35 + - 76 - + COUNT ( * ) / 72 * + 60 * SUM ( DISTINCT - - 74 ) AS col0
----
-41

query I rowsort
SELECT 62 * 38
----
2356

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ( MAX( 68 ) ) * 60
----
4080

skipif mysql # not compatible
query I rowsort label-6350
SELECT ( MAX ( 68 ) ) * 60
----
4080

onlyif mysql # aggregate syntax: 
query II rowsort label-6351
SELECT ALL + 85 + MIN( DISTINCT - 8 ) AS col0, 35
----
77
35

skipif mysql # not compatible
query II rowsort label-6351
SELECT ALL + 85 + MIN ( DISTINCT - 8 ) AS col0, 35
----
77
35

query I rowsort
SELECT ALL 0 + - 39 AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT CAST( NULL AS SIGNED ) * - - 32 / + + 61 * - - 96 + 54 * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT CAST ( NULL AS INTEGER ) * - - 32 / + + 61 * - - 96 + 54 * - 20
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6354
SELECT - CAST( NULL AS DECIMAL ) * 5 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6354
SELECT - CAST ( NULL AS REAL ) * 5 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT ( + - 2 ) + - COUNT( * ) * + 44 * + COUNT( * ) + + 81 * 66
----
5300

skipif mysql # not compatible
query I rowsort label-6355
SELECT ( + - 2 ) + - COUNT ( * ) * + 44 * + COUNT ( * ) + + 81 * 66
----
5300

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT + NULLIF ( - - 23, + COUNT( * ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6356
SELECT + NULLIF ( - - 23, + COUNT ( * ) ) AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6357
SELECT + COUNT( * ) + - 89 DIV 22
----
-3

skipif mysql # not compatible
query I rowsort label-6357
SELECT + COUNT ( * ) + - 89 / 22
----
-3

query I rowsort
SELECT - + ( + + 5 ) col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT DISTINCT 22 - - CASE COUNT( * ) WHEN - 11 * + 71 + + 20 THEN - - 84 + + 87 + + ( - + 20 ) * - - 68 ELSE - + 50 + - COUNT( * ) END AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT 22 - - CASE COUNT ( * ) WHEN - 11 * + 71 + + 20 THEN - - 84 + + 87 + + ( - + 20 ) * - - 68 ELSE - + 50 + - COUNT ( * ) END AS col0
----
-29

query I rowsort
SELECT DISTINCT + - 40 - + 34
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6361
SELECT ALL - 49 - - CAST( COUNT( * ) AS SIGNED ) DIV - 67
----
-49

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL - 49 - - CAST ( COUNT ( * ) AS INTEGER ) / - 67
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL COUNT( ALL 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL COUNT ( ALL 45 ) AS col1
----
1

query II rowsort
SELECT DISTINCT + 0 AS col1, 33
----
0
33

query II rowsort
SELECT - - 88, + 50 AS col1
----
88
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6365
SELECT ALL - + CAST( - + 28 AS SIGNED ) - - 74 * - 57
----
-4190

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL - + CAST ( - + 28 AS INTEGER ) - - 74 * - 57
----
-4190

query I rowsort
SELECT - + 83 * - ( + ( 67 ) ) col1
----
5561

onlyif mysql # aggregate syntax: 
query II rowsort label-6367
SELECT - + 77 + - 56 * ( - - 35 ) * + 75 + - COUNT( * ) + + 69 * + 48 col1, 65 AS col2
----
-143766
65

skipif mysql # not compatible
query II rowsort label-6367
SELECT - + 77 + - 56 * ( - - 35 ) * + 75 + - COUNT ( * ) + + 69 * + 48 col1, 65 AS col2
----
-143766
65

query II rowsort
SELECT ALL + 54, - 91 AS col1
----
54
-91

query II rowsort
SELECT - - 98 col0, - 9
----
98
-9

query I rowsort
SELECT ALL - + 6 * - 7
----
42

query I rowsort
SELECT - 55 * - - ( + + 3 )
----
-165

query II rowsort
SELECT 37 AS col2, + 98
----
37
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6373
SELECT - 8 DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6373
SELECT - 8 / - 65 AS col2
----
0

query I rowsort
SELECT - 19 * + - 45 * + 98 AS col0
----
83790

query I rowsort
SELECT - 25 * + 67 AS col1
----
-1675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6376
SELECT - 96 * + - COUNT( * ) * + - 5 * + + 4 AS col1, + 36 / + CASE + 72 WHEN + 42 - + - CASE 32 WHEN - + COUNT( * ) THEN + 83 + - 60 + + + NULLIF ( + 39, - - 11 / - 74 ) + - COUNT( * ) / - ( + + 44 ) * 97 - - 68 * CAST( NULL AS DECIMAL ) * + + 48 + + MIN( - + 88 ) * CAST( NULL AS SIGNED ) WHEN + 32 * - 69 THEN - + 70 END THEN - 62 * 48 + + + 82 / + - ( + 72 ) * ( 6 ) / - - CAST( - NULLIF ( - + 36, - - CAST( - - 93 AS SIGNED ) * + 98 + + 92 ) AS SIGNED ) * + + AVG ( ALL 5 ) ELSE NULL END + - 5 * 52
----
-1920
NULL

skipif mysql # not compatible
query II rowsort label-6376
SELECT - 96 * + - COUNT ( * ) * + - 5 * + + 4 AS col1, + 36 / + CASE + 72 WHEN + 42 - + - CASE 32 WHEN - + COUNT ( * ) THEN + 83 + - 60 + + + NULLIF ( + 39, - - 11 / - 74 ) + - COUNT ( * ) / - ( + + 44 ) * 97 - - 68 * CAST ( NULL AS REAL ) * + + 48 + + MIN ( - + 88 ) * CAST ( NULL AS INTEGER ) WHEN + 32 * - 69 THEN - + 70 END THEN - 62 * 48 + + + 82 / + - ( + 72 ) * ( 6 ) / - - CAST ( - NULLIF ( - + 36, - - CAST ( - - 93 AS INTEGER ) * + 98 + + 92 ) AS INTEGER ) * + + AVG ( ALL 5 ) ELSE NULL END + - 5 * 52
----
-1920
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6377
SELECT + SUM( - + 97 ) AS col1, + COUNT( * ) AS col0
----
-97
1

skipif mysql # not compatible
query II rowsort label-6377
SELECT + SUM ( - + 97 ) AS col1, + COUNT ( * ) AS col0
----
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT ALL - 6 * - - 26 * - 4 * + COALESCE ( + CAST( NULL AS SIGNED ), + 57 ) + 1 * + 97 AS col2
----
35665

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL - 6 * - - 26 * - 4 * + COALESCE ( + CAST ( NULL AS INTEGER ), + 57 ) + 1 * + 97 AS col2
----
35665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6379
SELECT - 14 DIV 3 * - 38 * + COUNT( * ) - + COALESCE ( 7, 49 ) * 34 * + 45
----
-10558

skipif mysql # not compatible
query I rowsort label-6379
SELECT - 14 / 3 * - 38 * + COUNT ( * ) - + COALESCE ( 7, 49 ) * 34 * + 45
----
-10558

onlyif mysql # aggregate syntax: 
query III rowsort label-6380
SELECT ( - + 30 ) AS col1, ( NULLIF ( + + 62, - 62 / + + 41 ) ), 45 + + 89 * - 85 + COUNT( DISTINCT - 60 ) AS col1
----
-30
62
-7519

skipif mysql # not compatible
query III rowsort label-6380
SELECT ( - + 30 ) AS col1, ( NULLIF ( + + 62, - 62 / + + 41 ) ), 45 + + 89 * - 85 + COUNT ( DISTINCT - 60 ) AS col1
----
-30
62
-7519

onlyif mysql # aggregate syntax: 
query II rowsort label-6381
SELECT + COUNT( * ) col2, + ( ( - 74 ) ) * ( + 92 ) AS col1
----
1
-6808

skipif mysql # not compatible
query II rowsort label-6381
SELECT + COUNT ( * ) col2, + ( ( - 74 ) ) * ( + 92 ) AS col1
----
1
-6808

query I rowsort
SELECT ALL + 29 * 85 + 87
----
2552

query I rowsort
SELECT DISTINCT + CASE 52 WHEN - 50 * + 59 THEN - COALESCE ( + + 12, + - 69 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT + SUM( - 88 ) col1
----
-88

skipif mysql # not compatible
query I rowsort label-6384
SELECT + SUM ( - 88 ) col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT + SUM( DISTINCT - 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-6385
SELECT + SUM ( DISTINCT - 83 ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT DISTINCT + COALESCE ( 44, + 11, + - COUNT( * ) * + 53 + + 27 * + 83 + - 81 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT + COALESCE ( 44, + 11, + - COUNT ( * ) * + 53 + + 27 * + 83 + - 81 ) AS col1
----
44

query I rowsort
SELECT ALL + ( - + 90 ) AS col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6388
SELECT + 70 * - 43 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6388
SELECT + 70 * - 43 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6389
SELECT + MIN( - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT - 82 + 0 col2
----
-82

query I rowsort
SELECT + 88 * + 31
----
2728

query I rowsort
SELECT ALL - 33 * + 67 + + + 64 + + 15 AS col0
----
-2132

query II rowsort
SELECT + - 84 AS col0, 14 AS col1
----
-84
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT ALL 71 DIV 43 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL 71 / 43 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT + ( + COUNT( * ) ) + + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-6395
SELECT + ( + COUNT ( * ) ) + + - 18
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6396
SELECT DISTINCT + 46, - CAST( + 93 AS SIGNED ) + - + 59 * - - 43 AS col1
----
46
-2630

skipif mysql # not compatible
query II rowsort label-6396
SELECT DISTINCT + 46, - CAST ( + 93 AS INTEGER ) + - + 59 * - - 43 AS col1
----
46
-2630

query II rowsort
SELECT + 59 AS col0, - 88 + - - 11 + - ( + - 27 ) AS col2
----
59
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6398
SELECT + COUNT( * ) * - 48 AS col1, 93 DIV - COUNT( * ) AS col2
----
-48
-93

skipif mysql # not compatible
query II rowsort label-6398
SELECT + COUNT ( * ) * - 48 AS col1, 93 / - COUNT ( * ) AS col2
----
-48
-93

query II rowsort
SELECT - 43, + 42 + 76 + + ( - 44 ) AS col0
----
-43
74

onlyif mysql # DIV for integer division: 
query II rowsort label-6400
SELECT 18 AS col2, + 57 + + 4 + - 55 + 22 DIV + + 52 AS col2
----
18
6

skipif mysql # not compatible
query II rowsort label-6400
SELECT 18 AS col2, + 57 + + 4 + - 55 + 22 / + + 52 AS col2
----
18
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6401
SELECT - - 23 + - - 41 - 7 * - CAST( - CASE + 41 WHEN - MAX( - - 52 ) THEN NULL ELSE + 52 - 51 END AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-6401
SELECT - - 23 + - - 41 - 7 * - CAST ( - CASE + 41 WHEN - MAX ( - - 52 ) THEN NULL ELSE + 52 - 51 END AS INTEGER )
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-6402
SELECT ALL + 46 AS col0, 99 DIV - - 2
----
46
49

skipif mysql # not compatible
query II rowsort label-6402
SELECT ALL + 46 AS col0, 99 / - - 2
----
46
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6403
SELECT + COUNT( * ) DIV - 13
----
0

skipif mysql # not compatible
query I rowsort label-6403
SELECT + COUNT ( * ) / - 13
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6404
SELECT - 13 DIV + 77 + - 82 col1
----
-82

skipif mysql # not compatible
query I rowsort label-6404
SELECT - 13 / + 77 + - 82 col1
----
-82

query II rowsort
SELECT - 66, - ( 59 ) AS col2
----
-66
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT ( + MAX( ALL - + 55 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-6406
SELECT ( + MAX ( ALL - + 55 ) )
----
-55

query I rowsort
SELECT ALL - 15 * + 39 * + 88
----
-51480

query I rowsort
SELECT ALL NULLIF ( + 85, - - 68 - 27 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT DISTINCT - 75 * CASE - - MIN( ALL - 94 ) WHEN 91 THEN + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT - 75 * CASE - - MIN ( ALL - 94 ) WHEN 91 THEN + 97 END
----
NULL

query II rowsort
SELECT + 20 + + 91 + 98, - 27 AS col1
----
209
-27

query I rowsort
SELECT + 96 * - - 29 AS col0
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT - 2 * MIN( DISTINCT + + 7 )
----
-14

skipif mysql # not compatible
query I rowsort label-6412
SELECT - 2 * MIN ( DISTINCT + + 7 )
----
-14

query I rowsort
SELECT DISTINCT - 75 * + 79 col0
----
-5925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT - CAST( 9 AS SIGNED ) - - 77
----
68

skipif mysql # not compatible
query I rowsort label-6414
SELECT - CAST ( 9 AS INTEGER ) - - 77
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT ALL - 57 + - CASE + + 31 WHEN 84 + 98 THEN - COUNT( DISTINCT 14 ) WHEN - COUNT( * ) THEN NULL ELSE + - 3 * 89 END
----
210

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL - 57 + - CASE + + 31 WHEN 84 + 98 THEN - COUNT ( DISTINCT 14 ) WHEN - COUNT ( * ) THEN NULL ELSE + - 3 * 89 END
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT ALL COUNT( DISTINCT + - 91 ) + - 67
----
-66

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL COUNT ( DISTINCT + - 91 ) + - 67
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6417
SELECT ALL + CASE - + 63 WHEN + 68 THEN NULL WHEN + 43 THEN NULL ELSE + CAST( NULL AS SIGNED ) + - 81 * 84 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL + CASE - + 63 WHEN + 68 THEN NULL WHEN + 43 THEN NULL ELSE + CAST ( NULL AS INTEGER ) + - 81 * 84 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6418
SELECT DISTINCT + CAST( + 23 AS SIGNED ) * + 47 AS col0
----
1081

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT + CAST ( + 23 AS INTEGER ) * + 47 AS col0
----
1081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6419
SELECT ALL 22 DIV + - 57 * - COUNT( * ) + - COALESCE ( - 61, + - 30 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL 22 / + - 57 * - COUNT ( * ) + - COALESCE ( - 61, + - 30 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT + 5 * NULLIF ( + 93, - - NULLIF ( - - 46, 33 + + 41 + 11 - - 49 + 51 / + - MIN( DISTINCT 72 ) * - COUNT( * ) * + NULLIF ( + 96, + 82 ) ) * + 67 + 40 / COUNT( * ) ) AS col0
----
465

skipif mysql # not compatible
query I rowsort label-6420
SELECT + 5 * NULLIF ( + 93, - - NULLIF ( - - 46, 33 + + 41 + 11 - - 49 + 51 / + - MIN ( DISTINCT 72 ) * - COUNT ( * ) * + NULLIF ( + 96, + 82 ) ) * + 67 + 40 / COUNT ( * ) ) AS col0
----
465

query I rowsort
SELECT DISTINCT + 13 * + 41
----
533

onlyif mysql # aggregate syntax: 
query II rowsort label-6422
SELECT - 76 * 24, + COUNT( DISTINCT + 85 ) AS col1
----
-1824
1

skipif mysql # not compatible
query II rowsort label-6422
SELECT - 76 * 24, + COUNT ( DISTINCT + 85 ) AS col1
----
-1824
1

query I rowsort
SELECT DISTINCT 60 - 7 + - 54
----
-1

query I rowsort
SELECT + + ( + - 70 ) AS col2
----
-70

query I rowsort
SELECT - CASE 32 WHEN - 78 THEN + - 46 WHEN - + 80 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6426
SELECT ALL - ( + 69 ) - + 57 + + + 33 DIV - - 55, + 34 * - + 98 AS col0
----
-126
-3332

skipif mysql # not compatible
query II rowsort label-6426
SELECT ALL - ( + 69 ) - + 57 + + + 33 / - - 55, + 34 * - + 98 AS col0
----
-126
-3332

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT + 48 * + - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-6427
SELECT + 48 * + - COUNT ( * )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6428
SELECT ALL - 71 * + - ( + 23 ) * + 57 * - 78 * + CASE 32 WHEN CAST( NULL AS SIGNED ) THEN + 4 WHEN - - 51 * - + CAST( NULL AS SIGNED ) / + 69 * - COUNT( * ) + - 98 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL - 71 * + - ( + 23 ) * + 57 * - 78 * + CASE 32 WHEN CAST ( NULL AS INTEGER ) THEN + 4 WHEN - - 51 * - + CAST ( NULL AS INTEGER ) / + 69 * - COUNT ( * ) + - 98 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - CASE 61 WHEN - 92 + - 14 THEN NULL WHEN - 79 THEN + 1 ELSE NULL END + ( + 35 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT COUNT( DISTINCT + 63 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6430
SELECT COUNT ( DISTINCT + 63 ) AS col0
----
1

query I rowsort
SELECT ALL - 70 + ( - 65 ) col2
----
-135

query I rowsort
SELECT ALL + 6 * - 2
----
-12

query II rowsort
SELECT DISTINCT 56 * + - 47 AS col2, + 40
----
-2632
40

query I rowsort
SELECT 18 * 77
----
1386

query I rowsort
SELECT 54 + 24 AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6436
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - CAST( NULL AS DECIMAL ) * + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - CAST ( NULL AS REAL ) * + 10 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6437
SELECT CAST( COUNT( * ) AS SIGNED ) + - CAST( NULL AS SIGNED ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT CAST ( COUNT ( * ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) * - 52
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6438
SELECT 0, 36 + 69 DIV 46 AS col1
----
0
37

skipif mysql # not compatible
query II rowsort label-6438
SELECT 0, 36 + 69 / 46 AS col1
----
0
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6439
SELECT ALL 84 + + - 67 * - CAST( 25 AS SIGNED )
----
1759

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL 84 + + - 67 * - CAST ( 25 AS INTEGER )
----
1759

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT 44 * + + ( - 13 ) * 50 + - 38 DIV + 91
----
-28600

skipif mysql # not compatible
query I rowsort label-6440
SELECT 44 * + + ( - 13 ) * 50 + - 38 / + 91
----
-28600

query I rowsort
SELECT DISTINCT 19 + 45
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT DISTINCT 78 + - - COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT 78 + - - COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6443
SELECT - 45 AS col2, + MIN( DISTINCT 62 ) DIV - 8 AS col2
----
-45
-7

skipif mysql # not compatible
query II rowsort label-6443
SELECT - 45 AS col2, + MIN ( DISTINCT 62 ) / - 8 AS col2
----
-45
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6444
SELECT ALL COALESCE ( 68, + COUNT( * ), + 43 * - + 6 * + 81 - 26 + + 67 + + - 32 DIV - - 7 + + - COALESCE ( + 36, 56 DIV 38, + COUNT( * ) + - 2 + + CAST( NULL AS SIGNED ) ) ) + - + 60
----
8

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL COALESCE ( 68, + COUNT ( * ), + 43 * - + 6 * + 81 - 26 + + 67 + + - 32 / - - 7 + + - COALESCE ( + 36, 56 / 38, + COUNT ( * ) + - 2 + + CAST ( NULL AS INTEGER ) ) ) + - + 60
----
8

query II rowsort
SELECT - 53 col2, 40 + - - 80 + 23 AS col1
----
-53
143

query I rowsort
SELECT 88 * 90 AS col1
----
7920

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT ALL 18 - + 79 + COUNT( * ) * + + 28 * 84 * COUNT( * ) * + 87 col2
----
204563

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL 18 - + 79 + COUNT ( * ) * + + 28 * 84 * COUNT ( * ) * + 87 col2
----
204563

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6448
SELECT ( + MAX( ALL - 31 ) ) DIV - 5
----
6

skipif mysql # not compatible
query I rowsort label-6448
SELECT ( + MAX ( ALL - 31 ) ) / - 5
----
6

query I rowsort
SELECT 13 * + - 94 AS col1
----
-1222

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT DISTINCT - CASE + MIN( + - 19 ) WHEN - ( 67 ) * - - 16 THEN - - 34 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT - CASE + MIN ( + - 19 ) WHEN - ( 67 ) * - - 16 THEN - - 34 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT DISTINCT - - SUM( + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT - - SUM ( + 78 )
----
78

query I rowsort
SELECT ALL - 17 * + - 67 * ( + + ( - 43 ) ) * 22
----
-1077494

onlyif mysql # aggregate syntax: 
query II rowsort label-6453
SELECT 92 AS col1, ( - - COUNT( * ) ) AS col0
----
92
1

skipif mysql # not compatible
query II rowsort label-6453
SELECT 92 AS col1, ( - - COUNT ( * ) ) AS col0
----
92
1

query I rowsort
SELECT ALL - - ( 33 ) AS col2
----
33

query I rowsort
SELECT - 46 - - + 47 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6456
SELECT 36 col1, COUNT( * ) + + COUNT( * ) - 51 - COUNT( * ) AS col1
----
36
-50

skipif mysql # not compatible
query II rowsort label-6456
SELECT 36 col1, COUNT ( * ) + + COUNT ( * ) - 51 - COUNT ( * ) AS col1
----
36
-50

query I rowsort
SELECT 24 * - 24 * - - 3 + 79 AS col0
----
-1649

query I rowsort
SELECT + + 39 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT + SUM( DISTINCT + + 69 ) * + COUNT( - + 29 ) * + 21 + - - COUNT( * ) + 42
----
1492

skipif mysql # not compatible
query I rowsort label-6459
SELECT + SUM ( DISTINCT + + 69 ) * + COUNT ( - + 29 ) * + 21 + - - COUNT ( * ) + 42
----
1492

query I rowsort
SELECT ALL - ( - 88 ) col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6461
SELECT ALL - 90 DIV + - 56 + 51, COALESCE ( 16, 89 * - COUNT( * ) * + 5 ) AS col2
----
52
16

skipif mysql # not compatible
query II rowsort label-6461
SELECT ALL - 90 / + - 56 + 51, COALESCE ( 16, 89 * - COUNT ( * ) * + 5 ) AS col2
----
52
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6462
SELECT - 95 * + 28 + + - COUNT( * ) AS col1, CASE + 19 WHEN - - 8 + - - SUM( DISTINCT + 26 ) * - + 66 THEN NULL WHEN 94 + 86 THEN - + 29 WHEN - 56 * 8 + + 86 THEN NULL END * - + 21 + - + NULLIF ( + 74, + 59 ) + CAST( - + 88 AS SIGNED )
----
-2661
NULL

skipif mysql # not compatible
query II rowsort label-6462
SELECT - 95 * + 28 + + - COUNT ( * ) AS col1, CASE + 19 WHEN - - 8 + - - SUM ( DISTINCT + 26 ) * - + 66 THEN NULL WHEN 94 + 86 THEN - + 29 WHEN - 56 * 8 + + 86 THEN NULL END * - + 21 + - + NULLIF ( + 74, + 59 ) + CAST ( - + 88 AS INTEGER )
----
-2661
NULL

query I rowsort
SELECT ALL + - 79 * 13 AS col2
----
-1027

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT ALL + + 62 + - COALESCE ( - 70, + + COUNT( * ) ) * - 96 * - + 50 AS col2
----
336062

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL + + 62 + - COALESCE ( - 70, + + COUNT ( * ) ) * - 96 * - + 50 AS col2
----
336062

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT ALL - 40 + + ( - + NULLIF ( + MAX( 7 ), 24 * - + 28 ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL - 40 + + ( - + NULLIF ( + MAX ( 7 ), 24 * - + 28 ) ) AS col2
----
-47

query I rowsort
SELECT DISTINCT - ( - 35 ) * + + 26
----
910

query I rowsort
SELECT DISTINCT - + 49 + + + 76 - + - 46
----
73

query I rowsort
SELECT + 15 * 7 AS col2
----
105

query II rowsort
SELECT ALL - 32 col2, 58
----
-32
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT - + MAX( DISTINCT - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-6470
SELECT - + MAX ( DISTINCT - 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT COUNT( * ) * - + 45 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-6471
SELECT COUNT ( * ) * - + 45 AS col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6472
SELECT 47 + + CAST( 30 AS SIGNED ) + CAST( NULL AS DECIMAL ) + - 29 * - ( + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT 47 + + CAST ( 30 AS INTEGER ) + CAST ( NULL AS REAL ) + - 29 * - ( + 30 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6473
SELECT DISTINCT 78 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT DISTINCT 78 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6474
SELECT ALL 37 * 31 AS col1, + COUNT( * ) AS col0
----
1147
1

skipif mysql # not compatible
query II rowsort label-6474
SELECT ALL 37 * 31 AS col1, + COUNT ( * ) AS col0
----
1147
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6475
SELECT DISTINCT - 3 - - + 93 * - 67 * + - 20 * + - 28 - - ( - COALESCE ( COUNT( * ), + CAST( NULL AS SIGNED ) ) )
----
-3489364

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT - 3 - - + 93 * - 67 * + - 20 * + - 28 - - ( - COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ) ) )
----
-3489364

query I rowsort
SELECT ALL 1 * - 51 * - 73 col1
----
3723

query I rowsort
SELECT DISTINCT 36 * 37 * + + 74 AS col1
----
98568

query I rowsort
SELECT 72 * + 2
----
144

query I rowsort
SELECT 7 * - 91 col2
----
-637

query I rowsort
SELECT + 76 + - - 20 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT ALL - 22 - + + NULLIF ( - 78, - 96 * CASE + + 70 WHEN 39 / - - 30 THEN 48 + + COUNT( * ) WHEN 83 THEN - 29 * - 1 * + + CASE - CASE NULLIF ( - 86, - 77 * - 93 * - ( 12 ) - - 39 ) WHEN + - 3 * + - 99 / 0 * + 95 * + 70 THEN + 81 * + - 27 END WHEN + 66 THEN + 68 END * + MAX( 72 ) + COUNT( * ) ELSE - 30 * - - 75 + - 28 * + 44 + COUNT( * ) END ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL - 22 - + + NULLIF ( - 78, - 96 * CASE + + 70 WHEN 39 / - - 30 THEN 48 + + COUNT ( * ) WHEN 83 THEN - 29 * - 1 * + + CASE - CASE NULLIF ( - 86, - 77 * - 93 * - ( 12 ) - - 39 ) WHEN + - 3 * + - 99 / 0 * + 95 * + 70 THEN + 81 * + - 27 END WHEN + 66 THEN + 68 END * + MAX ( 72 ) + COUNT ( * ) ELSE - 30 * - - 75 + - 28 * + 44 + COUNT ( * ) END ) AS col0
----
56

query I rowsort
SELECT ALL 41 * + 74 AS col2
----
3034

query I rowsort
SELECT + ( - 41 ) + + NULLIF ( 65, ( + 16 ) ) - 65
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT ALL MAX( - - 11 ) - - NULLIF ( - - 37, - AVG ( DISTINCT + 48 ) )
----
48

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL MAX ( - - 11 ) - - NULLIF ( - - 37, - AVG ( DISTINCT + 48 ) )
----
48

query I rowsort
SELECT DISTINCT 76 * + + 52
----
3952

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT ALL + + COUNT( * ) * + MAX( ALL - + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL + + COUNT ( * ) * + MAX ( ALL - + 78 )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-6487
SELECT - 23 * 66 + - 72 * - 21 AS col2, + MIN( DISTINCT 47 ) + - 6 AS col1
----
-6
41

skipif mysql # not compatible
query II rowsort label-6487
SELECT - 23 * 66 + - 72 * - 21 AS col2, + MIN ( DISTINCT 47 ) + - 6 AS col1
----
-6
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6488
SELECT 85 / - CAST( NULL AS SIGNED ) + - COUNT( + - 56 ) * - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6488
SELECT 85 / - CAST ( NULL AS INTEGER ) + - COUNT ( + - 56 ) * - + 28
----
NULL

query I rowsort
SELECT DISTINCT 18 * - 58 * + 51 AS col1
----
-53244

query I rowsort
SELECT DISTINCT + 61 * + 88 AS col1
----
5368

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT DISTINCT + - 78 * + 7 + + MAX( ALL - + 42 ) col2
----
-588

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT + - 78 * + 7 + + MAX ( ALL - + 42 ) col2
----
-588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6492
SELECT DISTINCT - + 35 * 99 * - COUNT( ALL + 72 ) + - COUNT( * ) + 16 - + 41 DIV 56 * - 49 + + + 39 + + MIN( - 69 ) * + 86 AS col2
----
-2415

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT - + 35 * 99 * - COUNT ( ALL + 72 ) + - COUNT ( * ) + 16 - + 41 / 56 * - 49 + + + 39 + + MIN ( - 69 ) * + 86 AS col2
----
-2415

query I rowsort
SELECT DISTINCT + 11 * + + CASE + + 89 WHEN - - 88 THEN - - 50 END
----
NULL

query I rowsort
SELECT - - 84 * + + 60 - ( + 78 )
----
4962

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT ALL - + 50 * + NULLIF ( 32, + 6 ) - 43 + 35 + + COUNT( * ) - + 89 - + MAX( - - 2 ) + + 95 AS col2
----
-1603

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL - + 50 * + NULLIF ( 32, + 6 ) - 43 + 35 + + COUNT ( * ) - + 89 - + MAX ( - - 2 ) + + 95 AS col2
----
-1603

query I rowsort
SELECT - + 23 * + - 50 * + 55 col1
----
63250

query I rowsort
SELECT - 90 + - 43
----
-133

query I rowsort
SELECT DISTINCT - 16 * - - 44 AS col1
----
-704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6499
SELECT ALL + ( + COUNT( * ) ) + + COALESCE ( 78, + - 73 * + - 89 DIV 76 ) + + NULLIF ( - COUNT( * ), MIN( - 54 ) * 49 )
----
78

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL + ( + COUNT ( * ) ) + + COALESCE ( 78, + - 73 * + - 89 / 76 ) + + NULLIF ( - COUNT ( * ), MIN ( - 54 ) * 49 )
----
78

query I rowsort
SELECT ALL ( + + 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT DISTINCT + COUNT( * ) * + + 98
----
98

skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT + COUNT ( * ) * + + 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT DISTINCT NULLIF ( COUNT( * ), + 39 - - - 15 * - + ( - 0 ) + 9 )
----
1

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT NULLIF ( COUNT ( * ), + 39 - - - 15 * - + ( - 0 ) + 9 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6503
SELECT - ( + 10 ) + + 92 + MIN( 21 ) DIV - 74 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6503
SELECT - ( + 10 ) + + 92 + MIN ( 21 ) / - 74 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT - COUNT( * ) + 13 + - 87 + - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-6504
SELECT - COUNT ( * ) + 13 + - 87 + - COUNT ( * )
----
-76

query I rowsort
SELECT - ( + 6 ) * + 99 AS col0
----
-594

query I rowsort
SELECT ALL NULLIF ( + 50, 59 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT - COUNT( + - ( + 18 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6507
SELECT - COUNT ( + - ( + 18 ) ) col0
----
-1

query I rowsort
SELECT ALL ( + + 94 ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6509
SELECT DISTINCT CAST( + - CASE NULLIF ( + 21, - 0 ) WHEN + + 55 + + - 67 THEN NULL ELSE + 65 - ( - 71 ) END AS SIGNED ) AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT CAST ( + - CASE NULLIF ( + 21, - 0 ) WHEN + + 55 + + - 67 THEN NULL ELSE + 65 - ( - 71 ) END AS INTEGER ) AS col0
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT ALL 17 * + - 29 * - COUNT( * ) AS col2
----
493

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL 17 * + - 29 * - COUNT ( * ) AS col2
----
493

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT - COUNT( ALL 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-6511
SELECT - COUNT ( ALL 34 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6512
SELECT - 69 DIV 33 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6512
SELECT - 69 / 33 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT + 75 * MIN( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-6513
SELECT + 75 * MIN ( 0 )
----
0

query I rowsort
SELECT - 87 - + 91
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT + MAX( 39 ) * - ( + 88 ) AS col0
----
-3432

skipif mysql # not compatible
query I rowsort label-6515
SELECT + MAX ( 39 ) * - ( + 88 ) AS col0
----
-3432

query I rowsort
SELECT + 63 - 54
----
9

query I rowsort
SELECT ALL - 74 * 68 AS col2
----
-5032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6518
SELECT DISTINCT + 13 DIV + COUNT( * ) + 83 DIV 31
----
15

skipif mysql # not compatible
query I rowsort label-6518
SELECT DISTINCT + 13 / + COUNT ( * ) + 83 / 31
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6519
SELECT DISTINCT + 35 DIV + 15 + - 30
----
-28

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT + 35 / + 15 + - 30
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT - 70 * - 24 + - COUNT( * )
----
1679

skipif mysql # not compatible
query I rowsort label-6520
SELECT - 70 * - 24 + - COUNT ( * )
----
1679

query I rowsort
SELECT + 9 - 29 * 38
----
-1093

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT + 85 * COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6522
SELECT + 85 * COUNT ( * ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ( MAX( 53 ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-6523
SELECT ( MAX ( 53 ) ) AS col0
----
53

query I rowsort
SELECT DISTINCT 9 * - 36
----
-324

query I rowsort
SELECT ALL 7 * 58 + 44 AS col2
----
450

query I rowsort
SELECT + 49 + - 36 AS col1
----
13

query I rowsort
SELECT ALL - 30 * + ( 51 )
----
-1530

query I rowsort
SELECT DISTINCT 73 * + 2 AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT ALL - 26 * - COUNT( * ) - 95 * 5 AS col1
----
-449

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL - 26 * - COUNT ( * ) - 95 * 5 AS col1
----
-449

query I rowsort
SELECT - 19 * + 60
----
-1140

query I rowsort
SELECT ALL 25 * 71
----
1775

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT COALESCE ( + 99, - 72 + 85, + ( - 89 ) * CASE SUM( DISTINCT NULLIF ( - 66, + 96 * + 25 ) ) + + 37 WHEN + 50 + NULLIF ( 55 + 99, - 25 ) * - 49 THEN NULL ELSE ( 2 ) * 5 END )
----
99

skipif mysql # not compatible
query I rowsort label-6532
SELECT COALESCE ( + 99, - 72 + 85, + ( - 89 ) * CASE SUM ( DISTINCT NULLIF ( - 66, + 96 * + 25 ) ) + + 37 WHEN + 50 + NULLIF ( 55 + 99, - 25 ) * - 49 THEN NULL ELSE ( 2 ) * 5 END )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT COALESCE ( 23, - ( + 79 ) + + COUNT( * ) )
----
23

skipif mysql # not compatible
query I rowsort label-6533
SELECT COALESCE ( 23, - ( + 79 ) + + COUNT ( * ) )
----
23

query I rowsort
SELECT + 83 * - 26 AS col1
----
-2158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6535
SELECT - MAX( 82 ) * COALESCE ( + ( - CASE WHEN NULL NOT IN ( + 98 ) THEN CASE + 47 WHEN 91 THEN 11 * CAST( - 73 / - 44 AS SIGNED ) WHEN + NULLIF ( - CASE + 26 WHEN + 22 / 32 + CAST( + 82 + + COUNT( * ) * CASE 91 / 16 + 45 WHEN - 61 * - 80 THEN ( 76 ) * 20 + 69 END AS SIGNED ) THEN NULL ELSE + 43 END, 80 ) THEN NULL END ELSE NULL END ), + COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-6535
SELECT - MAX ( 82 ) * COALESCE ( + ( - CASE WHEN NULL NOT IN ( + 98 ) THEN CASE + 47 WHEN 91 THEN 11 * CAST ( - 73 / - 44 AS INTEGER ) WHEN + NULLIF ( - CASE + 26 WHEN + 22 / 32 + CAST ( + 82 + + COUNT ( * ) * CASE 91 / 16 + 45 WHEN - 61 * - 80 THEN ( 76 ) * 20 + 69 END AS INTEGER ) THEN NULL ELSE + 43 END, 80 ) THEN NULL END ELSE NULL END ), + COUNT ( * ) )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6536
SELECT ALL - MAX( 11 ) DIV 10 col1
----
-1

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL - MAX ( 11 ) / 10 col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT 78 + - 98 DIV 64
----
77

skipif mysql # not compatible
query I rowsort label-6537
SELECT 78 + - 98 / 64
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6538
SELECT ALL + 68 * - CAST( 27 / COUNT( * ) AS SIGNED )
----
-1836

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL + 68 * - CAST ( 27 / COUNT ( * ) AS INTEGER )
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT 88 * - COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-6539
SELECT 88 * - COUNT ( * ) AS col2
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6540
SELECT ALL 59 DIV + COALESCE ( ( + 22 ), + ( - 61 ) DIV ( 10 ) + COALESCE ( 34, - ( 21 ) - 9 * COUNT( * ), 55 * - COUNT( * ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL 59 / + COALESCE ( ( + 22 ), + ( - 61 ) / ( 10 ) + COALESCE ( 34, - ( 21 ) - 9 * COUNT ( * ), 55 * - COUNT ( * ) ) )
----
2

query I rowsort
SELECT ( 52 ) + 48 * COALESCE ( 77 * - 48, - 36, 14 ) AS col1
----
-177356

query I rowsort
SELECT 23 * - 99
----
-2277

query I rowsort
SELECT - 65 + + 29
----
-36

query I rowsort
SELECT CASE - 43 WHEN 18 THEN 19 ELSE 95 END AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6545
SELECT 91 / CAST( + 60 * - NULLIF ( CAST( NULL AS SIGNED ) * 54, + NULLIF ( 0, 16 ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6545
SELECT 91 / CAST ( + 60 * - NULLIF ( CAST ( NULL AS INTEGER ) * 54, + NULLIF ( 0, 16 ) ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 18 + - 16
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT ALL + ( MAX( 84 ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL + ( MAX ( 84 ) ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT DISTINCT - MAX( - ( 40 ) ) + 43 * 74 AS col1
----
3222

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT - MAX ( - ( 40 ) ) + 43 * 74 AS col1
----
3222

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT ALL + COUNT( * ) + + 35 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL + COUNT ( * ) + + 35 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT MIN( ALL - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-6550
SELECT MIN ( ALL - 88 )
----
-88

query I rowsort
SELECT + 89 * + 87 + 71 * + ( 86 + - ( 88 + + 66 * - 36 ) ) AS col1
----
176297

query I rowsort
SELECT ALL + 22 + 88 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT - 14 * NULLIF ( - 15 * - 15, COUNT( * ) / - ( - 41 ) ) AS col1
----
-3150

skipif mysql # not compatible
query I rowsort label-6553
SELECT - 14 * NULLIF ( - 15 * - 15, COUNT ( * ) / - ( - 41 ) ) AS col1
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT - 76 * - 41 + + COUNT( * )
----
3117

skipif mysql # not compatible
query I rowsort label-6554
SELECT - 76 * - 41 + + COUNT ( * )
----
3117

query I rowsort
SELECT ALL - - 5 * + 92 AS col2
----
460

query I rowsort
SELECT DISTINCT - - 43 + 26 * + 78
----
2071

query I rowsort
SELECT ALL + 62 + 94
----
156

query I rowsort
SELECT - 81 * + 74 AS col1
----
-5994

query I rowsort
SELECT 40 + 46 * + 19 AS col0
----
914

query I rowsort
SELECT + ( - NULLIF ( 93, 81 ) )
----
-93

query I rowsort
SELECT ALL + 70 * - 26
----
-1820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6562
SELECT + 8 DIV COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6562
SELECT + 8 / COUNT ( * ) AS col1
----
8

query I rowsort
SELECT + 17 * + ( + 14 ) AS col0
----
238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6564
SELECT DISTINCT + - CAST( + 12 AS SIGNED ) * - 66
----
792

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT + - CAST ( + 12 AS INTEGER ) * - 66
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT ALL - + 1 - + NULLIF ( - COUNT( * ), 58 )
----
0

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL - + 1 - + NULLIF ( - COUNT ( * ), 58 )
----
0

query I rowsort
SELECT ALL 14 - - - 38 * - 97
----
3700

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL 54 * + ( MAX( DISTINCT - 1 ) ) * + 78
----
-4212

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL 54 * + ( MAX ( DISTINCT - 1 ) ) * + 78
----
-4212

query I rowsort
SELECT 72 * + 70
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT 7 * - + 66 * - COUNT( DISTINCT - ( 13 ) ) AS col0
----
462

skipif mysql # not compatible
query I rowsort label-6569
SELECT 7 * - + 66 * - COUNT ( DISTINCT - ( 13 ) ) AS col0
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL 72 * + ( - MIN( 24 ) ) * + 34
----
-58752

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL 72 * + ( - MIN ( 24 ) ) * + 34
----
-58752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6571
SELECT SUM( DISTINCT COALESCE ( - CAST( 99 AS SIGNED ), + 11 + 13 ) ) + - COUNT( * ) * + 11 AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-6571
SELECT SUM ( DISTINCT COALESCE ( - CAST ( 99 AS INTEGER ), + 11 + 13 ) ) + - COUNT ( * ) * + 11 AS col0
----
-110

query I rowsort
SELECT + 52 * + - 3 - 53
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT DISTINCT 6 * - + COALESCE ( - 1, + COUNT( * ) * - COUNT( * ), - 16 ) * ( 4 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT 6 * - + COALESCE ( - 1, + COUNT ( * ) * - COUNT ( * ), - 16 ) * ( 4 ) AS col1
----
24

query I rowsort
SELECT ALL 18 * - 13
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT ALL + MAX( ALL - 81 ) + + 23 col1
----
-58

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL + MAX ( ALL - 81 ) + + 23 col1
----
-58

query I rowsort
SELECT DISTINCT 53 * - - 9 AS col1
----
477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6577
SELECT DISTINCT 71 + CAST( 68 AS SIGNED ) DIV COUNT( * ) col2
----
139

skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT 71 + CAST ( 68 AS INTEGER ) / COUNT ( * ) col2
----
139

query I rowsort
SELECT 32 + - 35
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT DISTINCT + COUNT( * ) + + NULLIF ( 57, + 99 + 80 * 17 )
----
58

skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT + COUNT ( * ) + + NULLIF ( 57, + 99 + 80 * 17 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT COUNT( ALL - 96 )
----
1

skipif mysql # not compatible
query I rowsort label-6580
SELECT COUNT ( ALL - 96 )
----
1

query I rowsort
SELECT ALL + 18 + 1 AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-6582
SELECT 47 DIV - + 81
----
0

skipif mysql # not compatible
query I rowsort label-6582
SELECT 47 / - + 81
----
0

query I rowsort
SELECT ALL CASE + 52 WHEN 24 THEN NULL WHEN - 57 THEN 27 END AS col0
----
NULL

query I rowsort
SELECT ( - - 40 ) * 95
----
3800

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL COUNT( * ) + + NULLIF ( + 84, - 70 ) - 55
----
30

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL COUNT ( * ) + + NULLIF ( + 84, - 70 ) - 55
----
30

query I rowsort
SELECT ALL + 51 + - + 44 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT DISTINCT - - MIN( - 77 ) * + 37
----
-2849

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT - - MIN ( - 77 ) * + 37
----
-2849

query I rowsort
SELECT ALL - - ( 63 ) * - ( 22 + 64 ) AS col2
----
-5418

query I rowsort
SELECT 16 * 70 col2
----
1120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6590
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 28 * 18 + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 28 * 18 + 28 AS col2
----
NULL

query I rowsort
SELECT 96 - + 34 + 4 AS col1
----
66

query I rowsort
SELECT ALL - + ( - 8 )
----
8

query I rowsort
SELECT DISTINCT - 17 * + ( 41 ) AS col1
----
-697

onlyif mysql # DIV for integer division: 
query I rowsort label-6594
SELECT ALL + 6 DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL + 6 / - 38
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6595
SELECT COUNT( * ) DIV - 43 + + 22 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6595
SELECT COUNT ( * ) / - 43 + + 22 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT ( - SUM( ALL + 32 ) ) * COUNT( * ) - 47 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-6596
SELECT ( - SUM ( ALL + 32 ) ) * COUNT ( * ) - 47 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT DISTINCT + 85 * COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT + 85 * COUNT ( * ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6598
SELECT COUNT( * ) AS col1, + 16 * - 43
----
1
-688

skipif mysql # not compatible
query II rowsort label-6598
SELECT COUNT ( * ) AS col1, + 16 * - 43
----
1
-688

onlyif mysql # DIV for integer division: 
query I rowsort label-6599
SELECT + 66 DIV 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6599
SELECT + 66 / 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6600
SELECT ALL + 43 col0, - 71 + MAX( 26 ) + + 64
----
43
19

skipif mysql # not compatible
query II rowsort label-6600
SELECT ALL + 43 col0, - 71 + MAX ( 26 ) + + 64
----
43
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT - ( 75 ) * COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-6601
SELECT - ( 75 ) * COUNT ( * )
----
-75

query I rowsort
SELECT DISTINCT + 95 * 87
----
8265

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6603
SELECT ALL + COUNT( * ), 25 DIV + 97 * - 46 + - 10 col0
----
1
-10

skipif mysql # not compatible
query II rowsort label-6603
SELECT ALL + COUNT ( * ), 25 / + 97 * - 46 + - 10 col0
----
1
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6604
SELECT + 85 * + - ( + + CASE COUNT( * ) WHEN - 90 * + 95 THEN ( - CASE 24 WHEN - 60 THEN + 72 ELSE + 25 END ) + ( COUNT( ALL 42 ) - 67 * CAST( 80 * + 13 AS SIGNED ) ) WHEN - 94 THEN COUNT( * ) + - 1 WHEN 6 THEN NULL END ) + ( + ( + 65 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT + 85 * + - ( + + CASE COUNT ( * ) WHEN - 90 * + 95 THEN ( - CASE 24 WHEN - 60 THEN + 72 ELSE + 25 END ) + ( COUNT ( ALL 42 ) - 67 * CAST ( 80 * + 13 AS INTEGER ) ) WHEN - 94 THEN COUNT ( * ) + - 1 WHEN 6 THEN NULL END ) + ( + ( + 65 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6605
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + 27 AS col0
----
NULL
27

skipif mysql # not compatible
query II rowsort label-6605
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 27 AS col0
----
NULL
27

query I rowsort
SELECT DISTINCT - 22 * - - 24 col2
----
-528

query I rowsort
SELECT + 24 * - 29 * + 1 AS col1
----
-696

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6608
SELECT 44, CAST( NULL AS DECIMAL ) * + 20 + - 54 AS col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-6608
SELECT 44, CAST ( NULL AS REAL ) * + 20 + - 54 AS col0
----
44
NULL

query I rowsort
SELECT ALL 6 + + + 29 + + 75 AS col2
----
110

query II rowsort
SELECT ALL 59 col1, - 56
----
59
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6611
SELECT + 88 - - ( COUNT( DISTINCT ( - CAST( NULL AS SIGNED ) ) ) )
----
88

skipif mysql # not compatible
query I rowsort label-6611
SELECT + 88 - - ( COUNT ( DISTINCT ( - CAST ( NULL AS INTEGER ) ) ) )
----
88

query II rowsort
SELECT ALL 16 AS col2, ( - 62 ) AS col1
----
16
-62

query I rowsort
SELECT 69 * + 70 + - COALESCE ( 69, 89 ) AS col2
----
4761

query I rowsort
SELECT ALL 70 + + 88 AS col1
----
158

query II rowsort
SELECT 15, + 58 * + 80 AS col2
----
15
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT DISTINCT + 44 * - - MIN( ALL - - 10 ) + 30
----
470

skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT + 44 * - - MIN ( ALL - - 10 ) + 30
----
470

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT + - COUNT( DISTINCT 45 ) - - 33 + 92 * 96 AS col1
----
8864

skipif mysql # not compatible
query I rowsort label-6617
SELECT + - COUNT ( DISTINCT 45 ) - - 33 + 92 * 96 AS col1
----
8864

query I rowsort
SELECT + 87 * 73 col2
----
6351

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT + - 6 + - CASE MAX( ( 78 ) ) WHEN 71 / + MIN( ALL + 70 ) THEN - AVG ( ALL 80 ) END + - COUNT( * ) * - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6619
SELECT + - 6 + - CASE MAX ( ( 78 ) ) WHEN 71 / + MIN ( ALL + 70 ) THEN - AVG ( ALL 80 ) END + - COUNT ( * ) * - 1 AS col2
----
NULL

query I rowsort
SELECT ALL + 95 - + 99 col1
----
-4

query I rowsort
SELECT - - 25 + + - 52
----
-27

query I rowsort
SELECT + - 56 * - 92
----
5152

onlyif mysql # DIV for integer division: 
query I rowsort label-6623
SELECT - 33 DIV 26 * + - 46 - + 60 * - ( + 78 * 77 )
----
360406

skipif mysql # not compatible
query I rowsort label-6623
SELECT - 33 / 26 * + - 46 - + 60 * - ( + 78 * 77 )
----
360406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6624
SELECT DISTINCT + 29 DIV - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT + 29 / - COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-6625
SELECT ALL COUNT( * ) AS col0, 46 * + - 86 col0
----
1
-3956

skipif mysql # not compatible
query II rowsort label-6625
SELECT ALL COUNT ( * ) AS col0, 46 * + - 86 col0
----
1
-3956

query I rowsort
SELECT + 76 + + ( - - 43 )
----
119

query I rowsort
SELECT ALL 46 - + - 32 AS col1
----
78

query I rowsort
SELECT - + 99 * - 59 * 96 AS col1
----
560736

onlyif mysql # DIV for integer division: 
query I rowsort label-6629
SELECT 24 DIV 45 * - + ( - 30 ) + - 17
----
-17

skipif mysql # not compatible
query I rowsort label-6629
SELECT 24 / 45 * - + ( - 30 ) + - 17
----
-17

query I rowsort
SELECT ALL + 8 * + - 18
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6631
SELECT - CAST( - 38 AS SIGNED ) * - 9 * + + COUNT( * ) * NULLIF ( 21, 62 ) AS col1
----
-7182

skipif mysql # not compatible
query I rowsort label-6631
SELECT - CAST ( - 38 AS INTEGER ) * - 9 * + + COUNT ( * ) * NULLIF ( 21, 62 ) AS col1
----
-7182

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL 94 * + - 66 * + + 71 + COUNT( * )
----
-440483

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL 94 * + - 66 * + + 71 + COUNT ( * )
----
-440483

query I rowsort
SELECT ALL 43 * 24 * 91 AS col2
----
93912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6634
SELECT + 44 * 84 + CAST( ( COUNT( * ) ) AS SIGNED )
----
3697

skipif mysql # not compatible
query I rowsort label-6634
SELECT + 44 * 84 + CAST ( ( COUNT ( * ) ) AS INTEGER )
----
3697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6635
SELECT DISTINCT + NULLIF ( - CAST( NULL AS SIGNED ), + - 85 * - 14 * - COALESCE ( - 33, - 88, + 24, 53 ) + + 18 ) * - 46 + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT + NULLIF ( - CAST ( NULL AS INTEGER ), + - 85 * - 14 * - COALESCE ( - 33, - 88, + 24, 53 ) + + 18 ) * - 46 + 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL + MAX( - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL + MAX ( - 26 )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6637
SELECT ALL 63 * - + CAST( NULL AS SIGNED ) + 91 + 8 / + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL 63 * - + CAST ( NULL AS INTEGER ) + 91 + 8 / + 12 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6638
SELECT ALL CAST( NULL AS SIGNED ) * + 1 + - + MIN( + - 12 ) + - 7 * + 58 * + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL CAST ( NULL AS INTEGER ) * + 1 + - + MIN ( + - 12 ) + - 7 * + 58 * + 3 AS col1
----
NULL

query I rowsort
SELECT - 0 * 30 + - 44 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT NULLIF ( + COUNT( * ), - 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6640
SELECT NULLIF ( + COUNT ( * ), - 47 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT + NULLIF ( + COUNT( * ), + 90 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6641
SELECT + NULLIF ( + COUNT ( * ), + 90 ) AS col2
----
1

query I rowsort
SELECT ALL + 69 * - - 67 + - + COALESCE ( - - 47, + 94 + + 57 ) AS col1
----
4576

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT ALL + CASE 71 WHEN - COUNT( * ) THEN + ( 20 ) WHEN NULLIF ( + NULLIF ( 2, 22 ), 99 ) THEN NULL WHEN 97 * 75 THEN + 92 END * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL + CASE 71 WHEN - COUNT ( * ) THEN + ( 20 ) WHEN NULLIF ( + NULLIF ( 2, 22 ), 99 ) THEN NULL WHEN 97 * 75 THEN + 92 END * 39
----
NULL

query I rowsort
SELECT - 64 + 61 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT DISTINCT 49 * 91 + - + COUNT( * ) * + 33 * 38
----
3205

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT 49 * 91 + - + COUNT ( * ) * + 33 * 38
----
3205

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT DISTINCT + 3 * SUM( ALL 57 ) * - + 93 * + 91 - COUNT( * )
----
-1447174

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT + 3 * SUM ( ALL 57 ) * - + 93 * + 91 - COUNT ( * )
----
-1447174

query I rowsort
SELECT ALL + 15 * - 56 * + 77 AS col2
----
-64680

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT DISTINCT + CASE - 7 WHEN - - 70 * + 51 THEN + COUNT( + 46 ) ELSE NULL END * 98 - 99 * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT + CASE - 7 WHEN - - 70 * + 51 THEN + COUNT ( + 46 ) ELSE NULL END * 98 - 99 * + 91
----
NULL

query II rowsort
SELECT - ( - - 19 ) AS col2, 59 + + 52 + 12 AS col1
----
-19
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6650
SELECT + - COALESCE ( - - COUNT( * ), - AVG ( DISTINCT + + 40 ) + + 58 * 65, + COALESCE ( - 33, + CASE - 71 WHEN + 76 THEN - 84 END * 84 ) * 31 + ( + 51 ) ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6650
SELECT + - COALESCE ( - - COUNT ( * ), - AVG ( DISTINCT + + 40 ) + + 58 * 65, + COALESCE ( - 33, + CASE - 71 WHEN + 76 THEN - 84 END * 84 ) * 31 + ( + 51 ) ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 48, + 77 + + + 79 ) - 94 AS col2
----
-46

query I rowsort
SELECT - - CASE - ( - - 11 ) WHEN - - 41 * 50 + 22 * - 93 THEN + ( + ( COALESCE ( 89, + 52 ) ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT + + 55 + COUNT( 3 ) - + - 81 + SUM( 88 ) * + 3 AS col0
----
401

skipif mysql # not compatible
query I rowsort label-6653
SELECT + + 55 + COUNT ( 3 ) - + - 81 + SUM ( 88 ) * + 3 AS col0
----
401

query I rowsort
SELECT ALL 91 * + 92 + 72
----
8444

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT DISTINCT CASE + 90 WHEN - + 65 * COUNT( * ) THEN NULL WHEN - 34 THEN NULL WHEN - 25 + + 81 THEN - 51 * + 81 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT CASE + 90 WHEN - + 65 * COUNT ( * ) THEN NULL WHEN - 34 THEN NULL WHEN - 25 + + 81 THEN - 51 * + 81 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ALL - 39 * - COUNT( * ) * + + 93 * 88 * 80 - COUNT( * ) * - 48 AS col0
----
25534128

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL - 39 * - COUNT ( * ) * + + 93 * 88 * 80 - COUNT ( * ) * - 48 AS col0
----
25534128

query I rowsort
SELECT + NULLIF ( + 30, 35 )
----
30

query I rowsort
SELECT + ( + - ( 8 ) ) AS col0
----
-8

query I rowsort
SELECT 94 * 14 * + 97
----
127652

query I rowsort
SELECT - - 82 col1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6661
SELECT 25 DIV 69 + + + 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6661
SELECT 25 / 69 + + + 71 AS col0
----
71

query I rowsort
SELECT DISTINCT COALESCE ( 92, + 44 ) + - 4
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6663
SELECT ALL ( 69 ) + + + CASE + + 10 WHEN ( 21 ) / - 49 THEN - 95 + - 47 WHEN + ( 78 ) THEN 36 WHEN 78 + MIN( ALL 30 ) * + 89 THEN CAST( 94 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL ( 69 ) + + + CASE + + 10 WHEN ( 21 ) / - 49 THEN - 95 + - 47 WHEN + ( 78 ) THEN 36 WHEN 78 + MIN ( ALL 30 ) * + 89 THEN CAST ( 94 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT CASE + 98 WHEN 86 * - + 80 + + 30 + - 57 * 72 * 50 + - COUNT( - 17 ) / 36 THEN 10 ELSE + CASE + 2 WHEN 3 * 19 THEN COUNT( * ) * - 18 END END - + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT CASE + 98 WHEN 86 * - + 80 + + 30 + - 57 * 72 * 50 + - COUNT ( - 17 ) / 36 THEN 10 ELSE + CASE + 2 WHEN 3 * 19 THEN COUNT ( * ) * - 18 END END - + 44 AS col0
----
NULL

query I rowsort
SELECT ALL 31 + 54
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT COUNT( * ) * 77 - - 31
----
108

skipif mysql # not compatible
query I rowsort label-6666
SELECT COUNT ( * ) * 77 - - 31
----
108

query I rowsort
SELECT ALL 43 + - 39 * ( 53 ) * + 84 AS col2
----
-173585

onlyif mysql # DIV for integer division: 
query I rowsort label-6668
SELECT ALL - 40 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL - 40 / + 45
----
0

query I rowsort
SELECT DISTINCT 60 + + 12 * + + 21 AS col1
----
312

query I rowsort
SELECT ALL + 77 + 80 AS col0
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6671
SELECT COUNT( * ) DIV + - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6671
SELECT COUNT ( * ) / + - 85 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6672
SELECT ALL 95 + - - 98 + + + 63 * - - CASE - CAST( CAST( 36 AS SIGNED ) AS SIGNED ) WHEN + 35 THEN ( 22 ) WHEN + CAST( COUNT( - 11 ) AS DECIMAL ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL 95 + - - 98 + + + 63 * - - CASE - CAST ( CAST ( 36 AS INTEGER ) AS INTEGER ) WHEN + 35 THEN ( 22 ) WHEN + CAST ( COUNT ( - 11 ) AS REAL ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 16 - - - 85
----
-69

query I rowsort
SELECT 50 * + 16 - 84
----
716

query I rowsort
SELECT DISTINCT + 59 * - - 89
----
5251

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL - COUNT( 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL - COUNT ( 73 )
----
-1

query I rowsort
SELECT 6 + 34 col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT ALL 53 * - COALESCE ( COUNT( + - ( - CASE 55 WHEN - 40 * 44 + - 5 / 70 THEN - 1 WHEN ( - 75 ) THEN NULL END ) ), ( 70 ) * MIN( + 77 ) - 57 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL 53 * - COALESCE ( COUNT ( + - ( - CASE 55 WHEN - 40 * 44 + - 5 / 70 THEN - 1 WHEN ( - 75 ) THEN NULL END ) ), ( 70 ) * MIN ( + 77 ) - 57 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6679
SELECT DISTINCT - ( + + 71 ) - + 77 + - 38 + + - 62 DIV 60
----
-187

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT - ( + + 71 ) - + 77 + - 38 + + - 62 / 60
----
-187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6680
SELECT ALL - MIN( CAST( - 37 AS SIGNED ) )
----
37

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL - MIN ( CAST ( - 37 AS INTEGER ) )
----
37

query I rowsort
SELECT 32 * 44 * + 16
----
22528

query I rowsort
SELECT ALL - 6 * 79 AS col2
----
-474

query I rowsort
SELECT 79 + 10 + - + 6 * + 45 AS col2
----
-181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6684
SELECT ALL - + COUNT( * ) DIV + - 3 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL - + COUNT ( * ) / + - 3 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT DISTINCT - - MAX( ALL ( - - 68 ) ) * - 68 - + - 16
----
-4608

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT - - MAX ( ALL ( - - 68 ) ) * - 68 - + - 16
----
-4608

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT NULLIF ( - 66, + - 51 + - 59 ) + COUNT( * ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-6686
SELECT NULLIF ( - 66, + - 51 + - 59 ) + COUNT ( * ) col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-6687
SELECT - 36 DIV 55 + + + 49 * + 6 col2
----
294

skipif mysql # not compatible
query I rowsort label-6687
SELECT - 36 / 55 + + + 49 * + 6 col2
----
294

onlyif mysql # DIV for integer division: 
query I rowsort label-6688
SELECT ALL - 34 DIV - - 42
----
0

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL - 34 / - - 42
----
0

query I rowsort
SELECT 48 + 60
----
108

query I rowsort
SELECT DISTINCT + ( - - NULLIF ( 48, + 83 ) )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-6691
SELECT DISTINCT - - 4 * + - MAX( DISTINCT + 24 ) AS col2, 30 + - 48 AS col2
----
-96
-18

skipif mysql # not compatible
query II rowsort label-6691
SELECT DISTINCT - - 4 * + - MAX ( DISTINCT + 24 ) AS col2, 30 + - 48 AS col2
----
-96
-18

query I rowsort
SELECT ALL + 43 * - CASE + 50 WHEN - 84 THEN NULL WHEN 9 THEN 52 WHEN + 27 * 37 + 45 THEN 73 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6693
SELECT COUNT( * ) DIV + - 25
----
0

skipif mysql # not compatible
query I rowsort label-6693
SELECT COUNT ( * ) / + - 25
----
0

query I rowsort
SELECT 71 - - + 94 * - ( + ( + 98 ) ) + 95 * + 21
----
-7146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6695
SELECT + CAST( + + 99 AS SIGNED ) * 32 + + - MAX( ALL - + 97 )
----
3265

skipif mysql # not compatible
query I rowsort label-6695
SELECT + CAST ( + + 99 AS INTEGER ) * 32 + + - MAX ( ALL - + 97 )
----
3265

query I rowsort
SELECT - 25 + 77 * - 5 AS col1
----
-410

onlyif mysql # aggregate syntax: 
query II rowsort label-6697
SELECT ALL 39 AS col1, + COALESCE ( + NULLIF ( + MIN( + 15 ), - 80 * 62 ), CASE - CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE 59 END WHEN 49 * - AVG ( DISTINCT 52 ) THEN NULL ELSE 88 END * 91 ) + - 31 * - 26
----
39
821

skipif mysql # not compatible
query II rowsort label-6697
SELECT ALL 39 AS col1, + COALESCE ( + NULLIF ( + MIN ( + 15 ), - 80 * 62 ), CASE - CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE 59 END WHEN 49 * - AVG ( DISTINCT 52 ) THEN NULL ELSE 88 END * 91 ) + - 31 * - 26
----
39
821

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL + CASE 76 WHEN + - COUNT( * ) THEN + 36 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL + CASE 76 WHEN + - COUNT ( * ) THEN + 36 ELSE NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6699
SELECT - 52 * 90 DIV 5 DIV - 32 + + - 67
----
-38

skipif mysql # not compatible
query I rowsort label-6699
SELECT - 52 * 90 / 5 / - 32 + + - 67
----
-38

query I rowsort
SELECT 9 * 62 AS col2
----
558

query I rowsort
SELECT ALL 91 + + + 16 + - + 39 * + - 81 - 53 * - 49 AS col1
----
5863

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6702
SELECT SUM( + + 46 ) + - 11 + + CASE + - 22 WHEN 63 + 38 / - ( MAX( ( - 2 ) ) ) THEN + 34 END * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6702
SELECT SUM ( + + 46 ) + - 11 + + CASE + - 22 WHEN 63 + 38 / - ( MAX ( ( - 2 ) ) ) THEN + 34 END * CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL 8 * + - ( - 45 ) AS col2
----
360

query I rowsort
SELECT 91 + + + 32 - - 0 + - 29
----
94

query I rowsort
SELECT ALL - 81 + + + 80 * - 76 AS col0
----
-6161

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6706
SELECT 65, AVG ( CAST( NULL AS SIGNED ) ) * 33 AS col2
----
65
NULL

skipif mysql # not compatible
query II rowsort label-6706
SELECT 65, AVG ( CAST ( NULL AS INTEGER ) ) * 33 AS col2
----
65
NULL

query I rowsort
SELECT ALL 96 + 68 + + + 41
----
205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6708
SELECT ALL COALESCE ( + 89, - CAST( NULL AS SIGNED ) + + 36 ) + ( 18 ) AS col2
----
107

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL COALESCE ( + 89, - CAST ( NULL AS INTEGER ) + + 36 ) + ( 18 ) AS col2
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6709
SELECT 82 DIV + 21 + - 79 * - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-6709
SELECT 82 / + 21 + - 79 * - COUNT ( * )
----
82

query I rowsort
SELECT ALL 89 * 51 * - 51 col2
----
-231489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6711
SELECT MAX( DISTINCT + + ( + ( - CAST( 83 AS SIGNED ) ) ) )
----
-83

skipif mysql # not compatible
query I rowsort label-6711
SELECT MAX ( DISTINCT + + ( + ( - CAST ( 83 AS INTEGER ) ) ) )
----
-83

query I rowsort
SELECT DISTINCT 7 + + 90
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6713
SELECT COUNT( DISTINCT - 67 ), CAST( NULL AS SIGNED ) col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6713
SELECT COUNT ( DISTINCT - 67 ), CAST ( NULL AS INTEGER ) col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT COUNT( + 58 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6714
SELECT COUNT ( + 58 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6715
SELECT 55 * COUNT( ALL 33 ) + - 55 AS col1, 12 * - 10 * - 94
----
0
11280

skipif mysql # not compatible
query II rowsort label-6715
SELECT 55 * COUNT ( ALL 33 ) + - 55 AS col1, 12 * - 10 * - 94
----
0
11280

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT ALL COUNT( * ) - - 94 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL COUNT ( * ) - - 94 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT COUNT( * ) * - ( + 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6717
SELECT COUNT ( * ) * - ( + 50 ) AS col2
----
-50

query I rowsort
SELECT 16 * 62
----
992

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6719
SELECT 10 DIV + 93 * ( - 47 ) + 7 + + + CAST( + 83 AS SIGNED ) col2
----
90

skipif mysql # not compatible
query I rowsort label-6719
SELECT 10 / + 93 * ( - 47 ) + 7 + + + CAST ( + 83 AS INTEGER ) col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT ALL COUNT( * ) - - NULLIF ( ( 73 ), ( + - 66 ) )
----
74

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL COUNT ( * ) - - NULLIF ( ( 73 ), ( + - 66 ) )
----
74

query I rowsort
SELECT NULLIF ( + ( - + 14 ), + 16 ) * 55
----
-770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6722
SELECT ALL + 74 * + 89 * + 53 * - - CAST( - + NULLIF ( CASE 57 WHEN - 3 - ( CAST( NULL AS SIGNED ) ) * - 23 THEN NULL WHEN - 76 THEN 60 + - 6 ELSE - 98 + - 11 END, - 54 * - 68 ) AS SIGNED ) AS col1
----
38047322

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL + 74 * + 89 * + 53 * - - CAST ( - + NULLIF ( CASE 57 WHEN - 3 - ( CAST ( NULL AS INTEGER ) ) * - 23 THEN NULL WHEN - 76 THEN 60 + - 6 ELSE - 98 + - 11 END, - 54 * - 68 ) AS INTEGER ) AS col1
----
38047322

query I rowsort
SELECT 19 * + CASE 64 WHEN ( 36 ) THEN NULL ELSE - 55 - - 43 END - + 1
----
-229

query II rowsort
SELECT 41 * + 84, + 40 * + 46 * 5 * - 31 AS col0
----
3444
-285200

query I rowsort
SELECT 48 + - 87 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-6726
SELECT 76 AS col1, 71 * - 6 * + + ( + NULLIF ( + 52, MIN( ALL 63 ) ) ) * - 84
----
76
1860768

skipif mysql # not compatible
query II rowsort label-6726
SELECT 76 AS col1, 71 * - 6 * + + ( + NULLIF ( + 52, MIN ( ALL 63 ) ) ) * - 84
----
76
1860768

query I rowsort
SELECT + 90 * + + 51 + - ( + 32 ) col1
----
4558

onlyif mysql # aggregate syntax: 
query II rowsort label-6728
SELECT - 94 AS col0, + COUNT( * ) + + + 66 * - - 14 + 72 - - + 39 * + 68
----
-94
3649

skipif mysql # not compatible
query II rowsort label-6728
SELECT - 94 AS col0, + COUNT ( * ) + + + 66 * - - 14 + 72 - - + 39 * + 68
----
-94
3649

query I rowsort
SELECT - 7 * 65 * 84 AS col2
----
-38220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6730
SELECT 83 + ( - 76 ) + NULLIF ( - - 55, - + 86 ) * CAST( 24 AS SIGNED ) AS col1
----
1327

skipif mysql # not compatible
query I rowsort label-6730
SELECT 83 + ( - 76 ) + NULLIF ( - - 55, - + 86 ) * CAST ( 24 AS INTEGER ) AS col1
----
1327

query I rowsort
SELECT ALL - 33 * - - 26 * 14 * - - 82 AS col2
----
-984984

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT + COUNT( * ) + - - MAX( 71 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6732
SELECT + COUNT ( * ) + - - MAX ( 71 ) AS col1
----
72

query II rowsort
SELECT + 66 AS col0, 97 col1
----
66
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT ALL ( + NULLIF ( - COUNT( * ), - 36 / + + ( - 13 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL ( + NULLIF ( - COUNT ( * ), - 36 / + + ( - 13 ) ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6735
SELECT CASE - - 16 WHEN 91 * + CASE WHEN CASE 33 WHEN 32 * CASE 84 * ( COUNT( * ) ) WHEN 53 THEN - 67 WHEN 84 THEN NULL ELSE NULL END - ( - CAST( + 28 AS SIGNED ) ) THEN 88 / - CASE + 4 WHEN - 30 THEN NULL WHEN 44 * + 85 + CAST( NULL AS SIGNED ) * - 20 THEN 0 * 60 + + 73 END END IS NOT NULL THEN + 62 END + 40 THEN NULL WHEN - 9 THEN COUNT( * ) END * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6735
SELECT CASE - - 16 WHEN 91 * + CASE WHEN CASE 33 WHEN 32 * CASE 84 * ( COUNT ( * ) ) WHEN 53 THEN - 67 WHEN 84 THEN NULL ELSE NULL END - ( - CAST ( + 28 AS INTEGER ) ) THEN 88 / - CASE + 4 WHEN - 30 THEN NULL WHEN 44 * + 85 + CAST ( NULL AS INTEGER ) * - 20 THEN 0 * 60 + + 73 END END IS NOT NULL THEN + 62 END + 40 THEN NULL WHEN - 9 THEN COUNT ( * ) END * + 47
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6736
SELECT - 65 + + + 69 DIV - - 7
----
-56

skipif mysql # not compatible
query I rowsort label-6736
SELECT - 65 + + + 69 / - - 7
----
-56

query I rowsort
SELECT 42 * 16 AS col1
----
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6738
SELECT ALL - NULLIF ( 92, - + 77 * CASE - 18 WHEN + - SUM( DISTINCT CASE 75 WHEN ( - 66 ) THEN + 71 + - 5 END ) * 17 THEN 49 WHEN COALESCE ( COUNT( * ), - CAST( NULL AS SIGNED ) ) THEN + 15 ELSE NULL END + 69 ) + 89
----
-3

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL - NULLIF ( 92, - + 77 * CASE - 18 WHEN + - SUM ( DISTINCT CASE 75 WHEN ( - 66 ) THEN + 71 + - 5 END ) * 17 THEN 49 WHEN COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) THEN + 15 ELSE NULL END + 69 ) + 89
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT DISTINCT + NULLIF ( - 4, 35 ) * 74 * - 26 + + + COUNT( * ) - - 61 * COUNT( * ) * + 33 AS col0
----
9710

skipif mysql # not compatible
query I rowsort label-6739
SELECT DISTINCT + NULLIF ( - 4, 35 ) * 74 * - 26 + + + COUNT ( * ) - - 61 * COUNT ( * ) * + 33 AS col0
----
9710

query I rowsort
SELECT DISTINCT + - 85 + + 30
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6741
SELECT DISTINCT - 48 + CAST( NULL AS DECIMAL ) * CASE COUNT( ALL + 19 ) WHEN - CASE 73 WHEN - 98 THEN NULL WHEN - 0 * 68 THEN 66 + - 13 ELSE NULL END / CAST( NULL AS SIGNED ) THEN COUNT( * ) END * CASE 87 + + NULLIF ( 0, - ( NULLIF ( 0, 43 * 42 ) ) ) WHEN AVG ( ALL + ( 17 ) ) THEN NULL WHEN COUNT( * ) THEN - 79 * + SUM( DISTINCT 72 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT - 48 + CAST ( NULL AS REAL ) * CASE COUNT ( ALL + 19 ) WHEN - CASE 73 WHEN - 98 THEN NULL WHEN - 0 * 68 THEN 66 + - 13 ELSE NULL END / CAST ( NULL AS INTEGER ) THEN COUNT ( * ) END * CASE 87 + + NULLIF ( 0, - ( NULLIF ( 0, 43 * 42 ) ) ) WHEN AVG ( ALL + ( 17 ) ) THEN NULL WHEN COUNT ( * ) THEN - 79 * + SUM ( DISTINCT 72 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 37 + 64
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6743
SELECT DISTINCT NULLIF ( - 87, 47 ) DIV 71 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT NULLIF ( - 87, 47 ) / 71 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6744
SELECT - 2 + + + COUNT( DISTINCT 1 ) AS col0, - 1 AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6744
SELECT - 2 + + + COUNT ( DISTINCT 1 ) AS col0, - 1 AS col2
----
-1
-1

query I rowsort
SELECT - ( + ( + 15 ) ) + - 27 + - - 90 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT DISTINCT COALESCE ( + MAX( + - 69 ), + 71 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT COALESCE ( + MAX ( + - 69 ), + 71 ) AS col2
----
-69

query I rowsort
SELECT DISTINCT CASE ( + 95 ) WHEN + 0 THEN 1 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT + MAX( + + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-6748
SELECT + MAX ( + + 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT 87 * - - COUNT( * ) * + 5 + 75 AS col2
----
510

skipif mysql # not compatible
query I rowsort label-6749
SELECT 87 * - - COUNT ( * ) * + 5 + 75 AS col2
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT ALL COUNT( * ) * - 29 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL COUNT ( * ) * - 29 AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6751
SELECT DISTINCT CASE - 14 WHEN + 10 * - 12 * - - 4 + - CAST( 94 AS SIGNED ) - 47 * 8 THEN 38 * 16 ELSE + 34 + CAST( NULL AS SIGNED ) END * 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT CASE - 14 WHEN + 10 * - 12 * - - 4 + - CAST ( 94 AS INTEGER ) - 47 * 8 THEN 38 * 16 ELSE + 34 + CAST ( NULL AS INTEGER ) END * 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6752
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col2, + 0
----
1
0

skipif mysql # not compatible
query II rowsort label-6752
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col2, + 0
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6753
SELECT - CAST( NULL AS SIGNED ) * - + AVG ( CAST( NULL AS SIGNED ) ) + - MAX( 8 ) - 3 * - + 78 * - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT - CAST ( NULL AS INTEGER ) * - + AVG ( CAST ( NULL AS INTEGER ) ) + - MAX ( 8 ) - 3 * - + 78 * - 25 AS col0
----
NULL

query I rowsort
SELECT + 94 * - - 88 AS col2
----
8272

query I rowsort
SELECT - 5 * + 39
----
-195

query I rowsort
SELECT 24 * 8 * - 79 + - 42 AS col0
----
-15210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6757
SELECT CASE 63 WHEN + + 17 + - - 65 + - - 89 THEN NULL WHEN + 52 THEN - 91 * 14 + COALESCE ( + AVG ( - 0 ), - COUNT( * ) * - ( - 71 * ( ( AVG ( - 14 ) ) ) ) + 46, 88 + - 3 ) * - CASE + CASE COUNT( * ) WHEN + 9 + + 30 / 99 THEN NULL WHEN 39 - - COALESCE ( - CAST( + 77 AS SIGNED ) - - AVG ( + 20 ), - COUNT( DISTINCT - ( - 65 ) ) ) * + 25 THEN - 7 END WHEN + 62 + 5 * 87 THEN + 48 ELSE + 37 * 48 + 52 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT CASE 63 WHEN + + 17 + - - 65 + - - 89 THEN NULL WHEN + 52 THEN - 91 * 14 + COALESCE ( + AVG ( - 0 ), - COUNT ( * ) * - ( - 71 * ( ( AVG ( - 14 ) ) ) ) + 46, 88 + - 3 ) * - CASE + CASE COUNT ( * ) WHEN + 9 + + 30 / 99 THEN NULL WHEN 39 - - COALESCE ( - CAST ( + 77 AS INTEGER ) - - AVG ( + 20 ), - COUNT ( DISTINCT - ( - 65 ) ) ) * + 25 THEN - 7 END WHEN + 62 + 5 * 87 THEN + 48 ELSE + 37 * 48 + 52 END END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT + 96 * + 20 * - - COUNT( * ) * - 59 + 9 * - + 90 + 80 + ( - 24 ) * - COUNT( ALL 23 )
----
-113986

skipif mysql # not compatible
query I rowsort label-6758
SELECT + 96 * + 20 * - - COUNT ( * ) * - 59 + 9 * - + 90 + 80 + ( - 24 ) * - COUNT ( ALL 23 )
----
-113986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6759
SELECT ALL CAST( + 74 AS SIGNED ) DIV + 91 + + - 42 DIV - 74 + MIN( DISTINCT + 12 ) * 84 AS col1
----
1008

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL CAST ( + 74 AS INTEGER ) / + 91 + + - 42 / - 74 + MIN ( DISTINCT + 12 ) * 84 AS col1
----
1008

onlyif mysql # DIV for integer division: 
query I rowsort label-6760
SELECT + 27 DIV + 4
----
6

skipif mysql # not compatible
query I rowsort label-6760
SELECT + 27 / + 4
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6761
SELECT DISTINCT + 85 DIV + NULLIF ( 34, + + 75 * + COUNT( * ) * - 85 + - ( + 59 ) )
----
2

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT + 85 / + NULLIF ( 34, + + 75 * + COUNT ( * ) * - 85 + - ( + 59 ) )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6762
SELECT + CAST( COUNT( * ) AS SIGNED ) * - COALESCE ( - SUM( ALL 19 ), - + 68 * - 13 + 74 * + COUNT( * ) + 30 ) col1
----
19

skipif mysql # not compatible
query I rowsort label-6762
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * - COALESCE ( - SUM ( ALL 19 ), - + 68 * - 13 + 74 * + COUNT ( * ) + 30 ) col1
----
19

query I rowsort
SELECT ALL 24 * + - 95
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT + - COUNT( * ) * - 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-6764
SELECT + - COUNT ( * ) * - 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT + COUNT( NULLIF ( + + 3, + ( + + 68 ) - - 17 ) ) + - 36
----
-35

skipif mysql # not compatible
query I rowsort label-6765
SELECT + COUNT ( NULLIF ( + + 3, + ( + + 68 ) - - 17 ) ) + - 36
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-6766
SELECT - + 66 * - 34 AS col0, MIN( 10 ) AS col1
----
2244
10

skipif mysql # not compatible
query II rowsort label-6766
SELECT - + 66 * - 34 AS col0, MIN ( 10 ) AS col1
----
2244
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6767
SELECT - ( - + CASE + + CAST( 35 AS SIGNED ) WHEN + COUNT( * ) - - 99 + - 92 THEN + COUNT( * ) / 90 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6767
SELECT - ( - + CASE + + CAST ( 35 AS INTEGER ) WHEN + COUNT ( * ) - - 99 + - 92 THEN + COUNT ( * ) / 90 END ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 58 + + + 97 - 58 AS col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-6769
SELECT ALL 13 + + + 35 DIV - ( + 8 ) - + - 81 * 69
----
5598

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL 13 + + + 35 / - ( + 8 ) - + - 81 * 69
----
5598

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT + 57 + - MIN( ALL 37 )
----
20

skipif mysql # not compatible
query I rowsort label-6770
SELECT + 57 + - MIN ( ALL 37 )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6771
SELECT ALL - - 86 + + - CAST( NULL AS SIGNED ) * - + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL - - 86 + + - CAST ( NULL AS INTEGER ) * - + 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT + - 44 + - 55 * - COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6772
SELECT + - 44 + - 55 * - COUNT ( * ) AS col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6773
SELECT - - 39 - 10 DIV COALESCE ( - 63, - + 70, - 76 * + + COALESCE ( 41, 34 * 34 + + AVG ( + ( + 74 ) ) * - 86 ) + + 72 * + 20 + COUNT( * ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6773
SELECT - - 39 - 10 / COALESCE ( - 63, - + 70, - 76 * + + COALESCE ( 41, 34 * 34 + + AVG ( + ( + 74 ) ) * - 86 ) + + 72 * + 20 + COUNT ( * ) ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6774
SELECT ALL COUNT( * ), - ( - 18 ) + - + COUNT( * ) + 21 * 26 - 20 * + 2 AS col2
----
1
523

skipif mysql # not compatible
query II rowsort label-6774
SELECT ALL COUNT ( * ), - ( - 18 ) + - + COUNT ( * ) + 21 * 26 - 20 * + 2 AS col2
----
1
523

onlyif mysql # aggregate syntax: 
query II rowsort label-6775
SELECT ALL + COUNT( * ) - - 11 * + + 88 - - 54 AS col1, - 1 AS col1
----
1023
-1

skipif mysql # not compatible
query II rowsort label-6775
SELECT ALL + COUNT ( * ) - - 11 * + + 88 - - 54 AS col1, - 1 AS col1
----
1023
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6776
SELECT + CAST( + NULLIF ( + 66, 21 + - + 50 ) AS SIGNED ) + - 95 - + 91 + - COUNT( * ) * + COUNT( * ) AS col0
----
-121

skipif mysql # not compatible
query I rowsort label-6776
SELECT + CAST ( + NULLIF ( + 66, 21 + - + 50 ) AS INTEGER ) + - 95 - + 91 + - COUNT ( * ) * + COUNT ( * ) AS col0
----
-121

query I rowsort
SELECT - 78 * + 33 AS col2
----
-2574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6778
SELECT - 36 + CAST( NULL AS SIGNED ) / 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6778
SELECT - 36 + CAST ( NULL AS INTEGER ) / 53 AS col1
----
NULL

query I rowsort
SELECT - 48 + + 0 AS col0
----
-48

query I rowsort
SELECT ALL + 92 * 5 AS col1
----
460

query I rowsort
SELECT - 24 + + + 37 col0
----
13

query I rowsort
SELECT ALL NULLIF ( + 10, + 44 ) - - + 40 + - 95 AS col1
----
-45

query I rowsort
SELECT - 0 + NULLIF ( + - 89, - 91 * - 92 * + + 38 )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-6784
SELECT DISTINCT + COUNT( * ) * - 64 * 60 AS col2, 80 * 41 AS col2
----
-3840
3280

skipif mysql # not compatible
query II rowsort label-6784
SELECT DISTINCT + COUNT ( * ) * - 64 * 60 AS col2, 80 * 41 AS col2
----
-3840
3280

query I rowsort
SELECT ALL - 47 * + 23
----
-1081

query II rowsort
SELECT + 98, 48 AS col2
----
98
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT - 64 * - ( + ( 45 ) ) + + + COUNT( * ) AS col0
----
2881

skipif mysql # not compatible
query I rowsort label-6787
SELECT - 64 * - ( + ( 45 ) ) + + + COUNT ( * ) AS col0
----
2881

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6788
SELECT ALL + 77, 86 + CAST( 87 AS SIGNED ) - + + 71 - - + 32 + + 2 * + ( + 64 ) DIV + 50 + 31 * 60 AS col0
----
77
1996

skipif mysql # not compatible
query II rowsort label-6788
SELECT ALL + 77, 86 + CAST ( 87 AS INTEGER ) - + + 71 - - + 32 + + 2 * + ( + 64 ) / + 50 + 31 * 60 AS col0
----
77
1996

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT - 6 * - 61 * - + COUNT( * ) col2
----
-366

skipif mysql # not compatible
query I rowsort label-6789
SELECT - 6 * - 61 * - + COUNT ( * ) col2
----
-366

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6790
SELECT + MIN( + 59 ) DIV - - 75 + + 24 AS col2, 58 + - + 79 AS col0
----
24
-21

skipif mysql # not compatible
query II rowsort label-6790
SELECT + MIN ( + 59 ) / - - 75 + + 24 AS col2, 58 + - + 79 AS col0
----
24
-21

query I rowsort
SELECT - 82 * + 13 * + 30 * + + 33 col2
----
-1055340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6792
SELECT - MIN( + + CAST( NULL AS SIGNED ) ) * 75 * + COUNT( * ) AS col2, 84 + + 81
----
NULL
165

skipif mysql # not compatible
query II rowsort label-6792
SELECT - MIN ( + + CAST ( NULL AS INTEGER ) ) * 75 * + COUNT ( * ) AS col2, 84 + + 81
----
NULL
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6793
SELECT DISTINCT + CASE 69 WHEN + ( - 96 ) * + ( + CAST( NULL AS SIGNED ) ) THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT + CASE 69 WHEN + ( - 96 ) * + ( + CAST ( NULL AS INTEGER ) ) THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6794
SELECT CAST( NULL AS SIGNED ) AS col0, - 48 AS col2
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-6794
SELECT CAST ( NULL AS INTEGER ) AS col0, - 48 AS col2
----
NULL
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT - 45 * + 20 + + 65 + + + COUNT( * ) * - 46 AS col0
----
-881

skipif mysql # not compatible
query I rowsort label-6795
SELECT - 45 * + 20 + + 65 + + + COUNT ( * ) * - 46 AS col0
----
-881

query I rowsort
SELECT - 16 * + 62 AS col0
----
-992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6797
SELECT ALL + + COUNT( * ) DIV - 32 + + ( + 77 ) * + ( - COUNT( * ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL + + COUNT ( * ) / - 32 + + ( + 77 ) * + ( - COUNT ( * ) ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT ALL 55 * + CASE - 17 WHEN + COUNT( * ) THEN - ( - 88 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL 55 * + CASE - 17 WHEN + COUNT ( * ) THEN - ( - 88 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6799
SELECT ALL + 88 DIV - 16 + 51 + - 57
----
-11

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL + 88 / - 16 + 51 + - 57
----
-11

query I rowsort
SELECT - - 50 * 54
----
2700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6801
SELECT - ( + 44 ) * + CAST( NULL AS SIGNED ) * - 89 - - 91 + - NULLIF ( + 48, - 83 ) + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT - ( + 44 ) * + CAST ( NULL AS INTEGER ) * - 89 - - 91 + - NULLIF ( + 48, - 83 ) + + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT + + MAX( DISTINCT - 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6802
SELECT + + MAX ( DISTINCT - 50 ) AS col2
----
-50

query II rowsort
SELECT ALL - NULLIF ( + - 69, + - 65 ) AS col2, - 52 + 90 + + 44
----
69
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6804
SELECT + + CAST( - AVG ( ALL + 89 ) AS SIGNED ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-6804
SELECT + + CAST ( - AVG ( ALL + 89 ) AS INTEGER ) col0
----
-89

query I rowsort
SELECT 23 + 21 * - 21
----
-418

query I rowsort
SELECT ALL 31 + 54 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT + MIN( 37 ) col0
----
37

skipif mysql # not compatible
query I rowsort label-6807
SELECT + MIN ( 37 ) col0
----
37

query I rowsort
SELECT ALL - + 43 + + - 71
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6809
SELECT DISTINCT 76 DIV - COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT 76 / - COUNT ( * ) AS col2
----
-76

query I rowsort
SELECT ALL - ( + + 70 ) - + 56 - 33 AS col0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT + COUNT( ALL - 56 ) * + 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6811
SELECT + COUNT ( ALL - 56 ) * + 3 AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6812
SELECT ALL + 79 DIV + + 89
----
0

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL + 79 / + + 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT + 63 + + COUNT( * ) * - 59 + 1 * COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-6813
SELECT + 63 + + COUNT ( * ) * - 59 + 1 * COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6814
SELECT ALL COUNT( * ) - - 31 * 25 AS col2, 80 AS col1
----
776
80

skipif mysql # not compatible
query II rowsort label-6814
SELECT ALL COUNT ( * ) - - 31 * 25 AS col2, 80 AS col1
----
776
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT DISTINCT NULLIF ( ( + CASE - - 74 WHEN - + 74 + + 21 + + 25 THEN NULL ELSE 88 * + ( + 84 ) END ), ( + COUNT( * ) ) ) * 63
----
465696

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT NULLIF ( ( + CASE - - 74 WHEN - + 74 + + 21 + + 25 THEN NULL ELSE 88 * + ( + 84 ) END ), ( + COUNT ( * ) ) ) * 63
----
465696

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT NULLIF ( 93, + CASE - NULLIF ( + 3, + - 53 - + 91 ) WHEN + 73 THEN NULL ELSE - + 69 * + 24 + 82 / COUNT( * ) END ) * 41
----
3813

skipif mysql # not compatible
query I rowsort label-6816
SELECT NULLIF ( 93, + CASE - NULLIF ( + 3, + - 53 - + 91 ) WHEN + 73 THEN NULL ELSE - + 69 * + 24 + 82 / COUNT ( * ) END ) * 41
----
3813

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT COUNT( * ) + + + SUM( ALL - 27 )
----
-26

skipif mysql # not compatible
query I rowsort label-6817
SELECT COUNT ( * ) + + + SUM ( ALL - 27 )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6818
SELECT CAST( NULL AS SIGNED ) / + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6818
SELECT CAST ( NULL AS INTEGER ) / + 14
----
NULL

query I rowsort
SELECT NULLIF ( 15, - + 52 ) + + 88 * 47
----
4151

query I rowsort
SELECT ALL 23 + + 20 col1
----
43

query I rowsort
SELECT ALL - 52 * + 0 * + + 43
----
0

query I rowsort
SELECT ALL NULLIF ( - 29, + 70 + + + 56 + - 26 * - 84 * 92 / - 48 ) + + 26 + 10
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6823
SELECT ALL - + ( COUNT( 99 ) ) * + + CASE 36 WHEN COUNT( * ) THEN + 66 WHEN - 62 + + ( + 8 ) THEN NULLIF ( 94, ( 58 ) + ( 57 + + 18 ) * + CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL - + ( COUNT ( 99 ) ) * + + CASE 36 WHEN COUNT ( * ) THEN + 66 WHEN - 62 + + ( + 8 ) THEN NULLIF ( 94, ( 58 ) + ( 57 + + 18 ) * + CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT - 24 * 20 + + 93
----
-387

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT + + 69 * 66 + + + COUNT( * ) - - 14 * + + SUM( + + 85 ) AS col2
----
5745

skipif mysql # not compatible
query I rowsort label-6825
SELECT + + 69 * 66 + + + COUNT ( * ) - - 14 * + + SUM ( + + 85 ) AS col2
----
5745

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6826
SELECT CASE - + 10 WHEN + 14 THEN + 80 * - 36 + + 91 + + + CASE + + 44 WHEN 72 * 18 THEN MAX( 8 ) + 59 * 71 WHEN 24 THEN NULL ELSE NULL END * + 26 WHEN - CAST( CASE + 15 WHEN 29 + 58 THEN - 60 WHEN + 14 THEN 10 END AS DECIMAL ) THEN NULL END * MAX( 15 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6826
SELECT CASE - + 10 WHEN + 14 THEN + 80 * - 36 + + 91 + + + CASE + + 44 WHEN 72 * 18 THEN MAX ( 8 ) + 59 * 71 WHEN 24 THEN NULL ELSE NULL END * + 26 WHEN - CAST ( CASE + 15 WHEN 29 + 58 THEN - 60 WHEN + 14 THEN 10 END AS REAL ) THEN NULL END * MAX ( 15 ) AS col1
----
NULL

query I rowsort
SELECT - ( + + 11 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT - CASE + - 53 WHEN COUNT( * ) THEN - 76 + 95 WHEN + - COUNT( * ) * + 43 + + - 87 * - + 70 THEN - 21 ELSE + COUNT( * ) END + NULLIF ( 26, - 49 * - COUNT( * ) - 76 * 40 )
----
25

skipif mysql # not compatible
query I rowsort label-6828
SELECT - CASE + - 53 WHEN COUNT ( * ) THEN - 76 + 95 WHEN + - COUNT ( * ) * + 43 + + - 87 * - + 70 THEN - 21 ELSE + COUNT ( * ) END + NULLIF ( 26, - 49 * - COUNT ( * ) - 76 * 40 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT COALESCE ( + 15, 24 + + - 34 * 79 ) * - - COALESCE ( - 13, - + COUNT( * ) * - 91 )
----
-195

skipif mysql # not compatible
query I rowsort label-6829
SELECT COALESCE ( + 15, 24 + + - 34 * 79 ) * - - COALESCE ( - 13, - + COUNT ( * ) * - 91 )
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6830
SELECT + MAX( 44 ) * - CASE - 52 WHEN + CAST( NULL AS SIGNED ) THEN - 21 * + 8 * 33 / + 56 WHEN - 57 THEN NULL WHEN 31 THEN + COALESCE ( - COUNT( * ), 8 ) * - 49 + 29 ELSE NULL END * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT + MAX ( 44 ) * - CASE - 52 WHEN + CAST ( NULL AS INTEGER ) THEN - 21 * + 8 * 33 / + 56 WHEN - 57 THEN NULL WHEN 31 THEN + COALESCE ( - COUNT ( * ), 8 ) * - 49 + 29 ELSE NULL END * 3
----
NULL

query I rowsort
SELECT ALL - 17 - + ( 47 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT COALESCE ( 60, - COUNT( * ), - 75 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6832
SELECT COALESCE ( 60, - COUNT ( * ), - 75 ) AS col1
----
60

query I rowsort
SELECT NULLIF ( 53, - 21 ) + + - 82 + + 69
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT DISTINCT MAX( DISTINCT - + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT MAX ( DISTINCT - + 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL - 19 * - + COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL - 19 * - + COUNT ( * ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT DISTINCT MIN( - - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-6836
SELECT DISTINCT MIN ( - - 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT - MAX( DISTINCT - 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6837
SELECT - MAX ( DISTINCT - 25 ) AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT DISTINCT 42 DIV + - 94
----
0

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT 42 / + - 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6839
SELECT COUNT( * ) DIV - 54 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6839
SELECT COUNT ( * ) / - 54 * COUNT ( * )
----
0

query I rowsort
SELECT 16 * - + 76
----
-1216

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT ALL MIN( + + 75 ) * + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL MIN ( + + 75 ) * + COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT NULLIF ( + + 44, CASE + 1 WHEN 82 * - 32 THEN - 21 * + + 88 + 69 * 76 ELSE COUNT( * ) END + 73 ) * 9
----
396

skipif mysql # not compatible
query I rowsort label-6842
SELECT NULLIF ( + + 44, CASE + 1 WHEN 82 * - 32 THEN - 21 * + + 88 + 69 * 76 ELSE COUNT ( * ) END + 73 ) * 9
----
396

query I rowsort
SELECT DISTINCT 70 * + 72 * + NULLIF ( 90, - 85 )
----
453600

query I rowsort
SELECT ALL 29 + - 82 - - - 73 * - 41
----
2940

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT ALL 5 + 56 * - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL 5 + 56 * - COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT DISTINCT 34 + + + COUNT( * ) + - 89
----
-54

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT 34 + + + COUNT ( * ) + - 89
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-6847
SELECT ALL + COUNT( + 71 ) + + 64 + - 93 * - + COUNT( * ), - 26 AS col0
----
158
-26

skipif mysql # not compatible
query II rowsort label-6847
SELECT ALL + COUNT ( + 71 ) + + 64 + - 93 * - + COUNT ( * ), - 26 AS col0
----
158
-26

query I rowsort
SELECT ALL 69 + + 82 + - - 55 * + 29
----
1746

query I rowsort
SELECT - 34 + + 1
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT ALL - 73 * + 75 - - 13 + - + 47 DIV - 79 + - 71
----
-5533

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL - 73 * + 75 - - 13 + - + 47 / - 79 + - 71
----
-5533

query I rowsort
SELECT ALL + + ( + 74 ) AS col0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6852
SELECT - + 34 DIV + 20
----
-1

skipif mysql # not compatible
query I rowsort label-6852
SELECT - + 34 / + 20
----
-1

query I rowsort
SELECT - 9 * - 92 * 5 AS col0
----
4140

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT ALL + - 89 * + + CASE - + SUM( - 77 ) WHEN 49 THEN - 66 ELSE NULL END - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL + - 89 * + + CASE - + SUM ( - 77 ) WHEN 49 THEN - 66 ELSE NULL END - 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6855
SELECT + 4 AS col2, SUM( DISTINCT + - 52 ) col2
----
4
-52

skipif mysql # not compatible
query II rowsort label-6855
SELECT + 4 AS col2, SUM ( DISTINCT + - 52 ) col2
----
4
-52

query I rowsort
SELECT + 67 - + 43 + 25
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6857
SELECT - 36 DIV - MIN( ALL + 92 ) - - 97
----
97

skipif mysql # not compatible
query I rowsort label-6857
SELECT - 36 / - MIN ( ALL + 92 ) - - 97
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6858
SELECT + 76 * + + 72 + + - COUNT( * ) AS col0, 38 * - 47 col0
----
5471
-1786

skipif mysql # not compatible
query II rowsort label-6858
SELECT + 76 * + + 72 + + - COUNT ( * ) AS col0, 38 * - 47 col0
----
5471
-1786

query II rowsort
SELECT + COALESCE ( - 54, + 33 ) AS col0, 82 col0
----
-54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT 77 * - + MAX( DISTINCT + NULLIF ( - 52, 20 ) ) + 64 * - - 72
----
8612

skipif mysql # not compatible
query I rowsort label-6860
SELECT 77 * - + MAX ( DISTINCT + NULLIF ( - 52, 20 ) ) + 64 * - - 72
----
8612

query I rowsort
SELECT ALL + + ( - ( + 61 ) )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6862
SELECT DISTINCT + - CAST( 74 AS SIGNED ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT + - CAST ( 74 AS INTEGER ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT DISTINCT - MAX( DISTINCT 76 ) * + + 24
----
-1824

skipif mysql # not compatible
query I rowsort label-6863
SELECT DISTINCT - MAX ( DISTINCT 76 ) * + + 24
----
-1824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6864
SELECT ALL CASE 26 WHEN 96 THEN + CAST( NULL AS SIGNED ) WHEN + - SUM( 86 ) * - COUNT( * ) THEN + 75 WHEN 95 + + - MIN( DISTINCT + 71 ) * + COUNT( * ) THEN 6 ELSE 22 END AS col2
----
22

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL CASE 26 WHEN 96 THEN + CAST ( NULL AS INTEGER ) WHEN + - SUM ( 86 ) * - COUNT ( * ) THEN + 75 WHEN 95 + + - MIN ( DISTINCT + 71 ) * + COUNT ( * ) THEN 6 ELSE 22 END AS col2
----
22

query I rowsort
SELECT ALL 72 * + 66 * 62
----
294624

query I rowsort
SELECT ALL - 88 * + + 60 * - 47
----
248160

query II rowsort
SELECT - 83, - 20 col1
----
-83
-20

query I rowsort
SELECT ALL + ( - 7 ) + + 27
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6869
SELECT - 42 DIV 11 col1
----
-3

skipif mysql # not compatible
query I rowsort label-6869
SELECT - 42 / 11 col1
----
-3

query I rowsort
SELECT + 47 * + 26
----
1222

query I rowsort
SELECT - 59 - + + ( - + 32 )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-6872
SELECT ALL 29 + - 39 DIV + + 75 col1
----
29

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL 29 + - 39 / + + 75 col1
----
29

query II rowsort
SELECT 38 AS col1, 90 * 46 AS col2
----
38
4140

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT ALL + COUNT( * ) + - 67 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL + COUNT ( * ) + - 67 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT - 12 * + CASE - - 16 WHEN + 37 + - COUNT( * ) THEN + 26 * - - MAX( DISTINCT 70 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT - 12 * + CASE - - 16 WHEN + 37 + - COUNT ( * ) THEN + 26 * - - MAX ( DISTINCT 70 ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6876
SELECT ALL 23 DIV 11 * - - 88
----
176

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL 23 / 11 * - - 88
----
176

query II rowsort
SELECT DISTINCT ( 71 ) AS col1, + 33 * 79 AS col1
----
71
2607

query I rowsort
SELECT - COALESCE ( - 57, 84 * 4 * - - 15 ) col1
----
57

query I rowsort
SELECT - 76 + 81 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6880
SELECT + CASE + SUM( + - 27 ) WHEN - 56 * 75 THEN + 60 + + COUNT( * ) WHEN - - 72 THEN + CAST( - 97 AS SIGNED ) ELSE - 14 * CAST( 16 AS SIGNED ) + ( + 24 ) * ( 77 ) END * - CAST( 67 AS SIGNED ) AS col1
----
-108808

skipif mysql # not compatible
query I rowsort label-6880
SELECT + CASE + SUM ( + - 27 ) WHEN - 56 * 75 THEN + 60 + + COUNT ( * ) WHEN - - 72 THEN + CAST ( - 97 AS INTEGER ) ELSE - 14 * CAST ( 16 AS INTEGER ) + ( + 24 ) * ( 77 ) END * - CAST ( 67 AS INTEGER ) AS col1
----
-108808

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6881
SELECT ALL 87 DIV - 46, 81 + - 44 + 67 * - + NULLIF ( + + 27, - COUNT( * ) * - + 82 + - 72 + 60 ) - - 32 AS col0
----
-1
-1740

skipif mysql # not compatible
query II rowsort label-6881
SELECT ALL 87 / - 46, 81 + - 44 + 67 * - + NULLIF ( + + 27, - COUNT ( * ) * - + 82 + - 72 + 60 ) - - 32 AS col0
----
-1
-1740

query II rowsort
SELECT 38 AS col2, ( - + 80 ) AS col1
----
38
-80

query I rowsort
SELECT - 52 + - - 26 AS col2
----
-26

query II rowsort
SELECT - - 31, 24 AS col2
----
31
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6885
SELECT + CAST( NULL AS SIGNED ) AS col0, 8 AS col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-6885
SELECT + CAST ( NULL AS INTEGER ) AS col0, 8 AS col1
----
NULL
8

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6886
SELECT - 31 AS col1, - CASE - 68 WHEN - + 12 THEN NULL WHEN 65 + - 63 - - 71 THEN ( - + 27 ) / - 37 * - - CAST( - 99 AS DECIMAL ) END * - 50 + - 1 * - AVG ( + 63 * 64 ) AS col0
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-6886
SELECT - 31 AS col1, - CASE - 68 WHEN - + 12 THEN NULL WHEN 65 + - 63 - - 71 THEN ( - + 27 ) / - 37 * - - CAST ( - 99 AS REAL ) END * - 50 + - 1 * - AVG ( + 63 * 64 ) AS col0
----
-31
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6887
SELECT + + NULLIF ( + 42, - - 82 ) DIV - NULLIF ( - 9, 62 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6887
SELECT + + NULLIF ( + 42, - - 82 ) / - NULLIF ( - 9, 62 ) AS col0
----
4

query I rowsort
SELECT ALL + 44 * + - 84 * 29
----
-107184

query I rowsort
SELECT 38 * - - 89 + 5
----
3387

query II rowsort
SELECT ALL + - 41, + NULLIF ( - + 54, - + 77 ) AS col2
----
-41
-54

query II rowsort
SELECT ALL + - COALESCE ( + ( - + 95 ), + + 71 ) AS col1, 15
----
95
15

query I rowsort
SELECT ALL + - CASE - 27 WHEN - 38 + + 72 * - 45 THEN + 30 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT ALL 68 * + + NULLIF ( + MAX( ALL + 25 ), - + 48 ) col0
----
1700

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL 68 * + + NULLIF ( + MAX ( ALL + 25 ), - + 48 ) col0
----
1700

onlyif mysql # aggregate syntax: 
query III rowsort label-6894
SELECT - ( COUNT( * ) ) AS col2, 4 * - 19 * - 22 * - - NULLIF ( - 31, - 93 ) * + - 35, COUNT( * ) AS col1
----
-1
1814120
1

skipif mysql # not compatible
query III rowsort label-6894
SELECT - ( COUNT ( * ) ) AS col2, 4 * - 19 * - 22 * - - NULLIF ( - 31, - 93 ) * + - 35, COUNT ( * ) AS col1
----
-1
1814120
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT + 77 * NULLIF ( + 14, + 7 / - 35 ) + - - COUNT( * )
----
1079

skipif mysql # not compatible
query I rowsort label-6895
SELECT + 77 * NULLIF ( + 14, + 7 / - 35 ) + - - COUNT ( * )
----
1079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6896
SELECT + CAST( NULL AS DECIMAL ) - + CAST( COUNT( * ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT + CAST ( NULL AS REAL ) - + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ALL + + COUNT( DISTINCT + 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + + COUNT ( DISTINCT + 33 ) AS col1
----
1

query II rowsort
SELECT + 10 col1, 94 AS col1
----
10
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6899
SELECT CAST( + - 63 AS SIGNED ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6899
SELECT CAST ( + - 63 AS INTEGER ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT + + 11 * - + 81 + - MIN( NULLIF ( - 7, - - 1 ) ) - + + 11 * + COALESCE ( - 43, 47 + + 4 * + COUNT( * ) ) AS col1
----
-411

skipif mysql # not compatible
query I rowsort label-6900
SELECT + + 11 * - + 81 + - MIN ( NULLIF ( - 7, - - 1 ) ) - + + 11 * + COALESCE ( - 43, 47 + + 4 * + COUNT ( * ) ) AS col1
----
-411

onlyif mysql # aggregate syntax: 
query II rowsort label-6901
SELECT - + COUNT( * ) * + 27, + 17 AS col2
----
-27
17

skipif mysql # not compatible
query II rowsort label-6901
SELECT - + COUNT ( * ) * + 27, + 17 AS col2
----
-27
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6902
SELECT ALL + 0 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL + 0 / + 56
----
0

query II rowsort
SELECT 81, 80 AS col2
----
81
80

query I rowsort
SELECT DISTINCT + + 98 * + 25 AS col2
----
2450

query I rowsort
SELECT + + 62 + + 53 + 1 + 95
----
211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6906
SELECT ALL + CASE + 66 WHEN - ( - + 68 ) THEN - + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN - 33 ELSE NULL END / - + 66 + - 80 * 59 + - CAST( NULL AS SIGNED ) + 45 * 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL + CASE + 66 WHEN - ( - + 68 ) THEN - + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN - 33 ELSE NULL END / - + 66 + - 80 * 59 + - CAST ( NULL AS INTEGER ) + 45 * 37 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT + NULLIF ( + + 40, + + CAST( NULL AS SIGNED ) ) * + - 26 + - 23 AS col0
----
-1063

skipif mysql # not compatible
query I rowsort label-6907
SELECT + NULLIF ( + + 40, + + CAST ( NULL AS INTEGER ) ) * + - 26 + - 23 AS col0
----
-1063

query I rowsort
SELECT DISTINCT + 34 * - 4
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT DISTINCT CASE COUNT( * ) WHEN + 63 THEN - 51 WHEN - 98 THEN - COUNT( * ) END * + 13 / + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT CASE COUNT ( * ) WHEN + 63 THEN - 51 WHEN - 98 THEN - COUNT ( * ) END * + 13 / + 10 AS col1
----
NULL

query I rowsort
SELECT + 90 + 10 AS col0
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6911
SELECT - COUNT( ALL - CAST( + - 50 AS SIGNED ) ) * - ( 82 ) DIV + + 85
----
0

skipif mysql # not compatible
query I rowsort label-6911
SELECT - COUNT ( ALL - CAST ( + - 50 AS INTEGER ) ) * - ( 82 ) / + + 85
----
0

query I rowsort
SELECT ALL - COALESCE ( - 98, - 94 ) * - - 10 AS col1
----
980

query I rowsort
SELECT + 66 + - - 1 * 92 AS col1
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT NULLIF ( 23, + 61 * COALESCE ( + ( ( + 37 ) ), + 4 * - MIN( 46 ) + - - 45 + COUNT( * ) ) + - 66 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6914
SELECT NULLIF ( 23, + 61 * COALESCE ( + ( ( + 37 ) ), + 4 * - MIN ( 46 ) + - - 45 + COUNT ( * ) ) + - 66 ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6915
SELECT ALL + CASE + COUNT( ALL 77 ) WHEN CAST( - COUNT( * ) AS DECIMAL ) THEN - COUNT( * ) + - 61 * + CASE + MIN( - + 93 ) WHEN 86 THEN 99 / 5 + + 70 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL + CASE + COUNT ( ALL 77 ) WHEN CAST ( - COUNT ( * ) AS REAL ) THEN - COUNT ( * ) + - 61 * + CASE + MIN ( - + 93 ) WHEN 86 THEN 99 / 5 + + 70 END END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6916
SELECT DISTINCT + 24 * - - 51 + + 21 DIV ( 52 ) AS col1
----
1224

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT + 24 * - - 51 + + 21 / ( 52 ) AS col1
----
1224

onlyif mysql # aggregate syntax: 
query II rowsort label-6917
SELECT DISTINCT SUM( DISTINCT + + 6 ) AS col1, 74 + 19 - + + SUM( 70 ) AS col0
----
6
23

skipif mysql # not compatible
query II rowsort label-6917
SELECT DISTINCT SUM ( DISTINCT + + 6 ) AS col1, 74 + 19 - + + SUM ( 70 ) AS col0
----
6
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6918
SELECT DISTINCT COALESCE ( 14, + COALESCE ( + + 57, - - ( - - 15 ) + + 94 + + 5 + COUNT( * ) ) * COALESCE ( - 87, + CAST( NULL AS SIGNED ) * 19 ) + + 5 * 23, + 0 * - CASE + 91 * - 15 WHEN 15 THEN NULL ELSE 94 * 11 END )
----
14

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT COALESCE ( 14, + COALESCE ( + + 57, - - ( - - 15 ) + + 94 + + 5 + COUNT ( * ) ) * COALESCE ( - 87, + CAST ( NULL AS INTEGER ) * 19 ) + + 5 * 23, + 0 * - CASE + 91 * - 15 WHEN 15 THEN NULL ELSE 94 * 11 END )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6919
SELECT ALL - 39 * CAST( NULL AS SIGNED ) / - - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL - 39 * CAST ( NULL AS INTEGER ) / - - 51 AS col1
----
NULL

query I rowsort
SELECT ALL + 13 * - 80 + + + 89 AS col0
----
-951

query I rowsort
SELECT 76 + + - ( - 7 ) + - + 87 AS col0
----
-4

query II rowsort
SELECT ALL + 39 * - 27, 0 AS col2
----
-1053
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT 86 + + MAX( + 36 ) * - ( + ( + 43 ) ) * + + 30 * 69
----
-3204274

skipif mysql # not compatible
query I rowsort label-6923
SELECT 86 + + MAX ( + 36 ) * - ( + ( + 43 ) ) * + + 30 * 69
----
-3204274

query II rowsort
SELECT DISTINCT + 21 * + 7, 30 AS col1
----
147
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6925
SELECT ALL - 67 - CAST( NULL AS SIGNED ) / + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL - 67 - CAST ( NULL AS INTEGER ) / + 94
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6926
SELECT ALL SUM( DISTINCT + 19 ) AS col0, + 48 * - CASE 12 WHEN - + ( + 36 ) THEN - + 59 * + - 43 END + - ( - 25 ) + - 69 + + 73 * 72
----
19
NULL

skipif mysql # not compatible
query II rowsort label-6926
SELECT ALL SUM ( DISTINCT + 19 ) AS col0, + 48 * - CASE 12 WHEN - + ( + 36 ) THEN - + 59 * + - 43 END + - ( - 25 ) + - 69 + + 73 * 72
----
19
NULL

query I rowsort
SELECT 84 * - + 72 AS col2
----
-6048

query I rowsort
SELECT ALL - COALESCE ( - 7, + + ( 48 ) + - + 44, 80 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6929
SELECT CAST( NULL AS SIGNED ) + 91 * + - 32 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6929
SELECT CAST ( NULL AS INTEGER ) + 91 * + - 32 + - - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6930
SELECT 94 DIV - 65, 52 + 77 + - 32 AS col0
----
-1
97

skipif mysql # not compatible
query II rowsort label-6930
SELECT 94 / - 65, 52 + 77 + - 32 AS col0
----
-1
97

query I rowsort
SELECT DISTINCT - 38 * + 38 + 44
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT DISTINCT + 27 * + MIN( DISTINCT - - 30 ) col0
----
810

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT + 27 * + MIN ( DISTINCT - - 30 ) col0
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT ALL - + NULLIF ( + - 99, + CASE - - 30 WHEN + 27 * - + NULLIF ( - - 2, + 51 ) + - CASE - 66 WHEN + 88 * - - 67 * + 40 THEN - 74 ELSE + COUNT( * ) END THEN NULL ELSE 96 END * - 22 - 66 ) + - 20
----
79

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL - + NULLIF ( + - 99, + CASE - - 30 WHEN + 27 * - + NULLIF ( - - 2, + 51 ) + - CASE - 66 WHEN + 88 * - - 67 * + 40 THEN - 74 ELSE + COUNT ( * ) END THEN NULL ELSE 96 END * - 22 - 66 ) + - 20
----
79

query I rowsort
SELECT ALL - 88 + - + 9
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT CASE - + MIN( ALL + + ( + 59 ) ) WHEN + 44 * - NULLIF ( + 24, - 96 ) + - 25 THEN - 73 WHEN 37 THEN NULL WHEN + 59 THEN NULL ELSE NULLIF ( - 72, + MAX( ALL + 10 ) - + 22 ) END
----
-72

skipif mysql # not compatible
query I rowsort label-6935
SELECT CASE - + MIN ( ALL + + ( + 59 ) ) WHEN + 44 * - NULLIF ( + 24, - 96 ) + - 25 THEN - 73 WHEN 37 THEN NULL WHEN + 59 THEN NULL ELSE NULLIF ( - 72, + MAX ( ALL + 10 ) - + 22 ) END
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6936
SELECT + 16, 27 + - + 79 + - MIN( - ( - + 30 ) ) + + - ( + + 31 ) DIV + 72 col2
----
16
-82

skipif mysql # not compatible
query II rowsort label-6936
SELECT + 16, 27 + - + 79 + - MIN ( - ( - + 30 ) ) + + - ( + + 31 ) / + 72 col2
----
16
-82

query I rowsort
SELECT 42 + 74 * + - 92 + - + 37 AS col1
----
-6803

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6938
SELECT COUNT( * ) * 79 * + NULLIF ( - + COALESCE ( - 41, - 65 ), - 38 ) * + - 75 DIV + COUNT( * ) * - + 1 + + 17 DIV - - COUNT( * ) + - 67
----
242875

skipif mysql # not compatible
query I rowsort label-6938
SELECT COUNT ( * ) * 79 * + NULLIF ( - + COALESCE ( - 41, - 65 ), - 38 ) * + - 75 / + COUNT ( * ) * - + 1 + + 17 / - - COUNT ( * ) + - 67
----
242875

query I rowsort
SELECT ALL 54 + + 79 AS col2
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6940
SELECT ALL CAST( NULL AS SIGNED ) + CAST( 35 AS DECIMAL ) - COUNT( * ) + + 60 * - - ( + SUM( - 81 ) ), - 58 AS col2
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-6940
SELECT ALL CAST ( NULL AS INTEGER ) + CAST ( 35 AS REAL ) - COUNT ( * ) + + 60 * - - ( + SUM ( - 81 ) ), - 58 AS col2
----
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT COUNT( * ) * - 41 - + + 77 + - - 38 - + ( 32 ) col1
----
-112

skipif mysql # not compatible
query I rowsort label-6941
SELECT COUNT ( * ) * - 41 - + + 77 + - - 38 - + ( 32 ) col1
----
-112

query I rowsort
SELECT ALL + 7 * - 86
----
-602

query I rowsort
SELECT DISTINCT 12 * 83 AS col0
----
996

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6944
SELECT - 3 AS col0, 44 * + CAST( NULL AS SIGNED ) + - 21 - + - 22
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6944
SELECT - 3 AS col0, 44 * + CAST ( NULL AS INTEGER ) + - 21 - + - 22
----
-3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6945
SELECT 56 DIV + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6945
SELECT 56 / + 75 AS col1
----
0

query I rowsort
SELECT ALL NULLIF ( + 61, + AVG ( 0 ) )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6947
SELECT DISTINCT CAST( - 98 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT CAST ( - 98 AS INTEGER )
----
-98

query II rowsort
SELECT ALL 77 AS col2, 40
----
77
40

query I rowsort
SELECT DISTINCT + 94 * 12
----
1128

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT COUNT( * ) + - - 95 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6950
SELECT COUNT ( * ) + - - 95 AS col0
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6951
SELECT + CAST( NULL AS DECIMAL ) + - 74 * + - 47 + 28 * + 45 - + + 30 + - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT + CAST ( NULL AS REAL ) + - 74 * + - 47 + 28 * + 45 - + + 30 + - 89 AS col0
----
NULL

query I rowsort
SELECT - 29 * 62 AS col2
----
-1798

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT COUNT( * ) + 60 + + ( + 23 )
----
84

skipif mysql # not compatible
query I rowsort label-6953
SELECT COUNT ( * ) + 60 + + ( + 23 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6954
SELECT COUNT( * ) AS col1, - 42 AS col2
----
1
-42

skipif mysql # not compatible
query II rowsort label-6954
SELECT COUNT ( * ) AS col1, - 42 AS col2
----
1
-42

query I rowsort
SELECT 22 * 41
----
902

query I rowsort
SELECT ALL + 89 * + 90 AS col1
----
8010

query I rowsort
SELECT DISTINCT - + 27 + + 91
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT ALL + - 19 * 57 + - - 44 + 20 DIV + - 40 AS col0
----
-1039

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL + - 19 * 57 + - - 44 + 20 / + - 40 AS col0
----
-1039

query I rowsort
SELECT + 19 + 70 col2
----
89

query II rowsort
SELECT + - 11 AS col2, + 13
----
-11
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6961
SELECT 51 DIV + + 58
----
0

skipif mysql # not compatible
query I rowsort label-6961
SELECT 51 / + + 58
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6962
SELECT DISTINCT + 2 * + CAST( NULL AS SIGNED ) * - CASE 22 WHEN - 16 * - CAST( NULL AS SIGNED ) * + + SUM( DISTINCT + + 75 ) THEN NULL WHEN + + 57 THEN + COUNT( * ) + - 46 / + COUNT( * ) + + 19 - - - 67 END + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6962
SELECT DISTINCT + 2 * + CAST ( NULL AS INTEGER ) * - CASE 22 WHEN - 16 * - CAST ( NULL AS INTEGER ) * + + SUM ( DISTINCT + + 75 ) THEN NULL WHEN + + 57 THEN + COUNT ( * ) + - 46 / + COUNT ( * ) + + 19 - - - 67 END + - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT SUM( ALL - - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-6963
SELECT SUM ( ALL - - 38 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6964
SELECT ALL - 69 * - 53 + - COUNT( * ) + CAST( + 45 AS SIGNED ) - + 17 + COALESCE ( - 30, 63 ) + - + 12
----
3642

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL - 69 * - 53 + - COUNT ( * ) + CAST ( + 45 AS INTEGER ) - + 17 + COALESCE ( - 30, 63 ) + - + 12
----
3642

query I rowsort
SELECT 35 * - 80 AS col0
----
-2800

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT ALL - 38 DIV 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL - 38 / 65 AS col2
----
0

query I rowsort
SELECT DISTINCT - ( + + ( + 74 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT COUNT( * ) + ( + 49 )
----
50

skipif mysql # not compatible
query I rowsort label-6968
SELECT COUNT ( * ) + ( + 49 )
----
50

query II rowsort
SELECT ALL 7 * 60, + 70 AS col1
----
420
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT ALL + 66 + + 84 DIV - - 57 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL + 66 + + 84 / - - 57 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT + SUM( DISTINCT - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-6971
SELECT + SUM ( DISTINCT - 18 )
----
-18

query I rowsort
SELECT - 53 + - 47
----
-100

query I rowsort
SELECT + 29 * - + 23 col0
----
-667

onlyif mysql # DIV for integer division: 
query I rowsort label-6974
SELECT DISTINCT 58 DIV + + 97 * 82 col1
----
0

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT 58 / + + 97 * 82 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6975
SELECT + 70 * - ( - - ( 55 ) ) + + SUM( - - CAST( - 60 AS SIGNED ) ) / 37 * CAST( NULL AS DECIMAL ) - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT + 70 * - ( - - ( 55 ) ) + + SUM ( - - CAST ( - 60 AS INTEGER ) ) / 37 * CAST ( NULL AS REAL ) - - 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6976
SELECT ALL 93 * + COALESCE ( + + 47, 81 ) * + 32 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL 93 * + COALESCE ( + + 47, 81 ) * + 32 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6977
SELECT ALL 5 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL 5 / 90
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6978
SELECT + 46 DIV 72 * 27 * 4 * - 66 AS col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-6978
SELECT + 46 / 72 * 27 * 4 * - 66 AS col2, COUNT ( * )
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6979
SELECT + 60 + + - ( 51 ) + - - COALESCE ( - 44, CAST( NULL AS SIGNED ) )
----
-35

skipif mysql # not compatible
query I rowsort label-6979
SELECT + 60 + + - ( 51 ) + - - COALESCE ( - 44, CAST ( NULL AS INTEGER ) )
----
-35

query I rowsort
SELECT ALL 34 * + 28 - + 12 col2
----
940

onlyif mysql # DIV for integer division: 
query I rowsort label-6981
SELECT + + 73 DIV 68 + + 72
----
73

skipif mysql # not compatible
query I rowsort label-6981
SELECT + + 73 / 68 + + 72
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT - - CAST( - + 95 AS SIGNED ) * + - 51 AS col2
----
4845

skipif mysql # not compatible
query I rowsort label-6982
SELECT - - CAST ( - + 95 AS INTEGER ) * + - 51 AS col2
----
4845

query I rowsort
SELECT - NULLIF ( - 85, + - 82 ) + - 36
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT DISTINCT 19 + - MIN( DISTINCT + 72 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT 19 + - MIN ( DISTINCT + 72 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT - MAX( + - 45 ) * + 53 AS col1
----
2385

skipif mysql # not compatible
query I rowsort label-6985
SELECT - MAX ( + - 45 ) * + 53 AS col1
----
2385

query I rowsort
SELECT DISTINCT + - 29 + - 30 * - NULLIF ( + 36, - + 89 * - 18 * - AVG ( - + 25 ) * 60 - 70 + 49 ) + - 83 col2
----
968

query I rowsort
SELECT - - 99 * - - 81
----
8019

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6988
SELECT + 20 - + - 82 + - + 59 / + 54 * - CAST( NULL AS DECIMAL ) / + 52 * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT + 20 - + - 82 + - + 59 / + 54 * - CAST ( NULL AS REAL ) / + 52 * 57
----
NULL

query I rowsort
SELECT NULLIF ( 89, - + 9 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT + NULLIF ( - + 33, NULLIF ( - ( COUNT( * ) ), - 83 ) * - - 28 + - 84 - 40 ) * + - 59 * + ( + ( - 90 ) ) AS col0
----
-175230

skipif mysql # not compatible
query I rowsort label-6990
SELECT + NULLIF ( - + 33, NULLIF ( - ( COUNT ( * ) ), - 83 ) * - - 28 + - 84 - 40 ) * + - 59 * + ( + ( - 90 ) ) AS col0
----
-175230

onlyif mysql # DIV for integer division: 
query I rowsort label-6991
SELECT - 17 * 25 DIV 88 + + - 46
----
-50

skipif mysql # not compatible
query I rowsort label-6991
SELECT - 17 * 25 / 88 + + - 46
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6992
SELECT ALL - - CAST( NULL AS SIGNED ) / - - 4 * + - COUNT( * ) + + + 6 + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL - - CAST ( NULL AS INTEGER ) / - - 4 * + - COUNT ( * ) + + + 6 + + 99
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6993
SELECT ALL + NULLIF ( - 96, - 26 ), COUNT( * ) + + + 70 + - ( COUNT( 84 ) ) * + 56 col2
----
-96
15

skipif mysql # not compatible
query II rowsort label-6993
SELECT ALL + NULLIF ( - 96, - 26 ), COUNT ( * ) + + + 70 + - ( COUNT ( 84 ) ) * + 56 col2
----
-96
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT - 99 * - 95 * 14 + - SUM( ALL + CASE + - 50 WHEN - 83 THEN + ( - 76 ) - + + 84 END ) * - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6994
SELECT - 99 * - 95 * 14 + - SUM ( ALL + CASE + - 50 WHEN - 83 THEN + ( - 76 ) - + + 84 END ) * - 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT DISTINCT - 81 * - 32 * + - 58 - + 70 + + - MIN( DISTINCT + - 22 ) * NULLIF ( + 3, - 53 ) + - 57 * - 75 * - + 75
----
-470965

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT - 81 * - 32 * + - 58 - + 70 + + - MIN ( DISTINCT + - 22 ) * NULLIF ( + 3, - 53 ) + - 57 * - 75 * - + 75
----
-470965

onlyif mysql # aggregate syntax: 
query II rowsort label-6996
SELECT ( - ( + COALESCE ( 83, - - 63 ) ) ), + 91 - - COUNT( * ) - + 71 AS col0
----
-83
21

skipif mysql # not compatible
query II rowsort label-6996
SELECT ( - ( + COALESCE ( 83, - - 63 ) ) ), + 91 - - COUNT ( * ) - + 71 AS col0
----
-83
21

query I rowsort
SELECT - 65 * 74 col2
----
-4810

onlyif mysql # aggregate syntax: 
query II rowsort label-6998
SELECT ALL + 5 AS col0, COUNT( * ) * - - 40 * - + 86 * ( 0 ) + - - 63
----
5
63

skipif mysql # not compatible
query II rowsort label-6998
SELECT ALL + 5 AS col0, COUNT ( * ) * - - 40 * - + 86 * ( 0 ) + - - 63
----
5
63

query I rowsort
SELECT - 83 + + ( + ( - 39 ) )
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT + SUM( - 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-7000
SELECT + SUM ( - 44 ) AS col2
----
-44

query I rowsort
SELECT - 29 * 54
----
-1566

query I rowsort
SELECT ALL 17 * - 71 AS col1
----
-1207

query I rowsort
SELECT DISTINCT - 17 * - 99 AS col0
----
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT DISTINCT + NULLIF ( + 56, - - 91 * 96 + + COUNT( * ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT + NULLIF ( + 56, - - 91 * 96 + + COUNT ( * ) ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT - COUNT( * ) * + 66 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7005
SELECT - COUNT ( * ) * + 66 AS col1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7006
SELECT + + 39 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7006
SELECT + + 39 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7007
SELECT ALL + 33 + - CAST( SUM( ALL + + 71 ) AS SIGNED ) + 93 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL + 33 + - CAST ( SUM ( ALL + + 71 ) AS INTEGER ) + 93 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT - NULLIF ( + - MIN( - 14 ), + 28 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-7008
SELECT - NULLIF ( + - MIN ( - 14 ), + 28 ) AS col1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7009
SELECT + - 53 - + SUM( 36 ) AS col1, - 30 DIV - 69
----
-89
0

skipif mysql # not compatible
query II rowsort label-7009
SELECT + - 53 - + SUM ( 36 ) AS col1, - 30 / - 69
----
-89
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7010
SELECT + + MAX( DISTINCT - + 32 ) * + - ( NULLIF ( - - 96, - CAST( + + 83 AS SIGNED ) ) ) / - - ( - - 10 ) + - + COUNT( * ) * - 34 - 43 + - CAST( - - NULLIF ( - CAST( NULL AS DECIMAL ), CASE 81 WHEN - 57 THEN NULL ELSE + 88 + - COUNT( * ) END ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT + + MAX ( DISTINCT - + 32 ) * + - ( NULLIF ( - - 96, - CAST ( + + 83 AS INTEGER ) ) ) / - - ( - - 10 ) + - + COUNT ( * ) * - 34 - 43 + - CAST ( - - NULLIF ( - CAST ( NULL AS REAL ), CASE 81 WHEN - 57 THEN NULL ELSE + 88 + - COUNT ( * ) END ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 22 + + - 90 AS col1
----
-68

query II rowsort
SELECT DISTINCT - 51 + + NULLIF ( NULLIF ( 26, + - 96 ), - 72 + 31 + + + 10 ) AS col0, 69
----
-25
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7013
SELECT ALL 91 + + - NULLIF ( 72, 84 * 73 ) + + 61, NULLIF ( 5, - 58 + - COUNT( ALL 46 ) ) AS col1
----
80
5

skipif mysql # not compatible
query II rowsort label-7013
SELECT ALL 91 + + - NULLIF ( 72, 84 * 73 ) + + 61, NULLIF ( 5, - 58 + - COUNT ( ALL 46 ) ) AS col1
----
80
5

query I rowsort
SELECT COALESCE ( - + 34, - NULLIF ( + - 18, 81 * - 51 ) + - 39 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7015
SELECT + 74 * CAST( - 74 AS SIGNED ) AS col2
----
-5476

skipif mysql # not compatible
query I rowsort label-7015
SELECT + 74 * CAST ( - 74 AS INTEGER ) AS col2
----
-5476

query I rowsort
SELECT + 18 + + + 96
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT + + NULLIF ( - COUNT( * ), + 28 / 95 * + 37 ) - + + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7017
SELECT + + NULLIF ( - COUNT ( * ), + 28 / 95 * + 37 ) - + + COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT + 31 + - 3 + + 23 * 70
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT ALL - MIN( + 17 ) + - ( - - 23 )
----
-40

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL - MIN ( + 17 ) + - ( - - 23 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT - MAX( + - 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7020
SELECT - MAX ( + - 54 ) AS col0
----
54

query I rowsort
SELECT ALL + 88 * + 14
----
1232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7022
SELECT + + 77 + + COUNT( DISTINCT - + 36 ) * + COUNT( * ) + + + 61 DIV - 53 col0
----
77

skipif mysql # not compatible
query I rowsort label-7022
SELECT + + 77 + + COUNT ( DISTINCT - + 36 ) * + COUNT ( * ) + + + 61 / - 53 col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7023
SELECT ALL 14, 93 * + - MIN( 61 ) AS col0
----
14
-5673

skipif mysql # not compatible
query II rowsort label-7023
SELECT ALL 14, 93 * + - MIN ( 61 ) AS col0
----
14
-5673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7024
SELECT ALL + 83 DIV - COUNT( ALL + 60 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL + 83 / - COUNT ( ALL + 60 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-7025
SELECT DISTINCT - 93, COUNT( * ) + + 16 - - + 45 AS col2
----
-93
62

skipif mysql # not compatible
query II rowsort label-7025
SELECT DISTINCT - 93, COUNT ( * ) + + 16 - - + 45 AS col2
----
-93
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7026
SELECT 2 / - 96 * - COALESCE ( COUNT( + 30 ), + 97 + + COALESCE ( - - 99, 89 * - 28 * + 92 * + 41 - + 6, - - 7 - - + ( 9 ) + + CAST( NULL AS SIGNED ) * AVG ( ALL 94 ) ) * - 19 ) * + 41 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7026
SELECT 2 / - 96 * - COALESCE ( COUNT ( + 30 ), + 97 + + COALESCE ( - - 99, 89 * - 28 * + 92 * + 41 - + 6, - - 7 - - + ( 9 ) + + CAST ( NULL AS INTEGER ) * AVG ( ALL 94 ) ) * - 19 ) * + 41 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7027
SELECT 9 AS col0, - COUNT( * ) DIV + 16
----
9
0

skipif mysql # not compatible
query II rowsort label-7027
SELECT 9 AS col0, - COUNT ( * ) / + 16
----
9
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7028
SELECT 79 AS col1, ( 47 ) * - + ( + NULLIF ( 22, - SUM( 87 ) * + - 42 * - 69 ) ) AS col0
----
79
-1034

skipif mysql # not compatible
query II rowsort label-7028
SELECT 79 AS col1, ( 47 ) * - + ( + NULLIF ( 22, - SUM ( 87 ) * + - 42 * - 69 ) ) AS col0
----
79
-1034

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT 79 + - + MAX( DISTINCT - - ( 72 ) )
----
7

skipif mysql # not compatible
query I rowsort label-7029
SELECT 79 + - + MAX ( DISTINCT - - ( 72 ) )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7030
SELECT MIN( DISTINCT + 45 ) * - - 58 * - ( 99 ) - CAST( NULL AS SIGNED ) * 75 + - 62 * + + 27 * 19 + 49 AS col0, 26 * SUM( 44 ) col1
----
NULL
1144

skipif mysql # not compatible
query II rowsort label-7030
SELECT MIN ( DISTINCT + 45 ) * - - 58 * - ( 99 ) - CAST ( NULL AS INTEGER ) * 75 + - 62 * + + 27 * 19 + 49 AS col0, 26 * SUM ( 44 ) col1
----
NULL
1144

query II rowsort
SELECT 22, 65 * + 36 + + 38 * + - 1 * + 38 + 85 AS col1
----
22
981

onlyif mysql # aggregate syntax: 
query II rowsort label-7032
SELECT + 87 AS col2, 20 + COUNT( * )
----
87
21

skipif mysql # not compatible
query II rowsort label-7032
SELECT + 87 AS col2, 20 + COUNT ( * )
----
87
21

query II rowsort
SELECT ALL - 95, 25 * 67 AS col1
----
-95
1675

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT DISTINCT MAX( ALL 40 ) * + - 21
----
-840

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT MAX ( ALL 40 ) * + - 21
----
-840

query I rowsort
SELECT ALL 29 * + 85
----
2465

query I rowsort
SELECT ALL - CASE - - 45 WHEN ( 22 ) * - 22 THEN - - 75 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7037
SELECT 95 DIV - NULLIF ( - 71, + ( - 13 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7037
SELECT 95 / - NULLIF ( - 71, + ( - 13 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7038
SELECT 75 + + 15 + - + 30 + - + 60 DIV 64 * 97 * - - 7 * + 92 * - 87 * + 4
----
60

skipif mysql # not compatible
query I rowsort label-7038
SELECT 75 + + 15 + - + 30 + - + 60 / 64 * 97 * - - 7 * + 92 * - 87 * + 4
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-7039
SELECT 40 * + - 18 - + 34 DIV + - 75 col1, 21 * - ( - 66 )
----
-720
1386

skipif mysql # not compatible
query II rowsort label-7039
SELECT 40 * + - 18 - + 34 / + - 75 col1, 21 * - ( - 66 )
----
-720
1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7040
SELECT 41 AS col2, 74 AS col2, + ( + CASE 32 WHEN - 19 THEN + + ( + 91 ) WHEN - 57 * - - 12 + + ( - - COUNT( * ) ) / - + CAST( NULL AS SIGNED ) * - - ( - 78 ) + - - 29 THEN NULL END ) + + MAX( 25 - 56 )
----
41
74
NULL

skipif mysql # not compatible
query III rowsort label-7040
SELECT 41 AS col2, 74 AS col2, + ( + CASE 32 WHEN - 19 THEN + + ( + 91 ) WHEN - 57 * - - 12 + + ( - - COUNT ( * ) ) / - + CAST ( NULL AS INTEGER ) * - - ( - 78 ) + - - 29 THEN NULL END ) + + MAX ( 25 - 56 )
----
41
74
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7041
SELECT 38 DIV + + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7041
SELECT 38 / + + 97 AS col2
----
0

query I rowsort
SELECT + 56 * + + 96 col0
----
5376

query I rowsort
SELECT 69 + + 7 + - 59 * - - 86 AS col0
----
-4998

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT + COUNT( DISTINCT 95 )
----
1

skipif mysql # not compatible
query I rowsort label-7044
SELECT + COUNT ( DISTINCT 95 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7045
SELECT ALL - - ( ( + - 85 ) ) + - 40, + 40 + - COUNT( * ) * - 54 * + 81 AS col2
----
-125
4414

skipif mysql # not compatible
query II rowsort label-7045
SELECT ALL - - ( ( + - 85 ) ) + - 40, + 40 + - COUNT ( * ) * - 54 * + 81 AS col2
----
-125
4414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7046
SELECT DISTINCT + - 33 + - MAX( - CAST( NULL AS SIGNED ) ) - - 80 + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT + - 33 + - MAX ( - CAST ( NULL AS INTEGER ) ) - - 80 + + 45
----
NULL

query I rowsort
SELECT - 22 + 97 - 63
----
12

query II rowsort
SELECT 7 + 99 AS col2, + COALESCE ( - 51, + 75 ) AS col2
----
106
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7049
SELECT ALL - CAST( NULL AS SIGNED ) + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL - CAST ( NULL AS INTEGER ) + - 81
----
NULL

query I rowsort
SELECT DISTINCT - 10 * - NULLIF ( + 60, - 35 * + 50 - 63 ) AS col1
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT ALL + + 7 + - + MAX( ALL - ( - 85 ) ) * + - 75
----
6382

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL + + 7 + - + MAX ( ALL - ( - 85 ) ) * + - 75
----
6382

query I rowsort
SELECT DISTINCT + 19 + 46
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT ALL - MIN( DISTINCT + + 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL - MIN ( DISTINCT + + 33 ) AS col2
----
-33

query I rowsort
SELECT ( + 93 ) + ( + 17 ) * - 95 col2
----
-1522

query II rowsort
SELECT DISTINCT - 35 AS col1, + 33
----
-35
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL NULLIF ( + 46, SUM( DISTINCT 9 ) + + COALESCE ( - 2, - - COUNT( ALL - ( 96 ) ), - 4 ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL NULLIF ( + 46, SUM ( DISTINCT 9 ) + + COALESCE ( - 2, - - COUNT ( ALL - ( 96 ) ), - 4 ) ) AS col0
----
46

query II rowsort
SELECT ALL + 12 AS col1, 83
----
12
83

query I rowsort
SELECT DISTINCT - 78 - + 98
----
-176

query II rowsort
SELECT + 48, - 37 * - 61 AS col0
----
48
2257

query I rowsort
SELECT 34 - - - 1 AS col1
----
33

query I rowsort
SELECT ALL 48 * + 55 * - 79
----
-208560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7062
SELECT CAST( - COUNT( * ) AS SIGNED ) * + + 87 * 42 col1
----
-3654

skipif mysql # not compatible
query I rowsort label-7062
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + + 87 * 42 col1
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT MAX( ALL 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7063
SELECT MAX ( ALL 10 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT COUNT( ALL - + 43 ) - + 9
----
-8

skipif mysql # not compatible
query I rowsort label-7064
SELECT COUNT ( ALL - + 43 ) - + 9
----
-8

query I rowsort
SELECT ALL - ( - 28 ) AS col2
----
28

query I rowsort
SELECT DISTINCT 40 + + - 72 * + 80 AS col2
----
-5720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7067
SELECT + 58 DIV - - 3 + - ( + 73 ) * + COUNT( + ( + + 82 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-7067
SELECT + 58 / - - 3 + - ( + 73 ) * + COUNT ( + ( + + 82 ) )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT SUM( 46 ) * - - 97
----
4462

skipif mysql # not compatible
query I rowsort label-7068
SELECT SUM ( 46 ) * - - 97
----
4462

query I rowsort
SELECT 11 + 9
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7070
SELECT DISTINCT 75 + - 69 + + 9 + + ( - 91 ) + - MAX( DISTINCT + CAST( + 7 AS SIGNED ) ) * CASE + 20 WHEN + - 32 THEN NULL ELSE + 62 END * - - 3 AS col2
----
-1378

skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT 75 + - 69 + + 9 + + ( - 91 ) + - MAX ( DISTINCT + CAST ( + 7 AS INTEGER ) ) * CASE + 20 WHEN + - 32 THEN NULL ELSE + 62 END * - - 3 AS col2
----
-1378

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7071
SELECT ALL + 17 + - CASE + 30 WHEN + + 35 + COUNT( * ) * 53 * 20 + - - CAST( NULL AS DECIMAL ) THEN NULL WHEN + 41 * - + 12 + - SUM( - + COALESCE ( - + 69, 13 ) ) THEN + + 25 / + - 73 + 29 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL + 17 + - CASE + 30 WHEN + + 35 + COUNT ( * ) * 53 * 20 + - - CAST ( NULL AS REAL ) THEN NULL WHEN + 41 * - + 12 + - SUM ( - + COALESCE ( - + 69, 13 ) ) THEN + + 25 / + - 73 + 29 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT ALL + 6 + COALESCE ( 77, + ( CASE - 42 WHEN 41 + 15 THEN - + 4 END ) * - 40, + - CASE + 69 WHEN + 19 - + 85 + + COUNT( * ) * - 19 THEN 0 WHEN 25 THEN NULL WHEN + 12 THEN ( 24 ) WHEN 28 THEN 0 + + 51 ELSE NULL END ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL + 6 + COALESCE ( 77, + ( CASE - 42 WHEN 41 + 15 THEN - + 4 END ) * - 40, + - CASE + 69 WHEN + 19 - + 85 + + COUNT ( * ) * - 19 THEN 0 WHEN 25 THEN NULL WHEN + 12 THEN ( 24 ) WHEN 28 THEN 0 + + 51 ELSE NULL END ) AS col2
----
83

query II rowsort
SELECT DISTINCT + 84 + + + 67 AS col2, + 53 + 56
----
151
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7074
SELECT + 29 * - ( + + 6 ) * - - SUM( + + 75 ) DIV - + NULLIF ( - CASE WHEN 95 IS NOT NULL THEN + - 85 * - + 71 * + + 74 DIV 33 ELSE + 70 + 94 END, - - 9 * - ( COUNT( * ) ) * - 28 + + NULLIF ( - 68 + + CASE MIN( ALL + 80 ) WHEN - 11 * CASE ( + 58 ) WHEN 91 * 43 THEN - 3 END + - CAST( NULL AS SIGNED ) THEN ( 75 ) + - 3 * 29 WHEN 37 + 77 THEN 23 ELSE NULL END, 4 * + 23 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7074
SELECT + 29 * - ( + + 6 ) * - - SUM ( + + 75 ) / - + NULLIF ( - CASE WHEN 95 IS NOT NULL THEN + - 85 * - + 71 * + + 74 / 33 ELSE + 70 + 94 END, - - 9 * - ( COUNT ( * ) ) * - 28 + + NULLIF ( - 68 + + CASE MIN ( ALL + 80 ) WHEN - 11 * CASE ( + 58 ) WHEN 91 * 43 THEN - 3 END + - CAST ( NULL AS INTEGER ) THEN ( 75 ) + - 3 * 29 WHEN 37 + 77 THEN 23 ELSE NULL END, 4 * + 23 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7075
SELECT 9 - COUNT( * ) + + 37 * + 96 * + 87, + 2 DIV - 13 - - 67 AS col2, + COALESCE ( 63, + 53 ) AS col2
----
309032
67
63

skipif mysql # not compatible
query III rowsort label-7075
SELECT 9 - COUNT ( * ) + + 37 * + 96 * + 87, + 2 / - 13 - - 67 AS col2, + COALESCE ( 63, + 53 ) AS col2
----
309032
67
63

query I rowsort
SELECT - + ( 39 ) AS col0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-7077
SELECT 99 DIV + - 24 + - NULLIF ( - - 63, 54 )
----
-67

skipif mysql # not compatible
query I rowsort label-7077
SELECT 99 / + - 24 + - NULLIF ( - - 63, 54 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT - COUNT( * ) * + 97 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-7078
SELECT - COUNT ( * ) * + 97 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT ALL + - 80 * 91 + COALESCE ( - SUM( DISTINCT - 77 ), + COUNT( * ) * COUNT( * ) + 90 + + 94 + + - 6 ) * + 93
----
-119

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL + - 80 * 91 + COALESCE ( - SUM ( DISTINCT - 77 ), + COUNT ( * ) * COUNT ( * ) + 90 + + 94 + + - 6 ) * + 93
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT 78 - + + MIN( ALL - 39 )
----
117

skipif mysql # not compatible
query I rowsort label-7080
SELECT 78 - + + MIN ( ALL - 39 )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT - 36 - COUNT( * ) - + 7 * - - 25
----
-212

skipif mysql # not compatible
query I rowsort label-7081
SELECT - 36 - COUNT ( * ) - + 7 * - - 25
----
-212

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT ALL + - MIN( DISTINCT - - 16 ) * + COUNT( ALL + - 53 )
----
-16

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL + - MIN ( DISTINCT - - 16 ) * + COUNT ( ALL + - 53 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT DISTINCT COUNT( + 79 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT COUNT ( + 79 ) AS col2
----
1

query I rowsort
SELECT ALL + + 0 * + 58 - 64
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7085
SELECT 48 AS col1, COUNT( ALL + COALESCE ( - 84, + 70 * - 69 ) ) - + MIN( DISTINCT - 9 )
----
48
10

skipif mysql # not compatible
query II rowsort label-7085
SELECT 48 AS col1, COUNT ( ALL + COALESCE ( - 84, + 70 * - 69 ) ) - + MIN ( DISTINCT - 9 )
----
48
10

query I rowsort
SELECT - 78 * - + 14
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT - 36 + COUNT( * ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-7087
SELECT - 36 + COUNT ( * ) col0
----
-35

query I rowsort
SELECT + 42 - 50 - - - 14 AS col0
----
-22

query I rowsort
SELECT ALL NULLIF ( - + 55, - 7 * - + 61 + + 5 ) AS col2
----
-55

query II rowsort
SELECT - 20 AS col0, - 78 * + 41 + - 33
----
-20
-3231

query I rowsort
SELECT ALL NULLIF ( 82, + + 91 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT + ( + - COUNT( * ) ) + - + 36 + - 98 * - + 98 AS col1
----
9567

skipif mysql # not compatible
query I rowsort label-7092
SELECT + ( + - COUNT ( * ) ) + - + 36 + - 98 * - + 98 AS col1
----
9567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7093
SELECT + CAST( NULL AS SIGNED ) * - 9 * + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7093
SELECT + CAST ( NULL AS INTEGER ) * - 9 * + - 37
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7094
SELECT + COUNT( * ) AS col2, + 1 DIV + - 43 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-7094
SELECT + COUNT ( * ) AS col2, + 1 / + - 43 AS col1
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7095
SELECT - SUM( - CAST( + 80 AS SIGNED ) ) + - 1 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-7095
SELECT - SUM ( - CAST ( + 80 AS INTEGER ) ) + - 1 AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7096
SELECT - ( 67 ) * COUNT( - 56 ), 18 + - + 47 + + - 89 DIV COUNT( * ) + CAST( SUM( ALL 23 ) AS SIGNED ) + + 61 DIV 62 AS col2
----
-67
-95

skipif mysql # not compatible
query II rowsort label-7096
SELECT - ( 67 ) * COUNT ( - 56 ), 18 + - + 47 + + - 89 / COUNT ( * ) + CAST ( SUM ( ALL 23 ) AS INTEGER ) + + 61 / 62 AS col2
----
-67
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT - 4 * + + 2 + + - COUNT( * ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7097
SELECT - 4 * + + 2 + + - COUNT ( * ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT + COUNT( + 59 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7098
SELECT + COUNT ( + 59 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7099
SELECT CASE + ( 34 ) WHEN NULLIF ( 12, - COUNT( * ) + + + COUNT( * ) ) / + MAX( + 20 ) - + - ( - SUM( ALL + 55 ) ) THEN - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) - 78 WHEN + 11 THEN NULL WHEN - 24 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT CASE + ( 34 ) WHEN NULLIF ( 12, - COUNT ( * ) + + + COUNT ( * ) ) / + MAX ( + 20 ) - + - ( - SUM ( ALL + 55 ) ) THEN - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) - 78 WHEN + 11 THEN NULL WHEN - 24 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 32, 64 + 59 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT ALL - 91 * + 20 + - 38 * + + COUNT( * ) * + 69 + - 41 * 29
----
-5631

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL - 91 * + 20 + - 38 * + + COUNT ( * ) * + 69 + - 41 * 29
----
-5631

query I rowsort
SELECT 77 * - 81 * + 0 + - 74 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT DISTINCT 84 * - ( - 7 ) + - + 42 - - 44 + + + 78 * + - 53 * - COUNT( * ) AS col0
----
4724

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT 84 * - ( - 7 ) + - + 42 - - 44 + + + 78 * + - 53 * - COUNT ( * ) AS col0
----
4724

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7104
SELECT DISTINCT - NULLIF ( - CAST( NULL AS DECIMAL ), + - 31 * - 39 ) * - 47 + - ( - ( + 47 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT - NULLIF ( - CAST ( NULL AS REAL ), + - 31 * - 39 ) * - 47 + - ( - ( + 47 ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7105
SELECT ALL + 96 DIV - 15 + - 23
----
-29

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL + 96 / - 15 + - 23
----
-29

query I rowsort
SELECT + + CASE - - 79 WHEN - 99 THEN - - 30 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7107
SELECT + ( + CAST( NULL AS SIGNED ) ) + + 61, 33 AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-7107
SELECT + ( + CAST ( NULL AS INTEGER ) ) + + 61, 33 AS col0
----
NULL
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7108
SELECT - 11 * - COUNT( * ) DIV - CAST( + 65 AS SIGNED ) * 4 - 2 + + 31
----
29

skipif mysql # not compatible
query I rowsort label-7108
SELECT - 11 * - COUNT ( * ) / - CAST ( + 65 AS INTEGER ) * 4 - 2 + + 31
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT DISTINCT + COUNT( ALL 73 )
----
1

skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT + COUNT ( ALL 73 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7110
SELECT + 70 + - + CAST( - - 45 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-7110
SELECT + 70 + - + CAST ( - - 45 AS INTEGER )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7111
SELECT 25 * CASE - + 55 WHEN - 47 THEN - 13 END - + 70 col2, + 63 - + MIN( ALL 53 ) col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-7111
SELECT 25 * CASE - + 55 WHEN - 47 THEN - 13 END - + 70 col2, + 63 - + MIN ( ALL 53 ) col1
----
NULL
10

query I rowsort
SELECT - 54 + 7
----
-47

query I rowsort
SELECT + - 39 + + 76
----
37

query II rowsort
SELECT DISTINCT + 44 AS col1, - 11
----
44
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7115
SELECT - 32 * - CAST( NULL AS SIGNED ) - + 43 + + 91 / 26 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT - 32 * - CAST ( NULL AS INTEGER ) - + 43 + + 91 / 26 col2
----
NULL

query I rowsort
SELECT ALL ( + - ( + ( - 47 ) ) ) AS col1
----
47

query I rowsort
SELECT ALL + 0 * - + 7 col2
----
0

query I rowsort
SELECT + - 89 + + - ( - - 18 ) col1
----
-107

query II rowsort
SELECT ALL 32 AS col0, - 31
----
32
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT ALL - SUM( - 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL - SUM ( - 55 ) AS col0
----
55

query I rowsort
SELECT ALL + ( + - 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT - - COUNT( * ) * + - 42
----
-42

skipif mysql # not compatible
query I rowsort label-7122
SELECT - - COUNT ( * ) * + - 42
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-7123
SELECT COUNT( * ), + 15 + - COUNT( * ) - - + MIN( - 45 ) * + 25 * + + ( - - 86 ) * ( COALESCE ( - 30, - 20 ) ) AS col2
----
1
2902514

skipif mysql # not compatible
query II rowsort label-7123
SELECT COUNT ( * ), + 15 + - COUNT ( * ) - - + MIN ( - 45 ) * + 25 * + + ( - - 86 ) * ( COALESCE ( - 30, - 20 ) ) AS col2
----
1
2902514

query I rowsort
SELECT - 56 + 74 AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7125
SELECT COUNT( * ) AS col1, - 6 + - + 80 + - 53 * + NULLIF ( - 15, - ( - 80 ) ) col0
----
1
709

skipif mysql # not compatible
query II rowsort label-7125
SELECT COUNT ( * ) AS col1, - 6 + - + 80 + - 53 * + NULLIF ( - 15, - ( - 80 ) ) col0
----
1
709

query I rowsort
SELECT - 19 + + - 63 - - 7 * 75 * - + 73 - - 60
----
-38347

query I rowsort
SELECT ALL + 89 + + - 45 - - 34
----
78

query I rowsort
SELECT DISTINCT 71 + + 17
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT ALL - NULLIF ( - 68, - 6 * 78 + - 94 / + 79 * + 36 * - 96 + MAX( - 18 ) + + - 81 * + - 84 ) * ( + 15 ) AS col2
----
1020

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL - NULLIF ( - 68, - 6 * 78 + - 94 / + 79 * + 36 * - 96 + MAX ( - 18 ) + + - 81 * + - 84 ) * ( + 15 ) AS col2
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT DISTINCT + SUM( + 61 ) + + 4 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT + SUM ( + 61 ) + + 4 AS col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7131
SELECT - 47 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT - 47 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT - 70 + + 60 + + - COUNT( DISTINCT - 2 ) + - 66 * - + 14
----
913

skipif mysql # not compatible
query I rowsort label-7132
SELECT - 70 + + 60 + + - COUNT ( DISTINCT - 2 ) + - 66 * - + 14
----
913

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT DISTINCT + COUNT( ALL - + 94 )
----
1

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT + COUNT ( ALL - + 94 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7134
SELECT 82 * - 20 / - 67 + CAST( NULL AS SIGNED ) AS col2, + 35
----
NULL
35

skipif mysql # not compatible
query II rowsort label-7134
SELECT 82 * - 20 / - 67 + CAST ( NULL AS INTEGER ) AS col2, + 35
----
NULL
35

query I rowsort
SELECT - 69 - 11 + - 12 AS col1
----
-92

query I rowsort
SELECT DISTINCT + 67 * - 34
----
-2278

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT - 32 * - - COALESCE ( + - COUNT( * ), 33 )
----
32

skipif mysql # not compatible
query I rowsort label-7137
SELECT - 32 * - - COALESCE ( + - COUNT ( * ), 33 )
----
32

query I rowsort
SELECT + - 29 + + - 2 + + - NULLIF ( + 84, NULLIF ( - 8, + - 81 ) * + + 17 * 64 ) * + 71 + - 88 * - 90
----
1925

query I rowsort
SELECT DISTINCT - - 63 * 67 AS col1
----
4221

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT ALL + - SUM( - 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL + - SUM ( - 29 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT + - MIN( DISTINCT - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-7141
SELECT + - MIN ( DISTINCT - 13 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7142
SELECT - 84 * - 94 + - NULLIF ( 57, COALESCE ( - + 94, + 85 ) * - CAST( - 66 AS SIGNED ) * + + 70 ) * + 98 * - - 77 - 15 AS col1
----
-422241

skipif mysql # not compatible
query I rowsort label-7142
SELECT - 84 * - 94 + - NULLIF ( 57, COALESCE ( - + 94, + 85 ) * - CAST ( - 66 AS INTEGER ) * + + 70 ) * + 98 * - - 77 - 15 AS col1
----
-422241

query I rowsort
SELECT 95 * - 12 - 71
----
-1211

query I rowsort
SELECT - - 84 * - ( 71 )
----
-5964

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7145
SELECT ALL + 73 * - 53 DIV 1 * COUNT( * ) * - 92, 50 * - + 13 + - COUNT( * ) AS col2
----
355948
-651

skipif mysql # not compatible
query II rowsort label-7145
SELECT ALL + 73 * - 53 / 1 * COUNT ( * ) * - 92, 50 * - + 13 + - COUNT ( * ) AS col2
----
355948
-651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7146
SELECT + - COUNT( * ) DIV - 52 * 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7146
SELECT + - COUNT ( * ) / - 52 * 79 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7147
SELECT DISTINCT - SUM( DISTINCT + - 32 ) DIV - + 3 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT - SUM ( DISTINCT + - 32 ) / - + 3 AS col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-7148
SELECT 10 DIV + + 93 + + ( + 25 ) DIV + 83 + - ( + 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-7148
SELECT 10 / + + 93 + + ( + 25 ) / + 83 + - ( + 44 ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7149
SELECT - COUNT( * ) / - + ( + CAST( NULL AS DECIMAL ) ) * + + ( + ( + - 47 ) ) * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT - COUNT ( * ) / - + ( + CAST ( NULL AS REAL ) ) * + + ( + ( + - 47 ) ) * - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT COUNT( * ) + - - 19 * - - 2
----
39

skipif mysql # not compatible
query I rowsort label-7150
SELECT COUNT ( * ) + - - 19 * - - 2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7151
SELECT CAST( - - CASE + + NULLIF ( - - 96, + ( + 98 ) ) WHEN - 7 - + 9 THEN NULL WHEN - + COUNT( - 18 ) THEN 96 WHEN + 24 * - 72 THEN NULL END AS SIGNED ) * + + ( + 13 ) / + - COUNT( * ) + - + CASE + ( - 63 ) WHEN + 48 + + 93 THEN ( - COUNT( DISTINCT - 30 ) ) ELSE 32 + - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7151
SELECT CAST ( - - CASE + + NULLIF ( - - 96, + ( + 98 ) ) WHEN - 7 - + 9 THEN NULL WHEN - + COUNT ( - 18 ) THEN 96 WHEN + 24 * - 72 THEN NULL END AS INTEGER ) * + + ( + 13 ) / + - COUNT ( * ) + - + CASE + ( - 63 ) WHEN + 48 + + 93 THEN ( - COUNT ( DISTINCT - 30 ) ) ELSE 32 + - 75 END
----
NULL

query I rowsort
SELECT ALL - 97 + + + ( - 12 ) AS col2
----
-109

query I rowsort
SELECT 69 - + 50 AS col2
----
19

query I rowsort
SELECT ALL - 48 * 64
----
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT DISTINCT 30 + + + ( ( + 29 ) ) - MAX( + - 47 ) - + COUNT( * ) * + ( 76 ) col2
----
30

skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT 30 + + + ( ( + 29 ) ) - MAX ( + - 47 ) - + COUNT ( * ) * + ( 76 ) col2
----
30

query I rowsort
SELECT ALL 89 + + 22 AS col2
----
111

query II rowsort
SELECT - 74 AS col1, 25
----
-74
25

query I rowsort
SELECT 89 * + - 36
----
-3204

query I rowsort
SELECT 59 + ( + 21 ) - - 86 AS col2
----
166

query I rowsort
SELECT 4 - + 55 + + + 89 AS col2
----
38

query II rowsort
SELECT 80 AS col1, + 93
----
80
93

query I rowsort
SELECT 14 - - 82 AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7163
SELECT DISTINCT - COUNT( * ) / - 73 * + 91 * - - CAST( NULL AS SIGNED ) * + 70 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT - COUNT ( * ) / - 73 * + 91 * - - CAST ( NULL AS INTEGER ) * + 70 * - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT ALL + 59 + - ( - 62 ) * - 93 * + ( + + MIN( DISTINCT - 34 ) ) * - - 33
----
6469511

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL + 59 + - ( - 62 ) * - 93 * + ( + + MIN ( DISTINCT - 34 ) ) * - - 33
----
6469511

query II rowsort
SELECT 97 AS col0, - 13
----
97
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT 4 + 87 * - SUM( + 44 ) * - + MAX( ALL 59 ) + 39 AS col2
----
225895

skipif mysql # not compatible
query I rowsort label-7166
SELECT 4 + 87 * - SUM ( + 44 ) * - + MAX ( ALL 59 ) + 39 AS col2
----
225895

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7167
SELECT ALL + 86 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL + 86 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT DISTINCT 17 DIV 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT 17 / 77 AS col1
----
0

query I rowsort
SELECT ALL 75 - + 40
----
35

query I rowsort
SELECT CASE + - 7 WHEN + 99 + 90 THEN + - 47 / - 94 WHEN + - 4 THEN 34 END / - - 23 / - 35 * + + 53 * + + 91 / + 32
----
NULL

query I rowsort
SELECT 29 * - + 98 AS col1
----
-2842

query I rowsort
SELECT + 25 + + 62 col0
----
87

query I rowsort
SELECT + 0 * + 88
----
0

query I rowsort
SELECT 88 * + 80 + + - 22 AS col2
----
7018

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7175
SELECT - CAST( - 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-7175
SELECT - CAST ( - 31 AS INTEGER )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT + 66 * - 44 * + 58 + - + COUNT( * ) AS col0
----
-168433

skipif mysql # not compatible
query I rowsort label-7176
SELECT + 66 * - 44 * + 58 + - + COUNT ( * ) AS col0
----
-168433

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT ALL - COUNT( * ) * - 70 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL - COUNT ( * ) * - 70 AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7178
SELECT + 52 DIV - MIN( + 90 ) + + 61 + ( COUNT( * ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7178
SELECT + 52 / - MIN ( + 90 ) + + 61 + ( COUNT ( * ) ) AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7179
SELECT CAST( + + 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-7179
SELECT CAST ( + + 86 AS INTEGER )
----
86

query I rowsort
SELECT - 89 + - 48 AS col2
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT 76 * - 90 + COUNT( * )
----
-6839

skipif mysql # not compatible
query I rowsort label-7181
SELECT 76 * - 90 + COUNT ( * )
----
-6839

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT NULLIF ( + - 21, + + 7 + - COUNT( * ) + - 36 * + - 51 )
----
-21

skipif mysql # not compatible
query I rowsort label-7182
SELECT NULLIF ( + - 21, + + 7 + - COUNT ( * ) + - 36 * + - 51 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT + 55 + + ( - 49 ) * - 94 * + + 31 * + SUM( ALL + ( 69 ) ) * + - 85
----
-837439835

skipif mysql # not compatible
query I rowsort label-7183
SELECT + 55 + + ( - 49 ) * - 94 * + + 31 * + SUM ( ALL + ( 69 ) ) * + - 85
----
-837439835

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7184
SELECT + - NULLIF ( 38, 50 * 24 * - ( AVG ( - COALESCE ( - 81, + 65, + 23, - 91, - + 19 * + 57 + 48 DIV + + 73 + + CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) ) ) ) ) * 74 DIV + 82 - - + 25 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7184
SELECT + - NULLIF ( 38, 50 * 24 * - ( AVG ( - COALESCE ( - 81, + 65, + 23, - 91, - + 19 * + 57 + 48 / + + 73 + + CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) ) ) ) ) * 74 / + 82 - - + 25 AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7185
SELECT - CASE + 11 WHEN - 91 THEN - 12 WHEN CAST( NULL AS DECIMAL ) THEN + 48 + - 55 + - 85 * + 78 DIV - - 74 END AS col0, - 12 DIV + COUNT( * ) + + - 70 + 39 + + 78 + + 10 * + + ( ( - 90 ) )
----
NULL
-865

skipif mysql # not compatible
query II rowsort label-7185
SELECT - CASE + 11 WHEN - 91 THEN - 12 WHEN CAST ( NULL AS REAL ) THEN + 48 + - 55 + - 85 * + 78 / - - 74 END AS col0, - 12 / + COUNT ( * ) + + - 70 + 39 + + 78 + + 10 * + + ( ( - 90 ) )
----
NULL
-865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7186
SELECT CAST( + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) + - MIN( + + 51 ) * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-7186
SELECT CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - MIN ( + + 51 ) * + 29
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7187
SELECT + 29 col1, + 26 + - - 13 + + + CASE 86 WHEN + MAX( DISTINCT 96 ) THEN - 29 + 97 * 26 - 73 / - 27 / 95 WHEN - 71 THEN NULL END + + - MAX( DISTINCT + 71 ) - + + AVG ( DISTINCT - 84 )
----
29
NULL

skipif mysql # not compatible
query II rowsort label-7187
SELECT + 29 col1, + 26 + - - 13 + + + CASE 86 WHEN + MAX ( DISTINCT 96 ) THEN - 29 + 97 * 26 - 73 / - 27 / 95 WHEN - 71 THEN NULL END + + - MAX ( DISTINCT + 71 ) - + + AVG ( DISTINCT - 84 )
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT COALESCE ( - 50, 34 + - 97 + + + ( 20 ), + + 36 * + 75 ) + - + 65 - 25 + 51 * + + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-7188
SELECT COALESCE ( - 50, 34 + - 97 + + + ( 20 ), + + 36 * + 75 ) + - + 65 - 25 + 51 * + + COUNT ( * )
----
-89

query I rowsort
SELECT ALL ( 11 ) + - 51
----
-40

query I rowsort
SELECT - 91 + + - 68
----
-159

query II rowsort
SELECT ALL - 76 AS col0, - 84 AS col1
----
-76
-84

query II rowsort
SELECT ALL + ( + 14 ) + 67 col0, 58 AS col0
----
81
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7193
SELECT DISTINCT - 99 + - CAST( NULL AS SIGNED ) + + ( - 11 ) * - 34 / ( 12 ) / - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT - 99 + - CAST ( NULL AS INTEGER ) + + ( - 11 ) * - 34 / ( 12 ) / - + 56
----
NULL

query I rowsort
SELECT ALL 78 + + - 94 + - 10
----
-26

query I rowsort
SELECT 79 + + 26
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT 59 * + SUM( ALL + 48 ) * 90
----
254880

skipif mysql # not compatible
query I rowsort label-7196
SELECT 59 * + SUM ( ALL + 48 ) * 90
----
254880

query I rowsort
SELECT 69 * - 73 AS col1
----
-5037

query I rowsort
SELECT 4 + - 19 * 19 * + - 48 AS col0
----
17332

query II rowsort
SELECT 52 AS col1, - 38 AS col0
----
52
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT - MAX( + 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-7200
SELECT - MAX ( + 70 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-7201
SELECT ALL 12 - + 46 + - MAX( - 22 ) + - 29 + COUNT( * ) + + 45 AS col0, 81 AS col0
----
5
81

skipif mysql # not compatible
query II rowsort label-7201
SELECT ALL 12 - + 46 + - MAX ( - 22 ) + - 29 + COUNT ( * ) + + 45 AS col0, 81 AS col0
----
5
81

query I rowsort
SELECT 94 * 47
----
4418

query I rowsort
SELECT DISTINCT 41 - - - 34 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7204
SELECT CAST( NULL AS SIGNED ) + ( + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7204
SELECT CAST ( NULL AS INTEGER ) + ( + 68 )
----
NULL

query I rowsort
SELECT ALL 76 - - 43
----
119

query I rowsort
SELECT 94 - - 33 AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT COUNT( * ) - + 18
----
-17

skipif mysql # not compatible
query I rowsort label-7207
SELECT COUNT ( * ) - + 18
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-7208
SELECT 39 DIV - 14 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7208
SELECT 39 / - 14 AS col2
----
-2

query I rowsort
SELECT 73 + + 58 + + 12
----
143

query II rowsort
SELECT DISTINCT + 17 AS col0, - 86 AS col2
----
17
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-7211
SELECT 9, ( - COUNT( * ) ) AS col2
----
9
-1

skipif mysql # not compatible
query II rowsort label-7211
SELECT 9, ( - COUNT ( * ) ) AS col2
----
9
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7212
SELECT ALL + + ( + + 63 ) DIV 13 * + 53
----
212

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL + + ( + + 63 ) / 13 * + 53
----
212

onlyif mysql # DIV for integer division: 
query I rowsort label-7213
SELECT 22 DIV + + 20
----
1

skipif mysql # not compatible
query I rowsort label-7213
SELECT 22 / + + 20
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7214
SELECT - + 45 * - CAST( 52 AS DECIMAL ) + + - CAST( NULL AS SIGNED ) + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7214
SELECT - + 45 * - CAST ( 52 AS REAL ) + + - CAST ( NULL AS INTEGER ) + 67 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT ALL + ( + - MIN( DISTINCT 15 ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL + ( + - MIN ( DISTINCT 15 ) ) AS col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7216
SELECT - - COUNT( * ) DIV + 81 col0
----
0

skipif mysql # not compatible
query I rowsort label-7216
SELECT - - COUNT ( * ) / + 81 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7217
SELECT + + 91 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7217
SELECT + + 91 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 9 + - + 75 AS col2, 25 col2
----
-84
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7219
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 69 * 51 + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 69 * 51 + - 88
----
NULL

query II rowsort
SELECT - 1 AS col1, + 94
----
-1
94

query I rowsort
SELECT - 36 * + - 88 * + - 5 AS col1
----
-15840

query II rowsort
SELECT + + 17 col2, - 76
----
17
-76

query I rowsort
SELECT ALL + 58 * ( - 11 ) + + 96 * - 10 AS col1
----
-1598

query I rowsort
SELECT - - 0 * - + 4
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7225
SELECT ALL + 31 / - - 11 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL + 31 / - - 11 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7226
SELECT - 54 * - - CAST( 78 AS SIGNED )
----
-4212

skipif mysql # not compatible
query I rowsort label-7226
SELECT - 54 * - - CAST ( 78 AS INTEGER )
----
-4212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7227
SELECT ALL + 31 DIV - 32 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL + 31 / - 32 * - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7228
SELECT - CAST( NULL AS SIGNED ) - + - ( + 84 ) / - - 74 * + + 26 + + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7228
SELECT - CAST ( NULL AS INTEGER ) - + - ( + 84 ) / - - 74 * + + 26 + + COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 40, + 3 )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7230
SELECT ALL NULLIF ( + CAST( NULL AS SIGNED ), + 83 ) AS col2, 70 + COUNT( * ) AS col1, 68 AS col1
----
NULL
71
68

skipif mysql # not compatible
query III rowsort label-7230
SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), + 83 ) AS col2, 70 + COUNT ( * ) AS col1, 68 AS col1
----
NULL
71
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT + 70 + + - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-7231
SELECT + 70 + + - COUNT ( * )
----
69

query I rowsort
SELECT DISTINCT ( + 96 ) AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7233
SELECT + 46 + + CAST( NULL AS SIGNED ) * - CASE - 82 WHEN + 57 / + - 26 + 54 THEN 11 + 67 * 28 END * - 92 + + ( - 81 ) - - - 42 + 67 + + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7233
SELECT + 46 + + CAST ( NULL AS INTEGER ) * - CASE - 82 WHEN + 57 / + - 26 + 54 THEN 11 + 67 * 28 END * - 92 + + ( - 81 ) - - - 42 + 67 + + + 18
----
NULL

query I rowsort
SELECT + 64 * - + 54 AS col2
----
-3456

onlyif mysql # DIV for integer division: 
query I rowsort label-7235
SELECT ALL 28 DIV + 24 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL 28 / + 24 AS col2
----
1

query I rowsort
SELECT + 40 - - 52
----
92

query I rowsort
SELECT + 28 * - + 84
----
-2352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7238
SELECT + - COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7238
SELECT + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + + NULLIF ( - + ( - + 51 ), 30 ) + - 16
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7240
SELECT ALL + 19 DIV + + 23 + + COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL + 19 / + + 23 + + COUNT ( * ) + - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT 20 DIV + 46 * + 32 + 77 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-7241
SELECT 20 / + 46 * + 32 + 77 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT + + COUNT( ALL 67 )
----
1

skipif mysql # not compatible
query I rowsort label-7242
SELECT + + COUNT ( ALL 67 )
----
1

query I rowsort
SELECT + ( 10 ) * + 49
----
490

onlyif mysql # DIV for integer division: 
query I rowsort label-7244
SELECT ALL + NULLIF ( + 73, 40 * + 87 ) DIV - 28 + 46 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL + NULLIF ( + 73, 40 * + 87 ) / - 28 + 46 AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7245
SELECT ALL - 83 DIV - - 81 + + 60 + - ( - 4 ) + + + 70 - + - 30 + - - 18 * 93 * - 49 * + 4 AS col2
----
-327941

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL - 83 / - - 81 + + 60 + - ( - 4 ) + + + 70 - + - 30 + - - 18 * 93 * - 49 * + 4 AS col2
----
-327941

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7246
SELECT DISTINCT + ( - 90 ) DIV + SUM( + 77 ) - 1
----
-2

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT + ( - 90 ) / + SUM ( + 77 ) - 1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7247
SELECT ALL - 18 * ( + 54 ) - - 63 + + - 95 + - + 45 - 38 + - COUNT( * ) DIV + 16 AS col2
----
-1087

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL - 18 * ( + 54 ) - - 63 + + - 95 + - + 45 - 38 + - COUNT ( * ) / + 16 AS col2
----
-1087

onlyif mysql # DIV for integer division: 
query I rowsort label-7248
SELECT 4 DIV - ( + 51 ) + 23 DIV - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7248
SELECT 4 / - ( + 51 ) + 23 / - 45 AS col0
----
0

query I rowsort
SELECT + + NULLIF ( 56, - 34 + 64 ) + 75
----
131

query I rowsort
SELECT ALL + 40 * - 63 + - 20 AS col2
----
-2540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7251
SELECT DISTINCT 65 / - 79 * - + CAST( NULL AS SIGNED ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT 65 / - 79 * - + CAST ( NULL AS INTEGER ) * - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7252
SELECT - COUNT( * ) - - + 73 + + CAST( - 88 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-7252
SELECT - COUNT ( * ) - - + 73 + + CAST ( - 88 AS INTEGER )
----
-16

query I rowsort
SELECT - 36 * - 75 AS col1
----
2700

onlyif mysql # aggregate syntax: 
query II rowsort label-7254
SELECT ALL 42 * - 36 * 81 AS col0, + COUNT( * )
----
-122472
1

skipif mysql # not compatible
query II rowsort label-7254
SELECT ALL 42 * - 36 * 81 AS col0, + COUNT ( * )
----
-122472
1

query I rowsort
SELECT + 48 + 37
----
85

query I rowsort
SELECT 26 * 78 + 6
----
2034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7257
SELECT + ( + COUNT( * ) ) * + ( - 84 ) * + MAX( DISTINCT - 97 ) AS col0, + 20 * + - COALESCE ( 15, - MIN( ALL 88 ) ) / 98 - + ( + CAST( NULL AS SIGNED ) ) - + 42 AS col1
----
8148
NULL

skipif mysql # not compatible
query II rowsort label-7257
SELECT + ( + COUNT ( * ) ) * + ( - 84 ) * + MAX ( DISTINCT - 97 ) AS col0, + 20 * + - COALESCE ( 15, - MIN ( ALL 88 ) ) / 98 - + ( + CAST ( NULL AS INTEGER ) ) - + 42 AS col1
----
8148
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7258
SELECT ALL + 24, COUNT( * ) AS col0
----
24
1

skipif mysql # not compatible
query II rowsort label-7258
SELECT ALL + 24, COUNT ( * ) AS col0
----
24
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7259
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS SIGNED ) * + 74 - + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + 74 - + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL 90 * + 96 - - - 44 * MIN( ALL - + 67 ) * + COUNT( * ) * 70
----
215000

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL 90 * + 96 - - - 44 * MIN ( ALL - + 67 ) * + COUNT ( * ) * 70
----
215000

query I rowsort
SELECT - 70 + 69
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7262
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL ( + - MIN( - + 14 ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL ( + - MIN ( - + 14 ) ) AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7264
SELECT - 11 * + ( - 58 ) DIV - 57
----
-11

skipif mysql # not compatible
query I rowsort label-7264
SELECT - 11 * + ( - 58 ) / - 57
----
-11

query I rowsort
SELECT + 16 + 15
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7266
SELECT - 28 DIV 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7266
SELECT - 28 / 39 AS col2
----
0

query I rowsort
SELECT ALL + NULLIF ( 57, + - 83 ) + 72 + 20 * + - ( - 11 ) + - + 35 * 98
----
-3081

query I rowsort
SELECT - - NULLIF ( + 52, - + 28 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT - COUNT( * ) + 83 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-7269
SELECT - COUNT ( * ) + 83 AS col0
----
82

query I rowsort
SELECT DISTINCT 81 + 41
----
122

query I rowsort
SELECT ALL + - 50 + + 9 * - 79
----
-761

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT ALL - - MAX( - 1 ) + 6
----
5

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL - - MAX ( - 1 ) + 6
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7273
SELECT 85 - + 16 DIV - 25
----
85

skipif mysql # not compatible
query I rowsort label-7273
SELECT 85 - + 16 / - 25
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-7274
SELECT + 90, - COUNT( * ) AS col1
----
90
-1

skipif mysql # not compatible
query II rowsort label-7274
SELECT + 90, - COUNT ( * ) AS col1
----
90
-1

query I rowsort
SELECT 31 - + + NULLIF ( - 12, 36 )
----
43

query II rowsort
SELECT 57 AS col2, + 34 + + 90
----
57
124

query II rowsort
SELECT - 91, 5 col2
----
-91
5

query I rowsort
SELECT DISTINCT + 61 + 66 AS col0
----
127

query I rowsort
SELECT DISTINCT - + 45 + + 32
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7280
SELECT ALL + COUNT( * ) * + 14 * + - CASE 31 WHEN + ( CAST( - COUNT( * ) AS SIGNED ) ) * - 11 / 93 * + NULLIF ( 12, - - 26 * + + 88 ) * 57 * - + 28 THEN + ( - 42 ) END + 16 / - COUNT( * ) * ( - AVG ( ALL CAST( 6 AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL + COUNT ( * ) * + 14 * + - CASE 31 WHEN + ( CAST ( - COUNT ( * ) AS INTEGER ) ) * - 11 / 93 * + NULLIF ( 12, - - 26 * + + 88 ) * 57 * - + 28 THEN + ( - 42 ) END + 16 / - COUNT ( * ) * ( - AVG ( ALL CAST ( 6 AS REAL ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7281
SELECT - CAST( ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) * - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7281
SELECT - CAST ( ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - 2 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 28 + 76
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-7283
SELECT ALL - 43, COUNT( * ) col0
----
-43
1

skipif mysql # not compatible
query II rowsort label-7283
SELECT ALL - 43, COUNT ( * ) col0
----
-43
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7284
SELECT + 97 col2, 46 * 36 DIV - 22 * + COUNT( * ) + + 52 AS col0
----
97
-23

skipif mysql # not compatible
query II rowsort label-7284
SELECT + 97 col2, 46 * 36 / - 22 * + COUNT ( * ) + + 52 AS col0
----
97
-23

query I rowsort
SELECT ALL 54 * + - 21
----
-1134

query I rowsort
SELECT - 24 * + - 4 * NULLIF ( 0, - - 42 * - 55 - + ( - + 6 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT + 94 * + COUNT( * ) * - - COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7287
SELECT + 94 * + COUNT ( * ) * - - COUNT ( * ) AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT ALL + CAST( - 4 AS SIGNED ) - - - 13 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL + CAST ( - 4 AS INTEGER ) - - - 13 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT 85 * + 3 * - COALESCE ( + 99, SUM( ALL 29 ) * - 87 + - 4 + + 32 + + 40 - + COUNT( * ), - CASE + 28 WHEN 77 THEN - 89 * + - ( - 99 ) * + + NULLIF ( + 39, - 6 + - 45 ) + + 56 * - COUNT( * ) WHEN + 98 * 16 THEN NULL ELSE 61 + 57 * - 33 END * 83 ) * + 86 AS col2
----
-2171070

skipif mysql # not compatible
query I rowsort label-7289
SELECT 85 * + 3 * - COALESCE ( + 99, SUM ( ALL 29 ) * - 87 + - 4 + + 32 + + 40 - + COUNT ( * ), - CASE + 28 WHEN 77 THEN - 89 * + - ( - 99 ) * + + NULLIF ( + 39, - 6 + - 45 ) + + 56 * - COUNT ( * ) WHEN + 98 * 16 THEN NULL ELSE 61 + 57 * - 33 END * 83 ) * + 86 AS col2
----
-2171070

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT 98 * - 84 * + - 28 * - + ( COUNT( * ) )
----
-230496

skipif mysql # not compatible
query I rowsort label-7290
SELECT 98 * - 84 * + - 28 * - + ( COUNT ( * ) )
----
-230496

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT DISTINCT - MIN( ( 75 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT - MIN ( ( 75 ) )
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7292
SELECT CAST( NULL AS DECIMAL ) * + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT CAST ( NULL AS REAL ) * + 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT COUNT( * ) * 10 * 47 col1
----
470

skipif mysql # not compatible
query I rowsort label-7293
SELECT COUNT ( * ) * 10 * 47 col1
----
470

onlyif mysql # DIV for integer division: 
query II rowsort label-7294
SELECT ALL 53 DIV - 77 AS col1, + 21 + NULLIF ( + 55, - 80 ) col1
----
0
76

skipif mysql # not compatible
query II rowsort label-7294
SELECT ALL 53 / - 77 AS col1, + 21 + NULLIF ( + 55, - 80 ) col1
----
0
76

query I rowsort
SELECT 33 * 55
----
1815

query I rowsort
SELECT ALL ( + 81 ) * 78 AS col1
----
6318

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT 5 * + CASE - 57 WHEN + 98 + - 12 THEN - 77 * + 19 WHEN 29 THEN NULL END + - 53 + - 81 + - 81 + - - COUNT( - ( - 10 ) ) * SUM( + CASE - 44 WHEN 89 THEN 44 WHEN 93 + + ( 48 ) / - - 6 THEN + 67 END ) / + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT 5 * + CASE - 57 WHEN + 98 + - 12 THEN - 77 * + 19 WHEN 29 THEN NULL END + - 53 + - 81 + - 81 + - - COUNT ( - ( - 10 ) ) * SUM ( + CASE - 44 WHEN 89 THEN 44 WHEN 93 + + ( 48 ) / - - 6 THEN + 67 END ) / + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT DISTINCT MIN( 42 ) + - 88 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT MIN ( 42 ) + - 88 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ALL 10 * - - CASE 49 WHEN + 32 THEN + - ( 58 ) WHEN + NULLIF ( - 39, - - 36 - + + 24 + + - 70 ) * 67 THEN NULL END * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL 10 * - - CASE 49 WHEN + 32 THEN + - ( 58 ) WHEN + NULLIF ( - 39, - - 36 - + + 24 + + - 70 ) * 67 THEN NULL END * - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT ALL + 6 + 61 + + COUNT( * ) - + NULLIF ( + 33, - 97 ) * - 11 * - 16 AS col1
----
-5740

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL + 6 + 61 + + COUNT ( * ) - + NULLIF ( + 33, - 97 ) * - 11 * - 16 AS col1
----
-5740

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT 38 + - - 85 * + + CASE - COUNT( * ) WHEN + 50 + ( + 12 ) THEN ( + + COUNT( * ) ) WHEN + 15 THEN 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT 38 + - - 85 * + + CASE - COUNT ( * ) WHEN + 50 + ( + 12 ) THEN ( + + COUNT ( * ) ) WHEN + 15 THEN 87 END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - + 73, + + ( - + 70 ) / + 38 + + 71 + - 28 / - 92 + - ( - 45 ) ) + 58 + - 47
----
-62

query I rowsort
SELECT ALL + 25 + + 8 * - 78 AS col2
----
-599

query I rowsort
SELECT - 83 + + 68 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT SUM( DISTINCT - 75 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-7305
SELECT SUM ( DISTINCT - 75 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT + MIN( 95 ) - + 62 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7306
SELECT + MIN ( 95 ) - + 62 AS col0
----
33

query I rowsort
SELECT - ( - 91 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT COUNT( DISTINCT + 49 ) - - + 44 col1
----
45

skipif mysql # not compatible
query I rowsort label-7308
SELECT COUNT ( DISTINCT + 49 ) - - + 44 col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT - SUM( + 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7309
SELECT - SUM ( + 2 ) AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7310
SELECT DISTINCT - - CAST( + + 95 AS SIGNED ) + 26 + - CASE WHEN ( + 82 ) NOT BETWEEN NULL AND 47 + 89 + 86 THEN 83 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT - - CAST ( + + 95 AS INTEGER ) + 26 + - CASE WHEN ( + 82 ) NOT BETWEEN NULL AND 47 + 89 + 86 THEN 83 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 73 * 56 * - 30 * - 54 AS col2
----
-6622560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7312
SELECT DISTINCT + - 72 - + + MIN( ALL - ( + + 67 ) ) + + 80 + 18 + 67 * + 82 + + - 81 * 86 * 38 DIV 13 * NULLIF ( - 53, + COUNT( DISTINCT 99 ) )
----
1084773

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT + - 72 - + + MIN ( ALL - ( + + 67 ) ) + + 80 + 18 + 67 * + 82 + + - 81 * 86 * 38 / 13 * NULLIF ( - 53, + COUNT ( DISTINCT 99 ) )
----
1084773

query I rowsort
SELECT 69 + - + 54
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7314
SELECT DISTINCT - - 93 * 39 + - COUNT( * ) + ( NULLIF ( + 40, ( + + 40 ) - + 71 / 31 * 82 - + + COALESCE ( - 82, - COUNT( * ) * 16 ) * - + 2 * - + 57 ) ) AS col1, ( - 6 ) AS col1
----
3666
-6

skipif mysql # not compatible
query II rowsort label-7314
SELECT DISTINCT - - 93 * 39 + - COUNT ( * ) + ( NULLIF ( + 40, ( + + 40 ) - + 71 / 31 * 82 - + + COALESCE ( - 82, - COUNT ( * ) * 16 ) * - + 2 * - + 57 ) ) AS col1, ( - 6 ) AS col1
----
3666
-6

query II rowsort
SELECT 45 * - + 19 AS col0, + 17 AS col2
----
-855
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL - + ( - ( + COUNT( DISTINCT - - ( - CASE WHEN - 65 <= ( NULL ) THEN - 2 ELSE - 66 + + 85 + 71 + - 3 + + 7 END ) ) ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL - + ( - ( + COUNT ( DISTINCT - - ( - CASE WHEN - 65 <= ( NULL ) THEN - 2 ELSE - 66 + + 85 + 71 + - 3 + + 7 END ) ) ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7317
SELECT + 22 + 45 + - COUNT( + 85 ) + + 92 AS col2, - 7
----
158
-7

skipif mysql # not compatible
query II rowsort label-7317
SELECT + 22 + 45 + - COUNT ( + 85 ) + + 92 AS col2, - 7
----
158
-7

query I rowsort
SELECT DISTINCT + 2 * + 59 - - 86 AS col0
----
204

query I rowsort
SELECT + 59 * 80 * + 43 + + 11 + - - 87 - - 26 + + 33 + + 71
----
203188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7320
SELECT 88 * COALESCE ( ( NULLIF ( - MIN( + COALESCE ( + 2, - - 34 ) ), 8 ) ), 32 * - CAST( NULL AS SIGNED ) ) AS col2
----
-176

skipif mysql # not compatible
query I rowsort label-7320
SELECT 88 * COALESCE ( ( NULLIF ( - MIN ( + COALESCE ( + 2, - - 34 ) ), 8 ) ), 32 * - CAST ( NULL AS INTEGER ) ) AS col2
----
-176

onlyif mysql # aggregate syntax: 
query II rowsort label-7321
SELECT DISTINCT - COALESCE ( 40, + COUNT( * ) ), 99 AS col0
----
-40
99

skipif mysql # not compatible
query II rowsort label-7321
SELECT DISTINCT - COALESCE ( 40, + COUNT ( * ) ), 99 AS col0
----
-40
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7322
SELECT 14 + COUNT( CAST( ( + 9 ) AS SIGNED ) ) + + - 55 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7322
SELECT 14 + COUNT ( CAST ( ( + 9 ) AS INTEGER ) ) + + - 55 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-7323
SELECT ALL - COUNT( * ) * + - MIN( 34 ) AS col1, + 57 col0
----
34
57

skipif mysql # not compatible
query II rowsort label-7323
SELECT ALL - COUNT ( * ) * + - MIN ( 34 ) AS col1, + 57 col0
----
34
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT - COUNT( * ) * COUNT( * ) + - CASE - - 76 WHEN 55 / - 24 * + COUNT( * ) + + + 49 THEN - 68 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7324
SELECT - COUNT ( * ) * COUNT ( * ) + - CASE - - 76 WHEN 55 / - 24 * + COUNT ( * ) + + + 49 THEN - 68 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT DISTINCT 12 * - + COUNT( * ) * + - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT 12 * - + COUNT ( * ) * + - COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-7326
SELECT 4 * + 80 * + + COUNT( * ) AS col0, + ( COUNT( * ) ) AS col0
----
320
1

skipif mysql # not compatible
query II rowsort label-7326
SELECT 4 * + 80 * + + COUNT ( * ) AS col0, + ( COUNT ( * ) ) AS col0
----
320
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT DISTINCT MIN( - 91 ) + - ( 29 ) AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-7327
SELECT DISTINCT MIN ( - 91 ) + - ( 29 ) AS col2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT COUNT( + - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-7328
SELECT COUNT ( + - 61 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7329
SELECT ALL ( - - CASE + + MIN( ALL - - 53 ) WHEN - 22 * 57 + + CAST( NULL AS DECIMAL ) THEN + - NULLIF ( - 43, + CAST( NULL AS SIGNED ) + + + 52 ) + - - 59 WHEN - CASE - ( - + 9 ) WHEN - 29 THEN NULL ELSE + + 60 END THEN NULL END ) + - 47 * + MIN( DISTINCT + - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL ( - - CASE + + MIN ( ALL - - 53 ) WHEN - 22 * 57 + + CAST ( NULL AS REAL ) THEN + - NULLIF ( - 43, + CAST ( NULL AS INTEGER ) + + + 52 ) + - - 59 WHEN - CASE - ( - + 9 ) WHEN - 29 THEN NULL ELSE + + 60 END THEN NULL END ) + - 47 * + MIN ( DISTINCT + - 70 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT + MAX( + 68 ) + - 6 * - 70
----
488

skipif mysql # not compatible
query I rowsort label-7330
SELECT + MAX ( + 68 ) + - 6 * - 70
----
488

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7331
SELECT ALL 0, + 92 DIV - + ( - + MAX( 16 ) ) AS col2
----
0
5

skipif mysql # not compatible
query II rowsort label-7331
SELECT ALL 0, + 92 / - + ( - + MAX ( 16 ) ) AS col2
----
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7332
SELECT ALL + CAST( 44 AS SIGNED ) + + - 76 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL + CAST ( 44 AS INTEGER ) + + - 76 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT + 76 + - + NULLIF ( - + 64, + COUNT( * ) ) + + 84 + + - 31
----
193

skipif mysql # not compatible
query I rowsort label-7333
SELECT + 76 + - + NULLIF ( - + 64, + COUNT ( * ) ) + + 84 + + - 31
----
193

query I rowsort
SELECT ALL + 63 * - 36 AS col2
----
-2268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7335
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( + - COALESCE ( CAST( NULL AS SIGNED ), + + NULLIF ( 93, + 51 ) * + 93 + + 32 * - 43 * 65, 94 + + 21 ) ) - - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( + - COALESCE ( CAST ( NULL AS INTEGER ), + + NULLIF ( 93, + 51 ) * + 93 + + 32 * - 43 * 65, 94 + + 21 ) ) - - 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7336
SELECT DISTINCT - COALESCE ( + 65, - - 49, - 85 * - - 52 ) * - 66 - - COALESCE ( 83, 71 ) DIV + 4 - + 38
----
4272

skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT - COALESCE ( + 65, - - 49, - 85 * - - 52 ) * - 66 - - COALESCE ( 83, 71 ) / + 4 - + 38
----
4272

query I rowsort
SELECT + 30 * - 12
----
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-7338
SELECT - + 17 + - 42 DIV 46 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-7338
SELECT - + 17 + - 42 / 46 AS col0
----
-17

query I rowsort
SELECT ALL - NULLIF ( 58, + 90 )
----
-58

query I rowsort
SELECT ALL 14 - - 57
----
71

query I rowsort
SELECT + - 73 - - 8
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7342
SELECT - CAST( 49 AS SIGNED ) + + 22 - - 32 * 8 + + COUNT( + 98 ) AS col0
----
230

skipif mysql # not compatible
query I rowsort label-7342
SELECT - CAST ( 49 AS INTEGER ) + + 22 - - 32 * 8 + + COUNT ( + 98 ) AS col0
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT DISTINCT SUM( DISTINCT 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT SUM ( DISTINCT 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7345
SELECT ALL + 95 * 15 * 78 * - 4 DIV COUNT( * ) AS col0, + ( + - 83 ) * - COUNT( DISTINCT + 71 ) * + + 67 * - 99 AS col0
----
-444600
-550539

skipif mysql # not compatible
query II rowsort label-7345
SELECT ALL + 95 * 15 * 78 * - 4 / COUNT ( * ) AS col0, + ( + - 83 ) * - COUNT ( DISTINCT + 71 ) * + + 67 * - 99 AS col0
----
-444600
-550539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7346
SELECT DISTINCT - 84 / - CAST( NULL AS SIGNED ) * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT - 84 / - CAST ( NULL AS INTEGER ) * 7
----
NULL

query I rowsort
SELECT DISTINCT + 86 * - 89 AS col1
----
-7654

query I rowsort
SELECT - 54 - - + 98 + ( - + 62 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7349
SELECT DISTINCT + CASE + + 60 WHEN - 3 * - CASE + COALESCE ( + + 19, + + 21 ) WHEN - 7 * + + 95 * 88 / - - SUM( - 43 ) THEN NULL WHEN - + 11 * - 50 THEN + CASE - - 95 WHEN + 94 * 46 THEN - + 85 WHEN - - 95 THEN NULL ELSE NULL END END THEN NULL WHEN AVG ( ALL - 36 ) * - CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) + - NULLIF ( - + NULLIF ( - ( - 0 ), - 9 / 13 ), 66 - COUNT( * ) ) THEN - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT + CASE + + 60 WHEN - 3 * - CASE + COALESCE ( + + 19, + + 21 ) WHEN - 7 * + + 95 * 88 / - - SUM ( - 43 ) THEN NULL WHEN - + 11 * - 50 THEN + CASE - - 95 WHEN + 94 * 46 THEN - + 85 WHEN - - 95 THEN NULL ELSE NULL END END THEN NULL WHEN AVG ( ALL - 36 ) * - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) + - NULLIF ( - + NULLIF ( - ( - 0 ), - 9 / 13 ), 66 - COUNT ( * ) ) THEN - 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7350
SELECT DISTINCT + 65 AS col0, COUNT( * )
----
65
1

skipif mysql # not compatible
query II rowsort label-7350
SELECT DISTINCT + 65 AS col0, COUNT ( * )
----
65
1

query I rowsort
SELECT - 35 * - 6 AS col1
----
210

query I rowsort
SELECT - 12 * 56 * - COALESCE ( 12, + 63 + - 4 - - 60 + - 72 )
----
8064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT ALL - 12 * + 25 + - COALESCE ( - 29, - 43 * + + 10 + - CAST( NULL AS SIGNED ) + + 72 + - 63, + + 53 ) * + 3 + + + COUNT( * )
----
-212

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL - 12 * + 25 + - COALESCE ( - 29, - 43 * + + 10 + - CAST ( NULL AS INTEGER ) + + 72 + - 63, + + 53 ) * + 3 + + + COUNT ( * )
----
-212

query I rowsort
SELECT ALL + 62 * 69 + + - 52
----
4226

query I rowsort
SELECT COALESCE ( + 60, 72 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7356
SELECT ALL + ( + COALESCE ( - 87, + 12 + + 66 DIV COUNT( * ) ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL + ( + COALESCE ( - 87, + 12 + + 66 / COUNT ( * ) ) ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT ALL + SUM( ALL - - 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL + SUM ( ALL - - 78 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT DISTINCT - 18 * + COUNT( * ) + - 26
----
-44

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT - 18 * + COUNT ( * ) + - 26
----
-44

query I rowsort
SELECT ALL 93 * 88 AS col1
----
8184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7360
SELECT ALL + 85 * CASE - 94 WHEN + 70 * 3 - - + 79 + + + COALESCE ( + + 90, - - 12 ) * - 13 + - 20 * - 66 THEN + + ( - CAST( + 52 AS SIGNED ) ) END * + NULLIF ( + - 97, - COUNT( * ) ) + CASE + 37 WHEN - + 17 THEN + - 49 + 56 + + + 41 * - - 67 WHEN 42 THEN NULL ELSE NULL END * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL + 85 * CASE - 94 WHEN + 70 * 3 - - + 79 + + + COALESCE ( + + 90, - - 12 ) * - 13 + - 20 * - 66 THEN + + ( - CAST ( + 52 AS INTEGER ) ) END * + NULLIF ( + - 97, - COUNT ( * ) ) + CASE + 37 WHEN - + 17 THEN + - 49 + 56 + + + 41 * - - 67 WHEN 42 THEN NULL ELSE NULL END * 45
----
NULL

query I rowsort
SELECT - 69 + + 10 * - 28 AS col0
----
-349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7362
SELECT - 45 + - 70 + + COUNT( * ) - - COUNT( * ) DIV - 7 + + 27 * - 75 * + 32 * + + COUNT( * ) * - - 31 AS col2
----
-2008914

skipif mysql # not compatible
query I rowsort label-7362
SELECT - 45 + - 70 + + COUNT ( * ) - - COUNT ( * ) / - 7 + + 27 * - 75 * + 32 * + + COUNT ( * ) * - - 31 AS col2
----
-2008914

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT + SUM( + + 76 ) * + - 70
----
-5320

skipif mysql # not compatible
query I rowsort label-7363
SELECT + SUM ( + + 76 ) * + - 70
----
-5320

query II rowsort
SELECT - 8 AS col1, + 55 + + 22
----
-8
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT + - 37 + + 38 - COUNT( * ) - - + 52 + - 71 * - ( - 59 ) * 38
----
-159130

skipif mysql # not compatible
query I rowsort label-7365
SELECT + - 37 + + 38 - COUNT ( * ) - - + 52 + - 71 * - ( - 59 ) * 38
----
-159130

query II rowsort
SELECT DISTINCT - 19 AS col0, - 36 AS col2
----
-19
-36

query I rowsort
SELECT + + 62 + + 16 AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7368
SELECT + - 46 * - + CAST( - 66 AS SIGNED )
----
-3036

skipif mysql # not compatible
query I rowsort label-7368
SELECT + - 46 * - + CAST ( - 66 AS INTEGER )
----
-3036

query I rowsort
SELECT + - 88 + + 65 + + - 35 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL - COUNT( DISTINCT - 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL - COUNT ( DISTINCT - 9 )
----
-1

query I rowsort
SELECT + - ( 42 ) + + - 23 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT ALL 21 * + ( COUNT( * ) ) * 96
----
2016

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL 21 * + ( COUNT ( * ) ) * 96
----
2016

query I rowsort
SELECT + 90 * + 0
----
0

query I rowsort
SELECT + 95 + - 42
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT + CASE - NULLIF ( + 37, 14 ) WHEN - 42 THEN 95 WHEN - 37 THEN NULL ELSE + MIN( DISTINCT - 53 ) END - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7375
SELECT + CASE - NULLIF ( + 37, 14 ) WHEN - 42 THEN 95 WHEN - 37 THEN NULL ELSE + MIN ( DISTINCT - 53 ) END - 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT DISTINCT - 99 * + COUNT( * ) + 28 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT - 99 * + COUNT ( * ) + 28 AS col1
----
-71

query I rowsort
SELECT ALL - 55 * - 75
----
4125

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT MAX( ALL 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7378
SELECT MAX ( ALL 52 ) AS col0
----
52

query I rowsort
SELECT DISTINCT - 39 * + 62
----
-2418

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT DISTINCT + SUM( ALL - - 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT + SUM ( ALL - - 44 ) AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7381
SELECT - 36 * + COUNT( * ) + + 24 * + COUNT( * ) + + + 12 + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7381
SELECT - 36 * + COUNT ( * ) + + 24 * + COUNT ( * ) + + + 12 + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT ALL + 37 + - 88 + - COALESCE ( + SUM( + - 33 ), + + COUNT( * ) ) * 55
----
1764

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL + 37 + - 88 + - COALESCE ( + SUM ( + - 33 ), + + COUNT ( * ) ) * 55
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT - 73 * + COUNT( * ) + - 80 AS col0
----
-153

skipif mysql # not compatible
query I rowsort label-7383
SELECT - 73 * + COUNT ( * ) + - 80 AS col0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7384
SELECT 37 * - - 99 * CAST( 76 AS SIGNED ) + - 28
----
278360

skipif mysql # not compatible
query I rowsort label-7384
SELECT 37 * - - 99 * CAST ( 76 AS INTEGER ) + - 28
----
278360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7385
SELECT DISTINCT 29 + - + COUNT( DISTINCT + 77 ), CAST( NULL AS SIGNED ) + + ( - + AVG ( + 84 ) ) - + 65 / ( 72 ) * COALESCE ( + - 12, CAST( NULL AS SIGNED ), - 81 ) AS col1
----
28
NULL

skipif mysql # not compatible
query II rowsort label-7385
SELECT DISTINCT 29 + - + COUNT ( DISTINCT + 77 ), CAST ( NULL AS INTEGER ) + + ( - + AVG ( + 84 ) ) - + 65 / ( 72 ) * COALESCE ( + - 12, CAST ( NULL AS INTEGER ), - 81 ) AS col1
----
28
NULL

query I rowsort
SELECT 48 + - - 77 AS col1
----
125

query I rowsort
SELECT DISTINCT + 20 * + + 29
----
580

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT 29 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-7388
SELECT 29 / 56
----
0

query I rowsort
SELECT + 35 * - 32 + ( - 28 ) AS col1
----
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT ALL - ( + SUM( 54 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL - ( + SUM ( 54 ) )
----
-54

query I rowsort
SELECT DISTINCT - 93 - + 99 + - 99 * 97 + - 57
----
-9852

query I rowsort
SELECT ALL - 47 - + + 96
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT ALL - 86 - - 30 * - + COUNT( * ) * 86 col1
----
-2666

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL - 86 - - 30 * - + COUNT ( * ) * 86 col1
----
-2666

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT ALL + COUNT( * ) * - + 90 * - 20 - + 45 * - 71 * - - 48 col0
----
155160

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL + COUNT ( * ) * - + 90 * - 20 - + 45 * - 71 * - - 48 col0
----
155160

query I rowsort
SELECT 51 * - 57 * - 46
----
133722

onlyif mysql # aggregate syntax: 
query II rowsort label-7396
SELECT COUNT( * ) * - - COUNT( * ) AS col2, + 23 + + 64 AS col1
----
1
87

skipif mysql # not compatible
query II rowsort label-7396
SELECT COUNT ( * ) * - - COUNT ( * ) AS col2, + 23 + + 64 AS col1
----
1
87

query I rowsort
SELECT DISTINCT ( NULLIF ( + - 79, + 92 ) ) AS col1
----
-79

query I rowsort
SELECT ALL - NULLIF ( 59, - + 58 ) AS col1
----
-59

query I rowsort
SELECT ALL + 1 + - 32 * + + 14 AS col1
----
-447

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT DISTINCT COUNT( ALL + 98 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7400
SELECT DISTINCT COUNT ( ALL + 98 ) col1
----
1

query I rowsort
SELECT DISTINCT - + 94 + + - 46 + - 27 - + 71 * ( - ( 1 ) ) + 16 + 75 AS col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7402
SELECT DISTINCT + 21 + + 87 DIV + 81
----
22

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT + 21 + + 87 / + 81
----
22

query I rowsort
SELECT DISTINCT - COALESCE ( 92, - 73, 88 ) + + - 69 AS col0
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL COUNT( * ) + - 36 + - + 42
----
-77

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL COUNT ( * ) + - 36 + - + 42
----
-77

query I rowsort
SELECT ALL 54 + + + 20 AS col0
----
74

query I rowsort
SELECT 94 * - 83 AS col2
----
-7802

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT COUNT( * ) * - CASE + - 30 WHEN + 1 THEN - + 80 + ( - 30 ) + + + 70 ELSE + - 24 * + ( 95 ) * 84 + + - 2 END * COUNT( * ) * 10 + + 31 AS col0
----
1915251

skipif mysql # not compatible
query I rowsort label-7407
SELECT COUNT ( * ) * - CASE + - 30 WHEN + 1 THEN - + 80 + ( - 30 ) + + + 70 ELSE + - 24 * + ( 95 ) * 84 + + - 2 END * COUNT ( * ) * 10 + + 31 AS col0
----
1915251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7408
SELECT NULLIF ( + 35, 98 * - + 7 + - COUNT( * ) ) + + COALESCE ( + 26, - - CAST( NULL AS SIGNED ) ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7408
SELECT NULLIF ( + 35, 98 * - + 7 + - COUNT ( * ) ) + + COALESCE ( + 26, - - CAST ( NULL AS INTEGER ) ) AS col1
----
61

query I rowsort
SELECT DISTINCT COALESCE ( + 82, - 49 ) + + 85 + + 48
----
215

onlyif mysql # aggregate syntax: 
query II rowsort label-7410
SELECT 49 + - 91 + - COUNT( * ) AS col1, - 28 * + COUNT( * ) + + - 77
----
-43
-105

skipif mysql # not compatible
query II rowsort label-7410
SELECT 49 + - 91 + - COUNT ( * ) AS col1, - 28 * + COUNT ( * ) + + - 77
----
-43
-105

query I rowsort
SELECT ALL 24 + 97
----
121

query I rowsort
SELECT ALL ( + + 63 ) * + - 52
----
-3276

query I rowsort
SELECT DISTINCT 53 + - 25 AS col0
----
28

query I rowsort
SELECT 32 * + 88 AS col2
----
2816

onlyif mysql # aggregate syntax: 
query II rowsort label-7415
SELECT DISTINCT COALESCE ( - 88, + + 16 ) * 34 - + + COUNT( * ) + COUNT( * ) + + - 79 * COUNT( * ) + - 1 + + - 22 * - 26 * - + 7 - + - 49 col1, - 49
----
-7027
-49

skipif mysql # not compatible
query II rowsort label-7415
SELECT DISTINCT COALESCE ( - 88, + + 16 ) * 34 - + + COUNT ( * ) + COUNT ( * ) + + - 79 * COUNT ( * ) + - 1 + + - 22 * - 26 * - + 7 - + - 49 col1, - 49
----
-7027
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7416
SELECT DISTINCT + 24 + + CAST( NULL AS SIGNED ) + - ( 2 ) * - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT + 24 + + CAST ( NULL AS INTEGER ) + - ( 2 ) * - 31 AS col0
----
NULL

query I rowsort
SELECT ALL ( 15 ) * + 55 + - 3
----
822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7418
SELECT COALESCE ( NULLIF ( CAST( + + 28 AS SIGNED ), - 12 * - CASE + 13 WHEN + + ( + 29 ) * 77 * 74 THEN CAST( CAST( NULL AS SIGNED ) AS SIGNED ) END ), 98 * - + 20, + 32 * + 86 - 87 + 30 ) - - 75
----
103

skipif mysql # not compatible
query I rowsort label-7418
SELECT COALESCE ( NULLIF ( CAST ( + + 28 AS INTEGER ), - 12 * - CASE + 13 WHEN + + ( + 29 ) * 77 * 74 THEN CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) END ), 98 * - + 20, + 32 * + 86 - 87 + 30 ) - - 75
----
103

query II rowsort
SELECT 5, COALESCE ( 97, + - ( 10 ) + 18 ) + + 70 AS col1
----
5
167

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ALL 34 - + 94 + - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL 34 - + 94 + - COUNT ( * )
----
-61

query I rowsort
SELECT 64 - + - 0 - - ( - 80 ) * + 20 col2
----
-1536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7422
SELECT ALL - CAST( - - 82 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL - CAST ( - - 82 AS INTEGER )
----
-82

query I rowsort
SELECT DISTINCT - - 51 * 63 + + + 80 * - 33 col2
----
573

query I rowsort
SELECT DISTINCT - 57 * + 3
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7425
SELECT 76 + 47 - - 56 AS col1, 6 + - 14 * - CASE - 55 WHEN COUNT( * ) + + + ( + COALESCE ( - - 97, - 23, CAST( NULL AS SIGNED ) * - COUNT( * ) ) ) * 71 + + COUNT( * ) + 13 + + 46 THEN NULL WHEN - + 74 THEN NULL ELSE + 71 END * 28
----
179
27838

skipif mysql # not compatible
query II rowsort label-7425
SELECT 76 + 47 - - 56 AS col1, 6 + - 14 * - CASE - 55 WHEN COUNT ( * ) + + + ( + COALESCE ( - - 97, - 23, CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) ) * 71 + + COUNT ( * ) + 13 + + 46 THEN NULL WHEN - + 74 THEN NULL ELSE + 71 END * 28
----
179
27838

onlyif mysql # DIV for integer division: 
query I rowsort label-7426
SELECT NULLIF ( 16, - - 7 ) DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-7426
SELECT NULLIF ( 16, - - 7 ) / + 54
----
0

query I rowsort
SELECT DISTINCT - + 84 * + + 18
----
-1512

query I rowsort
SELECT 66 - - 29
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT ALL MIN( 98 )
----
98

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL MIN ( 98 )
----
98

query I rowsort
SELECT ALL + - 96 + - 10 AS col1
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT ALL - COUNT( * ) * 45 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL - COUNT ( * ) * 45 AS col2
----
-45

query II rowsort
SELECT ( ( + 16 ) ), - 79 * + 31 AS col2
----
16
-2449

onlyif mysql # aggregate syntax: 
query II rowsort label-7433
SELECT DISTINCT - - CASE 50 WHEN COUNT( * ) - + AVG ( DISTINCT + 11 ) THEN + 2 END + - MIN( - + 33 ), - COUNT( * ) col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7433
SELECT DISTINCT - - CASE 50 WHEN COUNT ( * ) - + AVG ( DISTINCT + 11 ) THEN + 2 END + - MIN ( - + 33 ), - COUNT ( * ) col1
----
NULL
-1

query I rowsort
SELECT - 26 + + 55 * + - 88 + - 30
----
-4896

query I rowsort
SELECT + ( - + 99 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7436
SELECT DISTINCT + ( 83 ) + MIN( DISTINCT 1 ) * + 20, + 69 AS col0
----
103
69

skipif mysql # not compatible
query II rowsort label-7436
SELECT DISTINCT + ( 83 ) + MIN ( DISTINCT 1 ) * + 20, + 69 AS col0
----
103
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT - COUNT( * ) + + 42 col2
----
41

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT - COUNT ( * ) + + 42 col2
----
41

query I rowsort
SELECT ALL 83 + + ( + - 97 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT ALL - NULLIF ( + - 75, COUNT( * ) ) * - - 54 * - COUNT( * )
----
-4050

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL - NULLIF ( + - 75, COUNT ( * ) ) * - - 54 * - COUNT ( * )
----
-4050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7440
SELECT DISTINCT + SUM( + CAST( NULL AS SIGNED ) ) + - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT + SUM ( + CAST ( NULL AS INTEGER ) ) + - 89 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7441
SELECT DISTINCT - 37 + 39 - + + CAST( NULL AS SIGNED ) + - - ( + 24 ) / COALESCE ( 38, ( - ( 61 ) ) / - CASE - 4 WHEN 46 THEN NULL ELSE + - 76 END ) col0, - 47
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-7441
SELECT DISTINCT - 37 + 39 - + + CAST ( NULL AS INTEGER ) + - - ( + 24 ) / COALESCE ( 38, ( - ( 61 ) ) / - CASE - 4 WHEN 46 THEN NULL ELSE + - 76 END ) col0, - 47
----
NULL
-47

query I rowsort
SELECT + 41 + 83 AS col2
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-7443
SELECT DISTINCT CASE 72 WHEN - + 3 THEN NULL WHEN + - 89 THEN NULL ELSE - + 19 DIV + 18 + + 17 END AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT CASE 72 WHEN - + 3 THEN NULL WHEN + - 89 THEN NULL ELSE - + 19 / + 18 + + 17 END AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT - 70 + - 83 * + + SUM( DISTINCT - 68 ) AS col2
----
5574

skipif mysql # not compatible
query I rowsort label-7444
SELECT - 70 + - 83 * + + SUM ( DISTINCT - 68 ) AS col2
----
5574

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT - MIN( + ( - 32 ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-7445
SELECT - MIN ( + ( - 32 ) ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT - 46 + ( - + COUNT( * ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-7446
SELECT - 46 + ( - + COUNT ( * ) ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT + COUNT( * ) - + COUNT( * ) - - 17 * - 96 * + 81 * + + 44 col1
----
-5816448

skipif mysql # not compatible
query I rowsort label-7447
SELECT + COUNT ( * ) - + COUNT ( * ) - - 17 * - 96 * + 81 * + + 44 col1
----
-5816448

query I rowsort
SELECT ALL 8 * - 90 - - + 89 * - 26
----
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT + MIN( DISTINCT - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-7449
SELECT + MIN ( DISTINCT - 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT + 27 * COUNT( * ) * + 31 + 91 * - 22
----
-1165

skipif mysql # not compatible
query I rowsort label-7450
SELECT + 27 * COUNT ( * ) * + 31 + 91 * - 22
----
-1165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7451
SELECT ALL - CAST( + - 77 AS SIGNED ) * - 21 * COUNT( 71 )
----
-1617

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL - CAST ( + - 77 AS INTEGER ) * - 21 * COUNT ( 71 )
----
-1617

onlyif mysql # DIV for integer division: 
query I rowsort label-7452
SELECT + 33 DIV + 96 + + - 50
----
-50

skipif mysql # not compatible
query I rowsort label-7452
SELECT + 33 / + 96 + + - 50
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7453
SELECT ALL 74 * COALESCE ( 8, + MIN( + ( - ( + + 56 ) ) ) * - 37 + - ( 55 ) + + CAST( + 16 AS SIGNED ) )
----
592

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL 74 * COALESCE ( 8, + MIN ( + ( - ( + + 56 ) ) ) * - 37 + - ( 55 ) + + CAST ( + 16 AS INTEGER ) )
----
592

query I rowsort
SELECT DISTINCT + - COALESCE ( 90, + + 3 ) col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT DISTINCT + COUNT( * ) * - ( + 33 ) * NULLIF ( - - 81, + 10 ) + - 82 col2
----
-2755

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT + COUNT ( * ) * - ( + 33 ) * NULLIF ( - - 81, + 10 ) + - 82 col2
----
-2755

query I rowsort
SELECT + + 0 * - 33 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT ALL + + COUNT( DISTINCT 58 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL + + COUNT ( DISTINCT 58 ) AS col1
----
1

query I rowsort
SELECT - 65 * + 50 + - 58 AS col1
----
-3308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7459
SELECT + + COALESCE ( - - ( + 18 ), + 38, + + CAST( - + MIN( + 99 ) AS SIGNED ) ) * MAX( ( + + 20 ) ) * - 22 + - 93 AS col1
----
-8013

skipif mysql # not compatible
query I rowsort label-7459
SELECT + + COALESCE ( - - ( + 18 ), + 38, + + CAST ( - + MIN ( + 99 ) AS INTEGER ) ) * MAX ( ( + + 20 ) ) * - 22 + - 93 AS col1
----
-8013

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7460
SELECT ALL 89 * 15 * + CAST( - - 89 AS SIGNED ) * - - CAST( NULL AS SIGNED ) + + 12 - + 12 * + 65 / - + CAST( - CAST( - 71 AS SIGNED ) AS DECIMAL ) * - COUNT( * ) * 45 * + 30 * + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL 89 * 15 * + CAST ( - - 89 AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + + 12 - + 12 * + 65 / - + CAST ( - CAST ( - 71 AS INTEGER ) AS REAL ) * - COUNT ( * ) * 45 * + 30 * + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7461
SELECT DISTINCT - 17 * - + 36 + CASE COUNT( * ) WHEN + ( - COALESCE ( + 76, + CAST( - - ( + 97 ) AS SIGNED ) ) ) THEN + - 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT - 17 * - + 36 + CASE COUNT ( * ) WHEN + ( - COALESCE ( + 76, + CAST ( - - ( + 97 ) AS INTEGER ) ) ) THEN + - 89 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT ALL + CASE + 93 WHEN + 45 THEN COUNT( * ) / + 79 / 83 END * 52 + MIN( DISTINCT + 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL + CASE + 93 WHEN + 45 THEN COUNT ( * ) / + 79 / 83 END * 52 + MIN ( DISTINCT + 41 )
----
NULL

query I rowsort
SELECT - 97 * + - 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7464
SELECT + + 88 - - ( - 14 ) DIV - 41
----
88

skipif mysql # not compatible
query I rowsort label-7464
SELECT + + 88 - - ( - 14 ) / - 41
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7465
SELECT ALL - COUNT( * ) + + 12 AS col0, 43 + - COUNT( * )
----
11
42

skipif mysql # not compatible
query II rowsort label-7465
SELECT ALL - COUNT ( * ) + + 12 AS col0, 43 + - COUNT ( * )
----
11
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7466
SELECT + - NULLIF ( + COUNT( * ), - CASE 49 WHEN + ( - - CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 27 THEN NULL WHEN + AVG ( 60 ) + - 34 + + COUNT( * ) THEN 82 END * - - 58 DIV + - CASE + 96 WHEN 90 THEN NULL WHEN - - 44 + - 70 THEN + - 30 + + - MIN( ALL + 33 ) * - 97 * + - 32 + + 33 END ) * - + 24 * + NULLIF ( - CAST( + 49 AS SIGNED ), + CAST( + 79 AS DECIMAL ) ) - 69 DIV COUNT( * )
----
-1245

skipif mysql # not compatible
query I rowsort label-7466
SELECT + - NULLIF ( + COUNT ( * ), - CASE 49 WHEN + ( - - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 27 THEN NULL WHEN + AVG ( 60 ) + - 34 + + COUNT ( * ) THEN 82 END * - - 58 / + - CASE + 96 WHEN 90 THEN NULL WHEN - - 44 + - 70 THEN + - 30 + + - MIN ( ALL + 33 ) * - 97 * + - 32 + + 33 END ) * - + 24 * + NULLIF ( - CAST ( + 49 AS INTEGER ), + CAST ( + 79 AS REAL ) ) - 69 / COUNT ( * )
----
-1245

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT - - 7 * - COUNT( * ) + 24 * COUNT( * ) - + 27
----
-10

skipif mysql # not compatible
query I rowsort label-7467
SELECT - - 7 * - COUNT ( * ) + 24 * COUNT ( * ) - + 27
----
-10

query I rowsort
SELECT DISTINCT + - 64 + + - 22
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7469
SELECT ALL 56 * NULLIF ( 58, 71 ) + + 97 + - - 11 - - - 49 + - - 75 + 4 - CAST( + 4 AS SIGNED ) / - CASE 23 WHEN 51 THEN 71 END * CAST( NULL AS SIGNED ) + 33 * - ( - - NULLIF ( 33, 3 * 14 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL 56 * NULLIF ( 58, 71 ) + + 97 + - - 11 - - - 49 + - - 75 + 4 - CAST ( + 4 AS INTEGER ) / - CASE 23 WHEN 51 THEN 71 END * CAST ( NULL AS INTEGER ) + 33 * - ( - - NULLIF ( 33, 3 * 14 ) )
----
NULL

query I rowsort
SELECT - 89 * - 27
----
2403

onlyif mysql # DIV for integer division: 
query I rowsort label-7471
SELECT ALL + 78 DIV + 63 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL + 78 / + 63 AS col2
----
1

query II rowsort
SELECT ALL - ( - 7 ) - 50 AS col1, - 87 AS col2
----
-43
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT DISTINCT COALESCE ( COUNT( * ), + 72 * + + 74 + - ( + 7 ), - ( - COUNT( * ) ) + - - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT COALESCE ( COUNT ( * ), + 72 * + + 74 + - ( + 7 ), - ( - COUNT ( * ) ) + - - 41 )
----
1

query I rowsort
SELECT - 29 * + 73
----
-2117

query I rowsort
SELECT DISTINCT ( - 90 ) col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT - SUM( 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-7476
SELECT - SUM ( 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT ALL - 88 * COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL - 88 * COUNT ( * )
----
-88

query II rowsort
SELECT - 99 * - ( 88 ) AS col0, 33 * - 72 AS col2
----
8712
-2376

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7479
SELECT ALL - 16 * + 71 * - ( - NULLIF ( + + 15, + - 31 * - NULLIF ( - + 3, + MAX( + 15 ) ) / - + 88 + - + 80 / - COUNT( * ) - + - CAST( NULL AS DECIMAL ) + COUNT( * ) * - COUNT( * ) * COUNT( * ) + - - 38 + + COUNT( * ) + COUNT( * ) - MIN( ALL - 63 ) * + COUNT( * ) * + - ( + 55 ) * - 78 * - - 73 * - 0 * + 83 ) )
----
-17040

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL - 16 * + 71 * - ( - NULLIF ( + + 15, + - 31 * - NULLIF ( - + 3, + MAX ( + 15 ) ) / - + 88 + - + 80 / - COUNT ( * ) - + - CAST ( NULL AS REAL ) + COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) + - - 38 + + COUNT ( * ) + COUNT ( * ) - MIN ( ALL - 63 ) * + COUNT ( * ) * + - ( + 55 ) * - 78 * - - 73 * - 0 * + 83 ) )
----
-17040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7480
SELECT ALL + 28 AS col1, COUNT( DISTINCT ( 88 ) ) + MIN( + 84 ) * - + CAST( NULL AS SIGNED )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-7480
SELECT ALL + 28 AS col1, COUNT ( DISTINCT ( 88 ) ) + MIN ( + 84 ) * - + CAST ( NULL AS INTEGER )
----
28
NULL

query I rowsort
SELECT ALL - 89 * 58 AS col1
----
-5162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7482
SELECT CAST( - + 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-7482
SELECT CAST ( - + 16 AS INTEGER )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7483
SELECT - 57 - 38 / + NULLIF ( - CAST( NULL AS SIGNED ), ( - COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT - 57 - 38 / + NULLIF ( - CAST ( NULL AS INTEGER ), ( - COUNT ( * ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7484
SELECT + - ( 31 ) DIV - + ( - 99 ) + + COUNT( + - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-7484
SELECT + - ( 31 ) / - + ( - 99 ) + + COUNT ( + - 84 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7485
SELECT ALL 42 DIV + 15 + - 97 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL 42 / + 15 + - 97 AS col0
----
-95

query I rowsort
SELECT + - 64 * + 80 - 12 AS col1
----
-5132

onlyif mysql # DIV for integer division: 
query I rowsort label-7487
SELECT ALL 58 DIV 31
----
1

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL 58 / 31
----
1

query I rowsort
SELECT ALL 76 * + - 14 AS col2
----
-1064

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT - 45 DIV + + 43 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7489
SELECT - 45 / + + 43 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7490
SELECT DISTINCT + ( + CAST( 37 AS SIGNED ) ) AS col1, 61
----
37
61

skipif mysql # not compatible
query II rowsort label-7490
SELECT DISTINCT + ( + CAST ( 37 AS INTEGER ) ) AS col1, 61
----
37
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7491
SELECT ALL + + 14 DIV + - 32 + - + 10 col2
----
-10

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL + + 14 / + - 32 + - + 10 col2
----
-10

query I rowsort
SELECT + - 77 - 3 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT ALL + COUNT( * ) * + - 16 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL + COUNT ( * ) * + - 16 AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT + + ( + 88 ) DIV + 37 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7494
SELECT + + ( + 88 ) / + 37 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT ALL + + COALESCE ( - - 53, + 20 - + + COUNT( * ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL + + COALESCE ( - - 53, + 20 - + + COUNT ( * ) ) AS col0
----
53

query I rowsort
SELECT + - 28 * + + 69 AS col1
----
-1932

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT - - 17 + + - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-7497
SELECT - - 17 + + - COUNT ( * )
----
16

query II rowsort
SELECT + 46 AS col1, - 27 AS col1
----
46
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT + NULLIF ( + 43, - + 36 ) + - + 18 * + MIN( - + 45 ) * + 36 AS col1
----
29203

skipif mysql # not compatible
query I rowsort label-7499
SELECT + NULLIF ( + 43, - + 36 ) + - + 18 * + MIN ( - + 45 ) * + 36 AS col1
----
29203

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT - MAX( DISTINCT + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-7500
SELECT - MAX ( DISTINCT + 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT COALESCE ( - 57, + 25 + - - COUNT( * ) ) + + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-7501
SELECT COALESCE ( - 57, + 25 + - - COUNT ( * ) ) + + COUNT ( * )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7502
SELECT ALL 58 AS col2, AVG ( ALL - 63 ) + - CAST( NULL AS SIGNED ) AS col2, - 97 col0
----
58
NULL
-97

skipif mysql # not compatible
query III rowsort label-7502
SELECT ALL 58 AS col2, AVG ( ALL - 63 ) + - CAST ( NULL AS INTEGER ) AS col2, - 97 col0
----
58
NULL
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7503
SELECT 42 + - COALESCE ( NULLIF ( + - 71, - - COUNT( * ) DIV 92 - ( + - 39 ) + + 76 + - CAST( NULL AS SIGNED ) + + + CAST( NULL AS DECIMAL ) + - NULLIF ( + ( - 35 ), - 81 ) DIV + 70 + 9 ), - 92, + + 3 - - + NULLIF ( + COUNT( * ), 43 DIV - 3 * + NULLIF ( CASE + 50 WHEN - 17 THEN 53 END, - CASE - 67 WHEN 59 THEN CASE WHEN NOT + 6 <= ( ( + 88 ) ) THEN NULL ELSE 8 - + 29 * CAST( NULL AS SIGNED ) END END ) ) + + 94 DIV + 25 ) * COUNT( DISTINCT - 76 ) AS col1
----
113

skipif mysql # not compatible
query I rowsort label-7503
SELECT 42 + - COALESCE ( NULLIF ( + - 71, - - COUNT ( * ) / 92 - ( + - 39 ) + + 76 + - CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS REAL ) + - NULLIF ( + ( - 35 ), - 81 ) / + 70 + 9 ), - 92, + + 3 - - + NULLIF ( + COUNT ( * ), 43 / - 3 * + NULLIF ( CASE + 50 WHEN - 17 THEN 53 END, - CASE - 67 WHEN 59 THEN CASE WHEN NOT + 6 <= ( ( + 88 ) ) THEN NULL ELSE 8 - + 29 * CAST ( NULL AS INTEGER ) END END ) ) + + 94 / + 25 ) * COUNT ( DISTINCT - 76 ) AS col1
----
113

query II rowsort
SELECT ALL 15 AS col0, + ( + - 38 )
----
15
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7505
SELECT ALL ( - - NULLIF ( + COUNT( - 93 ), + 19 + 52 * ( - - CASE + COALESCE ( 49, + 7 ) WHEN 14 DIV - 83 DIV COALESCE ( + COUNT( * ), - 49, + - 78 ) - + + SUM( DISTINCT + 91 ) THEN NULL WHEN + 74 THEN - 45 ELSE NULL END ) + + 18 ) ) * ( + + 82 ) DIV + + 41 - - + 54 AS col0, - 87 * - 98 AS col1
----
56
8526

skipif mysql # not compatible
query II rowsort label-7505
SELECT ALL ( - - NULLIF ( + COUNT ( - 93 ), + 19 + 52 * ( - - CASE + COALESCE ( 49, + 7 ) WHEN 14 / - 83 / COALESCE ( + COUNT ( * ), - 49, + - 78 ) - + + SUM ( DISTINCT + 91 ) THEN NULL WHEN + 74 THEN - 45 ELSE NULL END ) + + 18 ) ) * ( + + 82 ) / + + 41 - - + 54 AS col0, - 87 * - 98 AS col1
----
56
8526

query I rowsort
SELECT 58 * 54
----
3132

query I rowsort
SELECT NULLIF ( - 13, - 4 ) + + 30 + + 52 AS col2
----
69

query I rowsort
SELECT DISTINCT 59 - + 7 * - - 66 AS col0
----
-403

onlyif mysql # DIV for integer division: 
query II rowsort label-7509
SELECT ALL 36, 70 DIV + 11 col1
----
36
6

skipif mysql # not compatible
query II rowsort label-7509
SELECT ALL 36, 70 / + 11 col1
----
36
6

query I rowsort
SELECT 64 + + 31 * - 39
----
-1145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7511
SELECT ALL 89, + 97 * + 1 * + + CAST( NULL AS SIGNED ) + + 45 col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-7511
SELECT ALL 89, + 97 * + 1 * + + CAST ( NULL AS INTEGER ) + + 45 col1
----
89
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7512
SELECT DISTINCT + COUNT( * ) * - NULLIF ( - 46, 65 ) DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT + COUNT ( * ) * - NULLIF ( - 46, 65 ) / - 78
----
0

query I rowsort
SELECT ALL - 85 + - 41 col2
----
-126

query II rowsort
SELECT - 0 AS col0, + 66 * 67
----
0
4422

query I rowsort
SELECT 63 + - 61 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7516
SELECT ALL + 78 * + 63 + + - 77 + - 77 * + CASE COUNT( * ) WHEN COALESCE ( + 62, - SUM( DISTINCT + 98 ) * - 45, + 47 ) THEN - - 83 DIV MAX( ALL + 62 ) + - - 42 ELSE + + COUNT( * ) DIV + + 48 - 52 + + + 5 END + COUNT( * ) + - - 56 * + ( + MAX( ALL - 10 ) ) AS col0
----
7897

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL + 78 * + 63 + + - 77 + - 77 * + CASE COUNT ( * ) WHEN COALESCE ( + 62, - SUM ( DISTINCT + 98 ) * - 45, + 47 ) THEN - - 83 / MAX ( ALL + 62 ) + - - 42 ELSE + + COUNT ( * ) / + + 48 - 52 + + + 5 END + COUNT ( * ) + - - 56 * + ( + MAX ( ALL - 10 ) ) AS col0
----
7897

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + - 2 * - + 61 + + COUNT( ALL 83 ) + - 80 * 65
----
-5077

skipif mysql # not compatible
query I rowsort label-7517
SELECT + - 2 * - + 61 + + COUNT ( ALL 83 ) + - 80 * 65
----
-5077

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT ALL - - CASE - 92 WHEN + 89 THEN NULL WHEN + COUNT( + 68 ) THEN NULL ELSE + 16 * - 88 + + 84 END AS col0
----
-1324

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL - - CASE - 92 WHEN + 89 THEN NULL WHEN + COUNT ( + 68 ) THEN NULL ELSE + 16 * - 88 + + 84 END AS col0
----
-1324

query I rowsort
SELECT ALL - 87 + + 5 + + 69 col0
----
-13

query II rowsort
SELECT 81 * - 22 + - - 28 * 76 AS col1, 96 AS col0
----
346
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7521
SELECT DISTINCT - 95, - CASE + - 38 WHEN - 0 THEN + - 66 * + + 37 - - 33 WHEN COUNT( * ) + + + 33 + 89 THEN NULL ELSE NULL END + 48 AS col0
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-7521
SELECT DISTINCT - 95, - CASE + - 38 WHEN - 0 THEN + - 66 * + + 37 - - 33 WHEN COUNT ( * ) + + + 33 + 89 THEN NULL ELSE NULL END + 48 AS col0
----
-95
NULL

query I rowsort
SELECT ALL + + 14 + + + 68
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL - + NULLIF ( - - 10, + MIN( ALL - 89 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - + NULLIF ( - - 10, + MIN ( ALL - 89 ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT DISTINCT + 84 + 93 * COUNT( * )
----
177

skipif mysql # not compatible
query I rowsort label-7524
SELECT DISTINCT + 84 + 93 * COUNT ( * )
----
177

query II rowsort
SELECT DISTINCT - - 44, + 80 AS col2
----
44
80

query I rowsort
SELECT ALL + - 22 + + ( 55 )
----
33

query I rowsort
SELECT - ( - 50 ) * + - 12 * ( + 81 ) AS col2
----
-48600

query I rowsort
SELECT - 88 * 50 * + - 86 AS col0
----
378400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7529
SELECT ALL + - 47 DIV 53 AS col0, - MIN( DISTINCT - 87 )
----
0
87

skipif mysql # not compatible
query II rowsort label-7529
SELECT ALL + - 47 / 53 AS col0, - MIN ( DISTINCT - 87 )
----
0
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7530
SELECT ( 68 ) AS col0, + COUNT( * ) col1
----
68
1

skipif mysql # not compatible
query II rowsort label-7530
SELECT ( 68 ) AS col0, + COUNT ( * ) col1
----
68
1

query I rowsort
SELECT 13 + 86
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7532
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) * - + 79
----
-79

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) * - + 79
----
-79

query I rowsort
SELECT ALL + 10 - - + 67 + 98
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7534
SELECT ALL - + CAST( NULL AS SIGNED ), + 92 AS col2
----
NULL
92

skipif mysql # not compatible
query II rowsort label-7534
SELECT ALL - + CAST ( NULL AS INTEGER ), + 92 AS col2
----
NULL
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7535
SELECT DISTINCT + + COUNT( + CAST( + 47 AS SIGNED ) ) * + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7535
SELECT DISTINCT + + COUNT ( + CAST ( + 47 AS INTEGER ) ) * + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT 13 * + 58
----
754

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT 24 * - NULLIF ( 9, 6 * 92 ) * 77 * - 5 * 85 + + + ( ( + 19 ) ) - + + COUNT( * ) AS col0
----
7068618

skipif mysql # not compatible
query I rowsort label-7537
SELECT 24 * - NULLIF ( 9, 6 * 92 ) * 77 * - 5 * 85 + + + ( ( + 19 ) ) - + + COUNT ( * ) AS col0
----
7068618

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT COUNT( * ) - + 84 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-7538
SELECT COUNT ( * ) - + 84 AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT - SUM( + - 59 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7539
SELECT - SUM ( + - 59 ) AS col2
----
59

query I rowsort
SELECT ( - 24 ) + - 70
----
-94

query I rowsort
SELECT ( - 95 ) + + 15
----
-80

query II rowsort
SELECT 67 - + - 56 AS col1, ( + ( - ( + 60 ) ) )
----
123
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL 75 + COUNT( * ) + - - 7
----
83

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL 75 + COUNT ( * ) + - - 7
----
83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7544
SELECT CAST( - 89 AS SIGNED ) DIV - 68
----
1

skipif mysql # not compatible
query I rowsort label-7544
SELECT CAST ( - 89 AS INTEGER ) / - 68
----
1

query I rowsort
SELECT ALL 52 + - - 5
----
57

query I rowsort
SELECT 99 + + + CASE 44 WHEN 44 THEN + - 44 * + - 99 END AS col0
----
4455

onlyif mysql # DIV for integer division: 
query I rowsort label-7547
SELECT DISTINCT 45 + 62 DIV 82 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT 45 + 62 / 82 AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7548
SELECT 73 / - CAST( NULL AS SIGNED ) * - - 5 * 29 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT 73 / - CAST ( NULL AS INTEGER ) * - - 5 * 29 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7549
SELECT 11 - SUM( DISTINCT + 32 ) DIV 14 + - + 82 + - + COUNT( * ) + + COALESCE ( COUNT( * ), - 26 )
----
-73

skipif mysql # not compatible
query I rowsort label-7549
SELECT 11 - SUM ( DISTINCT + 32 ) / 14 + - + 82 + - + COUNT ( * ) + + COALESCE ( COUNT ( * ), - 26 )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-7550
SELECT ALL + + 62 + ( + ( 27 ) ) + + COUNT( * ) AS col2, + 3 AS col2
----
90
3

skipif mysql # not compatible
query II rowsort label-7550
SELECT ALL + + 62 + ( + ( 27 ) ) + + COUNT ( * ) AS col2, + 3 AS col2
----
90
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7551
SELECT - 36 DIV 94 + + - 48, - 20 AS col2
----
-48
-20

skipif mysql # not compatible
query II rowsort label-7551
SELECT - 36 / 94 + + - 48, - 20 AS col2
----
-48
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7552
SELECT DISTINCT - COUNT( * ) DIV ( - + ( - - 31 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT - COUNT ( * ) / ( - + ( - - 31 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT DISTINCT + 14 DIV NULLIF ( 20, 43 )
----
0

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT + 14 / NULLIF ( 20, 43 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT ALL - MAX( ALL - 14 ) * - 99 + + 54 + ( - 17 ) * - 80 + + 25
----
53

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL - MAX ( ALL - 14 ) * - 99 + + 54 + ( - 17 ) * - 80 + + 25
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT CASE - + 35 WHEN - - 56 THEN + 30 * - - COUNT( - - 65 ) ELSE NULL END - + - 26 * + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT CASE - + 35 WHEN - - 56 THEN + 30 * - - COUNT ( - - 65 ) ELSE NULL END - + - 26 * + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT + - SUM( DISTINCT - + ( 24 ) )
----
24

skipif mysql # not compatible
query I rowsort label-7556
SELECT + - SUM ( DISTINCT - + ( 24 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL + + MAX( 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL + + MAX ( 59 ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT + - NULLIF ( 4, - + 62 ) * - COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT + - NULLIF ( 4, - + 62 ) * - COUNT ( * ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT ALL + ( 54 ) * + - COUNT( * ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL + ( 54 ) * + - COUNT ( * ) AS col0
----
-54

query I rowsort
SELECT ALL + + COALESCE ( 54, + 54, - 77 ) col1
----
54

query I rowsort
SELECT 29 * + + 99 + 2
----
2873

query I rowsort
SELECT - 24 * 50
----
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7563
SELECT - CASE - 13 WHEN - 95 THEN CAST( NULL AS SIGNED ) - + - 23 - - 72 + - - COALESCE ( + 73, ( - 6 ), - 50 ) / - - COUNT( * ) * - 98 ELSE NULL END * 42 + - + 92 / - COUNT( * ) * + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT - CASE - 13 WHEN - 95 THEN CAST ( NULL AS INTEGER ) - + - 23 - - 72 + - - COALESCE ( + 73, ( - 6 ), - 50 ) / - - COUNT ( * ) * - 98 ELSE NULL END * 42 + - + 92 / - COUNT ( * ) * + 39 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT - COUNT( * ) * + 19 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7564
SELECT - COUNT ( * ) * + 19 AS col2
----
-19

query I rowsort
SELECT DISTINCT 12 + + 54
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-7566
SELECT 40, - 75 * - COUNT( * ) AS col2
----
40
75

skipif mysql # not compatible
query II rowsort label-7566
SELECT 40, - 75 * - COUNT ( * ) AS col2
----
40
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT DISTINCT + 84 + + + 66 * - 87 * - - COUNT( * )
----
-5658

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT + 84 + + + 66 * - 87 * - - COUNT ( * )
----
-5658

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT ALL - 30 + COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL - 30 + COUNT ( * ) AS col1
----
-29

query I rowsort
SELECT ALL 11 + + 64 col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7570
SELECT - CASE + 24 WHEN + - 76 THEN NULL ELSE COUNT( * ) END, - COUNT( * ) + - 55 AS col0
----
-1
-56

skipif mysql # not compatible
query II rowsort label-7570
SELECT - CASE + 24 WHEN + - 76 THEN NULL ELSE COUNT ( * ) END, - COUNT ( * ) + - 55 AS col0
----
-1
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7571
SELECT - ( - 55 ) + 19 + 84 * - + CASE - CAST( NULL AS SIGNED ) WHEN + 15 THEN COUNT( ALL 99 ) + COALESCE ( 7, + MIN( 61 ) * - + 56 ) END * - + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT - ( - 55 ) + 19 + 84 * - + CASE - CAST ( NULL AS INTEGER ) WHEN + 15 THEN COUNT ( ALL 99 ) + COALESCE ( 7, + MIN ( 61 ) * - + 56 ) END * - + 17 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 22 + + - 0 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT - COUNT( DISTINCT + 17 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7573
SELECT - COUNT ( DISTINCT + 17 ) AS col2
----
-1

query I rowsort
SELECT ALL 98 + + 72 AS col2
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL SUM( ALL ( - + 61 ) ) + COUNT( * ) + - + 16 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL SUM ( ALL ( - + 61 ) ) + COUNT ( * ) + - + 16 AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7576
SELECT DISTINCT + COUNT( * ) * - ( 43 ) * ( + ( + + COALESCE ( - - ( 8 ), + - NULLIF ( - 33, + CASE - ( 46 ) WHEN 3 THEN + 20 + 67 DIV + - 57 * - + CAST( 32 AS SIGNED ) END DIV 74 * + 84 ) DIV + COALESCE ( + COUNT( ALL + 64 ), COUNT( * ) DIV + + 12 * + + COUNT( * ) + ( + 12 ), 44 - - NULLIF ( 89, COUNT( * ) DIV CAST( 2 AS SIGNED ) + - CAST( - 45 + 50 AS SIGNED ) * - 62 ) + MIN( 6 ) ) ) ) ) * - COALESCE ( + 40 * + 32, 28 + 27 * + 7 ) AS col2
----
440320

skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT + COUNT ( * ) * - ( 43 ) * ( + ( + + COALESCE ( - - ( 8 ), + - NULLIF ( - 33, + CASE - ( 46 ) WHEN 3 THEN + 20 + 67 / + - 57 * - + CAST ( 32 AS INTEGER ) END / 74 * + 84 ) / + COALESCE ( + COUNT ( ALL + 64 ), COUNT ( * ) / + + 12 * + + COUNT ( * ) + ( + 12 ), 44 - - NULLIF ( 89, COUNT ( * ) / CAST ( 2 AS INTEGER ) + - CAST ( - 45 + 50 AS INTEGER ) * - 62 ) + MIN ( 6 ) ) ) ) ) * - COALESCE ( + 40 * + 32, 28 + 27 * + 7 ) AS col2
----
440320

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT DISTINCT SUM( ALL + + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT SUM ( ALL + + 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT + NULLIF ( - 25, + 33 + - COUNT( * ) + AVG ( ( - 32 ) ) ) * - 91
----
2275

skipif mysql # not compatible
query I rowsort label-7578
SELECT + NULLIF ( - 25, + 33 + - COUNT ( * ) + AVG ( ( - 32 ) ) ) * - 91
----
2275

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT ALL 64 * - 7 + 86 + - COUNT( * ) * + - 77 / 66 + + CASE 94 WHEN + + 51 THEN NULL WHEN 64 / + 11 THEN 50 + + ( ( + 82 ) ) ELSE NULL END + - AVG ( - 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL 64 * - 7 + 86 + - COUNT ( * ) * + - 77 / 66 + + CASE 94 WHEN + + 51 THEN NULL WHEN 64 / + 11 THEN 50 + + ( ( + 82 ) ) ELSE NULL END + - AVG ( - 87 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 84 - + + 8 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT - + CASE ( + CASE - 12 WHEN + 3 THEN 9 * 7 * 41 + + - 44 END ) WHEN - + 73 * - + COUNT( * ) THEN NULL ELSE + 87 END + + 91 * - COUNT( * ) * + 80
----
-7367

skipif mysql # not compatible
query I rowsort label-7581
SELECT - + CASE ( + CASE - 12 WHEN + 3 THEN 9 * 7 * 41 + + - 44 END ) WHEN - + 73 * - + COUNT ( * ) THEN NULL ELSE + 87 END + + 91 * - COUNT ( * ) * + 80
----
-7367

query II rowsort
SELECT - 70 AS col1, 78 AS col1
----
-70
78

query I rowsort
SELECT - CASE - + NULLIF ( + 98, 75 ) WHEN + 47 THEN 45 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7584
SELECT + - 4 + - - NULLIF ( - CAST( + COUNT( * ) AS SIGNED ), + + 14 - + + ( COUNT( * ) ) + 21 * 56 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-7584
SELECT + - 4 + - - NULLIF ( - CAST ( + COUNT ( * ) AS INTEGER ), + + 14 - + + ( COUNT ( * ) ) + 21 * 56 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT + - MAX( 86 ) - - 24 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-7585
SELECT + - MAX ( 86 ) - - 24 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT + - COALESCE ( + 11, COALESCE ( - - ( + + COUNT( * ) ), - 80 ) ) * + ( 41 ) + - + 80 AS col1
----
-531

skipif mysql # not compatible
query I rowsort label-7586
SELECT + - COALESCE ( + 11, COALESCE ( - - ( + + COUNT ( * ) ), - 80 ) ) * + ( 41 ) + - + 80 AS col1
----
-531

query I rowsort
SELECT ALL - 35 * - 49 + + 17
----
1732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7588
SELECT + + 29 + 0 + + 64 * - COUNT( DISTINCT CAST( - ( - CAST( NULL AS SIGNED ) ) AS DECIMAL ) ) * 61 * + CAST( NULL AS SIGNED ) * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT + + 29 + 0 + + 64 * - COUNT ( DISTINCT CAST ( - ( - CAST ( NULL AS INTEGER ) ) AS REAL ) ) * 61 * + CAST ( NULL AS INTEGER ) * - 15
----
NULL

query I rowsort
SELECT ( + NULLIF ( + 19, + 14 ) ) AS col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7590
SELECT ALL + CAST( + 69 AS SIGNED ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL + CAST ( + 69 AS INTEGER ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT - 59 * + - 12 + + 26 + - 81 * + ( + 98 ) * + MIN( ALL - 22 ) - - + 96
----
175466

skipif mysql # not compatible
query I rowsort label-7591
SELECT - 59 * + - 12 + + 26 + - 81 * + ( + 98 ) * + MIN ( ALL - 22 ) - - + 96
----
175466

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7592
SELECT ALL - - 33 DIV - 93 - - 75 + - CAST( - - 73 AS SIGNED ) + 47 * - 59 AS col2
----
-2771

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL - - 33 / - 93 - - 75 + - CAST ( - - 73 AS INTEGER ) + 47 * - 59 AS col2
----
-2771

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT DISTINCT + - MAX( + 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT + - MAX ( + 88 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT + 46 * - CASE + + COUNT( * ) WHEN + 84 THEN NULL WHEN - 4 * - COUNT( * ) + 32 THEN + 5 END / - + 85 + 99 * + COUNT( - 17 ) + 97 * 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT + 46 * - CASE + + COUNT ( * ) WHEN + 84 THEN NULL WHEN - 4 * - COUNT ( * ) + 32 THEN + 5 END / - + 85 + 99 * + COUNT ( - 17 ) + 97 * 20 AS col2
----
NULL

query II rowsort
SELECT ALL + 42, 60 col2
----
42
60

query II rowsort
SELECT + 50 + 96 * + 32 AS col0, - ( - 34 ) * + - 42 * + 51
----
3122
-72828

query I rowsort
SELECT ALL - - 80 * - 27
----
-2160

query I rowsort
SELECT - ( 2 ) + - 80
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT ALL + 8 DIV - - ( + + 37 ) * - 95 * + + 62 col1
----
0

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL + 8 / - - ( + + 37 ) * - 95 * + + 62 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT + CASE + - COALESCE ( + + 9, - + SUM( DISTINCT - 44 ) + 88 - - 45 - + - 98 ) WHEN MAX( ALL - 7 ) / + 15 - + + SUM( - 82 ) + - - 60 + - - 97 / 91 - - 73 THEN + 76 * 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT + CASE + - COALESCE ( + + 9, - + SUM ( DISTINCT - 44 ) + 88 - - 45 - + - 98 ) WHEN MAX ( ALL - 7 ) / + 15 - + + SUM ( - 82 ) + - - 60 + - - 97 / 91 - - 73 THEN + 76 * 42 END
----
NULL

query I rowsort
SELECT ( + ( 77 ) )
----
77

query I rowsort
SELECT + 83 * + 95 AS col2
----
7885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7603
SELECT ALL - 61 * - 4 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL - 61 * - 4 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7604
SELECT ALL CAST( + 38 AS SIGNED ) * + CAST( + - 21 AS SIGNED ) + + - 8
----
-806

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL CAST ( + 38 AS INTEGER ) * + CAST ( + - 21 AS INTEGER ) + + - 8
----
-806

query I rowsort
SELECT DISTINCT - 90 * - - 9 + + 25 + + 75
----
-710

query I rowsort
SELECT COALESCE ( + 88, - 70 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7607
SELECT ALL MIN( - - 70 ) * + + 30 + - - COUNT( * ) * + 79 * 99 + + 31 * COUNT( 51 ) col2, 29 AS col1
----
9952
29

skipif mysql # not compatible
query II rowsort label-7607
SELECT ALL MIN ( - - 70 ) * + + 30 + - - COUNT ( * ) * + 79 * 99 + + 31 * COUNT ( 51 ) col2, 29 AS col1
----
9952
29

query I rowsort
SELECT - 5 * + 12 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7609
SELECT - 34 DIV - - 32 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7609
SELECT - 34 / - - 32 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT - CASE - 38 WHEN - - 68 THEN 7 - + - NULLIF ( - - COUNT( * ), 11 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT - CASE - 38 WHEN - - 68 THEN 7 - + - NULLIF ( - - COUNT ( * ), 11 ) ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7611
SELECT DISTINCT - 8 DIV - + CAST( AVG ( 80 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT - 8 / - + CAST ( AVG ( 80 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7612
SELECT DISTINCT 44 * + 22 * 77 + - 10, + 26 * - COUNT( * ) * - 73 AS col1
----
74526
1898

skipif mysql # not compatible
query II rowsort label-7612
SELECT DISTINCT 44 * + 22 * 77 + - 10, + 26 * - COUNT ( * ) * - 73 AS col1
----
74526
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT ALL + COUNT( * ) + NULLIF ( - MAX( - + 4 ), + 11 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL + COUNT ( * ) + NULLIF ( - MAX ( - + 4 ), + 11 ) AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7614
SELECT - COUNT( DISTINCT CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-7614
SELECT - COUNT ( DISTINCT CAST ( NULL AS REAL ) )
----
0

query I rowsort
SELECT ALL ( - 42 ) * - + 1 AS col2
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7616
SELECT DISTINCT - COUNT( - 64 ) - - CASE + 71 WHEN + - 37 * - - COUNT( * ) THEN + 90 * - MIN( + 84 ) * 53 - + 19 ELSE - 15 + + 82 DIV + 2 END + - 89
----
-64

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT - COUNT ( - 64 ) - - CASE + 71 WHEN + - 37 * - - COUNT ( * ) THEN + 90 * - MIN ( + 84 ) * 53 - + 19 ELSE - 15 + + 82 / + 2 END + - 89
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7617
SELECT ALL + NULLIF ( 18, - + CAST( 66 AS SIGNED ) * + + MIN( ALL + - 24 ) )
----
18

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL + NULLIF ( 18, - + CAST ( 66 AS INTEGER ) * + + MIN ( ALL + - 24 ) )
----
18

query I rowsort
SELECT - - ( + + 26 )
----
26

query I rowsort
SELECT ALL - 55 - 39
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT MIN( ALL - - 60 ) * - + 69 AS col2
----
-4140

skipif mysql # not compatible
query I rowsort label-7620
SELECT MIN ( ALL - - 60 ) * - + 69 AS col2
----
-4140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT 18 + + + 11 * + - 94 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT 18 + + + 11 * + - 94 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL SUM( 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL SUM ( 20 ) AS col2
----
20

query I rowsort
SELECT + - ( 65 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT + NULLIF ( + 89, - COUNT( * ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7624
SELECT + NULLIF ( + 89, - COUNT ( * ) ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7625
SELECT + 87 - NULLIF ( 66, 89 - + SUM( - 77 ) / 71 ), 94 * + 91 + - - 87 + COUNT( * ) * - 93 AS col2
----
21
8548

skipif mysql # not compatible
query II rowsort label-7625
SELECT + 87 - NULLIF ( 66, 89 - + SUM ( - 77 ) / 71 ), 94 * + 91 + - - 87 + COUNT ( * ) * - 93 AS col2
----
21
8548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7626
SELECT COALESCE ( + ( - + CAST( + CAST( ( 75 ) AS SIGNED ) AS SIGNED ) ), + 1 ) * 54 + + 65 AS col2, - 36 + + COUNT( * ) AS col2
----
-3985
-35

skipif mysql # not compatible
query II rowsort label-7626
SELECT COALESCE ( + ( - + CAST ( + CAST ( ( 75 ) AS INTEGER ) AS INTEGER ) ), + 1 ) * 54 + + 65 AS col2, - 36 + + COUNT ( * ) AS col2
----
-3985
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT CAST( 43 AS SIGNED ) * - 37 * - 2 AS col1
----
3182

skipif mysql # not compatible
query I rowsort label-7627
SELECT CAST ( 43 AS INTEGER ) * - 37 * - 2 AS col1
----
3182

query I rowsort
SELECT 57 * 0 * + 32 * - + 21 - - - 86 * - + 65 col0
----
5590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7629
SELECT - 40 * - + CAST( NULL AS SIGNED ) * + 33 + 6 + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT - 40 * - + CAST ( NULL AS INTEGER ) * + 33 + 6 + 85
----
NULL

query II rowsort
SELECT 69 * - 36, - 30 AS col1
----
-2484
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7631
SELECT ALL 95 + 67 + + - 82 DIV + - 57 + - 57
----
106

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL 95 + 67 + + - 82 / + - 57 + - 57
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-7632
SELECT DISTINCT - 16 AS col1, COUNT( * )
----
-16
1

skipif mysql # not compatible
query II rowsort label-7632
SELECT DISTINCT - 16 AS col1, COUNT ( * )
----
-16
1

query I rowsort
SELECT ALL 65 + + 11 AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT 57 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT 57 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 59 + - + 38 col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7636
SELECT DISTINCT 94 / - 68 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT 94 / - 68 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT CASE + ( COUNT( * ) ) WHEN + 52 THEN NULL ELSE - 69 * 13 END + 81 AS col1
----
-816

skipif mysql # not compatible
query I rowsort label-7637
SELECT CASE + ( COUNT ( * ) ) WHEN + 52 THEN NULL ELSE - 69 * 13 END + 81 AS col1
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT 92 * COUNT( * ) col2
----
92

skipif mysql # not compatible
query I rowsort label-7638
SELECT 92 * COUNT ( * ) col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7639
SELECT 2 - - - 82 DIV + MIN( ALL + 87 ) + + + 67
----
69

skipif mysql # not compatible
query I rowsort label-7639
SELECT 2 - - - 82 / + MIN ( ALL + 87 ) + + + 67
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT ALL + MIN( DISTINCT + + 73 ) + + 36 * 4 + + - 78 + 63 AS col1
----
202

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL + MIN ( DISTINCT + + 73 ) + + 36 * 4 + + - 78 + 63 AS col1
----
202

query I rowsort
SELECT DISTINCT - 12 * 70 AS col1
----
-840

query I rowsort
SELECT ALL 51 * + ( 58 )
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT 92 * + + COUNT( * ) * + 15
----
1380

skipif mysql # not compatible
query I rowsort label-7643
SELECT 92 * + + COUNT ( * ) * + 15
----
1380

query I rowsort
SELECT DISTINCT 86 - 98
----
-12

query I rowsort
SELECT 11 + + + 35
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7646
SELECT 64 * MAX( CAST( NULL AS SIGNED ) ) + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT 64 * MAX ( CAST ( NULL AS INTEGER ) ) + + 57
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7647
SELECT - 56 + + - COUNT( * ) * - 93 AS col0, 85 AS col1
----
37
85

skipif mysql # not compatible
query II rowsort label-7647
SELECT - 56 + + - COUNT ( * ) * - 93 AS col0, 85 AS col1
----
37
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT - ( + + SUM( ALL 20 ) ) + + 58
----
38

skipif mysql # not compatible
query I rowsort label-7648
SELECT - ( + + SUM ( ALL 20 ) ) + + 58
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT - MIN( + 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7649
SELECT - MIN ( + 71 ) AS col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-7650
SELECT 56 DIV - 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7650
SELECT 56 / - 63 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7651
SELECT ALL + 2 DIV - + 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL + 2 / - + 50 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT - + COUNT( - - 12 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7652
SELECT - + COUNT ( - - 12 ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7653
SELECT ALL - COALESCE ( + 98, - COUNT( * ) DIV - 54, 25 + + 17 DIV - + 93 - - - COUNT( * ) )
----
-98

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL - COALESCE ( + 98, - COUNT ( * ) / - 54, 25 + + 17 / - + 93 - - - COUNT ( * ) )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7654
SELECT DISTINCT + - COALESCE ( - - 95, - 72, + 50 * + COUNT( * ) * + ( + + 7 ) ) DIV + - 89 + - 54 * - NULLIF ( - 92, + + CAST( 40 AS SIGNED ) )
----
-4967

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT + - COALESCE ( - - 95, - 72, + 50 * + COUNT ( * ) * + ( + + 7 ) ) / + - 89 + - 54 * - NULLIF ( - 92, + + CAST ( 40 AS INTEGER ) )
----
-4967

onlyif mysql # DIV for integer division: 
query I rowsort label-7655
SELECT 36 DIV 6
----
6

skipif mysql # not compatible
query I rowsort label-7655
SELECT 36 / 6
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7656
SELECT ALL + 52 * - CAST( + 21 AS SIGNED ) AS col1
----
-1092

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL + 52 * - CAST ( + 21 AS INTEGER ) AS col1
----
-1092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7657
SELECT + COUNT( * ) + 65 * - 26 * - - 43 + - + 18 DIV - 48 * + 73 + - 78
----
-72747

skipif mysql # not compatible
query I rowsort label-7657
SELECT + COUNT ( * ) + 65 * - 26 * - - 43 + - + 18 / - 48 * + 73 + - 78
----
-72747

query II rowsort
SELECT ALL 78, - 99 + + 84 AS col0
----
78
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT - COUNT( * ) / - CASE - 55 WHEN - 42 THEN NULL WHEN + - 64 * - - SUM( + + 20 ) + - - ( + 5 ) THEN NULL WHEN 59 THEN - 49 * - + 62 + + COALESCE ( - 22, + 61, 9 ) * 4 + - - MIN( DISTINCT + 67 ) END + - 84 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7659
SELECT - COUNT ( * ) / - CASE - 55 WHEN - 42 THEN NULL WHEN + - 64 * - - SUM ( + + 20 ) + - - ( + 5 ) THEN NULL WHEN 59 THEN - 49 * - + 62 + + COALESCE ( - 22, + 61, 9 ) * 4 + - - MIN ( DISTINCT + 67 ) END + - 84 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7660
SELECT ALL + - 96 + + - NULLIF ( - 12, COUNT( * ) * - COALESCE ( - + COUNT( * ), + 11 ) - CASE + - 59 WHEN - + COUNT( * ) * + - 86 + + + 54 THEN - - 26 + - - COUNT( * ) WHEN + 40 THEN NULL WHEN 85 THEN 73 / 91 END + - CAST( NULL AS SIGNED ) ) + CASE - 97 WHEN - CAST( 45 AS SIGNED ) THEN - COUNT( ALL - 24 ) + + NULLIF ( - - MAX( + 5 ), - 3 ) ELSE NULL END * + AVG ( DISTINCT 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL + - 96 + + - NULLIF ( - 12, COUNT ( * ) * - COALESCE ( - + COUNT ( * ), + 11 ) - CASE + - 59 WHEN - + COUNT ( * ) * + - 86 + + + 54 THEN - - 26 + - - COUNT ( * ) WHEN + 40 THEN NULL WHEN 85 THEN 73 / 91 END + - CAST ( NULL AS INTEGER ) ) + CASE - 97 WHEN - CAST ( 45 AS INTEGER ) THEN - COUNT ( ALL - 24 ) + + NULLIF ( - - MAX ( + 5 ), - 3 ) ELSE NULL END * + AVG ( DISTINCT 99 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7661
SELECT - CAST( + 49 AS SIGNED ) - + - 51
----
2

skipif mysql # not compatible
query I rowsort label-7661
SELECT - CAST ( + 49 AS INTEGER ) - + - 51
----
2

query I rowsort
SELECT 92 + 95 AS col0
----
187

onlyif mysql # DIV for integer division: 
query I rowsort label-7663
SELECT 6 DIV + + 3 + + 33
----
35

skipif mysql # not compatible
query I rowsort label-7663
SELECT 6 / + + 3 + + 33
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ALL 96 * 18 * - 61 + 78 + 90 + SUM( - 30 ) - - 69 AS col1
----
-105201

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL 96 * 18 * - 61 + 78 + 90 + SUM ( - 30 ) - - 69 AS col1
----
-105201

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT DISTINCT + 40 * + COUNT( * ) + - 55 + + + ( + + 35 ) + - 5
----
15

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT + 40 * + COUNT ( * ) + - 55 + + + ( + + 35 ) + - 5
----
15

query I rowsort
SELECT 67 + - 92 AS col2
----
-25

query I rowsort
SELECT ALL ( - 53 ) * + 97 + 99 + - 1 AS col2
----
-5043

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT DISTINCT - NULLIF ( 98, - 56 * + - COUNT( * ) * + ( - + 20 ) )
----
-98

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT - NULLIF ( 98, - 56 * + - COUNT ( * ) * + ( - + 20 ) )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT 47 * 1 DIV + 35 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7669
SELECT 47 * 1 / + 35 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT SUM( ALL + 35 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-7670
SELECT SUM ( ALL + 35 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL 12 + ( + - 81 ) + - - COUNT( * ) * + + 31
----
-38

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL 12 + ( + - 81 ) + - - COUNT ( * ) * + + 31
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7672
SELECT + COUNT( * ) AS col1, + 41 * + - COALESCE ( + - 50, - + ( + 41 ) * + + 12 + - CASE - CAST( + + 70 AS SIGNED ) WHEN 77 THEN NULL ELSE 5 * 15 + + NULLIF ( - ( 74 ), 84 ) END * + + 33 + CAST( 67 AS SIGNED ) * + COUNT( * ), + 21 )
----
1
2050

skipif mysql # not compatible
query II rowsort label-7672
SELECT + COUNT ( * ) AS col1, + 41 * + - COALESCE ( + - 50, - + ( + 41 ) * + + 12 + - CASE - CAST ( + + 70 AS INTEGER ) WHEN 77 THEN NULL ELSE 5 * 15 + + NULLIF ( - ( 74 ), 84 ) END * + + 33 + CAST ( 67 AS INTEGER ) * + COUNT ( * ), + 21 )
----
1
2050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7673
SELECT COUNT( ALL - 39 ) DIV 99 + + 84 * - 84 AS col1
----
-7056

skipif mysql # not compatible
query I rowsort label-7673
SELECT COUNT ( ALL - 39 ) / 99 + + 84 * - 84 AS col1
----
-7056

query I rowsort
SELECT DISTINCT + 26 * - + 28
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT MAX( DISTINCT + 18 ) col2
----
18

skipif mysql # not compatible
query I rowsort label-7675
SELECT MAX ( DISTINCT + 18 ) col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7676
SELECT DISTINCT - 53 AS col2, + NULLIF ( - - CASE SUM( DISTINCT 87 ) WHEN - 1 + - 97 + - - 22 THEN - 70 WHEN - 20 THEN NULL WHEN + 11 THEN + + 91 ELSE NULL END, - 46 / 29 * + - 85 - - 58 ) AS col2
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-7676
SELECT DISTINCT - 53 AS col2, + NULLIF ( - - CASE SUM ( DISTINCT 87 ) WHEN - 1 + - 97 + - - 22 THEN - 70 WHEN - 20 THEN NULL WHEN + 11 THEN + + 91 ELSE NULL END, - 46 / 29 * + - 85 - - 58 ) AS col2
----
-53
NULL

query I rowsort
SELECT DISTINCT 11 - - 82 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT ALL - SUM( ALL 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL - SUM ( ALL 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT COUNT( * ) * 22 * + - ( + COUNT( * ) ) * + 93 col0
----
-2046

skipif mysql # not compatible
query I rowsort label-7679
SELECT COUNT ( * ) * 22 * + - ( + COUNT ( * ) ) * + 93 col0
----
-2046

onlyif mysql # aggregate syntax: 
query II rowsort label-7680
SELECT DISTINCT - 40, + COUNT( * ) AS col1
----
-40
1

skipif mysql # not compatible
query II rowsort label-7680
SELECT DISTINCT - 40, + COUNT ( * ) AS col1
----
-40
1

query I rowsort
SELECT + 33 * - 28
----
-924

query II rowsort
SELECT ALL 48 AS col0, 42 * + - 17
----
48
-714

query I rowsort
SELECT - 10 * 43
----
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT ALL - COUNT( 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL - COUNT ( 87 )
----
-1

query I rowsort
SELECT ALL + 73 * + 90
----
6570

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL + 56 * - SUM( - 28 ) AS col1
----
1568

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL + 56 * - SUM ( - 28 ) AS col1
----
1568

query II rowsort
SELECT - - 17 - + 70 * + - 11 + 64, 80 AS col1
----
851
80

query II rowsort
SELECT 52 AS col2, - 46 * - + 1
----
52
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT ALL - 21 + + ( NULLIF ( 82, + COUNT( * ) + + 83 ) ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL - 21 + + ( NULLIF ( 82, + COUNT ( * ) + + 83 ) ) AS col2
----
61

query I rowsort
SELECT DISTINCT + 62 + + 4 AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7691
SELECT + + COALESCE ( + COUNT( * ), + 41 * + + 69, 69 ) * + 24 DIV + 17 - COUNT( * ) + - 74 * - 51 + - 79
----
3695

skipif mysql # not compatible
query I rowsort label-7691
SELECT + + COALESCE ( + COUNT ( * ), + 41 * + + 69, 69 ) * + 24 / + 17 - COUNT ( * ) + - 74 * - 51 + - 79
----
3695

query I rowsort
SELECT - + 35 + + 89
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ALL - SUM( - 20 ) + - 70
----
-50

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL - SUM ( - 20 ) + - 70
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7694
SELECT - 19 * + - 16 + - MAX( - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT - 19 * + - 16 + - MAX ( - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7695
SELECT ALL + 69 DIV - - SUM( 18 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL + 69 / - - SUM ( 18 ) AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7696
SELECT ALL + COALESCE ( + - ( + 66 ), - - COUNT( * ) * - ( 57 ) * 41 DIV - COUNT( * ), + + 99 + + - 73 * 80 )
----
-66

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL + COALESCE ( + - ( + 66 ), - - COUNT ( * ) * - ( 57 ) * 41 / - COUNT ( * ), + + 99 + + - 73 * 80 )
----
-66

query I rowsort
SELECT - 47 * 13
----
-611

query I rowsort
SELECT ALL + 39 * - 83 AS col0
----
-3237

query I rowsort
SELECT + 82 * - 27 * 35
----
-77490

query I rowsort
SELECT - ( + 6 ) * 70
----
-420

onlyif mysql # aggregate syntax: 
query II rowsort label-7701
SELECT NULLIF ( ( 91 ), - + 66 + - NULLIF ( + ( + 54 ), 69 ) + + 91 + - 2 * + 68 * 14 + 53 + COUNT( * ) + - 51 ), + 14 AS col0
----
91
14

skipif mysql # not compatible
query II rowsort label-7701
SELECT NULLIF ( ( 91 ), - + 66 + - NULLIF ( + ( + 54 ), 69 ) + + 91 + - 2 * + 68 * 14 + 53 + COUNT ( * ) + - 51 ), + 14 AS col0
----
91
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7702
SELECT DISTINCT + ( + CAST( 21 AS SIGNED ) )
----
21

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT + ( + CAST ( 21 AS INTEGER ) )
----
21

query I rowsort
SELECT - 19 * + 88 - - 33 + + - 74 + 70
----
-1643

query I rowsort
SELECT + 57 * + 89 * 5
----
25365

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT NULLIF ( - MAX( 13 ), + ( - 18 ) / + - 57 * + + COUNT( * ) + - 8 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-7705
SELECT NULLIF ( - MAX ( 13 ), + ( - 18 ) / + - 57 * + + COUNT ( * ) + - 8 ) AS col2
----
-13

query I rowsort
SELECT + NULLIF ( - 59, 1 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT + 92 * - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-7707
SELECT + 92 * - COUNT ( * )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7708
SELECT ALL CASE + + 15 WHEN - + 54 THEN NULL ELSE - MIN( ( 12 ) ) + - + 96 * - CAST( 17 AS SIGNED ) END * 15 DIV + - 21 + MAX( ALL + 38 )
----
-1119

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL CASE + + 15 WHEN - + 54 THEN NULL ELSE - MIN ( ( 12 ) ) + - + 96 * - CAST ( 17 AS INTEGER ) END * 15 / + - 21 + MAX ( ALL + 38 )
----
-1119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7709
SELECT - CAST( NULL AS SIGNED ) + ( + ( - ( - COUNT( * ) ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT - CAST ( NULL AS INTEGER ) + ( + ( - ( - COUNT ( * ) ) ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7710
SELECT + 10 DIV + 95 * - + 57 col1
----
0

skipif mysql # not compatible
query I rowsort label-7710
SELECT + 10 / + 95 * - + 57 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT 77 * + MIN( - - 49 ) + + 3 + - 16 * 51
----
2960

skipif mysql # not compatible
query I rowsort label-7711
SELECT 77 * + MIN ( - - 49 ) + + 3 + - 16 * 51
----
2960

onlyif mysql # DIV for integer division: 
query I rowsort label-7712
SELECT + 65 DIV - NULLIF ( + - 3, + 95 )
----
21

skipif mysql # not compatible
query I rowsort label-7712
SELECT + 65 / - NULLIF ( + - 3, + 95 )
----
21

query I rowsort
SELECT DISTINCT - 74 * - 27 AS col1
----
1998

query II rowsort
SELECT + 92 + 72 AS col0, 58 + - 54
----
164
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT + + NULLIF ( + - COUNT( 64 ), + + 94 + - 38 * + SUM( - 25 ) + - 69 ) + + + 59 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7715
SELECT + + NULLIF ( + - COUNT ( 64 ), + + 94 + - 38 * + SUM ( - 25 ) + - 69 ) + + + 59 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT + - ( - COUNT( * ) ) * - 73
----
-73

skipif mysql # not compatible
query I rowsort label-7716
SELECT + - ( - COUNT ( * ) ) * - 73
----
-73

query I rowsort
SELECT + - 69 + - + ( + 2 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT - + COUNT( * ) + 29 + - 18 * + 78
----
-1376

skipif mysql # not compatible
query I rowsort label-7718
SELECT - + COUNT ( * ) + 29 + - 18 * + 78
----
-1376

query II rowsort
SELECT DISTINCT - 31 + ( - + 19 ) AS col2, 36
----
-50
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7720
SELECT ALL - - 29 + COALESCE ( + - 83, + COUNT( * ) DIV + 50, 66 * + ( - 7 ) + - COUNT( * ) ) DIV 34 * 14 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL - - 29 + COALESCE ( + - 83, + COUNT ( * ) / + 50, 66 * + ( - 7 ) + - COUNT ( * ) ) / 34 * 14 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT + COUNT( * ) + - 9 col2
----
-8

skipif mysql # not compatible
query I rowsort label-7721
SELECT + COUNT ( * ) + - 9 col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT ALL 77 * 49 DIV 47 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL 77 * 49 / 47 AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7723
SELECT DISTINCT + ( + ( + CAST( NULL AS SIGNED ) ) ) * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT + ( + ( + CAST ( NULL AS INTEGER ) ) ) * + 17
----
NULL

query I rowsort
SELECT ALL + 48 - + - 39
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT + + 43 + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7725
SELECT + + 43 + COUNT ( * ) AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7726
SELECT + 1 * - + 57 * - + CASE - 23 WHEN + 5 + 6 + + 86 * + 55 * - 18 THEN NULL ELSE - 29 DIV ( + 71 ) * 77 - 36 END
----
-2052

skipif mysql # not compatible
query I rowsort label-7726
SELECT + 1 * - + 57 * - + CASE - 23 WHEN + 5 + 6 + + 86 * + 55 * - 18 THEN NULL ELSE - 29 / ( + 71 ) * 77 - 36 END
----
-2052

query I rowsort
SELECT - 24 + + 95 * + 8 AS col2
----
736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7728
SELECT - 3 DIV 75 * + COUNT( * ) + - 12
----
-12

skipif mysql # not compatible
query I rowsort label-7728
SELECT - 3 / 75 * + COUNT ( * ) + - 12
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-7729
SELECT ALL 29 DIV - - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL 29 / - - 74 AS col0
----
0

query I rowsort
SELECT - 40 + + 91
----
51

query I rowsort
SELECT DISTINCT - 63 * - + 93 AS col1
----
5859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7732
SELECT ALL - NULLIF ( + COUNT( * ), 61 + COUNT( - CAST( NULL AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL - NULLIF ( + COUNT ( * ), 61 + COUNT ( - CAST ( NULL AS INTEGER ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7733
SELECT DISTINCT + MAX( 90 ) * + 21 AS col2, - 52 AS col2
----
1890
-52

skipif mysql # not compatible
query II rowsort label-7733
SELECT DISTINCT + MAX ( 90 ) * + 21 AS col2, - 52 AS col2
----
1890
-52

query II rowsort
SELECT 13 AS col1, 66
----
13
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7735
SELECT - 2 DIV + + COUNT( * ) + - 15 + + - 28, + COUNT( * ) * - 71 AS col0
----
-45
-71

skipif mysql # not compatible
query II rowsort label-7735
SELECT - 2 / + + COUNT ( * ) + - 15 + + - 28, + COUNT ( * ) * - 71 AS col0
----
-45
-71

query II rowsort
SELECT 7 * - ( + + 29 ) AS col0, - 87 col1
----
-203
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT ALL - COUNT( * ) + + 1 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL - COUNT ( * ) + + 1 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7738
SELECT DISTINCT + 91 * - - ( CASE + + NULLIF ( 46, 26 + - 1 + - + 22 ) WHEN + - 43 * - + 51 * - 87 + + + 85 + - - 3 * AVG ( 48 ) * - 97 * - 23 * + 78 THEN 45 DIV - - ( 24 ) ELSE 37 - - 54 - + 64 - - + 52 * 93 + + + 92 + - - 69 + + 59 * 88 END )
----
929656

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT + 91 * - - ( CASE + + NULLIF ( 46, 26 + - 1 + - + 22 ) WHEN + - 43 * - + 51 * - 87 + + + 85 + - - 3 * AVG ( 48 ) * - 97 * - 23 * + 78 THEN 45 / - - ( 24 ) ELSE 37 - - 54 - + 64 - - + 52 * 93 + + + 92 + - - 69 + + 59 * 88 END )
----
929656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7739
SELECT ALL CAST( + - ( 18 ) AS SIGNED ) + - - 61
----
43

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL CAST ( + - ( 18 ) AS INTEGER ) + - - 61
----
43

query II rowsort
SELECT DISTINCT - + 97 AS col0, - 53 + + 46
----
-97
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-7741
SELECT 45, - 3 + - 21 + COUNT( * ) * - - 68 * 47 AS col1
----
45
3172

skipif mysql # not compatible
query II rowsort label-7741
SELECT 45, - 3 + - 21 + COUNT ( * ) * - - 68 * 47 AS col1
----
45
3172

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT MIN( ALL - 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7742
SELECT MIN ( ALL - 26 ) AS col2
----
-26

query I rowsort
SELECT COALESCE ( - + 92, + 65 * 53, 59 ) + + - 50 AS col1
----
-142

query I rowsort
SELECT ALL - + ( - + 96 ) + + 34
----
130

query I rowsort
SELECT - ( - + 80 ) AS col1
----
80

query I rowsort
SELECT 41 + - - 9 AS col1
----
50

query I rowsort
SELECT 57 * - NULLIF ( - 56, 78 )
----
3192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT ALL + 13 + + - ( NULLIF ( - CASE ( COALESCE ( 53, - 77 ) ) WHEN + CAST( NULL AS SIGNED ) THEN 19 END, 52 ) ) * + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL + 13 + + - ( NULLIF ( - CASE ( COALESCE ( 53, - 77 ) ) WHEN + CAST ( NULL AS INTEGER ) THEN 19 END, 52 ) ) * + 80 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7749
SELECT DISTINCT - - 60 * COUNT( * ) + 3 AS col0, - 27 AS col1
----
63
-27

skipif mysql # not compatible
query II rowsort label-7749
SELECT DISTINCT - - 60 * COUNT ( * ) + 3 AS col0, - 27 AS col1
----
63
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT ALL COUNT( * ) + + 86 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL COUNT ( * ) + + 86 AS col2
----
87

query I rowsort
SELECT 36 * + + NULLIF ( 87, - 91 ) AS col1
----
3132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7752
SELECT - CAST( NULL AS SIGNED ) - + + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT - CAST ( NULL AS INTEGER ) - + + 83 AS col1
----
NULL

query I rowsort
SELECT 0 * + 36 + - 52 col1
----
-52

query I rowsort
SELECT COALESCE ( 36, 18 ) * + 89
----
3204

query I rowsort
SELECT ( - + 44 ) * COALESCE ( 49, - 59, - 64 )
----
-2156

onlyif mysql # DIV for integer division: 
query II rowsort label-7756
SELECT 90 DIV + 46 - + 29 * + 56 AS col1, 64
----
-1623
64

skipif mysql # not compatible
query II rowsort label-7756
SELECT 90 / + 46 - + 29 * + 56 AS col1, 64
----
-1623
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7757
SELECT DISTINCT 30 DIV - - COUNT( + - 19 )
----
30

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT 30 / - - COUNT ( + - 19 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT SUM( + 78 ) * + COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7758
SELECT SUM ( + 78 ) * + COUNT ( * ) AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7759
SELECT CASE - 65 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + CAST( NULL AS DECIMAL ) THEN - AVG ( DISTINCT - 22 ) END - - 9 * - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT CASE - 65 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + CAST ( NULL AS REAL ) THEN - AVG ( DISTINCT - 22 ) END - - 9 * - 97 AS col1
----
NULL

query I rowsort
SELECT 86 * 51 * - 97
----
-425442

query II rowsort
SELECT DISTINCT 88 * - - 60, 89 AS col1
----
5280
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7762
SELECT 49 * + + CAST( NULL AS DECIMAL ) + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT 49 * + + CAST ( NULL AS REAL ) + 79
----
NULL

query I rowsort
SELECT ALL 23 * + 29
----
667

query II rowsort
SELECT 82 + 96 AS col1, + 14 AS col2
----
178
14

query II rowsort
SELECT + 11 * - 0 + - 3 + - 49 col1, 28 AS col2
----
-52
28

onlyif mysql # DIV for integer division: 
query II rowsort label-7766
SELECT 13 DIV 4 + 37 + + 34 + + 73, 18 + + 85 + - 66 AS col0
----
147
37

skipif mysql # not compatible
query II rowsort label-7766
SELECT 13 / 4 + 37 + + 34 + + 73, 18 + + 85 + - 66 AS col0
----
147
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7767
SELECT CAST( NULL AS SIGNED ) + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7767
SELECT CAST ( NULL AS INTEGER ) + 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7768
SELECT ALL - COUNT( 16 ), - 64 col2
----
-1
-64

skipif mysql # not compatible
query II rowsort label-7768
SELECT ALL - COUNT ( 16 ), - 64 col2
----
-1
-64

query I rowsort
SELECT ALL - ( - + 32 ) * - 15
----
-480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7770
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - COUNT( ALL - 37 ) * + CAST( NULL AS SIGNED ), - 1 AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7770
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - COUNT ( ALL - 37 ) * + CAST ( NULL AS INTEGER ), - 1 AS col0
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT ALL + - 62 + + COUNT( * ) * + 23
----
-39

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL + - 62 + + COUNT ( * ) * + 23
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT - NULLIF ( - - 70, COALESCE ( COUNT( * ), - 88, + 77 ) ) * + - 53
----
3710

skipif mysql # not compatible
query I rowsort label-7772
SELECT - NULLIF ( - - 70, COALESCE ( COUNT ( * ), - 88, + 77 ) ) * + - 53
----
3710

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT 44 * + + 87 + + 73 DIV 56 + 76
----
3905

skipif mysql # not compatible
query I rowsort label-7773
SELECT 44 * + + 87 + + 73 / 56 + 76
----
3905

query I rowsort
SELECT ALL - 33 * 74 + - 80
----
-2522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7775
SELECT + - NULLIF ( + COUNT( * ), 89 * + + CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7775
SELECT + - NULLIF ( + COUNT ( * ), 89 * + + CAST ( NULL AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT DISTINCT + 42 + + 39 + + 67 - + + ( + - COUNT( 29 ) ) * - ( + + 95 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-7776
SELECT DISTINCT + 42 + + 39 + + 67 - + + ( + - COUNT ( 29 ) ) * - ( + + 95 ) AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7777
SELECT ALL - 84 + - ( 61 ) * 28 col1, + CAST( NULL AS SIGNED ) / - 76 * NULLIF ( + + 80, 69 )
----
-1792
NULL

skipif mysql # not compatible
query II rowsort label-7777
SELECT ALL - 84 + - ( 61 ) * 28 col1, + CAST ( NULL AS INTEGER ) / - 76 * NULLIF ( + + 80, 69 )
----
-1792
NULL

query I rowsort
SELECT ALL - - 57 * 51
----
2907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7779
SELECT ( 7 ) + 97 + 39 * + + COALESCE ( - 89, - 3 - 6 ) * + + CAST( + + AVG ( DISTINCT + ( - + 27 ) ) AS SIGNED ) * + 53 * + 95 + + + 16 + 19 * - 76 + - 89 + + CASE - - COALESCE ( + 2, 0 * + + 75, - + 2 / + - 9 + - + 1 + + 5 + 19, AVG ( - + ( + 83 ) ) + + 43 ) WHEN + COUNT( * ) THEN NULL WHEN 87 THEN - + COUNT( 47 ) END / + - 41 / - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT ( 7 ) + 97 + 39 * + + COALESCE ( - 89, - 3 - 6 ) * + + CAST ( + + AVG ( DISTINCT + ( - + 27 ) ) AS INTEGER ) * + 53 * + 95 + + + 16 + 19 * - 76 + - 89 + + CASE - - COALESCE ( + 2, 0 * + + 75, - + 2 / + - 9 + - + 1 + + 5 + 19, AVG ( - + ( + 83 ) ) + + 43 ) WHEN + COUNT ( * ) THEN NULL WHEN 87 THEN - + COUNT ( 47 ) END / + - 41 / - 20
----
NULL

query I rowsort
SELECT DISTINCT + CASE 58 WHEN - 61 THEN - COALESCE ( + 22, - NULLIF ( 29, 6 ), - ( - 46 ) ) + + 86 END - 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7781
SELECT - CAST( + 75 AS SIGNED ) AS col1, 92 * - - CAST( - + 66 AS SIGNED ) - 98 - + MAX( 62 ) AS col1
----
-75
-6232

skipif mysql # not compatible
query II rowsort label-7781
SELECT - CAST ( + 75 AS INTEGER ) AS col1, 92 * - - CAST ( - + 66 AS INTEGER ) - 98 - + MAX ( 62 ) AS col1
----
-75
-6232

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT ALL + COUNT( * ) - - COALESCE ( ( - 85 ), 87 * - - 58 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL + COUNT ( * ) - - COALESCE ( ( - 85 ), 87 * - - 58 ) AS col2
----
-84

query II rowsort
SELECT 15 + + + 97 AS col1, - 42 + - ( 59 ) - - 33 * + - 49 AS col1
----
112
-1718

query I rowsort
SELECT 74 * 68 + 20
----
5052

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT ALL + 88 - COALESCE ( - - MAX( - 4 ), + 26 + - 52 * - - COUNT( * ) - 25 * + 16 ) - - 23 AS col0, - 1
----
115
-1

skipif mysql # not compatible
query II rowsort label-7785
SELECT ALL + 88 - COALESCE ( - - MAX ( - 4 ), + 26 + - 52 * - - COUNT ( * ) - 25 * + 16 ) - - 23 AS col0, - 1
----
115
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7786
SELECT 86 * - CAST( + 10 AS SIGNED )
----
-860

skipif mysql # not compatible
query I rowsort label-7786
SELECT 86 * - CAST ( + 10 AS INTEGER )
----
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT SUM( - - 0 ) + - 62 + + - 32
----
-94

skipif mysql # not compatible
query I rowsort label-7787
SELECT SUM ( - - 0 ) + - 62 + + - 32
----
-94

query I rowsort
SELECT 2 + + 15 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL NULLIF ( - 23, - CASE + - COUNT( * ) WHEN - MIN( + - 1 ) THEN + - ( - COUNT( * ) ) + - 17 END )
----
-23

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL NULLIF ( - 23, - CASE + - COUNT ( * ) WHEN - MIN ( + - 1 ) THEN + - ( - COUNT ( * ) ) + - 17 END )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7790
SELECT - NULLIF ( 71, COALESCE ( - COUNT( + 39 ), 25 - + 22, + 55 * 87, - 79 + + 61 + COUNT( * ) * + ( + 3 ) ) - - 63 - + 72 * 57 * - + 41 ) / 72 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7790
SELECT - NULLIF ( 71, COALESCE ( - COUNT ( + 39 ), 25 - + 22, + 55 * 87, - 79 + + 61 + COUNT ( * ) * + ( + 3 ) ) - - 63 - + 72 * 57 * - + 41 ) / 72 * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + 17 + + 49
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7792
SELECT 38, + 36 + + COALESCE ( MIN( + 95 ), - CASE + + 48 WHEN + 71 THEN NULL ELSE + 44 + - - COUNT( * ) END + - 70 * + CAST( NULL AS SIGNED ) ) * - NULLIF ( - + 96, + 6 ) AS col0
----
38
9156

skipif mysql # not compatible
query II rowsort label-7792
SELECT 38, + 36 + + COALESCE ( MIN ( + 95 ), - CASE + + 48 WHEN + 71 THEN NULL ELSE + 44 + - - COUNT ( * ) END + - 70 * + CAST ( NULL AS INTEGER ) ) * - NULLIF ( - + 96, + 6 ) AS col0
----
38
9156

query I rowsort
SELECT + 93 + - - 97
----
190

query I rowsort
SELECT + 11 + 76
----
87

query I rowsort
SELECT + 57 * 47 AS col2
----
2679

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT ALL + COUNT( * ) * - 90 + + + 6 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL + COUNT ( * ) * - 90 + + + 6 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT DISTINCT + MAX( ALL + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-7797
SELECT DISTINCT + MAX ( ALL + 81 )
----
81

query II rowsort
SELECT ALL - 73 * + - 72 + + - ( + + ( + 14 ) ) AS col1, + 84
----
5242
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT ALL + SUM( ALL + - 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL + SUM ( ALL + - 79 ) AS col0
----
-79

query I rowsort
SELECT ALL 87 * 47 + + 11
----
4100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7801
SELECT + 27 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT + 27 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 57 * - - 5 + - - 3 col0
----
-282

query I rowsort
SELECT CASE - - NULLIF ( - 68, 53 ) WHEN + - 61 THEN 10 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7804
SELECT + CASE - + COUNT( * ) WHEN + 69 + - 12 + CAST( NULL AS SIGNED ) THEN NULL WHEN 84 / - COUNT( * ) * - 91 + 63 THEN - - CAST( - - COUNT( * ) AS SIGNED ) * - 7 + + 24 / - COUNT( * ) * 94 * + 80 * - + 84 * - NULLIF ( + 12, + - ( + CAST( NULL AS SIGNED ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7804
SELECT + CASE - + COUNT ( * ) WHEN + 69 + - 12 + CAST ( NULL AS INTEGER ) THEN NULL WHEN 84 / - COUNT ( * ) * - 91 + 63 THEN - - CAST ( - - COUNT ( * ) AS INTEGER ) * - 7 + + 24 / - COUNT ( * ) * 94 * + 80 * - + 84 * - NULLIF ( + 12, + - ( + CAST ( NULL AS INTEGER ) ) ) END
----
NULL

query I rowsort
SELECT DISTINCT - 95 * + 49 col1
----
-4655

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT - SUM( - 20 ) * - 65 - - + COUNT( * ) + + - 66 * - 10 - + 6 * 3 AS col0
----
-657

skipif mysql # not compatible
query I rowsort label-7806
SELECT - SUM ( - 20 ) * - 65 - - + COUNT ( * ) + + - 66 * - 10 - + 6 * 3 AS col0
----
-657

query I rowsort
SELECT DISTINCT 85 * + 64 - + 29 + - 75 * + 12 AS col0
----
4511

query I rowsort
SELECT DISTINCT 99 * 20
----
1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7809
SELECT ALL + 5 * + + 3 - + - CAST( NULL AS SIGNED ) + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL + 5 * + + 3 - + - CAST ( NULL AS INTEGER ) + 0
----
NULL

query I rowsort
SELECT + - 7 * 59 * - - 47 AS col1
----
-19411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7811
SELECT + CAST( + + COUNT( ALL - ( + 60 ) ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7811
SELECT + CAST ( + + COUNT ( ALL - ( + 60 ) ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT - 83 * 35
----
-2905

query I rowsort
SELECT DISTINCT + - 92 * - 20 AS col0
----
1840

query I rowsort
SELECT + 41 - + + 67 * - + 84 AS col2
----
5669

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT - 10 DIV + CASE - 44 WHEN + + 31 THEN NULL ELSE 35 + - - 15 + - - 97 * - 21 * + 18 * - - 87 + 47 END
----
0

skipif mysql # not compatible
query I rowsort label-7815
SELECT - 10 / + CASE - 44 WHEN + + 31 THEN NULL ELSE 35 + - - 15 + - - 97 * - 21 * + 18 * - - 87 + 47 END
----
0

query I rowsort
SELECT + + 80 * 36 AS col0
----
2880

query I rowsort
SELECT - + 75 + 9 + - 40 + + + 61 AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7818
SELECT ALL - CASE + + 68 WHEN + + 97 THEN 60 WHEN + + 25 * + + 80 * + AVG ( ALL + - 46 ) * + - COUNT( * ) THEN + CAST( NULL AS SIGNED ) + + - 53 * - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL - CASE + + 68 WHEN + + 97 THEN 60 WHEN + + 25 * + + 80 * + AVG ( ALL + - 46 ) * + - COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) + + - 53 * - 84 END
----
NULL

query I rowsort
SELECT DISTINCT 28 * - 55 * 98 * 64 AS col0
----
-9658880

onlyif mysql # DIV for integer division: 
query I rowsort label-7820
SELECT ALL + 36 DIV + + 95
----
0

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL + 36 / + + 95
----
0

query II rowsort
SELECT DISTINCT + 94 * + + 35 * 65 * + 65 col1, 37 * + 71 AS col0
----
13900250
2627

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT ALL NULLIF ( + COUNT( 78 ), + - 15 * - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL NULLIF ( + COUNT ( 78 ), + - 15 * - COUNT ( * ) )
----
1

query I rowsort
SELECT - 94 * - - 76
----
-7144

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL + COALESCE ( + 68, - + 63 * - 45 + + COUNT( ALL - - 4 ) ) + + SUM( ALL - 48 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + COALESCE ( + 68, - + 63 * - 45 + + COUNT ( ALL - - 4 ) ) + + SUM ( ALL - 48 ) AS col1
----
20

query I rowsort
SELECT - ( + 25 ) * 94
----
-2350

onlyif mysql # aggregate syntax: 
query III rowsort label-7826
SELECT 48 AS col2, 58 + + + MAX( ALL 77 ) AS col2, - + 50 + - + 6 AS col2
----
48
135
-56

skipif mysql # not compatible
query III rowsort label-7826
SELECT 48 AS col2, 58 + + + MAX ( ALL 77 ) AS col2, - + 50 + - + 6 AS col2
----
48
135
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7827
SELECT ALL - ( + + 66 ) + + - CAST( 46 AS SIGNED )
----
-112

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL - ( + + 66 ) + + - CAST ( 46 AS INTEGER )
----
-112

query I rowsort
SELECT - 75 - 97
----
-172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7829
SELECT ALL ( 22 ) AS col0, MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) / 26 - - + COUNT( * ) - - 79 + + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
22
NULL

skipif mysql # not compatible
query II rowsort label-7829
SELECT ALL ( 22 ) AS col0, MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) / 26 - - + COUNT ( * ) - - 79 + + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
22
NULL

query I rowsort
SELECT DISTINCT + ( - 32 ) + 89 AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7831
SELECT ALL - 13 DIV - 42 * - - COUNT( * ) + 30 + 24 * + 98 - ( + + 55 ) col0
----
2327

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL - 13 / - 42 * - - COUNT ( * ) + 30 + 24 * + 98 - ( + + 55 ) col0
----
2327

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT - 39 * + 18 * + - COUNT( * )
----
702

skipif mysql # not compatible
query I rowsort label-7832
SELECT - 39 * + 18 * + - COUNT ( * )
----
702

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7833
SELECT CAST( NULL AS SIGNED ) AS col1, + ( - 72 ) AS col0
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-7833
SELECT CAST ( NULL AS INTEGER ) AS col1, + ( - 72 ) AS col0
----
NULL
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT - 15 + - NULLIF ( + + NULLIF ( - 16, + COUNT( * ) / + COUNT( * ) ), + 13 * + + 60 / - ( 56 ) ) + 8
----
9

skipif mysql # not compatible
query I rowsort label-7834
SELECT - 15 + - NULLIF ( + + NULLIF ( - 16, + COUNT ( * ) / + COUNT ( * ) ), + 13 * + + 60 / - ( 56 ) ) + 8
----
9

query I rowsort
SELECT + COALESCE ( + 71, + 81 + - - 34, + 55 * - - 77 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT DISTINCT + CASE + + 61 WHEN + 1 THEN NULL WHEN + 93 / + - 30 * - 27 + + 28 THEN + SUM( - 94 ) / 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT + CASE + + 61 WHEN + 1 THEN NULL WHEN + 93 / + - 30 * - 27 + + 28 THEN + SUM ( - 94 ) / 92 ELSE NULL END
----
NULL

query I rowsort
SELECT - + 80 * 74 + + 88
----
-5832

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT + - 97 - COUNT( 48 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-7838
SELECT + - 97 - COUNT ( 48 ) AS col2
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7839
SELECT - 99 DIV - - 39 + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7839
SELECT - 99 / - - 39 + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7840
SELECT ALL 82 DIV + COUNT( * ) - - 35
----
117

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL 82 / + COUNT ( * ) - - 35
----
117

query II rowsort
SELECT ALL + 93 AS col1, - 79 * - 45 + 36 + + 7 AS col1
----
93
3598

onlyif mysql # DIV for integer division: 
query I rowsort label-7842
SELECT + ( 16 ) DIV + 26 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7842
SELECT + ( 16 ) / + 26 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT ALL + SUM( - 26 ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL + SUM ( - 26 ) col1
----
-26

query II rowsort
SELECT DISTINCT + + 10, 44 AS col1
----
10
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7845
SELECT ALL 3 * - 45 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL 3 * - 45 - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 50 col2, 43
----
50
43

query I rowsort
SELECT + 72 + + + 36 AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT + - 1 + + 39 - - - COUNT( * ) - - 56 * 65
----
3677

skipif mysql # not compatible
query I rowsort label-7848
SELECT + - 1 + + 39 - - - COUNT ( * ) - - 56 * 65
----
3677

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT + 19 * + + 3 + + - ( - 60 ) + ( - + ( + COUNT( * ) ) ) - + 12 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-7849
SELECT + 19 * + + 3 + + - ( - 60 ) + ( - + ( + COUNT ( * ) ) ) - + 12 AS col1
----
104

query I rowsort
SELECT ALL + - ( + - 34 ) AS col0
----
34

query II rowsort
SELECT - 16 AS col0, 1
----
-16
1

query I rowsort
SELECT 2 * + 10 AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7853
SELECT DISTINCT 65 DIV SUM( - 79 )
----
0

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT 65 / SUM ( - 79 )
----
0

query I rowsort
SELECT + 87 * - - 72 + + 29
----
6293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7855
SELECT 27 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7855
SELECT 27 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ( + 21 ) + + NULLIF ( - 72, + MAX( ALL - 30 ) ) + - - 70 * 91 * + NULLIF ( - 21, + 21 + - NULLIF ( - + 16, 27 ) )
----
-133821

skipif mysql # not compatible
query I rowsort label-7856
SELECT ( + 21 ) + + NULLIF ( - 72, + MAX ( ALL - 30 ) ) + - - 70 * 91 * + NULLIF ( - 21, + 21 + - NULLIF ( - + 16, 27 ) )
----
-133821

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT ALL + ( + MIN( - 5 ) ) + + + 96
----
91

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL + ( + MIN ( - 5 ) ) + + + 96
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT DISTINCT COUNT( * ) * - - 32 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT COUNT ( * ) * - - 32 AS col0
----
32

query I rowsort
SELECT ALL 64 + 56 + + 55
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT 17 + + 78 * + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-7860
SELECT 17 + + 78 * + + COUNT ( * )
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7861
SELECT DISTINCT - CAST( + 25 AS SIGNED ) DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT - CAST ( + 25 AS INTEGER ) / 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT 46 + - COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-7862
SELECT 46 + - COUNT ( * ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT MAX( + 96 ) * 62
----
5952

skipif mysql # not compatible
query I rowsort label-7863
SELECT MAX ( + 96 ) * 62
----
5952

onlyif mysql # DIV for integer division: 
query I rowsort label-7864
SELECT DISTINCT - + 26 DIV - 86 + 49 + - 89 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT - + 26 / - 86 + 49 + - 89 AS col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7865
SELECT ALL - - CAST( - - 61 AS SIGNED ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL - - CAST ( - - 61 AS INTEGER ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT ALL - - COUNT( DISTINCT - - 60 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL - - COUNT ( DISTINCT - - 60 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7867
SELECT ALL - + CAST( - + COALESCE ( - 12, 14 - CASE - NULLIF ( 71, - - 96 * + 2 * 69 / COUNT( * ) ) WHEN - SUM( DISTINCT 2 ) - COUNT( - COALESCE ( + + 36, 56 ) ) - - - 85 THEN + 24 * ( + 1 ) + - 49 END ) AS SIGNED ) * 97
----
-1164

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL - + CAST ( - + COALESCE ( - 12, 14 - CASE - NULLIF ( 71, - - 96 * + 2 * 69 / COUNT ( * ) ) WHEN - SUM ( DISTINCT 2 ) - COUNT ( - COALESCE ( + + 36, 56 ) ) - - - 85 THEN + 24 * ( + 1 ) + - 49 END ) AS INTEGER ) * 97
----
-1164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT + 56 * NULLIF ( - - CAST( NULL AS SIGNED ), - 39 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT + 56 * NULLIF ( - - CAST ( NULL AS INTEGER ), - 39 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT + NULLIF ( + - 39, + COUNT( * ) * - 27 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-7869
SELECT + NULLIF ( + - 39, + COUNT ( * ) * - 27 ) AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7870
SELECT + CAST( NULL AS DECIMAL ) * + 13 AS col2, + COUNT( * ) + 97 AS col1
----
NULL
98

skipif mysql # not compatible
query II rowsort label-7870
SELECT + CAST ( NULL AS REAL ) * + 13 AS col2, + COUNT ( * ) + 97 AS col1
----
NULL
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7871
SELECT - 32 DIV + - ( - 22 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7871
SELECT - 32 / + - ( - 22 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7872
SELECT DISTINCT - + 33 DIV - + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT - + 33 / - + 96 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT ALL + SUM( ALL + 40 ) + 48 + - - 88 AS col1
----
176

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL + SUM ( ALL + 40 ) + 48 + - - 88 AS col1
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL 89 + + - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL 89 + + - COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT - ( + MAX( ALL - - 96 ) ) * - + 47 + - + 31 + + 29 AS col0
----
4510

skipif mysql # not compatible
query I rowsort label-7875
SELECT - ( + MAX ( ALL - - 96 ) ) * - + 47 + - + 31 + + 29 AS col0
----
4510

query I rowsort
SELECT ALL NULLIF ( + + 56, - 15 * - + 62 ) + + - 16
----
40

query II rowsort
SELECT + 51 col2, 68
----
51
68

query II rowsort
SELECT 81 AS col0, + 64 * 13 + + + 62 AS col0
----
81
894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT 95 + 62 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT 95 + 62 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7880
SELECT - 7, COUNT( * ) AS col1
----
-7
1

skipif mysql # not compatible
query II rowsort label-7880
SELECT - 7, COUNT ( * ) AS col1
----
-7
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7881
SELECT ALL 62 AS col0, - COUNT( * )
----
62
-1

skipif mysql # not compatible
query II rowsort label-7881
SELECT ALL 62 AS col0, - COUNT ( * )
----
62
-1

query II rowsort
SELECT DISTINCT 14 AS col2, - 31 * + + 63
----
14
-1953

query I rowsort
SELECT DISTINCT 23 + - 68
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-7884
SELECT ALL 58 + - + 22 + - SUM( DISTINCT + 86 ) AS col2, 93
----
-50
93

skipif mysql # not compatible
query II rowsort label-7884
SELECT ALL 58 + - + 22 + - SUM ( DISTINCT + 86 ) AS col2, 93
----
-50
93

query II rowsort
SELECT ALL 73 AS col1, - 49 AS col2
----
73
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT - MAX( 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7886
SELECT - MAX ( 54 ) AS col2
----
-54

query I rowsort
SELECT NULLIF ( 3, - + 52 + 51 ) - + 70 col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7888
SELECT 10 * + - CASE + 14 WHEN + COALESCE ( + CAST( + 0 AS SIGNED ), - + 17 * 46 * - 15 / - - 51, + - COALESCE ( + 19, COUNT( * ) / + 12, COUNT( * ) * 31, - - ( + 84 ) * 63 * + - COUNT( * ) + + 26 ) ) THEN + COUNT( * ) / COUNT( * ) + - 73 + + + 74 + + - 62 + 21 + + AVG ( 88 ) - NULLIF ( + ( 59 ), - + 7 ) + + 88 * 92 * + + 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7888
SELECT 10 * + - CASE + 14 WHEN + COALESCE ( + CAST ( + 0 AS INTEGER ), - + 17 * 46 * - 15 / - - 51, + - COALESCE ( + 19, COUNT ( * ) / + 12, COUNT ( * ) * 31, - - ( + 84 ) * 63 * + - COUNT ( * ) + + 26 ) ) THEN + COUNT ( * ) / COUNT ( * ) + - 73 + + + 74 + + - 62 + 21 + + AVG ( 88 ) - NULLIF ( + ( 59 ), - + 7 ) + + 88 * 92 * + + 51 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7889
SELECT 17 - + CAST( + 31 AS SIGNED ) + + 93 + - - COUNT( * ) + - 23 DIV - 71 * + + 20
----
80

skipif mysql # not compatible
query I rowsort label-7889
SELECT 17 - + CAST ( + 31 AS INTEGER ) + + 93 + - - COUNT ( * ) + - 23 / - 71 * + + 20
----
80

query I rowsort
SELECT 52 * 22 AS col2
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT DISTINCT COUNT( * ) * + + 44 col2
----
44

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT COUNT ( * ) * + + 44 col2
----
44

query II rowsort
SELECT DISTINCT 90 AS col2, - 60 AS col0
----
90
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7893
SELECT ALL COUNT( - COALESCE ( - ( - + 76 ), + 28 ) ) * + COUNT( * ) DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL COUNT ( - COALESCE ( - ( - + 76 ), + 28 ) ) * + COUNT ( * ) / - 53
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7894
SELECT ALL + 25 DIV - COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL + 25 / - COUNT ( * ) AS col0
----
-25

query I rowsort
SELECT ALL - 14 - 32
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7896
SELECT ALL NULLIF ( + + SUM( ALL + 58 ), + ( + NULLIF ( 69, + 92 + 90 ) ) * + - CAST( - 75 AS SIGNED ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL NULLIF ( + + SUM ( ALL + 58 ), + ( + NULLIF ( 69, + 92 + 90 ) ) * + - CAST ( - 75 AS INTEGER ) ) AS col2
----
58

query I rowsort
SELECT 56 * - 8
----
-448

query I rowsort
SELECT + + 49 * + 11 * - + 72 + + 64 AS col0
----
-38744

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT ALL - MAX( - - 86 ) * + - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL - MAX ( - - 86 ) * + - COUNT ( * )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7900
SELECT 36 * CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT 36 * CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 77 * + 88 + - - 51
----
6827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7902
SELECT ALL 56 * - COUNT( * ) + + COALESCE ( + 5, 46, 85 DIV + 39 - + + COUNT( * ) - + - 68 * 48 * + 26 ) * + COUNT( + 28 ) * - 2 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL 56 * - COUNT ( * ) + + COALESCE ( + 5, 46, 85 / + 39 - + + COUNT ( * ) - + - 68 * 48 * + 26 ) * + COUNT ( + 28 ) * - 2 AS col1
----
-66

query I rowsort
SELECT - ( + + 8 ) col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT + - 48 * - + 41 + - - COUNT( * ) col2
----
1969

skipif mysql # not compatible
query I rowsort label-7904
SELECT + - 48 * - + 41 + - - COUNT ( * ) col2
----
1969

query II rowsort
SELECT ALL + + 13, + 43 * - 66 AS col2
----
13
-2838

query I rowsort
SELECT DISTINCT - 80 * + + 81
----
-6480

query II rowsort
SELECT + 62 AS col1, + 86 + - 8 * - CASE + + 99 WHEN 99 * - - 41 * + 47 * - + 4 THEN 58 * + - 6 * + 46 END
----
62
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7908
SELECT ALL + ( - AVG ( - + 45 ) ) * + 61 + + + CAST( NULL AS SIGNED ) + + 41 / + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL + ( - AVG ( - + 45 ) ) * + 61 + + + CAST ( NULL AS INTEGER ) + + 41 / + 77 AS col0
----
NULL

query I rowsort
SELECT + 71 * + 66 * 37
----
173382

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT ALL + COUNT( * ) + - - 11 * 47 * + - 16 + - - 43 + + 32
----
-8196

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL + COUNT ( * ) + - - 11 * 47 * + - 16 + - - 43 + + 32
----
-8196

query I rowsort
SELECT ALL - 63 + - - 70 AS col0
----
7

query I rowsort
SELECT ALL 70 + + 20
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7913
SELECT ALL + 91 DIV + - ( + COUNT( * ) )
----
-91

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL + 91 / + - ( + COUNT ( * ) )
----
-91

query I rowsort
SELECT + 11 * + 24 * - 48 * + ( - - 16 ) * - - ( + + 84 ) + + + 37 AS col2
----
-17031131

query I rowsort
SELECT ALL COALESCE ( + 63, 27 * - + ( 72 ) + + - 49 + + COALESCE ( 74, + 72 ) )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7916
SELECT - MIN( + - CAST( - - 98 AS SIGNED ) )
----
98

skipif mysql # not compatible
query I rowsort label-7916
SELECT - MIN ( + - CAST ( - - 98 AS INTEGER ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT - 40 * ( + 59 ) * 42 + + COUNT( * ) + - 88
----
-99207

skipif mysql # not compatible
query I rowsort label-7917
SELECT - 40 * ( + 59 ) * 42 + + COUNT ( * ) + - 88
----
-99207

query I rowsort
SELECT - 75 * - + 79
----
5925

query I rowsort
SELECT + 81 * 10
----
810

query I rowsort
SELECT - 92 + + - 18 + 42
----
-68

query II rowsort
SELECT + 98 - + 33 AS col1, - 10 AS col0
----
65
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7922
SELECT DISTINCT COUNT( * ) - + 29 * + COALESCE ( + 26, - CASE - 61 WHEN + ( - 93 ) THEN - 70 END + + + 35 * + - 42 DIV - 54 DIV 17 )
----
-753

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT COUNT ( * ) - + 29 * + COALESCE ( + 26, - CASE - 61 WHEN + ( - 93 ) THEN - 70 END + + + 35 * + - 42 / - 54 / 17 )
----
-753

query I rowsort
SELECT DISTINCT - 10 * - - 34 col1
----
-340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7924
SELECT ALL ( + - CAST( 48 AS SIGNED ) ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL ( + - CAST ( 48 AS INTEGER ) ) col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT DISTINCT - 1 - - MIN( + + 95 ) col2
----
94

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT - 1 - - MIN ( + + 95 ) col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT + 45 * NULLIF ( - COUNT( * ), - ( 36 ) ) * + + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7926
SELECT + 45 * NULLIF ( - COUNT ( * ), - ( 36 ) ) * + + 0 AS col1
----
0

query I rowsort
SELECT DISTINCT ( 65 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT + ( - COUNT( * ) ) + - - 56
----
55

skipif mysql # not compatible
query I rowsort label-7928
SELECT + ( - COUNT ( * ) ) + - - 56
----
55

query II rowsort
SELECT ALL NULLIF ( + 75, + 90 + + 63 ) AS col1, - 76 AS col0
----
75
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7930
SELECT + 11 + - 91 DIV 55 + + 84 AS col1, COUNT( * )
----
94
1

skipif mysql # not compatible
query II rowsort label-7930
SELECT + 11 + - 91 / 55 + + 84 AS col1, COUNT ( * )
----
94
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT + COUNT( * ) + - 78 + 18
----
-59

skipif mysql # not compatible
query I rowsort label-7931
SELECT + COUNT ( * ) + - 78 + 18
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL + 2 * + 73 * + - 78 * - COUNT( * ) col1
----
11388

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL + 2 * + 73 * + - 78 * - COUNT ( * ) col1
----
11388

query I rowsort
SELECT ALL ( - 60 ) * + 78
----
-4680

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT ALL - COUNT( * ) + + 67 + + 14
----
80

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL - COUNT ( * ) + + 67 + + 14
----
80

query I rowsort
SELECT DISTINCT 65 * - 96 + + + 6 AS col2
----
-6234

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT + + 64 DIV - COALESCE ( + 14, 63 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7936
SELECT + + 64 / - COALESCE ( + 14, 63 ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7937
SELECT ALL - 59 / - ( + 23 ) + + + CAST( NULL AS SIGNED ) + + + MAX( + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL - 59 / - ( + 23 ) + + + CAST ( NULL AS INTEGER ) + + + MAX ( + 71 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7938
SELECT ALL + 9 DIV + 35 + - 5 + - ( + 46 ) * + 15
----
-695

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL + 9 / + 35 + - 5 + - ( + 46 ) * + 15
----
-695

onlyif mysql # DIV for integer division: 
query I rowsort label-7939
SELECT DISTINCT + - 55 DIV - - 74 + - 72 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT + - 55 / - - 74 + - 72 AS col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7940
SELECT DISTINCT + NULLIF ( 38, CAST( NULL AS SIGNED ) )
----
38

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT + NULLIF ( 38, CAST ( NULL AS INTEGER ) )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7941
SELECT DISTINCT 79 DIV + COUNT( * ) - + COUNT( * ) + + 43 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT 79 / + COUNT ( * ) - + COUNT ( * ) + + 43 AS col2
----
121

query I rowsort
SELECT - 54 * 34 AS col1
----
-1836

query I rowsort
SELECT - 20 / + - 76 - + 96 - - 56 * - - 70 * - CASE - 32 WHEN - + 27 * 3 * - COALESCE ( + + 75, + + 7 ) * 83 + 27 THEN + 0 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7944
SELECT + + SUM( 81 ) AS col1, 44 AS col1
----
81
44

skipif mysql # not compatible
query II rowsort label-7944
SELECT + + SUM ( 81 ) AS col1, 44 AS col1
----
81
44

query II rowsort
SELECT DISTINCT - 4 * 20 * 54, - 2 AS col1
----
-4320
-2

query II rowsort
SELECT ALL - 31 * - 0 - 51, + 65 * ( + CASE 39 WHEN - 35 THEN + 7 + - + 8 * - - 66 * - + 80 + - 95 END ) * 40 AS col1
----
-51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT DISTINCT + 5 * + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-7947
SELECT DISTINCT + 5 * + + COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT - 11 - - 96 + SUM( DISTINCT - 49 )
----
36

skipif mysql # not compatible
query I rowsort label-7948
SELECT - 11 - - 96 + SUM ( DISTINCT - 49 )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7949
SELECT - 36 * - 29 + + COUNT( * ) AS col2, 62 * + 2 AS col2
----
1045
124

skipif mysql # not compatible
query II rowsort label-7949
SELECT - 36 * - 29 + + COUNT ( * ) AS col2, 62 * + 2 AS col2
----
1045
124

query I rowsort
SELECT ALL + 87 * 56 AS col2
----
4872

query II rowsort
SELECT + 16, 84 AS col0
----
16
84

onlyif mysql # DIV for integer division: 
query I rowsort label-7952
SELECT - 75 DIV 43
----
-1

skipif mysql # not compatible
query I rowsort label-7952
SELECT - 75 / 43
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7953
SELECT - COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7953
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7954
SELECT - COUNT( * ) DIV + 40 * 4 DIV - 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7954
SELECT - COUNT ( * ) / + 40 * 4 / - 56 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT ALL 57 * - COUNT( - 40 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL 57 * - COUNT ( - 40 ) AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7956
SELECT DISTINCT + CAST( NULL AS SIGNED ) / COUNT( * ) * 28 * - - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / COUNT ( * ) * 28 * - - 7 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7957
SELECT - COUNT( * ) DIV - - CAST( - 76 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7957
SELECT - COUNT ( * ) / - - CAST ( - 76 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7958
SELECT - CASE - COUNT( * ) WHEN ( - - CASE - + 12 WHEN - 69 THEN NULL WHEN 42 + ( - - 96 ) * COUNT( * ) THEN - + SUM( 74 ) + + + NULLIF ( + CASE 76 WHEN + - SUM( DISTINCT + 48 ) + + + 19 * 33 THEN - 21 * 62 END, + 53 + + 54 + CASE - - CAST( 50 AS SIGNED ) WHEN - 1 * - 68 THEN + COUNT( * ) - - - 55 WHEN + 81 * + 44 + + COUNT( 5 ) THEN 14 WHEN ( - - ( + 35 ) ) THEN + 27 END + CASE + 69 WHEN COUNT( * ) * CAST( - 58 AS SIGNED ) THEN + - 29 END ) ELSE 75 - 32 END ) THEN NULL WHEN 88 * COUNT( * ) THEN + 10 + 62 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT - CASE - COUNT ( * ) WHEN ( - - CASE - + 12 WHEN - 69 THEN NULL WHEN 42 + ( - - 96 ) * COUNT ( * ) THEN - + SUM ( 74 ) + + + NULLIF ( + CASE 76 WHEN + - SUM ( DISTINCT + 48 ) + + + 19 * 33 THEN - 21 * 62 END, + 53 + + 54 + CASE - - CAST ( 50 AS INTEGER ) WHEN - 1 * - 68 THEN + COUNT ( * ) - - - 55 WHEN + 81 * + 44 + + COUNT ( 5 ) THEN 14 WHEN ( - - ( + 35 ) ) THEN + 27 END + CASE + 69 WHEN COUNT ( * ) * CAST ( - 58 AS INTEGER ) THEN + - 29 END ) ELSE 75 - 32 END ) THEN NULL WHEN 88 * COUNT ( * ) THEN + 10 + 62 END AS col2
----
NULL

query I rowsort
SELECT - - 92 - + + ( + + 86 ) AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7960
SELECT - 39 * + CAST( + AVG ( ALL - 92 ) AS SIGNED ) DIV + ( COUNT( * ) ) + CAST( - + 52 AS SIGNED ) AS col0
----
3536

skipif mysql # not compatible
query I rowsort label-7960
SELECT - 39 * + CAST ( + AVG ( ALL - 92 ) AS INTEGER ) / + ( COUNT ( * ) ) + CAST ( - + 52 AS INTEGER ) AS col0
----
3536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7961
SELECT + 9 * 73 DIV COUNT( * ) + - ( - + 39 ) DIV + 17 AS col1, + CAST( NULL AS SIGNED )
----
659
NULL

skipif mysql # not compatible
query II rowsort label-7961
SELECT + 9 * 73 / COUNT ( * ) + - ( - + 39 ) / + 17 AS col1, + CAST ( NULL AS INTEGER )
----
659
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7962
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 23
----
NULL

query II rowsort
SELECT - + 42 AS col1, 47 AS col2
----
-42
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7964
SELECT ALL - COUNT( * ), + 43 AS col1
----
-1
43

skipif mysql # not compatible
query II rowsort label-7964
SELECT ALL - COUNT ( * ), + 43 AS col1
----
-1
43

query I rowsort
SELECT - + ( 95 ) * 4 AS col1
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL + - SUM( DISTINCT - 19 ) + - + 86 * - + 85
----
7329

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL + - SUM ( DISTINCT - 19 ) + - + 86 * - + 85
----
7329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT DISTINCT - - 2 + - + CAST( NULL AS SIGNED ) + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT - - 2 + - + CAST ( NULL AS INTEGER ) + + 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7968
SELECT DISTINCT + COUNT( * ) * CASE + ( - CAST( NULL AS DECIMAL ) ) WHEN + 69 THEN - - 36 * - 47 + + 71 WHEN - 69 * COALESCE ( - - 21, - + 17 ) * + CASE - 56 WHEN - NULLIF ( + 94, + SUM( ALL 5 ) + + 37 ) THEN 1 ELSE + - 88 + + CAST( + 1 AS SIGNED ) - NULLIF ( - 56, + 86 ) END + + 4 - - 42 THEN 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT + COUNT ( * ) * CASE + ( - CAST ( NULL AS REAL ) ) WHEN + 69 THEN - - 36 * - 47 + + 71 WHEN - 69 * COALESCE ( - - 21, - + 17 ) * + CASE - 56 WHEN - NULLIF ( + 94, + SUM ( ALL 5 ) + + 37 ) THEN 1 ELSE + - 88 + + CAST ( + 1 AS INTEGER ) - NULLIF ( - 56, + 86 ) END + + 4 - - 42 THEN 76 END
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7969
SELECT ALL 28 + COALESCE ( + 41, COALESCE ( - + 9, + 93 ), 42 * + + COUNT( * ) ) * - 18 + - - 6 AS col1, - 64 AS col0, 4 - - + NULLIF ( + + 1, 43 ) * - 87
----
-704
-64
-83

skipif mysql # not compatible
query III rowsort label-7969
SELECT ALL 28 + COALESCE ( + 41, COALESCE ( - + 9, + 93 ), 42 * + + COUNT ( * ) ) * - 18 + - - 6 AS col1, - 64 AS col0, 4 - - + NULLIF ( + + 1, 43 ) * - 87
----
-704
-64
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7970
SELECT 65 - CASE + ( - - 16 ) WHEN - CAST( - 76 AS SIGNED ) + + 5 THEN + MAX( 47 ) WHEN + 36 / - 94 THEN + + CASE - - 19 WHEN - 97 + - 98 + CAST( - + 43 AS SIGNED ) + - 72 THEN NULL ELSE - COUNT( * ) END END / - 97 * - 46 + + 73 - MAX( - + 17 ) * + SUM( - 61 ) AS col2, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7970
SELECT 65 - CASE + ( - - 16 ) WHEN - CAST ( - 76 AS INTEGER ) + + 5 THEN + MAX ( 47 ) WHEN + 36 / - 94 THEN + + CASE - - 19 WHEN - 97 + - 98 + CAST ( - + 43 AS INTEGER ) + - 72 THEN NULL ELSE - COUNT ( * ) END END / - 97 * - 46 + + 73 - MAX ( - + 17 ) * + SUM ( - 61 ) AS col2, COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT 14 + + - 36
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT + ( - SUM( + ( - + 51 ) ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-7972
SELECT + ( - SUM ( + ( - + 51 ) ) ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT + + COUNT( * ) * + 25 + - 75 + - + 57 AS col2
----
-107

skipif mysql # not compatible
query I rowsort label-7973
SELECT + + COUNT ( * ) * + 25 + - 75 + - + 57 AS col2
----
-107

query I rowsort
SELECT 34 * 79 AS col1
----
2686

query I rowsort
SELECT ALL - 30 * + 9 * - 90 * + 98 - - 65
----
2381465

query I rowsort
SELECT DISTINCT - 97 * 54 * - ( + 7 ) AS col2
----
36666

query I rowsort
SELECT DISTINCT 40 * - 82 * - 38 AS col2
----
124640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT 14 * 94 * + - CAST( + 99 AS SIGNED ) + 75 * - 98 + + 79 AS col0
----
-137555

skipif mysql # not compatible
query I rowsort label-7978
SELECT 14 * 94 * + - CAST ( + 99 AS INTEGER ) + 75 * - 98 + + 79 AS col0
----
-137555

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT ALL SUM( DISTINCT + 79 ) * COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL SUM ( DISTINCT + 79 ) * COUNT ( * ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT ALL COUNT( * ) - - + 64 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL COUNT ( * ) - - + 64 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT COUNT( * ) * - COALESCE ( - 70, + 85, - COUNT( * ) ) * - 65
----
-4550

skipif mysql # not compatible
query I rowsort label-7981
SELECT COUNT ( * ) * - COALESCE ( - 70, + 85, - COUNT ( * ) ) * - 65
----
-4550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7982
SELECT ALL 41 * + COALESCE ( + 67, CAST( NULL AS SIGNED ) )
----
2747

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL 41 * + COALESCE ( + 67, CAST ( NULL AS INTEGER ) )
----
2747

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT 36 * - SUM( + 38 )
----
-1368

skipif mysql # not compatible
query I rowsort label-7983
SELECT 36 * - SUM ( + 38 )
----
-1368

query II rowsort
SELECT ALL - 91 AS col2, ( + - 28 )
----
-91
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7985
SELECT 26 + 38 DIV + - ( MIN( + + 37 ) )
----
25

skipif mysql # not compatible
query I rowsort label-7985
SELECT 26 + 38 / + - ( MIN ( + + 37 ) )
----
25

query II rowsort
SELECT ALL - 65 AS col0, 62 * - 21 * + 57 * - 30
----
-65
2226420

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ( - COUNT( * ) ) * + 19 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7987
SELECT ( - COUNT ( * ) ) * + 19 AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7988
SELECT ALL CAST( NULL AS SIGNED ) * + MAX( + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL CAST ( NULL AS INTEGER ) * + MAX ( + 1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7989
SELECT ALL CAST( NULL AS SIGNED ) * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL CAST ( NULL AS INTEGER ) * + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT COUNT( * ) + + + 51 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7990
SELECT COUNT ( * ) + + + 51 AS col2
----
52

query II rowsort
SELECT 94 AS col0, - 44
----
94
-44

query I rowsort
SELECT 51 + - + 3
----
48

query II rowsort
SELECT DISTINCT 34 AS col2, 64
----
34
64

query I rowsort
SELECT ALL - + ( - - ( 80 ) ) + - 25 col2
----
-105

onlyif mysql # DIV for integer division: 
query II rowsort label-7995
SELECT ( + - 34 ) + + 83 DIV - 57 AS col2, + 15 AS col0
----
-35
15

skipif mysql # not compatible
query II rowsort label-7995
SELECT ( + - 34 ) + + 83 / - 57 AS col2, + 15 AS col0
----
-35
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT - COUNT( * ) - - ( 24 )
----
23

skipif mysql # not compatible
query I rowsort label-7996
SELECT - COUNT ( * ) - - ( 24 )
----
23

query I rowsort
SELECT - 60 + + 21 - 84
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT - COUNT( - 82 ) * - + 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7998
SELECT - COUNT ( - 82 ) * - + 30 AS col2
----
30

query I rowsort
SELECT ALL + - 37 + 97
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8000
SELECT - 13, 47 - - - CASE - AVG ( ALL 70 ) WHEN - CASE + MIN( DISTINCT + 36 ) WHEN 52 THEN NULL WHEN + + 46 THEN NULL ELSE COUNT( * ) END THEN - - 81 WHEN + - 99 THEN NULL END / 83 col2
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-8000
SELECT - 13, 47 - - - CASE - AVG ( ALL 70 ) WHEN - CASE + MIN ( DISTINCT + 36 ) WHEN 52 THEN NULL WHEN + + 46 THEN NULL ELSE COUNT ( * ) END THEN - - 81 WHEN + - 99 THEN NULL END / 83 col2
----
-13
NULL

query I rowsort
SELECT ALL - - 24 + + + 42
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8002
SELECT - - MIN( DISTINCT + 26 ), + 47 * + + 50 AS col2
----
26
2350

skipif mysql # not compatible
query II rowsort label-8002
SELECT - - MIN ( DISTINCT + 26 ), + 47 * + + 50 AS col2
----
26
2350

onlyif mysql # DIV for integer division: 
query II rowsort label-8003
SELECT DISTINCT + 85 col2, + 45 DIV + 49 AS col1
----
85
0

skipif mysql # not compatible
query II rowsort label-8003
SELECT DISTINCT + 85 col2, + 45 / + 49 AS col1
----
85
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT MAX( DISTINCT + + 0 ) + + 78
----
78

skipif mysql # not compatible
query I rowsort label-8004
SELECT MAX ( DISTINCT + + 0 ) + + 78
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT + MIN( DISTINCT 61 )
----
61

skipif mysql # not compatible
query I rowsort label-8005
SELECT + MIN ( DISTINCT 61 )
----
61

query II rowsort
SELECT 73 AS col0, 37 AS col1
----
73
37

query I rowsort
SELECT ALL + 1 * - - 7 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT + ( - + ( + - COUNT( * ) ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8008
SELECT + ( - + ( + - COUNT ( * ) ) ) col0
----
1

query I rowsort
SELECT ALL + 90 - + 16 * - - 12 AS col2
----
-102

query II rowsort
SELECT DISTINCT ( + + 43 ) AS col1, ( + 73 ) + ( + 67 ) AS col1
----
43
140

query I rowsort
SELECT DISTINCT + NULLIF ( 38, - - 36 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT ALL COUNT( * ) - + 44 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL COUNT ( * ) - + 44 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL + COUNT( * ) * + 21 * - - 45
----
945

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL + COUNT ( * ) * + 21 * - - 45
----
945

query I rowsort
SELECT 28 * 89 AS col0
----
2492

onlyif mysql # aggregate syntax: 
query II rowsort label-8015
SELECT ALL - CASE + 27 WHEN + 3 * + + 60 THEN + COUNT( * ) END, - COUNT( * ) + + 63 AS col0
----
NULL
62

skipif mysql # not compatible
query II rowsort label-8015
SELECT ALL - CASE + 27 WHEN + 3 * + + 60 THEN + COUNT ( * ) END, - COUNT ( * ) + + 63 AS col0
----
NULL
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8016
SELECT 10 DIV + 88 col1
----
0

skipif mysql # not compatible
query I rowsort label-8016
SELECT 10 / + 88 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8017
SELECT 46 * + COUNT( - + CAST( + ( - + 65 ) AS SIGNED ) ) * - - 7 * - + 25 * + + 91 AS col0
----
-732550

skipif mysql # not compatible
query I rowsort label-8017
SELECT 46 * + COUNT ( - + CAST ( + ( - + 65 ) AS INTEGER ) ) * - - 7 * - + 25 * + + 91 AS col0
----
-732550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8018
SELECT - CASE + 73 WHEN - + COUNT( * ) + + + COUNT( * ) + - + 53 / + 73 + + + MIN( DISTINCT + 7 ) * + + ( + 53 ) / + COALESCE ( + COALESCE ( + - 88, - 16 ), + COUNT( * ) + - CAST( NULL AS SIGNED ) ) THEN - 18 * CASE - + COUNT( + 15 ) WHEN + 37 + + 67 THEN + 43 WHEN - 69 THEN NULL WHEN + - ( - COUNT( * ) ) + - 71 - - 81 * - ( - - 29 ) * + 96 THEN + CAST( + ( 53 ) AS DECIMAL ) END + - COUNT( * ) - - + 53 + + - 90 END / - + COALESCE ( - COUNT( + - 40 ), + + NULLIF ( - 97, + COUNT( * ) ), + 11 * 84 * + - 10 + - - 81 ) + CAST( NULL AS SIGNED ) * + 91 - 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT - CASE + 73 WHEN - + COUNT ( * ) + + + COUNT ( * ) + - + 53 / + 73 + + + MIN ( DISTINCT + 7 ) * + + ( + 53 ) / + COALESCE ( + COALESCE ( + - 88, - 16 ), + COUNT ( * ) + - CAST ( NULL AS INTEGER ) ) THEN - 18 * CASE - + COUNT ( + 15 ) WHEN + 37 + + 67 THEN + 43 WHEN - 69 THEN NULL WHEN + - ( - COUNT ( * ) ) + - 71 - - 81 * - ( - - 29 ) * + 96 THEN + CAST ( + ( 53 ) AS REAL ) END + - COUNT ( * ) - - + 53 + + - 90 END / - + COALESCE ( - COUNT ( + - 40 ), + + NULLIF ( - 97, + COUNT ( * ) ), + 11 * 84 * + - 10 + - - 81 ) + CAST ( NULL AS INTEGER ) * + 91 - 95 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8019
SELECT DISTINCT 46 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT 46 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT 36 * + COUNT( - + 93 )
----
36

skipif mysql # not compatible
query I rowsort label-8020
SELECT 36 * + COUNT ( - + 93 )
----
36

query I rowsort
SELECT DISTINCT 81 * - 27 AS col1
----
-2187

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT DISTINCT 10 + - + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8022
SELECT DISTINCT 10 + - + COUNT ( * ) AS col1
----
9

query I rowsort
SELECT ALL 34 + - + CASE + - 26 WHEN - 35 THEN + 64 WHEN - - 51 THEN NULL ELSE NULL END / + ( - 67 ) - + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT 61 * - - 0 + MIN( ALL + 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8024
SELECT 61 * - - 0 + MIN ( ALL + 70 ) AS col0
----
70

query II rowsort
SELECT DISTINCT 45 + + 0 AS col1, + 15
----
45
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT ALL 4 * + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL 4 * + + COUNT ( * ) AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8027
SELECT CAST( + + ( 85 ) AS SIGNED ) * 71 AS col2
----
6035

skipif mysql # not compatible
query I rowsort label-8027
SELECT CAST ( + + ( 85 ) AS INTEGER ) * 71 AS col2
----
6035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8028
SELECT ALL 80 + + CAST( NULL AS SIGNED ), + 65 + - CASE COUNT( * ) WHEN - 78 THEN NULL ELSE + COUNT( * ) END - + NULLIF ( + 62, CAST( + + 59 AS SIGNED ) ) * - - 63 col2
----
NULL
-3842

skipif mysql # not compatible
query II rowsort label-8028
SELECT ALL 80 + + CAST ( NULL AS INTEGER ), + 65 + - CASE COUNT ( * ) WHEN - 78 THEN NULL ELSE + COUNT ( * ) END - + NULLIF ( + 62, CAST ( + + 59 AS INTEGER ) ) * - - 63 col2
----
NULL
-3842

query I rowsort
SELECT ALL 98 + + - 96 + + - 73 + - 9
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT + 89 * - 57 + + 39 * + NULLIF ( - 66, - COUNT( * ) ) AS col0
----
-7647

skipif mysql # not compatible
query I rowsort label-8030
SELECT + 89 * - 57 + + 39 * + NULLIF ( - 66, - COUNT ( * ) ) AS col0
----
-7647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8031
SELECT CAST( 69 AS SIGNED ) * - 90
----
-6210

skipif mysql # not compatible
query I rowsort label-8031
SELECT CAST ( 69 AS INTEGER ) * - 90
----
-6210

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT 96 + - 30 * - MIN( 7 ) + COUNT( * ) col1
----
307

skipif mysql # not compatible
query I rowsort label-8032
SELECT 96 + - 30 * - MIN ( 7 ) + COUNT ( * ) col1
----
307

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL - 57 * 86 * - MAX( - - 19 ) AS col2
----
93138

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL - 57 * 86 * - MAX ( - - 19 ) AS col2
----
93138

query I rowsort
SELECT DISTINCT 32 + + 84 AS col0
----
116

query I rowsort
SELECT DISTINCT - + 64 * - ( - + 90 ) + 60 AS col0
----
-5700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8036
SELECT + COALESCE ( - 25, - 90, + 37 - + 69 DIV COUNT( * ) ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-8036
SELECT + COALESCE ( - 25, - 90, + 37 - + 69 / COUNT ( * ) ) AS col2
----
-25

query I rowsort
SELECT + ( ( + 25 ) ) - 28
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8038
SELECT + 46 - 80, COUNT( * ) + 21 * - - COUNT( * ) AS col1
----
-34
22

skipif mysql # not compatible
query II rowsort label-8038
SELECT + 46 - 80, COUNT ( * ) + 21 * - - COUNT ( * ) AS col1
----
-34
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT - NULLIF ( + - SUM( ALL - 63 ), + - 17 ) * - + CASE 17 WHEN 60 THEN NULL ELSE - 1 END + - 90 AS col1
----
-153

skipif mysql # not compatible
query I rowsort label-8039
SELECT - NULLIF ( + - SUM ( ALL - 63 ), + - 17 ) * - + CASE 17 WHEN 60 THEN NULL ELSE - 1 END + - 90 AS col1
----
-153

query I rowsort
SELECT ALL + 39 - 80
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8041
SELECT ALL COALESCE ( + - 35, 95, + COUNT( + - CAST( NULL AS SIGNED ) ) * - 58 - - MIN( ALL - 15 ) + 49 * + 43 ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL COALESCE ( + - 35, 95, + COUNT ( + - CAST ( NULL AS INTEGER ) ) * - 58 - - MIN ( ALL - 15 ) + 49 * + 43 ) col1
----
-35

query I rowsort
SELECT - + 84 - + 75
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT - + 14 + 88 + + + SUM( + 55 )
----
129

skipif mysql # not compatible
query I rowsort label-8043
SELECT - + 14 + 88 + + + SUM ( + 55 )
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT - 88 * + COUNT( * ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-8044
SELECT - 88 * + COUNT ( * ) AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8045
SELECT DISTINCT + CAST( - 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT + CAST ( - 40 AS INTEGER )
----
-40

query I rowsort
SELECT 37 * 64 + - - 92 col1
----
2460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8047
SELECT - COUNT( * ) DIV - 94 + - 63 DIV 79 * + 90 + - 39 DIV ( - + 78 )
----
0

skipif mysql # not compatible
query I rowsort label-8047
SELECT - COUNT ( * ) / - 94 + - 63 / 79 * + 90 + - 39 / ( - + 78 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL + MIN( - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL + MIN ( - 18 )
----
-18

query I rowsort
SELECT DISTINCT + 62 * 51 + + 62
----
3224

query I rowsort
SELECT ALL 98 * + - 26 + - - 10 AS col1
----
-2538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8051
SELECT CASE + 64 WHEN + - 44 * + - 73 THEN - + 95 * + + NULLIF ( ( 92 ), + 41 * + 21 / - 99 ) WHEN + + 50 + + + 8 + + CAST( + 76 AS SIGNED ) THEN NULL WHEN + 17 / + CAST( NULL AS SIGNED ) + - 81 + - ( - 43 ) + - 42 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT CASE + 64 WHEN + - 44 * + - 73 THEN - + 95 * + + NULLIF ( ( 92 ), + 41 * + 21 / - 99 ) WHEN + + 50 + + + 8 + + CAST ( + 76 AS INTEGER ) THEN NULL WHEN + 17 / + CAST ( NULL AS INTEGER ) + - 81 + - ( - 43 ) + - 42 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 12 * - 48 + - 27 * + + 1 AS col1, + NULLIF ( - + 37, - 79 )
----
549
-37

query II rowsort
SELECT ALL + 0, - 40 AS col1
----
0
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8054
SELECT COALESCE ( + 75, - - CAST( + 16 AS SIGNED ), - + 30 + + 55 ) col1, 13 + 35 AS col2
----
75
48

skipif mysql # not compatible
query II rowsort label-8054
SELECT COALESCE ( + 75, - - CAST ( + 16 AS INTEGER ), - + 30 + + 55 ) col1, 13 + 35 AS col2
----
75
48

query I rowsort
SELECT ALL ( 27 ) * + 40 + - - ( - 31 ) + + ( + NULLIF ( + 28, + 17 ) ) * + - 55 AS col1
----
-491

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT - COUNT( * ) + - 9 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-8056
SELECT - COUNT ( * ) + - 9 AS col1
----
-10

query I rowsort
SELECT - 63 * - - 3 AS col2
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT - 80 + ( + 1 ) * + + COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-8058
SELECT - 80 + ( + 1 ) * + + COUNT ( * ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT + SUM( + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-8059
SELECT + SUM ( + 55 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8060
SELECT ALL 27 * + 66 * + COALESCE ( + 45, + + 33 * 93 DIV - 74, - 62 ) col0, - SUM( DISTINCT 69 )
----
80190
-69

skipif mysql # not compatible
query II rowsort label-8060
SELECT ALL 27 * + 66 * + COALESCE ( + 45, + + 33 * 93 / - 74, - 62 ) col0, - SUM ( DISTINCT 69 )
----
80190
-69

query I rowsort
SELECT ALL - + 58 * - 91 col2
----
5278

query I rowsort
SELECT DISTINCT - 64 * - 1 + + - 84 + + + 81 + + - 86 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT DISTINCT 33 * - 94 * - - MAX( DISTINCT + 87 ) + 83 AS col1
----
-269791

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT 33 * - 94 * - - MAX ( DISTINCT + 87 ) + 83 AS col1
----
-269791

query I rowsort
SELECT + 64 + 86 * - 53 col1
----
-4494

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT - 8 * + CASE 59 WHEN 62 * - COALESCE ( 16, + 70 ) + 55 * COUNT( * ) + - 16 - 66 / 48 * - 58 * + 82 * - 2 THEN + ( 21 ) WHEN + + COALESCE ( - 28, - 80 ) THEN + - 47 WHEN CASE + - 40 WHEN - + 82 THEN - 31 ELSE NULL END THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT - 8 * + CASE 59 WHEN 62 * - COALESCE ( 16, + 70 ) + 55 * COUNT ( * ) + - 16 - 66 / 48 * - 58 * + 82 * - 2 THEN + ( 21 ) WHEN + + COALESCE ( - 28, - 80 ) THEN + - 47 WHEN CASE + - 40 WHEN - + 82 THEN - 31 ELSE NULL END THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + 78 + - 27 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT + - 56 * + + 13 * + 74 * 66 + + 49 - + + 41 * + SUM( ALL 49 ) * + 95 + - - ( + 69 ) - 73 + + 37 + + + 33 AS col0
----
-3746292

skipif mysql # not compatible
query I rowsort label-8067
SELECT + - 56 * + + 13 * + 74 * 66 + + 49 - + + 41 * + SUM ( ALL 49 ) * + 95 + - - ( + 69 ) - 73 + + 37 + + + 33 AS col0
----
-3746292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8068
SELECT + CAST( NULL AS SIGNED ) + - 97 * CAST( + 35 AS SIGNED ) * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT + CAST ( NULL AS INTEGER ) + - 97 * CAST ( + 35 AS INTEGER ) * + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + + 23 - - + 9 * 42 + + 77 + - 85
----
393

query I rowsort
SELECT ALL + 43 - - - 66 col0
----
-23

query I rowsort
SELECT + - 62 * + - 62 + - 17 + + - 31 AS col2
----
3796

onlyif mysql # aggregate syntax: 
query II rowsort label-8072
SELECT ALL 77, - COUNT( - ( + 98 ) ) * + ( + ( + 87 ) ) * 39 AS col1
----
77
-3393

skipif mysql # not compatible
query II rowsort label-8072
SELECT ALL 77, - COUNT ( - ( + 98 ) ) * + ( + ( + 87 ) ) * 39 AS col1
----
77
-3393

query I rowsort
SELECT ALL - 18 * - 51 AS col2
----
918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8074
SELECT ALL 64 * + 50 - + - COUNT( * ) + - ( + 53 ) DIV 83
----
3201

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL 64 * + 50 - + - COUNT ( * ) + - ( + 53 ) / 83
----
3201

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT + COUNT( * ) * - 53
----
-53

skipif mysql # not compatible
query I rowsort label-8075
SELECT + COUNT ( * ) * - 53
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8076
SELECT DISTINCT ( ( + - 20 ) ) AS col2, ( 10 ) + - 11 * - + ( CAST( NULL AS SIGNED ) )
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-8076
SELECT DISTINCT ( ( + - 20 ) ) AS col2, ( 10 ) + - 11 * - + ( CAST ( NULL AS INTEGER ) )
----
-20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL ( - ( + COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL ( - ( + COUNT ( * ) ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 76 + + 0 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT ALL COUNT( * ) + - COUNT( * ) + - 98
----
-98

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL COUNT ( * ) + - COUNT ( * ) + - 98
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8080
SELECT DISTINCT COALESCE ( + - COUNT( * ), + 0, + + 19 ) DIV + 29 + - 1 + - 83, 25 AS col2
----
-84
25

skipif mysql # not compatible
query II rowsort label-8080
SELECT DISTINCT COALESCE ( + - COUNT ( * ), + 0, + + 19 ) / + 29 + - 1 + - 83, 25 AS col2
----
-84
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT - CASE 9 WHEN 16 THEN - 0 * + 41 WHEN - 17 THEN - + 70 ELSE NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT - CASE 9 WHEN 16 THEN - 0 * + 41 WHEN - 17 THEN - + 70 ELSE NULL END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8082
SELECT DISTINCT 57 DIV + 59 + - COUNT( - 90 ) AS col2, + MIN( - 31 ) AS col0
----
-1
-31

skipif mysql # not compatible
query II rowsort label-8082
SELECT DISTINCT 57 / + 59 + - COUNT ( - 90 ) AS col2, + MIN ( - 31 ) AS col0
----
-1
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT ALL COALESCE ( - + 81, + - 66 - - 80 ) DIV + ( 69 ) + + 93
----
92

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL COALESCE ( - + 81, + - 66 - - 80 ) / + ( 69 ) + + 93
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8084
SELECT - MIN( + - 60 ) - - MAX( - 84 ), 2 AS col1
----
-24
2

skipif mysql # not compatible
query II rowsort label-8084
SELECT - MIN ( + - 60 ) - - MAX ( - 84 ), 2 AS col1
----
-24
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8085
SELECT - 39 - 88 * + COUNT( + 48 ), 29 * + + COUNT( * ) AS col2
----
-127
29

skipif mysql # not compatible
query II rowsort label-8085
SELECT - 39 - 88 * + COUNT ( + 48 ), 29 * + + COUNT ( * ) AS col2
----
-127
29

query I rowsort
SELECT ALL - 7 * + + 16
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT ALL - 34 * CAST( NULL AS SIGNED ) * - ( - - COALESCE ( + 54, - + 67 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL - 34 * CAST ( NULL AS INTEGER ) * - ( - - COALESCE ( + 54, - + 67 ) )
----
NULL

query I rowsort
SELECT ALL + 80 - + ( 5 )
----
75

query I rowsort
SELECT DISTINCT + 62 - - + ( 16 ) - + 84 AS col0
----
-6

query I rowsort
SELECT - 53 - + + 56 AS col0
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT ALL - MAX( - + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - MAX ( - + 66 )
----
66

query I rowsort
SELECT - ( - ( 39 ) )
----
39

query I rowsort
SELECT 78 * + 23
----
1794

onlyif mysql # DIV for integer division: 
query I rowsort label-8094
SELECT ALL + 63 DIV 44
----
1

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL + 63 / 44
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8095
SELECT + 85 + CAST( NULLIF ( SUM( DISTINCT - - 75 ), + 23 ) AS SIGNED )
----
160

skipif mysql # not compatible
query I rowsort label-8095
SELECT + 85 + CAST ( NULLIF ( SUM ( DISTINCT - - 75 ), + 23 ) AS INTEGER )
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT - - MAX( DISTINCT - 91 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT - - MAX ( DISTINCT - 91 ) AS col2
----
-91

query I rowsort
SELECT ALL - 13 * - + 95
----
1235

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT MIN( + ( + 86 ) ) * - - 20 - + - 28 AS col2
----
1748

skipif mysql # not compatible
query I rowsort label-8098
SELECT MIN ( + ( + 86 ) ) * - - 20 - + - 28 AS col2
----
1748

onlyif mysql # DIV for integer division: 
query I rowsort label-8099
SELECT ALL + 2 DIV 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL + 2 / 45 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8100
SELECT DISTINCT + 69 * + COUNT( * ) AS col1, COUNT( * )
----
69
1

skipif mysql # not compatible
query II rowsort label-8100
SELECT DISTINCT + 69 * + COUNT ( * ) AS col1, COUNT ( * )
----
69
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8101
SELECT + 69 DIV + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8101
SELECT + 69 / + 92 AS col1
----
0

query II rowsort
SELECT 37 + + + 15 AS col1, 89 - + COALESCE ( - 25, - + 64 + + 59 * - 35 )
----
52
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT - ( + - 0 ) * + SUM( DISTINCT ( 65 ) ) + + 14 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8103
SELECT - ( + - 0 ) * + SUM ( DISTINCT ( 65 ) ) + + 14 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT COUNT( * ) - + 64 + - 30 col2
----
-93

skipif mysql # not compatible
query I rowsort label-8104
SELECT COUNT ( * ) - + 64 + - 30 col2
----
-93

query I rowsort
SELECT ALL + 87 + + - 71 + + 39 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT + ( MIN( - ( + + 36 ) ) ) + - 39 + + 50 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-8106
SELECT + ( MIN ( - ( + + 36 ) ) ) + - 39 + + 50 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT - NULLIF ( - COUNT( * ), ( - 5 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8107
SELECT - NULLIF ( - COUNT ( * ), ( - 5 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8108
SELECT DISTINCT + 59 + CAST( 70 AS SIGNED ) + + 61
----
190

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT + 59 + CAST ( 70 AS INTEGER ) + + 61
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT DISTINCT SUM( 87 ) + - - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT SUM ( 87 ) + - - COUNT ( * ) AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8110
SELECT ALL CAST( NULL AS SIGNED ) + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL CAST ( NULL AS INTEGER ) + - 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8111
SELECT DISTINCT MIN( ALL + + 97 ) + + + CASE - - 59 WHEN - 98 THEN COUNT( * ) ELSE - + 29 + - 41 END, - CAST( NULL AS DECIMAL ) * - - 47 AS col1
----
27
NULL

skipif mysql # not compatible
query II rowsort label-8111
SELECT DISTINCT MIN ( ALL + + 97 ) + + + CASE - - 59 WHEN - 98 THEN COUNT ( * ) ELSE - + 29 + - 41 END, - CAST ( NULL AS REAL ) * - - 47 AS col1
----
27
NULL

query I rowsort
SELECT DISTINCT 58 + + 56 AS col2
----
114

query I rowsort
SELECT ALL + 10 + - ( + 47 ) + 91
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8114
SELECT CASE + 19 WHEN + COUNT( * ) - + - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + + - COUNT( * ) THEN + - AVG ( 13 ) WHEN - 19 THEN - 89 + + COUNT( ALL + 53 ) WHEN + 38 THEN NULL END - + + AVG ( DISTINCT 95 ) + - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT CASE + 19 WHEN + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + + - COUNT ( * ) THEN + - AVG ( 13 ) WHEN - 19 THEN - 89 + + COUNT ( ALL + 53 ) WHEN + 38 THEN NULL END - + + AVG ( DISTINCT 95 ) + - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8115
SELECT ALL 56 AS col1, - MIN( + + 74 )
----
56
-74

skipif mysql # not compatible
query II rowsort label-8115
SELECT ALL 56 AS col1, - MIN ( + + 74 )
----
56
-74

query I rowsort
SELECT 65 - + 53 AS col1
----
12

query I rowsort
SELECT DISTINCT 64 * 52
----
3328

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8118
SELECT 74 + 12 * - 27 AS col2, + CAST( NULL AS DECIMAL ) AS col0
----
-250
NULL

skipif mysql # not compatible
query II rowsort label-8118
SELECT 74 + 12 * - 27 AS col2, + CAST ( NULL AS REAL ) AS col0
----
-250
NULL

query I rowsort
SELECT ALL 57 + - 65
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT COUNT( * ) * + 83 + + 20 + - + 13 * + + CASE COUNT( * ) WHEN 18 THEN - - 56 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT COUNT ( * ) * + 83 + + 20 + - + 13 * + + CASE COUNT ( * ) WHEN 18 THEN - - 56 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8121
SELECT + 77 DIV 69 + - 94
----
-93

skipif mysql # not compatible
query I rowsort label-8121
SELECT + 77 / 69 + - 94
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8122
SELECT ALL - COALESCE ( 43, + 23 DIV - - 41 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL - COALESCE ( 43, + 23 / - - 41 ) AS col1
----
-43

query I rowsort
SELECT DISTINCT - COALESCE ( 17, - + 11 + + + 21 * - 54 * + 25 * 93 * - 54 * - 93 ) AS col1
----
-17

query I rowsort
SELECT ALL + 48 - + 22 AS col2
----
26

query II rowsort
SELECT + 52 * - - 5 + 76 AS col1, - 49 col0
----
336
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8126
SELECT DISTINCT + 58 DIV 11
----
5

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT + 58 / 11
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT ALL + COUNT( * ) * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL + COUNT ( * ) * - 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT COUNT( * ) * + COALESCE ( - 57, - 60 )
----
-57

skipif mysql # not compatible
query I rowsort label-8128
SELECT COUNT ( * ) * + COALESCE ( - 57, - 60 )
----
-57

query I rowsort
SELECT DISTINCT - 31 * 39 AS col0
----
-1209

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL + COUNT( 85 ) * + 47
----
47

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + COUNT ( 85 ) * + 47
----
47

query I rowsort
SELECT DISTINCT + 86 * - 73
----
-6278

query I rowsort
SELECT 14 * 44 AS col0
----
616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8133
SELECT - 57 * - 94 + - CAST( + 96 AS SIGNED ) * - 34 AS col1
----
8622

skipif mysql # not compatible
query I rowsort label-8133
SELECT - 57 * - 94 + - CAST ( + 96 AS INTEGER ) * - 34 AS col1
----
8622

query I rowsort
SELECT DISTINCT + 68 * + 40 col0
----
2720

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8135
SELECT ALL + CAST( NULL AS DECIMAL ) + - ( AVG ( - 7 ) - + 2 * + 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL + CAST ( NULL AS REAL ) + - ( AVG ( - 7 ) - + 2 * + 43 )
----
NULL

query I rowsort
SELECT - 94 * 85 + + 15 AS col2
----
-7975

query I rowsort
SELECT 20 + 29
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8138
SELECT 56 - CASE - MAX( DISTINCT - 79 ) + 22 WHEN + COUNT( * ) - - 95 * + 3 THEN CAST( NULL AS SIGNED ) + 68 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT 56 - CASE - MAX ( DISTINCT - 79 ) + 22 WHEN + COUNT ( * ) - - 95 * + 3 THEN CAST ( NULL AS INTEGER ) + 68 END AS col1
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + 3, 13, 94 ) + - 81
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT COUNT( * ) + - 3 * - 64 AS col1
----
193

skipif mysql # not compatible
query I rowsort label-8140
SELECT COUNT ( * ) + - 3 * - 64 AS col1
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT ALL + COUNT( * ) + 19
----
20

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL + COUNT ( * ) + 19
----
20

query I rowsort
SELECT DISTINCT 82 + - 27 * 68 AS col2
----
-1754

query I rowsort
SELECT ALL 41 + - COALESCE ( + 32, 99 ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8144
SELECT 46 + CASE 30 WHEN 14 * 4 THEN + CASE - 62 WHEN 29 THEN + 36 * NULLIF ( + COALESCE ( 94, 53 / ( 21 * 39 ) + + 29 * 35 ) * NULLIF ( + 49, - 76 ), + 47 ) WHEN - 52 * COUNT( * ) THEN NULL END + - CAST( - 95 AS SIGNED ) WHEN + 4 THEN - AVG ( ( + 11 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8144
SELECT 46 + CASE 30 WHEN 14 * 4 THEN + CASE - 62 WHEN 29 THEN + 36 * NULLIF ( + COALESCE ( 94, 53 / ( 21 * 39 ) + + 29 * 35 ) * NULLIF ( + 49, - 76 ), + 47 ) WHEN - 52 * COUNT ( * ) THEN NULL END + - CAST ( - 95 AS INTEGER ) WHEN + 4 THEN - AVG ( ( + 11 ) ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 17 + 74 * - 34
----
-2499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8146
SELECT CASE 13 WHEN + 3 * 7 + + 15 THEN NULL WHEN 88 * AVG ( - 46 ) THEN NULL ELSE - CASE WHEN NOT 16 BETWEEN AVG ( ALL 24 ) + 49 AND - CAST( 50 AS SIGNED ) + 83 * + COUNT( * ) THEN - NULLIF ( + 40, 57 * 23 ) ELSE 28 END END + - 54
----
-14

skipif mysql # not compatible
query I rowsort label-8146
SELECT CASE 13 WHEN + 3 * 7 + + 15 THEN NULL WHEN 88 * AVG ( - 46 ) THEN NULL ELSE - CASE WHEN NOT 16 BETWEEN AVG ( ALL 24 ) + 49 AND - CAST ( 50 AS INTEGER ) + 83 * + COUNT ( * ) THEN - NULLIF ( + 40, 57 * 23 ) ELSE 28 END END + - 54
----
-14

query I rowsort
SELECT ALL - 6 * - 64
----
384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8148
SELECT ALL COUNT( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL COUNT ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
0

query I rowsort
SELECT DISTINCT - CASE ( 81 ) WHEN 11 THEN 30 WHEN 85 + - 54 THEN NULL WHEN 89 * 4 THEN NULL ELSE 3 * NULLIF ( + 31, 78 ) END + + 81
----
-12

query I rowsort
SELECT 74 + - 20 AS col0
----
54

query I rowsort
SELECT ALL 81 + - 42 * + 8 AS col1
----
-255

query I rowsort
SELECT 80 * - 20
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT - COUNT( DISTINCT + 14 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8153
SELECT - COUNT ( DISTINCT + 14 ) AS col0
----
-1

query I rowsort
SELECT ALL - 79 - 51
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT - SUM( + 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-8155
SELECT - SUM ( + 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL COUNT( * ) - 73 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL COUNT ( * ) - 73 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT + ( + COALESCE ( - 91, COUNT( * ) ) ) * - 74
----
6734

skipif mysql # not compatible
query I rowsort label-8157
SELECT + ( + COALESCE ( - 91, COUNT ( * ) ) ) * - 74
----
6734

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT DISTINCT CASE 85 WHEN + 6 * - 49 THEN NULL ELSE + 27 + COUNT( * ) END * 39
----
1092

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT CASE 85 WHEN + 6 * - 49 THEN NULL ELSE + 27 + COUNT ( * ) END * 39
----
1092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8159
SELECT NULLIF ( - COUNT( + 38 ), 47 / CASE - ( + 18 ) * + 34 WHEN 30 * - ( + CAST( 23 AS SIGNED ) * 50 ) - + 18 THEN MAX( - 91 ) + 6 END )
----
-1

skipif mysql # not compatible
query I rowsort label-8159
SELECT NULLIF ( - COUNT ( + 38 ), 47 / CASE - ( + 18 ) * + 34 WHEN 30 * - ( + CAST ( 23 AS INTEGER ) * 50 ) - + 18 THEN MAX ( - 91 ) + 6 END )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8160
SELECT 71 DIV - 76 + + 30
----
30

skipif mysql # not compatible
query I rowsort label-8160
SELECT 71 / - 76 + + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT CASE WHEN NOT 14 >= COUNT( * ) * + 94 THEN + 66 - + 70 END col1
----
-4

skipif mysql # not compatible
query I rowsort label-8161
SELECT CASE WHEN NOT 14 >= COUNT ( * ) * + 94 THEN + 66 - + 70 END col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT + 3 * CAST( + 79 AS SIGNED )
----
237

skipif mysql # not compatible
query I rowsort label-8162
SELECT + 3 * CAST ( + 79 AS INTEGER )
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT ALL COUNT( * ) * - 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL COUNT ( * ) * - 0 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT + + 58 - CAST( 4 AS SIGNED ) * 95 col1
----
-322

skipif mysql # not compatible
query I rowsort label-8164
SELECT + + 58 - CAST ( 4 AS INTEGER ) * 95 col1
----
-322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8165
SELECT - CASE + CASE 16 WHEN 51 + + 63 * - 49 THEN + 75 + ( - 7 ) END WHEN - 3 - CASE 90 WHEN - 82 THEN - 63 - - COALESCE ( 39 + + COUNT( * ), 3 - - 88, 61 * + 79 ) * + 69 ELSE NULL END THEN NULL ELSE - COALESCE ( - 16, - 49 ) END DIV 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8165
SELECT - CASE + CASE 16 WHEN 51 + + 63 * - 49 THEN + 75 + ( - 7 ) END WHEN - 3 - CASE 90 WHEN - 82 THEN - 63 - - COALESCE ( 39 + + COUNT ( * ), 3 - - 88, 61 * + 79 ) * + 69 ELSE NULL END THEN NULL ELSE - COALESCE ( - 16, - 49 ) END / 81 AS col1
----
0

query I rowsort
SELECT ALL 67 * 41 col1
----
2747

query I rowsort
SELECT DISTINCT + CASE + ( - 90 ) WHEN - 20 THEN + ( 5 ) ELSE 10 END AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8168
SELECT ALL + + ( + MAX( ALL + CAST( - 7 AS SIGNED ) ) )
----
-7

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL + + ( + MAX ( ALL + CAST ( - 7 AS INTEGER ) ) )
----
-7

query I rowsort
SELECT - - 75 * + 86 AS col0
----
6450

query I rowsort
SELECT DISTINCT - + COALESCE ( + 20, 93 + + 22 ) * - 39 AS col1
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT - SUM( ALL 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-8171
SELECT - SUM ( ALL 90 )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8172
SELECT - - COUNT( * ) DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-8172
SELECT - - COUNT ( * ) / + 57
----
0

query I rowsort
SELECT ALL + 21 * 0 + 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL + 85 * 51 + COUNT( * ) AS col1
----
4336

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + 85 * 51 + COUNT ( * ) AS col1
----
4336

query I rowsort
SELECT + - ( 52 ) col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT COALESCE ( 52, - 97, MAX( DISTINCT + 68 ) ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8176
SELECT COALESCE ( 52, - 97, MAX ( DISTINCT + 68 ) ) AS col1
----
52

query I rowsort
SELECT - 83 + + 54
----
-29

query I rowsort
SELECT ALL - ( - 74 ) * 84 col1
----
6216

query I rowsort
SELECT DISTINCT 1 + - 57 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL + ( 37 ) + ( + COUNT( * ) - ( 74 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL + ( 37 ) + ( + COUNT ( * ) - ( 74 ) )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8181
SELECT MIN( + CASE + 4 WHEN + 18 THEN NULL WHEN - 86 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 72 - - 25 THEN + 77 - + 48 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT MIN ( + CASE + 4 WHEN + 18 THEN NULL WHEN - 86 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 72 - - 25 THEN + 77 - + 48 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT DISTINCT + + 66 * SUM( 65 )
----
4290

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT + + 66 * SUM ( 65 )
----
4290

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT DISTINCT + 92 + ( MAX( - ( 13 ) ) ) * - 20 AS col0
----
352

skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT + 92 + ( MAX ( - ( 13 ) ) ) * - 20 AS col0
----
352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT ALL + CAST( NULL AS SIGNED ) * + NULLIF ( ( CAST( - 83 AS SIGNED ) ), 79 - + 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL + CAST ( NULL AS INTEGER ) * + NULLIF ( ( CAST ( - 83 AS INTEGER ) ), 79 - + 12 )
----
NULL

query I rowsort
SELECT + 94 + 73 * + 79 AS col1
----
5861

query I rowsort
SELECT ALL + 10 + - + ( - 71 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT - COUNT( * ) * - - 94 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-8187
SELECT - COUNT ( * ) * - - 94 AS col0
----
-94

query I rowsort
SELECT ALL + 47 - + 69 col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT DISTINCT - 93 - MAX( DISTINCT 58 ) + 26
----
-125

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT - 93 - MAX ( DISTINCT 58 ) + 26
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT + 70 * + COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-8190
SELECT + 70 * + COUNT ( * ) AS col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8191
SELECT ALL - 75 DIV + - 99 * ( 78 )
----
0

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL - 75 / + - 99 * ( 78 )
----
0

query I rowsort
SELECT DISTINCT COALESCE ( ( - 86 ), + 19 + 98 * - 93 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT DISTINCT - COUNT( + 47 ) * 69 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT - COUNT ( + 47 ) * 69 AS col2
----
-69

query I rowsort
SELECT DISTINCT NULLIF ( NULLIF ( - 56, 36 ), CASE 30 WHEN - 5 THEN 55 ELSE NULL END * 27 )
----
-56

query I rowsort
SELECT - 16 + + - 54 AS col2
----
-70

query I rowsort
SELECT ALL 28 * 35 col2
----
980

onlyif mysql # DIV for integer division: 
query I rowsort label-8197
SELECT - 34 DIV - 48
----
0

skipif mysql # not compatible
query I rowsort label-8197
SELECT - 34 / - 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT - ( - 3 ) - SUM( 1 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8198
SELECT - ( - 3 ) - SUM ( 1 ) AS col2
----
2

query I rowsort
SELECT DISTINCT - 57 * + 35 AS col1
----
-1995

query I rowsort
SELECT - 80 + + ( 62 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT + COUNT( DISTINCT + 59 ) + 27
----
28

skipif mysql # not compatible
query I rowsort label-8201
SELECT + COUNT ( DISTINCT + 59 ) + 27
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT - 98 DIV 55 * - 69 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8202
SELECT - 98 / 55 * - 69 AS col1
----
69

query I rowsort
SELECT + 62 + 81
----
143

query I rowsort
SELECT + 80 * - CASE NULLIF ( + 84, ( + NULLIF ( + 78, - 73 ) ) + + 63 ) WHEN + 38 THEN - 56 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT - + 70 DIV - 17
----
4

skipif mysql # not compatible
query I rowsort label-8205
SELECT - + 70 / - 17
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT DISTINCT + ( - + CASE + 68 WHEN ( CAST( NULL AS SIGNED ) ) THEN - COALESCE ( 39, - 87 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT DISTINCT + ( - + CASE + 68 WHEN ( CAST ( NULL AS INTEGER ) ) THEN - COALESCE ( 39, - 87 ) END ) AS col2
----
NULL

query I rowsort
SELECT + - ( + 5 ) * + 14 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT 46 * - + COUNT( * ) * 6 + - COALESCE ( 67, MAX( 44 ) ) AS col2
----
-343

skipif mysql # not compatible
query I rowsort label-8208
SELECT 46 * - + COUNT ( * ) * 6 + - COALESCE ( 67, MAX ( 44 ) ) AS col2
----
-343

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT - 61 * COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-8209
SELECT - 61 * COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT + COUNT( * ) * + 40
----
40

skipif mysql # not compatible
query I rowsort label-8210
SELECT + COUNT ( * ) * + 40
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8211
SELECT DISTINCT - 74 DIV 15 * 48 - 77 DIV - COUNT( * ) + COALESCE ( 23 + 35, - CASE + 79 WHEN CASE WHEN NOT 66 NOT IN ( 35 * CAST( + ( - 17 ) * - 33 AS SIGNED ) ) THEN + 86 * 24 END THEN COUNT( 4 ) + + 96 WHEN 45 - 36 THEN + 18 END, - 84 * + COUNT( * ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT - 74 / 15 * 48 - 77 / - COUNT ( * ) + COALESCE ( 23 + 35, - CASE + 79 WHEN CASE WHEN NOT 66 NOT IN ( 35 * CAST ( + ( - 17 ) * - 33 AS INTEGER ) ) THEN + 86 * 24 END THEN COUNT ( 4 ) + + 96 WHEN 45 - 36 THEN + 18 END, - 84 * + COUNT ( * ) ) AS col1
----
-57

query I rowsort
SELECT NULLIF ( + + 7, 8 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT + + ( + 19 ) + - MAX( ALL + 71 )
----
-52

skipif mysql # not compatible
query I rowsort label-8213
SELECT + + ( + 19 ) + - MAX ( ALL + 71 )
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8214
SELECT - 48 * - 18 + + ( ( 90 ) ) DIV COUNT( * ) + - 23 DIV 98 AS col0
----
954

skipif mysql # not compatible
query I rowsort label-8214
SELECT - 48 * - 18 + + ( ( 90 ) ) / COUNT ( * ) + - 23 / 98 AS col0
----
954

query I rowsort
SELECT ALL + + 16 * 37 + 17 col1
----
609

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL 43 * - + 30 * + 42 + - 63 * COUNT( * ) AS col2
----
-54243

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL 43 * - + 30 * + 42 + - 63 * COUNT ( * ) AS col2
----
-54243

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT + 35 * - COUNT( * ) + - 71 + + 53
----
-53

skipif mysql # not compatible
query I rowsort label-8217
SELECT + 35 * - COUNT ( * ) + - 71 + + 53
----
-53

query I rowsort
SELECT ALL 51 * 41 * 26 + - 17 - - 97 AS col2
----
54446

query I rowsort
SELECT - ( + - 79 ) * - + 73 - 95 + 95 * 28 AS col0
----
-3202

query II rowsort
SELECT - 98 AS col1, + 64 * + 50 * - 74
----
-98
-236800

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT CASE - 81 WHEN + COUNT( * ) THEN + COUNT( * ) * - 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT CASE - 81 WHEN + COUNT ( * ) THEN + COUNT ( * ) * - 96 END
----
NULL

query I rowsort
SELECT ALL + 52 * - 7 * - + 34 * + 78
----
965328

query I rowsort
SELECT + 64 + + 74 AS col2
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8224
SELECT ALL - 88 * - NULLIF ( + 50, - CAST( NULL AS SIGNED ) + + 90 * - 45 ) AS col1
----
4400

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL - 88 * - NULLIF ( + 50, - CAST ( NULL AS INTEGER ) + + 90 * - 45 ) AS col1
----
4400

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT ALL - 79 - 17 DIV 73
----
-79

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL - 79 - 17 / 73
----
-79

query I rowsort
SELECT 80 + 81 + 75 + - 44 AS col0
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8227
SELECT ALL 99 * + + ( + + COALESCE ( CASE + 14 WHEN + COUNT( * ) * - COUNT( * ) THEN + 47 WHEN - MAX( 92 ) THEN 18 * 15 END, 39, - 29 DIV 68 ) )
----
3861

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL 99 * + + ( + + COALESCE ( CASE + 14 WHEN + COUNT ( * ) * - COUNT ( * ) THEN + 47 WHEN - MAX ( 92 ) THEN 18 * 15 END, 39, - 29 / 68 ) )
----
3861

query I rowsort
SELECT 90 + + 0
----
90

query I rowsort
SELECT 60 * 64
----
3840

query I rowsort
SELECT 99 + + - 2 - + ( - 56 ) - - 9 * 13 * + 36 * - 49 AS col1
----
-206235

query II rowsort
SELECT - 74 col1, 7 * + 15 + ( + 69 ) AS col2
----
-74
174

onlyif mysql # aggregate syntax: 
query II rowsort label-8232
SELECT 30 AS col1, - ( COUNT( * ) ) + 30 AS col1
----
30
29

skipif mysql # not compatible
query II rowsort label-8232
SELECT 30 AS col1, - ( COUNT ( * ) ) + 30 AS col1
----
30
29

query I rowsort
SELECT 9 * + 50
----
450

query II rowsort
SELECT 11 AS col1, - 89
----
11
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL - 26 + - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL - 26 + - COUNT ( * )
----
-27

query I rowsort
SELECT 99 * - 31 AS col2
----
-3069

query I rowsort
SELECT ALL - 17 * + 62
----
-1054

query I rowsort
SELECT ALL - 45 + - - 47 AS col1
----
2

query I rowsort
SELECT ALL + 55 + - 47
----
8

query I rowsort
SELECT ALL 32 + - 73
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT DISTINCT + + 67 + + - MIN( ALL + - 26 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT + + 67 + + - MIN ( ALL + - 26 ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8242
SELECT DISTINCT + CAST( + 1 AS SIGNED ) + + - CAST( NULL AS SIGNED ) * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT + CAST ( + 1 AS INTEGER ) + + - CAST ( NULL AS INTEGER ) * + 26
----
NULL

query I rowsort
SELECT DISTINCT + 36 * - NULLIF ( + - 75, 99 / + 78 + + 52 * - 10 ) * - 43 AS col1
----
-116100

onlyif mysql # DIV for integer division: 
query I rowsort label-8244
SELECT - 21 DIV 37 * - 87 - + 59 * - 59 AS col1
----
3481

skipif mysql # not compatible
query I rowsort label-8244
SELECT - 21 / 37 * - 87 - + 59 * - 59 AS col1
----
3481

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8245
SELECT 34 DIV + + 58 * - + 62 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8245
SELECT 34 / + + 58 * - + 62 + + COUNT ( * )
----
1

query I rowsort
SELECT + 86 - + NULLIF ( 17, - 30 ) AS col1
----
69

query I rowsort
SELECT ALL - NULLIF ( 58, + 48 ) * 87 AS col1
----
-5046

query I rowsort
SELECT 3 * 87
----
261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8249
SELECT DISTINCT - 51 - - + 46 DIV - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT - 51 - - + 46 / - COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT + MIN( + 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8250
SELECT + MIN ( + 85 ) AS col2
----
85

query I rowsort
SELECT ALL 19 * 8
----
152

query I rowsort
SELECT DISTINCT 17 * - - 10
----
170

query I rowsort
SELECT ALL - 93 * - + 77 * + 21
----
150381

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT 64 + - MIN( - + 43 ) * 52 AS col2
----
2300

skipif mysql # not compatible
query I rowsort label-8254
SELECT 64 + - MIN ( - + 43 ) * 52 AS col2
----
2300

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8255
SELECT DISTINCT 51 DIV 95 AS col1, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-8255
SELECT DISTINCT 51 / 95 AS col1, + COUNT ( * )
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8256
SELECT 9 * + 61 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8256
SELECT 9 * + 61 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 45 + + + 26 * - - 1 - 56 * - 92
----
5223

query I rowsort
SELECT 89 + - + 95 AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8259
SELECT DISTINCT 15 / + CAST( NULL AS SIGNED ), CAST( - 60 AS SIGNED ) AS col1
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-8259
SELECT DISTINCT 15 / + CAST ( NULL AS INTEGER ), CAST ( - 60 AS INTEGER ) AS col1
----
NULL
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8260
SELECT CAST( + - 27 AS SIGNED ) + + 8 - - 65 + + ( + MIN( DISTINCT 26 ) ) * - 73
----
-1852

skipif mysql # not compatible
query I rowsort label-8260
SELECT CAST ( + - 27 AS INTEGER ) + + 8 - - 65 + + ( + MIN ( DISTINCT 26 ) ) * - 73
----
-1852

query II rowsort
SELECT ALL 9 + 7, COALESCE ( 14, - 35 ) * - 42 AS col1
----
16
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT ALL - 13 + - COUNT( * ) * 18
----
-31

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL - 13 + - COUNT ( * ) * 18
----
-31

query I rowsort
SELECT 93 + + - 21
----
72

query I rowsort
SELECT - 4 + - - 51 col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL - + 77 + COALESCE ( + - 46, - MAX( DISTINCT + 81 ) ) AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL - + 77 + COALESCE ( + - 46, - MAX ( DISTINCT + 81 ) ) AS col1
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8266
SELECT CAST( - CASE + - 56 WHEN COUNT( * ) THEN CAST( NULL AS DECIMAL ) ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT CAST ( - CASE + - 56 WHEN COUNT ( * ) THEN CAST ( NULL AS REAL ) ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT - 17 + - NULLIF ( 95, + 73 ) * - 15
----
1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8268
SELECT ( - ( + SUM( + + ( + NULLIF ( CAST( + 93 AS SIGNED ), - 21 + - 97 ) ) ) ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-8268
SELECT ( - ( + SUM ( + + ( + NULLIF ( CAST ( + 93 AS INTEGER ), - 21 + - 97 ) ) ) ) ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT ALL - + MAX( DISTINCT + 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL - + MAX ( DISTINCT + 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-8270
SELECT + 84 + - - 84, - COUNT( * ) * 1 AS col1
----
168
-1

skipif mysql # not compatible
query II rowsort label-8270
SELECT + 84 + - - 84, - COUNT ( * ) * 1 AS col1
----
168
-1

query I rowsort
SELECT DISTINCT + + 26 * 73
----
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL + - 96 * + COALESCE ( + - 37, + COUNT( * ) ) - - 21 AS col1
----
3573

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL + - 96 * + COALESCE ( + - 37, + COUNT ( * ) ) - - 21 AS col1
----
3573

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT ALL + 91 * + + COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL + 91 * + + COUNT ( * ) AS col0
----
91

query I rowsort
SELECT + + ( + - 49 )
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8275
SELECT + 18 / + 25 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8275
SELECT + 18 / + 25 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 0 * - 1 * + 97 - - 54 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT + COUNT( * ) * - 80 - - 59 - + - COALESCE ( - 88, + 74 ) + 38 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8277
SELECT + COUNT ( * ) * - 80 - - 59 - + - COALESCE ( - 88, + 74 ) + 38 AS col2
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8278
SELECT - + 71 DIV + MIN( + + 51 ) + - SUM( 61 ) + 67 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8278
SELECT - + 71 / + MIN ( + + 51 ) + - SUM ( 61 ) + 67 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT - COUNT( * ) * 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8279
SELECT - COUNT ( * ) * 25 AS col1
----
-25

query I rowsort
SELECT DISTINCT + COALESCE ( + + 40, + COALESCE ( 74, - + 72 ) )
----
40

query I rowsort
SELECT + ( - + 74 ) + - 6 + + + 92 + + + 69 AS col2
----
81

query II rowsort
SELECT DISTINCT 12, - NULLIF ( - + 94, - 10 ) AS col0
----
12
94

query I rowsort
SELECT DISTINCT 10 * 51 col0
----
510

onlyif mysql # DIV for integer division: 
query I rowsort label-8284
SELECT ALL 69 + + 21 DIV + 50
----
69

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL 69 + + 21 / + 50
----
69

query I rowsort
SELECT - NULLIF ( - 69, 91 ) AS col2
----
69

query I rowsort
SELECT ALL CASE + 23 WHEN + 76 THEN - CASE 62 WHEN + 28 THEN NULL WHEN + 27 THEN NULL WHEN 38 THEN + 45 * - COALESCE ( - 84, - 68 ) END * + 47 WHEN 57 THEN NULL ELSE NULL END * 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT ALL COUNT( * ) + + 3 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL COUNT ( * ) + + 3 AS col2
----
4

query I rowsort
SELECT DISTINCT 68 + 93 AS col2
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-8289
SELECT + - 58 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-8289
SELECT + - 58 / 60
----
0

query I rowsort
SELECT ALL + ( 78 ) + + 21
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8291
SELECT + COUNT( ALL + 62 ) DIV 9 + - 53
----
-53

skipif mysql # not compatible
query I rowsort label-8291
SELECT + COUNT ( ALL + 62 ) / 9 + - 53
----
-53

query I rowsort
SELECT + 64 * - - 83 * + 60 * + 98 AS col0
----
31234560

onlyif mysql # DIV for integer division: 
query I rowsort label-8293
SELECT DISTINCT + 76 DIV - 40 + - 63 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT + 76 / - 40 + - 63 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8294
SELECT DISTINCT + + 24 * NULLIF ( ( COALESCE ( + CAST( 61 AS SIGNED ), NULLIF ( + 44, + COUNT( * ) * 3 + + MIN( ALL COALESCE ( + CAST( NULL AS DECIMAL ), + 44 DIV CAST( 43 AS SIGNED ) ) ) * 39 ) ) ), + AVG ( DISTINCT COALESCE ( 87, 65 * 69, - 46 + + 49 ) ) + 59 ) DIV 43 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT + + 24 * NULLIF ( ( COALESCE ( + CAST ( 61 AS INTEGER ), NULLIF ( + 44, + COUNT ( * ) * 3 + + MIN ( ALL COALESCE ( + CAST ( NULL AS REAL ), + 44 / CAST ( 43 AS INTEGER ) ) ) * 39 ) ) ), + AVG ( DISTINCT COALESCE ( 87, 65 * 69, - 46 + + 49 ) ) + 59 ) / 43 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT DISTINCT + 84 - + - 61 + + + COUNT( * ) + + 62 - ( COUNT( * ) ) AS col2
----
207

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT + 84 - + - 61 + + + COUNT ( * ) + + 62 - ( COUNT ( * ) ) AS col2
----
207

query I rowsort
SELECT - - 57 * - 61 AS col2
----
-3477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8297
SELECT ALL - CAST( + + 30 AS SIGNED ) * + 41 * - ( 10 ) AS col2
----
12300

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL - CAST ( + + 30 AS INTEGER ) * + 41 * - ( 10 ) AS col2
----
12300

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT + + 46 * - 16 - - + 98 + + - 74 * + - SUM( ALL 42 ) * 13 AS col2
----
39766

skipif mysql # not compatible
query I rowsort label-8298
SELECT + + 46 * - 16 - - + 98 + + - 74 * + - SUM ( ALL 42 ) * 13 AS col2
----
39766

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT - ( + CASE + 31 WHEN 71 * + COUNT( * ) THEN - COUNT( 13 ) * + 48 END ) / ( - 66 + - MIN( - 54 + - 27 ) * + 77 ) - NULLIF ( - 98 - 63, + 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT - ( + CASE + 31 WHEN 71 * + COUNT ( * ) THEN - COUNT ( 13 ) * + 48 END ) / ( - 66 + - MIN ( - 54 + - 27 ) * + 77 ) - NULLIF ( - 98 - 63, + 42 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT - COALESCE ( - + ( + COUNT( * ) ), - 29, - ( COUNT( * ) ) ) * 75 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-8300
SELECT - COALESCE ( - + ( + COUNT ( * ) ), - 29, - ( COUNT ( * ) ) ) * 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT + - COUNT( ALL + + 15 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8301
SELECT + - COUNT ( ALL + + 15 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT + 84 + + - ( + MIN( 35 ) )
----
49

skipif mysql # not compatible
query I rowsort label-8302
SELECT + 84 + + - ( + MIN ( 35 ) )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8303
SELECT DISTINCT + 48 DIV - - 90 col1
----
0

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT + 48 / - - 90 col1
----
0

query II rowsort
SELECT + 48 AS col2, - 22 col1
----
48
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT + 81 DIV + 94 * + 86 col0
----
0

skipif mysql # not compatible
query I rowsort label-8305
SELECT + 81 / + 94 * + 86 col0
----
0

query I rowsort
SELECT - 87 * + - 57 AS col0
----
4959

query II rowsort
SELECT + 56 AS col2, - 51 + - - NULLIF ( + 27, - + 94 ) AS col0
----
56
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT COALESCE ( COUNT( * ), - - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8308
SELECT COALESCE ( COUNT ( * ), - - COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT - 51 * - + 87
----
4437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8310
SELECT ALL 53 * CAST( NULL AS SIGNED ) + + 57 + + COUNT( * ) + - 62 * - 33 / 64 + - COALESCE ( 33, + 50 ) * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL 53 * CAST ( NULL AS INTEGER ) + + 57 + + COUNT ( * ) + - 62 * - 33 / 64 + - COALESCE ( 33, + 50 ) * 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT ALL - MIN( ALL 21 ) * - 26 * - 40 + - 52 AS col1
----
-21892

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL - MIN ( ALL 21 ) * - 26 * - 40 + - 52 AS col1
----
-21892

query I rowsort
SELECT - 21 - + - 43 AS col0
----
22

query I rowsort
SELECT ALL ( - + 4 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT - ( + COUNT( ALL 15 ) ) + - 70 * + - 87 * - + 57 col0
----
-347131

skipif mysql # not compatible
query I rowsort label-8314
SELECT - ( + COUNT ( ALL 15 ) ) + - 70 * + - 87 * - + 57 col0
----
-347131

query I rowsort
SELECT - 97 * + - 18 * 66 AS col1
----
115236

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT ALL - 41 * - + NULLIF ( + MIN( DISTINCT + - 71 ), + + 10 ) + + - 15 * COUNT( * )
----
-2926

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL - 41 * - + NULLIF ( + MIN ( DISTINCT + - 71 ), + + 10 ) + + - 15 * COUNT ( * )
----
-2926

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8317
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - 93 - - - 83 AS col1
----
NULL
-176

skipif mysql # not compatible
query II rowsort label-8317
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 93 - - - 83 AS col1
----
NULL
-176

query I rowsort
SELECT - NULLIF ( + 75, 31 ) AS col2
----
-75

query I rowsort
SELECT - NULLIF ( + 49, 59 )
----
-49

query II rowsort
SELECT ALL 56 + NULLIF ( - - 33, - 93 ) AS col0, 27 col2
----
89
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT - 25 + - 12 + + + 62 + - ( - 39 ) - + COUNT( * ) * + 74 * - 32 col2
----
2432

skipif mysql # not compatible
query I rowsort label-8321
SELECT - 25 + - 12 + + + 62 + - ( - 39 ) - + COUNT ( * ) * + 74 * - 32 col2
----
2432

onlyif mysql # aggregate syntax: 
query II rowsort label-8322
SELECT - 81 AS col0, CASE + - 26 WHEN - - 37 THEN NULL WHEN - + 14 THEN NULL ELSE - - 9 END * - MAX( 39 ) AS col2
----
-81
-351

skipif mysql # not compatible
query II rowsort label-8322
SELECT - 81 AS col0, CASE + - 26 WHEN - - 37 THEN NULL WHEN - + 14 THEN NULL ELSE - - 9 END * - MAX ( 39 ) AS col2
----
-81
-351

query I rowsort
SELECT - 39 + + 99 + - - 27
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT ALL 83 * - + CASE 27 WHEN + 24 THEN NULL WHEN + 31 THEN - 48 WHEN 16 THEN - SUM( 75 ) * + 24 - - MIN( - 53 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL 83 * - + CASE 27 WHEN + 24 THEN NULL WHEN + 31 THEN - 48 WHEN 16 THEN - SUM ( 75 ) * + 24 - - MIN ( - 53 ) END AS col2
----
NULL

query I rowsort
SELECT + + 35 * - 91
----
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT + 66 + + CASE AVG ( + 56 ) WHEN - - 33 - + MAX( DISTINCT - 77 ) THEN 63 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8326
SELECT + 66 + + CASE AVG ( + 56 ) WHEN - - 33 - + MAX ( DISTINCT - 77 ) THEN 63 END + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8327
SELECT + - ( - MIN( ALL - ( - 10 ) ) ) + + CAST( NULL AS SIGNED ) + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT + - ( - MIN ( ALL - ( - 10 ) ) ) + + CAST ( NULL AS INTEGER ) + - 40
----
NULL

query II rowsort
SELECT ALL 48, + 15 AS col1
----
48
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT + + 86 + - COUNT( * ) - - 0 + 96
----
181

skipif mysql # not compatible
query I rowsort label-8329
SELECT + + 86 + - COUNT ( * ) - - 0 + 96
----
181

onlyif mysql # aggregate syntax: 
query II rowsort label-8330
SELECT + - 11 + COUNT( ALL - 2 ) - 12, 28 AS col1
----
-22
28

skipif mysql # not compatible
query II rowsort label-8330
SELECT + - 11 + COUNT ( ALL - 2 ) - 12, 28 AS col1
----
-22
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT COALESCE ( 65, - 67 - - COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-8331
SELECT COALESCE ( 65, - 67 - - COUNT ( * ) )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8332
SELECT ALL + COUNT( * ) AS col0, 48 + - + ( - + 68 )
----
1
116

skipif mysql # not compatible
query II rowsort label-8332
SELECT ALL + COUNT ( * ) AS col0, 48 + - + ( - + 68 )
----
1
116

query I rowsort
SELECT + 64 * 39 AS col1
----
2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8334
SELECT + + 20 DIV COUNT( * ) + CASE + COALESCE ( + 49, - 39, + 48, 11 ) WHEN + 64 THEN NULL ELSE COUNT( * ) DIV - ( 83 ) END - + NULLIF ( 14, - 35 ) * - 79 * 80
----
88500

skipif mysql # not compatible
query I rowsort label-8334
SELECT + + 20 / COUNT ( * ) + CASE + COALESCE ( + 49, - 39, + 48, 11 ) WHEN + 64 THEN NULL ELSE COUNT ( * ) / - ( 83 ) END - + NULLIF ( 14, - 35 ) * - 79 * 80
----
88500

query I rowsort
SELECT ALL - - 17 + - + 25 - - - 48 AS col2
----
-56

query I rowsort
SELECT ALL 0 * + - 8 * + 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT + 6 * COUNT( * ) + - + 57
----
-51

skipif mysql # not compatible
query I rowsort label-8337
SELECT + 6 * COUNT ( * ) + - + 57
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT DISTINCT COUNT( * ) + + - ( 41 ) + - 50
----
-90

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT COUNT ( * ) + + - ( 41 ) + - 50
----
-90

query I rowsort
SELECT ALL 70 + - 51
----
19

query I rowsort
SELECT DISTINCT 99 + + 58 + + 59
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT DISTINCT + COUNT( - - ( + 66 ) ) + + 25 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT + COUNT ( - - ( + 66 ) ) + + 25 AS col2
----
26

query I rowsort
SELECT 63 * + 63 + - 76
----
3893

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8343
SELECT ALL 34 + - + 38 + COUNT( * ) DIV - SUM( DISTINCT 12 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL 34 + - + 38 + COUNT ( * ) / - SUM ( DISTINCT 12 ) AS col2
----
-4

query I rowsort
SELECT ALL + 26 + 89 + + + 49 AS col0
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT - 11 * 39 + - MAX( DISTINCT - + 36 )
----
-393

skipif mysql # not compatible
query I rowsort label-8345
SELECT - 11 * 39 + - MAX ( DISTINCT - + 36 )
----
-393

onlyif mysql # DIV for integer division: 
query II rowsort label-8346
SELECT ALL 86 DIV + - 64 AS col0, 77 * + + 42 AS col2
----
-1
3234

skipif mysql # not compatible
query II rowsort label-8346
SELECT ALL 86 / + - 64 AS col0, 77 * + + 42 AS col2
----
-1
3234

query I rowsort
SELECT 24 + - 82 - + 77
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT DISTINCT - 81 * - COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8348
SELECT DISTINCT - 81 * - COUNT ( * ) AS col0
----
81

query I rowsort
SELECT ALL + NULLIF ( + - 11, - + 33 * ( + + 86 ) / + + 32 + 4 - - 93 ) - + 52
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT COUNT( * ) * + 64 * + 94
----
6016

skipif mysql # not compatible
query I rowsort label-8350
SELECT COUNT ( * ) * + 64 * + 94
----
6016

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT 0 * - 94 + - NULLIF ( - 35, - - MAX( DISTINCT + 55 ) ) - + 38
----
-3

skipif mysql # not compatible
query I rowsort label-8351
SELECT 0 * - 94 + - NULLIF ( - 35, - - MAX ( DISTINCT + 55 ) ) - + 38
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT 50 + - ( 56 ) * + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-8352
SELECT 50 + - ( 56 ) * + COUNT ( * )
----
-6

query I rowsort
SELECT DISTINCT 85 * - 16 col1
----
-1360

query II rowsort
SELECT ALL + ( + + 42 ) AS col0, 63 AS col0
----
42
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8355
SELECT ALL NULLIF ( 44, NULLIF ( - 69, - - 90 * + + CAST( + 34 AS DECIMAL ) ) )
----
44

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL NULLIF ( 44, NULLIF ( - 69, - - 90 * + + CAST ( + 34 AS REAL ) ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT DISTINCT + 17 - - - MAX( ALL + 17 )
----
0

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT + 17 - - - MAX ( ALL + 17 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT - MAX( DISTINCT - 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8357
SELECT - MAX ( DISTINCT - 33 ) AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8358
SELECT + 95 * - CAST( + MAX( 21 ) AS SIGNED )
----
-1995

skipif mysql # not compatible
query I rowsort label-8358
SELECT + 95 * - CAST ( + MAX ( 21 ) AS INTEGER )
----
-1995

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT SUM( ALL + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-8359
SELECT SUM ( ALL + 65 )
----
65

query II rowsort
SELECT ALL + ( + 12 ), + 17 AS col2
----
12
17

query I rowsort
SELECT ALL - 69 * + 1
----
-69

query I rowsort
SELECT + 62 * + + 75 - 16 AS col2
----
4634

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT DISTINCT 1 + CAST( - + 42 AS SIGNED ) * 1 + + NULLIF ( 42, - 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT 1 + CAST ( - + 42 AS INTEGER ) * 1 + + NULLIF ( 42, - 44 ) AS col0
----
1

query I rowsort
SELECT ALL 15 + - - 17 + - 62 * + - 71 * + 55 * - + 20 AS col2
----
-4842168

onlyif mysql # aggregate syntax: 
query II rowsort label-8365
SELECT ALL - 19 + - 31 AS col1, + NULLIF ( 69, 57 / + - 59 + + + 98 * COUNT( DISTINCT NULLIF ( ( 9 ), - 5 ) * - NULLIF ( 47 + - 63, 63 * 87 ) ) )
----
-50
69

skipif mysql # not compatible
query II rowsort label-8365
SELECT ALL - 19 + - 31 AS col1, + NULLIF ( 69, 57 / + - 59 + + + 98 * COUNT ( DISTINCT NULLIF ( ( 9 ), - 5 ) * - NULLIF ( 47 + - 63, 63 * 87 ) ) )
----
-50
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT - 28 DIV 49 + + 40 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8366
SELECT - 28 / 49 + + 40 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL MIN( ALL + + 7 ) + 86
----
93

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL MIN ( ALL + + 7 ) + 86
----
93

query I rowsort
SELECT ALL 52 + + + 12 + + + 40 + + 95
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT MIN( 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8369
SELECT MIN ( 42 ) AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8370
SELECT CASE 13 WHEN - 32 THEN + - 73 * - CAST( 95 AS SIGNED ) - 78 + + 65 ELSE NULL END + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT CASE 13 WHEN - 32 THEN + - 73 * - CAST ( 95 AS INTEGER ) - 78 + + 65 ELSE NULL END + + 40
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( 16, 75 * + 20 * - 51 ) col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT ALL - 58 + COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL - 58 + COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT MIN( ALL - - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-8373
SELECT MIN ( ALL - - 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT ALL 93 + + COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL 93 + + COUNT ( * ) AS col2
----
94

query I rowsort
SELECT ALL 16 + + 13
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL CASE MAX( ALL - 76 ) WHEN ( + 86 ) THEN NULL ELSE - 91 * + 94 END + + 13 + 26 * + 81
----
-6435

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL CASE MAX ( ALL - 76 ) WHEN ( + 86 ) THEN NULL ELSE - 91 * + 94 END + + 13 + 26 * + 81
----
-6435

query I rowsort
SELECT ALL 80 * + 54
----
4320

onlyif mysql # DIV for integer division: 
query I rowsort label-8378
SELECT 5 - - 42 * 54 DIV - 80 + 46 + 85 * + + 85 AS col1
----
7248

skipif mysql # not compatible
query I rowsort label-8378
SELECT 5 - - 42 * 54 / - 80 + 46 + 85 * + + 85 AS col1
----
7248

onlyif mysql # DIV for integer division: 
query II rowsort label-8379
SELECT 9 AS col1, + 54 DIV + - 68 AS col0
----
9
0

skipif mysql # not compatible
query II rowsort label-8379
SELECT 9 AS col1, + 54 / + - 68 AS col0
----
9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT DISTINCT - SUM( - 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8380
SELECT DISTINCT - SUM ( - 83 ) AS col1
----
83

query I rowsort
SELECT ALL 44 * - + 52 * + 15 * + - 73
----
2505360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8382
SELECT 90 AS col2, + 87 * - CAST( NULL AS SIGNED ) AS col2
----
90
NULL

skipif mysql # not compatible
query II rowsort label-8382
SELECT 90 AS col2, + 87 * - CAST ( NULL AS INTEGER ) AS col2
----
90
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8383
SELECT ALL - - 60 AS col2, + ( + 76 ) + - - CASE + - 16 WHEN - 87 THEN NULLIF ( - - 43, 20 + - COUNT( - 67 ) ) ELSE - 46 END
----
60
30

skipif mysql # not compatible
query II rowsort label-8383
SELECT ALL - - 60 AS col2, + ( + 76 ) + - - CASE + - 16 WHEN - 87 THEN NULLIF ( - - 43, 20 + - COUNT ( - 67 ) ) ELSE - 46 END
----
60
30

query I rowsort
SELECT 85 * 40 AS col1
----
3400

query I rowsort
SELECT - 87 + 48 + - 98 AS col2
----
-137

onlyif mysql # DIV for integer division: 
query II rowsort label-8386
SELECT - + 49 AS col1, + 3 DIV - 11
----
-49
0

skipif mysql # not compatible
query II rowsort label-8386
SELECT - + 49 AS col1, + 3 / - 11
----
-49
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT 64 + + ( COUNT( * ) ) + - 83 + 59 * COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-8387
SELECT 64 + + ( COUNT ( * ) ) + - 83 + 59 * COUNT ( * )
----
41

query I rowsort
SELECT ALL + + 51 * + + 69
----
3519

query I rowsort
SELECT + ( - - 37 ) + 95 + + 73 * - 75 AS col0
----
-5343

query I rowsort
SELECT + - 83 + + 32
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT ALL + - 75 + 73 * - COUNT( * ) * - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL + - 75 + 73 * - COUNT ( * ) * - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL + 3 * + COUNT( ALL + - 89 )
----
3

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL + 3 * + COUNT ( ALL + - 89 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT - - 34 + COUNT( * ) - - + 20 col2
----
55

skipif mysql # not compatible
query I rowsort label-8393
SELECT - - 34 + COUNT ( * ) - - + 20 col2
----
55

query I rowsort
SELECT ALL + + 75 + 65
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8395
SELECT DISTINCT - COUNT( - 85 ) + - + CAST( + 78 AS SIGNED ) DIV 61 * - 74 + + + 57
----
130

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT - COUNT ( - 85 ) + - + CAST ( + 78 AS INTEGER ) / 61 * - 74 + + + 57
----
130

query I rowsort
SELECT - 17 * + ( + 22 ) AS col2
----
-374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8397
SELECT - SUM( ALL - CAST( NULL AS SIGNED ) ) + + - 27 * - 78 * 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT - SUM ( ALL - CAST ( NULL AS INTEGER ) ) + + - 27 * - 78 * 28 col1
----
NULL

query I rowsort
SELECT - + NULLIF ( - - 8, + 41 ) AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8399
SELECT - + CAST( + ( + 75 ) AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-8399
SELECT - + CAST ( + ( + 75 ) AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8400
SELECT - 0 + COUNT( * ) DIV + MAX( DISTINCT - 10 ) * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8400
SELECT - 0 + COUNT ( * ) / + MAX ( DISTINCT - 10 ) * COUNT ( * ) AS col1
----
0

query II rowsort
SELECT + 29 AS col2, 4 AS col0
----
29
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT DISTINCT - COUNT( * ) * 60 + 46
----
-14

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT - COUNT ( * ) * 60 + 46
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8403
SELECT ALL 97 * 84 + - - 2 * + - CAST( + 73 AS SIGNED ) AS col0
----
8002

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL 97 * 84 + - - 2 * + - CAST ( + 73 AS INTEGER ) AS col0
----
8002

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT DISTINCT COUNT( DISTINCT + 11 ) * + 46 * + + 24 * 55 * + 10 AS col0
----
607200

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT COUNT ( DISTINCT + 11 ) * + 46 * + + 24 * 55 * + 10 AS col0
----
607200

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL - 86 * ( 40 ) * + 21 * + - 11 * - MAX( ALL + - 82 ) + 13 + + 29
----
65160522

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL - 86 * ( 40 ) * + 21 * + - 11 * - MAX ( ALL + - 82 ) + 13 + + 29
----
65160522

query I rowsort
SELECT ALL + 99 * - 59
----
-5841

onlyif mysql # DIV for integer division: 
query I rowsort label-8407
SELECT - 66 DIV 19 - 63 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8407
SELECT - 66 / 19 - 63 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT - ( + - 65 ) * + 96 + + CASE - + 90 WHEN + - 59 / + + AVG ( DISTINCT - 97 ) + + ( - 76 ) + + COUNT( 62 ) * + 11 THEN 94 * + ( 23 * 44 ) WHEN 66 / + 40 THEN NULL ELSE MAX( ( + 97 ) ) * + 61 END * 4
----
29908

skipif mysql # not compatible
query I rowsort label-8408
SELECT - ( + - 65 ) * + 96 + + CASE - + 90 WHEN + - 59 / + + AVG ( DISTINCT - 97 ) + + ( - 76 ) + + COUNT ( 62 ) * + 11 THEN 94 * + ( 23 * 44 ) WHEN 66 / + 40 THEN NULL ELSE MAX ( ( + 97 ) ) * + 61 END * 4
----
29908

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT + CASE + SUM( ALL + 13 ) WHEN - 51 THEN NULL WHEN + AVG ( DISTINCT 38 ) THEN - 7 * + ( AVG ( DISTINCT - ( 21 ) ) ) * 57 - + COUNT( * ) * 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT + CASE + SUM ( ALL + 13 ) WHEN - 51 THEN NULL WHEN + AVG ( DISTINCT 38 ) THEN - 7 * + ( AVG ( DISTINCT - ( 21 ) ) ) * 57 - + COUNT ( * ) * 73 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT - 3 * + 22 + MIN( ALL NULLIF ( + 47, 95 + + 90 * - 54 * 48 * 57 ) ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8410
SELECT - 3 * + 22 + MIN ( ALL NULLIF ( + 47, 95 + + 90 * - 54 * 48 * 57 ) ) AS col0
----
-19

query I rowsort
SELECT - 62 + - 75 AS col0
----
-137

query I rowsort
SELECT + 39 + + 27 AS col2
----
66

query I rowsort
SELECT 37 * 11 + 53 + + 7
----
467

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT 28 * + 96 + - - 26 + + COALESCE ( - 14, - - 92 ) * + SUM( ALL + 82 )
----
1566

skipif mysql # not compatible
query I rowsort label-8414
SELECT 28 * + 96 + - - 26 + + COALESCE ( - 14, - - 92 ) * + SUM ( ALL + 82 )
----
1566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8415
SELECT - - COALESCE ( - 4, MAX( + CAST( NULL AS SIGNED ) ) * + 83 ) * 25 + + 24 * 3 col1
----
-28

skipif mysql # not compatible
query I rowsort label-8415
SELECT - - COALESCE ( - 4, MAX ( + CAST ( NULL AS INTEGER ) ) * + 83 ) * 25 + + 24 * 3 col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT + 32 * - + COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8416
SELECT + 32 * - + COUNT ( * ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT DISTINCT COUNT( * ) * 61 + + 67 * + ( 74 ) * + 89 * + 38 AS col0
----
16768017

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT COUNT ( * ) * 61 + + 67 * + ( 74 ) * + 89 * + 38 AS col0
----
16768017

query I rowsort
SELECT ALL + 68 * - 96 - + - 92
----
-6436

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT DISTINCT - 85 + + ( - COUNT( * ) ) + - - AVG ( - CASE + 97 WHEN - 87 THEN 47 END ) * + 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT - 85 + + ( - COUNT ( * ) ) + - - AVG ( - CASE + 97 WHEN - 87 THEN 47 END ) * + 12 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT DISTINCT - COALESCE ( COUNT( * ), + + COUNT( * ) + CASE ( - NULLIF ( - 30, + COALESCE ( + 84, 8 * 36, - 41 ) / + 51 ) ) WHEN - 9 THEN NULL WHEN + 67 + - MIN( 46 ) * - 16 THEN + 0 ELSE 93 * + 27 END - ( - 83 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT - COALESCE ( COUNT ( * ), + + COUNT ( * ) + CASE ( - NULLIF ( - 30, + COALESCE ( + 84, 8 * 36, - 41 ) / + 51 ) ) WHEN - 9 THEN NULL WHEN + 67 + - MIN ( 46 ) * - 16 THEN + 0 ELSE 93 * + 27 END - ( - 83 ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT ALL + ( + COUNT( * ) ) + CASE 92 WHEN 76 THEN NULL ELSE 19 END
----
20

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL + ( + COUNT ( * ) ) + CASE 92 WHEN 76 THEN NULL ELSE 19 END
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT - - MIN( ALL - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8422
SELECT - - MIN ( ALL - 7 ) AS col2
----
-7

query I rowsort
SELECT + - 2 * 55
----
-110

query II rowsort
SELECT - - 97 * 73 AS col0, - 10
----
7081
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT DISTINCT + - SUM( DISTINCT - + 87 ) * - 72 AS col2
----
-6264

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT + - SUM ( DISTINCT - + 87 ) * - 72 AS col2
----
-6264

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT + COUNT( * ) * - - 44 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-8426
SELECT + COUNT ( * ) * - - 44 AS col1
----
44

query I rowsort
SELECT ALL 17 - + ( - 68 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT - 5 * - NULLIF ( + ( - - CASE + + COUNT( * ) WHEN 6 THEN - 88 WHEN - + 28 THEN NULL END ), + - 9 * + 91 + AVG ( DISTINCT - 39 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT - 5 * - NULLIF ( + ( - - CASE + + COUNT ( * ) WHEN 6 THEN - 88 WHEN - + 28 THEN NULL END ), + - 9 * + 91 + AVG ( DISTINCT - 39 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8429
SELECT ALL - COUNT( * ) DIV + + 23
----
0

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL - COUNT ( * ) / + + 23
----
0

query I rowsort
SELECT - 45 * 72 AS col1
----
-3240

query I rowsort
SELECT ALL + CASE + + 82 WHEN + 74 * - 99 + + - 29 THEN - + 12 - - - 41 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT DISTINCT + SUM( ALL - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT + SUM ( ALL - 52 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8433
SELECT DISTINCT + CAST( - 53 AS DECIMAL ) * + + CASE 26 WHEN - 89 THEN NULL WHEN + - 29 THEN MAX( - - 78 ) * + 95 * + 36 END * 33 + COALESCE ( COUNT( * ), 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT + CAST ( - 53 AS REAL ) * + + CASE 26 WHEN - 89 THEN NULL WHEN + - 29 THEN MAX ( - - 78 ) * + 95 * + 36 END * 33 + COALESCE ( COUNT ( * ), 33 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8434
SELECT - 15 * COUNT( ALL - + 2 ) DIV 54 - 39
----
-39

skipif mysql # not compatible
query I rowsort label-8434
SELECT - 15 * COUNT ( ALL - + 2 ) / 54 - 39
----
-39

query I rowsort
SELECT ALL + 32 * + 56 AS col1
----
1792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT - 79 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT - 79 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 91 AS col1, + 69
----
91
69

query I rowsort
SELECT 32 - - 94 + - 5 AS col2
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8439
SELECT 91 DIV + ( + NULLIF ( + MIN( - 48 ), - + 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8439
SELECT 91 / + ( + NULLIF ( + MIN ( - 48 ), - + 1 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8440
SELECT ALL 22 + + ( - + 69 ) + 36 + + + 90 * - 20 * - - COALESCE ( + COUNT( + + ( ( + CAST( NULL AS SIGNED ) ) ) ), + 82 * 35, 1 + + 58 ) + 48 col2
----
37

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL 22 + + ( - + 69 ) + 36 + + + 90 * - 20 * - - COALESCE ( + COUNT ( + + ( ( + CAST ( NULL AS INTEGER ) ) ) ), + 82 * 35, 1 + + 58 ) + 48 col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL + 36 + + 4 + + 25 * - - 48 + - 73 * 52 * + 0 / + 24 * + - 11 + - CASE ( + SUM( + COALESCE ( - 54, + 64 ) ) ) WHEN - NULLIF ( 74, - 79 ) THEN + 85 END * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL + 36 + + 4 + + 25 * - - 48 + - 73 * 52 * + 0 / + 24 * + - 11 + - CASE ( + SUM ( + COALESCE ( - 54, + 64 ) ) ) WHEN - NULLIF ( 74, - 79 ) THEN + 85 END * - 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL ( - + COUNT( * ) ) + 23
----
22

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL ( - + COUNT ( * ) ) + 23
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT DISTINCT + COUNT( * ) + 13 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT + COUNT ( * ) + 13 AS col1
----
14

query I rowsort
SELECT ALL - 56 + 72 + 84 * 40 + + 56 * 36 * - - 4
----
11440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8445
SELECT ALL + COUNT( DISTINCT - 70 ) + 12 + - 76 + ( - - CAST( NULL AS SIGNED ) ) * - ( 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL + COUNT ( DISTINCT - 70 ) + 12 + - 76 + ( - - CAST ( NULL AS INTEGER ) ) * - ( 58 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ( + 84 ) * + - NULLIF ( - ( + - 71 ), - COUNT( * ) + + - 98 ) AS col1
----
-5964

skipif mysql # not compatible
query I rowsort label-8446
SELECT ( + 84 ) * + - NULLIF ( - ( + - 71 ), - COUNT ( * ) + + - 98 ) AS col1
----
-5964

query I rowsort
SELECT - + NULLIF ( - 64, + + 13 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ALL + + 4 + SUM( - - 55 ) + + 89
----
148

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL + + 4 + SUM ( - - 55 ) + + 89
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT CASE - 42 WHEN - 1 THEN 26 WHEN 29 * ( - + 97 ) * + - 62 + 49 THEN NULL WHEN - COUNT( * ) + 48 / + 77 THEN NULL END + + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8449
SELECT CASE - 42 WHEN - 1 THEN 26 WHEN 29 * ( - + 97 ) * + - 62 + 49 THEN NULL WHEN - COUNT ( * ) + 48 / + 77 THEN NULL END + + 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT ( + MIN( 80 ) ) - - + MIN( DISTINCT - - 64 ) AS col2
----
144

skipif mysql # not compatible
query I rowsort label-8450
SELECT ( + MIN ( 80 ) ) - - + MIN ( DISTINCT - - 64 ) AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL COUNT( * ) + + 59 col2
----
60

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL COUNT ( * ) + + 59 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT 81 * - + 44 - + 71 + + MAX( ALL + 19 )
----
-3616

skipif mysql # not compatible
query I rowsort label-8452
SELECT 81 * - + 44 - + 71 + + MAX ( ALL + 19 )
----
-3616

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT MAX( ALL 92 ) + 95 + 17
----
204

skipif mysql # not compatible
query I rowsort label-8453
SELECT MAX ( ALL 92 ) + 95 + 17
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT 19 + MAX( 1 ) + + + 2
----
22

skipif mysql # not compatible
query I rowsort label-8454
SELECT 19 + MAX ( 1 ) + + + 2
----
22

query II rowsort
SELECT ALL 87, + COALESCE ( - - 84, - 31 ) * 93 AS col2
----
87
7812

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8456
SELECT - 94 AS col2, + 89 AS col0, - 43 - - + 7 + - - 62 + + 17 DIV SUM( DISTINCT + 6 )
----
-94
89
28

skipif mysql # not compatible
query III rowsort label-8456
SELECT - 94 AS col2, + 89 AS col0, - 43 - - + 7 + - - 62 + + 17 / SUM ( DISTINCT + 6 )
----
-94
89
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ( + COUNT( + 60 ) ) * - NULLIF ( + 81, - + 11 ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-8457
SELECT ( + COUNT ( + 60 ) ) * - NULLIF ( + 81, - + 11 ) col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8458
SELECT COALESCE ( - 90, + 43, CAST( - COUNT( * ) AS SIGNED ) DIV NULLIF ( + + 7, + 3 + + 19 ) + + + 9 ) + + 93 + - 23 col0
----
-20

skipif mysql # not compatible
query I rowsort label-8458
SELECT COALESCE ( - 90, + 43, CAST ( - COUNT ( * ) AS INTEGER ) / NULLIF ( + + 7, + 3 + + 19 ) + + + 9 ) + + 93 + - 23 col0
----
-20

query I rowsort
SELECT DISTINCT 22 * + 77 * - - CASE + 78 WHEN + 8 THEN NULL ELSE - 89 + + 14 END
----
-127050

query I rowsort
SELECT 37 + 23 AS col1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8461
SELECT 8 DIV 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8461
SELECT 8 / 58 AS col2
----
0

query I rowsort
SELECT 43 * + - 25 col0
----
-1075

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT ALL 57 * - COUNT( ALL - 45 )
----
-57

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL 57 * - COUNT ( ALL - 45 )
----
-57

query I rowsort
SELECT 14 + - + 81
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-8465
SELECT DISTINCT 69 DIV + - 46 col2
----
-1

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT 69 / + - 46 col2
----
-1

query III rowsort
SELECT DISTINCT - 66 AS col0, 20 AS col1, - + 92 + - + 95 + + + 39 AS col0
----
-66
20
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT ALL - COALESCE ( 28, - - 19 - + + COUNT( * ) )
----
-28

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL - COALESCE ( 28, - - 19 - + + COUNT ( * ) )
----
-28

query I rowsort
SELECT ALL + 37 + - 53
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT 49 - SUM( 24 )
----
25

skipif mysql # not compatible
query I rowsort label-8469
SELECT 49 - SUM ( 24 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8470
SELECT 23 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-8470
SELECT 23 / + 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8471
SELECT + 81 AS col2, + 16 * NULLIF ( CASE 25 WHEN - - 71 * - + 60 + 55 + COALESCE ( - 39, + + CAST( NULL AS SIGNED ) ) + 74 THEN + COUNT( * ) WHEN 55 * 87 THEN + COUNT( * ) END, + 47 ) AS col2
----
81
NULL

skipif mysql # not compatible
query II rowsort label-8471
SELECT + 81 AS col2, + 16 * NULLIF ( CASE 25 WHEN - - 71 * - + 60 + 55 + COALESCE ( - 39, + + CAST ( NULL AS INTEGER ) ) + 74 THEN + COUNT ( * ) WHEN 55 * 87 THEN + COUNT ( * ) END, + 47 ) AS col2
----
81
NULL

query I rowsort
SELECT DISTINCT - 92 + - ( + 86 )
----
-178

onlyif mysql # DIV for integer division: 
query I rowsort label-8473
SELECT - 56 DIV - 46 + 68 DIV - + 91
----
1

skipif mysql # not compatible
query I rowsort label-8473
SELECT - 56 / - 46 + 68 / - + 91
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8474
SELECT + 67 AS col1, 22 * + - 29 + + 66 * COALESCE ( 84, - COUNT( * ) * + COUNT( * ) + + 68 ) AS col0
----
67
4906

skipif mysql # not compatible
query II rowsort label-8474
SELECT + 67 AS col1, 22 * + - 29 + + 66 * COALESCE ( 84, - COUNT ( * ) * + COUNT ( * ) + + 68 ) AS col0
----
67
4906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8475
SELECT ALL - MAX( + CAST( NULL AS SIGNED ) ) + 73 + + 59 * + 70 * - 67 / + + 22 - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL - MAX ( + CAST ( NULL AS INTEGER ) ) + 73 + + 59 * + 70 * - 67 / + + 22 - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8476
SELECT ALL - 6 AS col1, + 47 * MAX( - ( - + 5 ) )
----
-6
235

skipif mysql # not compatible
query II rowsort label-8476
SELECT ALL - 6 AS col1, + 47 * MAX ( - ( - + 5 ) )
----
-6
235

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT + + CASE 19 WHEN + + 67 * 83 - - 42 + - ( 5 ) + - 77 THEN NULL ELSE 2 END * - COUNT( ( + 6 ) ) * 37 + + 22 * - 72
----
-1658

skipif mysql # not compatible
query I rowsort label-8477
SELECT + + CASE 19 WHEN + + 67 * 83 - - 42 + - ( 5 ) + - 77 THEN NULL ELSE 2 END * - COUNT ( ( + 6 ) ) * 37 + + 22 * - 72
----
-1658

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT ALL + + 31 + + + COUNT( * ) + 3 + - 35 * 48 AS col0
----
-1645

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL + + 31 + + + COUNT ( * ) + 3 + - 35 * 48 AS col0
----
-1645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8479
SELECT ALL + ( - - 2 ) + CAST( + 79 AS SIGNED ) + - - MIN( + 2 ) + - COUNT( * ) + - COUNT( * ) * - 20
----
102

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL + ( - - 2 ) + CAST ( + 79 AS INTEGER ) + - - MIN ( + 2 ) + - COUNT ( * ) + - COUNT ( * ) * - 20
----
102

query I rowsort
SELECT + - 71 * - 12 * - 19 + + 87
----
-16101

query II rowsort
SELECT DISTINCT - 57 AS col1, 96 col1
----
-57
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT 16 + COUNT( * ) + + 45 + + - 0 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8482
SELECT 16 + COUNT ( * ) + + 45 + + - 0 AS col1
----
62

query I rowsort
SELECT ALL - + 39 * 85
----
-3315

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8484
SELECT + - 19 AS col0, - 37 + + - COALESCE ( - - 9, - + COALESCE ( 79, - CAST( NULL AS SIGNED ) ) ) AS col2
----
-19
-46

skipif mysql # not compatible
query II rowsort label-8484
SELECT + - 19 AS col0, - 37 + + - COALESCE ( - - 9, - + COALESCE ( 79, - CAST ( NULL AS INTEGER ) ) ) AS col2
----
-19
-46

query I rowsort
SELECT - 39 + 31 * - 47
----
-1496

query I rowsort
SELECT DISTINCT - NULLIF ( - 7, - 5 - - - 97 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT 39 * + - 91 * - + 16 + COUNT( * )
----
56785

skipif mysql # not compatible
query I rowsort label-8487
SELECT 39 * + - 91 * - + 16 + COUNT ( * )
----
56785

query II rowsort
SELECT - 25 AS col2, + 67 AS col0
----
-25
67

query I rowsort
SELECT ALL + + ( 43 ) - - 51 * 49
----
2542

onlyif mysql # aggregate syntax: 
query II rowsort label-8490
SELECT 18 * - CASE + SUM( 2 ) WHEN 32 THEN NULL ELSE - 67 END AS col0, - CASE + 37 WHEN + - 12 THEN - 16 ELSE NULL END
----
1206
NULL

skipif mysql # not compatible
query II rowsort label-8490
SELECT 18 * - CASE + SUM ( 2 ) WHEN 32 THEN NULL ELSE - 67 END AS col0, - CASE + 37 WHEN + - 12 THEN - 16 ELSE NULL END
----
1206
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT ALL - CASE - COUNT( * ) WHEN - + 79 THEN 54 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL - CASE - COUNT ( * ) WHEN - + 79 THEN 54 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT DISTINCT + 76 * - 50 * 48 + - - CAST( + 19 AS SIGNED )
----
-182381

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT + 76 * - 50 * 48 + - - CAST ( + 19 AS INTEGER )
----
-182381

query II rowsort
SELECT 83 - + 56 AS col0, - 60 col0
----
27
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL - NULLIF ( - 32, - COUNT( * ) * + 18 * + 25 ) * - 39 * - COALESCE ( 37, - 78 ) * + COUNT( * ) * + + 41 + - 32 + 53 AS col2
----
1893237

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL - NULLIF ( - 32, - COUNT ( * ) * + 18 * + 25 ) * - 39 * - COALESCE ( 37, - 78 ) * + COUNT ( * ) * + + 41 + - 32 + 53 AS col2
----
1893237

query I rowsort
SELECT ALL - 77 * - 32
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT DISTINCT MIN( ALL - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT MIN ( ALL - 7 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL NULLIF ( + + ( - + 61 ), + - COUNT( * ) ) + 28
----
-33

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL NULLIF ( + + ( - + 61 ), + - COUNT ( * ) ) + 28
----
-33

query II rowsort
SELECT ALL 4 + - + 17 col1, - 75 * + 20 AS col2
----
-13
-1500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8499
SELECT 49 + + 78 + 53 + - - 24 - + 46 / + 13 / ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8499
SELECT 49 + + 78 + 53 + - - 24 - + 46 / + 13 / ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 15 + - 43
----
-28

query I rowsort
SELECT + 44 - - 30 + + + 27
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-8502
SELECT + 62 DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-8502
SELECT + 62 / - 60
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8503
SELECT + 73 * + CAST( NULL AS SIGNED ) * - - 22 * + + 31 * - 85 / - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT + 73 * + CAST ( NULL AS INTEGER ) * - - 22 * + + 31 * - 85 / - 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT + MIN( - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-8504
SELECT + MIN ( - 26 )
----
-26

query I rowsort
SELECT COALESCE ( + 1, + + 92 + 25 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT + MIN( ALL - 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8506
SELECT + MIN ( ALL - 19 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT + 8 + - - COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8507
SELECT + 8 + - - COUNT ( * ) AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8508
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL MIN( 88 ) * + 18 AS col0
----
1584

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL MIN ( 88 ) * + 18 AS col0
----
1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8510
SELECT + COALESCE ( - + 30, - + CAST( + COALESCE ( + CAST( - - 60 AS SIGNED ), + 93 - - 28 ) AS SIGNED ) DIV - - COUNT( * ) + - 91 DIV + COUNT( * ) + 15 + - 53 ) * 76
----
-2280

skipif mysql # not compatible
query I rowsort label-8510
SELECT + COALESCE ( - + 30, - + CAST ( + COALESCE ( + CAST ( - - 60 AS INTEGER ), + 93 - - 28 ) AS INTEGER ) / - - COUNT ( * ) + - 91 / + COUNT ( * ) + 15 + - 53 ) * 76
----
-2280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8511
SELECT - 16 / - 11 + + CAST( NULL AS SIGNED ) + + - 72 + + - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT - 16 / - 11 + + CAST ( NULL AS INTEGER ) + + - 72 + + - 99 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8512
SELECT - 10 DIV - - COALESCE ( + + 27, - 61 * + + 95 * 89, - COALESCE ( 95, 67 ) - 99 ) AS col0, NULLIF ( + 32, 99 )
----
0
32

skipif mysql # not compatible
query II rowsort label-8512
SELECT - 10 / - - COALESCE ( + + 27, - 61 * + + 95 * 89, - COALESCE ( 95, 67 ) - 99 ) AS col0, NULLIF ( + 32, 99 )
----
0
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8513
SELECT + COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col2, 49 + + 38 DIV - 70 * ( - 96 ) * + + ( 6 )
----
0
49

skipif mysql # not compatible
query II rowsort label-8513
SELECT + COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) AS col2, 49 + + 38 / - 70 * ( - 96 ) * + + ( 6 )
----
0
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT + NULLIF ( + - 60, - COALESCE ( 50, 83 + - COALESCE ( + NULLIF ( ( - + 46 ), - 4 ), + COALESCE ( - 31, + SUM( 96 ) ), + 67 + + 13 ) ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-8514
SELECT + NULLIF ( + - 60, - COALESCE ( 50, 83 + - COALESCE ( + NULLIF ( ( - + 46 ), - 4 ), + COALESCE ( - 31, + SUM ( 96 ) ), + 67 + + 13 ) ) ) AS col1
----
-60

query II rowsort
SELECT + 68 * + 30 AS col2, - 20
----
2040
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8516
SELECT MAX( ALL + ( CAST( 74 AS SIGNED ) ) ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8516
SELECT MAX ( ALL + ( CAST ( 74 AS INTEGER ) ) ) AS col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8517
SELECT ALL + 4 DIV 12 + 44
----
44

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL + 4 / 12 + 44
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8518
SELECT CASE CAST( NULL AS SIGNED ) WHEN + 97 THEN NULL WHEN + 31 THEN + - 35 WHEN - + ( + 66 ) * - 69 + + ( + 56 ) THEN NULL ELSE - 88 END AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-8518
SELECT CASE CAST ( NULL AS INTEGER ) WHEN + 97 THEN NULL WHEN + 31 THEN + - 35 WHEN - + ( + 66 ) * - 69 + + ( + 56 ) THEN NULL ELSE - 88 END AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT 24 * + COUNT( DISTINCT 27 ) + 1 - + 38 + + 87 * - SUM( 66 ) * 19 + + + 51
----
-109060

skipif mysql # not compatible
query I rowsort label-8519
SELECT 24 * + COUNT ( DISTINCT 27 ) + 1 - + 38 + + 87 * - SUM ( 66 ) * 19 + + + 51
----
-109060

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL - COUNT( * ) * 50 + + 9 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL - COUNT ( * ) * 50 + + 9 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL - MIN( - 93 ) * + 45
----
4185

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL - MIN ( - 93 ) * + 45
----
4185

onlyif mysql # DIV for integer division: 
query I rowsort label-8522
SELECT - 26 * - + 76 + + 35 DIV + 68 AS col2
----
1976

skipif mysql # not compatible
query I rowsort label-8522
SELECT - 26 * - + 76 + + 35 / + 68 AS col2
----
1976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8523
SELECT - ( + + ( - ( - 21 ) ) ) - 68 + - 96 + - COUNT( * ) + - 88 + + 8 * CAST( NULL AS SIGNED ) / - 44 / - 44 * CASE - 81 WHEN 62 THEN + ( - 72 ) ELSE NULL END + + NULLIF ( 16, - 34 ) * 39 / 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT - ( + + ( - ( - 21 ) ) ) - 68 + - 96 + - COUNT ( * ) + - 88 + + 8 * CAST ( NULL AS INTEGER ) / - 44 / - 44 * CASE - 81 WHEN 62 THEN + ( - 72 ) ELSE NULL END + + NULLIF ( 16, - 34 ) * 39 / 55 AS col2
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 90, - NULLIF ( 6, - 20 ) ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT 81 * - + COALESCE ( - + 94, 57, 80 * - 9 ) - SUM( DISTINCT 88 )
----
7526

skipif mysql # not compatible
query I rowsort label-8525
SELECT 81 * - + COALESCE ( - + 94, 57, 80 * - 9 ) - SUM ( DISTINCT 88 )
----
7526

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT - 76 * + COUNT( * ) * + ( + 26 )
----
-1976

skipif mysql # not compatible
query I rowsort label-8526
SELECT - 76 * + COUNT ( * ) * + ( + 26 )
----
-1976

onlyif mysql # aggregate syntax: 
query II rowsort label-8527
SELECT DISTINCT COALESCE ( 0, + + SUM( + 59 ) ), 71 AS col1
----
0
71

skipif mysql # not compatible
query II rowsort label-8527
SELECT DISTINCT COALESCE ( 0, + + SUM ( + 59 ) ), 71 AS col1
----
0
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8528
SELECT ALL CASE + CAST( + 18 AS DECIMAL ) WHEN - 32 THEN 26 WHEN + 37 THEN ( - 7 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL CASE + CAST ( + 18 AS REAL ) WHEN - 32 THEN 26 WHEN + 37 THEN ( - 7 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT - 46 + 52 * + 32 * - MIN( - + 56 ) - + 27 AS col0
----
93111

skipif mysql # not compatible
query I rowsort label-8529
SELECT - 46 + 52 * + 32 * - MIN ( - + 56 ) - + 27 AS col0
----
93111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8530
SELECT - 22 + COUNT( * ) DIV + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-8530
SELECT - 22 + COUNT ( * ) / + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8531
SELECT ALL + COUNT( * ) DIV 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL + COUNT ( * ) / 54 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8532
SELECT - 40 DIV - 21 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8532
SELECT - 40 / - 21 AS col1
----
1

query I rowsort
SELECT DISTINCT + 36 + + - 73
----
-37

query II rowsort
SELECT DISTINCT 28 + + 57 + 95 AS col1, 11 * - ( 24 ) AS col2
----
180
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8535
SELECT DISTINCT COALESCE ( + 6, CASE 53 WHEN + + 26 THEN 8 WHEN 96 THEN - 33 * + 64 + + 62 ELSE + - 0 END, 54, ( 53 ) + - ( + ( + CASE - NULLIF ( 43, 78 * ( 44 * + 2 ) ) WHEN 73 THEN 68 WHEN 14 THEN 76 + COALESCE ( - SUM( 67 ) + - COUNT( * ), - ( 59 ) * COUNT( * ) ) WHEN COALESCE ( - 38, + 71, + ( - 39 ) ) THEN NULL ELSE NULL END ) ) DIV + 71 )
----
6

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT COALESCE ( + 6, CASE 53 WHEN + + 26 THEN 8 WHEN 96 THEN - 33 * + 64 + + 62 ELSE + - 0 END, 54, ( 53 ) + - ( + ( + CASE - NULLIF ( 43, 78 * ( 44 * + 2 ) ) WHEN 73 THEN 68 WHEN 14 THEN 76 + COALESCE ( - SUM ( 67 ) + - COUNT ( * ), - ( 59 ) * COUNT ( * ) ) WHEN COALESCE ( - 38, + 71, + ( - 39 ) ) THEN NULL ELSE NULL END ) ) / + 71 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8536
SELECT - 4 + + COUNT( * ) * CAST( + 40 AS SIGNED ) - + + 64 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-8536
SELECT - 4 + + COUNT ( * ) * CAST ( + 40 AS INTEGER ) - + + 64 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT DISTINCT + MAX( ALL 98 ) + + 38
----
136

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT + MAX ( ALL 98 ) + + 38
----
136

onlyif mysql # DIV for integer division: 
query II rowsort label-8538
SELECT ALL 68 + - 86 DIV 6 AS col2, 31 * + COALESCE ( - 35, - 50 )
----
54
-1085

skipif mysql # not compatible
query II rowsort label-8538
SELECT ALL 68 + - 86 / 6 AS col2, 31 * + COALESCE ( - 35, - 50 )
----
54
-1085

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8539
SELECT ALL 27 + - 72 + - 6 * - CAST( NULL AS DECIMAL ) * + 0 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL 27 + - 72 + - 6 * - CAST ( NULL AS REAL ) * + 0 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8540
SELECT - 50 + + 70 + - + 67 + CASE 43 WHEN - + COUNT( - 91 ) THEN 17 * - - 70 * + + COUNT( * ) - + + 48 - + 64 ELSE 61 DIV + COUNT( * ) END
----
14

skipif mysql # not compatible
query I rowsort label-8540
SELECT - 50 + + 70 + - + 67 + CASE 43 WHEN - + COUNT ( - 91 ) THEN 17 * - - 70 * + + COUNT ( * ) - + + 48 - + 64 ELSE 61 / + COUNT ( * ) END
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT - MIN( + + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-8541
SELECT - MIN ( + + 4 )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-8542
SELECT ALL + MAX( DISTINCT 67 ) + 0 AS col1, 46 AS col0
----
67
46

skipif mysql # not compatible
query II rowsort label-8542
SELECT ALL + MAX ( DISTINCT 67 ) + 0 AS col1, 46 AS col0
----
67
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8543
SELECT ALL - NULLIF ( + 90, - + COALESCE ( + 54, - - 66 ) ) / + - 26 + + AVG ( ALL - 60 ) * + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * + COUNT( * ) * + - CAST( NULL AS SIGNED ) * - 76 + ( COALESCE ( 64, + 68, + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL - NULLIF ( + 90, - + COALESCE ( + 54, - - 66 ) ) / + - 26 + + AVG ( ALL - 60 ) * + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - 76 + ( COALESCE ( 64, + 68, + COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT DISTINCT + MIN( ALL + + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT + MIN ( ALL + + 23 )
----
23

query I rowsort
SELECT - 76 * - 37 * - + NULLIF ( 48, + + 70 ) + + + 4
----
-134972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8546
SELECT + 99 * - 24 * - 38 DIV + COUNT( - 7 )
----
90288

skipif mysql # not compatible
query I rowsort label-8546
SELECT + 99 * - 24 * - 38 / + COUNT ( - 7 )
----
90288

onlyif mysql # aggregate syntax: 
query II rowsort label-8547
SELECT DISTINCT + 28 AS col0, - 33 * + COUNT( * ) * + + 77 AS col1
----
28
-2541

skipif mysql # not compatible
query II rowsort label-8547
SELECT DISTINCT + 28 AS col0, - 33 * + COUNT ( * ) * + + 77 AS col1
----
28
-2541

onlyif mysql # DIV for integer division: 
query I rowsort label-8548
SELECT 28 DIV - + 32 + + 30
----
30

skipif mysql # not compatible
query I rowsort label-8548
SELECT 28 / - + 32 + + 30
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8549
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8549
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * )
----
NULL
1

query II rowsort
SELECT 78 * - 19 + - 83 col0, 19 AS col2
----
-1565
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT + NULLIF ( - CASE - 81 WHEN + 48 THEN 54 + + 4 WHEN + 7 THEN NULL END, + - MIN( ALL + 85 ) * COUNT( * ) * 61 + + 44 - 34 ) * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT + NULLIF ( - CASE - 81 WHEN + 48 THEN 54 + + 4 WHEN + 7 THEN NULL END, + - MIN ( ALL + 85 ) * COUNT ( * ) * 61 + + 44 - 34 ) * + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL + CASE + 87 WHEN + COUNT( * ) THEN NULL WHEN - 20 + + MAX( ALL 10 ) * - + 87 THEN NULL WHEN 37 THEN NULL WHEN 27 THEN NULL ELSE - - 87 END AS col0
----
87

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL + CASE + 87 WHEN + COUNT ( * ) THEN NULL WHEN - 20 + + MAX ( ALL 10 ) * - + 87 THEN NULL WHEN 37 THEN NULL WHEN 27 THEN NULL ELSE - - 87 END AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8553
SELECT ALL - COUNT( DISTINCT 17 ) * + COUNT( * ), - ( + - 39 ) * - 10 + + + 1 + + + 18 DIV + 43 * + 63 + + 40 - - COUNT( - 35 ) * - CAST( MIN( DISTINCT 80 ) AS SIGNED ) col1
----
-1
-429

skipif mysql # not compatible
query II rowsort label-8553
SELECT ALL - COUNT ( DISTINCT 17 ) * + COUNT ( * ), - ( + - 39 ) * - 10 + + + 1 + + + 18 / + 43 * + 63 + + 40 - - COUNT ( - 35 ) * - CAST ( MIN ( DISTINCT 80 ) AS INTEGER ) col1
----
-1
-429

onlyif mysql # aggregate syntax: 
query II rowsort label-8554
SELECT + - 12 + + 90 + - 95 AS col2, + COUNT( * )
----
-17
1

skipif mysql # not compatible
query II rowsort label-8554
SELECT + - 12 + + 90 + - 95 AS col2, + COUNT ( * )
----
-17
1

query I rowsort
SELECT + + 1 * - - 81 * - 32 + + 55 + + - 63
----
-2600

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT - + COUNT( * ) + + - 95 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-8556
SELECT - + COUNT ( * ) + + - 95 AS col1
----
-96

query II rowsort
SELECT + + 81 AS col0, - 38 AS col0
----
81
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-8558
SELECT - 47 DIV 35 + + + 30 * - ( + + 63 )
----
-1891

skipif mysql # not compatible
query I rowsort label-8558
SELECT - 47 / 35 + + + 30 * - ( + + 63 )
----
-1891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8559
SELECT 62 * + 28 + - + 57 - + + 70 + NULLIF ( - COUNT( * ), - ( + COUNT( * ) ) ) col2, + 3 - - 47 - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - 88 + + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8559
SELECT 62 * + 28 + - + 57 - + + 70 + NULLIF ( - COUNT ( * ), - ( + COUNT ( * ) ) ) col2, + 3 - - 47 - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 88 + + COUNT ( * )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8560
SELECT DISTINCT + CAST( - 51 AS SIGNED ) / + CASE + 43 WHEN - 56 THEN - 33 * 34 * COUNT( * ) ELSE NULL END * + - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8560
SELECT DISTINCT + CAST ( - 51 AS INTEGER ) / + CASE + 43 WHEN - 56 THEN - 33 * 34 * COUNT ( * ) ELSE NULL END * + - 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT CASE + COUNT( * ) WHEN 81 + - - 28 + - + 59 THEN 86 ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8561
SELECT CASE + COUNT ( * ) WHEN 81 + - - 28 + - + 59 THEN 86 ELSE + COUNT ( * ) END AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT ALL - 78 * + + 17 + - 90 * + ( - COUNT( * ) ) * - 56 - + SUM( ALL 29 ) AS col2
----
-6395

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL - 78 * + + 17 + - 90 * + ( - COUNT ( * ) ) * - 56 - + SUM ( ALL 29 ) AS col2
----
-6395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8563
SELECT + 63 - - + 68 * + + CAST( NULL AS SIGNED ) + + - COALESCE ( - - 67, + - 40 + 61 + + 89 + - - AVG ( ALL + 68 ) + + ( + 99 ) + 62 * + - COUNT( * ) + 96 * 54 ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT + 63 - - + 68 * + + CAST ( NULL AS INTEGER ) + + - COALESCE ( - - 67, + - 40 + 61 + + 89 + - - AVG ( ALL + 68 ) + + ( + 99 ) + 62 * + - COUNT ( * ) + 96 * 54 ) * 21
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8564
SELECT 72 * + NULLIF ( - + 9, CAST( NULL AS SIGNED ) )
----
-648

skipif mysql # not compatible
query I rowsort label-8564
SELECT 72 * + NULLIF ( - + 9, CAST ( NULL AS INTEGER ) )
----
-648

onlyif mysql # DIV for integer division: 
query I rowsort label-8565
SELECT ALL + 87 + + 70 + + + 97 + - - 61 + + 38 DIV + - 84 AS col0
----
315

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL + 87 + + 70 + + + 97 + - - 61 + + 38 / + - 84 AS col0
----
315

query I rowsort
SELECT 42 - 53 AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8567
SELECT 52 - 58 + + 80 + + 71 + NULLIF ( MAX( - 59 ), - CAST( NULL AS SIGNED ) ) * + - 41 * - + 73 AS col1
----
-176442

skipif mysql # not compatible
query I rowsort label-8567
SELECT 52 - 58 + + 80 + + 71 + NULLIF ( MAX ( - 59 ), - CAST ( NULL AS INTEGER ) ) * + - 41 * - + 73 AS col1
----
-176442

onlyif mysql # DIV for integer division: 
query I rowsort label-8568
SELECT DISTINCT + 61 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT + 61 / - 99
----
0

query I rowsort
SELECT 62 - + 29
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL COUNT( * ) * - COUNT( + + NULLIF ( 67, + 15 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL COUNT ( * ) * - COUNT ( + + NULLIF ( 67, + 15 ) ) AS col1
----
-1

query I rowsort
SELECT ALL 73 - COALESCE ( 39, + 84 * 24 - 81, 61 ) * + 81 AS col2
----
-3086

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT 94 + - - CASE - COUNT( * ) WHEN - - 2 * + + 14 THEN + 86 WHEN + - 76 THEN + 9 + + 18 * + - COUNT( DISTINCT - 63 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT 94 + - - CASE - COUNT ( * ) WHEN - - 2 * + + 14 THEN + 86 WHEN + - 76 THEN + 9 + + 18 * + - COUNT ( DISTINCT - 63 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT + 83 - + COUNT( * ) * + - 89
----
172

skipif mysql # not compatible
query I rowsort label-8573
SELECT + 83 - + COUNT ( * ) * + - 89
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8574
SELECT CAST( NULL AS SIGNED ) * 29 + + SUM( 67 ) * + 35 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT CAST ( NULL AS INTEGER ) * 29 + + SUM ( 67 ) * + 35 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8575
SELECT DISTINCT + 35 * - CAST( + ( - COUNT( * ) ) AS SIGNED ) * 25 * 40 + - 19 * + ( SUM( - - 69 ) ) * + + 27 + - COUNT( DISTINCT - 76 ) * ( - COALESCE ( - 15, 13 * + MIN( + 50 ) ) ) AS col2
----
-412

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT + 35 * - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) * 25 * 40 + - 19 * + ( SUM ( - - 69 ) ) * + + 27 + - COUNT ( DISTINCT - 76 ) * ( - COALESCE ( - 15, 13 * + MIN ( + 50 ) ) ) AS col2
----
-412

query I rowsort
SELECT DISTINCT - - COALESCE ( - 98, - 14, + + 44 )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8577
SELECT + ( + CAST( NULL AS SIGNED ) ) * + 35 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT + ( + CAST ( NULL AS INTEGER ) ) * + 35 - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT + NULLIF ( - 14, - COALESCE ( + COUNT( * ), 7 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-8578
SELECT + NULLIF ( - 14, - COALESCE ( + COUNT ( * ), 7 ) )
----
-14

query I rowsort
SELECT 50 - + + 38 * - 62 AS col1
----
2406

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT + ( + - 61 ) * + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-8580
SELECT + ( + - 61 ) * + COUNT ( * )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT - 35 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT - 35 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8582
SELECT DISTINCT - 69 * - - NULLIF ( - 23, - - CAST( - + 25 AS SIGNED ) ) * - SUM( ALL + ( - 47 ) )
----
74589

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT - 69 * - - NULLIF ( - 23, - - CAST ( - + 25 AS INTEGER ) ) * - SUM ( ALL + ( - 47 ) )
----
74589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8583
SELECT DISTINCT + COUNT( * ) + - - 94 * + CAST( - 33 AS SIGNED )
----
-3101

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT + COUNT ( * ) + - - 94 * + CAST ( - 33 AS INTEGER )
----
-3101

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL - 82 + 87 + 13 + - 0 * + 9 * - SUM( DISTINCT + 25 )
----
18

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL - 82 + 87 + 13 + - 0 * + 9 * - SUM ( DISTINCT + 25 )
----
18

query I rowsort
SELECT ALL 87 + - - 25 AS col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT 53 - + NULLIF ( + 6, - MIN( ALL + + 4 ) )
----
47

skipif mysql # not compatible
query I rowsort label-8586
SELECT 53 - + NULLIF ( + 6, - MIN ( ALL + + 4 ) )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT + 3 * COALESCE ( + + 46, - - 39 * 87 + - COUNT( * ) ) + 36 * - 68 * 87 col1
----
-212838

skipif mysql # not compatible
query I rowsort label-8587
SELECT + 3 * COALESCE ( + + 46, - - 39 * 87 + - COUNT ( * ) ) + 36 * - 68 * 87 col1
----
-212838

query I rowsort
SELECT 43 + 8 - + 32
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT 62 + - 80 / + 2 + - CASE 96 WHEN + NULLIF ( - + 11, COUNT( * ) ) + 32 THEN + 24 END - + 1 * COUNT( * ) + + 50 + + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8589
SELECT 62 + - 80 / + 2 + - CASE 96 WHEN + NULLIF ( - + 11, COUNT ( * ) ) + 32 THEN + 24 END - + 1 * COUNT ( * ) + + 50 + + + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL + SUM( ALL + 66 ) - + 96 * + 51 * 69 + - MAX( + 0 ) * - 55 + - COUNT( * )
----
-337759

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL + SUM ( ALL + 66 ) - + 96 * + 51 * 69 + - MAX ( + 0 ) * - 55 + - COUNT ( * )
----
-337759

query I rowsort
SELECT 77 * - - 46 AS col1
----
3542

query II rowsort
SELECT ALL 85 * - ( 47 ) col1, 71 AS col1
----
-3995
71

query I rowsort
SELECT 87 + - 80
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8594
SELECT + 48, + CAST( + + 34 AS SIGNED ) DIV COUNT( * ) + + 35 + + + COALESCE ( 65, + 0 + + COUNT( * ) + - 73, - 53 ) + - 39 AS col2
----
48
95

skipif mysql # not compatible
query II rowsort label-8594
SELECT + 48, + CAST ( + + 34 AS INTEGER ) / COUNT ( * ) + + 35 + + + COALESCE ( 65, + 0 + + COUNT ( * ) + - 73, - 53 ) + - 39 AS col2
----
48
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL + + 30 - + COUNT( * ) - ( + 88 ) * - 22 + 82 AS col0
----
2047

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL + + 30 - + COUNT ( * ) - ( + 88 ) * - 22 + 82 AS col0
----
2047

query I rowsort
SELECT 70 + - - 89 + - + 1 AS col2
----
158

query II rowsort
SELECT - 38 AS col1, 51
----
-38
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT NULLIF ( CAST( + + NULLIF ( - 90, - COALESCE ( - + 73, - 52 ) ) AS SIGNED ), - ( - 31 ) - - 62 ) + + 3
----
-87

skipif mysql # not compatible
query I rowsort label-8598
SELECT NULLIF ( CAST ( + + NULLIF ( - 90, - COALESCE ( - + 73, - 52 ) ) AS INTEGER ), - ( - 31 ) - - 62 ) + + 3
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT MAX( DISTINCT + 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-8599
SELECT MAX ( DISTINCT + 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT - 23 * - - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-8600
SELECT - 23 * - - COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT 85 + COUNT( DISTINCT - 36 ) * + - 79 * - 60 * + 96 + - COUNT( * ) * + - ( + ( - 19 ) ) AS col1
----
455106

skipif mysql # not compatible
query I rowsort label-8601
SELECT 85 + COUNT ( DISTINCT - 36 ) * + - 79 * - 60 * + 96 + - COUNT ( * ) * + - ( + ( - 19 ) ) AS col1
----
455106

query I rowsort
SELECT 88 * 86 AS col2
----
7568

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT - 34 * COUNT( * ) + - + 56 * - - COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8603
SELECT - 34 * COUNT ( * ) + - + 56 * - - COUNT ( * ) AS col2
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8604
SELECT ALL + + 19 * + + 17 + + 3 + 52 + 85 - + + COUNT( ALL - + 15 ) DIV 75
----
463

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL + + 19 * + + 17 + + 3 + 52 + 85 - + + COUNT ( ALL - + 15 ) / 75
----
463

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT + COUNT( * ) * - - 9 + - + COUNT( * ) + - 43 + - 13 - + - 33 * + 95 * + COUNT( * ) + 10 + - + ( + 54 )
----
3043

skipif mysql # not compatible
query I rowsort label-8605
SELECT + COUNT ( * ) * - - 9 + - + COUNT ( * ) + - 43 + - 13 - + - 33 * + 95 * + COUNT ( * ) + 10 + - + ( + 54 )
----
3043

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT + 46 * 11 + 37 + - 32 + + 13 - - - 12 * - - MIN( DISTINCT - - 35 )
----
104

skipif mysql # not compatible
query I rowsort label-8606
SELECT + 46 * 11 + 37 + - 32 + + 13 - - - 12 * - - MIN ( DISTINCT - - 35 )
----
104

query I rowsort
SELECT - 21 * 98 - + 64 col2
----
-2122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8608
SELECT ALL - 38 * 21 + 54 AS col0, - 91 + - - CASE + AVG ( DISTINCT - - 60 ) WHEN 87 + COUNT( * ) - + 67 * 60 + + - CAST( NULL AS SIGNED ) THEN COUNT( * ) * + 37 - + + 21 WHEN + 65 THEN NULL END * + 33 AS col0
----
-744
NULL

skipif mysql # not compatible
query II rowsort label-8608
SELECT ALL - 38 * 21 + 54 AS col0, - 91 + - - CASE + AVG ( DISTINCT - - 60 ) WHEN 87 + COUNT ( * ) - + 67 * 60 + + - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * + 37 - + + 21 WHEN + 65 THEN NULL END * + 33 AS col0
----
-744
NULL

query II rowsort
SELECT + 72 + - 39 + - 53 col0, - 71
----
-20
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT ALL - 23 * - 4 * + - COUNT( * ) + - 84 + - - CASE 56 WHEN 53 + 40 * 78 THEN 71 WHEN 65 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL - 23 * - 4 * + - COUNT ( * ) + - 84 + - - CASE 56 WHEN 53 + 40 * 78 THEN 71 WHEN 65 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + - ( 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT DISTINCT - MAX( ALL 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT - MAX ( ALL 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT MIN( - 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-8613
SELECT MIN ( - 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL + MIN( DISTINCT 20 )
----
20

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL + MIN ( DISTINCT 20 )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8615
SELECT DISTINCT + 5 + NULLIF ( + 82, - + COUNT( * ) DIV + 61 ) + 27 - + 44 * 81 DIV - - 72 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8615
SELECT DISTINCT + 5 + NULLIF ( + 82, - + COUNT ( * ) / + 61 ) + 27 - + 44 * 81 / - - 72 AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8616
SELECT + 46 + - + CASE + - CAST( NULL AS SIGNED ) WHEN - 96 * 57 + + + 20 + + - 14 * 20 * + + 16 - - 20 + - COUNT( * ) * 92 THEN ( 53 ) WHEN + 70 THEN 81 * 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT + 46 + - + CASE + - CAST ( NULL AS INTEGER ) WHEN - 96 * 57 + + + 20 + + - 14 * 20 * + + 16 - - 20 + - COUNT ( * ) * 92 THEN ( 53 ) WHEN + 70 THEN 81 * 85 END
----
NULL

query I rowsort
SELECT - 57 * + + 54 AS col2
----
-3078

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT + SUM( - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-8618
SELECT + SUM ( - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL 4 * + - SUM( + - ( - + 93 ) ) AS col0
----
-372

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL 4 * + - SUM ( + - ( - + 93 ) ) AS col0
----
-372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8620
SELECT + 10 DIV + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-8620
SELECT + 10 / + COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT - SUM( DISTINCT - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-8621
SELECT - SUM ( DISTINCT - 58 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8622
SELECT ALL 97 - + - 51 DIV 85 + + - 95 + 5
----
7

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL 97 - + - 51 / 85 + + - 95 + 5
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT - SUM( + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-8623
SELECT - SUM ( + 70 )
----
-70

query I rowsort
SELECT - 91 * + 59
----
-5369

onlyif mysql # aggregate syntax: 
query II rowsort label-8625
SELECT + SUM( 77 ) + 2 + + ( + + COUNT( * ) ) * 43, 19 - 23 AS col2
----
122
-4

skipif mysql # not compatible
query II rowsort label-8625
SELECT + SUM ( 77 ) + 2 + + ( + + COUNT ( * ) ) * 43, 19 - 23 AS col2
----
122
-4

query II rowsort
SELECT 55 AS col1, - 32 AS col1
----
55
-32

query II rowsort
SELECT 93, + 56 AS col0
----
93
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8628
SELECT + 44 DIV + - 16 col1
----
-2

skipif mysql # not compatible
query I rowsort label-8628
SELECT + 44 / + - 16 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT + + COUNT( * ) * + + 99 * - - 95 col0
----
9405

skipif mysql # not compatible
query I rowsort label-8629
SELECT + + COUNT ( * ) * + + 99 * - - 95 col0
----
9405

query I rowsort
SELECT + + 57 - - 59 AS col2
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8631
SELECT ALL NULLIF ( + 94, + 17 * 61 * - + 11 - - 54 + + CASE COUNT( * ) WHEN + - 80 + ( 82 ) * - - 99 THEN NULL WHEN - - 76 THEN + 66 * + 10 + + 52 + CASE 12 + + 95 WHEN 1 * CASE 10 / COALESCE ( - ( COUNT( * ) ), 86 * 71 ) WHEN - CASE + 38 WHEN - CAST( 43 AS SIGNED ) * - 94 THEN COUNT( ALL 25 ) * 18 END THEN - ( 32 ) END - 76 THEN NULL WHEN - 63 / - 95 THEN 1 / 4 ELSE NULL END * 74 - + ( - 3 ) END - CAST( - COUNT( ALL 46 ) AS SIGNED ) )
----
94

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL NULLIF ( + 94, + 17 * 61 * - + 11 - - 54 + + CASE COUNT ( * ) WHEN + - 80 + ( 82 ) * - - 99 THEN NULL WHEN - - 76 THEN + 66 * + 10 + + 52 + CASE 12 + + 95 WHEN 1 * CASE 10 / COALESCE ( - ( COUNT ( * ) ), 86 * 71 ) WHEN - CASE + 38 WHEN - CAST ( 43 AS INTEGER ) * - 94 THEN COUNT ( ALL 25 ) * 18 END THEN - ( 32 ) END - 76 THEN NULL WHEN - 63 / - 95 THEN 1 / 4 ELSE NULL END * 74 - + ( - 3 ) END - CAST ( - COUNT ( ALL 46 ) AS INTEGER ) )
----
94

query II rowsort
SELECT - 27 AS col2, 2
----
-27
2

query II rowsort
SELECT DISTINCT 38, - 5 AS col0
----
38
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT ALL + 76 DIV + - 33
----
-2

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL + 76 / + - 33
----
-2

onlyif mysql # aggregate syntax: 
query III rowsort label-8635
SELECT DISTINCT 0, 51 AS col2, - + 24 * + COUNT( DISTINCT 57 ) AS col2
----
0
51
-24

skipif mysql # not compatible
query III rowsort label-8635
SELECT DISTINCT 0, 51 AS col2, - + 24 * + COUNT ( DISTINCT 57 ) AS col2
----
0
51
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8636
SELECT + 54 * + MIN( DISTINCT - - 27 ) + - + 27 DIV + + 38 AS col2
----
1458

skipif mysql # not compatible
query I rowsort label-8636
SELECT + 54 * + MIN ( DISTINCT - - 27 ) + - + 27 / + + 38 AS col2
----
1458

query II rowsort
SELECT - - 23 AS col1, - 76 AS col0
----
23
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8638
SELECT DISTINCT - CASE + 67 WHEN - 73 * + 14 THEN + 13 * - - 1 * - COUNT( * ) ELSE NULL END + - CAST( + 17 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT - CASE + 67 WHEN - 73 * + 14 THEN + 13 * - - 1 * - COUNT ( * ) ELSE NULL END + - CAST ( + 17 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT - + 24 * + - 75 + - COUNT( * ) * + ( - - 74 ) - - CASE + 14 WHEN 47 THEN - 6 + + 73 + 33 END + - - COALESCE ( - 91, - COUNT( * ) / - CASE - 71 WHEN - 94 THEN - COUNT( * ) WHEN 30 / 92 THEN ( - NULLIF ( + 79, 97 ) ) END - 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT - + 24 * + - 75 + - COUNT ( * ) * + ( - - 74 ) - - CASE + 14 WHEN 47 THEN - 6 + + 73 + 33 END + - - COALESCE ( - 91, - COUNT ( * ) / - CASE - 71 WHEN - 94 THEN - COUNT ( * ) WHEN 30 / 92 THEN ( - NULLIF ( + 79, 97 ) ) END - 47 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8640
SELECT ALL - + 75 DIV - 1 + + + 40 + + CAST( - + NULLIF ( - 26, - + 11 * + MAX( + 41 ) * 33 ) AS SIGNED ) + + ( + - COUNT( * ) ) * - - 39
----
102

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL - + 75 / - 1 + + + 40 + + CAST ( - + NULLIF ( - 26, - + 11 * + MAX ( + 41 ) * 33 ) AS INTEGER ) + + ( + - COUNT ( * ) ) * - - 39
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT DISTINCT - COALESCE ( - 27, MAX( ALL 50 ), + NULLIF ( - 40, + COUNT( * ) * - - 66 / - 60 + - + 31 * - + COUNT( * ) * 68 * - 66 * + COUNT( * ) + - 90 * - 34 ) ) * + 61
----
1647

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT - COALESCE ( - 27, MAX ( ALL 50 ), + NULLIF ( - 40, + COUNT ( * ) * - - 66 / - 60 + - + 31 * - + COUNT ( * ) * 68 * - 66 * + COUNT ( * ) + - 90 * - 34 ) ) * + 61
----
1647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8642
SELECT ALL - CASE - - 76 WHEN 53 * 41 DIV + MAX( DISTINCT + 25 ) DIV CASE 83 WHEN 26 THEN + CAST( NULL AS SIGNED ) WHEN COUNT( 44 ) * - - CAST( NULL AS SIGNED ) + 8 THEN NULL END + - + 58 THEN + NULLIF ( + CAST( NULL AS SIGNED ), 48 ) + - 65 ELSE + 28 END * 83 + 98 DIV + 83 AS col0
----
-2323

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL - CASE - - 76 WHEN 53 * 41 / + MAX ( DISTINCT + 25 ) / CASE 83 WHEN 26 THEN + CAST ( NULL AS INTEGER ) WHEN COUNT ( 44 ) * - - CAST ( NULL AS INTEGER ) + 8 THEN NULL END + - + 58 THEN + NULLIF ( + CAST ( NULL AS INTEGER ), 48 ) + - 65 ELSE + 28 END * 83 + 98 / + 83 AS col0
----
-2323

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT ALL - - 35 DIV - - 8 - + - 41 - + + 10 * 74
----
-695

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL - - 35 / - - 8 - + - 41 - + + 10 * 74
----
-695

query I rowsort
SELECT - 93 * - 43
----
3999

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8645
SELECT - 40 + - CASE 29 WHEN + ( 62 ) * + 25 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN 17 THEN + ( ( + CAST( + + COALESCE ( + 22, - 21 * CASE 55 WHEN + NULLIF ( + 51, 25 ) THEN NULL WHEN + 43 THEN + 87 WHEN - COUNT( * ) * 18 THEN NULL END + - 0 ) AS SIGNED ) ) ) ELSE + 70 * 14 END
----
-1020

skipif mysql # not compatible
query I rowsort label-8645
SELECT - 40 + - CASE 29 WHEN + ( 62 ) * + 25 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN 17 THEN + ( ( + CAST ( + + COALESCE ( + 22, - 21 * CASE 55 WHEN + NULLIF ( + 51, 25 ) THEN NULL WHEN + 43 THEN + 87 WHEN - COUNT ( * ) * 18 THEN NULL END + - 0 ) AS INTEGER ) ) ) ELSE + 70 * 14 END
----
-1020

onlyif mysql # DIV for integer division: 
query II rowsort label-8646
SELECT DISTINCT - 46 * + 5 AS col1, - 25 DIV - - 13 AS col2
----
-230
-1

skipif mysql # not compatible
query II rowsort label-8646
SELECT DISTINCT - 46 * + 5 AS col1, - 25 / - - 13 AS col2
----
-230
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ALL + NULLIF ( - + COUNT( * ), + 97 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL + NULLIF ( - + COUNT ( * ), + 97 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8648
SELECT ALL - 53 * + AVG ( DISTINCT + 33 ) - - 75 + 73 * - CAST( NULL AS DECIMAL ) * 56 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL - 53 * + AVG ( DISTINCT + 33 ) - - 75 + 73 * - CAST ( NULL AS REAL ) * 56 * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8649
SELECT DISTINCT - ( 99 ) * 22 * 49 * - 20 * + COUNT( * ) - - 35 * 10 + + + 57 * 82 + - - 46 * + 11 + - 16 DIV 21 - + + 13, - COALESCE ( - 64, - 63 * + 98, - COUNT( * ) DIV 79 ) AS col0
----
2139957
64

skipif mysql # not compatible
query II rowsort label-8649
SELECT DISTINCT - ( 99 ) * 22 * 49 * - 20 * + COUNT ( * ) - - 35 * 10 + + + 57 * 82 + - - 46 * + 11 + - 16 / 21 - + + 13, - COALESCE ( - 64, - 63 * + 98, - COUNT ( * ) / 79 ) AS col0
----
2139957
64

query I rowsort
SELECT - 4 * - 99 AS col0
----
396

query I rowsort
SELECT ALL - 83 * - - 21 AS col1
----
-1743

query I rowsort
SELECT - 68 * 34
----
-2312

query I rowsort
SELECT + 73 * + 9 AS col0
----
657

query I rowsort
SELECT + 56 * + 0 * 53 + + 62
----
62

query I rowsort
SELECT - ( 37 ) col0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8656
SELECT - 20 + 67 + - SUM( 33 ) + + + 60 DIV COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-8656
SELECT - 20 + 67 + - SUM ( 33 ) + + + 60 / COUNT ( * )
----
74

query II rowsort
SELECT ALL ( + 33 ) AS col1, 75 + - 48 AS col0
----
33
27

query I rowsort
SELECT - - 11 + + + 60 + + ( + 4 ) - - 99 * + 67
----
6708

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8659
SELECT DISTINCT - 47 DIV + CAST( NULL AS DECIMAL ) AS col1, 66 DIV 15
----
NULL
4

skipif mysql # not compatible
query II rowsort label-8659
SELECT DISTINCT - 47 / + CAST ( NULL AS REAL ) AS col1, 66 / 15
----
NULL
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8660
SELECT COALESCE ( COALESCE ( + 41, + 86 + + CAST( 36 AS SIGNED ) ), COUNT( * ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-8660
SELECT COALESCE ( COALESCE ( + 41, + 86 + + CAST ( 36 AS INTEGER ) ), COUNT ( * ) ) AS col1
----
41

query I rowsort
SELECT ALL - + 46 + 34
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT ALL 13 + CASE - COALESCE ( + + ( - 0 ), - 69 * 43 / - + 89 + + - 47 ) WHEN - + 37 * + 3 THEN COUNT( * ) WHEN ( + - 95 ) + + 22 THEN NULL WHEN 87 THEN - ( - 46 ) - - AVG ( + ( 35 ) + - 4 ) END - 90 * 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL 13 + CASE - COALESCE ( + + ( - 0 ), - 69 * 43 / - + 89 + + - 47 ) WHEN - + 37 * + 3 THEN COUNT ( * ) WHEN ( + - 95 ) + + 22 THEN NULL WHEN 87 THEN - ( - 46 ) - - AVG ( + ( 35 ) + - 4 ) END - 90 * 60 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8663
SELECT ( + NULLIF ( - + 9, + 17 + + ( - 29 ) * - ( - ( + 66 ) ) - + + COUNT( * ) ) ) col2, + COUNT( * ) + 81 + + + 57 * - 64 * - CAST( NULL AS SIGNED )
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-8663
SELECT ( + NULLIF ( - + 9, + 17 + + ( - 29 ) * - ( - ( + 66 ) ) - + + COUNT ( * ) ) ) col2, + COUNT ( * ) + 81 + + + 57 * - 64 * - CAST ( NULL AS INTEGER )
----
-9
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8664
SELECT - + CAST( NULL AS SIGNED ) + - COUNT( * ) / - 51 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) / - 51 col1
----
NULL

query I rowsort
SELECT DISTINCT + 23 + - 26 + - ( + - 16 ) AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT + - CASE - + 31 WHEN + 25 THEN NULL ELSE + 59 END DIV + + ( - 15 )
----
3

skipif mysql # not compatible
query I rowsort label-8666
SELECT + - CASE - + 31 WHEN + 25 THEN NULL ELSE + 59 END / + + ( - 15 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT MIN( ALL + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-8667
SELECT MIN ( ALL + 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT ALL CASE NULLIF ( + + 53, + - ( + 49 ) / 65 ) WHEN - 69 + 26 * + 16 THEN - - 52 WHEN - ( - SUM( ALL + 57 ) ) THEN NULL END + + + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL CASE NULLIF ( + + 53, + - ( + 49 ) / 65 ) WHEN - 69 + 26 * + 16 THEN - - 52 WHEN - ( - SUM ( ALL + 57 ) ) THEN NULL END + + + 73 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT DISTINCT - CASE 10 WHEN - - 25 - - + MIN( ALL + 81 ) * - 42 THEN - + 93 END + + 22 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT - CASE 10 WHEN - - 25 - - + MIN ( ALL + 81 ) * - 42 THEN - + 93 END + + 22 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT + 41 + 87 * - - COALESCE ( + - 18, - COUNT( + + 14 ) + - ( - 29 ) + - 77 )
----
-1525

skipif mysql # not compatible
query I rowsort label-8670
SELECT + 41 + 87 * - - COALESCE ( + - 18, - COUNT ( + + 14 ) + - ( - 29 ) + - 77 )
----
-1525

onlyif mysql # aggregate syntax: 
query II rowsort label-8671
SELECT ALL 24 + 51 + - 9 * ( COUNT( * ) ) AS col2, 62 AS col0
----
66
62

skipif mysql # not compatible
query II rowsort label-8671
SELECT ALL 24 + 51 + - 9 * ( COUNT ( * ) ) AS col2, 62 AS col0
----
66
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT DISTINCT ( - NULLIF ( COALESCE ( COALESCE ( - + COUNT( 66 ), - 36 * 47 ), + - 18 * + - 27 + - 92 * - COUNT( * ) - - 81 - 88 ), + ( + - 40 ) ) ) + - - 8 * 77
----
617

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT ( - NULLIF ( COALESCE ( COALESCE ( - + COUNT ( 66 ), - 36 * 47 ), + - 18 * + - 27 + - 92 * - COUNT ( * ) - - 81 - 88 ), + ( + - 40 ) ) ) + - - 8 * 77
----
617

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT 17 + 79 * + COUNT( * ) * - + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-8673
SELECT 17 + 79 * + COUNT ( * ) * - + COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL COUNT( ALL 64 ) - - 18 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL COUNT ( ALL 64 ) - - 18 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT + 85 * + + 93 * + 45 + - COUNT( * ) col0
----
355724

skipif mysql # not compatible
query I rowsort label-8675
SELECT + 85 * + + 93 * + 45 + - COUNT ( * ) col0
----
355724

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT DISTINCT - COALESCE ( + + CASE - 98 WHEN 44 THEN - 7 * + 59 + - - 85 + + 76 + + - ( - 56 ) * + + 61 ELSE NULL END, COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT - COALESCE ( + + CASE - 98 WHEN 44 THEN - 7 * + 59 + - - 85 + + 76 + + - ( - 56 ) * + + 61 ELSE NULL END, COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT ALL COUNT( * ) - - - 84
----
-83

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL COUNT ( * ) - - - 84
----
-83

query II rowsort
SELECT ALL - 23, - COALESCE ( + 15, 7 ) col2
----
-23
-15

query II rowsort
SELECT + 52 col0, - 76
----
52
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8680
SELECT ALL - 7 AS col0, + 80 - + COUNT( ALL 82 )
----
-7
79

skipif mysql # not compatible
query II rowsort label-8680
SELECT ALL - 7 AS col0, + 80 - + COUNT ( ALL 82 )
----
-7
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8681
SELECT ( + - 8 ) * - CAST( NULL AS DECIMAL ) + + + 86 + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT ( + - 8 ) * - CAST ( NULL AS REAL ) + + + 86 + 47
----
NULL

query I rowsort
SELECT 87 + + 3 * + 68
----
291

onlyif mysql # DIV for integer division: 
query II rowsort label-8683
SELECT ( + 25 ) DIV - 24, 23 AS col2
----
-1
23

skipif mysql # not compatible
query II rowsort label-8683
SELECT ( + 25 ) / - 24, 23 AS col2
----
-1
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8684
SELECT 3 * + - 83 * - + CAST( 64 AS SIGNED )
----
15936

skipif mysql # not compatible
query I rowsort label-8684
SELECT 3 * + - 83 * - + CAST ( 64 AS INTEGER )
----
15936

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL + 98 * CASE - + NULLIF ( - + 41, + 82 ) WHEN + - COUNT( * ) THEN + 5 ELSE + 13 END AS col2
----
1274

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL + 98 * CASE - + NULLIF ( - + 41, + 82 ) WHEN + - COUNT ( * ) THEN + 5 ELSE + 13 END AS col2
----
1274

onlyif mysql # DIV for integer division: 
query I rowsort label-8686
SELECT ALL 26 DIV 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL 26 / 48 AS col1
----
0

query II rowsort
SELECT 18, 31 AS col0
----
18
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT DISTINCT + 7 * - COUNT( * ) * + 71
----
-497

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT + 7 * - COUNT ( * ) * + 71
----
-497

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8689
SELECT DISTINCT - 18 + + + COUNT( * ) DIV - - MAX( ALL - 74 )
----
-18

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT - 18 + + + COUNT ( * ) / - - MAX ( ALL - 74 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL + 60 + - + 66 + - NULLIF ( - COUNT( * ), - + 31 )
----
-5

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL + 60 + - + 66 + - NULLIF ( - COUNT ( * ), - + 31 )
----
-5

query II rowsort
SELECT DISTINCT 45 col1, + 15 + + 48 col1
----
45
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8692
SELECT ALL - + CAST( NULL AS SIGNED ) + + 81 + + 94 AS col2, + MIN( ALL + 63 ) AS col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-8692
SELECT ALL - + CAST ( NULL AS INTEGER ) + + 81 + + 94 AS col2, + MIN ( ALL + 63 ) AS col2
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT + 67 + - COUNT( * ) - - + 61 + + 36
----
163

skipif mysql # not compatible
query I rowsort label-8693
SELECT + 67 + - COUNT ( * ) - - + 61 + + 36
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT MIN( - 3 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8694
SELECT MIN ( - 3 ) AS col1
----
-3

query I rowsort
SELECT - 59 + 95 + 25 + + + 60 * - 46 * + 47 AS col2
----
-129659

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8696
SELECT CAST( + 90 AS SIGNED ) * - 52 AS col2, + 8
----
-4680
8

skipif mysql # not compatible
query II rowsort label-8696
SELECT CAST ( + 90 AS INTEGER ) * - 52 AS col2, + 8
----
-4680
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8697
SELECT 20, 59 + + - 26 + - COUNT( * ) AS col0
----
20
32

skipif mysql # not compatible
query II rowsort label-8697
SELECT 20, 59 + + - 26 + - COUNT ( * ) AS col0
----
20
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT - COUNT( * ) * - + 15 * + 26 AS col1
----
390

skipif mysql # not compatible
query I rowsort label-8698
SELECT - COUNT ( * ) * - + 15 * + 26 AS col1
----
390

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8699
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + - 51 * - + 53 AS col0, 64 - + 47 + - ( - 94 )
----
NULL
111

skipif mysql # not compatible
query II rowsort label-8699
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + - 51 * - + 53 AS col0, 64 - + 47 + - ( - 94 )
----
NULL
111

query I rowsort
SELECT 32 - + 17
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT ALL 69 * - - 71 + COUNT( ( 39 ) ) + - 89
----
4811

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL 69 * - - 71 + COUNT ( ( 39 ) ) + - 89
----
4811

query I rowsort
SELECT ALL + - 27 * + 79 AS col1
----
-2133

query I rowsort
SELECT ALL - - 64 - - 75 col1
----
139

query I rowsort
SELECT - + ( + ( - 12 ) )
----
12

query I rowsort
SELECT DISTINCT + 9 * - 7 AS col1
----
-63

query I rowsort
SELECT 11 + + + 74 AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8707
SELECT ALL + + MAX( DISTINCT - 0 ) * - 58 * 16 DIV - ( - + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL + + MAX ( DISTINCT - 0 ) * - 58 * 16 / - ( - + 55 )
----
0

query II rowsort
SELECT 94 AS col2, 55 AS col2
----
94
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8709
SELECT CAST( NULL AS SIGNED ) - + AVG ( DISTINCT 93 ) * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-8709
SELECT CAST ( NULL AS INTEGER ) - + AVG ( DISTINCT 93 ) * 95
----
NULL

query I rowsort
SELECT 33 - 42
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT COUNT( * ) * 67 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-8711
SELECT COUNT ( * ) * 67 AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8712
SELECT CAST( 64 AS SIGNED ) * - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-8712
SELECT CAST ( 64 AS INTEGER ) * - COUNT ( * )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8713
SELECT ALL + MIN( + 95 ) - 32 + + COUNT( 86 ) + + + 92 + + CAST( NULL AS DECIMAL ) + + + 39 * ( + 62 ) + - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + MIN ( + 95 ) - 32 + + COUNT ( 86 ) + + + 92 + + CAST ( NULL AS REAL ) + + + 39 * ( + 62 ) + - + 42
----
NULL

query I rowsort
SELECT ALL 81 * + 86 AS col1
----
6966

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT SUM( + 13 ) * + 43
----
559

skipif mysql # not compatible
query I rowsort label-8715
SELECT SUM ( + 13 ) * + 43
----
559

query II rowsort
SELECT ALL 21 * 24, 52 AS col2
----
504
52

query I rowsort
SELECT 97 * 87
----
8439

query I rowsort
SELECT ALL 15 + - - 77
----
92

query I rowsort
SELECT 30 * + 73 + + 17
----
2207

query I rowsort
SELECT ALL 85 * - 75 col1
----
-6375

onlyif mysql # DIV for integer division: 
query I rowsort label-8721
SELECT DISTINCT 44 + - - 2 DIV + 52 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT 44 + - - 2 / + 52 AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8722
SELECT ALL - CASE - 38 WHEN - - ( - 49 ) THEN + + CAST( 50 AS SIGNED ) WHEN - 71 - + 66 + + 5 * 10 - - MAX( DISTINCT - ( - - 6 ) ) THEN + + 67 + - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL - CASE - 38 WHEN - - ( - 49 ) THEN + + CAST ( 50 AS INTEGER ) WHEN - 71 - + 66 + + 5 * 10 - - MAX ( DISTINCT - ( - - 6 ) ) THEN + + 67 + - 79 END
----
NULL

query I rowsort
SELECT DISTINCT 20 + + ( + + 32 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8724
SELECT + + 29 * + + 20 - + - COUNT( * ) + CAST( NULL AS SIGNED ) + CASE - 27 WHEN 8 THEN + 56 END + - + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT + + 29 * + + 20 - + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + CASE - 27 WHEN 8 THEN + 56 END + - + 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT NULLIF ( COUNT( * ), + - 47 ) - 65 col1
----
-64

skipif mysql # not compatible
query I rowsort label-8725
SELECT NULLIF ( COUNT ( * ), + - 47 ) - 65 col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL - - COUNT( ALL - 6 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL - - COUNT ( ALL - 6 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8727
SELECT CAST( NULL AS SIGNED ) + + - 77 + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT CAST ( NULL AS INTEGER ) + + - 77 + 43
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8728
SELECT + 0 * + 56 + + ( - 33 ), 61 * + 81 + COUNT( DISTINCT 27 ) AS col2
----
-33
4942

skipif mysql # not compatible
query II rowsort label-8728
SELECT + 0 * + 56 + + ( - 33 ), 61 * + 81 + COUNT ( DISTINCT 27 ) AS col2
----
-33
4942

onlyif mysql # DIV for integer division: 
query I rowsort label-8729
SELECT DISTINCT + 65 DIV 69 + - - 24
----
24

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT + 65 / 69 + - - 24
----
24

query I rowsort
SELECT DISTINCT - 6 + 96 AS col1
----
90

query I rowsort
SELECT - CASE - - 84 WHEN - - 91 THEN + 20 + - 67 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 73 + + 28
----
-45

query I rowsort
SELECT - 0 + - 92 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-8734
SELECT DISTINCT 75 * - 60 AS col2, COALESCE ( ( + COUNT( * ) ), - 56 * 30 + + + 99, + 50 + + 9 )
----
-4500
1

skipif mysql # not compatible
query II rowsort label-8734
SELECT DISTINCT 75 * - 60 AS col2, COALESCE ( ( + COUNT ( * ) ), - 56 * 30 + + + 99, + 50 + + 9 )
----
-4500
1

query I rowsort
SELECT DISTINCT + 46 + - - 52 col0
----
98

query I rowsort
SELECT + 23 * + 52 AS col0
----
1196

query I rowsort
SELECT ALL - ( 39 ) * - 76 AS col2
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT DISTINCT + + 74 - CASE 56 WHEN - 97 THEN NULL WHEN - 46 * + + CASE + + 38 WHEN 67 THEN + 57 - - - COUNT( * ) + - COUNT( * ) WHEN - 80 * + 2 THEN NULL WHEN + MAX( DISTINCT - 70 ) * + AVG ( DISTINCT - 40 ) * + 33 + - + 2 THEN 97 * - 95 WHEN + 80 THEN NULL END * + 40 + 25 * 77 THEN - 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT + + 74 - CASE 56 WHEN - 97 THEN NULL WHEN - 46 * + + CASE + + 38 WHEN 67 THEN + 57 - - - COUNT ( * ) + - COUNT ( * ) WHEN - 80 * + 2 THEN NULL WHEN + MAX ( DISTINCT - 70 ) * + AVG ( DISTINCT - 40 ) * + 33 + - + 2 THEN 97 * - 95 WHEN + 80 THEN NULL END * + 40 + 25 * 77 THEN - 29 ELSE NULL END
----
NULL

query II rowsort
SELECT - 89 + 14 AS col1, 87
----
-75
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8740
SELECT - MIN( - - CAST( 50 AS SIGNED ) ) + 86
----
36

skipif mysql # not compatible
query I rowsort label-8740
SELECT - MIN ( - - CAST ( 50 AS INTEGER ) ) + 86
----
36

query I rowsort
SELECT - + 50 + - + ( + 63 ) AS col0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT ALL COUNT( DISTINCT - 85 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL COUNT ( DISTINCT - 85 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT - COALESCE ( - COUNT( * ), - 70 * + 5 + 75, - ( + - ( - + ( + 34 ) ) ) * + 60 ) + + + 79 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8743
SELECT - COALESCE ( - COUNT ( * ), - 70 * + 5 + 75, - ( + - ( - + ( + 34 ) ) ) * + 60 ) + + + 79 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT ALL COUNT( - + ( - + 2 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL COUNT ( - + ( - + 2 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8745
SELECT ALL 38, COUNT( * ) * + 15 - + COUNT( * ) col1
----
38
14

skipif mysql # not compatible
query II rowsort label-8745
SELECT ALL 38, COUNT ( * ) * + 15 - + COUNT ( * ) col1
----
38
14

query I rowsort
SELECT - 87 + - - 99
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL COALESCE ( - 45, CASE - ( + ( + + 70 ) ) WHEN + - 58 + + - 49 THEN NULL WHEN 86 * - COUNT( * ) THEN + COALESCE ( + - 37, + ( + 66 ) ) - - + 35 + + - NULLIF ( + 46, - + COUNT( * ) ) * - 98 + + 87 ELSE NULL END, + 81 + + 34, - COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL COALESCE ( - 45, CASE - ( + ( + + 70 ) ) WHEN + - 58 + + - 49 THEN NULL WHEN 86 * - COUNT ( * ) THEN + COALESCE ( + - 37, + ( + 66 ) ) - - + 35 + + - NULLIF ( + 46, - + COUNT ( * ) ) * - 98 + + 87 ELSE NULL END, + 81 + + 34, - COUNT ( * ) )
----
-45

query I rowsort
SELECT DISTINCT + 42 * + 97 AS col2
----
4074

query I rowsort
SELECT - ( - + ( - 59 ) ) * + 29
----
-1711

query I rowsort
SELECT DISTINCT + 24 * 6 AS col2
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT ALL + NULLIF ( - 21, - CAST( 93 AS SIGNED ) ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL + NULLIF ( - 21, - CAST ( 93 AS INTEGER ) ) col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8752
SELECT - 27 DIV - COUNT( ALL + 97 )
----
27

skipif mysql # not compatible
query I rowsort label-8752
SELECT - 27 / - COUNT ( ALL + 97 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT COUNT( * ) * 46 + + 10 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-8753
SELECT COUNT ( * ) * 46 + + 10 AS col1
----
56

query II rowsort
SELECT + 8 AS col1, + 77
----
8
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8755
SELECT ALL 44 * - 40 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL 44 * - 40 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT 19 * - + COUNT( * ) + + MAX( - 34 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT 19 * - + COUNT ( * ) + + MAX ( - 34 ) AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8757
SELECT ALL 88 * - + CAST( NULL AS SIGNED ) + + + 91 + - - CASE 9 WHEN 59 * + 46 * + COALESCE ( + 75, + - 4 ) THEN - + COUNT( * ) * - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL 88 * - + CAST ( NULL AS INTEGER ) + + + 91 + - - CASE 9 WHEN 59 * + 46 * + COALESCE ( + 75, + - 4 ) THEN - + COUNT ( * ) * - 39 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8758
SELECT ALL 94 * ( + - MIN( - 75 ) ) + + + 92 DIV + 55 AS col2
----
7051

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL 94 * ( + - MIN ( - 75 ) ) + + + 92 / + 55 AS col2
----
7051

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT + CASE 75 WHEN + - 67 * + CASE + 46 WHEN 77 * - + 26 - - 45 + - - COUNT( * ) THEN NULL WHEN - + 77 + - 25 THEN - 24 ELSE NULL END + + - 24 THEN + 17 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT + CASE 75 WHEN + - 67 * + CASE + 46 WHEN 77 * - + 26 - - 45 + - - COUNT ( * ) THEN NULL WHEN - + 77 + - 25 THEN - 24 ELSE NULL END + + - 24 THEN + 17 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( - 35, - 71 * - 52 )
----
-35

query I rowsort
SELECT NULLIF ( - 30, - 61 * - 61 - - 56 ) AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8762
SELECT + 49 * + - 36 + - CAST( - - ( - 23 ) AS SIGNED )
----
-1741

skipif mysql # not compatible
query I rowsort label-8762
SELECT + 49 * + - 36 + - CAST ( - - ( - 23 ) AS INTEGER )
----
-1741

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT + 18 * + + COUNT( * ) col0
----
18

skipif mysql # not compatible
query I rowsort label-8763
SELECT + 18 * + + COUNT ( * ) col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8764
SELECT ALL - COALESCE ( - ( 10 ), + + 25, - CAST( NULL AS SIGNED ) * - + ( + 66 ) - + 85 ) * 1 + - - NULLIF ( - + 9, - - COUNT( * ) * + 31 - 6 + 76 + + - MAX( ALL - 78 ) + COUNT( * ) * 18 * + + AVG ( - 41 ) ) DIV 63 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL - COALESCE ( - ( 10 ), + + 25, - CAST ( NULL AS INTEGER ) * - + ( + 66 ) - + 85 ) * 1 + - - NULLIF ( - + 9, - - COUNT ( * ) * + 31 - 6 + 76 + + - MAX ( ALL - 78 ) + COUNT ( * ) * 18 * + + AVG ( - 41 ) ) / 63 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8765
SELECT ALL 45 * COUNT( * ) * 37 * 83 / - + NULLIF ( - + 17, - 64 ) * - + 53 - - CASE - COALESCE ( + 3, - CASE - 96 WHEN + + 48 + + 25 * - 97 / + 94 THEN NULL WHEN + 82 + - 56 + - 28 THEN ( + 16 ) + 79 WHEN 94 + - 62 * 7 THEN COALESCE ( 50, 5 / - 97 ) * + MAX( 15 + + 30 / 85 ) + + 96 * 93 ELSE NULL END * + 32 ) WHEN + ( 0 ) THEN COALESCE ( - ( + 88 ), 1 + - 65 * ( 65 / COUNT( * ) + + CAST( + 84 AS DECIMAL ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL 45 * COUNT ( * ) * 37 * 83 / - + NULLIF ( - + 17, - 64 ) * - + 53 - - CASE - COALESCE ( + 3, - CASE - 96 WHEN + + 48 + + 25 * - 97 / + 94 THEN NULL WHEN + 82 + - 56 + - 28 THEN ( + 16 ) + 79 WHEN 94 + - 62 * 7 THEN COALESCE ( 50, 5 / - 97 ) * + MAX ( 15 + + 30 / 85 ) + + 96 * 93 ELSE NULL END * + 32 ) WHEN + ( 0 ) THEN COALESCE ( - ( + 88 ), 1 + - 65 * ( 65 / COUNT ( * ) + + CAST ( + 84 AS REAL ) ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT + + 97 * + + 27
----
2619

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8767
SELECT ALL + + 24 AS col1, COUNT( * ) DIV - MIN( ALL ( - 26 ) ) AS col1
----
24
0

skipif mysql # not compatible
query II rowsort label-8767
SELECT ALL + + 24 AS col1, COUNT ( * ) / - MIN ( ALL ( - 26 ) ) AS col1
----
24
0

query II rowsort
SELECT 5, - 6 col0
----
5
-6

query I rowsort
SELECT DISTINCT 63 * - + 35 AS col0
----
-2205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8770
SELECT ALL + - 46 * + COUNT( CAST( 55 AS SIGNED ) ) * + 49 - - 39 AS col2
----
-2215

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL + - 46 * + COUNT ( CAST ( 55 AS INTEGER ) ) * + 49 - - 39 AS col2
----
-2215

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT DISTINCT COUNT( - 64 )
----
1

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT COUNT ( - 64 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT + 65 + - 23 * + 25 * - 42 * - - MAX( DISTINCT - - 4 )
----
96665

skipif mysql # not compatible
query I rowsort label-8772
SELECT + 65 + - 23 * + 25 * - 42 * - - MAX ( DISTINCT - - 4 )
----
96665

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT - + 39 + + MIN( DISTINCT 10 )
----
-29

skipif mysql # not compatible
query I rowsort label-8773
SELECT - + 39 + + MIN ( DISTINCT 10 )
----
-29

query I rowsort
SELECT + - 70 * + - ( - 59 )
----
-4130

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT - - SUM( + 23 ) + - COALESCE ( + 27, - COUNT( * ) * 80, NULLIF ( + NULLIF ( + + 95, 29 + + + 51 - + COUNT( * ) / - 55 * + 71 / + + 58 * + - 17 ), 69 ) * + MAX( + 87 ) - + 45 ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-8775
SELECT - - SUM ( + 23 ) + - COALESCE ( + 27, - COUNT ( * ) * 80, NULLIF ( + NULLIF ( + + 95, 29 + + + 51 - + COUNT ( * ) / - 55 * + 71 / + + 58 * + - 17 ), 69 ) * + MAX ( + 87 ) - + 45 ) col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT ALL - - 59 * + 51 * COUNT( DISTINCT + 3 ) * - 31 AS col1
----
-93279

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL - - 59 * + 51 * COUNT ( DISTINCT + 3 ) * - 31 AS col1
----
-93279

query I rowsort
SELECT + - 20 - 48
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8778
SELECT ALL - - 84 * - 25 + - COALESCE ( 44, COALESCE ( + 34, 19 ), + 40 * 83 ) + CAST( + CASE + 78 WHEN + 30 THEN - CASE + CAST( NULL AS SIGNED ) WHEN - 4 * COUNT( * ) + CASE - COUNT( * ) WHEN - + CASE - 63 WHEN - 24 THEN NULL WHEN 16 THEN NULL ELSE ( CAST( 75 AS SIGNED ) ) / + 3 END THEN NULL ELSE 74 + + COUNT( * ) * + 2 END THEN 62 * + 72 + 47 END WHEN - 12 THEN - 7 END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL - - 84 * - 25 + - COALESCE ( 44, COALESCE ( + 34, 19 ), + 40 * 83 ) + CAST ( + CASE + 78 WHEN + 30 THEN - CASE + CAST ( NULL AS INTEGER ) WHEN - 4 * COUNT ( * ) + CASE - COUNT ( * ) WHEN - + CASE - 63 WHEN - 24 THEN NULL WHEN 16 THEN NULL ELSE ( CAST ( 75 AS INTEGER ) ) / + 3 END THEN NULL ELSE 74 + + COUNT ( * ) * + 2 END THEN 62 * + 72 + 47 END WHEN - 12 THEN - 7 END AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8779
SELECT ALL + CAST( NULL AS SIGNED ), - 38 AS col1
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-8779
SELECT ALL + CAST ( NULL AS INTEGER ), - 38 AS col1
----
NULL
-38

query I rowsort
SELECT ALL 52 * - 79 AS col2
----
-4108

query I rowsort
SELECT DISTINCT + 56 * + 82
----
4592

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT ALL CASE - 52 WHEN + 63 THEN + 79 * 74 + 59 WHEN + COUNT( * ) / - 94 * + - 6 THEN - - 60 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL CASE - 52 WHEN + 63 THEN + 79 * 74 + 59 WHEN + COUNT ( * ) / - 94 * + - 6 THEN - - 60 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT - CAST( + ( + 90 ) AS SIGNED ) * - 78 AS col2
----
7020

skipif mysql # not compatible
query I rowsort label-8783
SELECT - CAST ( + ( + 90 ) AS INTEGER ) * - 78 AS col2
----
7020

onlyif mysql # aggregate syntax: 
query II rowsort label-8784
SELECT ALL + 29 + + COALESCE ( + 87, + COUNT( * ), - + 40 + - COUNT( - 86 ) * + + 76 - ( - 54 ) ) * + 94, - 30 AS col0
----
8207
-30

skipif mysql # not compatible
query II rowsort label-8784
SELECT ALL + 29 + + COALESCE ( + 87, + COUNT ( * ), - + 40 + - COUNT ( - 86 ) * + + 76 - ( - 54 ) ) * + 94, - 30 AS col0
----
8207
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8785
SELECT ALL + 66 + 56 + 43 * SUM( - - 35 ) * - SUM( DISTINCT + 77 ) * + + 82 * + CAST( NULL AS SIGNED ) + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL + 66 + 56 + 43 * SUM ( - - 35 ) * - SUM ( DISTINCT + 77 ) * + + 82 * + CAST ( NULL AS INTEGER ) + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT - COUNT( * ) - - COUNT( ALL 38 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8786
SELECT - COUNT ( * ) - - COUNT ( ALL 38 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8787
SELECT DISTINCT - 93 * 45 DIV + 11 AS col2
----
-380

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT - 93 * 45 / + 11 AS col2
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL + CASE + COUNT( * ) WHEN 62 * - - 17 THEN NULL WHEN - 96 THEN + - 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL + CASE + COUNT ( * ) WHEN 62 * - - 17 THEN NULL WHEN - 96 THEN + - 14 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8789
SELECT ALL 15 DIV - 97 + + - 87 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL 15 / - 97 + + - 87 AS col2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8790
SELECT CAST( NULL AS SIGNED ) AS col2, 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-8790
SELECT CAST ( NULL AS INTEGER ) AS col2, 55
----
NULL
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8791
SELECT ALL + 96 DIV - COUNT( * ) + 25 + - COUNT( * ) * - - 6 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL + 96 / - COUNT ( * ) + 25 + - COUNT ( * ) * - - 6 AS col1
----
-77

query I rowsort
SELECT - 91 * ( 46 )
----
-4186

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT DISTINCT - MIN( - 71 ) * + COUNT( * ) col1
----
71

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT - MIN ( - 71 ) * + COUNT ( * ) col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8794
SELECT + 40 DIV 69 + + COUNT( * ) + - 95 + - COALESCE ( + + 9, COUNT( * ) + + 9 + - 16, - MIN( + 0 ) ) * + COALESCE ( - - MAX( ALL - + 22 ), - - 50 ) * + MAX( - + ( + 30 ) ) * - 90
----
534506

skipif mysql # not compatible
query I rowsort label-8794
SELECT + 40 / 69 + + COUNT ( * ) + - 95 + - COALESCE ( + + 9, COUNT ( * ) + + 9 + - 16, - MIN ( + 0 ) ) * + COALESCE ( - - MAX ( ALL - + 22 ), - - 50 ) * + MAX ( - + ( + 30 ) ) * - 90
----
534506

query I rowsort
SELECT ALL - 76 * 54 * NULLIF ( - + 35, - 14 * - 34 - 31 + + 44 )
----
143640

query I rowsort
SELECT - 38 + + 55 AS col1
----
17

query I rowsort
SELECT - 55 * 45 * + + 2 * + - 28
----
138600

query I rowsort
SELECT + 52 * 40 + - 84 AS col0
----
1996

onlyif mysql # aggregate syntax: 
query II rowsort label-8799
SELECT DISTINCT + 79 * - + COUNT( * ) AS col2, - 19 AS col0
----
-79
-19

skipif mysql # not compatible
query II rowsort label-8799
SELECT DISTINCT + 79 * - + COUNT ( * ) AS col2, - 19 AS col0
----
-79
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8800
SELECT ALL COUNT( * ) DIV 68 * - 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL COUNT ( * ) / 68 * - 2 AS col1
----
0

query I rowsort
SELECT ALL + + ( + + 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT + MIN( + - NULLIF ( - - NULLIF ( 40, - 35 ), + 3 / 89 / - 28 * + 45 ) ) + + 0 + 53 * + 61 * 38 + + + 59 col1
----
122873

skipif mysql # not compatible
query I rowsort label-8802
SELECT + MIN ( + - NULLIF ( - - NULLIF ( 40, - 35 ), + 3 / 89 / - 28 * + 45 ) ) + + 0 + 53 * + 61 * 38 + + + 59 col1
----
122873

query II rowsort
SELECT DISTINCT + + 57 AS col0, - 1 AS col0
----
57
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT ALL COUNT( * ) - + + SUM( ALL - - 19 ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL COUNT ( * ) - + + SUM ( ALL - - 19 ) col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8805
SELECT - 5 DIV - - 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8805
SELECT - 5 / - - 58 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8806
SELECT ALL + + COUNT( * ) DIV - 67 col1
----
0

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + + COUNT ( * ) / - 67 col1
----
0

query I rowsort
SELECT 61 + 79
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-8808
SELECT 45 AS col0, CASE - + 22 WHEN + 2 + + 5 THEN + + 33 ELSE MAX( ALL + 92 ) END
----
45
92

skipif mysql # not compatible
query II rowsort label-8808
SELECT 45 AS col0, CASE - + 22 WHEN + 2 + + 5 THEN + + 33 ELSE MAX ( ALL + 92 ) END
----
45
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8809
SELECT ALL 76 AS col1, 75 + + COUNT( * )
----
76
76

skipif mysql # not compatible
query II rowsort label-8809
SELECT ALL 76 AS col1, 75 + + COUNT ( * )
----
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT - MAX( 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-8810
SELECT - MAX ( 70 ) AS col1
----
-70

query I rowsort
SELECT + 46 + + 30 AS col0
----
76

query I rowsort
SELECT ALL - 30 * + 29
----
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT DISTINCT - CASE - - 21 WHEN - + 22 * SUM( - + 56 ) * + - 98 THEN NULL WHEN + 2 * - 66 * + - NULLIF ( + + 45, - + 50 ) * - + 88 - - - 11 - - 55 + - - 32 + + COALESCE ( - - 53, + MAX( + + 81 ) * - + COUNT( * ) ) THEN - COUNT( * ) * CASE + 30 * COUNT( * ) WHEN 59 * 95 + - 27 THEN NULL ELSE 87 + + 37 END ELSE 5 + 60 END
----
-65

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT - CASE - - 21 WHEN - + 22 * SUM ( - + 56 ) * + - 98 THEN NULL WHEN + 2 * - 66 * + - NULLIF ( + + 45, - + 50 ) * - + 88 - - - 11 - - 55 + - - 32 + + COALESCE ( - - 53, + MAX ( + + 81 ) * - + COUNT ( * ) ) THEN - COUNT ( * ) * CASE + 30 * COUNT ( * ) WHEN 59 * 95 + - 27 THEN NULL ELSE 87 + + 37 END ELSE 5 + 60 END
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT DISTINCT - - 15 * + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT - - 15 * + COUNT ( * ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ALL + COUNT( * ) + - ( + 9 )
----
-8

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL + COUNT ( * ) + - ( + 9 )
----
-8

query I rowsort
SELECT 87 * - ( - 93 ) * + COALESCE ( - + 96, + 42 ) col1
----
-776736

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL 63 + + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL 63 + + COUNT ( * )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8818
SELECT ALL 10 DIV 84 DIV 88 col0
----
0

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL 10 / 84 / 88 col0
----
0

query I rowsort
SELECT ALL - 70 + + 68 AS col2
----
-2

query I rowsort
SELECT ALL 27 + - - 40 * - ( + + 65 )
----
-2573

query I rowsort
SELECT ALL - NULLIF ( + 74, - 10 ) * + ( 50 )
----
-3700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8822
SELECT 87 + - COUNT( * ) DIV - 66 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-8822
SELECT 87 + - COUNT ( * ) / - 66 AS col0
----
87

query I rowsort
SELECT ALL 4 + + 99 AS col2
----
103

query II rowsort
SELECT ALL 62 * - - 54 AS col1, 67 AS col2
----
3348
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8825
SELECT ALL + ( + - 92 ) + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL + ( + - 92 ) + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 97 * + 19
----
1843

query I rowsort
SELECT ALL 56 * 42
----
2352

query I rowsort
SELECT 12 + - 90
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT - SUM( DISTINCT + + 47 ) * - 31 + - ( - + ( 62 ) )
----
1519

skipif mysql # not compatible
query I rowsort label-8829
SELECT - SUM ( DISTINCT + + 47 ) * - 31 + - ( - + ( 62 ) )
----
1519

query I rowsort
SELECT 8 * - + 70 * + - 17 * + + 46 * - 96 + - 39
----
-42040359

query I rowsort
SELECT 2 * 81
----
162

query II rowsort
SELECT ALL - ( 64 ), 80 AS col2
----
-64
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8833
SELECT ALL - ( - - ( - 30 ) ) * - - 20 * - + NULLIF ( CASE - 92 WHEN + 26 THEN + 31 WHEN - 94 + + 7 THEN NULL ELSE + CASE + - 34 WHEN + 58 THEN + 90 + + - 60 * - COALESCE ( CAST( - 89 AS SIGNED ), MAX( COALESCE ( + + 24, 23 ) ) ) / 57 END / 69 END, + NULLIF ( 88, - 5 + 41 ) / 42 ) * - 99 + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL - ( - - ( - 30 ) ) * - - 20 * - + NULLIF ( CASE - 92 WHEN + 26 THEN + 31 WHEN - 94 + + 7 THEN NULL ELSE + CASE + - 34 WHEN + 58 THEN + 90 + + - 60 * - COALESCE ( CAST ( - 89 AS INTEGER ), MAX ( COALESCE ( + + 24, 23 ) ) ) / 57 END / 69 END, + NULLIF ( 88, - 5 + 41 ) / 42 ) * - 99 + 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8834
SELECT COALESCE ( - 53, 41 ) * - 50 + - + 83 + + CASE - - COUNT( * ) WHEN + - 21 THEN + + 50 WHEN SUM( DISTINCT + - 96 ) THEN COUNT( * ) WHEN + ( - 63 ) + 58 + - AVG ( - + 58 ) THEN - COUNT( * ) + + 89 WHEN 79 * + + CAST( NULL AS DECIMAL ) THEN NULL END + + ( - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT COALESCE ( - 53, 41 ) * - 50 + - + 83 + + CASE - - COUNT ( * ) WHEN + - 21 THEN + + 50 WHEN SUM ( DISTINCT + - 96 ) THEN COUNT ( * ) WHEN + ( - 63 ) + 58 + - AVG ( - + 58 ) THEN - COUNT ( * ) + + 89 WHEN 79 * + + CAST ( NULL AS REAL ) THEN NULL END + + ( - 62 )
----
NULL

query I rowsort
SELECT DISTINCT - + ( - - 45 ) AS col2
----
-45

query II rowsort
SELECT 16 * 46 * + + 73 AS col1, - 71
----
53728
-71

query I rowsort
SELECT DISTINCT + 92 * + 46
----
4232

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT - COUNT( * ) * + 75 + - NULLIF ( - - 68, - 44 + - 23 ) - - - 85
----
-228

skipif mysql # not compatible
query I rowsort label-8838
SELECT - COUNT ( * ) * + 75 + - NULLIF ( - - 68, - 44 + - 23 ) - - - 85
----
-228

query I rowsort
SELECT DISTINCT NULLIF ( 26, + - 37 * 54 + + ( 46 ) - - 14 + 25 ) + + ( - + 38 )
----
-12

query I rowsort
SELECT 1 * - 10 * + 34
----
-340

onlyif mysql # aggregate syntax: 
query II rowsort label-8841
SELECT ALL + 18 + CASE - + 50 WHEN COUNT( * ) THEN 51 + - 91 ELSE - - 17 END AS col0, 88
----
35
88

skipif mysql # not compatible
query II rowsort label-8841
SELECT ALL + 18 + CASE - + 50 WHEN COUNT ( * ) THEN 51 + - 91 ELSE - - 17 END AS col0, 88
----
35
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8842
SELECT DISTINCT + COUNT( * ) + + 87, + 98 AS col0
----
88
98

skipif mysql # not compatible
query II rowsort label-8842
SELECT DISTINCT + COUNT ( * ) + + 87, + 98 AS col0
----
88
98

query I rowsort
SELECT 80 + ( 65 ) AS col1
----
145

query I rowsort
SELECT 24 - 96 AS col1
----
-72

query I rowsort
SELECT ( - - 87 ) + + 69 - 19 - + - 63 col0
----
200

query I rowsort
SELECT DISTINCT 64 + + - 83
----
-19

query I rowsort
SELECT ALL 22 * - 46
----
-1012

query I rowsort
SELECT DISTINCT 57 * + - 9 AS col0
----
-513

onlyif mysql # DIV for integer division: 
query I rowsort label-8849
SELECT DISTINCT - 20 + + ( + 36 ) DIV 51
----
-20

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT - 20 + + ( + 36 ) / 51
----
-20

query I rowsort
SELECT DISTINCT 75 + - NULLIF ( + 42, - + 82 ) AS col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8851
SELECT DISTINCT COUNT( * ) + + - ( + - COUNT( * ) ) * + 13 DIV + CAST( COUNT( * ) AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-8851
SELECT DISTINCT COUNT ( * ) + + - ( + - COUNT ( * ) ) * + 13 / + CAST ( COUNT ( * ) AS INTEGER )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT 21 * - - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT 21 * - - COUNT ( * )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT COALESCE ( - 99, + ( + 56 ) ) * - - 99 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT COALESCE ( - 99, + ( + 56 ) ) * - - 99 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL 57, + 7 AS col1
----
57
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8855
SELECT - 58 AS col2, MAX( + 31 ) * + - 90 AS col2
----
-58
-2790

skipif mysql # not compatible
query II rowsort label-8855
SELECT - 58 AS col2, MAX ( + 31 ) * + - 90 AS col2
----
-58
-2790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8856
SELECT COALESCE ( - 54, - COUNT( ALL + - 25 ) + + + COUNT( ALL + 9 ) ) DIV - - COUNT( * ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-8856
SELECT COALESCE ( - 54, - COUNT ( ALL + - 25 ) + + + COUNT ( ALL + 9 ) ) / - - COUNT ( * ) col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8857
SELECT DISTINCT SUM( - 99 ) - + 58 + + 76 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT SUM ( - 99 ) - + 58 + + 76 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8858
SELECT - NULLIF ( - + COALESCE ( + 20, 95 DIV + COUNT( * ), 89, - 33 + - 60 ), 87 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8858
SELECT - NULLIF ( - + COALESCE ( + 20, 95 / + COUNT ( * ), 89, - 33 + - 60 ), 87 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL 50 - ( - - MAX( + 6 ) ) + - 91 * - + 82 * + 67
----
499998

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL 50 - ( - - MAX ( + 6 ) ) + - 91 * - + 82 * + 67
----
499998

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8860
SELECT ALL COUNT( * ) DIV + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL COUNT ( * ) / + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8861
SELECT + COUNT( * ), + 66 col0
----
1
66

skipif mysql # not compatible
query II rowsort label-8861
SELECT + COUNT ( * ), + 66 col0
----
1
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8862
SELECT ALL MIN( - 45 ) DIV SUM( + 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL MIN ( - 45 ) / SUM ( + 44 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8863
SELECT + - 93 DIV + COUNT( * ) + - - 51 AS col0, + ( 44 )
----
-42
44

skipif mysql # not compatible
query II rowsort label-8863
SELECT + - 93 / + COUNT ( * ) + - - 51 AS col0, + ( 44 )
----
-42
44

query II rowsort
SELECT ALL + 42 AS col2, 8 AS col2
----
42
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8865
SELECT ALL + 88 AS col1, COUNT( * ) + - 55 AS col1
----
88
-54

skipif mysql # not compatible
query II rowsort label-8865
SELECT ALL + 88 AS col1, COUNT ( * ) + - 55 AS col1
----
88
-54

query I rowsort
SELECT - 10 * - - 89 AS col1
----
-890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8867
SELECT DISTINCT + 18 AS col2, SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) + 93 + 7 + - + 3
----
18
NULL

skipif mysql # not compatible
query II rowsort label-8867
SELECT DISTINCT + 18 AS col2, SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + 93 + 7 + - + 3
----
18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT + COUNT( DISTINCT - 44 ) + - 90
----
-89

skipif mysql # not compatible
query I rowsort label-8868
SELECT + COUNT ( DISTINCT - 44 ) + - 90
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT ALL + + CASE - 62 WHEN 9 - - COUNT( * ) THEN - 84 * - 66 + + - 59 + 43 * + 36 + - 83 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL + + CASE - 62 WHEN 9 - - COUNT ( * ) THEN - 84 * - 66 + + - 59 + 43 * + 36 + - 83 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT - - MIN( + - 40 ) * 10 + - - 28 AS col2
----
-372

skipif mysql # not compatible
query I rowsort label-8870
SELECT - - MIN ( + - 40 ) * 10 + - - 28 AS col2
----
-372

query I rowsort
SELECT - + COALESCE ( + + 96, - CASE WHEN NOT + 2 >= + 44 * 28 / - + 51 THEN - 13 END ) + - 4 + - - 76 + + 79 * - - 72 AS col0
----
5664

query I rowsort
SELECT ALL + ( + 66 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT ALL + - COUNT( * ) * - ( 58 ) + + COUNT( ALL + - 45 )
----
59

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL + - COUNT ( * ) * - ( 58 ) + + COUNT ( ALL + - 45 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL + COALESCE ( 49, - - 48 ) * + - ( 28 ) + COUNT( * ) + + 8 * MAX( ALL - 46 )
----
-1739

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL + COALESCE ( 49, - - 48 ) * + - ( 28 ) + COUNT ( * ) + + 8 * MAX ( ALL - 46 )
----
-1739

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8875
SELECT - CAST( NULL AS DECIMAL ) + - CASE + + ( - + 77 ) WHEN + 95 THEN + NULLIF ( + - 87, + COUNT( * ) ) - 90 / 7 END * - - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT - CAST ( NULL AS REAL ) + - CASE + + ( - + 77 ) WHEN + 95 THEN + NULLIF ( + - 87, + COUNT ( * ) ) - 90 / 7 END * - - 59 AS col2
----
NULL

query I rowsort
SELECT ALL + 87 + - 99 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT ALL + 70 + + - 46 * + 30 * + COUNT( * ) - SUM( - 18 ) - 69
----
-1361

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL + 70 + + - 46 * + 30 * + COUNT ( * ) - SUM ( - 18 ) - 69
----
-1361

query I rowsort
SELECT DISTINCT + 97 + + 43 AS col1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT ALL ( - COUNT( DISTINCT + 92 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL ( - COUNT ( DISTINCT + 92 ) )
----
-1

query I rowsort
SELECT DISTINCT - 98 + - + 14 + + COALESCE ( + 51, + - 2, - - 56 )
----
-61

query I rowsort
SELECT DISTINCT NULLIF ( + 11, - - 45 + + NULLIF ( - - 59, AVG ( + 63 ) ) ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT - MIN( ALL + 75 ) * + 39 AS col1
----
-2925

skipif mysql # not compatible
query I rowsort label-8882
SELECT - MIN ( ALL + 75 ) * + 39 AS col1
----
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT ALL NULLIF ( - SUM( - 13 ), + COUNT( ALL + ( - - 49 ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL NULLIF ( - SUM ( - 13 ), + COUNT ( ALL + ( - - 49 ) ) )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL + 53 - - 94 * + COUNT( * ) AS col2
----
147

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + 53 - - 94 * + COUNT ( * ) AS col2
----
147

query I rowsort
SELECT - ( + - 12 ) - - 47
----
59

query I rowsort
SELECT - 62 + + 11
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-8887
SELECT DISTINCT - COUNT( * ) - + 24 AS col1, - 95
----
-25
-95

skipif mysql # not compatible
query II rowsort label-8887
SELECT DISTINCT - COUNT ( * ) - + 24 AS col1, - 95
----
-25
-95

query I rowsort
SELECT - 32 + 87 - + - 73 * 70 * + ( - 92 )
----
-470065

query I rowsort
SELECT DISTINCT - 35 - + ( 49 ) * COALESCE ( 26, + 56 ) * ( - + 27 ) col2
----
34363

query I rowsort
SELECT ALL + 72 * - 16 AS col2
----
-1152

query I rowsort
SELECT DISTINCT ( - 44 ) * + 1 * + - 70
----
3080

query I rowsort
SELECT DISTINCT + 63 * - 7 AS col1
----
-441

query I rowsort
SELECT + 61 * + 66 AS col0
----
4026

query I rowsort
SELECT DISTINCT ( + COALESCE ( + - 26, + 3, 91 ) )
----
-26

query I rowsort
SELECT DISTINCT + ( - - 83 ) AS col1
----
83

query I rowsort
SELECT + 15 * + 35 col0
----
525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8897
SELECT + CAST( NULL AS SIGNED ) * - 4 * - MAX( - 73 ) - - ( 10 ) + + - NULLIF ( - 78, - 26 ) + + COUNT( * ) * - + 72 + + - 40, - NULLIF ( - 98, - AVG ( ALL + 64 ) + - 92 ) AS col2
----
NULL
98

skipif mysql # not compatible
query II rowsort label-8897
SELECT + CAST ( NULL AS INTEGER ) * - 4 * - MAX ( - 73 ) - - ( 10 ) + + - NULLIF ( - 78, - 26 ) + + COUNT ( * ) * - + 72 + + - 40, - NULLIF ( - 98, - AVG ( ALL + 64 ) + - 92 ) AS col2
----
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT + CASE + 0 WHEN - ( + 18 ) * - 73 + - 34 * - COUNT( * ) - + 87 THEN + - 22 + - 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT + CASE + 0 WHEN - ( + 18 ) * - 73 + - 34 * - COUNT ( * ) - + 87 THEN + - 22 + - 67 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8899
SELECT DISTINCT + + 75 DIV 81 + + ( + - 78 ) - - 85 + 19 * MIN( - 25 ) * - + 3 AS col0, + 8
----
1432
8

skipif mysql # not compatible
query II rowsort label-8899
SELECT DISTINCT + + 75 / 81 + + ( + - 78 ) - - 85 + 19 * MIN ( - 25 ) * - + 3 AS col0, + 8
----
1432
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8900
SELECT + + NULLIF ( + 62, + 0 + - 89 ) * 27 * 77 DIV + 46 + 73 * 16 DIV 21 * 13 + + COALESCE ( - - CASE 74 WHEN + COALESCE ( + + COUNT( * ), + 38 DIV - 34 + - 16 * - 5 * - 24 ) * - - 79 + - 56 + - MIN( - ( 28 ) ) * - 58 * + 52 THEN NULL WHEN NULLIF ( 43, 19 * CAST( + 56 AS SIGNED ) + 28 ) + 57 * - ( + ( 68 ) - - NULLIF ( - 9, 18 + + 1 ) * NULLIF ( MAX( DISTINCT + 0 ), - ( 45 ) ) ) THEN NULL WHEN 18 THEN NULL ELSE 51 END, 79 - - MAX( ALL + 55 - - 79 ) ) AS col1
----
3568

skipif mysql # not compatible
query I rowsort label-8900
SELECT + + NULLIF ( + 62, + 0 + - 89 ) * 27 * 77 / + 46 + 73 * 16 / 21 * 13 + + COALESCE ( - - CASE 74 WHEN + COALESCE ( + + COUNT ( * ), + 38 / - 34 + - 16 * - 5 * - 24 ) * - - 79 + - 56 + - MIN ( - ( 28 ) ) * - 58 * + 52 THEN NULL WHEN NULLIF ( 43, 19 * CAST ( + 56 AS INTEGER ) + 28 ) + 57 * - ( + ( 68 ) - - NULLIF ( - 9, 18 + + 1 ) * NULLIF ( MAX ( DISTINCT + 0 ), - ( 45 ) ) ) THEN NULL WHEN 18 THEN NULL ELSE 51 END, 79 - - MAX ( ALL + 55 - - 79 ) ) AS col1
----
3568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8901
SELECT ALL - 78 / + - 70 - CAST( NULL AS SIGNED ) + CASE - 39 WHEN + - 48 + 31 + 6 THEN NULLIF ( - CAST( NULL AS SIGNED ), + - COUNT( * ) + + CASE COUNT( * ) WHEN + COALESCE ( - 65, 6 / 27 ) THEN - CAST( NULL AS DECIMAL ) + - 5 WHEN 22 * - - 47 THEN NULL END ) * - CAST( NULL AS SIGNED ) / 25 + + COUNT( * ) * - CAST( NULL AS SIGNED ) END + + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL - 78 / + - 70 - CAST ( NULL AS INTEGER ) + CASE - 39 WHEN + - 48 + 31 + 6 THEN NULLIF ( - CAST ( NULL AS INTEGER ), + - COUNT ( * ) + + CASE COUNT ( * ) WHEN + COALESCE ( - 65, 6 / 27 ) THEN - CAST ( NULL AS REAL ) + - 5 WHEN 22 * - - 47 THEN NULL END ) * - CAST ( NULL AS INTEGER ) / 25 + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) END + + 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT DISTINCT - 7 * + 95 + + COALESCE ( + 60, 74 ) + COUNT( * ) + - + 63 col0
----
-667

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT - 7 * + 95 + + COALESCE ( + 60, 74 ) + COUNT ( * ) + - + 63 col0
----
-667

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL 38 * 74 * - COUNT( * ) + - 22 * + + 8 + - + 53
----
-3041

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL 38 * 74 * - COUNT ( * ) + - 22 * + + 8 + - + 53
----
-3041

query I rowsort
SELECT DISTINCT + + 9 col0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8905
SELECT + ( + 5 ) - - 64 * - COUNT( * ), - NULLIF ( - + 73, - + 22 + - 63 + - 60 * - 19 ) AS col2
----
-59
73

skipif mysql # not compatible
query II rowsort label-8905
SELECT + ( + 5 ) - - 64 * - COUNT ( * ), - NULLIF ( - + 73, - + 22 + - 63 + - 60 * - 19 ) AS col2
----
-59
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT + 87 * - - 30 / - 62 * - NULLIF ( - + 46, - 23 + + AVG ( ALL - - 92 ) ) * 35 + - 17 + + - 12 / + + 81 - - 7 / + ( - 46 ) * - CASE 12 WHEN + 49 * + + COUNT( * ) THEN + MIN( DISTINCT + 17 ) / + + 96 * - 28 * + COUNT( * ) + + 94 END + - 42 + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT + 87 * - - 30 / - 62 * - NULLIF ( - + 46, - 23 + + AVG ( ALL - - 92 ) ) * 35 + - 17 + + - 12 / + + 81 - - 7 / + ( - 46 ) * - CASE 12 WHEN + 49 * + + COUNT ( * ) THEN + MIN ( DISTINCT + 17 ) / + + 96 * - 28 * + COUNT ( * ) + + 94 END + - 42 + 83 AS col1
----
NULL

query I rowsort
SELECT + 31 * 12 + - - 7 AS col0
----
379

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT + MIN( - + 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-8908
SELECT + MIN ( - + 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT - NULLIF ( - 12, + 90 + + 9 * 44 + COUNT( * ) + - 34 * - - 8 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8909
SELECT - NULLIF ( - 12, + 90 + + 9 * 44 + COUNT ( * ) + - 34 * - - 8 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT + COUNT( ALL + 49 )
----
1

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT + COUNT ( ALL + 49 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT ALL + COUNT( * ) * + - ( - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL + COUNT ( * ) * + - ( - 88 )
----
88

query I rowsort
SELECT + 81 - + 58 * + 44 AS col2
----
-2471

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT ALL + COUNT( * ) * + 55 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL + COUNT ( * ) * + 55 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT + COUNT( * ) + - 12 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8914
SELECT + COUNT ( * ) + - 12 AS col1
----
-11

query I rowsort
SELECT - 69 + - + 27
----
-96

query I rowsort
SELECT ALL + 49 * + 86 AS col1
----
4214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8917
SELECT 76 * - CAST( NULL AS SIGNED ) + + 96 / - COALESCE ( + ( - + ( - - 99 ) ), 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8917
SELECT 76 * - CAST ( NULL AS INTEGER ) + + 96 / - COALESCE ( + ( - + ( - - 99 ) ), 41 ) AS col0
----
NULL

query II rowsort
SELECT - 55 AS col1, 8 - + + 50
----
-55
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8919
SELECT COUNT( * ) AS col0, - 44 AS col2
----
1
-44

skipif mysql # not compatible
query II rowsort label-8919
SELECT COUNT ( * ) AS col0, - 44 AS col2
----
1
-44

query I rowsort
SELECT ALL 97 * 17 * + + 14
----
23086

query I rowsort
SELECT - 9 * - - 77 AS col0
----
-693

query I rowsort
SELECT - 68 + + 24 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-8923
SELECT ALL 65 AS col2, + 0 + + - COUNT( * ) + 65
----
65
64

skipif mysql # not compatible
query II rowsort label-8923
SELECT ALL 65 AS col2, + 0 + + - COUNT ( * ) + 65
----
65
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8924
SELECT 31 DIV + + ( - - 94 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8924
SELECT 31 / + + ( - - 94 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT 2 + COUNT( * ) + + 98 * + MIN( ALL - 13 ) AS col0
----
-1271

skipif mysql # not compatible
query I rowsort label-8925
SELECT 2 + COUNT ( * ) + + 98 * + MIN ( ALL - 13 ) AS col0
----
-1271

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8926
SELECT DISTINCT - ( + + 52 ) DIV - COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - ( + + 52 ) / - COUNT ( * ) AS col1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8927
SELECT ALL - + 11 DIV 74 * 98 * - - 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL - + 11 / 74 * 98 * - - 28 AS col1
----
0

query I rowsort
SELECT 68 - + - 58
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT + 83 * - CASE 80 WHEN + + 48 * + 14 * - - 6 + - + 4 THEN - MIN( ALL 72 ) + - COUNT( * ) END * + + ( + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8929
SELECT + 83 * - CASE 80 WHEN + + 48 * + 14 * - - 6 + - + 4 THEN - MIN ( ALL 72 ) + - COUNT ( * ) END * + + ( + 76 )
----
NULL

query I rowsort
SELECT + 22 - + 54 * + 76
----
-4082

onlyif mysql # aggregate syntax: 
query II rowsort label-8931
SELECT - - NULLIF ( COUNT( * ), + 55 ), 82 AS col1
----
1
82

skipif mysql # not compatible
query II rowsort label-8931
SELECT - - NULLIF ( COUNT ( * ), + 55 ), 82 AS col1
----
1
82

query I rowsort
SELECT ALL - + ( + 24 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ALL + 2 * 36 + - COUNT( * ) + 12
----
83

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL + 2 * 36 + - COUNT ( * ) + 12
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8934
SELECT ALL + + 6 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL + + 6 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 64 + - 86 * - - ( 20 )
----
-1784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT - CAST( NULL AS SIGNED ) + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT - CAST ( NULL AS INTEGER ) + - 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8937
SELECT - 14 * + + 4 - - CAST( - 4 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-8937
SELECT - 14 * + + 4 - - CAST ( - 4 AS INTEGER )
----
-60

query I rowsort
SELECT + 29 + 84
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-8939
SELECT + COUNT( * ) col0, 7 * 53
----
1
371

skipif mysql # not compatible
query II rowsort label-8939
SELECT + COUNT ( * ) col0, 7 * 53
----
1
371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8940
SELECT - CAST( - NULLIF ( - + 67, + 55 / - COUNT( DISTINCT + + 54 ) ) AS SIGNED ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-8940
SELECT - CAST ( - NULLIF ( - + 67, + 55 / - COUNT ( DISTINCT + + 54 ) ) AS INTEGER ) col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT 65 * + COUNT( * ) + - 22 + + - 78 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8941
SELECT 65 * + COUNT ( * ) + - 22 + + - 78 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT DISTINCT - MAX( - 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT - MAX ( - 20 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT + + SUM( ALL 16 ) * - + MIN( ALL - 32 ) + - 53 + - 69 * + - 21
----
1908

skipif mysql # not compatible
query I rowsort label-8943
SELECT + + SUM ( ALL 16 ) * - + MIN ( ALL - 32 ) + - 53 + - 69 * + - 21
----
1908

query I rowsort
SELECT DISTINCT 52 * 86 AS col2
----
4472

query I rowsort
SELECT ALL 64 - + 62
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8946
SELECT + 86 AS col1, ( - COUNT( * ) ) * - 46 * - 46
----
86
-2116

skipif mysql # not compatible
query II rowsort label-8946
SELECT + 86 AS col1, ( - COUNT ( * ) ) * - 46 * - 46
----
86
-2116

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ALL COUNT( ALL 50 ) * - + 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL COUNT ( ALL 50 ) * - + 43 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT 53 * + - COUNT( DISTINCT - 81 ) + 42
----
-11

skipif mysql # not compatible
query I rowsort label-8948
SELECT 53 * + - COUNT ( DISTINCT - 81 ) + 42
----
-11

query I rowsort
SELECT 22 * 73 * 14
----
22484

onlyif mysql # aggregate syntax: 
query II rowsort label-8950
SELECT DISTINCT - 57 AS col2, - COUNT( ALL - 1 ) col0
----
-57
-1

skipif mysql # not compatible
query II rowsort label-8950
SELECT DISTINCT - 57 AS col2, - COUNT ( ALL - 1 ) col0
----
-57
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8951
SELECT CAST( + - ( 3 ) AS SIGNED ) * - 30 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8951
SELECT CAST ( + - ( 3 ) AS INTEGER ) * - 30 AS col2
----
90

query I rowsort
SELECT 31 * 79
----
2449

query II rowsort
SELECT - 53, ( + + 45 ) * + ( + - 14 ) AS col0
----
-53
-630

onlyif mysql # aggregate syntax: 
query II rowsort label-8954
SELECT - 7, 28 + + COALESCE ( + - ( - - 96 ), + 98 * MIN( ALL + - 77 ) * - 39 ) * 6 AS col0
----
-7
-548

skipif mysql # not compatible
query II rowsort label-8954
SELECT - 7, 28 + + COALESCE ( + - ( - - 96 ), + 98 * MIN ( ALL + - 77 ) * - 39 ) * 6 AS col0
----
-7
-548

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT COALESCE ( + 32, + ( + COUNT( * ) ) + + 32 * + 12, 30 * COUNT( * ) ) + - + 78
----
-46

skipif mysql # not compatible
query I rowsort label-8955
SELECT COALESCE ( + 32, + ( + COUNT ( * ) ) + + 32 * + 12, 30 * COUNT ( * ) ) + - + 78
----
-46

query I rowsort
SELECT ALL 44 * CASE WHEN NOT 76 <= NULL THEN - 0 ELSE + - 96 END AS col1
----
-4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8957
SELECT 11 + + + COUNT( * ) * - CAST( NULL AS SIGNED ) + - - 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT 11 + + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - - 93 AS col0
----
NULL

query I rowsort
SELECT 47 + + + 35
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8959
SELECT 96 DIV + - CAST( + 43 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-8959
SELECT 96 / + - CAST ( + 43 AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL - 76 + + ( COUNT( * ) ) * + 68 + - - 22 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL - 76 + + ( COUNT ( * ) ) * + 68 + - - 22 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8961
SELECT 83 + - 14 AS col1, COUNT( * ) col1
----
69
1

skipif mysql # not compatible
query II rowsort label-8961
SELECT 83 + - 14 AS col1, COUNT ( * ) col1
----
69
1

query II rowsort
SELECT ALL + 42 AS col1, - 4 AS col0
----
42
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8963
SELECT DISTINCT COUNT( * ), - CAST( NULL AS DECIMAL ) * - 29 * + 97 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8963
SELECT DISTINCT COUNT ( * ), - CAST ( NULL AS REAL ) * - 29 * + 97 AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8964
SELECT DISTINCT + MAX( CASE 29 WHEN - 84 THEN 91 + + 20 ELSE + 64 END ) + - 91 - - 59 + - 22 DIV NULLIF ( - 44, - CAST( - 39 AS SIGNED ) )
----
32

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT + MAX ( CASE 29 WHEN - 84 THEN 91 + + 20 ELSE + 64 END ) + - 91 - - 59 + - 22 / NULLIF ( - 44, - CAST ( - 39 AS INTEGER ) )
----
32

query I rowsort
SELECT DISTINCT + 57 + - - 17 + + ( + 60 )
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT 52 + - COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8966
SELECT 52 + - COUNT ( * ) AS col0
----
51

query I rowsort
SELECT ALL + 65 / - + CASE 54 WHEN 30 THEN - 7 WHEN 94 + - + 24 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 86 * 16 AS col0
----
1376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8969
SELECT COUNT( 97 ) * + ( + 90 ) / - 39 + + SUM( + 55 ) * + 79 + - CASE - 27 WHEN + MIN( ALL 20 ) THEN + 0 + - + 17 + + 9 WHEN 13 THEN 19 * + CAST( NULL AS SIGNED ) + + 76 / + 93 + - 94 ELSE NULL END * 14 + - 20 + ( 43 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8969
SELECT COUNT ( 97 ) * + ( + 90 ) / - 39 + + SUM ( + 55 ) * + 79 + - CASE - 27 WHEN + MIN ( ALL 20 ) THEN + 0 + - + 17 + + 9 WHEN 13 THEN 19 * + CAST ( NULL AS INTEGER ) + + 76 / + 93 + - 94 ELSE NULL END * 14 + - 20 + ( 43 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT ALL + ( 5 ) * - + COUNT( * ) - + ( + + 15 )
----
-20

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL + ( 5 ) * - + COUNT ( * ) - + ( + + 15 )
----
-20

query II rowsort
SELECT - 36 col1, 30 * - 87 AS col0
----
-36
-2610

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8972
SELECT DISTINCT + 26 * 97 + + CASE 70 WHEN + AVG ( + 38 ) + + COALESCE ( - 69, + CASE - - 93 WHEN 18 THEN + - ( AVG ( DISTINCT + + 71 ) ) END * - COALESCE ( - COUNT( * ), + 83 * 3 / - ( 4 ), - + COUNT( * ) ) + - CAST( + 15 AS DECIMAL ), + 4 ) THEN NULL ELSE + 33 END * 96 - 72
----
5618

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT + 26 * 97 + + CASE 70 WHEN + AVG ( + 38 ) + + COALESCE ( - 69, + CASE - - 93 WHEN 18 THEN + - ( AVG ( DISTINCT + + 71 ) ) END * - COALESCE ( - COUNT ( * ), + 83 * 3 / - ( 4 ), - + COUNT ( * ) ) + - CAST ( + 15 AS REAL ), + 4 ) THEN NULL ELSE + 33 END * 96 - 72
----
5618

query II rowsort
SELECT DISTINCT - 52, COALESCE ( + 0, + 37 ) AS col0
----
-52
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8974
SELECT ALL - 8 * + MIN( - 5 ) + 48 + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + - + 82 * - 62 - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL - 8 * + MIN ( - 5 ) + 48 + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + - + 82 * - 62 - 11 AS col2
----
NULL

query II rowsort
SELECT ALL - - 93 AS col0, 85 * - + 77 AS col0
----
93
-6545

query II rowsort
SELECT + + 70 AS col2, + 87 AS col0
----
70
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8977
SELECT ALL - COUNT( * ), 25 * - 75 AS col1
----
-1
-1875

skipif mysql # not compatible
query II rowsort label-8977
SELECT ALL - COUNT ( * ), 25 * - 75 AS col1
----
-1
-1875

onlyif mysql # aggregate syntax: 
query II rowsort label-8978
SELECT DISTINCT - 80 * COUNT( * ), COUNT( * ) * - 63 * - 98 AS col2
----
-80
6174

skipif mysql # not compatible
query II rowsort label-8978
SELECT DISTINCT - 80 * COUNT ( * ), COUNT ( * ) * - 63 * - 98 AS col2
----
-80
6174

query I rowsort
SELECT 71 - - + 18
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8980
SELECT 6 * + AVG ( DISTINCT + 23 ) * COUNT( * ) * - 45 * - - 39 + - - CAST( NULL AS SIGNED ) + + - 55 * - COUNT( * ) - 6 / - - 20 * - - ( - 2 ) * - - 70 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8980
SELECT 6 * + AVG ( DISTINCT + 23 ) * COUNT ( * ) * - 45 * - - 39 + - - CAST ( NULL AS INTEGER ) + + - 55 * - COUNT ( * ) - 6 / - - 20 * - - ( - 2 ) * - - 70 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8981
SELECT 77 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8981
SELECT 77 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( 73 ) + - - 39 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT MIN( - 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-8983
SELECT MIN ( - 86 ) AS col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT 96 DIV + 47 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8984
SELECT 96 / + 47 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT COUNT( * ) * - 12 * 47
----
-564

skipif mysql # not compatible
query I rowsort label-8985
SELECT COUNT ( * ) * - 12 * 47
----
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT COALESCE ( + 7, + 84, - - COUNT( * ) ) - + 70 * 32
----
-2233

skipif mysql # not compatible
query I rowsort label-8986
SELECT COALESCE ( + 7, + 84, - - COUNT ( * ) ) - + 70 * 32
----
-2233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8987
SELECT DISTINCT + COALESCE ( - 53, - - 67 - 25, - 64 + - + COALESCE ( + 61, - - COALESCE ( - + 77, - COALESCE ( 16, - ( + - 64 ) * + 53 * - 43 + - 8 * 36 DIV + - COUNT( * ) + + 43 ) * + + 63 + + 2 + - 57 * + 33 DIV 44 * 53 + 25 ) + 51, + ( + 86 ) ) + - 94 )
----
-53

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT + COALESCE ( - 53, - - 67 - 25, - 64 + - + COALESCE ( + 61, - - COALESCE ( - + 77, - COALESCE ( 16, - ( + - 64 ) * + 53 * - 43 + - 8 * 36 / + - COUNT ( * ) + + 43 ) * + + 63 + + 2 + - 57 * + 33 / 44 * 53 + 25 ) + 51, + ( + 86 ) ) + - 94 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT DISTINCT COUNT( * ) * CASE + - COUNT( * ) WHEN - 15 * CASE + - 77 WHEN 64 THEN - 45 * 40 + + 81 + - 49 WHEN AVG ( 48 ) THEN NULL END THEN 11 WHEN 6 + 72 - + - 32 + + 15 / - 84 + + - 86 * + COUNT( * ) THEN 84 WHEN 98 * 76 + 69 THEN COUNT( * ) / 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT COUNT ( * ) * CASE + - COUNT ( * ) WHEN - 15 * CASE + - 77 WHEN 64 THEN - 45 * 40 + + 81 + - 49 WHEN AVG ( 48 ) THEN NULL END THEN 11 WHEN 6 + 72 - + - 32 + + 15 / - 84 + + - 86 * + COUNT ( * ) THEN 84 WHEN 98 * 76 + 69 THEN COUNT ( * ) / 97 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT - 32 + MAX( DISTINCT 24 ) * + CASE - 27 WHEN + COUNT( * ) THEN - 74 ELSE - + 17 END AS col2
----
-440

skipif mysql # not compatible
query I rowsort label-8989
SELECT - 32 + MAX ( DISTINCT 24 ) * + CASE - 27 WHEN + COUNT ( * ) THEN - 74 ELSE - + 17 END AS col2
----
-440

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8990
SELECT ALL COALESCE ( ( + + 30 ), - 80 DIV + + CAST( NULL AS SIGNED ) ) * - 33
----
-990

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL COALESCE ( ( + + 30 ), - 80 / + + CAST ( NULL AS INTEGER ) ) * - 33
----
-990

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8991
SELECT + AVG ( 87 ) + + 35 * + - CAST( NULL AS SIGNED ) + ( + + 5 ) + + 64 * + CAST( - 56 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT + AVG ( 87 ) + + 35 * + - CAST ( NULL AS INTEGER ) + ( + + 5 ) + + 64 * + CAST ( - 56 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT DISTINCT ( - 19 ) + + 9 + MAX( + - 74 )
----
-84

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT ( - 19 ) + + 9 + MAX ( + - 74 )
----
-84

query I rowsort
SELECT ALL 38 + ( - 72 ) AS col2
----
-34

query I rowsort
SELECT ALL COALESCE ( 29, - 9 - + 63 ) * - 30 col0
----
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT - MAX( - ( + 14 ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8995
SELECT - MAX ( - ( + 14 ) ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT COALESCE ( + COUNT( * ), + + MIN( ALL 32 ) + - 79 * - - 95, - + COUNT( 3 ) + + 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8996
SELECT COALESCE ( + COUNT ( * ), + + MIN ( ALL 32 ) + - 79 * - - 95, - + COUNT ( 3 ) + + 45 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8997
SELECT + - 24 * + CAST( NULL AS SIGNED ) * - 85 + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8997
SELECT + - 24 * + CAST ( NULL AS INTEGER ) * - 85 + 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL - COUNT( * ) + - - 27 + - 76
----
-50

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL - COUNT ( * ) + - - 27 + - 76
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8999
SELECT ALL + CAST( NULL AS SIGNED ) + CAST( - 43 AS DECIMAL ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL + CAST ( NULL AS INTEGER ) + CAST ( - 43 AS REAL ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9000
SELECT ALL + - 18 + + 97 col0, 99 * - + 41 * - 7 + + + NULLIF ( - MAX( - 42 ), 22 ) AS col1
----
79
28455

skipif mysql # not compatible
query II rowsort label-9000
SELECT ALL + - 18 + + 97 col0, 99 * - + 41 * - 7 + + + NULLIF ( - MAX ( - 42 ), 22 ) AS col1
----
79
28455

query I rowsort
SELECT - 40 * - 14 * + + 95
----
53200

query I rowsort
SELECT + 84 + 16 * - + 25 * - + 75
----
30084

query I rowsort
SELECT ALL + + 39 - - 74 col1
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-9004
SELECT + 7 - - COUNT( * ) AS col0, + 73
----
8
73

skipif mysql # not compatible
query II rowsort label-9004
SELECT + 7 - - COUNT ( * ) AS col0, + 73
----
8
73

query I rowsort
SELECT + - 23 - + 0 AS col0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9006
SELECT + - 43 DIV 15 + - 12
----
-14

skipif mysql # not compatible
query I rowsort label-9006
SELECT + - 43 / 15 + - 12
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ALL + 42 * MIN( - 72 )
----
-3024

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL + 42 * MIN ( - 72 )
----
-3024

query I rowsort
SELECT 89 * - 27 - - 90 AS col0
----
-2313

query I rowsort
SELECT - 40 * + 62 AS col0
----
-2480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9010
SELECT ALL + 90 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL + 90 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 9, + 10 ) * + 67 + + + 66 col1
----
-537

query I rowsort
SELECT ALL - 17 * - 18 AS col2
----
306

query I rowsort
SELECT - 56 * - 12 * 23 + 15 + + + 53 AS col1
----
15524

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9014
SELECT DISTINCT - CASE + CAST( + 4 AS DECIMAL ) WHEN - 45 + + 88 THEN NULL WHEN 26 THEN + 97 + + 57 END * + 6 + - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT - CASE + CAST ( + 4 AS REAL ) WHEN - 45 + + 88 THEN NULL WHEN 26 THEN + 97 + + 57 END * + 6 + - + 33
----
NULL

query I rowsort
SELECT - 45 + + 72 * + 75 col2
----
5355

onlyif mysql # aggregate syntax: 
query II rowsort label-9016
SELECT COALESCE ( + - 45, 82 ) AS col1, - COUNT( * ) + - 92
----
-45
-93

skipif mysql # not compatible
query II rowsort label-9016
SELECT COALESCE ( + - 45, 82 ) AS col1, - COUNT ( * ) + - 92
----
-45
-93

query I rowsort
SELECT - 74 + 79 AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9018
SELECT ALL - CASE + 52 WHEN + ( + 65 ) + - + 57 + 35 DIV - NULLIF ( + 51, + 8 * - 16 ) * + 31 THEN NULL ELSE + + 17 END * + 0 * 89 * - 80 DIV + 66 + CASE ( - 50 ) WHEN - 63 * - 62 THEN NULL WHEN - - SUM( COALESCE ( 97, - 50 ) ) THEN NULL ELSE 3 + - COUNT( * ) END + - + 22 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL - CASE + 52 WHEN + ( + 65 ) + - + 57 + 35 / - NULLIF ( + 51, + 8 * - 16 ) * + 31 THEN NULL ELSE + + 17 END * + 0 * 89 * - 80 / + 66 + CASE ( - 50 ) WHEN - 63 * - 62 THEN NULL WHEN - - SUM ( COALESCE ( 97, - 50 ) ) THEN NULL ELSE 3 + - COUNT ( * ) END + - + 22 AS col0
----
-20

query I rowsort
SELECT ALL 90 * + + 80 AS col1
----
7200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9020
SELECT ALL - CAST( - - 28 AS SIGNED ) * - 56 + + 76 + + 57 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL - CAST ( - - 28 AS INTEGER ) * - 56 + + 76 + + 57 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9021
SELECT - + 13, 57 * - 18 + MIN( DISTINCT + 16 ) AS col2
----
-13
-1010

skipif mysql # not compatible
query II rowsort label-9021
SELECT - + 13, 57 * - 18 + MIN ( DISTINCT + 16 ) AS col2
----
-13
-1010

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL 41 - + COUNT( * ) * + 54 + 71 * + 81
----
5738

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL 41 - + COUNT ( * ) * + 54 + 71 * + 81
----
5738

query I rowsort
SELECT + + 4 * 44
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9024
SELECT ALL 85 * - + CASE 0 WHEN - 33 * + 72 * - SUM( - + 6 ) * + 9 * 8 + + 75 + - CAST( NULL AS SIGNED ) * 89 THEN ( + 64 ) + - + 33 END + + COUNT( * ) - 18 + 3 * + MAX( DISTINCT 84 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL 85 * - + CASE 0 WHEN - 33 * + 72 * - SUM ( - + 6 ) * + 9 * 8 + + 75 + - CAST ( NULL AS INTEGER ) * 89 THEN ( + 64 ) + - + 33 END + + COUNT ( * ) - 18 + 3 * + MAX ( DISTINCT 84 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9025
SELECT - 53 AS col0, 9 * + - COUNT( * ) * + 69 + + - CASE - + 5 WHEN - 70 THEN - 84 / + COUNT( * ) + + 37 WHEN - - 84 * 92 + 54 THEN - 37 + 48 END + - COUNT( * )
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-9025
SELECT - 53 AS col0, 9 * + - COUNT ( * ) * + 69 + + - CASE - + 5 WHEN - 70 THEN - 84 / + COUNT ( * ) + + 37 WHEN - - 84 * 92 + 54 THEN - 37 + 48 END + - COUNT ( * )
----
-53
NULL

query I rowsort
SELECT + 38 + NULLIF ( NULLIF ( - 20, + 20 * - 48 * + 53 * + 38 ), + - 13 - + 85 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9027
SELECT ALL + 7 - + 87 - + 99 * MAX( ALL 32 ) * + CAST( - COALESCE ( + - 55, + 76 * MIN( DISTINCT 4 ) / - 18 + + 7 ) AS SIGNED ) * 94 + - 56
----
-16378696

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL + 7 - + 87 - + 99 * MAX ( ALL 32 ) * + CAST ( - COALESCE ( + - 55, + 76 * MIN ( DISTINCT 4 ) / - 18 + + 7 ) AS INTEGER ) * 94 + - 56
----
-16378696

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT + 82 * CASE 32 WHEN - - 49 THEN NULL WHEN 58 * + + 29 THEN 49 * + COUNT( * ) * - 94 + + 92 WHEN - ( + 18 ) * + - 63 + + + 49 THEN NULL END * - + 2 / - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT + 82 * CASE 32 WHEN - - 49 THEN NULL WHEN 58 * + + 29 THEN 49 * + COUNT ( * ) * - 94 + + 92 WHEN - ( + 18 ) * + - 63 + + + 49 THEN NULL END * - + 2 / - 36
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9029
SELECT + 52 + - NULLIF ( - 24, + 81 + + CAST( NULL AS SIGNED ) + - 75 * + + 81 + + - 55 * + 74 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-9029
SELECT + 52 + - NULLIF ( - 24, + 81 + + CAST ( NULL AS INTEGER ) + - 75 * + + 81 + + - 55 * + 74 ) AS col2
----
76

query II rowsort
SELECT + 53 col0, 71 AS col1
----
53
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9031
SELECT DISTINCT - 43 AS col2, 81 + COUNT( * ) + 70 DIV + - 52 + - + 84
----
-43
-3

skipif mysql # not compatible
query II rowsort label-9031
SELECT DISTINCT - 43 AS col2, 81 + COUNT ( * ) + 70 / + - 52 + - + 84
----
-43
-3

query I rowsort
SELECT + - 77 + 83 - + 12 + - ( + 81 )
----
-87

query I rowsort
SELECT - NULLIF ( 96, + 31 * - 43 )
----
-96

query I rowsort
SELECT + ( + 82 ) + 71
----
153

query I rowsort
SELECT + 59 * + + 47 AS col0
----
2773

query I rowsort
SELECT + 98 * + 49
----
4802

query I rowsort
SELECT - 68 + - 53
----
-121

query I rowsort
SELECT ALL - 31 * + 88 * + + 94
----
-256432

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT + NULLIF ( 45, - - ( - ( + COALESCE ( - + 65, - 68, COUNT( * ) + 56, + - CASE - - 47 WHEN - + 76 - 73 - - + 78 / AVG ( 97 ) * + 36 * COUNT( * ) * + 4 * 8 * - - 30 THEN NULL WHEN 21 THEN + + 12 - 62 + 34 + - ( 78 ) * - 2 ELSE ( MIN( ALL - 46 ) ) END ) ) ) * + 15 )
----
45

skipif mysql # not compatible
query I rowsort label-9039
SELECT + NULLIF ( 45, - - ( - ( + COALESCE ( - + 65, - 68, COUNT ( * ) + 56, + - CASE - - 47 WHEN - + 76 - 73 - - + 78 / AVG ( 97 ) * + 36 * COUNT ( * ) * + 4 * 8 * - - 30 THEN NULL WHEN 21 THEN + + 12 - 62 + 34 + - ( 78 ) * - 2 ELSE ( MIN ( ALL - 46 ) ) END ) ) ) * + 15 )
----
45

query I rowsort
SELECT 94 * 29 * 65 + - 53 + + 64 AS col1
----
177201

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9041
SELECT + CAST( + + 66 AS SIGNED ) DIV 42 col1
----
1

skipif mysql # not compatible
query I rowsort label-9041
SELECT + CAST ( + + 66 AS INTEGER ) / 42 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9042
SELECT ALL 52 / CAST( NULL AS SIGNED ) * - ( + + 42 ) + - - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL 52 / CAST ( NULL AS INTEGER ) * - ( + + 42 ) + - - 95
----
NULL

query I rowsort
SELECT DISTINCT 40 + 14 + - - 65 AS col0
----
119

query I rowsort
SELECT DISTINCT + 76 + + 60 + + 93 AS col2
----
229

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT ALL + CASE + + 49 WHEN 0 + 66 THEN 27 * 25 WHEN - - 44 * 10 THEN NULL WHEN - 4 THEN NULL END + 89 + COUNT( * ) * 26 * + 36 * - 60 - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL + CASE + + 49 WHEN 0 + 66 THEN 27 * 25 WHEN - - 44 * 10 THEN NULL WHEN - 4 THEN NULL END + 89 + COUNT ( * ) * 26 * + 36 * - 60 - + 51
----
NULL

query I rowsort
SELECT ALL - 31 + - 29
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9047
SELECT 32 * - CAST( NULL AS DECIMAL ) + - - ( + 57 ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-9047
SELECT 32 * - CAST ( NULL AS REAL ) + - - ( + 57 ) * - 5
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9048
SELECT ALL - 59 DIV + 9 AS col2, - 54 AS col1
----
-6
-54

skipif mysql # not compatible
query II rowsort label-9048
SELECT ALL - 59 / + 9 AS col2, - 54 AS col1
----
-6
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9049
SELECT DISTINCT NULLIF ( + 17, + 65 ) + - 93 * + + CAST( + ( - + 89 ) AS SIGNED )
----
8294

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT NULLIF ( + 17, + 65 ) + - 93 * + + CAST ( + ( - + 89 ) AS INTEGER )
----
8294

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT DISTINCT + 51 - - + 7 + + - 44 + + CASE - 67 WHEN - 36 + 33 - + 5 * 10 THEN - 94 * - 65 WHEN 84 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT + 51 - - + 7 + + - 44 + + CASE - 67 WHEN - 36 + 33 - + 5 * 10 THEN - 94 * - 65 WHEN 84 THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT 30 + - 81
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT 20 - - - SUM( DISTINCT - 60 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9052
SELECT 20 - - - SUM ( DISTINCT - 60 ) AS col2
----
80

query II rowsort
SELECT ALL + - 97 - + 89, + 64 AS col0
----
-186
64

query I rowsort
SELECT + 80 * + 47 * + - 3 col2
----
-11280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9055
SELECT ALL + CAST( + 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL + CAST ( + 1 AS INTEGER )
----
1

query I rowsort
SELECT DISTINCT NULLIF ( - 42, + + 29 ) col2
----
-42

query I rowsort
SELECT 9 + - 16
----
-7

query I rowsort
SELECT ALL + 60 * + - 73
----
-4380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9059
SELECT + 96 * - CASE AVG ( ALL - 19 ) WHEN + 28 THEN - 85 + + 82 WHEN + + ( - - 8 ) - + 52 THEN NULL END + + MIN( ALL + 17 ) + CAST( NULL AS SIGNED ) - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9059
SELECT + 96 * - CASE AVG ( ALL - 19 ) WHEN + 28 THEN - 85 + + 82 WHEN + + ( - - 8 ) - + 52 THEN NULL END + + MIN ( ALL + 17 ) + CAST ( NULL AS INTEGER ) - + 11
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9060
SELECT + 5 - 85 DIV + - 95
----
5

skipif mysql # not compatible
query I rowsort label-9060
SELECT + 5 - 85 / + - 95
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9061
SELECT ALL 87 + - COUNT( * ) * - 38 col2, - 80 - + SUM( - 68 ) * + 70 * - - 3 * + 0 + + 26 * - - 85 col1
----
125
2130

skipif mysql # not compatible
query II rowsort label-9061
SELECT ALL 87 + - COUNT ( * ) * - 38 col2, - 80 - + SUM ( - 68 ) * + 70 * - - 3 * + 0 + + 26 * - - 85 col1
----
125
2130

query I rowsort
SELECT 6 - - 39 AS col0
----
45

query I rowsort
SELECT ALL ( - - 64 ) + 27 + + CASE - 98 WHEN - 54 * + 36 / + - 12 THEN - 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL - COUNT( ALL + - ( + + 27 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL - COUNT ( ALL + - ( + + 27 ) )
----
-1

query I rowsort
SELECT 25 + - 57 * + - 88
----
5041

onlyif mysql # aggregate syntax: 
query II rowsort label-9066
SELECT ALL MAX( + 59 ) + 97 AS col0, 87 AS col2
----
156
87

skipif mysql # not compatible
query II rowsort label-9066
SELECT ALL MAX ( + 59 ) + 97 AS col0, 87 AS col2
----
156
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9067
SELECT - 47 DIV - + 54 + COUNT( + - 80 ) DIV - ( - 43 ) * + - 51 * - 34 * - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9067
SELECT - 47 / - + 54 + COUNT ( + - 80 ) / - ( - 43 ) * + - 51 * - 34 * - 82 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9068
SELECT - 60 * - - COUNT( * ) - - CAST( - 82 AS SIGNED ) + - - 83 + - ( 49 )
----
-108

skipif mysql # not compatible
query I rowsort label-9068
SELECT - 60 * - - COUNT ( * ) - - CAST ( - 82 AS INTEGER ) + - - 83 + - ( 49 )
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT COUNT( * ) + - + MAX( DISTINCT + + 49 )
----
-48

skipif mysql # not compatible
query I rowsort label-9069
SELECT COUNT ( * ) + - + MAX ( DISTINCT + + 49 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT 63 * - COUNT( DISTINCT + + 42 ) - - SUM( ALL + 87 ) * - - 84
----
7245

skipif mysql # not compatible
query I rowsort label-9070
SELECT 63 * - COUNT ( DISTINCT + + 42 ) - - SUM ( ALL + 87 ) * - - 84
----
7245

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL COUNT( * ) + + 98 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL COUNT ( * ) + + 98 AS col2
----
99

query I rowsort
SELECT 31 * 90 AS col1
----
2790

onlyif mysql # DIV for integer division: 
query I rowsort label-9073
SELECT ALL 15 * - 52 DIV ( 1 )
----
-780

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL 15 * - 52 / ( 1 )
----
-780

query I rowsort
SELECT ALL 73 - 70
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9075
SELECT - COALESCE ( + + 48, - - 78 DIV 37 + - COUNT( * ), 76 ) * + + 14 + + 88 AS col2
----
-584

skipif mysql # not compatible
query I rowsort label-9075
SELECT - COALESCE ( + + 48, - - 78 / 37 + - COUNT ( * ), 76 ) * + + 14 + + 88 AS col2
----
-584

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT + MIN( DISTINCT 41 ) col2
----
41

skipif mysql # not compatible
query I rowsort label-9076
SELECT + MIN ( DISTINCT 41 ) col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT 56 * + MIN( - + 56 ) * 47 + 39 + 3
----
-147350

skipif mysql # not compatible
query I rowsort label-9077
SELECT 56 * + MIN ( - + 56 ) * 47 + 39 + 3
----
-147350

query I rowsort
SELECT ALL 79 * + 61
----
4819

query I rowsort
SELECT DISTINCT 72 - + 40 + - 44 AS col0
----
-12

query I rowsort
SELECT - CASE - COALESCE ( + 80, - 40 ) WHEN - 35 THEN NULL WHEN - 69 THEN + - 91 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9081
SELECT + 64 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-9081
SELECT + 64 / + 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT ALL - - 32 * COUNT( * ) - 87
----
-55

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL - - 32 * COUNT ( * ) - 87
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT DISTINCT + + 20 * + + COUNT( * ) col1
----
20

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT + + 20 * + + COUNT ( * ) col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT DISTINCT CASE - - COUNT( * ) WHEN + + 87 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT CASE - - COUNT ( * ) WHEN + + 87 THEN + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9085
SELECT + CASE + 99 WHEN - 66 / + 37 THEN NULL WHEN COALESCE ( - - 98, + 3 * 97 - 24 * - - 10 * 30 * + ( 9 ) + 57 + + 4 + + 93 - COUNT( * ) ) / - - CASE - COUNT( * ) WHEN + 30 * 4 THEN - CAST( 15 AS SIGNED ) WHEN + 36 * - 79 * 87 * + 45 THEN + COUNT( * ) ELSE + 63 + - + 56 END - - 14 THEN - 62 + 14 * 66 ELSE NULL END * 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT + CASE + 99 WHEN - 66 / + 37 THEN NULL WHEN COALESCE ( - - 98, + 3 * 97 - 24 * - - 10 * 30 * + ( 9 ) + 57 + + 4 + + 93 - COUNT ( * ) ) / - - CASE - COUNT ( * ) WHEN + 30 * 4 THEN - CAST ( 15 AS INTEGER ) WHEN + 36 * - 79 * 87 * + 45 THEN + COUNT ( * ) ELSE + 63 + - + 56 END - - 14 THEN - 62 + 14 * 66 ELSE NULL END * 17 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + ( 80 ) * - 9
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT + 36 + + 21 * + 84 * - + COUNT( * ) AS col0
----
-1728

skipif mysql # not compatible
query I rowsort label-9087
SELECT + 36 + + 21 * + 84 * - + COUNT ( * ) AS col0
----
-1728

query I rowsort
SELECT ALL + 89 + - 56
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9089
SELECT ALL - NULLIF ( MAX( NULLIF ( + CAST( - 29 AS SIGNED ), - 54 ) ), 98 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL - NULLIF ( MAX ( NULLIF ( + CAST ( - 29 AS INTEGER ), - 54 ) ), 98 ) AS col2
----
29

query I rowsort
SELECT 14 + + 6 + + 32 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT DISTINCT + 61 + + COUNT( * ) * + + 92
----
153

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT + 61 + + COUNT ( * ) * + + 92
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-9092
SELECT ALL + 39 + - + 6 - 29 + - 66 DIV + 38 - - + 10 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL + 39 + - + 6 - 29 + - 66 / + 38 - - + 10 AS col1
----
13

query I rowsort
SELECT - 3 + - 58
----
-61

query I rowsort
SELECT ALL + + 48 + + - 55
----
-7

query I rowsort
SELECT ALL 81 + - - 50 * - 52
----
-2519

query II rowsort
SELECT ALL 79 AS col0, + 77 AS col2
----
79
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL + COUNT( * ) + + + 26 * - NULLIF ( NULLIF ( 44, + - 64 - + 48 ), - MIN( DISTINCT ( + ( 49 ) ) ) * - + COUNT( * ) + COALESCE ( COUNT( * ), - 44 * MIN( ALL + 12 ) - - COUNT( * ) ) + 17 ) - - 84
----
-1059

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL + COUNT ( * ) + + + 26 * - NULLIF ( NULLIF ( 44, + - 64 - + 48 ), - MIN ( DISTINCT ( + ( 49 ) ) ) * - + COUNT ( * ) + COALESCE ( COUNT ( * ), - 44 * MIN ( ALL + 12 ) - - COUNT ( * ) ) + 17 ) - - 84
----
-1059

onlyif mysql # aggregate syntax: 
query II rowsort label-9098
SELECT 16 col2, - COUNT( ALL 19 ) + + 15
----
16
14

skipif mysql # not compatible
query II rowsort label-9098
SELECT 16 col2, - COUNT ( ALL 19 ) + + 15
----
16
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9099
SELECT - 33 DIV 45 * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9099
SELECT - 33 / 45 * + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9100
SELECT ALL - COUNT( DISTINCT - - 21 ) * + 98 * CAST( NULL AS SIGNED ) AS col0, + 56 + - SUM( ALL 38 ) AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-9100
SELECT ALL - COUNT ( DISTINCT - - 21 ) * + 98 * CAST ( NULL AS INTEGER ) AS col0, + 56 + - SUM ( ALL 38 ) AS col2
----
NULL
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT ALL - 2 * CAST( NULL AS SIGNED ) + 91 - + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL - 2 * CAST ( NULL AS INTEGER ) + 91 - + + 15
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9102
SELECT NULLIF ( - - SUM( ALL 19 ), - 22 ), 2 * + - 41 * - 61 + - 53 * ( + - 13 ) * 16 - + 47 AS col2
----
19
15979

skipif mysql # not compatible
query II rowsort label-9102
SELECT NULLIF ( - - SUM ( ALL 19 ), - 22 ), 2 * + - 41 * - 61 + - 53 * ( + - 13 ) * 16 - + 47 AS col2
----
19
15979

query I rowsort
SELECT DISTINCT + 58 * 4 - 75 AS col2
----
157

onlyif mysql # aggregate syntax: 
query II rowsort label-9104
SELECT ALL + 5 AS col0, + SUM( + - 85 ) * - 10 + - COUNT( * )
----
5
849

skipif mysql # not compatible
query II rowsort label-9104
SELECT ALL + 5 AS col0, + SUM ( + - 85 ) * - 10 + - COUNT ( * )
----
5
849

query I rowsort
SELECT + 79 * + 65 AS col0
----
5135

query I rowsort
SELECT ALL - ( + 35 ) * + 18 AS col2
----
-630

query II rowsort
SELECT ALL + 21 col2, - 3
----
21
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT CASE + + MAX( 87 ) WHEN COUNT( * ) + 91 THEN + 23 * 9 + 3 + + 87 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9108
SELECT CASE + + MAX ( 87 ) WHEN COUNT ( * ) + 91 THEN + 23 * 9 + 3 + + 87 END AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( - - 81, + - 5 ) AS col2
----
81

query II rowsort
SELECT ALL + 95, - 34 AS col0
----
95
-34

query I rowsort
SELECT - 44 - + 13 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT + 49 * + + 56 * - MAX( DISTINCT 78 )
----
-214032

skipif mysql # not compatible
query I rowsort label-9112
SELECT + 49 * + + 56 * - MAX ( DISTINCT 78 )
----
-214032

onlyif mysql # DIV for integer division: 
query I rowsort label-9113
SELECT - 20 - 69 * 16 DIV - 98
----
-9

skipif mysql # not compatible
query I rowsort label-9113
SELECT - 20 - 69 * 16 / - 98
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT CASE ( + - 77 ) WHEN - - MIN( DISTINCT - 94 ) THEN 66 / + 4 + - 89 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT CASE ( + - 77 ) WHEN - - MIN ( DISTINCT - 94 ) THEN 66 / + 4 + - 89 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 23 * - 67 + + + 24 AS col0
----
-1517

query I rowsort
SELECT ALL 8 * 52 AS col1
----
416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9117
SELECT + CAST( NULL AS SIGNED ) + - - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9117
SELECT + CAST ( NULL AS INTEGER ) + - - 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT ALL MAX( DISTINCT - 14 ) * 7 + - 20 AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL MAX ( DISTINCT - 14 ) * 7 + - 20 AS col1
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL + - MIN( DISTINCT + + 88 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL + - MIN ( DISTINCT + + 88 ) AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9120
SELECT ALL CASE 9 WHEN CASE + - 32 WHEN 7 * + CAST( NULL AS SIGNED ) + + 81 * 53 - 90 * + 30 * + - 52 THEN NULL WHEN - - ( + COUNT( * ) ) * - 65 THEN NULL WHEN - + 1 + - NULLIF ( - CAST( - CAST( 58 AS SIGNED ) AS SIGNED ), - - 1 ) + - ( - COUNT( * ) ) - + 30 THEN - COUNT( * ) END + - 94 + + 62 * - ( CAST( NULL AS SIGNED ) ) THEN 36 * - + 43 + + 67 END * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL CASE 9 WHEN CASE + - 32 WHEN 7 * + CAST ( NULL AS INTEGER ) + + 81 * 53 - 90 * + 30 * + - 52 THEN NULL WHEN - - ( + COUNT ( * ) ) * - 65 THEN NULL WHEN - + 1 + - NULLIF ( - CAST ( - CAST ( 58 AS INTEGER ) AS INTEGER ), - - 1 ) + - ( - COUNT ( * ) ) - + 30 THEN - COUNT ( * ) END + - 94 + + 62 * - ( CAST ( NULL AS INTEGER ) ) THEN 36 * - + 43 + + 67 END * 76
----
NULL

query I rowsort
SELECT + 62 - - - 72
----
-10

query I rowsort
SELECT ALL ( + 46 ) * + 58 AS col1
----
2668

query I rowsort
SELECT + 75 - - ( - 6 )
----
69

query I rowsort
SELECT DISTINCT - 41 * + - 22 * - 17 * - - 42 + 48 - - - 98
----
-644078

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9125
SELECT + - CAST( NULL AS SIGNED ) AS col2, + 75
----
NULL
75

skipif mysql # not compatible
query II rowsort label-9125
SELECT + - CAST ( NULL AS INTEGER ) AS col2, + 75
----
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT ALL MIN( ALL - 41 ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL MIN ( ALL - 41 ) col2
----
-41

query II rowsort
SELECT - 78 AS col0, - CASE + 72 WHEN - ( 82 ) * 11 THEN + + ( + ( + 27 ) ) + - AVG ( ALL + 44 ) END * - 79
----
-78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT - - 65 - - + 85 * + + 5 * MAX( DISTINCT 91 ) + - ( 87 ) - - - 80 AS col2
----
38573

skipif mysql # not compatible
query I rowsort label-9128
SELECT - - 65 - - + 85 * + + 5 * MAX ( DISTINCT 91 ) + - ( 87 ) - - - 80 AS col2
----
38573

onlyif mysql # aggregate syntax: 
query II rowsort label-9129
SELECT - 29, + 10 * NULLIF ( + COUNT( ALL 94 ), - COUNT( * ) ) - - ( 35 ) AS col0
----
-29
45

skipif mysql # not compatible
query II rowsort label-9129
SELECT - 29, + 10 * NULLIF ( + COUNT ( ALL 94 ), - COUNT ( * ) ) - - ( 35 ) AS col0
----
-29
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9130
SELECT - COUNT( * ) DIV MIN( 29 ) * NULLIF ( + COUNT( * ), - 22 * - 78 ) + + 46 + + - 53 + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-9130
SELECT - COUNT ( * ) / MIN ( 29 ) * NULLIF ( + COUNT ( * ), - 22 * - 78 ) + + 46 + + - 53 + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL + - 13 + COUNT( * ) * 19 col1
----
6

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL + - 13 + COUNT ( * ) * 19 col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT DISTINCT ( + CAST( - 0 AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT ( + CAST ( - 0 AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT + - 63 * - COALESCE ( - - 56, + COALESCE ( - - COUNT( * ), - COUNT( * ) * + COUNT( * ), - + SUM( ALL - - 7 ) ) )
----
3528

skipif mysql # not compatible
query I rowsort label-9133
SELECT + - 63 * - COALESCE ( - - 56, + COALESCE ( - - COUNT ( * ), - COUNT ( * ) * + COUNT ( * ), - + SUM ( ALL - - 7 ) ) )
----
3528

query I rowsort
SELECT - 91 + + + 96
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9135
SELECT ALL COUNT( + 76 ) DIV - COUNT( * ) + 5 + - 14 col0
----
-10

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL COUNT ( + 76 ) / - COUNT ( * ) + 5 + - 14 col0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9136
SELECT - + 88 DIV 76 + + + MAX( DISTINCT - 29 ) + + 15 * 82 * + - 20 * + SUM( - 62 ) * + + 76
----
115915170

skipif mysql # not compatible
query I rowsort label-9136
SELECT - + 88 / 76 + + + MAX ( DISTINCT - 29 ) + + 15 * 82 * + - 20 * + SUM ( - 62 ) * + + 76
----
115915170

onlyif mysql # aggregate syntax: 
query II rowsort label-9137
SELECT ALL - COUNT( * ) * - NULLIF ( - MIN( 92 ), - COUNT( ALL - 19 ) + - 76 * + 27 + - - ( + 98 ) ) * + 43 AS col2, + COUNT( * ) * - COUNT( * ) * COUNT( * )
----
-3956
-1

skipif mysql # not compatible
query II rowsort label-9137
SELECT ALL - COUNT ( * ) * - NULLIF ( - MIN ( 92 ), - COUNT ( ALL - 19 ) + - 76 * + 27 + - - ( + 98 ) ) * + 43 AS col2, + COUNT ( * ) * - COUNT ( * ) * COUNT ( * )
----
-3956
-1

query II rowsort
SELECT DISTINCT - 80, - 52 AS col1
----
-80
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT + 57 + - + 63 * ( + ( + COUNT( * ) ) )
----
-6

skipif mysql # not compatible
query I rowsort label-9139
SELECT + 57 + - + 63 * ( + ( + COUNT ( * ) ) )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9140
SELECT - 63 * - 94 col2, NULLIF ( + + 4, - COUNT( * ) ) * + 62 * + 24 AS col0
----
5922
5952

skipif mysql # not compatible
query II rowsort label-9140
SELECT - 63 * - 94 col2, NULLIF ( + + 4, - COUNT ( * ) ) * + 62 * + 24 AS col0
----
5922
5952

query I rowsort
SELECT + 34 + - 50 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT ALL - 72 * - + 47 * + 80 * + SUM( ALL + + ( + 9 ) )
----
2436480

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL - 72 * - + 47 * + 80 * + SUM ( ALL + + ( + 9 ) )
----
2436480

query I rowsort
SELECT - 10 + 56 - - 6 AS col1
----
52

query I rowsort
SELECT - 27 * 12
----
-324

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9145
SELECT DISTINCT ( - + 61 ) AS col0, 18 + - COALESCE ( + CAST( - + 33 AS SIGNED ), 59, - + NULLIF ( + + 9, 8 ) )
----
-61
51

skipif mysql # not compatible
query II rowsort label-9145
SELECT DISTINCT ( - + 61 ) AS col0, 18 + - COALESCE ( + CAST ( - + 33 AS INTEGER ), 59, - + NULLIF ( + + 9, 8 ) )
----
-61
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT ALL SUM( - + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL SUM ( - + 4 )
----
-4

query I rowsort
SELECT DISTINCT + 82 - + - 27 AS col1
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9148
SELECT ALL - 28 DIV + + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL - 28 / + + COUNT ( * )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9149
SELECT DISTINCT 26 * 22 * + 80 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT 26 * 22 * + 80 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 95 * + + 58 + + + ( 11 ) AS col0
----
-5499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9151
SELECT - SUM( + + 67 ) DIV + 42 * - - ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9151
SELECT - SUM ( + + 67 ) / + 42 * - - ( - COUNT ( * ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9152
SELECT 37 DIV + ( - 61 ) * - ( 25 ) + - 87 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9152
SELECT 37 / + ( - 61 ) * - ( 25 ) + - 87 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT - SUM( 36 ) + + MAX( ALL + - 74 )
----
-110

skipif mysql # not compatible
query I rowsort label-9153
SELECT - SUM ( 36 ) + + MAX ( ALL + - 74 )
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9154
SELECT + 19 DIV - 78 * - 94 * - COALESCE ( - 68, COUNT( * ) ) + + 77
----
77

skipif mysql # not compatible
query I rowsort label-9154
SELECT + 19 / - 78 * - 94 * - COALESCE ( - 68, COUNT ( * ) ) + + 77
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9155
SELECT - COUNT( * ) DIV - + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9155
SELECT - COUNT ( * ) / - + ( + COUNT ( * ) )
----
1

query I rowsort
SELECT + 82 * 84 + + - ( + 44 ) AS col0
----
6844

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9157
SELECT ALL + CAST( 65 AS SIGNED ) DIV 51 col2
----
1

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL + CAST ( 65 AS INTEGER ) / 51 col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9158
SELECT + + 94 DIV + 71 col1, - 10, 97 + - COUNT( * ) * 78 AS col1
----
1
-10
19

skipif mysql # not compatible
query III rowsort label-9158
SELECT + + 94 / + 71 col1, - 10, 97 + - COUNT ( * ) * 78 AS col1
----
1
-10
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9159
SELECT DISTINCT - NULLIF ( 62, + - 27 * - 81 * - NULLIF ( - 50, + COUNT( * ) ) ) DIV - COUNT( * ) + + 70
----
132

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT - NULLIF ( 62, + - 27 * - 81 * - NULLIF ( - 50, + COUNT ( * ) ) ) / - COUNT ( * ) + + 70
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT + 69 * + COUNT( ALL ( + 20 ) ) + - - 35 - - 14 AS col0
----
118

skipif mysql # not compatible
query I rowsort label-9160
SELECT + 69 * + COUNT ( ALL ( + 20 ) ) + - - 35 - - 14 AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT + COUNT( - - NULLIF ( 97, + 65 + 95 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9161
SELECT + COUNT ( - - NULLIF ( 97, + 65 + 95 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9162
SELECT - 21 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT - 21 + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT + 5 * + - ( - COUNT( * ) ) col2
----
5

skipif mysql # not compatible
query I rowsort label-9163
SELECT + 5 * + - ( - COUNT ( * ) ) col2
----
5

query I rowsort
SELECT DISTINCT + ( + 91 ) * - 15
----
-1365

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL 92 + - ( - ( + - COUNT( * ) ) ) - ( + 93 )
----
-2

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL 92 + - ( - ( + - COUNT ( * ) ) ) - ( + 93 )
----
-2

query I rowsort
SELECT ( + - 64 ) + - - 4 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT - + COALESCE ( 27, + + 4 + + 16 + + + COUNT( * ), + 18 ) col1
----
-27

skipif mysql # not compatible
query I rowsort label-9167
SELECT - + COALESCE ( 27, + + 4 + + 16 + + + COUNT ( * ), + 18 ) col1
----
-27

query II rowsort
SELECT DISTINCT 50 * - - 35 AS col0, - 85
----
1750
-85

query I rowsort
SELECT ALL 54 + + 96 col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT ALL MAX( + 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL MAX ( + 70 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT - + 35 * + 10 * - + 16 - + 31 + + ( - - 82 ) * 50 + 77 * + COUNT( * ) AS col0
----
9746

skipif mysql # not compatible
query I rowsort label-9171
SELECT - + 35 * + 10 * - + 16 - + 31 + + ( - - 82 ) * 50 + 77 * + COUNT ( * ) AS col0
----
9746

onlyif mysql # DIV for integer division: 
query II rowsort label-9172
SELECT 64 DIV 70, 19 AS col2
----
0
19

skipif mysql # not compatible
query II rowsort label-9172
SELECT 64 / 70, 19 AS col2
----
0
19

query I rowsort
SELECT 44 * + - 77 AS col2
----
-3388

query I rowsort
SELECT 50 + 80
----
130

query I rowsort
SELECT ( + 2 ) * - ( + 20 ) AS col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 52 * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 52 * - 90
----
NULL

query II rowsort
SELECT ALL 34 col2, + 78
----
34
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9178
SELECT CAST( NULL AS SIGNED ) * ( NULLIF ( + CASE 84 WHEN - 89 THEN - COUNT( * ) + 93 WHEN + 38 - ( + + 0 ) THEN NULL END, SUM( DISTINCT 97 ) + - 60 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9178
SELECT CAST ( NULL AS INTEGER ) * ( NULLIF ( + CASE 84 WHEN - 89 THEN - COUNT ( * ) + 93 WHEN + 38 - ( + + 0 ) THEN NULL END, SUM ( DISTINCT 97 ) + - 60 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 96 * - 32
----
-3072

query I rowsort
SELECT ALL - 41 * + - 64 AS col2
----
2624

query II rowsort
SELECT ALL 45 AS col0, + 79 AS col0
----
45
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9182
SELECT DISTINCT CASE + 28 WHEN COUNT( ALL - 89 ) THEN - 31 WHEN + 27 * - MIN( DISTINCT + + 17 ) + 8 * COUNT( * ) * + - 61 * - + MAX( - + 70 ) + 53 THEN + + COUNT( * ) + + 7 ELSE NULL END * - CAST( - 65 AS SIGNED ) * - + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT CASE + 28 WHEN COUNT ( ALL - 89 ) THEN - 31 WHEN + 27 * - MIN ( DISTINCT + + 17 ) + 8 * COUNT ( * ) * + - 61 * - + MAX ( - + 70 ) + 53 THEN + + COUNT ( * ) + + 7 ELSE NULL END * - CAST ( - 65 AS INTEGER ) * - + 13 AS col2
----
NULL

query I rowsort
SELECT 75 + 36
----
111

query I rowsort
SELECT NULLIF ( - + 34, - 63 ) * + - 54
----
1836

query II rowsort
SELECT 6 * 40 + 55 AS col1, - 85
----
295
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9186
SELECT + 13 AS col2, + 5 * + ( - - 35 ) * - + 13 + - 14 DIV - ( - COUNT( * ) )
----
13
-2289

skipif mysql # not compatible
query II rowsort label-9186
SELECT + 13 AS col2, + 5 * + ( - - 35 ) * - + 13 + - 14 / - ( - COUNT ( * ) )
----
13
-2289

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT 59 * + COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9187
SELECT 59 * + COUNT ( * ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9188
SELECT ALL - COALESCE ( COALESCE ( 49, - COUNT( * ), + - 28 - + CAST( NULL AS SIGNED ) ), - + 70 )
----
-49

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL - COALESCE ( COALESCE ( 49, - COUNT ( * ), + - 28 - + CAST ( NULL AS INTEGER ) ), - + 70 )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9189
SELECT ALL 55 + + - NULLIF ( 11, - SUM( ALL + 12 ) ) * 46 AS col0, + 65
----
-451
65

skipif mysql # not compatible
query II rowsort label-9189
SELECT ALL 55 + + - NULLIF ( 11, - SUM ( ALL + 12 ) ) * 46 AS col0, + 65
----
-451
65

onlyif mysql # aggregate syntax: 
query II rowsort label-9190
SELECT 16, 4 * + - COUNT( * ) + 77 * 83 * 51 AS col0
----
16
325937

skipif mysql # not compatible
query II rowsort label-9190
SELECT 16, 4 * + - COUNT ( * ) + 77 * 83 * 51 AS col0
----
16
325937

query I rowsort
SELECT ALL + 59 + + 73 + + + 5 + - - 56 * + - 7 - + + ( CASE - - ( + 92 ) WHEN + AVG ( + 80 ) THEN 67 END )
----
NULL

query I rowsort
SELECT DISTINCT - ( - 97 ) AS col2
----
97

query II rowsort
SELECT DISTINCT - 2 AS col0, 89 + - 25 col0
----
-2
64

query I rowsort
SELECT ALL - 32 * - + 74 * + 59
----
139712

query II rowsort
SELECT DISTINCT - 81, 21 AS col2
----
-81
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL - - MIN( ALL - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL - - MIN ( ALL - 42 )
----
-42

query II rowsort
SELECT 20 col1, 35 + + 64 AS col0
----
20
99

query I rowsort
SELECT ALL + - 41 * + 32 AS col1
----
-1312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9199
SELECT ALL - 83 - 48 DIV COALESCE ( - 88, + 80 * 99 - - 59 * - 4 DIV + 61 + CAST( NULL AS SIGNED ) + + + 63 + 82 DIV + + COUNT( * ) * - 1 * + 2 )
----
-83

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL - 83 - 48 / COALESCE ( - 88, + 80 * 99 - - 59 * - 4 / + 61 + CAST ( NULL AS INTEGER ) + + + 63 + 82 / + + COUNT ( * ) * - 1 * + 2 )
----
-83

query II rowsort
SELECT - 82 * + ( 78 ) * - 13 AS col1, 64
----
83148
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT 48 + - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-9201
SELECT 48 + - COUNT ( * )
----
47

query II rowsort
SELECT 57 AS col2, 62 AS col1
----
57
62

query II rowsort
SELECT - 59 AS col1, 63
----
-59
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT DISTINCT COUNT( ALL - 24 ) - 10
----
-9

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT COUNT ( ALL - 24 ) - 10
----
-9

query I rowsort
SELECT DISTINCT 16 * 36
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT DISTINCT SUM( - + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT SUM ( - + 74 )
----
-74

query I rowsort
SELECT ALL 51 * + 37
----
1887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9208
SELECT MIN( + 86 ) - - ( + + COUNT( * ) ), 51 * - 34 + - - 68 + - 23 * + 42 * + CAST( + 69 AS SIGNED ) + 13 DIV + 34 * - 64 - - 76 AS col1
----
87
-68244

skipif mysql # not compatible
query II rowsort label-9208
SELECT MIN ( + 86 ) - - ( + + COUNT ( * ) ), 51 * - 34 + - - 68 + - 23 * + 42 * + CAST ( + 69 AS INTEGER ) + 13 / + 34 * - 64 - - 76 AS col1
----
87
-68244

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9209
SELECT CAST( 38 AS SIGNED ) DIV - 20 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9209
SELECT CAST ( 38 AS INTEGER ) / - 20 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT NULLIF ( + 93, - COALESCE ( + 54, 55 * 85 + - 81 - - 52 + CASE + 95 WHEN + 74 THEN - 1 + + COUNT( * ) END * - + ( + + COALESCE ( + 70, - 61 + - 15 ) ) + 57 + + 26 + 80 + + 35 * 66 * + + 83 ) ) + - SUM( + - 58 ) AS col2
----
151

skipif mysql # not compatible
query I rowsort label-9210
SELECT NULLIF ( + 93, - COALESCE ( + 54, 55 * 85 + - 81 - - 52 + CASE + 95 WHEN + 74 THEN - 1 + + COUNT ( * ) END * - + ( + + COALESCE ( + 70, - 61 + - 15 ) ) + 57 + + 26 + 80 + + 35 * 66 * + + 83 ) ) + - SUM ( + - 58 ) AS col2
----
151

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9211
SELECT DISTINCT 2 DIV - - CAST( + - 2 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT 2 / - - CAST ( + - 2 AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 14 + - + 86 * 2 * + + 48 + - 99
----
-8341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9213
SELECT 84 + 86 - - + 34 - 52 * - NULLIF ( + CAST( - 78 AS SIGNED ), 43 - + + COUNT( * ) + 85 )
----
-3852

skipif mysql # not compatible
query I rowsort label-9213
SELECT 84 + 86 - - + 34 - 52 * - NULLIF ( + CAST ( - 78 AS INTEGER ), 43 - + + COUNT ( * ) + 85 )
----
-3852

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT CASE + 95 WHEN + 27 / + + COUNT( * ) THEN NULL ELSE + 28 END
----
28

skipif mysql # not compatible
query I rowsort label-9214
SELECT CASE + 95 WHEN + 27 / + + COUNT ( * ) THEN NULL ELSE + 28 END
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9215
SELECT + 27 * - ( + COALESCE ( + 87, - ( + 83 ) ) ) * + 78 + COALESCE ( + 41, COUNT( * ), - 49 * 32 ) DIV + 48 + + - 28 * - - COUNT( * )
----
-183250

skipif mysql # not compatible
query I rowsort label-9215
SELECT + 27 * - ( + COALESCE ( + 87, - ( + 83 ) ) ) * + 78 + COALESCE ( + 41, COUNT ( * ), - 49 * 32 ) / + 48 + + - 28 * - - COUNT ( * )
----
-183250

query I rowsort
SELECT ALL + 97 * + + 11
----
1067

query I rowsort
SELECT ALL 31 * - 86 * + 18 + - - 73
----
-47915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9218
SELECT ( - 28 ) DIV + 53 + 96 + - - COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9218
SELECT ( - 28 ) / + 53 + 96 + - - COUNT ( * ) AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9219
SELECT COUNT( * ) * CASE - + 5 WHEN + 94 THEN - 3 * - 92 + 56 + - COUNT( * ) * 51 * + 81 WHEN + NULLIF ( - 34, + + COALESCE ( - 1, + 96 ) ) + - 8 + + 5 * AVG ( ALL 98 ) * - NULLIF ( + + 53, + 42 ) THEN - 18 * COALESCE ( + 85, + 75 * - 24 + - + ( - 5 ) ) * + - 13 * + 27 WHEN + CASE - ( - - ( ( - 63 ) ) ) WHEN ( 89 ) + 15 THEN NULL WHEN + NULLIF ( 83, 22 ) + - 24 * - 76 THEN + 52 WHEN - COUNT( * ) * - 0 + COUNT( * ) THEN NULL ELSE + MIN( 2 ) * 69 END + CAST( SUM( + 42 ) AS SIGNED ) THEN NULL ELSE NULL END / 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT COUNT ( * ) * CASE - + 5 WHEN + 94 THEN - 3 * - 92 + 56 + - COUNT ( * ) * 51 * + 81 WHEN + NULLIF ( - 34, + + COALESCE ( - 1, + 96 ) ) + - 8 + + 5 * AVG ( ALL 98 ) * - NULLIF ( + + 53, + 42 ) THEN - 18 * COALESCE ( + 85, + 75 * - 24 + - + ( - 5 ) ) * + - 13 * + 27 WHEN + CASE - ( - - ( ( - 63 ) ) ) WHEN ( 89 ) + 15 THEN NULL WHEN + NULLIF ( 83, 22 ) + - 24 * - 76 THEN + 52 WHEN - COUNT ( * ) * - 0 + COUNT ( * ) THEN NULL ELSE + MIN ( 2 ) * 69 END + CAST ( SUM ( + 42 ) AS INTEGER ) THEN NULL ELSE NULL END / 17 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9220
SELECT 67 * - CAST( NULL AS SIGNED ) + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT 67 * - CAST ( NULL AS INTEGER ) + 13 AS col1
----
NULL

query I rowsort
SELECT - AVG ( - + 53 ) + CASE 80 WHEN - ( 84 ) / + 12 * + ( 88 ) THEN - 96 + + + 13 END
----
NULL

query II rowsort
SELECT + - 90 + 34 AS col2, 18
----
-56
18

query I rowsort
SELECT + 11 * - 62 + 7 AS col0
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT - - NULLIF ( - + 62, + + MAX( DISTINCT - - 20 ) / 60 + 83 + + + COALESCE ( - + NULLIF ( 3, + 24 ), NULLIF ( + COUNT( DISTINCT + + 6 ), - 34 * 53 ) * - 17 ) ) * 71
----
-4402

skipif mysql # not compatible
query I rowsort label-9224
SELECT - - NULLIF ( - + 62, + + MAX ( DISTINCT - - 20 ) / 60 + 83 + + + COALESCE ( - + NULLIF ( 3, + 24 ), NULLIF ( + COUNT ( DISTINCT + + 6 ), - 34 * 53 ) * - 17 ) ) * 71
----
-4402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9225
SELECT - 18 * + 17 + 64 DIV - 66 - - MAX( ALL CAST( ( 58 ) AS SIGNED ) ) * 22 AS col2
----
970

skipif mysql # not compatible
query I rowsort label-9225
SELECT - 18 * + 17 + 64 / - 66 - - MAX ( ALL CAST ( ( 58 ) AS INTEGER ) ) * 22 AS col2
----
970

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT 76 * - + 12 + + COUNT( * ) * + 90 AS col0
----
-822

skipif mysql # not compatible
query I rowsort label-9226
SELECT 76 * - + 12 + + COUNT ( * ) * + 90 AS col0
----
-822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT ALL - CAST( + + 3 AS SIGNED ) * - + 95 * + 19 * - 47 col2
----
-254505

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL - CAST ( + + 3 AS INTEGER ) * - + 95 * + 19 * - 47 col2
----
-254505

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT - + 65 * 82 * COALESCE ( + 51, COUNT( * ) - 33 + - 66 ) * - 11 * - 64
----
-191368320

skipif mysql # not compatible
query I rowsort label-9228
SELECT - + 65 * 82 * COALESCE ( + 51, COUNT ( * ) - 33 + - 66 ) * - 11 * - 64
----
-191368320

onlyif mysql # DIV for integer division: 
query II rowsort label-9229
SELECT ALL - + 34 DIV - 67 AS col2, - 84 DIV 41
----
0
-2

skipif mysql # not compatible
query II rowsort label-9229
SELECT ALL - + 34 / - 67 AS col2, - 84 / 41
----
0
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9230
SELECT ALL 69 DIV + COALESCE ( - - CAST( - 26 AS SIGNED ), CAST( NULL AS SIGNED ) ) AS col2, - COUNT( 90 )
----
-2
-1

skipif mysql # not compatible
query II rowsort label-9230
SELECT ALL 69 / + COALESCE ( - - CAST ( - 26 AS INTEGER ), CAST ( NULL AS INTEGER ) ) AS col2, - COUNT ( 90 )
----
-2
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9231
SELECT - COALESCE ( + 91, + + 82 * + 16 + - 86 + - - 7 + - CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - 19 + + ( + COUNT( * ) ) DIV + 2
----
72

skipif mysql # not compatible
query I rowsort label-9231
SELECT - COALESCE ( + 91, + + 82 * + 16 + - 86 + - - 7 + - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - 19 + + ( + COUNT ( * ) ) / + 2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT + ( - 31 ) + + COUNT( * ) * + COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9232
SELECT + ( - 31 ) + + COUNT ( * ) * + COUNT ( * ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT ALL ( COALESCE ( - - 90, + COUNT( * ) * - 88 + + + 63 - - - 93, 88 ) )
----
90

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL ( COALESCE ( - - 90, + COUNT ( * ) * - 88 + + + 63 - - - 93, 88 ) )
----
90

query I rowsort
SELECT DISTINCT + 24 + 29 - + 76
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9235
SELECT + CAST( NULL AS SIGNED ) + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9235
SELECT + CAST ( NULL AS INTEGER ) + + 51
----
NULL

query I rowsort
SELECT ALL 9 + + 30
----
39

query I rowsort
SELECT + 67 * + 39
----
2613

query I rowsort
SELECT + 37 * ( 87 )
----
3219

query I rowsort
SELECT DISTINCT 14 + + 1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9240
SELECT - 2 AS col1, 96 + + SUM( - 34 ) + + 19
----
-2
81

skipif mysql # not compatible
query II rowsort label-9240
SELECT - 2 AS col1, 96 + + SUM ( - 34 ) + + 19
----
-2
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9241
SELECT + 62 DIV + 11 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9241
SELECT + 62 / + 11 AS col0
----
5

query I rowsort
SELECT + 1 * + - 20 + - + 95 AS col2
----
-115

query I rowsort
SELECT ALL 59 * 77 AS col2
----
4543

query I rowsort
SELECT DISTINCT - 94 * + - 87
----
8178

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL + COUNT( * ) * - - 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL + COUNT ( * ) * - - 15 AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9246
SELECT + + CAST( + + 76 AS SIGNED ) + + - MAX( + + 98 ) + - - 93 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9246
SELECT + + CAST ( + + 76 AS INTEGER ) + + - MAX ( + + 98 ) + - - 93 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT + MAX( DISTINCT - 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9247
SELECT + MAX ( DISTINCT - 16 ) AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-9248
SELECT - 87 + - 16 * - 5 DIV 98
----
-87

skipif mysql # not compatible
query I rowsort label-9248
SELECT - 87 + - 16 * - 5 / 98
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL + - ( - MIN( - ( + - 88 ) ) )
----
88

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL + - ( - MIN ( - ( + - 88 ) ) )
----
88

query II rowsort
SELECT DISTINCT + 80 AS col1, - 61
----
80
-61

query I rowsort
SELECT DISTINCT 5 * - 79 AS col1
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT COALESCE ( 0, - 40, - 82 * - + 11 + COUNT( * ) + - - 34 * + + 77 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9252
SELECT COALESCE ( 0, - 40, - 82 * - + 11 + COUNT ( * ) + - - 34 * + + 77 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9253
SELECT - 58 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT - 58 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL + 79, 72 AS col1
----
79
72

query I rowsort
SELECT COALESCE ( 73, 9 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT DISTINCT + COUNT( ALL + 78 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT + COUNT ( ALL + 78 ) AS col1
----
1

query I rowsort
SELECT ALL - 5 * - 53 + - 81
----
184

query I rowsort
SELECT + 45 * - - 73
----
3285

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9259
SELECT - 87 AS col0, COUNT( * ) * - COUNT( * ) * COUNT( * ) * 27 DIV + - NULLIF ( + 65, - NULLIF ( - 52, 31 ) )
----
-87
0

skipif mysql # not compatible
query II rowsort label-9259
SELECT - 87 AS col0, COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) * 27 / + - NULLIF ( + 65, - NULLIF ( - 52, 31 ) )
----
-87
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9260
SELECT - 97 DIV - 8
----
12

skipif mysql # not compatible
query I rowsort label-9260
SELECT - 97 / - 8
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9261
SELECT - COUNT( * ) * - CASE 59 WHEN 33 THEN COUNT( * ) + - ( + 3 ) WHEN + 9 / - 46 THEN NULL END AS col2, - 61
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-9261
SELECT - COUNT ( * ) * - CASE 59 WHEN 33 THEN COUNT ( * ) + - ( + 3 ) WHEN + 9 / - 46 THEN NULL END AS col2, - 61
----
NULL
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT ALL ( + - CAST( + 53 AS SIGNED ) )
----
-53

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL ( + - CAST ( + 53 AS INTEGER ) )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9263
SELECT DISTINCT - 95 * - + SUM( + 84 ) + 96 DIV + - COUNT( * )
----
7884

skipif mysql # not compatible
query I rowsort label-9263
SELECT DISTINCT - 95 * - + SUM ( + 84 ) + 96 / + - COUNT ( * )
----
7884

query I rowsort
SELECT ALL + 74 + 2 * + + 64
----
202

query I rowsort
SELECT ALL - 20 * + 47 * - ( + 2 ) AS col1
----
1880

query I rowsort
SELECT - 44 * - 22 col1
----
968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9267
SELECT ALL 55 + + CAST( - - COUNT( * ) AS SIGNED ) DIV + - CAST( + 72 AS SIGNED ) * - 21
----
55

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL 55 + + CAST ( - - COUNT ( * ) AS INTEGER ) / + - CAST ( + 72 AS INTEGER ) * - 21
----
55

query II rowsort
SELECT 37, 24 AS col0
----
37
24

query I rowsort
SELECT ALL + 48 + - 40 * - 19
----
808

query II rowsort
SELECT - 37 - - 46, + 37 AS col0
----
9
37

query I rowsort
SELECT - NULLIF ( ( - 80 ), + 17 ) AS col0
----
80

query I rowsort
SELECT - 8 + - 97
----
-105

query I rowsort
SELECT + 13 * - 32 AS col0
----
-416

query I rowsort
SELECT ALL - 75 + - + ( + - 1 ) col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT COALESCE ( - COUNT( * ), - + 30 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9275
SELECT COALESCE ( - COUNT ( * ), - + 30 ) AS col1
----
-1

query II rowsort
SELECT - - 97 AS col2, + 57
----
97
57

query I rowsort
SELECT 74 + + 77 AS col2
----
151

query I rowsort
SELECT ALL + 45 - - - 64 + - + ( 41 )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9279
SELECT ALL - 53 * CAST( NULL AS SIGNED ) + + - 20 - + 75 * + 49 * + + 91 * COALESCE ( + - 90, ( - - ( - 14 ) ), + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL - 53 * CAST ( NULL AS INTEGER ) + + - 20 - + 75 * + 49 * + + 91 * COALESCE ( + - 90, ( - - ( - 14 ) ), + 14 )
----
NULL

query II rowsort
SELECT ALL - + 9 AS col0, 77 col1
----
-9
77

query II rowsort
SELECT + 32 col1, - 78 AS col0
----
32
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-9282
SELECT + 65 col1, + MAX( + - 94 ) AS col0
----
65
-94

skipif mysql # not compatible
query II rowsort label-9282
SELECT + 65 col1, + MAX ( + - 94 ) AS col0
----
65
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT - 2 * + + CASE + 31 WHEN - - COUNT( * ) + 54 THEN - - 88 ELSE NULL END + - 30 * - 23 + + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT - 2 * + + CASE + 31 WHEN - - COUNT ( * ) + 54 THEN - - 88 ELSE NULL END + - 30 * - 23 + + + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT - MAX( DISTINCT - - 79 ) + 4 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-9284
SELECT - MAX ( DISTINCT - - 79 ) + 4 AS col0
----
-75

query II rowsort
SELECT 51 AS col0, + 40 + + 23 * - - 4
----
51
132

onlyif mysql # aggregate syntax: 
query II rowsort label-9286
SELECT + SUM( ALL - 45 ) * 78 + - 94, + 64 AS col2
----
-3604
64

skipif mysql # not compatible
query II rowsort label-9286
SELECT + SUM ( ALL - 45 ) * 78 + - 94, + 64 AS col2
----
-3604
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9287
SELECT DISTINCT 16 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT 16 / - 75
----
0

query I rowsort
SELECT 15 * + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT ALL ( 16 ) + 89 DIV - - 10
----
24

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL ( 16 ) + 89 / - - 10
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT MAX( - 41 ) - - 93 * + ( CASE - 80 WHEN + + 78 THEN + ( COUNT( * ) ) * - + 95 * - - 84 + 73 + - - COUNT( * ) * - - 0 + + + 52 WHEN + 82 + - 48 / + + COUNT( * ) THEN NULL ELSE NULL END ) + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT MAX ( - 41 ) - - 93 * + ( CASE - 80 WHEN + + 78 THEN + ( COUNT ( * ) ) * - + 95 * - - 84 + 73 + - - COUNT ( * ) * - - 0 + + + 52 WHEN + 82 + - 48 / + + COUNT ( * ) THEN NULL ELSE NULL END ) + - 64
----
NULL

query I rowsort
SELECT ALL - 79 + + 87 * - 19 AS col0
----
-1732

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT COUNT( + + 29 ) + + - 24 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9292
SELECT COUNT ( + + 29 ) + + - 24 AS col1
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9293
SELECT 84 + + CAST( NULL AS DECIMAL ) - + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9293
SELECT 84 + + CAST ( NULL AS REAL ) - + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT MIN( + - 64 ) * + 36 AS col2
----
-2304

skipif mysql # not compatible
query I rowsort label-9294
SELECT MIN ( + - 64 ) * + 36 AS col2
----
-2304

query I rowsort
SELECT DISTINCT 49 - + - 30
----
79

query II rowsort
SELECT ALL - 49 * + + 35 AS col2, 51
----
-1715
51

query I rowsort
SELECT DISTINCT + - 45 * + 45 AS col2
----
-2025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9298
SELECT DISTINCT - 57 * - ( - + 98 ) * - CAST( NULL AS DECIMAL ) * - 32 * + 82 * - NULLIF ( - 69, 82 ) + 13 * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT - 57 * - ( - + 98 ) * - CAST ( NULL AS REAL ) * - 32 * + 82 * - NULLIF ( - 69, 82 ) + 13 * 26
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9299
SELECT 19 DIV - 50, NULLIF ( 12, + 94 * + 15 + - - 98 ) * COUNT( * ) AS col0
----
0
12

skipif mysql # not compatible
query II rowsort label-9299
SELECT 19 / - 50, NULLIF ( 12, + 94 * + 15 + - - 98 ) * COUNT ( * ) AS col0
----
0
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9300
SELECT ALL CASE 53 WHEN + - 91 + - + COUNT( * ) + - COUNT( - - 50 ) + COUNT( * ) THEN - COUNT( * ) WHEN + + 65 THEN - - 32 + + 83 - - - ( + + 94 ) * - ( - + 70 ) WHEN + - ( - 49 ) / + 80 THEN + - 14 / - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL CASE 53 WHEN + - 91 + - + COUNT ( * ) + - COUNT ( - - 50 ) + COUNT ( * ) THEN - COUNT ( * ) WHEN + + 65 THEN - - 32 + + 83 - - - ( + + 94 ) * - ( - + 70 ) WHEN + - ( - 49 ) / + 80 THEN + - 14 / - CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9301
SELECT + + CASE + - 93 WHEN COUNT( * ) THEN ( - - CAST( + 99 AS SIGNED ) ) * - 8 + + + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT + + CASE + - 93 WHEN COUNT ( * ) THEN ( - - CAST ( + 99 AS INTEGER ) ) * - 8 + + + 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9302
SELECT ALL - + SUM( - ( + - CASE 6 WHEN + - 20 THEN 18 WHEN - ( 44 ) + + + 41 THEN NULL WHEN + + 58 THEN NULL END ) ), + ( + 48 ) col1
----
NULL
48

skipif mysql # not compatible
query II rowsort label-9302
SELECT ALL - + SUM ( - ( + - CASE 6 WHEN + - 20 THEN 18 WHEN - ( 44 ) + + + 41 THEN NULL WHEN + + 58 THEN NULL END ) ), + ( + 48 ) col1
----
NULL
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9303
SELECT 61 DIV 33 + + 95
----
96

skipif mysql # not compatible
query I rowsort label-9303
SELECT 61 / 33 + + 95
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9304
SELECT 40 DIV 61 * 37
----
0

skipif mysql # not compatible
query I rowsort label-9304
SELECT 40 / 61 * 37
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9305
SELECT + 77 * + 86 + 7 + - + 55 + + + 2 + 45 * 4 - 40 * 0 * + 92 * - COUNT( * ) * CAST( 83 AS SIGNED ) col0, 43
----
6756
43

skipif mysql # not compatible
query II rowsort label-9305
SELECT + 77 * + 86 + 7 + - + 55 + + + 2 + 45 * 4 - 40 * 0 * + 92 * - COUNT ( * ) * CAST ( 83 AS INTEGER ) col0, 43
----
6756
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9306
SELECT DISTINCT - 17 AS col1, - COUNT( * ) DIV + - ( 85 ) AS col0
----
-17
0

skipif mysql # not compatible
query II rowsort label-9306
SELECT DISTINCT - 17 AS col1, - COUNT ( * ) / + - ( 85 ) AS col0
----
-17
0

query I rowsort
SELECT ALL 86 + - 91 AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9308
SELECT CASE - 51 WHEN - 85 * - + 29 THEN + + 47 * CAST( 83 AS SIGNED ) ELSE NULL END / - + COUNT( * ) * ( - COUNT( * ) ) * 73 col1, - 87
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-9308
SELECT CASE - 51 WHEN - 85 * - + 29 THEN + + 47 * CAST ( 83 AS INTEGER ) ELSE NULL END / - + COUNT ( * ) * ( - COUNT ( * ) ) * 73 col1, - 87
----
NULL
-87

query I rowsort
SELECT DISTINCT + 74 + - 8 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL NULLIF ( + 83, + - 79 * + - 73 ) * - COUNT( * ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL NULLIF ( + 83, + - 79 * + - 73 ) * - COUNT ( * ) col1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9311
SELECT ALL 50 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL 50 / 93
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9312
SELECT MIN( - 70 ) - 74 * + - CASE + + 89 WHEN - 49 THEN - 81 WHEN - + 83 THEN NULL WHEN - 20 THEN - COUNT( * ) + - 44 * - - 34 + - + 57 + + COUNT( * ) + + 8 / + ( + - ( - COUNT( * ) ) ) * COUNT( * ) - + + 16 END / - + 16 AS col2, + 41 * + + 95 AS col2
----
NULL
3895

skipif mysql # not compatible
query II rowsort label-9312
SELECT MIN ( - 70 ) - 74 * + - CASE + + 89 WHEN - 49 THEN - 81 WHEN - + 83 THEN NULL WHEN - 20 THEN - COUNT ( * ) + - 44 * - - 34 + - + 57 + + COUNT ( * ) + + 8 / + ( + - ( - COUNT ( * ) ) ) * COUNT ( * ) - + + 16 END / - + 16 AS col2, + 41 * + + 95 AS col2
----
NULL
3895

onlyif mysql # aggregate syntax: 
query II rowsort label-9313
SELECT + 48 AS col0, ( + COUNT( * ) ) + - - 99 + - + 84 * 78
----
48
-6452

skipif mysql # not compatible
query II rowsort label-9313
SELECT + 48 AS col0, ( + COUNT ( * ) ) + - - 99 + - + 84 * 78
----
48
-6452

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT NULLIF ( 86, - - 66 + - + 83 * 32 ) * + MAX( + 25 )
----
2150

skipif mysql # not compatible
query I rowsort label-9314
SELECT NULLIF ( 86, - - 66 + - + 83 * 32 ) * + MAX ( + 25 )
----
2150

query I rowsort
SELECT - NULLIF ( - 46, - 25 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT + 73 - - 54 - + COUNT( * ) * + 44 * 24 col1
----
-929

skipif mysql # not compatible
query I rowsort label-9316
SELECT + 73 - - 54 - + COUNT ( * ) * + 44 * 24 col1
----
-929

query II rowsort
SELECT 65 col0, - ( - + 11 ) + + + 50 AS col1
----
65
61

query II rowsort
SELECT 0 AS col2, - 41 + - 52
----
0
-93

query I rowsort
SELECT DISTINCT 49 - - 7 AS col1
----
56

query I rowsort
SELECT DISTINCT 8 * - 95
----
-760

query I rowsort
SELECT ALL 43 * + - 87 AS col2
----
-3741

query I rowsort
SELECT DISTINCT - CASE WHEN NOT ( NOT NULL >= NULL ) THEN - + 44 WHEN ( - 99 ) IS NULL THEN NULL ELSE - 78 END
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9323
SELECT + 39 * - + CASE + - 95 WHEN 20 DIV - - COUNT( * ) + + - 98 THEN 48 * + + 61 ELSE ( + 91 ) DIV - 71 END * 30 AS col0
----
1170

skipif mysql # not compatible
query I rowsort label-9323
SELECT + 39 * - + CASE + - 95 WHEN 20 / - - COUNT ( * ) + + - 98 THEN 48 * + + 61 ELSE ( + 91 ) / - 71 END * 30 AS col0
----
1170

query I rowsort
SELECT - 8 * - + 49 + - 24 * - 80 + 73
----
2385

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT + - COALESCE ( + COUNT( * ), + 54, - COUNT( * ), 47 ) + - 90
----
-91

skipif mysql # not compatible
query I rowsort label-9325
SELECT + - COALESCE ( + COUNT ( * ), + 54, - COUNT ( * ), 47 ) + - 90
----
-91

query I rowsort
SELECT - + 42 - - 20 AS col0
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9327
SELECT + + 73 + - + 17 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT + + 73 + - + 17 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9328
SELECT - - 68 - - - 30 DIV 92
----
68

skipif mysql # not compatible
query I rowsort label-9328
SELECT - - 68 - - - 30 / 92
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT DISTINCT MIN( - + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT MIN ( - + 5 )
----
-5

query I rowsort
SELECT ALL - 13 + + 96 AS col1
----
83

query I rowsort
SELECT - 97 + - - 53 AS col0
----
-44

query II rowsort
SELECT ALL + 3 AS col0, - 81
----
3
-81

query I rowsort
SELECT DISTINCT + 43 * - 30
----
-1290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9334
SELECT - 11 + - + CAST( + + 14 AS SIGNED ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-9334
SELECT - 11 + - + CAST ( + + 14 AS INTEGER ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT DISTINCT + 63 + + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT + 63 + + COUNT ( * )
----
64

query I rowsort
SELECT - 24 + - + 44 - - 89 + - + 39 * + - 65
----
2556

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT + - ( 38 ) * + - COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9337
SELECT + - ( 38 ) * + - COUNT ( * ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT - - 66 * 47 * + - 19 + + + COUNT( * )
----
-58937

skipif mysql # not compatible
query I rowsort label-9338
SELECT - - 66 * 47 * + - 19 + + + COUNT ( * )
----
-58937

query II rowsort
SELECT ( + + 41 ) AS col2, + 16 AS col2
----
41
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT + COUNT( + 48 )
----
1

skipif mysql # not compatible
query I rowsort label-9340
SELECT + COUNT ( + 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT DISTINCT + MAX( - + 1 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT + MAX ( - + 1 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9342
SELECT ALL 98 * - - 77 * - 55 + + MAX( DISTINCT - + 6 ), - 56 AS col0
----
-415036
-56

skipif mysql # not compatible
query II rowsort label-9342
SELECT ALL 98 * - - 77 * - 55 + + MAX ( DISTINCT - + 6 ), - 56 AS col0
----
-415036
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9343
SELECT - CASE CAST( NULL AS SIGNED ) WHEN 42 + NULLIF ( - 79, + 79 ) * - 50 THEN - + CAST( + + 32 AS SIGNED ) * + COUNT( * ) + + 67 + - - 86 ELSE + 84 END * + COUNT( * ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-9343
SELECT - CASE CAST ( NULL AS INTEGER ) WHEN 42 + NULLIF ( - 79, + 79 ) * - 50 THEN - + CAST ( + + 32 AS INTEGER ) * + COUNT ( * ) + + 67 + - - 86 ELSE + 84 END * + COUNT ( * ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL + COALESCE ( COUNT( * ), - 52 * 13, - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL + COALESCE ( COUNT ( * ), - 52 * 13, - COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL 35 * + 51 - - ( + 61 ) + + NULLIF ( + 98, COUNT( * ) ) AS col0
----
1944

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL 35 * + 51 - - ( + 61 ) + + NULLIF ( + 98, COUNT ( * ) ) AS col0
----
1944

onlyif mysql # aggregate syntax: 
query II rowsort label-9346
SELECT DISTINCT 10 * + - SUM( ALL 59 ) - 72, 44 AS col1
----
-662
44

skipif mysql # not compatible
query II rowsort label-9346
SELECT DISTINCT 10 * + - SUM ( ALL 59 ) - 72, 44 AS col1
----
-662
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL + NULLIF ( - COUNT( * ), + - 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL + NULLIF ( - COUNT ( * ), + - 2 )
----
-1

query I rowsort
SELECT 52 * + 92 + - 71
----
4713

query I rowsort
SELECT + 14 + - 3 + - + 1 AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT + 73 DIV + - 17 col2
----
-4

skipif mysql # not compatible
query I rowsort label-9350
SELECT + 73 / + - 17 col2
----
-4

query I rowsort
SELECT - 85 * + 3 AS col1
----
-255

query I rowsort
SELECT DISTINCT - 44 * ( - 1 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9353
SELECT + 37 DIV - - 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9353
SELECT + 37 / - - 47 AS col2
----
0

query I rowsort
SELECT ALL ( + + COALESCE ( + + 7, 8 + 87 ) ) AS col2
----
7

query I rowsort
SELECT DISTINCT ( - ( + 51 ) ) AS col1
----
-51

query I rowsort
SELECT - 52 * 23 + - ( 18 )
----
-1214

onlyif mysql # DIV for integer division: 
query I rowsort label-9357
SELECT - 23 DIV + ( + + 70 ) - + + 38
----
-38

skipif mysql # not compatible
query I rowsort label-9357
SELECT - 23 / + ( + + 70 ) - + + 38
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9358
SELECT + + ( ( COUNT( * ) ) ) DIV + + 78 - - + 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9358
SELECT + + ( ( COUNT ( * ) ) ) / + + 78 - - + 37 AS col1
----
37

query I rowsort
SELECT - + 77 * 38 * - 2
----
5852

query I rowsort
SELECT ALL 71 * - 8 + + 72
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT + COUNT( * ) + 60 * - 9 * + 67 AS col2
----
-36179

skipif mysql # not compatible
query I rowsort label-9361
SELECT + COUNT ( * ) + 60 * - 9 * + 67 AS col2
----
-36179

query I rowsort
SELECT ALL 98 + - + 98 - + 54 * ( 56 )
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL 42 + SUM( ALL - - 14 ) * + + 32 AS col2
----
490

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL 42 + SUM ( ALL - - 14 ) * + + 32 AS col2
----
490

query I rowsort
SELECT DISTINCT + 83 + - + 60 + - - 81 AS col1
----
104

query I rowsort
SELECT DISTINCT - 14 + - 15
----
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-9366
SELECT + + 87 * + + 6, + ( + 16 ) DIV - 98 AS col0
----
522
0

skipif mysql # not compatible
query II rowsort label-9366
SELECT + + 87 * + + 6, + ( + 16 ) / - 98 AS col0
----
522
0

query I rowsort
SELECT + - 75 - 78 * + - 14 * - 49
----
-53583

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT + + COUNT( * ) - 48 + SUM( - 69 ) * - + 10 + + 32
----
675

skipif mysql # not compatible
query I rowsort label-9368
SELECT + + COUNT ( * ) - 48 + SUM ( - 69 ) * - + 10 + + 32
----
675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9369
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9370
SELECT + - 26 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-9370
SELECT + - 26 / + 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT - 45 * MAX( + + 86 ) AS col1
----
-3870

skipif mysql # not compatible
query I rowsort label-9371
SELECT - 45 * MAX ( + + 86 ) AS col1
----
-3870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9372
SELECT - SUM( ALL + CASE 49 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN 27 THEN - + 0 / 33 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT - SUM ( ALL + CASE 49 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 27 THEN - + 0 / 33 END )
----
NULL

query I rowsort
SELECT DISTINCT - - 48 * + CASE + 30 WHEN 88 * 36 + - + 54 + + + 90 THEN + + 18 - CASE + 90 WHEN - 12 - - 0 THEN - 71 ELSE NULL END ELSE NULL END * - 99 + + 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9374
SELECT ALL 85 DIV 47 + - ( ( - - 97 ) ) + - ( + 36 )
----
-132

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL 85 / 47 + - ( ( - - 97 ) ) + - ( + 36 )
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-9375
SELECT + + COUNT( + 99 ), + 27 AS col2
----
1
27

skipif mysql # not compatible
query II rowsort label-9375
SELECT + + COUNT ( + 99 ), + 27 AS col2
----
1
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9376
SELECT ALL 39 DIV - 48 * 39 * - 98
----
0

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL 39 / - 48 * 39 * - 98
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9377
SELECT CAST( - - 10 AS SIGNED ) + + - 25 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9377
SELECT CAST ( - - 10 AS INTEGER ) + + - 25 AS col1
----
-15

query I rowsort
SELECT ALL - NULLIF ( - 46, + - 92 )
----
46

query I rowsort
SELECT 13 - + + 60
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9380
SELECT 84 DIV + ( - 38 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9380
SELECT 84 / + ( - 38 ) AS col1
----
-2

query I rowsort
SELECT 93 * + - 86 AS col1
----
-7998

query I rowsort
SELECT 3 + 89
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9383
SELECT + 11 * - - CASE CAST( NULL AS SIGNED ) WHEN 20 * 62 THEN - 25 WHEN 3 THEN 61 ELSE - 39 * - CASE + 18 WHEN - 70 * 34 THEN - + 44 + - AVG ( + + 42 ) WHEN - - ( 59 ) THEN NULL WHEN + 84 THEN + + COALESCE ( MAX( ALL + 4 ), + + MIN( ALL - 10 ), ( + 95 ) ) / - COUNT( ALL + + ( - - 50 ) ) END END + - 63 * 49 * MAX( + + 24 ) col2, 50 + + ( + COUNT( * ) ) * + + 76
----
NULL
126

skipif mysql # not compatible
query II rowsort label-9383
SELECT + 11 * - - CASE CAST ( NULL AS INTEGER ) WHEN 20 * 62 THEN - 25 WHEN 3 THEN 61 ELSE - 39 * - CASE + 18 WHEN - 70 * 34 THEN - + 44 + - AVG ( + + 42 ) WHEN - - ( 59 ) THEN NULL WHEN + 84 THEN + + COALESCE ( MAX ( ALL + 4 ), + + MIN ( ALL - 10 ), ( + 95 ) ) / - COUNT ( ALL + + ( - - 50 ) ) END END + - 63 * 49 * MAX ( + + 24 ) col2, 50 + + ( + COUNT ( * ) ) * + + 76
----
NULL
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9384
SELECT + 67 AS col2, - 15 DIV - 2 col0, - COUNT( * )
----
67
7
-1

skipif mysql # not compatible
query III rowsort label-9384
SELECT + 67 AS col2, - 15 / - 2 col0, - COUNT ( * )
----
67
7
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 30 * 18 AS col1
----
-540

query I rowsort
SELECT 18 * - - 69 AS col0
----
1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9388
SELECT ALL + - COUNT( * ) + + - 50 + - - 43 - - ( + - 31 ) + - + 83 + + 91 * - ( + 24 ) - 19 DIV - 55
----
-2306

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL + - COUNT ( * ) + + - 50 + - - 43 - - ( + - 31 ) + - + 83 + + 91 * - ( + 24 ) - 19 / - 55
----
-2306

query I rowsort
SELECT ALL - 76 + - 8 AS col1
----
-84

query I rowsort
SELECT DISTINCT + 18 + 34
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9391
SELECT 76 + AVG ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT 76 + AVG ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT DISTINCT - + ( + 3 ) DIV - - 21 - + 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT - + ( + 3 ) / - - 21 - + 6 AS col1
----
-6

query I rowsort
SELECT - 46 + 90 col1
----
44

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9394
SELECT - CASE - - CAST( NULL AS SIGNED ) WHEN + + 41 THEN NULL ELSE 47 - + 55 * + CAST( NULL AS DECIMAL ) END + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT - CASE - - CAST ( NULL AS INTEGER ) WHEN + + 41 THEN NULL ELSE 47 - + 55 * + CAST ( NULL AS REAL ) END + + 29
----
NULL

query I rowsort
SELECT - 29 - - CASE ( - + 63 ) WHEN + + 57 * + CASE - NULLIF ( 89, 43 ) WHEN 83 THEN NULL WHEN 57 THEN 69 - + 27 END THEN NULL ELSE + + 68 END
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9396
SELECT DISTINCT + 33 DIV - 89 - + COUNT( * ), 56 col1
----
-1
56

skipif mysql # not compatible
query II rowsort label-9396
SELECT DISTINCT + 33 / - 89 - + COUNT ( * ), 56 col1
----
-1
56

query I rowsort
SELECT ALL 12 - - 29 col2
----
41

query I rowsort
SELECT 46 * + + 74
----
3404

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL + MIN( ALL + ( 71 ) )
----
71

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL + MIN ( ALL + ( 71 ) )
----
71

query I rowsort
SELECT DISTINCT - - 4 - - + 35
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9401
SELECT ALL 69, COUNT( * ) AS col2
----
69
1

skipif mysql # not compatible
query II rowsort label-9401
SELECT ALL 69, COUNT ( * ) AS col2
----
69
1

query I rowsort
SELECT 78 + - 52
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT 84 * COUNT( * ) * - 70
----
-5880

skipif mysql # not compatible
query I rowsort label-9403
SELECT 84 * COUNT ( * ) * - 70
----
-5880

query I rowsort
SELECT ( - 79 ) + + 47
----
-32

query II rowsort
SELECT DISTINCT - 26 AS col0, 75 * - - 40
----
-26
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT 61 * - 12 + + MAX( + + 2 )
----
-730

skipif mysql # not compatible
query I rowsort label-9406
SELECT 61 * - 12 + + MAX ( + + 2 )
----
-730

onlyif mysql # aggregate syntax: 
query II rowsort label-9407
SELECT 74 * - 52 AS col1, SUM( - - 0 ) + + 90 * 97 + + + 97
----
-3848
8827

skipif mysql # not compatible
query II rowsort label-9407
SELECT 74 * - 52 AS col1, SUM ( - - 0 ) + + 90 * 97 + + + 97
----
-3848
8827

query II rowsort
SELECT 73 col0, + CASE - 70 WHEN 25 THEN NULL ELSE - 75 END * + 2 + 84 * + 11 AS col2
----
73
774

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9409
SELECT ALL - 19 col1, + CAST( NULL AS SIGNED ) AS col2
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-9409
SELECT ALL - 19 col1, + CAST ( NULL AS INTEGER ) AS col2
----
-19
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9410
SELECT SUM( DISTINCT 66 ) DIV - 61
----
-1

skipif mysql # not compatible
query I rowsort label-9410
SELECT SUM ( DISTINCT 66 ) / - 61
----
-1

query II rowsort
SELECT ALL - 29 AS col0, 79 AS col1
----
-29
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9412
SELECT DISTINCT 85 DIV - 34 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT 85 / - 34 AS col0
----
-2

query I rowsort
SELECT ALL 20 * + - 44
----
-880

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT 19 DIV 20
----
0

skipif mysql # not compatible
query I rowsort label-9414
SELECT 19 / 20
----
0

query I rowsort
SELECT ALL 13 + - 77 col0
----
-64

query I rowsort
SELECT 99 + + 49 AS col2
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9417
SELECT 35 - - CAST( - - MAX( DISTINCT 54 ) AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-9417
SELECT 35 - - CAST ( - - MAX ( DISTINCT 54 ) AS INTEGER ) AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9418
SELECT ( 30 ) / CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + + 0 + 92 + + 32 * - + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT ( 30 ) / CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + + 0 + 92 + + 32 * - + 58
----
NULL

query I rowsort
SELECT 44 + + + 0 - - + 82 AS col2
----
126

query I rowsort
SELECT ALL + - 61 + + 0 * - - 20
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL - COUNT( + - 12 ) + - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL - COUNT ( + - 12 ) + - COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT 69 * - - 29 + + 60
----
2061

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9423
SELECT DISTINCT CAST( NULL AS SIGNED ) + - CASE + + 14 WHEN - - 37 THEN + 89 WHEN - - 34 * - + 21 + - + 96 - - COUNT( * ) + + SUM( DISTINCT - + ( - 19 ) ) / - 45 / + 31 THEN NULL ELSE + COUNT( * ) + + 67 * 70 * + - 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - CASE + + 14 WHEN - - 37 THEN + 89 WHEN - - 34 * - + 21 + - + 96 - - COUNT ( * ) + + SUM ( DISTINCT - + ( - 19 ) ) / - 45 / + 31 THEN NULL ELSE + COUNT ( * ) + + 67 * 70 * + - 66 END
----
NULL

query I rowsort
SELECT ALL 20 + - 48 * + 93 AS col2
----
-4444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9425
SELECT ALL - + 81 + - MIN( CAST( 23 AS SIGNED ) ) - + - 6
----
-98

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL - + 81 + - MIN ( CAST ( 23 AS INTEGER ) ) - + - 6
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9426
SELECT DISTINCT + CASE + + 10 WHEN - + 69 * 43 THEN + MIN( - 38 ) + + - COUNT( * ) - 49 - COALESCE ( - + 2, + - COUNT( * ) * + + MIN( DISTINCT - 56 ) / + 18 + + CAST( NULL AS SIGNED ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT + CASE + + 10 WHEN - + 69 * 43 THEN + MIN ( - 38 ) + + - COUNT ( * ) - 49 - COALESCE ( - + 2, + - COUNT ( * ) * + + MIN ( DISTINCT - 56 ) / + 18 + + CAST ( NULL AS INTEGER ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT - - MAX( ALL 82 )
----
82

skipif mysql # not compatible
query I rowsort label-9427
SELECT - - MAX ( ALL 82 )
----
82

query II rowsort
SELECT - - 50, 42 col1
----
50
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT DISTINCT + 31 * + - SUM( ALL - - 9 ) * + 80 * - + 9 + - 2 * 10 * + 19 * + 4
----
199360

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT + 31 * + - SUM ( ALL - - 9 ) * + 80 * - + 9 + - 2 * 10 * + 19 * + 4
----
199360

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL - 73 - - - 1 * COUNT( * ) - - ( + + 60 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - 73 - - - 1 * COUNT ( * ) - - ( + + 60 ) AS col2
----
-14

query II rowsort
SELECT + 69 AS col0, 92
----
69
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT + 66 * + - 73 * 41 * - MIN( DISTINCT 7 ) AS col2
----
1382766

skipif mysql # not compatible
query I rowsort label-9432
SELECT + 66 * + - 73 * 41 * - MIN ( DISTINCT 7 ) AS col2
----
1382766

onlyif mysql # aggregate syntax: 
query II rowsort label-9433
SELECT DISTINCT - 1, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-9433
SELECT DISTINCT - 1, COUNT ( * ) AS col2
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9434
SELECT DISTINCT + SUM( DISTINCT - 6 ) * COALESCE ( + 38, ( + 59 ) * + CAST( NULL AS SIGNED ) + - - 2 * - 3 )
----
-228

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT + SUM ( DISTINCT - 6 ) * COALESCE ( + 38, ( + 59 ) * + CAST ( NULL AS INTEGER ) + - - 2 * - 3 )
----
-228

onlyif mysql # DIV for integer division: 
query I rowsort label-9435
SELECT ALL + 49 DIV 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL + 49 / 52 AS col2
----
0

query I rowsort
SELECT - ( - ( + 39 ) ) col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9437
SELECT DISTINCT + 65 AS col2, NULLIF ( 55, ( + COUNT( * ) ) )
----
65
55

skipif mysql # not compatible
query II rowsort label-9437
SELECT DISTINCT + 65 AS col2, NULLIF ( 55, ( + COUNT ( * ) ) )
----
65
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9438
SELECT DISTINCT MAX( ALL - 6 ) AS col2, 27 + - 40
----
-6
-13

skipif mysql # not compatible
query II rowsort label-9438
SELECT DISTINCT MAX ( ALL - 6 ) AS col2, 27 + - 40
----
-6
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9439
SELECT ALL + COUNT( * ) DIV 13 DIV + ( + 64 ) * + - 95 + + 98 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL + COUNT ( * ) / 13 / + ( + 64 ) * + - 95 + + 98 AS col2
----
98

query I rowsort
SELECT - CASE ( + 60 ) WHEN - - 39 - 71 + + 20 * + - 2 THEN - - 13 END - + 61 AS col2
----
NULL

query I rowsort
SELECT ALL 80 * - 71
----
-5680

onlyif mysql # DIV for integer division: 
query I rowsort label-9442
SELECT ALL + 2 DIV - + 19
----
0

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL + 2 / - + 19
----
0

query I rowsort
SELECT DISTINCT 15 * + 76 AS col1
----
1140

query I rowsort
SELECT + 38 - 46 * - 72 AS col0
----
3350

query I rowsort
SELECT ALL - 30 * ( + 51 )
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT - 97 * - + 20 - COALESCE ( - - 71, - 13, + COUNT( * ) * - + 28 * + + 41 ) + + - ( - NULLIF ( - + 87, + 93 * - - 86 ) ) * - 44 + - COUNT( * ) + COUNT( * ) AS col0
----
5697

skipif mysql # not compatible
query I rowsort label-9446
SELECT - 97 * - + 20 - COALESCE ( - - 71, - 13, + COUNT ( * ) * - + 28 * + + 41 ) + + - ( - NULLIF ( - + 87, + 93 * - - 86 ) ) * - 44 + - COUNT ( * ) + COUNT ( * ) AS col0
----
5697

query II rowsort
SELECT DISTINCT 79 * 29 * + 16, 78 * 22 AS col2
----
36656
1716

query I rowsort
SELECT ALL - 6 * - 64 + 64
----
448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9449
SELECT - COALESCE ( - 57, 80 * - COUNT( * ) DIV - 78 ) + + 57 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-9449
SELECT - COALESCE ( - 57, 80 * - COUNT ( * ) / - 78 ) + + 57 AS col1
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-9450
SELECT ALL - CASE 73 WHEN + 13 THEN + CASE + 12 WHEN + MIN( ALL - 52 ) THEN 99 ELSE COUNT( * ) * 92 END * + + 60 + - CASE + 52 WHEN + 65 + + COUNT( * ) THEN + 77 + + 51 / COUNT( * ) * - ( - ( + 31 ) ) * MAX( ALL - 47 ) END WHEN + MAX( - - 71 ) THEN + - 63 * - - 19 / 60 + - 65 END * 33 + + ( - 70 ) - + 53 * + 40 + + + 66 + + 12 * - - 48, 93 AS col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-9450
SELECT ALL - CASE 73 WHEN + 13 THEN + CASE + 12 WHEN + MIN ( ALL - 52 ) THEN 99 ELSE COUNT ( * ) * 92 END * + + 60 + - CASE + 52 WHEN + 65 + + COUNT ( * ) THEN + 77 + + 51 / COUNT ( * ) * - ( - ( + 31 ) ) * MAX ( ALL - 47 ) END WHEN + MAX ( - - 71 ) THEN + - 63 * - - 19 / 60 + - 65 END * 33 + + ( - 70 ) - + 53 * + 40 + + + 66 + + 12 * - - 48, 93 AS col1
----
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT 3 * - NULLIF ( COUNT( ALL + 35 ), + + 63 * + 97 + 44 ) + + 82 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9451
SELECT 3 * - NULLIF ( COUNT ( ALL + 35 ), + + 63 * + 97 + 44 ) + + 82 AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9452
SELECT 58 DIV - - COUNT( * ) + + 71 AS col1, + 40 + + 22 * 55 + + + 86 * - 86 + - ( - + COALESCE ( 27, + COUNT( * ) - - + 79 ) ) * COUNT( * ) * 87
----
129
-3797

skipif mysql # not compatible
query II rowsort label-9452
SELECT 58 / - - COUNT ( * ) + + 71 AS col1, + 40 + + 22 * 55 + + + 86 * - 86 + - ( - + COALESCE ( 27, + COUNT ( * ) - - + 79 ) ) * COUNT ( * ) * 87
----
129
-3797

query I rowsort
SELECT DISTINCT - 96 * + 1 + ( + + 11 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9454
SELECT ALL CAST( NULL AS SIGNED ) / - + COUNT( * ) * 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL CAST ( NULL AS INTEGER ) / - + COUNT ( * ) * 34 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9455
SELECT DISTINCT + 29 * - - 70 + CAST( - 28 AS SIGNED ) AS col0
----
2002

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT + 29 * - - 70 + CAST ( - 28 AS INTEGER ) AS col0
----
2002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9456
SELECT ALL + - COALESCE ( + COUNT( * ), + + 91 + - CAST( 75 AS SIGNED ) + - + 98 + + 8 + - 15 * 64 * + + ( + 56 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + - COALESCE ( + COUNT ( * ), + + 91 + - CAST ( 75 AS INTEGER ) + - + 98 + + 8 + - 15 * 64 * + + ( + 56 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9457
SELECT + 5 * + COALESCE ( - + 88, - CASE + 52 WHEN + - SUM( + 19 ) - + COUNT( * ) THEN 95 * 31 - + - NULLIF ( - 76, 45 / 66 - + 48 ) + 48 + + CAST( + - 40 AS SIGNED ) WHEN - MIN( ALL - 55 ) * 98 THEN - 36 ELSE + 74 END + - 2, 59 ) - - 84 + - 78
----
-434

skipif mysql # not compatible
query I rowsort label-9457
SELECT + 5 * + COALESCE ( - + 88, - CASE + 52 WHEN + - SUM ( + 19 ) - + COUNT ( * ) THEN 95 * 31 - + - NULLIF ( - 76, 45 / 66 - + 48 ) + 48 + + CAST ( + - 40 AS INTEGER ) WHEN - MIN ( ALL - 55 ) * 98 THEN - 36 ELSE + 74 END + - 2, 59 ) - - 84 + - 78
----
-434

query I rowsort
SELECT - 75 * + - 14 AS col1
----
1050

query I rowsort
SELECT + 37 * - + 1 * + - 92 AS col2
----
3404

query I rowsort
SELECT DISTINCT 6 * - + 69 AS col2
----
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT - 64 - - 12 + COUNT( * ) * - 17 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9461
SELECT - 64 - - 12 + COUNT ( * ) * - 17 AS col0
----
-69

query I rowsort
SELECT ALL 34 - - 52 AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT + CAST( NULL AS SIGNED ) * + 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT + CAST ( NULL AS INTEGER ) * + 48 AS col0
----
NULL

query II rowsort
SELECT - - 81 * - - 88 AS col1, 38
----
7128
38

query I rowsort
SELECT + 92 + + 16
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9466
SELECT - 98 - + 61 DIV - COUNT( * ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-9466
SELECT - 98 - + 61 / - COUNT ( * ) col2
----
-37

query I rowsort
SELECT - 74 - 78 AS col0
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT ALL + COUNT( DISTINCT - 10 ) * 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL + COUNT ( DISTINCT - 10 ) * 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9469
SELECT ALL 92 * COUNT( DISTINCT - - 48 ) AS col2, 86 * + 42 * + 84 * + 70 col0
----
92
21238560

skipif mysql # not compatible
query II rowsort label-9469
SELECT ALL 92 * COUNT ( DISTINCT - - 48 ) AS col2, 86 * + 42 * + 84 * + 70 col0
----
92
21238560

query II rowsort
SELECT DISTINCT + 16 * - + 68 * + 27, + ( - 26 ) AS col1
----
-29376
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL + 71 + - + COUNT( + + 97 )
----
70

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + 71 + - + COUNT ( + + 97 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9472
SELECT - 38 + - 90 - - + COALESCE ( 21, + 34 ) + + 51 DIV - 55 AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-9472
SELECT - 38 + - 90 - - + COALESCE ( 21, + 34 ) + + 51 / - 55 AS col1
----
-107

query II rowsort
SELECT DISTINCT NULLIF ( - 1, - 95 ), 57 AS col2
----
-1
57

query I rowsort
SELECT - 15 + - 28 AS col0
----
-43

query I rowsort
SELECT ALL - 26 + + 60 * 71
----
4234

onlyif mysql # aggregate syntax: 
query II rowsort label-9476
SELECT - MIN( ALL - - 21 ) * 97 * - 76 + NULLIF ( - 16, COUNT( ALL - 41 ) ) AS col1, + ( - 32 )
----
154796
-32

skipif mysql # not compatible
query II rowsort label-9476
SELECT - MIN ( ALL - - 21 ) * 97 * - 76 + NULLIF ( - 16, COUNT ( ALL - 41 ) ) AS col1, + ( - 32 )
----
154796
-32

query I rowsort
SELECT ALL 66 * 62
----
4092

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9478
SELECT DISTINCT COALESCE ( + 61, - - 86 DIV - 55 DIV + 16 + + 90 DIV + - 38 + + + ( 31 ) * + 49 + ( + CAST( + 11 AS SIGNED ) ) ) * - + 85
----
-5185

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT COALESCE ( + 61, - - 86 / - 55 / + 16 + + 90 / + - 38 + + + ( 31 ) * + 49 + ( + CAST ( + 11 AS INTEGER ) ) ) * - + 85
----
-5185

query I rowsort
SELECT - 66 + - ( - + 66 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9480
SELECT DISTINCT + NULLIF ( - + 89, 0 + - 52 ) DIV - - 2 + 66 DIV + + 69
----
-44

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT + NULLIF ( - + 89, 0 + - 52 ) / - - 2 + 66 / + + 69
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT ALL - 98 * 32 * + MAX( ALL 52 ) AS col2
----
-163072

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL - 98 * 32 * + MAX ( ALL 52 ) AS col2
----
-163072

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL + + CASE 92 WHEN 14 THEN + SUM( - + 59 ) * + 49 + 81 + + 49 * - + 69 WHEN - 55 THEN NULL WHEN + + 79 + + 79 * + 57 THEN - 60 + + AVG ( + 16 ) * - 75 / COUNT( * ) WHEN - 37 THEN - 27 + CASE + - COUNT( * ) WHEN - 26 * - + 51 * - 45 / MAX( DISTINCT - - 0 ) THEN + COUNT( * ) END / + 76 * - 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL + + CASE 92 WHEN 14 THEN + SUM ( - + 59 ) * + 49 + 81 + + 49 * - + 69 WHEN - 55 THEN NULL WHEN + + 79 + + 79 * + 57 THEN - 60 + + AVG ( + 16 ) * - 75 / COUNT ( * ) WHEN - 37 THEN - 27 + CASE + - COUNT ( * ) WHEN - 26 * - + 51 * - 45 / MAX ( DISTINCT - - 0 ) THEN + COUNT ( * ) END / + 76 * - 13 END
----
NULL

query I rowsort
SELECT + 35 + + 20
----
55

query II rowsort
SELECT + ( 48 ) + + - 38, + 20 + - 26 AS col0
----
10
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9485
SELECT ALL + 71 / + ( CAST( NULL AS SIGNED ) ) AS col2, + COUNT( ALL + 21 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9485
SELECT ALL + 71 / + ( CAST ( NULL AS INTEGER ) ) AS col2, + COUNT ( ALL + 21 )
----
NULL
1

query I rowsort
SELECT DISTINCT - 54 * - 76 * - 12 * 39 * - 30 AS col0
----
57620160

onlyif mysql # DIV for integer division: 
query I rowsort label-9487
SELECT + 6 DIV ( - 24 ) DIV + 22 + + - 36
----
-36

skipif mysql # not compatible
query I rowsort label-9487
SELECT + 6 / ( - 24 ) / + 22 + + - 36
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT SUM( + - 6 ) * - 42 AS col2
----
252

skipif mysql # not compatible
query I rowsort label-9488
SELECT SUM ( + - 6 ) * - 42 AS col2
----
252

query I rowsort
SELECT ALL + 21 * 53 + - - 99 + + 41 AS col1
----
1253

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT + NULLIF ( + COUNT( * ), + 22 + + 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9490
SELECT + NULLIF ( + COUNT ( * ), + 22 + + 53 ) AS col2
----
1

query I rowsort
SELECT 78 * - + 93
----
-7254

query I rowsort
SELECT 13 + + 69 AS col1
----
82

query I rowsort
SELECT ( + 16 ) * 96 + 38
----
1574

onlyif mysql # aggregate syntax: 
query II rowsort label-9494
SELECT ALL 51 + + COUNT( * ) AS col2, - 94 * + + 92 * - 96 AS col2
----
52
830208

skipif mysql # not compatible
query II rowsort label-9494
SELECT ALL 51 + + COUNT ( * ) AS col2, - 94 * + + 92 * - 96 AS col2
----
52
830208

query I rowsort
SELECT ALL - 39 + 78
----
39

query I rowsort
SELECT ALL 97 + - 84 AS col0
----
13

query I rowsort
SELECT ALL + ( + 56 ) * - - 34
----
1904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9498
SELECT COUNT( * ) + - 63 + + COUNT( * ) DIV - 51 * + 95 * + CAST( 71 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-9498
SELECT COUNT ( * ) + - 63 + + COUNT ( * ) / - 51 * + 95 * + CAST ( 71 AS INTEGER )
----
-62

query I rowsort
SELECT DISTINCT - 49 * + 56
----
-2744

query I rowsort
SELECT ALL 37 + 16
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9501
SELECT DISTINCT MAX( ALL 19 ) + - CAST( 61 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT MAX ( ALL 19 ) + - CAST ( 61 AS INTEGER )
----
-42

query I rowsort
SELECT ALL 55 * + - 12 * + + 80 AS col0
----
-52800

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ALL - MIN( DISTINCT - ( + 54 ) )
----
54

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL - MIN ( DISTINCT - ( + 54 ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT COUNT( * ) * - 88 - + 51 + - - 34 * ( + 48 ) AS col0
----
1493

skipif mysql # not compatible
query I rowsort label-9504
SELECT COUNT ( * ) * - 88 - + 51 + - - 34 * ( + 48 ) AS col0
----
1493

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT + COUNT( * ) * MIN( 53 )
----
53

skipif mysql # not compatible
query I rowsort label-9505
SELECT + COUNT ( * ) * MIN ( 53 )
----
53

query I rowsort
SELECT DISTINCT + + 62 - 6
----
56

query I rowsort
SELECT DISTINCT - 44 * + 81
----
-3564

query I rowsort
SELECT ALL - + 7 * 68 * + + 35
----
-16660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9509
SELECT ALL + + 95 * + 78 - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL + + 95 * + 78 - - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - - 52 col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT 38 + COUNT( * ) + + 66 col2
----
105

skipif mysql # not compatible
query I rowsort label-9511
SELECT 38 + COUNT ( * ) + + 66 col2
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9512
SELECT 84 DIV ( + 83 ) * + COUNT( * ) * + + 84 * - ( - - 60 )
----
-5040

skipif mysql # not compatible
query I rowsort label-9512
SELECT 84 / ( + 83 ) * + COUNT ( * ) * + + 84 * - ( - - 60 )
----
-5040

query I rowsort
SELECT 94 - - - 28 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL MAX( 56 )
----
56

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL MAX ( 56 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9515
SELECT - 73 * + CAST( - 65 AS SIGNED ) + - 43 AS col2
----
4702

skipif mysql # not compatible
query I rowsort label-9515
SELECT - 73 * + CAST ( - 65 AS INTEGER ) + - 43 AS col2
----
4702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9516
SELECT DISTINCT 3 DIV + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT 3 / + + COUNT ( * )
----
3

query II rowsort
SELECT ALL 21 + - 89 * - + 90 AS col2, - ( 56 ) - + - 45 AS col1
----
8031
-11

query I rowsort
SELECT 84 + 35 + + + ( - 86 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL COALESCE ( - 89, 4 ) * NULLIF ( + SUM( 43 ), 39 + - + 36 - - 44 * 10 * - MAX( ALL 76 ) ) AS col0
----
-3827

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL COALESCE ( - 89, 4 ) * NULLIF ( + SUM ( 43 ), 39 + - + 36 - - 44 * 10 * - MAX ( ALL 76 ) ) AS col0
----
-3827

query I rowsort
SELECT 3 + 40 + - - 39 col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9521
SELECT COUNT( * ) - COUNT( * ) * + NULLIF ( - + 80, - 61 ) + + - CASE - COALESCE ( - MIN( DISTINCT - CAST( + 19 AS DECIMAL ) ), - 71, + COALESCE ( + 98, - 68, ( - 94 ) ) ) WHEN - 54 * - + ( + - 39 ) THEN 16 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9521
SELECT COUNT ( * ) - COUNT ( * ) * + NULLIF ( - + 80, - 61 ) + + - CASE - COALESCE ( - MIN ( DISTINCT - CAST ( + 19 AS REAL ) ), - 71, + COALESCE ( + 98, - 68, ( - 94 ) ) ) WHEN - 54 * - + ( + - 39 ) THEN 16 END AS col0
----
NULL

query II rowsort
SELECT ALL 41 AS col1, - 87 AS col1
----
41
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9523
SELECT - 42, + COUNT( * ) AS col2
----
-42
1

skipif mysql # not compatible
query II rowsort label-9523
SELECT - 42, + COUNT ( * ) AS col2
----
-42
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9524
SELECT ( MIN( ALL - 66 ) ) + - 39 + 48 DIV 1 + 29
----
-28

skipif mysql # not compatible
query I rowsort label-9524
SELECT ( MIN ( ALL - 66 ) ) + - 39 + 48 / 1 + 29
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9525
SELECT ALL CASE - 44 WHEN - - CAST( NULL AS SIGNED ) + + 89 * 35 THEN - CASE - CAST( - 74 AS DECIMAL ) WHEN + 44 THEN + 89 WHEN 84 THEN + 42 + + 86 WHEN + 98 THEN NULL END * ( + 24 ) + - - NULLIF ( 82, - 79 ) END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL CASE - 44 WHEN - - CAST ( NULL AS INTEGER ) + + 89 * 35 THEN - CASE - CAST ( - 74 AS REAL ) WHEN + 44 THEN + 89 WHEN 84 THEN + 42 + + 86 WHEN + 98 THEN NULL END * ( + 24 ) + - - NULLIF ( 82, - 79 ) END + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 20 * - - 16
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT COUNT( * ) + - COUNT( * ) * 31 + - - 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9527
SELECT COUNT ( * ) + - COUNT ( * ) * 31 + - - 30 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9528
SELECT ALL 52 AS col2, - COUNT( DISTINCT + 8 )
----
52
-1

skipif mysql # not compatible
query II rowsort label-9528
SELECT ALL 52 AS col2, - COUNT ( DISTINCT + 8 )
----
52
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT 38 + - CASE + - 72 WHEN - 16 + ( - 60 ) - - + 10 THEN - 32 * 73 + 85 - + 50 * + + ( - COUNT( * ) ) ELSE + 15 * - ( - 54 ) + 8 * + 17 END + - 33
----
-941

skipif mysql # not compatible
query I rowsort label-9529
SELECT 38 + - CASE + - 72 WHEN - 16 + ( - 60 ) - - + 10 THEN - 32 * 73 + 85 - + 50 * + + ( - COUNT ( * ) ) ELSE + 15 * - ( - 54 ) + 8 * + 17 END + - 33
----
-941

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ( 51 ) + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-9530
SELECT ( 51 ) + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT ALL NULLIF ( + MIN( ALL + 84 ), - + 44 ) - - ( COUNT( * ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL NULLIF ( + MIN ( ALL + 84 ), - + 44 ) - - ( COUNT ( * ) ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT - COALESCE ( 61, COUNT( * ) + + + 85 ) * + 80 * - 90 * 47 * - COUNT( * )
----
-20642400

skipif mysql # not compatible
query I rowsort label-9532
SELECT - COALESCE ( 61, COUNT ( * ) + + + 85 ) * + 80 * - 90 * 47 * - COUNT ( * )
----
-20642400

query I rowsort
SELECT ALL 97 * - 91
----
-8827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT + COALESCE ( 59, 37 ) * 35 + - - 55 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT + COALESCE ( 59, 37 ) * 35 + - - 55 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 48 * + 91 AS col0
----
-4368

query I rowsort
SELECT DISTINCT - + ( 47 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9537
SELECT DISTINCT - - CAST( + + SUM( 89 ) AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT - - CAST ( + + SUM ( 89 ) AS INTEGER )
----
89

query I rowsort
SELECT DISTINCT 73 * - 47
----
-3431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9539
SELECT DISTINCT CASE 63 WHEN + - 13 THEN COUNT( * ) + 68 ELSE NULL END * + 53 + NULLIF ( + + 96, 7 + - - 38 / - + NULLIF ( - 30, + - 47 ) + - 25 + - CAST( NULL AS SIGNED ) * + 73 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT CASE 63 WHEN + - 13 THEN COUNT ( * ) + 68 ELSE NULL END * + 53 + NULLIF ( + + 96, 7 + - - 38 / - + NULLIF ( - 30, + - 47 ) + - 25 + - CAST ( NULL AS INTEGER ) * + 73 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9540
SELECT ALL + NULLIF ( + 54, + CAST( COUNT( ( 1 ) ) AS SIGNED ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL + NULLIF ( + 54, + CAST ( COUNT ( ( 1 ) ) AS INTEGER ) ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT - COUNT( ALL + 75 ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9541
SELECT - COUNT ( ALL + 75 ) * COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT - + 94 + - - CAST( - - 37 AS SIGNED ) * - 17 * - 86 AS col0
----
54000

skipif mysql # not compatible
query I rowsort label-9542
SELECT - + 94 + - - CAST ( - - 37 AS INTEGER ) * - 17 * - 86 AS col0
----
54000

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT ALL + MIN( - + 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL + MIN ( - + 23 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT - - 24 * - + COUNT( * ) * SUM( ALL - - 76 ) + 19
----
-1805

skipif mysql # not compatible
query I rowsort label-9544
SELECT - - 24 * - + COUNT ( * ) * SUM ( ALL - - 76 ) + 19
----
-1805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9545
SELECT ALL + 57 * - - COUNT( * ) / + COUNT( * ) + + CAST( NULL AS SIGNED ) + COALESCE ( + + 97, - + 77 / 5 * + 87 + AVG ( - - 13 ) ) - - 55 + + 72 * - NULLIF ( ( - 75 ), 92 - - NULLIF ( + + ( - + 3 ), COUNT( * ) ) ) * 10 + - ( AVG ( - ( - 50 ) ) ) * - 96 + + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL + 57 * - - COUNT ( * ) / + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + COALESCE ( + + 97, - + 77 / 5 * + 87 + AVG ( - - 13 ) ) - - 55 + + 72 * - NULLIF ( ( - 75 ), 92 - - NULLIF ( + + ( - + 3 ), COUNT ( * ) ) ) * 10 + - ( AVG ( - ( - 50 ) ) ) * - 96 + + + 78
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9546
SELECT ALL - 0 * + ( - ( - 45 ) ) + 98 + + CASE CASE + + 34 WHEN 27 THEN + COUNT( * ) + 51 + + + 70 + - 97 - + + 67 - 79 * - 11 * + CASE - CASE + + 65 WHEN - 14 THEN - 1 WHEN - + MIN( 37 ) * 95 * - 3 + - 74 + - 89 + + 24 THEN - 42 * + 16 ELSE NULL END WHEN - 17 THEN + 19 + + 40 + - + 10 * COUNT( * ) * - CAST( NULL AS SIGNED ) ELSE COUNT( * ) * - + 7 + + 96 / + COUNT( * ) END + + COALESCE ( - MAX( ALL + ( - 27 ) ), 51 + 89 * 90 ) WHEN ( 61 ) * MIN( DISTINCT - 19 ) THEN NULL ELSE 66 END WHEN + 88 THEN NULL WHEN + 62 THEN 85 WHEN 86 THEN NULL WHEN 93 THEN NULL ELSE NULL END * 4 + + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL - 0 * + ( - ( - 45 ) ) + 98 + + CASE CASE + + 34 WHEN 27 THEN + COUNT ( * ) + 51 + + + 70 + - 97 - + + 67 - 79 * - 11 * + CASE - CASE + + 65 WHEN - 14 THEN - 1 WHEN - + MIN ( 37 ) * 95 * - 3 + - 74 + - 89 + + 24 THEN - 42 * + 16 ELSE NULL END WHEN - 17 THEN + 19 + + 40 + - + 10 * COUNT ( * ) * - CAST ( NULL AS INTEGER ) ELSE COUNT ( * ) * - + 7 + + 96 / + COUNT ( * ) END + + COALESCE ( - MAX ( ALL + ( - 27 ) ), 51 + 89 * 90 ) WHEN ( 61 ) * MIN ( DISTINCT - 19 ) THEN NULL ELSE 66 END WHEN + 88 THEN NULL WHEN + 62 THEN 85 WHEN 86 THEN NULL WHEN 93 THEN NULL ELSE NULL END * 4 + + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9547
SELECT ALL + - 80 + + 82 + - - COUNT( DISTINCT + - 68 ) + - 69 DIV + COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL + - 80 + + 82 + - - COUNT ( DISTINCT + - 68 ) + - 69 / + COUNT ( * ) AS col2
----
-66

query I rowsort
SELECT - + 33 + + 33 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9549
SELECT ALL + - 63 DIV + 96 col0
----
0

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL + - 63 / + 96 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT DISTINCT - MIN( ALL - 5 ) * 97 AS col2
----
485

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT - MIN ( ALL - 5 ) * 97 AS col2
----
485

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT ALL + 39 + - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL + 39 + - COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT DISTINCT - COUNT( - 38 ) * + 47 + + 67 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT - COUNT ( - 38 ) * + 47 + + 67 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT - 3 * + NULLIF ( 84, NULLIF ( 14, + 75 ) * + COUNT( 32 ) )
----
-252

skipif mysql # not compatible
query I rowsort label-9553
SELECT - 3 * + NULLIF ( 84, NULLIF ( 14, + 75 ) * + COUNT ( 32 ) )
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT 3 * + - AVG ( ALL + + 50 ) / - 16 + + CASE 95 WHEN + - 38 * + 53 * 64 THEN + 39 WHEN + + 36 * + 34 THEN + - COUNT( * ) + COUNT( * ) + 86 ELSE NULL END + MAX( - 39 ) * + 76 + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT 3 * + - AVG ( ALL + + 50 ) / - 16 + + CASE 95 WHEN + - 38 * + 53 * 64 THEN + 39 WHEN + + 36 * + 34 THEN + - COUNT ( * ) + COUNT ( * ) + 86 ELSE NULL END + MAX ( - 39 ) * + 76 + + 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9555
SELECT 35 AS col2, COUNT( * ) AS col2
----
35
1

skipif mysql # not compatible
query II rowsort label-9555
SELECT 35 AS col2, COUNT ( * ) AS col2
----
35
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9556
SELECT DISTINCT 88 AS col0, - COUNT( * ) * + - SUM( - - 46 )
----
88
46

skipif mysql # not compatible
query II rowsort label-9556
SELECT DISTINCT 88 AS col0, - COUNT ( * ) * + - SUM ( - - 46 )
----
88
46

query II rowsort
SELECT - 73 * 19, + 79 AS col2
----
-1387
79

query II rowsort
SELECT 52 AS col1, 78 AS col0
----
52
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT ALL CASE + - 80 WHEN + + MIN( ALL - + 97 ) THEN - 36 * + 25 + + ( + 90 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL CASE + - 80 WHEN + + MIN ( ALL - + 97 ) THEN - 36 * + 25 + + ( + 90 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT ALL ( - ( CASE + 27 WHEN + ( - 36 ) THEN 6 WHEN - 55 THEN + 89 / + COUNT( * ) WHEN + MAX( + 96 ) / - 9 * - NULLIF ( + + 41, + + 82 + 90 ) + - 83 THEN - + 63 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL ( - ( CASE + 27 WHEN + ( - 36 ) THEN 6 WHEN - 55 THEN + 89 / + COUNT ( * ) WHEN + MAX ( + 96 ) / - 9 * - NULLIF ( + + 41, + + 82 + 90 ) + - 83 THEN - + 63 ELSE NULL END ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9561
SELECT ALL 37 * + CAST( + CAST( - - 16 AS SIGNED ) AS SIGNED )
----
592

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL 37 * + CAST ( + CAST ( - - 16 AS INTEGER ) AS INTEGER )
----
592

query I rowsort
SELECT + 43 * - - 35 * + 14 AS col0
----
21070

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9563
SELECT DISTINCT COUNT( * ) DIV + COALESCE ( + + 56, + + COALESCE ( 99, - 42 ) - + SUM( ALL - 24 ) ) * - 53 * + + 71 + ( + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT COUNT ( * ) / + COALESCE ( + + 56, + + COALESCE ( 99, - 42 ) - + SUM ( ALL - 24 ) ) * - 53 * + + 71 + ( + 1 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9564
SELECT + MIN( - - CAST( - 10 AS SIGNED ) ) * + 81 AS col1
----
-810

skipif mysql # not compatible
query I rowsort label-9564
SELECT + MIN ( - - CAST ( - 10 AS INTEGER ) ) * + 81 AS col1
----
-810

query I rowsort
SELECT - 90 - - NULLIF ( - 60, - 89 ) AS col2
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9566
SELECT + MIN( - 35 ) DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-9566
SELECT + MIN ( - 35 ) / - 85
----
0

query II rowsort
SELECT ALL ( - 62 ) * - ( + - 54 ), - ( 12 ) + - 32 AS col1
----
-3348
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT + 66 + + COUNT( DISTINCT + - 39 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-9568
SELECT + 66 + + COUNT ( DISTINCT + - 39 ) AS col0
----
67

query I rowsort
SELECT ALL + 66 * + 59 - 11 AS col0
----
3883

query I rowsort
SELECT DISTINCT 43 * - 69 * + 83 + - 58 + + 72 * - + 49 * 31 col2
----
-355687

query II rowsort
SELECT ALL + 16 AS col0, 60 - 70 AS col2
----
16
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9572
SELECT + 49 * + COUNT( * ) - - + 23 / + CASE + 75 WHEN - + 5 THEN - 19 WHEN 3 + - 64 * CAST( + ( + 33 ) AS SIGNED ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9572
SELECT + 49 * + COUNT ( * ) - - + 23 / + CASE + 75 WHEN - + 5 THEN - 19 WHEN 3 + - 64 * CAST ( + ( + 33 ) AS INTEGER ) THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL + 8 AS col0, + 78 * + - 10
----
8
-780

query II rowsort
SELECT + 22 AS col1, + 83 AS col0
----
22
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT + COUNT( * ) * + 73 * - + 25
----
-1825

skipif mysql # not compatible
query I rowsort label-9575
SELECT + COUNT ( * ) * + 73 * - + 25
----
-1825

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT DISTINCT 78 * + CASE - 49 WHEN COUNT( * ) * + 76 / + 42 * 61 THEN - + 49 WHEN - 53 THEN NULL END + + - 32 + + - COUNT( * ) + + - COUNT( - - 15 ) + - COUNT( * ) + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT 78 * + CASE - 49 WHEN COUNT ( * ) * + 76 / + 42 * 61 THEN - + 49 WHEN - 53 THEN NULL END + + - 32 + + - COUNT ( * ) + + - COUNT ( - - 15 ) + - COUNT ( * ) + 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT + SUM( DISTINCT - + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-9577
SELECT + SUM ( DISTINCT - + 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT - - 35 * + + COUNT( * ) + - 38 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT - - 35 * + + COUNT ( * ) + - 38 AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9579
SELECT ALL 46 * + - COUNT( * ) + 93 + + CAST( NULL AS SIGNED ) * + - 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL 46 * + - COUNT ( * ) + 93 + + CAST ( NULL AS INTEGER ) * + - 61 AS col2
----
NULL

query I rowsort
SELECT + 27 + - 29 * 59 AS col1
----
-1684

onlyif mysql # aggregate syntax: 
query II rowsort label-9581
SELECT + 65 * ( - COUNT( * ) ) + + COUNT( * ) + + 20 * + 95 * 23, 76 AS col2
----
43636
76

skipif mysql # not compatible
query II rowsort label-9581
SELECT + 65 * ( - COUNT ( * ) ) + + COUNT ( * ) + + 20 * + 95 * 23, 76 AS col2
----
43636
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9582
SELECT DISTINCT + CASE + 72 WHEN + 85 * - 4 THEN - + 91 - + 73 WHEN + + CAST( NULL AS SIGNED ) * - 81 THEN 98 + ( + 54 ) * + 97 + 60 * - 61 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT + CASE + 72 WHEN + 85 * - 4 THEN - + 91 - + 73 WHEN + + CAST ( NULL AS INTEGER ) * - 81 THEN 98 + ( + 54 ) * + 97 + 60 * - 61 END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9583
SELECT DISTINCT + 26 DIV 96 * + 11 * + + NULLIF ( + - 65, + 73 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT + 26 / 96 * + 11 * + + NULLIF ( + - 65, + 73 ) col2
----
0

query I rowsort
SELECT - 56 + + 75 + - + 84 * + 9 AS col2
----
-737

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ALL + 36 * + COUNT( * ) - COUNT( * ) col1
----
35

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL + 36 * + COUNT ( * ) - COUNT ( * ) col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT DISTINCT CASE 91 WHEN COUNT( 91 ) + - 1 THEN - - NULLIF ( - CASE - 77 WHEN + 69 + - COUNT( - + 99 ) THEN 20 END, - 52 ) END / COUNT( * ) * + AVG ( ALL 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT CASE 91 WHEN COUNT ( 91 ) + - 1 THEN - - NULLIF ( - CASE - 77 WHEN + 69 + - COUNT ( - + 99 ) THEN 20 END, - 52 ) END / COUNT ( * ) * + AVG ( ALL 15 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9587
SELECT ALL COALESCE ( + 93, 25 + - - 64 + 88 + - 79 * - 14 + 75 + + 72 + + 48 DIV + - ( - - COALESCE ( - 80, - CAST( NULL AS SIGNED ) ) ) - - - ( + + 24 ) + + - 85 * 79 * + 19 * MAX( DISTINCT + - 74 ) * + ( + - 65 ), + - 92 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL COALESCE ( + 93, 25 + - - 64 + 88 + - 79 * - 14 + 75 + + 72 + + 48 / + - ( - - COALESCE ( - 80, - CAST ( NULL AS INTEGER ) ) ) - - - ( + + 24 ) + + - 85 * 79 * + 19 * MAX ( DISTINCT + - 74 ) * + ( + - 65 ), + - 92 ) AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9588
SELECT DISTINCT - ( - + ( + 78 ) ) * COUNT( * ) * 7 + 28 * + 41 AS col1, MIN( - CAST( NULL AS SIGNED ) ) * + 53
----
1694
NULL

skipif mysql # not compatible
query II rowsort label-9588
SELECT DISTINCT - ( - + ( + 78 ) ) * COUNT ( * ) * 7 + 28 * + 41 AS col1, MIN ( - CAST ( NULL AS INTEGER ) ) * + 53
----
1694
NULL

query I rowsort
SELECT - 2 + - 57 col0
----
-59

query I rowsort
SELECT ALL - 45 * + 48 AS col0
----
-2160

query I rowsort
SELECT - 14 + 78 AS col1
----
64

query I rowsort
SELECT DISTINCT + 36 * - 38 AS col2
----
-1368

query I rowsort
SELECT - 90 + + 11 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT - 66 + + COUNT( * ) - 39 * - - 57 * 95
----
-211250

skipif mysql # not compatible
query I rowsort label-9594
SELECT - 66 + + COUNT ( * ) - 39 * - - 57 * 95
----
-211250

query I rowsort
SELECT DISTINCT ( - 67 ) AS col0
----
-67

query I rowsort
SELECT ALL 15 * + + 28 * + + 58 col0
----
24360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9597
SELECT + + ( + CASE ( + AVG ( ALL 54 ) ) WHEN - + COUNT( * ) * - - 95 * + COUNT( * ) * 76 + - CAST( NULL AS SIGNED ) THEN + ( 42 ) WHEN + 23 THEN - ( - + 54 ) * + COUNT( * ) + + - 98 * 53 * + 92 END ) * 95 / - CAST( + 12 AS SIGNED ) * + 1 AS col1, + 99 col0
----
NULL
99

skipif mysql # not compatible
query II rowsort label-9597
SELECT + + ( + CASE ( + AVG ( ALL 54 ) ) WHEN - + COUNT ( * ) * - - 95 * + COUNT ( * ) * 76 + - CAST ( NULL AS INTEGER ) THEN + ( 42 ) WHEN + 23 THEN - ( - + 54 ) * + COUNT ( * ) + + - 98 * 53 * + 92 END ) * 95 / - CAST ( + 12 AS INTEGER ) * + 1 AS col1, + 99 col0
----
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT + 87 + - MIN( + 22 ) * - 9 + + - 99 AS col2
----
186

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT + 87 + - MIN ( + 22 ) * - 9 + + - 99 AS col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT 33 + - COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-9599
SELECT 33 + - COUNT ( * ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT ALL + + COUNT( * ) + - - 3 * + 41
----
124

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL + + COUNT ( * ) + - - 3 * + 41
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9601
SELECT COALESCE ( + 46, - 13 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT COALESCE ( + 46, - 13 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT - - COUNT( * ) + - 83 col2
----
-82

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT - - COUNT ( * ) + - 83 col2
----
-82

query I rowsort
SELECT - 6 * + 4 AS col0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-9604
SELECT ALL 45 DIV ( + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL 45 / ( + 75 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT - 17 * 66 + - ( - COUNT( * ) ) - + 16 + + COUNT( * ) * + 40 AS col2
----
-1097

skipif mysql # not compatible
query I rowsort label-9605
SELECT - 17 * 66 + - ( - COUNT ( * ) ) - + 16 + + COUNT ( * ) * + 40 AS col2
----
-1097

query II rowsort
SELECT CASE 21 WHEN 12 THEN + 64 * 61 END AS col2, 8 AS col0
----
NULL
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9607
SELECT 39 DIV COUNT( * ) + + 93 AS col0, + 41 + - 86 col2
----
132
-45

skipif mysql # not compatible
query II rowsort label-9607
SELECT 39 / COUNT ( * ) + + 93 AS col0, + 41 + - 86 col2
----
132
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9608
SELECT 98 AS col2, COUNT( * ) + + 84 AS col0
----
98
85

skipif mysql # not compatible
query II rowsort label-9608
SELECT 98 AS col2, COUNT ( * ) + + 84 AS col0
----
98
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9609
SELECT ALL CASE + + 55 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + COUNT( * ) THEN - 55 ELSE NULL END - + ( - COUNT( * ) ) * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL CASE + + 55 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN - 55 ELSE NULL END - + ( - COUNT ( * ) ) * - 13
----
NULL

query I rowsort
SELECT ALL + 22 * - 17 AS col2
----
-374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9611
SELECT ( - - 27 ) * 59 * - CAST( NULL AS SIGNED ) * + + MAX( ALL - ( + - 85 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT ( - - 27 ) * 59 * - CAST ( NULL AS INTEGER ) * + + MAX ( ALL - ( + - 85 ) ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT ALL NULLIF ( + 76, CAST( + 4 AS SIGNED ) ) * - + 38
----
-2888

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL NULLIF ( + 76, CAST ( + 4 AS INTEGER ) ) * - + 38
----
-2888

onlyif mysql # aggregate syntax: 
query II rowsort label-9613
SELECT DISTINCT - 60 col1, SUM( ALL - 92 ) AS col1
----
-60
-92

skipif mysql # not compatible
query II rowsort label-9613
SELECT DISTINCT - 60 col1, SUM ( ALL - 92 ) AS col1
----
-60
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT DISTINCT ( COUNT( 76 ) ) * 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT ( COUNT ( 76 ) ) * 45 AS col0
----
45

query II rowsort
SELECT ALL - 73, - 41 AS col2
----
-73
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ALL ( COUNT( * ) ) * + 81 * - ( + + 20 ) + - 44 + + - MAX( - 6 ) * CASE + NULLIF ( - + 85, NULLIF ( - 80, - 74 ) * + COUNT( * ) + + ( CASE - 52 WHEN - COUNT( DISTINCT - - 28 ) * - 62 + + 97 THEN 15 * + + 21 + - 23 + + 72 + - - 39 END ) ) WHEN - ( - 9 ) THEN - + 41 END * - 16 * - + 96 * + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL ( COUNT ( * ) ) * + 81 * - ( + + 20 ) + - 44 + + - MAX ( - 6 ) * CASE + NULLIF ( - + 85, NULLIF ( - 80, - 74 ) * + COUNT ( * ) + + ( CASE - 52 WHEN - COUNT ( DISTINCT - - 28 ) * - 62 + + 97 THEN 15 * + + 21 + - 23 + + 72 + - - 39 END ) ) WHEN - ( - 9 ) THEN - + 41 END * - 16 * - + 96 * + 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9617
SELECT 77 AS col2, SUM( DISTINCT + 57 ) AS col0
----
77
57

skipif mysql # not compatible
query II rowsort label-9617
SELECT 77 AS col2, SUM ( DISTINCT + 57 ) AS col0
----
77
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9618
SELECT 54 DIV 83 * + - COUNT( * ) DIV - 18 * MAX( - - 15 ) DIV - 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9618
SELECT 54 / 83 * + - COUNT ( * ) / - 18 * MAX ( - - 15 ) / - 14 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9619
SELECT DISTINCT 95 AS col0, ( + CAST( NULL AS SIGNED ) ) col1
----
95
NULL

skipif mysql # not compatible
query II rowsort label-9619
SELECT DISTINCT 95 AS col0, ( + CAST ( NULL AS INTEGER ) ) col1
----
95
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9620
SELECT ALL 1, COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-9620
SELECT ALL 1, COUNT ( * ) AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT 73 + SUM( DISTINCT - 36 )
----
37

skipif mysql # not compatible
query I rowsort label-9621
SELECT 73 + SUM ( DISTINCT - 36 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9622
SELECT ALL - 78 DIV ( + 7 ) * - 31
----
341

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL - 78 / ( + 7 ) * - 31
----
341

onlyif mysql # DIV for integer division: 
query I rowsort label-9623
SELECT 44 DIV - - 26
----
1

skipif mysql # not compatible
query I rowsort label-9623
SELECT 44 / - - 26
----
1

query II rowsort
SELECT - 59 AS col1, - NULLIF ( - 25, - 92 ) + + + 20 - + 60 * + + 72 AS col1
----
-59
-4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9625
SELECT DISTINCT + 5 + - 3 * CAST( - 51 AS SIGNED ) * - - 72
----
11021

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT + 5 + - 3 * CAST ( - 51 AS INTEGER ) * - - 72
----
11021

query I rowsort
SELECT DISTINCT ( 27 ) + + ( - 64 )
----
-37

query I rowsort
SELECT ALL + - 78 + + 42
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9628
SELECT DISTINCT - - 15 + + 52 * - - AVG ( + 65 ) * - + 93 - - + CAST( NULL AS SIGNED ) / + MIN( - - 78 ) + + + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT - - 15 + + 52 * - - AVG ( + 65 ) * - + 93 - - + CAST ( NULL AS INTEGER ) / + MIN ( - - 78 ) + + + 66 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - - 98 * - - 87 * - - 58 AS col2, 95 + 53 AS col0
----
494508
148

onlyif mysql # DIV for integer division: 
query I rowsort label-9630
SELECT + 87 DIV + - 23 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9630
SELECT + 87 / + - 23 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT MAX( DISTINCT + 78 ) - ( 62 ) + + 8 * + 56
----
464

skipif mysql # not compatible
query I rowsort label-9631
SELECT MAX ( DISTINCT + 78 ) - ( 62 ) + + 8 * + 56
----
464

query I rowsort
SELECT ALL + + 86 + 25
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT + MAX( ALL - - 16 ) + 70 - + 2 + + 51 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-9633
SELECT + MAX ( ALL - - 16 ) + 70 - + 2 + + 51 AS col0
----
135

query I rowsort
SELECT ALL + 42 + - ( - 88 )
----
130

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9635
SELECT DISTINCT 46, - NULLIF ( + 86, CAST( - - 50 AS SIGNED ) * - 75 DIV - 49 * - - 98 * + - 20 ) + 45 * + 85 + + 28 + + 21 + + 13 DIV - + 13 + - 64 col1
----
46
3723

skipif mysql # not compatible
query II rowsort label-9635
SELECT DISTINCT 46, - NULLIF ( + 86, CAST ( - - 50 AS INTEGER ) * - 75 / - 49 * - - 98 * + - 20 ) + 45 * + 85 + + 28 + + 21 + + 13 / - + 13 + - 64 col1
----
46
3723

query I rowsort
SELECT DISTINCT + - 44 + + 72 col1
----
28

query II rowsort
SELECT 82, ( + 59 ) * - 25 AS col2
----
82
-1475

query I rowsort
SELECT DISTINCT 38 - - - 57 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9639
SELECT COUNT( * ) * 54 + - 83 AS col0, 16 col0, - ( 96 ) * 18 * - + 67 + - - NULLIF ( + + 73, - + ( - 11 ) * CAST( NULL AS SIGNED ) / - 71 ) AS col1
----
-29
16
115849

skipif mysql # not compatible
query III rowsort label-9639
SELECT COUNT ( * ) * 54 + - 83 AS col0, 16 col0, - ( 96 ) * 18 * - + 67 + - - NULLIF ( + + 73, - + ( - 11 ) * CAST ( NULL AS INTEGER ) / - 71 ) AS col1
----
-29
16
115849

query II rowsort
SELECT 88 AS col2, - 85 * + - 31 AS col2
----
88
2635

onlyif mysql # aggregate syntax: 
query II rowsort label-9641
SELECT ALL - - 96 col0, + 94 + - COUNT( * ) * + - 40 AS col0
----
96
134

skipif mysql # not compatible
query II rowsort label-9641
SELECT ALL - - 96 col0, + 94 + - COUNT ( * ) * + - 40 AS col0
----
96
134

query I rowsort
SELECT + 70 + + 62
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT - COUNT( * ) * 16
----
-16

skipif mysql # not compatible
query I rowsort label-9643
SELECT - COUNT ( * ) * 16
----
-16

query I rowsort
SELECT DISTINCT 92 - - + 59
----
151

onlyif mysql # aggregate syntax: 
query II rowsort label-9645
SELECT ALL - COALESCE ( - COUNT( ALL 74 ), + 6 ) AS col2, COUNT( + 24 )
----
1
1

skipif mysql # not compatible
query II rowsort label-9645
SELECT ALL - COALESCE ( - COUNT ( ALL 74 ), + 6 ) AS col2, COUNT ( + 24 )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT COUNT( * ) - + + 5 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9646
SELECT COUNT ( * ) - + + 5 AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9647
SELECT 22 * 50 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT 22 * 50 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 17 * + - 57
----
969

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT + ( - SUM( DISTINCT 17 ) ) * 30 * + ( + + COUNT( + - 67 ) ) AS col1
----
-510

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT + ( - SUM ( DISTINCT 17 ) ) * 30 * + ( + + COUNT ( + - 67 ) ) AS col1
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT COUNT( - 18 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9650
SELECT COUNT ( - 18 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9651
SELECT 12 DIV + 1 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9651
SELECT 12 / + 1 AS col1
----
12

query I rowsort
SELECT 47 * 29 col1
----
1363

query I rowsort
SELECT COALESCE ( - 23, - ( 85 ) ) * - - 2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9654
SELECT - CAST( NULL AS SIGNED ) * - ( + ( CASE - - ( AVG ( + 19 ) ) WHEN - 64 THEN - - 64 / - 78 + + + 15 * - COUNT( 29 ) * 42 END ) ) / + 68 * + 35 * - 48 * + 76 + - 30 + - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT - CAST ( NULL AS INTEGER ) * - ( + ( CASE - - ( AVG ( + 19 ) ) WHEN - 64 THEN - - 64 / - 78 + + + 15 * - COUNT ( 29 ) * 42 END ) ) / + 68 * + 35 * - 48 * + 76 + - 30 + - 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT ALL 37 * - - 3 * - NULLIF ( - COALESCE ( 27, - - 77 + - + COUNT( DISTINCT - 39 ) + 97, 97 ), - 91 * 2 + - 32 * + 3 ) * 31 * 69 AS col2
----
6410583

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL 37 * - - 3 * - NULLIF ( - COALESCE ( 27, - - 77 + - + COUNT ( DISTINCT - 39 ) + 97, 97 ), - 91 * 2 + - 32 * + 3 ) * 31 * 69 AS col2
----
6410583

query I rowsort
SELECT 47 + ( 13 )
----
60

query I rowsort
SELECT ALL 49 + - 30 + - 57 + - 94 AS col1
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9658
SELECT DISTINCT 72 + - - 34 / + 95 + 23 * + CAST( NULL AS SIGNED ) * 34 * 33 AS col1, + 88 + - + 73 AS col1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-9658
SELECT DISTINCT 72 + - - 34 / + 95 + 23 * + CAST ( NULL AS INTEGER ) * 34 * 33 AS col1, + 88 + - + 73 AS col1
----
NULL
15

query I rowsort
SELECT ALL 31 + - + 61 + 75 - - - 74 * 27 + - 9
----
-1962

onlyif mysql # DIV for integer division: 
query I rowsort label-9660
SELECT ALL 19 + - 23 DIV + 24 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL 19 + - 23 / + 24 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9661
SELECT DISTINCT ( + + 11 ) + + + CASE + COUNT( * ) WHEN 24 * - 7 THEN 78 - + MAX( 47 ) - - 91 + + 97 + - 39 + + + 7 + 96 * - CAST( NULL AS SIGNED ) * ( + ( - + 21 ) ) ELSE + - 45 END * 97 AS col1
----
-4354

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT ( + + 11 ) + + + CASE + COUNT ( * ) WHEN 24 * - 7 THEN 78 - + MAX ( 47 ) - - 91 + + 97 + - 39 + + + 7 + 96 * - CAST ( NULL AS INTEGER ) * ( + ( - + 21 ) ) ELSE + - 45 END * 97 AS col1
----
-4354

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9662
SELECT - - 43 + - 71 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT - - 43 + - 71 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9663
SELECT ALL 55 + 24 AS col1, CAST( NULL AS SIGNED )
----
79
NULL

skipif mysql # not compatible
query II rowsort label-9663
SELECT ALL 55 + 24 AS col1, CAST ( NULL AS INTEGER )
----
79
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9664
SELECT + 25 + - + COUNT( * ) AS col1, - 67 * - + 9 col1
----
24
603

skipif mysql # not compatible
query II rowsort label-9664
SELECT + 25 + - + COUNT ( * ) AS col1, - 67 * - + 9 col1
----
24
603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9665
SELECT - 94 + CAST( - ( + COALESCE ( 77, + - 77 + + - 31, + COUNT( * ) ) ) AS SIGNED )
----
-171

skipif mysql # not compatible
query I rowsort label-9665
SELECT - 94 + CAST ( - ( + COALESCE ( 77, + - 77 + + - 31, + COUNT ( * ) ) ) AS INTEGER )
----
-171

query I rowsort
SELECT DISTINCT - CASE - + 16 WHEN - 99 THEN - COALESCE ( 75, 75, + - 81 + - 14 ) ELSE NULL END / - - 45 / 2 + - 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9667
SELECT ALL 21 + 86 * 99 - 30 AS col1, 62 * - COUNT( * )
----
8505
-62

skipif mysql # not compatible
query II rowsort label-9667
SELECT ALL 21 + 86 * 99 - 30 AS col1, 62 * - COUNT ( * )
----
8505
-62

query I rowsort
SELECT + + 66 * 66 * - 29 - 59 - - + 76 AS col0
----
-126307

query I rowsort
SELECT ALL - + 71 * + 77 AS col0
----
-5467

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT - + 16 + + 85 * SUM( - 3 ) + 19
----
-252

skipif mysql # not compatible
query I rowsort label-9670
SELECT - + 16 + + 85 * SUM ( - 3 ) + 19
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL - + 54 - + COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL - + 54 - + COUNT ( * ) AS col2
----
-55

query I rowsort
SELECT + 27 * - 85
----
-2295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT - 97 * 49 * - CAST( - 3 AS SIGNED ) * + 54
----
-769986

skipif mysql # not compatible
query I rowsort label-9673
SELECT - 97 * 49 * - CAST ( - 3 AS INTEGER ) * + 54
----
-769986

query I rowsort
SELECT ALL - - 41 * - 85
----
-3485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9675
SELECT + COUNT( DISTINCT + - 84 ) DIV - 67 + + - 51 + - 36 + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-9675
SELECT + COUNT ( DISTINCT + - 84 ) / - 67 + + - 51 + - 36 + COUNT ( * )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT - + ( 42 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT - + ( 42 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 51 + + 15 - + + 54 + ( + 4 )
----
-86

query I rowsort
SELECT 49 * + 4 + - 64 + + 61 + - 91 AS col2
----
102

query I rowsort
SELECT ALL + ( + 60 ) AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9680
SELECT COALESCE ( MAX( CAST( NULL AS SIGNED ) ), + SUM( DISTINCT + 56 ) + - 42 - + ( 1 ) )
----
13

skipif mysql # not compatible
query I rowsort label-9680
SELECT COALESCE ( MAX ( CAST ( NULL AS INTEGER ) ), + SUM ( DISTINCT + 56 ) + - 42 - + ( 1 ) )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9681
SELECT - 14 DIV - + SUM( + 64 ) * COUNT( * ) + - + ( + - 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9681
SELECT - 14 / - + SUM ( + 64 ) * COUNT ( * ) + - + ( + - 36 ) AS col1
----
36

query I rowsort
SELECT ALL - 77 * + 43 + - 36
----
-3347

onlyif mysql # aggregate syntax: 
query II rowsort label-9683
SELECT COALESCE ( + COUNT( * ), + 78 * - + 23 * - COUNT( * ) ), + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-9683
SELECT COALESCE ( + COUNT ( * ), + 78 * - + 23 * - COUNT ( * ) ), + COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT ALL + COUNT( * ) * 19 + + ( + 87 ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL + COUNT ( * ) * 19 + + ( + 87 ) AS col1
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT - 91 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT - 91 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 97 + - - 39 AS col2
----
136

query I rowsort
SELECT DISTINCT - 77 * + 94
----
-7238

onlyif mysql # aggregate syntax: 
query II rowsort label-9688
SELECT + 89, - COUNT( * ) * + 66 AS col0
----
89
-66

skipif mysql # not compatible
query II rowsort label-9688
SELECT + 89, - COUNT ( * ) * + 66 AS col0
----
89
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT + ( + 28 ) + + - COUNT( * ) col0
----
27

skipif mysql # not compatible
query I rowsort label-9689
SELECT + ( + 28 ) + + - COUNT ( * ) col0
----
27

query I rowsort
SELECT ALL 37 * - 24 * - - 68 * + + 84
----
-5072256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9691
SELECT DISTINCT - 67 * 76 + - + 60 + - + 30 * - CAST( + AVG ( ALL + + 25 ) AS SIGNED )
----
-4402

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT - 67 * 76 + - + 60 + - + 30 * - CAST ( + AVG ( ALL + + 25 ) AS INTEGER )
----
-4402

query I rowsort
SELECT ALL 88 * 50 + + 35 AS col0
----
4435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9693
SELECT CASE + ( 30 ) WHEN + 70 THEN - CAST( + 25 AS SIGNED ) + + 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT CASE + ( 30 ) WHEN + 70 THEN - CAST ( + 25 AS INTEGER ) + + 85 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9694
SELECT ALL - COUNT( * ) * + 46 / - CAST( NULL AS SIGNED ) * - ( 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL - COUNT ( * ) * + 46 / - CAST ( NULL AS INTEGER ) * - ( 78 )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 8, + 22 ) AS col1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9696
SELECT + COUNT( * ) DIV - + ( 75 )
----
0

skipif mysql # not compatible
query I rowsort label-9696
SELECT + COUNT ( * ) / - + ( 75 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9697
SELECT - 25 * 25 * 63, - COUNT( * ) AS col0
----
-39375
-1

skipif mysql # not compatible
query II rowsort label-9697
SELECT - 25 * 25 * 63, - COUNT ( * ) AS col0
----
-39375
-1

query I rowsort
SELECT + 89 * 65 AS col1
----
5785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9699
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) * - ( + 13 ) + SUM( + 90 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - ( + 13 ) + SUM ( + 90 ) AS col0
----
NULL

query I rowsort
SELECT - 1 - 11 AS col0
----
-12

query I rowsort
SELECT DISTINCT 0 * 9 + + CASE + 44 WHEN 23 + + 10 THEN NULL ELSE ( + 60 ) END
----
60

query I rowsort
SELECT - COALESCE ( 15, + 11 * 40 )
----
-15

query I rowsort
SELECT ALL 65 + + 24 * - 34
----
-751

query I rowsort
SELECT DISTINCT 83 * 37 AS col0
----
3071

query I rowsort
SELECT DISTINCT 94 - 48 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9706
SELECT ALL MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 17 * ( 96 ) AS col1
----
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT + COUNT( * ) * - MAX( + 79 * + 91 ) AS col1
----
-7189

skipif mysql # not compatible
query I rowsort label-9708
SELECT + COUNT ( * ) * - MAX ( + 79 * + 91 ) AS col1
----
-7189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9709
SELECT ALL 29 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL 29 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 41 + COALESCE ( + 4 + - 91, 2 * + 21 ) AS col2
----
-46

query I rowsort
SELECT - CASE 95 WHEN + 44 THEN + 80 ELSE 65 END AS col1
----
-65

query I rowsort
SELECT + 93 * - 95 AS col2
----
-8835

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT ALL SUM( DISTINCT 29 )
----
29

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL SUM ( DISTINCT 29 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9714
SELECT - 87 + ( + 89 + 64 ) DIV - 11
----
-100

skipif mysql # not compatible
query I rowsort label-9714
SELECT - 87 + ( + 89 + 64 ) / - 11
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9715
SELECT ALL + SUM( - 78 ) DIV 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL + SUM ( - 78 ) / 85 AS col1
----
0

query I rowsort
SELECT + 57 * + 61 AS col1
----
3477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9717
SELECT + 33 * + CAST( 0 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9717
SELECT + 33 * + CAST ( 0 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT ALL + 63 * - 49 AS col1
----
-3087

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT - 10 - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9719
SELECT - 10 - COUNT ( * )
----
-11

query I rowsort
SELECT - 27 * 67 AS col0
----
-1809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9721
SELECT AVG ( DISTINCT ( - 61 ) ) * - COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT AVG ( DISTINCT ( - 61 ) ) * - COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 97 * - 41 AS col1
----
-3977

query I rowsort
SELECT - 3 * - 11 AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9724
SELECT ALL - 33 DIV + 63 + 17
----
17

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL - 33 / + 63 + 17
----
17

query I rowsort
SELECT 81 * - 42 - 70 AS col0
----
-3472

query I rowsort
SELECT + 91 * ( 22 )
----
2002

query I rowsort
SELECT 64 * 68 + - 73
----
4279

query I rowsort
SELECT ALL - 91 * - 97
----
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT - 67 * + COUNT( 88 )
----
-67

skipif mysql # not compatible
query I rowsort label-9729
SELECT - 67 * + COUNT ( 88 )
----
-67

query I rowsort
SELECT - 73 * NULLIF ( ( - 97 ), 53 ) AS col2
----
7081

onlyif mysql # DIV for integer division: 
query I rowsort label-9731
SELECT DISTINCT ( - ( 85 ) ) DIV 9 + + 82 * + 81
----
6633

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT ( - ( 85 ) ) / 9 + + 82 * + 81
----
6633

onlyif mysql # DIV for integer division: 
query I rowsort label-9732
SELECT ALL 10 DIV 6 + + 13 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL 10 / 6 + + 13 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT + NULLIF ( + 74, + CASE WHEN NOT + COALESCE ( 49, + 92, 82, 6 * COUNT( * ) ) BETWEEN NULL AND 4 THEN ( + 48 ) + 15 * 38 ELSE NULL END ) * 50 - - MAX( ALL - 39 )
----
3661

skipif mysql # not compatible
query I rowsort label-9733
SELECT + NULLIF ( + 74, + CASE WHEN NOT + COALESCE ( 49, + 92, 82, 6 * COUNT ( * ) ) BETWEEN NULL AND 4 THEN ( + 48 ) + 15 * 38 ELSE NULL END ) * 50 - - MAX ( ALL - 39 )
----
3661

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9734
SELECT ALL 16 DIV + 46 + + 7 * MAX( 41 + - 30 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL 16 / + 46 + + 7 * MAX ( 41 + - 30 ) AS col0
----
77

query I rowsort
SELECT 63 * 79
----
4977

query I rowsort
SELECT DISTINCT - NULLIF ( 64, + ( 56 ) ) AS col1
----
-64

query I rowsort
SELECT DISTINCT - 74 + + 76
----
2

query I rowsort
SELECT ALL + 56 + + 44 * + ( + ( + NULLIF ( 34, ( 18 ) ) ) )
----
1552

query I rowsort
SELECT 88 * ( COALESCE ( 97, + 45 * - 76 - + CASE + 50 WHEN - 55 THEN ( 15 ) WHEN + 95 THEN NULL END ) ) col0
----
8536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9740
SELECT CAST( NULL AS DECIMAL ) * + COALESCE ( 42, 2, + NULLIF ( 71, + CAST( - 41 AS SIGNED ) + 97 ) + - MIN( - 26 ), 17 ) - + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT CAST ( NULL AS REAL ) * + COALESCE ( 42, 2, + NULLIF ( 71, + CAST ( - 41 AS INTEGER ) + 97 ) + - MIN ( - 26 ), 17 ) - + 21 AS col2
----
NULL

query I rowsort
SELECT ALL + 29 * + 21 AS col1
----
609

query I rowsort
SELECT + 7 + + 93 AS col0
----
100

query I rowsort
SELECT ALL + 10 - + 29 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT - 16 * - COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9744
SELECT - 16 * - COUNT ( * ) AS col0
----
16

query I rowsort
SELECT ALL 60 - 17
----
43

query I rowsort
SELECT 64 + + 47
----
111

query I rowsort
SELECT ALL + 44 * - 62
----
-2728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9748
SELECT ALL CASE WHEN NOT + NULLIF ( COUNT( * ), + 7 ) IS NOT NULL THEN NULL ELSE COUNT( * ) DIV - 20 END
----
0

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL CASE WHEN NOT + NULLIF ( COUNT ( * ), + 7 ) IS NOT NULL THEN NULL ELSE COUNT ( * ) / - 20 END
----
0

query I rowsort
SELECT 3 + + 3
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT - COUNT( * ) * + ( + 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-9750
SELECT - COUNT ( * ) * + ( + 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT DISTINCT + ( + 58 ) * - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT + ( + 58 ) * - COUNT ( * )
----
-58

query I rowsort
SELECT ALL 89 * + 18 AS col1
----
1602

query I rowsort
SELECT DISTINCT - 20 * 23 col2
----
-460

query I rowsort
SELECT DISTINCT 47 * 13 AS col0
----
611

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT DISTINCT - SUM( 11 ) + 5 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT - SUM ( 11 ) + 5 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT NULLIF ( + - 60, + 41 + + ( + 40 ) ) * COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-9756
SELECT NULLIF ( + - 60, + 41 + + ( + 40 ) ) * COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT ALL COALESCE ( - + ( - 33 ), + ( + 87 ) - 41, + NULLIF ( + COUNT( * ), 66 ) * 80 ) + - 43
----
-10

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL COALESCE ( - + ( - 33 ), + ( + 87 ) - 41, + NULLIF ( + COUNT ( * ), 66 ) * 80 ) + - 43
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT ALL 68 + + ( SUM( 25 ) )
----
93

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL 68 + + ( SUM ( 25 ) )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9759
SELECT 28 + 59 + - 84 DIV 94 DIV MIN( - 92 )
----
87

skipif mysql # not compatible
query I rowsort label-9759
SELECT 28 + 59 + - 84 / 94 / MIN ( - 92 )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9760
SELECT 73 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT 73 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 32 + 25
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT ALL 56 + + COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL 56 + + COUNT ( * ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9763
SELECT CAST( + + 72 AS SIGNED ) + 68 * 73 col2
----
5036

skipif mysql # not compatible
query I rowsort label-9763
SELECT CAST ( + + 72 AS INTEGER ) + 68 * 73 col2
----
5036

query I rowsort
SELECT ALL - 60 * 36 * 79 AS col1
----
-170640

query I rowsort
SELECT 24 * + 46 + + 92 AS col2
----
1196

query I rowsort
SELECT ( 89 ) * 59
----
5251

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT + CASE - - NULLIF ( + 52, 2 ) WHEN - 22 * + 54 THEN + 92 END / - 88 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT + CASE - - NULLIF ( + 52, 2 ) WHEN - 22 * + 54 THEN + 92 END / - 88 + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 96 * 0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9769
SELECT CAST( + + ( + 47 ) AS SIGNED ) DIV 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9769
SELECT CAST ( + + ( + 47 ) AS INTEGER ) / 82 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9770
SELECT 51 * + COALESCE ( + CAST( NULL AS SIGNED ), - NULLIF ( + SUM( DISTINCT - 69 ), CASE + COUNT( * ) WHEN 31 THEN 3 ELSE NULL END ) ) + 58 * 9
----
4041

skipif mysql # not compatible
query I rowsort label-9770
SELECT 51 * + COALESCE ( + CAST ( NULL AS INTEGER ), - NULLIF ( + SUM ( DISTINCT - 69 ), CASE + COUNT ( * ) WHEN 31 THEN 3 ELSE NULL END ) ) + 58 * 9
----
4041

query I rowsort
SELECT DISTINCT 13 * + 25 AS col0
----
325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9772
SELECT 98 + - - 65 DIV + CASE COUNT( * ) WHEN - 83 * + SUM( + 15 * 36 ) THEN - ( + COUNT( * ) ) * + 19 WHEN - 43 DIV 65 THEN + 33 + 99 ELSE - 28 END AS col0
----
96

skipif mysql # not compatible
query I rowsort label-9772
SELECT 98 + - - 65 / + CASE COUNT ( * ) WHEN - 83 * + SUM ( + 15 * 36 ) THEN - ( + COUNT ( * ) ) * + 19 WHEN - 43 / 65 THEN + 33 + 99 ELSE - 28 END AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT ALL + MAX( - + 63 ) * NULLIF ( - 52, - 98 * CASE 88 WHEN 43 * + 41 THEN NULL ELSE 80 + NULLIF ( 76, 24 ) END + ( - COUNT( * ) ) ) AS col1
----
3276

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL + MAX ( - + 63 ) * NULLIF ( - 52, - 98 * CASE 88 WHEN 43 * + 41 THEN NULL ELSE 80 + NULLIF ( 76, 24 ) END + ( - COUNT ( * ) ) ) AS col1
----
3276

query I rowsort
SELECT DISTINCT 19 - + - 85 * 4
----
359

query I rowsort
SELECT - 13 * - + 75
----
975

query I rowsort
SELECT + 80 * - - 77 * 62 + 87 * - 98 AS col0
----
373394

query I rowsort
SELECT 58 - + 36 + - 50 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT COUNT( * ) * + COUNT( * ) * - 17 - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-9778
SELECT COUNT ( * ) * + COUNT ( * ) * - 17 - COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT - COUNT( * ) * ( COALESCE ( - ( + 59 ), + ( - 86 ) ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9779
SELECT - COUNT ( * ) * ( COALESCE ( - ( + 59 ), + ( - 86 ) ) ) AS col0
----
59

query I rowsort
SELECT DISTINCT + 16 * 28 - + 33
----
415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9781
SELECT DISTINCT + 5 DIV + ( COALESCE ( - COUNT( * ), 93 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT + 5 / + ( COALESCE ( - COUNT ( * ), 93 ) )
----
-5

query I rowsort
SELECT 97 * + 16 - 54 * - ( 38 ) AS col1
----
3604

query I rowsort
SELECT ALL - 13 + 36
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL ( + MIN( 2 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL ( + MIN ( 2 ) ) AS col1
----
2

query I rowsort
SELECT + 70 * ( - 2 ) * + 2 + 0 AS col1
----
-280

query I rowsort
SELECT ALL - 22 + - ( + 21 ) col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT ALL + - 80 + COUNT( * ) col0
----
-79

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL + - 80 + COUNT ( * ) col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT + COUNT( * ) + + 41 col2
----
42

skipif mysql # not compatible
query I rowsort label-9788
SELECT + COUNT ( * ) + + 41 col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9789
SELECT - 63 AS col0, NULLIF ( - COUNT( * ), + 58 ) * 36
----
-63
-36

skipif mysql # not compatible
query II rowsort label-9789
SELECT - 63 AS col0, NULLIF ( - COUNT ( * ), + 58 ) * 36
----
-63
-36

query I rowsort
SELECT 31 + - 61 + - 10 + 24 AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9791
SELECT DISTINCT 21 + + - MAX( - ( 48 ) ) * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT 21 + + - MAX ( - ( 48 ) ) * + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT 80 + - + 20 + - - 7 AS col0
----
67

query I rowsort
SELECT ALL 56 + + 9 + NULLIF ( 48, 21 ) + - 85 * + 91 AS col1
----
-7622

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT ALL 15 + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL 15 + COUNT ( * ) AS col0
----
16

query I rowsort
SELECT DISTINCT 73 * 9 AS col0
----
657

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9796
SELECT ALL 1 * - ( + COUNT( * ) ) - - 82 DIV - 74 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL 1 * - ( + COUNT ( * ) ) - - 82 / - 74 AS col1
----
-2

query II rowsort
SELECT + 40, + ( + 75 ) * + 26 AS col1
----
40
1950

onlyif mysql # DIV for integer division: 
query I rowsort label-9798
SELECT 56 DIV + 82 - - NULLIF ( 83, - 54 ) * ( - 33 )
----
-2739

skipif mysql # not compatible
query I rowsort label-9798
SELECT 56 / + 82 - - NULLIF ( 83, - 54 ) * ( - 33 )
----
-2739

query I rowsort
SELECT + CASE 31 WHEN + 94 THEN 85 WHEN 21 * 26 THEN NULL ELSE NULL END * 87 AS col2
----
NULL

query I rowsort
SELECT CASE WHEN NOT ( + 20 ) = NULL THEN + 85 / 75 - + 15 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT DISTINCT 13 * - MIN( ALL - 82 ) - 99 * 0
----
1066

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT 13 * - MIN ( ALL - 82 ) - 99 * 0
----
1066

query II rowsort
SELECT DISTINCT + 14 col1, - 87 * - 36 * 65
----
14
203580

onlyif mysql # DIV for integer division: 
query I rowsort label-9803
SELECT ALL 42 DIV + - 98 col2
----
0

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL 42 / + - 98 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT + 91 * + + 43 - - COUNT( * ) * + 46
----
3959

skipif mysql # not compatible
query I rowsort label-9804
SELECT + 91 * + + 43 - - COUNT ( * ) * + 46
----
3959

query I rowsort
SELECT ALL - + 12 * + 37 * 64
----
-28416

query I rowsort
SELECT + + 33 * 3 + - 34 + + 44
----
109

query I rowsort
SELECT + 64 + 85 AS col0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT + - SUM( ALL - 55 )
----
55

skipif mysql # not compatible
query I rowsort label-9808
SELECT + - SUM ( ALL - 55 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9809
SELECT + MAX( ALL + 72 ) * ( - 40 ) DIV - MIN( - 80 ) + - COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9809
SELECT + MAX ( ALL + 72 ) * ( - 40 ) / - MIN ( - 80 ) + - COUNT ( * ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT COALESCE ( + COUNT( * ), - ( 80 ) * 59 )
----
1

skipif mysql # not compatible
query I rowsort label-9810
SELECT COALESCE ( + COUNT ( * ), - ( 80 ) * 59 )
----
1

query I rowsort
SELECT DISTINCT 17 * 69
----
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT 67 * ( - - 62 ) + - COALESCE ( + NULLIF ( + 23, + MIN( ALL 60 ) + - ( - 38 ) ), 79 ) - - 82 * + 11
----
5033

skipif mysql # not compatible
query I rowsort label-9812
SELECT 67 * ( - - 62 ) + - COALESCE ( + NULLIF ( + 23, + MIN ( ALL 60 ) + - ( - 38 ) ), 79 ) - - 82 * + 11
----
5033

query I rowsort
SELECT ALL + + 32 * + - 12 + 52 * + 48
----
2112

query I rowsort
SELECT + 5 + 27
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9815
SELECT ALL + + 44 AS col1, 16 * - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - - 56
----
44
NULL

skipif mysql # not compatible
query II rowsort label-9815
SELECT ALL + + 44 AS col1, 16 * - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - - 56
----
44
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9816
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) * - CAST( COUNT( * ) AS SIGNED ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) * - CAST ( COUNT ( * ) AS INTEGER ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT ALL - COUNT( * ) + + 51 + - COUNT( * ) * - 49 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL - COUNT ( * ) + + 51 + - COUNT ( * ) * - 49 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT - + 6 + + 43 + - 55 * - COUNT( * ) col0
----
92

skipif mysql # not compatible
query I rowsort label-9818
SELECT - + 6 + + 43 + - 55 * - COUNT ( * ) col0
----
92

query I rowsort
SELECT DISTINCT - + ( - + 50 ) + - - 6 AS col2
----
56

query I rowsort
SELECT ALL + - 28 + 62 - 24 AS col2
----
10

query I rowsort
SELECT - - 82 + - 79 AS col0
----
3

query I rowsort
SELECT + 7 * - 77 col0
----
-539

query I rowsort
SELECT ALL - - 15 * + - 7
----
-105

query I rowsort
SELECT - + 54 + + 64
----
10

query I rowsort
SELECT - 91 + + 44 AS col0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9826
SELECT - 27 DIV COALESCE ( - 64, - + 88 DIV - 24 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9826
SELECT - 27 / COALESCE ( - 64, - + 88 / - 24 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL - SUM( DISTINCT + + 13 ) * + 20 * + COALESCE ( 29, + 96 ) AS col2
----
-7540

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL - SUM ( DISTINCT + + 13 ) * + 20 * + COALESCE ( 29, + 96 ) AS col2
----
-7540

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9828
SELECT ALL CAST( + 79 AS SIGNED ) AS col0, + NULLIF ( 74, - AVG ( - 42 ) ) AS col1
----
79
74

skipif mysql # not compatible
query II rowsort label-9828
SELECT ALL CAST ( + 79 AS INTEGER ) AS col0, + NULLIF ( 74, - AVG ( - 42 ) ) AS col1
----
79
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT DISTINCT + CASE + 11 WHEN - 46 + COUNT( * ) * 76 THEN NULL WHEN - 24 THEN - 11 * + 14 WHEN - 73 THEN ( 77 ) ELSE NULL END - + MAX( DISTINCT + 24 ) * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT + CASE + 11 WHEN - 46 + COUNT ( * ) * 76 THEN NULL WHEN - 24 THEN - 11 * + 14 WHEN - 73 THEN ( 77 ) ELSE NULL END - + MAX ( DISTINCT + 24 ) * - 55
----
NULL

query I rowsort
SELECT ALL + 69 - + ( + 16 ) + - + 29 + 42 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT - NULLIF ( - COUNT( * ), + 68 ) + - 88 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9831
SELECT - NULLIF ( - COUNT ( * ), + 68 ) + - 88 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT - 61 - - - 63 + 96 + 19 - 44 * + COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-9832
SELECT - 61 - - - 63 + 96 + 19 - 44 * + COUNT ( * ) AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9833
SELECT ALL - 97 DIV 48 * 33 * - COALESCE ( - CAST( 14 AS SIGNED ), 79 + + MAX( 58 ) DIV AVG ( + 91 * + 69 + 96 ), - NULLIF ( - 55, + MAX( - 0 ) * - 99 ) ) * + 12
----
-11088

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL - 97 / 48 * 33 * - COALESCE ( - CAST ( 14 AS INTEGER ), 79 + + MAX ( 58 ) / AVG ( + 91 * + 69 + 96 ), - NULLIF ( - 55, + MAX ( - 0 ) * - 99 ) ) * + 12
----
-11088

query I rowsort
SELECT + 43 * - - 83
----
3569

onlyif mysql # DIV for integer division: 
query I rowsort label-9835
SELECT DISTINCT 8 DIV - + 90 * - + 83
----
0

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT 8 / - + 90 * - + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT - NULLIF ( - 57, + COUNT( * ) - 16 + - 73 * 93 ) + - 70
----
-13

skipif mysql # not compatible
query I rowsort label-9836
SELECT - NULLIF ( - 57, + COUNT ( * ) - 16 + - 73 * 93 ) + - 70
----
-13

query I rowsort
SELECT - 7 * + 6 * 67
----
-2814

query I rowsort
SELECT ALL 19 * + + 73
----
1387

onlyif mysql # DIV for integer division: 
query I rowsort label-9839
SELECT 61 * 8 * - 17 * ( - 9 ) DIV 17 + 74
----
4466

skipif mysql # not compatible
query I rowsort label-9839
SELECT 61 * 8 * - 17 * ( - 9 ) / 17 + 74
----
4466

query I rowsort
SELECT - 15 * + ( - 11 ) + 63
----
228

onlyif mysql # aggregate syntax: 
query II rowsort label-9841
SELECT ALL + 98 * - COUNT( * ) AS col1, + 62
----
-98
62

skipif mysql # not compatible
query II rowsort label-9841
SELECT ALL + 98 * - COUNT ( * ) AS col1, + 62
----
-98
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9842
SELECT 71 DIV - ( + - 93 ) + + COUNT( * ) + 12 DIV 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9842
SELECT 71 / - ( + - 93 ) + + COUNT ( * ) + 12 / 36 AS col1
----
1

query I rowsort
SELECT DISTINCT + 65 * 61 + + + 65 + - 42 AS col2
----
3988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9844
SELECT DISTINCT - 98 * 16 + 37 - + - 57 DIV - COUNT( * ) + 28
----
-1560

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT - 98 * 16 + 37 - + - 57 / - COUNT ( * ) + 28
----
-1560

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9845
SELECT + - CAST( NULL AS DECIMAL ) * - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT + - CAST ( NULL AS REAL ) * - - 49
----
NULL

query I rowsort
SELECT ALL + 55 * - 31 + - 39
----
-1744

query II rowsort
SELECT + - ( - 88 ) AS col2, - NULLIF ( + 96, - 80 )
----
88
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT ALL - - 79 * - - 7 + + 15 + + ( 39 ) + - COUNT( * )
----
606

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL - - 79 * - - 7 + + 15 + + ( 39 ) + - COUNT ( * )
----
606

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL - + 48 * + + COUNT( * ) + + 9
----
-39

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL - + 48 * + + COUNT ( * ) + + 9
----
-39

query I rowsort
SELECT + 69 * - + 18 AS col0
----
-1242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9851
SELECT + CAST( - 54 AS SIGNED ) - - 9
----
-45

skipif mysql # not compatible
query I rowsort label-9851
SELECT + CAST ( - 54 AS INTEGER ) - - 9
----
-45

query I rowsort
SELECT - + 94 * + + 96 AS col1
----
-9024

query I rowsort
SELECT ALL - 89 * - 43 AS col1
----
3827

query I rowsort
SELECT ALL 35 * + 72
----
2520

query I rowsort
SELECT ALL + 25 * 47 + + 3
----
1178

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT NULLIF ( + ( + + COUNT( + 51 ) ), + 9 + 43 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT NULLIF ( + ( + + COUNT ( + 51 ) ), + 9 + 43 ) AS col1
----
1

query I rowsort
SELECT ALL 9 * + 45 col1
----
405

query I rowsort
SELECT 57 * 80 * 23
----
104880

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT 47 * - - COUNT( * ) col2
----
47

skipif mysql # not compatible
query I rowsort label-9859
SELECT 47 * - - COUNT ( * ) col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9860
SELECT CAST( MIN( ALL 89 ) AS SIGNED ) + 53
----
142

skipif mysql # not compatible
query I rowsort label-9860
SELECT CAST ( MIN ( ALL 89 ) AS INTEGER ) + 53
----
142

query II rowsort
SELECT 94 AS col0, 49
----
94
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9862
SELECT 1 - - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT 1 - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 72 * + 59
----
4248

onlyif mysql # DIV for integer division: 
query I rowsort label-9864
SELECT 91 DIV + 62
----
1

skipif mysql # not compatible
query I rowsort label-9864
SELECT 91 / + 62
----
1

query I rowsort
SELECT 97 * 43 * - - 91 AS col2
----
379561

query I rowsort
SELECT DISTINCT + 93 * 10
----
930

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT 93 * - 39 - - COUNT( * ) * + - ( - + 14 )
----
-3613

skipif mysql # not compatible
query I rowsort label-9867
SELECT 93 * - 39 - - COUNT ( * ) * + - ( - + 14 )
----
-3613

onlyif mysql # DIV for integer division: 
query I rowsort label-9868
SELECT 16 DIV - 31 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9868
SELECT 16 / - 31 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9869
SELECT + - 30 DIV 26 - MAX( - - 63 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9869
SELECT + - 30 / 26 - MAX ( - - 63 ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT + 60 + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-9870
SELECT + 60 + COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT + - MAX( + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-9871
SELECT + - MAX ( + 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL + 45 + - + SUM( ALL - 97 )
----
142

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL + 45 + - + SUM ( ALL - 97 )
----
142

query I rowsort
SELECT ALL - 75 + 59
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT DISTINCT + + 86 + - NULLIF ( 22, - - COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT + + 86 + - NULLIF ( 22, - - COUNT ( * ) )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT CAST( ( + ( + 74 ) ) AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-9875
SELECT CAST ( ( + ( + 74 ) ) AS INTEGER )
----
74

query I rowsort
SELECT ALL 40 + 78 * + - 87 + - + 48
----
-6794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9877
SELECT - - COUNT( * ) DIV - 35 - + 55 * + 10 AS col1
----
-550

skipif mysql # not compatible
query I rowsort label-9877
SELECT - - COUNT ( * ) / - 35 - + 55 * + 10 AS col1
----
-550

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL - COUNT( * ) * - + 44 * - - 41 col1
----
1804

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - COUNT ( * ) * - + 44 * - - 41 col1
----
1804

query I rowsort
SELECT DISTINCT - 93 * COALESCE ( + + 82, - 39 * 34 + - 33 * + 88 + 1 ) + 14
----
-7612

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT ALL + 34 + - - COALESCE ( COUNT( * ), 27 ) * - 64 * + 48 + - 57 col0
----
-3095

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL + 34 + - - COALESCE ( COUNT ( * ), 27 ) * - 64 * + 48 + - 57 col0
----
-3095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT CAST( NULL AS SIGNED ) + + + MIN( - - 90 ) + + + NULLIF ( - - 90, 12 ) * 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT CAST ( NULL AS INTEGER ) + + + MIN ( - - 90 ) + + + NULLIF ( - - 90, 12 ) * 39 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT COUNT( * ) * - 86 - - 41
----
-45

skipif mysql # not compatible
query I rowsort label-9882
SELECT COUNT ( * ) * - 86 - - 41
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT DISTINCT + NULLIF ( + - 3, + + COUNT( * ) * + ( + 16 ) ) * + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT + NULLIF ( + - 3, + + COUNT ( * ) * + ( + 16 ) ) * + COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT ALL 42 - - + COALESCE ( + 94, + MIN( + - 75 ) ) * 63
----
5964

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL 42 - - + COALESCE ( + 94, + MIN ( + - 75 ) ) * 63
----
5964

query I rowsort
SELECT DISTINCT - ( + + 17 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT DISTINCT - - ( - - CASE - + COUNT( * ) WHEN + 83 THEN + 47 + - 51 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT - - ( - - CASE - + COUNT ( * ) WHEN + 83 THEN + 47 + - 51 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9887
SELECT DISTINCT - NULLIF ( - + COUNT( * ), + COUNT( * ) * CAST( NULL AS SIGNED ) * - - COUNT( * ) * 68 ) - 27 * 82 AS col0
----
-2213

skipif mysql # not compatible
query I rowsort label-9887
SELECT DISTINCT - NULLIF ( - + COUNT ( * ), + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * 68 ) - 27 * 82 AS col0
----
-2213

query I rowsort
SELECT ( 30 ) * 52 + + 49 AS col1
----
1609

onlyif mysql # DIV for integer division: 
query I rowsort label-9889
SELECT DISTINCT 62 DIV 56
----
1

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT 62 / 56
----
1

query I rowsort
SELECT CASE + 66 WHEN + 41 + - ( - - 85 ) THEN - 83 * 15 ELSE NULL END + - COALESCE ( 26, 60 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9891
SELECT COUNT( * ) DIV + NULLIF ( + 14, + 86 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9891
SELECT COUNT ( * ) / + NULLIF ( + 14, + 86 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT ( + + 63 ) * + - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-9892
SELECT ( + + 63 ) * + - COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9893
SELECT - 25 AS col2, 5 + + COALESCE ( - + 18, COUNT( * ) * + COUNT( ALL + 86 ) ) * COUNT( * ) AS col2
----
-25
-13

skipif mysql # not compatible
query II rowsort label-9893
SELECT - 25 AS col2, 5 + + COALESCE ( - + 18, COUNT ( * ) * + COUNT ( ALL + 86 ) ) * COUNT ( * ) AS col2
----
-25
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9894
SELECT 62 + - 13 DIV + ( - COUNT( ALL 38 ) ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9894
SELECT 62 + - 13 / + ( - COUNT ( ALL 38 ) ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT 1 + + + 83 + - COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-9895
SELECT 1 + + + 83 + - COUNT ( * ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9896
SELECT ALL 81, 44 * COUNT( * ) + + 98 col2
----
81
142

skipif mysql # not compatible
query II rowsort label-9896
SELECT ALL 81, 44 * COUNT ( * ) + + 98 col2
----
81
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9897
SELECT ( - 87 ) DIV MIN( 75 ) + 18 col1
----
17

skipif mysql # not compatible
query I rowsort label-9897
SELECT ( - 87 ) / MIN ( 75 ) + 18 col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT ALL 61 * - + 48 * + - COUNT( * )
----
2928

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL 61 * - + 48 * + - COUNT ( * )
----
2928

onlyif mysql # aggregate syntax: 
query II rowsort label-9899
SELECT ALL 39 AS col1, - NULLIF ( 63, AVG ( 38 ) * - + 1 ) * + 70 + NULLIF ( COUNT( * ), 10 - COUNT( * ) ) col0
----
39
-4409

skipif mysql # not compatible
query II rowsort label-9899
SELECT ALL 39 AS col1, - NULLIF ( 63, AVG ( 38 ) * - + 1 ) * + 70 + NULLIF ( COUNT ( * ), 10 - COUNT ( * ) ) col0
----
39
-4409

query I rowsort
SELECT DISTINCT 55 * + 85
----
4675

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT COUNT( DISTINCT + - 96 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9901
SELECT COUNT ( DISTINCT + - 96 ) * COUNT ( * )
----
1

query I rowsort
SELECT ALL 83 + + 69 + - + 52 AS col0
----
100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9903
SELECT 87 + 20 / + 36 + + - 32 + + ( + CAST( NULL AS DECIMAL ) ) + + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT 87 + 20 / + 36 + + - 32 + + ( + CAST ( NULL AS REAL ) ) + + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT CASE + 33 WHEN + 5 THEN NULL ELSE COUNT( * ) / - 56 + + 63 + ( + 9 ) END - - ( CASE + 9 WHEN - ( 27 ) + 44 THEN + 52 + 40 WHEN 36 THEN - 46 * + NULLIF ( 62 * - 35, COUNT( * ) ) + - MIN( 13 ) * + 96 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT CASE + 33 WHEN + 5 THEN NULL ELSE COUNT ( * ) / - 56 + + 63 + ( + 9 ) END - - ( CASE + 9 WHEN - ( 27 ) + 44 THEN + 52 + 40 WHEN 36 THEN - 46 * + NULLIF ( 62 * - 35, COUNT ( * ) ) + - MIN ( 13 ) * + 96 ELSE NULL END )
----
NULL

query II rowsort
SELECT 17 AS col0, - 62 * + 61 * - - 65 AS col1
----
17
-245830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT - 14 + - 23 * ( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9906
SELECT - 14 + - 23 * ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9907
SELECT ALL - CAST( NULL AS SIGNED ) * 10 + ( 86 ) - - + 55 * + - 89 * MIN( + 17 ) + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL - CAST ( NULL AS INTEGER ) * 10 + ( 86 ) - - + 55 * + - 89 * MIN ( + 17 ) + 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT ALL - 39 * 79 + - MAX( ALL + 88 ) AS col0
----
-3169

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL - 39 * 79 + - MAX ( ALL + 88 ) AS col0
----
-3169

query I rowsort
SELECT DISTINCT - 88 * - 43 * 8 + - + 35 AS col2
----
30237

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT - 4 * - COUNT( * ) + 58 - - 37 - - 48 + - - 32 AS col1
----
179

skipif mysql # not compatible
query I rowsort label-9910
SELECT - 4 * - COUNT ( * ) + 58 - - 37 - - 48 + - - 32 AS col1
----
179

query I rowsort
SELECT ALL + 55 * 59 * + 16 col1
----
51920

query II rowsort
SELECT DISTINCT - - 72 AS col1, - 14 * + 72 * + + 62 * - 94 * + 85 AS col1
----
72
499343040

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT + COUNT( * ) * + 87 col0
----
87

skipif mysql # not compatible
query I rowsort label-9913
SELECT + COUNT ( * ) * + 87 col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9914
SELECT ALL - + CAST( MAX( - 8 ) AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL - + CAST ( MAX ( - 8 ) AS INTEGER )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9915
SELECT 53 DIV + ( + 44 ) + + 68 + + - 93 DIV + + 76 + - 30 * NULLIF ( + 96, MAX( ALL + 14 ) ) + 51 AS col1
----
-2761

skipif mysql # not compatible
query I rowsort label-9915
SELECT 53 / + ( + 44 ) + + 68 + + - 93 / + + 76 + - 30 * NULLIF ( + 96, MAX ( ALL + 14 ) ) + 51 AS col1
----
-2761

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT 17 + + CASE 38 WHEN 68 THEN NULL WHEN - 92 THEN 90 * - 31 END - MAX( ALL - 24 ) * 15 * - NULLIF ( - 53, + 36 + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT 17 + + CASE 38 WHEN 68 THEN NULL WHEN - 92 THEN 90 * - 31 END - MAX ( ALL - 24 ) * 15 * - NULLIF ( - 53, + 36 + 27 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9917
SELECT ALL + + 8 DIV - 94 + - 74 DIV 64 col1
----
-1

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + + 8 / - 94 + - 74 / 64 col1
----
-1

query I rowsort
SELECT DISTINCT - COALESCE ( + 57, 6 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT - 96 * - CASE COUNT( * ) WHEN + 73 * - 32 THEN NULL ELSE - 30 * MAX( ( 74 ) + 96 ) END AS col0
----
-489600

skipif mysql # not compatible
query I rowsort label-9919
SELECT - 96 * - CASE COUNT ( * ) WHEN + 73 * - 32 THEN NULL ELSE - 30 * MAX ( ( 74 ) + 96 ) END AS col0
----
-489600

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT - COUNT( * ) * ( - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-9920
SELECT - COUNT ( * ) * ( - 28 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9921
SELECT ALL + ( + 43 ) AS col0, CASE COUNT( * ) WHEN CAST( + SUM( DISTINCT 33 ) AS SIGNED ) THEN - 35 / - ( + COUNT( * ) / + 61 ) WHEN 37 THEN NULL WHEN - 52 THEN 4 WHEN ( 84 ) THEN NULL END
----
43
NULL

skipif mysql # not compatible
query II rowsort label-9921
SELECT ALL + ( + 43 ) AS col0, CASE COUNT ( * ) WHEN CAST ( + SUM ( DISTINCT 33 ) AS INTEGER ) THEN - 35 / - ( + COUNT ( * ) / + 61 ) WHEN 37 THEN NULL WHEN - 52 THEN 4 WHEN ( 84 ) THEN NULL END
----
43
NULL

query I rowsort
SELECT ALL 54 * + 82 * - ( - 69 ) col2
----
305532

query I rowsort
SELECT + NULLIF ( + ( + + 37 ), - - 78 + - - 46 ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT - + 31 * COUNT( * ) * COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-9924
SELECT - + 31 * COUNT ( * ) * COUNT ( * )
----
-31

query II rowsort
SELECT DISTINCT + 28 * 11, 5 AS col1
----
308
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT SUM( DISTINCT + + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-9926
SELECT SUM ( DISTINCT + + 38 )
----
38

query I rowsort
SELECT ALL + 10 * - 33 * 39 AS col0
----
-12870

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT - SUM( DISTINCT + 20 ) - 64 * 63 + - - 49 AS col0
----
-4003

skipif mysql # not compatible
query I rowsort label-9928
SELECT - SUM ( DISTINCT + 20 ) - 64 * 63 + - - 49 AS col0
----
-4003

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT + ( + + CASE 81 WHEN + - 2 + + 84 THEN NULL WHEN + 47 THEN - 75 ELSE COUNT( * ) END ) * 64
----
64

skipif mysql # not compatible
query I rowsort label-9929
SELECT + ( + + CASE 81 WHEN + - 2 + + 84 THEN NULL WHEN + 47 THEN - 75 ELSE COUNT ( * ) END ) * 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT - 38 - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-9930
SELECT - 38 - COUNT ( * )
----
-39

query I rowsort
SELECT ALL NULLIF ( + 14, 98 * - 80 )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9932
SELECT ALL COALESCE ( - 2, - NULLIF ( + + ( 98 ), CAST( + + 92 AS SIGNED ) / - 7 + + CAST( 57 AS SIGNED ) ) + 66 ) + - 88 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL COALESCE ( - 2, - NULLIF ( + + ( 98 ), CAST ( + + 92 AS INTEGER ) / - 7 + + CAST ( 57 AS INTEGER ) ) + 66 ) + - 88 AS col1
----
-90

query I rowsort
SELECT ALL NULLIF ( - 34, + + 17 + 12 )
----
-34

query I rowsort
SELECT ALL ( + 45 ) + + 98 AS col2
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-9935
SELECT + 2 DIV 60 * + - 85 * - + 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9935
SELECT + 2 / 60 * + - 85 * - + 12 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT - NULLIF ( + 2, SUM( + CASE + 91 WHEN + - 48 * + 41 THEN NULL WHEN 26 + 21 * 47 THEN NULL ELSE 82 * + 50 END ) * COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-9936
SELECT - NULLIF ( + 2, SUM ( + CASE + 91 WHEN + - 48 * + 41 THEN NULL WHEN 26 + 21 * 47 THEN NULL ELSE 82 * + 50 END ) * COUNT ( * ) )
----
-2

query I rowsort
SELECT ALL NULLIF ( - - 39, + 89 ) + - NULLIF ( + 48, 51 + + + 79 + 52 ) AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9938
SELECT - NULLIF ( - 62, 40 ) AS col0, + CAST( NULL AS SIGNED ) * - - 41 AS col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-9938
SELECT - NULLIF ( - 62, 40 ) AS col0, + CAST ( NULL AS INTEGER ) * - - 41 AS col2
----
62
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9939
SELECT + 66 DIV + 46 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9939
SELECT + 66 / + 46 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9940
SELECT + 71 + + ( 63 ) - - + 27 DIV + + 35 col1
----
134

skipif mysql # not compatible
query I rowsort label-9940
SELECT + 71 + + ( 63 ) - - + 27 / + + 35 col1
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT ALL COUNT( * ) * - + NULLIF ( - - 58, - + 82 * - - 65 + + + 72 )
----
-58

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL COUNT ( * ) * - + NULLIF ( - - 58, - + 82 * - - 65 + + + 72 )
----
-58

query III rowsort
SELECT ALL 48 + - 29 col0, 10, + - 91 AS col1
----
19
10
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT ALL 16 + 13 * - - COUNT( * ) * + 81
----
1069

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL 16 + 13 * - - COUNT ( * ) * + 81
----
1069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9944
SELECT ALL + 28 + SUM( DISTINCT + + 57 ) - 69 DIV + + 47 * + CAST( - - COUNT( ALL - COALESCE ( - ( - 38 ), 16 ) ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL + 28 + SUM ( DISTINCT + + 57 ) - 69 / + + 47 * + CAST ( - - COUNT ( ALL - COALESCE ( - ( - 38 ), 16 ) ) AS INTEGER )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT - CASE + + COUNT( * ) WHEN + CASE + ( + 65 ) WHEN + 97 / MIN( DISTINCT - 58 ) - COUNT( * ) * - 39 THEN 45 * - 78 + 14 WHEN - CASE 91 WHEN 20 + 40 * ( CASE ( - 38 ) WHEN - 19 - 81 * - 75 THEN NULL WHEN 86 THEN - 68 + + CASE - 39 WHEN - 56 THEN + 17 + - 39 END WHEN 93 THEN 24 * 80 ELSE NULL END ) THEN ( 50 ) WHEN + COUNT( * ) THEN 89 + - 54 END * - 28 + - 85 THEN 2 ELSE NULL END * 50 - MIN( DISTINCT ( - 12 ) ) THEN AVG ( ALL 86 ) WHEN CASE - COUNT( * ) WHEN - 80 THEN NULL WHEN - 46 THEN 29 END THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT - CASE + + COUNT ( * ) WHEN + CASE + ( + 65 ) WHEN + 97 / MIN ( DISTINCT - 58 ) - COUNT ( * ) * - 39 THEN 45 * - 78 + 14 WHEN - CASE 91 WHEN 20 + 40 * ( CASE ( - 38 ) WHEN - 19 - 81 * - 75 THEN NULL WHEN 86 THEN - 68 + + CASE - 39 WHEN - 56 THEN + 17 + - 39 END WHEN 93 THEN 24 * 80 ELSE NULL END ) THEN ( 50 ) WHEN + COUNT ( * ) THEN 89 + - 54 END * - 28 + - 85 THEN 2 ELSE NULL END * 50 - MIN ( DISTINCT ( - 12 ) ) THEN AVG ( ALL 86 ) WHEN CASE - COUNT ( * ) WHEN - 80 THEN NULL WHEN - 46 THEN 29 END THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 59 * - 82
----
4838

query I rowsort
SELECT + - 48 * - ( - - 84 ) AS col0
----
4032

query I rowsort
SELECT - + ( ( 79 ) )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT COUNT( DISTINCT 14 )
----
1

skipif mysql # not compatible
query I rowsort label-9949
SELECT COUNT ( DISTINCT 14 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT - 14 * + - 88 + + COUNT( + 49 ) AS col2
----
1233

skipif mysql # not compatible
query I rowsort label-9950
SELECT - 14 * + - 88 + + COUNT ( + 49 ) AS col2
----
1233

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT DISTINCT + COUNT( DISTINCT 27 )
----
1

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT + COUNT ( DISTINCT 27 )
----
1

query I rowsort
SELECT + 58 + - + 37
----
21

query I rowsort
SELECT ALL + 43 * 47 col2
----
2021

query I rowsort
SELECT DISTINCT + 10 * + + 32 * 45 AS col2
----
14400

query I rowsort
SELECT ( - 29 ) * + 47 - - 0 AS col2
----
-1363

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT ALL + 82 * + NULLIF ( + 77, - 50 / - SUM( 21 ) ) AS col1
----
6314

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL + 82 * + NULLIF ( + 77, - 50 / - SUM ( 21 ) ) AS col1
----
6314

onlyif mysql # DIV for integer division: 
query II rowsort label-9957
SELECT + 47 DIV + - 41 + + - 81 - + 13 - 25 AS col0, 33
----
-120
33

skipif mysql # not compatible
query II rowsort label-9957
SELECT + 47 / + - 41 + + - 81 - + 13 - 25 AS col0, 33
----
-120
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COALESCE ( + 33, - - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COALESCE ( + 33, - - 26 )
----
NULL

query I rowsort
SELECT - 51 * 81
----
-4131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9960
SELECT COUNT( * ) * MAX( DISTINCT - ( 26 ) ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT COUNT ( * ) * MAX ( DISTINCT - ( 26 ) ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 68 - 59 AS col0
----
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT - COALESCE ( 69, 85 + + 36 ) + + 20 * CASE 72 WHEN - CAST( - 60 AS SIGNED ) THEN + CAST( + 20 AS SIGNED ) ELSE CAST( NULL AS SIGNED ) * 61 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT - COALESCE ( 69, 85 + + 36 ) + + 20 * CASE 72 WHEN - CAST ( - 60 AS INTEGER ) THEN + CAST ( + 20 AS INTEGER ) ELSE CAST ( NULL AS INTEGER ) * 61 END AS col1
----
NULL

query I rowsort
SELECT NULLIF ( ( - - 97 ), - 31 ) AS col0
----
97

query I rowsort
SELECT DISTINCT 37 * + + ( + 43 ) + + 59
----
1650

query II rowsort
SELECT - 44 AS col0, + 73
----
-44
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT MIN( - COALESCE ( 21, - 85, + - 62 * - 62 * + NULLIF ( - 31, 93 ) ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-9966
SELECT MIN ( - COALESCE ( 21, - 85, + - 62 * - 62 * + NULLIF ( - 31, 93 ) ) ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT - CASE + - 48 WHEN + + COUNT( DISTINCT - 29 ) * ( - - COUNT( * ) ) THEN - - 95 END + + NULLIF ( - 13, + 1 + - ( + 86 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT - CASE + - 48 WHEN + + COUNT ( DISTINCT - 29 ) * ( - - COUNT ( * ) ) THEN - - 95 END + + NULLIF ( - 13, + 1 + - ( + 86 ) ) AS col0
----
NULL

query I rowsort
SELECT - 25 * + 26 AS col1
----
-650

query I rowsort
SELECT DISTINCT 54 + - + 89 AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT DISTINCT - AVG ( ALL + - CAST( + 79 AS SIGNED ) ) * + - ( ( - - CASE - 25 WHEN - - 5 THEN - 41 WHEN 75 THEN 77 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT - AVG ( ALL + - CAST ( + 79 AS INTEGER ) ) * + - ( ( - - CASE - 25 WHEN - - 5 THEN - 41 WHEN 75 THEN 77 END ) )
----
NULL

query I rowsort
SELECT ALL - 99 + 20 * - 3 - + ( + 86 ) AS col1
----
-245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9972
SELECT + + MIN( 64 ) * - MAX( + 45 ) DIV - 3 + - 73
----
887

skipif mysql # not compatible
query I rowsort label-9972
SELECT + + MIN ( 64 ) * - MAX ( + 45 ) / - 3 + - 73
----
887

query II rowsort
SELECT - - 1 AS col0, 75 AS col2
----
1
75

query I rowsort
SELECT + 76 + + - 45
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL ( - 11 ) - + + ( - MAX( ALL - 36 ) ) + + 29 * - 64
----
-1903

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL ( - 11 ) - + + ( - MAX ( ALL - 36 ) ) + + 29 * - 64
----
-1903

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT + ( + COUNT( * ) ) * 62 + - + 87 + + ( COUNT( * ) ) + 62
----
38

skipif mysql # not compatible
query I rowsort label-9976
SELECT + ( + COUNT ( * ) ) * 62 + - + 87 + + ( COUNT ( * ) ) + 62
----
38

query I rowsort
SELECT + - 11 + - 90 + 89 AS col2
----
-12

query II rowsort
SELECT ALL 48 AS col1, 31 - 94
----
48
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT ALL + CASE - 56 WHEN - - 29 * - COUNT( * ) THEN NULL WHEN + 55 * 79 + - 17 * - 86 + + 70 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL + CASE - 56 WHEN - - 29 * - COUNT ( * ) THEN NULL WHEN + 55 * 79 + - 17 * - 86 + + 70 THEN NULL ELSE COUNT ( * ) END
----
1

query I rowsort
SELECT 57 * + 10 AS col2
----
570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9981
SELECT ( + 1 ) DIV + 80 * - ( + 82 ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9981
SELECT ( + 1 ) / + 80 * - ( + 82 ) + + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - - 24 * + 57
----
1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9983
SELECT ALL - CAST( MAX( DISTINCT + 0 ) AS SIGNED ) AS col1, 28 DIV + 63 - - + 65 AS col1
----
0
65

skipif mysql # not compatible
query II rowsort label-9983
SELECT ALL - CAST ( MAX ( DISTINCT + 0 ) AS INTEGER ) AS col1, 28 / + 63 - - + 65 AS col1
----
0
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9984
SELECT - SUM( - ( - + NULLIF ( - CAST( NULL AS SIGNED ), - - 90 ) ) ) + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT - SUM ( - ( - + NULLIF ( - CAST ( NULL AS INTEGER ), - - 90 ) ) ) + + 38
----
NULL

query II rowsort
SELECT + - 49 AS col0, + 91 * - 75 AS col0
----
-49
-6825

query I rowsort
SELECT DISTINCT - 53 * 7 col1
----
-371

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9987
SELECT - ( - 95 ) * 94 DIV + 5 - + MAX( DISTINCT + 54 )
----
1732

skipif mysql # not compatible
query I rowsort label-9987
SELECT - ( - 95 ) * 94 / + 5 - + MAX ( DISTINCT + 54 )
----
1732

onlyif mysql # aggregate syntax: 
query II rowsort label-9988
SELECT ALL - 70 AS col2, 46 - + 82 + + + COUNT( * )
----
-70
-35

skipif mysql # not compatible
query II rowsort label-9988
SELECT ALL - 70 AS col2, 46 - + 82 + + + COUNT ( * )
----
-70
-35

query I rowsort
SELECT + 28 + + - 45
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT COUNT( * ) * ( 82 ) - + - 91 AS col0
----
173

skipif mysql # not compatible
query I rowsort label-9990
SELECT COUNT ( * ) * ( 82 ) - + - 91 AS col0
----
173

query I rowsort
SELECT 66 * + 83
----
5478

query I rowsort
SELECT ALL 44 + 35
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT DISTINCT 68 + - NULLIF ( - 13, + - COUNT( * ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT 68 + - NULLIF ( - 13, + - COUNT ( * ) ) AS col0
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-9994
SELECT ALL + 11 + + 8 + - 60 DIV - 21 AS col2, 44 AS col1
----
21
44

skipif mysql # not compatible
query II rowsort label-9994
SELECT ALL + 11 + + 8 + - 60 / - 21 AS col2, 44 AS col1
----
21
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ALL - 47 + - 91 + + COUNT( * ) - 66 * - 1 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL - 47 + - 91 + + COUNT ( * ) - 66 * - 1 AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9996
SELECT 91 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9996
SELECT 91 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 38 * 22 * - 50
----
41800

query I rowsort
SELECT DISTINCT 32 + + - 16 + - - 67 * 69 AS col1
----
4639

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9999
SELECT 10 DIV + 55 AS col2, - COUNT( * ) + + 2 AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-9999
SELECT 10 / + 55 AS col2, - COUNT ( * ) + + 2 AS col0
----
0
1

