sqllogictest
Artifact Content
Not logged in

Artifact 73e3b153d55ff9d9b8573719724fae957265e671:


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 )
-