sqllogictest
Artifact Content
Not logged in

Artifact cc5303e9d6247d10f67ab8c409fc622b238b12e7:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 82 * + 3
----
246

query I rowsort
SELECT 88 - NULLIF ( - 52, - - 59 )
----
140

query II rowsort
SELECT 93 col0, 57 + - 0 AS col1
----
93
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3
SELECT ALL 83 DIV + CAST( - ( + COUNT( DISTINCT + - 13 ) ) AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL 83 / + CAST ( - ( + COUNT ( DISTINCT + - 13 ) ) AS INTEGER )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT DISTINCT 58 * + + 3 * - 48 + 50 + + CASE 94 WHEN - + 33 * - + 99 / - 52 THEN - 19 WHEN + COUNT( * ) THEN 79 * 68 ELSE - 81 END
----
-8383

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT 58 * + + 3 * - 48 + 50 + + CASE 94 WHEN - + 33 * - + 99 / - 52 THEN - 19 WHEN + COUNT ( * ) THEN 79 * 68 ELSE - 81 END
----
-8383

query I rowsort
SELECT ALL 1 * - 89
----
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT ALL - MAX( ALL - - 81 ) * + ( - 69 ) + - 67 + - 4 AS col2
----
5518

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL - MAX ( ALL - - 81 ) * + ( - 69 ) + - 67 + - 4 AS col2
----
5518

onlyif mysql # aggregate syntax: 
query II rowsort label-8
SELECT 99 * + - 94 - + 80 AS col1, - ( - 85 ) - - 45 + + 57 * - - COUNT( * ) AS col0
----
-9386
187

skipif mysql # not compatible
query II rowsort label-8
SELECT 99 * + - 94 - + 80 AS col1, - ( - 85 ) - - 45 + + 57 * - - COUNT ( * ) AS col0
----
-9386
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9
SELECT 63 * - - 42 * + 32 * - CAST( - 47 AS SIGNED ) * - 81 + + + COUNT( * ) + + + COUNT( * ) + - 45 AS col1
----
-322346347

skipif mysql # not compatible
query I rowsort label-9
SELECT 63 * - - 42 * + 32 * - CAST ( - 47 AS INTEGER ) * - 81 + + + COUNT ( * ) + + + COUNT ( * ) + - 45 AS col1
----
-322346347

query I rowsort
SELECT 70 + + 14 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT + 50 + + 97 * 20 * - - MAX( - 39 )
----
-75610

skipif mysql # not compatible
query I rowsort label-11
SELECT + 50 + + 97 * 20 * - - MAX ( - 39 )
----
-75610

query I rowsort
SELECT - ( 3 ) * + 26 + - - 44
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT ALL - SUM( + ( ( + 10 ) ) ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL - SUM ( + ( ( + 10 ) ) ) AS col2
----
-10

query I rowsort
SELECT - 16 + + 86
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT ALL + COUNT( * ) - - + 62 * + 40 + - 55 * 86
----
-2249

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL + COUNT ( * ) - - + 62 * + 40 + - 55 * 86
----
-2249

onlyif mysql # DIV for integer division: 
query II rowsort label-16
SELECT DISTINCT + - 91 AS col1, 41 * 89 * 33 DIV + 49 AS col2
----
-91
2457

skipif mysql # not compatible
query II rowsort label-16
SELECT DISTINCT + - 91 AS col1, 41 * 89 * 33 / + 49 AS col2
----
-91
2457

onlyif mysql # aggregate syntax: 
query II rowsort label-17
SELECT DISTINCT + + 42 * + 20 + + - 72, - COUNT( * ) AS col2
----
768
-1

skipif mysql # not compatible
query II rowsort label-17
SELECT DISTINCT + + 42 * + 20 + + - 72, - COUNT ( * ) AS col2
----
768
-1

query I rowsort
SELECT ALL + 36 - - 58 AS col1
----
94

query II rowsort
SELECT + 91 AS col1, - 70
----
91
-70

query I rowsort
SELECT ALL + 67 * + + 36
----
2412

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

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

query II rowsort
SELECT - 25 AS col1, + ( + 18 ) + - 46 * + + 63 AS col2
----
-25
-2880

query I rowsort
SELECT + - 6 + - - 60 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-24
SELECT ALL CAST( 93 AS SIGNED ) DIV 73 + + 85 * + - COUNT( * ) - + - 28 DIV + 77 + - 63 DIV - 76
----
-84

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL CAST ( 93 AS INTEGER ) / 73 + + 85 * + - COUNT ( * ) - + - 28 / + 77 + - 63 / - 76
----
-84

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

skipif mysql # not compatible
query I rowsort label-25
SELECT + COUNT ( * ) + 48 AS col2
----
49

query II rowsort
SELECT - 65 AS col0, 50 AS col1
----
-65
50

query I rowsort
SELECT + NULLIF ( - + 44, + - 98 ) * + 20 * 45 AS col1
----
-39600

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-29
SELECT - 8 - + + 85, - CAST( NULL AS SIGNED ) * + + AVG ( ALL - 3 ) + - + COALESCE ( 27, AVG ( ALL - 73 ) ) + + 68 AS col1
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-29
SELECT - 8 - + + 85, - CAST ( NULL AS INTEGER ) * + + AVG ( ALL - 3 ) + - + COALESCE ( 27, AVG ( ALL - 73 ) ) + + 68 AS col1
----
-93
NULL

query I rowsort
SELECT - NULLIF ( + - 87, 50 * + + 91 ) AS col2
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-31
SELECT + 31 + + 0 + - 31 + 97 * 13 DIV 26 * 72 * - COUNT( * ) AS col2
----
-3456

skipif mysql # not compatible
query I rowsort label-31
SELECT + 31 + + 0 + - 31 + 97 * 13 / 26 * 72 * - COUNT ( * ) AS col2
----
-3456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-32
SELECT ALL 89 + COUNT( * ) - - ( 96 ) + - - 52 + + 46 DIV + 75
----
238

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL 89 + COUNT ( * ) - - ( 96 ) + - - 52 + + 46 / + 75
----
238

query I rowsort
SELECT + 95 + - - 0 AS col0
----
95

query II rowsort
SELECT DISTINCT 1 + + + 61 AS col0, + 18
----
62
18

query I rowsort
SELECT + 71 * 91 * + 34
----
219674

query I rowsort
SELECT ALL 54 + + + 10
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT + COUNT( * ) + NULLIF ( + 22, - + 27 ) * - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-38
SELECT + COUNT ( * ) + NULLIF ( + 22, - + 27 ) * - COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT 4 * 18 + + COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-39
SELECT 4 * 18 + + COUNT ( * ) AS col1
----
73

query II rowsort
SELECT ( 92 ) AS col0, 38 AS col2
----
92
38

query I rowsort
SELECT DISTINCT - + 95 * - 56 + 49
----
5369

query I rowsort
SELECT + 87 * + 29
----
2523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-43
SELECT ALL + - 36 * 95 + - 47 - + 13 DIV + COALESCE ( NULLIF ( - CASE - - 41 WHEN + - SUM( + ( + - CAST( NULL AS SIGNED ) ) ) * - 91 THEN 12 WHEN + COUNT( * ) THEN NULL END, + - 15 DIV - 44 + + - 82 DIV 54 + + 32 + + - 28 ), + + 82 )
----
-3467

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL + - 36 * 95 + - 47 - + 13 / + COALESCE ( NULLIF ( - CASE - - 41 WHEN + - SUM ( + ( + - CAST ( NULL AS INTEGER ) ) ) * - 91 THEN 12 WHEN + COUNT ( * ) THEN NULL END, + - 15 / - 44 + + - 82 / 54 + + 32 + + - 28 ), + + 82 )
----
-3467

query I rowsort
SELECT ALL + + NULLIF ( + 60, + AVG ( + 54 ) / - + 87 - - 37 + - + 95 * - 51 )
----
60

query I rowsort
SELECT - - 60 * + 72 AS col0
----
4320

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-48
SELECT - 90 * - + 17 * + + 73 * 75 DIV ( - COUNT( * ) ) + - + COALESCE ( - 67, - + COALESCE ( 44, + 1 * 33, MAX( ALL + + 15 ), 91 - + + 10 + + 35 * COUNT( - 36 ) DIV CAST( - 58 AS SIGNED ) ), - 4 ), - 16 + - COUNT( * ) AS col1
----
-8376683
-17

skipif mysql # not compatible
query II rowsort label-48
SELECT - 90 * - + 17 * + + 73 * 75 / ( - COUNT ( * ) ) + - + COALESCE ( - 67, - + COALESCE ( 44, + 1 * 33, MAX ( ALL + + 15 ), 91 - + + 10 + + 35 * COUNT ( - 36 ) / CAST ( - 58 AS INTEGER ) ), - 4 ), - 16 + - COUNT ( * ) AS col1
----
-8376683
-17

query I rowsort
SELECT - 17 - 52 col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-50
SELECT 75 * - + COUNT( * ) + - - 76 DIV + ( - + 84 ) + 8 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-50
SELECT 75 * - + COUNT ( * ) + - - 76 / + ( - + 84 ) + 8 AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-51
SELECT DISTINCT + 11 DIV - 55 AS col2, - 56 * - CASE + 59 WHEN 71 DIV - SUM( DISTINCT + - 15 ) + - - 39 THEN - ( CAST( + COUNT( * ) AS SIGNED ) ) DIV + COUNT( * ) - + + ( + AVG ( DISTINCT - - 58 ) ) END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-51
SELECT DISTINCT + 11 / - 55 AS col2, - 56 * - CASE + 59 WHEN 71 / - SUM ( DISTINCT + - 15 ) + - - 39 THEN - ( CAST ( + COUNT ( * ) AS INTEGER ) ) / + COUNT ( * ) - + + ( + AVG ( DISTINCT - - 58 ) ) END AS col2
----
0
NULL

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

query I rowsort
SELECT ALL + - 73 * + + 59 AS col1
----
-4307

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT - COUNT( + - 0 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-54
SELECT - COUNT ( + - 0 ) col1
----
-1

query I rowsort
SELECT - 49 * - 65 AS col2
----
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT - COUNT( * ) + - 60 * + - 65
----
3899

skipif mysql # not compatible
query I rowsort label-56
SELECT - COUNT ( * ) + - 60 * + - 65
----
3899

query II rowsort
SELECT - 55 AS col0, 39 * + 10
----
-55
390

query I rowsort
SELECT + 90 - 60 AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-59
SELECT + 8 DIV - + 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-59
SELECT + 8 / - + 51 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT + 66 + + 4 + 38 * - + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-60
SELECT + 66 + + 4 + 38 * - + COUNT ( * )
----
32

query I rowsort
SELECT DISTINCT + 98 + 41
----
139

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

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

query I rowsort
SELECT - 31 + + - 84 + + 84 * + 43 * - + 42
----
-151819

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL + COUNT( + 46 ) + + 61 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL + COUNT ( + 46 ) + + 61 AS col0
----
62

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

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

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

query I rowsort
SELECT DISTINCT 47 + + - 95 * 59 * + + 85 AS col2
----
-476378

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

query I rowsort
SELECT + 77 + - 4
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT - NULLIF ( 58, CASE - COUNT( DISTINCT + - 73 ) WHEN 0 THEN - ( + + 97 ) WHEN - - COUNT( * ) * 32 THEN NULL ELSE 21 END ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-70
SELECT - NULLIF ( 58, CASE - COUNT ( DISTINCT + - 73 ) WHEN 0 THEN - ( + + 97 ) WHEN - - COUNT ( * ) * 32 THEN NULL ELSE 21 END ) AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-71
SELECT + 64 * - 57 * 27 AS col1, CAST( NULL AS SIGNED )
----
-98496
NULL

skipif mysql # not compatible
query II rowsort label-71
SELECT + 64 * - 57 * 27 AS col1, CAST ( NULL AS INTEGER )
----
-98496
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-72
SELECT ALL - CASE COUNT( * ) WHEN - 33 THEN 5 * 71 WHEN ( 44 ) THEN 38 DIV 80 ELSE COUNT( * ) * 77 END
----
-77

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL - CASE COUNT ( * ) WHEN - 33 THEN 5 * 71 WHEN ( 44 ) THEN 38 / 80 ELSE COUNT ( * ) * 77 END
----
-77

query I rowsort
SELECT DISTINCT 5 * 61 AS col2
----
305

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT ALL 70 - NULLIF ( + 57, - COALESCE ( + MAX( ALL CASE + ( - 46 ) WHEN 98 THEN - 74 END ), 27 + + 70 ) ) * ( 30 * + 3 )
----
-5060

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL 70 - NULLIF ( + 57, - COALESCE ( + MAX ( ALL CASE + ( - 46 ) WHEN 98 THEN - 74 END ), 27 + + 70 ) ) * ( 30 * + 3 )
----
-5060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-75
SELECT 46 * + CAST( NULL AS SIGNED ) + - 39 * 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-75
SELECT 46 * + CAST ( NULL AS INTEGER ) + - 39 * 77 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-76
SELECT 73 DIV ( + NULLIF ( MIN( - 70 ), 58 * + 22 ) * + 20 ) + + 34 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-76
SELECT 73 / ( + NULLIF ( MIN ( - 70 ), 58 * + 22 ) * + 20 ) + + 34 AS col0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-77
SELECT 57 DIV - 10
----
-5

skipif mysql # not compatible
query I rowsort label-77
SELECT 57 / - 10
----
-5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT + 24 DIV + 96 + - 61 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-79
SELECT + 24 / + 96 + - 61 AS col2
----
-61

query I rowsort
SELECT 41 * - 58 AS col2
----
-2378

query I rowsort
SELECT 77 + 35
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-82
SELECT 47 DIV 26 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-82
SELECT 47 / 26 AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT DISTINCT 39 / - CASE + 75 * 82 WHEN 80 THEN - COUNT( * ) WHEN + 10 + 33 THEN - 32 WHEN - 79 + 96 THEN - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT 39 / - CASE + 75 * 82 WHEN 80 THEN - COUNT ( * ) WHEN + 10 + 33 THEN - 32 WHEN - 79 + 96 THEN - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT ALL - 47 * - 84
----
3948

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

query I rowsort
SELECT ALL 74 * + 71 AS col0
----
5254

query I rowsort
SELECT ALL - COALESCE ( - 37, 3 + 2, 94 + 46 ) AS col1
----
37

query I rowsort
SELECT DISTINCT 68 + 82 AS col2
----
150

query I rowsort
SELECT ALL 27 + - 13 * - ( - 14 * - 43 )
----
7853

query I rowsort
SELECT DISTINCT 85 * + 2 col1
----
170

query I rowsort
SELECT DISTINCT 61 + 91 AS col2
----
152

query I rowsort
SELECT ALL - NULLIF ( 81, + 86 + + COALESCE ( 94, 38, - 12 ) )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT DISTINCT - COUNT( * ) + 58
----
57

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT - COUNT ( * ) + 58
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT 11 + + 94 * - NULLIF ( - COUNT( * ) + + 83, 21 ) AS col2
----
-7697

skipif mysql # not compatible
query I rowsort label-95
SELECT 11 + + 94 * - NULLIF ( - COUNT ( * ) + + 83, 21 ) AS col2
----
-7697

query I rowsort
SELECT DISTINCT + 2 + - 65 col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT ALL + MIN( ALL + NULLIF ( + 8, + 16 ) ) + + 77 col0
----
85

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL + MIN ( ALL + NULLIF ( + 8, + 16 ) ) + + 77 col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT DISTINCT - 30 + COUNT( 25 )
----
-29

skipif mysql # not compatible
query I rowsort label-98
SELECT DISTINCT - 30 + COUNT ( 25 )
----
-29

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-100
SELECT ALL + 85 + ( 66 ) DIV 93
----
85

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL + 85 + ( 66 ) / 93
----
85

query I rowsort
SELECT ( + 36 ) - 39
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-102
SELECT 0 - 70 DIV 97 col0
----
0

skipif mysql # not compatible
query I rowsort label-102
SELECT 0 - 70 / 97 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL - 13 * ( MIN( ALL 14 ) ) col1
----
-182

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL - 13 * ( MIN ( ALL 14 ) ) col1
----
-182

query I rowsort
SELECT 42 + - ( 97 ) col0
----
-55

query I rowsort
SELECT 23 * 75
----
1725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-106
SELECT DISTINCT + 68 * COALESCE ( 11 DIV - 24, + 70 DIV 16 + 56 * - 91, - 45 * + COUNT( * ) + 93 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT + 68 * COALESCE ( 11 / - 24, + 70 / 16 + 56 * - 91, - 45 * + COUNT ( * ) + 93 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT COUNT( * ) - + 35 * 13 AS col0
----
-454

skipif mysql # not compatible
query I rowsort label-107
SELECT COUNT ( * ) - + 35 * 13 AS col0
----
-454

query I rowsort
SELECT ALL NULLIF ( + CASE + 51 WHEN 21 + + 32 THEN - 85 ELSE 42 + 82 END, - 99 * 23 )
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-109
SELECT DISTINCT - COALESCE ( 96, + 29 DIV - SUM( 47 ) ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-109
SELECT DISTINCT - COALESCE ( 96, + 29 / - SUM ( 47 ) ) AS col1
----
-96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-111
SELECT - CAST( 45 AS SIGNED ) * + 20
----
-900

skipif mysql # not compatible
query I rowsort label-111
SELECT - CAST ( 45 AS INTEGER ) * + 20
----
-900

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

skipif mysql # not compatible
query I rowsort label-112
SELECT - COUNT ( - 75 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT 43 * + 94 + COUNT( * )
----
4043

skipif mysql # not compatible
query I rowsort label-113
SELECT 43 * + 94 + COUNT ( * )
----
4043

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT ALL - - COUNT( DISTINCT 24 )
----
1

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL - - COUNT ( DISTINCT 24 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-115
SELECT + CAST( 14 AS SIGNED ) * + 58 AS col0
----
812

skipif mysql # not compatible
query I rowsort label-115
SELECT + CAST ( 14 AS INTEGER ) * + 58 AS col0
----
812

query I rowsort
SELECT ALL - 88 * - 95
----
8360

query I rowsort
SELECT ALL - 77 * + 55
----
-4235

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

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

query I rowsort
SELECT DISTINCT + 86 + 82 AS col1
----
168

query I rowsort
SELECT ALL - 28 + 31 * - 38 AS col0
----
-1206

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT + 85 * 41 + CASE 22 WHEN + MIN( + 67 ) THEN - 26 * 95 WHEN 79 + + 97 * 43 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-121
SELECT + 85 * 41 + CASE 22 WHEN + MIN ( + 67 ) THEN - 26 * 95 WHEN 79 + + 97 * 43 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 35 * + 91 AS col0
----
3185

query I rowsort
SELECT ALL - CASE 98 WHEN - 37 * 66 THEN 50 WHEN 98 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 79 + - 91 AS col0
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT ALL 85 / CASE - 9 WHEN COUNT( * ) * + ( ( 6 ) ) THEN 42 WHEN + 21 + 34 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL 85 / CASE - 9 WHEN COUNT ( * ) * + ( ( 6 ) ) THEN 42 WHEN + 21 + 34 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-126
SELECT ALL COUNT( * ) + NULLIF ( 11, CAST( CASE 8 WHEN + 78 + + 32 THEN - CASE + 25 WHEN + COUNT( * ) * 85 + - MIN( 7 ) THEN ( + 87 ) - COUNT( * ) WHEN 84 THEN NULL END + + 48 WHEN - NULLIF ( 11, - 16 ) THEN ( 40 ) ELSE 66 * CASE 79 WHEN + 49 * - 28 THEN + 11 WHEN 36 + + 87 THEN + ( ( 89 ) ) * ( CASE - 53 WHEN 22 * + 54 + - CAST( NULL AS SIGNED ) * 22 THEN NULL WHEN NULLIF ( 84, - 53 * 48 ) + - 31 THEN 48 / 45 WHEN 37 + COALESCE ( + 90, - 6 * 58 ) THEN NULL END ) END END AS SIGNED ) ) + - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL COUNT ( * ) + NULLIF ( 11, CAST ( CASE 8 WHEN + 78 + + 32 THEN - CASE + 25 WHEN + COUNT ( * ) * 85 + - MIN ( 7 ) THEN ( + 87 ) - COUNT ( * ) WHEN 84 THEN NULL END + + 48 WHEN - NULLIF ( 11, - 16 ) THEN ( 40 ) ELSE 66 * CASE 79 WHEN + 49 * - 28 THEN + 11 WHEN 36 + + 87 THEN + ( ( 89 ) ) * ( CASE - 53 WHEN 22 * + 54 + - CAST ( NULL AS INTEGER ) * 22 THEN NULL WHEN NULLIF ( 84, - 53 * 48 ) + - 31 THEN 48 / 45 WHEN 37 + COALESCE ( + 90, - 6 * 58 ) THEN NULL END ) END END AS INTEGER ) ) + - COUNT ( * )
----
11

query I rowsort
SELECT ( - 41 ) * - 58
----
2378

query I rowsort
SELECT ALL 13 - + - 93 AS col0
----
106

query I rowsort
SELECT 91 + ( + 96 ) col1
----
187

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

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

query I rowsort
SELECT 36 - 51
----
-15

query I rowsort
SELECT 45 - + - 41 * 77 AS col0
----
3202

query I rowsort
SELECT 16 * + 46 AS col2
----
736

query I rowsort
SELECT - 41 + - 10 * ( - 85 - - 99 ) col1
----
-181

query I rowsort
SELECT - 59 * 24 * 4 AS col2
----
-5664

query I rowsort
SELECT + - 53 + - + 74 + - 71 AS col0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT - 81 DIV - 69
----
1

skipif mysql # not compatible
query I rowsort label-137
SELECT - 81 / - 69
----
1

query I rowsort
SELECT ALL + 83 * 88 AS col2
----
7304

query I rowsort
SELECT + + 78 + - ( 92 )
----
-14

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-141
SELECT - + 28 DIV + + 57 + + 22 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-141
SELECT - + 28 / + + 57 + + 22 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-142
SELECT ALL + - 33 + - CAST( AVG ( - 65 ) AS SIGNED ) * + 92
----
5947

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL + - 33 + - CAST ( AVG ( - 65 ) AS INTEGER ) * + 92
----
5947

query I rowsort
SELECT - ( - ( - 24 ) ) + 20 * 37
----
716

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT DISTINCT + - 16 * + MIN( DISTINCT 90 ) AS col1
----
-1440

skipif mysql # not compatible
query I rowsort label-144
SELECT DISTINCT + - 16 * + MIN ( DISTINCT 90 ) AS col1
----
-1440

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

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

query I rowsort
SELECT ALL 58 * + 48 - - 59 + - 24 AS col0
----
2819

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT ALL COUNT( * ) * 36 + - 57
----
-21

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL COUNT ( * ) * 36 + - 57
----
-21

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

onlyif mysql # DIV for integer division: 
query I rowsort label-149
SELECT + 45 DIV - 59 * + 29 + 81
----
81

skipif mysql # not compatible
query I rowsort label-149
SELECT + 45 / - 59 * + 29 + 81
----
81

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

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

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

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

query I rowsort
SELECT - NULLIF ( - 46, 43 ) AS col0
----
46

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-154
SELECT + + 21 + - 33 - 9 DIV - MIN( ALL ( 94 ) ) * - 46
----
-12

skipif mysql # not compatible
query I rowsort label-154
SELECT + + 21 + - 33 - 9 / - MIN ( ALL ( 94 ) ) * - 46
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-155
SELECT ALL - 28 * - 75 * 35 + 87 DIV - 20
----
73496

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL - 28 * - 75 * 35 + 87 / - 20
----
73496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-156
SELECT ALL + 21 * COUNT( * ) + ( + 56 + + 68 DIV - 89 )
----
77

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL + 21 * COUNT ( * ) + ( + 56 + + 68 / - 89 )
----
77

query I rowsort
SELECT + + 64 * - 30 * + 69 + + 1 AS col2
----
-132479

query I rowsort
SELECT DISTINCT 64 * - + NULLIF ( - - 89, 37 ) + 47 AS col2
----
-5649

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-160
SELECT ALL COUNT( * ) * - + ( - - 6 ) DIV + 97 - MIN( DISTINCT 55 + + 94 ) * 78 col0
----
-11622

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL COUNT ( * ) * - + ( - - 6 ) / + 97 - MIN ( DISTINCT 55 + + 94 ) * 78 col0
----
-11622

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT DISTINCT + NULLIF ( - - COALESCE ( - 78, + ( 94 ), - 46 * NULLIF ( 53, + 74 ) ), + 99 ) * - MIN( DISTINCT - 54 ) AS col0
----
-4212

skipif mysql # not compatible
query I rowsort label-161
SELECT DISTINCT + NULLIF ( - - COALESCE ( - 78, + ( 94 ), - 46 * NULLIF ( 53, + 74 ) ), + 99 ) * - MIN ( DISTINCT - 54 ) AS col0
----
-4212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-162
SELECT - COALESCE ( - CASE + + 29 WHEN COALESCE ( 32, 59, 89 - NULLIF ( 80, 98 * - 29 ) ) * ( - 54 DIV + SUM( DISTINCT + COALESCE ( + 29, + 69 ) * 8 ) ) THEN NULL ELSE - 20 DIV + 87 + ( ( 95 ) ) * - 22 END, 84 + + COUNT( * ), COUNT( * ) ) DIV 59
----
-35

skipif mysql # not compatible
query I rowsort label-162
SELECT - COALESCE ( - CASE + + 29 WHEN COALESCE ( 32, 59, 89 - NULLIF ( 80, 98 * - 29 ) ) * ( - 54 / + SUM ( DISTINCT + COALESCE ( + 29, + 69 ) * 8 ) ) THEN NULL ELSE - 20 / + 87 + ( ( 95 ) ) * - 22 END, 84 + + COUNT ( * ), COUNT ( * ) ) / 59
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT + 94 * - + 1 + + CASE - 6 WHEN + 86 / 37 - + 32 * + 68 THEN MIN( - 45 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT + 94 * - + 1 + + CASE - 6 WHEN + 86 / 37 - + 32 * + 68 THEN MIN ( - 45 ) END
----
NULL

query I rowsort
SELECT 85 * + + 60 + + 95 AS col1
----
5195

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT + 89 * SUM( ALL 82 ) AS col0
----
7298

skipif mysql # not compatible
query I rowsort label-165
SELECT + 89 * SUM ( ALL 82 ) AS col0
----
7298

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

query I rowsort
SELECT + 65 * - - COALESCE ( - 45, 37 ) AS col1
----
-2925

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT DISTINCT COALESCE ( 44, - 46 + - 43 ) DIV - 50 col2
----
0

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT COALESCE ( 44, - 46 + - 43 ) / - 50 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT COUNT( - 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-169
SELECT COUNT ( - 68 ) AS col1
----
1

query I rowsort
SELECT - 56 * - 41 * ( + 60 ) + 18 AS col0
----
137778

query I rowsort
SELECT ALL ( 43 ) * + - NULLIF ( + 43, + 7 * - 31 + + AVG ( ALL 39 ) ) + + 71
----
-1778

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-172
SELECT DISTINCT CAST( 39 AS SIGNED ) * COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT CAST ( 39 AS INTEGER ) * COUNT ( * )
----
39

query I rowsort
SELECT + 6 - + - 70
----
76

query II rowsort
SELECT ALL 94 AS col2, + 12 - NULLIF ( 93, - 17 )
----
94
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT - - SUM( - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-176
SELECT - - SUM ( - 47 )
----
-47

query I rowsort
SELECT + + 32 * - 69 AS col2
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT - 87 + - + 78 + - 8 * CASE 87 WHEN 21 THEN + SUM( DISTINCT 66 ) WHEN + COUNT( * ) THEN + 17 * + ( 9 ) + + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-178
SELECT - 87 + - + 78 + - 8 * CASE 87 WHEN 21 THEN + SUM ( DISTINCT 66 ) WHEN + COUNT ( * ) THEN + 17 * + ( 9 ) + + 31 END
----
NULL

query I rowsort
SELECT ALL 1 + - - 41 + + + 20 + - 29
----
33

query I rowsort
SELECT ALL + - ( - + 36 ) + + 72 AS col2
----
108

query I rowsort
SELECT DISTINCT + 19 + 57
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-182
SELECT ALL - 61 + ( - - MIN( CAST( NULL AS SIGNED ) ) ) / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL - 61 + ( - - MIN ( CAST ( NULL AS INTEGER ) ) ) / 40
----
NULL

query I rowsort
SELECT ALL ( - 53 ) + - + 32 col2
----
-85

query II rowsort
SELECT DISTINCT - 8, 23 AS col0
----
-8
23

query I rowsort
SELECT + - 6 * - 37
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT - - 0 * - + 94 * + - 18 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-186
SELECT - - 0 * - + 94 * + - 18 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT DISTINCT + COUNT( ALL + + 64 ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT + COUNT ( ALL + + 64 ) * COUNT ( * ) AS col2
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-189
SELECT - CASE 73 WHEN - ( SUM( ALL 87 ) ) + - 18 THEN NULL ELSE 25 + ( CAST( NULL AS SIGNED ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT - CASE 73 WHEN - ( SUM ( ALL 87 ) ) + - 18 THEN NULL ELSE 25 + ( CAST ( NULL AS INTEGER ) ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-190
SELECT - 17 DIV - - 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-190
SELECT - 17 / - - 27 AS col0
----
0

query I rowsort
SELECT - CASE - - 88 WHEN + 91 + 0 THEN 98 + 66 END * 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT DISTINCT 26 * COUNT( * ) + COUNT( * ) * 35
----
61

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT 26 * COUNT ( * ) + COUNT ( * ) * 35
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT DISTINCT - 43 * + + 18 * COUNT( * ) + + 59 AS col1
----
-715

skipif mysql # not compatible
query I rowsort label-193
SELECT DISTINCT - 43 * + + 18 * COUNT ( * ) + + 59 AS col1
----
-715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-194
SELECT ALL NULLIF ( - 67, + - 1 * - COALESCE ( 62 * - 33, 5 + 12 * + 41, - COALESCE ( 5, + 98, - COUNT( + 63 ) + 77 * - ( - 13 ) ), 84 * 49 + 75 ) + 40 * CASE + 78 * 38 + 31 * 48 WHEN ( 70 ) THEN COUNT( * ) + + 81 * 24 END ) DIV 54 - + 31 * + 3
----
-94

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL NULLIF ( - 67, + - 1 * - COALESCE ( 62 * - 33, 5 + 12 * + 41, - COALESCE ( 5, + 98, - COUNT ( + 63 ) + 77 * - ( - 13 ) ), 84 * 49 + 75 ) + 40 * CASE + 78 * 38 + 31 * 48 WHEN ( 70 ) THEN COUNT ( * ) + + 81 * 24 END ) / 54 - + 31 * + 3
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT 53 * + - COUNT( * ) + - 8 + + 85 + 87 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-195
SELECT 53 * + - COUNT ( * ) + - 8 + + 85 + 87 AS col2
----
111

query I rowsort
SELECT + NULLIF ( 92, + 71 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT DISTINCT + COUNT( + 38 ) * - 61
----
-61

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT + COUNT ( + 38 ) * - 61
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-198
SELECT ALL + CASE + - MIN( - 44 ) WHEN - NULLIF ( - 92, 99 + - CAST( NULL AS SIGNED ) ) * 53 THEN 77 / + COUNT( * ) WHEN 9 THEN NULL WHEN 70 THEN 47 - AVG ( DISTINCT 60 ) * + 51 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL + CASE + - MIN ( - 44 ) WHEN - NULLIF ( - 92, 99 + - CAST ( NULL AS INTEGER ) ) * 53 THEN 77 / + COUNT ( * ) WHEN 9 THEN NULL WHEN 70 THEN 47 - AVG ( DISTINCT 60 ) * + 51 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 26 - ( 33 ) - + 84 * 76 AS col0
----
-6391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-200
SELECT ALL ( + 14 ) * + - 71 * + CASE 74 WHEN + 93 / - CASE 61 WHEN 63 * + 34 THEN + 99 + 16 WHEN 62 * AVG ( 34 ) + + 45 THEN - CAST( NULL AS SIGNED ) * 11 ELSE + 22 END THEN NULL ELSE 99 * COALESCE ( 13, 82 ) END
----
-1279278

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL ( + 14 ) * + - 71 * + CASE 74 WHEN + 93 / - CASE 61 WHEN 63 * + 34 THEN + 99 + 16 WHEN 62 * AVG ( 34 ) + + 45 THEN - CAST ( NULL AS INTEGER ) * 11 ELSE + 22 END THEN NULL ELSE 99 * COALESCE ( 13, 82 ) END
----
-1279278

query I rowsort
SELECT - 52 * - 85 * + + 83 + + 62 AS col0
----
366922

query I rowsort
SELECT ALL + 91 * + 30 AS col0
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT CASE + COUNT( * ) WHEN + 29 THEN - 58 * + 67 WHEN - COUNT( DISTINCT - 21 ) THEN + COUNT( * ) END * - MAX( 96 - 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-203
SELECT CASE + COUNT ( * ) WHEN + 29 THEN - 58 * + 67 WHEN - COUNT ( DISTINCT - 21 ) THEN + COUNT ( * ) END * - MAX ( 96 - 81 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT 25 + - - 94 + + COUNT( * )
----
120

skipif mysql # not compatible
query I rowsort label-204
SELECT 25 + - - 94 + + COUNT ( * )
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT - 89 * - - 8 + 85 + 53 * + COUNT( * )
----
-574

skipif mysql # not compatible
query I rowsort label-205
SELECT - 89 * - - 8 + 85 + 53 * + COUNT ( * )
----
-574

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

skipif mysql # not compatible
query I rowsort label-206
SELECT COUNT ( * ) / MIN ( - + 90 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-207
SELECT CAST( + + 68 AS SIGNED ) * - 87 AS col2
----
-5916

skipif mysql # not compatible
query I rowsort label-207
SELECT CAST ( + + 68 AS INTEGER ) * - 87 AS col2
----
-5916

query I rowsort
SELECT DISTINCT - 50 + + 91
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-209
SELECT DISTINCT + 34 DIV 64 DIV - - NULLIF ( COUNT( 4 ), - 45 + 21 * + 76 ) * + SUM( + COALESCE ( 9, 65, 70 ) ) - 55
----
-55

skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT + 34 / 64 / - - NULLIF ( COUNT ( 4 ), - 45 + 21 * + 76 ) * + SUM ( + COALESCE ( 9, 65, 70 ) ) - 55
----
-55

query I rowsort
SELECT DISTINCT - - 99 + - - 61 - - 95 * + - 37
----
-3355

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-212
SELECT + 38 DIV + - 9
----
-4

skipif mysql # not compatible
query I rowsort label-212
SELECT + 38 / + - 9
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT ALL CASE 92 WHEN - 47 + 22 + 47 / 94 THEN NULL WHEN - 7 / - 7 THEN - COUNT( * ) - 13 ELSE 14 END AS col0
----
14

skipif mysql # not compatible
query I rowsort label-213
SELECT ALL CASE 92 WHEN - 47 + 22 + 47 / 94 THEN NULL WHEN - 7 / - 7 THEN - COUNT ( * ) - 13 ELSE 14 END AS col0
----
14

query I rowsort
SELECT 2 * - + COALESCE ( - ( - CASE 4 WHEN - 83 THEN NULL ELSE 39 END ), - 69 + 42 ) + - 6 * 61
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT ALL 91 + + COUNT( - 37 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL 91 + + COUNT ( - 37 ) AS col0
----
92

query I rowsort
SELECT + 95 * + - 41
----
-3895

query I rowsort
SELECT ALL ( + + 44 ) * 93 * - 97 + 26
----
-396898

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT - 4 + - ( - ( - SUM( DISTINCT + 0 ) ) ) + + 88 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-218
SELECT - 4 + - ( - ( - SUM ( DISTINCT + 0 ) ) ) + + 88 AS col0
----
84

query I rowsort
SELECT 79 - + - CASE + 94 WHEN - 15 * + 47 THEN + 48 ELSE NULL END
----
NULL

query I rowsort
SELECT - 88 * + + 51 - 29 col0
----
-4517

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL MIN( ALL + - 1 ) + 79 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL MIN ( ALL + - 1 ) + 79 AS col2
----
78

query I rowsort
SELECT 58 + + + ( + 34 ) + + + 39
----
131

query I rowsort
SELECT DISTINCT ( 34 ) AS col0
----
34

query I rowsort
SELECT DISTINCT 19 - + ( 61 ) AS col1
----
-42

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

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

query I rowsort
SELECT ALL + ( - 27 ) col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-227
SELECT ALL - COUNT( * ) - - MAX( + ( 81 ) ) DIV 22 col2
----
2

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL - COUNT ( * ) - - MAX ( + ( 81 ) ) / 22 col2
----
2

query I rowsort
SELECT - + 41 * + 90 + - + 46
----
-3736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-229
SELECT ALL + + 86 - 14 + - - MAX( DISTINCT 65 ) DIV 42 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL + + 86 - 14 + - - MAX ( DISTINCT 65 ) / 42 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT 27 * - COUNT( * ) + COUNT( + 1 ) + 7 * 97 * COUNT( * ) AS col1
----
653

skipif mysql # not compatible
query I rowsort label-230
SELECT 27 * - COUNT ( * ) + COUNT ( + 1 ) + 7 * 97 * COUNT ( * ) AS col1
----
653

query I rowsort
SELECT 30 * - - 84 col2
----
2520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-232
SELECT ALL 90 * - + 59 / - CAST( NULL AS SIGNED ) * + 20 / 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL 90 * - + 59 / - CAST ( NULL AS INTEGER ) * + 20 / 33 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT 22 DIV 86 + + 43 + 67 + - 82 * 33 AS col0
----
-2596

skipif mysql # not compatible
query I rowsort label-233
SELECT 22 / 86 + + 43 + 67 + - 82 * 33 AS col0
----
-2596

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT ALL - 85 * 66 * SUM( + + 60 ) * + - 54 * COUNT( ALL + 5 ) + + 87 col1
----
18176487

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - 85 * 66 * SUM ( + + 60 ) * + - 54 * COUNT ( ALL + 5 ) + + 87 col1
----
18176487

query II rowsort
SELECT + 60, 77 + + 57 - + ( - - 9 ) * - 2 AS col1
----
60
152

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT 20 * NULLIF ( + SUM( + 49 ), 14 * 62 + 71 * + COUNT( * ) ) * 73 AS col0
----
71540

skipif mysql # not compatible
query I rowsort label-236
SELECT 20 * NULLIF ( + SUM ( + 49 ), 14 * 62 + 71 * + COUNT ( * ) ) * 73 AS col0
----
71540

query I rowsort
SELECT ALL 54 * - 94 AS col2
----
-5076

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT ALL - NULLIF ( - COUNT( * ), NULLIF ( + 70, - 76 ) + - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL - NULLIF ( - COUNT ( * ), NULLIF ( + 70, - 76 ) + - 11 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-239
SELECT DISTINCT - 40 DIV - SUM( ALL 24 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT - 40 / - SUM ( ALL 24 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT 42 * + CASE + 55 WHEN + 55 / 99 - 72 * - 39 - - 97 * CASE 48 + - 64 WHEN 61 * - 2 THEN NULL WHEN + ( 73 ) * CASE - 88 - 76 WHEN + 71 THEN NULL WHEN 29 + COUNT( * ) THEN - 2 / + ( + 52 ) ELSE - 91 END + + MAX( - 93 ) * 19 THEN + 62 * 94 ELSE NULL END THEN NULL ELSE - 91 END
----
-3822

skipif mysql # not compatible
query I rowsort label-240
SELECT 42 * + CASE + 55 WHEN + 55 / 99 - 72 * - 39 - - 97 * CASE 48 + - 64 WHEN 61 * - 2 THEN NULL WHEN + ( 73 ) * CASE - 88 - 76 WHEN + 71 THEN NULL WHEN 29 + COUNT ( * ) THEN - 2 / + ( + 52 ) ELSE - 91 END + + MAX ( - 93 ) * 19 THEN + 62 * 94 ELSE NULL END THEN NULL ELSE - 91 END
----
-3822

query I rowsort
SELECT 45 * 11
----
495

onlyif mysql # DIV for integer division: 
query I rowsort label-242
SELECT ALL + 95 + - 25 DIV - 77 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL + 95 + - 25 / - 77 AS col1
----
95

query II rowsort
SELECT + 80 AS col0, + 97 * - ( - - 1 )
----
80
-97

query I rowsort
SELECT 32 * + 65 AS col2
----
2080

query I rowsort
SELECT DISTINCT + 78 + 33
----
111

query I rowsort
SELECT ALL + 60 + - 68
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT ALL + 51 + - COALESCE ( + + COUNT( * ), 99 + + 68 ) * 67 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-247
SELECT ALL + 51 + - COALESCE ( + + COUNT ( * ), 99 + + 68 ) * 67 AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-248
SELECT DISTINCT + - CAST( - + COUNT( * ) AS SIGNED ) + 46 + 64 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT + - CAST ( - + COUNT ( * ) AS INTEGER ) + 46 + 64 AS col0
----
111

query I rowsort
SELECT - 22 + + 70 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT DISTINCT + ( MIN( + 15 ) ) + 78 * + - COUNT( * ) - - 84
----
21

skipif mysql # not compatible
query I rowsort label-250
SELECT DISTINCT + ( MIN ( + 15 ) ) + 78 * + - COUNT ( * ) - - 84
----
21

query I rowsort
SELECT DISTINCT 62 + 58
----
120

query I rowsort
SELECT DISTINCT - 28 * + + 68 + + ( - 67 )
----
-1971

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT - MIN( + - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-253
SELECT - MIN ( + - 89 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-254
SELECT + CAST( ( + + COUNT( * ) ) AS SIGNED ) + ( + SUM( 70 ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-254
SELECT + CAST ( ( + + COUNT ( * ) ) AS INTEGER ) + ( + SUM ( 70 ) ) AS col1
----
71

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT + COUNT( * ) * - MIN( DISTINCT 34 ) + - 60 * MAX( + 40 )
----
-2434

skipif mysql # not compatible
query I rowsort label-257
SELECT + COUNT ( * ) * - MIN ( DISTINCT 34 ) + - 60 * MAX ( + 40 )
----
-2434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-258
SELECT ALL - 28 * + 55 + 57 + - ( CAST( NULL AS SIGNED ) ) + 73 * - MIN( 78 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL - 28 * + 55 + 57 + - ( CAST ( NULL AS INTEGER ) ) + 73 * - MIN ( 78 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT DISTINCT - 17 - - + 52 + - ( + COALESCE ( - + 75, + COUNT( * ) ) ) AS col1
----
110

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT - 17 - - + 52 + - ( + COALESCE ( - + 75, + COUNT ( * ) ) ) AS col1
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-260
SELECT DISTINCT + CAST( + + 66 AS SIGNED ) * + 77 + - ( + COUNT( * ) ) DIV COUNT( * )
----
5081

skipif mysql # not compatible
query I rowsort label-260
SELECT DISTINCT + CAST ( + + 66 AS INTEGER ) * + 77 + - ( + COUNT ( * ) ) / COUNT ( * )
----
5081

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT 65 * + 9 + + + ( + COUNT( * ) ) AS col0
----
586

skipif mysql # not compatible
query I rowsort label-261
SELECT 65 * + 9 + + + ( + COUNT ( * ) ) AS col0
----
586

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT - 5 - + - 50 - + - 11 * MIN( 68 ) + 13
----
806

skipif mysql # not compatible
query I rowsort label-262
SELECT - 5 - + - 50 - + - 11 * MIN ( 68 ) + 13
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT - COUNT( * ) * - 33 col2
----
33

skipif mysql # not compatible
query I rowsort label-263
SELECT - COUNT ( * ) * - 33 col2
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-264
SELECT 14 AS col2, - 9 DIV + 16 AS col2
----
14
0

skipif mysql # not compatible
query II rowsort label-264
SELECT 14 AS col2, - 9 / + 16 AS col2
----
14
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-267
SELECT - 93 DIV 37 * + 81 * - 0 + + + 91
----
91

skipif mysql # not compatible
query I rowsort label-267
SELECT - 93 / 37 * + 81 * - 0 + + + 91
----
91

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

query I rowsort
SELECT + NULLIF ( + 72, ( - 21 ) )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-270
SELECT CASE - 21 WHEN 58 THEN + + ( CAST( NULL AS SIGNED ) ) + + 81 + 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-270
SELECT CASE - 21 WHEN 58 THEN + + ( CAST ( NULL AS INTEGER ) ) + + 81 + 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT + MAX( + - 89 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-271
SELECT + MAX ( + - 89 ) AS col0
----
-89

query I rowsort
SELECT DISTINCT 13 * - CASE - + 86 WHEN + CASE + - COALESCE ( - - 23, + 23 + + 93 ) WHEN - 75 - 62 * + AVG ( DISTINCT 29 ) THEN - 56 ELSE - 50 END * - 70 THEN NULL ELSE 96 + 32 END
----
-1664

query I rowsort
SELECT ALL - 54 * + 55
----
-2970

query I rowsort
SELECT + 60 * - 29 * - - 99
----
-172260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-275
SELECT DISTINCT + COUNT( DISTINCT + 48 ) * + 99 + + 8 + 85 DIV + 74 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT + COUNT ( DISTINCT + 48 ) * + 99 + + 8 + 85 / + 74 AS col2
----
108

query I rowsort
SELECT + 30 + - 81 AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-277
SELECT + CASE + - 24 WHEN - 20 - - ( - 25 ) - + 6 + CAST( 1 AS DECIMAL ) * - 60 THEN - 32 / - ( NULLIF ( CASE - CASE + 44 WHEN + COUNT( * ) THEN 44 WHEN - SUM( - 57 ) * - COUNT( DISTINCT 27 ) + 32 THEN NULL END WHEN - AVG ( 15 ) * - 92 + COUNT( * ) THEN NULL WHEN + AVG ( 87 ) THEN + 19 END, CAST( - 92 AS SIGNED ) + + COUNT( * ) ) ) WHEN 83 * - MIN( 70 ) - CAST( NULL AS SIGNED ) THEN 59 + - 30 * + 11 WHEN + 11 * 50 + + CAST( NULL AS SIGNED ) THEN 7 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT + CASE + - 24 WHEN - 20 - - ( - 25 ) - + 6 + CAST ( 1 AS REAL ) * - 60 THEN - 32 / - ( NULLIF ( CASE - CASE + 44 WHEN + COUNT ( * ) THEN 44 WHEN - SUM ( - 57 ) * - COUNT ( DISTINCT 27 ) + 32 THEN NULL END WHEN - AVG ( 15 ) * - 92 + COUNT ( * ) THEN NULL WHEN + AVG ( 87 ) THEN + 19 END, CAST ( - 92 AS INTEGER ) + + COUNT ( * ) ) ) WHEN 83 * - MIN ( 70 ) - CAST ( NULL AS INTEGER ) THEN 59 + - 30 * + 11 WHEN + 11 * 50 + + CAST ( NULL AS INTEGER ) THEN 7 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 95 * 42
----
3990

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL - 33 * + + 85 + - - 12 + + 74 + - - 20 + + COUNT( * ) + - 72 AS col0
----
-2770

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL - 33 * + + 85 + - - 12 + + 74 + - - 20 + + COUNT ( * ) + - 72 AS col0
----
-2770

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-280
SELECT 27 * - 26 + 75 + - 70 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT 27 * - 26 + 75 + - 70 * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT - COALESCE ( + 74, - ( - 65 ) + + 7, + COUNT( * ) ) * + 36 + + 82 AS col1
----
-2582

skipif mysql # not compatible
query I rowsort label-281
SELECT - COALESCE ( + 74, - ( - 65 ) + + 7, + COUNT ( * ) ) * + 36 + + 82 AS col1
----
-2582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-282
SELECT + CASE 43 WHEN + + COUNT( * ) + + COUNT( * ) THEN 25 * - CAST( COUNT( * ) AS SIGNED ) WHEN NULLIF ( MAX( 24 ), 74 ) THEN + 21 + + MAX( ALL 97 + 52 * 47 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-282
SELECT + CASE 43 WHEN + + COUNT ( * ) + + COUNT ( * ) THEN 25 * - CAST ( COUNT ( * ) AS INTEGER ) WHEN NULLIF ( MAX ( 24 ), 74 ) THEN + 21 + + MAX ( ALL 97 + 52 * 47 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-283
SELECT COUNT( * ) AS col0, + 72 DIV - - 63
----
1
1

skipif mysql # not compatible
query II rowsort label-283
SELECT COUNT ( * ) AS col0, + 72 / - - 63
----
1
1

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

skipif mysql # not compatible
query I rowsort label-284
SELECT MAX ( DISTINCT - 94 )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-285
SELECT ALL - 6 * + 45 + 47 + - + 0 + + COUNT( * ) + + 86 * + MIN( DISTINCT 76 DIV 91 ) AS col0
----
-222

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL - 6 * + 45 + 47 + - + 0 + + COUNT ( * ) + + 86 * + MIN ( DISTINCT 76 / 91 ) AS col0
----
-222

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-286
SELECT + CASE + 50 WHEN - 43 + - 63 THEN - ( - COALESCE ( - NULLIF ( 90, - 85 + + 80 DIV 61 ), 32 ) ) WHEN 81 * 84 THEN - 45 DIV + 93 WHEN - CAST( + 25 AS SIGNED ) THEN + 60 DIV CAST( - 22 AS SIGNED ) ELSE - 17 * + ( - 99 ) END + - 13 * - 41 AS col2
----
2216

skipif mysql # not compatible
query I rowsort label-286
SELECT + CASE + 50 WHEN - 43 + - 63 THEN - ( - COALESCE ( - NULLIF ( 90, - 85 + + 80 / 61 ), 32 ) ) WHEN 81 * 84 THEN - 45 / + 93 WHEN - CAST ( + 25 AS INTEGER ) THEN + 60 / CAST ( - 22 AS INTEGER ) ELSE - 17 * + ( - 99 ) END + - 13 * - 41 AS col2
----
2216

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT ALL + MIN( ALL + + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL + MIN ( ALL + + 15 ) AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-288
SELECT ALL 87 * + 44 + + CAST( NULL AS SIGNED ) / 79 * - - 33 + + COALESCE ( - 37, 35 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL 87 * + 44 + + CAST ( NULL AS INTEGER ) / 79 * - - 33 + + COALESCE ( - 37, 35 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-289
SELECT ALL - CASE + - 43 WHEN - - 26 + + COUNT( ALL + 15 ) THEN - CAST( - 82 AS SIGNED ) ELSE NULL END / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL - CASE + - 43 WHEN - - 26 + + COUNT ( ALL + 15 ) THEN - CAST ( - 82 AS INTEGER ) ELSE NULL END / COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 25 + 71 - - - 80 AS col2
----
-34

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-292
SELECT ALL MAX( - + 6 ) AS col1, - 36 AS col0
----
-6
-36

skipif mysql # not compatible
query II rowsort label-292
SELECT ALL MAX ( - + 6 ) AS col1, - 36 AS col0
----
-6
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT ALL + - 32 - + 25 * - 93 * - + 12 - + COUNT( * ) + - CASE WHEN COUNT( * ) > NULL THEN NULLIF ( 15, + COUNT( * ) ) END + 60 * + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL + - 32 - + 25 * - 93 * - + 12 - + COUNT ( * ) + - CASE WHEN COUNT ( * ) > NULL THEN NULLIF ( 15, + COUNT ( * ) ) END + 60 * + 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT + 78 + COALESCE ( 96, MAX( ALL - 78 ) )
----
174

skipif mysql # not compatible
query I rowsort label-294
SELECT + 78 + COALESCE ( 96, MAX ( ALL - 78 ) )
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-295
SELECT ALL - NULLIF ( 31, CAST( NULL AS SIGNED ) / - COALESCE ( + ( - - COUNT( * ) ), - 73 * + 46 + 89 ) * + COUNT( * ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL - NULLIF ( 31, CAST ( NULL AS INTEGER ) / - COALESCE ( + ( - - COUNT ( * ) ), - 73 * + 46 + 89 ) * + COUNT ( * ) ) AS col1
----
-31

query I rowsort
SELECT - + ( ( - COALESCE ( 36, - + 81 - 65 ) ) ) AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-297
SELECT ALL - 24 AS col1, 22 * + - 96 DIV - CAST( + - COALESCE ( + 96, COUNT( DISTINCT + 40 ) * + NULLIF ( - MAX( ( 59 ) ), 45 + + 94 ) + - 82, 71 * 49 ) AS SIGNED )
----
-24
-22

skipif mysql # not compatible
query II rowsort label-297
SELECT ALL - 24 AS col1, 22 * + - 96 / - CAST ( + - COALESCE ( + 96, COUNT ( DISTINCT + 40 ) * + NULLIF ( - MAX ( ( 59 ) ), 45 + + 94 ) + - 82, 71 * 49 ) AS INTEGER )
----
-24
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-298
SELECT DISTINCT - COUNT( * ) * - CASE - COUNT( * ) WHEN - 75 THEN NULL WHEN + COALESCE ( + + COUNT( * ), ( - 94 ) + - 8 * + 43 ) THEN + 96 END * 59 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-298
SELECT DISTINCT - COUNT ( * ) * - CASE - COUNT ( * ) WHEN - 75 THEN NULL WHEN + COALESCE ( + + COUNT ( * ), ( - 94 ) + - 8 * + 43 ) THEN + 96 END * 59 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-299
SELECT - COUNT ( * ) - 46 * + - ( - + 18 ) AS col0
----
-829

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

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

query I rowsort
SELECT - - 19 + 54 AS col0
----
73

query I rowsort
SELECT DISTINCT - + 77 * 36 col0
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT - 94 * - COUNT( * ) + + 88 - - + 81 - + 12 * 72 AS col1
----
-601

skipif mysql # not compatible
query I rowsort label-303
SELECT - 94 * - COUNT ( * ) + + 88 - - + 81 - + 12 * 72 AS col1
----
-601

query II rowsort
SELECT - 63 * - 83 col0, + 86 AS col2
----
5229
86

query I rowsort
SELECT ALL - 22 * 1
----
-22

query I rowsort
SELECT - - 17 + + 79
----
96

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

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

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

query I rowsort
SELECT - + 42 + + 85
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT + 79 * + - 83 * MIN( ALL 28 ) AS col2
----
-183596

skipif mysql # not compatible
query I rowsort label-310
SELECT + 79 * + - 83 * MIN ( ALL 28 ) AS col2
----
-183596

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-311
SELECT DISTINCT NULLIF ( 76, + CAST( NULL AS SIGNED ) + - 34 DIV + 1 ) DIV + + ( - 13 ) + - 60
----
-65

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT NULLIF ( 76, + CAST ( NULL AS INTEGER ) + - 34 / + 1 ) / + + ( - 13 ) + - 60
----
-65

query I rowsort
SELECT ALL 61 + NULLIF ( - 98, - 21 ) - 47 AS col2
----
-84

query I rowsort
SELECT - 67 + COALESCE ( - 97, 65 * - 28 )
----
-164

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-314
SELECT ALL ( + + 32 ) col2, - CAST( - 34 AS SIGNED ) * + + ( - - 89 ) AS col2
----
32
3026

skipif mysql # not compatible
query II rowsort label-314
SELECT ALL ( + + 32 ) col2, - CAST ( - 34 AS INTEGER ) * + + ( - - 89 ) AS col2
----
32
3026

query I rowsort
SELECT - 43 + + + 54 AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-316
SELECT 32 * - ( NULLIF ( + 67, - + 0 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-316
SELECT 32 * - ( NULLIF ( + 67, - + 0 ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-317
SELECT CAST( + ( + + 24 ) AS SIGNED ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-317
SELECT CAST ( + ( + + 24 ) AS INTEGER ) AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-318
SELECT + ( + 9 ) DIV - 28 + - - 83 + + MIN( - - 13 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-318
SELECT + ( + 9 ) / - 28 + - - 83 + + MIN ( - - 13 ) AS col1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-319
SELECT ALL - 89 DIV + MIN( ALL - 96 ) + - 8 col2
----
-8

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL - 89 / + MIN ( ALL - 96 ) + - 8 col2
----
-8

query I rowsort
SELECT - 7 * + + 16
----
-112

query I rowsort
SELECT ALL ( - - 42 ) * 92
----
3864

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-322
SELECT ALL + COUNT( * ) DIV - 35 + - MIN( - 31 ) + + + 60 AS col2, MAX( DISTINCT 97 ) * - ( 5 ) AS col2
----
91
-485

skipif mysql # not compatible
query II rowsort label-322
SELECT ALL + COUNT ( * ) / - 35 + - MIN ( - 31 ) + + + 60 AS col2, MAX ( DISTINCT 97 ) * - ( 5 ) AS col2
----
91
-485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-323
SELECT DISTINCT - NULLIF ( COUNT( * ), CAST( - 7 AS SIGNED ) + - 13 + - 58 ) DIV - - 40 + 45 DIV - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT - NULLIF ( COUNT ( * ), CAST ( - 7 AS INTEGER ) + - 13 + - 58 ) / - - 40 + 45 / - 46 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-324
SELECT ALL 8 * + 95 + COUNT( * ) / 39 + + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL 8 * + 95 + COUNT ( * ) / 39 + + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

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

query II rowsort
SELECT ALL 45 * + 1 - + - 81 col1, - 60
----
126
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-327
SELECT + - 33 * - 76 + + 35 + - 44 * + 71 * + + 16 - + - 65 + 1 DIV + 89 AS col1
----
-47376

skipif mysql # not compatible
query I rowsort label-327
SELECT + - 33 * - 76 + + 35 + - 44 * + 71 * + + 16 - + - 65 + 1 / + 89 AS col1
----
-47376

onlyif mysql # aggregate syntax: 
query II rowsort label-328
SELECT DISTINCT 30 * - 46 - + 34 col1, + 62 - ( + 92 ) * + COUNT( * ) + - ( COUNT( - 84 ) ) AS col2
----
-1414
-31

skipif mysql # not compatible
query II rowsort label-328
SELECT DISTINCT 30 * - 46 - + 34 col1, + 62 - ( + 92 ) * + COUNT ( * ) + - ( COUNT ( - 84 ) ) AS col2
----
-1414
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-329
SELECT - - 83 DIV + - ( CAST( - ( 50 ) AS SIGNED ) ) + - 42 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-329
SELECT - - 83 / + - ( CAST ( - ( 50 ) AS INTEGER ) ) + - 42 AS col1
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-330
SELECT + 84 * + - 3 + + 89 * NULLIF ( ( - + 15 ), 3 ) * + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-330
SELECT + 84 * + - 3 + + 89 * NULLIF ( ( - + 15 ), 3 ) * + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT DISTINCT 24 * + 66
----
1584

query I rowsort
SELECT DISTINCT + 50 * - ( + - 34 ) * - 36 + + 52 AS col2
----
-61148

query I rowsort
SELECT + 96 * + 6 - - 74
----
650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-334
SELECT DISTINCT ( - 10 ) * + - COUNT( * ) * 87 * + ( 69 ) + + - COUNT( - 6 ) - 17 DIV 45 AS col0
----
60029

skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT ( - 10 ) * + - COUNT ( * ) * 87 * + ( 69 ) + + - COUNT ( - 6 ) - 17 / 45 AS col0
----
60029

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-335
SELECT + + 62 DIV MIN( 77 )
----
0

skipif mysql # not compatible
query I rowsort label-335
SELECT + + 62 / MIN ( 77 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-336
SELECT - + 57 DIV + 72, - COUNT( DISTINCT 8 ) AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-336
SELECT - + 57 / + 72, - COUNT ( DISTINCT 8 ) AS col0
----
0
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-338
SELECT - 57 + + SUM( DISTINCT + + NULLIF ( 33, - 31 ) ) AS col2, COUNT( * )
----
-24
1

skipif mysql # not compatible
query II rowsort label-338
SELECT - 57 + + SUM ( DISTINCT + + NULLIF ( 33, - 31 ) ) AS col2, COUNT ( * )
----
-24
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-339
SELECT DISTINCT + 35 / - - COALESCE ( - + 52, CAST( 48 AS DECIMAL ) * - - ( + 40 ) + + 27 * CAST( + 20 AS SIGNED ), - 31 ) * + CASE - COUNT( * ) + 73 * + 53 WHEN COUNT( + 93 ) THEN + COALESCE ( MAX( 63 ), 97 / 99 + - 99 * - 43, + COUNT( DISTINCT - 31 ) / 41 ) WHEN 84 + ( + CASE - 52 WHEN 51 + AVG ( + 84 + 16 ) THEN COUNT( * ) / 58 WHEN 18 THEN NULL END - 78 ) / - COUNT( * ) THEN 29 * + 59 WHEN + 27 / - AVG ( DISTINCT 31 ) + + MIN( ALL 30 ) THEN NULL END - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT + 35 / - - COALESCE ( - + 52, CAST ( 48 AS REAL ) * - - ( + 40 ) + + 27 * CAST ( + 20 AS INTEGER ), - 31 ) * + CASE - COUNT ( * ) + 73 * + 53 WHEN COUNT ( + 93 ) THEN + COALESCE ( MAX ( 63 ), 97 / 99 + - 99 * - 43, + COUNT ( DISTINCT - 31 ) / 41 ) WHEN 84 + ( + CASE - 52 WHEN 51 + AVG ( + 84 + 16 ) THEN COUNT ( * ) / 58 WHEN 18 THEN NULL END - 78 ) / - COUNT ( * ) THEN 29 * + 59 WHEN + 27 / - AVG ( DISTINCT 31 ) + + MIN ( ALL 30 ) THEN NULL END - + 95
----
NULL

query I rowsort
SELECT DISTINCT - 43 + + 9 + - - 30
----
-4

query I rowsort
SELECT ALL + 85 + + - 44 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT ALL - CASE + 47 WHEN + + MIN( + 40 ) THEN NULL WHEN + 69 THEN - SUM( DISTINCT - + 59 ) - COUNT( * ) WHEN 93 + + 51 / 64 THEN 95 END + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL - CASE + 47 WHEN + + MIN ( + 40 ) THEN NULL WHEN + 69 THEN - SUM ( DISTINCT - + 59 ) - COUNT ( * ) WHEN 93 + + 51 / 64 THEN 95 END + + 26
----
NULL

query I rowsort
SELECT DISTINCT + 8 + + + 59 AS col2
----
67

query I rowsort
SELECT DISTINCT - ( + + 75 ) + - + COALESCE ( 94, + + 11 - 86 ) AS col0
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT DISTINCT - NULLIF ( + 23, + - COALESCE ( 69, + ( 1 ) * + 61 + - CASE - 47 WHEN 47 THEN - 22 / + NULLIF ( ( MAX( 46 ) ), - 70 * 73 ) + 61 ELSE NULL END ) + + 80 ) + - 95
----
-118

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT - NULLIF ( + 23, + - COALESCE ( 69, + ( 1 ) * + 61 + - CASE - 47 WHEN 47 THEN - 22 / + NULLIF ( ( MAX ( 46 ) ), - 70 * 73 ) + 61 ELSE NULL END ) + + 80 ) + - 95
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-346
SELECT ALL + 63 + - 50 - - COUNT( * ) DIV - ( + + SUM( ALL - 62 ) ) * + + 86 col0
----
13

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL + 63 + - 50 - - COUNT ( * ) / - ( + + SUM ( ALL - 62 ) ) * + + 86 col0
----
13

query II rowsort
SELECT 35, + 66 * - 49 AS col1
----
35
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT DISTINCT + NULLIF ( COUNT( * ), + 12 ) + - SUM( + - 50 ) + - 23 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT + NULLIF ( COUNT ( * ), + 12 ) + - SUM ( + - 50 ) + - 23 AS col2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-349
SELECT 35 DIV - - 14 col2
----
2

skipif mysql # not compatible
query I rowsort label-349
SELECT 35 / - - 14 col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT COUNT( ALL + 85 ) * COUNT( 76 ) * - - COUNT( * ) + 8, + 21 col1
----
9
21

skipif mysql # not compatible
query II rowsort label-350
SELECT COUNT ( ALL + 85 ) * COUNT ( 76 ) * - - COUNT ( * ) + 8, + 21 col1
----
9
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-351
SELECT ALL - 9 col1, + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + COUNT( + + 54 ) + - COUNT( * ) + - 67
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-351
SELECT ALL - 9 col1, + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + COUNT ( + + 54 ) + - COUNT ( * ) + - 67
----
-9
NULL

query I rowsort
SELECT ALL - 64 + 45 AS col2
----
-19

query I rowsort
SELECT 51 - 46 + - + 76
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ALL + 1 + + - MAX( ALL 80 )
----
-79

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL + 1 + + - MAX ( ALL 80 )
----
-79

query I rowsort
SELECT ALL 65 * + 59
----
3835

query I rowsort
SELECT 50 + + 83
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT CASE 58 WHEN - COUNT( ALL + + 94 ) * 44 THEN - 17 ELSE NULL END * 33 * - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-357
SELECT CASE 58 WHEN - COUNT ( ALL + + 94 ) * 44 THEN - 17 ELSE NULL END * 33 * - 79 AS col1
----
NULL

query II rowsort
SELECT 59, 56 + - - 85 AS col0
----
59
141

query I rowsort
SELECT - 16 - 16
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT ALL - 82 * 96 * - COUNT( * ) * + - 58 - - + 66 + NULLIF ( + 26, + - 81 ) + - 8
----
-456492

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL - 82 * 96 * - COUNT ( * ) * + - 58 - - + 66 + NULLIF ( + 26, + - 81 ) + - 8
----
-456492

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-362
SELECT + + 90 DIV - COALESCE ( - + ( - 31 ), 32 + - 51, + 83 ) + - COUNT( DISTINCT 56 ) + ( 55 ) + 78
----
130

skipif mysql # not compatible
query I rowsort label-362
SELECT + + 90 / - COALESCE ( - + ( - 31 ), 32 + - 51, + 83 ) + - COUNT ( DISTINCT 56 ) + ( 55 ) + 78
----
130

query II rowsort
SELECT - 48 * + 6 - COALESCE ( + 65, - - 49, + + 12 ) AS col0, 46 AS col2
----
-353
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL - MAX( DISTINCT - - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL - MAX ( DISTINCT - - 33 )
----
-33

query I rowsort
SELECT CASE WHEN NOT + 37 <= - - 62 * - - 26 + + + ( - 78 ) THEN NULL ELSE - + 3 END + - 4 AS col1
----
-7

query I rowsort
SELECT CASE - 90 WHEN + - 5 THEN NULL WHEN 34 THEN + - 67 END
----
NULL

query II rowsort
SELECT ALL - 30 col0, - 41 AS col1
----
-30
-41

query II rowsort
SELECT - 21 col1, ( - + 24 ) AS col2
----
-21
-24

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

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

query I rowsort
SELECT - 71 + 21
----
-50

query I rowsort
SELECT - - ( - 83 )
----
-83

query I rowsort
SELECT ALL 15 * + 45 AS col1
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT 50 * - + 15 + + 24 - - + COUNT( - 33 ) * - - 40 * - 28 AS col0
----
-1846

skipif mysql # not compatible
query I rowsort label-374
SELECT 50 * - + 15 + + 24 - - + COUNT ( - 33 ) * - - 40 * - 28 AS col0
----
-1846

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

query I rowsort
SELECT DISTINCT + 72 + + 45 + + 46 + - + 43 AS col0
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-377
SELECT ALL + COUNT( * ) + - - 59 + + 11 * - 99 * - ( + 57 ), 77 + + 98 - + 42 AS col2
----
62133
133

skipif mysql # not compatible
query II rowsort label-377
SELECT ALL + COUNT ( * ) + - - 59 + + 11 * - 99 * - ( + 57 ), 77 + + 98 - + 42 AS col2
----
62133
133

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT + COUNT( * ) - CASE + 38 WHEN + COUNT( * ) * 22 THEN 49 WHEN 57 / - + 77 * + MIN( ALL - ( 20 ) * - 98 ) - 32 * 83 THEN + ( 58 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT + COUNT ( * ) - CASE + 38 WHEN + COUNT ( * ) * 22 THEN 49 WHEN 57 / - + 77 * + MIN ( ALL - ( 20 ) * - 98 ) - 32 * 83 THEN + ( 58 ) END AS col2
----
NULL

query II rowsort
SELECT 45 AS col2, + 17 * 27
----
45
459

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-380
SELECT ALL COUNT( * ) + COUNT( * ) DIV + COUNT( * ) + + - 6 AS col1, - ( CASE NULLIF ( - 34, - 28 + + 48 ) WHEN - 56 THEN NULL WHEN - ( 82 ) + + ( - 22 ) THEN COUNT( * ) END ) * MIN( - ( - 67 ) ) AS col2
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-380
SELECT ALL COUNT ( * ) + COUNT ( * ) / + COUNT ( * ) + + - 6 AS col1, - ( CASE NULLIF ( - 34, - 28 + + 48 ) WHEN - 56 THEN NULL WHEN - ( 82 ) + + ( - 22 ) THEN COUNT ( * ) END ) * MIN ( - ( - 67 ) ) AS col2
----
-4
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-381
SELECT 16 + + CAST( NULL AS DECIMAL ), + CAST( NULL AS SIGNED ) + ( 23 ), CASE + ( + ( - 0 ) ) WHEN + 27 THEN + 57 ELSE NULL END AS col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query III rowsort label-381
SELECT 16 + + CAST ( NULL AS REAL ), + CAST ( NULL AS INTEGER ) + ( 23 ), CASE + ( + ( - 0 ) ) WHEN + 27 THEN + 57 ELSE NULL END AS col0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-382
SELECT 61 - - NULLIF ( + 85, 83 + + 73 + + - COUNT( * ) + - 20 ) AS col0, MAX( DISTINCT - 5 )
----
146
-5

skipif mysql # not compatible
query II rowsort label-382
SELECT 61 - - NULLIF ( + 85, 83 + + 73 + + - COUNT ( * ) + - 20 ) AS col0, MAX ( DISTINCT - 5 )
----
146
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-383
SELECT 35 + + CAST( NULL AS SIGNED ) * NULLIF ( + 44, + + 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-383
SELECT 35 + + CAST ( NULL AS INTEGER ) * NULLIF ( + 44, + + 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT 71 - + 88 + COUNT( * ) * + 28 * + 93
----
2587

skipif mysql # not compatible
query I rowsort label-384
SELECT 71 - + 88 + COUNT ( * ) * + 28 * + 93
----
2587

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-386
SELECT ( + 84 ) + - + CAST( - 74 AS SIGNED ) DIV - 68
----
83

skipif mysql # not compatible
query I rowsort label-386
SELECT ( + 84 ) + - + CAST ( - 74 AS INTEGER ) / - 68
----
83

query I rowsort
SELECT 61 + + 59 + + - 53 AS col1
----
67

query I rowsort
SELECT ALL + 5 * - 98 col1
----
-490

query I rowsort
SELECT 6 * + + 6 + - 0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT DISTINCT 69 * + SUM( DISTINCT ( - 35 ) ) - - COUNT( * ) * + - 72 AS col2
----
-2487

skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT 69 * + SUM ( DISTINCT ( - 35 ) ) - - COUNT ( * ) * + - 72 AS col2
----
-2487

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

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

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

query I rowsort
SELECT 66 * 71
----
4686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-394
SELECT DISTINCT - ( + 9 ) AS col2, + COUNT( * ) * + 96 * CAST( NULL AS SIGNED ) + + + 96 + + 36
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-394
SELECT DISTINCT - ( + 9 ) AS col2, + COUNT ( * ) * + 96 * CAST ( NULL AS INTEGER ) + + + 96 + + 36
----
-9
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-395
SELECT 17 DIV + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-395
SELECT 17 / + 57 AS col2
----
0

query I rowsort
SELECT + + 49 * - + 77 * 94 + + + 41 col2
----
-354621

query I rowsort
SELECT 88 - + 6 AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-398
SELECT ALL - CAST( NULL AS SIGNED ) * - - 91 * COUNT( * ) + ( + 68 ) + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 91 * COUNT ( * ) + ( + 68 ) + 19
----
NULL

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

skipif mysql # not compatible
query I rowsort label-399
SELECT + 69 / COUNT ( * ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT + 4 * - 35 + COUNT( * ) AS col0
----
-139

skipif mysql # not compatible
query I rowsort label-400
SELECT + 4 * - 35 + COUNT ( * ) AS col0
----
-139

query I rowsort
SELECT DISTINCT - - 95 + 5 + + + 1 AS col1
----
101

query I rowsort
SELECT ALL + 85 + + 57 * + 79
----
4588

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT DISTINCT + - NULLIF ( + 53, + COUNT( DISTINCT - + 37 ) * - 2 )
----
-53

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT + - NULLIF ( + 53, + COUNT ( DISTINCT - + 37 ) * - 2 )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-404
SELECT DISTINCT + + 66 + - - COUNT( * ) AS col0, NULLIF ( 87, - 23 ) AS col0
----
67
87

skipif mysql # not compatible
query II rowsort label-404
SELECT DISTINCT + + 66 + - - COUNT ( * ) AS col0, NULLIF ( 87, - 23 ) AS col0
----
67
87

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT + - 5 - - COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-405
SELECT + - 5 - - COUNT ( * ) AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-406
SELECT ALL + - CAST( NULL AS SIGNED ) + - + 51 / + SUM( 60 ) + + 48 - - 45 + - 23 + + + 97 * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL + - CAST ( NULL AS INTEGER ) + - + 51 / + SUM ( 60 ) + + 48 - - 45 + - 23 + + + 97 * 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-407
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + 14
----
15

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + 14
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT ALL 96 - COUNT( * ) * - 69 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL 96 - COUNT ( * ) * - 69 AS col2
----
165

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

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL 72 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 78 * + 77
----
6006

query I rowsort
SELECT DISTINCT 89 * - 12
----
-1068

query I rowsort
SELECT DISTINCT 1 * 37
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-413
SELECT ALL 36 * MIN( + 88 ) AS col1, 89 * - 66 col0
----
3168
-5874

skipif mysql # not compatible
query II rowsort label-413
SELECT ALL 36 * MIN ( + 88 ) AS col1, 89 * - 66 col0
----
3168
-5874

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT - MIN( - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-414
SELECT - MIN ( - 47 )
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT + ( - - NULLIF ( + + 70, + 23 + NULLIF ( + + 20, - - 32 * - COUNT( * ) + - MIN( ALL 1 ) + ( 87 ) ) + COUNT( * ) / + 49 ) ) * 16 AS col0
----
1120

skipif mysql # not compatible
query I rowsort label-416
SELECT + ( - - NULLIF ( + + 70, + 23 + NULLIF ( + + 20, - - 32 * - COUNT ( * ) + - MIN ( ALL 1 ) + ( 87 ) ) + COUNT ( * ) / + 49 ) ) * 16 AS col0
----
1120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-417
SELECT + 82 * CAST( - 14 AS SIGNED ) * + 11
----
-12628

skipif mysql # not compatible
query I rowsort label-417
SELECT + 82 * CAST ( - 14 AS INTEGER ) * + 11
----
-12628

query I rowsort
SELECT + 94 - + 63 AS col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-419
SELECT DISTINCT 23 DIV - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-419
SELECT DISTINCT 23 / - 65 AS col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT + ( 25 ) * - + CAST( - 66 AS SIGNED )
----
1650

skipif mysql # not compatible
query I rowsort label-421
SELECT + ( 25 ) * - + CAST ( - 66 AS INTEGER )
----
1650

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-423
SELECT ALL - COUNT( * ) * - + 91 DIV + ( - ( - 41 ) ) col0
----
2

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL - COUNT ( * ) * - + 91 / + ( - ( - 41 ) ) col0
----
2

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

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

query I rowsort
SELECT ALL + 99 * + - 82
----
-8118

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL - COUNT( * ) * 97 + ( + ( - 81 ) ) + - CASE + 90 WHEN COUNT( * ) + + 36 THEN NULL WHEN + 81 + - 54 THEN NULL WHEN 79 THEN 22 END * 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL - COUNT ( * ) * 97 + ( + ( - 81 ) ) + - CASE + 90 WHEN COUNT ( * ) + + 36 THEN NULL WHEN + 81 + - 54 THEN NULL WHEN 79 THEN 22 END * 22 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT DISTINCT - - 35 * 67 DIV - + COALESCE ( + ( 68 ), - 56 ) + - 5 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT - - 35 * 67 / - + COALESCE ( + ( 68 ), - 56 ) + - 5 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT DISTINCT + 72 * 7 + + - SUM( - 54 )
----
558

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT + 72 * 7 + + - SUM ( - 54 )
----
558

query I rowsort
SELECT - 91 * - 51 AS col2
----
4641

query I rowsort
SELECT ALL - + 68 * + - 59
----
4012

query I rowsort
SELECT - + 69 - 15
----
-84

query II rowsort
SELECT + + 88 AS col2, - 19 col1
----
88
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT 94 * CASE + 14 WHEN + COUNT( * ) * + 52 THEN + + 32 - - 5 END - + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-434
SELECT 94 * CASE + 14 WHEN + COUNT ( * ) * + 52 THEN + + 32 - - 5 END - + - 84
----
NULL

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

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

query I rowsort
SELECT + - ( + NULLIF ( 41, + 2 + - 20 ) )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-437
SELECT ALL ( - + 13 ) * - 40 col1, COALESCE ( - - 29, - 80 * - - 90 * + + CASE 75 WHEN + 64 THEN + ( 64 ) WHEN - 84 * ( COUNT( * ) ) THEN - 36 END * 9 ) + - ( ( - ( - 24 ) ) ) col1
----
520
5

skipif mysql # not compatible
query II rowsort label-437
SELECT ALL ( - + 13 ) * - 40 col1, COALESCE ( - - 29, - 80 * - - 90 * + + CASE 75 WHEN + 64 THEN + ( 64 ) WHEN - 84 * ( COUNT ( * ) ) THEN - 36 END * 9 ) + - ( ( - ( - 24 ) ) ) col1
----
520
5

query I rowsort
SELECT ALL - - 93 * + 3 AS col0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT DISTINCT 30 * NULLIF ( 29, + + 88 + - 36 ) * - 58 * - 31 + - - 68 + - MIN( + + 47 ) col2
----
1564281

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT 30 * NULLIF ( 29, + + 88 + - 36 ) * - 58 * - 31 + - - 68 + - MIN ( + + 47 ) col2
----
1564281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-440
SELECT ALL - + 76 * + 58 + - 10 + CASE - 73 WHEN - 86 + + ( + ( - 70 ) ) + - 36 * 28 / - 1 THEN + 24 WHEN COALESCE ( + 78, + 25 ) - 53 THEN + COUNT( * ) * - 41 + 56 * NULLIF ( + 45, - 16 ) END * CAST( 10 AS SIGNED ) + NULLIF ( + 16, 6 / - 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL - + 76 * + 58 + - 10 + CASE - 73 WHEN - 86 + + ( + ( - 70 ) ) + - 36 * 28 / - 1 THEN + 24 WHEN COALESCE ( + 78, + 25 ) - 53 THEN + COUNT ( * ) * - 41 + 56 * NULLIF ( + 45, - 16 ) END * CAST ( 10 AS INTEGER ) + NULLIF ( + 16, 6 / - 59 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-441
SELECT DISTINCT - 95 DIV + - 28
----
3

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT - 95 / + - 28
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-442
SELECT - - 68 * ( 97 ) + - - MAX( ALL - CAST( 5 AS SIGNED ) ) + - 9
----
6582

skipif mysql # not compatible
query I rowsort label-442
SELECT - - 68 * ( 97 ) + - - MAX ( ALL - CAST ( 5 AS INTEGER ) ) + - 9
----
6582

query I rowsort
SELECT ALL - 62 * - 83 * - 21 col2
----
-108066

query I rowsort
SELECT - 8 + + + 23 + - + 43 * 96 + - + 56 * 26
----
-5569

onlyif mysql # DIV for integer division: 
query I rowsort label-445
SELECT - 14 DIV + 13
----
-1

skipif mysql # not compatible
query I rowsort label-445
SELECT - 14 / + 13
----
-1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-448
SELECT ALL COUNT( * ) * + 7 * - 67 - + 55 + COUNT( * ) * COUNT( * ) / ( - COUNT( * ) ) * - 0 + + AVG ( CAST( NULL AS SIGNED ) ) + 78 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL COUNT ( * ) * + 7 * - 67 - + 55 + COUNT ( * ) * COUNT ( * ) / ( - COUNT ( * ) ) * - 0 + + AVG ( CAST ( NULL AS INTEGER ) ) + 78 * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-449
SELECT DISTINCT COALESCE ( + - CASE + + 16 WHEN - ( 79 ) * 9 + + 24 THEN 54 * + COUNT( * ) WHEN - 34 * - 91 + 99 * 39 - - MIN( ALL - 18 ) THEN 68 + + 62 WHEN + 43 * COUNT( * ) + 7 THEN NULL ELSE NULL END, + 21 DIV ( + CAST( 75 AS SIGNED ) * - COUNT( * ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT COALESCE ( + - CASE + + 16 WHEN - ( 79 ) * 9 + + 24 THEN 54 * + COUNT ( * ) WHEN - 34 * - 91 + 99 * 39 - - MIN ( ALL - 18 ) THEN 68 + + 62 WHEN + 43 * COUNT ( * ) + 7 THEN NULL ELSE NULL END, + 21 / ( + CAST ( 75 AS INTEGER ) * - COUNT ( * ) ) ) AS col2
----
0

query I rowsort
SELECT ALL + COALESCE ( - 74, - - 71 ) * - - 67
----
-4958

query I rowsort
SELECT - 78 - + 54
----
-132

query I rowsort
SELECT - 37 * + 57
----
-2109

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-455
SELECT + NULLIF ( + 41, CAST( + 74 AS SIGNED ) ) + 15 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-455
SELECT + NULLIF ( + 41, CAST ( + 74 AS INTEGER ) ) + 15 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT ALL 42 - - + SUM( DISTINCT + 84 ) AS col2
----
126

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL 42 - - + SUM ( DISTINCT + 84 ) AS col2
----
126

query I rowsort
SELECT - 1 * - 11 * - 16
----
-176

query I rowsort
SELECT - COALESCE ( + 71, 24 ) col2
----
-71

query I rowsort
SELECT - 18 + + - 33 * + NULLIF ( 6, - 37 ) * + 92 + + 59 + + 42 * + 60 + + 19 AS col2
----
-15636

query II rowsort
SELECT ALL 72, + 65 col0
----
72
65

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT + 76 + + COALESCE ( - COUNT( * ), - + 91 - + + 91 + - - CASE - COUNT( * ) WHEN - 40 * 12 THEN 77 * - SUM( ALL + 37 ) ELSE + NULLIF ( + 67, - 23 / 42 ) + + ( ( 67 ) ) END + ( 29 ) )
----
75

skipif mysql # not compatible
query I rowsort label-461
SELECT + 76 + + COALESCE ( - COUNT ( * ), - + 91 - + + 91 + - - CASE - COUNT ( * ) WHEN - 40 * 12 THEN 77 * - SUM ( ALL + 37 ) ELSE + NULLIF ( + 67, - 23 / 42 ) + + ( ( 67 ) ) END + ( 29 ) )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT ALL 82 * - - 28 * - - 59 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL 82 * - - 28 * - - 59 * - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-463
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + ( ( - 53 ) ) + ( - 63 ) AS col1
----
NULL
-116

skipif mysql # not compatible
query II rowsort label-463
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + ( ( - 53 ) ) + ( - 63 ) AS col1
----
NULL
-116

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

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

query I rowsort
SELECT ALL 35 + + - 99 + + - 87 * COALESCE ( + 59, - NULLIF ( + - 82, + 7 + 48 ), - - 41 ) col1
----
-5197

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT ALL 92 + - 17 + - 5 * + COUNT( * ) + - - 28
----
98

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL 92 + - 17 + - 5 * + COUNT ( * ) + - - 28
----
98

query I rowsort
SELECT + 62 + 70
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-469
SELECT - 6 DIV + 27 + + 70
----
70

skipif mysql # not compatible
query I rowsort label-469
SELECT - 6 / + 27 + + 70
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-470
SELECT + + 79 * 19, - 36 DIV + 12 AS col2
----
1501
-3

skipif mysql # not compatible
query II rowsort label-470
SELECT + + 79 * 19, - 36 / + 12 AS col2
----
1501
-3

query I rowsort
SELECT + NULLIF ( 37, 3 ) AS col2
----
37

query II rowsort
SELECT 47, + 31 AS col1
----
47
31

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

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT - + 83 / 65 + + + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT + ( + - 82 ) DIV 97 + 56 + - 72 - + 80 * 88 AS col2
----
-7056

skipif mysql # not compatible
query I rowsort label-474
SELECT + ( + - 82 ) / 97 + 56 + - 72 - + 80 * 88 AS col2
----
-7056

query I rowsort
SELECT 15 + - 98
----
-83

query I rowsort
SELECT ALL 81 + - - 6
----
87

query I rowsort
SELECT ALL + 49 + ( + 96 ) col2
----
145

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-480
SELECT ALL - 38, 16 + + - 8 DIV + 13 col2
----
-38
16

skipif mysql # not compatible
query II rowsort label-480
SELECT ALL - 38, 16 + + - 8 / + 13 col2
----
-38
16

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

skipif mysql # not compatible
query I rowsort label-481
SELECT - COUNT ( ALL + 4 ) * + 69 AS col1
----
-69

query I rowsort
SELECT ALL - 66 * + 11 + - 54 AS col1
----
-780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-483
SELECT - - 82 * - 96 + + - 89 - + SUM( - 0 ) + - 85 DIV - + 37 + + - 15 + + 49 + + - ( + + 73 )
----
-7998

skipif mysql # not compatible
query I rowsort label-483
SELECT - - 82 * - 96 + + - 89 - + SUM ( - 0 ) + - 85 / - + 37 + + - 15 + + 49 + + - ( + + 73 )
----
-7998

query I rowsort
SELECT + - NULLIF ( + 88, 24 ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT COUNT( * ) * - - 18 + ( 76 ) + 30
----
124

skipif mysql # not compatible
query I rowsort label-485
SELECT COUNT ( * ) * - - 18 + ( 76 ) + 30
----
124

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

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL - SUM ( ALL - 9 )
----
9

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-489
SELECT NULLIF ( - 9, + - 59 * + CAST( NULL AS SIGNED ) + - 27 + + MAX( - + ( + - 46 ) ) ) / 39 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-489
SELECT NULLIF ( - 9, + - 59 * + CAST ( NULL AS INTEGER ) + - 27 + + MAX ( - + ( + - 46 ) ) ) / 39 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 80 * - 85 * ( + 12 )
----
-81600

query I rowsort
SELECT DISTINCT + 56 * - 95
----
-5320

query I rowsort
SELECT 70 * - - 21 * + + 90
----
132300

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT COUNT( * ) + + - 22 * - 22 * - 27 AS col2
----
-13067

skipif mysql # not compatible
query I rowsort label-493
SELECT COUNT ( * ) + + - 22 * - 22 * - 27 AS col2
----
-13067

query II rowsort
SELECT ALL - 84 * 24 col1, - 87
----
-2016
-87

query I rowsort
SELECT DISTINCT 94 + 41 AS col1
----
135

query II rowsort
SELECT ALL - 84 * 67, 65 * + 90 col1
----
-5628
5850

query I rowsort
SELECT 76 - + + 81 col0
----
-5

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

query II rowsort
SELECT + 99 - + + 14 col0, + 27 + NULLIF ( - 95, + 66 )
----
85
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-500
SELECT - 82 * 43 AS col2, 63 - - 90 * + SUM( 87 ) * + 74 * - 0 - - ( - 54 ) * + + CASE + 84 WHEN 14 THEN + ( 52 ) ELSE NULL END - COUNT( * )
----
-3526
NULL

skipif mysql # not compatible
query II rowsort label-500
SELECT - 82 * 43 AS col2, 63 - - 90 * + SUM ( 87 ) * + 74 * - 0 - - ( - 54 ) * + + CASE + 84 WHEN 14 THEN + ( 52 ) ELSE NULL END - COUNT ( * )
----
-3526
NULL

query I rowsort
SELECT ALL 66 + - 52 + + 64 + + ( 49 ) AS col2
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-502
SELECT ALL + 78 + - + 78 - - ( - + CASE 15 WHEN + NULLIF ( 20, - 29 ) THEN + NULLIF ( 28, - 39 ) ELSE - 18 DIV 61 END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL + 78 + - + 78 - - ( - + CASE 15 WHEN + NULLIF ( 20, - 29 ) THEN + NULLIF ( 28, - 39 ) ELSE - 18 / 61 END ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 20 + - - ( + + 19 ) + + + 50 col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT ALL + 56 * - CASE 7 WHEN - 24 THEN - - COUNT( * ) + + MAX( + + 14 ) WHEN - 15 + + 34 - - ( - + 64 ) / 35 * - 19 THEN NULL ELSE + 28 END
----
-1568

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL + 56 * - CASE 7 WHEN - 24 THEN - - COUNT ( * ) + + MAX ( + + 14 ) WHEN - 15 + + 34 - - ( - + 64 ) / 35 * - 19 THEN NULL ELSE + 28 END
----
-1568

query I rowsort
SELECT + ( 21 ) * + + 1 - - + 63 AS col0
----
84

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

onlyif mysql # DIV for integer division: 
query I rowsort label-507
SELECT - 43 DIV - 86 + - 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-507
SELECT - 43 / - 86 + - 18 AS col2
----
-18

query I rowsort
SELECT + NULLIF ( + 42, + 95 ) * 75 AS col1
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT ALL ( - 54 ) * + CASE COUNT( * ) WHEN - COUNT( * ) * - 44 + - + CASE + 17 WHEN 7 - 3 THEN NULL WHEN 90 THEN + COUNT( * ) ELSE + 75 * - 34 END * 70 THEN - ( - COUNT( * ) ) WHEN + 41 + + 80 THEN + SUM( + 57 ) * + 18 - 5 WHEN 21 * 22 THEN NULL END + + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL ( - 54 ) * + CASE COUNT ( * ) WHEN - COUNT ( * ) * - 44 + - + CASE + 17 WHEN 7 - 3 THEN NULL WHEN 90 THEN + COUNT ( * ) ELSE + 75 * - 34 END * 70 THEN - ( - COUNT ( * ) ) WHEN + 41 + + 80 THEN + SUM ( + 57 ) * + 18 - 5 WHEN 21 * 22 THEN NULL END + + 28 AS col2
----
NULL

query I rowsort
SELECT 31 * - 28 + + 27 AS col2
----
-841

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

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

query I rowsort
SELECT 32 - 37
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-513
SELECT COUNT( * ) * - 74 col0, 0
----
-74
0

skipif mysql # not compatible
query II rowsort label-513
SELECT COUNT ( * ) * - 74 col0, 0
----
-74
0

query I rowsort
SELECT - 56 + 50 * + 54 * + 47
----
126844

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT DISTINCT - 13 DIV + + 1
----
-13

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT - 13 / + + 1
----
-13

query I rowsort
SELECT ALL 49 * - 49 AS col1
----
-2401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-517
SELECT CAST( + 67 AS SIGNED ) * + - 30
----
-2010

skipif mysql # not compatible
query I rowsort label-517
SELECT CAST ( + 67 AS INTEGER ) * + - 30
----
-2010

query II rowsort
SELECT 51 * - 0 + - + 14 AS col0, 6 + + 43 AS col2
----
-14
49

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ( - 3 ) * 61 + 80 + - - 85 + - 37 * - CASE - + 71 WHEN + 75 THEN NULL WHEN + + ( - 96 ) + ( COUNT( * ) ) THEN 33 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-519
SELECT ( - 3 ) * 61 + 80 + - - 85 + - 37 * - CASE - + 71 WHEN + 75 THEN NULL WHEN + + ( - 96 ) + ( COUNT ( * ) ) THEN 33 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 51 + 59
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-521
SELECT 70 AS col1, + 56 + COUNT( * ) * 5
----
70
61

skipif mysql # not compatible
query II rowsort label-521
SELECT 70 AS col1, + 56 + COUNT ( * ) * 5
----
70
61

query I rowsort
SELECT 89 * - + 28 AS col1
----
-2492

query I rowsort
SELECT DISTINCT 7 * + 98 col1
----
686

query I rowsort
SELECT 70 + 55 + - 86 * NULLIF ( + 17, + + COALESCE ( 9, - 76, - 76 ) ) AS col1
----
-1337

query I rowsort
SELECT DISTINCT 12 + 16
----
28

query II rowsort
SELECT DISTINCT 71 * + - 52 * 10 AS col1, - ( 83 ) col2
----
-36920
-83

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

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

query I rowsort
SELECT DISTINCT 64 + 87
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT ( + 62 ) + MIN( + COALESCE ( + 76, + - ( + 26 ), - 63, + 4 + ( - 91 ) + + - 32 ) ) * 84 * + 23 AS col2
----
146894

skipif mysql # not compatible
query I rowsort label-529
SELECT ( + 62 ) + MIN ( + COALESCE ( + 76, + - ( + 26 ), - 63, + 4 + ( - 91 ) + + - 32 ) ) * 84 * + 23 AS col2
----
146894

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-530
SELECT 86, 44 DIV + 53 * - 36 * - 30 + + COUNT( * ) AS col0
----
86
1

skipif mysql # not compatible
query II rowsort label-530
SELECT 86, 44 / + 53 * - 36 * - 30 + + COUNT ( * ) AS col0
----
86
1

query I rowsort
SELECT 21 - - ( - 39 ) AS col2
----
-18

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

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

query I rowsort
SELECT ALL + + 62 * + 5 col1
----
310

onlyif mysql # DIV for integer division: 
query I rowsort label-534
SELECT - 80 + + - 46 DIV 95 * 16
----
-80

skipif mysql # not compatible
query I rowsort label-534
SELECT - 80 + + - 46 / 95 * 16
----
-80

query II rowsort
SELECT - 51 AS col0, - 48 + + - 31
----
-51
-79

query I rowsort
SELECT ALL - - 86 - + + 15 * + 49 + + 9 AS col0
----
-640

query I rowsort
SELECT ALL - - 70 * - - 95 AS col2
----
6650

query II rowsort
SELECT ALL 24 AS col2, + CASE + - COALESCE ( - 46, ( 90 ), 90 ) WHEN + 69 THEN - + 7 WHEN + - 92 THEN NULL END
----
24
NULL

query I rowsort
SELECT - - 21 + - - 60 AS col1
----
81

query I rowsort
SELECT DISTINCT + - 57 * - 78 AS col2
----
4446

query I rowsort
SELECT - 13 * + + 72 * + 46 * + - COALESCE ( - - 17, 83, - 83 - COALESCE ( + 84, 1 ) ) AS col1
----
731952

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

skipif mysql # not compatible
query I rowsort label-542
SELECT - + 94 * + CAST ( - 2 AS INTEGER ) AS col1
----
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-543
SELECT DISTINCT - 83 * + 69 * + 70, + 43 DIV CAST( + 40 AS SIGNED ) * + - 94 + - - COUNT( * ) + - MAX( DISTINCT - + 33 ) * NULLIF ( - 15, + - 75 * + COUNT( * ) ) * - 4 AS col0
----
-400890
1887

skipif mysql # not compatible
query II rowsort label-543
SELECT DISTINCT - 83 * + 69 * + 70, + 43 / CAST ( + 40 AS INTEGER ) * + - 94 + - - COUNT ( * ) + - MAX ( DISTINCT - + 33 ) * NULLIF ( - 15, + - 75 * + COUNT ( * ) ) * - 4 AS col0
----
-400890
1887

query II rowsort
SELECT DISTINCT + 9, - ( + NULLIF ( - + 88, - + 56 - + + 49 ) ) * + 70 + + - 47 AS col2
----
9
6113

query I rowsort
SELECT ALL + NULLIF ( + 26, + - 44 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-546
SELECT ALL + 50 * - SUM( + 62 ) AS col1, COUNT( * ) AS col0
----
-3100
1

skipif mysql # not compatible
query II rowsort label-546
SELECT ALL + 50 * - SUM ( + 62 ) AS col1, COUNT ( * ) AS col0
----
-3100
1

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT + ( - + NULLIF ( - 17, - 97 * - 67 / - + 22 + - + COALESCE ( 6, + 22 ) + - - COUNT( * ) + + 66 * - 12 / - 54 * - 81 * - 55 + 62 ) ) + + COUNT( * ) * - MIN( 41 - 9 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-547
SELECT + ( - + NULLIF ( - 17, - 97 * - 67 / - + 22 + - + COALESCE ( 6, + 22 ) + - - COUNT ( * ) + + 66 * - 12 / - 54 * - 81 * - 55 + 62 ) ) + + COUNT ( * ) * - MIN ( 41 - 9 ) AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-548
SELECT DISTINCT + 73 * - COUNT( * ) AS col0, - 17 + + - COUNT( ALL + CAST( - 57 AS SIGNED ) ) + COUNT( * ) AS col0, + 80
----
-73
-17
80

skipif mysql # not compatible
query III rowsort label-548
SELECT DISTINCT + 73 * - COUNT ( * ) AS col0, - 17 + + - COUNT ( ALL + CAST ( - 57 AS INTEGER ) ) + COUNT ( * ) AS col0, + 80
----
-73
-17
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-549
SELECT CASE + - 89 WHEN - CAST( NULL AS SIGNED ) THEN + 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-549
SELECT CASE + - 89 WHEN - CAST ( NULL AS INTEGER ) THEN + 79 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-550
SELECT - 78 - COUNT( * ) AS col1, + 37 * - 58 * - - 30 AS col0
----
-79
-64380

skipif mysql # not compatible
query II rowsort label-550
SELECT - 78 - COUNT ( * ) AS col1, + 37 * - 58 * - - 30 AS col0
----
-79
-64380

query II rowsort
SELECT + CASE WHEN NOT ( NULL IS NULL ) THEN + + 3 ELSE NULL END AS col2, - 25 AS col2
----
NULL
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT + MIN( DISTINCT - - 25 ) * - COUNT( * ) * + + 2 - + + 21
----
-71

skipif mysql # not compatible
query I rowsort label-552
SELECT + MIN ( DISTINCT - - 25 ) * - COUNT ( * ) * + + 2 - + + 21
----
-71

query I rowsort
SELECT ALL 42 * + 78 + 42 AS col1
----
3318

query I rowsort
SELECT DISTINCT 17 * - 81 + + 8
----
-1369

query II rowsort
SELECT + ( + 6 ) * - 92 + - + 89 AS col1, + 19
----
-641
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-556
SELECT + 0 - - COUNT( DISTINCT - 23 ) + + - 30 + + + 26 * 53 DIV - 49
----
-57

skipif mysql # not compatible
query I rowsort label-556
SELECT + 0 - - COUNT ( DISTINCT - 23 ) + + - 30 + + + 26 * 53 / - 49
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT MAX( - 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-557
SELECT MAX ( - 66 ) AS col1
----
-66

query I rowsort
SELECT ALL 23 + + + ( + 90 ) + - 95 AS col1
----
18

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

skipif mysql # not compatible
query I rowsort label-559
SELECT MAX ( ALL 15 )
----
15

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

skipif mysql # not compatible
query I rowsort label-560
SELECT - SUM ( ALL - 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT - COALESCE ( + + 94, - COUNT( * ), + + 78 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-561
SELECT - COALESCE ( + + 94, - COUNT ( * ), + + 78 ) AS col0
----
-94

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT DISTINCT MIN( ALL + 36 ) - 16
----
20

skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT MIN ( ALL + 36 ) - 16
----
20

query I rowsort
SELECT + + 67 * - - 18
----
1206

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT DISTINCT + + ( 89 ) - + MIN( + + 18 ) + - - 2 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT + + ( 89 ) - + MIN ( + + 18 ) + - - 2 AS col1
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-567
SELECT ALL - ( + 77 ) DIV - - 28 + + 40 AS col2, ( - 4 )
----
38
-4

skipif mysql # not compatible
query II rowsort label-567
SELECT ALL - ( + 77 ) / - - 28 + + 40 AS col2, ( - 4 )
----
38
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-568
SELECT ALL - 79 DIV + 68 AS col2, 15 + + + 58 - + 12 * + 49 AS col0
----
-1
-515

skipif mysql # not compatible
query II rowsort label-568
SELECT ALL - 79 / + 68 AS col2, 15 + + + 58 - + 12 * + 49 AS col0
----
-1
-515

query I rowsort
SELECT + + 15 + + + 64 AS col1
----
79

query I rowsort
SELECT - - 40 + + + 51
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-571
SELECT ALL - 35 DIV - - 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL - 35 / - - 59 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-572
SELECT - - 24 DIV - - 29 AS col0, - 63 DIV ( 21 ) + - COUNT( * ) - + COALESCE ( COALESCE ( + 89, - 53 ), 49 ) * - 9
----
0
797

skipif mysql # not compatible
query II rowsort label-572
SELECT - - 24 / - - 29 AS col0, - 63 / ( 21 ) + - COUNT ( * ) - + COALESCE ( COALESCE ( + 89, - 53 ), 49 ) * - 9
----
0
797

query I rowsort
SELECT + 71 * - 12 - + 73 * 95 * + 1
----
-7787

query I rowsort
SELECT ALL - 85 * - 61
----
5185

query I rowsort
SELECT ( + - 33 ) * 23 - + ( - + 29 ) * + 55 + - 79
----
757

onlyif mysql # DIV for integer division: 
query I rowsort label-576
SELECT ALL - + 67 DIV - 65
----
1

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL - + 67 / - 65
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT + MAX( DISTINCT - + 88 ) col0
----
-88

skipif mysql # not compatible
query I rowsort label-577
SELECT + MAX ( DISTINCT - + 88 ) col0
----
-88

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-580
SELECT DISTINCT 45 DIV - COUNT( + + 77 ) + + 78 + 19 DIV 91 * 95 * + - COALESCE ( + ( - 98 ), CAST( 2 AS SIGNED ) + - 99, - COUNT( - - 22 ) * COUNT( * ) ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT 45 / - COUNT ( + + 77 ) + + 78 + 19 / 91 * 95 * + - COALESCE ( + ( - 98 ), CAST ( 2 AS INTEGER ) + - 99, - COUNT ( - - 22 ) * COUNT ( * ) ) AS col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-581
SELECT DISTINCT COUNT( * ) DIV - 19 * + + 22 * 71 + + 18 + 87
----
105

skipif mysql # not compatible
query I rowsort label-581
SELECT DISTINCT COUNT ( * ) / - 19 * + + 22 * 71 + + 18 + 87
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT ALL - 45 * + 49 + - + 94 * - COUNT( * ) * - 13
----
-3427

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL - 45 * + 49 + - + 94 * - COUNT ( * ) * - 13
----
-3427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-583
SELECT + 7 * + 87 + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-583
SELECT + 7 * + 87 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 25 * + - 20 + + - 82
----
-582

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-585
SELECT - 88 * - COUNT( - 63 ), - COUNT( * ) DIV - 89 * COUNT( * ) * + + 34 col0
----
88
0

skipif mysql # not compatible
query II rowsort label-585
SELECT - 88 * - COUNT ( - 63 ), - COUNT ( * ) / - 89 * COUNT ( * ) * + + 34 col0
----
88
0

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

query II rowsort
SELECT ALL - 59 AS col1, + 25
----
-59
25

onlyif mysql # aggregate syntax: 
query II rowsort label-588
SELECT COUNT( + 54 ) + + 75, + ( + 85 ) * - 16 - - 24 AS col0
----
76
-1336

skipif mysql # not compatible
query II rowsort label-588
SELECT COUNT ( + 54 ) + + 75, + ( + 85 ) * - 16 - - 24 AS col0
----
76
-1336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-589
SELECT 33 * COALESCE ( + COALESCE ( 40, + 13 + 43 * + 6 ), - 72 + + CAST( NULL AS SIGNED ), - 61 ) * + + CASE + 41 WHEN - 41 / + + 59 + + 72 * + 44 THEN - COUNT( * ) WHEN 19 * CAST( + 12 AS DECIMAL ) THEN NULL ELSE + SUM( - 30 ) END - - 46
----
-39554

skipif mysql # not compatible
query I rowsort label-589
SELECT 33 * COALESCE ( + COALESCE ( 40, + 13 + 43 * + 6 ), - 72 + + CAST ( NULL AS INTEGER ), - 61 ) * + + CASE + 41 WHEN - 41 / + + 59 + + 72 * + 44 THEN - COUNT ( * ) WHEN 19 * CAST ( + 12 AS REAL ) THEN NULL ELSE + SUM ( - 30 ) END - - 46
----
-39554

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT 53 * - - COUNT( * ) + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-590
SELECT 53 * - - COUNT ( * ) + COUNT ( * )
----
54

query I rowsort
SELECT ALL 70 - - 48
----
118

query II rowsort
SELECT 54 AS col2, - 12 AS col1
----
54
-12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-594
SELECT DISTINCT + COUNT( DISTINCT - 80 ) * + - COUNT( ALL - NULLIF ( - CAST( NULL AS SIGNED ), 33 ) ) + - + 45 + + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT + COUNT ( DISTINCT - 80 ) * + - COUNT ( ALL - NULLIF ( - CAST ( NULL AS INTEGER ), 33 ) ) + - + 45 + + COUNT ( * )
----
-44

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

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

query II rowsort
SELECT - 29 + - + 93 - - 17 AS col2, 12
----
-105
12

query I rowsort
SELECT + 68 + + - 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT COALESCE ( 4, + 57 + - COUNT( * ), + CASE 97 WHEN 89 * - - CASE + + 76 WHEN + COUNT( ALL 81 ) * - - 18 - - 82 + 41 + - 6 * + COALESCE ( CASE ( + 51 ) WHEN + 79 * ( 18 ) THEN NULL WHEN 55 * - 87 + 45 THEN NULL WHEN 64 THEN NULL ELSE COUNT( * ) END, 36 ) THEN NULL WHEN 80 THEN NULL ELSE 55 END * 62 + + 72 THEN - 5 * 84 END ) + 63
----
67

skipif mysql # not compatible
query I rowsort label-598
SELECT COALESCE ( 4, + 57 + - COUNT ( * ), + CASE 97 WHEN 89 * - - CASE + + 76 WHEN + COUNT ( ALL 81 ) * - - 18 - - 82 + 41 + - 6 * + COALESCE ( CASE ( + 51 ) WHEN + 79 * ( 18 ) THEN NULL WHEN 55 * - 87 + 45 THEN NULL WHEN 64 THEN NULL ELSE COUNT ( * ) END, 36 ) THEN NULL WHEN 80 THEN NULL ELSE 55 END * 62 + + 72 THEN - 5 * 84 END ) + 63
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-599
SELECT + CAST( + 32 AS SIGNED ) - + 96
----
-64

skipif mysql # not compatible
query I rowsort label-599
SELECT + CAST ( + 32 AS INTEGER ) - + 96
----
-64

query I rowsort
SELECT DISTINCT CASE - 24 WHEN 80 THEN NULL WHEN AVG ( - 94 ) THEN - 5 END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-601
SELECT ALL - 50 * COALESCE ( - 29, 40 ) DIV - - 98 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL - 50 * COALESCE ( - 29, 40 ) / - - 98 AS col1
----
14

query I rowsort
SELECT + 95 + + - 47 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT COUNT( * ) + NULLIF ( 47, - 21 )
----
48

skipif mysql # not compatible
query I rowsort label-603
SELECT COUNT ( * ) + NULLIF ( 47, - 21 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT 25 * SUM( ALL + - 91 ) * 57 AS col0
----
-129675

skipif mysql # not compatible
query I rowsort label-604
SELECT 25 * SUM ( ALL + - 91 ) * 57 AS col0
----
-129675

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

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

query I rowsort
SELECT DISTINCT + 5 * + 85
----
425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-607
SELECT 87 * + SUM( + + 57 ) * - COUNT( * ) + - + 15 + 25 + 79 * - 43 - + - COUNT( * ) + - 34 * - NULLIF ( 21, COALESCE ( - 61, 89, ( - 48 ) - + ( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) ) ) * 90
----
55915

skipif mysql # not compatible
query I rowsort label-607
SELECT 87 * + SUM ( + + 57 ) * - COUNT ( * ) + - + 15 + 25 + 79 * - 43 - + - COUNT ( * ) + - 34 * - NULLIF ( 21, COALESCE ( - 61, 89, ( - 48 ) - + ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) ) ) * 90
----
55915

query I rowsort
SELECT 18 + - 30 + + 78 AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-609
SELECT ALL COALESCE ( - - CASE - 40 WHEN - 94 + - CAST( NULL AS SIGNED ) THEN NULL WHEN + 65 * + 7 THEN - - 54 * - 65 + COUNT( * ) * - COUNT( * ) + COUNT( * ) + - 96 WHEN - 7 * 27 * + CAST( NULL AS SIGNED ) + - 7 / - 57 THEN 41 + CAST( - COALESCE ( 11, 79, - 23 / 3 + 57 * ( 11 ) ) - 4 * COUNT( * ) AS SIGNED ) * + 54 END, 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL COALESCE ( - - CASE - 40 WHEN - 94 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 65 * + 7 THEN - - 54 * - 65 + COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) + - 96 WHEN - 7 * 27 * + CAST ( NULL AS INTEGER ) + - 7 / - 57 THEN 41 + CAST ( - COALESCE ( 11, 79, - 23 / 3 + 57 * ( 11 ) ) - 4 * COUNT ( * ) AS INTEGER ) * + 54 END, 59 ) AS col0
----
59

query I rowsort
SELECT - 58 + + + 43 AS col0
----
-15

query I rowsort
SELECT ALL + 23 + 97
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT + COALESCE ( + 34, + 52 ) DIV - 32 * + + ( + 48 ) DIV 48 + - - 14 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-612
SELECT + COALESCE ( + 34, + 52 ) / - 32 * + + ( + 48 ) / 48 + - - 14 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-613
SELECT MIN( DISTINCT NULLIF ( + - 94, - - 37 ) ) * - - CAST( NULL AS SIGNED ) + - NULLIF ( + + 24, - 61 + - 50 ) * - 38 * 18 * COUNT( DISTINCT 54 ) * + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-613
SELECT MIN ( DISTINCT NULLIF ( + - 94, - - 37 ) ) * - - CAST ( NULL AS INTEGER ) + - NULLIF ( + + 24, - 61 + - 50 ) * - 38 * 18 * COUNT ( DISTINCT 54 ) * + + 59
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-614
SELECT 99 + 80 + COUNT( * ) * - 25 AS col1, 35 AS col2
----
154
35

skipif mysql # not compatible
query II rowsort label-614
SELECT 99 + 80 + COUNT ( * ) * - 25 AS col1, 35 AS col2
----
154
35

query II rowsort
SELECT 91, 2 AS col0
----
91
2

onlyif mysql # aggregate syntax: 
query II rowsort label-616
SELECT DISTINCT - COUNT( * ) + - 47 AS col2, - 49
----
-48
-49

skipif mysql # not compatible
query II rowsort label-616
SELECT DISTINCT - COUNT ( * ) + - 47 AS col2, - 49
----
-48
-49

query I rowsort
SELECT 89 * - 3
----
-267

query I rowsort
SELECT + 65 * 57 * - 89 + + 85 - + + ( 77 )
----
-329737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-619
SELECT 5 + + 31 - CAST( NULL AS SIGNED ) + + 16 * 4 / NULLIF ( - 91, 70 * COUNT( * ) ) * + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT 5 + + 31 - CAST ( NULL AS INTEGER ) + + 16 * 4 / NULLIF ( - 91, 70 * COUNT ( * ) ) * + 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL + MIN( + 23 ) + + 97
----
120

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + MIN ( + 23 ) + + 97
----
120

query II rowsort
SELECT + 65 col1, 78 * 24 AS col0
----
65
1872

query II rowsort
SELECT 29 AS col0, 37 * 10
----
29
370

query I rowsort
SELECT 88 - + ( - 36 ) * + 40 AS col2
----
1528

query I rowsort
SELECT DISTINCT - CASE 65 WHEN - 48 THEN NULL ELSE - + 56 END AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-625
SELECT 98 - - - COALESCE ( - COUNT( * ), 44, + 33 * ( + COUNT( ALL CAST( NULL AS DECIMAL ) ) ), - 59 ) + - - 53 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-625
SELECT 98 - - - COALESCE ( - COUNT ( * ), 44, + 33 * ( + COUNT ( ALL CAST ( NULL AS REAL ) ) ), - 59 ) + - - 53 AS col0
----
152

query I rowsort
SELECT ALL - 94 * + ( - 46 ) AS col2
----
4324

query I rowsort
SELECT 14 * - 54 AS col1
----
-756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-628
SELECT DISTINCT - ( - COALESCE ( - 16, - 67 * - COALESCE ( + ( - ( - 63 ) ), + 90 + + COUNT( * ) ) DIV 24 * + 56 - + 44 ) ) * - 7
----
112

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT - ( - COALESCE ( - 16, - 67 * - COALESCE ( + ( - ( - 63 ) ), + 90 + + COUNT ( * ) ) / 24 * + 56 - + 44 ) ) * - 7
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT + NULLIF ( + - 65, COUNT( * ) + - 98 * 0 + - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-629
SELECT + NULLIF ( + - 65, COUNT ( * ) + - 98 * 0 + - 66 )
----
NULL

query I rowsort
SELECT 53 - 85 col0
----
-32

query I rowsort
SELECT + 43 * 25 - + ( ( - 98 ) ) * + 40 * + - 24
----
-93005

onlyif mysql # DIV for integer division: 
query II rowsort label-632
SELECT + 37 AS col2, 53 DIV - 75
----
37
0

skipif mysql # not compatible
query II rowsort label-632
SELECT + 37 AS col2, 53 / - 75
----
37
0

query I rowsort
SELECT 63 * + 31
----
1953

query I rowsort
SELECT + 2 - 79 + - + 71 * - + 69 * - 92
----
-450785

onlyif mysql # aggregate syntax: 
query II rowsort label-635
SELECT + 15 * - 62, MIN( + 39 ) * + 89 * + 52 AS col2
----
-930
180492

skipif mysql # not compatible
query II rowsort label-635
SELECT + 15 * - 62, MIN ( + 39 ) * + 89 * + 52 AS col2
----
-930
180492

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT DISTINCT - SUM( + 8 ) * - 82 + + 81 AS col2
----
737

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT - SUM ( + 8 ) * - 82 + + 81 AS col2
----
737

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT ALL - NULLIF ( + - COUNT( - 20 ), ( - + 48 ) ) + - 39
----
-38

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL - NULLIF ( + - COUNT ( - 20 ), ( - + 48 ) ) + - 39
----
-38

query I rowsort
SELECT ALL - + 96 + - 17 * 61 AS col0
----
-1133

query II rowsort
SELECT + 73 + + 62, - 95 AS col1
----
135
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-640
SELECT + 42 DIV - 26 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-640
SELECT + 42 / - 26 AS col2
----
-1

query I rowsort
SELECT + 82 - + + 91
----
-9

query I rowsort
SELECT + 56 * - 30 - - + 8 + + + 49 * 56 AS col2
----
1072

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-643
SELECT ALL - 2 + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL - 2 + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-644
SELECT - 9 + + 80 + + - 4 DIV + + 61 + - 55 + + COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-644
SELECT - 9 + + 80 + + - 4 / + + 61 + - 55 + + COUNT ( * ) AS col1
----
17

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

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

query II rowsort
SELECT ALL 54 * + 52 AS col2, 20 AS col0
----
2808
20

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT + 55 * + COUNT( * ) - - 55
----
110

skipif mysql # not compatible
query I rowsort label-647
SELECT + 55 * + COUNT ( * ) - - 55
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + - COUNT( ALL 55 )
----
0

skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + - COUNT ( ALL 55 )
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-650
SELECT 62 * CAST( NULL AS SIGNED ) - - 52 + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-650
SELECT 62 * CAST ( NULL AS INTEGER ) - - 52 + + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ALL - 64 * + + 3 - - - 32
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT + 35 * MIN( 62 )
----
2170

skipif mysql # not compatible
query I rowsort label-652
SELECT + 35 * MIN ( 62 )
----
2170

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

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

query I rowsort
SELECT - 11 * + - 89 * - NULLIF ( + 90, - + 99 )
----
-88110

query I rowsort
SELECT DISTINCT + ( - + 23 ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-656
SELECT ALL ( + 72 ) * 12 - - - COUNT( * ) + + - CASE - + 8 WHEN - CAST( - + 75 AS DECIMAL ) * - NULLIF ( COUNT( * ), 55 ) + + + 21 + + 72 THEN + - 53 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL ( + 72 ) * 12 - - - COUNT ( * ) + + - CASE - + 8 WHEN - CAST ( - + 75 AS REAL ) * - NULLIF ( COUNT ( * ), 55 ) + + + 21 + + 72 THEN + - 53 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-657
SELECT + 99 DIV + 87
----
1

skipif mysql # not compatible
query I rowsort label-657
SELECT + 99 / + 87
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT - 27 * - - 3 + + 74 + 16 * - - COUNT( * ) col1
----
9

skipif mysql # not compatible
query I rowsort label-659
SELECT - 27 * - - 3 + + 74 + 16 * - - COUNT ( * ) col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-660
SELECT + - 94 * - - 89 * ( - - 26 ) + + ( CAST( NULL AS SIGNED ) ) * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-660
SELECT + - 94 * - - 89 * ( - - 26 ) + + ( CAST ( NULL AS INTEGER ) ) * - 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT - ( + COUNT( * ) ) * + 11 * + + COUNT( * ) * - - 77 AS col0
----
-847

skipif mysql # not compatible
query I rowsort label-661
SELECT - ( + COUNT ( * ) ) * + 11 * + + COUNT ( * ) * - - 77 AS col0
----
-847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-662
SELECT ALL + - COUNT( - 74 ), + NULLIF ( CAST( NULL AS SIGNED ), 54 ) + - SUM( DISTINCT - ( + + 0 ) ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-662
SELECT ALL + - COUNT ( - 74 ), + NULLIF ( CAST ( NULL AS INTEGER ), 54 ) + - SUM ( DISTINCT - ( + + 0 ) ) AS col1
----
-1
NULL

query I rowsort
SELECT - 64 + - + ( - 52 )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT - NULLIF ( + 14, - SUM( ALL 74 ) ) + + - 82, 35 AS col1
----
-96
35

skipif mysql # not compatible
query II rowsort label-664
SELECT - NULLIF ( + 14, - SUM ( ALL 74 ) ) + + - 82, 35 AS col1
----
-96
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-665
SELECT DISTINCT - ( + COUNT( * ) ) AS col2, COUNT( + 32 ) / + MAX( CAST( NULL AS DECIMAL ) ) - + NULLIF ( - CAST( - + 98 AS SIGNED ), + 8 / - CAST( NULL AS DECIMAL ) ) + - - 59 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-665
SELECT DISTINCT - ( + COUNT ( * ) ) AS col2, COUNT ( + 32 ) / + MAX ( CAST ( NULL AS REAL ) ) - + NULLIF ( - CAST ( - + 98 AS INTEGER ), + 8 / - CAST ( NULL AS REAL ) ) + - - 59 AS col2
----
-1
NULL

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

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

query I rowsort
SELECT - - 61 + + 43 * - - 22 col2
----
1007

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT - + 87 + + 6 * 55 * + COUNT( * ) * - 17 + - COUNT( * ) AS col1
----
-5698

skipif mysql # not compatible
query I rowsort label-669
SELECT - + 87 + + 6 * 55 * + COUNT ( * ) * - 17 + - COUNT ( * ) AS col1
----
-5698

query I rowsort
SELECT - 40 + + 65
----
25

query I rowsort
SELECT + 49 + - 27 * 30
----
-761

onlyif mysql # aggregate syntax: 
query II rowsort label-672
SELECT DISTINCT + + 31 + - + 13 AS col0, COUNT( 7 ) AS col0
----
18
1

skipif mysql # not compatible
query II rowsort label-672
SELECT DISTINCT + + 31 + - + 13 AS col0, COUNT ( 7 ) AS col0
----
18
1

onlyif mysql # DIV for integer division: 
query II rowsort label-673
SELECT DISTINCT - 4 * + 66 * 67, 11 + - 40 + 54 DIV - 97 - - 15 * - 26 * 16 + 97 AS col2
----
-17688
-6172

skipif mysql # not compatible
query II rowsort label-673
SELECT DISTINCT - 4 * + 66 * 67, 11 + - 40 + 54 / - 97 - - 15 * - 26 * 16 + 97 AS col2
----
-17688
-6172

query I rowsort
SELECT - ( - 4 ) * + - 46 AS col2
----
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-675
SELECT ALL ( + + 43 ) * - - 73 + + CASE - - 52 WHEN + 2 * + 62 + + 61 THEN ( + ( - COUNT( * ) ) ) END * + CAST( + ( - - 76 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL ( + + 43 ) * - - 73 + + CASE - - 52 WHEN + 2 * + 62 + + 61 THEN ( + ( - COUNT ( * ) ) ) END * + CAST ( + ( - - 76 ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 93 - 96
----
-3

query I rowsort
SELECT + 59 * + - 19 AS col0
----
-1121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-678
SELECT + CASE - + MIN( + CAST( + 58 AS SIGNED ) ) WHEN - COUNT( ALL + 1 ) + + COUNT( * ) * - 40 * + - 21 * + COUNT( * ) THEN 49 * - + CAST( NULL AS SIGNED ) * - 32 * + 96 WHEN 45 - - + AVG ( DISTINCT + 17 ) * + NULLIF ( - ( - 98 ), + 42 ) + COUNT( * ) * NULLIF ( 40, - AVG ( + 24 ) * + CAST( NULLIF ( 15, 81 * - CAST( CASE + COALESCE ( 81, 0 * - 4 ) WHEN 52 THEN - COUNT( * ) - 65 ELSE 52 END * 60 AS SIGNED ) + - 65 * - 67 ) AS DECIMAL ) ) THEN AVG ( DISTINCT - 54 ) * + MIN( 83 + - 51 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-678
SELECT + CASE - + MIN ( + CAST ( + 58 AS INTEGER ) ) WHEN - COUNT ( ALL + 1 ) + + COUNT ( * ) * - 40 * + - 21 * + COUNT ( * ) THEN 49 * - + CAST ( NULL AS INTEGER ) * - 32 * + 96 WHEN 45 - - + AVG ( DISTINCT + 17 ) * + NULLIF ( - ( - 98 ), + 42 ) + COUNT ( * ) * NULLIF ( 40, - AVG ( + 24 ) * + CAST ( NULLIF ( 15, 81 * - CAST ( CASE + COALESCE ( 81, 0 * - 4 ) WHEN 52 THEN - COUNT ( * ) - 65 ELSE 52 END * 60 AS INTEGER ) + - 65 * - 67 ) AS REAL ) ) THEN AVG ( DISTINCT - 54 ) * + MIN ( 83 + - 51 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-679
SELECT - 19 / NULLIF ( CASE + - COALESCE ( - - 37, + CAST( NULL AS SIGNED ), 43 ) WHEN + + COUNT( * ) * - 57 THEN NULL WHEN + 77 THEN NULL WHEN + 98 - - 22 THEN - AVG ( ALL 49 ) END, + ( MIN( ALL - - 68 ) ) ) * - + COUNT( * ) - 36 + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT - 19 / NULLIF ( CASE + - COALESCE ( - - 37, + CAST ( NULL AS INTEGER ), 43 ) WHEN + + COUNT ( * ) * - 57 THEN NULL WHEN + 77 THEN NULL WHEN + 98 - - 22 THEN - AVG ( ALL 49 ) END, + ( MIN ( ALL - - 68 ) ) ) * - + COUNT ( * ) - 36 + 58 AS col1
----
NULL

query I rowsort
SELECT + - 6 * - 75 AS col1
----
450

query I rowsort
SELECT - 4 * 85 + - + 12
----
-352

query I rowsort
SELECT ALL - 62 * + NULLIF ( - CASE 58 WHEN - 92 * + 85 THEN - - 49 + - 3 END, + 88 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-683
SELECT + - MAX( DISTINCT - 92 ) DIV + 52, + MAX( + CASE ( 51 ) WHEN - 32 THEN NULL WHEN 3 THEN - + 68 * + 25 + + + 58 - 94 * + 80 END ) DIV + COUNT( DISTINCT 36 ) + 89 - - - 69 * 13 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-683
SELECT + - MAX ( DISTINCT - 92 ) / + 52, + MAX ( + CASE ( 51 ) WHEN - 32 THEN NULL WHEN 3 THEN - + 68 * + 25 + + + 58 - 94 * + 80 END ) / + COUNT ( DISTINCT 36 ) + 89 - - - 69 * 13 AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT ALL + 32 * 0 + - - 70 + 97 + + 37 * - + 88 + + 94 - - MIN( DISTINCT + 35 ) + + 71
----
-2889

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL + 32 * 0 + - - 70 + 97 + + 37 * - + 88 + + 94 - - MIN ( DISTINCT + 35 ) + + 71
----
-2889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-685
SELECT + 89 col1, - MIN( 55 ) * + + 99 * - + CASE + 98 WHEN - - 87 THEN NULL WHEN CAST( + 61 AS SIGNED ) * + + 0 * 11 / + 34 + - 91 + CASE + 56 WHEN 19 * + MAX( ALL - + 52 ) THEN 82 WHEN - CAST( - 52 AS SIGNED ) * CASE + MAX( - 58 ) / 17 WHEN + 16 THEN NULL WHEN + 8 THEN 21 WHEN ( 37 ) THEN NULLIF ( + NULLIF ( - 9, 11 * - CASE - 87 WHEN + 99 + COUNT( * ) THEN + 66 * 0 WHEN 9 THEN NULL END ), 97 ) ELSE + 20 END THEN NULL WHEN - CASE + 89 WHEN 95 THEN NULL ELSE ( 59 ) END THEN NULL END THEN - 74 END + 34 * - 55
----
89
NULL

skipif mysql # not compatible
query II rowsort label-685
SELECT + 89 col1, - MIN ( 55 ) * + + 99 * - + CASE + 98 WHEN - - 87 THEN NULL WHEN CAST ( + 61 AS INTEGER ) * + + 0 * 11 / + 34 + - 91 + CASE + 56 WHEN 19 * + MAX ( ALL - + 52 ) THEN 82 WHEN - CAST ( - 52 AS INTEGER ) * CASE + MAX ( - 58 ) / 17 WHEN + 16 THEN NULL WHEN + 8 THEN 21 WHEN ( 37 ) THEN NULLIF ( + NULLIF ( - 9, 11 * - CASE - 87 WHEN + 99 + COUNT ( * ) THEN + 66 * 0 WHEN 9 THEN NULL END ), 97 ) ELSE + 20 END THEN NULL WHEN - CASE + 89 WHEN 95 THEN NULL ELSE ( 59 ) END THEN NULL END THEN - 74 END + 34 * - 55
----
89
NULL

query II rowsort
SELECT + 22, 4 AS col0
----
22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT - CASE - + 60 WHEN 90 - - - 92 THEN + 40 + - 62 - - - 4 / 74 * COUNT( * ) ELSE NULL END / - - ( + 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-687
SELECT - CASE - + 60 WHEN 90 - - - 92 THEN + 40 + - 62 - - - 4 / 74 * COUNT ( * ) ELSE NULL END / - - ( + 75 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 27 * - 7
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-689
SELECT + 55 * + CAST( + 16 AS SIGNED )
----
880

skipif mysql # not compatible
query I rowsort label-689
SELECT + 55 * + CAST ( + 16 AS INTEGER )
----
880

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-691
SELECT + ( - CAST( - + CAST( 95 AS DECIMAL ) AS SIGNED ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-691
SELECT + ( - CAST ( - + CAST ( 95 AS REAL ) AS INTEGER ) ) AS col0
----
95

query I rowsort
SELECT - + 50 * NULLIF ( - + 42, - 66 ) AS col2
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL COUNT( 11 )
----
1

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL COUNT ( 11 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-694
SELECT - 96, + COUNT( * ) * - 95 AS col1
----
-96
-95

skipif mysql # not compatible
query II rowsort label-694
SELECT - 96, + COUNT ( * ) * - 95 AS col1
----
-96
-95

query I rowsort
SELECT - COALESCE ( - 7, + 68 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-696
SELECT ALL + + MAX( DISTINCT 13 ) * - - COUNT( * ), + 35 AS col1
----
13
35

skipif mysql # not compatible
query II rowsort label-696
SELECT ALL + + MAX ( DISTINCT 13 ) * - - COUNT ( * ), + 35 AS col1
----
13
35

query I rowsort
SELECT - 14 * - 73 + - 58
----
964

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT DISTINCT + SUM( 99 ) - 66
----
33

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT + SUM ( 99 ) - 66
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT DISTINCT + 7 * + 92 * - - 38 * + ( MIN( DISTINCT + 48 ) ) AS col0
----
1174656

skipif mysql # not compatible
query I rowsort label-699
SELECT DISTINCT + 7 * + 92 * - - 38 * + ( MIN ( DISTINCT + 48 ) ) AS col0
----
1174656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-700
SELECT + ( - + 56 ) + - + 29 + - + 17 / + - 94 - - COUNT( + 34 ) * + 71 * - CAST( - + 52 AS SIGNED ) * - + 40 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-700
SELECT + ( - + 56 ) + - + 29 + - + 17 / + - 94 - - COUNT ( + 34 ) * + 71 * - CAST ( - + 52 AS INTEGER ) * - + 40 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 79 + + - 90 * + 75 AS col0
----
-6671

query II rowsort
SELECT 89 + 50 + + - 0 * - 11 AS col1, + 35 AS col1
----
139
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-703
SELECT 24 - + + 74 * + NULLIF ( + - 1, - COUNT( ALL + 84 ) ) + + + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-703
SELECT 24 - + + 74 * + NULLIF ( + - 1, - COUNT ( ALL + 84 ) ) + + + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT 98 + - COALESCE ( + - ( ( + ( + 89 ) ) ), + COUNT( * ) ) AS col1
----
187

skipif mysql # not compatible
query I rowsort label-704
SELECT 98 + - COALESCE ( + - ( ( + ( + 89 ) ) ), + COUNT ( * ) ) AS col1
----
187

query I rowsort
SELECT ALL - 89 * 59 * 22
----
-115522

query I rowsort
SELECT 14 * + 95 * 34 col2
----
45220

onlyif mysql # DIV for integer division: 
query I rowsort label-707
SELECT ALL 6 DIV 50 * + 10 col2
----
0

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL 6 / 50 * + 10 col2
----
0

query II rowsort
SELECT 99 * + 80 + 32 + 33 AS col2, + ( - + 45 ) + - 88 + 97
----
7985
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-709
SELECT - COUNT( * ) DIV + - ( + + MIN( DISTINCT + 5 ) ) * COUNT( * ) * - + 16 + 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-709
SELECT - COUNT ( * ) / + - ( + + MIN ( DISTINCT + 5 ) ) * COUNT ( * ) * - + 16 + 59 AS col2
----
59

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

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

query I rowsort
SELECT ALL + 90 + + 35 AS col0
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-712
SELECT 20 DIV + MIN( + 69 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-712
SELECT 20 / + MIN ( + 69 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT COUNT( * ) * - + COUNT( + + 23 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-713
SELECT COUNT ( * ) * - + COUNT ( + + 23 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT - 2 * + MIN( - 87 ) + - 73 * - + NULLIF ( - COUNT( * ), - + 73 )
----
101

skipif mysql # not compatible
query I rowsort label-714
SELECT - 2 * + MIN ( - 87 ) + - 73 * - + NULLIF ( - COUNT ( * ), - + 73 )
----
101

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

query I rowsort
SELECT DISTINCT - ( + 8 ) + - 45 AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT - CAST( + ( 68 ) AS SIGNED ) * + + 55
----
-3740

skipif mysql # not compatible
query I rowsort label-717
SELECT - CAST ( + ( 68 ) AS INTEGER ) * + + 55
----
-3740

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT DISTINCT + - COUNT( - 67 ) + MIN( ALL 39 )
----
38

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT + - COUNT ( - 67 ) + MIN ( ALL 39 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-719
SELECT + + COUNT( + COALESCE ( 67, + 82 ) ) AS col1, + 46 + - 79 + - - 16 DIV + CAST( 86 AS SIGNED ) * - - 45
----
1
-33

skipif mysql # not compatible
query II rowsort label-719
SELECT + + COUNT ( + COALESCE ( 67, + 82 ) ) AS col1, + 46 + - 79 + - - 16 / + CAST ( 86 AS INTEGER ) * - - 45
----
1
-33

query II rowsort
SELECT + 62 + + 88, + 79 col1
----
150
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-721
SELECT 7 / 73 * + 62 * - NULLIF ( 53, - 9 + 52 ) - ( + - CAST( NULL AS SIGNED ) ) + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-721
SELECT 7 / 73 * + 62 * - NULLIF ( 53, - 9 + 52 ) - ( + - CAST ( NULL AS INTEGER ) ) + 9 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 57 * - 92 + + 19 AS col1
----
-5225

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT DISTINCT + COUNT( * ) - + 33 + + 89 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT + COUNT ( * ) - + 33 + + 89 AS col2
----
57

query I rowsort
SELECT DISTINCT + CASE - 63 WHEN COALESCE ( AVG ( ALL 13 ), + ( - - 29 ), - - 69, - 86 + + 25 ) THEN NULL ELSE + - 64 END
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT ALL - 24 * - 34 * CASE - COUNT( * ) WHEN - ( 91 ) THEN NULL ELSE - 51 END AS col0
----
-41616

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL - 24 * - 34 * CASE - COUNT ( * ) WHEN - ( 91 ) THEN NULL ELSE - 51 END AS col0
----
-41616

query I rowsort
SELECT 87 + 40
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-727
SELECT ALL - 13 - COALESCE ( COUNT( * ), + - SUM( - 68 ), - 83 ) + + 65 DIV + CAST( 92 AS SIGNED ) DIV 10 * - 80 + + 37 DIV + 87 * 6 AS col2, + COALESCE ( - 32, - 21 + + 97 ) AS col1
----
-14
-32

skipif mysql # not compatible
query II rowsort label-727
SELECT ALL - 13 - COALESCE ( COUNT ( * ), + - SUM ( - 68 ), - 83 ) + + 65 / + CAST ( 92 AS INTEGER ) / 10 * - 80 + + 37 / + 87 * 6 AS col2, + COALESCE ( - 32, - 21 + + 97 ) AS col1
----
-14
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-728
SELECT - COUNT( * ) + 4 AS col1, 32 AS col2
----
3
32

skipif mysql # not compatible
query II rowsort label-728
SELECT - COUNT ( * ) + 4 AS col1, 32 AS col2
----
3
32

query I rowsort
SELECT 73 * - - 64
----
4672

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT 8 + - MIN( DISTINCT 49 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-730
SELECT 8 + - MIN ( DISTINCT 49 ) AS col2
----
-41

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

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

query I rowsort
SELECT 24 + - 55
----
-31

query II rowsort
SELECT DISTINCT 2 AS col2, - 71 AS col0
----
2
-71

query I rowsort
SELECT 8 * 75 col0
----
600

query I rowsort
SELECT 39 * 90 * - 88 * + - 91 col1
----
28108080

onlyif mysql # DIV for integer division: 
query I rowsort label-736
SELECT DISTINCT - 58 + - 82 DIV 6 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT - 58 + - 82 / 6 AS col1
----
-71

query I rowsort
SELECT ( + 51 ) - + + 25
----
26

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

skipif mysql # not compatible
query I rowsort label-738
SELECT 23 * - COUNT ( * )
----
-23

query I rowsort
SELECT ALL - ( - 47 ) * 2
----
94

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

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

query I rowsort
SELECT DISTINCT + 52 * - 15 - 48 + 19 AS col2
----
-809

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT COUNT( * ) * 85 + 40 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-742
SELECT COUNT ( * ) * 85 + 40 AS col1
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-743
SELECT + COUNT( * ) DIV + NULLIF ( - 61, - MIN( - 1 ) ) + ( 30 ) + - 43
----
-13

skipif mysql # not compatible
query I rowsort label-743
SELECT + COUNT ( * ) / + NULLIF ( - 61, - MIN ( - 1 ) ) + ( 30 ) + - 43
----
-13

query II rowsort
SELECT + 10 * + - 58 + + 89 AS col0, 10 col2
----
-491
10

onlyif mysql # aggregate syntax: 
query II rowsort label-745
SELECT + 34 col1, 68 * + 87 * - MIN( + 43 ) + - + COUNT( * ) AS col1
----
34
-254389

skipif mysql # not compatible
query II rowsort label-745
SELECT + 34 col1, 68 * + 87 * - MIN ( + 43 ) + - + COUNT ( * ) AS col1
----
34
-254389

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT - 19 DIV - 58 * 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-746
SELECT - 19 / - 58 * 77 AS col2
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-748
SELECT - 2 + + - CASE - + 8 WHEN + 25 THEN NULL WHEN - + CASE - 89 WHEN - + 81 THEN - 75 WHEN - 95 * - - 74 + - CAST( NULL AS SIGNED ) * 10 + - + ( + - 61 ) THEN + 8 END THEN - 64 END + - 34 * + 41 + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT - 2 + + - CASE - + 8 WHEN + 25 THEN NULL WHEN - + CASE - 89 WHEN - + 81 THEN - 75 WHEN - 95 * - - 74 + - CAST ( NULL AS INTEGER ) * 10 + - + ( + - 61 ) THEN + 8 END THEN - 64 END + - 34 * + 41 + 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT DISTINCT - CASE 70 WHEN - + ( + 73 ) THEN NULL WHEN - 87 - - + 8 THEN 76 / - CASE - 51 WHEN - COUNT( * ) THEN NULL WHEN + 42 THEN 83 * - 81 / - 40 - 97 END * + + 72 / CASE - - 95 WHEN + 23 + - 47 THEN NULL WHEN - 70 * - COUNT( * ) THEN 13 + 77 END ELSE COUNT( DISTINCT + 26 ) + - COUNT( 3 - + 51 * 26 ) END - 98 * - SUM( CASE 3 WHEN - 23 THEN + 95 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT - CASE 70 WHEN - + ( + 73 ) THEN NULL WHEN - 87 - - + 8 THEN 76 / - CASE - 51 WHEN - COUNT ( * ) THEN NULL WHEN + 42 THEN 83 * - 81 / - 40 - 97 END * + + 72 / CASE - - 95 WHEN + 23 + - 47 THEN NULL WHEN - 70 * - COUNT ( * ) THEN 13 + 77 END ELSE COUNT ( DISTINCT + 26 ) + - COUNT ( 3 - + 51 * 26 ) END - 98 * - SUM ( CASE 3 WHEN - 23 THEN + 95 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT + - 1 * + 62 * 86 + - 39 + + 76 - 27 * + + SUM( ALL + 15 ) * 29
----
-17040

skipif mysql # not compatible
query I rowsort label-750
SELECT + - 1 * + 62 * 86 + - 39 + + 76 - 27 * + + SUM ( ALL + 15 ) * 29
----
-17040

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL - + 95 - - ( 7 ) + + - COUNT( ALL + 62 ) * + 41
----
-129

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL - + 95 - - ( 7 ) + + - COUNT ( ALL + 62 ) * + 41
----
-129

query I rowsort
SELECT + 68 * ( + 94 ) + - 5
----
6387

query I rowsort
SELECT DISTINCT - + 45 * - 46 AS col1
----
2070

query I rowsort
SELECT 71 * + - 99
----
-7029

query I rowsort
SELECT ALL - 83 * + 38 AS col0
----
-3154

query I rowsort
SELECT - - NULLIF ( 50, 91 * 30 - 33 + - 7 ) AS col1
----
50

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

query I rowsort
SELECT + 55 * 20
----
1100

query II rowsort
SELECT ALL 40 AS col0, - ( 56 ) * + - 40
----
40
2240

query I rowsort
SELECT DISTINCT NULLIF ( + 36, + 84 ) col2
----
36

query I rowsort
SELECT + 19 * 86 * 30
----
49020

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-763
SELECT + 36 - - + CASE + 17 WHEN - ( + + ( - + AVG ( ALL + 29 ) ) ) THEN - + ( + - 41 ) + - 65 WHEN - 3 THEN NULL END + - COUNT( * ) - + COALESCE ( CAST( + ( + + 24 ) AS SIGNED ), + + 65 * + COUNT( * ) ) * - - ( + 62 ) * - 99 + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT + 36 - - + CASE + 17 WHEN - ( + + ( - + AVG ( ALL + 29 ) ) ) THEN - + ( + - 41 ) + - 65 WHEN - 3 THEN NULL END + - COUNT ( * ) - + COALESCE ( CAST ( + ( + + 24 ) AS INTEGER ), + + 65 * + COUNT ( * ) ) * - - ( + 62 ) * - 99 + 16
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-764
SELECT ALL 42 DIV + + 6
----
7

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL 42 / + + 6
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-765
SELECT - NULLIF ( + COUNT( * ), + + ( - COUNT( * ) ) ) AS col1, ( 21 ) * + 56 + ( 38 ) * - - COALESCE ( - 95, 18, + 60 ) * + 51 AS col1
----
-1
-182934

skipif mysql # not compatible
query II rowsort label-765
SELECT - NULLIF ( + COUNT ( * ), + + ( - COUNT ( * ) ) ) AS col1, ( 21 ) * + 56 + ( 38 ) * - - COALESCE ( - 95, 18, + 60 ) * + 51 AS col1
----
-1
-182934

query II rowsort
SELECT ALL 6 AS col2, + 35 * + - 28
----
6
-980

query I rowsort
SELECT + 65 * 71 AS col2
----
4615

onlyif mysql # aggregate syntax: 
query II rowsort label-768
SELECT 0, ( ( + 57 ) ) * + + COUNT( * ) + - 12 + + - 42 * 7 AS col0
----
0
-249

skipif mysql # not compatible
query II rowsort label-768
SELECT 0, ( ( + 57 ) ) * + + COUNT ( * ) + - 12 + + - 42 * 7 AS col0
----
0
-249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-769
SELECT - COUNT( * ) DIV NULLIF ( - + 1, 1 DIV + - 18 * - + 66 + 84 ) * + - ( 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-769
SELECT - COUNT ( * ) / NULLIF ( - + 1, 1 / + - 18 * - + 66 + 84 ) * + - ( 79 )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-770
SELECT - MAX( + CASE 51 WHEN - - 65 THEN 73 ELSE NULL END ) - 68 AS col2, 58 AS col2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-770
SELECT - MAX ( + CASE 51 WHEN - - 65 THEN 73 ELSE NULL END ) - 68 AS col2, 58 AS col2
----
NULL
58

query II rowsort
SELECT ALL 72 col0, 96 AS col2
----
72
96

query I rowsort
SELECT ALL 35 + + + 42 + - 85 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT - NULLIF ( COALESCE ( + 22, COUNT( * ), + 17 ), 39 + COUNT( - 14 ) * - ( 88 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-773
SELECT - NULLIF ( COALESCE ( + 22, COUNT ( * ), + 17 ), 39 + COUNT ( - 14 ) * - ( 88 ) )
----
-22

query I rowsort
SELECT DISTINCT - 27 + + 69
----
42

query I rowsort
SELECT ALL + 73 + + - 15
----
58

query II rowsort
SELECT 94 AS col1, 21
----
94
21

query I rowsort
SELECT 94 * + 72 + - - 27 * + 17 AS col1
----
7227

query I rowsort
SELECT ALL - 83 * 56 - - + 51 + 81
----
-4516

onlyif mysql # aggregate syntax: 
query II rowsort label-779
SELECT DISTINCT 97 * + - 79 + 99 + - ( - - MAX( 98 ) ) + - - 98 AS col0, + 82 * + + 30
----
-7564
2460

skipif mysql # not compatible
query II rowsort label-779
SELECT DISTINCT 97 * + - 79 + 99 + - ( - - MAX ( 98 ) ) + - - 98 AS col0, + 82 * + + 30
----
-7564
2460

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT SUM( DISTINCT - 59 ) col1
----
-59

skipif mysql # not compatible
query I rowsort label-780
SELECT SUM ( DISTINCT - 59 ) col1
----
-59

query II rowsort
SELECT + - 22 AS col1, 51 AS col0
----
-22
51

query I rowsort
SELECT ALL - 40 * 36 - + - 9 * - ( 18 ) AS col0
----
-1602

query I rowsort
SELECT + - 34 * - 99 * 1
----
3366

query I rowsort
SELECT - 77 * + 63
----
-4851

query II rowsort
SELECT - 91, 0 col2
----
-91
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-786
SELECT ALL - COALESCE ( CASE + 50 WHEN + - CAST( NULL AS SIGNED ) THEN + NULLIF ( 7, + COUNT( * ) ) WHEN + 90 THEN NULL END, 67 + 8 ) * + 65 - + - ( + 65 )
----
-4810

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL - COALESCE ( CASE + 50 WHEN + - CAST ( NULL AS INTEGER ) THEN + NULLIF ( 7, + COUNT ( * ) ) WHEN + 90 THEN NULL END, 67 + 8 ) * + 65 - + - ( + 65 )
----
-4810

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT ALL + + MIN( - 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL + + MIN ( - 12 ) AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-788
SELECT ALL + ( CAST( NULL AS SIGNED ) ) * - - 96 - - + 59 - + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) * - - 96 - - + 59 - + 7
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-789
SELECT - COUNT( * ) col1, + COUNT( * ) + - 34
----
-1
-33

skipif mysql # not compatible
query II rowsort label-789
SELECT - COUNT ( * ) col1, + COUNT ( * ) + - 34
----
-1
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-790
SELECT + 63 * + 73 - - - 74 - - 27 * + 94 * 38 + - 23 + + CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) / NULLIF ( + COUNT( * ), - + COUNT( * ) / CAST( NULL AS SIGNED ) + - 51 - CASE WHEN NOT - 68 < NULL THEN NULL ELSE + 24 + + CAST( NULL AS SIGNED ) - - 15 END ) + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT + 63 * + 73 - - - 74 - - 27 * + 94 * 38 + - 23 + + CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) / NULLIF ( + COUNT ( * ), - + COUNT ( * ) / CAST ( NULL AS INTEGER ) + - 51 - CASE WHEN NOT - 68 < NULL THEN NULL ELSE + 24 + + CAST ( NULL AS INTEGER ) - - 15 END ) + - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT - + NULLIF ( + 47, 8 * + 63 * - + 39 * + CASE - 39 WHEN + 72 + + 62 * - COUNT( * ) THEN + 16 ELSE NULL END * - + SUM( - - 41 ) ) * + 88
----
-4136

skipif mysql # not compatible
query I rowsort label-791
SELECT - + NULLIF ( + 47, 8 * + 63 * - + 39 * + CASE - 39 WHEN + 72 + + 62 * - COUNT ( * ) THEN + 16 ELSE NULL END * - + SUM ( - - 41 ) ) * + 88
----
-4136

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

query I rowsort
SELECT - 33 + - - 86
----
53

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

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

query II rowsort
SELECT - 46 + - 97 AS col2, + 82
----
-143
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-796
SELECT DISTINCT + NULLIF ( 94, + CASE WHEN ( NULL ) BETWEEN + - 85 AND ( - CAST( NULL AS DECIMAL ) ) THEN + - 65 END * 30 )
----
94

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT + NULLIF ( 94, + CASE WHEN ( NULL ) BETWEEN + - 85 AND ( - CAST ( NULL AS REAL ) ) THEN + - 65 END * 30 )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-797
SELECT DISTINCT NULLIF ( 20, CAST( NULL AS SIGNED ) )
----
20

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT NULLIF ( 20, CAST ( NULL AS INTEGER ) )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-798
SELECT - 85 * + - 6 * - - 56 + CASE - COUNT( * ) WHEN - 15 + + 39 * - 77 * 72 * + - 98 THEN + - AVG ( 69 ) * + 45 * 47 - 26 ELSE + 17 * + ( + - CAST( NULL AS SIGNED ) ) + + - 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-798
SELECT - 85 * + - 6 * - - 56 + CASE - COUNT ( * ) WHEN - 15 + + 39 * - 77 * 72 * + - 98 THEN + - AVG ( 69 ) * + 45 * 47 - 26 ELSE + 17 * + ( + - CAST ( NULL AS INTEGER ) ) + + - 31 END
----
NULL

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

query I rowsort
SELECT DISTINCT + 99 * 22 + + - 50 AS col2
----
2128

query I rowsort
SELECT ALL 83 + - 12 * + 83 * 20
----
-19837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-802
SELECT ALL + 40 + + CAST( + COUNT( * ) AS SIGNED ) + ( - - 14 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL + 40 + + CAST ( + COUNT ( * ) AS INTEGER ) + ( - - 14 ) AS col0
----
55

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

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

query I rowsort
SELECT ALL 17 + 98
----
115

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

query II rowsort
SELECT DISTINCT 46 - - 95 - + - 8 + + - 21 * - 37 AS col2, COALESCE ( ( 60 ), - 68 ) AS col2
----
926
60

query II rowsort
SELECT DISTINCT 22 * - - 34 AS col1, 57 col2
----
748
57

query I rowsort
SELECT ALL 9 - - - 75 + + 21 * 82 + + 7 + + - 69
----
1594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-809
SELECT + CAST( + 58 AS SIGNED ) - - COUNT( ALL + + 99 ) + + COUNT( * ) * - 11 + + 79 * - - 54
----
4314

skipif mysql # not compatible
query I rowsort label-809
SELECT + CAST ( + 58 AS INTEGER ) - - COUNT ( ALL + + 99 ) + + COUNT ( * ) * - 11 + + 79 * - - 54
----
4314

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT + MIN( DISTINCT + - 76 ) * - 16
----
1216

skipif mysql # not compatible
query I rowsort label-810
SELECT + MIN ( DISTINCT + - 76 ) * - 16
----
1216

query I rowsort
SELECT + - 46 + - 34 * + 95 AS col2
----
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT - COUNT( - 94 ) * 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-812
SELECT - COUNT ( - 94 ) * 12 AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-813
SELECT + CASE 38 WHEN + - 1 * + CAST( - ( 90 ) AS SIGNED ) * - 24 THEN - ( + CASE CASE + 93 WHEN - 30 THEN + - NULLIF ( + COALESCE ( - AVG ( DISTINCT CAST( 62 AS SIGNED ) ), - + CASE - - 64 WHEN - - 7 THEN + 92 ELSE 68 END, COUNT( * ) * + ( 65 * + COUNT( * ) ) ), 4 - - 84 * - 1 ) WHEN - COUNT( * ) THEN NULL END WHEN + 58 + - COUNT( * ) * - 61 THEN NULL ELSE + 22 END ) WHEN 47 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-813
SELECT + CASE 38 WHEN + - 1 * + CAST ( - ( 90 ) AS INTEGER ) * - 24 THEN - ( + CASE CASE + 93 WHEN - 30 THEN + - NULLIF ( + COALESCE ( - AVG ( DISTINCT CAST ( 62 AS INTEGER ) ), - + CASE - - 64 WHEN - - 7 THEN + 92 ELSE 68 END, COUNT ( * ) * + ( 65 * + COUNT ( * ) ) ), 4 - - 84 * - 1 ) WHEN - COUNT ( * ) THEN NULL END WHEN + 58 + - COUNT ( * ) * - 61 THEN NULL ELSE + 22 END ) WHEN 47 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT DISTINCT 93 * + - CASE + - 63 WHEN - CASE + CASE 65 WHEN 36 * + COUNT( * ) + + - 22 THEN NULL WHEN - COUNT( ALL 86 ) THEN - COUNT( * ) WHEN - ( - 84 ) THEN NULL END WHEN - 84 THEN NULL WHEN + 50 THEN COUNT( * ) ELSE - 48 END + MAX( ALL 31 ) * - COUNT( * ) + - - COUNT( * ) + 80 * - 75 THEN 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT 93 * + - CASE + - 63 WHEN - CASE + CASE 65 WHEN 36 * + COUNT ( * ) + + - 22 THEN NULL WHEN - COUNT ( ALL 86 ) THEN - COUNT ( * ) WHEN - ( - 84 ) THEN NULL END WHEN - 84 THEN NULL WHEN + 50 THEN COUNT ( * ) ELSE - 48 END + MAX ( ALL 31 ) * - COUNT ( * ) + - - COUNT ( * ) + 80 * - 75 THEN 81 END
----
NULL

query I rowsort
SELECT + - 47 - + + 99 col1
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-816
SELECT - 98 DIV + + 64 + COUNT( * ) + + + 16
----
16

skipif mysql # not compatible
query I rowsort label-816
SELECT - 98 / + + 64 + COUNT ( * ) + + + 16
----
16

query I rowsort
SELECT 41 * - 48 AS col1
----
-1968

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

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

query I rowsort
SELECT + + NULLIF ( - 75, + - 8 )
----
-75

query II rowsort
SELECT + 98 * - 17 + + + 88 AS col1, 60
----
-1578
60

query I rowsort
SELECT 64 * NULLIF ( 22, + 74 ) AS col1
----
1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-822
SELECT ALL + CASE - 8 WHEN + + ( + 18 ) + - COUNT( + 76 ) + + 4 THEN NULL WHEN - 72 THEN - SUM( DISTINCT + - 24 ) ELSE NULL END + CASE 79 WHEN + - 95 THEN + COUNT( * ) + 54 + + COUNT( * ) WHEN + - CASE - 24 WHEN 9 * ( + 41 ) + - 93 / 95 THEN - 85 END + CASE + 23 + - 50 WHEN 9 THEN - 24 * + CAST( NULL AS SIGNED ) ELSE NULL END THEN NULL ELSE NULL END + - 44 / + SUM( + 19 * 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL + CASE - 8 WHEN + + ( + 18 ) + - COUNT ( + 76 ) + + 4 THEN NULL WHEN - 72 THEN - SUM ( DISTINCT + - 24 ) ELSE NULL END + CASE 79 WHEN + - 95 THEN + COUNT ( * ) + 54 + + COUNT ( * ) WHEN + - CASE - 24 WHEN 9 * ( + 41 ) + - 93 / 95 THEN - 85 END + CASE + 23 + - 50 WHEN 9 THEN - 24 * + CAST ( NULL AS INTEGER ) ELSE NULL END THEN NULL ELSE NULL END + - 44 / + SUM ( + 19 * 22 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-824
SELECT ALL NULLIF ( + ( - ( + 39 ) ), - MIN( + + 44 ) ) + - 64 + 89 + 24 * - 90 * + 33 AS col1, 89 * CAST( NULL AS SIGNED ) * - 34 AS col0
----
-71294
NULL

skipif mysql # not compatible
query II rowsort label-824
SELECT ALL NULLIF ( + ( - ( + 39 ) ), - MIN ( + + 44 ) ) + - 64 + 89 + 24 * - 90 * + 33 AS col1, 89 * CAST ( NULL AS INTEGER ) * - 34 AS col0
----
-71294
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-825
SELECT DISTINCT 60 + COUNT( * ) + + 26 + - COUNT( * ) * CAST( NULL AS SIGNED ) * + 15 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT 60 + COUNT ( * ) + + 26 + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + 15 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL + 35 + ( 65 ) AS col0, - 52 AS col1
----
100
-52

query II rowsort
SELECT 90, 55 AS col2
----
90
55

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT ALL - ( - 20 ) + + + 48 + + COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL - ( - 20 ) + + + 48 + + COUNT ( * ) AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-829
SELECT NULLIF ( - COUNT( * ), + COUNT( DISTINCT CAST( 1 AS SIGNED ) ) * + - CASE 86 WHEN AVG ( DISTINCT + 89 ) THEN ( + COALESCE ( - - 99, 39 ) ) WHEN + COUNT( * ) + - 89 / - SUM( - - ( - 56 ) ) THEN + COUNT( * ) ELSE NULL END + - + 50 ) - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-829
SELECT NULLIF ( - COUNT ( * ), + COUNT ( DISTINCT CAST ( 1 AS INTEGER ) ) * + - CASE 86 WHEN AVG ( DISTINCT + 89 ) THEN ( + COALESCE ( - - 99, 39 ) ) WHEN + COUNT ( * ) + - 89 / - SUM ( - - ( - 56 ) ) THEN + COUNT ( * ) ELSE NULL END + - + 50 ) - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT 14 - - + COUNT( * ) * + 24 * + ( + 80 )
----
1934

skipif mysql # not compatible
query I rowsort label-830
SELECT 14 - - + COUNT ( * ) * + 24 * + ( + 80 )
----
1934

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-832
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) DIV - 22
----
0

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) / - 22
----
0

query I rowsort
SELECT DISTINCT + 27 + 37
----
64

query I rowsort
SELECT ALL - 72 + - 14 AS col0
----
-86

query I rowsort
SELECT 49 - 75
----
-26

query I rowsort
SELECT DISTINCT 35 * 43
----
1505

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT DISTINCT + COUNT( * ) * - - 43 col2
----
43

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT + COUNT ( * ) * - - 43 col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-838
SELECT ALL - 73 - CAST( NULL AS SIGNED ) + + - 25 * + 95 * + + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL - 73 - CAST ( NULL AS INTEGER ) + + - 25 * + 95 * + + 93 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-839
SELECT 32 + + 69 + - NULLIF ( + CAST( + 78 AS SIGNED ), 12 / + ( - 20 ) + - 97 ) * - + 31
----
2519

skipif mysql # not compatible
query I rowsort label-839
SELECT 32 + + 69 + - NULLIF ( + CAST ( + 78 AS INTEGER ), 12 / + ( - 20 ) + - 97 ) * - + 31
----
2519

query I rowsort
SELECT ALL + 9 - + 6 + 63 AS col1
----
66

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

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

query I rowsort
SELECT ALL - NULLIF ( - + COALESCE ( + + NULLIF ( + - 62, - + 2 * 59 / + + 68 + - + NULLIF ( - 44, 82 ) ), + 66 ), - - 32 )
----
-62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT COALESCE ( + SUM( 21 ), - 79 ) + SUM( - ( + + 33 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-844
SELECT COALESCE ( + SUM ( 21 ), - 79 ) + SUM ( - ( + + 33 ) ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT 51 - - NULLIF ( - SUM( + 32 ), + - COUNT( * ) + - - COUNT( * ) ) + + 86 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-845
SELECT 51 - - NULLIF ( - SUM ( + 32 ), + - COUNT ( * ) + - - COUNT ( * ) ) + + 86 AS col2
----
105

query I rowsort
SELECT 38 * - - 29 + 75 + - - 53 - 39 col1
----
1191

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT ALL + 31 - - COUNT( * ) + - 12 - + 75 + + 20 * - 11 * + + 45 AS col1
----
-9955

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL + 31 - - COUNT ( * ) + - 12 - + 75 + + 20 * - 11 * + + 45 AS col1
----
-9955

onlyif mysql # DIV for integer division: 
query I rowsort label-848
SELECT DISTINCT - - 38 DIV + 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT - - 38 / + 34 AS col1
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-850
SELECT 1 DIV + + CASE 62 WHEN - 96 THEN + 4 WHEN - COUNT( * ) * - ( 66 ) + - + 60 + - - 38 DIV 49 THEN + 0 ELSE - 37 END + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-850
SELECT 1 / + + CASE 62 WHEN - 96 THEN + 4 WHEN - COUNT ( * ) * - ( 66 ) + - + 60 + - - 38 / 49 THEN + 0 ELSE - 37 END + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT ALL + SUM( - + 53 ) + + 52
----
-1

skipif mysql # not compatible
query I rowsort label-851
SELECT ALL + SUM ( - + 53 ) + + 52
----
-1

query I rowsort
SELECT ALL - 5 * - - 82
----
-410

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

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

query I rowsort
SELECT + 19 * + 75 col0
----
1425

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

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

query I rowsort
SELECT ALL 68 + - 20 AS col0
----
48

query II rowsort
SELECT 2, - 74 + - 29 col1
----
2
-103

query I rowsort
SELECT ALL 12 + + - 31 * + 31
----
-949

query I rowsort
SELECT DISTINCT + 86 + + ( - 2 ) + - ( + - CASE + 0 WHEN 64 THEN + 8 + + - 48 + + 32 * + + 92 ELSE 33 END ) + - 32 * - + ( - + 58 ) * - 74 + + 34 AS col1
----
137495

onlyif mysql # DIV for integer division: 
query I rowsort label-860
SELECT COALESCE ( + - 1, - + 49 DIV + 17 + + 66 + + 81 * - 80 DIV + 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-860
SELECT COALESCE ( + - 1, - + 49 / + 17 + + 66 + + 81 * - 80 / + 50 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-861
SELECT CAST( NULL AS DECIMAL ) * + 10 / - 55
----
NULL

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

query I rowsort
SELECT - 76 * + - 69 * - - 26 + - 11 AS col0
----
136333

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT ALL SUM( ALL 20 ) + + - 28
----
-8

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL SUM ( ALL 20 ) + + - 28
----
-8

query I rowsort
SELECT ALL 48 * 29 AS col0
----
1392

query I rowsort
SELECT 59 - + 78
----
-19

query I rowsort
SELECT DISTINCT 77 * 75
----
5775

query I rowsort
SELECT ALL + 40 - + 53 + ( + 15 ) AS col2
----
2

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

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL MAX ( ALL - 16 )
----
-16

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

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

query I rowsort
SELECT 68 + - CASE + 86 WHEN + 38 THEN NULL ELSE + 48 END
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT 39 DIV - ( - 96 ) * 95
----
0

skipif mysql # not compatible
query I rowsort label-871
SELECT 39 / - ( - 96 ) * 95
----
0

query I rowsort
SELECT 77 + + ( + 84 ) AS col0
----
161

query II rowsort
SELECT 83 * - 58 AS col0, + 56 + 55 AS col0
----
-4814
111

query I rowsort
SELECT 87 * 27 AS col1
----
2349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-875
SELECT ALL - 51 DIV - + SUM( ALL - 81 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL - 51 / - + SUM ( ALL - 81 ) AS col2
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-877
SELECT 7 DIV - 75 AS col2, CASE + - CAST( NULL AS SIGNED ) WHEN 26 THEN + 12 END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-877
SELECT 7 / - 75 AS col2, CASE + - CAST ( NULL AS INTEGER ) WHEN 26 THEN + 12 END AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-878
SELECT ALL + 61 * MAX( ALL - 13 ) + + ( + ( - 50 ) ) + - - 23, 57 * 22 * + + 96 AS col1
----
-820
120384

skipif mysql # not compatible
query II rowsort label-878
SELECT ALL + 61 * MAX ( ALL - 13 ) + + ( + ( - 50 ) ) + - - 23, 57 * 22 * + + 96 AS col1
----
-820
120384

query I rowsort
SELECT - + 94 * 59
----
-5546

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-880
SELECT - + 89 * 77 AS col2, CAST( NULL AS SIGNED )
----
-6853
NULL

skipif mysql # not compatible
query II rowsort label-880
SELECT - + 89 * 77 AS col2, CAST ( NULL AS INTEGER )
----
-6853
NULL

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

skipif mysql # not compatible
query I rowsort label-881
SELECT - + MAX ( - 10 )
----
10

query I rowsort
SELECT DISTINCT - 67 * - + 9 + - 94 AS col2
----
509

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ALL + 9 + + 92 + - ( + + MIN( DISTINCT + + 13 ) ) * 22
----
-185

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL + 9 + + 92 + - ( + + MIN ( DISTINCT + + 13 ) ) * 22
----
-185

query I rowsort
SELECT ALL - 50 + + 80 + - - 81 AS col1
----
111

query I rowsort
SELECT - + 45 - - 72 * + - 65
----
-4725

query I rowsort
SELECT - COALESCE ( + - 36, - - 40 + + + 31, - 95 ) AS col1
----
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT DISTINCT - 75 * 8 + COALESCE ( - - MIN( - + 35 ), + + COALESCE ( - + 78, - 55 ), - 42 + 93, - + 91 ) AS col1
----
-635

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT - 75 * 8 + COALESCE ( - - MIN ( - + 35 ), + + COALESCE ( - + 78, - 55 ), - 42 + 93, - + 91 ) AS col1
----
-635

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT DISTINCT 13 * - 36 * COUNT( * )
----
-468

skipif mysql # not compatible
query I rowsort label-890
SELECT DISTINCT 13 * - 36 * COUNT ( * )
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT - 36 + 10 + COUNT( * ) * - 67 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-891
SELECT - 36 + 10 + COUNT ( * ) * - 67 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT + 42 * CASE 95 WHEN - + NULLIF ( + 71, - + 32 * - + 33 ) + COUNT( * ) THEN + - 85 END * 40 / - 40 * - COUNT( - 72 ) - - 47 + - 43 + + - COALESCE ( COUNT( * ), + - 38 / 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT + 42 * CASE 95 WHEN - + NULLIF ( + 71, - + 32 * - + 33 ) + COUNT ( * ) THEN + - 85 END * 40 / - 40 * - COUNT ( - 72 ) - - 47 + - 43 + + - COALESCE ( COUNT ( * ), + - 38 / 88 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT MIN( + - CASE - 93 WHEN 0 / - COALESCE ( - 35, + 51 ) + 31 THEN - 27 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-893
SELECT MIN ( + - CASE - 93 WHEN 0 / - COALESCE ( - 35, + 51 ) + 31 THEN - 27 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-894
SELECT + COALESCE ( - + 67, - + 42 * + + 90 DIV - 85, COUNT( * ) * - 39 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-894
SELECT + COALESCE ( - + 67, - + 42 * + + 90 / - 85, COUNT ( * ) * - 39 ) AS col1
----
-67

query I rowsort
SELECT ALL - 41 * - 12 - - - 99 * + 29
----
-2379

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

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

query I rowsort
SELECT + 88 - + 53
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-898
SELECT + ( MIN( 87 ) ) col0, 7 * + 31 * 80 * - - 84 col0
----
87
1458240

skipif mysql # not compatible
query II rowsort label-898
SELECT + ( MIN ( 87 ) ) col0, 7 * + 31 * 80 * - - 84 col0
----
87
1458240

query I rowsort
SELECT + 52 * + 44 AS col1
----
2288

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL 58 * + 5 * + - COUNT( * ) * - ( + - 21 ) col0
----
-6090

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL 58 * + 5 * + - COUNT ( * ) * - ( + - 21 ) col0
----
-6090

query I rowsort
SELECT + 64 - + + 22 AS col1
----
42

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

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL MAX ( ALL - 94 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-903
SELECT + 16 * + CAST( NULL AS SIGNED ) * - 95 * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT + 16 * + CAST ( NULL AS INTEGER ) * - 95 * - 42 AS col1
----
NULL

query I rowsort
SELECT ALL 22 * - + 32 * + 51 AS col1
----
-35904

query I rowsort
SELECT ALL - + 13 + 75 AS col2
----
62

query I rowsort
SELECT - + 35 - + + 78 AS col1
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-907
SELECT ALL - CAST( + - CAST( - CASE + COUNT( * ) WHEN + 71 - 97 THEN + NULLIF ( + AVG ( DISTINCT 51 ), 7 ) WHEN - 12 THEN NULL END AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL - CAST ( + - CAST ( - CASE + COUNT ( * ) WHEN + 71 - 97 THEN + NULLIF ( + AVG ( DISTINCT 51 ), 7 ) WHEN - 12 THEN NULL END AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT + - 65 + - 82 col1
----
-147

onlyif mysql # aggregate syntax: 
query II rowsort label-909
SELECT ALL - - 83 + + + ( - 97 ) AS col2, MIN( ALL 93 ) AS col2
----
-14
93

skipif mysql # not compatible
query II rowsort label-909
SELECT ALL - - 83 + + + ( - 97 ) AS col2, MIN ( ALL 93 ) AS col2
----
-14
93

query II rowsort
SELECT + 74 + + CASE 31 WHEN + + 12 THEN + - 11 END, 98 col1
----
NULL
98

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

skipif mysql # not compatible
query I rowsort label-911
SELECT + 83 / + COUNT ( * ) AS col2
----
83

query I rowsort
SELECT + 88 + 65 AS col2
----
153

query I rowsort
SELECT ALL - 77 + 5 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT ALL 71 + - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL 71 + - COUNT ( * )
----
70

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-916
SELECT ALL + - CASE + 75 WHEN + MIN( 36 ) + 53 THEN 8 * - 30 DIV + + 6 WHEN + + 30 * + 40 THEN 81 + + - 37 - + 34 ELSE + - ( + 14 ) * - 13 END + - 95
----
-277

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL + - CASE + 75 WHEN + MIN ( 36 ) + 53 THEN 8 * - 30 / + + 6 WHEN + + 30 * + 40 THEN 81 + + - 37 - + 34 ELSE + - ( + 14 ) * - 13 END + - 95
----
-277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-917
SELECT DISTINCT + + CAST( + ( - - 25 ) AS SIGNED ) + + 18
----
43

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT + + CAST ( + ( - - 25 ) AS INTEGER ) + + 18
----
43

query I rowsort
SELECT - 33 * - 41 - - - 35
----
1318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-919
SELECT - 37 DIV + MIN( - 34 ) + + 99
----
100

skipif mysql # not compatible
query I rowsort label-919
SELECT - 37 / + MIN ( - 34 ) + + 99
----
100

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

query I rowsort
SELECT - + 83 + + 2 + - 67
----
-148

query I rowsort
SELECT - 90 * - 21 * - 78 AS col1
----
-147420

query II rowsort
SELECT + - 85 AS col1, + 62 * + + 67 col0
----
-85
4154

query I rowsort
SELECT - 43 * 29 + 32 - + 76 * + + 55
----
-5395

query II rowsort
SELECT - 13 * - + 24 AS col0, 49 col0
----
312
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-926
SELECT ALL + 80 DIV + 35 - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL + 80 / + 35 - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-927
SELECT DISTINCT 59 DIV - 98 * - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT 59 / - 98 * - - COUNT ( * ) AS col0
----
0

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

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

query II rowsort
SELECT + 8, - 24 * + + 55 col0
----
8
-1320

onlyif mysql # DIV for integer division: 
query II rowsort label-930
SELECT ALL + 3 AS col1, + 7 DIV 37
----
3
0

skipif mysql # not compatible
query II rowsort label-930
SELECT ALL + 3 AS col1, + 7 / 37
----
3
0

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

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

query I rowsort
SELECT + 46 - + 61
----
-15

query I rowsort
SELECT DISTINCT - ( - - 44 ) * 74
----
-3256

query I rowsort
SELECT ALL + 51 * - 6
----
-306

query I rowsort
SELECT DISTINCT - 96 * - 1 col0
----
96

query I rowsort
SELECT + 93 * + 68 AS col1
----
6324

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-937
SELECT ALL 79 * + 86 * - + 38 + + NULLIF ( 58, - 15 + + 96 - CAST( NULL AS SIGNED ) * CAST( 35 AS DECIMAL ) )
----
-258114

skipif mysql # not compatible
query I rowsort label-937
SELECT ALL 79 * + 86 * - + 38 + + NULLIF ( 58, - 15 + + 96 - CAST ( NULL AS INTEGER ) * CAST ( 35 AS REAL ) )
----
-258114

query I rowsort
SELECT 15 * + ( - + 36 ) + - - 15 * 43 * + 91
----
58155

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-939
SELECT ALL 5 AS col1, 82 + + CAST( NULL AS DECIMAL )
----
5
NULL

skipif mysql # not compatible
query II rowsort label-939
SELECT ALL 5 AS col1, 82 + + CAST ( NULL AS REAL )
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT + SUM( ALL + 0 ) + ( ( + 73 ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-940
SELECT + SUM ( ALL + 0 ) + ( ( + 73 ) ) AS col1
----
73

query II rowsort
SELECT - + 70, 52 AS col1
----
-70
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT CAST( 16 AS SIGNED ) * - + 10 - + 80
----
-240

skipif mysql # not compatible
query I rowsort label-942
SELECT CAST ( 16 AS INTEGER ) * - + 10 - + 80
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-943
SELECT ALL 75 + - 94 + ( + + CAST( NULL AS SIGNED ) ) + - 53 * - - 25 + + 6 * COUNT( * ) * + - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL 75 + - 94 + ( + + CAST ( NULL AS INTEGER ) ) + - 53 * - - 25 + + 6 * COUNT ( * ) * + - 77 AS col1
----
NULL

query II rowsort
SELECT - - 16, - 80 * 64 * + 72 AS col0
----
16
-368640

query II rowsort
SELECT - 44 AS col2, + 4 * - 98
----
-44
-392

query II rowsort
SELECT ALL 89 + - 87 + + 30 + + 92 AS col0, - 46 * 48 * - 96 * + - 54
----
124
-11446272

query II rowsort
SELECT + 67 AS col2, + 71 * - 12 AS col2
----
67
-852

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT ALL + COALESCE ( 11, - MIN( 22 ), + 77 + + + SUM( 91 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL + COALESCE ( 11, - MIN ( 22 ), + 77 + + + SUM ( 91 ) ) AS col2
----
11

query I rowsort
SELECT ALL - 17 * + 14 AS col2
----
-238

query I rowsort
SELECT ALL + COALESCE ( + COALESCE ( + + 47, + 97 ), + 7 ) + - 49
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-951
SELECT DISTINCT 60 * - + CASE + 37 WHEN + 26 THEN - 52 + - 70 ELSE NULL END - - CAST( NULL AS DECIMAL ) + - 54 + - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT 60 * - + CASE + 37 WHEN + 26 THEN - 52 + - 70 ELSE NULL END - - CAST ( NULL AS REAL ) + - 54 + - - 41
----
NULL

query I rowsort
SELECT + 8 * + 81 * - 46 + - 10
----
-29818

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-954
SELECT - - 41 col2, CAST( - - 53 AS SIGNED )
----
41
53

skipif mysql # not compatible
query II rowsort label-954
SELECT - - 41 col2, CAST ( - - 53 AS INTEGER )
----
41
53

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-956
SELECT ALL + 54 * + 75 AS col2, ( + - COUNT( * ) ) DIV 41 * - COUNT( * ) AS col0
----
4050
0

skipif mysql # not compatible
query II rowsort label-956
SELECT ALL + 54 * + 75 AS col2, ( + - COUNT ( * ) ) / 41 * - COUNT ( * ) AS col0
----
4050
0

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

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

query I rowsort
SELECT ALL + 45 * + 65 AS col1
----
2925

onlyif mysql # DIV for integer division: 
query I rowsort label-959
SELECT DISTINCT ( - 51 ) DIV + 7
----
-7

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT ( - 51 ) / + 7
----
-7

query I rowsort
SELECT ALL - 81 * + 50 AS col0
----
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT 61 - + + COUNT( * ) + + 16
----
76

skipif mysql # not compatible
query I rowsort label-961
SELECT 61 - + + COUNT ( * ) + + 16
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT ALL + 82 * - MIN( + - 4 )
----
328

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL + 82 * - MIN ( + - 4 )
----
328

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT DISTINCT - NULLIF ( - + COUNT( * ), COALESCE ( 64, + 10 * + - 91 + - 40 ) )
----
1

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT - NULLIF ( - + COUNT ( * ), COALESCE ( 64, + 10 * + - 91 + - 40 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-964
SELECT 87 * COUNT( * ) DIV - COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-964
SELECT 87 * COUNT ( * ) / - COUNT ( * ) AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-965
SELECT ALL - NULLIF ( + COUNT( - 86 ), - 90 + CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL - NULLIF ( + COUNT ( - 86 ), - 90 + CAST ( NULL AS INTEGER ) )
----
-1

query II rowsort
SELECT 58 * 51, 4 AS col0
----
2958
4

onlyif mysql # DIV for integer division: 
query II rowsort label-967
SELECT DISTINCT + 37 + + 29 AS col1, 32 DIV 34 AS col1
----
66
0

skipif mysql # not compatible
query II rowsort label-967
SELECT DISTINCT + 37 + + 29 AS col1, 32 / 34 AS col1
----
66
0

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

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL - 83 + 83 + - + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 38 + + 6 * + 35
----
248

query II rowsort
SELECT DISTINCT - 71 + - + 64, 15 AS col1
----
-135
15

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT ALL + - 29 + + - 3 DIV - + 87
----
-29

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL + - 29 + + - 3 / - + 87
----
-29

query II rowsort
SELECT 30 - 16 AS col0, 34
----
14
34

query I rowsort
SELECT ALL - 21 * 53
----
-1113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-974
SELECT + + 21 * + 38 * + 73 + CAST( NULL AS SIGNED ) * + + CASE + + 57 WHEN + - 3 + - ( + + 35 ) - 9 THEN NULL WHEN + MIN( - ( + 8 ) ) THEN NULL ELSE 93 END + ( + 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-974
SELECT + + 21 * + 38 * + 73 + CAST ( NULL AS INTEGER ) * + + CASE + + 57 WHEN + - 3 + - ( + + 35 ) - 9 THEN NULL WHEN + MIN ( - ( + 8 ) ) THEN NULL ELSE 93 END + ( + 41 ) AS col0
----
NULL

query I rowsort
SELECT ALL + - 37 + - - 21 * + 30 AS col0
----
593

onlyif mysql # aggregate syntax: 
query II rowsort label-976
SELECT ALL + 77 + + 98, ( + - ( COUNT( * ) ) ) AS col1
----
175
-1

skipif mysql # not compatible
query II rowsort label-976
SELECT ALL + 77 + + 98, ( + - ( COUNT ( * ) ) ) AS col1
----
175
-1

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

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

query II rowsort
SELECT ALL 89 - + - 88 col2, 81 * 95
----
177
7695

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-979
SELECT 79 + - - 91, - CAST( NULL AS SIGNED ) AS col2
----
170
NULL

skipif mysql # not compatible
query II rowsort label-979
SELECT 79 + - - 91, - CAST ( NULL AS INTEGER ) AS col2
----
170
NULL

query I rowsort
SELECT + 72 + - + COALESCE ( 14, - CASE + - 24 WHEN 59 THEN + 43 - - + 77 END ) * + 57 AS col0
----
-726

query I rowsort
SELECT ( 59 ) * - 58 AS col0
----
-3422

onlyif mysql # DIV for integer division: 
query I rowsort label-982
SELECT ALL - 45 * 44 DIV - - 31
----
-63

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL - 45 * 44 / - - 31
----
-63

query I rowsort
SELECT DISTINCT + 12 * - 7 + - + 50
----
-134

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-985
SELECT ALL 1 * + CASE - 63 WHEN - 3 THEN NULL WHEN - 17 + + 54 * - NULLIF ( + + 59, - + 28 ) THEN - CAST( NULL AS SIGNED ) DIV 5 + + 1 - - + 16 + - 35 ELSE + 67 END * - 46 - 37 DIV + 93 col1
----
-3082

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL 1 * + CASE - 63 WHEN - 3 THEN NULL WHEN - 17 + + 54 * - NULLIF ( + + 59, - + 28 ) THEN - CAST ( NULL AS INTEGER ) / 5 + + 1 - - + 16 + - 35 ELSE + 67 END * - 46 - 37 / + 93 col1
----
-3082

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT ALL ( + 95 ) * 49 + - - 35 + + + CASE - - ( + COUNT( * ) ) WHEN - COUNT( * ) THEN 13 END + + - ( - 59 ) * + 72 + - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL ( + 95 ) * 49 + - - 35 + + + CASE - - ( + COUNT ( * ) ) WHEN - COUNT ( * ) THEN 13 END + + - ( - 59 ) * + 72 + - + 18
----
NULL

query II rowsort
SELECT ALL 37, - 6 AS col2
----
37
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT COUNT( ALL - 77 ) + + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-988
SELECT COUNT ( ALL - 77 ) + + 96 AS col0
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-989
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + AVG ( + + 9 )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT + ( + CAST( NULL AS SIGNED ) ) / + AVG ( - - 25 ) + - 13 * CAST( - ( 88 ) AS SIGNED ) / + 30 - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT + ( + CAST ( NULL AS INTEGER ) ) / + AVG ( - - 25 ) + - 13 * CAST ( - ( 88 ) AS INTEGER ) / + 30 - 26
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-991
SELECT ALL - 6, COUNT( * ) col0
----
-6
1

skipif mysql # not compatible
query II rowsort label-991
SELECT ALL - 6, COUNT ( * ) col0
----
-6
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-993
SELECT ALL 35 DIV + MIN( ALL - 62 )
----
0

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL 35 / + MIN ( ALL - 62 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-994
SELECT ALL 21 * + + CASE + CAST( 12 AS DECIMAL ) WHEN 44 THEN NULL ELSE - - 71 END + - 26 AS col2
----
1465

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL 21 * + + CASE + CAST ( 12 AS REAL ) WHEN 44 THEN NULL ELSE - - 71 END + - 26 AS col2
----
1465

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT MAX( DISTINCT - - 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-995
SELECT MAX ( DISTINCT - - 90 ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-996
SELECT 24 * - 69 * COUNT( * ) + 38 - 34 + CASE - ( + ( - - COUNT( * ) ) ) WHEN - - ( 76 ) THEN 87 * + 71 - - 58 + + COUNT( * ) + + 56 + + 51 / + CAST( NULL AS SIGNED ) + + - 52 * + - NULLIF ( 77, + 21 ) / - 83 / 45 WHEN 60 * - + 23 + - - 37 THEN - 66 END / + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-996
SELECT 24 * - 69 * COUNT ( * ) + 38 - 34 + CASE - ( + ( - - COUNT ( * ) ) ) WHEN - - ( 76 ) THEN 87 * + 71 - - 58 + + COUNT ( * ) + + 56 + + 51 / + CAST ( NULL AS INTEGER ) + + - 52 * + - NULLIF ( 77, + 21 ) / - 83 / 45 WHEN 60 * - + 23 + - - 37 THEN - 66 END / + 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT ALL ( - COUNT( * ) ) * 54 * 29 + - 15 + - + CASE - 94 WHEN COUNT( * ) + - COUNT( * ) THEN + - 60 + + COUNT( * ) + - 76 END + 54 * + - 34 / 33
----
NULL

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL ( - COUNT ( * ) ) * 54 * 29 + - 15 + - + CASE - 94 WHEN COUNT ( * ) + - COUNT ( * ) THEN + - 60 + + COUNT ( * ) + - 76 END + 54 * + - 34 / 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-998
SELECT CASE + 56 WHEN + + NULLIF ( - + 36, + COUNT( * ) + - 42 * - - 79 - + - 73 ) + + + ( - 28 ) / + 33 + - 41 THEN 94 + + CAST( - 38 AS DECIMAL ) END * - CAST( NULL AS SIGNED ) + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-998
SELECT CASE + 56 WHEN + + NULLIF ( - + 36, + COUNT ( * ) + - 42 * - - 79 - + - 73 ) + + + ( - 28 ) / + 33 + - 41 THEN 94 + + CAST ( - 38 AS REAL ) END * - CAST ( NULL AS INTEGER ) + - 1
----
NULL

query I rowsort
SELECT - COALESCE ( + - 41, + - 76 * + 81 + + 20 + 52 ) AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1000
SELECT + + 61 + + COUNT( * ) / CAST( NULL AS SIGNED ) + + 58 * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT + + 61 + + COUNT ( * ) / CAST ( NULL AS INTEGER ) + + 58 * + 52
----
NULL

query I rowsort
SELECT - - 87 + 71 AS col2
----
158

query I rowsort
SELECT DISTINCT + 23 * 76 col0
----
1748

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT - CASE - COUNT( * ) WHEN + 51 / + 61 / 17 THEN 76 ELSE NULL END + + - COUNT( * ) + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1005
SELECT - CASE - COUNT ( * ) WHEN + 51 / + 61 / 17 THEN 76 ELSE NULL END + + - COUNT ( * ) + - 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1006
SELECT ALL 85 AS col2, + CASE + - 35 WHEN 64 THEN NULL WHEN + + 80 THEN + ( - - 21 ) - 37 + - COUNT( DISTINCT 48 ) ELSE NULL END - - COUNT( * )
----
85
NULL

skipif mysql # not compatible
query II rowsort label-1006
SELECT ALL 85 AS col2, + CASE + - 35 WHEN 64 THEN NULL WHEN + + 80 THEN + ( - - 21 ) - 37 + - COUNT ( DISTINCT 48 ) ELSE NULL END - - COUNT ( * )
----
85
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT - - 35 * 44 + - NULLIF ( COUNT( * ), CASE + 6 WHEN + COUNT( * ) THEN - 94 WHEN - - 95 / + COUNT( + 56 ) THEN 45 + + 92 END / + + 94 + - - 81 / - 36 + - + 8 ) AS col2
----
1539

skipif mysql # not compatible
query I rowsort label-1008
SELECT - - 35 * 44 + - NULLIF ( COUNT ( * ), CASE + 6 WHEN + COUNT ( * ) THEN - 94 WHEN - - 95 / + COUNT ( + 56 ) THEN 45 + + 92 END / + + 94 + - - 81 / - 36 + - + 8 ) AS col2
----
1539

query I rowsort
SELECT - + 71 + + + 55 + 77
----
61

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

query I rowsort
SELECT + 26 + + + 42
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1012
SELECT ALL - + CAST( NULL AS SIGNED ) * + - 92 * - ( - - 18 ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL - + CAST ( NULL AS INTEGER ) * + - 92 * - ( - - 18 ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT - 66 + - ( + - COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-1013
SELECT - 66 + - ( + - COUNT ( * ) )
----
-65

query I rowsort
SELECT DISTINCT - + 92 * - 49
----
4508

onlyif mysql # aggregate syntax: 
query II rowsort label-1015
SELECT DISTINCT - NULLIF ( + COUNT( * ), - ( - 27 ) ), 18 * - 29 AS col2
----
-1
-522

skipif mysql # not compatible
query II rowsort label-1015
SELECT DISTINCT - NULLIF ( + COUNT ( * ), - ( - 27 ) ), 18 * - 29 AS col2
----
-1
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT - MAX( ALL + - 82 ) * - 93 * 73 + - 2
----
-556700

skipif mysql # not compatible
query I rowsort label-1016
SELECT - MAX ( ALL + - 82 ) * - 93 * 73 + - 2
----
-556700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1017
SELECT DISTINCT + - MAX( ALL + - 67 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT + - MAX ( ALL + - 67 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1018
SELECT DISTINCT + CAST( - + COUNT( ALL 41 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT + CAST ( - + COUNT ( ALL 41 ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1019
SELECT ALL + + SUM( ALL - CAST( + - 91 AS SIGNED ) ) * - + 75 * + 82 col0
----
-559650

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL + + SUM ( ALL - CAST ( + - 91 AS INTEGER ) ) * - + 75 * + 82 col0
----
-559650

onlyif mysql # DIV for integer division: 
query I rowsort label-1020
SELECT DISTINCT 37 DIV + ( 59 )
----
0

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT 37 / + ( 59 )
----
0

query I rowsort
SELECT + NULLIF ( 91, + - 45 ) + + + 27
----
118

query I rowsort
SELECT DISTINCT ( - - 67 ) AS col1
----
67

query II rowsort
SELECT ALL 59 + - - 16, 27 AS col0
----
75
27

query I rowsort
SELECT DISTINCT 94 + - 20 AS col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-1025
SELECT + 0 - 57, CASE - 58 WHEN - 99 + + 0 THEN - COALESCE ( + + 49, - 0 * - - COUNT( * ) + + 81 ) WHEN MIN( DISTINCT - 82 ) THEN + 92 * + 19 / - 60 * + 74 END * + - ( 70 ) AS col2
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-1025
SELECT + 0 - 57, CASE - 58 WHEN - 99 + + 0 THEN - COALESCE ( + + 49, - 0 * - - COUNT ( * ) + + 81 ) WHEN MIN ( DISTINCT - 82 ) THEN + 92 * + 19 / - 60 * + 74 END * + - ( 70 ) AS col2
----
-57
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1026
SELECT DISTINCT + COALESCE ( - + COUNT( * ), + COALESCE ( CAST( NULL AS SIGNED ), - SUM( ALL 78 ) * - + 14, 32 DIV + COUNT( * ) ) * + 20, - 16 * + 43, 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT + COALESCE ( - + COUNT ( * ), + COALESCE ( CAST ( NULL AS INTEGER ), - SUM ( ALL 78 ) * - + 14, 32 / + COUNT ( * ) ) * + 20, - 16 * + 43, 16 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1027
SELECT ALL 55 DIV 7 + + COALESCE ( + 41, - ( 47 ) )
----
48

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL 55 / 7 + + COALESCE ( + 41, - ( 47 ) )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1028
SELECT ALL ( + 34 ) DIV - + 41 + + COUNT( * ) col1, - 17 AS col2
----
1
-17

skipif mysql # not compatible
query II rowsort label-1028
SELECT ALL ( + 34 ) / - + 41 + + COUNT ( * ) col1, - 17 AS col2
----
1
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1029
SELECT DISTINCT 17 DIV + COUNT( * ) + + - 7 + - ( - 33 )
----
43

skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT 17 / + COUNT ( * ) + + - 7 + - ( - 33 )
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1030
SELECT DISTINCT 23 DIV 43 + + ( - 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT 23 / 43 + + ( - 31 )
----
-31

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1032
SELECT ( 49 ) AS col1, 65 - - 19 + + + COUNT( * ) * + 11 * SUM( + + 96 ) * + 20 + 43 AS col0
----
49
21247

skipif mysql # not compatible
query II rowsort label-1032
SELECT ( 49 ) AS col1, 65 - - 19 + + + COUNT ( * ) * + 11 * SUM ( + + 96 ) * + 20 + 43 AS col0
----
49
21247

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1034
SELECT + 52 DIV - - 39
----
1

skipif mysql # not compatible
query I rowsort label-1034
SELECT + 52 / - - 39
----
1

query I rowsort
SELECT - 57 + - 35 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT DISTINCT + CASE 62 WHEN ( 53 ) THEN NULL WHEN - 85 THEN - MAX( ALL - 26 ) ELSE NULL END / 21 * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT + CASE 62 WHEN ( 53 ) THEN NULL WHEN - 85 THEN - MAX ( ALL - 26 ) ELSE NULL END / 21 * - 53
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1037
SELECT DISTINCT + 19 DIV 29 - + CASE - - COUNT( * ) WHEN - + 2 THEN NULL ELSE + 24 END
----
-24

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT + 19 / 29 - + CASE - - COUNT ( * ) WHEN - + 2 THEN NULL ELSE + 24 END
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1038
SELECT DISTINCT - + 36 * CAST( NULL AS SIGNED ) * 96 * 9 - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT - + 36 * CAST ( NULL AS INTEGER ) * 96 * 9 - 35
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1039
SELECT DISTINCT 26 DIV 3 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT 26 / 3 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1040
SELECT DISTINCT + 38 * + 36 AS col0, - SUM( + 12 ) AS col1
----
1368
-12

skipif mysql # not compatible
query II rowsort label-1040
SELECT DISTINCT + 38 * + 36 AS col0, - SUM ( + 12 ) AS col1
----
1368
-12

query I rowsort
SELECT + + 80 + 39 * + 56 AS col1
----
2264

query I rowsort
SELECT + + CASE WHEN NOT NULL IS NOT NULL THEN + 6 ELSE NULL END
----
6

query I rowsort
SELECT DISTINCT + 11 * 21 * - 54 AS col1
----
-12474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1044
SELECT + COALESCE ( 42, + + 58 DIV - 6 - 89 - - MIN( + + 35 ) - - MAX( - 66 ) * + 78, - - 46 + - 68 DIV - 34 )
----
42

skipif mysql # not compatible
query I rowsort label-1044
SELECT + COALESCE ( 42, + + 58 / - 6 - 89 - - MIN ( + + 35 ) - - MAX ( - 66 ) * + 78, - - 46 + - 68 / - 34 )
----
42

query I rowsort
SELECT + 27 - + 50 * 28 * 53 AS col2
----
-74173

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT - COUNT( ALL - 27 ) * 39 + 72 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-1046
SELECT - COUNT ( ALL - 27 ) * 39 + 72 AS col0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1047
SELECT ALL 24 * CASE - + COUNT( - - 97 ) WHEN - 87 * - 37 - + AVG ( + + 96 ) THEN - 86 ELSE + 32 DIV - - 61 END * - 62 * 73 + + - COUNT( DISTINCT + 67 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL 24 * CASE - + COUNT ( - - 97 ) WHEN - 87 * - 37 - + AVG ( + + 96 ) THEN - 86 ELSE + 32 / - - 61 END * - 62 * 73 + + - COUNT ( DISTINCT + 67 ) AS col2
----
-1

query I rowsort
SELECT - + 23 * - 45 AS col1
----
1035

query I rowsort
SELECT DISTINCT + 17 * + + 29 * + 38 + - - 5 AS col2
----
18739

query I rowsort
SELECT ALL NULLIF ( - + 5, - + AVG ( 62 ) ) AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1051
SELECT - + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) - CAST( - - 54 AS SIGNED ) - 25 + + - 34 + - 17 + + 18 AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-1051
SELECT - + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) - CAST ( - - 54 AS INTEGER ) - 25 + + - 34 + - 17 + + 18 AS col2
----
-112

query I rowsort
SELECT ALL - - 81 * - - 24
----
1944

query I rowsort
SELECT + - 4 + + 59
----
55

query I rowsort
SELECT - 48 + - COALESCE ( 36, + 61 )
----
-84

query I rowsort
SELECT ALL - 23 + + 80 AS col1
----
57

query I rowsort
SELECT ALL + 68 + - 71 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1057
SELECT - NULLIF ( - COUNT( * ), - - CASE - + ( + 98 ) WHEN - + COUNT( + 99 ) THEN NULL WHEN - 59 THEN + COUNT( ALL 9 ) + - + CASE + 86 WHEN + + 13 / - COALESCE ( SUM( ALL - - 13 ), - - CAST( NULL AS DECIMAL ) / - + ( 76 ) ) + + 14 * - - 88 * - 2 + + COUNT( * ) THEN - + 13 WHEN 30 + - + MIN( ALL - NULLIF ( + 33, + 32 / - + 74 ) ) THEN + 1 / ( 5 * - 52 ) END END ) + 14
----
15

skipif mysql # not compatible
query I rowsort label-1057
SELECT - NULLIF ( - COUNT ( * ), - - CASE - + ( + 98 ) WHEN - + COUNT ( + 99 ) THEN NULL WHEN - 59 THEN + COUNT ( ALL 9 ) + - + CASE + 86 WHEN + + 13 / - COALESCE ( SUM ( ALL - - 13 ), - - CAST ( NULL AS REAL ) / - + ( 76 ) ) + + 14 * - - 88 * - 2 + + COUNT ( * ) THEN - + 13 WHEN 30 + - + MIN ( ALL - NULLIF ( + 33, + 32 / - + 74 ) ) THEN + 1 / ( 5 * - 52 ) END END ) + 14
----
15

query I rowsort
SELECT DISTINCT + 51 + - 37 AS col2
----
14

query I rowsort
SELECT ALL 88 + - 77
----
11

query I rowsort
SELECT ALL 6 + + 78 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1061
SELECT 83 * COALESCE ( 38, + CASE + COUNT( * ) WHEN - 37 THEN + - 87 WHEN CAST( 29 AS SIGNED ) * - ( + 12 ) * + + CASE + 41 WHEN - 2 THEN - - 58 / - - ( + + CASE - 91 WHEN + 1 THEN + 61 END ) * - 94 - + ( ( + - 60 ) ) + - 59 * - 23 + - ( 4 ) + - 74 - 44 ELSE ( 48 ) END THEN 46 ELSE NULL END ) AS col2
----
3154

skipif mysql # not compatible
query I rowsort label-1061
SELECT 83 * COALESCE ( 38, + CASE + COUNT ( * ) WHEN - 37 THEN + - 87 WHEN CAST ( 29 AS INTEGER ) * - ( + 12 ) * + + CASE + 41 WHEN - 2 THEN - - 58 / - - ( + + CASE - 91 WHEN + 1 THEN + 61 END ) * - 94 - + ( ( + - 60 ) ) + - 59 * - 23 + - ( 4 ) + - 74 - 44 ELSE ( 48 ) END THEN 46 ELSE NULL END ) AS col2
----
3154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1062
SELECT ALL + 88 + 25 - CAST( 39 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL + 88 + 25 - CAST ( 39 AS INTEGER )
----
74

query I rowsort
SELECT DISTINCT - ( 34 ) col1
----
-34

query I rowsort
SELECT 83 + - 92 + 37
----
28

query II rowsort
SELECT DISTINCT - 34 AS col2, - 37 AS col0
----
-34
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1066
SELECT ALL - - 43 * + 70 DIV + ( - COUNT( * ) ) AS col2
----
-3010

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT ALL + CASE + - 91 WHEN 8 THEN NULL ELSE + 92 + - 59 END * + CASE + 80 WHEN + + 1 * + 9 + 24 * + NULLIF ( ( - 21 ), + MAX( ALL + 14 ) ) * + + 54 * + - 17 * + + 94 * 13 / + - 6 + CASE + 47 WHEN + + 40 * + ( - 15 ) + - 93 + - ( - COUNT( * ) ) + - + MIN( ALL - + 52 ) * 41 THEN NULL WHEN 46 * 49 THEN 36 * 30 END + - 86 * + COUNT( * ) * 8 THEN 97 WHEN - 82 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL + CASE + - 91 WHEN 8 THEN NULL ELSE + 92 + - 59 END * + CASE + 80 WHEN + + 1 * + 9 + 24 * + NULLIF ( ( - 21 ), + MAX ( ALL + 14 ) ) * + + 54 * + - 17 * + + 94 * 13 / + - 6 + CASE + 47 WHEN + + 40 * + ( - 15 ) + - 93 + - ( - COUNT ( * ) ) + - + MIN ( ALL - + 52 ) * 41 THEN NULL WHEN 46 * 49 THEN 36 * 30 END + - 86 * + COUNT ( * ) * 8 THEN 97 WHEN - 82 THEN NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1068
SELECT CAST ( NULL AS INTEGER ) + + 55 + 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT ALL COUNT( * ) - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL COUNT ( * ) - - COUNT ( * ) AS col0
----
2

query I rowsort
SELECT - 59 + - + 27 AS col2
----
-86

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

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

query I rowsort
SELECT + 34 * + 97 + ( + 9 ) * - 64 + + - 8 AS col2
----
2714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1073
SELECT - 81 DIV 17 * - - COALESCE ( - 73, - 87 * + COUNT( * ) + - 23 ) AS col1
----
292

skipif mysql # not compatible
query I rowsort label-1073
SELECT - 81 / 17 * - - COALESCE ( - 73, - 87 * + COUNT ( * ) + - 23 ) AS col1
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT ALL - - MIN( DISTINCT - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL - - MIN ( DISTINCT - 38 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1075
SELECT - 25 + CASE 55 WHEN - - 22 - - MIN( ALL + 24 ) + - 3 + - - SUM( ALL - 57 ) - 90 THEN - 33 + - + 75 + - 78 + 0 - - 50 ELSE NULL END AS col2, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1075
SELECT - 25 + CASE 55 WHEN - - 22 - - MIN ( ALL + 24 ) + - 3 + - - SUM ( ALL - 57 ) - 90 THEN - 33 + - + 75 + - 78 + 0 - - 50 ELSE NULL END AS col2, CAST ( NULL AS INTEGER )
----
NULL
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1078
SELECT - CAST ( NULL AS INTEGER ) * 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1079
SELECT + 48 DIV - - 31 + - MAX( ALL + - 45 ) + - 8 - - 61 * 67 AS col2
----
4125

skipif mysql # not compatible
query I rowsort label-1079
SELECT + 48 / - - 31 + - MAX ( ALL + - 45 ) + - 8 - - 61 * 67 AS col2
----
4125

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT ALL - 13 + - 13 * - + COUNT( * ) - MIN( ALL - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL - 13 + - 13 * - + COUNT ( * ) - MIN ( ALL - 97 )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1081
SELECT ALL 44 DIV + 67 + - 89 + - 64 - - COUNT( ALL + 60 )
----
-152

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL 44 / + 67 + - 89 + - 64 - - COUNT ( ALL + 60 )
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1082
SELECT ( - - CAST( NULL AS SIGNED ) ) * - - 94 * + 84 / + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1082
SELECT ( - - CAST ( NULL AS INTEGER ) ) * - - 94 * + 84 / + + 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1083
SELECT 46 + - CASE + + 32 WHEN + CASE - 50 WHEN + 33 THEN NULLIF ( + 39, - ( - 88 ) ) * + 32 * + CASE 63 WHEN - COUNT( * ) THEN + 91 * - 55 * + 27 * + - CAST( + 95 AS SIGNED ) ELSE NULL END + + 56 / + + 25 / 27 + - 11 WHEN + - 32 THEN ( - - ( ( - + AVG ( - 0 ) ) ) ) WHEN + CASE COUNT( * ) WHEN - 0 - 42 THEN 80 END * - 40 THEN NULL ELSE COUNT( * ) END / - CAST( MIN( + 8 ) AS SIGNED ) THEN NULL WHEN - COALESCE ( - 0, 77 * - 98 ) THEN 79 - + 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT 46 + - CASE + + 32 WHEN + CASE - 50 WHEN + 33 THEN NULLIF ( + 39, - ( - 88 ) ) * + 32 * + CASE 63 WHEN - COUNT ( * ) THEN + 91 * - 55 * + 27 * + - CAST ( + 95 AS INTEGER ) ELSE NULL END + + 56 / + + 25 / 27 + - 11 WHEN + - 32 THEN ( - - ( ( - + AVG ( - 0 ) ) ) ) WHEN + CASE COUNT ( * ) WHEN - 0 - 42 THEN 80 END * - 40 THEN NULL ELSE COUNT ( * ) END / - CAST ( MIN ( + 8 ) AS INTEGER ) THEN NULL WHEN - COALESCE ( - 0, 77 * - 98 ) THEN 79 - + 25 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 64 * - 43 * + 2
----
5504

onlyif mysql # DIV for integer division: 
query II rowsort label-1085
SELECT - 80, 22 + - 23 DIV - 20 AS col1
----
-80
23

skipif mysql # not compatible
query II rowsort label-1085
SELECT - 80, 22 + - 23 / - 20 AS col1
----
-80
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1086
SELECT MAX( - - CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) + 91 AS col0, - ( - - CAST( NULL AS SIGNED ) ) + - 4 * - - COALESCE ( CAST( NULL AS SIGNED ), 21 ) * + 30 col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1086
SELECT MAX ( - - CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) + 91 AS col0, - ( - - CAST ( NULL AS INTEGER ) ) + - 4 * - - COALESCE ( CAST ( NULL AS INTEGER ), 21 ) * + 30 col2
----
NULL
NULL

query I rowsort
SELECT 87 + - 83 AS col0
----
4

query II rowsort
SELECT DISTINCT 87 AS col0, - 27
----
87
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1089
SELECT 98 AS col0, COUNT( * ) + - + NULLIF ( CAST( - 50 AS SIGNED ), - ( 36 ) * + 41 - - + 43 ) AS col0
----
98
51

skipif mysql # not compatible
query II rowsort label-1089
SELECT 98 AS col0, COUNT ( * ) + - + NULLIF ( CAST ( - 50 AS INTEGER ), - ( 36 ) * + 41 - - + 43 ) AS col0
----
98
51

query I rowsort
SELECT ALL 83 + 53 AS col1
----
136

query II rowsort
SELECT ALL 2, - 33 AS col1
----
2
-33

query I rowsort
SELECT ALL + 1 + + - ( - 61 ) + + 16
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT CASE + + 56 WHEN + 16 THEN NULL WHEN + - NULLIF ( + NULLIF ( + COUNT( * ), + - 97 ), + 24 ) THEN + 22 ELSE + - MAX( DISTINCT + 31 ) END * - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-1093
SELECT CASE + + 56 WHEN + 16 THEN NULL WHEN + - NULLIF ( + NULLIF ( + COUNT ( * ), + - 97 ), + 24 ) THEN + 22 ELSE + - MAX ( DISTINCT + 31 ) END * - COUNT ( * )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1094
SELECT ALL + 92 DIV + + 87
----
1

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL + 92 / + + 87
----
1

query I rowsort
SELECT DISTINCT + 75 * 43 col2
----
3225

query I rowsort
SELECT 86 - 11
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1097
SELECT COUNT( * ) * 78 * + 35 * + + 95 AS col2, CASE 22 WHEN - + 75 THEN + CAST( NULL AS SIGNED ) * + 61 WHEN + + 12 * - + 35 + + - COALESCE ( - 67, - 63 ) THEN - - SUM( + 81 ) ELSE NULL END
----
259350
NULL

skipif mysql # not compatible
query II rowsort label-1097
SELECT COUNT ( * ) * 78 * + 35 * + + 95 AS col2, CASE 22 WHEN - + 75 THEN + CAST ( NULL AS INTEGER ) * + 61 WHEN + + 12 * - + 35 + + - COALESCE ( - 67, - 63 ) THEN - - SUM ( + 81 ) ELSE NULL END
----
259350
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT DISTINCT + 57 * + COUNT( ALL + 42 )
----
57

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT + 57 * + COUNT ( ALL + 42 )
----
57

query I rowsort
SELECT DISTINCT + 75 * + 15 AS col1
----
1125

query II rowsort
SELECT ALL - 30 AS col2, 99 AS col2
----
-30
99

query II rowsort
SELECT DISTINCT - - 99, + 21 AS col0
----
99
21

query II rowsort
SELECT + 70 AS col0, ( + 41 ) + - 77 * 32 AS col1
----
70
-2423

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

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

query I rowsort
SELECT 69 * - 73 * - 68
----
342516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1105
SELECT COUNT( * ) * + CASE - 30 WHEN - + CAST( ( + - COALESCE ( SUM( - 75 ), COUNT( * ) ) ) AS SIGNED ) THEN CASE + 25 WHEN - 36 - + + COUNT( DISTINCT + 16 ) THEN NULL WHEN - CASE + ( + MIN( + + 93 ) ) WHEN - 63 THEN + + MIN( - 66 ) + + COUNT( * ) + 22 - + 51 * + 50 WHEN + NULLIF ( + + 77, - 55 * 82 ) THEN - 31 WHEN CAST( + 17 AS SIGNED ) THEN NULL ELSE + 86 END THEN NULL ELSE - 18 END / - COUNT( * ) WHEN 13 THEN - 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1105
SELECT COUNT ( * ) * + CASE - 30 WHEN - + CAST ( ( + - COALESCE ( SUM ( - 75 ), COUNT ( * ) ) ) AS INTEGER ) THEN CASE + 25 WHEN - 36 - + + COUNT ( DISTINCT + 16 ) THEN NULL WHEN - CASE + ( + MIN ( + + 93 ) ) WHEN - 63 THEN + + MIN ( - 66 ) + + COUNT ( * ) + 22 - + 51 * + 50 WHEN + NULLIF ( + + 77, - 55 * 82 ) THEN - 31 WHEN CAST ( + 17 AS INTEGER ) THEN NULL ELSE + 86 END THEN NULL ELSE - 18 END / - COUNT ( * ) WHEN 13 THEN - 20 END
----
NULL

query I rowsort
SELECT ALL - + COALESCE ( - ( + 44 ), + 29 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT DISTINCT - - MIN( DISTINCT 32 )
----
32

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT - - MIN ( DISTINCT 32 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT ALL + COUNT( * ) * + 92 AS col0, - 27 AS col1
----
92
-27

skipif mysql # not compatible
query II rowsort label-1108
SELECT ALL + COUNT ( * ) * + 92 AS col0, - 27 AS col1
----
92
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-1109
SELECT 92 * + COUNT( * ) AS col0, + 26 col1
----
92
26

skipif mysql # not compatible
query II rowsort label-1109
SELECT 92 * + COUNT ( * ) AS col0, + 26 col1
----
92
26

query I rowsort
SELECT DISTINCT - 59 + - + 38 * - + 16 AS col1
----
549

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT + - COALESCE ( 51, 35 + 23 + - COUNT( * ), - 19 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1111
SELECT + - COALESCE ( 51, 35 + 23 + - COUNT ( * ), - 19 ) AS col2
----
-51

query I rowsort
SELECT ALL 89 + - 32
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT DISTINCT + SUM( 18 ) + ( + - ( + 45 ) ) * - - 76 + + COUNT( - 72 ) AS col1
----
-3401

skipif mysql # not compatible
query I rowsort label-1113
SELECT DISTINCT + SUM ( 18 ) + ( + - ( + 45 ) ) * - - 76 + + COUNT ( - 72 ) AS col1
----
-3401

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL + 68 * + NULLIF ( NULLIF ( - - MAX( ALL ( + + 5 ) ), + 0 * - AVG ( - + 26 ) / + 63 + + COALESCE ( + 22, - 9, 69 ) * - 1 * - 52 ), - 95 ) AS col1
----
340

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + 68 * + NULLIF ( NULLIF ( - - MAX ( ALL ( + + 5 ) ), + 0 * - AVG ( - + 26 ) / + 63 + + COALESCE ( + 22, - 9, 69 ) * - 1 * - 52 ), - 95 ) AS col1
----
340

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1115
SELECT - 73 * - + 69, - MIN( + + 89 ) * + 94 + + 11 + 57 DIV - + 64 * - 8 AS col2
----
5037
-8355

skipif mysql # not compatible
query II rowsort label-1115
SELECT - 73 * - + 69, - MIN ( + + 89 ) * + 94 + + 11 + 57 / - + 64 * - 8 AS col2
----
5037
-8355

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1117
SELECT ALL - 76 + + COALESCE ( - COALESCE ( + - 13, - COALESCE ( - + MIN( DISTINCT + ( - 86 ) ), + 69, 83 * - 87 * + 41 ) + + - 60 + + CASE + MAX( 91 ) WHEN - - ( + 95 ) THEN COUNT( * ) DIV ( + - 43 ) * + 94 + - - COUNT( * ) ELSE NULL END ), + CASE WHEN NOT ( NOT 18 NOT IN ( - - 59 + + 70 + + + 4 + COUNT( * ) ) ) THEN CAST( 80 AS SIGNED ) * NULLIF ( MAX( DISTINCT - 32 ) * - 17 + - 48, - NULLIF ( - 52, - ( 81 ) ) ) ELSE 62 * 38 - - 92 END ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL - 76 + + COALESCE ( - COALESCE ( + - 13, - COALESCE ( - + MIN ( DISTINCT + ( - 86 ) ), + 69, 83 * - 87 * + 41 ) + + - 60 + + CASE + MAX ( 91 ) WHEN - - ( + 95 ) THEN COUNT ( * ) / ( + - 43 ) * + 94 + - - COUNT ( * ) ELSE NULL END ), + CASE WHEN NOT ( NOT 18 NOT IN ( - - 59 + + 70 + + + 4 + COUNT ( * ) ) ) THEN CAST ( 80 AS INTEGER ) * NULLIF ( MAX ( DISTINCT - 32 ) * - 17 + - 48, - NULLIF ( - 52, - ( 81 ) ) ) ELSE 62 * 38 - - 92 END ) AS col0
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1118
SELECT + CAST( NULL AS DECIMAL ) AS col2, + 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-1118
SELECT + CAST ( NULL AS REAL ) AS col2, + 78
----
NULL
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1119
SELECT ALL + COUNT( * ) + + + 45, 28 + 38 - COUNT( * ) AS col0
----
46
65

skipif mysql # not compatible
query II rowsort label-1119
SELECT ALL + COUNT ( * ) + + + 45, 28 + 38 - COUNT ( * ) AS col0
----
46
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT + - COUNT( - - 85 ) * - - 65 * + - 73 + - 44
----
4701

skipif mysql # not compatible
query I rowsort label-1120
SELECT + - COUNT ( - - 85 ) * - - 65 * + - 73 + - 44
----
4701

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT DISTINCT COALESCE ( + 1, + MAX( ALL - - 4 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT COALESCE ( + 1, + MAX ( ALL - - 4 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1122
SELECT DISTINCT CASE - - CAST( NULL AS SIGNED ) WHEN + 91 THEN - 4 + + 4 ELSE + 63 + - 94 + - 16 * 3 DIV - 81 * - 72 - 93 END, 79 * - - 2 AS col2
----
-124
158

skipif mysql # not compatible
query II rowsort label-1122
SELECT DISTINCT CASE - - CAST ( NULL AS INTEGER ) WHEN + 91 THEN - 4 + + 4 ELSE + 63 + - 94 + - 16 * 3 / - 81 * - 72 - 93 END, 79 * - - 2 AS col2
----
-124
158

query I rowsort
SELECT ALL 13 + CASE + 21 WHEN + + 62 + + + 25 THEN - 5 END
----
NULL

query I rowsort
SELECT + ( - 10 ) + + 11 * - 65
----
-725

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL 83 + - - MAX( DISTINCT + 16 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL 83 + - - MAX ( DISTINCT + 16 ) AS col1
----
99

query I rowsort
SELECT DISTINCT 42 + - 21 + 81 AS col2
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1127
SELECT ALL COALESCE ( - 95, + 84 - + 14 * - 25, - + CAST( - + 85 AS SIGNED ) + COUNT( ALL - 9 ) + COUNT( * ) ) * - 54
----
5130

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL COALESCE ( - 95, + 84 - + 14 * - 25, - + CAST ( - + 85 AS INTEGER ) + COUNT ( ALL - 9 ) + COUNT ( * ) ) * - 54
----
5130

query I rowsort
SELECT DISTINCT 35 * - - 19 * + - 16
----
-10640

query I rowsort
SELECT ALL 70 * + 90 * - - 0
----
0

query II rowsort
SELECT ALL 29 - + 41 col0, 40
----
-12
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1131
SELECT + COALESCE ( - 36, 54 + - - 14, + 71 * - - 79 DIV - - 96 ) + COUNT( + 7 ) + + 23 AS col1, + 1
----
-12
1

skipif mysql # not compatible
query II rowsort label-1131
SELECT + COALESCE ( - 36, 54 + - - 14, + 71 * - - 79 / - - 96 ) + COUNT ( + 7 ) + + 23 AS col1, + 1
----
-12
1

query I rowsort
SELECT - 41 * + 53 AS col1
----
-2173

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

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

query II rowsort
SELECT DISTINCT 76 * - 58, 65 AS col1
----
-4408
65

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

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

query I rowsort
SELECT + 5 * 80 * - 91 AS col1
----
-36400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1137
SELECT + CAST( + - 3 AS SIGNED ) * + 63 AS col2
----
-189

skipif mysql # not compatible
query I rowsort label-1137
SELECT + CAST ( + - 3 AS INTEGER ) * + 63 AS col2
----
-189

query I rowsort
SELECT - - 62 * + NULLIF ( 58, - + 24 * + 92 + + 44 + 35 - - 42 + - + 66 * + 17 ) col2
----
3596

query II rowsort
SELECT + - ( - 2 ), - 80 * - - ( - 29 ) * 95 AS col1
----
2
220400

query I rowsort
SELECT + - 76 + - + 29
----
-105

onlyif mysql # DIV for integer division: 
query II rowsort label-1141
SELECT - - COALESCE ( - 22, + 58 ) DIV + + 33 * + 84, - 1 AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-1141
SELECT - - COALESCE ( - 22, + 58 ) / + + 33 * + 84, - 1 AS col1
----
0
-1

query I rowsort
SELECT 27 * - 32 + - 17 AS col0
----
-881

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1143
SELECT - COUNT( * ) DIV + - 13, - ( + - 16 ) * 1 + + + 75 AS col0
----
0
91

skipif mysql # not compatible
query II rowsort label-1143
SELECT - COUNT ( * ) / + - 13, - ( + - 16 ) * 1 + + + 75 AS col0
----
0
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1144
SELECT + 67 DIV COALESCE ( + COALESCE ( - - COUNT( * ), - + 32 + + - COUNT( * ) ), + + AVG ( - + 72 ) ) + + 65 + MAX( - 58 ) + 8 * - + 9 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1144
SELECT + 67 / COALESCE ( + COALESCE ( - - COUNT ( * ), - + 32 + + - COUNT ( * ) ), + + AVG ( - + 72 ) ) + + 65 + MAX ( - 58 ) + 8 * - + 9 AS col0
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT - - 61 + CASE 24 WHEN - 99 + CASE - + 96 WHEN + 18 THEN - - COUNT( * ) WHEN 3 + + - 85 THEN - NULLIF ( - 45, - 34 * 13 + - + ( + 65 ) ) WHEN MIN( DISTINCT 74 ) + MAX( 97 ) THEN 0 END * + 18 * + - 55 * 73 * - COALESCE ( 4, - CASE + 97 WHEN - 12 THEN ( CASE + 0 WHEN + 25 * - COUNT( * ) + - 96 THEN + 96 * 65 + - 68 WHEN 4 * COUNT( * ) THEN COUNT( * ) - - 18 ELSE NULL END ) ELSE NULL END ) THEN + 85 * 32 WHEN 63 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1146
SELECT - - 61 + CASE 24 WHEN - 99 + CASE - + 96 WHEN + 18 THEN - - COUNT ( * ) WHEN 3 + + - 85 THEN - NULLIF ( - 45, - 34 * 13 + - + ( + 65 ) ) WHEN MIN ( DISTINCT 74 ) + MAX ( 97 ) THEN 0 END * + 18 * + - 55 * 73 * - COALESCE ( 4, - CASE + 97 WHEN - 12 THEN ( CASE + 0 WHEN + 25 * - COUNT ( * ) + - 96 THEN + 96 * 65 + - 68 WHEN 4 * COUNT ( * ) THEN COUNT ( * ) - - 18 ELSE NULL END ) ELSE NULL END ) THEN + 85 * 32 WHEN 63 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1147
SELECT + CASE 35 WHEN + 59 + - COUNT( * ) THEN NULL ELSE - 82 + + 11 END * + 64 - - - MIN( ALL CAST( NULL AS SIGNED ) ) + + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1147
SELECT + CASE 35 WHEN + 59 + - COUNT ( * ) THEN NULL ELSE - 82 + + 11 END * + 64 - - - MIN ( ALL CAST ( NULL AS INTEGER ) ) + + 15 AS col2
----
NULL

query I rowsort
SELECT - - ( + 16 ) * - - NULLIF ( + - 98, + - ( - + 7 ) ) - 86
----
-1654

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT ALL - 62 * - 82 + + ( - 34 ) - - + ( 53 ) + 43 DIV 30 * 57 + 32 - 5 + 26 + - 73 * + + 26
----
3315

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL - 62 * - 82 + + ( - 34 ) - - + ( 53 ) + 43 / 30 * 57 + 32 - 5 + 26 + - 73 * + + 26
----
3315

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT DISTINCT COUNT( * ) * - 13 + - COUNT( + - 62 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT COUNT ( * ) * - 13 + - COUNT ( + - 62 ) AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1152
SELECT ALL - 33 * + COUNT( * ) + + + 74 DIV - 64 + - ( 51 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL - 33 * + COUNT ( * ) + + + 74 / - 64 + - ( 51 ) AS col1
----
-85

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1154
SELECT + CAST( - 45 AS SIGNED ) + + 22 + + - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-1154
SELECT + CAST ( - 45 AS INTEGER ) + + 22 + + - COUNT ( * )
----
-24

query I rowsort
SELECT ALL + 1 * - ( 40 ) AS col1
----
-40

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1157
SELECT - 45 AS col2, 47 * 20 * + - COUNT( * )
----
-45
-940

skipif mysql # not compatible
query II rowsort label-1157
SELECT - 45 AS col2, 47 * 20 * + - COUNT ( * )
----
-45
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT - CASE - 10 WHEN + + COUNT( ALL ( + COALESCE ( 36, - 69, - - 85 + ( + + 31 ) ) ) ) THEN ( + 1 ) WHEN - 3 * + + NULLIF ( 96, - 91 ) + - + 85 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1158
SELECT - CASE - 10 WHEN + + COUNT ( ALL ( + COALESCE ( 36, - 69, - - 85 + ( + + 31 ) ) ) ) THEN ( + 1 ) WHEN - 3 * + + NULLIF ( 96, - 91 ) + - + 85 THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT + 41 * 48
----
1968

onlyif mysql # aggregate syntax: 
query II rowsort label-1161
SELECT 47 AS col2, + 8 * + COUNT( + + 55 ) AS col0
----
47
8

skipif mysql # not compatible
query II rowsort label-1161
SELECT 47 AS col2, + 8 * + COUNT ( + + 55 ) AS col0
----
47
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1162
SELECT ALL 56 AS col0, + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
56
-1

skipif mysql # not compatible
query II rowsort label-1162
SELECT ALL 56 AS col0, + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
56
-1

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1165
SELECT ALL 17 DIV 7
----
2

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL 17 / 7
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1166
SELECT + 81 * - NULLIF ( COUNT( * ), - 1 + - + 48 * CAST( NULL AS SIGNED ) ) DIV + 91 * 22 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1166
SELECT + 81 * - NULLIF ( COUNT ( * ), - 1 + - + 48 * CAST ( NULL AS INTEGER ) ) / + 91 * 22 AS col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1168
SELECT ALL 63 DIV 71 * - 26 * 21
----
0

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL 63 / 71 * - 26 * 21
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1169
SELECT - 69 DIV - 16
----
4

skipif mysql # not compatible
query I rowsort label-1169
SELECT - 69 / - 16
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT + 75 + - COUNT( + 48 ) * - 21 + + - 71
----
25

skipif mysql # not compatible
query I rowsort label-1170
SELECT + 75 + - COUNT ( + 48 ) * - 21 + + - 71
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1171
SELECT ALL 95 + - 48 + + 72 DIV COUNT( * ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL 95 + - 48 + + 72 / COUNT ( * ) AS col0
----
119

query I rowsort
SELECT + + 47 - - 86
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-1173
SELECT ALL 61 + + 38 - + 43 AS col0, - MAX( ALL - + 78 ) + 61 * COUNT( * )
----
56
139

skipif mysql # not compatible
query II rowsort label-1173
SELECT ALL 61 + + 38 - + 43 AS col0, - MAX ( ALL - + 78 ) + 61 * COUNT ( * )
----
56
139

onlyif mysql # aggregate syntax: 
query II rowsort label-1174
SELECT + - 29, COUNT( * ) * + 48 AS col0
----
-29
48

skipif mysql # not compatible
query II rowsort label-1174
SELECT + - 29, COUNT ( * ) * + 48 AS col0
----
-29
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1175
SELECT ALL COUNT( * ) DIV + 33 + + + MIN( + NULLIF ( - + ( + 75 ), + 6 - 3 ) ) + - 7 + + - 54 AS col2
----
-136

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL COUNT ( * ) / + 33 + + + MIN ( + NULLIF ( - + ( + 75 ), + 6 - 3 ) ) + - 7 + + - 54 AS col2
----
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT ALL 73 DIV 37 DIV 50 + - 38 + 52
----
14

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL 73 / 37 / 50 + - 38 + 52
----
14

query I rowsort
SELECT ALL + COALESCE ( 12, + 75, + + 94 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT + - 90 * + ( - 8 ) + MIN( ALL - + 89 )
----
631

skipif mysql # not compatible
query I rowsort label-1178
SELECT + - 90 * + ( - 8 ) + MIN ( ALL - + 89 )
----
631

query II rowsort
SELECT + 50 AS col1, + 68
----
50
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1180
SELECT ALL + 15 DIV + 60 * + 23 + 29 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL + 15 / + 60 * + 23 + 29 AS col1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-1181
SELECT - COUNT( * ) AS col1, - 10 * - 23 AS col1
----
-1
230

skipif mysql # not compatible
query II rowsort label-1181
SELECT - COUNT ( * ) AS col1, - 10 * - 23 AS col1
----
-1
230

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT ALL 56 DIV - NULLIF ( - - 44, 79 * - - 29 * + 7 ) + 47 * + 35
----
1644

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL 56 / - NULLIF ( - - 44, 79 * - - 29 * + 7 ) + 47 * + 35
----
1644

query I rowsort
SELECT + 94 * 46 AS col2
----
4324

query I rowsort
SELECT - 64 * + 8 + 19 col2
----
-493

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1186
SELECT ALL + NULLIF ( + + 92, - ( - CASE - 99 WHEN - 11 THEN ( + + COALESCE ( + 55, + 20 ) ) WHEN + CASE + - 33 WHEN - NULLIF ( - - 27, COUNT( * ) ) THEN - 0 / - CASE + NULLIF ( + 65, - 11 * + COUNT( * ) ) WHEN + 6 - 89 THEN + 46 END + 52 + + MAX( + - 54 ) * + 53 * + COALESCE ( - 80, CAST( - AVG ( - 60 ) AS SIGNED ) ) * 83 + - ( + ( 92 ) ) WHEN 50 + COALESCE ( + 47 + + 75, 94 + - 69 ) * 29 THEN + 49 END THEN NULL ELSE NULL END ) + 44 * 12 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL + NULLIF ( + + 92, - ( - CASE - 99 WHEN - 11 THEN ( + + COALESCE ( + 55, + 20 ) ) WHEN + CASE + - 33 WHEN - NULLIF ( - - 27, COUNT ( * ) ) THEN - 0 / - CASE + NULLIF ( + 65, - 11 * + COUNT ( * ) ) WHEN + 6 - 89 THEN + 46 END + 52 + + MAX ( + - 54 ) * + 53 * + COALESCE ( - 80, CAST ( - AVG ( - 60 ) AS INTEGER ) ) * 83 + - ( + ( 92 ) ) WHEN 50 + COALESCE ( + 47 + + 75, 94 + - 69 ) * 29 THEN + 49 END THEN NULL ELSE NULL END ) + 44 * 12 ) AS col0
----
92

query I rowsort
SELECT ALL - 85 * + 23
----
-1955

query I rowsort
SELECT ALL 91 - - + 35 * 15 * 1 col2
----
616

query I rowsort
SELECT DISTINCT 95 - 74
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1190
SELECT DISTINCT - + CAST( - 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT - + CAST ( - 3 AS INTEGER )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT + 44 - + 4 * - + CAST( - + 48 AS SIGNED )
----
-148

skipif mysql # not compatible
query I rowsort label-1191
SELECT + 44 - + 4 * - + CAST ( - + 48 AS INTEGER )
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT 80 * - MIN( + 11 ) * - 2 AS col0
----
1760

skipif mysql # not compatible
query I rowsort label-1192
SELECT 80 * - MIN ( + 11 ) * - 2 AS col0
----
1760

query I rowsort
SELECT ALL - 78 * - - 40 AS col1
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT COUNT( - 58 ) * + - 21 / - + CASE + 15 WHEN + 75 * ( + - ( - 12 ) ) * + + 71 + + 9 + COALESCE ( - 60, - 8 + - CASE + - 43 WHEN 11 / - - 3 * 37 - - + 48 THEN + 73 END + + - 55 * - 35, - + 63 ) + - 89 * - 97 THEN + SUM( + - 11 ) WHEN - + 55 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1194
SELECT COUNT ( - 58 ) * + - 21 / - + CASE + 15 WHEN + 75 * ( + - ( - 12 ) ) * + + 71 + + 9 + COALESCE ( - 60, - 8 + - CASE + - 43 WHEN 11 / - - 3 * 37 - - + 48 THEN + 73 END + + - 55 * - 35, - + 63 ) + - 89 * - 97 THEN + SUM ( + - 11 ) WHEN - + 55 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT 70 * 92
----
6440

onlyif mysql # DIV for integer division: 
query I rowsort label-1197
SELECT ALL - 42 DIV + ( + - 57 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL - 42 / + ( + - 57 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1198
SELECT 77 + - 65 + + 93 + + 4 * NULLIF ( - 46, - 54 - + 23 + - 95 + + - 93 + - 9 + - ( + 1 ) * - 25 ) DIV - CAST( - MIN( DISTINCT - - 14 ) AS SIGNED ) + 47 + + + 89 AS col1, - 77
----
228
-77

skipif mysql # not compatible
query II rowsort label-1198
SELECT 77 + - 65 + + 93 + + 4 * NULLIF ( - 46, - 54 - + 23 + - 95 + + - 93 + - 9 + - ( + 1 ) * - 25 ) / - CAST ( - MIN ( DISTINCT - - 14 ) AS INTEGER ) + 47 + + + 89 AS col1, - 77
----
228
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1199
SELECT + 22 * 39 DIV + 78 + - 23
----
-12

skipif mysql # not compatible
query I rowsort label-1199
SELECT + 22 * 39 / + 78 + - 23
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1200
SELECT 96 + + + 47 DIV - 94 col1
----
96

skipif mysql # not compatible
query I rowsort label-1200
SELECT 96 + + + 47 / - 94 col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1201
SELECT ALL 76 * 63 AS col0, CASE WHEN NOT NULL >= NULL THEN COUNT( * ) WHEN NOT NULL < NULL THEN NULL ELSE NULL END
----
4788
NULL

skipif mysql # not compatible
query II rowsort label-1201
SELECT ALL 76 * 63 AS col0, CASE WHEN NOT NULL >= NULL THEN COUNT ( * ) WHEN NOT NULL < NULL THEN NULL ELSE NULL END
----
4788
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-1202
SELECT COUNT( * ) + - - 40 - - 70 + + - 41 AS col1, ( + MAX( + + 85 ) ), 94 AS col1
----
70
85
94

skipif mysql # not compatible
query III rowsort label-1202
SELECT COUNT ( * ) + - - 40 - - 70 + + - 41 AS col1, ( + MAX ( + + 85 ) ), 94 AS col1
----
70
85
94

query II rowsort
SELECT ALL - 44 * + - 12 AS col1, + 83 * - - 57
----
528
4731

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT 11 + COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1205
SELECT 11 + COUNT ( * ) AS col0
----
12

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1207
SELECT DISTINCT - 74 + - - 12 - - 69 DIV + 14 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-1207
SELECT DISTINCT - 74 + - - 12 - - 69 / + 14 AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1208
SELECT ALL + 99 + + + CAST( NULL AS SIGNED ) + - ( - 91 ) / + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL + 99 + + + CAST ( NULL AS INTEGER ) + - ( - 91 ) / + 80
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1209
SELECT MAX( + 30 ) AS col0, - 46 * 45
----
30
-2070

skipif mysql # not compatible
query II rowsort label-1209
SELECT MAX ( + 30 ) AS col0, - 46 * 45
----
30
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT + ( COUNT( * ) ) + + - 56 col0
----
-55

skipif mysql # not compatible
query I rowsort label-1210
SELECT + ( COUNT ( * ) ) + + - 56 col0
----
-55

query I rowsort
SELECT 23 * + - ( 98 ) * + 74 - 92
----
-166888

query I rowsort
SELECT DISTINCT - 47 * + + 28
----
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL 22 * - MIN( + 82 ) / - 26 - - CASE - COUNT( 45 ) WHEN 78 THEN + 8 + 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL 22 * - MIN ( + 82 ) / - 26 - - CASE - COUNT ( 45 ) WHEN 78 THEN + 8 + 75 END
----
NULL

query I rowsort
SELECT ALL - 78 - - 71
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1215
SELECT + 32 DIV + 19 - 32 + - COUNT( * ) * + ( + + 33 ) + + 22 + + - 39 * + + COUNT( * ) * - + 79 * + + 26 + + 40 * + 63 * - 37 * - 41 * - + 15 - - 61 AS col1
----
-57262475

skipif mysql # not compatible
query I rowsort label-1215
SELECT + 32 / + 19 - 32 + - COUNT ( * ) * + ( + + 33 ) + + 22 + + - 39 * + + COUNT ( * ) * - + 79 * + + 26 + + 40 * + 63 * - 37 * - 41 * - + 15 - - 61 AS col1
----
-57262475

query I rowsort
SELECT ALL - 98 - - 35
----
-63

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1218
SELECT - 20 DIV 98 DIV - 76 + 65 + + 19 AS col1, 32 + - COALESCE ( + COALESCE ( + CASE 21 WHEN - 81 THEN NULL ELSE - COUNT( * ) + + - CAST( - - 45 AS SIGNED ) END, - + MAX( ALL 22 ) ), - - COUNT( * ) * - 51 ) - - 73
----
84
151

skipif mysql # not compatible
query II rowsort label-1218
SELECT - 20 / 98 / - 76 + 65 + + 19 AS col1, 32 + - COALESCE ( + COALESCE ( + CASE 21 WHEN - 81 THEN NULL ELSE - COUNT ( * ) + + - CAST ( - - 45 AS INTEGER ) END, - + MAX ( ALL 22 ) ), - - COUNT ( * ) * - 51 ) - - 73
----
84
151

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

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

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

query I rowsort
SELECT 61 * - 15 * + + 14 AS col1
----
-12810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1222
SELECT NULLIF ( - + 11, - CAST( - 7 AS SIGNED ) ) * + - 22 + - COALESCE ( AVG ( ALL 87 ), 54 ) + + + CASE 87 WHEN - COUNT( ALL - 26 ) THEN 90 - + 38 * + 57 + + 48 - + - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT NULLIF ( - + 11, - CAST ( - 7 AS INTEGER ) ) * + - 22 + - COALESCE ( AVG ( ALL 87 ), 54 ) + + + CASE 87 WHEN - COUNT ( ALL - 26 ) THEN 90 - + 38 * + 57 + + 48 - + - 78 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1223
SELECT 67 DIV - - 17
----
3

skipif mysql # not compatible
query I rowsort label-1223
SELECT 67 / - - 17
----
3

query I rowsort
SELECT 3 * - - 85
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1225
SELECT - 18 * - 36 * + + MAX( 68 ) + - 91 / + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1225
SELECT - 18 * - 36 * + + MAX ( 68 ) + - 91 / + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT DISTINCT 89 DIV + + 56
----
1

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT 89 / + + 56
----
1

query I rowsort
SELECT ALL - 47 * - 46
----
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT MAX( 46 ) * - - 2
----
92

skipif mysql # not compatible
query I rowsort label-1228
SELECT MAX ( 46 ) * - - 2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT 5 * + 46 * SUM( DISTINCT + 37 )
----
8510

skipif mysql # not compatible
query I rowsort label-1229
SELECT 5 * + 46 * SUM ( DISTINCT + 37 )
----
8510

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL - SUM( - - 97 ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL - SUM ( - - 97 ) col2
----
-97

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

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT COUNT ( * ) + + 12 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1232
SELECT 31 * + CASE - 62 WHEN COUNT( * ) THEN NULL ELSE - NULLIF ( - 68, - + NULLIF ( CAST( NULL AS SIGNED ), + CAST( 84 AS SIGNED ) + - + 31 ) ) * + 79 END
----
166532

skipif mysql # not compatible
query I rowsort label-1232
SELECT 31 * + CASE - 62 WHEN COUNT ( * ) THEN NULL ELSE - NULLIF ( - 68, - + NULLIF ( CAST ( NULL AS INTEGER ), + CAST ( 84 AS INTEGER ) + - + 31 ) ) * + 79 END
----
166532

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL + 12 + + MAX( + 85 ) + + 48 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL + 12 + + MAX ( + 85 ) + + 48 AS col1
----
145

query I rowsort
SELECT DISTINCT + ( - 4 ) + 85 AS col1
----
81

query II rowsort
SELECT 15 AS col1, - 0
----
15
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT + MIN( ALL + - 64 ) * + + 29 + - 40 AS col0
----
-1896

skipif mysql # not compatible
query I rowsort label-1236
SELECT + MIN ( ALL + - 64 ) * + + 29 + - 40 AS col0
----
-1896

query I rowsort
SELECT ALL + + 93 + - 48
----
45

query I rowsort
SELECT DISTINCT - + 31 * + - 23
----
713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1239
SELECT DISTINCT - NULLIF ( 37, - 29 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT - NULLIF ( 37, - 29 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 31 + - + 94
----
-63

query I rowsort
SELECT 89 + + 35
----
124

query I rowsort
SELECT ALL + - 1 - + + 20
----
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1243
SELECT DISTINCT - CASE - 70 WHEN - - 4 THEN 68 + - 71 * + 20 WHEN 95 * - + 22 THEN - ( + + CASE + AVG ( 86 ) WHEN + COUNT( ALL + 86 ) THEN - 4 WHEN COALESCE ( - COUNT( * ), MAX( ALL - 36 ), NULLIF ( - MIN( DISTINCT CAST( NULL AS DECIMAL ) ), + + 7 + + 33 * - 62 ), - ( - COUNT( ALL - 81 ) ) / - 67 ) THEN + - ( 51 ) END ) + + - ( - + 36 ) + + ( 89 ) ELSE NULL END * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT - CASE - 70 WHEN - - 4 THEN 68 + - 71 * + 20 WHEN 95 * - + 22 THEN - ( + + CASE + AVG ( 86 ) WHEN + COUNT ( ALL + 86 ) THEN - 4 WHEN COALESCE ( - COUNT ( * ), MAX ( ALL - 36 ), NULLIF ( - MIN ( DISTINCT CAST ( NULL AS REAL ) ), + + 7 + + 33 * - 62 ), - ( - COUNT ( ALL - 81 ) ) / - 67 ) THEN + - ( 51 ) END ) + + - ( - + 36 ) + + ( 89 ) ELSE NULL END * 68
----
NULL

query I rowsort
SELECT - - 22 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT - 67 - MAX( ALL - 24 ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-1245
SELECT - 67 - MAX ( ALL - 24 ) col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT ALL CASE + + COUNT( * ) WHEN ( - 1 ) THEN 75 WHEN + 14 / 37 - + 7 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL CASE + + COUNT ( * ) WHEN ( - 1 ) THEN 75 WHEN + 14 / 37 - + 7 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1247
SELECT ALL + - 72 * + + 44 DIV - - COUNT( * ) col0, - 75 * COUNT( * )
----
-3168
-75

skipif mysql # not compatible
query II rowsort label-1247
SELECT ALL + - 72 * + + 44 / - - COUNT ( * ) col0, - 75 * COUNT ( * )
----
-3168
-75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1249
SELECT ALL + 68 DIV ( 9 ) - - + 59 + - COALESCE ( + 88, - 30 )
----
-22

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL + 68 / ( 9 ) - - + 59 + - COALESCE ( + 88, - 30 )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-1250
SELECT - + 63 * 41 * - + 27 AS col0, + COALESCE ( - SUM( 17 ), - 23 + 20, - 52 ) - - 12 + - + 10 + + 29 * + 40 - 75
----
69741
1070

skipif mysql # not compatible
query II rowsort label-1250
SELECT - + 63 * 41 * - + 27 AS col0, + COALESCE ( - SUM ( 17 ), - 23 + 20, - 52 ) - - 12 + - + 10 + + 29 * + 40 - 75
----
69741
1070

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

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

query I rowsort
SELECT - 70 * 34 * + 18
----
-42840

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1254
SELECT - - CASE + - 63 WHEN 31 - + - 87 THEN + 24 WHEN + + ( 32 ) * 15 * - 57 - ( CAST( NULL AS SIGNED ) ) - - 23 THEN NULL ELSE 50 END - 4 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1254
SELECT - - CASE + - 63 WHEN 31 - + - 87 THEN + 24 WHEN + + ( 32 ) * 15 * - 57 - ( CAST ( NULL AS INTEGER ) ) - - 23 THEN NULL ELSE 50 END - 4 AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1255
SELECT - 19 * - CASE - 12 WHEN + COUNT( * ) THEN - MIN( - - ( ( 21 ) ) ) + + + 34 END AS col2, - ( COUNT( * ) )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-1255
SELECT - 19 * - CASE - 12 WHEN + COUNT ( * ) THEN - MIN ( - - ( ( 21 ) ) ) + + + 34 END AS col2, - ( COUNT ( * ) )
----
NULL
-1

query I rowsort
SELECT 42 * + 81 - - 87 * + - 62 col1
----
-1992

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT CASE - MIN( - 6 ) WHEN + 68 THEN NULL ELSE - + 53 END col1
----
-53

skipif mysql # not compatible
query I rowsort label-1257
SELECT CASE - MIN ( - 6 ) WHEN + 68 THEN NULL ELSE - + 53 END col1
----
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-1258
SELECT DISTINCT 48 * + + 41 AS col2, 24 DIV 90
----
1968
0

skipif mysql # not compatible
query II rowsort label-1258
SELECT DISTINCT 48 * + + 41 AS col2, 24 / 90
----
1968
0

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

skipif mysql # not compatible
query I rowsort label-1259
SELECT + CAST ( NULL AS REAL ) * 66
----
NULL

query I rowsort
SELECT + 82 - + - 98 AS col0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT - CASE - 15 WHEN + 81 THEN 56 WHEN - NULLIF ( - + 91, + COUNT( * ) * + + 1 - + 44 ) * + 35 + + 6 THEN - - 74 WHEN 6 THEN - - 23 ELSE NULL END + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1261
SELECT - CASE - 15 WHEN + 81 THEN 56 WHEN - NULLIF ( - + 91, + COUNT ( * ) * + + 1 - + 44 ) * + 35 + + 6 THEN - - 74 WHEN 6 THEN - - 23 ELSE NULL END + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL + 38 * - - COUNT( * ) * - + 25 * + 12 + ( - COUNT( * ) )
----
-11401

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL + 38 * - - COUNT ( * ) * - + 25 * + 12 + ( - COUNT ( * ) )
----
-11401

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT - 69 * - + COUNT( * ) + - 25
----
44

skipif mysql # not compatible
query I rowsort label-1266
SELECT - 69 * - + COUNT ( * ) + - 25
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT 17 * - + 24 + MAX( - 29 )
----
-437

skipif mysql # not compatible
query I rowsort label-1267
SELECT 17 * - + 24 + MAX ( - 29 )
----
-437

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1268
SELECT ALL 5 + 79 DIV - SUM( DISTINCT + 19 ) AS col1, - 84 AS col0
----
1
-84

skipif mysql # not compatible
query II rowsort label-1268
SELECT ALL 5 + 79 / - SUM ( DISTINCT + 19 ) AS col1, - 84 AS col0
----
1
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1269
SELECT ALL + 81 + + ( COALESCE ( - + CAST( NULL AS SIGNED ), - - NULLIF ( - 36, 97 * + COUNT( * ) ) + + + 81 DIV - 21, + COUNT( * ) ) )
----
42

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL + 81 + + ( COALESCE ( - + CAST ( NULL AS INTEGER ), - - NULLIF ( - 36, 97 * + COUNT ( * ) ) + + + 81 / - 21, + COUNT ( * ) ) )
----
42

query I rowsort
SELECT ALL 57 + 29
----
86

query II rowsort
SELECT - 71 + + - ( 44 ) * 61 AS col0, ( 24 )
----
-2755
24

query I rowsort
SELECT DISTINCT + 72 - - ( 27 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT ALL ( 42 ) * + - 54 * - MIN( + 80 ) AS col2
----
181440

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL ( 42 ) * + - 54 * - MIN ( + 80 ) AS col2
----
181440

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

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

query I rowsort
SELECT - 98 + + 57 + - 16 AS col2
----
-57

query II rowsort
SELECT 62 AS col1, ( + 75 )
----
62
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1277
SELECT + - 58 DIV + - 56
----
1

skipif mysql # not compatible
query I rowsort label-1277
SELECT + - 58 / + - 56
----
1

query I rowsort
SELECT - - 53 * + - 41 AS col2
----
-2173

query I rowsort
SELECT DISTINCT + NULLIF ( + 55, - 65 ) AS col0
----
55

query II rowsort
SELECT ALL - 73 col0, + 49 AS col2
----
-73
49

query I rowsort
SELECT + 40 + - 62 + 98 AS col2
----
76

query II rowsort
SELECT ALL 53 AS col2, - 34 AS col1
----
53
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT - MIN( + COALESCE ( 25, - - 34 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-1283
SELECT - MIN ( + COALESCE ( 25, - - 34 ) )
----
-25

query I rowsort
SELECT - + 15 + ( - + 24 ) + 80 * - + 88
----
-7079

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

skipif mysql # not compatible
query I rowsort label-1285
SELECT - - COUNT ( 72 ) * + 5 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT - - SUM( DISTINCT - 8 ) * 96 AS col2
----
-768

skipif mysql # not compatible
query I rowsort label-1286
SELECT - - SUM ( DISTINCT - 8 ) * 96 AS col2
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT ALL + 46 * - + MIN( DISTINCT - 26 ) AS col0
----
1196

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL + 46 * - + MIN ( DISTINCT - 26 ) AS col0
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT - - ( + 65 ) + - - ( + COUNT( + - 53 ) ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-1288
SELECT - - ( + 65 ) + - - ( + COUNT ( + - 53 ) ) AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1289
SELECT CAST( - - 8 AS SIGNED ), - 51 AS col1
----
8
-51

skipif mysql # not compatible
query II rowsort label-1289
SELECT CAST ( - - 8 AS INTEGER ), - 51 AS col1
----
8
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT 47 * + 30 * + 1 + + - ( + + COUNT( * ) ) + - 83 * + 65
----
-3986

skipif mysql # not compatible
query I rowsort label-1290
SELECT 47 * + 30 * + 1 + + - ( + + COUNT ( * ) ) + - 83 * + 65
----
-3986

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1292
SELECT ALL - 71 DIV - 27 + + COUNT( * ) + - 57 * + + 93 * 70 * + 6 + 25
----
-2226392

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL - 71 / - 27 + + COUNT ( * ) + - 57 * + + 93 * 70 * + 6 + 25
----
-2226392

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1294
SELECT DISTINCT - 5 DIV + - 99 * + COUNT( * ) + + + 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT - 5 / + - 99 * + COUNT ( * ) + + + 15 AS col0
----
15

query I rowsort
SELECT + 59 + - 68
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1296
SELECT ALL + 94 DIV 68 + + COUNT( * ) * + 44 - - ( 78 ) AS col2
----
123

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL + 94 / 68 + + COUNT ( * ) * + 44 - - ( 78 ) AS col2
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1297
SELECT 84 * - + 73 * + COALESCE ( - 45, 4, + 59 DIV + CASE - 14 WHEN + + 56 * - - 17 * - COUNT( * ) THEN + + 99 + ( 12 ) + - + 75 * CAST( NULL AS SIGNED ) * + + 72 * - 76 * MAX( - 28 ) - - MAX( ALL + 87 ) WHEN - COALESCE ( - 54, - 10 + + 26 * + + 56 * - NULLIF ( 12, + CASE + - 27 WHEN - - 56 THEN 44 WHEN + + 4 THEN NULL WHEN + 7 THEN NULL WHEN 19 THEN - 82 * - 95 + - COALESCE ( - 83, + 92 + 78, - 7 * + 68 + 93 ) END ), COALESCE ( 66, - COALESCE ( COALESCE ( COUNT( * ), + NULLIF ( 55, - 85 ) + COUNT( * ) ), 18 + - 12 ), - 8 ) ) - + 98 THEN NULL END ) + + 68
----
276008

skipif mysql # not compatible
query I rowsort label-1297
SELECT 84 * - + 73 * + COALESCE ( - 45, 4, + 59 / + CASE - 14 WHEN + + 56 * - - 17 * - COUNT ( * ) THEN + + 99 + ( 12 ) + - + 75 * CAST ( NULL AS INTEGER ) * + + 72 * - 76 * MAX ( - 28 ) - - MAX ( ALL + 87 ) WHEN - COALESCE ( - 54, - 10 + + 26 * + + 56 * - NULLIF ( 12, + CASE + - 27 WHEN - - 56 THEN 44 WHEN + + 4 THEN NULL WHEN + 7 THEN NULL WHEN 19 THEN - 82 * - 95 + - COALESCE ( - 83, + 92 + 78, - 7 * + 68 + 93 ) END ), COALESCE ( 66, - COALESCE ( COALESCE ( COUNT ( * ), + NULLIF ( 55, - 85 ) + COUNT ( * ) ), 18 + - 12 ), - 8 ) ) - + 98 THEN NULL END ) + + 68
----
276008

query II rowsort
SELECT + ( + - 94 ), + 96 AS col2
----
-94
96

query I rowsort
SELECT 21 * + 73 + - 56 * - - 24 col2
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1300
SELECT ALL - CAST( - CAST( 49 AS SIGNED ) AS SIGNED ) * - + 99 + 89 + 40
----
-4722

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL - CAST ( - CAST ( 49 AS INTEGER ) AS INTEGER ) * - + 99 + 89 + 40
----
-4722

query I rowsort
SELECT - 23 * + 38
----
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT 12 * - CASE + - 68 WHEN + 74 + ( - + ( 62 ) ) THEN - 79 + + + 47 WHEN + 40 THEN NULL ELSE NULL END * - - 70 + - - COUNT( * ) * + 5 + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-1302
SELECT 12 * - CASE + - 68 WHEN + 74 + ( - + ( 62 ) ) THEN - 79 + + + 47 WHEN + 40 THEN NULL ELSE NULL END * - - 70 + - - COUNT ( * ) * + 5 + + 77
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1303
SELECT ALL CASE - 68 WHEN 18 * + 18 THEN + 7 ELSE - + ( 11 ) END * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL CASE - 68 WHEN 18 * + 18 THEN + 7 ELSE - + ( 11 ) END * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 99 * - 42
----
4158

query I rowsort
SELECT ALL ( + - 76 ) * - 13
----
988

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

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

query I rowsort
SELECT ALL + NULLIF ( + 3, 21 * 66 - 41 ) * - - 73
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT DISTINCT - ( + NULLIF ( + - 56, - 83 ) ) * - - 5 + + 98 * + 47 - 68 DIV 10 AS col0
----
4880

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT - ( + NULLIF ( + - 56, - 83 ) ) * - - 5 + + 98 * + 47 - 68 / 10 AS col0
----
4880

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT COALESCE ( + 36, - COUNT( * ), - 89 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1309
SELECT COALESCE ( + 36, - COUNT ( * ), - 89 ) AS col2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1310
SELECT ALL + 71 * - 31 * + + 62 - - 88 * - 53 * 33 - 13 + - 15 col1, + 3 * SUM( 64 ) DIV + COUNT( + ( - - 21 ) )
----
-290402
192

skipif mysql # not compatible
query II rowsort label-1310
SELECT ALL + 71 * - 31 * + + 62 - - 88 * - 53 * 33 - 13 + - 15 col1, + 3 * SUM ( 64 ) / + COUNT ( + ( - - 21 ) )
----
-290402
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT - - CASE - 59 WHEN - - 55 / - ( + COUNT( * ) ) THEN - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1311
SELECT - - CASE - 59 WHEN - - 55 / - ( + COUNT ( * ) ) THEN - COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1312
SELECT + CAST( + 91 AS SIGNED ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-1312
SELECT + CAST ( + 91 AS INTEGER ) AS col0
----
91

query I rowsort
SELECT + - 62 * 60 AS col0
----
-3720

query I rowsort
SELECT + 92 * - 79 col0
----
-7268

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT + COALESCE ( + SUM( ALL 79 ), + 67 ) - - - 28 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1315
SELECT + COALESCE ( + SUM ( ALL 79 ), + 67 ) - - - 28 AS col2
----
51

query I rowsort
SELECT DISTINCT - ( - + 16 ) * + 85
----
1360

query II rowsort
SELECT ALL 88 * 72 AS col2, + ( - - 12 )
----
6336
12

query I rowsort
SELECT 52 * + - 80
----
-4160

onlyif mysql # DIV for integer division: 
query I rowsort label-1319
SELECT ALL + 90 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL + 90 / 98
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1320
SELECT ALL - + 34 - 73 AS col2, COUNT( * ) * + + 81
----
-107
81

skipif mysql # not compatible
query II rowsort label-1320
SELECT ALL - + 34 - 73 AS col2, COUNT ( * ) * + + 81
----
-107
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT DISTINCT 46 * + - 23 * - COUNT( 55 )
----
1058

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT 46 * + - 23 * - COUNT ( 55 )
----
1058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1322
SELECT - CAST( - SUM( 48 ) AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-1322
SELECT - CAST ( - SUM ( 48 ) AS INTEGER )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1323
SELECT - COALESCE ( + 29, + 28 ) DIV 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1323
SELECT - COALESCE ( + 29, + 28 ) / 80 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1324
SELECT - 61 * - - CAST( NULL AS SIGNED ) * - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1324
SELECT - 61 * - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1
----
NULL

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

query I rowsort
SELECT ALL 35 * - NULLIF ( + 12, ( + 44 ) ) AS col0
----
-420

query I rowsort
SELECT DISTINCT - + 79 + - 28 AS col1
----
-107

query II rowsort
SELECT 1, ( - + 84 ) AS col2
----
1
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1329
SELECT ALL 95 + COUNT( * ) + - CAST( 11 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL 95 + COUNT ( * ) + - CAST ( 11 AS INTEGER )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL + ( - ( - 15 ) ) + - - 1 + + COUNT( * ) - - - MAX( - 64 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL + ( - ( - 15 ) ) + - - 1 + + COUNT ( * ) - - - MAX ( - 64 ) AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1331
SELECT DISTINCT - COALESCE ( 36, - ( + 11 ) - - - 24 + + - 38 * COUNT( * ) - ( - SUM( ALL + CAST( NULL AS SIGNED ) ) ) * CASE + 25 WHEN CAST( NULL AS DECIMAL ) + 57 THEN + 74 - + COUNT( * ) END ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT - COALESCE ( 36, - ( + 11 ) - - - 24 + + - 38 * COUNT ( * ) - ( - SUM ( ALL + CAST ( NULL AS INTEGER ) ) ) * CASE + 25 WHEN CAST ( NULL AS REAL ) + 57 THEN + 74 - + COUNT ( * ) END ) AS col2
----
-36

query II rowsort
SELECT 88, + 63 AS col2
----
88
63

query II rowsort
SELECT 93, 72 + 59 AS col2
----
93
131

query II rowsort
SELECT + 92 AS col2, 45 + + 69 * 47 + - - 92
----
92
3380

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT COUNT( * ) * CASE + 1 WHEN + CASE - - COUNT( * ) WHEN 79 THEN + 80 ELSE + - 31 - - 24 / - COUNT( * ) END / - COUNT( * ) + MIN( - 97 ) THEN NULL WHEN - - COUNT( * ) THEN - 96 ELSE NULL END col1
----
-96

skipif mysql # not compatible
query I rowsort label-1335
SELECT COUNT ( * ) * CASE + 1 WHEN + CASE - - COUNT ( * ) WHEN 79 THEN + 80 ELSE + - 31 - - 24 / - COUNT ( * ) END / - COUNT ( * ) + MIN ( - 97 ) THEN NULL WHEN - - COUNT ( * ) THEN - 96 ELSE NULL END col1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1336
SELECT - COUNT( * ) * - 24 - SUM( DISTINCT + + 47 ) DIV - 54 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1336
SELECT - COUNT ( * ) * - 24 - SUM ( DISTINCT + + 47 ) / - 54 AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1337
SELECT ALL - 53 + CASE - 98 WHEN + 57 * - + 29 THEN NULL WHEN - + 34 THEN - 15 / - - 57 + + ( - 12 ) * COUNT( * ) + + CAST( + + 46 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - 53 + CASE - 98 WHEN + 57 * - + 29 THEN NULL WHEN - + 34 THEN - 15 / - - 57 + + ( - 12 ) * COUNT ( * ) + + CAST ( + + 46 AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1338
SELECT ALL 88 * ( - CAST( 91 AS SIGNED ) )
----
-8008

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL 88 * ( - CAST ( 91 AS INTEGER ) )
----
-8008

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT 21 DIV + NULLIF ( + - 98, + - 33 )
----
0

skipif mysql # not compatible
query I rowsort label-1339
SELECT 21 / + NULLIF ( + - 98, + - 33 )
----
0

query I rowsort
SELECT ALL - 80 + - + 48
----
-128

query I rowsort
SELECT 27 * 96 AS col0
----
2592

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1344
SELECT 31 AS col2, - 60 DIV - 73 AS col2
----
31
0

skipif mysql # not compatible
query II rowsort label-1344
SELECT 31 AS col2, - 60 / - 73 AS col2
----
31
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT 17 * - SUM( + 45 )
----
-765

skipif mysql # not compatible
query I rowsort label-1345
SELECT 17 * - SUM ( + 45 )
----
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1346
SELECT 20 + CAST( NULL AS DECIMAL ) - + 41 * + ( + CAST( NULL AS SIGNED ) ) - ( - 11 ) + + 66 / + - 63 * + + ( - - COUNT( * ) ) - - 34 + - CAST( 41 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1346
SELECT 20 + CAST ( NULL AS REAL ) - + 41 * + ( + CAST ( NULL AS INTEGER ) ) - ( - 11 ) + + 66 / + - 63 * + + ( - - COUNT ( * ) ) - - 34 + - CAST ( 41 AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT DISTINCT - 63 DIV - - 40
----
-1

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT - 63 / - - 40
----
-1

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

skipif mysql # not compatible
query I rowsort label-1348
SELECT 30 + - - 88 + - - COUNT ( * ) AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT 98 + + + COUNT( * ) + + COALESCE ( + 96, 70 ) AS col0
----
195

skipif mysql # not compatible
query I rowsort label-1349
SELECT 98 + + + COUNT ( * ) + + COALESCE ( + 96, 70 ) AS col0
----
195

query II rowsort
SELECT + 97 AS col0, + ( 96 )
----
97
96

query I rowsort
SELECT - 86 * - 13 + - 49 * + - 50 * - + 64 + 43 * - ( + 0 ) * 70 AS col0
----
-155682

onlyif mysql # DIV for integer division: 
query I rowsort label-1352
SELECT DISTINCT - 53 DIV 19 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1352
SELECT DISTINCT - 53 / 19 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-1353
SELECT - ( + 0 ) + 93 AS col2, - 87 + 20 DIV - NULLIF ( + + 84, + - COALESCE ( - COALESCE ( - 41, + 10 ), 62 ) )
----
93
-87

skipif mysql # not compatible
query II rowsort label-1353
SELECT - ( + 0 ) + 93 AS col2, - 87 + 20 / - NULLIF ( + + 84, + - COALESCE ( - COALESCE ( - 41, + 10 ), 62 ) )
----
93
-87

query I rowsort
SELECT ALL - 20 * - 15 * 16 AS col1
----
4800

query I rowsort
SELECT ALL + 61 * + 51 + + 59 AS col1
----
3170

query I rowsort
SELECT DISTINCT + - 52 * - 87 AS col1
----
4524

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT ALL SUM( ALL ( - 75 ) ) + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL SUM ( ALL ( - 75 ) ) + COUNT ( * )
----
-74

query I rowsort
SELECT DISTINCT ( COALESCE ( 93, - 52 ) ) AS col1
----
93

query II rowsort
SELECT DISTINCT + 76 + - + 90 + - - 31, 68 col2
----
17
68

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1363
SELECT ALL + 43 + + + 37 + COUNT( + + 26 ) DIV + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL + 43 + + + 37 + COUNT ( + + 26 ) / + COUNT ( * )
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT 12 - + ( + 99 ) + - - ( + COUNT( * ) ) * + 39 * 71 * 25 * - 20
----
-1384587

skipif mysql # not compatible
query I rowsort label-1365
SELECT 12 - + ( + 99 ) + - - ( + COUNT ( * ) ) * + 39 * 71 * 25 * - 20
----
-1384587

query I rowsort
SELECT DISTINCT 89 + - 93 + - ( + 82 )
----
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1367
SELECT CAST( NULL AS DECIMAL ) + + ( + - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1367
SELECT CAST ( NULL AS REAL ) + + ( + - 66 )
----
NULL

query I rowsort
SELECT ALL 41 + - - 0
----
41

query I rowsort
SELECT 2 + 27 + 26
----
55

onlyif mysql # aggregate syntax: 
query III rowsort label-1370
SELECT DISTINCT + 23 * - COUNT( * ) * + NULLIF ( + + 20, - 24 + - + 39 ) * + - 15 + + 82 + - 73 AS col1, 11 + 85 + 16, + 32 AS col2
----
6909
112
32

skipif mysql # not compatible
query III rowsort label-1370
SELECT DISTINCT + 23 * - COUNT ( * ) * + NULLIF ( + + 20, - 24 + - + 39 ) * + - 15 + + 82 + - 73 AS col1, 11 + 85 + 16, + 32 AS col2
----
6909
112
32

query I rowsort
SELECT DISTINCT NULLIF ( + + 81, - 41 ) * - 5 AS col1
----
-405

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

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT - COUNT ( * ) * + - 28 - 31 AS col0
----
-3

query I rowsort
SELECT ALL - COALESCE ( - 2, - + 91 )
----
2

query I rowsort
SELECT 46 + - 42 * - - 5 * + 95 col0
----
-19904

query I rowsort
SELECT 56 + 12
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1376
SELECT 27 * - - 47, + CASE - + 82 WHEN 19 THEN NULL ELSE + 76 * - COUNT( * ) * - 6 END - + + 35 AS col0
----
1269
421

skipif mysql # not compatible
query II rowsort label-1376
SELECT 27 * - - 47, + CASE - + 82 WHEN 19 THEN NULL ELSE + 76 * - COUNT ( * ) * - 6 END - + + 35 AS col0
----
1269
421

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT SUM( - 46 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1377
SELECT SUM ( - 46 ) AS col1
----
-46

query I rowsort
SELECT + 19 * 31 + - + 38 + + 78 * - 54
----
-3661

query I rowsort
SELECT - 98 * - 97 * - 82 AS col0
----
-779492

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

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

query I rowsort
SELECT DISTINCT 83 * - 78
----
-6474

query I rowsort
SELECT - + 96 * + ( - 74 ) AS col1
----
7104

query I rowsort
SELECT ALL - - 63 * - 12 AS col2
----
-756

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT - 67 * + COUNT( * ) + - - 8 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1385
SELECT - 67 * + COUNT ( * ) + - - 8 AS col2
----
-59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT ALL - - 38 + + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL - - 38 + + COUNT ( * )
----
39

query II rowsort
SELECT ALL - - 75 + + 7, + 3 + + 67 AS col0
----
82
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT - CASE + + 1 WHEN 11 + + - COUNT( * ) THEN - 90 + 0 + - ( 9 ) + + + 80 / - - MAX( DISTINCT + 39 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1389
SELECT - CASE + + 1 WHEN 11 + + - COUNT ( * ) THEN - 90 + 0 + - ( 9 ) + + + 80 / - - MAX ( DISTINCT + 39 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT - 34 - + COUNT( * ) * - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-1390
SELECT - 34 - + COUNT ( * ) * - COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL + + CASE ( + 47 ) WHEN + 9 + - 84 THEN COUNT( * ) ELSE - 55 END * - 53
----
2915

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL + + CASE ( + 47 ) WHEN + 9 + - 84 THEN COUNT ( * ) ELSE - 55 END * - 53
----
2915

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT - + 53 DIV + 47
----
-1

skipif mysql # not compatible
query I rowsort label-1392
SELECT - + 53 / + 47
----
-1

query I rowsort
SELECT ALL + + 46 + + - 29 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT ALL 96 + + + 85 * - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL 96 + + + 85 * - COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT ALL 9 + + + 48 * COUNT( * ) / + - CASE ( 77 ) WHEN - 11 THEN - 25 * + 31 + - + 58 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL 9 + + + 48 * COUNT ( * ) / + - CASE ( 77 ) WHEN - 11 THEN - 25 * + 31 + - + 58 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1396
SELECT ALL - 23 * - 18 col0, + 18 / + CAST( NULL AS SIGNED ) col2
----
414
NULL

skipif mysql # not compatible
query II rowsort label-1396
SELECT ALL - 23 * - 18 col0, + 18 / + CAST ( NULL AS INTEGER ) col2
----
414
NULL

query I rowsort
SELECT DISTINCT ( - 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT + 18 - - - 75 + - - MIN( DISTINCT - 72 ) * + 86 AS col2
----
-6249

skipif mysql # not compatible
query I rowsort label-1398
SELECT + 18 - - - 75 + - - MIN ( DISTINCT - 72 ) * + 86 AS col2
----
-6249

query I rowsort
SELECT ALL 0 - - 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT - 6 * - 81 * + COUNT( * )
----
486

skipif mysql # not compatible
query I rowsort label-1400
SELECT - 6 * - 81 * + COUNT ( * )
----
486

query I rowsort
SELECT DISTINCT ( 25 ) AS col0
----
25

query I rowsort
SELECT ALL 88 * - - 35 AS col1
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT + 94 * + SUM( ALL + 92 )
----
8648

skipif mysql # not compatible
query I rowsort label-1403
SELECT + 94 * + SUM ( ALL + 92 )
----
8648

query I rowsort
SELECT + NULLIF ( + 8, - - 72 )
----
8

query I rowsort
SELECT + 29 * - 88
----
-2552

query I rowsort
SELECT + 40 * 53
----
2120

onlyif mysql # DIV for integer division: 
query I rowsort label-1407
SELECT + 58 DIV - 96 * 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1407
SELECT + 58 / - 96 * 16 AS col2
----
0

query I rowsort
SELECT + NULLIF ( + - 98, + + 52 + - 6 ) AS col0
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1409
SELECT 54 * + SUM( ALL + - 88 ) * - 49 * + 33 * 23 + - 44 * + COALESCE ( - - 94, - 75 * 6 + + 7 + - 87 * + + 26, + 34, - + 27 ) - MIN( 61 ) AS col1, 46 DIV ( + 63 )
----
176727435
0

skipif mysql # not compatible
query II rowsort label-1409
SELECT 54 * + SUM ( ALL + - 88 ) * - 49 * + 33 * 23 + - 44 * + COALESCE ( - - 94, - 75 * 6 + + 7 + - 87 * + + 26, + 34, - + 27 ) - MIN ( 61 ) AS col1, 46 / ( + 63 )
----
176727435
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1410
SELECT - 77 DIV 66 - + 87 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-1410
SELECT - 77 / 66 - + 87 AS col0
----
-88

query II rowsort
SELECT ALL + 91 col2, + 33 AS col0
----
91
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1412
SELECT + 11 * + + COUNT( * ) + + - 44 DIV + 62 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1412
SELECT + 11 * + + COUNT ( * ) + + - 44 / + 62 AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1413
SELECT ALL + + 15 DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL + + 15 / 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL 27 * 83 * COALESCE ( COUNT( ALL 36 ), 96 + - 32, - 19 ) + + + 34 AS col2
----
2275

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL 27 * 83 * COALESCE ( COUNT ( ALL 36 ), 96 + - 32, - 19 ) + + + 34 AS col2
----
2275

query II rowsort
SELECT + - 37 AS col0, + 61 AS col1
----
-37
61

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

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

query I rowsort
SELECT - 65 * - 65 * - - 49 AS col0
----
207025

query I rowsort
SELECT ALL - 71 * - 9 + + 91 AS col1
----
730

query I rowsort
SELECT + - 73 + + 66
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1420
SELECT + 39 * 73 - - 56 + COUNT( * ) + + + 30 * COALESCE ( + 16, 97 DIV 97 - + 39, + - 17 ) * - 24
----
-8616

skipif mysql # not compatible
query I rowsort label-1420
SELECT + 39 * 73 - - 56 + COUNT ( * ) + + + 30 * COALESCE ( + 16, 97 / 97 - + 39, + - 17 ) * - 24
----
-8616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1421
SELECT ALL - 42 * + NULLIF ( - + 41, + CAST( + SUM( - ( - + 20 ) ) AS SIGNED ) + - 27 ) + + + COUNT( * ) + COUNT( - - ( + 61 ) ) * + 44 DIV + 27
----
1724

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL - 42 * + NULLIF ( - + 41, + CAST ( + SUM ( - ( - + 20 ) ) AS INTEGER ) + - 27 ) + + + COUNT ( * ) + COUNT ( - - ( + 61 ) ) * + 44 / + 27
----
1724

onlyif mysql # aggregate syntax: 
query II rowsort label-1422
SELECT - + NULLIF ( ( COALESCE ( 40, - MIN( ALL + 29 ) * COALESCE ( + 76, - 64 ) + 56 + - - 75 ) ), - 59 * + 76 ) col1, + 53 * 25
----
-40
1325

skipif mysql # not compatible
query II rowsort label-1422
SELECT - + NULLIF ( ( COALESCE ( 40, - MIN ( ALL + 29 ) * COALESCE ( + 76, - 64 ) + 56 + - - 75 ) ), - 59 * + 76 ) col1, + 53 * 25
----
-40
1325

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT DISTINCT + 35 + + COALESCE ( 81, + + 41 ) - + COUNT( * ) + - 34
----
81

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT + 35 + + COALESCE ( 81, + + 41 ) - + COUNT ( * ) + - 34
----
81

query I rowsort
SELECT - ( - - 83 )
----
-83

query I rowsort
SELECT ALL + 66 - + 7 * + + 56 * + + 31 * 29 * - 46 col1
----
16210834

onlyif mysql # aggregate syntax: 
query II rowsort label-1426
SELECT - 7 * + 50, 57 * 75 + 71 * COUNT( * ) AS col2
----
-350
4346

skipif mysql # not compatible
query II rowsort label-1426
SELECT - 7 * + 50, 57 * 75 + 71 * COUNT ( * ) AS col2
----
-350
4346

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

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

query I rowsort
SELECT - 83 * + + 90
----
-7470

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT - 0 + - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1429
SELECT - 0 + - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL ( - - 98 ) col2
----
98

query I rowsort
SELECT - 76 * - + ( 3 ) col1
----
228

query I rowsort
SELECT ALL 47 - + 43
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1433
SELECT - 53 * + COUNT( * ) / + + 65 * + NULLIF ( CAST( NULL AS SIGNED ), - - 24 ) * + 17 + COUNT( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1433
SELECT - 53 * + COUNT ( * ) / + + 65 * + NULLIF ( CAST ( NULL AS INTEGER ), - - 24 ) * + 17 + COUNT ( 79 )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1435
SELECT + 46 + - 95 + - 52 * - - 81 * CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col0, + ( + - 47 )
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-1435
SELECT + 46 + - 95 + - 52 * - - 81 * CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col0, + ( + - 47 )
----
NULL
-47

query I rowsort
SELECT - 17 * + 49 * + + 19 AS col2
----
-15827

query I rowsort
SELECT 36 + - - 51
----
87

query I rowsort
SELECT 59 * + 57 + + - 71 AS col2
----
3292

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

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

query II rowsort
SELECT DISTINCT - 94 AS col1, + 83 + + 3
----
-94
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1441
SELECT + 20 AS col0, - 97 + + - 64 * + COUNT( * )
----
20
-161

skipif mysql # not compatible
query II rowsort label-1441
SELECT + 20 AS col0, - 97 + + - 64 * + COUNT ( * )
----
20
-161

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1442
SELECT 38 DIV + CAST( 17 AS SIGNED ) + + + CAST( ( 52 ) AS SIGNED ) col0
----
54

skipif mysql # not compatible
query I rowsort label-1442
SELECT 38 / + CAST ( 17 AS INTEGER ) + + + CAST ( ( 52 ) AS INTEGER ) col0
----
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT - CASE WHEN NOT ( - - 79 ) IS NOT NULL THEN 75 END * + - 23 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1444
SELECT - CASE WHEN NOT ( - - 79 ) IS NOT NULL THEN 75 END * + - 23 * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1445
SELECT + 22 + - 78 * - CAST( - + 90 AS SIGNED ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT + 22 + - 78 * - CAST ( - + 90 AS INTEGER ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT ALL - 83 + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL - 83 + COUNT ( * )
----
-82

query II rowsort
SELECT + 44 col2, + 51 * - CASE - - 96 WHEN + 56 THEN NULL WHEN + 26 THEN 59 WHEN 72 * 85 THEN NULL END
----
44
NULL

query I rowsort
SELECT - 4 * - 52 * - - 5 + + 2 col0
----
1042

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT DISTINCT + CASE 61 WHEN AVG ( ALL - + 11 ) THEN + - 85 - 87 ELSE NULL END + - SUM( ALL + 59 ) + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT + CASE 61 WHEN AVG ( ALL - + 11 ) THEN + - 85 - 87 ELSE NULL END + - SUM ( ALL + 59 ) + + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT - SUM( 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-1451
SELECT - SUM ( 80 )
----
-80

query I rowsort
SELECT ALL 85 + + + 70 col1
----
155

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

skipif mysql # not compatible
query I rowsort label-1453
SELECT 21 * - 10 * + COUNT ( * ) AS col1
----
-210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1454
SELECT ALL + - NULLIF ( 21, - + COUNT( * ) ) + + 10 + - 22 - + NULLIF ( COUNT( DISTINCT - 58 ), + 79 ) + - 23 DIV - CASE 15 WHEN 40 THEN NULL ELSE 95 + + + 55 + - 27 * - 10 * - COALESCE ( - 15, COUNT( * ) * 73 + - 36, + 34 DIV + 29 + - - 63 * + + 11 + - SUM( ALL - 42 ) + - NULLIF ( 27, 60 ) + - + 53 ) + + 66 * - + 10 * 75 END + - + 87 * - - 34
----
-2992

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL + - NULLIF ( 21, - + COUNT ( * ) ) + + 10 + - 22 - + NULLIF ( COUNT ( DISTINCT - 58 ), + 79 ) + - 23 / - CASE 15 WHEN 40 THEN NULL ELSE 95 + + + 55 + - 27 * - 10 * - COALESCE ( - 15, COUNT ( * ) * 73 + - 36, + 34 / + 29 + - - 63 * + + 11 + - SUM ( ALL - 42 ) + - NULLIF ( 27, 60 ) + - + 53 ) + + 66 * - + 10 * 75 END + - + 87 * - - 34
----
-2992

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1456
SELECT ALL 12 / - CAST( NULL AS SIGNED ) * - COUNT( * ) + MAX( ALL - 22 ) + - - 16 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL 12 / - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + MAX ( ALL - 22 ) + - - 16 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1457
SELECT 70 - - COUNT( * ) DIV 64 * - + ( - COUNT( * ) ) * 84 col1
----
70

skipif mysql # not compatible
query I rowsort label-1457
SELECT 70 - - COUNT ( * ) / 64 * - + ( - COUNT ( * ) ) * 84 col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT + 61 + + + COALESCE ( 38, - 37, + - 57 + + + COALESCE ( - 78, - ( - COUNT( * ) ) ) ) + - 68 * + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-1458
SELECT + 61 + + + COALESCE ( 38, - 37, + - 57 + + + COALESCE ( - 78, - ( - COUNT ( * ) ) ) ) + - 68 * + COUNT ( * )
----
31

query I rowsort
SELECT DISTINCT - - ( + + 68 ) AS col1
----
68

query I rowsort
SELECT ALL + 6 - + + 36 AS col1
----
-30

query I rowsort
SELECT + 5 * 38 AS col0
----
190

query II rowsort
SELECT - + 6 AS col1, 28
----
-6
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT + NULLIF ( - 61, COALESCE ( COUNT( * ), + + MIN( - - 55 ) ) + - + 98 * + 38 ) - - 78 + - - 56 + - COALESCE ( - 22, + 10 - - - 4 + + 14 )
----
95

skipif mysql # not compatible
query I rowsort label-1463
SELECT + NULLIF ( - 61, COALESCE ( COUNT ( * ), + + MIN ( - - 55 ) ) + - + 98 * + 38 ) - - 78 + - - 56 + - COALESCE ( - 22, + 10 - - - 4 + + 14 )
----
95

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

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL COUNT ( - + 87 ) * - 29 AS col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1465
SELECT COUNT( * ) - - + 51 + 15 * + + 27 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1465
SELECT COUNT ( * ) - - + 51 + 15 * + + 27 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 74, - + 13 ) * - - 14
----
-1036

query II rowsort
SELECT 40 * + 41 * - 68 AS col2, + 83 + + - 57 * 29 + - + 73 AS col0
----
-111520
-1643

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

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

query I rowsort
SELECT 46 + + 33 * 23 * - + 14 AS col1
----
-10580

query I rowsort
SELECT 49 - + 26 AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1471
SELECT DISTINCT - 18 DIV - 26 DIV COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT - 18 / - 26 / COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT 55 DIV + ( + + 71 ) * - 27 + + + 2 + 72
----
74

skipif mysql # not compatible
query I rowsort label-1472
SELECT 55 / + ( + + 71 ) * - 27 + + + 2 + 72
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT DISTINCT - 18 * - - COUNT( - + 75 )
----
-18

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT - 18 * - - COUNT ( - + 75 )
----
-18

query II rowsort
SELECT ALL - 0 + + 63 AS col0, ( - 6 )
----
63
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1475
SELECT ALL + + 43 + - 99 AS col2, - 83 * + - 73 * COUNT( * ) * 60 * + - 64 col1
----
-56
-23266560

skipif mysql # not compatible
query II rowsort label-1475
SELECT ALL + + 43 + - 99 AS col2, - 83 * + - 73 * COUNT ( * ) * 60 * + - 64 col1
----
-56
-23266560

query I rowsort
SELECT + 48 * + 5 - 25 + 6 * - - 16 * 29 col1
----
2999

query I rowsort
SELECT DISTINCT - - 61 AS col1
----
61

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

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

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

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

query II rowsort
SELECT 36 * 8 * + 31 * 69 + + - COALESCE ( - - 24, - 96 ) AS col1, - 61
----
616008
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1481
SELECT DISTINCT 62 * - - COUNT( * ) - - + COALESCE ( 60, - COUNT( DISTINCT + 60 ), COUNT( * ) ) + CAST( NULL AS SIGNED ) / + COUNT( ALL + 98 ) + + - COUNT( * ) * - + ( + 9 ) / - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1481
SELECT DISTINCT 62 * - - COUNT ( * ) - - + COALESCE ( 60, - COUNT ( DISTINCT + 60 ), COUNT ( * ) ) + CAST ( NULL AS INTEGER ) / + COUNT ( ALL + 98 ) + + - COUNT ( * ) * - + ( + 9 ) / - 24 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1482
SELECT COALESCE ( 59, - CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) - 83 * 25 + + - NULLIF ( - - SUM( ALL - + 64 ), - - COUNT( * ) ), + - 62, - + 37 + + - 63 - - 32 * - + 9 DIV 87 ) + 4 + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-1482
SELECT COALESCE ( 59, - CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) - 83 * 25 + + - NULLIF ( - - SUM ( ALL - + 64 ), - - COUNT ( * ) ), + - 62, - + 37 + + - 63 - - 32 * - + 9 / 87 ) + 4 + COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT - - 5 * + - 25 * COUNT( * ) + + 6 - + 74
----
-193

skipif mysql # not compatible
query I rowsort label-1483
SELECT - - 5 * + - 25 * COUNT ( * ) + + 6 - + 74
----
-193

query I rowsort
SELECT 84 + 89 * - 91
----
-8015

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT 41 * + - 54 + + 35 + - 84 + + - 71 - + 16 + - 89 + + 84 + - - 4 + + + COUNT( * ) * + 71 col1
----
-2280

skipif mysql # not compatible
query I rowsort label-1485
SELECT 41 * + - 54 + + 35 + - 84 + + - 71 - + 16 + - 89 + + 84 + - - 4 + + + COUNT ( * ) * + 71 col1
----
-2280

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

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL COUNT ( * ) - + ( ( 81 ) ) AS col2
----
-80

query I rowsort
SELECT 15 * - 1 + + COALESCE ( 35, - - 9 )
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT - 2 + COUNT( * ) - + COUNT( * ) * 95 + - + COUNT( * ) + - + ( - ( - 75 ) ) * - 3
----
128

skipif mysql # not compatible
query I rowsort label-1489
SELECT - 2 + COUNT ( * ) - + COUNT ( * ) * 95 + - + COUNT ( * ) + - + ( - ( - 75 ) ) * - 3
----
128

query I rowsort
SELECT DISTINCT + + 22 * + - 91 - 60 AS col2
----
-2062

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1492
SELECT + 35 + + SUM( ALL 22 ) col0, COUNT( * ) + - + ( - COALESCE ( - 33, - 59, 24 ) )
----
57
-32

skipif mysql # not compatible
query II rowsort label-1492
SELECT + 35 + + SUM ( ALL 22 ) col0, COUNT ( * ) + - + ( - COALESCE ( - 33, - 59, 24 ) )
----
57
-32

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

skipif mysql # not compatible
query I rowsort label-1493
SELECT - MAX ( ALL 73 )
----
-73

query I rowsort
SELECT ALL 17 + 46 + 76 * 54 AS col0
----
4167

query I rowsort
SELECT DISTINCT 34 + 58
----
92

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

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

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

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

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

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

query I rowsort
SELECT ALL 63 + + + 9 AS col2
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT - COUNT( * ) + + + 59 + 90 - - 64 + - - 29 AS col2
----
241

skipif mysql # not compatible
query I rowsort label-1501
SELECT - COUNT ( * ) + + + 59 + 90 - - 64 + - - 29 AS col2
----
241

query I rowsort
SELECT + - 60 + 41 AS col0
----
-19

query I rowsort
SELECT + 62 * 18 AS col0
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL COUNT( * ) * - 8 + - - 12 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL COUNT ( * ) * - 8 + - - 12 AS col0
----
4

query I rowsort
SELECT ALL - - 37 * - 73
----
-2701

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT DISTINCT - ( - + MAX( ALL - - 72 ) ) * - 42
----
-3024

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT - ( - + MAX ( ALL - - 72 ) ) * - 42
----
-3024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1507
SELECT - - COUNT( * ) * COUNT( * ) + + 8 * + 61 * - 81 * - + COALESCE ( + ( + 7 ), - 7 + - 55 + - 59 + - MAX( - + 26 ) DIV 19, - 27 ) AS col1
----
276697

skipif mysql # not compatible
query I rowsort label-1507
SELECT - - COUNT ( * ) * COUNT ( * ) + + 8 * + 61 * - 81 * - + COALESCE ( + ( + 7 ), - 7 + - 55 + - 59 + - MAX ( - + 26 ) / 19, - 27 ) AS col1
----
276697

query II rowsort
SELECT ALL + 20 AS col1, NULLIF ( + 70, - - 12 * - + 49 * ( 31 ) )
----
20
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1509
SELECT - NULLIF ( - + CAST( + 40 AS SIGNED ), - 28 ) * + - 35 + - 49
----
-1449

skipif mysql # not compatible
query I rowsort label-1509
SELECT - NULLIF ( - + CAST ( + 40 AS INTEGER ), - 28 ) * + - 35 + - 49
----
-1449

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT + MIN( ALL - + 64 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-1510
SELECT + MIN ( ALL - + 64 ) AS col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1511
SELECT - 24 + - - 84 + + CAST( 47 AS SIGNED ) + - + 70 / - CAST( NULL AS SIGNED ) + + - 78 - 96 * - NULLIF ( - - 50, - 70 + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1511
SELECT - 24 + - - 84 + + CAST ( 47 AS INTEGER ) + - + 70 / - CAST ( NULL AS INTEGER ) + + - 78 - 96 * - NULLIF ( - - 50, - 70 + 47 )
----
NULL

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

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

query I rowsort
SELECT + 47 + 35 + + + 92 * + 14
----
1370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1514
SELECT ALL 68 * + MIN( DISTINCT + + 2 ) * + 98 + 82 + - 38 + 34 / + - ( ( - CAST( NULL AS SIGNED ) ) ) + - CAST( + + COUNT( * ) AS SIGNED ) + COUNT( * ) * - 96 * + + ( - NULLIF ( 98, - - CASE - 12 WHEN COUNT( * ) * + + 6 THEN - 50 WHEN + 23 + - 57 * - 46 * - CAST( - 88 AS SIGNED ) THEN + 92 END + - 60 * + 46 ) ) + + 85 / - 24 + - 98 * - + MIN( + 21 ) + - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL 68 * + MIN ( DISTINCT + + 2 ) * + 98 + 82 + - 38 + 34 / + - ( ( - CAST ( NULL AS INTEGER ) ) ) + - CAST ( + + COUNT ( * ) AS INTEGER ) + COUNT ( * ) * - 96 * + + ( - NULLIF ( 98, - - CASE - 12 WHEN COUNT ( * ) * + + 6 THEN - 50 WHEN + 23 + - 57 * - 46 * - CAST ( - 88 AS INTEGER ) THEN + 92 END + - 60 * + 46 ) ) + + 85 / - 24 + - 98 * - + MIN ( + 21 ) + - 49 AS col0
----
NULL

query I rowsort
SELECT - 94 - 23 * - 68
----
1470

query I rowsort
SELECT - 11 * + 47
----
-517

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

skipif mysql # not compatible
query II rowsort label-1517
SELECT ALL ( - 63 ) AS col0, COUNT ( * ) col0
----
-63
1

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

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

query I rowsort
SELECT ALL 70 + + 18
----
88

query I rowsort
SELECT DISTINCT 28 + 7 * + 73
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT - ( - CASE - 61 WHEN + 17 THEN - 2 - + + 48 WHEN + COUNT( * ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT - ( - CASE - 61 WHEN + 17 THEN - 2 - + + 48 WHEN + COUNT ( * ) THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1522
SELECT + 57 * - + NULLIF ( + CAST( NULL AS SIGNED ), - - COUNT( - 78 ) + - + 20 ) * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1522
SELECT + 57 * - + NULLIF ( + CAST ( NULL AS INTEGER ), - - COUNT ( - 78 ) + - + 20 ) * 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1523
SELECT ALL 22 / - COUNT( * ) * - CAST( NULL AS SIGNED ) * MAX( 77 ) / - 85 + + 36 AS col0, - 31
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-1523
SELECT ALL 22 / - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * MAX ( 77 ) / - 85 + + 36 AS col0, - 31
----
NULL
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT - COALESCE ( 0, + 55, + 94 * SUM( DISTINCT + - 22 ) + - + 2 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1524
SELECT - COALESCE ( 0, + 55, + 94 * SUM ( DISTINCT + - 22 ) + - + 2 ) AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT ALL + CASE + 48 WHEN + 37 + + + COUNT( * ) + + 3 + + + 26 + + 87 THEN 65 / + - 60 * + 93 WHEN - - 54 THEN NULL WHEN - + 47 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL + CASE + 48 WHEN + 37 + + + COUNT ( * ) + + 3 + + + 26 + + 87 THEN 65 / + - 60 * + 93 WHEN - - 54 THEN NULL WHEN - + 47 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1527
SELECT DISTINCT 90 - - COALESCE ( + - 63, - NULLIF ( + ( CAST( NULL AS SIGNED ) ), 57 + 61 ) * + ( + CASE AVG ( DISTINCT 67 ) WHEN + 80 * - - 38 THEN - COALESCE ( + 84, - 71 + - + 87 ) END ), COUNT( + 2 ) )
----
27

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT 90 - - COALESCE ( + - 63, - NULLIF ( + ( CAST ( NULL AS INTEGER ) ), 57 + 61 ) * + ( + CASE AVG ( DISTINCT 67 ) WHEN + 80 * - - 38 THEN - COALESCE ( + 84, - 71 + - + 87 ) END ), COUNT ( + 2 ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT + COUNT( ALL - 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1528
SELECT + COUNT ( ALL - 30 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL COUNT( * ) * - 26 * - - 77
----
-2002

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL COUNT ( * ) * - 26 * - - 77
----
-2002

query II rowsort
SELECT + 78 * + 82 col1, CASE - + 89 WHEN - - 14 THEN NULL WHEN - 24 THEN - 24 END AS col1
----
6396
NULL

query I rowsort
SELECT DISTINCT - 1 * 79 * 9 * - 37 - + 24
----
26283

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT + ( - COUNT( * ) ) + + 0 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1532
SELECT + ( - COUNT ( * ) ) + + 0 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1533
SELECT ALL + + COUNT( * ) DIV + - 1 - + COUNT( * ) * - 68 AS col2, 37 * - 10 AS col0
----
67
-370

skipif mysql # not compatible
query II rowsort label-1533
SELECT ALL + + COUNT ( * ) / + - 1 - + COUNT ( * ) * - 68 AS col2, 37 * - 10 AS col0
----
67
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT + 13 * ( + ( - COUNT( * ) ) ) * - - 85 + - + ( - - 12 ) + - CASE - 99 WHEN 20 THEN + + NULLIF ( - 73, 6 * + - 38 * MIN( - 33 ) ) + + 46 + - + 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT + 13 * ( + ( - COUNT ( * ) ) ) * - - 85 + - + ( - - 12 ) + - CASE - 99 WHEN 20 THEN + + NULLIF ( - 73, 6 * + - 38 * MIN ( - 33 ) ) + + 46 + - + 51 END
----
NULL

query I rowsort
SELECT - + 24 * - 6
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT - + 67 * 18 * - 14 + + + ( + 25 ) - + COUNT( * ) AS col2
----
16908

skipif mysql # not compatible
query I rowsort label-1536
SELECT - + 67 * 18 * - 14 + + + ( + 25 ) - + COUNT ( * ) AS col2
----
16908

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL + MIN( 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL + MIN ( 0 ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1538
SELECT - COUNT( * ) / - 97 + - 72 * - 23 + + CAST( NULL AS SIGNED ) + - 39 + - - SUM( 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1538
SELECT - COUNT ( * ) / - 97 + - 72 * - 23 + + CAST ( NULL AS INTEGER ) + - 39 + - - SUM ( 45 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1539
SELECT ALL 68 DIV - 32 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL 68 / - 32 AS col2
----
-2

query I rowsort
SELECT COALESCE ( + - 9, 99, - 92 ) AS col2
----
-9

query I rowsort
SELECT DISTINCT + - 84 * + 87
----
-7308

query I rowsort
SELECT DISTINCT + + 67 * - - 39
----
2613

query I rowsort
SELECT + 40 * - + 16 - + 28 AS col2
----
-668

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1544
SELECT 97 AS col2, 70 * - 44 * + - NULLIF ( 73, - CAST( + 59 AS SIGNED ) / 23 - - 73 ) AS col2
----
97
224840

skipif mysql # not compatible
query II rowsort label-1544
SELECT 97 AS col2, 70 * - 44 * + - NULLIF ( 73, - CAST ( + 59 AS INTEGER ) / 23 - - 73 ) AS col2
----
97
224840

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL - 31 + 41 * + - MAX( DISTINCT + 31 )
----
-1302

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL - 31 + 41 * + - MAX ( DISTINCT + 31 )
----
-1302

query I rowsort
SELECT ALL + 77 + 64 + + + 17 * + 17 AS col1
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT COUNT( - 57 ) * - + 50 + ( 99 ) col0
----
49

skipif mysql # not compatible
query I rowsort label-1547
SELECT COUNT ( - 57 ) * - + 50 + ( 99 ) col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT ALL MAX( ALL + 48 ) + COUNT( * ) * - 79 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL MAX ( ALL + 48 ) + COUNT ( * ) * - 79 AS col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT DISTINCT + 59 + 43 * + 49 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT + 59 + 43 * + 49 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1550
SELECT 45 + 54 - - + COUNT( * ) + + + COUNT( DISTINCT + 88 ) * - 45 * + CAST( NULL AS DECIMAL ) - - 8 * 25 + + 99 * 89 + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1550
SELECT 45 + 54 - - + COUNT ( * ) + + + COUNT ( DISTINCT + 88 ) * - 45 * + CAST ( NULL AS REAL ) - - 8 * 25 + + 99 * 89 + 32
----
NULL

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

query I rowsort
SELECT DISTINCT + 87 * - 84 AS col1
----
-7308

query I rowsort
SELECT 64 * - 5 * + - 41 AS col1
----
13120

query I rowsort
SELECT ALL + 69 * - 65 AS col2
----
-4485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1555
SELECT DISTINCT + 87 * + - CAST( NULL AS SIGNED ) / + - ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT + 87 * + - CAST ( NULL AS INTEGER ) / + - ( + COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT 10 - - 56 * + 90 * + ( 84 ) + - 39 AS col2
----
423331

query I rowsort
SELECT DISTINCT - 22 * 49
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT ALL + CASE COUNT( DISTINCT 8 ) WHEN + - SUM( - 79 ) - - MAX( - + 41 ) THEN MIN( ALL 38 ) * - 23 + 2 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL + CASE COUNT ( DISTINCT 8 ) WHEN + - SUM ( - 79 ) - - MAX ( - + 41 ) THEN MIN ( ALL 38 ) * - 23 + 2 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1559
SELECT - 80 DIV 49 DIV + 8
----
0

skipif mysql # not compatible
query I rowsort label-1559
SELECT - 80 / 49 / + 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT ALL MIN( ALL 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL MIN ( ALL 25 ) AS col0
----
25

query II rowsort
SELECT - 92 AS col2, - 37 * 83 * - + 23 AS col0
----
-92
70633

query I rowsort
SELECT 34 + - 17 AS col0
----
17

query I rowsort
SELECT 21 + 97 AS col1
----
118

query II rowsort
SELECT ALL + 26, 44 AS col1
----
26
44

query I rowsort
SELECT 68 * - + 14 + 69
----
-883

onlyif mysql # aggregate syntax: 
query II rowsort label-1566
SELECT ALL 8 * + + COUNT( ALL 49 ) AS col2, - 61 AS col1
----
8
-61

skipif mysql # not compatible
query II rowsort label-1566
SELECT ALL 8 * + + COUNT ( ALL 49 ) AS col2, - 61 AS col1
----
8
-61

query II rowsort
SELECT ALL - - 13 col1, 4
----
13
4

query I rowsort
SELECT DISTINCT - 29 * - NULLIF ( - 22, - 59 - + 27 - - 97 )
----
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT - 96 * 97 - + + NULLIF ( + - 22, - 64 + - COUNT( * ) ) * + 53
----
-8146

skipif mysql # not compatible
query I rowsort label-1569
SELECT - 96 * 97 - + + NULLIF ( + - 22, - 64 + - COUNT ( * ) ) * + 53
----
-8146

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT ALL + COUNT( * ) + + + 99 * + + NULLIF ( + - 56, - 23 ) * ( - 36 )
----
199585

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL + COUNT ( * ) + + + 99 * + + NULLIF ( + - 56, - 23 ) * ( - 36 )
----
199585

query I rowsort
SELECT ALL + ( 30 ) * + 34 AS col1
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT 82 + - - COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1572
SELECT 82 + - - COUNT ( * ) AS col2
----
83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1574
SELECT ALL 89 + 89 * - - 59 + - 82 DIV 9 + - 94 AS col0
----
5237

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL 89 + 89 * - - 59 + - 82 / 9 + - 94 AS col0
----
5237

query II rowsort
SELECT 82, - 50 * 38 * + + 21 AS col2
----
82
-39900

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT 18 + - - 93 + + + COUNT( * ) + 87 * + 43 * - 80 + 68 * + + 76 AS col2
----
-294000

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT 18 + - - 93 + + + COUNT ( * ) + 87 * + 43 * - 80 + 68 * + + 76 AS col2
----
-294000

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL + 72 * + SUM( + 52 )
----
3744

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL + 72 * + SUM ( + 52 )
----
3744

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1578
SELECT ALL CAST( + + 80 AS SIGNED ) DIV 79 * + ( + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL CAST ( + + 80 AS INTEGER ) / 79 * + ( + 15 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT ALL - 0 * + 4 DIV - + 10
----
0

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL - 0 * + 4 / - + 10
----
0

query I rowsort
SELECT ALL + 46 + + 96
----
142

query I rowsort
SELECT 74 * 90 AS col2
----
6660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1582
SELECT 82 AS col1, - ( - MAX( ALL CAST( NULL AS SIGNED ) ) ) col2
----
82
NULL

skipif mysql # not compatible
query II rowsort label-1582
SELECT 82 AS col1, - ( - MAX ( ALL CAST ( NULL AS INTEGER ) ) ) col2
----
82
NULL

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

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

query I rowsort
SELECT 90 + - 40
----
50

query I rowsort
SELECT ALL + 1 * + 70
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-1586
SELECT - 7 AS col1, 72 DIV 79 - - 71
----
-7
71

skipif mysql # not compatible
query II rowsort label-1586
SELECT - 7 AS col1, 72 / 79 - - 71
----
-7
71

query I rowsort
SELECT 74 - - + 91 * - 2
----
-108

query II rowsort
SELECT DISTINCT 11, + 85 AS col1
----
11
85

query I rowsort
SELECT ALL 4 * + 32
----
128

query II rowsort
SELECT ALL 17, 86 AS col0
----
17
86

query II rowsort
SELECT - 75, 41 AS col0
----
-75
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1592
SELECT - COUNT( * ) AS col0, + COUNT( * ) - + - 49 DIV 38 * + 89
----
-1
90

skipif mysql # not compatible
query II rowsort label-1592
SELECT - COUNT ( * ) AS col0, + COUNT ( * ) - + - 49 / 38 * + 89
----
-1
90

query I rowsort
SELECT - 87 * - + 75 - + 21 AS col0
----
6504

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL + - COUNT( * ) * COUNT( * ) + + 53 + 42 + + 9 + - COUNT( * ) * - 10 * - 95 AS col0
----
-847

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + - COUNT ( * ) * COUNT ( * ) + + 53 + 42 + + 9 + - COUNT ( * ) * - 10 * - 95 AS col0
----
-847

query II rowsort
SELECT - 32, + 67 col2
----
-32
67

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

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT MAX ( DISTINCT 76 )
----
76

query I rowsort
SELECT DISTINCT - - 88 + + - 60
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1598
SELECT ALL + - 25 * + - COUNT( * ) + + + MAX( 67 ) + 83 + + - ( 98 ) AS col2, + 78 + - 34 + 62 / - CASE - + 2 WHEN 55 / + AVG ( DISTINCT 98 ) THEN + - 13 WHEN - 76 THEN COUNT( * ) WHEN 97 THEN NULL ELSE NULL END * SUM( ALL 38 ) * + 39 + - 31
----
77
NULL

skipif mysql # not compatible
query II rowsort label-1598
SELECT ALL + - 25 * + - COUNT ( * ) + + + MAX ( 67 ) + 83 + + - ( 98 ) AS col2, + 78 + - 34 + 62 / - CASE - + 2 WHEN 55 / + AVG ( DISTINCT 98 ) THEN + - 13 WHEN - 76 THEN COUNT ( * ) WHEN 97 THEN NULL ELSE NULL END * SUM ( ALL 38 ) * + 39 + - 31
----
77
NULL

query II rowsort
SELECT ALL - 84 AS col0, 23 + 63
----
-84
86

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1601
SELECT DISTINCT - + 75 * + 7 + CAST( NULL AS SIGNED ) * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT - + 75 * + 7 + CAST ( NULL AS INTEGER ) * 30
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ALL - 36 + 40 + + COUNT( * ) * + + SUM( - + 14 )
----
-10

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL - 36 + 40 + + COUNT ( * ) * + + SUM ( - + 14 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1604
SELECT ALL + SUM( DISTINCT + 29 ) + - ( + - 4 ) / + - ( 97 ) * - CAST( 83 AS DECIMAL ) + - COALESCE ( - 54, 81 ) - - 89 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL + SUM ( DISTINCT + 29 ) + - ( + - 4 ) / + - ( 97 ) * - CAST ( 83 AS REAL ) + - COALESCE ( - 54, 81 ) - - 89 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT - + 61 + 27 + - 78 + - + 78 + 25 + + 41 + 58 - - + COUNT( * ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-1605
SELECT - + 61 + 27 + - 78 + - + 78 + 25 + + 41 + 58 - - + COUNT ( * ) AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1606
SELECT + CAST( + MAX( + - 58 ) AS SIGNED ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-1606
SELECT + CAST ( + MAX ( + - 58 ) AS INTEGER ) AS col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1607
SELECT + 16 DIV + - NULLIF ( 49, - - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-1607
SELECT + 16 / + - NULLIF ( 49, - - COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1608
SELECT - CAST( NULL AS SIGNED ) * + 68 + 90 / - ( + ( + 55 ) ) + + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1608
SELECT - CAST ( NULL AS INTEGER ) * + 68 + 90 / - ( + ( + 55 ) ) + + ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL 6 * - 15 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT DISTINCT - 34 * + 58 + ( + 16 ) * - 3 - - ( - + ( - - COUNT( * ) ) )
----
-2021

skipif mysql # not compatible
query I rowsort label-1610
SELECT DISTINCT - 34 * + 58 + ( + 16 ) * - 3 - - ( - + ( - - COUNT ( * ) ) )
----
-2021

query I rowsort
SELECT DISTINCT 41 * - + 49
----
-2009

query I rowsort
SELECT + COALESCE ( - + 53, + 67 ) + - 73 AS col0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT ALL + 1 * + - 12 + + CASE 76 WHEN - 11 + - + ( - + COUNT( ALL - - 72 ) ) * - NULLIF ( - + 29, - 99 * + - 72 ) THEN 62 * - 62 + - - 54 + - 30 ELSE NULL END * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL + 1 * + - 12 + + CASE 76 WHEN - 11 + - + ( - + COUNT ( ALL - - 72 ) ) * - NULLIF ( - + 29, - 99 * + - 72 ) THEN 62 * - 62 + - - 54 + - 30 ELSE NULL END * 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1614
SELECT DISTINCT 5 * + COALESCE ( + CASE 60 WHEN + NULLIF ( + + CASE CASE ( + 75 ) WHEN + - 49 THEN + 16 + - ( + COUNT( * ) ) WHEN COUNT( * ) * - 37 THEN NULL WHEN 8 * - 78 THEN - + 94 ELSE NULL END WHEN - 33 THEN NULL ELSE COUNT( * ) * - ( + + 78 ) END, + ( - COALESCE ( + - CAST( 15 AS SIGNED ), 9 + - 40, + CAST( NULL AS SIGNED ) + 92 ) ) ) THEN + ( 87 ) + + COUNT( * ) END, - COUNT( * ) ) / + - 31 * - 93 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT 5 * + COALESCE ( + CASE 60 WHEN + NULLIF ( + + CASE CASE ( + 75 ) WHEN + - 49 THEN + 16 + - ( + COUNT ( * ) ) WHEN COUNT ( * ) * - 37 THEN NULL WHEN 8 * - 78 THEN - + 94 ELSE NULL END WHEN - 33 THEN NULL ELSE COUNT ( * ) * - ( + + 78 ) END, + ( - COALESCE ( + - CAST ( 15 AS INTEGER ), 9 + - 40, + CAST ( NULL AS INTEGER ) + 92 ) ) ) THEN + ( 87 ) + + COUNT ( * ) END, - COUNT ( * ) ) / + - 31 * - 93 * + + CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1616
SELECT ALL 93 DIV ( - - 18 )
----
5

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL 93 / ( - - 18 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1617
SELECT ALL 49 * CAST( NULL AS SIGNED ) * + 26 - + + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL 49 * CAST ( NULL AS INTEGER ) * + 26 - + + 72 AS col0
----
NULL

query II rowsort
SELECT + ( 46 ) AS col0, 37
----
46
37

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1620
SELECT + 51 DIV + - 31, ( - - 60 ) DIV - 85 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-1620
SELECT + 51 / + - 31, ( - - 60 ) / - 85 AS col0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT ALL 57 DIV NULLIF ( - - 79, + + 39 )
----
0

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL 57 / NULLIF ( - - 79, + + 39 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT - 27 * 17 * + COUNT( * ) AS col2
----
-459

skipif mysql # not compatible
query I rowsort label-1622
SELECT - 27 * 17 * + COUNT ( * ) AS col2
----
-459

onlyif mysql # DIV for integer division: 
query I rowsort label-1623
SELECT + 1 DIV + 64 * + - 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1623
SELECT + 1 / + 64 * + - 16 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1624
SELECT - 71 * + 49 * - 49 AS col2, CAST( NULL AS SIGNED ) * + + 62
----
170471
NULL

skipif mysql # not compatible
query II rowsort label-1624
SELECT - 71 * + 49 * - 49 AS col2, CAST ( NULL AS INTEGER ) * + + 62
----
170471
NULL

query I rowsort
SELECT - 84 * - 5 AS col2
----
420

query II rowsort
SELECT + + 1 + + 30 AS col1, + 11 * - 58 * - + 11 + - 14
----
31
7004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1627
SELECT DISTINCT 2 + + - 96 * - 99 + + 20 DIV MAX( ALL - + 69 ) * + - COUNT( * )
----
9506

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT 2 + + - 96 * - 99 + + 20 / MAX ( ALL - + 69 ) * + - COUNT ( * )
----
9506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1628
SELECT ALL 12 * - MAX( - COALESCE ( - 62, + ( + - 74 ) - 75 * - 29 ) ) * 52 * - COALESCE ( + 28, - COUNT( * ) ) + - 64 DIV - - 39
----
1083263

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL 12 * - MAX ( - COALESCE ( - 62, + ( + - 74 ) - 75 * - 29 ) ) * 52 * - COALESCE ( + 28, - COUNT ( * ) ) + - 64 / - - 39
----
1083263

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT - 60 + - NULLIF ( - CASE - COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN + 87 THEN - 58 * - 53 ELSE COUNT( * ) END, + - 86 * - - 53 * 18 / 84 + - - 43 + - COUNT( - 23 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-1629
SELECT - 60 + - NULLIF ( - CASE - COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN + 87 THEN - 58 * - 53 ELSE COUNT ( * ) END, + - 86 * - - 53 * 18 / 84 + - - 43 + - COUNT ( - 23 ) )
----
-59

query II rowsort
SELECT ALL - + 10 + - 58, 34 * - 16 AS col2
----
-68
-544

onlyif mysql # aggregate syntax: 
query II rowsort label-1631
SELECT - 87 + 47 AS col1, 43 * + + 76 * MAX( DISTINCT 49 ) + + - 68
----
-40
160064

skipif mysql # not compatible
query II rowsort label-1631
SELECT - 87 + 47 AS col1, 43 * + + 76 * MAX ( DISTINCT 49 ) + + - 68
----
-40
160064

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1633
SELECT - NULLIF ( + 95, - + 34 + - 29 * + + CAST( NULL AS SIGNED ) + - - 66 ) + - + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-1633
SELECT - NULLIF ( + 95, - + 34 + - 29 * + + CAST ( NULL AS INTEGER ) + - - 66 ) + - + COUNT ( * )
----
-96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1634
SELECT ALL + - 10 + + + NULLIF ( + CAST( - 84 AS SIGNED ), - 75 ) col0, - CAST( NULL AS DECIMAL ) * + + 86 AS col2
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-1634
SELECT ALL + - 10 + + + NULLIF ( + CAST ( - 84 AS INTEGER ), - 75 ) col0, - CAST ( NULL AS REAL ) * + + 86 AS col2
----
-94
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT DISTINCT - 46 * 83 DIV 82
----
-46

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT - 46 * 83 / 82
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1636
SELECT DISTINCT + 77 + + CASE COUNT( * ) WHEN - + NULLIF ( + 85, + 0 ) * - - ( - COUNT( * ) ) * + 28 + + 7 * 88 THEN + 86 * + + 25 + - 15 + - + 94 DIV CASE + 2 WHEN - 36 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE - NULLIF ( - COUNT( * ), + + 0 ) END * + - 58 WHEN + + 21 THEN NULL ELSE 29 END + + COUNT( * ) * + - 62
----
44

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT + 77 + + CASE COUNT ( * ) WHEN - + NULLIF ( + 85, + 0 ) * - - ( - COUNT ( * ) ) * + 28 + + 7 * 88 THEN + 86 * + + 25 + - 15 + - + 94 / CASE + 2 WHEN - 36 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE - NULLIF ( - COUNT ( * ), + + 0 ) END * + - 58 WHEN + + 21 THEN NULL ELSE 29 END + + COUNT ( * ) * + - 62
----
44

query I rowsort
SELECT ALL - + 97 * - + 85 * + - 69 + 16
----
-568889

query I rowsort
SELECT ALL - COALESCE ( + 41, - ( + + 51 ) )
----
-41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT DISTINCT - MIN( - + 10 ) * 48
----
480

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT - MIN ( - + 10 ) * 48
----
480

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

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

query I rowsort
SELECT - 65 * - 69 AS col0
----
4485

onlyif mysql # aggregate syntax: 
query II rowsort label-1643
SELECT ALL + 0 AS col2, COUNT( * ) * + + 4
----
0
4

skipif mysql # not compatible
query II rowsort label-1643
SELECT ALL + 0 AS col2, COUNT ( * ) * + + 4
----
0
4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1645
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, - 71 AS col0
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-1645
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - 71 AS col0
----
NULL
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT - 29 * - COALESCE ( + - 13, - COUNT( * ), - 15 ) AS col1
----
-377

skipif mysql # not compatible
query I rowsort label-1646
SELECT - 29 * - COALESCE ( + - 13, - COUNT ( * ), - 15 ) AS col1
----
-377

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

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

query I rowsort
SELECT + 70 * - + 1
----
-70

query I rowsort
SELECT DISTINCT + NULLIF ( - COALESCE ( - - 30, + + 39 ), - - 74 + - 42 ) AS col0
----
-30

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1652
SELECT ALL + 35 AS col1, COUNT( * ) * - 29
----
35
-29

skipif mysql # not compatible
query II rowsort label-1652
SELECT ALL + 35 AS col1, COUNT ( * ) * - 29
----
35
-29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1654
SELECT - 22 + - + CAST( + - 3 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-1654
SELECT - 22 + - + CAST ( + - 3 AS INTEGER )
----
-19

query I rowsort
SELECT CASE 36 WHEN + - 23 THEN + - 78 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1656
SELECT - 39 * 67 * 35 * - CASE - CASE - 21 WHEN - + ( - 12 ) THEN NULLIF ( - 15, 19 + - 65 ) * CASE + - COUNT( * ) WHEN + AVG ( DISTINCT - - 20 ) * - 21 THEN NULL ELSE - AVG ( - + 48 ) * - 34 END WHEN + 45 THEN + 77 * + + 91 * + 97 END WHEN + 30 THEN + 42 END col1, - 84
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-1656
SELECT - 39 * 67 * 35 * - CASE - CASE - 21 WHEN - + ( - 12 ) THEN NULLIF ( - 15, 19 + - 65 ) * CASE + - COUNT ( * ) WHEN + AVG ( DISTINCT - - 20 ) * - 21 THEN NULL ELSE - AVG ( - + 48 ) * - 34 END WHEN + 45 THEN + 77 * + + 91 * + 97 END WHEN + 30 THEN + 42 END col1, - 84
----
NULL
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-1657
SELECT 74 * - - COUNT( * ) + - 89 AS col0, - ( - 12 )
----
-15
12

skipif mysql # not compatible
query II rowsort label-1657
SELECT 74 * - - COUNT ( * ) + - 89 AS col0, - ( - 12 )
----
-15
12

query I rowsort
SELECT DISTINCT 51 * - 3
----
-153

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1660
SELECT + - ( - + CAST( NULL AS SIGNED ) ) / - 51 AS col2, 53 AS col0
----
NULL
53

skipif mysql # not compatible
query II rowsort label-1660
SELECT + - ( - + CAST ( NULL AS INTEGER ) ) / - 51 AS col2, 53 AS col0
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL + + 88 * + 99 * + + 70 * 21 + 50 - - 86 + COUNT( * ) - - 50
----
12806827

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL + + 88 * + 99 * + + 70 * 21 + 50 - - 86 + COUNT ( * ) - - 50
----
12806827

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL + 8 + - 86 * CASE ( + 17 ) WHEN + COUNT( * ) THEN NULL WHEN + 42 * + + 70 - 32 THEN 36 END - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL + 8 + - 86 * CASE ( + 17 ) WHEN + COUNT ( * ) THEN NULL WHEN + 42 * + + 70 - 32 THEN 36 END - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 45 * + 36 * + - 41 * - + 56 AS col2
----
3719520

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT + 24 - - ( + CASE + 65 WHEN 5 + + 0 THEN 69 - - + 55 * - 89 / COUNT( * ) + + 83 WHEN 0 THEN - - 43 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1665
SELECT + 24 - - ( + CASE + 65 WHEN 5 + + 0 THEN 69 - - + 55 * - 89 / COUNT ( * ) + + 83 WHEN 0 THEN - - 43 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT COUNT( * ) * 3 * + COUNT( * ) - 61 * - 93 + - 33 col2
----
5643

skipif mysql # not compatible
query I rowsort label-1666
SELECT COUNT ( * ) * 3 * + COUNT ( * ) - 61 * - 93 + - 33 col2
----
5643

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT MIN( 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-1668
SELECT MIN ( 94 ) AS col2
----
94

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1670
SELECT DISTINCT CASE + COUNT( * ) WHEN - CAST( - - 85 AS SIGNED ) / 57 + - 41 * 9 THEN + 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1670
SELECT DISTINCT CASE + COUNT ( * ) WHEN - CAST ( - - 85 AS INTEGER ) / 57 + - 41 * 9 THEN + 85 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1671
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 37 * - COUNT( ALL 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1671
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 37 * - COUNT ( ALL 46 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT ALL + 93 - + 17 DIV + 46
----
93

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL + 93 - + 17 / + 46
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT 39 + 83 - 81 + 95 * COUNT( * ) AS col0
----
136

skipif mysql # not compatible
query I rowsort label-1673
SELECT 39 + 83 - 81 + 95 * COUNT ( * ) AS col0
----
136

query I rowsort
SELECT 75 * - 30 AS col1
----
-2250

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

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

query I rowsort
SELECT ALL + 14 - 37 AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1677
SELECT NULLIF ( - 41, 33 * 78 ) * 97 * + NULLIF ( ( COUNT( * ) ), CAST( NULL AS DECIMAL ) ) + + 54
----
-3923

skipif mysql # not compatible
query I rowsort label-1677
SELECT NULLIF ( - 41, 33 * 78 ) * 97 * + NULLIF ( ( COUNT ( * ) ), CAST ( NULL AS REAL ) ) + + 54
----
-3923

onlyif mysql # aggregate syntax: 
query II rowsort label-1678
SELECT 0 * COUNT( * ), + 89 AS col0
----
0
89

skipif mysql # not compatible
query II rowsort label-1678
SELECT 0 * COUNT ( * ), + 89 AS col0
----
0
89

query I rowsort
SELECT ALL - 24 * + 7 AS col0
----
-168

query I rowsort
SELECT 84 + 95 * - 57 col1
----
-5331

query II rowsort
SELECT DISTINCT - ( + + 35 ) col0, - 62 * 78 * - 37 AS col2
----
-35
178932

query I rowsort
SELECT DISTINCT - 42 * + NULLIF ( + 67, + - 48 ) * - 33 * + - 31 AS col0
----
-2878722

query I rowsort
SELECT ALL + 24 + 69 + + 67
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT - 40 * + 2 + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-1684
SELECT - 40 * + 2 + COUNT ( * )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT 80 DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-1685
SELECT 80 / - 60
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1686
SELECT DISTINCT + MAX( + 0 ) DIV + + 92
----
0

skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT + MAX ( + 0 ) / + + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT COUNT( * ) + - + 7
----
-6

skipif mysql # not compatible
query I rowsort label-1687
SELECT COUNT ( * ) + - + 7
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL COALESCE ( COUNT( ALL - 1 ), - 37 ) + - 20 * 90 AS col0
----
-1799

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL COALESCE ( COUNT ( ALL - 1 ), - 37 ) + - 20 * 90 AS col0
----
-1799

onlyif mysql # DIV for integer division: 
query I rowsort label-1689
SELECT 42 DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-1689
SELECT 42 / + 59
----
0

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

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

query I rowsort
SELECT ALL + - 44 + + 35 * + 88 AS col0
----
3036

query I rowsort
SELECT ( 75 ) - + ( + 1 ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1693
SELECT DISTINCT + 12 + - - 67 + + ( - + CAST( NULL AS DECIMAL ) ) AS col0, + ( CAST( NULL AS DECIMAL ) ) + - 80 + + MAX( DISTINCT + 64 ) + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1693
SELECT DISTINCT + 12 + - - 67 + + ( - + CAST ( NULL AS REAL ) ) AS col0, + ( CAST ( NULL AS REAL ) ) + - 80 + + MAX ( DISTINCT + 64 ) + COUNT ( * )
----
NULL
NULL

query I rowsort
SELECT ALL - 38 + - 52
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT ALL + 79 * - COUNT( - 31 ) * - - 74 + - 72
----
-5918

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL + 79 * - COUNT ( - 31 ) * - - 74 + - 72
----
-5918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1696
SELECT 90 + - 15 + - - MIN( DISTINCT - CAST( + 28 AS SIGNED ) )
----
47

skipif mysql # not compatible
query I rowsort label-1696
SELECT 90 + - 15 + - - MIN ( DISTINCT - CAST ( + 28 AS INTEGER ) )
----
47

query I rowsort
SELECT + NULLIF ( - - 58, 16 * - 43 * + 49 + - ( + ( 42 ) ) / 88 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT DISTINCT + + MIN( + 37 ) * + 12
----
444

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT + + MIN ( + 37 ) * + 12
----
444

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT DISTINCT + 30 - 59 DIV + 35 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT + 30 - 59 / + 35 AS col0
----
29

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

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

query I rowsort
SELECT 82 + 76 + + 95 AS col1
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ( - 6 ) + - + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1702
SELECT ( - 6 ) + - + COUNT ( * ) AS col2
----
-7

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

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

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

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

query I rowsort
SELECT ALL 48 * 42 AS col2
----
2016

query I rowsort
SELECT 55 * 52
----
2860

query I rowsort
SELECT 94 + + + 39 + - + 11 * + + 74 + + ( - - 35 ) AS col0
----
-646

query I rowsort
SELECT DISTINCT 29 * - 42 AS col1
----
-1218

query I rowsort
SELECT ALL 88 * - + 72
----
-6336

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

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

query I rowsort
SELECT 93 * + 36 AS col0
----
3348

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT ALL 43 * - 26 * - 27 + - MIN( - + 15 )
----
30201

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL 43 * - 26 * - 27 + - MIN ( - + 15 )
----
30201

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1714
SELECT COUNT( * ) AS col0, + 35 DIV + MIN( - 18 ) + + COUNT( * ) AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-1714
SELECT COUNT ( * ) AS col0, + 35 / + MIN ( - 18 ) + + COUNT ( * ) AS col1
----
1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1715
SELECT 19 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1715
SELECT 19 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1717
SELECT + 11, 95 DIV + - 98 col2
----
11
0

skipif mysql # not compatible
query II rowsort label-1717
SELECT + 11, 95 / + - 98 col2
----
11
0

query I rowsort
SELECT 9 * + 86
----
774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1719
SELECT ALL MAX( + 20 ) DIV 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL MAX ( + 20 ) / 46 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT DISTINCT + NULLIF ( + 26, - 59 * - 69 ) * + 54 + + MIN( ALL - 92 + - 43 ) * + 25
----
-1971

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT + NULLIF ( + 26, - 59 * - 69 ) * + 54 + + MIN ( ALL - 92 + - 43 ) * + 25
----
-1971

query I rowsort
SELECT DISTINCT + 3 * + 91
----
273

query I rowsort
SELECT ALL + 94 + + 35 AS col2
----
129

query I rowsort
SELECT - 38 * 49
----
-1862

query I rowsort
SELECT DISTINCT - 30 + 29
----
-1

query I rowsort
SELECT - 9 + + 68 * - 32
----
-2185

query I rowsort
SELECT - 14 - 13 * + 15 AS col1
----
-209

query I rowsort
SELECT 49 * 40 + - 30 * 29
----
1090

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1729
SELECT ALL + 49 DIV 23 col0
----
2

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + 49 / 23 col0
----
2

query I rowsort
SELECT ALL NULLIF ( 70, - 99 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT DISTINCT + 31 * - MIN( - 35 ) AS col0
----
1085

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT + 31 * - MIN ( - 35 ) AS col0
----
1085

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1732
SELECT ALL + CASE ( 58 ) WHEN COUNT( * ) * COUNT( * ) THEN 49 + - COALESCE ( 14 + - 60, + 89, 1 ) * 90 WHEN + CAST( NULL AS DECIMAL ) THEN 43 + - 45 ELSE NULL END / COALESCE ( 71, 17 - 14, + 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL + CASE ( 58 ) WHEN COUNT ( * ) * COUNT ( * ) THEN 49 + - COALESCE ( 14 + - 60, + 89, 1 ) * 90 WHEN + CAST ( NULL AS REAL ) THEN 43 + - 45 ELSE NULL END / COALESCE ( 71, 17 - 14, + 33 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 84 - - 91 AS col0
----
175

query I rowsort
SELECT ALL 43 * - 64 AS col0
----
-2752

query I rowsort
SELECT DISTINCT + 68 * 21
----
1428

query I rowsort
SELECT ALL - 14 - 99 AS col1
----
-113

query I rowsort
SELECT ALL + 59 * - 7
----
-413

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

skipif mysql # not compatible
query I rowsort label-1738
SELECT - COUNT ( - 12 )
----
-1

query I rowsort
SELECT - 6 - 10
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1740
SELECT - CASE + 47 WHEN + CAST( + 89 AS DECIMAL ) * - ( 75 * - CAST( NULL AS SIGNED ) + 52 ) - - SUM( + 53 ) * 39 THEN NULL WHEN COUNT( * ) THEN + CAST( 36 AS SIGNED ) * 91 END * + 83 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1740
SELECT - CASE + 47 WHEN + CAST ( + 89 AS REAL ) * - ( 75 * - CAST ( NULL AS INTEGER ) + 52 ) - - SUM ( + 53 ) * 39 THEN NULL WHEN COUNT ( * ) THEN + CAST ( 36 AS INTEGER ) * 91 END * + 83 col0
----
NULL

query I rowsort
SELECT ALL + 51 * + 30
----
1530

query I rowsort
SELECT DISTINCT ( 13 ) AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1743
SELECT ALL COALESCE ( - ( 60 ), COUNT( * ) DIV + 70 + + COUNT( * ) ) * - 55 AS col0
----
3300

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL COALESCE ( - ( 60 ), COUNT ( * ) / + 70 + + COUNT ( * ) ) * - 55 AS col0
----
3300

query I rowsort
SELECT ALL 41 + - 44
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT - NULLIF ( - SUM( ALL + 90 ), 32 + 9 * - 31 )
----
90

skipif mysql # not compatible
query I rowsort label-1745
SELECT - NULLIF ( - SUM ( ALL + 90 ), 32 + 9 * - 31 )
----
90

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

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

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

skipif mysql # not compatible
query I rowsort label-1747
SELECT + 28 - + COUNT ( * ) / + 33
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1748
SELECT ALL CASE WHEN ( + AVG ( 70 ) ) IS NOT NULL THEN COUNT( * ) * - NULLIF ( CAST( 93 AS SIGNED ) * 68, + 4 + - 16 ) + 84 END * + 40 AS col1
----
-249600

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL CASE WHEN ( + AVG ( 70 ) ) IS NOT NULL THEN COUNT ( * ) * - NULLIF ( CAST ( 93 AS INTEGER ) * 68, + 4 + - 16 ) + 84 END * + 40 AS col1
----
-249600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT + CAST( 40 AS SIGNED ) + + 19 col1
----
59

skipif mysql # not compatible
query I rowsort label-1749
SELECT + CAST ( 40 AS INTEGER ) + + 19 col1
----
59

query I rowsort
SELECT + 5 * 15 AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1751
SELECT + CAST( 19 AS SIGNED ) * 33 + 34 AS col0
----
661

skipif mysql # not compatible
query I rowsort label-1751
SELECT + CAST ( 19 AS INTEGER ) * 33 + 34 AS col0
----
661

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1754
SELECT 25 DIV 65 + ( - 98 + - 69 ) * + 92 AS col1
----
-15364

skipif mysql # not compatible
query I rowsort label-1754
SELECT 25 / 65 + ( - 98 + - 69 ) * + 92 AS col1
----
-15364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1755
SELECT ALL ( + CAST( NULL AS SIGNED ) ) * - 60 + + 71 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) * - 60 + + 71 * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - 34 * + 92 + 68 col0
----
-3060

query I rowsort
SELECT - - 59 * - 79 + ( 64 ) AS col1
----
-4597

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1759
SELECT - 42 + 28 DIV NULLIF ( 41 * - 28, + 50 * 81 )
----
-42

skipif mysql # not compatible
query I rowsort label-1759
SELECT - 42 + 28 / NULLIF ( 41 * - 28, + 50 * 81 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT ALL + CASE 25 WHEN + COUNT( * ) + 19 * - 82 THEN NULL WHEN ( COUNT( * ) ) / + COUNT( * ) + 11 * 9 THEN NULL WHEN + 63 THEN - 76 / 72 - 66 ELSE NULL END * 23 - MAX( ALL 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL + CASE 25 WHEN + COUNT ( * ) + 19 * - 82 THEN NULL WHEN ( COUNT ( * ) ) / + COUNT ( * ) + 11 * 9 THEN NULL WHEN + 63 THEN - 76 / 72 - 66 ELSE NULL END * 23 - MAX ( ALL 0 )
----
NULL

query I rowsort
SELECT + 81 * + 71 AS col2
----
5751

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT ALL + - MIN( DISTINCT 94 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL + - MIN ( DISTINCT 94 ) AS col2
----
-94

query I rowsort
SELECT + + ( - 51 ) + + 82 AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1764
SELECT ALL + COALESCE ( + ( + ( 56 ) ), 21 DIV - COUNT( * ) + 54 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL + COALESCE ( + ( + ( 56 ) ), 21 / - COUNT ( * ) + 54 ) AS col1
----
56

query I rowsort
SELECT DISTINCT 69 * 84
----
5796

query I rowsort
SELECT - + 91 * - 31
----
2821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT ALL + - CAST( 22 AS SIGNED ) * 17 AS col2
----
-374

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL + - CAST ( 22 AS INTEGER ) * 17 AS col2
----
-374

query I rowsort
SELECT DISTINCT + ( - COALESCE ( 18, COALESCE ( - 27, + 6 + + 18 ) ) ) AS col0
----
-18

query I rowsort
SELECT - 40 - + 93
----
-133

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT - MAX( ALL 64 ) * 71 AS col0
----
-4544

skipif mysql # not compatible
query I rowsort label-1771
SELECT - MAX ( ALL 64 ) * 71 AS col0
----
-4544

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT - MIN( 92 ) * 16
----
-1472

skipif mysql # not compatible
query I rowsort label-1772
SELECT - MIN ( 92 ) * 16
----
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT - + 39 + - COUNT( * ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1773
SELECT - + 39 + - COUNT ( * ) AS col0
----
-40

query I rowsort
SELECT ALL NULLIF ( + + NULLIF ( - 61, 12 ), - 21 ) AS col1
----
-61

query I rowsort
SELECT DISTINCT - 10 + 35 + 23 AS col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT ALL + 55 + + 52 + 45 DIV 39 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL + 55 + + 52 + 45 / 39 AS col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1777
SELECT DISTINCT CASE - 92 WHEN CAST( NULL AS SIGNED ) * - 45 THEN MIN( - CAST( + 3 AS SIGNED ) ) WHEN + 29 / - ( - 32 ) THEN COUNT( * ) WHEN ( 45 ) THEN NULL END + COUNT( * ) * 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT CASE - 92 WHEN CAST ( NULL AS INTEGER ) * - 45 THEN MIN ( - CAST ( + 3 AS INTEGER ) ) WHEN + 29 / - ( - 32 ) THEN COUNT ( * ) WHEN ( 45 ) THEN NULL END + COUNT ( * ) * 42 AS col0
----
NULL

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

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

query I rowsort
SELECT - ( - 66 ) * 47 AS col1
----
3102

query I rowsort
SELECT + 29 + 69
----
98

query I rowsort
SELECT ALL + 20 + - 52
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT DISTINCT + 11 + - COUNT( * ) * 39 col1
----
-28

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT + 11 + - COUNT ( * ) * 39 col1
----
-28

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

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

query I rowsort
SELECT ALL ( + - 23 ) + + 67
----
44

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

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

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

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

query I rowsort
SELECT DISTINCT 22 + - - 67 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT - NULLIF ( - - 6, COUNT( * ) + - 59 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1788
SELECT - NULLIF ( - - 6, COUNT ( * ) + - 59 ) AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1789
SELECT ALL + CAST( NULL AS SIGNED ) / 4 + - COUNT( 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL + CAST ( NULL AS INTEGER ) / 4 + - COUNT ( 87 ) AS col0
----
NULL

query I rowsort
SELECT + 63 * - 99 AS col1
----
-6237

query I rowsort
SELECT DISTINCT 74 * + 34
----
2516

query I rowsort
SELECT DISTINCT 86 - + 72 - + 42 * + 31 * - 88 AS col0
----
114590

onlyif mysql # DIV for integer division: 
query I rowsort label-1793
SELECT - 99 DIV 72
----
-1

skipif mysql # not compatible
query I rowsort label-1793
SELECT - 99 / 72
----
-1

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

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL ( + CAST ( ( - COUNT ( * ) ) AS INTEGER ) ) / - 95
----
0

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

skipif mysql # not compatible
query I rowsort label-1795
SELECT COUNT ( * ) * 62 / + COUNT ( * ) AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1796
SELECT - COALESCE ( - ( - 77 ), + MAX( DISTINCT + 67 ) * 25 + - ( - ( - ( CAST( + ( - NULLIF ( ( - 57 ), + 18 * 2 + - 84 ) ) AS SIGNED ) ) ) ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-1796
SELECT - COALESCE ( - ( - 77 ), + MAX ( DISTINCT + 67 ) * 25 + - ( - ( - ( CAST ( + ( - NULLIF ( ( - 57 ), + 18 * 2 + - 84 ) ) AS INTEGER ) ) ) ) ) AS col2
----
-77

query I rowsort
SELECT DISTINCT - 25 * + 31 * - 97 + - 45 AS col1
----
75130

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

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

query I rowsort
SELECT + 66 - 54 * + 54
----
-2850

query I rowsort
SELECT ALL - 81 * COALESCE ( ( + 59 ), 91 * - 68 + + 99 ) AS col1
----
-4779

query I rowsort
SELECT DISTINCT 53 * 39 + 7
----
2074

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT + CASE - 2 WHEN + 60 THEN 51 / 19 WHEN 55 THEN + 9 * 16 ELSE - NULLIF ( 46, + SUM( - 52 ) ) + 30 END AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-1802
SELECT + CASE - 2 WHEN + 60 THEN 51 / 19 WHEN 55 THEN + 9 * 16 ELSE - NULLIF ( 46, + SUM ( - 52 ) ) + 30 END AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL - + CASE - COUNT( * ) WHEN - ( ( 84 ) ) THEN + 74 + + ( + 52 + 43 ) WHEN + 53 * - 42 + - 6 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL - + CASE - COUNT ( * ) WHEN - ( ( 84 ) ) THEN + 74 + + ( + 52 + 43 ) WHEN + 53 * - 42 + - 6 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 37 + - 87 + - ( - 57 )
----
7

query I rowsort
SELECT - ( - - 41 ) * - 78
----
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT 27 - + 50 + MIN( DISTINCT 56 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-1806
SELECT 27 - + 50 + MIN ( DISTINCT 56 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT MAX( ALL - + 24 ) + - 45 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-1807
SELECT MAX ( ALL - + 24 ) + - 45 AS col0
----
-69

query I rowsort
SELECT + ( ( 59 ) ) * + 42
----
2478

query I rowsort
SELECT + 51 * + - 28 * 2 AS col1
----
-2856

query I rowsort
SELECT DISTINCT - + 19 * + 77 + 97 AS col2
----
-1366

query I rowsort
SELECT DISTINCT CASE + 3 WHEN 14 THEN 79 / - 33 END + + 3
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1812
SELECT + NULLIF ( 79, 67 * - 26 + 48 ) + - ( CAST( CAST( - 24 AS SIGNED ) AS SIGNED ) + + 61 )
----
42

skipif mysql # not compatible
query I rowsort label-1812
SELECT + NULLIF ( 79, 67 * - 26 + 48 ) + - ( CAST ( CAST ( - 24 AS INTEGER ) AS INTEGER ) + + 61 )
----
42

query I rowsort
SELECT ALL - 96 * - 68
----
6528

query I rowsort
SELECT DISTINCT 0 + - 11 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT 9 * + CASE NULLIF ( + 29, - COUNT( * ) ) WHEN NULLIF ( 31, + 66 - - 58 ) THEN NULL ELSE 96 + - 23 END
----
657

skipif mysql # not compatible
query I rowsort label-1815
SELECT 9 * + CASE NULLIF ( + 29, - COUNT ( * ) ) WHEN NULLIF ( 31, + 66 - - 58 ) THEN NULL ELSE 96 + - 23 END
----
657

query I rowsort
SELECT DISTINCT - 79 + - + 46
----
-125

query I rowsort
SELECT ALL + 24 + - + 89 + + 15 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT ALL - CASE WHEN NOT ( NULL ) IS NULL THEN NULL WHEN NULL IS NULL THEN - COUNT( * ) ELSE - 89 END + - COUNT( * ) * - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL - CASE WHEN NOT ( NULL ) IS NULL THEN NULL WHEN NULL IS NULL THEN - COUNT ( * ) ELSE - 89 END + - COUNT ( * ) * - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT 99 - + + ( + MIN( 41 ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1819
SELECT 99 - + + ( + MIN ( 41 ) ) AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1820
SELECT DISTINCT - 52 DIV 21 * - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT - 52 / 21 * - COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT 9 - + COALESCE ( 74, 43 * 35 ) * + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-1821
SELECT 9 - + COALESCE ( 74, 43 * 35 ) * + COUNT ( * )
----
-65

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1823
SELECT 24 AS col2, 23 * + 64 * 83 + CAST( NULL AS SIGNED ) * + COALESCE ( 70 * - 69, - 70 / COUNT( DISTINCT 42 ) ) col0
----
24
NULL

skipif mysql # not compatible
query II rowsort label-1823
SELECT 24 AS col2, 23 * + 64 * 83 + CAST ( NULL AS INTEGER ) * + COALESCE ( 70 * - 69, - 70 / COUNT ( DISTINCT 42 ) ) col0
----
24
NULL

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

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

query II rowsort
SELECT DISTINCT 55 AS col1, 59
----
55
59

query I rowsort
SELECT ALL 33 - - 78 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT 34 - MAX( DISTINCT - + 63 ) + 94
----
191

skipif mysql # not compatible
query I rowsort label-1827
SELECT 34 - MAX ( DISTINCT - + 63 ) + 94
----
191

query I rowsort
SELECT 8 + 18 AS col0
----
26

query I rowsort
SELECT 44 - + 21
----
23

query I rowsort
SELECT 18 + 21 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT ALL - + ( - CASE - - COUNT( * ) WHEN + 26 THEN 83 END ) - 82 / ( COUNT( * ) * + COUNT( * ) + + 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL - + ( - CASE - - COUNT ( * ) WHEN + 26 THEN 83 END ) - 82 / ( COUNT ( * ) * + COUNT ( * ) + + 16 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1832
SELECT + 6 * + + 39 * CAST( NULL AS SIGNED ) - + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1832
SELECT + 6 * + + 39 * CAST ( NULL AS INTEGER ) - + 30 AS col2
----
NULL

query I rowsort
SELECT - + 22 * + 88 + - 94
----
-2030

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1834
SELECT ALL - - CASE - CAST( 45 AS DECIMAL ) WHEN 82 * 15 + - 67 THEN NULL ELSE 70 END AS col0
----
70

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL - - CASE - CAST ( 45 AS REAL ) WHEN 82 * 15 + - 67 THEN NULL ELSE 70 END AS col0
----
70

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

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT - MAX ( DISTINCT 4 )
----
-4

query II rowsort
SELECT DISTINCT - - 42, 42 + + 11 + - 51 AS col2
----
42
2

query I rowsort
SELECT DISTINCT - ( 57 ) AS col2
----
-57

query I rowsort
SELECT + - 21 * - + 17 + - 69 * 26 + + 85
----
-1352

query I rowsort
SELECT DISTINCT 87 * 22 AS col2
----
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT DISTINCT - ( - 8 ) + - + COUNT( * ) + - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT - ( - 8 ) + - + COUNT ( * ) + - COUNT ( * )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1841
SELECT ALL - CAST( NULL AS SIGNED ) * - 96 / - + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL - CAST ( NULL AS INTEGER ) * - 96 / - + 14 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1842
SELECT ( 2 ) / + 87 / SUM( DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1842
SELECT ( 2 ) / + 87 / SUM ( DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) )
----
NULL

query I rowsort
SELECT ALL + 45 + - 60 + - + 97
----
-112

query II rowsort
SELECT + - 75 AS col2, 52 col2
----
-75
52

query I rowsort
SELECT ALL 19 + - 70
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT - 89 + COALESCE ( + ( + 67 ), 2 + + COUNT( * ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1846
SELECT - 89 + COALESCE ( + ( + 67 ), 2 + + COUNT ( * ) ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT 51 DIV + 13 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1848
SELECT 51 / + 13 AS col2
----
3

query I rowsort
SELECT ALL 72 + - 23
----
49

query I rowsort
SELECT DISTINCT - 37 + - 3 col2
----
-40

query II rowsort
SELECT DISTINCT - + 81, - 93 AS col0
----
-81
-93

query I rowsort
SELECT ALL 47 + + NULLIF ( 0, - 91 + 36 ) * + 24 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT + 27 * - 14 - COUNT( * )
----
-379

skipif mysql # not compatible
query I rowsort label-1853
SELECT + 27 * - 14 - COUNT ( * )
----
-379

query I rowsort
SELECT ( - 18 ) + + - 76 + + 31
----
-63

query I rowsort
SELECT 19 + + 35 col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1856
SELECT 56 * - ( + ( - - CASE + 4 WHEN - 58 THEN + CAST( NULL AS DECIMAL ) END ) ) / - COUNT( * ) + + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT 56 * - ( + ( - - CASE + 4 WHEN - 58 THEN + CAST ( NULL AS REAL ) END ) ) / - COUNT ( * ) + + 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT COUNT( * ) * - + 47 col1
----
-47

skipif mysql # not compatible
query I rowsort label-1857
SELECT COUNT ( * ) * - + 47 col1
----
-47

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

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

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

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL 75 - CAST ( NULL AS INTEGER ) + - - 30
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1861
SELECT ALL + CASE + 26 WHEN - + 77 THEN - 62 ELSE NULL END - - MIN( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL + CASE + 26 WHEN - + 77 THEN - 62 ELSE NULL END - - MIN ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - CASE - 22 WHEN - + 86 THEN NULL ELSE - 29 END AS col2
----
29

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1865
SELECT DISTINCT MIN( - 36 ) * + 55 * CAST( - ( 30 ) AS SIGNED ) * 21 AS col1
----
1247400

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT MIN ( - 36 ) * + 55 * CAST ( - ( 30 ) AS INTEGER ) * 21 AS col1
----
1247400

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT + 3 DIV - 2 col2
----
-1

skipif mysql # not compatible
query I rowsort label-1868
SELECT + 3 / - 2 col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT - 68 + + - 52 + CASE - + COUNT( * ) WHEN - 51 THEN - 21 * + 17 ELSE - 33 END + 62
----
-91

skipif mysql # not compatible
query I rowsort label-1870
SELECT - 68 + + - 52 + CASE - + COUNT ( * ) WHEN - 51 THEN - 21 * + 17 ELSE - 33 END + 62
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1871
SELECT DISTINCT + 92 DIV + 42 * COUNT( * ) + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT + 92 / + 42 * COUNT ( * ) + + COUNT ( * )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1872
SELECT ALL + COUNT( + CAST( NULL AS SIGNED ) ) DIV - 14 * + 80
----
0

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL + COUNT ( + CAST ( NULL AS INTEGER ) ) / - 14 * + 80
----
0

query I rowsort
SELECT DISTINCT + 42 * 22 + + 71 AS col0
----
995

query II rowsort
SELECT + + 9 - + 56 AS col2, 93
----
-47
93

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

query I rowsort
SELECT ALL + 81 * 30 + + + NULLIF ( + 18, - 76 * - 32 ) + + 22
----
2470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1877
SELECT DISTINCT + COUNT( * ) * + + 31 + - 97 DIV - 44
----
33

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT + COUNT ( * ) * + + 31 + - 97 / - 44
----
33

query I rowsort
SELECT - ( 90 ) + ( - 83 )
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT DISTINCT 52 * 44 * + 83 + 44 - 56 * + 84 + + COUNT( * )
----
185245

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT 52 * 44 * + 83 + 44 - 56 * + 84 + + COUNT ( * )
----
185245

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT + - 79 * + SUM( + + ( + 67 ) ) col2
----
-5293

skipif mysql # not compatible
query I rowsort label-1880
SELECT + - 79 * + SUM ( + + ( + 67 ) ) col2
----
-5293

query I rowsort
SELECT - 64 - - ( - - 8 ) + NULLIF ( 44, - 30 ) + 80 * 14 AS col1
----
1108

query I rowsort
SELECT - ( + 0 ) * + + 11 AS col2
----
0

query I rowsort
SELECT DISTINCT 60 * 63 + - 14 * - + 66 AS col2
----
4704

query I rowsort
SELECT + NULLIF ( + 87, - 99 )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1885
SELECT DISTINCT + - CAST( - 95 AS SIGNED ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT + - CAST ( - 95 AS INTEGER ) AS col1
----
95

query I rowsort
SELECT ALL + + 70 col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT - - COUNT( * ) + - - SUM( - 41 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1887
SELECT - - COUNT ( * ) + - - SUM ( - 41 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT + NULLIF ( + - 54, + 86 * + 62 - 59 + 64 * + COUNT( + 27 ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1888
SELECT + NULLIF ( + - 54, + 86 * + 62 - 59 + 64 * + COUNT ( + 27 ) ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT NULLIF ( 19, + SUM( ALL 44 ) )
----
19

skipif mysql # not compatible
query I rowsort label-1889
SELECT NULLIF ( 19, + SUM ( ALL 44 ) )
----
19

query I rowsort
SELECT 60 * + 40 + - COALESCE ( - - 33, + - 84 * + 80 ) + 52
----
2419

query I rowsort
SELECT + 6 + - 72 AS col1
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT MAX( + 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1893
SELECT MAX ( + 84 ) AS col0
----
84

query I rowsort
SELECT - 52 * 65 * - 25 * + + 74
----
6253000

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL ( - CASE + ( 95 ) WHEN - 4 THEN NULL ELSE - 27 + + COUNT( * ) END ) * 50 AS col2
----
1300

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL ( - CASE + ( 95 ) WHEN - 4 THEN NULL ELSE - 27 + + COUNT ( * ) END ) * 50 AS col2
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL CASE + + ( + COUNT( * ) ) WHEN + 41 THEN + - 93 * 60 WHEN 2 THEN NULL WHEN - MAX( 7 ) - 41 THEN NULL END * - 20 - - 71 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL CASE + + ( + COUNT ( * ) ) WHEN + 41 THEN + - 93 * 60 WHEN 2 THEN NULL WHEN - MAX ( 7 ) - 41 THEN NULL END * - 20 - - 71 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT MAX( 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1897
SELECT MAX ( 2 ) AS col2
----
2

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

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

query I rowsort
SELECT + 22 * + 36
----
792

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

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

query I rowsort
SELECT + 98 * - 40
----
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT - 10 + + 21 - - ( - MIN( + 85 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-1902
SELECT - 10 + + 21 - - ( - MIN ( + 85 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT + 4 - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1903
SELECT + 4 - COUNT ( * ) AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1904
SELECT + 63 * - CAST( - ( CASE 45 WHEN - 57 THEN CAST( NULL AS SIGNED ) * - 41 + 90 ELSE 96 END ) AS SIGNED ) AS col0
----
6048

skipif mysql # not compatible
query I rowsort label-1904
SELECT + 63 * - CAST ( - ( CASE 45 WHEN - 57 THEN CAST ( NULL AS INTEGER ) * - 41 + 90 ELSE 96 END ) AS INTEGER ) AS col0
----
6048

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

skipif mysql # not compatible
query I rowsort label-1905
SELECT + 80 - - 14 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1907
SELECT ALL + + 30 * - CAST( NULL AS DECIMAL ) * 84 * 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL + + 30 * - CAST ( NULL AS REAL ) * 84 * 37 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT DISTINCT 24 * COALESCE ( + - COUNT( DISTINCT 17 ), COUNT( * ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT 24 * COALESCE ( + - COUNT ( DISTINCT 17 ), COUNT ( * ) ) AS col1
----
-24

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

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL - COUNT ( * ) + ( - 79 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT + - COUNT( * ) + 67 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-1911
SELECT + - COUNT ( * ) + 67 AS col0
----
66

query I rowsort
SELECT - - ( - - 32 ) - 98
----
-66

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

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL + 69 + + COUNT ( * ) AS col2
----
70

query I rowsort
SELECT + + 64 + + 21 * + 86 col0
----
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT - MIN( - 49 ) - + 11 * 31 AS col0
----
-292

skipif mysql # not compatible
query I rowsort label-1915
SELECT - MIN ( - 49 ) - + 11 * 31 AS col0
----
-292

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT ALL 51 * - - 10 * - SUM( ALL - ( - 24 ) ) AS col0
----
-12240

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL 51 * - - 10 * - SUM ( ALL - ( - 24 ) ) AS col0
----
-12240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1917
SELECT + - 89 + - 85 * CAST( AVG ( - + 69 ) AS SIGNED )
----
5776

skipif mysql # not compatible
query I rowsort label-1917
SELECT + - 89 + - 85 * CAST ( AVG ( - + 69 ) AS INTEGER )
----
5776

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT - COUNT( ALL + - 44 ) + + 45 * - + 29 col0
----
-1306

skipif mysql # not compatible
query I rowsort label-1918
SELECT - COUNT ( ALL + - 44 ) + + 45 * - + 29 col0
----
-1306

onlyif mysql # DIV for integer division: 
query I rowsort label-1919
SELECT ALL + 77 DIV + - NULLIF ( + 69, + 23 * + NULLIF ( 5, 81 ) ) + + COALESCE ( 71, - 43 DIV + 67 )
----
70

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL + 77 / + - NULLIF ( + 69, + 23 * + NULLIF ( 5, 81 ) ) + + COALESCE ( 71, - 43 / + 67 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1920
SELECT DISTINCT 8 / + CAST( NULL AS SIGNED ) + + NULLIF ( + - 88, + CASE - 46 WHEN 92 + 95 THEN - COALESCE ( - 48, 42 + - COUNT( ALL ( 13 ) + - ( 14 ) ) ) + + 6 ELSE NULL END ) + MAX( 50 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT 8 / + CAST ( NULL AS INTEGER ) + + NULLIF ( + - 88, + CASE - 46 WHEN 92 + 95 THEN - COALESCE ( - 48, 42 + - COUNT ( ALL ( 13 ) + - ( 14 ) ) ) + + 6 ELSE NULL END ) + MAX ( 50 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT + 66 / - + CAST( NULL AS SIGNED ) * 34 * + 4 + 54 + 41 * 37 + 27 * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT + 66 / - + CAST ( NULL AS INTEGER ) * 34 * + 4 + 54 + 41 * 37 + 27 * - 43
----
NULL

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

query I rowsort
SELECT - - 48 + + ( NULLIF ( 44, - - 50 ) ) * 51
----
2292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1924
SELECT ALL - 37 * + 7 - + CAST( + - 88 AS SIGNED )
----
-171

skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL - 37 * + 7 - + CAST ( + - 88 AS INTEGER )
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1925
SELECT - + COUNT( * ) * + + 77 DIV - - ( + - NULLIF ( 86, COUNT( * ) * 52 - + 68 ) ) * + 95 + 47 * + 82
----
3854

skipif mysql # not compatible
query I rowsort label-1925
SELECT - + COUNT ( * ) * + + 77 / - - ( + - NULLIF ( 86, COUNT ( * ) * 52 - + 68 ) ) * + 95 + 47 * + 82
----
3854

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT ALL - + 45 DIV 21 * ( 78 ) AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL - + 45 / 21 * ( 78 ) AS col0
----
-156

query I rowsort
SELECT - 37 * + 61 + + 38 AS col1
----
-2219

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT + + 62 * - - 79 - - NULLIF ( - + NULLIF ( + MIN( + 10 ), - 31 * + 68 + - SUM( - 68 ) * - COUNT( * ) ), 50 ) + 99 AS col1
----
4987

skipif mysql # not compatible
query I rowsort label-1928
SELECT + + 62 * - - 79 - - NULLIF ( - + NULLIF ( + MIN ( + 10 ), - 31 * + 68 + - SUM ( - 68 ) * - COUNT ( * ) ), 50 ) + 99 AS col1
----
4987

query II rowsort
SELECT 94, 73 - 17 * - - 11 AS col2
----
94
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-1930
SELECT ALL + 13 DIV - 73 - 63 DIV 13 + + 26 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL + 13 / - 73 - 63 / 13 + + 26 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1931
SELECT - ( + - 10 ) * - 50 - - + MAX( ALL - CAST( NULL AS SIGNED ) ) + 17 * + 18 * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1931
SELECT - ( + - 10 ) * - 50 - - + MAX ( ALL - CAST ( NULL AS INTEGER ) ) + 17 * + 18 * - 90
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1932
SELECT - CAST( - 64 AS SIGNED ) + - - 56
----
120

skipif mysql # not compatible
query I rowsort label-1932
SELECT - CAST ( - 64 AS INTEGER ) + - - 56
----
120

query I rowsort
SELECT DISTINCT + 30 * 82 - - + 77
----
2537

onlyif mysql # aggregate syntax: 
query II rowsort label-1934
SELECT ALL - 92, SUM( + - 42 ) AS col0
----
-92
-42

skipif mysql # not compatible
query II rowsort label-1934
SELECT ALL - 92, SUM ( + - 42 ) AS col0
----
-92
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1935
SELECT DISTINCT CAST( - 21 AS SIGNED ) DIV - 46 + 4 DIV - - 61
----
0

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT CAST ( - 21 AS INTEGER ) / - 46 + 4 / - - 61
----
0

query II rowsort
SELECT 99 + + 77 AS col1, 0
----
176
0

query I rowsort
SELECT 34 - + 7 AS col2
----
27

query I rowsort
SELECT 8 * - 62 * - 60 col0
----
29760

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT NULLIF ( + 49, + COUNT( * ) ) + + 14 col1
----
63

skipif mysql # not compatible
query I rowsort label-1939
SELECT NULLIF ( + 49, + COUNT ( * ) ) + + 14 col1
----
63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT 27 DIV + 32 * 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1941
SELECT 27 / + 32 * 43 AS col2
----
0

query I rowsort
SELECT ALL 74 * 85 AS col0
----
6290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1943
SELECT ALL - ( + MAX( ALL 15 ) ) DIV - COUNT( * )
----
15

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

query I rowsort
SELECT 43 + + + 99
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1945
SELECT ALL - 13 * + + 50 AS col0, 67 - + CASE + CASE - MAX( + ( + 67 ) ) WHEN COUNT( * ) THEN - MIN( DISTINCT 84 ) / 42 + CAST( NULL AS SIGNED ) WHEN 84 + 86 THEN NULL ELSE - 27 * 23 + - 18 / - CASE 10 WHEN 16 + 53 THEN + SUM( ALL 31 ) * - ( - 73 * - ( - 79 * 78 ) ) END END WHEN - COUNT( * ) - - COUNT( * ) * - NULLIF ( + 42 * - COUNT( * ), + 30 + 52 ) THEN + 84 * - 11 WHEN + 19 THEN NULL END AS col1
----
-650
NULL

skipif mysql # not compatible
query II rowsort label-1945
SELECT ALL - 13 * + + 50 AS col0, 67 - + CASE + CASE - MAX ( + ( + 67 ) ) WHEN COUNT ( * ) THEN - MIN ( DISTINCT 84 ) / 42 + CAST ( NULL AS INTEGER ) WHEN 84 + 86 THEN NULL ELSE - 27 * 23 + - 18 / - CASE 10 WHEN 16 + 53 THEN + SUM ( ALL 31 ) * - ( - 73 * - ( - 79 * 78 ) ) END END WHEN - COUNT ( * ) - - COUNT ( * ) * - NULLIF ( + 42 * - COUNT ( * ), + 30 + 52 ) THEN + 84 * - 11 WHEN + 19 THEN NULL END AS col1
----
-650
NULL

query I rowsort
SELECT DISTINCT + ( 29 ) + + 62 AS col0
----
91

query I rowsort
SELECT ALL 44 + 40 + 52 AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT + 43 * - + 10 * + COALESCE ( + MAX( ALL - 17 ), + 5 + 13 )
----
7310

skipif mysql # not compatible
query I rowsort label-1948
SELECT + 43 * - + 10 * + COALESCE ( + MAX ( ALL - 17 ), + 5 + 13 )
----
7310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1949
SELECT ALL + + 11 + 98 + + + CAST( - + 90 AS SIGNED ) * - 61 * 70
----
384409

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + + 11 + 98 + + + CAST ( - + 90 AS INTEGER ) * - 61 * 70
----
384409

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

skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT + 15 + - COUNT ( * ) AS col0
----
14

query I rowsort
SELECT DISTINCT - 40 + 84 + - + 18 * - 3
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT ALL 36 + - 87 + - 36 DIV 34 - + + 75 col1
----
-127

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL 36 + - 87 + - 36 / 34 - + + 75 col1
----
-127

query I rowsort
SELECT - 10 * 20 AS col1
----
-200

query I rowsort
SELECT 47 + 18 col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1955
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + 71 + - + 62
----
NULL
9

skipif mysql # not compatible
query II rowsort label-1955
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + 71 + - + 62
----
NULL
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1956
SELECT ALL + ( + CASE - 86 WHEN + - 54 - 1 THEN NULL ELSE - COUNT( * ) DIV + 33 + 59 * + 54 END ) AS col1
----
3186

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL + ( + CASE - 86 WHEN + - 54 - 1 THEN NULL ELSE - COUNT ( * ) / + 33 + 59 * + 54 END ) AS col1
----
3186

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

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

query I rowsort
SELECT 27 * 95
----
2565

query I rowsort
SELECT ALL - 41 * 56 AS col0
----
-2296

query II rowsort
SELECT + 56 AS col0, - 85 * 44 * 5
----
56
-18700

query I rowsort
SELECT ALL - + ( + 50 ) + + 85
----
35

query II rowsort
SELECT + 7, - COALESCE ( - + 55, - + 40 ) AS col1
----
7
55

query I rowsort
SELECT ALL - 97 * 2
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT 91 * NULLIF ( - 58, COUNT( 61 ) ) - - 99 * + ( CASE COUNT( DISTINCT 51 ) WHEN - 56 + + 65 THEN + 15 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT 91 * NULLIF ( - 58, COUNT ( 61 ) ) - - 99 * + ( CASE COUNT ( DISTINCT 51 ) WHEN - 56 + + 65 THEN + 15 END ) AS col0
----
NULL

query I rowsort
SELECT 50 * + 58 * 2 AS col2
----
5800

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT + - 86 * 92 + 57 + - 20 * - 58 * + + COUNT( * ) - 87 + COUNT( * )
----
-6781

skipif mysql # not compatible
query I rowsort label-1966
SELECT + - 86 * 92 + 57 + - 20 * - 58 * + + COUNT ( * ) - 87 + COUNT ( * )
----
-6781

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT NULLIF ( - 38, + ( + 89 ) + - COUNT( * ) ) * + 27 AS col2
----
-1026

skipif mysql # not compatible
query I rowsort label-1968
SELECT NULLIF ( - 38, + ( + 89 ) + - COUNT ( * ) ) * + 27 AS col2
----
-1026

query I rowsort
SELECT + ( - 12 ) * 97 col0
----
-1164

query I rowsort
SELECT ( + - ( - 63 ) ) - - + 91 AS col0
----
154

query I rowsort
SELECT 79 * + - 95 * 1 * - - 86 - - 6 + + - 67 AS col0
----
-645491

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1972
SELECT ALL - COUNT( * ) DIV - + 36 AS col2, ( - 22 ) * - COUNT( * ) * - + COUNT( * ) - + 95
----
0
-117

skipif mysql # not compatible
query II rowsort label-1972
SELECT ALL - COUNT ( * ) / - + 36 AS col2, ( - 22 ) * - COUNT ( * ) * - + COUNT ( * ) - + 95
----
0
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1973
SELECT 18 * + 47 AS col0, - CAST( + COUNT( * ) AS SIGNED )
----
846
-1

skipif mysql # not compatible
query II rowsort label-1973
SELECT 18 * + 47 AS col0, - CAST ( + COUNT ( * ) AS INTEGER )
----
846
-1

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

query I rowsort
SELECT 28 * 93 * 90
----
234360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1976
SELECT DISTINCT 87 DIV NULLIF ( COUNT( ALL + - 40 ), - 78 ) * + + 78
----
6786

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT 87 / NULLIF ( COUNT ( ALL + - 40 ), - 78 ) * + + 78
----
6786

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1977
SELECT 2 + - 18 DIV - 45 * - SUM( DISTINCT + 94 ) AS col0, - COUNT( DISTINCT 93 )
----
2
-1

skipif mysql # not compatible
query II rowsort label-1977
SELECT 2 + - 18 / - 45 * - SUM ( DISTINCT + 94 ) AS col0, - COUNT ( DISTINCT 93 )
----
2
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT 37 DIV - 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1978
SELECT 37 / - 49 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1979
SELECT 35 * - 82 + + + 13 + COALESCE ( 98, - 25 * - - 27 ) * CAST( 41 - 85 / 14 AS SIGNED )
----
573

skipif mysql # not compatible
query I rowsort label-1979
SELECT 35 * - 82 + + + 13 + COALESCE ( 98, - 25 * - - 27 ) * CAST ( 41 - 85 / 14 AS INTEGER )
----
573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1980
SELECT ALL + ( 72 ) * - 71 - + AVG ( - + 88 ) + ( + CASE + COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN + 97 ELSE NULL END ) + CASE CAST( NULL AS DECIMAL ) + - 28 WHEN CASE + COUNT( * ) WHEN 50 * + 19 THEN NULL ELSE + COALESCE ( COUNT( 40 ), 24, 10 / MIN( - CASE 53 WHEN - 12 + - 32 THEN 78 * 32 END ) ) * + 96 END THEN - 7 WHEN 68 THEN 76 ELSE + 18 * 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL + ( 72 ) * - 71 - + AVG ( - + 88 ) + ( + CASE + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN + 97 ELSE NULL END ) + CASE CAST ( NULL AS REAL ) + - 28 WHEN CASE + COUNT ( * ) WHEN 50 * + 19 THEN NULL ELSE + COALESCE ( COUNT ( 40 ), 24, 10 / MIN ( - CASE 53 WHEN - 12 + - 32 THEN 78 * 32 END ) ) * + 96 END THEN - 7 WHEN 68 THEN 76 ELSE + 18 * 63 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1981
SELECT DISTINCT + 26 * CAST( - + 91 AS SIGNED ) AS col0
----
-2366

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT + 26 * CAST ( - + 91 AS INTEGER ) AS col0
----
-2366

query I rowsort
SELECT ALL 45 * + 10
----
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1983
SELECT ALL + AVG ( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) + - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL + AVG ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) + - 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT 72 * + 78 * + + 52 * + MAX( DISTINCT 28 ) * + 84 + + 34 AS col0
----
686859298

skipif mysql # not compatible
query I rowsort label-1984
SELECT 72 * + 78 * + + 52 * + MAX ( DISTINCT 28 ) * + 84 + + 34 AS col0
----
686859298

query I rowsort
SELECT 69 * COALESCE ( - 62, - + 92 * + - 9, - 44 )
----
-4278

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL + 11 + - + CASE 86 WHEN + COUNT( * ) * + 28 THEN - 74 + - - 78 WHEN - SUM( DISTINCT - 6 ) * + ( 72 * 32 ) + 6 THEN - COUNT( * ) * 86 END + MAX( ALL ( + 15 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL + 11 + - + CASE 86 WHEN + COUNT ( * ) * + 28 THEN - 74 + - - 78 WHEN - SUM ( DISTINCT - 6 ) * + ( 72 * 32 ) + 6 THEN - COUNT ( * ) * 86 END + MAX ( ALL ( + 15 ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1987
SELECT ALL - 53 DIV - + 18
----
2

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL - 53 / - + 18
----
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT - CASE + + 60 WHEN + CASE + 18 WHEN CAST( 47 AS SIGNED ) THEN NULL ELSE + 18 + - 27 * 43 END * 83 THEN 89 + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT - CASE + + 60 WHEN + CASE + 18 WHEN CAST ( 47 AS INTEGER ) THEN NULL ELSE + 18 + - 27 * 43 END * 83 THEN 89 + 96 END
----
NULL

query I rowsort
SELECT + 17 - 96 + + 20 * - 43 * - 41 AS col0
----
35181

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1991
SELECT ALL - - CAST( NULL AS DECIMAL ) / - 25 AS col0, 85
----
NULL
85

skipif mysql # not compatible
query II rowsort label-1991
SELECT ALL - - CAST ( NULL AS REAL ) / - 25 AS col0, 85
----
NULL
85

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

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

query I rowsort
SELECT DISTINCT - 59 * - 17 col0
----
1003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1994
SELECT ALL + 1 - 37 + - + CASE - 0 WHEN + + COUNT( * ) THEN NULL WHEN 9 THEN NULL ELSE + 67 END + + ( 29 ) DIV COUNT( ALL + 78 * 28 )
----
-74

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL + 1 - 37 + - + CASE - 0 WHEN + + COUNT ( * ) THEN NULL WHEN 9 THEN NULL ELSE + 67 END + + ( 29 ) / COUNT ( ALL + 78 * 28 )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1995
SELECT 75 + - 20 AS col2, ( + 26 ) DIV + NULLIF ( - 67, + 77 * COUNT( * ) ) + 83
----
55
83

skipif mysql # not compatible
query II rowsort label-1995
SELECT 75 + - 20 AS col2, ( + 26 ) / + NULLIF ( - 67, + 77 * COUNT ( * ) ) + 83
----
55
83

query I rowsort
SELECT - 66 - - + 39
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT 5 * 6 DIV ( + 90 )
----
0

skipif mysql # not compatible
query I rowsort label-1997
SELECT 5 * 6 / ( + 90 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT COUNT( + 62 ) - - CASE + + ( 16 ) WHEN + 17 * - 98 / COUNT( * ) + + 35 THEN - 38 + + ( 54 ) WHEN COUNT( * ) + COUNT( * ) THEN NULL WHEN 29 + ( 24 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT COUNT ( + 62 ) - - CASE + + ( 16 ) WHEN + 17 * - 98 / COUNT ( * ) + + 35 THEN - 38 + + ( 54 ) WHEN COUNT ( * ) + COUNT ( * ) THEN NULL WHEN 29 + ( 24 ) THEN NULL ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT ( + + ( + 24 ) ) * - 51
----
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT + ( - CASE + + 19 WHEN 8 + 42 THEN + 39 WHEN - 25 THEN COUNT( ALL - 44 ) + 62 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT + ( - CASE + + 19 WHEN 8 + 42 THEN + 39 WHEN - 25 THEN COUNT ( ALL - 44 ) + 62 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2003
SELECT - COUNT( * ) DIV COALESCE ( 43, COUNT( * ) ) + ( + 8 ) col2
----
8

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

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

query I rowsort
SELECT + 30 + - 52 * CASE + 48 WHEN + 19 THEN NULL WHEN - 69 THEN - 13 / - 77 - - 99 END
----
NULL

query I rowsort
SELECT + 6 + - 90 AS col0
----
-84

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT COUNT( * ) * - ( - - 34 ) + - 44 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2010
SELECT COUNT ( * ) * - ( - - 34 ) + - 44 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2011
SELECT ALL 81 * - COALESCE ( + COUNT( * ), - - 50, 15 * + 98 ) AS col1, + 30 AS col0
----
-81
30

skipif mysql # not compatible
query II rowsort label-2011
SELECT ALL 81 * - COALESCE ( + COUNT ( * ), - - 50, 15 * + 98 ) AS col1, + 30 AS col0
----
-81
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2012
SELECT + 87 DIV + 14
----
6

skipif mysql # not compatible
query I rowsort label-2012
SELECT + 87 / + 14
----
6

query I rowsort
SELECT - 93 * 40 col0
----
-3720

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT ALL + 65 * CASE COUNT( * ) WHEN - COUNT( * ) * - 22 THEN - COUNT( * ) + 25 + + 73 + COALESCE ( + 87, + 17 * + 30, 35 ) * 51 * + 49 ELSE - COUNT( * ) END + - 26 * 87 col2
----
-2327

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL + 65 * CASE COUNT ( * ) WHEN - COUNT ( * ) * - 22 THEN - COUNT ( * ) + 25 + + 73 + COALESCE ( + 87, + 17 * + 30, 35 ) * 51 * + 49 ELSE - COUNT ( * ) END + - 26 * 87 col2
----
-2327

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

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

query I rowsort
SELECT ALL + 16 * - + 63 + ( - 72 ) - + 83 * + 91 AS col0
----
-8633

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT + NULLIF ( - - ( - - 36 ), - - MIN( 6 ) / - 37 + - 27 )
----
36

skipif mysql # not compatible
query I rowsort label-2017
SELECT + NULLIF ( - - ( - - 36 ), - - MIN ( 6 ) / - 37 + - 27 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2018
SELECT ALL - 39 * + - 31 + 77 DIV - MAX( ALL - 79 ) AS col1
----
1209

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - 39 * + - 31 + 77 / - MAX ( ALL - 79 ) AS col1
----
1209

query I rowsort
SELECT DISTINCT + 55 * + + 18 + - 33 + - 26 * + + 87 AS col2
----
-1305

query I rowsort
SELECT + 21 + 19
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2021
SELECT DISTINCT 33 DIV + 1 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT 33 / + 1 AS col1
----
33

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

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

query I rowsort
SELECT - NULLIF ( + 76, + 46 + - - 38 - - + 96 )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2024
SELECT - 3 + 77 * 16 - - 95 + + ( - - COUNT( * ) ) * - + 29 DIV + + 99 * - CAST( 82 AS SIGNED ) + + 65 * 48 AS col2
----
4444

skipif mysql # not compatible
query I rowsort label-2024
SELECT - 3 + 77 * 16 - - 95 + + ( - - COUNT ( * ) ) * - + 29 / + + 99 * - CAST ( 82 AS INTEGER ) + + 65 * 48 AS col2
----
4444

onlyif mysql # aggregate syntax: 
query II rowsort label-2025
SELECT - - MAX( + - 64 ) + + 17 AS col0, - 54
----
-47
-54

skipif mysql # not compatible
query II rowsort label-2025
SELECT - - MAX ( + - 64 ) + + 17 AS col0, - 54
----
-47
-54

query I rowsort
SELECT ALL + 65 + - - 86 AS col1
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + + 29 * + COUNT( ALL 55 ) + - + 63
----
-34

skipif mysql # not compatible
query I rowsort label-2027
SELECT + + 29 * + COUNT ( ALL 55 ) + - + 63
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT ALL - + COUNT( * ) * + + 40 * + - 43
----
1720

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - + COUNT ( * ) * + + 40 * + - 43
----
1720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2029
SELECT DISTINCT - CAST( + 34 AS SIGNED ) * 89 * - 29 AS col0
----
87754

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT - CAST ( + 34 AS INTEGER ) * 89 * - 29 AS col0
----
87754

onlyif mysql # aggregate syntax: 
query II rowsort label-2030
SELECT ALL - MIN( ALL ( - + 78 ) ) AS col0, + 39
----
78
39

skipif mysql # not compatible
query II rowsort label-2030
SELECT ALL - MIN ( ALL ( - + 78 ) ) AS col0, + 39
----
78
39

query II rowsort
SELECT ALL 74 AS col2, 47 AS col0
----
74
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT - + NULLIF ( - + 56, COUNT( * ) ) + + 63 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-2033
SELECT - + NULLIF ( - + 56, COUNT ( * ) ) + + 63 AS col2
----
119

query I rowsort
SELECT ALL + NULLIF ( + 79, + - 43 ) AS col0
----
79

query I rowsort
SELECT - 3 * - + 79
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT + MAX( - - 91 ) col0
----
91

skipif mysql # not compatible
query I rowsort label-2036
SELECT + MAX ( - - 91 ) col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT - + ( - COUNT( * ) ) + ( + 92 ) col2
----
93

skipif mysql # not compatible
query I rowsort label-2037
SELECT - + ( - COUNT ( * ) ) + ( + 92 ) col2
----
93

query II rowsort
SELECT - - 66, - 0 AS col1
----
66
0

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

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

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

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL + - ( - COUNT ( * ) ) * - 65 * - + COUNT ( * ) + - 0 AS col0
----
65

query I rowsort
SELECT - + 92 + - 77 AS col1
----
-169

onlyif mysql # DIV for integer division: 
query II rowsort label-2042
SELECT DISTINCT + + 34 DIV + - 41 * 76 AS col2, 64 AS col0
----
0
64

skipif mysql # not compatible
query II rowsort label-2042
SELECT DISTINCT + + 34 / + - 41 * 76 AS col2, 64 AS col0
----
0
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2043
SELECT 63, NULLIF ( CAST( NULL AS SIGNED ), + CASE + CASE - + 36 WHEN 89 THEN NULL WHEN - COUNT( * ) THEN + COALESCE ( + 23, - 34 ) WHEN MAX( ALL - 38 ) - 37 * 74 THEN NULL ELSE NULL END WHEN + 79 THEN + 12 * 54 ELSE 49 * - 28 END + 89 * + 17 ) AS col0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-2043
SELECT 63, NULLIF ( CAST ( NULL AS INTEGER ), + CASE + CASE - + 36 WHEN 89 THEN NULL WHEN - COUNT ( * ) THEN + COALESCE ( + 23, - 34 ) WHEN MAX ( ALL - 38 ) - 37 * 74 THEN NULL ELSE NULL END WHEN + 79 THEN + 12 * 54 ELSE 49 * - 28 END + 89 * + 17 ) AS col0
----
63
NULL

query I rowsort
SELECT ALL + 16 * - 28 AS col2
----
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT ALL - 44 * - 67 * ( + 37 ) * - - COUNT( + 30 ) * 66 * SUM( - + 10 ) col2
----
-71990160

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - 44 * - 67 * ( + 37 ) * - - COUNT ( + 30 ) * 66 * SUM ( - + 10 ) col2
----
-71990160

query I rowsort
SELECT - 11 * + ( 6 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT + COUNT( * ) - + 6 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-2047
SELECT + COUNT ( * ) - + 6 AS col2
----
-5

query I rowsort
SELECT ALL 28 * - - 34 AS col2
----
952

query I rowsort
SELECT CASE ( 50 ) WHEN + 36 THEN - 51 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT ALL 30 * + COUNT( * ) + + 21 + + 41 - + 26 + - 57 + 41 + - 66 * - + 2 + ( 58 + - 88 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL 30 * + COUNT ( * ) + + 21 + + 41 - + 26 + - 57 + 41 + - 66 * - + 2 + ( 58 + - 88 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

query I rowsort
SELECT + 76 * + 74
----
5624

query I rowsort
SELECT ALL 46 * + ( - - 85 )
----
3910

query I rowsort
SELECT ALL + - ( - - ( - 38 ) ) col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2055
SELECT ALL + 70 DIV 91 DIV + - 77
----
0

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL + 70 / 91 / + - 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2056
SELECT ALL + + 3 * 44 DIV + - 69
----
-1

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL + + 3 * 44 / + - 69
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2057
SELECT + + 48 DIV + 1 + 84
----
132

skipif mysql # not compatible
query I rowsort label-2057
SELECT + + 48 / + 1 + 84
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-2058
SELECT + - 79 + - 50 AS col0, ( - ( + COUNT( * ) ) ) + - 9
----
-129
-10

skipif mysql # not compatible
query II rowsort label-2058
SELECT + - 79 + - 50 AS col0, ( - ( + COUNT ( * ) ) ) + - 9
----
-129
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2059
SELECT ALL + 9 DIV - 15 * COUNT( DISTINCT 96 ) * 50 - MIN( 24 ) * - + 59
----
1416

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + 9 / - 15 * COUNT ( DISTINCT 96 ) * 50 - MIN ( 24 ) * - + 59
----
1416

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

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

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

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

query I rowsort
SELECT ALL + ( 65 ) * - 3 * + 49 + - - 6
----
-9549

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT + NULLIF ( - MAX( - 66 ), 79 + - 15 ) * + 94 - - 89 AS col1
----
6293

skipif mysql # not compatible
query I rowsort label-2063
SELECT + NULLIF ( - MAX ( - 66 ), 79 + - 15 ) * + 94 - - 89 AS col1
----
6293

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT ( 49 ) + - - 80 + 71 + COUNT( * ) * - COUNT( * ) * MAX( ALL - - 28 ) * - - 93
----
-2404

skipif mysql # not compatible
query I rowsort label-2064
SELECT ( 49 ) + - - 80 + 71 + COUNT ( * ) * - COUNT ( * ) * MAX ( ALL - - 28 ) * - - 93
----
-2404

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT ( + 92 ) DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-2065
SELECT ( + 92 ) / + 47
----
1

query I rowsort
SELECT 12 + - - 2 col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2067
SELECT ALL + CASE 85 WHEN - - 21 * - - CASE + 71 WHEN CAST( NULL AS SIGNED ) THEN + - 95 WHEN 14 THEN + ( 64 ) + 29 ELSE NULL END * + ( 37 ) THEN - 0 WHEN 77 THEN NULL WHEN + 24 THEN NULL END + 80 * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL + CASE 85 WHEN - - 21 * - - CASE + 71 WHEN CAST ( NULL AS INTEGER ) THEN + - 95 WHEN 14 THEN + ( 64 ) + 29 ELSE NULL END * + ( 37 ) THEN - 0 WHEN 77 THEN NULL WHEN + 24 THEN NULL END + 80 * 40
----
NULL

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

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

query I rowsort
SELECT DISTINCT 29 + 19
----
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2070
SELECT 85 DIV - CAST( + 4 AS SIGNED ) + 24 + - + 20 * + 68 * + CAST( - 59 AS SIGNED ) col1
----
80243

skipif mysql # not compatible
query I rowsort label-2070
SELECT 85 / - CAST ( + 4 AS INTEGER ) + 24 + - + 20 * + 68 * + CAST ( - 59 AS INTEGER ) col1
----
80243

query II rowsort
SELECT DISTINCT + 58 + + - 11 * - 66 col0, + ( 46 ) AS col2
----
784
46

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

query I rowsort
SELECT ALL + 85 + - + 69 + + ( - 15 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 46 + - 64 col2
----
-18

query I rowsort
SELECT ALL - 13 * + 8 * 62 AS col1
----
-6448

query I rowsort
SELECT 77 * 23 + - 27 + + 95
----
1839

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT 37 DIV - ( 71 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2077
SELECT 37 / - ( 71 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT CASE WHEN NOT + NULLIF ( + 85, + COALESCE ( 29, - + COUNT( * ) ) * - 63 ) BETWEEN ( NULL ) AND NULL THEN 48 ELSE NULL END * 93 + 52 * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT CASE WHEN NOT + NULLIF ( + 85, + COALESCE ( 29, - + COUNT ( * ) ) * - 63 ) BETWEEN ( NULL ) AND NULL THEN 48 ELSE NULL END * 93 + 52 * 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2079
SELECT - 26 DIV - 69 + COUNT( * ) * - 7 DIV - 6 AS col2, CASE + - 67 WHEN 42 * ( + MIN( ALL 85 ) ) THEN 13 * - COUNT( * ) - + 93 WHEN + 2 THEN 24 ELSE NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2079
SELECT - 26 / - 69 + COUNT ( * ) * - 7 / - 6 AS col2, CASE + - 67 WHEN 42 * ( + MIN ( ALL 85 ) ) THEN 13 * - COUNT ( * ) - + 93 WHEN + 2 THEN 24 ELSE NULL END
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2080
SELECT DISTINCT - 41 - - + COUNT( * ) * + + 61 DIV + MIN( DISTINCT - 17 ) + 34
----
-10

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT - 41 - - + COUNT ( * ) * + + 61 / + MIN ( DISTINCT - 17 ) + 34
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2081
SELECT ALL 45 - + 87 + MIN( + - 53 ) DIV + - 32
----
-41

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL 45 - + 87 + MIN ( + - 53 ) / + - 32
----
-41

query II rowsort
SELECT DISTINCT - 30, + 23 AS col1
----
-30
23

query I rowsort
SELECT DISTINCT - NULLIF ( - 51, 16 ) AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2084
SELECT 71 * + CAST( + - 65 AS SIGNED ) AS col2, - 86
----
-4615
-86

skipif mysql # not compatible
query II rowsort label-2084
SELECT 71 * + CAST ( + - 65 AS INTEGER ) AS col2, - 86
----
-4615
-86

query I rowsort
SELECT + ( 68 ) * + 58 * + + 45 * 7 + 77 AS col0
----
1242437

query I rowsort
SELECT 77 * - - 32 + + 55 + 94 AS col0
----
2613

query I rowsort
SELECT ALL 80 * 88
----
7040

query II rowsort
SELECT + 69 AS col2, + 79 AS col2
----
69
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2089
SELECT - 53 AS col1, - 44 - - - COUNT( * ) AS col1
----
-53
-45

skipif mysql # not compatible
query II rowsort label-2089
SELECT - 53 AS col1, - 44 - - - COUNT ( * ) AS col1
----
-53
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2090
SELECT - 92 * 55 + - + 5 + + 45 + - CAST( + - COALESCE ( - 84, + + 76 + - 14 DIV + + MAX( ALL + 59 ) ) AS SIGNED ) DIV + 27 + - 63
----
-5086

skipif mysql # not compatible
query I rowsort label-2090
SELECT - 92 * 55 + - + 5 + + 45 + - CAST ( + - COALESCE ( - 84, + + 76 + - 14 / + + MAX ( ALL + 59 ) ) AS INTEGER ) / + 27 + - 63
----
-5086

query I rowsort
SELECT + 85 + + 84 AS col0
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2092
SELECT - 20, CAST( NULL AS SIGNED ) AS col1
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-2092
SELECT - 20, CAST ( NULL AS INTEGER ) AS col1
----
-20
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2093
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, + 0 - + 30
----
NULL
-30

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2094
SELECT ALL 15, 38 + CAST( CASE + + 91 WHEN + COUNT( * ) + - 81 THEN NULL ELSE - COUNT( * ) * - 81 / - + 11 - 35 * 34 END AS SIGNED ) col2
----
15
-1159

skipif mysql # not compatible
query II rowsort label-2094
SELECT ALL 15, 38 + CAST ( CASE + + 91 WHEN + COUNT ( * ) + - 81 THEN NULL ELSE - COUNT ( * ) * - 81 / - + 11 - 35 * 34 END AS INTEGER ) col2
----
15
-1159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2095
SELECT DISTINCT + 55 AS col2, + COALESCE ( MIN( + 14 ), - 65 - + CAST( NULL AS SIGNED ) ) AS col2
----
55
14

skipif mysql # not compatible
query II rowsort label-2095
SELECT DISTINCT + 55 AS col2, + COALESCE ( MIN ( + 14 ), - 65 - + CAST ( NULL AS INTEGER ) ) AS col2
----
55
14

query I rowsort
SELECT ALL 9 + 51 + - 89 AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2097
SELECT - 79 * MAX( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT - 79 * MAX ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 19 + 70 + - COALESCE ( + 56, 8, + 10 + 36, - 18 ) * - - 43
----
-2319

query I rowsort
SELECT - 92 * - 13
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT 47 + + 8 * - COUNT( * ) * + 94 * + - 76 AS col2
----
57199

skipif mysql # not compatible
query I rowsort label-2100
SELECT 47 + + 8 * - COUNT ( * ) * + 94 * + - 76 AS col2
----
57199

query II rowsort
SELECT - 64, 30 * + 14 AS col0
----
-64
420

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT DISTINCT ( - 49 ) * - - COUNT( * ) + - + ( + MIN( ALL + - 56 ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT ( - 49 ) * - - COUNT ( * ) + - + ( + MIN ( ALL + - 56 ) ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2103
SELECT ALL 21 AS col2, COUNT( * ) + - - 47
----
21
48

skipif mysql # not compatible
query II rowsort label-2103
SELECT ALL 21 AS col2, COUNT ( * ) + - - 47
----
21
48

query I rowsort
SELECT DISTINCT 88 + 48 - - 51
----
187

query I rowsort
SELECT ALL + 81 * - 30
----
-2430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2106
SELECT CAST( NULL AS SIGNED ) + - 87 - + - MAX( 79 ) + - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT CAST ( NULL AS INTEGER ) + - 87 - + - MAX ( 79 ) + - 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT DISTINCT ( 6 ) * COUNT( * ) + + CASE 92 WHEN + 90 + 30 * - + 39 THEN 58 + + 48 + + COUNT( * ) + + 65 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT ( 6 ) * COUNT ( * ) + + CASE 92 WHEN + 90 + 30 * - + 39 THEN 58 + + 48 + + COUNT ( * ) + + 65 * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT - 8 + COUNT( * ) - + 52 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT - 8 + COUNT ( * ) - + 52 AS col1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2109
SELECT ( 18 ) - + ( - 41 ) AS col2, CAST( NULL AS SIGNED ) - - + 43
----
59
NULL

skipif mysql # not compatible
query II rowsort label-2109
SELECT ( 18 ) - + ( - 41 ) AS col2, CAST ( NULL AS INTEGER ) - - + 43
----
59
NULL

query I rowsort
SELECT 62 * - 91 AS col0
----
-5642

onlyif mysql # aggregate syntax: 
query II rowsort label-2111
SELECT COUNT( 33 ) col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-2111
SELECT COUNT ( 33 ) col2, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT MIN( NULLIF ( + 62, + 47 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2112
SELECT MIN ( NULLIF ( + 62, + 47 ) ) AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2113
SELECT 82 * + + 23 * + 19 DIV COUNT( * ) AS col2
----
35834

skipif mysql # not compatible
query I rowsort label-2113
SELECT 82 * + + 23 * + 19 / COUNT ( * ) AS col2
----
35834

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

query I rowsort
SELECT DISTINCT - 36 * + 11
----
-396

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

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

query I rowsort
SELECT 71 - + 31
----
40

query I rowsort
SELECT ALL - 18 * + 92
----
-1656

query I rowsort
SELECT 78 * + 41
----
3198

query I rowsort
SELECT DISTINCT - 10 * 54 AS col1
----
-540

query I rowsort
SELECT - 25 + + - 40 + 98 * 82 AS col2
----
7971

onlyif mysql # DIV for integer division: 
query I rowsort label-2122
SELECT - 94 DIV - 38
----
2

skipif mysql # not compatible
query I rowsort label-2122
SELECT - 94 / - 38
----
2

query I rowsort
SELECT ALL - 42 * 57 AS col0
----
-2394

query I rowsort
SELECT - 34 * - ( 5 )
----
170

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

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

query I rowsort
SELECT 85 * 58 + + 75 * 58 + - 35 AS col1
----
9245

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

query I rowsort
SELECT ALL + + 57 + 90 + + 77
----
224

query II rowsort
SELECT + + 18 AS col0, 82
----
18
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2130
SELECT ALL + 62 AS col2, MIN( ALL 81 ) * + 44
----
62
3564

skipif mysql # not compatible
query II rowsort label-2130
SELECT ALL + 62 AS col2, MIN ( ALL 81 ) * + 44
----
62
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT DISTINCT + 68 + COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT + 68 + COUNT ( * ) AS col0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT + 10 * 75 DIV - - NULLIF ( + 54, 83 )
----
13

skipif mysql # not compatible
query I rowsort label-2132
SELECT + 10 * 75 / - - NULLIF ( + 54, 83 )
----
13

query I rowsort
SELECT + + 0 * - 93 * - - ( - 83 ) * - + 93 + + - 68
----
-68

query I rowsort
SELECT + - 30 - + + 22 col1
----
-52

query II rowsort
SELECT - + 57, + 73 + - - 62 AS col0
----
-57
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT - - ( - COALESCE ( + 44, - ( 63 ) ) ) + - + MAX( - 57 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2136
SELECT - - ( - COALESCE ( + 44, - ( 63 ) ) ) + - + MAX ( - 57 ) AS col2
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2137
SELECT + - 80 * - - 95 + ( + 25 ) + 75 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT + - 80 * - - 95 + ( + 25 ) + 75 - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL + 75 + - + 19 * - COUNT( 65 )
----
94

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL + 75 + - + 19 * - COUNT ( 65 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2139
SELECT - + COUNT( * ) + + + 97 + - COUNT( * ) DIV + CAST( - - NULLIF ( - 14, - COUNT( * ) - + 0 * - 31 ) AS SIGNED ) + - COALESCE ( 39, - CASE - 93 WHEN + 50 THEN - COALESCE ( + 77, 21, 88 ) * + 32 + + 88 ELSE 87 END + + MAX( ALL - 59 ), - COUNT( 55 ) + + 86 * 29 ) + NULLIF ( 60, 64 + + CAST( NULL AS SIGNED ) ) AS col0
----
117

skipif mysql # not compatible
query I rowsort label-2139
SELECT - + COUNT ( * ) + + + 97 + - COUNT ( * ) / + CAST ( - - NULLIF ( - 14, - COUNT ( * ) - + 0 * - 31 ) AS INTEGER ) + - COALESCE ( 39, - CASE - 93 WHEN + 50 THEN - COALESCE ( + 77, 21, 88 ) * + 32 + + 88 ELSE 87 END + + MAX ( ALL - 59 ), - COUNT ( 55 ) + + 86 * 29 ) + NULLIF ( 60, 64 + + CAST ( NULL AS INTEGER ) ) AS col0
----
117

query I rowsort
SELECT ALL + + 85 + - 82 AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2141
SELECT + 65 + + + SUM( - - 29 ) DIV + 3 + 88 + + 96 AS col1
----
258

skipif mysql # not compatible
query I rowsort label-2141
SELECT + 65 + + + SUM ( - - 29 ) / + 3 + 88 + + 96 AS col1
----
258

query I rowsort
SELECT ALL 35 + - 80 * + 34 * NULLIF ( - 60, + 99 ) AS col1
----
163235

query I rowsort
SELECT + 41 + - 14
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2144
SELECT + 93 + - 19 AS col0, COUNT( * ) * 19
----
74
19

skipif mysql # not compatible
query II rowsort label-2144
SELECT + 93 + - 19 AS col0, COUNT ( * ) * 19
----
74
19

query II rowsort
SELECT + 11 * + - 21, + 9 AS col2
----
-231
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT + MIN( - 41 ) + - + 50 * - 23 * - 10
----
-11541

skipif mysql # not compatible
query I rowsort label-2146
SELECT + MIN ( - 41 ) + - + 50 * - 23 * - 10
----
-11541

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT + ( + SUM( ALL + 7 ) ) + + 61 * - + 85
----
-5178

skipif mysql # not compatible
query I rowsort label-2147
SELECT + ( + SUM ( ALL + 7 ) ) + + 61 * - + 85
----
-5178

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT + MIN( ALL 9 ) + - COALESCE ( - 78, 16 )
----
87

skipif mysql # not compatible
query I rowsort label-2149
SELECT + MIN ( ALL 9 ) + - COALESCE ( - 78, 16 )
----
87

query II rowsort
SELECT ALL 69 - 21, COALESCE ( - - 75, + 28, - 74 ) - + 26 AS col1
----
48
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2151
SELECT + 75 * + + CAST( - 14 AS SIGNED ), COUNT( * ) + - 30 * + COUNT( * ) * - - 71 AS col0
----
-1050
-2129

skipif mysql # not compatible
query II rowsort label-2151
SELECT + 75 * + + CAST ( - 14 AS INTEGER ), COUNT ( * ) + - 30 * + COUNT ( * ) * - - 71 AS col0
----
-1050
-2129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2152
SELECT - MIN( ALL + 0 ) * - 74 DIV - 20 col1
----
0

skipif mysql # not compatible
query I rowsort label-2152
SELECT - MIN ( ALL + 0 ) * - 74 / - 20 col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL MIN( + - 63 ) * + 31 AS col1
----
-1953

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL MIN ( + - 63 ) * + 31 AS col1
----
-1953

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

query I rowsort
SELECT + 3 + + ( + 63 ) + 88
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2157
SELECT ALL 27 * + - COUNT( * ) AS col0, 62 + + 12 + + NULLIF ( + + 28, - + 99 ) DIV + + 72 AS col2
----
-27
74

skipif mysql # not compatible
query II rowsort label-2157
SELECT ALL 27 * + - COUNT ( * ) AS col0, 62 + + 12 + + NULLIF ( + + 28, - + 99 ) / + + 72 AS col2
----
-27
74

query I rowsort
SELECT + 33 + - 88 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT ( COALESCE ( - CASE + - NULLIF ( - - 37, + 99 - - + 81 * - 5 * + - 77 ) WHEN 51 / + + 37 * - 67 * 6 + - 94 THEN - 47 * - ( 6 ) END, COUNT( * ) * + 4 ) )
----
4

skipif mysql # not compatible
query I rowsort label-2159
SELECT ( COALESCE ( - CASE + - NULLIF ( - - 37, + 99 - - + 81 * - 5 * + - 77 ) WHEN 51 / + + 37 * - 67 * 6 + - 94 THEN - 47 * - ( 6 ) END, COUNT ( * ) * + 4 ) )
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2160
SELECT + 97 * - 34 + CAST( NULL AS DECIMAL ) * + 81 + 3 * - ( + 96 ) / - - COUNT( * ) col2, ( 4 )
----
NULL
4

skipif mysql # not compatible
query II rowsort label-2160
SELECT + 97 * - 34 + CAST ( NULL AS REAL ) * + 81 + 3 * - ( + 96 ) / - - COUNT ( * ) col2, ( 4 )
----
NULL
4

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

skipif mysql # not compatible
query I rowsort label-2161
SELECT + MAX ( + 39 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2162
SELECT ( + 31 ) * - + CAST( NULL AS SIGNED ) + + - ( + 41 ) * + ( + 76 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2162
SELECT ( + 31 ) * - + CAST ( NULL AS INTEGER ) + + - ( + 41 ) * + ( + 76 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2163
SELECT + - 91 * - CAST( - 77 AS SIGNED ) col0
----
-7007

skipif mysql # not compatible
query I rowsort label-2163
SELECT + - 91 * - CAST ( - 77 AS INTEGER ) col0
----
-7007

query I rowsort
SELECT - - 86 * + 86
----
7396

query I rowsort
SELECT - + 27 + - 52
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2166
SELECT ALL + + CASE 22 WHEN COUNT( * ) DIV ( - + 30 ) DIV + 2 THEN 98 WHEN + 24 THEN NULL ELSE + 6 + - COALESCE ( + 19, - 90 DIV - AVG ( 45 * + 37 ) + 54 * - NULLIF ( - 71 - 40, - CAST( - 74 AS SIGNED ) * 35 ) ) + - 31 DIV 2 END col2
----
-28

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL + + CASE 22 WHEN COUNT ( * ) / ( - + 30 ) / + 2 THEN 98 WHEN + 24 THEN NULL ELSE + 6 + - COALESCE ( + 19, - 90 / - AVG ( 45 * + 37 ) + 54 * - NULLIF ( - 71 - 40, - CAST ( - 74 AS INTEGER ) * 35 ) ) + - 31 / 2 END col2
----
-28

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2168
SELECT DISTINCT - 61 * - 58 + + 29 * - CAST( + 47 AS SIGNED ) - 98 DIV 51 + + 18 AS col1, CAST( NULL AS SIGNED ) - - + 69 * + 75 * - 54 * - 94 AS col1
----
2192
NULL

skipif mysql # not compatible
query II rowsort label-2168
SELECT DISTINCT - 61 * - 58 + + 29 * - CAST ( + 47 AS INTEGER ) - 98 / 51 + + 18 AS col1, CAST ( NULL AS INTEGER ) - - + 69 * + 75 * - 54 * - 94 AS col1
----
2192
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT - ( + 49 ) + + MAX( ALL - 52 )
----
-101

skipif mysql # not compatible
query I rowsort label-2169
SELECT - ( + 49 ) + + MAX ( ALL - 52 )
----
-101

query I rowsort
SELECT ALL 0 * 34 + - 14
----
-14

query I rowsort
SELECT ALL + - COALESCE ( - 60, + - 31 )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2172
SELECT - COUNT( * ) * - - ( + MIN( - 71 ) ) * SUM( DISTINCT 17 ) + + 76 + + COUNT( * ) AS col1, NULLIF ( 71, 13 )
----
1284
71

skipif mysql # not compatible
query II rowsort label-2172
SELECT - COUNT ( * ) * - - ( + MIN ( - 71 ) ) * SUM ( DISTINCT 17 ) + + 76 + + COUNT ( * ) AS col1, NULLIF ( 71, 13 )
----
1284
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL - 53 * + + COUNT( * ) * - 8 + + 8 - - 76
----
508

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL - 53 * + + COUNT ( * ) * - 8 + + 8 - - 76
----
508

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT + + 64 * - 70 + + + SUM( ALL + + 71 )
----
-4409

skipif mysql # not compatible
query I rowsort label-2175
SELECT + + 64 * - 70 + + + SUM ( ALL + + 71 )
----
-4409

query I rowsort
SELECT + - 90 * 55 + - 69 + + 88 col0
----
-4931

query II rowsort
SELECT - + 84 + + 34, + 81 col2
----
-50
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT ALL - + 74 * MIN( - 72 ) + + 70 + + 30 AS col2
----
5428

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL - + 74 * MIN ( - 72 ) + + 70 + + 30 AS col2
----
5428

query II rowsort
SELECT - - 9 + + - 22, ( - 22 ) AS col2
----
-13
-22

query I rowsort
SELECT - 70 * - 93 + ( + + 41 )
----
6551

query I rowsort
SELECT ALL + 34 * + 46 + 25 AS col0
----
1589

query I rowsort
SELECT DISTINCT - ( + 32 ) * ( + + 56 ) * + 66 + + 62 * - 42 AS col0
----
-120876

query I rowsort
SELECT DISTINCT COALESCE ( + + COALESCE ( - + 10, + COALESCE ( - 92, + - 90 ) + - + 96 * + 11, + - 24 ), - - 52 + 27 )
----
-10

query I rowsort
SELECT ALL ( + NULLIF ( + 29, - 63 ) ) col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT - CASE - 14 WHEN + 79 * + + MAX( - CASE 33 WHEN 31 * ( - 80 ) THEN - 29 * + 2 * - - CASE WHEN NOT 3 <= - 77 THEN 57 + - 77 ELSE NULL END END ) + - 4 THEN - CASE 5 WHEN NULLIF ( - 24, COUNT( * ) ) + COALESCE ( + CASE + COUNT( * ) WHEN + COUNT( * ) * - 69 + 79 THEN + 30 * 16 WHEN + ( - 9 ) * COUNT( * ) THEN - 0 WHEN - 64 THEN NULL END, + 43 ) THEN 19 ELSE NULL END ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2185
SELECT - CASE - 14 WHEN + 79 * + + MAX ( - CASE 33 WHEN 31 * ( - 80 ) THEN - 29 * + 2 * - - CASE WHEN NOT 3 <= - 77 THEN 57 + - 77 ELSE NULL END END ) + - 4 THEN - CASE 5 WHEN NULLIF ( - 24, COUNT ( * ) ) + COALESCE ( + CASE + COUNT ( * ) WHEN + COUNT ( * ) * - 69 + 79 THEN + 30 * 16 WHEN + ( - 9 ) * COUNT ( * ) THEN - 0 WHEN - 64 THEN NULL END, + 43 ) THEN 19 ELSE NULL END ELSE COUNT ( * ) END
----
-1

query I rowsort
SELECT ALL - 54 * - - 77 AS col2
----
-4158

query I rowsort
SELECT - 99 * - 63 AS col1
----
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT - MIN( DISTINCT 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-2188
SELECT - MIN ( DISTINCT 16 )
----
-16

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

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

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

query I rowsort
SELECT DISTINCT - 37 * 43
----
-1591

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2192
SELECT - COALESCE ( + COUNT( * ), - - COUNT( * ) DIV + 44 + 72 + 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-2192
SELECT - COALESCE ( + COUNT ( * ), - - COUNT ( * ) / + 44 + 72 + 26 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2193
SELECT + COALESCE ( - 30, + + 68 ) DIV + 57 * - 56
----
0

skipif mysql # not compatible
query I rowsort label-2193
SELECT + COALESCE ( - 30, + + 68 ) / + 57 * - 56
----
0

query II rowsort
SELECT - 92 + 29 + - 74, - 6 AS col1
----
-137
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2195
SELECT ALL 79 DIV + + CASE + 29 WHEN - 11 + 48 THEN - 29 * - COUNT( - - 16 ) ELSE 52 END, 76 * + COALESCE ( 14, - - 71 * 84 ) col1
----
1
1064

skipif mysql # not compatible
query II rowsort label-2195
SELECT ALL 79 / + + CASE + 29 WHEN - 11 + 48 THEN - 29 * - COUNT ( - - 16 ) ELSE 52 END, 76 * + COALESCE ( 14, - - 71 * 84 ) col1
----
1
1064

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2197
SELECT + CAST( - COALESCE ( 18, - 18 * + + 90, MAX( ALL + 25 ) ) AS SIGNED ) + COUNT( - + 66 ) AS col1, + 72
----
-17
72

skipif mysql # not compatible
query II rowsort label-2197
SELECT + CAST ( - COALESCE ( 18, - 18 * + + 90, MAX ( ALL + 25 ) ) AS INTEGER ) + COUNT ( - + 66 ) AS col1, + 72
----
-17
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2198
SELECT + + 91 col0, MAX( ALL ( + ( + 73 ) ) ) * + + COUNT( * ) - 4
----
91
69

skipif mysql # not compatible
query II rowsort label-2198
SELECT + + 91 col0, MAX ( ALL ( + ( + 73 ) ) ) * + + COUNT ( * ) - 4
----
91
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2199
SELECT ALL MAX( DISTINCT - - 16 ) + 20 AS col1, 19 + + 89
----
36
108

skipif mysql # not compatible
query II rowsort label-2199
SELECT ALL MAX ( DISTINCT - - 16 ) + 20 AS col1, 19 + + 89
----
36
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT DISTINCT + 23 + 97 * + + 40 - + COUNT( * ) - - 27 + 22 * + + 74 * 6 / SUM( ALL + ( + - 74 ) ) + + + MAX( ALL - 47 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT + 23 + 97 * + + 40 - + COUNT ( * ) - - 27 + 22 * + + 74 * 6 / SUM ( ALL + ( + - 74 ) ) + + + MAX ( ALL - 47 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 65 + - 79
----
-144

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT + COUNT( * ) + + + 40
----
41

skipif mysql # not compatible
query I rowsort label-2203
SELECT + COUNT ( * ) + + + 40
----
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2204
SELECT + - CASE - - SUM( ALL - 2 ) WHEN 60 THEN NULL WHEN + 2 THEN CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT + - CASE - - SUM ( ALL - 2 ) WHEN 60 THEN NULL WHEN + 2 THEN CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2205
SELECT + CAST( NULL AS SIGNED ) * - + 29 - 64 - + - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2205
SELECT + CAST ( NULL AS INTEGER ) * - + 29 - 64 - + - 91 AS col2
----
NULL

query I rowsort
SELECT 25 * 25 AS col2
----
625

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL 71 + + MAX( ALL + 35 )
----
106

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL 71 + + MAX ( ALL + 35 )
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT ALL - SUM( + 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL - SUM ( + 52 ) AS col2
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2209
SELECT COALESCE ( - 74, - 64 * - + 42 DIV + MAX( DISTINCT - + 25 ) + 1 )
----
-74

skipif mysql # not compatible
query I rowsort label-2209
SELECT COALESCE ( - 74, - 64 * - + 42 / + MAX ( DISTINCT - + 25 ) + 1 )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2210
SELECT - CASE + 89 WHEN 3 THEN + + MIN( DISTINCT - + 56 ) * + CAST( NULL AS SIGNED ) ELSE NULL END - MAX( ALL 32 ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2210
SELECT - CASE + 89 WHEN 3 THEN + + MIN ( DISTINCT - + 56 ) * + CAST ( NULL AS INTEGER ) ELSE NULL END - MAX ( ALL 32 ), COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT ALL - ( 43 ) + - 55 AS col0
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2212
SELECT - COUNT( DISTINCT + 36 ) * - 29 - + 40 AS col1, CASE + - 73 WHEN - 56 THEN NULL WHEN - + NULLIF ( + 91, 40 + + SUM( 77 ) ) THEN NULL ELSE 83 END + 1 DIV - 57
----
-11
83

skipif mysql # not compatible
query II rowsort label-2212
SELECT - COUNT ( DISTINCT + 36 ) * - 29 - + 40 AS col1, CASE + - 73 WHEN - 56 THEN NULL WHEN - + NULLIF ( + 91, 40 + + SUM ( 77 ) ) THEN NULL ELSE 83 END + 1 / - 57
----
-11
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT DISTINCT + - 47 - COUNT( ALL + 79 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT + - 47 - COUNT ( ALL + 79 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL + 22 - + COUNT( * ) + - 70 - + CASE - 1 WHEN 66 * - - 4 THEN 64 + + ( + + 1 ) * - COUNT( * ) * + - 34 END * COUNT( * ) / + + 11 + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL + 22 - + COUNT ( * ) + - 70 - + CASE - 1 WHEN 66 * - - 4 THEN 64 + + ( + + 1 ) * - COUNT ( * ) * + - 34 END * COUNT ( * ) / + + 11 + + 23
----
NULL

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

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

query I rowsort
SELECT 58 * - + 26 + + COALESCE ( - 21, + 9 ) * - 85
----
277

query I rowsort
SELECT 63 - 2
----
61

query I rowsort
SELECT 66 * + - ( + + 45 ) col2
----
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ( + NULLIF ( - - 36, + COUNT( * ) ) ) + - - 65 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-2219
SELECT ( + NULLIF ( - - 36, + COUNT ( * ) ) ) + - - 65 AS col2
----
101

query I rowsort
SELECT ALL + 22 * 74
----
1628

query I rowsort
SELECT ( 80 ) * - 86
----
-6880

query I rowsort
SELECT 53 * - - 33 * + 61
----
106689

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT DISTINCT SUM( DISTINCT - 40 ) * + 14 * + 71 + 99
----
-39661

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT SUM ( DISTINCT - 40 ) * + 14 * + 71 + 99
----
-39661

query I rowsort
SELECT 72 + - - 38
----
110

query I rowsort
SELECT 78 * 55 * - + 55 AS col1
----
-235950

query I rowsort
SELECT 91 + COALESCE ( + 63, ( 89 ) ) * + - 51 AS col0
----
-3122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2227
SELECT ALL - 32 + COALESCE ( + + 45, + COUNT( * ) + + 10 + + 91 - - 79 ) + + - CASE WHEN NOT - 24 >= + 94 THEN + - 64 DIV + + 28 + - - 99 END * 70 AS col0
----
-6777

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL - 32 + COALESCE ( + + 45, + COUNT ( * ) + + 10 + + 91 - - 79 ) + + - CASE WHEN NOT - 24 >= + 94 THEN + - 64 / + + 28 + - - 99 END * 70 AS col0
----
-6777

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT 68 * CASE - 14 WHEN + CASE - - ( + COUNT( * ) ) WHEN - 15 THEN NULL ELSE + COUNT( * ) END * - 88 THEN NULL WHEN - - 78 / + 24 THEN NULLIF ( 95, + ( + 13 ) ) + - 68 WHEN 13 THEN NULL END * AVG ( - 64 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT 68 * CASE - 14 WHEN + CASE - - ( + COUNT ( * ) ) WHEN - 15 THEN NULL ELSE + COUNT ( * ) END * - 88 THEN NULL WHEN - - 78 / + 24 THEN NULLIF ( 95, + ( + 13 ) ) + - 68 WHEN 13 THEN NULL END * AVG ( - 64 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2229
SELECT 7 + 55 + - SUM( + 18 ) DIV - + ( + 26 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2229
SELECT 7 + 55 + - SUM ( + 18 ) / - + ( + 26 ) AS col2
----
62

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

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

query I rowsort
SELECT ALL + 64 + - + 7
----
57

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2234
SELECT 19 * + 74 * + 46 + - CAST( NULL AS DECIMAL ) * 93 + 52 + - 35 - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2234
SELECT 19 * + 74 * + 46 + - CAST ( NULL AS REAL ) * 93 + 52 + - 35 - - COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT - 77 * + - 30 AS col2, + 36
----
2310
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2236
SELECT - ( - 88 ) / - - CASE 62 WHEN + 91 THEN NULL WHEN + 10 * - CAST( + COUNT( * ) AS SIGNED ) THEN - 36 + + + 15 WHEN + 85 / - CAST( 50 AS SIGNED ) THEN NULL END + 77 * - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT - ( - 88 ) / - - CASE 62 WHEN + 91 THEN NULL WHEN + 10 * - CAST ( + COUNT ( * ) AS INTEGER ) THEN - 36 + + + 15 WHEN + 85 / - CAST ( 50 AS INTEGER ) THEN NULL END + 77 * - 22 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT - CAST( - - 39 AS SIGNED ) * + - 20 + - 69 AS col2
----
711

skipif mysql # not compatible
query I rowsort label-2237
SELECT - CAST ( - - 39 AS INTEGER ) * + - 20 + - 69 AS col2
----
711

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2239
SELECT DISTINCT + - 41 - CAST( + - ( 91 ) AS SIGNED ) + + + 65
----
115

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT + - 41 - CAST ( + - ( 91 ) AS INTEGER ) + + + 65
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2240
SELECT 7 * - NULLIF ( 43, - - SUM( + - 62 ) * + 0 + 70 ) + + + CAST( 65 AS SIGNED ) + - 85 + ( 7 ) * + 18 + - 8 + + 86 col0
----
-117

skipif mysql # not compatible
query I rowsort label-2240
SELECT 7 * - NULLIF ( 43, - - SUM ( + - 62 ) * + 0 + 70 ) + + + CAST ( 65 AS INTEGER ) + - 85 + ( 7 ) * + 18 + - 8 + + 86 col0
----
-117

query I rowsort
SELECT DISTINCT 5 * - 93 AS col2
----
-465

query I rowsort
SELECT + 74 * 97 + + 69
----
7247

query I rowsort
SELECT 67 * 3 + - ( - 75 ) AS col0
----
276

onlyif mysql # DIV for integer division: 
query II rowsort label-2244
SELECT DISTINCT ( - 96 ) * + - 69 AS col0, 1 DIV - - 5 + - 48
----
6624
-48

skipif mysql # not compatible
query II rowsort label-2244
SELECT DISTINCT ( - 96 ) * + - 69 AS col0, 1 / - - 5 + - 48
----
6624
-48

query I rowsort
SELECT 72 + - ( 98 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT COALESCE ( + COUNT( * ), + 17 ) * 83 + + 16
----
99

skipif mysql # not compatible
query I rowsort label-2246
SELECT COALESCE ( + COUNT ( * ), + 17 ) * 83 + + 16
----
99

query I rowsort
SELECT 82 + + 15 * - + 45
----
-593

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT DISTINCT ( + COUNT( + 72 ) ) * 76 * + COUNT( * ) - + 9 - + 13 * + MAX( + 83 )
----
-1012

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT ( + COUNT ( + 72 ) ) * 76 * + COUNT ( * ) - + 9 - + 13 * + MAX ( + 83 )
----
-1012

query I rowsort
SELECT DISTINCT 51 + 30 + + + 62 + - + 59 AS col0
----
84

query I rowsort
SELECT 91 * - - ( 76 )
----
6916

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

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

query I rowsort
SELECT - COALESCE ( + - 81, - 61 ) AS col2
----
81

query I rowsort
SELECT 13 * + + 47
----
611

query I rowsort
SELECT - COALESCE ( - + 63, - 18 ) AS col0
----
63

query I rowsort
SELECT ALL + 1 + 57 * - 12
----
-683

query I rowsort
SELECT ALL 44 * 5 AS col0
----
220

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2258
SELECT - + 54 DIV 70 * + 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2258
SELECT - + 54 / 70 * + 43 AS col2
----
0

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

query I rowsort
SELECT - - 79 * 53 * + + 31 AS col2
----
129797

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL + 74 + - SUM( 23 ) + + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL + 74 + - SUM ( 23 ) + + COUNT ( * ) AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2262
SELECT - ( 9 ) + + 72 AS col2, + 55 + 90 + + 91 + - NULLIF ( 9, CAST( NULL AS SIGNED ) ) - - 98 * CASE - 17 WHEN + - 70 THEN + 17 + + - 12 END * - COUNT( DISTINCT 4 ) AS col0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-2262
SELECT - ( 9 ) + + 72 AS col2, + 55 + 90 + + 91 + - NULLIF ( 9, CAST ( NULL AS INTEGER ) ) - - 98 * CASE - 17 WHEN + - 70 THEN + 17 + + - 12 END * - COUNT ( DISTINCT 4 ) AS col0
----
63
NULL

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

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

query I rowsort
SELECT - + 97 + - + 1 AS col1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2265
SELECT + NULLIF ( - 80, - COUNT( * ) - + COALESCE ( + + ( - CAST( NULL AS SIGNED ) ), COUNT( - CAST( 87 AS SIGNED ) ) * 48 + - 8 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-2265
SELECT + NULLIF ( - 80, - COUNT ( * ) - + COALESCE ( + + ( - CAST ( NULL AS INTEGER ) ), COUNT ( - CAST ( 87 AS INTEGER ) ) * 48 + - 8 ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT - + 52 * - 99 + - - 62 - 45 * COUNT( * ) * - 3 * - 81 AS col2
----
-5725

skipif mysql # not compatible
query I rowsort label-2266
SELECT - + 52 * - 99 + - - 62 - 45 * COUNT ( * ) * - 3 * - 81 AS col2
----
-5725

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT + NULLIF ( + COUNT( DISTINCT 84 ), + - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT + NULLIF ( + COUNT ( DISTINCT 84 ), + - 70 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT 78 * - 5 + - 31 + - 52 * COUNT( * ) AS col0
----
-473

skipif mysql # not compatible
query I rowsort label-2268
SELECT 78 * - 5 + - 31 + - 52 * COUNT ( * ) AS col0
----
-473

query II rowsort
SELECT ALL + - 94 AS col1, 69 + + ( + 4 ) + - 90 * 41 * + 21 * 66 + + + 56
----
-94
-5114211

onlyif mysql # aggregate syntax: 
query II rowsort label-2270
SELECT DISTINCT + COUNT( * ) AS col2, 40 * + 63
----
1
2520

skipif mysql # not compatible
query II rowsort label-2270
SELECT DISTINCT + COUNT ( * ) AS col2, 40 * + 63
----
1
2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2271
SELECT ALL + ( - 7 ) * + + CASE - 32 WHEN + 52 THEN NULL WHEN 73 * + - 27 / 2 + + COUNT( * ) + + CAST( + 35 AS SIGNED ) - - 56 + - - 32 / COUNT( ALL 70 ) * 24 + 32 THEN 55 END - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL + ( - 7 ) * + + CASE - 32 WHEN + 52 THEN NULL WHEN 73 * + - 27 / 2 + + COUNT ( * ) + + CAST ( + 35 AS INTEGER ) - - 56 + - - 32 / COUNT ( ALL 70 ) * 24 + 32 THEN 55 END - 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2272
SELECT - COUNT( * ) * + 44 * 14 DIV + COUNT( * )
----
-616

skipif mysql # not compatible
query I rowsort label-2272
SELECT - COUNT ( * ) * + 44 * 14 / + COUNT ( * )
----
-616

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

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

query I rowsort
SELECT - 59 * + - 23
----
1357

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT + 64 * COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-2275
SELECT + 64 * COUNT ( * ) AS col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT ALL 70 DIV + 34 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL 70 / + 34 AS col2
----
2

query I rowsort
SELECT - 76 - - 97 * 40 * + + 7
----
27084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2278
SELECT + COALESCE ( - + 67, CASE - 79 WHEN + + 12 * 85 * 70 + - - 97 - - - 31 + COUNT( * ) * + 19 + + + 16 THEN 71 + 49 DIV + + 80 WHEN 88 THEN - ( CAST( NULL AS SIGNED ) ) END ) * 32 - - 48 * 5 col0
----
-1904

skipif mysql # not compatible
query I rowsort label-2278
SELECT + COALESCE ( - + 67, CASE - 79 WHEN + + 12 * 85 * 70 + - - 97 - - - 31 + COUNT ( * ) * + 19 + + + 16 THEN 71 + 49 / + + 80 WHEN 88 THEN - ( CAST ( NULL AS INTEGER ) ) END ) * 32 - - 48 * 5 col0
----
-1904

query I rowsort
SELECT ( + - ( 25 ) ) * - + 52 + CASE - 74 WHEN - CASE WHEN NULL IN ( 66 ) THEN ( + 17 ) END THEN - 88 * + 37 + + ( ( - 73 ) ) + 35 * - 19 END + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT + COUNT( DISTINCT - + 53 ) - - 20 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2280
SELECT + COUNT ( DISTINCT - + 53 ) - - 20 AS col0
----
21

query I rowsort
SELECT - 64 * + 3 - + 15 * + 67 + + 55 + 51 * - 41 AS col1
----
-3233

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT + COUNT( * ) + + + 39 + CASE 22 WHEN - 98 THEN 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT + COUNT ( * ) + + + 39 + CASE 22 WHEN - 98 THEN 0 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT ALL 57 + - COUNT( DISTINCT - 30 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL 57 + - COUNT ( DISTINCT - 30 ) AS col0
----
56

query II rowsort
SELECT 67, - 75 AS col2
----
67
-75

query I rowsort
SELECT ALL 27 + 0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2286
SELECT ALL 50 DIV - - 20
----
2

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL 50 / - - 20
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT DISTINCT 62 + - - 50 * MAX( 2 ) * + 24
----
2462

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT 62 + - - 50 * MAX ( 2 ) * + 24
----
2462

query II rowsort
SELECT - ( - 63 ) AS col1, + ( + 20 ) * 5 * - 81
----
63
-8100

query I rowsort
SELECT + 23 + + 88
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT ALL CASE - 26 WHEN + COUNT( * ) * - 44 * + ( + 34 ) + - - 86 THEN NULL WHEN - + 60 THEN + 91 ELSE NULL END + MIN( DISTINCT + 29 ) + - - 16 * + 8 * - - COUNT( * ) + - 25 - + 99 + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL CASE - 26 WHEN + COUNT ( * ) * - 44 * + ( + 34 ) + - - 86 THEN NULL WHEN - + 60 THEN + 91 ELSE NULL END + MIN ( DISTINCT + 29 ) + - - 16 * + 8 * - - COUNT ( * ) + - 25 - + 99 + - 6
----
NULL

query I rowsort
SELECT + 62 * + 78
----
4836

onlyif mysql # aggregate syntax: 
query II rowsort label-2292
SELECT + + 92 * - - COUNT( * ) AS col2, - 86 - ( - + 10 ) + - 26
----
92
-102

skipif mysql # not compatible
query II rowsort label-2292
SELECT + + 92 * - - COUNT ( * ) AS col2, - 86 - ( - + 10 ) + - 26
----
92
-102

query I rowsort
SELECT - + CASE + 66 WHEN 55 * AVG ( ALL - + 64 ) * + 84 * - 4 + 94 THEN 42 ELSE NULL END col0
----
NULL

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

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

query II rowsort
SELECT - + 76 AS col1, + 35 AS col1
----
-76
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT - - ( + - CAST( 87 AS SIGNED ) ) + - 39 * 35 AS col0
----
-1452

skipif mysql # not compatible
query I rowsort label-2296
SELECT - - ( + - CAST ( 87 AS INTEGER ) ) + - 39 * 35 AS col0
----
-1452

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT ALL + - 3 - - CASE - 31 WHEN 95 + + 79 THEN + COUNT( * ) + ( 17 ) + - 55 * - 61 * - 92 + + - 99 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL + - 3 - - CASE - 31 WHEN 95 + + 79 THEN + COUNT ( * ) + ( 17 ) + - 55 * - 61 * - 92 + + - 99 ELSE NULL END col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2298
SELECT + - 82 / 63
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2299
SELECT ALL - 71 DIV + 47 + - 23 + + 32 * + 10 * + 55
----
17576

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL - 71 / + 47 + - 23 + + 32 * + 10 * + 55
----
17576

query I rowsort
SELECT - 34 * + ( + 49 ) AS col0
----
-1666

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT + CASE + - 29 WHEN + ( + 25 ) THEN 30 + - + 51 + - + 52 * - COUNT( * ) * ( 70 ) * - 49 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT + CASE + - 29 WHEN + ( + 25 ) THEN 30 + - + 51 + - + 52 * - COUNT ( * ) * ( 70 ) * - 49 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 89 col0, - 54 col1
----
89
-54

query II rowsort
SELECT + + 5 AS col2, + 38 * + 0 + - 47 * - 7 col2
----
5
329

query I rowsort
SELECT - 90 * 18 + 16
----
-1604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2305
SELECT 30 * 17 + 88 * + 30 + - CASE + 86 WHEN + 59 THEN + + 33 * + + COUNT( * ) + + 18 WHEN NULLIF ( + + 53, 88 ) THEN - COALESCE ( - COUNT( * ), - - 65, + MAX( + ( - 74 ) ) ) + 77 DIV + 80 ELSE + 54 DIV 35 + - ( + 81 + + 10 ) * 31 END + + 80
----
6050

skipif mysql # not compatible
query I rowsort label-2305
SELECT 30 * 17 + 88 * + 30 + - CASE + 86 WHEN + 59 THEN + + 33 * + + COUNT ( * ) + + 18 WHEN NULLIF ( + + 53, 88 ) THEN - COALESCE ( - COUNT ( * ), - - 65, + MAX ( + ( - 74 ) ) ) + 77 / + 80 ELSE + 54 / 35 + - ( + 81 + + 10 ) * 31 END + + 80
----
6050

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2306
SELECT + + CAST( 1 AS SIGNED ), + 14 * CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2306
SELECT + + CAST ( 1 AS INTEGER ), + 14 * CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

query II rowsort
SELECT ALL + - 67, 58 AS col1
----
-67
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2308
SELECT + - COUNT( * ) DIV - COUNT( * ) + - + COUNT( * ) + + - 89 - 59 + 27 * + 82 * - COUNT( * ) AS col1
----
-2362

skipif mysql # not compatible
query I rowsort label-2308
SELECT + - COUNT ( * ) / - COUNT ( * ) + - + COUNT ( * ) + + - 89 - 59 + 27 * + 82 * - COUNT ( * ) AS col1
----
-2362

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT - 35 * + CAST( + + 47 AS SIGNED ) * + + 53 AS col0
----
-87185

skipif mysql # not compatible
query I rowsort label-2309
SELECT - 35 * + CAST ( + + 47 AS INTEGER ) * + + 53 AS col0
----
-87185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2310
SELECT DISTINCT - ( + - CAST( NULL AS SIGNED ) ) / COUNT( * ) + - 60 + - 63 - + 68 - + + 43 + + 55 + 91 + + + COUNT( * ) / - MIN( DISTINCT + 20 ) / + 16 - - + 41 / + 22 - - - 84 + - 22 - + 48 * + 40 * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) + - 60 + - 63 - + 68 - + + 43 + + 55 + 91 + + + COUNT ( * ) / - MIN ( DISTINCT + 20 ) / + 16 - - + 41 / + 22 - - - 84 + - 22 - + 48 * + 40 * 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2311
SELECT + 35 * - ( - 77 ) + + 69 - + + CASE COUNT( * ) WHEN 34 THEN - 67 + + - CASE - + 83 WHEN 5 * + + CAST( 60 AS SIGNED ) * + + 37 THEN NULL WHEN CAST( + CASE + + ( 17 ) WHEN + 46 + 32 THEN + NULLIF ( - 0, - 65 + 53 / 87 ) * + COUNT( * ) + NULLIF ( 32, 0 * + 2 ) / 16 WHEN + 62 * + 27 THEN NULL WHEN + 6 THEN COUNT( * ) WHEN + 86 * + 81 THEN NULL ELSE NULL END AS SIGNED ) * COALESCE ( - COUNT( * ), 55 * - 74, + COALESCE ( - CASE + MAX( - 86 ) WHEN - 27 THEN + 39 * SUM( DISTINCT + 92 ) WHEN + 59 + + 12 THEN NULL ELSE NULL END, 63, - COALESCE ( CASE 58 WHEN + 12 + + 0 THEN 69 WHEN + 64 / - 46 THEN NULL ELSE NULL END, 99 ) ) + 44, COUNT( * ) * - 18 ) THEN - SUM( 77 ) ELSE NULL END WHEN 44 THEN 43 ELSE NULL END / - ( 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT + 35 * - ( - 77 ) + + 69 - + + CASE COUNT ( * ) WHEN 34 THEN - 67 + + - CASE - + 83 WHEN 5 * + + CAST ( 60 AS INTEGER ) * + + 37 THEN NULL WHEN CAST ( + CASE + + ( 17 ) WHEN + 46 + 32 THEN + NULLIF ( - 0, - 65 + 53 / 87 ) * + COUNT ( * ) + NULLIF ( 32, 0 * + 2 ) / 16 WHEN + 62 * + 27 THEN NULL WHEN + 6 THEN COUNT ( * ) WHEN + 86 * + 81 THEN NULL ELSE NULL END AS INTEGER ) * COALESCE ( - COUNT ( * ), 55 * - 74, + COALESCE ( - CASE + MAX ( - 86 ) WHEN - 27 THEN + 39 * SUM ( DISTINCT + 92 ) WHEN + 59 + + 12 THEN NULL ELSE NULL END, 63, - COALESCE ( CASE 58 WHEN + 12 + + 0 THEN 69 WHEN + 64 / - 46 THEN NULL ELSE NULL END, 99 ) ) + 44, COUNT ( * ) * - 18 ) THEN - SUM ( 77 ) ELSE NULL END WHEN 44 THEN 43 ELSE NULL END / - ( 19 )
----
NULL

query I rowsort
SELECT 37 * 92 + - 13 * - 61 * + 57 * 91 + CASE - 60 WHEN + 48 THEN 93 - 37 END + 70 + + 44
----
NULL

query I rowsort
SELECT - 17 * + ( + 23 ) AS col0
----
-391

query II rowsort
SELECT ( - + 53 ) AS col1, - 95
----
-53
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2315
SELECT + CAST( 68 AS SIGNED ) + - - 10
----
78

skipif mysql # not compatible
query I rowsort label-2315
SELECT + CAST ( 68 AS INTEGER ) + - - 10
----
78

query I rowsort
SELECT + NULLIF ( - 55, - ( + 54 ) + - ( - ( - 41 ) ) / + CASE WHEN NOT 44 BETWEEN + - 60 AND ( - 5 * ( - ( - + 72 ) ) ) THEN + 95 END + + + 13 ) AS col1
----
-55

query I rowsort
SELECT + 75 + - - 20
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2318
SELECT - 97 * + 58 + 10 DIV - 22 AS col0
----
-5626

skipif mysql # not compatible
query I rowsort label-2318
SELECT - 97 * + 58 + 10 / - 22 AS col0
----
-5626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2319
SELECT ALL CASE - 91 WHEN ( + 50 ) THEN NULL WHEN + COALESCE ( + CASE + - 27 WHEN 64 THEN + + COALESCE ( - 2, - - CAST( NULL AS SIGNED ) ) ELSE 92 END, - 1 + + 26 ) / - COUNT( * ) THEN 48 ELSE NULL END + + 61 * - 29 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL CASE - 91 WHEN ( + 50 ) THEN NULL WHEN + COALESCE ( + CASE + - 27 WHEN 64 THEN + + COALESCE ( - 2, - - CAST ( NULL AS INTEGER ) ) ELSE 92 END, - 1 + + 26 ) / - COUNT ( * ) THEN 48 ELSE NULL END + + 61 * - 29 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2320
SELECT DISTINCT 16 DIV 4 AS col1, + 2 * COUNT( * ) AS col2
----
4
2

skipif mysql # not compatible
query II rowsort label-2320
SELECT DISTINCT 16 / 4 AS col1, + 2 * COUNT ( * ) AS col2
----
4
2

query I rowsort
SELECT DISTINCT + 19 + 62 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT ALL MAX( ALL 28 ) * + + 58
----
1624

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL MAX ( ALL 28 ) * + + 58
----
1624

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT NULLIF ( COUNT( ALL 67 ), + 28 ) * + - COUNT( * ) + + 31 * - 4 AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-2323
SELECT NULLIF ( COUNT ( ALL 67 ), + 28 ) * + - COUNT ( * ) + + 31 * - 4 AS col1
----
-125

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

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + 2 - + 8 * - + COUNT ( * ) / - COUNT ( * ) AS col0
----
-6

query I rowsort
SELECT 87 - - + 65 + + + 41
----
193

onlyif mysql # aggregate syntax: 
query II rowsort label-2326
SELECT ( ( - + 68 ) ) - - ( COUNT( * ) ) AS col0, + ( - COUNT( * ) )
----
-67
-1

skipif mysql # not compatible
query II rowsort label-2326
SELECT ( ( - + 68 ) ) - - ( COUNT ( * ) ) AS col0, + ( - COUNT ( * ) )
----
-67
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2327
SELECT DISTINCT 8 * COUNT( * ) AS col1, COUNT( * ) AS col0
----
8
1

skipif mysql # not compatible
query II rowsort label-2327
SELECT DISTINCT 8 * COUNT ( * ) AS col1, COUNT ( * ) AS col0
----
8
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2328
SELECT 48 * + NULLIF ( + + 78, + + CAST( NULL AS SIGNED ) - + - 4 ) AS col1
----
3744

skipif mysql # not compatible
query I rowsort label-2328
SELECT 48 * + NULLIF ( + + 78, + + CAST ( NULL AS INTEGER ) - + - 4 ) AS col1
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT DISTINCT + COALESCE ( SUM( - 62 ), - + COUNT( * ), - - 87 )
----
-62

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT + COALESCE ( SUM ( - 62 ), - + COUNT ( * ), - - 87 )
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2330
SELECT DISTINCT 53 DIV + 98 * + 75 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT 53 / + 98 * + 75 - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2331
SELECT COUNT( DISTINCT 10 ) AS col2, 35
----
1
35

skipif mysql # not compatible
query II rowsort label-2331
SELECT COUNT ( DISTINCT 10 ) AS col2, 35
----
1
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2332
SELECT + 89 + - COUNT( * ) - - - 38 DIV 16 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2332
SELECT + 89 + - COUNT ( * ) - - - 38 / 16 AS col0
----
86

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2334
SELECT + COUNT( ALL + 17 ) DIV 89 + 36
----
36

skipif mysql # not compatible
query I rowsort label-2334
SELECT + COUNT ( ALL + 17 ) / 89 + 36
----
36

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2337
SELECT DISTINCT - ( - 63 ) AS col2, + CASE + COUNT( * ) WHEN 63 THEN - 2 END + - + 70
----
63
NULL

skipif mysql # not compatible
query II rowsort label-2337
SELECT DISTINCT - ( - 63 ) AS col2, + CASE + COUNT ( * ) WHEN 63 THEN - 2 END + - + 70
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT DISTINCT 0 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT 0 + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL - 4 + + - 8
----
-12

query I rowsort
SELECT 72 * 45
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT ALL 35 + + MAX( DISTINCT + 5 )
----
40

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL 35 + + MAX ( DISTINCT + 5 )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2342
SELECT 81 DIV - COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-2342
SELECT 81 / - COUNT ( * ) AS col1
----
-81

query I rowsort
SELECT + 94 * 10 - 20
----
920

query II rowsort
SELECT 79, 54 + + - 98 AS col0
----
79
-44

query I rowsort
SELECT ALL 87 + + 55 AS col0
----
142

query I rowsort
SELECT 97 * - - 56 * - ( - + 32 ) * - 21 + + 3 col2
----
-3650301

query I rowsort
SELECT DISTINCT - 87 + - 53
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT ALL + COUNT( * ) + 10 + 32 * - ( 96 )
----
-3061

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL + COUNT ( * ) + 10 + 32 * - ( 96 )
----
-3061

query II rowsort
SELECT + 30 AS col0, + 1 AS col2
----
30
1

query I rowsort
SELECT 87 - - 56 col1
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2351
SELECT DISTINCT 86 + - 2 + 4 + 91 * - + 76 * - 69 * - 59 + + 85 * COUNT( * ) DIV - 1 + CAST( - COUNT( * ) AS SIGNED ) * + + ( - ( - 82 ) ) * + CAST( - - 2 AS SIGNED )
----
-28155197

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT 86 + - 2 + 4 + 91 * - + 76 * - 69 * - 59 + + 85 * COUNT ( * ) / - 1 + CAST ( - COUNT ( * ) AS INTEGER ) * + + ( - ( - 82 ) ) * + CAST ( - - 2 AS INTEGER )
----
-28155197

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2353
SELECT ALL - 42 * ( COUNT( * ) ) AS col2, - CASE WHEN NOT + 39 IS NOT NULL THEN + SUM( DISTINCT + - 1 ) ELSE NULL END * 56 - - + 50 + - 53 * + - 36 AS col1
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-2353
SELECT ALL - 42 * ( COUNT ( * ) ) AS col2, - CASE WHEN NOT + 39 IS NOT NULL THEN + SUM ( DISTINCT + - 1 ) ELSE NULL END * 56 - - + 50 + - 53 * + - 36 AS col1
----
-42
NULL

query I rowsort
SELECT DISTINCT - ( + + 25 ) col2
----
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT 87 + + + NULLIF ( + 21, - - 84 + + - 44 + + MAX( + 38 ) )
----
108

skipif mysql # not compatible
query I rowsort label-2356
SELECT 87 + + + NULLIF ( + 21, - - 84 + + - 44 + + MAX ( + 38 ) )
----
108

query I rowsort
SELECT 25 * + - 34 col1
----
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT 32 - - ( + - COUNT( * ) ) * - - 82 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-2358
SELECT 32 - - ( + - COUNT ( * ) ) * - - 82 AS col2
----
-50

query II rowsort
SELECT 6 + + 74 + - ( - + 17 ) AS col0, 31 AS col2
----
97
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT 1 * 23 - + - ( + 13 ) * 39 * - COUNT( * ) * 75
----
-38002

skipif mysql # not compatible
query I rowsort label-2360
SELECT 1 * 23 - + - ( + 13 ) * 39 * - COUNT ( * ) * 75
----
-38002

query I rowsort
SELECT ALL - 95 - - 32 col0
----
-63

query II rowsort
SELECT - + 14, NULLIF ( 58, + - 89 ) AS col2
----
-14
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2363
SELECT - 80 DIV 76
----
-1

skipif mysql # not compatible
query I rowsort label-2363
SELECT - 80 / 76
----
-1

query II rowsort
SELECT ALL + 4 * + + 75 * - 54 AS col2, - 14 * - 78 AS col1
----
-16200
1092

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT NULLIF ( + - 63, + + 51 + + + NULLIF ( - - COUNT( ALL + + 80 ), 15 ) + 84 ) + + 73 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-2366
SELECT NULLIF ( + - 63, + + 51 + + + NULLIF ( - - COUNT ( ALL + + 80 ), 15 ) + 84 ) + + 73 AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2367
SELECT DISTINCT + 67 AS col2, COUNT( * ) * 74
----
67
74

skipif mysql # not compatible
query II rowsort label-2367
SELECT DISTINCT + 67 AS col2, COUNT ( * ) * 74
----
67
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT - - COALESCE ( 36, MAX( - 3 ) )
----
36

skipif mysql # not compatible
query I rowsort label-2369
SELECT - - COALESCE ( 36, MAX ( - 3 ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT - COALESCE ( COUNT( * ), ( ( + 76 ) ) ) * - 95
----
95

skipif mysql # not compatible
query I rowsort label-2370
SELECT - COALESCE ( COUNT ( * ), ( ( + 76 ) ) ) * - 95
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2371
SELECT - ( - 61 ) + + 57 DIV + 14 - - + 74 AS col0
----
139

skipif mysql # not compatible
query I rowsort label-2371
SELECT - ( - 61 ) + + 57 / + 14 - - + 74 AS col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT DISTINCT + 77 + + - 64 + ( - COUNT( * ) ) * + 78
----
-65

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT + 77 + + - 64 + ( - COUNT ( * ) ) * + 78
----
-65

query I rowsort
SELECT COALESCE ( - NULLIF ( + 89, + 38 ), - - 48 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT COALESCE ( + COUNT( * ), + - 83 * + 2 + + 52 ) * 70 + - 63 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2374
SELECT COALESCE ( + COUNT ( * ), + - 83 * + 2 + + 52 ) * 70 + - 63 AS col1
----
7

query II rowsort
SELECT DISTINCT + 83, 95 col1
----
83
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2376
SELECT ALL + NULLIF ( 77, + 94 * - + CASE + NULLIF ( 55, - 48 ) WHEN - - CAST( - - 33 AS SIGNED ) * - 44 * 35 THEN - 65 + + 61 + + 6 + 85 / - - 49 * + + 3 * + 5 * 88 WHEN 86 THEN 76 END ) + - 55 * + ( + 80 * 74 ) AS col1
----
-325523

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL + NULLIF ( 77, + 94 * - + CASE + NULLIF ( 55, - 48 ) WHEN - - CAST ( - - 33 AS INTEGER ) * - 44 * 35 THEN - 65 + + 61 + + 6 + 85 / - - 49 * + + 3 * + 5 * 88 WHEN 86 THEN 76 END ) + - 55 * + ( + 80 * 74 ) AS col1
----
-325523

query I rowsort
SELECT DISTINCT - + 15 + COALESCE ( - 60, - - 36 )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT + NULLIF ( - 96, AVG ( + + 9 ) * + AVG ( DISTINCT - 22 ) * + + 50 / + CAST( - + 5 AS SIGNED ) + - + ( + 82 ) * 1 + - CASE 65 WHEN + 31 THEN - 96 * - 94 END * + + 49 )
----
-96

skipif mysql # not compatible
query I rowsort label-2378
SELECT + NULLIF ( - 96, AVG ( + + 9 ) * + AVG ( DISTINCT - 22 ) * + + 50 / + CAST ( - + 5 AS INTEGER ) + - + ( + 82 ) * 1 + - CASE 65 WHEN + 31 THEN - 96 * - 94 END * + + 49 )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT ALL - COUNT( * ), 3 AS col2
----
-1
3

skipif mysql # not compatible
query II rowsort label-2379
SELECT ALL - COUNT ( * ), 3 AS col2
----
-1
3

query I rowsort
SELECT ALL 9 * + 5 + + 78 * + 6 col0
----
513

query I rowsort
SELECT 52 + 84
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT SUM( - 42 ) * + 83 + - 74 * - - 39 + - COUNT( * ) * - ( + 4 ) AS col1
----
-6368

skipif mysql # not compatible
query I rowsort label-2382
SELECT SUM ( - 42 ) * + 83 + - 74 * - - 39 + - COUNT ( * ) * - ( + 4 ) AS col1
----
-6368

onlyif mysql # DIV for integer division: 
query I rowsort label-2383
SELECT ALL 88 DIV - - 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL 88 / - - 55 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2384
SELECT + COUNT( * ) * + 59 * - + CAST( NULL AS SIGNED ) + + 87 + - + COUNT( ALL 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT + COUNT ( * ) * + 59 * - + CAST ( NULL AS INTEGER ) + + 87 + - + COUNT ( ALL 43 )
----
NULL

query I rowsort
SELECT + NULLIF ( - 70, - 20 )
----
-70

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

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

query I rowsort
SELECT ALL 52 * + + 86 AS col1
----
4472

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT DISTINCT 20 * - - 78 * 18 - 97 + + COUNT( * ) * 21
----
28004

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT 20 * - - 78 * 18 - 97 + + COUNT ( * ) * 21
----
28004

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT MAX( ALL + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-2389
SELECT MAX ( ALL + 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT DISTINCT 87 * - SUM( DISTINCT + 26 ) col1
----
-2262

skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT 87 * - SUM ( DISTINCT + 26 ) col1
----
-2262

onlyif mysql # aggregate syntax: 
query II rowsort label-2391
SELECT ALL 95 * ( - COUNT( * ) ) - 59, + 71 AS col1
----
-154
71

skipif mysql # not compatible
query II rowsort label-2391
SELECT ALL 95 * ( - COUNT ( * ) ) - 59, + 71 AS col1
----
-154
71

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

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

query I rowsort
SELECT - 89 * + ( + - 48 ) * - 91 + + 31
----
-388721

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL - 96 * - - 96 * - NULLIF ( - 81, + COUNT( * ) ) - + 40 AS col1
----
-746536

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL - 96 * - - 96 * - NULLIF ( - 81, + COUNT ( * ) ) - + 40 AS col1
----
-746536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2395
SELECT 11 * - 67 / - 9 + + 72 + - 11 / - COUNT( * ) * + - COALESCE ( - 24, - COUNT( * ) ) + + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT 11 * - 67 / - 9 + + 72 + - 11 / - COUNT ( * ) * + - COALESCE ( - 24, - COUNT ( * ) ) + + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT - 9 * + 25 * - ( - 82 ) * + + 31 + COALESCE ( + 42, - 75 )
----
-571908

onlyif mysql # aggregate syntax: 
query II rowsort label-2398
SELECT ALL + SUM( + 28 ) col2, 28 * - 84
----
28
-2352

skipif mysql # not compatible
query II rowsort label-2398
SELECT ALL + SUM ( + 28 ) col2, 28 * - 84
----
28
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT - MAX( + + 3 ) + 61 * - ( CASE ( 11 ) WHEN + MIN( 43 ) * - - ( - CASE + 32 WHEN + 67 THEN NULL WHEN + 57 THEN - 71 * - CASE + 44 WHEN - - 1 THEN - + 67 * - 2 ELSE + 5 + + 51 * - 65 END END ) THEN NULL WHEN - ( 12 ) THEN - 64 * + 57 WHEN COUNT( * ) THEN - COUNT( 1 ) * 18 ELSE ( + 85 ) END ) AS col2
----
-5188

skipif mysql # not compatible
query I rowsort label-2399
SELECT - MAX ( + + 3 ) + 61 * - ( CASE ( 11 ) WHEN + MIN ( 43 ) * - - ( - CASE + 32 WHEN + 67 THEN NULL WHEN + 57 THEN - 71 * - CASE + 44 WHEN - - 1 THEN - + 67 * - 2 ELSE + 5 + + 51 * - 65 END END ) THEN NULL WHEN - ( 12 ) THEN - 64 * + 57 WHEN COUNT ( * ) THEN - COUNT ( 1 ) * 18 ELSE ( + 85 ) END ) AS col2
----
-5188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT + 73 * MIN( - 29 )
----
-2117

skipif mysql # not compatible
query I rowsort label-2401
SELECT + 73 * MIN ( - 29 )
----
-2117

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

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

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

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

query I rowsort
SELECT - + 19 * 15 * 89 AS col1
----
-25365

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT + 44 - COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-2405
SELECT + 44 - COUNT ( * ) AS col1
----
43

query I rowsort
SELECT ALL - 39 + - - 74 - + 88 + 76 AS col2
----
23

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

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

query II rowsort
SELECT - 41 * - 40 AS col1, - 19 AS col0
----
1640
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT ALL + COUNT( * ) + + 42 * - - 67 AS col0
----
2815

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL + COUNT ( * ) + + 42 * - - 67 AS col0
----
2815

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2410
SELECT ALL - + NULLIF ( - 64, + COUNT( * ) ) + + NULLIF ( + 3, COALESCE ( - 21, + 85 * - 40 + MAX( ALL 81 ) ) * + 58 ) DIV + 39
----
64

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL - + NULLIF ( - 64, + COUNT ( * ) ) + + NULLIF ( + 3, COALESCE ( - 21, + 85 * - 40 + MAX ( ALL 81 ) ) * + 58 ) / + 39
----
64

query I rowsort
SELECT DISTINCT + - 63 + - + 91 * 21 AS col1
----
-1974

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL - 56 + + + COUNT( ALL 9 ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL - 56 + + + COUNT ( ALL 9 ) col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2413
SELECT ALL + + ( + COUNT( * ) ) DIV + 79 - - + 22
----
22

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + + ( + COUNT ( * ) ) / + 79 - - + 22
----
22

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

skipif mysql # not compatible
query I rowsort label-2414
SELECT - COUNT ( * ) / + - NULLIF ( - 20, + 87 )
----
0

query II rowsort
SELECT - + 18 - 53 AS col1, + 67 AS col0
----
-71
67

query I rowsort
SELECT ALL 60 * CASE + - 43 WHEN + + 49 * - - 36 THEN NULL ELSE + + 90 END * - 87 AS col2
----
-469800

query I rowsort
SELECT ALL - + 37 + + 17 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT + COUNT( * ) * SUM( DISTINCT + + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-2418
SELECT + COUNT ( * ) * SUM ( DISTINCT + + 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT - MIN( + 88 ) + + - 23 AS col2
----
-111

skipif mysql # not compatible
query I rowsort label-2419
SELECT - MIN ( + 88 ) + + - 23 AS col2
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2420
SELECT CAST( NULL AS SIGNED ) AS col1, + 63 * + 31 * + 77
----
NULL
150381

skipif mysql # not compatible
query II rowsort label-2420
SELECT CAST ( NULL AS INTEGER ) AS col1, + 63 * + 31 * + 77
----
NULL
150381

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT + 76 + - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-2421
SELECT + 76 + - COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2422
SELECT ALL + 16 AS col0, + NULLIF ( NULLIF ( CASE + 91 WHEN - 61 + - - COUNT( - 76 ) + - COUNT( * ) * - COUNT( * ) THEN NULL ELSE - - 36 + - - 1 END, - 79 ), - 46 ) AS col1
----
16
37

skipif mysql # not compatible
query II rowsort label-2422
SELECT ALL + 16 AS col0, + NULLIF ( NULLIF ( CASE + 91 WHEN - 61 + - - COUNT ( - 76 ) + - COUNT ( * ) * - COUNT ( * ) THEN NULL ELSE - - 36 + - - 1 END, - 79 ), - 46 ) AS col1
----
16
37

query I rowsort
SELECT - ( - 97 ) * - 35 AS col0
----
-3395

onlyif mysql # aggregate syntax: 
query II rowsort label-2424
SELECT + COUNT( - ( 43 ) ), - 57 * - 56 * ( - 13 ) * - - 35 col0
----
1
-1452360

skipif mysql # not compatible
query II rowsort label-2424
SELECT + COUNT ( - ( 43 ) ), - 57 * - 56 * ( - 13 ) * - - 35 col0
----
1
-1452360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2425
SELECT ALL COUNT( * ) DIV - 21 - 37 * - 47
----
1739

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL COUNT ( * ) / - 21 - 37 * - 47
----
1739

query I rowsort
SELECT + 47 * - 27 - - 55 - + 68
----
-1282

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2428
SELECT + ( - ( + COUNT( * ) ) ) AS col1, ( - 46 ) * - - 87 + - COALESCE ( - 67, + 91 - + - 81 ) AS col2
----
-1
-3935

skipif mysql # not compatible
query II rowsort label-2428
SELECT + ( - ( + COUNT ( * ) ) ) AS col1, ( - 46 ) * - - 87 + - COALESCE ( - 67, + 91 - + - 81 ) AS col2
----
-1
-3935

query I rowsort
SELECT + ( + ( - - 9 ) ) col1
----
9

query I rowsort
SELECT + 56 * + 29
----
1624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2431
SELECT + CAST( COALESCE ( - CAST( NULL AS SIGNED ), 1, - - 64 ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2431
SELECT + CAST ( COALESCE ( - CAST ( NULL AS INTEGER ), 1, - - 64 ) AS INTEGER ) col1
----
1

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

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

query I rowsort
SELECT + NULLIF ( 76, - - 94 * + + 43 ) col1
----
76

query I rowsort
SELECT DISTINCT 97 * ( - 53 ) AS col0
----
-5141

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

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

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

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

query I rowsort
SELECT ALL + 34 * + + 97 AS col0
----
3298

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT DISTINCT - - 39 * 4 - 80 + MIN( ALL - 15 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT - - 39 * 4 - 80 + MIN ( ALL - 15 ) AS col1
----
61

query I rowsort
SELECT ALL + - 73 * + 72 * 93 + - 18 + - 11 * - 91
----
-487825

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2440
SELECT + 57 * + CAST( NULL AS DECIMAL ) + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT + 57 * + CAST ( NULL AS REAL ) + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT - COUNT( * ) * + SUM( - 66 ) * - 41 + + ( - 19 ) - - 98
----
-2627

skipif mysql # not compatible
query I rowsort label-2441
SELECT - COUNT ( * ) * + SUM ( - 66 ) * - 41 + + ( - 19 ) - - 98
----
-2627

query I rowsort
SELECT + - 63 + + - 26 + + 85 + 49 * - + ( COALESCE ( 68, - 94 * + + 56 + - 81 * 83 ) ) + + - 44 * + 18 AS col2
----
-4128

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT - - 57 - + COUNT( * ) + - 34 * ( - + 86 ) * + + 34 + - - ( - MAX( DISTINCT - 72 ) ) AS col0
----
99544

skipif mysql # not compatible
query I rowsort label-2443
SELECT - - 57 - + COUNT ( * ) + - 34 * ( - + 86 ) * + + 34 + - - ( - MAX ( DISTINCT - 72 ) ) AS col0
----
99544

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT - + MIN( + - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-2444
SELECT - + MIN ( + - 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT - 73 * + + ( - - 89 ) - + + ( - - ( - - MIN( - - 73 ) ) ) AS col2
----
-6570

skipif mysql # not compatible
query I rowsort label-2445
SELECT - 73 * + + ( - - 89 ) - + + ( - - ( - - MIN ( - - 73 ) ) ) AS col2
----
-6570

query I rowsort
SELECT + - 13 * - 16 + - + 31 * 44
----
-1156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2447
SELECT ALL - 76 * + + SUM( DISTINCT + 29 ) + + + NULLIF ( 84, + - ( CAST( NULL AS SIGNED ) ) - - CAST( + MAX( 13 ) AS SIGNED ) ) + + 50 AS col0
----
-2070

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL - 76 * + + SUM ( DISTINCT + 29 ) + + + NULLIF ( 84, + - ( CAST ( NULL AS INTEGER ) ) - - CAST ( + MAX ( 13 ) AS INTEGER ) ) + + 50 AS col0
----
-2070

query I rowsort
SELECT ALL - + 90 + + 53
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2449
SELECT ALL + 25 * - 28 - 50 - + - 61 - + + 32 + - - 89 * - 62 + - + 29 * + - MAX( DISTINCT + COALESCE ( - 62, + 46 DIV - + 37 + + + 81 + 84 ) ) AS col2
----
-8037

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL + 25 * - 28 - 50 - + - 61 - + + 32 + - - 89 * - 62 + - + 29 * + - MAX ( DISTINCT + COALESCE ( - 62, + 46 / - + 37 + + + 81 + 84 ) ) AS col2
----
-8037

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2450
SELECT + + 45 + + + 55 * + - ( COUNT( - - 18 ) ) * + 54 + + - 13 + 9 DIV 67
----
-2938

skipif mysql # not compatible
query I rowsort label-2450
SELECT + + 45 + + + 55 * + - ( COUNT ( - - 18 ) ) * + 54 + + - 13 + 9 / 67
----
-2938

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2452
SELECT + COALESCE ( COUNT( ALL - CAST( NULL AS SIGNED ) ), - - ( 55 ) DIV 31 - - - 82 + CASE + 62 WHEN - 44 THEN NULL WHEN - - 26 THEN + 0 WHEN 37 THEN NULL ELSE NULL END * CAST( COUNT( * ) AS SIGNED ) * + + 44 * - - 93 + - - 71 ) + + 47 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2452
SELECT + COALESCE ( COUNT ( ALL - CAST ( NULL AS INTEGER ) ), - - ( 55 ) / 31 - - - 82 + CASE + 62 WHEN - 44 THEN NULL WHEN - - 26 THEN + 0 WHEN 37 THEN NULL ELSE NULL END * CAST ( COUNT ( * ) AS INTEGER ) * + + 44 * - - 93 + - - 71 ) + + 47 AS col1
----
47

query I rowsort
SELECT 71 + - 14 + + 58 + + 10 AS col0
----
125

query II rowsort
SELECT ALL 63 AS col0, 31 * + 16 AS col0
----
63
496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2455
SELECT DISTINCT 70 - + + COUNT( + 95 ) + + 58 DIV - + 63
----
69

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT 70 - + + COUNT ( + 95 ) + + 58 / - + 63
----
69

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

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

query I rowsort
SELECT 0 * - 86 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT DISTINCT - 29 DIV + 90 * - 51
----
0

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT - 29 / + 90 * - 51
----
0

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

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL - NULLIF ( ( - NULLIF ( + 74, - ( + - COUNT ( * ) ) ) ), ( + 80 ) )
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-2460
SELECT 80 DIV + - 98 AS col0, - 36
----
0
-36

skipif mysql # not compatible
query II rowsort label-2460
SELECT 80 / + - 98 AS col0, - 36
----
0
-36

query I rowsort
SELECT 16 * - - 66 AS col1
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT ALL - COALESCE ( - - 51, ( - COUNT( * ) ), + 2 * COUNT( ALL - ( - ( - 86 ) ) ) * - MIN( 57 ) - - 6 ) * + + 23 * - MIN( + 24 ) AS col2
----
28152

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL - COALESCE ( - - 51, ( - COUNT ( * ) ), + 2 * COUNT ( ALL - ( - ( - 86 ) ) ) * - MIN ( 57 ) - - 6 ) * + + 23 * - MIN ( + 24 ) AS col2
----
28152

query I rowsort
SELECT 87 + + 17 + - - 21 AS col0
----
125

query I rowsort
SELECT 90 * - + 81 * 19 col0
----
-138510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2465
SELECT COUNT( * ) * + - 69 col0, CASE CASE - 41 WHEN - 16 * + COUNT( * ) + - + CAST( 8 AS SIGNED ) + - 60 THEN NULL WHEN 21 THEN NULL WHEN - + 23 * - - 93 + + - 88 THEN NULL WHEN - - 32 / - 94 THEN ( - CAST( NULL AS SIGNED ) ) + + 35 + ( - 92 ) * 7 * + CASE 2 + + 34 / 42 WHEN + 66 + - 39 * 52 THEN COUNT( * ) END END WHEN 57 + - MIN( + 56 ) THEN - 67 WHEN + 38 THEN - CAST( + 56 AS SIGNED ) END
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-2465
SELECT COUNT ( * ) * + - 69 col0, CASE CASE - 41 WHEN - 16 * + COUNT ( * ) + - + CAST ( 8 AS INTEGER ) + - 60 THEN NULL WHEN 21 THEN NULL WHEN - + 23 * - - 93 + + - 88 THEN NULL WHEN - - 32 / - 94 THEN ( - CAST ( NULL AS INTEGER ) ) + + 35 + ( - 92 ) * 7 * + CASE 2 + + 34 / 42 WHEN + 66 + - 39 * 52 THEN COUNT ( * ) END END WHEN 57 + - MIN ( + 56 ) THEN - 67 WHEN + 38 THEN - CAST ( + 56 AS INTEGER ) END
----
-69
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2466
SELECT COALESCE ( + + 69, + 8, - + 63 * + + 23 ) + - - COUNT( * ) DIV + + 35 * - 72
----
69

skipif mysql # not compatible
query I rowsort label-2466
SELECT COALESCE ( + + 69, + 8, - + 63 * + + 23 ) + - - COUNT ( * ) / + + 35 * - 72
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT ALL - MIN( DISTINCT - + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL - MIN ( DISTINCT - + 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT 11 * + - COUNT( * ) + 58 + - 34 * + COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2468
SELECT 11 * + - COUNT ( * ) + 58 + - 34 * + COUNT ( * ) AS col1
----
13

query II rowsort
SELECT DISTINCT - 83 AS col0, 89 AS col2
----
-83
89

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

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

query I rowsort
SELECT 31 + 41 + 34 AS col2
----
106

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

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT + COUNT ( + + 58 ) + - + COUNT ( * ) - 56 AS col1
----
-56

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

query I rowsort
SELECT DISTINCT 48 + - 98
----
-50

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2476
SELECT CASE 83 WHEN + 30 / - ( + 33 ) THEN 97 WHEN + 33 + 39 + - CASE WHEN - 16 NOT IN ( 18 ) THEN NULL ELSE + ( 77 ) / + ( 34 ) END + + CAST( - 40 AS DECIMAL ) * - 79 THEN NULL END * 74 - + + MAX( 44 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2476
SELECT CASE 83 WHEN + 30 / - ( + 33 ) THEN 97 WHEN + 33 + 39 + - CASE WHEN - 16 NOT IN ( 18 ) THEN NULL ELSE + ( 77 ) / + ( 34 ) END + + CAST ( - 40 AS REAL ) * - 79 THEN NULL END * 74 - + + MAX ( 44 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2477
SELECT CAST( NULL AS DECIMAL ) + - 95, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2477
SELECT CAST ( NULL AS REAL ) + - 95, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT 83 + + 78
----
161

query II rowsort
SELECT - 67 AS col1, + 65 * ( 20 )
----
-67
1300

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT 17 * - - 58 * NULLIF ( - 71, + ( - 58 ) + + 73 + COUNT( + 68 ) * + 58 ) AS col0
----
-70006

skipif mysql # not compatible
query I rowsort label-2481
SELECT 17 * - - 58 * NULLIF ( - 71, + ( - 58 ) + + 73 + COUNT ( + 68 ) * + 58 ) AS col0
----
-70006

query I rowsort
SELECT ALL - 20 * - 79 * 30
----
47400

query I rowsort
SELECT DISTINCT + 29 * + ( ( + 4 ) )
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-2484
SELECT ALL - MIN( - 82 ) - - + SUM( + - 12 ) AS col2, - 73
----
70
-73

skipif mysql # not compatible
query II rowsort label-2484
SELECT ALL - MIN ( - 82 ) - - + SUM ( + - 12 ) AS col2, - 73
----
70
-73

query II rowsort
SELECT + 99 * - 41 AS col0, + 83
----
-4059
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2486
SELECT + 51 AS col2, CASE + + 53 WHEN - + 96 * - 57 + + + 56 + - ( 66 ) THEN + 6 ELSE NULL END + - - 63 - 84 * COALESCE ( - 69, SUM( ALL + 50 ) * + ( 18 ) * COALESCE ( 19, + - CAST( NULL AS SIGNED ) * 23 + COUNT( * ) - - 47 * + 99 ) * + 18 ) + - COUNT( * ) AS col2
----
51
NULL

skipif mysql # not compatible
query II rowsort label-2486
SELECT + 51 AS col2, CASE + + 53 WHEN - + 96 * - 57 + + + 56 + - ( 66 ) THEN + 6 ELSE NULL END + - - 63 - 84 * COALESCE ( - 69, SUM ( ALL + 50 ) * + ( 18 ) * COALESCE ( 19, + - CAST ( NULL AS INTEGER ) * 23 + COUNT ( * ) - - 47 * + 99 ) * + 18 ) + - COUNT ( * ) AS col2
----
51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT + COUNT( * ) - + NULLIF ( + 63, - - 43 ) + MAX( DISTINCT - + 1 ) * 57 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-2487
SELECT + COUNT ( * ) - + NULLIF ( + 63, - - 43 ) + MAX ( DISTINCT - + 1 ) * 57 AS col2
----
-119

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT + 56 - - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2489
SELECT + 56 - - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2490
SELECT MAX( + 74 ), CASE + - 36 WHEN 9 + - - 51 - + COUNT( * ) * + MAX( + 80 ) THEN NULL WHEN - + AVG ( DISTINCT - 55 ) THEN + 56 + - + CAST( NULL AS SIGNED ) END AS col0
----
74
NULL

skipif mysql # not compatible
query II rowsort label-2490
SELECT MAX ( + 74 ), CASE + - 36 WHEN 9 + - - 51 - + COUNT ( * ) * + MAX ( + 80 ) THEN NULL WHEN - + AVG ( DISTINCT - 55 ) THEN + 56 + - + CAST ( NULL AS INTEGER ) END AS col0
----
74
NULL

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

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

query I rowsort
SELECT 65 * - + 96 + + - 29
----
-6269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2493
SELECT DISTINCT 70 - - CAST( 36 AS SIGNED ) * + + 62 AS col2
----
2302

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT 70 - - CAST ( 36 AS INTEGER ) * + + 62 AS col2
----
2302

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2494
SELECT 0 - - - ( + 55 ) + - COALESCE ( + 14, 23 ) + 95 * 83 DIV - COUNT( * ) AS col1
----
-7954

skipif mysql # not compatible
query I rowsort label-2494
SELECT 0 - - - ( + 55 ) + - COALESCE ( + 14, 23 ) + 95 * 83 / - COUNT ( * ) AS col1
----
-7954

query I rowsort
SELECT ALL - 15 * - + 21 * 68 * + ( - - 54 ) AS col1
----
1156680

onlyif mysql # DIV for integer division: 
query II rowsort label-2496
SELECT ALL 22 * - 8, - 19 DIV - 66 AS col0
----
-176
0

skipif mysql # not compatible
query II rowsort label-2496
SELECT ALL 22 * - 8, - 19 / - 66 AS col0
----
-176
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT 90 + + 72 * 2 + ( - COUNT( * ) ) + 38 + - 86
----
185

skipif mysql # not compatible
query I rowsort label-2497
SELECT 90 + + 72 * 2 + ( - COUNT ( * ) ) + 38 + - 86
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2498
SELECT ALL - COALESCE ( + 67, + 82, + 79 - + 13 + 33 / + + 50 * - 59 + - + 33 * - 1 * - 20 * - - 17 ) * + CASE - + ( + - 53 ) WHEN NULLIF ( - + 22, COUNT( * ) * - 23 + + CAST( + + 53 AS SIGNED ) * 80 + - COUNT( 1 ) ) * - COUNT( + 45 * 17 ) THEN - 57 + - COUNT( * ) * + 44 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - COALESCE ( + 67, + 82, + 79 - + 13 + 33 / + + 50 * - 59 + - + 33 * - 1 * - 20 * - - 17 ) * + CASE - + ( + - 53 ) WHEN NULLIF ( - + 22, COUNT ( * ) * - 23 + + CAST ( + + 53 AS INTEGER ) * 80 + - COUNT ( 1 ) ) * - COUNT ( + 45 * 17 ) THEN - 57 + - COUNT ( * ) * + 44 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 96 * + + 85 * - + 14 AS col2
----
-114240

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT 32 + 38 + + CASE 70 WHEN + 97 + - 51 * - 46 THEN - 8 WHEN - NULLIF ( - 40, + 50 ) + + + 4 * 0 THEN MIN( - - 70 ) WHEN + 24 / - 76 * - ( + 79 ) THEN - 27 END * + - 4 * - 66 * MIN( + 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT 32 + 38 + + CASE 70 WHEN + 97 + - 51 * - 46 THEN - 8 WHEN - NULLIF ( - 40, + 50 ) + + + 4 * 0 THEN MIN ( - - 70 ) WHEN + 24 / - 76 * - ( + 79 ) THEN - 27 END * + - 4 * - 66 * MIN ( + 41 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2501
SELECT ALL - CASE - - COALESCE ( + 27, CAST( + COUNT( * ) AS DECIMAL ) ) WHEN + - MAX( 8 ) * - 97 THEN - - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL - CASE - - COALESCE ( + 27, CAST ( + COUNT ( * ) AS REAL ) ) WHEN + - MAX ( 8 ) * - 97 THEN - - COUNT ( * ) END AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT DISTINCT + 43 * + - 95 * + 7 + - COUNT( + 21 ) * - 19 * - SUM( DISTINCT 18 ) * - 6 + + + 69 - ( + 75 ) + + 26 + 25 AS col2
----
-26498

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT + 43 * + - 95 * + 7 + - COUNT ( + 21 ) * - 19 * - SUM ( DISTINCT 18 ) * - 6 + + + 69 - ( + 75 ) + + 26 + 25 AS col2
----
-26498

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT COUNT( * ) * + ( - - 46 ) * - + 92 + - 55 AS col1
----
-4287

skipif mysql # not compatible
query I rowsort label-2504
SELECT COUNT ( * ) * + ( - - 46 ) * - + 92 + - 55 AS col1
----
-4287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT ALL - ( + COUNT( * ) ) * CAST( NULL AS SIGNED ) + + 6 + + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL - ( + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) + + 6 + + 2 AS col2
----
NULL

query I rowsort
SELECT 50 * + ( - + 72 ) AS col0
----
-3600

query I rowsort
SELECT ALL + 26 * + 30 AS col0
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT 62 + - SUM( ALL + 28 )
----
34

skipif mysql # not compatible
query I rowsort label-2508
SELECT 62 + - SUM ( ALL + 28 )
----
34

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

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

query I rowsort
SELECT 52 * - 36 * 34 * + + 53 - 90 + + 36 col1
----
-3373398

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

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

query I rowsort
SELECT DISTINCT - 24 * - + 49 * + 79 AS col0
----
92904

onlyif mysql # aggregate syntax: 
query II rowsort label-2513
SELECT ALL + COUNT( - 15 ) + + 5 AS col0, + 77
----
6
77

skipif mysql # not compatible
query II rowsort label-2513
SELECT ALL + COUNT ( - 15 ) + + 5 AS col0, + 77
----
6
77

query I rowsort
SELECT ALL - NULLIF ( - - 7, - 92 + + + 34 )
----
-7

query I rowsort
SELECT ALL - - 18 * - 98 * + 69 AS col2
----
-121716

query I rowsort
SELECT DISTINCT + 33 + - 84 AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2517
SELECT + CASE - 58 WHEN + 63 THEN - 6 ELSE - ( - COUNT( * ) ) DIV 51 * - + CAST( + 28 AS SIGNED ) END + - ( - + 77 ) col1
----
77

skipif mysql # not compatible
query I rowsort label-2517
SELECT + CASE - 58 WHEN + 63 THEN - 6 ELSE - ( - COUNT ( * ) ) / 51 * - + CAST ( + 28 AS INTEGER ) END + - ( - + 77 ) col1
----
77

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

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

query I rowsort
SELECT 19 * 11 * - 92 + - + 93 * ( - 42 ) + 31 - 68 AS col2
----
-15359

query II rowsort
SELECT - 96 * + 54, 75 AS col1
----
-5184
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT - NULLIF ( + COALESCE ( - 79, COUNT( * ) ), - 93 * + 97 ) + - 70 * - - 23 AS col2
----
-1531

skipif mysql # not compatible
query I rowsort label-2521
SELECT - NULLIF ( + COALESCE ( - 79, COUNT ( * ) ), - 93 * + 97 ) + - 70 * - - 23 AS col2
----
-1531

query I rowsort
SELECT - 54 + 68 AS col0
----
14

query I rowsort
SELECT - 63 * - - 55
----
-3465

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2526
SELECT DISTINCT 23 * - CAST( ( - 34 ) AS SIGNED ) col1
----
782

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT 23 * - CAST ( ( - 34 ) AS INTEGER ) col1
----
782

query I rowsort
SELECT ALL 81 * + 88
----
7128

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT - 87 * COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-2528
SELECT - 87 * COUNT ( * ) AS col1
----
-87

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2531
SELECT + ( - 72 ) + + + 54 AS col0, + COUNT( * ) AS col2
----
-18
1

skipif mysql # not compatible
query II rowsort label-2531
SELECT + ( - 72 ) + + + 54 AS col0, + COUNT ( * ) AS col2
----
-18
1

query I rowsort
SELECT + 63 * 69
----
4347

query I rowsort
SELECT DISTINCT 69 + + - 15 col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2534
SELECT ALL COUNT( * ) + + 16 * - + 78 AS col1, + 98, COUNT( * ) DIV + SUM( 56 ) AS col0
----
-1247
98
0

skipif mysql # not compatible
query III rowsort label-2534
SELECT ALL COUNT ( * ) + + 16 * - + 78 AS col1, + 98, COUNT ( * ) / + SUM ( 56 ) AS col0
----
-1247
98
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2535
SELECT ALL 33 + MIN( DISTINCT - - 89 ) + + - 39 + - 45 * + + ( + 31 ) - - 48, + NULLIF ( 71, + AVG ( - 52 ) * - 45 ) * 84 - - 84 * - ( 86 ) col2
----
-1264
-1260

skipif mysql # not compatible
query II rowsort label-2535
SELECT ALL 33 + MIN ( DISTINCT - - 89 ) + + - 39 + - 45 * + + ( + 31 ) - - 48, + NULLIF ( 71, + AVG ( - 52 ) * - 45 ) * 84 - - 84 * - ( 86 ) col2
----
-1264
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT + COUNT( * ) + - 84 / - CASE 51 WHEN 5 THEN NULL WHEN + 20 + + 33 THEN + + 92 WHEN + - 63 THEN NULL END / + 79 + + - COALESCE ( + 21, 60 ) * - COUNT( DISTINCT - - NULLIF ( + 69, + 3 + - 43 * - 82 ) ) + - 61 * - 26 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2536
SELECT + COUNT ( * ) + - 84 / - CASE 51 WHEN 5 THEN NULL WHEN + 20 + + 33 THEN + + 92 WHEN + - 63 THEN NULL END / + 79 + + - COALESCE ( + 21, 60 ) * - COUNT ( DISTINCT - - NULLIF ( + 69, + 3 + - 43 * - 82 ) ) + - 61 * - 26 / - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 66 * + 60 + + + 93 AS col2, - ( - + 26 ) AS col2
----
-3867
26

query I rowsort
SELECT + 15 + - 1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT + NULLIF ( + - MIN( + 18 ), + 4 * - 30 * - ( 79 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-2539
SELECT + NULLIF ( + - MIN ( + 18 ), + 4 * - 30 * - ( 79 ) )
----
-18

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

query I rowsort
SELECT + + 59 * - 18
----
-1062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2542
SELECT DISTINCT + CASE + 87 WHEN + CASE - 14 WHEN - ( + CAST( NULL AS SIGNED ) ) THEN 32 + - CASE + 30 WHEN COUNT( * ) THEN + CASE + 80 WHEN + + 93 + + - 19 THEN ( 65 ) WHEN COUNT( * ) + + 5 / - + 6 THEN NULL ELSE + 91 END WHEN + + 89 THEN 71 + MAX( ALL - 77 ) + 17 * SUM( DISTINCT - ( 58 ) ) END WHEN - NULLIF ( 2, + 41 * 86 ) THEN + CAST( + 92 AS SIGNED ) + + COUNT( 59 ) ELSE + MAX( DISTINCT 1 ) END * 73 THEN NULL WHEN - 14 THEN - 36 * - 23 END * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT + CASE + 87 WHEN + CASE - 14 WHEN - ( + CAST ( NULL AS INTEGER ) ) THEN 32 + - CASE + 30 WHEN COUNT ( * ) THEN + CASE + 80 WHEN + + 93 + + - 19 THEN ( 65 ) WHEN COUNT ( * ) + + 5 / - + 6 THEN NULL ELSE + 91 END WHEN + + 89 THEN 71 + MAX ( ALL - 77 ) + 17 * SUM ( DISTINCT - ( 58 ) ) END WHEN - NULLIF ( 2, + 41 * 86 ) THEN + CAST ( + 92 AS INTEGER ) + + COUNT ( 59 ) ELSE + MAX ( DISTINCT 1 ) END * 73 THEN NULL WHEN - 14 THEN - 36 * - 23 END * 11 AS col0
----
NULL

query I rowsort
SELECT - - 26 * + - 56
----
-1456

query I rowsort
SELECT ALL 54 * 8 - 83 * 39 * - 17 AS col0
----
55461

query II rowsort
SELECT ALL + + 88, 94 * + + 93 * + 94 AS col1
----
88
821748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2546
SELECT DISTINCT + 71 DIV - CAST( - + 61 AS SIGNED ), 31 * + MIN( 78 ) + + COUNT( + 73 ) * - - 79 + - - 94 AS col0
----
1
2591

skipif mysql # not compatible
query II rowsort label-2546
SELECT DISTINCT + 71 / - CAST ( - + 61 AS INTEGER ), 31 * + MIN ( 78 ) + + COUNT ( + 73 ) * - - 79 + - - 94 AS col0
----
1
2591

query I rowsort
SELECT + + 65 * - 53 * - 50 AS col0
----
172250

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2550
SELECT - + 57 * + NULLIF ( - 68, - - 97 / 73 / + + 76 + COUNT( * ) * + 0 / + CAST( NULL AS SIGNED ) + + 33 - 46 ) + + + 23 + + - 79 - + + 16 + - 78 AS col1
----
3726

skipif mysql # not compatible
query I rowsort label-2550
SELECT - + 57 * + NULLIF ( - 68, - - 97 / 73 / + + 76 + COUNT ( * ) * + 0 / + CAST ( NULL AS INTEGER ) + + 33 - 46 ) + + + 23 + + - 79 - + + 16 + - 78 AS col1
----
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT - 87 * + + 52 * 83 + - - COUNT( * ) AS col1
----
-375491

skipif mysql # not compatible
query I rowsort label-2551
SELECT - 87 * + + 52 * 83 + - - COUNT ( * ) AS col1
----
-375491

query II rowsort
SELECT DISTINCT 24 * - ( - + 48 ) - - 10, - 24 + 12 - 98 * 39 * 50 AS col2
----
1162
-191112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2553
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) * - - 12 + - + COALESCE ( - 83, 79, - 82, - COUNT( DISTINCT + + 41 ) + 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) * - - 12 + - + COALESCE ( - 83, 79, - 82, - COUNT ( DISTINCT + + 41 ) + 19 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT - NULLIF ( - MAX( - 59 ), - 97 )
----
-59

skipif mysql # not compatible
query I rowsort label-2554
SELECT - NULLIF ( - MAX ( - 59 ), - 97 )
----
-59

query I rowsort
SELECT ALL - 19 * + NULLIF ( + 32, 63 + + 64 ) + + 47
----
-561

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

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

query I rowsort
SELECT DISTINCT + 86 * 42
----
3612

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2558
SELECT 26 AS col0, + 76 + + 69 / CAST( NULL AS SIGNED ) * - + 5 col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-2558
SELECT 26 AS col0, + 76 + + 69 / CAST ( NULL AS INTEGER ) * - + 5 col1
----
26
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2560
SELECT DISTINCT ( - + CAST( - + 54 AS SIGNED ) ) col0
----
54

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT ( - + CAST ( - + 54 AS INTEGER ) ) col0
----
54

query I rowsort
SELECT - 64 - 9 col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT - NULLIF ( COUNT( DISTINCT 24 ), - - ( + 84 ) * AVG ( DISTINCT 88 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2562
SELECT - NULLIF ( COUNT ( DISTINCT 24 ), - - ( + 84 ) * AVG ( DISTINCT 88 ) )
----
-1

query II rowsort
SELECT DISTINCT + 97 + + + 92, 51 AS col0
----
189
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT - 40 + - - 35 + + - MAX( ALL COALESCE ( - 18, + 9 ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2564
SELECT - 40 + - - 35 + + - MAX ( ALL COALESCE ( - 18, + 9 ) ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2565
SELECT DISTINCT ( - COUNT( * ) ) * - - 22 * + - 29 AS col2, 14 AS col1
----
638
14

skipif mysql # not compatible
query II rowsort label-2565
SELECT DISTINCT ( - COUNT ( * ) ) * - - 22 * + - 29 AS col2, 14 AS col1
----
638
14

query I rowsort
SELECT DISTINCT + CASE - 23 WHEN + 30 THEN NULL WHEN - 86 THEN + 57 END + - 84 + - 70 * 89
----
NULL

query I rowsort
SELECT ALL ( + + 38 ) + 23 + + 45 AS col0
----
106

query II rowsort
SELECT - 74 * - 93 AS col2, 98 + - 5 * + - 70
----
6882
448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2569
SELECT - 91 / CASE - 26 WHEN + CAST( NULL AS SIGNED ) * 38 THEN NULL WHEN + 84 THEN + 0 - - CASE - 80 WHEN - 16 + - - 27 + + ( + COUNT( * ) ) THEN NULL WHEN + 4 THEN 22 END + - CASE - COUNT( * ) WHEN - NULLIF ( + + 77, COUNT( * ) ) / + - 55 THEN NULL WHEN 79 - 5 * - 98 * - COUNT( * ) + - 7 THEN - 95 ELSE NULL END / - 74 WHEN 62 * ( 98 ) THEN NULL ELSE NULL END * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT - 91 / CASE - 26 WHEN + CAST ( NULL AS INTEGER ) * 38 THEN NULL WHEN + 84 THEN + 0 - - CASE - 80 WHEN - 16 + - - 27 + + ( + COUNT ( * ) ) THEN NULL WHEN + 4 THEN 22 END + - CASE - COUNT ( * ) WHEN - NULLIF ( + + 77, COUNT ( * ) ) / + - 55 THEN NULL WHEN 79 - 5 * - 98 * - COUNT ( * ) + - 7 THEN - 95 ELSE NULL END / - 74 WHEN 62 * ( 98 ) THEN NULL ELSE NULL END * 32
----
NULL

query I rowsort
SELECT - 50 + + 38 + + 83 AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2571
SELECT DISTINCT 79 + COUNT( * ) + + + 20 DIV - + 48
----
80

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT 79 + COUNT ( * ) + + + 20 / - + 48
----
80

query I rowsort
SELECT - NULLIF ( - 71, + - 83 )
----
71

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

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

query I rowsort
SELECT + CASE + 82 WHEN + 91 THEN 70 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2575
SELECT ALL COUNT( * ) DIV - - 88 - - - 2 * + + 34 * - SUM( ALL ( 81 ) ) - - + 19 * COUNT( * ) AS col1, - 96 AS col2
----
5527
-96

skipif mysql # not compatible
query II rowsort label-2575
SELECT ALL COUNT ( * ) / - - 88 - - - 2 * + + 34 * - SUM ( ALL ( 81 ) ) - - + 19 * COUNT ( * ) AS col1, - 96 AS col2
----
5527
-96

query I rowsort
SELECT DISTINCT - 41 * 52 AS col2
----
-2132

query II rowsort
SELECT - 69 * - 43, - 79 * + 66 - - 96 + - 64 AS col0
----
2967
-5182

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT 28 * + + COUNT( * ) + + - 73
----
-45

skipif mysql # not compatible
query I rowsort label-2579
SELECT 28 * + + COUNT ( * ) + + - 73
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT DISTINCT - COALESCE ( - 68, CASE - 53 WHEN - + ( + 42 ) * - - 53 + COUNT( * ) * + 9 THEN - 28 ELSE NULL END + 2 )
----
68

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT - COALESCE ( - 68, CASE - 53 WHEN - + ( + 42 ) * - - 53 + COUNT ( * ) * + 9 THEN - 28 ELSE NULL END + 2 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2581
SELECT + CAST( NULL AS SIGNED ) * - 18 + COALESCE ( + 15, + SUM( + + 89 ) + 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2581
SELECT + CAST ( NULL AS INTEGER ) * - 18 + COALESCE ( + 15, + SUM ( + + 89 ) + 93 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 48 * - 52 * + 22 * + - NULLIF ( + - 72, - 76 ) + + - 82
----
3953582

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2584
SELECT DISTINCT + 26 DIV 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT + 26 / 37 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT - COALESCE ( 47, - + 14 / + - 67, - COUNT( DISTINCT + + 82 ), - NULLIF ( - 12, - 13 + - 2 ) + - - 65 * + 14 + + + 68 / + - COALESCE ( - COUNT( * ), + 57 / 70 * 50 ) + - 79 ) + CASE + - 12 WHEN - 81 + 8 THEN 68 * - 96 WHEN + 69 * 30 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2585
SELECT - COALESCE ( 47, - + 14 / + - 67, - COUNT ( DISTINCT + + 82 ), - NULLIF ( - 12, - 13 + - 2 ) + - - 65 * + 14 + + + 68 / + - COALESCE ( - COUNT ( * ), + 57 / 70 * 50 ) + - 79 ) + CASE + - 12 WHEN - 81 + 8 THEN 68 * - 96 WHEN + 69 * 30 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2586
SELECT ALL - + COUNT( * ) DIV - + NULLIF ( + 72, COALESCE ( - + NULLIF ( COUNT( * ), + + 60 ), + COALESCE ( - 98, - - 10 ) + 21, 2 ) + + ( - + 46 ) * - COUNT( * ) * 81 * + 45 ) + ( - - 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL - + COUNT ( * ) / - + NULLIF ( + 72, COALESCE ( - + NULLIF ( COUNT ( * ), + + 60 ), + COALESCE ( - 98, - - 10 ) + 21, 2 ) + + ( - + 46 ) * - COUNT ( * ) * 81 * + 45 ) + ( - - 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL + COUNT( * ) + + 65 * - - ( + 40 ) AS col1
----
2601

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL + COUNT ( * ) + + 65 * - - ( + 40 ) AS col1
----
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT + ( + - 2 ) * - COUNT( ALL + 54 ) + - 52 + + 94 * + + 25 * - - 68 + + 8 + + 86 * + 4 + + - 84
----
160018

skipif mysql # not compatible
query I rowsort label-2588
SELECT + ( + - 2 ) * - COUNT ( ALL + 54 ) + - 52 + + 94 * + + 25 * - - 68 + + 8 + + 86 * + 4 + + - 84
----
160018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2589
SELECT 0 + - COUNT( * ) + - + 30 * + 81 * - 40 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT 0 + - COUNT ( * ) + - + 30 * + 81 * - 40 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT 93 * + COUNT( * ) - 25 * - COUNT( * ) col0
----
118

skipif mysql # not compatible
query I rowsort label-2590
SELECT 93 * + COUNT ( * ) - 25 * - COUNT ( * ) col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT ALL - COUNT( DISTINCT - + 58 ) * - 95 + + 0 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL - COUNT ( DISTINCT - + 58 ) * - 95 + + 0 AS col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2592
SELECT 41 DIV + 15 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2592
SELECT 41 / + 15 AS col2
----
2

query I rowsort
SELECT 35 + + 30
----
65

query I rowsort
SELECT ALL + ( + 87 ) * + + 16 AS col0
----
1392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2595
SELECT 21 + + 42 + - + 75 * + 73 DIV + COUNT( * ) AS col1
----
-5412

skipif mysql # not compatible
query I rowsort label-2595
SELECT 21 + + 42 + - + 75 * + 73 / + COUNT ( * ) AS col1
----
-5412

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT 25 * - COALESCE ( - COUNT( * ), ( - - 78 ) ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-2596
SELECT 25 * - COALESCE ( - COUNT ( * ), ( - - 78 ) ) AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2597
SELECT MIN( DISTINCT + ( + 18 ) ) * SUM( + 40 ) DIV - - 60 + - - COUNT( * ) + 61 DIV - 36 + - 62
----
-50

skipif mysql # not compatible
query I rowsort label-2597
SELECT MIN ( DISTINCT + ( + 18 ) ) * SUM ( + 40 ) / - - 60 + - - COUNT ( * ) + 61 / - 36 + - 62
----
-50

query I rowsort
SELECT 31 + + + 69 + + 60
----
160

query I rowsort
SELECT ALL + 31 * + 92
----
2852

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT DISTINCT - COUNT( * ) - 19 col0
----
-20

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT - COUNT ( * ) - 19 col0
----
-20

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

skipif mysql # not compatible
query I rowsort label-2601
SELECT DISTINCT MAX ( DISTINCT - - 22 )
----
22

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

query I rowsort
SELECT + 49 + - 2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2604
SELECT 76 DIV - - 74
----
1

skipif mysql # not compatible
query I rowsort label-2604
SELECT 76 / - - 74
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT + MAX( + + 26 ) * - 56 AS col1
----
-1456

skipif mysql # not compatible
query I rowsort label-2605
SELECT + MAX ( + + 26 ) * - 56 AS col1
----
-1456

query I rowsort
SELECT 6 + + 90 AS col1
----
96

query II rowsort
SELECT - 82 AS col0, 70 AS col1
----
-82
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL 73 + + ( COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL 73 + + ( COUNT ( * ) )
----
74

query I rowsort
SELECT DISTINCT + 69 + - 3 - 43 * + 60 AS col1
----
-2514

query I rowsort
SELECT 24 * - 23 AS col0
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ( + 72 ) + - - COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-2611
SELECT ( + 72 ) + - - COUNT ( * ) AS col0
----
73

query I rowsort
SELECT 35 + - + 48 AS col0
----
-13

query II rowsort
SELECT ALL - 71 AS col0, 34
----
-71
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2614
SELECT 9 DIV COUNT( * ) AS col0, + 63
----
9
63

skipif mysql # not compatible
query II rowsort label-2614
SELECT 9 / COUNT ( * ) AS col0, + 63
----
9
63

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

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT - COUNT ( + - 0 ) AS col0
----
-1

query II rowsort
SELECT DISTINCT - 86, 13 + 38 AS col1
----
-86
51

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

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL + 98 + COUNT ( * ) - - 11 AS col1
----
110

query I rowsort
SELECT 35 * + 51
----
1785

query I rowsort
SELECT ALL 92 + + 9 * - 40 col1
----
-268

query I rowsort
SELECT ALL - 25 * - 81
----
2025

query I rowsort
SELECT 44 * - 6 * + 67 AS col2
----
-17688

query II rowsort
SELECT 73 AS col1, + 93
----
73
93

query II rowsort
SELECT ALL 78 col2, 42 AS col1
----
78
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2624
SELECT ALL 45 DIV - 12 * - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL 45 / - 12 * - COUNT ( * ) AS col0
----
3

query I rowsort
SELECT 60 * + 21
----
1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2626
SELECT CAST( NULL AS SIGNED ) + + + 18 * 52 + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT CAST ( NULL AS INTEGER ) + + + 18 * 52 + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT - CASE - - COUNT( * ) WHEN - - 6 * - 82 THEN + 58 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT - CASE - - COUNT ( * ) WHEN - - 6 * - 82 THEN + 58 END AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2629
SELECT 50 DIV + 1 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2629
SELECT 50 / + 1 AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2630
SELECT ALL COUNT( * ), + CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2630
SELECT ALL COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT DISTINCT MAX( DISTINCT + - 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT MAX ( DISTINCT + - 59 ) AS col0
----
-59

query I rowsort
SELECT 69 - + 83
----
-14

query I rowsort
SELECT ALL + NULLIF ( 99, 67 ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2634
SELECT ALL + CAST( + COALESCE ( 31, + 96 + MAX( + 75 ) / + COUNT( * ) + + - 5, COUNT( * ) * - 64 + + 67 + - - 82 ) AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL + CAST ( + COALESCE ( 31, + 96 + MAX ( + 75 ) / + COUNT ( * ) + + - 5, COUNT ( * ) * - 64 + + 67 + - - 82 ) AS INTEGER )
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2635
SELECT - - 47 * - 12 + + CAST( - CASE - - 16 WHEN 37 THEN + - COUNT( * ) + - COALESCE ( - 98, - 35 ) WHEN COUNT( * ) THEN - 98 WHEN - 17 THEN NULL END AS DECIMAL ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT - - 47 * - 12 + + CAST ( - CASE - - 16 WHEN 37 THEN + - COUNT ( * ) + - COALESCE ( - 98, - 35 ) WHEN COUNT ( * ) THEN - 98 WHEN - 17 THEN NULL END AS REAL ) * + COUNT ( * ) AS col1
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2638
SELECT ALL - 92 / - 82 + - + 24 + - ( CAST( NULL AS DECIMAL ) ) * + CAST( + + 4 AS DECIMAL ) + - COUNT( * ) + + COALESCE ( ( + NULLIF ( - - 98, - 51 ) ), + 59 * 91 * - 10 + - - 39, 8 * - - COUNT( * ) + + ( - 30 ) - - + 21 + + 45 / - CAST( - MIN( DISTINCT - - 29 ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL - 92 / - 82 + - + 24 + - ( CAST ( NULL AS REAL ) ) * + CAST ( + + 4 AS REAL ) + - COUNT ( * ) + + COALESCE ( ( + NULLIF ( - - 98, - 51 ) ), + 59 * 91 * - 10 + - - 39, 8 * - - COUNT ( * ) + + ( - 30 ) - - + 21 + + 45 / - CAST ( - MIN ( DISTINCT - - 29 ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2639
SELECT - COUNT( DISTINCT - - 68 ) * 34 DIV + - 14 col2, 85
----
2
85

skipif mysql # not compatible
query II rowsort label-2639
SELECT - COUNT ( DISTINCT - - 68 ) * 34 / + - 14 col2, 85
----
2
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT DISTINCT - MAX( - 32 ) * - 80
----
-2560

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT - MAX ( - 32 ) * - 80
----
-2560

query I rowsort
SELECT DISTINCT 48 * + CASE 58 WHEN - 46 THEN NULL WHEN + + 62 THEN 8 ELSE NULL END * 42
----
NULL

query II rowsort
SELECT ALL - - 92 * 9 + - 86 * 99, 69 AS col0
----
-7686
69

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

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

query II rowsort
SELECT ALL + + 66, - 99 AS col2
----
66
-99

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

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL - COUNT ( * ) * COUNT ( * ) + + 9 / 27 * + 76 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT + 71 * - 77 * - 27 + + 20 * - + 10 + - + COUNT( * ) + + - 46 AS col0
----
147362

skipif mysql # not compatible
query I rowsort label-2647
SELECT + 71 * - 77 * - 27 + + 20 * - + 10 + - + COUNT ( * ) + + - 46 AS col0
----
147362

query I rowsort
SELECT COALESCE ( - - 95, + 53, 45 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2649
SELECT ALL + ( + 54 ) * - ( - 23 ) + COUNT( ALL + 74 ) AS col0, 56 AS col0
----
1243
56

skipif mysql # not compatible
query II rowsort label-2649
SELECT ALL + ( + 54 ) * - ( - 23 ) + COUNT ( ALL + 74 ) AS col0, 56 AS col0
----
1243
56

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2650
SELECT ALL + - 33, + 91 * 72 DIV + - ( - + 18 ) + - 86 + + 46 + + 32 + + - 43 DIV 54 * - 62 DIV + 21 * CASE + CAST( + 57 AS DECIMAL ) WHEN + 21 THEN - + 37 + - CAST( NULL AS SIGNED ) ELSE - 5 END AS col2
----
-33
356

skipif mysql # not compatible
query II rowsort label-2650
SELECT ALL + - 33, + 91 * 72 / + - ( - + 18 ) + - 86 + + 46 + + 32 + + - 43 / 54 * - 62 / + 21 * CASE + CAST ( + 57 AS REAL ) WHEN + 21 THEN - + 37 + - CAST ( NULL AS INTEGER ) ELSE - 5 END AS col2
----
-33
356

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT DISTINCT 1 * - COUNT( DISTINCT + - 13 ) + - - 76 + + + 54 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT 1 * - COUNT ( DISTINCT + - 13 ) + - - 76 + + + 54 AS col2
----
129

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

query I rowsort
SELECT + 63 + - + 13 + + 54 * + - 13 + 51 AS col2
----
-601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2655
SELECT ALL + ( 19 ) * + 60 * + CAST( NULL AS SIGNED ) * - 82 - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL + ( 19 ) * + 60 * + CAST ( NULL AS INTEGER ) * - 82 - 69
----
NULL

query I rowsort
SELECT 30 * 29 + + 50 * - - 57
----
3720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2657
SELECT + 81 * - CAST( 21 AS SIGNED ) * - - 45 col1
----
-76545

skipif mysql # not compatible
query I rowsort label-2657
SELECT + 81 * - CAST ( 21 AS INTEGER ) * - - 45 col1
----
-76545

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT - COUNT( * ) * + - 42 + ( + 80 ) - + 47 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2658
SELECT - COUNT ( * ) * + - 42 + ( + 80 ) - + 47 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2659
SELECT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2659
SELECT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + 27 + 27 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT 67 * COUNT( * ) + - ( + 78 ) * - 47 AS col0
----
3733

skipif mysql # not compatible
query I rowsort label-2661
SELECT 67 * COUNT ( * ) + - ( + 78 ) * - 47 AS col0
----
3733

query II rowsort
SELECT ALL 39 * - 71 AS col0, 54 AS col0
----
-2769
54

query I rowsort
SELECT + 45 * - 70 * - 35
----
110250

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT DISTINCT MIN( DISTINCT - 78 ) * - + 85 + - + ( COUNT( * ) ) AS col1
----
6629

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT MIN ( DISTINCT - 78 ) * - + 85 + - + ( COUNT ( * ) ) AS col1
----
6629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2665
SELECT + 97 + - + COUNT( * ) * + CAST( + 73 AS SIGNED ) * + + ( - 44 ) - 90
----
3219

skipif mysql # not compatible
query I rowsort label-2665
SELECT + 97 + - + COUNT ( * ) * + CAST ( + 73 AS INTEGER ) * + + ( - 44 ) - 90
----
3219

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

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

query I rowsort
SELECT + 48 + + COALESCE ( 7, + - 26, + 21 ) - + + 64 AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2668
SELECT DISTINCT - COUNT( - - 89 ) DIV 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT - COUNT ( - - 89 ) / 90 AS col1
----
0

query I rowsort
SELECT + 61 + - NULLIF ( 26, + - 7 + + 37 ) - - 58 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2670
SELECT - NULLIF ( - + 41, + MIN( ALL - - 5 ) + - 67 + - 27 * - - CAST( + - 53 AS SIGNED ) + - MIN( DISTINCT 38 ) ) + - 69 * - 42
----
2939

skipif mysql # not compatible
query I rowsort label-2670
SELECT - NULLIF ( - + 41, + MIN ( ALL - - 5 ) + - 67 + - 27 * - - CAST ( + - 53 AS INTEGER ) + - MIN ( DISTINCT 38 ) ) + - 69 * - 42
----
2939

query I rowsort
SELECT ALL - + 32 + + 14 AS col0
----
-18

query I rowsort
SELECT DISTINCT 67 + - 31 + - 38
----
-2

query I rowsort
SELECT DISTINCT + + 19 + 71
----
90

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2675
SELECT - 25 + + SUM( + 70 ) * - + COUNT( * ) + - 88 DIV - COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2675
SELECT - 25 + + SUM ( + 70 ) * - + COUNT ( * ) + - 88 / - COUNT ( * ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT + 64 * - 25 * - + SUM( 54 ) col2
----
86400

skipif mysql # not compatible
query I rowsort label-2676
SELECT + 64 * - 25 * - + SUM ( 54 ) col2
----
86400

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT DISTINCT - COUNT( * ) / + + 25 * + 39 * - 81 + CASE - 2 WHEN + 97 * + 58 THEN + 4 END * - 79 + - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT - COUNT ( * ) / + + 25 * + 39 * - 81 + CASE - 2 WHEN + 97 * + 58 THEN + 4 END * - 79 + - 94 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + 3, 90 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2679
SELECT - 91 * + 59 col2, - MIN( - 69 )
----
-5369
69

skipif mysql # not compatible
query II rowsort label-2679
SELECT - 91 * + 59 col2, - MIN ( - 69 )
----
-5369
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2680
SELECT 8 * + COALESCE ( 95, - CASE + 59 WHEN 13 * 76 * + 86 + - 7 THEN + 50 WHEN 42 * - + CASE - + COUNT( + 46 ) WHEN 81 * - 32 * 85 * + 38 + + COUNT( * ) * + 16 / - CASE + NULLIF ( + ( + 82 ), - AVG ( ALL + + 84 ) * 85 ) WHEN + 54 + CAST( NULL AS SIGNED ) THEN 85 ELSE 22 END THEN - 42 END + + 32 * + 57 + - COUNT( * ) THEN NULL ELSE NULL END * 22 + 69 * + 50, 32 ) + 75 * + 95 AS col0
----
7885

skipif mysql # not compatible
query I rowsort label-2680
SELECT 8 * + COALESCE ( 95, - CASE + 59 WHEN 13 * 76 * + 86 + - 7 THEN + 50 WHEN 42 * - + CASE - + COUNT ( + 46 ) WHEN 81 * - 32 * 85 * + 38 + + COUNT ( * ) * + 16 / - CASE + NULLIF ( + ( + 82 ), - AVG ( ALL + + 84 ) * 85 ) WHEN + 54 + CAST ( NULL AS INTEGER ) THEN 85 ELSE 22 END THEN - 42 END + + 32 * + 57 + - COUNT ( * ) THEN NULL ELSE NULL END * 22 + 69 * + 50, 32 ) + 75 * + 95 AS col0
----
7885

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT DISTINCT - - COUNT( * ) * - 28 - SUM( DISTINCT - 47 )
----
19

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT - - COUNT ( * ) * - 28 - SUM ( DISTINCT - 47 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT DISTINCT ( + - 88 ) DIV + 90 + ( + ( + 3 ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT ( + - 88 ) / + 90 + ( + ( + 3 ) ) AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2683
SELECT - 11 * + - ( 51 ) AS col2, + COUNT( * ) + + 34 - 79 DIV - - 50 AS col2
----
561
34

skipif mysql # not compatible
query II rowsort label-2683
SELECT - 11 * + - ( 51 ) AS col2, + COUNT ( * ) + + 34 - 79 / - - 50 AS col2
----
561
34

query I rowsort
SELECT DISTINCT + 25 * 0 col2
----
0

query II rowsort
SELECT ALL + 6 AS col0, 98 col2
----
6
98

query II rowsort
SELECT DISTINCT + 77, - 79 AS col1
----
77
-79

query I rowsort
SELECT - 75 - + 9 - 13 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT - SUM( - ( + 6 ) ) * + 6
----
36

skipif mysql # not compatible
query I rowsort label-2688
SELECT - SUM ( - ( + 6 ) ) * + 6
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2689
SELECT ( - CAST( + 42 AS SIGNED ) ), ( + 84 ) AS col1
----
-42
84

skipif mysql # not compatible
query II rowsort label-2689
SELECT ( - CAST ( + 42 AS INTEGER ) ), ( + 84 ) AS col1
----
-42
84

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT NULLIF ( - 55, COUNT( * ) )
----
-55

skipif mysql # not compatible
query I rowsort label-2692
SELECT NULLIF ( - 55, COUNT ( * ) )
----
-55

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

query II rowsort
SELECT ALL + 86, 26 AS col2
----
86
26

query I rowsort
SELECT 40 * + + 64
----
2560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2696
SELECT 75 * + 54 DIV + COUNT( * )
----
4050

skipif mysql # not compatible
query I rowsort label-2696
SELECT 75 * + 54 / + COUNT ( * )
----
4050

query II rowsort
SELECT ALL 94, 79 AS col1
----
94
79

onlyif mysql # DIV for integer division: 
query II rowsort label-2698
SELECT 41 AS col0, - 95 DIV - 74 - 33
----
41
-32

skipif mysql # not compatible
query II rowsort label-2698
SELECT 41 AS col0, - 95 / - 74 - 33
----
41
-32

query I rowsort
SELECT 59 + 71 AS col1
----
130

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

query I rowsort
SELECT + 46 * 35 - + 16 col1
----
1594

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT 12 + - ( + 21 ) + - 11 + + - 52 * COALESCE ( MAX( - 3 ), - MAX( CASE + 15 WHEN 8 - 60 + - 71 THEN + 69 ELSE NULL END ) ) + + + 56 * 53 AS col2
----
3104

skipif mysql # not compatible
query I rowsort label-2702
SELECT 12 + - ( + 21 ) + - 11 + + - 52 * COALESCE ( MAX ( - 3 ), - MAX ( CASE + 15 WHEN 8 - 60 + - 71 THEN + 69 ELSE NULL END ) ) + + + 56 * 53 AS col2
----
3104

query II rowsort
SELECT DISTINCT ( + 91 ) + + ( 22 ) col0, 24 AS col1
----
113
24

query I rowsort
SELECT ALL 99 + + 57
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT ALL - 75 + MIN( + 46 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL - 75 + MIN ( + 46 ) AS col2
----
-29

query I rowsort
SELECT ALL - 64 * + 71 * + 76
----
-345344

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

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

query II rowsort
SELECT ALL - 51 AS col0, 60
----
-51
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT DISTINCT + COUNT( * ) + - - MIN( ALL - 88 ) * - - 50 + + 88
----
-4311

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT + COUNT ( * ) + - - MIN ( ALL - 88 ) * - - 50 + + 88
----
-4311

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2710
SELECT DISTINCT + CASE + 48 WHEN + 34 * + - 80 THEN + 66 - COUNT( * ) + + COUNT( * ) DIV + - NULLIF ( + 45, 88 * COUNT( * ) + - + 99 ) WHEN - 27 + + 80 * + - 52 * - 71 THEN NULL ELSE 76 + - + 2 * + + COUNT( * ) END DIV - - 66 + + 22 + - COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT + CASE + 48 WHEN + 34 * + - 80 THEN + 66 - COUNT ( * ) + + COUNT ( * ) / + - NULLIF ( + 45, 88 * COUNT ( * ) + - + 99 ) WHEN - 27 + + 80 * + - 52 * - 71 THEN NULL ELSE 76 + - + 2 * + + COUNT ( * ) END / - - 66 + + 22 + - COUNT ( * ) AS col2
----
22

query I rowsort
SELECT DISTINCT 10 + - 67 * 85
----
-5685

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2712
SELECT 22 - - COUNT( * ) * + 37 AS col1, 75 DIV COALESCE ( - 91, - 93 * - 6, - COUNT( * ) ) AS col2
----
59
0

skipif mysql # not compatible
query II rowsort label-2712
SELECT 22 - - COUNT ( * ) * + 37 AS col1, 75 / COALESCE ( - 91, - 93 * - 6, - COUNT ( * ) ) AS col2
----
59
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT ALL - 57 - COUNT( * ) - 40 col1
----
-98

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL - 57 - COUNT ( * ) - 40 col1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2714
SELECT ALL + CAST( - + COUNT( * ) AS SIGNED ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) * COUNT ( * )
----
-1

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

skipif mysql # not compatible
query I rowsort label-2715
SELECT - 11 / - - 12
----
0

query II rowsort
SELECT DISTINCT - - 51 col2, 37 AS col2
----
51
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL SUM( + 14 ) - + - ( 21 )
----
35

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL SUM ( + 14 ) - + - ( 21 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT COUNT( * ) * - - CASE - CASE 75 WHEN 4 THEN AVG ( 50 ) END WHEN 73 THEN NULL WHEN - 42 + 76 THEN + - COUNT( * ) + + 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT COUNT ( * ) * - - CASE - CASE 75 WHEN 4 THEN AVG ( 50 ) END WHEN 73 THEN NULL WHEN - 42 + 76 THEN + - COUNT ( * ) + + 26 ELSE NULL END
----
NULL

query I rowsort
SELECT COALESCE ( 26, ( + 81 ) + - 82 ) + - 49 AS col1
----
-23

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

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

query I rowsort
SELECT ALL + 3 * - 41 * + 56 * - - 23 AS col1
----
-158424

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

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

query I rowsort
SELECT 69 + - 54
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT 79 + + - ( - NULLIF ( - + 72, 56 / + 52 * - 20 * 68 * - 52 ) ) + + + 32 * - COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2724
SELECT 79 + + - ( - NULLIF ( - + 72, 56 / + 52 * - 20 * 68 * - 52 ) ) + + + 32 * - COUNT ( * ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT + 86 * + 78 * COUNT( * ) AS col0
----
6708

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT + 86 * + 78 * COUNT ( * ) AS col0
----
6708

onlyif mysql # aggregate syntax: 
query II rowsort label-2726
SELECT 59 * COALESCE ( - 74, + 45, - + 84 ) AS col2, - CASE + - 19 WHEN + - ( - COUNT( DISTINCT - 71 ) ) THEN + + NULLIF ( AVG ( ALL - - 61 ), - 64 ) WHEN - 18 THEN + ( + 54 ) WHEN + 49 THEN 95 ELSE NULL END
----
-4366
NULL

skipif mysql # not compatible
query II rowsort label-2726
SELECT 59 * COALESCE ( - 74, + 45, - + 84 ) AS col2, - CASE + - 19 WHEN + - ( - COUNT ( DISTINCT - 71 ) ) THEN + + NULLIF ( AVG ( ALL - - 61 ), - 64 ) WHEN - 18 THEN + ( + 54 ) WHEN + 49 THEN 95 ELSE NULL END
----
-4366
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2727
SELECT 65 DIV - 20 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2727
SELECT 65 / - 20 AS col0
----
-3

query I rowsort
SELECT DISTINCT - 87 * 22 AS col2
----
-1914

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2729
SELECT ALL + CAST( NULL AS DECIMAL ) + - 82 + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL + CAST ( NULL AS REAL ) + - 82 + + 64
----
NULL

query I rowsort
SELECT DISTINCT + 35 + 18
----
53

query II rowsort
SELECT ALL - + 85 + + 33 AS col0, + 61
----
-52
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT ALL + - SUM( ALL - 1 ) * + + 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL + - SUM ( ALL - 1 ) * + + 80 AS col0
----
80

query I rowsort
SELECT - 16 - + 61 + + - 97 col1
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT + 60 + MAX( ALL - + 58 ) * MAX( ALL - 9 ) + + 10 * - 18 * + 42 * + COUNT( * ) + 93
----
-6885

skipif mysql # not compatible
query I rowsort label-2734
SELECT + 60 + MAX ( ALL - + 58 ) * MAX ( ALL - 9 ) + + 10 * - 18 * + 42 * + COUNT ( * ) + 93
----
-6885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2735
SELECT ALL 99 - COUNT( * ) + - - 65 * AVG ( - - CAST( NULL AS SIGNED ) ) * - ( 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL 99 - COUNT ( * ) + - - 65 * AVG ( - - CAST ( NULL AS INTEGER ) ) * - ( 55 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT DISTINCT + + COUNT( * ) * + - 64 col1
----
-64

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT + + COUNT ( * ) * + - 64 col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2737
SELECT - NULLIF ( 46, + COUNT( * ) ) * - - 39 - + - MIN( DISTINCT - 66 ) * + CAST( NULL AS SIGNED ) * - 25 - - COUNT( ALL + 66 ) - 45 + + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT - NULLIF ( 46, + COUNT ( * ) ) * - - 39 - + - MIN ( DISTINCT - 66 ) * + CAST ( NULL AS INTEGER ) * - 25 - - COUNT ( ALL + 66 ) - 45 + + + 96
----
NULL

query I rowsort
SELECT + 9 + - 64
----
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT COUNT( * ) + - 64
----
-63

skipif mysql # not compatible
query I rowsort label-2740
SELECT COUNT ( * ) + - 64
----
-63

query I rowsort
SELECT 54 * 92
----
4968

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT ALL 46 DIV - 1 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL 46 / - 1 AS col1
----
-46

query I rowsort
SELECT 60 + - 43
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT + MAX( - - 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2744
SELECT + MAX ( - - 83 ) AS col2
----
83

query I rowsort
SELECT 44 * 63
----
2772

query I rowsort
SELECT ALL 16 * - 11
----
-176

query II rowsort
SELECT ALL - 89 AS col2, + 52 * - + 77
----
-89
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT ALL COUNT( * ) * + 36 + - 49 * - - 67 AS col0
----
-3247

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL COUNT ( * ) * + 36 + - 49 * - - 67 AS col0
----
-3247

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2749
SELECT + COALESCE ( - 97, - - 52 + - 55, + + 13 DIV + CAST( NULL AS SIGNED ) ) AS col2, 7 * - + ( 53 ) * 60 - + - 46 AS col1
----
-97
-22214

skipif mysql # not compatible
query II rowsort label-2749
SELECT + COALESCE ( - 97, - - 52 + - 55, + + 13 / + CAST ( NULL AS INTEGER ) ) AS col2, 7 * - + ( 53 ) * 60 - + - 46 AS col1
----
-97
-22214

query I rowsort
SELECT DISTINCT 39 * + 54 col0
----
2106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2751
SELECT - ( + CAST( 52 AS SIGNED ) ) * + 62
----
-3224

skipif mysql # not compatible
query I rowsort label-2751
SELECT - ( + CAST ( 52 AS INTEGER ) ) * + 62
----
-3224

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT + SUM( ALL - 93 ) - 72
----
-165

skipif mysql # not compatible
query I rowsort label-2752
SELECT + SUM ( ALL - 93 ) - 72
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL 74 * - + 24 + + 74 + 2 * - - MIN( + + ( + 99 ) ) AS col2
----
-1504

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL 74 * - + 24 + + 74 + 2 * - - MIN ( + + ( + 99 ) ) AS col2
----
-1504

query I rowsort
SELECT + ( ( - 9 ) ) * - 54 * - 79 AS col2
----
-38394

query I rowsort
SELECT ALL 18 * - + 82 + + - 61
----
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT MIN( DISTINCT 85 ) col0
----
85

skipif mysql # not compatible
query I rowsort label-2756
SELECT MIN ( DISTINCT 85 ) col0
----
85

query I rowsort
SELECT ALL - 9 + + - 34
----
-43

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

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * + + 65 / COUNT ( * ) + 7
----
-57

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

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT + 6 + - CAST ( NULL AS INTEGER ) col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2761
SELECT DISTINCT + CASE + 6 WHEN - 68 * - - 83 + + 91 / + 41 THEN - CAST( + - 6 AS DECIMAL ) / 50 * - 94 - - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) WHEN + 95 THEN NULL ELSE NULL END + - 74 * - 15 AS col0, 70
----
NULL
70

skipif mysql # not compatible
query II rowsort label-2761
SELECT DISTINCT + CASE + 6 WHEN - 68 * - - 83 + + 91 / + 41 THEN - CAST ( + - 6 AS REAL ) / 50 * - 94 - - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) WHEN + 95 THEN NULL ELSE NULL END + - 74 * - 15 AS col0, 70
----
NULL
70

query I rowsort
SELECT - - COALESCE ( + + ( + - ( + 41 ) ), 36 )
----
-41

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2765
SELECT - 57 * + 79 DIV + COUNT( * ) * - + 1 col1
----
4503

skipif mysql # not compatible
query I rowsort label-2765
SELECT - 57 * + 79 / + COUNT ( * ) * - + 1 col1
----
4503

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2767
SELECT DISTINCT - + 8 DIV - 4 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT - + 8 / - 4 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT DISTINCT + COUNT( * ) - + - 73 col2
----
74

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT + COUNT ( * ) - + - 73 col2
----
74

query I rowsort
SELECT ALL + 66 * - - 14
----
924

onlyif mysql # aggregate syntax: 
query II rowsort label-2770
SELECT - + ( - + COUNT( * ) ) * + - 43 col0, - CASE + 26 WHEN - 12 THEN + 68 + + + 15 WHEN 81 THEN + + 11 END AS col1
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-2770
SELECT - + ( - + COUNT ( * ) ) * + - 43 col0, - CASE + 26 WHEN - 12 THEN + 68 + + + 15 WHEN 81 THEN + + 11 END AS col1
----
-43
NULL

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

query I rowsort
SELECT - - 91 * - 26 AS col0
----
-2366

query II rowsort
SELECT - + 16, 82 AS col2
----
-16
82

query II rowsort
SELECT 78 AS col0, 39
----
78
39

query I rowsort
SELECT DISTINCT + - NULLIF ( + 8, 98 ) * - 51 * 42 * + 71
----
1216656

query I rowsort
SELECT - 28 * - - 89 AS col1
----
-2492

query I rowsort
SELECT ALL 40 * 25 AS col2
----
1000

onlyif mysql # aggregate syntax: 
query II rowsort label-2778
SELECT ALL 57, - 37 * COUNT( * ) AS col1
----
57
-37

skipif mysql # not compatible
query II rowsort label-2778
SELECT ALL 57, - 37 * COUNT ( * ) AS col1
----
57
-37

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

query I rowsort
SELECT + 65 * 64 - 75
----
4085

onlyif mysql # DIV for integer division: 
query I rowsort label-2781
SELECT + 81 DIV + 58 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2781
SELECT + 81 / + 58 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2782
SELECT ALL ( + 94 ) DIV - + CAST( - 99 AS SIGNED ) * + 32 - - 38 DIV 92 + + + ( + ( + 79 ) )
----
79

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL ( + 94 ) / - + CAST ( - 99 AS INTEGER ) * + 32 - - 38 / 92 + + + ( + ( + 79 ) )
----
79

query I rowsort
SELECT ALL - 4 * + - 87 AS col1
----
348

onlyif mysql # aggregate syntax: 
query II rowsort label-2784
SELECT - 2 * + 3 * + + COUNT( * ) + - 97 AS col2, + 87
----
-103
87

skipif mysql # not compatible
query II rowsort label-2784
SELECT - 2 * + 3 * + + COUNT ( * ) + - 97 AS col2, + 87
----
-103
87

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

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT COUNT ( * ) / - - 13 * + 29 + + 46 AS col1
----
46

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

query I rowsort
SELECT + COALESCE ( + 22, - 88 * - 15 ) + - 94
----
-72

query I rowsort
SELECT + 15 + + 98
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL 45 * + 99 + + + MAX( + 37 )
----
4492

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL 45 * + 99 + + + MAX ( + 37 )
----
4492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2790
SELECT ( - 41 ) AS col2, COALESCE ( + - ( + 1 ), - ( + COUNT( * ) ) + - 8 * 46 * + 85 ) + - CAST( NULL AS SIGNED ) + 91
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-2790
SELECT ( - 41 ) AS col2, COALESCE ( + - ( + 1 ), - ( + COUNT ( * ) ) + - 8 * 46 * + 85 ) + - CAST ( NULL AS INTEGER ) + 91
----
-41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL 39 * + + SUM( - 53 ) + + - 30 + - 50 * - MIN( - 10 ) * - 40 * + 85 + - - ( - 62 ) * COUNT( * ) * - 40
----
1700383

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL 39 * + + SUM ( - 53 ) + + - 30 + - 50 * - MIN ( - 10 ) * - 40 * + 85 + - - ( - 62 ) * COUNT ( * ) * - 40
----
1700383

query I rowsort
SELECT + 63 * + - 81 + + 33 AS col1
----
-5070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2793
SELECT ALL COALESCE ( + ( - + CASE - + 18 WHEN + - 92 + CAST( + + 89 AS SIGNED ) THEN + ( - 34 ) ELSE - SUM( ALL + - 47 ) END ), - 2 * - + 99 * - COUNT( * ) ) * - 46
----
2162

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL COALESCE ( + ( - + CASE - + 18 WHEN + - 92 + CAST ( + + 89 AS INTEGER ) THEN + ( - 34 ) ELSE - SUM ( ALL + - 47 ) END ), - 2 * - + 99 * - COUNT ( * ) ) * - 46
----
2162

query I rowsort
SELECT ALL 90 * + 88
----
7920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2795
SELECT + + COUNT( * ) + - 40 + - - ( - - 61 ) * + + 39 + + 83 / - + CAST( NULL AS SIGNED ) / - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT + + COUNT ( * ) + - 40 + - - ( - - 61 ) * + + 39 + + 83 / - + CAST ( NULL AS INTEGER ) / - 69
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2796
SELECT + 7, + 94 * - COUNT( * ) AS col0
----
7
-94

skipif mysql # not compatible
query II rowsort label-2796
SELECT + 7, + 94 * - COUNT ( * ) AS col0
----
7
-94

query II rowsort
SELECT 13, - 18 AS col0
----
13
-18

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2799
SELECT + 57 AS col0, + MAX( + ( + + 41 ) ) AS col2
----
57
41

skipif mysql # not compatible
query II rowsort label-2799
SELECT + 57 AS col0, + MAX ( + ( + + 41 ) ) AS col2
----
57
41

query I rowsort
SELECT + 19 * 51 * + + 17 AS col2
----
16473

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT + - MAX( ALL - 12 ) * - - COUNT( * ) col2
----
12

skipif mysql # not compatible
query I rowsort label-2802
SELECT + - MAX ( ALL - 12 ) * - - COUNT ( * ) col2
----
12

query I rowsort
SELECT ALL - - ( + + 87 ) * - 32
----
-2784

onlyif mysql # aggregate syntax: 
query II rowsort label-2804
SELECT - ( + + 30 ) + - + COUNT( * ) * + + 23 AS col0, - 52 * + 39
----
-53
-2028

skipif mysql # not compatible
query II rowsort label-2804
SELECT - ( + + 30 ) + - + COUNT ( * ) * + + 23 AS col0, - 52 * + 39
----
-53
-2028

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

query II rowsort
SELECT - - 38 AS col2, + 28 * - 24 AS col0
----
38
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2807
SELECT 74, 62 * - 54 * + COALESCE ( ( + 19 ), + SUM( DISTINCT + - 13 ), 78 * 26 ) / + CASE - 50 WHEN + 22 THEN + CAST( NULL AS SIGNED ) * 71 - + + COUNT( * ) END AS col2
----
74
NULL

skipif mysql # not compatible
query II rowsort label-2807
SELECT 74, 62 * - 54 * + COALESCE ( ( + 19 ), + SUM ( DISTINCT + - 13 ), 78 * 26 ) / + CASE - 50 WHEN + 22 THEN + CAST ( NULL AS INTEGER ) * 71 - + + COUNT ( * ) END AS col2
----
74
NULL

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

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

query I rowsort
SELECT - ( - 65 ) * + ( - 61 )
----
-3965

query I rowsort
SELECT ALL - - 13 * + 73 + 61 * 32
----
2901

query I rowsort
SELECT + ( 38 ) + 47 * 43 + 78 * - - 64 AS col1
----
7051

query I rowsort
SELECT + 44 + + + ( - 76 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2813
SELECT - ( + 55 ) * - 8 * + 12 AS col0, COUNT( * ) + + 64 / - CAST( - CASE - 23 WHEN + 37 + - 41 THEN - 59 + + 90 + - NULLIF ( - + 70, + + 11 * + - ( + 41 ) * - 0 + + 34 - + COUNT( * ) / - - 25 * - + 46 - - 82 ) + + COUNT( * ) WHEN 95 THEN ( + NULLIF ( - + 9, + COALESCE ( + + 50, + COUNT( * ) * + COUNT( * ), 47 ) * + 36 ) ) * COUNT( * ) ELSE NULL END AS SIGNED )
----
5280
NULL

skipif mysql # not compatible
query II rowsort label-2813
SELECT - ( + 55 ) * - 8 * + 12 AS col0, COUNT ( * ) + + 64 / - CAST ( - CASE - 23 WHEN + 37 + - 41 THEN - 59 + + 90 + - NULLIF ( - + 70, + + 11 * + - ( + 41 ) * - 0 + + 34 - + COUNT ( * ) / - - 25 * - + 46 - - 82 ) + + COUNT ( * ) WHEN 95 THEN ( + NULLIF ( - + 9, + COALESCE ( + + 50, + COUNT ( * ) * + COUNT ( * ), 47 ) * + 36 ) ) * COUNT ( * ) ELSE NULL END AS INTEGER )
----
5280
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2814
SELECT ALL COALESCE ( - 72, - 15 * + 84 ) AS col2, COUNT( * ) AS col2
----
-72
1

skipif mysql # not compatible
query II rowsort label-2814
SELECT ALL COALESCE ( - 72, - 15 * + 84 ) AS col2, COUNT ( * ) AS col2
----
-72
1

query I rowsort
SELECT - 5 * + - 10 * 16 AS col1
----
800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2816
SELECT ALL 11 + + - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL 11 + + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2817
SELECT DISTINCT + ( + 97 ) + - - 47 AS col1, CAST( + 3 AS SIGNED ) * 96 + + - ( 75 ) col0
----
144
213

skipif mysql # not compatible
query II rowsort label-2817
SELECT DISTINCT + ( + 97 ) + - - 47 AS col1, CAST ( + 3 AS INTEGER ) * 96 + + - ( 75 ) col0
----
144
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2818
SELECT - AVG ( ALL + 35 ) + - 19 * + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1, 71 AS col1
----
NULL
71

skipif mysql # not compatible
query II rowsort label-2818
SELECT - AVG ( ALL + 35 ) + - 19 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1, 71 AS col1
----
NULL
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT ALL + 72 + + 7 + + 60 + - COUNT( * ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL + 72 + + 7 + + 60 + - COUNT ( * ) AS col0
----
138

query I rowsort
SELECT 69 + 42 * 22 * + + 70 * 21
----
1358349

query I rowsort
SELECT ALL + 45 + 95 col0
----
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2822
SELECT + COALESCE ( 93, - 21, + 82 DIV + 46 * - + CASE 38 WHEN 98 + 98 THEN + ( + 90 ) END * + 45 DIV - COUNT( * ) ) DIV + 8 + 14 * COUNT( ALL 64 ) * - - 55 AS col1, - COUNT( * ) - + COUNT( * ) + + + COALESCE ( - - 50, - - 70 + CASE COUNT( * ) WHEN 19 + + - 75 + + 82 * - COUNT( * ) + + + COUNT( ALL 8 ) + + - 19 THEN - 38 ELSE 8 + 8 END ) AS col1
----
781
48

skipif mysql # not compatible
query II rowsort label-2822
SELECT + COALESCE ( 93, - 21, + 82 / + 46 * - + CASE 38 WHEN 98 + 98 THEN + ( + 90 ) END * + 45 / - COUNT ( * ) ) / + 8 + 14 * COUNT ( ALL 64 ) * - - 55 AS col1, - COUNT ( * ) - + COUNT ( * ) + + + COALESCE ( - - 50, - - 70 + CASE COUNT ( * ) WHEN 19 + + - 75 + + 82 * - COUNT ( * ) + + + COUNT ( ALL 8 ) + + - 19 THEN - 38 ELSE 8 + 8 END ) AS col1
----
781
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL - 82 + - COUNT( 82 ) + - - 87
----
4

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL - 82 + - COUNT ( 82 ) + - - 87
----
4

query II rowsort
SELECT 59 * + 20 AS col0, 15
----
1180
15

query I rowsort
SELECT 95 + - - COALESCE ( 18, 36 )
----
113

query I rowsort
SELECT ALL - 73 * - 16
----
1168

query II rowsort
SELECT DISTINCT 85 * - + 96 AS col0, 48 + + - 40
----
-8160
8

query II rowsort
SELECT ALL - 82 * - + 25 * - + 64 col2, + ( - 56 )
----
-131200
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-2829
SELECT DISTINCT + 28 + + + 12 col2, COUNT( * )
----
40
1

skipif mysql # not compatible
query II rowsort label-2829
SELECT DISTINCT + 28 + + + 12 col2, COUNT ( * )
----
40
1

query I rowsort
SELECT DISTINCT - COALESCE ( 91, + 5 + + + 12 + - 97 )
----
-91

query I rowsort
SELECT 61 - - + 7 * + 90 col0
----
691

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2832
SELECT SUM( DISTINCT 79 ) DIV + 90 AS col0, 30 * - - 1 * 91 + COUNT( * ) AS col0
----
0
2731

skipif mysql # not compatible
query II rowsort label-2832
SELECT SUM ( DISTINCT 79 ) / + 90 AS col0, 30 * - - 1 * 91 + COUNT ( * ) AS col0
----
0
2731

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2833
SELECT ALL + SUM( DISTINCT - + NULLIF ( 57, 4 ) ) DIV + 12
----
-4

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL + SUM ( DISTINCT - + NULLIF ( 57, 4 ) ) / + 12
----
-4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2835
SELECT ALL - 90 - - - 5 + - 34 DIV - 61 col0
----
-95

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL - 90 - - - 5 + - 34 / - 61 col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2836
SELECT DISTINCT MAX( + - COALESCE ( - 92, 75 DIV 86 ) ) * CASE - 58 WHEN COALESCE ( + 24, 57 + ( 14 ) ) THEN + + 5 * - 41 DIV 62 + + 9 DIV + 30 ELSE - COALESCE ( + CAST( NULL AS SIGNED ), + + ( - + 94 ), - + 53 ) END * COUNT( * )
----
8648

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT MAX ( + - COALESCE ( - 92, 75 / 86 ) ) * CASE - 58 WHEN COALESCE ( + 24, 57 + ( 14 ) ) THEN + + 5 * - 41 / 62 + + 9 / + 30 ELSE - COALESCE ( + CAST ( NULL AS INTEGER ), + + ( - + 94 ), - + 53 ) END * COUNT ( * )
----
8648

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT ALL + - 99 DIV - 62 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + - 99 / - 62 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2838
SELECT DISTINCT - - COALESCE ( + COUNT( * ), + CAST( NULL AS SIGNED ), - 92 * - + 36 - CAST( NULL AS SIGNED ) + - 71 * + 5 )
----
1

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT - - COALESCE ( + COUNT ( * ), + CAST ( NULL AS INTEGER ), - 92 * - + 36 - CAST ( NULL AS INTEGER ) + - 71 * + 5 )
----
1

query I rowsort
SELECT ALL 79 * + 2 * - ( - 95 )
----
15010

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT + MAX( ALL + ( - - 11 ) ) - 83 * - 66
----
5489

skipif mysql # not compatible
query I rowsort label-2840
SELECT + MAX ( ALL + ( - - 11 ) ) - 83 * - 66
----
5489

onlyif mysql # DIV for integer division: 
query II rowsort label-2841
SELECT 9 DIV + 9 + - 83 col1, + 74 AS col1
----
-82
74

skipif mysql # not compatible
query II rowsort label-2841
SELECT 9 / + 9 + - 83 col1, + 74 AS col1
----
-82
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT ALL 50 * - COALESCE ( 58, - + COUNT( - 65 ), + - 61 ) AS col2
----
-2900

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL 50 * - COALESCE ( 58, - + COUNT ( - 65 ), + - 61 ) AS col2
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT - COUNT( * ) + - + COALESCE ( + 0, - + 74 * + 62 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2843
SELECT - COUNT ( * ) + - + COALESCE ( + 0, - + 74 * + 62 ) AS col1
----
-1

query I rowsort
SELECT + 28 * + 17 AS col2
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT - NULLIF ( - - COALESCE ( COUNT( * ), - 3 ), - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2845
SELECT - NULLIF ( - - COALESCE ( COUNT ( * ), - 3 ), - COUNT ( * ) ) AS col0
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2847
SELECT ALL - ( - 52 ) + 25 * + ( COUNT( * ) ) + CAST( + 64 AS SIGNED ) AS col2
----
141

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL - ( - 52 ) + 25 * + ( COUNT ( * ) ) + CAST ( + 64 AS INTEGER ) AS col2
----
141

onlyif mysql # DIV for integer division: 
query II rowsort label-2848
SELECT 91 AS col2, - 18 DIV + + 37 AS col1
----
91
0

skipif mysql # not compatible
query II rowsort label-2848
SELECT 91 AS col2, - 18 / + + 37 AS col1
----
91
0

query I rowsort
SELECT ALL - 13 + + 70 AS col0
----
57

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2851
SELECT - 11 AS col1, CAST( NULL AS DECIMAL ) AS col1
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-2851
SELECT - 11 AS col1, CAST ( NULL AS REAL ) AS col1
----
-11
NULL

query II rowsort
SELECT 18, - 91 AS col1
----
18
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-2853
SELECT ( + - COUNT( * ) ) + 37 col2, 27 AS col0
----
36
27

skipif mysql # not compatible
query II rowsort label-2853
SELECT ( + - COUNT ( * ) ) + 37 col2, 27 AS col0
----
36
27

query I rowsort
SELECT 95 * 29
----
2755

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2855
SELECT ALL + 41 + + + COUNT( 23 ) DIV 92 * + - 48 - + 80 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL + 41 + + + COUNT ( 23 ) / 92 * + - 48 - + 80 AS col0
----
-39

query I rowsort
SELECT ALL 21 + 61
----
82

query II rowsort
SELECT - 77 col2, 58 col0
----
-77
58

query I rowsort
SELECT ALL + 14 - - NULLIF ( + 62, - + 54 ) AS col1
----
76

query I rowsort
SELECT 85 - 74
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT ALL - COUNT( 42 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL - COUNT ( 42 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2861
SELECT CAST( + ( 66 ) AS SIGNED ) * 51 DIV - - ( 10 ) col2
----
336

skipif mysql # not compatible
query I rowsort label-2861
SELECT CAST ( + ( 66 ) AS INTEGER ) * 51 / - - ( 10 ) col2
----
336

query I rowsort
SELECT + ( + 72 ) * - 31 + + 73 + - 43 AS col0
----
-2202

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT COUNT( * ) * - 82 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-2863
SELECT COUNT ( * ) * - 82 AS col1
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2864
SELECT COUNT( * ) DIV + + 16 + 97 + + 15 - + 21
----
91

skipif mysql # not compatible
query I rowsort label-2864
SELECT COUNT ( * ) / + + 16 + 97 + + 15 - + 21
----
91

query I rowsort
SELECT 20 * + - 87 AS col2
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT + 88 + + COUNT( * )
----
89

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2867
SELECT 0 * - 15 * + + CAST( NULL AS SIGNED ) / - CAST( NULL AS DECIMAL ) - - 45 + + 5 / 30 * 56 - 80 * + - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT 0 * - 15 * + + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS REAL ) - - 45 + + 5 / 30 * 56 - 80 * + - 30 AS col2
----
NULL

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

query I rowsort
SELECT - 55 * ( + NULLIF ( - 28, 87 + - 66 ) ) + - ( + 30 ) AS col1
----
1510

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT - 10 * - NULLIF ( COUNT( * ), + - 5 + - 3 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2870
SELECT - 10 * - NULLIF ( COUNT ( * ), + - 5 + - 3 ) AS col2
----
10

query I rowsort
SELECT DISTINCT + 92 * - 17
----
-1564

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2873
SELECT ALL + 9 + - CAST( NULL AS SIGNED ) * 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL + 9 + - CAST ( NULL AS INTEGER ) * 36 AS col1
----
NULL

query I rowsort
SELECT ALL + 48 + - 20 * - ( + + 55 ) AS col1
----
1148

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT + - 46 + 42 - - 98 + + ( + - NULLIF ( - + 97, + 52 ) ) * - COUNT( * ) * - + 77 * - 34
----
-253852

skipif mysql # not compatible
query I rowsort label-2875
SELECT + - 46 + 42 - - 98 + + ( + - NULLIF ( - + 97, + 52 ) ) * - COUNT ( * ) * - + 77 * - 34
----
-253852

query I rowsort
SELECT ALL 81 + NULLIF ( - - 3, + 11 ) AS col0
----
84

query I rowsort
SELECT + 22 - 57 * - ( 54 )
----
3100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2878
SELECT + 39 + 40 DIV - 58 + + 35 * - ( + 46 ) * + + COALESCE ( - ( + 87 ), - 35 ) - + + 38 - - + COUNT( * ) + - ( 64 ) AS col2, 18 col2
----
140008
18

skipif mysql # not compatible
query II rowsort label-2878
SELECT + 39 + 40 / - 58 + + 35 * - ( + 46 ) * + + COALESCE ( - ( + 87 ), - 35 ) - + + 38 - - + COUNT ( * ) + - ( 64 ) AS col2, 18 col2
----
140008
18

query I rowsort
SELECT + 45 + + 54
----
99

query I rowsort
SELECT - CASE - 80 WHEN - CASE - - 62 WHEN 31 * + 25 THEN + ( - 89 ) WHEN - 96 + - 67 THEN NULL END * - + 23 - - - 47 + + 7 THEN + - 48 END
----
NULL

query I rowsort
SELECT DISTINCT 80 - + - 67 col1
----
147

query II rowsort
SELECT + 9 + + + ( + 46 ) + - 84 col1, 88
----
-29
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT DISTINCT + ( + ( + - ( 95 ) ) ) * + + COUNT( * ) + - + 41 AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT + ( + ( + - ( 95 ) ) ) * + + COUNT ( * ) + - + 41 AS col0
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2884
SELECT + ( - 45 ) * + + COUNT( * ) + - - CAST( + ( - COUNT( * ) ) AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-2884
SELECT + ( - 45 ) * + + COUNT ( * ) + - - CAST ( + ( - COUNT ( * ) ) AS INTEGER )
----
-46

query I rowsort
SELECT - 38 * + 63 AS col2
----
-2394

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT - 55 + - COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2886
SELECT - 55 + - COUNT ( * ) AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2887
SELECT DISTINCT CASE + + 67 WHEN 3 THEN NULL ELSE 85 DIV + 84 - - 29 * COALESCE ( + 50, - - ( 89 ) + + CAST( 25 AS SIGNED ) ) + + - 26 END * - 26 AS col0
----
-37050

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT CASE + + 67 WHEN 3 THEN NULL ELSE 85 / + 84 - - 29 * COALESCE ( + 50, - - ( 89 ) + + CAST ( 25 AS INTEGER ) ) + + - 26 END * - 26 AS col0
----
-37050

query I rowsort
SELECT - 32 + + 72 AS col1
----
40

query II rowsort
SELECT + 2 * - 24 * - + 74 * 67 AS col0, - 57 AS col0
----
237984
-57

query I rowsort
SELECT ALL 55 * - 21
----
-1155

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT + 94 DIV - 58 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2891
SELECT + 94 / - 58 AS col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT - + 77 + 57 * + SUM( + - 31 ) AS col1
----
-1844

skipif mysql # not compatible
query I rowsort label-2893
SELECT - + 77 + 57 * + SUM ( + - 31 ) AS col1
----
-1844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2894
SELECT - + 44 / + 63 - - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2894
SELECT - + 44 / + 63 - - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2895
SELECT - + CAST( NULL AS SIGNED ) - + SUM( DISTINCT + 41 ) * - 13
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2896
SELECT DISTINCT MAX( DISTINCT + 17 ) * + NULLIF ( + 50, SUM( ALL - + 31 ) + - 18 ) * - - COUNT( * ) - + 66 * + 80 + - 74 + 43 + + 44 * + - 71 AS col2, - 18
----
-7585
-18

skipif mysql # not compatible
query II rowsort label-2896
SELECT DISTINCT MAX ( DISTINCT + 17 ) * + NULLIF ( + 50, SUM ( ALL - + 31 ) + - 18 ) * - - COUNT ( * ) - + 66 * + 80 + - 74 + 43 + + 44 * + - 71 AS col2, - 18
----
-7585
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2897
SELECT ALL COUNT( * ) * - ( + 94 ) + - 53 AS col2, + COALESCE ( + COUNT( * ), + + 14 * - 98 + - 61 + - - 36 * - ( - - 56 ), - + 25 * 19 * + 95, NULLIF ( - 27, - - CAST( COUNT( * ) AS DECIMAL ) + - 3 ) )
----
-147
1

skipif mysql # not compatible
query II rowsort label-2897
SELECT ALL COUNT ( * ) * - ( + 94 ) + - 53 AS col2, + COALESCE ( + COUNT ( * ), + + 14 * - 98 + - 61 + - - 36 * - ( - - 56 ), - + 25 * 19 * + 95, NULLIF ( - 27, - - CAST ( COUNT ( * ) AS REAL ) + - 3 ) )
----
-147
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2898
SELECT ALL ( - 77 ) * - + 0 + CAST( - - 90 AS SIGNED ) * ( COUNT( * ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL ( - 77 ) * - + 0 + CAST ( - - 90 AS INTEGER ) * ( COUNT ( * ) ) AS col2
----
90

query I rowsort
SELECT ALL + - 27 * 24 * + 12
----
-7776

query I rowsort
SELECT - 51 - - 6 col1
----
-45

query I rowsort
SELECT + CASE + - 84 WHEN + 31 THEN NULL ELSE + - ( - + 61 ) END
----
61

query I rowsort
SELECT ALL - 14 * - ( + 29 ) + - - 33 * CASE - 2 WHEN + - 89 THEN NULL WHEN - 36 / + - 21 - 63 * 48 - - 80 + - ( 64 ) + + 99 * - 5 * - + 20 - 19 THEN - 61 * 63 * + 92 ELSE 20 + + ( - 16 ) END
----
538

query II rowsort
SELECT - + 31 * 28, 72 AS col2
----
-868
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT - SUM( DISTINCT 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-2904
SELECT - SUM ( DISTINCT 46 )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2905
SELECT - 64 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-2905
SELECT - 64 / 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2906
SELECT - 22 + 21 * - + COUNT( * ) AS col0, + 34
----
-43
34

skipif mysql # not compatible
query II rowsort label-2906
SELECT - 22 + 21 * - + COUNT ( * ) AS col0, + 34
----
-43
34

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + 36 * + + SUM( ALL + CASE - 84 WHEN NULLIF ( + 60, + - 10 + COALESCE ( + 66, - 22 + + 36 * + - 97 ) ) THEN NULL WHEN - 50 THEN - 64 END ) + - 88 + + + 29 + + 53 + + + COUNT( * ) + + 8 + - 50 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2909
SELECT + 36 * + + SUM ( ALL + CASE - 84 WHEN NULLIF ( + 60, + - 10 + COALESCE ( + 66, - 22 + + 36 * + - 97 ) ) THEN NULL WHEN - 50 THEN - 64 END ) + - 88 + + + 29 + + 53 + + + COUNT ( * ) + + 8 + - 50 col0
----
NULL

query I rowsort
SELECT + 4 - - COALESCE ( - + 22, - - 15, + 78 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT ALL 28 - + 63 + - COUNT( - 83 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL 28 - + 63 + - COUNT ( - 83 ) AS col0
----
-36

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

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

query I rowsort
SELECT ALL 63 - 53
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT ALL - 23 DIV - + 15 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - 23 / - + 15 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT DISTINCT CAST( 66 AS SIGNED ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT CAST ( 66 AS INTEGER ) AS col2
----
66

query II rowsort
SELECT - 75 AS col2, 68 * - + 35 * - - ( + ( 17 ) ) AS col2
----
-75
-40460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2917
SELECT - 32 DIV + - NULLIF ( MAX( + 51 ), + 74 DIV - - 99 * 82 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2917
SELECT - 32 / + - NULLIF ( MAX ( + 51 ), + 74 / - - 99 * 82 ) AS col0
----
0

query I rowsort
SELECT - 50 + + 22 col1
----
-28

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2921
SELECT - CAST( - 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-2921
SELECT - CAST ( - 17 AS INTEGER )
----
17

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

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

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

skipif mysql # not compatible
query I rowsort label-2923
SELECT + 79 * - - COUNT ( + 57 ) AS col1
----
79

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT DISTINCT + 86 * - 92 + 92 DIV - 56 col1
----
-7913

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT + 86 * - 92 + 92 / - 56 col1
----
-7913

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT DISTINCT - + 67 DIV + + 66 + + - 81 col0
----
-82

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT - + 67 / + + 66 + + - 81 col0
----
-82

query I rowsort
SELECT - 88 * 25 + 66 AS col0
----
-2134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2928
SELECT ALL - 75 DIV COUNT( * ) * - 81 + + SUM( - 35 ) DIV + COUNT( * ) AS col2
----
6040

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL - 75 / COUNT ( * ) * - 81 + + SUM ( - 35 ) / + COUNT ( * ) AS col2
----
6040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2929
SELECT + 86 + 37 + CAST( NULL AS SIGNED ) / - + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2929
SELECT + 86 + 37 + CAST ( NULL AS INTEGER ) / - + 65 AS col2
----
NULL

query I rowsort
SELECT - + 10 * - 0 * - - 94 + - 11 + - - 46
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT ALL 92 DIV + + 84 - - 46 + 26
----
73

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL 92 / + + 84 - - 46 + 26
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-2932
SELECT ALL + ( - - SUM( + 28 ) ) AS col1, - 57 + 53
----
28
-4

skipif mysql # not compatible
query II rowsort label-2932
SELECT ALL + ( - - SUM ( + 28 ) ) AS col1, - 57 + 53
----
28
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2933
SELECT ALL - NULLIF ( + MIN( 36 ), + 77 ) + + - 7 + - - 50 + - ( - CAST( + 73 AS SIGNED ) ) - 88 * 56 * COUNT( - 71 ) AS col1, - 7 * COUNT( * )
----
-4848
-7

skipif mysql # not compatible
query II rowsort label-2933
SELECT ALL - NULLIF ( + MIN ( 36 ), + 77 ) + + - 7 + - - 50 + - ( - CAST ( + 73 AS INTEGER ) ) - 88 * 56 * COUNT ( - 71 ) AS col1, - 7 * COUNT ( * )
----
-4848
-7

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

skipif mysql # not compatible
query I rowsort label-2934
SELECT 21 * - 92 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2935
SELECT ALL - 10 DIV - 24 * - 16 + + + 32 + + + COUNT( - ( + + 91 ) ) * + + 97 * + 17 - 12, - 38 AS col0
----
1669
-38

skipif mysql # not compatible
query II rowsort label-2935
SELECT ALL - 10 / - 24 * - 16 + + + 32 + + + COUNT ( - ( + + 91 ) ) * + + 97 * + 17 - 12, - 38 AS col0
----
1669
-38

query I rowsort
SELECT DISTINCT 1 + 29 * - + 36
----
-1043

query I rowsort
SELECT + 49 + 14 + - + 89 AS col0
----
-26

query I rowsort
SELECT ALL - 66 - - 71
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT - 88 * - + 28 * 41 * NULLIF ( - COUNT( * ), 67 + + 91 * 2 ) AS col2
----
-101024

skipif mysql # not compatible
query I rowsort label-2939
SELECT - 88 * - + 28 * 41 * NULLIF ( - COUNT ( * ), 67 + + 91 * 2 ) AS col2
----
-101024

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT - MIN( ALL 58 ) * 43
----
-2494

skipif mysql # not compatible
query I rowsort label-2940
SELECT - MIN ( ALL 58 ) * 43
----
-2494

onlyif mysql # DIV for integer division: 
query II rowsort label-2941
SELECT ALL - ( 59 ), - 45 DIV - - 43 AS col1
----
-59
-1

skipif mysql # not compatible
query II rowsort label-2941
SELECT ALL - ( 59 ), - 45 / - - 43 AS col1
----
-59
-1

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

skipif mysql # not compatible
query I rowsort label-2942
SELECT + 32 * - COUNT ( * ) + - 59 AS col0
----
-91

query II rowsort
SELECT 7 AS col1, 42 AS col0
----
7
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL - COUNT( * ) - 64 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL - COUNT ( * ) - 64 AS col0
----
-65

query II rowsort
SELECT ALL 9, - 65 AS col2
----
9
-65

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2947
SELECT DISTINCT - 9 * - 22 DIV + + ( COUNT( * ) ) AS col2, 72 AS col1
----
198
72

skipif mysql # not compatible
query II rowsort label-2947
SELECT DISTINCT - 9 * - 22 / + + ( COUNT ( * ) ) AS col2, 72 AS col1
----
198
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT DISTINCT - 37 * - + COUNT( * ) * - 41 * - + 91
----
138047

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT - 37 * - + COUNT ( * ) * - 41 * - + 91
----
138047

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2950
SELECT 4 + COUNT( * ) + + COUNT( * ) DIV + 95 * + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2950
SELECT 4 + COUNT ( * ) + + COUNT ( * ) / + 95 * + COUNT ( * ) AS col1
----
5

query I rowsort
SELECT 75 + - + 46 + + CASE + 81 WHEN - 27 THEN - 43 END * + + 79 * - + 91
----
NULL

query I rowsort
SELECT 84 + 55 AS col1
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2953
SELECT COUNT( * ) - + 6 * - + CAST( + AVG ( DISTINCT + ( - - 39 ) ) AS SIGNED ) AS col1
----
235

skipif mysql # not compatible
query I rowsort label-2953
SELECT COUNT ( * ) - + 6 * - + CAST ( + AVG ( DISTINCT + ( - - 39 ) ) AS INTEGER ) AS col1
----
235

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT 23 DIV 24 * 83
----
0

skipif mysql # not compatible
query I rowsort label-2954
SELECT 23 / 24 * 83
----
0

query I rowsort
SELECT 29 + + 9 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT COUNT( * ) + + + 26 + - + 98
----
-71

skipif mysql # not compatible
query I rowsort label-2956
SELECT COUNT ( * ) + + + 26 + - + 98
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL - SUM( ALL + 82 ) + 32
----
-50

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL - SUM ( ALL + 82 ) + 32
----
-50

query I rowsort
SELECT 19 + - 40 AS col0
----
-21

query I rowsort
SELECT ALL + + 28 + 75 AS col1
----
103

query I rowsort
SELECT - 4 + - 72 * + + 63
----
-4540

query I rowsort
SELECT 84 * ( 72 ) AS col2
----
6048

query I rowsort
SELECT 74 + 4 AS col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-2963
SELECT + 22 AS col2, SUM( 14 ) + - + MAX( - - 36 )
----
22
-22

skipif mysql # not compatible
query II rowsort label-2963
SELECT + 22 AS col2, SUM ( 14 ) + - + MAX ( - - 36 )
----
22
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2964
SELECT + COALESCE ( - SUM( + ( - CAST( NULL AS SIGNED ) ) ), + - 67 + 99 ) AS col2, 66 DIV - 35
----
32
-1

skipif mysql # not compatible
query II rowsort label-2964
SELECT + COALESCE ( - SUM ( + ( - CAST ( NULL AS INTEGER ) ) ), + - 67 + 99 ) AS col2, 66 / - 35
----
32
-1

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

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

query II rowsort
SELECT + 28 AS col1, 74
----
28
74

query II rowsort
SELECT ALL - - 45, 49 col0
----
45
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL SUM( ALL + 72 ) - 2 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL SUM ( ALL + 72 ) - 2 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT 32 * + 22 * - NULLIF ( - 26, + + COUNT( * ) ) AS col2
----
18304

skipif mysql # not compatible
query I rowsort label-2970
SELECT 32 * + 22 * - NULLIF ( - 26, + + COUNT ( * ) ) AS col2
----
18304

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT + SUM( + 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2971
SELECT + SUM ( + 15 ) AS col0
----
15

query I rowsort
SELECT - 72 - - 51 * + + 59
----
2937

query II rowsort
SELECT + - 22, - 19 AS col1
----
-22
-19

query I rowsort
SELECT - 86 - + 38 + + 95 col2
----
-29

query I rowsort
SELECT - ( - - COALESCE ( 73, - 84, 88 ) ) AS col1
----
-73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2977
SELECT ALL - 34 - + 6 * CAST( + + 55 AS SIGNED )
----
-364

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL - 34 - + 6 * CAST ( + + 55 AS INTEGER )
----
-364

query I rowsort
SELECT DISTINCT 74 * - - ( 78 ) * 77 + - 68 AS col2
----
444376

onlyif mysql # DIV for integer division: 
query I rowsort label-2979
SELECT DISTINCT + 69 DIV + - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT + 69 / + - 72 AS col1
----
0

query I rowsort
SELECT ( 79 ) + - - 76 AS col0
----
155

query I rowsort
SELECT DISTINCT - 79 * - 5
----
395

onlyif mysql # aggregate syntax: 
query II rowsort label-2982
SELECT DISTINCT 44 + - 37 AS col2, COUNT( * ) AS col0
----
7
1

skipif mysql # not compatible
query II rowsort label-2982
SELECT DISTINCT 44 + - 37 AS col2, COUNT ( * ) AS col0
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL - ( - 97 ) + - - 15 + + + 63 * - 8 * COUNT( * )
----
-392

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL - ( - 97 ) + - - 15 + + + 63 * - 8 * COUNT ( * )
----
-392

onlyif mysql # DIV for integer division: 
query I rowsort label-2984
SELECT + 27 + + - ( + 86 ) - - 81 DIV 82 + - 48
----
-107

skipif mysql # not compatible
query I rowsort label-2984
SELECT + 27 + + - ( + 86 ) - - 81 / 82 + - 48
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT MIN( 45 ) + - 24 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-2985
SELECT MIN ( 45 ) + - 24 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + 10 * 37 * - 96 + COUNT( * )
----
-35519

skipif mysql # not compatible
query I rowsort label-2986
SELECT + 10 * 37 * - 96 + COUNT ( * )
----
-35519

query I rowsort
SELECT + 54 + - 89 + + 93 AS col2
----
58

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

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

query I rowsort
SELECT - 77 * - + 94
----
7238

query I rowsort
SELECT DISTINCT + 43 * - + 17 + NULLIF ( - 65, - 7 ) - + 36
----
-832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2991
SELECT DISTINCT + COALESCE ( - 97, + - ( + 13 ) DIV - 60 * - 46 + - 31 - + + CAST( NULL AS SIGNED ) * + + COUNT( * ) * + 62 ) - MAX( ALL + CASE + 20 WHEN - - 51 * + - 93 THEN NULL WHEN - + 15 * + 87 THEN NULL ELSE 99 END )
----
-196

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT + COALESCE ( - 97, + - ( + 13 ) / - 60 * - 46 + - 31 - + + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * + 62 ) - MAX ( ALL + CASE + 20 WHEN - - 51 * + - 93 THEN NULL WHEN - + 15 * + 87 THEN NULL ELSE 99 END )
----
-196

query II rowsort
SELECT - 4 + 55, + 8 AS col2
----
51
8

query I rowsort
SELECT ALL + + 98 * - + 68 - - 82 AS col0
----
-6582

query I rowsort
SELECT - - 93 * + 13 col1
----
1209

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT 30 * 84 + SUM( DISTINCT - 17 ) + - - COUNT( ALL + 80 ) * - + COALESCE ( - 21, + 86 + - 90 * - 33 ) col1
----
2524

skipif mysql # not compatible
query I rowsort label-2995
SELECT 30 * 84 + SUM ( DISTINCT - 17 ) + - - COUNT ( ALL + 80 ) * - + COALESCE ( - 21, + 86 + - 90 * - 33 ) col1
----
2524

query I rowsort
SELECT - 25 * + - ( - + 51 ) + 94 + - 13 AS col0
----
-1194

onlyif mysql # DIV for integer division: 
query II rowsort label-2997
SELECT + ( - 49 ) AS col2, + 31 DIV 77 * 44 AS col1
----
-49
0

skipif mysql # not compatible
query II rowsort label-2997
SELECT + ( - 49 ) AS col2, + 31 / 77 * 44 AS col1
----
-49
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL - - 8 * + - 7 - - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL - - 8 * + - 7 - - COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL + + 45 * - COUNT( + + 16 ) * - + 41
----
1845

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL + + 45 * - COUNT ( + + 16 ) * - + 41
----
1845

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT + 29 * + 31 - - 2 * - SUM( ALL - ( - - 77 ) )
----
1053

skipif mysql # not compatible
query I rowsort label-3000
SELECT + 29 * + 31 - - 2 * - SUM ( ALL - ( - - 77 ) )
----
1053

query II rowsort
SELECT - 79 * + 58 AS col2, - 25 AS col1
----
-4582
-25

query I rowsort
SELECT ALL - 47 * 58 AS col2
----
-2726

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

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

query I rowsort
SELECT + 46 + + 75 col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT + NULLIF ( - ( + 75 ), COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-3005
SELECT + NULLIF ( - ( + 75 ), COUNT ( * ) )
----
-75

query I rowsort
SELECT + 22 + + + 68
----
90

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3009
SELECT + COUNT( * ) AS col2, - 28 * - ( 48 ) + 88
----
1
1432

skipif mysql # not compatible
query II rowsort label-3009
SELECT + COUNT ( * ) AS col2, - 28 * - ( 48 ) + 88
----
1
1432

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

skipif mysql # not compatible
query I rowsort label-3010
SELECT + 3 / + 20
----
0

query I rowsort
SELECT ALL 91 + + + 45 * ( + 88 ) AS col2
----
4051

query I rowsort
SELECT + 97 + + 90 AS col1
----
187

query II rowsort
SELECT DISTINCT 3 + ( - 17 ) col0, 40 AS col1
----
-14
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3014
SELECT 29 * - + MAX( + 38 ) + + 35 DIV COUNT( * ) - 10 * - 12
----
-947

skipif mysql # not compatible
query I rowsort label-3014
SELECT 29 * - + MAX ( + 38 ) + + 35 / COUNT ( * ) - 10 * - 12
----
-947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3015
SELECT ALL CAST( NULL AS SIGNED ) / - - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL CAST ( NULL AS INTEGER ) / - - 64
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3016
SELECT + 37 DIV + + NULLIF ( 70, 32 )
----
0

skipif mysql # not compatible
query I rowsort label-3016
SELECT + 37 / + + NULLIF ( 70, 32 )
----
0

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

query I rowsort
SELECT ALL + + 85 * + 79
----
6715

query I rowsort
SELECT - + 8 + - - 33 * + ( + 91 ) * 30 + 59 AS col0
----
90141

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT ALL - COUNT( * ) - ( - ( 11 ) )
----
10

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL - COUNT ( * ) - ( - ( 11 ) )
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3021
SELECT - - CAST( NULL AS DECIMAL ) + + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT - - CAST ( NULL AS REAL ) + + 12 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 57 AS col1, - 39
----
57
-39

query I rowsort
SELECT + - 48 * - 85 AS col1
----
4080

query I rowsort
SELECT - 11 * + 84 + + ( - ( - - 99 ) ) AS col0
----
-1023

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3025
SELECT ALL CASE + + 15 WHEN + + ( + 22 ) + - ( - 69 ) THEN CAST( NULL AS SIGNED ) * - CAST( - 32 AS SIGNED ) * + 42 + - 70 * 57 WHEN 86 / - 43 + + 59 - - - 11 / + + 46 - 91 + - 59 + + 62 * + 11 THEN NULL END AS col2, + 30 + + 50 + 63 * + 57 * + 19 AS col2
----
NULL
68309

skipif mysql # not compatible
query II rowsort label-3025
SELECT ALL CASE + + 15 WHEN + + ( + 22 ) + - ( - 69 ) THEN CAST ( NULL AS INTEGER ) * - CAST ( - 32 AS INTEGER ) * + 42 + - 70 * 57 WHEN 86 / - 43 + + 59 - - - 11 / + + 46 - 91 + - 59 + + 62 * + 11 THEN NULL END AS col2, + 30 + + 50 + 63 * + 57 * + 19 AS col2
----
NULL
68309

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

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

query I rowsort
SELECT - 24 + + ( + 70 ) * - + 62
----
-4364

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3028
SELECT ALL - CAST( NULL AS DECIMAL ) / 95 - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL - CAST ( NULL AS REAL ) / 95 - - 91
----
NULL

query II rowsort
SELECT - 77 * + 19 + - - 28, 31 * - 14 AS col2
----
-1435
-434

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

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

query II rowsort
SELECT DISTINCT + 72, + NULLIF ( - 44, - 31 ) AS col2
----
72
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL + COUNT( * ) * 99 - - 51 * 83 AS col0
----
4332

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL + COUNT ( * ) * 99 - - 51 * 83 AS col0
----
4332

onlyif mysql # DIV for integer division: 
query I rowsort label-3033
SELECT ALL + + 1 DIV + + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL + + 1 / + + 84 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3034
SELECT - COUNT( * ) + - + CAST( + - 66 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-3034
SELECT - COUNT ( * ) + - + CAST ( + - 66 AS INTEGER )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3035
SELECT DISTINCT - 78 * 30 DIV 90 DIV + + 53
----
0

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT - 78 * 30 / 90 / + + 53
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3036
SELECT DISTINCT 7 DIV 50 + 53 - + 24 * + COUNT( * ) * + + 41 * + + 92 + - + 12 AS col0
----
-90487

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT 7 / 50 + 53 - + 24 * + COUNT ( * ) * + + 41 * + + 92 + - + 12 AS col0
----
-90487

query I rowsort
SELECT - 34 - - - 37 + + - 20
----
-91

query I rowsort
SELECT ALL - 10 * - 67 + - 25 AS col0
----
645

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

query I rowsort
SELECT - ( + + 75 ) * + 5 AS col2
----
-375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3041
SELECT DISTINCT 44 * - + ( AVG ( ALL - - 2 ) ) / 95 + 52 * CAST( NULL AS SIGNED ) + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT 44 * - + ( AVG ( ALL - - 2 ) ) / 95 + 52 * CAST ( NULL AS INTEGER ) + 28 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3042
SELECT ALL 50 * - NULLIF ( + + 24, + 42 - - 3 + 30 * + 69 * + - 28 * 6 * - 42 ) + - 8 + - 95 + 2 + COUNT( * ), + CAST( COALESCE ( - + CASE - 30 WHEN - COUNT( * ) THEN - + 22 WHEN 95 THEN + 87 ELSE NULL END, 32 + - 57, + 20 ) AS SIGNED ) - 40 + - 13 * 70 + + COUNT( * ) + - COUNT( * ) AS col1
----
-1300
-975

skipif mysql # not compatible
query II rowsort label-3042
SELECT ALL 50 * - NULLIF ( + + 24, + 42 - - 3 + 30 * + 69 * + - 28 * 6 * - 42 ) + - 8 + - 95 + 2 + COUNT ( * ), + CAST ( COALESCE ( - + CASE - 30 WHEN - COUNT ( * ) THEN - + 22 WHEN 95 THEN + 87 ELSE NULL END, 32 + - 57, + 20 ) AS INTEGER ) - 40 + - 13 * 70 + + COUNT ( * ) + - COUNT ( * ) AS col1
----
-1300
-975

query II rowsort
SELECT ( 2 ), + ( + 57 ) AS col0
----
2
57

onlyif mysql # aggregate syntax: 
query II rowsort label-3044
SELECT ALL + 94 * + MAX( + 41 ) + - 71 AS col2, 36 * + - 96 * MAX( ALL - 92 )
----
3783
317952

skipif mysql # not compatible
query II rowsort label-3044
SELECT ALL + 94 * + MAX ( + 41 ) + - 71 AS col2, 36 * + - 96 * MAX ( ALL - 92 )
----
3783
317952

query I rowsort
SELECT + 56 - 34 * 74 AS col2
----
-2460

query I rowsort
SELECT - 56 * + 96 - + 96
----
-5472

query I rowsort
SELECT ALL + 0 * + 53 + 16 AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3048
SELECT - 61 * COUNT( * ) DIV - SUM( DISTINCT + 27 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3048
SELECT - 61 * COUNT ( * ) / - SUM ( DISTINCT + 27 ) AS col2
----
2

query I rowsort
SELECT NULLIF ( 50, - + 51 )
----
50

query I rowsort
SELECT - 96 + + 2 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-3051
SELECT COUNT( - 48 ) AS col1, 47 col1
----
1
47

skipif mysql # not compatible
query II rowsort label-3051
SELECT COUNT ( - 48 ) AS col1, 47 col1
----
1
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3052
SELECT DISTINCT + 76 * - + COUNT( * ), 61 AS col1
----
-76
61

skipif mysql # not compatible
query II rowsort label-3052
SELECT DISTINCT + 76 * - + COUNT ( * ), 61 AS col1
----
-76
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3053
SELECT DISTINCT CAST( NULL AS DECIMAL ) - - MAX( ALL + 4 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT CAST ( NULL AS REAL ) - - MAX ( ALL + 4 ) AS col2
----
NULL

query I rowsort
SELECT 38 + + 96 AS col0
----
134

query I rowsort
SELECT + 16 * + 79 + 40 AS col0
----
1304

onlyif mysql # aggregate syntax: 
query II rowsort label-3056
SELECT - ( + 31 ) + 3 * + 36 AS col2, COUNT( * ) AS col0
----
77
1

skipif mysql # not compatible
query II rowsort label-3056
SELECT - ( + 31 ) + 3 * + 36 AS col2, COUNT ( * ) AS col0
----
77
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT 28 DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-3057
SELECT 28 / + 34
----
0

query I rowsort
SELECT - 39 + - + 71
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3059
SELECT 89 / CAST( NULL AS SIGNED ) + - 9 * - 79 * + COALESCE ( + AVG ( ALL 63 ), - COUNT( * ) * 74, + COUNT( * ) ) + + 20 + - 4 * 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT 89 / CAST ( NULL AS INTEGER ) + - 9 * - 79 * + COALESCE ( + AVG ( ALL 63 ), - COUNT ( * ) * 74, + COUNT ( * ) ) + + 20 + - 4 * 77 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3060
SELECT 7 DIV - - 2
----
3

skipif mysql # not compatible
query I rowsort label-3060
SELECT 7 / - - 2
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT 0 + ( - - COUNT( * ) ) * - + 41 - + - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-3062
SELECT 0 + ( - - COUNT ( * ) ) * - + 41 - + - COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL - COUNT( ALL 5 ) * 46 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL - COUNT ( ALL 5 ) * 46 AS col1
----
-46

query I rowsort
SELECT + 32 * + - 11 * + 29
----
-10208

query I rowsort
SELECT 77 * - 53 + 0
----
-4081

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT DISTINCT COUNT( + 42 ) + - 11
----
-10

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT COUNT ( + 42 ) + - 11
----
-10

query I rowsort
SELECT ALL - 37 + + 56 AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3068
SELECT 1 DIV + ( - COUNT( DISTINCT 37 ) ) + - 27
----
-28

skipif mysql # not compatible
query I rowsort label-3068
SELECT 1 / + ( - COUNT ( DISTINCT 37 ) ) + - 27
----
-28

query I rowsort
SELECT 17 * - 9
----
-153

query I rowsort
SELECT 88 + - ( - + 51 ) AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT 1 * + COUNT( DISTINCT - + 68 ) - 65 - NULLIF ( 59, 2 ) * - 15 * + - ( + COUNT( * ) ) + - 5 + 15 * - + 84 * COUNT( * ) AS col1
----
-2214

skipif mysql # not compatible
query I rowsort label-3071
SELECT 1 * + COUNT ( DISTINCT - + 68 ) - 65 - NULLIF ( 59, 2 ) * - 15 * + - ( + COUNT ( * ) ) + - 5 + 15 * - + 84 * COUNT ( * ) AS col1
----
-2214

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT DISTINCT 33 + ( + 27 ) * 21 + NULLIF ( + ( 47 ), + NULLIF ( + COUNT( * ), + - AVG ( - 50 ) * + + COUNT( * ) * 40 ) * - 8 )
----
647

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT 33 + ( + 27 ) * 21 + NULLIF ( + ( 47 ), + NULLIF ( + COUNT ( * ), + - AVG ( - 50 ) * + + COUNT ( * ) * 40 ) * - 8 )
----
647

onlyif mysql # DIV for integer division: 
query I rowsort label-3073
SELECT DISTINCT + 92 + - 45 + - 8 DIV 67 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT + 92 + - 45 + - 8 / 67 AS col1
----
47

query II rowsort
SELECT ALL - 49 col0, + ( + - 69 )
----
-49
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT - 77 * + + CASE + 62 WHEN 18 * COALESCE ( + 38, + + 92 * - - 85 ) + 69 THEN 49 + + 63 * + ( - + COUNT( * ) ) END + + 72 + + - COUNT( * ) * - + MIN( DISTINCT + 99 ) * 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3075
SELECT - 77 * + + CASE + 62 WHEN 18 * COALESCE ( + 38, + + 92 * - - 85 ) + 69 THEN 49 + + 63 * + ( - + COUNT ( * ) ) END + + 72 + + - COUNT ( * ) * - + MIN ( DISTINCT + 99 ) * 6 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT DISTINCT - 47 DIV + + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT - 47 / + + 98 AS col1
----
0

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

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

query I rowsort
SELECT ALL + 75 - ( + 90 ) AS col2
----
-15

query I rowsort
SELECT - 51 * - 54 + + 26 AS col1
----
2780

onlyif mysql # DIV for integer division: 
query I rowsort label-3080
SELECT 22 DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-3080
SELECT 22 / + 39
----
0

query I rowsort
SELECT 58 * - 28 AS col0
----
-1624

query I rowsort
SELECT 66 * + 2 + - 47 AS col0
----
85

query I rowsort
SELECT ALL - 30 * + + 8 AS col0
----
-240

query I rowsort
SELECT ALL + CASE 26 WHEN - 8 THEN - 44 ELSE 48 END - + - 95 + NULLIF ( + + 31, 24 ) * + ( + 97 )
----
3150

query I rowsort
SELECT 74 + + 73 + 22 col1
----
169

query I rowsort
SELECT - 57 + + + 79 col2
----
22

query I rowsort
SELECT 66 + 99 + - + 92 * + 85
----
-7655

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT - COUNT( * ) * ( + 92 ) * 23 + + 57 + - COALESCE ( + MAX( ALL + - 96 ), + - COUNT( * ) )
----
-1963

skipif mysql # not compatible
query I rowsort label-3088
SELECT - COUNT ( * ) * ( + 92 ) * 23 + + 57 + - COALESCE ( + MAX ( ALL + - 96 ), + - COUNT ( * ) )
----
-1963

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT DISTINCT + NULLIF ( COALESCE ( 27, - COUNT( * ) ), + ( + 40 ) ) * + 16 col0
----
432

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT + NULLIF ( COALESCE ( 27, - COUNT ( * ) ), + ( + 40 ) ) * + 16 col0
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL COALESCE ( + - 51, + + 5 - - + 24, + 82 + - - 79 * MAX( 45 ) * 30 * + ( 62 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL COALESCE ( + - 51, + + 5 - - + 24, + 82 + - - 79 * MAX ( 45 ) * 30 * + ( 62 ) ) AS col1
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-3091
SELECT DISTINCT - - 59 DIV 5 + + - 79 AS col2, + 58 AS col1
----
-68
58

skipif mysql # not compatible
query II rowsort label-3091
SELECT DISTINCT - - 59 / 5 + + - 79 AS col2, + 58 AS col1
----
-68
58

query I rowsort
SELECT ALL + ( + 6 ) * 50 * + + 59
----
17700

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT 14 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT 14 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 69 + - COALESCE ( - 37, - 66 ) AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT - MIN( - - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-3096
SELECT - MIN ( - - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT DISTINCT 99 * + - ( - - 24 ) + MIN( DISTINCT 89 ) * + 34 + ( 35 ) AS col1
----
685

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT 99 * + - ( - - 24 ) + MIN ( DISTINCT 89 ) * + 34 + ( 35 ) AS col1
----
685

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3098
SELECT ALL 67 * + 43 + COUNT( * ) DIV - 10
----
2881

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL 67 * + 43 + COUNT ( * ) / - 10
----
2881

query I rowsort
SELECT DISTINCT - 39 * - + 91 + - + 19
----
3530

query I rowsort
SELECT ALL + 56 * - - ( - 14 ) * + 82 + 70
----
-64218

query II rowsort
SELECT ALL - 49 AS col2, + 31 * + - 72 * - - ( + - NULLIF ( 82, 35 - + 64 ) ) * + 45 + + 23 + + 13 * 40 * 31 AS col0
----
-49
8252223

query I rowsort
SELECT 13 - + 17 AS col2
----
-4

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

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

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

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

query II rowsort
SELECT ALL + 44 - - - 59 AS col2, + 95 AS col0
----
-15
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL + SUM( ALL 82 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL + SUM ( ALL 82 ) col2
----
82

query I rowsort
SELECT - 43 - + 67
----
-110

query I rowsort
SELECT - 41 * - 52 - 78 + 20 AS col2
----
2074

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT - - 60 * + - 84 * + + 66 + + MAX( ALL 21 )
----
-332619

skipif mysql # not compatible
query I rowsort label-3110
SELECT - - 60 * + - 84 * + + 66 + + MAX ( ALL 21 )
----
-332619

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3112
SELECT + 59, ( SUM( ALL + 72 ) ) AS col0
----
59
72

skipif mysql # not compatible
query II rowsort label-3112
SELECT + 59, ( SUM ( ALL + 72 ) ) AS col0
----
59
72

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

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL - + CAST ( ( 28 ) AS INTEGER ) + - - ( - - 13 )
----
-15

query I rowsort
SELECT DISTINCT + ( + - 72 ) * + 69 AS col0
----
-4968

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT DISTINCT - 63 * - - COUNT( * ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - 63 * - - COUNT ( * ) col2
----
-63

query I rowsort
SELECT ALL + - 86 + 67 AS col0
----
-19

query I rowsort
SELECT ALL - + 7 * + + 16
----
-112

query I rowsort
SELECT DISTINCT + 72 + - 52
----
20

query I rowsort
SELECT - 1 + + 88 AS col1
----
87

query I rowsort
SELECT + 84 * - + 43 + 6
----
-3606

query I rowsort
SELECT - - 59 + - 9 * 36
----
-265

query II rowsort
SELECT 82 col1, 14 AS col2
----
82
14

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

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

query I rowsort
SELECT ALL - NULLIF ( 30, + + 84 ) * + - 13 AS col1
----
390

onlyif mysql # DIV for integer division: 
query I rowsort label-3125
SELECT DISTINCT - 65 DIV - 37
----
1

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT - 65 / - 37
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT + 81 + 51 + ( COUNT( * ) ) col0
----
133

skipif mysql # not compatible
query I rowsort label-3126
SELECT + 81 + 51 + ( COUNT ( * ) ) col0
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-3127
SELECT ALL ( + 0 ), - 87 * + COUNT( DISTINCT 52 ) * - 84 AS col0
----
0
7308

skipif mysql # not compatible
query II rowsort label-3127
SELECT ALL ( + 0 ), - 87 * + COUNT ( DISTINCT 52 ) * - 84 AS col0
----
0
7308

query I rowsort
SELECT ALL + 47 * 6
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT DISTINCT - 92 - + NULLIF ( 45, COUNT( * ) / + - 57 ) * + 8
----
-452

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT - 92 - + NULLIF ( 45, COUNT ( * ) / + - 57 ) * + 8
----
-452

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

query I rowsort
SELECT - 44 * - 57 + + + 10 + 87 + + 87 - 43 AS col1
----
2649

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT + COUNT( * ) * - CASE 29 WHEN 14 THEN 12 WHEN - 29 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT + COUNT ( * ) * - CASE 29 WHEN 14 THEN 12 WHEN - 29 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3133
SELECT + 97 + + 48 + - 91 + + 68 DIV + ( + - 83 ) + + 25 * - + 18 * + + 44
----
-19746

skipif mysql # not compatible
query I rowsort label-3133
SELECT + 97 + + 48 + - 91 + + 68 / + ( + - 83 ) + + 25 * - + 18 * + + 44
----
-19746

query I rowsort
SELECT 75 * + + 12 + 73 AS col1
----
973

query II rowsort
SELECT ( 90 ) AS col0, 1 AS col2
----
90
1

query I rowsort
SELECT + 67 * - 98 AS col1
----
-6566

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

query I rowsort
SELECT ALL 25 * + 73 AS col2
----
1825

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT + - MIN( ALL CASE - - 64 WHEN 25 THEN NULL WHEN - 54 THEN + 66 ELSE NULL END ) * + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT + - MIN ( ALL CASE - - 64 WHEN 25 THEN NULL WHEN - 54 THEN + 66 ELSE NULL END ) * + 59 AS col0
----
NULL

query I rowsort
SELECT - - 75 * 38 AS col2
----
2850

query I rowsort
SELECT DISTINCT COALESCE ( 87, + 95 + + CASE + 65 WHEN - 37 THEN - 64 ELSE + 70 END ) * + NULLIF ( + - 21, 77 )
----
-1827

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

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

query I rowsort
SELECT - - 23 + + + 95 AS col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT ALL - SUM( + 57 ) * 82 * + - CASE WHEN NOT 40 > NULL THEN 64 * - + 98 * - 91 + 95 + + 83 ELSE NULL END + - - 3 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL - SUM ( + 57 ) * 82 * + - CASE WHEN NOT 40 > NULL THEN 64 * - + 98 * - 91 + 95 + + 83 ELSE NULL END + - - 3 col1
----
NULL

query I rowsort
SELECT + ( 98 ) col2
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-3146
SELECT + + 88 * + SUM( DISTINCT - 76 ) AS col1, 33 AS col1
----
-6688
33

skipif mysql # not compatible
query II rowsort label-3146
SELECT + + 88 * + SUM ( DISTINCT - 76 ) AS col1, 33 AS col1
----
-6688
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3147
SELECT - ( COUNT( * ) ) * - COUNT( * ) * - - AVG ( DISTINCT + 24 ) * CAST( NULL AS SIGNED ) + NULLIF ( + 38, - 99 ) + - ( 65 ) * + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3147
SELECT - ( COUNT ( * ) ) * - COUNT ( * ) * - - AVG ( DISTINCT + 24 ) * CAST ( NULL AS INTEGER ) + NULLIF ( + 38, - 99 ) + - ( 65 ) * + - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT DISTINCT + MIN( ALL - 27 ) * - 69 * - NULLIF ( CASE + 1 WHEN + 27 * ( - COUNT( * ) ) THEN - 75 + - 19 + + NULLIF ( - + COUNT( * ), COALESCE ( + 9, - + 63 ) ) * + 84 * - 94 ELSE NULL END, 86 ) + + 72 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT + MIN ( ALL - 27 ) * - 69 * - NULLIF ( CASE + 1 WHEN + 27 * ( - COUNT ( * ) ) THEN - 75 + - 19 + + NULLIF ( - + COUNT ( * ), COALESCE ( + 9, - + 63 ) ) * + 84 * - 94 ELSE NULL END, 86 ) + + 72 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT DISTINCT - MAX( 78 ) * - 21 * SUM( 60 ) + + MIN( DISTINCT + NULLIF ( - 19, 27 / 16 + - 86 + - - 65 ) ) col0
----
98261

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT - MAX ( 78 ) * - 21 * SUM ( 60 ) + + MIN ( DISTINCT + NULLIF ( - 19, 27 / 16 + - 86 + - - 65 ) ) col0
----
98261

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3151
SELECT DISTINCT + 16 * + CAST( - 57 AS SIGNED ) AS col1
----
-912

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT + 16 * + CAST ( - 57 AS INTEGER ) AS col1
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT ALL - + 87 * + 97 * + SUM( + 69 ) + 34 * 44
----
-580795

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL - + 87 * + 97 * + SUM ( + 69 ) + 34 * 44
----
-580795

query I rowsort
SELECT - 81 * 25
----
-2025

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3155
SELECT - 1 AS col2, 46 + + MIN( - 52 ) AS col2
----
-1
-6

skipif mysql # not compatible
query II rowsort label-3155
SELECT - 1 AS col2, 46 + + MIN ( - 52 ) AS col2
----
-1
-6

query II rowsort
SELECT 5 AS col0, - 13
----
5
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT - MAX( + 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-3157
SELECT - MAX ( + 28 ) AS col0
----
-28

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

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

query I rowsort
SELECT - 45 * + 59
----
-2655

query I rowsort
SELECT - NULLIF ( 21, + 48 * + 7 ) col2
----
-21

query I rowsort
SELECT 29 * - ( + 70 ) AS col2
----
-2030

query I rowsort
SELECT DISTINCT ( - 28 ) * 26
----
-728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3163
SELECT DISTINCT + CAST( - 51 AS SIGNED ) * - 54 + 38 col2, - 53 + - 84 + + 34 - - 58 * + 96 / + 58 * 97 / - - CAST( NULL AS SIGNED ) AS col2
----
2792
NULL

skipif mysql # not compatible
query II rowsort label-3163
SELECT DISTINCT + CAST ( - 51 AS INTEGER ) * - 54 + 38 col2, - 53 + - 84 + + 34 - - 58 * + 96 / + 58 * 97 / - - CAST ( NULL AS INTEGER ) AS col2
----
2792
NULL

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

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

query I rowsort
SELECT ALL + 81 * - + 26 AS col0
----
-2106

query II rowsort
SELECT 34 AS col1, 38 AS col0
----
34
38

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

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

query II rowsort
SELECT DISTINCT - 66 + - ( + 75 ) * + 5 AS col0, 78 * 8 * + 31 + + + ( - ( - 27 ) ) + - - ( - - 42 ) + + + 10
----
-441
19423

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT + NULLIF ( - + 91, + + ( - 22 ) * - COUNT( * ) / + + 25 ) * + 27 + 9 - - COUNT( * ) * + + 44
----
-2404

skipif mysql # not compatible
query I rowsort label-3169
SELECT + NULLIF ( - + 91, + + ( - 22 ) * - COUNT ( * ) / + + 25 ) * + 27 + 9 - - COUNT ( * ) * + + 44
----
-2404

query I rowsort
SELECT DISTINCT - 33 + - 51 * 39 * + 76
----
-151197

onlyif mysql # aggregate syntax: 
query II rowsort label-3171
SELECT ALL - - 33 AS col1, MAX( - 51 ) * + COALESCE ( + - COALESCE ( 97, + COUNT( * ) ), - + 96, 86 ) + - 85 * - - COUNT( * ) AS col0
----
33
4862

skipif mysql # not compatible
query II rowsort label-3171
SELECT ALL - - 33 AS col1, MAX ( - 51 ) * + COALESCE ( + - COALESCE ( 97, + COUNT ( * ) ), - + 96, 86 ) + - 85 * - - COUNT ( * ) AS col0
----
33
4862

onlyif mysql # aggregate syntax: 
query II rowsort label-3172
SELECT ALL - 83 + COUNT( * ) + - 23 * ( - COALESCE ( + - 22, 81 - COUNT( * ) ) ) AS col2, SUM( DISTINCT 44 ) + + 23
----
-588
67

skipif mysql # not compatible
query II rowsort label-3172
SELECT ALL - 83 + COUNT ( * ) + - 23 * ( - COALESCE ( + - 22, 81 - COUNT ( * ) ) ) AS col2, SUM ( DISTINCT 44 ) + + 23
----
-588
67

query I rowsort
SELECT DISTINCT 95 + + 45 AS col2
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT CAST( NULL AS SIGNED ) * 96 / + 27 + - + 55 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT CAST ( NULL AS INTEGER ) * 96 / + 27 + - + 55 col1
----
NULL

query I rowsort
SELECT DISTINCT 18 * + - 47 AS col0
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT + 19 * + 99 + - NULLIF ( + 84, 68 * - + 37 ) - + 77 + + 41 + - - COUNT( DISTINCT - 0 ) + - 29 AS col2
----
1733

skipif mysql # not compatible
query I rowsort label-3176
SELECT + 19 * + 99 + - NULLIF ( + 84, 68 * - + 37 ) - + 77 + + 41 + - - COUNT ( DISTINCT - 0 ) + - 29 AS col2
----
1733

query II rowsort
SELECT - 78, 18 * + - 59 * + 59 AS col0
----
-78
-62658

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

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

query II rowsort
SELECT DISTINCT 96, - 1 AS col1
----
96
-1

query I rowsort
SELECT DISTINCT 7 - 34 AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3181
SELECT ALL - COALESCE ( + COUNT( * ), - 90, + + 82 * - 78 + - 39 + 82 DIV - + 48 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL - COALESCE ( + COUNT ( * ), - 90, + + 82 * - 78 + - 39 + 82 / - + 48 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3182
SELECT ALL 63 - - COALESCE ( - 3, - 90, - + 69 ) + + COUNT( * ) DIV + 46
----
60

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL 63 - - COALESCE ( - 3, - 90, - + 69 ) + + COUNT ( * ) / + 46
----
60

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3184
SELECT DISTINCT - NULLIF ( + 4, 60 + + 12 ) DIV + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT - NULLIF ( + 4, 60 + + 12 ) / + COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT NULLIF ( + 78, - 63 ) + + COUNT( * ) + + + COALESCE ( - - ( - 90 ), + 96, + 80 ) * + 56 + + 39 * + 66 AS col0
----
-2387

skipif mysql # not compatible
query I rowsort label-3185
SELECT NULLIF ( + 78, - 63 ) + + COUNT ( * ) + + + COALESCE ( - - ( - 90 ), + 96, + 80 ) * + 56 + + 39 * + 66 AS col0
----
-2387

query I rowsort
SELECT 51 * - + 10
----
-510

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT ALL 4 DIV + 12
----
0

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL 4 / + 12
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3188
SELECT 29 DIV 31 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3188
SELECT 29 / 31 AS col0
----
0

query I rowsort
SELECT DISTINCT 21 * 87
----
1827

query I rowsort
SELECT ALL 56 * + - 74
----
-4144

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT ALL - 39 DIV 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL - 39 / 90 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT 57 + - - 16 + MAX( + 86 )
----
159

skipif mysql # not compatible
query I rowsort label-3192
SELECT 57 + - - 16 + MAX ( + 86 )
----
159

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3194
SELECT 64 * - COUNT( * ) DIV + 72 * 9 * + 40
----
0

skipif mysql # not compatible
query I rowsort label-3194
SELECT 64 * - COUNT ( * ) / + 72 * 9 * + 40
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3195
SELECT ALL - 40 + + 23 AS col0, CAST( NULL AS SIGNED ) col1
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-3195
SELECT ALL - 40 + + 23 AS col0, CAST ( NULL AS INTEGER ) col1
----
-17
NULL

query I rowsort
SELECT ALL + 85 + + - 97 + - 51 + + 43
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT 53 * - 41 DIV + 41 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-3197
SELECT 53 * - 41 / + 41 AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3198
SELECT - NULLIF ( CAST( NULL AS SIGNED ), - 98 * 21 * - + 70 - - + 36 + COUNT( * ) + 83 * + CAST( AVG ( + + 8 ) AS SIGNED ) - ( 58 ) - + 12 + - - 12 / + + ( + 97 ) * + MAX( - 78 ) * - + COUNT( * ) * - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), - 98 * 21 * - + 70 - - + 36 + COUNT ( * ) + 83 * + CAST ( AVG ( + + 8 ) AS INTEGER ) - ( 58 ) - + 12 + - - 12 / + + ( + 97 ) * + MAX ( - 78 ) * - + COUNT ( * ) * - 9 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3199
SELECT ALL - + MIN( - 18 ) + + 57 * + CAST( - 86 AS SIGNED )
----
-4884

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL - + MIN ( - 18 ) + + 57 * + CAST ( - 86 AS INTEGER )
----
-4884

query I rowsort
SELECT ALL + - 92 + + 42 - + + 26
----
-76

query I rowsort
SELECT ALL + 34 + + ( - 34 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3202
SELECT + 14 * + NULLIF ( + + 6, - 75 / + ( - + CAST( NULL AS SIGNED ) ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3202
SELECT + 14 * + NULLIF ( + + 6, - 75 / + ( - + CAST ( NULL AS INTEGER ) ) ) AS col0
----
84

query I rowsort
SELECT 22 + - 60 * 6 AS col0
----
-338

query I rowsort
SELECT - 81 * - 50 col2
----
4050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT - 50 * - CAST( + 47 AS SIGNED ) AS col1
----
2350

skipif mysql # not compatible
query I rowsort label-3205
SELECT - 50 * - CAST ( + 47 AS INTEGER ) AS col1
----
2350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3206
SELECT ALL - 27 DIV SUM( ALL + 39 )
----
0

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL - 27 / SUM ( ALL + 39 )
----
0

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

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT - COUNT ( * ) / - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL 70 * COUNT( - 62 ) col1
----
70

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL 70 * COUNT ( - 62 ) col1
----
70

query I rowsort
SELECT - 39 + + - COALESCE ( 53, + - 51 * + 69 * + + 3 ) + 75 AS col0
----
-17

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

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL CAST ( - + 69 AS INTEGER )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3211
SELECT DISTINCT - NULLIF ( + + 0, + COALESCE ( + CAST( - + MAX( DISTINCT + 99 ) AS SIGNED ), 72, + 43 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT - NULLIF ( + + 0, + COALESCE ( + CAST ( - + MAX ( DISTINCT + 99 ) AS INTEGER ), 72, + 43 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT ALL CAST( NULL AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT - MAX( ALL 91 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-3213
SELECT - MAX ( ALL 91 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT DISTINCT 63 * COUNT( DISTINCT - + 57 )
----
63

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT 63 * COUNT ( DISTINCT - + 57 )
----
63

query I rowsort
SELECT ALL 80 * 43 col2
----
3440

query I rowsort
SELECT ALL - 53 + + + 50 AS col0
----
-3

query I rowsort
SELECT + 44 * - 37
----
-1628

query I rowsort
SELECT DISTINCT 67 + 13 * + - 71 AS col0
----
-856

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT + COUNT( * ) - + 83 * 71 + - MAX( DISTINCT - + 58 )
----
-5834

skipif mysql # not compatible
query I rowsort label-3219
SELECT + COUNT ( * ) - + 83 * 71 + - MAX ( DISTINCT - + 58 )
----
-5834

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT DISTINCT 44 + + COUNT( * ) + - + NULLIF ( + 46, + + 93 ) * - - 52
----
-2347

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT 44 + + COUNT ( * ) + - + NULLIF ( + 46, + + 93 ) * - - 52
----
-2347

query I rowsort
SELECT + 8 - 41 AS col2
----
-33

query I rowsort
SELECT ALL + 81 * + 86
----
6966

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT - 16 * + 58 + - 78 + - CASE + AVG ( DISTINCT + 18 ) WHEN 61 THEN - - COUNT( * ) + + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT - 16 * + 58 + - 78 + - CASE + AVG ( DISTINCT + 18 ) WHEN 61 THEN - - COUNT ( * ) + + 53 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL MAX( - 33 ) * + 55 + - 6 AS col2
----
-1821

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL MAX ( - 33 ) * + 55 + - 6 AS col2
----
-1821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3225
SELECT DISTINCT 27 * - 66 * + + 11 + 84 + + SUM( - 45 ) + + 31 + 81 * + - 36 + - + COUNT( * ) * + + 77 + SUM( CAST( + 24 AS SIGNED ) ) AS col0
----
-22501

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT 27 * - 66 * + + 11 + 84 + + SUM ( - 45 ) + + 31 + 81 * + - 36 + - + COUNT ( * ) * + + 77 + SUM ( CAST ( + 24 AS INTEGER ) ) AS col0
----
-22501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3226
SELECT DISTINCT 11 * MAX( 23 ) + + CAST( + - 70 AS SIGNED ) col0, + 4
----
183
4

skipif mysql # not compatible
query II rowsort label-3226
SELECT DISTINCT 11 * MAX ( 23 ) + + CAST ( + - 70 AS INTEGER ) col0, + 4
----
183
4

query I rowsort
SELECT ALL 55 * 75 + 48 AS col1
----
4173

query I rowsort
SELECT - 12 * - 62
----
744

query I rowsort
SELECT + + ( - 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL MAX( - 71 ) * - 14 - 85 + + COUNT( * ) AS col2
----
910

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL MAX ( - 71 ) * - 14 - 85 + + COUNT ( * ) AS col2
----
910

query I rowsort
SELECT DISTINCT - 98 * + 59 col1
----
-5782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3232
SELECT DISTINCT - ( + 24 ) DIV + + SUM( 55 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT - ( + 24 ) / + + SUM ( 55 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 43 * + 54 - 3
----
2319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3234
SELECT ALL - - ( + - 44 ) * - COUNT( * ) - + 69 * COALESCE ( 9, - + 8, - + CAST( NULL AS SIGNED ) )
----
-577

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL - - ( + - 44 ) * - COUNT ( * ) - + 69 * COALESCE ( 9, - + 8, - + CAST ( NULL AS INTEGER ) )
----
-577

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT - 28 + - MAX( DISTINCT - 52 )
----
24

skipif mysql # not compatible
query I rowsort label-3235
SELECT - 28 + - MAX ( DISTINCT - 52 )
----
24

query I rowsort
SELECT - NULLIF ( + + 58, - 39 + 99 * + 28 ) AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3237
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + MAX( 77 )
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3237
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + MAX ( 77 )
----
NULL
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3238
SELECT COUNT( * ) AS col2, 22 DIV + 9 AS col0
----
1
2

skipif mysql # not compatible
query II rowsort label-3238
SELECT COUNT ( * ) AS col2, 22 / + 9 AS col0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT ALL CASE 13 WHEN 39 THEN NULL WHEN - + 8 + SUM( - - 26 ) * SUM( ALL - 76 ) * + 55 / + + 49 THEN - COUNT( * ) * - 5 END / - + MIN( + 89 ) * - COUNT( + NULLIF ( - - 36, - + 17 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL CASE 13 WHEN 39 THEN NULL WHEN - + 8 + SUM ( - - 26 ) * SUM ( ALL - 76 ) * + 55 / + + 49 THEN - COUNT ( * ) * - 5 END / - + MIN ( + 89 ) * - COUNT ( + NULLIF ( - - 36, - + 17 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3240
SELECT - 75 * CAST( ( - + 63 ) AS SIGNED ) AS col0
----
4725

skipif mysql # not compatible
query I rowsort label-3240
SELECT - 75 * CAST ( ( - + 63 ) AS INTEGER ) AS col0
----
4725

query I rowsort
SELECT DISTINCT ( + COALESCE ( - + 16, - 54, + 13 ) ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT + 51 * + ( - COUNT( * ) ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3242
SELECT + 51 * + ( - COUNT ( * ) ) AS col0
----
-51

query I rowsort
SELECT ALL 62 + - - COALESCE ( + ( - - 83 ), + 78 + + 22 ) + + NULLIF ( 67, + 26 ) AS col0
----
212

query I rowsort
SELECT + 68 - 15
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3245
SELECT + COUNT( * ) - + 32 * + 62 + 9 AS col2, 92 AS col1
----
-1974
92

skipif mysql # not compatible
query II rowsort label-3245
SELECT + COUNT ( * ) - + 32 * + 62 + 9 AS col2, 92 AS col1
----
-1974
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT - 15 * - MIN( + - 66 )
----
-990

skipif mysql # not compatible
query I rowsort label-3246
SELECT - 15 * - MIN ( + - 66 )
----
-990

query I rowsort
SELECT + 21 * 47
----
987

query I rowsort
SELECT ALL 26 + - 16 * 98 + + CASE - NULLIF ( + 45, - 63 * + + 21 ) WHEN 54 THEN NULL WHEN + 70 THEN + - ( + - 42 ) ELSE + 51 END AS col2
----
-1491

onlyif mysql # DIV for integer division: 
query II rowsort label-3249
SELECT 77, 36 DIV + + 80 AS col1
----
77
0

skipif mysql # not compatible
query II rowsort label-3249
SELECT 77, 36 / + + 80 AS col1
----
77
0

query I rowsort
SELECT ALL 3 + - 87
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT + COUNT( * ) + - 1 * 78 col0
----
-77

skipif mysql # not compatible
query I rowsort label-3251
SELECT + COUNT ( * ) + - 1 * 78 col0
----
-77

query I rowsort
SELECT ALL 67 + - 94
----
-27

query I rowsort
SELECT DISTINCT 25 + 5 * 97 + - 66
----
444

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT DISTINCT MIN( DISTINCT + - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT MIN ( DISTINCT + - 98 )
----
-98

query I rowsort
SELECT ALL 49 + - 47
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3256
SELECT + COUNT( + - 31 ) + + ( - + 58 ), 27 + - 11 DIV COUNT( * ) + + + 64 DIV 16 + 25 AS col2
----
-57
45

skipif mysql # not compatible
query II rowsort label-3256
SELECT + COUNT ( + - 31 ) + + ( - + 58 ), 27 + - 11 / COUNT ( * ) + + + 64 / 16 + 25 AS col2
----
-57
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3257
SELECT - COUNT( * ) AS col0, + SUM( - 39 ) AS col1
----
-1
-39

skipif mysql # not compatible
query II rowsort label-3257
SELECT - COUNT ( * ) AS col0, + SUM ( - 39 ) AS col1
----
-1
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-3258
SELECT - 45, 42 * - COUNT( ALL ( - 97 ) ) * - 48 + - - 67 + + 8 * + + 66 + 87 AS col2
----
-45
2698

skipif mysql # not compatible
query II rowsort label-3258
SELECT - 45, 42 * - COUNT ( ALL ( - 97 ) ) * - 48 + - - 67 + + 8 * + + 66 + 87 AS col2
----
-45
2698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3259
SELECT DISTINCT + + COUNT( ALL - CAST( - 4 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT + + COUNT ( ALL - CAST ( - 4 AS INTEGER ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3260
SELECT ALL + 6 DIV - - 8 + 27 - - 70 + - 91 + 65, + 66 + 26 AS col1
----
71
92

skipif mysql # not compatible
query II rowsort label-3260
SELECT ALL + 6 / - - 8 + 27 - - 70 + - 91 + 65, + 66 + 26 AS col1
----
71
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3261
SELECT + + 21 * - COUNT( * ) * 37 + - 94 + CAST( NULL AS DECIMAL ) - + ( + 87 ) + + 97 * - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3261
SELECT + + 21 * - COUNT ( * ) * 37 + - 94 + CAST ( NULL AS REAL ) - + ( + 87 ) + + 97 * - + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT - + 15 * COUNT( * ) + 1 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3262
SELECT - + 15 * COUNT ( * ) + 1 AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3263
SELECT ALL + + 80 AS col2, + AVG ( + 64 ) + CAST( NULL AS SIGNED ) + + NULLIF ( + CASE COUNT( * ) WHEN 37 + 86 THEN - 30 END, - COUNT( * ) )
----
80
NULL

skipif mysql # not compatible
query II rowsort label-3263
SELECT ALL + + 80 AS col2, + AVG ( + 64 ) + CAST ( NULL AS INTEGER ) + + NULLIF ( + CASE COUNT ( * ) WHEN 37 + 86 THEN - 30 END, - COUNT ( * ) )
----
80
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3264
SELECT DISTINCT CAST( - + 86 AS SIGNED ) DIV - + 41 - 27
----
-25

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT CAST ( - + 86 AS INTEGER ) / - + 41 - 27
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT ALL + - MAX( - + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL + - MAX ( - + 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL + 60 * + COUNT( ALL + 50 )
----
60

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL + 60 * + COUNT ( ALL + 50 )
----
60

query I rowsort
SELECT + 72 * - - 5 AS col0
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3268
SELECT ALL COUNT( * ) / - 51 * + + ( - - MIN( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL COUNT ( * ) / - 51 * + + ( - - MIN ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

query II rowsort
SELECT ALL + - 46 AS col2, 2
----
-46
2

query I rowsort
SELECT DISTINCT + 33 * - 69 * + AVG ( DISTINCT 9 ) * + + CASE - + 5 WHEN - ( - 45 ) - - + 24 THEN - - 91 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT ALL 69 * 11 * - 96 + + CASE + 92 WHEN - - 89 THEN NULL WHEN - + MIN( DISTINCT + + 60 ) * ( + + ( - 98 ) ) THEN NULL ELSE - - COUNT( * ) + - SUM( + 70 ) + - - 23 END * 79 AS col0
----
-76498

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL 69 * 11 * - 96 + + CASE + 92 WHEN - - 89 THEN NULL WHEN - + MIN ( DISTINCT + + 60 ) * ( + + ( - 98 ) ) THEN NULL ELSE - - COUNT ( * ) + - SUM ( + 70 ) + - - 23 END * 79 AS col0
----
-76498

query I rowsort
SELECT + - 94 * + 68 * 60 col1
----
-383520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3273
SELECT 37 AS col0, 8 * - COALESCE ( + 74, COUNT( * ) * ( COALESCE ( + MAX( DISTINCT - 51 ), - 77 + CASE + - 8 WHEN - CAST( NULL AS SIGNED ) * - 44 THEN NULL WHEN - - COALESCE ( + + 5, - 86, + ( 67 ) ) THEN NULL ELSE + - 58 * - + NULLIF ( + 51, COUNT( * ) ) - + COUNT( * ) END, + 26 * - + 99 * COUNT( * ) DIV - 0 + SUM( 8 ) ) ) + + + ( - 68 ) )
----
37
-592

skipif mysql # not compatible
query II rowsort label-3273
SELECT 37 AS col0, 8 * - COALESCE ( + 74, COUNT ( * ) * ( COALESCE ( + MAX ( DISTINCT - 51 ), - 77 + CASE + - 8 WHEN - CAST ( NULL AS INTEGER ) * - 44 THEN NULL WHEN - - COALESCE ( + + 5, - 86, + ( 67 ) ) THEN NULL ELSE + - 58 * - + NULLIF ( + 51, COUNT ( * ) ) - + COUNT ( * ) END, + 26 * - + 99 * COUNT ( * ) / - 0 + SUM ( 8 ) ) ) + + + ( - 68 ) )
----
37
-592

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT + + COUNT( * ) * 84 * - + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-3274
SELECT + + COUNT ( * ) * 84 * - + COUNT ( * )
----
-84

query I rowsort
SELECT ALL + + 96 col1
----
96

query II rowsort
SELECT 80 AS col1, 38
----
80
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3277
SELECT + CASE + - ( + AVG ( - 95 ) ) WHEN CASE COALESCE ( 84, - 62 + - 15 * - 47 ) WHEN - COUNT( * ) THEN + 17 * + 72 / 84 + - 80 ELSE 54 END THEN - 13 * + + 59 END * 52 - + CAST( NULL AS SIGNED ) - + 27 * + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT + CASE + - ( + AVG ( - 95 ) ) WHEN CASE COALESCE ( 84, - 62 + - 15 * - 47 ) WHEN - COUNT ( * ) THEN + 17 * + 72 / 84 + - 80 ELSE 54 END THEN - 13 * + + 59 END * 52 - + CAST ( NULL AS INTEGER ) - + 27 * + 78 AS col0
----
NULL

query I rowsort
SELECT ALL - + 18 col0
----
-18

query II rowsort
SELECT ALL 57 + + + 86 + - + NULLIF ( + 2, + 0 * - + NULLIF ( + 85, - 1 ) - + ( 33 ) + 28 ), 84 * - + 68 * 68 AS col1
----
141
-388416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3280
SELECT DISTINCT - 70 + - COALESCE ( - NULLIF ( COUNT( DISTINCT 85 ), 71 ), + 13 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT - 70 + - COALESCE ( - NULLIF ( COUNT ( DISTINCT 85 ), 71 ), + 13 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 48 + + + 32
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT DISTINCT + ( - CASE 69 WHEN + 34 THEN NULL WHEN + - 51 THEN + + COUNT( * ) * - CASE 96 WHEN + + COUNT( * ) * - 45 THEN NULL WHEN - - 41 THEN NULL WHEN - + ( 97 ) THEN MIN( DISTINCT + + 50 ) ELSE CASE WHEN - ( + 83 ) IS NULL THEN - 75 END * + + 36 * + COUNT( * ) + 22 + - 28 + + 72 END ELSE NULL END ) * + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT + ( - CASE 69 WHEN + 34 THEN NULL WHEN + - 51 THEN + + COUNT ( * ) * - CASE 96 WHEN + + COUNT ( * ) * - 45 THEN NULL WHEN - - 41 THEN NULL WHEN - + ( 97 ) THEN MIN ( DISTINCT + + 50 ) ELSE CASE WHEN - ( + 83 ) IS NULL THEN - 75 END * + + 36 * + COUNT ( * ) + 22 + - 28 + + 72 END ELSE NULL END ) * + 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT DISTINCT - ( - - 97 ) + - + COUNT( * ) * - COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT - ( - - 97 ) + - + COUNT ( * ) * - COUNT ( * ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT ALL + 53 + SUM( - 93 ) + - COUNT( * ) * 11 - + - 69 col2
----
18

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL + 53 + SUM ( - 93 ) + - COUNT ( * ) * 11 - + - 69 col2
----
18

query I rowsort
SELECT DISTINCT - 99 + + + 47 + - 95 * + 98 AS col0
----
-9362

query I rowsort
SELECT DISTINCT + 35 + - 66 + + 0 * - + 32 AS col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT 57 DIV + + 40
----
1

skipif mysql # not compatible
query I rowsort label-3287
SELECT 57 / + + 40
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3288
SELECT ALL + CAST( + 10 AS SIGNED ) + NULLIF ( 90, 25 ) + - 51 + - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL + CAST ( + 10 AS INTEGER ) + NULLIF ( 90, 25 ) + - 51 + - COUNT ( * )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3289
SELECT DISTINCT 14 DIV 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT 14 / 96 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3290
SELECT ALL COUNT( * ) - - COUNT( * ) - - + 5 + 41 * - + 16 * - + 1 DIV ( - COUNT( * ) )
----
-649

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL COUNT ( * ) - - COUNT ( * ) - - + 5 + 41 * - + 16 * - + 1 / ( - COUNT ( * ) )
----
-649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3291
SELECT DISTINCT + 9 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT + 9 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 66 * 66
----
4356

query I rowsort
SELECT ALL - 56 - + + 60 + 15 * COALESCE ( - + 57, - 18 * 3, - - 46 ) * + + 24
----
-20636

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3294
SELECT - COUNT( * ) - + ( 44 ) DIV 63 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3294
SELECT - COUNT ( * ) - + ( 44 ) / 63 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3295
SELECT DISTINCT - ( 72 ) AS col2, + COUNT( * ) * - MAX( DISTINCT - 38 ) * + - 36 + + + 17
----
-72
-1351

skipif mysql # not compatible
query II rowsort label-3295
SELECT DISTINCT - ( 72 ) AS col2, + COUNT ( * ) * - MAX ( DISTINCT - 38 ) * + - 36 + + + 17
----
-72
-1351

query I rowsort
SELECT + 70 * 33 col2
----
2310

query I rowsort
SELECT ALL - 4 * - - 74 + + 33 AS col1
----
-263

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT + 83 - + - MIN( DISTINCT - 54 ) col2
----
29

skipif mysql # not compatible
query I rowsort label-3298
SELECT + 83 - + - MIN ( DISTINCT - 54 ) col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3299
SELECT + 92 + 44, MIN( ALL 1 ) * - - ( - MAX( DISTINCT - 26 ) ) * + - CAST( - 49 AS SIGNED ) + - 75 + + 18 + - 6 AS col2
----
136
1211

skipif mysql # not compatible
query II rowsort label-3299
SELECT + 92 + 44, MIN ( ALL 1 ) * - - ( - MAX ( DISTINCT - 26 ) ) * + - CAST ( - 49 AS INTEGER ) + - 75 + + 18 + - 6 AS col2
----
136
1211

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT - + 86 * - 95 - COUNT( * ) AS col2
----
8169

skipif mysql # not compatible
query I rowsort label-3300
SELECT - + 86 * - 95 - COUNT ( * ) AS col2
----
8169

query I rowsort
SELECT + 36 * - 64 AS col1
----
-2304

query I rowsort
SELECT 89 * 82 + + - 69 AS col0
----
7229

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT + + NULLIF ( 26, + 57 - + CASE + + 56 WHEN COUNT( * ) / + - ( MAX( + - 58 ) ) + - - 35 / 70 + - 50 THEN NULL ELSE - ( - - 4 ) END ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3303
SELECT + + NULLIF ( 26, + 57 - + CASE + + 56 WHEN COUNT ( * ) / + - ( MAX ( + - 58 ) ) + - - 35 / 70 + - 50 THEN NULL ELSE - ( - - 4 ) END ) AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3304
SELECT DISTINCT - COALESCE ( + 3, - 67, + - 57 ) DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT - COALESCE ( + 3, - 67, + - 57 ) / - 71
----
0

query I rowsort
SELECT ALL 2 * - ( + 34 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT SUM( ALL + - 92 ) * + MIN( ALL + - 52 ) + - 5 col1
----
4779

skipif mysql # not compatible
query I rowsort label-3306
SELECT SUM ( ALL + - 92 ) * + MIN ( ALL + - 52 ) + - 5 col1
----
4779

query I rowsort
SELECT ALL + 77 + 25 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT ALL - NULLIF ( - COUNT( * ), 69 )
----
1

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL - NULLIF ( - COUNT ( * ), 69 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3309
SELECT ALL CAST( 39 AS SIGNED ) + MAX( 88 ) * 23
----
2063

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL CAST ( 39 AS INTEGER ) + MAX ( 88 ) * 23
----
2063

query I rowsort
SELECT DISTINCT - ( - 8 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3311
SELECT COUNT( * ) * 5 * + - 96 AS col2, CASE + 51 WHEN + + CASE COUNT( * ) WHEN 89 + ( - + 48 ) + + 49 + - + 19 * + 92 THEN NULL ELSE + 57 * + 68 END + - - 23 THEN + + 83 - + COUNT( * ) WHEN + ( - ( ( + 65 ) ) ) THEN - 72 * - 63 / 18 ELSE NULL END
----
-480
NULL

skipif mysql # not compatible
query II rowsort label-3311
SELECT COUNT ( * ) * 5 * + - 96 AS col2, CASE + 51 WHEN + + CASE COUNT ( * ) WHEN 89 + ( - + 48 ) + + 49 + - + 19 * + 92 THEN NULL ELSE + 57 * + 68 END + - - 23 THEN + + 83 - + COUNT ( * ) WHEN + ( - ( ( + 65 ) ) ) THEN - 72 * - 63 / 18 ELSE NULL END
----
-480
NULL

query I rowsort
SELECT 57 * 92 col2
----
5244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3313
SELECT ALL 27 + MIN( ALL + + ( - CAST( NULL AS SIGNED ) ) ) AS col2, 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-3313
SELECT ALL 27 + MIN ( ALL + + ( - CAST ( NULL AS INTEGER ) ) ) AS col2, 78
----
NULL
78

onlyif mysql # aggregate syntax: 
query III rowsort label-3314
SELECT 85 * - 56 * - 35 - + + 45 + 2 * + 10 + COUNT( * ) + - 58 col2, - 21 AS col1, + - 7
----
166518
-21
-7

skipif mysql # not compatible
query III rowsort label-3314
SELECT 85 * - 56 * - 35 - + + 45 + 2 * + 10 + COUNT ( * ) + - 58 col2, - 21 AS col1, + - 7
----
166518
-21
-7

query II rowsort
SELECT 83 AS col0, - 5 + 24 AS col1
----
83
19

query I rowsort
SELECT 83 * + 61 AS col2
----
5063

onlyif mysql # aggregate syntax: 
query II rowsort label-3317
SELECT 97, COUNT( * ) AS col2
----
97
1

skipif mysql # not compatible
query II rowsort label-3317
SELECT 97, COUNT ( * ) AS col2
----
97
1

query I rowsort
SELECT ALL 91 + - + 66
----
25

query I rowsort
SELECT ALL + 22 - + - 85 AS col1
----
107

query I rowsort
SELECT 82 - + - 53
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3321
SELECT CAST( + 4 AS SIGNED ) + + - 75 * - - 31 * 43
----
-99971

skipif mysql # not compatible
query I rowsort label-3321
SELECT CAST ( + 4 AS INTEGER ) + + - 75 * - - 31 * 43
----
-99971

query I rowsort
SELECT 92 - - - 5
----
87

query I rowsort
SELECT ALL + 23 - - 73 AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3324
SELECT CAST( + 78 AS SIGNED ) * 97
----
7566

skipif mysql # not compatible
query I rowsort label-3324
SELECT CAST ( + 78 AS INTEGER ) * 97
----
7566

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT 72 + ( - ( - 29 ) ) + + COALESCE ( - + 73, 53 * - + 96 * + 94 - - + 48 - - 19 ) - - CASE - 89 WHEN - 82 * - 52 * - 47 * MAX( + 72 ) THEN - 85 + + - 22 ELSE NULL END + - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT 72 + ( - ( - 29 ) ) + + COALESCE ( - + 73, 53 * - + 96 * + 94 - - + 48 - - 19 ) - - CASE - 89 WHEN - 82 * - 52 * - 47 * MAX ( + 72 ) THEN - 85 + + - 22 ELSE NULL END + - - 89
----
NULL

query I rowsort
SELECT - 18 + + 99
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3327
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 61
----
NULL

query I rowsort
SELECT DISTINCT + 66 * - 23 AS col2
----
-1518

query I rowsort
SELECT 4 + - 81 AS col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3330
SELECT ( + + 92 ) / + COUNT( * ) + ( - 60 ) + - CAST( NULL AS SIGNED ) * + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT ( + + 92 ) / + COUNT ( * ) + ( - 60 ) + - CAST ( NULL AS INTEGER ) * + 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT - COUNT( * ) * + - 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3331
SELECT - COUNT ( * ) * + - 6 AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3332
SELECT ALL - + SUM( DISTINCT + + 13 ) DIV NULLIF ( - - 96, - 73 ) * - 55 * 40
----
0

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL - + SUM ( DISTINCT + + 13 ) / NULLIF ( - - 96, - 73 ) * - 55 * 40
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3333
SELECT - + 25 * + - 68 - + 49 * ( - NULLIF ( MAX( DISTINCT 2 ), 27 ) ) + + 53 - + - COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3333
SELECT - + 25 * + - 68 - + 49 * ( - NULLIF ( MAX ( DISTINCT 2 ), 27 ) ) + + 53 - + - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ALL - 10 * - COUNT( * ) + + 20 + + - COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL - 10 * - COUNT ( * ) + + 20 + + - COUNT ( * ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT ALL - ( - 47 ) * - 6 + + COUNT( * ) AS col1
----
-281

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL - ( - 47 ) * - 6 + + COUNT ( * ) AS col1
----
-281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3336
SELECT ALL + CASE ( 28 ) WHEN + + CAST( + - MAX( ALL 94 ) AS SIGNED ) THEN + 23 WHEN - 23 THEN 52 ELSE NULL END, CASE - 68 WHEN - ( - 9 ) THEN NULL WHEN ( + - 63 ) THEN 57 / - CASE - CAST( NULL AS DECIMAL ) WHEN 36 THEN NULL ELSE - 24 END ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3336
SELECT ALL + CASE ( 28 ) WHEN + + CAST ( + - MAX ( ALL 94 ) AS INTEGER ) THEN + 23 WHEN - 23 THEN 52 ELSE NULL END, CASE - 68 WHEN - ( - 9 ) THEN NULL WHEN ( + - 63 ) THEN 57 / - CASE - CAST ( NULL AS REAL ) WHEN 36 THEN NULL ELSE - 24 END ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT ALL + 33 * + 85 + + CASE - 53 WHEN 24 / - 96 THEN + 99 * - - 16 + + 49 WHEN 1 THEN - 5 END + 96
----
NULL

query I rowsort
SELECT + 33 + - 14 + + 33 AS col2
----
52

query I rowsort
SELECT + 92 * - 91
----
-8372

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT ALL 4 DIV ( 92 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL 4 / ( 92 ) AS col2
----
0

query I rowsort
SELECT ALL + ( 92 ) * - + 73 - + 96 AS col0
----
-6812

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL CASE 64 WHEN + + 75 THEN + + 25 * + - 1 + + 2 * 84 / + 82 / COUNT( * ) ELSE NULL END * ( + + MAX( ALL 54 ) ) - - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL CASE 64 WHEN + + 75 THEN + + 25 * + - 1 + + 2 * 84 / + 82 / COUNT ( * ) ELSE NULL END * ( + + MAX ( ALL 54 ) ) - - 79
----
NULL

query I rowsort
SELECT + 79 + - - 27 AS col1
----
106

query I rowsort
SELECT DISTINCT 85 * + ( + ( 96 ) ) * - 45 * + 36
----
-13219200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3345
SELECT DISTINCT 3 * - ( + SUM( ALL 26 ) ) DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT 3 * - ( + SUM ( ALL 26 ) ) / 87 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT + 14 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-3346
SELECT + 14 / 99
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3347
SELECT + 26 * - NULLIF ( COALESCE ( + 68, - 90 * - 49 + - SUM( - CAST( - 32 AS SIGNED ) ) * ( - 77 ) ), - + 34 ) col2
----
-1768

skipif mysql # not compatible
query I rowsort label-3347
SELECT + 26 * - NULLIF ( COALESCE ( + 68, - 90 * - 49 + - SUM ( - CAST ( - 32 AS INTEGER ) ) * ( - 77 ) ), - + 34 ) col2
----
-1768

onlyif mysql # aggregate syntax: 
query II rowsort label-3348
SELECT SUM( ALL + 67 ), 35 AS col0
----
67
35

skipif mysql # not compatible
query II rowsort label-3348
SELECT SUM ( ALL + 67 ), 35 AS col0
----
67
35

query II rowsort
SELECT - 8 + 19 AS col2, - 10
----
11
-10

query II rowsort
SELECT DISTINCT 72 - - + 3 AS col2, + 21
----
75
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT - COALESCE ( + 55, - 80, + + COUNT( * ) )
----
-55

skipif mysql # not compatible
query I rowsort label-3351
SELECT - COALESCE ( + 55, - 80, + + COUNT ( * ) )
----
-55

query I rowsort
SELECT - 2 + - - 23 * 1 AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3353
SELECT ALL + ( - CASE + 6 WHEN - + CASE + COUNT( * ) WHEN - + 23 THEN CAST( NULL AS SIGNED ) WHEN + 34 * - 60 THEN - ( 12 ) END * + - MAX( DISTINCT - 60 ) * + 45 + - AVG ( DISTINCT - 38 ) * - 95 + - COUNT( * ) * - 21 + + 25 THEN + - 94 - ( 72 ) * + + COALESCE ( - ( - CASE - 86 WHEN + 39 / - 50 THEN + 1 WHEN 28 THEN NULL WHEN 90 THEN CASE + 37 WHEN - ( - 13 ) + 21 + 95 THEN - COUNT( * ) * 6 WHEN 22 * ( + - 35 ) * ( - - 46 ) + - 16 + + + COUNT( * ) THEN NULL ELSE NULL END ELSE NULL END ), CAST( - + 90 AS DECIMAL ) * + 36, 25 + - 41 * NULLIF ( 36, - 94 / 35 + 25 ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL + ( - CASE + 6 WHEN - + CASE + COUNT ( * ) WHEN - + 23 THEN CAST ( NULL AS INTEGER ) WHEN + 34 * - 60 THEN - ( 12 ) END * + - MAX ( DISTINCT - 60 ) * + 45 + - AVG ( DISTINCT - 38 ) * - 95 + - COUNT ( * ) * - 21 + + 25 THEN + - 94 - ( 72 ) * + + COALESCE ( - ( - CASE - 86 WHEN + 39 / - 50 THEN + 1 WHEN 28 THEN NULL WHEN 90 THEN CASE + 37 WHEN - ( - 13 ) + 21 + 95 THEN - COUNT ( * ) * 6 WHEN 22 * ( + - 35 ) * ( - - 46 ) + - 16 + + + COUNT ( * ) THEN NULL ELSE NULL END ELSE NULL END ), CAST ( - + 90 AS REAL ) * + 36, 25 + - 41 * NULLIF ( 36, - 94 / 35 + 25 ) ) END )
----
NULL

query I rowsort
SELECT + NULLIF ( - 28, - 20 ) * - 80
----
2240

onlyif mysql # aggregate syntax: 
query II rowsort label-3355
SELECT ( COUNT( * ) ) AS col0, 94
----
1
94

skipif mysql # not compatible
query II rowsort label-3355
SELECT ( COUNT ( * ) ) AS col0, 94
----
1
94

query II rowsort
SELECT - + 9 * + - 82 col0, 78 AS col0
----
738
78

query I rowsort
SELECT + 91 * - - 36 * + 34 - 97
----
111287

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT - COUNT( - + 23 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3358
SELECT - COUNT ( - + 23 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT - MAX( ALL - 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3359
SELECT - MAX ( ALL - 35 ) AS col1
----
35

query I rowsort
SELECT + - 32 - - CASE WHEN NULL IS NULL THEN 48 ELSE NULL END AS col2
----
16

query I rowsort
SELECT ALL - 21 * - 17
----
357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3362
SELECT ALL + 63 + 74 + 23 + + COUNT( * ) + ( + + SUM( 63 ) ) + - 43 + 75 * 52 + - + 25 DIV + 32 * - + 9 * 43 * + - 22 DIV + COUNT( * )
----
4081

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + 63 + 74 + 23 + + COUNT ( * ) + ( + + SUM ( 63 ) ) + - 43 + 75 * 52 + - + 25 / + 32 * - + 9 * 43 * + - 22 / + COUNT ( * )
----
4081

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3363
SELECT DISTINCT - + ( - ( - + CAST( NULL AS SIGNED ) ) ) + - 55 AS col2, - 38 AS col1
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-3363
SELECT DISTINCT - + ( - ( - + CAST ( NULL AS INTEGER ) ) ) + - 55 AS col2, - 38 AS col1
----
NULL
-38

query I rowsort
SELECT - - 82 - + 97 col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT ALL + ( - - 98 ) DIV 32 * - 75 * - ( + - 47 ) + - + 89 AS col1
----
-10664

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL + ( - - 98 ) / 32 * - 75 * - ( + - 47 ) + - + 89 AS col1
----
-10664

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT DISTINCT - 38 DIV + 52 * - 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT - 38 / + 52 * - 85 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3367
SELECT DISTINCT + 34 DIV 16 + - + MAX( ALL - 14 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT + 34 / 16 + - + MAX ( ALL - 14 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT - SUM( ALL + + NULLIF ( - 89, CASE - - 47 WHEN ( - 28 ) THEN + ( + - 91 ) WHEN + 51 THEN NULL END ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3368
SELECT - SUM ( ALL + + NULLIF ( - 89, CASE - - 47 WHEN ( - 28 ) THEN + ( + - 91 ) WHEN + 51 THEN NULL END ) ) AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3369
SELECT DISTINCT - ( - - 71 ) DIV + 42
----
-1

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT - ( - - 71 ) / + 42
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT - 92 * - - COUNT( * ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3370
SELECT - 92 * - - COUNT ( * ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT + MAX( DISTINCT - 64 ) * + COUNT( * ) * 73 - + + ( + 68 ) - + + COUNT( + 19 )
----
-4741

skipif mysql # not compatible
query I rowsort label-3371
SELECT + MAX ( DISTINCT - 64 ) * + COUNT ( * ) * 73 - + + ( + 68 ) - + + COUNT ( + 19 )
----
-4741

query I rowsort
SELECT ALL - 94 * + 63 AS col0
----
-5922

query I rowsort
SELECT ( + 78 ) AS col0
----
78

query I rowsort
SELECT DISTINCT 17 * + - 55 - 48
----
-983

query I rowsort
SELECT DISTINCT - 49 * 46 AS col2
----
-2254

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3376
SELECT ALL + COALESCE ( + COALESCE ( 87, + COUNT( * ) ), 76 ) AS col1, COUNT( * ) DIV + + 24 * + 9 AS col2
----
87
0

skipif mysql # not compatible
query II rowsort label-3376
SELECT ALL + COALESCE ( + COALESCE ( 87, + COUNT ( * ) ), 76 ) AS col1, COUNT ( * ) / + + 24 * + 9 AS col2
----
87
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3377
SELECT ALL 92 * - 56 - + - CAST( + 14 AS SIGNED )
----
-5138

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL 92 * - 56 - + - CAST ( + 14 AS INTEGER )
----
-5138

query I rowsort
SELECT ALL - 31 * + 79 AS col0
----
-2449

onlyif mysql # aggregate syntax: 
query II rowsort label-3379
SELECT DISTINCT 54 * + + COUNT( * ) - 54 col2, - COUNT( * )
----
0
-1

skipif mysql # not compatible
query II rowsort label-3379
SELECT DISTINCT 54 * + + COUNT ( * ) - 54 col2, - COUNT ( * )
----
0
-1

query I rowsort
SELECT - 2 * - 63 * + 12
----
1512

onlyif mysql # aggregate syntax: 
query II rowsort label-3381
SELECT + 8 * COUNT( + 0 ), 21 * - + 42 * + + 12 * - + COUNT( * ) + 92 AS col0
----
8
10676

skipif mysql # not compatible
query II rowsort label-3381
SELECT + 8 * COUNT ( + 0 ), 21 * - + 42 * + + 12 * - + COUNT ( * ) + 92 AS col0
----
8
10676

query I rowsort
SELECT 59 * - 69 - + + 5
----
-4076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3383
SELECT + CAST( - + 64 AS SIGNED ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-3383
SELECT + CAST ( - + 64 AS INTEGER ) AS col1
----
-64

query I rowsort
SELECT ALL + ( + + 37 ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT ALL 84 * - - COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL 84 * - - COUNT ( * ) AS col1
----
84

query I rowsort
SELECT ALL 9 * + - 19 * - - 6 + + 17
----
-1009

query I rowsort
SELECT + 66 - + 78
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT + 25 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-3388
SELECT + 25 / 88
----
0

query I rowsort
SELECT ALL - 32 * + 89 + - 87 * 14
----
-4066

query I rowsort
SELECT 96 * 36 - 1 AS col1
----
3455

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL 48 * + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL 48 * + COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT MIN( DISTINCT 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3392
SELECT MIN ( DISTINCT 19 ) AS col1
----
19

query I rowsort
SELECT + 18 + + 3
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3394
SELECT ALL 24 + MAX( 27 ) * CAST( - COALESCE ( - 94, - COUNT( * ) - COUNT( * ) ) + 18 AS SIGNED ) AS col1
----
3048

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL 24 + MAX ( 27 ) * CAST ( - COALESCE ( - 94, - COUNT ( * ) - COUNT ( * ) ) + 18 AS INTEGER ) AS col1
----
3048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3395
SELECT COUNT( * ) DIV - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3395
SELECT COUNT ( * ) / - 67 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3396
SELECT COALESCE ( - 53, 50 * + 21, 5 ) DIV MIN( ALL 78 )
----
0

skipif mysql # not compatible
query I rowsort label-3396
SELECT COALESCE ( - 53, 50 * + 21, 5 ) / MIN ( ALL 78 )
----
0

query I rowsort
SELECT ALL 77 + 52 * 35
----
1897

query I rowsort
SELECT 16 + - 86
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3399
SELECT ALL 88 + + 11 DIV - 19
----
88

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL 88 + + 11 / - 19
----
88

query I rowsort
SELECT COALESCE ( 23, - 78, 41 ) + 28
----
51

query I rowsort
SELECT 35 + - 37
----
-2

query I rowsort
SELECT ALL 41 + 31
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3403
SELECT ALL - 25 * + COALESCE ( COUNT( * ), - CAST( ( + 64 ) AS SIGNED ) * 36 + + COUNT( * ) DIV 45 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL - 25 * + COALESCE ( COUNT ( * ), - CAST ( ( + 64 ) AS INTEGER ) * 36 + + COUNT ( * ) / 45 ) AS col2
----
-25

query I rowsort
SELECT ALL + 71 + + 59
----
130

query I rowsort
SELECT 51 + 65
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT 61 + SUM( 40 ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-3406
SELECT 61 + SUM ( 40 ) AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT ALL COUNT( * ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL COUNT ( * ) - - COUNT ( * )
----
2

query I rowsort
SELECT 32 * ( + 48 ) AS col2
----
1536

query I rowsort
SELECT ALL - 26 * + 48
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT ALL - NULLIF ( - MIN( - 74 ), + MIN( 45 ) + 7 )
----
-74

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL - NULLIF ( - MIN ( - 74 ), + MIN ( 45 ) + 7 )
----
-74

query I rowsort
SELECT - 13 * - 6 + + 89 col0
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT ALL MAX( DISTINCT - 75 ) * 96
----
-7200

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL MAX ( DISTINCT - 75 ) * 96
----
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT DISTINCT - MAX( DISTINCT + 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT - MAX ( DISTINCT + 5 ) AS col2
----
-5

query I rowsort
SELECT DISTINCT NULLIF ( + 89, 48 ) * 65
----
5785

query I rowsort
SELECT 76 * 8 AS col1
----
608

onlyif mysql # DIV for integer division: 
query I rowsort label-3416
SELECT ALL + 63 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL + 63 / - 33
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3417
SELECT + 69 * CAST( NULL AS SIGNED ) + 42 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT + 69 * CAST ( NULL AS INTEGER ) + 42 col0
----
NULL

query I rowsort
SELECT 86 * 58
----
4988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3419
SELECT ALL + MIN( 66 ) DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL + MIN ( 66 ) / - 82
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3420
SELECT 66 DIV 31
----
2

skipif mysql # not compatible
query I rowsort label-3420
SELECT 66 / 31
----
2

query I rowsort
SELECT 1 + - 78
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT ALL + 64 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL + 64 / + 72
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT 11 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT 11 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3424
SELECT CAST( ( + 73 ) AS SIGNED ) * NULLIF ( NULLIF ( + ( - MAX( DISTINCT 27 ) ), - 85 - 6 * CAST( NULL AS SIGNED ) ) * - 87, + 98 ) + + 33 * 44 AS col1
----
172929

skipif mysql # not compatible
query I rowsort label-3424
SELECT CAST ( ( + 73 ) AS INTEGER ) * NULLIF ( NULLIF ( + ( - MAX ( DISTINCT 27 ) ), - 85 - 6 * CAST ( NULL AS INTEGER ) ) * - 87, + 98 ) + + 33 * 44 AS col1
----
172929

query I rowsort
SELECT DISTINCT - 91 * 10 AS col2
----
-910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT ALL - CAST( 49 AS SIGNED ) col2
----
-49

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL - CAST ( 49 AS INTEGER ) col2
----
-49

query I rowsort
SELECT ALL 43 * - 28
----
-1204

query I rowsort
SELECT 1 * 15
----
15

query I rowsort
SELECT ALL - 1 + + 99 AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT DISTINCT + 46 + + CAST( + 65 + - 23 * + 29 AS SIGNED ) col1
----
-556

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT + 46 + + CAST ( + 65 + - 23 * + 29 AS INTEGER ) col1
----
-556

query I rowsort
SELECT 89 * + 75 AS col2
----
6675

query I rowsort
SELECT 76 * + 76 + + 32
----
5808

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT - MAX( DISTINCT 88 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3433
SELECT - MAX ( DISTINCT 88 ) AS col1
----
-88

query I rowsort
SELECT ( - COALESCE ( - 75, + 20 ) ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT COUNT( ALL + 33 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3435
SELECT COUNT ( ALL + 33 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT ALL - 96 + + CAST( 42 AS SIGNED ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL - 96 + + CAST ( 42 AS INTEGER ) AS col2
----
-54

query I rowsort
SELECT CASE 4 WHEN - 65 THEN NULL ELSE + ( ( 6 ) ) * + 45 END
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT ALL + 21 + - 34 DIV - 7 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL + 21 + - 34 / - 7 AS col2
----
25

query I rowsort
SELECT 12 * 41
----
492

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT ALL 39 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL 39 / 23
----
1

query I rowsort
SELECT ALL 53 + 52 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL + - ( COUNT( * ) ) + 32
----
31

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL + - ( COUNT ( * ) ) + 32
----
31

query I rowsort
SELECT DISTINCT - 2 + - 27 AS col0
----
-29

query I rowsort
SELECT 38 + 97 * + 43 AS col0
----
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT DISTINCT COUNT( * ) * 38 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT COUNT ( * ) * 38 AS col2
----
38

query I rowsort
SELECT + 3 * + 23 AS col0
----
69

query I rowsort
SELECT 61 - - 83
----
144

query I rowsort
SELECT 7 - 30 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT COUNT( * ) * - 99 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT COUNT ( * ) * - 99 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT DISTINCT 3 * + 13 - COUNT( * ) * - 34
----
73

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT 3 * + 13 - COUNT ( * ) * - 34
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT + 65 * COUNT( * ) - - COUNT( + COALESCE ( - 74, + 6 ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3451
SELECT + 65 * COUNT ( * ) - - COUNT ( + COALESCE ( - 74, + 6 ) ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT MAX( DISTINCT 37 ) * 91
----
3367

skipif mysql # not compatible
query I rowsort label-3452
SELECT MAX ( DISTINCT 37 ) * 91
----
3367

query I rowsort
SELECT ALL 73 * + 19
----
1387

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT 11 DIV - 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3454
SELECT 11 / - 37 AS col0
----
0

query I rowsort
SELECT ( + - 28 ) * + 99 AS col0
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT CASE 67 WHEN MIN( 23 ) THEN - COALESCE ( + 82, + 43 ) ELSE MAX( ALL 61 ) + 65 END * + ( + COUNT( * ) * + COUNT( * ) ) + 70
----
196

skipif mysql # not compatible
query I rowsort label-3456
SELECT CASE 67 WHEN MIN ( 23 ) THEN - COALESCE ( + 82, + 43 ) ELSE MAX ( ALL 61 ) + 65 END * + ( + COUNT ( * ) * + COUNT ( * ) ) + 70
----
196

query I rowsort
SELECT DISTINCT 20 * + + 82 * 80 AS col1
----
131200

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ALL - CASE 44 WHEN - CASE + 89 WHEN MIN( ALL - 27 ) THEN ( + COUNT( * ) ) ELSE 30 * 85 + - NULLIF ( - 42 + 43, + 95 / 23 ) END / 42 THEN NULL WHEN 7 * + 65 + + 61 THEN - SUM( NULLIF ( 13, ( + 25 ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL - CASE 44 WHEN - CASE + 89 WHEN MIN ( ALL - 27 ) THEN ( + COUNT ( * ) ) ELSE 30 * 85 + - NULLIF ( - 42 + 43, + 95 / 23 ) END / 42 THEN NULL WHEN 7 * + 65 + + 61 THEN - SUM ( NULLIF ( 13, ( + 25 ) ) ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3459
SELECT 1 DIV 96 * 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3459
SELECT 1 / 96 * 48 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3460
SELECT ALL + 93 * - 99 DIV CAST( - COUNT( * ) AS SIGNED ) + - 42 AS col2
----
9165

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL + 93 * - 99 / CAST ( - COUNT ( * ) AS INTEGER ) + - 42 AS col2
----
9165

query I rowsort
SELECT 7 * + + 99 AS col0
----
693

query I rowsort
SELECT 81 + - + 82 AS col2
----
-1

query I rowsort
SELECT ALL - 96 + + - 6
----
-102

query I rowsort
SELECT + 89 * + - 58 + - 32
----
-5194

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT - 19 DIV - 6 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3465
SELECT - 19 / - 6 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT + + 2 * - + 80 * 22 - + COUNT( * ) * 52 AS col1
----
-3572

skipif mysql # not compatible
query I rowsort label-3466
SELECT + + 2 * - + 80 * 22 - + COUNT ( * ) * 52 AS col1
----
-3572

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT MIN( 16 ) col2
----
16

skipif mysql # not compatible
query I rowsort label-3467
SELECT MIN ( 16 ) col2
----
16

query I rowsort
SELECT ALL - + 27 + + NULLIF ( - 76, + 36 / ( - 74 ) ) * - 29 col0
----
2177

query I rowsort
SELECT - 84 + + ( 43 ) + + 12 * - 61
----
-773

query I rowsort
SELECT ALL - + 15 * - - 19 + - 81
----
-366

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT ALL + + 52 * COUNT( * ) - 22 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL + + 52 * COUNT ( * ) - 22 AS col1
----
30

query I rowsort
SELECT - 98 + + - 99 + + 67 * 54 col1
----
3421

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT ALL + + NULLIF ( + + COUNT( * ), 1 + COUNT( ALL - 96 + + 60 ) * - COUNT( * ) ) + 84
----
85

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL + + NULLIF ( + + COUNT ( * ), 1 + COUNT ( ALL - 96 + + 60 ) * - COUNT ( * ) ) + 84
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3474
SELECT DISTINCT + 42 * + COALESCE ( + 23, - MIN( ALL 35 ) DIV 0, 25 + 54 ) AS col1
----
966

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT + 42 * + COALESCE ( + 23, - MIN ( ALL 35 ) / 0, 25 + 54 ) AS col1
----
966

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL + MAX( ALL - 35 ) - - 18
----
-17

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL + MAX ( ALL - 35 ) - - 18
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3476
SELECT - + 78 - + NULLIF ( + 35, - CAST( + 95 AS SIGNED ) ) + 95 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3476
SELECT - + 78 - + NULLIF ( + 35, - CAST ( + 95 AS INTEGER ) ) + 95 AS col2
----
-18

query I rowsort
SELECT - - 9 + 79
----
88

query I rowsort
SELECT - - 4 + NULLIF ( 47, 49 ) * - ( 19 * - 26 )
----
23222

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT ALL + 98 - - COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL + 98 - - COUNT ( * ) AS col1
----
99

query I rowsort
SELECT - 73 * - 22
----
1606

query I rowsort
SELECT - - CASE - 44 WHEN - 87 + 86 / - 12 THEN - 40 WHEN + 7 THEN NULL END col2
----
NULL

query I rowsort
SELECT + 61 + - 21 * 26
----
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT + MAX( - 72 ) * COUNT( - 59 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-3483
SELECT + MAX ( - 72 ) * COUNT ( - 59 ) AS col1
----
-72

query I rowsort
SELECT DISTINCT 58 * + 34 col0
----
1972

onlyif mysql # DIV for integer division: 
query I rowsort label-3485
SELECT - 27 + - 12 DIV 34
----
-27

skipif mysql # not compatible
query I rowsort label-3485
SELECT - 27 + - 12 / 34
----
-27

query I rowsort
SELECT + + 77 * + - 19 AS col2
----
-1463

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT DISTINCT SUM( + - ( - 63 ) ) * MIN( ALL 9 ) AS col0
----
567

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT SUM ( + - ( - 63 ) ) * MIN ( ALL 9 ) AS col0
----
567

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT DISTINCT + 90 DIV 85 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT + 90 / 85 AS col0
----
1

query I rowsort
SELECT ALL ( ( + 48 ) ) col0
----
48

query II rowsort
SELECT 32 AS col1, + 20 AS col1
----
32
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT ALL 21 * - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL 21 * - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3492
SELECT - NULLIF ( - + 55, COUNT( * ) ) DIV + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3492
SELECT - NULLIF ( - + 55, COUNT ( * ) ) / + 70 AS col1
----
0

query I rowsort
SELECT DISTINCT 39 * - 92
----
-3588

query I rowsort
SELECT ALL 15 + + 73 AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3495
SELECT DISTINCT 11 DIV SUM( ALL - 80 ) + 80
----
80

skipif mysql # not compatible
query I rowsort label-3495
SELECT DISTINCT 11 / SUM ( ALL - 80 ) + 80
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3496
SELECT ( - COALESCE ( COUNT( * ), 53 DIV CASE WHEN NOT NULL BETWEEN - 26 * - 56 AND NULL THEN - 89 DIV - 47 - 96 END + 16 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3496
SELECT ( - COALESCE ( COUNT ( * ), 53 / CASE WHEN NOT NULL BETWEEN - 26 * - 56 AND NULL THEN - 89 / - 47 - 96 END + 16 ) ) AS col1
----
-1

query II rowsort
SELECT ALL + 56 AS col1, - 28 AS col0
----
56
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT + ( + ( 11 ) ) + 27 * - COUNT( COALESCE ( + ( - 34 ), + NULLIF ( + 78, - ( - 84 ) ), 31 + 4 ) + 23 )
----
-16

skipif mysql # not compatible
query I rowsort label-3498
SELECT + ( + ( 11 ) ) + 27 * - COUNT ( COALESCE ( + ( - 34 ), + NULLIF ( + 78, - ( - 84 ) ), 31 + 4 ) + 23 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT ALL 54 * + 30 + + + COUNT( * ) AS col1
----
1621

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL 54 * + 30 + + + COUNT ( * ) AS col1
----
1621

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ( - MAX( ALL + 73 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-3500
SELECT ( - MAX ( ALL + 73 ) )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL + 49 * 32 + NULLIF ( + COUNT( * ), - 31 ) * + 53
----
1621

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL + 49 * 32 + NULLIF ( + COUNT ( * ), - 31 ) * + 53
----
1621

query I rowsort
SELECT + ( + ( 91 ) ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT + ( COUNT( * ) ) * - 81 * - 96
----
7776

skipif mysql # not compatible
query I rowsort label-3503
SELECT + ( COUNT ( * ) ) * - 81 * - 96
----
7776

query I rowsort
SELECT - 22 * - ( + ( 54 ) ) + 74
----
1262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3505
SELECT + ( MAX( ALL - ( - CASE WHEN CAST( NULL AS SIGNED ) >= 61 * + 67 THEN - 94 - - 94 END ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT + ( MAX ( ALL - ( - CASE WHEN CAST ( NULL AS INTEGER ) >= 61 * + 67 THEN - 94 - - 94 END ) ) ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 59 AS col1, 18 * 90
----
59
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL - 72 * + COUNT( * ) + - ( - 12 )
----
-60

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL - 72 * + COUNT ( * ) + - ( - 12 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT + CASE - + 37 WHEN - CASE CASE + 74 WHEN - 46 - - COUNT( * ) THEN COUNT( * ) + AVG ( DISTINCT + 20 ) END WHEN 10 - - 48 THEN ( + 96 ) WHEN - COUNT( * ) THEN NULL END THEN NULL ELSE + 13 END
----
13

skipif mysql # not compatible
query I rowsort label-3508
SELECT + CASE - + 37 WHEN - CASE CASE + 74 WHEN - 46 - - COUNT ( * ) THEN COUNT ( * ) + AVG ( DISTINCT + 20 ) END WHEN 10 - - 48 THEN ( + 96 ) WHEN - COUNT ( * ) THEN NULL END THEN NULL ELSE + 13 END
----
13

query I rowsort
SELECT ALL - 22 * + + 83 + 27 + 17
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT + 7 * MAX( 21 )
----
147

skipif mysql # not compatible
query I rowsort label-3510
SELECT + 7 * MAX ( 21 )
----
147

query I rowsort
SELECT DISTINCT ( - 34 ) * + 61
----
-2074

query I rowsort
SELECT DISTINCT + + 8 AS col2
----
8

query I rowsort
SELECT - 5 + + 16
----
11

query I rowsort
SELECT ALL + COALESCE ( - 54, + - 18 ) AS col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3515
SELECT + 57 AS col0, + COUNT( ALL + - 41 ) DIV 27 AS col1
----
57
0

skipif mysql # not compatible
query II rowsort label-3515
SELECT + 57 AS col0, + COUNT ( ALL + - 41 ) / 27 AS col1
----
57
0

query I rowsort
SELECT - 18 + - 99
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT + - COUNT( * ) * - COUNT( * ) * + + ( + COALESCE ( - 68, + CASE ( 95 ) WHEN + 10 THEN - 38 WHEN - 18 THEN 86 + COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN 78 THEN NULL ELSE - 1 END, 66 + - MAX( ( - 56 ) ) * + 46 ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3517
SELECT + - COUNT ( * ) * - COUNT ( * ) * + + ( + COALESCE ( - 68, + CASE ( 95 ) WHEN + 10 THEN - 38 WHEN - 18 THEN 86 + COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN 78 THEN NULL ELSE - 1 END, 66 + - MAX ( ( - 56 ) ) * + 46 ) ) AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3518
SELECT - CASE SUM( DISTINCT + + 34 ) WHEN + 40 THEN - 31 WHEN MIN( 44 ) - 89 THEN 62 WHEN - CAST( NULL AS DECIMAL ) * 84 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3518
SELECT - CASE SUM ( DISTINCT + + 34 ) WHEN + 40 THEN - 31 WHEN MIN ( 44 ) - 89 THEN 62 WHEN - CAST ( NULL AS REAL ) * 84 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 45 * - 81 AS col1
----
3645

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT ALL - + 20 DIV + - 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL - + 20 / + - 87 AS col2
----
0

query I rowsort
SELECT ALL - 61 * + - 4 AS col1
----
244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3522
SELECT ALL + - COUNT( * ) * - - CAST( 38 AS SIGNED ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL + - COUNT ( * ) * - - CAST ( 38 AS INTEGER ) AS col0
----
-38

query I rowsort
SELECT - + 22 * 99 + - - 46 AS col0
----
-2132

onlyif mysql # aggregate syntax: 
query II rowsort label-3524
SELECT DISTINCT 20, 50 + - 24 + ( COUNT( * ) + - 41 ) AS col1
----
20
-14

skipif mysql # not compatible
query II rowsort label-3524
SELECT DISTINCT 20, 50 + - 24 + ( COUNT ( * ) + - 41 ) AS col1
----
20
-14

query I rowsort
SELECT - - 48 * + 40 * - 9 + - 38
----
-17318

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT ALL + - 16 * - 58 DIV - ( + 1 )
----
-928

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL + - 16 * - 58 / - ( + 1 )
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT + SUM( + 7 ) * - 9 - - 70
----
7

skipif mysql # not compatible
query I rowsort label-3527
SELECT + SUM ( + 7 ) * - 9 - - 70
----
7

query I rowsort
SELECT - 10 + 50 + - - CASE - - 63 WHEN COALESCE ( - 15, 47 / + 90 ) THEN 1 + 5 END + + 51 * - 96 * - 2
----
NULL

query I rowsort
SELECT DISTINCT + 86 * - 20 AS col1
----
-1720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT - CASE - 17 WHEN 72 THEN - + CAST( NULL AS SIGNED ) WHEN - 73 THEN NULL END + + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT - CASE - 17 WHEN 72 THEN - + CAST ( NULL AS INTEGER ) WHEN - 73 THEN NULL END + + 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT - COUNT( ALL + NULLIF ( - 24, + 54 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3531
SELECT - COUNT ( ALL + NULLIF ( - 24, + 54 ) ) AS col1
----
-1

query I rowsort
SELECT + 9 * 71 * + 81 AS col0
----
51759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT ALL - COUNT( * ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3534
SELECT DISTINCT - 86 + + COUNT( * ) AS col2, + 39 + 79 AS col2
----
-85
118

skipif mysql # not compatible
query II rowsort label-3534
SELECT DISTINCT - 86 + + COUNT ( * ) AS col2, + 39 + 79 AS col2
----
-85
118

query II rowsort
SELECT DISTINCT + 32 + + 26 col2, 22
----
58
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3536
SELECT ALL 68 DIV 73 col2
----
0

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL 68 / 73 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL + 14 + COUNT( * ) * + + ( MIN( + 67 ) )
----
81

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL + 14 + COUNT ( * ) * + + ( MIN ( + 67 ) )
----
81

query I rowsort
SELECT + 26 * - + ( - 69 ) * 80 AS col1
----
143520

onlyif mysql # DIV for integer division: 
query II rowsort label-3539
SELECT ALL - 42 DIV 25, 7 AS col2
----
-1
7

skipif mysql # not compatible
query II rowsort label-3539
SELECT ALL - 42 / 25, 7 AS col2
----
-1
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3540
SELECT + 43 DIV + 60 col2, - 5 * + 43 * COUNT( * ) AS col1
----
0
-215

skipif mysql # not compatible
query II rowsort label-3540
SELECT + 43 / + 60 col2, - 5 * + 43 * COUNT ( * ) AS col1
----
0
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT DISTINCT - COUNT( * ) * - + 90
----
90

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT - COUNT ( * ) * - + 90
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3542
SELECT ALL COALESCE ( 62, - 25 ) + - COUNT( * ) DIV 54 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL COALESCE ( 62, - 25 ) + - COUNT ( * ) / 54 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT ALL 84 + ( + COUNT( 70 ) ) + - 53 col0
----
32

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL 84 + ( + COUNT ( 70 ) ) + - 53 col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3544
SELECT 1 * + + 99, + COUNT( * ) col1
----
99
1

skipif mysql # not compatible
query II rowsort label-3544
SELECT 1 * + + 99, + COUNT ( * ) col1
----
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3545
SELECT 7 DIV 2 * + 44
----
132

skipif mysql # not compatible
query I rowsort label-3545
SELECT 7 / 2 * + 44
----
132

query I rowsort
SELECT ALL 6 - + 84 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT - MAX( DISTINCT 77 ) * 49 * + - 36 AS col0
----
135828

skipif mysql # not compatible
query I rowsort label-3547
SELECT - MAX ( DISTINCT 77 ) * 49 * + - 36 AS col0
----
135828

query I rowsort
SELECT ALL - ( + 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT - SUM( DISTINCT + - 22 ) * + ( - + 22 ) + 52
----
-432

skipif mysql # not compatible
query I rowsort label-3549
SELECT - SUM ( DISTINCT + - 22 ) * + ( - + 22 ) + 52
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3550
SELECT + 39 - + 99 * - 31 * CAST( NULL AS SIGNED ) + 10 / - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT + 39 - + 99 * - 31 * CAST ( NULL AS INTEGER ) + 10 / - 28 AS col1
----
NULL

query I rowsort
SELECT ALL 52 * + 86 * + 83 - + ( 88 ) + 72 * 40
----
373968

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT + MIN( ALL - 16 ) + + 61 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3552
SELECT + MIN ( ALL - 16 ) + + 61 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT DISTINCT + 88 * COUNT( * ) * + + ( - CASE + 89 WHEN + 71 THEN + 12 ELSE NULL END ) + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT + 88 * COUNT ( * ) * + + ( - CASE + 89 WHEN + 71 THEN + 12 ELSE NULL END ) + + 47
----
NULL

query I rowsort
SELECT 36 + + 72 col1
----
108

query I rowsort
SELECT DISTINCT + 38 + - 97
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3556
SELECT 95 + ( CASE ( 28 ) WHEN 73 * - 11 - MAX( ALL + 91 + 0 / CAST( NULL AS SIGNED ) ) THEN - 92 WHEN CASE 99 WHEN - 8 THEN - 9 * - 11 ELSE 69 * + 59 + ( - 23 ) END - + COUNT( * ) * ( 53 + CASE 12 WHEN - 62 THEN NULL ELSE - CAST( - 80 AS SIGNED ) END / 61 ) THEN NULL END ) / + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3556
SELECT 95 + ( CASE ( 28 ) WHEN 73 * - 11 - MAX ( ALL + 91 + 0 / CAST ( NULL AS INTEGER ) ) THEN - 92 WHEN CASE 99 WHEN - 8 THEN - 9 * - 11 ELSE 69 * + 59 + ( - 23 ) END - + COUNT ( * ) * ( 53 + CASE 12 WHEN - 62 THEN NULL ELSE - CAST ( - 80 AS INTEGER ) END / 61 ) THEN NULL END ) / + 51
----
NULL

query I rowsort
SELECT ALL 98 + - 77
----
21

query I rowsort
SELECT 5 + + + 80 + - 88
----
-3

query I rowsort
SELECT ALL - 18 + - + ( - 89 ) * 16 - - 62 AS col2
----
1468

query I rowsort
SELECT ALL 62 + + ( ( + CASE WHEN ( + 13 ) BETWEEN 75 - - 40 AND + 16 THEN + 11 ELSE NULL END ) ) + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT - 55 * + - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT - 55 * + - COUNT ( * )
----
55

query I rowsort
SELECT 95 + - 87
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL - COUNT( * ) + 97 + 53 * + 22 + - + 61 AS col0
----
1201

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL - COUNT ( * ) + 97 + 53 * + 22 + - + 61 AS col0
----
1201

onlyif mysql # DIV for integer division: 
query II rowsort label-3564
SELECT ( + 74 ) + + + 6 AS col0, + ( 76 ) DIV - 10
----
80
-7

skipif mysql # not compatible
query II rowsort label-3564
SELECT ( + 74 ) + + + 6 AS col0, + ( 76 ) / - 10
----
80
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT 85 * - SUM( - 61 )
----
5185

skipif mysql # not compatible
query I rowsort label-3565
SELECT 85 * - SUM ( - 61 )
----
5185

query I rowsort
SELECT 20 + 39
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT 30 + + COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3567
SELECT 30 + + COUNT ( * ) AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3568
SELECT ALL + CASE - MAX( 54 ) WHEN + 40 THEN - 85 END - NULLIF ( NULLIF ( + 56, 11 * CAST( NULL AS SIGNED ) ) + 12, + 58 ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL + CASE - MAX ( 54 ) WHEN + 40 THEN - 85 END - NULLIF ( NULLIF ( + 56, 11 * CAST ( NULL AS INTEGER ) ) + 12, + 58 ) * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 7 + 80 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT 10 * + COUNT( ALL + 50 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3570
SELECT 10 * + COUNT ( ALL + 50 ) AS col1
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3571
SELECT 74 DIV 84 + + 12 + - COUNT( * ) * + - 22 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-3571
SELECT 74 / 84 + + 12 + - COUNT ( * ) * + - 22 AS col2
----
34

query I rowsort
SELECT 26 + 88 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT 10 + + MIN( - + 38 ) * - ( - - NULLIF ( - COUNT( * ), 57 * MAX( DISTINCT 47 ) ) ) * 86 AS col0
----
-3258

skipif mysql # not compatible
query I rowsort label-3573
SELECT 10 + + MIN ( - + 38 ) * - ( - - NULLIF ( - COUNT ( * ), 57 * MAX ( DISTINCT 47 ) ) ) * 86 AS col0
----
-3258

query I rowsort
SELECT DISTINCT - + 79 * 14 * - + 79 * - ( - + 98 ) + + 64 AS col2
----
8562716

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT 59 * COALESCE ( - + 85, + - MIN( 35 ) * COUNT( * ) - ( ( + 43 ) - + 2 ) )
----
-5015

skipif mysql # not compatible
query I rowsort label-3575
SELECT 59 * COALESCE ( - + 85, + - MIN ( 35 ) * COUNT ( * ) - ( ( + 43 ) - + 2 ) )
----
-5015

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT 16 DIV + ( - 87 ) + - 68
----
-68

skipif mysql # not compatible
query I rowsort label-3576
SELECT 16 / + ( - 87 ) + - 68
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL - + MAX( - 44 ) * 75 * COUNT( * ) * + ( 11 ) col1
----
36300

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL - + MAX ( - 44 ) * 75 * COUNT ( * ) * + ( 11 ) col1
----
36300

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT + + NULLIF ( - COUNT( * ), 0 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3578
SELECT + + NULLIF ( - COUNT ( * ), 0 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3579
SELECT CAST( NULL AS SIGNED ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3579
SELECT CAST ( NULL AS INTEGER ) + - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT 82 * + COUNT( * ) + 37 + COUNT( * )
----
120

skipif mysql # not compatible
query I rowsort label-3580
SELECT 82 * + COUNT ( * ) + 37 + COUNT ( * )
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-3581
SELECT - 4, ( + + MIN( DISTINCT + 39 ) ) + 30 AS col1
----
-4
69

skipif mysql # not compatible
query II rowsort label-3581
SELECT - 4, ( + + MIN ( DISTINCT + 39 ) ) + 30 AS col1
----
-4
69

query III rowsort
SELECT ALL - + 20 AS col2, 13 + - 15 AS col1, + + 43 + + + 95 * 82 AS col1
----
-20
-2
7833

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT ALL 24 DIV + 9
----
2

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL 24 / + 9
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3584
SELECT - 54 AS col2, ( ( MAX( 15 ) ) ) * CAST( - COALESCE ( - MAX( CAST( NULL AS SIGNED ) ), + 63 ) * NULLIF ( CASE + COUNT( * ) WHEN - 65 THEN NULL WHEN - 36 * 53 THEN NULL WHEN 65 THEN + 8 + - ( + 16 + 75 ) END, + 94 * - COUNT( * ) + + 7 ) AS DECIMAL ) + + 51 col0
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-3584
SELECT - 54 AS col2, ( ( MAX ( 15 ) ) ) * CAST ( - COALESCE ( - MAX ( CAST ( NULL AS INTEGER ) ), + 63 ) * NULLIF ( CASE + COUNT ( * ) WHEN - 65 THEN NULL WHEN - 36 * 53 THEN NULL WHEN 65 THEN + 8 + - ( + 16 + 75 ) END, + 94 * - COUNT ( * ) + + 7 ) AS REAL ) + + 51 col0
----
-54
NULL

query I rowsort
SELECT ALL + - 61 + 89 AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT 7 * CAST( NULL AS SIGNED ) * + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT 7 * CAST ( NULL AS INTEGER ) * + - 19
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3587
SELECT ALL - CAST( NULL AS SIGNED ) + + ( - - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL - CAST ( NULL AS INTEGER ) + + ( - - 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT + MAX( ALL - 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3588
SELECT + MAX ( ALL - 83 ) AS col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT + ( + - CAST( 73 AS SIGNED ) ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-3589
SELECT + ( + - CAST ( 73 AS INTEGER ) ) AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3590
SELECT - + CAST( + 76 AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-3590
SELECT - + CAST ( + 76 AS INTEGER ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT - 69 - - ( + + ( + - COALESCE ( - + COUNT( * ), 16 + 82 ) ) ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-3591
SELECT - 69 - - ( + + ( + - COALESCE ( - + COUNT ( * ), 16 + 82 ) ) ) AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3592
SELECT COUNT( * ) * + + CASE 54 WHEN - 54 THEN NULL ELSE + 13 * - + NULLIF ( CAST( - 77 AS SIGNED ), CASE COUNT( * ) WHEN 31 + + 74 THEN NULL WHEN NULLIF ( + 84, 12 + - 73 * CAST( NULL AS SIGNED ) ) - + CASE CASE + CAST( NULL AS SIGNED ) WHEN + 3 THEN NULL ELSE CAST( NULL AS SIGNED ) END + COUNT( + 25 ) WHEN 63 + 67 / + 10 THEN ( - 17 ) + - 96 ELSE + 89 END THEN 76 - 33 END ) END AS col0
----
1001

skipif mysql # not compatible
query I rowsort label-3592
SELECT COUNT ( * ) * + + CASE 54 WHEN - 54 THEN NULL ELSE + 13 * - + NULLIF ( CAST ( - 77 AS INTEGER ), CASE COUNT ( * ) WHEN 31 + + 74 THEN NULL WHEN NULLIF ( + 84, 12 + - 73 * CAST ( NULL AS INTEGER ) ) - + CASE CASE + CAST ( NULL AS INTEGER ) WHEN + 3 THEN NULL ELSE CAST ( NULL AS INTEGER ) END + COUNT ( + 25 ) WHEN 63 + 67 / + 10 THEN ( - 17 ) + - 96 ELSE + 89 END THEN 76 - 33 END ) END AS col0
----
1001

query I rowsort
SELECT 76 * - + 0
----
0

query I rowsort
SELECT ALL 92 * 17
----
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT - COUNT( DISTINCT + - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-3595
SELECT - COUNT ( DISTINCT + - 8 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3596
SELECT MAX( ALL - 91 ) DIV + 35 + + ( - - 5 )
----
3

skipif mysql # not compatible
query I rowsort label-3596
SELECT MAX ( ALL - 91 ) / + 35 + + ( - - 5 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT COUNT( * ) * + + 10 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3597
SELECT COUNT ( * ) * + + 10 AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3598
SELECT ALL 56 * CAST( 74 AS SIGNED ) DIV ( - + 37 ) - - + 97 * - 74
----
-7290

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL 56 * CAST ( 74 AS INTEGER ) / ( - + 37 ) - - + 97 * - 74
----
-7290

onlyif mysql # aggregate syntax: 
query II rowsort label-3599
SELECT - COUNT( * ) AS col2, 50 + + 49 * + + 6 AS col2
----
-1
344

skipif mysql # not compatible
query II rowsort label-3599
SELECT - COUNT ( * ) AS col2, 50 + + 49 * + + 6 AS col2
----
-1
344

onlyif mysql # DIV for integer division: 
query II rowsort label-3600
SELECT + 3 DIV + + 38, + 30 * 2 AS col2
----
0
60

skipif mysql # not compatible
query II rowsort label-3600
SELECT + 3 / + + 38, + 30 * 2 AS col2
----
0
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT + COALESCE ( + COUNT( * ), - ( - 65 ) + + ( + 31 ), 24 - 21 ) * + 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3601
SELECT + COALESCE ( + COUNT ( * ), - ( - 65 ) + + ( + 31 ), 24 - 21 ) * + 60 AS col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3602
SELECT DISTINCT COALESCE ( 79, + - 74 * - COUNT( * ), - ( - 55 ) DIV - 61 ) DIV 19 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT COALESCE ( 79, + - 74 * - COUNT ( * ), - ( - 55 ) / - 61 ) / 19 AS col2
----
4

query II rowsort
SELECT ALL 17 AS col0, 69 * - COALESCE ( + 33, 60 + 60 )
----
17
-2277

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT + 67 - CASE + 61 WHEN - + 2 THEN COUNT( * ) WHEN - COUNT( * ) * 55 THEN - 37 + 78 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT + 67 - CASE + 61 WHEN - + 2 THEN COUNT ( * ) WHEN - COUNT ( * ) * 55 THEN - 37 + 78 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3605
SELECT 91 AS col1, 1 * + CASE - 65 WHEN + 47 THEN NULL WHEN - MAX( ALL - 93 ) - - 13 THEN ( COUNT( * ) ) * COUNT( * ) + + 64 WHEN + ( 13 ) * 40 THEN - 95 + 11 / - COUNT( * ) ELSE NULL END + - 11 AS col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-3605
SELECT 91 AS col1, 1 * + CASE - 65 WHEN + 47 THEN NULL WHEN - MAX ( ALL - 93 ) - - 13 THEN ( COUNT ( * ) ) * COUNT ( * ) + + 64 WHEN + ( 13 ) * 40 THEN - 95 + 11 / - COUNT ( * ) ELSE NULL END + - 11 AS col2
----
91
NULL

query I rowsort
SELECT + 43 + + + 36
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL 49 - - - CASE - 46 WHEN 39 THEN + 41 - + MAX( DISTINCT 68 ) * + CAST( NULL AS SIGNED ) END - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL 49 - - - CASE - 46 WHEN 39 THEN + 41 - + MAX ( DISTINCT 68 ) * + CAST ( NULL AS INTEGER ) END - 67
----
NULL

query I rowsort
SELECT DISTINCT - ( + 26 ) * 14
----
-364

query I rowsort
SELECT ALL + 52 - - ( - - 97 )
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT - COUNT( * ) / CASE - 8 WHEN - 29 THEN + 48 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT - COUNT ( * ) / CASE - 8 WHEN - 29 THEN + 48 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT ALL ( COUNT( DISTINCT + CASE 99 WHEN - + 61 THEN - 41 WHEN + 95 + 86 * 72 THEN - 95 ELSE - ( + 94 ) END ) ) * + 12
----
12

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL ( COUNT ( DISTINCT + CASE 99 WHEN - + 61 THEN - 41 WHEN + 95 + 86 * 72 THEN - 95 ELSE - ( + 94 ) END ) ) * + 12
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3612
SELECT - - ( 28 ) * - 88 * COUNT( * ) + + + COUNT( * ) - - NULLIF ( 72, 82 ) DIV ( - COUNT( * ) ) AS col1
----
-2535

skipif mysql # not compatible
query I rowsort label-3612
SELECT - - ( 28 ) * - 88 * COUNT ( * ) + + + COUNT ( * ) - - NULLIF ( 72, 82 ) / ( - COUNT ( * ) ) AS col1
----
-2535

query I rowsort
SELECT DISTINCT - 15 * - 36 AS col1
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT - 28 * - MAX( DISTINCT 4 ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-3614
SELECT - 28 * - MAX ( DISTINCT 4 ) AS col2
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-3615
SELECT COUNT( * ) AS col1, 47
----
1
47

skipif mysql # not compatible
query II rowsort label-3615
SELECT COUNT ( * ) AS col1, 47
----
1
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT - 30 * 20 + + - ( ( + COUNT( * ) ) ) + + 93 * + 15
----
794

skipif mysql # not compatible
query I rowsort label-3616
SELECT - 30 * 20 + + - ( ( + COUNT ( * ) ) ) + + 93 * + 15
----
794

query II rowsort
SELECT DISTINCT + 37 col0, + 62 AS col2
----
37
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL - 19 * + MAX( ALL 50 ) + + + 13 * + 25 * + 43
----
13025

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL - 19 * + MAX ( ALL 50 ) + + + 13 * + 25 * + 43
----
13025

query I rowsort
SELECT ALL - 69 * + ( + + 84 ) + 26 AS col0
----
-5770

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT + - 4 * + - COUNT( * ) + + 29
----
33

skipif mysql # not compatible
query I rowsort label-3620
SELECT + - 4 * + - COUNT ( * ) + + 29
----
33

query I rowsort
SELECT - 1 * - 95
----
95

query II rowsort
SELECT + 83 AS col1, - 23
----
83
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT - 67 + + COALESCE ( 40, + - ( + + 49 ) ) + - - 70 + COALESCE ( 3 + + ( + 73 + COUNT( * ) ), - 29 + 77, 98 )
----
120

skipif mysql # not compatible
query I rowsort label-3623
SELECT - 67 + + COALESCE ( 40, + - ( + + 49 ) ) + - - 70 + COALESCE ( 3 + + ( + 73 + COUNT ( * ) ), - 29 + 77, 98 )
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT ALL COUNT( * ) * + - COUNT( * ) + - + COUNT( * ) + COUNT( * ) * - CAST( 67 AS SIGNED ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL COUNT ( * ) * + - COUNT ( * ) + - + COUNT ( * ) + COUNT ( * ) * - CAST ( 67 AS INTEGER ) AS col2
----
-69

query I rowsort
SELECT DISTINCT - 73 * - - 91 AS col1
----
-6643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3626
SELECT ALL - ( - CAST( COUNT( * ) AS SIGNED ) ) * + 82 - + 29 + - + 34 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL - ( - CAST ( COUNT ( * ) AS INTEGER ) ) * + 82 - + 29 + - + 34 AS col1
----
19

query I rowsort
SELECT + 51 * 31 AS col0
----
1581

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3628
SELECT DISTINCT ( 27 ) DIV + + COUNT( * ) col2
----
27

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT ( 27 ) / + + COUNT ( * ) col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT DISTINCT + COUNT( * ) - + 90 * + 81 AS col0
----
-7289

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + COUNT ( * ) - + 90 * + 81 AS col0
----
-7289

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT ALL 9 - + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL 9 - + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT - COUNT( DISTINCT + + 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-3631
SELECT - COUNT ( DISTINCT + + 44 )
----
-1

query I rowsort
SELECT + 79 + 14
----
93

query I rowsort
SELECT + 97 * 4 * - ( + ( 25 ) )
----
-9700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3634
SELECT ALL NULLIF ( 37, + + ( - NULLIF ( - 44, + 58 + 5 ) ) * CAST( NULL AS SIGNED ) ) * 8 AS col1
----
296

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL NULLIF ( 37, + + ( - NULLIF ( - 44, + 58 + 5 ) ) * CAST ( NULL AS INTEGER ) ) * 8 AS col1
----
296

query I rowsort
SELECT + 67 + + 54
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3636
SELECT - NULLIF ( 8, - - ( + + CAST( NULL AS SIGNED ) ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3636
SELECT - NULLIF ( 8, - - ( + + CAST ( NULL AS INTEGER ) ) ) AS col0
----
-8

query I rowsort
SELECT ALL ( - 34 ) * + 55 AS col1
----
-1870

query I rowsort
SELECT + 61 * 82
----
5002

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3639
SELECT DISTINCT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1, - 34 DIV 78 col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3639
SELECT DISTINCT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1, - 34 / 78 col1
----
NULL
0

query I rowsort
SELECT ALL ( 10 ) * 8
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT + 25 * + ( + - 76 ) * + NULLIF ( 97, + COUNT( ALL - ( 9 ) ) * 28 ) * + ( - 54 * 48 ) + + 96
----
477705696

skipif mysql # not compatible
query I rowsort label-3641
SELECT + 25 * + ( + - 76 ) * + NULLIF ( 97, + COUNT ( ALL - ( 9 ) ) * 28 ) * + ( - 54 * 48 ) + + 96
----
477705696

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT + NULLIF ( 40, + + MAX( DISTINCT - 60 ) * - COUNT( * ) * + 29 ) * - + 37
----
-1480

skipif mysql # not compatible
query I rowsort label-3642
SELECT + NULLIF ( 40, + + MAX ( DISTINCT - 60 ) * - COUNT ( * ) * + 29 ) * - + 37
----
-1480

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3643
SELECT DISTINCT + MAX( + 78 ) col2, 21 DIV 47
----
78
0

skipif mysql # not compatible
query II rowsort label-3643
SELECT DISTINCT + MAX ( + 78 ) col2, 21 / 47
----
78
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3644
SELECT - CAST( - COUNT( * ) AS SIGNED ) DIV - 74 + + 70 * - 13
----
-910

skipif mysql # not compatible
query I rowsort label-3644
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) / - 74 + + 70 * - 13
----
-910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3645
SELECT ALL - 94 + - CAST( NULL AS SIGNED ) AS col0, + 62 + 13 * + 71 * + CAST( COUNT( * ) AS SIGNED ) AS col0
----
NULL
985

skipif mysql # not compatible
query II rowsort label-3645
SELECT ALL - 94 + - CAST ( NULL AS INTEGER ) AS col0, + 62 + 13 * + 71 * + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
NULL
985

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT + - 89 + ( - + ( 60 ) ) * + + COUNT( * ) * - 55 * + + 8 AS col2
----
26311

skipif mysql # not compatible
query I rowsort label-3646
SELECT + - 89 + ( - + ( 60 ) ) * + + COUNT ( * ) * - 55 * + + 8 AS col2
----
26311

query I rowsort
SELECT DISTINCT ( 47 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT - 65 / - + CASE + + AVG ( 25 ) WHEN + 2 THEN - + 15 WHEN - COUNT( * ) THEN + 87 + - 70 * MAX( DISTINCT + 62 / - 1 ) ELSE NULL END * + 32 + + MIN( 96 + 69 ) * + 34 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT - 65 / - + CASE + + AVG ( 25 ) WHEN + 2 THEN - + 15 WHEN - COUNT ( * ) THEN + 87 + - 70 * MAX ( DISTINCT + 62 / - 1 ) ELSE NULL END * + 32 + + MIN ( 96 + 69 ) * + 34 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3649
SELECT + 40 * - + CAST( NULL AS SIGNED ) + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT + 40 * - + CAST ( NULL AS INTEGER ) + - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL - 44 * - - CASE 89 WHEN + 33 THEN + 3 * 20 WHEN - + ( + SUM( 5 ) ) - - 88 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL - 44 * - - CASE 89 WHEN + 33 THEN + 3 * 20 WHEN - + ( + SUM ( 5 ) ) - - 88 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3651
SELECT ALL + 22 DIV - 51 + + - 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL + 22 / - 51 + + - 40 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT - MIN( ALL - + 87 ) + + + 97 * + 92 - - 91
----
9102

skipif mysql # not compatible
query I rowsort label-3652
SELECT - MIN ( ALL - + 87 ) + + + 97 * + 92 - - 91
----
9102

query I rowsort
SELECT + ( + 30 ) * + + 80 + - + 46
----
2354

query I rowsort
SELECT + - 87 * + 99 + 21
----
-8592

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3655
SELECT ALL 25 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL 25 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT DISTINCT - MAX( ALL 58 ) * NULLIF ( SUM( ALL 88 ), - NULLIF ( - 34, 80 + 58 ) ) + + 75 AS col0
----
-5029

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT - MAX ( ALL 58 ) * NULLIF ( SUM ( ALL 88 ), - NULLIF ( - 34, 80 + 58 ) ) + + 75 AS col0
----
-5029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3657
SELECT ALL + 42 * + COUNT( * ) + + 80 + - NULLIF ( + + CASE WHEN NULL IS NOT NULL THEN NULL WHEN NOT NULL < 89 THEN COUNT( * ) + 60 END, - 73 ) + + CAST( + 37 + SUM( - 62 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + 42 * + COUNT ( * ) + + 80 + - NULLIF ( + + CASE WHEN NULL IS NOT NULL THEN NULL WHEN NOT NULL < 89 THEN COUNT ( * ) + 60 END, - 73 ) + + CAST ( + 37 + SUM ( - 62 ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 96 * - + 96
----
-9216

query I rowsort
SELECT ALL + 87 * 4
----
348

query I rowsort
SELECT 11 * ( - 94 )
----
-1034

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3661
SELECT ALL + 14 DIV 99 * - CAST( ( - 30 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL + 14 / 99 * - CAST ( ( - 30 ) AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT 94 * + 74 * + SUM( DISTINCT - 35 )
----
-243460

skipif mysql # not compatible
query I rowsort label-3662
SELECT 94 * + 74 * + SUM ( DISTINCT - 35 )
----
-243460

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3663
SELECT 1 - 4 * 13, CAST( NULL AS SIGNED ) AS col0
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-3663
SELECT 1 - 4 * 13, CAST ( NULL AS INTEGER ) AS col0
----
-51
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3664
SELECT 36 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT 36 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3665
SELECT ALL + COALESCE ( - + 71, + - 64 ) * - COALESCE ( + 91, - 90 + - + COUNT( * ) ) DIV CAST( + 1 AS SIGNED )
----
6461

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL + COALESCE ( - + 71, + - 64 ) * - COALESCE ( + 91, - 90 + - + COUNT ( * ) ) / CAST ( + 1 AS INTEGER )
----
6461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT DISTINCT - 97 * + 42 * + - NULLIF ( + + CASE 0 WHEN + 47 THEN NULL ELSE + + COUNT( * ) END, MIN( + CAST( NULL AS SIGNED ) ) + - 19 )
----
4074

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT - 97 * + 42 * + - NULLIF ( + + CASE 0 WHEN + 47 THEN NULL ELSE + + COUNT ( * ) END, MIN ( + CAST ( NULL AS INTEGER ) ) + - 19 )
----
4074

query II rowsort
SELECT DISTINCT 62 AS col0, - 42 + - 94 AS col2
----
62
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-3668
SELECT 26 DIV - 5
----
-5

skipif mysql # not compatible
query I rowsort label-3668
SELECT 26 / - 5
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT DISTINCT - MAX( + + 15 ) * - 28 * 65 - - - COUNT( * ) AS col1
----
27299

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT - MAX ( + + 15 ) * - 28 * 65 - - - COUNT ( * ) AS col1
----
27299

onlyif mysql # aggregate syntax: 
query II rowsort label-3670
SELECT COUNT( * ) * 27 * 94 AS col0, 94
----
2538
94

skipif mysql # not compatible
query II rowsort label-3670
SELECT COUNT ( * ) * 27 * 94 AS col0, 94
----
2538
94

query I rowsort
SELECT 10 + 63 AS col0
----
73

query I rowsort
SELECT 45 - 31 AS col1
----
14

query II rowsort
SELECT - 77 AS col0, + ( 15 )
----
-77
15

query II rowsort
SELECT DISTINCT 30 AS col0, 7
----
30
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3675
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 14 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT CAST ( NULL AS REAL ) + 14 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT - + SUM( 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-3676
SELECT - + SUM ( 46 )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3677
SELECT CAST( ( - - 51 ) AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3677
SELECT CAST ( ( - - 51 ) AS INTEGER ) AS col1
----
51

query I rowsort
SELECT DISTINCT - 96 + - 44
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT + 24 + + - 81 * - 25 + + + 54 * + 20 - - COUNT( ALL + 43 ) + 46 * 8 * 60 AS col1
----
25210

skipif mysql # not compatible
query I rowsort label-3679
SELECT + 24 + + - 81 * - 25 + + + 54 * + 20 - - COUNT ( ALL + 43 ) + 46 * 8 * 60 AS col1
----
25210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3680
SELECT ALL CAST( - SUM( DISTINCT 92 ) AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL CAST ( - SUM ( DISTINCT 92 ) AS INTEGER )
----
-92

query I rowsort
SELECT DISTINCT + 15 + + 53 * - + 21
----
-1098

query I rowsort
SELECT ALL + 4 + + + 41
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT ALL COUNT( - - 62 ) + - 70 * - + COUNT( * ) + + COALESCE ( + 80, ( - 34 ) * + COUNT( * ) ) - + 49 * - 33
----
1768

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL COUNT ( - - 62 ) + - 70 * - + COUNT ( * ) + + COALESCE ( + 80, ( - 34 ) * + COUNT ( * ) ) - + 49 * - 33
----
1768

query I rowsort
SELECT + 56 * - 13 * + COALESCE ( - 79, + 89 * + 85 + + 95 ) AS col2
----
57512

query II rowsort
SELECT DISTINCT - - 48 AS col2, 66
----
48
66

query I rowsort
SELECT DISTINCT - 89 - + - 60 + - - 44 col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3687
SELECT + CASE + 34 WHEN - CASE + + COUNT( * ) WHEN + 35 THEN NULL WHEN + + 62 THEN 69 * - - 21 * + 25 ELSE NULL END - - 76 * COALESCE ( 7, 39 * ( 15 DIV + CASE 62 WHEN CAST( NULL AS SIGNED ) THEN - 28 WHEN 49 * 81 THEN + 71 WHEN ( - 83 ) THEN NULL END ) ) THEN NULL ELSE COUNT( * ) * ( 52 DIV - CAST( - 41 AS SIGNED ) ) + CAST( 89 + + MAX( ALL + 87 ) AS SIGNED ) END
----
177

skipif mysql # not compatible
query I rowsort label-3687
SELECT + CASE + 34 WHEN - CASE + + COUNT ( * ) WHEN + 35 THEN NULL WHEN + + 62 THEN 69 * - - 21 * + 25 ELSE NULL END - - 76 * COALESCE ( 7, 39 * ( 15 / + CASE 62 WHEN CAST ( NULL AS INTEGER ) THEN - 28 WHEN 49 * 81 THEN + 71 WHEN ( - 83 ) THEN NULL END ) ) THEN NULL ELSE COUNT ( * ) * ( 52 / - CAST ( - 41 AS INTEGER ) ) + CAST ( 89 + + MAX ( ALL + 87 ) AS INTEGER ) END
----
177

query II rowsort
SELECT + 29, + 96 AS col2
----
29
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT - + COUNT( * ) * - + 58 - ( 8 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3689
SELECT - + COUNT ( * ) * - + 58 - ( 8 ) AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3690
SELECT - 16 + + COUNT( * ) - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT - 16 + + COUNT ( * ) - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3691
SELECT CAST( + 21 AS SIGNED ) * + - 53 + - ( - 82 ), 25 * 13 col2, + 17 AS col1
----
-1031
325
17

skipif mysql # not compatible
query III rowsort label-3691
SELECT CAST ( + 21 AS INTEGER ) * + - 53 + - ( - 82 ), 25 * 13 col2, + 17 AS col1
----
-1031
325
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT DISTINCT ( - 70 ) * SUM( DISTINCT 6 ) * COUNT( * ) * + 69 + - ( + + 93 ) * - 69 + - 10 AS col1
----
-22573

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT ( - 70 ) * SUM ( DISTINCT 6 ) * COUNT ( * ) * + 69 + - ( + + 93 ) * - 69 + - 10 AS col1
----
-22573

query I rowsort
SELECT 19 * - + COALESCE ( + 57, - 92 ) + + 95
----
-988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3694
SELECT 39 * - + CAST( 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3694
SELECT 39 * - + CAST ( 0 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT 10 + COUNT( * ) + + 68 * 26 * + + 68 - - 28
----
120263

skipif mysql # not compatible
query I rowsort label-3695
SELECT 10 + COUNT ( * ) + + 68 * 26 * + + 68 - - 28
----
120263

query I rowsort
SELECT DISTINCT 91 * 16 AS col2
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT 29 * COUNT( * ) + + 31 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3697
SELECT 29 * COUNT ( * ) + + 31 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT DISTINCT - 47 * - COUNT( * ) * - - 82 AS col1
----
3854

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT - 47 * - COUNT ( * ) * - - 82 AS col1
----
3854

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT 55 + 71 DIV + 33
----
57

skipif mysql # not compatible
query I rowsort label-3699
SELECT 55 + 71 / + 33
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT DISTINCT - 48 + + ( - - SUM( ALL 27 ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT - 48 + + ( - - SUM ( ALL 27 ) ) AS col1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3701
SELECT ALL + 93 + - 30 * - - 12 DIV 1 AS col2
----
-267

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL + 93 + - 30 * - - 12 / 1 AS col2
----
-267

query I rowsort
SELECT 45 * + - 56
----
-2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3703
SELECT - COALESCE ( + - 2, + 1 + + CASE - + 56 WHEN + COALESCE ( + ( + 46 ), + 82, + 57 ) THEN 83 ELSE NULL END + + ( + ( CAST( - 26 AS SIGNED ) ) + + MIN( DISTINCT 57 - 68 ) ) DIV 81 * + CASE - 56 + CASE 5 WHEN + COUNT( * ) DIV COUNT( * ) + + 9 THEN + 81 WHEN COUNT( * ) - 99 * + SUM( DISTINCT + 96 ) THEN NULL WHEN - 40 + 54 * 90 THEN COUNT( ALL + 93 ) * COUNT( * ) ELSE - ( + 93 ) * 88 + - COUNT( * ) END WHEN 1 DIV 65 + - 12 THEN - 69 * 69 END, - COUNT( * ) ) DIV CAST( + 2 + - 84 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3703
SELECT - COALESCE ( + - 2, + 1 + + CASE - + 56 WHEN + COALESCE ( + ( + 46 ), + 82, + 57 ) THEN 83 ELSE NULL END + + ( + ( CAST ( - 26 AS INTEGER ) ) + + MIN ( DISTINCT 57 - 68 ) ) / 81 * + CASE - 56 + CASE 5 WHEN + COUNT ( * ) / COUNT ( * ) + + 9 THEN + 81 WHEN COUNT ( * ) - 99 * + SUM ( DISTINCT + 96 ) THEN NULL WHEN - 40 + 54 * 90 THEN COUNT ( ALL + 93 ) * COUNT ( * ) ELSE - ( + 93 ) * 88 + - COUNT ( * ) END WHEN 1 / 65 + - 12 THEN - 69 * 69 END, - COUNT ( * ) ) / CAST ( + 2 + - 84 AS INTEGER ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT DISTINCT + + CAST( - 12 AS SIGNED ) * + 76 AS col2
----
-912

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT + + CAST ( - 12 AS INTEGER ) * + 76 AS col2
----
-912

query I rowsort
SELECT + 70 + + 63 AS col0
----
133

query II rowsort
SELECT - COALESCE ( - ( + + 65 ), - 7 ), - 24 AS col2
----
65
-24

query I rowsort
SELECT + NULLIF ( + 74, + + 31 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3708
SELECT - 20 + - 66 AS col1, ( + CASE - ( + 4 ) WHEN - COUNT( * ) * CAST( NULL AS SIGNED ) + 33 / CAST( NULL AS SIGNED ) + 24 THEN - 25 * - 65 WHEN 33 THEN NULL END ) * - COUNT( * ) AS col1
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-3708
SELECT - 20 + - 66 AS col1, ( + CASE - ( + 4 ) WHEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) + 33 / CAST ( NULL AS INTEGER ) + 24 THEN - 25 * - 65 WHEN 33 THEN NULL END ) * - COUNT ( * ) AS col1
----
-86
NULL

query I rowsort
SELECT DISTINCT 59 * + ( + 7 )
----
413

query I rowsort
SELECT DISTINCT - 99 * - 14 - - 53
----
1439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT + CAST( + SUM( 74 ) AS SIGNED ) * - 58
----
-4292

skipif mysql # not compatible
query I rowsort label-3711
SELECT + CAST ( + SUM ( 74 ) AS INTEGER ) * - 58
----
-4292

query I rowsort
SELECT ALL + 66 * - ( - + 64 ) * + ( + + ( - + 39 ) ) AS col0
----
-164736

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT 55 * - 38 + + COUNT( - - 72 ) * 5 AS col2
----
-2085

skipif mysql # not compatible
query I rowsort label-3713
SELECT 55 * - 38 + + COUNT ( - - 72 ) * 5 AS col2
----
-2085

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT COUNT( - 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3714
SELECT COUNT ( - 39 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT + 50 DIV ( 20 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3715
SELECT + 50 / ( 20 ) AS col0
----
2

query I rowsort
SELECT + 56 * + - 70 AS col1
----
-3920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3717
SELECT ALL MIN( 15 ) DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL MIN ( 15 ) / - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL + MAX( ALL + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + MAX ( ALL + 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT + MAX( 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-3719
SELECT + MAX ( 58 ) AS col0
----
58

query I rowsort
SELECT + NULLIF ( - 32, + 19 * + 71 * 25 ) AS col0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3721
SELECT + 20 DIV - + 66 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3721
SELECT + 20 / - + 66 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL 32 * CASE + 71 WHEN 12 / COUNT( * ) * 89 THEN NULL ELSE - SUM( - NULLIF ( 35, + + 31 / - 33 ) ) END col0
----
1120

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL 32 * CASE + 71 WHEN 12 / COUNT ( * ) * 89 THEN NULL ELSE - SUM ( - NULLIF ( 35, + + 31 / - 33 ) ) END col0
----
1120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3723
SELECT ALL COUNT( * ) DIV + MAX( ALL - + 52 )
----
0

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL COUNT ( * ) / + MAX ( ALL - + 52 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT ALL CASE + 3 WHEN 25 / 7 * + 17 * + 61 / + + 27 * + 38 * + 77 + - NULLIF ( 71, - 14 ) * 44 THEN - COUNT( * ) - + 80 * - 49 END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL CASE + 3 WHEN 25 / 7 * + 17 * + 61 / + + 27 * + 38 * + 77 + - NULLIF ( 71, - 14 ) * 44 THEN - COUNT ( * ) - + 80 * - 49 END * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT SUM( + 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3725
SELECT SUM ( + 60 ) AS col0
----
60

query I rowsort
SELECT + 61 * ( 16 )
----
976

query I rowsort
SELECT - 66 * + - NULLIF ( - 72, - 91 )
----
-4752

query I rowsort
SELECT + 78 - 7
----
71

query II rowsort
SELECT - 22 col0, 45 AS col2
----
-22
45

query I rowsort
SELECT ALL NULLIF ( - 27, + - 60 ) + - 68 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT + 30 * - COUNT( * ) * + 28 * - 31 * - COUNT( * ) AS col0
----
-26040

skipif mysql # not compatible
query I rowsort label-3731
SELECT + 30 * - COUNT ( * ) * + 28 * - 31 * - COUNT ( * ) AS col0
----
-26040

query I rowsort
SELECT ALL 36 + + 33
----
69

query II rowsort
SELECT - 33 AS col1, - 99 AS col0
----
-33
-99

query I rowsort
SELECT DISTINCT - 15 + + 11
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3735
SELECT + + 82 + - CASE - 71 WHEN + 88 THEN + ( + CAST( + 41 AS DECIMAL ) ) WHEN + - 54 * - + COUNT( * ) * 66 THEN NULL WHEN + ( NULLIF ( + 96, 13 * 20 + + COUNT( * ) * - 31 ) ) THEN 43 END * + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3735
SELECT + + 82 + - CASE - 71 WHEN + 88 THEN + ( + CAST ( + 41 AS REAL ) ) WHEN + - 54 * - + COUNT ( * ) * 66 THEN NULL WHEN + ( NULLIF ( + 96, 13 * 20 + + COUNT ( * ) * - 31 ) ) THEN 43 END * + 37 AS col1
----
NULL

query I rowsort
SELECT - + 77 - 11
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3737
SELECT - 38 + - NULLIF ( + - CAST( - + 46 AS SIGNED ), MAX( - - 62 ) * + 39 * COUNT( * ) + 75 * - 91 * 89 - - 56 ) * NULLIF ( - 17 * 32 - 98 * - ( COALESCE ( 76, - 23 * COALESCE ( MAX( 71 ), + COUNT( * ), - COUNT( * ) ), 7, + 2 ) * + 29 ), + 94 )
----
-9910646

skipif mysql # not compatible
query I rowsort label-3737
SELECT - 38 + - NULLIF ( + - CAST ( - + 46 AS INTEGER ), MAX ( - - 62 ) * + 39 * COUNT ( * ) + 75 * - 91 * 89 - - 56 ) * NULLIF ( - 17 * 32 - 98 * - ( COALESCE ( 76, - 23 * COALESCE ( MAX ( 71 ), + COUNT ( * ), - COUNT ( * ) ), 7, + 2 ) * + 29 ), + 94 )
----
-9910646

query I rowsort
SELECT DISTINCT - 55 + - - 99 * - 29 * 30 * 31
----
-2670085

query II rowsort
SELECT - - 96 col2, 63 * - + ( + CASE + 7 WHEN + 61 THEN 68 + - 40 + - 20 END ) AS col1
----
96
NULL

query I rowsort
SELECT - + 40 col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT + MIN( ALL - ( + 39 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-3741
SELECT + MIN ( ALL - ( + 39 ) )
----
-39

query I rowsort
SELECT ALL + + 0 - 80 col1
----
-80

query I rowsort
SELECT - 65 * 62 * 58 AS col0
----
-233740

query I rowsort
SELECT - NULLIF ( - 44, 50 ) + - 93
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL - MIN( - + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL - MIN ( - + 82 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT ALL + CAST( + ( 76 ) AS SIGNED ) - + 91 + + 57
----
42

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL + CAST ( + ( 76 ) AS INTEGER ) - + 91 + + 57
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3747
SELECT - - 50 * + + ( 60 ) AS col1, CAST( NULL AS SIGNED ) AS col1
----
3000
NULL

skipif mysql # not compatible
query II rowsort label-3747
SELECT - - 50 * + + ( 60 ) AS col1, CAST ( NULL AS INTEGER ) AS col1
----
3000
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3748
SELECT ALL CASE + 54 WHEN + 65 + + 82 DIV - 72 - + 51 THEN 30 * 12 END, CAST( + + 43 AS SIGNED ) DIV 75 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3748
SELECT ALL CASE + 54 WHEN + 65 + + 82 / - 72 - + 51 THEN 30 * 12 END, CAST ( + + 43 AS INTEGER ) / 75 AS col1
----
NULL
0

query I rowsort
SELECT ALL - + ( + 82 ) - 34 - - + 75 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3750
SELECT - - COUNT( * ) DIV 32 + + - 85
----
-85

skipif mysql # not compatible
query I rowsort label-3750
SELECT - - COUNT ( * ) / 32 + + - 85
----
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3751
SELECT - + CASE WHEN ( NULL ) NOT IN ( + 26, + 9, + 7 ) THEN - ( - - MAX( DISTINCT - - CAST( NULL AS DECIMAL ) ) ) ELSE NULL END * - - 17 - + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3751
SELECT - + CASE WHEN ( NULL ) NOT IN ( + 26, + 9, + 7 ) THEN - ( - - MAX ( DISTINCT - - CAST ( NULL AS REAL ) ) ) ELSE NULL END * - - 17 - + 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3752
SELECT ALL + - MIN( - 73 ) DIV 74 DIV 65 + + + 99 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL + - MIN ( - 73 ) / 74 / 65 + + + 99 AS col0
----
99

query I rowsort
SELECT - 11 * 23 col1
----
-253

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3754
SELECT 56 DIV + 35 - - ( - CASE + 37 WHEN SUM( + 70 ) THEN - ( COUNT( * ) ) END ) AS col0, 95 DIV + 91 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3754
SELECT 56 / + 35 - - ( - CASE + 37 WHEN SUM ( + 70 ) THEN - ( COUNT ( * ) ) END ) AS col0, 95 / + 91 AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT - 68 + - CASE + - 48 WHEN 48 THEN 51 - - MAX( 97 ) WHEN + - 68 THEN NULL WHEN + 19 * - 37 * - 63 THEN 29 END * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT - 68 + - CASE + - 48 WHEN 48 THEN 51 - - MAX ( 97 ) WHEN + - 68 THEN NULL WHEN + 19 * - 37 * - 63 THEN 29 END * 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL COUNT( * ) * - ( + 62 ) * 69 AS col0
----
-4278

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL COUNT ( * ) * - ( + 62 ) * 69 AS col0
----
-4278

query I rowsort
SELECT - 44 * 6 AS col1
----
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3758
SELECT ALL + ( 57 ) DIV + - SUM( DISTINCT + ( + 61 ) ) + + 2, 81 AS col0
----
2
81

skipif mysql # not compatible
query II rowsort label-3758
SELECT ALL + ( 57 ) / + - SUM ( DISTINCT + ( + 61 ) ) + + 2, 81 AS col0
----
2
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT DISTINCT + CAST( 7 AS SIGNED ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + CAST ( 7 AS INTEGER ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT + MAX( - - COALESCE ( - + 65, + 95 ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-3760
SELECT + MAX ( - - COALESCE ( - + 65, + 95 ) ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT - 96 * + 49 * + 85 - SUM( - ( - NULLIF ( - 93, - - 44 ) ) ) AS col2
----
-399747

skipif mysql # not compatible
query I rowsort label-3761
SELECT - 96 * + 49 * + 85 - SUM ( - ( - NULLIF ( - 93, - - 44 ) ) ) AS col2
----
-399747

query I rowsort
SELECT - 8 + + + 26 AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3763
SELECT - 2 DIV - + 87 - - 3
----
3

skipif mysql # not compatible
query I rowsort label-3763
SELECT - 2 / - + 87 - - 3
----
3

query I rowsort
SELECT 66 * - 22 + 32 AS col2
----
-1420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3765
SELECT ( CASE + ( COUNT( * ) ) WHEN - 58 THEN - + 67 + - MAX( ALL - - 24 ) * - 78 * + - MAX( ALL - + 79 ) * + CASE - 39 / - 15 WHEN COUNT( * ) THEN - 48 + + 15 END ELSE CAST( NULL AS SIGNED ) + + COUNT( ALL - 17 - 69 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT ( CASE + ( COUNT ( * ) ) WHEN - 58 THEN - + 67 + - MAX ( ALL - - 24 ) * - 78 * + - MAX ( ALL - + 79 ) * + CASE - 39 / - 15 WHEN COUNT ( * ) THEN - 48 + + 15 END ELSE CAST ( NULL AS INTEGER ) + + COUNT ( ALL - 17 - 69 ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + MAX( ALL 55 )
----
55

skipif mysql # not compatible
query I rowsort label-3766
SELECT + MAX ( ALL 55 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3767
SELECT - CAST( NULL AS SIGNED ) * - - COALESCE ( + CASE + - 93 WHEN + NULLIF ( + 21, + - 21 + + CASE + COUNT( * ) WHEN + COUNT( * ) * + 56 * - COALESCE ( 33, + 14 ) + 88 / - 3 THEN 73 + 39 END ) THEN NULL WHEN + COUNT( * ) THEN + 61 END, 49, - 35 * 6 ) + + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3767
SELECT - CAST ( NULL AS INTEGER ) * - - COALESCE ( + CASE + - 93 WHEN + NULLIF ( + 21, + - 21 + + CASE + COUNT ( * ) WHEN + COUNT ( * ) * + 56 * - COALESCE ( 33, + 14 ) + 88 / - 3 THEN 73 + 39 END ) THEN NULL WHEN + COUNT ( * ) THEN + 61 END, 49, - 35 * 6 ) + + 16 AS col2
----
NULL

query I rowsort
SELECT CASE - 2 WHEN - + 46 * + 75 THEN NULL WHEN 66 + + + 72 THEN - + 64 + + 85 * 99 + 10 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT DISTINCT - CASE 84 WHEN - ( - 70 ) * + COUNT( * ) + ( + + 80 ) + - MAX( ALL - 27 ) + + ( + - COUNT( * ) ) THEN NULL WHEN + 50 THEN 68 * 7 + + 82 END * + 91 + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT - CASE 84 WHEN - ( - 70 ) * + COUNT ( * ) + ( + + 80 ) + - MAX ( ALL - 27 ) + + ( + - COUNT ( * ) ) THEN NULL WHEN + 50 THEN 68 * 7 + + 82 END * + 91 + + 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT ALL 25 / + ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL 25 / + ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3771
SELECT + COUNT( * ) + + - 75 * - 68 DIV COUNT( * ) AS col0
----
5101

skipif mysql # not compatible
query I rowsort label-3771
SELECT + COUNT ( * ) + + - 75 * - 68 / COUNT ( * ) AS col0
----
5101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3772
SELECT ALL 83 * - 89 + + ( SUM( ALL 17 ) ) + 63 - 50 DIV ( - 52 )
----
-7307

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL 83 * - 89 + + ( SUM ( ALL 17 ) ) + 63 - 50 / ( - 52 )
----
-7307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3773
SELECT - CAST( NULL AS SIGNED ) col2, 38 * COUNT( * )
----
NULL
38

skipif mysql # not compatible
query II rowsort label-3773
SELECT - CAST ( NULL AS INTEGER ) col2, 38 * COUNT ( * )
----
NULL
38

query I rowsort
SELECT + 52 * - 16 * - 33 AS col2
----
27456

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT + ( + 10 ) + 79 * COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-3775
SELECT + ( + 10 ) + 79 * COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT - 40 + NULLIF ( - - ( + 21 ), - + 1 * + 29 ) + 72 * MIN( - 21 ) + + + 55 + - 52 * - ( 92 )
----
3308

skipif mysql # not compatible
query I rowsort label-3776
SELECT - 40 + NULLIF ( - - ( + 21 ), - + 1 * + 29 ) + 72 * MIN ( - 21 ) + + + 55 + - 52 * - ( 92 )
----
3308

query I rowsort
SELECT DISTINCT + 92 * - 88
----
-8096

query I rowsort
SELECT + COALESCE ( - - 43, + 53 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT DISTINCT - COUNT( + 17 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT - COUNT ( + 17 ) AS col0
----
-1

query I rowsort
SELECT ALL NULLIF ( - 91, + + 49 * - 42 ) AS col2
----
-91

query II rowsort
SELECT ALL 58, ( + - 45 ) + + + 70 AS col0
----
58
25

query I rowsort
SELECT - 52 + 39 + - - 68
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3783
SELECT 6, 50 DIV + + 65 * - + 24 DIV + COUNT( * ) AS col1
----
6
0

skipif mysql # not compatible
query II rowsort label-3783
SELECT 6, 50 / + + 65 * - + 24 / + COUNT ( * ) AS col1
----
6
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3784
SELECT ALL + - 80 DIV + + 31 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + - 80 / + + 31 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3785
SELECT 60 DIV - + 20 - 71 DIV - 92 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3785
SELECT 60 / - + 20 - 71 / - 92 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3786
SELECT 90 + MIN( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT 90 + MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 18 + 39 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT 20 + - 20 + + COUNT( * ) + 81 * - ( - + COUNT( * ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3788
SELECT 20 + - 20 + + COUNT ( * ) + 81 * - ( - + COUNT ( * ) ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL + NULLIF ( - COALESCE ( + 74, - - COUNT( * ) * - COALESCE ( + COUNT( * ), 43 / - + COUNT( * ) ) + - 74 * + 57 / - 23 * + ( 55 ) + + COALESCE ( + NULLIF ( - 3, - 57 ) - 6, COUNT( * ) / + 21 + + 98 ) ), 47 ) + - CASE 83 WHEN 66 + 34 * + 62 THEN 19 * NULLIF ( 40, - 42 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL + NULLIF ( - COALESCE ( + 74, - - COUNT ( * ) * - COALESCE ( + COUNT ( * ), 43 / - + COUNT ( * ) ) + - 74 * + 57 / - 23 * + ( 55 ) + + COALESCE ( + NULLIF ( - 3, - 57 ) - 6, COUNT ( * ) / + 21 + + 98 ) ), 47 ) + - CASE 83 WHEN 66 + 34 * + 62 THEN 19 * NULLIF ( 40, - 42 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 34 + 26
----
60

query I rowsort
SELECT ALL - NULLIF ( - - 39, + 19 )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3792
SELECT 45 * + + ( - 93 ), COUNT( * ) DIV - 84 col2
----
-4185
0

skipif mysql # not compatible
query II rowsort label-3792
SELECT 45 * + + ( - 93 ), COUNT ( * ) / - 84 col2
----
-4185
0

query I rowsort
SELECT DISTINCT 84 + - 18 + COALESCE ( - 18, 68 + + 65 ) AS col1
----
48

query I rowsort
SELECT ALL 43 + + - 92
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3795
SELECT DISTINCT + 17 - + + 32 * + COALESCE ( 76, - + 39 DIV + - 74, ( - + 98 ), + 7 DIV + ( + 6 ) )
----
-2415

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT + 17 - + + 32 * + COALESCE ( 76, - + 39 / + - 74, ( - + 98 ), + 7 / + ( + 6 ) )
----
-2415

query II rowsort
SELECT + 50 * + ( - - 98 ), - 22 col0
----
4900
-22

query I rowsort
SELECT ( + 56 ) * + 91
----
5096

query I rowsort
SELECT + 64 - - 16
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT ALL CASE - 11 WHEN 99 * 56 THEN - 93 + + 27 WHEN - 87 + 3 - + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL CASE - 11 WHEN 99 * 56 THEN - 93 + + 27 WHEN - 87 + 3 - + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3800
SELECT COALESCE ( + 3, 20 * 12 + + 13 DIV 69, + CASE - 84 WHEN + + 16 + 99 THEN + + MAX( ALL 82 ) ELSE 79 END ) - 48 * - 24
----
1155

skipif mysql # not compatible
query I rowsort label-3800
SELECT COALESCE ( + 3, 20 * 12 + + 13 / 69, + CASE - 84 WHEN + + 16 + 99 THEN + + MAX ( ALL 82 ) ELSE 79 END ) - 48 * - 24
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT ALL + + NULLIF ( 80, ( + - ( - 82 ) ) / - + 80 ) - - 79 + 47 + + + COUNT( * )
----
207

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL + + NULLIF ( 80, ( + - ( - 82 ) ) / - + 80 ) - - 79 + 47 + + + COUNT ( * )
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT 57 * + MIN( DISTINCT + + 48 ) - - + 77
----
2813

skipif mysql # not compatible
query I rowsort label-3802
SELECT 57 * + MIN ( DISTINCT + + 48 ) - - + 77
----
2813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3803
SELECT - COALESCE ( - + 67, + 97, - + 94, - CAST( + 66 AS SIGNED ) )
----
67

skipif mysql # not compatible
query I rowsort label-3803
SELECT - COALESCE ( - + 67, + 97, - + 94, - CAST ( + 66 AS INTEGER ) )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3804
SELECT 49 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-3804
SELECT 49 / + 70
----
0

query I rowsort
SELECT 95 - + 24
----
71

query I rowsort
SELECT + ( ( 39 ) ) * + - 43 AS col2
----
-1677

query I rowsort
SELECT ALL 10 * - 70 - + ( - - 25 )
----
-725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3808
SELECT DISTINCT 14 * 1 * - NULLIF ( + 55, + ( CAST( NULL AS SIGNED ) ) + ( + + 77 ) * - COUNT( * ) + 38 * + + ( - 67 ) ) * MAX( ALL 65 ) + + 92
----
-49958

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT 14 * 1 * - NULLIF ( + 55, + ( CAST ( NULL AS INTEGER ) ) + ( + + 77 ) * - COUNT ( * ) + 38 * + + ( - 67 ) ) * MAX ( ALL 65 ) + + 92
----
-49958

query I rowsort
SELECT ALL + 87 + - 65 + - NULLIF ( - + 37, + 4 ) * + 36 + - 90
----
1264

query I rowsort
SELECT 5 * 8 AS col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3811
SELECT DISTINCT + ( 60 ) * 71 + - + 76 + COUNT( * ), + 92 AS col1
----
4185
92

skipif mysql # not compatible
query II rowsort label-3811
SELECT DISTINCT + ( 60 ) * 71 + - + 76 + COUNT ( * ), + 92 AS col1
----
4185
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3812
SELECT ALL 83 AS col0, CAST( + - 83 AS SIGNED ) AS col2
----
83
-83

skipif mysql # not compatible
query II rowsort label-3812
SELECT ALL 83 AS col0, CAST ( + - 83 AS INTEGER ) AS col2
----
83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - MAX( + COALESCE ( - - 69, - 3 + - 33 ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-3813
SELECT - MAX ( + COALESCE ( - - 69, - 3 + - 33 ) ) AS col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3814
SELECT ALL COALESCE ( - 21, - 49 * + + 3, - COUNT( * ) ) + 19 - 22 * - + CAST( + 54 AS SIGNED )
----
1186

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL COALESCE ( - 21, - 49 * + + 3, - COUNT ( * ) ) + 19 - 22 * - + CAST ( + 54 AS INTEGER )
----
1186

query I rowsort
SELECT 10 + 56
----
66

query I rowsort
SELECT 55 * + - 27
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT MIN( + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-3817
SELECT MIN ( + 20 )
----
20

query II rowsort
SELECT + 50 AS col2, 45
----
50
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3819
SELECT - 94 DIV 78 - + 50 col2
----
-51

skipif mysql # not compatible
query I rowsort label-3819
SELECT - 94 / 78 - + 50 col2
----
-51

query I rowsort
SELECT ALL - 3 * + - 88 AS col0
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3821
SELECT 45 + CASE + 45 WHEN 1 THEN NULL ELSE - 86 + + 96 * COUNT( * ) END * - NULLIF ( - + 80, - + 34 + - 44 + - - CAST( 64 AS SIGNED ) / + 31 ) + + 80
----
925

skipif mysql # not compatible
query I rowsort label-3821
SELECT 45 + CASE + 45 WHEN 1 THEN NULL ELSE - 86 + + 96 * COUNT ( * ) END * - NULLIF ( - + 80, - + 34 + - 44 + - - CAST ( 64 AS INTEGER ) / + 31 ) + + 80
----
925

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL + 78 * + 73 * + - COUNT( * ) - + - COUNT( * ) AS col2
----
-5693

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + 78 * + 73 * + - COUNT ( * ) - + - COUNT ( * ) AS col2
----
-5693

query II rowsort
SELECT ALL - 83, - 0 * - 55 AS col0
----
-83
0

query I rowsort
SELECT DISTINCT 78 * - 40 AS col1
----
-3120

query I rowsort
SELECT ALL 31 * 9 - + + 12 + - 30 * - 37
----
1377

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT - MIN( DISTINCT + 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT - MIN ( DISTINCT + 36 ) AS col0
----
-36

query I rowsort
SELECT ALL 13 * + ( 55 ) AS col1
----
715

onlyif mysql # DIV for integer division: 
query I rowsort label-3828
SELECT 30 * - ( - 7 ) - - 19 DIV + 97 AS col2
----
210

skipif mysql # not compatible
query I rowsort label-3828
SELECT 30 * - ( - 7 ) - - 19 / + 97 AS col2
----
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3829
SELECT ( - COUNT( * ) ) + - + 24 + - 75 + + COALESCE ( - 24, + - 13 DIV 85 )
----
-124

skipif mysql # not compatible
query I rowsort label-3829
SELECT ( - COUNT ( * ) ) + - + 24 + - 75 + + COALESCE ( - 24, + - 13 / 85 )
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT COUNT( * ) * + 64 + - NULLIF ( 11, - COALESCE ( - + 34, - 97, + 19 ) )
----
53

skipif mysql # not compatible
query I rowsort label-3830
SELECT COUNT ( * ) * + 64 + - NULLIF ( 11, - COALESCE ( - + 34, - 97, + 19 ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT 89 + - ( + + COUNT( * ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-3831
SELECT 89 + - ( + + COUNT ( * ) ) AS col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3832
SELECT 60 DIV - + 22 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3832
SELECT 60 / - + 22 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT 96 DIV + + 90 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3833
SELECT 96 / + + 90 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3834
SELECT DISTINCT - 58 DIV 3 * + + 75 AS col0
----
-1425

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT - 58 / 3 * + + 75 AS col0
----
-1425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3835
SELECT + 72 * COALESCE ( 18, + 70 ) + - + NULLIF ( COUNT( * ), + + 11 DIV 89 - - ( 37 ) + - 82 * - 57 ) DIV 25 AS col2
----
1296

skipif mysql # not compatible
query I rowsort label-3835
SELECT + 72 * COALESCE ( 18, + 70 ) + - + NULLIF ( COUNT ( * ), + + 11 / 89 - - ( 37 ) + - 82 * - 57 ) / 25 AS col2
----
1296

onlyif mysql # aggregate syntax: 
query II rowsort label-3836
SELECT ALL - 51 AS col1, COUNT( * ) AS col0
----
-51
1

skipif mysql # not compatible
query II rowsort label-3836
SELECT ALL - 51 AS col1, COUNT ( * ) AS col0
----
-51
1

query I rowsort
SELECT 94 + - 87
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT DISTINCT - MAX( ALL - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT - MAX ( ALL - 97 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT DISTINCT + - NULLIF ( + 51, + - CAST( 71 AS SIGNED ) - - CAST( 1 AS SIGNED ) ) col2
----
-51

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT + - NULLIF ( + 51, + - CAST ( 71 AS INTEGER ) - - CAST ( 1 AS INTEGER ) ) col2
----
-51

query I rowsort
SELECT ALL + - 80 * - ( - 74 ) + - 6 * - 72
----
-5488

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - 84 * SUM( DISTINCT + - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3841
SELECT - 84 * SUM ( DISTINCT + - 0 )
----
0

query II rowsort
SELECT ALL 37, 77 AS col1
----
37
77

query II rowsort
SELECT + 98, + 52 AS col2
----
98
52

query I rowsort
SELECT - - 88 + - 36
----
52

query I rowsort
SELECT ALL - 82 * + - 22 AS col0
----
1804

query I rowsort
SELECT + - 71 * - - 64 + - 15 * + - 44
----
-3884

query I rowsort
SELECT + + 13 + 20
----
33

query I rowsort
SELECT ALL + 91 + - + 15 * + - 44
----
751

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT + MIN( DISTINCT 25 ) + + 53 * + + 12 AS col1
----
661

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT + MIN ( DISTINCT 25 ) + + 53 * + + 12 AS col1
----
661

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT ALL - COUNT( * ) * - - 59 * + 8 + + - 13 + + 99
----
-386

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL - COUNT ( * ) * - - 59 * + 8 + + - 13 + + 99
----
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT DISTINCT + 0 + + + 79 - - 37 + - 51 * + 39 * COUNT( * ) AS col2
----
-1873

skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT + 0 + + + 79 - - 37 + - 51 * + 39 * COUNT ( * ) AS col2
----
-1873

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT ALL + COALESCE ( - 94, - COUNT( * ), + - COUNT( * ) - - + MAX( 46 ) ) + + 39 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL + COALESCE ( - 94, - COUNT ( * ), + - COUNT ( * ) - - + MAX ( 46 ) ) + + 39 AS col0
----
-55

query I rowsort
SELECT - 57 - 34 AS col2
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3854
SELECT + COUNT( * ) + ( + 31 ) + 69 + + NULLIF ( 89, - 50 + + ( + NULLIF ( 14, + 84 + - 89 ) ) - - 35 DIV - 77 ) * 52 DIV 82 AS col1
----
157

skipif mysql # not compatible
query I rowsort label-3854
SELECT + COUNT ( * ) + ( + 31 ) + 69 + + NULLIF ( 89, - 50 + + ( + NULLIF ( 14, + 84 + - 89 ) ) - - 35 / - 77 ) * 52 / 82 AS col1
----
157

query I rowsort
SELECT DISTINCT ( + 7 ) + 72 + + + 72 AS col0
----
151

query I rowsort
SELECT + 91 + 53 + 70 * + 72 + - 36 AS col0
----
5148

query I rowsort
SELECT ALL 73 * 35 AS col2
----
2555

query I rowsort
SELECT + 55 + - 92
----
-37

query I rowsort
SELECT DISTINCT 67 - - 93
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-3860
SELECT ( 52 ), - SUM( ALL - 82 ) col0
----
52
82

skipif mysql # not compatible
query II rowsort label-3860
SELECT ( 52 ), - SUM ( ALL - 82 ) col0
----
52
82

query I rowsort
SELECT ALL 38 * 69 * CASE + 82 WHEN 67 THEN + CASE + 66 WHEN + 34 THEN NULL WHEN - 23 THEN + 15 WHEN + + ( 35 ) * + 5 THEN NULL ELSE NULL END / - 23 END * 45 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3862
SELECT ( 56 ), + 37 * 89 DIV 13 * + - 0 AS col2
----
56
0

skipif mysql # not compatible
query II rowsort label-3862
SELECT ( 56 ), + 37 * 89 / 13 * + - 0 AS col2
----
56
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT + COALESCE ( + 98, - 55 ) + - - 83 * + CASE + 35 WHEN - + ( + 87 ) - 28 * - - COUNT( * ) THEN 80 + 28 + MIN( - 63 ) * 81 ELSE NULL END + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT + COALESCE ( + 98, - 55 ) + - - 83 * + CASE + 35 WHEN - + ( + 87 ) - 28 * - - COUNT ( * ) THEN 80 + 28 + MIN ( - 63 ) * 81 ELSE NULL END + 49 AS col0
----
NULL

query I rowsort
SELECT 35 * - + ( - - 59 ) + - 90
----
-2155

query I rowsort
SELECT + 48 * 9
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - 54 * SUM( DISTINCT + 29 ) AS col2
----
-1566

skipif mysql # not compatible
query I rowsort label-3866
SELECT - 54 * SUM ( DISTINCT + 29 ) AS col2
----
-1566

query I rowsort
SELECT ALL 60 * - 37
----
-2220

query I rowsort
SELECT DISTINCT - - 91 * - - ( + 70 ) * 47 + + 7 + - 22
----
299375

onlyif mysql # DIV for integer division: 
query I rowsort label-3869
SELECT DISTINCT 20 DIV + - 1 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT 20 / + - 1 AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3870
SELECT ALL 29 * - + COUNT( * ) + - 32 + - 69 * 75 AS col2, + ( + + 7 ) col0, + NULLIF ( + 42, + + CASE - 18 WHEN 69 THEN NULL WHEN - 36 THEN + - COALESCE ( - 22, CAST( + 60 AS SIGNED ) + + COUNT( 39 ), - 11 ) / - COUNT( * ) ELSE + 55 END * + SUM( 92 ) - CAST( 10 AS SIGNED ) / - 85 ) AS col1
----
-5236
7
42

skipif mysql # not compatible
query III rowsort label-3870
SELECT ALL 29 * - + COUNT ( * ) + - 32 + - 69 * 75 AS col2, + ( + + 7 ) col0, + NULLIF ( + 42, + + CASE - 18 WHEN 69 THEN NULL WHEN - 36 THEN + - COALESCE ( - 22, CAST ( + 60 AS INTEGER ) + + COUNT ( 39 ), - 11 ) / - COUNT ( * ) ELSE + 55 END * + SUM ( 92 ) - CAST ( 10 AS INTEGER ) / - 85 ) AS col1
----
-5236
7
42

query I rowsort
SELECT ALL - 77 * + + 62 + 87 AS col2
----
-4687

query I rowsort
SELECT + 66 * 78 + + 53 + 24 AS col0
----
5225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3873
SELECT ALL + CAST( + 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL + CAST ( + 74 AS INTEGER )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3874
SELECT DISTINCT + + CAST( - + 25 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT + + CAST ( - + 25 AS INTEGER )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3875
SELECT + - 48 * - - 38 DIV CAST( NULL AS SIGNED ) + + 25, + ( + + NULLIF ( + 35, + NULLIF ( - + 86, ( + 57 ) ) * 64 * - CAST( - - CASE ( 77 ) WHEN - COALESCE ( COUNT( * ), + 66 ) + COUNT( * ) THEN CAST( + 79 AS SIGNED ) WHEN - 78 THEN 46 + 24 ELSE - 38 END AS SIGNED ) + + 13 ) ) + - 87 DIV - 51 AS col0
----
NULL
36

skipif mysql # not compatible
query II rowsort label-3875
SELECT + - 48 * - - 38 / CAST ( NULL AS INTEGER ) + + 25, + ( + + NULLIF ( + 35, + NULLIF ( - + 86, ( + 57 ) ) * 64 * - CAST ( - - CASE ( 77 ) WHEN - COALESCE ( COUNT ( * ), + 66 ) + COUNT ( * ) THEN CAST ( + 79 AS INTEGER ) WHEN - 78 THEN 46 + 24 ELSE - 38 END AS INTEGER ) + + 13 ) ) + - 87 / - 51 AS col0
----
NULL
36

query I rowsort
SELECT DISTINCT + - 5 * + 85 + - + 47
----
-472

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3877
SELECT - 62 - + + 75 + - + COUNT( * ) + - ( + + 14 ) DIV 52 DIV MAX( + 53 ) * - COUNT( * ) AS col1, COUNT( * ) AS col1
----
-138
1

skipif mysql # not compatible
query II rowsort label-3877
SELECT - 62 - + + 75 + - + COUNT ( * ) + - ( + + 14 ) / 52 / MAX ( + 53 ) * - COUNT ( * ) AS col1, COUNT ( * ) AS col1
----
-138
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT CASE + NULLIF ( - 29, + ( + + 92 ) ) WHEN - 76 THEN NULL WHEN 24 / - - 81 THEN CASE - 97 WHEN 2 THEN + 54 + - + 85 WHEN + 65 THEN NULL END * + ( + COUNT( * ) ) END * 55 - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT CASE + NULLIF ( - 29, + ( + + 92 ) ) WHEN - 76 THEN NULL WHEN 24 / - - 81 THEN CASE - 97 WHEN 2 THEN + 54 + - + 85 WHEN + 65 THEN NULL END * + ( + COUNT ( * ) ) END * 55 - 3 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 37 * 4, 95 AS col0
----
-148
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL + 79 + - SUM( 7 )
----
72

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL + 79 + - SUM ( 7 )
----
72

query I rowsort
SELECT - 20 * + 66 + 92 * + 63
----
4476

query I rowsort
SELECT - - 40 - 93 AS col2
----
-53

query I rowsort
SELECT ALL ( + 87 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT DISTINCT - COUNT( * ) * + 48
----
-48

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT - COUNT ( * ) * + 48
----
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-3885
SELECT + 50 - - 87 * 93 col1, + 43 DIV + NULLIF ( + 68, - + 28 ) col1
----
8141
0

skipif mysql # not compatible
query II rowsort label-3885
SELECT + 50 - - 87 * 93 col1, + 43 / + NULLIF ( + 68, - + 28 ) col1
----
8141
0

query I rowsort
SELECT - 62 * - - 30 * 72
----
-133920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3887
SELECT - COALESCE ( + COUNT( + 89 ), - - MIN( 31 ), + - COALESCE ( - 54, - 36 - + + 0 + + 85 ), + - CASE WHEN 20 IS NULL THEN + 23 * 9 - + COUNT( * ) DIV 43 ELSE NULL END ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3887
SELECT - COALESCE ( + COUNT ( + 89 ), - - MIN ( 31 ), + - COALESCE ( - 54, - 36 - + + 0 + + 85 ), + - CASE WHEN 20 IS NULL THEN + 23 * 9 - + COUNT ( * ) / 43 ELSE NULL END ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL + 48 - - - MIN( - 34 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + 48 - - - MIN ( - 34 ) AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3889
SELECT ALL ( + + CAST( 97 AS SIGNED ) ) col0
----
97

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL ( + + CAST ( 97 AS INTEGER ) ) col0
----
97

query I rowsort
SELECT DISTINCT - 21 * + 79
----
-1659

query I rowsort
SELECT - 15 + + - 79 AS col0
----
-94

query II rowsort
SELECT DISTINCT ( - ( 91 ) ) AS col1, 2 AS col1
----
-91
2

query I rowsort
SELECT - COALESCE ( 36, + 11 )
----
-36

query I rowsort
SELECT - 20 + - COALESCE ( 43, - 89 )
----
-63

query I rowsort
SELECT - COALESCE ( 19, 63 ) AS col1
----
-19

query I rowsort
SELECT - 96 + - 41 - - 82 * + + 49 + + + 62 AS col0
----
3943

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3897
SELECT + 61 + + - 46 * - 20, - NULLIF ( - - 5, + + 67 + - 55 + AVG ( ( + 3 ) ) + - 6 * - CAST( NULL AS SIGNED ) ) col0
----
981
-5

skipif mysql # not compatible
query II rowsort label-3897
SELECT + 61 + + - 46 * - 20, - NULLIF ( - - 5, + + 67 + - 55 + AVG ( ( + 3 ) ) + - 6 * - CAST ( NULL AS INTEGER ) ) col0
----
981
-5

query I rowsort
SELECT DISTINCT 25 * + - 10 AS col2
----
-250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3899
SELECT - NULLIF ( + 2, + SUM( + 56 ) + - ( - 44 ) ) DIV + + 57 * + 22 + + - 81 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3899
SELECT - NULLIF ( + 2, + SUM ( + 56 ) + - ( - 44 ) ) / + + 57 * + 22 + + - 81 AS col0
----
-81

query I rowsort
SELECT ALL 60 * - 15 AS col1
----
-900

onlyif mysql # DIV for integer division: 
query II rowsort label-3901
SELECT + 47 DIV + + 64 + - - 16 AS col0, + 37
----
16
37

skipif mysql # not compatible
query II rowsort label-3901
SELECT + 47 / + + 64 + - - 16 AS col0, + 37
----
16
37

query II rowsort
SELECT ALL + 68 * + + 15 * 55 AS col2, + 88 AS col0
----
56100
88

query I rowsort
SELECT DISTINCT + ( + - 88 ) AS col1
----
-88

query I rowsort
SELECT 24 * - - ( 19 ) AS col1
----
456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3905
SELECT COALESCE ( - COUNT( * ), COUNT( * ) - - 87 DIV - 27, + 74 ) + 39
----
38

skipif mysql # not compatible
query I rowsort label-3905
SELECT COALESCE ( - COUNT ( * ), COUNT ( * ) - - 87 / - 27, + 74 ) + 39
----
38

query I rowsort
SELECT + 5 * 99 - 92 + - 75 - + - ( 21 ) * - 31 AS col1
----
-323

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT COUNT( DISTINCT + - 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3907
SELECT COUNT ( DISTINCT + - 42 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL - + COUNT( - + 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL - + COUNT ( - + 83 )
----
-1

query I rowsort
SELECT 3 * 69 * - 48
----
-9936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3910
SELECT ALL 76 + + CASE 23 WHEN + AVG ( - 50 ) THEN + 48 + + 40 + - - 29 - - 38 * - CASE - + ( - CAST( + 52 AS SIGNED ) ) WHEN + 80 + - 46 + 62 * - 10 THEN NULL WHEN - 16 + 48 THEN - 98 ELSE NULL END END + + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL 76 + + CASE 23 WHEN + AVG ( - 50 ) THEN + 48 + + 40 + - - 29 - - 38 * - CASE - + ( - CAST ( + 52 AS INTEGER ) ) WHEN + 80 + - 46 + 62 * - 10 THEN NULL WHEN - 16 + 48 THEN - 98 ELSE NULL END END + + 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3911
SELECT MAX( DISTINCT - 91 ) * ( - COUNT( * ) ) + + 13 + + 16 + + - 22 + + 19 DIV + 94 * - 37 - + MAX( ALL - 51 )
----
149

skipif mysql # not compatible
query I rowsort label-3911
SELECT MAX ( DISTINCT - 91 ) * ( - COUNT ( * ) ) + + 13 + + 16 + + - 22 + + 19 / + 94 * - 37 - + MAX ( ALL - 51 )
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT DISTINCT + 63 + - COUNT( * ) + - 48 * - + NULLIF ( 33, - 27 * - ( - + 56 ) * + 98 * + MIN( DISTINCT + 71 ) + + + NULLIF ( - + 19, + - ( + NULLIF ( - AVG ( ALL 33 ), - 8 ) ) ) + 5 )
----
1646

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT + 63 + - COUNT ( * ) + - 48 * - + NULLIF ( 33, - 27 * - ( - + 56 ) * + 98 * + MIN ( DISTINCT + 71 ) + + + NULLIF ( - + 19, + - ( + NULLIF ( - AVG ( ALL 33 ), - 8 ) ) ) + 5 )
----
1646

query I rowsort
SELECT ALL + 0 * 25 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT MAX( DISTINCT - - 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3914
SELECT MAX ( DISTINCT - - 12 ) AS col2
----
12

query I rowsort
SELECT DISTINCT 38 * - 62
----
-2356

query I rowsort
SELECT ALL + 30 + 93
----
123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3917
SELECT DISTINCT 47 * + 21 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT 47 * + 21 + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT - COALESCE ( + 82, + 82 + - + 65 * + 28 + - COALESCE ( + SUM( DISTINCT - 59 ), + 28, 28, 58 ) * 90 ) * - + COUNT( * ) + 16 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3918
SELECT - COALESCE ( + 82, + 82 + - + 65 * + 28 + - COALESCE ( + SUM ( DISTINCT - 59 ), + 28, 28, 58 ) * 90 ) * - + COUNT ( * ) + 16 AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3919
SELECT ALL MAX( - - 10 ) * - CAST( - + 77 AS SIGNED ) AS col2
----
770

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL MAX ( - - 10 ) * - CAST ( - + 77 AS INTEGER ) AS col2
----
770

query I rowsort
SELECT - 35 + - 84 - 6
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3921
SELECT - CAST( NULL AS SIGNED ) + - 81 - MAX( ALL - 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT - CAST ( NULL AS INTEGER ) + - 81 - MAX ( ALL - 74 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3922
SELECT DISTINCT CAST( NULL AS SIGNED ), 99 * 90 DIV - 63 AS col1
----
NULL
-141

skipif mysql # not compatible
query II rowsort label-3922
SELECT DISTINCT CAST ( NULL AS INTEGER ), 99 * 90 / - 63 AS col1
----
NULL
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT 65 * - - CAST( + 66 AS SIGNED ) AS col2
----
4290

skipif mysql # not compatible
query I rowsort label-3923
SELECT 65 * - - CAST ( + 66 AS INTEGER ) AS col2
----
4290

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT COUNT( * ) * - 3
----
-3

skipif mysql # not compatible
query I rowsort label-3924
SELECT COUNT ( * ) * - 3
----
-3

query II rowsort
SELECT 6 AS col0, 42
----
6
42

query I rowsort
SELECT 55 + + 25 + 68
----
148

query II rowsort
SELECT ALL 93 AS col0, - 87 * + 27
----
93
-2349

query I rowsort
SELECT 64 * + 5 * - 69
----
-22080

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT 38 - + MIN( 59 )
----
-21

skipif mysql # not compatible
query I rowsort label-3929
SELECT 38 - + MIN ( 59 )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3930
SELECT - 1 col0, + COUNT( * ) * - 37 * + + 83 + 41 AS col1
----
-1
-3030

skipif mysql # not compatible
query II rowsort label-3930
SELECT - 1 col0, + COUNT ( * ) * - 37 * + + 83 + 41 AS col1
----
-1
-3030

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT 80 + COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3931
SELECT 80 + COUNT ( * ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT 54 * - COUNT( * ) * 45
----
-2430

skipif mysql # not compatible
query I rowsort label-3932
SELECT 54 * - COUNT ( * ) * 45
----
-2430

query I rowsort
SELECT 89 + + 66
----
155

query I rowsort
SELECT ALL + 72 * + + 64 * + 32
----
147456

query II rowsort
SELECT 49, + 51 AS col0
----
49
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3936
SELECT 70 + - - 80 + CAST( NULL AS SIGNED ) * + 71 * - - 81 + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT 70 + - - 80 + CAST ( NULL AS INTEGER ) * + 71 * - - 81 + 50 AS col0
----
NULL

query II rowsort
SELECT - 66 AS col1, 74 * + 37 col2
----
-66
2738

query I rowsort
SELECT ALL + 81 * + - 14 col0
----
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT DISTINCT - 27 + NULLIF ( - ( 86 ), + 7 + - - 80 ) + + 85 * 72 * ( + COUNT( * ) ) AS col1
----
6007

skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT - 27 + NULLIF ( - ( 86 ), + 7 + - - 80 ) + + 85 * 72 * ( + COUNT ( * ) ) AS col1
----
6007

query I rowsort
SELECT ALL + 72 * - - 16 AS col2
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT DISTINCT MAX( + 65 ) + 95
----
160

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT MAX ( + 65 ) + 95
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3942
SELECT COUNT( DISTINCT - 5 ) DIV - + ( - 41 ) + 59
----
59

skipif mysql # not compatible
query I rowsort label-3942
SELECT COUNT ( DISTINCT - 5 ) / - + ( - 41 ) + 59
----
59

query I rowsort
SELECT - 50 + + 31 + - 82
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3944
SELECT ALL + 44 DIV + - COUNT( * ) + 67 + - + COUNT( * ) + + - 59 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL + 44 / + - COUNT ( * ) + 67 + - + COUNT ( * ) + + - 59 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL - - COALESCE ( + 40, + 19 + - ( + + 74 ) + 0 + - MIN( + - 41 ) + + 62 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL - - COALESCE ( + 40, + 19 + - ( + + 74 ) + 0 + - MIN ( + - 41 ) + + 62 ) AS col2
----
40

query II rowsort
SELECT + 66, 61 AS col0
----
66
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3947
SELECT ALL - - CASE + - CAST( NULL AS SIGNED ) WHEN 45 THEN + - NULLIF ( - 31, - - 92 * - ( + 80 ) ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL - - CASE + - CAST ( NULL AS INTEGER ) WHEN 45 THEN + - NULLIF ( - 31, - - 92 * - ( + 80 ) ) END col2
----
NULL

query I rowsort
SELECT ALL - 3 * - ( + 27 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT DISTINCT + 92 + + MIN( DISTINCT - 34 ) * 85
----
-2798

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT + 92 + + MIN ( DISTINCT - 34 ) * 85
----
-2798

query I rowsort
SELECT ALL - - 90 + 81 * - - 58
----
4788

query I rowsort
SELECT ALL - ( + - 74 ) AS col2
----
74

query I rowsort
SELECT DISTINCT 92 + - 86 AS col0
----
6

query I rowsort
SELECT ALL - - ( + 2 ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3954
SELECT - 24 + + + 64 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT - 24 + + + 64 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 64 * + ( + 99 )
----
6336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3956
SELECT + COUNT( * ) * + + 77 * - CASE + 11 WHEN + - CAST( NULL AS SIGNED ) THEN - 40 / - 12 WHEN + 93 / - - ( + 53 ) + COUNT( * ) + COALESCE ( 60, 22, + - 34 ) THEN + - 79 + 4 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT + COUNT ( * ) * + + 77 * - CASE + 11 WHEN + - CAST ( NULL AS INTEGER ) THEN - 40 / - 12 WHEN + 93 / - - ( + 53 ) + COUNT ( * ) + COALESCE ( 60, 22, + - 34 ) THEN + - 79 + 4 * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ALL + COUNT( * ) - 31
----
-30

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL + COUNT ( * ) - 31
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-3958
SELECT 66, - 83 * - - ( - COUNT( * ) ) AS col0
----
66
83

skipif mysql # not compatible
query II rowsort label-3958
SELECT 66, - 83 * - - ( - COUNT ( * ) ) AS col0
----
66
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT COUNT( * ) - - 37 col2
----
38

skipif mysql # not compatible
query I rowsort label-3959
SELECT COUNT ( * ) - - 37 col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3960
SELECT ALL 51 * + 16 AS col1, - CAST( NULL AS SIGNED ) + - 54 * - 36 AS col0
----
816
NULL

skipif mysql # not compatible
query II rowsort label-3960
SELECT ALL 51 * + 16 AS col1, - CAST ( NULL AS INTEGER ) + - 54 * - 36 AS col0
----
816
NULL

query I rowsort
SELECT 84 * - - 51 - 82
----
4202

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3962
SELECT ALL 21 - + MAX( - - 41 ) * + NULLIF ( 3, + AVG ( - 59 ) ) + + 80 DIV 28 + + ( + CASE + - CASE - + MAX( ALL + 36 ) WHEN - 54 * - 13 + - 53 THEN NULL ELSE - 90 * + 9 END WHEN 89 THEN NULL WHEN - 47 THEN NULL ELSE - 53 END ) - - 81 * + 59 * 66 AS col0
----
315261

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL 21 - + MAX ( - - 41 ) * + NULLIF ( 3, + AVG ( - 59 ) ) + + 80 / 28 + + ( + CASE + - CASE - + MAX ( ALL + 36 ) WHEN - 54 * - 13 + - 53 THEN NULL ELSE - 90 * + 9 END WHEN 89 THEN NULL WHEN - 47 THEN NULL ELSE - 53 END ) - - 81 * + 59 * 66 AS col0
----
315261

query I rowsort
SELECT DISTINCT 86 * + - 75
----
-6450

query I rowsort
SELECT ALL 15 * - + 25 * + 20 AS col0
----
-7500

query I rowsort
SELECT ALL 91 * COALESCE ( 5, 78 ) * - 25 col2
----
-11375

query II rowsort
SELECT DISTINCT 50 * - - 6, 8 AS col2
----
300
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT ( 10 ) + 68 * - + MIN( 59 ) * - COALESCE ( - 23, 19 * COUNT( * ), - ( COUNT( - 72 ) ) ) + - 90 AS col0
----
-92356

skipif mysql # not compatible
query I rowsort label-3967
SELECT ( 10 ) + 68 * - + MIN ( 59 ) * - COALESCE ( - 23, 19 * COUNT ( * ), - ( COUNT ( - 72 ) ) ) + - 90 AS col0
----
-92356

onlyif mysql # DIV for integer division: 
query I rowsort label-3968
SELECT 54 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-3968
SELECT 54 / - 76
----
0

query I rowsort
SELECT 89 * + 65
----
5785

query I rowsort
SELECT 93 - + 51 col2
----
42

query I rowsort
SELECT DISTINCT 14 + + 44 + + - 21
----
37

query I rowsort
SELECT 73 + - 84 + - 7
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3973
SELECT ALL - 13 / - CASE + - 87 WHEN - 92 * - CAST( - 80 AS SIGNED ) + - + ( COUNT( * ) ) * - 81 / 9 / COUNT( * ) * + + 56 THEN + 91 + + 83 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL - 13 / - CASE + - 87 WHEN - 92 * - CAST ( - 80 AS INTEGER ) + - + ( COUNT ( * ) ) * - 81 / 9 / COUNT ( * ) * + + 56 THEN + 91 + + 83 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3974
SELECT - ( NULLIF ( + 19, + 86 ) ) * + 40 AS col1, 98 + + - COUNT( * ) AS col0
----
-760
97

skipif mysql # not compatible
query II rowsort label-3974
SELECT - ( NULLIF ( + 19, + 86 ) ) * + 40 AS col1, 98 + + - COUNT ( * ) AS col0
----
-760
97

query I rowsort
SELECT ALL + 41 + 72 col2
----
113

query I rowsort
SELECT ALL 1 + - - 47 - - 5 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT + 7 + + 34 * + MAX( + + 53 ) * + 39 + - 35 AS col1
----
70250

skipif mysql # not compatible
query I rowsort label-3977
SELECT + 7 + + 34 * + MAX ( + + 53 ) * + 39 + - 35 AS col1
----
70250

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL + MAX( - 60 ) * - 96 AS col1
----
5760

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL + MAX ( - 60 ) * - 96 AS col1
----
5760

query I rowsort
SELECT + ( - 94 ) + - - 9 AS col1
----
-85

query I rowsort
SELECT ALL + 99 + 63
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT + - ( - MAX( - 91 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-3981
SELECT + - ( - MAX ( - 91 ) )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT ALL + 29 * ( + - MAX( ALL 31 ) ) + - + COUNT( - + 53 ) col1
----
-900

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL + 29 * ( + - MAX ( ALL 31 ) ) + - + COUNT ( - + 53 ) col1
----
-900

query I rowsort
SELECT - COALESCE ( + 10, + 67 ) col1
----
-10

query I rowsort
SELECT ALL - 55 * + 42
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL ( + 58 ) * 5 + COUNT( * ) col0
----
291

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL ( + 58 ) * 5 + COUNT ( * ) col0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT ALL - + 77 * 72 - 46 - CAST( + + 79 AS SIGNED ) AS col1
----
-5669

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL - + 77 * 72 - 46 - CAST ( + + 79 AS INTEGER ) AS col1
----
-5669

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT - + 71 DIV - - 20 - 36
----
-39

skipif mysql # not compatible
query I rowsort label-3987
SELECT - + 71 / - - 20 - 36
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3988
SELECT ALL - - 87 DIV + - 83 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL - - 87 / + - 83 AS col1
----
-1

query I rowsort
SELECT + + 28 + + + 52 * + 73 + - 79
----
3745

query I rowsort
SELECT ALL + 6 * + - COALESCE ( ( 31 ), - 74 * - ( + 4 ), + 19 ) - + - 77
----
-109

query I rowsort
SELECT - - 17 * - + 24 * + 10
----
-4080

onlyif mysql # DIV for integer division: 
query I rowsort label-3992
SELECT ALL - - 95 DIV - 64
----
-1

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL - - 95 / - 64
----
-1

query II rowsort
SELECT - - 67 + + 24 AS col0, 41
----
91
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3994
SELECT ALL + 98 * + 73 + + CAST( NULL AS SIGNED ) * + + 41 * + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL + 98 * + 73 + + CAST ( NULL AS INTEGER ) * + + 41 * + + 87
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3995
SELECT ALL + - 83 * - + 87 AS col2, + 7 / - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
7221
NULL

skipif mysql # not compatible
query II rowsort label-3995
SELECT ALL + - 83 * - + 87 AS col2, + 7 / - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
7221
NULL

query I rowsort
SELECT ALL + 89 * 38
----
3382

onlyif mysql # aggregate syntax: 
query II rowsort label-3997
SELECT COUNT( * ) AS col1, 41 AS col1
----
1
41

skipif mysql # not compatible
query II rowsort label-3997
SELECT COUNT ( * ) AS col1, 41 AS col1
----
1
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3998
SELECT - MIN( ALL - - 0 ) * - 52 DIV + ( - ( - 31 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3998
SELECT - MIN ( ALL - - 0 ) * - 52 / + ( - ( - 31 ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3999
SELECT + MIN( ALL - 20 ) + + 89 AS col1, - COALESCE ( + - 45, + 83 ) AS col2, - CAST( NULL AS SIGNED ) AS col2
----
69
45
NULL

skipif mysql # not compatible
query III rowsort label-3999
SELECT + MIN ( ALL - 20 ) + + 89 AS col1, - COALESCE ( + - 45, + 83 ) AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
69
45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT MIN( DISTINCT 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-4000
SELECT MIN ( DISTINCT 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT DISTINCT + 26 + 1 * 9 * + + SUM( DISTINCT - 14 ) - + 36 + + + 59 col0
----
-77

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT + 26 + 1 * 9 * + + SUM ( DISTINCT - 14 ) - + 36 + + + 59 col0
----
-77

query I rowsort
SELECT DISTINCT - 72 + + 17 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL 8 + - ( - 63 ) + - - ( - 18 ) * - COUNT( - 32 ) * - 76 AS col2
----
-1297

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL 8 + - ( - 63 ) + - - ( - 18 ) * - COUNT ( - 32 ) * - 76 AS col2
----
-1297

query I rowsort
SELECT ALL 31 + + 75
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL SUM( DISTINCT 41 ) col1
----
41

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL SUM ( DISTINCT 41 ) col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT - SUM( 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4006
SELECT - SUM ( 92 ) AS col1
----
-92

query I rowsort
SELECT + 13 + 38
----
51

query I rowsort
SELECT + 72 * + 33
----
2376

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4009
SELECT 60, ( 35 ) + 62 DIV - ( COUNT( * ) ) AS col0
----
60
-27

skipif mysql # not compatible
query II rowsort label-4009
SELECT 60, ( 35 ) + 62 / - ( COUNT ( * ) ) AS col0
----
60
-27

query I rowsort
SELECT ALL 95 + - 81 AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4011
SELECT - 65 + 11 / + COUNT( * ) + + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT - 65 + 11 / + COUNT ( * ) + + - CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT + 61, 11 AS col1
----
61
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4013
SELECT DISTINCT - 26 * + 2 * + - 84 * + COUNT( + 25 ) + - 2 AS col2, CASE + COUNT( * ) WHEN + - 44 + - NULLIF ( MAX( - 16 ), 40 + - + 7 * - - 5 ) * + - 55 THEN NULL WHEN - 99 + 77 THEN + 54 WHEN + COUNT( * ) + COUNT( * ) THEN NULL END + 33 * COUNT( * ) AS col1
----
4366
NULL

skipif mysql # not compatible
query II rowsort label-4013
SELECT DISTINCT - 26 * + 2 * + - 84 * + COUNT ( + 25 ) + - 2 AS col2, CASE + COUNT ( * ) WHEN + - 44 + - NULLIF ( MAX ( - 16 ), 40 + - + 7 * - - 5 ) * + - 55 THEN NULL WHEN - 99 + 77 THEN + 54 WHEN + COUNT ( * ) + COUNT ( * ) THEN NULL END + 33 * COUNT ( * ) AS col1
----
4366
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4014
SELECT ALL 68 - ( - + ( 52 ) ) - 94 * - 93 + + 40 DIV CAST( + ( 58 ) AS SIGNED )
----
8862

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL 68 - ( - + ( 52 ) ) - 94 * - 93 + + 40 / CAST ( + ( 58 ) AS INTEGER )
----
8862

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT - MAX( - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-4015
SELECT - MAX ( - 61 )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4016
SELECT ALL CASE + 99 WHEN - COUNT( * ) * + 2 * 74 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN + COUNT( DISTINCT + 87 ) THEN NULL ELSE + + CASE - - 47 WHEN COUNT( * ) THEN - 45 DIV COALESCE ( + COUNT( * ), - 66 ) WHEN + 17 * + COUNT( * ) + COUNT( * ) + 25 THEN + 96 * 46 ELSE 9 * + 53 END * 59 END - + 98 * 78 AS col1
----
20499

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL CASE + 99 WHEN - COUNT ( * ) * + 2 * 74 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN + COUNT ( DISTINCT + 87 ) THEN NULL ELSE + + CASE - - 47 WHEN COUNT ( * ) THEN - 45 / COALESCE ( + COUNT ( * ), - 66 ) WHEN + 17 * + COUNT ( * ) + COUNT ( * ) + 25 THEN + 96 * 46 ELSE 9 * + 53 END * 59 END - + 98 * 78 AS col1
----
20499

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4017
SELECT ALL CAST( + 41 AS SIGNED ) DIV 3 * + 65 + + 7 AS col1
----
852

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL CAST ( + 41 AS INTEGER ) / 3 * + 65 + + 7 AS col1
----
852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4018
SELECT ALL + + MIN( - CAST( NULL AS SIGNED ) ) * - 86 AS col0, - 86 AS col2
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-4018
SELECT ALL + + MIN ( - CAST ( NULL AS INTEGER ) ) * - 86 AS col0, - 86 AS col2
----
NULL
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL + CASE - 57 WHEN - 18 * 32 - - + 4 * - + ( - 53 ) THEN + + 12 + + 29 + 32 + - - COUNT( - - 22 ) * - COUNT( + - ( 63 ) ) WHEN + 16 * - COUNT( * ) * SUM( DISTINCT 82 ) THEN NULL WHEN - 11 + 58 * + 89 THEN - 1 - 7 ELSE COUNT( * ) + SUM( + ( 4 ) + + 98 ) END AS col1
----
103

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL + CASE - 57 WHEN - 18 * 32 - - + 4 * - + ( - 53 ) THEN + + 12 + + 29 + 32 + - - COUNT ( - - 22 ) * - COUNT ( + - ( 63 ) ) WHEN + 16 * - COUNT ( * ) * SUM ( DISTINCT 82 ) THEN NULL WHEN - 11 + 58 * + 89 THEN - 1 - 7 ELSE COUNT ( * ) + SUM ( + ( 4 ) + + 98 ) END AS col1
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT - COUNT( * ) * 28 * - 4 * - + CAST( - + 96 AS SIGNED ) - - COUNT( * ) + - MAX( + 60 ) AS col2
----
10693

skipif mysql # not compatible
query I rowsort label-4020
SELECT - COUNT ( * ) * 28 * - 4 * - + CAST ( - + 96 AS INTEGER ) - - COUNT ( * ) + - MAX ( + 60 ) AS col2
----
10693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4021
SELECT + + 88 * + CASE + + 26 WHEN ( + - 79 ) THEN - 45 - - 52 * + - CAST( NULL AS SIGNED ) + - SUM( DISTINCT + - 61 ) + - 25 WHEN + 21 THEN NULL WHEN + - 65 - 69 * - 59 / - - 29 + + ( - - 23 ) * + 78 THEN NULL ELSE - 61 + + 69 END
----
704

skipif mysql # not compatible
query I rowsort label-4021
SELECT + + 88 * + CASE + + 26 WHEN ( + - 79 ) THEN - 45 - - 52 * + - CAST ( NULL AS INTEGER ) + - SUM ( DISTINCT + - 61 ) + - 25 WHEN + 21 THEN NULL WHEN + - 65 - 69 * - 59 / - - 29 + + ( - - 23 ) * + 78 THEN NULL ELSE - 61 + + 69 END
----
704

query II rowsort
SELECT + 97, + 21 * + - 79 AS col1
----
97
-1659

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4023
SELECT + CAST( NULL AS SIGNED ), 63 * CASE 49 WHEN - 8 THEN - + 17 ELSE NULL END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4023
SELECT + CAST ( NULL AS INTEGER ), 63 * CASE 49 WHEN - 8 THEN - + 17 ELSE NULL END AS col0
----
NULL
NULL

query I rowsort
SELECT ALL 12 * COALESCE ( - 13, - - 17 ) AS col0
----
-156

query II rowsort
SELECT DISTINCT + 86, - 57 col2
----
86
-57

query II rowsort
SELECT + 70 AS col1, - ( + - 21 ) col0
----
70
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT COUNT( * ) * - - 55 * - - 34 + + 49 + - COUNT( * ) * + 67 AS col2
----
1852

skipif mysql # not compatible
query I rowsort label-4027
SELECT COUNT ( * ) * - - 55 * - - 34 + + 49 + - COUNT ( * ) * + 67 AS col2
----
1852

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ( + - SUM( DISTINCT + 44 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-4028
SELECT ( + - SUM ( DISTINCT + 44 ) )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-4029
SELECT - 97 DIV 20 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4029
SELECT - 97 / 20 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4030
SELECT - MIN( DISTINCT + - ( - NULLIF ( + 11, - CAST( + - 76 AS DECIMAL ) * 0 ) ) ) + - 47 * - 83 * - + 42, ( + + COUNT( * ) ) AS col2
----
-163853
1

skipif mysql # not compatible
query II rowsort label-4030
SELECT - MIN ( DISTINCT + - ( - NULLIF ( + 11, - CAST ( + - 76 AS REAL ) * 0 ) ) ) + - 47 * - 83 * - + 42, ( + + COUNT ( * ) ) AS col2
----
-163853
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT + COUNT( ALL + 29 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4031
SELECT + COUNT ( ALL + 29 ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4032
SELECT DISTINCT - 31 DIV - + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT - 31 / - + 68 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT + COUNT( * ) * + + 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4033
SELECT + COUNT ( * ) * + + 32 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4034
SELECT ALL - 13 + - + 25 * + + COUNT( * ) * - + CAST( + + 91 AS SIGNED )
----
2262

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL - 13 + - + 25 * + + COUNT ( * ) * - + CAST ( + + 91 AS INTEGER )
----
2262

query I rowsort
SELECT + 32 * - + ( 66 ) * - 21 + + 47 + - 39 AS col1
----
44360

query I rowsort
SELECT DISTINCT - 68 * ( + 60 ) * + 57
----
-232560

query I rowsort
SELECT ALL + 13 + + + 66
----
79

query I rowsort
SELECT ALL 90 + + 29 col2
----
119

query II rowsort
SELECT ALL - 50 * + ( ( + + 65 ) ) AS col0, + 45 * + + 84 + + 58 col1
----
-3250
3838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4040
SELECT 69 * + MAX( DISTINCT + - 78 ) DIV COUNT( * ) + + - 58 * - 74 AS col2
----
-1090

skipif mysql # not compatible
query I rowsort label-4040
SELECT 69 * + MAX ( DISTINCT + - 78 ) / COUNT ( * ) + + - 58 * - 74 AS col2
----
-1090

onlyif mysql # aggregate syntax: 
query II rowsort label-4041
SELECT DISTINCT SUM( + COALESCE ( - 10, + - 97 ) ) + - + 50, 91 col1
----
-60
91

skipif mysql # not compatible
query II rowsort label-4041
SELECT DISTINCT SUM ( + COALESCE ( - 10, + - 97 ) ) + - + 50, 91 col1
----
-60
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT + 54 * - + NULLIF ( + 91, - 39 ) + ( + + COUNT( * ) )
----
-4913

skipif mysql # not compatible
query I rowsort label-4042
SELECT + 54 * - + NULLIF ( + 91, - 39 ) + ( + + COUNT ( * ) )
----
-4913

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT + SUM( ALL - 19 ) + - - 38 col0
----
19

skipif mysql # not compatible
query I rowsort label-4043
SELECT + SUM ( ALL - 19 ) + - - 38 col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4044
SELECT DISTINCT COALESCE ( - CAST( ( + CASE + 40 WHEN + + 19 + 27 THEN + 24 ELSE NULL END ) AS SIGNED ), 59 ) - - 44 AS col2, + 56 AS col2
----
103
56

skipif mysql # not compatible
query II rowsort label-4044
SELECT DISTINCT COALESCE ( - CAST ( ( + CASE + 40 WHEN + + 19 + 27 THEN + 24 ELSE NULL END ) AS INTEGER ), 59 ) - - 44 AS col2, + 56 AS col2
----
103
56

query I rowsort
SELECT - 76 + + ( + 86 ) AS col1
----
10

query II rowsort
SELECT ALL ( - 82 ) AS col1, - 6
----
-82
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT 72 * - SUM( + 66 )
----
-4752

skipif mysql # not compatible
query I rowsort label-4047
SELECT 72 * - SUM ( + 66 )
----
-4752

query I rowsort
SELECT - 60 * + 97 AS col1
----
-5820

onlyif mysql # DIV for integer division: 
query I rowsort label-4049
SELECT - 87 DIV 30 + - - 66
----
64

skipif mysql # not compatible
query I rowsort label-4049
SELECT - 87 / 30 + - - 66
----
64

query I rowsort
SELECT - 4 * 11 AS col0
----
-44

query II rowsort
SELECT + 13 + 11, - ( + - 18 ) AS col2
----
24
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT - - 19 * - 79 / 81 + 90 + + 50 + - CAST( + - 17 AS SIGNED ) / - + 43 + - 15 + - CAST( NULL AS SIGNED ) + + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT - - 19 * - 79 / 81 + 90 + + 50 + - CAST ( + - 17 AS INTEGER ) / - + 43 + - 15 + - CAST ( NULL AS INTEGER ) + + + 94
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4053
SELECT ALL + + 95 DIV COUNT( * ) + - 33
----
62

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL + + 95 / COUNT ( * ) + - 33
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4054
SELECT DISTINCT 5 DIV COUNT( * ) - - + 61
----
66

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT 5 / COUNT ( * ) - - + 61
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT ALL - 70 + + - COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL - 70 + + - COUNT ( * ) AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4056
SELECT + CAST( 28 AS SIGNED ) + - 67 + - + 62 - + CASE + 17 WHEN - 21 THEN + 51 END / - 25 * + ( 26 ) * + COUNT( * ) * + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2, + 82 AS col0
----
NULL
82

skipif mysql # not compatible
query II rowsort label-4056
SELECT + CAST ( 28 AS INTEGER ) + - 67 + - + 62 - + CASE + 17 WHEN - 21 THEN + 51 END / - 25 * + ( 26 ) * + COUNT ( * ) * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2, + 82 AS col0
----
NULL
82

query I rowsort
SELECT 48 * - 77 AS col1
----
-3696

query I rowsort
SELECT 83 + + 4 * - 67
----
-185

query I rowsort
SELECT ALL 68 + - - 65
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-4060
SELECT + 83 AS col0, + COUNT( * ) * + 1 + - 19
----
83
-18

skipif mysql # not compatible
query II rowsort label-4060
SELECT + 83 AS col0, + COUNT ( * ) * + 1 + - 19
----
83
-18

query I rowsort
SELECT + 22 * 22 + + 0 - + - 33 * - + 22 * + 11 AS col2
----
-7502

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT + 47 * SUM( + 62 ) + + + 73 + - 62 * 49 * COUNT( * ) + + - 31
----
-82

skipif mysql # not compatible
query I rowsort label-4062
SELECT + 47 * SUM ( + 62 ) + + + 73 + - 62 * 49 * COUNT ( * ) + + - 31
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT ALL - COALESCE ( 55, - CAST( NULL AS SIGNED ), - - 55 * + + 19 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL - COALESCE ( 55, - CAST ( NULL AS INTEGER ), - - 55 * + + 19 ) AS col1
----
-55

query I rowsort
SELECT ALL - 26 + 41 + - ( - + 76 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT MAX( DISTINCT - - 16 ) + + 55 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-4065
SELECT MAX ( DISTINCT - - 16 ) + + 55 AS col2
----
71

query I rowsort
SELECT ALL 32 * + 44 AS col2
----
1408

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT 83 + - + COUNT( * ) + - CASE - 28 WHEN - + COUNT( * ) THEN - 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT 83 + - + COUNT ( * ) + - CASE - 28 WHEN - + COUNT ( * ) THEN - 71 END
----
NULL

query II rowsort
SELECT 12 AS col0, - 99
----
12
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT ALL - NULLIF ( - + 36, 52 * + MIN( DISTINCT + - 15 ) )
----
36

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL - NULLIF ( - + 36, 52 * + MIN ( DISTINCT + - 15 ) )
----
36

query I rowsort
SELECT 99 * + 28 * 19
----
52668

query I rowsort
SELECT DISTINCT + 9 + 56 + - + 4 + + + 95 AS col1
----
156

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4072
SELECT - 10, CAST( NULL AS DECIMAL ) AS col2
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-4072
SELECT - 10, CAST ( NULL AS REAL ) AS col2
----
-10
NULL

query I rowsort
SELECT 18 + + 99
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4074
SELECT ALL + MAX( 96 ) DIV + + COUNT( + - NULLIF ( + + 32, 90 ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + MAX ( 96 ) / + + COUNT ( + - NULLIF ( + + 32, 90 ) ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4075
SELECT 89 * + MAX( ALL 80 ) AS col0, - 86 * - + 46 + + 34 AS col1
----
7120
3990

skipif mysql # not compatible
query II rowsort label-4075
SELECT 89 * + MAX ( ALL 80 ) AS col0, - 86 * - + 46 + + 34 AS col1
----
7120
3990

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT DISTINCT 83 - - + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT 83 - - + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT 4 + - COUNT( * ) * + - 25
----
29

skipif mysql # not compatible
query I rowsort label-4077
SELECT 4 + - COUNT ( * ) * + - 25
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4078
SELECT DISTINCT - 46 - + CAST( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) * - 72 + - ( + ( COUNT( ALL 24 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT - 46 - + CAST ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) * - 72 + - ( + ( COUNT ( ALL 24 ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4079
SELECT DISTINCT - NULLIF ( - AVG ( + 62 ), - AVG ( ALL - 89 ) + - 19 + + COUNT( * ) + + - 5 * + 3 + - + COUNT( * ) * - 73 / - CAST( NULL AS SIGNED ) ) * + + CAST( NULL AS SIGNED ) * - 39 - - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - NULLIF ( - AVG ( + 62 ), - AVG ( ALL - 89 ) + - 19 + + COUNT ( * ) + + - 5 * + 3 + - + COUNT ( * ) * - 73 / - CAST ( NULL AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) * - 39 - - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT 14 + + 10 + - + ( + - COUNT( + 15 ) ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4080
SELECT 14 + + 10 + - + ( + - COUNT ( + 15 ) ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT DISTINCT + COUNT( * ) - - + 69 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT + COUNT ( * ) - - + 69 AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4082
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + 90 col2
----
NULL
90

skipif mysql # not compatible
query II rowsort label-4082
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 90 col2
----
NULL
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4083
SELECT NULLIF ( - + COALESCE ( - MIN( DISTINCT + 82 ), - + 42, CAST( NULL AS SIGNED ) + 69 + + 69 ), - - 21 / - - 17 + 32 + + 67 * - 0 - 80 + - 54 ) - - 54 col1
----
136

skipif mysql # not compatible
query I rowsort label-4083
SELECT NULLIF ( - + COALESCE ( - MIN ( DISTINCT + 82 ), - + 42, CAST ( NULL AS INTEGER ) + 69 + + 69 ), - - 21 / - - 17 + 32 + + 67 * - 0 - 80 + - 54 ) - - 54 col1
----
136

query I rowsort
SELECT DISTINCT - 43 * + 38 AS col1
----
-1634

query II rowsort
SELECT 8 * 90 * - 27, + 87 * 63 AS col0
----
-19440
5481

query I rowsort
SELECT + 44 + - 87
----
-43

query I rowsort
SELECT 87 * + ( - 74 ) + + ( - 24 ) + - 39
----
-6501

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT ALL SUM( - + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL SUM ( - + 35 )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT ALL CAST( + 84 AS SIGNED ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL CAST ( + 84 AS INTEGER ) AS col1
----
84

query I rowsort
SELECT DISTINCT 36 * - 83 AS col2
----
-2988

query I rowsort
SELECT DISTINCT + - 42 * + 92 + + ( - 75 ) + 83 + + 41
----
-3815

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT ALL COALESCE ( - 86, COUNT( * ) * + MAX( ALL + 78 ) ) * - - 77
----
-6622

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL COALESCE ( - 86, COUNT ( * ) * + MAX ( ALL + 78 ) ) * - - 77
----
-6622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4093
SELECT - 90 / 82 * + 71 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT - 90 / 82 * + 71 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 60 * + 25 + - 68
----
-1568

onlyif mysql # aggregate syntax: 
query II rowsort label-4095
SELECT DISTINCT 93 * - COUNT( * ) + COALESCE ( - - ( + COUNT( * ) ), 47 ), + 95 * + 3 * + ( - - 70 ) * 82 + - + MIN( DISTINCT - 72 ) + ( - COUNT( * ) ) AS col2
----
-92
1635971

skipif mysql # not compatible
query II rowsort label-4095
SELECT DISTINCT 93 * - COUNT ( * ) + COALESCE ( - - ( + COUNT ( * ) ), 47 ), + 95 * + 3 * + ( - - 70 ) * 82 + - + MIN ( DISTINCT - 72 ) + ( - COUNT ( * ) ) AS col2
----
-92
1635971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4096
SELECT ALL - CASE - + 61 WHEN - 40 THEN NULL WHEN + - 2 * CAST( NULL AS SIGNED ) + - 69 THEN + 48 END * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - CASE - + 61 WHEN - 40 THEN NULL WHEN + - 2 * CAST ( NULL AS INTEGER ) + - 69 THEN + 48 END * - 81
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT ALL 68 * + 28 + + + ( + 97 ) DIV 24 AS col1
----
1908

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL 68 * + 28 + + + ( + 97 ) / 24 AS col1
----
1908

query I rowsort
SELECT + ( + 23 ) * - 51 AS col2
----
-1173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4099
SELECT ALL COUNT( * ) DIV - 29 * + - 71 col1
----
0

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL COUNT ( * ) / - 29 * + - 71 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT + COUNT( * ) * + 59
----
59

skipif mysql # not compatible
query I rowsort label-4100
SELECT + COUNT ( * ) * + 59
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4101
SELECT + COALESCE ( - CAST( - 96 AS SIGNED ), - 24 ) col1, COUNT( * )
----
96
1

skipif mysql # not compatible
query II rowsort label-4101
SELECT + COALESCE ( - CAST ( - 96 AS INTEGER ), - 24 ) col1, COUNT ( * )
----
96
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4102
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) * - 43 + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 43 + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT COUNT( DISTINCT 16 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4103
SELECT COUNT ( DISTINCT 16 ) col1
----
1

query II rowsort
SELECT + ( + 30 ) * + 71 + 2, + 18 AS col1
----
2132
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT + SUM( DISTINCT - - 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-4105
SELECT + SUM ( DISTINCT - - 34 ) AS col2
----
34

query I rowsort
SELECT + 43 + + - 58
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4107
SELECT ALL COUNT( * ) - + NULLIF ( + CAST( - MAX( ALL - 26 ) AS SIGNED ), + - 40 ) * - + 66 AS col2
----
1717

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL COUNT ( * ) - + NULLIF ( + CAST ( - MAX ( ALL - 26 ) AS INTEGER ), + - 40 ) * - + 66 AS col2
----
1717

query I rowsort
SELECT ALL 42 * - 79 col2
----
-3318

onlyif mysql # DIV for integer division: 
query I rowsort label-4109
SELECT - 7 * 95 DIV 33
----
-20

skipif mysql # not compatible
query I rowsort label-4109
SELECT - 7 * 95 / 33
----
-20

query I rowsort
SELECT + 22 + - - 0 AS col1
----
22

query I rowsort
SELECT NULLIF ( - 57, + - 64 )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4112
SELECT 66 AS col0, MAX( 22 ) DIV 73 * + 10 + + 27 col0
----
66
27

skipif mysql # not compatible
query II rowsort label-4112
SELECT 66 AS col0, MAX ( 22 ) / 73 * + 10 + + 27 col0
----
66
27

query I rowsort
SELECT - - 44 * 76 AS col0
----
3344

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT - - CASE + 52 WHEN - 80 THEN NULL WHEN + 7 * 25 + - - COALESCE ( - 53, + 49, ( - 91 ) ) * + 72 * + - 23 * 69 - 31 THEN - - 19 * ( - - MAX( ALL + - 65 ) ) + - + 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT - - CASE + 52 WHEN - 80 THEN NULL WHEN + 7 * 25 + - - COALESCE ( - 53, + 49, ( - 91 ) ) * + 72 * + - 23 * 69 - 31 THEN - - 19 * ( - - MAX ( ALL + - 65 ) ) + - + 55 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4115
SELECT ALL - MAX( - - 84 ) DIV - 52 + - 63
----
-62

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL - MAX ( - - 84 ) / - 52 + - 63
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT - COUNT( - 85 ) * + 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-4116
SELECT - COUNT ( - 85 ) * + 42 AS col0
----
-42

query I rowsort
SELECT ALL + + 41 * + 82 * + 43 * + 22 AS col0
----
3180452

query I rowsort
SELECT ALL + + 24 + - 99
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4119
SELECT - COUNT( * ) / 55 * - COUNT( * ) * - - 1 * - CAST( NULL AS SIGNED ) * - CASE - CAST( - 23 AS SIGNED ) WHEN - COUNT( * ) * - 21 * SUM( + + 0 ) + 16 THEN + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4119
SELECT - COUNT ( * ) / 55 * - COUNT ( * ) * - - 1 * - CAST ( NULL AS INTEGER ) * - CASE - CAST ( - 23 AS INTEGER ) WHEN - COUNT ( * ) * - 21 * SUM ( + + 0 ) + 16 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 29 + - 66 + + 14
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT - COUNT( * ) + - + 88 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-4121
SELECT - COUNT ( * ) + - + 88 AS col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4122
SELECT DISTINCT - + 11 * + + 42 + 0 DIV 63 + 29 col2
----
-433

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT - + 11 * + + 42 + 0 / 63 + 29 col2
----
-433

onlyif mysql # aggregate syntax: 
query II rowsort label-4123
SELECT ALL + 15, - COUNT( * ) col2
----
15
-1

skipif mysql # not compatible
query II rowsort label-4123
SELECT ALL + 15, - COUNT ( * ) col2
----
15
-1

query II rowsort
SELECT + 72, 3 AS col2
----
72
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT + - 93 * - MIN( DISTINCT 77 )
----
7161

skipif mysql # not compatible
query I rowsort label-4125
SELECT + - 93 * - MIN ( DISTINCT 77 )
----
7161

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL - CASE + 44 WHEN - 18 THEN + AVG ( + ( + + 67 ) ) * + 32 WHEN COUNT( * ) THEN + 70 END / - 64 + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL - CASE + 44 WHEN - 18 THEN + AVG ( + ( + + 67 ) ) * + 32 WHEN COUNT ( * ) THEN + 70 END / - 64 + - 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4127
SELECT + CAST( NULL AS DECIMAL ) / - ( 35 ) * + 26 + + - 84 + + + 43 + 15 * + AVG ( - 4 ) * - - 36 * + MAX( - ( + 7 ) ) + 7 + + 29 - - - 92 - 87 + - - 82 / 9 + - 90 * - 52 * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT + CAST ( NULL AS REAL ) / - ( 35 ) * + 26 + + - 84 + + + 43 + 15 * + AVG ( - 4 ) * - - 36 * + MAX ( - ( + 7 ) ) + 7 + + 29 - - - 92 - 87 + - - 82 / 9 + - 90 * - 52 * + 64
----
NULL

query II rowsort
SELECT - 27 + + - 2 AS col2, ( + 4 )
----
-29
4

query I rowsort
SELECT ALL + ( 83 ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT ALL COUNT( 73 ) * - + 5 * - 89
----
445

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL COUNT ( 73 ) * - + 5 * - 89
----
445

query I rowsort
SELECT + 14 * + 84 + + 5 AS col0
----
1181

onlyif mysql # DIV for integer division: 
query I rowsort label-4132
SELECT ALL 26 DIV + - COALESCE ( - 35, + 41 - 57 ) + - 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL 26 / + - COALESCE ( - 35, + 41 - 57 ) + - 28 AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT + CAST( NULL AS SIGNED ) * + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT + CAST ( NULL AS INTEGER ) * + - 60
----
NULL

query I rowsort
SELECT + 73 + + + 66 + - 0 * - COALESCE ( - - 35, - 10 ) * 56
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-4135
SELECT ALL COUNT( DISTINCT - + 60 ) * 91, - 79 AS col1
----
91
-79

skipif mysql # not compatible
query II rowsort label-4135
SELECT ALL COUNT ( DISTINCT - + 60 ) * 91, - 79 AS col1
----
91
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4136
SELECT ( - 70 ), CAST( NULL AS SIGNED ) * + - 44 col2
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-4136
SELECT ( - 70 ), CAST ( NULL AS INTEGER ) * + - 44 col2
----
-70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT 0 * + + MIN( ALL + + 8 ) + 4
----
4

skipif mysql # not compatible
query I rowsort label-4137
SELECT 0 * + + MIN ( ALL + + 8 ) + 4
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4138
SELECT DISTINCT + COALESCE ( - 58, - 40 + + + 59 DIV - + MAX( - + 97 ) * + 0 * - - COUNT( * ) * + 24 )
----
-58

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT + COALESCE ( - 58, - 40 + + + 59 / - + MAX ( - + 97 ) * + 0 * - - COUNT ( * ) * + 24 )
----
-58

query I rowsort
SELECT ALL - 91 * - 55 AS col2
----
5005

onlyif mysql # DIV for integer division: 
query I rowsort label-4140
SELECT + 7 DIV + + 86
----
0

skipif mysql # not compatible
query I rowsort label-4140
SELECT + 7 / + + 86
----
0

query I rowsort
SELECT COALESCE ( - 25, - 12 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4142
SELECT - CASE 5 WHEN + 60 * 24 + - 97 * MIN( 30 ) THEN + + 91 WHEN + - COUNT( DISTINCT - 70 ) * - - CASE + COUNT( * ) WHEN - 29 THEN - MAX( ( + 14 ) ) ELSE CAST( - - COUNT( * ) AS SIGNED ) * - 45 END + - 94 THEN NULL ELSE NULL END * + 14 - + 75 + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4142
SELECT - CASE 5 WHEN + 60 * 24 + - 97 * MIN ( 30 ) THEN + + 91 WHEN + - COUNT ( DISTINCT - 70 ) * - - CASE + COUNT ( * ) WHEN - 29 THEN - MAX ( ( + 14 ) ) ELSE CAST ( - - COUNT ( * ) AS INTEGER ) * - 45 END + - 94 THEN NULL ELSE NULL END * + 14 - + 75 + 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT + 59 + + - COUNT( * ) + - 81 * - + 35
----
2893

skipif mysql # not compatible
query I rowsort label-4143
SELECT + 59 + + - COUNT ( * ) + - 81 * - + 35
----
2893

query I rowsort
SELECT ( + + AVG ( + + CASE - + 41 WHEN 24 / + + 74 * - + 2 + - 89 THEN - 14 * - - 33 END ) )
----
NULL

query I rowsort
SELECT + + 15 + - 4
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL + + 72 * + 50 + - + SUM( ALL + 59 ) + + COUNT( * ) * + + 57
----
3598

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL + + 72 * + 50 + - + SUM ( ALL + 59 ) + + COUNT ( * ) * + + 57
----
3598

query I rowsort
SELECT - ( CASE 74 WHEN ( - + 41 ) THEN - 97 - + 96 ELSE - 5 END )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT DISTINCT + 42 * 76 * - COALESCE ( COUNT( * ), - MIN( - 16 ) - + 97 ) + 4 + + 96 - - 6 * + - 48 + + COUNT( * ) AS col0
----
-3379

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT + 42 * 76 * - COALESCE ( COUNT ( * ), - MIN ( - 16 ) - + 97 ) + 4 + + 96 - - 6 * + - 48 + + COUNT ( * ) AS col0
----
-3379

query I rowsort
SELECT DISTINCT - 91 + + 23 AS col0
----
-68

query II rowsort
SELECT DISTINCT - 85 + - 80 AS col2, 62 - + - 78
----
-165
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL CASE + 61 WHEN + COUNT( DISTINCT + + 16 ) * - 62 * - + COUNT( * ) THEN + 31 WHEN + 37 THEN NULL ELSE NULL END + + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL CASE + 61 WHEN + COUNT ( DISTINCT + + 16 ) * - 62 * - + COUNT ( * ) THEN + 31 WHEN + 37 THEN NULL ELSE NULL END + + 90 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4152
SELECT DISTINCT + - 51 + - + 69 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT + - 51 + - + 69 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT + 36 - + MIN( DISTINCT - + 81 ) AS col0
----
117

skipif mysql # not compatible
query I rowsort label-4153
SELECT + 36 - + MIN ( DISTINCT - + 81 ) AS col0
----
117

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4154
SELECT - + 72 + 15 * - + 89 + - - COALESCE ( - - 52, 86 DIV + - CAST( ( + CAST( - + CAST( + 54 AS SIGNED ) AS SIGNED ) ) AS SIGNED ) * - 48 * - 41 DIV - + 50 ) + - - 90 AS col1
----
-1265

skipif mysql # not compatible
query I rowsort label-4154
SELECT - + 72 + 15 * - + 89 + - - COALESCE ( - - 52, 86 / + - CAST ( ( + CAST ( - + CAST ( + 54 AS INTEGER ) AS INTEGER ) ) AS INTEGER ) * - 48 * - 41 / - + 50 ) + - - 90 AS col1
----
-1265

query I rowsort
SELECT ALL + 92 + - 49
----
43

query I rowsort
SELECT - ( 45 ) AS col2
----
-45

query I rowsort
SELECT 16 + + 74 col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL - + 9 + - SUM( DISTINCT ( - 62 ) )
----
53

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - + 9 + - SUM ( DISTINCT ( - 62 ) )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4159
SELECT - 81 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4159
SELECT - 81 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT DISTINCT - CASE + 83 WHEN - MAX( DISTINCT - 17 ) THEN + 82 + - 45 + ( 48 ) / + + 3 END / - COALESCE ( 6, - + 1 ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT - CASE + 83 WHEN - MAX ( DISTINCT - 17 ) THEN + 82 + - 45 + ( 48 ) / + + 3 END / - COALESCE ( 6, - + 1 ) * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT ALL + - 96 * 8 DIV 1 + + 72
----
-696

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + - 96 * 8 / 1 + + 72
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT DISTINCT + COUNT( * ) * - MAX( DISTINCT + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT + COUNT ( * ) * - MAX ( DISTINCT + 46 )
----
-46

query I rowsort
SELECT 89 * 55 AS col2
----
4895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4164
SELECT CAST( + - 96 AS SIGNED ) * - CAST( NULL AS SIGNED ) * + COUNT( * ) * CASE - - 18 WHEN - - 53 THEN + 78 + - ( MIN( + 42 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT CAST ( + - 96 AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * CASE - - 18 WHEN - - 53 THEN + 78 + - ( MIN ( + 42 ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT 99 * + - COUNT( * ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-4165
SELECT 99 * + - COUNT ( * ) AS col0
----
-99

query I rowsort
SELECT ALL + 22 * + + 41 AS col2
----
902

query II rowsort
SELECT + 38, 85 col2
----
38
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT 89 * + COUNT( * ) * - COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-4168
SELECT 89 * + COUNT ( * ) * - COUNT ( * ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT MAX( DISTINCT - + 2 ) * - 48 + + 54 - + 66
----
84

skipif mysql # not compatible
query I rowsort label-4169
SELECT MAX ( DISTINCT - + 2 ) * - 48 + + 54 - + 66
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL 25 * + COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL 25 * + COUNT ( * ) AS col2
----
25

query I rowsort
SELECT 14 * 32
----
448

query II rowsort
SELECT DISTINCT - 50, 54 AS col1
----
-50
54

query I rowsort
SELECT DISTINCT 43 * + 10 AS col1
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT 27 * - ( MIN( - 83 ) ) AS col1
----
2241

skipif mysql # not compatible
query I rowsort label-4174
SELECT 27 * - ( MIN ( - 83 ) ) AS col1
----
2241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4175
SELECT ALL - ( - - 18 ) * + 60 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL - ( - - 18 ) * + 60 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 4 * - - 17
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT - COUNT( ALL NULLIF ( + 71, + ( + ( 51 ) ) - + 30 - - + 18 + + - 88 ) ) * - 99 + - ( + 46 ) - - - 93
----
-40

skipif mysql # not compatible
query I rowsort label-4177
SELECT - COUNT ( ALL NULLIF ( + 71, + ( + ( 51 ) ) - + 30 - - + 18 + + - 88 ) ) * - 99 + - ( + 46 ) - - - 93
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT ALL 42 * COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL 42 * COUNT ( * ) AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4179
SELECT - ( - 53 ) DIV - - 67, 33 DIV + CAST( NULL AS SIGNED ) * + 81 * - 34 + 29 DIV + - 9 + 52 + + 11 col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4179
SELECT - ( - 53 ) / - - 67, 33 / + CAST ( NULL AS INTEGER ) * + 81 * - 34 + 29 / + - 9 + 52 + + 11 col1
----
0
NULL

query I rowsort
SELECT ALL 71 + - - 52 * - + 88
----
-4505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4181
SELECT 93 + + - CAST( - 77 AS SIGNED ) AS col2
----
170

skipif mysql # not compatible
query I rowsort label-4181
SELECT 93 + + - CAST ( - 77 AS INTEGER ) AS col2
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT ALL + 73 DIV + 91 * 62 + + 64
----
64

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL + 73 / + 91 * 62 + + 64
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4183
SELECT - + COUNT( * ) col2, 47
----
-1
47

skipif mysql # not compatible
query II rowsort label-4183
SELECT - + COUNT ( * ) col2, 47
----
-1
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4184
SELECT 62 * - CAST( NULL AS SIGNED ) - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT 62 * - CAST ( NULL AS INTEGER ) - + 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4185
SELECT NULLIF ( + CASE + NULLIF ( + 37, - - 39 ) WHEN + - 95 THEN NULL ELSE - COUNT( * ) * 28 END, + 89 * - + CAST( 33 AS SIGNED ) + + NULLIF ( + + 68, + COUNT( * ) * 46 - - - 31 ) + 63 + + 52 - + 16 * + COUNT( * ) ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4185
SELECT NULLIF ( + CASE + NULLIF ( + 37, - - 39 ) WHEN + - 95 THEN NULL ELSE - COUNT ( * ) * 28 END, + 89 * - + CAST ( 33 AS INTEGER ) + + NULLIF ( + + 68, + COUNT ( * ) * 46 - - - 31 ) + 63 + + 52 - + 16 * + COUNT ( * ) ) AS col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4186
SELECT 93 DIV - ( 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-4186
SELECT 93 / - ( 81 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT + 4 + + COUNT( * ) * - - ( 34 ) + 93 col1
----
131

skipif mysql # not compatible
query I rowsort label-4187
SELECT + 4 + + COUNT ( * ) * - - ( 34 ) + 93 col1
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT ALL CAST( 37 AS SIGNED ) + + 84 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL CAST ( 37 AS INTEGER ) + + 84 AS col0
----
121

query I rowsort
SELECT - ( - 94 ) * + + 7 + + 18 + 20
----
696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT ALL + 71 * - ( 14 ) * CAST( - 94 AS SIGNED ) AS col2
----
93436

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL + 71 * - ( 14 ) * CAST ( - 94 AS INTEGER ) AS col2
----
93436

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT ALL - SUM( 23 ) - + + 69 - - ( SUM( ALL - 35 ) )
----
-127

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL - SUM ( 23 ) - + + 69 - - ( SUM ( ALL - 35 ) )
----
-127

onlyif mysql # aggregate syntax: 
query II rowsort label-4192
SELECT ALL - 21, + 32 * - COUNT( DISTINCT + + 78 ) AS col2
----
-21
-32

skipif mysql # not compatible
query II rowsort label-4192
SELECT ALL - 21, + 32 * - COUNT ( DISTINCT + + 78 ) AS col2
----
-21
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4193
SELECT DISTINCT 1, - CAST( NULL AS SIGNED ) + + 41 * - + COUNT( * ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4193
SELECT DISTINCT 1, - CAST ( NULL AS INTEGER ) + + 41 * - + COUNT ( * ) AS col1
----
1
NULL

query I rowsort
SELECT 63 + - 1 * - - 77
----
-14

query I rowsort
SELECT ( 96 ) + 72
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT 8 - - CAST( NULL AS SIGNED ) * 80 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT 8 - - CAST ( NULL AS INTEGER ) * 80 col2
----
NULL

query I rowsort
SELECT 82 + 41
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4198
SELECT SUM( + 72 ) DIV 10 DIV + 52 * MAX( ALL - - 96 )
----
0

skipif mysql # not compatible
query I rowsort label-4198
SELECT SUM ( + 72 ) / 10 / + 52 * MAX ( ALL - - 96 )
----
0

query I rowsort
SELECT DISTINCT - ( - + 67 ) AS col2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4200
SELECT ALL 20 DIV + - 43 * + 61 col2
----
0

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL 20 / + - 43 * + 61 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT ALL - ( 14 ) * + 38 * CAST( 82 AS SIGNED ) * 15 + - 80 col0
----
-654440

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL - ( 14 ) * + 38 * CAST ( 82 AS INTEGER ) * 15 + - 80 col0
----
-654440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT 37 * - CASE + - ( - 85 ) WHEN - 53 THEN - 90 / + 26 * - - 54 * - CAST( NULL AS SIGNED ) - + 65 * + 3 / + - 87 END + 38 + - - ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT 37 * - CASE + - ( - 85 ) WHEN - 53 THEN - 90 / + 26 * - - 54 * - CAST ( NULL AS INTEGER ) - + 65 * + 3 / + - 87 END + 38 + - - ( - COUNT ( * ) )
----
NULL

query II rowsort
SELECT ALL - 65 * - ( - - ( 40 ) ) col2, - 87 AS col1
----
2600
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4204
SELECT - CASE + + NULLIF ( - 16, COALESCE ( + 49, - - CAST( 97 AS SIGNED ) ) ) WHEN - - MIN( - - 15 ) + + + AVG ( ALL 64 ) * + - 90 THEN + 82 + + - 80 / 45 WHEN 78 THEN - 23 END / + - 18 + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4204
SELECT - CASE + + NULLIF ( - 16, COALESCE ( + 49, - - CAST ( 97 AS INTEGER ) ) ) WHEN - - MIN ( - - 15 ) + + + AVG ( ALL 64 ) * + - 90 THEN + 82 + + - 80 / 45 WHEN 78 THEN - 23 END / + - 18 + 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT CASE + 52 WHEN - 72 THEN 56 / - - 92 + + COUNT( * ) * - - 40 - 5 WHEN - 44 THEN NULL ELSE NULL END * - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT CASE + 52 WHEN - 72 THEN 56 / - - 92 + + COUNT ( * ) * - - 40 - 5 WHEN - 44 THEN NULL ELSE NULL END * - 40 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT ALL + ( + CAST( + 53 AS SIGNED ) ) * + 69 AS col1
----
3657

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL + ( + CAST ( + 53 AS INTEGER ) ) * + 69 AS col1
----
3657

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4207
SELECT ALL - COUNT( - - 51 ) + - 14 DIV + 23
----
-1

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL - COUNT ( - - 51 ) + - 14 / + 23
----
-1

query I rowsort
SELECT 43 + + 88 + + 92 + - 69 + 22
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT - ( - 87 ) + - + ( + + ( + NULLIF ( + 39, + ( + COUNT( * ) ) ) ) )
----
48

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT - ( - 87 ) + - + ( + + ( + NULLIF ( + 39, + ( + COUNT ( * ) ) ) ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT + 34 * - SUM( DISTINCT 52 )
----
-1768

skipif mysql # not compatible
query I rowsort label-4210
SELECT + 34 * - SUM ( DISTINCT 52 )
----
-1768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4211
SELECT DISTINCT - 66 + - - NULLIF ( - COUNT( * ), + 90 ) DIV - ( 26 ) * 50 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT - 66 + - - NULLIF ( - COUNT ( * ), + 90 ) / - ( 26 ) * 50 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT ALL + 7 + + COUNT( * ) + + 95
----
103

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL + 7 + + COUNT ( * ) + + 95
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT DISTINCT - - SUM( ALL + 17 ) * 56 AS col1
----
952

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT - - SUM ( ALL + 17 ) * 56 AS col1
----
952

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT + MAX( ALL 59 ) * - COUNT( ALL - 82 )
----
-59

skipif mysql # not compatible
query I rowsort label-4214
SELECT + MAX ( ALL 59 ) * - COUNT ( ALL - 82 )
----
-59

query I rowsort
SELECT ALL - + 42 + + + 99 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL + COUNT( * ) * - ( - ( - COUNT( * ) ) ) * + - 48
----
48

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL + COUNT ( * ) * - ( - ( - COUNT ( * ) ) ) * + - 48
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4217
SELECT 11 * ( + CAST( NULL AS SIGNED ) ) * + 1 + 49 + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4217
SELECT 11 * ( + CAST ( NULL AS INTEGER ) ) * + 1 + 49 + - 12
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( - 72, + 30 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT - COUNT( * ) * + + 33 * + COALESCE ( 42, + 56 ) * + + 89
----
-123354

skipif mysql # not compatible
query I rowsort label-4219
SELECT - COUNT ( * ) * + + 33 * + COALESCE ( 42, + 56 ) * + + 89
----
-123354

query I rowsort
SELECT 77 * + - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL - + ( + - NULLIF ( 44, + 93 ) ) - + - MIN( - + 8 )
----
36

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL - + ( + - NULLIF ( 44, + 93 ) ) - + - MIN ( - + 8 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4222
SELECT DISTINCT + + 92 * CAST( + 81 AS SIGNED ) * - CASE - 27 WHEN - 19 THEN - 23 END + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT + + 92 * CAST ( + 81 AS INTEGER ) * - CASE - 27 WHEN - 19 THEN - 23 END + + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT - - COUNT( * ) * + 16 + + COALESCE ( - 15, - - 74, - ( - ( + + 68 ) ) * SUM( DISTINCT + 57 ) - + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-4223
SELECT - - COUNT ( * ) * + 16 + + COALESCE ( - 15, - - 74, - ( - ( + + 68 ) ) * SUM ( DISTINCT + 57 ) - + 20 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL + - COUNT( * ) * - + 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL + - COUNT ( * ) * - + 44 AS col0
----
44

query I rowsort
SELECT + - 20 + + ( 2 )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4226
SELECT ALL + 51 DIV + + 82
----
0

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL + 51 / + + 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT + CASE 5 WHEN 21 THEN 19 / 73 ELSE NULL END * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT + CASE 5 WHEN 21 THEN 19 / 73 ELSE NULL END * - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT - - SUM( DISTINCT - 66 ) + - 7 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4228
SELECT - - SUM ( DISTINCT - 66 ) + - 7 AS col1
----
-73

query I rowsort
SELECT + 50 + + 5 + + + 97 / - + 73 * - CASE - 34 WHEN + - 45 + 26 THEN + 2 - 55 END / 12 + - 68
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 27, + 77 + + 19 * + - 55 )
----
-27

query I rowsort
SELECT DISTINCT CASE 14 WHEN - - 26 THEN + 2 + + - 9 * 78 + ( - 99 ) * 36 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4232
SELECT - CASE + 42 WHEN - - 9 THEN - 86 - 86 + + 52 / CASE - - 98 WHEN + 13 THEN NULL ELSE + + 30 + - 20 + MAX( ALL - - 72 ) + - - COUNT( * ) * + 97 END * + 14 * + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4232
SELECT - CASE + 42 WHEN - - 9 THEN - 86 - 86 + + 52 / CASE - - 98 WHEN + 13 THEN NULL ELSE + + 30 + - 20 + MAX ( ALL - - 72 ) + - - COUNT ( * ) * + 97 END * + 14 * + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT ALL 79 * + 9 * - - 44 AS col0
----
31284

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT + 90 * ( - COUNT( * ) ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4234
SELECT + 90 * ( - COUNT ( * ) ) AS col1
----
-90

query II rowsort
SELECT DISTINCT 97 AS col2, + 71
----
97
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT - COUNT( DISTINCT - 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-4236
SELECT - COUNT ( DISTINCT - 56 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4237
SELECT ALL + 32 * 63 + + + COALESCE ( - ( + 52 ), + COALESCE ( CAST( + 95 AS SIGNED ), 23 - - - MIN( DISTINCT - - 25 ), + COUNT( * ) * 43 + + - COUNT( * ) - - 0, + ( CASE + 59 WHEN 69 THEN - 41 WHEN + 97 THEN NULL END ) * + 44 ) * - COUNT( * ) ) + - 10 * + + COALESCE ( 12, COUNT( * ) + - 78 * + NULLIF ( - NULLIF ( 88, + 14 + - COUNT( * ) ) DIV 0, 87 + 71 ), - 86 ) * 97
----
-9676

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL + 32 * 63 + + + COALESCE ( - ( + 52 ), + COALESCE ( CAST ( + 95 AS INTEGER ), 23 - - - MIN ( DISTINCT - - 25 ), + COUNT ( * ) * 43 + + - COUNT ( * ) - - 0, + ( CASE + 59 WHEN 69 THEN - 41 WHEN + 97 THEN NULL END ) * + 44 ) * - COUNT ( * ) ) + - 10 * + + COALESCE ( 12, COUNT ( * ) + - 78 * + NULLIF ( - NULLIF ( 88, + 14 + - COUNT ( * ) ) / 0, 87 + 71 ), - 86 ) * 97
----
-9676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4238
SELECT CAST( + 43 AS SIGNED ) / - + MIN( DISTINCT - - 21 ) * - CASE 35 WHEN + + CAST( NULL AS SIGNED ) THEN - 51 ELSE NULL END + 47 * + - ( - - 53 ) - - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT CAST ( + 43 AS INTEGER ) / - + MIN ( DISTINCT - - 21 ) * - CASE 35 WHEN + + CAST ( NULL AS INTEGER ) THEN - 51 ELSE NULL END + 47 * + - ( - - 53 ) - - 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT + 54 * + CASE COUNT( * ) WHEN 72 * 38 THEN NULL WHEN + 98 + + 91 THEN - 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4239
SELECT + 54 * + CASE COUNT ( * ) WHEN 72 * 38 THEN NULL WHEN + 98 + + 91 THEN - 44 END
----
NULL

query I rowsort
SELECT + 60 * - - 52 * - 35
----
-109200

query I rowsort
SELECT ALL + 15 * - 13 + - + 51 AS col1
----
-246

query II rowsort
SELECT + CASE + 81 WHEN + 69 THEN NULL WHEN - 81 + 33 / - + 24 * + 52 THEN 33 * + 1 * + 28 ELSE NULL END AS col0, - 79
----
NULL
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT ( + CAST( - 10 AS SIGNED ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-4243
SELECT ( + CAST ( - 10 AS INTEGER ) ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ALL - CASE + ( + ( 25 ) ) WHEN + - 96 THEN - MAX( + 82 ) ELSE - 71 + + - 64 + 45 - - 21 * + + 25 END * - + 63 + 1 AS col2
----
27406

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - CASE + ( + ( 25 ) ) WHEN + - 96 THEN - MAX ( + 82 ) ELSE - 71 + + - 64 + 45 - - 21 * + + 25 END * - + 63 + 1 AS col2
----
27406

query I rowsort
SELECT ( + + ( - 20 ) )
----
-20

query I rowsort
SELECT DISTINCT + 99 * - 70 + ( - - 39 ) AS col2
----
-6891

query I rowsort
SELECT ALL + 97 * + 18
----
1746

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL - ( - COUNT( * ) ) * + + COUNT( * ) * + + 27 + + 98 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL - ( - COUNT ( * ) ) * + + COUNT ( * ) * + + 27 + + 98 AS col1
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-4249
SELECT - - 67 DIV - 40 + + + NULLIF ( + - 99, + AVG ( DISTINCT 84 ) ) + + 38
----
-62

skipif mysql # not compatible
query I rowsort label-4249
SELECT - - 67 / - 40 + + + NULLIF ( + - 99, + AVG ( DISTINCT 84 ) ) + + 38
----
-62

query I rowsort
SELECT ALL CASE 50 WHEN + + 48 + + 19 THEN 27 END * 0 * - 33 + 15 * - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT - COUNT( * ) * + 66
----
-66

skipif mysql # not compatible
query I rowsort label-4251
SELECT - COUNT ( * ) * + 66
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4252
SELECT DISTINCT + 12 * 76 + + - 70 + - + 76 + - COALESCE ( + 78, - 64 * COUNT( * ) * - + 31 ) DIV 42 AS col2, - 23 + + + 56 AS col1
----
765
33

skipif mysql # not compatible
query II rowsort label-4252
SELECT DISTINCT + 12 * 76 + + - 70 + - + 76 + - COALESCE ( + 78, - 64 * COUNT ( * ) * - + 31 ) / 42 AS col2, - 23 + + + 56 AS col1
----
765
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT - 19 * 52 + + - 43 * 89 * - COUNT( * )
----
2839

skipif mysql # not compatible
query I rowsort label-4253
SELECT - 19 * 52 + + - 43 * 89 * - COUNT ( * )
----
2839

onlyif mysql # aggregate syntax: 
query II rowsort label-4254
SELECT + 11 * - - COUNT( * ) - + 21 AS col1, - 59 AS col1
----
-10
-59

skipif mysql # not compatible
query II rowsort label-4254
SELECT + 11 * - - COUNT ( * ) - + 21 AS col1, - 59 AS col1
----
-10
-59

query I rowsort
SELECT ALL + + ( - 65 )
----
-65

query I rowsort
SELECT + + 90 * + 39
----
3510

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4257
SELECT + CAST( ( 30 ) AS SIGNED ), - 54 AS col2
----
30
-54

skipif mysql # not compatible
query II rowsort label-4257
SELECT + CAST ( ( 30 ) AS INTEGER ), - 54 AS col2
----
30
-54

query I rowsort
SELECT - 86 * + 13 AS col1
----
-1118

query II rowsort
SELECT ALL 15 * 90 - - 33, 64 AS col0
----
1383
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT - - 15 * - COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4260
SELECT - - 15 * - COUNT ( * ) AS col2
----
-15

query II rowsort
SELECT - 18 AS col2, - 33 AS col2
----
-18
-33

query I rowsort
SELECT ALL + NULLIF ( 42, + - 55 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT DISTINCT ( + MIN( DISTINCT - + 35 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT ( + MIN ( DISTINCT - + 35 ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT - - 63 + + - MIN( - - 26 )
----
37

skipif mysql # not compatible
query I rowsort label-4264
SELECT - - 63 + + - MIN ( - - 26 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT - ( + COUNT( * ) ) * 4
----
-4

skipif mysql # not compatible
query I rowsort label-4265
SELECT - ( + COUNT ( * ) ) * 4
----
-4

query I rowsort
SELECT - + 88 * 71 AS col1
----
-6248

query II rowsort
SELECT ALL 31 AS col1, 28 AS col1
----
31
28

query I rowsort
SELECT - NULLIF ( - - 71, + 46 - + 82 ) col0
----
-71

query I rowsort
SELECT ALL + 46 * + + 6 AS col0
----
276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4270
SELECT - ( - - COUNT( * ) ) DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-4270
SELECT - ( - - COUNT ( * ) ) / + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT DISTINCT NULLIF ( - 72, + MAX( ( - + 60 ) ) * + 12 )
----
-72

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT NULLIF ( - 72, + MAX ( ( - + 60 ) ) * + 12 )
----
-72

query I rowsort
SELECT DISTINCT + 64 * 71
----
4544

query II rowsort
SELECT ALL 36 AS col1, 42
----
36
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4274
SELECT DISTINCT ( CAST( + 22 AS SIGNED ) )
----
22

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT ( CAST ( + 22 AS INTEGER ) )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT ALL CAST( NULL AS SIGNED ) + 92 * - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL CAST ( NULL AS INTEGER ) + 92 * - 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT - CASE - 11 WHEN - 44 THEN 39 * + MIN( DISTINCT + + ( + 82 ) ) / - + 33 / 43 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT - CASE - 11 WHEN - 44 THEN 39 * + MIN ( DISTINCT + + ( + 82 ) ) / - + 33 / 43 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT DISTINCT CAST( + + 51 AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT CAST ( + + 51 AS INTEGER ) AS col0
----
51

query II rowsort
SELECT + 84 - - 67, + 49 AS col2
----
151
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4279
SELECT - 55 + - - 57 * - NULLIF ( COUNT( * ), 30 - + 12 - AVG ( + 13 ) + + ( + 25 ) + 20 ) * - NULLIF ( 69, - AVG ( - 26 ) ) + + - 7 + MAX( DISTINCT 64 ) - ( + SUM( + - 2 ) ) * + COUNT( * ) DIV - 24 AS col0
----
3935

skipif mysql # not compatible
query I rowsort label-4279
SELECT - 55 + - - 57 * - NULLIF ( COUNT ( * ), 30 - + 12 - AVG ( + 13 ) + + ( + 25 ) + 20 ) * - NULLIF ( 69, - AVG ( - 26 ) ) + + - 7 + MAX ( DISTINCT 64 ) - ( + SUM ( + - 2 ) ) * + COUNT ( * ) / - 24 AS col0
----
3935

query I rowsort
SELECT + 60 - - 20
----
80

query I rowsort
SELECT ALL 66 + + + 76 col1
----
142

query II rowsort
SELECT ALL 53 AS col1, + 73 + 53
----
53
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT + COUNT( * ) * + - 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4283
SELECT + COUNT ( * ) * + - 3 AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4284
SELECT - 48 + + 55 + + 16 + + CAST( + 30 AS SIGNED ) - 27 DIV - 20
----
54

skipif mysql # not compatible
query I rowsort label-4284
SELECT - 48 + + 55 + + 16 + + CAST ( + 30 AS INTEGER ) - 27 / - 20
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4285
SELECT ALL - CAST( + - 2 AS SIGNED ) DIV - 57 + + 94 + + + 90 - + 84 * 41 - MAX( ALL + 51 )
----
-3311

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL - CAST ( + - 2 AS INTEGER ) / - 57 + + 94 + + + 90 - + 84 * 41 - MAX ( ALL + 51 )
----
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT + 24 + + 15 + - MAX( DISTINCT - + 34 ) * - 24
----
-777

skipif mysql # not compatible
query I rowsort label-4286
SELECT + 24 + + 15 + - MAX ( DISTINCT - + 34 ) * - 24
----
-777

query I rowsort
SELECT + 1 + ( + 78 )
----
79

query I rowsort
SELECT ALL 12 * - ( - 20 ) AS col2
----
240

query I rowsort
SELECT DISTINCT ( - + 33 ) * - 58
----
1914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4290
SELECT ALL COUNT( * ) DIV 57 * + + 68 + - + 71 * - 97 AS col1
----
6887

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL COUNT ( * ) / 57 * + + 68 + - + 71 * - 97 AS col1
----
6887

onlyif mysql # DIV for integer division: 
query I rowsort label-4291
SELECT + 84 DIV + - 81 + - 67
----
-68

skipif mysql # not compatible
query I rowsort label-4291
SELECT + 84 / + - 81 + - 67
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT ALL COUNT( * ) * - 29 * + 51
----
-1479

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL COUNT ( * ) * - 29 * + 51
----
-1479

query II rowsort
SELECT + 7 AS col2, 75 AS col1
----
7
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT ALL 49 DIV 93 DIV + 40 + - ( + 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL 49 / 93 / + 40 + - ( + 57 )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4295
SELECT - 41 AS col2, + 62 * - COUNT( * )
----
-41
-62

skipif mysql # not compatible
query II rowsort label-4295
SELECT - 41 AS col2, + 62 * - COUNT ( * )
----
-41
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT - 54 * 78 + - 88 + + 6 * - ( + + CASE + 43 WHEN - AVG ( - 18 ) * - 89 * - - ( - 92 ) THEN - CASE - 1 WHEN + - COALESCE ( + 58, CASE ( + COUNT( * ) ) WHEN - CAST( + + 23 AS SIGNED ) THEN + 97 END * - COUNT( * ), - 64 * - 16 * + - 54 + - 61 * + 49 ) * + 53 THEN + CAST( NULL AS SIGNED ) WHEN 9 THEN + 82 + 46 END + - 15 WHEN 19 THEN 27 * 47 ELSE 41 END ) * - ( 9 )
----
-2086

skipif mysql # not compatible
query I rowsort label-4296
SELECT - 54 * 78 + - 88 + + 6 * - ( + + CASE + 43 WHEN - AVG ( - 18 ) * - 89 * - - ( - 92 ) THEN - CASE - 1 WHEN + - COALESCE ( + 58, CASE ( + COUNT ( * ) ) WHEN - CAST ( + + 23 AS INTEGER ) THEN + 97 END * - COUNT ( * ), - 64 * - 16 * + - 54 + - 61 * + 49 ) * + 53 THEN + CAST ( NULL AS INTEGER ) WHEN 9 THEN + 82 + 46 END + - 15 WHEN 19 THEN 27 * 47 ELSE 41 END ) * - ( 9 )
----
-2086

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4297
SELECT 70 * + 59 + + COUNT( * ) - + CAST( NULL AS DECIMAL ) + COUNT( * ) * - + COUNT( * ) * 80 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT 70 * + 59 + + COUNT ( * ) - + CAST ( NULL AS REAL ) + COUNT ( * ) * - + COUNT ( * ) * 80 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4298
SELECT ALL - 73 DIV + COUNT( * ) - MIN( ALL + - 75 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL - 73 / + COUNT ( * ) - MIN ( ALL + - 75 ) AS col1
----
2

query I rowsort
SELECT ALL - ( - 26 ) col1
----
26

query I rowsort
SELECT 19 - + - NULLIF ( + - 33, + 60 + 30 * + - 39 * - - 2 ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + 66 * 7 + + - MAX( + + 16 ) * COUNT( * ) - 8 AS col1
----
438

skipif mysql # not compatible
query I rowsort label-4301
SELECT + 66 * 7 + + - MAX ( + + 16 ) * COUNT ( * ) - 8 AS col1
----
438

query II rowsort
SELECT 6, - 87 AS col2
----
6
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4303
SELECT - CAST( NULL AS SIGNED ) col2, MIN( + - 83 )
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-4303
SELECT - CAST ( NULL AS INTEGER ) col2, MIN ( + - 83 )
----
NULL
-83

query I rowsort
SELECT - ( + 74 ) + - 92 col0
----
-166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT ALL - COALESCE ( 16, - 52 ) + CAST( + - 48 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL - COALESCE ( 16, - 52 ) + CAST ( + - 48 AS INTEGER )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4306
SELECT ALL + COALESCE ( + CAST( NULL AS SIGNED ), - 60 ) + + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL + COALESCE ( + CAST ( NULL AS INTEGER ), - 60 ) + + COUNT ( * )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4307
SELECT CAST( ( + 52 ) AS SIGNED ) * COUNT( DISTINCT - 5 ) AS col0, COUNT( DISTINCT + 5 ) AS col1
----
52
1

skipif mysql # not compatible
query II rowsort label-4307
SELECT CAST ( ( + 52 ) AS INTEGER ) * COUNT ( DISTINCT - 5 ) AS col0, COUNT ( DISTINCT + 5 ) AS col1
----
52
1

query I rowsort
SELECT 33 + 70 * + 87 AS col0
----
6123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4309
SELECT CASE + ( COUNT( * ) ) WHEN 71 THEN NULL WHEN COALESCE ( CASE 24 WHEN + 61 THEN NULL WHEN 23 - + 23 - - 38 THEN - MIN( DISTINCT - 7 ) * - 97 / + 33 * - COUNT( * ) / - + 87 * + CAST( NULL AS SIGNED ) / - ( 26 ) ELSE 43 END, - ( 54 ) + - 34 ) / - + 10 + COUNT( * ) THEN + COUNT( * ) * + 86 ELSE NULL END + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT CASE + ( COUNT ( * ) ) WHEN 71 THEN NULL WHEN COALESCE ( CASE 24 WHEN + 61 THEN NULL WHEN 23 - + 23 - - 38 THEN - MIN ( DISTINCT - 7 ) * - 97 / + 33 * - COUNT ( * ) / - + 87 * + CAST ( NULL AS INTEGER ) / - ( 26 ) ELSE 43 END, - ( 54 ) + - 34 ) / - + 10 + COUNT ( * ) THEN + COUNT ( * ) * + 86 ELSE NULL END + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT 23 * + ( - 99 )
----
-2277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT DISTINCT - ( CAST( 88 AS SIGNED ) ) * - 88
----
7744

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT - ( CAST ( 88 AS INTEGER ) ) * - 88
----
7744

query I rowsort
SELECT ALL + 43 + 28 AS col0
----
71

query II rowsort
SELECT ALL - ( + 54 ) * - + 76, 34 * - ( 63 ) AS col0
----
4104
-2142

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT 42 DIV - 9
----
-4

skipif mysql # not compatible
query I rowsort label-4314
SELECT 42 / - 9
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT ALL + CAST( NULL AS SIGNED ) - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + CAST ( NULL AS INTEGER ) - 17 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4316
SELECT 43 DIV - CAST( + 20 AS SIGNED ) - - 78 DIV + 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4316
SELECT 43 / - CAST ( + 20 AS INTEGER ) - - 78 / + 35 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT 68 DIV - 79 col1
----
0

skipif mysql # not compatible
query I rowsort label-4317
SELECT 68 / - 79 col1
----
0

query I rowsort
SELECT ALL + - 23 - 50
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT ALL - CAST( - + 61 AS SIGNED ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL - CAST ( - + 61 AS INTEGER ) AS col0
----
61

query I rowsort
SELECT ALL + 44 * + + 82 + + - 92
----
3516

query II rowsort
SELECT 41 + + 2 AS col1, 31 * 36
----
43
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT 72 * - MIN( ALL + 21 )
----
-1512

skipif mysql # not compatible
query I rowsort label-4322
SELECT 72 * - MIN ( ALL + 21 )
----
-1512

query I rowsort
SELECT 62 + + 80 - + 93 AS col0
----
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4324
SELECT 64 / 7 * + 5 + - + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT 64 / 7 * + 5 + - + CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT - 79 * - + 79 col1
----
6241

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL COUNT( * ) + - COUNT( * ) - 58 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL COUNT ( * ) + - COUNT ( * ) - 58 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4327
SELECT DISTINCT - + MIN( - 8 ) AS col0, - 87
----
8
-87

skipif mysql # not compatible
query II rowsort label-4327
SELECT DISTINCT - + MIN ( - 8 ) AS col0, - 87
----
8
-87

onlyif mysql # aggregate syntax: 
query III rowsort label-4328
SELECT - COUNT( * ) + - 73, - COUNT( * ) AS col0, COUNT( * ) * + - 42 + 22 AS col1
----
-74
-1
-20

skipif mysql # not compatible
query III rowsort label-4328
SELECT - COUNT ( * ) + - 73, - COUNT ( * ) AS col0, COUNT ( * ) * + - 42 + 22 AS col1
----
-74
-1
-20

query I rowsort
SELECT DISTINCT 11 + 33 AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4330
SELECT - 84 * - + COALESCE ( + - COUNT( * ), + - 17 ) + + + COUNT( * ) DIV + 19 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-4330
SELECT - 84 * - + COALESCE ( + - COUNT ( * ), + - 17 ) + + + COUNT ( * ) / + 19 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-4331
SELECT ALL SUM( ALL - 77 ) + COUNT( * ) AS col2, COUNT( * ) * + 47
----
-76
47

skipif mysql # not compatible
query II rowsort label-4331
SELECT ALL SUM ( ALL - 77 ) + COUNT ( * ) AS col2, COUNT ( * ) * + 47
----
-76
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4332
SELECT + 1 * - - 33 + 18 AS col1, MAX( - 22 ) * - + 77
----
51
1694

skipif mysql # not compatible
query II rowsort label-4332
SELECT + 1 * - - 33 + 18 AS col1, MAX ( - 22 ) * - + 77
----
51
1694

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4333
SELECT 92 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT 92 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4334
SELECT 98 + - ( 79 ) * + COUNT( * ), - 74 AS col0
----
19
-74

skipif mysql # not compatible
query II rowsort label-4334
SELECT 98 + - ( 79 ) * + COUNT ( * ), - 74 AS col0
----
19
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT COUNT( * ) * - 50 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-4335
SELECT COUNT ( * ) * - 50 AS col2
----
-50

query I rowsort
SELECT DISTINCT 91 + - 74
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT DISTINCT CAST( 60 AS SIGNED ) * - + NULLIF ( + + 20, - 1 )
----
-1200

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT CAST ( 60 AS INTEGER ) * - + NULLIF ( + + 20, - 1 )
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL - MIN( 98 ) + 49 * + 51 * - + 73 + - 13
----
-182538

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - MIN ( 98 ) + 49 * + 51 * - + 73 + - 13
----
-182538

query I rowsort
SELECT DISTINCT 55 * - 85 AS col2
----
-4675

query II rowsort
SELECT ALL 98 AS col1, - 81 + - - 37 * - 43 + 83 * - 67 * - 14 AS col2
----
98
76182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4341
SELECT DISTINCT 48 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT 48 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT DISTINCT MAX( + 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT MAX ( + 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4343
SELECT 23 + COUNT( * ) DIV + - COUNT( ALL 85 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4343
SELECT 23 + COUNT ( * ) / + - COUNT ( ALL 85 ) AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4344
SELECT 17 AS col2, CAST( NULL AS SIGNED ) AS col0
----
17
NULL

skipif mysql # not compatible
query II rowsort label-4344
SELECT 17 AS col2, CAST ( NULL AS INTEGER ) AS col0
----
17
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4345
SELECT ALL - 84 * 42 DIV + 59 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL - 84 * 42 / + 59 AS col1
----
-59

query I rowsort
SELECT + 42 + - 43
----
-1

query I rowsort
SELECT - 47 - 60
----
-107

query III rowsort
SELECT DISTINCT - - 58 * + ( + - 23 ), 45 + - + ( - + 98 ) AS col2, 41 AS col1
----
-1334
143
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT DISTINCT + 55 DIV NULLIF ( - ( - 16 ), + 11 + - - 54 )
----
3

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT + 55 / NULLIF ( - ( - 16 ), + 11 + - - 54 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT - + COUNT( * ) + + + 97 + 34 - + 90 + - + 70 + 27
----
-3

skipif mysql # not compatible
query I rowsort label-4350
SELECT - + COUNT ( * ) + + + 97 + 34 - + 90 + - + 70 + 27
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4351
SELECT - COUNT( * ) / + COUNT( * ) + - 21 + 58 * 73 + CASE 60 WHEN CASE + + 12 WHEN - 60 + - COUNT( * ) THEN + 85 * - 65 * - + MIN( - 43 ) * + - 55 * - - 12 + - 46 + + - 10 - - 88 / - 45 WHEN - CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END / + NULLIF ( + 2, - - 97 ) + + 72 - ( 23 ) + - 43 THEN - 49 / + 34 WHEN - COUNT( ALL 87 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT - COUNT ( * ) / + COUNT ( * ) + - 21 + 58 * 73 + CASE 60 WHEN CASE + + 12 WHEN - 60 + - COUNT ( * ) THEN + 85 * - 65 * - + MIN ( - 43 ) * + - 55 * - - 12 + - 46 + + - 10 - - 88 / - 45 WHEN - CAST ( NULL AS REAL ) THEN NULL ELSE NULL END / + NULLIF ( + 2, - - 97 ) + + 72 - ( 23 ) + - 43 THEN - 49 / + 34 WHEN - COUNT ( ALL 87 ) THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL + - 11 AS col1, 49 + 44 AS col1
----
-11
93

query I rowsort
SELECT - 85 * + 91 col2
----
-7735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4354
SELECT DISTINCT + CAST( 32 AS SIGNED ) * + + MIN( ALL - 40 ) + + + 65 AS col0
----
-1215

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT + CAST ( 32 AS INTEGER ) * + + MIN ( ALL - 40 ) + + + 65 AS col0
----
-1215

query I rowsort
SELECT ALL - 15 * 40 + - 89
----
-689

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT ALL + + 46 * - 86 + CAST( 2 AS SIGNED ) + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL + + 46 * - 86 + CAST ( 2 AS INTEGER ) + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT DISTINCT + - COUNT( DISTINCT + 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT + - COUNT ( DISTINCT + 24 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT DISTINCT 99 * - 22 * - 81 + - 15 - - COALESCE ( - 98, - 47 ) * CASE 77 WHEN NULLIF ( - 86, 36 / 15 ) + - 6 THEN + 25 * 44 * + COUNT( * ) WHEN - 96 + - 2 + + 61 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT 99 * - 22 * - 81 + - 15 - - COALESCE ( - 98, - 47 ) * CASE 77 WHEN NULLIF ( - 86, 36 / 15 ) + - 6 THEN + 25 * 44 * + COUNT ( * ) WHEN - 96 + - 2 + + 61 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4359
SELECT ALL + CASE + - COUNT( * ) WHEN + ( - COUNT( * ) ) THEN 26 WHEN + 8 + ( - ( + - 6 ) ) THEN NULL ELSE - 56 * + - 75 DIV + + 57 * + 37 END * + 63 + + MAX( + 41 )
----
1679

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL + CASE + - COUNT ( * ) WHEN + ( - COUNT ( * ) ) THEN 26 WHEN + 8 + ( - ( + - 6 ) ) THEN NULL ELSE - 56 * + - 75 / + + 57 * + 37 END * + 63 + + MAX ( + 41 )
----
1679

query I rowsort
SELECT + 44 * - 54 AS col1
----
-2376

query I rowsort
SELECT 42 * - + NULLIF ( - 0, + 36 * + 24 ) + - 25 + + 88 * + + 69 * - - 77 + + - 16
----
467503

onlyif mysql # aggregate syntax: 
query II rowsort label-4362
SELECT COUNT( - + 96 ), - 74 + 40 * 76 AS col1
----
1
2966

skipif mysql # not compatible
query II rowsort label-4362
SELECT COUNT ( - + 96 ), - 74 + 40 * 76 AS col1
----
1
2966

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT + COALESCE ( + MIN( + 57 ), + 15 ) + + + MIN( 41 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4363
SELECT + COALESCE ( + MIN ( + 57 ), + 15 ) + + + MIN ( 41 ) AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4364
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT + 25 + - 88 * - CASE 95 WHEN 62 * - + CASE + - 86 WHEN + MAX( + 11 ) THEN COUNT( * ) ELSE - + COUNT( - 61 ) + - 51 END THEN NULL WHEN - + 96 THEN 81 - - 0 ELSE NULL END * + + 83 / + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT + 25 + - 88 * - CASE 95 WHEN 62 * - + CASE + - 86 WHEN + MAX ( + 11 ) THEN COUNT ( * ) ELSE - + COUNT ( - 61 ) + - 51 END THEN NULL WHEN - + 96 THEN 81 - - 0 ELSE NULL END * + + 83 / + 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT - MAX( ALL 71 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4366
SELECT - MAX ( ALL 71 ) AS col2
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4367
SELECT DISTINCT COALESCE ( 8, - 3 DIV + 98 DIV + 41 DIV - 87 * - 32 DIV + 72 * - - 85 * + 70 + + 23 + + 2 - - + ( + 20 ) - - - 19 * - + COALESCE ( COUNT( * ), 92 + - 27 ) * + + 10 - 87 + + - COUNT( * ) DIV - + COUNT( 91 ) + + NULLIF ( + 16, - 19 * + - 76 ) ) DIV COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT COALESCE ( 8, - 3 / + 98 / + 41 / - 87 * - 32 / + 72 * - - 85 * + 70 + + 23 + + 2 - - + ( + 20 ) - - - 19 * - + COALESCE ( COUNT ( * ), 92 + - 27 ) * + + 10 - 87 + + - COUNT ( * ) / - + COUNT ( 91 ) + + NULLIF ( + 16, - 19 * + - 76 ) ) / COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT - NULLIF ( COUNT( * ), - + 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-4368
SELECT - NULLIF ( COUNT ( * ), - + 12 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT + 71 + ( + + MAX( + - 50 ) ) - - 3 + 88 AS col0
----
112

skipif mysql # not compatible
query I rowsort label-4369
SELECT + 71 + ( + + MAX ( + - 50 ) ) - - 3 + 88 AS col0
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-4370
SELECT + COALESCE ( - - ( - 66 ), - 53 ) DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-4370
SELECT + COALESCE ( - - ( - 66 ), - 53 ) / - 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ALL 36 * - + MIN( 99 ) AS col2
----
-3564

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL 36 * - + MIN ( 99 ) AS col2
----
-3564

query I rowsort
SELECT + 42 * 36
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT - COALESCE ( + - 87, - COUNT( * ) * - 67 - + + 40 ) + + 39 * + + COALESCE ( COALESCE ( - - 48, - 59 + - 28, 73 ), - + 7 )
----
1959

skipif mysql # not compatible
query I rowsort label-4373
SELECT - COALESCE ( + - 87, - COUNT ( * ) * - 67 - + + 40 ) + + 39 * + + COALESCE ( COALESCE ( - - 48, - 59 + - 28, 73 ), - + 7 )
----
1959

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT + CASE - - NULLIF ( COUNT( * ), - 3 ) WHEN - COUNT( * ) * + 98 * + + MIN( ALL + 15 ) / + - 85 + 16 + 96 * - 16 THEN - 55 END / - - 66 * 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT + CASE - - NULLIF ( COUNT ( * ), - 3 ) WHEN - COUNT ( * ) * + 98 * + + MIN ( ALL + 15 ) / + - 85 + 16 + 96 * - 16 THEN - 55 END / - - 66 * 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL ( 7 ) * + 14 * - CASE 26 WHEN + COUNT( * ) THEN 28 + + - NULLIF ( - - 27, + 44 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL ( 7 ) * + 14 * - CASE 26 WHEN + COUNT ( * ) THEN 28 + + - NULLIF ( - - 27, + 44 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT - ( + MIN( DISTINCT + 44 ) ) * + + 9 + + 44 AS col0
----
-352

skipif mysql # not compatible
query I rowsort label-4376
SELECT - ( + MIN ( DISTINCT + 44 ) ) * + + 9 + + 44 AS col0
----
-352

query I rowsort
SELECT + 42 - + 43 * COALESCE ( + + 7, 87 + 12 ) AS col2
----
-259

query I rowsort
SELECT - 16 * 50
----
-800

onlyif mysql # DIV for integer division: 
query I rowsort label-4379
SELECT DISTINCT 38 DIV - 65 + 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT 38 / - 65 + 24 AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT DISTINCT + 97 DIV - 99 * - ( ( 74 ) ) + - 41
----
-41

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT + 97 / - 99 * - ( ( 74 ) ) + - 41
----
-41

query I rowsort
SELECT ALL - CASE + 70 WHEN - 67 * - + 87 THEN 23 * + 75 / - 75 - + 87 ELSE NULL END / + AVG ( - 79 ) + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT + 92 * + - 43 * - + 88 - + - 32 + - + 57 * + ( + COUNT( * ) )
----
348103

skipif mysql # not compatible
query I rowsort label-4382
SELECT + 92 * + - 43 * - + 88 - + - 32 + - + 57 * + ( + COUNT ( * ) )
----
348103

onlyif mysql # DIV for integer division: 
query I rowsort label-4383
SELECT ALL + 32 DIV 11 + ( + - 25 ) * - + 11 * - 83 * + 48 + - 98
----
-1095696

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL + 32 / 11 + ( + - 25 ) * - + 11 * - 83 * + 48 + - 98
----
-1095696

query I rowsort
SELECT COALESCE ( - 24, - + 58 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT + 0 * - COUNT( * ) + - 85 + + 93 * + 31
----
2798

skipif mysql # not compatible
query I rowsort label-4385
SELECT + 0 * - COUNT ( * ) + - 85 + + 93 * + 31
----
2798

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT NULLIF ( 63, COUNT( * ) )
----
63

skipif mysql # not compatible
query I rowsort label-4386
SELECT NULLIF ( 63, COUNT ( * ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT - 44 - + COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-4387
SELECT - 44 - + COUNT ( * ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ( + MAX( DISTINCT - - 18 ) )
----
18

skipif mysql # not compatible
query I rowsort label-4388
SELECT ( + MAX ( DISTINCT - - 18 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT DISTINCT + ( + 86 ) * - COUNT( * ) - 52 AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT + ( + 86 ) * - COUNT ( * ) - 52 AS col0
----
-138

query I rowsort
SELECT ( - - 83 ) AS col1
----
83

query II rowsort
SELECT + COALESCE ( - + 81, - + 82 ) col2, + 47
----
-81
47

query I rowsort
SELECT - 8 * - 75
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT COALESCE ( - - 46, + 2 * - COUNT( * ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4393
SELECT COALESCE ( - - 46, + 2 * - COUNT ( * ) ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ALL + 85 * - - COUNT( * ) - + 47 - - - 96 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + 85 * - - COUNT ( * ) - + 47 - - - 96 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT - 90 + 12 + MAX( ALL + 47 )
----
-31

skipif mysql # not compatible
query I rowsort label-4395
SELECT - 90 + 12 + MAX ( ALL + 47 )
----
-31

query I rowsort
SELECT 32 + + + 96 col0
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-4397
SELECT 61 AS col0, + CASE ( MIN( + 61 ) ) WHEN - 67 THEN + 76 END
----
61
NULL

skipif mysql # not compatible
query II rowsort label-4397
SELECT 61 AS col0, + CASE ( MIN ( + 61 ) ) WHEN - 67 THEN + 76 END
----
61
NULL

query II rowsort
SELECT 42 + - 61 * - 7 col0, ( 88 )
----
469
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT MAX( 4 ) - - - 77 * + 5 + - 82 AS col0
----
-463

skipif mysql # not compatible
query I rowsort label-4399
SELECT MAX ( 4 ) - - - 77 * + 5 + - 82 AS col0
----
-463

query II rowsort
SELECT 50, 35 AS col1
----
50
35

query I rowsort
SELECT 67 + 55 + + - 26
----
96

query I rowsort
SELECT - 74 + - + 29 AS col0
----
-103

query I rowsort
SELECT ALL + 6 + ( + - 44 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4404
SELECT NULLIF ( + COUNT( * ), - - 79 * - + COALESCE ( - - CAST( - 59 AS DECIMAL ), 53 ) ) + - 87 AS col2, - COUNT( * ) AS col2
----
-86
-1

skipif mysql # not compatible
query II rowsort label-4404
SELECT NULLIF ( + COUNT ( * ), - - 79 * - + COALESCE ( - - CAST ( - 59 AS REAL ), 53 ) ) + - 87 AS col2, - COUNT ( * ) AS col2
----
-86
-1

query I rowsort
SELECT - - ( - 6 ) AS col0
----
-6

query I rowsort
SELECT ALL 70 + - 90 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT + COUNT( * ) + SUM( DISTINCT 96 )
----
97

skipif mysql # not compatible
query I rowsort label-4407
SELECT + COUNT ( * ) + SUM ( DISTINCT 96 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT COUNT( * ) - + COALESCE ( 22, - 18, + 21 * + - 5 ) - - - 13 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4408
SELECT COUNT ( * ) - + COALESCE ( 22, - 18, + 21 * + - 5 ) - - - 13 AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4409
SELECT ( 58 ) + - - CASE 42 WHEN + 66 * 31 + 6 THEN - 98 WHEN COALESCE ( + - CAST( NULL AS SIGNED ), + + 79 * + - 78 * - - COUNT( * ) - + + COUNT( * ) + - AVG ( ALL 30 ) * 97 * + - 57 + CAST( + 6 AS SIGNED ) + + COUNT( * ) - 87 ) + + 13 * 26 * + 6 * - CAST( NULL AS SIGNED ) THEN - 47 DIV ( - 54 ) * 98 ELSE COUNT( + ( + 91 ) ) * 22 + 36 END
----
116

skipif mysql # not compatible
query I rowsort label-4409
SELECT ( 58 ) + - - CASE 42 WHEN + 66 * 31 + 6 THEN - 98 WHEN COALESCE ( + - CAST ( NULL AS INTEGER ), + + 79 * + - 78 * - - COUNT ( * ) - + + COUNT ( * ) + - AVG ( ALL 30 ) * 97 * + - 57 + CAST ( + 6 AS INTEGER ) + + COUNT ( * ) - 87 ) + + 13 * 26 * + 6 * - CAST ( NULL AS INTEGER ) THEN - 47 / ( - 54 ) * 98 ELSE COUNT ( + ( + 91 ) ) * 22 + 36 END
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4410
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) + + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 90 AS col2
----
NULL

query I rowsort
SELECT ALL - 65 + - + 60 AS col1
----
-125

query I rowsort
SELECT ALL + 90 + - + 47
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL - COUNT( * ) * + 32 * 1
----
-32

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL - COUNT ( * ) * + 32 * 1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT - 65 * SUM( ALL + 98 ) + NULLIF ( + 65, - 43 ) AS col0
----
-6305

skipif mysql # not compatible
query I rowsort label-4414
SELECT - 65 * SUM ( ALL + 98 ) + NULLIF ( + 65, - 43 ) AS col0
----
-6305

query I rowsort
SELECT + 56 * + 74
----
4144

onlyif mysql # DIV for integer division: 
query I rowsort label-4416
SELECT 69 DIV - + 81 + - 73 + - + 22
----
-95

skipif mysql # not compatible
query I rowsort label-4416
SELECT 69 / - + 81 + - 73 + - + 22
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-4417
SELECT + COUNT( * ), + 79 AS col0
----
1
79

skipif mysql # not compatible
query II rowsort label-4417
SELECT + COUNT ( * ), + 79 AS col0
----
1
79

query I rowsort
SELECT ALL + - 69 - + 52 + - 33 * - 83
----
2618

onlyif mysql # DIV for integer division: 
query II rowsort label-4419
SELECT 36 DIV - 33 col2, - 39
----
-1
-39

skipif mysql # not compatible
query II rowsort label-4419
SELECT 36 / - 33 col2, - 39
----
-1
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT ALL - ( CASE - CASE - - 68 WHEN - 60 + + 35 THEN - + 72 ELSE NULL END WHEN - - 39 / + COUNT( * ) * - SUM( DISTINCT 4 ) THEN + CAST( NULL AS SIGNED ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL - ( CASE - CASE - - 68 WHEN - 60 + + 35 THEN - + 72 ELSE NULL END WHEN - - 39 / + COUNT ( * ) * - SUM ( DISTINCT 4 ) THEN + CAST ( NULL AS INTEGER ) END ) AS col0
----
NULL

query I rowsort
SELECT 43 + - 86 col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT ALL MAX( COALESCE ( + + 10, + 38 ) ) - + 14 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL MAX ( COALESCE ( + + 10, + 38 ) ) - + 14 AS col0
----
-4

query I rowsort
SELECT DISTINCT + 70 * 30
----
2100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4424
SELECT + 40, CAST( NULL AS SIGNED ) AS col0
----
40
NULL

skipif mysql # not compatible
query II rowsort label-4424
SELECT + 40, CAST ( NULL AS INTEGER ) AS col0
----
40
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT CAST( NULL AS SIGNED ) - ( - COUNT( * ) ) + + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT CAST ( NULL AS INTEGER ) - ( - COUNT ( * ) ) + + 90 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT ALL - ( - CAST( - CAST( - AVG ( 61 ) AS SIGNED ) AS SIGNED ) ) col1
----
61

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL - ( - CAST ( - CAST ( - AVG ( 61 ) AS INTEGER ) AS INTEGER ) ) col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT ALL - 25 DIV - + 4
----
6

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - 25 / - + 4
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT 52 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4428
SELECT 52 / 97 AS col0
----
0

query I rowsort
SELECT 58 + - 83 + - 70
----
-95

query I rowsort
SELECT DISTINCT - 8 * + 5 * + - 21 AS col1
----
840

query I rowsort
SELECT ALL + 53 + + 96 AS col0
----
149

query I rowsort
SELECT 67 + - 62 AS col0
----
5

query I rowsort
SELECT 71 - - 48 * - 40 * 94
----
-180409

onlyif mysql # aggregate syntax: 
query II rowsort label-4434
SELECT 33, - 31 + 56 + - - MAX( ALL + 84 ) - + - 54 AS col1
----
33
163

skipif mysql # not compatible
query II rowsort label-4434
SELECT 33, - 31 + 56 + - - MAX ( ALL + 84 ) - + - 54 AS col1
----
33
163

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT SUM( DISTINCT 9 ) * + 9 * + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4435
SELECT SUM ( DISTINCT 9 ) * + 9 * + COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4436
SELECT - 71 col0, + 45 * - 47 * CASE AVG ( + + 54 ) WHEN + - 14 THEN - COUNT( * ) * - - 98 - - COUNT( 75 ) * + 32 - + 33 * - 94 / + 1 * + - 32 END AS col1
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-4436
SELECT - 71 col0, + 45 * - 47 * CASE AVG ( + + 54 ) WHEN + - 14 THEN - COUNT ( * ) * - - 98 - - COUNT ( 75 ) * + 32 - + 33 * - 94 / + 1 * + - 32 END AS col1
----
-71
NULL

query I rowsort
SELECT ALL - - NULLIF ( + - 57, + + 83 - - 11 ) + 64
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT - + CAST( + 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-4438
SELECT - + CAST ( + 83 AS INTEGER )
----
-83

query I rowsort
SELECT - NULLIF ( 82, + 36 ) AS col1
----
-82

query I rowsort
SELECT + 38 * + ( 45 )
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT - COUNT( * ) + 57 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4441
SELECT - COUNT ( * ) + 57 AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT ALL + + CAST( - + 98 AS SIGNED ) + + 62 col2
----
-36

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL + + CAST ( - + 98 AS INTEGER ) + + 62 col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT ALL ( - 60 ) + 6 + - 93 * + COALESCE ( - + MIN( ALL + 92 ), - - ( + COUNT( * ) ) * - + COUNT( * ) + 98, - 81 ) * - 6
----
-51390

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL ( - 60 ) + 6 + - 93 * + COALESCE ( - + MIN ( ALL + 92 ), - - ( + COUNT ( * ) ) * - + COUNT ( * ) + 98, - 81 ) * - 6
----
-51390

query I rowsort
SELECT - 74 * 67
----
-4958

query I rowsort
SELECT ALL + + 5 + - 68 + + + 34 AS col2
----
-29

query I rowsort
SELECT ( 86 ) col1
----
86

query I rowsort
SELECT ALL + 53 + - 0 AS col0
----
53

query I rowsort
SELECT + 40 - + 49
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT 54 * + MAX( - - ( + 13 ) ) AS col2
----
702

skipif mysql # not compatible
query I rowsort label-4449
SELECT 54 * + MAX ( - - ( + 13 ) ) AS col2
----
702

query I rowsort
SELECT 3 + + 19 + - 5
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL - 30 * + - 32 - - 68 + COUNT( * ) * - 5 - 0 + + COUNT( * ) + + 3 AS col2
----
1027

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - 30 * + - 32 - - 68 + COUNT ( * ) * - 5 - 0 + + COUNT ( * ) + + 3 AS col2
----
1027

query I rowsort
SELECT 34 * - 28
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL - COUNT( * ) * - COUNT( * ) * - + ( - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * - + ( - 92 )
----
92

query II rowsort
SELECT ALL - 93 AS col2, 19 * - + 20
----
-93
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ( - COUNT( * ) ) + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4455
SELECT ( - COUNT ( * ) ) + - COUNT ( * ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4456
SELECT CAST( COUNT( * ) AS SIGNED ) * + + COUNT( * ) DIV - ( - 72 ) + MAX( + ( + 33 ) ) * - 86 + + 20 + + - ( - 88 ) DIV + 25 AS col0
----
-2815

skipif mysql # not compatible
query I rowsort label-4456
SELECT CAST ( COUNT ( * ) AS INTEGER ) * + + COUNT ( * ) / - ( - 72 ) + MAX ( + ( + 33 ) ) * - 86 + + 20 + + - ( - 88 ) / + 25 AS col0
----
-2815

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT 93 * + COUNT( * ) + ( 65 ) AS col2
----
158

skipif mysql # not compatible
query I rowsort label-4457
SELECT 93 * + COUNT ( * ) + ( 65 ) AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT - 84 * COUNT( * ) + + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-4458
SELECT - 84 * COUNT ( * ) + + COUNT ( * )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4459
SELECT - CAST( NULL AS SIGNED ) * - + 50 AS col2, 52
----
NULL
52

skipif mysql # not compatible
query II rowsort label-4459
SELECT - CAST ( NULL AS INTEGER ) * - + 50 AS col2, 52
----
NULL
52

query I rowsort
SELECT 30 * + 17 - + - 42
----
552

onlyif mysql # aggregate syntax: 
query II rowsort label-4461
SELECT MIN( ALL - 11 ) AS col0, 43 * + + 16 AS col1
----
-11
688

skipif mysql # not compatible
query II rowsort label-4461
SELECT MIN ( ALL - 11 ) AS col0, 43 * + + 16 AS col1
----
-11
688

query I rowsort
SELECT ALL - 21 + - + 10 * 74 AS col0
----
-761

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT DISTINCT + 49 + - 67 + - MIN( + 50 ) * 55
----
-2768

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT + 49 + - 67 + - MIN ( + 50 ) * 55
----
-2768

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT ALL 71 + - + COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL 71 + - + COUNT ( * ) AS col2
----
70

query I rowsort
SELECT + 77 + + + 50 - 40 * - + 45 + - 2
----
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT COALESCE ( + 81, - - 34 - + 79 + + 24 * + - SUM( ALL + 55 ) * - - 91 - + 2 * COUNT( * ) - + ( CASE - - 57 WHEN + 97 THEN - + 4 ELSE NULL END ) * 94 )
----
81

skipif mysql # not compatible
query I rowsort label-4466
SELECT COALESCE ( + 81, - - 34 - + 79 + + 24 * + - SUM ( ALL + 55 ) * - - 91 - + 2 * COUNT ( * ) - + ( CASE - - 57 WHEN + 97 THEN - + 4 ELSE NULL END ) * 94 )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT - 92 DIV 87 * 6 + - ( - 36 )
----
30

skipif mysql # not compatible
query I rowsort label-4467
SELECT - 92 / 87 * 6 + - ( - 36 )
----
30

query I rowsort
SELECT - - 18 * - 6 AS col0
----
-108

onlyif mysql # DIV for integer division: 
query II rowsort label-4469
SELECT DISTINCT - + 32 DIV 64 AS col0, - 44 AS col2
----
0
-44

skipif mysql # not compatible
query II rowsort label-4469
SELECT DISTINCT - + 32 / 64 AS col0, - 44 AS col2
----
0
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-4470
SELECT - - 68 + 48, MIN( ALL + 41 ) AS col2
----
116
41

skipif mysql # not compatible
query II rowsort label-4470
SELECT - - 68 + 48, MIN ( ALL + 41 ) AS col2
----
116
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4471
SELECT ALL - 62 - - 43 * + COALESCE ( + COUNT( * ), 59 ) + COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col1, 46 AS col0
----
NULL
46

skipif mysql # not compatible
query II rowsort label-4471
SELECT ALL - 62 - - 43 * + COALESCE ( + COUNT ( * ), 59 ) + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col1, 46 AS col0
----
NULL
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT ALL - MAX( - 73 ) col2
----
73

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL - MAX ( - 73 ) col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT - + COUNT( - COALESCE ( + 87, + 45 ) ) + + 18
----
17

skipif mysql # not compatible
query I rowsort label-4473
SELECT - + COUNT ( - COALESCE ( + 87, + 45 ) ) + + 18
----
17

query I rowsort
SELECT ALL + 82 - 98 + 34 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT NULLIF ( + - CAST( NULL AS SIGNED ), - - 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT NULLIF ( + - CAST ( NULL AS INTEGER ), - - 96 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4476
SELECT - - CAST( NULL AS SIGNED ) + + 78 AS col0, + 82
----
NULL
82

skipif mysql # not compatible
query II rowsort label-4476
SELECT - - CAST ( NULL AS INTEGER ) + + 78 AS col0, + 82
----
NULL
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL + COALESCE ( + ( + COUNT( + - 36 ) ), - + 75, + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL + COALESCE ( + ( + COUNT ( + - 36 ) ), - + 75, + 37 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4478
SELECT - NULLIF ( - CASE + COUNT( * ) WHEN + 29 THEN + 29 * - - 43 * + - 50 * 61 WHEN + COUNT( * ) THEN NULL ELSE NULL END, - 21 ) + - 47 + + + 47 + + ( + 98 ) * 58 * + COUNT( * ) / + CASE - AVG ( ( - - 87 ) ) WHEN 86 + + + 46 THEN - 89 ELSE 34 END + - 34 + SUM( + 58 ) AS col0, 58 AS col0
----
NULL
58

skipif mysql # not compatible
query II rowsort label-4478
SELECT - NULLIF ( - CASE + COUNT ( * ) WHEN + 29 THEN + 29 * - - 43 * + - 50 * 61 WHEN + COUNT ( * ) THEN NULL ELSE NULL END, - 21 ) + - 47 + + + 47 + + ( + 98 ) * 58 * + COUNT ( * ) / + CASE - AVG ( ( - - 87 ) ) WHEN 86 + + + 46 THEN - 89 ELSE 34 END + - 34 + SUM ( + 58 ) AS col0, 58 AS col0
----
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4479
SELECT - 94 - - ( - COUNT( * ) ) + + 39 + 63 DIV - CAST( - COALESCE ( - 68, - 34 + - + 21 * - + COALESCE ( + - ( - - CASE - - COUNT( * ) WHEN 83 THEN + + 44 WHEN + 70 THEN - - ( + 73 ) WHEN + - 90 THEN - 7 ELSE NULL END ), + - 17 ) * - - COUNT( * ) ) AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-4479
SELECT - 94 - - ( - COUNT ( * ) ) + + 39 + 63 / - CAST ( - COALESCE ( - 68, - 34 + - + 21 * - + COALESCE ( + - ( - - CASE - - COUNT ( * ) WHEN 83 THEN + + 44 WHEN + 70 THEN - - ( + 73 ) WHEN + - 90 THEN - 7 ELSE NULL END ), + - 17 ) * - - COUNT ( * ) ) AS INTEGER )
----
-56

query I rowsort
SELECT - 38 + - - COALESCE ( - COALESCE ( - 59, - 84 + - + ( - 79 ) ), + + 98 ) AS col2
----
21

query I rowsort
SELECT - - 16 * - 54
----
-864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4482
SELECT - CASE 84 WHEN + COALESCE ( NULLIF ( - 61, + - 25 ), - 72 ) * - 26 + + 73 * 2 + - + 82 * - COUNT( * ) * + CAST( NULL AS SIGNED ) * - NULLIF ( - + 70, + - 13 + + - 99 * + 60 ) + + - 51 + + - MIN( 48 ) * + - ( 40 ) * - 40 THEN 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT - CASE 84 WHEN + COALESCE ( NULLIF ( - 61, + - 25 ), - 72 ) * - 26 + + 73 * 2 + - + 82 * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - NULLIF ( - + 70, + - 13 + + - 99 * + 60 ) + + - 51 + + - MIN ( 48 ) * + - ( 40 ) * - 40 THEN 8 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 77 * 2 AS col1, - 24
----
-154
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT - - COUNT( - ( - 84 ) ) + + + 15 * 27 AS col2
----
406

skipif mysql # not compatible
query I rowsort label-4484
SELECT - - COUNT ( - ( - 84 ) ) + + + 15 * 27 AS col2
----
406

query II rowsort
SELECT DISTINCT + 75 AS col0, 66
----
75
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT + 79 DIV - - 52 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4486
SELECT + 79 / - - 52 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4487
SELECT + CASE 26 WHEN + 91 THEN NULL ELSE 57 * - COUNT( * ) DIV 64 * - 23 END
----
0

skipif mysql # not compatible
query I rowsort label-4487
SELECT + CASE 26 WHEN + 91 THEN NULL ELSE 57 * - COUNT ( * ) / 64 * - 23 END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4488
SELECT ALL + CAST( - - 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL + CAST ( - - 4 AS INTEGER )
----
4

query I rowsort
SELECT + 31 + + 56
----
87

query I rowsort
SELECT ALL 37 * 38 AS col2
----
1406

onlyif mysql # DIV for integer division: 
query I rowsort label-4491
SELECT - 43 DIV - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4491
SELECT - 43 / - 63 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT + COUNT( * ) * + - 12 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4492
SELECT + COUNT ( * ) * + - 12 AS col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4493
SELECT + CAST( NULL AS SIGNED ) + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT + CAST ( NULL AS INTEGER ) + + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT + MIN( - 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4494
SELECT + MIN ( - 42 ) AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4495
SELECT 53 * - CAST( NULL AS DECIMAL ) + 72 AS col2, NULLIF ( - - 60, ( + ( - SUM( + COALESCE ( + 10, - + 8 ) ) ) ) + 63 ) col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-4495
SELECT 53 * - CAST ( NULL AS REAL ) + 72 AS col2, NULLIF ( - - 60, ( + ( - SUM ( + COALESCE ( + 10, - + 8 ) ) ) ) + 63 ) col0
----
NULL
60

query I rowsort
SELECT + 89 + - + 59 AS col1
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-4497
SELECT DISTINCT 29 * 81 DIV + 47 + - 43 AS col2, 9 + - - 51 * 15 AS col1
----
6
774

skipif mysql # not compatible
query II rowsort label-4497
SELECT DISTINCT 29 * 81 / + 47 + - 43 AS col2, 9 + - - 51 * 15 AS col1
----
6
774

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT + MIN( DISTINCT + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-4498
SELECT + MIN ( DISTINCT + 62 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4499
SELECT ALL ( + COUNT( * ) ) * 86 + 74 + + - 1 - + 40 + - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL ( + COUNT ( * ) ) * 86 + 74 + + - 1 - + 40 + - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT + 36 - + - 8 + - 24 + 11 DIV + - 10 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4500
SELECT + 36 - + - 8 + - 24 + 11 / + - 10 AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4501
SELECT 54 * - ( + - 29 ) + + - 44 + - COUNT( ALL - 31 ) + + - 54 * 3 + + + 40, 60 + + 1 AS col1
----
1399
61

skipif mysql # not compatible
query II rowsort label-4501
SELECT 54 * - ( + - 29 ) + + - 44 + - COUNT ( ALL - 31 ) + + - 54 * 3 + + + 40, 60 + + 1 AS col1
----
1399
61

query I rowsort
SELECT DISTINCT 66 * + 24 + + - 28 * 55 - 13 * - 55 col0
----
759

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT - SUM( DISTINCT + 76 ) * + 41 / - COUNT( * ) * + 76 + - + CASE 69 WHEN 72 THEN 73 + + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4503
SELECT - SUM ( DISTINCT + 76 ) * + 41 / - COUNT ( * ) * + 76 + - + CASE 69 WHEN 72 THEN 73 + + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4504
SELECT + COUNT( * ) AS col1, - 48
----
1
-48

skipif mysql # not compatible
query II rowsort label-4504
SELECT + COUNT ( * ) AS col1, - 48
----
1
-48

query I rowsort
SELECT + - 72 * ( - - 12 ) + 76
----
-788

query I rowsort
SELECT ALL - 33 * + + 96
----
-3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4507
SELECT COUNT( * ) AS col1, ( + CAST( 8 AS SIGNED ) ) + - 1
----
1
7

skipif mysql # not compatible
query II rowsort label-4507
SELECT COUNT ( * ) AS col1, ( + CAST ( 8 AS INTEGER ) ) + - 1
----
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT - 83 * + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-4508
SELECT - 83 * + COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT - + MIN( ALL + 44 ) + 72 + - 19 * - 75 AS col2
----
1453

skipif mysql # not compatible
query I rowsort label-4509
SELECT - + MIN ( ALL + 44 ) + 72 + - 19 * - 75 AS col2
----
1453

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL - + COUNT( * ) - + 47 + - + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL - + COUNT ( * ) - + 47 + - + COUNT ( * )
----
-49

query II rowsort
SELECT ALL 2 col2, 66 - + - 90 * + + 4 AS col2
----
2
426

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4512
SELECT ALL + + 62 DIV + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL + + 62 / + COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT DISTINCT MAX( DISTINCT 96 ) col0
----
96

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT MAX ( DISTINCT 96 ) col0
----
96

query I rowsort
SELECT + 25 - + 57 col0
----
-32

query II rowsort
SELECT - + 40 AS col2, + 64 + - 52 AS col1
----
-40
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT 36 + - MIN( - - 30 ) col1
----
6

skipif mysql # not compatible
query I rowsort label-4516
SELECT 36 + - MIN ( - - 30 ) col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT ALL - ( + - COUNT( * ) ) AS col0, + 98 * - + 66 * + ( 6 )
----
1
-38808

skipif mysql # not compatible
query II rowsort label-4517
SELECT ALL - ( + - COUNT ( * ) ) AS col0, + 98 * - + 66 * + ( 6 )
----
1
-38808

query I rowsort
SELECT DISTINCT - 39 * ( + 45 ) AS col2
----
-1755

query I rowsort
SELECT ALL - 21 + - 9 + + - 45
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL - ( + NULLIF ( + - 5, + NULLIF ( + + MAX( DISTINCT 89 ), - ( + 12 ) + - 97 + - + 19 + - AVG ( DISTINCT NULLIF ( - - 58, - 87 ) ) * + 74 * + - 19 ) ) ) col0
----
5

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL - ( + NULLIF ( + - 5, + NULLIF ( + + MAX ( DISTINCT 89 ), - ( + 12 ) + - 97 + - + 19 + - AVG ( DISTINCT NULLIF ( - - 58, - 87 ) ) * + 74 * + - 19 ) ) ) col0
----
5

query I rowsort
SELECT CASE + 95 WHEN - 31 THEN NULL WHEN - + 0 + - ( + 73 ) THEN NULL WHEN 87 THEN + + COALESCE ( - ( 27 ), 62 ) + 31 * - 51 END / 70 - + - 53 * - 50 AS col0
----
NULL

query I rowsort
SELECT ALL - 21 + 20 AS col0
----
-1

query I rowsort
SELECT ALL + 4 + + 50 AS col2
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4524
SELECT COUNT( * ) DIV - + ( 68 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4524
SELECT COUNT ( * ) / - + ( 68 ) AS col2
----
0

query I rowsort
SELECT 67 * + 74 - 70 * + 21
----
3488

query II rowsort
SELECT DISTINCT 83 * - 36 AS col0, - 73
----
-2988
-73

query I rowsort
SELECT ALL + 4 - + + 58
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL COUNT( * ) * - + MAX( DISTINCT - ( + 56 ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL COUNT ( * ) * - + MAX ( DISTINCT - ( + 56 ) ) AS col2
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-4529
SELECT 91 DIV 26 AS col1, - 15 + - 41 AS col2
----
3
-56

skipif mysql # not compatible
query II rowsort label-4529
SELECT 91 / 26 AS col1, - 15 + - 41 AS col2
----
3
-56

query I rowsort
SELECT - - 90 * 46 + 8
----
4148

query I rowsort
SELECT DISTINCT - - 60 * - + 91 * + + 8
----
-43680

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT - COUNT( - 31 ) * 80
----
-80

skipif mysql # not compatible
query I rowsort label-4532
SELECT - COUNT ( - 31 ) * 80
----
-80

query I rowsort
SELECT + 93 + + ( - 34 )
----
59

query I rowsort
SELECT + 7 + + + 16
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - 27 * + 12 + NULLIF ( - + COUNT( * ), + - 52 * - + 37 * 5 + COUNT( * ) - ( 28 ) ) * 21 + 96 AS col0
----
-249

skipif mysql # not compatible
query I rowsort label-4535
SELECT - 27 * + 12 + NULLIF ( - + COUNT ( * ), + - 52 * - + 37 * 5 + COUNT ( * ) - ( 28 ) ) * 21 + 96 AS col0
----
-249

query II rowsort
SELECT DISTINCT - CASE 41 WHEN 38 THEN + - 96 END AS col1, CASE 25 WHEN + 43 THEN NULL ELSE 99 * - 91 END AS col2
----
NULL
-9009

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4537
SELECT ( + CAST( NULL AS DECIMAL ) ) * + ( + MIN( DISTINCT 81 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT ( + CAST ( NULL AS REAL ) ) * + ( + MIN ( DISTINCT 81 ) )
----
NULL

query I rowsort
SELECT - 56 + - - 65 + - 2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT ALL + 39 * NULLIF ( MIN( + + 48 ), - 70 ) AS col0
----
1872

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL + 39 * NULLIF ( MIN ( + + 48 ), - 70 ) AS col0
----
1872

query I rowsort
SELECT DISTINCT - 28 * + + 43 + - 81
----
-1285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4541
SELECT + 23 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT + 23 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT + 92 + 90 - - COUNT( * )
----
183

skipif mysql # not compatible
query I rowsort label-4542
SELECT + 92 + 90 - - COUNT ( * )
----
183

query I rowsort
SELECT ALL - ( - 60 ) * - 28
----
-1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT 71 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT 71 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT 81 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT 81 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 79 AS col0, 74 * + - ( - 92 ) AS col1
----
79
6808

query I rowsort
SELECT ALL - 35 + + 68
----
33

query I rowsort
SELECT 71 + + 19
----
90

query I rowsort
SELECT ALL 54 + 34 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT COUNT( ALL 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4550
SELECT COUNT ( ALL 72 ) AS col1
----
1

query II rowsort
SELECT ALL - 32, 28 AS col2
----
-32
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT 67 + - - COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4552
SELECT 67 + - - COUNT ( * ) AS col0
----
68

query I rowsort
SELECT 70 * - 58 AS col1
----
-4060

query I rowsort
SELECT DISTINCT + 90 * 15 AS col1
----
1350

query I rowsort
SELECT DISTINCT 53 * - 50
----
-2650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4556
SELECT ALL + CASE 14 WHEN + - 64 THEN NULL WHEN 24 THEN - MAX( ALL + 82 ) ELSE NULL END - COUNT( * ) + - + ( - 87 ) * 5 * + - COALESCE ( + 2, - 56 * + CASE - MIN( 85 ) WHEN + + CAST( NULL AS SIGNED ) * + - NULLIF ( 40, + 73 + + - CASE - 25 WHEN - 33 * 31 + - 3 + 20 THEN - - 77 ELSE NULL END + COUNT( * ) ) THEN + - COUNT( * ) * - COUNT( * ) * - MIN( ALL 2 ) END ) + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL + CASE 14 WHEN + - 64 THEN NULL WHEN 24 THEN - MAX ( ALL + 82 ) ELSE NULL END - COUNT ( * ) + - + ( - 87 ) * 5 * + - COALESCE ( + 2, - 56 * + CASE - MIN ( 85 ) WHEN + + CAST ( NULL AS INTEGER ) * + - NULLIF ( 40, + 73 + + - CASE - 25 WHEN - 33 * 31 + - 3 + 20 THEN - - 77 ELSE NULL END + COUNT ( * ) ) THEN + - COUNT ( * ) * - COUNT ( * ) * - MIN ( ALL 2 ) END ) + - 48
----
NULL

query I rowsort
SELECT 96 * - + 88 col0
----
-8448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4558
SELECT ALL + 0 * 87 * + CAST( NULL AS SIGNED ) / - CAST( 93 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL + 0 * 87 * + CAST ( NULL AS INTEGER ) / - CAST ( 93 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4559
SELECT - 52 * + CAST( SUM( ALL - 71 ) AS SIGNED ) + + ( COUNT( ALL - 71 ) ) AS col1
----
3693

skipif mysql # not compatible
query I rowsort label-4559
SELECT - 52 * + CAST ( SUM ( ALL - 71 ) AS INTEGER ) + + ( COUNT ( ALL - 71 ) ) AS col1
----
3693

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT NULLIF ( + MAX( + ( - 89 ) ), 48 * - + COUNT( * ) / - - 98 + + 42 * - 1 )
----
-89

skipif mysql # not compatible
query I rowsort label-4560
SELECT NULLIF ( + MAX ( + ( - 89 ) ), 48 * - + COUNT ( * ) / - - 98 + + 42 * - 1 )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-4561
SELECT 98 * - 2 * COUNT( * ) AS col1, 20 * - + 67 col2
----
-196
-1340

skipif mysql # not compatible
query II rowsort label-4561
SELECT 98 * - 2 * COUNT ( * ) AS col1, 20 * - + 67 col2
----
-196
-1340

query I rowsort
SELECT + - 85 col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4563
SELECT ALL - CASE + 81 WHEN - ( - + 12 ) + - + 89 THEN NULL WHEN AVG ( ALL 47 ) THEN - - 97 * + 13 * + + 41 * + COALESCE ( - 17, + NULLIF ( - CAST( NULL AS SIGNED ), + 35 ) ) DIV - CAST( + 20 AS SIGNED ) * 74 + - ( - COUNT( * ) ) + 23 + - 90 + - - 85 * 74 * + - COUNT( * ) ELSE + 77 END
----
-77

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL - CASE + 81 WHEN - ( - + 12 ) + - + 89 THEN NULL WHEN AVG ( ALL 47 ) THEN - - 97 * + 13 * + + 41 * + COALESCE ( - 17, + NULLIF ( - CAST ( NULL AS INTEGER ), + 35 ) ) / - CAST ( + 20 AS INTEGER ) * 74 + - ( - COUNT ( * ) ) + 23 + - 90 + - - 85 * 74 * + - COUNT ( * ) ELSE + 77 END
----
-77

query I rowsort
SELECT 77 * + 57 * + 92 + - 10
----
403778

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT - SUM( ALL - 66 ) * + COUNT( * ) + + 47 + 6 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-4565
SELECT - SUM ( ALL - 66 ) * + COUNT ( * ) + + 47 + 6 AS col2
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-4566
SELECT ALL + COUNT( * ) * - 71 + + 34 * + - 24 * - COUNT( * ), + 58 col1
----
745
58

skipif mysql # not compatible
query II rowsort label-4566
SELECT ALL + COUNT ( * ) * - 71 + + 34 * + - 24 * - COUNT ( * ), + 58 col1
----
745
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4567
SELECT DISTINCT + + 54 DIV COALESCE ( + NULLIF ( - CAST( NULL AS SIGNED ), + COUNT( * ) * + - 25 ), - 81 * + - 82 )
----
0

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT + + 54 / COALESCE ( + NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) * + - 25 ), - 81 * + - 82 )
----
0

query II rowsort
SELECT DISTINCT - 26 AS col2, 92 + - 25 AS col1
----
-26
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4569
SELECT ALL + 90 * 5 + COUNT( * ) + - + COUNT( * ) + - - CAST( + 10 AS SIGNED ) - + - 96 * - 67 * - + 47 * 20 col0, ( + - ( + COUNT( * ) ) ) + + - 37 col2
----
6046540
-38

skipif mysql # not compatible
query II rowsort label-4569
SELECT ALL + 90 * 5 + COUNT ( * ) + - + COUNT ( * ) + - - CAST ( + 10 AS INTEGER ) - + - 96 * - 67 * - + 47 * 20 col0, ( + - ( + COUNT ( * ) ) ) + + - 37 col2
----
6046540
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-4570
SELECT DISTINCT - - 41 + COALESCE ( + - 52, - - 85 * - 15 * 30 + 31 ) + 36 * - ( CASE - + 25 WHEN - 37 THEN + - 73 ELSE NULL END ) col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4570
SELECT DISTINCT - - 41 + COALESCE ( + - 52, - - 85 * - 15 * 30 + 31 ) + 36 * - ( CASE - + 25 WHEN - 37 THEN + - 73 ELSE NULL END ) col2, COUNT ( * )
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT ALL + 99 + + 56 DIV + - 97
----
99

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL + 99 + + 56 / + - 97
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4572
SELECT + + ( 11 ) DIV - NULLIF ( 45, + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4572
SELECT + + ( 11 ) / - NULLIF ( 45, + COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT - + CAST( + - 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-4573
SELECT - + CAST ( + - 12 AS INTEGER )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT ALL - COUNT( * ) + + 17
----
16

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL - COUNT ( * ) + + 17
----
16

query I rowsort
SELECT - - 44 * ( + 76 ) * + 99
----
331056

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT - MIN( + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-4576
SELECT - MIN ( + 51 )
----
-51

query I rowsort
SELECT DISTINCT 56 + - - 66
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4578
SELECT ALL 14 + 57 + - COALESCE ( COUNT( * ), NULLIF ( - ( 46 ), - 71 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL 14 + 57 + - COALESCE ( COUNT ( * ), NULLIF ( - ( 46 ), - 71 ) ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 65, 77 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4580
SELECT ALL 8 * + - ( - 42 ) * 93 + - ( + COUNT( * ) ), 13 AS col1
----
31247
13

skipif mysql # not compatible
query II rowsort label-4580
SELECT ALL 8 * + - ( - 42 ) * 93 + - ( + COUNT ( * ) ), 13 AS col1
----
31247
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT DISTINCT 20 + + MAX( DISTINCT + + 62 )
----
82

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT 20 + + MAX ( DISTINCT + + 62 )
----
82

query I rowsort
SELECT - COALESCE ( + - 54, - 7, - 58 * + 95 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4583
SELECT 82 AS col1, CAST( NULL AS SIGNED ) col2
----
82
NULL

skipif mysql # not compatible
query II rowsort label-4583
SELECT 82 AS col1, CAST ( NULL AS INTEGER ) col2
----
82
NULL

query I rowsort
SELECT ALL 55 + + + 3
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT + CAST( + 37 AS SIGNED ) * 53
----
1961

skipif mysql # not compatible
query I rowsort label-4585
SELECT + CAST ( + 37 AS INTEGER ) * 53
----
1961

query I rowsort
SELECT + 37 + + 30
----
67

query II rowsort
SELECT 96, 20 AS col1
----
96
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT - 19 DIV - 24 col0
----
0

skipif mysql # not compatible
query I rowsort label-4588
SELECT - 19 / - 24 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4589
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) col1, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4589
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) col1, + COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT 95 * 26 + - 49 * + 71
----
-1009

onlyif mysql # aggregate syntax: 
query II rowsort label-4591
SELECT ( CASE + 24 WHEN + 19 + 71 - + 63 * + 41 THEN - + 35 * - 31 + + 17 WHEN - 42 THEN NULL END ) AS col2, - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4591
SELECT ( CASE + 24 WHEN + 19 + 71 - + 63 * + 41 THEN - + 35 * - 31 + + 17 WHEN - 42 THEN NULL END ) AS col2, - COUNT ( * ) AS col2
----
NULL
-1

query II rowsort
SELECT ALL + 25 AS col0, - 87 AS col1
----
25
-87

query I rowsort
SELECT DISTINCT - 14 * - 26 AS col1
----
364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4594
SELECT ALL - ( + + 72 ) DIV + COALESCE ( + 52, COUNT( * ) * - 14 * 38 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL - ( + + 72 ) / + COALESCE ( + 52, COUNT ( * ) * - 14 * 38 ) col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4595
SELECT + - 40 DIV - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4595
SELECT + - 40 / - 65 AS col0
----
0

query I rowsort
SELECT - - 60 * + - 37 col1
----
-2220

query I rowsort
SELECT ALL + 55 * 24
----
1320

query II rowsort
SELECT + 31, 85 * + 30 AS col1
----
31
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT NULLIF ( + + SUM( ALL 72 ), - 50 )
----
72

skipif mysql # not compatible
query I rowsort label-4599
SELECT NULLIF ( + + SUM ( ALL 72 ), - 50 )
----
72

query II rowsort
SELECT + 81, 13 col1
----
81
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT ALL + 5 * - + ( MAX( + 75 ) ) col2
----
-375

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL + 5 * - + ( MAX ( + 75 ) ) col2
----
-375

query I rowsort
SELECT ALL 55 * 18 + - - 71 + - + 10
----
1051

query I rowsort
SELECT ALL + - 59 * + 98 * + 6 + + - 97 + ( - 59 ) * + + 58 * + 63 * 67 - + 15
----
-14479066

query I rowsort
SELECT - + 33 * + + 93 AS col1
----
-3069

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT - 43 * - + ( - ( + 21 ) ) + - 19 + - 62 DIV + 68 + - 22 AS col0
----
-944

skipif mysql # not compatible
query I rowsort label-4605
SELECT - 43 * - + ( - ( + 21 ) ) + - 19 + - 62 / + 68 + - 22 AS col0
----
-944

query II rowsort
SELECT - 16 AS col2, ( + 99 )
----
-16
99

query II rowsort
SELECT - 91 + + - 48 + - - 40 + - - 71 * + + ( - - 65 ), + 95 AS col1
----
4516
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT + + 2 * 62 + + 3 - + 56 DIV 1 * 4 + 49 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-4608
SELECT + + 2 * 62 + + 3 - + 56 / 1 * 4 + 49 AS col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT ALL - + 76 DIV - 43 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL - + 76 / - 43 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT - CAST( NULL AS SIGNED ) + + - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT - CAST ( NULL AS INTEGER ) + + - 12 AS col2
----
NULL

query I rowsort
SELECT - 80 * 14 + 55 + - 67 * ( - 97 ) * + 48 - - 61
----
310948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4612
SELECT DISTINCT CASE - - 87 WHEN MIN( DISTINCT + 93 ) THEN NULL WHEN - + CAST( NULL AS SIGNED ) THEN 29 * COUNT( * ) + + - MAX( - 66 ) WHEN - COUNT( * ) / - 64 + - - 75 THEN - + 57 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT CASE - - 87 WHEN MIN ( DISTINCT + 93 ) THEN NULL WHEN - + CAST ( NULL AS INTEGER ) THEN 29 * COUNT ( * ) + + - MAX ( - 66 ) WHEN - COUNT ( * ) / - 64 + - - 75 THEN - + 57 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4613
SELECT ALL - CAST( NULL AS SIGNED ) / + 11 / + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL - CAST ( NULL AS INTEGER ) / + 11 / + 3 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4614
SELECT ALL + 35 - 43 DIV - 36 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL + 35 - 43 / - 36 AS col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4615
SELECT + 49 + - CAST( - 62 AS SIGNED ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-4615
SELECT + 49 + - CAST ( - 62 AS INTEGER ) AS col2
----
111

onlyif mysql # DIV for integer division: 
query II rowsort label-4616
SELECT - 61 DIV 1, 32 AS col0
----
-61
32

skipif mysql # not compatible
query II rowsort label-4616
SELECT - 61 / 1, 32 AS col0
----
-61
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4617
SELECT + CAST( NULL AS SIGNED ) + MIN( ALL - 37 ) * + ( - 48 ) * - + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT + CAST ( NULL AS INTEGER ) + MIN ( ALL - 37 ) * + ( - 48 ) * - + 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4618
SELECT + CAST( NULL AS SIGNED ) + + - 51 + - - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT + CAST ( NULL AS INTEGER ) + + - 51 + - - 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT + 19 + - - COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4619
SELECT + 19 + - - COUNT ( * ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT - COUNT( ALL 97 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4620
SELECT - COUNT ( ALL 97 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4621
SELECT + CAST( NULL AS SIGNED ) * MAX( 12 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT + CAST ( NULL AS INTEGER ) * MAX ( 12 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4622
SELECT ALL CAST( - 95 AS SIGNED ) AS col0, CAST( 25 AS SIGNED )
----
-95
25

skipif mysql # not compatible
query II rowsort label-4622
SELECT ALL CAST ( - 95 AS INTEGER ) AS col0, CAST ( 25 AS INTEGER )
----
-95
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4623
SELECT - ( - COUNT( NULLIF ( - - 36, - 92 * + CAST( NULL AS SIGNED ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4623
SELECT - ( - COUNT ( NULLIF ( - - 36, - 92 * + CAST ( NULL AS INTEGER ) ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT + CAST( 99 AS SIGNED ) col2
----
99

skipif mysql # not compatible
query I rowsort label-4624
SELECT + CAST ( 99 AS INTEGER ) col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4625
SELECT + COUNT( * ) DIV + 82 * - 67 + + 16
----
16

skipif mysql # not compatible
query I rowsort label-4625
SELECT + COUNT ( * ) / + 82 * - 67 + + 16
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4626
SELECT + ( + 4 ) * NULLIF ( + ( 66 ), - + ( - 14 ) * + COALESCE ( + 20, - - 36 / - + 68 ) * + + CAST( - 41 AS SIGNED ) + + 44 + - CAST( NULL AS SIGNED ) + - 79 ) AS col2
----
264

skipif mysql # not compatible
query I rowsort label-4626
SELECT + ( + 4 ) * NULLIF ( + ( 66 ), - + ( - 14 ) * + COALESCE ( + 20, - - 36 / - + 68 ) * + + CAST ( - 41 AS INTEGER ) + + 44 + - CAST ( NULL AS INTEGER ) + - 79 ) AS col2
----
264

query II rowsort
SELECT + + 73 * + + COALESCE ( - - 77, - ( - - 88 ) ) AS col1, + 40 + COALESCE ( + 33, - - 44 - + 54 )
----
5621
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4628
SELECT DISTINCT - - CAST( 21 AS SIGNED ) DIV 28 - + 68 + + COUNT( * ) + NULLIF ( + 79, + 98 * - 31 * + 1 - 55 ) + + 11 + NULLIF ( + COUNT( * ), - - 95 ) + - 92 - - + 52 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT - - CAST ( 21 AS INTEGER ) / 28 - + 68 + + COUNT ( * ) + NULLIF ( + 79, + 98 * - 31 * + 1 - 55 ) + + 11 + NULLIF ( + COUNT ( * ), - - 95 ) + - 92 - - + 52 AS col0
----
-16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4629
SELECT - 7 DIV CAST( + 78 AS SIGNED ) + - 22
----
-22

skipif mysql # not compatible
query I rowsort label-4629
SELECT - 7 / CAST ( + 78 AS INTEGER ) + - 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT ALL ( + - ( ( + CASE + 46 WHEN - 9 * 72 * 39 + 28 THEN + + MIN( ALL - 74 ) * 80 * + 72 + - ( - + 72 ) * - SUM( - 65 ) * + - ( + 48 ) * + 90 + - 22 WHEN 71 + - 95 THEN + - 68 END ) ) ) + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL ( + - ( ( + CASE + 46 WHEN - 9 * 72 * 39 + 28 THEN + + MIN ( ALL - 74 ) * 80 * + 72 + - ( - + 72 ) * - SUM ( - 65 ) * + - ( + 48 ) * + 90 + - 22 WHEN 71 + - 95 THEN + - 68 END ) ) ) + + 26
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT 84 DIV 18 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4631
SELECT 84 / 18 AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4632
SELECT - MIN( 53 ) * - CAST( NULL AS SIGNED ) * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4632
SELECT - MIN ( 53 ) * - CAST ( NULL AS INTEGER ) * 2
----
NULL

query I rowsort
SELECT + 45 + + 66 col0
----
111

onlyif mysql # DIV for integer division: 
query II rowsort label-4634
SELECT + 12 * 56 AS col0, - 91 + 23 + - 43 * 19 DIV - - 51 AS col1
----
672
-84

skipif mysql # not compatible
query II rowsort label-4634
SELECT + 12 * 56 AS col0, - 91 + 23 + - 43 * 19 / - - 51 AS col1
----
672
-84

query I rowsort
SELECT DISTINCT - - 51 AS col0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4636
SELECT DISTINCT 90 + - 12 DIV - MAX( + 8 ) DIV - COUNT( * ) + - + 18 + - MIN( + ( - 75 ) ) + 48 AS col0, + 24 + - ( 65 ) - - ( + MIN( + + 25 ) ) - - + 27 + + - 28 AS col2
----
194
-17

skipif mysql # not compatible
query II rowsort label-4636
SELECT DISTINCT 90 + - 12 / - MAX ( + 8 ) / - COUNT ( * ) + - + 18 + - MIN ( + ( - 75 ) ) + 48 AS col0, + 24 + - ( 65 ) - - ( + MIN ( + + 25 ) ) - - + 27 + + - 28 AS col2
----
194
-17

query I rowsort
SELECT ALL 95 - - 69 AS col0
----
164

onlyif mysql # aggregate syntax: 
query II rowsort label-4638
SELECT ALL 17, 43 * + + COUNT( * ) + - + ( MAX( - - 26 ) )
----
17
17

skipif mysql # not compatible
query II rowsort label-4638
SELECT ALL 17, 43 * + + COUNT ( * ) + - + ( MAX ( - - 26 ) )
----
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT ( + COUNT( ALL + 67 ) ) - 91 + + 57
----
-33

skipif mysql # not compatible
query I rowsort label-4639
SELECT ( + COUNT ( ALL + 67 ) ) - 91 + + 57
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4640
SELECT 90 * - ( - 65 ) AS col1, - CAST( + 99 AS SIGNED ) + + CAST( MAX( ALL 34 ) AS SIGNED )
----
5850
-65

skipif mysql # not compatible
query II rowsort label-4640
SELECT 90 * - ( - 65 ) AS col1, - CAST ( + 99 AS INTEGER ) + + CAST ( MAX ( ALL 34 ) AS INTEGER )
----
5850
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4641
SELECT DISTINCT - 58 DIV - 71 * + COUNT( * ) * + - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT - 58 / - 71 * + COUNT ( * ) * + - 75 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL + 4 - SUM( DISTINCT - - 63 )
----
-59

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL + 4 - SUM ( DISTINCT - - 63 )
----
-59

query I rowsort
SELECT 80 * - + 17 AS col1
----
-1360

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT 86 DIV 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT 86 / 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4645
SELECT ALL 49 AS col2, COUNT( * )
----
49
1

skipif mysql # not compatible
query II rowsort label-4645
SELECT ALL 49 AS col2, COUNT ( * )
----
49
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT ALL + 41 * - CAST( - 22 AS SIGNED )
----
902

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL + 41 * - CAST ( - 22 AS INTEGER )
----
902

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4647
SELECT DISTINCT - 86 * - - CAST( + 18 AS SIGNED ) AS col2, + 33 AS col1
----
-1548
33

skipif mysql # not compatible
query II rowsort label-4647
SELECT DISTINCT - 86 * - - CAST ( + 18 AS INTEGER ) AS col2, + 33 AS col1
----
-1548
33

query I rowsort
SELECT ALL + 14 + + 56
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT COUNT( * ) - - + 54 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4649
SELECT COUNT ( * ) - - + 54 AS col1
----
55

query I rowsort
SELECT 5 + - ( - 51 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL MIN( ALL - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL MIN ( ALL - 94 )
----
-94

query I rowsort
SELECT ALL - 27 + 26 + + 71 AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4653
SELECT ALL + 69 + + + CAST( NULL AS SIGNED ) / CAST( - COUNT( * ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL + 69 + + + CAST ( NULL AS INTEGER ) / CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT MIN( - - 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4654
SELECT MIN ( - - 70 ) AS col0
----
70

query I rowsort
SELECT ALL 10 + + 13 AS col2
----
23

query I rowsort
SELECT DISTINCT + - 47 + + 13 + - 71
----
-105

query I rowsort
SELECT - 93 * + 6
----
-558

query I rowsort
SELECT ALL + + 97 + + + 69 + - ( + 80 ) * 17
----
-1194

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT DISTINCT - + COUNT( * ) * + + 71
----
-71

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT - + COUNT ( * ) * + + 71
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - COUNT( * ) * - 43 + CASE 62 WHEN + + 53 THEN 22 / 27 + + 44 + + 6 WHEN - SUM( DISTINCT + 69 ) * + + 51 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT - COUNT ( * ) * - 43 + CASE 62 WHEN + + 53 THEN 22 / 27 + + 44 + + 6 WHEN - SUM ( DISTINCT + 69 ) * + + 51 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4661
SELECT - MIN( + NULLIF ( - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT - MIN ( + NULLIF ( - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT DISTINCT 13 + 91 + + NULLIF ( - COUNT( * ), + + 52 ) + + 45 col2
----
148

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT 13 + 91 + + NULLIF ( - COUNT ( * ), + + 52 ) + + 45 col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL + - SUM( ALL + - ( + 47 ) ) * 97 + COUNT( * )
----
4560

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL + - SUM ( ALL + - ( + 47 ) ) * 97 + COUNT ( * )
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT - - NULLIF ( - SUM( DISTINCT + 7 ), 69 ) - - MIN( ALL 90 ) + + + SUM( DISTINCT - 87 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT - - NULLIF ( - SUM ( DISTINCT + 7 ), 69 ) - - MIN ( ALL 90 ) + + + SUM ( DISTINCT - 87 ) AS col2
----
-4

query I rowsort
SELECT + ( 4 ) col0
----
4

query I rowsort
SELECT DISTINCT - + ( - 33 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4667
SELECT DISTINCT - 68 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT - 68 / - 88
----
0

query II rowsort
SELECT 51 + 86 * - 52 * - - 17 AS col2, 63 AS col2
----
-75973
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4669
SELECT ( + + 54 ) * - ( COALESCE ( + 77, - COUNT( * ) * 37 + + + COALESCE ( + - 72, - 78 ) + + 28, - 47 + COUNT( * ) ) ) + 49 AS col1, 35
----
-4109
35

skipif mysql # not compatible
query II rowsort label-4669
SELECT ( + + 54 ) * - ( COALESCE ( + 77, - COUNT ( * ) * 37 + + + COALESCE ( + - 72, - 78 ) + + 28, - 47 + COUNT ( * ) ) ) + 49 AS col1, 35
----
-4109
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4670
SELECT ALL 32 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL 32 / 58
----
0

query I rowsort
SELECT 0 * + 70 AS col2
----
0

query I rowsort
SELECT ALL 25 * + 27 AS col0
----
675

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT 77 * - 86 * + 71 * COUNT( * ) AS col0, - 60
----
-470162
-60

skipif mysql # not compatible
query II rowsort label-4673
SELECT 77 * - 86 * + 71 * COUNT ( * ) AS col0, - 60
----
-470162
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT COUNT( - NULLIF ( - 18, 5 ) ) + - - 86
----
87

skipif mysql # not compatible
query I rowsort label-4674
SELECT COUNT ( - NULLIF ( - 18, 5 ) ) + - - 86
----
87

query I rowsort
SELECT ALL 89 * - 69 col2
----
-6141

query I rowsort
SELECT 5 + 50 + - - 51 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL SUM( DISTINCT - 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL SUM ( DISTINCT - 58 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT MAX( + 51 ) * 33
----
1683

skipif mysql # not compatible
query I rowsort label-4678
SELECT MAX ( + 51 ) * 33
----
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT 15 + 3 + 28 * - MAX( - 33 )
----
942

skipif mysql # not compatible
query I rowsort label-4679
SELECT 15 + 3 + 28 * - MAX ( - 33 )
----
942

query I rowsort
SELECT ALL - 46 + - + 0 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT ALL - 82 + MAX( DISTINCT + 71 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL - 82 + MAX ( DISTINCT + 71 ) AS col0
----
-11

query I rowsort
SELECT 40 + - 88
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT ALL + 10 + - + 37 + - - COUNT( * ) * + COUNT( * ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL + 10 + - + 37 + - - COUNT ( * ) * + COUNT ( * ) col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL COUNT( * ) + + - 0
----
1

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL COUNT ( * ) + + - 0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT ALL 82 + + 9 + 56 DIV + 59
----
91

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL 82 + + 9 + 56 / + 59
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT DISTINCT COUNT( * ) + - 13 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT COUNT ( * ) + - 13 AS col0
----
-12

query I rowsort
SELECT ALL + 18 + - + 93 * + 86 AS col0
----
-7980

query I rowsort
SELECT ALL + + 45 * 77
----
3465

query I rowsort
SELECT DISTINCT + 73 * + 51 AS col0
----
3723

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4690
SELECT ALL - + 62 * 89 DIV + COUNT( - 28 ) + + 22 col0
----
-5496

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL - + 62 * 89 / + COUNT ( - 28 ) + + 22 col0
----
-5496

query I rowsort
SELECT - + 51 - + 81 * 1 * - + 22
----
1731

query I rowsort
SELECT - + 46 * - 96 AS col2
----
4416

onlyif mysql # DIV for integer division: 
query I rowsort label-4693
SELECT - - 97 DIV - 4 + - 10 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4693
SELECT - - 97 / - 4 + - 10 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT - - SUM( DISTINCT - 26 ) * + 70
----
-1820

skipif mysql # not compatible
query I rowsort label-4694
SELECT - - SUM ( DISTINCT - 26 ) * + 70
----
-1820

query I rowsort
SELECT + ( - + 3 ) AS col2
----
-3

query I rowsort
SELECT DISTINCT + + 50 AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4697
SELECT ALL + - ( + + 31 ) AS col2, + COUNT( * ) col1
----
-31
1

skipif mysql # not compatible
query II rowsort label-4697
SELECT ALL + - ( + + 31 ) AS col2, + COUNT ( * ) col1
----
-31
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4698
SELECT DISTINCT - + 78 * - - 70 * - - 58 * + CAST( NULL AS SIGNED ) - - 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT - + 78 * - - 70 * - - 58 * + CAST ( NULL AS INTEGER ) - - 17 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT + - SUM( - + 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT + - SUM ( - + 81 ) AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4700
SELECT DISTINCT - 81 * + - 22 - + COUNT( * ) * ( - 78 ) * + 22 * - 4 * - 76 - CAST( NULL AS SIGNED ) + 25 + + + 66 * - + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT - 81 * + - 22 - + COUNT ( * ) * ( - 78 ) * + 22 * - 4 * - 76 - CAST ( NULL AS INTEGER ) + 25 + + + 66 * - + 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4701
SELECT ALL + COALESCE ( + 22, + ( - 91 ) * + 46 * - + 68 - 94 + - MIN( DISTINCT + 17 ) + + - 58 - 2 + 95 DIV - 81 * - 49 * - ( 28 ) - 77, - COUNT( * ) + + 99 + 87 ) * + 36 col0
----
792

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL + COALESCE ( + 22, + ( - 91 ) * + 46 * - + 68 - 94 + - MIN ( DISTINCT + 17 ) + + - 58 - 2 + 95 / - 81 * - 49 * - ( 28 ) - 77, - COUNT ( * ) + + 99 + 87 ) * + 36 col0
----
792

query I rowsort
SELECT DISTINCT 91 * + 0 AS col0
----
0

query I rowsort
SELECT + 2 * + - 46 * + - ( + 89 ) AS col0
----
8188

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT - NULLIF ( + - 54, - 92 + - + 57 ) * - - SUM( + - 39 )
----
-2106

skipif mysql # not compatible
query I rowsort label-4704
SELECT - NULLIF ( + - 54, - 92 + - + 57 ) * - - SUM ( + - 39 )
----
-2106

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4705
SELECT ALL + 15 AS col2, 22 + - 25 + - 98 + + 80 / + CAST( NULL AS DECIMAL ) * - + ( - + 26 ) * - 20 AS col2
----
15
NULL

skipif mysql # not compatible
query II rowsort label-4705
SELECT ALL + 15 AS col2, 22 + - 25 + - 98 + + 80 / + CAST ( NULL AS REAL ) * - + ( - + 26 ) * - 20 AS col2
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT DISTINCT + 58 * + + COUNT( ALL + 83 )
----
58

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT + 58 * + + COUNT ( ALL + 83 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT DISTINCT COUNT( * ) + + + 44
----
45

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT COUNT ( * ) + + + 44
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT - CAST( NULL AS SIGNED ) / 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4708
SELECT - CAST ( NULL AS INTEGER ) / 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4709
SELECT ALL NULLIF ( - 1, 22 * CAST( + + MIN( DISTINCT + 70 ) AS SIGNED ) + - 43 + + + COUNT( * ) * + 97 ) + + 48 + + + 89 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL NULLIF ( - 1, 22 * CAST ( + + MIN ( DISTINCT + 70 ) AS INTEGER ) + - 43 + + + COUNT ( * ) * + 97 ) + + 48 + + + 89 AS col0
----
136

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4710
SELECT + CAST( NULL AS DECIMAL ) - - + 10 / 76 + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT + CAST ( NULL AS REAL ) - - + 10 / 76 + 17
----
NULL

query I rowsort
SELECT + 13 * + 58 * 59 AS col0
----
44486

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT + 0 DIV - 30
----
0

skipif mysql # not compatible
query I rowsort label-4712
SELECT + 0 / - 30
----
0

query I rowsort
SELECT - 6 * 13 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT + 70 - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-4714
SELECT + 70 - COUNT ( * )
----
69

query I rowsort
SELECT DISTINCT 27 * - - 61
----
1647

query I rowsort
SELECT DISTINCT + 19 + - + 77 AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4717
SELECT CASE + - SUM( ALL 33 ) WHEN - + 26 * + ( - + 10 ) + - CAST( NULL AS SIGNED ) * - 10 THEN NULL ELSE 19 * - 26 * + 28 + 52 END col1
----
-13780

skipif mysql # not compatible
query I rowsort label-4717
SELECT CASE + - SUM ( ALL 33 ) WHEN - + 26 * + ( - + 10 ) + - CAST ( NULL AS INTEGER ) * - 10 THEN NULL ELSE 19 * - 26 * + 28 + 52 END col1
----
-13780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT - - CAST( - 56 AS SIGNED ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-4718
SELECT - - CAST ( - 56 AS INTEGER ) col2
----
-56

query I rowsort
SELECT ALL - 86 + - - 26
----
-60

query I rowsort
SELECT + - 81 + + 68
----
-13

query I rowsort
SELECT + + 6 + + - 22 AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT - CAST( NULL AS SIGNED ) - + 98 + + + 0 - 40 + - MAX( ( - 2 ) ) * NULLIF ( - 36, - + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT - CAST ( NULL AS INTEGER ) - + 98 + + + 0 - 40 + - MAX ( ( - 2 ) ) * NULLIF ( - 36, - + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4723
SELECT ALL 1, CAST( + 92 AS SIGNED ) DIV - 79 + 37 AS col2
----
1
36

skipif mysql # not compatible
query II rowsort label-4723
SELECT ALL 1, CAST ( + 92 AS INTEGER ) / - 79 + 37 AS col2
----
1
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT - 16 - - COUNT( * ) + - - MAX( - ( + ( - - 60 ) ) ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4724
SELECT - 16 - - COUNT ( * ) + - - MAX ( - ( + ( - - 60 ) ) ) AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4725
SELECT DISTINCT + + CASE CAST( NULL AS SIGNED ) WHEN - SUM( + ( 6 ) ) THEN NULL ELSE + 99 END * + 39 AS col2
----
3861

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT + + CASE CAST ( NULL AS INTEGER ) WHEN - SUM ( + ( 6 ) ) THEN NULL ELSE + 99 END * + 39 AS col2
----
3861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4726
SELECT ALL + COALESCE ( - COUNT( * ), + + 32, - - 80 * + 9 DIV 93 * CAST( - MAX( ALL - - 65 ) AS SIGNED ) + 54, 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL + COALESCE ( - COUNT ( * ), + + 32, - - 80 * + 9 / 93 * CAST ( - MAX ( ALL - - 65 ) AS INTEGER ) + 54, 74 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT ALL - 34 DIV + 16
----
-2

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - 34 / + 16
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT - NULLIF ( + 52, + 54 ) * - COUNT( * ) + + 54
----
106

skipif mysql # not compatible
query I rowsort label-4728
SELECT - NULLIF ( + 52, + 54 ) * - COUNT ( * ) + + 54
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT + - 79 DIV - 6 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4729
SELECT + - 79 / - 6 AS col2
----
13

query I rowsort
SELECT - - 73 * + 35 AS col2
----
2555

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4731
SELECT + COALESCE ( + - 96, + SUM( + + 28 ) + - 66 ) + 31 - + - CAST( NULL AS DECIMAL ) * + 58 * - 75 * - 79 + - 77 + + + ( - COUNT( + + ( 50 ) ) ) + + + 4 * + 48 + 78 + - - 94 + + - 88 * + 59 * + 78 + COUNT( * ) * - COALESCE ( - 33, 60 ) * + - 24 - + + 43 / - 61 * + 83 * COUNT( ALL ( + 88 ) ) + CASE - MAX( + + 57 ) WHEN - + 57 * + CASE - COUNT( * ) WHEN + 47 THEN 11 * COALESCE ( - 55 * 92, + ( 90 ) / - 68, - NULLIF ( - 13, 73 ) + + 4 * COUNT( * ) ) WHEN ( COALESCE ( + ( + COUNT( * ) ), + 86 + - 81 * - 34 ) ) * - 66 THEN 4 ELSE NULL END + 21 THEN NULL WHEN + 4 * - 3 + ( 17 ) THEN + 26 + 4 WHEN - 35 THEN 91 + ( - 20 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT + COALESCE ( + - 96, + SUM ( + + 28 ) + - 66 ) + 31 - + - CAST ( NULL AS REAL ) * + 58 * - 75 * - 79 + - 77 + + + ( - COUNT ( + + ( 50 ) ) ) + + + 4 * + 48 + 78 + - - 94 + + - 88 * + 59 * + 78 + COUNT ( * ) * - COALESCE ( - 33, 60 ) * + - 24 - + + 43 / - 61 * + 83 * COUNT ( ALL ( + 88 ) ) + CASE - MAX ( + + 57 ) WHEN - + 57 * + CASE - COUNT ( * ) WHEN + 47 THEN 11 * COALESCE ( - 55 * 92, + ( 90 ) / - 68, - NULLIF ( - 13, 73 ) + + 4 * COUNT ( * ) ) WHEN ( COALESCE ( + ( + COUNT ( * ) ), + 86 + - 81 * - 34 ) ) * - 66 THEN 4 ELSE NULL END + 21 THEN NULL WHEN + 4 * - 3 + ( 17 ) THEN + 26 + 4 WHEN - 35 THEN 91 + ( - 20 ) END AS col1
----
NULL

query I rowsort
SELECT - + COALESCE ( - + 60, - - 63 ) * + 19
----
1140

query I rowsort
SELECT - + 99 * 19
----
-1881

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT + NULLIF ( 72, + + MAX( + ( + 48 ) ) ) * - 30 + + SUM( + 49 )
----
-2111

skipif mysql # not compatible
query I rowsort label-4734
SELECT + NULLIF ( 72, + + MAX ( + ( + 48 ) ) ) * - 30 + + SUM ( + 49 )
----
-2111

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT - CASE - 48 WHEN + 18 THEN NULL WHEN 65 THEN NULL ELSE - COUNT( * ) END * - - SUM( + 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4735
SELECT - CASE - 48 WHEN + 18 THEN NULL WHEN 65 THEN NULL ELSE - COUNT ( * ) END * - - SUM ( + 59 ) AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT - CASE + 72 WHEN + + 63 THEN + + 69 + + CAST( NULL AS SIGNED ) * 57 * 96 END * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT - CASE + 72 WHEN + + 63 THEN + + 69 + + CAST ( NULL AS INTEGER ) * 57 * 96 END * - 1
----
NULL

query I rowsort
SELECT ALL + ( - - 87 ) AS col2
----
87

query I rowsort
SELECT + 72 * - + 89 - ( + + 19 ) AS col2
----
-6427

onlyif mysql # aggregate syntax: 
query II rowsort label-4739
SELECT DISTINCT + NULLIF ( + 93, + MIN( 36 ) ) col0, 40 AS col0
----
93
40

skipif mysql # not compatible
query II rowsort label-4739
SELECT DISTINCT + NULLIF ( + 93, + MIN ( 36 ) ) col0, 40 AS col0
----
93
40

query II rowsort
SELECT ALL + 25 AS col2, 21
----
25
21

query I rowsort
SELECT - 84 - - 71 * - + 17 AS col2
----
-1291

query I rowsort
SELECT DISTINCT 28 * - 6 + - 43 AS col0
----
-211

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL SUM( DISTINCT + - 44 ) * - 9 + 13 + 31 AS col0
----
440

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL SUM ( DISTINCT + - 44 ) * - 9 + 13 + 31 AS col0
----
440

query I rowsort
SELECT NULLIF ( + 51, - + 95 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT + NULLIF ( - 91, 41 + + COUNT( * ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4745
SELECT + NULLIF ( - 91, 41 + + COUNT ( * ) ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT - COUNT( * ) + 34 + 89 + + ( + 84 ) AS col1
----
206

skipif mysql # not compatible
query I rowsort label-4746
SELECT - COUNT ( * ) + 34 + 89 + + ( + 84 ) AS col1
----
206

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT DISTINCT + SUM( ALL - + 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT + SUM ( ALL - + 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT + COUNT( * ) - + ( 34 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4748
SELECT + COUNT ( * ) - + ( 34 ) AS col2
----
-33

query I rowsort
SELECT 19 * + 39 + - 64
----
677

onlyif mysql # aggregate syntax: 
query II rowsort label-4750
SELECT DISTINCT 51 AS col2, + 36 * - COUNT( * )
----
51
-36

skipif mysql # not compatible
query II rowsort label-4750
SELECT DISTINCT 51 AS col2, + 36 * - COUNT ( * )
----
51
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT 46 * - - 69 + CAST( + 39 AS SIGNED ) + + 19 * 72
----
4581

skipif mysql # not compatible
query I rowsort label-4751
SELECT 46 * - - 69 + CAST ( + 39 AS INTEGER ) + + 19 * 72
----
4581

query I rowsort
SELECT ALL - 10 * - 44 AS col2
----
440

query II rowsort
SELECT ALL 56 AS col1, 4
----
56
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT COUNT( * ) + - 44 + + + MIN( + 94 ) * + 90
----
8417

skipif mysql # not compatible
query I rowsort label-4754
SELECT COUNT ( * ) + - 44 + + + MIN ( + 94 ) * + 90
----
8417

onlyif mysql # DIV for integer division: 
query II rowsort label-4755
SELECT DISTINCT 10 AS col1, + COALESCE ( 97, - 35 DIV - - 4 ) * - - 39
----
10
3783

skipif mysql # not compatible
query II rowsort label-4755
SELECT DISTINCT 10 AS col1, + COALESCE ( 97, - 35 / - - 4 ) * - - 39
----
10
3783

query I rowsort
SELECT 40 + - - 74 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT 11 * - + ( + + COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-4757
SELECT 11 * - + ( + + COUNT ( * ) )
----
-11

query I rowsort
SELECT 58 * + + ( + 18 ) AS col1
----
1044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4759
SELECT + CASE + ( - 65 ) WHEN 40 * - 93 * + 52 * + 20 + - + NULLIF ( + COALESCE ( + 57, 12 * ( + - 9 ) + + 74 - - - COUNT( * ) / - 84 ), - 77 + - - 45 * + CAST( NULL AS SIGNED ) / - + 29 ) + - + 84 * + MAX( ALL - 42 ) THEN + 59 ELSE NULL END + 28 * ( - + 67 ) * - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT + CASE + ( - 65 ) WHEN 40 * - 93 * + 52 * + 20 + - + NULLIF ( + COALESCE ( + 57, 12 * ( + - 9 ) + + 74 - - - COUNT ( * ) / - 84 ), - 77 + - - 45 * + CAST ( NULL AS INTEGER ) / - + 29 ) + - + 84 * + MAX ( ALL - 42 ) THEN + 59 ELSE NULL END + 28 * ( - + 67 ) * - 39 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4760
SELECT COUNT( * ) AS col0, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-4760
SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT - 87 + + 34 AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4762
SELECT DISTINCT 5 DIV - + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT 5 / - + COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT ALL - COUNT( ALL 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - COUNT ( ALL 9 )
----
-1

query I rowsort
SELECT - + COALESCE ( + + 22, + 29 )
----
-22

query I rowsort
SELECT DISTINCT + 5 * + 85 - - 91
----
516

onlyif mysql # aggregate syntax: 
query II rowsort label-4766
SELECT + 19 col0, + SUM( DISTINCT + 58 )
----
19
58

skipif mysql # not compatible
query II rowsort label-4766
SELECT + 19 col0, + SUM ( DISTINCT + 58 )
----
19
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4767
SELECT + 52, - COUNT( * ) AS col0
----
52
-1

skipif mysql # not compatible
query II rowsort label-4767
SELECT + 52, - COUNT ( * ) AS col0
----
52
-1

query II rowsort
SELECT ALL 80 AS col0, - 39
----
80
-39

query II rowsort
SELECT + 3 AS col2, - 20 * + ( - + 9 ) AS col2
----
3
180

query I rowsort
SELECT 55 - 31 AS col0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4771
SELECT + 89 DIV - + 96 + - 84 * 17
----
-1428

skipif mysql # not compatible
query I rowsort label-4771
SELECT + 89 / - + 96 + - 84 * 17
----
-1428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4772
SELECT + 26 * COUNT( * ) DIV 53 - - + ( - ( - 59 ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4772
SELECT + 26 * COUNT ( * ) / 53 - - + ( - ( - 59 ) ) AS col0
----
59

query II rowsort
SELECT DISTINCT - 4 AS col2, + 17 AS col2
----
-4
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL - - COALESCE ( - - 48, + 63 * COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL - - COALESCE ( - - 48, + 63 * COUNT ( * ) )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4775
SELECT + ( - 23 ) DIV + 81 col1
----
0

skipif mysql # not compatible
query I rowsort label-4775
SELECT + ( - 23 ) / + 81 col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4776
SELECT ALL - CASE 15 WHEN + 99 THEN + AVG ( - - 21 ) * 63 WHEN + + 31 THEN NULL ELSE NULL END AS col1, 2 + + 36 DIV + - 30 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4776
SELECT ALL - CASE 15 WHEN + 99 THEN + AVG ( - - 21 ) * 63 WHEN + + 31 THEN NULL ELSE NULL END AS col1, 2 + + 36 / + - 30 AS col0
----
NULL
1

query I rowsort
SELECT DISTINCT 32 + + 56 col0
----
88

query I rowsort
SELECT 99 - + 19 - + + 74 AS col2
----
6

query I rowsort
SELECT ALL 67 + 63 + 32
----
162

onlyif mysql # DIV for integer division: 
query II rowsort label-4780
SELECT 95 DIV - 68 AS col2, ( 63 ) AS col0
----
-1
63

skipif mysql # not compatible
query II rowsort label-4780
SELECT 95 / - 68 AS col2, ( 63 ) AS col0
----
-1
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4781
SELECT 14 * - + MAX( DISTINCT - 29 ) + NULLIF ( + 69, + 2 + CAST( + 75 AS SIGNED ) + - + 24 ) DIV - 79 * + 96
----
406

skipif mysql # not compatible
query I rowsort label-4781
SELECT 14 * - + MAX ( DISTINCT - 29 ) + NULLIF ( + 69, + 2 + CAST ( + 75 AS INTEGER ) + - + 24 ) / - 79 * + 96
----
406

query II rowsort
SELECT ALL - ( - 86 ) AS col1, + 87
----
86
87

query I rowsort
SELECT ALL + 14 + 19 col0
----
33

query I rowsort
SELECT DISTINCT NULLIF ( 28, 30 + - 1 ) * - 62 * + 28 + - 83
----
-48691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4785
SELECT ALL - CAST( - 12 AS SIGNED ) + + + COUNT( * ) - - ( + - 7 ), + 77 * - 74 AS col0
----
6
-5698

skipif mysql # not compatible
query II rowsort label-4785
SELECT ALL - CAST ( - 12 AS INTEGER ) + + + COUNT ( * ) - - ( + - 7 ), + 77 * - 74 AS col0
----
6
-5698

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT DISTINCT + MIN( DISTINCT 82 ) + 64
----
146

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT + MIN ( DISTINCT 82 ) + 64
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4787
SELECT ALL + MAX( ALL - 92 ) - + + 47 + 60 + ( - ( ( - CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + MAX ( ALL - 92 ) - + + 47 + 60 + ( - ( ( - CAST ( NULL AS INTEGER ) ) ) )
----
NULL

query I rowsort
SELECT 20 - 40
----
-20

query I rowsort
SELECT 56 * 7 * - + 76 * - + 42
----
1251264

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL - SUM( - 71 ) * 6 - 69 * 39 * - 29 AS col0
----
78465

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL - SUM ( - 71 ) * 6 - 69 * 39 * - 29 AS col0
----
78465

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4791
SELECT ALL + 78 - - NULLIF ( - 11, - 32 + + + CAST( - 25 AS SIGNED ) * + 41 + - 64 ) * - + 18 * + 2 * + 73 * - 47 AS col1, 56 - ( - 52 ) * 50 + - 0
----
-1358598
2656

skipif mysql # not compatible
query II rowsort label-4791
SELECT ALL + 78 - - NULLIF ( - 11, - 32 + + + CAST ( - 25 AS INTEGER ) * + 41 + - 64 ) * - + 18 * + 2 * + 73 * - 47 AS col1, 56 - ( - 52 ) * 50 + - 0
----
-1358598
2656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4792
SELECT ALL - + ( CAST( 95 AS SIGNED ) ) * - 1
----
95

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL - + ( CAST ( 95 AS INTEGER ) ) * - 1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT + 37 - + COUNT( * ) + + 3 * - - 58 AS col1
----
210

skipif mysql # not compatible
query I rowsort label-4793
SELECT + 37 - + COUNT ( * ) + + 3 * - - 58 AS col1
----
210

query I rowsort
SELECT ALL - + 83 * 19 * 10
----
-15770

query I rowsort
SELECT - 60 * 37 * 0
----
0

query I rowsort
SELECT - 78 * + 34 * 39 * 52 - 52
----
-5378308

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT - 17 + COUNT( * ) + 59 + + 75 + + COUNT( * ) * 21 + - + 49 * + - 54
----
2785

skipif mysql # not compatible
query I rowsort label-4797
SELECT - 17 + COUNT ( * ) + 59 + + 75 + + COUNT ( * ) * 21 + - + 49 * + - 54
----
2785

onlyif mysql # DIV for integer division: 
query I rowsort label-4798
SELECT ALL - 51 DIV + 27 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL - 51 / + 27 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT + 26 * + COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4799
SELECT + 26 * + COUNT ( * ) AS col2
----
26

query II rowsort
SELECT 70 + + - 5 AS col1, - 37 * 2
----
65
-74

query I rowsort
SELECT + 1 - + + 86 * + 30 + - + 16 * - 26
----
-2163

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT ( - 37 ) * + + 76 * COUNT( * )
----
-2812

skipif mysql # not compatible
query I rowsort label-4802
SELECT ( - 37 ) * + + 76 * COUNT ( * )
----
-2812

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT 79 + - COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT 79 + - COUNT ( * ) AS col0
----
78

query II rowsort
SELECT DISTINCT - + ( + 90 ) AS col0, + 52 * + NULLIF ( + 15, 81 * 23 ) AS col2
----
-90
780

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT DISTINCT COUNT( * ) * - 11 * 56 * - - 65 + - - 17 + + COUNT( * )
----
-40022

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT COUNT ( * ) * - 11 * 56 * - - 65 + - - 17 + + COUNT ( * )
----
-40022

query I rowsort
SELECT ALL 20 * - 13 + 25 - 0 col2
----
-235

query I rowsort
SELECT 86 + + 62 * - + NULLIF ( + - 32, + ( - 46 ) ) AS col0
----
2070

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT + COUNT( - + 97 )
----
1

skipif mysql # not compatible
query I rowsort label-4808
SELECT + COUNT ( - + 97 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4809
SELECT COUNT( * ) AS col2, - NULLIF ( + - 23, + 82 ) - + COUNT( * )
----
1
22

skipif mysql # not compatible
query II rowsort label-4809
SELECT COUNT ( * ) AS col2, - NULLIF ( + - 23, + 82 ) - + COUNT ( * )
----
1
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4810
SELECT ALL - 60, CASE + SUM( - 86 ) WHEN + 47 THEN + + 30 WHEN - COUNT( * ) * + COUNT( * ) + 15 + - + 45 THEN NULL ELSE NULL END + - 30 + - - 1 AS col2
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-4810
SELECT ALL - 60, CASE + SUM ( - 86 ) WHEN + 47 THEN + + 30 WHEN - COUNT ( * ) * + COUNT ( * ) + 15 + - + 45 THEN NULL ELSE NULL END + - 30 + - - 1 AS col2
----
-60
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4811
SELECT + 76 * - 15 * 20 + + 42 DIV + + 91 AS col1
----
-22800

skipif mysql # not compatible
query I rowsort label-4811
SELECT + 76 * - 15 * 20 + + 42 / + + 91 AS col1
----
-22800

query I rowsort
SELECT 34 * - 13
----
-442

query I rowsort
SELECT ALL - 61 * - 22 * 59 * + 39 + + - 29
----
3087913

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT COUNT( - ( - 39 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4814
SELECT COUNT ( - ( - 39 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4815
SELECT ALL - 50 AS col0, - CASE MAX( + 72 ) WHEN 14 + + 51 + 36 - 97 * + 30 / - - CASE + 54 WHEN - 71 THEN + 17 * - ( - - 70 ) + 87 * + 78 WHEN 43 - + MIN( ALL - 13 ) THEN - + 70 END THEN NULL ELSE - COUNT( * ) END AS col2
----
-50
1

skipif mysql # not compatible
query II rowsort label-4815
SELECT ALL - 50 AS col0, - CASE MAX ( + 72 ) WHEN 14 + + 51 + 36 - 97 * + 30 / - - CASE + 54 WHEN - 71 THEN + 17 * - ( - - 70 ) + 87 * + 78 WHEN 43 - + MIN ( ALL - 13 ) THEN - + 70 END THEN NULL ELSE - COUNT ( * ) END AS col2
----
-50
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT - CAST( NULL AS SIGNED ) / - - 19 * + 45 - - ( 37 ) - ( + 99 ) + + - 39 * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT - CAST ( NULL AS INTEGER ) / - - 19 * + 45 - - ( 37 ) - ( + 99 ) + + - 39 * 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT - 24 * - MIN( + + 93 )
----
2232

skipif mysql # not compatible
query I rowsort label-4817
SELECT - 24 * - MIN ( + + 93 )
----
2232

query I rowsort
SELECT + 35 + + 37 + 43
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL - 93 * - COUNT( + 11 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - 93 * - COUNT ( + 11 ) AS col2
----
93

query I rowsort
SELECT - 17 - + NULLIF ( + ( + 36 ), 39 ) + - 98 AS col2
----
-151

query I rowsort
SELECT ALL + ( + - 68 ) * 63
----
-4284

query II rowsort
SELECT DISTINCT - 54 AS col1, 75
----
-54
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4823
SELECT DISTINCT NULLIF ( + CAST( NULL AS SIGNED ), - CASE 5 WHEN 10 THEN NULL WHEN - + 4 THEN COUNT( * ) WHEN NULLIF ( + - 1, + 35 ) THEN + + 70 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT NULLIF ( + CAST ( NULL AS INTEGER ), - CASE 5 WHEN 10 THEN NULL WHEN - + 4 THEN COUNT ( * ) WHEN NULLIF ( + - 1, + 35 ) THEN + + 70 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4824
SELECT - COALESCE ( + + 52, ( - 33 ) / + + COUNT( * ), + COUNT( * ) * - 6 * CASE - + COUNT( * ) WHEN - - COUNT( * ) + NULLIF ( + CAST( NULL AS SIGNED ), + 37 * - 12 * - COUNT( * ) * 60 * - + 10 ) * 34 THEN NULL WHEN 90 * 94 + 7 + - MAX( DISTINCT - - 34 ) + - 49 + + - ( + COUNT( * ) ) THEN NULL ELSE 13 * - 37 END + 61 + + - 32 ) + - COALESCE ( - 69, 47 ) + + - CASE - 48 WHEN - + 22 + - 29 + COUNT( * ) * + + 39 THEN 31 WHEN - + 15 * - 25 THEN NULL WHEN + AVG ( + 67 ) THEN - 9 END / NULLIF ( + 21 + + 72, 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT - COALESCE ( + + 52, ( - 33 ) / + + COUNT ( * ), + COUNT ( * ) * - 6 * CASE - + COUNT ( * ) WHEN - - COUNT ( * ) + NULLIF ( + CAST ( NULL AS INTEGER ), + 37 * - 12 * - COUNT ( * ) * 60 * - + 10 ) * 34 THEN NULL WHEN 90 * 94 + 7 + - MAX ( DISTINCT - - 34 ) + - 49 + + - ( + COUNT ( * ) ) THEN NULL ELSE 13 * - 37 END + 61 + + - 32 ) + - COALESCE ( - 69, 47 ) + + - CASE - 48 WHEN - + 22 + - 29 + COUNT ( * ) * + + 39 THEN 31 WHEN - + 15 * - 25 THEN NULL WHEN + AVG ( + 67 ) THEN - 9 END / NULLIF ( + 21 + + 72, 71 )
----
NULL

query II rowsort
SELECT - 3, + 31 * - 51 - 72 AS col0
----
-3
-1653

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT - 62 + COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-4826
SELECT - 62 + COUNT ( * ) AS col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT ALL CAST( - 8 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL CAST ( - 8 AS INTEGER )
----
-8

query II rowsort
SELECT - 11 + + 1 + 71 col1, 73 * 19
----
61
1387

query I rowsort
SELECT - - 17 * + 0 * - - 57
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4830
SELECT - - CASE - NULLIF ( + - COALESCE ( - - 25, + - 50 * - + 51 - 85 + + 77 - + - 53 + + - 29, ( + - 7 ) ), - 54 * 77 ) WHEN CAST( NULL AS SIGNED ) * + - 86 * - 1 THEN - 81 + - - CAST( - 40 AS SIGNED ) + + 14 / COUNT( * ) * - 34 * + - 67 WHEN + - 34 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT - - CASE - NULLIF ( + - COALESCE ( - - 25, + - 50 * - + 51 - 85 + + 77 - + - 53 + + - 29, ( + - 7 ) ), - 54 * 77 ) WHEN CAST ( NULL AS INTEGER ) * + - 86 * - 1 THEN - 81 + - - CAST ( - 40 AS INTEGER ) + + 14 / COUNT ( * ) * - 34 * + - 67 WHEN + - 34 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 62 + + - ( - + 28 )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4832
SELECT - + 62 AS col0, + MIN( ALL + 16 ) * - - 74 + - - 45 - + 50 * + + SUM( + - 39 ) + - - 1
----
-62
3180

skipif mysql # not compatible
query II rowsort label-4832
SELECT - + 62 AS col0, + MIN ( ALL + 16 ) * - - 74 + - - 45 - + 50 * + + SUM ( + - 39 ) + - - 1
----
-62
3180

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT DISTINCT - - 76 + - NULLIF ( - COUNT( * ), COUNT( * ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT - - 76 + - NULLIF ( - COUNT ( * ), COUNT ( * ) ) AS col1
----
77

query I rowsort
SELECT DISTINCT + - 13 + - 95
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL + 95 + - 78 + - COUNT( * ) col0
----
16

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL + 95 + - 78 + - COUNT ( * ) col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4836
SELECT + 97 DIV + 18 + + 89 + 79 - + MIN( + - 95 ) AS col0
----
268

skipif mysql # not compatible
query I rowsort label-4836
SELECT + 97 / + 18 + + 89 + 79 - + MIN ( + - 95 ) AS col0
----
268

query I rowsort
SELECT - 8 - 17 * + + 44 - 25
----
-781

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4838
SELECT + NULLIF ( CASE ( + ( 41 ) ) WHEN + + ( + - 97 ) * 28 THEN 75 WHEN - 82 * MIN( DISTINCT + ( + 54 ) ) THEN NULL WHEN + COALESCE ( + - 86, - + ( COUNT( * ) ), - ( 73 ) ) - - + 2 + 74 * CAST( - + 62 AS DECIMAL ) * - 41 THEN NULL END, + - 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT + NULLIF ( CASE ( + ( 41 ) ) WHEN + + ( + - 97 ) * 28 THEN 75 WHEN - 82 * MIN ( DISTINCT + ( + 54 ) ) THEN NULL WHEN + COALESCE ( + - 86, - + ( COUNT ( * ) ), - ( 73 ) ) - - + 2 + 74 * CAST ( - + 62 AS REAL ) * - 41 THEN NULL END, + - 96 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4839
SELECT + 90 * + - 50, COUNT( * ) + - + 93 AS col1
----
-4500
-92

skipif mysql # not compatible
query II rowsort label-4839
SELECT + 90 * + - 50, COUNT ( * ) + - + 93 AS col1
----
-4500
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT ALL - 17 * + CAST( 12 AS SIGNED ) / - - CASE - + 67 WHEN + 47 THEN - 82 END + 31 - 35 * - NULLIF ( 4, - + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL - 17 * + CAST ( 12 AS INTEGER ) / - - CASE - + 67 WHEN + 47 THEN - 82 END + 31 - 35 * - NULLIF ( 4, - + 22 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT DISTINCT + 78 DIV - + 25
----
-3

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT + 78 / - + 25
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4842
SELECT DISTINCT ( + 55 ) * 56 DIV ( CASE 71 WHEN + - 93 + - 53 + + 76 THEN + + 11 + 23 ELSE + COUNT( * ) * - 73 END )
----
-42

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT ( + 55 ) * 56 / ( CASE 71 WHEN + - 93 + - 53 + + 76 THEN + + 11 + 23 ELSE + COUNT ( * ) * - 73 END )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT ALL + SUM( + 75 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL + SUM ( + 75 ) AS col1
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-4844
SELECT - ( - 4 ) DIV 18 + + 91 * 82 * - + 68 + + 0 * ( + + ( - 55 ) ) + - 73 * - - ( 35 ) * + - 84 AS col0, 15 * 55 + 54 DIV - - 43 AS col0
----
-292796
826

skipif mysql # not compatible
query II rowsort label-4844
SELECT - ( - 4 ) / 18 + + 91 * 82 * - + 68 + + 0 * ( + + ( - 55 ) ) + - 73 * - - ( 35 ) * + - 84 AS col0, 15 * 55 + 54 / - - 43 AS col0
----
-292796
826

onlyif mysql # aggregate syntax: 
query II rowsort label-4845
SELECT ALL COUNT( * ) * - 81 * - - COUNT( * ) * - ( - + 87 ) AS col1, ( - + 24 ) - + 46 AS col2
----
-7047
-70

skipif mysql # not compatible
query II rowsort label-4845
SELECT ALL COUNT ( * ) * - 81 * - - COUNT ( * ) * - ( - + 87 ) AS col1, ( - + 24 ) - + 46 AS col2
----
-7047
-70

query I rowsort
SELECT - 59 * + - ( 64 ) AS col2
----
3776

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT DISTINCT SUM( - + 13 ) * + - 4 * + 4 AS col0
----
208

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT SUM ( - + 13 ) * + - 4 * + 4 AS col0
----
208

query I rowsort
SELECT + NULLIF ( + 94, + - 90 )
----
94

query I rowsort
SELECT + 41 + - + 38
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT + COUNT( * ) * + - ( 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4850
SELECT + COUNT ( * ) * + - ( 49 ) AS col0
----
-49

query I rowsort
SELECT NULLIF ( - - 65, 56 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT CASE - - 58 WHEN + 79 THEN COUNT( - 4 ) WHEN + 78 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT CASE - - 58 WHEN + 79 THEN COUNT ( - 4 ) WHEN + 78 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT DISTINCT + SUM( 32 ) AS col2, - 10 AS col2
----
32
-10

skipif mysql # not compatible
query II rowsort label-4853
SELECT DISTINCT + SUM ( 32 ) AS col2, - 10 AS col2
----
32
-10

query I rowsort
SELECT DISTINCT + - 58 * - + 9
----
522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4855
SELECT ALL + - COUNT( DISTINCT - - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL + - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + ( 42 ) AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT DISTINCT 94 DIV 55 * + 9 * + 64
----
576

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT 94 / 55 * + 9 * + 64
----
576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4858
SELECT + - NULLIF ( - + COALESCE ( - CASE 80 WHEN + 85 THEN + 5 END, 93 ), - COUNT( 49 ) - 52 + + 99 * 93 - + 3 - - ( + 80 ) * 33 / CAST( NULL AS SIGNED ) ) * - + 41 AS col1
----
-3813

skipif mysql # not compatible
query I rowsort label-4858
SELECT + - NULLIF ( - + COALESCE ( - CASE 80 WHEN + 85 THEN + 5 END, 93 ), - COUNT ( 49 ) - 52 + + 99 * 93 - + 3 - - ( + 80 ) * 33 / CAST ( NULL AS INTEGER ) ) * - + 41 AS col1
----
-3813

query I rowsort
SELECT - - 6 * + 13
----
78

query I rowsort
SELECT + + 95 - - 39 * 91
----
3644

query I rowsort
SELECT DISTINCT 12 * + + 36 + - 79 + - 77 - - 58 * - 27 * - 92
----
144348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4862
SELECT ALL 3 * + 8 + CAST( + COALESCE ( + COUNT( * ), + 48, + 39 * + + 39 + - 24 + + 86 * - 72 ) AS SIGNED ) DIV - + ( + 17 ) + + 78 + + COUNT( * )
----
103

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL 3 * + 8 + CAST ( + COALESCE ( + COUNT ( * ), + 48, + 39 * + + 39 + - 24 + + 86 * - 72 ) AS INTEGER ) / - + ( + 17 ) + + 78 + + COUNT ( * )
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT DISTINCT - ( - 34 ) + + - 20 / + 64 + + - 65 + + 62 * - 93 * - ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT - ( - 34 ) + + - 20 / + 64 + + - 65 + + 62 * - 93 * - ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL + 49 * - - ( - COUNT( * ) ) * COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL + 49 * - - ( - COUNT ( * ) ) * COUNT ( * )
----
-49

query I rowsort
SELECT DISTINCT - + 78 + + 49 * - 75 * - - 4
----
-14778

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL + 10 + - + 25 + - - 40 * - - COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL + 10 + - + 25 + - - 40 * - - COUNT ( * ) AS col0
----
25

query I rowsort
SELECT ALL + - 11 + ( 15 ) col2
----
4

query II rowsort
SELECT - + 30 + + - 63 AS col1, + ( 5 ) + + - 89
----
-93
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4869
SELECT ALL + - 36 + - + COUNT( ALL + - 62 ) / + CAST( NULL AS SIGNED ) - + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL + - 36 + - + COUNT ( ALL + - 62 ) / + CAST ( NULL AS INTEGER ) - + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT - COALESCE ( + 80, + 90 + COUNT( * ), + - 86 - 40 + + 25 ) + - 28 AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-4870
SELECT - COALESCE ( + 80, + 90 + COUNT ( * ), + - 86 - 40 + + 25 ) + - 28 AS col0
----
-108

query I rowsort
SELECT - 84 + 10
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT ALL NULLIF ( - 15, + COUNT( * ) / 74 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL NULLIF ( - 15, + COUNT ( * ) / 74 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT 15 * - - 79 * COUNT( * ) col2
----
1185

skipif mysql # not compatible
query I rowsort label-4873
SELECT 15 * - - 79 * COUNT ( * ) col2
----
1185

query I rowsort
SELECT ALL + 65 * - - 84
----
5460

query I rowsort
SELECT 5 * 22
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4876
SELECT ( - 94 ) DIV - + 56 AS col2, + 9 * + - CASE - ( + 75 ) WHEN - - COUNT( * ) * 79 THEN - 35 END col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4876
SELECT ( - 94 ) / - + 56 AS col2, + 9 * + - CASE - ( + 75 ) WHEN - - COUNT ( * ) * 79 THEN - 35 END col1
----
1
NULL

query I rowsort
SELECT - 29 * + + ( + 99 ) + - 70 + 55 + + - 10 AS col1
----
-2896

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4878
SELECT ALL 24 DIV 37 * - + 48 AS col1, + COUNT( * ) + - - 30
----
0
31

skipif mysql # not compatible
query II rowsort label-4878
SELECT ALL 24 / 37 * - + 48 AS col1, + COUNT ( * ) + - - 30
----
0
31

query II rowsort
SELECT ALL - 4 AS col2, 15
----
-4
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT ALL - COUNT( ALL + + 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL - COUNT ( ALL + + 9 )
----
-1

query I rowsort
SELECT - 73 * + COALESCE ( - 15, + + 60 ) - ( + 8 ) + + 88
----
1175

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4882
SELECT 49 / + CAST( NULL AS DECIMAL ) * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4882
SELECT 49 / + CAST ( NULL AS REAL ) * 32
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4883
SELECT ALL - ( + - 85 ) DIV 13 AS col1, 50
----
6
50

skipif mysql # not compatible
query II rowsort label-4883
SELECT ALL - ( + - 85 ) / 13 AS col1, 50
----
6
50

query I rowsort
SELECT ALL 76 * + 21
----
1596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4885
SELECT ALL - CAST( NULL AS SIGNED ) / AVG ( + - 7 ) AS col2, + CASE - ( - 35 ) WHEN - COUNT( * ) * - + COUNT( * ) THEN 46 END + + 97
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4885
SELECT ALL - CAST ( NULL AS INTEGER ) / AVG ( + - 7 ) AS col2, + CASE - ( - 35 ) WHEN - COUNT ( * ) * - + COUNT ( * ) THEN 46 END + + 97
----
NULL
NULL

query I rowsort
SELECT ALL - 16 + - 35 + ( + 33 )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT ALL - COALESCE ( 10, + 68 * - ( + 51 ) + - MIN( - 51 ), 50 * - 4 + - COUNT( * ) ) AS col1, ( + 42 )
----
-10
42

skipif mysql # not compatible
query II rowsort label-4887
SELECT ALL - COALESCE ( 10, + 68 * - ( + 51 ) + - MIN ( - 51 ), 50 * - 4 + - COUNT ( * ) ) AS col1, ( + 42 )
----
-10
42

query II rowsort
SELECT 79 AS col1, ( + 97 ) AS col0
----
79
97

query I rowsort
SELECT + 60 * 42 + - - 95 + - 46 AS col1
----
2569

query I rowsort
SELECT + 31 * + + 85 AS col1
----
2635

query I rowsort
SELECT - 70 + - 28 AS col1
----
-98

query I rowsort
SELECT + - 56 * + 20 - + - 59 + 37 - + 58
----
-1082

query I rowsort
SELECT DISTINCT ( + - 97 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT - + CAST( + 28 AS SIGNED ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4894
SELECT - + CAST ( + 28 AS INTEGER ) AS col1
----
-28

query I rowsort
SELECT ALL - 14 + - 13 * + + 89 + + + 83 + 48 AS col2
----
-1040

onlyif mysql # aggregate syntax: 
query II rowsort label-4896
SELECT + NULLIF ( 5, + 10 * + 0 ) + - + 48, COUNT( - + 41 ) AS col2
----
-43
1

skipif mysql # not compatible
query II rowsort label-4896
SELECT + NULLIF ( 5, + 10 * + 0 ) + - + 48, COUNT ( - + 41 ) AS col2
----
-43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL + COALESCE ( 23, + MAX( + 91 ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL + COALESCE ( 23, + MAX ( + 91 ) ) AS col1
----
23

query I rowsort
SELECT 45 + - - 13 AS col0
----
58

query I rowsort
SELECT ALL - 29 + + 61 * 8 AS col0
----
459

onlyif mysql # DIV for integer division: 
query I rowsort label-4900
SELECT - 73 * + 83 + - COALESCE ( - + 47, - CASE 71 WHEN 33 * 18 THEN NULL ELSE - 31 END, - 26 DIV 10 DIV - AVG ( + 68 ) )
----
-6012

skipif mysql # not compatible
query I rowsort label-4900
SELECT - 73 * + 83 + - COALESCE ( - + 47, - CASE 71 WHEN 33 * 18 THEN NULL ELSE - 31 END, - 26 / 10 / - AVG ( + 68 ) )
----
-6012

query II rowsort
SELECT - 73 AS col2, + 16
----
-73
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4902
SELECT ALL 95 AS col1, COUNT( * )
----
95
1

skipif mysql # not compatible
query II rowsort label-4902
SELECT ALL 95 AS col1, COUNT ( * )
----
95
1

query I rowsort
SELECT ALL 30 * + + 42 AS col2
----
1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4904
SELECT 24 DIV - 71 + - COUNT( DISTINCT 52 ) * - + SUM( DISTINCT + 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4904
SELECT 24 / - 71 + - COUNT ( DISTINCT 52 ) * - + SUM ( DISTINCT + 17 ) AS col2
----
17

query I rowsort
SELECT - 69 * + - 0
----
0

query I rowsort
SELECT DISTINCT + 46 - + + 24 * + 73
----
-1706

query III rowsort
SELECT ALL 63 col1, 10 + - 57 + + 5 AS col2, + ( + 43 )
----
63
-42
43

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4908
SELECT ALL - CAST( NULL AS DECIMAL ) / CAST( - 68 AS SIGNED ) * - 21 * + AVG ( - 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL - CAST ( NULL AS REAL ) / CAST ( - 68 AS INTEGER ) * - 21 * + AVG ( - 15 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4909
SELECT ALL 72 AS col1, COUNT( * )
----
72
1

skipif mysql # not compatible
query II rowsort label-4909
SELECT ALL 72 AS col1, COUNT ( * )
----
72
1

query I rowsort
SELECT 31 + - 51
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4911
SELECT CAST( NULL AS SIGNED ) * 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT CAST ( NULL AS INTEGER ) * 51 AS col1
----
NULL

query I rowsort
SELECT 50 * + 32
----
1600

query II rowsort
SELECT DISTINCT - 88 AS col2, - ( 37 ) * + 47 * + ( + 28 ) + + 64
----
-88
-48628

query I rowsort
SELECT ALL + 34 * + 23
----
782

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT 40 * + - COUNT( * ) * - + 64
----
2560

skipif mysql # not compatible
query I rowsort label-4915
SELECT 40 * + - COUNT ( * ) * - + 64
----
2560

query I rowsort
SELECT DISTINCT - 16 * + ( 96 )
----
-1536

query II rowsort
SELECT DISTINCT + 43 + - 93 + - - 36 * 39 AS col1, - 56 AS col0
----
1354
-56

query I rowsort
SELECT DISTINCT - 16 + + 30
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4919
SELECT + 88 AS col1, COUNT( * ) + 57 AS col1
----
88
58

skipif mysql # not compatible
query II rowsort label-4919
SELECT + 88 AS col1, COUNT ( * ) + 57 AS col1
----
88
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4920
SELECT - 54 * - ( - 57 ) * + + COUNT( * ) * + 66 * + 18 + + MAX( ALL 9 ) DIV - - 15
----
-3656664

skipif mysql # not compatible
query I rowsort label-4920
SELECT - 54 * - ( - 57 ) * + + COUNT ( * ) * + 66 * + 18 + + MAX ( ALL 9 ) / - - 15
----
-3656664

onlyif mysql # DIV for integer division: 
query II rowsort label-4921
SELECT + CASE 43 WHEN + 76 THEN + 15 * - 21 * - - 5 WHEN + 0 DIV - COALESCE ( 24, 5 ) THEN + - 98 END, + 32 DIV - 34 * 79 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4921
SELECT + CASE 43 WHEN + 76 THEN + 15 * - 21 * - - 5 WHEN + 0 / - COALESCE ( 24, 5 ) THEN + - 98 END, + 32 / - 34 * 79 AS col2
----
NULL
0

query I rowsort
SELECT ALL + - 11 + + - 22
----
-33

query II rowsort
SELECT + 22 AS col1, - 2 AS col2
----
22
-2

query I rowsort
SELECT ALL - 24 + + - 38 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT DISTINCT + + MIN( DISTINCT - 88 ) + + - 22 AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT + + MIN ( DISTINCT - 88 ) + + - 22 AS col1
----
-110

query I rowsort
SELECT ALL + 43 + 33 + - - 15
----
91

query I rowsort
SELECT - 4 * - 88 col1
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT ALL - 74 * + ( - 15 ) + NULLIF ( 10, COUNT( * ) / - 26 + - 79 - + 18 / - 94 )
----
1120

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL - 74 * + ( - 15 ) + NULLIF ( 10, COUNT ( * ) / - 26 + - 79 - + 18 / - 94 )
----
1120

onlyif mysql # DIV for integer division: 
query I rowsort label-4929
SELECT - 18 DIV - - 43
----
0

skipif mysql # not compatible
query I rowsort label-4929
SELECT - 18 / - - 43
----
0

query I rowsort
SELECT - 70 - 82
----
-152

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4931
SELECT 61 AS col2, + 59 DIV 16 * 60 AS col2, + - 3 * - 2 * + 2 + + COUNT( * ) AS col0
----
61
180
13

skipif mysql # not compatible
query III rowsort label-4931
SELECT 61 AS col2, + 59 / 16 * 60 AS col2, + - 3 * - 2 * + 2 + + COUNT ( * ) AS col0
----
61
180
13

query I rowsort
SELECT 39 + - - 66
----
105

query I rowsort
SELECT ( + 98 ) * - 14 AS col2
----
-1372

query I rowsort
SELECT + + 53 + 93 + + 34 AS col1
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-4935
SELECT ALL - ( COUNT( * ) ) AS col2, 57 AS col1
----
-1
57

skipif mysql # not compatible
query II rowsort label-4935
SELECT ALL - ( COUNT ( * ) ) AS col2, 57 AS col1
----
-1
57

query II rowsort
SELECT + 55 - + + 15, + 25 AS col2
----
40
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4937
SELECT + 31 - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT + 31 - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4938
SELECT DISTINCT 96 DIV 9 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT 96 / 9 AS col1
----
10

query I rowsort
SELECT + 7 + + + 64
----
71

query I rowsort
SELECT ALL 13 * CASE - 82 WHEN 98 THEN 8 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4941
SELECT + 36 * + 32 AS col2, - SUM( + NULLIF ( + 40, + - 61 * 36 * + 79 + + 36 + 12 ) ) AS col1
----
1152
-40

skipif mysql # not compatible
query II rowsort label-4941
SELECT + 36 * + 32 AS col2, - SUM ( + NULLIF ( + 40, + - 61 * 36 * + 79 + + 36 + 12 ) ) AS col1
----
1152
-40

query I rowsort
SELECT + 95 + 68 AS col1
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4943
SELECT + 89 DIV + - 43 AS col2, 70 + 91 + + 7 + 33 - + 79 DIV - 94 DIV ( - 40 ) * + MAX( ALL 81 ) * 69 * + + 65 col0
----
-2
201

skipif mysql # not compatible
query II rowsort label-4943
SELECT + 89 / + - 43 AS col2, 70 + 91 + + 7 + 33 - + 79 / - 94 / ( - 40 ) * + MAX ( ALL 81 ) * 69 * + + 65 col0
----
-2
201

onlyif mysql # aggregate syntax: 
query II rowsort label-4944
SELECT ALL 21 * + - 14 * + + CASE - 76 WHEN ( + + 89 ) - 23 THEN - + 28 * + + 64 + COUNT( * ) + - + 91 WHEN - + COUNT( * ) THEN NULL END + 21 * + - 46 / COUNT( ALL - 67 ) * 93 * + COUNT( * ) + - + 74 - - 6 * - - 63 + - 49 AS col1, 33
----
NULL
33

skipif mysql # not compatible
query II rowsort label-4944
SELECT ALL 21 * + - 14 * + + CASE - 76 WHEN ( + + 89 ) - 23 THEN - + 28 * + + 64 + COUNT ( * ) + - + 91 WHEN - + COUNT ( * ) THEN NULL END + 21 * + - 46 / COUNT ( ALL - 67 ) * 93 * + COUNT ( * ) + - + 74 - - 6 * - - 63 + - 49 AS col1, 33
----
NULL
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT ALL 90 * - ( 44 ) + + COUNT( * )
----
-3959

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL 90 * - ( 44 ) + + COUNT ( * )
----
-3959

query I rowsort
SELECT + ( 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT DISTINCT - COUNT( * ) * - 19 + + 26
----
45

skipif mysql # not compatible
query I rowsort label-4947
SELECT DISTINCT - COUNT ( * ) * - 19 + + 26
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4948
SELECT 75 DIV COUNT( + 16 ) + - - 13 - - 30 * + 76 + 82 * - - 63 AS col2
----
7534

skipif mysql # not compatible
query I rowsort label-4948
SELECT 75 / COUNT ( + 16 ) + - - 13 - - 30 * + 76 + 82 * - - 63 AS col2
----
7534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4949
SELECT + 47 + COUNT( * ) + - 98 + - 5 DIV - 37 AS col0, + MIN( DISTINCT 74 ) + - CAST( NULL AS SIGNED ) + MIN( - 48 ) * - COUNT( * ) + + 26
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-4949
SELECT + 47 + COUNT ( * ) + - 98 + - 5 / - 37 AS col0, + MIN ( DISTINCT 74 ) + - CAST ( NULL AS INTEGER ) + MIN ( - 48 ) * - COUNT ( * ) + + 26
----
-50
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4950
SELECT CASE - 76 WHEN - 3 + - 98 * - + COUNT( * ) * + - 77 THEN 91 / + + 8 + - + 16 * + 59 + - - CAST( NULL AS SIGNED ) + + - 13 * + ( + 71 ) * + + 24 + 28 + - COUNT( * ) WHEN + 23 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT CASE - 76 WHEN - 3 + - 98 * - + COUNT ( * ) * + - 77 THEN 91 / + + 8 + - + 16 * + 59 + - - CAST ( NULL AS INTEGER ) + + - 13 * + ( + 71 ) * + + 24 + 28 + - COUNT ( * ) WHEN + 23 THEN NULL END
----
NULL

query I rowsort
SELECT COALESCE ( + + ( - + 85 ), 31 ) AS col0
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-4952
SELECT + + 8 + + 31 AS col1, - 71 - - - 40 * - 25 + 33 + 73 - 56 DIV - ( - + NULLIF ( + 80, 40 * - + 36 + + + 18 + + 58 DIV + 13 ) )
----
39
1035

skipif mysql # not compatible
query II rowsort label-4952
SELECT + + 8 + + 31 AS col1, - 71 - - - 40 * - 25 + 33 + 73 - 56 / - ( - + NULLIF ( + 80, 40 * - + 36 + + + 18 + + 58 / + 13 ) )
----
39
1035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4953
SELECT + CAST( + CASE 40 WHEN + 79 * - COUNT( * ) THEN NULL WHEN ( - 66 ) + - - 98 THEN + COALESCE ( + + COUNT( * ), + - 32 + - 92 * - 83 + + - 50 / + - 50 * - 39 * - ( - 5 ), + 19 + 67 ) + 68 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT + CAST ( + CASE 40 WHEN + 79 * - COUNT ( * ) THEN NULL WHEN ( - 66 ) + - - 98 THEN + COALESCE ( + + COUNT ( * ), + - 32 + - 92 * - 83 + + - 50 / + - 50 * - 39 * - ( - 5 ), + 19 + 67 ) + 68 END AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 78 col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT - - 28 * - 95 + + COUNT( DISTINCT + 5 ) + 58 * 73 * COUNT( * ) * 96
----
403805

skipif mysql # not compatible
query I rowsort label-4955
SELECT - - 28 * - 95 + + COUNT ( DISTINCT + 5 ) + 58 * 73 * COUNT ( * ) * 96
----
403805

query I rowsort
SELECT ALL + COALESCE ( + + 31, 66 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4957
SELECT + + COUNT( * ) * - 14 + - 56 * + SUM( + - 67 ) + CASE 79 WHEN - 86 + 68 * - 2 + 96 THEN + - 25 ELSE NULL END + - 94 * 99 + - - CAST( + SUM( ALL + 96 ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT + + COUNT ( * ) * - 14 + - 56 * + SUM ( + - 67 ) + CASE 79 WHEN - 86 + 68 * - 2 + 96 THEN + - 25 ELSE NULL END + - 94 * 99 + - - CAST ( + SUM ( ALL + 96 ) AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4958
SELECT - 88 + 22 * + - 13, COUNT( * ) AS col2
----
-374
1

skipif mysql # not compatible
query II rowsort label-4958
SELECT - 88 + 22 * + - 13, COUNT ( * ) AS col2
----
-374
1

query I rowsort
SELECT DISTINCT + + 28 col1
----
28

query I rowsort
SELECT DISTINCT - 45 * + - ( - + 4 ) AS col2
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT DISTINCT + CASE WHEN NOT + CAST( NULL AS SIGNED ) IS NULL THEN NULL ELSE + 26 END col2
----
26

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT + CASE WHEN NOT + CAST ( NULL AS INTEGER ) IS NULL THEN NULL ELSE + 26 END col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4962
SELECT - + 6 + - SUM( ALL + 5 ) DIV 43 * - 77 DIV + ( + + 76 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4962
SELECT - + 6 + - SUM ( ALL + 5 ) / 43 * - 77 / + ( + + 76 ) AS col0
----
-6

query I rowsort
SELECT - - 43 + - + 29 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT - - COUNT( * ) + - 52 + 63 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4964
SELECT - - COUNT ( * ) + - 52 + 63 AS col2
----
12

query I rowsort
SELECT - 0 * 83 - - 99
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4966
SELECT ALL + CASE 24 WHEN + 25 / - 57 - + + 54 - - 24 + - - 62 / COUNT( * ) * - COUNT( * ) * + 35 + - ( + + 8 ) - 21 * 31 * - - 82 * - - 54 THEN NULL ELSE + COUNT( CAST( - 72 AS DECIMAL ) ) * - 93 END AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + CASE 24 WHEN + 25 / - 57 - + + 54 - - 24 + - - 62 / COUNT ( * ) * - COUNT ( * ) * + 35 + - ( + + 8 ) - 21 * 31 * - - 82 * - - 54 THEN NULL ELSE + COUNT ( CAST ( - 72 AS REAL ) ) * - 93 END AS col1
----
-93

query I rowsort
SELECT - + 57 + 32 + + 43
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT - 91 * 21 - + + COUNT( DISTINCT - 69 )
----
-1912

skipif mysql # not compatible
query I rowsort label-4968
SELECT - 91 * 21 - + + COUNT ( DISTINCT - 69 )
----
-1912

query I rowsort
SELECT ALL 48 * - 87 AS col0
----
-4176

query I rowsort
SELECT - 18 + - - 45
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT ALL ( + 32 ) * + 22 + - COUNT( * )
----
703

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL ( + 32 ) * + 22 + - COUNT ( * )
----
703

query II rowsort
SELECT DISTINCT + COALESCE ( + + ( + 34 ), + 83 ) * + 21 + - + 41 AS col2, - 33 + - + 73 + 82 * + 33 * - + 86
----
673
-232822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT ALL CAST( - 88 AS SIGNED ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL CAST ( - 88 AS INTEGER ) AS col0
----
-88

query I rowsort
SELECT DISTINCT - ( + + 66 ) * 31 + 12 + 15
----
-2019

query I rowsort
SELECT - 13 + + 0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4976
SELECT - MAX( ALL - + COALESCE ( - - 39, - - 61 DIV + ( - 7 ) ) ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-4976
SELECT - MAX ( ALL - + COALESCE ( - - 39, - - 61 / + ( - 7 ) ) ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT - NULLIF ( 56, - COUNT( * ) * 34 + 67 )
----
-56

skipif mysql # not compatible
query I rowsort label-4977
SELECT - NULLIF ( 56, - COUNT ( * ) * 34 + 67 )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-4978
SELECT ALL 36 + + + MIN( DISTINCT + 12 ) AS col2, 12
----
48
12

skipif mysql # not compatible
query II rowsort label-4978
SELECT ALL 36 + + + MIN ( DISTINCT + 12 ) AS col2, 12
----
48
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT DISTINCT 94 * + COUNT( * ) * - 57 * + 61 AS col2
----
-326838

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT 94 * + COUNT ( * ) * - 57 * + 61 AS col2
----
-326838

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT ALL MAX( ALL + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL MAX ( ALL + 69 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4981
SELECT + ( + + 46 ) + 36 DIV 59 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4981
SELECT + ( + + 46 ) + 36 / 59 AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT DISTINCT 65 + - CASE - 1 WHEN + NULLIF ( - 70, + ( - 83 ) ) THEN NULL WHEN + - 62 * + - 16 THEN - 39 / + 14 + + ( CAST( + - 63 AS SIGNED ) ) ELSE NULL END * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT 65 + - CASE - 1 WHEN + NULLIF ( - 70, + ( - 83 ) ) THEN NULL WHEN + - 62 * + - 16 THEN - 39 / + 14 + + ( CAST ( + - 63 AS INTEGER ) ) ELSE NULL END * 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT + COUNT( * ) + - 12 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4983
SELECT + COUNT ( * ) + - 12 AS col2
----
-11

query I rowsort
SELECT ALL 0 + + - 40
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4985
SELECT - CAST( NULL AS SIGNED ) AS col1, COUNT( DISTINCT 12 ) * NULLIF ( - COUNT( * ), - 92 ) + + 19 AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-4985
SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( DISTINCT 12 ) * NULLIF ( - COUNT ( * ), - 92 ) + + 19 AS col0
----
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT + CASE - COUNT( * ) WHEN - 65 THEN NULL WHEN + COUNT( + 97 ) + - 1 THEN NULL ELSE - + 89 END * - + 84
----
7476

skipif mysql # not compatible
query I rowsort label-4986
SELECT + CASE - COUNT ( * ) WHEN - 65 THEN NULL WHEN + COUNT ( + 97 ) + - 1 THEN NULL ELSE - + 89 END * - + 84
----
7476

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT + MIN( DISTINCT - 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4987
SELECT + MIN ( DISTINCT - 67 ) AS col0
----
-67

query I rowsort
SELECT DISTINCT + 66 * + 94
----
6204

query I rowsort
SELECT ALL 33 * - 66 + + 39 + + 77 AS col1
----
-2062

onlyif mysql # DIV for integer division: 
query I rowsort label-4990
SELECT + - 96 DIV + 56 + + 47 col2
----
46

skipif mysql # not compatible
query I rowsort label-4990
SELECT + - 96 / + 56 + + 47 col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4991
SELECT DISTINCT + 85 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT + 85 / 86
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4992
SELECT + + 10 - - + ( + COALESCE ( - 7, - NULLIF ( + + 20, 52 ), - 2 ) ) AS col2, - COUNT( * ) * + 59 * ( 32 )
----
3
-1888

skipif mysql # not compatible
query II rowsort label-4992
SELECT + + 10 - - + ( + COALESCE ( - 7, - NULLIF ( + + 20, 52 ), - 2 ) ) AS col2, - COUNT ( * ) * + 59 * ( 32 )
----
3
-1888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT + - 52 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT + - 52 * - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 40 AS col2, - 49 AS col1
----
40
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT + - NULLIF ( + COUNT( * ), + + 72 ) AS col2
----
-1

skipif mysql # not compatibl