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 compatible
query I rowsort label-4995
SELECT + - NULLIF ( + COUNT ( * ), + + 72 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 33 * - 90 AS col1
----
2970

query I rowsort
SELECT 22 * - + 98
----
-2156

query I rowsort
SELECT ALL - 0 * + 64 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4999
SELECT ALL - CASE + 46 WHEN - COUNT( * ) * + - 55 DIV - - 88 THEN - CAST( ( 74 ) AS SIGNED ) WHEN + 36 * COUNT( * ) THEN CASE - + 68 WHEN + - 75 THEN 84 WHEN + NULLIF ( 82, 46 ) + 29 + - 51 * - NULLIF ( + 28, - 59 * 23 DIV - 20 * - NULLIF ( - COUNT( * ), 34 ) * - - 44 * + 77 ) * MAX( DISTINCT 82 ) * 45 THEN + + COUNT( * ) ELSE 69 + ( 63 ) DIV + - 92 END ELSE - 4 * 95 END * 58 + - 52 AS col2
----
21988

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL - CASE + 46 WHEN - COUNT ( * ) * + - 55 / - - 88 THEN - CAST ( ( 74 ) AS INTEGER ) WHEN + 36 * COUNT ( * ) THEN CASE - + 68 WHEN + - 75 THEN 84 WHEN + NULLIF ( 82, 46 ) + 29 + - 51 * - NULLIF ( + 28, - 59 * 23 / - 20 * - NULLIF ( - COUNT ( * ), 34 ) * - - 44 * + 77 ) * MAX ( DISTINCT 82 ) * 45 THEN + + COUNT ( * ) ELSE 69 + ( 63 ) / + - 92 END ELSE - 4 * 95 END * 58 + - 52 AS col2
----
21988

onlyif mysql # aggregate syntax: 
query II rowsort label-5000
SELECT + - CASE + COUNT( * ) WHEN + COUNT( * ) + 24 + 90 * + NULLIF ( + 70, NULLIF ( COUNT( * ), - 0 + + 89 ) ) THEN NULL ELSE - + ( 42 ) END, ( + - 11 ) AS col2
----
42
-11

skipif mysql # not compatible
query II rowsort label-5000
SELECT + - CASE + COUNT ( * ) WHEN + COUNT ( * ) + 24 + 90 * + NULLIF ( + 70, NULLIF ( COUNT ( * ), - 0 + + 89 ) ) THEN NULL ELSE - + ( 42 ) END, ( + - 11 ) AS col2
----
42
-11

query I rowsort
SELECT DISTINCT - - 81 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT 14 + + + 10 + 28 + NULLIF ( + 99, 90 ) * - MIN( + 56 ) AS col0
----
-5492

skipif mysql # not compatible
query I rowsort label-5002
SELECT 14 + + + 10 + 28 + NULLIF ( + 99, 90 ) * - MIN ( + 56 ) AS col0
----
-5492

query I rowsort
SELECT 53 * - - 56 AS col0
----
2968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5004
SELECT - CAST( NULL AS SIGNED ) * + 70 + - - CASE 90 WHEN - COUNT( * ) * 12 / + + 71 * - 3 THEN - + 19 END, 37 * - CAST( ( + + CASE - - COUNT( * ) WHEN + - 42 * 45 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 16 END ) AS DECIMAL ) col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5004
SELECT - CAST ( NULL AS INTEGER ) * + 70 + - - CASE 90 WHEN - COUNT ( * ) * 12 / + + 71 * - 3 THEN - + 19 END, 37 * - CAST ( ( + + CASE - - COUNT ( * ) WHEN + - 42 * 45 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 16 END ) AS REAL ) col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT 30 / - CAST( NULL AS SIGNED ) * - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT 30 / - CAST ( NULL AS INTEGER ) * - 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT 33 + SUM( + ( - - 4 ) ) - + + 60 * - 89
----
5377

skipif mysql # not compatible
query I rowsort label-5006
SELECT 33 + SUM ( + ( - - 4 ) ) - + + 60 * - 89
----
5377

onlyif mysql # aggregate syntax: 
query II rowsort label-5007
SELECT ALL 78 + 64 AS col0, + MAX( 87 ) - 88
----
142
-1

skipif mysql # not compatible
query II rowsort label-5007
SELECT ALL 78 + 64 AS col0, + MAX ( 87 ) - 88
----
142
-1

query I rowsort
SELECT 43 + 98
----
141

query I rowsort
SELECT ALL + 75 + - 59
----
16

query I rowsort
SELECT 59 - - + 61 AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT DISTINCT COUNT( * ) + + 58 + + + MAX( - 72 ) + - - 75 * + 44 + + ( + MIN( 86 ) ) AS col2
----
3373

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT COUNT ( * ) + + 58 + + + MAX ( - 72 ) + - - 75 * + 44 + + ( + MIN ( 86 ) ) AS col2
----
3373

query I rowsort
SELECT 39 * + 62
----
2418

query I rowsort
SELECT ALL - 12 + - - 92 * 31
----
2840

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT DISTINCT 11 - - - MIN( 86 ) + - 80
----
-155

skipif mysql # not compatible
query I rowsort label-5014
SELECT DISTINCT 11 - - - MIN ( 86 ) + - 80
----
-155

query I rowsort
SELECT DISTINCT - - 22 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT + + MAX( DISTINCT - 96 ) * - 86 + + 1
----
8257

skipif mysql # not compatible
query I rowsort label-5016
SELECT + + MAX ( DISTINCT - 96 ) * - 86 + + 1
----
8257

query I rowsort
SELECT ALL - 56 * + 88 AS col0
----
-4928

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5018
SELECT ALL - MIN( DISTINCT + + 86 ), 38 DIV 19 + - - 76 * - 26 AS col2
----
-86
-1974

skipif mysql # not compatible
query II rowsort label-5018
SELECT ALL - MIN ( DISTINCT + + 86 ), 38 / 19 + - - 76 * - 26 AS col2
----
-86
-1974

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5020
SELECT - COALESCE ( 61, + - 68 DIV CAST( NULL AS SIGNED ) * 42 ) + 86 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5020
SELECT - COALESCE ( 61, + - 68 / CAST ( NULL AS INTEGER ) * 42 ) + 86 AS col1
----
25

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

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

query II rowsort
SELECT ALL 67 * - - 7, 19 AS col1
----
469
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5023
SELECT + - 67 * - - 4 - - + COUNT( * ) + - - 11 + + 16 * 55 + 50 + - + 61 + 54 DIV + 41 + - - 53 col0
----
667

skipif mysql # not compatible
query I rowsort label-5023
SELECT + - 67 * - - 4 - - + COUNT ( * ) + - - 11 + + 16 * 55 + 50 + - + 61 + 54 / + 41 + - - 53 col0
----
667

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - 41 * + 72 + + 22 + + MIN( - + 92 )
----
-3022

skipif mysql # not compatible
query I rowsort label-5024
SELECT - 41 * + 72 + + 22 + + MIN ( - + 92 )
----
-3022

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT COALESCE ( - 15, - COUNT( * ) ) * - 51 AS col1
----
765

skipif mysql # not compatible
query I rowsort label-5027
SELECT COALESCE ( - 15, - COUNT ( * ) ) * - 51 AS col1
----
765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT DISTINCT 52 * - 30 * - + 83 * + - ( + ( - COUNT( * ) ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT 52 * - 30 * - + 83 * + - ( + ( - COUNT ( * ) ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + 62 + + ( - 93 )
----
-155

query I rowsort
SELECT 53 + + 79
----
132

query I rowsort
SELECT 59 + + 69
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL ( CASE COUNT( * ) WHEN - + 94 THEN NULL WHEN 94 THEN 37 * + 68 * + SUM( + 58 ) * 21 * - 53 END ) + + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL ( CASE COUNT ( * ) WHEN - + 94 THEN NULL WHEN 94 THEN 37 * + 68 * + SUM ( + 58 ) * 21 * - 53 END ) + + - 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5033
SELECT ALL + 6 + + 70 * NULLIF ( + CAST( NULL AS SIGNED ), - 36 * NULLIF ( - + 97, + COALESCE ( + 8, + COUNT( * ) * + 13 ) ) ) + - 29 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL + 6 + + 70 * NULLIF ( + CAST ( NULL AS INTEGER ), - 36 * NULLIF ( - + 97, + COALESCE ( + 8, + COUNT ( * ) * + 13 ) ) ) + - 29 + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 88 * 61 * + 23 * 85 AS col0
----
10494440

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

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

query I rowsort
SELECT DISTINCT 89 + + - 27
----
62

query I rowsort
SELECT 68 + - 70
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5038
SELECT ALL 24 + + 65 - - - CAST( NULL AS SIGNED ) + + + COUNT( * ) + ( - 68 ) * - COUNT( * ) / + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL 24 + + 65 - - - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + ( - 68 ) * - COUNT ( * ) / + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 83 * + 55 col1
----
4565

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

skipif mysql # not compatible
query I rowsort label-5040
SELECT CAST ( NULL AS INTEGER ) * - 15 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT DISTINCT - 99 - COUNT( * )
----
-100

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT - 99 - COUNT ( * )
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5043
SELECT ALL - 44 DIV - - 18 * - - CASE + 26 WHEN - - 47 + 67 THEN NULL WHEN COUNT( * ) + 64 THEN NULL ELSE COUNT( * ) END col2
----
-2

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL - 44 / - - 18 * - - CASE + 26 WHEN - - 47 + 67 THEN NULL WHEN COUNT ( * ) + 64 THEN NULL ELSE COUNT ( * ) END col2
----
-2

query I rowsort
SELECT 74 * - 55
----
-4070

query I rowsort
SELECT DISTINCT - 26 * 73
----
-1898

query I rowsort
SELECT 90 + + 51
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-5047
SELECT 93 DIV ( 46 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5047
SELECT 93 / ( 46 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT ALL - 8 * COUNT( DISTINCT ( 31 ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL - 8 * COUNT ( DISTINCT ( 31 ) ) AS col0
----
-8

query I rowsort
SELECT 0 + + ( - 89 ) * 51 AS col0
----
-4539

query I rowsort
SELECT ALL + 81 - 10
----
71

query I rowsort
SELECT 74 * 19 AS col0
----
1406

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT 83 DIV + 37
----
2

skipif mysql # not compatible
query I rowsort label-5052
SELECT 83 / + 37
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT + 26 * 61 - COALESCE ( - 7, - 32 * 67 - CASE - 38 WHEN COALESCE ( + 83, COUNT( * ) * - 15 ) + - 39 THEN 8 * 20 END ) AS col0
----
1593

skipif mysql # not compatible
query I rowsort label-5053
SELECT + 26 * 61 - COALESCE ( - 7, - 32 * 67 - CASE - 38 WHEN COALESCE ( + 83, COUNT ( * ) * - 15 ) + - 39 THEN 8 * 20 END ) AS col0
----
1593

query I rowsort
SELECT + 75 * - 95 AS col0
----
-7125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5055
SELECT - CAST( 6 AS SIGNED ) * 78
----
-468

skipif mysql # not compatible
query I rowsort label-5055
SELECT - CAST ( 6 AS INTEGER ) * 78
----
-468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5056
SELECT ALL + CAST( - CAST( CASE + 44 WHEN 21 THEN NULL WHEN + 60 - 41 THEN - 97 END AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL + CAST ( - CAST ( CASE + 44 WHEN 21 THEN NULL WHEN + 60 - 41 THEN - 97 END AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT NULLIF ( + COALESCE ( COUNT( * ), ( 15 ), 84 * 3 ), - 56 )
----
1

skipif mysql # not compatible
query I rowsort label-5057
SELECT NULLIF ( + COALESCE ( COUNT ( * ), ( 15 ), 84 * 3 ), - 56 )
----
1

query I rowsort
SELECT ALL + 76 * - 77 + - 79
----
-5931

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT CASE - 77 WHEN CASE - 72 WHEN 86 + - ( 70 ) / - 7 THEN COALESCE ( ( - 27 ), 51, 83 + 12, + 32 + 45 ) ELSE - 90 * - 18 END THEN NULL WHEN 55 - COUNT( * ) THEN 44 * 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT CASE - 77 WHEN CASE - 72 WHEN 86 + - ( 70 ) / - 7 THEN COALESCE ( ( - 27 ), 51, 83 + 12, + 32 + 45 ) ELSE - 90 * - 18 END THEN NULL WHEN 55 - COUNT ( * ) THEN 44 * 80 END
----
NULL

query I rowsort
SELECT - 44 - + 97 AS col1
----
-141

query I rowsort
SELECT - 20 * + 37
----
-740

query I rowsort
SELECT DISTINCT 32 * 3 AS col2
----
96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5065
SELECT DISTINCT - 66 * CAST( - COALESCE ( + 18, 34 * 48 ) * - 37 AS SIGNED ) + COUNT( * )
----
-43955

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT - 66 * CAST ( - COALESCE ( + 18, 34 * 48 ) * - 37 AS INTEGER ) + COUNT ( * )
----
-43955

onlyif mysql # DIV for integer division: 
query I rowsort label-5066
SELECT + 73 DIV 8 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5066
SELECT + 73 / 8 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5067
SELECT ALL ( 86 ) * + 1 + 41 DIV + CAST( 50 * - 53 AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL ( 86 ) * + 1 + 41 / + CAST ( 50 * - 53 AS INTEGER ) AS col2
----
86

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

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 47
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5069
SELECT + 42 DIV 31
----
1

skipif mysql # not compatible
query I rowsort label-5069
SELECT + 42 / 31
----
1

query I rowsort
SELECT - 13 + - 55
----
-68

query I rowsort
SELECT + NULLIF ( 65, + 30 * 87 ) * + 79
----
5135

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT SUM( - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-5072
SELECT SUM ( - 7 )
----
-7

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

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

query I rowsort
SELECT + 7 + - 42 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT + COUNT( * ) * + NULLIF ( + 33, COUNT( * ) + 16 * - COUNT( * ) )
----
33

skipif mysql # not compatible
query I rowsort label-5075
SELECT + COUNT ( * ) * + NULLIF ( + 33, COUNT ( * ) + 16 * - COUNT ( * ) )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT + COUNT( DISTINCT 77 ) + + 37
----
38

skipif mysql # not compatible
query I rowsort label-5076
SELECT + COUNT ( DISTINCT 77 ) + + 37
----
38

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

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

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

query I rowsort
SELECT + 53 * 80
----
4240

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT ALL - COUNT( * ) * CASE 90 WHEN + SUM( ALL 75 ) THEN NULL ELSE - 50 END col2
----
50

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL - COUNT ( * ) * CASE 90 WHEN + SUM ( ALL 75 ) THEN NULL ELSE - 50 END col2
----
50

query I rowsort
SELECT + NULLIF ( + 37, + 99 ) + 88 AS col2
----
125

query I rowsort
SELECT - 5 + + 79 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT + CASE - NULLIF ( - 70, - NULLIF ( + 38, + 55 * 48 ) * 29 ) WHEN 36 / + ( 68 / - COUNT( * ) ) THEN NULL ELSE 53 END * 64 AS col0
----
3392

skipif mysql # not compatible
query I rowsort label-5083
SELECT + CASE - NULLIF ( - 70, - NULLIF ( + 38, + 55 * 48 ) * 29 ) WHEN 36 / + ( 68 / - COUNT ( * ) ) THEN NULL ELSE 53 END * 64 AS col0
----
3392

query I rowsort
SELECT - + 34 * + 12
----
-408

query I rowsort
SELECT ALL + 29 * 95
----
2755

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT + 96 + + SUM( 7 ) * + 85 AS col2
----
691

skipif mysql # not compatible
query I rowsort label-5086
SELECT + 96 + + SUM ( 7 ) * + 85 AS col2
----
691

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL COALESCE ( - ( 12 ), COUNT( * ) * 89 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL COALESCE ( - ( 12 ), COUNT ( * ) * 89 ) AS col1
----
-12

query I rowsort
SELECT + + 90 + + 19
----
109

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

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

query I rowsort
SELECT + - 73 * + 43
----
-3139

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

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

query I rowsort
SELECT DISTINCT + 35 + - 29 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ALL - COALESCE ( + 78, 88 + 71 * - 53, - MIN( ALL - 50 ) ) + + 84 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - COALESCE ( + 78, 88 + 71 * - 53, - MIN ( ALL - 50 ) ) + + 84 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT - 55 * COUNT( + 82 ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-5094
SELECT - 55 * COUNT ( + 82 ) col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT ALL + 8 DIV - 95 + - 55 col1
----
-55

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL + 8 / - 95 + - 55 col1
----
-55

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

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL + - NULLIF ( 74, COUNT ( * ) + - COUNT ( * ) )
----
-74

query I rowsort
SELECT + 99 * 10
----
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5098
SELECT - CASE 28 WHEN 88 * + CASE ( + AVG ( CAST( NULL AS SIGNED ) ) ) WHEN + SUM( 17 ) THEN NULL ELSE CAST( - 30 AS SIGNED ) END THEN NULL WHEN COUNT( * ) + 26 / 19 THEN 3 END * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5098
SELECT - CASE 28 WHEN 88 * + CASE ( + AVG ( CAST ( NULL AS INTEGER ) ) ) WHEN + SUM ( 17 ) THEN NULL ELSE CAST ( - 30 AS INTEGER ) END THEN NULL WHEN COUNT ( * ) + 26 / 19 THEN 3 END * 65
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5099
SELECT - 57 DIV 49 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5099
SELECT - 57 / 49 + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5100
SELECT ALL - + CAST( 52 AS SIGNED ) DIV 44 + + 95 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL - + CAST ( 52 AS INTEGER ) / 44 + + 95 AS col1
----
94

query I rowsort
SELECT - + 47 + - 4 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5102
SELECT - SUM( DISTINCT + 66 ) DIV 54 - - 31
----
30

skipif mysql # not compatible
query I rowsort label-5102
SELECT - SUM ( DISTINCT + 66 ) / 54 - - 31
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL + ( - 94 ) * NULLIF ( - ( COUNT( * ) ) + 18, 20 ) AS col0
----
-1598

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL + ( - 94 ) * NULLIF ( - ( COUNT ( * ) ) + 18, 20 ) AS col0
----
-1598

query I rowsort
SELECT 72 * - 19 + 81
----
-1287

query I rowsort
SELECT - - 66 - - 31 * + 30 AS col0
----
996

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

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

query I rowsort
SELECT ( - 90 )
----
-90

query I rowsort
SELECT ALL - NULLIF ( + + 85, + 31 ) * 76
----
-6460

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT 16 * - 60 * + COUNT( * ) + - 55 * + COUNT( * )
----
-1015

skipif mysql # not compatible
query I rowsort label-5110
SELECT 16 * - 60 * + COUNT ( * ) + - 55 * + COUNT ( * )
----
-1015

query I rowsort
SELECT - 31 * 30 AS col2
----
-930

query I rowsort
SELECT + 36 * NULLIF ( 11, 52 + + 46 )
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT COALESCE ( + + CASE + ( + 42 ) WHEN 87 THEN NULL ELSE 95 + MAX( + ( - NULLIF ( - 7, + 26 * 37 ) ) ) END, 79 + 25 )
----
102

skipif mysql # not compatible
query I rowsort label-5113
SELECT COALESCE ( + + CASE + ( + 42 ) WHEN 87 THEN NULL ELSE 95 + MAX ( + ( - NULLIF ( - 7, + 26 * 37 ) ) ) END, 79 + 25 )
----
102

query I rowsort
SELECT + 71 * + 51
----
3621

query I rowsort
SELECT ALL 77 * + 18 AS col0
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT NULLIF ( ( SUM( 66 ) ), + ( 62 ) - 93 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-5116
SELECT NULLIF ( ( SUM ( 66 ) ), + ( 62 ) - 93 ) AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5117
SELECT + COUNT( DISTINCT 87 ) + 63 DIV + COUNT( ALL - 3 * 91 )
----
64

skipif mysql # not compatible
query I rowsort label-5117
SELECT + COUNT ( DISTINCT 87 ) + 63 / + COUNT ( ALL - 3 * 91 )
----
64

query I rowsort
SELECT ALL 95 * + 21
----
1995

query I rowsort
SELECT - 1 * 71 * 54 AS col0
----
-3834

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5120
SELECT DISTINCT - 71 DIV + NULLIF ( - 74, CAST( NULL AS DECIMAL ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT - 71 / + NULLIF ( - 74, CAST ( NULL AS REAL ) ) col1
----
0

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

skipif mysql # not compatible
query I rowsort label-5121
SELECT + COUNT ( * ) * + COALESCE ( - CAST ( NULL AS INTEGER ), 21 ) * COUNT ( * ) AS col2
----
21

query I rowsort
SELECT ALL - 53 * 61 AS col2
----
-3233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5123
SELECT + COUNT( - 22 ) DIV ( 14 )
----
0

skipif mysql # not compatible
query I rowsort label-5123
SELECT + COUNT ( - 22 ) / ( 14 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT COUNT( ALL - - 4 )
----
1

skipif mysql # not compatible
query I rowsort label-5124
SELECT COUNT ( ALL - - 4 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT ALL COUNT( * ) * + + CASE - ( + 10 ) WHEN 98 / - 1 THEN + 26 / 15 END * - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL COUNT ( * ) * + + CASE - ( + 10 ) WHEN 98 / - 1 THEN + 26 / 15 END * - 51 AS col1
----
NULL

query I rowsort
SELECT + 5 * - 3
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT - CASE - COUNT( * ) WHEN + CASE COUNT( * ) WHEN 15 THEN 73 * - 0 ELSE 81 END + - 53 * - 76 THEN 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT - CASE - COUNT ( * ) WHEN + CASE COUNT ( * ) WHEN 15 THEN 73 * - 0 ELSE 81 END + - 53 * - 76 THEN 49 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5128
SELECT + 23 DIV - 6
----
-3

skipif mysql # not compatible
query I rowsort label-5128
SELECT + 23 / - 6
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5129
SELECT 5 + - - 61 + 41 * 43 DIV ( - 16 )
----
-44

skipif mysql # not compatible
query I rowsort label-5129
SELECT 5 + - - 61 + 41 * 43 / ( - 16 )
----
-44

query I rowsort
SELECT + NULLIF ( - 40, - 38 * - 74 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT DISTINCT SUM( DISTINCT - - 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT SUM ( DISTINCT - - 21 ) AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5132
SELECT ALL CAST( - + ( 74 ) AS SIGNED ) + 7 * COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL CAST ( - + ( 74 ) AS INTEGER ) + 7 * COUNT ( * ) AS col1
----
-67

query I rowsort
SELECT DISTINCT COALESCE ( + 5, 88 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT DISTINCT + ( - NULLIF ( - 44, 5 * - 49 - + 98 ) ) + + COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT + ( - NULLIF ( - 44, 5 * - 49 - + 98 ) ) + + COUNT ( * ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL + - COUNT( * ) + + 55
----
54

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL + - COUNT ( * ) + + 55
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT ( + COUNT( * ) ) + 47 * + 6
----
283

skipif mysql # not compatible
query I rowsort label-5136
SELECT ( + COUNT ( * ) ) + 47 * + 6
----
283

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

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

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

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

query I rowsort
SELECT ALL - 81 + 48 AS col2
----
-33

query I rowsort
SELECT DISTINCT - 23 + 76
----
53

query I rowsort
SELECT + 10 * 27 AS col2
----
270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5142
SELECT - - COALESCE ( - 90, + CASE 17 WHEN - COUNT( * ) + - AVG ( 10 + 17 * - 38 ) THEN CAST( NULL AS SIGNED ) + 19 ELSE 54 END, NULLIF ( NULLIF ( - COALESCE ( + 90, + COALESCE ( - 36, - MIN( ALL - CAST( - 65 AS SIGNED ) ) ) * - ( + ( CAST( NULL AS SIGNED ) ) ), - CASE - 2 WHEN + 50 THEN CASE + 9 WHEN - 1 * - CASE + 10 * 24 WHEN COUNT( * ) THEN NULL WHEN + ( CAST( NULL AS SIGNED ) ) THEN NULL ELSE COUNT( * ) END THEN - 66 WHEN - 13 + 45 DIV + 36 THEN 74 * - 83 END DIV - COUNT( * ) + 37 ELSE NULL END + + ( - 95 - - COUNT( * ) ) ), COUNT( * ) + + 72 ), 96 DIV - CAST( NULL AS SIGNED ) ) ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-5142
SELECT - - COALESCE ( - 90, + CASE 17 WHEN - COUNT ( * ) + - AVG ( 10 + 17 * - 38 ) THEN CAST ( NULL AS INTEGER ) + 19 ELSE 54 END, NULLIF ( NULLIF ( - COALESCE ( + 90, + COALESCE ( - 36, - MIN ( ALL - CAST ( - 65 AS INTEGER ) ) ) * - ( + ( CAST ( NULL AS INTEGER ) ) ), - CASE - 2 WHEN + 50 THEN CASE + 9 WHEN - 1 * - CASE + 10 * 24 WHEN COUNT ( * ) THEN NULL WHEN + ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE COUNT ( * ) END THEN - 66 WHEN - 13 + 45 / + 36 THEN 74 * - 83 END / - COUNT ( * ) + 37 ELSE NULL END + + ( - 95 - - COUNT ( * ) ) ), COUNT ( * ) + + 72 ), 96 / - CAST ( NULL AS INTEGER ) ) ) AS col1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5143
SELECT 99 DIV 43
----
2

skipif mysql # not compatible
query I rowsort label-5143
SELECT 99 / 43
----
2

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

skipif mysql # not compatible
query I rowsort label-5144
SELECT - CAST ( NULL AS INTEGER ) * - - 66 + - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT DISTINCT - + COALESCE ( + 98, 84 ) + - NULLIF ( COUNT( * ), 13 + 28 * 7 )
----
-99

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT - + COALESCE ( + 98, 84 ) + - NULLIF ( COUNT ( * ), 13 + 28 * 7 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT ALL COUNT( * ) + COUNT( * ) - 57
----
-55

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL COUNT ( * ) + COUNT ( * ) - 57
----
-55

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

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

query I rowsort
SELECT DISTINCT - ( - 41 ) col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT ALL + + MIN( ALL + - ( - 72 ) ) - 58
----
14

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL + + MIN ( ALL + - ( - 72 ) ) - 58
----
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5150
SELECT 22 DIV - + NULLIF ( CAST( + 10 AS SIGNED ), 43 ) + 38 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5150
SELECT 22 / - + NULLIF ( CAST ( + 10 AS INTEGER ), 43 ) + 38 AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-5151
SELECT + 10 AS col2, 40 * + COUNT( * ) + + CASE 63 + - 45 WHEN 87 / - 76 THEN NULL ELSE 32 * + ( + 58 * NULLIF ( + COUNT( * ), MAX( DISTINCT 95 ) ) ) END
----
10
1896

skipif mysql # not compatible
query II rowsort label-5151
SELECT + 10 AS col2, 40 * + COUNT ( * ) + + CASE 63 + - 45 WHEN 87 / - 76 THEN NULL ELSE 32 * + ( + 58 * NULLIF ( + COUNT ( * ), MAX ( DISTINCT 95 ) ) ) END
----
10
1896

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

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL ( + 65 ) / + COUNT ( * ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT 48 * + ( - - ( + COUNT( * ) ) ) * 95 - - 10 * - 41
----
4150

skipif mysql # not compatible
query I rowsort label-5153
SELECT 48 * + ( - - ( + COUNT ( * ) ) ) * 95 - - 10 * - 41
----
4150

query I rowsort
SELECT 88 * + CASE + - 14 WHEN - 7 THEN 60 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT DISTINCT - 66 * - + MAX( - 60 )
----
-3960

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT - 66 * - + MAX ( - 60 )
----
-3960

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

query I rowsort
SELECT ALL - 57 * - 8 * + 34
----
15504

onlyif mysql # aggregate syntax: 
query II rowsort label-5158
SELECT 14, - COUNT( ALL - 20 ) AS col2
----
14
-1

skipif mysql # not compatible
query II rowsort label-5158
SELECT 14, - COUNT ( ALL - 20 ) AS col2
----
14
-1

query I rowsort
SELECT ALL 65 * - + 87 AS col0
----
-5655

query I rowsort
SELECT 84 - + - 37
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT ALL - COALESCE ( + 68, - - CAST( 68 AS SIGNED ), 67 )
----
-68

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL - COALESCE ( + 68, - - CAST ( 68 AS INTEGER ), 67 )
----
-68

query I rowsort
SELECT 64 * NULLIF ( + + 96, + AVG ( + 36 ) )
----
6144

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5163
SELECT 0 * + CAST( NULL AS DECIMAL ) * 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT 0 * + CAST ( NULL AS REAL ) * 59 col2
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5166
SELECT 90 * + 38 * + - COUNT( ALL NULLIF ( 10, CAST( 40 AS DECIMAL ) ) ) AS col2
----
-3420

skipif mysql # not compatible
query I rowsort label-5166
SELECT 90 * + 38 * + - COUNT ( ALL NULLIF ( 10, CAST ( 40 AS REAL ) ) ) AS col2
----
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ( 64 ) * - COUNT( * ) * + 57 + + 4 + - COUNT( * ) * 84 AS col1
----
-3728

skipif mysql # not compatible
query I rowsort label-5167
SELECT ( 64 ) * - COUNT ( * ) * + 57 + + 4 + - COUNT ( * ) * 84 AS col1
----
-3728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5168
SELECT - COUNT( * ) - + 74 * + CAST( NULL AS SIGNED ) - + 81 * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT - COUNT ( * ) - + 74 * + CAST ( NULL AS INTEGER ) - + 81 * 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5169
SELECT ALL + 76, - 40 + - 38 - - CASE - CAST( + 20 AS SIGNED ) - COUNT( * ) WHEN - COUNT( ALL 93 ) * 10 THEN + 44 * ( 85 ) - 99 * - 84 WHEN - 87 THEN NULL ELSE 86 * - 97 + - 17 * + ( + 89 ) END * 43 AS col0
----
76
-423843

skipif mysql # not compatible
query II rowsort label-5169
SELECT ALL + 76, - 40 + - 38 - - CASE - CAST ( + 20 AS INTEGER ) - COUNT ( * ) WHEN - COUNT ( ALL 93 ) * 10 THEN + 44 * ( 85 ) - 99 * - 84 WHEN - 87 THEN NULL ELSE 86 * - 97 + - 17 * + ( + 89 ) END * 43 AS col0
----
76
-423843

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT 22 + - 45 + - + COUNT( 6 )
----
-24

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT 22 + - 45 + - + COUNT ( 6 )
----
-24

query I rowsort
SELECT - 92 + 75
----
-17

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

skipif mysql # not compatible
query I rowsort label-5172
SELECT SUM ( ALL + ( - + 89 ) ) AS col0
----
-89

query I rowsort
SELECT ALL + 46 + + - ( + 56 )
----
-10

query I rowsort
SELECT ALL 45 + + 56 + - 24 AS col2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5175
SELECT ALL COUNT( * ) col2, COUNT( * ) * + 60
----
1
60

skipif mysql # not compatible
query II rowsort label-5175
SELECT ALL COUNT ( * ) col2, COUNT ( * ) * + 60
----
1
60

query I rowsort
SELECT 37 * - 43 * - + 77
----
122507

query I rowsort
SELECT - 64 * 10
----
-640

onlyif mysql # DIV for integer division: 
query I rowsort label-5178
SELECT + 73 DIV + NULLIF ( 68, 99 ) + - 20
----
-19

skipif mysql # not compatible
query I rowsort label-5178
SELECT + 73 / + NULLIF ( 68, 99 ) + - 20
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT ALL + ( COUNT( * ) ) - - 89 + 67 * - 70 AS col0
----
-4600

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL + ( COUNT ( * ) ) - - 89 + 67 * - 70 AS col0
----
-4600

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT CASE + - COUNT( * ) WHEN ( MAX( + 17 ) ) THEN NULL WHEN 96 * + 8 THEN 67 WHEN SUM( + 93 ) / AVG ( DISTINCT 81 + 82 ) + + 38 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT CASE + - COUNT ( * ) WHEN ( MAX ( + 17 ) ) THEN NULL WHEN 96 * + 8 THEN 67 WHEN SUM ( + 93 ) / AVG ( DISTINCT 81 + 82 ) + + 38 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + COALESCE ( + 99, + 28 ) - 31
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5182
SELECT COUNT( * ) DIV + 52 + + ( - 16 ) + 96
----
80

skipif mysql # not compatible
query I rowsort label-5182
SELECT COUNT ( * ) / + 52 + + ( - 16 ) + 96
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT DISTINCT 67 * - + SUM( ALL - 49 )
----
3283

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT 67 * - + SUM ( ALL - 49 )
----
3283

onlyif mysql # DIV for integer division: 
query I rowsort label-5184
SELECT 80 DIV 36 + + 70
----
72

skipif mysql # not compatible
query I rowsort label-5184
SELECT 80 / 36 + + 70
----
72

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

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

query I rowsort
SELECT ( - 62 ) * 79 AS col1
----
-4898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5187
SELECT NULLIF ( + ( + + 47 ), COALESCE ( 25, NULLIF ( CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ), - 84 + 91 ) + COUNT( * ), + ( + 13 ) ) * 35 + COUNT( * ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT NULLIF ( + ( + + 47 ), COALESCE ( 25, NULLIF ( CAST ( - CAST ( NULL AS REAL ) AS INTEGER ), - 84 + 91 ) + COUNT ( * ), + ( + 13 ) ) * 35 + COUNT ( * ) ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 19 * 55 AS col0
----
1045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5189
SELECT CASE - + 29 WHEN 4 THEN - NULLIF ( - 50, 60 * - 31 ) * - 62 + - 72 * SUM( 54 ) ELSE 28 END * + CAST( 64 * + COUNT( * ) AS SIGNED ) + 49 * 59
----
4683

skipif mysql # not compatible
query I rowsort label-5189
SELECT CASE - + 29 WHEN 4 THEN - NULLIF ( - 50, 60 * - 31 ) * - 62 + - 72 * SUM ( 54 ) ELSE 28 END * + CAST ( 64 * + COUNT ( * ) AS INTEGER ) + 49 * 59
----
4683

query II rowsort
SELECT 94 - 10 AS col1, 26 AS col0
----
84
26

query II rowsort
SELECT ALL 66 * + 14 col0, 91
----
924
91

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

skipif mysql # not compatible
query I rowsort label-5192
SELECT MAX ( ALL 60 )
----
60

query II rowsort
SELECT 93 + + - 93 col2, 14 AS col2
----
0
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5194
SELECT MAX( ALL - 27 ), 80 AS col2
----
-27
80

skipif mysql # not compatible
query II rowsort label-5194
SELECT MAX ( ALL - 27 ), 80 AS col2
----
-27
80

query I rowsort
SELECT 90 * - - ( - + 37 ) + - 55 * - 53
----
-415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5196
SELECT - 5 * - + 27 * - COALESCE ( + 2, 23, + 51 - - 0 * - CAST( CAST( - 75 AS SIGNED ) AS SIGNED ) ) * - 91 + - 64 * 33 AS col0
----
22458

skipif mysql # not compatible
query I rowsort label-5196
SELECT - 5 * - + 27 * - COALESCE ( + 2, 23, + 51 - - 0 * - CAST ( CAST ( - 75 AS INTEGER ) AS INTEGER ) ) * - 91 + - 64 * 33 AS col0
----
22458

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

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

query I rowsort
SELECT DISTINCT + ( - - 31 ) + - 71
----
-40

query I rowsort
SELECT DISTINCT - 75 + - 22
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT DISTINCT NULLIF ( - - 75, - CAST( NULL AS SIGNED ) * + 75 - + 20 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT NULLIF ( - - 75, - CAST ( NULL AS INTEGER ) * + 75 - + 20 ) AS col1
----
75

query I rowsort
SELECT DISTINCT - - 47 + + 11
----
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5202
SELECT - 79 - - 68 DIV + 52 * 75 * 28 + - CASE CAST( 0 AS SIGNED ) WHEN + 17 DIV - 30 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE 88 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT - 79 - - 68 / + 52 * 75 * 28 + - CASE CAST ( 0 AS INTEGER ) WHEN + 17 / - 30 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE 88 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT - + SUM( ALL 24 ) + 16 * COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-5203
SELECT - + SUM ( ALL 24 ) + 16 * COUNT ( * )
----
-8

query I rowsort
SELECT - 92 * - 14 * + 33 * + 44
----
1870176

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT DISTINCT + + MIN( - 25 ) * + + 50
----
-1250

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT + + MIN ( - 25 ) * + + 50
----
-1250

query I rowsort
SELECT - 24 + + - 49 * - 71 AS col2
----
3455

query I rowsort
SELECT - - 35 * + 37 * - ( 44 )
----
-56980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT ALL + 29 * + + 62 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL + 29 * + + 62 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5209
SELECT + 37 + - - COALESCE ( COUNT( * ), - CAST( NULL AS SIGNED ) * 43 + 91 * 49, 30 * 4 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5209
SELECT + 37 + - - COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ) * 43 + 91 * 49, 30 * 4 ) AS col0
----
38

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

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

query I rowsort
SELECT + 51 + - 65 * + - 96
----
6291

query I rowsort
SELECT ALL - 80 - 84
----
-164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5213
SELECT - SUM( + 87 ) DIV + 15
----
-5

skipif mysql # not compatible
query I rowsort label-5213
SELECT - SUM ( + 87 ) / + 15
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT + ( - 52 ) * CASE ( 13 ) WHEN - 96 + - 83 * - 54 THEN + 26 END + + SUM( ALL 23 ) / + NULLIF ( 66, + 29 + + 86 * 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT + ( - 52 ) * CASE ( 13 ) WHEN - 96 + - 83 * - 54 THEN + 26 END + + SUM ( ALL 23 ) / + NULLIF ( 66, + 29 + + 86 * 37 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5215
SELECT + CASE - NULLIF ( 30, 77 * - 94 + + CAST( MAX( + 63 ) + + 21 AS SIGNED ) * - COUNT( * ) ) WHEN 52 THEN + 7 * - 76 WHEN + 6 THEN NULL ELSE - COUNT( * ) - ( - 90 ) END * - 23
----
-2047

skipif mysql # not compatible
query I rowsort label-5215
SELECT + CASE - NULLIF ( 30, 77 * - 94 + + CAST ( MAX ( + 63 ) + + 21 AS INTEGER ) * - COUNT ( * ) ) WHEN 52 THEN + 7 * - 76 WHEN + 6 THEN NULL ELSE - COUNT ( * ) - ( - 90 ) END * - 23
----
-2047

query I rowsort
SELECT + 60 * + 25
----
1500

query I rowsort
SELECT DISTINCT + ( ( - 13 ) ) AS col1
----
-13

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5220
SELECT - COALESCE ( MAX( - CAST( + 27 AS SIGNED ) ), + 19 * + 95 + 8 ) * COUNT( 4 )
----
27

skipif mysql # not compatible
query I rowsort label-5220
SELECT - COALESCE ( MAX ( - CAST ( + 27 AS INTEGER ) ), + 19 * + 95 + 8 ) * COUNT ( 4 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT + 6 * - - COUNT( * ) * + 27 * - 35
----
-5670

skipif mysql # not compatible
query I rowsort label-5221
SELECT + 6 * - - COUNT ( * ) * + 27 * - 35
----
-5670

query II rowsort
SELECT + 51 * - + 25 - 98, ( + 98 ) + ( - 57 ) AS col2
----
-1373
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT ( - - COUNT( ALL + 95 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5223
SELECT ( - - COUNT ( ALL + 95 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5224
SELECT CAST( NULL AS SIGNED ) * - - 19 - 4 + 67 / 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT CAST ( NULL AS INTEGER ) * - - 19 - 4 + 67 / 68 AS col2
----
NULL

query I rowsort
SELECT CASE 60 WHEN + - 44 THEN - 38 + 92 + - 90 * + 93 ELSE - 47 * ( 51 ) - 37 END AS col0
----
-2434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5226
SELECT + CAST( - MAX( + 12 ) AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-5226
SELECT + CAST ( - MAX ( + 12 ) AS INTEGER ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT ALL + CASE WHEN + 6 IS NULL THEN COUNT( * ) END * - 75 + NULLIF ( + AVG ( ALL + 48 ), + 45 * + NULLIF ( + 18, 59 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL + CASE WHEN + 6 IS NULL THEN COUNT ( * ) END * - 75 + NULLIF ( + AVG ( ALL + 48 ), + 45 * + NULLIF ( + 18, 59 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 75 * - 55 + - 48 AS col1
----
-4173

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5230
SELECT CASE - 39 WHEN CAST( NULL AS DECIMAL ) / - 0 + + + 29 - COUNT( * ) * + 17 THEN NULL ELSE + CAST( 88 AS SIGNED ) END
----
88

skipif mysql # not compatible
query I rowsort label-5230
SELECT CASE - 39 WHEN CAST ( NULL AS REAL ) / - 0 + + + 29 - COUNT ( * ) * + 17 THEN NULL ELSE + CAST ( 88 AS INTEGER ) END
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT CASE - - 15 WHEN CAST( NULL AS SIGNED ) THEN + + 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT CASE - - 15 WHEN CAST ( NULL AS INTEGER ) THEN + + 73 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL - 22 * 61 + + 33 + - 35 col2
----
-1344

query I rowsort
SELECT 23 * ( - 37 ) * + 0 - - ( - 90 ) + 17 * 95
----
1525

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT ALL - - 11 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL - - 11 / 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT + 40 + 4 * + NULLIF ( - + 74, 64 + 1 ) * + 77 + 54 * + COUNT( * )
----
-22698

skipif mysql # not compatible
query I rowsort label-5236
SELECT + 40 + 4 * + NULLIF ( - + 74, 64 + 1 ) * + 77 + 54 * + COUNT ( * )
----
-22698

onlyif mysql # DIV for integer division: 
query I rowsort label-5237
SELECT - 10 DIV + + 61 * + 78 * + 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5237
SELECT - 10 / + + 61 * + 78 * + 55 AS col1
----
0

query I rowsort
SELECT ALL + + 13 * + 99 - 80
----
1207

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

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

query I rowsort
SELECT - + 74 * - 74 AS col1
----
5476

query II rowsort
SELECT 31 AS col0, ( 63 )
----
31
63

query I rowsort
SELECT ALL + 94 * 36 + - 14 AS col0
----
3370

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT - 36 * - COALESCE ( COUNT( * ), - 21 + - 55 - 0 * - 64, + 32 * - 98 ) * + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT - 36 * - COALESCE ( COUNT ( * ), - 21 + - 55 - 0 * - 64, + 32 * - 98 ) * + COUNT ( * ) AS col2
----
36

query I rowsort
SELECT ALL + 44 - + - 85
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT - MAX( + - 16 ) * + 58 + - 31 + - 48 col0
----
849

skipif mysql # not compatible
query I rowsort label-5245
SELECT - MAX ( + - 16 ) * + 58 + - 31 + - 48 col0
----
849

query I rowsort
SELECT ALL 69 * - 19
----
-1311

query I rowsort
SELECT DISTINCT - ( 12 ) AS col2
----
-12

query I rowsort
SELECT DISTINCT + 0 * + 76 AS col1
----
0

query I rowsort
SELECT - + 73 * 21
----
-1533

query I rowsort
SELECT NULLIF ( + + 71, + - 54 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT - - CASE - + 89 WHEN + 55 - - NULLIF ( + COALESCE ( COUNT( * ), - 30 * + 88 + + ( - 69 ) ), + 88 + 44 ) THEN NULL WHEN COUNT( * ) * - 87 + - 25 THEN - COUNT( * ) * - COUNT( * ) END + + ( - 94 + 2 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT - - CASE - + 89 WHEN + 55 - - NULLIF ( + COALESCE ( COUNT ( * ), - 30 * + 88 + + ( - 69 ) ), + 88 + 44 ) THEN NULL WHEN COUNT ( * ) * - 87 + - 25 THEN - COUNT ( * ) * - COUNT ( * ) END + + ( - 94 + 2 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT - + COUNT( - 83 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5252
SELECT - + COUNT ( - 83 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT - + 23 * + - ( + MAX( - - 93 ) ) AS col2
----
2139

skipif mysql # not compatible
query I rowsort label-5253
SELECT - + 23 * + - ( + MAX ( - - 93 ) ) AS col2
----
2139

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT ALL - + 64 DIV 12 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL - + 64 / 12 AS col0
----
-5

query I rowsort
SELECT - + 12 * + + 42 AS col0
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL COALESCE ( - - COUNT( * ), + 4 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL COALESCE ( - - COUNT ( * ), + 4 ) AS col0
----
1

query I rowsort
SELECT ALL CASE + 68 WHEN 69 THEN + - 24 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL - 98 * + MIN( DISTINCT + 68 ) * 29 * + - 30 AS col2
----
5797680

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL - 98 * + MIN ( DISTINCT + 68 ) * 29 * + - 30 AS col2
----
5797680

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT - 37 DIV - + 13
----
2

skipif mysql # not compatible
query I rowsort label-5259
SELECT - 37 / - + 13
----
2

query I rowsort
SELECT - 54 - + 46
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT - COUNT( + - 82 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5261
SELECT - COUNT ( + - 82 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT ALL COUNT( * ) + - + 6 + + 93 + - 17
----
71

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL COUNT ( * ) + - + 6 + + 93 + - 17
----
71

query I rowsort
SELECT - ( + + 24 ) + + COALESCE ( + ( + + ( - COALESCE ( - 50, + 18 ) ) ), 35 + 18 * - 58 ) AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5264
SELECT ALL 60 DIV - + 53 + - - 65
----
64

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL 60 / - + 53 + - - 65
----
64

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

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

query II rowsort
SELECT 24 col2, - 4 AS col0
----
24
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-5267
SELECT 59 AS col1, 89 DIV 42
----
59
2

skipif mysql # not compatible
query II rowsort label-5267
SELECT 59 AS col1, 89 / 42
----
59
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5268
SELECT 83 + + 63 DIV - 16 - - + 64 * - 10 + 19
----
-541

skipif mysql # not compatible
query I rowsort label-5268
SELECT 83 + + 63 / - 16 - - + 64 * - 10 + 19
----
-541

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT - 97 DIV 50 - + ( + + 35 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5269
SELECT - 97 / 50 - + ( + + 35 ) AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5270
SELECT ALL 65 / + - CAST( - CASE ( + 26 ) WHEN - ( + ( 36 ) ) THEN 11 * + 19 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL 65 / + - CAST ( - CASE ( + 26 ) WHEN - ( + ( 36 ) ) THEN 11 * + 19 END AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 91 + - 98 AS col1
----
-189

query II rowsort
SELECT DISTINCT - ( - 90 ), - 78 * - + 16 AS col2
----
90
1248

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

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

query II rowsort
SELECT + 95, + 70 + 63 + - 76 AS col0
----
95
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT COUNT( * ) + + 28 + - SUM( - 89 ) + + + COUNT( * ) * + - 83 + - COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-5275
SELECT COUNT ( * ) + + 28 + - SUM ( - 89 ) + + + COUNT ( * ) * + - 83 + - COUNT ( * ) AS col2
----
34

query II rowsort
SELECT DISTINCT - 60 AS col1, 24 * 17
----
-60
408

query I rowsort
SELECT ALL 23 - + - 29 * 64
----
1879

onlyif mysql # aggregate syntax: 
query II rowsort label-5278
SELECT + MIN( - 15 ) AS col0, - 51
----
-15
-51

skipif mysql # not compatible
query II rowsort label-5278
SELECT + MIN ( - 15 ) AS col0, - 51
----
-15
-51

query II rowsort
SELECT 83 col2, + 55
----
83
55

query I rowsort
SELECT 56 + 75 AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT NULLIF ( - 43, - 81 ) * + COUNT( ALL - 4 ) + + 8 + - 37
----
-72

skipif mysql # not compatible
query I rowsort label-5281
SELECT NULLIF ( - 43, - 81 ) * + COUNT ( ALL - 4 ) + + 8 + - 37
----
-72

query I rowsort
SELECT + ( - ( - - 5 ) ) * - - 23 - + 96 * - + 12
----
1037

query I rowsort
SELECT 74 + + - 56 AS col0
----
18

query II rowsort
SELECT DISTINCT - 61 AS col1, 2
----
-61
2

query I rowsort
SELECT ALL 14 - - 37
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT - ( 0 ) * COUNT( * ) * - + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5286
SELECT - ( 0 ) * COUNT ( * ) * - + 89 AS col2
----
0

query II rowsort
SELECT ALL + 10 AS col2, 58 * - 93
----
10
-5394

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

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

query I rowsort
SELECT + 96 * + + 77 + 96 AS col1
----
7488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5290
SELECT DISTINCT + CAST( + 39 AS SIGNED ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT + CAST ( + 39 AS INTEGER ) AS col1
----
39

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

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

query II rowsort
SELECT ALL 92 AS col0, 13
----
92
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT + 77 - - 84 + + + COUNT( DISTINCT 28 ) * NULLIF ( ( - 89 ), 7 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5293
SELECT + 77 - - 84 + + + COUNT ( DISTINCT 28 ) * NULLIF ( ( - 89 ), 7 ) AS col0
----
72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5295
SELECT - 70 col1, COUNT( * ) + 96 + 96 + - 13 AS col1
----
-70
180

skipif mysql # not compatible
query II rowsort label-5295
SELECT - 70 col1, COUNT ( * ) + 96 + 96 + - 13 AS col1
----
-70
180

query II rowsort
SELECT ALL 81, + 79 * + 59 * - - 23 AS col2
----
81
107203

query I rowsort
SELECT DISTINCT + 19 * - - 17
----
323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5298
SELECT ALL 43 + + MAX( + 93 ) * - 5 * + COUNT( * ) + + 67 / - CAST( NULL AS SIGNED ) * - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL 43 + + MAX ( + 93 ) * - 5 * + COUNT ( * ) + + 67 / - CAST ( NULL AS INTEGER ) * - 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT DISTINCT 2 + - + MIN( ALL - - 8 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT 2 + - + MIN ( ALL - - 8 ) AS col0
----
-6

query I rowsort
SELECT ALL - 94 + + 95
----
1

query I rowsort
SELECT 83 * + 97
----
8051

query I rowsort
SELECT 19 + - 88 + + 42 * + 71
----
2913

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5303
SELECT DISTINCT - 77 + NULLIF ( 18, CASE WHEN - 4 IS NOT NULL THEN NULL WHEN NOT NULL IS NULL THEN + 63 * 59 WHEN NOT 2 < 90 + CAST( NULL AS DECIMAL ) THEN - SUM( DISTINCT + 64 ) + - 94 ELSE + 94 + - 97 END )
----
-59

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT - 77 + NULLIF ( 18, CASE WHEN - 4 IS NOT NULL THEN NULL WHEN NOT NULL IS NULL THEN + 63 * 59 WHEN NOT 2 < 90 + CAST ( NULL AS REAL ) THEN - SUM ( DISTINCT + 64 ) + - 94 ELSE + 94 + - 97 END )
----
-59

query I rowsort
SELECT 9 * - - 45 AS col0
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT DISTINCT - CASE 76 WHEN - - 66 THEN + 86 WHEN - 47 * - 30 THEN NULL END - + MAX( ALL + ( - 27 ) ) * + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT DISTINCT - CASE 76 WHEN - - 66 THEN + 86 WHEN - 47 * - 30 THEN NULL END - + MAX ( ALL + ( - 27 ) ) * + 37 AS col1
----
NULL

query II rowsort
SELECT ALL - 59 - - 69 AS col2, 72 col1
----
10
72

query I rowsort
SELECT 99 * 91
----
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT - 69 * - 47 - + 16 + - 51 - + COUNT( * ) + + COALESCE ( 25, + 92 ) - 99 * - COUNT( 21 ) * - 63 - + 62 * + COUNT( * ) AS col0
----
-3099

skipif mysql # not compatible
query I rowsort label-5308
SELECT - 69 * - 47 - + 16 + - 51 - + COUNT ( * ) + + COALESCE ( 25, + 92 ) - 99 * - COUNT ( 21 ) * - 63 - + 62 * + COUNT ( * ) AS col0
----
-3099

onlyif mysql # DIV for integer division: 
query I rowsort label-5309
SELECT - 1 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-5309
SELECT - 1 / + 61
----
0

query I rowsort
SELECT 58 + + 42 + + 10 * - 86
----
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL - - SUM( DISTINCT - 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL - - SUM ( DISTINCT - 45 ) AS col1
----
-45

query I rowsort
SELECT - 58 * 69 + 99
----
-3903

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT + 67 DIV + 63 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5313
SELECT + 67 / + 63 AS col1
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5315
SELECT ( 33 ) * + COUNT( * ) - - 69 * - CAST( 25 AS SIGNED ) * 33 col2
----
-56892

skipif mysql # not compatible
query I rowsort label-5315
SELECT ( 33 ) * + COUNT ( * ) - - 69 * - CAST ( 25 AS INTEGER ) * 33 col2
----
-56892

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

skipif mysql # not compatible
query I rowsort label-5316
SELECT + COUNT ( * ) + - 37 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT + CASE 50 WHEN + AVG ( - 19 ) THEN + 29 * + COALESCE ( + COUNT( * ), + 91 * COUNT( * ), - 81 ) * 45 ELSE + 11 - + 20 END * ( + 38 + - 41 ) - + 3 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5317
SELECT + CASE 50 WHEN + AVG ( - 19 ) THEN + 29 * + COALESCE ( + COUNT ( * ), + 91 * COUNT ( * ), - 81 ) * 45 ELSE + 11 - + 20 END * ( + 38 + - 41 ) - + 3 AS col1
----
24

query I rowsort
SELECT + COALESCE ( 53, + - 78 - - 63 * COALESCE ( 44, + 5 ), 20 - - 20 * 82 )
----
53

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5321
SELECT + NULLIF ( - 58, - 41 ) * - + CAST( NULL AS SIGNED ) * + + 41 + CAST( - ( + 25 ) AS DECIMAL ) + ( 64 + 7 ) * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT + NULLIF ( - 58, - 41 ) * - + CAST ( NULL AS INTEGER ) * + + 41 + CAST ( - ( + 25 ) AS REAL ) + ( 64 + 7 ) * - 99
----
NULL

query II rowsort
SELECT DISTINCT - 23 * + 59 col0, - 79
----
-1357
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5323
SELECT DISTINCT CAST( + 72 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT CAST ( + 72 AS INTEGER )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT - ( + - ( - - CASE - 85 WHEN + - 17 THEN NULL WHEN CAST( NULL AS SIGNED ) + + 78 THEN 65 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT - ( + - ( - - CASE - 85 WHEN + - 17 THEN NULL WHEN CAST ( NULL AS INTEGER ) + + 78 THEN 65 END ) )
----
NULL

query I rowsort
SELECT ALL - 10 + + 5 + 30 * - 94 * + 1 AS col2
----
-2825

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT DISTINCT 61 + - 88 - - 65 + COUNT( * ) - + 12 col1
----
27

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT 61 + - 88 - - 65 + COUNT ( * ) - + 12 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT CASE + 52 WHEN - - MAX( + + 39 ) + + 55 THEN - + SUM( DISTINCT + 11 ) END / - ( - 90 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT CASE + 52 WHEN - - MAX ( + + 39 ) + + 55 THEN - + SUM ( DISTINCT + 11 ) END / - ( - 90 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT 97 + + COUNT( * ) * + 45
----
142

skipif mysql # not compatible
query I rowsort label-5328
SELECT 97 + + COUNT ( * ) * + 45
----
142

query I rowsort
SELECT + 19 + - 58
----
-39

query I rowsort
SELECT + ( + 92 ) + + 66 * + 25 col2
----
1742

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT - 1 * + 11 * - MAX( - 49 ) AS col2
----
-539

skipif mysql # not compatible
query I rowsort label-5331
SELECT - 1 * + 11 * - MAX ( - 49 ) AS col2
----
-539

query I rowsort
SELECT ALL 83 + + 9 - 34 * + + 89
----
-2934

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT ALL NULLIF ( ( MAX( 32 ) ), + + 98 + + 58 ) * + 50 + + ( 72 ) AS col0
----
1672

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL NULLIF ( ( MAX ( 32 ) ), + + 98 + + 58 ) * + 50 + + ( 72 ) AS col0
----
1672

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5334
SELECT + 65 - 22 DIV - + COUNT( * ) AS col2, - 30 col2
----
87
-30

skipif mysql # not compatible
query II rowsort label-5334
SELECT + 65 - 22 / - + COUNT ( * ) AS col2, - 30 col2
----
87
-30

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5337
SELECT ALL 47 - CAST( MIN( - 68 ) AS SIGNED ) AS col2
----
115

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL 47 - CAST ( MIN ( - 68 ) AS INTEGER ) AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT - COUNT( - 54 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5338
SELECT - COUNT ( - 54 ) AS col2
----
-1

query I rowsort
SELECT - 17 + - - 71
----
54

query I rowsort
SELECT - 11 * - - 29 * - ( 26 )
----
8294

query II rowsort
SELECT NULLIF ( + 20, - 45 ) AS col1, + 44 * 57
----
20
2508

query I rowsort
SELECT + 81 + + + 42 col2
----
123

query I rowsort
SELECT - 90 * + 84 * - + ( 50 ) * 9 AS col1
----
3402000

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5347
SELECT ALL + NULLIF ( - COUNT( * ), - - 60 - - 52 - - COUNT( * ) * - COALESCE ( 82, - CAST( + NULLIF ( - 24, + 82 ) AS SIGNED ), - COUNT( * ) ) * 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL + NULLIF ( - COUNT ( * ), - - 60 - - 52 - - COUNT ( * ) * - COALESCE ( 82, - CAST ( + NULLIF ( - 24, + 82 ) AS INTEGER ), - COUNT ( * ) ) * 64 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5348
SELECT + - 3 AS col1, + COUNT( * ) * - MIN( DISTINCT + - 26 ) + + + 98 col0
----
-3
124

skipif mysql # not compatible
query II rowsort label-5348
SELECT + - 3 AS col1, + COUNT ( * ) * - MIN ( DISTINCT + - 26 ) + + + 98 col0
----
-3
124

onlyif mysql # DIV for integer division: 
query I rowsort label-5349
SELECT - - 68 * - 6 * 44 + + 42 + 59 - + 40 DIV 38 AS col2
----
-17852

skipif mysql # not compatible
query I rowsort label-5349
SELECT - - 68 * - 6 * 44 + + 42 + 59 - + 40 / 38 AS col2
----
-17852

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT - + MIN( + 66 ) + + 55
----
-11

skipif mysql # not compatible
query I rowsort label-5350
SELECT - + MIN ( + 66 ) + + 55
----
-11

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

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL + + 33 * - + COUNT ( * ) AS col0
----
-33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5353
SELECT CAST( + 3 AS SIGNED ) * + - 97 + + 30 + NULLIF ( - 45, 6 * + MAX( + CAST( NULL AS DECIMAL ) ) / - COUNT( * ) + - COUNT( * ) ) * - 58
----
2349

skipif mysql # not compatible
query I rowsort label-5353
SELECT CAST ( + 3 AS INTEGER ) * + - 97 + + 30 + NULLIF ( - 45, 6 * + MAX ( + CAST ( NULL AS REAL ) ) / - COUNT ( * ) + - COUNT ( * ) ) * - 58
----
2349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5354
SELECT + 66 * COUNT( * ) * + 14 * - CAST( NULL AS SIGNED ) * - AVG ( DISTINCT 60 ) * - 64 - 43 + 6 + 7 * - 1 + MIN( ALL CAST( NULL AS DECIMAL ) + 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT + 66 * COUNT ( * ) * + 14 * - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT 60 ) * - 64 - 43 + 6 + 7 * - 1 + MIN ( ALL CAST ( NULL AS REAL ) + 82 ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL 70 * 51 * 3 + - - 26
----
10736

query I rowsort
SELECT DISTINCT + - 91 * - - 36 * - - 85
----
-278460

onlyif mysql # DIV for integer division: 
query I rowsort label-5358
SELECT ALL + 30 DIV + + NULLIF ( - + 7, + + 82 * + 66 + + 21 DIV + + 95 * 88 + + 50 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + 30 / + + NULLIF ( - + 7, + + 82 * + 66 + + 21 / + + 95 * 88 + + 50 ) AS col1
----
-4

query I rowsort
SELECT ALL 78 * NULLIF ( - 57, + 52 + 98 + + - 99 ) + + + CASE + ( 51 ) WHEN - 56 THEN COALESCE ( - 80, + 30, 89 + 34 ) * 89 END col2
----
NULL

query I rowsort
SELECT ALL - ( 35 ) * 83 + + 39 AS col0
----
-2866

query II rowsort
SELECT ALL 27 AS col1, + 15 col1
----
27
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5362
SELECT + CASE + - COUNT( * ) WHEN 19 - 53 THEN + - 50 ELSE - 97 * + NULLIF ( - - 35, + + 72 * - CASE 85 + - 38 * - ( - 57 * + ( 79 ) ) WHEN - 17 THEN 99 * 10 ELSE NULL END - 70 ) * 0 + COUNT( * ) * COUNT( * ) + + 1 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT + CASE + - COUNT ( * ) WHEN 19 - 53 THEN + - 50 ELSE - 97 * + NULLIF ( - - 35, + + 72 * - CASE 85 + - 38 * - ( - 57 * + ( 79 ) ) WHEN - 17 THEN 99 * 10 ELSE NULL END - 70 ) * 0 + COUNT ( * ) * COUNT ( * ) + + 1 END * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 94 + + - 53 + - 27
----
14

query I rowsort
SELECT - NULLIF ( - 1, + ( 42 ) ) col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5366
SELECT + 60 * 65 AS col0, COUNT( * ) * + CASE - 39 WHEN - AVG ( ALL - 17 ) THEN 47 * + 49 END AS col2
----
3900
NULL

skipif mysql # not compatible
query II rowsort label-5366
SELECT + 60 * 65 AS col0, COUNT ( * ) * + CASE - 39 WHEN - AVG ( ALL - 17 ) THEN 47 * + 49 END AS col2
----
3900
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5368
SELECT ALL + 95 * - 6 AS col0, - CAST( NULL AS SIGNED ) * + + 26 + + CAST( - 27 AS SIGNED ) + + 9 - - 25 + + - 96 * + 7 * - 57
----
-570
NULL

skipif mysql # not compatible
query II rowsort label-5368
SELECT ALL + 95 * - 6 AS col0, - CAST ( NULL AS INTEGER ) * + + 26 + + CAST ( - 27 AS INTEGER ) + + 9 - - 25 + + - 96 * + 7 * - 57
----
-570
NULL

query I rowsort
SELECT - NULLIF ( - - 83, 15 ) AS col2
----
-83

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5371
SELECT DISTINCT + 77 - + NULLIF ( 8, - SUM( DISTINCT + 40 ) / - CAST( NULL AS SIGNED ) - + - 58 ) + + 81 + - COUNT( 71 ) + 45 AS col1
----
194

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT + 77 - + NULLIF ( 8, - SUM ( DISTINCT + 40 ) / - CAST ( NULL AS INTEGER ) - + - 58 ) + + 81 + - COUNT ( 71 ) + 45 AS col1
----
194

query II rowsort
SELECT + 41 + - 73 AS col2, - 78
----
-32
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-5373
SELECT DISTINCT COALESCE ( - 20, - COUNT( * ) ) - - - 96 AS col1, ( - + 39 )
----
-116
-39

skipif mysql # not compatible
query II rowsort label-5373
SELECT DISTINCT COALESCE ( - 20, - COUNT ( * ) ) - - - 96 AS col1, ( - + 39 )
----
-116
-39

query I rowsort
SELECT + 18 + - 25
----
-7

query I rowsort
SELECT - 88 * 77 * - 31
----
210056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5376
SELECT ALL ( - NULLIF ( + 51, + 12 + + COUNT( * ) ) ) / + ( - COUNT( * ) ) * + - CAST( NULL AS SIGNED ) * - - 61 * COUNT( - 56 * 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL ( - NULLIF ( + 51, + 12 + + COUNT ( * ) ) ) / + ( - COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) * - - 61 * COUNT ( - 56 * 19 )
----
NULL

query I rowsort
SELECT - NULLIF ( + 32, - 61 )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5378
SELECT + 87 + - - COUNT( * ) DIV + 24 - - 88 * + + 60 * - - 49 + - COALESCE ( 75, - 28 + + COUNT( * ) * COUNT( * ), - 45, 23 )
----
258732

skipif mysql # not compatible
query I rowsort label-5378
SELECT + 87 + - - COUNT ( * ) / + 24 - - 88 * + + 60 * - - 49 + - COALESCE ( 75, - 28 + + COUNT ( * ) * COUNT ( * ), - 45, 23 )
----
258732

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

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL + 42 / 83 * - - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT + 58 * + ( + - ( - 96 ) )
----
5568

query I rowsort
SELECT ALL 28 * 93 * + ( 24 ) AS col0
----
62496

query I rowsort
SELECT DISTINCT + 8 * - 74 AS col1
----
-592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5383
SELECT + + MAX( - ( + 20 ) ) DIV + 46 * + ( + - 77 ) * 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5383
SELECT + + MAX ( - ( + 20 ) ) / + 46 * + ( + - 77 ) * 80 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5384
SELECT ALL COUNT( * ) * 96 AS col0, ( - 42 ) + 10
----
96
-32

skipif mysql # not compatible
query II rowsort label-5384
SELECT ALL COUNT ( * ) * 96 AS col0, ( - 42 ) + 10
----
96
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-5385
SELECT + 93 * - 71 AS col1, - 77 * + - MIN( ALL + 80 ) * + - 48 + - COUNT( * ) AS col0
----
-6603
-295681

skipif mysql # not compatible
query II rowsort label-5385
SELECT + 93 * - 71 AS col1, - 77 * + - MIN ( ALL + 80 ) * + - 48 + - COUNT ( * ) AS col0
----
-6603
-295681

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5387
SELECT DISTINCT MAX( - 12 ) DIV + 5 + + COUNT( * ) + - 61 + - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT MAX ( - 12 ) / + 5 + + COUNT ( * ) + - 61 + - COUNT ( * )
----
-63

query I rowsort
SELECT 20 * + 38 - - - 24
----
736

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5390
SELECT + 22 DIV - 28 - - 41
----
41

skipif mysql # not compatible
query I rowsort label-5390
SELECT + 22 / - 28 - - 41
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5391
SELECT + - CAST( - 71 AS SIGNED ), 68 AS col2
----
71
68

skipif mysql # not compatible
query II rowsort label-5391
SELECT + - CAST ( - 71 AS INTEGER ), 68 AS col2
----
71
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5392
SELECT DISTINCT + 9 DIV 68 + + 1 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT + 9 / 68 + + 1 / 60
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5393
SELECT ALL + 73 DIV + 5 + + 72
----
86

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + 73 / + 5 + + 72
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-5394
SELECT DISTINCT + + 55 * + 8 AS col0, COUNT( * )
----
440
1

skipif mysql # not compatible
query II rowsort label-5394
SELECT DISTINCT + + 55 * + 8 AS col0, COUNT ( * )
----
440
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT - + 95 DIV - 80 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5395
SELECT - + 95 / - 80 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT ALL - MAX( ALL - 45 ) * + - 66 + MAX( ALL - ( - 53 ) ) AS col1
----
-2917

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL - MAX ( ALL - 45 ) * + - 66 + MAX ( ALL - ( - 53 ) ) AS col1
----
-2917

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5397
SELECT DISTINCT - 30 * + 47 + + CASE + MIN( - + 4 ) WHEN 5 THEN NULL WHEN - + CASE CASE - 70 WHEN + 50 * 31 THEN + COUNT( * ) WHEN 74 + 55 THEN 54 + - CASE 39 + NULLIF ( + 56 + 10, 52 ) * MAX( ALL 60 ) WHEN 88 * 98 THEN NULLIF ( 58, - 81 + + 0 ) * ( - COUNT( * ) * - COUNT( * ) ) END END WHEN ( 47 ) / - ( + 23 - 85 ) + - 55 THEN + AVG ( DISTINCT 18 ) + SUM( + 37 - - 88 ) ELSE NULL END THEN + CAST( 23 AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT - 30 * + 47 + + CASE + MIN ( - + 4 ) WHEN 5 THEN NULL WHEN - + CASE CASE - 70 WHEN + 50 * 31 THEN + COUNT ( * ) WHEN 74 + 55 THEN 54 + - CASE 39 + NULLIF ( + 56 + 10, 52 ) * MAX ( ALL 60 ) WHEN 88 * 98 THEN NULLIF ( 58, - 81 + + 0 ) * ( - COUNT ( * ) * - COUNT ( * ) ) END END WHEN ( 47 ) / - ( + 23 - 85 ) + - 55 THEN + AVG ( DISTINCT 18 ) + SUM ( + 37 - - 88 ) ELSE NULL END THEN + CAST ( 23 AS REAL ) END
----
NULL

query I rowsort
SELECT ALL - 1 * 46 + - 24
----
-70

query I rowsort
SELECT + 23 + - ( + 87 )
----
-64

query I rowsort
SELECT 59 - - 28
----
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT 77 + - + 35 * + 54 + COUNT( * ) AS col0
----
-1812

skipif mysql # not compatible
query I rowsort label-5402
SELECT 77 + - + 35 * + 54 + COUNT ( * ) AS col0
----
-1812

query I rowsort
SELECT DISTINCT 19 * 22
----
418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5404
SELECT ALL - 63 * COALESCE ( + ( - 97 ), + + 61 - CAST( NULL AS SIGNED ) + - COUNT( * ) + + 69 + - + 45 * 99 * 79 * - COUNT( * ), MIN( ALL 55 ) * 28 )
----
6111

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL - 63 * COALESCE ( + ( - 97 ), + + 61 - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 69 + - + 45 * 99 * 79 * - COUNT ( * ), MIN ( ALL 55 ) * 28 )
----
6111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5405
SELECT ALL + 9 - - MIN( + + 45 ) + + 44 DIV - + 55 + + + 44 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL + 9 - - MIN ( + + 45 ) + + 44 / - + 55 + + + 44 AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT DISTINCT - 18 DIV - - 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT - 18 / - - 72 AS col2
----
0

query II rowsort
SELECT DISTINCT 71, 11 + + NULLIF ( - - 57, + 75 ) AS col2
----
71
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT 93 + 27 + COUNT( * ) * ( - 34 )
----
86

skipif mysql # not compatible
query I rowsort label-5409
SELECT 93 + 27 + COUNT ( * ) * ( - 34 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT 8 + - CASE + 71 WHEN - 51 THEN - 43 / + 77 END + - 64 + - 31 / + 32 - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5410
SELECT 8 + - CASE + 71 WHEN - 51 THEN - 43 / + 77 END + - 64 + - 31 / + 32 - + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 18 + + 43
----
61

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

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * 30 AS col1
----
30

query I rowsort
SELECT DISTINCT + 55 * ( + ( - - ( - 89 ) ) ) AS col1
----
-4895

query I rowsort
SELECT ALL + 47 * + 53
----
2491

query I rowsort
SELECT 43 - - 2 * + + 3 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT MAX( + 17 ) + + 81
----
98

skipif mysql # not compatible
query I rowsort label-5416
SELECT MAX ( + 17 ) + + 81
----
98

query II rowsort
SELECT 33 + - 50 + + 63 - ( - + 32 ) col0, 70
----
78
70

query II rowsort
SELECT 47 AS col1, - 78 AS col2
----
47
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5419
SELECT + + COALESCE ( - ( + ( - + 82 ) ), CASE 13 WHEN - + 1 DIV - - COUNT( * ) * - - 55 * 50 - 27 THEN + 26 + + 80 WHEN + 75 THEN + COALESCE ( - COUNT( * ), 31 + 19 * - COUNT( * ) ) * 40 ELSE NULL END ) DIV + COUNT( * ) + - 93 col1
----
-11

skipif mysql # not compatible
query I rowsort label-5419
SELECT + + COALESCE ( - ( + ( - + 82 ) ), CASE 13 WHEN - + 1 / - - COUNT ( * ) * - - 55 * 50 - 27 THEN + 26 + + 80 WHEN + 75 THEN + COALESCE ( - COUNT ( * ), 31 + 19 * - COUNT ( * ) ) * 40 ELSE NULL END ) / + COUNT ( * ) + - 93 col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL + 54 + + + 27 - 73 + 28 + + AVG ( - + 34 ) + MAX( ALL - - ( ( + - 25 ) ) ) * + CASE 99 WHEN + 98 THEN COUNT( * ) / 87 - - 43 ELSE NULL END * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL + 54 + + + 27 - 73 + 28 + + AVG ( - + 34 ) + MAX ( ALL - - ( ( + - 25 ) ) ) * + CASE 99 WHEN + 98 THEN COUNT ( * ) / 87 - - 43 ELSE NULL END * 17
----
NULL

query II rowsort
SELECT + 21, + ( + ( 94 ) ) + + - 71 AS col2
----
21
23

query I rowsort
SELECT 74 * + 76 + + 24 + + 56 col1
----
5704

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

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

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

query I rowsort
SELECT ALL + 94 + + 40 col2
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5426
SELECT DISTINCT - 36 / 58 - + COUNT( * ) + CASE WHEN NOT + - CASE + COUNT( * ) WHEN + 65 THEN COALESCE ( + 81, COUNT( * ) + ( - 39 + COALESCE ( 29, 85 ) ) / + 79, ( - 2 ) ) WHEN + 59 * 45 THEN 78 WHEN 19 * + 44 THEN NULL END BETWEEN - NULLIF ( 67, 32 / 67 ) * + 81 AND ( ( - 67 ) ) OR NOT - 96 - COUNT( * ) IN ( + 67 * - 2 ) THEN NULL ELSE 98 END + 88 * - CAST( + 69 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT - 36 / 58 - + COUNT ( * ) + CASE WHEN NOT + - CASE + COUNT ( * ) WHEN + 65 THEN COALESCE ( + 81, COUNT ( * ) + ( - 39 + COALESCE ( 29, 85 ) ) / + 79, ( - 2 ) ) WHEN + 59 * 45 THEN 78 WHEN 19 * + 44 THEN NULL END BETWEEN - NULLIF ( 67, 32 / 67 ) * + 81 AND ( ( - 67 ) ) OR NOT - 96 - COUNT ( * ) IN ( + 67 * - 2 ) THEN NULL ELSE 98 END + 88 * - CAST ( + 69 AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + ( COALESCE ( + 59, + 88 ) ) * 79 AS col1, + 15 * + - 26 col1
----
4661
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT ALL ( COUNT( * ) ) + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL ( COUNT ( * ) ) + - 55
----
-54

query I rowsort
SELECT ALL + 2 * - + 96 * 74
----
-14208

query I rowsort
SELECT ALL 24 * ( - + 79 ) * + 7 AS col0
----
-13272

query I rowsort
SELECT 81 + + 39 col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT DISTINCT + 11 * + + 8 - + 62 - - - 63 + 33 * + COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT + 11 * + + 8 - + 62 - - - 63 + 33 * + COUNT ( * ) AS col0
----
-4

query I rowsort
SELECT - + 75 * 31 + - 75 * + 65 AS col1
----
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT ( MIN( DISTINCT 74 ) ) * 38 AS col2
----
2812

skipif mysql # not compatible
query I rowsort label-5434
SELECT ( MIN ( DISTINCT 74 ) ) * 38 AS col2
----
2812

query II rowsort
SELECT ALL - 58 AS col0, + 96 AS col1
----
-58
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5436
SELECT CASE + - 39 WHEN CASE - + MIN( 64 ) WHEN - 14 * + CAST( 75 AS SIGNED ) + - - 99 * + COUNT( * ) THEN + 69 * - 28 - + 14 WHEN 27 * 31 THEN + 19 WHEN 73 + 13 THEN NULL END THEN NULL WHEN + CASE - 94 WHEN + COUNT( * ) THEN - 60 * + CASE 69 WHEN 32 + 86 THEN + 50 + - 17 ELSE + 5 END END - 62 THEN 34 * - 59 END + - AVG ( ( - 13 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT CASE + - 39 WHEN CASE - + MIN ( 64 ) WHEN - 14 * + CAST ( 75 AS INTEGER ) + - - 99 * + COUNT ( * ) THEN + 69 * - 28 - + 14 WHEN 27 * 31 THEN + 19 WHEN 73 + 13 THEN NULL END THEN NULL WHEN + CASE - 94 WHEN + COUNT ( * ) THEN - 60 * + CASE 69 WHEN 32 + 86 THEN + 50 + - 17 ELSE + 5 END END - 62 THEN 34 * - 59 END + - AVG ( ( - 13 ) ) AS col2
----
NULL

query II rowsort
SELECT + 8 AS col2, - 90
----
8
-90

query I rowsort
SELECT ALL 37 - + 23
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5439
SELECT DISTINCT 72 - ( + - 97 ) + - ( + 92 ) + + 66 DIV 68 * + - 74 * + - SUM( + - 67 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT 72 - ( + - 97 ) + - ( + 92 ) + + 66 / 68 * + - 74 * + - SUM ( + - 67 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT DISTINCT 89 / - 28 * + CASE WHEN 50 IS NULL THEN + 27 * - - 51 + + 9 WHEN NULL NOT BETWEEN + 69 AND - MIN( ALL 75 ) - - 65 THEN - 32 + - 4 * - ( + 37 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT 89 / - 28 * + CASE WHEN 50 IS NULL THEN + 27 * - - 51 + + 9 WHEN NULL NOT BETWEEN + 69 AND - MIN ( ALL 75 ) - - 65 THEN - 32 + - 4 * - ( + 37 ) END
----
NULL

query I rowsort
SELECT 93 * 46 col0
----
4278

query I rowsort
SELECT 28 + - + 31 col1
----
-3

query II rowsort
SELECT 18 * + - 37 * 28 * + 24 AS col1, 62
----
-447552
62

query I rowsort
SELECT 54 + 76 AS col2
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-5445
SELECT ALL 87 AS col0, + COUNT( * )
----
87
1

skipif mysql # not compatible
query II rowsort label-5445
SELECT ALL 87 AS col0, + COUNT ( * )
----
87
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5446
SELECT 37 DIV 16 * 27 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-5446
SELECT 37 / 16 * 27 AS col2
----
54

query I rowsort
SELECT ALL - 69 + - 68 * - 6 col1
----
339

query II rowsort
SELECT 43 + + - 44 AS col0, 46 AS col1
----
-1
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5449
SELECT DISTINCT 46 col2, 50 / - + CAST( NULL AS SIGNED ) AS col1
----
46
NULL

skipif mysql # not compatible
query II rowsort label-5449
SELECT DISTINCT 46 col2, 50 / - + CAST ( NULL AS INTEGER ) AS col1
----
46
NULL

query I rowsort
SELECT DISTINCT - ( + 59 ) + + + 97 - + 85
----
-47

query I rowsort
SELECT ALL + - 26 + + 72 + + 0 AS col2
----
46

query I rowsort
SELECT - + 4 col0
----
-4

query I rowsort
SELECT 47 * 33 + - - CASE - COALESCE ( - 83, - 49 ) WHEN + 55 THEN - 21 + + 81 END AS col1
----
NULL

query I rowsort
SELECT - 84 * - + 4 + - 79
----
257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5455
SELECT + 60 AS col0, - NULLIF ( + - 40, COUNT( * ) ) / 98 + 87 + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * 40 * - - 85
----
60
NULL

skipif mysql # not compatible
query II rowsort label-5455
SELECT + 60 AS col0, - NULLIF ( + - 40, COUNT ( * ) ) / 98 + 87 + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * 40 * - - 85
----
60
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5456
SELECT DISTINCT - - 14 * 79 AS col2, + COUNT( * )
----
1106
1

skipif mysql # not compatible
query II rowsort label-5456
SELECT DISTINCT - - 14 * 79 AS col2, + COUNT ( * )
----
1106
1

query II rowsort
SELECT - - 81 AS col0, - 98
----
81
-98

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

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

query I rowsort
SELECT DISTINCT - - 22 * + - 45
----
-990

query I rowsort
SELECT ALL + 1 * - 75 * + 73 + + 85 + 54 AS col1
----
-5336

query I rowsort
SELECT - NULLIF ( + 15, + 70 * 6 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT ALL - + 71 * + - CAST( NULL AS SIGNED ) + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL - + 71 * + - CAST ( NULL AS INTEGER ) + 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT - - MAX( 45 ) * - 53 AS col0
----
-2385

skipif mysql # not compatible
query I rowsort label-5463
SELECT - - MAX ( 45 ) * - 53 AS col0
----
-2385

query I rowsort
SELECT + + ( + 70 ) * - - 43 * - NULLIF ( + - 73, + 65 ) + + - 17 AS col0
----
219713

query I rowsort
SELECT 2 * - + 36 - 70 + 17 + + 98 AS col2
----
-27

query I rowsort
SELECT + 84 * + 75 AS col0
----
6300

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5467
SELECT ALL 53 DIV - CAST( + 75 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL 53 / - CAST ( + 75 AS INTEGER ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5468
SELECT + - 0 DIV 19 + + 81 - + - 15
----
96

skipif mysql # not compatible
query I rowsort label-5468
SELECT + - 0 / 19 + + 81 - + - 15
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT + - NULLIF ( 4, COUNT( ALL + 46 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-5469
SELECT + - NULLIF ( 4, COUNT ( ALL + 46 ) )
----
-4

query I rowsort
SELECT + 41 + 40 * + 39 col2
----
1601

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT ALL + 47 DIV - + 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + 47 / - + 87 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5472
SELECT + 49 DIV + - 32, 27 * - 75 col0
----
-1
-2025

skipif mysql # not compatible
query II rowsort label-5472
SELECT + 49 / + - 32, 27 * - 75 col0
----
-1
-2025

onlyif mysql # DIV for integer division: 
query II rowsort label-5473
SELECT ALL + 36 DIV + - 28 col0, - 37
----
-1
-37

skipif mysql # not compatible
query II rowsort label-5473
SELECT ALL + 36 / + - 28 col0, - 37
----
-1
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5474
SELECT ALL 19 * - ( + ( + - 1 ) ) * CASE - + 55 WHEN 31 * + 50 - + + 98 + + CAST( NULL AS SIGNED ) THEN - - CAST( NULL AS SIGNED ) * - 44 / SUM( CAST( NULL AS DECIMAL ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL 19 * - ( + ( + - 1 ) ) * CASE - + 55 WHEN 31 * + 50 - + + 98 + + CAST ( NULL AS INTEGER ) THEN - - CAST ( NULL AS INTEGER ) * - 44 / SUM ( CAST ( NULL AS REAL ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 25 * 18 * + 50 AS col2
----
22500

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5476
SELECT DISTINCT AVG ( 0 ) * - + ( - - 79 ) + CAST( NULL AS SIGNED ) AS col1, 88 - - 59 - - 51 * - + ( - + 33 ) * 14
----
NULL
23709

skipif mysql # not compatible
query II rowsort label-5476
SELECT DISTINCT AVG ( 0 ) * - + ( - - 79 ) + CAST ( NULL AS INTEGER ) AS col1, 88 - - 59 - - 51 * - + ( - + 33 ) * 14
----
NULL
23709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5477
SELECT - 72 * 43 / - - MIN( ALL - + CAST( NULL AS SIGNED ) ) - + - COUNT( * ) + + CASE + COUNT( * ) WHEN - COUNT( * ) * + 60 THEN COALESCE ( + 53, - 98 ) * 41 ELSE NULL END * 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT - 72 * 43 / - - MIN ( ALL - + CAST ( NULL AS INTEGER ) ) - + - COUNT ( * ) + + CASE + COUNT ( * ) WHEN - COUNT ( * ) * + 60 THEN COALESCE ( + 53, - 98 ) * 41 ELSE NULL END * 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5478
SELECT - ( + 12 ) DIV - MIN( 26 ) + + 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5478
SELECT - ( + 12 ) / - MIN ( 26 ) + + 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-5479
SELECT + 77 + - + 23 * - 32, COUNT( * ) * + + COUNT( * ) * 13 * - NULLIF ( + COUNT( * ), 81 ) AS col0
----
813
-13

skipif mysql # not compatible
query II rowsort label-5479
SELECT + 77 + - + 23 * - 32, COUNT ( * ) * + + COUNT ( * ) * 13 * - NULLIF ( + COUNT ( * ), 81 ) AS col0
----
813
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT + 89 * ( + CAST( 78 AS SIGNED ) )
----
6942

skipif mysql # not compatible
query I rowsort label-5480
SELECT + 89 * ( + CAST ( 78 AS INTEGER ) )
----
6942

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5482
SELECT - COUNT( * ) * - 32 DIV - ( + 49 ) + 58 * + COALESCE ( - - COUNT( * ), - 86 )
----
58

skipif mysql # not compatible
query I rowsort label-5482
SELECT - COUNT ( * ) * - 32 / - ( + 49 ) + 58 * + COALESCE ( - - COUNT ( * ), - 86 )
----
58

query I rowsort
SELECT ALL 47 * 86 AS col1
----
4042

query I rowsort
SELECT ALL ( - 49 ) + + 73 * + 76
----
5499

onlyif mysql # aggregate syntax: 
query II rowsort label-5485
SELECT DISTINCT COUNT( * ) + + 82 + 0 + + - 88 * - + 80 AS col0, 38 AS col1
----
7123
38

skipif mysql # not compatible
query II rowsort label-5485
SELECT DISTINCT COUNT ( * ) + + 82 + 0 + + - 88 * - + 80 AS col0, 38 AS col1
----
7123
38

onlyif mysql # aggregate syntax: 
query II rowsort label-5486
SELECT ALL 69 * + 73 AS col0, - 71 * - - MIN( ALL + - 19 ) AS col0
----
5037
1349

skipif mysql # not compatible
query II rowsort label-5486
SELECT ALL 69 * + 73 AS col0, - 71 * - - MIN ( ALL + - 19 ) AS col0
----
5037
1349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5487
SELECT DISTINCT + 96 * + COUNT( * ) DIV + COUNT( * ) - - 76
----
172

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT + 96 * + COUNT ( * ) / + COUNT ( * ) - - 76
----
172

query I rowsort
SELECT ALL 56 * - 29
----
-1624

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL + COUNT( * ) + NULLIF ( + - 14, 43 ) * - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL + COUNT ( * ) + NULLIF ( + - 14, 43 ) * - COUNT ( * )
----
15

query I rowsort
SELECT - + 66 + + 29
----
-37

query I rowsort
SELECT - - 8 * NULLIF ( 48, - 39 + - - 17 ) AS col1
----
384

query I rowsort
SELECT - 32 + + 36
----
4

query I rowsort
SELECT ALL + + 7 - 92
----
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5494
SELECT - ( - 15 ) + - CAST( NULL AS DECIMAL ) + 81 + 60 AS col2, SUM( + 80 ) + - 43
----
NULL
37

skipif mysql # not compatible
query II rowsort label-5494
SELECT - ( - 15 ) + - CAST ( NULL AS REAL ) + 81 + 60 AS col2, SUM ( + 80 ) + - 43
----
NULL
37

query I rowsort
SELECT - 85 + + 89 AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5496
SELECT - 40 DIV + + 48 + CASE + COUNT( * ) WHEN COUNT( * ) THEN + + 76 WHEN + + 90 THEN - - 77 END
----
76

skipif mysql # not compatible
query I rowsort label-5496
SELECT - 40 / + + 48 + CASE + COUNT ( * ) WHEN COUNT ( * ) THEN + + 76 WHEN + + 90 THEN - - 77 END
----
76

query I rowsort
SELECT - ( - COALESCE ( + + ( - 25 ), + 85 * 52 ) ) + + ( + - 90 )
----
-115

query II rowsort
SELECT ALL - 62 * - 92 AS col1, 71 AS col1
----
5704
71

query I rowsort
SELECT - - 39 * + 8
----
312

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT + MAX( + 81 ) col2
----
81

skipif mysql # not compatible
query I rowsort label-5501
SELECT + MAX ( + 81 ) col2
----
81

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

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

query I rowsort
SELECT ALL + 1 * + - 87 + - ( ( - - 27 ) )
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT - - MAX( ALL + ( 66 ) ) + + + 11 col2
----
77

skipif mysql # not compatible
query I rowsort label-5504
SELECT - - MAX ( ALL + ( 66 ) ) + + + 11 col2
----
77

query II rowsort
SELECT + 6 AS col2, - CASE - 15 WHEN - 73 THEN - + NULLIF ( - 8, 81 * COALESCE ( - ( - + 88 ), + - 8 ) ) + + 47 END
----
6
NULL

query I rowsort
SELECT - 1 + - 35
----
-36

query I rowsort
SELECT - ( - 56 ) * - 83 AS col2
----
-4648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5508
SELECT - COUNT( * ) * 78 + 38 DIV + + 86 + ( COUNT( * ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5508
SELECT - COUNT ( * ) * 78 + 38 / + + 86 + ( COUNT ( * ) ) AS col2
----
-77

query II rowsort
SELECT + 63, 39 AS col2
----
63
39

query II rowsort
SELECT + NULLIF ( + - 37, + 72 ), 65 AS col2
----
-37
65

onlyif mysql # DIV for integer division: 
query II rowsort label-5511
SELECT ALL + 83 AS col1, 63 DIV + 37
----
83
1

skipif mysql # not compatible
query II rowsort label-5511
SELECT ALL + 83 AS col1, 63 / + 37
----
83
1

query I rowsort
SELECT - 83 + - + 61 AS col1
----
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5513
SELECT - 59 DIV ( COUNT( * ) ) * - - 18 AS col1
----
-1062

skipif mysql # not compatible
query I rowsort label-5513
SELECT - 59 / ( COUNT ( * ) ) * - - 18 AS col1
----
-1062

query I rowsort
SELECT + NULLIF ( - - 38, + 15 + - + 75 )
----
38

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

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) / + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT ALL - ( + 25 ) * + - CASE + - 38 WHEN + 46 - 26 THEN - MIN( DISTINCT - 47 ) WHEN ( 65 ) THEN NULL ELSE NULL END + - 11 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL - ( + 25 ) * + - CASE + - 38 WHEN + 46 - 26 THEN - MIN ( DISTINCT - 47 ) WHEN ( 65 ) THEN NULL ELSE NULL END + - 11 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5517
SELECT + ( ( + 37 ) ) AS col2, - CAST( NULL AS SIGNED )
----
37
NULL

skipif mysql # not compatible
query II rowsort label-5517
SELECT + ( ( + 37 ) ) AS col2, - CAST ( NULL AS INTEGER )
----
37
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5518
SELECT ALL 17 * 30 + - 27 + + 66 * COALESCE ( + 69, - 58 + - 75 * - ( - 18 ) - - CAST( 11 AS SIGNED ) ) AS col2
----
5037

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL 17 * 30 + - 27 + + 66 * COALESCE ( + 69, - 58 + - 75 * - ( - 18 ) - - CAST ( 11 AS INTEGER ) ) AS col2
----
5037

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT DISTINCT - COUNT( * ) * NULLIF ( 87, 25 + 29 ) + + NULLIF ( - - 2, + - 75 ) * 82 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT - COUNT ( * ) * NULLIF ( 87, 25 + 29 ) + + NULLIF ( - - 2, + - 75 ) * 82 AS col1
----
77

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

skipif mysql # not compatible
query II rowsort label-5520
SELECT - COUNT ( * ), 15 AS col2
----
-1
15

query I rowsort
SELECT + 5 + - + 42 AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5522
SELECT ALL COUNT( * ) * + 86 * + + COUNT( + CASE + + 55 WHEN + 61 / - 71 * - 61 + + 22 THEN - 41 ELSE CAST( NULL AS SIGNED ) END ) + - COUNT( DISTINCT - - 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL COUNT ( * ) * + 86 * + + COUNT ( + CASE + + 55 WHEN + 61 / - 71 * - 61 + + 22 THEN - 41 ELSE CAST ( NULL AS INTEGER ) END ) + - COUNT ( DISTINCT - - 93 )
----
-1

query I rowsort
SELECT - CASE + 77 WHEN - + COALESCE ( - - 23, + - 29 ) + 3 THEN NULL WHEN + 6 THEN - 12 WHEN + + 49 THEN - 68 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT MIN( + + 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-5525
SELECT MIN ( + + 59 ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5526
SELECT + COUNT( * ), ( 89 ) * 23 col0
----
1
2047

skipif mysql # not compatible
query II rowsort label-5526
SELECT + COUNT ( * ), ( 89 ) * 23 col0
----
1
2047

query I rowsort
SELECT - ( - ( - - 59 ) ) AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5528
SELECT ALL COALESCE ( 84, ( + + 14 ) * + ( + 84 ) ) - NULLIF ( + NULLIF ( - + NULLIF ( 52, - + 98 ), + + 12 ), - - 78 * AVG ( ALL + CAST( - 52 AS SIGNED ) ) ) * 27 AS col1
----
1488

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL COALESCE ( 84, ( + + 14 ) * + ( + 84 ) ) - NULLIF ( + NULLIF ( - + NULLIF ( 52, - + 98 ), + + 12 ), - - 78 * AVG ( ALL + CAST ( - 52 AS INTEGER ) ) ) * 27 AS col1
----
1488

query II rowsort
SELECT DISTINCT - 38 AS col2, + ( + + 64 ) * 51 AS col2
----
-38
3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5530
SELECT DISTINCT - NULLIF ( - 42, + 35 * - 31 * + + ( - COUNT( * ) ) + - - 85 ) - - + 82 + + ( CAST( NULL AS SIGNED ) ) + + - 70 + - + 68 * + - 7 - + ( + 25 ) / 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT - NULLIF ( - 42, + 35 * - 31 * + + ( - COUNT ( * ) ) + - - 85 ) - - + 82 + + ( CAST ( NULL AS INTEGER ) ) + + - 70 + - + 68 * + - 7 - + ( + 25 ) / 84
----
NULL

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

query I rowsort
SELECT ALL 86 - + 56
----
30

query I rowsort
SELECT ALL 90 * - + 35 AS col2
----
-3150

query I rowsort
SELECT 90 * + + 33 * - 18 - 70
----
-53530

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT COUNT( * ) - - 90 - - - 14 + + 44 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-5535
SELECT COUNT ( * ) - - 90 - - - 14 + + 44 AS col1
----
121

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

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

query II rowsort
SELECT - - 66 col2, 79 + ( + + 37 ) AS col2
----
66
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT - 57 * - + 89 * - 62 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5538
SELECT - 57 * - + 89 * - 62 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 4 * 83
----
332

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

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

query I rowsort
SELECT DISTINCT 75 * + - 28
----
-2100

query I rowsort
SELECT 89 * 38 - - 9
----
3391

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5544
SELECT DISTINCT + 8 DIV + - 47 * - 8
----
0

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT + 8 / + - 47 * - 8
----
0

query I rowsort
SELECT 38 + - - 9 * + + 61
----
587

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5546
SELECT DISTINCT - AVG ( ALL - - CAST( NULL AS SIGNED ) ) / + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT - AVG ( ALL - - CAST ( NULL AS INTEGER ) ) / + 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5547
SELECT ( - + 92 ) * - + COUNT( * ) + + - 10 DIV - 67 * + ( - 70 ) col0
----
92

skipif mysql # not compatible
query I rowsort label-5547
SELECT ( - + 92 ) * - + COUNT ( * ) + + - 10 / - 67 * + ( - 70 ) col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT 31 * - - COALESCE ( + - MIN( 7 ), + - 42 + - 5 ) AS col2
----
-217

skipif mysql # not compatible
query I rowsort label-5548
SELECT 31 * - - COALESCE ( + - MIN ( 7 ), + - 42 + - 5 ) AS col2
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT DISTINCT - MIN( NULLIF ( 84, + 92 * - + 24 + - 92 * + 43 + + 23 ) ) col0
----
-84

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT - MIN ( NULLIF ( 84, + 92 * - + 24 + - 92 * + 43 + + 23 ) ) col0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-5550
SELECT ALL - MIN( + - 86 ) + + 61 + + + ( + 48 ) + - 56 * + NULLIF ( + - 57, 64 ) AS col2, + 93 AS col2
----
3387
93

skipif mysql # not compatible
query II rowsort label-5550
SELECT ALL - MIN ( + - 86 ) + + 61 + + + ( + 48 ) + - 56 * + NULLIF ( + - 57, 64 ) AS col2, + 93 AS col2
----
3387
93

query I rowsort
SELECT 21 + - - 97
----
118

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5553
SELECT DISTINCT - MAX( DISTINCT + 27 ) + - - CAST( - 77 AS SIGNED ) - + + 13
----
-117

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT - MAX ( DISTINCT + 27 ) + - - CAST ( - 77 AS INTEGER ) - + + 13
----
-117

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( + 88, + 2, + + 41 ) + 78 AS col2
----
166

query I rowsort
SELECT 21 + 55 * - + 26
----
-1409

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT + 26 * - 56 + + - COUNT( * ) AS col2
----
-1457

skipif mysql # not compatible
query I rowsort label-5557
SELECT + 26 * - 56 + + - COUNT ( * ) AS col2
----
-1457

onlyif mysql # aggregate syntax: 
query II rowsort label-5558
SELECT ALL - ( 56 ) AS col2, 58 - - + 45 + - - COUNT( * ) + - + NULLIF ( - COUNT( * ), + ( COUNT( * ) ) )
----
-56
105

skipif mysql # not compatible
query II rowsort label-5558
SELECT ALL - ( 56 ) AS col2, 58 - - + 45 + - - COUNT ( * ) + - + NULLIF ( - COUNT ( * ), + ( COUNT ( * ) ) )
----
-56
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT - 63 * 76 + - MAX( DISTINCT + 28 ) * - 4 AS col0
----
-4676

skipif mysql # not compatible
query I rowsort label-5559
SELECT - 63 * 76 + - MAX ( DISTINCT + 28 ) * - 4 AS col0
----
-4676

query I rowsort
SELECT - CASE 68 WHEN - 26 THEN 5 WHEN + 14 THEN ( - 99 ) / 98 - 11 WHEN + 20 * - - 56 * - + 43 + + 15 THEN 19 END * 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT DISTINCT - COUNT( * ) - - 68 + 76 + ( 9 ) AS col1
----
152

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT - COUNT ( * ) - - 68 + 76 + ( 9 ) AS col1
----
152

query I rowsort
SELECT 12 + 29 AS col2
----
41

query I rowsort
SELECT ALL - - ( - + 60 ) * + - 33
----
1980

query I rowsort
SELECT - COALESCE ( + + 43, - 87, + 33 + - 28 ) * + ( - 46 ) AS col1
----
1978

onlyif mysql # DIV for integer division: 
query I rowsort label-5565
SELECT 2 * + 84 + - - COALESCE ( 69, - 34 DIV 84 )
----
237

skipif mysql # not compatible
query I rowsort label-5565
SELECT 2 * + 84 + - - COALESCE ( 69, - 34 / 84 )
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT 4 * - - MAX( DISTINCT - 27 ) AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-5566
SELECT 4 * - - MAX ( DISTINCT - 27 ) AS col1
----
-108

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT ( 42 ) + - + COALESCE ( 23, + NULLIF ( COUNT( * ), - 16 ) * - NULLIF ( - - 45, 11 * + ( + 32 ) - + CASE COUNT( * ) WHEN 94 THEN NULL ELSE + ( + 17 ) END + - COUNT( * ) * - 69 ) * + 15 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-5568
SELECT ( 42 ) + - + COALESCE ( 23, + NULLIF ( COUNT ( * ), - 16 ) * - NULLIF ( - - 45, 11 * + ( + 32 ) - + CASE COUNT ( * ) WHEN 94 THEN NULL ELSE + ( + 17 ) END + - COUNT ( * ) * - 69 ) * + 15 ) AS col1
----
19

query I rowsort
SELECT - ( + 79 ) - - + 35
----
-44

query I rowsort
SELECT 81 + - 3
----
78

query I rowsort
SELECT ALL + - 85 * + 37
----
-3145

onlyif mysql # aggregate syntax: 
query II rowsort label-5572
SELECT DISTINCT - MIN( ALL + + 51 ), + ( 86 ) col1
----
-51
86

skipif mysql # not compatible
query II rowsort label-5572
SELECT DISTINCT - MIN ( ALL + + 51 ), + ( 86 ) col1
----
-51
86

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

query I rowsort
SELECT DISTINCT - COALESCE ( - 21, 87 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL CASE - NULLIF ( - 71, - COUNT( * ) ) WHEN 10 THEN - 29 + 86 + 81 * - 79 + + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL CASE - NULLIF ( - 71, - COUNT ( * ) ) WHEN 10 THEN - 29 + 86 + 81 * - 79 + + 69 END
----
NULL

query I rowsort
SELECT - 60 * + 15
----
-900

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

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

query I rowsort
SELECT DISTINCT 9 + - 68 AS col0
----
-59

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT DISTINCT - 4 * - + CASE 56 WHEN + 89 - - + MIN( - 59 ) THEN + 27 - COUNT( * ) ELSE NULL END + 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT - 4 * - + CASE 56 WHEN + 89 - - + MIN ( - 59 ) THEN + 27 - COUNT ( * ) ELSE NULL END + 69 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT ALL + ( + - 97 ) * + 10 * COUNT( * ) * + + MAX( ALL - 50 ) * + - 57 + - COUNT( * ) AS col1
----
-2764501

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL + ( + - 97 ) * + 10 * COUNT ( * ) * + + MAX ( ALL - 50 ) * + - 57 + - COUNT ( * ) AS col1
----
-2764501

query I rowsort
SELECT 12 * + 63
----
756

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

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

query I rowsort
SELECT ALL - 44 * + - 49 + + 27 col1
----
2183

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT SUM( 29 ) col0
----
29

skipif mysql # not compatible
query I rowsort label-5586
SELECT SUM ( 29 ) col0
----
29

query I rowsort
SELECT ALL - 94 * + 90 + + 90 AS col2
----
-8370

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT + ( + 23 ) * + MIN( - 31 ) * + - 84 + - 69
----
59823

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT + ( + 23 ) * + MIN ( - 31 ) * + - 84 + - 69
----
59823

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT 21 DIV - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5589
SELECT 21 / - 46 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5590
SELECT 27 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5590
SELECT 27 * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5591
SELECT DISTINCT - 42 DIV + 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT - 42 / + 56 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT ALL - COALESCE ( 75, SUM( DISTINCT + - 35 ) * + COUNT( * ), + ( - - 1 ) ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL - COALESCE ( 75, SUM ( DISTINCT + - 35 ) * + COUNT ( * ), + ( - - 1 ) ) AS col0
----
-75

query I rowsort
SELECT ALL - 25 - ( - ( + 92 ) ) * 95
----
8715

query I rowsort
SELECT DISTINCT - 7 - - 62
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5595
SELECT ALL + 52 * - 54 * - + COALESCE ( CAST( NULL AS SIGNED ), 23, - 48 ) AS col2
----
64584

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL + 52 * - 54 * - + COALESCE ( CAST ( NULL AS INTEGER ), 23, - 48 ) AS col2
----
64584

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

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

query I rowsort
SELECT ALL - NULLIF ( + - 86, + 65 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT DISTINCT + - 75 - - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT + - 75 - - COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT + + 84 * + COUNT( ALL - ( + - ( 70 ) ) ) + + 96 AS col0
----
180

skipif mysql # not compatible
query I rowsort label-5599
SELECT + + 84 * + COUNT ( ALL - ( + - ( 70 ) ) ) + + 96 AS col0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT 79 * - + 7 + - COUNT( * ) * - 29 + 85 + + - ( - 41 ) - - 26
----
-372

skipif mysql # not compatible
query I rowsort label-5600
SELECT 79 * - + 7 + - COUNT ( * ) * - 29 + 85 + + - ( - 41 ) - - 26
----
-372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5601
SELECT - + COUNT( * ) * 22 + - 52 + - 51 DIV - ( + MIN( - 49 ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-5601
SELECT - + COUNT ( * ) * 22 + - 52 + - 51 / - ( + MIN ( - 49 ) ) AS col1
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT DISTINCT COALESCE ( + - 82, + MAX( 37 ) + - - 89 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT COALESCE ( + - 82, + MAX ( 37 ) + - - 89 ) AS col1
----
-82

query I rowsort
SELECT - - 60 - - 0 AS col2
----
60

query II rowsort
SELECT ALL 58 AS col1, - 91 * - 71 + + 11 AS col0
----
58
6472

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT - SUM( - - 7 ) * + 66 AS col0
----
-462

skipif mysql # not compatible
query I rowsort label-5606
SELECT - SUM ( - - 7 ) * + 66 AS col0
----
-462

query I rowsort
SELECT ALL - 63 + 27
----
-36

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

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

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

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

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

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

query I rowsort
SELECT - - 33 * - 75 AS col2
----
-2475

query I rowsort
SELECT + - 28 * + 4
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL + 22 + - 72 - - + SUM( + 87 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL + 22 + - 72 - - + SUM ( + 87 ) AS col2
----
37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT ALL COUNT( * ) + 14
----
15

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL COUNT ( * ) + 14
----
15

query I rowsort
SELECT ALL - 28 * 1 * - 42
----
1176

onlyif mysql # aggregate syntax: 
query II rowsort label-5617
SELECT 57 AS col2, - 4 + COUNT( * ) AS col2
----
57
-3

skipif mysql # not compatible
query II rowsort label-5617
SELECT 57 AS col2, - 4 + COUNT ( * ) AS col2
----
57
-3

query I rowsort
SELECT + NULLIF ( 93, - 28 ) AS col2
----
93

query I rowsort
SELECT 19 * + + 9 - + - 2 AS col2
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5620
SELECT ALL + 82, ( - CAST( 87 AS SIGNED ) ) AS col0
----
82
-87

skipif mysql # not compatible
query II rowsort label-5620
SELECT ALL + 82, ( - CAST ( 87 AS INTEGER ) ) AS col0
----
82
-87

query I rowsort
SELECT - 83 + - + NULLIF ( 87, + 33 * + + 21 + - + 47 + + + 35 + + - 63 ) * - 69
----
5920

onlyif mysql # DIV for integer division: 
query I rowsort label-5622
SELECT DISTINCT 53 DIV + + ( + - 89 )
----
0

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT 53 / + + ( + - 89 )
----
0

query I rowsort
SELECT + 76 * 72 * 29 * + 83
----
13171104

query I rowsort
SELECT + 82 * - 22
----
-1804

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT - COUNT( * ) * + 44 * + - COUNT( * ) + 24 * + + SUM( ALL - 57 ) * - 91 + - 7 + 28
----
124553

skipif mysql # not compatible
query I rowsort label-5626
SELECT - COUNT ( * ) * + 44 * + - COUNT ( * ) + 24 * + + SUM ( ALL - 57 ) * - 91 + - 7 + 28
----
124553

query I rowsort
SELECT ( + 87 ) col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5628
SELECT ALL + COUNT( * ) AS col2, - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5628
SELECT ALL + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER )
----
1
NULL

query II rowsort
SELECT DISTINCT + 88 AS col2, + 87 AS col1
----
88
87

query I rowsort
SELECT DISTINCT 70 * - 35 AS col2
----
-2450

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT ALL + NULLIF ( + + 77, + + MAX( - 72 ) * - - COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL + NULLIF ( + + 77, + + MAX ( - 72 ) * - - COUNT ( * ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT ALL - CASE - 45 WHEN + AVG ( ALL - 3 ) * - + 77 - + 60 THEN 29 * 25 * - 42 * + SUM( + 3 ) WHEN + 10 * COUNT( * ) * - 40 + - 13 THEN 17 + 22 END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL - CASE - 45 WHEN + AVG ( ALL - 3 ) * - + 77 - + 60 THEN 29 * 25 * - 42 * + SUM ( + 3 ) WHEN + 10 * COUNT ( * ) * - 40 + - 13 THEN 17 + 22 END / COUNT ( * )
----
NULL

query I rowsort
SELECT + 10 * + - 63
----
-630

query I rowsort
SELECT - NULLIF ( + 86, 26 ) * + - 86 AS col2
----
7396

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5635
SELECT - MAX( + 36 ) * + 35 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT - MAX ( + 36 ) * + 35 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 13 * 6 AS col0
----
78

query II rowsort
SELECT ALL + 83 AS col0, 67
----
83
67

query I rowsort
SELECT + ( 99 ) * 88 * - 69
----
-601128

query II rowsort
SELECT ALL + - 10 AS col2, + 61 col2
----
-10
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5640
SELECT ALL + 75 col2, 44 - + 91 * - 33 + COUNT( * ) AS col2
----
75
3048

skipif mysql # not compatible
query II rowsort label-5640
SELECT ALL + 75 col2, 44 - + 91 * - 33 + COUNT ( * ) AS col2
----
75
3048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5641
SELECT + - 73 * - + CAST( - 41 AS SIGNED )
----
-2993

skipif mysql # not compatible
query I rowsort label-5641
SELECT + - 73 * - + CAST ( - 41 AS INTEGER )
----
-2993

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5643
SELECT DISTINCT - + 68 + - 91 + SUM( DISTINCT - + 97 ), + 43 AS col2
----
-256
43

skipif mysql # not compatible
query II rowsort label-5643
SELECT DISTINCT - + 68 + - 91 + SUM ( DISTINCT - + 97 ), + 43 AS col2
----
-256
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5644
SELECT + - 37 + - MAX( + - 58 ) DIV 83 * + 78 * - 49 * - + 69
----
-37

skipif mysql # not compatible
query I rowsort label-5644
SELECT + - 37 + - MAX ( + - 58 ) / 83 * + 78 * - 49 * - + 69
----
-37

query I rowsort
SELECT - - 73 + - 41 + + ( + + 57 ) + + 65 col1
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5646
SELECT + 60 AS col0, CAST( 88 AS SIGNED ) * - 97 - 45 + + 89
----
60
-8492

skipif mysql # not compatible
query II rowsort label-5646
SELECT + 60 AS col0, CAST ( 88 AS INTEGER ) * - 97 - 45 + + 89
----
60
-8492

query II rowsort
SELECT - 12 * - - 95 AS col0, 42 AS col1
----
-1140
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT ALL - + SUM( - 20 ) + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL - + SUM ( - 20 ) + + COUNT ( * )
----
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT NULLIF ( 78, COUNT( * ) + 38 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5650
SELECT NULLIF ( 78, COUNT ( * ) + 38 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT - SUM( ALL + 90 ) + + COUNT( * ) + - NULLIF ( - 5, 62 )
----
-84

skipif mysql # not compatible
query I rowsort label-5651
SELECT - SUM ( ALL + 90 ) + + COUNT ( * ) + - NULLIF ( - 5, 62 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5652
SELECT DISTINCT - CASE + 98 WHEN + + 66 THEN + + 1 * 47 * + + 26 WHEN + 66 - CAST( - - 14 AS SIGNED ) * + ( - - 84 ) THEN + 10 * + 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT - CASE + 98 WHEN + + 66 THEN + + 1 * 47 * + + 26 WHEN + 66 - CAST ( - - 14 AS INTEGER ) * + ( - - 84 ) THEN + 10 * + 26 END
----
NULL

query I rowsort
SELECT ALL - 91 + - - 82
----
-9

query I rowsort
SELECT ALL - 24 + + 80 * + 18 * - + 30 - 10
----
-43234

query I rowsort
SELECT DISTINCT + ( + 7 ) + 15 col0
----
22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5657
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) col2, 56 * + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + 98
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5657
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) col2, 56 * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + 98
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5658
SELECT - 59 * - - 28 * - + CASE - 1 WHEN - - CAST( NULL AS SIGNED ) * - 15 + - + 89 * - 99 THEN 14 + CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5658
SELECT - 59 * - - 28 * - + CASE - 1 WHEN - - CAST ( NULL AS INTEGER ) * - 15 + - + 89 * - 99 THEN 14 + CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT + CASE + + 25 WHEN - - 11 THEN + - 80 * - 3 / + - ( + 32 ) + - COUNT( * ) WHEN - - ( 67 ) THEN + 8 ELSE NULL END + 36 + + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT + CASE + + 25 WHEN - - 11 THEN + - 80 * - 3 / + - ( + 32 ) + - COUNT ( * ) WHEN - - ( 67 ) THEN + 8 ELSE NULL END + 36 + + 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT + 41 + + - ( COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-5660
SELECT + 41 + + - ( COUNT ( * ) )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5661
SELECT DISTINCT 1 DIV - 21 - - - 43 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT 1 / - 21 - - - 43 AS col0
----
-43

query I rowsort
SELECT ALL + ( + 20 ) col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT + CASE 35 WHEN + 28 THEN 40 + + 13 * COUNT( * ) WHEN 61 - + 45 * 90 * + COUNT( * ) THEN + + 85 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT + CASE 35 WHEN + 28 THEN 40 + + 13 * COUNT ( * ) WHEN 61 - + 45 * 90 * + COUNT ( * ) THEN + + 85 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5664
SELECT + COALESCE ( 34, - CAST( 73 AS SIGNED ), - 96 )
----
34

skipif mysql # not compatible
query I rowsort label-5664
SELECT + COALESCE ( 34, - CAST ( 73 AS INTEGER ), - 96 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT DISTINCT + 7 - 33 - - - ( + COUNT( - + 30 ) ) * 22 * - 28
----
590

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT + 7 - 33 - - - ( + COUNT ( - + 30 ) ) * 22 * - 28
----
590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5666
SELECT 62 * + - COUNT( ALL - + 5 ) * - - 94 * 69 AS col2, - COUNT( * ) / CAST( NULL AS SIGNED ) AS col0
----
-402132
NULL

skipif mysql # not compatible
query II rowsort label-5666
SELECT 62 * + - COUNT ( ALL - + 5 ) * - - 94 * 69 AS col2, - COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0
----
-402132
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT COUNT( ALL 58 ) * - - 11
----
11

skipif mysql # not compatible
query I rowsort label-5667
SELECT COUNT ( ALL 58 ) * - - 11
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5668
SELECT DISTINCT 99 * - COUNT( * ) AS col0, 12 DIV - 77 * + + 36 * - 33 * 76 * - - COUNT( * )
----
-99
0

skipif mysql # not compatible
query II rowsort label-5668
SELECT DISTINCT 99 * - COUNT ( * ) AS col0, 12 / - 77 * + + 36 * - 33 * 76 * - - COUNT ( * )
----
-99
0

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

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

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

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

query I rowsort
SELECT DISTINCT + 96 + + 97
----
193

query II rowsort
SELECT ALL 86 + + - 60, - 16 col2
----
26
-16

query I rowsort
SELECT ALL 30 * 67 * - 84
----
-168840

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT DISTINCT + COUNT( * ) + CASE + 93 WHEN + - 40 * + 30 THEN - COUNT( * ) END + - - AVG ( ALL + 83 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT + COUNT ( * ) + CASE + 93 WHEN + - 40 * + 30 THEN - COUNT ( * ) END + - - AVG ( ALL + 83 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT DISTINCT + ( - + 27 ) DIV + 99 * + 3 + - 11
----
-11

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT + ( - + 27 ) / + 99 * + 3 + - 11
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT ALL + COUNT( * ) * - + 92 + 25 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL + COUNT ( * ) * - + 92 + 25 AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT MIN( DISTINCT - + 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5679
SELECT MIN ( DISTINCT - + 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT ALL + 20 + - 56 * + 32 + - COUNT( * )
----
-1773

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL + 20 + - 56 * + 32 + - COUNT ( * )
----
-1773

query I rowsort
SELECT ALL - 39 - 4 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT 59 * - COUNT( + 32 ) + + MIN( + 53 ) + 18
----
12

skipif mysql # not compatible
query I rowsort label-5682
SELECT 59 * - COUNT ( + 32 ) + + MIN ( + 53 ) + 18
----
12

query I rowsort
SELECT 50 * - 36 AS col2
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT 37 - + 31 - + MIN( + + 9 ) * + 42 col0
----
-372

skipif mysql # not compatible
query I rowsort label-5684
SELECT 37 - + 31 - + MIN ( + + 9 ) * + 42 col0
----
-372

query II rowsort
SELECT 31, + ( 0 ) AS col0
----
31
0

query II rowsort
SELECT - 67, 38 AS col0
----
-67
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5687
SELECT DISTINCT + 11 DIV 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT + 11 / 53 AS col2
----
0

query I rowsort
SELECT 65 * 8 AS col2
----
520

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5689
SELECT ALL + 93 * + COUNT( + 27 ) col2, + CAST( NULL AS DECIMAL ) * 52 col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-5689
SELECT ALL + 93 * + COUNT ( + 27 ) col2, + CAST ( NULL AS REAL ) * 52 col1
----
93
NULL

query II rowsort
SELECT + 36 AS col1, 61 AS col2
----
36
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ALL + 94 * COUNT( * ) col2
----
94

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL + 94 * COUNT ( * ) col2
----
94

query I rowsort
SELECT ALL - 30 + 38 col2
----
8

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

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

query I rowsort
SELECT DISTINCT - 49 + + 70 AS col2
----
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT DISTINCT - + 89 + - COUNT( * ) * - - 38 + ( + - 98 )
----
-225

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT - + 89 + - COUNT ( * ) * - - 38 + ( + - 98 )
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT DISTINCT MAX( ALL + 60 ) + 76
----
136

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT MAX ( ALL + 60 ) + 76
----
136

query II rowsort
SELECT DISTINCT - + 96, 2 AS col1
----
-96
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL - - COALESCE ( + COUNT( * ), + - 65 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL - - COALESCE ( + COUNT ( * ), + - 65 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT - CASE 56 WHEN - - 98 THEN NULL ELSE + 96 END * + 32 * - + COUNT( 11 ) + 59
----
3131

skipif mysql # not compatible
query I rowsort label-5700
SELECT - CASE 56 WHEN - - 98 THEN NULL ELSE + 96 END * + 32 * - + COUNT ( 11 ) + 59
----
3131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5701
SELECT DISTINCT + 84 + + - 19 + COUNT( * ) DIV - 80 + - - 74
----
139

skipif mysql # not compatible
query I rowsort label-5701
SELECT DISTINCT + 84 + + - 19 + COUNT ( * ) / - 80 + - - 74
----
139

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT 73 * + 29 * + COALESCE ( + - COUNT( * ), + - COUNT( * ) * MAX( + 25 ) * + + 76 + - + CASE + 73 WHEN 45 THEN NULL WHEN - CASE - 60 WHEN + - COUNT( * ) + 17 * - - 71 THEN - COUNT( * ) - + + 29 + 68 END + MIN( + 62 ) THEN 13 + 49 ELSE 48 * + 46 END ) AS col0
----
-2117

skipif mysql # not compatible
query I rowsort label-5704
SELECT 73 * + 29 * + COALESCE ( + - COUNT ( * ), + - COUNT ( * ) * MAX ( + 25 ) * + + 76 + - + CASE + 73 WHEN 45 THEN NULL WHEN - CASE - 60 WHEN + - COUNT ( * ) + 17 * - - 71 THEN - COUNT ( * ) - + + 29 + 68 END + MIN ( + 62 ) THEN 13 + 49 ELSE 48 * + 46 END ) AS col0
----
-2117

onlyif mysql # aggregate syntax: 
query II rowsort label-5705
SELECT ALL - COUNT( * ) * COUNT( * ) + + 91 col0, 62 AS col0
----
90
62

skipif mysql # not compatible
query II rowsort label-5705
SELECT ALL - COUNT ( * ) * COUNT ( * ) + + 91 col0, 62 AS col0
----
90
62

query I rowsort
SELECT 4 + 4 + 83 * - 52 AS col2
----
-4308

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT DISTINCT + - 9 - - 57 + - - NULLIF ( - - 4, + 41 * + 21 * + - COUNT( * ) * 15 )
----
52

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + - 9 - - 57 + - - NULLIF ( - - 4, + 41 * + 21 * + - COUNT ( * ) * 15 )
----
52

query II rowsort
SELECT 13 col2, NULLIF ( 78, + + 58 + ( + 82 ) ) AS col2
----
13
78

query I rowsort
SELECT - CASE + + 76 WHEN + 85 THEN + 56 END * 74 * - 7 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5710
SELECT - CAST( - 4 AS SIGNED ) * + 7 + + - 18 + 31 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5710
SELECT - CAST ( - 4 AS INTEGER ) * + 7 + + - 18 + 31 AS col1
----
41

query I rowsort
SELECT - CASE - 26 WHEN - 78 THEN + 45 - - 93 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL 48 / + 76 * + + COUNT ( * )
----
0

query I rowsort
SELECT 46 + + 28 AS col1
----
74

query I rowsort
SELECT CASE + + 7 WHEN 99 * + + 30 THEN + + 53 WHEN 21 THEN - + ( - 0 ) - + 70 / + 3 END + - + 28 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5716
SELECT + 6 + CAST( - 55 AS SIGNED ) - + COALESCE ( - - 85, + MIN( DISTINCT + 94 ) * + 27 - + 80 * - - 77 + COUNT( * ) - 69 * + 99 * + + 11, + - 23 ) + + 64
----
-70

skipif mysql # not compatible
query I rowsort label-5716
SELECT + 6 + CAST ( - 55 AS INTEGER ) - + COALESCE ( - - 85, + MIN ( DISTINCT + 94 ) * + 27 - + 80 * - - 77 + COUNT ( * ) - 69 * + 99 * + + 11, + - 23 ) + + 64
----
-70

query I rowsort
SELECT + 23 + + 83
----
106

query I rowsort
SELECT DISTINCT 23 + + 68 + - 85
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5719
SELECT + COALESCE ( - ( - - 11 ), + 20 DIV - + COALESCE ( + + 87, + 8 * + - 1 ) + - - ( 78 ), + + 11, - + COUNT( * ) ) * - + NULLIF ( + 62, + + CAST( - COUNT( * ) AS DECIMAL ) ) * - 77
----
-52514

skipif mysql # not compatible
query I rowsort label-5719
SELECT + COALESCE ( - ( - - 11 ), + 20 / - + COALESCE ( + + 87, + 8 * + - 1 ) + - - ( 78 ), + + 11, - + COUNT ( * ) ) * - + NULLIF ( + 62, + + CAST ( - COUNT ( * ) AS REAL ) ) * - 77
----
-52514

query I rowsort
SELECT - 52 + + - 68 AS col2
----
-120

query I rowsort
SELECT ALL + COALESCE ( - 85, 3 + + - 36, + 70 )
----
-85

query I rowsort
SELECT CASE + + ( 2 ) WHEN + 74 THEN + ( + + 90 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5723
SELECT ALL 17 * 0 DIV - - 65 + - 43 * + 28
----
-1204

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL 17 * 0 / - - 65 + - 43 * + 28
----
-1204

onlyif mysql # DIV for integer division: 
query I rowsort label-5724
SELECT ALL + 91 DIV - - ( 51 ) + - 20 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL + 91 / - - ( 51 ) + - 20 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ALL - - 39 * - + COUNT( * ) + - 20 * 9
----
-219

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL - - 39 * - + COUNT ( * ) + - 20 * 9
----
-219

query II rowsort
SELECT - + 36 * - + 48, + 0 * - 55 AS col2
----
1728
0

query I rowsort
SELECT DISTINCT - 97 * + 5
----
-485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5728
SELECT 58 DIV - - 66 * - 76 + + NULLIF ( 1, - 40 * COUNT( * ) + 49 + - 38 * - 47 - + 14 )
----
1

skipif mysql # not compatible
query I rowsort label-5728
SELECT 58 / - - 66 * - 76 + + NULLIF ( 1, - 40 * COUNT ( * ) + 49 + - 38 * - 47 - + 14 )
----
1

query I rowsort
SELECT DISTINCT + 62 * - 4 col0
----
-248

query I rowsort
SELECT ALL + 79 * + 71 * - + 14 - - 31
----
-78495

onlyif mysql # aggregate syntax: 
query II rowsort label-5731
SELECT - 58 * 73, COUNT( * ) + + - 17 AS col2
----
-4234
-16

skipif mysql # not compatible
query II rowsort label-5731
SELECT - 58 * 73, COUNT ( * ) + + - 17 AS col2
----
-4234
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT - 90 * - COUNT( * ) + - 73 col1
----
17

skipif mysql # not compatible
query I rowsort label-5732
SELECT - 90 * - COUNT ( * ) + - 73 col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT DISTINCT - 93 * - 73 - + NULLIF ( - 14, ( - MIN( + + 68 ) ) ) AS col1
----
6803

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT - 93 * - 73 - + NULLIF ( - 14, ( - MIN ( + + 68 ) ) ) AS col1
----
6803

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5734
SELECT + - CAST( NULL AS SIGNED ) + + 2 AS col0, 48 + + 67
----
NULL
115

skipif mysql # not compatible
query II rowsort label-5734
SELECT + - CAST ( NULL AS INTEGER ) + + 2 AS col0, 48 + + 67
----
NULL
115

query I rowsort
SELECT ALL - COALESCE ( 9, - 87 ) AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5736
SELECT + ( + - CASE - 82 WHEN 63 + + - ( + NULLIF ( + - COUNT( + + 98 ), + ( COALESCE ( + 32, - - 6 * 57 ) ) ) ) / - SUM( ALL 65 ) THEN 81 WHEN 90 + 23 * + - 14 THEN - COALESCE ( - MIN( ALL 83 ), - 90 / 13, CAST( - 77 AS DECIMAL ) * 41 ) END ) * + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT + ( + - CASE - 82 WHEN 63 + + - ( + NULLIF ( + - COUNT ( + + 98 ), + ( COALESCE ( + 32, - - 6 * 57 ) ) ) ) / - SUM ( ALL 65 ) THEN 81 WHEN 90 + 23 * + - 14 THEN - COALESCE ( - MIN ( ALL 83 ), - 90 / 13, CAST ( - 77 AS REAL ) * 41 ) END ) * + 63 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 89 * 6
----
534

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT - MIN( ALL + ( 56 ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-5738
SELECT - MIN ( ALL + ( 56 ) ) AS col0
----
-56

query I rowsort
SELECT ALL ( - - 29 ) AS col2
----
29

query I rowsort
SELECT + 30 * - 76
----
-2280

query I rowsort
SELECT ALL 42 * + 11 AS col2
----
462

query II rowsort
SELECT DISTINCT 17, 39 * - 57 AS col1
----
17
-2223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5743
SELECT + 82 DIV - SUM( + - 76 )
----
1

skipif mysql # not compatible
query I rowsort label-5743
SELECT + 82 / - SUM ( + - 76 )
----
1

query I rowsort
SELECT ALL 88 + 4
----
92

query I rowsort
SELECT - 94 * + 19
----
-1786

query II rowsort
SELECT 45 AS col0, 96 AS col1
----
45
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5747
SELECT ALL 82 + + CASE - 86 WHEN - 85 + + 90 + 57 * + - CAST( - + 72 AS SIGNED ) THEN + - 4 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL 82 + + CASE - 86 WHEN - 85 + + 90 + 57 * + - CAST ( - + 72 AS INTEGER ) THEN + - 4 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT DISTINCT 99 + + 85 + + ( ( - COUNT( + 11 ) ) )
----
183

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT 99 + + 85 + + ( ( - COUNT ( + 11 ) ) )
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5749
SELECT DISTINCT 76 / - CASE - CASE + CASE 39 WHEN + CAST( NULL AS SIGNED ) * - + CASE WHEN ( NOT NULL IS NOT NULL ) THEN 90 ELSE + 93 * + COALESCE ( COUNT( ALL + + 64 ), + - COUNT( * ) + + CASE + 19 WHEN 36 THEN + 56 * COUNT( * ) WHEN 83 * + COUNT( * ) THEN NULL ELSE ( - 93 ) END ) + + 4 * - 75 END THEN 44 * 29 END WHEN 48 THEN 38 + 70 ELSE - 43 END WHEN COUNT( * ) + 51 * - ( ( 57 ) ) THEN NULL WHEN 49 + + CAST( NULL AS SIGNED ) THEN 31 / CASE COUNT( * ) WHEN + NULLIF ( - 56, - 26 + + 0 ) THEN - 18 + + 12 WHEN AVG ( ALL 77 ) * 65 + - 88 THEN 15 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT 76 / - CASE - CASE + CASE 39 WHEN + CAST ( NULL AS INTEGER ) * - + CASE WHEN ( NOT NULL IS NOT NULL ) THEN 90 ELSE + 93 * + COALESCE ( COUNT ( ALL + + 64 ), + - COUNT ( * ) + + CASE + 19 WHEN 36 THEN + 56 * COUNT ( * ) WHEN 83 * + COUNT ( * ) THEN NULL ELSE ( - 93 ) END ) + + 4 * - 75 END THEN 44 * 29 END WHEN 48 THEN 38 + 70 ELSE - 43 END WHEN COUNT ( * ) + 51 * - ( ( 57 ) ) THEN NULL WHEN 49 + + CAST ( NULL AS INTEGER ) THEN 31 / CASE COUNT ( * ) WHEN + NULLIF ( - 56, - 26 + + 0 ) THEN - 18 + + 12 WHEN AVG ( ALL 77 ) * 65 + - 88 THEN 15 END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT ALL COUNT( * ) + ( COALESCE ( - 15, - 19, + 94 * + + 82 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL COUNT ( * ) + ( COALESCE ( - 15, - 19, + 94 * + + 82 ) )
----
-14

query I rowsort
SELECT ALL 46 + 10 col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5752
SELECT + COUNT( * ) / CASE + 5 WHEN + CAST( NULL AS SIGNED ) THEN - 96 * + 51 * - 88 - + 6 END, 63 col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-5752
SELECT + COUNT ( * ) / CASE + 5 WHEN + CAST ( NULL AS INTEGER ) THEN - 96 * + 51 * - 88 - + 6 END, 63 col2
----
NULL
63

query I rowsort
SELECT ALL 28 + + + 24 AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5754
SELECT DISTINCT ( - 52 ) * 8 + COUNT( * ) * + + 53 / - CAST( NULL AS SIGNED ) * + - NULLIF ( - COUNT( * ), + 90 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT ( - 52 ) * 8 + COUNT ( * ) * + + 53 / - CAST ( NULL AS INTEGER ) * + - NULLIF ( - COUNT ( * ), + 90 ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5755
SELECT DISTINCT - + 26 * - - CASE + - COUNT( * ) WHEN - 35 THEN NULL WHEN 92 THEN + 26 WHEN + COALESCE ( + - 42, + 32 ) - + CASE - - CAST( NULL AS SIGNED ) WHEN + - 31 * + 73 + MAX( - - 27 ) THEN - ( + COALESCE ( 64, COALESCE ( - 11, + COUNT( * ) - - 24 * + 58, + 81 * 3 ) * + 56 + - COUNT( * ) ) ) END THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT - + 26 * - - CASE + - COUNT ( * ) WHEN - 35 THEN NULL WHEN 92 THEN + 26 WHEN + COALESCE ( + - 42, + 32 ) - + CASE - - CAST ( NULL AS INTEGER ) WHEN + - 31 * + 73 + MAX ( - - 27 ) THEN - ( + COALESCE ( 64, COALESCE ( - 11, + COUNT ( * ) - - 24 * + 58, + 81 * 3 ) * + 56 + - COUNT ( * ) ) ) END THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT + - CASE - 36 WHEN + 37 THEN - + COUNT( * ) ELSE NULL END + 9 / - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT + - CASE - 36 WHEN + 37 THEN - + COUNT ( * ) ELSE NULL END + 9 / - 63 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5757
SELECT - + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * COALESCE ( 17, - + 55, NULLIF ( - - 23, - + 71 ) * + + CAST( - + MIN( - 36 ) AS SIGNED ) / + COUNT( * ) + + - 58 - - 72 ) / MAX( ALL - 47 ) + + ( - + COUNT( + 25 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT - + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * COALESCE ( 17, - + 55, NULLIF ( - - 23, - + 71 ) * + + CAST ( - + MIN ( - 36 ) AS INTEGER ) / + COUNT ( * ) + + - 58 - - 72 ) / MAX ( ALL - 47 ) + + ( - + COUNT ( + 25 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT ALL + NULLIF ( - 81, + 9 * - - 4 / - 48 ) / + 44 * + 48 - + 82 + - + 24 - + - 3 + - - 2 * + 74 + 3 * + + CASE + 66 WHEN 72 * + 77 * + 82 + + 94 THEN COUNT( * ) * 13 WHEN + 87 + 45 THEN 6 WHEN 84 THEN + 26 + + 51 ELSE NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL + NULLIF ( - 81, + 9 * - - 4 / - 48 ) / + 44 * + 48 - + 82 + - + 24 - + - 3 + - - 2 * + 74 + 3 * + + CASE + 66 WHEN 72 * + 77 * + 82 + + 94 THEN COUNT ( * ) * 13 WHEN + 87 + 45 THEN 6 WHEN 84 THEN + 26 + + 51 ELSE NULL END * + COUNT ( * )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5760
SELECT ALL + - COALESCE ( - 3, + 40 - + 7 + - 89 + + 69, + - CAST( NULL AS SIGNED ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL + - COALESCE ( - 3, + 40 - + 7 + - 89 + + 69, + - CAST ( NULL AS INTEGER ) ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT ALL 76 * COUNT( * ) + + MAX( ALL - 79 ) * - SUM( ( - 92 ) )
----
-7192

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL 76 * COUNT ( * ) + + MAX ( ALL - 79 ) * - SUM ( ( - 92 ) )
----
-7192

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5763
SELECT + 20 + - 91 + + ( - - ( CAST( NULL AS SIGNED ) ) ) * - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5763
SELECT + 20 + - 91 + + ( - - ( CAST ( NULL AS INTEGER ) ) ) * - 13 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5764
SELECT ALL + CASE + 60 WHEN - 35 THEN + 54 + + 18 ELSE COUNT( + CAST( NULL AS SIGNED ) ) END
----
0

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL + CASE + 60 WHEN - 35 THEN + 54 + + 18 ELSE COUNT ( + CAST ( NULL AS INTEGER ) ) END
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5765
SELECT - - NULLIF ( + 67, COUNT( * ) - + ( 70 ) ) + - + COUNT( * ) - 90 * + 37, + 56 - + 69 AS col2
----
-3264
-13

skipif mysql # not compatible
query II rowsort label-5765
SELECT - - NULLIF ( + 67, COUNT ( * ) - + ( 70 ) ) + - + COUNT ( * ) - 90 * + 37, + 56 - + 69 AS col2
----
-3264
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5766
SELECT - 92 * + 39 * + + CAST( NULL AS SIGNED ) + - NULLIF ( 65, - MIN( + - 56 ) ) + - 55 + 86 * - MAX( + 46 ) * - 87 + - 91 * - + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5766
SELECT - 92 * + 39 * + + CAST ( NULL AS INTEGER ) + - NULLIF ( 65, - MIN ( + - 56 ) ) + - 55 + 86 * - MAX ( + 46 ) * - 87 + - 91 * - + 5 AS col1
----
NULL

query I rowsort
SELECT ALL + ( + 58 ) * + 6
----
348

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT ALL + 6 * NULLIF ( - 58, + 48 * - - COUNT( * ) )
----
-348

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL + 6 * NULLIF ( - 58, + 48 * - - COUNT ( * ) )
----
-348

query I rowsort
SELECT DISTINCT - ( - + 43 ) * + 13 AS col0
----
559

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT 66 * + CASE + 30 WHEN - 46 * MIN( DISTINCT + + 43 ) THEN 53 + 19 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5770
SELECT 66 * + CASE + 30 WHEN - 46 * MIN ( DISTINCT + + 43 ) THEN 53 + 19 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 79 + - 41 AS col2
----
38

query II rowsort
SELECT 36 col0, + 12 AS col0
----
36
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5773
SELECT ALL + 62 + - 27 + 59 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL + 62 + - 27 + 59 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 56 * + 35
----
1960

query I rowsort
SELECT 91 + + 40 AS col2
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5776
SELECT 62 + 95 * - CAST( + COALESCE ( + + ( + + 42 ), 33 ) AS SIGNED ) * CAST( NULL AS SIGNED ) + COUNT( * ), + SUM( DISTINCT + + 77 ) * + 84 * - + ( - - COUNT( * ) ) AS col0
----
NULL
-6468

skipif mysql # not compatible
query II rowsort label-5776
SELECT 62 + 95 * - CAST ( + COALESCE ( + + ( + + 42 ), 33 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) + COUNT ( * ), + SUM ( DISTINCT + + 77 ) * + 84 * - + ( - - COUNT ( * ) ) AS col0
----
NULL
-6468

query II rowsort
SELECT - 74, - 46 AS col0
----
-74
-46

query I rowsort
SELECT ALL + 35 + 47 AS col1
----
82

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

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

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

query I rowsort
SELECT 81 + + 71
----
152

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5783
SELECT ALL COALESCE ( - - 68, - COALESCE ( + COUNT( * ), - - 57 + ( - 24 ), + - 33 ), - - 58 * + SUM( DISTINCT + + 56 ) ) + MIN( + + 45 ) + - 42, COUNT( * ) * - + 60 AS col2
----
71
-60

skipif mysql # not compatible
query II rowsort label-5783
SELECT ALL COALESCE ( - - 68, - COALESCE ( + COUNT ( * ), - - 57 + ( - 24 ), + - 33 ), - - 58 * + SUM ( DISTINCT + + 56 ) ) + MIN ( + + 45 ) + - 42, COUNT ( * ) * - + 60 AS col2
----
71
-60

query I rowsort
SELECT ALL 87 * - 51
----
-4437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5785
SELECT DISTINCT 89 AS col0, SUM( ALL + CAST( NULL AS SIGNED ) )
----
89
NULL

skipif mysql # not compatible
query II rowsort label-5785
SELECT DISTINCT 89 AS col0, SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
89
NULL

query I rowsort
SELECT DISTINCT + 17 + + + NULLIF ( + 82, + 83 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5787
SELECT - 95 col2, MAX( + 23 ) * + 69 AS col1
----
-95
1587

skipif mysql # not compatible
query II rowsort label-5787
SELECT - 95 col2, MAX ( + 23 ) * + 69 AS col1
----
-95
1587

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT - + MIN( DISTINCT 51 ) col2
----
-51

skipif mysql # not compatible
query I rowsort label-5788
SELECT - + MIN ( DISTINCT 51 ) col2
----
-51

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

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

query I rowsort
SELECT 33 * - + 71 * - NULLIF ( + 22, - - 78 )
----
51546

query II rowsort
SELECT - 56, + ( + 56 ) * + + 0 + - - 66 + + - 84 * - - 92 AS col0
----
-56
-7662

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT SUM( + ( 29 ) ) * - 25
----
-725

skipif mysql # not compatible
query I rowsort label-5792
SELECT SUM ( + ( 29 ) ) * - 25
----
-725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5793
SELECT ALL 21 DIV - + SUM( + 66 ) + - 99 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL 21 / - + SUM ( + 66 ) + - 99 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT NULLIF ( + 27, 54 + + COUNT( * ) - - SUM( DISTINCT + + 88 ) * - 27 + + 4 * - - 77 * 52 / - - 99 * 67 ) - + MIN( - - 56 )
----
-29

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT NULLIF ( + 27, 54 + + COUNT ( * ) - - SUM ( DISTINCT + + 88 ) * - 27 + + 4 * - - 77 * 52 / - - 99 * 67 ) - + MIN ( - - 56 )
----
-29

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5796
SELECT DISTINCT 69 DIV - CAST( - + 68 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT 69 / - CAST ( - + 68 AS INTEGER )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT DISTINCT - - CASE 65 WHEN 22 THEN NULL ELSE - COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5798
SELECT DISTINCT - - CASE 65 WHEN 22 THEN NULL ELSE - COUNT ( * ) END AS col0
----
-1

query I rowsort
SELECT ALL 37 * + + 89 * + 4
----
13172

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5801
SELECT NULLIF ( - + COUNT( * ), 75 ) - - 39 * - COUNT( * ) + 60, - 76 AS col1
----
20
-76

skipif mysql # not compatible
query II rowsort label-5801
SELECT NULLIF ( - + COUNT ( * ), 75 ) - - 39 * - COUNT ( * ) + 60, - 76 AS col1
----
20
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-5802
SELECT ALL - 7 AS col1, MIN( + 22 ) AS col1
----
-7
22

skipif mysql # not compatible
query II rowsort label-5802
SELECT ALL - 7 AS col1, MIN ( + 22 ) AS col1
----
-7
22

query II rowsort
SELECT - 31 AS col1, - 49 AS col2
----
-31
-49

query I rowsort
SELECT ALL + 66 + + - ( + - 59 ) AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT 66 * 44 * COUNT( * ) + 24 + 11 - + 92
----
2847

skipif mysql # not compatible
query I rowsort label-5805
SELECT 66 * 44 * COUNT ( * ) + 24 + 11 - + 92
----
2847

onlyif mysql # DIV for integer division: 
query II rowsort label-5806
SELECT ALL 65 DIV - - 70 AS col2, + 52 col1
----
0
52

skipif mysql # not compatible
query II rowsort label-5806
SELECT ALL 65 / - - 70 AS col2, + 52 col1
----
0
52

query I rowsort
SELECT DISTINCT + 57 * + - 99
----
-5643

query I rowsort
SELECT ALL - 3 + 88 * - 5 * - - 83 AS col1
----
-36523

query I rowsort
SELECT DISTINCT + 48 + 74 + + 60
----
182

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5810
SELECT 75 * CAST( NULL AS DECIMAL ) AS col2, COUNT( * ) * CASE + ( + ( - - 66 ) ) WHEN COALESCE ( + - 66, + 91 ) THEN MIN( ALL + 41 ) * - - 32 * - + 6 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5810
SELECT 75 * CAST ( NULL AS REAL ) AS col2, COUNT ( * ) * CASE + ( + ( - - 66 ) ) WHEN COALESCE ( + - 66, + 91 ) THEN MIN ( ALL + 41 ) * - - 32 * - + 6 END
----
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL 29 / + + 1
----
29

query I rowsort
SELECT ALL 23 + 76 col0
----
99

query I rowsort
SELECT ALL + 4 - - 26
----
30

query II rowsort
SELECT 80 + - 77 AS col0, 95
----
3
95

query I rowsort
SELECT 16 * - + 62 * - 1
----
992

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT 87 * - MAX( DISTINCT 85 ) AS col0
----
-7395

skipif mysql # not compatible
query I rowsort label-5816
SELECT 87 * - MAX ( DISTINCT 85 ) AS col0
----
-7395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5817
SELECT COUNT( * ) - - CAST( + 62 AS SIGNED ) * CASE + COUNT( * ) WHEN - + 39 THEN + 66 * + 17 + + 48 ELSE NULL END + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT COUNT ( * ) - - CAST ( + 62 AS INTEGER ) * CASE + COUNT ( * ) WHEN - + 39 THEN + 66 * + 17 + + 48 ELSE NULL END + 10
----
NULL

query I rowsort
SELECT + COALESCE ( + 62, - 57 ) * 45 AS col0
----
2790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5819
SELECT CAST( CASE - 11 WHEN MAX( + 40 ) THEN + 78 * 13 WHEN - 97 * + - 46 THEN NULL ELSE 41 * - 10 END AS SIGNED ) - ( - 17 ) - 89 AS col1
----
-482

skipif mysql # not compatible
query I rowsort label-5819
SELECT CAST ( CASE - 11 WHEN MAX ( + 40 ) THEN + 78 * 13 WHEN - 97 * + - 46 THEN NULL ELSE 41 * - 10 END AS INTEGER ) - ( - 17 ) - 89 AS col1
----
-482

onlyif mysql # DIV for integer division: 
query I rowsort label-5820
SELECT ALL + + 0 DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL + + 0 / + 39
----
0

query I rowsort
SELECT - ( + 19 ) * 79 * + 10 col0
----
-15010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5822
SELECT + - 53 DIV + + COUNT( * ) + - NULLIF ( + + 21, - 59 ) - - - ( 29 )
----
-103

skipif mysql # not compatible
query I rowsort label-5822
SELECT + - 53 / + + COUNT ( * ) + - NULLIF ( + + 21, - 59 ) - - - ( 29 )
----
-103

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5824
SELECT 94 * + CAST( CAST( - - MAX( DISTINCT 72 ) AS SIGNED ) AS SIGNED )
----
6768

skipif mysql # not compatible
query I rowsort label-5824
SELECT 94 * + CAST ( CAST ( - - MAX ( DISTINCT 72 ) AS INTEGER ) AS INTEGER )
----
6768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5825
SELECT + CASE - 74 WHEN - MAX( - 77 ) * + CAST( NULL AS DECIMAL ) + + COUNT( + - 74 ) * - 99 * + - CAST( + 54 AS SIGNED ) * 57 + + 55 THEN - - 8 * 91 + + + 91 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5825
SELECT + CASE - 74 WHEN - MAX ( - 77 ) * + CAST ( NULL AS REAL ) + + COUNT ( + - 74 ) * - 99 * + - CAST ( + 54 AS INTEGER ) * 57 + + 55 THEN - - 8 * 91 + + + 91 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5826
SELECT ALL - NULLIF ( - ( 59 ), 86 * COUNT( * ) ) * + - NULLIF ( - 95, - - 50 - COUNT( * ) + + + 30 ) / - COUNT( * ) * + 83 + + 21 + - - 12 * + - ( + - ( + + 2 ) ) * + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - - 22 + - - 7 - - 50 * SUM( ALL + 89 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL - NULLIF ( - ( 59 ), 86 * COUNT ( * ) ) * + - NULLIF ( - 95, - - 50 - COUNT ( * ) + + + 30 ) / - COUNT ( * ) * + 83 + + 21 + - - 12 * + - ( + - ( + + 2 ) ) * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 22 + - - 7 - - 50 * SUM ( ALL + 89 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 81 * + 24 + - 34 * - 65 * ( + 85 ) AS col2
----
185906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5828
SELECT DISTINCT - - 53 * - + 1 * - 0 * + - COUNT( * ) + + 58 + + 93 * - 88 - + CASE - 24 WHEN + 23 THEN - - 9 DIV + 13 WHEN - 89 THEN + + 91 ELSE - + COUNT( * ) * + + ( - 26 ) * - - COALESCE ( - 32, + + 50 * - COALESCE ( + 29, MIN( - 21 ) + 25 ) DIV - COUNT( * ) + + ( + COUNT( ALL + 0 ) ) DIV 91, + CAST( 16 AS SIGNED ) * - ( - 72 ) - + 21 ) + 93 - ( 87 ) END AS col1
----
-7300

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT - - 53 * - + 1 * - 0 * + - COUNT ( * ) + + 58 + + 93 * - 88 - + CASE - 24 WHEN + 23 THEN - - 9 / + 13 WHEN - 89 THEN + + 91 ELSE - + COUNT ( * ) * + + ( - 26 ) * - - COALESCE ( - 32, + + 50 * - COALESCE ( + 29, MIN ( - 21 ) + 25 ) / - COUNT ( * ) + + ( + COUNT ( ALL + 0 ) ) / 91, + CAST ( 16 AS INTEGER ) * - ( - 72 ) - + 21 ) + 93 - ( 87 ) END AS col1
----
-7300

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT + NULLIF ( + 8, - 28 * + - 16 ) + 70 * + 63 * - + SUM( - 77 ) AS col0, 51 - - - 97 AS col0
----
339578
-46

skipif mysql # not compatible
query II rowsort label-5829
SELECT + NULLIF ( + 8, - 28 * + - 16 ) + 70 * + 63 * - + SUM ( - 77 ) AS col0, 51 - - - 97 AS col0
----
339578
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5830
SELECT + 14 * - COALESCE ( + 47, - 72, 98 * - + 75 + 62 + 82 DIV MAX( + 75 ) ) + - - 75 + + 7, + 66 col0
----
-576
66

skipif mysql # not compatible
query II rowsort label-5830
SELECT + 14 * - COALESCE ( + 47, - 72, 98 * - + 75 + 62 + 82 / MAX ( + 75 ) ) + - - 75 + + 7, + 66 col0
----
-576
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5831
SELECT ALL - + CAST( - - 47 AS SIGNED ) * - COALESCE ( + 4, + 45 ) + + 26 * - 7 + - - 49 * - 62 AS col2
----
-3032

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL - + CAST ( - - 47 AS INTEGER ) * - COALESCE ( + 4, + 45 ) + + 26 * - 7 + - - 49 * - 62 AS col2
----
-3032

query II rowsort
SELECT ALL 46 * + + 38 + 32, 20 * - - 33 AS col2
----
1780
660

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT ALL ( 97 ) * ( - 21 ) + - - SUM( - 72 ) * + + 31 col1
----
-4269

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL ( 97 ) * ( - 21 ) + - - SUM ( - 72 ) * + + 31 col1
----
-4269

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT + CASE - - 0 WHEN + 97 THEN + - ( - 49 ) WHEN 58 * + - AVG ( - 79 ) THEN - + 82 * + ( + MIN( ALL 67 ) ) + - 40 + + MAX( DISTINCT 56 ) * + 47 / NULLIF ( + MIN( DISTINCT - 90 ), + - 38 * - - ( - + 80 ) * + ( MAX( ALL - 41 ) ) * 58 - - NULLIF ( + 15, 48 ) * 23 ) - 25 * SUM( 19 ) ELSE - MAX( 69 ) END
----
-69

skipif mysql # not compatible
query I rowsort label-5835
SELECT + CASE - - 0 WHEN + 97 THEN + - ( - 49 ) WHEN 58 * + - AVG ( - 79 ) THEN - + 82 * + ( + MIN ( ALL 67 ) ) + - 40 + + MAX ( DISTINCT 56 ) * + 47 / NULLIF ( + MIN ( DISTINCT - 90 ), + - 38 * - - ( - + 80 ) * + ( MAX ( ALL - 41 ) ) * 58 - - NULLIF ( + 15, 48 ) * 23 ) - 25 * SUM ( 19 ) ELSE - MAX ( 69 ) END
----
-69

query I rowsort
SELECT ALL 59 * + + 84 * - 72 AS col2
----
-356832

query II rowsort
SELECT ALL + 10, - 97 AS col0
----
10
-97

query I rowsort
SELECT + ( - 16 ) * - 71
----
1136

query I rowsort
SELECT ALL 23 * - 39 AS col0
----
-897

query I rowsort
SELECT DISTINCT 82 - + - 46
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT MAX( - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-5841
SELECT MAX ( - 49 )
----
-49

query I rowsort
SELECT + 11 - - 23 + + + 24 * - - 5 AS col1
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT + 70 * - + 43 * COUNT( * )
----
-3010

skipif mysql # not compatible
query I rowsort label-5843
SELECT + 70 * - + 43 * COUNT ( * )
----
-3010

query I rowsort
SELECT - 63 + + 42 - + 14 + + + 11 + - 16 * - 52
----
808

query I rowsort
SELECT + 34 * + + 38 AS col0
----
1292

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5847
SELECT ALL + COUNT( * ) * + + 27 * 66, 26 + + - 57 AS col2
----
1782
-31

skipif mysql # not compatible
query II rowsort label-5847
SELECT ALL + COUNT ( * ) * + + 27 * 66, 26 + + - 57 AS col2
----
1782
-31

query I rowsort
SELECT + 51 + - 71 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT - 73 + - - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-5849
SELECT - 73 + - - COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5850
SELECT ALL 43 * SUM( ALL + 43 ) DIV - 72
----
-25

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL 43 * SUM ( ALL + 43 ) / - 72
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT DISTINCT - COUNT( ALL + + 16 ) * - 11 col0
----
11

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT - COUNT ( ALL + + 16 ) * - 11 col0
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT - - 76 + + ( - MIN( 19 ) ) + + ( - + COUNT( - 5 ) ) * 95 + - CASE + + 20 WHEN + 80 THEN + 46 WHEN + COALESCE ( - COUNT( * ), + 25 + + - 19 / - 7 + - ( + 29 ) ) THEN ( 58 ) * 0 - - 39 END * CASE - 52 WHEN + 9 + + 52 THEN - 54 + 89 ELSE NULL END / 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5853
SELECT - - 76 + + ( - MIN ( 19 ) ) + + ( - + COUNT ( - 5 ) ) * 95 + - CASE + + 20 WHEN + 80 THEN + 46 WHEN + COALESCE ( - COUNT ( * ), + 25 + + - 19 / - 7 + - ( + 29 ) ) THEN ( 58 ) * 0 - - 39 END * CASE - 52 WHEN + 9 + + 52 THEN - 54 + 89 ELSE NULL END / 1 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5854
SELECT - + 6 * - COUNT( * ) DIV COALESCE ( COUNT( * ), 17, - ( - CAST( 14 AS SIGNED ) ) ) + + - 92, 68 AS col1
----
-86
68

skipif mysql # not compatible
query II rowsort label-5854
SELECT - + 6 * - COUNT ( * ) / COALESCE ( COUNT ( * ), 17, - ( - CAST ( 14 AS INTEGER ) ) ) + + - 92, 68 AS col1
----
-86
68

query II rowsort
SELECT - + 65 col2, 7 + + 53 AS col2
----
-65
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5856
SELECT - - 26 + + 98 DIV + NULLIF ( + - 67, + + 27 * - COUNT( * ) + - 24 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-5856
SELECT - - 26 + + 98 / + NULLIF ( + - 67, + + 27 * - COUNT ( * ) + - 24 ) AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5857
SELECT ALL - 21 + - + 24 + + 99, + COUNT( * ) * + ( + 45 ) * COUNT( * ) + 77 * - CAST( NULL AS SIGNED ) + - + CASE 42 WHEN + 61 + COUNT( * ) THEN NULL WHEN + - 7 + - + 71 THEN CAST( NULL AS SIGNED ) * 36 - + 95 + + 61 + + 19 * - - ( - CAST( - - CASE COUNT( COALESCE ( - 85, 18 * - 13 + 66 * + 77 ) ) WHEN - 1 - 13 * - ( 68 ) THEN - 67 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - COUNT( * ) + 80 THEN NULL ELSE NULL END AS DECIMAL ) ) / + 10 + - COALESCE ( COALESCE ( 75, - 94 + + 32 ) + 69, COALESCE ( 98, + 29 * 14 ) / + COUNT( * ), + 60 * 79 + 71 ) ELSE NULL END * 76 AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-5857
SELECT ALL - 21 + - + 24 + + 99, + COUNT ( * ) * + ( + 45 ) * COUNT ( * ) + 77 * - CAST ( NULL AS INTEGER ) + - + CASE 42 WHEN + 61 + COUNT ( * ) THEN NULL WHEN + - 7 + - + 71 THEN CAST ( NULL AS INTEGER ) * 36 - + 95 + + 61 + + 19 * - - ( - CAST ( - - CASE COUNT ( COALESCE ( - 85, 18 * - 13 + 66 * + 77 ) ) WHEN - 1 - 13 * - ( 68 ) THEN - 67 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - COUNT ( * ) + 80 THEN NULL ELSE NULL END AS REAL ) ) / + 10 + - COALESCE ( COALESCE ( 75, - 94 + + 32 ) + 69, COALESCE ( 98, + 29 * 14 ) / + COUNT ( * ), + 60 * 79 + 71 ) ELSE NULL END * 76 AS col0
----
54
NULL

query II rowsort
SELECT 99 AS col0, 82 - + + ( 23 )
----
99
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5859
SELECT DISTINCT + + 9 DIV - 87 - + - 24 + COUNT( ALL - 35 ) + - 42 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT + + 9 / - 87 - + - 24 + COUNT ( ALL - 35 ) + - 42 AS col2
----
-17

query I rowsort
SELECT ALL + 29 * - 53 AS col0
----
-1537

onlyif mysql # DIV for integer division: 
query I rowsort label-5861
SELECT DISTINCT - 12 DIV - - 76 + - 11 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT - 12 / - - 76 + - 11 AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-5862
SELECT DISTINCT - 76 DIV 53 + + 38 + + 64
----
101

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT - 76 / 53 + + 38 + + 64
----
101

query II rowsort
SELECT ALL + - ( 41 ) * - 53 AS col2, - 3 AS col1
----
2173
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT SUM( DISTINCT - 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-5864
SELECT SUM ( DISTINCT - 33 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT 84 * 34 - - - COALESCE ( 53, + + 68 - - 50 - - - 75 - COUNT( * ) * - COUNT( * ), - 79 + - 94 )
----
2803

skipif mysql # not compatible
query I rowsort label-5865
SELECT 84 * 34 - - - COALESCE ( 53, + + 68 - - 50 - - - 75 - COUNT ( * ) * - COUNT ( * ), - 79 + - 94 )
----
2803

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT ALL 79 * - 54 + + COUNT( * ) AS col1
----
-4265

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL 79 * - 54 + + COUNT ( * ) AS col1
----
-4265

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT NULLIF ( + 39, + 39 ) * + - NULLIF ( 11, 42 ) * - COUNT( * ) / - 55 + 62 * SUM( - ( + 47 ) ) + + COUNT( * ) / - - 20 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT NULLIF ( + 39, + 39 ) * + - NULLIF ( 11, 42 ) * - COUNT ( * ) / - 55 + 62 * SUM ( - ( + 47 ) ) + + COUNT ( * ) / - - 20 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5868
SELECT - NULLIF ( 30, - NULLIF ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), 29 * - + 27 ) ) - - 61 * + 54 AS col2
----
3264

skipif mysql # not compatible
query I rowsort label-5868
SELECT - NULLIF ( 30, - NULLIF ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), 29 * - + 27 ) ) - - 61 * + 54 AS col2
----
3264

query I rowsort
SELECT ALL 47 * + - 44 - - + 9 AS col1
----
-2059

onlyif mysql # aggregate syntax: 
query II rowsort label-5870
SELECT CASE - COUNT( * ) WHEN + 74 THEN - 67 END col0, - 91
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-5870
SELECT CASE - COUNT ( * ) WHEN + 74 THEN - 67 END col0, - 91
----
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT + 70 / CASE + - 66 WHEN - - 7 THEN 20 END * + - COUNT( ALL - 41 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT + 70 / CASE + - 66 WHEN - - 7 THEN 20 END * + - COUNT ( ALL - 41 ) col2
----
NULL

query II rowsort
SELECT ALL 76 * - ( - - ( - 67 ) ), - 94 + + + 23 col2
----
5092
-71

query I rowsort
SELECT + 46 - - - 15 * + ( 31 ) AS col0
----
-419

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

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

query I rowsort
SELECT - NULLIF ( 77, 41 ) AS col0
----
-77

query I rowsort
SELECT + 10 * + 4
----
40

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

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

query II rowsort
SELECT DISTINCT + ( - - 1 ), + 10 AS col2
----
1
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5879
SELECT DISTINCT ( - 65 ) col2, COUNT( * ) + + + 20
----
-65
21

skipif mysql # not compatible
query II rowsort label-5879
SELECT DISTINCT ( - 65 ) col2, COUNT ( * ) + + + 20
----
-65
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5880
SELECT ALL - 85 DIV 73 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - 85 / 73 AS col1
----
-1

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

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

query I rowsort
SELECT ALL + COALESCE ( + - 59, - + COALESCE ( - ( - - 70 ), 27, + + 87 ) ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT + + 10 + + MAX( 38 ) col2
----
48

skipif mysql # not compatible
query I rowsort label-5883
SELECT + + 10 + + MAX ( 38 ) col2
----
48

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

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

query I rowsort
SELECT - - 30 * + 29 + + 2
----
872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT - CAST( 25 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-5886
SELECT - CAST ( 25 AS INTEGER )
----
-25

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

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

query I rowsort
SELECT ALL - + 58 + + 66 * - + 98 col0
----
-6526

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT - 87 + + - 26 + - + 33 - COUNT( * ) * 73 * + COALESCE ( - 1, + + 92 ) + 87 + - 94 - - 60 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5889
SELECT - 87 + + - 26 + - + 33 - COUNT ( * ) * 73 * + COALESCE ( - 1, + + 92 ) + 87 + - 94 - - 60 AS col1
----
-20

query I rowsort
SELECT ALL + 84 + - 93 - + - 91 * 85 AS col1
----
7726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5891
SELECT ( - - CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) + AVG ( DISTINCT 69 ) * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT ( - - CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT 69 ) * 2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5892
SELECT + 9 - - COUNT( * ) + + + 64 + + 80 DIV 42, 75 * 75 * - - 93 AS col1
----
75
523125

skipif mysql # not compatible
query II rowsort label-5892
SELECT + 9 - - COUNT ( * ) + + + 64 + + 80 / 42, 75 * 75 * - - 93 AS col1
----
75
523125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5893
SELECT DISTINCT NULLIF ( COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ) * COUNT( * ) + 37, 9 * - - SUM( - 35 ) + + 74 ), - ( + + ( + 5 ) ) * + + CASE - 20 WHEN 42 THEN - ( 24 ) END + 45 - + - 70 ), COUNT( * ) col1
----
38
1

skipif mysql # not compatible
query II rowsort label-5893
SELECT DISTINCT NULLIF ( COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ) * COUNT ( * ) + 37, 9 * - - SUM ( - 35 ) + + 74 ), - ( + + ( + 5 ) ) * + + CASE - 20 WHEN 42 THEN - ( 24 ) END + 45 - + - 70 ), COUNT ( * ) col1
----
38
1

query I rowsort
SELECT + 53 + + - ( + - 73 )
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-5895
SELECT + - 14 DIV 66 - 13 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5895
SELECT + - 14 / 66 - 13 AS col2
----
-13

query I rowsort
SELECT DISTINCT - - ( - 42 )
----
-42

query I rowsort
SELECT ALL - 16 - - - 88 AS col0
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-5898
SELECT 17 DIV 10 * + + 24 + - 88
----
-64

skipif mysql # not compatible
query I rowsort label-5898
SELECT 17 / 10 * + + 24 + - 88
----
-64

query I rowsort
SELECT DISTINCT - COALESCE ( + + 85, 28 ) AS col2
----
-85

query I rowsort
SELECT 84 + + 27 AS col1
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-5901
SELECT ALL + 17 - + + COUNT( * ) + - 67 AS col1, 95
----
-51
95

skipif mysql # not compatible
query II rowsort label-5901
SELECT ALL + 17 - + + COUNT ( * ) + - 67 AS col1, 95
----
-51
95

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5903
SELECT ALL - ( - 63 ) * - 17 - - - 33 + - COUNT( * ) * - 87 / + + 6 + - + 21 + + CAST( NULL AS SIGNED ) + + 94 * 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL - ( - 63 ) * - 17 - - - 33 + - COUNT ( * ) * - 87 / + + 6 + - + 21 + + CAST ( NULL AS INTEGER ) + + 94 * 40 AS col1
----
NULL

query I rowsort
SELECT ALL - 44 * - 57 * + + 53
----
132924

query I rowsort
SELECT 26 * - 67
----
-1742

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

query I rowsort
SELECT 6 + - - 77
----
83

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

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT - CAST ( - + 57 AS INTEGER ) AS col0
----
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT - 67 * - ( + 45 ) + - ( COUNT( + 99 ) )
----
3014

skipif mysql # not compatible
query I rowsort label-5910
SELECT - 67 * - ( + 45 ) + - ( COUNT ( + 99 ) )
----
3014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5911
SELECT ALL CASE - MAX( ALL + 90 ) WHEN + - COUNT( * ) THEN NULL WHEN - 78 THEN 67 END * COALESCE ( + ( - 35 ), - NULLIF ( + 41, - ( + COUNT( * ) ) * + 99 ) ) + - 70 / + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL CASE - MAX ( ALL + 90 ) WHEN + - COUNT ( * ) THEN NULL WHEN - 78 THEN 67 END * COALESCE ( + ( - 35 ), - NULLIF ( + 41, - ( + COUNT ( * ) ) * + 99 ) ) + - 70 / + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL - - 93 + + 69 AS col2
----
162

query I rowsort
SELECT 23 + + 97 AS col2
----
120

query I rowsort
SELECT 69 + + 78 AS col1
----
147

query I rowsort
SELECT ALL 47 + - 65
----
-18

query I rowsort
SELECT DISTINCT + + 51 + - 8 AS col1
----
43

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

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

query I rowsort
SELECT + 57 + + ( - 28 ) AS col0
----
29

query I rowsort
SELECT DISTINCT - 35 * - 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5920
SELECT - - COALESCE ( + MAX( + 60 ), + + 93 - + + 13 ), + 65 + - 64 * + 90 AS col2
----
60
-5695

skipif mysql # not compatible
query II rowsort label-5920
SELECT - - COALESCE ( + MAX ( + 60 ), + + 93 - + + 13 ), + 65 + - 64 * + 90 AS col2
----
60
-5695

query I rowsort
SELECT ALL + 13 + + 10 AS col2
----
23

query II rowsort
SELECT - 5 AS col2, 61 AS col0
----
-5
61

query I rowsort
SELECT 18 + 19 + 85 * + 73
----
6242

query I rowsort
SELECT DISTINCT - ( 81 ) - + 61 * 60
----
-3741

query I rowsort
SELECT ALL 77 - 35 AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5926
SELECT 10 + ( + 3 ) + - CAST( - 15 AS DECIMAL ) * - + NULLIF ( + CAST( NULL AS SIGNED ), + + NULLIF ( - CAST( + - 25 AS SIGNED ), 58 ) * 87 / COUNT( * ) - 34 ) * + 95 * - 1 - - NULLIF ( + 74, + + 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5926
SELECT 10 + ( + 3 ) + - CAST ( - 15 AS REAL ) * - + NULLIF ( + CAST ( NULL AS INTEGER ), + + NULLIF ( - CAST ( + - 25 AS INTEGER ), 58 ) * 87 / COUNT ( * ) - 34 ) * + 95 * - 1 - - NULLIF ( + 74, + + 58 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( 79 ) * - 24
----
-1896

query I rowsort
SELECT - 34 + + ( + 60 ) + 79
----
105

query I rowsort
SELECT ALL 36 * - 36 AS col2
----
-1296

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT ALL 71 * - SUM( + - 44 ) - 61
----
3063

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL 71 * - SUM ( + - 44 ) - 61
----
3063

query I rowsort
SELECT DISTINCT 65 * + 74
----
4810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5933
SELECT + COUNT( DISTINCT - - NULLIF ( 46, + 90 * - + 32 / 30 + CAST( NULL AS SIGNED ) * + - 50 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5933
SELECT + COUNT ( DISTINCT - - NULLIF ( 46, + 90 * - + 32 / 30 + CAST ( NULL AS INTEGER ) * + - 50 ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5934
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * + 60 + 33 - 10 - - 69 AS col1, 69 * - 43 AS col2
----
152
-2967

skipif mysql # not compatible
query II rowsort label-5934
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * + 60 + 33 - 10 - - 69 AS col1, 69 * - 43 AS col2
----
152
-2967

query I rowsort
SELECT ALL 0 * 9 AS col0
----
0

query II rowsort
SELECT 10 * + - 15 AS col2, 34
----
-150
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5937
SELECT 77 DIV ( COUNT( * ) ) + - 55 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5937
SELECT 77 / ( COUNT ( * ) ) + - 55 AS col2
----
22

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

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

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

skipif mysql # not compatible
query I rowsort label-5939
SELECT + COUNT ( ALL 13 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT 26 + + 91 + COALESCE ( + COUNT( * ), 71 ) + - 3 + - 53 - + 3 * - - 17 + + 98 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-5940
SELECT 26 + + 91 + COALESCE ( + COUNT ( * ), 71 ) + - 3 + - 53 - + 3 * - - 17 + + 98 AS col1
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5941
SELECT 0 * - 9 * - + 59 * + 6, - 12 - + 13 + + COUNT( ALL - NULLIF ( - 86, 51 + - 21 ) ) * + + 39 - + + 51 * - CAST( NULL AS SIGNED ) * + 23 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5941
SELECT 0 * - 9 * - + 59 * + 6, - 12 - + 13 + + COUNT ( ALL - NULLIF ( - 86, 51 + - 21 ) ) * + + 39 - + + 51 * - CAST ( NULL AS INTEGER ) * + 23 AS col2
----
0
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5944
SELECT DISTINCT - 42 AS col2, - 41 * + 18 + + - COUNT( * ) + 35
----
-42
-704

skipif mysql # not compatible
query II rowsort label-5944
SELECT DISTINCT - 42 AS col2, - 41 * + 18 + + - COUNT ( * ) + 35
----
-42
-704

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

query I rowsort
SELECT ALL + ( - 16 ) + + NULLIF ( 45, 29 / 52 + + + NULLIF ( ( - - 8 ), 31 ) - + + 9 / + - 67 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5947
SELECT DISTINCT - COUNT( - 6 ) + - + COUNT( ALL CAST( + 33 AS SIGNED ) )
----
-2

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT - COUNT ( - 6 ) + - + COUNT ( ALL CAST ( + 33 AS INTEGER ) )
----
-2

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

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

query I rowsort
SELECT ALL - 58 + + 48
----
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5950
SELECT ALL - 97, CAST( NULL AS DECIMAL ) AS col2
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-5950
SELECT ALL - 97, CAST ( NULL AS REAL ) AS col2
----
-97
NULL

query II rowsort
SELECT - 94 AS col2, 56 + - 30 - - 97
----
-94
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT - NULLIF ( - 73, - 80 / COUNT( DISTINCT + 7 ) / + + 32 + 45 * + + ( - 0 ) )
----
73

skipif mysql # not compatible
query I rowsort label-5952
SELECT - NULLIF ( - 73, - 80 / COUNT ( DISTINCT + 7 ) / + + 32 + 45 * + + ( - 0 ) )
----
73

query I rowsort
SELECT - - 2 * - COALESCE ( + 27, 48 ) * + ( - 29 ) + 69
----
1635

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

query I rowsort
SELECT - + 28 * - 69
----
1932

query I rowsort
SELECT ALL 81 + - 3
----
78

query II rowsort
SELECT - 64 * 99 AS col0, ( + 47 )
----
-6336
47

query I rowsort
SELECT + 78 * + - 17 AS col1
----
-1326

query I rowsort
SELECT - COALESCE ( 21, 48 * - 86, + ( - ( + + 24 ) ) * 4 ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT - - COUNT( * ) - SUM( + - 18 ) * 50
----
901

skipif mysql # not compatible
query I rowsort label-5960
SELECT - - COUNT ( * ) - SUM ( + - 18 ) * 50
----
901

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5962
SELECT - + 26 + MAX( ALL 78 ) DIV + COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-5962
SELECT - + 26 + MAX ( ALL 78 ) / + COUNT ( * ) AS col2
----
52

query I rowsort
SELECT DISTINCT - 44 * - 28 AS col2
----
1232

query I rowsort
SELECT + 71 - + ( - + 97 ) col0
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5965
SELECT - CASE - + 45 WHEN ( COUNT( - 56 ) ) THEN COUNT( * ) ELSE - - 5 * COUNT( * ) * - COALESCE ( 29, 63 * CAST( NULL AS SIGNED ), + + 47 ) * - ( - 74 ) + + 13 DIV + 19 * + - COALESCE ( + 1, + 10, COUNT( * ) ) END * - NULLIF ( - MIN( DISTINCT - - ( + 6 ) ), - 71 )
----
64380

skipif mysql # not compatible
query I rowsort label-5965
SELECT - CASE - + 45 WHEN ( COUNT ( - 56 ) ) THEN COUNT ( * ) ELSE - - 5 * COUNT ( * ) * - COALESCE ( 29, 63 * CAST ( NULL AS INTEGER ), + + 47 ) * - ( - 74 ) + + 13 / + 19 * + - COALESCE ( + 1, + 10, COUNT ( * ) ) END * - NULLIF ( - MIN ( DISTINCT - - ( + 6 ) ), - 71 )
----
64380

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5967
SELECT 90 DIV MIN( - 82 ) - + + 41
----
-42

skipif mysql # not compatible
query I rowsort label-5967
SELECT 90 / MIN ( - 82 ) - + + 41
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5968
SELECT + 23 + + 80, - COALESCE ( - COUNT( * ), - + 58, - - 37 * + 97 ) AS col1
----
103
1

skipif mysql # not compatible
query II rowsort label-5968
SELECT + 23 + + 80, - COALESCE ( - COUNT ( * ), - + 58, - - 37 * + 97 ) AS col1
----
103
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5969
SELECT + 41 DIV 13
----
3

skipif mysql # not compatible
query I rowsort label-5969
SELECT + 41 / 13
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5970
SELECT 91 DIV - 85 + - 53 + - 54 + - 63 + - COUNT( * )
----
-172

skipif mysql # not compatible
query I rowsort label-5970
SELECT 91 / - 85 + - 53 + - 54 + - 63 + - COUNT ( * )
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT + NULLIF ( - - 64, COUNT( * ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5971
SELECT + NULLIF ( - - 64, COUNT ( * ) ) AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5972
SELECT + 5 DIV - ( 10 )
----
0

skipif mysql # not compatible
query I rowsort label-5972
SELECT + 5 / - ( 10 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5973
SELECT ALL - COUNT( * ) * - CAST( - MAX( ALL + 1 ) AS SIGNED ) + 79 + + 19
----
97

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL - COUNT ( * ) * - CAST ( - MAX ( ALL + 1 ) AS INTEGER ) + 79 + + 19
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5974
SELECT DISTINCT - 21 * - 19 + ( + 40 ) + + CAST( NULL AS SIGNED ) * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT - 21 * - 19 + ( + 40 ) + + CAST ( NULL AS INTEGER ) * - 61
----
NULL

query II rowsort
SELECT + 99 + - - 63 + 46 AS col0, 8 col0
----
208
8

query II rowsort
SELECT + ( 92 ), 73 - 52 col0
----
92
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5977
SELECT + CAST( NULL AS SIGNED ) + + + 27 AS col2, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5977
SELECT + CAST ( NULL AS INTEGER ) + + + 27 AS col2, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5978
SELECT - ( 65 ) + 59 + - 18 * - 21 * 43 * + ( - - MAX( ALL - 26 ) ) + + - 53 col0, 6
----
-422663
6

skipif mysql # not compatible
query II rowsort label-5978
SELECT - ( 65 ) + 59 + - 18 * - 21 * 43 * + ( - - MAX ( ALL - 26 ) ) + + - 53 col0, 6
----
-422663
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5979
SELECT DISTINCT - COUNT( * ) * + COUNT( ALL 44 ) * - 5 + ( + - 26 ) + 81 * - - CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + 91 ) / CAST( NULL AS SIGNED ) / 5 - + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT - COUNT ( * ) * + COUNT ( ALL 44 ) * - 5 + ( + - 26 ) + 81 * - - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + 91 ) / CAST ( NULL AS INTEGER ) / 5 - + 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5980
SELECT ALL + + 21 * - COUNT( 32 ) AS col0, - SUM( - 55 ) * 57 * 12
----
-21
37620

skipif mysql # not compatible
query II rowsort label-5980
SELECT ALL + + 21 * - COUNT ( 32 ) AS col0, - SUM ( - 55 ) * 57 * 12
----
-21
37620

query II rowsort
SELECT - + 47 * - - 69 AS col2, 15
----
-3243
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5982
SELECT - + COUNT( * ) + 54 AS col0, + 16 * - 43 * - 32 + + 83 col2
----
53
22099

skipif mysql # not compatible
query II rowsort label-5982
SELECT - + COUNT ( * ) + 54 AS col0, + 16 * - 43 * - 32 + + 83 col2
----
53
22099

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

skipif mysql # not compatible
query I rowsort label-5983
SELECT - COUNT ( * ) + - 91 + - 19 AS col0
----
-111

query II rowsort
SELECT - 98 * + 90 AS col0, - 71 + + + 75 + 61 + - + 85 + - + 81
----
-8820
-101

query I rowsort
SELECT ALL NULLIF ( + - 76, + - 74 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT - COUNT( * ) + - 78 + - SUM( - 18 ) + - 50 * - - 41
----
-2111

skipif mysql # not compatible
query I rowsort label-5986
SELECT - COUNT ( * ) + - 78 + - SUM ( - 18 ) + - 50 * - - 41
----
-2111

query II rowsort
SELECT ALL + - 79 * 30, 32 AS col2
----
-2370
32

query I rowsort
SELECT - 56 + + + NULLIF ( - ( 32 ), 41 - 31 ) * COALESCE ( - 62, 2 ) AS col2
----
1928

query I rowsort
SELECT - 54 * 99 col2
----
-5346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5990
SELECT - CAST( 74 AS SIGNED ) * 58 AS col0
----
-4292

skipif mysql # not compatible
query I rowsort label-5990
SELECT - CAST ( 74 AS INTEGER ) * 58 AS col0
----
-4292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5991
SELECT - 71 + + CASE - 94 WHEN + - ( - CAST( + 91 AS SIGNED ) ) - 21 + - 82 * + 10 * + 39 THEN - 29 WHEN + CAST( + - 47 AS SIGNED ) THEN NULL END + ( - - CAST( NULL AS SIGNED ) ) * - MAX( DISTINCT - - 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5991
SELECT - 71 + + CASE - 94 WHEN + - ( - CAST ( + 91 AS INTEGER ) ) - 21 + - 82 * + 10 * + 39 THEN - 29 WHEN + CAST ( + - 47 AS INTEGER ) THEN NULL END + ( - - CAST ( NULL AS INTEGER ) ) * - MAX ( DISTINCT - - 15 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5992
SELECT ALL - SUM( - + 72 ) DIV 16 AS col1, MIN( ALL + 38 ) AS col1
----
4
38

skipif mysql # not compatible
query II rowsort label-5992
SELECT ALL - SUM ( - + 72 ) / 16 AS col1, MIN ( ALL + 38 ) AS col1
----
4
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5993
SELECT - 83 DIV 45
----
-1

skipif mysql # not compatible
query I rowsort label-5993
SELECT - 83 / 45
----
-1

query II rowsort
SELECT - 52 AS col1, - 7 + 6
----
-52
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT + 47 + - 58 * - 32 * + COUNT( * )
----
1903

skipif mysql # not compatible
query I rowsort label-5995
SELECT + 47 + - 58 * - 32 * + COUNT ( * )
----
1903

query II rowsort
SELECT - 55 col2, 7 AS col2
----
-55
7

query I rowsort
SELECT + 65 * 35 AS col0
----
2275

query I rowsort
SELECT DISTINCT + NULLIF ( - - 0, 97 + - 48 ) + - 4
----
-4

query I rowsort
SELECT ALL COALESCE ( + 7, + 73 ) + 42 col0
----
49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6001
SELECT + NULLIF ( - + ( - COUNT( * ) ), + - 97 * + + 77 + COUNT( * ) + CAST( - - 76 AS SIGNED ) / + 74 * COUNT( * ) + + CASE 52 WHEN - 9 * + + 31 + 63 + - - COUNT( * ) + + - 90 - + ( 17 ) + + + 73 * + + 18 / + + 84 THEN - MIN( 69 ) END / + - 2 * + 45 * - 83 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6001
SELECT + NULLIF ( - + ( - COUNT ( * ) ), + - 97 * + + 77 + COUNT ( * ) + CAST ( - - 76 AS INTEGER ) / + 74 * COUNT ( * ) + + CASE 52 WHEN - 9 * + + 31 + 63 + - - COUNT ( * ) + + - 90 - + ( 17 ) + + + 73 * + + 18 / + + 84 THEN - MIN ( 69 ) END / + - 2 * + 45 * - 83 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6002
SELECT ALL + COUNT( * ) / ( + 3 ) + - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 1 + 93 + 12 + - 18 * + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL + COUNT ( * ) / ( + 3 ) + - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 1 + 93 + 12 + - 18 * + + 84
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6003
SELECT 96 * 64 - + ( + 61 ) DIV - 44
----
6145

skipif mysql # not compatible
query I rowsort label-6003
SELECT 96 * 64 - + ( + 61 ) / - 44
----
6145

query II rowsort
SELECT ALL + 80 AS col2, ( - 84 ) * - + 75 AS col2
----
80
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT + CASE + 61 WHEN + + ( 16 ) THEN COUNT( * ) + + 58 * + ( - ( 29 ) ) + + - ( - COUNT( - 31 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT + CASE + 61 WHEN + + ( 16 ) THEN COUNT ( * ) + + 58 * + ( - ( 29 ) ) + + - ( - COUNT ( - 31 ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT + CASE - 68 WHEN 17 - - 17 - - 9 THEN NULL ELSE - 72 END + - 49 col0
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-6007
SELECT + 39 col2, - SUM( 92 )
----
39
-92

skipif mysql # not compatible
query II rowsort label-6007
SELECT + 39 col2, - SUM ( 92 )
----
39
-92

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6009
SELECT ALL + - ( - - COUNT( * ) ) DIV - ( NULLIF ( 74, COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL + - ( - - COUNT ( * ) ) / - ( NULLIF ( 74, COUNT ( * ) ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6010
SELECT + CAST( NULL AS SIGNED ) * + 3 - + + 83 AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT 16 - 28
----
-12

query I rowsort
SELECT ALL + 56 * 47
----
2632

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

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

query I rowsort
SELECT + 17 * 30
----
510

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

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

query II rowsort
SELECT ALL 19, 24 - + - 25 AS col1
----
19
49

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

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL COUNT ( DISTINCT - 48 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT - MAX( - - COALESCE ( + - 48, - 72 + - + 8 ) ) * - - 35
----
1680

skipif mysql # not compatible
query I rowsort label-6018
SELECT - MAX ( - - COALESCE ( + - 48, - 72 + - + 8 ) ) * - - 35
----
1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6019
SELECT ALL + 99 * - 78 * - - 92 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL + 99 * - 78 * - - 92 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6020
SELECT CAST( - 91 AS SIGNED ) + - + COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6020
SELECT CAST ( - 91 AS INTEGER ) + - + COUNT ( * ) AS col0
----
-92

query I rowsort
SELECT 19 * + 90 AS col0
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT 0 + COUNT( DISTINCT + ( + + 23 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6022
SELECT 0 + COUNT ( DISTINCT + ( + + 23 ) ) col0
----
1

query I rowsort
SELECT 9 + 97 AS col2
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-6024
SELECT DISTINCT 35 + + 82 DIV 95
----
35

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT 35 + + 82 / 95
----
35

query I rowsort
SELECT 28 + - 36
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT 9 + - - 27 + + + 38 * + - COUNT( * ) * - 25
----
986

skipif mysql # not compatible
query I rowsort label-6026
SELECT 9 + - - 27 + + + 38 * + - COUNT ( * ) * - 25
----
986

onlyif mysql # aggregate syntax: 
query II rowsort label-6027
SELECT COUNT( * ) - - 11 AS col2, 78 AS col1
----
12
78

skipif mysql # not compatible
query II rowsort label-6027
SELECT COUNT ( * ) - - 11 AS col2, 78 AS col1
----
12
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT 18 + + + COUNT( ALL 94 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6028
SELECT 18 + + + COUNT ( ALL 94 ) AS col1
----
19

query I rowsort
SELECT 54 + + 97 col1
----
151

query I rowsort
SELECT 25 * + 21
----
525

query I rowsort
SELECT ALL + 65 - 4 AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6032
SELECT DISTINCT + CASE - CAST( NULL AS SIGNED ) WHEN - 64 THEN - 7 * SUM( 86 ) + - - 84 + - - CASE + 59 WHEN - 53 THEN + - 92 WHEN + + 19 * - 72 THEN NULL ELSE NULL END * + ( + ( + AVG ( + 33 ) ) ) + - 33 ELSE NULL END * - 50 AS col1, + 95 * + 7 AS col2
----
NULL
665

skipif mysql # not compatible
query II rowsort label-6032
SELECT DISTINCT + CASE - CAST ( NULL AS INTEGER ) WHEN - 64 THEN - 7 * SUM ( 86 ) + - - 84 + - - CASE + 59 WHEN - 53 THEN + - 92 WHEN + + 19 * - 72 THEN NULL ELSE NULL END * + ( + ( + AVG ( + 33 ) ) ) + - 33 ELSE NULL END * - 50 AS col1, + 95 * + 7 AS col2
----
NULL
665

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6034
SELECT ( COUNT( * ) ) DIV 33 + + + 81 + + 86 AS col1
----
167

skipif mysql # not compatible
query I rowsort label-6034
SELECT ( COUNT ( * ) ) / 33 + + + 81 + + 86 AS col1
----
167

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

skipif mysql # not compatible
query I rowsort label-6035
SELECT + COUNT ( DISTINCT + 71 ) AS col0
----
1

query I rowsort
SELECT ALL - - 27 col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6037
SELECT - 1 DIV NULLIF ( 25, - - 74 ) - 37 * - 52 + COUNT( * ) * - 69
----
1855

skipif mysql # not compatible
query I rowsort label-6037
SELECT - 1 / NULLIF ( 25, - - 74 ) - 37 * - 52 + COUNT ( * ) * - 69
----
1855

query I rowsort
SELECT + 11 + + 77
----
88

query I rowsort
SELECT DISTINCT + 2 * - 48
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT + - COUNT( * ) * + 4 * - 12 + - - 14 + 26
----
88

skipif mysql # not compatible
query I rowsort label-6040
SELECT + - COUNT ( * ) * + 4 * - 12 + - - 14 + 26
----
88

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

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

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

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

query I rowsort
SELECT - 70 * 38 + 75 col2
----
-2585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 87 * + + 51 - 56 / 11 + - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 87 * + + 51 - 56 / 11 + - 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6045
SELECT - SUM( ALL 79 ) + + + 36 + 24 DIV 44 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-6045
SELECT - SUM ( ALL 79 ) + + + 36 + 24 / 44 AS col0
----
-43

query II rowsort
SELECT ALL ( 41 ) AS col2, 7 + - 49
----
41
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6047
SELECT 89 DIV + 49 col2, - COUNT( * ) + 46 AS col2
----
1
45

skipif mysql # not compatible
query II rowsort label-6047
SELECT 89 / + 49 col2, - COUNT ( * ) + 46 AS col2
----
1
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT - COUNT( ALL - - 27 ) + - - COUNT( * ) * 78
----
77

skipif mysql # not compatible
query I rowsort label-6048
SELECT - COUNT ( ALL - - 27 ) + - - COUNT ( * ) * 78
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6049
SELECT ( CASE - 0 WHEN + - 78 THEN 91 * 84 * + 71 * - 89 * - 59 + - 82 WHEN - 59 DIV - - 73 * + 13 * 85 THEN + + 58 * - - 91 + - 37 * 14 END ) * + COUNT( * ) + + + COUNT( + 62 ) * - - 12 AS col0
----
4772

skipif mysql # not compatible
query I rowsort label-6049
SELECT ( CASE - 0 WHEN + - 78 THEN 91 * 84 * + 71 * - 89 * - 59 + - 82 WHEN - 59 / - - 73 * + 13 * 85 THEN + + 58 * - - 91 + - 37 * 14 END ) * + COUNT ( * ) + + + COUNT ( + 62 ) * - - 12 AS col0
----
4772

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6050
SELECT DISTINCT MIN( - 58 ) DIV 89 AS col0, MAX( 15 ) AS col2
----
0
15

skipif mysql # not compatible
query II rowsort label-6050
SELECT DISTINCT MIN ( - 58 ) / 89 AS col0, MAX ( 15 ) AS col2
----
0
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT DISTINCT COUNT( * ) + + - MIN( ALL 51 )
----
-50

skipif mysql # not compatible
query I rowsort label-6051
SELECT DISTINCT COUNT ( * ) + + - MIN ( ALL 51 )
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-6052
SELECT ALL 94 + ( - ( - + 47 ) ) DIV + + ( + 91 ) + + + 78 + 22 * 95 AS col1
----
2262

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL 94 + ( - ( - + 47 ) ) / + + ( + 91 ) + + + 78 + 22 * 95 AS col1
----
2262

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6053
SELECT ALL + CAST( 3 AS SIGNED ) + - 47 DIV 33 * + 35
----
-32

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL + CAST ( 3 AS INTEGER ) + - 47 / 33 * + 35
----
-32

query I rowsort
SELECT 9 * - 75
----
-675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6055
SELECT 44 * + + 1 DIV + COUNT( - ( + 86 ) )
----
44

skipif mysql # not compatible
query I rowsort label-6055
SELECT 44 * + + 1 / + COUNT ( - ( + 86 ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT + 22 - - 64 * + COUNT( * ) * + ( + + 96 )
----
6166

skipif mysql # not compatible
query I rowsort label-6056
SELECT + 22 - - 64 * + COUNT ( * ) * + ( + + 96 )
----
6166

query I rowsort
SELECT ALL 28 * + 99 AS col2
----
2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6058
SELECT ALL + 29 * + 22 - + CAST( NULL AS SIGNED ), 61 * COALESCE ( + + 94, - COUNT( * ) ) + + + 63 + COUNT( * ) + COUNT( * ) DIV - 54 + + + COUNT( DISTINCT + + 32 ) - 62 AS col0
----
NULL
5737

skipif mysql # not compatible
query II rowsort label-6058
SELECT ALL + 29 * + 22 - + CAST ( NULL AS INTEGER ), 61 * COALESCE ( + + 94, - COUNT ( * ) ) + + + 63 + COUNT ( * ) + COUNT ( * ) / - 54 + + + COUNT ( DISTINCT + + 32 ) - 62 AS col0
----
NULL
5737

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6059
SELECT ALL - 26 * 94 DIV - 20 + - 62 - + MIN( ALL - 37 ) - + 55 * - 19
----
1142

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL - 26 * 94 / - 20 + - 62 - + MIN ( ALL - 37 ) - + 55 * - 19
----
1142

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

skipif mysql # not compatible
query I rowsort label-6060
SELECT - COUNT ( * ) / - CAST ( - + 18 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT - CASE + ( - NULLIF ( - MAX( - 77 ), 10 / - 38 * + CASE COUNT( * ) WHEN + - 20 + 40 * 61 THEN + 6 END ) ) WHEN 25 + - 73 THEN 98 END * + 93 * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-6061
SELECT - CASE + ( - NULLIF ( - MAX ( - 77 ), 10 / - 38 * + CASE COUNT ( * ) WHEN + - 20 + 40 * 61 THEN + 6 END ) ) WHEN 25 + - 73 THEN 98 END * + 93 * + 95
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6062
SELECT 28 * MAX( DISTINCT 88 ) * - + 42 - 8 DIV + 59 + - - MIN( DISTINCT 18 ) col1
----
-103470

skipif mysql # not compatible
query I rowsort label-6062
SELECT 28 * MAX ( DISTINCT 88 ) * - + 42 - 8 / + 59 + - - MIN ( DISTINCT 18 ) col1
----
-103470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6063
SELECT + + COALESCE ( + COALESCE ( + + 45, + 53 + CAST( NULL AS SIGNED ) ), - 13 )
----
45

skipif mysql # not compatible
query I rowsort label-6063
SELECT + + COALESCE ( + COALESCE ( + + 45, + 53 + CAST ( NULL AS INTEGER ) ), - 13 )
----
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6064
SELECT DISTINCT - - 2 * - - CAST( 63 AS SIGNED ) DIV + - 26 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT - - 2 * - - CAST ( 63 AS INTEGER ) / + - 26 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT - - 84 - + 64 + COUNT( * ) + + 11 + + ( 24 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-6065
SELECT - - 84 - + 64 + COUNT ( * ) + + 11 + + ( 24 ) col1
----
56

query I rowsort
SELECT - + 68 * - ( - - 3 ) + + 62
----
266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6067
SELECT ALL + + CAST( - 20 AS SIGNED ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL + + CAST ( - 20 AS INTEGER ) AS col2
----
-20

query II rowsort
SELECT + + 78, 78 AS col1
----
78
78

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

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

query I rowsort
SELECT ALL - 81 * + 59 + + 77 + + + 64 AS col1
----
-4638

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6072
SELECT + NULLIF ( + - 70, - - 30 ) * ( - COUNT( * ) ) DIV + + MAX( DISTINCT 96 ) - - 12 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6072
SELECT + NULLIF ( + - 70, - - 30 ) * ( - COUNT ( * ) ) / + + MAX ( DISTINCT 96 ) - - 12 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT DISTINCT + 38 * + + 96 + 32 - 61 * ( 65 ) + + 97 + COALESCE ( 72, + - MIN( DISTINCT + - 66 ) * + COUNT( * ) * + MIN( ALL - 95 ), - + 9 ) * + 94 + - 41 + - ( + 44 ) AS col0
----
6495

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT + 38 * + + 96 + 32 - 61 * ( 65 ) + + 97 + COALESCE ( 72, + - MIN ( DISTINCT + - 66 ) * + COUNT ( * ) * + MIN ( ALL - 95 ), - + 9 ) * + 94 + - 41 + - ( + 44 ) AS col0
----
6495

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT 41 * - - COALESCE ( - 5, + - 4 * 27 + 6 ) * 89 - + 47 * COUNT( * )
----
-18292

skipif mysql # not compatible
query I rowsort label-6074
SELECT 41 * - - COALESCE ( - 5, + - 4 * 27 + 6 ) * 89 - + 47 * COUNT ( * )
----
-18292

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

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT COUNT ( * ) / - 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT DISTINCT - 81 + - CAST( - 17 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT - 81 + - CAST ( - 17 AS INTEGER )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6077
SELECT ALL MAX( ALL ( + 3 ) ) * - 20 - CAST( + - COALESCE ( + 37, - 98, - 4, + - CASE WHEN - COUNT( * ) IS NOT NULL THEN + - COUNT( * ) / - - NULLIF ( - 52, + 3 - - 77 ) END ) AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL MAX ( ALL ( + 3 ) ) * - 20 - CAST ( + - COALESCE ( + 37, - 98, - 4, + - CASE WHEN - COUNT ( * ) IS NOT NULL THEN + - COUNT ( * ) / - - NULLIF ( - 52, + 3 - - 77 ) END ) AS INTEGER )
----
-23

query I rowsort
SELECT + 6 * - + 56 * ( - 32 ) * + 88
----
946176

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT - NULLIF ( - 20, 83 - + COALESCE ( + COALESCE ( 32, + NULLIF ( + - COALESCE ( - + SUM( ALL - + 43 ), + 53, MAX( 2 ) * + - COUNT( * ) + + COUNT( * ) ), 40 + 56 + - - 55 * - COUNT( 79 ) - - 43 ) ), 27 ) + + 50 + 64 + - 3 * 27 / + 64 * + - 64 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6079
SELECT - NULLIF ( - 20, 83 - + COALESCE ( + COALESCE ( 32, + NULLIF ( + - COALESCE ( - + SUM ( ALL - + 43 ), + 53, MAX ( 2 ) * + - COUNT ( * ) + + COUNT ( * ) ), 40 + 56 + - - 55 * - COUNT ( 79 ) - - 43 ) ), 27 ) + + 50 + 64 + - 3 * 27 / + 64 * + - 64 ) AS col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6080
SELECT 69, - COALESCE ( - 69, + 52 + - CAST( + 17 AS SIGNED ) )
----
69
69

skipif mysql # not compatible
query II rowsort label-6080
SELECT 69, - COALESCE ( - 69, + 52 + - CAST ( + 17 AS INTEGER ) )
----
69
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6081
SELECT - CASE 79 WHEN - + COUNT( * ) THEN - 15 ELSE NULL END, 96 AS col2
----
NULL
96

skipif mysql # not compatible
query II rowsort label-6081
SELECT - CASE 79 WHEN - + COUNT ( * ) THEN - 15 ELSE NULL END, 96 AS col2
----
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6082
SELECT ALL NULLIF ( + - CAST( - 6 AS SIGNED ), + 88 ) * + 67
----
402

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL NULLIF ( + - CAST ( - 6 AS INTEGER ), + 88 ) * + 67
----
402

query I rowsort
SELECT - 53 + + 4
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT + 59 DIV - - ( 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6084
SELECT + 59 / - - ( 49 ) AS col0
----
1

query I rowsort
SELECT - 70 * + - 52
----
3640

query I rowsort
SELECT + 29 + + - 18 col1
----
11

query II rowsort
SELECT 93 AS col1, + 72
----
93
72

query I rowsort
SELECT + 99 + 50 + 3 AS col2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT + CASE + 37 WHEN + MAX( 82 ) * 19 * - 29 * + - 39 THEN 3 ELSE + 44 END + + 97 + + 66
----
207

skipif mysql # not compatible
query I rowsort label-6089
SELECT + CASE + 37 WHEN + MAX ( 82 ) * 19 * - 29 * + - 39 THEN 3 ELSE + 44 END + + 97 + + 66
----
207

query II rowsort
SELECT ALL 82 AS col0, + 22 * + 51
----
82
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT - NULLIF ( - 50, + 99 * - 95 + + 52 + - 84 * + + COUNT( + 89 ) / - 47 + + COUNT( * ) )
----
50

skipif mysql # not compatible
query I rowsort label-6091
SELECT - NULLIF ( - 50, + 99 * - 95 + + 52 + - 84 * + + COUNT ( + 89 ) / - 47 + + COUNT ( * ) )
----
50

query I rowsort
SELECT + 80 * + - 29 AS col2
----
-2320

query I rowsort
SELECT - 4 + - 57
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6094
SELECT DISTINCT + COALESCE ( - - 99, - 63 * - 35 - - 37 + 6 * + COUNT( * ) - 83 + 5 + - COUNT( * ) * - 35 + - + 55 DIV 41 + + 53 * + - 36 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-6094
SELECT DISTINCT + COALESCE ( - - 99, - 63 * - 35 - - 37 + 6 * + COUNT ( * ) - 83 + 5 + - COUNT ( * ) * - 35 + - + 55 / 41 + + 53 * + - 36 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT - + 58 * - COUNT( * ) col1
----
58

skipif mysql # not compatible
query I rowsort label-6095
SELECT - + 58 * - COUNT ( * ) col1
----
58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6097
SELECT DISTINCT - CAST( + - 41 AS SIGNED ) DIV 70 - - COUNT( * ) + 76 * - COUNT( * ) + + ( 6 ) * - 16 + - 77
----
-248

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT - CAST ( + - 41 AS INTEGER ) / 70 - - COUNT ( * ) + 76 * - COUNT ( * ) + + ( 6 ) * - 16 + - 77
----
-248

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT + + 70 * - + 45 * 37 - + 80 + 10 + + + 46 DIV 89
----
-116620

skipif mysql # not compatible
query I rowsort label-6098
SELECT + + 70 * - + 45 * 37 - + 80 + 10 + + + 46 / 89
----
-116620

query I rowsort
SELECT - - 31 - + - 69 AS col2
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-6100
SELECT ALL + 92 DIV - 4
----
-23

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL + 92 / - 4
----
-23

query II rowsort
SELECT - 38 col1, 35
----
-38
35

query II rowsort
SELECT - 95 + - + 30 col2, 8 + - 61
----
-125
-53

query I rowsort
SELECT ALL - 1 * 45 col1
----
-45

query I rowsort
SELECT - 9 + - + 36
----
-45

query I rowsort
SELECT ALL + 19 * + 93 + 16 AS col0
----
1783

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT - ( 46 ) * + COUNT( * ) + - - 84 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-6106
SELECT - ( 46 ) * + COUNT ( * ) + - - 84 AS col2
----
38

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

skipif mysql # not compatible
query I rowsort label-6107
SELECT + MAX ( 91 )
----
91

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

query I rowsort
SELECT NULLIF ( - 85, + 59 ) AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT DISTINCT CAST( - 38 AS SIGNED ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT CAST ( - 38 AS INTEGER ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT COALESCE ( COUNT( + 2 ), 70 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6111
SELECT COALESCE ( COUNT ( + 2 ), 70 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT MAX( DISTINCT - - 33 ) + - 34
----
-1

skipif mysql # not compatible
query I rowsort label-6112
SELECT MAX ( DISTINCT - - 33 ) + - 34
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT ALL + COUNT( * ) - - - ( 32 ) * - 17 * + COUNT( * ) * 64
----
34817

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL + COUNT ( * ) - - - ( 32 ) * - 17 * + COUNT ( * ) * 64
----
34817

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT MIN( ALL 97 ) * + 15 AS col1
----
1455

skipif mysql # not compatible
query I rowsort label-6114
SELECT MIN ( ALL 97 ) * + 15 AS col1
----
1455

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT 5 * - - COUNT( * ) + - 70 + - 0 - - 81 + 28 * - - COUNT( DISTINCT + 11 )
----
44

skipif mysql # not compatible
query I rowsort label-6115
SELECT 5 * - - COUNT ( * ) + - 70 + - 0 - - 81 + 28 * - - COUNT ( DISTINCT + 11 )
----
44

query II rowsort
SELECT ALL 93 * 2, 44 AS col1
----
186
44

query II rowsort
SELECT DISTINCT 92 * - 72 col0, 96
----
-6624
96

query II rowsort
SELECT 59 * 95 AS col2, + 11 - 67 col1
----
5605
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-6119
SELECT - COALESCE ( + 28, - 25 DIV + - 89 ) DIV - COUNT( * ), 20 + + 11 * + 16 * + 64 * - CASE - MIN( DISTINCT - - 32 ) WHEN - + 87 * + COUNT( * ) - - - 82 THEN + COUNT( DISTINCT - 46 ) * + 76 DIV - 86 - 22 * + + 74 + - CAST( NULL AS DECIMAL ) - - ( + MIN( ALL - ( + CAST( 44 AS SIGNED ) ) ) ) + 62 END col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-6119
SELECT - COALESCE ( + 28, - 25 / + - 89 ) / - COUNT ( * ), 20 + + 11 * + 16 * + 64 * - CASE - MIN ( DISTINCT - - 32 ) WHEN - + 87 * + COUNT ( * ) - - - 82 THEN + COUNT ( DISTINCT - 46 ) * + 76 / - 86 - 22 * + + 74 + - CAST ( NULL AS REAL ) - - ( + MIN ( ALL - ( + CAST ( 44 AS INTEGER ) ) ) ) + 62 END col2
----
28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT - - NULLIF ( COUNT( + 42 ), 28 )
----
1

skipif mysql # not compatible
query I rowsort label-6120
SELECT - - NULLIF ( COUNT ( + 42 ), 28 )
----
1

query II rowsort
SELECT DISTINCT + - 31 * + 85 AS col1, COALESCE ( ( - - 21 ), 2 )
----
-2635
21

query II rowsort
SELECT DISTINCT + 95 + - - 22 * + - 11, 68 AS col2
----
-147
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6123
SELECT ALL - COUNT( * ) + - + 32 + 80 * + - 48 * + COUNT( * ) + + - 48 * + 95, - 15 * - - 40 AS col2
----
-8433
-600

skipif mysql # not compatible
query II rowsort label-6123
SELECT ALL - COUNT ( * ) + - + 32 + 80 * + - 48 * + COUNT ( * ) + + - 48 * + 95, - 15 * - - 40 AS col2
----
-8433
-600

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

skipif mysql # not compatible
query I rowsort label-6124
SELECT SUM ( ALL 71 )
----
71

query I rowsort
SELECT DISTINCT 83 + 22 AS col0
----
105

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

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

query I rowsort
SELECT DISTINCT - + 30 + 49
----
19

query I rowsort
SELECT ALL - + 80 - 91 AS col2
----
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-6129
SELECT ALL - MIN( ALL 12 ), - 42 col2
----
-12
-42

skipif mysql # not compatible
query II rowsort label-6129
SELECT ALL - MIN ( ALL 12 ), - 42 col2
----
-12
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT 35 DIV + + 21 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6130
SELECT 35 / + + 21 AS col0
----
1

query I rowsort
SELECT 19 * - 44 AS col1
----
-836

onlyif mysql # DIV for integer division: 
query I rowsort label-6132
SELECT 25 DIV + 12 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6132
SELECT 25 / + 12 AS col0
----
2

query I rowsort
SELECT ALL - 74 * 3 AS col2
----
-222

query II rowsort
SELECT 10, 71 col2
----
10
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6135
SELECT ALL 5 DIV 19 * - - 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL 5 / 19 * - - 3 AS col0
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6137
SELECT DISTINCT 18 AS col2, COALESCE ( - ( + - 22 ), + 61 ) + - - 91 DIV 99 * - 10 DIV - 41 AS col1
----
18
22

skipif mysql # not compatible
query II rowsort label-6137
SELECT DISTINCT 18 AS col2, COALESCE ( - ( + - 22 ), + 61 ) + - - 91 / 99 * - 10 / - 41 AS col1
----
18
22

query I rowsort
SELECT 60 * + ( + 83 ) * + 87
----
433260

query I rowsort
SELECT 69 - + ( - ( + 28 ) )
----
97

query I rowsort
SELECT 43 + - + 27
----
16

query I rowsort
SELECT 50 * + - COALESCE ( + - 73, - 7, - 46 ) AS col2
----
3650

query I rowsort
SELECT 53 + + 90 col1
----
143

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

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

query I rowsort
SELECT DISTINCT - 30 + 83
----
53

query I rowsort
SELECT ALL - 66 + + 64 - - ( + 55 ) AS col1
----
53

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

query I rowsort
SELECT DISTINCT + 50 + - NULLIF ( - 19, - 46 * + 55 ) AS col2
----
69

query I rowsort
SELECT 71 + 41 AS col0
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6149
SELECT NULLIF ( - + COUNT( * ), 61 ) / + CASE - 23 WHEN 94 / 91 * - 48 + CAST( NULL AS SIGNED ) + - 66 + - + 47 THEN NULL WHEN - 67 * - + 22 THEN 42 * + + 95 * + 37 WHEN - COUNT( * ) * - - COUNT( * ) * - + 94 * - 17 + + - COUNT( * ) THEN NULL END / + ( + 43 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6149
SELECT NULLIF ( - + COUNT ( * ), 61 ) / + CASE - 23 WHEN 94 / 91 * - 48 + CAST ( NULL AS INTEGER ) + - 66 + - + 47 THEN NULL WHEN - 67 * - + 22 THEN 42 * + + 95 * + 37 WHEN - COUNT ( * ) * - - COUNT ( * ) * - + 94 * - 17 + + - COUNT ( * ) THEN NULL END / + ( + 43 ) AS col1
----
NULL

query I rowsort
SELECT ALL - - 53 * + 33 AS col1
----
1749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6151
SELECT 23 + + CASE 44 WHEN 92 THEN 96 + + 35 WHEN - 87 THEN + CAST( NULL AS SIGNED ) * 30 + + 22 + - + CAST( NULL AS SIGNED ) WHEN - 28 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6151
SELECT 23 + + CASE 44 WHEN 92 THEN 96 + + 35 WHEN - 87 THEN + CAST ( NULL AS INTEGER ) * 30 + + 22 + - + CAST ( NULL AS INTEGER ) WHEN - 28 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - + ( NULLIF ( 53, + 10 ) )
----
-53

query II rowsort
SELECT DISTINCT - 19 * + - 21 - 87 + - 37 AS col0, 57 col0
----
275
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6154
SELECT ALL - SUM( ALL - + 15 ) * + + CAST( - ( - 31 ) AS SIGNED ) AS col0
----
465

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL - SUM ( ALL - + 15 ) * + + CAST ( - ( - 31 ) AS INTEGER ) AS col0
----
465

onlyif mysql # aggregate syntax: 
query II rowsort label-6155
SELECT + COALESCE ( - - 26, - - 63 ), COALESCE ( + 89, - 1, + SUM( - + 10 ) ) AS col1
----
26
89

skipif mysql # not compatible
query II rowsort label-6155
SELECT + COALESCE ( - - 26, - - 63 ), COALESCE ( + 89, - 1, + SUM ( - + 10 ) ) AS col1
----
26
89

query I rowsort
SELECT 2 * + 60 col1
----
120

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

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

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

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

query I rowsort
SELECT ALL - COALESCE ( + ( - + 95 ), - 14 ) AS col1
----
95

query I rowsort
SELECT 10 - - 89 + 20
----
119

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6162
SELECT CAST( NULL AS SIGNED ) - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT CAST ( NULL AS INTEGER ) - - 96
----
NULL

query I rowsort
SELECT ALL + 29 * + + 50 - 37 + 19
----
1432

onlyif mysql # aggregate syntax: 
query II rowsort label-6164
SELECT MIN( - 61 ) AS col1, - 67
----
-61
-67

skipif mysql # not compatible
query II rowsort label-6164
SELECT MIN ( - 61 ) AS col1, - 67
----
-61
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-6165
SELECT 32 DIV + - 67 + - 45 + + 66 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6165
SELECT 32 / + - 67 + - 45 + + 66 AS col1
----
21

query I rowsort
SELECT + 6 * - - 84 * - 73
----
-36792

query I rowsort
SELECT ALL 18 * + 78 AS col2
----
1404

query I rowsort
SELECT + 23 + + - ( - 2 ) * 94 AS col0
----
211

query I rowsort
SELECT ALL 29 * - 20 * + 30 * - 96
----
1670400

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT - 68 * + MIN( ALL - 0 ) + + 81
----
81

skipif mysql # not compatible
query I rowsort label-6170
SELECT - 68 * + MIN ( ALL - 0 ) + + 81
----
81

query I rowsort
SELECT ALL 64 * 59
----
3776

query I rowsort
SELECT ALL 82 * - 25 * - - NULLIF ( + 91, 68 ) AS col0
----
-186550

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

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

query I rowsort
SELECT ALL ( ( - + 83 ) ) + + + 18
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-6175
SELECT - 28 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-6175
SELECT - 28 / - 60
----
0

query II rowsort
SELECT + 40 * 18 AS col2, + 1 * 65
----
720
65

query I rowsort
SELECT - 46 + + 31
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT - ( + 67 ) + + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-6178
SELECT - ( + 67 ) + + COUNT ( * )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT DISTINCT + 98 + ( + COALESCE ( ( + 66 ), + 62, + 59, - - 96 * - - COUNT( DISTINCT - + 75 ) * - - 47 ) ) * - - 7
----
560

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT + 98 + ( + COALESCE ( ( + 66 ), + 62, + 59, - - 96 * - - COUNT ( DISTINCT - + 75 ) * - - 47 ) ) * - - 7
----
560

query I rowsort
SELECT ALL - 43 + - + 88 - 68 * 37
----
-2647

query I rowsort
SELECT + 10 * + 5 AS col2
----
50

query I rowsort
SELECT DISTINCT - 25 + 98 + 78
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT COALESCE ( - + COUNT( * ), - + 45 - - 80 ) + 58 col1
----
57

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT COALESCE ( - + COUNT ( * ), - + 45 - - 80 ) + 58 col1
----
57

query II rowsort
SELECT ALL - 20 + + + 21 AS col0, - 83
----
1
-83

query I rowsort
SELECT ALL + - 26 + - 8
----
-34

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

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

query I rowsort
SELECT ALL + ( + 94 ) - - 62 AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT DISTINCT + MAX( CASE WHEN - 87 IS NULL THEN + 63 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT + MAX ( CASE WHEN - 87 IS NULL THEN + 63 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT ( 39 ) AS col0
----
39

query I rowsort
SELECT ALL + + 46 - + 83
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT DISTINCT - 69 * - + MIN( DISTINCT 72 ) AS col0
----
4968

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT - 69 * - + MIN ( DISTINCT 72 ) AS col0
----
4968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6192
SELECT 64 * - CAST( + 23 AS SIGNED ) + + - NULLIF ( + + COUNT( * ), - + 42 + - - 11 ) AS col0
----
-1473

skipif mysql # not compatible
query I rowsort label-6192
SELECT 64 * - CAST ( + 23 AS INTEGER ) + + - NULLIF ( + + COUNT ( * ), - + 42 + - - 11 ) AS col0
----
-1473

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6194
SELECT - 54 * - + 32 * ( - COUNT( * ) ) + 13 - - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6194
SELECT - 54 * - + 32 * ( - COUNT ( * ) ) + 13 - - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6195
SELECT - 6 DIV + 20 * + ( - + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-6195
SELECT - 6 / + 20 * + ( - + 61 )
----
0

query I rowsort
SELECT DISTINCT - 1 * 23 * + 9
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT DISTINCT + MIN( ALL - - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT + MIN ( ALL - - 84 )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6198
SELECT ALL 70 DIV 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL 70 / 71 AS col0
----
0

query I rowsort
SELECT ALL + 9 * + 40 + 20 + - + ( 50 ) * + 6 - 7 * - 48 AS col1
----
416

query I rowsort
SELECT + 52 * + NULLIF ( + - 69, + 2 )
----
-3588

query I rowsort
SELECT - 64 - - 81 AS col0
----
17

query I rowsort
SELECT COALESCE ( + + 41, 31 * - 20 + 80 - + 32 + + 20 ) col2
----
41

query I rowsort
SELECT + 16 * + 77 AS col0
----
1232

query I rowsort
SELECT + 22 * - 86 * - 86 * - 89
----
-14481368

query II rowsort
SELECT + 34 - + 74 + - 50 * 53 * 49 - - 61 AS col0, + 62 * + 80
----
-129829
4960

query I rowsort
SELECT ALL 76 * 16 + + 64 AS col0
----
1280

query I rowsort
SELECT DISTINCT 38 * + + 26 + + 5 col0
----
993

query I rowsort
SELECT DISTINCT 10 * - 57 AS col2
----
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT + 87 + - 24 + - COUNT( * ) * 17 * - 64 col1
----
1151

skipif mysql # not compatible
query I rowsort label-6209
SELECT + 87 + - 24 + - COUNT ( * ) * 17 * - 64 col1
----
1151

query I rowsort
SELECT + 57 - + + 75 - 62 * - 99 * + 7 * 37 - - 80 * - 61 + 85 + + 39 AS col2
----
1584968

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT - + 89 - + COUNT( * ) * + ( 98 ) col2
----
-187

skipif mysql # not compatible
query I rowsort label-6212
SELECT - + 89 - + COUNT ( * ) * + ( 98 ) col2
----
-187

query I rowsort
SELECT + 14 + - 16 + + 71 - 2 AS col1
----
67

query II rowsort
SELECT 56, 1 + - 85 AS col2
----
56
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT + + 3 * - + CASE - + SUM( + 16 ) WHEN - - COALESCE ( 56, - 55 ) + - 46 / 14 THEN - - 66 ELSE - 80 * 67 + - 91 * - 36 * ( - 6 ) END
----
75048

skipif mysql # not compatible
query I rowsort label-6215
SELECT + + 3 * - + CASE - + SUM ( + 16 ) WHEN - - COALESCE ( 56, - 55 ) + - 46 / 14 THEN - - 66 ELSE - 80 * 67 + - 91 * - 36 * ( - 6 ) END
----
75048

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

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

query I rowsort
SELECT + + 54 + - 9
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6218
SELECT - ( + CAST( NULL AS SIGNED ) ) * + MAX( DISTINCT 78 ) * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT - ( + CAST ( NULL AS INTEGER ) ) * + MAX ( DISTINCT 78 ) * 86
----
NULL

query I rowsort
SELECT ALL 29 * + ( - - 8 ) - - + 5 * - 71
----
-123

query II rowsort
SELECT - 73 * + 74 * - - 34, 85 AS col0
----
-183668
85

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6222
SELECT DISTINCT - + 56 * 14 * + - 73 AS col1, + ( - - COUNT( * ) ) DIV - MAX( 90 ) + + COALESCE ( + - 5, - 24 )
----
57232
-5

skipif mysql # not compatible
query II rowsort label-6222
SELECT DISTINCT - + 56 * 14 * + - 73 AS col1, + ( - - COUNT ( * ) ) / - MAX ( 90 ) + + COALESCE ( + - 5, - 24 )
----
57232
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6223
SELECT ALL NULLIF ( - 21, + 43 * + + 77 * CAST( - 40 AS SIGNED ) )
----
-21

skipif mysql # not compatible
query I rowsort label-6223
SELECT ALL NULLIF ( - 21, + 43 * + + 77 * CAST ( - 40 AS INTEGER ) )
----
-21

query II rowsort
SELECT 80, 89 AS col1
----
80
89

query I rowsort
SELECT - 0 + 88
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6226
SELECT ( CASE ( - 57 ) WHEN - - 56 THEN NULL WHEN + + CAST( + ( CASE - 84 WHEN - - 32 + - + 86 THEN + 72 + + 81 * - + 25 + 41 * + 62 / 71 + + CAST( NULL AS DECIMAL ) ELSE NULL END ) AS SIGNED ) * + - 3 + - 42 * - + 34 * + MIN( + + 22 ) / + - 74 THEN - 16 ELSE NULL END ) * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6226
SELECT ( CASE ( - 57 ) WHEN - - 56 THEN NULL WHEN + + CAST ( + ( CASE - 84 WHEN - - 32 + - + 86 THEN + 72 + + 81 * - + 25 + 41 * + 62 / 71 + + CAST ( NULL AS REAL ) ELSE NULL END ) AS INTEGER ) * + - 3 + - 42 * - + 34 * + MIN ( + + 22 ) / + - 74 THEN - 16 ELSE NULL END ) * - 29
----
NULL

query I rowsort
SELECT - 17 * + - 94 + 43 + 37 + + 58 col0
----
1736

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT DISTINCT + SUM( ALL + 61 ) + + 52 AS col0
----
113

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT + SUM ( ALL + 61 ) + + 52 AS col0
----
113

query I rowsort
SELECT ALL - 6 + - + 94 AS col1
----
-100

query II rowsort
SELECT + 99 col0, 30 AS col0
----
99
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT - 60 * COUNT( 95 ) + + 26
----
-34

skipif mysql # not compatible
query I rowsort label-6231
SELECT - 60 * COUNT ( 95 ) + + 26
----
-34

query I rowsort
SELECT 69 - - 21 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT COUNT( * ) * + 6 + 70
----
76

skipif mysql # not compatible
query I rowsort label-6233
SELECT COUNT ( * ) * + 6 + 70
----
76

query I rowsort
SELECT DISTINCT - 97 + - 49 + COALESCE ( ( - + 52 ), 49 * + 3 )
----
-198

query I rowsort
SELECT ALL + 43 + 7 * - - ( - 95 ) * + 84
----
-55817

query II rowsort
SELECT 59 + 58 col0, 85
----
117
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6237
SELECT DISTINCT + MAX( DISTINCT ( 90 ) ) * + 63 * - + ( + - 78 ), NULLIF ( + 56, + 2 / 81 ) col2
----
442260
56

skipif mysql # not compatible
query II rowsort label-6237
SELECT DISTINCT + MAX ( DISTINCT ( 90 ) ) * + 63 * - + ( + - 78 ), NULLIF ( + 56, + 2 / 81 ) col2
----
442260
56

query II rowsort
SELECT ALL - 98 AS col2, 40 AS col2
----
-98
40

query I rowsort
SELECT 69 + 62
----
131

query I rowsort
SELECT DISTINCT - 98 * + + 45 AS col1
----
-4410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6241
SELECT ALL - 80 + 36 - CAST( + 28 AS SIGNED ) + - 51
----
-123

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - 80 + 36 - CAST ( + 28 AS INTEGER ) + - 51
----
-123

query II rowsort
SELECT + 34 AS col1, + ( + 1 ) col0
----
34
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6243
SELECT DISTINCT - COUNT( * ) col1, 74 + + COUNT( * ) + 38 - 67 + 19 * 53 DIV + COUNT( 16 )
----
-1
1053

skipif mysql # not compatible
query II rowsort label-6243
SELECT DISTINCT - COUNT ( * ) col1, 74 + + COUNT ( * ) + 38 - 67 + 19 * 53 / + COUNT ( 16 )
----
-1
1053

query II rowsort
SELECT + 88 AS col1, - 61
----
88
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT COALESCE ( - 79, ( - 57 ) * + 62 + - 12 + + 99 * - 45 * 37 * + 41 + + + 40 ) + + COUNT( * ) * 90
----
11

skipif mysql # not compatible
query I rowsort label-6245
SELECT COALESCE ( - 79, ( - 57 ) * + 62 + - 12 + + 99 * - 45 * 37 * + 41 + + + 40 ) + + COUNT ( * ) * 90
----
11

query I rowsort
SELECT 69 * - 53 AS col0
----
-3657

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6248
SELECT - COUNT( 46 ) * - - 86 - ( CASE + 28 WHEN + 15 THEN + CAST( NULL AS SIGNED ) - - COUNT( * ) * - 36 END ) + - - 97 * - 94 * 15 + + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6248
SELECT - COUNT ( 46 ) * - - 86 - ( CASE + 28 WHEN + 15 THEN + CAST ( NULL AS INTEGER ) - - COUNT ( * ) * - 36 END ) + - - 97 * - 94 * 15 + + + 28
----
NULL

query I rowsort
SELECT ALL - 38 - + + 59
----
-97

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

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL + COUNT ( DISTINCT - ( + - 4 ) ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6251
SELECT DISTINCT + 35 * - 87, + 62 * COUNT( * ) + - NULLIF ( + COUNT( * ), + + 43 / - + ( - + CAST( NULL AS SIGNED ) ) * + 80 * - - CAST( NULL AS SIGNED ) ) col0
----
-3045
61

skipif mysql # not compatible
query II rowsort label-6251
SELECT DISTINCT + 35 * - 87, + 62 * COUNT ( * ) + - NULLIF ( + COUNT ( * ), + + 43 / - + ( - + CAST ( NULL AS INTEGER ) ) * + 80 * - - CAST ( NULL AS INTEGER ) ) col0
----
-3045
61

query II rowsort
SELECT ALL + 51, + NULLIF ( - 68, + 69 * + 51 + 87 ) col2
----
51
-68

query II rowsort
SELECT - 69 AS col2, 28 AS col2
----
-69
28

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6255
SELECT 85 * + - 53 * + - 88 + + COUNT( * ) - + COUNT( ALL + - 99 ) + + CAST( COUNT( * ) AS SIGNED ) * 21 + - COALESCE ( + COUNT( * ), 62 / + - 70 ) + CAST( NULL AS SIGNED ) + + + 76 * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6255
SELECT 85 * + - 53 * + - 88 + + COUNT ( * ) - + COUNT ( ALL + - 99 ) + + CAST ( COUNT ( * ) AS INTEGER ) * 21 + - COALESCE ( + COUNT ( * ), 62 / + - 70 ) + CAST ( NULL AS INTEGER ) + + + 76 * - 34
----
NULL

query I rowsort
SELECT ALL - 86 * + 48 AS col1
----
-4128

query I rowsort
SELECT 87 - - 70 + + 12 + - 0 * + + 86 * + - 31 col1
----
169

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

skipif mysql # not compatible
query I rowsort label-6258
SELECT MIN ( + 40 )
----
40

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

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

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

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

query II rowsort
SELECT DISTINCT - 5, 32 col2
----
-5
32

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT 64 DIV + 35 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6262
SELECT 64 / + 35 AS col1
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6264
SELECT ALL 63 DIV + 21 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL 63 / + 21 AS col1
----
3

query II rowsort
SELECT ALL 86 AS col1, 38
----
86
38

query I rowsort
SELECT DISTINCT - 92 + - 46
----
-138

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6267
SELECT ALL CAST( NULL AS SIGNED ) + + CAST( + + 56 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL CAST ( NULL AS INTEGER ) + + CAST ( + + 56 AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT ALL - 74 + - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL - 74 + - COUNT ( * )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6269
SELECT COUNT( CAST( NULL AS SIGNED ) ), - 47 col2
----
0
-47

skipif mysql # not compatible
query II rowsort label-6269
SELECT COUNT ( CAST ( NULL AS INTEGER ) ), - 47 col2
----
0
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT COUNT( ( - 83 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6270
SELECT COUNT ( ( - 83 ) ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6271
SELECT CASE + COUNT( * ) WHEN - - 45 + + 27 THEN - 7 WHEN CAST( NULL AS SIGNED ) THEN NULL END / + 75 + - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT CASE + COUNT ( * ) WHEN - - 45 + + 27 THEN - 7 WHEN CAST ( NULL AS INTEGER ) THEN NULL END / + 75 + - 14 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 74 + + 0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL - 11 + ( + COALESCE ( 89, + - COUNT( * ) + - + 65, - SUM( ALL - 75 ) ) ) + 63 col0
----
141

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL - 11 + ( + COALESCE ( 89, + - COUNT ( * ) + - + 65, - SUM ( ALL - 75 ) ) ) + 63 col0
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-6275
SELECT ALL + 57 + + - MAX( 69 ) AS col2, + 8 / - 4 * - MIN( DISTINCT - 57 ) * - 45 + + - CASE - 67 WHEN + - 49 + 5 THEN + - 50 * - 14 * + ( - ( - 38 ) ) * + + 28 - - 13 + + 34 * 37 + 98 * + 78 - 99 END + + + COALESCE ( - COUNT( * ), - 86, + + COALESCE ( + 66, + 52 * 84 * - - ( + 75 ) * + 83 / + COUNT( * ) ) ) + - ( + - MAX( DISTINCT - 95 ) ) - - 61 / CASE 79 WHEN - MAX( ALL 60 ) THEN NULL ELSE 28 * + COUNT( * ) END col2
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-6275
SELECT ALL + 57 + + - MAX ( 69 ) AS col2, + 8 / - 4 * - MIN ( DISTINCT - 57 ) * - 45 + + - CASE - 67 WHEN + - 49 + 5 THEN + - 50 * - 14 * + ( - ( - 38 ) ) * + + 28 - - 13 + + 34 * 37 + 98 * + 78 - 99 END + + + COALESCE ( - COUNT ( * ), - 86, + + COALESCE ( + 66, + 52 * 84 * - - ( + 75 ) * + 83 / + COUNT ( * ) ) ) + - ( + - MAX ( DISTINCT - 95 ) ) - - 61 / CASE 79 WHEN - MAX ( ALL 60 ) THEN NULL ELSE 28 * + COUNT ( * ) END col2
----
-12
NULL

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

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

query I rowsort
SELECT ALL 93 - - 99
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6278
SELECT ALL + COALESCE ( - 39, 17 + + ( - 26 ) ) - + COALESCE ( + + COUNT( * ), + + 88 - - 98 + 15 + - - 53 * + COUNT( * ) ) * - SUM( - 10 ) DIV 81 + 63 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL + COALESCE ( - 39, 17 + + ( - 26 ) ) - + COALESCE ( + + COUNT ( * ), + + 88 - - 98 + 15 + - - 53 * + COUNT ( * ) ) * - SUM ( - 10 ) / 81 + 63 AS col1
----
24

query I rowsort
SELECT 94 * + + 51 AS col1
----
4794

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT COUNT( * ) * 24 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6280
SELECT COUNT ( * ) * 24 AS col1
----
24

query I rowsort
SELECT ALL + 21 * + - 56 AS col2
----
-1176

query I rowsort
SELECT ALL + 12 - - + 72 + + + 21
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT - 78 * 1 + - COUNT( * ) * - + 89
----
11

skipif mysql # not compatible
query I rowsort label-6283
SELECT - 78 * 1 + - COUNT ( * ) * - + 89
----
11

query I rowsort
SELECT ALL - - 61 col2
----
61

query I rowsort
SELECT - 11 * + 80 * - 71 - 77 AS col0
----
62403

query I rowsort
SELECT ALL + - 15 * + ( 37 )
----
-555

query I rowsort
SELECT + 28 * + - 48 + + 43
----
-1301

onlyif mysql # aggregate syntax: 
query II rowsort label-6288
SELECT 23 * COUNT( * ) AS col2, + 97 AS col2
----
23
97

skipif mysql # not compatible
query II rowsort label-6288
SELECT 23 * COUNT ( * ) AS col2, + 97 AS col2
----
23
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6289
SELECT CASE + + CASE 36 WHEN 44 THEN NULL WHEN - + 39 * CAST( - - 15 AS SIGNED ) THEN ( MIN( 6 ) ) END WHEN - + 48 DIV 48 * - 97 * 0 * + - 46 THEN NULL ELSE - 57 DIV - - 60 * - - 25 END DIV COALESCE ( - 15, + 8 )
----
0

skipif mysql # not compatible
query I rowsort label-6289
SELECT CASE + + CASE 36 WHEN 44 THEN NULL WHEN - + 39 * CAST ( - - 15 AS INTEGER ) THEN ( MIN ( 6 ) ) END WHEN - + 48 / 48 * - 97 * 0 * + - 46 THEN NULL ELSE - 57 / - - 60 * - - 25 END / COALESCE ( - 15, + 8 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6290
SELECT + - NULLIF ( + + 30, + 65 ) - + - 96 DIV + 68 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-6290
SELECT + - NULLIF ( + + 30, + 65 ) - + - 96 / + 68 AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6291
SELECT - 94 * - COUNT( * ), + CAST( NULL AS SIGNED ) + - 28 AS col0
----
94
NULL

skipif mysql # not compatible
query II rowsort label-6291
SELECT - 94 * - COUNT ( * ), + CAST ( NULL AS INTEGER ) + - 28 AS col0
----
94
NULL

query II rowsort
SELECT - - 76 + + 33 * - - 72 col0, - 18
----
2452
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT - SUM( DISTINCT - 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6293
SELECT - SUM ( DISTINCT - 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6294
SELECT + 82 + + ( ( - + 48 ) ) * 78 - 55 + + 1 DIV 38 - 63 + + 83 + SUM( + 61 )
----
-3636

skipif mysql # not compatible
query I rowsort label-6294
SELECT + 82 + + ( ( - + 48 ) ) * 78 - 55 + + 1 / 38 - 63 + + 83 + SUM ( + 61 )
----
-3636

query I rowsort
SELECT DISTINCT - - 60 + + 79 - + + 61 AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-6296
SELECT DISTINCT + + 97 + - 89, - SUM( - 42 ) + - - 98 * - 88 AS col1
----
8
-8582

skipif mysql # not compatible
query II rowsort label-6296
SELECT DISTINCT + + 97 + - 89, - SUM ( - 42 ) + - - 98 * - 88 AS col1
----
8
-8582

query I rowsort
SELECT DISTINCT - 88 + 85
----
-3

query I rowsort
SELECT ALL + 30 + - - 39 col0
----
69

query I rowsort
SELECT DISTINCT 89 + + 37 col0
----
126

query II rowsort
SELECT - 40, - 88 col0
----
-40
-88

query I rowsort
SELECT - 65 + - 89 AS col2
----
-154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT + ( + - 82 ) * ( - 35 ) + COUNT( * ) AS col2
----
2871

skipif mysql # not compatible
query I rowsort label-6303
SELECT + ( + - 82 ) * ( - 35 ) + COUNT ( * ) AS col2
----
2871

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT + NULLIF ( 19, - + 39 * - 25 * - 72 + 81 * - - 90 / + - AVG ( DISTINCT 32 ) ) + + COUNT( DISTINCT + - 90 )
----
20

skipif mysql # not compatible
query I rowsort label-6304
SELECT + NULLIF ( 19, - + 39 * - 25 * - 72 + 81 * - - 90 / + - AVG ( DISTINCT 32 ) ) + + COUNT ( DISTINCT + - 90 )
----
20

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT ALL 88 + - NULLIF ( 7, - - COUNT( DISTINCT - 89 ) * + 6 * + - 93 * + 49 - + + 98 )
----
81

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL 88 + - NULLIF ( 7, - - COUNT ( DISTINCT - 89 ) * + 6 * + - 93 * + 49 - + + 98 )
----
81

query I rowsort
SELECT + 94 * - + 27
----
-2538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT 79 * - 74 * CAST( - 85 AS SIGNED ) + + 32 + - 61 AS col1
----
496881

skipif mysql # not compatible
query I rowsort label-6309
SELECT 79 * - 74 * CAST ( - 85 AS INTEGER ) + + 32 + - 61 AS col1
----
496881

query I rowsort
SELECT DISTINCT 83 * ( - - 86 ) - - - 42
----
7096

onlyif mysql # DIV for integer division: 
query I rowsort label-6311
SELECT ALL 52 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL 52 / + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT + NULLIF ( - COUNT( * ), - + 60 + ( + COUNT( * ) ) ) * + 97 * + ( + COUNT( ALL - 26 ) ) * + 62 + - + COUNT( * ) + 36 AS col0
----
-5979

skipif mysql # not compatible
query I rowsort label-6312
SELECT + NULLIF ( - COUNT ( * ), - + 60 + ( + COUNT ( * ) ) ) * + 97 * + ( + COUNT ( ALL - 26 ) ) * + 62 + - + COUNT ( * ) + 36 AS col0
----
-5979

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6313
SELECT ALL 45 * - + 58 * + 17 * + 89 / + CASE - 4 WHEN - 40 THEN + ( + 17 ) / - 25 + - AVG ( ALL + 56 ) * + 33 WHEN - 26 - + 72 * - COALESCE ( - AVG ( + 4 ), + 79 * + 73 * + 25 + ( + ( ( + COALESCE ( - ( + 2 ), - 51 * - CASE - 81 WHEN - 19 THEN 73 + - 82 WHEN + + 73 + - CAST( NULL AS DECIMAL ) * + - 27 THEN - + 42 END + - + CAST( NULL AS SIGNED ) + 66 / - 60 ) ) ) ) * 31 + 33, + CAST( NULL AS SIGNED ) * 31 ) THEN NULL END * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL 45 * - + 58 * + 17 * + 89 / + CASE - 4 WHEN - 40 THEN + ( + 17 ) / - 25 + - AVG ( ALL + 56 ) * + 33 WHEN - 26 - + 72 * - COALESCE ( - AVG ( + 4 ), + 79 * + 73 * + 25 + ( + ( ( + COALESCE ( - ( + 2 ), - 51 * - CASE - 81 WHEN - 19 THEN 73 + - 82 WHEN + + 73 + - CAST ( NULL AS REAL ) * + - 27 THEN - + 42 END + - + CAST ( NULL AS INTEGER ) + 66 / - 60 ) ) ) ) * 31 + 33, + CAST ( NULL AS INTEGER ) * 31 ) THEN NULL END * + 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6314
SELECT + 13 * - 36 * + COUNT( * ) + - 91 + + SUM( ALL 79 ), CASE 87 WHEN 7 THEN NULL WHEN + 89 * - CAST( NULL AS SIGNED ) + + 28 THEN + 58 ELSE NULL END + - 11 col2
----
-480
NULL

skipif mysql # not compatible
query II rowsort label-6314
SELECT + 13 * - 36 * + COUNT ( * ) + - 91 + + SUM ( ALL 79 ), CASE 87 WHEN 7 THEN NULL WHEN + 89 * - CAST ( NULL AS INTEGER ) + + 28 THEN + 58 ELSE NULL END + - 11 col2
----
-480
NULL

query I rowsort
SELECT - 57 - 63
----
-120

query I rowsort
SELECT 17 * + 49 + - 84 * + 45
----
-2947

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT + COALESCE ( + CASE WHEN - COUNT( * ) IS NULL THEN - 33 WHEN 60 NOT BETWEEN - 74 * - - COUNT( * ) + + + 53 AND + - 88 + - 4 + 29 THEN + 5 + + 50 ELSE + - 12 END, + ( - COUNT( * ) ) - + + COALESCE ( + + COUNT( * ), + + CASE - - 28 WHEN - 22 / + 22 - + COALESCE ( - MAX( - CASE WHEN NOT NULL IS NULL THEN + 37 ELSE NULL END ), + + COUNT( * ) + 35, - ( COUNT( * ) ) + + 20 ) THEN + 86 WHEN - 29 + + COUNT( * ) THEN - - 62 - - COUNT( * ) * 66 END ) * COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-6317
SELECT + COALESCE ( + CASE WHEN - COUNT ( * ) IS NULL THEN - 33 WHEN 60 NOT BETWEEN - 74 * - - COUNT ( * ) + + + 53 AND + - 88 + - 4 + 29 THEN + 5 + + 50 ELSE + - 12 END, + ( - COUNT ( * ) ) - + + COALESCE ( + + COUNT ( * ), + + CASE - - 28 WHEN - 22 / + 22 - + COALESCE ( - MAX ( - CASE WHEN NOT NULL IS NULL THEN + 37 ELSE NULL END ), + + COUNT ( * ) + 35, - ( COUNT ( * ) ) + + 20 ) THEN + 86 WHEN - 29 + + COUNT ( * ) THEN - - 62 - - COUNT ( * ) * 66 END ) * COUNT ( * ) )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT CASE WHEN NOT + 0 IS NULL THEN NULL WHEN NOT - COUNT( * ) IN ( 53 ) THEN NULL ELSE NULLIF ( - - 23, - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT CASE WHEN NOT + 0 IS NULL THEN NULL WHEN NOT - COUNT ( * ) IN ( 53 ) THEN NULL ELSE NULLIF ( - - 23, - COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT - 38 * + 13 + - 69 AS col1
----
-563

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6320
SELECT + CAST( NULL AS DECIMAL ) + + - COUNT( - 27 ) + + COUNT( * ) AS col1, 72 * + - 30 AS col1
----
NULL
-2160

skipif mysql # not compatible
query II rowsort label-6320
SELECT + CAST ( NULL AS REAL ) + + - COUNT ( - 27 ) + + COUNT ( * ) AS col1, 72 * + - 30 AS col1
----
NULL
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT DISTINCT 55 * - 17 + COUNT( * ) AS col0
----
-934

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT 55 * - 17 + COUNT ( * ) AS col0
----
-934

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT - 83 * - 94 + - + 37 + - 75 * + 31 * + COUNT( * ) + - 50
----
5390

skipif mysql # not compatible
query I rowsort label-6322
SELECT - 83 * - 94 + - + 37 + - 75 * + 31 * + COUNT ( * ) + - 50
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL + SUM( 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL + SUM ( 86 ) AS col0
----
86

query III rowsort
SELECT DISTINCT + 19 AS col1, ( 78 ) * - + 68, 25 AS col2
----
19
-5304
25

query II rowsort
SELECT + + 22, - 45 * - 18 + + 14 AS col0
----
22
824

query II rowsort
SELECT ALL + 66 AS col0, - 51
----
66
-51

query I rowsort
SELECT + 69 * + 9 AS col2
----
621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6328
SELECT + CASE + 88 WHEN - 4 * + 45 / + COUNT( * ) THEN NULL WHEN + + CAST( NULL AS SIGNED ) THEN 17 ELSE NULL END / + - CASE + - CAST( NULL AS SIGNED ) WHEN + ( + - 55 ) THEN COUNT( * ) * - + 79 * - 57 + 17 + - 13 END * COUNT( * ) / 59 + + 80 / + AVG ( + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6328
SELECT + CASE + 88 WHEN - 4 * + 45 / + COUNT ( * ) THEN NULL WHEN + + CAST ( NULL AS INTEGER ) THEN 17 ELSE NULL END / + - CASE + - CAST ( NULL AS INTEGER ) WHEN + ( + - 55 ) THEN COUNT ( * ) * - + 79 * - 57 + 17 + - 13 END * COUNT ( * ) / 59 + + 80 / + AVG ( + 69 )
----
NULL

query I rowsort
SELECT - NULLIF ( 16, - 64 + 86 ) col2
----
-16

query I rowsort
SELECT + 8 * - + 8 + ( - + 90 ) AS col2
----
-154

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

query I rowsort
SELECT ALL - 3 + + + 99 AS col1
----
96

query I rowsort
SELECT DISTINCT - 92 + 38 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT - 28 + + NULLIF ( + - 68, + 69 * - COUNT( ALL 60 ) * 56 )
----
-96

skipif mysql # not compatible
query I rowsort label-6334
SELECT - 28 + + NULLIF ( + - 68, + 69 * - COUNT ( ALL 60 ) * 56 )
----
-96

query I rowsort
SELECT - + 65 * 93 AS col1
----
-6045

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL - + 8 + ( ( - 68 ) ) * ( + MIN( ALL 89 ) )
----
-6060

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL - + 8 + ( ( - 68 ) ) * ( + MIN ( ALL 89 ) )
----
-6060

query I rowsort
SELECT DISTINCT + 1 * - 84 AS col0
----
-84

query I rowsort
SELECT - CASE + 34 WHEN - 76 THEN 17 END - + 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6339
SELECT ALL + 60, + CASE - 65 WHEN + COUNT( - - 99 ) THEN NULL WHEN - + CAST( NULL AS SIGNED ) THEN NULL ELSE + - CASE 6 WHEN - + 57 THEN NULL WHEN + 82 + - 67 + 47 THEN + 70 * + + 91 + - 80 ELSE NULL END / - COUNT( * ) * - + 24 * 42 + + 57 END * - 19 AS col2
----
60
NULL

skipif mysql # not compatible
query II rowsort label-6339
SELECT ALL + 60, + CASE - 65 WHEN + COUNT ( - - 99 ) THEN NULL WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE + - CASE 6 WHEN - + 57 THEN NULL WHEN + 82 + - 67 + 47 THEN + 70 * + + 91 + - 80 ELSE NULL END / - COUNT ( * ) * - + 24 * 42 + + 57 END * - 19 AS col2
----
60
NULL

query I rowsort
SELECT DISTINCT - 11 + + 87 * 20 AS col1
----
1729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6341
SELECT ALL - CAST( NULL AS SIGNED ) - + 29 + - 33 * CAST( - COUNT( * ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL - CAST ( NULL AS INTEGER ) - + 29 + - 33 * CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6344
SELECT DISTINCT + 11 - + 98 AS col1, 4 * + 56 + COUNT( ALL - 64 ) AS col1
----
-87
225

skipif mysql # not compatible
query II rowsort label-6344
SELECT DISTINCT + 11 - + 98 AS col1, 4 * + 56 + COUNT ( ALL - 64 ) AS col1
----
-87
225

query I rowsort
SELECT + NULLIF ( - 90, 48 * 86 / 87 + - - COALESCE ( - 4, 94 ) ) - + 56 - + 80 * 26 col2
----
-2226

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL + 93 - - + COUNT( * ) * - + NULLIF ( + 79, + COUNT( * ) ) col0
----
14

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL + 93 - - + COUNT ( * ) * - + NULLIF ( + 79, + COUNT ( * ) ) col0
----
14

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

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

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

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

query I rowsort
SELECT - 34 * - 41
----
1394

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ALL 46 * - ( SUM( - ( - 77 ) ) ) AS col2
----
-3542

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL 46 * - ( SUM ( - ( - 77 ) ) ) AS col2
----
-3542

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT 48 DIV + + 11 + - - 28 col0
----
32

skipif mysql # not compatible
query I rowsort label-6351
SELECT 48 / + + 11 + - - 28 col0
----
32

query I rowsort
SELECT + 34 + 18 * + - 28
----
-470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT + 4 * + CAST( + 88 AS SIGNED ) AS col1
----
352

skipif mysql # not compatible
query I rowsort label-6353
SELECT + 4 * + CAST ( + 88 AS INTEGER ) AS col1
----
352

query I rowsort
SELECT + 10 * 74
----
740

query I rowsort
SELECT + COALESCE ( - - 73, + 78 ) AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6356
SELECT CAST( + CASE - 64 WHEN + - 7 THEN 5 / + 55 * + - 99 + - + CAST( + 70 AS SIGNED ) ELSE 35 END AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-6356
SELECT CAST ( + CASE - 64 WHEN + - 7 THEN 5 / + 55 * + - 99 + - + CAST ( + 70 AS INTEGER ) ELSE 35 END AS INTEGER )
----
35

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

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

query I rowsort
SELECT + 87 * - 77 * + 61 AS col2
----
-408639

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT ALL 27 * - CASE NULLIF ( - - 10, + - 63 ) WHEN - 84 + - 67 + 7 THEN + - 43 * - MIN( DISTINCT + - 43 ) + COUNT( + 58 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL 27 * - CASE NULLIF ( - - 10, + - 63 ) WHEN - 84 + - 67 + 7 THEN + - 43 * - MIN ( DISTINCT + - 43 ) + COUNT ( + 58 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6360
SELECT DISTINCT - ( - COUNT( + 81 ) ) DIV 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT - ( - COUNT ( + 81 ) ) / 65 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6361
SELECT ALL + + 45 DIV 86 + + - CASE + 20 WHEN - 6 * - - 34 THEN NULL ELSE - 14 END + + CAST( + COUNT( * ) AS SIGNED ) DIV + 49 + + - 81
----
-67

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL + + 45 / 86 + + - CASE + 20 WHEN - 6 * - - 34 THEN NULL ELSE - 14 END + + CAST ( + COUNT ( * ) AS INTEGER ) / + 49 + + - 81
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT - 14 DIV 86 + + + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6362
SELECT - 14 / 86 + + + 62 AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6363
SELECT ALL CASE + 45 WHEN + 24 THEN + 38 * 96 + + 83 WHEN 0 + - COUNT( * ) THEN NULL END + 77, + COALESCE ( + 46, - ( 21 ), 82 ) * - 43 AS col0
----
NULL
-1978

skipif mysql # not compatible
query II rowsort label-6363
SELECT ALL CASE + 45 WHEN + 24 THEN + 38 * 96 + + 83 WHEN 0 + - COUNT ( * ) THEN NULL END + 77, + COALESCE ( + 46, - ( 21 ), 82 ) * - 43 AS col0
----
NULL
-1978

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6364
SELECT DISTINCT - ( + + 74 ) + 99 + + + ( 25 ) + + 26 + - 68 DIV ( + 70 ) + + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT - ( + + 74 ) + 99 + + + ( 25 ) + + 26 + - 68 / ( + 70 ) + + COUNT ( * )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6365
SELECT ALL - CAST( + 93 AS SIGNED ) * + 24 col0
----
-2232

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL - CAST ( + 93 AS INTEGER ) * + 24 col0
----
-2232

query I rowsort
SELECT - 67 + - 95 AS col0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT ALL - - 72 + - 63 - 35 + + - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL - - 72 + - 63 - 35 + + - COUNT ( * )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-6368
SELECT ALL 73 + + 4 * 22 * - 29 - - 34 DIV 38 col1
----
-2479

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL 73 + + 4 * 22 * - 29 - - 34 / 38 col1
----
-2479

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT - 17 + CASE WHEN 38 IS NOT NULL THEN 70 END DIV + ( 4 )
----
0

skipif mysql # not compatible
query I rowsort label-6369
SELECT - 17 + CASE WHEN 38 IS NOT NULL THEN 70 END / + ( 4 )
----
0

query II rowsort
SELECT DISTINCT ( - + 62 ) AS col2, + 48 AS col2
----
-62
48

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6372
SELECT COUNT( * ) - + COUNT( * ), + 94 AS col1
----
0
94

skipif mysql # not compatible
query II rowsort label-6372
SELECT COUNT ( * ) - + COUNT ( * ), + 94 AS col1
----
0
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT ALL CASE 90 WHEN + COUNT( + 54 ) / 69 THEN NULL WHEN + 29 * + + 55 THEN NULL WHEN - - 87 THEN + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL CASE 90 WHEN + COUNT ( + 54 ) / 69 THEN NULL WHEN + 29 * + + 55 THEN NULL WHEN - - 87 THEN + 53 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6374
SELECT - 97 + - COUNT( * ) + + - 28 * - 18 + - NULLIF ( + 41, - CAST( NULL AS SIGNED ) ) + + 0 col1
----
365

skipif mysql # not compatible
query I rowsort label-6374
SELECT - 97 + - COUNT ( * ) + + - 28 * - 18 + - NULLIF ( + 41, - CAST ( NULL AS INTEGER ) ) + + 0 col1
----
365

query I rowsort
SELECT 82 - - ( + + 65 ) + 1 AS col2
----
148

query I rowsort
SELECT ALL - 24 - - 83 AS col2
----
59

query I rowsort
SELECT ALL - 15 * + 83
----
-1245

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT DISTINCT COUNT( * ) - - 2 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT COUNT ( * ) - - 2 AS col1
----
3

query I rowsort
SELECT 72 + - 28 - + + 88 + + + 69 + 28 * + ( - 66 ) * + + 65 * + + 87 + - 51 AS col2
----
-10450466

query I rowsort
SELECT ALL 76 * + NULLIF ( + 74, + 21 + 7 )
----
5624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6381
SELECT 82 + + CASE MIN( + 0 ) WHEN - CAST( + 80 AS SIGNED ) * 45 THEN NULL WHEN + 0 * - - COUNT( * ) * + 60 * 72 THEN NULL WHEN + - 41 THEN NULL ELSE ( CAST( NULL AS SIGNED ) ) END * ( 57 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT 82 + + CASE MIN ( + 0 ) WHEN - CAST ( + 80 AS INTEGER ) * 45 THEN NULL WHEN + 0 * - - COUNT ( * ) * + 60 * 72 THEN NULL WHEN + - 41 THEN NULL ELSE ( CAST ( NULL AS INTEGER ) ) END * ( 57 ) AS col1
----
NULL

query II rowsort
SELECT 27, + 69 AS col1
----
27
69

query I rowsort
SELECT 59 + + - 60 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6384
SELECT 98 DIV + 54 DIV + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6384
SELECT 98 / + 54 / + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT 69 + - - 13
----
82

query I rowsort
SELECT 78 + + 99 AS col2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT ALL - COUNT( * ) + - - 85 + + 12 * COALESCE ( + + 58, + MIN( 80 ) )
----
780

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL - COUNT ( * ) + - - 85 + + 12 * COALESCE ( + + 58, + MIN ( 80 ) )
----
780

query I rowsort
SELECT 59 - + + 50 AS col0
----
9

query I rowsort
SELECT - - 25 * + - 37 + + 97 * + 42 AS col1
----
3149

query I rowsort
SELECT + 8 + - + 64
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-6391
SELECT 8 DIV + + 30 * - ( + + 5 )
----
0

skipif mysql # not compatible
query I rowsort label-6391
SELECT 8 / + + 30 * - ( + + 5 )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6393
SELECT - CAST( + AVG ( 60 ) AS SIGNED ) + - - 60 * + - 67 * + SUM( DISTINCT - 8 ) - - - 61 + 15 DIV + 79
----
32039

skipif mysql # not compatible
query I rowsort label-6393
SELECT - CAST ( + AVG ( 60 ) AS INTEGER ) + - - 60 * + - 67 * + SUM ( DISTINCT - 8 ) - - - 61 + 15 / + 79
----
32039

query II rowsort
SELECT + - 0 AS col0, - ( 77 ) AS col1
----
0
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT ALL COUNT( * ) + - + 40
----
-39

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL COUNT ( * ) + - + 40
----
-39

query I rowsort
SELECT ALL + + COALESCE ( 81, 16 ) + - 41
----
40

query I rowsort
SELECT ALL 27 * - - 22
----
594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6398
SELECT DISTINCT + 76 / - - 11 * 97 * - + CAST( NULL AS SIGNED ) * + ( - 28 ) * 44 + 70 * - NULLIF ( - - 20, - 82 ) * 34 + - ( + 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT + 76 / - - 11 * 97 * - + CAST ( NULL AS INTEGER ) * + ( - 28 ) * 44 + 70 * - NULLIF ( - - 20, - 82 ) * 34 + - ( + 23 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 12 + + 18
----
6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6401
SELECT + 54 DIV + COUNT( ALL 97 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-6401
SELECT + 54 / + COUNT ( ALL 97 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT 56 * + - MAX( 35 ) + 83
----
-1877

skipif mysql # not compatible
query I rowsort label-6402
SELECT 56 * + - MAX ( 35 ) + 83
----
-1877

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT + 37 + MIN( ALL 61 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6403
SELECT + 37 + MIN ( ALL 61 ) AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6404
SELECT ALL - 51 * 16 * COALESCE ( + 84, 31 * - 28 ) * - COUNT( * ) * - + 39 * - CASE - + 56 WHEN 68 * ( + 59 ) / - 66 + 24 THEN 35 WHEN + CAST( 16 AS SIGNED ) THEN + 8 WHEN ( + + 40 ) THEN NULL ELSE + COUNT( * ) END - - - ( + COUNT( * ) ) + + 72 * + - 54
----
2669327

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL - 51 * 16 * COALESCE ( + 84, 31 * - 28 ) * - COUNT ( * ) * - + 39 * - CASE - + 56 WHEN 68 * ( + 59 ) / - 66 + 24 THEN 35 WHEN + CAST ( 16 AS INTEGER ) THEN + 8 WHEN ( + + 40 ) THEN NULL ELSE + COUNT ( * ) END - - - ( + COUNT ( * ) ) + + 72 * + - 54
----
2669327

query I rowsort
SELECT DISTINCT + 93 * - - 66 col2
----
6138

onlyif mysql # aggregate syntax: 
query II rowsort label-6406
SELECT + CASE 87 WHEN 5 THEN - COUNT( * ) ELSE 87 END AS col2, - 70
----
87
-70

skipif mysql # not compatible
query II rowsort label-6406
SELECT + CASE 87 WHEN 5 THEN - COUNT ( * ) ELSE 87 END AS col2, - 70
----
87
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6407
SELECT ( + 94 ) + + + 29 DIV - - 47 * 35 + 42 * COUNT( * ) + NULLIF ( + 73, 31 )
----
209

skipif mysql # not compatible
query I rowsort label-6407
SELECT ( + 94 ) + + + 29 / - - 47 * 35 + 42 * COUNT ( * ) + NULLIF ( + 73, 31 )
----
209

query II rowsort
SELECT - 6, - 12 + 80 col1
----
-6
68

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

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

query II rowsort
SELECT ALL 36, + ( 75 ) AS col0
----
36
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6411
SELECT COUNT( ALL - 89 ) * - CASE 9 WHEN 62 + - 87 * 96 THEN NULL ELSE + + 17 * + + 99 END, 80 * + + MAX( + 41 ) * - + 26 AS col1
----
-1683
-85280

skipif mysql # not compatible
query II rowsort label-6411
SELECT COUNT ( ALL - 89 ) * - CASE 9 WHEN 62 + - 87 * 96 THEN NULL ELSE + + 17 * + + 99 END, 80 * + + MAX ( + 41 ) * - + 26 AS col1
----
-1683
-85280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6412
SELECT ALL COUNT( * ) * - - 43 DIV ( 7 ) * - 37 AS col1
----
-222

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL COUNT ( * ) * - - 43 / ( 7 ) * - 37 AS col1
----
-222

query I rowsort
SELECT DISTINCT - 11 - + - COALESCE ( - - NULLIF ( + 22, 36 ), - 65 * + 80, 35 )
----
11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT CAST( + 40 AS SIGNED ) + 32
----
72

skipif mysql # not compatible
query I rowsort label-6415
SELECT CAST ( + 40 AS INTEGER ) + 32
----
72

query I rowsort
SELECT 62 - - + 14
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6417
SELECT 13 AS col0, + 21 + + - COUNT( * )
----
13
20

skipif mysql # not compatible
query II rowsort label-6417
SELECT 13 AS col0, + 21 + + - COUNT ( * )
----
13
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6418
SELECT ALL 23 DIV + + 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL 23 / + + 60 AS col2
----
0

query I rowsort
SELECT 14 + 72
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT DISTINCT + SUM( ALL - 29 ) * + - 22
----
638

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT + SUM ( ALL - 29 ) * + - 22
----
638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6421
SELECT DISTINCT 69 DIV + 72 DIV COUNT( DISTINCT 55 )
----
0

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT 69 / + 72 / COUNT ( DISTINCT 55 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT ALL + CASE - 81 WHEN + COUNT( * ) THEN 3 - + + 81 WHEN + 98 + - ( - ( - 20 ) ) THEN + + 62 END * + - 84 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL + CASE - 81 WHEN + COUNT ( * ) THEN 3 - + + 81 WHEN + 98 + - ( - ( - 20 ) ) THEN + + 62 END * + - 84 col0
----
NULL

query II rowsort
SELECT ALL 87 * - - 90 AS col2, - 36 * + 54
----
7830
-1944

query I rowsort
SELECT 4 * - 99
----
-396

query I rowsort
SELECT 7 - 26 * 64
----
-1657

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6426
SELECT - 51 DIV + 80 * + + MIN( 51 )
----
0

skipif mysql # not compatible
query I rowsort label-6426
SELECT - 51 / + 80 * + + MIN ( 51 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT ALL + SUM( ALL + 68 ) + - + 78 * 29 AS col1
----
-2194

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL + SUM ( ALL + 68 ) + - + 78 * 29 AS col1
----
-2194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6428
SELECT + CAST( + 19 AS SIGNED ) * 33 + + MAX( + - 49 )
----
578

skipif mysql # not compatible
query I rowsort label-6428
SELECT + CAST ( + 19 AS INTEGER ) * 33 + + MAX ( + - 49 )
----
578

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT DISTINCT SUM( DISTINCT - COALESCE ( + 85, + + 10 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT SUM ( DISTINCT - COALESCE ( + 85, + + 10 ) )
----
-85

query I rowsort
SELECT + - 68 * + - 40 * 35 + + 14 AS col2
----
95214

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6431
SELECT ALL + - ( + - CAST( NULL AS DECIMAL ) ) / + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL + - ( + - CAST ( NULL AS REAL ) ) / + 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6432
SELECT + 71 AS col2, COUNT( ALL - 59 ) * ( 77 )
----
71
77

skipif mysql # not compatible
query II rowsort label-6432
SELECT + 71 AS col2, COUNT ( ALL - 59 ) * ( 77 )
----
71
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6433
SELECT - 5 DIV + + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6433
SELECT - 5 / + + 36 AS col2
----
0

query I rowsort
SELECT ALL + + ( 82 ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6435
SELECT CASE - + 80 WHEN + 40 * COUNT( * ) + 30 + - 70 * 30 * - + CASE - COALESCE ( + 61, - - 51 * + - ( - + 73 ) - 80 + - - 83 / - NULLIF ( + 13, + 35 ) + + + 20 * 11 * + 51 + 58 + - ( 94 ) - + COUNT( * ) + 30 - 4 + - 13 * 19 * - 33 + + 91 * + 81 ) WHEN 32 - + - 23 THEN - CAST( NULL AS SIGNED ) / - AVG ( + 15 ) + 13 * - 57 ELSE + 63 END THEN + 9 WHEN 34 THEN 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT CASE - + 80 WHEN + 40 * COUNT ( * ) + 30 + - 70 * 30 * - + CASE - COALESCE ( + 61, - - 51 * + - ( - + 73 ) - 80 + - - 83 / - NULLIF ( + 13, + 35 ) + + + 20 * 11 * + 51 + 58 + - ( 94 ) - + COUNT ( * ) + 30 - 4 + - 13 * 19 * - 33 + + 91 * + 81 ) WHEN 32 - + - 23 THEN - CAST ( NULL AS INTEGER ) / - AVG ( + 15 ) + 13 * - 57 ELSE + 63 END THEN + 9 WHEN 34 THEN 30 END
----
NULL

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

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

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

query II rowsort
SELECT + 6 col0, 60 * 58
----
6
3480

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6439
SELECT + - COUNT( * ), 48 + + + 62 DIV + COUNT( * ) AS col1
----
-1
110

skipif mysql # not compatible
query II rowsort label-6439
SELECT + - COUNT ( * ), 48 + + + 62 / + COUNT ( * ) AS col1
----
-1
110

query I rowsort
SELECT - + 91 + + 65
----
-26

query I rowsort
SELECT + ( + + 47 ) * + + 41
----
1927

query I rowsort
SELECT ALL + 80 * - 79 * - 58
----
366560

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT NULLIF ( - 58, 82 ) * + 12 + + 67 + + 81 + + + SUM( DISTINCT + + 84 ) * + 22 + - 27 * + COUNT( * ) * - 21 AS col2
----
1867

skipif mysql # not compatible
query I rowsort label-6443
SELECT NULLIF ( - 58, 82 ) * + 12 + + 67 + + 81 + + + SUM ( DISTINCT + + 84 ) * + 22 + - 27 * + COUNT ( * ) * - 21 AS col2
----
1867

query I rowsort
SELECT - 79 * + ( + 46 ) col2
----
-3634

query I rowsort
SELECT + 5 * - - 49 - + - NULLIF ( NULLIF ( - 37, + - ( - 39 ) * + + 22 + - 40 ), + 88 ) AS col2
----
208

query II rowsort
SELECT ALL + 92 AS col2, 50
----
92
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT + ( + 12 ) + - 41 + + + 23 + + + 39 * COUNT( ALL - 17 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-6447
SELECT + ( + 12 ) + - 41 + + + 23 + + + 39 * COUNT ( ALL - 17 ) AS col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6448
SELECT ALL COUNT( * ) * - 63 * CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL COUNT ( * ) * - 63 * CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6449
SELECT + CAST( NULL AS SIGNED ) + COUNT( DISTINCT 86 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT 86 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6450
SELECT ALL + 98 DIV - + 64 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL + 98 / - + 64 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6451
SELECT + CAST( - + 51 AS SIGNED ) DIV - 29 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6451
SELECT + CAST ( - + 51 AS INTEGER ) / - 29 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT + COUNT( * ) + 69 * - NULLIF ( 8, - 67 ) * - 2 + + - 29
----
1076

skipif mysql # not compatible
query I rowsort label-6452
SELECT + COUNT ( * ) + 69 * - NULLIF ( 8, - 67 ) * - 2 + + - 29
----
1076

query I rowsort
SELECT 98 * + ( + 13 ) + + 67 AS col0
----
1341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6454
SELECT - COALESCE ( 52, + + COALESCE ( + ( + - COUNT( * ) ), - 22 * + CASE 29 WHEN + COUNT( DISTINCT + - 73 ) * - 35 * - 33 THEN - - 50 * - 20 WHEN + 8 * + + 40 * 14 + - 83 THEN + 35 ELSE - 96 * 73 * 28 + - ( + 3 ) DIV + CAST( NULL AS SIGNED ) END ) ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-6454
SELECT - COALESCE ( 52, + + COALESCE ( + ( + - COUNT ( * ) ), - 22 * + CASE 29 WHEN + COUNT ( DISTINCT + - 73 ) * - 35 * - 33 THEN - - 50 * - 20 WHEN + 8 * + + 40 * 14 + - 83 THEN + 35 ELSE - 96 * 73 * 28 + - ( + 3 ) / + CAST ( NULL AS INTEGER ) END ) ) AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6455
SELECT - 11 + ( - + 6 ) AS col0, 49 * + + COALESCE ( + 16, - COUNT( * ) ) + + 26 DIV 26 * 63 - 13 - + + 0 * + 4
----
-17
834

skipif mysql # not compatible
query II rowsort label-6455
SELECT - 11 + ( - + 6 ) AS col0, 49 * + + COALESCE ( + 16, - COUNT ( * ) ) + + 26 / 26 * 63 - 13 - + + 0 * + 4
----
-17
834

query I rowsort
SELECT ALL 23 * - ( + 38 ) AS col2
----
-874

query I rowsort
SELECT + 35 * - 72 * + ( - - 72 ) * - - 49 AS col0
----
-8890560

query I rowsort
SELECT DISTINCT 40 * + - 40 col1
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL COUNT( * ) + 45 * 48
----
2161

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL COUNT ( * ) + 45 * 48
----
2161

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6461
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), 5 - - - 93 * - 87, 96 - + 57, + 37 ) col2, 39
----
-8096
39

skipif mysql # not compatible
query II rowsort label-6461
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), 5 - - - 93 * - 87, 96 - + 57, + 37 ) col2, 39
----
-8096
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT DISTINCT 46 + - - COUNT( * ) - + 30
----
17

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT 46 + - - COUNT ( * ) - + 30
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT + 57 + NULLIF ( + 68, - CASE 74 WHEN 49 + + 82 THEN + - 11 * + - 59 ELSE - - 74 - + - CASE 52 WHEN + + 39 * - CASE + 8 WHEN + 70 THEN 9 WHEN 73 + - + 57 + + 56 THEN + 23 * + 66 ELSE NULL END + + + CASE + 12 WHEN - 79 THEN - 12 WHEN + - 83 * + MAX( + - 99 ) THEN NULL END + + MIN( DISTINCT + 81 ) + + 91 / + 30 * 94 + 84 THEN NULL WHEN MIN( ALL - 12 ) THEN - COUNT( * ) + - 35 - + ( - 83 ) * - ( 57 ) + - 73 * COALESCE ( - 8, - 53 + + 58 / 95 ) END END )
----
125

skipif mysql # not compatible
query I rowsort label-6463
SELECT + 57 + NULLIF ( + 68, - CASE 74 WHEN 49 + + 82 THEN + - 11 * + - 59 ELSE - - 74 - + - CASE 52 WHEN + + 39 * - CASE + 8 WHEN + 70 THEN 9 WHEN 73 + - + 57 + + 56 THEN + 23 * + 66 ELSE NULL END + + + CASE + 12 WHEN - 79 THEN - 12 WHEN + - 83 * + MAX ( + - 99 ) THEN NULL END + + MIN ( DISTINCT + 81 ) + + 91 / + 30 * 94 + 84 THEN NULL WHEN MIN ( ALL - 12 ) THEN - COUNT ( * ) + - 35 - + ( - 83 ) * - ( 57 ) + - 73 * COALESCE ( - 8, - 53 + + 58 / 95 ) END END )
----
125

query I rowsort
SELECT + 75 * - 97
----
-7275

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT ALL COUNT( DISTINCT 68 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL COUNT ( DISTINCT 68 ) + - COUNT ( * )
----
0

query I rowsort
SELECT + 63 + ( - + COALESCE ( - - 17, ( 90 ) + + 32 ) ) + 6
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6467
SELECT - CAST( 36 AS SIGNED ) AS col1, - 94 + ( + - 61 ) * CAST( NULL AS SIGNED )
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-6467
SELECT - CAST ( 36 AS INTEGER ) AS col1, - 94 + ( + - 61 ) * CAST ( NULL AS INTEGER )
----
-36
NULL

query I rowsort
SELECT + 39 + + 37
----
76

query II rowsort
SELECT ALL - 11 + + + ( - 66 ), 42 AS col0
----
-77
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6470
SELECT 81 / - 72 + + 32 * - COUNT( * ) + - - CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT 81 / - 72 + + 32 * - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL + SUM ( + 25 ) / 84 - + COUNT ( * ) + - COUNT ( * ) col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6472
SELECT DISTINCT - 23 DIV - 60 * + 70 - - 17 * ( - 77 ) - COUNT( * ) AS col0, NULLIF ( - - 60, - 29 )
----
-1310
60

skipif mysql # not compatible
query II rowsort label-6472
SELECT DISTINCT - 23 / - 60 * + 70 - - 17 * ( - 77 ) - COUNT ( * ) AS col0, NULLIF ( - - 60, - 29 )
----
-1310
60

query I rowsort
SELECT - + COALESCE ( - 31, + + ( 51 ), ( 44 ) ) + 50
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT - - 31 * - + 2 * COUNT( * ) * + 64 + - + 26 AS col2
----
-3994

skipif mysql # not compatible
query I rowsort label-6474
SELECT - - 31 * - + 2 * COUNT ( * ) * + 64 + - + 26 AS col2
----
-3994

query II rowsort
SELECT - 6 + 75, + ( - 45 ) AS col2
----
69
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT ALL + + NULLIF ( + CASE + 55 WHEN + 76 * - - 17 * 93 + - 0 THEN NULL ELSE COUNT( * ) END, + 75 + + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL + + NULLIF ( + CASE + 55 WHEN + 76 * - - 17 * 93 + - 0 THEN NULL ELSE COUNT ( * ) END, + 75 + + + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL + 68 * + 33
----
2244

query I rowsort
SELECT DISTINCT + + 36 * 74 + + 55 col0
----
2719

query I rowsort
SELECT COALESCE ( COALESCE ( - 74, + + 0 * + 11 * - 0 ), + - 45 ) col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6480
SELECT ALL + 94 * + CAST( 25 AS SIGNED ), + 99 AS col2
----
2350
99

skipif mysql # not compatible
query II rowsort label-6480
SELECT ALL + 94 * + CAST ( 25 AS INTEGER ), + 99 AS col2
----
2350
99

query I rowsort
SELECT + 17 + 10 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6482
SELECT - CAST( - 87 AS SIGNED ) * CAST( NULL AS SIGNED ) col1, 41 * - CASE - 7 WHEN - ( 43 ) + MAX( - 67 ) + 91 * + 32 THEN + + 64 * 12 + 64 / CAST( NULL AS SIGNED ) + + 79 * + 69 / - 93 END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6482
SELECT - CAST ( - 87 AS INTEGER ) * CAST ( NULL AS INTEGER ) col1, 41 * - CASE - 7 WHEN - ( 43 ) + MAX ( - 67 ) + 91 * + 32 THEN + + 64 * 12 + 64 / CAST ( NULL AS INTEGER ) + + 79 * + 69 / - 93 END AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6483
SELECT - COUNT( * ) AS col1, - 98 - - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6483
SELECT - COUNT ( * ) AS col1, - 98 - - CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT ALL - 94 * + 48 * + - 2 AS col1
----
9024

query I rowsort
SELECT ALL + 15 * - 0 + + - 9 AS col1
----
-9

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

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

query I rowsort
SELECT - 99 + - 81
----
-180

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6489
SELECT ALL 69 DIV + 8 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL 69 / + 8 AS col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6490
SELECT DISTINCT 87 + 41 + - + 45 + 71 DIV 84
----
83

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT 87 + 41 + - + 45 + 71 / 84
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6491
SELECT DISTINCT - COALESCE ( - 58, - COUNT( * ) ) DIV + 53
----
1

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT - COALESCE ( - 58, - COUNT ( * ) ) / + 53
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT 97 - - 7 + - 64 + + 39 + + NULLIF ( + ( + 26 ), + 69 ) + CASE + MAX( - 43 ) WHEN - 34 * - 44 THEN NULL WHEN - - ( - - 23 ) THEN - COUNT( 61 ) * MIN( DISTINCT + 9 ) + + 13 ELSE + 76 END
----
181

skipif mysql # not compatible
query I rowsort label-6492
SELECT 97 - - 7 + - 64 + + 39 + + NULLIF ( + ( + 26 ), + 69 ) + CASE + MAX ( - 43 ) WHEN - 34 * - 44 THEN NULL WHEN - - ( - - 23 ) THEN - COUNT ( 61 ) * MIN ( DISTINCT + 9 ) + + 13 ELSE + 76 END
----
181

query I rowsort
SELECT 32 * - 48 AS col2
----
-1536

query I rowsort
SELECT ALL 33 * 37 AS col0
----
1221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6495
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + - NULLIF ( 42, + 61 * + 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + - NULLIF ( 42, + 61 * + 39 ) AS col2
----
NULL

query I rowsort
SELECT 22 * + - 25
----
-550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6497
SELECT ALL 10 - - - 54 + - 82 DIV COUNT( * )
----
-126

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL 10 - - - 54 + - 82 / COUNT ( * )
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6498
SELECT ALL + COALESCE ( + COUNT( * ), 21 DIV 62 )
----
1

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL + COALESCE ( + COUNT ( * ), 21 / 62 )
----
1

query II rowsort
SELECT DISTINCT 73 col1, - 88 * - 64 AS col0
----
73
5632

query II rowsort
SELECT ALL ( - - 0 ) - + 50 AS col2, 61 AS col2
----
-50
61

query I rowsort
SELECT 85 * - 54
----
-4590

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT + ( + CASE WHEN NOT - COUNT( * ) IS NOT NULL THEN - COUNT( - + ( - 17 ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT + ( + CASE WHEN NOT - COUNT ( * ) IS NOT NULL THEN - COUNT ( - + ( - 17 ) ) END )
----
NULL

query I rowsort
SELECT 21 * + 98 col0
----
2058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6504
SELECT + 34 * - 57 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6504
SELECT + 34 * - 57 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6505
SELECT - 52 AS col0, + ( - 41 ) * + 27 + - COALESCE ( + 92, - + COUNT( * ), + 41 )
----
-52
-1199

skipif mysql # not compatible
query II rowsort label-6505
SELECT - 52 AS col0, + ( - 41 ) * + 27 + - COALESCE ( + 92, - + COUNT ( * ), + 41 )
----
-52
-1199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6506
SELECT 1 / - + CAST( NULL AS SIGNED ) / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6506
SELECT 1 / - + CAST ( NULL AS INTEGER ) / 90
----
NULL

query I rowsort
SELECT ALL - + 46 * + 92 AS col0
----
-4232

query I rowsort
SELECT ALL ( + + ( - 91 ) ) * 36 * - 14
----
45864

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT DISTINCT + 70 * - + 22 + - COUNT( * )
----
-1541

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT + 70 * - + 22 + - COUNT ( * )
----
-1541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6510
SELECT 80 DIV 98 + + 66 * - COALESCE ( 91, + SUM( 87 ) ) * - + COALESCE ( + 1, - COUNT( * ), - 96 * + 58 - - 29 ) + - 73 AS col2
----
5933

skipif mysql # not compatible
query I rowsort label-6510
SELECT 80 / 98 + + 66 * - COALESCE ( 91, + SUM ( 87 ) ) * - + COALESCE ( + 1, - COUNT ( * ), - 96 * + 58 - - 29 ) + - 73 AS col2
----
5933

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6511
SELECT 24 DIV + + 42 * + NULLIF ( - 86, + ( - + MIN( + 59 ) ) * - + 48 + - 88 + + 42 DIV COUNT( * ) + - + 73 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6511
SELECT 24 / + + 42 * + NULLIF ( - 86, + ( - + MIN ( + 59 ) ) * - + 48 + - 88 + + 42 / COUNT ( * ) + - + 73 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT - 46 / 85 + - 89 + 94 * - - CASE + - 73 WHEN + 42 + 22 * 1 + + - ( + 90 ) - - 76 - + 13 * - 63 * 45 * - - 85 + + MAX( - 43 ) * 62 THEN + + ( - 89 ) WHEN - 3 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6512
SELECT - 46 / 85 + - 89 + 94 * - - CASE + - 73 WHEN + 42 + 22 * 1 + + - ( + 90 ) - - 76 - + 13 * - 63 * 45 * - - 85 + + MAX ( - 43 ) * 62 THEN + + ( - 89 ) WHEN - 3 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6513
SELECT 1 * ( - CAST( - CAST( - + ( - 88 ) AS SIGNED ) AS SIGNED ) )
----
88

skipif mysql # not compatible
query I rowsort label-6513
SELECT 1 * ( - CAST ( - CAST ( - + ( - 88 ) AS INTEGER ) AS INTEGER ) )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT ALL + 7 + 44 + - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL + 7 + 44 + - COUNT ( * )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6515
SELECT CAST( + + ( - COUNT( * ) ) AS SIGNED ) + - + COUNT( * ) + - 53 * + CAST( - 11 AS SIGNED ) * - - 12 + - 91 + NULLIF ( + + COUNT( * ), + NULLIF ( - 24, ( - 15 ) ) + + COUNT( * ) ) AS col1
----
6904

skipif mysql # not compatible
query I rowsort label-6515
SELECT CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) + - + COUNT ( * ) + - 53 * + CAST ( - 11 AS INTEGER ) * - - 12 + - 91 + NULLIF ( + + COUNT ( * ), + NULLIF ( - 24, ( - 15 ) ) + + COUNT ( * ) ) AS col1
----
6904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6516
SELECT CAST( NULL AS DECIMAL ) * - 18 / - NULLIF ( - MIN( DISTINCT + - CAST( NULL AS SIGNED ) ), + SUM( DISTINCT - 15 ) * 22 / - + ( AVG ( - 82 ) ) + + COUNT( * ) + + CAST( 14 AS SIGNED ) ) + + 48 + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT CAST ( NULL AS REAL ) * - 18 / - NULLIF ( - MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ), + SUM ( DISTINCT - 15 ) * 22 / - + ( AVG ( - 82 ) ) + + COUNT ( * ) + + CAST ( 14 AS INTEGER ) ) + + 48 + 87 AS col1
----
NULL

query I rowsort
SELECT 17 * + + 9 AS col1
----
153

query I rowsort
SELECT ALL - 35 + - ( 89 ) + + - 85 + + 84 * + - 56 AS col0
----
-4913

query I rowsort
SELECT DISTINCT - ( 80 ) col2
----
-80

query I rowsort
SELECT ALL 70 + + 81
----
151

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6521
SELECT CAST( NULL AS DECIMAL ) * + 25 + - ( + 0 ) * - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT CAST ( NULL AS REAL ) * + 25 + - ( + 0 ) * - 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT ALL + COUNT( * ) + - + 97
----
-96

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL + COUNT ( * ) + - + 97
----
-96

query I rowsort
SELECT 7 + 35 * - 50 + 22 AS col0
----
-1721

query I rowsort
SELECT ALL + 35 + + 60
----
95

query I rowsort
SELECT DISTINCT - 45 * + + 57 * 96
----
-246240

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT ALL - 72 + COUNT( * ) + - + 48 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL - 72 + COUNT ( * ) + - + 48 AS col2
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL - MIN( - + 47 ) * - 5
----
-235

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL - MIN ( - + 47 ) * - 5
----
-235

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

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) * 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT COUNT( - - 84 ) + + 45 + - 53 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6529
SELECT COUNT ( - - 84 ) + + 45 + - 53 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6530
SELECT ALL + CAST( + 33 AS SIGNED ) - + - 63 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL + CAST ( + 33 AS INTEGER ) - + - 63 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT DISTINCT - COUNT( * ) * - COALESCE ( + - 86, 97 + - 16 )
----
-86

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT - COUNT ( * ) * - COALESCE ( + - 86, 97 + - 16 )
----
-86

query I rowsort
SELECT 32 + - 77 * 11 AS col2
----
-815

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

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

query I rowsort
SELECT DISTINCT - 87 * 88 AS col2
----
-7656

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT ALL - - 7 - + MAX( ALL - 59 )
----
66

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL - - 7 - + MAX ( ALL - 59 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT MIN( DISTINCT 17 ) * + 76 AS col1
----
1292

skipif mysql # not compatible
query I rowsort label-6536
SELECT MIN ( DISTINCT 17 ) * + 76 AS col1
----
1292

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT ALL - - 82 DIV + 42
----
1

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL - - 82 / + 42
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6538
SELECT + CAST( 19 AS SIGNED ) + 78 * - + 0
----
19

skipif mysql # not compatible
query I rowsort label-6538
SELECT + CAST ( 19 AS INTEGER ) + 78 * - + 0
----
19

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

query I rowsort
SELECT DISTINCT + - 32 * + 60 + + + 96 AS col2
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT SUM( NULLIF ( - 58, + 31 ) ) + + + 83 - + 49 col0
----
-24

skipif mysql # not compatible
query I rowsort label-6541
SELECT SUM ( NULLIF ( - 58, + 31 ) ) + + + 83 - + 49 col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6542
SELECT CAST( + ( COUNT( * ) ) AS SIGNED ) * 61 * 50 AS col2
----
3050

skipif mysql # not compatible
query I rowsort label-6542
SELECT CAST ( + ( COUNT ( * ) ) AS INTEGER ) * 61 * 50 AS col2
----
3050

query I rowsort
SELECT 21 * + 29 AS col0
----
609

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT ALL - NULLIF ( - + 8, - ( + 5 ) * - COUNT( * ) * ( 15 ) ) * - 20 AS col1
----
-160

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL - NULLIF ( - + 8, - ( + 5 ) * - COUNT ( * ) * ( 15 ) ) * - 20 AS col1
----
-160

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

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

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

query I rowsort
SELECT + 98 * + + 58 + 15 AS col0
----
5699

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT ALL - + 27 * + - COUNT( * ) * + 33
----
891

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL - + 27 * + - COUNT ( * ) * + 33
----
891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6549
SELECT - COALESCE ( + + 41, + COUNT( * ) ) / + 98 + - + 93 + 45 * + 42 + CAST( - 20 AS SIGNED ) * - + CAST( NULL AS SIGNED ) / COUNT( * ) + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6549
SELECT - COALESCE ( + + 41, + COUNT ( * ) ) / + 98 + - + 93 + 45 * + 42 + CAST ( - 20 AS INTEGER ) * - + CAST ( NULL AS INTEGER ) / COUNT ( * ) + + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT ALL COUNT( * ) * 48 + - - 66
----
114

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL COUNT ( * ) * 48 + - - 66
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6551
SELECT ALL + 6 * - 34 + - + 45 + + 86 + 15 + - ( + CAST( + 44 AS SIGNED ) )
----
-192

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL + 6 * - 34 + - + 45 + + 86 + 15 + - ( + CAST ( + 44 AS INTEGER ) )
----
-192

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6553
SELECT ALL - 76 * + - 35 + + COUNT( * ) + + 88 * + 5 - - ( - COUNT( * ) ) DIV + + ( - 86 ) AS col0
----
3101

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL - 76 * + - 35 + + COUNT ( * ) + + 88 * + 5 - - ( - COUNT ( * ) ) / + + ( - 86 ) AS col0
----
3101

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT COUNT( ALL 59 )
----
1

skipif mysql # not compatible
query I rowsort label-6554
SELECT COUNT ( ALL 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT MIN( DISTINCT - - 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-6555
SELECT MIN ( DISTINCT - - 18 ) AS col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6556
SELECT DISTINCT 67 * + 57 * - 81 + 44 + 94 DIV 24 AS col1
----
-309292

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT 67 * + 57 * - 81 + 44 + 94 / 24 AS col1
----
-309292

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT ALL MAX( 63 ) * + 9 / - SUM( DISTINCT - CASE + 61 WHEN 98 + 94 THEN - + 83 WHEN - 36 THEN NULL END ) - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL MAX ( 63 ) * + 9 / - SUM ( DISTINCT - CASE + 61 WHEN 98 + 94 THEN - + 83 WHEN - 36 THEN NULL END ) - 56
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT ALL 41 * - COUNT( * ) + - ( MIN( DISTINCT + ( 70 ) ) ) AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL 41 * - COUNT ( * ) + - ( MIN ( DISTINCT + ( 70 ) ) ) AS col1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT DISTINCT 23 * + MAX( ALL + COALESCE ( + 78, 43, + 55 ) )
----
1794

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT 23 * + MAX ( ALL + COALESCE ( + 78, 43, + 55 ) )
----
1794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6561
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), 12 ) - + - SUM( ALL + - 18 ) * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-6561
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), 12 ) - + - SUM ( ALL + - 18 ) * 64
----
NULL

query II rowsort
SELECT + 52 * + ( 49 ) AS col2, + 27 AS col0
----
2548
27

onlyif mysql # aggregate syntax: 
query II rowsort label-6563
SELECT ALL + 71 AS col1, - SUM( ALL - ( 60 ) )
----
71
60

skipif mysql # not compatible
query II rowsort label-6563
SELECT ALL + 71 AS col1, - SUM ( ALL - ( 60 ) )
----
71
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6564
SELECT - 4 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-6564
SELECT - 4 / 94
----
0

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

skipif mysql # not compatible
query II rowsort label-6565
SELECT ALL COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT DISTINCT 15 - - 39 * + - 43 * - - 71 * + 33
----
-3929196

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT - MAX( ALL - 69 ) + + 84 + - + 6 col1
----
147

skipif mysql # not compatible
query I rowsort label-6567
SELECT - MAX ( ALL - 69 ) + + 84 + - + 6 col1
----
147

query I rowsort
SELECT ALL - - 79 * + 99 + 85
----
7906

query I rowsort
SELECT + + COALESCE ( - 96, + + ( + 31 ) * + + 73 * + 49 * - + 50 * 66 - + - 20 * + ( - 25 ) + + + 14 * - - 79 * 90 ) + 7 * + + 0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-6570
SELECT - + 19 * - SUM( ALL - 40 ) AS col0, 52 * - ( - 29 )
----
-760
1508

skipif mysql # not compatible
query II rowsort label-6570
SELECT - + 19 * - SUM ( ALL - 40 ) AS col0, 52 * - ( - 29 )
----
-760
1508

query I rowsort
SELECT - 89 * + 11
----
-979

query I rowsort
SELECT - 58 + - 30 AS col2
----
-88

query I rowsort
SELECT DISTINCT - 97 * - 16 * 40 AS col0
----
62080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6574
SELECT - ( 66 ) + - CASE + CAST( NULL AS SIGNED ) WHEN 99 * 85 - 19 * - + 62 * + COUNT( * ) THEN NULL WHEN + COUNT( * ) + + 65 THEN + COALESCE ( + 60, + 44 ) ELSE - COUNT( * ) DIV + - 5 END - - 77
----
11

skipif mysql # not compatible
query I rowsort label-6574
SELECT - ( 66 ) + - CASE + CAST ( NULL AS INTEGER ) WHEN 99 * 85 - 19 * - + 62 * + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) + + 65 THEN + COALESCE ( + 60, + 44 ) ELSE - COUNT ( * ) / + - 5 END - - 77
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6575
SELECT - 16 DIV + - 81
----
0

skipif mysql # not compatible
query I rowsort label-6575
SELECT - 16 / + - 81
----
0

query I rowsort
SELECT DISTINCT COALESCE ( 7, - 45 ) col1
----
7

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

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

query II rowsort
SELECT DISTINCT + 56 AS col0, 50
----
56
50

onlyif mysql # aggregate syntax: 
query II rowsort label-6579
SELECT - - 92 * - - COUNT( * ) + 56 AS col0, - 42 AS col2
----
148
-42

skipif mysql # not compatible
query II rowsort label-6579
SELECT - - 92 * - - COUNT ( * ) + 56 AS col0, - 42 AS col2
----
148
-42

query II rowsort
SELECT ALL - - 75 + + 16 * + 55 AS col2, + 75 AS col1
----
955
75

query I rowsort
SELECT DISTINCT + 54 + - 98 AS col2
----
-44

query I rowsort
SELECT + 88 * - 51 * - NULLIF ( + + 46, 67 + - 78 )
----
206448

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT + 2 * + + 89 * + 52 * - + 99 * - COUNT( + 12 )
----
916344

skipif mysql # not compatible
query I rowsort label-6583
SELECT + 2 * + + 89 * + 52 * - + 99 * - COUNT ( + 12 )
----
916344

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT COUNT( * ) * - - 3 - + 30 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-6584
SELECT COUNT ( * ) * - - 3 - + 30 AS col1
----
-27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6586
SELECT + ( - + 86 ) DIV 65 + + 36 - - 42
----
77

skipif mysql # not compatible
query I rowsort label-6586
SELECT + ( - + 86 ) / 65 + + 36 - - 42
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT ALL + COUNT( * ) * - - 2 * 83 AS col1
----
166

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL + COUNT ( * ) * - - 2 * 83 AS col1
----
166

query I rowsort
SELECT + 59 * 97 * - 93 col2
----
-532239

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6590
SELECT ALL + 62, CAST( NULL AS SIGNED ) AS col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-6590
SELECT ALL + 62, CAST ( NULL AS INTEGER ) AS col2
----
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT ALL - 40 * + + 14 - + COALESCE ( + NULLIF ( - + 56, 7 + - 54 ), + 40 * + 66 + 86 ) + COUNT( * ) * - 82
----
-586

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL - 40 * + + 14 - + COALESCE ( + NULLIF ( - + 56, 7 + - 54 ), + 40 * + 66 + 86 ) + COUNT ( * ) * - 82
----
-586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6592
SELECT CASE - 39 WHEN - CAST( - 65 AS SIGNED ) THEN NULL WHEN - 74 THEN NULL ELSE - - 46 END AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6592
SELECT CASE - 39 WHEN - CAST ( - 65 AS INTEGER ) THEN NULL WHEN - 74 THEN NULL ELSE - - 46 END AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6593
SELECT - ( - 57 ) * + ( CAST( + 95 AS SIGNED ) ) + - + 19 AS col0, - 12 * + 31
----
5396
-372

skipif mysql # not compatible
query II rowsort label-6593
SELECT - ( - 57 ) * + ( CAST ( + 95 AS INTEGER ) ) + - + 19 AS col0, - 12 * + 31
----
5396
-372

query II rowsort
SELECT ALL + 67 AS col1, COALESCE ( + - 73, 49 * - 11 + - ( - 25 ) )
----
67
-73

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6596
SELECT + COUNT( * ) + + COALESCE ( + 74, + + 19 ) + - MIN( ( - - 87 ) ) AS col0, 9 * + - ( - + 35 ) AS col2
----
-12
315

skipif mysql # not compatible
query II rowsort label-6596
SELECT + COUNT ( * ) + + COALESCE ( + 74, + + 19 ) + - MIN ( ( - - 87 ) ) AS col0, 9 * + - ( - + 35 ) AS col2
----
-12
315

query I rowsort
SELECT ALL ( + + 59 ) * 47
----
2773

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

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

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

skipif mysql # not compatible
query I rowsort label-6599
SELECT MAX ( ALL 52 )
----
52

query II rowsort
SELECT - 36 AS col0, - 52
----
-36
-52

query I rowsort
SELECT - 43 * ( - - 71 )
----
-3053

query I rowsort
SELECT + 87 * - 24 AS col1
----
-2088

query II rowsort
SELECT ALL + 73 AS col2, - 58
----
73
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-6604
SELECT - - 60, - 63 * + + COUNT( * ) AS col0
----
60
-63

skipif mysql # not compatible
query II rowsort label-6604
SELECT - - 60, - 63 * + + COUNT ( * ) AS col0
----
60
-63

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

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

query I rowsort
SELECT + + 71 - + 20 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT DISTINCT ( ( - CASE - 40 WHEN + 33 THEN AVG ( - 1 ) WHEN 69 / + 60 - + - 81 THEN - 88 * 73 + + - 38 * 56 / + - 78 - - 22 * 4 WHEN - 22 THEN COUNT( * ) ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT ( ( - CASE - 40 WHEN + 33 THEN AVG ( - 1 ) WHEN 69 / + 60 - + - 81 THEN - 88 * 73 + + - 38 * 56 / + - 78 - - 22 * 4 WHEN - 22 THEN COUNT ( * ) ELSE NULL END ) )
----
NULL

query II rowsort
SELECT ALL - 50 AS col2, 18 AS col2
----
-50
18

query I rowsort
SELECT + - 96 * 44
----
-4224

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6610
SELECT ALL 6 + + 50 AS col1, COUNT( * ) * 11 DIV + + 38 * - 44
----
56
0

skipif mysql # not compatible
query II rowsort label-6610
SELECT ALL 6 + + 50 AS col1, COUNT ( * ) * 11 / + + 38 * - 44
----
56
0

query I rowsort
SELECT ALL + + 35 + 96
----
131

query I rowsort
SELECT + 89 + 53 - - 42 AS col0
----
184

query I rowsort
SELECT DISTINCT + - 10 * 17 AS col2
----
-170

query I rowsort
SELECT + 3 + 60 - - 4 + 87 AS col2
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-6615
SELECT - 27, ( - - COUNT( * ) ) + 84 AS col0
----
-27
85

skipif mysql # not compatible
query II rowsort label-6615
SELECT - 27, ( - - COUNT ( * ) ) + 84 AS col0
----
-27
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6616
SELECT ALL - 50 + - + COALESCE ( - 41, + 32 DIV + COUNT( * ) + 90 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL - 50 + - + COALESCE ( - 41, + 32 / + COUNT ( * ) + 90 ) AS col0
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT DISTINCT ( - CASE 88 WHEN + - MIN( ( + + 79 ) ) + + COUNT( * ) THEN + - 39 END ) + 16 * 17 * 35 - + 27 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT ( - CASE 88 WHEN + - MIN ( ( + + 79 ) ) + + COUNT ( * ) THEN + - 39 END ) + 16 * 17 * 35 - + 27 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6619
SELECT DISTINCT COUNT( * ), - 8 AS col2
----
1
-8

skipif mysql # not compatible
query II rowsort label-6619
SELECT DISTINCT COUNT ( * ), - 8 AS col2
----
1
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT ALL - COUNT( * ) + - 88 + + 33
----
-56

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL - COUNT ( * ) + - 88 + + 33
----
-56

query I rowsort
SELECT ALL - - 30 + + - 77 + 44 * - 35 AS col1
----
-1587

query I rowsort
SELECT ALL + 49 * + + 42 AS col0
----
2058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6623
SELECT - CASE + - 43 WHEN - 63 THEN NULL WHEN - 38 THEN + 0 END / - 51 / + 48 + + CASE - ( + 85 ) WHEN - COUNT( DISTINCT 20 ) THEN ( 64 ) + + AVG ( ALL - + 85 ) END + + CAST( NULL AS SIGNED ) + 32 * + 28 / - 18 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT - CASE + - 43 WHEN - 63 THEN NULL WHEN - 38 THEN + 0 END / - 51 / + 48 + + CASE - ( + 85 ) WHEN - COUNT ( DISTINCT 20 ) THEN ( 64 ) + + AVG ( ALL - + 85 ) END + + CAST ( NULL AS INTEGER ) + 32 * + 28 / - 18 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6624
SELECT ALL + NULLIF ( COUNT( * ), + 74 ) DIV + - 9 + - 99 AS col1, 33 + + - 77
----
-99
-44

skipif mysql # not compatible
query II rowsort label-6624
SELECT ALL + NULLIF ( COUNT ( * ), + 74 ) / + - 9 + - 99 AS col1, 33 + + - 77
----
-99
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT 17 + + + ( - - 52 ) + COALESCE ( - 60, COUNT( * ), - + 40 )
----
9

skipif mysql # not compatible
query I rowsort label-6625
SELECT 17 + + + ( - - 52 ) + COALESCE ( - 60, COUNT ( * ), - + 40 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6626
SELECT 91 * + 28 DIV - ( + 2 )
----
-1274

skipif mysql # not compatible
query I rowsort label-6626
SELECT 91 * + 28 / - ( + 2 )
----
-1274

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT ALL + 13 / + MIN( + + CASE 28 WHEN - - 90 * 79 + 16 * 75 THEN + 93 * + 60 + - 45 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL + 13 / + MIN ( + + CASE 28 WHEN - - 90 * 79 + 16 * 75 THEN + 93 * + 60 + - 45 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT - 39 * - 48 * + 49 * - 81 * + MIN( 21 ) * COUNT( * ) + - COALESCE ( - COUNT( * ), - 62 )
----
-156029327

skipif mysql # not compatible
query I rowsort label-6628
SELECT - 39 * - 48 * + 49 * - 81 * + MIN ( 21 ) * COUNT ( * ) + - COALESCE ( - COUNT ( * ), - 62 )
----
-156029327

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6629
SELECT ALL + 41 - + MAX( DISTINCT 48 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL + 41 - + MAX ( DISTINCT 48 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6630
SELECT ALL - CASE + - 63 WHEN - 30 THEN NULL WHEN + + CAST( + 2 AS SIGNED ) * + CAST( 34 AS SIGNED ) + - 54 + + COALESCE ( - 37, - - 31 + - 12 + - 99 ) THEN - - COALESCE ( 61, - MAX( + 25 ) * + - CAST( NULL AS SIGNED ), + 56 * - COUNT( * ) ) END * + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL - CASE + - 63 WHEN - 30 THEN NULL WHEN + + CAST ( + 2 AS INTEGER ) * + CAST ( 34 AS INTEGER ) + - 54 + + COALESCE ( - 37, - - 31 + - 12 + - 99 ) THEN - - COALESCE ( 61, - MAX ( + 25 ) * + - CAST ( NULL AS INTEGER ), + 56 * - COUNT ( * ) ) END * + + 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6631
SELECT ALL - COUNT( * ) DIV - 19 AS col0, 5 AS col0
----
0
5

skipif mysql # not compatible
query II rowsort label-6631
SELECT ALL - COUNT ( * ) / - 19 AS col0, 5 AS col0
----
0
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6632
SELECT ALL ( - 92 ) * 81 + + - COUNT( DISTINCT + CAST( - 50 AS SIGNED ) )
----
-7453

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL ( - 92 ) * 81 + + - COUNT ( DISTINCT + CAST ( - 50 AS INTEGER ) )
----
-7453

query I rowsort
SELECT ALL - CASE + 45 WHEN 77 THEN 90 WHEN - + ( + 11 ) THEN + ( + 28 ) ELSE - + 93 END AS col0
----
93

query I rowsort
SELECT DISTINCT - 87 * - 89 AS col2
----
7743

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT ALL + 14 * 14 * + 36 * - MAX( + - CASE - 77 WHEN + + 5 + - 26 THEN 92 WHEN - CASE - + NULLIF ( + 18, - - 95 * 52 ) WHEN + 37 THEN + 41 WHEN ( - 16 ) * + ( - + 19 ) * 57 THEN NULL END / - 90 * - 18 / - + 59 THEN - 40 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL + 14 * 14 * + 36 * - MAX ( + - CASE - 77 WHEN + + 5 + - 26 THEN 92 WHEN - CASE - + NULLIF ( + 18, - - 95 * 52 ) WHEN + 37 THEN + 41 WHEN ( - 16 ) * + ( - + 19 ) * 57 THEN NULL END / - 90 * - 18 / - + 59 THEN - 40 END )
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-6636
SELECT 22 - + 95, + 36 - - MIN( + 58 ) AS col0, 63 * - COUNT( * ) AS col0
----
-73
94
-63

skipif mysql # not compatible
query III rowsort label-6636
SELECT 22 - + 95, + 36 - - MIN ( + 58 ) AS col0, 63 * - COUNT ( * ) AS col0
----
-73
94
-63

query I rowsort
SELECT CASE - 64 WHEN + 87 THEN + - 53 * - 10 END * + 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ( + - MAX( + 81 ) ) * + 26
----
-2106

skipif mysql # not compatible
query I rowsort label-6638
SELECT ( + - MAX ( + 81 ) ) * + 26
----
-2106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6639
SELECT DISTINCT + 80 + ( + COUNT( * ) ) * - CASE - 69 WHEN + 22 * 61 + + + MIN( + 54 ) - - CAST( NULL AS SIGNED ) + - 27 THEN 37 WHEN - COUNT( * ) THEN CAST( - - 26 AS SIGNED ) + 57 END * + CASE 65 WHEN - - 83 THEN NULL WHEN 46 + + MAX( DISTINCT - 8 ) THEN 48 END / - 87 * - 76 + 38 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + 80 + ( + COUNT ( * ) ) * - CASE - 69 WHEN + 22 * 61 + + + MIN ( + 54 ) - - CAST ( NULL AS INTEGER ) + - 27 THEN 37 WHEN - COUNT ( * ) THEN CAST ( - - 26 AS INTEGER ) + 57 END * + CASE 65 WHEN - - 83 THEN NULL WHEN 46 + + MAX ( DISTINCT - 8 ) THEN 48 END / - 87 * - 76 + 38 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6640
SELECT ALL - 5 + + CAST( NULL AS SIGNED ) + - - 79 + + + COUNT( * ) * + 72 - + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL - 5 + + CAST ( NULL AS INTEGER ) + - - 79 + + + COUNT ( * ) * + 72 - + + 46
----
NULL

query I rowsort
SELECT ALL + 47 + - 33
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-6642
SELECT CASE + COUNT( * ) WHEN - ( - 44 ) THEN NULL WHEN + 21 THEN + 30 ELSE NULL END - + 47 * - - 44, MAX( DISTINCT - + 47 ) * 12 * 47 col0
----
NULL
-26508

skipif mysql # not compatible
query II rowsort label-6642
SELECT CASE + COUNT ( * ) WHEN - ( - 44 ) THEN NULL WHEN + 21 THEN + 30 ELSE NULL END - + 47 * - - 44, MAX ( DISTINCT - + 47 ) * 12 * 47 col0
----
NULL
-26508

query I rowsort
SELECT DISTINCT + 78 + + + 56 + + - NULLIF ( 40, - 37 - + 90 ) + 42 * 8 * + + 5 * - 57 col1
----
-95666

onlyif mysql # aggregate syntax: 
query II rowsort label-6644
SELECT DISTINCT 46 + 89 col0, - COUNT( * )
----
135
-1

skipif mysql # not compatible
query II rowsort label-6644
SELECT DISTINCT 46 + 89 col0, - COUNT ( * )
----
135
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6645
SELECT ALL ( - 65 ) + - + COALESCE ( + - 28, - CAST( NULL AS SIGNED ) * + + 88 - 72, - 9 * + 57 + + + 59 + - COUNT( * ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL ( - 65 ) + - + COALESCE ( + - 28, - CAST ( NULL AS INTEGER ) * + + 88 - 72, - 9 * + 57 + + + 59 + - COUNT ( * ) ) AS col2
----
-37

query I rowsort
SELECT 54 * + - ( + 43 ) col2
----
-2322

query I rowsort
SELECT - 78 + + 81
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT ALL COUNT( 39 )
----
1

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL COUNT ( 39 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6649
SELECT ALL - 4 + - - COUNT( * ) * + MIN( ALL - + 58 ) DIV - 33
----
-3

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL - 4 + - - COUNT ( * ) * + MIN ( ALL - + 58 ) / - 33
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6650
SELECT 54 * + CAST( - 86 AS SIGNED ) AS col2
----
-4644

skipif mysql # not compatible
query I rowsort label-6650
SELECT 54 * + CAST ( - 86 AS INTEGER ) AS col2
----
-4644

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6652
SELECT DISTINCT - + SUM( ALL - 27 ) - - CAST( - ( - NULLIF ( - 41, + 96 ) ) AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT - + SUM ( ALL - 27 ) - - CAST ( - ( - NULLIF ( - 41, + 96 ) ) AS INTEGER )
----
-14

query I rowsort
SELECT ALL + 17 * 98 * + 71 AS col2
----
118286

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT ( - 51 ) - 82 * COUNT( * ) * - ( + - 8 ) AS col0
----
-707

skipif mysql # not compatible
query I rowsort label-6654
SELECT ( - 51 ) - 82 * COUNT ( * ) * - ( + - 8 ) AS col0
----
-707

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT 36 * + SUM( - 5 ) col0
----
-180

skipif mysql # not compatible
query I rowsort label-6655
SELECT 36 * + SUM ( - 5 ) col0
----
-180

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

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

query I rowsort
SELECT DISTINCT + 0 * 8 * 21 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT - 98 * - 59 - - 87 - + COUNT( * ) + + COUNT( * ) + + 60 AS col0
----
5929

skipif mysql # not compatible
query I rowsort label-6659
SELECT - 98 * - 59 - - 87 - + COUNT ( * ) + + COUNT ( * ) + + 60 AS col0
----
5929

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

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

query II rowsort
SELECT ALL - 3 AS col2, 2 AS col0
----
-3
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6662
SELECT ALL - COALESCE ( - - ( - 15 ), - 98, + 96 - - MIN( DISTINCT 59 ) - - 48 ) col1, - 56 * - 12 + + 10 AS col1
----
15
682

skipif mysql # not compatible
query II rowsort label-6662
SELECT ALL - COALESCE ( - - ( - 15 ), - 98, + 96 - - MIN ( DISTINCT 59 ) - - 48 ) col1, - 56 * - 12 + + 10 AS col1
----
15
682

query I rowsort
SELECT 46 * 64 + ( - + 5 )
----
2939

query I rowsort
SELECT 31 + - 71 AS col1
----
-40

query I rowsort
SELECT + 59 * - 71 - - - 28 - - 14 AS col0
----
-4203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6666
SELECT ALL - NULLIF ( CAST( SUM( + CAST( - 65 AS SIGNED ) ) AS SIGNED ), - ( 10 ) )
----
65

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL - NULLIF ( CAST ( SUM ( + CAST ( - 65 AS INTEGER ) ) AS INTEGER ), - ( 10 ) )
----
65

query I rowsort
SELECT ALL - 56 + + 91
----
35

query I rowsort
SELECT 41 + + 56
----
97

query I rowsort
SELECT DISTINCT - ( 75 ) col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6670
SELECT ALL + + CASE - ( + 91 ) WHEN - 18 * + - 79 / + + 41 THEN + 84 / 98 * CASE 31 WHEN + ( + 67 ) / - ( 4 ) * - ( 73 ) THEN NULL WHEN + ( + 75 ) / ( - ( + - 98 ) ) * - - 36 + 88 + + NULLIF ( 77, - 95 ) * 44 / - CAST( + + 47 AS SIGNED ) THEN + + 98 END END + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL + + CASE - ( + 91 ) WHEN - 18 * + - 79 / + + 41 THEN + 84 / 98 * CASE 31 WHEN + ( + 67 ) / - ( 4 ) * - ( 73 ) THEN NULL WHEN + ( + 75 ) / ( - ( + - 98 ) ) * - - 36 + 88 + + NULLIF ( 77, - 95 ) * 44 / - CAST ( + + 47 AS INTEGER ) THEN + + 98 END END + + 75
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT - - COUNT ( * ) + - - 66 AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6673
SELECT ALL - MAX( DISTINCT + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6674
SELECT - 9 + ( + + SUM( DISTINCT 82 ) ) - - 19 DIV + 94 + + 42
----
115

skipif mysql # not compatible
query I rowsort label-6674
SELECT - 9 + ( + + SUM ( DISTINCT 82 ) ) - - 19 / + 94 + + 42
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6675
SELECT DISTINCT + CAST( + 55 AS SIGNED ) * + 27 * + + 2
----
2970

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT + CAST ( + 55 AS INTEGER ) * + 27 * + + 2
----
2970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6676
SELECT ALL COUNT( * ) AS col2, - 19 / 43 + - + CASE + COALESCE ( - COALESCE ( + MIN( + 46 ), 38 + + + 51 * ( + CAST( - - 88 AS SIGNED ) ), 31 ), + 91 ) WHEN - 58 * + 38 THEN - 39 END * 98 * + 9 / 30 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6676
SELECT ALL COUNT ( * ) AS col2, - 19 / 43 + - + CASE + COALESCE ( - COALESCE ( + MIN ( + 46 ), 38 + + + 51 * ( + CAST ( - - 88 AS INTEGER ) ), 31 ), + 91 ) WHEN - 58 * + 38 THEN - 39 END * 98 * + 9 / 30 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT MIN( DISTINCT + 1 ) + + COALESCE ( + ( + ( - 20 ) ), - 8, + + COUNT( 59 ), - ( - 39 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-6677
SELECT MIN ( DISTINCT + 1 ) + + COALESCE ( + ( + ( - 20 ) ), - 8, + + COUNT ( 59 ), - ( - 39 ) )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6678
SELECT ALL - 75 - + + COUNT( * ) DIV + + SUM( DISTINCT - - 39 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL - 75 - + + COUNT ( * ) / + + SUM ( DISTINCT - - 39 ) AS col1
----
-75

query I rowsort
SELECT + 7 + 70 AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6680
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 20 * 9 * CAST( + CAST( - 47 AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 20 * 9 * CAST ( + CAST ( - 47 AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT + 34 * - ( - ( + - 2 ) ) AS col2
----
-68

query I rowsort
SELECT - + 92 + + 39 AS col0
----
-53

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6685
SELECT + 29 - - - 94 + - 53 DIV - + MIN( 63 ), 53 * - 21 + - 24 AS col1
----
-65
-1137

skipif mysql # not compatible
query II rowsort label-6685
SELECT + 29 - - - 94 + - 53 / - + MIN ( 63 ), 53 * - 21 + - 24 AS col1
----
-65
-1137

query I rowsort
SELECT + 6 + - + 25 col2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6687
SELECT DISTINCT COUNT( * ) DIV + 12 * - 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT COUNT ( * ) / + 12 * - 32 AS col0
----
0

query I rowsort
SELECT + 70 + 45
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-6689
SELECT DISTINCT 81 DIV + 35
----
2

skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT 81 / + 35
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6690
SELECT DISTINCT SUM( DISTINCT 52 ) DIV + MAX( DISTINCT + 38 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT SUM ( DISTINCT 52 ) / + MAX ( DISTINCT + 38 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6691
SELECT + COUNT( * ) + - 52 * + ( - 33 ) + - ( + - 23 ) + 17 * COUNT( * ) * + + 29, + 45 + - 4 AS col1
----
2233
41

skipif mysql # not compatible
query II rowsort label-6691
SELECT + COUNT ( * ) + - 52 * + ( - 33 ) + - ( + - 23 ) + 17 * COUNT ( * ) * + + 29, + 45 + - 4 AS col1
----
2233
41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT + NULLIF ( COALESCE ( + 18, + 49 + - 31, + 16 * - 15 ), NULLIF ( + 59, - 60 ) - - COUNT( * ) ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6693
SELECT + NULLIF ( COALESCE ( + 18, + 49 + - 31, + 16 * - 15 ), NULLIF ( + 59, - 60 ) - - COUNT ( * ) ) AS col1
----
18

query I rowsort
SELECT - 16 + ( 24 ) - 51
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6695
SELECT ALL 68 * NULLIF ( 82, - 80 ) + - - 76, COALESCE ( - 44, + + 9 * - - CAST( NULL AS SIGNED ) + 28 * - 0, + + 43 ) AS col2
----
5652
-44

skipif mysql # not compatible
query II rowsort label-6695
SELECT ALL 68 * NULLIF ( 82, - 80 ) + - - 76, COALESCE ( - 44, + + 9 * - - CAST ( NULL AS INTEGER ) + 28 * - 0, + + 43 ) AS col2
----
5652
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6696
SELECT ALL COUNT( * ) * - CAST( - + 47 AS DECIMAL ) + - CAST( NULL AS SIGNED ) * + COUNT( + - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL COUNT ( * ) * - CAST ( - + 47 AS REAL ) + - CAST ( NULL AS INTEGER ) * + COUNT ( + - 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT CASE + ( NULLIF ( ( - 43 ), + - 55 * - ( ( + - 88 ) ) * - 48 + - - ( - 68 ) * MIN( + 23 ) + 89 ) ) WHEN + COUNT( * ) THEN - + 87 * + 6 + + + 11 + - 55 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT CASE + ( NULLIF ( ( - 43 ), + - 55 * - ( ( + - 88 ) ) * - 48 + - - ( - 68 ) * MIN ( + 23 ) + 89 ) ) WHEN + COUNT ( * ) THEN - + 87 * + 6 + + + 11 + - 55 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 86 * - 24 AS col2
----
-2064

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT ALL - 54 * 31 + - COUNT( * ) + - + 46 AS col1
----
-1721

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL - 54 * 31 + - COUNT ( * ) + - + 46 AS col1
----
-1721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6700
SELECT DISTINCT - COUNT( * ) * + - 81 / + CAST( NULL AS SIGNED ) + 44 + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT - COUNT ( * ) * + - 81 / + CAST ( NULL AS INTEGER ) + 44 + 92 AS col1
----
NULL

query I rowsort
SELECT - 80 * + 64
----
-5120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT - + 59 * - COUNT( * ) * 77 * - + 24 - + + 87 + COALESCE ( + COUNT( * ), - 86, + - 2 ) * + 17 AS col0
----
-109102

skipif mysql # not compatible
query I rowsort label-6703
SELECT - + 59 * - COUNT ( * ) * 77 * - + 24 - + + 87 + COALESCE ( + COUNT ( * ), - 86, + - 2 ) * + 17 AS col0
----
-109102

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

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

query I rowsort
SELECT + - 84 col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6706
SELECT ALL + 20 * - - 29 + + COUNT( * ) - + ( - - CAST( - 98 AS SIGNED ) ) + CASE - 58 WHEN 86 * + + MAX( 44 ) + + 68 THEN - - 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL + 20 * - - 29 + + COUNT ( * ) - + ( - - CAST ( - 98 AS INTEGER ) ) + CASE - 58 WHEN 86 * + + MAX ( 44 ) + + 68 THEN - - 94 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6707
SELECT ALL + - NULLIF ( - 63, + 90 ) DIV + 52 AS col1, 61
----
1
61

skipif mysql # not compatible
query II rowsort label-6707
SELECT ALL + - NULLIF ( - 63, + 90 ) / + 52 AS col1, 61
----
1
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT - 96 - + + SUM( DISTINCT + 21 ) AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-6708
SELECT - 96 - + + SUM ( DISTINCT + 21 ) AS col1
----
-117

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT ALL + + COUNT( DISTINCT - - 1 ) - 45
----
-44

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL + + COUNT ( DISTINCT - - 1 ) - 45
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6711
SELECT - - 38 / - - CAST( NULL AS SIGNED ), + 14 * + + 97 * - 37 AS col1
----
NULL
-50246

skipif mysql # not compatible
query II rowsort label-6711
SELECT - - 38 / - - CAST ( NULL AS INTEGER ), + 14 * + + 97 * - 37 AS col1
----
NULL
-50246

query II rowsort
SELECT - COALESCE ( - + ( 96 ), - 4 ) AS col0, 12
----
96
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6713
SELECT - + 57 * + CAST( NULL AS SIGNED ) AS col0, 92 * - 97 AS col1
----
NULL
-8924

skipif mysql # not compatible
query II rowsort label-6713
SELECT - + 57 * + CAST ( NULL AS INTEGER ) AS col0, 92 * - 97 AS col1
----
NULL
-8924

query II rowsort
SELECT + 41 + - - 37 AS col1, - 27 + + + 33
----
78
6

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

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

query I rowsort
SELECT + 65 - - 62 AS col1
----
127

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

skipif mysql # not compatible
query I rowsort label-6717
SELECT DISTINCT ( - MAX ( 75 ) )
----
-75

query I rowsort
SELECT + 29 + - 68 AS col2
----
-39

query I rowsort
SELECT ALL 40 * + - 91 AS col2
----
-3640

onlyif mysql # aggregate syntax: 
query II rowsort label-6720
SELECT + 46 * COUNT( 18 ) AS col0, 20
----
46
20

skipif mysql # not compatible
query II rowsort label-6720
SELECT + 46 * COUNT ( 18 ) AS col0, 20
----
46
20

onlyif mysql # aggregate syntax: 
query II rowsort label-6721
SELECT - COALESCE ( - 9, 44 * + - 39, + 88 * - ( 29 ) + ( ( + + 97 ) ) ), COUNT( * ) * - 37 col2
----
9
-37

skipif mysql # not compatible
query II rowsort label-6721
SELECT - COALESCE ( - 9, 44 * + - 39, + 88 * - ( 29 ) + ( ( + + 97 ) ) ), COUNT ( * ) * - 37 col2
----
9
-37

query I rowsort
SELECT - 10 + 51 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT - NULLIF ( 79, + 38 + - 88 + - 73 * - - 69 * CASE 19 WHEN 1 THEN + COUNT( * ) END )
----
-79

skipif mysql # not compatible
query I rowsort label-6723
SELECT - NULLIF ( 79, + 38 + - 88 + - 73 * - - 69 * CASE 19 WHEN 1 THEN + COUNT ( * ) END )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6724
SELECT ALL CAST( NULL AS SIGNED ) / + - 30 + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL CAST ( NULL AS INTEGER ) / + - 30 + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT + CASE COALESCE ( - + 37, - + 47 ) WHEN + - 7 * 64 * + 77 / - - 85 + - 42 + COUNT( * ) THEN NULL WHEN + COUNT( * ) + + 25 + + 19 - + - ( + + 50 ) THEN + COUNT( * ) * 99 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6725
SELECT + CASE COALESCE ( - + 37, - + 47 ) WHEN + - 7 * 64 * + 77 / - - 85 + - 42 + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) + + 25 + + 19 - + - ( + + 50 ) THEN + COUNT ( * ) * 99 ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6727
SELECT DISTINCT - 27 DIV - 80 + - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT - 27 / - 80 + - + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6728
SELECT ALL + 37 AS col1, COUNT( * ) * + ( - - 77 ) AS col1
----
37
77

skipif mysql # not compatible
query II rowsort label-6728
SELECT ALL + 37 AS col1, COUNT ( * ) * + ( - - 77 ) AS col1
----
37
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6729
SELECT ALL COUNT( * ) * + + NULLIF ( + 88, 15 ) * 37 * + CAST( NULL AS DECIMAL ), + 68 AS col0
----
NULL
68

skipif mysql # not compatible
query II rowsort label-6729
SELECT ALL COUNT ( * ) * + + NULLIF ( + 88, 15 ) * 37 * + CAST ( NULL AS REAL ), + 68 AS col0
----
NULL
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6730
SELECT + ( + + 95 ) DIV + 56 col0
----
1

skipif mysql # not compatible
query I rowsort label-6730
SELECT + ( + + 95 ) / + 56 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6731
SELECT ALL 76 DIV + 89 + 46 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL 76 / + 89 + 46 AS col1
----
46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6733
SELECT 20 DIV + 68 + 41 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6733
SELECT 20 / + 68 + 41 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT + ( 95 ) + COALESCE ( - 1, CASE 48 WHEN SUM( ALL 74 ) / - 1 + + 9 * 83 THEN NULL ELSE - 23 * 65 END + 72 )
----
94

skipif mysql # not compatible
query I rowsort label-6734
SELECT + ( 95 ) + COALESCE ( - 1, CASE 48 WHEN SUM ( ALL 74 ) / - 1 + + 9 * 83 THEN NULL ELSE - 23 * 65 END + 72 )
----
94

query I rowsort
SELECT - 79 - + 9
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6736
SELECT ALL 31 DIV - 1 - 53
----
-84

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL 31 / - 1 - 53
----
-84

query I rowsort
SELECT ALL 96 * 27
----
2592

query I rowsort
SELECT ALL + 29 * + 66 - 68 AS col1
----
1846

query I rowsort
SELECT DISTINCT 31 * 88
----
2728

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT - 56 * + NULLIF ( 88 * 2, + COUNT( * ) ) + 34
----
-9822

skipif mysql # not compatible
query I rowsort label-6740
SELECT - 56 * + NULLIF ( 88 * 2, + COUNT ( * ) ) + 34
----
-9822

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ALL - MIN( DISTINCT + 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL - MIN ( DISTINCT + 54 ) AS col0
----
-54

query I rowsort
SELECT 7 * - 6 AS col0
----
-42

query I rowsort
SELECT 10 + - 78
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT 26 DIV 24 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6744
SELECT 26 / 24 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT + 30 * CASE + COUNT( * ) WHEN 94 - + COUNT( * ) / COUNT( * ) THEN 17 + 57 END + - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT + 30 * CASE + COUNT ( * ) WHEN 94 - + COUNT ( * ) / COUNT ( * ) THEN 17 + 57 END + - 13 AS col0
----
NULL

query I rowsort
SELECT 45 + - 1 * - ( 89 + - ( 73 ) ) AS col2
----
61

query I rowsort
SELECT ALL + ( 54 ) * - 90
----
-4860

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT 16 DIV - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6748
SELECT 16 / - 78 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6749
SELECT ALL COUNT( DISTINCT 67 ) DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL COUNT ( DISTINCT 67 ) / 43
----
0

query I rowsort
SELECT DISTINCT + 41 * 31 AS col2
----
1271

query I rowsort
SELECT 32 + - 8 * 20
----
-128

query I rowsort
SELECT 42 + 25 * 11 AS col1
----
317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6753
SELECT ALL - 96 * - CASE CAST( + 12 AS SIGNED ) WHEN - 86 THEN NULL WHEN + COUNT( * ) + + 52 / CASE NULLIF ( 2, 96 ) WHEN SUM( 49 ) + 81 THEN NULL WHEN COUNT( * ) THEN + CASE - CASE - 3 WHEN - CAST( NULL AS SIGNED ) * + 84 + 23 THEN NULL WHEN 31 THEN - 74 END WHEN - 41 THEN NULL WHEN - 85 THEN NULL WHEN + 26 THEN NULL WHEN 59 THEN ( + ( 15 ) ) ELSE - 66 END + 9 ELSE + 24 + 83 / + CAST( NULL AS SIGNED ) END THEN NULL WHEN + COUNT( * ) THEN 40 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL - 96 * - CASE CAST ( + 12 AS INTEGER ) WHEN - 86 THEN NULL WHEN + COUNT ( * ) + + 52 / CASE NULLIF ( 2, 96 ) WHEN SUM ( 49 ) + 81 THEN NULL WHEN COUNT ( * ) THEN + CASE - CASE - 3 WHEN - CAST ( NULL AS INTEGER ) * + 84 + 23 THEN NULL WHEN 31 THEN - 74 END WHEN - 41 THEN NULL WHEN - 85 THEN NULL WHEN + 26 THEN NULL WHEN 59 THEN ( + ( 15 ) ) ELSE - 66 END + 9 ELSE + 24 + 83 / + CAST ( NULL AS INTEGER ) END THEN NULL WHEN + COUNT ( * ) THEN 40 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( ( 5 ) ) * 73 col0
----
365

query I rowsort
SELECT 22 + 72 AS col2
----
94

query I rowsort
SELECT ALL - 23 + 41
----
18

query I rowsort
SELECT 32 + 85 AS col2
----
117

query I rowsort
SELECT 67 - 55 AS col2
----
12

query I rowsort
SELECT 41 * - 26 AS col1
----
-1066

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT COUNT( ALL ( + 96 ) ) + COUNT( * ) col1
----
2

skipif mysql # not compatible
query I rowsort label-6760
SELECT COUNT ( ALL ( + 96 ) ) + COUNT ( * ) col1
----
2

query I rowsort
SELECT 57 + 33 * + 86
----
2895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6762
SELECT ALL 51 * COALESCE ( 81 * COUNT( * ), - 46 * - 1, 70 * 36 + CAST( NULL AS SIGNED ) DIV - COUNT( * ) )
----
4131

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL 51 * COALESCE ( 81 * COUNT ( * ), - 46 * - 1, 70 * 36 + CAST ( NULL AS INTEGER ) / - COUNT ( * ) )
----
4131

query I rowsort
SELECT 67 + 45 * + 38 AS col0
----
1777

query I rowsort
SELECT ALL + 52 + - 21 AS col1
----
31

query I rowsort
SELECT DISTINCT + 34 * + 20 col2
----
680

query I rowsort
SELECT 56 * 11
----
616

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT - + MAX( 24 ) * 36 + 69
----
-795

skipif mysql # not compatible
query I rowsort label-6768
SELECT - + MAX ( 24 ) * 36 + 69
----
-795

query I rowsort
SELECT ALL - 37 - 50
----
-87

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

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

query I rowsort
SELECT ALL + + 44 * 9 AS col2
----
396

query I rowsort
SELECT ALL - - 82 * - 2
----
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-6773
SELECT ALL - 87 DIV - 20 col0
----
4

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL - 87 / - 20 col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT ALL - + COALESCE ( + 67, - 83 + - ( MAX( 85 ) ), + 1 )
----
-67

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL - + COALESCE ( + 67, - 83 + - ( MAX ( 85 ) ), + 1 )
----
-67

query I rowsort
SELECT 75 + + 9 * + 21
----
264

query I rowsort
SELECT - 17 * + 16 AS col0
----
-272

query I rowsort
SELECT - 87 * + ( - 63 * 1 )
----
5481

query I rowsort
SELECT + 92 * 18 AS col2
----
1656

query I rowsort
SELECT 24 - - 80 col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT + 54 * MAX( ALL - 38 ) AS col2
----
-2052

skipif mysql # not compatible
query I rowsort label-6780
SELECT + 54 * MAX ( ALL - 38 ) AS col2
----
-2052

query I rowsort
SELECT NULLIF ( - 87, 12 ) + - ( - 79 )
----
-8

query I rowsort
SELECT ALL - COALESCE ( NULLIF ( 50, 23 ), 13 * 95 ) AS col1
----
-50

query I rowsort
SELECT DISTINCT 2 * 10 AS col1
----
20

query I rowsort
SELECT ALL - 91 + + 82 AS col2
----
-9

query I rowsort
SELECT ALL + + 81 + + 81 AS col2
----
162

query I rowsort
SELECT ( 23 ) + + 15
----
38

query I rowsort
SELECT DISTINCT + 37 + + 92
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6788
SELECT DISTINCT - 83 + + NULLIF ( ( COUNT( * ) ), + ( 75 ) ) DIV - 24 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT - 83 + + NULLIF ( ( COUNT ( * ) ), + ( 75 ) ) / - 24 AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT 77 + 35 * - ( + ( - COUNT( * ) ) )
----
112

skipif mysql # not compatible
query I rowsort label-6789
SELECT 77 + 35 * - ( + ( - COUNT ( * ) ) )
----
112

query I rowsort
SELECT DISTINCT - 10 * - 68
----
680

query I rowsort
SELECT DISTINCT 28 + - 38
----
-10

query I rowsort
SELECT 60 * 95
----
5700

query I rowsort
SELECT ALL - 92 * - + 40 AS col2
----
3680

onlyif mysql # DIV for integer division: 
query I rowsort label-6794
SELECT 67 DIV + - 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6794
SELECT 67 / + - 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL 63 - + COUNT( * ) - 35 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL 63 - + COUNT ( * ) - 35 AS col1
----
27

query I rowsort
SELECT 50 * - 99
----
-4950

query I rowsort
SELECT 86 * 9 AS col1
----
774

onlyif mysql # DIV for integer division: 
query I rowsort label-6798
SELECT 66 + - 59 + + 6 DIV 27 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6798
SELECT 66 + - 59 + + 6 / 27 AS col0
----
7

query I rowsort
SELECT - - 2 * + 8 + + 98 AS col1
----
114

query I rowsort
SELECT DISTINCT + - NULLIF ( + 92, + 34 )
----
-92

query I rowsort
SELECT - 49 - - + 85
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT - MAX( DISTINCT 60 ) + ( 27 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-6802
SELECT - MAX ( DISTINCT 60 ) + ( 27 ) AS col1
----
-33

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

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

query I rowsort
SELECT DISTINCT - - 17 * + 82
----
1394

onlyif mysql # DIV for integer division: 
query I rowsort label-6805
SELECT + - 65 DIV 31 - - ( - 99 ) DIV 10 + + 55 * 75 AS col0
----
4114

skipif mysql # not compatible
query I rowsort label-6805
SELECT + - 65 / 31 - - ( - 99 ) / 10 + + 55 * 75 AS col0
----
4114

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT ALL - - NULLIF ( COUNT( * ), - COUNT( + NULLIF ( ( 35 ), + 81 ) ) ) * - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL - - NULLIF ( COUNT ( * ), - COUNT ( + NULLIF ( ( 35 ), + 81 ) ) ) * - 98 AS col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT - - 59 DIV - 89 - - 67
----
67

skipif mysql # not compatible
query I rowsort label-6807
SELECT - - 59 / - 89 - - 67
----
67

query I rowsort
SELECT + 7 * - - 46 * - 29
----
-9338

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT CASE + 29 WHEN MAX( 46 ) THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT CASE + 29 WHEN MAX ( 46 ) THEN + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6810
SELECT ALL + + 66 * - SUM( ALL + 54 ) - 17 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL + + 66 * - SUM ( ALL + 54 ) - 17 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6811
SELECT DISTINCT - 50 * 62 + 89 * - 39 + + CAST( + 31 AS SIGNED ) AS col2
----
-6540

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT - 50 * 62 + 89 * - 39 + + CAST ( + 31 AS INTEGER ) AS col2
----
-6540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6812
SELECT + COUNT( + 31 ) DIV 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6812
SELECT + COUNT ( + 31 ) / 84 AS col1
----
0

query I rowsort
SELECT + 78 + + 80
----
158

query I rowsort
SELECT + 6 + 16 + 55 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT - 17 * - - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-6815
SELECT - 17 * - - COUNT ( * )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6816
SELECT MAX( ALL - CAST( + 60 AS SIGNED ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-6816
SELECT MAX ( ALL - CAST ( + 60 AS INTEGER ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6817
SELECT ALL COUNT( * ) DIV 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL COUNT ( * ) / 48 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT - 83 * - 85 + - + 49 DIV 46
----
7054

skipif mysql # not compatible
query I rowsort label-6818
SELECT - 83 * - 85 + - + 49 / 46
----
7054

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT + ( CASE + 31 WHEN - COUNT( - 68 ) + + 52 THEN - 97 * 0 WHEN + 85 * 27 THEN NULL END ) * - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT + ( CASE + 31 WHEN - COUNT ( - 68 ) + + 52 THEN - 97 * 0 WHEN + 85 * 27 THEN NULL END ) * - 88 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 23 + 83 AS col1
----
106

query I rowsort
SELECT ALL 75 * + 3 col1
----
225

query I rowsort
SELECT + 81 + - + 23 - - 76
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6823
SELECT DISTINCT 87 - + CAST( NULL AS SIGNED ) + - - ( COUNT( * ) ) * + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT 87 - + CAST ( NULL AS INTEGER ) + - - ( COUNT ( * ) ) * + 41 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6824
SELECT + MAX( - 74 ) + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6824
SELECT + MAX ( - 74 ) + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 16 * - 75 col0
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ALL 22 * - MIN( DISTINCT - ( 51 ) ) * - 62 AS col0
----
-69564

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL 22 * - MIN ( DISTINCT - ( 51 ) ) * - 62 AS col0
----
-69564

query I rowsort
SELECT - ( - 37 ) - + - 88 AS col1
----
125

query I rowsort
SELECT - 86 * - 85
----
7310

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT + 97 + + - COUNT( ALL - 14 ) * - 78
----
175

skipif mysql # not compatible
query I rowsort label-6829
SELECT + 97 + + - COUNT ( ALL - 14 ) * - 78
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT - 3 + + 97 + + + 90 + COUNT( * )
----
185

skipif mysql # not compatible
query I rowsort label-6830
SELECT - 3 + + 97 + + + 90 + COUNT ( * )
----
185

query I rowsort
SELECT ALL 9 - + + 70
----
-61

query II rowsort
SELECT ALL 77, + 56 col0
----
77
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL - + 94 * - 72 + 84 * COUNT( * )
----
6852

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL - + 94 * - 72 + 84 * COUNT ( * )
----
6852

query I rowsort
SELECT + 20 + + 12
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6835
SELECT ALL 89 DIV 69 - + MIN( DISTINCT - 61 ) DIV 72 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL 89 / 69 - + MIN ( DISTINCT - 61 ) / 72 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6836
SELECT - NULLIF ( + 41, - NULLIF ( ( + COUNT( * ) ), - 59 / NULLIF ( COALESCE ( - 65, + COUNT( DISTINCT + 29 ) ) / 35, - 14 * + CASE 10 WHEN - 72 * ( 79 ) THEN NULL ELSE 36 END - + 50 ) ) / 68 ) + COALESCE ( + COALESCE ( + NULLIF ( 47, COALESCE ( - CAST( NULL AS SIGNED ), - 43 ) + + NULLIF ( CAST( - CAST( 37 AS SIGNED ) AS SIGNED ) + 38, - 79 + 40 ) * 53 ), - 85 - + 40 ), + 3 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6836
SELECT - NULLIF ( + 41, - NULLIF ( ( + COUNT ( * ) ), - 59 / NULLIF ( COALESCE ( - 65, + COUNT ( DISTINCT + 29 ) ) / 35, - 14 * + CASE 10 WHEN - 72 * ( 79 ) THEN NULL ELSE 36 END - + 50 ) ) / 68 ) + COALESCE ( + COALESCE ( + NULLIF ( 47, COALESCE ( - CAST ( NULL AS INTEGER ), - 43 ) + + NULLIF ( CAST ( - CAST ( 37 AS INTEGER ) AS INTEGER ) + 38, - 79 + 40 ) * 53 ), - 85 - + 40 ), + 3 ) AS col0
----
6

query I rowsort
SELECT ALL + + 81 * COALESCE ( - 3, 23 ) * + 64 AS col2
----
-15552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6838
SELECT - 47 + ( + + CAST( SUM( DISTINCT 75 ) AS SIGNED ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6838
SELECT - 47 + ( + + CAST ( SUM ( DISTINCT 75 ) AS INTEGER ) ) AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6839
SELECT + CAST( NULL AS SIGNED ), SUM( ALL 63 ) AS col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-6839
SELECT + CAST ( NULL AS INTEGER ), SUM ( ALL 63 ) AS col0
----
NULL
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6840
SELECT 87 AS col2, 23 + - COALESCE ( 85, 24, + 50 + 73, - 76 ) + CAST( NULL AS SIGNED ) / - 67 AS col2
----
87
NULL

skipif mysql # not compatible
query II rowsort label-6840
SELECT 87 AS col2, 23 + - COALESCE ( 85, 24, + 50 + 73, - 76 ) + CAST ( NULL AS INTEGER ) / - 67 AS col2
----
87
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6841
SELECT - + 46 * COALESCE ( + COUNT( * ), + CASE 30 WHEN - 44 + 60 THEN NULL WHEN - 74 * 53 + - 90 THEN - NULLIF ( 6, CAST( NULL AS SIGNED ) * 22 ) ELSE NULL END, - 97 ) DIV COUNT( * ) + 75 * 51 + + ( - 77 )
----
3702

skipif mysql # not compatible
query I rowsort label-6841
SELECT - + 46 * COALESCE ( + COUNT ( * ), + CASE 30 WHEN - 44 + 60 THEN NULL WHEN - 74 * 53 + - 90 THEN - NULLIF ( 6, CAST ( NULL AS INTEGER ) * 22 ) ELSE NULL END, - 97 ) / COUNT ( * ) + 75 * 51 + + ( - 77 )
----
3702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6842
SELECT - + 30 * COALESCE ( - 30, + 43 * + 32 + 40 ) * + CAST( NULL AS SIGNED ) + - COALESCE ( + 22, - MAX( - 26 ), 3 / + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6842
SELECT - + 30 * COALESCE ( - 30, + 43 * + 32 + 40 ) * + CAST ( NULL AS INTEGER ) + - COALESCE ( + 22, - MAX ( - 26 ), 3 / + 96 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6843
SELECT ALL + 39 DIV 80 + - + 75 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL + 39 / 80 + - + 75 AS col0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6844
SELECT ALL - - 23 DIV - COUNT( * ) + + 87
----
64

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL - - 23 / - COUNT ( * ) + + 87
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6845
SELECT ALL - 53 * - 56 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL - 53 * - 56 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT DISTINCT + SUM( ALL + 19 ) * - ( + 89 ) + MAX( ALL 40 + 66 )
----
-1585

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT + SUM ( ALL + 19 ) * - ( + 89 ) + MAX ( ALL 40 + 66 )
----
-1585

query I rowsort
SELECT ALL + 27 * ( - + 61 ) + 52 AS col1
----
-1595

onlyif mysql # DIV for integer division: 
query I rowsort label-6848
SELECT - 0 * + - NULLIF ( + NULLIF ( + + 16, ( + 77 ) - + 75 * + 32 ), 60 ) DIV COALESCE ( 31 + 89, - 91 )
----
0

skipif mysql # not compatible
query I rowsort label-6848
SELECT - 0 * + - NULLIF ( + NULLIF ( + + 16, ( + 77 ) - + 75 * + 32 ), 60 ) / COALESCE ( 31 + 89, - 91 )
----
0

query I rowsort
SELECT NULLIF ( - 60, - 7 ) AS col0
----
-60

query I rowsort
SELECT - 80 * - 36 * - 68 - - + 97 AS col0
----
-195743

query I rowsort
SELECT DISTINCT - 10 * - + ( - 87 ) * - 10 AS col2
----
8700

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT ALL + COUNT( - 92 ) * + 66 - - 55 + 36 AS col0
----
157

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL + COUNT ( - 92 ) * + 66 - - 55 + 36 AS col0
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL 17 * - 4 * + + MIN( + 35 ) * 38 - COUNT( * ) AS col1
----
-90441

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL 17 * - 4 * + + MIN ( + 35 ) * 38 - COUNT ( * ) AS col1
----
-90441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6854
SELECT COALESCE ( + MAX( DISTINCT - 77 ), CASE ( MIN( 68 ) ) WHEN - 11 + 65 * 17 THEN NULL WHEN + 81 * 4 + 54 THEN - 23 + + 52 WHEN - 11 DIV + 7 THEN NULL ELSE + 92 DIV 37 END, NULLIF ( - 14, COUNT( * ) + + AVG ( DISTINCT 12 + + 89 ) ), CAST( NULL AS SIGNED ) + - 17 )
----
-77

skipif mysql # not compatible
query I rowsort label-6854
SELECT COALESCE ( + MAX ( DISTINCT - 77 ), CASE ( MIN ( 68 ) ) WHEN - 11 + 65 * 17 THEN NULL WHEN + 81 * 4 + 54 THEN - 23 + + 52 WHEN - 11 / + 7 THEN NULL ELSE + 92 / 37 END, NULLIF ( - 14, COUNT ( * ) + + AVG ( DISTINCT 12 + + 89 ) ), CAST ( NULL AS INTEGER ) + - 17 )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6855
SELECT ALL CAST( - COALESCE ( + 31, 24 ) AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL CAST ( - COALESCE ( + 31, 24 ) AS INTEGER )
----
-31

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6857
SELECT + COUNT( * ) * - 56, 34 * + COUNT( * ) + COUNT( * ) AS col1
----
-56
35

skipif mysql # not compatible
query II rowsort label-6857
SELECT + COUNT ( * ) * - 56, 34 * + COUNT ( * ) + COUNT ( * ) AS col1
----
-56
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6858
SELECT DISTINCT 74 DIV + - 55
----
-1

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT 74 / + - 55
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT - MAX( DISTINCT + ( 54 ) ) + - - COUNT( * ) * 50
----
-4

skipif mysql # not compatible
query I rowsort label-6859
SELECT - MAX ( DISTINCT + ( 54 ) ) + - - COUNT ( * ) * 50
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6860
SELECT + ( - 82 ) DIV - - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6860
SELECT + ( - 82 ) / - - 97 AS col0
----
0

query I rowsort
SELECT - CASE - 27 WHEN + 73 THEN - - 1 - + 59 * 43 ELSE NULL END * 40
----
NULL

query II rowsort
SELECT + 4 + 5, 3 AS col0
----
9
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6863
SELECT - COALESCE ( - + CAST( NULL AS SIGNED ), 66 + - COUNT( * ) + - 92 * + 79 * 83, + 74 )
----
603179

skipif mysql # not compatible
query I rowsort label-6863
SELECT - COALESCE ( - + CAST ( NULL AS INTEGER ), 66 + - COUNT ( * ) + - 92 * + 79 * 83, + 74 )
----
603179

query I rowsort
SELECT DISTINCT 20 * - 62 * + + 55
----
-68200

query I rowsort
SELECT DISTINCT 96 * + 70 * - + 95
----
-638400

query I rowsort
SELECT ALL + 89 + + 17 AS col0
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6867
SELECT + CAST( - + 8 AS SIGNED ) - MIN( ALL + 83 ) - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-6867
SELECT + CAST ( - + 8 AS INTEGER ) - MIN ( ALL + 83 ) - COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT 42 * + 73 * + MAX( DISTINCT - - 52 ) AS col1
----
159432

skipif mysql # not compatible
query I rowsort label-6868
SELECT 42 * + 73 * + MAX ( DISTINCT - - 52 ) AS col1
----
159432

query I rowsort
SELECT 29 + + 80 + + ( 33 ) * 73 AS col2
----
2518

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6871
SELECT - ( - MAX( + ( - + CAST( NULL AS DECIMAL ) ) ) ) + COALESCE ( COUNT( * ) - 65, COUNT( * ) / 44 + - COUNT( * ) ) * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6871
SELECT - ( - MAX ( + ( - + CAST ( NULL AS REAL ) ) ) ) + COALESCE ( COUNT ( * ) - 65, COUNT ( * ) / 44 + - COUNT ( * ) ) * + 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6872
SELECT 22 + - + COUNT( ALL 30 ) + + + CAST( NULL AS SIGNED ) + 96 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT 22 + - + COUNT ( ALL 30 ) + + + CAST ( NULL AS INTEGER ) + 96 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT DISTINCT + ( COUNT( * ) ) + 88 - + 34
----
55

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT + ( COUNT ( * ) ) + 88 - + 34
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6874
SELECT ALL COUNT( * ) DIV COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL COUNT ( * ) / COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6875
SELECT ALL + - CAST( - + 17 AS SIGNED ) * + CAST( - - 13 AS SIGNED ) + 41 * - 42 AS col1
----
-1501

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL + - CAST ( - + 17 AS INTEGER ) * + CAST ( - - 13 AS INTEGER ) + 41 * - 42 AS col1
----
-1501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6876
SELECT DISTINCT 26 * + - CASE - 64 WHEN - 30 * - 30 THEN + 2 * CAST( 67 AS SIGNED ) WHEN 53 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT 26 * + - CASE - 64 WHEN - 30 * - 30 THEN + 2 * CAST ( 67 AS INTEGER ) WHEN 53 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 13 + - 53 / + - CASE 54 WHEN ( + CASE + 55 WHEN + 98 THEN COALESCE ( 9, 31 ) WHEN COALESCE ( 17, 67 * - 7 ) + - 66 THEN NULL END ) + - 54 * + 97 THEN NULL WHEN 13 THEN 96 + - 47 * 35 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT 7 * - + 3 + - ( COUNT( * ) ) * + 87
----
-108

skipif mysql # not compatible
query I rowsort label-6878
SELECT 7 * - + 3 + - ( COUNT ( * ) ) * + 87
----
-108

query I rowsort
SELECT + - COALESCE ( + 25, + 45 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6880
SELECT - 13 + 59 AS col0, + COUNT( DISTINCT 22 ) * - 8 col2
----
46
-8

skipif mysql # not compatible
query II rowsort label-6880
SELECT - 13 + 59 AS col0, + COUNT ( DISTINCT 22 ) * - 8 col2
----
46
-8

query I rowsort
SELECT 35 + 19 AS col2
----
54

query I rowsort
SELECT DISTINCT - NULLIF ( - - 91, 77 )
----
-91

query I rowsort
SELECT - 13 * - 94 + - 39 * + 87
----
-2171

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT 69 * + 59 + - 3 - - 15 + - 40 * - COUNT( * ) AS col2
----
4123

skipif mysql # not compatible
query I rowsort label-6885
SELECT 69 * + 59 + - 3 - - 15 + - 40 * - COUNT ( * ) AS col2
----
4123

query I rowsort
SELECT DISTINCT - CASE + ( - 9 ) WHEN - - 45 + - 44 THEN 54 WHEN ( 68 ) THEN NULL END
----
NULL

query I rowsort
SELECT 79 + + 96 * + 57 + - + 70 AS col1
----
5481

query I rowsort
SELECT CASE - 7 WHEN + 17 THEN - 14 END * + 42 / + 6
----
NULL

query I rowsort
SELECT 86 * - 56
----
-4816

query I rowsort
SELECT 57 + - 80 AS col2
----
-23

query I rowsort
SELECT DISTINCT + 88 * + 40 AS col0
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT ( - ( 17 ) ) * COUNT( * ) + - - 81 + 66 * - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6892
SELECT ( - ( 17 ) ) * COUNT ( * ) + - - 81 + 66 * - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT 76 + MIN( + - 17 ) + 77 AS col1
----
136

skipif mysql # not compatible
query I rowsort label-6893
SELECT 76 + MIN ( + - 17 ) + 77 AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT ALL + SUM( DISTINCT - 38 ) * + + 22
----
-836

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL + SUM ( DISTINCT - 38 ) * + + 22
----
-836

query I rowsort
SELECT DISTINCT + 89 * + + ( + - ( - + 13 ) ) * - 46
----
-53222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6896
SELECT 92 + + - 81 * - COUNT( * ) * + 93 * - 54 - 89 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT 92 + + - 81 * - COUNT ( * ) * + 93 * - 54 - 89 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 71 * - 51 col0
----
-3621

onlyif mysql # aggregate syntax: 
query II rowsort label-6898
SELECT DISTINCT - COUNT( * ) + 79 + COUNT( * ) AS col1, ( - NULLIF ( 62, ( + COUNT( * ) ) + 66 ) ) * + 48 + - 10 col1
----
79
-2986

skipif mysql # not compatible
query II rowsort label-6898
SELECT DISTINCT - COUNT ( * ) + 79 + COUNT ( * ) AS col1, ( - NULLIF ( 62, ( + COUNT ( * ) ) + 66 ) ) * + 48 + - 10 col1
----
79
-2986

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

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

query I rowsort
SELECT 65 + 36 AS col0
----
101

query I rowsort
SELECT ALL - 18 + + - 15
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT - 54 + + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-6902
SELECT - 54 + + COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT - - CASE + 12 WHEN ( 53 ) + + 22 + 24 THEN NULL ELSE - COUNT( DISTINCT 27 ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6903
SELECT - - CASE + 12 WHEN ( 53 ) + + 22 + 24 THEN NULL ELSE - COUNT ( DISTINCT 27 ) END AS col2
----
-1

query I rowsort
SELECT - 29 + 64
----
35

query I rowsort
SELECT - 38 + 51 AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6906
SELECT DISTINCT + 27 DIV + 88 * - 48 * + 49 + - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT + 27 / + 88 * - 48 * + 49 + - + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT 44 * + 3 + + 48 AS col2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT - CASE + 35 WHEN MIN( - - 24 ) THEN - 70 * 63 END + 43 * - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT - CASE + 35 WHEN MIN ( - - 24 ) THEN - 70 * 63 END + 43 * - 85 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6909
SELECT + 4 + - COALESCE ( - 48, CAST( NULL AS SIGNED ) DIV 6, - 93 + 81 * + 24 ) col0
----
52

skipif mysql # not compatible
query I rowsort label-6909
SELECT + 4 + - COALESCE ( - 48, CAST ( NULL AS INTEGER ) / 6, - 93 + 81 * + 24 ) col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT DISTINCT - SUM( ALL - 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT - SUM ( ALL - 61 ) AS col0
----
61

query I rowsort
SELECT ( - + 96 ) + + - 35 + - - 99 * + 68
----
6601

query I rowsort
SELECT ALL - 37 * 54 - + 63 * - 88
----
3546

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT - 54 * SUM( ALL + 63 )
----
-3402

skipif mysql # not compatible
query I rowsort label-6913
SELECT - 54 * SUM ( ALL + 63 )
----
-3402

query I rowsort
SELECT 36 + COALESCE ( - + 25, 78, - 91 + - 21 * 63 ) * 20
----
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL - + ( - CASE + 47 WHEN + 54 * - - 56 * COUNT( 36 ) THEN 69 * + 61 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL - + ( - CASE + 47 WHEN + 54 * - - 56 * COUNT ( 36 ) THEN 69 * + 61 END ) AS col2
----
NULL

query II rowsort
SELECT ALL - 95, 19 AS col2
----
-95
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6917
SELECT + + NULLIF ( 63, - + 25 * + COUNT( * ) + - + SUM( ALL 14 ) ) * + 37 + - CAST( - AVG ( DISTINCT + 16 ) AS SIGNED ) * - COALESCE ( 91, - 54, 10 ) AS col0
----
875

skipif mysql # not compatible
query I rowsort label-6917
SELECT + + NULLIF ( 63, - + 25 * + COUNT ( * ) + - + SUM ( ALL 14 ) ) * + 37 + - CAST ( - AVG ( DISTINCT + 16 ) AS INTEGER ) * - COALESCE ( 91, - 54, 10 ) AS col0
----
875

query I rowsort
SELECT + 20 * - 78
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL 65 * + 98 - + - NULLIF ( - + 33, 12 ) + + ( - COUNT( 96 ) ) + + 58 * 80 AS col0
----
10976

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL 65 * + 98 - + - NULLIF ( - + 33, 12 ) + + ( - COUNT ( 96 ) ) + + 58 * 80 AS col0
----
10976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6920
SELECT ( - 11 ) / - COUNT( * ) + + - 66 * - 8 / - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6920
SELECT ( - 11 ) / - COUNT ( * ) + + - 66 * - 8 / - CAST ( NULL AS INTEGER ) col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6922
SELECT CAST( - COALESCE ( + 78, - + 29 + - 10 - - AVG ( 32 ) + - ( 56 + ( 22 ) * + 46 ) ) AS SIGNED ) + - 89 AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-6922
SELECT CAST ( - COALESCE ( + 78, - + 29 + - 10 - - AVG ( 32 ) + - ( 56 + ( 22 ) * + 46 ) ) AS INTEGER ) + - 89 AS col1
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT + COALESCE ( - 77, + - COUNT( * ) )
----
-77

skipif mysql # not compatible
query I rowsort label-6923
SELECT + COALESCE ( - 77, + - COUNT ( * ) )
----
-77

query II rowsort
SELECT ALL 99 * - - 50 AS col0, + 50
----
4950
50

query I rowsort
SELECT ALL 92 * ( + 36 ) * + - 73 * 78 AS col2
----
-18858528

onlyif mysql # aggregate syntax: 
query III rowsort label-6926
SELECT MIN( DISTINCT + 82 ) AS col1, + ( + 7 ) AS col2, + - 15 + + 1
----
82
7
-14

skipif mysql # not compatible
query III rowsort label-6926
SELECT MIN ( DISTINCT + 82 ) AS col1, + ( + 7 ) AS col2, + - 15 + + 1
----
82
7
-14

query I rowsort
SELECT 2 + + 86
----
88

query I rowsort
SELECT DISTINCT 22 * 15
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT ALL - COUNT( * ) + + - 4 + - + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL - COUNT ( * ) + + - 4 + - + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT ALL + MIN( DISTINCT 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL + MIN ( DISTINCT 98 ) AS col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6931
SELECT ALL 57 * CAST( + 13 AS SIGNED )
----
741

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL 57 * CAST ( + 13 AS INTEGER )
----
741

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

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT 15 + + - COUNT ( * ) AS col2
----
14

query II rowsort
SELECT 5, + 62 + + 62 AS col1
----
5
124

query I rowsort
SELECT ALL - 3 + 70 AS col1
----
67

query I rowsort
SELECT ALL 50 + 32 AS col0
----
82

query I rowsort
SELECT + ( 42 ) * ( - + 66 ) AS col2
----
-2772

query II rowsort
SELECT 92, 75 * - ( + + 53 ) col1
----
92
-3975

query I rowsort
SELECT COALESCE ( - 41, + + 70 )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-6939
SELECT - + 92 DIV - - ( 62 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6939
SELECT - + 92 / - - ( 62 ) AS col0
----
-1

query I rowsort
SELECT - - 87 * + + 3
----
261

query I rowsort
SELECT - 40 - 16
----
-56

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6943
SELECT ALL - - 95 + + - SUM( ALL + - CAST( 79 AS SIGNED ) ) - - + 78
----
252

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL - - 95 + + - SUM ( ALL + - CAST ( 79 AS INTEGER ) ) - - + 78
----
252

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

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

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

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL + COUNT ( * ) * 51 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT - ( - 9 ) * + MIN( ALL - 47 ) AS col1
----
-423

skipif mysql # not compatible
query I rowsort label-6946
SELECT - ( - 9 ) * + MIN ( ALL - 47 ) AS col1
----
-423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6947
SELECT ALL + - COUNT( * ) - + 12 * + ( - 18 ) + + 71 + - + CAST( 99 AS SIGNED )
----
187

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL + - COUNT ( * ) - + 12 * + ( - 18 ) + + 71 + - + CAST ( 99 AS INTEGER )
----
187

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

skipif mysql # not compatible
query II rowsort label-6948
SELECT - 22 AS col0, - CAST ( NULL AS INTEGER )
----
-22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT - 68 + + NULLIF ( + 58, - - COUNT( * ) ) + 8 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6949
SELECT - 68 + + NULLIF ( + 58, - - COUNT ( * ) ) + 8 AS col1
----
-2

query I rowsort
SELECT - + 60 * + - 59
----
3540

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT - - CASE + 50 WHEN + COUNT( * ) THEN 90 END + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6952
SELECT - - CASE + 50 WHEN + COUNT ( * ) THEN 90 END + 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT + - 85 * - ( - + MAX( + 53 ) )
----
-4505

skipif mysql # not compatible
query I rowsort label-6953
SELECT + - 85 * - ( - + MAX ( + 53 ) )
----
-4505

onlyif mysql # DIV for integer division: 
query I rowsort label-6954
SELECT ALL - 21 DIV + 53 * - 50 + - 54 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL - 21 / + 53 * - 50 + - 54 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT - + 16 + + ( - 25 ) + - COUNT( DISTINCT - - 63 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-6955
SELECT - + 16 + + ( - 25 ) + - COUNT ( DISTINCT - - 63 ) AS col2
----
-42

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6957
SELECT DISTINCT - ( - - 44 ) DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT - ( - - 44 ) / 64
----
0

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

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

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

query I rowsort
SELECT ALL 11 * - 6 * - - 9
----
-594

query I rowsort
SELECT + ( - 62 ) + - 12 + 77 AS col1
----
3

query II rowsort
SELECT ALL + 6 * 57 AS col2, + 60 AS col1
----
342
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT - COUNT( * ) * - 7 * - + 93
----
-651

skipif mysql # not compatible
query I rowsort label-6963
SELECT - COUNT ( * ) * - 7 * - + 93
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT + ( + 35 ) * - 40 * + + 97 + - COUNT( * ) - + + 95
----
-135896

skipif mysql # not compatible
query I rowsort label-6964
SELECT + ( + 35 ) * - 40 * + + 97 + - COUNT ( * ) - + + 95
----
-135896

query I rowsort
SELECT ( - 1 ) AS col2
----
-1

query I rowsort
SELECT + ( 3 ) * + COALESCE ( + + 0, 8 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT + 63 - CASE COUNT( * ) WHEN + + 44 THEN NULL WHEN + + COUNT( * ) + - - 95 THEN 28 ELSE NULL END + - 39 * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT + 63 - CASE COUNT ( * ) WHEN + + 44 THEN NULL WHEN + + COUNT ( * ) + - - 95 THEN 28 ELSE NULL END + - 39 * + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT ALL 10 * + - COUNT( * ) + - ( + 59 )
----
-69

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL 10 * + - COUNT ( * ) + - ( + 59 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ALL 45 / + CASE - 57 WHEN + 44 THEN NULL WHEN COUNT( * ) THEN + 82 + 14 + 77 / 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL 45 / + CASE - 57 WHEN + 44 THEN NULL WHEN COUNT ( * ) THEN + 82 + 14 + 77 / 73 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6970
SELECT + COALESCE ( 52, + - COUNT( * ) - + CAST( + 11 AS SIGNED ) * + + COALESCE ( + + 80, + 11 + + 48 * - ( 92 * COUNT( * ) ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-6970
SELECT + COALESCE ( 52, + - COUNT ( * ) - + CAST ( + 11 AS INTEGER ) * + + COALESCE ( + + 80, + 11 + + 48 * - ( 92 * COUNT ( * ) ) ) )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6971
SELECT DISTINCT 85 * COUNT( * ) DIV 22 + - - 36 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT 85 * COUNT ( * ) / 22 + - - 36 AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT ALL 9 DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL 9 / + 17
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT CASE - 92 WHEN + 34 THEN NULL WHEN 97 THEN + MIN( DISTINCT - - 91 ) + + + 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6973
SELECT CASE - 92 WHEN + 34 THEN NULL WHEN 97 THEN + MIN ( DISTINCT - - 91 ) + + + 3 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT CASE + - 98 WHEN + 69 THEN + 81 + + 51 * - - COALESCE ( - 9, - COUNT( * ) * + 96 + 19 ) * 67 ELSE - 12 - 71 * + COUNT( * ) END AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-6974
SELECT CASE + - 98 WHEN + 69 THEN + 81 + + 51 * - - COALESCE ( - 9, - COUNT ( * ) * + 96 + 19 ) * 67 ELSE - 12 - 71 * + COUNT ( * ) END AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT + 84 * - ( + 64 ) * + 3 * 92 * - CASE - 81 WHEN + CASE WHEN NOT - 22 BETWEEN + 94 AND - 84 * + 10 THEN + 46 - - COUNT( * ) END THEN + 87 WHEN 86 / 66 + + 63 THEN 39 ELSE NULL END + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT + 84 * - ( + 64 ) * + 3 * 92 * - CASE - 81 WHEN + CASE WHEN NOT - 22 BETWEEN + 94 AND - 84 * + 10 THEN + 46 - - COUNT ( * ) END THEN + 87 WHEN 86 / 66 + + 63 THEN 39 ELSE NULL END + + 71
----
NULL

query I rowsort
SELECT + 67 * + + ( + - 57 ) col2
----
-3819

query I rowsort
SELECT - 73 * 55 AS col0
----
-4015

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT + 60 * - + CASE - + 33 WHEN 69 THEN NULL WHEN - 89 THEN - ( 4 ) END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6978
SELECT + 60 * - + CASE - + 33 WHEN 69 THEN NULL WHEN - 89 THEN - ( 4 ) END + COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6979
SELECT - 20 DIV 10
----
-2

skipif mysql # not compatible
query I rowsort label-6979
SELECT - 20 / 10
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT DISTINCT + - COUNT( * ) * 4 + - COUNT( - 33 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT + - COUNT ( * ) * 4 + - COUNT ( - 33 ) AS col2
----
-5

query I rowsort
SELECT DISTINCT 29 * - 83 * + 92 + 11 + + - 93 + - 82 AS col2
----
-221608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT ALL 33 * CAST( - 65 AS SIGNED )
----
-2145

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL 33 * CAST ( - 65 AS INTEGER )
----
-2145

query I rowsort
SELECT DISTINCT - - 58 * - + 94 + + 19 + - - 59
----
-5374

query I rowsort
SELECT ALL - 50 - + - 41 + 41 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT - 0 + + 85 + COUNT( * ) * + 74 * 94 AS col1
----
7041

skipif mysql # not compatible
query I rowsort label-6985
SELECT - 0 + + 85 + COUNT ( * ) * + 74 * 94 AS col1
----
7041

onlyif mysql # DIV for integer division: 
query I rowsort label-6986
SELECT ALL + ( + 98 ) - + ( + + 37 ) DIV - 42 + 63 AS col0
----
161

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL + ( + 98 ) - + ( + + 37 ) / - 42 + 63 AS col0
----
161

query I rowsort
SELECT + + 69 * + CASE + 44 WHEN - 51 THEN - 32 + 92 + 64 + 8 WHEN - 90 THEN NULL ELSE NULL END / 45 + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT + MAX( 85 ) * - - 70 * - + SUM( + 19 ) + + + 30 + - 6 AS col1
----
-113026

skipif mysql # not compatible
query I rowsort label-6988
SELECT + MAX ( 85 ) * - - 70 * - + SUM ( + 19 ) + + + 30 + - 6 AS col1
----
-113026

onlyif mysql # aggregate syntax: 
query II rowsort label-6989
SELECT ALL - COUNT( + 10 ), 86 AS col2
----
-1
86

skipif mysql # not compatible
query II rowsort label-6989
SELECT ALL - COUNT ( + 10 ), 86 AS col2
----
-1
86

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

query II rowsort
SELECT DISTINCT - 92 * 94 AS col2, + 56 AS col2
----
-8648
56

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6993
SELECT - + 70 * ( - - 85 ) + - 62 * 16 * CAST( NULL AS DECIMAL ) * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT - + 70 * ( - - 85 ) + - 62 * 16 * CAST ( NULL AS REAL ) * + 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6994
SELECT - COALESCE ( 20, CAST( NULL AS DECIMAL ) ) / CASE - 44 WHEN + + 45 THEN NULL WHEN + NULLIF ( + 65, - 57 * ( + 67 * 60 ) ) * + 2 THEN NULL WHEN SUM( ALL 15 ) THEN 28 * - COUNT( * ) + + 40 END + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6994
SELECT - COALESCE ( 20, CAST ( NULL AS REAL ) ) / CASE - 44 WHEN + + 45 THEN NULL WHEN + NULLIF ( + 65, - 57 * ( + 67 * 60 ) ) * + 2 THEN NULL WHEN SUM ( ALL 15 ) THEN 28 * - COUNT ( * ) + + 40 END + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 31 * 96 AS col1
----
-2976

query I rowsort
SELECT ALL ( 46 )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6997
SELECT - 35 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-6997
SELECT - 35 / + 70
----
0

query I rowsort
SELECT - 81 * 37
----
-2997

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

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

query I rowsort
SELECT - 0 * - CASE + 8 WHEN 12 + NULLIF ( - 35, - ( + 79 ) * 94 ) THEN + 15 * - 86 END + 76 AS col0
----
NULL

query I rowsort
SELECT ALL - 48 + + - 32 AS col0
----
-80

query II rowsort
SELECT ALL - 30, + 51 AS col0
----
-30
51

query I rowsort
SELECT 1 + - + 76 AS col2
----
-75

query I rowsort
SELECT ALL + 12 + 25 * + 90 - + 39 * 92
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT DISTINCT - MAX( DISTINCT - - 69 ) * 78
----
-5382

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT - MAX ( DISTINCT - - 69 ) * 78
----
-5382

query I rowsort
SELECT ALL 3 * 66
----
198

query I rowsort
SELECT 91 * 40 AS col2
----
3640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7008
SELECT + SUM( - - 0 ) * + CAST( NULL AS SIGNED ) + 45 * + 78 - - CASE - - ( 54 ) WHEN + 10 + - CAST( NULL AS SIGNED ) THEN ( + 46 ) WHEN - 55 THEN NULL ELSE ( + 66 ) END / 78 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT + SUM ( - - 0 ) * + CAST ( NULL AS INTEGER ) + 45 * + 78 - - CASE - - ( 54 ) WHEN + 10 + - CAST ( NULL AS INTEGER ) THEN ( + 46 ) WHEN - 55 THEN NULL ELSE ( + 66 ) END / 78 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT ( - 79 ) + + 18 + 42 + + MAX( DISTINCT + 99 ) + 13 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-7009
SELECT ( - 79 ) + + 18 + 42 + + MAX ( DISTINCT + 99 ) + 13 AS col0
----
93

query II rowsort
SELECT ALL - 75 AS col1, + 73 + + 57
----
-75
130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7011
SELECT + 26, + CAST( NULL AS SIGNED ) + - + 19 AS col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-7011
SELECT + 26, + CAST ( NULL AS INTEGER ) + - + 19 AS col1
----
26
NULL

query I rowsort
SELECT DISTINCT + + 61 - + 34
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7013
SELECT DISTINCT - 48 DIV - - 96
----
0

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT - 48 / - - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT + - SUM( ALL - + 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7014
SELECT + - SUM ( ALL - + 99 ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7015
SELECT DISTINCT + 79 - + CASE + 17 WHEN + CASE + + 20 WHEN COUNT( * ) * 37 + SUM( 94 ) - + 71 * - COALESCE ( 4 + 64, - ( 12 ) ) + - COUNT( - 57 ) THEN CAST( NULL AS DECIMAL ) END THEN NULL WHEN - 63 THEN CASE ( 97 ) WHEN 38 * 94 THEN - MIN( ALL CAST( NULL AS SIGNED ) ) WHEN - 62 * 98 + - 41 THEN 73 ELSE 49 * - CASE 66 WHEN + CASE - 33 WHEN 28 + + 11 THEN NULL WHEN COALESCE ( + 5, 32, + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) ) + 76 * + 16 THEN NULL ELSE 69 END THEN 46 + 50 END END + - 58 WHEN + COUNT( * ) THEN ( + 28 ) / + 94 END + + COUNT( * ) * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT + 79 - + CASE + 17 WHEN + CASE + + 20 WHEN COUNT ( * ) * 37 + SUM ( 94 ) - + 71 * - COALESCE ( 4 + 64, - ( 12 ) ) + - COUNT ( - 57 ) THEN CAST ( NULL AS REAL ) END THEN NULL WHEN - 63 THEN CASE ( 97 ) WHEN 38 * 94 THEN - MIN ( ALL CAST ( NULL AS INTEGER ) ) WHEN - 62 * 98 + - 41 THEN 73 ELSE 49 * - CASE 66 WHEN + CASE - 33 WHEN 28 + + 11 THEN NULL WHEN COALESCE ( + 5, 32, + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) ) + 76 * + 16 THEN NULL ELSE 69 END THEN 46 + 50 END END + - 58 WHEN + COUNT ( * ) THEN ( + 28 ) / + 94 END + + COUNT ( * ) * 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7016
SELECT + ( - COALESCE ( + 92, - 31 ) ) DIV COUNT( * ) + MAX( ALL - 49 ) * - 14 * + 4
----
2652

skipif mysql # not compatible
query I rowsort label-7016
SELECT + ( - COALESCE ( + 92, - 31 ) ) / COUNT ( * ) + MAX ( ALL - 49 ) * - 14 * + 4
----
2652

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7017
SELECT CAST( NULL AS SIGNED ) * - - ( + 94 ) col0, - 93 AS col0
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-7017
SELECT CAST ( NULL AS INTEGER ) * - - ( + 94 ) col0, - 93 AS col0
----
NULL
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7018
SELECT COALESCE ( 9, 13 + - - 94 * + - 73 * - 58 * - - ( - - CAST( NULL AS SIGNED ) ) + + COUNT( * ), 69 )
----
9

skipif mysql # not compatible
query I rowsort label-7018
SELECT COALESCE ( 9, 13 + - - 94 * + - 73 * - 58 * - - ( - - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ), 69 )
----
9

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

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

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL COUNT ( * ) * - + COUNT ( * ) * + 93 - - CAST ( 84 AS INTEGER ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT DISTINCT - 52 * 50 + - MIN( - 40 ) * + 21 col0
----
-1760

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT - 52 * 50 + - MIN ( - 40 ) * + 21 col0
----
-1760

query I rowsort
SELECT ALL 47 * + 77 + - 14 AS col0
----
3605

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT + 57 * + - 55 * MIN( DISTINCT + 55 ) + 38 + 61 * - - 10 AS col0
----
-171777

skipif mysql # not compatible
query I rowsort label-7023
SELECT + 57 * + - 55 * MIN ( DISTINCT + 55 ) + 38 + 61 * - - 10 AS col0
----
-171777

query I rowsort
SELECT 60 * 95 * 11 + - CASE 79 WHEN + 32 THEN - 64 * - 79 - 70 / + 34 WHEN + 89 THEN NULL WHEN 93 + 60 THEN 11 + 98 END
----
NULL

query I rowsort
SELECT ALL 76 + + - 86
----
-10

query I rowsort
SELECT ( + - 46 ) + - 82
----
-128

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7028
SELECT DISTINCT 81 DIV + 73 * - 85 DIV + + 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7028
SELECT DISTINCT 81 / + 73 * - 85 / + + 50 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7029
SELECT ALL 40 + - + 57 AS col2, + MIN( 91 ) * - 75 + COUNT( * ) AS col0
----
-17
-6824

skipif mysql # not compatible
query II rowsort label-7029
SELECT ALL 40 + - + 57 AS col2, + MIN ( 91 ) * - 75 + COUNT ( * ) AS col0
----
-17
-6824

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT DISTINCT 99 + - MAX( - + 61 ) + + - NULLIF ( - - 97, + 34 + - 5 )
----
63

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT 99 + - MAX ( - + 61 ) + + - NULLIF ( - - 97, + 34 + - 5 )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7031
SELECT DISTINCT - CAST( + - 76 AS SIGNED ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT - CAST ( + - 76 AS INTEGER ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7032
SELECT ALL - 16 + 77 AS col1, 9 * + COUNT( + 13 )
----
61
9

skipif mysql # not compatible
query II rowsort label-7032
SELECT ALL - 16 + 77 AS col1, 9 * + COUNT ( + 13 )
----
61
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT 80 DIV + - 77 + + - 37 * - 54 AS col1
----
1997

skipif mysql # not compatible
query I rowsort label-7033
SELECT 80 / + - 77 + + - 37 * - 54 AS col1
----
1997

query I rowsort
SELECT ALL 34 * 19 AS col0
----
646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7035
SELECT DISTINCT - COALESCE ( - 68, - CAST( - MIN( - - 99 ) AS SIGNED ) * + - 95 )
----
68

skipif mysql # not compatible
query I rowsort label-7035
SELECT DISTINCT - COALESCE ( - 68, - CAST ( - MIN ( - - 99 ) AS INTEGER ) * + - 95 )
----
68

query I rowsort
SELECT 4 + - - 30
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT ALL + COALESCE ( - 1, 18 * + CASE + + 60 WHEN + + 75 THEN + 30 + + + 94 WHEN + COUNT( * ) THEN ( 22 ) END * COUNT( * ) + - 84 ) + + COUNT( * ) * 44 col2
----
43

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL + COALESCE ( - 1, 18 * + CASE + + 60 WHEN + + 75 THEN + 30 + + + 94 WHEN + COUNT ( * ) THEN ( 22 ) END * COUNT ( * ) + - 84 ) + + COUNT ( * ) * 44 col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7038
SELECT + CAST( NULL AS SIGNED ) / + 68 + + - NULLIF ( - - COUNT( * ), 61 + + + CAST( NULL AS SIGNED ) ) - + - 99 * - 31 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7038
SELECT + CAST ( NULL AS INTEGER ) / + 68 + + - NULLIF ( - - COUNT ( * ), 61 + + + CAST ( NULL AS INTEGER ) ) - + - 99 * - 31 col1
----
NULL

query II rowsort
SELECT 20 * - 43 * + ( 76 ), - 1 * + 84 - - + NULLIF ( 47, + 90 + NULLIF ( - 2, + 27 ) ) AS col1
----
-65360
-37

query I rowsort
SELECT 94 + 49 AS col0
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-7041
SELECT 81 * 37 DIV + - 49 - - - 25
----
-86

skipif mysql # not compatible
query I rowsort label-7041
SELECT 81 * 37 / + - 49 - - - 25
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7042
SELECT ALL + MAX( + 8 ) DIV + COUNT( * ) col0
----
8

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL + MAX ( + 8 ) / + COUNT ( * ) col0
----
8

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

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

query I rowsort
SELECT DISTINCT - 8 - COALESCE ( + + 62, + 67 - 58 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT ALL - COUNT( - 20 ) * - - COALESCE ( + - 72, + COUNT( * ), + + 76 * + 74 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL - COUNT ( - 20 ) * - - COALESCE ( + - 72, + COUNT ( * ), + + 76 * + 74 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT - 21 + + 38 + COUNT( * ) * - 68
----
-51

skipif mysql # not compatible
query I rowsort label-7046
SELECT - 21 + + 38 + COUNT ( * ) * - 68
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7047
SELECT - - 56 * 62 + 77 + + 66 * + CAST( + 42 AS SIGNED ) * + CAST( NULL AS SIGNED ) * - + 14 / + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7047
SELECT - - 56 * 62 + 77 + + 66 * + CAST ( + 42 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - + 14 / + - 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7048
SELECT + 4 - + 87 DIV - 48
----
5

skipif mysql # not compatible
query I rowsort label-7048
SELECT + 4 - + 87 / - 48
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT 13 + - MIN( DISTINCT - 79 )
----
92

skipif mysql # not compatible
query I rowsort label-7050
SELECT 13 + - MIN ( DISTINCT - 79 )
----
92

query III rowsort
SELECT ALL - 98 * 30 * - 66 * - 60 AS col1, 5 + - ( + 31 ), - 30 AS col1
----
-11642400
-26
-30

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7053
SELECT 5 DIV + NULLIF ( - + 61, + + 40 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7053
SELECT 5 / + NULLIF ( - + 61, + + 40 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7054
SELECT CASE + 2 WHEN + COUNT( * ) + - + COUNT( * ) THEN + ( - MIN( - + CASE WHEN + 69 NOT BETWEEN - ( + ( 3 ) ) * 17 AND - 59 AND 29 NOT IN ( + 49 + 5 ) THEN + 75 END ) ) WHEN 63 + 46 THEN NULL ELSE + 63 END DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-7054
SELECT CASE + 2 WHEN + COUNT ( * ) + - + COUNT ( * ) THEN + ( - MIN ( - + CASE WHEN + 69 NOT BETWEEN - ( + ( 3 ) ) * 17 AND - 59 AND 29 NOT IN ( + 49 + 5 ) THEN + 75 END ) ) WHEN 63 + 46 THEN NULL ELSE + 63 END / + 83
----
0

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

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

query I rowsort
SELECT ALL 94 * + 2 AS col1
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT + CASE + 66 WHEN - + 18 / - + ( + COUNT( DISTINCT - 95 ) ) THEN NULL WHEN ( + + 57 ) THEN - + ( 6 ) WHEN - 30 THEN ( - ( 61 ) ) END / - 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT + CASE + 66 WHEN - + 18 / - + ( + COUNT ( DISTINCT - 95 ) ) THEN NULL WHEN ( + + 57 ) THEN - + ( 6 ) WHEN - 30 THEN ( - ( 61 ) ) END / - 67 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7059
SELECT ALL COALESCE ( + - 1, + 98 - 95 * - CAST( - - COUNT( * ) AS SIGNED ), + 14 ) + + - CAST( NULL AS SIGNED ) * - - ( - NULLIF ( 90, + 65 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL COALESCE ( + - 1, + 98 - 95 * - CAST ( - - COUNT ( * ) AS INTEGER ), + 14 ) + + - CAST ( NULL AS INTEGER ) * - - ( - NULLIF ( 90, + 65 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7060
SELECT DISTINCT 43, + 68 - + 28 DIV + 86 AS col1
----
43
68

skipif mysql # not compatible
query II rowsort label-7060
SELECT DISTINCT 43, + 68 - + 28 / + 86 AS col1
----
43
68

query I rowsort
SELECT - NULLIF ( - 90, 8 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT ALL 86 + - MAX( + 62 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL 86 + - MAX ( + 62 ) AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7063
SELECT + CASE - - 22 WHEN COUNT( * ) + - 17 THEN NULL WHEN 51 THEN + 74 DIV 96 ELSE + SUM( + + 98 ) * + 31 END * COUNT( * ) col0
----
3038

skipif mysql # not compatible
query I rowsort label-7063
SELECT + CASE - - 22 WHEN COUNT ( * ) + - 17 THEN NULL WHEN 51 THEN + 74 / 96 ELSE + SUM ( + + 98 ) * + 31 END * COUNT ( * ) col0
----
3038

query I rowsort
SELECT - 74 * 23 AS col0
----
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT + CASE - 92 WHEN 18 THEN NULL WHEN - COUNT( + 69 ) THEN - 60 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT + CASE - 92 WHEN 18 THEN NULL WHEN - COUNT ( + 69 ) THEN - 60 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7066
SELECT CASE ( - 4 ) WHEN - - 56 * + 57 + 62 + - 34 / + - 89 * + 57 + - - 12 THEN NULL WHEN 91 THEN NULL WHEN + 96 / - CASE 68 WHEN + 88 THEN NULL WHEN 30 THEN - CASE - 36 WHEN + CAST( NULL AS SIGNED ) THEN + 37 WHEN + MIN( + 47 ) + MIN( DISTINCT - 71 - 6 * - NULLIF ( 53, - 3 ) ) * - 70 THEN SUM( 18 ) WHEN - SUM( DISTINCT 33 ) + - 96 THEN 46 + 77 * COUNT( * ) ELSE - COUNT( * ) END / COUNT( * ) ELSE - 21 * + COUNT( * ) + CASE 51 WHEN 98 / COUNT( * ) + 86 THEN - CAST( + 44 AS SIGNED ) WHEN 18 THEN 41 END * + 76 END THEN 41 * 28 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7066
SELECT CASE ( - 4 ) WHEN - - 56 * + 57 + 62 + - 34 / + - 89 * + 57 + - - 12 THEN NULL WHEN 91 THEN NULL WHEN + 96 / - CASE 68 WHEN + 88 THEN NULL WHEN 30 THEN - CASE - 36 WHEN + CAST ( NULL AS INTEGER ) THEN + 37 WHEN + MIN ( + 47 ) + MIN ( DISTINCT - 71 - 6 * - NULLIF ( 53, - 3 ) ) * - 70 THEN SUM ( 18 ) WHEN - SUM ( DISTINCT 33 ) + - 96 THEN 46 + 77 * COUNT ( * ) ELSE - COUNT ( * ) END / COUNT ( * ) ELSE - 21 * + COUNT ( * ) + CASE 51 WHEN 98 / COUNT ( * ) + 86 THEN - CAST ( + 44 AS INTEGER ) WHEN 18 THEN 41 END * + 76 END THEN 41 * 28 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( ( - - 86 ), + 83 - + - 27 - - + ( + 26 ) / + - 51 * - 96 - - + 29 )
----
86

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

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL COUNT ( * ) / 89 / + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7070
SELECT ALL COUNT( * ) * + COALESCE ( 5, - - 4 * - + COUNT( * ) DIV - 43 * COUNT( * ) + - 41 ), + 8 AS col2
----
5
8

skipif mysql # not compatible
query II rowsort label-7070
SELECT ALL COUNT ( * ) * + COALESCE ( 5, - - 4 * - + COUNT ( * ) / - 43 * COUNT ( * ) + - 41 ), + 8 AS col2
----
5
8

query I rowsort
SELECT - 66 * + - CASE + 74 WHEN 43 * 58 * - 96 THEN + ( - ( + ( - 89 ) ) ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT - - 57 * + + 79 + + + COUNT( * ) * + + 70 AS col2
----
4573

skipif mysql # not compatible
query I rowsort label-7073
SELECT - - 57 * + + 79 + + + COUNT ( * ) * + + 70 AS col2
----
4573

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

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

query I rowsort
SELECT - - 8 - - 35 AS col0
----
43

query I rowsort
SELECT ALL + ( - - 30 ) * - 71 + + - ( - + 48 )
----
-2082

onlyif mysql # aggregate syntax: 
query II rowsort label-7077
SELECT - + 80 - + 40 * - COUNT( * ), + 5 + + + 84 AS col2
----
-40
89

skipif mysql # not compatible
query II rowsort label-7077
SELECT - + 80 - + 40 * - COUNT ( * ), + 5 + + + 84 AS col2
----
-40
89

query I rowsort
SELECT ALL - 11 + + 69 AS col0
----
58

query II rowsort
SELECT DISTINCT 60 col1, 97 AS col1
----
60
97

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

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

query I rowsort
SELECT + + 25 * - 64
----
-1600

query II rowsort
SELECT ALL - 18 AS col1, - NULLIF ( + 64, + - 58 - + 74 )
----
-18
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7083
SELECT ALL - 50 + - - CAST( 27 AS SIGNED ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL - 50 + - - CAST ( 27 AS INTEGER ) AS col0
----
-23

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7085
SELECT - SUM( - 46 ) AS col1, 43
----
46
43

skipif mysql # not compatible
query II rowsort label-7085
SELECT - SUM ( - 46 ) AS col1, 43
----
46
43

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7087
SELECT - ( + - 1 ) - + 63 + 7 DIV - 89 + ( + + 12 ) col0
----
-50

skipif mysql # not compatible
query I rowsort label-7087
SELECT - ( + - 1 ) - + 63 + 7 / - 89 + ( + + 12 ) col0
----
-50

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7089
SELECT ALL 36 AS col1, 22 + COUNT( * ) * - 58 + 4 + - 78
----
36
-110

skipif mysql # not compatible
query II rowsort label-7089
SELECT ALL 36 AS col1, 22 + COUNT ( * ) * - 58 + 4 + - 78
----
36
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT ALL + 16 - + COUNT( * ) col2
----
15

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL + 16 - + COUNT ( * ) col2
----
15

query I rowsort
SELECT - NULLIF ( - 34, - + 73 )
----
34

query I rowsort
SELECT + 75 - + 42 col2
----
33

query I rowsort
SELECT ALL 80 * + 41
----
3280

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7096
SELECT DISTINCT - 99 * - ( - CAST( - - 7 AS SIGNED ) )
----
-693

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT - 99 * - ( - CAST ( - - 7 AS INTEGER ) )
----
-693

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT DISTINCT MAX( DISTINCT + - 75 ) - ( - 26 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT MAX ( DISTINCT + - 75 ) - ( - 26 ) AS col2
----
-49

query I rowsort
SELECT + 15 + 25
----
40

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

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

query I rowsort
SELECT + 91 + - 54
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT + NULLIF ( - + 89, - + COALESCE ( - 13, + AVG ( ALL - 54 ) ) * + + ( 2 ) + - COUNT( * ) + 63 + - - 87 * 74 / + 23 )
----
-89

skipif mysql # not compatible
query I rowsort label-7102
SELECT + NULLIF ( - + 89, - + COALESCE ( - 13, + AVG ( ALL - 54 ) ) * + + ( 2 ) + - COUNT ( * ) + 63 + - - 87 * 74 / + 23 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT + + COUNT( ALL - 44 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7103
SELECT + + COUNT ( ALL - 44 ) AS col1
----
1

query I rowsort
SELECT + + 47 * + 30 + - 72 AS col0
----
1338

query I rowsort
SELECT ALL + + NULLIF ( 70, + COALESCE ( - + 73, + 45 ) )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7106
SELECT CASE COUNT( * ) WHEN + 20 THEN + - 53 ELSE - + 49 * + - 95 + + 7 - + 99 - + 64 - - 90 + + 36 * + 86 * - 28 END DIV - 9 + COUNT( * ) AS col1
----
9123

skipif mysql # not compatible
query I rowsort label-7106
SELECT CASE COUNT ( * ) WHEN + 20 THEN + - 53 ELSE - + 49 * + - 95 + + 7 - + 99 - + 64 - - 90 + + 36 * + 86 * - 28 END / - 9 + COUNT ( * ) AS col1
----
9123

query I rowsort
SELECT DISTINCT - 9 * + + 57
----
-513

query I rowsort
SELECT + + 3 * - + 42 AS col1
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7109
SELECT ALL + 19 DIV - 71 + NULLIF ( + + COUNT( * ), + CASE 92 WHEN + 52 THEN - + 50 WHEN COUNT( * ) * - COALESCE ( + + 38, + 75, 58 ) THEN NULL ELSE NULL END )
----
1

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL + 19 / - 71 + NULLIF ( + + COUNT ( * ), + CASE 92 WHEN + 52 THEN - + 50 WHEN COUNT ( * ) * - COALESCE ( + + 38, + 75, 58 ) THEN NULL ELSE NULL END )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7110
SELECT DISTINCT + + CASE 98 WHEN - + CAST( NULL AS SIGNED ) / - CAST( + - CASE - COUNT( * ) WHEN 8 * + 67 * - 74 * + - 67 - + COALESCE ( 96, 29 ) * COUNT( * ) THEN NULL ELSE 43 END AS DECIMAL ) + - 58 THEN SUM( ALL - 45 ) + - ( - 40 - + 41 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT + + CASE 98 WHEN - + CAST ( NULL AS INTEGER ) / - CAST ( + - CASE - COUNT ( * ) WHEN 8 * + 67 * - 74 * + - 67 - + COALESCE ( 96, 29 ) * COUNT ( * ) THEN NULL ELSE 43 END AS REAL ) + - 58 THEN SUM ( ALL - 45 ) + - ( - 40 - + 41 ) END AS col1
----
NULL

query I rowsort
SELECT ALL - 90 * - 97 + 2
----
8732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7112
SELECT + + COUNT( * ), - CAST( 70 AS SIGNED ) * + 0 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-7112
SELECT + + COUNT ( * ), - CAST ( 70 AS INTEGER ) * + 0 AS col2
----
1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7113
SELECT + + 35 + - AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7113
SELECT + + 35 + - AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7114
SELECT + 24 * + 98 + 41 + - 95 DIV SUM( - 89 ) DIV + 33 + + - ( - 35 )
----
2428

skipif mysql # not compatible
query I rowsort label-7114
SELECT + 24 * + 98 + 41 + - 95 / SUM ( - 89 ) / + 33 + + - ( - 35 )
----
2428

onlyif mysql # aggregate syntax: 
query II rowsort label-7115
SELECT 43 - 31 AS col0, + ( + 31 ) + + COUNT( * ) + + 48
----
12
80

skipif mysql # not compatible
query II rowsort label-7115
SELECT 43 - 31 AS col0, + ( + 31 ) + + COUNT ( * ) + + 48
----
12
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7116
SELECT ALL - + 77 col1, - COUNT( * ) + - + 7 AS col0
----
-77
-8

skipif mysql # not compatible
query II rowsort label-7116
SELECT ALL - + 77 col1, - COUNT ( * ) + - + 7 AS col0
----
-77
-8

query I rowsort
SELECT DISTINCT - 21 + + 66 AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7118
SELECT DISTINCT 58 DIV - ( - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-7118
SELECT DISTINCT 58 / - ( - 52 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7119
SELECT DISTINCT - 2 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT - 2 / - 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT DISTINCT + 12 * + COALESCE ( + + COUNT( * ), COUNT( * ) + - 5 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT + 12 * + COALESCE ( + + COUNT ( * ), COUNT ( * ) + - 5 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT 5 + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-7121
SELECT 5 + + COUNT ( * )
----
6

query I rowsort
SELECT ALL - 85 - + 24 + + 82 * 30 + + 24
----
2375

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT DISTINCT + COUNT( * ) * 90 * - 29
----
-2610

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT + COUNT ( * ) * 90 * - 29
----
-2610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7124
SELECT COUNT( * ) + - + CAST( NULL AS SIGNED ) + - + 75 * + 25 * - - 88 AS col2, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7124
SELECT COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + - + 75 * + 25 * - - 88 AS col2, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT 30 + + 51 * - 73 AS col0
----
-3693

query I rowsort
SELECT DISTINCT + 67 - - 27 * + + 6 * 1 * - 86 col1
----
-13865

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT DISTINCT - COUNT( * ) * CASE + + 33 WHEN + 90 + + 35 - + COUNT( * ) THEN MIN( ALL + - 0 ) END * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT - COUNT ( * ) * CASE + + 33 WHEN + 90 + + 35 - + COUNT ( * ) THEN MIN ( ALL + - 0 ) END * 56
----
NULL

query I rowsort
SELECT ALL 27 * + + 76
----
2052

onlyif mysql # aggregate syntax: 
query II rowsort label-7129
SELECT 49 * + - COUNT( * ) AS col2, - 65 * - 10 AS col1
----
-49
650

skipif mysql # not compatible
query II rowsort label-7129
SELECT 49 * + - COUNT ( * ) AS col2, - 65 * - 10 AS col1
----
-49
650

query II rowsort
SELECT 19 - - 68 + 14 AS col1, + 77
----
101
77

query II rowsort
SELECT ALL 91 * - + 6, 25 AS col0
----
-546
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7132
SELECT 26 * - + 12 * + + CAST( + 29 AS SIGNED ) * 90
----
-814320

skipif mysql # not compatible
query I rowsort label-7132
SELECT 26 * - + 12 * + + CAST ( + 29 AS INTEGER ) * 90
----
-814320

query II rowsort
SELECT + + CASE - 70 WHEN 37 + - 50 THEN - 90 END, - 51 col1
----
NULL
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT - 1 * + - MIN( ALL - 14 ) - + 29
----
-43

skipif mysql # not compatible
query I rowsort label-7134
SELECT - 1 * + - MIN ( ALL - 14 ) - + 29
----
-43

query I rowsort
SELECT + 5 * 42 col0
----
210

query I rowsort
SELECT ALL - ( + 41 ) + + 87
----
46

query I rowsort
SELECT ALL - - 98 + 48
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT ALL + NULLIF ( - 96, - 92 - - - 21 * - 86 ) * - + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL + NULLIF ( - 96, - 92 - - - 21 * - 86 ) * - + COUNT ( * )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7139
SELECT DISTINCT - 77 + - CAST( + 10 AS SIGNED ) * + COUNT( - ( 18 ) ) col2
----
-87

skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT - 77 + - CAST ( + 10 AS INTEGER ) * + COUNT ( - ( 18 ) ) col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7140
SELECT DISTINCT - 19 + 51 * + COALESCE ( - COUNT( * ), 27 DIV + + COUNT( * ), - 43 ) + 51 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT - 19 + 51 * + COALESCE ( - COUNT ( * ), 27 / + + COUNT ( * ), - 43 ) + 51 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT + ( + - NULLIF ( - 69, + NULLIF ( + + 40, - SUM( - - 32 ) * - - 45 * AVG ( + COALESCE ( + - 59, + + 98 ) ) ) ) )
----
69

skipif mysql # not compatible
query I rowsort label-7141
SELECT + ( + - NULLIF ( - 69, + NULLIF ( + + 40, - SUM ( - - 32 ) * - - 45 * AVG ( + COALESCE ( + - 59, + + 98 ) ) ) ) )
----
69

query I rowsort
SELECT ALL - 86 + - + 46 - - 9 AS col2
----
-123

query II rowsort
SELECT + 8 + 31, 76 AS col0
----
39
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT DISTINCT - 36 + + ( - - COUNT( * ) ) * + 60 col2
----
24

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT - 36 + + ( - - COUNT ( * ) ) * + 60 col2
----
24

query I rowsort
SELECT DISTINCT - + CASE + 75 WHEN + 97 + 29 + + 23 THEN NULL ELSE - 71 END
----
71

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

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

query II rowsort
SELECT DISTINCT - ( 11 ), ( - 50 ) AS col2
----
-11
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7148
SELECT ALL COUNT( * ) * - - ( - 19 ) DIV + 73 + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL COUNT ( * ) * - - ( - 19 ) / + 73 + - 6
----
-6

query I rowsort
SELECT DISTINCT - - NULLIF ( 10, 47 + 62 + 88 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT ALL + COUNT( * ) - + 98 + - ( - 3 )
----
-94

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL + COUNT ( * ) - + 98 + - ( - 3 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT CASE 65 WHEN + COUNT( * ) THEN 50 + - + 12 + + - 67 ELSE - - 41 + 93 END - 78
----
56

skipif mysql # not compatible
query I rowsort label-7151
SELECT CASE 65 WHEN + COUNT ( * ) THEN 50 + - + 12 + + - 67 ELSE - - 41 + 93 END - 78
----
56

query I rowsort
SELECT 79 * + 34 col2
----
2686

query I rowsort
SELECT 14 * - + 24
----
-336

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT COUNT( * ) * - 3 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7155
SELECT COUNT ( * ) * - 3 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7156
SELECT COALESCE ( 92, + SUM( DISTINCT - 98 ) ) DIV + + 29 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7156
SELECT COALESCE ( 92, + SUM ( DISTINCT - 98 ) ) / + + 29 AS col0
----
3

query II rowsort
SELECT DISTINCT 45, + 2 AS col1
----
45
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT 20 - + - CASE NULLIF ( - 7, + - 32 ) WHEN + COUNT( * ) / 74 / + 85 + + - ( - + 41 ) THEN + + 41 + - + 60 ELSE - 89 END - + NULLIF ( - 5 + 65, COUNT( * ) ) AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-7158
SELECT 20 - + - CASE NULLIF ( - 7, + - 32 ) WHEN + COUNT ( * ) / 74 / + 85 + + - ( - + 41 ) THEN + + 41 + - + 60 ELSE - 89 END - + NULLIF ( - 5 + 65, COUNT ( * ) ) AS col0
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7159
SELECT ALL COUNT( * ) DIV - - 38 * + - COUNT( * ) AS col1, 9 AS col1
----
0
9

skipif mysql # not compatible
query II rowsort label-7159
SELECT ALL COUNT ( * ) / - - 38 * + - COUNT ( * ) AS col1, 9 AS col1
----
0
9

query I rowsort
SELECT 30 - - NULLIF ( 61, - - 38 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT 4 + - MIN( ALL + 91 ) * - - AVG ( DISTINCT - 53 ) * + 33 + + - CASE 57 WHEN 9 THEN - + 43 WHEN COUNT( * ) THEN NULL WHEN + 88 THEN - 53 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT 4 + - MIN ( ALL + 91 ) * - - AVG ( DISTINCT - 53 ) * + 33 + + - CASE 57 WHEN 9 THEN - + 43 WHEN COUNT ( * ) THEN NULL WHEN + 88 THEN - 53 END AS col1
----
NULL

query II rowsort
SELECT 23, + COALESCE ( 49, - 21, - 36 ) - 43 * + 69 * 5 AS col1
----
23
-14786

query I rowsort
SELECT 10 + - 51 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT 45 * MIN( DISTINCT + - 36 ) AS col1
----
-1620

skipif mysql # not compatible
query I rowsort label-7164
SELECT 45 * MIN ( DISTINCT + - 36 ) AS col1
----
-1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7165
SELECT DISTINCT - 82 * 62 DIV + + 84 AS col1, - CASE + - 39 WHEN 39 THEN + 44 * - 89 + + COUNT( * ) END + - - 33
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-7165
SELECT DISTINCT - 82 * 62 / + + 84 AS col1, - CASE + - 39 WHEN 39 THEN + 44 * - 89 + + COUNT ( * ) END + - - 33
----
-60
NULL

query II rowsort
SELECT - 65 AS col0, - 33 * + + 18 AS col2
----
-65
-594

query I rowsort
SELECT 29 + - 22 AS col0
----
7

query I rowsort
SELECT 39 + + 7
----
46

query I rowsort
SELECT ALL + + 75 + + ( 47 ) AS col1
----
122

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT + COUNT( * ) + - 7 + - 72 * + 25
----
-1806

skipif mysql # not compatible
query I rowsort label-7171
SELECT + COUNT ( * ) + - 7 + - 72 * + 25
----
-1806

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT COUNT( * ) * + 83 + 85 AS col2
----
168

skipif mysql # not compatible
query I rowsort label-7172
SELECT COUNT ( * ) * + 83 + 85 AS col2
----
168

query I rowsort
SELECT ALL 95 * 1 * 12 * + 43 + 97 AS col2
----
49117

query II rowsort
SELECT + + 49 AS col0, 81 + - 64 AS col1
----
49
17

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

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

query II rowsort
SELECT DISTINCT - - 20 * + 1 * - + 55 AS col0, 52 col2
----
-1100
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7177
SELECT - COUNT( * ) / - 51 / - + 58 * - + CAST( NULL AS SIGNED ) * - - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7177
SELECT - COUNT ( * ) / - 51 / - + 58 * - + CAST ( NULL AS INTEGER ) * - - 75 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7178
SELECT + + 17 DIV + 28 + + CAST( + + ( COUNT( ALL - 54 ) ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7178
SELECT + + 17 / + 28 + + CAST ( + + ( COUNT ( ALL - 54 ) ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT DISTINCT + + 80 AS col0
----
80

query I rowsort
SELECT ALL + + 81 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT DISTINCT 78 * - - COUNT( * ) + 64 - - - 72 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-7181
SELECT DISTINCT 78 * - - COUNT ( * ) + 64 - - - 72 AS col1
----
70

query I rowsort
SELECT ALL - + 15 * 18 + - + 4 + - 24 * - 73 AS col0
----
1478

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT ( + 60 ) * 13 + - + 68 - + MIN( + 31 ) AS col0
----
681

skipif mysql # not compatible
query I rowsort label-7183
SELECT ( + 60 ) * 13 + - + 68 - + MIN ( + 31 ) AS col0
----
681

query I rowsort
SELECT + 75 - 80 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-7185
SELECT COUNT( 92 ) AS col0, - 68 * - 28 + 67
----
1
1971

skipif mysql # not compatible
query II rowsort label-7185
SELECT COUNT ( 92 ) AS col0, - 68 * - 28 + 67
----
1
1971

onlyif mysql # DIV for integer division: 
query I rowsort label-7186
SELECT + 63 + + 49 DIV - 26
----
62

skipif mysql # not compatible
query I rowsort label-7186
SELECT + 63 + + 49 / - 26
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT - CASE 96 WHEN + + 8 + + 3 THEN + 27 * - - 27 + - 52 + - 19 * 68 * - COUNT( * ) ELSE 89 END
----
-89

skipif mysql # not compatible
query I rowsort label-7187
SELECT - CASE 96 WHEN + + 8 + + 3 THEN + 27 * - - 27 + - 52 + - 19 * 68 * - COUNT ( * ) ELSE 89 END
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-7188
SELECT + COUNT( * ) + - + 24 AS col1, + 93 - + - 38
----
-23
131

skipif mysql # not compatible
query II rowsort label-7188
SELECT + COUNT ( * ) + - + 24 AS col1, + 93 - + - 38
----
-23
131

query I rowsort
SELECT + 86 * 8 AS col1
----
688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7190
SELECT DISTINCT COALESCE ( + 62, - + CAST( + 94 AS SIGNED ) ) * + 22 * - 43
----
-58652

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT COALESCE ( + 62, - + CAST ( + 94 AS INTEGER ) ) * + 22 * - 43
----
-58652

query I rowsort
SELECT ALL 74 + 97
----
171

query I rowsort
SELECT - NULLIF ( - 38, 22 / 21 * - 38 - - 58 + + 89 - - 32 * - + 50 * 6 ) AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7193
SELECT - 86 + CASE + 98 WHEN - 20 THEN - 36 ELSE COUNT( DISTINCT ( - + 27 ) ) * - + 47 END, + 78 + + + CAST( NULL AS SIGNED ) * - COUNT( * ) * - + 85 + - 47 + - 11 * COUNT( * ) AS col0
----
-133
NULL

skipif mysql # not compatible
query II rowsort label-7193
SELECT - 86 + CASE + 98 WHEN - 20 THEN - 36 ELSE COUNT ( DISTINCT ( - + 27 ) ) * - + 47 END, + 78 + + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - + 85 + - 47 + - 11 * COUNT ( * ) AS col0
----
-133
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7194
SELECT + 56 * - - 70 * - - CAST( NULL AS SIGNED ) * + 36 * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7194
SELECT + 56 * - - 70 * - - CAST ( NULL AS INTEGER ) * + 36 * 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT - MIN( DISTINCT + + 81 ) + - ( + 51 ) col1
----
-132

skipif mysql # not compatible
query I rowsort label-7195
SELECT - MIN ( DISTINCT + + 81 ) + - ( + 51 ) col1
----
-132

query I rowsort
SELECT ALL - 60 + - 66
----
-126

query I rowsort
SELECT DISTINCT - 51 + - 49 AS col2
----
-100

query I rowsort
SELECT ALL + 88 * - 72 col1
----
-6336

query I rowsort
SELECT ALL - 30 + - COALESCE ( + 91, + + 38 * - + 28, + 10 ) AS col2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7200
SELECT - + 24 * + + CASE + 29 WHEN 86 THEN 74 * - 52 WHEN - 20 + CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT - + 24 * + + CASE + 29 WHEN 86 THEN 74 * - 52 WHEN - 20 + CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL 80 + - 67 - - + 79 AS col0
----
92

query I rowsort
SELECT NULLIF ( + 93, + 85 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7203
SELECT ALL CASE + - CASE 58 WHEN + 31 + + 96 THEN + 98 END WHEN 35 + - 35 * - + MIN( + + 29 ) THEN NULL ELSE 77 DIV - - NULLIF ( - 38, 40 ) END AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL CASE + - CASE 58 WHEN + 31 + + 96 THEN + 98 END WHEN 35 + - 35 * - + MIN ( + + 29 ) THEN NULL ELSE 77 / - - NULLIF ( - 38, 40 ) END AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT ALL - - 68 + COUNT( * ) - + 32 + 57 * - + 15 col1
----
-818

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL - - 68 + COUNT ( * ) - + 32 + 57 * - + 15 col1
----
-818

onlyif mysql # aggregate syntax: 
query II rowsort label-7205
SELECT + ( + - 70 ) AS col1, 89 + + COUNT( * )
----
-70
90

skipif mysql # not compatible
query II rowsort label-7205
SELECT + ( + - 70 ) AS col1, 89 + + COUNT ( * )
----
-70
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7206
SELECT DISTINCT - 41 DIV + 84 - 76 DIV - COUNT( * ) AS col2, 74 AS col0
----
76
74

skipif mysql # not compatible
query II rowsort label-7206
SELECT DISTINCT - 41 / + 84 - 76 / - COUNT ( * ) AS col2, 74 AS col0
----
76
74

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7208
SELECT ALL - 98 DIV + 26 - 79
----
-82

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL - 98 / + 26 - 79
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT - - 98 * - + 47 - - 67 + + + COUNT( 34 )
----
-4538

skipif mysql # not compatible
query I rowsort label-7209
SELECT - - 98 * - + 47 - - 67 + + + COUNT ( 34 )
----
-4538

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT ALL + - COUNT( + 58 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL + - COUNT ( + 58 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7211
SELECT - CAST( NULL AS SIGNED ) + - + 17 * 13 + + 0 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT - CAST ( NULL AS INTEGER ) + - + 17 * 13 + + 0 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7212
SELECT + - COUNT( * ) * 89 - + COALESCE ( + COUNT( * ), + 78 * 27 * - COUNT( * ) * - + 16 DIV 93 * CAST( NULL AS SIGNED ) )
----
-90

skipif mysql # not compatible
query I rowsort label-7212
SELECT + - COUNT ( * ) * 89 - + COALESCE ( + COUNT ( * ), + 78 * 27 * - COUNT ( * ) * - + 16 / 93 * CAST ( NULL AS INTEGER ) )
----
-90

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7214
SELECT DISTINCT + 93 DIV - 65 + + - 64 + - 31 + + SUM( DISTINCT + 58 )
----
-38

skipif mysql # not compatible
query I rowsort label-7214
SELECT DISTINCT + 93 / - 65 + + - 64 + - 31 + + SUM ( DISTINCT + 58 )
----
-38

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

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

query I rowsort
SELECT - ( 82 ) * + 79 * + + 45
----
-291510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7217
SELECT + 76 + + 58 + + CAST( 55 AS SIGNED ) DIV 81 + - + ( ( + - NULLIF ( - 20, + NULLIF ( + - 37, 6 * 91 DIV - CASE - 27 WHEN CAST( NULL AS SIGNED ) THEN - 46 WHEN - 4 * + COUNT( * ) + + 52 THEN NULL ELSE NULL END ) ) ) )
----
114

skipif mysql # not compatible
query I rowsort label-7217
SELECT + 76 + + 58 + + CAST ( 55 AS INTEGER ) / 81 + - + ( ( + - NULLIF ( - 20, + NULLIF ( + - 37, 6 * 91 / - CASE - 27 WHEN CAST ( NULL AS INTEGER ) THEN - 46 WHEN - 4 * + COUNT ( * ) + + 52 THEN NULL ELSE NULL END ) ) ) )
----
114

query I rowsort
SELECT DISTINCT + CASE WHEN NULL = NULL THEN 41 ELSE - 93 END * + 67 * - 73 + + 20
----
454883

query I rowsort
SELECT ALL ( - + COALESCE ( + 56, + ( - 39 ) ) ) * 71 AS col2
----
-3976

onlyif mysql # DIV for integer division: 
query I rowsort label-7220
SELECT - 22 DIV + - 11 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7220
SELECT - 22 / + - 11 AS col1
----
2

query I rowsort
SELECT - 40 * - - 1 AS col0
----
-40

query I rowsort
SELECT DISTINCT + 54 * + 32 col0
----
1728

query I rowsort
SELECT CASE - - 94 WHEN - 96 THEN + 65 * 1 END col1
----
NULL

query I rowsort
SELECT ALL - 90 * + 17
----
-1530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7225
SELECT ALL + CAST( 40 AS SIGNED ) col2
----
40

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL + CAST ( 40 AS INTEGER ) col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT - 86 DIV - 70
----
1

skipif mysql # not compatible
query I rowsort label-7226
SELECT - 86 / - 70
----
1

query I rowsort
SELECT NULLIF ( 17, - 58 * ( - 13 ) ) AS col1
----
17

query I rowsort
SELECT - 80 - - + 59 col0
----
-21

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7230
SELECT - 56 + - 55 * + + 63 DIV 93 DIV + MIN( + 53 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-7230
SELECT - 56 + - 55 * + + 63 / 93 / + MIN ( + 53 ) AS col1
----
-56

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

query II rowsort
SELECT - ( ( 95 ) ) AS col0, 90 AS col0
----
-95
90

query I rowsort
SELECT ALL 20 + + 77
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7234
SELECT ALL 97 * - NULLIF ( + 97, - CAST( NULL AS SIGNED ) * - + 26 ) AS col2
----
-9409

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL 97 * - NULLIF ( + 97, - CAST ( NULL AS INTEGER ) * - + 26 ) AS col2
----
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT + COALESCE ( 80, + 47 + - - 7 + ( - + 58 ) ) - + COALESCE ( - COUNT( * ), - - 69 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7235
SELECT + COALESCE ( 80, + 47 + - - 7 + ( - + 58 ) ) - + COALESCE ( - COUNT ( * ), - - 69 ) AS col1
----
81

query I rowsort
SELECT - - 42 * + + 74
----
3108

query I rowsort
SELECT DISTINCT + 31 * + - 44
----
-1364

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT CASE - 16 WHEN + + 33 / + COUNT( * ) + ( 56 ) - - 44 * 57 THEN + + COALESCE ( 92, + - 85 * + 58 * + 8 ) + - 67 WHEN - ( + 66 ) + + 38 THEN + 48 ELSE NULL END + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7238
SELECT CASE - 16 WHEN + + 33 / + COUNT ( * ) + ( 56 ) - - 44 * 57 THEN + + COALESCE ( 92, + - 85 * + 58 * + 8 ) + - 67 WHEN - ( + 66 ) + + 38 THEN + 48 ELSE NULL END + - 77
----
NULL

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

query I rowsort
SELECT + 61 + + + 33 col2
----
94

query I rowsort
SELECT - + 73 col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7242
SELECT ( - + 62 ) + + - NULLIF ( + COALESCE ( 70, - COUNT( * ) * + ( CAST( NULL AS SIGNED ) ) ), + 7 )
----
-132

skipif mysql # not compatible
query I rowsort label-7242
SELECT ( - + 62 ) + + - NULLIF ( + COALESCE ( 70, - COUNT ( * ) * + ( CAST ( NULL AS INTEGER ) ) ), + 7 )
----
-132

query I rowsort
SELECT DISTINCT - 54 * + 32 * - 64 AS col1
----
110592

query I rowsort
SELECT 35 + - 46 * + 55 - - 12 AS col2
----
-2483

query I rowsort
SELECT 66 * - 70
----
-4620

onlyif mysql # DIV for integer division: 
query I rowsort label-7246
SELECT ALL + + 3 DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL + + 3 / + 29
----
0

query I rowsort
SELECT - 10 + - 42
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7248
SELECT 58 + CAST( 98 AS SIGNED ) AS col1
----
156

skipif mysql # not compatible
query I rowsort label-7248
SELECT 58 + CAST ( 98 AS INTEGER ) AS col1
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT ALL 94 DIV - 84
----
-1

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL 94 / - 84
----
-1

query I rowsort
SELECT + 33 * - + 1 AS col2
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7251
SELECT ALL - 55 DIV - 58 + 32 + + 19 * + 6 * + - COUNT( - ( - 47 ) ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL - 55 / - 58 + 32 + + 19 * + 6 * + - COUNT ( - ( - 47 ) ) AS col2
----
-82

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT + ( 25 ) * - + 26 + - 96 + - 8 * - 11 + - MAX( + 93 ) + - 47 - CASE - 32 WHEN - - 58 THEN + 40 * + - 96 + - + 85 * 99 WHEN COUNT( * ) THEN + 0 * + 36 END * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7254
SELECT + ( 25 ) * - + 26 + - 96 + - 8 * - 11 + - MAX ( + 93 ) + - 47 - CASE - 32 WHEN - - 58 THEN + 40 * + - 96 + - + 85 * 99 WHEN COUNT ( * ) THEN + 0 * + 36 END * 57
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7256
SELECT ( 63 ) DIV - - 29 + + ( + 64 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7256
SELECT ( 63 ) / - - 29 + + ( + 64 ) AS col0
----
66

query I rowsort
SELECT ALL + + 48 * + ( - - ( + 74 ) ) AS col1
----
3552

query I rowsort
SELECT 4 * 64 AS col0
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT ALL COUNT( - 82 ) + + COUNT( * ) * + 5 * + MAX( - 40 )
----
-199

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL COUNT ( - 82 ) + + COUNT ( * ) * + 5 * + MAX ( - 40 )
----
-199

onlyif mysql # DIV for integer division: 
query II rowsort label-7260
SELECT ALL - 43, - 10 DIV 78 + 51 AS col0
----
-43
51

skipif mysql # not compatible
query II rowsort label-7260
SELECT ALL - 43, - 10 / 78 + 51 AS col0
----
-43
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT ALL - MAX( - 54 ) + - - CASE WHEN ( NULL ) IS NULL THEN NULL ELSE + CASE + 8 WHEN - 65 THEN + ( - 5 ) ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL - MAX ( - 54 ) + - - CASE WHEN ( NULL ) IS NULL THEN NULL ELSE + CASE + 8 WHEN - 65 THEN + ( - 5 ) ELSE NULL END END AS col2
----
NULL

query I rowsort
SELECT 20 + 63 + + 87
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL - CASE + MIN( - COALESCE ( - 18, + 10 ) ) WHEN 16 THEN 67 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL - CASE + MIN ( - COALESCE ( - 18, + 10 ) ) WHEN 16 THEN 67 END AS col2
----
NULL

query II rowsort
SELECT 25, - 72 AS col1
----
25
-72

query I rowsort
SELECT 10 + + - 69
----
-59

query I rowsort
SELECT ALL + ( - 8 ) + - - 54 + - 16 + - 10 + 94 + - ( - 17 ) * - 24 * - 0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7267
SELECT - CAST( 68 AS SIGNED ) * + ( - + 76 ) + + 3 + + - 2 * - 10 + ( - 36 ) AS col2
----
5155

skipif mysql # not compatible
query I rowsort label-7267
SELECT - CAST ( 68 AS INTEGER ) * + ( - + 76 ) + + 3 + + - 2 * - 10 + ( - 36 ) AS col2
----
5155

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7269
SELECT 32 * + 93 + 89 DIV ( + 57 )
----
2977

skipif mysql # not compatible
query I rowsort label-7269
SELECT 32 * + 93 + 89 / ( + 57 )
----
2977

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

query I rowsort
SELECT ALL - 5 * - - 49 * - + 21
----
5145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7272
SELECT DISTINCT - COALESCE ( - - 93, - + 32 - + COUNT( DISTINCT + 33 ) DIV - - 32 + 43 * + COUNT( * ) ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT - COALESCE ( - - 93, - + 32 - + COUNT ( DISTINCT + 33 ) / - - 32 + 43 * + COUNT ( * ) ) col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7273
SELECT DISTINCT + CAST( - MAX( DISTINCT 15 ) AS SIGNED ) + - ( + 63 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT + CAST ( - MAX ( DISTINCT 15 ) AS INTEGER ) + - ( + 63 ) AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7274
SELECT ALL 21 + 68 + + - CAST( 13 AS SIGNED ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL 21 + 68 + + - CAST ( 13 AS INTEGER ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT 55 + + ( + - COUNT( * ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7275
SELECT 55 + + ( + - COUNT ( * ) ) AS col1
----
54

query I rowsort
SELECT 58 * - + 69
----
-4002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7277
SELECT ALL - CAST( NULL AS SIGNED ) * - 74 * + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL - CAST ( NULL AS INTEGER ) * - 74 * + 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT 35 * COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-7278
SELECT 35 * COUNT ( * ) AS col1
----
35

query I rowsort
SELECT + 31 * + - 15 AS col1
----
-465

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT - + NULLIF ( 23, - COUNT( + 18 ) ) col1
----
-23

skipif mysql # not compatible
query I rowsort label-7280
SELECT - + NULLIF ( 23, - COUNT ( + 18 ) ) col1
----
-23

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

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

skipif mysql # not compatible
query II rowsort label-7282
SELECT - - CAST ( NULL AS INTEGER ) AS col0, + 99 * + 71 AS col2
----
NULL
7029

query I rowsort
SELECT - 15 + + - 25
----
-40

query II rowsort
SELECT ALL + 98 AS col0, - 89 * + ( - + 33 ) * - 78 * - 12 * + + 6 - + 31
----
98
16494161

query II rowsort
SELECT ALL + 45 AS col2, 55
----
45
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7286
SELECT - 90, MAX( DISTINCT - 20 ) AS col2
----
-90
-20

skipif mysql # not compatible
query II rowsort label-7286
SELECT - 90, MAX ( DISTINCT - 20 ) AS col2
----
-90
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7287
SELECT ALL 1, COUNT( * ) DIV - + 45 + + 48 AS col2
----
1
48

skipif mysql # not compatible
query II rowsort label-7287
SELECT ALL 1, COUNT ( * ) / - + 45 + + 48 AS col2
----
1
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT DISTINCT + COUNT( * ) - + + 3 + - COUNT( * ) + + 29 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT + COUNT ( * ) - + + 3 + - COUNT ( * ) + + 29 AS col0
----
26

query II rowsort
SELECT + 13 AS col0, 31 * - 25 + + + 25 AS col0
----
13
-750

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

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

query II rowsort
SELECT DISTINCT 69, - 0 AS col2
----
69
0

query I rowsort
SELECT + 75 - - 95 AS col1
----
170

query I rowsort
SELECT DISTINCT + 60 * - - 97 + + NULLIF ( - 21, + CASE - 9 WHEN 68 * 74 THEN ( - 89 ) END ) AS col1
----
5799

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

skipif mysql # not compatible
query I rowsort label-7294
SELECT - 97 / - COUNT ( * ) AS col2
----
97

query I rowsort
SELECT ALL + 20 * 16 + - - 59
----
379

onlyif mysql # DIV for integer division: 
query I rowsort label-7296
SELECT DISTINCT 40 DIV + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT 40 / + 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT ALL + 26 * - + COUNT( * ) + COUNT( * ) AS col0
----
-25

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

query I rowsort
SELECT 13 * + + 23 * 5
----
1495

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT - 88 * + SUM( DISTINCT - + 11 ) + + 53 AS col0
----
1021

skipif mysql # not compatible
query I rowsort label-7300
SELECT - 88 * + SUM ( DISTINCT - + 11 ) + + 53 AS col0
----
1021

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT ALL + NULLIF ( 10, 31 * 61 + MAX( DISTINCT NULLIF ( + 11, - ( + - 51 ) * + + 44 ) ) ) * 41 * 90 * 55
----
2029500

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL + NULLIF ( 10, 31 * 61 + MAX ( DISTINCT NULLIF ( + 11, - ( + - 51 ) * + + 44 ) ) ) * 41 * 90 * 55
----
2029500

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT + NULLIF ( 35, - COUNT( * ) * 70 ) col0
----
35

skipif mysql # not compatible
query I rowsort label-7303
SELECT + NULLIF ( 35, - COUNT ( * ) * 70 ) col0
----
35

query I rowsort
SELECT ALL - 64 + + - 80 AS col0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT 55 * 47 * + COUNT( DISTINCT + 19 ) * 15 + 55 col2
----
38830

skipif mysql # not compatible
query I rowsort label-7305
SELECT 55 * 47 * + COUNT ( DISTINCT + 19 ) * 15 + 55 col2
----
38830

query I rowsort
SELECT ALL 33 - + 84 col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7307
SELECT + CASE - ( - 86 ) WHEN + CAST( NULL AS SIGNED ) + 95 THEN NULL ELSE 72 * + CAST( + ( - NULLIF ( 5, + - 0 ) ) AS SIGNED ) * 83 - - 5 END
----
-29875

skipif mysql # not compatible
query I rowsort label-7307
SELECT + CASE - ( - 86 ) WHEN + CAST ( NULL AS INTEGER ) + 95 THEN NULL ELSE 72 * + CAST ( + ( - NULLIF ( 5, + - 0 ) ) AS INTEGER ) * 83 - - 5 END
----
-29875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7308
SELECT - 97 * COALESCE ( - 93, - 14 + - - 6 + - CASE + 79 WHEN + 49 * - - 15 THEN NULL ELSE COUNT( * ) END - + COUNT( - - 9 ), CAST( 17 AS SIGNED ), - - 59 + + 28 DIV + + 36 ) DIV + 62
----
145

skipif mysql # not compatible
query I rowsort label-7308
SELECT - 97 * COALESCE ( - 93, - 14 + - - 6 + - CASE + 79 WHEN + 49 * - - 15 THEN NULL ELSE COUNT ( * ) END - + COUNT ( - - 9 ), CAST ( 17 AS INTEGER ), - - 59 + + 28 / + + 36 ) / + 62
----
145

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

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL - SUM ( - 69 )
----
69

query I rowsort
SELECT ALL - + ( + - 54 ) * - 61 col1
----
-3294

query I rowsort
SELECT - 43 + - + 7 * 37 * + 76
----
-19727

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT - - MAX( DISTINCT + 24 ) * - + 27 AS col1
----
-648

skipif mysql # not compatible
query I rowsort label-7312
SELECT - - MAX ( DISTINCT + 24 ) * - + 27 AS col1
----
-648

query I rowsort
SELECT - 70 * + 57 + + 74 AS col0
----
-3916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7314
SELECT - - COUNT( * ) - 13 * NULLIF ( - CAST( - + 89 AS SIGNED ), NULLIF ( - 27, + - ( 3 ) + + 28 + 81 + - 86 ) + - - NULLIF ( 50, 64 ) + + - ( - + 39 ) ) AS col2
----
-1156

skipif mysql # not compatible
query I rowsort label-7314
SELECT - - COUNT ( * ) - 13 * NULLIF ( - CAST ( - + 89 AS INTEGER ), NULLIF ( - 27, + - ( 3 ) + + 28 + 81 + - 86 ) + - - NULLIF ( 50, 64 ) + + - ( - + 39 ) ) AS col2
----
-1156

onlyif mysql # aggregate syntax: 
query II rowsort label-7315
SELECT ALL - NULLIF ( 64, - 88 ) * + 52 - - 86 AS col2, - 25 - + - CASE COUNT( * ) WHEN 88 THEN NULL WHEN - COUNT( * ) THEN + 95 + + 41 WHEN - 98 + ( - + 26 ) THEN NULL WHEN + - 68 THEN NULL ELSE NULL END AS col2
----
-3242
NULL

skipif mysql # not compatible
query II rowsort label-7315
SELECT ALL - NULLIF ( 64, - 88 ) * + 52 - - 86 AS col2, - 25 - + - CASE COUNT ( * ) WHEN 88 THEN NULL WHEN - COUNT ( * ) THEN + 95 + + 41 WHEN - 98 + ( - + 26 ) THEN NULL WHEN + - 68 THEN NULL ELSE NULL END AS col2
----
-3242
NULL

query I rowsort
SELECT - + 41 + - 42 col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT - 1 * + COUNT( * ) * - 85 * 10 + + 84 AS col2
----
934

skipif mysql # not compatible
query I rowsort label-7317
SELECT - 1 * + COUNT ( * ) * - 85 * 10 + + 84 AS col2
----
934

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

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

query I rowsort
SELECT - 45 + 35
----
-10

query I rowsort
SELECT + + 86 * - + 74 * + 72 col0
----
-458208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT - 59 + - CAST( NULL AS SIGNED ) + - 20 * - 56 + - 53 + COUNT( * ) * - 82 * - + 9 / - 26 + + + 74 + + 9 * + + ( - 4 ) * - 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT - 59 + - CAST ( NULL AS INTEGER ) + - 20 * - 56 + - 53 + COUNT ( * ) * - 82 * - + 9 / - 26 + + + 74 + + 9 * + + ( - 4 ) * - 44 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7322
SELECT + 29 - 82 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7323
SELECT - - 58 * + COUNT( * ) AS col1, + 34 + 5
----
58
39

skipif mysql # not compatible
query II rowsort label-7323
SELECT - - 58 * + COUNT ( * ) AS col1, + 34 + 5
----
58
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7324
SELECT DISTINCT - 53 + - 53, - 58 + COUNT( * ) - + 62 * 60 AS col1
----
-106
-3777

skipif mysql # not compatible
query II rowsort label-7324
SELECT DISTINCT - 53 + - 53, - 58 + COUNT ( * ) - + 62 * 60 AS col1
----
-106
-3777

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT ALL + + SUM( 61 ) + 64
----
125

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL + + SUM ( 61 ) + 64
----
125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT ALL - 14 + COUNT( DISTINCT + 89 ) + - + 91 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL - 14 + COUNT ( DISTINCT + 89 ) + - + 91 AS col1
----
-104

query I rowsort
SELECT ALL NULLIF ( + 98, 28 * - - 76 * + 56 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7329
SELECT + + 34 + - 52 * - 80 * - 63 + - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-262045

skipif mysql # not compatible
query I rowsort label-7329
SELECT + + 34 + - 52 * - 80 * - 63 + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-262045

query II rowsort
SELECT DISTINCT - 32 * - 40 + + 55 AS col1, 20 AS col2
----
1335
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7331
SELECT ALL + CAST( - MIN( DISTINCT - 47 ) AS SIGNED ) * 0 + 37 + 75 AS col2, ( 34 ) * 61 AS col0
----
112
2074

skipif mysql # not compatible
query II rowsort label-7331
SELECT ALL + CAST ( - MIN ( DISTINCT - 47 ) AS INTEGER ) * 0 + 37 + 75 AS col2, ( 34 ) * 61 AS col0
----
112
2074

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

query I rowsort
SELECT - 46 * 50 * + 60 + - 42
----
-138042

query I rowsort
SELECT ALL + 5 * ( + + 42 ) * + 53 + - + 4
----
11126

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL 83 * - 33 - + - COUNT( * ) AS col2
----
-2738

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL 83 * - 33 - + - COUNT ( * ) AS col2
----
-2738

query I rowsort
SELECT + 10 * 70
----
700

query I rowsort
SELECT 32 * - 34 + - - 35 * + 15 * - - 27 AS col1
----
13087

query I rowsort
SELECT DISTINCT 39 * - - 95 col0
----
3705

query I rowsort
SELECT 69 * - 20 + + + 11 AS col1
----
-1369

onlyif mysql # DIV for integer division: 
query I rowsort label-7340
SELECT ALL 85 DIV - + 35 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL 85 / - + 35 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7341
SELECT + 50 * - CASE - + 41 WHEN - COUNT( ALL 43 ) - - + 28 THEN 13 WHEN NULLIF ( + + 50, + + COALESCE ( - + 40, 23 * + COUNT( * ) + - + NULLIF ( 88, - COUNT( * ) ), COALESCE ( COALESCE ( + 4, - 60, 60 ), - 57 * - 1 + - CAST( + 84 AS SIGNED ), SUM( ALL - 15 ) + - 74 ) + + 39 / 79 ) ) THEN - 86 / - 77 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT + 50 * - CASE - + 41 WHEN - COUNT ( ALL 43 ) - - + 28 THEN 13 WHEN NULLIF ( + + 50, + + COALESCE ( - + 40, 23 * + COUNT ( * ) + - + NULLIF ( 88, - COUNT ( * ) ), COALESCE ( COALESCE ( + 4, - 60, 60 ), - 57 * - 1 + - CAST ( + 84 AS INTEGER ), SUM ( ALL - 15 ) + - 74 ) + + 39 / 79 ) ) THEN - 86 / - 77 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT - 73 - SUM( ALL - 64 ) - + 31 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7342
SELECT - 73 - SUM ( ALL - 64 ) - + 31 AS col2
----
-40

query I rowsort
SELECT DISTINCT 79 * + - 24 * - 32 * + 60
----
3640320

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

query I rowsort
SELECT + - 31 * + 40
----
-1240

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

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL ( - CAST ( - - COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT + - COUNT( * ) + + - 53 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7347
SELECT + - COUNT ( * ) + + - 53 AS col2
----
-54

query I rowsort
SELECT DISTINCT 19 * + 50 + + 78 * 27
----
3056

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

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

query I rowsort
SELECT - 63 + - 40 - - ( - - 56 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7351
SELECT ALL - MIN( 40 ) * + - NULLIF ( + - 29, - 17 * - COALESCE ( - - CASE + + 32 WHEN 4 THEN NULL WHEN - 86 THEN - COUNT( * ) ELSE NULL END, 40, CAST( NULL AS DECIMAL ) ) + - - 10 )
----
-1160

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL - MIN ( 40 ) * + - NULLIF ( + - 29, - 17 * - COALESCE ( - - CASE + + 32 WHEN 4 THEN NULL WHEN - 86 THEN - COUNT ( * ) ELSE NULL END, 40, CAST ( NULL AS REAL ) ) + - - 10 )
----
-1160

query I rowsort
SELECT + - 70 * - 59
----
4130

query I rowsort
SELECT - 77 + + 27 - 42
----
-92

query II rowsort
SELECT - 58 AS col0, 43 AS col2
----
-58
43

query I rowsort
SELECT - 90 + + - 74 * + 5
----
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT ALL + + NULLIF ( COUNT( ALL + 27 ), 42 * - 69 ) + COUNT( * ) * 80
----
81

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL + + NULLIF ( COUNT ( ALL + 27 ), 42 * - 69 ) + COUNT ( * ) * 80
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7357
SELECT - - 41 AS col0, COALESCE ( - + MIN( DISTINCT 71 ), + 71 ) + - + 80 + 87 * + + 8 * - - COUNT( * ) AS col1
----
41
545

skipif mysql # not compatible
query II rowsort label-7357
SELECT - - 41 AS col0, COALESCE ( - + MIN ( DISTINCT 71 ), + 71 ) + - + 80 + 87 * + + 8 * - - COUNT ( * ) AS col1
----
41
545

query I rowsort
SELECT - + 98 + + - 25
----
-123

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

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL - - CAST ( NULL AS INTEGER ) / + - 92 + + 95 + - COUNT ( * ) + - ( - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7360
SELECT - 9 AS col1, - CAST( NULL AS SIGNED ) * - + 33 AS col2
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-7360
SELECT - 9 AS col1, - CAST ( NULL AS INTEGER ) * - + 33 AS col2
----
-9
NULL

query I rowsort
SELECT ALL - 23 + - - 12 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-7362
SELECT DISTINCT + 48, SUM( - + 48 ) * + 69 AS col0
----
48
-3312

skipif mysql # not compatible
query II rowsort label-7362
SELECT DISTINCT + 48, SUM ( - + 48 ) * + 69 AS col0
----
48
-3312

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7363
SELECT - + 54 DIV + 72 * - 84, + COUNT( + COALESCE ( - 7, 81 - - 59 ) ) col0
----
0
1

skipif mysql # not compatible
query II rowsort label-7363
SELECT - + 54 / + 72 * - 84, + COUNT ( + COALESCE ( - 7, 81 - - 59 ) ) col0
----
0
1

query I rowsort
SELECT ALL + - 41 + - 8
----
-49

query I rowsort
SELECT DISTINCT + NULLIF ( 70, + - 32 + 7 * - 47 ) AS col1
----
70

query I rowsort
SELECT DISTINCT + 10 + + - 57 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT DISTINCT + + ( - CASE - 29 WHEN + 1 THEN NULL WHEN + - 20 THEN + + MIN( - + 46 ) ELSE 12 END ) * - - 1 col0
----
-12

skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT + + ( - CASE - 29 WHEN + 1 THEN NULL WHEN + - 20 THEN + + MIN ( - + 46 ) ELSE 12 END ) * - - 1 col0
----
-12

query I rowsort
SELECT + + 94 + + ( 76 )
----
170

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7369
SELECT - COALESCE ( - + CASE CAST( + 58 AS DECIMAL ) WHEN - + COUNT( * ) THEN NULL WHEN SUM( ALL - ( 94 ) ) THEN - 50 DIV + 98 DIV + CASE - 34 WHEN + ( + CASE - 32 WHEN + + 72 * + 20 * - 28 + 54 THEN NULL ELSE 9 END ) THEN + 3 + 96 * + 11 ELSE NULL END ELSE NULL END, + 58 * + 5 ) DIV 57 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7369
SELECT - COALESCE ( - + CASE CAST ( + 58 AS REAL ) WHEN - + COUNT ( * ) THEN NULL WHEN SUM ( ALL - ( 94 ) ) THEN - 50 / + 98 / + CASE - 34 WHEN + ( + CASE - 32 WHEN + + 72 * + 20 * - 28 + 54 THEN NULL ELSE 9 END ) THEN + 3 + 96 * + 11 ELSE NULL END ELSE NULL END, + 58 * + 5 ) / 57 AS col0
----
-5

query I rowsort
SELECT ALL + 83 + + 13 AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7371
SELECT - 46 * - + CAST( - 29 AS SIGNED ) AS col1, COUNT( * ) * - 41 * NULLIF ( - - 43, - ( - ( 23 ) ) ) AS col2
----
-1334
-1763

skipif mysql # not compatible
query II rowsort label-7371
SELECT - 46 * - + CAST ( - 29 AS INTEGER ) AS col1, COUNT ( * ) * - 41 * NULLIF ( - - 43, - ( - ( 23 ) ) ) AS col2
----
-1334
-1763

query I rowsort
SELECT - 52 * - + 29
----
1508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7373
SELECT - 64 - + CAST( NULL AS SIGNED ) AS col2, 66 * - + COUNT( * ) AS col2
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-7373
SELECT - 64 - + CAST ( NULL AS INTEGER ) AS col2, 66 * - + COUNT ( * ) AS col2
----
NULL
-66

query I rowsort
SELECT - NULLIF ( - 78, - 85 / + + NULLIF ( + 89, 46 ) - + 30 / - 98 / + 53 ) AS col2
----
78

query I rowsort
SELECT - 40 - - ( + 51 ) AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7376
SELECT 82 DIV COALESCE ( - - MAX( DISTINCT - 15 ), + - 22 * - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + - 19 * + 62 * + 74 * - + CAST( + 42 AS SIGNED ) DIV - 89 ) * - 96 + - - 66 AS col2, + ( + CASE - CASE 23 WHEN 85 - 66 THEN NULL WHEN CASE 46 WHEN 16 THEN COUNT( ALL - 77 ) WHEN 56 + 37 * + 12 THEN NULL ELSE COALESCE ( + COUNT( * ), 88 - 25 ) * - 66 + + ( - NULLIF ( CAST( 45 AS SIGNED ), - ( + 70 ) + 13 ) + + 29 ) END THEN NULL WHEN 99 - 74 THEN CASE CAST( ( + 53 ) AS SIGNED ) WHEN 97 * ( + 37 ) THEN NULL ELSE + 10 * - 84 + 61 END + - 0 DIV + 36 ELSE NULL END WHEN - 47 + - SUM( 12 ) THEN 30 + + CASE 31 + - 75 * 80 WHEN COUNT( * ) THEN COUNT( 36 ) ELSE NULL END ELSE - 61 END ) col1
----
546
-61

skipif mysql # not compatible
query II rowsort label-7376
SELECT 82 / COALESCE ( - - MAX ( DISTINCT - 15 ), + - 22 * - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 19 * + 62 * + 74 * - + CAST ( + 42 AS INTEGER ) / - 89 ) * - 96 + - - 66 AS col2, + ( + CASE - CASE 23 WHEN 85 - 66 THEN NULL WHEN CASE 46 WHEN 16 THEN COUNT ( ALL - 77 ) WHEN 56 + 37 * + 12 THEN NULL ELSE COALESCE ( + COUNT ( * ), 88 - 25 ) * - 66 + + ( - NULLIF ( CAST ( 45 AS INTEGER ), - ( + 70 ) + 13 ) + + 29 ) END THEN NULL WHEN 99 - 74 THEN CASE CAST ( ( + 53 ) AS INTEGER ) WHEN 97 * ( + 37 ) THEN NULL ELSE + 10 * - 84 + 61 END + - 0 / + 36 ELSE NULL END WHEN - 47 + - SUM ( 12 ) THEN 30 + + CASE 31 + - 75 * 80 WHEN COUNT ( * ) THEN COUNT ( 36 ) ELSE NULL END ELSE - 61 END ) col1
----
546
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT DISTINCT + SUM( + - 19 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT + SUM ( + - 19 ) AS col0
----
-19

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

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

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

query I rowsort
SELECT ALL 44 * - + ( - 84 ) AS col2
----
3696

query I rowsort
SELECT + 85 * + - 23 * + 59 + ( - 62 )
----
-115407

query II rowsort
SELECT ALL + 83 * - + 52 AS col2, 80 AS col2
----
-4316
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7384
SELECT MAX( - 31 ) * 95 * - CAST( NULL AS SIGNED ) + + CAST( 42 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7384
SELECT MAX ( - 31 ) * 95 * - CAST ( NULL AS INTEGER ) + + CAST ( 42 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT + COALESCE ( + 42, - 29 DIV - 78 DIV + 12 + - + 59 * ( + + 65 ), ( + + 4 ) * - + 45 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7385
SELECT + COALESCE ( + 42, - 29 / - 78 / + 12 + - + 59 * ( + + 65 ), ( + + 4 ) * - + 45 ) AS col0
----
42

query I rowsort
SELECT 35 * 60 AS col1
----
2100

query I rowsort
SELECT + 81 * 18 + + 37
----
1495

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7390
SELECT + 27 + CAST( AVG ( ALL + - 11 ) AS SIGNED ), - 64 * + 31 AS col2
----
16
-1984

skipif mysql # not compatible
query II rowsort label-7390
SELECT + 27 + CAST ( AVG ( ALL + - 11 ) AS INTEGER ), - 64 * + 31 AS col2
----
16
-1984

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

skipif mysql # not compatible
query I rowsort label-7391
SELECT 55 * - - 85 + - COUNT ( - + 9 ) AS col1
----
4674

query I rowsort
SELECT ALL + 64 * 55 AS col0
----
3520

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT - SUM( + 62 ) + + 18 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT - SUM ( + 62 ) + + 18 AS col1
----
-44

query II rowsort
SELECT + 43 + - NULLIF ( 70, + 43 ) AS col2, + 91
----
-27
91

query I rowsort
SELECT 4 * 56
----
224

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7398
SELECT 58 - - CAST( NULL AS DECIMAL ) * - - 21 AS col2, - 19 + COUNT( * ) * - 44 DIV + - 17 AS col0
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-7398
SELECT 58 - - CAST ( NULL AS REAL ) * - - 21 AS col2, - 19 + COUNT ( * ) * - 44 / + - 17 AS col0
----
NULL
-17

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

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

query I rowsort
SELECT ALL + 77 * 9
----
693

query I rowsort
SELECT 39 * 76 * + 38
----
112632

query I rowsort
SELECT DISTINCT + 59 * - 90
----
-5310

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT 58 + 43 + + MIN( - - 51 ) AS col0
----
152

skipif mysql # not compatible
query I rowsort label-7403
SELECT 58 + 43 + + MIN ( - - 51 ) AS col0
----
152

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

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

query I rowsort
SELECT 64 * 31 AS col1
----
1984

query I rowsort
SELECT 67 + + 96 AS col1
----
163

query I rowsort
SELECT ALL - 14 - + - 8 col2
----
-6

query II rowsort
SELECT + 43, + 97 AS col2
----
43
97

query II rowsort
SELECT 32, 90 AS col1
----
32
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7410
SELECT MIN( DISTINCT 3 ) / + CAST( NULL AS DECIMAL ) * 81 - + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7410
SELECT MIN ( DISTINCT 3 ) / + CAST ( NULL AS REAL ) * 81 - + + 58 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL NULLIF ( - + ( - 70 ), 5 ) * + - 84 * - 1
----
5880

query I rowsort
SELECT 64 + ( 62 ) AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT DISTINCT - COALESCE ( - 55, - 48 * + COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT - COALESCE ( - 55, - 48 * + COUNT ( * ) )
----
55

query I rowsort
SELECT 80 + 38 AS col1
----
118

query III rowsort
SELECT DISTINCT - 50, + 92 + 17 AS col1, 36 + 72 + + - 49 * + ( 62 ) AS col0
----
-50
109
-2930

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT + 55 * + COUNT( * ) + 97
----
152

skipif mysql # not compatible
query I rowsort label-7418
SELECT + 55 * + COUNT ( * ) + 97
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7419
SELECT 23 * - 70 + + 77 + - + CAST( + 58 AS SIGNED ) AS col1, - 17 AS col2
----
-1591
-17

skipif mysql # not compatible
query II rowsort label-7419
SELECT 23 * - 70 + + 77 + - + CAST ( + 58 AS INTEGER ) AS col1, - 17 AS col2
----
-1591
-17

query II rowsort
SELECT ALL + + 75 * + ( + 45 ), 96 AS col1
----
3375
96

query I rowsort
SELECT + CASE - - 49 WHEN - - 76 THEN ( + 13 ) * + 74 * - 69 * - 58 WHEN + 17 * + + ( - + 24 ) + + - 73 * - 35 THEN - - ( 62 ) END + 98 AS col0
----
NULL

query I rowsort
SELECT 34 + - 22 * - 17 AS col1
----
408

query I rowsort
SELECT - 68 + - 38 AS col1
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT DISTINCT + 26 * NULLIF ( - + 16, + ( 25 ) ) + - 51 + - 48 + + - 59 * - + ( + - ( COUNT( * ) ) )
----
-574

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT + 26 * NULLIF ( - + 16, + ( 25 ) ) + - 51 + - 48 + + - 59 * - + ( + - ( COUNT ( * ) ) )
----
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT ALL - - MAX( 3 ) + - 66 - + - 54
----
-9

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL - - MAX ( 3 ) + - 66 - + - 54
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT DISTINCT + 9 + - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT + 9 + - COUNT ( * )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7427
SELECT ALL + - CAST( COUNT( * ) AS SIGNED ) * 5 * + - 92
----
460

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL + - CAST ( COUNT ( * ) AS INTEGER ) * 5 * + - 92
----
460

query I rowsort
SELECT ALL 65 + 49 * - + 58 * - ( 36 ) + - 21 * - 2
----
102419

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

skipif mysql # not compatible
query I rowsort label-7429
SELECT + MIN ( - - 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT DISTINCT + - 33 * + MAX( - 95 ) + - 36 AS col1
----
3099

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT + - 33 * + MAX ( - 95 ) + - 36 AS col1
----
3099

query I rowsort
SELECT ALL - - 70 + + + 43 - - + 4 AS col0
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7432
SELECT 3 + + - ( NULLIF ( + + 91, 37 + - 68 - 53 + + 88 * COUNT( ALL - CAST( NULL AS SIGNED ) ) ) ) + - 24 * 84 * - + ( CASE + AVG ( - CAST( NULL AS SIGNED ) ) WHEN + 0 THEN 24 WHEN + 37 THEN NULL WHEN + 15 THEN + COUNT( * ) / + CAST( NULL AS DECIMAL ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT 3 + + - ( NULLIF ( + + 91, 37 + - 68 - 53 + + 88 * COUNT ( ALL - CAST ( NULL AS INTEGER ) ) ) ) + - 24 * 84 * - + ( CASE + AVG ( - CAST ( NULL AS INTEGER ) ) WHEN + 0 THEN 24 WHEN + 37 THEN NULL WHEN + 15 THEN + COUNT ( * ) / + CAST ( NULL AS REAL ) END ) AS col2
----
NULL

query I rowsort
SELECT ALL - + 58 + + 64 AS col0
----
6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7435
SELECT - + COUNT( - - 48 ) * - 72 * + CAST( 59 AS SIGNED ) + + 35 AS col2
----
4283

skipif mysql # not compatible
query I rowsort label-7435
SELECT - + COUNT ( - - 48 ) * - 72 * + CAST ( 59 AS INTEGER ) + + 35 AS col2
----
4283

query II rowsort
SELECT 66 AS col2, + 30 AS col1
----
66
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT 73 * + MIN( + 34 ) + - 37 AS col2
----
2445

skipif mysql # not compatible
query I rowsort label-7438
SELECT 73 * + MIN ( + 34 ) + - 37 AS col2
----
2445

query I rowsort
SELECT ALL 67 * - ( + 25 ) * + + 8 * - 23 * + ( + 65 )
----
20033000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7440
SELECT ALL 17, + ( + MAX( + 92 ) ) + - + CAST( + - 68 AS SIGNED ) AS col0
----
17
160

skipif mysql # not compatible
query II rowsort label-7440
SELECT ALL 17, + ( + MAX ( + 92 ) ) + - + CAST ( + - 68 AS INTEGER ) AS col0
----
17
160

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7442
SELECT DISTINCT - - 16 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT - - 16 / - 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7443
SELECT DISTINCT 70 * - 90 / + ( - + CASE + 8 WHEN - CASE COUNT( * ) WHEN - 36 * + 7 / - COUNT( * ) * CASE + 40 WHEN - CAST( NULL AS SIGNED ) + - 67 THEN + + NULLIF ( - 4, - ( + + 89 ) ) WHEN - 50 THEN - CAST( - - 17 AS SIGNED ) * - 6 + COUNT( * ) ELSE NULL END * 90 THEN 13 * COUNT( * ) - 67 / COUNT( DISTINCT - 29 ) END THEN + MAX( 28 ) WHEN - 0 THEN NULL END ) * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT 70 * - 90 / + ( - + CASE + 8 WHEN - CASE COUNT ( * ) WHEN - 36 * + 7 / - COUNT ( * ) * CASE + 40 WHEN - CAST ( NULL AS INTEGER ) + - 67 THEN + + NULLIF ( - 4, - ( + + 89 ) ) WHEN - 50 THEN - CAST ( - - 17 AS INTEGER ) * - 6 + COUNT ( * ) ELSE NULL END * 90 THEN 13 * COUNT ( * ) - 67 / COUNT ( DISTINCT - 29 ) END THEN + MAX ( 28 ) WHEN - 0 THEN NULL END ) * 91
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7444
SELECT ALL ( COALESCE ( - 40, 29, - 74 / CAST( NULL AS SIGNED ) + - - 68 / - - 14 / 18 * + COUNT( * ) * - 31 ) ) * - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL ( COALESCE ( - 40, 29, - 74 / CAST ( NULL AS INTEGER ) + - - 68 / - - 14 / 18 * + COUNT ( * ) * - 31 ) ) * - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ( + - ( 61 ) ) * - 64 AS col1
----
3904

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

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT - CASE - - COUNT( * ) WHEN - 7 + - 78 + ( + 60 ) THEN NULL WHEN - CASE - - ( - + 10 ) WHEN - - 0 * 60 + - COUNT( * ) / 28 + + - ( 22 ) THEN + + SUM( - - 65 ) + + + 49 + 33 END THEN + - 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7447
SELECT - CASE - - COUNT ( * ) WHEN - 7 + - 78 + ( + 60 ) THEN NULL WHEN - CASE - - ( - + 10 ) WHEN - - 0 * 60 + - COUNT ( * ) / 28 + + - ( 22 ) THEN + + SUM ( - - 65 ) + + + 49 + 33 END THEN + - 66 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT + MIN( DISTINCT - 62 ) * + 64 + - 31 * + + 33 AS col0
----
-4991

skipif mysql # not compatible
query I rowsort label-7448
SELECT + MIN ( DISTINCT - 62 ) * + 64 + - 31 * + + 33 AS col0
----
-4991

query I rowsort
SELECT - ( + 15 ) * 96 AS col2
----
-1440

onlyif mysql # aggregate syntax: 
query II rowsort label-7450
SELECT ALL 89, 58 + 68 + + ( + MAX( DISTINCT 13 ) ) AS col2
----
89
139

skipif mysql # not compatible
query II rowsort label-7450
SELECT ALL 89, 58 + 68 + + ( + MAX ( DISTINCT 13 ) ) AS col2
----
89
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7451
SELECT + 51 - + 50 DIV + 26 + - + 23 * MAX( - + ( - - 39 ) ) * 77 col1
----
69119

skipif mysql # not compatible
query I rowsort label-7451
SELECT + 51 - + 50 / + 26 + - + 23 * MAX ( - + ( - - 39 ) ) * 77 col1
----
69119

query I rowsort
SELECT + ( + 83 ) * - 85 AS col1
----
-7055

query I rowsort
SELECT DISTINCT - 38 * - 90 * 69 col0
----
235980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7454
SELECT ALL 51 * + 68 DIV - MIN( ALL - + 17 ) + - - COALESCE ( + 17, + COUNT( * ) * + + 96 )
----
221

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL 51 * + 68 / - MIN ( ALL - + 17 ) + - - COALESCE ( + 17, + COUNT ( * ) * + + 96 )
----
221

query II rowsort
SELECT NULLIF ( - 17, + - 56 * 25 ) AS col1, 62 + - 68 AS col0
----
-17
-6

query I rowsort
SELECT ALL - 42 * - - 52 + + 38
----
-2146

query I rowsort
SELECT - 14 * + + 67
----
-938

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7458
SELECT ALL + COUNT( * ) col2, 90 * 50 + - 48 DIV - 60 * + - ( - 66 ) AS col0
----
1
4500

skipif mysql # not compatible
query II rowsort label-7458
SELECT ALL + COUNT ( * ) col2, 90 * 50 + - 48 / - 60 * + - ( - 66 ) AS col0
----
1
4500

onlyif mysql # aggregate syntax: 
query II rowsort label-7459
SELECT COALESCE ( - MAX( DISTINCT + 90 ), - 93 * 23 + 69 ), + COUNT( * ) * CASE + 23 WHEN - 12 + 80 THEN + 79 * + MAX( ALL 49 ) / COUNT( * ) * + + 58 + 90 + + + 98 - - - 89 WHEN + 61 THEN NULL END AS col2
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-7459
SELECT COALESCE ( - MAX ( DISTINCT + 90 ), - 93 * 23 + 69 ), + COUNT ( * ) * CASE + 23 WHEN - 12 + 80 THEN + 79 * + MAX ( ALL 49 ) / COUNT ( * ) * + + 58 + 90 + + + 98 - - - 89 WHEN + 61 THEN NULL END AS col2
----
-90
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7460
SELECT + - NULLIF ( 93, - COUNT( * ) * - 37 ) AS col1, CASE 19 WHEN - + 91 THEN NULL WHEN 11 THEN ( - - 88 ) + + 89 * - + CAST( + 73 AS SIGNED ) WHEN + - NULLIF ( ( + 10 ), - - 82 - - - CASE 11 WHEN - + ( + 74 ) * 44 THEN 66 * 41 WHEN 51 THEN + 8 ELSE NULL END ) THEN NULL ELSE 60 END AS col1
----
-93
60

skipif mysql # not compatible
query II rowsort label-7460
SELECT + - NULLIF ( 93, - COUNT ( * ) * - 37 ) AS col1, CASE 19 WHEN - + 91 THEN NULL WHEN 11 THEN ( - - 88 ) + + 89 * - + CAST ( + 73 AS INTEGER ) WHEN + - NULLIF ( ( + 10 ), - - 82 - - - CASE 11 WHEN - + ( + 74 ) * 44 THEN 66 * 41 WHEN 51 THEN + 8 ELSE NULL END ) THEN NULL ELSE 60 END AS col1
----
-93
60

query I rowsort
SELECT + 82 * - 88 * - + 96 AS col1
----
692736

query I rowsort
SELECT DISTINCT + 69 * + 90 + + 37 AS col0
----
6247

query I rowsort
SELECT ALL - 97 * 23 + + 26 AS col2
----
-2205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7464
SELECT DISTINCT CAST( - 59 AS SIGNED ) * - + 3 + 76 * - + 41
----
-2939

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT CAST ( - 59 AS INTEGER ) * - + 3 + 76 * - + 41
----
-2939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7465
SELECT 44 AS col2, COALESCE ( + - 27, CASE + COUNT( * ) WHEN - 26 + - 55 * 35 THEN AVG ( - 94 ) * + MAX( 78 ) - 15 WHEN + 52 THEN + - 3 END DIV + MAX( ALL - - 85 ) + - - 99 DIV - - 53, - CASE - 70 WHEN COUNT( * ) DIV 16 - - ( + COUNT( * ) ) THEN + 36 ELSE - 49 * ( CAST( NULL AS SIGNED ) ) END DIV + CASE - 58 WHEN + 35 + COUNT( * ) THEN CAST( NULL AS SIGNED ) DIV - 46 END ) * - 90 AS col0
----
44
2430

skipif mysql # not compatible
query II rowsort label-7465
SELECT 44 AS col2, COALESCE ( + - 27, CASE + COUNT ( * ) WHEN - 26 + - 55 * 35 THEN AVG ( - 94 ) * + MAX ( 78 ) - 15 WHEN + 52 THEN + - 3 END / + MAX ( ALL - - 85 ) + - - 99 / - - 53, - CASE - 70 WHEN COUNT ( * ) / 16 - - ( + COUNT ( * ) ) THEN + 36 ELSE - 49 * ( CAST ( NULL AS INTEGER ) ) END / + CASE - 58 WHEN + 35 + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) / - 46 END ) * - 90 AS col0
----
44
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT ALL - 67 * - - 90 - + 71 + - 84 + + 55 * 19 + 44 + 81 + - COUNT( ALL 54 )
----
-5016

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL - 67 * - - 90 - + 71 + - 84 + + 55 * 19 + 44 + 81 + - COUNT ( ALL 54 )
----
-5016

query II rowsort
SELECT ALL + 77, - 45 AS col2
----
77
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7468
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) - + 86 + - + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) - + 86 + - + 42 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7469
SELECT DISTINCT - 53 * CAST( NULL AS SIGNED ) * + NULLIF ( NULLIF ( ( 43 ), - COUNT( * ) + 35 ), + + 56 + - - COUNT( ALL + 25 ) * COUNT( * ) ) + + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT - 53 * CAST ( NULL AS INTEGER ) * + NULLIF ( NULLIF ( ( 43 ), - COUNT ( * ) + 35 ), + + 56 + - - COUNT ( ALL + 25 ) * COUNT ( * ) ) + + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7470
SELECT + + COALESCE ( - ( - 49 ), + ( + 11 ) DIV + - 42 - - 8 * MAX( DISTINCT - - 85 ) ) * - ( - 4 ) + - - 26 - 47 DIV + 27 AS col0
----
221

skipif mysql # not compatible
query I rowsort label-7470
SELECT + + COALESCE ( - ( - 49 ), + ( + 11 ) / + - 42 - - 8 * MAX ( DISTINCT - - 85 ) ) * - ( - 4 ) + - - 26 - 47 / + 27 AS col0
----
221

query I rowsort
SELECT ALL - - 55 * 80
----
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT - COUNT( * ) + + - 86 col2
----
-87

skipif mysql # not compatible
query I rowsort label-7472
SELECT - COUNT ( * ) + + - 86 col2
----
-87

query I rowsort
SELECT DISTINCT - 93 * - 14 * - + 31 * - 61
----
2462082

query II rowsort
SELECT ALL + ( - 18 ) - - ( - 88 ) AS col0, 6 AS col0
----
-106
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7475
SELECT - SUM( ALL + 38 ) * + 48 + + 20 + + 1 + - 95 AS col0, - 97 + CAST( NULL AS DECIMAL ) AS col2
----
-1898
NULL

skipif mysql # not compatible
query II rowsort label-7475
SELECT - SUM ( ALL + 38 ) * + 48 + + 20 + + 1 + - 95 AS col0, - 97 + CAST ( NULL AS REAL ) AS col2
----
-1898
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7476
SELECT DISTINCT ( - 46 ) AS col2, SUM( DISTINCT + 20 ) DIV + - COUNT( * )
----
-46
-20

skipif mysql # not compatible
query II rowsort label-7476
SELECT DISTINCT ( - 46 ) AS col2, SUM ( DISTINCT + 20 ) / + - COUNT ( * )
----
-46
-20

query I rowsort
SELECT ALL ( + - 64 ) AS col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7478
SELECT - CASE - + 25 WHEN 48 THEN - 56 ELSE + + ( + CAST( NULL AS SIGNED ) ) * - 11 + 91 + - 36 + - + 52 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7478
SELECT - CASE - + 25 WHEN 48 THEN - 56 ELSE + + ( + CAST ( NULL AS INTEGER ) ) * - 11 + 91 + - 36 + - + 52 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7479
SELECT - MIN( ALL + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7479
SELECT - MIN ( ALL + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT + 27 + - 8
----
19

query I rowsort
SELECT ALL 39 * 22
----
858

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

skipif mysql # not compatible
query I rowsort label-7482
SELECT + 45 / + + 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7483
SELECT ALL COUNT( * ) * + - 52 AS col1, + COUNT( * ) DIV + + 43 + COUNT( DISTINCT - 45 ) AS col1
----
-52
1

skipif mysql # not compatible
query II rowsort label-7483
SELECT ALL COUNT ( * ) * + - 52 AS col1, + COUNT ( * ) / + + 43 + COUNT ( DISTINCT - 45 ) AS col1
----
-52
1

query I rowsort
SELECT DISTINCT 44 + + + 50 AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7485
SELECT - ( CAST( + + 11 AS SIGNED ) ) AS col0, CAST( - - CASE + 52 WHEN 84 THEN - 56 END AS DECIMAL ) * + 78 + + + 35 * + MIN( ALL 62 ) - + COUNT( * ) AS col0
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-7485
SELECT - ( CAST ( + + 11 AS INTEGER ) ) AS col0, CAST ( - - CASE + 52 WHEN 84 THEN - 56 END AS REAL ) * + 78 + + + 35 * + MIN ( ALL 62 ) - + COUNT ( * ) AS col0
----
-11
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7486
SELECT + 73 + + 66 - - 4 - + 91 + 75 + + 48 / + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7486
SELECT + 73 + + 66 - - 4 - + 91 + 75 + + 48 / + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query III rowsort
SELECT + 91 * - + 43 AS col2, 97 AS col2, - 78 col0
----
-3913
97
-78

query I rowsort
SELECT - 85 * + 19 + - 28 + + 96
----
-1547

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT + CASE - 46 WHEN - SUM( - 66 ) * - 55 THEN NULL WHEN + - ( + 88 ) THEN + AVG ( + ( 86 ) ) + COUNT( ALL + 78 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7489
SELECT + CASE - 46 WHEN - SUM ( - 66 ) * - 55 THEN NULL WHEN + - ( + 88 ) THEN + AVG ( + ( 86 ) ) + COUNT ( ALL + 78 ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7491
SELECT ALL ( - + NULLIF ( ( SUM( ALL - 89 ) ), - 87 * - AVG ( ALL + 70 ) ) ) DIV + 90 * - 6 + + 44 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL ( - + NULLIF ( ( SUM ( ALL - 89 ) ), - 87 * - AVG ( ALL + 70 ) ) ) / + 90 * - 6 + + 44 AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7492
SELECT DISTINCT + 50 DIV 76 + + + 21 + - 86
----
-65

skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT + 50 / 76 + + + 21 + - 86
----
-65

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

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL - + COUNT ( * ) * + 75 * - COALESCE ( - COUNT ( * ), - 98 ) + - 11 / - 67
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT DISTINCT 86 DIV + 22
----
3

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT 86 / + 22
----
3

query I rowsort
SELECT ALL + COALESCE ( - 40, + 50 + - 19 ) AS col2
----
-40

query I rowsort
SELECT - + 21 * - 94
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT ALL + 16 * 79 * + COUNT( * ) + + ( - 98 ) AS col0
----
1166

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL + 16 * 79 * + COUNT ( * ) + + ( - 98 ) AS col0
----
1166

query I rowsort
SELECT + 74 * 52 * + 77 AS col0
----
296296

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL + - 3 * - + CASE - 79 WHEN + + 9 * + 40 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL + - 3 * - + CASE - 79 WHEN + + 9 * + 40 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7500
SELECT - - 13 + - 35 DIV - 74 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-7500
SELECT - - 13 + - 35 / - 74 AS col0
----
13

query I rowsort
SELECT - 70 * - - 6 * - 96 AS col0
----
40320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7502
SELECT DISTINCT + - CAST( + - 26 AS SIGNED ) AS col2, + 25 col1
----
26
25

skipif mysql # not compatible
query II rowsort label-7502
SELECT DISTINCT + - CAST ( + - 26 AS INTEGER ) AS col2, + 25 col1
----
26
25

query I rowsort
SELECT ALL - 64 * 95 * + + 66 AS col1
----
-401280

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

skipif mysql # not compatible
query I rowsort label-7504
SELECT - - COUNT ( DISTINCT ( - 18 ) ) * - + 29 AS col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7505
SELECT 29 * - COUNT( * ) DIV + NULLIF ( + - 46, - NULLIF ( + NULLIF ( + 98, + 71 * + + 11 ), + ( + - CASE - + COUNT( * ) WHEN 67 + - - 13 THEN - COUNT( * ) WHEN + COUNT( * ) THEN NULL WHEN + 34 + + 71 + - SUM( + - 38 ) * + 17 - - MAX( ALL - - 88 ) THEN NULL END ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7505
SELECT 29 * - COUNT ( * ) / + NULLIF ( + - 46, - NULLIF ( + NULLIF ( + 98, + 71 * + + 11 ), + ( + - CASE - + COUNT ( * ) WHEN 67 + - - 13 THEN - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL WHEN + 34 + + 71 + - SUM ( + - 38 ) * + 17 - - MAX ( ALL - - 88 ) THEN NULL END ) ) )
----
0

query II rowsort
SELECT 5 AS col2, - 6 col0
----
5
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7507
SELECT ALL - 55 + + CASE - CASE - 48 WHEN 40 THEN NULL ELSE 27 * + NULLIF ( + NULLIF ( + + COALESCE ( - 26, + CAST( - 50 AS SIGNED ), + CASE + - ( - MIN( ALL + 8 ) ) WHEN 29 + + 19 * + 82 * - 50 THEN + - 7 END ), 71 ), + 48 ) END WHEN - 28 + + COUNT( * ) THEN NULL WHEN + 24 THEN - 66 * 91 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL - 55 + + CASE - CASE - 48 WHEN 40 THEN NULL ELSE 27 * + NULLIF ( + NULLIF ( + + COALESCE ( - 26, + CAST ( - 50 AS INTEGER ), + CASE + - ( - MIN ( ALL + 8 ) ) WHEN 29 + + 19 * + 82 * - 50 THEN + - 7 END ), 71 ), + 48 ) END WHEN - 28 + + COUNT ( * ) THEN NULL WHEN + 24 THEN - 66 * 91 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 38 + + + 88 col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-7509
SELECT DISTINCT 91, 2 * - - MAX( + - 15 ) * + 88 + 68 * 54 AS col2
----
91
1032

skipif mysql # not compatible
query II rowsort label-7509
SELECT DISTINCT 91, 2 * - - MAX ( + - 15 ) * + 88 + 68 * 54 AS col2
----
91
1032

query I rowsort
SELECT DISTINCT 33 + 33 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT 57 + 69 * + - MAX( + 76 ) * - + 67
----
351405

skipif mysql # not compatible
query I rowsort label-7511
SELECT 57 + 69 * + - MAX ( + 76 ) * - + 67
----
351405

query II rowsort
SELECT 29, 18 AS col2
----
29
18

query I rowsort
SELECT 82 - + 74 AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7514
SELECT NULLIF ( + + COALESCE ( - + MAX( DISTINCT + + 36 ), - - CASE MAX( DISTINCT + 86 ) WHEN + - SUM( DISTINCT - 56 ) THEN NULLIF ( 99, - - 24 * + - COUNT( * ) ) WHEN - 99 * + + CAST( - 95 AS SIGNED ) * + 91 + + 90 + + 94 + - MIN( DISTINCT - 20 ) THEN + - NULLIF ( 19, 25 / - COUNT( * ) ) * - CAST( NULL AS SIGNED ) WHEN 74 THEN NULL ELSE NULL END ), 25 * 95 ) * 94 AS col2
----
-3384

skipif mysql # not compatible
query I rowsort label-7514
SELECT NULLIF ( + + COALESCE ( - + MAX ( DISTINCT + + 36 ), - - CASE MAX ( DISTINCT + 86 ) WHEN + - SUM ( DISTINCT - 56 ) THEN NULLIF ( 99, - - 24 * + - COUNT ( * ) ) WHEN - 99 * + + CAST ( - 95 AS INTEGER ) * + 91 + + 90 + + 94 + - MIN ( DISTINCT - 20 ) THEN + - NULLIF ( 19, 25 / - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) WHEN 74 THEN NULL ELSE NULL END ), 25 * 95 ) * 94 AS col2
----
-3384

query I rowsort
SELECT 92 + + 59
----
151

query III rowsort
SELECT ALL 17 AS col2, + 39 + - - 10 + - + 65 + 72 * 6, - 89 + 39 AS col2
----
17
416
-50

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

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

query I rowsort
SELECT ALL + COALESCE ( + 65, + - 9 ) - - + 20 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT COUNT( - 73 ) * + NULLIF ( - COUNT( * ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7519
SELECT COUNT ( - 73 ) * + NULLIF ( - COUNT ( * ), - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT ALL + COUNT( * ) - - 1 * - 46 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL + COUNT ( * ) - - 1 * - 46 AS col1
----
-45

query I rowsort
SELECT + 5 * - 89 + - - 49
----
-396

query I rowsort
SELECT ALL 75 * - 80
----
-6000

query II rowsort
SELECT + - 58 AS col2, 51 * 24 AS col0
----
-58
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ALL - COALESCE ( 30, 98 * + 71, 64 + - COUNT( * ) - 6 )
----
-30

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL - COALESCE ( 30, 98 * + 71, 64 + - COUNT ( * ) - 6 )
----
-30

query I rowsort
SELECT - 71 * + + 77 + - + 5
----
-5472

query I rowsort
SELECT 48 * + 34 * 75 + - - 45
----
122445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7527
SELECT + - CASE - 18 WHEN + 65 THEN + COUNT( ALL - - 84 ) * - - 98 + 50 - + ( - 64 ) / + NULLIF ( - 86, COUNT( * ) * - 54 ) WHEN - - ( CAST( NULL AS SIGNED ) ) * CASE + COUNT( ALL + 85 ) WHEN COUNT( ALL + 59 ) + + MAX( ALL 53 ) + - 21 THEN 7 * + COALESCE ( - COUNT( * ), 59 + 8 ) WHEN + 13 THEN NULL ELSE NULL END + ( - 55 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7527
SELECT + - CASE - 18 WHEN + 65 THEN + COUNT ( ALL - - 84 ) * - - 98 + 50 - + ( - 64 ) / + NULLIF ( - 86, COUNT ( * ) * - 54 ) WHEN - - ( CAST ( NULL AS INTEGER ) ) * CASE + COUNT ( ALL + 85 ) WHEN COUNT ( ALL + 59 ) + + MAX ( ALL 53 ) + - 21 THEN 7 * + COALESCE ( - COUNT ( * ), 59 + 8 ) WHEN + 13 THEN NULL ELSE NULL END + ( - 55 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT COUNT( DISTINCT + 43 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7528
SELECT COUNT ( DISTINCT + 43 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT ALL - + COUNT( ALL - - 80 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL - + COUNT ( ALL - - 80 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - CASE + + NULLIF ( + 99, 3 ) WHEN + 24 + 26 + + COALESCE ( + - 88, 70, 64 ) + + 22 THEN NULL WHEN 45 THEN NULL ELSE 52 - + 27 END
----
-25

query I rowsort
SELECT 7 * + + 82 - - 77 AS col1
----
651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7532
SELECT + 35 DIV COUNT( * ) * - 79 AS col1
----
-2765

skipif mysql # not compatible
query I rowsort label-7532
SELECT + 35 / COUNT ( * ) * - 79 AS col1
----
-2765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7533
SELECT ALL COUNT( * ) DIV 6 col0
----
0

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL COUNT ( * ) / 6 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7534
SELECT - 88 * - CAST( - - 6 AS SIGNED ) + + - 92
----
436

skipif mysql # not compatible
query I rowsort label-7534
SELECT - 88 * - CAST ( - - 6 AS INTEGER ) + + - 92
----
436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7535
SELECT - COUNT( * ) * 45 * - 80 - 27 * - 1 DIV - 42 + + + 45
----
3645

skipif mysql # not compatible
query I rowsort label-7535
SELECT - COUNT ( * ) * 45 * - 80 - 27 * - 1 / - 42 + + + 45
----
3645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7536
SELECT ALL 70 + 3 + 98 + + 56 * CAST( NULL AS SIGNED ) + - 3 + - - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL 70 + 3 + 98 + + 56 * CAST ( NULL AS INTEGER ) + - 3 + - - 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7537
SELECT 77 DIV 5 * + SUM( DISTINCT + 82 ) * - 54 AS col2
----
-66420

skipif mysql # not compatible
query I rowsort label-7537
SELECT 77 / 5 * + SUM ( DISTINCT + 82 ) * - 54 AS col2
----
-66420

query I rowsort
SELECT ( - 1 ) + 92 AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7539
SELECT DISTINCT ( - COUNT( * ) ) + 20 + + 97 * 75 DIV - 72
----
-82

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT ( - COUNT ( * ) ) + 20 + + 97 * 75 / - 72
----
-82

query I rowsort
SELECT DISTINCT 69 * + 16 AS col1
----
1104

query I rowsort
SELECT ALL - NULLIF ( NULLIF ( - 99, 9 ), COALESCE ( + - 26, + - 22 ) ) + + + 82 col2
----
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7542
SELECT 83 + + - 76 DIV 4 * 25 * COUNT( * )
----
-392

skipif mysql # not compatible
query I rowsort label-7542
SELECT 83 + + - 76 / 4 * 25 * COUNT ( * )
----
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT 92 + MAX( DISTINCT + + 75 )
----
167

skipif mysql # not compatible
query I rowsort label-7543
SELECT 92 + MAX ( DISTINCT + + 75 )
----
167

onlyif mysql # DIV for integer division: 
query I rowsort label-7544
SELECT 2 + + 57 - - + 53 DIV - 85 + - 93
----
-34

skipif mysql # not compatible
query I rowsort label-7544
SELECT 2 + + 57 - - + 53 / - 85 + - 93
----
-34

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

query I rowsort
SELECT 82 + + 64 AS col2
----
146

query I rowsort
SELECT 92 + - 28 + 98 * 4 + + - 54 AS col2
----
402

query I rowsort
SELECT DISTINCT + 8 * + + 36 * + 88 AS col0
----
25344

query I rowsort
SELECT ALL 20 - - - 37 + 80
----
63

query I rowsort
SELECT 93 * + 58 AS col2
----
5394

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

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

query I rowsort
SELECT + NULLIF ( + 40, + + 46 ) + + 78
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - COUNT( * ) + 92 - COUNT( * ) * + 70 * + 16 + + 83 AS col2
----
-946

skipif mysql # not compatible
query I rowsort label-7553
SELECT - COUNT ( * ) + 92 - COUNT ( * ) * + 70 * + 16 + + 83 AS col2
----
-946

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + NULLIF ( + 40, + + 5 + COUNT( - 33 ) )
----
40

skipif mysql # not compatible
query I rowsort label-7554
SELECT + NULLIF ( + 40, + + 5 + COUNT ( - 33 ) )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT + 25 * - COUNT( * ) * + 18 + + COUNT( - 24 ) AS col1, - 90 * 61 * + 93 AS col0
----
-449
-510570

skipif mysql # not compatible
query II rowsort label-7555
SELECT + 25 * - COUNT ( * ) * + 18 + + COUNT ( - 24 ) AS col1, - 90 * 61 * + 93 AS col0
----
-449
-510570

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7557
SELECT DISTINCT + NULLIF ( 54, 80 ) DIV + 3 + 11, + ( - - CASE - COUNT( * ) WHEN + 61 THEN ( MAX( - - 12 ) ) END ) AS col0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-7557
SELECT DISTINCT + NULLIF ( 54, 80 ) / + 3 + 11, + ( - - CASE - COUNT ( * ) WHEN + 61 THEN ( MAX ( - - 12 ) ) END ) AS col0
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL 36 * - 33 + + 25 + + - 74 * + 59 - - + 15 * COUNT( * ) AS col1
----
-5514

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL 36 * - 33 + + 25 + + - 74 * + 59 - - + 15 * COUNT ( * ) AS col1
----
-5514

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7559
SELECT - + 92 * + CASE - CAST( - NULLIF ( - COUNT( * ), 94 ) AS DECIMAL ) WHEN COUNT( * ) THEN + SUM( + + 33 ) * - 37 * + 24 + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT - + 92 * + CASE - CAST ( - NULLIF ( - COUNT ( * ), 94 ) AS REAL ) WHEN COUNT ( * ) THEN + SUM ( + + 33 ) * - 37 * + 24 + 80 END
----
NULL

query I rowsort
SELECT + + 86 + + 9 + - - 24
----
119

query I rowsort
SELECT ALL 44 * - 23 * - + 1 + 4 * + 49 + + + 0 + - ( - + 81 )
----
1289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7562
SELECT + 58 + - 6 + COALESCE ( + 83, CASE + + COUNT( + + CAST( NULL AS SIGNED ) ) WHEN ( + 50 ) THEN 96 WHEN + + 43 - + + 74 * - - 37 * + - 37 * - - 73 THEN NULL ELSE - ( - ( 94 ) ) + - + 15 END )
----
135

skipif mysql # not compatible
query I rowsort label-7562
SELECT + 58 + - 6 + COALESCE ( + 83, CASE + + COUNT ( + + CAST ( NULL AS INTEGER ) ) WHEN ( + 50 ) THEN 96 WHEN + + 43 - + + 74 * - - 37 * + - 37 * - - 73 THEN NULL ELSE - ( - ( 94 ) ) + - + 15 END )
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT + CASE 92 WHEN SUM( ALL + + 31 ) - 87 THEN + 47 / + 85 + 11 * MAX( DISTINCT - - 32 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT + CASE 92 WHEN SUM ( ALL + + 31 ) - 87 THEN + 47 / + 85 + 11 * MAX ( DISTINCT - - 32 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT ALL 92 * - 17 * + 91 + 69 + + 55 + - COUNT( * ) * - COUNT( * ) AS col0
----
-142199

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL 92 * - 17 * + 91 + 69 + + 55 + - COUNT ( * ) * - COUNT ( * ) AS col0
----
-142199

query I rowsort
SELECT ALL - 21 * + - 65 + 82 AS col1
----
1447

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

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

query I rowsort
SELECT ALL 16 + + + 36 AS col2
----
52

query II rowsort
SELECT DISTINCT + 9, + ( 36 ) AS col1
----
9
36

query I rowsort
SELECT + ( 72 ) * - 26 * - - 10 AS col0
----
-18720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7570
SELECT DISTINCT + 84 * + + ( + 4 ) AS col2, - CAST( + 61 AS SIGNED ) - + MIN( ALL + 38 ) + + COUNT( * ) * + 29 AS col1
----
336
-70

skipif mysql # not compatible
query II rowsort label-7570
SELECT DISTINCT + 84 * + + ( + 4 ) AS col2, - CAST ( + 61 AS INTEGER ) - + MIN ( ALL + 38 ) + + COUNT ( * ) * + 29 AS col1
----
336
-70

query I rowsort
SELECT DISTINCT 21 + - 25
----
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-7572
SELECT - 68 * 0 DIV + 50, 55 col1
----
0
55

skipif mysql # not compatible
query II rowsort label-7572
SELECT - 68 * 0 / + 50, 55 col1
----
0
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7573
SELECT - COALESCE ( + 63, - + COUNT( * ) DIV - 62, - 73 * - + COUNT( * ) * + MAX( ALL + ( 50 ) ) + + + 33 + + ( 28 ) * - + 44 * - 39 + + COALESCE ( + 27, CASE + 81 WHEN + 68 * 32 - - COUNT( * ) THEN 42 DIV 56 END * - 64, + + 46 ) - - COUNT( * ) DIV + 99 )
----
-63

skipif mysql # not compatible
query I rowsort label-7573
SELECT - COALESCE ( + 63, - + COUNT ( * ) / - 62, - 73 * - + COUNT ( * ) * + MAX ( ALL + ( 50 ) ) + + + 33 + + ( 28 ) * - + 44 * - 39 + + COALESCE ( + 27, CASE + 81 WHEN + 68 * 32 - - COUNT ( * ) THEN 42 / 56 END * - 64, + + 46 ) - - COUNT ( * ) / + 99 )
----
-63

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7575
SELECT ALL COUNT( * ) AS col2, 98 AS col2
----
1
98

skipif mysql # not compatible
query II rowsort label-7575
SELECT ALL COUNT ( * ) AS col2, 98 AS col2
----
1
98

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

skipif mysql # not compatible
query I rowsort label-7576
SELECT - COALESCE ( - COUNT ( * ), + - COUNT ( * ), + ( - + 13 ) + ( + 74 ) ) col2
----
1

query I rowsort
SELECT ALL 20 - + + 52
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT + 32 * ( + SUM( - 86 ) )
----
-2752

skipif mysql # not compatible
query I rowsort label-7578
SELECT + 32 * ( + SUM ( - 86 ) )
----
-2752

query I rowsort
SELECT - 84 - + 87 - + - 7 * + - 0 * + 16 + 20
----
-151

query II rowsort
SELECT - - 49, + 33 AS col1
----
49
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7581
SELECT - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - - 95 + + + CAST( NULL AS SIGNED ) + - 63 * 78 * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 95 + + + CAST ( NULL AS INTEGER ) + - 63 * 78 * + 91
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7582
SELECT - - CAST( NULL AS DECIMAL ) AS col2, - 26 + - + ( - 19 ) * - 37 AS col2
----
NULL
-729

skipif mysql # not compatible
query II rowsort label-7582
SELECT - - CAST ( NULL AS REAL ) AS col2, - 26 + - + ( - 19 ) * - 37 AS col2
----
NULL
-729

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

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

query I rowsort
SELECT - 23 * 68
----
-1564

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT ALL + + MAX( DISTINCT 35 ) * - ( 45 ) AS col0
----
-1575

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL + + MAX ( DISTINCT 35 ) * - ( 45 ) AS col0
----
-1575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7586
SELECT - 63 * - NULLIF ( + - CASE WHEN 1 NOT BETWEEN - CAST( 65 AS SIGNED ) AND + 25 THEN - 46 ELSE - + 83 END, + 95 ) + 72
----
5301

skipif mysql # not compatible
query I rowsort label-7586
SELECT - 63 * - NULLIF ( + - CASE WHEN 1 NOT BETWEEN - CAST ( 65 AS INTEGER ) AND + 25 THEN - 46 ELSE - + 83 END, + 95 ) + 72
----
5301

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7588
SELECT - 58 AS col0, AVG ( ALL - 63 ) * - CAST( NULL AS SIGNED ) AS col0
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-7588
SELECT - 58 AS col0, AVG ( ALL - 63 ) * - CAST ( NULL AS INTEGER ) AS col0
----
-58
NULL

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

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

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

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

query II rowsort
SELECT + + 90 AS col0, 54 AS col2
----
90
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7592
SELECT - - 16 DIV COUNT( * ) + + 94 - + 86
----
24

skipif mysql # not compatible
query I rowsort label-7592
SELECT - - 16 / COUNT ( * ) + + 94 - + 86
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7593
SELECT - 96 DIV - 21 DIV + COUNT( * ) - + 94 - + NULLIF ( + NULLIF ( + 67, + 58 ), + - 1 )
----
-157

skipif mysql # not compatible
query I rowsort label-7593
SELECT - 96 / - 21 / + COUNT ( * ) - + 94 - + NULLIF ( + NULLIF ( + 67, + 58 ), + - 1 )
----
-157

onlyif mysql # DIV for integer division: 
query II rowsort label-7594
SELECT 26, 71 DIV - 94 AS col0
----
26
0

skipif mysql # not compatible
query II rowsort label-7594
SELECT 26, 71 / - 94 AS col0
----
26
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7596
SELECT - 92 DIV - 48
----
1

skipif mysql # not compatible
query I rowsort label-7596
SELECT - 92 / - 48
----
1

query II rowsort
SELECT ALL - - 24 * + 36 + + - 33 AS col0, + 1 AS col0
----
831
1

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

skipif mysql # not compatible
query I rowsort label-7598
SELECT + SUM ( - + 83 )
----
-83

query I rowsort
SELECT ALL 63 * 14 + 50
----
932

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT + NULLIF ( + - 99, + 10 + - COUNT( * ) + - 53 )
----
-99

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT + NULLIF ( + - 99, + 10 + - COUNT ( * ) + - 53 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT ALL - 97 * + - NULLIF ( SUM( ALL 74 ), + 36 )
----
7178

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL - 97 * + - NULLIF ( SUM ( ALL 74 ), + 36 )
----
7178

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7604
SELECT + ( - 2 ) * + - 73 + + - COUNT( * ) DIV + - 26 * - 11
----
146

skipif mysql # not compatible
query I rowsort label-7604
SELECT + ( - 2 ) * + - 73 + + - COUNT ( * ) / + - 26 * - 11
----
146

query I rowsort
SELECT COALESCE ( + ( - - 22 ), 15, + 2 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7606
SELECT + 34 AS col2, 83 + + 20 + - + 58 * - CAST( + - 36 AS SIGNED ) * - ( MAX( + NULLIF ( - 22, + 61 ) ) ) * + 43
----
34
-1975145

skipif mysql # not compatible
query II rowsort label-7606
SELECT + 34 AS col2, 83 + + 20 + - + 58 * - CAST ( + - 36 AS INTEGER ) * - ( MAX ( + NULLIF ( - 22, + 61 ) ) ) * + 43
----
34
-1975145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7607
SELECT - CAST( NULL AS SIGNED ) + + 50 * + + NULLIF ( + 7, - + 75 * - 11 ), 37 * + 98 * - ( - 40 ) AS col1
----
NULL
145040

skipif mysql # not compatible
query II rowsort label-7607
SELECT - CAST ( NULL AS INTEGER ) + + 50 * + + NULLIF ( + 7, - + 75 * - 11 ), 37 * + 98 * - ( - 40 ) AS col1
----
NULL
145040

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT + COUNT( * ) + NULLIF ( + 85, + SUM( DISTINCT + 20 ) * 58 * + + 27 - 92 + 58 + - 95 * COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-7608
SELECT + COUNT ( * ) + NULLIF ( + 85, + SUM ( DISTINCT + 20 ) * 58 * + + 27 - 92 + 58 + - 95 * COUNT ( * ) )
----
86

query I rowsort
SELECT + 91 + + + 30
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT + 8 * COUNT( * ) * - 30
----
-240

skipif mysql # not compatible
query I rowsort label-7610
SELECT + 8 * COUNT ( * ) * - 30
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT + 85 + - - ( + 76 ) * + COUNT( * ) * + 91 - 70 * + COUNT( DISTINCT - 42 ) AS col2
----
6931

skipif mysql # not compatible
query I rowsort label-7611
SELECT + 85 + - - ( + 76 ) * + COUNT ( * ) * + 91 - 70 * + COUNT ( DISTINCT - 42 ) AS col2
----
6931

query II rowsort
SELECT ALL 67 * + + 6 AS col1, + 77
----
402
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7613
SELECT + 73 DIV 36
----
2

skipif mysql # not compatible
query I rowsort label-7613
SELECT + 73 / 36
----
2

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

query I rowsort
SELECT + + 63 + + 66 AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT + + MIN( + - 97 ) * + 52 + + 2 AS col2
----
-5042

skipif mysql # not compatible
query I rowsort label-7616
SELECT + + MIN ( + - 97 ) * + 52 + + 2 AS col2
----
-5042

query II rowsort
SELECT 30 AS col0, + 37 + + 84 + - 86 * - 39
----
30
3475

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7618
SELECT ALL - - 81 DIV - - COALESCE ( - - 95, - 48 * CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL - - 81 / - - COALESCE ( - - 95, - 48 * CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + 5 + + + 73 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT DISTINCT + 47 + COUNT( * ) - 7 * + + MIN( + 3 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT + 47 + COUNT ( * ) - 7 * + + MIN ( + 3 ) AS col0
----
27

query I rowsort
SELECT - 96 * 28 col1
----
-2688

onlyif mysql # aggregate syntax: 
query II rowsort label-7622
SELECT COUNT( * ) AS col1, - ( + + NULLIF ( - ( - + COALESCE ( 27, + + 44, + SUM( ALL + 10 ), - 56 + - - 44 ) ), - - 51 + CASE 29 WHEN 15 + - + 19 THEN - + 59 + 50 ELSE - - 52 END - + 44 / - 42 ) )
----
1
-27

skipif mysql # not compatible
query II rowsort label-7622
SELECT COUNT ( * ) AS col1, - ( + + NULLIF ( - ( - + COALESCE ( 27, + + 44, + SUM ( ALL + 10 ), - 56 + - - 44 ) ), - - 51 + CASE 29 WHEN 15 + - + 19 THEN - + 59 + 50 ELSE - - 52 END - + 44 / - 42 ) )
----
1
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7623
SELECT COALESCE ( + 47, - + 12 + - 53 ) * - CAST( - 56 AS SIGNED ) + 44
----
2676

skipif mysql # not compatible
query I rowsort label-7623
SELECT COALESCE ( + 47, - + 12 + - 53 ) * - CAST ( - 56 AS INTEGER ) + 44
----
2676

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT - COUNT( DISTINCT - 53 ) * + 33 + - + 71 + 82 - 71
----
-93

skipif mysql # not compatible
query I rowsort label-7624
SELECT - COUNT ( DISTINCT - 53 ) * + 33 + - + 71 + 82 - 71
----
-93

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

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

query I rowsort
SELECT ALL + 73 + + ( 14 ) * - - 10 + 3 AS col1
----
216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7627
SELECT - 99 + - - COUNT( * ) * - 8 DIV 82 col1
----
-99

skipif mysql # not compatible
query I rowsort label-7627
SELECT - 99 + - - COUNT ( * ) * - 8 / 82 col1
----
-99

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7629
SELECT ALL - 93 - + - COUNT( * ), MAX( DISTINCT - 56 ) AS col0
----
-92
-56

skipif mysql # not compatible
query II rowsort label-7629
SELECT ALL - 93 - + - COUNT ( * ), MAX ( DISTINCT - 56 ) AS col0
----
-92
-56

query I rowsort
SELECT 64 * + ( - 83 ) AS col0
----
-5312

onlyif mysql # DIV for integer division: 
query I rowsort label-7631
SELECT 76 * 33 DIV + 95
----
26

skipif mysql # not compatible
query I rowsort label-7631
SELECT 76 * 33 / + 95
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7632
SELECT 18 + + - 70 - 63 + ( - CAST( - 4 AS SIGNED ) ) * + 2 AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-7632
SELECT 18 + + - 70 - 63 + ( - CAST ( - 4 AS INTEGER ) ) * + 2 AS col1
----
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7633
SELECT DISTINCT - COUNT( * ) DIV + COUNT( ALL - NULLIF ( - - NULLIF ( - 69, + - 36 ), + 90 - 68 DIV - ( + 85 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT - COUNT ( * ) / + COUNT ( ALL - NULLIF ( - - NULLIF ( - 69, + - 36 ), + 90 - 68 / - ( + 85 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL + 94 - - COUNT( * ) - - 95 * + 21 col1
----
2090

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + 94 - - COUNT ( * ) - - 95 * + 21 col1
----
2090

query I rowsort
SELECT 2 * - 11
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7636
SELECT 8 DIV ( - ( COUNT( * ) ) ) * + - 0 * + 86
----
0

skipif mysql # not compatible
query I rowsort label-7636
SELECT 8 / ( - ( COUNT ( * ) ) ) * + - 0 * + 86
----
0

query I rowsort
SELECT DISTINCT + 49 * - 20 * + 82 AS col2
----
-80360

query I rowsort
SELECT DISTINCT - 76 * + - 51 AS col2
----
3876

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

query I rowsort
SELECT 7 - 92
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-7641
SELECT + 22 - + 93 + - 44 col0, 51 * 14 * COUNT( * ) col1
----
-115
714

skipif mysql # not compatible
query II rowsort label-7641
SELECT + 22 - + 93 + - 44 col0, 51 * 14 * COUNT ( * ) col1
----
-115
714

query I rowsort
SELECT - COALESCE ( + - 88, COALESCE ( 64, + 34 ) ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7643
SELECT 71 * + COUNT( * ) AS col0, 1 * - COUNT( * ) + 77
----
71
76

skipif mysql # not compatible
query II rowsort label-7643
SELECT 71 * + COUNT ( * ) AS col0, 1 * - COUNT ( * ) + 77
----
71
76

query I rowsort
SELECT ALL - - 12 + - + 43 col0
----
-31

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

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

query I rowsort
SELECT ALL 98 + - 38
----
60

query I rowsort
SELECT DISTINCT + 18 + + - 25 AS col2
----
-7

query I rowsort
SELECT - 81 + + - 82
----
-163

query I rowsort
SELECT DISTINCT - ( + 22 ) * - 30 AS col0
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - ( + COUNT( - 74 ) ) * 99 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-7650
SELECT - ( + COUNT ( - 74 ) ) * 99 AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7651
SELECT ALL - CASE + 53 WHEN + - CASE - COUNT( - 90 ) WHEN - + 72 - + ( 1 ) + + + COUNT( * ) THEN NULL WHEN + 24 THEN + + ( - + 83 ) * + 27 - AVG ( ALL - + 17 ) * + COUNT( * ) END THEN NULL ELSE - 44 END * + COALESCE ( + - CASE - 65 WHEN - - 50 * + 10 THEN - 69 WHEN + CAST( ( - + NULLIF ( - - 16, - 96 * - 43 ) ) AS SIGNED ) * 76 + - MAX( DISTINCT 44 + 11 ) THEN NULL END, + COUNT( * ) DIV + COUNT( * ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL - CASE + 53 WHEN + - CASE - COUNT ( - 90 ) WHEN - + 72 - + ( 1 ) + + + COUNT ( * ) THEN NULL WHEN + 24 THEN + + ( - + 83 ) * + 27 - AVG ( ALL - + 17 ) * + COUNT ( * ) END THEN NULL ELSE - 44 END * + COALESCE ( + - CASE - 65 WHEN - - 50 * + 10 THEN - 69 WHEN + CAST ( ( - + NULLIF ( - - 16, - 96 * - 43 ) ) AS INTEGER ) * 76 + - MAX ( DISTINCT 44 + 11 ) THEN NULL END, + COUNT ( * ) / + COUNT ( * ) ) AS col2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7652
SELECT 19 + - 98 AS col1, 90 * - CAST( NULL AS SIGNED )
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-7652
SELECT 19 + - 98 AS col1, 90 * - CAST ( NULL AS INTEGER )
----
-79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL CASE - - MAX( DISTINCT 17 ) WHEN + 99 THEN 50 + + 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL CASE - - MAX ( DISTINCT 17 ) WHEN + 99 THEN 50 + + 8 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7654
SELECT DISTINCT 0 + COUNT( * ) + 5 + + - 82 + - 25 + + 66 - - ( + + 89 ) * + CAST( - 69 AS SIGNED ) AS col0
----
-6176

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT 0 + COUNT ( * ) + 5 + + - 82 + - 25 + + 66 - - ( + + 89 ) * + CAST ( - 69 AS INTEGER ) AS col0
----
-6176

onlyif mysql # aggregate syntax: 
query II rowsort label-7655
SELECT + ( - MAX( DISTINCT - - 97 ) ) AS col2, 41
----
-97
41

skipif mysql # not compatible
query II rowsort label-7655
SELECT + ( - MAX ( DISTINCT - - 97 ) ) AS col2, 41
----
-97
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT - 97 * - 44 * + + COUNT( * ) * + - 91 * COUNT( ALL + 73 )
----
-388388

skipif mysql # not compatible
query I rowsort label-7656
SELECT - 97 * - 44 * + + COUNT ( * ) * + - 91 * COUNT ( ALL + 73 )
----
-388388

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

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

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

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

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

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

query I rowsort
SELECT ( + 8 ) - + ( + ( - 80 ) ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7661
SELECT DISTINCT - 24 AS col0, 89 * - MIN( + - 14 ) - - + 73
----
-24
1319

skipif mysql # not compatible
query II rowsort label-7661
SELECT DISTINCT - 24 AS col0, 89 * - MIN ( + - 14 ) - - + 73
----
-24
1319

query I rowsort
SELECT ALL - 62 * + 71
----
-4402

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

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

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

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

query I rowsort
SELECT 99 * - 72 - - - 4 + + 22
----
-7110

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT ALL 91 * - + 76 * - COUNT( * ) * + 76
----
525616

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL 91 * - + 76 * - COUNT ( * ) * + 76
----
525616

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT DISTINCT - MAX( - 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT - MAX ( - 64 ) AS col0
----
64

query I rowsort
SELECT NULLIF ( 84, 60 + - 47 ) * 21 AS col2
----
1764

query II rowsort
SELECT 37 * - 42 * + 71, 4 AS col2
----
-110334
4

query I rowsort
SELECT ALL - 72 + - 99 AS col2
----
-171

query II rowsort
SELECT 17 + - + ( + - 81 ) AS col1, + ( 1 ) col0
----
98
1

query II rowsort
SELECT DISTINCT 63 AS col1, 28
----
63
28

query I rowsort
SELECT DISTINCT 49 + + 10
----
59

query I rowsort
SELECT ALL + 49 * + - 35 AS col1
----
-1715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7675
SELECT ALL + 38 + + CASE + 8 WHEN + - 82 THEN + - 51 ELSE NULL END + + AVG ( + - CAST( NULL AS SIGNED ) ) + - 31 * - ( COUNT( DISTINCT + 34 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL + 38 + + CASE + 8 WHEN + - 82 THEN + - 51 ELSE NULL END + + AVG ( + - CAST ( NULL AS INTEGER ) ) + - 31 * - ( COUNT ( DISTINCT + 34 ) )
----
NULL

query I rowsort
SELECT ALL - - 10 + + 2 col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7677
SELECT ALL - - CASE + 16 WHEN + COALESCE ( + 77, - + 29 + - 75 * 53, - ( - + 75 ) * + 32 ) * - 14 * + + 53 THEN + 9 + + - 22 * - + 52 WHEN 68 THEN - COUNT( * ) END + - CASE + 60 WHEN - 2 * - + 71 + + MAX( - - 25 ) * + - COUNT( * ) + + ( MAX( - 41 ) ) THEN + - 6 + - CAST( 17 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL - - CASE + 16 WHEN + COALESCE ( + 77, - + 29 + - 75 * 53, - ( - + 75 ) * + 32 ) * - 14 * + + 53 THEN + 9 + + - 22 * - + 52 WHEN 68 THEN - COUNT ( * ) END + - CASE + 60 WHEN - 2 * - + 71 + + MAX ( - - 25 ) * + - COUNT ( * ) + + ( MAX ( - 41 ) ) THEN + - 6 + - CAST ( 17 AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT + + 88 * + - 59 * - 29 + + + 2
----
150570

query I rowsort
SELECT ALL + 89 * - 2 * 12
----
-2136

query I rowsort
SELECT - 69 + + ( + 9 ) AS col1
----
-60

query I rowsort
SELECT - - ( - 66 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7682
SELECT ALL - COUNT( ALL + - 24 ) * + CAST( + ( 66 ) AS SIGNED ) - + 56 AS col2, + 10 * + 2 AS col1
----
-122
20

skipif mysql # not compatible
query II rowsort label-7682
SELECT ALL - COUNT ( ALL + - 24 ) * + CAST ( + ( 66 ) AS INTEGER ) - + 56 AS col2, + 10 * + 2 AS col1
----
-122
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT - ( + COUNT( * ) ) + - 79
----
-80

skipif mysql # not compatible
query I rowsort label-7683
SELECT - ( + COUNT ( * ) ) + - 79
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-7684
SELECT - - MAX( ALL + - 88 ) * 8 AS col0, - 18 * CASE 84 WHEN - COUNT( * ) * + 19 THEN COUNT( * ) END * 32 col1
----
-704
NULL

skipif mysql # not compatible
query II rowsort label-7684
SELECT - - MAX ( ALL + - 88 ) * 8 AS col0, - 18 * CASE 84 WHEN - COUNT ( * ) * + 19 THEN COUNT ( * ) END * 32 col1
----
-704
NULL

query I rowsort
SELECT ALL - 53 * 4
----
-212

query I rowsort
SELECT ALL - 37 * - + 44
----
1628

onlyif mysql # DIV for integer division: 
query II rowsort label-7687
SELECT ALL 72, 99 DIV - + 25 AS col1
----
72
-3

skipif mysql # not compatible
query II rowsort label-7687
SELECT ALL 72, 99 / - + 25 AS col1
----
72
-3

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7690
SELECT ALL - COALESCE ( 76, - - 19 + + 99, - ( + - 84 ) DIV + 21 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL - COALESCE ( 76, - - 19 + + 99, - ( + - 84 ) / + 21 ) AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7691
SELECT + - CAST( NULL AS SIGNED ) + MIN( + 95 ) * - 74
----
NULL

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

query I rowsort
SELECT - NULLIF ( 7, - 30 + + 58 ) * - 18 * + 71
----
8946

query I rowsort
SELECT + 52 * 75 AS col2
----
3900

query I rowsort
SELECT ALL 57 * + 21
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + ( + 80 ) - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-7695
SELECT + ( + 80 ) - COUNT ( * )
----
79

query I rowsort
SELECT ALL + 75 * + - 5 * - + 21
----
7875

query I rowsort
SELECT + ( + 53 ) + + 31
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT ALL + 66 * MAX( + 67 ) AS col1
----
4422

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL + 66 * MAX ( + 67 ) AS col1
----
4422

onlyif mysql # DIV for integer division: 
query I rowsort label-7699
SELECT + 68 DIV - - 72 col2
----
0

skipif mysql # not compatible
query I rowsort label-7699
SELECT + 68 / - - 72 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT ALL + 14 * - 17 + COUNT( * ) AS col0
----
-237

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL + 14 * - 17 + COUNT ( * ) AS col0
----
-237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT - ( + 53 ) * + CAST( 50 AS SIGNED ) * - 70 + + 39 + + - 42 AS col0
----
185497

skipif mysql # not compatible
query I rowsort label-7701
SELECT - ( + 53 ) * + CAST ( 50 AS INTEGER ) * - 70 + + 39 + + - 42 AS col0
----
185497

query I rowsort
SELECT 3 * + - 5 + - 45
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT + CASE + + COUNT( ( + - 88 ) ) WHEN 16 / - 19 + 85 - + SUM( ALL + 19 ) THEN - + 51 * + - 42 * - + 63 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT + CASE + + COUNT ( ( + - 88 ) ) WHEN 16 / - 19 + 85 - + SUM ( ALL + 19 ) THEN - + 51 * + - 42 * - + 63 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT + COUNT( * ) + 33 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-7704
SELECT + COUNT ( * ) + 33 AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT CASE - + 49 WHEN - 98 * - 13 + + NULLIF ( - 97, + - CASE + + 66 WHEN + NULLIF ( - + CAST( - 48 AS SIGNED ), 0 * 83 ) + 48 + - 1 * COALESCE ( 48, + 35, + - ( + CAST( NULL AS SIGNED ) ) / + + 94 * + + 93 + 80 + - COALESCE ( + - NULLIF ( 96, 83 ), 86 + + + 66 * 91 ) ) * 53 + 91 * + 84 THEN - 53 END ) THEN 52 WHEN 56 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT CASE - + 49 WHEN - 98 * - 13 + + NULLIF ( - 97, + - CASE + + 66 WHEN + NULLIF ( - + CAST ( - 48 AS INTEGER ), 0 * 83 ) + 48 + - 1 * COALESCE ( 48, + 35, + - ( + CAST ( NULL AS INTEGER ) ) / + + 94 * + + 93 + 80 + - COALESCE ( + - NULLIF ( 96, 83 ), 86 + + + 66 * 91 ) ) * 53 + 91 * + 84 THEN - 53 END ) THEN 52 WHEN 56 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - 10, - - 64 ) col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT - 14 * + 10 * 55 * SUM( - 67 )
----
515900

skipif mysql # not compatible
query I rowsort label-7707
SELECT - 14 * + 10 * 55 * SUM ( - 67 )
----
515900

query I rowsort
SELECT ALL NULLIF ( 68, + + 71 * - - 72 * + ( - NULLIF ( - + 72, 76 ) ) ) * + 88
----
5984

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT DISTINCT - COUNT( * ) * - 68 + + - MIN( ALL + 50 )
----
18

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT - COUNT ( * ) * - 68 + + - MIN ( ALL + 50 )
----
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7710
SELECT ALL - 60 * + + 62 * + + 73 + + CAST( + 27 AS SIGNED ) DIV - ( + 14 ) AS col0
----
-271561

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL - 60 * + + 62 * + + 73 + + CAST ( + 27 AS INTEGER ) / - ( + 14 ) AS col0
----
-271561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT DISTINCT - + 31 * + CAST( - - 39 AS SIGNED ) + 7 + + + 53 AS col1
----
-1149

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT - + 31 * + CAST ( - - 39 AS INTEGER ) + 7 + + + 53 AS col1
----
-1149

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

skipif mysql # not compatible
query I rowsort label-7712
SELECT + - SUM ( + 33 )
----
-33

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7716
SELECT - COUNT ( * ) - COUNT ( * ) / 74
----
-1

query I rowsort
SELECT DISTINCT NULLIF ( + + 93, + COALESCE ( 52, + 72 ) ) AS col1
----
93

query I rowsort
SELECT ALL 3 - 76 + 94 + + 97 col2
----
118

query I rowsort
SELECT DISTINCT + 44 * + 69 * + - 67 AS col2
----
-203412

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7720
SELECT ALL + + 3 DIV ( + + ( - - MAX( - 78 ) ) ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL + + 3 / ( + + ( - - MAX ( - 78 ) ) ) + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7721
SELECT - + COALESCE ( - 23, - + 84 ) DIV - - 94 DIV + ( + - COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7721
SELECT - + COALESCE ( - 23, - + 84 ) / - - 94 / + ( + - COUNT ( * ) ) AS col1
----
0

query I rowsort
SELECT + 0 + - - COALESCE ( 13, + 75 ) col1
----
13

query II rowsort
SELECT - - 47 - 42, + 91 AS col0
----
5
91

query I rowsort
SELECT - + NULLIF ( - 76, - + 97 ) col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT + MIN( ALL + - ( 29 ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-7725
SELECT + MIN ( ALL + - ( 29 ) ) AS col1
----
-29

query I rowsort
SELECT - + ( - 56 ) - + + 7
----
49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7727
SELECT - - 61 DIV + - 95, - 59 + - CAST( + 32 AS SIGNED ) AS col1
----
0
-91

skipif mysql # not compatible
query II rowsort label-7727
SELECT - - 61 / + - 95, - 59 + - CAST ( + 32 AS INTEGER ) AS col1
----
0
-91

query I rowsort
SELECT - 92 * + 57 col0
----
-5244

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL + + ( + + 34 ) * + 76 + - COUNT( * ) + + 19 AS col0
----
2602

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL + + ( + + 34 ) * + 76 + - COUNT ( * ) + + 19 AS col0
----
2602

query I rowsort
SELECT - + 86 * + 28 AS col0
----
-2408

query I rowsort
SELECT + 28 * + 36
----
1008

query I rowsort
SELECT - 99 + - 47
----
-146

query I rowsort
SELECT DISTINCT + 89 * - - 98 AS col0
----
8722

query I rowsort
SELECT ALL + 80 * 43
----
3440

query I rowsort
SELECT - 92 * 79 AS col2
----
-7268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7736
SELECT + CASE - COUNT( * ) WHEN + + 1 * - 26 THEN + 67 * + CAST( NULL AS SIGNED ) * - + 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7736
SELECT + CASE - COUNT ( * ) WHEN + + 1 * - 26 THEN + 67 * + CAST ( NULL AS INTEGER ) * - + 17 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7738
SELECT - CAST( - 42 AS SIGNED ) * CASE - + 92 WHEN - 55 THEN ( + 8 ) WHEN - + 87 * + COALESCE ( 22, 11 * - 42 DIV - 14 * 41 + + CAST( + 92 AS SIGNED ) * + - 26 - - COUNT( * ) + - 37 ) THEN - 8 * - 7 DIV - 96 WHEN - 95 - COUNT( * ) THEN NULL WHEN 41 THEN NULL ELSE + 95 END
----
3990

skipif mysql # not compatible
query I rowsort label-7738
SELECT - CAST ( - 42 AS INTEGER ) * CASE - + 92 WHEN - 55 THEN ( + 8 ) WHEN - + 87 * + COALESCE ( 22, 11 * - 42 / - 14 * 41 + + CAST ( + 92 AS INTEGER ) * + - 26 - - COUNT ( * ) + - 37 ) THEN - 8 * - 7 / - 96 WHEN - 95 - COUNT ( * ) THEN NULL WHEN 41 THEN NULL ELSE + 95 END
----
3990

query I rowsort
SELECT + 62 * + 88
----
5456

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7741
SELECT 35 DIV 61 * + 10 * 76 - - + 10 col0
----
10

skipif mysql # not compatible
query I rowsort label-7741
SELECT 35 / 61 * + 10 * 76 - - + 10 col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7742
SELECT CAST( NULL AS SIGNED ), - 5 AS col2
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-7742
SELECT CAST ( NULL AS INTEGER ), - 5 AS col2
----
NULL
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7743
SELECT DISTINCT - COUNT( * ) * + 32 * + CASE 12 WHEN - 50 THEN NULL WHEN + + 23 * - - ( - 31 ) + - 87 + - CAST( NULL AS SIGNED ) + + 85 * + + CAST( + ( + 39 ) AS SIGNED ) - + 7 THEN + COUNT( 23 ) END * + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT DISTINCT - COUNT ( * ) * + 32 * + CASE 12 WHEN - 50 THEN NULL WHEN + + 23 * - - ( - 31 ) + - 87 + - CAST ( NULL AS INTEGER ) + + 85 * + + CAST ( + ( + 39 ) AS INTEGER ) - + 7 THEN + COUNT ( 23 ) END * + 96 AS col1
----
NULL

query I rowsort
SELECT ALL + 72 + 67
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7745
SELECT DISTINCT - NULLIF ( + COUNT( * ), - MAX( - 71 ) ) * ( - ( CAST( NULL AS SIGNED ) ) ) / - CAST( NULL AS SIGNED ) - + - 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT - NULLIF ( + COUNT ( * ), - MAX ( - 71 ) ) * ( - ( CAST ( NULL AS INTEGER ) ) ) / - CAST ( NULL AS INTEGER ) - + - 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT COUNT( * ) * + + 21 - + - 33 col0
----
54

skipif mysql # not compatible
query I rowsort label-7746
SELECT COUNT ( * ) * + + 21 - + - 33 col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7747
SELECT ALL 2 * 59 DIV + 87
----
1

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL 2 * 59 / + 87
----
1

query I rowsort
SELECT 17 + - 84 AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT + 24 - - + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-7749
SELECT + 24 - - + COUNT ( * ) AS col0
----
25

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

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

query I rowsort
SELECT - ( + 75 ) * 23 + + - 39 AS col1
----
-1764

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

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

query I rowsort
SELECT 33 * + + 9 * - 92
----
-27324

query I rowsort
SELECT 76 * + 19
----
1444

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7755
SELECT + 73, - CAST( - 62 AS SIGNED ) + + 76 + - + ( 6 ) AS col1
----
73
132

skipif mysql # not compatible
query II rowsort label-7755
SELECT + 73, - CAST ( - 62 AS INTEGER ) + + 76 + - + ( 6 ) AS col1
----
73
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT 25 + MIN( + 44 ) + 74
----
143

skipif mysql # not compatible
query I rowsort label-7756
SELECT 25 + MIN ( + 44 ) + 74
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7757
SELECT ALL 48 * 96 DIV 28 + COUNT( * ) AS col2
----
165

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL 48 * 96 / 28 + COUNT ( * ) AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT 68 * - 60 - + COUNT( * ) + + 27 + MIN( + 49 ) * COUNT( * ) * + - COUNT( * ) - + - 75 + - + ( - CASE - + 72 WHEN 39 THEN + - 19 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT 68 * - 60 - + COUNT ( * ) + + 27 + MIN ( + 49 ) * COUNT ( * ) * + - COUNT ( * ) - + - 75 + - + ( - CASE - + 72 WHEN 39 THEN + - 19 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT COUNT( * ) - 55 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT COUNT ( * ) - 55 AS col2
----
-54

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

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

query I rowsort
SELECT 81 * + ( 12 ) AS col0
----
972

query I rowsort
SELECT 25 * + + 5 AS col1
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7763
SELECT DISTINCT 33 * - - 65 DIV + COUNT( * ) AS col2, 15
----
2145
15

skipif mysql # not compatible
query II rowsort label-7763
SELECT DISTINCT 33 * - - 65 / + COUNT ( * ) AS col2, 15
----
2145
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7764
SELECT DISTINCT + 45 AS col1, - COUNT( * ) + 80 * + 39
----
45
3119

skipif mysql # not compatible
query II rowsort label-7764
SELECT DISTINCT + 45 AS col1, - COUNT ( * ) + 80 * + 39
----
45
3119

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT COUNT( * ) + - 7 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7765
SELECT COUNT ( * ) + - 7 AS col0
----
-6

query I rowsort
SELECT ALL 22 + + 52
----
74

query II rowsort
SELECT DISTINCT 68, 3 AS col1
----
68
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7768
SELECT ALL - 3 + 78 DIV COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL - 3 + 78 / COUNT ( * )
----
75

query I rowsort
SELECT 18 + + COALESCE ( - 51, + + 63, 26 + + 8 * + 17 )
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-7770
SELECT 92 DIV + + 99 AS col2, - NULLIF ( COALESCE ( 72, - 91 ), + - 40 )
----
0
-72

skipif mysql # not compatible
query II rowsort label-7770
SELECT 92 / + + 99 AS col2, - NULLIF ( COALESCE ( 72, - 91 ), + - 40 )
----
0
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7771
SELECT ALL - NULLIF ( + 38, + 76 / - - 95 + ( - + ( COUNT( * ) ) ) + CAST( 40 AS SIGNED ) * - 87 + 51 ) + + 40
----
2

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL - NULLIF ( + 38, + 76 / - - 95 + ( - + ( COUNT ( * ) ) ) + CAST ( 40 AS INTEGER ) * - 87 + 51 ) + + 40
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT - 54 * + - CASE + + 22 WHEN 48 + - 87 THEN 53 ELSE NULL END + + 97 * 13 * + MAX( ALL 31 ) / COUNT( * ) + + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7772
SELECT - 54 * + - CASE + + 22 WHEN 48 + - 87 THEN 53 ELSE NULL END + + 97 * 13 * + MAX ( ALL 31 ) / COUNT ( * ) + + + 37
----
NULL

query I rowsort
SELECT ALL - 4 + ( - 9 ) AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT ALL - CAST( 65 AS SIGNED ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - CAST ( 65 AS INTEGER ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-7775
SELECT 23 AS col2, - COUNT( * ) + - 46 * + + 89 * + 71
----
23
-290675

skipif mysql # not compatible
query II rowsort label-7775
SELECT 23 AS col2, - COUNT ( * ) + - 46 * + + 89 * + 71
----
23
-290675

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT ALL + 40 + + MAX( ALL - 68 ) + 46 + 69 * MIN( ALL + 3 )
----
225

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL + 40 + + MAX ( ALL - 68 ) + 46 + 69 * MIN ( ALL + 3 )
----
225

query I rowsort
SELECT DISTINCT + 31 * + 64 AS col1
----
1984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7778
SELECT ALL 91 + 94 + + + 68 * - - 78 * + - 22 * 28 * - 0 * - 99 * + CASE + NULLIF ( + - MIN( + 63 ), 91 / - CASE - 39 WHEN - 24 * - 11 + + 45 + + CAST( 70 AS SIGNED ) + + + COUNT( * ) THEN NULL ELSE - 41 / + 25 + 25 END ) WHEN + 87 + - 27 THEN 60 + 81 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL 91 + 94 + + + 68 * - - 78 * + - 22 * 28 * - 0 * - 99 * + CASE + NULLIF ( + - MIN ( + 63 ), 91 / - CASE - 39 WHEN - 24 * - 11 + + 45 + + CAST ( 70 AS INTEGER ) + + + COUNT ( * ) THEN NULL ELSE - 41 / + 25 + 25 END ) WHEN + 87 + - 27 THEN 60 + 81 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT 43 + - 20, 46 * - - ( - + 99 ) AS col1
----
23
-4554

query II rowsort
SELECT ALL - 81 AS col2, + 34 * - 75 * - 62
----
-81
158100

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT COUNT( * ) * - 5 + + - 86 + - + CASE + 36 WHEN + 93 THEN - 15 + + 37 - + - ( - + 0 ) + 76 * - 90 WHEN - COUNT( - 11 ) THEN - ( + 95 ) WHEN + 64 THEN NULL END * - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT COUNT ( * ) * - 5 + + - 86 + - + CASE + 36 WHEN + 93 THEN - 15 + + 37 - + - ( - + 0 ) + 76 * - 90 WHEN - COUNT ( - 11 ) THEN - ( + 95 ) WHEN + 64 THEN NULL END * - + 26
----
NULL

query I rowsort
SELECT ALL + + 91 - - + 78 AS col2
----
169

onlyif mysql # aggregate syntax: 
query II rowsort label-7783
SELECT - 66 * COUNT( * ), 23 * COUNT( * ) AS col2
----
-66
23

skipif mysql # not compatible
query II rowsort label-7783
SELECT - 66 * COUNT ( * ), 23 * COUNT ( * ) AS col2
----
-66
23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7785
SELECT 48 DIV - 83 - - - 68
----
-68

skipif mysql # not compatible
query I rowsort label-7785
SELECT 48 / - 83 - - - 68
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7786
SELECT DISTINCT - - CASE + COALESCE ( + MAX( ALL + - 15 ), - 80, + - 35 + - 96, CAST( NULL AS SIGNED ) ) WHEN 78 * - 98 / + 7 THEN NULL WHEN - COUNT( * ) THEN COUNT( * ) + 63 END / - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT - - CASE + COALESCE ( + MAX ( ALL + - 15 ), - 80, + - 35 + - 96, CAST ( NULL AS INTEGER ) ) WHEN 78 * - 98 / + 7 THEN NULL WHEN - COUNT ( * ) THEN COUNT ( * ) + 63 END / - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT ALL + - 99 - + COUNT( - 55 )
----
-100

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL + - 99 - + COUNT ( - 55 )
----
-100

query I rowsort
SELECT + ( - 64 ) col1
----
-64

query I rowsort
SELECT ALL - ( + 53 ) * + + 73
----
-3869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7790
SELECT 71 * 47 DIV + 92 + + MIN( ALL + 94 )
----
130

skipif mysql # not compatible
query I rowsort label-7790
SELECT 71 * 47 / + 92 + + MIN ( ALL + 94 )
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT ALL - - MIN( ALL - 10 ) * - 96 AS col0
----
960

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL - - MIN ( ALL - 10 ) * - 96 AS col0
----
960

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

query I rowsort
SELECT 17 * + 65 AS col1
----
1105

query I rowsort
SELECT ALL + ( 68 ) * + 47 * + - 98 + + ( - - 64 )
----
-313144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7795
SELECT SUM( ALL + 48 ) DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-7795
SELECT SUM ( ALL + 48 ) / - 82
----
0

query I rowsort
SELECT DISTINCT - ( 52 ) AS col2
----
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT 40 * - + 50 * + COUNT( * ) AS col0
----
-2000

skipif mysql # not compatible
query I rowsort label-7798
SELECT 40 * - + 50 * + COUNT ( * ) AS col0
----
-2000

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT + COUNT( * ) - + + 98
----
-97

skipif mysql # not compatible
query I rowsort label-7799
SELECT + COUNT ( * ) - + + 98
----
-97

query II rowsort
SELECT DISTINCT + 1 AS col2, + 87
----
1
87

query I rowsort
SELECT DISTINCT + 23 + 70 * 13 * 19
----
17313

query I rowsort
SELECT ALL NULLIF ( - 33, - - 75 )
----
-33

query I rowsort
SELECT ALL 99 + 88
----
187

query I rowsort
SELECT ALL 75 * - 7 AS col2
----
-525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7805
SELECT 18 + NULLIF ( - COUNT( * ), + COUNT( * ) ) + + + 62 + + 54 * + - 48 DIV + 2 AS col0
----
-1217

skipif mysql # not compatible
query I rowsort label-7805
SELECT 18 + NULLIF ( - COUNT ( * ), + COUNT ( * ) ) + + + 62 + + 54 * + - 48 / + 2 AS col0
----
-1217

onlyif mysql # aggregate syntax: 
query II rowsort label-7806
SELECT DISTINCT 92 + 63 AS col1, - NULLIF ( COUNT( * ), - + 10 + + 48 ) AS col0
----
155
-1

skipif mysql # not compatible
query II rowsort label-7806
SELECT DISTINCT 92 + 63 AS col1, - NULLIF ( COUNT ( * ), - + 10 + + 48 ) AS col0
----
155
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT - COUNT( ALL COALESCE ( 67, + 20 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7807
SELECT - COUNT ( ALL COALESCE ( 67, + 20 ) )
----
-1

query I rowsort
SELECT ALL 27 + - 65 col0
----
-38

query II rowsort
SELECT 8 * + 73 AS col1, 47 + 19 * 26
----
584
541

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT DISTINCT 74 * COUNT( * ) col2
----
74

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT 74 * COUNT ( * ) col2
----
74

query II rowsort
SELECT ALL COALESCE ( COALESCE ( + 10, + 53 ), + 75 ) + + 50 + + + 51, 32 * - 5 AS col2
----
111
-160

query I rowsort
SELECT - NULLIF ( + ( 18 ), - 94 * + ( + NULLIF ( + 44, + 94 * - 26 - + 61 / 78 ) ) + + 76 + + 6 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT ALL 93 * SUM( ALL + + 86 ) - + + 37 + 7
----
7968

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL 93 * SUM ( ALL + + 86 ) - + + 37 + 7
----
7968

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT - 55 * COUNT( - 67 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7814
SELECT - 55 * COUNT ( - 67 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL + COUNT( ALL + 15 ) * - 1 * - + 39 - - 30 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + COUNT ( ALL + 15 ) * - 1 * - + 39 - - 30 AS col1
----
69

query I rowsort
SELECT + NULLIF ( 35, - 31 ) AS col1
----
35

query I rowsort
SELECT NULLIF ( - 96, - 7 ) AS col2
----
-96

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

skipif mysql # not compatible
query I rowsort label-7818
SELECT + 19 * 36 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7819
SELECT - COALESCE ( + - 92, - CAST( NULL AS SIGNED ) * - 13 * 36 ) * 43 AS col1
----
3956

skipif mysql # not compatible
query I rowsort label-7819
SELECT - COALESCE ( + - 92, - CAST ( NULL AS INTEGER ) * - 13 * 36 ) * 43 AS col1
----
3956

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT - + 50 - - NULLIF ( - + COUNT( * ), - + 72 * - 68 )
----
-51

skipif mysql # not compatible
query I rowsort label-7820
SELECT - + 50 - - NULLIF ( - + COUNT ( * ), - + 72 * - 68 )
----
-51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7821
SELECT - + 45 DIV + NULLIF ( + 27, CAST( + - 76 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7821
SELECT - + 45 / + NULLIF ( + 27, CAST ( + - 76 AS INTEGER ) )
----
-1

query I rowsort
SELECT ALL - 81 * + 25 AS col1
----
-2025

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

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

query I rowsort
SELECT - - 26 * - - 62 * - 89
----
-143468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7825
SELECT + 67 * 99 + - 14 + + CAST( NULL AS SIGNED ) - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7825
SELECT + 67 * 99 + - 14 + + CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7826
SELECT + + AVG ( ALL - + CAST( NULL AS SIGNED ) ) * - + 3 + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-7826
SELECT + + AVG ( ALL - + CAST ( NULL AS INTEGER ) ) * - + 3 + - 91
----
NULL

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

query II rowsort
SELECT - - 74 + - 33 AS col2, - 9 AS col0
----
41
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL + 62 * - + COUNT( ALL - 23 ) * - 47 + 61 + + 16
----
2991

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL + 62 * - + COUNT ( ALL - 23 ) * - 47 + 61 + + 16
----
2991

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT - + 99 + - - SUM( - 80 ) + 54 + + ( - COUNT( * ) ) AS col2
----
-126

skipif mysql # not compatible
query I rowsort label-7830
SELECT - + 99 + - - SUM ( - 80 ) + 54 + + ( - COUNT ( * ) ) AS col2
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-7831
SELECT ALL - - ( + + 50 ) DIV + + 95
----
0

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL - - ( + + 50 ) / + + 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7832
SELECT - 12 / + - CASE + + 1 WHEN 10 THEN - 8 + - COALESCE ( 53, + - 56 ) * - COUNT( * ) WHEN + SUM( ALL + 59 ) * CAST( NULL AS SIGNED ) - + CAST( - 57 AS SIGNED ) THEN - + 6 END AS col1, - MAX( 52 )
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-7832
SELECT - 12 / + - CASE + + 1 WHEN 10 THEN - 8 + - COALESCE ( 53, + - 56 ) * - COUNT ( * ) WHEN + SUM ( ALL + 59 ) * CAST ( NULL AS INTEGER ) - + CAST ( - 57 AS INTEGER ) THEN - + 6 END AS col1, - MAX ( 52 )
----
NULL
-52

query I rowsort
SELECT - - 24 + - + 38
----
-14

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

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

query II rowsort
SELECT - 13 AS col0, - 80 col0
----
-13
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-7836
SELECT + 46 + + 64 * - COUNT( * ), - 18 AS col1
----
-18
-18

skipif mysql # not compatible
query II rowsort label-7836
SELECT + 46 + + 64 * - COUNT ( * ), - 18 AS col1
----
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7837
SELECT ALL ( + COALESCE ( - CAST( NULL AS SIGNED ), - 16 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL ( + COALESCE ( - CAST ( NULL AS INTEGER ), - 16 ) )
----
-16

query I rowsort
SELECT + 22 + 99 + + 7 AS col1
----
128

query I rowsort
SELECT - 33 * - 60 AS col2
----
1980

query II rowsort
SELECT 76 AS col0, ( - ( 2 ) )
----
76
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT + 27 + ( - ( COUNT( DISTINCT + 8 ) ) )
----
26

skipif mysql # not compatible
query I rowsort label-7841
SELECT + 27 + ( - ( COUNT ( DISTINCT + 8 ) ) )
----
26

query II rowsort
SELECT DISTINCT - 40 + + 73 + + 39 AS col0, - 28 + + + ( 47 ) col1
----
72
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7843
SELECT ALL CAST( NULL AS SIGNED ) - + - COUNT( * ) * 84 + - COUNT( * ) + - 28 / - + CASE - + 1 WHEN + ( + 13 ) - - - 8 THEN + - 68 + ( - 55 ) / 79 + + CAST( NULL AS SIGNED ) + + + 49 * + + 88 * 68 WHEN - - CAST( NULL AS DECIMAL ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL CAST ( NULL AS INTEGER ) - + - COUNT ( * ) * 84 + - COUNT ( * ) + - 28 / - + CASE - + 1 WHEN + ( + 13 ) - - - 8 THEN + - 68 + ( - 55 ) / 79 + + CAST ( NULL AS INTEGER ) + + + 49 * + + 88 * 68 WHEN - - CAST ( NULL AS REAL ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 74 * - 6 AS col0
----
-444

query II rowsort
SELECT DISTINCT 90 AS col0, ( - 64 ) AS col1
----
90
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7846
SELECT - ( + CAST( - AVG ( ALL + 25 ) AS SIGNED ) )
----
25

skipif mysql # not compatible
query I rowsort label-7846
SELECT - ( + CAST ( - AVG ( ALL + 25 ) AS INTEGER ) )
----
25

query II rowsort
SELECT 48 AS col0, - 17 * + 40
----
48
-680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7848
SELECT ALL CAST( SUM( ALL - - 26 ) AS SIGNED ) - + 34 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL CAST ( SUM ( ALL - - 26 ) AS INTEGER ) - + 34 AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7849
SELECT ALL COALESCE ( 3, 22 ) * COALESCE ( 30, - - CAST( NULL AS SIGNED ) ) DIV 84
----
1

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL COALESCE ( 3, 22 ) * COALESCE ( 30, - - CAST ( NULL AS INTEGER ) ) / 84
----
1

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

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

query I rowsort
SELECT + 61 + - 35 col2
----
26

query I rowsort
SELECT - NULLIF ( 73, 84 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT - 26 + + MAX( 41 ) * 9
----
343

skipif mysql # not compatible
query I rowsort label-7853
SELECT - 26 + + MAX ( 41 ) * 9
----
343

onlyif mysql # aggregate syntax: 
query II rowsort label-7854
SELECT + 37 + 56 + + COUNT( * ) AS col0, + COUNT( * ) * - 60 * COUNT( * ) + - + ( + 73 )
----
94
-133

skipif mysql # not compatible
query II rowsort label-7854
SELECT + 37 + 56 + + COUNT ( * ) AS col0, + COUNT ( * ) * - 60 * COUNT ( * ) + - + ( + 73 )
----
94
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT - 43 - COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-7855
SELECT - 43 - COUNT ( * ) AS col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7856
SELECT + 14 DIV - 41 + + COUNT( * ) + - 23, COUNT( * ) AS col0
----
-22
1

skipif mysql # not compatible
query II rowsort label-7856
SELECT + 14 / - 41 + + COUNT ( * ) + - 23, COUNT ( * ) AS col0
----
-22
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7859
SELECT + MIN( CAST( 11 AS SIGNED ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-7859
SELECT + MIN ( CAST ( 11 AS INTEGER ) ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT ALL + + MIN( + 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL + + MIN ( + 47 ) AS col1
----
47

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT + - 94 DIV - + 80 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7862
SELECT + - 94 / - + 80 AS col1
----
1

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7865
SELECT DISTINCT + 72 * 43 + CASE + 75 WHEN + - 4 THEN NULL ELSE + NULLIF ( + 16, + + 41 ) - 35 - - COUNT( * ) END - + MAX( DISTINCT 51 ) * + 31 DIV COUNT( * ) * + - NULLIF ( + COUNT( * ), + ( + 11 ) ) + + 84 AS col1
----
4743

skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT + 72 * 43 + CASE + 75 WHEN + - 4 THEN NULL ELSE + NULLIF ( + 16, + + 41 ) - 35 - - COUNT ( * ) END - + MAX ( DISTINCT 51 ) * + 31 / COUNT ( * ) * + - NULLIF ( + COUNT ( * ), + ( + 11 ) ) + + 84 AS col1
----
4743

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT ALL + 29 * - + CASE + 47 WHEN 0 THEN + CASE 71 WHEN - - 66 * - 64 THEN + 53 WHEN + + 35 THEN NULL END WHEN + 98 + + 24 + + COUNT( * ) * - + 1 THEN NULL ELSE NULL END * 69 * - 94 - - 17 + - 88 * + - 93 * + 17 + - ( 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL + 29 * - + CASE + 47 WHEN 0 THEN + CASE 71 WHEN - - 66 * - 64 THEN + 53 WHEN + + 35 THEN NULL END WHEN + 98 + + 24 + + COUNT ( * ) * - + 1 THEN NULL ELSE NULL END * 69 * - 94 - - 17 + - 88 * + - 93 * + 17 + - ( 85 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL + COUNT( * ) * ( - + ( + ( + 3 ) ) ) * - + 32 * - 49
----
-4704

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL + COUNT ( * ) * ( - + ( + ( + 3 ) ) ) * - + 32 * - 49
----
-4704

query I rowsort
SELECT DISTINCT + 43 * + 18 + - 18 + 17 * + + 89 AS col2
----
2269

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT - - SUM( DISTINCT + 13 ) * + 79
----
1027

skipif mysql # not compatible
query I rowsort label-7870
SELECT - - SUM ( DISTINCT + 13 ) * + 79
----
1027

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

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

query I rowsort
SELECT - 63 + - 19 col2
----
-82

query I rowsort
SELECT - NULLIF ( + + 66, + + CASE 95 WHEN + + 28 THEN + - 9 ELSE 53 END )
----
-66

query I rowsort
SELECT 11 - - 60 + 95 + - 15 AS col2
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7875
SELECT 20 - - 34 DIV - SUM( 49 ) * - - ( + COUNT( * ) ) * + 95 * 47 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7875
SELECT 20 - - 34 / - SUM ( 49 ) * - - ( + COUNT ( * ) ) * + 95 * 47 AS col2
----
20

query I rowsort
SELECT DISTINCT + 72 - - 36 AS col2
----
108

query I rowsort
SELECT 26 * 13
----
338

query I rowsort
SELECT 36 * 5
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-7879
SELECT 52 * COUNT( * ) AS col1, + 18
----
52
18

skipif mysql # not compatible
query II rowsort label-7879
SELECT 52 * COUNT ( * ) AS col1, + 18
----
52
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7880
SELECT DISTINCT 3 * CAST( NULL AS SIGNED ), 79 DIV + ( + + 55 ) + + COUNT( * ) AS col1
----
NULL
2

skipif mysql # not compatible
query II rowsort label-7880
SELECT DISTINCT 3 * CAST ( NULL AS INTEGER ), 79 / + ( + + 55 ) + + COUNT ( * ) AS col1
----
NULL
2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7882
SELECT + 21 DIV + 5 + + 4 + + NULLIF ( 8, + 46 ) * - 10 + - + 41 AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-7882
SELECT + 21 / + 5 + + 4 + + NULLIF ( 8, + 46 ) * - 10 + - + 41 AS col0
----
-113

query I rowsort
SELECT - 18 * 18
----
-324

query I rowsort
SELECT ALL 88 + - + 92 + - 66 + - + 15 AS col0
----
-85

query I rowsort
SELECT - 58 + + ( + + 7 ) AS col0
----
-51

query I rowsort
SELECT ALL + + 0 + - 25 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT SUM( ALL 70 ) + - 18
----
52

skipif mysql # not compatible
query I rowsort label-7887
SELECT SUM ( ALL 70 ) + - 18
----
52

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7889
SELECT ALL + CASE - 59 WHEN 31 THEN + AVG ( + 97 ) END + + 59 + CASE - - 32 WHEN + + 88 THEN - COUNT( * ) ELSE + CAST( + ( + 60 ) AS SIGNED ) * - + COUNT( * ) * + 54 END * - + 73 + - + 82 * - 21 * 28 + + COUNT( - 96 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL + CASE - 59 WHEN 31 THEN + AVG ( + 97 ) END + + 59 + CASE - - 32 WHEN + + 88 THEN - COUNT ( * ) ELSE + CAST ( + ( + 60 ) AS INTEGER ) * - + COUNT ( * ) * + 54 END * - + 73 + - + 82 * - 21 * 28 + + COUNT ( - 96 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 72 + - + 13
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT - 41 * - - COUNT( * ) + - 11 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-7891
SELECT - 41 * - - COUNT ( * ) + - 11 AS col1
----
-52

query I rowsort
SELECT 50 * - - 96 AS col0
----
4800

query I rowsort
SELECT DISTINCT 99 * + - 26 + - 36 + - ( + + 27 )
----
-2637

query I rowsort
SELECT ALL - 58 * 53
----
-3074

query I rowsort
SELECT 11 + NULLIF ( - - 39, - 76 ) AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7896
SELECT ALL 16 DIV - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL 16 / - 88 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7897
SELECT ( - 98 ) + + CAST( + 57 AS SIGNED ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-7897
SELECT ( - 98 ) + + CAST ( + 57 AS INTEGER ) AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7898
SELECT 1 AS col1, + CAST( + + 65 AS SIGNED ) * - 85 * 56 * - + 6 * 54 * + MAX( NULLIF ( + CAST( + 21 AS SIGNED ), - 81 + 22 ) ) AS col2
----
1
2105157600

skipif mysql # not compatible
query II rowsort label-7898
SELECT 1 AS col1, + CAST ( + + 65 AS INTEGER ) * - 85 * 56 * - + 6 * 54 * + MAX ( NULLIF ( + CAST ( + 21 AS INTEGER ), - 81 + 22 ) ) AS col2
----
1
2105157600

query II rowsort
SELECT ALL NULLIF ( - 10, + 61 + - 0 ) * 93 AS col2, ( - ( + 31 ) ) AS col0
----
-930
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-7900
SELECT - 24, MIN( DISTINCT - 22 ) * 64 * + 8 AS col0
----
-24
-11264

skipif mysql # not compatible
query II rowsort label-7900
SELECT - 24, MIN ( DISTINCT - 22 ) * 64 * + 8 AS col0
----
-24
-11264

query I rowsort
SELECT DISTINCT 3 - - 36 AS col2
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7902
SELECT ALL 80 col0, CAST( NULL AS DECIMAL ) col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-7902
SELECT ALL 80 col0, CAST ( NULL AS REAL ) col2
----
80
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7903
SELECT ( + - CASE + COUNT( * ) WHEN + NULLIF ( COUNT( * ), ( - + MAX( DISTINCT + 55 ) ) * - + 83 - + 72 * - 74 ) / COUNT( + + ( 9 ) ) * - 51 - NULLIF ( + CAST( NULL AS SIGNED ), + 48 * 18 * - - 25 ) * - MIN( - ( - + 11 ) ) * + COUNT( * ) THEN - - ( + 22 ) / 85 + + - 21 * + 29 * 99 * 67 + + ( + - 0 ) + CAST( COUNT( * ) AS SIGNED ) END ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT ( + - CASE + COUNT ( * ) WHEN + NULLIF ( COUNT ( * ), ( - + MAX ( DISTINCT + 55 ) ) * - + 83 - + 72 * - 74 ) / COUNT ( + + ( 9 ) ) * - 51 - NULLIF ( + CAST ( NULL AS INTEGER ), + 48 * 18 * - - 25 ) * - MIN ( - ( - + 11 ) ) * + COUNT ( * ) THEN - - ( + 22 ) / 85 + + - 21 * + 29 * 99 * 67 + + ( + - 0 ) + CAST ( COUNT ( * ) AS INTEGER ) END ) + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 55 + - - 38
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT 36 * MAX( ALL 78 )
----
2808

skipif mysql # not compatible
query I rowsort label-7905
SELECT 36 * MAX ( ALL 78 )
----
2808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7906
SELECT 42 + - + CAST( 14 AS SIGNED ), CASE + 83 WHEN ( - 42 ) THEN + 20 WHEN COUNT( * ) * - + 44 + 49 * 19 THEN NULL ELSE - + COUNT( * ) - + 63 END * + - CAST( NULL AS DECIMAL ) * + 31 / + 61 AS col0
----
28
NULL

skipif mysql # not compatible
query II rowsort label-7906
SELECT 42 + - + CAST ( 14 AS INTEGER ), CASE + 83 WHEN ( - 42 ) THEN + 20 WHEN COUNT ( * ) * - + 44 + 49 * 19 THEN NULL ELSE - + COUNT ( * ) - + 63 END * + - CAST ( NULL AS REAL ) * + 31 / + 61 AS col0
----
28
NULL

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

query II rowsort
SELECT DISTINCT 97 AS col0, 41 AS col1
----
97
41

query I rowsort
SELECT ALL 78 + 29 + + 10 + - 56 + - - 6 * - + 42 AS col0
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT 77 + CASE - 29 WHEN - 61 THEN + - 99 WHEN 90 THEN + + 86 WHEN + + 71 THEN NULL ELSE + 45 * + COUNT( * ) * + COUNT( * ) - - 3 - - 57 + - 46 * + + 21 END AS col1
----
-784

skipif mysql # not compatible
query I rowsort label-7910
SELECT 77 + CASE - 29 WHEN - 61 THEN + - 99 WHEN 90 THEN + + 86 WHEN + + 71 THEN NULL ELSE + 45 * + COUNT ( * ) * + COUNT ( * ) - - 3 - - 57 + - 46 * + + 21 END AS col1
----
-784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7911
SELECT - NULLIF ( - + 33, CAST( - 12 AS SIGNED ) / - 71 + COUNT( * ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7911
SELECT - NULLIF ( - + 33, CAST ( - 12 AS INTEGER ) / - 71 + COUNT ( * ) ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT ALL - + 77 * + + COUNT( * ) + + + 92 + + 30
----
45

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL - + 77 * + + COUNT ( * ) + + + 92 + + 30
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT - MAX( DISTINCT - 13 ) + - 83 * + COUNT( * ) / + CASE + 10 WHEN 75 * + MAX( ALL NULLIF ( - 73, 55 ) ) THEN NULL WHEN 53 * - 48 / - - 33 + 6 THEN + - 26 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7913
SELECT - MAX ( DISTINCT - 13 ) + - 83 * + COUNT ( * ) / + CASE + 10 WHEN 75 * + MAX ( ALL NULLIF ( - 73, 55 ) ) THEN NULL WHEN 53 * - 48 / - - 33 + 6 THEN + - 26 END AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 0 + + ( 0 ), 2 AS col1
----
0
2

query I rowsort
SELECT ALL + 42 + + 72
----
114

query I rowsort
SELECT + 42 * + 6 AS col1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT ALL - MAX( 24 ) * - 60 + + 1 + COUNT( * ) + - 15
----
1427

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL - MAX ( 24 ) * - 60 + + 1 + COUNT ( * ) + - 15
----
1427

onlyif mysql # DIV for integer division: 
query I rowsort label-7918
SELECT DISTINCT - 50 DIV - + 58
----
0

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT - 50 / - + 58
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7919
SELECT DISTINCT - 21 * CAST( NULL AS SIGNED ) + + ( COUNT( * ) ) + - COUNT( * ) / + 3 + 71 * ( 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT - 21 * CAST ( NULL AS INTEGER ) + + ( COUNT ( * ) ) + - COUNT ( * ) / + 3 + 71 * ( 91 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7920
SELECT ALL - + 25 * - 46 + CAST( NULL AS SIGNED ) + + 26 * - + 53, 47 * 80 AS col2
----
NULL
3760

skipif mysql # not compatible
query II rowsort label-7920
SELECT ALL - + 25 * - 46 + CAST ( NULL AS INTEGER ) + + 26 * - + 53, 47 * 80 AS col2
----
NULL
3760

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

query I rowsort
SELECT ALL - 78 * + 5 + - 0
----
-390

query I rowsort
SELECT DISTINCT - 42 * - - 43 + 67 + + 14 AS col1
----
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT + + COUNT( + - 91 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7924
SELECT + + COUNT ( + - 91 ) AS col0
----
1

query I rowsort
SELECT - + 56 * - 26 + 20 + - 20 AS col2
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT 45 * - SUM( 11 ) + - 35 + 60 * - - MAX( - 33 ) AS col2
----
-2510

skipif mysql # not compatible
query I rowsort label-7926
SELECT 45 * - SUM ( 11 ) + - 35 + 60 * - - MAX ( - 33 ) AS col2
----
-2510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7927
SELECT DISTINCT CASE - - 77 WHEN MAX( DISTINCT - - CAST( + 55 AS SIGNED ) ) + + 58 THEN - 61 * - 93 + 48 * - 42 * + 71 + - + 61 WHEN + + 50 * - 69 + 98 THEN - 18 + + 4 WHEN + 2 THEN NULL END * 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT CASE - - 77 WHEN MAX ( DISTINCT - - CAST ( + 55 AS INTEGER ) ) + + 58 THEN - 61 * - 93 + 48 * - 42 * + 71 + - + 61 WHEN + + 50 * - 69 + 98 THEN - 18 + + 4 WHEN + 2 THEN NULL END * 83 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - - 48 )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-7929
SELECT 9 * - 9 * MAX( + 96 ) + + 15 col1, - 46 AS col0
----
-7761
-46

skipif mysql # not compatible
query II rowsort label-7929
SELECT 9 * - 9 * MAX ( + 96 ) + + 15 col1, - 46 AS col0
----
-7761
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-7930
SELECT ( MIN( - + 60 ) ) col2, 1
----
-60
1

skipif mysql # not compatible
query II rowsort label-7930
SELECT ( MIN ( - + 60 ) ) col2, 1
----
-60
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT SUM( - - 57 ) col2
----
57

skipif mysql # not compatible
query I rowsort label-7932
SELECT SUM ( - - 57 ) col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7933
SELECT DISTINCT + 69, CAST( NULL AS SIGNED ) + - 97 + - - 96 + - - 17 * + - 45 * - 78 * - 5 - - + 33 AS col0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-7933
SELECT DISTINCT + 69, CAST ( NULL AS INTEGER ) + - 97 + - - 96 + - - 17 * + - 45 * - 78 * - 5 - - + 33 AS col0
----
69
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7934
SELECT 27 * ( - - MAX( + 99 ) ) + - + 68 * 16, + NULLIF ( - 11, 23 ) AS col0
----
1585
-11

skipif mysql # not compatible
query II rowsort label-7934
SELECT 27 * ( - - MAX ( + 99 ) ) + - + 68 * 16, + NULLIF ( - 11, 23 ) AS col0
----
1585
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT MAX( ( - 40 ) ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7935
SELECT MAX ( ( - 40 ) ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT + 68 * 27 * - 32 / - - CASE - 90 WHEN MAX( ALL + - ( 85 ) ) THEN NULL WHEN + 85 THEN + - 50 / - 42 + - + 65 + COUNT( + 10 ) * + + NULLIF ( - 12, + 68 * + + 8 + - + 90 ) * + - 79 + 5 WHEN COALESCE ( + - 56, - 83 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7936
SELECT + 68 * 27 * - 32 / - - CASE - 90 WHEN MAX ( ALL + - ( 85 ) ) THEN NULL WHEN + 85 THEN + - 50 / - 42 + - + 65 + COUNT ( + 10 ) * + + NULLIF ( - 12, + 68 * + + 8 + - + 90 ) * + - 79 + 5 WHEN COALESCE ( + - 56, - 83 ) THEN NULL ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT + 27 + + 94 + + 19 * - 73, 50 AS col2
----
-1266
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT - 9 * - - COUNT( * ) * + - 63 * 5 * 62 AS col2
----
175770

skipif mysql # not compatible
query I rowsort label-7938
SELECT - 9 * - - COUNT ( * ) * + - 63 * 5 * 62 AS col2
----
175770

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT ALL 15 * - SUM( ALL - 13 ) col1
----
195

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL 15 * - SUM ( ALL - 13 ) col1
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-7940
SELECT - 26 DIV + 96 * 58
----
0

skipif mysql # not compatible
query I rowsort label-7940
SELECT - 26 / + 96 * 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL 91 * - MIN( - 14 ) AS col1
----
1274

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL 91 * - MIN ( - 14 ) AS col1
----
1274

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT + MAX( ALL + - 69 ) - 53 AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-7942
SELECT + MAX ( ALL + - 69 ) - 53 AS col1
----
-122

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

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

query II rowsort
SELECT 86 AS col0, + 61
----
86
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT + 91 DIV - 66 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7945
SELECT + 91 / - 66 AS col0
----
-1

query I rowsort
SELECT ALL CASE - 53 WHEN 23 THEN NULL ELSE + 36 END + + + 61
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL 55 + + + 62 * - 22 + - COUNT( * )
----
-1310

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL 55 + + + 62 * - 22 + - COUNT ( * )
----
-1310

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT DISTINCT 90 + - - COUNT( * ) col2
----
91

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT 90 + - - COUNT ( * ) col2
----
91

query I rowsort
SELECT - 19 - - 59
----
40

query II rowsort
SELECT DISTINCT + 80, 28 AS col2
----
80
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7951
SELECT - 54 AS col0, - CASE - COALESCE ( + ( - - 80 ), + ( + ( + COUNT( * ) ) ) ) WHEN 13 / COALESCE ( - ( - + 23 ), + 16 ) THEN + 95 WHEN + SUM( DISTINCT + 5 ) / 16 THEN + + 58 WHEN + 2 THEN NULL END
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-7951
SELECT - 54 AS col0, - CASE - COALESCE ( + ( - - 80 ), + ( + ( + COUNT ( * ) ) ) ) WHEN 13 / COALESCE ( - ( - + 23 ), + 16 ) THEN + 95 WHEN + SUM ( DISTINCT + 5 ) / 16 THEN + + 58 WHEN + 2 THEN NULL END
----
-54
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7952
SELECT - + 32 + 4 + - MIN( + - CAST( NULL AS DECIMAL ) ) * 32 + - NULLIF ( 66, - 8 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT - + 32 + 4 + - MIN ( + - CAST ( NULL AS REAL ) ) * 32 + - NULLIF ( 66, - 8 ) AS col2
----
NULL

query I rowsort
SELECT ALL - + 50 * 19 + 96 AS col1
----
-854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7954
SELECT ALL 9 + ( - 28 ) + - - CAST( 42 AS SIGNED ) DIV - 79 * + - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL 9 + ( - 28 ) + - - CAST ( 42 AS INTEGER ) / - 79 * + - COUNT ( * )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7955
SELECT ALL - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) - + 8
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7955
SELECT ALL - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) - + 8
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT - 76 DIV + 39 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7956
SELECT - 76 / + 39 AS col1
----
-1

query I rowsort
SELECT ALL - + 33 * + 11
----
-363

onlyif mysql # DIV for integer division: 
query II rowsort label-7958
SELECT 50 AS col2, 86 DIV - 49 AS col1
----
50
-1

skipif mysql # not compatible
query II rowsort label-7958
SELECT 50 AS col2, 86 / - 49 AS col1
----
50
-1

query I rowsort
SELECT + + 83 * - 44
----
-3652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7960
SELECT - - COALESCE ( + CAST( NULL AS SIGNED ), 36 + - SUM( + 70 ) - - - ( - 67 ) * - 18 ) + 4 + + COUNT( * ) AS col2
----
-1235

skipif mysql # not compatible
query I rowsort label-7960
SELECT - - COALESCE ( + CAST ( NULL AS INTEGER ), 36 + - SUM ( + 70 ) - - - ( - 67 ) * - 18 ) + 4 + + COUNT ( * ) AS col2
----
-1235

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

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

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL + + 82 / - 11 * - + COUNT ( * ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7963
SELECT - 74 * - - 61 - + - 5 + 31, - COUNT( * ) col0
----
-4478
-1

skipif mysql # not compatible
query II rowsort label-7963
SELECT - 74 * - - 61 - + - 5 + 31, - COUNT ( * ) col0
----
-4478
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT DISTINCT + CASE + MAX( DISTINCT + 32 ) WHEN - 21 THEN NULL ELSE - 36 * - 55 END AS col0
----
1980

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT + CASE + MAX ( DISTINCT + 32 ) WHEN - 21 THEN NULL ELSE - 36 * - 55 END AS col0
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT + 39 + - + MAX( ALL + - 8 ) - - 72
----
119

skipif mysql # not compatible
query I rowsort label-7965
SELECT + 39 + - + MAX ( ALL + - 8 ) - - 72
----
119

query I rowsort
SELECT - 51 + - 91 AS col2
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7967
SELECT - COUNT( * ) DIV - + 25 * - 77 + + 89 + + 54 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-7967
SELECT - COUNT ( * ) / - + 25 * - 77 + + 89 + + 54 AS col0
----
143

query I rowsort
SELECT - 45 * + 45 * - 48 AS col2
----
97200

query I rowsort
SELECT + 51 * + + ( + 39 ) AS col1
----
1989

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

skipif mysql # not compatible
query I rowsort label-7970
SELECT + MAX ( + 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT + CASE - 48 WHEN - 15 * + 33 + + + 90 * 41 / + CASE - - ( - CASE + + 85 WHEN + 94 THEN NULL WHEN 38 * - 78 + 63 / - + 26 THEN NULL WHEN 17 + - + 14 THEN NULL WHEN 4 THEN - COUNT( DISTINCT - 31 ) ELSE NULL END ) WHEN + 90 THEN NULL WHEN - - COALESCE ( + 92, + 32 ) THEN NULL ELSE 70 END * 19 + - 12 THEN - 74 / 81 + + ( - - 95 ) WHEN - - 74 THEN 48 ELSE NULL END + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7971
SELECT + CASE - 48 WHEN - 15 * + 33 + + + 90 * 41 / + CASE - - ( - CASE + + 85 WHEN + 94 THEN NULL WHEN 38 * - 78 + 63 / - + 26 THEN NULL WHEN 17 + - + 14 THEN NULL WHEN 4 THEN - COUNT ( DISTINCT - 31 ) ELSE NULL END ) WHEN + 90 THEN NULL WHEN - - COALESCE ( + 92, + 32 ) THEN NULL ELSE 70 END * 19 + - 12 THEN - 74 / 81 + + ( - - 95 ) WHEN - - 74 THEN 48 ELSE NULL END + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 54 * - 6 + - 25 AS col0
----
-349

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT 22 * - - 62 + + 80 + 97 + + + COUNT( COALESCE ( 52, - + 7 ) ) AS col1
----
1542

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT 22 * - - 62 + + 80 + 97 + + + COUNT ( COALESCE ( 52, - + 7 ) ) AS col1
----
1542

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT DISTINCT COUNT( + 14 ) * - 13 + 58 + - - 37
----
82

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT COUNT ( + 14 ) * - 13 + 58 + - - 37
----
82

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7976
SELECT ALL 43 + 27 DIV + - ( 14 ) + 75 col0
----
117

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL 43 + 27 / + - ( 14 ) + 75 col0
----
117

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT + - 61 * CASE - 65 WHEN COUNT( * ) THEN NULL WHEN 59 / COUNT( * ) / - + 35 + + 91 + + - 95 THEN - AVG ( 49 ) * - 30 END * + 44 / - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT + - 61 * CASE - 65 WHEN COUNT ( * ) THEN NULL WHEN 59 / COUNT ( * ) / - + 35 + + 91 + + - 95 THEN - AVG ( 49 ) * - 30 END * + 44 / - 49 AS col0
----
NULL

query I rowsort
SELECT ALL 54 * - + 10 AS col1
----
-540

query I rowsort
SELECT + 24 + 39
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL MAX( DISTINCT - 56 ) + 16 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL MAX ( DISTINCT - 56 ) + 16 AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7982
SELECT ALL CASE - - 98 WHEN MAX( ALL + - 74 ) THEN - CAST( NULL AS DECIMAL ) END + - - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL CASE - - 98 WHEN MAX ( ALL + - 74 ) THEN - CAST ( NULL AS REAL ) END + - - 98 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 48 * + 45 + - 44
----
2116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7984
SELECT - + 79 + - + CASE - - 29 WHEN - 57 THEN + NULLIF ( + + 28, 59 * + 47 ) END + + 7 + + + NULLIF ( + 78, + + 60 * - 35 + - 81 + - + CASE COUNT( * ) WHEN 23 THEN - - 58 ELSE 89 + - 65 END * - CAST( 65 AS SIGNED ) ) / + + 65 + + 46 - 11 + - 2 * COUNT( * ) - - 81 * - - 71 * + COALESCE ( COUNT( * ), 61 * + ( + - 54 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT - + 79 + - + CASE - - 29 WHEN - 57 THEN + NULLIF ( + + 28, 59 * + 47 ) END + + 7 + + + NULLIF ( + 78, + + 60 * - 35 + - 81 + - + CASE COUNT ( * ) WHEN 23 THEN - - 58 ELSE 89 + - 65 END * - CAST ( 65 AS INTEGER ) ) / + + 65 + + 46 - 11 + - 2 * COUNT ( * ) - - 81 * - - 71 * + COALESCE ( COUNT ( * ), 61 * + ( + - 54 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7985
SELECT - 64 * - CASE WHEN CAST( NULL AS SIGNED ) IN ( + + 19, MAX( - 96 ), - + 88, 76 * CAST( NULL AS SIGNED ) ) THEN - COUNT( * ) WHEN NOT COUNT( * ) / - 3 NOT BETWEEN COUNT( * ) + + 41 + + - 45 * COUNT( * ) AND + COUNT( * ) * - 82 * + 63 + - + CAST( - - 3 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT - 64 * - CASE WHEN CAST ( NULL AS INTEGER ) IN ( + + 19, MAX ( - 96 ), - + 88, 76 * CAST ( NULL AS INTEGER ) ) THEN - COUNT ( * ) WHEN NOT COUNT ( * ) / - 3 NOT BETWEEN COUNT ( * ) + + 41 + + - 45 * COUNT ( * ) AND + COUNT ( * ) * - 82 * + 63 + - + CAST ( - - 3 AS INTEGER ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL COALESCE ( - ( 3 ), 36 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT - - NULLIF ( 34, + + COUNT( * ) + - 99 ) + + 12 + - + 22 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-7987
SELECT - - NULLIF ( 34, + + COUNT ( * ) + - 99 ) + + 12 + - + 22 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7988
SELECT - + 29 + - 86 + - NULLIF ( - ( - + ( - 41 ) ), 85 - + + 24 - SUM( + 17 ) ) - MAX( - - 86 ) + 96 / + ( CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT - + 29 + - 86 + - NULLIF ( - ( - + ( - 41 ) ), 85 - + + 24 - SUM ( + 17 ) ) - MAX ( - - 86 ) + 96 / + ( CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT DISTINCT - CASE 84 WHEN 88 * + 13 THEN NULL WHEN + 14 * - 83 THEN + 70 END - ( + 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7990
SELECT + 1 * - ( + 13 ) AS col0, 57 * + + COUNT( * ) * + 64 * - + 74 * 73 - + ( + - 29 )
----
-13
-19706467

skipif mysql # not compatible
query II rowsort label-7990
SELECT + 1 * - ( + 13 ) AS col0, 57 * + + COUNT ( * ) * + 64 * - + 74 * 73 - + ( + - 29 )
----
-13
-19706467

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7991
SELECT NULLIF ( - COUNT( * ), + + 86 ) AS col1, 46 + + 6 DIV - + 49 AS col2
----
-1
46

skipif mysql # not compatible
query II rowsort label-7991
SELECT NULLIF ( - COUNT ( * ), + + 86 ) AS col1, 46 + + 6 / - + 49 AS col2
----
-1
46

query I rowsort
SELECT ALL + - 30 * - 49 * 94
----
138180

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

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

query I rowsort
SELECT DISTINCT + 71 * 92 col1
----
6532

query II rowsort
SELECT + 12, 8 AS col2
----
12
8

query I rowsort
SELECT ( 47 ) * - COALESCE ( 87, + + NULLIF ( 63, - - 46 ) ) * + 39 - + 31 * 87
----
-162168

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

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL + COUNT ( * ) * - - 48 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT 62 DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7998
SELECT 62 / + 83 AS col2
----
0

query I rowsort
SELECT ALL - 64 + 19 * 38
----
658

query I rowsort
SELECT 36 - - 92 - 61
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT ALL + 91 / CASE - 47 WHEN - 80 - - - 76 + 73 * - + 68 * - + ( + - SUM( + 38 ) ) * + MIN( + + 88 ) + 85 * + 9 * - + ( - 42 ) THEN + + 17 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL + 91 / CASE - 47 WHEN - 80 - - - 76 + 73 * - + 68 * - + ( + - SUM ( + 38 ) ) * + MIN ( + + 88 ) + 85 * + 9 * - + ( - 42 ) THEN + + 17 END col2
----
NULL

query II rowsort
SELECT DISTINCT + 19 + + 13 * 29, 25 col1
----
396
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8003
SELECT DISTINCT + 82 + COUNT( * ) * 31 col0, COUNT( * ) AS col1
----
113
1

skipif mysql # not compatible
query II rowsort label-8003
SELECT DISTINCT + 82 + COUNT ( * ) * 31 col0, COUNT ( * ) AS col1
----
113
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8004
SELECT DISTINCT - CASE + + 96 WHEN 98 / + 35 + 77 THEN CASE 84 WHEN - - 94 THEN + 15 * - + 18 * - + 23 + - 33 + - 62 + - COALESCE ( + + CAST( + - 84 AS SIGNED ), + 40 + + + MIN( DISTINCT - 20 ) * + 75, + 27 - + + 52 ) * COALESCE ( + COUNT( * ), 20 * MIN( - + 32 ) + 14 ) WHEN + ( + 33 ) THEN 61 * - 23 END WHEN - CASE - + COUNT( * ) WHEN + SUM( ALL - + 41 ) - + CAST( - - 99 AS DECIMAL ) THEN MAX( 63 ) END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT - CASE + + 96 WHEN 98 / + 35 + 77 THEN CASE 84 WHEN - - 94 THEN + 15 * - + 18 * - + 23 + - 33 + - 62 + - COALESCE ( + + CAST ( + - 84 AS INTEGER ), + 40 + + + MIN ( DISTINCT - 20 ) * + 75, + 27 - + + 52 ) * COALESCE ( + COUNT ( * ), 20 * MIN ( - + 32 ) + 14 ) WHEN + ( + 33 ) THEN 61 * - 23 END WHEN - CASE - + COUNT ( * ) WHEN + SUM ( ALL - + 41 ) - + CAST ( - - 99 AS REAL ) THEN MAX ( 63 ) END THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT ALL SUM( ALL + 77 ) + 89
----
166

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL SUM ( ALL + 77 ) + 89
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8006
SELECT 40 AS col0, + ( 4 ) * 5 * + CASE WHEN 24 BETWEEN - CASE 37 WHEN + 30 THEN NULL ELSE - SUM( - - 29 ) + - ( + 2 ) END AND ( 86 + + 31 + - + CASE + COALESCE ( + - 50, - + 21, 12 * - + 97 - COALESCE ( - COUNT( * ), + - 65 * - - AVG ( ALL 36 ) ) + - + ( - 93 ), - 98 * + 41 * - 45 ) WHEN - 91 THEN - - 62 * + ( - ( - 68 ) ) WHEN - - NULLIF ( COUNT( * ), + 66 ) + ( - ( - 12 ) + COALESCE ( - 98, ( + 30 ), 79 - 6 ) ) THEN NULL ELSE - COUNT( * ) + + CAST( NULL AS SIGNED ) * 54 END ) THEN CAST( 32 AS DECIMAL ) END + + 42
----
40
NULL

skipif mysql # not compatible
query II rowsort label-8006
SELECT 40 AS col0, + ( 4 ) * 5 * + CASE WHEN 24 BETWEEN - CASE 37 WHEN + 30 THEN NULL ELSE - SUM ( - - 29 ) + - ( + 2 ) END AND ( 86 + + 31 + - + CASE + COALESCE ( + - 50, - + 21, 12 * - + 97 - COALESCE ( - COUNT ( * ), + - 65 * - - AVG ( ALL 36 ) ) + - + ( - 93 ), - 98 * + 41 * - 45 ) WHEN - 91 THEN - - 62 * + ( - ( - 68 ) ) WHEN - - NULLIF ( COUNT ( * ), + 66 ) + ( - ( - 12 ) + COALESCE ( - 98, ( + 30 ), 79 - 6 ) ) THEN NULL ELSE - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 54 END ) THEN CAST ( 32 AS REAL ) END + + 42
----
40
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8008
SELECT 11 AS col1, 91 * + 74 + COUNT( * ) AS col1
----
11
6735

skipif mysql # not compatible
query II rowsort label-8008
SELECT 11 AS col1, 91 * + 74 + COUNT ( * ) AS col1
----
11
6735

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8009
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, 12 * - 89 + + 3 * + 24 * 94
----
NULL
5700

skipif mysql # not compatible
query II rowsort label-8009
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, 12 * - 89 + + 3 * + 24 * 94
----
NULL
5700

onlyif mysql # aggregate syntax: 
query II rowsort label-8010
SELECT + 96 AS col2, 47 * - COUNT( * ) * - 46 * NULLIF ( - 89, - 95 ) + 72
----
96
-192346

skipif mysql # not compatible
query II rowsort label-8010
SELECT + 96 AS col2, 47 * - COUNT ( * ) * - 46 * NULLIF ( - 89, - 95 ) + 72
----
96
-192346

query II rowsort
SELECT + 99 AS col0, + 80
----
99
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT COUNT( * ) * - + COALESCE ( + 3, + 15 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8012
SELECT COUNT ( * ) * - + COALESCE ( + 3, + 15 ) AS col2
----
-3

query I rowsort
SELECT ALL 2 + 10
----
12

query I rowsort
SELECT 70 * + COALESCE ( - + 10, - 94 * - + 6 ) AS col0
----
-700

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

query II rowsort
SELECT ALL - 25, 91 AS col0
----
-25
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT - COALESCE ( - COUNT( * ), - 3 * 60 * 73 )
----
1

skipif mysql # not compatible
query I rowsort label-8017
SELECT - COALESCE ( - COUNT ( * ), - 3 * 60 * 73 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8018
SELECT DISTINCT - 63 - - 75 + CAST( NULL AS DECIMAL ) AS col0, CAST( NULL AS SIGNED ) - - 56
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8018
SELECT DISTINCT - 63 - - 75 + CAST ( NULL AS REAL ) AS col0, CAST ( NULL AS INTEGER ) - - 56
----
NULL
NULL

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

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

query I rowsort
SELECT ALL 66 - + 57
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8021
SELECT + CAST( NULL AS SIGNED ), 31 * - - 13 / + CASE 31 WHEN - 85 THEN - 40 END + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8021
SELECT + CAST ( NULL AS INTEGER ), 31 * - - 13 / + CASE 31 WHEN - 85 THEN - 40 END + COUNT ( * )
----
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT NULLIF ( + + 95, + - ( - COUNT( * ) ) )
----
95

skipif mysql # not compatible
query I rowsort label-8023
SELECT NULLIF ( + + 95, + - ( - COUNT ( * ) ) )
----
95

query II rowsort
SELECT - 51 AS col2, 76 - + + 90 * + - 21 + - + 38 * - 38
----
-51
3410

onlyif mysql # DIV for integer division: 
query I rowsort label-8025
SELECT 86 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-8025
SELECT 86 / 95
----
0

query II rowsort
SELECT ALL 54 * + + 5 * + 61 AS col2, + 61
----
16470
61

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

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL + ( 93 ) / + 85 + - 59
----
-58

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

skipif mysql # not compatible
query I rowsort label-8028
SELECT - - MAX ( DISTINCT - - 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8029
SELECT ALL + SUM( - 20 ) * 51 * - 40 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL + SUM ( - 20 ) * 51 * - 40 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8030
SELECT + 51 DIV - 50
----
-1

skipif mysql # not compatible
query I rowsort label-8030
SELECT + 51 / - 50
----
-1

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

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

query I rowsort
SELECT + 60 - - - 45 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL + COUNT( * ) * 54 * - 80 + - 31
----
-4351

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL + COUNT ( * ) * 54 * - 80 + - 31
----
-4351

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT CASE - 71 WHEN - 73 + + + 8 THEN + 31 WHEN MAX( 18 ) * - 8 THEN NULL WHEN - + COUNT( * ) THEN NULL ELSE + 91 END AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8034
SELECT CASE - 71 WHEN - 73 + + + 8 THEN + 31 WHEN MAX ( 18 ) * - 8 THEN NULL WHEN - + COUNT ( * ) THEN NULL ELSE + 91 END AS col2
----
91

query II rowsort
SELECT - 59, + ( - 42 ) AS col0
----
-59
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8036
SELECT NULLIF ( - 34, + + 5 ) * + - ( - + 99 ) + + 84 * - - 59 + + 90 + + - 22 * CASE + + 21 WHEN - 27 THEN COUNT( * ) / 79 / - CAST( NULL AS SIGNED ) * + - 71 + 52 + - - 68 END * 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8036
SELECT NULLIF ( - 34, + + 5 ) * + - ( - + 99 ) + + 84 * - - 59 + + 90 + + - 22 * CASE + + 21 WHEN - 27 THEN COUNT ( * ) / 79 / - CAST ( NULL AS INTEGER ) * + - 71 + 52 + - - 68 END * 42 AS col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT - 34 DIV 68 + - 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8038
SELECT - 34 / 68 + - 7 AS col0
----
-7

query I rowsort
SELECT 46 + 95 AS col1
----
141

query II rowsort
SELECT ALL + 5 + 8, - 96 AS col1
----
13
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8041
SELECT + NULLIF ( COALESCE ( - - COUNT( * ), - - 29 * 74 * + 58, - - 47 ), - + 77 + 47 * 65 * - 57 - + 82 + - 4 ) * + - MAX( CASE 14 WHEN - CAST( NULL AS SIGNED ) THEN - 81 WHEN - + 81 * - 70 + + 39 + - 52 * + 12 * - 30 - - - 21 THEN NULL END ) * + - 90 + + 68 * - 29 * MIN( ALL 31 ) * - CASE + 83 WHEN - 83 THEN - CASE + 19 WHEN CAST( + - COUNT( DISTINCT + 42 ) AS SIGNED ) * 61 THEN NULL WHEN - 68 THEN NULL WHEN - 68 THEN - 11 * 89 + + ( - 96 + - 57 * - 38 ) * MAX( ALL + 10 ) END + ( + ( + 53 ) ) WHEN 36 THEN + 39 * 30 END + 65 + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT + NULLIF ( COALESCE ( - - COUNT ( * ), - - 29 * 74 * + 58, - - 47 ), - + 77 + 47 * 65 * - 57 - + 82 + - 4 ) * + - MAX ( CASE 14 WHEN - CAST ( NULL AS INTEGER ) THEN - 81 WHEN - + 81 * - 70 + + 39 + - 52 * + 12 * - 30 - - - 21 THEN NULL END ) * + - 90 + + 68 * - 29 * MIN ( ALL 31 ) * - CASE + 83 WHEN - 83 THEN - CASE + 19 WHEN CAST ( + - COUNT ( DISTINCT + 42 ) AS INTEGER ) * 61 THEN NULL WHEN - 68 THEN NULL WHEN - 68 THEN - 11 * 89 + + ( - 96 + - 57 * - 38 ) * MAX ( ALL + 10 ) END + ( + ( + 53 ) ) WHEN 36 THEN + 39 * 30 END + 65 + 39 AS col0
----
NULL

query I rowsort
SELECT ALL ( + 45 ) + 14
----
59

query I rowsort
SELECT ALL - 33 + - NULLIF ( + 58, 19 ) AS col2
----
-91

query I rowsort
SELECT DISTINCT + 78 * + 79
----
6162

query I rowsort
SELECT ALL 32 * 40 * + 41 AS col2
----
52480

query I rowsort
SELECT 80 + + 0
----
80

query I rowsort
SELECT ALL - 33 + + - CASE 68 WHEN + 68 THEN 30 ELSE NULL END
----
-63

query II rowsort
SELECT DISTINCT + 79 * - 10, - 23 AS col2
----
-790
-23

query I rowsort
SELECT - 8 * + - 86 + - 13 AS col0
----
675

query I rowsort
SELECT 70 * 51 * 4 * - + 51 AS col2
----
-728280

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT COUNT( * ) * 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8051
SELECT COUNT ( * ) * 48 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8052
SELECT DISTINCT 31 - 51 DIV - + 51 col1
----
32

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT 31 - 51 / - + 51 col1
----
32

query II rowsort
SELECT ALL 90 * 60, - 75 + + 89 col0
----
5400
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8054
SELECT DISTINCT - COUNT( * ) DIV - CAST( + COALESCE ( - 53, - 90 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT - COUNT ( * ) / - CAST ( + COALESCE ( - 53, - 90 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8055
SELECT DISTINCT + 88 - ( + + SUM( + 28 ) ) AS col0, CAST( + - CASE + 70 WHEN + 56 THEN 94 / - 59 ELSE 14 END AS SIGNED ) AS col0
----
60
-14

skipif mysql # not compatible
query II rowsort label-8055
SELECT DISTINCT + 88 - ( + + SUM ( + 28 ) ) AS col0, CAST ( + - CASE + 70 WHEN + 56 THEN 94 / - 59 ELSE 14 END AS INTEGER ) AS col0
----
60
-14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8056
SELECT ALL - COALESCE ( + + 29, ( + 40 ), 45, + - ( - CAST( + + 42 AS SIGNED ) ) * + 76 * + 10 + - 69 ) DIV - 65 col0
----
0

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL - COALESCE ( + + 29, ( + 40 ), 45, + - ( - CAST ( + + 42 AS INTEGER ) ) * + 76 * + 10 + - 69 ) / - 65 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT ALL + + SUM( DISTINCT + - 78 ) - 34
----
-112

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL + + SUM ( DISTINCT + - 78 ) - 34
----
-112

query I rowsort
SELECT ( ( + 26 ) ) * + + ( - 81 ) AS col1
----
-2106

query I rowsort
SELECT - 86 * + + 2
----
-172

query II rowsort
SELECT + 56 * - - 31 AS col1, 81 AS col2
----
1736
81

query I rowsort
SELECT ALL CASE - - 31 WHEN - 21 THEN NULL ELSE - - 35 END AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT - + 1 + - + 43 + - - 5 - - - COUNT( * ) + + 70 + + 37 * - MAX( - + 6 ) col1
----
252

skipif mysql # not compatible
query I rowsort label-8062
SELECT - + 1 + - + 43 + - - 5 - - - COUNT ( * ) + + 70 + + 37 * - MAX ( - + 6 ) col1
----
252

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

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

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

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

query I rowsort
SELECT ALL + COALESCE ( 77, 28 ) col2
----
77

query I rowsort
SELECT ALL - - 59 + + - ( - 80 )
----
139

query I rowsort
SELECT + 45 + - 70 AS col2
----
-25

query II rowsort
SELECT - ( + 98 ), 24 * 74 AS col1
----
-98
1776

query I rowsort
SELECT - 88 * + - COALESCE ( 67, 79 + - 0 * - - 91 * - 27 ) + - 69 + + 89 AS col1
----
5916

query I rowsort
SELECT + 72 + 93 * - COALESCE ( + 81, - 65 * - - 9 + 78 * + 70 )
----
-7461

onlyif mysql # DIV for integer division: 
query I rowsort label-8071
SELECT ALL 46 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL 46 / 61
----
0

query I rowsort
SELECT + 22 * + + 59
----
1298

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

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

query I rowsort
SELECT ALL 92 + 14 AS col2
----
106

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

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

query I rowsort
SELECT ALL + 64 + + 20 * NULLIF ( - 92, - - 37 ) + - 72 AS col0
----
-1848

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT + 74 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-8077
SELECT + 74 / + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT ALL CASE 40 WHEN - + 92 THEN NULL WHEN - 78 THEN + 29 END * + COALESCE ( - - 14, + - MIN( + 54 ) ) + - + 68 + + 88 * + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL CASE 40 WHEN - + 92 THEN NULL WHEN - 78 THEN + 29 END * + COALESCE ( - - 14, + - MIN ( + 54 ) ) + - + 68 + + 88 * + 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT + 92 * - 13 * + + MAX( - + 2 ) AS col2
----
2392

skipif mysql # not compatible
query I rowsort label-8079
SELECT + 92 * - 13 * + + MAX ( - + 2 ) AS col2
----
2392

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8080
SELECT ALL 92 * COUNT( * ) * + COUNT( * ) * 88 + + - 82, 6 DIV - + 41 AS col1
----
8014
0

skipif mysql # not compatible
query II rowsort label-8080
SELECT ALL 92 * COUNT ( * ) * + COUNT ( * ) * 88 + + - 82, 6 / - + 41 AS col1
----
8014
0

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

query I rowsort
SELECT + COALESCE ( - 98, 12, + 81 )
----
-98

query I rowsort
SELECT DISTINCT 67 * + 68 + + 3 AS col1
----
4559

query II rowsort
SELECT ALL + 16 AS col1, ( - 75 )
----
16
-75

query II rowsort
SELECT ALL 42 * - 71 - - 34 AS col0, + 82
----
-2948
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8086
SELECT NULLIF ( ( 34 ), 82 * - + 32 + + + CAST( NULL AS SIGNED ) * + + 20 * + - ( 74 ) * 96 )
----
34

skipif mysql # not compatible
query I rowsort label-8086
SELECT NULLIF ( ( 34 ), 82 * - + 32 + + + CAST ( NULL AS INTEGER ) * + + 20 * + - ( 74 ) * 96 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT ALL 79 * 7 * COALESCE ( - - COUNT( 53 ), + + 72 ) - - NULLIF ( - + NULLIF ( + 0, - 17 * 46 / - + 81 + + 64 + - 19 ), + + NULLIF ( + - 27, - 88 / - + 75 ) ) + 91 * - + NULLIF ( + 45, + + ( - 58 ) ) AS col0
----
-3542

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL 79 * 7 * COALESCE ( - - COUNT ( 53 ), + + 72 ) - - NULLIF ( - + NULLIF ( + 0, - 17 * 46 / - + 81 + + 64 + - 19 ), + + NULLIF ( + - 27, - 88 / - + 75 ) ) + 91 * - + NULLIF ( + 45, + + ( - 58 ) ) AS col0
----
-3542

onlyif mysql # aggregate syntax: 
query II rowsort label-8088
SELECT + ( + MAX( ALL + 23 ) ) col0, COUNT( * ) AS col1
----
23
1

skipif mysql # not compatible
query II rowsort label-8088
SELECT + ( + MAX ( ALL + 23 ) ) col0, COUNT ( * ) AS col1
----
23
1

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8091
SELECT ALL + 35, COALESCE ( + - COUNT( 57 ), + - 56 ) + - 27 + - + COUNT( * ) AS col1
----
35
-29

skipif mysql # not compatible
query II rowsort label-8091
SELECT ALL + 35, COALESCE ( + - COUNT ( 57 ), + - 56 ) + - 27 + - + COUNT ( * ) AS col1
----
35
-29

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8093
SELECT + COALESCE ( - COUNT( * ), + + 27, - 97 DIV 9 ) * + - 86 DIV 21 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8093
SELECT + COALESCE ( - COUNT ( * ), + + 27, - 97 / 9 ) * + - 86 / 21 AS col1
----
4

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8095
SELECT + COUNT( * ), 47 + + ( - + 15 ) AS col2
----
1
32

skipif mysql # not compatible
query II rowsort label-8095
SELECT + COUNT ( * ), 47 + + ( - + 15 ) AS col2
----
1
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT - - 91 + 48 DIV + 49 - - 81
----
172

skipif mysql # not compatible
query I rowsort label-8096
SELECT - - 91 + 48 / + 49 - - 81
----
172

query I rowsort
SELECT - + 16 * - 22
----
352

onlyif mysql # DIV for integer division: 
query II rowsort label-8098
SELECT 96, - NULLIF ( - 20, + - 38 * + 89 + - 70 - + - 39 * + 95 ) DIV + 69 * - - 33 AS col0
----
96
0

skipif mysql # not compatible
query II rowsort label-8098
SELECT 96, - NULLIF ( - 20, + - 38 * + 89 + - 70 - + - 39 * + 95 ) / + 69 * - - 33 AS col0
----
96
0

query I rowsort
SELECT - + ( + 29 ) + - 42
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8100
SELECT ALL + 67 * CAST( - 99 AS SIGNED ) * + NULLIF ( + - MIN( DISTINCT - 32 ), + 47 )
----
-212256

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL + 67 * CAST ( - 99 AS INTEGER ) * + NULLIF ( + - MIN ( DISTINCT - 32 ), + 47 )
----
-212256

query I rowsort
SELECT - 6 * - - 37 * 52
----
-11544

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

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT - COUNT ( * ) / - 99
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8103
SELECT - 20 * - 50 * + 37 col0, + 15 DIV + + 46 + 66
----
37000
66

skipif mysql # not compatible
query II rowsort label-8103
SELECT - 20 * - 50 * + 37 col0, + 15 / + + 46 + 66
----
37000
66

query I rowsort
SELECT DISTINCT - - 56 + + 82
----
138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT - + COUNT( * ) * + 72 * - + 22 + - - 52 * + - 14 - - 34 * - 31 + 86 + - + COALESCE ( 11, + 62 )
----
-123

skipif mysql # not compatible
query I rowsort label-8106
SELECT - + COUNT ( * ) * + 72 * - + 22 + - - 52 * + - 14 - - 34 * - 31 + 86 + - + COALESCE ( 11, + 62 )
----
-123

query I rowsort
SELECT DISTINCT + 93 * - 86
----
-7998

query I rowsort
SELECT - - 29 - - - 14
----
15

query I rowsort
SELECT - + 54 * + 89
----
-4806

query I rowsort
SELECT DISTINCT - 96 * 87 col0
----
-8352

query I rowsort
SELECT DISTINCT - 23 * 22 AS col2
----
-506

query II rowsort
SELECT ALL 14, - ( - 64 ) * - 82 * - ( + + 38 ) - 8 AS col2
----
14
199416

query I rowsort
SELECT ALL - 5 * - 35 AS col0
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT - 68 - + ( + 38 ) + 23 + + COUNT( * ) + COUNT( * ) - + - 29 + + 93
----
41

skipif mysql # not compatible
query I rowsort label-8114
SELECT - 68 - + ( + 38 ) + 23 + + COUNT ( * ) + COUNT ( * ) - + - 29 + + 93
----
41

query I rowsort
SELECT + ( - - 35 ) - ( - 15 ) + + 22 + 75
----
147

query I rowsort
SELECT - 32 * 14
----
-448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8117
SELECT + COUNT( * ) * + 72 AS col1, NULLIF ( - + COUNT( * ), CAST( NULL AS SIGNED ) * - MIN( - - 64 ) ) * 48 - - + COUNT( * )
----
72
-47

skipif mysql # not compatible
query II rowsort label-8117
SELECT + COUNT ( * ) * + 72 AS col1, NULLIF ( - + COUNT ( * ), CAST ( NULL AS INTEGER ) * - MIN ( - - 64 ) ) * 48 - - + COUNT ( * )
----
72
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8118
SELECT DISTINCT 44 / - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT 44 / - CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT ALL 79 * + 44 AS col1
----
3476

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8122
SELECT AVG ( ALL + CAST( NULL AS SIGNED ) ) / + + 77 - - 29 + 5 + COUNT( + 13 ) * - NULLIF ( + 27, - - COUNT( * ) ) * - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT AVG ( ALL + CAST ( NULL AS INTEGER ) ) / + + 77 - - 29 + 5 + COUNT ( + 13 ) * - NULLIF ( + 27, - - COUNT ( * ) ) * - 80 AS col2
----
NULL

query I rowsort
SELECT ALL 43 * 97 * - 58 AS col2
----
-241918

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

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

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

skipif mysql # not compatible
query I rowsort label-8125
SELECT - COUNT ( ALL + - 79 ) * - 22 AS col2
----
22

query I rowsort
SELECT ALL 37 * + - ( - + 83 )
----
3071

query I rowsort
SELECT 86 * 81 AS col1
----
6966

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT CASE + - CASE + + 39 WHEN - + COUNT( * ) THEN - 84 WHEN 18 THEN NULL ELSE NULL END WHEN - 22 THEN - - COUNT( * ) WHEN 86 THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT CASE + - CASE + + 39 WHEN - + COUNT ( * ) THEN - 84 WHEN 18 THEN NULL ELSE NULL END WHEN - 22 THEN - - COUNT ( * ) WHEN 86 THEN NULL END + COUNT ( * )
----
NULL

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

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

query II rowsort
SELECT ALL - - 94, - 46 + + 66 AS col2
----
94
20

query I rowsort
SELECT ALL + 71 * - 94 AS col2
----
-6674

query I rowsort
SELECT ALL - + 96 * - 0
----
0

query I rowsort
SELECT COALESCE ( - 78, - + 79 )
----
-78

query I rowsort
SELECT ALL 74 + + 70
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8135
SELECT 18 - 7 AS col0, SUM( 70 ) col0, + COUNT( * ) DIV - 45 * + + 38 * + + NULLIF ( + - COUNT( * ), + 94 ) * - + SUM( + 73 ) + + + ( - ( COUNT( * ) ) ) AS col2
----
11
70
-1

skipif mysql # not compatible
query III rowsort label-8135
SELECT 18 - 7 AS col0, SUM ( 70 ) col0, + COUNT ( * ) / - 45 * + + 38 * + + NULLIF ( + - COUNT ( * ), + 94 ) * - + SUM ( + 73 ) + + + ( - ( COUNT ( * ) ) ) AS col2
----
11
70
-1

query II rowsort
SELECT - 43 AS col0, + 68 AS col0
----
-43
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT + ( - - 44 ) + - 11 - + MIN( ALL 28 ) + - COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8137
SELECT + ( - - 44 ) + - 11 - + MIN ( ALL 28 ) + - COUNT ( * ) AS col1
----
4

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

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

query I rowsort
SELECT ALL - 55 * - 3
----
165

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

query I rowsort
SELECT ALL + - 91 + - + 63
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT 72 + - - COALESCE ( + 30, 13, + COUNT( * ) - + 21 + - 66 ) * COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-8142
SELECT 72 + - - COALESCE ( + 30, 13, + COUNT ( * ) - + 21 + - 66 ) * COUNT ( * )
----
102

query I rowsort
SELECT ALL - 94 * - 74 * 23 AS col2
----
159988

query I rowsort
SELECT 18 + + 80
----
98

onlyif mysql # aggregate syntax: 
query III rowsort label-8145
SELECT ALL - 20 AS col0, 91 AS col0, - ( - 79 ) * + - ( + + COUNT( * ) ) col0
----
-20
91
-79

skipif mysql # not compatible
query III rowsort label-8145
SELECT ALL - 20 AS col0, 91 AS col0, - ( - 79 ) * + - ( + + COUNT ( * ) ) col0
----
-20
91
-79

query I rowsort
SELECT ALL 90 + - ( - 6 )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8147
SELECT ALL + 46 DIV 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL + 46 / 70 AS col0
----
0

query I rowsort
SELECT ALL + 37 - + 65 * + + 71 AS col2
----
-4578

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT 71 + + + MIN( ( 44 ) )
----
115

skipif mysql # not compatible
query I rowsort label-8149
SELECT 71 + + + MIN ( ( 44 ) )
----
115

onlyif mysql # DIV for integer division: 
query II rowsort label-8150
SELECT DISTINCT + 64 DIV + 16 AS col0, - 93 AS col0
----
4
-93

skipif mysql # not compatible
query II rowsort label-8150
SELECT DISTINCT + 64 / + 16 AS col0, - 93 AS col0
----
4
-93

query I rowsort
SELECT 81 + - 28 + - 73 * + 7
----
-458

query I rowsort
SELECT ALL - 1 - 11 * - 99
----
1088

query I rowsort
SELECT 90 + + + 77
----
167

onlyif mysql # aggregate syntax: 
query II rowsort label-8154
SELECT 0 + - - 7 + NULLIF ( - 50, 98 * + COUNT( * ) * + 40 ) - 93 * + 33 * + 97 col1, COUNT( * ) AS col0
----
-297736
1

skipif mysql # not compatible
query II rowsort label-8154
SELECT 0 + - - 7 + NULLIF ( - 50, 98 * + COUNT ( * ) * + 40 ) - 93 * + 33 * + 97 col1, COUNT ( * ) AS col0
----
-297736
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8155
SELECT ALL - 74 * 30 * COUNT( DISTINCT - 24 ) DIV - + 76
----
29

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL - 74 * 30 * COUNT ( DISTINCT - 24 ) / - + 76
----
29

query I rowsort
SELECT ALL - 75 * 62
----
-4650

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

skipif mysql # not compatible
query I rowsort label-8157
SELECT 96 * - - ( + 16 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8158
SELECT 86 DIV 27 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8158
SELECT 86 / 27 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT DISTINCT + COUNT( * ) + + + 66
----
67

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT + COUNT ( * ) + + + 66
----
67

query II rowsort
SELECT ALL 83 + - 15 AS col1, 32 * + 14 + - 33 AS col0
----
68
415

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT - + 13 * - + 66 - - COUNT( + + 75 )
----
859

skipif mysql # not compatible
query I rowsort label-8161
SELECT - + 13 * - + 66 - - COUNT ( + + 75 )
----
859

query I rowsort
SELECT COALESCE ( 78, + 79 * - COALESCE ( 68, + 0 * - - 60 * 93 * - - 71 * + - 80, - - 92 ) ) * - 43
----
-3354

onlyif mysql # aggregate syntax: 
query II rowsort label-8163
SELECT DISTINCT - COUNT( * ) + - 62 AS col0, - 14 + + 67 AS col2
----
-63
53

skipif mysql # not compatible
query II rowsort label-8163
SELECT DISTINCT - COUNT ( * ) + - 62 AS col0, - 14 + + 67 AS col2
----
-63
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT COUNT( - - 5 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8164
SELECT COUNT ( - - 5 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT 33 + + 76 + - 34 * CASE + 0 WHEN + 26 THEN + COUNT( * ) END * 11 + + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT 33 + + 76 + - 34 * CASE + 0 WHEN + 26 THEN + COUNT ( * ) END * 11 + + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8166
SELECT - 77 * - 12 AS col2, 55 + + COUNT( * )
----
924
56

skipif mysql # not compatible
query II rowsort label-8166
SELECT - 77 * - 12 AS col2, 55 + + COUNT ( * )
----
924
56

onlyif mysql # aggregate syntax: 
query II rowsort label-8167
SELECT DISTINCT ( COUNT( * ) ) AS col2, - 8
----
1
-8

skipif mysql # not compatible
query II rowsort label-8167
SELECT DISTINCT ( COUNT ( * ) ) AS col2, - 8
----
1
-8

query II rowsort
SELECT DISTINCT - 65 * 34 + + 12, 8 AS col1
----
-2198
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8169
SELECT 54 * + + 4 + CASE - CAST( - 40 AS SIGNED ) WHEN ( + + MAX( - 38 ) ) THEN 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8169
SELECT 54 * + + 4 + CASE - CAST ( - 40 AS INTEGER ) WHEN ( + + MAX ( - 38 ) ) THEN 29 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT ALL CAST( + 98 AS SIGNED ) - - 29
----
127

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL CAST ( + 98 AS INTEGER ) - - 29
----
127

query I rowsort
SELECT + COALESCE ( - 28, 42 ) AS col0
----
-28

query I rowsort
SELECT ALL 33 * + - 1
----
-33

query I rowsort
SELECT 84 + - - 78 AS col2
----
162

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

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

query I rowsort
SELECT 61 - + 88 + + 12 AS col0
----
-15

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

query I rowsort
SELECT ALL 3 * ( - - 39 ) * + - 8
----
-936

onlyif mysql # aggregate syntax: 
query III rowsort label-8178
SELECT ALL 27 col2, - 67 + - + 36 + + - 46 AS col2, 70 * - 72 + - - COUNT( * )
----
27
-149
-5039

skipif mysql # not compatible
query III rowsort label-8178
SELECT ALL 27 col2, - 67 + - + 36 + + - 46 AS col2, 70 * - 72 + - - COUNT ( * )
----
27
-149
-5039

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL MIN( ALL 45 ) col2
----
45

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL MIN ( ALL 45 ) col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT 96 DIV + 30 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8180
SELECT 96 / + 30 AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8181
SELECT 70 + + 8 + - 62 * - + CASE + + 90 WHEN + + ( - 28 ) - - - COALESCE ( - 91, + SUM( ALL + 65 ) * COUNT( * ) ) THEN + MIN( - - CAST( NULL AS DECIMAL ) ) + ( + 3 ) WHEN - 89 THEN NULL END * + 51 + + - 32 + 7 - - + MIN( ALL - 82 ) * + + 79 * - + 13 * - - ( 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT 70 + + 8 + - 62 * - + CASE + + 90 WHEN + + ( - 28 ) - - - COALESCE ( - 91, + SUM ( ALL + 65 ) * COUNT ( * ) ) THEN + MIN ( - - CAST ( NULL AS REAL ) ) + ( + 3 ) WHEN - 89 THEN NULL END * + 51 + + - 32 + 7 - - + MIN ( ALL - 82 ) * + + 79 * - + 13 * - - ( 63 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT 6 - + - SUM( ALL - - 84 )
----
90

skipif mysql # not compatible
query I rowsort label-8182
SELECT 6 - + - SUM ( ALL - - 84 )
----
90

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

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL COUNT ( * ) / 54
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8184
SELECT - 31 - - 26 + + 13 AS col1, + 79 + + COALESCE ( - NULLIF ( - 51, - CAST( - ( - - 14 ) AS SIGNED ) ), 85 ) + - 25
----
8
105

skipif mysql # not compatible
query II rowsort label-8184
SELECT - 31 - - 26 + + 13 AS col1, + 79 + + COALESCE ( - NULLIF ( - 51, - CAST ( - ( - - 14 ) AS INTEGER ) ), 85 ) + - 25
----
8
105

query I rowsort
SELECT NULLIF ( + - 86, + 45 * 35 ) AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8186
SELECT + COALESCE ( ( - + CAST( + 20 AS SIGNED ) ), + - NULLIF ( + 2, + + 80 + + COUNT( * ) * 74 DIV - + 47 ), - 63 + 12 DIV + - 38, - 68 ) AS col1, 9 AS col2
----
-20
9

skipif mysql # not compatible
query II rowsort label-8186
SELECT + COALESCE ( ( - + CAST ( + 20 AS INTEGER ) ), + - NULLIF ( + 2, + + 80 + + COUNT ( * ) * 74 / - + 47 ), - 63 + 12 / + - 38, - 68 ) AS col1, 9 AS col2
----
-20
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8187
SELECT ALL + 59 * + - 70 + - 29 - + COUNT( * ) DIV + - 83
----
-4159

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL + 59 * + - 70 + - 29 - + COUNT ( * ) / + - 83
----
-4159

query I rowsort
SELECT - 95 + - 51
----
-146

query I rowsort
SELECT DISTINCT 75 * + 99 * - 33 + 10 + + 64
----
-244951

query I rowsort
SELECT ALL + NULLIF ( + 57, + + 50 * - 7 - 13 ) * - + 77
----
-4389

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8192
SELECT ALL + 87 * 86 + + + COUNT( * ), 63 * - - ( 37 ) + 38 * 40 AS col1
----
7483
3851

skipif mysql # not compatible
query II rowsort label-8192
SELECT ALL + 87 * 86 + + + COUNT ( * ), 63 * - - ( 37 ) + 38 * 40 AS col1
----
7483
3851

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT - - 99 * COUNT( ALL + + ( + 2 ) ) * + + 55
----
5445

skipif mysql # not compatible
query I rowsort label-8194
SELECT - - 99 * COUNT ( ALL + + ( + 2 ) ) * + + 55
----
5445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8195
SELECT ALL + - NULLIF ( - COALESCE ( + + NULLIF ( 36, + 68 ), - - SUM( ALL 6 ) + + 92 - - + CASE + + 28 WHEN - 79 DIV 39 + 86 THEN COALESCE ( 82, 49 ) - + 44 + + 93 END * + + 13 - + + 9 + + 84 ), 23 ) * NULLIF ( 1, - 45 ) DIV + 70 * - 69
----
0

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL + - NULLIF ( - COALESCE ( + + NULLIF ( 36, + 68 ), - - SUM ( ALL 6 ) + + 92 - - + CASE + + 28 WHEN - 79 / 39 + 86 THEN COALESCE ( 82, 49 ) - + 44 + + 93 END * + + 13 - + + 9 + + 84 ), 23 ) * NULLIF ( 1, - 45 ) / + 70 * - 69
----
0

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

skipif mysql # not compatible
query I rowsort label-8196
SELECT - 0 + + - COUNT ( * ) + 37 AS col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8197
SELECT - COUNT( * ) AS col0, + 42 * + COUNT( - 74 ) + + 39 + - - 61 * - 55
----
-1
-3274

skipif mysql # not compatible
query II rowsort label-8197
SELECT - COUNT ( * ) AS col0, + 42 * + COUNT ( - 74 ) + + 39 + - - 61 * - 55
----
-1
-3274

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL + SUM( 28 ) * + 44 + CASE 43 WHEN + + 53 / ( COUNT( * ) ) THEN + 99 + 53 ELSE NULL END - ( + 20 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL + SUM ( 28 ) * + 44 + CASE 43 WHEN + + 53 / ( COUNT ( * ) ) THEN + 99 + 53 ELSE NULL END - ( + 20 ) AS col0
----
NULL

query I rowsort
SELECT ( + CASE + - 69 WHEN + 36 + - 64 THEN - - 81 END )
----
NULL

query I rowsort
SELECT DISTINCT + - COALESCE ( + 81, - 56 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL - 72 * CASE 50 WHEN + 49 + - + COUNT( * ) THEN NULL WHEN + 34 THEN - 6 + - + 22 * + 51 WHEN + 97 + - - COUNT( * ) THEN - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL - 72 * CASE 50 WHEN + 49 + - + COUNT ( * ) THEN NULL WHEN + 34 THEN - 6 + - + 22 * + 51 WHEN + 97 + - - COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT + 11, 44 AS col1
----
11
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8203
SELECT ALL - - SUM( 15 ) * + 38 + + 77 - + 42 + + - 7, - 19 AS col2
----
598
-19

skipif mysql # not compatible
query II rowsort label-8203
SELECT ALL - - SUM ( 15 ) * + 38 + + 77 - + 42 + + - 7, - 19 AS col2
----
598
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT DISTINCT + + MAX( DISTINCT - 7 ) * 53
----
-371

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT + + MAX ( DISTINCT - 7 ) * 53
----
-371

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL - COUNT( * ) * + 33 * COALESCE ( + 25, - 52 )
----
-825

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL - COUNT ( * ) * + 33 * COALESCE ( + 25, - 52 )
----
-825

query I rowsort
SELECT - 55 * 78
----
-4290

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8207
SELECT 1 * 28 + + 36 + + + 28 DIV COUNT( * ) + - - 1, - 88 AS col2
----
93
-88

skipif mysql # not compatible
query II rowsort label-8207
SELECT 1 * 28 + + 36 + + + 28 / COUNT ( * ) + - - 1, - 88 AS col2
----
93
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT + 29 * MIN( ALL 9 )
----
261

skipif mysql # not compatible
query I rowsort label-8208
SELECT + 29 * MIN ( ALL 9 )
----
261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8209
SELECT ALL 86 - - COALESCE ( MIN( - 38 ), + 91 * - - COUNT( * ) * + 76, + - 19 DIV - 28, - CASE + - AVG ( - - 32 ) WHEN + 70 * 17 + + - ( 52 ) + NULLIF ( - 76, - 4 ) * - 85 + 23 DIV 80 - COUNT( * ) THEN - 67 * - 84 + - - 11 WHEN ( - - ( 77 ) ) - 78 THEN NULL ELSE NULL END ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL 86 - - COALESCE ( MIN ( - 38 ), + 91 * - - COUNT ( * ) * + 76, + - 19 / - 28, - CASE + - AVG ( - - 32 ) WHEN + 70 * 17 + + - ( 52 ) + NULLIF ( - 76, - 4 ) * - 85 + 23 / 80 - COUNT ( * ) THEN - 67 * - 84 + - - 11 WHEN ( - - ( 77 ) ) - 78 THEN NULL ELSE NULL END ) AS col0
----
48

query I rowsort
SELECT + 9 + - - 29 * 9 + - 46 AS col0
----
224

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8212
SELECT + CAST( NULL AS DECIMAL ) * COALESCE ( - 12, + 64 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT + CAST ( NULL AS REAL ) * COALESCE ( - 12, + 64 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT + 55 + + COUNT( * ) + + + 69
----
125

skipif mysql # not compatible
query I rowsort label-8214
SELECT + 55 + + COUNT ( * ) + + + 69
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8215
SELECT DISTINCT MAX( DISTINCT 93 ) + - 5 - - 30 - + + 66 * 1 / - CAST( NULL AS SIGNED ) AS col2, + CAST( + + NULLIF ( - - SUM( - + 76 ), + 79 ) AS SIGNED ) AS col0
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-8215
SELECT DISTINCT MAX ( DISTINCT 93 ) + - 5 - - 30 - + + 66 * 1 / - CAST ( NULL AS INTEGER ) AS col2, + CAST ( + + NULLIF ( - - SUM ( - + 76 ), + 79 ) AS INTEGER ) AS col0
----
NULL
-76

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

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

query I rowsort
SELECT - 84 + + + 79 * - 59
----
-4745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8218
SELECT ALL CAST( + CAST( + CASE + 18 WHEN + 93 THEN + COUNT( * ) / 37 - + - 60 ELSE NULL END AS SIGNED ) AS SIGNED ) + - 27 AS col1, - 19 * + MIN( DISTINCT + + 49 ) AS col0
----
NULL
-931

skipif mysql # not compatible
query II rowsort label-8218
SELECT ALL CAST ( + CAST ( + CASE + 18 WHEN + 93 THEN + COUNT ( * ) / 37 - + - 60 ELSE NULL END AS INTEGER ) AS INTEGER ) + - 27 AS col1, - 19 * + MIN ( DISTINCT + + 49 ) AS col0
----
NULL
-931

query I rowsort
SELECT ALL 78 + + NULLIF ( 66, - - 92 ) AS col1
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8220
SELECT CAST( - 59 AS SIGNED ) AS col0, 38
----
-59
38

skipif mysql # not compatible
query II rowsort label-8220
SELECT CAST ( - 59 AS INTEGER ) AS col0, 38
----
-59
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8221
SELECT - 89 DIV - + COUNT( * ) - 12 + + - 16 DIV - ( 19 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-8221
SELECT - 89 / - + COUNT ( * ) - 12 + + - 16 / - ( 19 ) AS col1
----
77

query I rowsort
SELECT - 70 * - 18 col0
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT + MAX( ALL 49 ) * + ( + 76 ) + + 73 + + MIN( - 14 ) + - ( + + 3 ) * + 53
----
3624

skipif mysql # not compatible
query I rowsort label-8223
SELECT + MAX ( ALL 49 ) * + ( + 76 ) + + 73 + + MIN ( - 14 ) + - ( + + 3 ) * + 53
----
3624

onlyif mysql # DIV for integer division: 
query I rowsort label-8224
SELECT - 97 DIV - 82
----
1

skipif mysql # not compatible
query I rowsort label-8224
SELECT - 97 / - 82
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8226
SELECT ALL + CAST( + MIN( ALL 1 ) AS SIGNED ) * + 70
----
70

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL + CAST ( + MIN ( ALL 1 ) AS INTEGER ) * + 70
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8227
SELECT 12 * + COUNT( * ) + + + COALESCE ( + + ( - CASE - 92 WHEN + ( 80 ) THEN NULL ELSE + + SUM( 11 ) END ), + 33 * - + 81 * 47 + - + 44 + - 45 + - ( + 61 ) - + 83 ) - 17 * 71 + + - 32 * + - 95 * + - 92 + + 61 * 57 + - 13 DIV 94 * - 19 DIV COUNT( * ) * COUNT( ALL + - ( 33 ) ) DIV 82 DIV 50 * + 90 AS col0
----
-277409

skipif mysql # not compatible
query I rowsort label-8227
SELECT 12 * + COUNT ( * ) + + + COALESCE ( + + ( - CASE - 92 WHEN + ( 80 ) THEN NULL ELSE + + SUM ( 11 ) END ), + 33 * - + 81 * 47 + - + 44 + - 45 + - ( + 61 ) - + 83 ) - 17 * 71 + + - 32 * + - 95 * + - 92 + + 61 * 57 + - 13 / 94 * - 19 / COUNT ( * ) * COUNT ( ALL + - ( 33 ) ) / 82 / 50 * + 90 AS col0
----
-277409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8228
SELECT ALL + 10 * - CASE + COUNT( * ) WHEN 90 THEN NULL ELSE - 79 / + 9 * + + 63 - + 14 END - - CASE - 70 WHEN - + CASE 69 WHEN + 66 THEN - NULLIF ( + 26, + + 43 * + MAX( 70 ) ) WHEN 57 THEN NULL WHEN - + 53 * 75 + - 61 + + 72 + - ( - 23 ) THEN NULL END * + 12 THEN 51 * 44 + + 3 * COUNT( * ) + - NULLIF ( 50, + 93 / - 87 + + COALESCE ( - - 40, 92 + - 62 - + CAST( - + 3 AS SIGNED ) ) + - NULLIF ( + - 3, 46 ) ) * - 29 WHEN 98 THEN NULL WHEN ( 14 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL + 10 * - CASE + COUNT ( * ) WHEN 90 THEN NULL ELSE - 79 / + 9 * + + 63 - + 14 END - - CASE - 70 WHEN - + CASE 69 WHEN + 66 THEN - NULLIF ( + 26, + + 43 * + MAX ( 70 ) ) WHEN 57 THEN NULL WHEN - + 53 * 75 + - 61 + + 72 + - ( - 23 ) THEN NULL END * + 12 THEN 51 * 44 + + 3 * COUNT ( * ) + - NULLIF ( 50, + 93 / - 87 + + COALESCE ( - - 40, 92 + - 62 - + CAST ( - + 3 AS INTEGER ) ) + - NULLIF ( + - 3, 46 ) ) * - 29 WHEN 98 THEN NULL WHEN ( 14 ) THEN NULL END
----
NULL

query I rowsort
SELECT + + 70 col2
----
70

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8231
SELECT + MIN( + 2 ) AS col0, 40 * + 96
----
2
3840

skipif mysql # not compatible
query II rowsort label-8231
SELECT + MIN ( + 2 ) AS col0, 40 * + 96
----
2
3840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT - - 30 + + CAST( - COUNT( * ) AS SIGNED ) + CAST( NULL AS SIGNED ) + - 89 * + - 21 + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8232
SELECT - - 30 + + CAST ( - COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) + - 89 * + - 21 + 92 AS col1
----
NULL

query I rowsort
SELECT COALESCE ( 37, ( + - 97 ) )
----
37

query I rowsort
SELECT - 68 + - + 88 * - - 46 * + 26
----
-105316

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT - COUNT( ALL 25 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8236
SELECT - COUNT ( ALL 25 ) AS col1
----
-1

query I rowsort
SELECT ALL 32 * - 66 col2
----
-2112

onlyif mysql # DIV for integer division: 
query I rowsort label-8238
SELECT - 38 DIV - 33
----
1

skipif mysql # not compatible
query I rowsort label-8238
SELECT - 38 / - 33
----
1

query I rowsort
SELECT ALL 28 * + - ( + + 34 ) + 86 AS col2
----
-866

query I rowsort
SELECT + 56 * 76
----
4256

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT 80 + SUM( ALL - 52 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8241
SELECT 80 + SUM ( ALL - 52 ) AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8242
SELECT 89 DIV 76 DIV - + 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8242
SELECT 89 / 76 / - + 26 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8243
SELECT 25 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-8243
SELECT 25 / + 79
----
0

query I rowsort
SELECT ALL 14 + 6 * + 88
----
542

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT ALL + SUM( DISTINCT 17 ) * - 24 + + 76 AS col2
----
-332

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL + SUM ( DISTINCT 17 ) * - 24 + + 76 AS col2
----
-332

query I rowsort
SELECT DISTINCT - 98 + + 37 + - 93 * - + 75 AS col2
----
6914

query I rowsort
SELECT 15 + 86
----
101

query I rowsort
SELECT ALL - 71 - + ( - - 64 ) + + - 99 * + + 93 * - 48 * 90
----
39774105

query I rowsort
SELECT + 66 * + 74 + 1 col1
----
4885

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL + MIN( ALL 83 ) - + 24 * - 20
----
563

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL + MIN ( ALL 83 ) - + 24 * - 20
----
563

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8252
SELECT DISTINCT - 2 AS col0, 60 + - COUNT( * ) * + + 62 + - 19 - + 17 - + NULLIF ( + NULLIF ( - + 55, - + 56 * 2 + - - ( CAST( - + 18 AS SIGNED ) ) ), + 94 * + 95 ) AS col2
----
-2
17

skipif mysql # not compatible
query II rowsort label-8252
SELECT DISTINCT - 2 AS col0, 60 + - COUNT ( * ) * + + 62 + - 19 - + 17 - + NULLIF ( + NULLIF ( - + 55, - + 56 * 2 + - - ( CAST ( - + 18 AS INTEGER ) ) ), + 94 * + 95 ) AS col2
----
-2
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT MAX( + - 68 ) + + 3 * 61 + 32 + - + 23 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-8253
SELECT MAX ( + - 68 ) + + 3 * 61 + 32 + - + 23 AS col1
----
124

query II rowsort
SELECT ALL - 49 AS col0, + 47
----
-49
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8255
SELECT ALL - + CASE CASE - SUM( + 1 ) WHEN 56 / 26 THEN + 2 / - 10 * CASE + CAST( NULL AS SIGNED ) WHEN + 20 THEN NULL WHEN - 46 THEN + 73 - - 44 ELSE + - 74 END + - 68 WHEN + 14 THEN NULL ELSE NULL END WHEN + MAX( 68 ) THEN NULL WHEN + - COUNT( * ) THEN - 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL - + CASE CASE - SUM ( + 1 ) WHEN 56 / 26 THEN + 2 / - 10 * CASE + CAST ( NULL AS INTEGER ) WHEN + 20 THEN NULL WHEN - 46 THEN + 73 - - 44 ELSE + - 74 END + - 68 WHEN + 14 THEN NULL ELSE NULL END WHEN + MAX ( 68 ) THEN NULL WHEN + - COUNT ( * ) THEN - 62 END
----
NULL

query I rowsort
SELECT - 74 * + 9 + 83 * + + 57 col1
----
4065

query I rowsort
SELECT ALL 18 - - - ( + + 12 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT DISTINCT - 78 * - MAX( DISTINCT - 70 )
----
-5460

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT - 78 * - MAX ( DISTINCT - 70 )
----
-5460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8259
SELECT COUNT( - 88 ) * + 18 * - CAST( - 99 AS SIGNED ) + - 66
----
1716

skipif mysql # not compatible
query I rowsort label-8259
SELECT COUNT ( - 88 ) * + 18 * - CAST ( - 99 AS INTEGER ) + - 66
----
1716

onlyif mysql # aggregate syntax: 
query II rowsort label-8260
SELECT COUNT( * ) + - - 10 + 23, - 41 * 96 * 94 AS col1
----
34
-369984

skipif mysql # not compatible
query II rowsort label-8260
SELECT COUNT ( * ) + - - 10 + 23, - 41 * 96 * 94 AS col1
----
34
-369984

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT + ( + CASE - SUM( DISTINCT - 53 ) WHEN 49 THEN NULL WHEN - 43 * - 77 + 5 THEN - + 64 ELSE NULL END ) / + COUNT( + 73 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8262
SELECT + ( + CASE - SUM ( DISTINCT - 53 ) WHEN 49 THEN NULL WHEN - 43 * - 77 + 5 THEN - + 64 ELSE NULL END ) / + COUNT ( + 73 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8263
SELECT ALL - + 81, ( + - MIN( - + 7 ) ) AS col2
----
-81
7

skipif mysql # not compatible
query II rowsort label-8263
SELECT ALL - + 81, ( + - MIN ( - + 7 ) ) AS col2
----
-81
7

onlyif mysql # aggregate syntax: 
query III rowsort label-8264
SELECT + - COUNT( * ) AS col2, + CASE - 1 WHEN ( - - 72 ) THEN - ( - 29 ) + - 21 END, COUNT( * ) AS col1
----
-1
NULL
1

skipif mysql # not compatible
query III rowsort label-8264
SELECT + - COUNT ( * ) AS col2, + CASE - 1 WHEN ( - - 72 ) THEN - ( - 29 ) + - 21 END, COUNT ( * ) AS col1
----
-1
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8265
SELECT + COUNT( * ) * 48 + + 31 + + 62 AS col2, 68 / - NULLIF ( + CAST( NULL AS DECIMAL ), + - COALESCE ( ( - + 74 ), CAST( - 87 AS SIGNED ) * COUNT( DISTINCT + 77 ) + 42 + + 80 + - 75 / + COUNT( * ) * - + 92 * + 14 + - NULLIF ( - SUM( - 18 ), 85 ) - 27 * + 85 * + + 10, ( 75 ) + + 98 * - 40 * - + CAST( NULL AS SIGNED ) ) * + 64 + - 80 ) AS col2
----
141
NULL

skipif mysql # not compatible
query II rowsort label-8265
SELECT + COUNT ( * ) * 48 + + 31 + + 62 AS col2, 68 / - NULLIF ( + CAST ( NULL AS REAL ), + - COALESCE ( ( - + 74 ), CAST ( - 87 AS INTEGER ) * COUNT ( DISTINCT + 77 ) + 42 + + 80 + - 75 / + COUNT ( * ) * - + 92 * + 14 + - NULLIF ( - SUM ( - 18 ), 85 ) - 27 * + 85 * + + 10, ( 75 ) + + 98 * - 40 * - + CAST ( NULL AS INTEGER ) ) * + 64 + - 80 ) AS col2
----
141
NULL

query I rowsort
SELECT 90 * + 31
----
2790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8267
SELECT + 65 AS col1, CAST( - MIN( - - 89 ) AS SIGNED ) AS col2
----
65
-89

skipif mysql # not compatible
query II rowsort label-8267
SELECT + 65 AS col1, CAST ( - MIN ( - - 89 ) AS INTEGER ) AS col2
----
65
-89

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

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

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

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

query I rowsort
SELECT 25 + + 79
----
104

query I rowsort
SELECT 96 + + 31 - + 53 + + - 44 AS col1
----
30

query I rowsort
SELECT ALL - ( + 59 ) + + 5 * + 2 * + 39
----
331

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT 5 + + 6 * + + COUNT( * ) * 69
----
419

skipif mysql # not compatible
query I rowsort label-8274
SELECT 5 + + 6 * + + COUNT ( * ) * 69
----
419

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT ALL 2 + COUNT( DISTINCT - 49 ) + + + 38
----
41

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL 2 + COUNT ( DISTINCT - 49 ) + + + 38
----
41

onlyif mysql # DIV for integer division: 
query II rowsort label-8276
SELECT ALL 87 AS col0, 73 DIV + 11
----
87
6

skipif mysql # not compatible
query II rowsort label-8276
SELECT ALL 87 AS col0, 73 / + 11
----
87
6

query I rowsort
SELECT 15 + - - 28 * - + 69
----
-1917

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

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL + CAST ( NULL AS INTEGER ) + CAST ( - 47 AS INTEGER ) + + - 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ALL MIN( DISTINCT - - ( + 93 ) ) - 10
----
83

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL MIN ( DISTINCT - - ( + 93 ) ) - 10
----
83

query II rowsort
SELECT 31 * - + 71 AS col1, ( ( 85 ) ) + - 31 AS col1
----
-2201
54

query I rowsort
SELECT 43 * 67 col2
----
2881

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

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

query I rowsort
SELECT ALL + + 5 - 5 + + - 81
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8284
SELECT 38 * + COUNT( DISTINCT - 83 ) - 87 + - 14 * - 40 * + - COUNT( * ) + 87 + 85 DIV + 41
----
-520

skipif mysql # not compatible
query I rowsort label-8284
SELECT 38 * + COUNT ( DISTINCT - 83 ) - 87 + - 14 * - 40 * + - COUNT ( * ) + 87 + 85 / + 41
----
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT CASE 11 WHEN + COUNT( * ) * + 91 * 66 THEN - 40 + + 63 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8285
SELECT CASE 11 WHEN + COUNT ( * ) * + 91 * 66 THEN - 40 + + 63 END AS col1
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT DISTINCT - + NULLIF ( - COUNT( * ), 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT - + NULLIF ( - COUNT ( * ), 99 ) AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-8290
SELECT - MAX ( ALL - ( + - 60 ) ) * COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8291
SELECT + 42 DIV COUNT( * ) - + 51 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8291
SELECT + 42 / COUNT ( * ) - + 51 AS col0
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8292
SELECT - ( - CASE CAST( NULL AS DECIMAL ) WHEN + - 60 THEN NULL WHEN - 87 THEN 45 * 55 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT - ( - CASE CAST ( NULL AS REAL ) WHEN + - 60 THEN NULL WHEN - 87 THEN 45 * 55 END )
----
NULL

query II rowsort
SELECT + 12 + - 62, 95 col2
----
-50
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT DISTINCT + 66 * + + CAST( - 77 AS SIGNED )
----
-5082

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT + 66 * + + CAST ( - 77 AS INTEGER )
----
-5082

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

skipif mysql # not compatible
query I rowsort label-8295
SELECT + CAST ( 94 AS INTEGER ) * + 59 AS col1
----
5546

query II rowsort
SELECT + 3 AS col1, 52 * - + 12 * + - 7
----
3
4368

query I rowsort
SELECT ALL 74 * 20
----
1480

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT ALL - - COALESCE ( + - 15, + CASE - 0 WHEN + 46 / + 55 + - ( - COUNT( * ) ) * - ( - - 96 ) THEN + 25 WHEN - 71 THEN NULL END + COUNT( * ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL - - COALESCE ( + - 15, + CASE - 0 WHEN + 46 / + 55 + - ( - COUNT ( * ) ) * - ( - - 96 ) THEN + 25 WHEN - 71 THEN NULL END + COUNT ( * ) ) AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8299
SELECT + + ( + - 97 ) DIV + 49 - - 73 + + + 58
----
130

skipif mysql # not compatible
query I rowsort label-8299
SELECT + + ( + - 97 ) / + 49 - - 73 + + + 58
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8300
SELECT SUM( DISTINCT + + 89 ) DIV ( + 10 ) * + + ( - + 8 )
----
-64

skipif mysql # not compatible
query I rowsort label-8300
SELECT SUM ( DISTINCT + + 89 ) / ( + 10 ) * + + ( - + 8 )
----
-64

query I rowsort
SELECT ALL 76 * 54 + - - 34
----
4138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8302
SELECT + 15 * CASE - + MAX( ALL + + 84 ) WHEN + CASE - 56 WHEN 13 * - 73 THEN - ( COUNT( * ) ) DIV - 93 * + 26 * - + 54 ELSE + + 37 END * - - 42 * 68 * 28 THEN NULL WHEN 74 THEN - + NULLIF ( - SUM( - 66 ), + - 85 + - NULLIF ( + 68, + 18 + - CAST( NULL AS SIGNED ) + - - 60 ) * 36 ) ELSE - + 38 END DIV + 27 + - COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8302
SELECT + 15 * CASE - + MAX ( ALL + + 84 ) WHEN + CASE - 56 WHEN 13 * - 73 THEN - ( COUNT ( * ) ) / - 93 * + 26 * - + 54 ELSE + + 37 END * - - 42 * 68 * 28 THEN NULL WHEN 74 THEN - + NULLIF ( - SUM ( - 66 ), + - 85 + - NULLIF ( + 68, + 18 + - CAST ( NULL AS INTEGER ) + - - 60 ) * 36 ) ELSE - + 38 END / + 27 + - COUNT ( * ) AS col1
----
-22

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

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

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

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

query I rowsort
SELECT 61 * + + 44 * + COALESCE ( + - 10, 20, - ( + 39 ) + - - 84 ) - - 86 / - + 81 * + CASE - 0 WHEN 25 THEN - 79 WHEN + + 35 THEN NULL ELSE NULL END + + - 12 + + 65 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8306
SELECT + CAST( + + 26 AS SIGNED ) * - 94
----
-2444

skipif mysql # not compatible
query I rowsort label-8306
SELECT + CAST ( + + 26 AS INTEGER ) * - 94
----
-2444

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8308
SELECT - NULLIF ( + 85, + 98 * + COUNT( * ) * + MIN( ALL + 75 ) + - CAST( + 44 AS SIGNED ) )
----
-85

skipif mysql # not compatible
query I rowsort label-8308
SELECT - NULLIF ( + 85, + 98 * + COUNT ( * ) * + MIN ( ALL + 75 ) + - CAST ( + 44 AS INTEGER ) )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8309
SELECT DISTINCT - CAST( 27 AS SIGNED ) - + - 33
----
6

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT - CAST ( 27 AS INTEGER ) - + - 33
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8310
SELECT ALL COUNT( + 55 ), - 64 + - 78 AS col2
----
1
-142

skipif mysql # not compatible
query II rowsort label-8310
SELECT ALL COUNT ( + 55 ), - 64 + - 78 AS col2
----
1
-142

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT - 43 * MIN( ALL + - 75 ) AS col1
----
3225

skipif mysql # not compatible
query I rowsort label-8312
SELECT - 43 * MIN ( ALL + - 75 ) AS col1
----
3225

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT + 13 + - ( + 41 ) + + - NULLIF ( + COUNT( ALL + 46 ), - 45 + - - 37 ) + + - 35 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-8314
SELECT + 13 + - ( + 41 ) + + - NULLIF ( + COUNT ( ALL + 46 ), - 45 + - - 37 ) + + - 35 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-8315
SELECT ALL COUNT( DISTINCT 38 ), + 95 * + 8 * - 22 + - + 8 * 62 * 57 col1
----
1
-44992

skipif mysql # not compatible
query II rowsort label-8315
SELECT ALL COUNT ( DISTINCT 38 ), + 95 * + 8 * - 22 + - + 8 * 62 * 57 col1
----
1
-44992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8316
SELECT + 89 * + CAST( + 90 AS SIGNED ) AS col1
----
8010

skipif mysql # not compatible
query I rowsort label-8316
SELECT + 89 * + CAST ( + 90 AS INTEGER ) AS col1
----
8010

query I rowsort
SELECT - - 0 + - - 48
----
48

query II rowsort
SELECT ALL + 89 * + 80 AS col0, 9 AS col0
----
7120
9

onlyif mysql # DIV for integer division: 
query II rowsort label-8319
SELECT - - 83 DIV - - 35, - 27 AS col0
----
2
-27

skipif mysql # not compatible
query II rowsort label-8319
SELECT - - 83 / - - 35, - 27 AS col0
----
2
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-8320
SELECT ALL ( COUNT( * ) ), 71 - - 2 + COUNT( * ) - 54 AS col2
----
1
20

skipif mysql # not compatible
query II rowsort label-8320
SELECT ALL ( COUNT ( * ) ), 71 - - 2 + COUNT ( * ) - 54 AS col2
----
1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT - - 50 * - COUNT( * ) + + 9 + - COUNT( ALL - - 16 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8321
SELECT - - 50 * - COUNT ( * ) + + 9 + - COUNT ( ALL - - 16 ) AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8322
SELECT - - 39 + 38 + - 24 + - COUNT( * ) DIV + 19
----
53

skipif mysql # not compatible
query I rowsort label-8322
SELECT - - 39 + 38 + - 24 + - COUNT ( * ) / + 19
----
53

query I rowsort
SELECT - 53 - ( 67 ) col1
----
-120

query I rowsort
SELECT ALL + 28 * + + 85 AS col0
----
2380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8325
SELECT - MAX( ALL - 35 ) DIV 90 * COALESCE ( 30, + 83, + 73 + - 35 + - 19 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8325
SELECT - MAX ( ALL - 35 ) / 90 * COALESCE ( 30, + 83, + 73 + - 35 + - 19 ) AS col0
----
0

query I rowsort
SELECT - 66 + 50 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT DISTINCT + MAX( ( - ( - 70 ) ) ) * 50 AS col1
----
3500

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT + MAX ( ( - ( - 70 ) ) ) * 50 AS col1
----
3500

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8328
SELECT - 10 DIV - - 69 * - COALESCE ( - + 35, - 3 * - 69 + - - COALESCE ( + + 82, NULLIF ( - 68, 41 + - + 23 ), 17 * ( - 84 ) - - 26 ) * - 7 ) AS col2, MAX( - 63 ) AS col2
----
0
-63

skipif mysql # not compatible
query II rowsort label-8328
SELECT - 10 / - - 69 * - COALESCE ( - + 35, - 3 * - 69 + - - COALESCE ( + + 82, NULLIF ( - 68, 41 + - + 23 ), 17 * ( - 84 ) - - 26 ) * - 7 ) AS col2, MAX ( - 63 ) AS col2
----
0
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8329
SELECT + + 4 * 20 * - - 78 + + - CASE + + 44 WHEN + 75 * - 56 THEN - - COUNT( * ) ELSE NULL END - - - 6 * + 69 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT + + 4 * 20 * - - 78 + + - CASE + + 44 WHEN + 75 * - 56 THEN - - COUNT ( * ) ELSE NULL END - - - 6 * + 69 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8330
SELECT + 2 DIV - - 38 * + 83 + 92 col1
----
92

skipif mysql # not compatible
query I rowsort label-8330
SELECT + 2 / - - 38 * + 83 + 92 col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8331
SELECT ALL + 39 DIV + 89 + - 43
----
-43

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL + 39 / + 89 + - 43
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-8332
SELECT DISTINCT + 4 DIV + - 78 + - 74 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT + 4 / + - 78 + - 74 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT - - 82 * - - COUNT( * ) * + - MAX( DISTINCT - ( - 73 ) ) * + 76 + + 99
----
-454837

skipif mysql # not compatible
query I rowsort label-8333
SELECT - - 82 * - - COUNT ( * ) * + - MAX ( DISTINCT - ( - 73 ) ) * + 76 + + 99
----
-454837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8334
SELECT + 27 * - COUNT( * ) + + 45 + + NULLIF ( - 4, + CAST( - 68 AS SIGNED ) + - CAST( + 63 AS SIGNED ) * - 70 ) + - + 28 * + - 73 AS col2
----
2058

skipif mysql # not compatible
query I rowsort label-8334
SELECT + 27 * - COUNT ( * ) + + 45 + + NULLIF ( - 4, + CAST ( - 68 AS INTEGER ) + - CAST ( + 63 AS INTEGER ) * - 70 ) + - + 28 * + - 73 AS col2
----
2058

query I rowsort
SELECT ALL 31 * + 6 + + 44 + 26
----
256

query I rowsort
SELECT + NULLIF ( - 22, + 3 )
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-8337
SELECT + COALESCE ( - 44, - + 79, 98 * 14 + + 93 ) DIV + 3 + - + 41 AS col2, 41 * 64 + 92 + + + 20 * + + 94 - + + 48 AS col0
----
-55
4548

skipif mysql # not compatible
query II rowsort label-8337
SELECT + COALESCE ( - 44, - + 79, 98 * 14 + + 93 ) / + 3 + - + 41 AS col2, 41 * 64 + 92 + + + 20 * + + 94 - + + 48 AS col0
----
-55
4548

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

query I rowsort
SELECT - 27 + + 59
----
32

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8341
SELECT 84 * + - 65 + + CASE - ( + CAST( NULL AS SIGNED ) ) WHEN + 31 * - + 17 * 45 THEN + - CAST( NULL AS SIGNED ) WHEN 68 + - NULLIF ( - - 82, - 8 ) + 29 * + 0 * + 57 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT 84 * + - 65 + + CASE - ( + CAST ( NULL AS INTEGER ) ) WHEN + 31 * - + 17 * 45 THEN + - CAST ( NULL AS INTEGER ) WHEN 68 + - NULLIF ( - - 82, - 8 ) + 29 * + 0 * + 57 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 94 * + - 17 col0
----
-1598

query I rowsort
SELECT + 73 + - 18
----
55

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8345
SELECT + 49 + - + 4 * + 84 + - 65 - + 40 DIV 56 col2
----
-352

skipif mysql # not compatible
query I rowsort label-8345
SELECT + 49 + - + 4 * + 84 + - 65 - + 40 / 56 col2
----
-352

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT + COUNT( * ) * + 23 * + - COALESCE ( + + 73, 29 * + - 13 )
----
-1679

skipif mysql # not compatible
query I rowsort label-8347
SELECT + COUNT ( * ) * + 23 * + - COALESCE ( + + 73, 29 * + - 13 )
----
-1679

query I rowsort
SELECT + 90 * - ( + - 77 ) * + 45
----
311850

onlyif mysql # aggregate syntax: 
query II rowsort label-8349
SELECT + ( 88 ) + + + 17 AS col0, COUNT( * )
----
105
1

skipif mysql # not compatible
query II rowsort label-8349
SELECT + ( 88 ) + + + 17 AS col0, COUNT ( * )
----
105
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT + COUNT( * ) + + - 43 * + - ( 62 ) AS col0
----
2667

skipif mysql # not compatible
query I rowsort label-8350
SELECT + COUNT ( * ) + + - 43 * + - ( 62 ) AS col0
----
2667

query II rowsort
SELECT DISTINCT 99 AS col2, 29 AS col0
----
99
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8352
SELECT + 83 + + CAST( + - 73 AS SIGNED ) + + 86 * - 7 * 4 + + + 11
----
-2387

skipif mysql # not compatible
query I rowsort label-8352
SELECT + 83 + + CAST ( + - 73 AS INTEGER ) + + 86 * - 7 * 4 + + + 11
----
-2387

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

query I rowsort
SELECT ALL + - 76 * + NULLIF ( - - 61, - - 93 + + 21 )
----
-4636

query II rowsort
SELECT + - 54 * - + ( + 28 ) - + + 76, + 55 - - - 14 - + 90 AS col0
----
1436
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL 84 * 27 * - 92 + - CASE + 7 WHEN ( + 46 ) * - 71 / + 69 - + 34 * + SUM( DISTINCT 54 ) THEN - COUNT( ALL - 98 ) * + + 25 WHEN 57 THEN + 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL 84 * 27 * - 92 + - CASE + 7 WHEN ( + 46 ) * - 71 / + 69 - + 34 * + SUM ( DISTINCT 54 ) THEN - COUNT ( ALL - 98 ) * + + 25 WHEN 57 THEN + 41 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8357
SELECT + 41 AS col1, + MAX( 29 ) AS col2
----
41
29

skipif mysql # not compatible
query II rowsort label-8357
SELECT + 41 AS col1, + MAX ( 29 ) AS col2
----
41
29

query I rowsort
SELECT + 81 * + - NULLIF ( - 84, + 84 )
----
6804

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8359
SELECT DISTINCT + + 34 + - + CAST( + - 89 AS SIGNED ) col1, - 51 AS col2
----
123
-51

skipif mysql # not compatible
query II rowsort label-8359
SELECT DISTINCT + + 34 + - + CAST ( + - 89 AS INTEGER ) col1, - 51 AS col2
----
123
-51

query I rowsort
SELECT ALL - 8 + + 82 * 87 AS col1
----
7126

query I rowsort
SELECT - + 27 * - 61 AS col1
----
1647

onlyif mysql # DIV for integer division: 
query I rowsort label-8362
SELECT ALL + - 58 DIV + 23 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL + - 58 / + 23 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT DISTINCT + - ( 73 ) * + + MAX( - + 53 ) col2
----
3869

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT + - ( 73 ) * + + MAX ( - + 53 ) col2
----
3869

query I rowsort
SELECT ALL + + 92 + + 32 AS col1
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8365
SELECT + CASE 61 WHEN 71 / + NULLIF ( + - COUNT( * ), - 0 ) * + 79 * 26 * + 23 THEN 88 * + + MIN( ALL + ( 84 ) ) + - + COUNT( * ) * 40 + - + ( + - 71 ) * - 42 + - ( - - 42 ) END * - + MAX( DISTINCT - 68 ) * - 86 * - COUNT( * ) - + + 89 * CAST( - - ( + 28 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8365
SELECT + CASE 61 WHEN 71 / + NULLIF ( + - COUNT ( * ), - 0 ) * + 79 * 26 * + 23 THEN 88 * + + MIN ( ALL + ( 84 ) ) + - + COUNT ( * ) * 40 + - + ( + - 71 ) * - 42 + - ( - - 42 ) END * - + MAX ( DISTINCT - 68 ) * - 86 * - COUNT ( * ) - + + 89 * CAST ( - - ( + 28 ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 85 * + - 31
----
-2635

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8367
SELECT CAST( + 75 AS SIGNED ) DIV 56 + - 67 + + - 40
----
-106

skipif mysql # not compatible
query I rowsort label-8367
SELECT CAST ( + 75 AS INTEGER ) / 56 + - 67 + + - 40
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8368
SELECT 19 DIV + 60 * MIN( ( - + ( - - ( + 99 ) ) ) ) DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8368
SELECT 19 / + 60 * MIN ( ( - + ( - - ( + 99 ) ) ) ) / 82
----
0

query I rowsort
SELECT 89 * 13 AS col0
----
1157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8370
SELECT ALL - COALESCE ( + - 18, - 57, - - 38 * + 63 + 4 + + + 76 - 58 * + COUNT( * ) ) DIV + NULLIF ( 4, - 44 ) + - 44 - 57
----
-97

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL - COALESCE ( + - 18, - 57, - - 38 * + 63 + 4 + + + 76 - 58 * + COUNT ( * ) ) / + NULLIF ( 4, - 44 ) + - 44 - 57
----
-97

query I rowsort
SELECT 18 - + + 72 col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT NULLIF ( CAST( - 98 AS SIGNED ), 35 * + 75 + - 27 ) * + 62 + 43 + 62 * + ( 13 )
----
-5227

skipif mysql # not compatible
query I rowsort label-8372
SELECT NULLIF ( CAST ( - 98 AS INTEGER ), 35 * + 75 + - 27 ) * + 62 + 43 + 62 * + ( 13 )
----
-5227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8373
SELECT ALL - CAST( - + 18 AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL - CAST ( - + 18 AS INTEGER ) AS col0
----
18

query II rowsort
SELECT 14 * 90, 65 * + + 24 AS col2
----
1260
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT COUNT( * ) * + 34 col1
----
34

skipif mysql # not compatible
query I rowsort label-8375
SELECT COUNT ( * ) * + 34 col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT 36 * + - COUNT( * ) + - + 88
----
-124

skipif mysql # not compatible
query I rowsort label-8376
SELECT 36 * + - COUNT ( * ) + - + 88
----
-124

query I rowsort
SELECT DISTINCT - 45 * - + 88 AS col1
----
3960

query I rowsort
SELECT - 99 * - + 85
----
8415

query I rowsort
SELECT - 38 + + 4 - - 69 AS col2
----
35

query I rowsort
SELECT 61 + - - 59 + - - 12 * + + 69
----
948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8381
SELECT - NULLIF ( - + CAST( - + COUNT( - - 36 ) AS SIGNED ), + - 81 ) AS col2, + 34 * + 44 * 54 AS col0
----
-1
80784

skipif mysql # not compatible
query II rowsort label-8381
SELECT - NULLIF ( - + CAST ( - + COUNT ( - - 36 ) AS INTEGER ), + - 81 ) AS col2, + 34 * + 44 * 54 AS col0
----
-1
80784

query II rowsort
SELECT + 65 + + 68, - 30 AS col1
----
133
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT - NULLIF ( + 3, - COUNT( ALL 49 ) * + - 60 )
----
-3

skipif mysql # not compatible
query I rowsort label-8383
SELECT - NULLIF ( + 3, - COUNT ( ALL 49 ) * + - 60 )
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8384
SELECT + NULLIF ( - + 62, + 56 / + - 64 * - + 22 ) * CAST( NULL AS DECIMAL ) / - 95, + 63 AS col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-8384
SELECT + NULLIF ( - + 62, + 56 / + - 64 * - + 22 ) * CAST ( NULL AS REAL ) / - 95, + 63 AS col2
----
NULL
63

onlyif mysql # aggregate syntax: 
query II rowsort label-8385
SELECT ALL + 37 + - 52 AS col1, COUNT( * ) AS col2
----
-15
1

skipif mysql # not compatible
query II rowsort label-8385
SELECT ALL + 37 + - 52 AS col1, COUNT ( * ) AS col2
----
-15
1

query I rowsort
SELECT + ( + 90 ) + 18 AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT 30 + 88 + + - MIN( DISTINCT - - 74 )
----
44

skipif mysql # not compatible
query I rowsort label-8387
SELECT 30 + 88 + + - MIN ( DISTINCT - - 74 )
----
44

query I rowsort
SELECT ALL 41 * - 79
----
-3239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8389
SELECT ALL + 87 * - 64 + COUNT( * ) - + ( 38 ) + + CAST( + - CASE 36 WHEN - 38 THEN - 7 * + CAST( - + CAST( - 26 AS SIGNED ) AS SIGNED ) * + 20 + + - COUNT( * ) + + - 50 + - 55 / + CASE + - 26 WHEN + 56 THEN 32 * 1 WHEN 48 THEN NULL ELSE NULL END END AS SIGNED ) / 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL + 87 * - 64 + COUNT ( * ) - + ( 38 ) + + CAST ( + - CASE 36 WHEN - 38 THEN - 7 * + CAST ( - + CAST ( - 26 AS INTEGER ) AS INTEGER ) * + 20 + + - COUNT ( * ) + + - 50 + - 55 / + CASE + - 26 WHEN + 56 THEN 32 * 1 WHEN 48 THEN NULL ELSE NULL END END AS INTEGER ) / 92 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8390
SELECT 23 + + 13 AS col0, CAST( NULL AS SIGNED ) - 44
----
36
NULL

skipif mysql # not compatible
query II rowsort label-8390
SELECT 23 + + 13 AS col0, CAST ( NULL AS INTEGER ) - 44
----
36
NULL

query I rowsort
SELECT 10 + - 42 * + - 54
----
2278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8392
SELECT - CASE - CAST( + 86 AS SIGNED ) WHEN - - 99 THEN + CASE + 77 WHEN - + 7 * + + 54 + - COUNT( * ) THEN 90 * 18 + - 64 - 88 END ELSE ( + 61 ) * COUNT( * ) END
----
-61

skipif mysql # not compatible
query I rowsort label-8392
SELECT - CASE - CAST ( + 86 AS INTEGER ) WHEN - - 99 THEN + CASE + 77 WHEN - + 7 * + + 54 + - COUNT ( * ) THEN 90 * 18 + - 64 - 88 END ELSE ( + 61 ) * COUNT ( * ) END
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT - CASE 60 WHEN + CASE + 94 WHEN COUNT( * ) THEN - 75 ELSE NULL END * 60 * 64 + 57 + 81 THEN NULL WHEN - 79 THEN 70 + 76 * - - 87 WHEN + CASE + - 41 WHEN 52 THEN NULL ELSE - 13 END THEN - - 57 * + ( - + 15 ) END + - 55 * 58 * 90 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT - CASE 60 WHEN + CASE + 94 WHEN COUNT ( * ) THEN - 75 ELSE NULL END * 60 * 64 + 57 + 81 THEN NULL WHEN - 79 THEN 70 + 76 * - - 87 WHEN + CASE + - 41 WHEN 52 THEN NULL ELSE - 13 END THEN - - 57 * + ( - + 15 ) END + - 55 * 58 * 90 * - COUNT ( * )
----
NULL

query I rowsort
SELECT - COALESCE ( - 79, - - 17 ) AS col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8395
SELECT 2 DIV - 56 * - + 91 + + + 88
----
88

skipif mysql # not compatible
query I rowsort label-8395
SELECT 2 / - 56 * - + 91 + + + 88
----
88

query I rowsort
SELECT ALL 86 * - - 39 * + + COALESCE ( - 75, 47 - + 38 + - - 35 ) * + - 3 AS col1
----
754650

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL - SUM( ALL - 79 ) col2
----
79

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL - SUM ( ALL - 79 ) col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT SUM( + 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8398
SELECT SUM ( + 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8399
SELECT 3 * - 67 + 53, 57 * - COUNT( * ) AS col2
----
-148
-57

skipif mysql # not compatible
query II rowsort label-8399
SELECT 3 * - 67 + 53, 57 * - COUNT ( * ) AS col2
----
-148
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8400
SELECT 24 * + + CASE + 60 WHEN + - 20 THEN NULL WHEN + CASE COUNT( * ) WHEN - 36 - + + COUNT( * ) + - ( + - 59 ) THEN + - COUNT( * ) WHEN + 49 THEN NULL END * 64 + - 35 * + 6 + + - 27 THEN + + CAST( NULL AS SIGNED ) WHEN + 72 * - 17 THEN + MAX( DISTINCT 62 ) * + 32 + + 60 + + MAX( ALL 79 ) + 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT 24 * + + CASE + 60 WHEN + - 20 THEN NULL WHEN + CASE COUNT ( * ) WHEN - 36 - + + COUNT ( * ) + - ( + - 59 ) THEN + - COUNT ( * ) WHEN + 49 THEN NULL END * 64 + - 35 * + 6 + + - 27 THEN + + CAST ( NULL AS INTEGER ) WHEN + 72 * - 17 THEN + MAX ( DISTINCT 62 ) * + 32 + + 60 + + MAX ( ALL 79 ) + 62 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8401
SELECT DISTINCT 73 DIV - 52 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT 73 / - 52 AS col0
----
-1

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

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

query I rowsort
SELECT ( - 6 ) + - 0
----
-6

query I rowsort
SELECT 50 * - COALESCE ( + 73, + 35 )
----
-3650

query I rowsort
SELECT DISTINCT - 22 * 60
----
-1320

query I rowsort
SELECT 24 * - + 28 AS col1
----
-672

query I rowsort
SELECT DISTINCT - ( 38 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT 49 + + COUNT( ALL + - 15 ) + - + CASE - 54 WHEN + 62 - + ( + - 15 ) - - CASE + 87 WHEN ( + + SUM( - 92 ) ) THEN 94 / + - 59 + - 9 END / + - COUNT( DISTINCT + 68 ) THEN NULL WHEN MIN( ALL - 16 ) THEN - 86 END * - 32 / - ( - 61 ) * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT 49 + + COUNT ( ALL + - 15 ) + - + CASE - 54 WHEN + 62 - + ( + - 15 ) - - CASE + 87 WHEN ( + + SUM ( - 92 ) ) THEN 94 / + - 59 + - 9 END / + - COUNT ( DISTINCT + 68 ) THEN NULL WHEN MIN ( ALL - 16 ) THEN - 86 END * - 32 / - ( - 61 ) * + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT ALL - 32 + ( + COUNT( * ) ) * 34
----
2

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL - 32 + ( + COUNT ( * ) ) * 34
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8410
SELECT 39 * CAST( COALESCE ( 18, COUNT( * ) * - 20 ) AS SIGNED )
----
702

skipif mysql # not compatible
query I rowsort label-8410
SELECT 39 * CAST ( COALESCE ( 18, COUNT ( * ) * - 20 ) AS INTEGER )
----
702

query I rowsort
SELECT 75 + - 21 col1
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL + 60 + + COUNT( + 90 )
----
61

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL + 60 + + COUNT ( + 90 )
----
61

query I rowsort
SELECT 94 + - 71
----
23

query I rowsort
SELECT 65 * + 53 col0
----
3445

query I rowsort
SELECT DISTINCT 6 * - 11
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8417
SELECT DISTINCT - 15 + COALESCE ( + COUNT( * ), 16 + - CAST( NULL AS SIGNED ) ) * - 17 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT - 15 + COALESCE ( + COUNT ( * ), 16 + - CAST ( NULL AS INTEGER ) ) * - 17 AS col1
----
-32

query I rowsort
SELECT ALL 41 * - 29
----
-1189

onlyif mysql # DIV for integer division: 
query I rowsort label-8419
SELECT 84 DIV 27
----
3

skipif mysql # not compatible
query I rowsort label-8419
SELECT 84 / 27
----
3

query I rowsort
SELECT ALL - 97 + + 55 AS col1
----
-42

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8422
SELECT ALL CASE ( - 90 ) WHEN 20 * - MAX( CAST( + 10 AS SIGNED ) ) - - 15 THEN NULL WHEN - COUNT( * ) * 4 THEN - 74 + 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL CASE ( - 90 ) WHEN 20 * - MAX ( CAST ( + 10 AS INTEGER ) ) - - 15 THEN NULL WHEN - COUNT ( * ) * 4 THEN - 74 + 28 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 68, - ( 25 ) + 76 / + 36 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8424
SELECT + 16 + 26 DIV 66 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-8424
SELECT + 16 + 26 / 66 AS col2
----
16

query I rowsort
SELECT + 93 + 70
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT DISTINCT + 53 DIV - 62 col0
----
0

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT + 53 / - 62 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8427
SELECT ALL NULLIF ( 91, 45 ) * ( 59 + 73 DIV + 6 )
----
6461

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL NULLIF ( 91, 45 ) * ( 59 + 73 / + 6 )
----
6461

query I rowsort
SELECT DISTINCT 86 * + 63 AS col2
----
5418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT 35 / + ( 12 ) - + CAST( NULL AS SIGNED ) * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT 35 / + ( 12 ) - + CAST ( NULL AS INTEGER ) * - 20
----
NULL

query I rowsort
SELECT ALL 32 * + NULLIF ( 97, + 52 * 39 )
----
3104

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT + 21 * + COUNT( * ) + - 69
----
-48

skipif mysql # not compatible
query I rowsort label-8431
SELECT + 21 * + COUNT ( * ) + - 69
----
-48

query I rowsort
SELECT ALL 85 * 53
----
4505

query I rowsort
SELECT - 96 * - 87 AS col2
----
8352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8434
SELECT CASE 67 WHEN - COUNT( DISTINCT + 16 ) - - 66 * + CASE + 36 * + 7 WHEN - CAST( + NULLIF ( 21, + 51 ) AS SIGNED ) / 7 + 57 THEN - 12 WHEN - ( 71 ) THEN - 43 + 80 * + 62 END THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT CASE 67 WHEN - COUNT ( DISTINCT + 16 ) - - 66 * + CASE + 36 * + 7 WHEN - CAST ( + NULLIF ( 21, + 51 ) AS INTEGER ) / 7 + 57 THEN - 12 WHEN - ( 71 ) THEN - 43 + 80 * + 62 END THEN + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 69 * 78 + + 76
----
-5306

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT DISTINCT + ( COUNT( + COALESCE ( 92, - 33 ) ) ) * SUM( DISTINCT - 25 ) + 11
----
-14

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT + ( COUNT ( + COALESCE ( 92, - 33 ) ) ) * SUM ( DISTINCT - 25 ) + 11
----
-14

query I rowsort
SELECT + 60 * + 54
----
3240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8438
SELECT ALL - SUM( 9 ) * 59 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL - SUM ( 9 ) * 59 + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8439
SELECT 73 * - 72 + + COUNT ( * ) AS col0
----
-5255

onlyif mysql # DIV for integer division: 
query I rowsort label-8440
SELECT + 24 DIV - COALESCE ( - 6, + ( 46 ) )
----
4

skipif mysql # not compatible
query I rowsort label-8440
SELECT + 24 / - COALESCE ( - 6, + ( 46 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT - COUNT( * ) * 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-8441
SELECT - COUNT ( * ) * 42 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ( + COUNT( * ) ) * - ( + 28 ) - 77 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-8442
SELECT ( + COUNT ( * ) ) * - ( + 28 ) - 77 AS col2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT ALL + COUNT( * ) * - MIN( 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL + COUNT ( * ) * - MIN ( 77 )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8444
SELECT ALL 17 DIV NULLIF ( - 98, COUNT( * ) + 21 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL 17 / NULLIF ( - 98, COUNT ( * ) + 21 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 35 * - 39
----
-1365

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ALL 48 * COUNT( * ) + 44
----
92

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL 48 * COUNT ( * ) + 44
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ALL + 44 * - COUNT( * ) - - 93
----
49

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL + 44 * - COUNT ( * ) - - 93
----
49

query I rowsort
SELECT + + 54 + - 99 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT + 56 * + COALESCE ( + 16 * 7, COUNT( * ) ) - + COUNT( * ) * 97
----
6175

skipif mysql # not compatible
query I rowsort label-8449
SELECT + 56 * + COALESCE ( + 16 * 7, COUNT ( * ) ) - + COUNT ( * ) * 97
----
6175

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL MIN( DISTINCT - 5 ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL MIN ( DISTINCT - 5 ) col0
----
-5

query I rowsort
SELECT - 63 + 2
----
-61

query I rowsort
SELECT ALL - - 72 - + 57
----
15

query I rowsort
SELECT - ( 31 ) * - 94
----
2914

query I rowsort
SELECT - - 13 + + 7 * + 23 AS col0
----
174

query I rowsort
SELECT DISTINCT + NULLIF ( 90, 2 )
----
90

query I rowsort
SELECT ALL - - 97 * + 27
----
2619

onlyif mysql # DIV for integer division: 
query I rowsort label-8458
SELECT ALL - 33 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL - 33 / + 92
----
0

query I rowsort
SELECT - 33 + 48 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT DISTINCT + NULLIF ( 66, MAX( 50 ) ) * - 16 AS col1
----
-1056

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT + NULLIF ( 66, MAX ( 50 ) ) * - 16 AS col1
----
-1056

query I rowsort
SELECT DISTINCT ( + 82 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT - ( + - COUNT( + 2 ) ) + 46 * 22 AS col1
----
1013

skipif mysql # not compatible
query I rowsort label-8462
SELECT - ( + - COUNT ( + 2 ) ) + 46 * 22 AS col1
----
1013

query I rowsort
SELECT - 97 + - + 74 * + 62
----
-4685

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8464
SELECT + 3 + - CAST( - 71 AS SIGNED ) + 53
----
127

skipif mysql # not compatible
query I rowsort label-8464
SELECT + 3 + - CAST ( - 71 AS INTEGER ) + 53
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT - 73 * - SUM( 90 )
----
6570

skipif mysql # not compatible
query I rowsort label-8465
SELECT - 73 * - SUM ( 90 )
----
6570

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT + MIN( - CASE ( - 23 ) WHEN 83 THEN NULL ELSE + 31 END ) + 50
----
19

skipif mysql # not compatible
query I rowsort label-8466
SELECT + MIN ( - CASE ( - 23 ) WHEN 83 THEN NULL ELSE + 31 END ) + 50
----
19

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8468
SELECT + MAX( DISTINCT + 74 ) DIV + 42 col1
----
1

skipif mysql # not compatible
query I rowsort label-8468
SELECT + MAX ( DISTINCT + 74 ) / + 42 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT - 67 + - MIN( + 78 ) AS col0
----
-145

skipif mysql # not compatible
query I rowsort label-8469
SELECT - 67 + - MIN ( + 78 ) AS col0
----
-145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8470
SELECT ALL COUNT( * ) DIV - 45 + COUNT( * ) * 70 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL COUNT ( * ) / - 45 + COUNT ( * ) * 70 AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8471
SELECT ALL + COUNT( * ) DIV + CASE - 94 WHEN + 52 THEN + 37 + - 50 * 15 ELSE 41 + ( - 0 + 52 * COUNT( * ) ) END
----
0

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL + COUNT ( * ) / + CASE - 94 WHEN + 52 THEN + 37 + - 50 * 15 ELSE 41 + ( - 0 + 52 * COUNT ( * ) ) END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT 77 * + - 98 + + COUNT( * ) AS col2
----
-7545

skipif mysql # not compatible
query I rowsort label-8472
SELECT 77 * + - 98 + + COUNT ( * ) AS col2
----
-7545

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8475
SELECT DISTINCT 54 DIV - 73 * + 87 + COALESCE ( 82, + 97, - CAST( NULL AS SIGNED ) ) * - 97 AS col2
----
-7954

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT 54 / - 73 * + 87 + COALESCE ( 82, + 97, - CAST ( NULL AS INTEGER ) ) * - 97 AS col2
----
-7954

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT + COALESCE ( - - 28, 31 * 41 + 26, + COUNT( * ) ) * + 56 + + 31 col2
----
1599

skipif mysql # not compatible
query I rowsort label-8478
SELECT + COALESCE ( - - 28, 31 * 41 + 26, + COUNT ( * ) ) * + 56 + + 31 col2
----
1599

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8479
SELECT DISTINCT - SUM( + + 46 ) DIV - 24 + CASE - 0 WHEN 60 THEN NULL WHEN NULLIF ( ( 31 ), 61 ) THEN NULL ELSE MIN( + 69 ) END DIV + 36 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT - SUM ( + + 46 ) / - 24 + CASE - 0 WHEN 60 THEN NULL WHEN NULLIF ( ( 31 ), 61 ) THEN NULL ELSE MIN ( + 69 ) END / + 36 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8480
SELECT ALL + + CAST( - AVG ( DISTINCT - 3 ) AS SIGNED ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL + + CAST ( - AVG ( DISTINCT - 3 ) AS INTEGER ) AS col2
----
3

query I rowsort
SELECT + 16 * + 94 + - 6 AS col2
----
1498

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT ALL - 55 * SUM( DISTINCT + 37 ) - + COUNT( * ) AS col2
----
-2036

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL - 55 * SUM ( DISTINCT + 37 ) - + COUNT ( * ) AS col2
----
-2036

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL - + 12 - - 5 + + MIN( + 85 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - + 12 - - 5 + + MIN ( + 85 ) AS col0
----
78

query I rowsort
SELECT - 90 + + 54 + - 91 * + 43 AS col2
----
-3949

onlyif mysql # DIV for integer division: 
query I rowsort label-8485
SELECT DISTINCT + 56 DIV + + 54
----
1

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT + 56 / + + 54
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL + MAX( DISTINCT + 70 ) - 33
----
37

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL + MAX ( DISTINCT + 70 ) - 33
----
37

query I rowsort
SELECT 8 * 12 AS col2
----
96

query I rowsort
SELECT - 17 + 14 + - 92
----
-95

query I rowsort
SELECT DISTINCT + - 7 * + + 42 AS col1
----
-294

onlyif mysql # DIV for integer division: 
query I rowsort label-8490
SELECT DISTINCT 35 DIV + 29
----
1

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT 35 / + 29
----
1

query I rowsort
SELECT - 75 / + CASE 59 WHEN ( + 1 ) * 38 THEN - 9 * + 29 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT ALL + MIN( - 41 ) * 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL + MIN ( - 41 ) * 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8493
SELECT - 6 * - - COALESCE ( CAST( NULL AS SIGNED ), - 87 DIV ( 48 ), + ( MIN( DISTINCT 9 ) ) + + 87 ) col1
----
6

skipif mysql # not compatible
query I rowsort label-8493
SELECT - 6 * - - COALESCE ( CAST ( NULL AS INTEGER ), - 87 / ( 48 ), + ( MIN ( DISTINCT 9 ) ) + + 87 ) col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8494
SELECT DISTINCT - MAX( 60 ) * - COALESCE ( 79 + CAST( NULL AS SIGNED ), 78, 10 - COUNT( * ) )
----
4680

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT - MAX ( 60 ) * - COALESCE ( 79 + CAST ( NULL AS INTEGER ), 78, 10 - COUNT ( * ) )
----
4680

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8498
SELECT 53 * - 0 * - CAST( NULL AS SIGNED ) * ( + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT 53 * - 0 * - CAST ( NULL AS INTEGER ) * ( + 6 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT 43 + + 41 * + SUM( ALL + 99 ) + 84 AS col0
----
4186

skipif mysql # not compatible
query I rowsort label-8499
SELECT 43 + + 41 * + SUM ( ALL + 99 ) + 84 AS col0
----
4186

query II rowsort
SELECT 33, - 6 AS col0
----
33
-6

query I rowsort
SELECT DISTINCT - 28 - 99 + + 67 col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT DISTINCT - + MAX( + 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT - + MAX ( + 11 ) AS col2
----
-11

query I rowsort
SELECT ALL - ( + 45 ) AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8504
SELECT DISTINCT - + 43 DIV - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT - + 43 / - 69 AS col1
----
0

query I rowsort
SELECT ALL 96 * 49 * CASE + NULLIF ( + 33, + 56 + - 75 ) WHEN - COALESCE ( 62, 86 - 66, - 6 ) THEN NULL WHEN + ( + 64 ) + - 53 * + 54 THEN ( 69 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT - CASE + 21 WHEN + 6 THEN NULL ELSE + COUNT( * ) END * - 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8506
SELECT - CASE + 21 WHEN + 6 THEN NULL ELSE + COUNT ( * ) END * - 53 AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT ALL - - 93 DIV - - 22 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL - - 93 / - - 22 AS col0
----
4

query I rowsort
SELECT + 22 * + + 14 + - 37
----
271

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8510
SELECT 53 - + + CASE 64 WHEN COUNT( * ) THEN - 82 WHEN ( - CAST( NULL AS SIGNED ) ) + 15 / + 42 THEN + 25 + 36 ELSE NULL END + COUNT( * ) * 23 * + ( + 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8510
SELECT 53 - + + CASE 64 WHEN COUNT ( * ) THEN - 82 WHEN ( - CAST ( NULL AS INTEGER ) ) + 15 / + 42 THEN + 25 + 36 ELSE NULL END + COUNT ( * ) * 23 * + ( + 48 )
----
NULL

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

query II rowsort
SELECT ALL 63 AS col0, 79 + - 85
----
63
-6

query I rowsort
SELECT ALL 65 + + - 45
----
20

query I rowsort
SELECT 30 * 71 - + 90 + 17 * NULLIF ( - 97, 11 * 69 )
----
391

query I rowsort
SELECT + 48 + + 68
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT 44 * 4 * + 19 * MAX( 19 ) * - 60
----
-3812160

skipif mysql # not compatible
query I rowsort label-8516
SELECT 44 * 4 * + 19 * MAX ( 19 ) * - 60
----
-3812160

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT ALL 9 / - CASE 45 WHEN 7 + 57 THEN 48 + - ( COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL 9 / - CASE 45 WHEN 7 + 57 THEN 48 + - ( COUNT ( * ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT COUNT( * ) + - 27 + - 57
----
-83

skipif mysql # not compatible
query I rowsort label-8518
SELECT COUNT ( * ) + - 27 + - 57
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT NULLIF ( 10, COUNT( * ) ) + 56 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT NULLIF ( 10, COUNT ( * ) ) + 56 AS col1
----
66

query I rowsort
SELECT ALL - ( + 37 ) + - 71
----
-108

query I rowsort
SELECT ALL 73 * 50 * - 68
----
-248200

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ( + - MAX( DISTINCT 47 ) ) + - 35 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8522
SELECT ( + - MAX ( DISTINCT 47 ) ) + - 35 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT DISTINCT ( + 96 ) * + SUM( DISTINCT - 13 ) AS col2
----
-1248

skipif mysql # not compatible
query I rowsort label-8523
SELECT DISTINCT ( + 96 ) * + SUM ( DISTINCT - 13 ) AS col2
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT ALL 26 + 94 - - - COUNT( * ) AS col2
----
119

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL 26 + 94 - - - COUNT ( * ) AS col2
----
119

query II rowsort
SELECT 59 * 19, - 40 AS col0
----
1121
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT 62 + - - 35 + - + 61 * - 9 + - COUNT( * ) col1
----
645

skipif mysql # not compatible
query I rowsort label-8526
SELECT 62 + - - 35 + - + 61 * - 9 + - COUNT ( * ) col1
----
645

query I rowsort
SELECT ( + - 66 ) * 55
----
-3630

query I rowsort
SELECT 69 + + 66 col1
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8529
SELECT 78 + - COUNT( * ) + + 87 DIV - 58
----
76

skipif mysql # not compatible
query I rowsort label-8529
SELECT 78 + - COUNT ( * ) + + 87 / - 58
----
76

query I rowsort
SELECT 88 + + - 63
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8531
SELECT ALL 89 * + 16 - + ( - 65 ) + + 84 DIV + 62 AS col2
----
1490

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL 89 * + 16 - + ( - 65 ) + + 84 / + 62 AS col2
----
1490

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT NULLIF ( 17, COUNT( - 65 ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8532
SELECT NULLIF ( 17, COUNT ( - 65 ) ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT DISTINCT - NULLIF ( + + 44, - NULLIF ( - 27, - MIN( 81 ) ) * - COUNT( * ) )
----
-44

skipif mysql # not compatible
query I rowsort label-8533
SELECT DISTINCT - NULLIF ( + + 44, - NULLIF ( - 27, - MIN ( 81 ) ) * - COUNT ( * ) )
----
-44

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

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

query I rowsort
SELECT ALL - + 41 * 9 * - + 91 + + 72
----
33651

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT + + 74 DIV + 13 + + 18 * + - 65 * - 74 AS col2
----
86585

skipif mysql # not compatible
query I rowsort label-8536
SELECT + + 74 / + 13 + + 18 * + - 65 * - 74 AS col2
----
86585

query I rowsort
SELECT DISTINCT 28 * - + 49 + - 33 - + - 46
----
-1359

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8538
SELECT - + 67 + + - 89 * - + 11 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8538
SELECT - + 67 + + - 89 * - + 11 + - CAST ( NULL AS REAL )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8540
SELECT 1 * + 3 * - 27 + 55 + 76 DIV - 53 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8540
SELECT 1 * + 3 * - 27 + 55 + 76 / - 53 AS col1
----
-27

query I rowsort
SELECT DISTINCT + CASE - 90 WHEN + ( - 1 ) + - 70 / + 23 THEN + 29 / 71 ELSE 11 * + 79 END
----
869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8542
SELECT DISTINCT + CASE - ( 59 ) WHEN + 48 / + 67 THEN 69 WHEN + 75 * - 72 + - CAST( NULL AS SIGNED ) THEN + ( 75 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT + CASE - ( 59 ) WHEN + 48 / + 67 THEN 69 WHEN + 75 * - 72 + - CAST ( NULL AS INTEGER ) THEN + ( 75 ) END
----
NULL

query I rowsort
SELECT DISTINCT + - 40 AS col1
----
-40

query I rowsort
SELECT DISTINCT + - 44 * - 16 + - 71 AS col0
----
633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8545
SELECT CASE - 49 WHEN - - 9 THEN NULL WHEN + 45 * COUNT( * ) THEN 54 * - 80 + ( CAST( 17 AS SIGNED ) ) WHEN + 27 + 74 THEN + 26 WHEN - 51 THEN 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT CASE - 49 WHEN - - 9 THEN NULL WHEN + 45 * COUNT ( * ) THEN 54 * - 80 + ( CAST ( 17 AS INTEGER ) ) WHEN + 27 + 74 THEN + 26 WHEN - 51 THEN 98 END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8548
SELECT + + 10 + - 86 + + + 93 + COUNT( * ) + 83 DIV 51
----
19

skipif mysql # not compatible
query I rowsort label-8548
SELECT + + 10 + - 86 + + + 93 + COUNT ( * ) + 83 / 51
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8549
SELECT - MAX( ALL + CAST( + ( - + 68 ) AS SIGNED ) )
----
68

skipif mysql # not compatible
query I rowsort label-8549
SELECT - MAX ( ALL + CAST ( + ( - + 68 ) AS INTEGER ) )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8550
SELECT ALL - 18 * CASE 3 WHEN + CAST( - + 55 AS SIGNED ) THEN - 4 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL - 18 * CASE 3 WHEN + CAST ( - + 55 AS INTEGER ) THEN - 4 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( 93 ) + + - 53 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL ( + 40 ) + + 16 + COUNT( * ) * 44 * 49 AS col2
----
2212

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL ( + 40 ) + + 16 + COUNT ( * ) * 44 * 49 AS col2
----
2212

query I rowsort
SELECT - 32 - + + 19 AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8554
SELECT 77 AS col2, CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-8554
SELECT 77 AS col2, CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col0
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT - COALESCE ( SUM( 30 ), - + COUNT( * ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8555
SELECT - COALESCE ( SUM ( 30 ), - + COUNT ( * ) ) AS col0
----
-30

query I rowsort
SELECT + 8 * - 71
----
-568

query I rowsort
SELECT + 14 * - 38 AS col1
----
-532

query II rowsort
SELECT 58 AS col2, - 84 AS col2
----
58
-84

query I rowsort
SELECT - ( - 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT DISTINCT 55 * + COUNT( * ) col0
----
55

skipif mysql # not compatible
query I rowsort label-8560
SELECT DISTINCT 55 * + COUNT ( * ) col0
----
55

query II rowsort
SELECT 2, 66 + + + 11 col0
----
2
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8562
SELECT DISTINCT CAST( NULL AS SIGNED ) - - + 69 + - - AVG ( DISTINCT ( 44 ) ) * - 75 * 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - + 69 + - - AVG ( DISTINCT ( 44 ) ) * - 75 * 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT ALL MAX( - 54 ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL MAX ( - 54 ) col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8564
SELECT ALL NULLIF ( + CAST( - 5 AS SIGNED ), + CASE + 86 WHEN 14 * 82 + 92 THEN - 73 * 82 + - 51 ELSE NULL END / 48 + + 42 )
----
-5

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL NULLIF ( + CAST ( - 5 AS INTEGER ), + CASE + 86 WHEN 14 * 82 + 92 THEN - 73 * 82 + - 51 ELSE NULL END / 48 + + 42 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT + COUNT( * ) * + MIN( DISTINCT - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-8565
SELECT + COUNT ( * ) * + MIN ( DISTINCT - 59 )
----
-59

query I rowsort
SELECT DISTINCT 54 * - ( 95 )
----
-5130

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT + NULLIF ( MAX( DISTINCT - 12 ), + COUNT( ALL 45 ) ) + + 75 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8567
SELECT + NULLIF ( MAX ( DISTINCT - 12 ), + COUNT ( ALL 45 ) ) + + 75 AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8568
SELECT + 43 DIV - CASE + - COUNT( * ) WHEN 36 * - 60 * + 83 THEN - 62 + 71 WHEN - 57 + 25 THEN NULL ELSE 67 END * + 80 + - 84 col0
----
-84

skipif mysql # not compatible
query I rowsort label-8568
SELECT + 43 / - CASE + - COUNT ( * ) WHEN 36 * - 60 * + 83 THEN - 62 + 71 WHEN - 57 + 25 THEN NULL ELSE 67 END * + 80 + - 84 col0
----
-84

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

skipif mysql # not compatible
query I rowsort label-8569
SELECT - - COUNT ( * ) / - 41
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8570
SELECT + - CAST( NULL AS SIGNED ) + - ( - + 42 ), 87 + 84 DIV 97 AS col1
----
NULL
87

skipif mysql # not compatible
query II rowsort label-8570
SELECT + - CAST ( NULL AS INTEGER ) + - ( - + 42 ), 87 + 84 / 97 AS col1
----
NULL
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8571
SELECT + + COALESCE ( 83, + + 96, - - CAST( + MAX( ALL + 50 ) AS SIGNED ) DIV 42 + ( + 91 ) )
----
83

skipif mysql # not compatible
query I rowsort label-8571
SELECT + + COALESCE ( 83, + + 96, - - CAST ( + MAX ( ALL + 50 ) AS INTEGER ) / 42 + ( + 91 ) )
----
83

query I rowsort
SELECT + 0 * - 94 AS col2
----
0

query II rowsort
SELECT + 22 * + 85 + - 18, + 0 * 23 - 98 col0
----
1852
-98

query II rowsort
SELECT + 30 AS col1, + 76 * 94 + 36 * + 93 + + ( - 25 ) col1
----
30
10467

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

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

query I rowsort
SELECT - 55 * + + 73 + - 51 * + 94 + + - 75 + + 78 AS col2
----
-8806

onlyif mysql # DIV for integer division: 
query I rowsort label-8577
SELECT DISTINCT - 98 DIV - + 75 + - CASE - + 23 WHEN + 75 THEN NULL WHEN 11 THEN - 19 ELSE - 6 END + 91 col0
----
98

skipif mysql # not compatible
query I rowsort label-8577
SELECT DISTINCT - 98 / - + 75 + - CASE - + 23 WHEN + 75 THEN NULL WHEN 11 THEN - 19 ELSE - 6 END + 91 col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT + + ( + + 63 ) - SUM( DISTINCT + 34 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8578
SELECT + + ( + + 63 ) - SUM ( DISTINCT + 34 ) AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8579
SELECT + COALESCE ( + - 67, + 63 DIV + 24 )
----
-67

skipif mysql # not compatible
query I rowsort label-8579
SELECT + COALESCE ( + - 67, + 63 / + 24 )
----
-67

query I rowsort
SELECT + 3 * - 55 * + - 84
----
13860

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT - COUNT( - - 71 ) * - MAX( 56 ) * + 27
----
1512

skipif mysql # not compatible
query I rowsort label-8581
SELECT - COUNT ( - - 71 ) * - MAX ( 56 ) * + 27
----
1512

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8584
SELECT ALL + - COUNT( * ) * + SUM( ALL - 92 ) + + + 25 + + + 67 DIV + 21 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL + - COUNT ( * ) * + SUM ( ALL - 92 ) + + + 25 + + + 67 / + 21 AS col2
----
120

query I rowsort
SELECT DISTINCT - + 29 * - 95 + + 84 AS col0
----
2839

query I rowsort
SELECT - 27 * + 4 AS col1
----
-108

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

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

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

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

query I rowsort
SELECT ALL + ( 85 ) * 70 * + 43 + + 64
----
255914

query I rowsort
SELECT - COALESCE ( + - 37, 61 )
----
37

query I rowsort
SELECT - 9 + - - 57 AS col2
----
48

query I rowsort
SELECT - 85 + + 16
----
-69

query I rowsort
SELECT + 91 - - - 93 AS col1
----
-2

query I rowsort
SELECT - 2 * - NULLIF ( - 84, 58 + 39 ) * - + CASE - 75 WHEN + 6 THEN NULL WHEN 8 * 76 THEN + 13 + 51 WHEN 61 THEN NULL WHEN + 93 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + COALESCE ( + - 25, - - 95 + + 1 - - 12 * - 83, 65 ) * ( - 32 ) + 58 col0
----
858

query I rowsort
SELECT DISTINCT - 96 - - 59
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8597
SELECT ALL CAST( - 50 AS SIGNED ) AS col1, 56
----
-50
56

skipif mysql # not compatible
query II rowsort label-8597
SELECT ALL CAST ( - 50 AS INTEGER ) AS col1, 56
----
-50
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT ALL - MAX( DISTINCT - 20 ) * - 97 AS col2
----
-1940

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL - MAX ( DISTINCT - 20 ) * - 97 AS col2
----
-1940

query I rowsort
SELECT - 55 + + - 3 + - - 68
----
10

query II rowsort
SELECT ALL 32, - 84 * + ( - + 99 ) * - - 65 AS col0
----
32
540540

query I rowsort
SELECT DISTINCT - 69 * 25 * 79
----
-136275

query I rowsort
SELECT 87 + + - 28
----
59

query II rowsort
SELECT DISTINCT 91, + 79 AS col2
----
91
79

query I rowsort
SELECT 26 * - 0 - + 91 AS col2
----
-91

query I rowsort
SELECT DISTINCT + 39 + + - 42
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT DISTINCT MIN( ALL - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT MIN ( ALL - 67 )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8607
SELECT DISTINCT 72 + - - CAST( NULL AS SIGNED ) + + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT 72 + - - CAST ( NULL AS INTEGER ) + + 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ALL + COUNT( - + 40 ) * - 82
----
-82

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL + COUNT ( - + 40 ) * - 82
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8609
SELECT ( - 78 ) DIV 53 + + ( 43 ) * 76 DIV ( 50 ) - 28
----
36

skipif mysql # not compatible
query I rowsort label-8609
SELECT ( - 78 ) / 53 + + ( 43 ) * 76 / ( 50 ) - 28
----
36

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8611
SELECT - CASE - COUNT( * ) WHEN + ( - - 41 ) * + CAST( NULL AS SIGNED ) / - CASE 22 WHEN + 67 * + 85 + - 18 THEN + 86 / - NULLIF ( 75, 10 ) WHEN - 97 * + 3 THEN NULL END + + 16 THEN COUNT( * ) - 33 WHEN ( + COUNT( * ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT - CASE - COUNT ( * ) WHEN + ( - - 41 ) * + CAST ( NULL AS INTEGER ) / - CASE 22 WHEN + 67 * + 85 + - 18 THEN + 86 / - NULLIF ( 75, 10 ) WHEN - 97 * + 3 THEN NULL END + + 16 THEN COUNT ( * ) - 33 WHEN ( + COUNT ( * ) ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL COUNT( * ) + + 6
----
7

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL COUNT ( * ) + + 6
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8613
SELECT + + 36 DIV 15 * - - 26 + - - 7 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8613
SELECT + + 36 / 15 * - - 26 + - - 7 AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8614
SELECT CAST( - 18 AS SIGNED ) AS col0, 49 - + + 47 AS col2
----
-18
2

skipif mysql # not compatible
query II rowsort label-8614
SELECT CAST ( - 18 AS INTEGER ) AS col0, 49 - + + 47 AS col2
----
-18
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8615
SELECT DISTINCT - 96 + - COALESCE ( 67, + - 7 DIV + ( + + 98 ) * 21 - - ( - ( 38 ) ) + 56 ) + COUNT( * ) DIV 97 AS col0
----
-163

skipif mysql # not compatible
query I rowsort label-8615
SELECT DISTINCT - 96 + - COALESCE ( 67, + - 7 / + ( + + 98 ) * 21 - - ( - ( 38 ) ) + 56 ) + COUNT ( * ) / 97 AS col0
----
-163

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

query I rowsort
SELECT + NULLIF ( 75, 13 * 45 )
----
75

query I rowsort
SELECT ALL - NULLIF ( + CASE + 42 WHEN - 62 THEN NULL ELSE - + 49 END, - 94 * + 68 ) + 80 AS col1
----
129

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

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

query I rowsort
SELECT + 50 + + 76
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT NULLIF ( 80, + MIN( + 16 ) ) * 46 * - ( + 27 ) * + ( MAX( 62 ) * - 33 ) AS col1
----
203290560

skipif mysql # not compatible
query I rowsort label-8621
SELECT NULLIF ( 80, + MIN ( + 16 ) ) * 46 * - ( + 27 ) * + ( MAX ( 62 ) * - 33 ) AS col1
----
203290560

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT ALL + 55 * COUNT( * ) * + CASE + + COUNT( * ) WHEN 49 THEN 84 + 64 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL + 55 * COUNT ( * ) * + CASE + + COUNT ( * ) WHEN 49 THEN 84 + 64 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT + CAST( NULL AS SIGNED ) * 33 * + + 12 * 78 / 40 + ( 97 ) + 98 * 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT + CAST ( NULL AS INTEGER ) * 33 * + + 12 * 78 / 40 + ( 97 ) + 98 * 43 AS col2
----
NULL

query II rowsort
SELECT 88 + + 7 AS col0, 36 AS col2
----
95
36

query I rowsort
SELECT 62 * - ( 32 ) AS col2
----
-1984

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT ALL + 10 / CASE + 97 WHEN 73 THEN + 1 + + + 17 - - - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + 10 / CASE + 97 WHEN 73 THEN + 1 + + + 17 - - - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8627
SELECT ALL + 10 DIV 19
----
0

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL + 10 / 19
----
0

query II rowsort
SELECT 74 * + 17 col1, COALESCE ( - + 10, + 36 + 73 * 8 )
----
1258
-10

query I rowsort
SELECT COALESCE ( + 19, 84 ) * 49 AS col2
----
931

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT - 73 * + ( 29 ) * + 4 + - SUM( DISTINCT + + 81 ) AS col0
----
-8549

skipif mysql # not compatible
query I rowsort label-8630
SELECT - 73 * + ( 29 ) * + 4 + - SUM ( DISTINCT + + 81 ) AS col0
----
-8549

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL + 10 + + COUNT( 38 ) + - 27 + 41 * - - MAX( ALL + 46 ) * - 15 col0
----
-28306

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL + 10 + + COUNT ( 38 ) + - 27 + 41 * - - MAX ( ALL + 46 ) * - 15 col0
----
-28306

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT ALL - + 92 + - 90 * + NULLIF ( + + COUNT( * ), - COUNT( DISTINCT + 83 ) + + COUNT( - ( 72 ) ) ) AS col2
----
-182

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL - + 92 + - 90 * + NULLIF ( + + COUNT ( * ), - COUNT ( DISTINCT + 83 ) + + COUNT ( - ( 72 ) ) ) AS col2
----
-182

query I rowsort
SELECT DISTINCT + + COALESCE ( - 20, - 37 ) + + + 38
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL - 60 + ( MIN( DISTINCT - 50 ) ) col2
----
-110

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL - 60 + ( MIN ( DISTINCT - 50 ) ) col2
----
-110

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

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

query I rowsort
SELECT 23 + 71 * - 73
----
-5160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8637
SELECT ALL 6 + + CAST( - MIN( - 23 ) AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL 6 + + CAST ( - MIN ( - 23 ) AS INTEGER )
----
29

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-8640
SELECT ( + - MIN ( + 93 ) )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8641
SELECT CAST( + + 5 AS SIGNED ) * - 30 AS col2
----
-150

skipif mysql # not compatible
query I rowsort label-8641
SELECT CAST ( + + 5 AS INTEGER ) * - 30 AS col2
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-8642
SELECT 23 DIV 79 * - 41 DIV + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8642
SELECT 23 / 79 * - 41 / + 72 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8643
SELECT DISTINCT + - 27 * + 35 - - - 59 AS col0, CAST( - 29 AS SIGNED )
----
-1004
-29

skipif mysql # not compatible
query II rowsort label-8643
SELECT DISTINCT + - 27 * + 35 - - - 59 AS col0, CAST ( - 29 AS INTEGER )
----
-1004
-29

query I rowsort
SELECT + 39 + - 76 + + NULLIF ( + + 99, + + 83 ) AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8645
SELECT ALL 9 * - 24 + - CASE CAST( NULL AS SIGNED ) WHEN ( + + 70 ) THEN + 2 END - 20 / - CASE - 27 WHEN 72 THEN - 67 * 77 + + 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL 9 * - 24 + - CASE CAST ( NULL AS INTEGER ) WHEN ( + + 70 ) THEN + 2 END - 20 / - CASE - 27 WHEN 72 THEN - 67 * 77 + + 7 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT 2 - ( - COUNT( * ) ) * 48
----
50

skipif mysql # not compatible
query I rowsort label-8646
SELECT 2 - ( - COUNT ( * ) ) * 48
----
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT MIN( DISTINCT - + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8648
SELECT MIN ( DISTINCT - + 0 ) AS col2
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8651
SELECT 72 DIV + 43 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8651
SELECT 72 / + 43 AS col1
----
1

query I rowsort
SELECT 43 * + 21
----
903

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8653
SELECT COUNT( * ), 22 DIV 62 col2
----
1
0

skipif mysql # not compatible
query II rowsort label-8653
SELECT COUNT ( * ), 22 / 62 col2
----
1
0

query II rowsort
SELECT ALL - 14 AS col2, 82 col0
----
-14
82

query II rowsort
SELECT ALL - 17 AS col2, + 90
----
-17
90

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8657
SELECT + 5 * + 76 - - COALESCE ( 96, + 82 * + CASE + CAST( + SUM( DISTINCT 84 ) AS SIGNED ) WHEN - CAST( + 87 AS SIGNED ) THEN NULL WHEN COALESCE ( + 83, 93 ) - + 65 THEN 17 DIV + 81 END ) AS col1
----
476

skipif mysql # not compatible
query I rowsort label-8657
SELECT + 5 * + 76 - - COALESCE ( 96, + 82 * + CASE + CAST ( + SUM ( DISTINCT 84 ) AS INTEGER ) WHEN - CAST ( + 87 AS INTEGER ) THEN NULL WHEN COALESCE ( + 83, 93 ) - + 65 THEN 17 / + 81 END ) AS col1
----
476

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8659
SELECT - CAST( + 12 AS SIGNED ) * + COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8659
SELECT - CAST ( + 12 AS INTEGER ) * + COUNT ( * ) AS col1
----
-12

query I rowsort
SELECT ALL 90 + + + 76 AS col2
----
166

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8661
SELECT - 1 - CAST( + + CASE - 73 WHEN + - 70 * - - ( + MAX( DISTINCT 61 ) ) * 44 + 27 THEN + 25 END AS DECIMAL ) * + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT - 1 - CAST ( + + CASE - 73 WHEN + - 70 * - - ( + MAX ( DISTINCT 61 ) ) * 44 + 27 THEN + 25 END AS REAL ) * + 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT - 77 - SUM( DISTINCT 90 ) * - 29 * - 76 * + + 41
----
-8132837

skipif mysql # not compatible
query I rowsort label-8662
SELECT - 77 - SUM ( DISTINCT 90 ) * - 29 * - 76 * + + 41
----
-8132837

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT - COALESCE ( - COUNT( * ), 46 + - + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-8663
SELECT - COALESCE ( - COUNT ( * ), 46 + - + 20 )
----
1

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

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

query I rowsort
SELECT ALL 54 + + - NULLIF ( 64, + 21 )
----
-10

query I rowsort
SELECT DISTINCT + CASE 58 WHEN - 98 THEN - 97 ELSE - 14 END + - COALESCE ( + 19, - 14 )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8667
SELECT ALL - - 56 + + 45 * 81, - COUNT( * ) col2
----
3701
-1

skipif mysql # not compatible
query II rowsort label-8667
SELECT ALL - - 56 + + 45 * 81, - COUNT ( * ) col2
----
3701
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT - ( + + COUNT( * ) ) + + 62 + - 17
----
44

skipif mysql # not compatible
query I rowsort label-8668
SELECT - ( + + COUNT ( * ) ) + + 62 + - 17
----
44

query I rowsort
SELECT ALL - 78 + 38
----
-40

query II rowsort
SELECT DISTINCT - 17 AS col0, + 89
----
-17
89

query I rowsort
SELECT DISTINCT NULLIF ( - 72, - 13 ) col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT - COUNT( 43 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8672
SELECT - COUNT ( 43 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8673
SELECT - - 23 DIV + + 89
----
0

skipif mysql # not compatible
query I rowsort label-8673
SELECT - - 23 / + + 89
----
0

query I rowsort
SELECT - - 18 + NULLIF ( + 64, - 78 * + 2 ) + + 11
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT - + ( + 2 ) * - MAX( + ( - 13 ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8675
SELECT - + ( + 2 ) * - MAX ( + ( - 13 ) ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-8676
SELECT - + 43 + COUNT( * ) + + MAX( ALL + 27 ) * - + 13 + - - 89 AS col0, MIN( ALL - 93 ) AS col0
----
-304
-93

skipif mysql # not compatible
query II rowsort label-8676
SELECT - + 43 + COUNT ( * ) + + MAX ( ALL + 27 ) * - + 13 + - - 89 AS col0, MIN ( ALL - 93 ) AS col0
----
-304
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT DISTINCT - 79 * - + SUM( DISTINCT + 29 ) AS col0
----
2291

skipif mysql # not compatible
query I rowsort label-8677
SELECT DISTINCT - 79 * - + SUM ( DISTINCT + 29 ) AS col0
----
2291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8678
SELECT ALL - SUM( 75 ) - - 85 - - NULLIF ( - 41, CASE - 11 WHEN - 99 THEN - NULLIF ( - CAST( NULL AS SIGNED ), 69 / - 71 + + ( + 11 ) ) WHEN + 11 THEN 92 + 6 END ) * 11 AS col1
----
-441

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL - SUM ( 75 ) - - 85 - - NULLIF ( - 41, CASE - 11 WHEN - 99 THEN - NULLIF ( - CAST ( NULL AS INTEGER ), 69 / - 71 + + ( + 11 ) ) WHEN + 11 THEN 92 + 6 END ) * 11 AS col1
----
-441

query II rowsort
SELECT - + 60 AS col0, 42 * 62
----
-60
2604

query I rowsort
SELECT DISTINCT + - ( + + 51 ) * 7 AS col1
----
-357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8681
SELECT DISTINCT + - 50 DIV 9 * + MAX( ALL + + 84 ) - - CASE + - COUNT( * ) WHEN 63 THEN NULL WHEN - 21 THEN NULL ELSE + 5 * - SUM( DISTINCT 13 ) + + 23 END AS col0
----
-462

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT + - 50 / 9 * + MAX ( ALL + + 84 ) - - CASE + - COUNT ( * ) WHEN 63 THEN NULL WHEN - 21 THEN NULL ELSE + 5 * - SUM ( DISTINCT 13 ) + + 23 END AS col0
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL + SUM( 2 ) * + - 68 * - - 10 * + - CASE + - 19 WHEN + - 46 THEN + 83 WHEN 76 + 98 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL + SUM ( 2 ) * + - 68 * - - 10 * + - CASE + - 19 WHEN + - 46 THEN + 83 WHEN 76 + 98 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 19 + + 47 AS col1
----
28

query II rowsort
SELECT + 56 AS col2, 2 col2
----
56
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT DISTINCT + - COALESCE ( + 65, + + 22 ) * 28 + 37 * 62 * - + CAST( + - 27 AS SIGNED ) AS col2
----
60118

skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT + - COALESCE ( + 65, + + 22 ) * 28 + 37 * 62 * - + CAST ( + - 27 AS INTEGER ) AS col2
----
60118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8686
SELECT CASE - 35 WHEN ( - 22 ) THEN + + NULLIF ( - + CAST( - 80 AS SIGNED ), 92 + - 82 * 72 ) + + CAST( 3 AS SIGNED ) WHEN NULLIF ( 88, 83 / + 42 ) + - COUNT( * ) THEN + 37 ELSE NULL END * ( - 30 ) + - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT CASE - 35 WHEN ( - 22 ) THEN + + NULLIF ( - + CAST ( - 80 AS INTEGER ), 92 + - 82 * 72 ) + + CAST ( 3 AS INTEGER ) WHEN NULLIF ( 88, 83 / + 42 ) + - COUNT ( * ) THEN + 37 ELSE NULL END * ( - 30 ) + - 1 AS col2
----
NULL

query II rowsort
SELECT - 76 - + - 16 - - - 62 col2, 84
----
-122
84

query I rowsort
SELECT + - 16 * - 91
----
1456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8689
SELECT - 51 DIV - - CAST( - + AVG ( DISTINCT + 41 ) AS SIGNED ) * - + ( - COUNT( * ) ) + + + 61 + 94 * - 30 - - 5 DIV COUNT( * ) + 15
----
-2738

skipif mysql # not compatible
query I rowsort label-8689
SELECT - 51 / - - CAST ( - + AVG ( DISTINCT + 41 ) AS INTEGER ) * - + ( - COUNT ( * ) ) + + + 61 + 94 * - 30 - - 5 / COUNT ( * ) + 15
----
-2738

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT 34 * - 47 * - COUNT( * ) * 93 - - 42 AS col2
----
148656

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT 34 * - 47 * - COUNT ( * ) * 93 - - 42 AS col2
----
148656

query I rowsort
SELECT ( - - ( - - 8 ) ) AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8692
SELECT ALL 56 DIV + 25
----
2

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL 56 / + 25
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT DISTINCT + CASE NULLIF ( 34, - 8 + + COUNT( * ) ) WHEN - 34 + + NULLIF ( COALESCE ( - + 89, + COUNT( * ) ), 70 ) * + 0 THEN NULL WHEN + 13 THEN - AVG ( ALL - 37 ) * + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT + CASE NULLIF ( 34, - 8 + + COUNT ( * ) ) WHEN - 34 + + NULLIF ( COALESCE ( - + 89, + COUNT ( * ) ), 70 ) * + 0 THEN NULL WHEN + 13 THEN - AVG ( ALL - 37 ) * + 12 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8694
SELECT + SUM( + 41 ) AS col2, + 63
----
41
63

skipif mysql # not compatible
query II rowsort label-8694
SELECT + SUM ( + 41 ) AS col2, + 63
----
41
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT DISTINCT - 37 / - + CASE + - CASE + 78 WHEN 13 THEN COUNT( * ) END WHEN + 59 THEN 6 WHEN 93 THEN - 53 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT - 37 / - + CASE + - CASE + 78 WHEN 13 THEN COUNT ( * ) END WHEN + 59 THEN 6 WHEN 93 THEN - 53 END col1
----
NULL

query I rowsort
SELECT + 14 - - 82
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8697
SELECT ALL - 28 DIV - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL - 28 / - 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT + 32 + - 68 + COUNT( * ) * - NULLIF ( - COUNT( * ), 69 ) * 19 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-8698
SELECT + 32 + - 68 + COUNT ( * ) * - NULLIF ( - COUNT ( * ), 69 ) * 19 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL 63 * - 37 + 24 + - 85 * + 19 * - COUNT( * ) * - ( + 44 )
----
-73367

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL 63 * - 37 + 24 + - 85 * + 19 * - COUNT ( * ) * - ( + 44 )
----
-73367

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT + MIN( - 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-8700
SELECT + MIN ( - 97 ) AS col0
----
-97

query I rowsort
SELECT + ( + - 16 ) + - 62
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8702
SELECT ALL CAST( 49 AS SIGNED ) * - 39 + + - 63 + + MIN( 58 ) AS col2
----
-1916

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL CAST ( 49 AS INTEGER ) * - 39 + + - 63 + + MIN ( 58 ) AS col2
----
-1916

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8703
SELECT + 96 * + + COALESCE ( - 28, 16 DIV NULLIF ( - + 71, + COUNT( * ) * - - ( ( + 3 ) ) ) ) AS col0
----
-2688

skipif mysql # not compatible
query I rowsort label-8703
SELECT + 96 * + + COALESCE ( - 28, 16 / NULLIF ( - + 71, + COUNT ( * ) * - - ( ( + 3 ) ) ) ) AS col0
----
-2688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8704
SELECT CASE + - 26 WHEN - 64 THEN - 91 + - 63 * - 38 / + MIN( + 40 ) WHEN + 57 * COALESCE ( 55, + COALESCE ( 4, - 68 + CASE 20 WHEN + 8 * + CAST( - 13 AS SIGNED ) THEN + 69 / + 68 ELSE - COUNT( * ) * 29 END ), + CASE + 87 WHEN 56 * - ( 73 ) - COUNT( * ) THEN NULL WHEN ( CAST( + 14 AS DECIMAL ) ) THEN + 94 * 17 ELSE NULL END * + 59 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8704
SELECT CASE + - 26 WHEN - 64 THEN - 91 + - 63 * - 38 / + MIN ( + 40 ) WHEN + 57 * COALESCE ( 55, + COALESCE ( 4, - 68 + CASE 20 WHEN + 8 * + CAST ( - 13 AS INTEGER ) THEN + 69 / + 68 ELSE - COUNT ( * ) * 29 END ), + CASE + 87 WHEN 56 * - ( 73 ) - COUNT ( * ) THEN NULL WHEN ( CAST ( + 14 AS REAL ) ) THEN + 94 * 17 ELSE NULL END * + 59 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT + ( 75 ) * + + 25 * + COUNT( * ) * + - 86 + - + 87
----
-161337

skipif mysql # not compatible
query I rowsort label-8705
SELECT + ( 75 ) * + + 25 * + COUNT ( * ) * + - 86 + - + 87
----
-161337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8706
SELECT - COALESCE ( - + ( - 72 ), + 88, + 44 * + 37 + - 95 * - ( - 11 ) * CAST( NULL AS SIGNED ) + 96 * 83 ) * - COUNT( * ) + 4 * 17 col0
----
140

skipif mysql # not compatible
query I rowsort label-8706
SELECT - COALESCE ( - + ( - 72 ), + 88, + 44 * + 37 + - 95 * - ( - 11 ) * CAST ( NULL AS INTEGER ) + 96 * 83 ) * - COUNT ( * ) + 4 * 17 col0
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8707
SELECT ALL 13 * - - CASE + 92 WHEN - - COUNT( * ) THEN 64 WHEN 56 * - 84 / 48 THEN NULL END * - CASE 87 WHEN - 77 THEN NULL WHEN CASE MAX( DISTINCT 99 ) WHEN SUM( 81 ) THEN NULL WHEN COUNT( * ) THEN + COUNT( * ) * + CAST( NULL AS SIGNED ) WHEN + 39 / - 48 THEN NULL WHEN 2 + ( COUNT( * ) + - 74 ) * + 99 THEN NULL ELSE - 59 - - 74 * 62 END THEN 91 + + CAST( - COUNT( * ) + COUNT( * ) AS DECIMAL ) * 15 ELSE + 44 + + 39 END / + 23 - 28 + + 49 * - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL 13 * - - CASE + 92 WHEN - - COUNT ( * ) THEN 64 WHEN 56 * - 84 / 48 THEN NULL END * - CASE 87 WHEN - 77 THEN NULL WHEN CASE MAX ( DISTINCT 99 ) WHEN SUM ( 81 ) THEN NULL WHEN COUNT ( * ) THEN + COUNT ( * ) * + CAST ( NULL AS INTEGER ) WHEN + 39 / - 48 THEN NULL WHEN 2 + ( COUNT ( * ) + - 74 ) * + 99 THEN NULL ELSE - 59 - - 74 * 62 END THEN 91 + + CAST ( - COUNT ( * ) + COUNT ( * ) AS REAL ) * 15 ELSE + 44 + + 39 END / + 23 - 28 + + 49 * - 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8708
SELECT - COALESCE ( - CASE + COUNT( * ) WHEN + 54 THEN NULL WHEN + COUNT( * ) * + 70 * + + 56 * + 20 - 21 THEN + 41 WHEN - ( - COALESCE ( 6, - 11 ) ) THEN 50 DIV 78 END, COUNT( * ), MAX( DISTINCT 54 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8708
SELECT - COALESCE ( - CASE + COUNT ( * ) WHEN + 54 THEN NULL WHEN + COUNT ( * ) * + 70 * + + 56 * + 20 - 21 THEN + 41 WHEN - ( - COALESCE ( 6, - 11 ) ) THEN 50 / 78 END, COUNT ( * ), MAX ( DISTINCT 54 ) )
----
-1

query I rowsort
SELECT DISTINCT 75 * - 46 + + 75
----
-3375

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT ALL - 93 * + COUNT( * ) + + - 61 * SUM( + + 96 )
----
-5949

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL - 93 * + COUNT ( * ) + + - 61 * SUM ( + + 96 )
----
-5949

query I rowsort
SELECT DISTINCT + + 54 + - - 60 AS col0
----
114

query I rowsort
SELECT + - 27 - + 37 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ALL - - ( - + 74 ) - + - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL - - ( - + 74 ) - + - COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-8714
SELECT ALL 37 * + + 2, + 36 + - MIN( ALL 69 ) * + 61 AS col0
----
74
-4173

skipif mysql # not compatible
query II rowsort label-8714
SELECT ALL 37 * + + 2, + 36 + - MIN ( ALL 69 ) * + 61 AS col0
----
74
-4173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8715
SELECT DISTINCT - AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 39 - + + 1 AS col2
----
-40

query I rowsort
SELECT - + 95 * 82 + 96
----
-7694

query I rowsort
SELECT - 7 - 15
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8719
SELECT ALL CAST( + 68 AS SIGNED ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL CAST ( + 68 AS INTEGER ) AS col2
----
68

query I rowsort
SELECT ALL - COALESCE ( + - 14, - 47 + + 25, 96 - - 65 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT + + MAX( 28 ) + + 84 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-8721
SELECT + + MAX ( 28 ) + + 84 AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT + - 76 + + - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-8722
SELECT + - 76 + + - COUNT ( * )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT + COUNT( * ) * + NULLIF ( - 80, - 7 ) - + 78 - 97 + - COUNT( * ) + + + 68 * ( + ( 24 ) ) * 74 + + 41 * 33
----
121865

skipif mysql # not compatible
query I rowsort label-8723
SELECT + COUNT ( * ) * + NULLIF ( - 80, - 7 ) - + 78 - 97 + - COUNT ( * ) + + + 68 * ( + ( 24 ) ) * 74 + + 41 * 33
----
121865

query I rowsort
SELECT ALL - 96 * ( + - 30 )
----
2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8725
SELECT ALL MAX( + - 1 ) DIV 56 + - + COUNT( * ) * - MAX( ALL + 74 ) * + - 76 - 37 + - ( - + 30 ) DIV + 61 AS col2
----
-5661

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL MAX ( + - 1 ) / 56 + - + COUNT ( * ) * - MAX ( ALL + 74 ) * + - 76 - 37 + - ( - + 30 ) / + 61 AS col2
----
-5661

query I rowsort
SELECT ALL - 87 * 6
----
-522

query I rowsort
SELECT ALL - 23 * + 94
----
-2162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8728
SELECT DISTINCT - NULLIF ( + 36, - - ( - COUNT( * ) ) / + 98 - CAST( 91 AS SIGNED ) )
----
-36

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT - NULLIF ( + 36, - - ( - COUNT ( * ) ) / + 98 - CAST ( 91 AS INTEGER ) )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8729
SELECT + 34 * COALESCE ( - + 99, - 87 DIV - 53 DIV + 34 * NULLIF ( + - MIN( + ( - 24 ) ), MIN( + ( 18 ) ) ), 12 + 91, 5 + - 18 * CASE + AVG ( DISTINCT + 69 ) WHEN 53 THEN + 85 + - COUNT( * ) END, 59 ) + - 98 * - 44 AS col2
----
946

skipif mysql # not compatible
query I rowsort label-8729
SELECT + 34 * COALESCE ( - + 99, - 87 / - 53 / + 34 * NULLIF ( + - MIN ( + ( - 24 ) ), MIN ( + ( 18 ) ) ), 12 + 91, 5 + - 18 * CASE + AVG ( DISTINCT + 69 ) WHEN 53 THEN + 85 + - COUNT ( * ) END, 59 ) + - 98 * - 44 AS col2
----
946

query I rowsort
SELECT DISTINCT - COALESCE ( - - 66, - 20 ) AS col0
----
-66

query I rowsort
SELECT ALL - 24 + - - 10
----
-14

query I rowsort
SELECT 58 + 20 AS col1
----
78

query I rowsort
SELECT 77 * + + 27
----
2079

query I rowsort
SELECT 13 * - 55 * 25
----
-17875

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT - 6 + COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT - 6 + COUNT ( * ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8736
SELECT 3 + + MIN( ALL 16 ) AS col2, + 5 + - + 89 AS col2
----
19
-84

skipif mysql # not compatible
query II rowsort label-8736
SELECT 3 + + MIN ( ALL 16 ) AS col2, + 5 + - + 89 AS col2
----
19
-84

query I rowsort
SELECT ALL - 88 + 72 * 85
----
6032

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8738
SELECT ALL CAST( NULL AS DECIMAL ) + - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL CAST ( NULL AS REAL ) + - 56
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8739
SELECT - 45, COUNT( * ) * + - COUNT( * ) * - 25 AS col0
----
-45
25

skipif mysql # not compatible
query II rowsort label-8739
SELECT - 45, COUNT ( * ) * + - COUNT ( * ) * - 25 AS col0
----
-45
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8740
SELECT ALL + SUM( + + 8 ) + 23, - 43 AS col1
----
31
-43

skipif mysql # not compatible
query II rowsort label-8740
SELECT ALL + SUM ( + + 8 ) + 23, - 43 AS col1
----
31
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT 29 + + 72 + + SUM( ALL - + 15 ) * - + MIN( + + 55 ) AS col1
----
926

skipif mysql # not compatible
query I rowsort label-8741
SELECT 29 + + 72 + + SUM ( ALL - + 15 ) * - + MIN ( + + 55 ) AS col1
----
926

query II rowsort
SELECT - ( 28 ) * 55, - 34 * 28 * + + 66 AS col0
----
-1540
-62832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8743
SELECT 18 - + 35 DIV - COUNT( ALL 91 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8743
SELECT 18 - + 35 / - COUNT ( ALL 91 ) AS col2
----
53

query I rowsort
SELECT - 42 + + - ( 9 ) - + 82 AS col1
----
-133

query II rowsort
SELECT - ( - 78 ) - - 25 AS col0, + 45 + - 37 * 52 col0
----
103
-1879

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8746
SELECT DISTINCT - MIN( ALL - - 98 ) DIV - - 53 AS col0, + 10 AS col2
----
-1
10

skipif mysql # not compatible
query II rowsort label-8746
SELECT DISTINCT - MIN ( ALL - - 98 ) / - - 53 AS col0, + 10 AS col2
----
-1
10

query I rowsort
SELECT ALL + NULLIF ( - - 30, + - 93 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL NULLIF ( + 60, + COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL NULLIF ( + 60, + COUNT ( * ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT + 78 + - SUM( ALL 78 ) * - COALESCE ( + SUM( ALL - + 40 ), 66 + 31, - 60 + - + 98 * 44 ) AS col1
----
-3042

skipif mysql # not compatible
query I rowsort label-8749
SELECT + 78 + - SUM ( ALL 78 ) * - COALESCE ( + SUM ( ALL - + 40 ), 66 + 31, - 60 + - + 98 * 44 ) AS col1
----
-3042

query II rowsort
SELECT DISTINCT - 18 AS col1, 45
----
-18
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT CAST( 88 AS SIGNED ) * - - 38 AS col1
----
3344

skipif mysql # not compatible
query I rowsort label-8751
SELECT CAST ( 88 AS INTEGER ) * - - 38 AS col1
----
3344

query I rowsort
SELECT - 1 * 62
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8753
SELECT ALL 12 AS col2, 81 * + 74 col1, - COALESCE ( - 34, 45 + CAST( NULL AS SIGNED ) )
----
12
5994
34

skipif mysql # not compatible
query III rowsort label-8753
SELECT ALL 12 AS col2, 81 * + 74 col1, - COALESCE ( - 34, 45 + CAST ( NULL AS INTEGER ) )
----
12
5994
34

query I rowsort
SELECT ( + + 97 ) col0
----
97

query I rowsort
SELECT ALL 98 * + 20 AS col1
----
1960

query I rowsort
SELECT + 37 * + 56
----
2072

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT 59 + - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-8757
SELECT 59 + - COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT ALL NULLIF ( NULLIF ( - COUNT( * ), + 87 * + 71 - + ( - COUNT( * ) ) + - 35 / + MAX( DISTINCT - 24 ) ), - ( 51 ) + 98 * 60 ) * 41 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL NULLIF ( NULLIF ( - COUNT ( * ), + 87 * + 71 - + ( - COUNT ( * ) ) + - 35 / + MAX ( DISTINCT - 24 ) ), - ( 51 ) + 98 * 60 ) * 41 AS col2
----
-41

query II rowsort
SELECT 98 AS col0, + 54 * + 78 * - 17
----
98
-71604

onlyif mysql # aggregate syntax: 
query II rowsort label-8760
SELECT ALL - 7, COUNT( * ) + - - 58 AS col0
----
-7
59

skipif mysql # not compatible
query II rowsort label-8760
SELECT ALL - 7, COUNT ( * ) + - - 58 AS col0
----
-7
59

query II rowsort
SELECT DISTINCT - 10 AS col0, 31 col0
----
-10
31

query I rowsort
SELECT ALL 38 + 30 AS col1
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-8763
SELECT + 56 AS col2, - 35 DIV 77 col0
----
56
0

skipif mysql # not compatible
query II rowsort label-8763
SELECT + 56 AS col2, - 35 / 77 col0
----
56
0

query I rowsort
SELECT ALL 14 + + - 92 AS col0
----
-78

onlyif mysql # DIV for integer division: 
query II rowsort label-8765
SELECT + 30 DIV - 92 * + + 53 + - 92, + 65 * + 75 - + - 19 AS col1
----
-92
4894

skipif mysql # not compatible
query II rowsort label-8765
SELECT + 30 / - 92 * + + 53 + - 92, + 65 * + 75 - + - 19 AS col1
----
-92
4894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8766
SELECT 61 - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT 61 - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8767
SELECT 90, 96 DIV 37 * - - 23 AS col1
----
90
46

skipif mysql # not compatible
query II rowsort label-8767
SELECT 90, 96 / 37 * - - 23 AS col1
----
90
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8768
SELECT 56 * COUNT( DISTINCT - 80 ) * + + 53 * - 13 + + ( - CASE + + 15 WHEN COALESCE ( + + CASE + 97 WHEN + SUM( - CAST( NULL AS SIGNED ) ) + + ( - 67 ) / COUNT( * ) THEN + 0 END, 24 + 21 / + 84, - 77 + COUNT( * ) ) * CAST( - ( COALESCE ( - 86, + 8 ) ) AS SIGNED ) + 20 THEN 64 * - COALESCE ( + 75, 8, SUM( DISTINCT 67 ) ) WHEN - 24 THEN NULL ELSE NULL END ) * + COUNT( * ) + - ( + 66 + + 14 ) / + ( 94 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8768
SELECT 56 * COUNT ( DISTINCT - 80 ) * + + 53 * - 13 + + ( - CASE + + 15 WHEN COALESCE ( + + CASE + 97 WHEN + SUM ( - CAST ( NULL AS INTEGER ) ) + + ( - 67 ) / COUNT ( * ) THEN + 0 END, 24 + 21 / + 84, - 77 + COUNT ( * ) ) * CAST ( - ( COALESCE ( - 86, + 8 ) ) AS INTEGER ) + 20 THEN 64 * - COALESCE ( + 75, 8, SUM ( DISTINCT 67 ) ) WHEN - 24 THEN NULL ELSE NULL END ) * + COUNT ( * ) + - ( + 66 + + 14 ) / + ( 94 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT ALL + 65 DIV 38 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + 65 / 38 AS col2
----
1

query II rowsort
SELECT 98 col0, 2
----
98
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT ALL - SUM( ALL 16 ) + + 8
----
-8

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL - SUM ( ALL 16 ) + + 8
----
-8

query I rowsort
SELECT ( - 61 ) * - ( 0 ) - 40 + + ( 21 )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT 96 * 13 DIV + 96
----
13

skipif mysql # not compatible
query I rowsort label-8773
SELECT 96 * 13 / + 96
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8774
SELECT DISTINCT - CAST( - COUNT( + ( + - 78 ) ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT - CAST ( - COUNT ( + ( + - 78 ) ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT 12 + + - 7
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8776
SELECT ALL - 93 - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL - 93 - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - ( - + 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT COUNT( * ) + ( - 25 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8778
SELECT COUNT ( * ) + ( - 25 ) AS col0
----
-24

query I rowsort
SELECT DISTINCT - ( - + 23 ) col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8780
SELECT CAST( NULL AS SIGNED ) * - 69 + + + 92 + + AVG ( DISTINCT + 52 ) * 37 + COUNT( ALL - + 74 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT CAST ( NULL AS INTEGER ) * - 69 + + + 92 + + AVG ( DISTINCT + 52 ) * 37 + COUNT ( ALL - + 74 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 78 - + 67 AS col0
----
-145

onlyif mysql # DIV for integer division: 
query I rowsort label-8782
SELECT ALL - 50 DIV 29
----
-1

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL - 50 / 29
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8783
SELECT DISTINCT + 6 / - ( - - COUNT( * ) ) * + CAST( NULL AS SIGNED ) / + 11 + 4 + - 29 + - 43 + + 29 * 34 + - + CAST( NULL AS DECIMAL ) * - MIN( 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT + 6 / - ( - - COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) / + 11 + 4 + - 29 + - 43 + + 29 * 34 + - + CAST ( NULL AS REAL ) * - MIN ( 44 )
----
NULL

query I rowsort
SELECT ALL - 0 * + 69 AS col2
----
0

query I rowsort
SELECT ALL + 89 * + 27 col2
----
2403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8786
SELECT - CASE - COUNT( * ) WHEN 24 DIV + - COUNT( * ) + - + AVG ( + - 6 ) * - + 96 + - 95 THEN NULL WHEN + 26 THEN NULL ELSE - 59 * 29 - - COUNT( * ) * + 95 END DIV + 42 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-8786
SELECT - CASE - COUNT ( * ) WHEN 24 / + - COUNT ( * ) + - + AVG ( + - 6 ) * - + 96 + - 95 THEN NULL WHEN + 26 THEN NULL ELSE - 59 * 29 - - COUNT ( * ) * + 95 END / + 42 AS col0
----
38

query I rowsort
SELECT 92 - - + 32
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL - CASE 77 WHEN - 3 THEN + + COUNT( * ) END * + - CASE - 6 WHEN - 64 THEN - 51 / ( + 28 ) END * - + COALESCE ( + 5, ( 84 ) * 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL - CASE 77 WHEN - 3 THEN + + COUNT ( * ) END * + - CASE - 6 WHEN - 64 THEN - 51 / ( + 28 ) END * - + COALESCE ( + 5, ( 84 ) * 3 )
----
NULL

query I rowsort
SELECT - 42 + 17
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-8790
SELECT 40 AS col1, + 52 DIV 44 + - 90 * + COALESCE ( + + 28, - 85 ) * - 0
----
40
1

skipif mysql # not compatible
query II rowsort label-8790
SELECT 40 AS col1, + 52 / 44 + - 90 * + COALESCE ( + + 28, - 85 ) * - 0
----
40
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8791
SELECT DISTINCT + 96 * - 34 * + NULLIF ( COUNT( * ), COALESCE ( 54, 41 ) DIV + 49 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT + 96 * - 34 * + NULLIF ( COUNT ( * ), COALESCE ( 54, 41 ) / + 49 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 4 + - 0 + + 58
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT DISTINCT - 4 + ( - COUNT( * ) )
----
-5

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT - 4 + ( - COUNT ( * ) )
----
-5

query II rowsort
SELECT + - 93 - - 26 AS col1, - 63
----
-67
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT + COUNT( * ) * - - COUNT( - ( - 90 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8795
SELECT + COUNT ( * ) * - - COUNT ( - ( - 90 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8796
SELECT ALL 38 + + CAST( 61 AS SIGNED ) + + - 80
----
19

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL 38 + + CAST ( 61 AS INTEGER ) + + - 80
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-8797
SELECT ALL 97 + + 44 AS col1, COUNT( * ) * - - 11 * + 39 * + + 72
----
141
30888

skipif mysql # not compatible
query II rowsort label-8797
SELECT ALL 97 + + 44 AS col1, COUNT ( * ) * - - 11 * + 39 * + + 72
----
141
30888

query I rowsort
SELECT ALL 73 + 48 + - 16 + + 33 AS col0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT + SUM( + 53 ) + + + ( COUNT( * ) ) - - + 35 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8799
SELECT + SUM ( + 53 ) + + + ( COUNT ( * ) ) - - + 35 AS col2
----
89

query I rowsort
SELECT ALL 91 * + + 90 AS col1
----
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT + SUM( DISTINCT + + 72 ) * - 34 * 63 * + 51
----
-7865424

skipif mysql # not compatible
query I rowsort label-8801
SELECT + SUM ( DISTINCT + + 72 ) * - 34 * 63 * + 51
----
-7865424

query II rowsort
SELECT + 3 * 52, - 46 - - - 16 + - 36 AS col0
----
156
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT 70 * - COUNT( * ) - 41
----
-111

skipif mysql # not compatible
query I rowsort label-8803
SELECT 70 * - COUNT ( * ) - 41
----
-111

query II rowsort
SELECT DISTINCT 26 * - 18 AS col0, 36 AS col0
----
-468
36

query I rowsort
SELECT ALL 95 * + + 92 * + + 91 + + 29 AS col1
----
795369

query I rowsort
SELECT + ( + 3 ) * - - 91 AS col0
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8807
SELECT DISTINCT ( + - 14 ) * + + 8 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT ( + - 14 ) * + + 8 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT DISTINCT + SUM( ALL 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT + SUM ( ALL 58 ) AS col0
----
58

query I rowsort
SELECT - 88 / - + 90 + - CASE - 44 WHEN + NULLIF ( + 64, 67 * + - 32 * + + 28 * 62 ) THEN - + 91 + + 4 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT NULLIF ( - 47, - MIN( + - 1 ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-8810
SELECT NULLIF ( - 47, - MIN ( + - 1 ) ) AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8811
SELECT + COUNT( * ) + - - CAST( NULL AS SIGNED ) - - 22 + - 21 - + SUM( 56 ) * 11 / - NULLIF ( - 78, + - 65 + + - 4 * + CASE 1 WHEN NULLIF ( 60, 36 + + 74 * - 26 ) + 61 THEN 55 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) - - 22 + - 21 - + SUM ( 56 ) * 11 / - NULLIF ( - 78, + - 65 + + - 4 * + CASE 1 WHEN NULLIF ( 60, 36 + + 74 * - 26 ) + 61 THEN 55 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8812
SELECT ALL ( + 67 ) DIV - 69 AS col2, - 43
----
0
-43

skipif mysql # not compatible
query II rowsort label-8812
SELECT ALL ( + 67 ) / - 69 AS col2, - 43
----
0
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8813
SELECT - CAST( - + 47 AS SIGNED ) * COALESCE ( 7, + 60, 37 * 29 ) + + 17 + COALESCE ( - 80, + 85 ) + + 78 DIV COUNT( * ) AS col1
----
344

skipif mysql # not compatible
query I rowsort label-8813
SELECT - CAST ( - + 47 AS INTEGER ) * COALESCE ( 7, + 60, 37 * 29 ) + + 17 + COALESCE ( - 80, + 85 ) + + 78 / COUNT ( * ) AS col1
----
344

query I rowsort
SELECT COALESCE ( + 4, + 88 )
----
4

query I rowsort
SELECT ALL + + 50 col2
----
50

query I rowsort
SELECT + 20 * - 47 * - 67 - - 56 col2
----
63036

query II rowsort
SELECT ALL - + NULLIF ( + + 30, + 79 * + 22 ) * - 83, + 16 AS col1
----
2490
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8818
SELECT - 33 - - 34 DIV + - NULLIF ( - + 44, + - 25 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-8818
SELECT - 33 - - 34 / + - NULLIF ( - + 44, + - 25 ) AS col2
----
-33

query I rowsort
SELECT DISTINCT + - 73 col1
----
-73

query I rowsort
SELECT - 47 + + 32
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8821
SELECT ALL + + CAST( + 49 AS SIGNED ) * - 98
----
-4802

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL + + CAST ( + 49 AS INTEGER ) * - 98
----
-4802

query II rowsort
SELECT ALL + - ( + - 21 ) AS col0, 10 AS col2
----
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT - 22 * + COUNT( * ) + + NULLIF ( - + COUNT( * ), - ( COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8823
SELECT - 22 * + COUNT ( * ) + + NULLIF ( - + COUNT ( * ), - ( COUNT ( * ) ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + - ( - 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT 13 * + MAX( ALL + 78 ) + - - 82 + 67 AS col0
----
1163

skipif mysql # not compatible
query I rowsort label-8825
SELECT 13 * + MAX ( ALL + 78 ) + - - 82 + 67 AS col0
----
1163

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT + 4 * - 12 * + + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-8826
SELECT + 4 * - 12 * + + COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT - 74 * + 97 * - COUNT( + + 22 )
----
7178

skipif mysql # not compatible
query I rowsort label-8827
SELECT - 74 * + 97 * - COUNT ( + + 22 )
----
7178

query I rowsort
SELECT + + 38 + + + 84 + - 2 + - 96 col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8829
SELECT + 9 * + + 53 + 86 DIV - + 92 - + + COUNT( * ) AS col2
----
476

skipif mysql # not compatible
query I rowsort label-8829
SELECT + 9 * + + 53 + 86 / - + 92 - + + COUNT ( * ) AS col2
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL + CASE - COUNT( * ) WHEN + + SUM( + - 72 ) THEN NULL ELSE + + 71 END AS col0
----
71

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL + CASE - COUNT ( * ) WHEN + + SUM ( + - 72 ) THEN NULL ELSE + + 71 END AS col0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-8831
SELECT - - CASE + MIN( - - 95 ) WHEN - 95 THEN ( - - 42 ) END - - - 56, + COUNT( * ) + + 70 AS col2
----
NULL
71

skipif mysql # not compatible
query II rowsort label-8831
SELECT - - CASE + MIN ( - - 95 ) WHEN - 95 THEN ( - - 42 ) END - - - 56, + COUNT ( * ) + + 70 AS col2
----
NULL
71

query I rowsort
SELECT ALL - ( + 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT - 63 + - + COUNT( - - 52 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-8833
SELECT - 63 + - + COUNT ( - - 52 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT DISTINCT + + 59 + + 22 * + MAX( DISTINCT + 61 ) * COUNT( * ) + + + MIN( 37 ) * - 42 * + COUNT( * ) col0
----
-153

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT + + 59 + + 22 * + MAX ( DISTINCT + 61 ) * COUNT ( * ) + + + MIN ( 37 ) * - 42 * + COUNT ( * ) col0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT DISTINCT - - MAX( DISTINCT - 47 ) + - - 66
----
19

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT - - MAX ( DISTINCT - 47 ) + - - 66
----
19

query II rowsort
SELECT ALL 16 * + 84 AS col0, - 48 AS col2
----
1344
-48

query I rowsort
SELECT DISTINCT 20 + - + 63 * - - 36
----
-2248

query I rowsort
SELECT - 90 + + 36 AS col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8839
SELECT ALL - COUNT( * ) + 79 * 38 DIV - COUNT( * )
----
-3003

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL - COUNT ( * ) + 79 * 38 / - COUNT ( * )
----
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT ALL - SUM( + - 91 ) * - 51 * ( - 81 ) + + - 47 * - CASE - COUNT( * ) WHEN COUNT( * ) THEN + 83 * - + 42 + ( 13 ) - 63 WHEN 78 THEN NULL ELSE - ( - 83 ) + + 83 END + + COUNT( ALL + 74 + + 53 )
----
383724

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL - SUM ( + - 91 ) * - 51 * ( - 81 ) + + - 47 * - CASE - COUNT ( * ) WHEN COUNT ( * ) THEN + 83 * - + 42 + ( 13 ) - 63 WHEN 78 THEN NULL ELSE - ( - 83 ) + + 83 END + + COUNT ( ALL + 74 + + 53 )
----
383724

query I rowsort
SELECT - 97 + - 68 + + ( + 42 ) + 96
----
-27

query I rowsort
SELECT + 62 + - 53
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ALL 44 + + 63 * + COUNT( * )
----
107

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL 44 + + 63 * + COUNT ( * )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT - 49 * ( CASE - ( - 64 ) WHEN 91 * - + CASE WHEN NOT 4 >= ( + - 97 * - + 4 * 32 ) THEN COUNT( * ) * + 89 END - SUM( + 71 ) * COUNT( * ) THEN NULL WHEN - 86 + 93 THEN NULL ELSE 36 END ) * - ( + 53 ) AS col1
----
93492

skipif mysql # not compatible
query I rowsort label-8844
SELECT - 49 * ( CASE - ( - 64 ) WHEN 91 * - + CASE WHEN NOT 4 >= ( + - 97 * - + 4 * 32 ) THEN COUNT ( * ) * + 89 END - SUM ( + 71 ) * COUNT ( * ) THEN NULL WHEN - 86 + 93 THEN NULL ELSE 36 END ) * - ( + 53 ) AS col1
----
93492

onlyif mysql # DIV for integer division: 
query I rowsort label-8845
SELECT DISTINCT 79 DIV - 4
----
-19

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT 79 / - 4
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT DISTINCT + 93 - + NULLIF ( + 6, MIN( DISTINCT + - ( - 96 ) ) * - - 76 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT + 93 - + NULLIF ( + 6, MIN ( DISTINCT + - ( - 96 ) ) * - - 76 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8847
SELECT + 19 + - 80 * + + 67 col0, SUM( DISTINCT 21 ) AS col2
----
-5341
21

skipif mysql # not compatible
query II rowsort label-8847
SELECT + 19 + - 80 * + + 67 col0, SUM ( DISTINCT 21 ) AS col2
----
-5341
21

query I rowsort
SELECT - ( + + 52 ) * 17 * 9 AS col2
----
-7956

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT + COUNT( * ) * + - CASE + 21 WHEN + + COUNT( ALL 2 ) THEN MAX( ALL + 49 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT + COUNT ( * ) * + - CASE + 21 WHEN + + COUNT ( ALL 2 ) THEN MAX ( ALL + 49 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 60 * + 22 col0
----
1320

query II rowsort
SELECT ALL + 86, 44 * - 71 AS col1
----
86
-3124

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT 3 * - 19 + + - 29 + - 77 * + 37 * MIN( ALL 88 )
----
-250798

skipif mysql # not compatible
query I rowsort label-8852
SELECT 3 * - 19 + + - 29 + - 77 * + 37 * MIN ( ALL 88 )
----
-250798

onlyif mysql # DIV for integer division: 
query I rowsort label-8853
SELECT + 22 DIV 29
----
0

skipif mysql # not compatible
query I rowsort label-8853
SELECT + 22 / 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT ALL MAX( ALL + 19 ) * 54 * - 75 + + ( + 91 ) + NULLIF ( CASE - - ( + - 3 ) WHEN + - 26 THEN NULL ELSE + 91 END, + 0 ) * - COUNT( * ) AS col1
----
-76950

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL MAX ( ALL + 19 ) * 54 * - 75 + + ( + 91 ) + NULLIF ( CASE - - ( + - 3 ) WHEN + - 26 THEN NULL ELSE + 91 END, + 0 ) * - COUNT ( * ) AS col1
----
-76950

query I rowsort
SELECT DISTINCT + + ( + 93 ) AS col1
----
93

query I rowsort
SELECT ALL + 23 * + 28 * + 60 AS col1
----
38640

query II rowsort
SELECT ALL + + 14, 41 * - 65 AS col2
----
14
-2665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8858
SELECT - CAST( - 48 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-8858
SELECT - CAST ( - 48 AS INTEGER )
----
48

query I rowsort
SELECT DISTINCT + - NULLIF ( - 38, 56 * - 35 ) col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL MIN( + ( 3 ) ) * - + 74 + - NULLIF ( + 26, - + 79 ) + + + 87 + + 74 + + - MAX( 31 ) AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL MIN ( + ( 3 ) ) * - + 74 + - NULLIF ( + 26, - + 79 ) + + + 87 + + 74 + + - MAX ( 31 ) AS col2
----
-118

query II rowsort
SELECT 88 AS col2, + 25 AS col0
----
88
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT + ( + 38 ) * - ( + - 21 ) + - COUNT( * )
----
797

skipif mysql # not compatible
query I rowsort label-8862
SELECT + ( + 38 ) * - ( + - 21 ) + - COUNT ( * )
----
797

query II rowsort
SELECT + + 6, 40 AS col1
----
6
40

query II rowsort
SELECT ALL - 7 + + 8 * - 62 AS col2, - 38 * - 17 AS col0
----
-503
646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8865
SELECT ALL 8 + + 7 + 53 + + 11 * CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) + 58 * 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL 8 + + 7 + 53 + + 11 * CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) + 58 * 17 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8866
SELECT ALL + CAST( NULL AS DECIMAL ) * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL + CAST ( NULL AS REAL ) * - 2
----
NULL

query I rowsort
SELECT ALL - 57 + - 35 + - 11 + - + 85 AS col2
----
-188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8868
SELECT ALL + 46 + + 19 * + CAST( + 27 AS SIGNED ) * 30 * 42
----
646426

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL + 46 + + 19 * + CAST ( + 27 AS INTEGER ) * 30 * 42
----
646426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8869
SELECT - CAST( - 65 AS SIGNED ) col2
----
65

skipif mysql # not compatible
query I rowsort label-8869
SELECT - CAST ( - 65 AS INTEGER ) col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT ALL - 71 + + + 2 + + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL - 71 + + + 2 + + COUNT ( * )
----
-68

query I rowsort
SELECT + 13 - + 14 * - 79 + 5
----
1124

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT ALL + COUNT( ALL - 71 ) * 63 + + - 18 * - 19 * + MIN( 97 ) AS col0
----
33237

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL + COUNT ( ALL - 71 ) * 63 + + - 18 * - 19 * + MIN ( 97 ) AS col0
----
33237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8873
SELECT NULLIF ( 1, - 71 + + 33 ) - + - CAST( - ( + ( COUNT( * ) ) ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8873
SELECT NULLIF ( 1, - 71 + + 33 ) - + - CAST ( - ( + ( COUNT ( * ) ) ) AS INTEGER )
----
0

query I rowsort
SELECT 13 + - 55 / CASE - - 45 WHEN + 58 * - 33 THEN 2 / 43 * + + ( 41 ) + - ( - 57 ) * + 29 WHEN - 78 THEN NULL WHEN + 58 THEN 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT ALL + 6 - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL + 6 - COUNT ( * )
----
5

query I rowsort
SELECT 96 - 62 + + - 27
----
7

query I rowsort
SELECT ALL - 34 * + + 63 AS col1
----
-2142

query I rowsort
SELECT 6 - 52
----
-46

query I rowsort
SELECT DISTINCT 72 * 25 col0
----
1800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8880
SELECT 22 * + - CAST( SUM( DISTINCT - 21 ) AS SIGNED )
----
462

skipif mysql # not compatible
query I rowsort label-8880
SELECT 22 * + - CAST ( SUM ( DISTINCT - 21 ) AS INTEGER )
----
462

query I rowsort
SELECT ALL - 34 * + 48 AS col0
----
-1632

query I rowsort
SELECT DISTINCT - 16 * + - 72
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT 5 + + + CASE 75 WHEN - + SUM( DISTINCT 36 ) / - ( - 61 ) THEN + - 16 END * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT 5 + + + CASE 75 WHEN - + SUM ( DISTINCT 36 ) / - ( - 61 ) THEN + - 16 END * - 64
----
NULL

query I rowsort
SELECT 41 - + + ( - 17 )
----
58

query I rowsort
SELECT ALL + 71 * CASE + + ( 42 ) WHEN + + 50 + - 17 THEN NULLIF ( + 39, 31 ) ELSE 11 END
----
781

onlyif mysql # DIV for integer division: 
query I rowsort label-8886
SELECT ALL 24 DIV + 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL 24 / + 43 AS col1
----
0

query I rowsort
SELECT 37 * 74
----
2738

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL - COUNT( DISTINCT - 73 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - COUNT ( DISTINCT - 73 ) AS col0
----
-1

query I rowsort
SELECT - 68 + - - 26 col0
----
-42

query I rowsort
SELECT ALL + 2 + 53 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT + MIN( ALL - 86 ) col2
----
-86

skipif mysql # not compatible
query I rowsort label-8891
SELECT + MIN ( ALL - 86 ) col2
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8892
SELECT ALL 26 + - - COUNT( * ) - + + SUM( + 80 ) + - 31 DIV - 72
----
-53

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL 26 + - - COUNT ( * ) - + + SUM ( + 80 ) + - 31 / - 72
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT COUNT( * ) * - 91 + + + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-8893
SELECT COUNT ( * ) * - 91 + + + COUNT ( * )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT 87 * - - 6 + 53 + - SUM( ( + 7 ) ) * - 64
----
1023

skipif mysql # not compatible
query I rowsort label-8894
SELECT 87 * - - 6 + 53 + - SUM ( ( + 7 ) ) * - 64
----
1023

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8895
SELECT - - COUNT( * ) DIV - 60 DIV - + COUNT( * ) + - COALESCE ( ( + - 81 ), + - COUNT( * ), 36 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-8895
SELECT - - COUNT ( * ) / - 60 / - + COUNT ( * ) + - COALESCE ( ( + - 81 ), + - COUNT ( * ), 36 ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8896
SELECT ALL ( + CASE + ( 16 ) WHEN - 30 + - COUNT( * ) THEN - ( - - 53 ) * + 84 * + 40 / - 80 + - - NULLIF ( 12, - - 92 ) + CAST( + NULLIF ( 32, COALESCE ( - 83, + 47 ) ) AS SIGNED ) * - ( 94 / COALESCE ( 62, COALESCE ( - CAST( NULL AS SIGNED ), + COUNT( * ) ) / 27 ) ) ELSE NULL END ) + + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL ( + CASE + ( 16 ) WHEN - 30 + - COUNT ( * ) THEN - ( - - 53 ) * + 84 * + 40 / - 80 + - - NULLIF ( 12, - - 92 ) + CAST ( + NULLIF ( 32, COALESCE ( - 83, + 47 ) ) AS INTEGER ) * - ( 94 / COALESCE ( 62, COALESCE ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) / 27 ) ) ELSE NULL END ) + + 61 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8897
SELECT ALL - CAST( - 37 AS SIGNED ) + 71 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL - CAST ( - 37 AS INTEGER ) + 71 AS col2
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT DISTINCT AVG ( 56 ) + ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT AVG ( 56 ) + ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT DISTINCT - + MIN( - + 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT - + MIN ( - + 41 ) AS col1
----
41

query I rowsort
SELECT + 45 + + 37 * - + 8 AS col2
----
-251

query II rowsort
SELECT ALL - 75 + 45 * - - 97 * - 98, 66 * + 22 * 53 AS col2
----
-427845
76956

query I rowsort
SELECT DISTINCT - 17 * + - 7 * 65 * + 18
----
139230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8903
SELECT CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - 11 + 38 AS col2
----
27

query I rowsort
SELECT + 62 * + 44 - + 2
----
2726

query I rowsort
SELECT 38 + - + 41 AS col0
----
-3

query I rowsort
SELECT - ( - 22 ) + 4
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT - COUNT( ALL - 86 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8908
SELECT - COUNT ( ALL - 86 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8909
SELECT ALL 15 DIV + 92 col0
----
0

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL 15 / + 92 col0
----
0

query I rowsort
SELECT ALL + 2 * - - 12 * 35
----
840

query I rowsort
SELECT ALL - ( 98 ) * - - 77 + + 13 * - + 61 AS col1
----
-8339

query I rowsort
SELECT 6 + + 33
----
39

query I rowsort
SELECT ALL 8 - 13 - 82 * 77
----
-6319

query I rowsort
SELECT DISTINCT 67 * 58 AS col1
----
3886

query I rowsort
SELECT DISTINCT 43 * + - 8 * - 1 AS col0
----
344

query I rowsort
SELECT 31 * + 5
----
155

query II rowsort
SELECT 2 + - ( - + 25 ) AS col1, - 91 - 45 * - - 8
----
27
-451

onlyif mysql # aggregate syntax: 
query II rowsort label-8918
SELECT - 20, + COUNT( * ) col2
----
-20
1

skipif mysql # not compatible
query II rowsort label-8918
SELECT - 20, + COUNT ( * ) col2
----
-20
1

query I rowsort
SELECT 41 + 44 col2
----
85

query I rowsort
SELECT 21 * + 85 AS col2
----
1785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8921
SELECT DISTINCT COALESCE ( - ( NULLIF ( + - 72, 84 ) ), - COUNT( * ) * + MIN( 39 ) + + - 93 ) + - CAST( NULL AS SIGNED ) * + - 14 AS col1, NULLIF ( - 37, - 97 + + - 97 ) * COUNT( * ) + COUNT( + ( ( 80 ) ) ) * MAX( 40 * + 43 )
----
NULL
1683

skipif mysql # not compatible
query II rowsort label-8921
SELECT DISTINCT COALESCE ( - ( NULLIF ( + - 72, 84 ) ), - COUNT ( * ) * + MIN ( 39 ) + + - 93 ) + - CAST ( NULL AS INTEGER ) * + - 14 AS col1, NULLIF ( - 37, - 97 + + - 97 ) * COUNT ( * ) + COUNT ( + ( ( 80 ) ) ) * MAX ( 40 * + 43 )
----
NULL
1683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT 37 + + CAST( NULL AS SIGNED ) - + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT 37 + + CAST ( NULL AS INTEGER ) - + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT DISTINCT - CASE + - 78 WHEN 41 + - COUNT( * ) THEN NULL ELSE - 33 END AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - CASE + - 78 WHEN 41 + - COUNT ( * ) THEN NULL ELSE - 33 END AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8924
SELECT COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8924
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8925
SELECT ALL + - 45 * - - COUNT( * ) * - 54 + - 13 + 55 DIV 86 * - - 42 - - 75 + ( - - 64 ) DIV 27 * + 82 * 67 col0
----
13480

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL + - 45 * - - COUNT ( * ) * - 54 + - 13 + 55 / 86 * - - 42 - - 75 + ( - - 64 ) / 27 * + 82 * 67 col0
----
13480

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * + 71 + COUNT( * ) * + + 43 + + 9 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * + 71 + COUNT ( * ) * + + 43 + + 9 AS col0
----
-19

query I rowsort
SELECT 82 - - + 53 * + 48
----
2626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8928
SELECT ALL 94 * - + 17 DIV - COUNT( * ) + - - 80 + + 16 * + + 41 + + 27 AS col2
----
2361

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL 94 * - + 17 / - COUNT ( * ) + - - 80 + + 16 * + + 41 + + 27 AS col2
----
2361

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8929
SELECT + ( ( + COALESCE ( + 75, + 25, + 26 + CAST( NULL AS SIGNED ) ) ) )
----
75

skipif mysql # not compatible
query I rowsort label-8929
SELECT + ( ( + COALESCE ( + 75, + 25, + 26 + CAST ( NULL AS INTEGER ) ) ) )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT DISTINCT + - ( + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT + - ( + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8931
SELECT - - 85 DIV 76 * + - ( COALESCE ( 77, - ( - - NULLIF ( - 31, 22 ) ) + + 0, + 64 + - + CAST( + - ( - + 69 ) AS SIGNED ) * - 62 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-8931
SELECT - - 85 / 76 * + - ( COALESCE ( 77, - ( - - NULLIF ( - 31, 22 ) ) + + 0, + 64 + - + CAST ( + - ( - + 69 ) AS INTEGER ) * - 62 ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8932
SELECT + NULLIF ( - 29, CAST( COALESCE ( - SUM( - 9 ), + COUNT( * ), + 95 ) AS SIGNED ) * - - 71 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8932
SELECT + NULLIF ( - 29, CAST ( COALESCE ( - SUM ( - 9 ), + COUNT ( * ), + 95 ) AS INTEGER ) * - - 71 ) AS col0
----
-29

query II rowsort
SELECT DISTINCT + + 44, ( - 89 ) * + - 34 AS col0
----
44
3026

query I rowsort
SELECT ALL - 39 * - 58 * 3 - - 91 - + 14 AS col1
----
6863

query I rowsort
SELECT DISTINCT 71 * - 98
----
-6958

query II rowsort
SELECT ALL 94 AS col2, 96
----
94
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT - NULLIF ( - 80, COUNT( * ) ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8937
SELECT - NULLIF ( - 80, COUNT ( * ) ) AS col2
----
80

query II rowsort
SELECT DISTINCT 26 * 15 AS col2, 27 AS col0
----
390
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT - 91 - - MIN( ALL - 84 )
----
-175

skipif mysql # not compatible
query I rowsort label-8939
SELECT - 91 - - MIN ( ALL - 84 )
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT + ( + 49 ) + CASE WHEN NOT 23 IN ( 22 * + - 17 + + 11 * - MIN( DISTINCT + + 72 ) ) THEN 80 * 7 * + 82 / + CASE + 75 WHEN - 9 * - 54 THEN COUNT( * ) WHEN 19 THEN - 43 / - 82 + + ( - 83 ) * + 76 ELSE NULL END * 91 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT + ( + 49 ) + CASE WHEN NOT 23 IN ( 22 * + - 17 + + 11 * - MIN ( DISTINCT + + 72 ) ) THEN 80 * 7 * + 82 / + CASE + 75 WHEN - 9 * - 54 THEN COUNT ( * ) WHEN 19 THEN - 43 / - 82 + + ( - 83 ) * + 76 ELSE NULL END * 91 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 84 * + 54
----
4536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8942
SELECT + 43 + - CAST( NULL AS SIGNED ) + COUNT( ALL - 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8942
SELECT + 43 + - CAST ( NULL AS INTEGER ) + COUNT ( ALL - 50 )
----
NULL

query II rowsort
SELECT 77 AS col1, - 42
----
77
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT ALL ( + 91 ) + - 4 * COUNT( * ) + + + 50
----
137

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL ( + 91 ) + - 4 * COUNT ( * ) + + + 50
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8945
SELECT + 13 - - 2 DIV COALESCE ( 28, 14 + - + 3 + - COUNT( * ) )
----
13

skipif mysql # not compatible
query I rowsort label-8945
SELECT + 13 - - 2 / COALESCE ( 28, 14 + - + 3 + - COUNT ( * ) )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT + 30 * - + CASE + ( + 41 ) WHEN - MAX( ALL 37 ) THEN SUM( + - 53 ) ELSE 71 END AS col0
----
-2130

skipif mysql # not compatible
query I rowsort label-8946
SELECT + 30 * - + CASE + ( + 41 ) WHEN - MAX ( ALL 37 ) THEN SUM ( + - 53 ) ELSE 71 END AS col0
----
-2130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8947
SELECT + COUNT( * ) DIV SUM( ALL - COALESCE ( + 4, + 9 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8947
SELECT + COUNT ( * ) / SUM ( ALL - COALESCE ( + 4, + 9 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8948
SELECT ALL ( - 60 ) + + NULLIF ( - 75, 53 ) / - ( - + CAST( NULL AS SIGNED ) ) + 38 + - COUNT( * ) - - - 51 - 58 + + + 61 * - - MIN( ALL + 33 ) * 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL ( - 60 ) + + NULLIF ( - 75, 53 ) / - ( - + CAST ( NULL AS INTEGER ) ) + 38 + - COUNT ( * ) - - - 51 - 58 + + + 61 * - - MIN ( ALL + 33 ) * 22 AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( 93, - - 99 ) AS col2
----
-93

query I rowsort
SELECT + 94 * + - 20 AS col2
----
-1880

onlyif mysql # aggregate syntax: 
query II rowsort label-8951
SELECT + COUNT( * ) AS col2, 87 AS col2
----
1
87

skipif mysql # not compatible
query II rowsort label-8951
SELECT + COUNT ( * ) AS col2, 87 AS col2
----
1
87

query I rowsort
SELECT - - 81 col0
----
81

query I rowsort
SELECT DISTINCT + 69 + - 21
----
48

query I rowsort
SELECT ALL + + NULLIF ( + + 33, + 33 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT DISTINCT - - 82 / - 27 * + + 94 + - 20 * 75 + - CAST( NULL AS SIGNED ) + + + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT - - 82 / - 27 * + + 94 + - 20 * 75 + - CAST ( NULL AS INTEGER ) + + + 79 AS col2
----
NULL

query I rowsort
SELECT - + 56 * ( + - 34 ) AS col2
----
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT ALL + - CASE + MAX( 5 ) WHEN - + 48 THEN + 61 ELSE - + SUM( DISTINCT + - 68 ) + 4 END
----
-72

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL + - CASE + MAX ( 5 ) WHEN - + 48 THEN + 61 ELSE - + SUM ( DISTINCT + - 68 ) + 4 END
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT DISTINCT 66 DIV - 64 - 5 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT 66 / - 64 - 5 AS col1
----
-6

query I rowsort
SELECT - 40 * - 35 AS col1
----
1400

query I rowsort
SELECT - - 78 + 80 + + 29 AS col1
----
187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8961
SELECT - - COUNT( DISTINCT + 84 ) DIV - COUNT( * ) + 2 + 66 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8961
SELECT - - COUNT ( DISTINCT + 84 ) / - COUNT ( * ) + 2 + 66 AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT ALL + - 74 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL + - 74 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 4 * - 67 * - 42 + + 95 AS col0
----
11351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8964
SELECT 81 AS col2, + 97 + CAST( - COUNT( * ) AS SIGNED ) * - 7
----
81
104

skipif mysql # not compatible
query II rowsort label-8964
SELECT 81 AS col2, + 97 + CAST ( - COUNT ( * ) AS INTEGER ) * - 7
----
81
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT ALL - CAST( + 82 AS SIGNED ) * 56 - - + 85 - - ( 74 ) * - 90 AS col2
----
-11167

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL - CAST ( + 82 AS INTEGER ) * 56 - - + 85 - - ( 74 ) * - 90 AS col2
----
-11167

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT - - 29 + + 74 + + MAX( - + ( - + 0 ) ) * - 18 * + + 40 AS col0
----
103

skipif mysql # not compatible
query I rowsort label-8966
SELECT - - 29 + + 74 + + MAX ( - + ( - + 0 ) ) * - 18 * + + 40 AS col0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8967
SELECT DISTINCT + + CASE 72 WHEN SUM( 20 ) * ( - 94 ) * - CAST( - 7 AS SIGNED ) + 17 + + + 72 * + 30 - - + 69 * + + 34 THEN + + COUNT( * ) * + 3 / - + 58 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT + + CASE 72 WHEN SUM ( 20 ) * ( - 94 ) * - CAST ( - 7 AS INTEGER ) + 17 + + + 72 * + 30 - - + 69 * + + 34 THEN + + COUNT ( * ) * + 3 / - + 58 END AS col0
----
NULL

query I rowsort
SELECT - 29 + + 65 - - 24
----
60

query I rowsort
SELECT - 3 + - + 8
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8970
SELECT - 20 DIV NULLIF ( + + 12, AVG ( + 84 ) ) * + - 63
----
63

skipif mysql # not compatible
query I rowsort label-8970
SELECT - 20 / NULLIF ( + + 12, AVG ( + 84 ) ) * + - 63
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-8971
SELECT ALL + COUNT( - 40 ) AS col0, + 41 AS col0
----
1
41

skipif mysql # not compatible
query II rowsort label-8971
SELECT ALL + COUNT ( - 40 ) AS col0, + 41 AS col0
----
1
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8972
SELECT + 97 * + CAST( + - 54 AS SIGNED ) * COALESCE ( - + 30, ( - COUNT( * ) ) ) AS col2
----
157140

skipif mysql # not compatible
query I rowsort label-8972
SELECT + 97 * + CAST ( + - 54 AS INTEGER ) * COALESCE ( - + 30, ( - COUNT ( * ) ) ) AS col2
----
157140

query I rowsort
SELECT + 55 + - + 57 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-8974
SELECT - 67 + - - 79, - 1 DIV 16 * + 57 + + + 10 AS col0
----
12
10

skipif mysql # not compatible
query II rowsort label-8974
SELECT - 67 + - - 79, - 1 / 16 * + 57 + + + 10 AS col0
----
12
10

query I rowsort
SELECT NULLIF ( - 62, + + 50 ) AS col0
----
-62

query I rowsort
SELECT + 49 + - + 59 * - + 37 * - 39 AS col0
----
-85088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8977
SELECT DISTINCT CAST( - MAX( ALL - - 62 ) AS SIGNED ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT CAST ( - MAX ( ALL - - 62 ) AS INTEGER ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT ALL - 47 * NULLIF ( + CASE - 30 WHEN - 69 THEN NULL WHEN - NULLIF ( 11, + + ( + 91 ) + + ( - + 15 ) ) + + MAX( DISTINCT 83 ) - 25 THEN - 26 + + COUNT( ALL + - 12 ) ELSE NULL END, 70 ) + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL - 47 * NULLIF ( + CASE - 30 WHEN - 69 THEN NULL WHEN - NULLIF ( 11, + + ( + 91 ) + + ( - + 15 ) ) + + MAX ( DISTINCT 83 ) - 25 THEN - 26 + + COUNT ( ALL + - 12 ) ELSE NULL END, 70 ) + - 83
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8979
SELECT ALL - 64 * + + 35 + + 50 col1, - COUNT( * ) AS col1
----
-2190
-1

skipif mysql # not compatible
query II rowsort label-8979
SELECT ALL - 64 * + + 35 + + 50 col1, - COUNT ( * ) AS col1
----
-2190
-1

query II rowsort
SELECT ALL + 12 * 11, + 57 * 55 AS col1
----
132
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT + 89 + - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-8981
SELECT + 89 + - COUNT ( * ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL 13 + - - 16 + - COUNT( * ) - + - 12 * + NULLIF ( + - ( - 99 ), + AVG ( - 88 ) ) * - 51 + - + 35
----
-60595

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL 13 + - - 16 + - COUNT ( * ) - + - 12 * + NULLIF ( + - ( - 99 ), + AVG ( - 88 ) ) * - 51 + - + 35
----
-60595

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL ( - + 44 ) + COUNT( - 22 )
----
-43

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL ( - + 44 ) + COUNT ( - 22 )
----
-43

query I rowsort
SELECT - 77 * 12 AS col1
----
-924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT - CAST( 95 AS SIGNED ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8985
SELECT - CAST ( 95 AS INTEGER ) AS col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8986
SELECT - 95 + - COUNT( * ) * - COALESCE ( - - 37, + COUNT( * ) DIV - + 56 ) + - - 8, + 9 + + 41 AS col2
----
-50
50

skipif mysql # not compatible
query II rowsort label-8986
SELECT - 95 + - COUNT ( * ) * - COALESCE ( - - 37, + COUNT ( * ) / - + 56 ) + - - 8, + 9 + + 41 AS col2
----
-50
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8987
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 49 + CAST( NULL AS SIGNED ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 49 + CAST ( NULL AS INTEGER ) * - 74
----
NULL

query I rowsort
SELECT 37 + - + 62 * + - 36 AS col0
----
2269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8989
SELECT CAST( - 73 AS SIGNED ) + - 68
----
-141

skipif mysql # not compatible
query I rowsort label-8989
SELECT CAST ( - 73 AS INTEGER ) + - 68
----
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8990
SELECT ALL - COALESCE ( - 24, + 86, 0 + COUNT( * ) * + 42 * + 72 + 88 * - 72 ) DIV - - 80 + + 71 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL - COALESCE ( - 24, + 86, 0 + COUNT ( * ) * + 42 * + 72 + 88 * - 72 ) / - - 80 + + 71 AS col2
----
71

query I rowsort
SELECT DISTINCT ( - + 26 ) AS col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8992
SELECT ALL NULLIF ( + 50, NULLIF ( 7, + - ( - 10 ) * 25 ) * 17 + - - CASE - 9 WHEN + - 46 THEN CAST( NULL AS SIGNED ) + MIN( ALL + ( + 88 ) ) ELSE + - 59 END ) + + + 84 col2
----
134

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL NULLIF ( + 50, NULLIF ( 7, + - ( - 10 ) * 25 ) * 17 + - - CASE - 9 WHEN + - 46 THEN CAST ( NULL AS INTEGER ) + MIN ( ALL + ( + 88 ) ) ELSE + - 59 END ) + + + 84 col2
----
134

query I rowsort
SELECT 73 + - 25 * + 90
----
-2177

query I rowsort
SELECT DISTINCT + ( + 53 ) col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT MIN( ALL - 53 ) * 54 * - 67 AS col1
----
191754

skipif mysql # not compatible
query I rowsort label-8995
SELECT MIN ( ALL - 53 ) * 54 * - 67 AS col1
----
191754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8996
SELECT + 38 * 51 * + + 81 + - CAST( + 59 AS SIGNED )
----
156919

skipif mysql # not compatible
query I rowsort label-8996
SELECT + 38 * 51 * + + 81 + - CAST ( + 59 AS INTEGER )
----
156919

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT ALL - 38 * - + 85 + COUNT( DISTINCT - 55 ) AS col1
----
3231

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL - 38 * - + 85 + COUNT ( DISTINCT - 55 ) AS col1
----
3231

onlyif mysql # DIV for integer division: 
query I rowsort label-8998
SELECT - - 88 DIV - 22 + + 93 + + 41 + - 82
----
48

skipif mysql # not compatible
query I rowsort label-8998
SELECT - - 88 / - 22 + + 93 + + 41 + - 82
----
48

query I rowsort
SELECT - 71 * + 52 AS col1
----
-3692

query II rowsort
SELECT + 93 col2, NULLIF ( - + 10, + + COALESCE ( - 62, - 79 ) ) AS col2
----
93
-10

query II rowsort
SELECT + 47 AS col2, 65 AS col2
----
47
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL - SUM( - - 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL - SUM ( - - 55 ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9003
SELECT ALL - 89 * + + MIN( + - COALESCE ( - 8, + 43, + 90 + - 56 + + - CAST( NULL AS SIGNED ) DIV 43 ) )
----
-712

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL - 89 * + + MIN ( + - COALESCE ( - 8, + 43, + 90 + - 56 + + - CAST ( NULL AS INTEGER ) / 43 ) )
----
-712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9004
SELECT 6 * - 20 * - + ( - NULLIF ( + + 2, - 62 * - CASE 58 WHEN + 95 + - COUNT( * ) THEN ( + 93 ) * + MAX( DISTINCT + COALESCE ( + 62, + CAST( NULL AS DECIMAL ) + - 61, - 57 * 23 + + 63 ) ) * CAST( NULL AS SIGNED ) ELSE NULL END ) )
----
-240

skipif mysql # not compatible
query I rowsort label-9004
SELECT 6 * - 20 * - + ( - NULLIF ( + + 2, - 62 * - CASE 58 WHEN + 95 + - COUNT ( * ) THEN ( + 93 ) * + MAX ( DISTINCT + COALESCE ( + 62, + CAST ( NULL AS REAL ) + - 61, - 57 * 23 + + 63 ) ) * CAST ( NULL AS INTEGER ) ELSE NULL END ) )
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT 41 * + CASE - - 72 WHEN - + 86 THEN + 88 / - COUNT( ALL 80 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT 41 * + CASE - - 72 WHEN - + 86 THEN + 88 / - COUNT ( ALL 80 ) END
----
NULL

query I rowsort
SELECT DISTINCT - ( + 63 ) + + 67 * + - 81
----
-5490

query II rowsort
SELECT ALL + 17 + + 91 + 52 AS col0, + 57 + ( + 66 )
----
160
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL - MIN( + 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL - MIN ( + 18 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT DISTINCT + NULLIF ( 92, - SUM( DISTINCT - + 55 ) * 82 ) * 40
----
3680

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT + NULLIF ( 92, - SUM ( DISTINCT - + 55 ) * 82 ) * 40
----
3680

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT 50 DIV + 51 * + - 30
----
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT 50 / + 51 * + - 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL - ( + MIN( + 23 ) ) + + 80
----
57

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL - ( + MIN ( + 23 ) ) + + 80
----
57

query I rowsort
SELECT 21 + + 11 AS col2
----
32

query I rowsort
SELECT 31 + - - ( - COALESCE ( + 97, + ( + - 22 ) + + - 88 ) )
----
-66

query II rowsort
SELECT - 35 AS col0, 30 col2
----
-35
30

query I rowsort
SELECT DISTINCT + 63 * + 37 AS col0
----
2331

query I rowsort
SELECT 10 * + + 95
----
950

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ALL MIN( + 60 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL MIN ( + 60 ) col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9018
SELECT - CASE - 50 WHEN + - MAX( ALL - 37 ) * - CAST( NULL AS SIGNED ) THEN NULL WHEN - 34 THEN + COUNT( * ) ELSE NULL END + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT - CASE - 50 WHEN + - MAX ( ALL - 37 ) * - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 34 THEN + COUNT ( * ) ELSE NULL END + 38
----
NULL

query II rowsort
SELECT ALL 34, 99 * + + 29 + - + 47 col0
----
34
2824

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT - + ( + MAX( ALL 0 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9020
SELECT - + ( + MAX ( ALL 0 ) ) AS col0
----
0

query I rowsort
SELECT 21 - - + 17 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT + CASE 18 WHEN - 83 * + 60 * + COUNT( + 69 ) THEN NULL WHEN + 13 THEN NULL ELSE + 21 + 96 END + - - 2
----
119

skipif mysql # not compatible
query I rowsort label-9022
SELECT + CASE 18 WHEN - 83 * + 60 * + COUNT ( + 69 ) THEN NULL WHEN + 13 THEN NULL ELSE + 21 + 96 END + - - 2
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9023
SELECT + 22 DIV - + 85 DIV - COUNT( * ) AS col0, - 1 DIV + + COALESCE ( + 86, + CASE - MAX( - 98 ) WHEN + ( - - CASE - - 51 WHEN + NULLIF ( ( - 18 ), + 79 * + COALESCE ( - MAX( DISTINCT - 19 ), - 12, + 21 DIV 62 ) ) * 21 + - 78 THEN NULL ELSE 26 END ) THEN - 77 WHEN AVG ( 13 ) THEN NULL ELSE NULL END * 39, 11 ) AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-9023
SELECT + 22 / - + 85 / - COUNT ( * ) AS col0, - 1 / + + COALESCE ( + 86, + CASE - MAX ( - 98 ) WHEN + ( - - CASE - - 51 WHEN + NULLIF ( ( - 18 ), + 79 * + COALESCE ( - MAX ( DISTINCT - 19 ), - 12, + 21 / 62 ) ) * 21 + - 78 THEN NULL ELSE 26 END ) THEN - 77 WHEN AVG ( 13 ) THEN NULL ELSE NULL END * 39, 11 ) AS col1
----
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9024
SELECT ALL - 69 AS col1, 35 * + CAST( NULL AS DECIMAL ) + - + 30 * 74 AS col1
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-9024
SELECT ALL - 69 AS col1, 35 * + CAST ( NULL AS REAL ) + - + 30 * 74 AS col1
----
-69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - 62 * - 82 + + SUM( ALL - 43 ) AS col1
----
5041

skipif mysql # not compatible
query I rowsort label-9025
SELECT - 62 * - 82 + + SUM ( ALL - 43 ) AS col1
----
5041

onlyif mysql # aggregate syntax: 
query II rowsort label-9026
SELECT - 46 col1, 12 * - COUNT( DISTINCT 7 )
----
-46
-12

skipif mysql # not compatible
query II rowsort label-9026
SELECT - 46 col1, 12 * - COUNT ( DISTINCT 7 )
----
-46
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT DISTINCT - + SUM( 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT - + SUM ( 63 )
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9028
SELECT - COUNT( * ), + 2 AS col0
----
-1
2

skipif mysql # not compatible
query II rowsort label-9028
SELECT - COUNT ( * ), + 2 AS col0
----
-1
2

query I rowsort
SELECT DISTINCT + 85 * ( + + 40 ) * - 31 + + - 88 * + CASE 10 WHEN + 48 THEN NULL ELSE 50 END
----
-109800

onlyif mysql # DIV for integer division: 
query II rowsort label-9030
SELECT 28 DIV ( + 33 ) AS col1, + 41 AS col2
----
0
41

skipif mysql # not compatible
query II rowsort label-9030
SELECT 28 / ( + 33 ) AS col1, + 41 AS col2
----
0
41

query I rowsort
SELECT 15 + - 51
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9032
SELECT + + COALESCE ( COUNT( ALL + ( 77 ) ), - 49 DIV - 44 + + + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-9032
SELECT + + COALESCE ( COUNT ( ALL + ( 77 ) ), - 49 / - 44 + + + 23 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT + ( + + 76 ) * - MAX( DISTINCT - 10 ) * + - 81
----
-61560

skipif mysql # not compatible
query I rowsort label-9033
SELECT + ( + + 76 ) * - MAX ( DISTINCT - 10 ) * + - 81
----
-61560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9034
SELECT + ( 20 ) * - CASE 14 WHEN - - 31 THEN NULL WHEN - COUNT( * ) + - - 15 THEN NULL ELSE + ( - 83 ) END * - 1 * + CAST( NULL AS DECIMAL ) * + MAX( + - 15 ) + - - 30 - - CASE + ( - 11 ) WHEN CAST( + 57 AS SIGNED ) THEN - 33 WHEN - 59 THEN ( 13 ) END * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT + ( 20 ) * - CASE 14 WHEN - - 31 THEN NULL WHEN - COUNT ( * ) + - - 15 THEN NULL ELSE + ( - 83 ) END * - 1 * + CAST ( NULL AS REAL ) * + MAX ( + - 15 ) + - - 30 - - CASE + ( - 11 ) WHEN CAST ( + 57 AS INTEGER ) THEN - 33 WHEN - 59 THEN ( 13 ) END * - 6
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9035
SELECT 21 * 87 DIV + - COUNT( * ) + + NULLIF ( 71, - - 40 )
----
-1756

skipif mysql # not compatible
query I rowsort label-9035
SELECT 21 * 87 / + - COUNT ( * ) + + NULLIF ( 71, - - 40 )
----
-1756

query I rowsort
SELECT 15 + + 95
----
110

query II rowsort
SELECT ALL - 85 + - 78 AS col1, 9
----
-163
9

query I rowsort
SELECT ALL 43 * - 65
----
-2795

query I rowsort
SELECT NULLIF ( + 22, + 96 ) + 77 + + - 11 * - 33 AS col2
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT ALL - 58 * - 27 * + COUNT( * )
----
1566

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL - 58 * - 27 * + COUNT ( * )
----
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT COUNT( * ) * - + 47 + + MIN( DISTINCT - NULLIF ( + 37, + 6 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-9041
SELECT COUNT ( * ) * - + 47 + + MIN ( DISTINCT - NULLIF ( + 37, + 6 ) )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9042
SELECT ALL 96 + + 60 / 72 * 86 * 12 + - + CAST( NULL AS SIGNED ) + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL 96 + + 60 / 72 * 86 * 12 + - + CAST ( NULL AS INTEGER ) + + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT + COUNT( - 55 ) * - 76 + - + 30 - - NULLIF ( + + 6, 93 + - 5 ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-9043
SELECT + COUNT ( - 55 ) * - 76 + - + 30 - - NULLIF ( + + 6, 93 + - 5 ) AS col2
----
-100

query I rowsort
SELECT DISTINCT 31 + + 6 * 59
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT ALL + COUNT( 60 )
----
1

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL + COUNT ( 60 )
----
1

query I rowsort
SELECT + 54 * + 47 AS col0
----
2538

query I rowsort
SELECT ALL ( - 88 ) - 67 AS col1
----
-155

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9048
SELECT ALL - 23 - 72 * + COUNT( * ) + - + 84 + + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL - 23 - 72 * + COUNT ( * ) + - + 84 + + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 24 * + + 47 col0
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL COUNT( * ) * + + 77 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL COUNT ( * ) * + + 77 AS col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9051
SELECT - ( - 57 ) * 11 + - 2 DIV + - 99
----
627

skipif mysql # not compatible
query I rowsort label-9051
SELECT - ( - 57 ) * 11 + - 2 / + - 99
----
627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9052
SELECT - + CAST( - - 32 AS SIGNED ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-9052
SELECT - + CAST ( - - 32 AS INTEGER ) AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9053
SELECT + 10 DIV + + 27 AS col0, 61 * + - 57 + - + MIN( ALL - 1 ) - + + 32 AS col0
----
0
-3508

skipif mysql # not compatible
query II rowsort label-9053
SELECT + 10 / + + 27 AS col0, 61 * + - 57 + - + MIN ( ALL - 1 ) - + + 32 AS col0
----
0
-3508

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT ALL + SUM( DISTINCT + + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL + SUM ( DISTINCT + + 95 ) AS col0
----
95

query I rowsort
SELECT - 33 + + 59 * + 32
----
1855

query I rowsort
SELECT - - 16 * - - 0
----
0

query I rowsort
SELECT ALL - 5 * - + 70 AS col0
----
350

query II rowsort
SELECT DISTINCT 8 * + 25 * + 42 * - 58 AS col2, 22
----
-487200
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9059
SELECT DISTINCT - - COUNT( * ) + - + COUNT( * ) AS col0, - 3 DIV + ( 20 ) + 70 + 30 * 12 AS col0
----
0
430

skipif mysql # not compatible
query II rowsort label-9059
SELECT DISTINCT - - COUNT ( * ) + - + COUNT ( * ) AS col0, - 3 / + ( 20 ) + 70 + 30 * 12 AS col0
----
0
430

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT CASE - COUNT( * ) WHEN + 87 THEN NULL WHEN 24 THEN + CASE + + 84 WHEN 89 THEN + + 43 ELSE NULL END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT CASE - COUNT ( * ) WHEN + 87 THEN NULL WHEN 24 THEN + CASE + + 84 WHEN 89 THEN + + 43 ELSE NULL END END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9061
SELECT ALL - 56 * COUNT( * ) AS col0, 56
----
-56
56

skipif mysql # not compatible
query II rowsort label-9061
SELECT ALL - 56 * COUNT ( * ) AS col0, 56
----
-56
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9062
SELECT - 96 + 23 * 47 + - CAST( ( 68 ) AS SIGNED ) * - 83 AS col0
----
6629

skipif mysql # not compatible
query I rowsort label-9062
SELECT - 96 + 23 * 47 + - CAST ( ( 68 ) AS INTEGER ) * - 83 AS col0
----
6629

query I rowsort
SELECT ALL - ( 40 ) + - + 3 * - + 10
----
-10

query I rowsort
SELECT ALL + COALESCE ( 2, 13 + 99 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9065
SELECT ALL + + 40 * + + 4 + - + COUNT( * ) DIV + 44 + - 38
----
122

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL + + 40 * + + 4 + - + COUNT ( * ) / + 44 + - 38
----
122

query I rowsort
SELECT - 62 * - ( + 13 )
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT + 96 * - COUNT( * ) + + + 20 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9067
SELECT + 96 * - COUNT ( * ) + + + 20 AS col0
----
-76

query I rowsort
SELECT ( - ( + 40 ) )
----
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9069
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, ( - - 51 ) DIV - + 69 * + + 45 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9069
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, ( - - 51 ) / - + 69 * + + 45 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9070
SELECT + MAX( DISTINCT + ( - + 11 ) ) AS col0, 25 AS col2
----
-11
25

skipif mysql # not compatible
query II rowsort label-9070
SELECT + MAX ( DISTINCT + ( - + 11 ) ) AS col0, 25 AS col2
----
-11
25

query I rowsort
SELECT ALL 84 * - 16
----
-1344

onlyif mysql # DIV for integer division: 
query I rowsort label-9072
SELECT + 90 DIV - 83
----
-1

skipif mysql # not compatible
query I rowsort label-9072
SELECT + 90 / - 83
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9073
SELECT ALL + 5 * + - 61 * 67 + - 96 + + - ( ( 79 ) ) + 41 * + 74 * + 82 * - 30 * - CAST( - 54 AS SIGNED ) AS col0, ( - - 31 ) * + - 6 AS col1
----
-403057170
-186

skipif mysql # not compatible
query II rowsort label-9073
SELECT ALL + 5 * + - 61 * 67 + - 96 + + - ( ( 79 ) ) + 41 * + 74 * + 82 * - 30 * - CAST ( - 54 AS INTEGER ) AS col0, ( - - 31 ) * + - 6 AS col1
----
-403057170
-186

query I rowsort
SELECT - 2 - + 51 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT + 8 * - MAX( ALL 98 ) col2
----
-784

skipif mysql # not compatible
query I rowsort label-9075
SELECT + 8 * - MAX ( ALL 98 ) col2
----
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ALL 90 * + CASE - 2 WHEN - 16 THEN NULL WHEN + 68 THEN - ( + COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL 90 * + CASE - 2 WHEN - 16 THEN NULL WHEN + 68 THEN - ( + COUNT ( * ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9077
SELECT ALL ( - COUNT( * ) ) * CASE 57 WHEN + 88 THEN + 53 WHEN - + 18 * 29 / + - 89 + + CAST( - NULLIF ( + - 67, + 75 ) AS SIGNED ) + - 30 + 67 * - + 29 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL ( - COUNT ( * ) ) * CASE 57 WHEN + 88 THEN + 53 WHEN - + 18 * 29 / + - 89 + + CAST ( - NULLIF ( + - 67, + 75 ) AS INTEGER ) + - 30 + 67 * - + 29 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9078
SELECT + 54 DIV - ( COALESCE ( CASE + MIN( + + 30 ) WHEN + COALESCE ( + MAX( DISTINCT + 9 ), - COALESCE ( - CAST( NULL AS SIGNED ), - 66, - 28 ), + 95 ) THEN 69 WHEN 65 * + + 19 THEN + + 63 * - 61 + 93 WHEN + 65 THEN NULL END, + 12 * 72, - 74 * + 63 + - ( 90 ) DIV + 13, + 64 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9078
SELECT + 54 / - ( COALESCE ( CASE + MIN ( + + 30 ) WHEN + COALESCE ( + MAX ( DISTINCT + 9 ), - COALESCE ( - CAST ( NULL AS INTEGER ), - 66, - 28 ), + 95 ) THEN 69 WHEN 65 * + + 19 THEN + + 63 * - 61 + 93 WHEN + 65 THEN NULL END, + 12 * 72, - 74 * + 63 + - ( 90 ) / + 13, + 64 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT + CASE + CASE 73 WHEN + COUNT( * ) + - - ( 13 ) THEN 39 / 53 * 49 * - + 33 + NULLIF ( - 95, + - COUNT( * ) + + 48 + - - NULLIF ( - - 69, - + 24 * 93 ) + 55 - - 63 * 21 / COUNT( 88 ) ) + 24 * MIN( 1 ) * 6 WHEN ( 30 ) * + COALESCE ( + 11 * + 48, + 22 ) + - 28 * + COUNT( * ) THEN + 97 * - MAX( ALL - 17 / 59 ) + 90 * 11 END WHEN + 3 THEN + 86 END / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9079
SELECT + CASE + CASE 73 WHEN + COUNT ( * ) + - - ( 13 ) THEN 39 / 53 * 49 * - + 33 + NULLIF ( - 95, + - COUNT ( * ) + + 48 + - - NULLIF ( - - 69, - + 24 * 93 ) + 55 - - 63 * 21 / COUNT ( 88 ) ) + 24 * MIN ( 1 ) * 6 WHEN ( 30 ) * + COALESCE ( + 11 * + 48, + 22 ) + - 28 * + COUNT ( * ) THEN + 97 * - MAX ( ALL - 17 / 59 ) + 90 * 11 END WHEN + 3 THEN + 86 END / COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT CASE 97 WHEN 23 + COUNT( * ) THEN + 41 WHEN + COUNT( * ) / 1 THEN + + 46 + - 26 - + + 21 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9080
SELECT CASE 97 WHEN 23 + COUNT ( * ) THEN + 41 WHEN + COUNT ( * ) / 1 THEN + + 46 + - 26 - + + 21 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL 73 * + + 19 - + ( + - COUNT( * ) ) + - 73 * - 8 * 65 * - COUNT( * ) * + 89 * - 16
----
54056428

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL 73 * + + 19 - + ( + - COUNT ( * ) ) + - 73 * - 8 * 65 * - COUNT ( * ) * + 89 * - 16
----
54056428

query I rowsort
SELECT + 48 * 50
----
2400

query I rowsort
SELECT ALL 54 * + 99 AS col0
----
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT + COALESCE ( + COUNT( * ), - 61 ) - - + 36 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9084
SELECT + COALESCE ( + COUNT ( * ), - 61 ) - - + 36 AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9085
SELECT ALL SUM( DISTINCT - 50 ) * - CASE - - ( + + NULLIF ( + CASE - ( 74 ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - + 82 / - - 22 + + 74 + + COUNT( * ) + 17 / - ( - 70 ) * - 72 THEN - - 23 - + - 20 WHEN 30 * + COUNT( * ) THEN CAST( - CAST( 9 AS SIGNED ) AS SIGNED ) * + 21 ELSE NULL END, 83 * 49 + 52 ) ) WHEN NULLIF ( 20, + COUNT( * ) + - 44 ) / 91 THEN NULL WHEN 99 * + 76 THEN + COUNT( DISTINCT - 86 ) ELSE NULL END + - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL SUM ( DISTINCT - 50 ) * - CASE - - ( + + NULLIF ( + CASE - ( 74 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - + 82 / - - 22 + + 74 + + COUNT ( * ) + 17 / - ( - 70 ) * - 72 THEN - - 23 - + - 20 WHEN 30 * + COUNT ( * ) THEN CAST ( - CAST ( 9 AS INTEGER ) AS INTEGER ) * + 21 ELSE NULL END, 83 * 49 + 52 ) ) WHEN NULLIF ( 20, + COUNT ( * ) + - 44 ) / 91 THEN NULL WHEN 99 * + 76 THEN + COUNT ( DISTINCT - 86 ) ELSE NULL END + - 9 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9086
SELECT ALL CASE + 3 WHEN + 78 * - 16 + 86 - 90 * - + 29 * + - 10 * - - 39 THEN + 73 / + 57 + + 56 + - 4 + + 94 * - CASE + 49 WHEN + - 64 THEN + - 42 WHEN - + 91 * - + ( CAST( NULL AS SIGNED ) ) THEN NULL ELSE + 16 * 16 END WHEN 90 * ( + CAST( NULL AS SIGNED ) ) - 1 * - 86 THEN NULL WHEN - 36 + 61 THEN - ( - 61 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL CASE + 3 WHEN + 78 * - 16 + 86 - 90 * - + 29 * + - 10 * - - 39 THEN + 73 / + 57 + + 56 + - 4 + + 94 * - CASE + 49 WHEN + - 64 THEN + - 42 WHEN - + 91 * - + ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + 16 * 16 END WHEN 90 * ( + CAST ( NULL AS INTEGER ) ) - 1 * - 86 THEN NULL WHEN - 36 + 61 THEN - ( - 61 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT COUNT( DISTINCT + - 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9087
SELECT COUNT ( DISTINCT + - 61 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT COUNT( + + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-9088
SELECT COUNT ( + + 58 )
----
1

query I rowsort
SELECT - 77 * - 59
----
4543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9090
SELECT ALL - COUNT( * ) DIV 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL - COUNT ( * ) / 77 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9091
SELECT + + 95 * + ( + COUNT( DISTINCT - 71 ) ) * + 19 * + 8 col0, + 60 DIV + COUNT( * ) + - - 3
----
14440
63

skipif mysql # not compatible
query II rowsort label-9091
SELECT + + 95 * + ( + COUNT ( DISTINCT - 71 ) ) * + 19 * + 8 col0, + 60 / + COUNT ( * ) + - - 3
----
14440
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT + 21 + - + CASE + 32 WHEN - - 3 THEN NULL WHEN - 73 * + 16 - + COUNT( * ) THEN COUNT( * ) ELSE NULL END + + + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9092
SELECT + 21 + - + CASE + 32 WHEN - - 3 THEN NULL WHEN - 73 * + 16 - + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END + + + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT - + ( + + COUNT( * ) ) - - 54 + 31 + - 95 col2
----
-11

skipif mysql # not compatible
query I rowsort label-9093
SELECT - + ( + + COUNT ( * ) ) - - 54 + 31 + - 95 col2
----
-11

query I rowsort
SELECT ALL + 40 * 79 AS col2
----
3160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9095
SELECT DISTINCT 36 + 8 + - 89 * CASE + 92 WHEN 0 * 17 + + - 97 THEN + 84 * - + 54 DIV + 67 + + 97 + + 4 * 90 ELSE + - SUM( 30 ) END AS col0
----
2714

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT 36 + 8 + - 89 * CASE + 92 WHEN 0 * 17 + + - 97 THEN + 84 * - + 54 / + 67 + + 97 + + 4 * 90 ELSE + - SUM ( 30 ) END AS col0
----
2714

query II rowsort
SELECT ALL - 78 AS col2, + 66 AS col1
----
-78
66

query I rowsort
SELECT DISTINCT ( - + 86 ) col2
----
-86

query I rowsort
SELECT COALESCE ( - 71, 23, 45 )
----
-71

query I rowsort
SELECT - - 13 * - + 76
----
-988

onlyif mysql # aggregate syntax: 
query II rowsort label-9100
SELECT - 43 AS col2, - 83 - + COUNT( * ) AS col0
----
-43
-84

skipif mysql # not compatible
query II rowsort label-9100
SELECT - 43 AS col2, - 83 - + COUNT ( * ) AS col0
----
-43
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL - - MAX( + 77 ) + + 72 * + + 17 * - 59 AS col1
----
-72139

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL - - MAX ( + 77 ) + + 72 * + + 17 * - 59 AS col1
----
-72139

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT - 38 - - COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9102
SELECT - 38 - - COUNT ( * ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL - 58 * - COUNT( * ) col1
----
58

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL - 58 * - COUNT ( * ) col1
----
58

query II rowsort
SELECT ALL + 5 AS col1, + 95 AS col2
----
5
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT 85 / + + 99 / - CAST( - CASE + + 28 WHEN - 28 THEN + 13 * - + 66 + 90 / 63 END AS SIGNED ) * + 44 / + 67 * - 16 * + 48 * + 68 + + ( - COALESCE ( - CAST( + - 72 AS SIGNED ), - 90 ) ) + - 26 * - 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9105
SELECT 85 / + + 99 / - CAST ( - CASE + + 28 WHEN - 28 THEN + 13 * - + 66 + 90 / 63 END AS INTEGER ) * + 44 / + 67 * - 16 * + 48 * + 68 + + ( - COALESCE ( - CAST ( + - 72 AS INTEGER ), - 90 ) ) + - 26 * - 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT + CASE 11 WHEN 57 THEN NULL WHEN - AVG ( + - 88 ) / - + 79 + + 70 + - 76 THEN - NULLIF ( - 50, + + 47 ) * - + 56 * + - 36 + 21 / - 13 ELSE + COUNT( * ) * + + 40 + + + 78 - + 38 END AS col0
----
80

skipif mysql # not compatible
query I rowsort label-9106
SELECT + CASE 11 WHEN 57 THEN NULL WHEN - AVG ( + - 88 ) / - + 79 + + 70 + - 76 THEN - NULLIF ( - 50, + + 47 ) * - + 56 * + - 36 + 21 / - 13 ELSE + COUNT ( * ) * + + 40 + + + 78 - + 38 END AS col0
----
80

query I rowsort
SELECT 21 + - 82
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9108
SELECT + CAST( + - 58 AS SIGNED ) DIV MIN( + 93 ) * + + COUNT( * ) * - + 46 - + + COUNT( * ) * 68 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-9108
SELECT + CAST ( + - 58 AS INTEGER ) / MIN ( + 93 ) * + + COUNT ( * ) * - + 46 - + + COUNT ( * ) * 68 AS col0
----
-68

query I rowsort
SELECT 66 - + + ( + - 56 )
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT ALL 42 - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL 42 - COUNT ( * )
----
41

query I rowsort
SELECT 47 * + 43 * 13 AS col2
----
26273

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9112
SELECT DISTINCT - CASE + 39 WHEN - COUNT( * ) * + COUNT( * ) + - 3 * + + ( 84 ) + + NULLIF ( - + 40, 49 ) + + - COUNT( DISTINCT + ( + COALESCE ( - - 80, 33, 79 ) ) ) * - COUNT( ALL + 9 ) THEN + 90 + - + ( - MAX( DISTINCT 21 ) ) + ( CAST( + COUNT( * ) AS DECIMAL ) ) / + 21 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT - CASE + 39 WHEN - COUNT ( * ) * + COUNT ( * ) + - 3 * + + ( 84 ) + + NULLIF ( - + 40, 49 ) + + - COUNT ( DISTINCT + ( + COALESCE ( - - 80, 33, 79 ) ) ) * - COUNT ( ALL + 9 ) THEN + 90 + - + ( - MAX ( DISTINCT 21 ) ) + ( CAST ( + COUNT ( * ) AS REAL ) ) / + 21 END AS col0
----
NULL

query I rowsort
SELECT 56 + - 28 AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9114
SELECT ALL 95 * - CAST( - MAX( - 79 ) AS SIGNED )
----
-7505

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL 95 * - CAST ( - MAX ( - 79 ) AS INTEGER )
----
-7505

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT CASE ( - 60 ) WHEN + + ( 49 ) + - 47 * ( + 46 ) * - 39 THEN - 30 * 11 + + 79 * + 70 * 15 - + 37 - - 81 + 88 END + + 17 - COALESCE ( + 50, 88, - NULLIF ( NULLIF ( + 47, 41 ), - 91 * 99 ) + ( COUNT( * ) ) ) + 74 * - NULLIF ( MIN( DISTINCT 49 ) * 97, - 54 + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT CASE ( - 60 ) WHEN + + ( 49 ) + - 47 * ( + 46 ) * - 39 THEN - 30 * 11 + + 79 * + 70 * 15 - + 37 - - 81 + 88 END + + 17 - COALESCE ( + 50, 88, - NULLIF ( NULLIF ( + 47, 41 ), - 91 * 99 ) + ( COUNT ( * ) ) ) + 74 * - NULLIF ( MIN ( DISTINCT 49 ) * 97, - 54 + 99 )
----
NULL

query I rowsort
SELECT ALL + 23 - 97 - 49
----
-123

query I rowsort
SELECT ( + 53 ) * + - 92 + + + 63 AS col0
----
-4813

query II rowsort
SELECT 42 AS col1, - 41 AS col0
----
42
-41

query II rowsort
SELECT + 88 AS col2, - 90
----
88
-90

query I rowsort
SELECT ALL ( - 85 ) AS col1
----
-85

query II rowsort
SELECT ALL 25, + 55 AS col2
----
25
55

query I rowsort
SELECT ALL - 11 + 83
----
72

query I rowsort
SELECT DISTINCT - CASE + 32 WHEN COALESCE ( + + 38, + 84 ) * 64 THEN + 58 + + 5 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT ALL CAST( + 2 AS SIGNED ) + + ( + + 0 )
----
2

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL CAST ( + 2 AS INTEGER ) + + ( + + 0 )
----
2

query I rowsort
SELECT 3 * + + 39 AS col1
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT - - ( + + CAST( - 21 AS SIGNED ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-9126
SELECT - - ( + + CAST ( - 21 AS INTEGER ) ) AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9127
SELECT ALL - COUNT( * ) + + + 89 - COALESCE ( 9, + 50 DIV + SUM( - 77 ) DIV 31 - - 17, - 59 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL - COUNT ( * ) + + + 89 - COALESCE ( 9, + 50 / + SUM ( - 77 ) / 31 - - 17, - 59 ) AS col0
----
79

query I rowsort
SELECT + 17 + 25
----
42

query I rowsort
SELECT + 22 - - 71
----
93

query II rowsort
SELECT - 71 col1, + 95 AS col0
----
-71
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9131
SELECT - 71 * COALESCE ( + SUM( DISTINCT - + 40 ), + 85 * - + 43 + - COALESCE ( - NULLIF ( + 51, - - 92 ), + 1 ) * + 16 - + 40 + - CASE WHEN 1 IS NOT NULL THEN 77 ELSE NULL END + COUNT( * ) * 85 * + + 12 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9131
SELECT - 71 * COALESCE ( + SUM ( DISTINCT - + 40 ), + 85 * - + 43 + - COALESCE ( - NULLIF ( + 51, - - 92 ), + 1 ) * + 16 - + 40 + - CASE WHEN 1 IS NOT NULL THEN 77 ELSE NULL END + COUNT ( * ) * 85 * + + 12 ) + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 44 AS col1, 52
----
44
52

query I rowsort
SELECT + 80 + 34
----
114

query I rowsort
SELECT 41 + - 79 - 82
----
-120

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9135
SELECT CAST( NULL AS DECIMAL ) * - + 44 * + - ( + COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT CAST ( NULL AS REAL ) * - + 44 * + - ( + COUNT ( * ) ) col2
----
NULL

query I rowsort
SELECT 50 * + + NULLIF ( - 16, 43 * - ( + 94 ) + + 47 ) AS col1
----
-800

onlyif mysql # aggregate syntax: 
query II rowsort label-9137
SELECT CASE COUNT( * ) WHEN + - 29 / - 32 * 22 THEN ( - + 17 ) + CASE 1 WHEN 89 THEN - 7 WHEN - 95 / 93 THEN 8 + - 50 ELSE NULL END ELSE NULL END * 79 + - - 21 AS col1, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9137
SELECT CASE COUNT ( * ) WHEN + - 29 / - 32 * 22 THEN ( - + 17 ) + CASE 1 WHEN 89 THEN - 7 WHEN - 95 / 93 THEN 8 + - 50 ELSE NULL END ELSE NULL END * 79 + - - 21 AS col1, - COUNT ( * ) AS col0
----
NULL
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9138
SELECT DISTINCT - 8 DIV - + 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT - 8 / - + 12 AS col2
----
0

query I rowsort
SELECT ALL + 54 - 63 AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9140
SELECT 40 * + COALESCE ( 36, + CAST( NULL AS SIGNED ) + + + 15 * - - COUNT( * ) DIV - + CAST( 30 AS SIGNED ) ) AS col0
----
1440

skipif mysql # not compatible
query I rowsort label-9140
SELECT 40 * + COALESCE ( 36, + CAST ( NULL AS INTEGER ) + + + 15 * - - COUNT ( * ) / - + CAST ( 30 AS INTEGER ) ) AS col0
----
1440

query I rowsort
SELECT ALL - NULLIF ( + 45, - + AVG ( + 71 ) )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT ALL + 36 * 72 * + 35 * + - MIN( + + 11 ) AS col2
----
-997920

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL + 36 * 72 * + 35 * + - MIN ( + + 11 ) AS col2
----
-997920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9143
SELECT CAST( NULL AS SIGNED ) * 73 * + 90 * + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9143
SELECT CAST ( NULL AS INTEGER ) * 73 * + 90 * + + 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9144
SELECT - CAST( + 2 AS SIGNED ) * SUM( + 19 ) - 57
----
-95

skipif mysql # not compatible
query I rowsort label-9144
SELECT - CAST ( + 2 AS INTEGER ) * SUM ( + 19 ) - 57
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT COUNT( DISTINCT 30 ) * - - 79 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-9145
SELECT COUNT ( DISTINCT 30 ) * - - 79 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT 65 * - COUNT( * ) * - + 51 * + + 15
----
49725

skipif mysql # not compatible
query I rowsort label-9146
SELECT 65 * - COUNT ( * ) * - + 51 * + + 15
----
49725

query I rowsort
SELECT DISTINCT + 73 + + 93
----
166

onlyif mysql # aggregate syntax: 
query II rowsort label-9148
SELECT - MAX( - 90 ) AS col1, + 79
----
90
79

skipif mysql # not compatible
query II rowsort label-9148
SELECT - MAX ( - 90 ) AS col1, + 79
----
90
79

query I rowsort
SELECT DISTINCT + 93 + + 74 + + - 54 + 53
----
166

query I rowsort
SELECT DISTINCT - 82 + + 71
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9151
SELECT - 2 * + + COALESCE ( 19, - + 71, 31 + + CASE - 25 WHEN - COUNT( * ) THEN + - ( - CAST( NULL AS SIGNED ) ) WHEN + + 81 * - 18 THEN NULL ELSE NULL END + - ( 8 ), + - 22 ) + - MIN( ALL - + 93 ) DIV - 41 - 70 AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-9151
SELECT - 2 * + + COALESCE ( 19, - + 71, 31 + + CASE - 25 WHEN - COUNT ( * ) THEN + - ( - CAST ( NULL AS INTEGER ) ) WHEN + + 81 * - 18 THEN NULL ELSE NULL END + - ( 8 ), + - 22 ) + - MIN ( ALL - + 93 ) / - 41 - 70 AS col1
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT ALL - CASE - 81 WHEN 23 THEN - COUNT( * ) * + + COUNT( * ) * 14 + + 54 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL - CASE - 81 WHEN 23 THEN - COUNT ( * ) * + + COUNT ( * ) * 14 + + 54 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 72 * + + ( - - 93 ) col0
----
6696

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9154
SELECT CAST( - 8 AS SIGNED ) AS col1, + 61
----
-8
61

skipif mysql # not compatible
query II rowsort label-9154
SELECT CAST ( - 8 AS INTEGER ) AS col1, + 61
----
-8
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9155
SELECT ALL - - 81 * CAST( - 88 AS SIGNED ) DIV + + 93 - - - 75 + 77 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL - - 81 * CAST ( - 88 AS INTEGER ) / + + 93 - - - 75 + 77 AS col1
----
-74

query I rowsort
SELECT ALL + 99 + + 25 AS col0
----
124

query I rowsort
SELECT + 6 + + 6 AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT - CASE ( + CAST( NULL AS SIGNED ) ) WHEN - 62 THEN + - COALESCE ( - + 12, + + 5 ) / + 66 END - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9158
SELECT - CASE ( + CAST ( NULL AS INTEGER ) ) WHEN - 62 THEN + - COALESCE ( - + 12, + + 5 ) / + 66 END - 17 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - 77 - + + 99
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT - + CASE - + 10 WHEN COUNT( DISTINCT + 68 ) THEN - - ( + - NULLIF ( - + COUNT( * ), 75 ) ) WHEN 70 + - 46 THEN + 39 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9160
SELECT - + CASE - + 10 WHEN COUNT ( DISTINCT + 68 ) THEN - - ( + - NULLIF ( - + COUNT ( * ), 75 ) ) WHEN 70 + - 46 THEN + 39 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT + COUNT( 25 ) + - 60 * 2
----
-119

skipif mysql # not compatible
query I rowsort label-9161
SELECT + COUNT ( 25 ) + - 60 * 2
----
-119

query I rowsort
SELECT DISTINCT 67 - 8 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT - MIN( 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-9163
SELECT - MIN ( 95 )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9164
SELECT + 8 * - + 63 * + + COUNT( - 54 ) * + SUM( + 42 ) AS col0, + 8 * CAST( NULL AS SIGNED ) AS col2
----
-21168
NULL

skipif mysql # not compatible
query II rowsort label-9164
SELECT + 8 * - + 63 * + + COUNT ( - 54 ) * + SUM ( + 42 ) AS col0, + 8 * CAST ( NULL AS INTEGER ) AS col2
----
-21168
NULL

query I rowsort
SELECT ALL - 95 * - - 71 AS col1
----
-6745

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT ALL 31 * - 72 * COUNT( * )
----
-2232

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL 31 * - 72 * COUNT ( * )
----
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT + 80 * - ( + - ( - COUNT( * ) ) ) + + - 66
----
-146

skipif mysql # not compatible
query I rowsort label-9167
SELECT + 80 * - ( + - ( - COUNT ( * ) ) ) + + - 66
----
-146

query I rowsort
SELECT + 72 * + 76 * 96 col2
----
525312

query I rowsort
SELECT - 78 * - 79 col1
----
6162

query I rowsort
SELECT + 89 + 40 AS col1
----
129

onlyif mysql # DIV for integer division: 
query II rowsort label-9171
SELECT + 21 AS col0, - 23 DIV 35 AS col0
----
21
0

skipif mysql # not compatible
query II rowsort label-9171
SELECT + 21 AS col0, - 23 / 35 AS col0
----
21
0

query I rowsort
SELECT COALESCE ( - + 7, - - NULLIF ( - 77, + 53 ) ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT + COUNT( + 20 ) + 88 * - 40
----
-3519

skipif mysql # not compatible
query I rowsort label-9173
SELECT + COUNT ( + 20 ) + 88 * - 40
----
-3519

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT + NULLIF ( + - 48, - 69 ) DIV - - 38 - - 89
----
88

skipif mysql # not compatible
query I rowsort label-9174
SELECT + NULLIF ( + - 48, - 69 ) / - - 38 - - 89
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9175
SELECT - 30 DIV 24 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9175
SELECT - 30 / 24 AS col1
----
-1

query I rowsort
SELECT 32 * + 10 + - 19 * - 52 * - + 22 + + 99 AS col0
----
-21317

query I rowsort
SELECT DISTINCT ( - 70 ) * + ( - 60 ) * - 13 - + ( 6 ) + - + 58 + 70 AS col2
----
-54594

query I rowsort
SELECT NULLIF ( 87, + ( + - 38 ) ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL - COUNT( ALL 63 ) * - + ( + ( - + ( + 68 ) ) ) + - 24 + 61
----
-31

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL - COUNT ( ALL 63 ) * - + ( + ( - + ( + 68 ) ) ) + - 24 + 61
----
-31

query I rowsort
SELECT - + 58 + - 90 + - + ( 81 )
----
-229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT ALL + + CAST( 34 AS SIGNED ) col1
----
34

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL + + CAST ( 34 AS INTEGER ) col1
----
34

query II rowsort
SELECT + + 81 AS col2, - 79
----
81
-79

query II rowsort
SELECT + + 71, 44 AS col1
----
71
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9184
SELECT - - COALESCE ( ( - NULLIF ( - COALESCE ( - + 60, - COUNT( * ) * 20 * - NULLIF ( - 65, - COUNT( * ) ) ), + - COUNT( * ) / + - 67 ) ), + 18 * + + 52 + - 21 + - 26, + - NULLIF ( SUM( ALL + 47 ), - + CASE - - 90 WHEN - 81 + - NULLIF ( + CAST( NULL AS SIGNED ), - ( ( 82 ) ) * 89 ) / 53 THEN - SUM( + 18 ) WHEN - 4 THEN 20 ELSE NULL END ) ) + 71
----
11

skipif mysql # not compatible
query I rowsort label-9184
SELECT - - COALESCE ( ( - NULLIF ( - COALESCE ( - + 60, - COUNT ( * ) * 20 * - NULLIF ( - 65, - COUNT ( * ) ) ), + - COUNT ( * ) / + - 67 ) ), + 18 * + + 52 + - 21 + - 26, + - NULLIF ( SUM ( ALL + 47 ), - + CASE - - 90 WHEN - 81 + - NULLIF ( + CAST ( NULL AS INTEGER ), - ( ( 82 ) ) * 89 ) / 53 THEN - SUM ( + 18 ) WHEN - 4 THEN 20 ELSE NULL END ) ) + 71
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL - 27 * - COUNT( DISTINCT - 19 ) + - 32 * + ( MAX( DISTINCT - 8 ) ) + + 51 + + CASE 31 WHEN 76 THEN 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL - 27 * - COUNT ( DISTINCT - 19 ) + - 32 * + ( MAX ( DISTINCT - 8 ) ) + + 51 + + CASE 31 WHEN 76 THEN 88 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9186
SELECT - MAX( DISTINCT ( - 8 ) ) * 71 DIV - 9
----
-63

skipif mysql # not compatible
query I rowsort label-9186
SELECT - MAX ( DISTINCT ( - 8 ) ) * 71 / - 9
----
-63

query I rowsort
SELECT - 60 * 62
----
-3720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9188
SELECT - + 6 + - + 30 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT - + 6 + - + 30 * + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - 73 + - 9 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9190
SELECT ALL NULLIF ( COUNT( * ), - 49 ), 90 AS col0
----
1
90

skipif mysql # not compatible
query II rowsort label-9190
SELECT ALL NULLIF ( COUNT ( * ), - 49 ), 90 AS col0
----
1
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL - COUNT( + 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL - COUNT ( + 99 )
----
-1

query I rowsort
SELECT ALL - - ( + + 32 ) - 90
----
-58

query I rowsort
SELECT - + 56 * + - 61
----
3416

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL + ( MAX( DISTINCT + 52 ) ) - + - 17 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL + ( MAX ( DISTINCT + 52 ) ) - + - 17 AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9195
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 58 AS col0
----
NULL
58

skipif mysql # not compatible
query II rowsort label-9195
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 58 AS col0
----
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT - 93 * + - COUNT( - ( - 5 ) )
----
93

skipif mysql # not compatible
query I rowsort label-9196
SELECT - 93 * + - COUNT ( - ( - 5 ) )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT ALL - 85 DIV - - 8 + + 22 col2
----
12

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL - 85 / - - 8 + + 22 col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9198
SELECT - NULLIF ( 18, - COUNT( - 18 ) ) + 41 - + COUNT( * ), 13 - - 86 AS col2
----
22
99

skipif mysql # not compatible
query II rowsort label-9198
SELECT - NULLIF ( 18, - COUNT ( - 18 ) ) + 41 - + COUNT ( * ), 13 - - 86 AS col2
----
22
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9199
SELECT DISTINCT CAST( + 25 AS SIGNED ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT CAST ( + 25 AS INTEGER ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT - 56 * + + COUNT( * ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-9200
SELECT - 56 * + + COUNT ( * ) col1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9201
SELECT + 61 + - - NULLIF ( - 84, + 91 / + SUM( CAST( NULL AS SIGNED ) ) ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-9201
SELECT + 61 + - - NULLIF ( - 84, + 91 / + SUM ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
-23

query I rowsort
SELECT ALL 26 * + 76 AS col0
----
1976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9203
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT - MIN( - - 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-9204
SELECT - MIN ( - - 78 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-9205
SELECT + COUNT( * ) + - + 80 + + - 12 - - - MAX( ALL COALESCE ( 14, 35 ) ) AS col2, + COUNT( + 68 ) + - COUNT( * ) AS col1
----
-105
0

skipif mysql # not compatible
query II rowsort label-9205
SELECT + COUNT ( * ) + - + 80 + + - 12 - - - MAX ( ALL COALESCE ( 14, 35 ) ) AS col2, + COUNT ( + 68 ) + - COUNT ( * ) AS col1
----
-105
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9206
SELECT DISTINCT CAST( - 70 AS SIGNED ) AS col2, + 1 AS col2
----
-70
1

skipif mysql # not compatible
query II rowsort label-9206
SELECT DISTINCT CAST ( - 70 AS INTEGER ) AS col2, + 1 AS col2
----
-70
1

query I rowsort
SELECT + 2 + + 45 + - 26
----
21

query I rowsort
SELECT ALL 84 + + 80
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT - MIN( ALL + + ( 43 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-9209
SELECT - MIN ( ALL + + ( 43 ) )
----
-43

query I rowsort
SELECT + 54 * 45 AS col0
----
2430

query I rowsort
SELECT + 66 * - - 15
----
990

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9212
SELECT + CAST( 84 AS SIGNED ), + 84
----
84
84

skipif mysql # not compatible
query II rowsort label-9212
SELECT + CAST ( 84 AS INTEGER ), + 84
----
84
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9213
SELECT + 18 DIV - 3 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9213
SELECT + 18 / - 3 AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT ALL 69 / + 38 + - 53 + - CAST( NULL AS SIGNED ) * + + 49 * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL 69 / + 38 + - 53 + - CAST ( NULL AS INTEGER ) * + + 49 * + 98
----
NULL

query I rowsort
SELECT + ( + 90 ) AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT ALL - 21 / - COUNT( * ) + + CASE + + COUNT( * ) WHEN - CAST( - 35 AS SIGNED ) THEN - 32 * - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL - 21 / - COUNT ( * ) + + CASE + + COUNT ( * ) WHEN - CAST ( - 35 AS INTEGER ) THEN - 32 * - + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 76 * + 78 AS col2
----
5928

query I rowsort
SELECT + 47 * + 11 * + 56
----
28952

query I rowsort
SELECT + + 23 * + - 21 - - 85 - 78
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT + COUNT( * ) * + COUNT( * ) + - 65 - + COUNT( * ) - + - 80
----
15

skipif mysql # not compatible
query I rowsort label-9220
SELECT + COUNT ( * ) * + COUNT ( * ) + - 65 - + COUNT ( * ) - + - 80
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9221
SELECT - - COUNT( * ) * 37 * + 83 * CAST( - 23 AS SIGNED ) + 47
----
-70586

skipif mysql # not compatible
query I rowsort label-9221
SELECT - - COUNT ( * ) * 37 * + 83 * CAST ( - 23 AS INTEGER ) + 47
----
-70586

onlyif mysql # DIV for integer division: 
query I rowsort label-9222
SELECT DISTINCT + + 64 DIV + 95 * + 33
----
0

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT + + 64 / + 95 * + 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT DISTINCT + - MAX( ALL - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT + - MAX ( ALL - 61 )
----
61

query I rowsort
SELECT - 43 * 21 - - 93 + ( - 86 )
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT - - 15 * COUNT( * ) * - 28 - - 85 + - 52 AS col2
----
-387

skipif mysql # not compatible
query I rowsort label-9225
SELECT - - 15 * COUNT ( * ) * - 28 - - 85 + - 52 AS col2
----
-387

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT ( - MAX( ALL - + 7 ) )
----
7

skipif mysql # not compatible
query I rowsort label-9226
SELECT ( - MAX ( ALL - + 7 ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL + NULLIF ( 35, + 10 * 13 + + NULLIF ( - ( + - 95 ), + 55 + - 66 * + + 60 ) + - 11 * + SUM( 56 ) + + 92 / + + 57 - - + 82 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL + NULLIF ( 35, + 10 * 13 + + NULLIF ( - ( + - 95 ), + 55 + - 66 * + + 60 ) + - 11 * + SUM ( 56 ) + + 92 / + + 57 - - + 82 ) AS col1
----
35

query I rowsort
SELECT 91 * + - 15 + - 76
----
-1441

query I rowsort
SELECT - 60 * - 72 AS col0
----
4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9230
SELECT CAST( + 70 AS SIGNED ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9230
SELECT CAST ( + 70 AS INTEGER ) AS col2
----
70

query I rowsort
SELECT ALL + ( ( - 73 ) )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9232
SELECT - - CAST( - 17 AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-9232
SELECT - - CAST ( - 17 AS INTEGER )
----
-17

query I rowsort
SELECT + 83 + + 25 + - + 18 AS col0
----
90

query II rowsort
SELECT ALL 91 col2, NULLIF ( 44, - + 20 ) AS col2
----
91
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT - NULLIF ( + 75, + COUNT( * ) ) * + ( + - COUNT( * ) )
----
75

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT - NULLIF ( + 75, + COUNT ( * ) ) * + ( + - COUNT ( * ) )
----
75

query II rowsort
SELECT ALL 47, + 5 + + ( + 25 ) AS col0
----
47
30

query I rowsort
SELECT 69 + + - 30 + 9 * - 4 * + + 12 * + + 52 * + 13
----
-291993

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9238
SELECT ALL - 32 + - CAST( - 55 AS SIGNED ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL - 32 + - CAST ( - 55 AS INTEGER ) AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9239
SELECT 46 - - - COUNT( * ) DIV 60 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9239
SELECT 46 - - - COUNT ( * ) / 60 AS col0
----
46

query I rowsort
SELECT DISTINCT + 60 * - - 37
----
2220

onlyif mysql # DIV for integer division: 
query I rowsort label-9241
SELECT ALL + 78 DIV + + 39
----
2

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL + 78 / + + 39
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ALL COUNT( * ) + 89 - + 17 * 8 + + 45 + - 98
----
-99

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL COUNT ( * ) + 89 - + 17 * 8 + + 45 + - 98
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT MAX( ALL + 11 ) - ( ( + 69 ) ) * 89 AS col2
----
-6130

skipif mysql # not compatible
query I rowsort label-9243
SELECT MAX ( ALL + 11 ) - ( ( + 69 ) ) * 89 AS col2
----
-6130

onlyif mysql # aggregate syntax: 
query II rowsort label-9244
SELECT 91 - CASE + 99 WHEN 7 THEN + COALESCE ( + COUNT( * ), 49, + COUNT( * ) ) WHEN 58 THEN + + 76 + - 45 + - 23 + - 57 END - - - ( - 28 ), + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9244
SELECT 91 - CASE + 99 WHEN 7 THEN + COALESCE ( + COUNT ( * ), 49, + COUNT ( * ) ) WHEN 58 THEN + + 76 + - 45 + - 23 + - 57 END - - - ( - 28 ), + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL - ( COALESCE ( + ( COUNT( * ) ), 48 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - ( COALESCE ( + ( COUNT ( * ) ), 48 ) )
----
-1

query I rowsort
SELECT ALL + 61 - - 81 + 84 + - 9 AS col2
----
217

query I rowsort
SELECT 65 + + + 29 col0
----
94

query I rowsort
SELECT + 15 * + 17
----
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9249
SELECT + 59 + COALESCE ( + 78, - 41 DIV - 66 * 30, - 34 ) + + + 4 DIV - MIN( DISTINCT + 85 ) + + + CASE + COALESCE ( + 43, COUNT( * ) + - 26 + + 79 ) WHEN 3 THEN + NULLIF ( + 15, + NULLIF ( - 7, + + 46 * + COUNT( * ) ) ) + - + COUNT( * ) WHEN + 53 - 30 THEN NULL WHEN + 59 THEN NULL ELSE 9 END + + COUNT( DISTINCT 16 )
----
147

skipif mysql # not compatible
query I rowsort label-9249
SELECT + 59 + COALESCE ( + 78, - 41 / - 66 * 30, - 34 ) + + + 4 / - MIN ( DISTINCT + 85 ) + + + CASE + COALESCE ( + 43, COUNT ( * ) + - 26 + + 79 ) WHEN 3 THEN + NULLIF ( + 15, + NULLIF ( - 7, + + 46 * + COUNT ( * ) ) ) + - + COUNT ( * ) WHEN + 53 - 30 THEN NULL WHEN + 59 THEN NULL ELSE 9 END + + COUNT ( DISTINCT 16 )
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT ( - 42 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT ( - 42 ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT COUNT( * ) * 64 + 46 * - COUNT( * ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9251
SELECT COUNT ( * ) * 64 + 46 * - COUNT ( * ) AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9252
SELECT COALESCE ( CAST( NULL AS SIGNED ), + 38 + + + MIN( ALL 52 ) ) + 49 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-9252
SELECT COALESCE ( CAST ( NULL AS INTEGER ), + 38 + + + MIN ( ALL 52 ) ) + 49 AS col1
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9253
SELECT ALL CAST( NULL AS SIGNED ) - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL CAST ( NULL AS INTEGER ) - + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT - COUNT( * ) + + 14 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9254
SELECT - COUNT ( * ) + + 14 AS col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9255
SELECT - - 53 * + ( + 21 ) + - 97 DIV + - 82 col0
----
1114

skipif mysql # not compatible
query I rowsort label-9255
SELECT - - 53 * + ( + 21 ) + - 97 / + - 82 col0
----
1114

query I rowsort
SELECT ALL + 85 * + 45 + + 39
----
3864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9257
SELECT ( - 59 ) DIV + COUNT( * ) * + - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-9257
SELECT ( - 59 ) / + COUNT ( * ) * + - COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT ALL - MAX( ALL 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL - MAX ( ALL 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT DISTINCT + COUNT( * ) + - 1 * - COUNT( - 5 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT + COUNT ( * ) + - 1 * - COUNT ( - 5 ) AS col0
----
2

query II rowsort
SELECT ALL 38 AS col0, 52
----
38
52

query II rowsort
SELECT DISTINCT - 91 * - + 81 AS col0, 53 + - + 49 + 44 + - 20 AS col1
----
7371
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL + COUNT( * ) + + 50
----
51

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL + COUNT ( * ) + + 50
----
51

query I rowsort
SELECT 66 + - + 32
----
34

query II rowsort
SELECT 75 + + + 85 AS col0, + 56 + + - 89
----
160
-33

query I rowsort
SELECT ALL 43 + - ( + 83 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT DISTINCT + 91 * - COUNT( - 62 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT + 91 * - COUNT ( - 62 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9267
SELECT - 58 AS col2, COUNT( * ) AS col2
----
-58
1

skipif mysql # not compatible
query II rowsort label-9267
SELECT - 58 AS col2, COUNT ( * ) AS col2
----
-58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL 7 + 9 * + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL 7 + 9 * + COUNT ( * )
----
16

query I rowsort
SELECT DISTINCT 66 * + - 1 AS col2
----
-66

query I rowsort
SELECT ALL - 1 + + - 98
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT ALL 1 * - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL 1 * - COUNT ( * ) col1
----
-1

query I rowsort
SELECT DISTINCT - 19 + + 19 * 11
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL - COUNT( * ) - 51
----
-52

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL - COUNT ( * ) - 51
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT - SUM( ALL + + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-9274
SELECT - SUM ( ALL + + 9 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9275
SELECT 34 AS col2, 93 + - CAST( NULL AS SIGNED ) * + 23 + + 57 + - 6 + + 25 * 46 AS col0
----
34
NULL

skipif mysql # not compatible
query II rowsort label-9275
SELECT 34 AS col2, 93 + - CAST ( NULL AS INTEGER ) * + 23 + + 57 + - 6 + + 25 * 46 AS col0
----
34
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9276
SELECT 81 DIV - - 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9276
SELECT 81 / - - 9 AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9277
SELECT COUNT( * ) * + - 4 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-9277
SELECT COUNT ( * ) * + - 4 / - 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9278
SELECT DISTINCT + NULLIF ( - COUNT( * ), + + 87 ) DIV 27 - + 27 DIV + + 6
----
-4

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT + NULLIF ( - COUNT ( * ), + + 87 ) / 27 - + 27 / + + 6
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT ALL + + MIN( - + 27 ) * + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL + + MIN ( - + 27 ) * + - COUNT ( * )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT DISTINCT - + CAST( 23 AS SIGNED ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT - + CAST ( 23 AS INTEGER ) AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9281
SELECT ALL - 49 * + CAST( NULL AS DECIMAL ) * + 95 * - 4 * + MIN( 31 ) / - + 60 + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL - 49 * + CAST ( NULL AS REAL ) * + 95 * - 4 * + MIN ( 31 ) / - + 60 + 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9282
SELECT DISTINCT - - COUNT( * ) AS col1, - 14 col2
----
1
-14

skipif mysql # not compatible
query II rowsort label-9282
SELECT DISTINCT - - COUNT ( * ) AS col1, - 14 col2
----
1
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT 18 * + + 95 - - 86 - - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT 18 * + + 95 - - 86 - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL - + 32 AS col2, 81
----
-32
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ALL + - ( + + 7 ) * + COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL + - ( + + 7 ) * + COUNT ( * ) AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9286
SELECT 8 * + 36 + + 59 - + + 83 + + 41 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT 8 * + 36 + + 59 - + + 83 + + 41 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT + + COUNT( * ) * COUNT( * ) * - NULLIF ( 60, + + COUNT( * ) ) - + - 36 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9287
SELECT + + COUNT ( * ) * COUNT ( * ) * - NULLIF ( 60, + + COUNT ( * ) ) - + - 36 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT - + SUM( ALL - NULLIF ( 57, 47 ) ) * + 83 - - + 60 + - 15 AS col1
----
4776

skipif mysql # not compatible
query I rowsort label-9288
SELECT - + SUM ( ALL - NULLIF ( 57, 47 ) ) * + 83 - - + 60 + - 15 AS col1
----
4776

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT - 82 * CASE - 70 WHEN - + SUM( - 15 ) - + 98 + + - 8 * + AVG ( ALL COALESCE ( - + 56, - - 95 ) ) * 57 + - MIN( 42 ) * 17 THEN COUNT( * ) WHEN - 35 THEN 11 + + + 9 + - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT - 82 * CASE - 70 WHEN - + SUM ( - 15 ) - + 98 + + - 8 * + AVG ( ALL COALESCE ( - + 56, - - 95 ) ) * 57 + - MIN ( 42 ) * 17 THEN COUNT ( * ) WHEN - 35 THEN 11 + + + 9 + - 38 END
----
NULL

query I rowsort
SELECT - 86 + - + 78 * + 85 AS col0
----
-6716

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL - - 31 * - ( ( COUNT( * ) ) ) + - + 4 - - - 35
----
-70

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL - - 31 * - ( ( COUNT ( * ) ) ) + - + 4 - - - 35
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9292
SELECT ALL COALESCE ( + - 60, 87 * 51 * 95, - COALESCE ( COUNT( * ), - COUNT( * ) ) * + CASE - 1 WHEN ( - 48 ) / + - 83 * + 35 * - - 94 THEN - 5 * - + CASE - - 64 WHEN - COUNT( * ) * + 7 - + CAST( + 31 AS SIGNED ) + + + 58 - - + COUNT( * ) + - 74 * - 38 * - 59 THEN - 36 + 4 * + 27 WHEN 50 THEN NULL END + + 3 + CAST( 94 AS SIGNED ) * - 36 END, - 69 * ( COUNT( * ) ) - - ( 92 ) * 24 ) * 87
----
-5220

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL COALESCE ( + - 60, 87 * 51 * 95, - COALESCE ( COUNT ( * ), - COUNT ( * ) ) * + CASE - 1 WHEN ( - 48 ) / + - 83 * + 35 * - - 94 THEN - 5 * - + CASE - - 64 WHEN - COUNT ( * ) * + 7 - + CAST ( + 31 AS INTEGER ) + + + 58 - - + COUNT ( * ) + - 74 * - 38 * - 59 THEN - 36 + 4 * + 27 WHEN 50 THEN NULL END + + 3 + CAST ( 94 AS INTEGER ) * - 36 END, - 69 * ( COUNT ( * ) ) - - ( 92 ) * 24 ) * 87
----
-5220

query II rowsort
SELECT - 8 AS col2, + 17
----
-8
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT DISTINCT + + SUM( + + 2 ) + COUNT( * ) + + 74 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT + + SUM ( + + 2 ) + COUNT ( * ) + + 74 AS col0
----
77

query II rowsort
SELECT ALL 67 + + 30 * 31 col0, - 68 AS col1
----
997
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-9296
SELECT + COUNT( * ) + - COUNT( * ), - COUNT( * ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-9296
SELECT + COUNT ( * ) + - COUNT ( * ), - COUNT ( * ) AS col1
----
0
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9297
SELECT 14 * - 81 + 17 + CASE + 3 WHEN + 0 + 48 + - 38 * - 15 THEN + - CAST( NULL AS SIGNED ) END * + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT 14 * - 81 + 17 + CASE + 3 WHEN + 0 + 48 + - 38 * - 15 THEN + - CAST ( NULL AS INTEGER ) END * + 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT + 31 * - 93 * + MAX( ALL + 50 )
----
-144150

skipif mysql # not compatible
query I rowsort label-9298
SELECT + 31 * - 93 * + MAX ( ALL + 50 )
----
-144150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9299
SELECT DISTINCT 54 + + + COUNT( * ) col0, 78 DIV + NULLIF ( - 21, - + CAST( NULL AS SIGNED ) ) AS col2
----
55
-3

skipif mysql # not compatible
query II rowsort label-9299
SELECT DISTINCT 54 + + + COUNT ( * ) col0, 78 / + NULLIF ( - 21, - + CAST ( NULL AS INTEGER ) ) AS col2
----
55
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9300
SELECT + 13 DIV + - 52 * 67
----
0

skipif mysql # not compatible
query I rowsort label-9300
SELECT + 13 / + - 52 * 67
----
0

query I rowsort
SELECT DISTINCT 18 - 62
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT + 77 + - NULLIF ( + 20, + + COUNT( * ) + - + NULLIF ( - 61, + 19 ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9302
SELECT + 77 + - NULLIF ( + 20, + + COUNT ( * ) + - + NULLIF ( - 61, + 19 ) ) AS col0
----
57

query I rowsort
SELECT + ( + 95 ) * + - 82 AS col2
----
-7790

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9304
SELECT ALL NULLIF ( - 37, - - 12 ) * - 96 + - 97 AS col0, - CAST( 74 AS SIGNED ) AS col1
----
3455
-74

skipif mysql # not compatible
query II rowsort label-9304
SELECT ALL NULLIF ( - 37, - - 12 ) * - 96 + - 97 AS col0, - CAST ( 74 AS INTEGER ) AS col1
----
3455
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT - 59 * - SUM( DISTINCT + 38 )
----
2242

skipif mysql # not compatible
query I rowsort label-9305
SELECT - 59 * - SUM ( DISTINCT + 38 )
----
2242

query I rowsort
SELECT + 29 + - 29 + + 4 - 64
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT DISTINCT 15 * SUM( DISTINCT + 75 ) * + 93 AS col2
----
104625

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT 15 * SUM ( DISTINCT + 75 ) * + 93 AS col2
----
104625

query I rowsort
SELECT ALL + 84 * - 57
----
-4788

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT - - CASE + CASE MIN( + 38 ) WHEN - - 82 * + 45 THEN + 87 ELSE NULL END WHEN + 87 THEN 20 ELSE - 75 END - 7
----
-82

skipif mysql # not compatible
query I rowsort label-9309
SELECT - - CASE + CASE MIN ( + 38 ) WHEN - - 82 * + 45 THEN + 87 ELSE NULL END WHEN + 87 THEN 20 ELSE - 75 END - 7
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9310
SELECT - 49 DIV - 50 + + + ( 51 ) * - - 69 + - MIN( ALL 70 )
----
3449

skipif mysql # not compatible
query I rowsort label-9310
SELECT - 49 / - 50 + + + ( 51 ) * - - 69 + - MIN ( ALL 70 )
----
3449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT + CAST( NULL AS SIGNED ) + 71 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT + CAST ( NULL AS INTEGER ) + 71 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9312
SELECT - - 74 DIV - - 55 * - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9312
SELECT - - 74 / - - 55 * - + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT - COUNT( * ) - + - 34 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9313
SELECT - COUNT ( * ) - + - 34 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT - + COALESCE ( 83, + + 78 ) * + - 22 + + + MIN( ALL - 99 ) + + 82 * - + 59 + - SUM( - 36 ) AS col1
----
-3075

skipif mysql # not compatible
query I rowsort label-9314
SELECT - + COALESCE ( 83, + + 78 ) * + - 22 + + + MIN ( ALL - 99 ) + + 82 * - + 59 + - SUM ( - 36 ) AS col1
----
-3075

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT DISTINCT - 24 / - - CASE - CASE + 2 WHEN 34 THEN - + COUNT( * ) ELSE NULL END WHEN - 7 * 14 * - - 97 + + + SUM( - - 86 ) * + 37 * + 39 + + SUM( DISTINCT - - ( + 63 ) ) * + 53 + + COUNT( * ) + MAX( - - 45 ) THEN COUNT( * ) / - 26 WHEN - NULLIF ( + 77, + 15 / - 73 * SUM( 41 ) ) THEN NULL WHEN + 68 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT - 24 / - - CASE - CASE + 2 WHEN 34 THEN - + COUNT ( * ) ELSE NULL END WHEN - 7 * 14 * - - 97 + + + SUM ( - - 86 ) * + 37 * + 39 + + SUM ( DISTINCT - - ( + 63 ) ) * + 53 + + COUNT ( * ) + MAX ( - - 45 ) THEN COUNT ( * ) / - 26 WHEN - NULLIF ( + 77, + 15 / - 73 * SUM ( 41 ) ) THEN NULL WHEN + 68 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 90 * - 24 + - 42 * 62 + - 39
----
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT DISTINCT - 23 * + 75 + COUNT( * ) AS col0
----
-1724

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT - 23 * + 75 + COUNT ( * ) AS col0
----
-1724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9318
SELECT DISTINCT - + 22 * + 37 - CAST( NULL AS SIGNED ) + - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT - + 22 * + 37 - CAST ( NULL AS INTEGER ) + - 66 AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 56, 10 ) * - ( - + 30 )
----
1680

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9320
SELECT ALL + CAST( NULL AS SIGNED ), 1 + - - 94 AS col2
----
NULL
95

skipif mysql # not compatible
query II rowsort label-9320
SELECT ALL + CAST ( NULL AS INTEGER ), 1 + - - 94 AS col2
----
NULL
95

query I rowsort
SELECT CASE + ( - 0 ) WHEN - + COALESCE ( + 98, + + 57 ) THEN NULL ELSE - 78 END
----
-78

query I rowsort
SELECT - ( 76 ) * + + ( + - 64 ) AS col2
----
4864

query I rowsort
SELECT - CASE WHEN + 87 NOT BETWEEN 44 AND + 49 THEN + 65 WHEN 73 IS NULL THEN NULL WHEN 21 IS NULL THEN NULL ELSE NULL END AS col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9324
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + COALESCE ( + - 5, - 49, 40 ) + CAST( - 82 AS SIGNED )
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-9324
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + COALESCE ( + - 5, - 49, 40 ) + CAST ( - 82 AS INTEGER )
----
NULL
-87

query I rowsort
SELECT DISTINCT 22 * - - 8 * + 61 - 89
----
10647

query I rowsort
SELECT ALL - 47 * + 48 AS col1
----
-2256

query I rowsort
SELECT + 89 + 8 col2
----
97

query I rowsort
SELECT + 65 + + - 65
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9329
SELECT - COUNT( ALL - + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9329
SELECT - COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9330
SELECT - 36 DIV - + ( + 3 )
----
12

skipif mysql # not compatible
query I rowsort label-9330
SELECT - 36 / - + ( + 3 )
----
12

query I rowsort
SELECT + 42 * + 35 AS col2
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL SUM( + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL SUM ( + 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9333
SELECT ALL 0 DIV + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL 0 / + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9334
SELECT + 6 * CAST( - 2 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-9334
SELECT + 6 * CAST ( - 2 AS INTEGER )
----
-12

query I rowsort
SELECT + 48 + - 37 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT + + COUNT( * ) * 65 + SUM( - - 25 ) - - - 25 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9336
SELECT + + COUNT ( * ) * 65 + SUM ( - - 25 ) - - - 25 AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9337
SELECT DISTINCT - 80 DIV 77 - CAST( MIN( - 11 ) AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-9337
SELECT DISTINCT - 80 / 77 - CAST ( MIN ( - 11 ) AS INTEGER )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT ALL - 63 DIV - 9
----
7

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL - 63 / - 9
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9339
SELECT COUNT( * ) AS col1, + 9 * - - 88 AS col2
----
1
792

skipif mysql # not compatible
query II rowsort label-9339
SELECT COUNT ( * ) AS col1, + 9 * - - 88 AS col2
----
1
792

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT - 19 * - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-9340
SELECT - 19 * - COUNT ( * )
----
19

query II rowsort
SELECT + 86, 86
----
86
86

query I rowsort
SELECT DISTINCT 20 + 39 * + 69 + + 91
----
2802

query I rowsort
SELECT ALL - - 0 + - 4 * + - 74
----
296

query II rowsort
SELECT 94 col0, + ( + 36 ) AS col0
----
94
36

query I rowsort
SELECT DISTINCT 33 * + 16 AS col0
----
528

query I rowsort
SELECT ALL + 37 + - ( - ( - 70 ) ) AS col0
----
-33

query I rowsort
SELECT DISTINCT 42 + 94 + - 22 * + 12 * - 83 + - 35 AS col2
----
22013

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9348
SELECT 81 * + COUNT( * ) * NULLIF ( CAST( NULL AS SIGNED ), + + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT 81 * + COUNT ( * ) * NULLIF ( CAST ( NULL AS INTEGER ), + + 16 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT - - COUNT( * ) * - 51 + + - 13 + + - 99 - + - 6 AS col1
----
-157

skipif mysql # not compatible
query I rowsort label-9349
SELECT - - COUNT ( * ) * - 51 + + - 13 + + - 99 - + - 6 AS col1
----
-157

query I rowsort
SELECT ( - ( 15 ) )
----
-15

query II rowsort
SELECT - 71 AS col1, - 80
----
-71
-80

query II rowsort
SELECT ALL - NULLIF ( 65, - 50 + 13 ) AS col1, - 25
----
-65
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT 69 + + - 49 + - COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9353
SELECT 69 + + - 49 + - COUNT ( * ) AS col0
----
19

query I rowsort
SELECT ALL - 14 * - 8 col1
----
112

query I rowsort
SELECT 75 * - 40 AS col0
----
-3000

onlyif mysql # DIV for integer division: 
query I rowsort label-9356
SELECT ALL 25 DIV 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL 25 / 29 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL - COALESCE ( + 29, + COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL - COALESCE ( + 29, + COUNT ( * ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT DISTINCT - 33 - + + COUNT( * ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT - 33 - + + COUNT ( * ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT + COUNT( * ) * 71 * MIN( 47 ) - 4 + 29 - 58 * - 89
----
8524

skipif mysql # not compatible
query I rowsort label-9359
SELECT + COUNT ( * ) * 71 * MIN ( 47 ) - 4 + 29 - 58 * - 89
----
8524

query I rowsort
SELECT 0 * - - 6 AS col0
----
0

query I rowsort
SELECT 4 - 10 * 87 col1
----
-866

query II rowsort
SELECT 74 * - - 42 AS col1, 27
----
3108
27

query I rowsort
SELECT 0 * 38 AS col0
----
0

query I rowsort
SELECT DISTINCT 59 * - ( - 84 ) * - 8 * + 27 * - 91 AS col1
----
97415136

onlyif mysql # DIV for integer division: 
query II rowsort label-9365
SELECT 19 DIV + + 60 AS col1, 46 * - 63 * + 57
----
0
-165186

skipif mysql # not compatible
query II rowsort label-9365
SELECT 19 / + + 60 AS col1, 46 * - 63 * + 57
----
0
-165186

query I rowsort
SELECT - ( + + 36 ) + - 5
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9367
SELECT 57 + + - COUNT( * ) DIV COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9367
SELECT 57 + + - COUNT ( * ) / COUNT ( * ) AS col0
----
56

query I rowsort
SELECT DISTINCT - ( + ( 61 ) )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL + COUNT( * ) + - 56 + - ( 5 ) * - - 30 * - 29 col2
----
4295

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL + COUNT ( * ) + - 56 + - ( 5 ) * - - 30 * - 29 col2
----
4295

query I rowsort
SELECT ( 90 ) + + 21
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT 78 - 75 DIV - + 85
----
78

skipif mysql # not compatible
query I rowsort label-9371
SELECT 78 - 75 / - + 85
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT - MAX( ALL - 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-9372
SELECT - MAX ( ALL - 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9373
SELECT + SUM( ALL + - ( - + 75 ) ) + + 69 AS col2, 48 * - - 56 * + 62 + - COUNT( * ) AS col1
----
144
166655

skipif mysql # not compatible
query II rowsort label-9373
SELECT + SUM ( ALL + - ( - + 75 ) ) + + 69 AS col2, 48 * - - 56 * + 62 + - COUNT ( * ) AS col1
----
144
166655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9374
SELECT DISTINCT + - 19 + + + COUNT( * ) AS col0, COUNT( * ) + + CAST( NULL AS SIGNED ) col2
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-9374
SELECT DISTINCT + - 19 + + + COUNT ( * ) AS col0, COUNT ( * ) + + CAST ( NULL AS INTEGER ) col2
----
-18
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9375
SELECT ALL 5 + - + 97 DIV 22 col2
----
1

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL 5 + - + 97 / 22 col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9376
SELECT DISTINCT + 58 DIV 16 + + 97 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT + 58 / 16 + + 97 AS col0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-9377
SELECT + 2 DIV 67 + - 89 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-9377
SELECT + 2 / 67 + - 89 AS col1
----
-89

query I rowsort
SELECT ALL - ( - 8 ) + - - 58
----
66

query I rowsort
SELECT + 41 + + 0 + - 77 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT COUNT( * ) * + - ( COUNT( * ) ) + 45 * - - 18 + + 81 - + 54 AS col0
----
836

skipif mysql # not compatible
query I rowsort label-9380
SELECT COUNT ( * ) * + - ( COUNT ( * ) ) + 45 * - - 18 + + 81 - + 54 AS col0
----
836

query I rowsort
SELECT ALL 94 * + 64 + - 50 AS col0
----
5966

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT MAX( ALL 20 )
----
20

skipif mysql # not compatible
query I rowsort label-9382
SELECT MAX ( ALL 20 )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9383
SELECT + 83 DIV - + 3 + + + NULLIF ( + COALESCE ( SUM( - + 92 ), + + 3 * 55 ), - 19 ) + 33
----
-86

skipif mysql # not compatible
query I rowsort label-9383
SELECT + 83 / - + 3 + + + NULLIF ( + COALESCE ( SUM ( - + 92 ), + + 3 * 55 ), - 19 ) + 33
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ALL 8 - + - MAX( ALL - 56 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL 8 - + - MAX ( ALL - 56 ) AS col2
----
-48

query I rowsort
SELECT DISTINCT 73 * 7
----
511

query I rowsort
SELECT DISTINCT 43 - - 57
----
100

query I rowsort
SELECT ALL 2 * + 46
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9388
SELECT ALL - ( - SUM( ALL + - 22 ) ), - 49 * + 76 AS col0
----
-22
-3724

skipif mysql # not compatible
query II rowsort label-9388
SELECT ALL - ( - SUM ( ALL + - 22 ) ), - 49 * + 76 AS col0
----
-22
-3724

onlyif mysql # aggregate syntax: 
query II rowsort label-9389
SELECT ALL - COUNT( * ) AS col2, + 63 AS col0
----
-1
63

skipif mysql # not compatible
query II rowsort label-9389
SELECT ALL - COUNT ( * ) AS col2, + 63 AS col0
----
-1
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT MIN( ALL - 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-9390
SELECT MIN ( ALL - 43 ) AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9391
SELECT - 39 * + CAST( NULL AS SIGNED ) + + + ( + + COUNT( ALL + 51 ) ) + - ( + 57 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT - 39 * + CAST ( NULL AS INTEGER ) + + + ( + + COUNT ( ALL + 51 ) ) + - ( + 57 ) AS col2
----
NULL

query I rowsort
SELECT 10 * - 33 AS col2
----
-330

onlyif mysql # aggregate syntax: 
query II rowsort label-9393
SELECT ALL - 45 AS col2, COUNT( * )
----
-45
1

skipif mysql # not compatible
query II rowsort label-9393
SELECT ALL - 45 AS col2, COUNT ( * )
----
-45
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT DISTINCT - COUNT( + 18 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT - COUNT ( + 18 ) AS col1
----
-1

query I rowsort
SELECT 90 + + 19 AS col1
----
109

query II rowsort
SELECT + CASE - 63 WHEN 30 THEN - 43 + + 69 END AS col1, 31
----
NULL
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9397
SELECT 27 AS col0, 82 * - COUNT( * )
----
27
-82

skipif mysql # not compatible
query II rowsort label-9397
SELECT 27 AS col0, 82 * - COUNT ( * )
----
27
-82

query I rowsort
SELECT ALL + 84 * 63 AS col2
----
5292

query I rowsort
SELECT ( 20 ) + - 67
----
-47

query I rowsort
SELECT 9 * 76
----
684

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9401
SELECT ALL COUNT( - 20 ) * + 95 * + + 13 * + 1 AS col0, COUNT( * ) DIV - 85 + - 1 AS col2
----
1235
-1

skipif mysql # not compatible
query II rowsort label-9401
SELECT ALL COUNT ( - 20 ) * + 95 * + + 13 * + 1 AS col0, COUNT ( * ) / - 85 + - 1 AS col2
----
1235
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9402
SELECT - 76 + MIN( + + 79 ) * + 65 * - - COUNT( * ) + - 87 DIV 72 * - - 97 AS col0
----
4962

skipif mysql # not compatible
query I rowsort label-9402
SELECT - 76 + MIN ( + + 79 ) * + 65 * - - COUNT ( * ) + - 87 / 72 * - - 97 AS col0
----
4962

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT ALL - ( + 39 ) + + MAX( DISTINCT 17 ) + 55 * 6 AS col1
----
308

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL - ( + 39 ) + + MAX ( DISTINCT 17 ) + 55 * 6 AS col1
----
308

query I rowsort
SELECT - - 36 + - 60
----
-24

query I rowsort
SELECT ALL + 30 + - 17 AS col1
----
13

query II rowsort
SELECT - - 3 AS col2, + 55 + + 42 - - 53
----
3
150

onlyif mysql # aggregate syntax: 
query II rowsort label-9407
SELECT - 76 AS col1, - NULLIF ( + + 58, + - 9 + - + COUNT( * ) ) * + 49
----
-76
-2842

skipif mysql # not compatible
query II rowsort label-9407
SELECT - 76 AS col1, - NULLIF ( + + 58, + - 9 + - + COUNT ( * ) ) * + 49
----
-76
-2842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9408
SELECT - COALESCE ( - + COALESCE ( - 56, + 46 - + - 25 - - 92 ), + 48 + - 19, - CAST( + 56 AS SIGNED ) + + CASE + + 39 WHEN + - ( - 58 ) + + 82 + + COUNT( * ) + + 8 + - 88 * + 50 * + - 26 - - COUNT( * ) + 84 + + + 0 + - 72 THEN 27 + 36 DIV + - 91 * - CAST( NULL AS SIGNED ) END ) * + - ( - - 0 ) DIV NULLIF ( + 9, - 89 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9408
SELECT - COALESCE ( - + COALESCE ( - 56, + 46 - + - 25 - - 92 ), + 48 + - 19, - CAST ( + 56 AS INTEGER ) + + CASE + + 39 WHEN + - ( - 58 ) + + 82 + + COUNT ( * ) + + 8 + - 88 * + 50 * + - 26 - - COUNT ( * ) + 84 + + + 0 + - 72 THEN 27 + 36 / + - 91 * - CAST ( NULL AS INTEGER ) END ) * + - ( - - 0 ) / NULLIF ( + 9, - 89 ) AS col1
----
0

query I rowsort
SELECT - 79 + 98 AS col1
----
19

query I rowsort
SELECT DISTINCT - 39 + + 94 AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT DISTINCT - 28 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT - 28 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - ( - 63 ) + - + 31
----
32

query I rowsort
SELECT ALL 76 + 88
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9414
SELECT ALL + 45 DIV + - 7 + - + 95, - SUM( + 51 ) AS col1
----
-101
-51

skipif mysql # not compatible
query II rowsort label-9414
SELECT ALL + 45 / + - 7 + - + 95, - SUM ( + 51 ) AS col1
----
-101
-51

query I rowsort
SELECT + ( - 94 ) AS col1
----
-94

query I rowsort
SELECT ALL + 29 - - 34
----
63

query I rowsort
SELECT - + 23 - - 91
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT - SUM( - - 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9418
SELECT - SUM ( - - 1 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9419
SELECT - 83, + ( - 57 ) * + 78 / - - 62 + + 69 + + + COUNT( * ) - CAST( NULL AS SIGNED ) - + - CASE + - 25 WHEN - 7 THEN 3 WHEN 40 THEN 70 + 15 + - 81 * + 84 END / + 2 + 4 + - 39 AS col2
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-9419
SELECT - 83, + ( - 57 ) * + 78 / - - 62 + + 69 + + + COUNT ( * ) - CAST ( NULL AS INTEGER ) - + - CASE + - 25 WHEN - 7 THEN 3 WHEN 40 THEN 70 + 15 + - 81 * + 84 END / + 2 + 4 + - 39 AS col2
----
-83
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9420
SELECT ALL CAST( 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL CAST ( 61 AS INTEGER )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT DISTINCT + COUNT( DISTINCT 63 ) - + 64 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT + COUNT ( DISTINCT 63 ) - + 64 AS col1
----
-63

query II rowsort
SELECT DISTINCT + 84 AS col0, 70 + 61
----
84
131

onlyif mysql # DIV for integer division: 
query I rowsort label-9423
SELECT + ( 60 ) DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-9423
SELECT + ( 60 ) / 84
----
0

query II rowsort
SELECT ALL + 30 AS col0, - 20
----
30
-20

query I rowsort
SELECT ALL + + CASE + 71 WHEN + 62 THEN + 74 / + 90 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 35 * - 0
----
0

query I rowsort
SELECT + ( - 25 ) * + 41 AS col1
----
-1025

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9428
SELECT + CAST( 98 AS SIGNED ) DIV - 24 col0
----
-4

skipif mysql # not compatible
query I rowsort label-9428
SELECT + CAST ( 98 AS INTEGER ) / - 24 col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9429
SELECT + COALESCE ( - + ( - + 80 ), - 13, + 38 DIV + 50 + + 44 + + COUNT( * ) * + + CAST( NULL AS SIGNED ) * - ( + 90 ) * - - 87 ) AS col0, - 44
----
80
-44

skipif mysql # not compatible
query II rowsort label-9429
SELECT + COALESCE ( - + ( - + 80 ), - 13, + 38 / + 50 + + 44 + + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * - ( + 90 ) * - - 87 ) AS col0, - 44
----
80
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9430
SELECT ALL COUNT( ALL - 57 ) DIV - - 41 * + ( + 44 )
----
0

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL COUNT ( ALL - 57 ) / - - 41 * + ( + 44 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9431
SELECT - CAST( 67 AS SIGNED ) DIV - + 34 DIV 4 * 94
----
0

skipif mysql # not compatible
query I rowsort label-9431
SELECT - CAST ( 67 AS INTEGER ) / - + 34 / 4 * 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9432
SELECT + 66 DIV SUM( ALL - + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-9432
SELECT + 66 / SUM ( ALL - + 85 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT + SUM( DISTINCT 89 ) * - + 11 * 29 + - 80
----
-28471

skipif mysql # not compatible
query I rowsort label-9433
SELECT + SUM ( DISTINCT 89 ) * - + 11 * 29 + - 80
----
-28471

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT + 42 * - + SUM( + - 67 )
----
2814

skipif mysql # not compatible
query I rowsort label-9434
SELECT + 42 * - + SUM ( + - 67 )
----
2814

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL COUNT( * ) * - COUNT( ALL - 16 ) / - + 29 * - - 34 + + CASE + 81 WHEN 29 THEN NULL WHEN 80 - + 92 THEN - 60 END * - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL COUNT ( * ) * - COUNT ( ALL - 16 ) / - + 29 * - - 34 + + CASE + 81 WHEN 29 THEN NULL WHEN 80 - + 92 THEN - 60 END * - 80 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT + ( NULLIF ( + - CAST( + 75 AS SIGNED ), + 34 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-9436
SELECT + ( NULLIF ( + - CAST ( + 75 AS INTEGER ), + 34 ) )
----
-75

query I rowsort
SELECT + NULLIF ( + - 49, 14 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT ALL 95 * SUM( 18 ) AS col0
----
1710

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL 95 * SUM ( 18 ) AS col0
----
1710

query I rowsort
SELECT - 59 * - 81 - + 18 col1
----
4761

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT SUM( DISTINCT ( + - 97 ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-9440
SELECT SUM ( DISTINCT ( + - 97 ) ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT MAX( + - 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9441
SELECT MAX ( + - 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT MAX( + - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-9442
SELECT MAX ( + - 70 ) AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9443
SELECT - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * 77 * - + COALESCE ( + 26, + 49 ) + + - SUM( - ( + 7 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 77 * - + COALESCE ( + 26, + 49 ) + + - SUM ( - ( + 7 ) )
----
NULL

query I rowsort
SELECT DISTINCT + 52 * - 5 AS col1
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT ALL 82 + MAX( + 47 ) AS col0
----
129

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL 82 + MAX ( + 47 ) AS col0
----
129

query I rowsort
SELECT ALL + + 94 + + 17 * - 62
----
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT - + 13 - + - ( - CAST( + 43 AS SIGNED ) )
----
-56

skipif mysql # not compatible
query I rowsort label-9447
SELECT - + 13 - + - ( - CAST ( + 43 AS INTEGER ) )
----
-56

query I rowsort
SELECT DISTINCT + 7 * + - 84 * - + ( - + 78 ) AS col1
----
-45864

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT 9 * + + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT 9 * + + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT - + 80 + + + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-9450
SELECT - + 80 + + + COUNT ( * )
----
-79

query I rowsort
SELECT + 96 + - 66 * + 76 * + 49 * 16
----
-3932448

query II rowsort
SELECT - 39 col0, - 89 AS col2
----
-39
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT + COUNT( * ) + - 82
----
-81

skipif mysql # not compatible
query I rowsort label-9453
SELECT + COUNT ( * ) + - 82
----
-81

query I rowsort
SELECT - 23 + - - ( 37 )
----
14

query II rowsort
SELECT ALL - 14 AS col0, 45 * - 82 - - - 56
----
-14
-3746

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT - COUNT( * ) + - 47
----
-48

skipif mysql # not compatible
query I rowsort label-9456
SELECT - COUNT ( * ) + - 47
----
-48

query I rowsort
SELECT - - 37 + 38 + + - 28
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9458
SELECT DISTINCT ( - - 32 ) AS col0, MIN( 84 ) AS col2
----
32
84

skipif mysql # not compatible
query II rowsort label-9458
SELECT DISTINCT ( - - 32 ) AS col0, MIN ( 84 ) AS col2
----
32
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9459
SELECT - ( - ( - 46 ) ) * - - SUM( 58 ), CAST( NULL AS SIGNED ) AS col2
----
-2668
NULL

skipif mysql # not compatible
query II rowsort label-9459
SELECT - ( - ( - 46 ) ) * - - SUM ( 58 ), CAST ( NULL AS INTEGER ) AS col2
----
-2668
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT DISTINCT + COUNT( * ) * + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT + COUNT ( * ) * + 0 AS col0
----
0

query I rowsort
SELECT DISTINCT + 1 * + - 70 col0
----
-70

query I rowsort
SELECT + 25 + + 71
----
96

query I rowsort
SELECT + CASE - + 65 WHEN 71 THEN + 87 * 34 * + 54 + + ( + - 63 ) - + + 73 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL - 58 / + 47 + - + CASE - + 13 WHEN + - NULLIF ( + ( + 86 ), - 25 ) / - - COUNT( * ) THEN - 57 + - + 3 WHEN 27 + - 21 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL - 58 / + 47 + - + CASE - + 13 WHEN + - NULLIF ( + ( + 86 ), - 25 ) / - - COUNT ( * ) THEN - 57 + - + 3 WHEN 27 + - 21 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9465
SELECT - 89 * CAST( + COUNT( * ) AS SIGNED ) * + 9 AS col1
----
-801

skipif mysql # not compatible
query I rowsort label-9465
SELECT - 89 * CAST ( + COUNT ( * ) AS INTEGER ) * + 9 AS col1
----
-801

query I rowsort
SELECT DISTINCT + 38 * 28 * + 26
----
27664

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL - 84 * + COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL - 84 * + COUNT ( * ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9468
SELECT DISTINCT 36 / CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT 36 / CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT DISTINCT + 12 + COALESCE ( + 87, + + 50 + - 63 + + + COUNT( * ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT + 12 + COALESCE ( + 87, + + 50 + - 63 + + + COUNT ( * ) ) AS col0
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-9470
SELECT 35 DIV + - 1, 55 col0
----
-35
55

skipif mysql # not compatible
query II rowsort label-9470
SELECT 35 / + - 1, 55 col0
----
-35
55

query I rowsort
SELECT 25 + + ( + 35 ) * - 15 col2
----
-500

query I rowsort
SELECT NULLIF ( + 11, - - 82 ) * 5
----
55

query I rowsort
SELECT ALL + 44 + - - 96 * - - 54 * 30 AS col2
----
155564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT DISTINCT 70 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT 70 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT ALL + COUNT( ALL 12 ) - - MAX( DISTINCT + 62 ) * - + 57
----
-3533

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL + COUNT ( ALL 12 ) - - MAX ( DISTINCT + 62 ) * - + 57
----
-3533

query I rowsort
SELECT + 19 * + 31 AS col1
----
589

query I rowsort
SELECT ALL + ( 72 ) * 19 + - 74 AS col1
----
1294

onlyif mysql # aggregate syntax: 
query II rowsort label-9478
SELECT + - COUNT( ALL - 14 ) * + ( ( + 54 ) ) + - - MAX( + 25 ) AS col2, 98 * - 87 AS col2
----
-29
-8526

skipif mysql # not compatible
query II rowsort label-9478
SELECT + - COUNT ( ALL - 14 ) * + ( ( + 54 ) ) + - - MAX ( + 25 ) AS col2, 98 * - 87 AS col2
----
-29
-8526

query II rowsort
SELECT DISTINCT 97 - 9 col2, - 96
----
88
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT ALL NULLIF ( - 60, COUNT( * ) * - 57 + + COALESCE ( + - 90, - 93 * - CASE + 1 WHEN COUNT( * ) + - - 5 THEN - ( 19 ) END ) - - COUNT( * ) * + 19 ) - + - 86
----
26

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL NULLIF ( - 60, COUNT ( * ) * - 57 + + COALESCE ( + - 90, - 93 * - CASE + 1 WHEN COUNT ( * ) + - - 5 THEN - ( 19 ) END ) - - COUNT ( * ) * + 19 ) - + - 86
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT + 21 * + + COUNT( DISTINCT - 37 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9481
SELECT + 21 * + + COUNT ( DISTINCT - 37 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL - 46 * - - CASE - 15 WHEN 68 * + + COUNT( * ) THEN + - 34 WHEN 46 THEN ( + 23 ) + + 79 + 49 END * - 19 * + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL - 46 * - - CASE - 15 WHEN 68 * + + COUNT ( * ) THEN + - 34 WHEN 46 THEN ( + 23 ) + + 79 + 49 END * - 19 * + 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9483
SELECT - COUNT( * ) DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9483
SELECT - COUNT ( * ) / + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9484
SELECT DISTINCT 0 DIV 76 + - 92 + + CAST( - COUNT( * ) AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT 0 / 76 + - 92 + + CAST ( - COUNT ( * ) AS INTEGER )
----
-93

query I rowsort
SELECT ALL + ( + + 48 ) col1
----
48

query I rowsort
SELECT DISTINCT - ( + - 23 ) * + 50 AS col1
----
1150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9487
SELECT 19 DIV NULLIF ( - CASE - 52 WHEN - 87 * SUM( DISTINCT - - 5 ) * - 89 * + 16 + 40 - 67 THEN - 70 + AVG ( + 68 ) WHEN + CAST( AVG ( + 82 ) AS SIGNED ) * + COUNT( * ) + + 83 + + + CASE - COALESCE ( + COUNT( * ), + 0 ) WHEN ( 6 ) THEN - 96 ELSE NULL END + + - 51 DIV 38 THEN - 64 + - 61 ELSE - 79 END, - 11 + - 50 )
----
0

skipif mysql # not compatible
query I rowsort label-9487
SELECT 19 / NULLIF ( - CASE - 52 WHEN - 87 * SUM ( DISTINCT - - 5 ) * - 89 * + 16 + 40 - 67 THEN - 70 + AVG ( + 68 ) WHEN + CAST ( AVG ( + 82 ) AS INTEGER ) * + COUNT ( * ) + + 83 + + + CASE - COALESCE ( + COUNT ( * ), + 0 ) WHEN ( 6 ) THEN - 96 ELSE NULL END + + - 51 / 38 THEN - 64 + - 61 ELSE - 79 END, - 11 + - 50 )
----
0

query I rowsort
SELECT ALL - 2 * - 50
----
100

query I rowsort
SELECT 50 * + + 72
----
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL ( - 60 ) * - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL ( - 60 ) * - COUNT ( * )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9491
SELECT ALL MAX( - + 25 ) * + CASE + CASE - 92 WHEN CAST( + COALESCE ( - 88, + AVG ( DISTINCT - 84 ) - + 59 ) AS SIGNED ) * + + COUNT( * ) THEN - 35 WHEN + 35 THEN NULL END WHEN - 40 * + + 36 THEN NULLIF ( - NULLIF ( + + 58, - + 77 ), + 23 ) WHEN 56 THEN NULL END + - + ( - COUNT( ALL + + 8 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL MAX ( - + 25 ) * + CASE + CASE - 92 WHEN CAST ( + COALESCE ( - 88, + AVG ( DISTINCT - 84 ) - + 59 ) AS INTEGER ) * + + COUNT ( * ) THEN - 35 WHEN + 35 THEN NULL END WHEN - 40 * + + 36 THEN NULLIF ( - NULLIF ( + + 58, - + 77 ), + 23 ) WHEN 56 THEN NULL END + - + ( - COUNT ( ALL + + 8 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9492
SELECT CAST( - 82 AS SIGNED ) - + + ( - 14 ) * + 36 + - 97 * + 88
----
-8114

skipif mysql # not compatible
query I rowsort label-9492
SELECT CAST ( - 82 AS INTEGER ) - + + ( - 14 ) * + 36 + - 97 * + 88
----
-8114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9493
SELECT MAX( - 40 ) DIV - 48, 36 * COUNT( * ) AS col1
----
0
36

skipif mysql # not compatible
query II rowsort label-9493
SELECT MAX ( - 40 ) / - 48, 36 * COUNT ( * ) AS col1
----
0
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT 13 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-9494
SELECT 13 / - 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT MAX( - - 38 ) * - - COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9495
SELECT MAX ( - - 38 ) * - - COUNT ( * ) AS col0
----
38

query I rowsort
SELECT 23 * + 36
----
828

query I rowsort
SELECT ALL + 97 + - 38 + ( - + 93 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT 25 * + 4 * + 87 - + + 94 + COUNT( * ) + + + 47 + + + ( 23 ) * - 18 + - 39 * + 35
----
6875

skipif mysql # not compatible
query I rowsort label-9499
SELECT 25 * + 4 * + 87 - + + 94 + COUNT ( * ) + + + 47 + + + ( 23 ) * - 18 + - 39 * + 35
----
6875

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT ALL - MAX( ALL - NULLIF ( + 77, + - 12 ) ) + + - 68 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL - MAX ( ALL - NULLIF ( + 77, + - 12 ) ) + + - 68 AS col0
----
9

query I rowsort
SELECT 9 * COALESCE ( - + 81, 0 * 0 * - ( - 5 ) ) * - 31
----
22599

onlyif mysql # aggregate syntax: 
query II rowsort label-9502
SELECT - 50 * + 93 + + 37 AS col1, + NULLIF ( + - 55, 54 * + - COUNT( * ) ) * - - 66 AS col1
----
-4613
-3630

skipif mysql # not compatible
query II rowsort label-9502
SELECT - 50 * + 93 + + 37 AS col1, + NULLIF ( + - 55, 54 * + - COUNT ( * ) ) * - - 66 AS col1
----
-4613
-3630

query I rowsort
SELECT ALL - ( 94 ) col0
----
-94

query I rowsort
SELECT 38 + - + 98 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL + 93 - + COUNT( * ) + + 29 + - ( - + 62 )
----
183

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL + 93 - + COUNT ( * ) + + 29 + - ( - + 62 )
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9506
SELECT ALL COUNT( * ) DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL COUNT ( * ) / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT DISTINCT - COUNT( ALL + 41 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT - COUNT ( ALL + 41 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT ALL - 58 - COUNT( * ) col1
----
-59

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL - 58 - COUNT ( * ) col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9509
SELECT - MIN( ALL + 88 ) DIV - + 2 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-9509
SELECT - MIN ( ALL + 88 ) / - + 2 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT COUNT( * ) * SUM( ALL 67 )
----
67

skipif mysql # not compatible
query I rowsort label-9510
SELECT COUNT ( * ) * SUM ( ALL 67 )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT ALL + 41 DIV - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL + 41 / - 61 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9512
SELECT + CASE + 45 WHEN + 93 THEN - + CAST( + + 99 AS SIGNED ) - - 52 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9512
SELECT + CASE + 45 WHEN + 93 THEN - + CAST ( + + 99 AS INTEGER ) - - 52 END AS col0
----
NULL

query I rowsort
SELECT + 53 * + 64
----
3392

query I rowsort
SELECT DISTINCT 31 * - 5 + + + 41 AS col0
----
-114

query II rowsort
SELECT - 74 AS col1, ( - 98 ) + - + 11 + 95 AS col2
----
-74
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ALL - COALESCE ( + - 22, - 87 ) * + 24 + - COUNT( * ) col0
----
527

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL - COALESCE ( + - 22, - 87 ) * + 24 + - COUNT ( * ) col0
----
527

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT + 19 * ( - + 78 ) + + + 27 - - MAX( ALL + 26 ) * 66
----
261

skipif mysql # not compatible
query I rowsort label-9517
SELECT + 19 * ( - + 78 ) + + + 27 - - MAX ( ALL + 26 ) * 66
----
261

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9518
SELECT ALL - CAST( NULL AS DECIMAL ) * + + ( ( - 86 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL - CAST ( NULL AS REAL ) * + + ( ( - 86 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9519
SELECT - COUNT( * ) - + CASE - + 46 WHEN 34 THEN + NULLIF ( + 29, + 3 * - - MAX( ALL CAST( + + 42 AS DECIMAL ) ) * + - 67 ) END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT - COUNT ( * ) - + CASE - + 46 WHEN 34 THEN + NULLIF ( + 29, + 3 * - - MAX ( ALL CAST ( + + 42 AS REAL ) ) * + - 67 ) END * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9520
SELECT ALL - SUM( - ( - 1 ) ), 68 + 75 + - ( - + 40 ) * + 53 + 72 + + SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) + + + 90 / + SUM( DISTINCT 83 ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9520
SELECT ALL - SUM ( - ( - 1 ) ), 68 + 75 + - ( - + 40 ) * + 53 + 72 + + SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + + + 90 / + SUM ( DISTINCT 83 ) AS col1
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9521
SELECT ALL 16 * + 50 + - CAST( 1 AS SIGNED ) * - + 50
----
850

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL 16 * + 50 + - CAST ( 1 AS INTEGER ) * - + 50
----
850

query I rowsort
SELECT - 85 * + 67 AS col1
----
-5695

query I rowsort
SELECT 64 * - + ( 95 ) + - 16 * - + 63 - - + 44 + - 14 AS col1
----
-5042

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT ALL COUNT( * ) + SUM( + 12 )
----
13

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL COUNT ( * ) + SUM ( + 12 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT CAST( NULL AS SIGNED ) - + - 48 * + + COALESCE ( + - 15, - - CAST( NULL AS SIGNED ) * 2 ) * + + CAST( NULL AS SIGNED ) - - AVG ( + 51 ) + - MAX( DISTINCT 59 ) + + 0 * - - 53 + - + 94 * - - SUM( + 93 ) * 63 - + + 23 + + 59 * - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT CAST ( NULL AS INTEGER ) - + - 48 * + + COALESCE ( + - 15, - - CAST ( NULL AS INTEGER ) * 2 ) * + + CAST ( NULL AS INTEGER ) - - AVG ( + 51 ) + - MAX ( DISTINCT 59 ) + + 0 * - - 53 + - + 94 * - - SUM ( + 93 ) * 63 - + + 23 + + 59 * - 81 AS col2
----
NULL

query I rowsort
SELECT 94 + + 76
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9527
SELECT ALL 25 / - 31 * - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL 25 / - 31 * - - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL ( + 68 ) + + ( - 12 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT DISTINCT - COALESCE ( + - 85, - COUNT( * ) * + 35 ) * + ( - 62 ) + + 31 AS col1
----
-5239

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT - COALESCE ( + - 85, - COUNT ( * ) * + 35 ) * + ( - 62 ) + + 31 AS col1
----
-5239

query I rowsort
SELECT ALL 72 + + 36
----
108

query II rowsort
SELECT + 54 * - - 92 col2, - 8 AS col1
----
4968
-8

query I rowsort
SELECT + 60 + - 89
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9533
SELECT + 48 * + - CAST( SUM( DISTINCT - CAST( - 59 AS SIGNED ) ) AS SIGNED )
----
-2832

skipif mysql # not compatible
query I rowsort label-9533
SELECT + 48 * + - CAST ( SUM ( DISTINCT - CAST ( - 59 AS INTEGER ) ) AS INTEGER )
----
-2832

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT + MIN( - + 81 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT + MIN ( - + 81 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9535
SELECT ALL + COUNT( 55 ) col0, - 51
----
1
-51

skipif mysql # not compatible
query II rowsort label-9535
SELECT ALL + COUNT ( 55 ) col0, - 51
----
1
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT + CASE COUNT( * ) WHEN - 27 * - 44 THEN + 47 * 85 + - 88 WHEN + 33 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT + CASE COUNT ( * ) WHEN - 27 * - 44 THEN + 47 * 85 + - 88 WHEN + 33 THEN NULL END col0
----
NULL

query I rowsort
SELECT + ( + - 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT ALL 15 * + COUNT( * ) - COUNT( * ) * + 24 * 87 AS col1
----
-2073

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL 15 * + COUNT ( * ) - COUNT ( * ) * + 24 * 87 AS col1
----
-2073

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT DISTINCT - COUNT( DISTINCT + ( + + 59 ) ) * 22 - 34 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT - COUNT ( DISTINCT + ( + + 59 ) ) * 22 - 34 AS col1
----
-56

query I rowsort
SELECT - + 51 * - + 35
----
1785

query I rowsort
SELECT ALL + + 93 col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9542
SELECT + + NULLIF ( + 24, - 36 ) * - + CAST( NULL AS SIGNED ) + + - COALESCE ( - 61, + 97, - ( + 24 ) ), + CASE + 87 WHEN + + MAX( + - 24 ) THEN NULL WHEN 61 THEN - + 99 * - + ( - - CAST( NULL AS SIGNED ) ) - - 51 ELSE NULL END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9542
SELECT + + NULLIF ( + 24, - 36 ) * - + CAST ( NULL AS INTEGER ) + + - COALESCE ( - 61, + 97, - ( + 24 ) ), + CASE + 87 WHEN + + MAX ( + - 24 ) THEN NULL WHEN 61 THEN - + 99 * - + ( - - CAST ( NULL AS INTEGER ) ) - - 51 ELSE NULL END AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9543
SELECT - + 1 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-9543
SELECT - + 1 / 95
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9544
SELECT ALL - COUNT( * ) + - 67, 3 AS col1
----
-68
3

skipif mysql # not compatible
query II rowsort label-9544
SELECT ALL - COUNT ( * ) + - 67, 3 AS col1
----
-68
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT DISTINCT ( + + MAX( + - 15 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-9545
SELECT DISTINCT ( + + MAX ( + - 15 ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL - - COUNT( * ) + - - 4 * COUNT( * ) col1
----
5

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL - - COUNT ( * ) + - - 4 * COUNT ( * ) col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT ALL MIN( - - ( 71 ) )
----
71

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL MIN ( - - ( 71 ) )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT + - 74 + + COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-9548
SELECT + - 74 + + COUNT ( * ) AS col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9549
SELECT - 79 * - + 51 + 18 + NULLIF ( + + 50, MAX( DISTINCT + 85 ) ) * - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT - 79 * - + 51 + 18 + NULLIF ( + + 50, MAX ( DISTINCT + 85 ) ) * - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - - 28 + + 70 * + - ( 1 ) AS col1
----
-42

query I rowsort
SELECT DISTINCT + - 65 + - + 18 AS col0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9552
SELECT - - CAST( NULL AS SIGNED ) * - - AVG ( + 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9552
SELECT - - CAST ( NULL AS INTEGER ) * - - AVG ( + 43 )
----
NULL

query I rowsort
SELECT - ( + + 50 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT ALL 84 * - - COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL 84 * - - COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9555
SELECT ALL - MAX( ALL + 77 ) + + 77 AS col1, - 82
----
0
-82

skipif mysql # not compatible
query II rowsort label-9555
SELECT ALL - MAX ( ALL + 77 ) + + 77 AS col1, - 82
----
0
-82

query I rowsort
SELECT ALL ( CASE - + 96 WHEN + ( - + 71 ) THEN - 82 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9557
SELECT ALL CAST( - ( + - 75 ) AS SIGNED ) + - 47 + - 32 - + - 26 * - - 34 * + + 34
----
30052

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL CAST ( - ( + - 75 ) AS INTEGER ) + - 47 + - 32 - + - 26 * - - 34 * + + 34
----
30052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9558
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT + 60 * + 92 * + 93 AS col1
----
513360

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT DISTINCT MIN( + + 82 ) * - 67
----
-5494

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT MIN ( + + 82 ) * - 67
----
-5494

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT - 48 - 39 + + 57 * + COUNT( ALL - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-9561
SELECT - 48 - 39 + + 57 * + COUNT ( ALL - 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT + 24 - - SUM( + - 72 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9562
SELECT + 24 - - SUM ( + - 72 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT + COUNT( * ) * - 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9563
SELECT + COUNT ( * ) * - 44 AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT CAST( + 53 AS SIGNED ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9564
SELECT CAST ( + 53 AS INTEGER ) AS col1
----
53

query II rowsort
SELECT DISTINCT + 70, + 95 AS col1
----
70
95

onlyif mysql # DIV for integer division: 
query II rowsort label-9566
SELECT DISTINCT 6 * + - 30 * + + 45 * + ( + 68 ), + 59 DIV + 82 * - 55 AS col1
----
-550800
0

skipif mysql # not compatible
query II rowsort label-9566
SELECT DISTINCT 6 * + - 30 * + + 45 * + ( + 68 ), + 59 / + 82 * - 55 AS col1
----
-550800
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9567
SELECT DISTINCT ( - 30 ) DIV 12 DIV - - NULLIF ( + 34, - + ( + 88 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT ( - 30 ) / 12 / - - NULLIF ( + 34, - + ( + 88 ) ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT - SUM( - 22 ) * + 9 + - - 53 AS col2
----
251

skipif mysql # not compatible
query I rowsort label-9568
SELECT - SUM ( - 22 ) * + 9 + - - 53 AS col2
----
251

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT CAST( + + 57 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-9569
SELECT CAST ( + + 57 AS INTEGER )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9570
SELECT + - 85 DIV - - 85 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9570
SELECT + - 85 / - - 85 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9571
SELECT + 94 * + 70 + + + 40 AS col1, - COUNT( * ) + SUM( + - 67 )
----
6620
-68

skipif mysql # not compatible
query II rowsort label-9571
SELECT + 94 * + 70 + + + 40 AS col1, - COUNT ( * ) + SUM ( + - 67 )
----
6620
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9572
SELECT + + COUNT( * ) DIV - COUNT( * ) + + 62
----
61

skipif mysql # not compatible
query I rowsort label-9572
SELECT + + COUNT ( * ) / - COUNT ( * ) + + 62
----
61

query I rowsort
SELECT + 65 + 68 + - 41 * + - 99 AS col2
----
4192

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT ALL + 96 * + COUNT( ALL + 4 ) * - + 18 + - - 95 * + 51 * - COUNT( * ) + - 23 + - 31 + - 0 + - - 24 AS col2
----
-6603

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL + 96 * + COUNT ( ALL + 4 ) * - + 18 + - - 95 * + 51 * - COUNT ( * ) + - 23 + - 31 + - 0 + - - 24 AS col2
----
-6603

query I rowsort
SELECT + - NULLIF ( + + 93, + 95 )
----
-93

query I rowsort
SELECT + - 84 * - - 23
----
-1932

query II rowsort
SELECT - - 20 + ( 22 ), - 30 AS col0
----
42
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9578
SELECT - 77 + - COUNT( * ) - + + 60 * - + CAST( NULL AS DECIMAL ) + + CASE 84 WHEN - 98 THEN CAST( + - NULLIF ( - 21, 41 + COUNT( * ) ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT - 77 + - COUNT ( * ) - + + 60 * - + CAST ( NULL AS REAL ) + + CASE 84 WHEN - 98 THEN CAST ( + - NULLIF ( - 21, 41 + COUNT ( * ) ) AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT + - 63 * 59
----
-3717

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9580
SELECT DISTINCT + 96 DIV 83 * - COUNT( * ) AS col1, - 6 AS col2
----
-1
-6

skipif mysql # not compatible
query II rowsort label-9580
SELECT DISTINCT + 96 / 83 * - COUNT ( * ) AS col1, - 6 AS col2
----
-1
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9581
SELECT DISTINCT - 16 * - - 25 + - COUNT( * ) col2, - CASE - 44 WHEN + 67 + - 97 + - + 83 * + COUNT( * ) + + 86 * - MAX( + - 24 ) + COUNT( * ) THEN + 21 END - + 56
----
-401
NULL

skipif mysql # not compatible
query II rowsort label-9581
SELECT DISTINCT - 16 * - - 25 + - COUNT ( * ) col2, - CASE - 44 WHEN + 67 + - 97 + - + 83 * + COUNT ( * ) + + 86 * - MAX ( + - 24 ) + COUNT ( * ) THEN + 21 END - + 56
----
-401
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9582
SELECT ALL + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * + + AVG ( DISTINCT + 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + + AVG ( DISTINCT + 41 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9583
SELECT ALL + + CASE + 45 WHEN - 12 THEN 96 ELSE NULL END + - 83 + - 7 + - - 32 + 57 + + CAST( + AVG ( 56 ) AS SIGNED ) * 6 / - + 85 * MIN( - 88 ) / - 77 + - COUNT( * ) * + 30 + CAST( NULL AS SIGNED ) * + 25 / SUM( - 56 ) * + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL + + CASE + 45 WHEN - 12 THEN 96 ELSE NULL END + - 83 + - 7 + - - 32 + 57 + + CAST ( + AVG ( 56 ) AS INTEGER ) * 6 / - + 85 * MIN ( - 88 ) / - 77 + - COUNT ( * ) * + 30 + CAST ( NULL AS INTEGER ) * + 25 / SUM ( - 56 ) * + 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT - 11 + + + COUNT( * ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT - 11 + + + COUNT ( * ) AS col2
----
-10

query II rowsort
SELECT DISTINCT 84 AS col0, + 23
----
84
23

query I rowsort
SELECT ALL - ( - 50 ) + - ( ( - + 52 ) ) col1
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9587
SELECT 19 - - 18, 63 + + 49 + + 16 + 13 - + 84 * + CAST( NULL AS SIGNED ) AS col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-9587
SELECT 19 - - 18, 63 + + 49 + + 16 + 13 - + 84 * + CAST ( NULL AS INTEGER ) AS col2
----
37
NULL

query II rowsort
SELECT ALL 89 AS col2, 52 * + - 84 AS col0
----
89
-4368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9589
SELECT COUNT( * ) DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-9589
SELECT COUNT ( * ) / + 53
----
0

query II rowsort
SELECT 0 * + + 48 col2, + 60 AS col2
----
0
60

query I rowsort
SELECT 9 + 49 + - 9
----
49

query II rowsort
SELECT - 49, - 49
----
-49
-49

query I rowsort
SELECT 48 * 20 * - - 45
----
43200

query I rowsort
SELECT 19 + 55
----
74

query I rowsort
SELECT 54 - 23 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9596
SELECT ALL - MIN( CAST( NULL AS SIGNED ) ) * + + NULLIF ( + 96, + - 24 * - - AVG ( + 72 ) ) * - COALESCE ( 19, + + ( - 49 ), + NULLIF ( - 6, + + 30 * - + 54 ) ) - - - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL - MIN ( CAST ( NULL AS INTEGER ) ) * + + NULLIF ( + 96, + - 24 * - - AVG ( + 72 ) ) * - COALESCE ( 19, + + ( - 49 ), + NULLIF ( - 6, + + 30 * - + 54 ) ) - - - 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9597
SELECT DISTINCT - COUNT( * ) DIV - + 4 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT - COUNT ( * ) / - + 4 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9598
SELECT ALL ( + + 71 ) - - COUNT( * ) + + 19 * 38 / + + CAST( NULL AS SIGNED ) - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL ( + + 71 ) - - COUNT ( * ) + + 19 * 38 / + + CAST ( NULL AS INTEGER ) - - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT 35 * NULLIF ( + - MIN( ALL 37 ), - 38 )
----
-1295

skipif mysql # not compatible
query I rowsort label-9599
SELECT 35 * NULLIF ( + - MIN ( ALL 37 ), - 38 )
----
-1295

query II rowsort
SELECT DISTINCT 60 AS col2, + 87 + - 55 AS col2
----
60
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9601
SELECT DISTINCT 30 * CAST( - NULLIF ( 19, + - 2 + CASE - 78 WHEN 67 THEN + - COUNT( * ) END * + 59 ) AS SIGNED ) * 31 + + - 39 AS col1
----
-17709

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT 30 * CAST ( - NULLIF ( 19, + - 2 + CASE - 78 WHEN 67 THEN + - COUNT ( * ) END * + 59 ) AS INTEGER ) * 31 + + - 39 AS col1
----
-17709

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT + COUNT( * ) - - 42
----
43

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT + COUNT ( * ) - - 42
----
43

query I rowsort
SELECT 63 + - 65
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9604
SELECT + 0 DIV + COUNT( ALL - 11 ) + + 70 + - + 92 * NULLIF ( 19, - + 59 ) AS col0
----
-1678

skipif mysql # not compatible
query I rowsort label-9604
SELECT + 0 / + COUNT ( ALL - 11 ) + + 70 + - + 92 * NULLIF ( 19, - + 59 ) AS col0
----
-1678

query I rowsort
SELECT 22 * - - 87 * + 70
----
133980

query I rowsort
SELECT - 96 + - 31 * - + 74 col0
----
2198

onlyif mysql # aggregate syntax: 
query II rowsort label-9607
SELECT ALL - 81 AS col1, COUNT( * ) AS col1
----
-81
1

skipif mysql # not compatible
query II rowsort label-9607
SELECT ALL - 81 AS col1, COUNT ( * ) AS col1
----
-81
1

query I rowsort
SELECT DISTINCT - + ( 17 )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9609
SELECT ALL - COALESCE ( - + 97, + 52 DIV + 47 + - ( - - 65 ) * + - 60 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL - COALESCE ( - + 97, + 52 / + 47 + - ( - - 65 ) * + - 60 ) AS col0
----
97

query I rowsort
SELECT DISTINCT - 43 + - 66 AS col0
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9611
SELECT COUNT( * ) DIV + + 76
----
0

skipif mysql # not compatible
query I rowsort label-9611
SELECT COUNT ( * ) / + + 76
----
0

query I rowsort
SELECT DISTINCT - - ( + 92 )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT ALL 11 + - ( COALESCE ( - + 75, + ( + + CAST( NULL AS SIGNED ) ) ) )
----
86

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL 11 + - ( COALESCE ( - + 75, + ( + + CAST ( NULL AS INTEGER ) ) ) )
----
86

query I rowsort
SELECT ALL - 30 + + 71
----
41

query I rowsort
SELECT + ( 38 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT + MAX( ALL - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-9616
SELECT + MAX ( ALL - 35 )
----
-35

query I rowsort
SELECT 73 * + 55 * 56 + + 47
----
224887

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT DISTINCT COUNT( * ) * + ( - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT COUNT ( * ) * + ( - 26 )
----
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-9619
SELECT ALL - 39 col0, 56 DIV + 2 AS col0
----
-39
28

skipif mysql # not compatible
query II rowsort label-9619
SELECT ALL - 39 col0, 56 / + 2 AS col0
----
-39
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT ALL - 86 + - 5 - CASE COUNT( * ) WHEN + SUM( DISTINCT + 74 ) + + 91 + + COUNT( * ) * - + ( + 24 ) / 70 THEN NULL WHEN + COALESCE ( - + 69, - 84 * + 16 * + + 4 + - 68 + - + 55 / - 35 ) * - 66 THEN - 42 + - ( - 67 ) END * 60 * + CASE - - COUNT( * ) WHEN + - 86 THEN - COUNT( * ) WHEN + - 76 * - ( - - 54 ) THEN + COUNT( ALL + 78 ) * - 80 * 51 - - - 72 * - COUNT( + 55 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL - 86 + - 5 - CASE COUNT ( * ) WHEN + SUM ( DISTINCT + 74 ) + + 91 + + COUNT ( * ) * - + ( + 24 ) / 70 THEN NULL WHEN + COALESCE ( - + 69, - 84 * + 16 * + + 4 + - 68 + - + 55 / - 35 ) * - 66 THEN - 42 + - ( - 67 ) END * 60 * + CASE - - COUNT ( * ) WHEN + - 86 THEN - COUNT ( * ) WHEN + - 76 * - ( - - 54 ) THEN + COUNT ( ALL + 78 ) * - 80 * 51 - - - 72 * - COUNT ( + 55 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9621
SELECT - CAST( NULL AS DECIMAL ) * 99 / + 15 + + - NULLIF ( + + COUNT( * ), - + AVG ( + - 83 ) ) AS col1, 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-9621
SELECT - CAST ( NULL AS REAL ) * 99 / + 15 + + - NULLIF ( + + COUNT ( * ), - + AVG ( + - 83 ) ) AS col1, 8
----
NULL
8

query I rowsort
SELECT 29 + + ( ( + 38 ) )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT 38 + + COUNT( * ) + - - 60 col1
----
99

skipif mysql # not compatible
query I rowsort label-9623
SELECT 38 + + COUNT ( * ) + - - 60 col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT CAST( NULL AS SIGNED ) * - + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT CAST ( NULL AS INTEGER ) * - + 52
----
NULL

query I rowsort
SELECT ALL 7 * - 57 * 25 AS col0
----
-9975

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT 37 DIV + 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9626
SELECT 37 / + 40 AS col2
----
0

query I rowsort
SELECT 73 * + 29 AS col1
----
2117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9628
SELECT 44 - + 0 col2, - 35 * - CASE - 70 WHEN + ( - 35 ) * - + CASE + + COUNT( * ) WHEN - ( + COUNT( * ) ) * 68 + - 30 + - MIN( 53 ) - - 54 * - - 62 THEN + 43 + + 92 ELSE + - 61 + - 21 END - - + 67 - - ( + 60 ) + - 44 - - - CAST( NULL AS SIGNED ) * 89 / - 57 / 4 THEN NULL WHEN + - 78 THEN 29 END
----
44
NULL

skipif mysql # not compatible
query II rowsort label-9628
SELECT 44 - + 0 col2, - 35 * - CASE - 70 WHEN + ( - 35 ) * - + CASE + + COUNT ( * ) WHEN - ( + COUNT ( * ) ) * 68 + - 30 + - MIN ( 53 ) - - 54 * - - 62 THEN + 43 + + 92 ELSE + - 61 + - 21 END - - + 67 - - ( + 60 ) + - 44 - - - CAST ( NULL AS INTEGER ) * 89 / - 57 / 4 THEN NULL WHEN + - 78 THEN 29 END
----
44
NULL

query I rowsort
SELECT 53 - - 86
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL MAX( + ( + 57 ) )
----
57

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL MAX ( + ( + 57 ) )
----
57

query I rowsort
SELECT ALL - + 26 + 22 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-9632
SELECT COUNT( * ) * + 96 AS col2, 60
----
96
60

skipif mysql # not compatible
query II rowsort label-9632
SELECT COUNT ( * ) * + 96 AS col2, 60
----
96
60

query I rowsort
SELECT ALL - + 9 + + 26 * 63
----
1629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9634
SELECT DISTINCT + MAX( ALL 2 ) * - CAST( - 47 AS SIGNED ) + 22 + COUNT( * ) * - NULLIF ( + 99, + + CASE + + 87 WHEN - 30 * - 27 THEN + - 65 + 24 WHEN - 70 * + 97 * - 67 * COUNT( * ) + + COUNT( * ) * + CAST( NULL AS SIGNED ) * + 62 THEN NULL ELSE + 85 / - + 36 * 88 + 43 + + - 85 + ( - 33 ) END * - ( - 48 ) * 77 ) * + 14 + - 69 AS col2
----
-1339

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT + MAX ( ALL 2 ) * - CAST ( - 47 AS INTEGER ) + 22 + COUNT ( * ) * - NULLIF ( + 99, + + CASE + + 87 WHEN - 30 * - 27 THEN + - 65 + 24 WHEN - 70 * + 97 * - 67 * COUNT ( * ) + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 62 THEN NULL ELSE + 85 / - + 36 * 88 + 43 + + - 85 + ( - 33 ) END * - ( - 48 ) * 77 ) * + 14 + - 69 AS col2
----
-1339

query I rowsort
SELECT ALL + 87 * - - 51 + - + 30 - 83
----
4324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9636
SELECT + COUNT( * ) DIV + COALESCE ( 33, - + ( - MIN( ALL - + 45 ) ) + + 70 * 15 ) - 99
----
-99

skipif mysql # not compatible
query I rowsort label-9636
SELECT + COUNT ( * ) / + COALESCE ( 33, - + ( - MIN ( ALL - + 45 ) ) + + 70 * 15 ) - 99
----
-99

query I rowsort
SELECT DISTINCT + 89 * 36 * - + 31
----
-99324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9638
SELECT 8 - - + 46 * COUNT( ALL 40 ) * + - CAST( + 63 AS SIGNED ) + 36
----
-2854

skipif mysql # not compatible
query I rowsort label-9638
SELECT 8 - - + 46 * COUNT ( ALL 40 ) * + - CAST ( + 63 AS INTEGER ) + 36
----
-2854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9639
SELECT ALL + CASE - + 22 WHEN - - 61 + + + CAST( + + ( + - SUM( DISTINCT 21 ) ) AS SIGNED ) - - 82 THEN 8 END * - + 34 + + CAST( 48 AS SIGNED ) + COALESCE ( - 93, + 3 ) * + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL + CASE - + 22 WHEN - - 61 + + + CAST ( + + ( + - SUM ( DISTINCT 21 ) ) AS INTEGER ) - - 82 THEN 8 END * - + 34 + + CAST ( 48 AS INTEGER ) + COALESCE ( - 93, + 3 ) * + 41 AS col1
----
NULL

query II rowsort
SELECT + ( 84 ), - 34 AS col2
----
84
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT ALL - 29 * - 97 * 92 + - - COUNT( * ) + - NULLIF ( + - 1, - - 59 ) AS col1
----
258798

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL - 29 * - 97 * 92 + - - COUNT ( * ) + - NULLIF ( + - 1, - - 59 ) AS col1
----
258798

onlyif mysql # DIV for integer division: 
query I rowsort label-9642
SELECT DISTINCT + 74 DIV - 52 - - - 37 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT + 74 / - 52 - - - 37 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT NULLIF ( + 51, - - COUNT( * ) + + ( 33 ) ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9643
SELECT NULLIF ( + 51, - - COUNT ( * ) + + ( 33 ) ) AS col0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9644
SELECT DISTINCT + 13 DIV - + 57 col2
----
0

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT + 13 / - + 57 col2
----
0

query I rowsort
SELECT - 31 * - 53 * 16 * + 32 * - - 28 AS col2
----
23554048

query I rowsort
SELECT + 37 * - 74 AS col0
----
-2738

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT COUNT( + 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9647
SELECT COUNT ( + 63 ) AS col2
----
1

query I rowsort
SELECT + 25 + 68 + 70 AS col1
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT ALL COUNT( * ) * 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL COUNT ( * ) * 69 AS col0
----
69

query I rowsort
SELECT + 95 - 75
----
20

query I rowsort
SELECT DISTINCT 1 * 38 AS col1
----
38

query II rowsort
SELECT ALL 54 AS col0, - ( - 99 ) * + 50
----
54
4950

query II rowsort
SELECT + 42 * - + 88 * 54 AS col1, + 29 * + 94 * - - 94 * - - 44
----
-199584
11274736

query I rowsort
SELECT - 47 + + 19
----
-28

query II rowsort
SELECT 73 AS col0, - CASE + 77 WHEN - 72 THEN - 32 END
----
73
NULL

query I rowsort
SELECT ALL 29 + 61 AS col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9657
SELECT + COUNT( * ) + - ( - + 26 ), + 16 * 99 * 39 AS col1
----
27
61776

skipif mysql # not compatible
query II rowsort label-9657
SELECT + COUNT ( * ) + - ( - + 26 ), + 16 * 99 * 39 AS col1
----
27
61776

query I rowsort
SELECT + 11 + + 94 * 20
----
1891

query I rowsort
SELECT - 17 - - 26 AS col2
----
9

query I rowsort
SELECT ALL - 68 * 7
----
-476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT ALL + 14 + - - 92 + + - CAST( - 15 AS SIGNED ) + + - 20 * - - 3 + - 66 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL + 14 + - - 92 + + - CAST ( - 15 AS INTEGER ) + + - 20 * - - 3 + - 66 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT - + 74 + 74 * - COUNT( * )
----
-148

skipif mysql # not compatible
query I rowsort label-9662
SELECT - + 74 + 74 * - COUNT ( * )
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT ALL - - CASE ( - 32 ) WHEN + 98 THEN CAST( - - 87 AS SIGNED ) + + 81 ELSE NULL END + - - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL - - CASE ( - 32 ) WHEN + 98 THEN CAST ( - - 87 AS INTEGER ) + + 81 ELSE NULL END + - - 80 AS col1
----
NULL

query II rowsort
SELECT - - 84, - ( + - 9 ) col1
----
84
9

query I rowsort
SELECT ALL 10 * + 61 * + 58 AS col1
----
35380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9666
SELECT - + COALESCE ( + 64, - + 69 ) AS col0, 99 + CAST( NULL AS SIGNED ) + + + 18 * - COUNT( * ) + + 11
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-9666
SELECT - + COALESCE ( + 64, - + 69 ) AS col0, 99 + CAST ( NULL AS INTEGER ) + + + 18 * - COUNT ( * ) + + 11
----
-64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT - 67 + - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-9667
SELECT - 67 + - COUNT ( * )
----
-68

query I rowsort
SELECT ALL - 2 + + 60 AS col2
----
58

query I rowsort
SELECT + - 96 * + 7
----
-672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9670
SELECT ALL + 4 / + + 68 + + 39 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL + 4 / + + 68 + + 39 / + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 88 AS col2, + 36 + + 38 AS col1
----
88
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT - - 47 / - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9672
SELECT - - 47 / - + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT - NULLIF ( 30, 51 - - 41 + 59 + CAST( NULL AS SIGNED ) / 37 + - 87 ) + + 42 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9673
SELECT - NULLIF ( 30, 51 - - 41 + 59 + CAST ( NULL AS INTEGER ) / 37 + - 87 ) + + 42 AS col0
----
12

query I rowsort
SELECT + - ( - - 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT ALL 2 * + + MIN( - 54 ) - 75 + - 96 col1
----
-279

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL 2 * + + MIN ( - 54 ) - 75 + - 96 col1
----
-279

onlyif mysql # DIV for integer division: 
query I rowsort label-9676
SELECT DISTINCT + 8 DIV COALESCE ( 25, - 86 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT + 8 / COALESCE ( 25, - 86 ) AS col1
----
0

query I rowsort
SELECT + - 79 col1
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-9678
SELECT ALL + COUNT( * ), - SUM( + + 43 ) col0
----
1
-43

skipif mysql # not compatible
query II rowsort label-9678
SELECT ALL + COUNT ( * ), - SUM ( + + 43 ) col0
----
1
-43

query I rowsort
SELECT - 83 * - 88 AS col1
----
7304

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT DISTINCT - - CASE - COUNT( * ) WHEN - + 2 THEN + 42 * 75 END * + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT - - CASE - COUNT ( * ) WHEN - + 2 THEN + 42 * 75 END * + 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT + MIN( 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-9681
SELECT + MIN ( 52 ) AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9682
SELECT 83 AS col0, ( - ( - CASE - 76 WHEN MIN( + 46 ) + + + 82 THEN AVG ( - 79 ) ELSE - - 26 * - - 81 * + COUNT( * ) END ) ) + + 93 * 83 * - CASE - - 96 WHEN 12 - - 82 THEN - 3 * + 61 * 20 / + 21 - - + CAST( 65 AS SIGNED ) END
----
83
NULL

skipif mysql # not compatible
query II rowsort label-9682
SELECT 83 AS col0, ( - ( - CASE - 76 WHEN MIN ( + 46 ) + + + 82 THEN AVG ( - 79 ) ELSE - - 26 * - - 81 * + COUNT ( * ) END ) ) + + 93 * 83 * - CASE - - 96 WHEN 12 - - 82 THEN - 3 * + 61 * 20 / + 21 - - + CAST ( 65 AS INTEGER ) END
----
83
NULL

query I rowsort
SELECT ALL - 16 * - - 8 col2
----
-128

query I rowsort
SELECT - 8 * + 88
----
-704

query I rowsort
SELECT + 14 * 23 AS col0
----
322

query I rowsort
SELECT - 25 + - 10
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9687
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9688
SELECT ALL 89 DIV + 33
----
2

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL 89 / + 33
----
2

query I rowsort
SELECT + CASE + 92 WHEN 71 THEN NULL WHEN + 96 THEN + - ( + + 30 ) * + + 19 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 47 * ( 99 ) + 83
----
-4570

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT MIN( ALL 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9691
SELECT MIN ( ALL 9 ) AS col1
----
9

query I rowsort
SELECT - 42 * 84
----
-3528

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT + COUNT( * ) + 36
----
37

skipif mysql # not compatible
query I rowsort label-9693
SELECT + COUNT ( * ) + 36
----
37

query I rowsort
SELECT ALL + ( + 40 ) * - + 86 + 14
----
-3426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9695
SELECT - NULLIF ( - + 49, COUNT( * ) * + CAST( - 46 AS SIGNED ) * 25 + - 20 / - ( - + 41 ) ) AS col2, COUNT( * ) * - 42
----
49
-42

skipif mysql # not compatible
query II rowsort label-9695
SELECT - NULLIF ( - + 49, COUNT ( * ) * + CAST ( - 46 AS INTEGER ) * 25 + - 20 / - ( - + 41 ) ) AS col2, COUNT ( * ) * - 42
----
49
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-9696
SELECT DISTINCT 47 * 31 AS col0, 52 DIV + - 5
----
1457
-10

skipif mysql # not compatible
query II rowsort label-9696
SELECT DISTINCT 47 * 31 AS col0, 52 / + - 5
----
1457
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL 6 + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL 6 + + COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT + COUNT( * ) * - 51 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-9698
SELECT + COUNT ( * ) * - 51 AS col1
----
-51

query II rowsort
SELECT ALL + 72 + + 44 AS col2, - 35
----
116
-35

query I rowsort
SELECT + 88 * - 55 AS col0
----
-4840

query I rowsort
SELECT ALL 0 + + 82 AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9702
SELECT - CAST( - - 44 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-9702
SELECT - CAST ( - - 44 AS INTEGER )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9703
SELECT - MIN( ALL - CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT - MIN ( ALL - CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT + 5 - - - 58
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9705
SELECT - 74 * NULLIF ( - 26, 18 ) DIV + COUNT( * ) + - 21 AS col1
----
1903

skipif mysql # not compatible
query I rowsort label-9705
SELECT - 74 * NULLIF ( - 26, 18 ) / + COUNT ( * ) + - 21 AS col1
----
1903

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT ALL COUNT( * ) * - 99 * - + 87 AS col2
----
8613

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL COUNT ( * ) * - 99 * - + 87 AS col2
----
8613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9707
SELECT ALL + CAST( - 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL + CAST ( - 81 AS INTEGER )
----
-81

query I rowsort
SELECT + 18 - 65 * + + 46
----
-2972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9709
SELECT ALL + + ( - + 62 ) * + CAST( - 68 AS SIGNED )
----
4216

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL + + ( - + 62 ) * + CAST ( - 68 AS INTEGER )
----
4216

query I rowsort
SELECT + 41 * - ( 47 )
----
-1927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9711
SELECT ALL 28 * COUNT( * ) DIV 82 col0
----
0

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL 28 * COUNT ( * ) / 82 col0
----
0

query I rowsort
SELECT 25 * - - 74 AS col2
----
1850

onlyif mysql # DIV for integer division: 
query I rowsort label-9713
SELECT 17 DIV ( + 24 ) + - 46 * 25 * + 20 * - - 26 + + 20 + + + 14
----
-597966

skipif mysql # not compatible
query I rowsort label-9713
SELECT 17 / ( + 24 ) + - 46 * 25 * + 20 * - - 26 + + 20 + + + 14
----
-597966

onlyif mysql # aggregate syntax: 
query II rowsort label-9714
SELECT 4 * + 28 AS col1, + COUNT( * ) AS col0
----
112
1

skipif mysql # not compatible
query II rowsort label-9714
SELECT 4 * + 28 AS col1, + COUNT ( * ) AS col0
----
112
1

query I rowsort
SELECT ALL + 49 * - 35
----
-1715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9716
SELECT ALL + ( - 59 ) DIV + SUM( DISTINCT 95 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL + ( - 59 ) / + SUM ( DISTINCT 95 ) AS col1
----
0

query I rowsort
SELECT ALL - 85 * - 21 AS col0
----
1785

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT ALL + NULLIF ( COALESCE ( + 28, - 65 ), + COUNT( * ) / - 45 ) + - 19 col2
----
9

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL + NULLIF ( COALESCE ( + 28, - 65 ), + COUNT ( * ) / - 45 ) + - 19 col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9719
SELECT 12 AS col1, + 55 - - MIN( DISTINCT 65 ) / CAST( NULL AS SIGNED ) col2
----
12
NULL

skipif mysql # not compatible
query II rowsort label-9719
SELECT 12 AS col1, + 55 - - MIN ( DISTINCT 65 ) / CAST ( NULL AS INTEGER ) col2
----
12
NULL

query II rowsort
SELECT 73 * ( - 96 ), - NULLIF ( + 75, - 66 ) * + 95 AS col0
----
-7008
-7125

query I rowsort
SELECT 44 + + 72 AS col2
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT ALL - 13 + - CAST( NULL AS SIGNED ) - - 73 + + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL - 13 + - CAST ( NULL AS INTEGER ) - - 73 + + 22 AS col2
----
NULL

query II rowsort
SELECT 53 + - 47 - 47, + 91 + + - 60 AS col2
----
-41
31

query I rowsort
SELECT ALL - 41 + + 80 * - 34
----
-2761

query II rowsort
SELECT + 46 * + 83 + 28 AS col2, 19
----
3846
19

query I rowsort
SELECT ALL 0 + - + 44
----
-44

query II rowsort
SELECT ALL 16, ( - 99 ) AS col1
----
16
-99

query I rowsort
SELECT 79 - 37 * - 78 * + 67 + 96 + + - 16
----
193521

query I rowsort
SELECT ALL + 41 + 91
----
132

query I rowsort
SELECT 14 + 47
----
61

query I rowsort
SELECT 91 * + - 37 * + - 81 - + 86 AS col0
----
272641

query I rowsort
SELECT ALL 33 * - 30
----
-990

query I rowsort
SELECT ALL - - 10 - - - 19
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT - COUNT( * ) + + 29
----
28

skipif mysql # not compatible
query I rowsort label-9734
SELECT - COUNT ( * ) + + 29
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9735
SELECT 70 DIV 85 * 23
----
0

skipif mysql # not compatible
query I rowsort label-9735
SELECT 70 / 85 * 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT DISTINCT + 8 * + COUNT( * ) + 93
----
101

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT + 8 * + COUNT ( * ) + 93
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT ALL + MAX( ALL 76 ) * - 16 + 0
----
-1216

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL + MAX ( ALL 76 ) * - 16 + 0
----
-1216

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9738
SELECT + 38 + + NULLIF ( - 34, - MAX( - - 60 ) + CAST( - + 46 AS DECIMAL ) + + 39 ) - + + COUNT( - 85 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9738
SELECT + 38 + + NULLIF ( - 34, - MAX ( - - 60 ) + CAST ( - + 46 AS REAL ) + + 39 ) - + + COUNT ( - 85 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9739
SELECT - NULLIF ( COUNT( * ), + 38 ) AS col2, + 58 - + - 33 AS col2
----
-1
91

skipif mysql # not compatible
query II rowsort label-9739
SELECT - NULLIF ( COUNT ( * ), + 38 ) AS col2, + 58 - + - 33 AS col2
----
-1
91

query I rowsort
SELECT 62 + - + COALESCE ( - + 75, - 53 * + 77 + + + 28 ) * + + 55
----
4187

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT 39 * + COUNT( ( 88 ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9741
SELECT 39 * + COUNT ( ( 88 ) ) AS col0
----
39

query I rowsort
SELECT - 79 + + 15
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT + COUNT( DISTINCT + 74 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9743
SELECT + COUNT ( DISTINCT + 74 ) col1
----
1

query I rowsort
SELECT CASE 80 WHEN - 79 / - 11 THEN NULL ELSE 29 END + - + 59 + + ( + 19 ) * - 69
----
-1341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9745
SELECT + + MAX( + COALESCE ( + - 23, + ( 96 ), + 85 ) ), + MAX( - 95 ) * COUNT( * ) + + CAST( NULL AS SIGNED ) * 83 AS col2
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-9745
SELECT + + MAX ( + COALESCE ( + - 23, + ( 96 ), + 85 ) ), + MAX ( - 95 ) * COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 83 AS col2
----
-23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT - 26 * + 3 * COUNT( * ) + - + 80 - - 60 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9746
SELECT - 26 * + 3 * COUNT ( * ) + - + 80 - - 60 AS col2
----
-98

query I rowsort
SELECT DISTINCT 80 + + 93
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9748
SELECT ALL ( ( + CASE CAST( 32 AS SIGNED ) WHEN + 98 THEN 42 WHEN - + COUNT( * ) / - + 37 * - - 33 THEN + + 78 ELSE NULL END ) ) + - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL ( ( + CASE CAST ( 32 AS INTEGER ) WHEN + 98 THEN 42 WHEN - + COUNT ( * ) / - + 37 * - - 33 THEN + + 78 ELSE NULL END ) ) + - 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT COUNT( + ( + + 76 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9749
SELECT COUNT ( + ( + + 76 ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT + 25 DIV - 75 + 10 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9750
SELECT + 25 / - 75 + 10 AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT DISTINCT CAST( + 27 AS SIGNED ) + 3
----
30

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT CAST ( + 27 AS INTEGER ) + 3
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-9752
SELECT + COUNT( * ), + 74 * + - 22 AS col0
----
1
-1628

skipif mysql # not compatible
query II rowsort label-9752
SELECT + COUNT ( * ), + 74 * + - 22 AS col0
----
1
-1628

query I rowsort
SELECT 63 + 65
----
128

query I rowsort
SELECT 67 * - 53 AS col0
----
-3551

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9755
SELECT DISTINCT - 5 col1, CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-9755
SELECT DISTINCT - 5 col1, CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
-5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9756
SELECT ALL + 45 + - + CAST( NULL AS SIGNED ) * + + 82 * + + 34 AS col0, + 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-9756
SELECT ALL + 45 + - + CAST ( NULL AS INTEGER ) * + + 82 * + + 34 AS col0, + 22
----
NULL
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9757
SELECT CASE 93 WHEN 81 THEN NULL WHEN - 39 THEN ( - CASE WHEN NOT 64 IN ( - COALESCE ( SUM( + + CAST( NULL AS DECIMAL ) ), + ( - 20 ) * - - 13 ), 9, - COUNT( * ) / + SUM( 40 ), - 44, - 78 + ( + 63 ), - 91 - + 36 + - CASE - + CAST( NULL AS SIGNED ) WHEN + - 23 THEN - + COUNT( * ) WHEN - COUNT( * ) THEN NULL END * + + COUNT( DISTINCT + + 62 ) * + + 99 * - COALESCE ( - + 23, + COUNT( * ), + - ( + COUNT( * ) ) ) ) THEN NULL WHEN NOT ( + 19 = ( NULL ) ) THEN 33 * 63 END ) END * - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT CASE 93 WHEN 81 THEN NULL WHEN - 39 THEN ( - CASE WHEN NOT 64 IN ( - COALESCE ( SUM ( + + CAST ( NULL AS REAL ) ), + ( - 20 ) * - - 13 ), 9, - COUNT ( * ) / + SUM ( 40 ), - 44, - 78 + ( + 63 ), - 91 - + 36 + - CASE - + CAST ( NULL AS INTEGER ) WHEN + - 23 THEN - + COUNT ( * ) WHEN - COUNT ( * ) THEN NULL END * + + COUNT ( DISTINCT + + 62 ) * + + 99 * - COALESCE ( - + 23, + COUNT ( * ), + - ( + COUNT ( * ) ) ) ) THEN NULL WHEN NOT ( + 19 = ( NULL ) ) THEN 33 * 63 END ) END * - 96 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9758
SELECT MAX( DISTINCT 45 ) * - 22 * - CAST( NULL AS SIGNED ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT MAX ( DISTINCT 45 ) * - 22 * - CAST ( NULL AS INTEGER ) - + COUNT ( * )
----
NULL

query II rowsort
SELECT 3, - 32 AS col2
----
3
-32

query I rowsort
SELECT ALL - COALESCE ( + ( - 24 ), 84 + - ( - + 91 ) ) col0
----
24

query I rowsort
SELECT DISTINCT - 0 * 49 col1
----
0

query I rowsort
SELECT DISTINCT 29 + - 98 + + 93 AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9763
SELECT 82 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT 82 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9764
SELECT NULLIF ( 43, + 76 ) * - 63 + - 45 * + - 30 AS col2, CASE - 62 WHEN + 91 THEN CAST( + 65 AS DECIMAL ) WHEN + - 67 + - 22 * 16 THEN NULL END - - + 24 + - 22 - ( + + COUNT( DISTINCT 29 ) ) - ( + MAX( ALL - + 8 ) ) AS col1
----
-1359
NULL

skipif mysql # not compatible
query II rowsort label-9764
SELECT NULLIF ( 43, + 76 ) * - 63 + - 45 * + - 30 AS col2, CASE - 62 WHEN + 91 THEN CAST ( + 65 AS REAL ) WHEN + - 67 + - 22 * 16 THEN NULL END - - + 24 + - 22 - ( + + COUNT ( DISTINCT 29 ) ) - ( + MAX ( ALL - + 8 ) ) AS col1
----
-1359
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9765
SELECT ALL - 10 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL - 10 - + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT ALL + 55 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL + 55 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT 98 + - COUNT( ALL - 56 ) + + COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9767
SELECT 98 + - COUNT ( ALL - 56 ) + + COUNT ( * ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT 69 * + COUNT( * ) * 36 AS col0
----
2484

skipif mysql # not compatible
query I rowsort label-9768
SELECT 69 * + COUNT ( * ) * 36 AS col0
----
2484

onlyif mysql # aggregate syntax: 
query II rowsort label-9769
SELECT ALL COUNT( * ) AS col2, - 42 * - + 13
----
1
546

skipif mysql # not compatible
query II rowsort label-9769
SELECT ALL COUNT ( * ) AS col2, - 42 * - + 13
----
1
546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9770
SELECT - 78 * - - 87 * + 50 + ( + 17 ) * COALESCE ( - 50, 21 ) * + CAST( - 66 AS SIGNED ) * 65 + - 39 AS col1
----
3307161

skipif mysql # not compatible
query I rowsort label-9770
SELECT - 78 * - - 87 * + 50 + ( + 17 ) * COALESCE ( - 50, 21 ) * + CAST ( - 66 AS INTEGER ) * 65 + - 39 AS col1
----
3307161

query I rowsort
SELECT ALL - NULLIF ( + + 89, + - 91 )
----
-89

query II rowsort
SELECT DISTINCT + 21 AS col2, - 33
----
21
-33

query I rowsort
SELECT DISTINCT + 12 * - 59
----
-708

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT ALL - ( + MIN( - 68 ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL - ( + MIN ( - 68 ) ) AS col0
----
68

query II rowsort
SELECT 10 AS col1, 11 AS col0
----
10
11

query I rowsort
SELECT - ( - 19 ) + - - 10 * + - 45 * - ( - 33 ) + + 81
----
-14750

query II rowsort
SELECT - 79, - ( + + 76 ) AS col1
----
-79
-76

query I rowsort
SELECT - 80 * NULLIF ( + + 10, 92 )
----
-800

query I rowsort
SELECT + 50 * 61 AS col0
----
3050

onlyif mysql # DIV for integer division: 
query I rowsort label-9780
SELECT + + 2 DIV - 1 - - 26 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9780
SELECT + + 2 / - 1 - - 26 AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT DISTINCT - + 70 * 61 * 0 DIV + 72 + + + 17 + - - 32 + + + 84 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT - + 70 * 61 * 0 / + 72 + + + 17 + - - 32 + + + 84 AS col1
----
133

query I rowsort
SELECT - - 33 - - 41 * - 86
----
-3493

query II rowsort
SELECT 71, - 7 - + 89 AS col0
----
71
-96

query I rowsort
SELECT ALL - 63 + 18 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9785
SELECT DISTINCT - COUNT( * ) AS col1, MAX( ALL - 21 ) col1
----
-1
-21

skipif mysql # not compatible
query II rowsort label-9785
SELECT DISTINCT - COUNT ( * ) AS col1, MAX ( ALL - 21 ) col1
----
-1
-21

query II rowsort
SELECT ALL + 90 AS col0, + 85
----
90
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9787
SELECT DISTINCT - COUNT( * ) * + CASE 67 WHEN 57 THEN CAST( NULL AS SIGNED ) / + - 37 * - 14 / + 44 * MAX( DISTINCT - + 94 ) + - 45 * - 48 + - 35 END + 31 * - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT - COUNT ( * ) * + CASE 67 WHEN 57 THEN CAST ( NULL AS INTEGER ) / + - 37 * - 14 / + 44 * MAX ( DISTINCT - + 94 ) + - 45 * - 48 + - 35 END + 31 * - - 96
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9788
SELECT - 67 DIV SUM( DISTINCT + + 88 ) * + + 5 * + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9788
SELECT - 67 / SUM ( DISTINCT + + 88 ) * + + 5 * + 49 AS col2
----
0

query I rowsort
SELECT - 25 + + 58 - + - 2 - ( + 71 ) * - - 72
----
-5077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9790
SELECT + 21 / + 29 - + CASE ( + 22 ) WHEN CAST( - 86 AS SIGNED ) THEN NULL WHEN 94 THEN + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9790
SELECT + 21 / + 29 - + CASE ( + 22 ) WHEN CAST ( - 86 AS INTEGER ) THEN NULL WHEN 94 THEN + 48 END
----
NULL

query II rowsort
SELECT + NULLIF ( + 86, - 74 ) * - 51 + - - 30, 82 - - 88 AS col2
----
-4356
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT + 7 - + CAST( NULL AS SIGNED ) + - + 1 * + + 84 / + 27 + - + CAST( NULL AS SIGNED ) * + - 32 * 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT + 7 - + CAST ( NULL AS INTEGER ) + - + 1 * + + 84 / + 27 + - + CAST ( NULL AS INTEGER ) * + - 32 * 6 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9793
SELECT ALL 77 * 22 + - - 3 * + - 66 / COUNT( * ) / - MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL 77 * 22 + - - 3 * + - 66 / COUNT ( * ) / - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT ALL NULLIF ( - + 73, + ( 99 ) ) * - + ( + - NULLIF ( - 11, ( + AVG ( - 79 ) ) ) ) / - 98 / - COUNT( * ) + - 88 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL NULLIF ( - + 73, + ( 99 ) ) * - + ( + - NULLIF ( - 11, ( + AVG ( - 79 ) ) ) ) / - 98 / - COUNT ( * ) + - 88 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + CASE 25 WHEN + + 84 * + 61 THEN 83 WHEN - + 98 * - 38 - + 83 THEN + 59 END
----
NULL

query I rowsort
SELECT ALL + 27 col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9797
SELECT ALL 59 * - 41 / - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL 59 * - 41 / - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL - COUNT( * ) * 29 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL - COUNT ( * ) * 29 AS col2
----
-29

query I rowsort
SELECT + 38 * + 95 + 17
----
3627

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT 60 * 47 * + - 87 + - - 20 + - 5 + - COUNT( DISTINCT - - 57 ) * - - 37 - + 57 * 90 * ( + 17 ) + + 33 AS col1
----
-332539

skipif mysql # not compatible
query I rowsort label-9800
SELECT 60 * 47 * + - 87 + - - 20 + - 5 + - COUNT ( DISTINCT - - 57 ) * - - 37 - + 57 * 90 * ( + 17 ) + + 33 AS col1
----
-332539

query I rowsort
SELECT ALL 23 * - 47 * 24
----
-25944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9802
SELECT + 29 + 95 * NULLIF ( + 13, + 66 ) DIV + + 69 + - ( - 80 ) - - COALESCE ( - 37, + COUNT( * ) ) DIV 84 * 38 - - 63 col0
----
189

skipif mysql # not compatible
query I rowsort label-9802
SELECT + 29 + 95 * NULLIF ( + 13, + 66 ) / + + 69 + - ( - 80 ) - - COALESCE ( - 37, + COUNT ( * ) ) / 84 * 38 - - 63 col0
----
189

query I rowsort
SELECT + ( - 46 ) + - 73 + + + 72 + + 40
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-9804
SELECT - 93 * - 55 * - COALESCE ( + 18, 26 + COUNT( ALL + ( + + 75 ) ) ) AS col0, 4 * 28 AS col0
----
-92070
112

skipif mysql # not compatible
query II rowsort label-9804
SELECT - 93 * - 55 * - COALESCE ( + 18, 26 + COUNT ( ALL + ( + + 75 ) ) ) AS col0, 4 * 28 AS col0
----
-92070
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9805
SELECT - 98 * - CAST( + 51 AS SIGNED ) * - 35 col2
----
-174930

skipif mysql # not compatible
query I rowsort label-9805
SELECT - 98 * - CAST ( + 51 AS INTEGER ) * - 35 col2
----
-174930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9806
SELECT - COALESCE ( + + 95, ( 96 ), - - COUNT( * ) - - 42 DIV - - 60 + - 29 * CASE + 95 WHEN + - 25 THEN NULL WHEN + - 0 THEN - COUNT( * ) ELSE NULL END * + 23 ) - + 90
----
-185

skipif mysql # not compatible
query I rowsort label-9806
SELECT - COALESCE ( + + 95, ( 96 ), - - COUNT ( * ) - - 42 / - - 60 + - 29 * CASE + 95 WHEN + - 25 THEN NULL WHEN + - 0 THEN - COUNT ( * ) ELSE NULL END * + 23 ) - + 90
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9807
SELECT ALL + CAST( - ( + ( + 48 ) ) AS SIGNED ) DIV COUNT( * ) * - COUNT( * ) + - 86 DIV 79 - + - 91 - + 85 DIV 18
----
134

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + CAST ( - ( + ( + 48 ) ) AS INTEGER ) / COUNT ( * ) * - COUNT ( * ) + - 86 / 79 - + - 91 - + 85 / 18
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-9808
SELECT - 20 + 62, + MAX( ALL + COALESCE ( + 39, + - ( ( 82 ) ), 25 ) ) col0
----
42
39

skipif mysql # not compatible
query II rowsort label-9808
SELECT - 20 + 62, + MAX ( ALL + COALESCE ( + 39, + - ( ( 82 ) ), 25 ) ) col0
----
42
39

query I rowsort
SELECT + + NULLIF ( - - 95, + 45 ) * + 41
----
3895

query I rowsort
SELECT DISTINCT + + 18 * + ( + 9 )
----
162

query I rowsort
SELECT + - 37 + ( - 34 ) - - + 61 + + + 86 col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT + 78 * + + 13 + - + COUNT( * ) + - + 68 * 63 AS col2
----
-3271

skipif mysql # not compatible
query I rowsort label-9812
SELECT + 78 * + + 13 + - + COUNT ( * ) + - + 68 * 63 AS col2
----
-3271

onlyif mysql # DIV for integer division: 
query I rowsort label-9813
SELECT ALL - 67 + + 85 * 16 DIV + + 16
----
18

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL - 67 + + 85 * 16 / + + 16
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT - + ( - + COUNT( * ) ) + 81 * - COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9814
SELECT - + ( - + COUNT ( * ) ) + 81 * - COUNT ( * ) AS col2
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9815
SELECT - - 87 + + SUM( DISTINCT + 60 ) - - + 63 DIV 96
----
147

skipif mysql # not compatible
query I rowsort label-9815
SELECT - - 87 + + SUM ( DISTINCT + 60 ) - - + 63 / 96
----
147

query I rowsort
SELECT ALL - 18 + 10 * 26 * + - 61 AS col0
----
-15878

onlyif mysql # DIV for integer division: 
query I rowsort label-9817
SELECT - + 12 + 18 DIV + 95 * 93
----
-12

skipif mysql # not compatible
query I rowsort label-9817
SELECT - + 12 + 18 / + 95 * 93
----
-12

query I rowsort
SELECT ALL - - 76 + + - 96 AS col2
----
-20

query I rowsort
SELECT ALL + 26 + + - 27 * + + 95 AS col1
----
-2539

query II rowsort
SELECT - 37 + 10 AS col1, 52 AS col1
----
-27
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT - MIN( DISTINCT 59 ) * + 36 * - - ( + 4 ) AS col0
----
-8496

skipif mysql # not compatible
query I rowsort label-9821
SELECT - MIN ( DISTINCT 59 ) * + 36 * - - ( + 4 ) AS col0
----
-8496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9822
SELECT DISTINCT CAST( - - MIN( - - 52 ) AS SIGNED ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT CAST ( - - MIN ( - - 52 ) AS INTEGER ) AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT ALL 73 / CAST( NULL AS SIGNED ) + + 76 / + 55 * - 55 - + - 70 * - - 56 * + 44 + + 86 * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL 73 / CAST ( NULL AS INTEGER ) + + 76 / + 55 * - 55 - + - 70 * - - 56 * + 44 + + 86 * + 25
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9824
SELECT - 96 * + + NULLIF ( 27, + - 37 + + MIN( 41 ) ) AS col0, 96
----
-2592
96

skipif mysql # not compatible
query II rowsort label-9824
SELECT - 96 * + + NULLIF ( 27, + - 37 + + MIN ( 41 ) ) AS col0, 96
----
-2592
96

query I rowsort
SELECT DISTINCT + ( 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT + MIN( ALL - ( - + 87 ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9826
SELECT + MIN ( ALL - ( - + 87 ) ) AS col2
----
87

query I rowsort
SELECT ALL 83 * - - 83 AS col0
----
6889

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT + SUM( ALL + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-9828
SELECT + SUM ( ALL + 77 )
----
77

query II rowsort
SELECT ALL + 43 AS col2, 56
----
43
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT CAST( - ( + 33 ) AS SIGNED ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-9830
SELECT CAST ( - ( + 33 ) AS INTEGER ) AS col2
----
-33

query I rowsort
SELECT ALL - 55 * - 23 * - + 65
----
-82225

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT + 59 + - + 57 * + ( + - COUNT( * ) )
----
116

skipif mysql # not compatible
query I rowsort label-9832
SELECT + 59 + - + 57 * + ( + - COUNT ( * ) )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT + SUM( - + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-9833
SELECT + SUM ( - + 77 )
----
-77

query I rowsort
SELECT + ( + + 39 ) + - 49 AS col1
----
-10

query II rowsort
SELECT ALL + 33, + 58 * 79 AS col1
----
33
4582

query I rowsort
SELECT - 6 * + 18
----
-108

query II rowsort
SELECT 52 col0, 7 AS col2
----
52
7

query I rowsort
SELECT ALL - ( 56 ) AS col2
----
-56

query I rowsort
SELECT ALL 70 * - 61
----
-4270

query I rowsort
SELECT 97 * + 98
----
9506

query I rowsort
SELECT DISTINCT - 90 * + - 60 AS col2
----
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT + 35 * - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-9842
SELECT + 35 * - COUNT ( * )
----
-35

query I rowsort
SELECT - ( 5 ) AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9844
SELECT ALL + CASE + 34 WHEN + ( + 41 ) + - COUNT( + 62 ) * + + CASE + 77 WHEN + 63 * - 14 / - CAST( COUNT( ALL + 5 ) AS SIGNED ) THEN 84 WHEN + COUNT( * ) THEN + + 11 END THEN + + 61 END + + CAST( NULL AS SIGNED ) * + SUM( - NULLIF ( 97, - 92 ) ) + + 90 + - + 67 / + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL + CASE + 34 WHEN + ( + 41 ) + - COUNT ( + 62 ) * + + CASE + 77 WHEN + 63 * - 14 / - CAST ( COUNT ( ALL + 5 ) AS INTEGER ) THEN 84 WHEN + COUNT ( * ) THEN + + 11 END THEN + + 61 END + + CAST ( NULL AS INTEGER ) * + SUM ( - NULLIF ( 97, - 92 ) ) + + 90 + - + 67 / + 4 AS col0
----
NULL

query I rowsort
SELECT - - ( + + 46 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9846
SELECT + NULLIF ( 29, - + 33 ) / 87 + - NULLIF ( 7, - 53 / - 34 * + 46 - CAST( NULL AS SIGNED ) / + - 64 / - 1 * + 22 * 65 * - - 24 + CAST( - + 27 AS SIGNED ) ) + - - CAST( + - COUNT( * ) AS SIGNED ) / + ( + - 68 ) + - 39 + + - 13 + CASE - - 47 WHEN + + 66 / - 37 THEN NULL WHEN + 12 + + 82 THEN - 28 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT + NULLIF ( 29, - + 33 ) / 87 + - NULLIF ( 7, - 53 / - 34 * + 46 - CAST ( NULL AS INTEGER ) / + - 64 / - 1 * + 22 * 65 * - - 24 + CAST ( - + 27 AS INTEGER ) ) + - - CAST ( + - COUNT ( * ) AS INTEGER ) / + ( + - 68 ) + - 39 + + - 13 + CASE - - 47 WHEN + + 66 / - 37 THEN NULL WHEN + 12 + + 82 THEN - 28 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 41 + - ( 69 ) + 81 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-9848
SELECT DISTINCT + 69 + - 80 + COUNT( * ) + - 14 + - + 78 - + 3 * COUNT( * ) - + 22 AS col1, 86 AS col2
----
-127
86

skipif mysql # not compatible
query II rowsort label-9848
SELECT DISTINCT + 69 + - 80 + COUNT ( * ) + - 14 + - + 78 - + 3 * COUNT ( * ) - + 22 AS col1, 86 AS col2
----
-127
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL + MAX( + NULLIF ( - - 70, + 13 ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL + MAX ( + NULLIF ( - - 70, + 13 ) ) AS col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9850
SELECT ALL + 47 DIV + + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL + 47 / + + 71 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9851
SELECT - 98 DIV 34 * - 17
----
34

skipif mysql # not compatible
query I rowsort label-9851
SELECT - 98 / 34 * - 17
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ALL 68 + - - NULLIF ( - + 94, - 43 * - 19 + + - COUNT( * ) ) + - 88 + + NULLIF ( - 89, + 25 + - 1 ) + - 65
----
-268

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL 68 + - - NULLIF ( - + 94, - 43 * - 19 + + - COUNT ( * ) ) + - 88 + + NULLIF ( - 89, + 25 + - 1 ) + - 65
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL - + COUNT( * ) + 87 - + 98 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL - + COUNT ( * ) + 87 - + 98 AS col1
----
-12

query I rowsort
SELECT - - ( 93 )
----
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9855
SELECT ALL - CAST( 59 AS SIGNED ) DIV CASE 80 WHEN + 39 * CAST( - + 87 AS SIGNED ) THEN - 65 + - 81 ELSE - 76 END
----
0

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL - CAST ( 59 AS INTEGER ) / CASE 80 WHEN + 39 * CAST ( - + 87 AS INTEGER ) THEN - 65 + - 81 ELSE - 76 END
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9856
SELECT + 65 + CASE + + 97 WHEN 36 THEN NULL WHEN + 64 THEN NULL ELSE + 90 * - CAST( NULL AS SIGNED ) - + 96 + COUNT( * ) + - NULLIF ( - + 38, + 50 ) END * NULLIF ( + CAST( NULL AS SIGNED ), CASE + + 28 WHEN 55 THEN - + 40 END * 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9856
SELECT + 65 + CASE + + 97 WHEN 36 THEN NULL WHEN + 64 THEN NULL ELSE + 90 * - CAST ( NULL AS INTEGER ) - + 96 + COUNT ( * ) + - NULLIF ( - + 38, + 50 ) END * NULLIF ( + CAST ( NULL AS INTEGER ), CASE + + 28 WHEN 55 THEN - + 40 END * 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT - SUM( - - 31 ) * 67 + + ( + 26 )
----
-2051

skipif mysql # not compatible
query I rowsort label-9857
SELECT - SUM ( - - 31 ) * 67 + + ( + 26 )
----
-2051

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT ( SUM( - - 14 ) ) + - 41 * 46
----
-1872

skipif mysql # not compatible
query I rowsort label-9858
SELECT ( SUM ( - - 14 ) ) + - 41 * 46
----
-1872

query I rowsort
SELECT + 48 * + 11 AS col0
----
528

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9860
SELECT CAST( NULL AS DECIMAL ) - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT CAST ( NULL AS REAL ) - 41
----
NULL

query I rowsort
SELECT DISTINCT 60 * + 92 * + 61 AS col1
----
336720

query I rowsort
SELECT ALL 54 - + 11 * + 73 * - NULLIF ( 74, + NULLIF ( + 73, - 48 ) ) + + 62 AS col0
----
59538

query I rowsort
SELECT DISTINCT - 41 * 17
----
-697

query I rowsort
SELECT 82 * + 71 AS col0
----
5822

onlyif mysql # aggregate syntax: 
query II rowsort label-9865
SELECT 56 + + + 52, 61 - + 14 - + COUNT( * ) AS col2
----
108
46

skipif mysql # not compatible
query II rowsort label-9865
SELECT 56 + + + 52, 61 - + 14 - + COUNT ( * ) AS col2
----
108
46

query I rowsort
SELECT 1 + + NULLIF ( - 65, 71 + + 65 + 16 + 99 ) AS col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9867
SELECT ALL + 96 DIV + + 5
----
19

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + 96 / + + 5
----
19

query I rowsort
SELECT 7 * - 40 AS col1
----
-280

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9869
SELECT DISTINCT + 6 DIV + + 10, COUNT( * ) + - - 15 AS col2
----
0
16

skipif mysql # not compatible
query II rowsort label-9869
SELECT DISTINCT + 6 / + + 10, COUNT ( * ) + - - 15 AS col2
----
0
16

query I rowsort
SELECT 91 + - 45 - - 56 col1
----
102

query I rowsort
SELECT 97 * - 21
----
-2037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9872
SELECT COUNT( DISTINCT - 74 ), CAST( - 37 AS SIGNED ) + - 60 AS col1
----
1
-97

skipif mysql # not compatible
query II rowsort label-9872
SELECT COUNT ( DISTINCT - 74 ), CAST ( - 37 AS INTEGER ) + - 60 AS col1
----
1
-97

query I rowsort
SELECT + ( - 35 ) col0
----
-35

query I rowsort
SELECT 83 * 35
----
2905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9875
SELECT - 42 + + 48 + CASE 94 WHEN - 36 + - - 63 THEN 70 WHEN - 37 * 30 + + 92 THEN NULL ELSE NULL END + + 12 * - 59 - 3 * + + CAST( - - 88 AS SIGNED ) - COALESCE ( + 54, - 24 / + - COALESCE ( - + 60, 6 * + - 4 / AVG ( - 3 ) * + COUNT( * ) - - COUNT( * ) * - 84 ) + - 87 / + 28 + + 17, COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT - 42 + + 48 + CASE 94 WHEN - 36 + - - 63 THEN 70 WHEN - 37 * 30 + + 92 THEN NULL ELSE NULL END + + 12 * - 59 - 3 * + + CAST ( - - 88 AS INTEGER ) - COALESCE ( + 54, - 24 / + - COALESCE ( - + 60, 6 * + - 4 / AVG ( - 3 ) * + COUNT ( * ) - - COUNT ( * ) * - 84 ) + - 87 / + 28 + + 17, COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT - 55 + + - NULLIF ( + - ( + 3 ), + + 97 ) + 59 AS col0
----
7

query I rowsort
SELECT DISTINCT - ( - 67 )
----
67

query I rowsort
SELECT ALL 99 + 2 - 57 AS col2
----
44

query I rowsort
SELECT ALL - 40 + - - 73 + + 45 AS col2
----
78

query II rowsort
SELECT + 83 + + - 66 AS col0, + 26 * + COALESCE ( 96, - 64 ) col1
----
17
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT ALL + 59 + - + COALESCE ( - ( + + SUM( ALL - ( - 11 ) ) ), + + NULLIF ( - COUNT( * ), COALESCE ( + 25, + COUNT( * ) * - - 13 ) * 98 ) * + - 34 + + + 35 + - - 12, - MIN( ALL + - 58 ) * - 93 * - 92 + + 26, - 42 ) * + COUNT( * ) col1
----
70

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL + 59 + - + COALESCE ( - ( + + SUM ( ALL - ( - 11 ) ) ), + + NULLIF ( - COUNT ( * ), COALESCE ( + 25, + COUNT ( * ) * - - 13 ) * 98 ) * + - 34 + + + 35 + - - 12, - MIN ( ALL + - 58 ) * - 93 * - 92 + + 26, - 42 ) * + COUNT ( * ) col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9882
SELECT - CASE - ( + CASE 39 WHEN + + 79 + + - 50 * + + CASE - MAX( DISTINCT + 13 ) WHEN + COUNT( * ) * + + 5 THEN 57 / - - NULLIF ( + 24, + - COALESCE ( + + 94, - 87 ) ) / MAX( ALL + 89 ) * SUM( ALL - - 75 ) * 14 - + - MAX( DISTINCT + 47 ) * + 88 + - 80 * 55 / + COALESCE ( - NULLIF ( - - 18, - 37 ), NULLIF ( MAX( DISTINCT - 68 ), - 6 ), CAST( + - NULLIF ( 28, COUNT( * ) ) AS SIGNED ) ) / + 81 * 38 * + + 3 + - 68 + + 57 WHEN - 46 THEN 57 + + COUNT( * ) ELSE NULL END THEN COALESCE ( - 10, - 4 * 42 ) ELSE NULL END ) WHEN 37 + NULLIF ( + 74, 42 + + 18 * 86 ) THEN + ( - CASE - 2 WHEN + 56 THEN NULL WHEN - 89 + MAX( 63 + 24 ) * + 72 THEN NULL WHEN 20 - + 73 THEN 50 END ) * + 57 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9882
SELECT - CASE - ( + CASE 39 WHEN + + 79 + + - 50 * + + CASE - MAX ( DISTINCT + 13 ) WHEN + COUNT ( * ) * + + 5 THEN 57 / - - NULLIF ( + 24, + - COALESCE ( + + 94, - 87 ) ) / MAX ( ALL + 89 ) * SUM ( ALL - - 75 ) * 14 - + - MAX ( DISTINCT + 47 ) * + 88 + - 80 * 55 / + COALESCE ( - NULLIF ( - - 18, - 37 ), NULLIF ( MAX ( DISTINCT - 68 ), - 6 ), CAST ( + - NULLIF ( 28, COUNT ( * ) ) AS INTEGER ) ) / + 81 * 38 * + + 3 + - 68 + + 57 WHEN - 46 THEN 57 + + COUNT ( * ) ELSE NULL END THEN COALESCE ( - 10, - 4 * 42 ) ELSE NULL END ) WHEN 37 + NULLIF ( + 74, 42 + + 18 * 86 ) THEN + ( - CASE - 2 WHEN + 56 THEN NULL WHEN - 89 + MAX ( 63 + 24 ) * + 72 THEN NULL WHEN 20 - + 73 THEN 50 END ) * + 57 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9883
SELECT - NULLIF ( + + 1, + 17 / + - CAST( + - 35 AS SIGNED ) * 9 + 16 ) + - 28
----
-29

skipif mysql # not compatible
query I rowsort label-9883
SELECT - NULLIF ( + + 1, + 17 / + - CAST ( + - 35 AS INTEGER ) * 9 + 16 ) + - 28
----
-29

query I rowsort
SELECT ALL 2 - 83 AS col1
----
-81

query I rowsort
SELECT - 41 * + ( + 32 ) AS col1
----
-1312

query I rowsort
SELECT - 46 + - NULLIF ( - 50, - 64 ) + - NULLIF ( 44, AVG ( ALL 27 ) * 37 * + - 47 ) + 36 * - 48
----
-1768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9887
SELECT 11 + ( + 86 ) * + ( - MAX( DISTINCT + - 62 ) ) * - 43 - - 40 DIV 93 + 89
----
-229176

skipif mysql # not compatible
query I rowsort label-9887
SELECT 11 + ( + 86 ) * + ( - MAX ( DISTINCT + - 62 ) ) * - 43 - - 40 / 93 + 89
----
-229176

query II rowsort
SELECT ALL 77, 74 col0
----
77
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9889
SELECT DISTINCT + 82 DIV + COUNT( ALL 15 )
----
82

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT + 82 / + COUNT ( ALL 15 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT ALL - 27 - - + ( + 60 ) * + + COUNT( * ) col0
----
33

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL - 27 - - + ( + 60 ) * + + COUNT ( * ) col0
----
33

query I rowsort
SELECT ALL + 64 * - 34
----
-2176

query I rowsort
SELECT ( + - 26 ) * - 72 * 92 AS col2
----
172224

onlyif mysql # DIV for integer division: 
query I rowsort label-9893
SELECT DISTINCT 66 DIV - - 85
----
0

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT 66 / - - 85
----
0

query I rowsort
SELECT 1 + NULLIF ( - 96, + COALESCE ( - - 84, - 67 ) ) AS col1
----
-95

query I rowsort
SELECT CASE + 6 WHEN - 58 THEN 66 ELSE + 88 + 60 END
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9896
SELECT ALL + 27 AS col1, - 63 + + CASE CAST( NULL AS SIGNED ) WHEN 97 * 35 THEN 4 END + + NULLIF ( + CAST( + 63 AS SIGNED ), + COUNT( * ) )
----
27
NULL

skipif mysql # not compatible
query II rowsort label-9896
SELECT ALL + 27 AS col1, - 63 + + CASE CAST ( NULL AS INTEGER ) WHEN 97 * 35 THEN 4 END + + NULLIF ( + CAST ( + 63 AS INTEGER ), + COUNT ( * ) )
----
27
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9897
SELECT + 13 col2, - CAST( NULL AS SIGNED ) * - + CAST( NULL AS SIGNED ) * - 55
----
13
NULL

skipif mysql # not compatible
query II rowsort label-9897
SELECT + 13 col2, - CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS INTEGER ) * - 55
----
13
NULL

query I rowsort
SELECT DISTINCT + 91 * + 14 + - 55 - - 69 AS col1
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL + CASE - COUNT( * ) WHEN - + 49 THEN 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL + CASE - COUNT ( * ) WHEN - + 49 THEN 33 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 58 * - 31 * 32 + - + 97 AS col0
----
57439

query I rowsort
SELECT NULLIF ( + - 59, + - 18 + - 39 ) AS col2
----
-59

query I rowsort
SELECT CASE 63 WHEN - 22 THEN 11 + - 89 WHEN + 32 * - + 81 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 46 + - 22
----
-68

query I rowsort
SELECT DISTINCT + 10 * - 18 + - + 25
----
-205

query I rowsort
SELECT - 87 + - + 67
----
-154

query I rowsort
SELECT ALL + + COALESCE ( 38, + 87 ) * + 20 + 42 * + 20 + + 47 col2
----
1647

onlyif mysql # DIV for integer division: 
query I rowsort label-9907
SELECT DISTINCT + - 11 DIV COALESCE ( + 9, 15 ) * + 22 + 17 + + + COALESCE ( - 18, + 82 )
----
-23

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT + - 11 / COALESCE ( + 9, 15 ) * + 22 + 17 + + + COALESCE ( - 18, + 82 )
----
-23

query I rowsort
SELECT ALL + + ( - 34 ) * + 66
----
-2244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9909
SELECT - + 74 DIV - 49 * - COUNT( * ) + - SUM( ALL - 43 ) * + 53 AS col2
----
2278

skipif mysql # not compatible
query I rowsort label-9909
SELECT - + 74 / - 49 * - COUNT ( * ) + - SUM ( ALL - 43 ) * + 53 AS col2
----
2278

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9910
SELECT ALL - + 69 * + ( + COUNT( * ) ) DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - + 69 * + ( + COUNT ( * ) ) / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT - 3 * - ( - 79 ) * + COUNT( * )
----
-237

skipif mysql # not compatible
query I rowsort label-9911
SELECT - 3 * - ( - 79 ) * + COUNT ( * )
----
-237

query I rowsort
SELECT - - 48 - 99
----
-51

query II rowsort
SELECT 30 AS col2, 40 AS col2
----
30
40

query II rowsort
SELECT - + 92, 12 AS col2
----
-92
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT ALL + MIN( DISTINCT + + ( - 29 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL + MIN ( DISTINCT + + ( - 29 ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT - SUM( + 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-9916
SELECT - SUM ( + 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL COUNT( - + 37 ) * - COALESCE ( 8, + 71 )
----
-8

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL COUNT ( - + 37 ) * - COALESCE ( 8, + 71 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT + ( SUM( + ( 62 ) ) ) * - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-9918
SELECT + ( SUM ( + ( 62 ) ) ) * - COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-9919
SELECT - 35 AS col1, + 55 * - COUNT( * ) AS col0
----
-35
-55

skipif mysql # not compatible
query II rowsort label-9919
SELECT - 35 AS col1, + 55 * - COUNT ( * ) AS col0
----
-35
-55

query I rowsort
SELECT ALL 25 * - + 70 AS col2
----
-1750

query II rowsort
SELECT - COALESCE ( + - 37, - 91 + - NULLIF ( NULLIF ( + 31, + 60 ), + 74 ) ) * + 11, - 92 AS col2
----
407
-92

query I rowsort
SELECT + 71 * - 63 * - ( + ( + 20 ) ) AS col2
----
89460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9923
SELECT + CAST( - + NULLIF ( + - MIN( + 85 ), - 62 * + - 48 + + 44 ) AS SIGNED ) + ( 57 )
----
142

skipif mysql # not compatible
query I rowsort label-9923
SELECT + CAST ( - + NULLIF ( + - MIN ( + 85 ), - 62 * + - 48 + + 44 ) AS INTEGER ) + ( 57 )
----
142

query I rowsort
SELECT + 0 * + 60 col1
----
0

query I rowsort
SELECT + 35 + - 69
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-9926
SELECT ALL 47 DIV 1 * + - 25 col2
----
-1175

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL 47 / 1 * + - 25 col2
----
-1175

onlyif mysql # DIV for integer division: 
query I rowsort label-9927
SELECT - 21 DIV + 24 - - 93
----
93

skipif mysql # not compatible
query I rowsort label-9927
SELECT - 21 / + 24 - - 93
----
93

query I rowsort
SELECT + ( - - 17 ) * + + 46
----
782

query I rowsort
SELECT + 46 * 7 * + 37
----
11914

query I rowsort
SELECT ALL 11 * - 43
----
-473

onlyif mysql # aggregate syntax: 
query II rowsort label-9931
SELECT DISTINCT + 95 AS col2, - COUNT( * )
----
95
-1

skipif mysql # not compatible
query II rowsort label-9931
SELECT DISTINCT + 95 AS col2, - COUNT ( * )
----
95
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL + 84 * COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL + 84 * COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT + + 78 * COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-9933
SELECT + + 78 * COUNT ( * )
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9934
SELECT DISTINCT + ( + 37 ) / - 91 * ( - - CAST( NULL AS DECIMAL ) ) + - 78 AS col0, + 56 * 82 AS col0
----
NULL
4592

skipif mysql # not compatible
query II rowsort label-9934
SELECT DISTINCT + ( + 37 ) / - 91 * ( - - CAST ( NULL AS REAL ) ) + - 78 AS col0, + 56 * 82 AS col0
----
NULL
4592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9935
SELECT DISTINCT - + ( - - COUNT( * ) ) DIV + 42 + MIN( ALL + 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT - + ( - - COUNT ( * ) ) / + 42 + MIN ( ALL + 91 ) AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT DISTINCT - ( CAST( 89 AS SIGNED ) ) * + - 60 - + 53 * - 36 + - 82
----
7166

skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT - ( CAST ( 89 AS INTEGER ) ) * + - 60 - + 53 * - 36 + - 82
----
7166

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT - SUM( DISTINCT + - 56 ) * - - 59 - - - 9 AS col1
----
3295

skipif mysql # not compatible
query I rowsort label-9937
SELECT - SUM ( DISTINCT + - 56 ) * - - 59 - - - 9 AS col1
----
3295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9938
SELECT - 33 * + 26 * - COUNT( * ) * + NULLIF ( + NULLIF ( - - 95, - 95 * + 6 ), - + 19 * - CAST( NULL AS SIGNED ) * - 48 + + 89 ) + - 52 * - 23 / 83 + + + 39 * + + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9938
SELECT - 33 * + 26 * - COUNT ( * ) * + NULLIF ( + NULLIF ( - - 95, - 95 * + 6 ), - + 19 * - CAST ( NULL AS INTEGER ) * - 48 + + 89 ) + - 52 * - 23 / 83 + + + 39 * + + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9939
SELECT + COUNT( * ) col0, + 51
----
1
51

skipif mysql # not compatible
query II rowsort label-9939
SELECT + COUNT ( * ) col0, + 51
----
1
51

query I rowsort
SELECT ALL - + 77 * 91 * ( 6 ) * + + 29 + - 91 + + 62 - + - 46 AS col0
----
-1219201

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT - - 18 * - CASE - - NULLIF ( - - ( - 2 ), + 0 ) WHEN + + 74 - ( + 12 ) + - - 97 + 56 * ( MIN( + 39 ) ) + 55 + + COUNT( * ) THEN 23 WHEN + 27 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT - - 18 * - CASE - - NULLIF ( - - ( - 2 ), + 0 ) WHEN + + 74 - ( + 12 ) + - - 97 + 56 * ( MIN ( + 39 ) ) + 55 + + COUNT ( * ) THEN 23 WHEN + 27 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 7 * 5
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT - - 2 + + 62 + + MAX( ALL 96 ) AS col2
----
160

skipif mysql # not compatible
query I rowsort label-9943
SELECT - - 2 + + 62 + + MAX ( ALL 96 ) AS col2
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9944
SELECT + + 47 * + 51 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9944
SELECT + + 47 * + 51 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL - 33 * 70 - - 82 + - MIN( DISTINCT - 87 ) AS col2
----
-2141

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL - 33 * 70 - - 82 + - MIN ( DISTINCT - 87 ) AS col2
----
-2141

query I rowsort
SELECT - 13 * + 26
----
-338

query I rowsort
SELECT 66 * + 86 * ( - 36 )
----
-204336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9948
SELECT COALESCE ( 13, 9 + + - 68 * 78 DIV + 60 * - 18 ) + 94 + MIN( - 42 ) * + + 85 AS col0
----
-3463

skipif mysql # not compatible
query I rowsort label-9948
SELECT COALESCE ( 13, 9 + + - 68 * 78 / + 60 * - 18 ) + 94 + MIN ( - 42 ) * + + 85 AS col0
----
-3463

query I rowsort
SELECT 11 + - 40 * + 44 col0
----
-1749

query I rowsort
SELECT ALL - 92 + + 61 + 28 * ( + 89 )
----
2461

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT 81 * + 77 * - COUNT( 10 ) AS col2
----
-6237

skipif mysql # not compatible
query I rowsort label-9951
SELECT 81 * + 77 * - COUNT ( 10 ) AS col2
----
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT COUNT( * ) + - CASE 49 WHEN COUNT( * ) THEN NULL ELSE + + 17 END
----
-16

skipif mysql # not compatible
query I rowsort label-9952
SELECT COUNT ( * ) + - CASE 49 WHEN COUNT ( * ) THEN NULL ELSE + + 17 END
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL COUNT( * ) + + 79
----
80

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL COUNT ( * ) + + 79
----
80

query I rowsort
SELECT DISTINCT 70 * 15
----
1050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9955
SELECT ALL ( CAST( + 37 AS SIGNED ) ) + 39 * - - MAX( DISTINCT - - 4 ) + + CAST( - + 62 AS SIGNED ) AS col1
----
131

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL ( CAST ( + 37 AS INTEGER ) ) + 39 * - - MAX ( DISTINCT - - 4 ) + + CAST ( - + 62 AS INTEGER ) AS col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT 68 + - - 63 + SUM( DISTINCT - + 59 )
----
72

skipif mysql # not compatible
query I rowsort label-9956
SELECT 68 + - - 63 + SUM ( DISTINCT - + 59 )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9957
SELECT DISTINCT + 30 DIV NULLIF ( + 33, + MAX( ALL + 2 ) - - 76 * 78 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT + 30 / NULLIF ( + 33, + MAX ( ALL + 2 ) - - 76 * 78 ) col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT - + NULLIF ( + - 6, + AVG ( ALL - 84 ) * 50 ) / + + ( + - 83 ) * + 20 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT - + NULLIF ( + - 6, + AVG ( ALL - 84 ) * 50 ) / + + ( + - 83 ) * + 20 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + ( 96 ) * + 19 AS col2
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT ( 17 ) + - + COUNT( * ) + + + CASE + 26 WHEN + 94 THEN 54 * - 83 + + 70 + - 89 WHEN + NULLIF ( + 63, + 88 + - 56 ) THEN NULL END * 49 + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT ( 17 ) + - + COUNT ( * ) + + + CASE + 26 WHEN + 94 THEN 54 * - 83 + + 70 + - 89 WHEN + NULLIF ( + 63, + 88 + - 56 ) THEN NULL END * 49 + + 3
----
NULL

query I rowsort
SELECT DISTINCT 50 * + 57 * + 2 AS col0
----
5700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT CAST( NULL AS SIGNED ) * + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT CAST ( NULL AS INTEGER ) * + 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9963
SELECT + 42 - - + 86 + COUNT( 78 ) * - 30 DIV + ( - 35 ) + 82
----
210

skipif mysql # not compatible
query I rowsort label-9963
SELECT + 42 - - + 86 + COUNT ( 78 ) * - 30 / + ( - 35 ) + 82
----
210

query I rowsort
SELECT DISTINCT + 34 * + + 75
----
2550

query I rowsort
SELECT + + 40 col0
----
40

query I rowsort
SELECT 66 * - 75
----
-4950

query I rowsort
SELECT 1 * - 64 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL + COUNT( * ) + + 65 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL + COUNT ( * ) + + 65 AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9969
SELECT DISTINCT - 51 + - COUNT( * ) + CAST( NULL AS SIGNED ) * + + 82 * + - NULLIF ( AVG ( - - 0 ), + - ( - 53 ) / - ( 95 ) + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT - 51 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) * + + 82 * + - NULLIF ( AVG ( - - 0 ), + - ( - 53 ) / - ( 95 ) + COUNT ( * ) ) AS col0
----
NULL

query II rowsort
SELECT 91 * - - 23 * 67 * 41 AS col0, 24
----
5749471
24

query I rowsort
SELECT 17 - - - 29
----
-12

query I rowsort
SELECT ALL + 33 * - 28
----
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT 36 DIV - + 36 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9973
SELECT 36 / - + 36 AS col1
----
-1

query I rowsort
SELECT 7 + + - 1 * 10
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT COUNT( * ) * - MAX( ALL + - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-9975
SELECT COUNT ( * ) * - MAX ( ALL + - 26 )
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9976
SELECT 16 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT 16 + - CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT - 21, + 90 AS col0
----
-21
90

query II rowsort
SELECT DISTINCT 22 col2, 58
----
22
58

query I rowsort
SELECT + 33 * 71 * + 14 AS col2
----
32802

query I rowsort
SELECT + + ( 84 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9981
SELECT COALESCE ( 42, MIN( 25 ) ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT COALESCE ( 42, MIN ( 25 ) ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9982
SELECT ALL - + 16, - 24 * 14 + - 3 + + COUNT( * ) AS col0
----
-16
-338

skipif mysql # not compatible
query II rowsort label-9982
SELECT ALL - + 16, - 24 * 14 + - 3 + + COUNT ( * ) AS col0
----
-16
-338

query I rowsort
SELECT - 0 * + 48 AS col1
----
0

query I rowsort
SELECT DISTINCT - + ( + 98 )
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-9985
SELECT ALL + 80 * + - ( - COUNT( * ) ) AS col0, + 27 * - 67 AS col0
----
80
-1809

skipif mysql # not compatible
query II rowsort label-9985
SELECT ALL + 80 * + - ( - COUNT ( * ) ) AS col0, + 27 * - 67 AS col0
----
80
-1809

onlyif mysql # aggregate syntax: 
query II rowsort label-9986
SELECT + 58 - 97 * - + 91, SUM( - + ( + - 81 ) ) AS col0
----
8885
81

skipif mysql # not compatible
query II rowsort label-9986
SELECT + 58 - 97 * - + 91, SUM ( - + ( + - 81 ) ) AS col0
----
8885
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9987
SELECT 24 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-9987
SELECT 24 / - 35
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9988
SELECT ALL - NULLIF ( + 81, + CAST( + 11 AS SIGNED ) * - - COUNT( * ) )
----
-81

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - NULLIF ( + 81, + CAST ( + 11 AS INTEGER ) * - - COUNT ( * ) )
----
-81

query I rowsort
SELECT ALL 2 + 54 + - 23 * 8
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9990
SELECT + NULLIF ( - ( - CAST( NULL AS SIGNED ) ), + - 41 * - 40 / + 2 * SUM( ALL - + 41 ) / + 13 + - ( + + 8 ) ) + + 40 * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT + NULLIF ( - ( - CAST ( NULL AS INTEGER ) ), + - 41 * - 40 / + 2 * SUM ( ALL - + 41 ) / + 13 + - ( + + 8 ) ) + + 40 * - 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9991
SELECT + 84 + - ( COUNT( * ) ) + - CAST( 58 AS SIGNED ) * + - COALESCE ( + 73, 12 )
----
4317

skipif mysql # not compatible
query I rowsort label-9991
SELECT + 84 + - ( COUNT ( * ) ) + - CAST ( 58 AS INTEGER ) * + - COALESCE ( + 73, 12 )
----
4317

onlyif mysql # DIV for integer division: 
query I rowsort label-9992
SELECT DISTINCT 7 + + 35 DIV 67 * - 46
----
7

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT 7 + + 35 / 67 * - 46
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT + 36 + 39 + 64 + NULLIF ( 72, NULLIF ( - 77, + - COUNT( * ) ) + - 76 ) AS col0
----
211

skipif mysql # not compatible
query I rowsort label-9993
SELECT + 36 + 39 + 64 + NULLIF ( 72, NULLIF ( - 77, + - COUNT ( * ) ) + - 76 ) AS col0
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL 42 + - 81 * + - COUNT( * ) AS col1
----
123

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL 42 + - 81 * + - COUNT ( * ) AS col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT DISTINCT COUNT( * ) + ( + 29 )
----
30

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT COUNT ( * ) + ( + 29 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT - COUNT( - 55 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9996
SELECT - COUNT ( - 55 ) AS col0
----
-1

query I rowsort
SELECT + 30 + - 32 col0
----
-2

query II rowsort
SELECT - 6 + 73 AS col1, + 36
----
67
36

query I rowsort
SELECT - 82 + - 37
----
-119

