sqllogictest
Artifact Content
Not logged in

Artifact 1be2882600202890b3703b9438003e41e0427674:


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 - 60 + - + 19 + 16 * - 12
----
-271

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT 38 * + 24 - - COUNT( * ) + - - 30 col0
----
943

skipif mysql # not compatible
query I rowsort label-1
SELECT 38 * + 24 - - COUNT ( * ) + - - 30 col0
----
943

query I rowsort
SELECT - 36 + + 8 + + 58 + - - 25 + 78 + - 62 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT + COALESCE ( + - 65, - COUNT( * ) + + COALESCE ( + + 88, + + 67 ) * - NULLIF ( + 65, + ( + COALESCE ( - - 5, - 59 - 43 ) ) ) * 19 - - ( 12 ) ) - 87 AS col2
----
-152

skipif mysql # not compatible
query I rowsort label-3
SELECT + COALESCE ( + - 65, - COUNT ( * ) + + COALESCE ( + + 88, + + 67 ) * - NULLIF ( + 65, + ( + COALESCE ( - - 5, - 59 - 43 ) ) ) * 19 - - ( 12 ) ) - 87 AS col2
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4
SELECT ALL CAST( NULL AS SIGNED ) * 52 / - + ( 13 ) AS col1, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4
SELECT ALL CAST ( NULL AS INTEGER ) * 52 / - + ( 13 ) AS col1, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT + CASE - 20 WHEN + ( + ( - - 84 ) ) * - 20 THEN 52 WHEN - 36 THEN NULL END * + 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6
SELECT - CASE + COUNT( * ) WHEN + + 31 THEN + 47 - 79 WHEN - COALESCE ( - 26, CAST( - - 58 AS SIGNED ) + 27 + - - COUNT( * ) + 31 * + 46 ) + 87 THEN NULL WHEN - 9 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6
SELECT - CASE + COUNT ( * ) WHEN + + 31 THEN + 47 - 79 WHEN - COALESCE ( - 26, CAST ( - - 58 AS INTEGER ) + 27 + - - COUNT ( * ) + 31 * + 46 ) + 87 THEN NULL WHEN - 9 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7
SELECT ALL 41 + 9 * + + 79 / - 78 / - - COALESCE ( + 26, 64 ) * - ( CAST( NULL AS SIGNED ) ) + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL 41 + 9 * + + 79 / - 78 / - - COALESCE ( + 26, 64 ) * - ( CAST ( NULL AS INTEGER ) ) + + 84
----
NULL

query I rowsort
SELECT ALL 0 + - 22
----
-22

query I rowsort
SELECT + 6 + 62 * + 75
----
4656

query I rowsort
SELECT ALL - 38 * + + 25 * - 90 AS col1
----
85500

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

onlyif mysql # DIV for integer division: 
query II rowsort label-12
SELECT DISTINCT 52 DIV + 42 AS col2, + 3 AS col1
----
1
3

skipif mysql # not compatible
query II rowsort label-12
SELECT DISTINCT 52 / + 42 AS col2, + 3 AS col1
----
1
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT - 87 + MAX( + + 6 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-14
SELECT - 87 + MAX ( + + 6 ) AS col1
----
-81

query I rowsort
SELECT DISTINCT - 56 + + 92
----
36

query I rowsort
SELECT - + COALESCE ( + - 58, + 42 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT COUNT( * ) + 6 col1
----
7

skipif mysql # not compatible
query I rowsort label-17
SELECT COUNT ( * ) + 6 col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT ALL - COALESCE ( - + 74, - CAST( NULL AS SIGNED ) * - 70 * + CAST( + + COUNT( - - 64 ) AS SIGNED ), - - COUNT( * ), - + 4 * COUNT( ALL - 53 ) ) * - - 75 * + + 68 * + 60 AS col0
----
22644000

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL - COALESCE ( - + 74, - CAST ( NULL AS INTEGER ) * - 70 * + CAST ( + + COUNT ( - - 64 ) AS INTEGER ), - - COUNT ( * ), - + 4 * COUNT ( ALL - 53 ) ) * - - 75 * + + 68 * + 60 AS col0
----
22644000

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT - CASE MIN( DISTINCT + + 82 ) WHEN - COUNT( * ) THEN NULL ELSE 31 END
----
-31

skipif mysql # not compatible
query I rowsort label-19
SELECT - CASE MIN ( DISTINCT + + 82 ) WHEN - COUNT ( * ) THEN NULL ELSE 31 END
----
-31

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

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

query I rowsort
SELECT ALL - 62 * 26
----
-1612

query I rowsort
SELECT ALL 30 * - - 91
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT + 19 * - 12 + NULLIF ( + COUNT( * ), + - 28 ) + + - COUNT( * )
----
-228

skipif mysql # not compatible
query I rowsort label-23
SELECT + 19 * - 12 + NULLIF ( + COUNT ( * ), + - 28 ) + + - COUNT ( * )
----
-228

query I rowsort
SELECT + CASE + 24 WHEN - 23 THEN NULL ELSE - - 23 END + + 75 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT DISTINCT - ( - COALESCE ( + COUNT( * ), - 53 - - + ( COUNT( * ) ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT - ( - COALESCE ( + COUNT ( * ), - 53 - - + ( COUNT ( * ) ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-26
SELECT + 49 + - COUNT( * ) AS col1, 86 * + 24 col1
----
48
2064

skipif mysql # not compatible
query II rowsort label-26
SELECT + 49 + - COUNT ( * ) AS col1, 86 * + 24 col1
----
48
2064

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT 46 * + - 60 + + + COUNT( * ) AS col2
----
-2759

skipif mysql # not compatible
query I rowsort label-27
SELECT 46 * + - 60 + + + COUNT ( * ) AS col2
----
-2759

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT + COUNT( * ) * + + 92 + - 43
----
49

skipif mysql # not compatible
query I rowsort label-28
SELECT + COUNT ( * ) * + + 92 + - 43
----
49

query I rowsort
SELECT ALL - + 14 * + 85
----
-1190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-30
SELECT DISTINCT 43 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT 43 + + CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT 23 * + + 12 * - CASE + 70 WHEN - 34 * MIN( - + 6 ) THEN 29 - + - 50 + + - 40 END / - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT 23 * + + 12 * - CASE + 70 WHEN - 34 * MIN ( - + 6 ) THEN 29 - + - 50 + + - 40 END / - 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT ALL - NULLIF ( - 65, - ( + NULLIF ( - - 91, NULLIF ( 73, MIN( + 65 ) ) ) ) ) + + - 50
----
15

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL - NULLIF ( - 65, - ( + NULLIF ( - - 91, NULLIF ( 73, MIN ( + 65 ) ) ) ) ) + + - 50
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT DISTINCT - MAX( DISTINCT - 93 ) col1
----
93

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT - MAX ( DISTINCT - 93 ) col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-35
SELECT DISTINCT - 24 + + COUNT( ALL + - 9 ) + 61 + - 62 DIV - - 3 + - + 69
----
-51

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT - 24 + + COUNT ( ALL + - 9 ) + 61 + - 62 / - - 3 + - + 69
----
-51

query I rowsort
SELECT ALL - 15 + 41 + 94 - + 50 * - 18 AS col1
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT 13 * + CASE - 37 WHEN + 45 * ( 59 ) - - 34 + + 30 THEN + 16 ELSE NULL END * + ( - - 64 ) * ( + ( 65 ) ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-37
SELECT 13 * + CASE - 37 WHEN + 45 * ( 59 ) - - 34 + + 30 THEN + 16 ELSE NULL END * + ( - - 64 ) * ( + ( 65 ) ) - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT 42 * + + 19 + - 47 * MAX( 31 ) AS col0
----
-659

skipif mysql # not compatible
query I rowsort label-38
SELECT 42 * + + 19 + - 47 * MAX ( 31 ) AS col0
----
-659

query I rowsort
SELECT DISTINCT - ( 88 ) + 18 AS col1
----
-70

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

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

query II rowsort
SELECT ALL 95 AS col0, + 88
----
95
88

query I rowsort
SELECT ALL - 79 + - 64
----
-143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-43
SELECT 39 * + COALESCE ( - - MIN( + 4 ), 59 + - 74 + + 90 DIV + - 84 )
----
156

skipif mysql # not compatible
query I rowsort label-43
SELECT 39 * + COALESCE ( - - MIN ( + 4 ), 59 + - 74 + + 90 / + - 84 )
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT ALL + 70 DIV 15 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL + 70 / 15 AS col0
----
4

query I rowsort
SELECT 45 + 83
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT DISTINCT + 97 + - COUNT( * ) + - - 45 * + 24 AS col1
----
1176

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT + 97 + - COUNT ( * ) + - - 45 * + 24 AS col1
----
1176

query I rowsort
SELECT DISTINCT 53 * - - 71
----
3763

onlyif mysql # DIV for integer division: 
query II rowsort label-48
SELECT DISTINCT 11 + + + 26 DIV - + 66, ( - 24 ) col1
----
11
-24

skipif mysql # not compatible
query II rowsort label-48
SELECT DISTINCT 11 + + + 26 / - + 66, ( - 24 ) col1
----
11
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-49
SELECT 64 * - COALESCE ( NULLIF ( - 83, - 85 ), - ( CAST( NULL AS SIGNED ) ) )
----
5312

skipif mysql # not compatible
query I rowsort label-49
SELECT 64 * - COALESCE ( NULLIF ( - 83, - 85 ), - ( CAST ( NULL AS INTEGER ) ) )
----
5312

query II rowsort
SELECT 15 AS col1, 9 + 31
----
15
40

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT 38 - + COUNT( + 27 ) * - 73 + - + COUNT( + 17 ) + + - SUM( ALL - 97 ) * 57 AS col1
----
5639

skipif mysql # not compatible
query I rowsort label-51
SELECT 38 - + COUNT ( + 27 ) * - 73 + - + COUNT ( + 17 ) + + - SUM ( ALL - 97 ) * 57 AS col1
----
5639

query I rowsort
SELECT 74 * - ( + 78 ) col1
----
-5772

query I rowsort
SELECT ALL - 7 * - 7 AS col2
----
49

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

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

query II rowsort
SELECT - 70 AS col2, 91
----
-70
91

query II rowsort
SELECT - 98, 18 * - - 98 AS col1
----
-98
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT ALL - COUNT( - - 2 ) - CASE - + 42 WHEN - + 88 * + 90 + 94 + - 35 * ( + + 97 ) THEN + + 10 * - 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL - COUNT ( - - 2 ) - CASE - + 42 WHEN - + 88 * + 90 + 94 + - 35 * ( + + 97 ) THEN + + 10 * - 24 ELSE NULL END
----
NULL

query II rowsort
SELECT - 54 AS col1, 81 - + 72
----
-54
9

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT - COALESCE ( - COUNT( * ), + - 60 * - 17 ) - 23 + 23 * 85 AS col0
----
1933

skipif mysql # not compatible
query I rowsort label-59
SELECT - COALESCE ( - COUNT ( * ), + - 60 * - 17 ) - 23 + 23 * 85 AS col0
----
1933

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

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT + COALESCE ( - - COUNT( * ), - 40 + + - 78 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-61
SELECT + COALESCE ( - - COUNT ( * ), - 40 + + - 78 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL + AVG ( DISTINCT - 69 ) / CASE - + 83 WHEN + COUNT( 35 ) THEN + + COUNT( * ) WHEN + 36 THEN - 47 - - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL + AVG ( DISTINCT - 69 ) / CASE - + 83 WHEN + COUNT ( 35 ) THEN + + COUNT ( * ) WHEN + 36 THEN - 47 - - 78 END
----
NULL

query II rowsort
SELECT ( + + 67 ) * 85 AS col0, - 38 - + 21 AS col0
----
5695
-59

query I rowsort
SELECT + ( - 76 ) * - + 75 + - 97 AS col2
----
5603

query I rowsort
SELECT DISTINCT 59 * 64 AS col0
----
3776

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT ALL - - MIN( ALL + 9 ) col0
----
9

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL - - MIN ( ALL + 9 ) col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-67
SELECT - CAST( + MIN( - 85 ) AS SIGNED )
----
85

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-68
SELECT ALL + + 8 DIV - 58 * - 73 + - - 33 + - COUNT( * ) * - 58
----
91

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL + + 8 / - 58 * - 73 + - - 33 + - COUNT ( * ) * - 58
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT - 47 * + 50 * + COUNT( * ) AS col0
----
-2350

skipif mysql # not compatible
query I rowsort label-69
SELECT - 47 * + 50 * + COUNT ( * ) AS col0
----
-2350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-70
SELECT ALL + CAST( - 39 AS SIGNED ) + - 91
----
-130

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL + CAST ( - 39 AS INTEGER ) + - 91
----
-130

query I rowsort
SELECT ( + 69 ) * - 99
----
-6831

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

onlyif mysql # aggregate syntax: 
query II rowsort label-73
SELECT ALL - 75 AS col0, 38 - + - 34 + + CASE - - 4 WHEN - - COUNT( * ) * - NULLIF ( 22, 53 - - 91 ) + 18 + - 46 / 57 + - 8 + 62 * + 95 * 62 THEN - ( - ( 55 ) ) WHEN + 97 THEN NULL END * - 22
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-73
SELECT ALL - 75 AS col0, 38 - + - 34 + + CASE - - 4 WHEN - - COUNT ( * ) * - NULLIF ( 22, 53 - - 91 ) + 18 + - 46 / 57 + - 8 + 62 * + 95 * 62 THEN - ( - ( 55 ) ) WHEN + 97 THEN NULL END * - 22
----
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT ALL - MAX( DISTINCT - - NULLIF ( - 41, + - 81 ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL - MAX ( DISTINCT - - NULLIF ( - 41, + - 81 ) ) AS col1
----
41

query I rowsort
SELECT - 80 * 60 + 80
----
-4720

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

skipif mysql # not compatible
query II rowsort label-76
SELECT COUNT ( * ) AS col0, 82 * COUNT ( * ) AS col2
----
1
82

onlyif mysql # aggregate syntax: 
query II rowsort label-77
SELECT DISTINCT - SUM( ALL - 76 ) AS col2, 65 AS col2
----
76
65

skipif mysql # not compatible
query II rowsort label-77
SELECT DISTINCT - SUM ( ALL - 76 ) AS col2, 65 AS col2
----
76
65

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

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

query I rowsort
SELECT 74 * + 15 * - - 1 - + 42
----
1068

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

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT 48 + + - CASE + + 91 WHEN 7 THEN 96 * COALESCE ( 89, + - 89 ) + + CASE NULLIF ( - COUNT( * ), - + 46 * + - 72 + + 41 ) WHEN + NULLIF ( + + 61, + 81 ) THEN - 62 + ( - 97 ) * 55 END + CASE + 38 WHEN + ( 54 ) THEN NULL ELSE - 71 END * 35 ELSE MAX( ALL 19 ) * - 78 END * + 84
----
124536

skipif mysql # not compatible
query I rowsort label-81
SELECT 48 + + - CASE + + 91 WHEN 7 THEN 96 * COALESCE ( 89, + - 89 ) + + CASE NULLIF ( - COUNT ( * ), - + 46 * + - 72 + + 41 ) WHEN + NULLIF ( + + 61, + 81 ) THEN - 62 + ( - 97 ) * 55 END + CASE + 38 WHEN + ( 54 ) THEN NULL ELSE - 71 END * 35 ELSE MAX ( ALL 19 ) * - 78 END * + 84
----
124536

onlyif mysql # aggregate syntax: 
query II rowsort label-82
SELECT DISTINCT - 22 AS col1, 51 + + COUNT( * ) + - 34 + - - 61 + + - 28 * + 23 * - 54 AS col2
----
-22
34855

skipif mysql # not compatible
query II rowsort label-82
SELECT DISTINCT - 22 AS col1, 51 + + COUNT ( * ) + - 34 + - - 61 + + - 28 * + 23 * - 54 AS col2
----
-22
34855

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT MIN( ALL + 3 ) * + + 76 + + + 51 - + 67
----
212

skipif mysql # not compatible
query I rowsort label-83
SELECT MIN ( ALL + 3 ) * + + 76 + + + 51 - + 67
----
212

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-84
SELECT ALL - 11 - - CASE + + NULLIF ( - - 60, - 37 ) WHEN 44 THEN + CAST( + + COUNT( * ) AS DECIMAL ) WHEN 53 THEN - 78 + - 99 ELSE NULL END * + 95, + 85 AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-84
SELECT ALL - 11 - - CASE + + NULLIF ( - - 60, - 37 ) WHEN 44 THEN + CAST ( + + COUNT ( * ) AS REAL ) WHEN 53 THEN - 78 + - 99 ELSE NULL END * + 95, + 85 AS col1
----
NULL
85

onlyif mysql # aggregate syntax: 
query III rowsort label-85
SELECT ALL 5, - 35 AS col0, - ( - COUNT( * ) ) AS col2
----
5
-35
1

skipif mysql # not compatible
query III rowsort label-85
SELECT ALL 5, - 35 AS col0, - ( - COUNT ( * ) ) AS col2
----
5
-35
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-86
SELECT NULLIF ( - - COUNT( * ), + 58 ) + - 22 AS col0, 90 DIV 70 AS col2
----
-21
1

skipif mysql # not compatible
query II rowsort label-86
SELECT NULLIF ( - - COUNT ( * ), + 58 ) + - 22 AS col0, 90 / 70 AS col2
----
-21
1

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT ALL + 75 * + - MIN( ALL + 50 ) AS col1
----
-3750

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL + 75 * + - MIN ( ALL + 50 ) AS col1
----
-3750

query I rowsort
SELECT + 64 * 27 * - - 26 AS col1
----
44928

query I rowsort
SELECT - 29 + 68 + 21 * 9 AS col2
----
228

onlyif mysql # DIV for integer division: 
query I rowsort label-90
SELECT - ( + 5 ) DIV + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-90
SELECT - ( + 5 ) / + 97 AS col0
----
0

query II rowsort
SELECT ALL 88, 25 AS col0
----
88
25

query II rowsort
SELECT DISTINCT - 48 AS col2, COALESCE ( - ( + 77 ), - + 57, - + 60 ) AS col2
----
-48
-77

query I rowsort
SELECT - 6 + - + ( - 63 ) AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-94
SELECT DISTINCT + - MAX( - 4 ) DIV 27
----
0

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT + - MAX ( - 4 ) / 27
----
0

query I rowsort
SELECT - ( + ( - 54 ) ) + + 6
----
60

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

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

query I rowsort
SELECT ALL - ( 20 ) * - 7
----
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-98
SELECT DISTINCT + + 10 DIV - + MAX( 26 ) - - 65 * - 52 AS col2
----
-3380

skipif mysql # not compatible
query I rowsort label-98
SELECT DISTINCT + + 10 / - + MAX ( 26 ) - - 65 * - 52 AS col2
----
-3380

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT - SUM( DISTINCT - 69 ) + + 35 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-99
SELECT - SUM ( DISTINCT - 69 ) + + 35 AS col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-100
SELECT - COUNT( * ) * + + 83 + + - CASE + - 46 WHEN - 15 THEN + - 54 * - + 96 + - - 74 END - CASE - - CAST( NULL AS SIGNED ) WHEN + + CAST( NULL AS SIGNED ) + + 27 * 37 * - 1 * COALESCE ( - + 54, - 86 * 74 + 88 * + 98 ) * COUNT( * ) THEN NULL WHEN + 78 + - 61 THEN 14 * + CASE + MAX( ALL - 72 ) * + 42 WHEN 82 THEN NULL WHEN 11 THEN NULL WHEN 54 THEN 22 ELSE 46 END WHEN + 12 * 41 + + 59 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-100
SELECT - COUNT ( * ) * + + 83 + + - CASE + - 46 WHEN - 15 THEN + - 54 * - + 96 + - - 74 END - CASE - - CAST ( NULL AS INTEGER ) WHEN + + CAST ( NULL AS INTEGER ) + + 27 * 37 * - 1 * COALESCE ( - + 54, - 86 * 74 + 88 * + 98 ) * COUNT ( * ) THEN NULL WHEN + 78 + - 61 THEN 14 * + CASE + MAX ( ALL - 72 ) * + 42 WHEN 82 THEN NULL WHEN 11 THEN NULL WHEN 54 THEN 22 ELSE 46 END WHEN + 12 * 41 + + 59 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 88 + - 97 AS col1
----
-185

query I rowsort
SELECT - - 82 + + 77 * 5
----
467

query II rowsort
SELECT - 34 AS col2, 68 AS col0
----
-34
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT ALL 55 * 24 * + COALESCE ( + 6, 26 ) * + - 14 + COUNT( * ) AS col0
----
-110879

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL 55 * 24 * + COALESCE ( + 6, 26 ) * + - 14 + COUNT ( * ) AS col0
----
-110879

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT ALL + ( + CASE - 6 WHEN - ( + 93 ) THEN + 12 ELSE - + 99 * + + SUM( ALL + ( - ( + 43 ) ) ) END ) * + 39 + - 99 + 90 * - ( 53 ) AS col1
----
161154

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL + ( + CASE - 6 WHEN - ( + 93 ) THEN + 12 ELSE - + 99 * + + SUM ( ALL + ( - ( + 43 ) ) ) END ) * + 39 + - 99 + 90 * - ( 53 ) AS col1
----
161154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-107
SELECT ALL + - COUNT( * ) * CAST( - 51 AS SIGNED ) * - + 18 + 30 + + 93 * - + 73 AS col2
----
-7677

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL + - COUNT ( * ) * CAST ( - 51 AS INTEGER ) * - + 18 + 30 + + 93 * - + 73 AS col2
----
-7677

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

skipif mysql # not compatible
query II rowsort label-108
SELECT + COUNT ( * ) col2, + 28 * - + COUNT ( * )
----
1
-28

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

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

query I rowsort
SELECT - 14 * + + 30 * + 4 + 45 AS col2
----
-1635

query I rowsort
SELECT DISTINCT + ( + 28 ) * - 98 + + 47
----
-2697

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT COALESCE ( 77, - COUNT( * ) + 73 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-113
SELECT COALESCE ( 77, - COUNT ( * ) + 73 ) AS col2
----
77

query I rowsort
SELECT + NULLIF ( + + 54, 54 ) + ( + COALESCE ( - 55, 73, - - 20 ) ) * 44 AS col1
----
NULL

query I rowsort
SELECT + 30 + + - 79
----
-49

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

skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT + 19 * - COUNT ( * ) + + 28 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT ALL 18 * SUM( ALL + - 59 )
----
-1062

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL 18 * SUM ( ALL + - 59 )
----
-1062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-118
SELECT + CASE + - COUNT( * ) WHEN 94 THEN NULL WHEN + - 72 - - - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + - COUNT( * ) THEN - COUNT( * ) END, + 64 AS col2
----
NULL
64

skipif mysql # not compatible
query II rowsort label-118
SELECT + CASE + - COUNT ( * ) WHEN 94 THEN NULL WHEN + - 72 - - - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) THEN - COUNT ( * ) END, + 64 AS col2
----
NULL
64

onlyif mysql # aggregate syntax: 
query II rowsort label-119
SELECT ALL + ( + - COUNT( * ) ) * - + 36 - + SUM( 91 ) AS col0, 73
----
-55
73

skipif mysql # not compatible
query II rowsort label-119
SELECT ALL + ( + - COUNT ( * ) ) * - + 36 - + SUM ( 91 ) AS col0, 73
----
-55
73

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT + MIN( + - 67 ) * + + 83
----
-5561

skipif mysql # not compatible
query I rowsort label-120
SELECT + MIN ( + - 67 ) * + + 83
----
-5561

query I rowsort
SELECT ALL 82 * 2 * 77
----
12628

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT + 53 + + MIN( 60 )
----
113

skipif mysql # not compatible
query I rowsort label-122
SELECT + 53 + + MIN ( 60 )
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT + 18 * - + 34 + - 13 DIV 53
----
-612

skipif mysql # not compatible
query I rowsort label-123
SELECT + 18 * - + 34 + - 13 / 53
----
-612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-124
SELECT - NULLIF ( + COUNT( * ), - 1 * + + AVG ( ALL + + CAST( + 56 AS SIGNED ) ) ) * + 32, - 8 * - 92 col2
----
-32
736

skipif mysql # not compatible
query II rowsort label-124
SELECT - NULLIF ( + COUNT ( * ), - 1 * + + AVG ( ALL + + CAST ( + 56 AS INTEGER ) ) ) * + 32, - 8 * - 92 col2
----
-32
736

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT DISTINCT MAX( DISTINCT + + 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT MAX ( DISTINCT + + 87 ) AS col0
----
87

query I rowsort
SELECT ALL + 44 * - 26 AS col0
----
-1144

onlyif mysql # DIV for integer division: 
query I rowsort label-127
SELECT DISTINCT 78 DIV 71 * 54 * + + 78 * - ( - 46 )
----
193752

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT 78 / 71 * 54 * + + 78 * - ( - 46 )
----
193752

query I rowsort
SELECT ALL 96 * - - 47 * ( 22 )
----
99264

query I rowsort
SELECT + 66 * + + 4 * + ( + 11 )
----
2904

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

skipif mysql # not compatible
query I rowsort label-130
SELECT - - SUM ( 73 )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-131
SELECT - 49 + + + CAST( + + ( + - 46 ) AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-131
SELECT - 49 + + + CAST ( + + ( + - 46 ) AS INTEGER )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-132
SELECT DISTINCT - 92 + + - 37 AS col1, 48 * + - COALESCE ( + 21, + ( + ( - 42 ) ), - 78 - + 49, CAST( + 87 AS SIGNED ) + - 66 ) * - COUNT( * ) * + - 71 + + ( - COUNT( * ) ) AS col0
----
-129
-71569

skipif mysql # not compatible
query II rowsort label-132
SELECT DISTINCT - 92 + + - 37 AS col1, 48 * + - COALESCE ( + 21, + ( + ( - 42 ) ), - 78 - + 49, CAST ( + 87 AS INTEGER ) + - 66 ) * - COUNT ( * ) * + - 71 + + ( - COUNT ( * ) ) AS col0
----
-129
-71569

query I rowsort
SELECT DISTINCT - 31 + - - 27 col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-134
SELECT - + 62 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-134
SELECT - + 62 / - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT DISTINCT - - COUNT( * ) + + 36 + + - ( - 25 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT - - COUNT ( * ) + + 36 + + - ( - 25 ) AS col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-136
SELECT DISTINCT - 40 DIV - - 43
----
0

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT - 40 / - - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT + + ( + + NULLIF ( MIN( DISTINCT - - 16 ), + 83 / - 93 * - 59 ) ) + - 90 - - 16
----
-58

skipif mysql # not compatible
query I rowsort label-137
SELECT + + ( + + NULLIF ( MIN ( DISTINCT - - 16 ), + 83 / - 93 * - 59 ) ) + - 90 - - 16
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-138
SELECT ALL - + 40 DIV + + ( - SUM( ALL - 81 ) ) * + 93 + + COALESCE ( - - MIN( + 45 ), 41, + 14 * - + 99 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL - + 40 / + + ( - SUM ( ALL - 81 ) ) * + 93 + + COALESCE ( - - MIN ( + 45 ), 41, + 14 * - + 99 ) AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-139
SELECT - 95 DIV + 43
----
-2

skipif mysql # not compatible
query I rowsort label-139
SELECT - 95 / + 43
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-140
SELECT - COUNT( * ) * 71 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT - COUNT ( * ) * 71 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-141
SELECT DISTINCT + COUNT( * ) DIV - 73 - 41 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT + COUNT ( * ) / - 73 - 41 AS col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-142
SELECT ALL - 92 DIV 34 - COUNT( * ) - - - 86 * - COUNT( * ) * - 61 + + + 43
----
-5206

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL - 92 / 34 - COUNT ( * ) - - - 86 * - COUNT ( * ) * - 61 + + + 43
----
-5206

query II rowsort
SELECT ALL + 13 AS col0, - 83
----
13
-83

query I rowsort
SELECT - 71 + + 40 AS col1
----
-31

query I rowsort
SELECT 38 + + 62 * - + COALESCE ( - 2, + - 71 + + 78 )
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-146
SELECT - 33 * - 20 * - MIN( DISTINCT 85 ) + - - MIN( DISTINCT 30 ) DIV - + 88
----
-56100

skipif mysql # not compatible
query I rowsort label-146
SELECT - 33 * - 20 * - MIN ( DISTINCT 85 ) + - - MIN ( DISTINCT 30 ) / - + 88
----
-56100

onlyif mysql # DIV for integer division: 
query I rowsort label-147
SELECT 54 DIV 91 col1
----
0

skipif mysql # not compatible
query I rowsort label-147
SELECT 54 / 91 col1
----
0

query I rowsort
SELECT 90 * 34 AS col1
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT + 77 * - + COALESCE ( - - 13, - 53, + 61 * 78 * - COUNT( * ) - + 93 ) * + 34 + + NULLIF ( - 36, 2 ) AS col2
----
-34070

skipif mysql # not compatible
query I rowsort label-149
SELECT + 77 * - + COALESCE ( - - 13, - 53, + 61 * 78 * - COUNT ( * ) - + 93 ) * + 34 + + NULLIF ( - 36, 2 ) AS col2
----
-34070

query I rowsort
SELECT ALL 87 * + 8
----
696

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-151
SELECT 73 + + + 59 + - 76 + 27 + 58 + - 18 DIV ( + 24 ) + - 47 AS col2, 20 * 82 + - 89 + COUNT( * ) DIV 3 * - 95
----
94
1551

skipif mysql # not compatible
query II rowsort label-151
SELECT 73 + + + 59 + - 76 + 27 + 58 + - 18 / ( + 24 ) + - 47 AS col2, 20 * 82 + - 89 + COUNT ( * ) / 3 * - 95
----
94
1551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-152
SELECT ALL - 49 / + NULLIF ( + - ( - + CAST( NULL AS SIGNED ) ), - 28 ) * CAST( + COALESCE ( + 77, + + 66 * + COUNT( * ) ) AS SIGNED ) * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL - 49 / + NULLIF ( + - ( - + CAST ( NULL AS INTEGER ) ), - 28 ) * CAST ( + COALESCE ( + 77, + + 66 * + COUNT ( * ) ) AS INTEGER ) * - 50
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-153
SELECT 80 DIV + 37 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-153
SELECT 80 / + 37 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-154
SELECT SUM( + 40 ) + + CASE - 2 WHEN - 29 + 63 THEN NULL ELSE - 64 * - 58 END, SUM( - 83 ) DIV - - 23 + + 63 AS col0
----
3752
60

skipif mysql # not compatible
query II rowsort label-154
SELECT SUM ( + 40 ) + + CASE - 2 WHEN - 29 + 63 THEN NULL ELSE - 64 * - 58 END, SUM ( - 83 ) / - - 23 + + 63 AS col0
----
3752
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-155
SELECT + CAST( + - 33 AS SIGNED ) DIV - - 69 * + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-155
SELECT + CAST ( + - 33 AS INTEGER ) / - - 69 * + 91 AS col0
----
0

query I rowsort
SELECT 98 + - 59 AS col1
----
39

query I rowsort
SELECT - 89 * - - ( - + 17 ) + - 97 * - 97
----
10922

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT MAX( ALL 21 ) + + 85 col2
----
106

skipif mysql # not compatible
query I rowsort label-159
SELECT MAX ( ALL 21 ) + + 85 col2
----
106

query I rowsort
SELECT + 51 + - 4 - + 53 * + NULLIF ( + 75, 11 / + 87 + - + ( + 94 ) )
----
-3928

onlyif mysql # DIV for integer division: 
query I rowsort label-161
SELECT + 91 + 58 DIV 29
----
93

skipif mysql # not compatible
query I rowsort label-161
SELECT + 91 + 58 / 29
----
93

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

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

query I rowsort
SELECT + 18 + + 66 col0
----
84

query I rowsort
SELECT ALL + - 5 * 26
----
-130

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-166
SELECT ALL CAST( - 32 AS SIGNED ) * + + 11 + - COALESCE ( ( - CASE - MIN( - - 80 ) WHEN - 9 THEN - 46 ELSE NULL END ), - CASE - ( + + 95 ) WHEN + - 14 / - COUNT( * ) + - 98 + - + 47 - - 51 THEN - 83 ELSE 53 END + 36 )
----
-335

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL CAST ( - 32 AS INTEGER ) * + + 11 + - COALESCE ( ( - CASE - MIN ( - - 80 ) WHEN - 9 THEN - 46 ELSE NULL END ), - CASE - ( + + 95 ) WHEN + - 14 / - COUNT ( * ) + - 98 + - + 47 - - 51 THEN - 83 ELSE 53 END + 36 )
----
-335

query I rowsort
SELECT - + NULLIF ( + - 47, + + 12 ) AS col2
----
47

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

query II rowsort
SELECT - 14 AS col2, 18
----
-14
18

query I rowsort
SELECT 39 + 94 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT ALL 13 - - 14 - COUNT( * ) * 37 col2
----
-10

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL 13 - - 14 - COUNT ( * ) * 37 col2
----
-10

query I rowsort
SELECT ALL - 25 * - 68 * - - 9
----
15300

query II rowsort
SELECT ALL - ( - + CASE WHEN - 15 IS NOT NULL THEN + 6 END ) AS col1, 76 AS col1
----
6
76

onlyif mysql # DIV for integer division: 
query I rowsort label-174
SELECT 53 DIV + - 48 + - 25 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-174
SELECT 53 / + - 48 + - 25 AS col1
----
-26

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-176
SELECT 58 * 2, - 18 * COUNT( * ) col2
----
116
-18

skipif mysql # not compatible
query II rowsort label-176
SELECT 58 * 2, - 18 * COUNT ( * ) col2
----
116
-18

query I rowsort
SELECT CASE 43 WHEN 39 * - + AVG ( ALL + + 62 ) THEN - 96 * - - 29 - - 1 END + 42
----
NULL

query I rowsort
SELECT DISTINCT - 44 * + 80 * - 5 AS col1
----
17600

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

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

query I rowsort
SELECT 83 * + NULLIF ( + + 38, + 53 ) * + 6
----
18924

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT ALL + 90 + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-181
SELECT ALL + 90 + + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT + COALESCE ( 70, + 61 * + 78 * - 61 * - 52 ) * - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-182
SELECT + COALESCE ( 70, + 61 * + 78 * - 61 * - 52 ) * - COUNT ( * )
----
-70

query I rowsort
SELECT + 9 * - 64 AS col1
----
-576

query I rowsort
SELECT ALL - ( - - 65 ) col1
----
-65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-186
SELECT DISTINCT + 33 DIV - + 38 * - 25 * 95 * 91 + - - 32
----
32

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT + 33 / - + 38 * - 25 * 95 * 91 + - - 32
----
32

query I rowsort
SELECT DISTINCT 1 + - - 0 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-188
SELECT DISTINCT + - 11 + + CAST( 70 AS SIGNED ) / 33 * 14 * + CAST( + NULLIF ( + CAST( NULL AS SIGNED ), + 22 * - + 54 + + 62 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT + - 11 + + CAST ( 70 AS INTEGER ) / 33 * 14 * + CAST ( + NULLIF ( + CAST ( NULL AS INTEGER ), + 22 * - + 54 + + 62 ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 14 * 56 + + - 15
----
769

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-190
SELECT 20 + - CAST( 17 AS SIGNED ) DIV + - 95 AS col2, 19
----
20
19

skipif mysql # not compatible
query II rowsort label-190
SELECT 20 + - CAST ( 17 AS INTEGER ) / + - 95 AS col2, 19
----
20
19

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT 82 DIV 31 + - 87 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-191
SELECT 82 / 31 + - 87 AS col2
----
-85

query I rowsort
SELECT 89 + + 14 AS col0
----
103

query I rowsort
SELECT DISTINCT 3 - + 65 - 30 AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-194
SELECT ALL NULLIF ( + 28, 80 * AVG ( + 83 ) * - - ( + + NULLIF ( - - 71, + + SUM( + + 27 ) + - + ( - 97 ) + + COUNT( + 98 ) ) ) - + + CAST( NULL AS SIGNED ) + + - 59 + - COUNT( * ) + + CAST( NULL AS SIGNED ) )
----
28

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL NULLIF ( + 28, 80 * AVG ( + 83 ) * - - ( + + NULLIF ( - - 71, + + SUM ( + + 27 ) + - + ( - 97 ) + + COUNT ( + 98 ) ) ) - + + CAST ( NULL AS INTEGER ) + + - 59 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-195
SELECT - 47 + CAST( - - 88 AS SIGNED ) * + 47 AS col0
----
4089

skipif mysql # not compatible
query I rowsort label-195
SELECT - 47 + CAST ( - - 88 AS INTEGER ) * + 47 AS col0
----
4089

query I rowsort
SELECT ( - 95 ) * - 22
----
2090

query I rowsort
SELECT DISTINCT - - ( - 83 ) - - + 21 AS col1
----
-62

query II rowsort
SELECT ALL 74, 32 + 43 + 1 + - 11 * + 57 AS col1
----
74
-551

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

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

query I rowsort
SELECT + 30 + 8 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT + 36 * + + MAX( DISTINCT + + 19 ) * + - COUNT( - 82 ) * 80 * - 59
----
3228480

skipif mysql # not compatible
query I rowsort label-201
SELECT + 36 * + + MAX ( DISTINCT + + 19 ) * + - COUNT ( - 82 ) * 80 * - 59
----
3228480

query I rowsort
SELECT + 48 * - 98 * + 40 AS col0
----
-188160

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-205
SELECT + 0 DIV + 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-205
SELECT + 0 / + 26 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-206
SELECT DISTINCT + 96 AS col2, - 72 * - + 22 + + 67 * + 54 * COUNT( * ) AS col2
----
96
5202

skipif mysql # not compatible
query II rowsort label-206
SELECT DISTINCT + 96 AS col2, - 72 * - + 22 + + 67 * + 54 * COUNT ( * ) AS col2
----
96
5202

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT DISTINCT 87 * + - COUNT( * ) + + - 37 AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT 87 * + - COUNT ( * ) + + - 37 AS col0
----
-124

onlyif mysql # DIV for integer division: 
query I rowsort label-208
SELECT COALESCE ( + 53, NULLIF ( 26, - + 73 ) + 57 DIV + 98 )
----
53

skipif mysql # not compatible
query I rowsort label-208
SELECT COALESCE ( + 53, NULLIF ( 26, - + 73 ) + 57 / + 98 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT - 46 * - 63 * COUNT( * ) AS col2
----
2898

skipif mysql # not compatible
query I rowsort label-209
SELECT - 46 * - 63 * COUNT ( * ) AS col2
----
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT ALL SUM( - ( + COALESCE ( - - 36, 15 ) ) ) * 25 + 20
----
-880

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL SUM ( - ( + COALESCE ( - - 36, 15 ) ) ) * 25 + 20
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT COALESCE ( 15, 0 - + 42, - - 10 * COUNT( * ) + - 39 - + 18 * 58 + 85 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-211
SELECT COALESCE ( 15, 0 - + 42, - - 10 * COUNT ( * ) + - 39 - + 18 * 58 + 85 ) AS col1
----
15

query I rowsort
SELECT + COALESCE ( 77, + 63 ) + + 83 AS col1
----
160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT ALL + 86 * - 63 * + COUNT( * )
----
-5418

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL + 86 * - 63 * + COUNT ( * )
----
-5418

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT DISTINCT + COALESCE ( - CASE - 42 WHEN 98 THEN NULL ELSE + - 99 END, + COUNT( * ) * + - NULLIF ( + 96, - 29 ) - + 50 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT + COALESCE ( - CASE - 42 WHEN 98 THEN NULL ELSE + - 99 END, + COUNT ( * ) * + - NULLIF ( + 96, - 29 ) - + 50 ) AS col2
----
99

query I rowsort
SELECT - + 26 * - 61 * + + 87 + 60
----
138042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-217
SELECT DISTINCT - CAST( NULL AS SIGNED ) * MAX( + 56 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * MAX ( + 56 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-218
SELECT ALL + - 77 * + ( + CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col0
----
NULL

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

query II rowsort
SELECT + + 46 * + - 74 * - 54 * 61 + - 25 AS col1, 86
----
11212751
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-220
SELECT ALL + 96 * - + COUNT( * ) + + COUNT( - ( 54 ) ) + + COUNT( * ) + + - 56 * + CAST( MAX( + - CAST( - 0 AS SIGNED ) ) AS SIGNED ) DIV SUM( ALL + + 3 ) + 26 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL + 96 * - + COUNT ( * ) + + COUNT ( - ( 54 ) ) + + COUNT ( * ) + + - 56 * + CAST ( MAX ( + - CAST ( - 0 AS INTEGER ) ) AS INTEGER ) / SUM ( ALL + + 3 ) + 26 AS col0
----
-68

query I rowsort
SELECT - 73 + + 60 + - 84
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT CASE + - 48 WHEN - 34 + 28 + + SUM( DISTINCT - + 53 ) / - MIN( + + 7 ) * - 85 + - 19 THEN + - 36 * + 44 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-222
SELECT CASE + - 48 WHEN - 34 + 28 + + SUM ( DISTINCT - + 53 ) / - MIN ( + + 7 ) * - 85 + - 19 THEN + - 36 * + 44 END AS col1
----
NULL

query II rowsort
SELECT DISTINCT + - NULLIF ( - - 58, 59 ) AS col0, 30 AS col1
----
-58
30

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT - - COUNT( * ) * - ( - - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-224
SELECT - - COUNT ( * ) * - ( - - 80 )
----
-80

query I rowsort
SELECT - - 0 * + 18 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT - + 25 + + NULLIF ( - + 56, - - MIN( ALL + ( - + 35 ) ) * - ( + - 24 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-226
SELECT - + 25 + + NULLIF ( - + 56, - - MIN ( ALL + ( - + 35 ) ) * - ( + - 24 ) )
----
-81

query I rowsort
SELECT + - 50 + NULLIF ( + + 13, - - 29 * - 8 ) col0
----
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT DISTINCT COUNT( * ) * + - COUNT( ALL - 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT COUNT ( * ) * + - COUNT ( ALL - 90 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT - ( + + 14 ) + CASE + COALESCE ( + COUNT( * ), - COUNT( * ) ) WHEN - 72 * + 54 THEN - 79 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT - ( + + 14 ) + CASE + COALESCE ( + COUNT ( * ), - COUNT ( * ) ) WHEN - 72 * + 54 THEN - 79 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - + 73 * + 86
----
-6278

query II rowsort
SELECT ALL 18, + 47 AS col1
----
18
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-233
SELECT - 72 + + MAX( + - 79 ) + - CAST( 45 AS SIGNED )
----
-196

skipif mysql # not compatible
query I rowsort label-233
SELECT - 72 + + MAX ( + - 79 ) + - CAST ( 45 AS INTEGER )
----
-196

query II rowsort
SELECT 29 AS col2, + 60 AS col2
----
29
60

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

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

query I rowsort
SELECT + ( - 58 ) * - 91
----
5278

query II rowsort
SELECT - 24 * 74 * - + 84 * + ( 64 ) * 97 AS col2, + 14
----
926134272
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT - MIN( + 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-239
SELECT - MIN ( + 87 ) AS col0
----
-87

query I rowsort
SELECT ALL 12 + 24 * 50
----
1212

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT + COALESCE ( 41, COUNT( * ) ) + - 85
----
-44

skipif mysql # not compatible
query I rowsort label-241
SELECT + COALESCE ( 41, COUNT ( * ) ) + - 85
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT DISTINCT CAST( + + 51 AS SIGNED ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT CAST ( + + 51 AS INTEGER ) AS col2
----
51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT + CAST( + 6 AS SIGNED ) + + CAST( + 26 AS SIGNED ) + - + 96 - + + 57 - + CAST( - 6 AS SIGNED )
----
-115

skipif mysql # not compatible
query I rowsort label-244
SELECT + CAST ( + 6 AS INTEGER ) + + CAST ( + 26 AS INTEGER ) + - + 96 - + + 57 - + CAST ( - 6 AS INTEGER )
----
-115

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT + CASE + MAX( - 83 ) WHEN + 59 THEN + 40 * + + COUNT( * ) END + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-246
SELECT + CASE + MAX ( - 83 ) WHEN + 59 THEN + 40 * + + COUNT ( * ) END + 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT ALL 70 * COUNT( + NULLIF ( - 14, + 49 ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-247
SELECT ALL 70 * COUNT ( + NULLIF ( - 14, + 49 ) ) AS col1
----
70

query I rowsort
SELECT + COALESCE ( + 15, - 78, - 82 * 38 + 60 )
----
15

query I rowsort
SELECT 90 * - 81 + 87
----
-7203

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT + COALESCE ( - 88, + + 38, + - MIN( ( + 11 ) ) )
----
-88

skipif mysql # not compatible
query I rowsort label-250
SELECT + COALESCE ( - 88, + + 38, + - MIN ( ( + 11 ) ) )
----
-88

query I rowsort
SELECT + ( - NULLIF ( - 94, + 40 ) ) * - - CASE + - 2 WHEN - + 33 THEN 9 ELSE NULL END
----
NULL

query I rowsort
SELECT - NULLIF ( - - 45, + 94 ) AS col0
----
-45

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

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

query I rowsort
SELECT ALL + + CASE WHEN NOT NULL IS NULL THEN 13 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT + + 50 AS col0, NULLIF ( ( + 49 ), + 83 - 38 )
----
50
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-256
SELECT + NULLIF ( + + 0, COALESCE ( + 75, COUNT( * ) ) ) DIV - MIN( DISTINCT - - ( - 18 ) ) + + ( + 68 ) + + - 0 DIV + 87
----
68

skipif mysql # not compatible
query I rowsort label-256
SELECT + NULLIF ( + + 0, COALESCE ( + 75, COUNT ( * ) ) ) / - MIN ( DISTINCT - - ( - 18 ) ) + + ( + 68 ) + + - 0 / + 87
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-257
SELECT + 37 AS col0, COALESCE ( - + COUNT( * ), - COALESCE ( - 65, - 40 + 29 + + - 25 + - 71 * + - COUNT( * ) / + 78 / - 51 ) * 27 + - - 72 ) / CASE + CASE - + 68 WHEN 58 + ( 57 ) / + 55 / 36 THEN + CAST( 34 AS SIGNED ) WHEN - COALESCE ( 29, 60 + + 66 ) THEN NULL ELSE - CAST( COUNT( * ) AS SIGNED ) * - 56 END WHEN ( AVG ( - 3 ) ) THEN - COUNT( * ) WHEN + 9 THEN 61 END AS col0
----
37
NULL

skipif mysql # not compatible
query II rowsort label-257
SELECT + 37 AS col0, COALESCE ( - + COUNT ( * ), - COALESCE ( - 65, - 40 + 29 + + - 25 + - 71 * + - COUNT ( * ) / + 78 / - 51 ) * 27 + - - 72 ) / CASE + CASE - + 68 WHEN 58 + ( 57 ) / + 55 / 36 THEN + CAST ( 34 AS INTEGER ) WHEN - COALESCE ( 29, 60 + + 66 ) THEN NULL ELSE - CAST ( COUNT ( * ) AS INTEGER ) * - 56 END WHEN ( AVG ( - 3 ) ) THEN - COUNT ( * ) WHEN + 9 THEN 61 END AS col0
----
37
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-258
SELECT - 7 * - 92 + - 68 * - - ( + - 19 ) * 24 col0, CAST( + 96 AS SIGNED )
----
31652
96

skipif mysql # not compatible
query II rowsort label-258
SELECT - 7 * - 92 + - 68 * - - ( + - 19 ) * 24 col0, CAST ( + 96 AS INTEGER )
----
31652
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-259
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * + - COUNT( DISTINCT 0 ) + + - 96 * + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT + - CAST ( NULL AS REAL ) * + - COUNT ( DISTINCT 0 ) + + - 96 * + - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT + COUNT( 67 ) * - - SUM( + 24 ) * 99 AS col0
----
2376

skipif mysql # not compatible
query I rowsort label-260
SELECT + COUNT ( 67 ) * - - SUM ( + 24 ) * 99 AS col0
----
2376

query I rowsort
SELECT - + 93 - - 84 col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-262
SELECT ALL + CASE SUM( ALL - 48 ) WHEN COUNT( DISTINCT 30 ) / - - 51 THEN COALESCE ( + - CAST( NULLIF ( - - 94, 74 ) AS SIGNED ), + 9 * + COUNT( * ) + + 26 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL + CASE SUM ( ALL - 48 ) WHEN COUNT ( DISTINCT 30 ) / - - 51 THEN COALESCE ( + - CAST ( NULLIF ( - - 94, 74 ) AS INTEGER ), + 9 * + COUNT ( * ) + + 26 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT DISTINCT - MIN( - - ( 67 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-263
SELECT DISTINCT - MIN ( - - ( 67 ) )
----
-67

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

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

query I rowsort
SELECT - 9 * 83
----
-747

query I rowsort
SELECT 32 + - 89
----
-57

query I rowsort
SELECT 42 + ( 48 ) - - + 80
----
170

query I rowsort
SELECT 48 * + 91 AS col2
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT MAX( DISTINCT + + 52 ) + - - NULLIF ( NULLIF ( - 45, COUNT( * ) ), + + 67 ) * - 31
----
1447

skipif mysql # not compatible
query I rowsort label-269
SELECT MAX ( DISTINCT + + 52 ) + - - NULLIF ( NULLIF ( - 45, COUNT ( * ) ), + + 67 ) * - 31
----
1447

query I rowsort
SELECT ALL + 21 + - - 34 * - 74 + - 42
----
-2537

query I rowsort
SELECT DISTINCT + 3 + - 80
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-272
SELECT DISTINCT - 76 + + CAST( NULL AS SIGNED ) + + ( - + 62 ) + + 47 * 64 + 10 - 43 + - 68 - ( - ( - 76 ) ) + 93 * - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT - 76 + + CAST ( NULL AS INTEGER ) + + ( - + 62 ) + + 47 * 64 + 10 - 43 + - 68 - ( - ( - 76 ) ) + 93 * - 23 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 86 * - 16 AS col2
----
-1376

query I rowsort
SELECT ALL + 31 * CASE - + 35 WHEN - 97 THEN NULL ELSE 0 + + 97 END AS col1
----
3007

query I rowsort
SELECT 73 * + 42
----
3066

query I rowsort
SELECT 22 * - 17 - - 55 - + 53
----
-372

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

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

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

query I rowsort
SELECT DISTINCT + 85 - + 0 col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-280
SELECT - 8 + - 40 + + 60 * - + 14 + + ( COUNT( * ) ) + - - MAX( ALL 51 ) DIV ( - 85 )
----
-887

skipif mysql # not compatible
query I rowsort label-280
SELECT - 8 + - 40 + + 60 * - + 14 + + ( COUNT ( * ) ) + - - MAX ( ALL 51 ) / ( - 85 )
----
-887

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT - - ( 96 ) * - COUNT( * ) * - + 99 + - 65 AS col2
----
9439

skipif mysql # not compatible
query I rowsort label-281
SELECT - - ( 96 ) * - COUNT ( * ) * - + 99 + - 65 AS col2
----
9439

query I rowsort
SELECT - 91 - - + 50 + + 38 + + - 53 * - 74 AS col0
----
3919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-283
SELECT ALL - CAST( - COALESCE ( + 46, - COUNT( * ) * - 99 * - 2 ) AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL - CAST ( - COALESCE ( + 46, - COUNT ( * ) * - 99 * - 2 ) AS INTEGER )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-284
SELECT - + 8 * - 18 + + MIN( + - 27 ) + 10 + - MAX( ALL + - 0 ), - 9 AS col0
----
127
-9

skipif mysql # not compatible
query II rowsort label-284
SELECT - + 8 * - 18 + + MIN ( + - 27 ) + 10 + - MAX ( ALL + - 0 ), - 9 AS col0
----
127
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT DISTINCT NULLIF ( 90, 95 ) * + ( COUNT( * ) ) * - 40 AS col0
----
-3600

skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT NULLIF ( 90, 95 ) * + ( COUNT ( * ) ) * - 40 AS col0
----
-3600

query II rowsort
SELECT ( - 50 ) * - - 16 + - ( - 10 ), 31 AS col1
----
-790
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-287
SELECT - 54 * 16 * 51 + + MIN( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-287
SELECT - 54 * 16 * 51 + + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 77 + - 95 AS col0
----
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-289
SELECT 84 DIV - 85 * - + 73, + 62 AS col0
----
0
62

skipif mysql # not compatible
query II rowsort label-289
SELECT 84 / - 85 * - + 73, + 62 AS col0
----
0
62

query I rowsort
SELECT ALL + 34 + - - 44
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-291
SELECT ALL 73 AS col2, - CAST( - 96 AS SIGNED )
----
73
96

skipif mysql # not compatible
query II rowsort label-291
SELECT ALL 73 AS col2, - CAST ( - 96 AS INTEGER )
----
73
96

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ( + - 42 ) + - COUNT( + 81 ) - - 82 + 35 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-292
SELECT ( + - 42 ) + - COUNT ( + 81 ) - - 82 + 35 AS col1
----
74

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

skipif mysql # not compatible
query II rowsort label-293
SELECT - COUNT ( * ) AS col2, 29
----
-1
29

query I rowsort
SELECT DISTINCT - 44 + + 77 * + 43 * + + 51 * + 25 AS col1
----
4221481

query I rowsort
SELECT DISTINCT + 17 * - - 21
----
357

query I rowsort
SELECT 89 + + 7 col0
----
96

query I rowsort
SELECT 92 * - 67
----
-6164

query I rowsort
SELECT 98 + + 92
----
190

query II rowsort
SELECT - 58, 87 AS col0
----
-58
87

query I rowsort
SELECT 8 + 84 * + 21 + - - 85 + - 30 - + + 75 col1
----
1752

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

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL + COUNT ( * ) - + - 8 AS col2
----
9

query I rowsort
SELECT 56 + 54
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT + COALESCE ( - 81, 63, + + 90 + + 39 + - 87 ) DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-303
SELECT + COALESCE ( - 81, 63, + + 90 + + 39 + - 87 ) / + 86
----
0

query I rowsort
SELECT DISTINCT - - 90 * - 82 AS col2
----
-7380

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-306
SELECT 33 + + CAST( NULL AS SIGNED ) * + 27 * + + 80 + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-306
SELECT 33 + + CAST ( NULL AS INTEGER ) * + 27 * + + 80 + COUNT ( * ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT - 66 DIV 63
----
-1

skipif mysql # not compatible
query I rowsort label-307
SELECT - 66 / 63
----
-1

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

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

query I rowsort
SELECT DISTINCT + - 77 * + + 47 AS col0
----
-3619

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT ALL + NULLIF ( SUM( + 27 ), + - 81 ) * - 95 AS col1
----
-2565

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL + NULLIF ( SUM ( + 27 ), + - 81 ) * - 95 AS col1
----
-2565

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT ALL - CASE AVG ( ALL - 3 ) WHEN + MAX( + 62 ) THEN NULL WHEN MIN( DISTINCT 2 ) THEN + + 0 * - 13 / + + 37 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL - CASE AVG ( ALL - 3 ) WHEN + MAX ( + 62 ) THEN NULL WHEN MIN ( DISTINCT 2 ) THEN + + 0 * - 13 / + + 37 END AS col1
----
NULL

query II rowsort
SELECT + - 5 AS col1, - 69 * 82 + - ( - + ( - 8 ) )
----
-5
-5666

onlyif mysql # aggregate syntax: 
query II rowsort label-314
SELECT ALL - - 25 AS col2, 56 - - COUNT( * ) + + ( - 24 ) - + - NULLIF ( + 10, 4 ) * - 90 - - 93
----
25
-774

skipif mysql # not compatible
query II rowsort label-314
SELECT ALL - - 25 AS col2, 56 - - COUNT ( * ) + + ( - 24 ) - + - NULLIF ( + 10, 4 ) * - 90 - - 93
----
25
-774

query II rowsort
SELECT + + 60 * 35 + - 4 AS col0, 5 AS col0
----
2096
5

onlyif mysql # aggregate syntax: 
query II rowsort label-316
SELECT - 84 AS col1, - 32 * 2 + 83 - COUNT( + 64 )
----
-84
18

skipif mysql # not compatible
query II rowsort label-316
SELECT - 84 AS col1, - 32 * 2 + 83 - COUNT ( + 64 )
----
-84
18

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT - 8 - 70 + 54 * + NULLIF ( + 52, + + SUM( DISTINCT + 47 ) + AVG ( DISTINCT 33 ) ) * - 54
----
-151710

skipif mysql # not compatible
query I rowsort label-317
SELECT - 8 - 70 + 54 * + NULLIF ( + 52, + + SUM ( DISTINCT + 47 ) + AVG ( DISTINCT 33 ) ) * - 54
----
-151710

onlyif mysql # DIV for integer division: 
query II rowsort label-318
SELECT + 17 col0, 83 DIV - 59 AS col2
----
17
-1

skipif mysql # not compatible
query II rowsort label-318
SELECT + 17 col0, 83 / - 59 AS col2
----
17
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT + 51 * - COALESCE ( - - 97, + 16 * 55 ) - + + COUNT( * ) AS col2
----
-4948

skipif mysql # not compatible
query I rowsort label-319
SELECT + 51 * - COALESCE ( - - 97, + 16 * 55 ) - + + COUNT ( * ) AS col2
----
-4948

query I rowsort
SELECT - CASE 1 WHEN + 27 THEN NULL ELSE 87 * - 64 END
----
5568

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

query I rowsort
SELECT DISTINCT 70 + + 40 AS col2
----
110

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

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

query I rowsort
SELECT DISTINCT 48 + + + 82
----
130

query II rowsort
SELECT ALL 60 + - 20, + 48 AS col1
----
40
48

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT - COALESCE ( + - 99, + - 84 + - COUNT( * ) * + 37 )
----
99

skipif mysql # not compatible
query I rowsort label-326
SELECT - COALESCE ( + - 99, + - 84 + - COUNT ( * ) * + 37 )
----
99

query I rowsort
SELECT + 18 + - 15 + 52 AS col0
----
55

query I rowsort
SELECT + 24 * 9 AS col2
----
216

query I rowsort
SELECT - 41 + + + 57
----
16

query I rowsort
SELECT DISTINCT 47 - + - 18
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-331
SELECT - CASE ( - 11 ) WHEN 77 THEN + CAST( + 6 AS DECIMAL ) + 39 + + 88 WHEN 38 * + - 29 THEN + NULLIF ( + 61, + 54 * 17 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT - CASE ( - 11 ) WHEN 77 THEN + CAST ( + 6 AS REAL ) + 39 + + 88 WHEN 38 * + - 29 THEN + NULLIF ( + 61, + 54 * 17 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT + CASE 68 WHEN ( + + COUNT( * ) ) + + COUNT( * ) THEN 92 + COUNT( * ) END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-332
SELECT + CASE 68 WHEN ( + + COUNT ( * ) ) + + COUNT ( * ) THEN 92 + COUNT ( * ) END * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-333
SELECT + 64 + - - ( - + CAST( + 89 AS SIGNED ) ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-333
SELECT + 64 + - - ( - + CAST ( + 89 AS INTEGER ) ) AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-334
SELECT ALL - CASE - - 58 WHEN + ( - + 29 ) + 63 THEN NULL WHEN - 2 THEN + CASE AVG ( 49 ) WHEN - COUNT( * ) THEN NULL WHEN + - 47 THEN NULL WHEN + 96 * 12 THEN - 29 / - 15 * - COALESCE ( - + 78, + CAST( - 24 AS SIGNED ) ) + 40 + - CAST( + + 77 AS SIGNED ) - + 42 + + 90 + NULLIF ( 85, + 96 ) * 96 / + 50 END WHEN - 27 * - MIN( - 62 ) THEN NULL END * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL - CASE - - 58 WHEN + ( - + 29 ) + 63 THEN NULL WHEN - 2 THEN + CASE AVG ( 49 ) WHEN - COUNT ( * ) THEN NULL WHEN + - 47 THEN NULL WHEN + 96 * 12 THEN - 29 / - 15 * - COALESCE ( - + 78, + CAST ( - 24 AS INTEGER ) ) + 40 + - CAST ( + + 77 AS INTEGER ) - + 42 + + 90 + NULLIF ( 85, + 96 ) * 96 / + 50 END WHEN - 27 * - MIN ( - 62 ) THEN NULL END * 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT DISTINCT SUM( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT SUM ( 3 )
----
3

query I rowsort
SELECT + 28 * 71
----
1988

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT - - 33 * - + NULLIF ( 32, COUNT( * ) ) * - - 59 + + - 95
----
-62399

skipif mysql # not compatible
query I rowsort label-337
SELECT - - 33 * - + NULLIF ( 32, COUNT ( * ) ) * - - 59 + + - 95
----
-62399

query I rowsort
SELECT ALL - 27 * + - 48 + - 83 * + 88 AS col1
----
-6008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-339
SELECT + + COALESCE ( - - 82, + 29 ) + 12 * + + 69 / - NULLIF ( - CAST( NULL AS SIGNED ), + 56 ) / + SUM( DISTINCT 39 ) - + + 81 * - ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT + + COALESCE ( - - 82, + 29 ) + 12 * + + 69 / - NULLIF ( - CAST ( NULL AS INTEGER ), + 56 ) / + SUM ( DISTINCT 39 ) - + + 81 * - ( + COUNT ( * ) )
----
NULL

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

query I rowsort
SELECT + + 72 * 95 * 64
----
437760

onlyif mysql # aggregate syntax: 
query II rowsort label-342
SELECT - ( - NULLIF ( - ( - COUNT( * ) ), + 51 + + 48 ) ) * - 95, - 7 AS col1
----
-95
-7

skipif mysql # not compatible
query II rowsort label-342
SELECT - ( - NULLIF ( - ( - COUNT ( * ) ), + 51 + + 48 ) ) * - 95, - 7 AS col1
----
-95
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-343
SELECT DISTINCT - COUNT( * ) DIV + + 71 - 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT - COUNT ( * ) / + + 71 - 43 AS col1
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-344
SELECT ALL 12 DIV + 30 + + 13 col0
----
13

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL 12 / + 30 + + 13 col0
----
13

query I rowsort
SELECT - ( - - 58 ) * - 49 + - - 26 + - - 31 AS col1
----
2899

onlyif mysql # DIV for integer division: 
query II rowsort label-346
SELECT ALL - 0 DIV - 50 + - 6 + - 99 AS col1, + 55 col0
----
-105
55

skipif mysql # not compatible
query II rowsort label-346
SELECT ALL - 0 / - 50 + - 6 + - 99 AS col1, + 55 col0
----
-105
55

query II rowsort
SELECT - - 45 + - + 19 AS col2, 33 * + + 53 * - 81 * + 10 - - 45 AS col1
----
26
-1416645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-348
SELECT CAST( NULL AS SIGNED ) / + 77 - COALESCE ( - 15, + ( - 92 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-348
SELECT CAST ( NULL AS INTEGER ) / + 77 - COALESCE ( - 15, + ( - 92 ) )
----
NULL

query I rowsort
SELECT + 24 * + + 27 + - 57 AS col1
----
591

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT - SUM( + 4 ) - - COUNT( ALL 95 )
----
-3

skipif mysql # not compatible
query I rowsort label-350
SELECT - SUM ( + 4 ) - - COUNT ( ALL 95 )
----
-3

query I rowsort
SELECT ALL + 41 * - 41 + + + 28 AS col0
----
-1653

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT + COUNT( * ) * - 16 + - - 20 col1
----
4

skipif mysql # not compatible
query I rowsort label-352
SELECT + COUNT ( * ) * - 16 + - - 20 col1
----
4

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

skipif mysql # not compatible
query I rowsort label-353
SELECT - COUNT ( * ) * - - 4 + - - 26 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ALL + + CASE + 68 WHEN - CASE COUNT( * ) WHEN - 75 THEN 49 / + - 29 * 35 WHEN - 54 THEN NULL END THEN + 59 WHEN - 42 THEN - ( - 61 ) END / + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL + + CASE + 68 WHEN - CASE COUNT ( * ) WHEN - 75 THEN 49 / + - 29 * 35 WHEN - 54 THEN NULL END THEN + 59 WHEN - 42 THEN - ( - 61 ) END / + - 96
----
NULL

query I rowsort
SELECT ALL - 35 * 90
----
-3150

query II rowsort
SELECT ALL CASE - 0 WHEN + 87 THEN + 13 END * + 6 + 80 - + 92 * + 44 / 25 * + 35 AS col1, + CASE 42 WHEN + 97 / - - 38 THEN - ( 14 ) ELSE - + 31 END
----
NULL
-31

query I rowsort
SELECT - 42 * + 65
----
-2730

query I rowsort
SELECT + COALESCE ( - + 12, + - 43 )
----
-12

query II rowsort
SELECT ALL + 28 col1, - 89 AS col0
----
28
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT + CASE - MIN( ALL + 11 ) WHEN - - NULLIF ( 31, + - 60 ) THEN 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-360
SELECT + CASE - MIN ( ALL + 11 ) WHEN - - NULLIF ( 31, + - 60 ) THEN 58 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 42 * 72 - + 48 + + 51 * 16 * + 58 AS col0
----
50304

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT - COUNT( * ) * - 75 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-362
SELECT - COUNT ( * ) * - 75 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT MAX( 96 )
----
96

skipif mysql # not compatible
query I rowsort label-363
SELECT MAX ( 96 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-364
SELECT ALL CAST( - 87 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL CAST ( - 87 AS INTEGER )
----
-87

query I rowsort
SELECT DISTINCT - 82 * + 8 AS col1
----
-656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-366
SELECT DISTINCT CAST( - 53 AS SIGNED ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT CAST ( - 53 AS INTEGER ) AS col0
----
-53

query I rowsort
SELECT ALL - 73 * 50 AS col1
----
-3650

query I rowsort
SELECT - 70 + + - 63
----
-133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT - NULLIF ( - + COALESCE ( - ( + - 51 ), - NULLIF ( MAX( 19 ), - 15 DIV COUNT( * ) ) + - - 9 + - 17 + - + 61 * AVG ( 32 ) ), + + 53 DIV 26 DIV + + ( + 47 ) ) DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-369
SELECT - NULLIF ( - + COALESCE ( - ( + - 51 ), - NULLIF ( MAX ( 19 ), - 15 / COUNT ( * ) ) + - - 9 + - 17 + - + 61 * AVG ( 32 ) ), + + 53 / 26 / + + ( + 47 ) ) / - 40
----
-1

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

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

query I rowsort
SELECT + ( + + 35 ) + 38 + - 27
----
46

query I rowsort
SELECT + 52 - + 97 AS col2
----
-45

query I rowsort
SELECT + 44 + + - 95 AS col0
----
-51

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

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

query I rowsort
SELECT - 57 * + 15 + - 32
----
-887

query I rowsort
SELECT DISTINCT + 74 * 92 AS col2
----
6808

query I rowsort
SELECT + + 10 + 68
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT COUNT( * ) + - 55 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-378
SELECT COUNT ( * ) + - 55 AS col2
----
-54

query II rowsort
SELECT + 68, - 86 AS col2
----
68
-86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-380
SELECT + + CASE 59 WHEN - CASE + - COUNT( * ) WHEN - 51 THEN NULL ELSE - + 90 END * 5 + + 74 * - + 41 / + CAST( NULL AS DECIMAL ) * 8 * + COUNT( * ) THEN NULL ELSE + 11 END * - ( + 32 ) + + ( + 71 )
----
-281

skipif mysql # not compatible
query I rowsort label-380
SELECT + + CASE 59 WHEN - CASE + - COUNT ( * ) WHEN - 51 THEN NULL ELSE - + 90 END * 5 + + 74 * - + 41 / + CAST ( NULL AS REAL ) * 8 * + COUNT ( * ) THEN NULL ELSE + 11 END * - ( + 32 ) + + ( + 71 )
----
-281

query I rowsort
SELECT - 4 * NULLIF ( - 74, + + 32 )
----
296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-382
SELECT ALL CASE + 71 WHEN 42 THEN + 17 + - + COUNT( * ) ELSE NULL END + + + CAST( NULL AS SIGNED ) + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL CASE + 71 WHEN 42 THEN + 17 + - + COUNT ( * ) ELSE NULL END + + + CAST ( NULL AS INTEGER ) + 30 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL + COUNT ( * ) + + 80 / - 6 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT MIN( + 5 ) * - 96
----
-480

skipif mysql # not compatible
query I rowsort label-384
SELECT MIN ( + 5 ) * - 96
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT ALL - NULLIF ( 39, - ( + + ( - + MAX( ALL 10 ) ) ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL - NULLIF ( 39, - ( + + ( - + MAX ( ALL 10 ) ) ) ) AS col0
----
-39

query I rowsort
SELECT DISTINCT + 6 - 14
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-387
SELECT DISTINCT + 85 DIV - 7 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT + 85 / - 7 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-388
SELECT 21 AS col0, NULLIF ( - 96, + COUNT( * ) * 96 )
----
21
-96

skipif mysql # not compatible
query II rowsort label-388
SELECT 21 AS col0, NULLIF ( - 96, + COUNT ( * ) * 96 )
----
21
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT ( - 67 ) - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-389
SELECT ( - 67 ) - COUNT ( * )
----
-68

query I rowsort
SELECT 93 * + 54
----
5022

query I rowsort
SELECT 76 * NULLIF ( 95, - - 10 ) - - + 39 + - ( + 66 ) + 88 + - 21 AS col0
----
7260

query II rowsort
SELECT + 25 AS col1, 4 col1
----
25
4

query I rowsort
SELECT 9 + + 85 - - 75
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT ALL + 40 - + 26 * + ( COUNT( * ) ) * - COUNT( DISTINCT - 78 ) + + 13 + + - 15 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL + 40 - + 26 * + ( COUNT ( * ) ) * - COUNT ( DISTINCT - 78 ) + + 13 + + - 15 AS col1
----
64

query I rowsort
SELECT 83 * 0
----
0

query I rowsort
SELECT - 63 * 18 + - 52 * - + 73
----
2662

query I rowsort
SELECT 99 + + + 97 + - 65
----
131

query I rowsort
SELECT DISTINCT - 95 * + 93
----
-8835

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

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

query I rowsort
SELECT 92 + 4 AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-401
SELECT DISTINCT 4 col1, 95 + + COALESCE ( 65, - 52 * - - 47 + COUNT( * ) * + 51, + 42 ) * 20
----
4
1395

skipif mysql # not compatible
query II rowsort label-401
SELECT DISTINCT 4 col1, 95 + + COALESCE ( 65, - 52 * - - 47 + COUNT ( * ) * + 51, + 42 ) * 20
----
4
1395

query I rowsort
SELECT 8 * - 85
----
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT COUNT( * ) + - ( - 13 )
----
14

skipif mysql # not compatible
query I rowsort label-403
SELECT COUNT ( * ) + - ( - 13 )
----
14

query I rowsort
SELECT 46 - 79 AS col2
----
-33

query II rowsort
SELECT ALL 10 col1, - 80 * + 77
----
10
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT DISTINCT + - SUM( - 81 ) + - 62 * - COUNT( * ) + - 35
----
108

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT + - SUM ( - 81 ) + - 62 * - COUNT ( * ) + - 35
----
108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-407
SELECT ( - 79 ), 62 * CAST( NULL AS DECIMAL ) * + MAX( DISTINCT - 20 ) * + ( - 53 ) * - 94 + - 18 + - 26 AS col0
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-407
SELECT ( - 79 ), 62 * CAST ( NULL AS REAL ) * + MAX ( DISTINCT - 20 ) * + ( - 53 ) * - 94 + - 18 + - 26 AS col0
----
-79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT ALL + - 3 + + 2 + SUM( - + 8 ) + + MIN( + 20 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL + - 3 + + 2 + SUM ( - + 8 ) + + MIN ( + 20 ) AS col1
----
11

query II rowsort
SELECT ALL + ( + 48 ) AS col1, + 32 + - 3
----
48
29

query I rowsort
SELECT DISTINCT + - 78 + - - 35
----
-43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-411
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 49 DIV - + 73 * + 42 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-411
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 49 / - + 73 * + 42 AS col1
----
NULL
0

query I rowsort
SELECT ALL 91 + + 77 + - ( + + 6 )
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT - SUM( - + 33 ) - 32 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-413
SELECT - SUM ( - + 33 ) - 32 AS col1
----
1

query I rowsort
SELECT 90 + 52 AS col2
----
142

query II rowsort
SELECT 67 * - 40 AS col1, - 25
----
-2680
-25

query I rowsort
SELECT DISTINCT + - ( + - 88 ) + 22 * + COALESCE ( 63, 7 * + + 2 ) * 26 * + 35 + - 29
----
1261319

query I rowsort
SELECT ALL - ( - - 79 )
----
-79

query I rowsort
SELECT ALL + 68 * - 22 * - 25
----
37400

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT 59 - + MAX( DISTINCT + - 68 )
----
127

skipif mysql # not compatible
query I rowsort label-419
SELECT 59 - + MAX ( DISTINCT + - 68 )
----
127

query I rowsort
SELECT DISTINCT 3 * 57
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-421
SELECT ALL + + ( + MIN( + - 4 ) ) * - 15 * + 27 * - + 78 AS col2, ( - 71 )
----
-126360
-71

skipif mysql # not compatible
query II rowsort label-421
SELECT ALL + + ( + MIN ( + - 4 ) ) * - 15 * + 27 * - + 78 AS col2, ( - 71 )
----
-126360
-71

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

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

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

skipif mysql # not compatible
query I rowsort label-423
SELECT COUNT ( * ) / - 13 + 52
----
52

query III rowsort
SELECT ALL 30 * + 61 AS col1, ( - 17 ) + + 18 AS col1, + 59
----
1830
1
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-425
SELECT CAST( - - 24 AS SIGNED ) * - 30 + + 45 * CAST( NULL AS SIGNED ) * + 99 * + 6 * - 46 + ( + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-425
SELECT CAST ( - - 24 AS INTEGER ) * - 30 + + 45 * CAST ( NULL AS INTEGER ) * + 99 * + 6 * - 46 + ( + 34 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT MAX( ALL + 76 ) col1
----
76

skipif mysql # not compatible
query I rowsort label-426
SELECT MAX ( ALL + 76 ) col1
----
76

query I rowsort
SELECT ALL 77 * + + 4
----
308

query II rowsort
SELECT + 84 * 37 * + - 34 + + - 46 + - - 24 + 6 * - 53 * 68 AS col1, 22 AS col2
----
-127318
22

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

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

query I rowsort
SELECT 11 + - 86 * 53
----
-4547

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT ALL + NULLIF ( COUNT( + 36 ), + - NULLIF ( + 11, 93 * COUNT( * ) ) ) * - 49
----
-49

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL + NULLIF ( COUNT ( + 36 ), + - NULLIF ( + 11, 93 * COUNT ( * ) ) ) * - 49
----
-49

query I rowsort
SELECT ALL - 10 * + - 54 AS col2
----
540

query I rowsort
SELECT 8 + + 55 AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-434
SELECT 46 + - + 54 DIV 27 DIV - + 46 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-434
SELECT 46 + - + 54 / 27 / - + 46 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT ALL + 37 + 52 + - 31 * + - 18 * 50 * - - COUNT( * )
----
27989

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL + 37 + 52 + - 31 * + - 18 * 50 * - - COUNT ( * )
----
27989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-436
SELECT ALL 81 * + CASE - + 97 WHEN + 16 * + 6 * + ( + + 95 ) + 21 * 16 + ( - 41 ) + + 14 THEN + - AVG ( CAST( NULL AS SIGNED ) ) + + - 40 + + - 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL 81 * + CASE - + 97 WHEN + 16 * + 6 * + ( + + 95 ) + 21 * 16 + ( - 41 ) + + 14 THEN + - AVG ( CAST ( NULL AS INTEGER ) ) + + - 40 + + - 73 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL - COALESCE ( + 59, + 51 ) + 60 AS col0
----
1

query I rowsort
SELECT - - 7 + - NULLIF ( - 50, - 72 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT - + COUNT( * ) + - + 98 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-440
SELECT - + COUNT ( * ) + - + 98 AS col0
----
-99

query I rowsort
SELECT ALL + COALESCE ( 95, + 74 + + + 80 - - 66 + + - 81 ) + + - 57 AS col1
----
38

query I rowsort
SELECT + - 52 + + 78 + - - 0 * 63 AS col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-443
SELECT + MIN( DISTINCT 5 ) AS col0, - ( - 99 ) AS col1
----
5
99

skipif mysql # not compatible
query II rowsort label-443
SELECT + MIN ( DISTINCT 5 ) AS col0, - ( - 99 ) AS col1
----
5
99

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT - 95 + + 97 * - - COUNT( ALL - 17 )
----
2

skipif mysql # not compatible
query I rowsort label-444
SELECT - 95 + + 97 * - - COUNT ( ALL - 17 )
----
2

query I rowsort
SELECT ALL + 61 * + 34 AS col2
----
2074

query II rowsort
SELECT - 8 + 85 AS col1, - 3
----
77
-3

query I rowsort
SELECT ALL + + 34 * - 71
----
-2414

query I rowsort
SELECT ALL - 11 * 86 AS col2
----
-946

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT + 49 * - NULLIF ( - 17, - SUM( - 65 ) * + COUNT( * ) ) AS col0
----
833

skipif mysql # not compatible
query I rowsort label-449
SELECT + 49 * - NULLIF ( - 17, - SUM ( - 65 ) * + COUNT ( * ) ) AS col0
----
833

query II rowsort
SELECT ALL + 38, - 91 AS col1
----
38
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT - 80 DIV - 91 + + 83
----
83

skipif mysql # not compatible
query I rowsort label-451
SELECT - 80 / - 91 + + 83
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-452
SELECT + NULLIF ( - 53, - COUNT( * ) * + CAST( NULL AS SIGNED ) ) * + 76 * - - 54 * 21 AS col1
----
-4567752

skipif mysql # not compatible
query I rowsort label-452
SELECT + NULLIF ( - 53, - COUNT ( * ) * + CAST ( NULL AS INTEGER ) ) * + 76 * - - 54 * 21 AS col1
----
-4567752

query I rowsort
SELECT + 72 * + + 64
----
4608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-454
SELECT + CASE CAST( + - 34 AS SIGNED ) WHEN 82 THEN - 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-454
SELECT + CASE CAST ( + - 34 AS INTEGER ) WHEN 82 THEN - 88 END
----
NULL

query I rowsort
SELECT - 55 * + 98 + 40 * + 31
----
-4150

query I rowsort
SELECT + 41 * - + 25
----
-1025

query I rowsort
SELECT ALL 47 * 72 AS col0
----
3384

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

query I rowsort
SELECT + 18 * - - 24 * 20
----
8640

query I rowsort
SELECT ALL - 34 * - - 43 + 4 AS col0
----
-1458

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT 50 * + + 27 * - + MIN( + 66 ) - + - 32
----
-89068

skipif mysql # not compatible
query I rowsort label-461
SELECT 50 * + + 27 * - + MIN ( + 66 ) - + - 32
----
-89068

query I rowsort
SELECT + NULLIF ( - 1, + 7 )
----
-1

query I rowsort
SELECT - 29 + 75 AS col0
----
46

query II rowsort
SELECT + 97, + 9 AS col0
----
97
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-465
SELECT CASE - 61 WHEN + - ( + 86 ) THEN NULL WHEN - 45 + 43 THEN - CASE WHEN 11 <> NULL THEN + NULLIF ( - + NULLIF ( + CAST( - 0 AS SIGNED ), CASE - 72 WHEN + COUNT( * ) / - - COUNT( * ) THEN 73 + + 37 WHEN + 28 * + ( - 76 ) THEN NULL ELSE NULL END ), - 20 ) ELSE NULL END + - + 17 WHEN - 55 * - 51 * + 9 - - ( 63 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-465
SELECT CASE - 61 WHEN + - ( + 86 ) THEN NULL WHEN - 45 + 43 THEN - CASE WHEN 11 <> NULL THEN + NULLIF ( - + NULLIF ( + CAST ( - 0 AS INTEGER ), CASE - 72 WHEN + COUNT ( * ) / - - COUNT ( * ) THEN 73 + + 37 WHEN + 28 * + ( - 76 ) THEN NULL ELSE NULL END ), - 20 ) ELSE NULL END + - + 17 WHEN - 55 * - 51 * + 9 - - ( 63 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-466
SELECT ALL - 1 * 11 + + MAX( + 38 ), + 2 - + ( - 94 ) col2
----
27
96

skipif mysql # not compatible
query II rowsort label-466
SELECT ALL - 1 * 11 + + MAX ( + 38 ), + 2 - + ( - 94 ) col2
----
27
96

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT ALL + NULLIF ( - COUNT( * ), + 72 * 33 ) * 61 + - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL + NULLIF ( - COUNT ( * ), + 72 * 33 ) * 61 + - COUNT ( * )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-468
SELECT DISTINCT - 57 * 32 * + 53 * - ( 50 ) + + CAST( + - 11 AS SIGNED ) AS col1
----
4833589

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT - 57 * 32 * + 53 * - ( 50 ) + + CAST ( + - 11 AS INTEGER ) AS col1
----
4833589

query I rowsort
SELECT ALL - 79 * - 61
----
4819

query I rowsort
SELECT ALL - ( - 22 ) * 55 AS col0
----
1210

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT - COUNT( * ) + + + 6 + + COUNT( * ) * 48 * - + 69 + - MIN( + 2 )
----
-3309

skipif mysql # not compatible
query I rowsort label-471
SELECT - COUNT ( * ) + + + 6 + + COUNT ( * ) * 48 * - + 69 + - MIN ( + 2 )
----
-3309

onlyif mysql # DIV for integer division: 
query II rowsort label-472
SELECT ALL 75, - 99 * + 33 + 91 - 72 + + 90 DIV 78 AS col1
----
75
-3247

skipif mysql # not compatible
query II rowsort label-472
SELECT ALL 75, - 99 * + 33 + 91 - 72 + + 90 / 78 AS col1
----
75
-3247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-473
SELECT - CAST( - - COALESCE ( + 26, - + 83 - COUNT( * ) * 88, 87 * + 17 + 2 ) AS SIGNED ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-473
SELECT - CAST ( - - COALESCE ( + 26, - + 83 - COUNT ( * ) * 88, 87 * + 17 + 2 ) AS INTEGER ) AS col2
----
-26

query I rowsort
SELECT + 70 * - 79
----
-5530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-475
SELECT - COUNT( DISTINCT 12 ) DIV + + ( + + 44 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-475
SELECT - COUNT ( DISTINCT 12 ) / + + ( + + 44 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT DISTINCT + CASE 95 WHEN - 90 * - 13 + + MAX( 95 ) THEN + + 58 + + 29 - - - 1 END * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT + CASE 95 WHEN - 90 * - 13 + + MAX ( 95 ) THEN + + 58 + + 29 - - - 1 END * - 59
----
NULL

query I rowsort
SELECT ALL 53 * - 24 + - 38 AS col2
----
-1310

query I rowsort
SELECT DISTINCT - 74 * 7
----
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT DISTINCT + MAX( - - CASE - + 94 WHEN + - 3 THEN NULL WHEN - 6 - + 67 * 25 THEN - 29 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT + MAX ( - - CASE - + 94 WHEN + - 3 THEN NULL WHEN - 6 - + 67 * 25 THEN - 29 END )
----
NULL

query I rowsort
SELECT ALL - CASE - 32 WHEN 0 THEN + 9 / + 7 + - - 33 WHEN + + 48 * + 32 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-481
SELECT + 50 * + 76 * - CASE COUNT( * ) WHEN + 56 THEN NULL WHEN + - 29 * - 45 * + ( 39 ) - - 2 + 52 * + MIN( - + 16 ) / + ( + - CAST( NULL AS DECIMAL ) ) - 45 THEN - COUNT( * ) END + - AVG ( ALL 22 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-481
SELECT + 50 * + 76 * - CASE COUNT ( * ) WHEN + 56 THEN NULL WHEN + - 29 * - 45 * + ( 39 ) - - 2 + 52 * + MIN ( - + 16 ) / + ( + - CAST ( NULL AS REAL ) ) - 45 THEN - COUNT ( * ) END + - AVG ( ALL 22 ) AS col1
----
NULL

query I rowsort
SELECT - + 55 * + 25
----
-1375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-483
SELECT ALL 82 AS col2, COALESCE ( - - 22, 7 ) * - CAST( + CASE - + MAX( DISTINCT - ( + 99 ) ) WHEN + - 87 THEN - 97 / + + SUM( ALL + CAST( NULL AS SIGNED ) ) * 16 * + 9 + - 16 + + 98 END AS DECIMAL )
----
82
NULL

skipif mysql # not compatible
query II rowsort label-483
SELECT ALL 82 AS col2, COALESCE ( - - 22, 7 ) * - CAST ( + CASE - + MAX ( DISTINCT - ( + 99 ) ) WHEN + - 87 THEN - 97 / + + SUM ( ALL + CAST ( NULL AS INTEGER ) ) * 16 * + 9 + - 16 + + 98 END AS REAL )
----
82
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-484
SELECT - + 85 + - CAST( 96 AS SIGNED ) - + COUNT( * ) - + - 15
----
-167

skipif mysql # not compatible
query I rowsort label-484
SELECT - + 85 + - CAST ( 96 AS INTEGER ) - + COUNT ( * ) - + - 15
----
-167

query I rowsort
SELECT - - ( + + 13 ) + + 4 + + 4 * + 7 AS col2
----
45

query II rowsort
SELECT 8 AS col0, - 26 - - - 85 + + + 56 * + CASE 78 WHEN + 57 THEN + - 71 WHEN + 33 THEN NULL END * - + 32 col0
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT DISTINCT NULLIF ( + + SUM( + 7 ), + - ( - 56 ) + - 40 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT NULLIF ( + + SUM ( + 7 ), + - ( - 56 ) + - 40 ) AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-488
SELECT ALL CAST( 47 AS SIGNED ), - 86 + - + 12 AS col1
----
47
-98

skipif mysql # not compatible
query II rowsort label-488
SELECT ALL CAST ( 47 AS INTEGER ), - 86 + - + 12 AS col1
----
47
-98

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-490
SELECT DISTINCT + NULLIF ( + 93, + - 2 - CAST( NULL AS DECIMAL ) ) AS col1, SUM( DISTINCT + + 4 )
----
93
4

skipif mysql # not compatible
query II rowsort label-490
SELECT DISTINCT + NULLIF ( + 93, + - 2 - CAST ( NULL AS REAL ) ) AS col1, SUM ( DISTINCT + + 4 )
----
93
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-491
SELECT DISTINCT MAX( ALL - + 14 ) DIV - - 93 + + + 59 + + 97
----
156

skipif mysql # not compatible
query I rowsort label-491
SELECT DISTINCT MAX ( ALL - + 14 ) / - - 93 + + + 59 + + 97
----
156

query I rowsort
SELECT DISTINCT - 27 * 69
----
-1863

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT + NULLIF ( + - COUNT( * ), + 86 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-493
SELECT + NULLIF ( + - COUNT ( * ), + 86 ) AS col0
----
-1

query I rowsort
SELECT - 6 + - - 84 AS col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-495
SELECT + COUNT( * ) - + - NULLIF ( + 46, COUNT( ALL + CAST( ( + 49 ) AS SIGNED ) ) ), - 43 * + - 83 * + COUNT( * ) AS col0
----
47
3569

skipif mysql # not compatible
query II rowsort label-495
SELECT + COUNT ( * ) - + - NULLIF ( + 46, COUNT ( ALL + CAST ( ( + 49 ) AS INTEGER ) ) ), - 43 * + - 83 * + COUNT ( * ) AS col0
----
47
3569

query I rowsort
SELECT 55 * - + 11 + + 98 AS col0
----
-507

query I rowsort
SELECT + 88 + 61
----
149

query I rowsort
SELECT + NULLIF ( 41, + - 49 * + - ( - 77 ) * + 66 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-499
SELECT ALL + 74 / + + COALESCE ( CAST( NULL AS SIGNED ), 14 - 10 + + 84 / + + COUNT( * ) * - - CAST( NULL AS SIGNED ) * + 43 * + 23 + - NULLIF ( + - 34, - 59 + 62 * - - 30 ) + + 99 * - + 46 - + + COUNT( * ) ) * + COALESCE ( - 87, + COUNT( * ) ) + - 86 / + 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL + 74 / + + COALESCE ( CAST ( NULL AS INTEGER ), 14 - 10 + + 84 / + + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * + 43 * + 23 + - NULLIF ( + - 34, - 59 + 62 * - - 30 ) + + 99 * - + 46 - + + COUNT ( * ) ) * + COALESCE ( - 87, + COUNT ( * ) ) + - 86 / + 81 col2
----
NULL

query I rowsort
SELECT - ( - 53 ) * + 80 + 77 + + 68 + - 0 AS col0
----
4385

onlyif mysql # DIV for integer division: 
query I rowsort label-501
SELECT DISTINCT - 92 DIV 22
----
-4

skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT - 92 / 22
----
-4

onlyif mysql # aggregate syntax: 
query III rowsort label-502
SELECT DISTINCT - ( SUM( DISTINCT - + 40 ) ) + 94 AS col1, 36 AS col2, - ( + 75 ) * + 37 + - - 79 * + - 35
----
134
36
-5540

skipif mysql # not compatible
query III rowsort label-502
SELECT DISTINCT - ( SUM ( DISTINCT - + 40 ) ) + 94 AS col1, 36 AS col2, - ( + 75 ) * + 37 + - - 79 * + - 35
----
134
36
-5540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-503
SELECT DISTINCT 22 * - + COUNT( * ) DIV + 89 col2
----
0

skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT 22 * - + COUNT ( * ) / + 89 col2
----
0

query I rowsort
SELECT ALL 34 + + 71
----
105

query I rowsort
SELECT 66 * + 59 + - 37 + + + 85 * 15 - + ( + 1 ) * + + 53
----
5079

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT - - 93 * - 92 + + SUM( DISTINCT + 16 )
----
-8540

skipif mysql # not compatible
query I rowsort label-506
SELECT - - 93 * - 92 + + SUM ( DISTINCT + 16 )
----
-8540

query I rowsort
SELECT + 32 * 67 AS col0
----
2144

query I rowsort
SELECT + 63 + + ( 16 ) col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT CASE + - 78 WHEN + + 77 THEN NULL WHEN - COUNT( * ) * - - 9 THEN MAX( 97 ) - - 55 - 79 END + + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT CASE + - 78 WHEN + + 77 THEN NULL WHEN - COUNT ( * ) * - - 9 THEN MAX ( 97 ) - - 55 - 79 END + + 57 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-510
SELECT 11 + - 88 DIV CAST( - MIN( + - 26 ) AS SIGNED ) * NULLIF ( + 32, + + 31 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-510
SELECT 11 + - 88 / CAST ( - MIN ( + - 26 ) AS INTEGER ) * NULLIF ( + 32, + + 31 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT ALL - SUM( ALL - 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL - SUM ( ALL - 38 ) AS col1
----
38

query II rowsort
SELECT + NULLIF ( - - 30, - CASE + 53 WHEN - 24 * + 59 + - 54 THEN NULL ELSE + 75 * + 31 END ) + + 73 + 8 + + 83 * - 14 * 80 - 64, - 89 AS col2
----
-92913
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT 44 + + - 86 - + MIN( + - 5 ) * + 93 * - - 47 + + 41 * - COALESCE ( + MAX( DISTINCT + 0 ), + 65 ) + + 32
----
21845

skipif mysql # not compatible
query I rowsort label-513
SELECT 44 + + - 86 - + MIN ( + - 5 ) * + 93 * - - 47 + + 41 * - COALESCE ( + MAX ( DISTINCT + 0 ), + 65 ) + + 32
----
21845

query II rowsort
SELECT - 13 + - 50 AS col2, 66
----
-63
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-515
SELECT DISTINCT + ( CAST( - MAX( DISTINCT - 55 ) AS SIGNED ) ) * - + 20
----
-1100

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT + ( CAST ( - MAX ( DISTINCT - 55 ) AS INTEGER ) ) * - + 20
----
-1100

query I rowsort
SELECT 80 + + 77
----
157

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-518
SELECT + 79 + - CAST( NULL AS SIGNED ) + - 34 - - 90 / 72
----
NULL

skipif mysql # not compatible
query I rowsort label-518
SELECT + 79 + - CAST ( NULL AS INTEGER ) + - 34 - - 90 / 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-519
SELECT DISTINCT - 18 * - 64 AS col0, - ( - + ( ( + 43 ) ) ) * - COALESCE ( - MIN( 64 ), 7, + CAST( - + 27 AS SIGNED ) + 74 ) AS col1
----
1152
2752

skipif mysql # not compatible
query II rowsort label-519
SELECT DISTINCT - 18 * - 64 AS col0, - ( - + ( ( + 43 ) ) ) * - COALESCE ( - MIN ( 64 ), 7, + CAST ( - + 27 AS INTEGER ) + 74 ) AS col1
----
1152
2752

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT DISTINCT 13 + MIN( 60 ) + - 40 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT 13 + MIN ( 60 ) + - 40 AS col1
----
33

query I rowsort
SELECT ALL 72 * - 43 AS col1
----
-3096

onlyif mysql # DIV for integer division: 
query I rowsort label-522
SELECT 21 DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-522
SELECT 21 / 54
----
0

query I rowsort
SELECT ALL - 23 + 61 AS col2
----
38

query I rowsort
SELECT 1 * - 9
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-525
SELECT DISTINCT - 5 + + COUNT( * ) * 32 AS col0, CASE + 22 WHEN - 1 THEN NULL ELSE - 87 * - 12 + 24 END AS col0
----
27
1068

skipif mysql # not compatible
query II rowsort label-525
SELECT DISTINCT - 5 + + COUNT ( * ) * 32 AS col0, CASE + 22 WHEN - 1 THEN NULL ELSE - 87 * - 12 + 24 END AS col0
----
27
1068

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-526
SELECT 14 AS col0, 54 * - + ( - CAST( + + 28 AS SIGNED ) )
----
14
1512

skipif mysql # not compatible
query II rowsort label-526
SELECT 14 AS col0, 54 * - + ( - CAST ( + + 28 AS INTEGER ) )
----
14
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT 27 * + + COUNT( * ) col1
----
27

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

query II rowsort
SELECT DISTINCT - ( - - 60 ) + 9 AS col2, - 4 + 74
----
-51
70

onlyif mysql # DIV for integer division: 
query I rowsort label-529
SELECT 46 DIV 32 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-529
SELECT 46 / 32 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT 17 * - COALESCE ( 65, + 12 * + COUNT( * ) ) * + - 3 + NULLIF ( + COUNT( * ), + + COALESCE ( 75, - 66 - ( - 0 ) ) ) + - ( COUNT( * ) ) * MIN( ALL + 1 ) AS col2
----
3315

skipif mysql # not compatible
query I rowsort label-530
SELECT 17 * - COALESCE ( 65, + 12 * + COUNT ( * ) ) * + - 3 + NULLIF ( + COUNT ( * ), + + COALESCE ( 75, - 66 - ( - 0 ) ) ) + - ( COUNT ( * ) ) * MIN ( ALL + 1 ) AS col2
----
3315

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-531
SELECT ALL + CASE + 63 WHEN + - 92 THEN MAX( + CAST( NULL AS DECIMAL ) ) WHEN - 73 + + - 96 THEN NULL END * + - 9 - + + CASE - + 12 WHEN + - 6 THEN + 59 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL + CASE + 63 WHEN + - 92 THEN MAX ( + CAST ( NULL AS REAL ) ) WHEN - 73 + + - 96 THEN NULL END * + - 9 - + + CASE - + 12 WHEN + - 6 THEN + 59 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-532
SELECT 88 * - NULLIF ( + + 36, - - 25 - + 6 ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-532
SELECT 88 * - NULLIF ( + + 36, - - 25 - + 6 ) - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - - 95, + + 92 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT - - 3 * + + COUNT( * ) - + 68 + - COUNT( * ) + - 40 + - 41 + MAX( + + 13 ) AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-534
SELECT - - 3 * + + COUNT ( * ) - + 68 + - COUNT ( * ) + - 40 + - 41 + MAX ( + + 13 ) AS col2
----
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-535
SELECT - 86 DIV - + 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-535
SELECT - 86 / - + 53 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT + 95 + - COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-536
SELECT + 95 + - COUNT ( * ) AS col2
----
94

query I rowsort
SELECT ALL 69 - - 42 AS col0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-538
SELECT + 52 / - 9 * CAST( NULL AS SIGNED ) col2, COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-538
SELECT + 52 / - 9 * CAST ( NULL AS INTEGER ) col2, COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-539
SELECT DISTINCT + 74 DIV + + MIN( - 45 ) + 5
----
4

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT + 74 / + + MIN ( - 45 ) + 5
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-540
SELECT - - 80 AS col1, - COUNT( * ) + - 89 * - 4
----
80
355

skipif mysql # not compatible
query II rowsort label-540
SELECT - - 80 AS col1, - COUNT ( * ) + - 89 * - 4
----
80
355

query I rowsort
SELECT DISTINCT 14 * + 97 AS col2
----
1358

onlyif mysql # DIV for integer division: 
query I rowsort label-542
SELECT - 18 DIV + 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-542
SELECT - 18 / + 24 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-543
SELECT - 88 DIV ( 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-543
SELECT - 88 / ( 65 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT 28 + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-544
SELECT 28 + COUNT ( * ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT - ( 35 ) * 59 * + ( - ( - MIN( + - 96 ) ) ) * 38 AS col0
----
7533120

skipif mysql # not compatible
query I rowsort label-545
SELECT - ( 35 ) * 59 * + ( - ( - MIN ( + - 96 ) ) ) * 38 AS col0
----
7533120

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

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

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

skipif mysql # not compatible
query I rowsort label-547
SELECT - MAX ( DISTINCT 67 )
----
-67

query II rowsort
SELECT + 68 * - 48 - - + 16 AS col2, 50 * + 94 + 80
----
-3248
4780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-549
SELECT DISTINCT 42 + + MIN( ALL CAST( NULL AS SIGNED ) ) AS col2, NULLIF ( + 85, + - COUNT( - 26 ) * + 34 ) * + 42 + + 25 + + - 60
----
NULL
3535

skipif mysql # not compatible
query II rowsort label-549
SELECT DISTINCT 42 + + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2, NULLIF ( + 85, + - COUNT ( - 26 ) * + 34 ) * + 42 + + 25 + + - 60
----
NULL
3535

query II rowsort
SELECT - 56 AS col1, 1
----
-56
1

query I rowsort
SELECT ALL + 8 + + 83
----
91

query I rowsort
SELECT ALL 60 + - + 96
----
-36

query II rowsort
SELECT 89 AS col1, + 5
----
89
5

onlyif mysql # aggregate syntax: 
query II rowsort label-554
SELECT DISTINCT 65 AS col1, - 8 - - + CASE - ( + 67 ) WHEN + 86 THEN NULL WHEN - + 57 * + + 49 THEN 71 ELSE NULL END + 83 / - 7 * - - 72 + 61 - 54 * + - COUNT( * )
----
65
NULL

skipif mysql # not compatible
query II rowsort label-554
SELECT DISTINCT 65 AS col1, - 8 - - + CASE - ( + 67 ) WHEN + 86 THEN NULL WHEN - + 57 * + + 49 THEN 71 ELSE NULL END + 83 / - 7 * - - 72 + 61 - 54 * + - COUNT ( * )
----
65
NULL

query I rowsort
SELECT 92 + 96
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT - NULLIF ( + 65, + - COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-556
SELECT - NULLIF ( + 65, + - COUNT ( * ) )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-557
SELECT ALL COALESCE ( + 58, + 94 * - + CAST( + 42 AS SIGNED ), 97 DIV 89 + + - COUNT( * ) ) * + COUNT( * ) * - - 24 AS col0
----
1392

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL COALESCE ( + 58, + 94 * - + CAST ( + 42 AS INTEGER ), 97 / 89 + + - COUNT ( * ) ) * + COUNT ( * ) * - - 24 AS col0
----
1392

onlyif mysql # DIV for integer division: 
query I rowsort label-558
SELECT 37 * 67 DIV + - 43
----
-57

skipif mysql # not compatible
query I rowsort label-558
SELECT 37 * 67 / + - 43
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-559
SELECT ALL COALESCE ( - COUNT( * ), - - 15 ) + - 61 * ( - 46 ) DIV - 49 - + + ( + 95 ) * + - 89
----
8397

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL COALESCE ( - COUNT ( * ), - - 15 ) + - 61 * ( - 46 ) / - 49 - + + ( + 95 ) * + - 89
----
8397

query II rowsort
SELECT 75 AS col1, 95 AS col1
----
75
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-561
SELECT 11 + 61 - + 19 DIV + + MIN( - ( + 54 ) ) + + 95 * - 58 * - 56 * + + 76 AS col0
----
23450632

skipif mysql # not compatible
query I rowsort label-561
SELECT 11 + 61 - + 19 / + + MIN ( - ( + 54 ) ) + + 95 * - 58 * - 56 * + + 76 AS col0
----
23450632

query I rowsort
SELECT ALL 94 + - 18
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-563
SELECT DISTINCT + CASE + 28 WHEN - MIN( - 86 ) THEN - 35 / CAST( NULL AS SIGNED ) + + + 14 WHEN + - 12 THEN - - 4 * COUNT( * ) + - 0 + + 89 * 68 END * + + MAX( DISTINCT + - 36 ) - - 20 AS col2, 9 * + + 99 * - 17
----
NULL
-15147

skipif mysql # not compatible
query II rowsort label-563
SELECT DISTINCT + CASE + 28 WHEN - MIN ( - 86 ) THEN - 35 / CAST ( NULL AS INTEGER ) + + + 14 WHEN + - 12 THEN - - 4 * COUNT ( * ) + - 0 + + 89 * 68 END * + + MAX ( DISTINCT + - 36 ) - - 20 AS col2, 9 * + + 99 * - 17
----
NULL
-15147

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT ALL + CASE + 93 WHEN - 37 THEN + 88 - - + COUNT( * ) / + 25 / 0 ELSE 6 END AS col0
----
6

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL + CASE + 93 WHEN - 37 THEN + 88 - - + COUNT ( * ) / + 25 / 0 ELSE 6 END AS col0
----
6

query II rowsort
SELECT ALL + 1, 23 AS col2
----
1
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-566
SELECT + 52 + 18 * + CASE - 64 WHEN + 24 * + 11 * - - COALESCE ( + AVG ( - 25 ), + + 76 * - ( 40 ) + 79 + 88, + COUNT( * ) - - + 85 ) * - 85 + - - 54 THEN NULL ELSE 15 DIV + 4 END * 88 AS col0
----
4804

skipif mysql # not compatible
query I rowsort label-566
SELECT + 52 + 18 * + CASE - 64 WHEN + 24 * + 11 * - - COALESCE ( + AVG ( - 25 ), + + 76 * - ( 40 ) + 79 + 88, + COUNT ( * ) - - + 85 ) * - 85 + - - 54 THEN NULL ELSE 15 / + 4 END * 88 AS col0
----
4804

query I rowsort
SELECT ALL + 58 * + - 78 - - 63
----
-4461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-568
SELECT - 4 * + + 33 * + 91 / 75 * CASE 1 WHEN + + 39 + + - 89 * + 39 / - + ( COUNT( * ) ) + - + 68 THEN + COUNT( DISTINCT + 6 ) ELSE NULL END + - CASE - - 47 WHEN + 65 THEN NULL WHEN - - 89 * 25 / + 37 + - 63 * + - 99 - 10 + + - 38 / + SUM( 80 ) / + - CAST( - + 72 AS SIGNED ) THEN + 13 * - SUM( - 29 ) * 88 WHEN - 90 THEN - 3 * + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-568
SELECT - 4 * + + 33 * + 91 / 75 * CASE 1 WHEN + + 39 + + - 89 * + 39 / - + ( COUNT ( * ) ) + - + 68 THEN + COUNT ( DISTINCT + 6 ) ELSE NULL END + - CASE - - 47 WHEN + 65 THEN NULL WHEN - - 89 * 25 / + 37 + - 63 * + - 99 - 10 + + - 38 / + SUM ( 80 ) / + - CAST ( - + 72 AS INTEGER ) THEN + 13 * - SUM ( - 29 ) * 88 WHEN - 90 THEN - 3 * + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-569
SELECT - 29 DIV + 77 + + - 29 + 10 AS col1, - 17 + 35
----
-19
18

skipif mysql # not compatible
query II rowsort label-569
SELECT - 29 / + 77 + + - 29 + 10 AS col1, - 17 + 35
----
-19
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-570
SELECT - COALESCE ( + CAST( 49 AS SIGNED ), COUNT( * ), 89 ) * - + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-570
SELECT - COALESCE ( + CAST ( 49 AS INTEGER ), COUNT ( * ), 89 ) * - + COUNT ( * )
----
49

query I rowsort
SELECT + 16 + - 22 + - 15 - - - 4
----
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT MIN( + 96 ) * - + ( 7 ) + 1
----
-671

skipif mysql # not compatible
query I rowsort label-573
SELECT MIN ( + 96 ) * - + ( 7 ) + 1
----
-671

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT - 99 - 24 + SUM( ALL - ( 18 ) ) AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-574
SELECT - 99 - 24 + SUM ( ALL - ( 18 ) ) AS col2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT - + COUNT( * ) + + 67 + - - 4 * + MIN( ALL 5 ) col2
----
86

skipif mysql # not compatible
query I rowsort label-575
SELECT - + COUNT ( * ) + + 67 + - - 4 * + MIN ( ALL 5 ) col2
----
86

query III rowsort
SELECT ALL + 84 AS col2, + 57, + 36 AS col1
----
84
57
36

query II rowsort
SELECT DISTINCT + - 1 AS col0, 76 AS col0
----
-1
76

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT - - 50 + 52 * - MAX( ALL - + 21 ) + - 27 - - MAX( DISTINCT + 38 ) - + 4 AS col1
----
1149

skipif mysql # not compatible
query I rowsort label-578
SELECT - - 50 + 52 * - MAX ( ALL - + 21 ) + - 27 - - MAX ( DISTINCT + 38 ) - + 4 AS col1
----
1149

query I rowsort
SELECT DISTINCT + - 25 * + 9 * + 53 AS col2
----
-11925

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT + + ( + MAX( + - 69 ) ) * + 19 AS col2
----
-1311

skipif mysql # not compatible
query I rowsort label-580
SELECT + + ( + MAX ( + - 69 ) ) * + 19 AS col2
----
-1311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-581
SELECT - + COALESCE ( CAST( NULL AS SIGNED ), - 54 + + 56 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-581
SELECT - + COALESCE ( CAST ( NULL AS INTEGER ), - 54 + + 56 ) AS col2
----
-2

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

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT + COUNT ( * ) + + 24 AS col1
----
25

query I rowsort
SELECT ALL 5 + + 44 + 17 + 5 AS col0
----
71

query I rowsort
SELECT ALL + - 70 + 31 AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-585
SELECT ALL - + COUNT( * ) DIV + 23 * 61 * - + 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL - + COUNT ( * ) / + 23 * 61 * - + 15 AS col1
----
0

query I rowsort
SELECT DISTINCT - ( ( - 78 ) )
----
78

query I rowsort
SELECT - - 46 * - 94 + 23 * + 27
----
-3703

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT + 36 + 15 + + + 40 * + COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-588
SELECT + 36 + 15 + + + 40 * + COUNT ( * ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT ALL 18 + + + 15 * NULLIF ( 85, + 62 * - 52 + + 78 * + AVG ( + + 8 ) ) * - COUNT( * ) + - 55
----
-1312

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL 18 + + + 15 * NULLIF ( 85, + 62 * - 52 + + 78 * + AVG ( + + 8 ) ) * - COUNT ( * ) + - 55
----
-1312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-590
SELECT DISTINCT + 5 - + ( 79 ) + NULLIF ( - ( - + 60 ), - + CAST( NULL AS SIGNED ) * - 56 ) + + COUNT( * ) * ( - MIN( DISTINCT 97 ) )
----
-111

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT + 5 - + ( 79 ) + NULLIF ( - ( - + 60 ), - + CAST ( NULL AS INTEGER ) * - 56 ) + + COUNT ( * ) * ( - MIN ( DISTINCT 97 ) )
----
-111

query II rowsort
SELECT ALL ( + - 99 ) - - 13, + 44 AS col1
----
-86
44

query I rowsort
SELECT + ( 14 ) + + 19 AS col0
----
33

query II rowsort
SELECT + CASE + 20 WHEN + 61 THEN NULL WHEN - 50 THEN NULL ELSE + 94 END AS col1, - ( - 40 ) col1
----
94
40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-595
SELECT + 87 DIV - 45 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-595
SELECT + 87 / - 45 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT ALL 98 * NULLIF ( COUNT( * ), + 16 ) * 11 AS col1
----
1078

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL 98 * NULLIF ( COUNT ( * ), + 16 ) * 11 AS col1
----
1078

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT DISTINCT - ( - 53 ) * + COALESCE ( MIN( DISTINCT + - 77 ), - - 18, - 78 ) + 30
----
-4051

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT - ( - 53 ) * + COALESCE ( MIN ( DISTINCT + - 77 ), - - 18, - 78 ) + 30
----
-4051

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-598
SELECT + - 37 + 35 AS col0, 78 + - CAST( 4 AS SIGNED )
----
-2
74

skipif mysql # not compatible
query II rowsort label-598
SELECT + - 37 + 35 AS col0, 78 + - CAST ( 4 AS INTEGER )
----
-2
74

query I rowsort
SELECT DISTINCT + CASE + - 19 WHEN - ( + COALESCE ( + - 48, - 67, - 52 + - - 97 ) ) THEN + 24 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-600
SELECT DISTINCT COUNT( * ) * + 13 AS col1, CAST( NULL AS SIGNED ) * - + 27 AS col2
----
13
NULL

skipif mysql # not compatible
query II rowsort label-600
SELECT DISTINCT COUNT ( * ) * + 13 AS col1, CAST ( NULL AS INTEGER ) * - + 27 AS col2
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT - - MAX( + 18 ) * + + COALESCE ( + 36, + + 75, - - 99 - + + 55 ) * + + 7
----
4536

skipif mysql # not compatible
query I rowsort label-601
SELECT - - MAX ( + 18 ) * + + COALESCE ( + 36, + + 75, - - 99 - + + 55 ) * + + 7
----
4536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-602
SELECT ALL 60 * 25 + - + CASE + 19 WHEN - 54 * COUNT( * ) THEN NULL WHEN + 58 - + 5 + + - 49 + 72 + + 55 THEN CAST( NULL AS SIGNED ) END AS col1, - 84 AS col2
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-602
SELECT ALL 60 * 25 + - + CASE + 19 WHEN - 54 * COUNT ( * ) THEN NULL WHEN + 58 - + 5 + + - 49 + 72 + + 55 THEN CAST ( NULL AS INTEGER ) END AS col1, - 84 AS col2
----
NULL
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT + - 2 DIV 53 * 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-603
SELECT + - 2 / 53 * 80 AS col0
----
0

query I rowsort
SELECT - 79 + 70
----
-9

query I rowsort
SELECT DISTINCT - 86 * + 32 + - 31
----
-2783

query I rowsort
SELECT ALL + CASE + NULLIF ( 21, 56 ) WHEN + ( + 70 ) THEN - 98 WHEN 84 * - ( - 61 ) THEN NULL WHEN - ( - + 96 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-607
SELECT ALL ( - 88 ) * 32 DIV 31 - - CASE + 15 WHEN + ( + 22 ) THEN - + 10 * ( + 93 ) ELSE + - 61 END + COUNT( * ) DIV - 38 + - 29 + - - 50
----
-130

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL ( - 88 ) * 32 / 31 - - CASE + 15 WHEN + ( + 22 ) THEN - + 10 * ( + 93 ) ELSE + - 61 END + COUNT ( * ) / - 38 + - 29 + - - 50
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-608
SELECT DISTINCT + COALESCE ( - 39, MIN( ALL - ( - - 81 ) ), 78 DIV + + 68 - 5 ) * + + 83
----
-3237

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT + COALESCE ( - 39, MIN ( ALL - ( - - 81 ) ), 78 / + + 68 - 5 ) * + + 83
----
-3237

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-609
SELECT ALL + - 5 * - 38 + + ( 2 ) + - 0 AS col2, - CAST( + 79 AS SIGNED ) - + - 54 AS col0
----
192
-25

skipif mysql # not compatible
query II rowsort label-609
SELECT ALL + - 5 * - 38 + + ( 2 ) + - 0 AS col2, - CAST ( + 79 AS INTEGER ) - + - 54 AS col0
----
192
-25

query I rowsort
SELECT - 50 - + 54 * + + 6 + - + 39
----
-413

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT - - MAX( - - 22 ) * + + 78 AS col2
----
1716

skipif mysql # not compatible
query I rowsort label-611
SELECT - - MAX ( - - 22 ) * + + 78 AS col2
----
1716

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT COALESCE ( + 49, - - 18, CASE + COALESCE ( 31, CASE - 19 WHEN + 46 * - 41 DIV + + 74 - + 12 + - 78 * - 51 + - 59 * - 95 DIV - 61 THEN - 80 - ( - + 76 ) * + 15 WHEN + - 64 THEN NULL WHEN + 62 + 45 * + + 59 DIV ( 91 ) THEN + 11 * + 5 END ) WHEN 98 - - - 83 * + 23 THEN NULL ELSE 16 DIV + 6 END ) * 47 - + 35 AS col0
----
2268

skipif mysql # not compatible
query I rowsort label-612
SELECT COALESCE ( + 49, - - 18, CASE + COALESCE ( 31, CASE - 19 WHEN + 46 * - 41 / + + 74 - + 12 + - 78 * - 51 + - 59 * - 95 / - 61 THEN - 80 - ( - + 76 ) * + 15 WHEN + - 64 THEN NULL WHEN + 62 + 45 * + + 59 / ( 91 ) THEN + 11 * + 5 END ) WHEN 98 - - - 83 * + 23 THEN NULL ELSE 16 / + 6 END ) * 47 - + 35 AS col0
----
2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-613
SELECT DISTINCT + 39 * + CAST( NULL AS SIGNED ) + ( 33 ) + 16 * + + 30 * - + 18 * MAX( + - 30 ) * - ( 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-613
SELECT DISTINCT + 39 * + CAST ( NULL AS INTEGER ) + ( 33 ) + 16 * + + 30 * - + 18 * MAX ( + - 30 ) * - ( 33 ) AS col0
----
NULL

query II rowsort
SELECT - - ( - 29 ) AS col2, - 32 * + + NULLIF ( + - 41, - + 14 ) AS col0
----
-29
1312

onlyif mysql # aggregate syntax: 
query II rowsort label-615
SELECT ALL - 6 * - 78 - + COUNT( * ) * + 70 * + - 80, 57 AS col1
----
6068
57

skipif mysql # not compatible
query II rowsort label-615
SELECT ALL - 6 * - 78 - + COUNT ( * ) * + 70 * + - 80, 57 AS col1
----
6068
57

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-616
SELECT - - 0 * - CAST( NULL AS DECIMAL ) + - + 52 col2, - 11 - + 65 + + 63 AS col1
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-616
SELECT - - 0 * - CAST ( NULL AS REAL ) + - + 52 col2, - 11 - + 65 + + 63 AS col1
----
NULL
-13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-617
SELECT ALL CAST( NULL AS DECIMAL ) AS col2, - ( + - MIN( DISTINCT ( - 67 ) ) ) - + + 51 AS col0
----
NULL
-118

skipif mysql # not compatible
query II rowsort label-617
SELECT ALL CAST ( NULL AS REAL ) AS col2, - ( + - MIN ( DISTINCT ( - 67 ) ) ) - + + 51 AS col0
----
NULL
-118

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

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

query II rowsort
SELECT ALL 70 col1, 89 * 29
----
70
2581

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT DISTINCT - COUNT( * ) - - 2 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-620
SELECT DISTINCT - COUNT ( * ) - - 2 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-621
SELECT 30 * - CASE 16 WHEN 53 THEN 43 WHEN - COUNT( * ) + + ( - 64 ) THEN 17 WHEN - 46 + CASE - COUNT( * ) WHEN + 37 + - 65 THEN + 4 END + 97 / CAST( NULL AS SIGNED ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT 30 * - CASE 16 WHEN 53 THEN 43 WHEN - COUNT ( * ) + + ( - 64 ) THEN 17 WHEN - 46 + CASE - COUNT ( * ) WHEN + 37 + - 65 THEN + 4 END + 97 / CAST ( NULL AS INTEGER ) THEN NULL END col1
----
NULL

query I rowsort
SELECT ALL 65 * + 6
----
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-623
SELECT 17 + - CAST( NULL AS SIGNED ) + - - 81 + + 54 / - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-623
SELECT 17 + - CAST ( NULL AS INTEGER ) + - - 81 + + 54 / - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT 56 * MIN( ALL 56 )
----
3136

skipif mysql # not compatible
query I rowsort label-624
SELECT 56 * MIN ( ALL 56 )
----
3136

query I rowsort
SELECT ALL - 29 * + 54
----
-1566

query I rowsort
SELECT 26 + + 84
----
110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT COUNT( * ) + - ( - 75 ) + 58 + - + ( - ( - 91 ) ) col2
----
43

skipif mysql # not compatible
query I rowsort label-628
SELECT COUNT ( * ) + - ( - 75 ) + 58 + - + ( - ( - 91 ) ) col2
----
43

query I rowsort
SELECT ALL 5 * - - 29 AS col0
----
145

query II rowsort
SELECT ALL 46 AS col0, - 14 * + 21 - 99
----
46
-393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-631
SELECT DISTINCT + COUNT( + 63 ) * - COALESCE ( + 37, - COUNT( * ) * + 33 * + - 17 * + + COUNT( * ) - + 45, - ( 47 ) * - CAST( NULL AS DECIMAL ) + - 85 ) - - CAST( NULL AS SIGNED ) - + CASE + 37 WHEN ( - 60 ) + 29 THEN NULL WHEN + 60 * + MIN( - 41 ) * - - CAST( + COUNT( * ) AS SIGNED ) * + - ( + 93 ) + 90 - - COUNT( * ) + - ( COUNT( * ) ) * 21 * + CASE - MAX( DISTINCT 39 ) WHEN + COUNT( * ) THEN NULL ELSE + 75 END THEN NULL WHEN 55 THEN + 54 ELSE 82 * 18 - 50 END * - 43 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT + COUNT ( + 63 ) * - COALESCE ( + 37, - COUNT ( * ) * + 33 * + - 17 * + + COUNT ( * ) - + 45, - ( 47 ) * - CAST ( NULL AS REAL ) + - 85 ) - - CAST ( NULL AS INTEGER ) - + CASE + 37 WHEN ( - 60 ) + 29 THEN NULL WHEN + 60 * + MIN ( - 41 ) * - - CAST ( + COUNT ( * ) AS INTEGER ) * + - ( + 93 ) + 90 - - COUNT ( * ) + - ( COUNT ( * ) ) * 21 * + CASE - MAX ( DISTINCT 39 ) WHEN + COUNT ( * ) THEN NULL ELSE + 75 END THEN NULL WHEN 55 THEN + 54 ELSE 82 * 18 - 50 END * - 43 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-632
SELECT DISTINCT 50, NULLIF ( - + COUNT( * ), - 59 ) AS col2
----
50
-1

skipif mysql # not compatible
query II rowsort label-632
SELECT DISTINCT 50, NULLIF ( - + COUNT ( * ), - 59 ) AS col2
----
50
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-633
SELECT ALL - + 58 AS col2, 5 + + SUM( 35 ) AS col1
----
-58
40

skipif mysql # not compatible
query II rowsort label-633
SELECT ALL - + 58 AS col2, 5 + + SUM ( 35 ) AS col1
----
-58
40

query II rowsort
SELECT + 50 AS col2, 48 + 8
----
50
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-635
SELECT DISTINCT 97 + - COUNT( * ) * + 12 * - CAST( + COUNT( * ) AS SIGNED ) * - 8 - + MAX( - 79 ) + + - 36 * - 57
----
2132

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT 97 + - COUNT ( * ) * + 12 * - CAST ( + COUNT ( * ) AS INTEGER ) * - 8 - + MAX ( - 79 ) + + - 36 * - 57
----
2132

query I rowsort
SELECT ALL + 28 + - - 0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-637
SELECT + 0 DIV + 92 * 71 + + - 35 + - NULLIF ( - COUNT( * ), + 69 )
----
-34

skipif mysql # not compatible
query I rowsort label-637
SELECT + 0 / + 92 * 71 + + - 35 + - NULLIF ( - COUNT ( * ), + 69 )
----
-34

query I rowsort
SELECT ALL - 53 + - - 87 AS col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-639
SELECT COUNT( * ) + + 81 * + - 37 + + - 48 + - ( + + 28 ) * - COUNT( * ) + + + 42 + + 53 + COALESCE ( + 64, - 23 + MAX( 64 ) * - CAST( NULL AS SIGNED ) ) + - - 63 AS col0
----
-2794

skipif mysql # not compatible
query I rowsort label-639
SELECT COUNT ( * ) + + 81 * + - 37 + + - 48 + - ( + + 28 ) * - COUNT ( * ) + + + 42 + + 53 + COALESCE ( + 64, - 23 + MAX ( 64 ) * - CAST ( NULL AS INTEGER ) ) + - - 63 AS col0
----
-2794

onlyif mysql # DIV for integer division: 
query I rowsort label-640
SELECT + + 61 DIV - 52 + - - 89 * + 14 - + 20 * - 76 * + + ( + 54 ) * + 19 * - - 25 AS col2
----
38989245

skipif mysql # not compatible
query I rowsort label-640
SELECT + + 61 / - 52 + - - 89 * + 14 - + 20 * - 76 * + + ( + 54 ) * + 19 * - - 25 AS col2
----
38989245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-641
SELECT + CAST( NULL AS SIGNED ) * - + 62 * - 92 * - 43 * 43 + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-641
SELECT + CAST ( NULL AS INTEGER ) * - + 62 * - 92 * - 43 * 43 + + 40 AS col0
----
NULL

query II rowsort
SELECT 24 + - 45 * - - 83, 83 AS col2
----
-3711
83

query I rowsort
SELECT ALL 38 * - 85 + - 98
----
-3328

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL - COUNT( ALL - + 41 ) + - 12
----
-13

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL - COUNT ( ALL - + 41 ) + - 12
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-645
SELECT DISTINCT - COALESCE ( - CASE 23 WHEN - + COUNT( * ) + ( + 19 ) / + + 70 THEN - + 61 END, 63, CASE MAX( + - 18 ) WHEN - COUNT( * ) + - COUNT( * ) THEN 13 WHEN - 28 * - 22 / 38 * - 65 * + - 17 + ( - CAST( NULL AS SIGNED ) ) THEN NULL ELSE - CAST( NULL AS SIGNED ) END * + ( 98 ) ) + 78 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT - COALESCE ( - CASE 23 WHEN - + COUNT ( * ) + ( + 19 ) / + + 70 THEN - + 61 END, 63, CASE MAX ( + - 18 ) WHEN - COUNT ( * ) + - COUNT ( * ) THEN 13 WHEN - 28 * - 22 / 38 * - 65 * + - 17 + ( - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) END * + ( 98 ) ) + 78 AS col1
----
15

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

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

query I rowsort
SELECT ALL + 70 + + 79
----
149

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

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

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

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

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

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

query II rowsort
SELECT 87, 73 * - 11 * 38 * COALESCE ( + 10, 62 ) AS col0
----
87
-305140

query I rowsort
SELECT ALL 27 + - + 58 + - + 14 * + 78 AS col0
----
-1123

onlyif mysql # DIV for integer division: 
query I rowsort label-653
SELECT ALL - 52 + + 46 + + 91 - + + 15 DIV + 93 * + 87 * - 45
----
85

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL - 52 + + 46 + + 91 - + + 15 / + 93 * + 87 * - 45
----
85

query I rowsort
SELECT + 70 * - 22
----
-1540

query I rowsort
SELECT - 7 * 80 + - ( + + COALESCE ( - - 3, - CASE 1 WHEN 64 + 15 THEN NULL WHEN - 89 THEN + - 97 END ) ) col2
----
-563

query I rowsort
SELECT + 14 * - - 74 AS col0
----
1036

query II rowsort
SELECT ALL - - 54 AS col0, ( - 98 )
----
54
-98

query III rowsort
SELECT - 98 + + 53 * - 64 AS col1, + 7 AS col2, + - 34
----
-3490
7
-34

query I rowsort
SELECT DISTINCT 48 - 8 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL - ( - + 80 ) * COUNT( DISTINCT - 2 )
----
80

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL - ( - + 80 ) * COUNT ( DISTINCT - 2 )
----
80

query II rowsort
SELECT ALL + 87 - 33, 8 - 93 AS col1
----
54
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-662
SELECT 52 * - 39 AS col2, COUNT( * ) + - 42 + - MAX( ALL - 50 ) + + 77 AS col2
----
-2028
86

skipif mysql # not compatible
query II rowsort label-662
SELECT 52 * - 39 AS col2, COUNT ( * ) + - 42 + - MAX ( ALL - 50 ) + + 77 AS col2
----
-2028
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-663
SELECT - MAX( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT - MAX ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 62 + 59
----
121

query I rowsort
SELECT 65 * + + 60 AS col0
----
3900

query I rowsort
SELECT 71 + - + 80 * 57
----
-4489

onlyif mysql # DIV for integer division: 
query I rowsort label-667
SELECT 42 DIV + 19 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-667
SELECT 42 / + 19 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-668
SELECT ALL - 98 DIV - - MAX( + 22 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL - 98 / - - MAX ( + 22 ) AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-669
SELECT 45 DIV ( - 51 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-669
SELECT 45 / ( - 51 ) AS col0
----
0

query I rowsort
SELECT 80 * CASE - 38 WHEN 61 + - - 42 + - 32 + 55 * - 96 THEN + + 51 END
----
NULL

query I rowsort
SELECT - 55 * + 48 AS col1
----
-2640

query I rowsort
SELECT + 30 * + - 79 AS col0
----
-2370

query I rowsort
SELECT DISTINCT + 24 + 10 col1
----
34

query I rowsort
SELECT ALL - 66 * - + 38 - + + 66 * - 47
----
5610

query I rowsort
SELECT + NULLIF ( - 46, - - 43 )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-676
SELECT 49 DIV - 18 + + 14 + CASE - 72 WHEN 94 + - 5 + + ( - + ( - COUNT( * ) ) ) + - + SUM( - 95 ) DIV - 63 * + 25 THEN + 98 + 87 WHEN 32 + + + ( 53 ) THEN NULL END AS col2, 18 DIV + COUNT( * ) AS col1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-676
SELECT 49 / - 18 + + 14 + CASE - 72 WHEN 94 + - 5 + + ( - + ( - COUNT ( * ) ) ) + - + SUM ( - 95 ) / - 63 * + 25 THEN + 98 + 87 WHEN 32 + + + ( 53 ) THEN NULL END AS col2, 18 / + COUNT ( * ) AS col1
----
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT + - CASE WHEN - COALESCE ( - 37, + 96 ) > 41 / - COUNT( DISTINCT - 97 ) THEN - 52 * 66 + - + 62 ELSE NULL END AS col1
----
3494

skipif mysql # not compatible
query I rowsort label-677
SELECT + - CASE WHEN - COALESCE ( - 37, + 96 ) > 41 / - COUNT ( DISTINCT - 97 ) THEN - 52 * 66 + - + 62 ELSE NULL END AS col1
----
3494

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT ALL 89 * + 18 + - COUNT( + - 52 )
----
1601

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL 89 * + 18 + - COUNT ( + - 52 )
----
1601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-679
SELECT ALL + 35 * + 7 + - COUNT( * ) DIV 64 + - 58 + + 19 AS col1
----
206

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL + 35 * + 7 + - COUNT ( * ) / 64 + - 58 + + 19 AS col1
----
206

query I rowsort
SELECT + + ( + NULLIF ( 34, 64 ) ) AS col0
----
34

query II rowsort
SELECT 51 + - 33 * + ( + 70 ) + + 72 * 84 * + 51 AS col1, 38 * + 80 col1
----
306189
3040

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT 41 * + SUM( DISTINCT 16 ) - COUNT( * )
----
655

skipif mysql # not compatible
query I rowsort label-682
SELECT 41 * + SUM ( DISTINCT 16 ) - COUNT ( * )
----
655

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

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL ( - COUNT ( * ) ) / 67
----
0

query I rowsort
SELECT + + 34 * - 13
----
-442

query I rowsort
SELECT + 36 - 44
----
-8

query II rowsort
SELECT ALL + 1, 60 + - - 28 - - 50 AS col0
----
1
138

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT + COUNT( * ) * - - 47 * - 63
----
-2961

skipif mysql # not compatible
query I rowsort label-687
SELECT + COUNT ( * ) * - - 47 * - 63
----
-2961

query I rowsort
SELECT + 0 * - 68 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT - CASE + 95 WHEN - + 24 THEN + + 10 WHEN + COUNT( * ) THEN NULL WHEN + - 72 * COUNT( * ) THEN - + 14 * - - 31 END / + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-689
SELECT - CASE + 95 WHEN - + 24 THEN + + 10 WHEN + COUNT ( * ) THEN NULL WHEN + - 72 * COUNT ( * ) THEN - + 14 * - - 31 END / + 48
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-690
SELECT ALL 88 DIV + 93 * + + MAX( + 11 ) * - 94
----
0

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL 88 / + 93 * + + MAX ( + 11 ) * - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT + SUM( ALL + + 72 ) * + - 0 + + 13
----
13

skipif mysql # not compatible
query I rowsort label-691
SELECT + SUM ( ALL + + 72 ) * + - 0 + + 13
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-692
SELECT - ( CAST( - - COUNT( * ) AS SIGNED ) ) * - MIN( - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-692
SELECT - ( CAST ( - - COUNT ( * ) AS INTEGER ) ) * - MIN ( - 6 )
----
-6

query I rowsort
SELECT + 70 * ( - 43 ) * - + 93
----
279930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-694
SELECT + 88 - - COUNT( * ) DIV - + 93 DIV + SUM( ALL + 46 )
----
88

skipif mysql # not compatible
query I rowsort label-694
SELECT + 88 - - COUNT ( * ) / - + 93 / + SUM ( ALL + 46 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-695
SELECT - COUNT( * ) * - CAST( COALESCE ( + + 3, + 51 * - NULLIF ( - 88, ( + + 0 ) + + - 79 ) - + - 27 - 20 ) AS SIGNED ) * + - ( - 36 ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-695
SELECT - COUNT ( * ) * - CAST ( COALESCE ( + + 3, + 51 * - NULLIF ( - 88, ( + + 0 ) + + - 79 ) - + - 27 - 20 ) AS INTEGER ) * + - ( - 36 ) AS col2
----
108

query I rowsort
SELECT ALL 46 + - 53 col1
----
-7

query I rowsort
SELECT + 28 + 41
----
69

query I rowsort
SELECT - NULLIF ( + CASE 29 WHEN + + 80 THEN 5 END, - 19 * + 81 ) - + - 89 AS col1
----
NULL

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

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

query I rowsort
SELECT + 67 + + 86 AS col2
----
153

query I rowsort
SELECT ALL + + 41 + + - 87 + + - 36 * + 90 AS col0
----
-3286

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

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

query I rowsort
SELECT - - 65 + - + 33 AS col0
----
32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT - - COALESCE ( + 25, - - 86 ) * ( COUNT( * ) ) + 26
----
51

skipif mysql # not compatible
query I rowsort label-705
SELECT - - COALESCE ( + 25, - - 86 ) * ( COUNT ( * ) ) + 26
----
51

query I rowsort
SELECT - 25 * - + 25
----
625

onlyif mysql # DIV for integer division: 
query I rowsort label-707
SELECT 15 DIV - 53 + 73 + - 16 + + 53 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-707
SELECT 15 / - 53 + 73 + - 16 + + 53 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT ALL - 44 * - 10 - + + COUNT( + - 70 ) AS col1
----
439

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL - 44 * - 10 - + + COUNT ( + - 70 ) AS col1
----
439

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-709
SELECT - 57 DIV + 19 + + 41 + + + 56 - + 11 + ( 68 ) - 88 * COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-709
SELECT - 57 / + 19 + + 41 + + + 56 - + 11 + ( 68 ) - 88 * COUNT ( * )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-710
SELECT ALL + 18 * CAST( NULL AS SIGNED ) * 16 * + - COUNT( * ) + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL + 18 * CAST ( NULL AS INTEGER ) * 16 * + - COUNT ( * ) + + 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT + CASE + 41 WHEN + - 23 * - + 88 THEN NULL WHEN MAX( ALL - 14 ) THEN + 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-711
SELECT + CASE + 41 WHEN + - 23 * - + 88 THEN NULL WHEN MAX ( ALL - 14 ) THEN + 85 END
----
NULL

query I rowsort
SELECT ALL - 27 * 21 AS col1
----
-567

query I rowsort
SELECT DISTINCT + - 94 * 49 + - 31 * - 85
----
-1971

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT + MAX( DISTINCT - 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-714
SELECT + MAX ( DISTINCT - 72 ) AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-715
SELECT ALL + CASE - 91 WHEN - CAST( + - 3 AS SIGNED ) * 15 / - 94 + CASE + CAST( NULL AS SIGNED ) WHEN + + 79 * + COUNT( * ) + + 49 THEN - 8 * + 32 WHEN + 87 THEN NULL END + - 66 + + MAX( - 84 ) THEN + 32 ELSE NULL END * - 75 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL + CASE - 91 WHEN - CAST ( + - 3 AS INTEGER ) * 15 / - 94 + CASE + CAST ( NULL AS INTEGER ) WHEN + + 79 * + COUNT ( * ) + + 49 THEN - 8 * + 32 WHEN + 87 THEN NULL END + - 66 + + MAX ( - 84 ) THEN + 32 ELSE NULL END * - 75 * 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT CASE + 2 WHEN 28 THEN NULL WHEN COALESCE ( - + ( - + 61 ), + COUNT( * ) ) * + + 1 THEN + 83 * - + COUNT( ALL 58 ) * + 43 + - ( + 16 ) - 43 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-716
SELECT CASE + 2 WHEN 28 THEN NULL WHEN COALESCE ( - + ( - + 61 ), + COUNT ( * ) ) * + + 1 THEN + 83 * - + COUNT ( ALL 58 ) * + 43 + - ( + 16 ) - 43 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 88 col0, - 47 * + 39 + + 96
----
88
-1737

query I rowsort
SELECT - 72 * - - 6 * - + 28 + + + 98
----
12194

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

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

query I rowsort
SELECT - 94 + + 96 col2
----
2

query II rowsort
SELECT DISTINCT + 78, - ( - + 57 ) col0
----
78
57

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT + SUM( + 38 ) + - 49 + + 52
----
41

skipif mysql # not compatible
query I rowsort label-722
SELECT + SUM ( + 38 ) + - 49 + + 52
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT - COALESCE ( - 91, - + 78 + COUNT( * ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-723
SELECT - COALESCE ( - 91, - + 78 + COUNT ( * ) ) AS col1
----
91

query I rowsort
SELECT DISTINCT - 29 * 53 + + 82 + 34
----
-1421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-725
SELECT ALL COALESCE ( - 15, 49, + - 49 ) * + - 12 + - 57 - ( + CAST( NULL AS SIGNED ) ) - + 83 * 9 * + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL COALESCE ( - 15, 49, + - 49 ) * + - 12 + - 57 - ( + CAST ( NULL AS INTEGER ) ) - + 83 * 9 * + 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT + COUNT( * ) + + COALESCE ( - + 11, 7, - - 13 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-726
SELECT + COUNT ( * ) + + COALESCE ( - + 11, 7, - - 13 ) AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-727
SELECT - COALESCE ( 85, + 6 * + NULLIF ( 86, - 37 + - + COALESCE ( - 63, + NULLIF ( + 75, + ( 14 ) + + COALESCE ( - 19, - 58 ) - 76 * - 9 - - CAST( CAST( + 26 AS SIGNED ) AS SIGNED ) - + + ( + + 15 ) DIV + - 18 DIV - 50 + - 73 DIV - - 13 + + 91 DIV 61 ) + 82 DIV + 81 * - + 37 DIV - CAST( NULL AS SIGNED ), - 46 ) + - 71 * + 19 ) + - CASE 16 WHEN 34 THEN + 33 END * ( CASE COUNT( * ) WHEN 79 * 90 THEN - 97 DIV COUNT( * ) + NULLIF ( + 30 - 24, 1 ) END ) + + 51 DIV 74, 57 )
----
-85

skipif mysql # not compatible
query I rowsort label-727
SELECT - COALESCE ( 85, + 6 * + NULLIF ( 86, - 37 + - + COALESCE ( - 63, + NULLIF ( + 75, + ( 14 ) + + COALESCE ( - 19, - 58 ) - 76 * - 9 - - CAST ( CAST ( + 26 AS INTEGER ) AS INTEGER ) - + + ( + + 15 ) / + - 18 / - 50 + - 73 / - - 13 + + 91 / 61 ) + 82 / + 81 * - + 37 / - CAST ( NULL AS INTEGER ), - 46 ) + - 71 * + 19 ) + - CASE 16 WHEN 34 THEN + 33 END * ( CASE COUNT ( * ) WHEN 79 * 90 THEN - 97 / COUNT ( * ) + NULLIF ( + 30 - 24, 1 ) END ) + + 51 / 74, 57 )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-728
SELECT - CAST( + + 44 AS SIGNED ) AS col2, ( + 74 )
----
-44
74

skipif mysql # not compatible
query II rowsort label-728
SELECT - CAST ( + + 44 AS INTEGER ) AS col2, ( + 74 )
----
-44
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-729
SELECT + 10 + - 17 DIV 43 * ( + 97 ) * + CAST( - + 28 AS SIGNED ) - + 57 * 22
----
-1244

skipif mysql # not compatible
query I rowsort label-729
SELECT + 10 + - 17 / 43 * ( + 97 ) * + CAST ( - + 28 AS INTEGER ) - + 57 * 22
----
-1244

query II rowsort
SELECT 64 col2, 34 AS col0
----
64
34

query I rowsort
SELECT + 86 + - 15 col0
----
71

query I rowsort
SELECT ALL 92 + + - 11 + 36 * ( + 19 )
----
765

onlyif mysql # aggregate syntax: 
query III rowsort label-733
SELECT + 91, 87 col0, - MIN( 35 ) AS col2
----
91
87
-35

skipif mysql # not compatible
query III rowsort label-733
SELECT + 91, 87 col0, - MIN ( 35 ) AS col2
----
91
87
-35

query II rowsort
SELECT + 8, + 48 * - - 12 AS col2
----
8
576

query I rowsort
SELECT ALL 4 + ( + 18 )
----
22

query I rowsort
SELECT DISTINCT + 47 - + + 6 - + - 59 + - 84 + - 14 AS col2
----
2

query I rowsort
SELECT DISTINCT + 66 - + 94 * + - 36 * + - 82 + - 31
----
-277453

query I rowsort
SELECT - ( + 94 ) col2
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-739
SELECT + - NULLIF ( 50, COUNT( * ) + + - 20 + + ( - 88 ) ) - + + 80 * + - 12 + + ( - + 22 ) DIV - 72 - + 1 * - 26
----
936

skipif mysql # not compatible
query I rowsort label-739
SELECT + - NULLIF ( 50, COUNT ( * ) + + - 20 + + ( - 88 ) ) - + + 80 * + - 12 + + ( - + 22 ) / - 72 - + 1 * - 26
----
936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-740
SELECT - + COALESCE ( + - 7, - CAST( + 82 AS SIGNED ) + - COALESCE ( - - COUNT( * ), + SUM( 97 ), 64 ) + + COUNT( * ) + + COUNT( * ) + 99 * - + COUNT( * ) * + SUM( ALL - - 95 ), + 91 * - COUNT( * ) + + COUNT( * ) * + + 12 ) col2
----
7

skipif mysql # not compatible
query I rowsort label-740
SELECT - + COALESCE ( + - 7, - CAST ( + 82 AS INTEGER ) + - COALESCE ( - - COUNT ( * ), + SUM ( 97 ), 64 ) + + COUNT ( * ) + + COUNT ( * ) + 99 * - + COUNT ( * ) * + SUM ( ALL - - 95 ), + 91 * - COUNT ( * ) + + COUNT ( * ) * + + 12 ) col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-741
SELECT + 98 AS col0, + MIN( - + 13 ) - - 54
----
98
41

skipif mysql # not compatible
query II rowsort label-741
SELECT + 98 AS col0, + MIN ( - + 13 ) - - 54
----
98
41

query I rowsort
SELECT 11 * + - 97 * - 1 * 47 * NULLIF ( + 82, + 93 ) * 12 AS col0
----
49346616

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT ALL SUM( 13 ) * 51
----
663

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL SUM ( 13 ) * 51
----
663

query II rowsort
SELECT DISTINCT - 29, 22 AS col1
----
-29
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-745
SELECT DISTINCT - 17 AS col1, - COUNT( * ) DIV 32 - + 88
----
-17
-88

skipif mysql # not compatible
query II rowsort label-745
SELECT DISTINCT - 17 AS col1, - COUNT ( * ) / 32 - + 88
----
-17
-88

query II rowsort
SELECT DISTINCT - + 82 AS col0, - 19 + + - 96 AS col1
----
-82
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT ALL + + 21 / 12 * - CASE - + 62 WHEN - 6 / - 40 THEN + - 11 + - - 39 + + 6 + + - COUNT( * ) * - - 31 * 29 / 66 WHEN + 86 * + COUNT( * ) + - - 25 + - 3 + MIN( + - 32 ) THEN NULL END / - 92 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL + + 21 / 12 * - CASE - + 62 WHEN - 6 / - 40 THEN + - 11 + - - 39 + + 6 + + - COUNT ( * ) * - - 31 * 29 / 66 WHEN + 86 * + COUNT ( * ) + - - 25 + - 3 + MIN ( + - 32 ) THEN NULL END / - 92 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT DISTINCT - 90 * - COUNT( * ) col1
----
90

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT - 90 * - COUNT ( * ) col1
----
90

query I rowsort
SELECT 37 * - + 0
----
0

query I rowsort
SELECT 74 * + 55 + + 47 * + - 91
----
-207

onlyif mysql # DIV for integer division: 
query I rowsort label-752
SELECT 56 DIV + 41 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-752
SELECT 56 / + 41 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-753
SELECT ALL - 1 DIV + - 46
----
0

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL - 1 / + - 46
----
0

query II rowsort
SELECT 36 * - - 31, 53 AS col0
----
1116
53

query I rowsort
SELECT DISTINCT + 29 + + 68 AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-756
SELECT ALL - 74 * + + COUNT( + 67 ) * + 71 + - + 2 AS col1, COUNT( * ) AS col2
----
-5256
1

skipif mysql # not compatible
query II rowsort label-756
SELECT ALL - 74 * + + COUNT ( + 67 ) * + 71 + - + 2 AS col1, COUNT ( * ) AS col2
----
-5256
1

query I rowsort
SELECT ALL - ( - + 73 ) + + 50 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT ALL + 11 + NULLIF ( + + COUNT( - + 7 ), + 55 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL + 11 + NULLIF ( + + COUNT ( - + 7 ), + 55 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT ALL + 2 + 82 + + MAX( - - 54 ) * 69 * + + COUNT( * ) AS col0
----
3810

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL + 2 + 82 + + MAX ( - - 54 ) * 69 * + + COUNT ( * ) AS col0
----
3810

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT DISTINCT COUNT( - 81 ) + - 8 * - + 70 - + - 8 - - 89 * + MAX( + + ( - 77 ) ) - 26 AS col1
----
-6310

skipif mysql # not compatible
query I rowsort label-761
SELECT DISTINCT COUNT ( - 81 ) + - 8 * - + 70 - + - 8 - - 89 * + MAX ( + + ( - 77 ) ) - 26 AS col1
----
-6310

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT CASE 59 WHEN - 78 THEN + COUNT( * ) END * + - 38 + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT CASE 59 WHEN - 78 THEN + COUNT ( * ) END * + - 38 + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-764
SELECT ( - - 34 ) * ( + + ( NULLIF ( - 38, COUNT( * ) ) ) ) DIV - 67 + + 86
----
105

skipif mysql # not compatible
query I rowsort label-764
SELECT ( - - 34 ) * ( + + ( NULLIF ( - 38, COUNT ( * ) ) ) ) / - 67 + + 86
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT 86 - + 43 + COUNT( * ) * - ( 83 ) * - ( + + 67 ) + + + COUNT( * ) AS col2
----
5605

skipif mysql # not compatible
query I rowsort label-765
SELECT 86 - + 43 + COUNT ( * ) * - ( 83 ) * - ( + + 67 ) + + + COUNT ( * ) AS col2
----
5605

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT 47 * - 53 - + MAX( ALL + - 20 ) + 99
----
-2372

skipif mysql # not compatible
query I rowsort label-766
SELECT 47 * - 53 - + MAX ( ALL + - 20 ) + 99
----
-2372

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT ALL 2 * + 91 + 98 * + CASE COUNT( * ) WHEN 49 * + - 3 THEN + 46 WHEN + 83 THEN - MIN( DISTINCT + 81 ) * + 67 + 36 END + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL 2 * + 91 + 98 * + CASE COUNT ( * ) WHEN 49 * + - 3 THEN + 46 WHEN + 83 THEN - MIN ( DISTINCT + 81 ) * + 67 + 36 END + + - COUNT ( * )
----
NULL

query II rowsort
SELECT 78 - - 40 AS col2, - 24 * + 79
----
118
-1896

query I rowsort
SELECT ALL - - 57 - + + ( - 55 )
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT ALL + COUNT( * ) - MAX( DISTINCT + - 7 ) + 12 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL + COUNT ( * ) - MAX ( DISTINCT + - 7 ) + 12 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT 26 * + MIN( 19 ) * + - 1 - + + 96
----
-590

skipif mysql # not compatible
query I rowsort label-771
SELECT 26 * + MIN ( 19 ) * + - 1 - + + 96
----
-590

query I rowsort
SELECT - COALESCE ( - 60, 8 )
----
60

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

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

query I rowsort
SELECT 3 + 94 * 9 AS col2
----
849

query I rowsort
SELECT 47 - - 68 col1
----
115

query I rowsort
SELECT - AVG ( DISTINCT + COALESCE ( - 70, 94 + - 41 ) ) + - 26 + - 6 + - 87 * + - 1 * - - CASE + + 1 WHEN 49 THEN + 44 ELSE NULL END + + 85 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-777
SELECT ALL COUNT( * ) DIV - 47 + + COUNT( ALL - 60 ) * - 25, + COUNT( * ) + + COUNT( * ) + COUNT( * ) * + CAST( NULL AS SIGNED ) DIV 51 * + CAST( NULL AS SIGNED ) * + 47 * + - 85 * + + 89 DIV - 10 + 23 AS col2
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-777
SELECT ALL COUNT ( * ) / - 47 + + COUNT ( ALL - 60 ) * - 25, + COUNT ( * ) + + COUNT ( * ) + COUNT ( * ) * + CAST ( NULL AS INTEGER ) / 51 * + CAST ( NULL AS INTEGER ) * + 47 * + - 85 * + + 89 / - 10 + 23 AS col2
----
-25
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-778
SELECT - 74 / + - 19 - - 86 + - 39 * + 82 * - - CASE - + 76 WHEN + 25 THEN + - 38 * - 93 + + + CAST( NULL AS SIGNED ) + COUNT( * ) / - 4 * - CAST( 64 AS SIGNED ) WHEN + + 54 THEN + - 2 / + ( + CAST( NULL AS SIGNED ) ) END + + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-778
SELECT - 74 / + - 19 - - 86 + - 39 * + 82 * - - CASE - + 76 WHEN + 25 THEN + - 38 * - 93 + + + CAST ( NULL AS INTEGER ) + COUNT ( * ) / - 4 * - CAST ( 64 AS INTEGER ) WHEN + + 54 THEN + - 2 / + ( + CAST ( NULL AS INTEGER ) ) END + + 3 AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + - 68, 50 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT 72 + + ( + ( - 50 ) ) + - MAX( 74 ) + - 10 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-780
SELECT 72 + + ( + ( - 50 ) ) + - MAX ( 74 ) + - 10 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT - 10 * + COUNT( * ) * + + 54 + - 46
----
-586

skipif mysql # not compatible
query I rowsort label-781
SELECT - 10 * + COUNT ( * ) * + + 54 + - 46
----
-586

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT ALL 93 * + - MAX( DISTINCT + 97 ) AS col0
----
-9021

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL 93 * + - MAX ( DISTINCT + 97 ) AS col0
----
-9021

query II rowsort
SELECT ALL + 17 + - - 18 AS col2, + 39
----
35
39

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

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

query I rowsort
SELECT 72 * + 32 AS col2
----
2304

query I rowsort
SELECT DISTINCT 6 + 87 + + - 63 * - + 7 AS col2
----
534

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT + MIN( ALL + 35 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-787
SELECT + MIN ( ALL + 35 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT DISTINCT - NULLIF ( + + 80, + + COUNT( DISTINCT 61 ) * + 18 )
----
-80

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT - NULLIF ( + + 80, + + COUNT ( DISTINCT 61 ) * + 18 )
----
-80

query I rowsort
SELECT ALL - 70 + 8 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT COUNT( * ) * - - 9 + - 67 * + 67
----
-4480

skipif mysql # not compatible
query I rowsort label-790
SELECT COUNT ( * ) * - - 9 + - 67 * + 67
----
-4480

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

skipif mysql # not compatible
query II rowsort label-791
SELECT 8 AS col2, COUNT ( * )
----
8
1

query I rowsort
SELECT ALL 5 + + 50 * - - 35 AS col0
----
1755

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT ALL - 71 DIV 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL - 71 / 94 AS col0
----
0

query I rowsort
SELECT 34 * + 12 * 66 + - 42 AS col2
----
26886

query II rowsort
SELECT + 84 AS col0, CASE - 50 WHEN + + 67 / 13 THEN NULL ELSE + 67 END AS col2
----
84
67

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT + 25 * ( - CASE + 96 WHEN + 64 * - 79 + - 82 THEN NULL ELSE COUNT( - - 25 ) + - NULLIF ( - 49, 49 ) END ) + - COUNT( * )
----
-1251

skipif mysql # not compatible
query I rowsort label-796
SELECT + 25 * ( - CASE + 96 WHEN + 64 * - 79 + - 82 THEN NULL ELSE COUNT ( - - 25 ) + - NULLIF ( - 49, 49 ) END ) + - COUNT ( * )
----
-1251

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

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

query I rowsort
SELECT DISTINCT + 98 + - - CASE WHEN + ( + 92 ) IS NOT NULL THEN - 32 END - + 99 + - + 17 + + 43 col1
----
-7

query I rowsort
SELECT ALL + 81 * 6
----
486

query I rowsort
SELECT DISTINCT 22 - 93
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT 90 * COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-801
SELECT 90 * COUNT ( * ) AS col0
----
90

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

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL SUM ( - 38 )
----
-38

query I rowsort
SELECT ALL + 36 - - 54 AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-804
SELECT ALL - 89 * + AVG ( 96 ) * - ( + CAST( NULL AS DECIMAL ) ) + MIN( + + 34 ) - 12 * + 26, 9 * 5 AS col1
----
NULL
45

skipif mysql # not compatible
query II rowsort label-804
SELECT ALL - 89 * + AVG ( 96 ) * - ( + CAST ( NULL AS REAL ) ) + MIN ( + + 34 ) - 12 * + 26, 9 * 5 AS col1
----
NULL
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-805
SELECT 80 * CAST( + COUNT( * ) AS SIGNED ) col0, 74
----
80
74

skipif mysql # not compatible
query II rowsort label-805
SELECT 80 * CAST ( + COUNT ( * ) AS INTEGER ) col0, 74
----
80
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-806
SELECT - + CAST( ( - 83 ) AS SIGNED ), - ( - - 44 ) * - 2 + + + 31 col1
----
83
119

skipif mysql # not compatible
query II rowsort label-806
SELECT - + CAST ( ( - 83 ) AS INTEGER ), - ( - - 44 ) * - 2 + + + 31 col1
----
83
119

query II rowsort
SELECT ALL 15 col1, 95
----
15
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-808
SELECT 69 + + 27 DIV - 66 col0, - 86 + - - 96 + + CASE - COUNT( * ) WHEN - 87 * - + 52 * + 57 + + - MIN( + - 9 ) THEN 81 WHEN 68 THEN NULL ELSE - CAST( NULL AS SIGNED ) END DIV - 94 AS col0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-808
SELECT 69 + + 27 / - 66 col0, - 86 + - - 96 + + CASE - COUNT ( * ) WHEN - 87 * - + 52 * + 57 + + - MIN ( + - 9 ) THEN 81 WHEN 68 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END / - 94 AS col0
----
69
NULL

query I rowsort
SELECT DISTINCT 93 * + + 32 + + - 98 - - 22
----
2900

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT - CASE - - ( 60 ) WHEN + 91 THEN - 29 END * + MIN( ALL + - 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-810
SELECT - CASE - - ( 60 ) WHEN + 91 THEN - 29 END * + MIN ( ALL + - 45 ) AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + - 4, + 49 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT CASE + COUNT( - 28 ) WHEN - 72 * + 68 + 95 * 57 THEN 48 / - COALESCE ( - 29, 42 + + - 86, + - 70 + ( + + 23 ) ) + + + MIN( DISTINCT + ( 38 ) ) + + - 24 WHEN - - COALESCE ( - COUNT( * ), AVG ( - + 78 ) * + - 35 + - - COUNT( * ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-812
SELECT CASE + COUNT ( - 28 ) WHEN - 72 * + 68 + 95 * 57 THEN 48 / - COALESCE ( - 29, 42 + + - 86, + - 70 + ( + + 23 ) ) + + + MIN ( DISTINCT + ( 38 ) ) + + - 24 WHEN - - COALESCE ( - COUNT ( * ), AVG ( - + 78 ) * + - 35 + - - COUNT ( * ) ) THEN NULL ELSE NULL END
----
NULL

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-816
SELECT ALL - + ( - CAST( 88 AS SIGNED ) ) + + 58 + 44
----
190

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL - + ( - CAST ( 88 AS INTEGER ) ) + + 58 + 44
----
190

query I rowsort
SELECT ALL 96 + 43 * + 87
----
3837

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT - 65 * + 50 - COUNT( * ) - COUNT( * ) + + - NULLIF ( 44, - 53 / + 53 ) AS col2
----
-3296

skipif mysql # not compatible
query I rowsort label-818
SELECT - 65 * + 50 - COUNT ( * ) - COUNT ( * ) + + - NULLIF ( 44, - 53 / + 53 ) AS col2
----
-3296

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT + 35 * + COUNT( * ) * + + 6 * 3
----
630

skipif mysql # not compatible
query I rowsort label-819
SELECT + 35 * + COUNT ( * ) * + + 6 * 3
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT + 45 * + + ( - 70 ) + + MIN( 60 ) AS col2
----
-3090

skipif mysql # not compatible
query I rowsort label-820
SELECT + 45 * + + ( - 70 ) + + MIN ( 60 ) AS col2
----
-3090

query I rowsort
SELECT ( - ( - 30 ) ) AS col0
----
30

query I rowsort
SELECT ALL 91 * - 59 + + 84 + - 29 - - 14 * + - 76 * + 76
----
-86178

query I rowsort
SELECT DISTINCT + 63 * 60 + 73
----
3853

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

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

query I rowsort
SELECT CASE + 6 WHEN - 97 * - 32 + - 18 THEN - + 42 - - - 46 ELSE + - 31 * + 29 END AS col2
----
-899

query I rowsort
SELECT NULLIF ( - - 16, 14 ) * + - 68 + 77 * 53 AS col1
----
2993

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT DISTINCT 77 * - NULLIF ( - - COALESCE ( + COUNT( * ), + 77 ), + 2 ) * 0 * + ( 74 ) - 93 col2
----
-93

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT 77 * - NULLIF ( - - COALESCE ( + COUNT ( * ), + 77 ), + 2 ) * 0 * + ( 74 ) - 93 col2
----
-93

query II rowsort
SELECT - 87 + 3, CASE + ( - 21 ) WHEN 19 THEN NULL WHEN - - ( 69 ) THEN 70 ELSE NULL END AS col1
----
-84
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-830
SELECT + AVG ( DISTINCT + 0 ) * + 65 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-830
SELECT + AVG ( DISTINCT + 0 ) * + 65 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-831
SELECT DISTINCT NULLIF ( - COUNT( * ), + 16 ) * - - CAST( NULL AS SIGNED ) * - 90 - - AVG ( ALL - - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT NULLIF ( - COUNT ( * ), + 16 ) * - - CAST ( NULL AS INTEGER ) * - 90 - - AVG ( ALL - - 3 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-832
SELECT COUNT( DISTINCT + 87 ), 33 AS col0
----
1
33

skipif mysql # not compatible
query II rowsort label-832
SELECT COUNT ( DISTINCT + 87 ), 33 AS col0
----
1
33

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

skipif mysql # not compatible
query I rowsort label-833
SELECT 86 * + - 81 + COUNT ( * ) AS col1
----
-6965

query I rowsort
SELECT DISTINCT + 38 col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-835
SELECT + 39 * + NULLIF ( + - 87, + 18 + + ( 2 ) ) / - - ( - 71 ) / + 97 * + CAST( NULL AS SIGNED ) - + 79 * + COUNT( * ) * + - 72 - ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT + 39 * + NULLIF ( + - 87, + 18 + + ( 2 ) ) / - - ( - 71 ) / + 97 * + CAST ( NULL AS INTEGER ) - + 79 * + COUNT ( * ) * + - 72 - ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-836
SELECT + CAST( NULL AS SIGNED ) - - 7 * CASE + + 59 WHEN 31 THEN NULL WHEN 58 THEN + + 59 + 98 + 43 * - CASE - - AVG ( + 23 ) WHEN + + 20 THEN + - 25 END / + 68 * + + 56 + - 39 / - COUNT( * ) + 11 * - - 0 ELSE NULL END * 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-836
SELECT + CAST ( NULL AS INTEGER ) - - 7 * CASE + + 59 WHEN 31 THEN NULL WHEN 58 THEN + + 59 + 98 + 43 * - CASE - - AVG ( + 23 ) WHEN + + 20 THEN + - 25 END / + 68 * + + 56 + - 39 / - COUNT ( * ) + 11 * - - 0 ELSE NULL END * 6 AS col0
----
NULL

query I rowsort
SELECT + - 46 + - - 64 + + 13 AS col2
----
31

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

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

query I rowsort
SELECT ALL + - 90 * 80
----
-7200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-840
SELECT - - CASE 81 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + - 27 * - 88 + - 28 + + 57 + - 54 + + - COUNT( * ) * COUNT( * ) + 87 THEN NULL ELSE - + 2 END
----
-2

skipif mysql # not compatible
query I rowsort label-840
SELECT - - CASE 81 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + - 27 * - 88 + - 28 + + 57 + - 54 + + - COUNT ( * ) * COUNT ( * ) + 87 THEN NULL ELSE - + 2 END
----
-2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-842
SELECT - - 96 / - 45 * + + NULLIF ( 52, - 67 - + 7 ) + + CASE 35 WHEN CAST( NULL AS SIGNED ) THEN + 88 * - + 70 * - - MAX( + + 66 ) * 90 WHEN - 77 THEN + 98 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT - - 96 / - 45 * + + NULLIF ( 52, - 67 - + 7 ) + + CASE 35 WHEN CAST ( NULL AS INTEGER ) THEN + 88 * - + 70 * - - MAX ( + + 66 ) * 90 WHEN - 77 THEN + 98 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT ALL 26 * + - ( + CASE + + 77 WHEN + 17 THEN - NULLIF ( - 82, + 83 * 94 + + 4 + - - 21 ) * - - 62 ELSE NULL END ) * 25 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL 26 * + - ( + CASE + + 77 WHEN + 17 THEN - NULLIF ( - 82, + 83 * 94 + + 4 + - - 21 ) * - - 62 ELSE NULL END ) * 25 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT ALL - 11 + + - COUNT( DISTINCT - ( 8 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL - 11 + + - COUNT ( DISTINCT - ( 8 ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT + COUNT( * ) + 89
----
90

skipif mysql # not compatible
query I rowsort label-845
SELECT + COUNT ( * ) + 89
----
90

query I rowsort
SELECT - 97 * - + 12
----
1164

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT ALL - MAX( ALL - - 17 ) + + 66 + + COUNT( * ) + + 28 * + + 35 * - 41 AS col1
----
-40130

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL - MAX ( ALL - - 17 ) + + 66 + + COUNT ( * ) + + 28 * + + 35 * - 41 AS col1
----
-40130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-848
SELECT - COUNT( * ) + + NULLIF ( - - CAST( + + ( CASE - 82 WHEN ( - 24 ) * 20 * - + NULLIF ( + SUM( + 25 ), - 71 ) / + - 1 * 18 * + ( + 63 ) - 4 + + 66 / 63 THEN - + 91 + 31 + - CAST( + SUM( + - 13 ) AS SIGNED ) WHEN + 35 THEN NULL ELSE NULL END ) AS DECIMAL ), 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-848
SELECT - COUNT ( * ) + + NULLIF ( - - CAST ( + + ( CASE - 82 WHEN ( - 24 ) * 20 * - + NULLIF ( + SUM ( + 25 ), - 71 ) / + - 1 * 18 * + ( + 63 ) - 4 + + 66 / 63 THEN - + 91 + 31 + - CAST ( + SUM ( + - 13 ) AS INTEGER ) WHEN + 35 THEN NULL ELSE NULL END ) AS REAL ), 67 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT - + 70 + MAX( DISTINCT 97 ) col1
----
27

skipif mysql # not compatible
query I rowsort label-849
SELECT - + 70 + MAX ( DISTINCT 97 ) col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL - - COUNT( * ) + + CASE - NULLIF ( 68, + - MIN( - + 29 ) ) WHEN + 87 + + 90 + + 71 THEN - 20 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL - - COUNT ( * ) + + CASE - NULLIF ( 68, + - MIN ( - + 29 ) ) WHEN + 87 + + 90 + + 71 THEN - 20 ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT ALL - 15 + 12
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-853
SELECT - 48 + - - 77 DIV - - 90 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-853
SELECT - 48 + - - 77 / - - 90 AS col1
----
-48

query I rowsort
SELECT ALL 18 + 0 * - - 51 * 84
----
18

query I rowsort
SELECT ALL 36 * 18 * + 97
----
62856

query I rowsort
SELECT DISTINCT + 70 * - 78 AS col0
----
-5460

query I rowsort
SELECT + ( - ( - ( + 25 ) ) ) * - + 69 AS col1
----
-1725

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT + 80 DIV 78 + - 45
----
-44

skipif mysql # not compatible
query I rowsort label-858
SELECT + 80 / 78 + - 45
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-859
SELECT DISTINCT 5 DIV - 74 - - + 25
----
25

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT 5 / - 74 - - + 25
----
25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-861
SELECT NULLIF ( 13, COUNT( * ) * + + 1 ) * - NULLIF ( - + 29, + 96 + + 8 ) + + 70 * + 33 * - ( COALESCE ( + + ( + CASE CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN + + 3 ELSE NULL END ), - 65 + + + 34 ) )
----
71987

skipif mysql # not compatible
query I rowsort label-861
SELECT NULLIF ( 13, COUNT ( * ) * + + 1 ) * - NULLIF ( - + 29, + 96 + + 8 ) + + 70 * + 33 * - ( COALESCE ( + + ( + CASE CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN + + 3 ELSE NULL END ), - 65 + + + 34 ) )
----
71987

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

query I rowsort
SELECT + 4 * - - 95
----
380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-864
SELECT + 72 * CAST( 96 AS SIGNED ) + + + COUNT( DISTINCT + + 64 ) * + 92 DIV + MAX( + + 23 ), 16 AS col1
----
6916
16

skipif mysql # not compatible
query II rowsort label-864
SELECT + 72 * CAST ( 96 AS INTEGER ) + + + COUNT ( DISTINCT + + 64 ) * + 92 / + MAX ( + + 23 ), 16 AS col1
----
6916
16

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

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

query I rowsort
SELECT - 67 * 45 - + 48 + + ( - 49 ) AS col0
----
-3112

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT + 18 * CASE 75 WHEN - COUNT( * ) - 95 * - - 60 * + 48 THEN - 62 WHEN + - 93 THEN - 71 WHEN - + 68 + - - 70 + + + 85 THEN NULL END / - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-867
SELECT + 18 * CASE 75 WHEN - COUNT ( * ) - 95 * - - 60 * + 48 THEN - 62 WHEN + - 93 THEN - 71 WHEN - + 68 + - - 70 + + + 85 THEN NULL END / - 40 AS col1
----
NULL

query II rowsort
SELECT - ( - - 93 ) + + 47 AS col1, 19 AS col2
----
-46
19

query I rowsort
SELECT ALL 71 + + - 72
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT 32 + - 29 + CAST( 79 AS SIGNED ) - - 96 AS col0
----
178

skipif mysql # not compatible
query I rowsort label-870
SELECT 32 + - 29 + CAST ( 79 AS INTEGER ) - - 96 AS col0
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-871
SELECT ALL NULLIF ( 37, - 10 ) * - - 50 - - NULLIF ( - CASE - COUNT( * ) WHEN + ( + - 92 ) THEN NULL WHEN + 58 THEN - + 13 + + 3 END, CAST( NULL AS SIGNED ) ) * + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL NULLIF ( 37, - 10 ) * - - 50 - - NULLIF ( - CASE - COUNT ( * ) WHEN + ( + - 92 ) THEN NULL WHEN + 58 THEN - + 13 + + 3 END, CAST ( NULL AS INTEGER ) ) * + 4 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-872
SELECT - + 16 * + 21 + - 80 * 10 + + 7 + + 34 * + 55 * + + 96 + + 23 * 91 - ( - CASE - - 55 WHEN - NULLIF ( + + 2, - 0 ) THEN - 2 WHEN - + COUNT( * ) THEN NULL ELSE NULL END ) + 19 / + CAST( + 53 AS SIGNED ) * + - 93 + CASE - ( + AVG ( ALL - 20 ) ) WHEN + 12 + - - 89 THEN - 29 ELSE - 6 END + - - 62 * - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-872
SELECT - + 16 * + 21 + - 80 * 10 + + 7 + + 34 * + 55 * + + 96 + + 23 * 91 - ( - CASE - - 55 WHEN - NULLIF ( + + 2, - 0 ) THEN - 2 WHEN - + COUNT ( * ) THEN NULL ELSE NULL END ) + 19 / + CAST ( + 53 AS INTEGER ) * + - 93 + CASE - ( + AVG ( ALL - 20 ) ) WHEN + 12 + - - 89 THEN - 29 ELSE - 6 END + - - 62 * - 92 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-873
SELECT ALL - CAST( 92 AS SIGNED ) + - + 21 * - 41 AS col2
----
769

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - CAST ( 92 AS INTEGER ) + - + 21 * - 41 AS col2
----
769

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT - 67 + - COUNT( * ) * - - 7
----
-74

skipif mysql # not compatible
query I rowsort label-874
SELECT - 67 + - COUNT ( * ) * - - 7
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-875
SELECT ALL - 54 + + 76 * - 76 * 68 * - 72 DIV + - COALESCE ( - + COUNT( * ), - 71 * + 95 - 7 ) AS col0
----
28279242

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL - 54 + + 76 * - 76 * 68 * - 72 / + - COALESCE ( - + COUNT ( * ), - 71 * + 95 - 7 ) AS col0
----
28279242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-876
SELECT COUNT( ALL 69 ) DIV ( - 31 ) + - 15 + + 71 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-876
SELECT COUNT ( ALL 69 ) / ( - 31 ) + - 15 + + 71 AS col2
----
56

query I rowsort
SELECT ( 38 ) * - - 79 AS col2
----
3002

query I rowsort
SELECT 1 + - 19 * 55 col1
----
-1044

onlyif mysql # DIV for integer division: 
query I rowsort label-879
SELECT NULLIF ( - 87, 53 ) + - 34 + + + 28 + + 58 DIV - - 37
----
-92

skipif mysql # not compatible
query I rowsort label-879
SELECT NULLIF ( - 87, 53 ) + - 34 + + + 28 + + 58 / - - 37
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-880
SELECT - + 34, COUNT( * ) + + 55 * 5 AS col2
----
-34
276

skipif mysql # not compatible
query II rowsort label-880
SELECT - + 34, COUNT ( * ) + + 55 * 5 AS col2
----
-34
276

query I rowsort
SELECT DISTINCT - 60 + - 67 AS col1
----
-127

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

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL - MAX ( 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ALL 44 * - - COALESCE ( 69, 74, + - NULLIF ( - 74, MIN( - + 66 ) ) )
----
3036

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL 44 * - - COALESCE ( 69, 74, + - NULLIF ( - 74, MIN ( - + 66 ) ) )
----
3036

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-884
SELECT - 83 DIV - - MAX( DISTINCT 58 ) AS col2, - 97
----
-1
-97

skipif mysql # not compatible
query II rowsort label-884
SELECT - 83 / - - MAX ( DISTINCT 58 ) AS col2, - 97
----
-1
-97

query II rowsort
SELECT 19 AS col0, - 99 AS col1
----
19
-99

query I rowsort
SELECT ALL + 84 - - 91 * + 0 AS col0
----
84

query II rowsort
SELECT 33, + 56 + 97 AS col2
----
33
153

onlyif mysql # aggregate syntax: 
query II rowsort label-888
SELECT COUNT( * ) * + 85 AS col0, 46 + 32
----
85
78

skipif mysql # not compatible
query II rowsort label-888
SELECT COUNT ( * ) * + 85 AS col0, 46 + 32
----
85
78

query I rowsort
SELECT 71 * - 63
----
-4473

onlyif mysql # aggregate syntax: 
query II rowsort label-890
SELECT DISTINCT - COUNT( * ), - COUNT( * ) + - - 84 AS col2
----
-1
83

skipif mysql # not compatible
query II rowsort label-890
SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) + - - 84 AS col2
----
-1
83

onlyif mysql # aggregate syntax: 
query II rowsort label-891
SELECT ALL + 22 * 45 AS col1, + COUNT( * ) * + 69
----
990
69

skipif mysql # not compatible
query II rowsort label-891
SELECT ALL + 22 * 45 AS col1, + COUNT ( * ) * + 69
----
990
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-892
SELECT ALL - 70, + ( + NULLIF ( - ( 57 ), ( + 56 ) * - - COALESCE ( + CAST( - 45 AS SIGNED ), + 53, + + COUNT( * ) ) + - 78 - + 17 ) ) + 73 col2
----
-70
16

skipif mysql # not compatible
query II rowsort label-892
SELECT ALL - 70, + ( + NULLIF ( - ( 57 ), ( + 56 ) * - - COALESCE ( + CAST ( - 45 AS INTEGER ), + 53, + + COUNT ( * ) ) + - 78 - + 17 ) ) + 73 col2
----
-70
16

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

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

query I rowsort
SELECT 86 * + 13 AS col1
----
1118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-895
SELECT ( CASE 57 WHEN + 73 THEN MAX( 61 ) END ) * ( - NULLIF ( 62, - - ( 23 ) ) ) + - + 78 * - CAST( - 73 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-895
SELECT ( CASE 57 WHEN + 73 THEN MAX ( 61 ) END ) * ( - NULLIF ( 62, - - ( 23 ) ) ) + - + 78 * - CAST ( - 73 AS REAL )
----
NULL

query I rowsort
SELECT ALL - CASE + 75 WHEN + 36 THEN 58 * + 69 WHEN - + 58 THEN + 66 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-897
SELECT + 49 AS col0, MAX( + + 21 ) AS col0
----
49
21

skipif mysql # not compatible
query II rowsort label-897
SELECT + 49 AS col0, MAX ( + + 21 ) AS col0
----
49
21

query I rowsort
SELECT 23 * + - 46 - + 34 * + 92 * + + 93
----
-291962

onlyif mysql # DIV for integer division: 
query II rowsort label-899
SELECT ALL - 70 col2, + 29 DIV 87 * 9 AS col2
----
-70
0

skipif mysql # not compatible
query II rowsort label-899
SELECT ALL - 70 col2, + 29 / 87 * 9 AS col2
----
-70
0

onlyif mysql # DIV for integer division: 
query I rowsort label-900
SELECT - 2 DIV 22
----
0

skipif mysql # not compatible
query I rowsort label-900
SELECT - 2 / 22
----
0

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

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL 41 + COUNT ( * ) AS col1
----
42

query II rowsort
SELECT DISTINCT - 98 AS col0, - 42 AS col1
----
-98
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT ALL MIN( 73 ) + - - 40 col2
----
113

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL MIN ( 73 ) + - - 40 col2
----
113

query I rowsort
SELECT DISTINCT + 16 + + 61 * 24
----
1480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-905
SELECT + CAST( - COUNT( * ) AS SIGNED ) * - 17 + - - 80 * + COUNT( - - 91 )
----
97

skipif mysql # not compatible
query I rowsort label-905
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * - 17 + - - 80 * + COUNT ( - - 91 )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-906
SELECT ALL + 83 + - 12 * 21 DIV - + 81
----
86

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL + 83 + - 12 * 21 / - + 81
----
86

query II rowsort
SELECT + + 39 AS col1, 84 AS col2
----
39
84

onlyif mysql # aggregate syntax: 
query II rowsort label-908
SELECT - 63 col1, + COALESCE ( 94, - - 92, - MAX( DISTINCT - 41 ), + - 95 ) * - 73 * + + 51 + + COUNT( * ) + 30 col1
----
-63
-349931

skipif mysql # not compatible
query II rowsort label-908
SELECT - 63 col1, + COALESCE ( 94, - - 92, - MAX ( DISTINCT - 41 ), + - 95 ) * - 73 * + + 51 + + COUNT ( * ) + 30 col1
----
-63
-349931

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

query I rowsort
SELECT 16 * - 62 + - 76 AS col0
----
-1068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-911
SELECT ALL 41 AS col2, MAX( + 43 ) * + 57 - + - 50 + - 10 + + ( CAST( NULL AS SIGNED ) ) + - 43 * + COUNT( * ) * - + 89 AS col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-911
SELECT ALL 41 AS col2, MAX ( + 43 ) * + 57 - + - 50 + - 10 + + ( CAST ( NULL AS INTEGER ) ) + - 43 * + COUNT ( * ) * - + 89 AS col0
----
41
NULL

query I rowsort
SELECT ALL 71 + + 9
----
80

query I rowsort
SELECT DISTINCT - ( 79 )
----
-79

query I rowsort
SELECT ALL 84 + - + 42 * + 87 col1
----
-3570

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT 95 - COUNT( - 86 ) * - + 14 + - 30
----
79

skipif mysql # not compatible
query I rowsort label-915
SELECT 95 - COUNT ( - 86 ) * - + 14 + - 30
----
79

query I rowsort
SELECT DISTINCT - CASE 18 WHEN + + 3 THEN NULL ELSE 42 + + + 38 END
----
-80

query I rowsort
SELECT DISTINCT NULLIF ( 2, + 9 ) * + - 3 AS col1
----
-6

query I rowsort
SELECT 45 + + 84
----
129

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT COUNT( DISTINCT + 94 ) + 84 + - + 86 + + 92 + - + 61
----
30

skipif mysql # not compatible
query I rowsort label-920
SELECT COUNT ( DISTINCT + 94 ) + 84 + - + 86 + + 92 + - + 61
----
30

query I rowsort
SELECT 90 - - 99 AS col1
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-922
SELECT ALL 59 DIV - 13
----
-4

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL 59 / - 13
----
-4

query I rowsort
SELECT 64 + - 5 + - - 46 * + - 92 * 67
----
-283485

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-925
SELECT CASE - CAST( NULL AS SIGNED ) WHEN - 50 THEN - - 3 / + + 30 ELSE - + 59 * + 66 + + 9 + + - 82 / - - ( + 52 ) + 44 + 65 * - CASE + + 23 WHEN + + 87 - 33 / - COUNT( * ) THEN NULL WHEN + 22 THEN 75 WHEN - - ( + - ( 43 ) ) THEN NULL END END + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN - 50 THEN - - 3 / + + 30 ELSE - + 59 * + 66 + + 9 + + - 82 / - - ( + 52 ) + 44 + 65 * - CASE + + 23 WHEN + + 87 - 33 / - COUNT ( * ) THEN NULL WHEN + 22 THEN 75 WHEN - - ( + - ( 43 ) ) THEN NULL END END + - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT DISTINCT 6 - - COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT 6 - - COUNT ( * ) AS col1
----
7

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

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

query I rowsort
SELECT 90 + + - 19 - - 43 - + 27 + - 6 AS col0
----
81

query I rowsort
SELECT 96 * - + 93
----
-8928

query I rowsort
SELECT DISTINCT 58 * - 39 * 39 AS col2
----
-88218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-931
SELECT ( - CASE + - COUNT( * ) WHEN - NULLIF ( - + CAST( - 42 AS SIGNED ), 78 ) * ( - COUNT( * ) ) THEN - MIN( ( 83 ) ) END ) * - 34 + + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-931
SELECT ( - CASE + - COUNT ( * ) WHEN - NULLIF ( - + CAST ( - 42 AS INTEGER ), 78 ) * ( - COUNT ( * ) ) THEN - MIN ( ( 83 ) ) END ) * - 34 + + 27 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-932
SELECT 27 * + + CAST( NULL AS SIGNED ) + - + 61 * - 91 * COALESCE ( - 31, + + 82 ) + - 81 * - - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT 27 * + + CAST ( NULL AS INTEGER ) + - + 61 * - 91 * COALESCE ( - 31, + + 82 ) + - 81 * - - 90 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 36 * 93 * - 94
----
-314712

onlyif mysql # DIV for integer division: 
query I rowsort label-934
SELECT 45 DIV - 36 + + + 29
----
28

skipif mysql # not compatible
query I rowsort label-934
SELECT 45 / - 36 + + + 29
----
28

query I rowsort
SELECT - 57 + 46
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-936
SELECT ALL + 12 * + 4 + - CASE + ( - - ( + 40 ) ) WHEN + 16 / - AVG ( + ( ( - 88 ) ) ) - + + 71 + + - 49 - + + ( + COALESCE ( - CAST( + 54 AS SIGNED ), + 96 * 36, + 85 ) ) + - 11 THEN - 38 ELSE + 58 * - - 50 + - - 55 * - 33 - - - 13 + + CASE - + 81 WHEN + MAX( + 20 ) THEN + 32 + + + 85 END END + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL + 12 * + 4 + - CASE + ( - - ( + 40 ) ) WHEN + 16 / - AVG ( + ( ( - 88 ) ) ) - + + 71 + + - 49 - + + ( + COALESCE ( - CAST ( + 54 AS INTEGER ), + 96 * 36, + 85 ) ) + - 11 THEN - 38 ELSE + 58 * - - 50 + - - 55 * - 33 - - - 13 + + CASE - + 81 WHEN + MAX ( + 20 ) THEN + 32 + + + 85 END END + 4 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT 67 * - 44 + + 17 DIV - 67 AS col0
----
-2948

skipif mysql # not compatible
query I rowsort label-937
SELECT 67 * - 44 + + 17 / - 67 AS col0
----
-2948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-938
SELECT + CASE + 17 WHEN - COUNT( * ) THEN COUNT( DISTINCT + - 89 ) WHEN ( + 82 ) * + + CAST( - ( + + 13 ) AS SIGNED ) - 40 THEN NULL ELSE - 96 * 30 * + ( + 99 ) + 71 * - 61 + - CASE 8 WHEN - 96 THEN NULL WHEN - + 17 THEN - - 22 END / + 64 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-938
SELECT + CASE + 17 WHEN - COUNT ( * ) THEN COUNT ( DISTINCT + - 89 ) WHEN ( + 82 ) * + + CAST ( - ( + + 13 ) AS INTEGER ) - 40 THEN NULL ELSE - 96 * 30 * + ( + 99 ) + 71 * - 61 + - CASE 8 WHEN - 96 THEN NULL WHEN - + 17 THEN - - 22 END / + 64 END AS col2
----
NULL

query I rowsort
SELECT - 99 * - 81 * - 51 + + 58 AS col0
----
-408911

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT + NULLIF ( - + SUM( + + 52 ), + 38 )
----
-52

skipif mysql # not compatible
query I rowsort label-940
SELECT + NULLIF ( - + SUM ( + + 52 ), + 38 )
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT - - 18 + 56, - MAX( - 33 ) AS col0
----
74
33

skipif mysql # not compatible
query II rowsort label-941
SELECT - - 18 + 56, - MAX ( - 33 ) AS col0
----
74
33

query II rowsort
SELECT - 75 + + + 24 AS col2, - 8 * + 88
----
-51
-704

query II rowsort
SELECT + 63 * - 13 AS col1, 53
----
-819
53

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT ALL - MAX( - - ( NULLIF ( - 56, - + NULLIF ( - 41, ( 17 ) ) ) ) ) * MIN( ALL 10 ) * 6
----
3360

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL - MAX ( - - ( NULLIF ( - 56, - + NULLIF ( - 41, ( 17 ) ) ) ) ) * MIN ( ALL 10 ) * 6
----
3360

query I rowsort
SELECT ALL + 49 * - + 62 - + + 26
----
-3064

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT - - 66 + - 7 + COALESCE ( 76, + 12 * - 27 - - CASE - 81 WHEN - ( - COUNT( * ) ) THEN - 74 ELSE NULL END + 42 + ( + 10 ) * + - 3 ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-946
SELECT - - 66 + - 7 + COALESCE ( 76, + 12 * - 27 - - CASE - 81 WHEN - ( - COUNT ( * ) ) THEN - 74 ELSE NULL END + 42 + ( + 10 ) * + - 3 ) AS col0
----
135

query I rowsort
SELECT - + 91 + - + 57 AS col1
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT ALL + + 23 - + + NULLIF ( - 64, + - COALESCE ( - - COUNT( * ), - - COALESCE ( 24, 81 ), 65 * 98 + - 47 ) )
----
87

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL + + 23 - + + NULLIF ( - 64, + - COALESCE ( - - COUNT ( * ), - - COALESCE ( 24, 81 ), 65 * 98 + - 47 ) )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-949
SELECT ALL 55, 18 * COUNT( * ) + + - 68 * 23 AS col2
----
55
-1546

skipif mysql # not compatible
query II rowsort label-949
SELECT ALL 55, 18 * COUNT ( * ) + + - 68 * 23 AS col2
----
55
-1546

query I rowsort
SELECT DISTINCT 18 * ( - 24 )
----
-432

query I rowsort
SELECT + 41 * - - 30 AS col0
----
1230

query I rowsort
SELECT ALL 53 * 90 * + - ( - 86 ) * + + 3
----
1230660

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

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - 49 * - COUNT ( + 56 ) AS col2
----
49

query II rowsort
SELECT ALL 70 AS col0, - 92 AS col1
----
70
-92

query II rowsort
SELECT ALL 21 AS col2, + 20 AS col2
----
21
20

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT - COALESCE ( - + 38, - COUNT( * ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-956
SELECT - COALESCE ( - + 38, - COUNT ( * ) ) AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-957
SELECT ALL 17 * NULLIF ( CAST( + ( - AVG ( + 90 ) ) AS SIGNED ), + + AVG ( + 75 ) )
----
-1530

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL 17 * NULLIF ( CAST ( + ( - AVG ( + 90 ) ) AS INTEGER ), + + AVG ( + 75 ) )
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT + 29 * SUM( DISTINCT + ( - 84 ) )
----
-2436

skipif mysql # not compatible
query I rowsort label-958
SELECT + 29 * SUM ( DISTINCT + ( - 84 ) )
----
-2436

query I rowsort
SELECT + ( 0 ) - + 38 + + 7 * - 27 + + 79 + + 90
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-960
SELECT + MIN( - 50 ) - CAST( 37 AS SIGNED ) DIV - NULLIF ( + 8, - 86 + - - 14 * + 78 + 42 * + - 16 * - 7 * + ( COALESCE ( + 47, + MAX( 97 ) ) ) ) + - 80
----
-126

skipif mysql # not compatible
query I rowsort label-960
SELECT + MIN ( - 50 ) - CAST ( 37 AS INTEGER ) / - NULLIF ( + 8, - 86 + - - 14 * + 78 + 42 * + - 16 * - 7 * + ( COALESCE ( + 47, + MAX ( 97 ) ) ) ) + - 80
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-961
SELECT + MIN( DISTINCT - + 22 ) DIV - 7 + - - CAST( + 93 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-961
SELECT + MIN ( DISTINCT - + 22 ) / - 7 + - - CAST ( + 93 AS INTEGER )
----
96

query I rowsort
SELECT - ( 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-963
SELECT ALL 51 DIV + + NULLIF ( COUNT( * ), + 23 + - + 23 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL 51 / + + NULLIF ( COUNT ( * ), + 23 + - + 23 ) AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-964
SELECT 59 * - 67 - 3 + + SUM( ALL + COALESCE ( - 43, - 53 ) ) * + COALESCE ( 95, 80 ) * - CASE + 23 WHEN - 54 * + - 75 THEN NULL ELSE - ( - ( 72 ) ) DIV + SUM( ALL - - 47 ) + - COUNT( * ) END AS col2
----
-3956

skipif mysql # not compatible
query I rowsort label-964
SELECT 59 * - 67 - 3 + + SUM ( ALL + COALESCE ( - 43, - 53 ) ) * + COALESCE ( 95, 80 ) * - CASE + 23 WHEN - 54 * + - 75 THEN NULL ELSE - ( - ( 72 ) ) / + SUM ( ALL - - 47 ) + - COUNT ( * ) END AS col2
----
-3956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-965
SELECT DISTINCT + 75 DIV + - 20 DIV - COUNT( * ) + + 25 - + COUNT( * ) + 92 col1
----
119

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT + 75 / + - 20 / - COUNT ( * ) + + 25 - + COUNT ( * ) + 92 col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ALL + COUNT( DISTINCT 93 ) * 14
----
14

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL + COUNT ( DISTINCT 93 ) * 14
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-967
SELECT NULLIF ( 89, 3 + - ( 94 ) + + CAST( NULL AS SIGNED ) + + 88 * + 7 + - + 71 * + 20 )
----
89

skipif mysql # not compatible
query I rowsort label-967
SELECT NULLIF ( 89, 3 + - ( 94 ) + + CAST ( NULL AS INTEGER ) + + 88 * + 7 + - + 71 * + 20 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT + + CASE - COUNT( * ) WHEN - 80 THEN NULL ELSE 71 * + 21 END * CASE - + NULLIF ( - + 91, + 80 + - 51 ) WHEN 27 THEN NULL WHEN + + 23 THEN + + 85 ELSE NULL END - - - 75 + + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-968
SELECT + + CASE - COUNT ( * ) WHEN - 80 THEN NULL ELSE 71 * + 21 END * CASE - + NULLIF ( - + 91, + 80 + - 51 ) WHEN 27 THEN NULL WHEN + + 23 THEN + + 85 ELSE NULL END - - - 75 + + 8 AS col0
----
NULL

query I rowsort
SELECT - + 88 * 60 + + - ( + ( + ( 88 ) ) ) - 7 + 72
----
-5303

query II rowsort
SELECT + 92, - 56 AS col2
----
92
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT - - SUM( ALL - 2 ) + 38
----
36

skipif mysql # not compatible
query I rowsort label-971
SELECT - - SUM ( ALL - 2 ) + 38
----
36

query I rowsort
SELECT ALL - COALESCE ( - 57, - 93 ) * - 89 - + - 41 + 2 * + - NULLIF ( - 35, - 16 )
----
-4962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-973
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * ) * + COUNT( * ) - - ( - AVG ( - + 25 ) ) + CAST( NULL AS SIGNED ) / 76
----
NULL

skipif mysql # not compatible
query I rowsort label-973
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * ) * + COUNT ( * ) - - ( - AVG ( - + 25 ) ) + CAST ( NULL AS INTEGER ) / 76
----
NULL

query II rowsort
SELECT DISTINCT + 74, 13 * ( - 46 ) AS col1
----
74
-598

query II rowsort
SELECT DISTINCT + + 88 AS col1, 78 - - 86
----
88
164

query I rowsort
SELECT - + 62 * - 57 AS col2
----
3534

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

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL - - COUNT ( * ) * + 62 * - COUNT ( ALL + 47 ) AS col1
----
-62

query I rowsort
SELECT + 75 * + 20
----
1500

query I rowsort
SELECT - 94 * + 29 AS col1
----
-2726

query I rowsort
SELECT - ( + ( - 68 ) ) * - - 53 + - + 91 AS col0
----
3513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-981
SELECT ALL - 90 * + 31 + - - AVG ( - 74 ) * - ( 41 ) * + 33 - ( - + 22 ) + + + 32 / - - 72 + + 62 - + 63 - - - CAST( NULL AS SIGNED ) * - + 94 / + + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL - 90 * + 31 + - - AVG ( - 74 ) * - ( 41 ) * + 33 - ( - + 22 ) + + + 32 / - - 72 + + 62 - + 63 - - - CAST ( NULL AS INTEGER ) * - + 94 / + + 64 AS col0
----
NULL

query I rowsort
SELECT + + 2 col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-983
SELECT ALL + CAST( + 64 AS SIGNED ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL + CAST ( + 64 AS INTEGER ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT DISTINCT NULLIF ( + - 40, - + COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT NULLIF ( + - 40, - + COUNT ( * ) )
----
-40

query I rowsort
SELECT ALL ( - - 71 ) AS col2
----
71

query I rowsort
SELECT DISTINCT ( + 92 ) col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT ALL COUNT( * ) + - CASE 67 WHEN - 87 THEN + - ( + + MIN( - 27 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL COUNT ( * ) + - CASE 67 WHEN - 87 THEN + - ( + + MIN ( - 27 ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-988
SELECT ALL CAST( 96 AS SIGNED ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL CAST ( 96 AS INTEGER ) AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-989
SELECT - 29 DIV - 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-989
SELECT - 29 / - 54 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-990
SELECT 80 + 49 DIV - ( COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-990
SELECT 80 + 49 / - ( COUNT ( * ) )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-991
SELECT ALL + MAX( ALL + 15 ) + 2 + 4 AS col0, 85 * - 53
----
21
-4505

skipif mysql # not compatible
query II rowsort label-991
SELECT ALL + MAX ( ALL + 15 ) + 2 + 4 AS col0, 85 * - 53
----
21
-4505

query II rowsort
SELECT 89 + + - 1, 75 AS col1
----
88
75

query I rowsort
SELECT 34 - - 27 AS col2
----
61

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

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

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

skipif mysql # not compatible
query I rowsort label-995
SELECT COUNT ( * ) + + - 6 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT DISTINCT SUM( ALL 48 ) * + - 95 * + 45 AS col1
----
-205200

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT SUM ( ALL 48 ) * + - 95 * + 45 AS col1
----
-205200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-997
SELECT DISTINCT + COUNT( * ) + - + 53 AS col0, CAST( + 12 AS SIGNED ) AS col1
----
-52
12

skipif mysql # not compatible
query II rowsort label-997
SELECT DISTINCT + COUNT ( * ) + - + 53 AS col0, CAST ( + 12 AS INTEGER ) AS col1
----
-52
12

query I rowsort
SELECT ( + 19 ) + - 62 + - 66 * + - 49
----
3191

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

query I rowsort
SELECT + NULLIF ( + - 90, + NULLIF ( + ( ( - ( + 31 ) ) ), 16 ) ) * + NULLIF ( + CASE - - 98 WHEN 23 + + + 97 THEN NULL WHEN - 55 THEN - + 39 END, + - 13 ) + + - 24 - - ( 21 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1001
SELECT + - MAX( + CASE 92 WHEN - + 21 THEN NULL WHEN 38 * + + 13 + + 53 + + NULLIF ( + + 21, - COALESCE ( - - 68, + 22 ) ) * - 72 * + + 68 THEN - + 70 ELSE + 1 + + CAST( - 18 AS SIGNED ) END ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1001
SELECT + - MAX ( + CASE 92 WHEN - + 21 THEN NULL WHEN 38 * + + 13 + + 53 + + NULLIF ( + + 21, - COALESCE ( - - 68, + 22 ) ) * - 72 * + + 68 THEN - + 70 ELSE + 1 + + CAST ( - 18 AS INTEGER ) END ) AS col0
----
17

query I rowsort
SELECT DISTINCT ( - - 24 ) - + 62 - - 43
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT DISTINCT 77 - - MIN( 15 ) col1
----
92

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT 77 - - MIN ( 15 ) col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT SUM( - ( 42 ) ) * - 69 AS col0
----
2898

skipif mysql # not compatible
query I rowsort label-1004
SELECT SUM ( - ( 42 ) ) * - 69 AS col0
----
2898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1005
SELECT - MAX( ALL + 82 ) DIV MIN( DISTINCT 80 ) * - 55 + - 15 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-1005
SELECT - MAX ( ALL + 82 ) / MIN ( DISTINCT 80 ) * - 55 + - 15 AS col0
----
40

query I rowsort
SELECT ALL - + NULLIF ( + + 45, - 38 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-1007
SELECT + + ( - 22 ) AS col0, - MAX( ALL - 98 )
----
-22
98

skipif mysql # not compatible
query II rowsort label-1007
SELECT + + ( - 22 ) AS col0, - MAX ( ALL - 98 )
----
-22
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT + 61 * + + 15 * + COUNT( * )
----
915

skipif mysql # not compatible
query I rowsort label-1009
SELECT + 61 * + + 15 * + COUNT ( * )
----
915

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT ALL - + COALESCE ( - + 97, - 30, + - COUNT( * ) * - COALESCE ( 19, 11 - + 23 ) )
----
97

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL - + COALESCE ( - + 97, - 30, + - COUNT ( * ) * - COALESCE ( 19, 11 - + 23 ) )
----
97

query I rowsort
SELECT 50 + + - 20
----
30

query I rowsort
SELECT ALL + 94 + + ( - 18 ) + - 12 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT 90 + - COUNT( 33 ) + - ( - ( - + 83 ) ) + + 11
----
17

skipif mysql # not compatible
query I rowsort label-1013
SELECT 90 + - COUNT ( 33 ) + - ( - ( - + 83 ) ) + + 11
----
17

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

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - 31 + + - ( + + COUNT ( * ) ) AS col2
----
-32

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

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT + COUNT ( * ) / COUNT ( 53 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT DISTINCT - 49 + + SUM( - 63 ) * - + 15
----
896

skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT - 49 + + SUM ( - 63 ) * - + 15
----
896

query I rowsort
SELECT ( - - 60 ) * + 84
----
5040

query II rowsort
SELECT 26 AS col0, 89 AS col0
----
26
89

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

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL - COUNT ( * ) + - 41 AS col1
----
-42

query I rowsort
SELECT DISTINCT + 77 + + - 47 + + 96 AS col2
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT 99 DIV - - 76 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1021
SELECT 99 / - - 76 AS col2
----
1

query I rowsort
SELECT ALL - 32 + - 12 col2
----
-44

query I rowsort
SELECT ALL + 32 + 63
----
95

query I rowsort
SELECT 24 * + 8 AS col0
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1025
SELECT COUNT( * ) + ( - - 58 ) + - + 15 * - - CAST( NULL AS SIGNED ) / 24 / 9 * - ( 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1025
SELECT COUNT ( * ) + ( - - 58 ) + - + 15 * - - CAST ( NULL AS INTEGER ) / 24 / 9 * - ( 37 )
----
NULL

query I rowsort
SELECT 34 * - 9 AS col2
----
-306

onlyif mysql # DIV for integer division: 
query I rowsort label-1027
SELECT DISTINCT + NULLIF ( 14, - 53 ) DIV - 31 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1027
SELECT DISTINCT + NULLIF ( 14, - 53 ) / - 31 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1028
SELECT CASE WHEN NOT + 52 <= NULL THEN 4 - - - 97 ELSE NULL END * - COUNT( * ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1028
SELECT CASE WHEN NOT + 52 <= NULL THEN 4 - - - 97 ELSE NULL END * - COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT + 16 * - 6
----
-96

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

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

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

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

query I rowsort
SELECT ALL - 84 * 32 * - + ( - + 66 )
----
-177408

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT + CASE WHEN NOT + 21 IS NOT NULL THEN NULL ELSE - COUNT( * ) + 8 END
----
7

skipif mysql # not compatible
query I rowsort label-1034
SELECT + CASE WHEN NOT + 21 IS NOT NULL THEN NULL ELSE - COUNT ( * ) + 8 END
----
7

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

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

query II rowsort
SELECT DISTINCT - 67, + 35 AS col1
----
-67
35

query II rowsort
SELECT ALL - 44, + 12 AS col2
----
-44
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1038
SELECT DISTINCT - 40 + - COUNT( * ) - - - 1 / - MIN( DISTINCT - + ( + + 2 ) ) * - 65 - - CASE 17 WHEN - - 54 + COUNT( * ) * - COALESCE ( + 43, - 92 * + - 46 / + 10 ) THEN NULL ELSE - 1 + - COUNT( DISTINCT - 35 ) + + 25 * - CAST( + - 47 AS SIGNED ) + - 89 END / + CAST( NULL AS SIGNED ) + 50 + - ( - + 77 ) + 40 AS col2, 63 + - 45 col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-1038
SELECT DISTINCT - 40 + - COUNT ( * ) - - - 1 / - MIN ( DISTINCT - + ( + + 2 ) ) * - 65 - - CASE 17 WHEN - - 54 + COUNT ( * ) * - COALESCE ( + 43, - 92 * + - 46 / + 10 ) THEN NULL ELSE - 1 + - COUNT ( DISTINCT - 35 ) + + 25 * - CAST ( + - 47 AS INTEGER ) + - 89 END / + CAST ( NULL AS INTEGER ) + 50 + - ( - + 77 ) + 40 AS col2, 63 + - 45 col2
----
NULL
18

query I rowsort
SELECT DISTINCT + - 75 + - 58 col0
----
-133

query I rowsort
SELECT ALL - 7 + - 90 AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1041
SELECT 64 * 48 DIV - + CAST( + COUNT( * ) AS SIGNED ) col1
----
-3072

skipif mysql # not compatible
query I rowsort label-1041
SELECT 64 * 48 / - + CAST ( + COUNT ( * ) AS INTEGER ) col1
----
-3072

query I rowsort
SELECT ALL - 96 + + - 7
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT MIN( 95 )
----
95

skipif mysql # not compatible
query I rowsort label-1043
SELECT MIN ( 95 )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1044
SELECT + 93 * + - 17 + - COALESCE ( - + 65, ( + + MIN( ALL 27 ) ) DIV 96 + + 87 ) * 28
----
239

skipif mysql # not compatible
query I rowsort label-1044
SELECT + 93 * + - 17 + - COALESCE ( - + 65, ( + + MIN ( ALL 27 ) ) / 96 + + 87 ) * 28
----
239

onlyif mysql # DIV for integer division: 
query I rowsort label-1045
SELECT + 88 DIV + + 47 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1045
SELECT + 88 / + + 47 AS col0
----
1

query I rowsort
SELECT + 0 + 91 + + - 95 + 68 * 83
----
5640

query I rowsort
SELECT + 6 * - 15
----
-90

query II rowsort
SELECT 98 AS col1, 96 + + 49 AS col2
----
98
145

query I rowsort
SELECT - NULLIF ( + 11, 16 + 79 * + 42 * + - 91 )
----
-11

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

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

query I rowsort
SELECT + 10 * 10
----
100

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

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

query I rowsort
SELECT + 63 + 54
----
117

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

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

query I rowsort
SELECT ALL + ( + 55 ) * - 46
----
-2530

onlyif mysql # aggregate syntax: 
query II rowsort label-1056
SELECT + COUNT( + ( 44 ) ) * + COUNT( * ) AS col0, + ( + 22 )
----
1
22

skipif mysql # not compatible
query II rowsort label-1056
SELECT + COUNT ( + ( 44 ) ) * + COUNT ( * ) AS col0, + ( + 22 )
----
1
22

query I rowsort
SELECT DISTINCT 86 * + + CASE - 72 WHEN + + 4 THEN - - 32 END
----
NULL

query I rowsort
SELECT - - 61 col1
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1059
SELECT - + 24 DIV - 50 AS col1, CASE + 81 WHEN + MIN( + + 73 ) * 16 * 59 * - 82 * 70 THEN NULL ELSE - 68 END + - - 48 + 99 AS col0
----
0
79

skipif mysql # not compatible
query II rowsort label-1059
SELECT - + 24 / - 50 AS col1, CASE + 81 WHEN + MIN ( + + 73 ) * 16 * 59 * - 82 * 70 THEN NULL ELSE - 68 END + - - 48 + 99 AS col0
----
0
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1060
SELECT ALL COALESCE ( - + 95, + + 64 DIV 78 DIV + - 62 + - ( + COUNT( * ) ) )
----
-95

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL COALESCE ( - + 95, + + 64 / 78 / + - 62 + - ( + COUNT ( * ) ) )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1061
SELECT - - COUNT( 85 ) DIV 5
----
0

skipif mysql # not compatible
query I rowsort label-1061
SELECT - - COUNT ( 85 ) / 5
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1062
SELECT - 2 DIV + COUNT( - 68 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1062
SELECT - 2 / + COUNT ( - 68 ) AS col2
----
-2

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

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

query I rowsort
SELECT - COALESCE ( + - 44, - 76, - - 96 ) * - 68 * 33 + + 3 * + 6
----
-98718

query II rowsort
SELECT - 6 AS col0, 2 AS col2
----
-6
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT + MIN( ALL - 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-1066
SELECT + MIN ( ALL - 23 ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1067
SELECT ALL 89 * + 30 * - 36 * + + 56 * + CASE - 30 WHEN + - 65 * - + MIN( ALL - + 32 ) + - SUM( DISTINCT - 57 ) - 52 * - CAST( NULL AS SIGNED ) - - + 17 THEN CAST( NULL AS SIGNED ) / CAST( + + ( - + 24 ) AS SIGNED ) + ( + 60 ) * - - COALESCE ( + 96, - - COALESCE ( 7, CASE + - ( + + 76 ) WHEN AVG ( + 46 ) THEN 48 WHEN - 59 + + 19 * + - CASE - 75 WHEN + 4 THEN NULL ELSE + COUNT( DISTINCT - 22 ) / SUM( DISTINCT 42 ) * + - CAST( NULL AS SIGNED ) + + 36 + + - CASE - 42 WHEN + COUNT( * ) * + 74 THEN + 19 + COUNT( * ) * 13 ELSE + 31 END / + 0 END - 87 * 80 THEN NULL END, - 16 ) * 29 ) * 51 END + ( 40 + + 68 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL 89 * + 30 * - 36 * + + 56 * + CASE - 30 WHEN + - 65 * - + MIN ( ALL - + 32 ) + - SUM ( DISTINCT - 57 ) - 52 * - CAST ( NULL AS INTEGER ) - - + 17 THEN CAST ( NULL AS INTEGER ) / CAST ( + + ( - + 24 ) AS INTEGER ) + ( + 60 ) * - - COALESCE ( + 96, - - COALESCE ( 7, CASE + - ( + + 76 ) WHEN AVG ( + 46 ) THEN 48 WHEN - 59 + + 19 * + - CASE - 75 WHEN + 4 THEN NULL ELSE + COUNT ( DISTINCT - 22 ) / SUM ( DISTINCT 42 ) * + - CAST ( NULL AS INTEGER ) + + 36 + + - CASE - 42 WHEN + COUNT ( * ) * + 74 THEN + 19 + COUNT ( * ) * 13 ELSE + 31 END / + 0 END - 87 * 80 THEN NULL END, - 16 ) * 29 ) * 51 END + ( 40 + + 68 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1068
SELECT - - CAST( NULL AS SIGNED ) + + + AVG ( ALL + 4 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1068
SELECT - - CAST ( NULL AS INTEGER ) + + + AVG ( ALL + 4 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1069
SELECT DISTINCT + COUNT( * ) AS col2, ( - 57 ) + 53 * - - CASE - 17 WHEN CASE + 17 WHEN COUNT( * ) + + CASE + 31 WHEN - + 92 THEN - - COUNT( * ) WHEN 68 + + 57 THEN NULL WHEN - 21 - CAST( + 41 AS SIGNED ) THEN NULL ELSE NULL END THEN NULL WHEN - + 15 + 7 THEN CASE - ( + COUNT( * ) ) WHEN - 31 THEN - + 37 + + 0 * + - 79 ELSE 57 * - COUNT( * ) * - + 60 + 85 END ELSE - 68 END + - ( - - 87 ) THEN NULL ELSE + 70 END AS col0
----
1
3653

skipif mysql # not compatible
query II rowsort label-1069
SELECT DISTINCT + COUNT ( * ) AS col2, ( - 57 ) + 53 * - - CASE - 17 WHEN CASE + 17 WHEN COUNT ( * ) + + CASE + 31 WHEN - + 92 THEN - - COUNT ( * ) WHEN 68 + + 57 THEN NULL WHEN - 21 - CAST ( + 41 AS INTEGER ) THEN NULL ELSE NULL END THEN NULL WHEN - + 15 + 7 THEN CASE - ( + COUNT ( * ) ) WHEN - 31 THEN - + 37 + + 0 * + - 79 ELSE 57 * - COUNT ( * ) * - + 60 + 85 END ELSE - 68 END + - ( - - 87 ) THEN NULL ELSE + 70 END AS col0
----
1
3653

query I rowsort
SELECT - 93 * + ( - - ( - 88 ) ) * - - 84 + + - 48 + - 90
----
687318

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT - MIN( ALL 32 ) * - 55 AS col1
----
1760

skipif mysql # not compatible
query I rowsort label-1071
SELECT - MIN ( ALL 32 ) * - 55 AS col1
----
1760

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT ALL COUNT( * ) * + + MIN( DISTINCT + 13 ) + - 13
----
0

skipif mysql # not compatible
query I rowsort label-1073
SELECT ALL COUNT ( * ) * + + MIN ( DISTINCT + 13 ) + - 13
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1076
SELECT COALESCE ( - COALESCE ( + MAX( ALL + - 78 ), 94, - + SUM( + 81 ), - - ( - 12 ) * + 42 DIV + 17 * + - 20 ), + 5 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-1076
SELECT COALESCE ( - COALESCE ( + MAX ( ALL + - 78 ), 94, - + SUM ( + 81 ), - - ( - 12 ) * + 42 / + 17 * + - 20 ), + 5 ) AS col1
----
78

query I rowsort
SELECT DISTINCT 20 * 93 + 31 + - 78
----
1813

query I rowsort
SELECT ALL - 69 * + 1 - - + 52 + 81
----
64

query I rowsort
SELECT + 46 * + 40
----
1840

onlyif mysql # DIV for integer division: 
query I rowsort label-1080
SELECT ALL - 59 DIV + - 17
----
3

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL - 59 / + - 17
----
3

query II rowsort
SELECT - ( + - 10 ), 11 + + - 27 AS col1
----
10
-16

query I rowsort
SELECT + 16 * - 23 * - 87
----
32016

query I rowsort
SELECT + 87 * - 86 AS col1
----
-7482

query I rowsort
SELECT - NULLIF ( - 17, - + 53 ) col0
----
17

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

query I rowsort
SELECT ALL - 67 * ( AVG ( ALL + 86 ) ) + 50 / + + 83 * - CASE + 88 WHEN + 93 * - 40 THEN - 0 END
----
NULL

query II rowsort
SELECT + 73 + - 70 AS col1, 73 + + 87 AS col1
----
3
160

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

skipif mysql # not compatible
query I rowsort label-1088
SELECT - - SUM ( - 77 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1089
SELECT + 31 - - 42 + - CAST( + COUNT( * ) AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-1089
SELECT + 31 - - 42 + - CAST ( + COUNT ( * ) AS INTEGER )
----
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1090
SELECT + - 1 * 66 * + COUNT( * ) / 48 * - 31 + - CAST( NULL AS DECIMAL ) + + 98 + - 29 + - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1090
SELECT + - 1 * 66 * + COUNT ( * ) / 48 * - 31 + - CAST ( NULL AS REAL ) + + 98 + - 29 + - 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT + COUNT( * ) + 61 * - ( + 71 )
----
-4330

skipif mysql # not compatible
query I rowsort label-1091
SELECT + COUNT ( * ) + 61 * - ( + 71 )
----
-4330

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL - COALESCE ( - MIN( DISTINCT 68 ), + 24 )
----
68

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL - COALESCE ( - MIN ( DISTINCT 68 ), + 24 )
----
68

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1095
SELECT ALL - 21 + - 89 col1, ( - 4 ) + + ( + CASE WHEN NULL IN ( - 52, SUM( + 78 ), + 43 + + 26, 67, + - CAST( NULL AS SIGNED ) DIV + - 78 ) THEN + - 74 ELSE 18 * CASE 31 WHEN + 19 + + ( - COUNT( * ) ) THEN 77 - - - 13 ELSE 18 END + 25 END ) - COUNT( * ) + - 94 DIV 66 AS col0
----
-110
343

skipif mysql # not compatible
query II rowsort label-1095
SELECT ALL - 21 + - 89 col1, ( - 4 ) + + ( + CASE WHEN NULL IN ( - 52, SUM ( + 78 ), + 43 + + 26, 67, + - CAST ( NULL AS INTEGER ) / + - 78 ) THEN + - 74 ELSE 18 * CASE 31 WHEN + 19 + + ( - COUNT ( * ) ) THEN 77 - - - 13 ELSE 18 END + 25 END ) - COUNT ( * ) + - 94 / 66 AS col0
----
-110
343

onlyif mysql # DIV for integer division: 
query I rowsort label-1096
SELECT ALL 49 DIV 47 + - + 7
----
-6

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL 49 / 47 + - + 7
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1097
SELECT ALL 87 DIV 88 + - - ( COUNT( * ) ) + 52 - + 97 + + 79
----
35

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL 87 / 88 + - - ( COUNT ( * ) ) + 52 - + 97 + + 79
----
35

query I rowsort
SELECT ALL - + ( + 72 ) + + 95 AS col2
----
23

query II rowsort
SELECT 96 * - - 39 col0, 47 * - 41 - - + 21
----
3744
-1906

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT 25 DIV + ( 58 )
----
0

skipif mysql # not compatible
query I rowsort label-1100
SELECT 25 / + ( 58 )
----
0

query II rowsort
SELECT + 6 AS col1, - 16 * NULLIF ( + 17, - ( + 23 ) ) + 85
----
6
-187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1102
SELECT DISTINCT + 45 - - 22 * - + 99 * + CAST( - ( + - MIN( 71 ) ) AS SIGNED ) + 14 + + + 22
----
-154557

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT + 45 - - 22 * - + 99 * + CAST ( - ( + - MIN ( 71 ) ) AS INTEGER ) + 14 + + + 22
----
-154557

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT - COUNT( * ) * 25 * - - 13 - - + 6 AS col1
----
-319

skipif mysql # not compatible
query I rowsort label-1104
SELECT - COUNT ( * ) * 25 * - - 13 - - + 6 AS col1
----
-319

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT DISTINCT - MIN( - - 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT - MIN ( - - 32 ) AS col1
----
-32

query I rowsort
SELECT ALL - ( - - 31 ) col0
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1107
SELECT - 46 * - + 96 + 7 + + 9 + + 14 - - - 72 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1107
SELECT - 46 * - + 96 + 7 + + 9 + + 14 - - - 72 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT + 27, ( + - COUNT( * ) ) + - - 14 + + 7 AS col0
----
27
20

skipif mysql # not compatible
query II rowsort label-1108
SELECT + 27, ( + - COUNT ( * ) ) + - - 14 + + 7 AS col0
----
27
20

query I rowsort
SELECT 50 * + ( 54 ) AS col2
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT DISTINCT - COUNT( - + 35 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT - COUNT ( - + 35 ) AS col2
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT 40 DIV + + 74
----
0

skipif mysql # not compatible
query I rowsort label-1112
SELECT 40 / + + 74
----
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1115
SELECT DISTINCT + 85 + - 58 - + + 45 + 68 + + ( 87 ) DIV - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT + 85 + - 58 - + + 45 + 68 + + ( 87 ) / - COUNT ( * )
----
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL + ( + COALESCE ( + 9, + - 57 * - ( + 51 ), - MAX( DISTINCT NULLIF ( + + ( + 71 ), + + 58 ) ) * - 52 + 25 ) )
----
9

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL + ( + COALESCE ( + 9, + - 57 * - ( + 51 ), - MAX ( DISTINCT NULLIF ( + + ( + 71 ), + + 58 ) ) * - 52 + 25 ) )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1118
SELECT 1 DIV 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1118
SELECT 1 / 5 AS col1
----
0

query I rowsort
SELECT + 28 + - + 95 AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1120
SELECT 60 + + - 63 * COALESCE ( - + CAST( - 51 AS SIGNED ), - CASE 44 WHEN + + ( COUNT( * ) ) THEN NULL ELSE ( + 26 ) END, 48 )
----
-3153

skipif mysql # not compatible
query I rowsort label-1120
SELECT 60 + + - 63 * COALESCE ( - + CAST ( - 51 AS INTEGER ), - CASE 44 WHEN + + ( COUNT ( * ) ) THEN NULL ELSE ( + 26 ) END, 48 )
----
-3153

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1122
SELECT DISTINCT 77 + - + CAST( NULL AS SIGNED ) * - 43 * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT 77 + - + CAST ( NULL AS INTEGER ) * - 43 * + 39
----
NULL

query I rowsort
SELECT DISTINCT 16 * 16 - - + 16 + - - 27 * - 17
----
-187

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT - 78 + + COUNT( + 27 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1125
SELECT - 78 + + COUNT ( + 27 ) AS col0
----
-77

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1127
SELECT ALL CASE 77 WHEN + 78 THEN 88 ELSE + 57 + - - CAST( NULL AS DECIMAL ) END + - ( + 73 ) * - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL CASE 77 WHEN + 78 THEN 88 ELSE + 57 + - - CAST ( NULL AS REAL ) END + - ( + 73 ) * - - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ALL - COUNT( ALL - 82 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL - COUNT ( ALL - 82 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT - 26 * MIN( 33 ) - - COUNT( * ) col0
----
-857

skipif mysql # not compatible
query I rowsort label-1129
SELECT - 26 * MIN ( 33 ) - - COUNT ( * ) col0
----
-857

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1130
SELECT + COALESCE ( - - 74, + CASE - 33 WHEN - + 80 THEN ( 23 ) * COALESCE ( 80, - COUNT( DISTINCT + + ( + 14 ) ) ) + - + 55 + + 27 * - 60 + - - 10 WHEN + 35 THEN NULL END + - + 81 + + 67 + + 35 DIV + 96 * - 23 DIV 24, - + 33 * - + CASE + - 1 WHEN 11 THEN - 97 ELSE NULL END ) * - - 36 + - - 34 AS col1
----
2698

skipif mysql # not compatible
query I rowsort label-1130
SELECT + COALESCE ( - - 74, + CASE - 33 WHEN - + 80 THEN ( 23 ) * COALESCE ( 80, - COUNT ( DISTINCT + + ( + 14 ) ) ) + - + 55 + + 27 * - 60 + - - 10 WHEN + 35 THEN NULL END + - + 81 + + 67 + + 35 / + 96 * - 23 / 24, - + 33 * - + CASE + - 1 WHEN 11 THEN - 97 ELSE NULL END ) * - - 36 + - - 34 AS col1
----
2698

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT MIN( - 28 ) + - 60 * - 99 + 72 AS col1
----
5984

skipif mysql # not compatible
query I rowsort label-1131
SELECT MIN ( - 28 ) + - 60 * - 99 + 72 AS col1
----
5984

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT DISTINCT 77 * - CASE - COUNT( * ) WHEN 34 THEN NULL ELSE 38 END
----
-2926

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT 77 * - CASE - COUNT ( * ) WHEN 34 THEN NULL ELSE 38 END
----
-2926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1133
SELECT 32 * + 89 / COUNT( * ) * + 94 * + - 63 + 18 - - 21 + + - 99 * + - 36 * - + SUM( ALL - 38 ) * + COUNT( * ) / + 60 + 57 + - - 44 - 13 + + 23 * 76 + + CAST( NULL AS SIGNED ) * 18 / - SUM( ALL 51 ) / - 87 * - - MIN( DISTINCT + 55 ) + - 66 * + + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT 32 * + 89 / COUNT ( * ) * + 94 * + - 63 + 18 - - 21 + + - 99 * + - 36 * - + SUM ( ALL - 38 ) * + COUNT ( * ) / + 60 + 57 + - - 44 - 13 + + 23 * 76 + + CAST ( NULL AS INTEGER ) * 18 / - SUM ( ALL 51 ) / - 87 * - - MIN ( DISTINCT + 55 ) + - 66 * + + 93 AS col0
----
NULL

query I rowsort
SELECT 34 + + 95
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT ( 79 ) DIV - 11
----
-7

skipif mysql # not compatible
query I rowsort label-1135
SELECT ( 79 ) / - 11
----
-7

query I rowsort
SELECT 44 + - - 80
----
124

query I rowsort
SELECT 50 + + ( - 90 ) + 26 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT COUNT( - 63 ) * ( + 2 ) + + 18 + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-1138
SELECT COUNT ( - 63 ) * ( + 2 ) + + 18 + + COUNT ( * )
----
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT DISTINCT - SUM( ALL ( - 62 ) )
----
62

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT - SUM ( ALL ( - 62 ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT DISTINCT - 97 * + - COUNT( * ) col2
----
97

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT - 97 * + - COUNT ( * ) col2
----
97

query I rowsort
SELECT 33 * + ( + 20 ) * - 97 AS col2
----
-64020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1143
SELECT ALL - 6 + + COUNT( * ) * 78 DIV + COUNT( * ) * + COUNT( DISTINCT + 67 )
----
72

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL - 6 + + COUNT ( * ) * 78 / + COUNT ( * ) * + COUNT ( DISTINCT + 67 )
----
72

query I rowsort
SELECT + ( - 7 ) - - 25 - 60 + + 46 * + 63 + + 91 * + - 89 AS col1
----
-5243

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1146
SELECT + COALESCE ( - + 38, CAST( NULL AS SIGNED ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-1146
SELECT + COALESCE ( - + 38, CAST ( NULL AS INTEGER ) ) AS col2
----
-38

query I rowsort
SELECT - - 39 col1
----
39

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

query I rowsort
SELECT DISTINCT + 74 + - - 22
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-1150
SELECT ALL 66 + - 56 AS col2, COALESCE ( - 38, 33 DIV ( + - 51 ) - - CASE - 59 WHEN + + 0 THEN + 98 WHEN - 43 DIV - ( - 93 ) THEN COALESCE ( + 35, - 75, + 60 ) - + - ( - 78 ) ELSE NULL END DIV 19, + + 34 ) - + 14 AS col1
----
10
-52

skipif mysql # not compatible
query II rowsort label-1150
SELECT ALL 66 + - 56 AS col2, COALESCE ( - 38, 33 / ( + - 51 ) - - CASE - 59 WHEN + + 0 THEN + 98 WHEN - 43 / - ( - 93 ) THEN COALESCE ( + 35, - 75, + 60 ) - + - ( - 78 ) ELSE NULL END / 19, + + 34 ) - + 14 AS col1
----
10
-52

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

skipif mysql # not compatible
query II rowsort label-1151
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 96 AS col0, 41 AS col2
----
NULL
41

onlyif mysql # aggregate syntax: 
query II rowsort label-1152
SELECT DISTINCT + + 66 + + + 56 AS col1, + COUNT( * ) AS col2
----
122
1

skipif mysql # not compatible
query II rowsort label-1152
SELECT DISTINCT + + 66 + + + 56 AS col1, + COUNT ( * ) AS col2
----
122
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1153
SELECT + 76 DIV - - 13 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1153
SELECT + 76 / - - 13 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ALL + 80 - + SUM( + - 99 ) col2
----
179

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL + 80 - + SUM ( + - 99 ) col2
----
179

query II rowsort
SELECT + - 69 * + 0, - 46 AS col2
----
0
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL 68 * - - 60 + - 22 * - - ( - COUNT( * ) ) AS col0
----
4102

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL 68 * - - 60 + - 22 * - - ( - COUNT ( * ) ) AS col0
----
4102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1158
SELECT - - COUNT( * ) + + 27 + - + 13 + - 13 DIV - 95 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1158
SELECT - - COUNT ( * ) + + 27 + - + 13 + - 13 / - 95 AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1159
SELECT + - 19 DIV - 19 * COUNT( * ) + ( + 72 )
----
73

skipif mysql # not compatible
query I rowsort label-1159
SELECT + - 19 / - 19 * COUNT ( * ) + ( + 72 )
----
73

query I rowsort
SELECT DISTINCT - - 61 * - 37
----
-2257

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

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

query I rowsort
SELECT - ( 41 ) * - - 67
----
-2747

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

skipif mysql # not compatible
query I rowsort label-1163
SELECT - 1 / + 31 - - + 89
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1164
SELECT CASE COUNT( * ) WHEN - - 97 + SUM( - 15 ) + COALESCE ( - AVG ( ALL - 1 ), + 37 * 36, + 80, - ( 72 ) + - ( - 15 ) ) + + AVG ( ALL + CAST( NULL AS SIGNED ) ) THEN NULL WHEN - - 12 * + COUNT( * ) * - CASE + 62 WHEN 99 + COUNT( * ) * - 43 / MAX( - 1 ) + + 24 / - 25 THEN - 30 + 89 WHEN - SUM( + 86 ) THEN NULL END THEN NULL ELSE - 78 * - 7 END
----
546

skipif mysql # not compatible
query I rowsort label-1164
SELECT CASE COUNT ( * ) WHEN - - 97 + SUM ( - 15 ) + COALESCE ( - AVG ( ALL - 1 ), + 37 * 36, + 80, - ( 72 ) + - ( - 15 ) ) + + AVG ( ALL + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - - 12 * + COUNT ( * ) * - CASE + 62 WHEN 99 + COUNT ( * ) * - 43 / MAX ( - 1 ) + + 24 / - 25 THEN - 30 + 89 WHEN - SUM ( + 86 ) THEN NULL END THEN NULL ELSE - 78 * - 7 END
----
546

query I rowsort
SELECT + NULLIF ( + ( + 91 ), - 82 )
----
91

query I rowsort
SELECT + 88 - 30 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT + ( + CASE - 39 WHEN - COALESCE ( - - 6, 56 + - COUNT( * ), - 63 + + - 57 ) THEN - - COUNT( * ) / + - COALESCE ( - 41, COUNT( * ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1167
SELECT + ( + CASE - 39 WHEN - COALESCE ( - - 6, 56 + - COUNT ( * ), - 63 + + - 57 ) THEN - - COUNT ( * ) / + - COALESCE ( - 41, COUNT ( * ) ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT + MIN( DISTINCT 47 ) * 64
----
3008

skipif mysql # not compatible
query I rowsort label-1168
SELECT + MIN ( DISTINCT 47 ) * 64
----
3008

query I rowsort
SELECT ALL ( - - 24 ) * - 48 AS col0
----
-1152

query I rowsort
SELECT + 64 * - 25
----
-1600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1171
SELECT DISTINCT CASE + - CASE - 82 WHEN 82 * - 35 + 10 THEN + COUNT( DISTINCT + + 47 ) * - COUNT( * ) - - - 68 END WHEN CAST( + 88 AS SIGNED ) THEN AVG ( - ( + 9 ) ) WHEN - + NULLIF ( - 73, - 23 ) + - 52 THEN NULL WHEN - - 45 THEN NULL ELSE 60 END DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT CASE + - CASE - 82 WHEN 82 * - 35 + 10 THEN + COUNT ( DISTINCT + + 47 ) * - COUNT ( * ) - - - 68 END WHEN CAST ( + 88 AS INTEGER ) THEN AVG ( - ( + 9 ) ) WHEN - + NULLIF ( - 73, - 23 ) + - 52 THEN NULL WHEN - - 45 THEN NULL ELSE 60 END / - 75
----
0

query I rowsort
SELECT + NULLIF ( - + 79, + + 87 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1173
SELECT ALL - 84 * + COUNT( * ) * + - CAST( NULL AS SIGNED ) + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL - 84 * + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + + 50
----
NULL

query I rowsort
SELECT CASE ( 76 ) WHEN - + 27 THEN - 97 + + 52 * + 31 END AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( + 92, + + 67 + + 1 )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1176
SELECT + MIN( DISTINCT + 80 ) DIV 23
----
3

skipif mysql # not compatible
query I rowsort label-1176
SELECT + MIN ( DISTINCT + 80 ) / 23
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT - ( 53 ) DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-1177
SELECT - ( 53 ) / 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT MIN( - 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-1178
SELECT MIN ( - 39 ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT - MIN( DISTINCT - NULLIF ( 61, 15 ) ) * - - 96 * - 48
----
-281088

skipif mysql # not compatible
query I rowsort label-1179
SELECT - MIN ( DISTINCT - NULLIF ( 61, 15 ) ) * - - 96 * - 48
----
-281088

query I rowsort
SELECT + 74 + - + 50
----
24

query I rowsort
SELECT ( 44 ) * 11 - 29 AS col1
----
455

query I rowsort
SELECT ALL 99 * 36 + - 63
----
3501

onlyif mysql # DIV for integer division: 
query I rowsort label-1183
SELECT DISTINCT 73 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT 73 / + 76
----
0

query I rowsort
SELECT DISTINCT NULLIF ( + 69, - 73 ) col2
----
69

query I rowsort
SELECT - 3 + 81 AS col2
----
78

query I rowsort
SELECT DISTINCT 67 + - 13 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL + COALESCE ( 93, + COUNT( * ) * - 90 ) * 54
----
5022

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL + COALESCE ( 93, + COUNT ( * ) * - 90 ) * 54
----
5022

query I rowsort
SELECT - ( ( 24 ) ) + + ( - 82 ) AS col1
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT ALL + 76 - - NULLIF ( 11, COUNT( * ) * 58 - + 85 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL + 76 - - NULLIF ( 11, COUNT ( * ) * 58 - + 85 ) AS col0
----
87

query I rowsort
SELECT - 72 + - ( - 60 ) * + 42
----
2448

query I rowsort
SELECT DISTINCT + 58 * + 51
----
2958

query I rowsort
SELECT - ( 57 ) * 20
----
-1140

query I rowsort
SELECT - 66 * - 83
----
5478

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

query I rowsort
SELECT DISTINCT + 58 * - 90
----
-5220

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

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

query I rowsort
SELECT ALL + 13 - + ( 7 - - 86 ) AS col1
----
-80

query I rowsort
SELECT - 30 * + 49 col2
----
-1470

query I rowsort
SELECT DISTINCT NULLIF ( 78, 53 / + 5 ) AS col0
----
78

query I rowsort
SELECT DISTINCT ( 40 )
----
40

query I rowsort
SELECT - 94 * + 15
----
-1410

query I rowsort
SELECT + 0 * 48 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1203
SELECT ALL CAST( 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL CAST ( 83 AS INTEGER )
----
83

query I rowsort
SELECT - 88 + + 75 AS col0
----
-13

query I rowsort
SELECT - 64 + 36 AS col0
----
-28

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1207
SELECT ALL - 89 DIV 91 + - ( NULLIF ( 57, + 88 + - ( ( 92 ) - - 49 DIV 54 ) ) + - MIN( 71 ) * + ( + ( 12 ) DIV COALESCE ( - 14, - 51 - - 1 ) + - 65 ) ) AS col1
----
-4672

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL - 89 / 91 + - ( NULLIF ( 57, + 88 + - ( ( 92 ) - - 49 / 54 ) ) + - MIN ( 71 ) * + ( + ( 12 ) / COALESCE ( - 14, - 51 - - 1 ) + - 65 ) ) AS col1
----
-4672

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT + NULLIF ( + 28, COUNT( * ) + 47 * 27 )
----
28

skipif mysql # not compatible
query I rowsort label-1208
SELECT + NULLIF ( + 28, COUNT ( * ) + 47 * 27 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1209
SELECT DISTINCT + 56 DIV + 48 + ( 68 ) * 37
----
2517

skipif mysql # not compatible
query I rowsort label-1209
SELECT DISTINCT + 56 / + 48 + ( 68 ) * 37
----
2517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1210
SELECT + 96 DIV 95 + + 75 * + SUM( DISTINCT 73 + 48 * + 42 ) col1
----
156676

skipif mysql # not compatible
query I rowsort label-1210
SELECT + 96 / 95 + + 75 * + SUM ( DISTINCT 73 + 48 * + 42 ) col1
----
156676

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1211
SELECT DISTINCT COUNT( * ) DIV + ( - 93 * + 74 ) + 9 * + 29
----
261

skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT COUNT ( * ) / + ( - 93 * + 74 ) + 9 * + 29
----
261

query I rowsort
SELECT + CASE - 57 WHEN 64 THEN 60 + 28 * + 0 END AS col2
----
NULL

query I rowsort
SELECT ( 81 ) AS col2
----
81

query I rowsort
SELECT ALL COALESCE ( ( + 13 ), + 51, - ( 11 ) + 88 ) * - 24 + 13
----
-299

query I rowsort
SELECT + + 68 * 70
----
4760

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT DISTINCT + COUNT( * ) * 14 - - COALESCE ( - 99, - 13 + 93 ) * - COUNT( - 93 ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT + COUNT ( * ) * 14 - - COALESCE ( - 99, - 13 + 93 ) * - COUNT ( - 93 ) AS col2
----
113

query I rowsort
SELECT ALL - COALESCE ( - 43, 72 * - 62, 66 )
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1219
SELECT + ( - 83 ) DIV - ( 89 * 88 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1219
SELECT + ( - 83 ) / - ( 89 * 88 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT ALL COUNT( * ) - - 17 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL COUNT ( * ) - - 17 AS col1
----
18

query I rowsort
SELECT 79 * - 27
----
-2133

query I rowsort
SELECT - 40 * 16 AS col2
----
-640

query I rowsort
SELECT 25 - 16 col2
----
9

query I rowsort
SELECT - ( 65 ) - 10
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1225
SELECT 14 DIV + 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1225
SELECT 14 / + 19 AS col0
----
0

query I rowsort
SELECT + 6 * 97
----
582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1227
SELECT DISTINCT - COUNT( * ) DIV - CASE COUNT( * ) * + 96 + - COALESCE ( - 65 + CAST( - 34 AS SIGNED ), 77 ) WHEN 25 THEN NULL ELSE + 13 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1227
SELECT DISTINCT - COUNT ( * ) / - CASE COUNT ( * ) * + 96 + - COALESCE ( - 65 + CAST ( - 34 AS INTEGER ), 77 ) WHEN 25 THEN NULL ELSE + 13 END AS col1
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1230
SELECT ALL - 3 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL - 3 / - 45
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1231
SELECT 94 DIV COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1231
SELECT 94 / COUNT ( * ) AS col0
----
94

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

skipif mysql # not compatible
query I rowsort label-1232
SELECT + COUNT ( * ) - 90 AS col1
----
-89

query I rowsort
SELECT - 56 + 81 AS col0
----
25

query I rowsort
SELECT DISTINCT + - 94 * 1 col2
----
-94

query I rowsort
SELECT ALL - ( + 3 ) * 2 AS col2
----
-6

query I rowsort
SELECT 15 * + 48 AS col0
----
720

query I rowsort
SELECT 18 + + 17 + - 77
----
-42

query I rowsort
SELECT 60 + 43 * - 73 AS col1
----
-3079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1239
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 23 * 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 23 * 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ALL - COUNT( * ) + + - 59 * + 11 AS col1
----
-650

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL - COUNT ( * ) + + - 59 * + 11 AS col1
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT ALL + 56 + 77 * COALESCE ( - SUM( ALL + 79 ), + 85 - + SUM( DISTINCT + 54 ) )
----
-6027

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL + 56 + 77 * COALESCE ( - SUM ( ALL + 79 ), + 85 - + SUM ( DISTINCT + 54 ) )
----
-6027

query I rowsort
SELECT ALL + 10 + - 71 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT DISTINCT + COUNT( * ) + - 42 + - 96
----
-137

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT + COUNT ( * ) + - 42 + - 96
----
-137

query I rowsort
SELECT 59 * - 42 * 6 col2
----
-14868

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1245
SELECT + COUNT( DISTINCT - 7 ) DIV - 95 + + COUNT( 66 + 15 ) * 62 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-1245
SELECT + COUNT ( DISTINCT - 7 ) / - 95 + + COUNT ( 66 + 15 ) * 62 AS col2
----
62

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

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

query I rowsort
SELECT ALL + 11 + + + 43
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT ALL - 47 * COUNT( * ) * 69
----
-3243

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL - 47 * COUNT ( * ) * 69
----
-3243

query I rowsort
SELECT 49 - + - 7 AS col2
----
56

query I rowsort
SELECT 85 * + + 6
----
510

onlyif mysql # DIV for integer division: 
query I rowsort label-1251
SELECT ALL 62 + + 36 + + 14 * 90 DIV 83
----
113

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL 62 + + 36 + + 14 * 90 / 83
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-1252
SELECT DISTINCT 27 DIV + + 24 + + 76 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT 27 / + + 24 + + 76 AS col1
----
77

query I rowsort
SELECT ALL - + 72 * 73 * + 0
----
0

query I rowsort
SELECT 60 - + - 46 + + 16
----
122

query I rowsort
SELECT DISTINCT - COALESCE ( 79, 39 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT ALL - COUNT( DISTINCT - 20 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL - COUNT ( DISTINCT - 20 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1257
SELECT + MIN( DISTINCT 72 ) * NULLIF ( 12, CAST( NULL AS SIGNED ) + 92 ) + 41
----
905

skipif mysql # not compatible
query I rowsort label-1257
SELECT + MIN ( DISTINCT 72 ) * NULLIF ( 12, CAST ( NULL AS INTEGER ) + 92 ) + 41
----
905

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT + 38 * + - COUNT( * ) + 27
----
-11

skipif mysql # not compatible
query I rowsort label-1258
SELECT + 38 * + - COUNT ( * ) + 27
----
-11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1260
SELECT - + CAST( 63 AS SIGNED ) * + 38 - - 84
----
-2310

skipif mysql # not compatible
query I rowsort label-1260
SELECT - + CAST ( 63 AS INTEGER ) * + 38 - - 84
----
-2310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1261
SELECT + CAST( 23 AS SIGNED ) + + 5
----
28

skipif mysql # not compatible
query I rowsort label-1261
SELECT + CAST ( 23 AS INTEGER ) + + 5
----
28

query I rowsort
SELECT ALL - 1 * - 70 * 22 AS col0
----
1540

query I rowsort
SELECT - 4 * + + 93 AS col0
----
-372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1264
SELECT DISTINCT + CAST( - + 39 AS SIGNED ) * 36
----
-1404

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT + CAST ( - + 39 AS INTEGER ) * 36
----
-1404

query I rowsort
SELECT - 31 + - + 39
----
-70

query I rowsort
SELECT - COALESCE ( 2, 51 + - 67 ) + 99 AS col0
----
97

query I rowsort
SELECT DISTINCT 19 * - 45 * ( + 75 )
----
-64125

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

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT - 49 + + + COUNT ( * ) + + 62 AS col1
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT - - COALESCE ( 21, 47 * - COUNT( + 17 ), + 39 + + 98 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1270
SELECT - - COALESCE ( 21, 47 * - COUNT ( + 17 ), + 39 + + 98 ) AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1271
SELECT ALL CAST( NULL AS SIGNED ) + 61 / + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL CAST ( NULL AS INTEGER ) + 61 / + 28 AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT 71 + - 88 - 27 * + 76
----
-2069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1274
SELECT ALL + COUNT( DISTINCT - - 61 ) DIV + - 33 * - CASE - 93 WHEN + COUNT( * ) THEN NULL ELSE + ( NULLIF ( 31, 25 ) ) + 44 END + CAST( 61 AS SIGNED ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL + COUNT ( DISTINCT - - 61 ) / + - 33 * - CASE - 93 WHEN + COUNT ( * ) THEN NULL ELSE + ( NULLIF ( 31, 25 ) ) + 44 END + CAST ( 61 AS INTEGER ) AS col1
----
61

query I rowsort
SELECT DISTINCT - 96 + + ( + 24 ) * - 24 AS col1
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT ALL 5 + MIN( ALL + 54 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL 5 + MIN ( ALL + 54 ) AS col0
----
59

query I rowsort
SELECT ALL - 78 + - 35
----
-113

query I rowsort
SELECT ALL + 24 + + 64 + + - ( 22 ) * 45
----
-902

query I rowsort
SELECT 59 + - - 4 AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1280
SELECT 62 * - ( + COUNT( * ) ) * NULLIF ( + 31 + 24 * - CAST( NULL AS SIGNED ), 43 * + 90 + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1280
SELECT 62 * - ( + COUNT ( * ) ) * NULLIF ( + 31 + 24 * - CAST ( NULL AS INTEGER ), 43 * + 90 + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1281
SELECT - COUNT( * ), CASE + - 80 WHEN 62 THEN + 62 * ( 49 ) - 46 END * CASE ( 54 ) * + 31 WHEN - 32 THEN + ( 97 ) + CASE + 69 + - 43 / COUNT( * ) WHEN - 99 THEN + 66 END ELSE NULL END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1281
SELECT - COUNT ( * ), CASE + - 80 WHEN 62 THEN + 62 * ( 49 ) - 46 END * CASE ( 54 ) * + 31 WHEN - 32 THEN + ( 97 ) + CASE + 69 + - 43 / COUNT ( * ) WHEN - 99 THEN + 66 END ELSE NULL END AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT ALL - 79 + - - 79 * + + COALESCE ( + 38, - CASE - SUM( + 36 ) WHEN COUNT( * ) + 2 THEN 70 WHEN COUNT( * ) THEN NULL ELSE NULL END + 31 * + 22, - 79 )
----
2923

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL - 79 + - - 79 * + + COALESCE ( + 38, - CASE - SUM ( + 36 ) WHEN COUNT ( * ) + 2 THEN 70 WHEN COUNT ( * ) THEN NULL ELSE NULL END + 31 * + 22, - 79 )
----
2923

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT - MIN( DISTINCT + - 6 ) col1
----
6

skipif mysql # not compatible
query I rowsort label-1283
SELECT - MIN ( DISTINCT + - 6 ) col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1284
SELECT CAST( NULL AS DECIMAL ) + - COUNT( * ) * + + 11 * 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT CAST ( NULL AS REAL ) + - COUNT ( * ) * + + 11 * 91 AS col0
----
NULL

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

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

query I rowsort
SELECT 59 + + 49 AS col0
----
108

query I rowsort
SELECT ALL + 8 * ( - 81 ) - 6 AS col1
----
-654

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

query I rowsort
SELECT COALESCE ( 15, - - 6 * 26 ) AS col0
----
15

query I rowsort
SELECT DISTINCT ( - 73 ) * + 1 - 8 * 36
----
-361

query I rowsort
SELECT DISTINCT - COALESCE ( - 76, - 34 ) AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1292
SELECT ALL - 16 DIV 63 col0
----
0

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL - 16 / 63 col0
----
0

query II rowsort
SELECT ALL + - 60 AS col0, 83 + + 63 + ( - 29 ) AS col1
----
-60
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1294
SELECT + CAST( + MAX( + 78 ) AS SIGNED ) DIV 88 + - COUNT( ALL + 70 + - 97 * + 65 ) * CAST( 9 + ( + 90 ) AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-1294
SELECT + CAST ( + MAX ( + 78 ) AS INTEGER ) / 88 + - COUNT ( ALL + 70 + - 97 * + 65 ) * CAST ( 9 + ( + 90 ) AS INTEGER )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT - 43 * + 51 * + ( - COUNT( DISTINCT + 86 ) ) + 51 AS col2
----
2244

skipif mysql # not compatible
query I rowsort label-1295
SELECT - 43 * + 51 * + ( - COUNT ( DISTINCT + 86 ) ) + 51 AS col2
----
2244

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT - - 2 + - COUNT( 49 ) + 21 * 2 col2
----
43

skipif mysql # not compatible
query I rowsort label-1296
SELECT - - 2 + - COUNT ( 49 ) + 21 * 2 col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1297
SELECT ALL + 96 DIV + + 14
----
6

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL + 96 / + + 14
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT + + NULLIF ( - COUNT( * ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT + + NULLIF ( - COUNT ( * ), - COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1299
SELECT + - 8 AS col2, + 7 DIV 79 DIV - 99 + - 31
----
-8
-31

skipif mysql # not compatible
query II rowsort label-1299
SELECT + - 8 AS col2, + 7 / 79 / - 99 + - 31
----
-8
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT + - 11 + - COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1300
SELECT + - 11 + - COUNT ( * ) AS col1
----
-12

query I rowsort
SELECT ALL + + 65 * 47 * + + 25
----
76375

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1302
SELECT - CAST( - COALESCE ( - + CAST( NULL AS SIGNED ), 62 + - 4 * - 19 ) AS SIGNED ) DIV - ( 3 - ( + 27 ) )
----
5

skipif mysql # not compatible
query I rowsort label-1302
SELECT - CAST ( - COALESCE ( - + CAST ( NULL AS INTEGER ), 62 + - 4 * - 19 ) AS INTEGER ) / - ( 3 - ( + 27 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT - 59 * CASE - COUNT( * ) WHEN COUNT( * ) * 19 + 86 THEN 49 ELSE + 64 END + 69
----
-3707

skipif mysql # not compatible
query I rowsort label-1303
SELECT - 59 * CASE - COUNT ( * ) WHEN COUNT ( * ) * 19 + 86 THEN 49 ELSE + 64 END + 69
----
-3707

query I rowsort
SELECT + + 84 * - + 23 AS col2
----
-1932

query I rowsort
SELECT DISTINCT - + 52 + + 68
----
16

query I rowsort
SELECT ALL + 20 + 31 + + 69 + + 96 * COALESCE ( + 77, 8 )
----
7512

query I rowsort
SELECT - - COALESCE ( + 67, + + 11 + 63 * 86 ) - - 84 AS col2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT - + 40 - - 49 * - + MIN( ALL + 55 ) + ( + 38 )
----
-2697

skipif mysql # not compatible
query I rowsort label-1308
SELECT - + 40 - - 49 * - + MIN ( ALL + 55 ) + ( + 38 )
----
-2697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1309
SELECT - COUNT( * ) * - CASE - NULLIF ( 51, + 22 / - 82 + 61 ) WHEN 8 THEN 83 + + 40 ELSE NULL END * CAST( NULL AS SIGNED ) + - AVG ( 79 + - 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1309
SELECT - COUNT ( * ) * - CASE - NULLIF ( 51, + 22 / - 82 + 61 ) WHEN 8 THEN 83 + + 40 ELSE NULL END * CAST ( NULL AS INTEGER ) + - AVG ( 79 + - 13 )
----
NULL

query I rowsort
SELECT DISTINCT - ( - 17 ) + - 79 col2
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1311
SELECT - MAX( - 48 ), - 92 + + - 46 + + ( + 19 ) AS col2
----
48
-119

skipif mysql # not compatible
query II rowsort label-1311
SELECT - MAX ( - 48 ), - 92 + + - 46 + + ( + 19 ) AS col2
----
48
-119

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

query I rowsort
SELECT ALL + 83 * - 78 AS col1
----
-6474

query I rowsort
SELECT + 94 - + 5 AS col2
----
89

query I rowsort
SELECT DISTINCT 17 + - - 95 col1
----
112

query I rowsort
SELECT - 81 * 77 AS col1
----
-6237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1317
SELECT ALL 52 - 61 * - 40 * - + COUNT( * ) + MAX( ALL NULLIF ( ( + 78 ), + NULLIF ( 44, 54 ) DIV 62 - 28 ) + - 28 DIV - 78 )
----
-2310

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL 52 - 61 * - 40 * - + COUNT ( * ) + MAX ( ALL NULLIF ( ( + 78 ), + NULLIF ( 44, 54 ) / 62 - 28 ) + - 28 / - 78 )
----
-2310

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

skipif mysql # not compatible
query I rowsort label-1318
SELECT - ( + + COUNT ( * ) ) * - COUNT ( DISTINCT + - 19 ) / - 17
----
0

query I rowsort
SELECT + ( + 23 ) * - 14
----
-322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1320
SELECT ALL 10 DIV - MIN( DISTINCT + ( - 87 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL 10 / - MIN ( DISTINCT + ( - 87 ) ) AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1322
SELECT + COUNT( CAST( NULL AS SIGNED ) ) * + + 84 * 41 - 95
----
-95

skipif mysql # not compatible
query I rowsort label-1322
SELECT + COUNT ( CAST ( NULL AS INTEGER ) ) * + + 84 * 41 - 95
----
-95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1323
SELECT + COALESCE ( 25, + + 36 + CAST( NULL AS SIGNED ) DIV - 40 )
----
25

skipif mysql # not compatible
query I rowsort label-1323
SELECT + COALESCE ( 25, + + 36 + CAST ( NULL AS INTEGER ) / - 40 )
----
25

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

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

query I rowsort
SELECT - - 56 * 19 AS col2
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT DISTINCT + + COUNT( * ) * - 85 * + 12 - 92 col2
----
-1112

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT + + COUNT ( * ) * - 85 * + 12 - 92 col2
----
-1112

query I rowsort
SELECT DISTINCT - 23 * - 25 AS col0
----
575

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT - COUNT( CASE - + 37 WHEN + 79 THEN NULL ELSE - 65 END ) * + 42
----
-42

skipif mysql # not compatible
query I rowsort label-1329
SELECT - COUNT ( CASE - + 37 WHEN + 79 THEN NULL ELSE - 65 END ) * + 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT - ( 47 ) * 90 * MIN( 43 ) - + COUNT( * ) AS col1
----
-181891

skipif mysql # not compatible
query I rowsort label-1330
SELECT - ( 47 ) * 90 * MIN ( 43 ) - + COUNT ( * ) AS col1
----
-181891

query I rowsort
SELECT - - 4 - + 11 + + ( + ( 3 ) )
----
-4

query I rowsort
SELECT + 54 * + 18 + - - 51
----
1023

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1333
SELECT - COUNT( * ) * + 65 DIV - 24 + - 96 + - 81 AS col1
----
-175

skipif mysql # not compatible
query I rowsort label-1333
SELECT - COUNT ( * ) * + 65 / - 24 + - 96 + - 81 AS col1
----
-175

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT + COUNT( * ) * - - ( + - 1 ) * + 4 - 94 * + 41 col0
----
-3858

skipif mysql # not compatible
query I rowsort label-1335
SELECT + COUNT ( * ) * - - ( + - 1 ) * + 4 - 94 * + 41 col0
----
-3858

query I rowsort
SELECT ALL - + 74 * + 36 AS col0
----
-2664

query I rowsort
SELECT - 93 + 48 * 12 AS col0
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT ALL - + 40 * + 31 * - + 68 + + - COUNT( * ) AS col2
----
84319

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL - + 40 * + 31 * - + 68 + + - COUNT ( * ) AS col2
----
84319

query I rowsort
SELECT DISTINCT + + 95 * - 10 + 54 + - + 45 AS col0
----
-941

query I rowsort
SELECT - - 96 * - 54 + + - 9 AS col2
----
-5193

query I rowsort
SELECT ALL 50 * - 55 + + 88 + 74 + - 28 * + NULLIF ( 5 * 62, 59 ) col1
----
-11268

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT - COALESCE ( - ( COUNT( * ) ), - 38 ) * + - 66
----
-66

skipif mysql # not compatible
query I rowsort label-1342
SELECT - COALESCE ( - ( COUNT ( * ) ), - 38 ) * + - 66
----
-66

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

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL + ( - 7 ) * COUNT ( ALL 96 ) AS col2
----
-7

query I rowsort
SELECT - 94 + 23
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1345
SELECT - CASE 32 WHEN - CAST( + 30 AS SIGNED ) THEN - 26 + 5 WHEN 59 * + 26 THEN NULL WHEN 4 - - 66 THEN + 36 * + 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1345
SELECT - CASE 32 WHEN - CAST ( + 30 AS INTEGER ) THEN - 26 + 5 WHEN 59 * + 26 THEN NULL WHEN 4 - - 66 THEN + 36 * + 36 END
----
NULL

query I rowsort
SELECT DISTINCT - 47 * + 59 + + 15 + - 82 col1
----
-2840

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT ALL + 64 * COUNT( * ) * 97 - - ( 2 )
----
6210

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL + 64 * COUNT ( * ) * 97 - - ( 2 )
----
6210

query II rowsort
SELECT - 8, + 68 + + + ( 22 ) + + 4 AS col0
----
-8
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT + COALESCE ( - + 6, 80 + 55 + - ( + 91 ) / + 47 * 50 ) + 67 * - MAX( CASE - 24 WHEN 97 THEN NULL WHEN 92 THEN - ( + 29 ) + 60 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1349
SELECT + COALESCE ( - + 6, 80 + 55 + - ( + 91 ) / + 47 * 50 ) + 67 * - MAX ( CASE - 24 WHEN 97 THEN NULL WHEN 92 THEN - ( + 29 ) + 60 END )
----
NULL

query I rowsort
SELECT ALL + 61 - - 27 + + 90 * - 23
----
-1982

query I rowsort
SELECT - 58 * + 71 AS col0
----
-4118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1352
SELECT - 52 + COALESCE ( - 89, - + ( - - 94 ) + - CAST( NULLIF ( MIN( - ( 71 ) ), - 23 ) AS SIGNED ) ) AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-1352
SELECT - 52 + COALESCE ( - 89, - + ( - - 94 ) + - CAST ( NULLIF ( MIN ( - ( 71 ) ), - 23 ) AS INTEGER ) ) AS col0
----
-141

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

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

query I rowsort
SELECT ALL + 61 - + 96 AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1355
SELECT DISTINCT CAST( NULL AS SIGNED ), MIN( DISTINCT + 45 ) AS col1
----
NULL
45

skipif mysql # not compatible
query II rowsort label-1355
SELECT DISTINCT CAST ( NULL AS INTEGER ), MIN ( DISTINCT + 45 ) AS col1
----
NULL
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT ALL COUNT( * ) * + COALESCE ( + CASE - - 32 WHEN + 14 THEN NULL WHEN 0 - 12 THEN 14 + COUNT( * ) * 75 ELSE NULL END, 82 )
----
82

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL COUNT ( * ) * + COALESCE ( + CASE - - 32 WHEN + 14 THEN NULL WHEN 0 - 12 THEN 14 + COUNT ( * ) * 75 ELSE NULL END, 82 )
----
82

query I rowsort
SELECT DISTINCT + 34 * 54
----
1836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1358
SELECT CASE WHEN ( NOT ( - 38 BETWEEN COUNT( * ) + + 1 AND AVG ( 66 ) - 52 ) ) THEN - MIN( ALL ( + 54 ) ) WHEN NULL NOT BETWEEN NULL AND ( NULL ) THEN NULL END DIV 49 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1358
SELECT CASE WHEN ( NOT ( - 38 BETWEEN COUNT ( * ) + + 1 AND AVG ( 66 ) - 52 ) ) THEN - MIN ( ALL ( + 54 ) ) WHEN NULL NOT BETWEEN NULL AND ( NULL ) THEN NULL END / 49 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1359
SELECT COUNT( DISTINCT + + 69 ) * CAST( 55 AS SIGNED ) - 30 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1359
SELECT COUNT ( DISTINCT + + 69 ) * CAST ( 55 AS INTEGER ) - 30 AS col0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1360
SELECT ( + + 14 ) + 1 DIV + - COUNT( * ) + + + 84 * - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-1360
SELECT ( + + 14 ) + 1 / + - COUNT ( * ) + + + 84 * - COUNT ( * ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT ALL 4 * COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL 4 * COUNT ( * ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT 74 + 82 + ( - COUNT( * ) )
----
155

skipif mysql # not compatible
query I rowsort label-1362
SELECT 74 + 82 + ( - COUNT ( * ) )
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-1363
SELECT 58 DIV + - 82 * - 72
----
0

skipif mysql # not compatible
query I rowsort label-1363
SELECT 58 / + - 82 * - 72
----
0

query I rowsort
SELECT - 34 + - 16 * - - 11 AS col2
----
-210

query I rowsort
SELECT 89 - - - 38
----
51

query I rowsort
SELECT - CASE + 44 WHEN 1 THEN + + 99 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 85 + - 11
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1368
SELECT 38 DIV - - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1368
SELECT 38 / - - 51 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1369
SELECT ALL - 14 + - CAST( + 62 AS SIGNED ) + 50 + + 47 / - 38 * + NULLIF ( + CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ), 51 * + 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL - 14 + - CAST ( + 62 AS INTEGER ) + 50 + + 47 / - 38 * + NULLIF ( + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ), 51 * + 22 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1370
SELECT DISTINCT 40 DIV - 24 col0
----
-1

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT 40 / - 24 col0
----
-1

query II rowsort
SELECT ALL + 44 + + ( 25 ) AS col0, 48 col2
----
69
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT DISTINCT COUNT( * ) + MIN( DISTINCT + + 42 ) + + - COUNT( - NULLIF ( - 38, 97 * + 41 ) ) + - 34 * COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT COUNT ( * ) + MIN ( DISTINCT + + 42 ) + + - COUNT ( - NULLIF ( - 38, 97 * + 41 ) ) + - 34 * COUNT ( * )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1373
SELECT COUNT( * ) DIV - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1373
SELECT COUNT ( * ) / - 71 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1374
SELECT + ( NULLIF ( 23, + + 80 ) ) DIV + COUNT( DISTINCT + COALESCE ( + 7, ( 23 ) ) ) + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-1374
SELECT + ( NULLIF ( 23, + + 80 ) ) / + COUNT ( DISTINCT + COALESCE ( + 7, ( 23 ) ) ) + COUNT ( * ) AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1375
SELECT ALL 67 + - 96 * 72 AS col2, + 31 * + CASE 39 WHEN CASE 66 WHEN + ( 75 ) THEN 9 * + NULLIF ( COUNT( - 86 ), + 38 - 32 ) + 41 * COUNT( * ) WHEN - 6 THEN NULL ELSE NULL END / - COALESCE ( 76 + - 69 * COUNT( * ), ( 91 ) * + 86 ) THEN - CAST( - CASE - 83 WHEN COUNT( * ) THEN NULL WHEN 23 * + 61 THEN 78 + 76 END AS SIGNED ) ELSE NULL END * 46
----
-6845
NULL

skipif mysql # not compatible
query II rowsort label-1375
SELECT ALL 67 + - 96 * 72 AS col2, + 31 * + CASE 39 WHEN CASE 66 WHEN + ( 75 ) THEN 9 * + NULLIF ( COUNT ( - 86 ), + 38 - 32 ) + 41 * COUNT ( * ) WHEN - 6 THEN NULL ELSE NULL END / - COALESCE ( 76 + - 69 * COUNT ( * ), ( 91 ) * + 86 ) THEN - CAST ( - CASE - 83 WHEN COUNT ( * ) THEN NULL WHEN 23 * + 61 THEN 78 + 76 END AS INTEGER ) ELSE NULL END * 46
----
-6845
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT 7 + + 55 - 21 * + + 85 * SUM( DISTINCT + 85 ) AS col0
----
-151663

skipif mysql # not compatible
query I rowsort label-1376
SELECT 7 + + 55 - 21 * + + 85 * SUM ( DISTINCT + 85 ) AS col0
----
-151663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1377
SELECT DISTINCT - CAST( + 16 AS SIGNED ) * - 97
----
1552

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT - CAST ( + 16 AS INTEGER ) * - 97
----
1552

query I rowsort
SELECT ALL ( + 70 ) + + 87 + + 71 + - 98 AS col0
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1379
SELECT + CAST( NULL AS SIGNED ) + - 51 - 95 * - + 63 + 69 + - 2 * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1379
SELECT + CAST ( NULL AS INTEGER ) + - 51 - 95 * - + 63 + 69 + - 2 * - 0
----
NULL

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

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

query I rowsort
SELECT ALL - 18 + + - 74 AS col2
----
-92

query I rowsort
SELECT ALL + 12 + - + 82 AS col0
----
-70

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1384
SELECT ALL - - 22 + 33 + COUNT( * ) * - 54 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL - - 22 + 33 + COUNT ( * ) * - 54 + + CAST ( NULL AS REAL )
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1387
SELECT ALL + CAST( - 66 AS SIGNED ) - 41 AS col2
----
-107

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL + CAST ( - 66 AS INTEGER ) - 41 AS col2
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1388
SELECT 43 - + CASE - - 83 WHEN - COUNT( * ) + - MAX( ALL + 15 ) THEN NULL WHEN CASE - 87 WHEN 93 THEN NULL WHEN + 55 * - 87 THEN + COUNT( * ) - NULLIF ( - 56, CASE 57 WHEN - 66 THEN - 29 * + CAST( NULL AS SIGNED ) WHEN + 12 + ( ( COUNT( * ) ) ) * - 1 THEN NULL ELSE - 51 + MAX( ALL 30 ) / - 5 END ) * - AVG ( 51 ) END THEN 61 END + ( 89 ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1388
SELECT 43 - + CASE - - 83 WHEN - COUNT ( * ) + - MAX ( ALL + 15 ) THEN NULL WHEN CASE - 87 WHEN 93 THEN NULL WHEN + 55 * - 87 THEN + COUNT ( * ) - NULLIF ( - 56, CASE 57 WHEN - 66 THEN - 29 * + CAST ( NULL AS INTEGER ) WHEN + 12 + ( ( COUNT ( * ) ) ) * - 1 THEN NULL ELSE - 51 + MAX ( ALL 30 ) / - 5 END ) * - AVG ( 51 ) END THEN 61 END + ( 89 ) * 80
----
NULL

query I rowsort
SELECT 78 * + - 17 AS col0
----
-1326

query I rowsort
SELECT ALL - 20 * - 5
----
100

query II rowsort
SELECT - 64 AS col2, 43 * 77 * - + 25 AS col2
----
-64
-82775

query I rowsort
SELECT 62 + 22 - 43
----
41

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

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL 17 / COUNT ( * )
----
17

query I rowsort
SELECT ALL - 20 * - + 25
----
500

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1395
SELECT ALL 72, + CAST( NULL AS SIGNED ) * + 98 * - 65 col0
----
72
NULL

skipif mysql # not compatible
query II rowsort label-1395
SELECT ALL 72, + CAST ( NULL AS INTEGER ) * + 98 * - 65 col0
----
72
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT DISTINCT - 3 * + 8 DIV 7
----
-3

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT - 3 * + 8 / 7
----
-3

query I rowsort
SELECT DISTINCT + 48 * 33
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT 94 * - - SUM( + 89 )
----
8366

skipif mysql # not compatible
query I rowsort label-1398
SELECT 94 * - - SUM ( + 89 )
----
8366

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1399
SELECT MIN( ALL 66 ) - 7 DIV + 9, - 13 AS col0
----
66
-13

skipif mysql # not compatible
query II rowsort label-1399
SELECT MIN ( ALL 66 ) - 7 / + 9, - 13 AS col0
----
66
-13

query I rowsort
SELECT 68 * + 21 * - 37
----
-52836

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT COUNT( * ) * + + COUNT( + ( + - 33 ) ) * + MIN( ALL + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-1401
SELECT COUNT ( * ) * + + COUNT ( + ( + - 33 ) ) * + MIN ( ALL + 66 )
----
66

query II rowsort
SELECT - 38 AS col0, 67 AS col0
----
-38
67

onlyif mysql # DIV for integer division: 
query II rowsort label-1403
SELECT ALL 40, 99 * - - ( 84 ) + - 22 DIV + 48 + - 43 col0
----
40
8273

skipif mysql # not compatible
query II rowsort label-1403
SELECT ALL 40, 99 * - - ( 84 ) + - 22 / + 48 + - 43 col0
----
40
8273

query II rowsort
SELECT 25, 12 AS col1
----
25
12

query I rowsort
SELECT 19 + + - 64 * 98
----
-6253

query II rowsort
SELECT + 32 * + 0 col0, - ( - 32 ) + - - ( 81 ) * 5 AS col2
----
0
437

query I rowsort
SELECT ALL 71 + - 40
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1408
SELECT ALL 62 AS col2, COUNT( * ) AS col2
----
62
1

skipif mysql # not compatible
query II rowsort label-1408
SELECT ALL 62 AS col2, COUNT ( * ) AS col2
----
62
1

query I rowsort
SELECT ALL + + 58 + + - 78 + - + 95 * 98 * - + 14 * - + 70 - 60 AS col0
----
-9123880

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1410
SELECT ALL - 85 + 88 + 45 * - CAST( NULL AS DECIMAL ), 11 AS col2
----
NULL
11

skipif mysql # not compatible
query II rowsort label-1410
SELECT ALL - 85 + 88 + 45 * - CAST ( NULL AS REAL ), 11 AS col2
----
NULL
11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1412
SELECT DISTINCT + - 8 + + - CAST( - 12 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT + - 8 + + - CAST ( - 12 AS INTEGER )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1413
SELECT ALL - 82 * 36 - 31 * CAST( NULL AS SIGNED ) - + COUNT( * ) - - 86 - 90 * 68 + - 53 * ( 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL - 82 * 36 - 31 * CAST ( NULL AS INTEGER ) - + COUNT ( * ) - - 86 - 90 * 68 + - 53 * ( 99 )
----
NULL

query II rowsort
SELECT + + 86, + 55 + - 41 + 78 AS col1
----
86
92

query I rowsort
SELECT + + 29 col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1416
SELECT + 49 DIV 97 + - 94 - + ( + 44 ) + + - 44 AS col1
----
-182

skipif mysql # not compatible
query I rowsort label-1416
SELECT + 49 / 97 + - 94 - + ( + 44 ) + + - 44 AS col1
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT CASE 94 WHEN + + 87 THEN NULL ELSE - MIN( + + NULLIF ( - 1, - ( + 72 ) ) ) END - - 48 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-1417
SELECT CASE 94 WHEN + + 87 THEN NULL ELSE - MIN ( + + NULLIF ( - 1, - ( + 72 ) ) ) END - - 48 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT + 4 * + - 60 + - SUM( DISTINCT + 40 )
----
-280

skipif mysql # not compatible
query I rowsort label-1418
SELECT + 4 * + - 60 + - SUM ( DISTINCT + 40 )
----
-280

query I rowsort
SELECT + 48 + 10 - 80
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1420
SELECT + 41 AS col1, CASE + 47 WHEN - 64 * 68 * + CAST( NULL AS SIGNED ) THEN ( CASE + 55 WHEN 62 THEN + 79 ELSE NULL END ) * + 97 ELSE 16 END * + 42 + 72 * + 69
----
41
5640

skipif mysql # not compatible
query II rowsort label-1420
SELECT + 41 AS col1, CASE + 47 WHEN - 64 * 68 * + CAST ( NULL AS INTEGER ) THEN ( CASE + 55 WHEN 62 THEN + 79 ELSE NULL END ) * + 97 ELSE 16 END * + 42 + 72 * + 69
----
41
5640

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT - 71 * + COUNT( * ) * - 45 AS col1
----
3195

skipif mysql # not compatible
query I rowsort label-1422
SELECT - 71 * + COUNT ( * ) * - 45 AS col1
----
3195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1423
SELECT DISTINCT - - 40, 89 * + CAST( NULL AS SIGNED ) * + + 52 col1
----
40
NULL

skipif mysql # not compatible
query II rowsort label-1423
SELECT DISTINCT - - 40, 89 * + CAST ( NULL AS INTEGER ) * + + 52 col1
----
40
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1424
SELECT - CASE + 70 WHEN 28 THEN - + SUM( DISTINCT 85 ) END / - - CAST( - CASE + 58 WHEN + NULLIF ( + COUNT( * ), + 91 * 5 ) THEN - 48 / 54 WHEN SUM( CAST( 87 AS SIGNED ) ) * + 21 THEN 54 * 35 + 73 WHEN 96 THEN NULL END AS SIGNED ) - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1424
SELECT - CASE + 70 WHEN 28 THEN - + SUM ( DISTINCT 85 ) END / - - CAST ( - CASE + 58 WHEN + NULLIF ( + COUNT ( * ), + 91 * 5 ) THEN - 48 / 54 WHEN SUM ( CAST ( 87 AS INTEGER ) ) * + 21 THEN 54 * 35 + 73 WHEN 96 THEN NULL END AS INTEGER ) - + 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1425
SELECT ALL + CASE - 70 WHEN + 47 THEN NULL WHEN - 56 + 54 THEN - SUM( - 23 ) WHEN + 38 THEN 10 ELSE CASE 71 WHEN 79 * ( - 55 ) THEN NULL WHEN 67 THEN 49 END + 48 / - COALESCE ( 85, + CAST( NULL AS SIGNED ) - + 75 ) END / - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL + CASE - 70 WHEN + 47 THEN NULL WHEN - 56 + 54 THEN - SUM ( - 23 ) WHEN + 38 THEN 10 ELSE CASE 71 WHEN 79 * ( - 55 ) THEN NULL WHEN 67 THEN 49 END + 48 / - COALESCE ( 85, + CAST ( NULL AS INTEGER ) - + 75 ) END / - 37
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1426
SELECT ALL 67 DIV + 24 col2
----
2

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL 67 / + 24 col2
----
2

query I rowsort
SELECT - 37 * + 82 + - 58 + 1 - + + 37 * + 60 AS col0
----
-5311

query I rowsort
SELECT + 99 * - 77 + - - CASE + - ( - 38 ) WHEN - 23 THEN + AVG ( DISTINCT + 51 ) END / 73 + - 92
----
NULL

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

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

query I rowsort
SELECT + COALESCE ( + 94, - 83 )
----
94

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

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

query I rowsort
SELECT ALL 29 * - 65 AS col2
----
-1885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1433
SELECT 52 + ( + 41 ) + + COUNT( * ) - - + 88 + - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * + ( - 12 ) * + COUNT( * ) * - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1433
SELECT 52 + ( + 41 ) + + COUNT ( * ) - - + 88 + - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + ( - 12 ) * + COUNT ( * ) * - 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT SUM( ALL + - ( 2 ) ) * 65 * - 17 * 39 - 46 + + CASE - 71 WHEN - 18 THEN + 27 WHEN ( - ( 13 ) ) THEN 36 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1434
SELECT SUM ( ALL + - ( 2 ) ) * 65 * - 17 * 39 - 46 + + CASE - 71 WHEN - 18 THEN + 27 WHEN ( - ( 13 ) ) THEN 36 END AS col1
----
NULL

query I rowsort
SELECT 59 * + 15
----
885

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT + 72 * - 25 + + 98 * + + 38 + + 19 + - MAX( - - 8 ) + - 56 * + COUNT( * ) * - 22 AS col2
----
3167

skipif mysql # not compatible
query I rowsort label-1436
SELECT + 72 * - 25 + + 98 * + + 38 + + 19 + - MAX ( - - 8 ) + - 56 * + COUNT ( * ) * - 22 AS col2
----
3167

query I rowsort
SELECT ALL + 61 - - 8 * + 31 + - 9 + - 86 AS col2
----
214

query I rowsort
SELECT ( + 54 ) * 63 + - 34 + + 73 + - 36 col1
----
3405

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - COALESCE ( ( - ( + - ( MAX( ALL - - 5 ) ) ) ), - 67, ( 78 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-1439
SELECT - COALESCE ( ( - ( + - ( MAX ( ALL - - 5 ) ) ) ), - 67, ( 78 ) )
----
-5

query I rowsort
SELECT - 57 + - 84 AS col1
----
-141

query II rowsort
SELECT - 75 * 87 AS col1, - 13 AS col2
----
-6525
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT - COUNT( * ) + - + ( 50 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-1442
SELECT - COUNT ( * ) + - + ( 50 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT - MAX( 76 ) + 15 - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT - MAX ( 76 ) + 15 - COUNT ( * )
----
-62

query II rowsort
SELECT ALL + 99 * - 27, 94 AS col2
----
-2673
94

onlyif mysql # aggregate syntax: 
query II rowsort label-1445
SELECT DISTINCT + 19 + + 59 * + COUNT( * ) col2, 90 + - 41 col0
----
78
49

skipif mysql # not compatible
query II rowsort label-1445
SELECT DISTINCT + 19 + + 59 * + COUNT ( * ) col2, 90 + - 41 col0
----
78
49

query II rowsort
SELECT DISTINCT ( - 13 ), - ( - 85 ) AS col2
----
-13
85

query I rowsort
SELECT ALL + 97 + 41 AS col0
----
138

query II rowsort
SELECT - - 92 + + 11 AS col0, 77
----
103
77

query I rowsort
SELECT DISTINCT + 86 + 62 + - + 35
----
113

query I rowsort
SELECT ALL - 28 * + 3 + - 0 AS col0
----
-84

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1452
SELECT ALL + NULLIF ( + 47, - + 74 ) + + 32 * + + 80, 60 * + 2 DIV COUNT( * ) AS col2
----
2607
120

skipif mysql # not compatible
query II rowsort label-1452
SELECT ALL + NULLIF ( + 47, - + 74 ) + + 32 * + + 80, 60 * + 2 / COUNT ( * ) AS col2
----
2607
120

query I rowsort
SELECT - - 31 + 61
----
92

query I rowsort
SELECT - + 56 + - 44
----
-100

query I rowsort
SELECT ALL - + 97 * + - 49 * + - 82 - + 88 - - 25
----
-389809

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT ALL - - 68 * - COUNT( * ) * - + COUNT( * ) - + 0 + COUNT( * ) + 10
----
79

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - - 68 * - COUNT ( * ) * - + COUNT ( * ) - + 0 + COUNT ( * ) + 10
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT DISTINCT + COUNT( * ) * NULLIF ( - 13, - 34 ) - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT + COUNT ( * ) * NULLIF ( - 13, - 34 ) - COUNT ( * )
----
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT ALL - - SUM( + + 35 ) * + CASE + 81 WHEN - COUNT( * ) * + 63 + + 48 THEN - 67 - 96 END * ( 36 * - 92 + - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL - - SUM ( + + 35 ) * + CASE + 81 WHEN - COUNT ( * ) * + 63 + + 48 THEN - 67 - 96 END * ( 36 * - 92 + - 91 )
----
NULL

query I rowsort
SELECT - - 29 * - 78 AS col0
----
-2262

query II rowsort
SELECT DISTINCT + 20 AS col1, 7 * 51
----
20
357

query II rowsort
SELECT DISTINCT + 91, + 4 AS col2
----
91
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT DISTINCT + NULLIF ( - + 95, - 5 ) * - - COUNT( * ) + + 52 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT + NULLIF ( - + 95, - 5 ) * - - COUNT ( * ) + + 52 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT ALL + COALESCE ( NULLIF ( ( + COUNT( * ) ), + - ( + COUNT( * ) ) / + 88 * + 89 + + 45 - + 26 ), - 79, + ( - 86 ) + COUNT( * ), + 83 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL + COALESCE ( NULLIF ( ( + COUNT ( * ) ), + - ( + COUNT ( * ) ) / + 88 * + 89 + + 45 - + 26 ), - 79, + ( - 86 ) + COUNT ( * ), + 83 ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1466
SELECT + COALESCE ( 58, + 37 + - 56 DIV - 91 DIV + COUNT( * ) ) col1
----
58

skipif mysql # not compatible
query I rowsort label-1466
SELECT + COALESCE ( 58, + 37 + - 56 / - 91 / + COUNT ( * ) ) col1
----
58

query I rowsort
SELECT - 93 * + - 17
----
1581

query I rowsort
SELECT + 99 + 41 * + + 53 AS col0
----
2272

onlyif mysql # aggregate syntax: 
query II rowsort label-1469
SELECT + ( COUNT( * ) ) * - SUM( ALL - 41 ) * SUM( + + 12 ), - COUNT( * ) AS col1
----
492
-1

skipif mysql # not compatible
query II rowsort label-1469
SELECT + ( COUNT ( * ) ) * - SUM ( ALL - 41 ) * SUM ( + + 12 ), - COUNT ( * ) AS col1
----
492
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1471
SELECT + 75 DIV + - 32 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1471
SELECT + 75 / + - 32 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT + 45 - + 87 - - 56 + 50 + + - COUNT( * ) * + - 96 - + 56 * + 63 * 60 col1
----
-211520

skipif mysql # not compatible
query I rowsort label-1472
SELECT + 45 - + 87 - - 56 + 50 + + - COUNT ( * ) * + - 96 - + 56 * + 63 * 60 col1
----
-211520

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT + 63 * - + COUNT( * ) * + COUNT( * ) * + 32
----
-2016

skipif mysql # not compatible
query I rowsort label-1473
SELECT + 63 * - + COUNT ( * ) * + COUNT ( * ) * + 32
----
-2016

query I rowsort
SELECT ALL - 58 + - 83
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1475
SELECT DISTINCT 38 + + 51 + - 1 * + + 1 * 81 / - + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT 38 + + 51 + - 1 * + + 1 * 81 / - + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT ALL - + COALESCE ( + - 96, + 28 ) + + + 3 + - - CASE - 14 WHEN + - 67 + 86 + - 8 * 79 THEN + 99 / + COUNT( * ) END - + 26 / 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL - + COALESCE ( + - 96, + 28 ) + + + 3 + - - CASE - 14 WHEN + - 67 + 86 + - 8 * 79 THEN + 99 / + COUNT ( * ) END - + 26 / 38 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT MIN( DISTINCT - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-1478
SELECT MIN ( DISTINCT - 90 )
----
-90

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1481
SELECT + - 2 * 33 * + COUNT( - 95 ) * 68 + - 18 * + 50 DIV COUNT( * )
----
-5388

skipif mysql # not compatible
query I rowsort label-1481
SELECT + - 2 * 33 * + COUNT ( - 95 ) * 68 + - 18 * + 50 / COUNT ( * )
----
-5388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1482
SELECT - - CASE - 91 WHEN - 50 * + 28 - 17 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN - - ( 86 ) * + 45 THEN 36 ELSE 8 * + CAST( 9 AS SIGNED ) END * - CAST( + 70 AS SIGNED )
----
-5040

skipif mysql # not compatible
query I rowsort label-1482
SELECT - - CASE - 91 WHEN - 50 * + 28 - 17 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN - - ( 86 ) * + 45 THEN 36 ELSE 8 * + CAST ( 9 AS INTEGER ) END * - CAST ( + 70 AS INTEGER )
----
-5040

query I rowsort
SELECT NULLIF ( 79, - 67 ) AS col1
----
79

query I rowsort
SELECT + + 27 + - + 20
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1485
SELECT DISTINCT + 63 DIV + 6 - - + CAST( + 27 AS SIGNED ) DIV - 11 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT + 63 / + 6 - - + CAST ( + 27 AS INTEGER ) / - 11 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1486
SELECT ALL + ( + - 5 ) * + - COUNT( * ) AS col2, + 83
----
5
83

skipif mysql # not compatible
query II rowsort label-1486
SELECT ALL + ( + - 5 ) * + - COUNT ( * ) AS col2, + 83
----
5
83

query I rowsort
SELECT - 44 * 57
----
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT ALL NULLIF ( + 30, - 53 ) * + - MIN( - 95 )
----
2850

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL NULLIF ( + 30, - 53 ) * + - MIN ( - 95 )
----
2850

query I rowsort
SELECT DISTINCT + 14 * + + 84
----
1176

query I rowsort
SELECT ALL - 39 - + 88 * - 67 * - 55
----
-324319

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1491
SELECT + - 0 * COALESCE ( 74, + 31 DIV + 78 * + 89 + - 60 + + - COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1491
SELECT + - 0 * COALESCE ( 74, + 31 / + 78 * + 89 + - 60 + + - COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT - COALESCE ( COUNT( * ), + 66, - 46 ) + - 54
----
-55

skipif mysql # not compatible
query I rowsort label-1492
SELECT - COALESCE ( COUNT ( * ), + 66, - 46 ) + - 54
----
-55

query I rowsort
SELECT + 27 * + 0 + - + 45 AS col1
----
-45

query I rowsort
SELECT DISTINCT + 89 * - - 34 AS col1
----
3026

onlyif mysql # DIV for integer division: 
query I rowsort label-1495
SELECT 98 DIV - + ( + 6 ) - + 60 - + + 10
----
-86

skipif mysql # not compatible
query I rowsort label-1495
SELECT 98 / - + ( + 6 ) - + 60 - + + 10
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ALL SUM( DISTINCT - 35 ) + - - CASE - - 49 WHEN - 70 + + 60 / + 58 THEN - COUNT( DISTINCT + 33 ) - COUNT( * ) ELSE NULL END * + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL SUM ( DISTINCT - 35 ) + - - CASE - - 49 WHEN - 70 + + 60 / + 58 THEN - COUNT ( DISTINCT + 33 ) - COUNT ( * ) ELSE NULL END * + 2 AS col2
----
NULL

query II rowsort
SELECT 87 + + + 38, 8 col2
----
125
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ALL + 98 * + MAX( DISTINCT 29 )
----
2842

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL + 98 * + MAX ( DISTINCT 29 )
----
2842

query I rowsort
SELECT DISTINCT + 89 + + + 69
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT DISTINCT - COUNT( * ) + + 9 + MIN( DISTINCT - ( + ( - - 53 ) ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT - COUNT ( * ) + + 9 + MIN ( DISTINCT - ( + ( - - 53 ) ) ) AS col0
----
-45

query I rowsort
SELECT ALL + 71 + + 32
----
103

query II rowsort
SELECT 77 + 45 AS col1, - 62 + ( 33 ) * 28
----
122
862

query I rowsort
SELECT 87 + - 63 AS col1
----
24

query I rowsort
SELECT DISTINCT - 26 + 99
----
73

query I rowsort
SELECT ALL + 72 + 49
----
121

query I rowsort
SELECT DISTINCT ( + 82 ) + 81 AS col2
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT ALL 86 + 39 + - ( - - COUNT( * ) ) * + - NULLIF ( - - COUNT( - 81 ), - 79 - + COUNT( * ) ) + ( - 63 ) * 96 AS col1
----
-5922

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL 86 + 39 + - ( - - COUNT ( * ) ) * + - NULLIF ( - - COUNT ( - 81 ), - 79 - + COUNT ( * ) ) + ( - 63 ) * 96 AS col1
----
-5922

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1508
SELECT 86 DIV - - CAST( + AVG ( ALL 94 ) AS SIGNED ) * + 50 + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-1508
SELECT 86 / - - CAST ( + AVG ( ALL 94 ) AS INTEGER ) * + 50 + 13 AS col1
----
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1509
SELECT DISTINCT ( 43 ) DIV - CAST( + - 29 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT ( 43 ) / - CAST ( + - 29 AS INTEGER )
----
1

query I rowsort
SELECT - - 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL + 36 - + SUM( - - NULLIF ( 59, + + 83 + + - 14 ) ) + - + 72 * - 89 * 51
----
326785

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + 36 - + SUM ( - - NULLIF ( 59, + + 83 + + - 14 ) ) + - + 72 * - 89 * 51
----
326785

query I rowsort
SELECT DISTINCT + 78 * ( + - 15 ) AS col0
----
-1170

query I rowsort
SELECT ALL 45 * 45 - - + 90
----
2115

query I rowsort
SELECT 61 + - CASE + 79 WHEN - 59 + - - 39 THEN + + 27 * + + 99 ELSE + 64 + - 1 END
----
-2

query I rowsort
SELECT ALL - 96 - + 75
----
-171

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL + 84 * + + MIN( ALL 89 ) + - - 7 - + SUM( + 59 )
----
7424

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL + 84 * + + MIN ( ALL 89 ) + - - 7 - + SUM ( + 59 )
----
7424

query I rowsort
SELECT - ( - 70 ) + - + 21 + 33 * + 66
----
2227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1519
SELECT 76 + - + CASE + 61 WHEN + + COUNT( * ) THEN NULL WHEN + + 47 - - CASE - CAST( 12 AS SIGNED ) WHEN - - 91 THEN + SUM( 96 ) + 78 WHEN 17 THEN NULL ELSE NULL END + + 31 * + 64 THEN - COUNT( * ) / + 25 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1519
SELECT 76 + - + CASE + 61 WHEN + + COUNT ( * ) THEN NULL WHEN + + 47 - - CASE - CAST ( 12 AS INTEGER ) WHEN - - 91 THEN + SUM ( 96 ) + 78 WHEN 17 THEN NULL ELSE NULL END + + 31 * + 64 THEN - COUNT ( * ) / + 25 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1520
SELECT DISTINCT NULLIF ( + 14, + 44 * - - 1 ) AS col1, + CAST( + 38 AS SIGNED )
----
14
38

skipif mysql # not compatible
query II rowsort label-1520
SELECT DISTINCT NULLIF ( + 14, + 44 * - - 1 ) AS col1, + CAST ( + 38 AS INTEGER )
----
14
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1521
SELECT DISTINCT - COUNT( * ) / - 44 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT - COUNT ( * ) / - 44 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 55 * + 36 AS col1
----
1980

query I rowsort
SELECT DISTINCT + 57 + + 58 AS col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT 66 * + + 69 * 17 + + ( - ( - MIN( - 17 ) ) ) + ( + - COUNT( * ) )
----
77400

skipif mysql # not compatible
query I rowsort label-1524
SELECT 66 * + + 69 * 17 + + ( - ( - MIN ( - 17 ) ) ) + ( + - COUNT ( * ) )
----
77400

onlyif mysql # DIV for integer division: 
query I rowsort label-1525
SELECT 52 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-1525
SELECT 52 / - 97
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1526
SELECT CAST( NULL AS SIGNED ) / + - COUNT( * ) + 66 - + 16 * + 68 * - 33 * 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1526
SELECT CAST ( NULL AS INTEGER ) / + - COUNT ( * ) + 66 - + 16 * + 68 * - 33 * 82 AS col2
----
NULL

query I rowsort
SELECT 97 * - 87 AS col1
----
-8439

query I rowsort
SELECT ALL + 3 + + + 13 AS col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1529
SELECT 7 DIV 2 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1529
SELECT 7 / 2 AS col1
----
3

query I rowsort
SELECT ALL - 39 + + 95 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT 77 * ( + COUNT( * ) ) * + - 98 * - 6 * 69 + 90 AS col1
----
3124134

skipif mysql # not compatible
query I rowsort label-1531
SELECT 77 * ( + COUNT ( * ) ) * + - 98 * - 6 * 69 + 90 AS col1
----
3124134

query I rowsort
SELECT DISTINCT 69 + + 95 * + + 53 AS col2
----
5104

query I rowsort
SELECT ALL 4 + + + 69 + 8 AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1534
SELECT ALL + ( - 70 ) + - 38 + - COUNT( * ) * - ( + ( + 52 ) ) * 69 * - 1 * 51 + ( + NULLIF ( + NULLIF ( - CAST( COUNT( * ) AS SIGNED ), 96 + MAX( ALL 28 ) / 89 ), 30 * 65 ) )
----
-183097

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL + ( - 70 ) + - 38 + - COUNT ( * ) * - ( + ( + 52 ) ) * 69 * - 1 * 51 + ( + NULLIF ( + NULLIF ( - CAST ( COUNT ( * ) AS INTEGER ), 96 + MAX ( ALL 28 ) / 89 ), 30 * 65 ) )
----
-183097

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT 12 * - - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-1535
SELECT 12 * - - COUNT ( * )
----
12

query II rowsort
SELECT ALL - 51 AS col2, - 20 AS col0
----
-51
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1537
SELECT SUM( DISTINCT + 74 ) + + 18 DIV - 84 * COUNT( * ) AS col1, - 93 AS col1
----
74
-93

skipif mysql # not compatible
query II rowsort label-1537
SELECT SUM ( DISTINCT + 74 ) + + 18 / - 84 * COUNT ( * ) AS col1, - 93 AS col1
----
74
-93

query II rowsort
SELECT 5, 76 AS col1
----
5
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT 31 * 44 + - 30 * + - MIN( DISTINCT + 49 ) * - 45 * - + 50 + ( 30 ) AS col1
----
3308894

skipif mysql # not compatible
query I rowsort label-1539
SELECT 31 * 44 + - 30 * + - MIN ( DISTINCT + 49 ) * - 45 * - + 50 + ( 30 ) AS col1
----
3308894

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT ALL + COUNT( * ) - + 73 col0
----
-72

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL + COUNT ( * ) - + 73 col0
----
-72

query I rowsort
SELECT 2 * - 18 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT COALESCE ( - COUNT( * ), 16 * + + MIN( DISTINCT - + 60 ), SUM( ALL - - 50 ) + - COALESCE ( - + ( + COALESCE ( - 97, 58 ) ), 0 ) ) * ( 86 * + COUNT( * ) ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-1542
SELECT COALESCE ( - COUNT ( * ), 16 * + + MIN ( DISTINCT - + 60 ), SUM ( ALL - - 50 ) + - COALESCE ( - + ( + COALESCE ( - 97, 58 ) ), 0 ) ) * ( 86 * + COUNT ( * ) ) AS col1
----
-86

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1545
SELECT + 99 * - 32 - + + 86 + 48 DIV + 78 * 57 * + - 78 AS col2
----
-3254

skipif mysql # not compatible
query I rowsort label-1545
SELECT + 99 * - 32 - + + 86 + 48 / + 78 * 57 * + - 78 AS col2
----
-3254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1546
SELECT ALL + COALESCE ( - - 78, 64 - - 47 ) DIV + COUNT( DISTINCT - 58 )
----
78

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL + COALESCE ( - - 78, 64 - - 47 ) / + COUNT ( DISTINCT - 58 )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-1547
SELECT 21 DIV 74 * 87 DIV 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1547
SELECT 21 / 74 * 87 / 78 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1548
SELECT ALL - 65 AS col0, + NULLIF ( - + COUNT( * ), + - COUNT( 50 ) ) + + COUNT( * ) - + 94 * - 83 * CASE + MAX( ALL 57 ) WHEN 99 THEN + NULLIF ( COUNT( * ), + 93 ) + COUNT( * ) ELSE - 70 END
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-1548
SELECT ALL - 65 AS col0, + NULLIF ( - + COUNT ( * ), + - COUNT ( 50 ) ) + + COUNT ( * ) - + 94 * - 83 * CASE + MAX ( ALL 57 ) WHEN 99 THEN + NULLIF ( COUNT ( * ), + 93 ) + COUNT ( * ) ELSE - 70 END
----
-65
NULL

query I rowsort
SELECT - 65 * 81
----
-5265

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1551
SELECT DISTINCT - - 94 DIV - ( + + 90 ) + - 44 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT - - 94 / - ( + + 90 ) + - 44 AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1552
SELECT ALL 23 DIV + + 36 - - - 6
----
-6

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL 23 / + + 36 - - - 6
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1553
SELECT 1 DIV + 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1553
SELECT 1 / + 1 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT 44 DIV + 74 + + - 89
----
-89

skipif mysql # not compatible
query I rowsort label-1554
SELECT 44 / + 74 + + - 89
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1555
SELECT ALL - 73 * - + 65 + 37 + 39 + - COALESCE ( 69, + ( + - 15 ) * COUNT( * ), 19, 8 ) * 49 DIV 1 * + 36
----
-116895

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL - 73 * - + 65 + 37 + 39 + - COALESCE ( 69, + ( + - 15 ) * COUNT ( * ), 19, 8 ) * 49 / 1 * + 36
----
-116895

query I rowsort
SELECT ALL + 62 + 82 * 34 col1
----
2850

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT ALL 68 + - - ( CASE - - NULLIF ( 1, 10 * 70 ) WHEN 3 + - + 87 THEN NULL ELSE - + CASE - COUNT( * ) WHEN 64 + 77 * + 43 THEN + 64 + - 47 WHEN 90 THEN - 71 ELSE NULL END END ) * 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL 68 + - - ( CASE - - NULLIF ( 1, 10 * 70 ) WHEN 3 + - + 87 THEN NULL ELSE - + CASE - COUNT ( * ) WHEN 64 + 77 * + 43 THEN + 64 + - 47 WHEN 90 THEN - 71 ELSE NULL END END ) * 55 AS col2
----
NULL

query I rowsort
SELECT ALL 81 + 32
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT DISTINCT + ( 26 ) + + + 96 + + - ( - + 75 ) * - 20 + - NULLIF ( - 3, COUNT( * ) * 79 * 61 + 36 ) * - 55 AS col0
----
-1543

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT + ( 26 ) + + + 96 + + - ( - + 75 ) * - 20 + - NULLIF ( - 3, COUNT ( * ) * 79 * 61 + 36 ) * - 55 AS col0
----
-1543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1561
SELECT 80, 87 * 51 * - 5 + - ( MIN( CAST( NULL AS SIGNED ) ) ) - 48 AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-1561
SELECT 80, 87 * 51 * - 5 + - ( MIN ( CAST ( NULL AS INTEGER ) ) ) - 48 AS col2
----
80
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1562
SELECT + 58 * - 96 DIV - COUNT( * )
----
5568

skipif mysql # not compatible
query I rowsort label-1562
SELECT + 58 * - 96 / - COUNT ( * )
----
5568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1563
SELECT COALESCE ( MAX( DISTINCT 76 ), 10 ) DIV - 79 + - 82 + - 10
----
-92

skipif mysql # not compatible
query I rowsort label-1563
SELECT COALESCE ( MAX ( DISTINCT 76 ), 10 ) / - 79 + - 82 + - 10
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT CASE COUNT( * ) WHEN + 0 THEN + + 44 ELSE - - 74 * 30 END AS col1
----
2220

skipif mysql # not compatible
query I rowsort label-1564
SELECT CASE COUNT ( * ) WHEN + 0 THEN + + 44 ELSE - - 74 * 30 END AS col1
----
2220

query I rowsort
SELECT + COALESCE ( - 61, + 8 * + - 2 ) + - 44 + - 67 AS col0
----
-172

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT ALL 17 DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL 17 / + 38
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1568
SELECT ALL + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT + 92 + 26 - - 12
----
130

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1571
SELECT - 68 + - + 1 + + COUNT( * ) * - 71 * - 19 - - CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1571
SELECT - 68 + - + 1 + + COUNT ( * ) * - 71 * - 19 - - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT DISTINCT CASE WHEN NOT NULL IS NULL THEN NULL ELSE + 7 END * + COALESCE ( + 37, 87 + - COUNT( * ) + + 75 * - 31, 87 * + 25 - + 71 ) AS col2
----
259

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT CASE WHEN NOT NULL IS NULL THEN NULL ELSE + 7 END * + COALESCE ( + 37, 87 + - COUNT ( * ) + + 75 * - 31, 87 * + 25 - + 71 ) AS col2
----
259

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1573
SELECT ALL + 15 * 53 * COUNT( * ) - - 58 * 51 + - - 15 - - NULLIF ( + 76, + - COUNT( * ) * + ( + 61 ) * + COUNT( * ) - 80 ) - NULLIF ( 75, 59 + NULLIF ( + 43 + 0, COALESCE ( + ( 24 ), + COUNT( * ) ) ) * - 60 ) DIV 17 * MAX( ALL 39 ) col0
----
3688

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL + 15 * 53 * COUNT ( * ) - - 58 * 51 + - - 15 - - NULLIF ( + 76, + - COUNT ( * ) * + ( + 61 ) * + COUNT ( * ) - 80 ) - NULLIF ( 75, 59 + NULLIF ( + 43 + 0, COALESCE ( + ( 24 ), + COUNT ( * ) ) ) * - 60 ) / 17 * MAX ( ALL 39 ) col0
----
3688

onlyif mysql # DIV for integer division: 
query II rowsort label-1574
SELECT + 56 DIV + - 35, - 56 AS col1
----
-1
-56

skipif mysql # not compatible
query II rowsort label-1574
SELECT + 56 / + - 35, - 56 AS col1
----
-1
-56

query I rowsort
SELECT - 62 * + 26 AS col0
----
-1612

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

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

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

query I rowsort
SELECT + - NULLIF ( 80, - + 2 ) + 96 col2
----
16

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1580
SELECT DISTINCT - + CASE 61 WHEN + CAST( NULL AS SIGNED ) THEN 62 + - 84 WHEN COUNT( * ) THEN NULL END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT - + CASE 61 WHEN + CAST ( NULL AS INTEGER ) THEN 62 + - 84 WHEN COUNT ( * ) THEN NULL END * 82
----
NULL

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

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

query I rowsort
SELECT - - NULLIF ( - + 69, + 38 ) AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1583
SELECT DISTINCT COALESCE ( - 31, - + 92, 9 - - 46 * COUNT( * ) DIV + COUNT( * ) ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT COALESCE ( - 31, - + 92, 9 - - 46 * COUNT ( * ) / + COUNT ( * ) ) col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT - - 57 * SUM( + 77 ) * + 6
----
26334

skipif mysql # not compatible
query I rowsort label-1584
SELECT - - 57 * SUM ( + 77 ) * + 6
----
26334

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

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

query II rowsort
SELECT - 83 col0, 88
----
-83
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1587
SELECT - CASE + CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN 61 * - 28 ELSE - - 90 END AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-1587
SELECT - CASE + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN 61 * - 28 ELSE - - 90 END AS col1
----
-90

query I rowsort
SELECT - - 71 + - - 13
----
84

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1590
SELECT ALL - + ( + - COALESCE ( 21, - 99, + 29 * + + 53 ) ) + - 84 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL - + ( + - COALESCE ( 21, - 99, + 29 * + + 53 ) ) + - 84 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 17 AS col0, + 43
----
-17
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ALL + COUNT( * ) + 58
----
59

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL + COUNT ( * ) + 58
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1593
SELECT ALL - 95 AS col1, - COUNT( * ) * + - 85 - - CAST( NULL AS SIGNED ) + - COUNT( - - 12 ) * + - 34 - COUNT( * )
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-1593
SELECT ALL - 95 AS col1, - COUNT ( * ) * + - 85 - - CAST ( NULL AS INTEGER ) + - COUNT ( - - 12 ) * + - 34 - COUNT ( * )
----
-95
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1594
SELECT ALL - + COUNT( * ) + + CAST( + 64 AS SIGNED ) - + ( + 66 ) + + 71 * + 76, - 57 DIV - 41 AS col0
----
5393
1

skipif mysql # not compatible
query II rowsort label-1594
SELECT ALL - + COUNT ( * ) + + CAST ( + 64 AS INTEGER ) - + ( + 66 ) + + 71 * + 76, - 57 / - 41 AS col0
----
5393
1

query II rowsort
SELECT + 18 AS col1, COALESCE ( + - 82, - ( + 0 ) * - 48 ) * 87 col2
----
18
-7134

query I rowsort
SELECT - + 55 + 8 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT ALL + + 12 + + CASE + 83 WHEN 29 * - ( - + 27 ) - + CASE - - COUNT( * ) WHEN + 3 / - 45 THEN NULL WHEN - - 13 THEN 26 ELSE MIN( 22 ) * - 55 + COUNT( * ) END THEN COUNT( * ) ELSE - CASE - 27 WHEN + 89 THEN + 69 + 52 ELSE NULL END - + 23 * 41 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL + + 12 + + CASE + 83 WHEN 29 * - ( - + 27 ) - + CASE - - COUNT ( * ) WHEN + 3 / - 45 THEN NULL WHEN - - 13 THEN 26 ELSE MIN ( 22 ) * - 55 + COUNT ( * ) END THEN COUNT ( * ) ELSE - CASE - 27 WHEN + 89 THEN + 69 + 52 ELSE NULL END - + 23 * 41 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT + CASE - 91 WHEN - 85 THEN NULL ELSE 2 + 59 * + CASE AVG ( - 63 ) WHEN + 2 THEN + CASE - - 47 WHEN + 19 THEN 32 WHEN - 90 + 45 THEN NULL WHEN - 67 / 83 + - MAX( ALL ( 47 ) ) THEN NULL END * 3 + COALESCE ( 17, 91 - - COUNT( + ( - 57 ) ) ) WHEN - 28 + ( + 99 ) THEN NULL WHEN 52 THEN COUNT( * ) END * - COUNT( * ) + - 86 END + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT + CASE - 91 WHEN - 85 THEN NULL ELSE 2 + 59 * + CASE AVG ( - 63 ) WHEN + 2 THEN + CASE - - 47 WHEN + 19 THEN 32 WHEN - 90 + 45 THEN NULL WHEN - 67 / 83 + - MAX ( ALL ( 47 ) ) THEN NULL END * 3 + COALESCE ( 17, 91 - - COUNT ( + ( - 57 ) ) ) WHEN - 28 + ( + 99 ) THEN NULL WHEN 52 THEN COUNT ( * ) END * - COUNT ( * ) + - 86 END + - 52
----
NULL

query I rowsort
SELECT ALL - 39 + 99
----
60

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

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

query I rowsort
SELECT + 52 + - + 66 - + - 2 AS col1
----
-12

query I rowsort
SELECT DISTINCT 58 * - - 6 * + 7 * + 62 AS col0
----
151032

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1603
SELECT ALL 17 * 4 * COUNT( * ) AS col0, 39 + - 87 DIV + 73 AS col2
----
68
38

skipif mysql # not compatible
query II rowsort label-1603
SELECT ALL 17 * 4 * COUNT ( * ) AS col0, 39 + - 87 / + 73 AS col2
----
68
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1604
SELECT DISTINCT 76 + + - AVG ( - ( - CASE + 32 WHEN + 46 THEN NULL WHEN 39 THEN NULL ELSE + CAST( NULL AS SIGNED ) END ) ) - 82 * - 9 * 47 + - + 75 - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT 76 + + - AVG ( - ( - CASE + 32 WHEN + 46 THEN NULL WHEN 39 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END ) ) - 82 * - 9 * 47 + - + 75 - 74
----
NULL

query I rowsort
SELECT + 16 * 82 AS col0
----
1312

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 88 * - - 61 - - 78 AS col0
----
-5290

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1612
SELECT CAST( + - 22 AS SIGNED ), + 47 AS col1
----
-22
47

skipif mysql # not compatible
query II rowsort label-1612
SELECT CAST ( + - 22 AS INTEGER ), + 47 AS col1
----
-22
47

query I rowsort
SELECT + NULLIF ( 36, + 57 ) AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1614
SELECT + 39 DIV CASE - - 92 WHEN - COUNT( * ) THEN 25 * 17 ELSE - ( + + 72 ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1614
SELECT + 39 / CASE - - 92 WHEN - COUNT ( * ) THEN 25 * 17 ELSE - ( + + 72 ) END AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1615
SELECT ALL 44 DIV SUM( ALL - 80 ) * 20 * - 83 col0
----
0

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL 44 / SUM ( ALL - 80 ) * 20 * - 83 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT ( - MAX( 59 ) ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-1616
SELECT ( - MAX ( 59 ) ) col2
----
-59

query I rowsort
SELECT + 85 * - - ( - - 41 ) * - 45 AS col2
----
-156825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1618
SELECT ALL + COUNT( * ) DIV - 57 AS col2, 80 + - 40 + + 44 * + + 88 * + ( + - 44 ) * 50 * + CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1618
SELECT ALL + COUNT ( * ) / - 57 AS col2, 80 + - 40 + + 44 * + + 88 * + ( + - 44 ) * 50 * + CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1620
SELECT - - 86 DIV + + NULLIF ( MAX( DISTINCT 98 ), + MIN( + 68 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1620
SELECT - - 86 / + + NULLIF ( MAX ( DISTINCT 98 ), + MIN ( + 68 ) ) AS col2
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1622
SELECT - + COUNT( * ) * ( 38 ) DIV - 63 * - - 13 + - - 66 - - 51
----
117

skipif mysql # not compatible
query I rowsort label-1622
SELECT - + COUNT ( * ) * ( 38 ) / - 63 * - - 13 + - - 66 - - 51
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-1623
SELECT 15 DIV - + 26 * - 75 + - 76
----
-76

skipif mysql # not compatible
query I rowsort label-1623
SELECT 15 / - + 26 * - 75 + - 76
----
-76

query I rowsort
SELECT DISTINCT - - 64 + - COALESCE ( + 81, + 7 )
----
-17

query I rowsort
SELECT ALL + 81 + - 95 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-1626
SELECT - - MAX( + 18 ) AS col0, - 86
----
18
-86

skipif mysql # not compatible
query II rowsort label-1626
SELECT - - MAX ( + 18 ) AS col0, - 86
----
18
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1627
SELECT - - ( - + COUNT( * ) ) AS col1, + 78 DIV 43 + - - 35 + 6 AS col0
----
-1
42

skipif mysql # not compatible
query II rowsort label-1627
SELECT - - ( - + COUNT ( * ) ) AS col1, + 78 / 43 + - - 35 + 6 AS col0
----
-1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT 84 * 77 - - COUNT( * ) AS col0
----
6469

skipif mysql # not compatible
query I rowsort label-1628
SELECT 84 * 77 - - COUNT ( * ) AS col0
----
6469

onlyif mysql # DIV for integer division: 
query I rowsort label-1629
SELECT ALL - 79 + - 74 DIV + - 31 - - + 74 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - 79 + - 74 / + - 31 - - + 74 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT - - NULLIF ( - COUNT( * ), - 66 - - NULLIF ( + + 64, + + 46 * - + SUM( DISTINCT 89 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1630
SELECT - - NULLIF ( - COUNT ( * ), - 66 - - NULLIF ( + + 64, + + 46 * - + SUM ( DISTINCT 89 ) ) ) AS col0
----
-1

query II rowsort
SELECT DISTINCT 91, - 60 * 4 AS col0
----
91
-240

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

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

query I rowsort
SELECT 78 * - 35 AS col1
----
-2730

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

skipif mysql # not compatible
query I rowsort label-1634
SELECT 13 * + NULLIF ( + 33, COUNT ( * ) + - COUNT ( * ) )
----
429

onlyif mysql # DIV for integer division: 
query II rowsort label-1635
SELECT DISTINCT 48 AS col2, + ( + 19 ) DIV - 60
----
48
0

skipif mysql # not compatible
query II rowsort label-1635
SELECT DISTINCT 48 AS col2, + ( + 19 ) / - 60
----
48
0

query I rowsort
SELECT ALL - 71 - + + 80 AS col2
----
-151

query I rowsort
SELECT ALL + 8 - + 80 + + 64
----
-8

query I rowsort
SELECT 3 - + 0 col2
----
3

query II rowsort
SELECT DISTINCT 57 AS col2, + 35
----
57
35

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

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

query II rowsort
SELECT 42 AS col1, + 84 AS col1
----
42
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT 93 DIV + + 12
----
7

skipif mysql # not compatible
query I rowsort label-1642
SELECT 93 / + + 12
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1643
SELECT DISTINCT - 73 AS col1, 87 + + + 63 + - COUNT( * ) - + - 84 + ( - - 37 ) * 93 + - + CAST( + 24 AS SIGNED ) DIV - + 15 AS col0
----
-73
3675

skipif mysql # not compatible
query II rowsort label-1643
SELECT DISTINCT - 73 AS col1, 87 + + + 63 + - COUNT ( * ) - + - 84 + ( - - 37 ) * 93 + - + CAST ( + 24 AS INTEGER ) / - + 15 AS col0
----
-73
3675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1644
SELECT 82 * CAST( NULL AS SIGNED ) + + 46 + + 36 * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT 82 * CAST ( NULL AS INTEGER ) + + 46 + + 36 * - 32
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1645
SELECT ALL COUNT( * ) * + 27 DIV + - 44 * + + 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL COUNT ( * ) * + 27 / + - 44 * + + 47 AS col1
----
0

query I rowsort
SELECT 28 * + 56
----
1568

onlyif mysql # aggregate syntax: 
query II rowsort label-1647
SELECT DISTINCT - - COUNT( * ) col0, + 39
----
1
39

skipif mysql # not compatible
query II rowsort label-1647
SELECT DISTINCT - - COUNT ( * ) col0, + 39
----
1
39

query I rowsort
SELECT - 18 * - 3 col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1649
SELECT + 92 + + - ( - CAST( NULL AS SIGNED ) ) col1, - 89 AS col1
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-1649
SELECT + 92 + + - ( - CAST ( NULL AS INTEGER ) ) col1, - 89 AS col1
----
NULL
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1650
SELECT + COALESCE ( - 3, + 70, + - COUNT( * ) ) * - - 78 * - CASE ( - 11 ) WHEN + 42 * + 85 THEN 63 ELSE NULL END AS col1, COALESCE ( 33, - 59 * - ( + COUNT( * ) ), 42 ) DIV - 69 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1650
SELECT + COALESCE ( - 3, + 70, + - COUNT ( * ) ) * - - 78 * - CASE ( - 11 ) WHEN + 42 * + 85 THEN 63 ELSE NULL END AS col1, COALESCE ( 33, - 59 * - ( + COUNT ( * ) ), 42 ) / - 69 AS col0
----
NULL
0

query I rowsort
SELECT + 58 * + 68 + 74 AS col2
----
4018

query I rowsort
SELECT ALL 84 + - 8
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1653
SELECT ALL 89 + 45 * - CAST( NULL AS SIGNED ) - - 69 + - 17 * MAX( ALL + 98 ) * 84 * - + MAX( - - 62 ) - + 77 + + - COUNT( ALL 27 ) + AVG ( ALL ( - 28 ) + 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL 89 + 45 * - CAST ( NULL AS INTEGER ) - - 69 + - 17 * MAX ( ALL + 98 ) * 84 * - + MAX ( - - 62 ) - + 77 + + - COUNT ( ALL 27 ) + AVG ( ALL ( - 28 ) + 86 )
----
NULL

query I rowsort
SELECT ALL - 85 * 70
----
-5950

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

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL - MAX ( - 0 ) + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ALL + 10 + 56
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT + - CASE + - COUNT( + 51 ) WHEN - - 98 THEN NULL WHEN 2 THEN - COUNT( ALL + - 88 ) WHEN + 53 - + + 83 THEN + + COALESCE ( + 85, + 95, + + 97, - 43 + 37 * 32 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1657
SELECT + - CASE + - COUNT ( + 51 ) WHEN - - 98 THEN NULL WHEN 2 THEN - COUNT ( ALL + - 88 ) WHEN + 53 - + + 83 THEN + + COALESCE ( + 85, + 95, + + 97, - 43 + 37 * 32 ) END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1658
SELECT DISTINCT - 41 + + CAST( - + 17 AS SIGNED ) DIV - 95 * + 61
----
-41

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT - 41 + + CAST ( - + 17 AS INTEGER ) / - 95 * + 61
----
-41

query I rowsort
SELECT DISTINCT 73 + + 81
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1660
SELECT - 75 * + + 19 + CASE + + 45 WHEN + - 97 THEN NULL WHEN COALESCE ( 32, + CAST( 98 AS SIGNED ) + + + 77, - 24 ) THEN NULL ELSE 15 + - - ( - 26 ) END
----
-1436

skipif mysql # not compatible
query I rowsort label-1660
SELECT - 75 * + + 19 + CASE + + 45 WHEN + - 97 THEN NULL WHEN COALESCE ( 32, + CAST ( 98 AS INTEGER ) + + + 77, - 24 ) THEN NULL ELSE 15 + - - ( - 26 ) END
----
-1436

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT 45 * + ( + 55 ) + + MIN( 10 ) * + 12 AS col0
----
2595

skipif mysql # not compatible
query I rowsort label-1661
SELECT 45 * + ( + 55 ) + + MIN ( 10 ) * + 12 AS col0
----
2595

query I rowsort
SELECT + 84 + + 14 AS col2
----
98

query I rowsort
SELECT 47 * + 28 * 53 col2
----
69748

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT DISTINCT - 40 - - 28 * + - 78 * - COUNT( + 60 )
----
2144

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT - 40 - - 28 * + - 78 * - COUNT ( + 60 )
----
2144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1665
SELECT COALESCE ( - 57, + - COUNT( * ), - + 54 ) * COUNT( * ) DIV + - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1665
SELECT COALESCE ( - 57, + - COUNT ( * ), - + 54 ) * COUNT ( * ) / + - 76 AS col1
----
0

query I rowsort
SELECT DISTINCT 99 - - 18 AS col2
----
117

query I rowsort
SELECT 22 + + 61 AS col2
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1668
SELECT CASE - CASE - + 92 WHEN - COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN + + 34 * - 68 WHEN - 30 + - 43 THEN NULL END WHEN CASE 66 WHEN + 42 THEN 66 ELSE NULL END * + 40 THEN COUNT( * ) * 21 + - 98 WHEN 83 * 30 + 7 * - 67 THEN 7 + - 17 DIV - 47 ELSE COUNT( * ) + + MAX( ALL - 56 ) * + COUNT( * ) END * 1 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1668
SELECT CASE - CASE - + 92 WHEN - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN + + 34 * - 68 WHEN - 30 + - 43 THEN NULL END WHEN CASE 66 WHEN + 42 THEN 66 ELSE NULL END * + 40 THEN COUNT ( * ) * 21 + - 98 WHEN 83 * 30 + 7 * - 67 THEN 7 + - 17 / - 47 ELSE COUNT ( * ) + + MAX ( ALL - 56 ) * + COUNT ( * ) END * 1 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT 32 + 23 - - 76 - - 53 + + COUNT( * )
----
185

skipif mysql # not compatible
query I rowsort label-1669
SELECT 32 + 23 - - 76 - - 53 + + COUNT ( * )
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1670
SELECT DISTINCT + COALESCE ( NULLIF ( 47, + 94 ), 35 * - 33 DIV + 86 ) * - MIN( ALL - 95 )
----
4465

skipif mysql # not compatible
query I rowsort label-1670
SELECT DISTINCT + COALESCE ( NULLIF ( 47, + 94 ), 35 * - 33 / + 86 ) * - MIN ( ALL - 95 )
----
4465

query II rowsort
SELECT DISTINCT + ( - ( + + 3 ) ) * + 21 * - 21, 38 AS col0
----
1323
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT ALL MAX( 85 ) * 86
----
7310

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL MAX ( 85 ) * 86
----
7310

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1674
SELECT ALL + SUM( + + ( - - 94 ) ) * + 1 + 40 * 68 + - 85 + 48 - + - 36 + + - 98 + COUNT( * ) * + + 90 AS col0, + 7 + + + 45 AS col1
----
2805
52

skipif mysql # not compatible
query II rowsort label-1674
SELECT ALL + SUM ( + + ( - - 94 ) ) * + 1 + 40 * 68 + - 85 + 48 - + - 36 + + - 98 + COUNT ( * ) * + + 90 AS col0, + 7 + + + 45 AS col1
----
2805
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT NULLIF ( - CASE + 85 WHEN 12 THEN - AVG ( ALL - - 7 ) END, - 77 + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1675
SELECT NULLIF ( - CASE + 85 WHEN 12 THEN - AVG ( ALL - - 7 ) END, - 77 + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1676
SELECT 41 DIV - 47 * - MAX( ALL + CAST( 10 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1676
SELECT 41 / - 47 * - MAX ( ALL + CAST ( 10 AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1677
SELECT + CASE - 34 WHEN 22 THEN - 98 WHEN 63 + - 34 + + 73 + + - CAST( NULL AS SIGNED ) + + 57 * + 9 * + CASE + NULLIF ( + 66, 38 * 26 ) WHEN ( + 77 ) THEN 47 * 89 WHEN + 26 * ( 55 ) THEN NULL END THEN COUNT( * ) + 9 ELSE ( - 36 ) END col0
----
-36

skipif mysql # not compatible
query I rowsort label-1677
SELECT + CASE - 34 WHEN 22 THEN - 98 WHEN 63 + - 34 + + 73 + + - CAST ( NULL AS INTEGER ) + + 57 * + 9 * + CASE + NULLIF ( + 66, 38 * 26 ) WHEN ( + 77 ) THEN 47 * 89 WHEN + 26 * ( 55 ) THEN NULL END THEN COUNT ( * ) + 9 ELSE ( - 36 ) END col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT NULLIF ( + 24, - - AVG ( DISTINCT + 49 ) * - 30 + - COUNT( 56 ) + + - 41 + + AVG ( - - 44 ) + COUNT( * ) * + COUNT( * ) * - 3 + COUNT( * ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-1678
SELECT NULLIF ( + 24, - - AVG ( DISTINCT + 49 ) * - 30 + - COUNT ( 56 ) + + - 41 + + AVG ( - - 44 ) + COUNT ( * ) * + COUNT ( * ) * - 3 + COUNT ( * ) ) AS col0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT - 90 DIV - 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1679
SELECT - 90 / - 62 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1680
SELECT ALL + + CASE COUNT( * ) WHEN + 75 DIV + COUNT( * ) + + 58 THEN NULL ELSE + - 46 END DIV - 56 * - COALESCE ( 97, + ( + 39 ) * 79 DIV + - 35 )
----
0

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL + + CASE COUNT ( * ) WHEN + 75 / + COUNT ( * ) + + 58 THEN NULL ELSE + - 46 END / - 56 * - COALESCE ( 97, + ( + 39 ) * 79 / + - 35 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT DISTINCT - 36 DIV 27
----
-1

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT - 36 / 27
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1682
SELECT + CAST( 93 AS SIGNED ) col0, - 78
----
93
-78

skipif mysql # not compatible
query II rowsort label-1682
SELECT + CAST ( 93 AS INTEGER ) col0, - 78
----
93
-78

query I rowsort
SELECT ALL - 39 * - + 36 + 70
----
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL 34 * - ( - 41 ) + - - COUNT( - - 99 )
----
1395

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL 34 * - ( - 41 ) + - - COUNT ( - - 99 )
----
1395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1685
SELECT + NULLIF ( ( - - 46 ), + CAST( 56 AS SIGNED ) ) * + ( + 91 ) - - 91
----
4277

skipif mysql # not compatible
query I rowsort label-1685
SELECT + NULLIF ( ( - - 46 ), + CAST ( 56 AS INTEGER ) ) * + ( + 91 ) - - 91
----
4277

query I rowsort
SELECT + 6 * - 41 * - 52
----
12792

query II rowsort
SELECT DISTINCT + + ( 26 ) AS col0, + 17 * 6 * + 76 AS col2
----
26
7752

query I rowsort
SELECT + 47 * - + 60 + - + 36 AS col0
----
-2856

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

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL SUM ( 25 )
----
25

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1691
SELECT + - COALESCE ( - 14, - - COUNT( * ), COUNT( ( + 27 ) ) * + CAST( NULL AS SIGNED ) ) + - MIN( DISTINCT 87 ) * - + 96 col1
----
8366

skipif mysql # not compatible
query I rowsort label-1691
SELECT + - COALESCE ( - 14, - - COUNT ( * ), COUNT ( ( + 27 ) ) * + CAST ( NULL AS INTEGER ) ) + - MIN ( DISTINCT 87 ) * - + 96 col1
----
8366

query I rowsort
SELECT DISTINCT ( + 68 ) * + 64
----
4352

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT COUNT( * ) * - - 1 * - - 96 + 37 * + 84 * 2
----
6312

skipif mysql # not compatible
query I rowsort label-1695
SELECT COUNT ( * ) * - - 1 * - - 96 + 37 * + 84 * 2
----
6312

query I rowsort
SELECT - NULLIF ( CASE - - 31 WHEN + 19 THEN + 6 * - 18 + - + 20 END, - 70 * ( - - 84 ) + + - NULLIF ( - ( - 29 ), 76 ) * - 60 ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1697
SELECT - COUNT ( ALL + 6 ) AS col0
----
-1

query I rowsort
SELECT + 28 + - - 47 AS col1
----
75

query I rowsort
SELECT + 46 * - 37
----
-1702

query I rowsort
SELECT ALL 52 * + 5 AS col2
----
260

query I rowsort
SELECT + 58 - + 8 + - 49 AS col0
----
1

query I rowsort
SELECT + 22 * + - 21 AS col2
----
-462

query I rowsort
SELECT ALL 98 * + + 7
----
686

onlyif mysql # DIV for integer division: 
query I rowsort label-1704
SELECT ALL 22 DIV 12
----
1

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL 22 / 12
----
1

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

skipif mysql # not compatible
query I rowsort label-1705
SELECT + 86 * + + COUNT ( DISTINCT - 92 ) AS col0
----
86

query I rowsort
SELECT + 4 - 42 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT ALL - 19 + - ( + 40 ) + - 82 * + SUM( DISTINCT 35 ) + - - COUNT( * )
----
-2928

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL - 19 + - ( + 40 ) + - 82 * + SUM ( DISTINCT 35 ) + - - COUNT ( * )
----
-2928

query I rowsort
SELECT + 80 - + 38
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1709
SELECT + 50 + CAST( NULL AS DECIMAL ) + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1709
SELECT + 50 + CAST ( NULL AS REAL ) + + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT - CASE - - COUNT( * ) WHEN - 44 THEN + 43 ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT - CASE - - COUNT ( * ) WHEN - 44 THEN + 43 ELSE NULL END * COUNT ( * )
----
NULL

query I rowsort
SELECT - CASE + - 21 WHEN - AVG ( ALL - + 15 ) THEN 92 WHEN - - 33 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1712
SELECT CAST( - 43 AS SIGNED ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-1712
SELECT CAST ( - 43 AS INTEGER ) AS col2
----
-43

query I rowsort
SELECT + - 4 + - ( + + 55 ) * + 28 AS col2
----
-1544

onlyif mysql # DIV for integer division: 
query I rowsort label-1714
SELECT ALL 83 DIV + 72 + - - 91 + 65 AS col0
----
157

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL 83 / + 72 + - - 91 + 65 AS col0
----
157

query I rowsort
SELECT DISTINCT 6 * + 86 AS col0
----
516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1716
SELECT - 77 + + + 35 + - 66 + + COUNT( * ) DIV 33 - - + 66 * 41 AS col0
----
2598

skipif mysql # not compatible
query I rowsort label-1716
SELECT - 77 + + + 35 + - 66 + + COUNT ( * ) / 33 - - + 66 * 41 AS col0
----
2598

query I rowsort
SELECT - 99 * + + 10 * 68 * + 49 + + ( - - 91 ) + 21 AS col2
----
-3298568

query I rowsort
SELECT + - 3 * - - 47 AS col1
----
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1719
SELECT - - SUM( ALL + + 36 ) * MAX( ALL + 39 ) + - SUM( 68 ) DIV + ( - 63 ) AS col1
----
1405

skipif mysql # not compatible
query I rowsort label-1719
SELECT - - SUM ( ALL + + 36 ) * MAX ( ALL + 39 ) + - SUM ( 68 ) / + ( - 63 ) AS col1
----
1405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1720
SELECT DISTINCT - CASE + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN + 40 + - + 93 WHEN 13 THEN - NULLIF ( + 94, + 4 ) + 4 * - - COUNT( * ) + + 65 / + CASE + + 15 WHEN - 59 + 97 THEN NULL ELSE 63 - + 73 / - 46 END ELSE NULL END / + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT - CASE + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN + 40 + - + 93 WHEN 13 THEN - NULLIF ( + 94, + 4 ) + 4 * - - COUNT ( * ) + + 65 / + CASE + + 15 WHEN - 59 + 97 THEN NULL ELSE 63 - + 73 / - 46 END ELSE NULL END / + 30 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT - 66 * 98 + 63 * + - COUNT( * ) * 55 * + ( + COUNT( * ) ) col1
----
-9933

skipif mysql # not compatible
query I rowsort label-1722
SELECT - 66 * 98 + 63 * + - COUNT ( * ) * 55 * + ( + COUNT ( * ) ) col1
----
-9933

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT DISTINCT - + 73 DIV + 52
----
-1

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT - + 73 / + 52
----
-1

query I rowsort
SELECT DISTINCT - 9 * 92 + 73 - + - 71
----
-684

query I rowsort
SELECT DISTINCT + 51 * - 36
----
-1836

query II rowsort
SELECT ALL + 77 AS col2, ( - - 90 ) AS col2
----
77
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT COALESCE ( - COUNT( * ), - - 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-1727
SELECT COALESCE ( - COUNT ( * ), - - 20 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1728
SELECT - CAST( NULLIF ( ( 85 ), - + 79 ) AS SIGNED ) * - 81 * - + 90 * - SUM( ALL + - 7 ) + - + CASE - 82 WHEN - - 18 + + 66 * COUNT( * ) * - + 83 THEN + 86 * + CASE 56 WHEN + 40 THEN 5 END WHEN + 76 THEN NULL ELSE NULL END + ( 18 + + 75 * CAST( 31 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1728
SELECT - CAST ( NULLIF ( ( 85 ), - + 79 ) AS INTEGER ) * - 81 * - + 90 * - SUM ( ALL + - 7 ) + - + CASE - 82 WHEN - - 18 + + 66 * COUNT ( * ) * - + 83 THEN + 86 * + CASE 56 WHEN + 40 THEN 5 END WHEN + 76 THEN NULL ELSE NULL END + ( 18 + + 75 * CAST ( 31 AS INTEGER ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1729
SELECT MIN ( 11 )
----
11

query II rowsort
SELECT - 49 AS col1, 78 * - + 83
----
-49
-6474

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT MIN( 94 )
----
94

skipif mysql # not compatible
query I rowsort label-1731
SELECT MIN ( 94 )
----
94

query I rowsort
SELECT - 58 + 87
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT - 34 + + + ( - COUNT( * ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-1733
SELECT - 34 + + + ( - COUNT ( * ) ) AS col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1734
SELECT COUNT( * ) AS col2, 85 DIV - COUNT( * )
----
1
-85

skipif mysql # not compatible
query II rowsort label-1734
SELECT COUNT ( * ) AS col2, 85 / - COUNT ( * )
----
1
-85

query II rowsort
SELECT ALL 60 AS col2, 97 * + 42 AS col1
----
60
4074

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT - 10 + MAX( DISTINCT 16 )
----
6

skipif mysql # not compatible
query I rowsort label-1736
SELECT - 10 + MAX ( DISTINCT 16 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT ALL + 50 + + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL + 50 + + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL 81 * - + 79 * COUNT( * )
----
-6399

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL 81 * - + 79 * COUNT ( * )
----
-6399

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT + 86 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-1739
SELECT + 86 / - 62
----
-1

query I rowsort
SELECT + 4 + + 89
----
93

query I rowsort
SELECT ALL 74 + + - 41 * 64 AS col1
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT + MIN( ALL + 72 ) + + 83 col1
----
155

skipif mysql # not compatible
query I rowsort label-1742
SELECT + MIN ( ALL + 72 ) + + 83 col1
----
155

query I rowsort
SELECT ALL 45 * - 37
----
-1665

query I rowsort
SELECT DISTINCT ( 41 ) + - + 99
----
-58

query I rowsort
SELECT - 68 * 63 * + - 96
----
411264

query I rowsort
SELECT - CASE - ( 35 ) WHEN + 56 THEN + 67 WHEN 63 / - + 28 * + - 11 - + 71 * + 52 THEN - - ( 20 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1747
SELECT ALL 38 + 7 DIV 89
----
38

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL 38 + 7 / 89
----
38

query I rowsort
SELECT DISTINCT 97 + + - 98
----
-1

query II rowsort
SELECT - 36 AS col2, + 7
----
-36
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1750
SELECT 47 DIV 3
----
15

skipif mysql # not compatible
query I rowsort label-1750
SELECT 47 / 3
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT ALL + CASE + + COALESCE ( + MIN( ALL - 75 ), + 53 - - 75, + COUNT( * ) ) WHEN + 91 * + - 2 THEN + + 91 * 55 - 87 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL + CASE + + COALESCE ( + MIN ( ALL - 75 ), + 53 - - 75, + COUNT ( * ) ) WHEN + 91 * + - 2 THEN + + 91 * 55 - 87 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ALL SUM( + 7 ) + + 27 col0
----
34

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL SUM ( + 7 ) + + 27 col0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1753
SELECT ALL 69 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL 69 / - 90
----
0

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

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

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

skipif mysql # not compatible
query II rowsort label-1755
SELECT 45 col0, COUNT ( * ) AS col1
----
45
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT + CASE 96 WHEN - + NULLIF ( + 17, + 0 ) * + ( + 56 ) THEN + 73 ELSE COUNT( - - 38 ) + + 34 - + + 40 * + 57 + + 19 END
----
-2226

skipif mysql # not compatible
query I rowsort label-1756
SELECT + CASE 96 WHEN - + NULLIF ( + 17, + 0 ) * + ( + 56 ) THEN + 73 ELSE COUNT ( - - 38 ) + + 34 - + + 40 * + 57 + + 19 END
----
-2226

query I rowsort
SELECT + CASE 58 WHEN + 65 THEN - 7 * 23 WHEN - 54 THEN - + 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT 57 * + 22 + + - 13 * + 82 - + + 27 * CASE + + 77 WHEN - ( - 30 ) * + - 23 THEN - ( - 10 ) WHEN - + ( - 61 ) THEN NULL END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT 57 * + 22 + + - 13 * + 82 - + + 27 * CASE + + 77 WHEN - ( - 30 ) * + - 23 THEN - ( - 10 ) WHEN - + ( - 61 ) THEN NULL END - COUNT ( * )
----
NULL

query II rowsort
SELECT + 71 AS col2, 70
----
71
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT ALL - - SUM( DISTINCT - ( - - 58 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL - - SUM ( DISTINCT - ( - - 58 ) )
----
-58

query I rowsort
SELECT ALL 24 * 73
----
1752

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT - COUNT( * ) + 62 * - COUNT( * ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-1762
SELECT - COUNT ( * ) + 62 * - COUNT ( * ) col2
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-1763
SELECT + 30 DIV ( + - 46 ) + 65, + 26 + 53 col2
----
65
79

skipif mysql # not compatible
query II rowsort label-1763
SELECT + 30 / ( + - 46 ) + 65, + 26 + 53 col2
----
65
79

query I rowsort
SELECT 22 * - 98 AS col2
----
-2156

onlyif mysql # DIV for integer division: 
query I rowsort label-1765
SELECT ALL - 63 DIV + - 86 DIV 83 * + 80
----
0

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL - 63 / + - 86 / 83 * + 80
----
0

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

query I rowsort
SELECT 63 * - 57 + - + ( + - ( + 56 ) ) col1
----
-3535

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT 22 * + COUNT( * ) * 43 AS col1
----
946

skipif mysql # not compatible
query I rowsort label-1768
SELECT 22 * + COUNT ( * ) * 43 AS col1
----
946

query I rowsort
SELECT ALL 16 + - - ( 71 ) + - + 27
----
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL - 64 + + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - 64 + + COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT 12 * + SUM( ALL - + 31 ) AS col0
----
-372

skipif mysql # not compatible
query I rowsort label-1772
SELECT 12 * + SUM ( ALL - + 31 ) AS col0
----
-372

query I rowsort
SELECT 47 * - ( - 94 )
----
4418

query I rowsort
SELECT DISTINCT - 73 * 17
----
-1241

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1775
SELECT 37 - + 39 AS col2, - 32 + - CAST( NULL AS SIGNED ) * + 22 * + 90
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-1775
SELECT 37 - + 39 AS col2, - 32 + - CAST ( NULL AS INTEGER ) * + 22 * + 90
----
-2
NULL

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

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT + 49 - + COUNT ( * ) AS col0
----
48

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

query II rowsort
SELECT - 36 * - - 7, 28 AS col2
----
-252
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT ALL - 58 DIV + 36 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - 58 / + 36 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT + 75 + + SUM( - 22 )
----
53

skipif mysql # not compatible
query I rowsort label-1780
SELECT + 75 + + SUM ( - 22 )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1781
SELECT - ( - 9 ) + + COUNT( * ) + - 14 DIV COUNT( * ) * - + 29 + + - COUNT( * ), 24 AS col1
----
415
24

skipif mysql # not compatible
query II rowsort label-1781
SELECT - ( - 9 ) + + COUNT ( * ) + - 14 / COUNT ( * ) * - + 29 + + - COUNT ( * ), 24 AS col1
----
415
24

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT - CASE - 37 WHEN + 2 * + ( CASE - 19 WHEN 94 THEN 21 ELSE NULL END ) * + NULLIF ( - 17, - 94 ) THEN + CAST( ( + 49 ) AS SIGNED ) * + 45 + 61 - + 5 + + 85 WHEN + 31 * - 69 THEN NULL WHEN + 87 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 28 ELSE + 4 END AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1784
SELECT - CASE - 37 WHEN + 2 * + ( CASE - 19 WHEN 94 THEN 21 ELSE NULL END ) * + NULLIF ( - 17, - 94 ) THEN + CAST ( ( + 49 ) AS INTEGER ) * + 45 + 61 - + 5 + + 85 WHEN + 31 * - 69 THEN NULL WHEN + 87 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 28 ELSE + 4 END AS col2
----
-4

query I rowsort
SELECT + - 12 * + + 98 + - 9 * 10 + + 26 * - - 50
----
34

query I rowsort
SELECT DISTINCT 13 * + 89 AS col1
----
1157

query I rowsort
SELECT + + COALESCE ( 95, - 40 ) AS col1
----
95

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

query II rowsort
SELECT - 1 * 88, 89 AS col1
----
-88
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1790
SELECT + 75 + - CASE ( + - 68 ) WHEN - - 6 - - COUNT( * ) THEN - 93 END + - + ( + 60 ) + + 75 - - 81 + - 71 * - 79 + - CAST( NULL AS SIGNED ) * - 89 * + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1790
SELECT + 75 + - CASE ( + - 68 ) WHEN - - 6 - - COUNT ( * ) THEN - 93 END + - + ( + 60 ) + + 75 - - 81 + - 71 * - 79 + - CAST ( NULL AS INTEGER ) * - 89 * + - 0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1791
SELECT - CAST( + 65 AS SIGNED ) * ( - CASE + + 77 WHEN + 70 THEN + - 58 * + + 2 END ) + 85 * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1791
SELECT - CAST ( + 65 AS INTEGER ) * ( - CASE + + 77 WHEN + 70 THEN + - 58 * + + 2 END ) + 85 * 58 AS col2
----
NULL

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

query I rowsort
SELECT 68 * + 32
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT - 96 * COUNT( * ) + + 34
----
-62

skipif mysql # not compatible
query I rowsort label-1794
SELECT - 96 * COUNT ( * ) + + 34
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1795
SELECT ALL CAST( NULL AS SIGNED ) + + NULLIF ( NULLIF ( - COUNT( 1 ), - 18 ), - 26 + + - 43 ), 68 + - COUNT( - + 43 ) AS col0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-1795
SELECT ALL CAST ( NULL AS INTEGER ) + + NULLIF ( NULLIF ( - COUNT ( 1 ), - 18 ), - 26 + + - 43 ), 68 + - COUNT ( - + 43 ) AS col0
----
NULL
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT - SUM( 51 ) * - - 64 + + 99 + 90
----
-3075

skipif mysql # not compatible
query I rowsort label-1796
SELECT - SUM ( 51 ) * - - 64 + + 99 + 90
----
-3075

query I rowsort
SELECT DISTINCT + ( + - 73 ) + 39 + 11 - - 21 + - ( - 29 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT + MAX( DISTINCT + + 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1798
SELECT + MAX ( DISTINCT + + 86 ) AS col2
----
86

query I rowsort
SELECT ALL 75 + 63 AS col1
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-1800
SELECT DISTINCT COUNT( * ) * - + 37 * + 11 AS col1, 82 * - COUNT( * ) AS col0
----
-407
-82

skipif mysql # not compatible
query II rowsort label-1800
SELECT DISTINCT COUNT ( * ) * - + 37 * + 11 AS col1, 82 * - COUNT ( * ) AS col0
----
-407
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-1801
SELECT ALL - 87 + + 20 DIV + 29 AS col0, ( + - 9 ) AS col2
----
-87
-9

skipif mysql # not compatible
query II rowsort label-1801
SELECT ALL - 87 + + 20 / + 29 AS col0, ( + - 9 ) AS col2
----
-87
-9

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1803
SELECT + 57, 42 + - - 58 + - ( - 71 ) + + + 14 col2, - NULLIF ( 20, - 55 * + - 5 ) + COUNT( * ) col0
----
57
185
-19

skipif mysql # not compatible
query III rowsort label-1803
SELECT + 57, 42 + - - 58 + - ( - 71 ) + + + 14 col2, - NULLIF ( 20, - 55 * + - 5 ) + COUNT ( * ) col0
----
57
185
-19

query I rowsort
SELECT 57 + 29 col1
----
86

query I rowsort
SELECT ALL 63 + - 78 + + 87
----
72

query I rowsort
SELECT ALL + 33 + + - 65
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT + 27 * - + COALESCE ( - + COUNT( + 52 ), + 20 * 53 - + 65 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-1807
SELECT + 27 * - + COALESCE ( - + COUNT ( + 52 ), + 20 * 53 - + 65 ) AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1808
SELECT DISTINCT + 15 DIV + - 54
----
0

skipif mysql # not compatible
query I rowsort label-1808
SELECT DISTINCT + 15 / + - 54
----
0

query I rowsort
SELECT 24 * - + 6 + ( + 22 ) + - 47
----
-169

query I rowsort
SELECT ALL 27 - 31 * - 96
----
3003

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1811
SELECT 7 col1, - CAST( NULL AS DECIMAL ) * 92
----
7
NULL

skipif mysql # not compatible
query II rowsort label-1811
SELECT 7 col1, - CAST ( NULL AS REAL ) * 92
----
7
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1812
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL - COUNT( * ) * - 41 * - + SUM( ALL - 6 )
----
246

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL - COUNT ( * ) * - 41 * - + SUM ( ALL - 6 )
----
246

query I rowsort
SELECT - 91 + - ( 62 ) AS col0
----
-153

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

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

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

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

query I rowsort
SELECT - 29 + + - 8 + 74 * + - NULLIF ( 98, - 55 * 69 )
----
-7289

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1818
SELECT - 43 + - + 87 + + 98 DIV - MIN( 30 )
----
-133

skipif mysql # not compatible
query I rowsort label-1818
SELECT - 43 + - + 87 + + 98 / - MIN ( 30 )
----
-133

query I rowsort
SELECT ALL - + 71 * 94 AS col2
----
-6674

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

skipif mysql # not compatible
query I rowsort label-1820
SELECT MIN ( DISTINCT 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT DISTINCT MAX( + 18 ) col0
----
18

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT MAX ( + 18 ) col0
----
18

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

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

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

skipif mysql # not compatible
query I rowsort label-1823
SELECT - COUNT ( - 98 )
----
-1

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

query I rowsort
SELECT ALL - COALESCE ( 26, + 84 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1826
SELECT ALL - 86 * - + CAST( NULL AS SIGNED ) + + - MIN( DISTINCT - ( - - 98 ) ) + - + COUNT( ALL - 48 ) * + 24 + + 37 * 96 + - ( 29 ) - ( + - CAST( NULL AS SIGNED ) ) + + ( - - 63 ) + ( 68 ) / 21 / + 42 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL - 86 * - + CAST ( NULL AS INTEGER ) + + - MIN ( DISTINCT - ( - - 98 ) ) + - + COUNT ( ALL - 48 ) * + 24 + + 37 * 96 + - ( 29 ) - ( + - CAST ( NULL AS INTEGER ) ) + + ( - - 63 ) + ( 68 ) / 21 / + 42 col2
----
NULL

query II rowsort
SELECT + + 60 AS col2, 64
----
60
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT + MIN( DISTINCT + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-1828
SELECT + MIN ( DISTINCT + 59 )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1829
SELECT + 73 * 94 * - 98, - 63 - 60 * - CASE 58 WHEN - + COUNT( * ) THEN 13 * + - COUNT( * ) / 30 ELSE NULL END AS col0
----
-672476
NULL

skipif mysql # not compatible
query II rowsort label-1829
SELECT + 73 * 94 * - 98, - 63 - 60 * - CASE 58 WHEN - + COUNT ( * ) THEN 13 * + - COUNT ( * ) / 30 ELSE NULL END AS col0
----
-672476
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT ALL - 7 * - - NULLIF ( - 58, + COUNT( * ) ) + + - 52 AS col0
----
354

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL - 7 * - - NULLIF ( - 58, + COUNT ( * ) ) + + - 52 AS col0
----
354

onlyif mysql # aggregate syntax: 
query II rowsort label-1831
SELECT 60, - 67 * + + 4 + 39 + - 87 - - 95 * + COALESCE ( + 72, - 48 * 80 + + 69 ) + - CASE + 96 WHEN - 18 THEN - COUNT( * ) * 36 + 5 + + 54 ELSE - ( 95 ) - + CASE + ( + 32 ) WHEN 19 - + 45 THEN NULL WHEN + 93 THEN 9 * 78 END END * + 92 AS col1
----
60
NULL

skipif mysql # not compatible
query II rowsort label-1831
SELECT 60, - 67 * + + 4 + 39 + - 87 - - 95 * + COALESCE ( + 72, - 48 * 80 + + 69 ) + - CASE + 96 WHEN - 18 THEN - COUNT ( * ) * 36 + 5 + + 54 ELSE - ( 95 ) - + CASE + ( + 32 ) WHEN 19 - + 45 THEN NULL WHEN + 93 THEN 9 * 78 END END * + 92 AS col1
----
60
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1832
SELECT - 54 DIV NULLIF ( - COUNT( * ), - 36 ) - - + 56, 35 * - - ( 75 ) + + 48 AS col1
----
110
2673

skipif mysql # not compatible
query II rowsort label-1832
SELECT - 54 / NULLIF ( - COUNT ( * ), - 36 ) - - + 56, 35 * - - ( 75 ) + + 48 AS col1
----
110
2673

query I rowsort
SELECT ALL - ( + + 9 ) * + + 78 col0
----
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT ALL 91 * + 48 + - - COUNT( * ) + + 14 * 96
----
5713

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL 91 * + 48 + - - COUNT ( * ) + + 14 * 96
----
5713

query I rowsort
SELECT - 34 + 19 * - 90 AS col0
----
-1744

query I rowsort
SELECT + 10 * 84 - 22 + + NULLIF ( - 55, + 15 )
----
763

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT COALESCE ( 2, + 34, + COUNT( DISTINCT - 60 ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1837
SELECT COALESCE ( 2, + 34, + COUNT ( DISTINCT - 60 ) ) AS col0
----
2

query I rowsort
SELECT - 47 * 15 + + 60 + 15
----
-630

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

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

query I rowsort
SELECT ALL 80 * - NULLIF ( + - 84, + + ( - 91 ) + 37 ) AS col2
----
6720

query I rowsort
SELECT + 62 + + + 79
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT MAX( DISTINCT + 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1842
SELECT MAX ( DISTINCT + 38 ) AS col2
----
38

query I rowsort
SELECT + 58 * + 32 + + 70 + + 56 + + 47 * - 25 * + 4 * - 89 + - ( + 31 ) AS col2
----
420251

query I rowsort
SELECT - 27 * 93
----
-2511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1845
SELECT + - NULLIF ( 0, - 36 ) - + 25 - + 72 * - 65 + + CAST( NULL AS SIGNED ) + - + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1845
SELECT + - NULLIF ( 0, - 36 ) - + 25 - + 72 * - 65 + + CAST ( NULL AS INTEGER ) + - + 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT - MAX( 46 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-1846
SELECT - MAX ( 46 ) AS col0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT ALL + 75 DIV + 47 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL + 75 / + 47 AS col1
----
1

query I rowsort
SELECT ALL - COALESCE ( + - 44, + + 60 * 2 * - 58 + + 14 + + 12, - 2 * - + 95 + 63 ) AS col0
----
44

query I rowsort
SELECT ALL - 25 * + + 33 AS col0
----
-825

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

skipif mysql # not compatible
query I rowsort label-1850
SELECT - - 20 / + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - ( 15 ) - + ( - 38 ), - 63 AS col2
----
23
-63

query I rowsort
SELECT + 74 + - + 8 + + 77
----
143

query I rowsort
SELECT - 43 - - 56
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-1854
SELECT ALL + SUM( 73 ) * MAX( DISTINCT + 10 ) AS col0, + 14 AS col2
----
730
14

skipif mysql # not compatible
query II rowsort label-1854
SELECT ALL + SUM ( 73 ) * MAX ( DISTINCT + 10 ) AS col0, + 14 AS col2
----
730
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1855
SELECT + 81 * + 73 + - 56 + - CAST( NULL AS SIGNED ) - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1855
SELECT + 81 * + 73 + - 56 + - CAST ( NULL AS INTEGER ) - - 94
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1856
SELECT ALL - + 69 / - 27 / CAST( NULL AS DECIMAL ) + + - MAX( ALL - 68 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL - + 69 / - 27 / CAST ( NULL AS REAL ) + + - MAX ( ALL - 68 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1857
SELECT DISTINCT + 29 * + COUNT( * ) AS col1, 84 * + COALESCE ( - COUNT( * ), - + 65 ) AS col2
----
29
-84

skipif mysql # not compatible
query II rowsort label-1857
SELECT DISTINCT + 29 * + COUNT ( * ) AS col1, 84 * + COALESCE ( - COUNT ( * ), - + 65 ) AS col2
----
29
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT DISTINCT + MIN( DISTINCT 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1858
SELECT DISTINCT + MIN ( DISTINCT 36 ) AS col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT DISTINCT + ( - 34 ) DIV - 8 - - 88
----
92

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT + ( - 34 ) / - 8 - - 88
----
92

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

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

query I rowsort
SELECT - 52 * + + 35
----
-1820

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT ALL - NULLIF ( + + COUNT( * ), + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL - NULLIF ( + + COUNT ( * ), + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1864
SELECT 40 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-1864
SELECT 40 / 58
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1865
SELECT ALL - 33 DIV - - 89 DIV COUNT( ALL + 50 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL - 33 / - - 89 / COUNT ( ALL + 50 ) col0
----
0

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

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

query I rowsort
SELECT 66 * - 1
----
-66

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1869
SELECT + MAX( + 98 ) * - + ( 25 ) + - 85 AS col0, - 14 AS col2
----
-2535
-14

skipif mysql # not compatible
query II rowsort label-1869
SELECT + MAX ( + 98 ) * - + ( 25 ) + - 85 AS col0, - 14 AS col2
----
-2535
-14

query II rowsort
SELECT 94 * + 29 * 37 AS col0, - 92
----
100862
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT - SUM( DISTINCT + 19 ) + - 29 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-1871
SELECT - SUM ( DISTINCT + 19 ) + - 29 AS col2
----
-48

query I rowsort
SELECT ALL + ( + 52 ) col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1873
SELECT 74 * - COUNT( * ) * + - ( - - 22 ) * NULLIF ( + + CAST( - - 69 AS SIGNED ), 67 ) + - - ( NULLIF ( 90, - 84 * - 81 + COUNT( * ) ) ) * + + COUNT( * )
----
112422

skipif mysql # not compatible
query I rowsort label-1873
SELECT 74 * - COUNT ( * ) * + - ( - - 22 ) * NULLIF ( + + CAST ( - - 69 AS INTEGER ), 67 ) + - - ( NULLIF ( 90, - 84 * - 81 + COUNT ( * ) ) ) * + + COUNT ( * )
----
112422

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT - SUM( DISTINCT - 86 ) + + + 97 AS col2
----
183

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT - SUM ( DISTINCT - 86 ) + + + 97 AS col2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT DISTINCT 79 + + - COUNT( * ) + - 0 * + 58 * 66 * - 82 + - 85 + 90 * - ( + COALESCE ( + 10, + - 83 ) ) * COUNT( * ) AS col2
----
-907

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT 79 + + - COUNT ( * ) + - 0 * + 58 * 66 * - 82 + - 85 + 90 * - ( + COALESCE ( + 10, + - 83 ) ) * COUNT ( * ) AS col2
----
-907

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - COALESCE ( COUNT( * ), 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-1876
SELECT - COALESCE ( COUNT ( * ), 5 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT 43 + SUM( - 42 ) * 39 AS col2
----
-1595

skipif mysql # not compatible
query I rowsort label-1877
SELECT 43 + SUM ( - 42 ) * 39 AS col2
----
-1595

query I rowsort
SELECT - ( + 43 ) col2
----
-43

query II rowsort
SELECT DISTINCT + 17, 13 col0
----
17
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1880
SELECT ALL + 3 + 31 + 39 + + 24 DIV - 27 * - ( - + COUNT( * ) ) * 59 + - 25
----
48

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL + 3 + 31 + 39 + + 24 / - 27 * - ( - + COUNT ( * ) ) * 59 + - 25
----
48

query I rowsort
SELECT - 94 * - - 15
----
-1410

query II rowsort
SELECT ALL 13, - 60 * - 41 AS col2
----
13
2460

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT DISTINCT - + MIN( 53 ) + + 76 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1883
SELECT DISTINCT - + MIN ( 53 ) + + 76 AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1884
SELECT DISTINCT - CAST( - 9 AS SIGNED ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT - CAST ( - 9 AS INTEGER ) AS col0
----
9

query I rowsort
SELECT DISTINCT 11 - + 4
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1886
SELECT COUNT( * ) * + NULLIF ( - COUNT( * ), CAST( + 66 AS SIGNED ) * - COALESCE ( + CAST( NULL AS SIGNED ), 27, - + 7 ) ) DIV + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1886
SELECT COUNT ( * ) * + NULLIF ( - COUNT ( * ), CAST ( + 66 AS INTEGER ) * - COALESCE ( + CAST ( NULL AS INTEGER ), 27, - + 7 ) ) / + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL - 28 * 61 * 14
----
-23912

query I rowsort
SELECT - 1 * + - 78 - 41
----
37

query I rowsort
SELECT DISTINCT 69 * + 73
----
5037

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

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

query I rowsort
SELECT 74 * + 11 + - - 95
----
909

query I rowsort
SELECT 46 * + + 53
----
2438

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT 82 * - 32 * + - MIN( + - 45 ) AS col0
----
-118080

skipif mysql # not compatible
query I rowsort label-1893
SELECT 82 * - 32 * + - MIN ( + - 45 ) AS col0
----
-118080

query I rowsort
SELECT + 63 * + 24 - 94 col0
----
1418

query I rowsort
SELECT ALL - NULLIF ( + 46, - 19 )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1896
SELECT DISTINCT - 84 DIV 91 AS col1, - COUNT( * ) + + + ( - 88 ) * - 57 AS col1
----
0
5015

skipif mysql # not compatible
query II rowsort label-1896
SELECT DISTINCT - 84 / 91 AS col1, - COUNT ( * ) + + + ( - 88 ) * - 57 AS col1
----
0
5015

query I rowsort
SELECT 94 - - - 77
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1898
SELECT 1 DIV - 2 * - + 33
----
0

skipif mysql # not compatible
query I rowsort label-1898
SELECT 1 / - 2 * - + 33
----
0

query I rowsort
SELECT ALL - 66 + + 78 AS col1
----
12

query I rowsort
SELECT 72 * 10 AS col2
----
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1901
SELECT DISTINCT - 93 DIV COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT - 93 / COUNT ( * ) AS col1
----
-93

query I rowsort
SELECT ALL - COALESCE ( - 47, - 83, - 42, + ( - 60 ) ) AS col1
----
47

query I rowsort
SELECT DISTINCT - 81 + ( + 55 ) AS col0
----
-26

query I rowsort
SELECT 12 + - 36 * + 46
----
-1644

query II rowsort
SELECT ALL - 99, 20 col0
----
-99
20

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

skipif mysql # not compatible
query I rowsort label-1906
SELECT 42 / + - 6 - - + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL + 67 + - - 93 + + - 40 + - + 43 * - - 28 * - 55 * - COUNT( * )
----
-66100

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL + 67 + - - 93 + + - 40 + - + 43 * - - 28 * - 55 * - COUNT ( * )
----
-66100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1908
SELECT + 12 / + CAST( NULL AS DECIMAL ) / + - COUNT( * ) * - COALESCE ( + 83, - - 3 + - COUNT( * ), - COALESCE ( + + 99, - MIN( ALL - 55 ) * - + 3 / - 66 * + 41 + + + MAX( + 83 ) - + 66 * + 26 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT + 12 / + CAST ( NULL AS REAL ) / + - COUNT ( * ) * - COALESCE ( + 83, - - 3 + - COUNT ( * ), - COALESCE ( + + 99, - MIN ( ALL - 55 ) * - + 3 / - 66 * + 41 + + + MAX ( + 83 ) - + 66 * + 26 ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1909
SELECT - SUM ( ALL 44 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1910
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) / - 98 + + - CAST( 92 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) / - 98 + + - CAST ( 92 AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 99 - + 26 AS col0, - 6
----
73
-6

query I rowsort
SELECT - 78 + - + 17 AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1913
SELECT ALL + + 80 + + + COUNT( + 87 ) + - 76 DIV 64
----
80

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL + + 80 + + + COUNT ( + 87 ) + - 76 / 64
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-1914
SELECT ALL + 4 AS col2, - COUNT( - 68 )
----
4
-1

skipif mysql # not compatible
query II rowsort label-1914
SELECT ALL + 4 AS col2, - COUNT ( - 68 )
----
4
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT 91 + + COUNT( * ) * - + 36 + + + 99 + + 39
----
193

skipif mysql # not compatible
query I rowsort label-1915
SELECT 91 + + COUNT ( * ) * - + 36 + + + 99 + + 39
----
193

query I rowsort
SELECT ALL - 40 * + 37 * - - 43 AS col2
----
-63640

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1918
SELECT - - CAST( COALESCE ( AVG ( DISTINCT - 3 ), + 40 / - CASE - 90 WHEN - - 68 THEN 56 WHEN + 21 + 16 + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END, 35 * - COUNT( DISTINCT 9 ) - + 35 / + - 18 + - CASE COUNT( * ) WHEN - + SUM( 29 ) THEN 80 * 82 - 11 * + ( 68 * 43 ) WHEN - NULLIF ( - 9, 20 ) * - 68 THEN NULL ELSE 43 * 68 + - 88 / + 81 END ) AS SIGNED ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1918
SELECT - - CAST ( COALESCE ( AVG ( DISTINCT - 3 ), + 40 / - CASE - 90 WHEN - - 68 THEN 56 WHEN + 21 + 16 + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END, 35 * - COUNT ( DISTINCT 9 ) - + 35 / + - 18 + - CASE COUNT ( * ) WHEN - + SUM ( 29 ) THEN 80 * 82 - 11 * + ( 68 * 43 ) WHEN - NULLIF ( - 9, 20 ) * - 68 THEN NULL ELSE 43 * 68 + - 88 / + 81 END ) AS INTEGER ) AS col1
----
-3

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

query I rowsort
SELECT DISTINCT 93 - + + 29
----
64

query I rowsort
SELECT + NULLIF ( 72, - - 31 ) + - 34 + + + 91 * - 61
----
-5513

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1922
SELECT + 17 + - MIN( ALL + 28 ) * + - CAST( - CASE + 27 WHEN - + 14 * - COUNT( * ) * - 37 * - COUNT( * ) - 79 + 68 THEN - COALESCE ( + 42, - + MAX( + CAST( NULL AS SIGNED ) ), - 61 * 24 ) * + 56 END AS SIGNED ) * + NULLIF ( - 67, - NULLIF ( 94, - 37 ) ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT + 17 + - MIN ( ALL + 28 ) * + - CAST ( - CASE + 27 WHEN - + 14 * - COUNT ( * ) * - 37 * - COUNT ( * ) - 79 + 68 THEN - COALESCE ( + 42, - + MAX ( + CAST ( NULL AS INTEGER ) ), - 61 * 24 ) * + 56 END AS INTEGER ) * + NULLIF ( - 67, - NULLIF ( 94, - 37 ) ) + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT + 29 + + + 68, 10 + 83 AS col0
----
97
93

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1925
SELECT + COUNT( * ) * + + NULLIF ( + CAST( - ( + 91 ) AS SIGNED ), - 20 / 30 + + 19 ) + + 51
----
-40

skipif mysql # not compatible
query I rowsort label-1925
SELECT + COUNT ( * ) * + + NULLIF ( + CAST ( - ( + 91 ) AS INTEGER ), - 20 / 30 + + 19 ) + + 51
----
-40

query I rowsort
SELECT + 75 * + COALESCE ( 28, - 23 + 27 + - 67 * + 18 ) * 45
----
94500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1927
SELECT + MAX( + 55 ) + + - CASE + CAST( NULL AS SIGNED ) WHEN + 18 THEN 80 * - 41 ELSE NULL END + + + 44 + + - 28 + COUNT( * ) + + COALESCE ( + COUNT( * ), + + 33, - + 33 ) + + 87 * + 89 * + COALESCE ( 33, - COUNT( * ) + - + 84 * - 37 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1927
SELECT + MAX ( + 55 ) + + - CASE + CAST ( NULL AS INTEGER ) WHEN + 18 THEN 80 * - 41 ELSE NULL END + + + 44 + + - 28 + COUNT ( * ) + + COALESCE ( + COUNT ( * ), + + 33, - + 33 ) + + 87 * + 89 * + COALESCE ( 33, - COUNT ( * ) + - + 84 * - 37 ) AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( 62, - + 85 / + 73 )
----
62

query I rowsort
SELECT - 27 + - 93 * - + 18
----
1647

query I rowsort
SELECT + 39 * - 36 AS col1
----
-1404

query II rowsort
SELECT ALL 97 * - 11 AS col2, + 72 * - 87
----
-1067
-6264

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT DISTINCT COUNT( * ) * 73 + - 54 + ( - 75 ) * + 54
----
-4031

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT COUNT ( * ) * 73 + - 54 + ( - 75 ) * + 54
----
-4031

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

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

query I rowsort
SELECT - + 82 + - - 15
----
-67

query I rowsort
SELECT ALL - 84 * - 98 + + 15 + - 84 col2
----
8163

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT ALL - 48 * 53 + + COUNT( * ) AS col0
----
-2543

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL - 48 * 53 + + COUNT ( * ) AS col0
----
-2543

onlyif mysql # aggregate syntax: 
query II rowsort label-1937
SELECT ALL + COUNT( * ) * + ( 50 ) + 63 - 43 col2, 69 AS col1
----
70
69

skipif mysql # not compatible
query II rowsort label-1937
SELECT ALL + COUNT ( * ) * + ( 50 ) + 63 - 43 col2, 69 AS col1
----
70
69

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1939
SELECT DISTINCT NULLIF ( + 90, - 75 ) * + COUNT( * ) + + 61 * - + 21 * + 99 AS col2, - 24
----
-126729
-24

skipif mysql # not compatible
query II rowsort label-1939
SELECT DISTINCT NULLIF ( + 90, - 75 ) * + COUNT ( * ) + + 61 * - + 21 * + 99 AS col2, - 24
----
-126729
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT - - 58 * - ( + 30 ) * COUNT( * ) * - 13 + 70 + - + 57 * + 59
----
19327

skipif mysql # not compatible
query I rowsort label-1940
SELECT - - 58 * - ( + 30 ) * COUNT ( * ) * - 13 + 70 + - + 57 * + 59
----
19327

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL + - COUNT( * ) + 64 * + 35
----
2239

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + - COUNT ( * ) + 64 * + 35
----
2239

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT - 67 * + COUNT( * ) - - 72 * + 48 * + - 46 + - 32
----
-159075

skipif mysql # not compatible
query I rowsort label-1942
SELECT - 67 * + COUNT ( * ) - - 72 * + 48 * + - 46 + - 32
----
-159075

onlyif mysql # DIV for integer division: 
query I rowsort label-1943
SELECT ALL + 92 DIV - - 75 + + + NULLIF ( 52, - - 65 * - + COALESCE ( - 86, 23 ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL + 92 / - - 75 + + + NULLIF ( 52, - - 65 * - + COALESCE ( - 86, 23 ) ) AS col1
----
53

query II rowsort
SELECT ( - 78 ) col2, + 67 AS col0
----
-78
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL + - SUM( + 94 ) - - 25 + 87 + 15
----
33

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL + - SUM ( + 94 ) - - 25 + 87 + 15
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1946
SELECT DISTINCT + COUNT( * ) - + ( + COALESCE ( - - MAX( + 9 ), COUNT( * ) DIV + 98, - 13 ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT + COUNT ( * ) - + ( + COALESCE ( - - MAX ( + 9 ), COUNT ( * ) / + 98, - 13 ) ) AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + - 2 + + - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - 2 + + - 98 AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 60, + ( - 68 ) ) AS col1
----
60

query I rowsort
SELECT + 26 + 7 AS col1
----
33

query I rowsort
SELECT - 65 * - 52 * + + 47
----
158860

query I rowsort
SELECT - 70 * + - 58 col0
----
4060

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1952
SELECT + CAST( NULL AS DECIMAL ) + + AVG ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT + CAST ( NULL AS REAL ) + + AVG ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1953
SELECT - COALESCE ( + 89, ( - 68 ) DIV - ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) + - CAST( NULL AS SIGNED ) - - + 25 + - 1 + - 10 * + + 61 + + ( COUNT( * ) ), SUM( 30 ) + 29 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-1953
SELECT - COALESCE ( + 89, ( - 68 ) / - ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) + - CAST ( NULL AS INTEGER ) - - + 25 + - 1 + - 10 * + + 61 + + ( COUNT ( * ) ), SUM ( 30 ) + 29 ) AS col2
----
-89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT ALL ( SUM( - 49 ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL ( SUM ( - 49 ) ) AS col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1956
SELECT + MIN( DISTINCT + CAST( - 72 AS SIGNED ) ) * + 86
----
-6192

skipif mysql # not compatible
query I rowsort label-1956
SELECT + MIN ( DISTINCT + CAST ( - 72 AS INTEGER ) ) * + 86
----
-6192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1957
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 80 * + 5 AS col1
----
NULL
400

skipif mysql # not compatible
query II rowsort label-1957
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 80 * + 5 AS col1
----
NULL
400

query I rowsort
SELECT ALL + 2 * + 67
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-1959
SELECT 11 DIV - + 77 + 68 * + 94 AS col1
----
6392

skipif mysql # not compatible
query I rowsort label-1959
SELECT 11 / - + 77 + 68 * + 94 AS col1
----
6392

query I rowsort
SELECT DISTINCT 16 * + 44
----
704

onlyif mysql # aggregate syntax: 
query II rowsort label-1961
SELECT - COUNT( * ) + + - 71 + 10 AS col1, + 28 + 11 AS col1
----
-62
39

skipif mysql # not compatible
query II rowsort label-1961
SELECT - COUNT ( * ) + + - 71 + 10 AS col1, + 28 + 11 AS col1
----
-62
39

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1963
SELECT CAST( + - CASE - 19 WHEN - + 51 THEN NULL WHEN + CAST( - NULLIF ( 11, + - NULLIF ( - - 46, + COALESCE ( + - SUM( 23 ), - 90 + + 98 ) ) * - CASE + CAST( + - 23 AS SIGNED ) WHEN - + 27 + - COUNT( * ) THEN 25 WHEN - - COALESCE ( - + ( - 65 ), 70 ) THEN NULL ELSE 69 * AVG ( ALL 15 ) END ) AS SIGNED ) * 12 THEN COUNT( * ) + 95 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1963
SELECT CAST ( + - CASE - 19 WHEN - + 51 THEN NULL WHEN + CAST ( - NULLIF ( 11, + - NULLIF ( - - 46, + COALESCE ( + - SUM ( 23 ), - 90 + + 98 ) ) * - CASE + CAST ( + - 23 AS INTEGER ) WHEN - + 27 + - COUNT ( * ) THEN 25 WHEN - - COALESCE ( - + ( - 65 ), 70 ) THEN NULL ELSE 69 * AVG ( ALL 15 ) END ) AS INTEGER ) * 12 THEN COUNT ( * ) + 95 END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1964
SELECT CAST( - CAST( - 29 AS SIGNED ) AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-1964
SELECT CAST ( - CAST ( - 29 AS INTEGER ) AS INTEGER )
----
29

query II rowsort
SELECT DISTINCT + 14 AS col1, 51 + - 13
----
14
38

query I rowsort
SELECT DISTINCT NULLIF ( 37, - 90 * + + 79 ) * - 81 AS col1
----
-2997

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1967
SELECT + 97 DIV MAX( ALL 41 ) + + 73
----
75

skipif mysql # not compatible
query I rowsort label-1967
SELECT + 97 / MAX ( ALL 41 ) + + 73
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1968
SELECT - CAST( NULL AS SIGNED ) * 61 * + - 95 * - 67 * + 37 + + 55 - + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT - CAST ( NULL AS INTEGER ) * 61 * + - 95 * - 67 * + 37 + + 55 - + 59
----
NULL

query II rowsort
SELECT ALL - ( + - 32 ) * + - 34 + + 70 col0, - 38 AS col0
----
-1018
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL + - 13 * + CASE + COUNT( * ) WHEN - + 30 THEN + - ( 58 ) * + - 55 WHEN + 81 THEN NULL ELSE NULL END - - COALESCE ( + 86, - 6 + - 42 + - 39 - + 53 ) / ( 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL + - 13 * + CASE + COUNT ( * ) WHEN - + 30 THEN + - ( 58 ) * + - 55 WHEN + 81 THEN NULL ELSE NULL END - - COALESCE ( + 86, - 6 + - 42 + - 39 - + 53 ) / ( 95 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 25 * + 23
----
575

query I rowsort
SELECT - + ( + CASE + 18 WHEN 37 THEN + 88 END ) AS col1
----
NULL

query II rowsort
SELECT ALL + 64 AS col2, + 83 AS col1
----
64
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1974
SELECT ALL 82, ( + 9 ) * + 94 * - CAST( + AVG ( + - 83 ) AS SIGNED ) + - + 62 + 67 AS col0
----
82
70223

skipif mysql # not compatible
query II rowsort label-1974
SELECT ALL 82, ( + 9 ) * + 94 * - CAST ( + AVG ( + - 83 ) AS INTEGER ) + - + 62 + 67 AS col0
----
82
70223

query I rowsort
SELECT - COALESCE ( 94, + + 6 * - 25 / + 94 ) + - + CASE + 63 WHEN - 46 THEN 74 END * 58 * - ( - 22 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1976
SELECT - MIN( - CAST( - 23 AS SIGNED ) ) AS col2, + COUNT( * ) + + + 11
----
-23
12

skipif mysql # not compatible
query II rowsort label-1976
SELECT - MIN ( - CAST ( - 23 AS INTEGER ) ) AS col2, + COUNT ( * ) + + + 11
----
-23
12

query I rowsort
SELECT ( 70 ) + - ( - + ( + 33 ) ) AS col1
----
103

query I rowsort
SELECT 90 * 48
----
4320

query I rowsort
SELECT DISTINCT + 69 * 75
----
5175

query I rowsort
SELECT DISTINCT + 96 * - 14 * - + 81
----
108864

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT DISTINCT + SUM( + 8 ) * - 42
----
-336

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT + SUM ( + 8 ) * - 42
----
-336

query I rowsort
SELECT 60 + - 37
----
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT 75 - - COALESCE ( + + 64, - ( + - COUNT( * ) ) ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-1984
SELECT 75 - - COALESCE ( + + 64, - ( + - COUNT ( * ) ) ) AS col0
----
139

query II rowsort
SELECT ALL + 79 + - 86 AS col0, 62
----
-7
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1986
SELECT 65 + - ( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT 65 + - ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 98 + + 12 + - + 48 + 61 AS col2, + 42 AS col2
----
123
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ALL MIN( ALL - + ( + 41 ) ) + - 49
----
-90

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL MIN ( ALL - + ( + 41 ) ) + - 49
----
-90

query I rowsort
SELECT + 88 * 96 * 74 + + - 28 * + 19 + - 15 + - 14 * - 17 AS col2
----
624843

onlyif mysql # aggregate syntax: 
query II rowsort label-1990
SELECT ALL + 80 + + + 55 + + + 77 * + COUNT( * ) AS col0, - 76
----
212
-76

skipif mysql # not compatible
query II rowsort label-1990
SELECT ALL + 80 + + + 55 + + + 77 * + COUNT ( * ) AS col0, - 76
----
212
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1991
SELECT COUNT( DISTINCT - 30 ) DIV - 40 + + 67 + + 34 col0
----
101

skipif mysql # not compatible
query I rowsort label-1991
SELECT COUNT ( DISTINCT - 30 ) / - 40 + + 67 + + 34 col0
----
101

query I rowsort
SELECT ALL 56 + 92 + - 50 col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT 71 + + 75 * + 35 + - COUNT( * )
----
2695

skipif mysql # not compatible
query I rowsort label-1993
SELECT 71 + + 75 * + 35 + - COUNT ( * )
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ALL + COUNT( * ) - - 24 - + + 31 + - CASE - 15 WHEN + COALESCE ( - - 24, + MIN( 69 ) + - 65 ) THEN 89 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL + COUNT ( * ) - - 24 - + + 31 + - CASE - 15 WHEN + COALESCE ( - - 24, + MIN ( 69 ) + - 65 ) THEN 89 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT + 22 * + 12 - 28 + + - NULLIF ( COUNT( * ), + 12 ) AS col0
----
235

skipif mysql # not compatible
query I rowsort label-1995
SELECT + 22 * + 12 - 28 + + - NULLIF ( COUNT ( * ), + 12 ) AS col0
----
235

query I rowsort
SELECT 64 * - 23
----
-1472

query I rowsort
SELECT 97 + - + 44 + 99
----
152

query I rowsort
SELECT ALL - 75 - 62
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT 43 * + COUNT( * ) * - 99
----
-4257

skipif mysql # not compatible
query I rowsort label-1999
SELECT 43 * + COUNT ( * ) * - 99
----
-4257

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2001
SELECT DISTINCT + 42 DIV + + 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT + 42 / + + 72 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2002
SELECT DISTINCT 46 DIV - MIN( - 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT 46 / - MIN ( - 94 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2003
SELECT - 15 - CAST( + + 51 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-2003
SELECT - 15 - CAST ( + + 51 AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT COUNT( * ) * 47 * + 50
----
2350

skipif mysql # not compatible
query I rowsort label-2004
SELECT COUNT ( * ) * 47 * + 50
----
2350

query I rowsort
SELECT ALL + 92 * + 18
----
1656

query I rowsort
SELECT + ( 66 ) * 21 - - 41 * ( 72 ) AS col2
----
4338

query I rowsort
SELECT 12 + - 70
----
-58

query I rowsort
SELECT ALL 44 + - 55
----
-11

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

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

query I rowsort
SELECT ALL - 10 + NULLIF ( - 25, 25 + + NULLIF ( 74, - AVG ( + ( 52 ) ) * - - ( - + 26 ) ) * + 64 )
----
-35

query II rowsort
SELECT ALL 40 + - 58 * 77 AS col1, - 99 AS col0
----
-4426
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT ( - + ( - CASE + + 76 WHEN + 7 THEN ( - 41 ) ELSE CASE WHEN 41 IS NOT NULL THEN + + 20 + + - 24 END END ) ) * - - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2012
SELECT ( - + ( - CASE + + 76 WHEN + 7 THEN ( - 41 ) ELSE CASE WHEN 41 IS NOT NULL THEN + + 20 + + - 24 END END ) ) * - - COUNT ( * ) AS col2
----
-4

query I rowsort
SELECT 76 + + - 83
----
-7

query I rowsort
SELECT ALL - 11 + 36 col1
----
25

query I rowsort
SELECT 95 * 79
----
7505

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT DISTINCT - 39 * COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT - 39 * COUNT ( * ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT DISTINCT 39 + - + COUNT( * ) * + 61 * - - COALESCE ( - COUNT( * ), + - 64 + + - COUNT( * ) * - 2 + + ( 86 ), - + 2 )
----
100

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT 39 + - + COUNT ( * ) * + 61 * - - COALESCE ( - COUNT ( * ), + - 64 + + - COUNT ( * ) * - 2 + + ( 86 ), - + 2 )
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2018
SELECT ALL 98 + + 59 + + CAST( + MIN( - + 10 ) AS SIGNED ) * + 39
----
-233

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL 98 + + 59 + + CAST ( + MIN ( - + 10 ) AS INTEGER ) * + 39
----
-233

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL - COUNT( * ) * - 74 col0
----
74

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL - COUNT ( * ) * - 74 col0
----
74

query I rowsort
SELECT ALL 74 + + 95
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT DISTINCT - 39 * - COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT - 39 * - COUNT ( * ) AS col0
----
39

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

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

query I rowsort
SELECT ALL - 21 * + NULLIF ( - NULLIF ( 73, - 84 / - + 83 + - 13 ), + 69 / + + 52 ) AS col1
----
1533

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2024
SELECT 75 + - 30 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT 75 + - 30 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2025
SELECT 10 DIV 64 col0
----
0

skipif mysql # not compatible
query I rowsort label-2025
SELECT 10 / 64 col0
----
0

query I rowsort
SELECT + 59 * - - 5 + 33
----
328

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

skipif mysql # not compatible
query II rowsort label-2027
SELECT COUNT ( * ) AS col0, 88 AS col1
----
1
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2028
SELECT 89 DIV 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2028
SELECT 89 / 62 AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL - + 38 / - COUNT ( * ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT DISTINCT - CASE - 85 WHEN + 8 THEN NULL WHEN + 41 THEN + SUM( - 16 ) * - 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT - CASE - 85 WHEN + 8 THEN NULL WHEN + 41 THEN + SUM ( - 16 ) * - 44 END
----
NULL

query I rowsort
SELECT 81 + - 45
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT + 56 * COALESCE ( 25, - 52 DIV + 44 * - 1 - + + 53 + - 99 * 11 )
----
1400

skipif mysql # not compatible
query I rowsort label-2032
SELECT + 56 * COALESCE ( 25, - 52 / + 44 * - 1 - + + 53 + - 99 * 11 )
----
1400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2033
SELECT - + 49 + - CAST( CASE + 41 WHEN - 41 + + 55 + 48 + NULLIF ( + + CAST( + 9 AS SIGNED ), 41 ) THEN NULL WHEN + AVG ( - 15 ) THEN + ( + COUNT( * ) ) END AS SIGNED ) + 26 * + - 80 * + - COUNT( * ) / - COUNT( * ) + ( + ( + COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT - + 49 + - CAST ( CASE + 41 WHEN - 41 + + 55 + 48 + NULLIF ( + + CAST ( + 9 AS INTEGER ), 41 ) THEN NULL WHEN + AVG ( - 15 ) THEN + ( + COUNT ( * ) ) END AS INTEGER ) + 26 * + - 80 * + - COUNT ( * ) / - COUNT ( * ) + ( + ( + COUNT ( * ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2034
SELECT COUNT( 15 ) * - 27 * - CASE - 1 WHEN - 72 THEN 79 DIV - ( + - 12 ) + + CAST( NULL AS SIGNED ) WHEN - 79 THEN NULL ELSE + - NULLIF ( + 42, + + 57 * + ( - - 87 ) + - 75 DIV - 41 - + 6 ) + + 92 END - + 98 * + 29 AS col0
----
-1492

skipif mysql # not compatible
query I rowsort label-2034
SELECT COUNT ( 15 ) * - 27 * - CASE - 1 WHEN - 72 THEN 79 / - ( + - 12 ) + + CAST ( NULL AS INTEGER ) WHEN - 79 THEN NULL ELSE + - NULLIF ( + 42, + + 57 * + ( - - 87 ) + - 75 / - 41 - + 6 ) + + 92 END - + 98 * + 29 AS col0
----
-1492

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT - + 58 * - - 35 - - + SUM( 73 )
----
-1957

skipif mysql # not compatible
query I rowsort label-2035
SELECT - + 58 * - - 35 - - + SUM ( 73 )
----
-1957

query I rowsort
SELECT - 0 * - + 57 + + 98 + + - 79
----
19

query I rowsort
SELECT ALL - + 92 * 70 + 40
----
-6400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT DISTINCT ( - + COALESCE ( - CAST( NULL AS SIGNED ), 40 ) ) col1
----
-40

skipif mysql # not compatible
query I rowsort label-2038
SELECT DISTINCT ( - + COALESCE ( - CAST ( NULL AS INTEGER ), 40 ) ) col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT ALL + 11 + + 89 * - CASE + 30 WHEN - - NULLIF ( + 68, + COUNT( ALL + 31 ) ) THEN 72 WHEN + + 81 / + NULLIF ( + + 99, 20 ) - 52 + - + NULLIF ( 99, + 9 ) THEN + + CASE + - 87 WHEN + COALESCE ( + - 46, + CASE + + 66 WHEN 39 THEN - 60 WHEN COUNT( * ) THEN - 36 END * 90, COUNT( * ) ) + 62 THEN 77 WHEN ( CASE COALESCE ( 21, 69 ) WHEN - 72 * - 43 THEN NULL WHEN COALESCE ( - ( COUNT( * ) ), - 94 * 99 - + 17 * 71 ) THEN NULL WHEN 98 * - 39 THEN + 56 * COUNT( * ) - 23 END ) THEN - 65 END ELSE CASE 19 WHEN + COUNT( * ) + ( 77 ) THEN - ( + ( + 61 ) ) ELSE - 4 * + 22 END END * 49
----
383779

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL + 11 + + 89 * - CASE + 30 WHEN - - NULLIF ( + 68, + COUNT ( ALL + 31 ) ) THEN 72 WHEN + + 81 / + NULLIF ( + + 99, 20 ) - 52 + - + NULLIF ( 99, + 9 ) THEN + + CASE + - 87 WHEN + COALESCE ( + - 46, + CASE + + 66 WHEN 39 THEN - 60 WHEN COUNT ( * ) THEN - 36 END * 90, COUNT ( * ) ) + 62 THEN 77 WHEN ( CASE COALESCE ( 21, 69 ) WHEN - 72 * - 43 THEN NULL WHEN COALESCE ( - ( COUNT ( * ) ), - 94 * 99 - + 17 * 71 ) THEN NULL WHEN 98 * - 39 THEN + 56 * COUNT ( * ) - 23 END ) THEN - 65 END ELSE CASE 19 WHEN + COUNT ( * ) + ( 77 ) THEN - ( + ( + 61 ) ) ELSE - 4 * + 22 END END * 49
----
383779

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

skipif mysql # not compatible
query I rowsort label-2040
SELECT + 62 * 48 - COUNT ( - 49 ) AS col1
----
2975

query I rowsort
SELECT - 46 + - 86
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT + SUM( ALL - 68 ) * 50 * 89 AS col2
----
-302600

skipif mysql # not compatible
query I rowsort label-2042
SELECT + SUM ( ALL - 68 ) * 50 * 89 AS col2
----
-302600

query I rowsort
SELECT ALL 58 + - 87 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT + 87 * + 0 / + CASE - MAX( - 36 ) WHEN 56 THEN - 19 END + + - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT + 87 * + 0 / + CASE - MAX ( - 36 ) WHEN 56 THEN - 19 END + + - 21 AS col1
----
NULL

query I rowsort
SELECT ALL 34 + + 48 + - 16 AS col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2046
SELECT - MIN( 73 ), 98 * + 89 + - - 32 * + 12 AS col0
----
-73
9106

skipif mysql # not compatible
query II rowsort label-2046
SELECT - MIN ( 73 ), 98 * + 89 + - - 32 * + 12 AS col0
----
-73
9106

onlyif mysql # aggregate syntax: 
query II rowsort label-2047
SELECT 59, + MIN( + 64 ) * 75 AS col2
----
59
4800

skipif mysql # not compatible
query II rowsort label-2047
SELECT 59, + MIN ( + 64 ) * 75 AS col2
----
59
4800

query I rowsort
SELECT + 22 * + 21 AS col1
----
462

query I rowsort
SELECT + 92 + - 93 - - 50 AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT ALL + CASE + ( + - 69 ) WHEN + 76 - AVG ( - 65 ) THEN + 34 / - 10 + + + NULLIF ( - 85, - + 21 + - + 29 ) + - CAST( NULL AS SIGNED ) * + 1 END + - AVG ( + 44 ) - + SUM( ALL 67 ) * - + 85 * 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL + CASE + ( + - 69 ) WHEN + 76 - AVG ( - 65 ) THEN + 34 / - 10 + + + NULLIF ( - 85, - + 21 + - + 29 ) + - CAST ( NULL AS INTEGER ) * + 1 END + - AVG ( + 44 ) - + SUM ( ALL 67 ) * - + 85 * 91 AS col0
----
NULL

query II rowsort
SELECT 97 AS col0, + 72
----
97
72

query I rowsort
SELECT - 38 + + + 55
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2053
SELECT ALL 70, 16 * - + COUNT( * ) col0
----
70
-16

skipif mysql # not compatible
query II rowsort label-2053
SELECT ALL 70, 16 * - + COUNT ( * ) col0
----
70
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2054
SELECT - 15 + - 5 * - + 56 * - CAST( NULL AS SIGNED ) * + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT - 15 + - 5 * - + 56 * - CAST ( NULL AS INTEGER ) * + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT ALL 20 - MIN( ALL 71 ) col0
----
-51

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL 20 - MIN ( ALL 71 ) col0
----
-51

query I rowsort
SELECT + 26 * - - 52 * - 50
----
-67600

query I rowsort
SELECT - 32 * + 77
----
-2464

query I rowsort
SELECT - 91 + + 65 + 20 AS col1
----
-6

query I rowsort
SELECT + 2 + 26 + + + 92 col1
----
120

query I rowsort
SELECT ALL - 19 * - 27 AS col1
----
513

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT - 28 * + + COUNT( * ) + 31 * + - COALESCE ( + ( + 45 ), COUNT( * ) ) AS col0
----
-1423

skipif mysql # not compatible
query I rowsort label-2061
SELECT - 28 * + + COUNT ( * ) + 31 * + - COALESCE ( + ( + 45 ), COUNT ( * ) ) AS col0
----
-1423

onlyif mysql # aggregate syntax: 
query II rowsort label-2062
SELECT ALL + COUNT( * ) AS col0, - 82 * + 12 + + 58 + + MIN( DISTINCT - - ( + + 3 ) )
----
1
-923

skipif mysql # not compatible
query II rowsort label-2062
SELECT ALL + COUNT ( * ) AS col0, - 82 * + 12 + + 58 + + MIN ( DISTINCT - - ( + + 3 ) )
----
1
-923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2063
SELECT - 40 DIV + 47 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2063
SELECT - 40 / + 47 + - COUNT ( * ) AS col1
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2065
SELECT ALL + COALESCE ( - + CAST( + 30 AS SIGNED ), CAST( NULL AS SIGNED ) + + NULLIF ( COUNT( * ), 3 * - + 73 ), + 65 ) AS col1, 30 + - 79 AS col0
----
-30
-49

skipif mysql # not compatible
query II rowsort label-2065
SELECT ALL + COALESCE ( - + CAST ( + 30 AS INTEGER ), CAST ( NULL AS INTEGER ) + + NULLIF ( COUNT ( * ), 3 * - + 73 ), + 65 ) AS col1, 30 + - 79 AS col0
----
-30
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2066
SELECT - + 47 DIV + 8 + COALESCE ( - 3, + + ( + 26 ) ) * + - 12 col2
----
31

skipif mysql # not compatible
query I rowsort label-2066
SELECT - + 47 / + 8 + COALESCE ( - 3, + + ( + 26 ) ) * + - 12 col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2067
SELECT + CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * - 42 col2
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-2067
SELECT + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - 42 col2
----
NULL
-42

query II rowsort
SELECT - 72, - 23 col0
----
-72
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-2069
SELECT + ( + COUNT( * ) ) * 72 + + 13 + + 79 * + 81 * + 22 - ( + - CASE + 15 WHEN COUNT( * ) THEN 42 ELSE NULL END ) + 18 + + 71 + 66 * + 78, - 77 AS col0
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-2069
SELECT + ( + COUNT ( * ) ) * 72 + + 13 + + 79 * + 81 * + 22 - ( + - CASE + 15 WHEN COUNT ( * ) THEN 42 ELSE NULL END ) + 18 + + 71 + 66 * + 78, - 77 AS col0
----
NULL
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2070
SELECT COALESCE ( + 41, - 95 DIV + 1 DIV - + 28 * + - 87 + + 87 )
----
41

skipif mysql # not compatible
query I rowsort label-2070
SELECT COALESCE ( + 41, - 95 / + 1 / - + 28 * + - 87 + + 87 )
----
41

query II rowsort
SELECT ALL 31 * 62 + 6 * + 42 AS col0, 10 col1
----
2174
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2072
SELECT + 23 DIV + - COALESCE ( + 54, - 21 ) + + 32 DIV + + 55 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2072
SELECT + 23 / + - COALESCE ( + 54, - 21 ) + + 32 / + + 55 + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL + 8 * + 82 + - 90 col0
----
566

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT DISTINCT - 64 * - 24 + - COUNT( * ) AS col1
----
1535

skipif mysql # not compatible
query I rowsort label-2075
SELECT DISTINCT - 64 * - 24 + - COUNT ( * ) AS col1
----
1535

query I rowsort
SELECT NULLIF ( - 81, - 18 - - - 38 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + COUNT( * ) + + 82 - - 79
----
162

skipif mysql # not compatible
query I rowsort label-2077
SELECT + COUNT ( * ) + + 82 - - 79
----
162

query I rowsort
SELECT DISTINCT - 38 * + - ( - + 14 )
----
-532

onlyif mysql # aggregate syntax: 
query II rowsort label-2079
SELECT DISTINCT ( COUNT( * ) ) AS col1, + 92 * - + NULLIF ( + - ( + 98 ), + + 97 * + 29 + + + 82 ) * COUNT( * )
----
1
9016

skipif mysql # not compatible
query II rowsort label-2079
SELECT DISTINCT ( COUNT ( * ) ) AS col1, + 92 * - + NULLIF ( + - ( + 98 ), + + 97 * + 29 + + + 82 ) * COUNT ( * )
----
1
9016

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

skipif mysql # not compatible
query I rowsort label-2080
SELECT - COUNT ( DISTINCT - 35 ) / COUNT ( * ) * - - 24
----
-24

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2082
SELECT ALL COUNT( * ) DIV + + COUNT( * ) AS col1, CAST( NULL AS DECIMAL ) + - - 27
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2082
SELECT ALL COUNT ( * ) / + + COUNT ( * ) AS col1, CAST ( NULL AS REAL ) + - - 27
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT - CASE + + CASE 60 WHEN - 65 THEN 15 - 43 ELSE - 88 * + 46 END WHEN - + 85 THEN - 11 * + COUNT( * ) * ( 21 ) * - COUNT( * ) * - 23 * - + 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT - CASE + + CASE 60 WHEN - 65 THEN 15 - 43 ELSE - 88 * + 46 END WHEN - + 85 THEN - 11 * + COUNT ( * ) * ( 21 ) * - COUNT ( * ) * - 23 * - + 28 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2084
SELECT ALL CAST( 53 AS SIGNED ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL CAST ( 53 AS INTEGER ) AS col0
----
53

query I rowsort
SELECT DISTINCT - 66 - - 25 * + 64 * - 69 AS col1
----
-110466

onlyif mysql # DIV for integer division: 
query I rowsort label-2086
SELECT DISTINCT 86 DIV 81 * + 62
----
62

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT 86 / 81 * + 62
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2087
SELECT ALL COUNT( * ) DIV - + 71 AS col1, 88 DIV COUNT( + 56 ) - + - 20 * 17 AS col2
----
0
428

skipif mysql # not compatible
query II rowsort label-2087
SELECT ALL COUNT ( * ) / - + 71 AS col1, 88 / COUNT ( + 56 ) - + - 20 * 17 AS col2
----
0
428

onlyif mysql # DIV for integer division: 
query I rowsort label-2088
SELECT + ( + + 36 ) DIV - + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2088
SELECT + ( + + 36 ) / - + 93 AS col0
----
0

query I rowsort
SELECT + 32 * + ( - + 50 ) AS col1
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT DISTINCT COALESCE ( - NULLIF ( + 75, 90 * + 30 ), - 72 ) * - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT COALESCE ( - NULLIF ( + 75, 90 * + 30 ), - 72 ) * - COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL 97 * ( COUNT( - - 20 ) )
----
97

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL 97 * ( COUNT ( - - 20 ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT - NULLIF ( - - ( SUM( ALL - 89 ) ), 29 )
----
89

skipif mysql # not compatible
query I rowsort label-2092
SELECT - NULLIF ( - - ( SUM ( ALL - 89 ) ), 29 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT ALL SUM( DISTINCT + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL SUM ( DISTINCT + 18 )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2094
SELECT DISTINCT 43 * - 64 AS col1, + 70 + MIN( 53 )
----
-2752
123

skipif mysql # not compatible
query II rowsort label-2094
SELECT DISTINCT 43 * - 64 AS col1, + 70 + MIN ( 53 )
----
-2752
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL 81 * + 22 + COUNT( * ) + - COALESCE ( - 62, ( + 84 ), 21 ) + + 10 + + COUNT( * ) + 18 * - 78 AS col2
----
452

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL 81 * + 22 + COUNT ( * ) + - COALESCE ( - 62, ( + 84 ), 21 ) + + 10 + + COUNT ( * ) + 18 * - 78 AS col2
----
452

query I rowsort
SELECT DISTINCT - 29 * - 64 * 69 AS col0
----
128064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2097
SELECT - CAST( - ( ( - + 92 ) ) AS SIGNED ) + + 49 * - - ( + 77 ) * - + NULLIF ( - 22, + 74 / + CAST( + + 63 AS SIGNED ) ) + 30 AS col1
----
82944

skipif mysql # not compatible
query I rowsort label-2097
SELECT - CAST ( - ( ( - + 92 ) ) AS INTEGER ) + + 49 * - - ( + 77 ) * - + NULLIF ( - 22, + 74 / + CAST ( + + 63 AS INTEGER ) ) + 30 AS col1
----
82944

query I rowsort
SELECT ALL - - 8 col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT - 77 * + COUNT( * ), 45 - 0 AS col2
----
-77
45

skipif mysql # not compatible
query II rowsort label-2099
SELECT - 77 * + COUNT ( * ), 45 - 0 AS col2
----
-77
45

query I rowsort
SELECT ALL 35 + + ( + 94 ) AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT - 8 * - - SUM( ALL + + 41 ) - - 80
----
-248

skipif mysql # not compatible
query I rowsort label-2101
SELECT - 8 * - - SUM ( ALL + + 41 ) - - 80
----
-248

onlyif mysql # DIV for integer division: 
query I rowsort label-2102
SELECT + 21 DIV - ( - 93 ) + - - 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2102
SELECT + 21 / - ( - 93 ) + - - 9 AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2103
SELECT DISTINCT 92 DIV - COUNT( * ) + 31 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT 92 / - COUNT ( * ) + 31 AS col1
----
-61

query I rowsort
SELECT ALL + 80 * 73 * 2 AS col0
----
11680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2105
SELECT ALL COALESCE ( 61, - + COUNT( * ) ) + + NULLIF ( + 31, + 28 + - ( + 15 ) * + 24 ) + + 28, 77 * ( - COALESCE ( + + CAST( NULL AS SIGNED ), + + 49 * + 67 - - COUNT( - 36 ) * + - 80 DIV 31 + + - 43 ) ) * + 53 AS col2
----
120
-13214278

skipif mysql # not compatible
query II rowsort label-2105
SELECT ALL COALESCE ( 61, - + COUNT ( * ) ) + + NULLIF ( + 31, + 28 + - ( + 15 ) * + 24 ) + + 28, 77 * ( - COALESCE ( + + CAST ( NULL AS INTEGER ), + + 49 * + 67 - - COUNT ( - 36 ) * + - 80 / 31 + + - 43 ) ) * + 53 AS col2
----
120
-13214278

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - MAX( - 10 ) + - + 32 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2106
SELECT - MAX ( - 10 ) + - + 32 AS col1
----
-22

query I rowsort
SELECT 66 - + 5 AS col1
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2108
SELECT DISTINCT - 34 - - 54 - + COUNT( * ) * + 21 + + 39 DIV + - COUNT( * ) + - - 4 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT - 34 - - 54 - + COUNT ( * ) * + 21 + + 39 / + - COUNT ( * ) + - - 4 AS col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-2109
SELECT DISTINCT + 80 DIV + 50 col2
----
1

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT + 80 / + 50 col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2110
SELECT DISTINCT + 7 DIV + 10 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT + 7 / + 10 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2111
SELECT 16 * 57 * + CAST( + 88 AS SIGNED ) - + + ( + 51 )
----
80205

skipif mysql # not compatible
query I rowsort label-2111
SELECT 16 * 57 * + CAST ( + 88 AS INTEGER ) - + + ( + 51 )
----
80205

query I rowsort
SELECT 75 + 9 + - 5
----
79

query II rowsort
SELECT 41 AS col1, 83 AS col0
----
41
83

query I rowsort
SELECT ALL + 17 - + + 85 AS col0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2115
SELECT 26 * 64 + COUNT( * ) * + - 20 * + + COUNT( * ) DIV + 45 DIV - COUNT( * ) AS col0
----
1664

skipif mysql # not compatible
query I rowsort label-2115
SELECT 26 * 64 + COUNT ( * ) * + - 20 * + + COUNT ( * ) / + 45 / - COUNT ( * ) AS col0
----
1664

query I rowsort
SELECT 94 * + + 68 AS col1
----
6392

query II rowsort
SELECT 0 + - + 30 + + + 55, 17 + 20 AS col0
----
25
37

query I rowsort
SELECT ALL + 17 * - 97
----
-1649

onlyif mysql # aggregate syntax: 
query II rowsort label-2119
SELECT ALL 20, ( - COUNT( * ) ) * - 60 * - 4 AS col0
----
20
-240

skipif mysql # not compatible
query II rowsort label-2119
SELECT ALL 20, ( - COUNT ( * ) ) * - 60 * - 4 AS col0
----
20
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-2120
SELECT 10 + + 31 + - 40 DIV + + ( 23 )
----
40

skipif mysql # not compatible
query I rowsort label-2120
SELECT 10 + + 31 + - 40 / + + ( 23 )
----
40

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

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

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

skipif mysql # not compatible
query I rowsort label-2122
SELECT COUNT ( * ) + - - 49 - 8 AS col2
----
42

query II rowsort
SELECT DISTINCT 30 AS col2, + 78 AS col2
----
30
78

query I rowsort
SELECT 29 + + 23 AS col2
----
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2126
SELECT DISTINCT + CAST( - 69 AS SIGNED ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT + CAST ( - 69 AS INTEGER ) AS col2
----
-69

query II rowsort
SELECT ALL - 7 AS col0, 19
----
-7
19

query I rowsort
SELECT 66 * - - 15
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT - 22 + + - 91 - COUNT( * )
----
-114

skipif mysql # not compatible
query I rowsort label-2129
SELECT - 22 + + - 91 - COUNT ( * )
----
-114

query I rowsort
SELECT DISTINCT + 9 + 78
----
87

query I rowsort
SELECT DISTINCT 14 + - ( 31 ) AS col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2132
SELECT ALL + 76 + + + 81 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL + 76 + + + 81 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2133
SELECT + ( ( - 51 ) ) * - 54 + + CAST( + COUNT( * ) AS SIGNED ) + COUNT( * ) col0
----
2756

skipif mysql # not compatible
query I rowsort label-2133
SELECT + ( ( - 51 ) ) * - 54 + + CAST ( + COUNT ( * ) AS INTEGER ) + COUNT ( * ) col0
----
2756

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT DISTINCT + COUNT( * ) + + - ( - - 69 ) * - 84 * 90 * + MIN( ALL 93 ) col1
----
48512521

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT + COUNT ( * ) + + - ( - - 69 ) * - 84 * 90 * + MIN ( ALL 93 ) col1
----
48512521

query I rowsort
SELECT ALL 42 * + 26 * - ( + 68 ) * 89
----
-6608784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2136
SELECT DISTINCT 81 + + NULLIF ( - COUNT( * ), 49 ) * + - 36 + ( + - AVG ( ALL + + CAST( NULL AS SIGNED ) ) ) - + 12 - COALESCE ( - COUNT( * ), - 60 ) * 83 / ( 49 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT 81 + + NULLIF ( - COUNT ( * ), 49 ) * + - 36 + ( + - AVG ( ALL + + CAST ( NULL AS INTEGER ) ) ) - + 12 - COALESCE ( - COUNT ( * ), - 60 ) * 83 / ( 49 ) AS col0
----
NULL

query I rowsort
SELECT ALL 85 + + - 79 AS col1
----
6

query I rowsort
SELECT DISTINCT - ( + 89 ) + 52 AS col0
----
-37

query I rowsort
SELECT 15 * - - 91 * + 53 col2
----
72345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT + CAST( NULL AS SIGNED ) * - 11 / - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT + CAST ( NULL AS INTEGER ) * - 11 / - 57 AS col2
----
NULL

query I rowsort
SELECT 4 + - - 59
----
63

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2143
SELECT ALL - 25, + CAST( NULL AS DECIMAL ) col1
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-2143
SELECT ALL - 25, + CAST ( NULL AS REAL ) col1
----
-25
NULL

query I rowsort
SELECT DISTINCT 83 - + 52 AS col2
----
31

query I rowsort
SELECT DISTINCT 53 * - COALESCE ( - 83, - 20 )
----
4399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT 75 + - CAST( - 49 AS SIGNED )
----
124

skipif mysql # not compatible
query I rowsort label-2146
SELECT 75 + - CAST ( - 49 AS INTEGER )
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2147
SELECT CAST( + 52 AS SIGNED ) * - 51 * 39 AS col0, 20 * ( SUM( ALL 26 ) ) AS col0
----
-103428
520

skipif mysql # not compatible
query II rowsort label-2147
SELECT CAST ( + 52 AS INTEGER ) * - 51 * 39 AS col0, 20 * ( SUM ( ALL 26 ) ) AS col0
----
-103428
520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2148
SELECT CAST( + 26 AS SIGNED ) + + - 58 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-2148
SELECT CAST ( + 26 AS INTEGER ) + + - 58 AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2149
SELECT ALL 75 DIV + ( - 60 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL 75 / + ( - 60 ) AS col1
----
-1

query I rowsort
SELECT ALL 34 - 91 AS col0
----
-57

query I rowsort
SELECT DISTINCT + ( - 50 ) * + 2 + + 95 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2152
SELECT DISTINCT COUNT( * ) * - 69 AS col2, + 40
----
-69
40

skipif mysql # not compatible
query II rowsort label-2152
SELECT DISTINCT COUNT ( * ) * - 69 AS col2, + 40
----
-69
40

query I rowsort
SELECT 4 * + 91
----
364

query I rowsort
SELECT 21 * - 26 + + 92 AS col1
----
-454

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

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

query I rowsort
SELECT 20 + + 12 AS col1
----
32

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2158
SELECT 29 + - 95 DIV + 85 + + NULLIF ( + 35, + 65 - 17 + - + 83 * + 26 * - 64 )
----
63

skipif mysql # not compatible
query I rowsort label-2158
SELECT 29 + - 95 / + 85 + + NULLIF ( + 35, + 65 - 17 + - + 83 * + 26 * - 64 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2159
SELECT - NULLIF ( 17, + 24 * + CAST( NULL AS SIGNED ) * + 19 + + ( - + 81 ) * + COUNT( * ) * + ( COUNT( * ) ) ) AS col1, 29
----
-17
29

skipif mysql # not compatible
query II rowsort label-2159
SELECT - NULLIF ( 17, + 24 * + CAST ( NULL AS INTEGER ) * + 19 + + ( - + 81 ) * + COUNT ( * ) * + ( COUNT ( * ) ) ) AS col1, 29
----
-17
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2160
SELECT DISTINCT - 49 DIV 20 * ( + 34 )
----
-68

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT - 49 / 20 * ( + 34 )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2161
SELECT ALL - COUNT( * ) DIV COUNT( - 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL - COUNT ( * ) / COUNT ( - 94 )
----
-1

query I rowsort
SELECT 19 * + 28 * - 90
----
-47880

query I rowsort
SELECT ALL 62 + + 25
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL SUM( DISTINCT + 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL SUM ( DISTINCT + 7 ) AS col1
----
7

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

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL - 32 + - COUNT ( * ) * 19 AS col2
----
-51

query I rowsort
SELECT - COALESCE ( + + 27, 99 ) col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-2167
SELECT MAX( ALL 53 ), + 35 * - 16 + + 5 col1
----
53
-555

skipif mysql # not compatible
query II rowsort label-2167
SELECT MAX ( ALL 53 ), + 35 * - 16 + + 5 col1
----
53
-555

query I rowsort
SELECT - + 85 * - 24 * - 63
----
-128520

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

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL + + CAST ( NULL AS INTEGER ) + - - 33 + 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2170
SELECT - + ( - CASE + + CAST( NULL AS DECIMAL ) WHEN 90 THEN NULL WHEN + 14 THEN MAX( - 93 ) / 48 + - 4 + - - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT - + ( - CASE + + CAST ( NULL AS REAL ) WHEN 90 THEN NULL WHEN + 14 THEN MAX ( - 93 ) / 48 + - 4 + - - COUNT ( * ) END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT ALL - 5 + 19 + - CAST( NULL AS SIGNED ) + + + ( - + 60 ) + ( - 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL - 5 + 19 + - CAST ( NULL AS INTEGER ) + + + ( - + 60 ) + ( - 87 ) AS col2
----
NULL

query I rowsort
SELECT - 73 - + + 44
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL MIN( - + 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL MIN ( - + 4 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT DISTINCT - - SUM( 5 ) + - 52 * + 14 + - ( + COALESCE ( - 36, - 95 + ( - 37 ) ) ) - + - COUNT( * ) * 31 * - 82
----
-3229

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT - - SUM ( 5 ) + - 52 * + 14 + - ( + COALESCE ( - 36, - 95 + ( - 37 ) ) ) - + - COUNT ( * ) * 31 * - 82
----
-3229

query I rowsort
SELECT ALL + ( + 57 ) + + 26 AS col2
----
83

query I rowsort
SELECT - + 89 + + 84 AS col2
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-2177
SELECT + - 9 DIV + 67 AS col0, 12
----
0
12

skipif mysql # not compatible
query II rowsort label-2177
SELECT + - 9 / + 67 AS col0, 12
----
0
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2178
SELECT ALL - 23 * + - 11 * 31 - 56 + 11 - + + 63 + + COUNT( * ) * 53 * - - 31 * - CAST( 41 AS SIGNED ) AS col1
----
-59628

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL - 23 * + - 11 * 31 - 56 + 11 - + + 63 + + COUNT ( * ) * 53 * - - 31 * - CAST ( 41 AS INTEGER ) AS col1
----
-59628

query I rowsort
SELECT - 89 * - + 61 * + 46
----
249734

query I rowsort
SELECT + 59 * - 88 AS col0
----
-5192

query I rowsort
SELECT ALL 42 * 99 col2
----
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL + - CASE + 37 WHEN - 23 * COUNT( DISTINCT + 52 ) + - 32 THEN NULL WHEN - 23 * - 52 + + - COUNT( * ) + SUM( ALL - 27 ) + - + 21 THEN 69 * 45 WHEN + 92 + + MAX( 77 ) * 40 THEN + + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + - CASE + 37 WHEN - 23 * COUNT ( DISTINCT + 52 ) + - 32 THEN NULL WHEN - 23 * - 52 + + - COUNT ( * ) + SUM ( ALL - 27 ) + - + 21 THEN 69 * 45 WHEN + 92 + + MAX ( 77 ) * 40 THEN + + 5 END
----
NULL

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

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

query I rowsort
SELECT ALL - 89 * + 86
----
-7654

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2185
SELECT ALL + 34 * MAX( ALL 14 ) DIV 49 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL + 34 * MAX ( ALL 14 ) / 49 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT COALESCE ( + 75, + COUNT( * ) )
----
75

skipif mysql # not compatible
query I rowsort label-2186
SELECT COALESCE ( + 75, + COUNT ( * ) )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2187
SELECT - MAX( DISTINCT 63 ) * + COALESCE ( - 23, + - 98 * + 8 ) * - + CAST( NULL AS SIGNED ) * 39 * - COUNT( * ) + - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT - MAX ( DISTINCT 63 ) * + COALESCE ( - 23, + - 98 * + 8 ) * - + CAST ( NULL AS INTEGER ) * 39 * - COUNT ( * ) + - 20 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2188
SELECT + CAST( NULL AS DECIMAL ) * NULLIF ( + + 62, - + COUNT( DISTINCT - - 2 ) / + 50 - AVG ( + - 52 ) ) / ( - - 24 ) * 2 * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2188
SELECT + CAST ( NULL AS REAL ) * NULLIF ( + + 62, - + COUNT ( DISTINCT - - 2 ) / + 50 - AVG ( + - 52 ) ) / ( - - 24 ) * 2 * - 99
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2190
SELECT + ( + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT + ( + CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT + 4 - 81 * - 40 col0
----
3244

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT + 80 * MAX( 74 )
----
5920

skipif mysql # not compatible
query I rowsort label-2192
SELECT + 80 * MAX ( 74 )
----
5920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2193
SELECT DISTINCT 21 DIV - NULLIF ( 39, + 56 + - ( ( + 35 ) ) * + + 47 * COUNT( * ) * - - MIN( ALL 3 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT 21 / - NULLIF ( 39, + 56 + - ( ( + 35 ) ) * + + 47 * COUNT ( * ) * - - MIN ( ALL 3 ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2194
SELECT + 32 DIV 3 * - 17 * 99
----
-16830

skipif mysql # not compatible
query I rowsort label-2194
SELECT + 32 / 3 * - 17 * 99
----
-16830

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT + 44 + COUNT( - 83 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2195
SELECT + 44 + COUNT ( - 83 ) AS col0
----
45

query I rowsort
SELECT DISTINCT 56 * - - 24 AS col0
----
1344

query I rowsort
SELECT ALL - 40 * + 59 * - 1 + 90 + + 70
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT + 96 + COUNT( * ) col1
----
97

skipif mysql # not compatible
query I rowsort label-2198
SELECT + 96 + COUNT ( * ) col1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT - 2 DIV - + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2199
SELECT - 2 / - + 64 AS col2
----
0

query I rowsort
SELECT + 57 + 69
----
126

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

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - 59 / - COUNT ( * )
----
59

query I rowsort
SELECT + 71 + ( 70 ) AS col0
----
141

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2203
SELECT ALL - 48 + 34 + + AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) * + + 35 * - - 35 * + CASE + 58 WHEN MIN( - 42 ) + 81 THEN NULL WHEN - 14 * + - 51 * + 37 THEN 74 WHEN - ( + 55 ) THEN 16 END + - 5 + - ( + COALESCE ( COUNT( * ), - 47 * - 55 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL - 48 + 34 + + AVG ( DISTINCT - CAST ( NULL AS REAL ) ) * + + 35 * - - 35 * + CASE + 58 WHEN MIN ( - 42 ) + 81 THEN NULL WHEN - 14 * + - 51 * + 37 THEN 74 WHEN - ( + 55 ) THEN 16 END + - 5 + - ( + COALESCE ( COUNT ( * ), - 47 * - 55 ) )
----
NULL

query I rowsort
SELECT - 84 + - 9 AS col2
----
-93

query I rowsort
SELECT ALL + 68 + - + 44 AS col1
----
24

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

skipif mysql # not compatible
query II rowsort label-2206
SELECT - + 49 col1, + COUNT ( * )
----
-49
1

query II rowsort
SELECT - 8 AS col0, 18
----
-8
18

query I rowsort
SELECT - - 13 + - + 26
----
-13

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2210
SELECT ALL + - 18 - - 97 * 48 col1, 46 DIV - 93 * + COALESCE ( + 37, - 21 DIV 49 * - + 13 + - 3 * + + 98 + + 96, COUNT( - ( + - 21 ) ) ) AS col1
----
4638
0

skipif mysql # not compatible
query II rowsort label-2210
SELECT ALL + - 18 - - 97 * 48 col1, 46 / - 93 * + COALESCE ( + 37, - 21 / 49 * - + 13 + - 3 * + + 98 + + 96, COUNT ( - ( + - 21 ) ) ) AS col1
----
4638
0

query I rowsort
SELECT DISTINCT - - 55 * 81
----
4455

query I rowsort
SELECT ALL 47 * - + 39 AS col0
----
-1833

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

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

query I rowsort
SELECT DISTINCT - + 88 * - 5
----
440

query I rowsort
SELECT - + 86 * - 45 AS col0
----
3870

query II rowsort
SELECT ALL + 30 col2, + 74 AS col0
----
30
74

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

skipif mysql # not compatible
query II rowsort label-2217
SELECT CAST ( NULL AS INTEGER ), 17 col0
----
NULL
17

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2219
SELECT - 29 DIV - 19 + - 80 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-2219
SELECT - 29 / - 19 + - 80 AS col1
----
-79

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

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

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

skipif mysql # not compatible
query I rowsort label-2221
SELECT - COUNT ( * ) / 16
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2223
SELECT ALL - 58 DIV ( ( - + 15 ) )
----
3

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL - 58 / ( ( - + 15 ) )
----
3

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2226
SELECT DISTINCT COUNT( * ) DIV - + 32 * - + 72 + + 3
----
3

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT COUNT ( * ) / - + 32 * - + 72 + + 3
----
3

query II rowsort
SELECT DISTINCT + 71, - 67 col0
----
71
-67

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2228
SELECT ALL + 22 DIV - CAST( - CAST( 11 AS DECIMAL ) AS SIGNED ) + - 53
----
-51

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL + 22 / - CAST ( - CAST ( 11 AS REAL ) AS INTEGER ) + - 53
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2229
SELECT - 80 + 19 DIV - 7
----
-82

skipif mysql # not compatible
query I rowsort label-2229
SELECT - 80 + 19 / - 7
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT 19 * - + 30 * - + COALESCE ( + - 86, - 37 * 75 * - - 29 + + 64 + - MAX( ALL - - 21 ), - 90 )
----
-49020

skipif mysql # not compatible
query I rowsort label-2230
SELECT 19 * - + 30 * - + COALESCE ( + - 86, - 37 * 75 * - - 29 + + 64 + - MAX ( ALL - - 21 ), - 90 )
----
-49020

query I rowsort
SELECT ALL 68 + 16 + + + ( + + 46 )
----
130

query I rowsort
SELECT DISTINCT - CASE 63 WHEN + ( - + 68 ) THEN + AVG ( DISTINCT + 44 ) * - - NULLIF ( 19, - + 90 + + 50 ) END * 91 * 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT - COUNT( * ) * + - ( - - 38 ) + + 41
----
79

skipif mysql # not compatible
query I rowsort label-2233
SELECT - COUNT ( * ) * + - ( - - 38 ) + + 41
----
79

query I rowsort
SELECT ALL 15 * - - ( + 22 ) AS col0
----
330

query II rowsort
SELECT 9 * 67 AS col1, 88
----
603
88

query I rowsort
SELECT 95 * 23 + + 86 AS col2
----
2271

query III rowsort
SELECT 51 AS col1, - 24, - 93 + + - 33 AS col0
----
51
-24
-126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2238
SELECT 71 AS col2, - COALESCE ( - + 50, - 90 * - 54 * + CAST( + - 2 AS SIGNED ) ) - - NULLIF ( - 0, + 92 * - - 29 )
----
71
50

skipif mysql # not compatible
query II rowsort label-2238
SELECT 71 AS col2, - COALESCE ( - + 50, - 90 * - 54 * + CAST ( + - 2 AS INTEGER ) ) - - NULLIF ( - 0, + 92 * - - 29 )
----
71
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2239
SELECT ALL - 77 - - SUM( ALL + CAST( ( + 53 ) AS SIGNED ) ) col1
----
-24

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL - 77 - - SUM ( ALL + CAST ( ( + 53 ) AS INTEGER ) ) col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL COALESCE ( 21, + COUNT( * ) ) - - MIN( DISTINCT - 89 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL COALESCE ( 21, + COUNT ( * ) ) - - MIN ( DISTINCT - 89 ) AS col0
----
-68

query I rowsort
SELECT - 77 * - - 96 * - + 2 AS col2
----
14784

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2242
SELECT DISTINCT COALESCE ( + + 90, - 98 + - 3 * + CAST( NULL AS SIGNED ) ) * + 6 AS col0, + 81 col2
----
540
81

skipif mysql # not compatible
query II rowsort label-2242
SELECT DISTINCT COALESCE ( + + 90, - 98 + - 3 * + CAST ( NULL AS INTEGER ) ) * + 6 AS col0, + 81 col2
----
540
81

query I rowsort
SELECT 20 - - 60 AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT ALL 65 * + 94 * - + CAST( ( 92 ) AS SIGNED ) col1
----
-562120

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL 65 * + 94 * - + CAST ( ( 92 ) AS INTEGER ) col1
----
-562120

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

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

query II rowsort
SELECT - - 13, 62 AS col1
----
13
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2247
SELECT ALL - 0 AS col0, COUNT( ( 35 ) )
----
0
1

skipif mysql # not compatible
query II rowsort label-2247
SELECT ALL - 0 AS col0, COUNT ( ( 35 ) )
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2248
SELECT - NULLIF ( 30, - 92 - + - 37 - + - 84 * - - CAST( + 62 AS SIGNED ) * + - ( CASE + COUNT( * ) WHEN ( + - MIN( 36 ) ) THEN 34 END ) )
----
-30

skipif mysql # not compatible
query I rowsort label-2248
SELECT - NULLIF ( 30, - 92 - + - 37 - + - 84 * - - CAST ( + 62 AS INTEGER ) * + - ( CASE + COUNT ( * ) WHEN ( + - MIN ( 36 ) ) THEN 34 END ) )
----
-30

query I rowsort
SELECT - CASE 64 WHEN + + 14 THEN + 66 + - 13 WHEN + 56 - - 19 THEN 74 END AS col0
----
NULL

query II rowsort
SELECT DISTINCT 71, - COALESCE ( - - 88, 18 ) * - 91 + + 32 * + + 83 AS col0
----
71
10664

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT + NULLIF ( + COUNT( * ), CASE - COUNT( 15 ) WHEN + 94 THEN 22 END * - - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-2252
SELECT + NULLIF ( + COUNT ( * ), CASE - COUNT ( 15 ) WHEN + 94 THEN 22 END * - - 11 )
----
1

query I rowsort
SELECT ALL - CASE + 21 WHEN + 28 THEN + + 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT DISTINCT COUNT( ALL + 40 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT COUNT ( ALL + 40 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2255
SELECT - 7 / + 20 + - + CASE + 18 WHEN - 56 THEN - - 9 * - 71 + 77 WHEN + - CASE WHEN NOT 76 >= 88 / + COUNT( * ) THEN NULL ELSE CASE 36 WHEN 76 / + 82 / + - 22 + - 85 THEN 34 END + COUNT( * ) + + CAST( + COALESCE ( + 13, - + 18, + 27 * + 67 ) AS SIGNED ) * + CASE WHEN ( - CAST( - 30 AS DECIMAL ) ) > 13 THEN - SUM( - 99 ) ELSE NULL END END * - ( - COUNT( * ) ) THEN 33 * + 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT - 7 / + 20 + - + CASE + 18 WHEN - 56 THEN - - 9 * - 71 + 77 WHEN + - CASE WHEN NOT 76 >= 88 / + COUNT ( * ) THEN NULL ELSE CASE 36 WHEN 76 / + 82 / + - 22 + - 85 THEN 34 END + COUNT ( * ) + + CAST ( + COALESCE ( + 13, - + 18, + 27 * + 67 ) AS INTEGER ) * + CASE WHEN ( - CAST ( - 30 AS REAL ) ) > 13 THEN - SUM ( - 99 ) ELSE NULL END END * - ( - COUNT ( * ) ) THEN 33 * + 92 END
----
NULL

query II rowsort
SELECT ALL 61 AS col0, 34 * + 2
----
61
68

query I rowsort
SELECT - 51 + + 20 + - 20 col2
----
-51

query II rowsort
SELECT - 83 AS col2, 29
----
-83
29

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

skipif mysql # not compatible
query II rowsort label-2259
SELECT 75 * - COUNT ( * ) AS col2, 1 AS col0
----
-75
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT 13 - - ( + 27 ) DIV - ( - + 94 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2260
SELECT 13 - - ( + 27 ) / - ( - + 94 ) AS col0
----
13

query I rowsort
SELECT ALL - NULLIF ( + + 27, 94 )
----
-27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL - ( + 54 ) + - COUNT( DISTINCT - 59 )
----
-55

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL - ( + 54 ) + - COUNT ( DISTINCT - 59 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT 0 * + COALESCE ( 92, - 82 * COUNT( * ) * - 99 - + 96 )
----
0

skipif mysql # not compatible
query I rowsort label-2264
SELECT 0 * + COALESCE ( 92, - 82 * COUNT ( * ) * - 99 - + 96 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT 13 + - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-2265
SELECT 13 + - COUNT ( * )
----
12

query I rowsort
SELECT ALL - 72 * - - 32
----
-2304

query I rowsort
SELECT ALL + ( - 74 ) + - + 99 col1
----
-173

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

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

query I rowsort
SELECT 27 * - 86 * + + 8 - 65 + - + 22 * 47
----
-19675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2270
SELECT 28 * + MIN( + CAST( - - 90 AS SIGNED ) ) AS col1
----
2520

skipif mysql # not compatible
query I rowsort label-2270
SELECT 28 * + MIN ( + CAST ( - - 90 AS INTEGER ) ) AS col1
----
2520

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2271
SELECT ALL + CAST( NULL AS DECIMAL ) * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL + CAST ( NULL AS REAL ) * + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT 20 * + COUNT( * ) * + 13 AS col0
----
260

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT 20 * + COUNT ( * ) * + 13 AS col0
----
260

query I rowsort
SELECT ALL ( - + 94 ) - - 35
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2274
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT - - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2275
SELECT DISTINCT + 15 * + ( + + CAST( 7 AS SIGNED ) )
----
105

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT + 15 * + ( + + CAST ( 7 AS INTEGER ) )
----
105

query I rowsort
SELECT ALL - - 38 * 22
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT 89 + - 80 + + 50 + - + COUNT( * ) * - - 21
----
38

skipif mysql # not compatible
query I rowsort label-2277
SELECT 89 + - 80 + + 50 + - + COUNT ( * ) * - - 21
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2278
SELECT 79 - - ( - 64 ) * - 34 * 70, - NULLIF ( - 7, - 93 + - 73 + 85 + - + 42 + + 99 * COUNT( - - 47 ) + - + 59 + + COUNT( * ) * + 21 / 97 / - CAST( - 25 AS SIGNED ) * - CASE - 13 WHEN + 83 THEN - 59 END * 73 / - AVG ( + 53 ) + 54 + - 47 ) AS col1
----
152399
7

skipif mysql # not compatible
query II rowsort label-2278
SELECT 79 - - ( - 64 ) * - 34 * 70, - NULLIF ( - 7, - 93 + - 73 + 85 + - + 42 + + 99 * COUNT ( - - 47 ) + - + 59 + + COUNT ( * ) * + 21 / 97 / - CAST ( - 25 AS INTEGER ) * - CASE - 13 WHEN + 83 THEN - 59 END * 73 / - AVG ( + 53 ) + 54 + - 47 ) AS col1
----
152399
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2279
SELECT ALL - 66 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL - 66 - + CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT - - NULLIF ( MIN( ALL 62 ), COUNT( * ) ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-2281
SELECT - - NULLIF ( MIN ( ALL 62 ), COUNT ( * ) ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT + COUNT( * ) * MIN( DISTINCT + 37 ) + - 42 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-2282
SELECT + COUNT ( * ) * MIN ( DISTINCT + 37 ) + - 42 AS col2
----
-5

query I rowsort
SELECT ALL + ( 48 ) * + + ( 63 ) AS col0
----
3024

query I rowsort
SELECT 4 + + + 17 AS col2
----
21

query I rowsort
SELECT ALL 8 * 18 * + + ( + 57 )
----
8208

query I rowsort
SELECT 35 * - 57 AS col1
----
-1995

query I rowsort
SELECT - 82 + 83 * 87
----
7139

query I rowsort
SELECT ALL 66 + - + 71 * 39
----
-2703

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2290
SELECT NULLIF ( - COALESCE ( - - COUNT( * ), + 21, - - 9 * + + CAST( + 63 AS SIGNED ) - 34 ), CAST( NULL AS SIGNED ) ) DIV - - 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2290
SELECT NULLIF ( - COALESCE ( - - COUNT ( * ), + 21, - - 9 * + + CAST ( + 63 AS INTEGER ) - 34 ), CAST ( NULL AS INTEGER ) ) / - - 29 AS col0
----
0

query II rowsort
SELECT DISTINCT + 47 + - 88 AS col2, + 61 col1
----
-41
61

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL CASE - + COUNT( * ) WHEN + + 75 THEN + 3 WHEN - + 99 / - 8 + - + 75 + - 56 * + + 74 THEN NULL WHEN ( 68 ) THEN 87 END + 53 * - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL CASE - + COUNT ( * ) WHEN + + 75 THEN + 3 WHEN - + 99 / - 8 + - + 75 + - 56 * + + 74 THEN NULL WHEN ( 68 ) THEN 87 END + 53 * - 49 AS col1
----
NULL

query I rowsort
SELECT ALL 57 + - 79 + 4 * - + 19 * 53 AS col2
----
-4050

query I rowsort
SELECT ALL 69 * 44 * - - 23
----
69828

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT + 39 * + + COUNT( * ) * - + 30
----
-1170

skipif mysql # not compatible
query I rowsort label-2297
SELECT + 39 * + + COUNT ( * ) * - + 30
----
-1170

query I rowsort
SELECT ALL 8 * - - 99 + ( - ( + 80 ) )
----
712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT CASE + 38 WHEN - 39 THEN - + 98 + - ( + 37 ) * CAST( NULL AS SIGNED ) + 44 WHEN 5 THEN NULL ELSE + - 57 END AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-2299
SELECT CASE + 38 WHEN - 39 THEN - + 98 + - ( + 37 ) * CAST ( NULL AS INTEGER ) + 44 WHEN 5 THEN NULL ELSE + - 57 END AS col2
----
-57

query I rowsort
SELECT ALL + 7 * + 82 + 91 * - - 44
----
4578

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ALL - 35 * 87 + COALESCE ( - 46, - - COUNT( 66 ) ) AS col2
----
-3091

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL - 35 * 87 + COALESCE ( - 46, - - COUNT ( 66 ) ) AS col2
----
-3091

query I rowsort
SELECT 77 * 40 * 33 - 9
----
101631

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT NULLIF ( COALESCE ( + 10, - COUNT( * ) + - COUNT( * ) ), - 23 + 17 * - 59 )
----
10

skipif mysql # not compatible
query I rowsort label-2303
SELECT NULLIF ( COALESCE ( + 10, - COUNT ( * ) + - COUNT ( * ) ), - 23 + 17 * - 59 )
----
10

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

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

query I rowsort
SELECT COALESCE ( + - 91, + 34 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT + NULLIF ( NULLIF ( 46, - + 6 + + 95 ), + MAX( DISTINCT - 3 ) )
----
46

skipif mysql # not compatible
query I rowsort label-2306
SELECT + NULLIF ( NULLIF ( 46, - + 6 + + 95 ), + MAX ( DISTINCT - 3 ) )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2307
SELECT DISTINCT + SUM( ALL 74 ) * + COALESCE ( 96, + 69 + COUNT( * ) ) + + ( - 21 ) + - 76 * - 88 * + + 82 - 47 * ( - + 16 ) + 3 DIV - 95 AS col2
----
556251

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT + SUM ( ALL 74 ) * + COALESCE ( 96, + 69 + COUNT ( * ) ) + + ( - 21 ) + - 76 * - 88 * + + 82 - 47 * ( - + 16 ) + 3 / - 95 AS col2
----
556251

onlyif mysql # aggregate syntax: 
query II rowsort label-2308
SELECT - SUM( + + 88 ) + + - COUNT( * ), 33 col0
----
-89
33

skipif mysql # not compatible
query II rowsort label-2308
SELECT - SUM ( + + 88 ) + + - COUNT ( * ), 33 col0
----
-89
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2309
SELECT DISTINCT CAST( + 2 AS SIGNED ) * - 8 - + CASE - - 87 WHEN + 92 - - + 77 THEN - - CASE - 8 WHEN + - 38 THEN + COUNT( * ) WHEN + 17 THEN + - 9 * 8 END ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT CAST ( + 2 AS INTEGER ) * - 8 - + CASE - - 87 WHEN + 92 - - + 77 THEN - - CASE - 8 WHEN + - 38 THEN + COUNT ( * ) WHEN + 17 THEN + - 9 * 8 END ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + 57 ) * 95
----
5415

query II rowsort
SELECT ALL + 14, 82 AS col0
----
14
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT + CASE + 71 WHEN + CASE - 4 WHEN - - ( + - COUNT( * ) ) * - 33 / + - 18 THEN - COUNT( DISTINCT + 65 ) + + CASE NULLIF ( 88, 85 * + + 41 + 61 * - ( + 79 ) / - 44 * - ( - - 45 ) - + - COUNT( * ) ) WHEN 73 + - 84 / + 38 + - 77 + + 15 THEN - + ( - 34 ) - + + COALESCE ( + - COUNT( * ), + 56 ) - + 11 + 63 WHEN COALESCE ( + 46, 2 + COUNT( * ) ) * 96 THEN NULLIF ( - 84, 60 * 37 + + 90 ) END * - 26 ELSE - 57 / + COUNT( * ) END * COUNT( * ) THEN + 10 + + 31 ELSE NULL END * COUNT( * ) + COUNT( DISTINCT + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2312
SELECT + CASE + 71 WHEN + CASE - 4 WHEN - - ( + - COUNT ( * ) ) * - 33 / + - 18 THEN - COUNT ( DISTINCT + 65 ) + + CASE NULLIF ( 88, 85 * + + 41 + 61 * - ( + 79 ) / - 44 * - ( - - 45 ) - + - COUNT ( * ) ) WHEN 73 + - 84 / + 38 + - 77 + + 15 THEN - + ( - 34 ) - + + COALESCE ( + - COUNT ( * ), + 56 ) - + 11 + 63 WHEN COALESCE ( + 46, 2 + COUNT ( * ) ) * 96 THEN NULLIF ( - 84, 60 * 37 + + 90 ) END * - 26 ELSE - 57 / + COUNT ( * ) END * COUNT ( * ) THEN + 10 + + 31 ELSE NULL END * COUNT ( * ) + COUNT ( DISTINCT + 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT - 94 * + COUNT( * ) + + 26 + + + 1 - + + 94 + - COUNT( * ) * + 39 * 39 AS col1
----
-1682

skipif mysql # not compatible
query I rowsort label-2313
SELECT - 94 * + COUNT ( * ) + + 26 + + + 1 - + + 94 + - COUNT ( * ) * + 39 * 39 AS col1
----
-1682

query II rowsort
SELECT - - 31 * 32 * 96 AS col2, - 5 AS col0
----
95232
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2315
SELECT - - CAST( NULL AS SIGNED ) + - + 70 + 26 - - 50 + + 85 + - 63 * + + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT - - CAST ( NULL AS INTEGER ) + - + 70 + 26 - - 50 + + 85 + - 63 * + + 14 AS col2
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2318
SELECT ALL - 76 DIV - CAST( - 82 AS SIGNED ) * + - MAX( ALL + 18 )
----
0

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL - 76 / - CAST ( - 82 AS INTEGER ) * + - MAX ( ALL + 18 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT - + 48 DIV + 39
----
-1

skipif mysql # not compatible
query I rowsort label-2319
SELECT - + 48 / + 39
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT - AVG ( + - CAST( NULL AS SIGNED ) ) / + 42 * - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT - AVG ( + - CAST ( NULL AS INTEGER ) ) / + 42 * - 9
----
NULL

query I rowsort
SELECT ALL - - 31 + - 65
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-2323
SELECT - + 4 - MAX( DISTINCT + - 10 ) AS col0, 35 - - + ( 62 ) + - + 68
----
6
29

skipif mysql # not compatible
query II rowsort label-2323
SELECT - + 4 - MAX ( DISTINCT + - 10 ) AS col0, 35 - - + ( 62 ) + - + 68
----
6
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT - - COUNT( * ) * + SUM( 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2324
SELECT - - COUNT ( * ) * + SUM ( 40 ) AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT ALL + + 19 + - + CASE - 94 WHEN + 14 THEN NULL ELSE - 19 - + 81 - - - ( + 42 ) * + 97 * + + 93 END / CAST( NULL AS SIGNED ) * - - 60 + + - ( - - ( - 0 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + + 19 + - + CASE - 94 WHEN + 14 THEN NULL ELSE - 19 - + 81 - - - ( + 42 ) * + 97 * + + 93 END / CAST ( NULL AS INTEGER ) * - - 60 + + - ( - - ( - 0 ) ) AS col0
----
NULL

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

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

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

query II rowsort
SELECT - + 75 AS col0, 2 AS col1
----
-75
2

query I rowsort
SELECT - 64 - - 63 + + + 21 * + 17 * + 66
----
23561

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT + 40 - COUNT( * ) + + 53
----
92

skipif mysql # not compatible
query I rowsort label-2332
SELECT + 40 - COUNT ( * ) + + 53
----
92

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

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

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

query I rowsort
SELECT - 4 + + 43 AS col2
----
39

query I rowsort
SELECT + 10 - + + 34
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + 86 - - 76 * + COUNT( * ) AS col0
----
162

skipif mysql # not compatible
query I rowsort label-2337
SELECT + 86 - - 76 * + COUNT ( * ) AS col0
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-2338
SELECT ALL 92 * 47, COUNT( * ) * + + 60 AS col1
----
4324
60

skipif mysql # not compatible
query II rowsort label-2338
SELECT ALL 92 * 47, COUNT ( * ) * + + 60 AS col1
----
4324
60

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

skipif mysql # not compatible
query I rowsort label-2339
SELECT + 97 * - COUNT ( ALL + 83 ) AS col1
----
-97

query II rowsort
SELECT ALL 9 * 14, + 45 AS col2
----
126
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2341
SELECT DISTINCT - 70 DIV + + 83 * + 87 * 3 - - 80 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT - 70 / + + 83 * + 87 * 3 - - 80 AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT CAST( 71 AS SIGNED ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2342
SELECT CAST ( 71 AS INTEGER ) AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2343
SELECT 46 DIV 2 DIV - 3 + COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2343
SELECT 46 / 2 / - 3 + COUNT ( * ) AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2344
SELECT ALL 56 * 96 * SUM( + - 68 ) * - + CAST( 89 AS SIGNED ) + + COUNT( * ) AS col1
----
32535553

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL 56 * 96 * SUM ( + - 68 ) * - + CAST ( 89 AS INTEGER ) + + COUNT ( * ) AS col1
----
32535553

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2346
SELECT + COUNT( * ) + + 55 AS col0, 13 * - CAST( NULL AS SIGNED ) * + 20 + + - 16 / + 72 AS col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-2346
SELECT + COUNT ( * ) + + 55 AS col0, 13 * - CAST ( NULL AS INTEGER ) * + 20 + + - 16 / + 72 AS col1
----
56
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2348
SELECT + 14 / - COALESCE ( + 2, + + 53, + + 21 ) * - COUNT( DISTINCT 45 ) / - COALESCE ( + NULLIF ( COUNT( * ), + + 67 ), - 11 ) + - - 32 * + 0 - CAST( NULL AS DECIMAL ) AS col0, - 89 + - COUNT( * ) * - 87 AS col0
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-2348
SELECT + 14 / - COALESCE ( + 2, + + 53, + + 21 ) * - COUNT ( DISTINCT 45 ) / - COALESCE ( + NULLIF ( COUNT ( * ), + + 67 ), - 11 ) + - - 32 * + 0 - CAST ( NULL AS REAL ) AS col0, - 89 + - COUNT ( * ) * - 87 AS col0
----
NULL
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2349
SELECT + 20 DIV ( 5 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2349
SELECT + 20 / ( 5 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT 37 * + + COUNT( * ) + - 23
----
14

skipif mysql # not compatible
query I rowsort label-2350
SELECT 37 * + + COUNT ( * ) + - 23
----
14

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

query II rowsort
SELECT + 10 - + - 32, 97 * 36 * + + 55 - + 0 + 96 AS col0
----
42
192156

onlyif mysql # aggregate syntax: 
query II rowsort label-2353
SELECT + 15 * + + ( - - 61 ) * - - 35 + CASE - + 67 WHEN COUNT( * ) THEN NULL WHEN 12 * + 73 + + 47 THEN - + COUNT( * ) END * + CASE COUNT( * ) WHEN - - 55 THEN + 70 + + - COALESCE ( 96, - MAX( DISTINCT - 2 ) ) WHEN + ( + 65 ) + + 6 THEN - - MAX( DISTINCT - 22 ) ELSE NULL END AS col1, 30 AS col1
----
NULL
30

skipif mysql # not compatible
query II rowsort label-2353
SELECT + 15 * + + ( - - 61 ) * - - 35 + CASE - + 67 WHEN COUNT ( * ) THEN NULL WHEN 12 * + 73 + + 47 THEN - + COUNT ( * ) END * + CASE COUNT ( * ) WHEN - - 55 THEN + 70 + + - COALESCE ( 96, - MAX ( DISTINCT - 2 ) ) WHEN + ( + 65 ) + + 6 THEN - - MAX ( DISTINCT - 22 ) ELSE NULL END AS col1, 30 AS col1
----
NULL
30

query I rowsort
SELECT + ( - - 60 ) + - 0 col1
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2355
SELECT DISTINCT + + COUNT( * ) * - - 16 * COUNT( * ) - - COUNT( * ), 89 + - 17 AS col1
----
17
72

skipif mysql # not compatible
query II rowsort label-2355
SELECT DISTINCT + + COUNT ( * ) * - - 16 * COUNT ( * ) - - COUNT ( * ), 89 + - 17 AS col1
----
17
72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2357
SELECT - + COALESCE ( + + 45, - 39 + - CAST( + - COUNT( * ) AS SIGNED ) * + CAST( NULL AS SIGNED ) ) * + 63 AS col0, + COUNT( * )
----
-2835
1

skipif mysql # not compatible
query II rowsort label-2357
SELECT - + COALESCE ( + + 45, - 39 + - CAST ( + - COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) ) * + 63 AS col0, + COUNT ( * )
----
-2835
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2358
SELECT ALL 79 * + CASE ( - MAX( - + 60 ) ) WHEN - 55 THEN + - 26 - - CAST( NULL AS SIGNED ) WHEN + 65 + + NULLIF ( - - 0, COUNT( * ) ) THEN NULL END + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL 79 * + CASE ( - MAX ( - + 60 ) ) WHEN - 55 THEN + - 26 - - CAST ( NULL AS INTEGER ) WHEN + 65 + + NULLIF ( - - 0, COUNT ( * ) ) THEN NULL END + - 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2359
SELECT - MAX( DISTINCT - 54 ) - COUNT( DISTINCT + CAST( - ( + + 58 ) AS DECIMAL ) )
----
53

skipif mysql # not compatible
query I rowsort label-2359
SELECT - MAX ( DISTINCT - 54 ) - COUNT ( DISTINCT + CAST ( - ( + + 58 ) AS REAL ) )
----
53

query I rowsort
SELECT ALL - ( - - 78 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2361
SELECT + 96 * - COUNT( * ) + - 70 DIV 11 * - + 79 * - 41 AS col1
----
-19530

skipif mysql # not compatible
query I rowsort label-2361
SELECT + 96 * - COUNT ( * ) + - 70 / 11 * - + 79 * - 41 AS col1
----
-19530

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT - COUNT( * ) + 56 * - 73 AS col2
----
-4089

skipif mysql # not compatible
query I rowsort label-2362
SELECT - COUNT ( * ) + 56 * - 73 AS col2
----
-4089

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2363
SELECT - 53 + NULLIF ( - 18, - COUNT( * ) ) - + - CASE WHEN NOT NULL IS NULL THEN NULL ELSE 32 END + + - COUNT( ALL - 64 ) DIV + ( - - 17 ) + - 89 + - COUNT( * ) AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-2363
SELECT - 53 + NULLIF ( - 18, - COUNT ( * ) ) - + - CASE WHEN NOT NULL IS NULL THEN NULL ELSE 32 END + + - COUNT ( ALL - 64 ) / + ( - - 17 ) + - 89 + - COUNT ( * ) AS col0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT DISTINCT - COUNT( * ) + + - 7 * + + 50 * + + 52
----
-18201

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT - COUNT ( * ) + + - 7 * + + 50 * + + 52
----
-18201

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT 23 + - ( + + CASE COUNT( * ) WHEN + 87 THEN NULLIF ( - 96, + - 0 * + COUNT( * ) + - 30 ) * - COUNT( * ) END ) - + SUM( ( - 3 ) ) * 39 * + COUNT( * ) * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2365
SELECT 23 + - ( + + CASE COUNT ( * ) WHEN + 87 THEN NULLIF ( - 96, + - 0 * + COUNT ( * ) + - 30 ) * - COUNT ( * ) END ) - + SUM ( ( - 3 ) ) * 39 * + COUNT ( * ) * - 2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT 93 DIV 29 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2366
SELECT 93 / 29 AS col2
----
3

query I rowsort
SELECT 29 * - ( - 23 ) AS col0
----
667

query I rowsort
SELECT 3 * 22 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT ALL + 41 * - COUNT( - 74 ) * - - 52 AS col0
----
-2132

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL + 41 * - COUNT ( - 74 ) * - - 52 AS col0
----
-2132

query I rowsort
SELECT 48 + NULLIF ( + COALESCE ( + + 43, + + 85, + + 43 ), - 78 ) AS col1
----
91

query II rowsort
SELECT DISTINCT 97 AS col2, + 23
----
97
23

query I rowsort
SELECT ALL - ( - - 9 ) - + + 38
----
-47

query I rowsort
SELECT 28 * + - 77 AS col1
----
-2156

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT DISTINCT 3 - + ( 28 ) + - - 90 + 5 DIV + 26 + 41 * + 71 * + 59 col2
----
171814

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT 3 - + ( 28 ) + - - 90 + 5 / + 26 + 41 * + 71 * + 59 col2
----
171814

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

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

query I rowsort
SELECT ALL 38 * + 20
----
760

query I rowsort
SELECT ALL 56 * - - 92 AS col1
----
5152

query I rowsort
SELECT 28 - - - 11
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2379
SELECT + 30 DIV + 13 + 60 * + 48 - - SUM( - 58 ) * + 87 AS col1
----
-2164

skipif mysql # not compatible
query I rowsort label-2379
SELECT + 30 / + 13 + 60 * + 48 - - SUM ( - 58 ) * + 87 AS col1
----
-2164

query I rowsort
SELECT ALL 2 * - 62
----
-124

query I rowsort
SELECT 44 * 30 * + CASE + - ( + - 34 ) WHEN - + 48 THEN - 49 * + + 19 END
----
NULL

query I rowsort
SELECT 79 + + ( 67 ) - - 5 AS col0
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT DISTINCT - 36 * - 74 + ( MAX( + - ( 6 ) ) ) * ( - 31 )
----
2850

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT - 36 * - 74 + ( MAX ( + - ( 6 ) ) ) * ( - 31 )
----
2850

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

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL - MAX ( ALL - - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT + ( + 38 ) * - 48 * - 85 * 44 + COUNT( * )
----
6821761

skipif mysql # not compatible
query I rowsort label-2385
SELECT + ( + 38 ) * - 48 * - 85 * 44 + COUNT ( * )
----
6821761

query I rowsort
SELECT DISTINCT - ( - - 70 )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2387
SELECT 98 DIV - MIN( ALL - 11 ) + + 4 + 15 AS col0, + COUNT( DISTINCT 69 ) AS col2
----
27
1

skipif mysql # not compatible
query II rowsort label-2387
SELECT 98 / - MIN ( ALL - 11 ) + + 4 + 15 AS col0, + COUNT ( DISTINCT 69 ) AS col2
----
27
1

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

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

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

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

query I rowsort
SELECT ( - 80 ) + - + CASE - 14 WHEN + + 24 THEN + - 88 END + - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT 57 * - MAX( ALL - + 29 ) * 79 * - + COUNT( * ) + + - 23 col2
----
-130610

skipif mysql # not compatible
query I rowsort label-2391
SELECT 57 * - MAX ( ALL - + 29 ) * 79 * - + COUNT ( * ) + + - 23 col2
----
-130610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2392
SELECT ALL COUNT( * ) / + COUNT( * ) * 56 * 55 + - COUNT( * ) + CAST( NULL AS SIGNED ) - 77 + + 7 * + - 97 + - + 64 * - 43 * - CAST( + - NULLIF ( 53, + + COUNT( * ) ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL COUNT ( * ) / + COUNT ( * ) * 56 * 55 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) - 77 + + 7 * + - 97 + - + 64 * - 43 * - CAST ( + - NULLIF ( 53, + + COUNT ( * ) ) AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2393
SELECT - 2 DIV + - 13 + + ( 2 )
----
2

skipif mysql # not compatible
query I rowsort label-2393
SELECT - 2 / + - 13 + + ( 2 )
----
2

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

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

query I rowsort
SELECT - 85 + + 9 AS col0
----
-76

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

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

query I rowsort
SELECT 13 * 41 + - - 52
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT - - ( - CASE - 24 WHEN - 71 * + - 67 * COUNT( * ) THEN + + COUNT( * ) WHEN 31 + + + 72 + 73 + + 81 THEN NULL WHEN - + 80 + + COUNT( * ) THEN + 41 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2398
SELECT - - ( - CASE - 24 WHEN - 71 * + - 67 * COUNT ( * ) THEN + + COUNT ( * ) WHEN 31 + + + 72 + 73 + + 81 THEN NULL WHEN - + 80 + + COUNT ( * ) THEN + 41 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2399
SELECT ALL - CASE - 26 WHEN + 46 THEN + 5 WHEN + 40 THEN NULL WHEN + 26 THEN + - 44 - + + CAST( + AVG ( + - 87 ) AS SIGNED ) * - + CASE - 65 WHEN - 6 THEN NULL WHEN - COUNT( * ) * + 21 * - + 58 THEN - - 48 END ELSE 9 * + 52 END * - 27, 63 AS col2
----
12636
63

skipif mysql # not compatible
query II rowsort label-2399
SELECT ALL - CASE - 26 WHEN + 46 THEN + 5 WHEN + 40 THEN NULL WHEN + 26 THEN + - 44 - + + CAST ( + AVG ( + - 87 ) AS INTEGER ) * - + CASE - 65 WHEN - 6 THEN NULL WHEN - COUNT ( * ) * + 21 * - + 58 THEN - - 48 END ELSE 9 * + 52 END * - 27, 63 AS col2
----
12636
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT MAX( 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2400
SELECT MAX ( 3 ) AS col2
----
3

query I rowsort
SELECT ALL - 41 - - 60
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2402
SELECT 3 + 49 + COUNT( * ) + - ( 98 ) + + 93 + + COUNT( * ) DIV - 57
----
48

skipif mysql # not compatible
query I rowsort label-2402
SELECT 3 + 49 + COUNT ( * ) + - ( 98 ) + + 93 + + COUNT ( * ) / - 57
----
48

query I rowsort
SELECT 38 * + 2
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-2404
SELECT ALL 35 AS col1, 40 DIV - 20
----
35
-2

skipif mysql # not compatible
query II rowsort label-2404
SELECT ALL 35 AS col1, 40 / - 20
----
35
-2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2406
SELECT DISTINCT 93 AS col2, + 87 + + COALESCE ( ( + + 85 ), + 18, - 24 * + 39 + + 44 * - - COUNT( * ) )
----
93
172

skipif mysql # not compatible
query II rowsort label-2406
SELECT DISTINCT 93 AS col2, + 87 + + COALESCE ( ( + + 85 ), + 18, - 24 * + 39 + + 44 * - - COUNT ( * ) )
----
93
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT 28 - + COUNT( * ) * - 97
----
125

skipif mysql # not compatible
query I rowsort label-2407
SELECT 28 - + COUNT ( * ) * - 97
----
125

query II rowsort
SELECT ALL 46 AS col2, + 46 col2
----
46
46

query II rowsort
SELECT - 2, - 33 + + 53 * + - 80 AS col0
----
-2
-4273

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2410
SELECT 54 DIV + CAST( 33 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2410
SELECT 54 / + CAST ( 33 AS INTEGER ) AS col0
----
1

query I rowsort
SELECT 28 + - 77
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT 63 * + COUNT( * ) * 82
----
5166

skipif mysql # not compatible
query I rowsort label-2412
SELECT 63 * + COUNT ( * ) * 82
----
5166

query I rowsort
SELECT 37 + 6 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT 53 * - - 21 * ( - + COUNT( * ) )
----
-1113

skipif mysql # not compatible
query I rowsort label-2414
SELECT 53 * - - 21 * ( - + COUNT ( * ) )
----
-1113

query I rowsort
SELECT 89 * - 68 * ( + 34 )
----
-205768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2416
SELECT ALL CAST( NULLIF ( 93, - + 23 + 44 ) AS SIGNED ) * - CAST( 71 AS SIGNED ) + 96 + NULLIF ( + + 41, + - NULLIF ( - ( - 20 ), + 85 ) / - + ( - 66 ) ) + - 90
----
-6556

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL CAST ( NULLIF ( 93, - + 23 + 44 ) AS INTEGER ) * - CAST ( 71 AS INTEGER ) + 96 + NULLIF ( + + 41, + - NULLIF ( - ( - 20 ), + 85 ) / - + ( - 66 ) ) + - 90
----
-6556

query I rowsort
SELECT ALL - ( - ( - 93 ) )
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-2418
SELECT DISTINCT - - COUNT( * ) AS col2, 49
----
1
49

skipif mysql # not compatible
query II rowsort label-2418
SELECT DISTINCT - - COUNT ( * ) AS col2, 49
----
1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT DISTINCT + MIN( ALL + 19 ) * - - CASE + NULLIF ( - 26, + 32 ) WHEN COUNT( * ) + - - COUNT( * ) + + + ( 70 ) + + 48 * CASE + 70 WHEN - COUNT( * ) - - - 10 + ( + 35 ) + + COUNT( * ) + + 57 THEN NULL WHEN 45 THEN NULL ELSE - - COALESCE ( - - 30, 49 ) + + - 91 + - 29 * 52 END THEN NULL ELSE + 10 END * + 10 + - 68 * + 93 - 91 + MIN( + 46 ) + 33 AS col2
----
-4436

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT + MIN ( ALL + 19 ) * - - CASE + NULLIF ( - 26, + 32 ) WHEN COUNT ( * ) + - - COUNT ( * ) + + + ( 70 ) + + 48 * CASE + 70 WHEN - COUNT ( * ) - - - 10 + ( + 35 ) + + COUNT ( * ) + + 57 THEN NULL WHEN 45 THEN NULL ELSE - - COALESCE ( - - 30, 49 ) + + - 91 + - 29 * 52 END THEN NULL ELSE + 10 END * + 10 + - 68 * + 93 - 91 + MIN ( + 46 ) + 33 AS col2
----
-4436

onlyif mysql # aggregate syntax: 
query II rowsort label-2420
SELECT - 59 + - - 43 * - NULLIF ( + ( ( + 41 ) ), - 65 ) + + 82 * COUNT( * ) col1, + 96 * 82
----
-1740
7872

skipif mysql # not compatible
query II rowsort label-2420
SELECT - 59 + - - 43 * - NULLIF ( + ( ( + 41 ) ), - 65 ) + + 82 * COUNT ( * ) col1, + 96 * 82
----
-1740
7872

query I rowsort
SELECT ALL - - NULLIF ( - - 18, - 97 )
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT + ( + - 10 ) - ( - 6 ) + - + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-2423
SELECT + ( + - 10 ) - ( - 6 ) + - + COUNT ( * )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2424
SELECT DISTINCT + COALESCE ( + + CASE - - 89 WHEN - 10 - - - SUM( - 8 ) + + - 61 * + - ( ( + - 82 ) ) + + - ( - CAST( NULL AS SIGNED ) ) THEN - + ( + + 17 ) WHEN + - 30 * - + 19 + 1 + - 3 THEN NULL ELSE + 34 + + - 21 END, 55 ) * + 61 * 4 + + 23 + - 98
----
3097

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT + COALESCE ( + + CASE - - 89 WHEN - 10 - - - SUM ( - 8 ) + + - 61 * + - ( ( + - 82 ) ) + + - ( - CAST ( NULL AS INTEGER ) ) THEN - + ( + + 17 ) WHEN + - 30 * - + 19 + 1 + - 3 THEN NULL ELSE + 34 + + - 21 END, 55 ) * + 61 * 4 + + 23 + - 98
----
3097

onlyif mysql # aggregate syntax: 
query II rowsort label-2425
SELECT ALL + - 20 - + 51 * - + SUM( 2 ) * - + 20 + 31 AS col1, 10 AS col1
----
-2029
10

skipif mysql # not compatible
query II rowsort label-2425
SELECT ALL + - 20 - + 51 * - + SUM ( 2 ) * - + 20 + 31 AS col1, 10 AS col1
----
-2029
10

query II rowsort
SELECT DISTINCT + + 10, - ( - 85 ) * - + 1 * 39 - + + 77 * 85 col2
----
10
-9860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2427
SELECT + COALESCE ( 6, + 82 ) * 63 - + 43 DIV + ( - + COUNT( + 83 ) )
----
421

skipif mysql # not compatible
query I rowsort label-2427
SELECT + COALESCE ( 6, + 82 ) * 63 - + 43 / + ( - + COUNT ( + 83 ) )
----
421

query I rowsort
SELECT - 5 + 91 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT + COUNT( * ) - - 89 - - 83 AS col0
----
173

skipif mysql # not compatible
query I rowsort label-2429
SELECT + COUNT ( * ) - - 89 - - 83 AS col0
----
173

query II rowsort
SELECT + 22 * - 27 AS col1, - COALESCE ( + + 44, 42 ) AS col2
----
-594
-44

query I rowsort
SELECT 86 * 28 + - 74
----
2334

onlyif mysql # aggregate syntax: 
query II rowsort label-2432
SELECT ALL 93 - + 5 AS col0, COALESCE ( + - COUNT( * ), 69 + + COUNT( * ) + + 7 * + MIN( - 49 ), + - ( + + 66 ) + - 10 + - 76 - 33 * - + 80 ) col1
----
88
-1

skipif mysql # not compatible
query II rowsort label-2432
SELECT ALL 93 - + 5 AS col0, COALESCE ( + - COUNT ( * ), 69 + + COUNT ( * ) + + 7 * + MIN ( - 49 ), + - ( + + 66 ) + - 10 + - 76 - 33 * - + 80 ) col1
----
88
-1

query II rowsort
SELECT + 98 * + 31 AS col2, 55
----
3038
55

query I rowsort
SELECT + 75 + 52 col1
----
127

query I rowsort
SELECT + 51 + + 17 * ( 44 ) AS col1
----
799

query I rowsort
SELECT ALL 62 * - + 93 * + - 81 AS col1
----
467046

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

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

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

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

query I rowsort
SELECT ALL COALESCE ( 79, - 9 ) * - + 59
----
-4661

query I rowsort
SELECT + 32 + - + 25 AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2441
SELECT - 97 + + + ( CAST( 76 AS SIGNED ) )
----
-21

skipif mysql # not compatible
query I rowsort label-2441
SELECT - 97 + + + ( CAST ( 76 AS INTEGER ) )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-2442
SELECT + MAX( + 18 ) * + + COUNT( * ), - 73 AS col1
----
18
-73

skipif mysql # not compatible
query II rowsort label-2442
SELECT + MAX ( + 18 ) * + + COUNT ( * ), - 73 AS col1
----
18
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2443
SELECT - ( + 4 ) DIV + + SUM( 46 )
----
0

skipif mysql # not compatible
query I rowsort label-2443
SELECT - ( + 4 ) / + + SUM ( 46 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT ALL - 88 + + 71 + 17 DIV - - 91 * + 66 DIV - - 40
----
-17

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - 88 + + 71 + 17 / - - 91 * + 66 / - - 40
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT DISTINCT + 33 DIV 28 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT + 33 / 28 AS col0
----
1

query I rowsort
SELECT ALL - 79 + - ( + - 45 )
----
-34

query I rowsort
SELECT + 78 + 4 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT - COUNT( ALL + 42 ) + + 86 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-2448
SELECT - COUNT ( ALL + 42 ) + + 86 AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2449
SELECT DISTINCT + 70 + 63 AS col1, CAST( - ( + 59 ) AS SIGNED )
----
133
-59

skipif mysql # not compatible
query II rowsort label-2449
SELECT DISTINCT + 70 + 63 AS col1, CAST ( - ( + 59 ) AS INTEGER )
----
133
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT DISTINCT - 59 DIV + 76 - - ( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT - 59 / + 76 - - ( 0 )
----
0

query I rowsort
SELECT ALL + + 72 * 7
----
504

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

skipif mysql # not compatible
query I rowsort label-2452
SELECT + - 21 / + - COUNT ( * ) AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2453
SELECT - - 32 DIV - 32 + - 53 + - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-2453
SELECT - - 32 / - 32 + - 53 + - COUNT ( * )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2454
SELECT CAST( - - 67 AS SIGNED ) AS col1, - 62 - 37 AS col0
----
67
-99

skipif mysql # not compatible
query II rowsort label-2454
SELECT CAST ( - - 67 AS INTEGER ) AS col1, - 62 - 37 AS col0
----
67
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2455
SELECT ALL - 68 * + + CAST( NULL AS SIGNED ) + 80 - - - 15 + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL - 68 * + + CAST ( NULL AS INTEGER ) + 80 - - - 15 + - 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2456
SELECT - CAST( 76 AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-2456
SELECT - CAST ( 76 AS INTEGER )
----
-76

query II rowsort
SELECT - - 14 + - 49 AS col2, 44 + COALESCE ( + 89, + - 66 ) * - 17 * - + 49 AS col0
----
-35
74181

query III rowsort
SELECT DISTINCT + + 42 * - + 77 col0, 1 + - + 80 + - 50 col0, + 63 * - 76 - 4 * + + 70
----
-3234
-129
-5068

query I rowsort
SELECT - - 69 * 52
----
3588

query I rowsort
SELECT + - 64 + - 40 - + 40 AS col1
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT - 99 DIV + 9 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2461
SELECT - 99 / + 9 AS col1
----
-11

query II rowsort
SELECT + 29, 52 AS col1
----
29
52

query II rowsort
SELECT ALL + 58 col2, + 68 + - 50
----
58
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2464
SELECT + COUNT( * ), 60 / CAST( NULL AS SIGNED ) * - - 92 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2464
SELECT + COUNT ( * ), 60 / CAST ( NULL AS INTEGER ) * - - 92 AS col2
----
1
NULL

query I rowsort
SELECT DISTINCT ( ( - NULLIF ( + 5, 21 ) ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT ALL + MAX( ALL + 35 ) * - 68 * CASE + 39 WHEN - + 67 + 67 + 62 * + 93 / + 4 THEN NULL ELSE + COUNT( * ) * - COUNT( * ) * - 49 * + 74 END + + 15 + - - COUNT( * ) * 24 AS col1
----
-8629841

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL + MAX ( ALL + 35 ) * - 68 * CASE + 39 WHEN - + 67 + 67 + 62 * + 93 / + 4 THEN NULL ELSE + COUNT ( * ) * - COUNT ( * ) * - 49 * + 74 END + + 15 + - - COUNT ( * ) * 24 AS col1
----
-8629841

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT COUNT( ALL - CASE + 55 WHEN + 74 THEN NULL WHEN + 10 THEN - - 63 END )
----
0

skipif mysql # not compatible
query I rowsort label-2468
SELECT COUNT ( ALL - CASE + 55 WHEN + 74 THEN NULL WHEN + 10 THEN - - 63 END )
----
0

query I rowsort
SELECT - 91 + - ( 61 ) * + + 67 * + - 39 AS col0
----
159302

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2471
SELECT + MAX( CAST( NULL AS SIGNED ) ) - - 42 + + CASE 52 WHEN - 23 THEN NULL ELSE - + 56 * - 7 + + - 10 - - - 79 * - + 69 - + 85 * 60 + - - 71 * - + 5 - - - 72 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT + MAX ( CAST ( NULL AS INTEGER ) ) - - 42 + + CASE 52 WHEN - 23 THEN NULL ELSE - + 56 * - 7 + + - 10 - - - 79 * - + 69 - + 85 * 60 + - - 71 * - + 5 - - - 72 END AS col2
----
NULL

query I rowsort
SELECT ALL 73 * - 8 AS col1
----
-584

query I rowsort
SELECT ALL 32 + - - 25
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2474
SELECT + 37 - + 57 + - COALESCE ( + - 70, - COUNT( * ) + 60 + + 91, + 67 ) - 11 * 23 / + + CAST( NULL AS SIGNED ) * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT + 37 - + 57 + - COALESCE ( + - 70, - COUNT ( * ) + 60 + + 91, + 67 ) - 11 * 23 / + + CAST ( NULL AS INTEGER ) * - 68
----
NULL

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

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

query I rowsort
SELECT + ( + + 40 ) + 56 + 49 - + 36 * + 8
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL CASE ( - COUNT( * ) ) WHEN 15 THEN - - 1 WHEN + 16 THEN 73 WHEN + 95 + 5 - + - 96 / 29 * 52 - + + 80 - + 43 + 36 - 69 * 73 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL CASE ( - COUNT ( * ) ) WHEN 15 THEN - - 1 WHEN + 16 THEN 73 WHEN + 95 + 5 - + - 96 / 29 * 52 - + + 80 - + 43 + 36 - 69 * 73 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + - 25 * + 47 AS col0
----
-1175

query I rowsort
SELECT + - 66 + - - 80
----
14

query I rowsort
SELECT + + 91 + - 45 AS col1
----
46

query I rowsort
SELECT - + 86 - + + 76 AS col1
----
-162

onlyif mysql # DIV for integer division: 
query II rowsort label-2482
SELECT + 13, - 92 DIV 20 AS col1
----
13
-4

skipif mysql # not compatible
query II rowsort label-2482
SELECT + 13, - 92 / 20 AS col1
----
13
-4

query I rowsort
SELECT - - 11 - + 8 AS col2
----
3

query I rowsort
SELECT DISTINCT + CASE - 65 WHEN - - 67 THEN - + 77 * + - 79 * - - 48 / + 38 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT + 97, + 84 AS col2
----
97
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT ALL + 14 DIV + 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL + 14 / + 27 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2487
SELECT DISTINCT - 36, 45 * + COUNT( * ) AS col2
----
-36
45

skipif mysql # not compatible
query II rowsort label-2487
SELECT DISTINCT - 36, 45 * + COUNT ( * ) AS col2
----
-36
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2488
SELECT - + COUNT( * ) DIV 94 + + COUNT( * ) AS col0, MIN( ALL + 64 ) AS col0
----
1
64

skipif mysql # not compatible
query II rowsort label-2488
SELECT - + COUNT ( * ) / 94 + + COUNT ( * ) AS col0, MIN ( ALL + 64 ) AS col0
----
1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT ALL - 65 * + MIN( DISTINCT + 75 )
----
-4875

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL - 65 * + MIN ( DISTINCT + 75 )
----
-4875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2490
SELECT - + COUNT( * ) * + - 48 + 8 DIV - 1 + 21 * + 76 * + 71 + + - COALESCE ( + - 16, + - 97 ) + + ( 58 ) AS col0
----
113430

skipif mysql # not compatible
query I rowsort label-2490
SELECT - + COUNT ( * ) * + - 48 + 8 / - 1 + 21 * + 76 * + 71 + + - COALESCE ( + - 16, + - 97 ) + + ( 58 ) AS col0
----
113430

query I rowsort
SELECT ALL + 62 * 55 + - 36 + 65 * 80 * 82 AS col0
----
429774

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2492
SELECT 36 + + - 55 DIV - - COUNT( * ), + 50 AS col0
----
-19
50

skipif mysql # not compatible
query II rowsort label-2492
SELECT 36 + + - 55 / - - COUNT ( * ), + 50 AS col0
----
-19
50

query I rowsort
SELECT ( 80 ) * - - 58 * + 78 + + 97
----
362017

query I rowsort
SELECT - 97 * 17 - + 93 col1
----
-1742

query I rowsort
SELECT ALL 67 * 46 * 55
----
169510

query I rowsort
SELECT DISTINCT - ( 65 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT 38 + - - 33 * - 63 * 31 * - + 47 - + - 55 * + 43 + - - COUNT( * ) AS col1
----
3031507

skipif mysql # not compatible
query I rowsort label-2497
SELECT 38 + - - 33 * - 63 * 31 * - + 47 - + - 55 * + 43 + - - COUNT ( * ) AS col1
----
3031507

query I rowsort
SELECT DISTINCT - ( - - 91 ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT ALL - 23 + - 85 - - COUNT( * )
----
-107

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - 23 + - 85 - - COUNT ( * )
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT 28 + - 69 + + CASE + 92 WHEN + 50 THEN 12 WHEN - COALESCE ( - - 67, - 17 ) THEN + + 61 WHEN + SUM( DISTINCT 84 ) / 7 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT 28 + - 69 + + CASE + 92 WHEN + 50 THEN 12 WHEN - COALESCE ( - - 67, - 17 ) THEN + + 61 WHEN + SUM ( DISTINCT 84 ) / 7 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT - 33 * + COUNT ( + 48 ) AS col0
----
-33

query I rowsort
SELECT DISTINCT + 79 + + 13 - + 23 * - 67
----
1633

query II rowsort
SELECT DISTINCT + 6 + - 45 col2, 98 * - 21
----
-39
-2058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2504
SELECT ALL 32 + - - CAST( 13 AS SIGNED ) + + COUNT( ALL + - 67 ) * 76 col2
----
121

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL 32 + - - CAST ( 13 AS INTEGER ) + + COUNT ( ALL + - 67 ) * 76 col2
----
121

query I rowsort
SELECT ALL + 88 + + 7 * - 55
----
-297

query I rowsort
SELECT DISTINCT - 34 * 24
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT 82 + - - MAX( DISTINCT - 89 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2507
SELECT 82 + - - MAX ( DISTINCT - 89 ) AS col0
----
-7

query I rowsort
SELECT 64 + + 19 AS col0
----
83

query I rowsort
SELECT 23 + + 36 - - - 83
----
-24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2510
SELECT - 39 * CAST( + 38 AS SIGNED ) DIV + - 1 + 47 - + + 20 AS col0
----
1509

skipif mysql # not compatible
query I rowsort label-2510
SELECT - 39 * CAST ( + 38 AS INTEGER ) / + - 1 + 47 - + + 20 AS col0
----
1509

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2511
SELECT - ( - MIN( + + 2 ) ) + + 5 AS col1, 53 + MIN( + CAST( 67 AS SIGNED ) ) - - 72 * + ( + ( 7 ) ) AS col0
----
7
624

skipif mysql # not compatible
query II rowsort label-2511
SELECT - ( - MIN ( + + 2 ) ) + + 5 AS col1, 53 + MIN ( + CAST ( 67 AS INTEGER ) ) - - 72 * + ( + ( 7 ) ) AS col0
----
7
624

onlyif mysql # DIV for integer division: 
query I rowsort label-2512
SELECT DISTINCT - 76 DIV + 35 + + 46 + - + 13
----
31

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT - 76 / + 35 + + 46 + - + 13
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT DISTINCT - 65 DIV + 49 + + 48
----
47

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT - 65 / + 49 + + 48
----
47

query I rowsort
SELECT DISTINCT + - 76 - + - 85 + - 80 * 78 + + - 97
----
-6328

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

query I rowsort
SELECT 33 + + 47
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT 19 * + SUM( DISTINCT + 8 ) * - 1 - 9 + ( - - ( + - CASE SUM( - 91 ) WHEN 95 + - ( + - ( + 33 ) ) THEN + 70 + 26 * 87 END ) ) - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT 19 * + SUM ( DISTINCT + 8 ) * - 1 - 9 + ( - - ( + - CASE SUM ( - 91 ) WHEN 95 + - ( + - ( + 33 ) ) THEN + 70 + 26 * 87 END ) ) - 98
----
NULL

query I rowsort
SELECT CASE - + 4 WHEN - 58 * 92 - + + 75 * - 15 * - 50 * + ( + + 24 ) THEN - + 86 WHEN + 21 * + ( + 9 ) THEN NULL ELSE NULL END * + 5 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2519
SELECT - 9 DIV + - 24 + + 59
----
59

skipif mysql # not compatible
query I rowsort label-2519
SELECT - 9 / + - 24 + + 59
----
59

query I rowsort
SELECT - 38 + + 87
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-2521
SELECT 51 * + 58 AS col2, + COUNT( * ) + - + 88 AS col2
----
2958
-87

skipif mysql # not compatible
query II rowsort label-2521
SELECT 51 * + 58 AS col2, + COUNT ( * ) + - + 88 AS col2
----
2958
-87

query I rowsort
SELECT ALL + + 38 + 0 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT - COALESCE ( - MAX( DISTINCT 90 ), - 54 * - 12 ) col0
----
90

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT - COALESCE ( - MAX ( DISTINCT 90 ), - 54 * - 12 ) col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL - 19 + + COUNT( ALL + 21 )
----
-18

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL - 19 + + COUNT ( ALL + 21 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT MAX( DISTINCT 1 ) + + 39
----
40

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT MAX ( DISTINCT 1 ) + + 39
----
40

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

skipif mysql # not compatible
query I rowsort label-2526
SELECT COUNT ( * ) / + 24 * - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2527
SELECT ALL + 65 * + MAX( 3 ) AS col1, - 90
----
195
-90

skipif mysql # not compatible
query II rowsort label-2527
SELECT ALL + 65 * + MAX ( 3 ) AS col1, - 90
----
195
-90

query I rowsort
SELECT 63 * + + 30 AS col0
----
1890

onlyif mysql # aggregate syntax: 
query II rowsort label-2529
SELECT 73 * NULLIF ( - 54, + 25 * 62 + + + COUNT( * ) ) AS col1, ( + ( - ( - CASE - 96 WHEN 57 + - 88 + 57 THEN - - 49 * + - 34 END ) ) ) + 4 + + 1 * CASE + - NULLIF ( NULLIF ( + 49, + 80 ), + 85 ) WHEN - 50 THEN - 11 * - - ( - - 24 ) END AS col0
----
-3942
NULL

skipif mysql # not compatible
query II rowsort label-2529
SELECT 73 * NULLIF ( - 54, + 25 * 62 + + + COUNT ( * ) ) AS col1, ( + ( - ( - CASE - 96 WHEN 57 + - 88 + 57 THEN - - 49 * + - 34 END ) ) ) + 4 + + 1 * CASE + - NULLIF ( NULLIF ( + 49, + 80 ), + 85 ) WHEN - 50 THEN - 11 * - - ( - - 24 ) END AS col0
----
-3942
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2530
SELECT 17 AS col0, CASE + 7 WHEN 7 THEN - - 92 * + 24 + - - COUNT( * ) WHEN - - COUNT( * ) THEN + 47 - 0 END AS col1
----
17
2209

skipif mysql # not compatible
query II rowsort label-2530
SELECT 17 AS col0, CASE + 7 WHEN 7 THEN - - 92 * + 24 + - - COUNT ( * ) WHEN - - COUNT ( * ) THEN + 47 - 0 END AS col1
----
17
2209

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL + 56 + + - COUNT( * ) + SUM( + - 78 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL + 56 + + - COUNT ( * ) + SUM ( + - 78 ) AS col2
----
-23

query I rowsort
SELECT 98 * - 96
----
-9408

query I rowsort
SELECT 72 + ( - 94 ) + - - ( + + 54 ) + - 15
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL MIN( DISTINCT + + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL MIN ( DISTINCT + + 32 )
----
32

query I rowsort
SELECT DISTINCT - 3 * 48 * - - 86 * - - 51
----
-631584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2536
SELECT - COUNT( * ) + + - 3 DIV + - 52 * + 1 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2536
SELECT - COUNT ( * ) + + - 3 / + - 52 * + 1 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT - + 58 * - ( 89 ) - + - COUNT( * ) AS col1
----
5163

skipif mysql # not compatible
query I rowsort label-2537
SELECT - + 58 * - ( 89 ) - + - COUNT ( * ) AS col1
----
5163

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT ALL - - COUNT( ALL - 55 ) * - + NULLIF ( - NULLIF ( 76, 33 ), - 32 ) + + COUNT( * ) - - 93
----
170

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL - - COUNT ( ALL - 55 ) * - + NULLIF ( - NULLIF ( 76, 33 ), - 32 ) + + COUNT ( * ) - - 93
----
170

query II rowsort
SELECT ALL 15, 23 AS col1
----
15
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2540
SELECT - + 9 + 44 + + 63 DIV 12 DIV - + 75
----
35

skipif mysql # not compatible
query I rowsort label-2540
SELECT - + 9 + 44 + + 63 / 12 / - + 75
----
35

query I rowsort
SELECT - 72 * + - 19
----
1368

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

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

query I rowsort
SELECT + - 26 * - + 29 * - 3 AS col1
----
-2262

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT - SUM( ALL + + 50 ) * + 32 + + COUNT( * ) AS col2
----
-1599

skipif mysql # not compatible
query I rowsort label-2545
SELECT - SUM ( ALL + + 50 ) * + 32 + + COUNT ( * ) AS col2
----
-1599

onlyif mysql # DIV for integer division: 
query I rowsort label-2546
SELECT DISTINCT + + 69 DIV + 60
----
1

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT + + 69 / + 60
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2547
SELECT DISTINCT COUNT( * ) * + - 5 - - + 31 col0, 61
----
26
61

skipif mysql # not compatible
query II rowsort label-2547
SELECT DISTINCT COUNT ( * ) * + - 5 - - + 31 col0, 61
----
26
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL - - MAX( + 19 ) * - 83 * + + 4 * COUNT( * ) + - SUM( - - 79 ) AS col2
----
-6387

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL - - MAX ( + 19 ) * - 83 * + + 4 * COUNT ( * ) + - SUM ( - - 79 ) AS col2
----
-6387

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

skipif mysql # not compatible
query I rowsort label-2549
SELECT 23 * + CAST ( NULL AS INTEGER ) + + - 88
----
NULL

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

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

query I rowsort
SELECT + 68 + + 37 * + 0 AS col1
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2552
SELECT ALL + 99 AS col1, + CAST( NULL AS DECIMAL ) AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-2552
SELECT ALL + 99 AS col1, + CAST ( NULL AS REAL ) AS col0
----
99
NULL

query II rowsort
SELECT ALL + 2, 81 * 67 AS col2
----
2
5427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2554
SELECT 61 * COUNT( * ) + - 61 + COUNT( * ) + + + 53 * - COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT 61 * COUNT ( * ) + - 61 + COUNT ( * ) + + + 53 * - COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 50 * - 47
----
-2350

query II rowsort
SELECT ALL + 47, - 91 AS col2
----
47
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT 97 * COUNT( * ) + - 23 + - + 43 * 91
----
-3839

skipif mysql # not compatible
query I rowsort label-2557
SELECT 97 * COUNT ( * ) + - 23 + - + 43 * 91
----
-3839

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2558
SELECT + ( + 94 ), + 22 - - COALESCE ( - - COUNT( * ), - 8 * - 0 * - 56 - - - 37 * + 25 DIV - + 82 + - 1 ) AS col2
----
94
23

skipif mysql # not compatible
query II rowsort label-2558
SELECT + ( + 94 ), + 22 - - COALESCE ( - - COUNT ( * ), - 8 * - 0 * - 56 - - - 37 * + 25 / - + 82 + - 1 ) AS col2
----
94
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT - ( - 23 ) + + - SUM( + 6 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2559
SELECT - ( - 23 ) + + - SUM ( + 6 ) AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2560
SELECT ALL 14 * + 89 AS col1, - ( + NULLIF ( - + 36, 71 + - 70 ) ) DIV + 23 - + 12 + - - 97 * - 23 * - COUNT( * )
----
1246
2220

skipif mysql # not compatible
query II rowsort label-2560
SELECT ALL 14 * + 89 AS col1, - ( + NULLIF ( - + 36, 71 + - 70 ) ) / + 23 - + 12 + - - 97 * - 23 * - COUNT ( * )
----
1246
2220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2561
SELECT + COALESCE ( + + 34, - 61 + + + 78 DIV + + 55, - CASE + CAST( - + COUNT( * ) AS SIGNED ) WHEN + 51 + - - 88 THEN - - 85 ELSE NULL END * - COUNT( * ) + - SUM( - 97 ) ) AS col2, + 64 + - 42 * + 74 + 55 - - NULLIF ( - + ( COUNT( * ) ), - CAST( NULL AS SIGNED ) * + 27 )
----
34
-2990

skipif mysql # not compatible
query II rowsort label-2561
SELECT + COALESCE ( + + 34, - 61 + + + 78 / + + 55, - CASE + CAST ( - + COUNT ( * ) AS INTEGER ) WHEN + 51 + - - 88 THEN - - 85 ELSE NULL END * - COUNT ( * ) + - SUM ( - 97 ) ) AS col2, + 64 + - 42 * + 74 + 55 - - NULLIF ( - + ( COUNT ( * ) ), - CAST ( NULL AS INTEGER ) * + 27 )
----
34
-2990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2562
SELECT - 84 + + CAST( - - 58 AS SIGNED ) * COUNT( - 52 ) * - - ( + 85 )
----
4846

skipif mysql # not compatible
query I rowsort label-2562
SELECT - 84 + + CAST ( - - 58 AS INTEGER ) * COUNT ( - 52 ) * - - ( + 85 )
----
4846

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT + ( + NULLIF ( + NULLIF ( - 54, + 44 + + 59 ), ( - - COUNT( ALL - 91 ) ) ) ) * + 78 * 96 * + 53
----
-21430656

skipif mysql # not compatible
query I rowsort label-2563
SELECT + ( + NULLIF ( + NULLIF ( - 54, + 44 + + 59 ), ( - - COUNT ( ALL - 91 ) ) ) ) * + 78 * 96 * + 53
----
-21430656

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT - 61 + + - 64 + COUNT( * ) + - COUNT( * ) * + - 78 + + - 79 + + 58 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-2564
SELECT - 61 + + - 64 + COUNT ( * ) + - COUNT ( * ) * + - 78 + + - 79 + + 58 AS col1
----
-67

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

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

query I rowsort
SELECT - 48 + 23
----
-25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT - 61 + - COUNT( * ) * 15 + + COUNT( * ) + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-2568
SELECT - 61 + - COUNT ( * ) * 15 + + COUNT ( * ) + COUNT ( * )
----
-74

query II rowsort
SELECT ALL 94 AS col1, 98 * 18
----
94
1764

query I rowsort
SELECT - 70 * - ( + 73 ) * - 83 AS col1
----
-424130

query I rowsort
SELECT + - 36 + - 29 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT + SUM( + 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2572
SELECT + SUM ( + 53 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT + + 61 + - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-2573
SELECT + + 61 + - - COUNT ( * )
----
62

query I rowsort
SELECT - - 86 * - - 73
----
6278

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT - + 80 * COUNT( + 20 ) * + 19 * 63 AS col2
----
-95760

skipif mysql # not compatible
query I rowsort label-2575
SELECT - + 80 * COUNT ( + 20 ) * + 19 * 63 AS col2
----
-95760

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT ALL + - ( COUNT( DISTINCT - 66 ) ) + COUNT( * ) * - - 34 col2
----
33

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL + - ( COUNT ( DISTINCT - 66 ) ) + COUNT ( * ) * - - 34 col2
----
33

query I rowsort
SELECT - 59 + 19 * - 58
----
-1161

query II rowsort
SELECT DISTINCT + 6 AS col1, - 0 + + 60 AS col2
----
6
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2579
SELECT DISTINCT - + 4 + - CAST( NULL AS DECIMAL ) + + + 82 / 14 + - + ( + - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT - + 4 + - CAST ( NULL AS REAL ) + + + 82 / 14 + - + ( + - COUNT ( * ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT - 86 + + MAX( + - 25 )
----
-111

skipif mysql # not compatible
query I rowsort label-2580
SELECT - 86 + + MAX ( + - 25 )
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2581
SELECT ALL - COUNT( * ) + + 51 * + + CAST( NULL AS SIGNED ) * COUNT( * ) * 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL - COUNT ( * ) + + 51 * + + CAST ( NULL AS INTEGER ) * COUNT ( * ) * 8 AS col0
----
NULL

query II rowsort
SELECT 34 AS col2, ( - - 49 )
----
34
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT - MIN( - - 25 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2583
SELECT - MIN ( - - 25 ) AS col1
----
-25

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

skipif mysql # not compatible
query I rowsort label-2584
SELECT - + 59 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 63 * - 9 + - 22 AS col2
----
545

query I rowsort
SELECT + ( 87 ) * + 73 col1
----
6351

query I rowsort
SELECT + ( 70 ) + + + CASE 88 WHEN COALESCE ( + - 38, - 24, + + NULLIF ( ( - 31 ), - ( ( + 21 ) ) ) * - 37 ) + - - 18 THEN - 83 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT ALL CAST( NULL AS SIGNED ) / 98 / + + 91 + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL CAST ( NULL AS INTEGER ) / 98 / + + 91 + + 26
----
NULL

query II rowsort
SELECT DISTINCT + ( + 53 ) AS col1, + 56
----
53
56

query I rowsort
SELECT - 62 * - - ( - 48 ) AS col0
----
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT - ( + - 26 ) * + 90 * - + 58 + + COUNT( + 72 ) AS col0
----
-135719

skipif mysql # not compatible
query I rowsort label-2591
SELECT - ( + - 26 ) * + 90 * - + 58 + + COUNT ( + 72 ) AS col0
----
-135719

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

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

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

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

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

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

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

query I rowsort
SELECT + 67 * + 1 * + - 57 * - 39 * + + 26 * 34
----
131663844

query II rowsort
SELECT ( - + 2 ) AS col2, 9
----
-2
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT - CASE + 87 WHEN - COALESCE ( + CAST( NULL AS SIGNED ), + 2 ) / 60 THEN + - 24 + - 31 + MAX( ALL + + 98 ) * + + 69 * + 22 * + ( + 94 ) ELSE NULL END * + COUNT( * ) * - + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT - CASE + 87 WHEN - COALESCE ( + CAST ( NULL AS INTEGER ), + 2 ) / 60 THEN + - 24 + - 31 + MAX ( ALL + + 98 ) * + + 69 * + 22 * + ( + 94 ) ELSE NULL END * + COUNT ( * ) * - + 34
----
NULL

query I rowsort
SELECT 0 * + 29 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT COUNT( ALL + - 40 ) + 47
----
48

skipif mysql # not compatible
query I rowsort label-2601
SELECT COUNT ( ALL + - 40 ) + 47
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2602
SELECT COUNT( * ) * 70 * - - CAST( NULL AS SIGNED ) * - 33 + + + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT COUNT ( * ) * 70 * - - CAST ( NULL AS INTEGER ) * - 33 + + + 70 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 37 + - ( - + ( - + 7 ) )
----
30

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT - 91 DIV + 93 * 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2605
SELECT - 91 / + 93 * 47 AS col2
----
0

query II rowsort
SELECT DISTINCT 60 + + 78 AS col2, + 76 col2
----
138
76

query I rowsort
SELECT ALL 65 + 53
----
118

query I rowsort
SELECT ALL COALESCE ( 3, + 59 )
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2610
SELECT DISTINCT - 43 + - 17 AS col0, - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-2610
SELECT DISTINCT - 43 + - 17 AS col0, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
-60
NULL

query II rowsort
SELECT - ( - 11 ) AS col1, + 74 * + 12 * - - 11 + + 77
----
11
9845

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + ( - + 57 ), - + 36 ) col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT 18 - + - COUNT( + 33 )
----
19

skipif mysql # not compatible
query I rowsort label-2614
SELECT 18 - + - COUNT ( + 33 )
----
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2616
SELECT ALL + 6 - CAST( - COUNT( * ) AS SIGNED ) + - 19 AS col2, + 45 * + - COUNT( * ) * - 32
----
-12
1440

skipif mysql # not compatible
query II rowsort label-2616
SELECT ALL + 6 - CAST ( - COUNT ( * ) AS INTEGER ) + - 19 AS col2, + 45 * + - COUNT ( * ) * - 32
----
-12
1440

query I rowsort
SELECT 57 * + 27 col1
----
1539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2618
SELECT 63 DIV + + MAX( ALL 86 ) * - ( 89 ) * 71 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2618
SELECT 63 / + + MAX ( ALL 86 ) * - ( 89 ) * 71 + COUNT ( * )
----
1

query II rowsort
SELECT + 34 AS col0, - 57 AS col2
----
34
-57

query I rowsort
SELECT DISTINCT + 15 * - 76 col0
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT DISTINCT - SUM( 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT - SUM ( 4 )
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT 97 * - 72 + + 91 * SUM( DISTINCT - 65 )
----
-12899

skipif mysql # not compatible
query I rowsort label-2623
SELECT 97 * - 72 + + 91 * SUM ( DISTINCT - 65 )
----
-12899

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT 98 - CASE - 40 WHEN + 81 THEN 67 + + 94 + - - ( ( - - MAX( 38 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2624
SELECT 98 - CASE - 40 WHEN + 81 THEN 67 + + 94 + - - ( ( - - MAX ( 38 ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT ( - SUM( ALL + 58 ) ) DIV + + 86 + - 99 * - 72
----
7128

skipif mysql # not compatible
query I rowsort label-2625
SELECT ( - SUM ( ALL + 58 ) ) / + + 86 + - 99 * - 72
----
7128

onlyif mysql # aggregate syntax: 
query II rowsort label-2626
SELECT ALL - COUNT( * ) AS col1, MIN( + 68 ) * + - 76 AS col0
----
-1
-5168

skipif mysql # not compatible
query II rowsort label-2626
SELECT ALL - COUNT ( * ) AS col1, MIN ( + 68 ) * + - 76 AS col0
----
-1
-5168

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT 98 + - NULLIF ( + + 88, + 68 + - + 64 ) + ( - ( - MAX( ALL 87 ) ) ) * 3
----
271

skipif mysql # not compatible
query I rowsort label-2627
SELECT 98 + - NULLIF ( + + 88, + 68 + - + 64 ) + ( - ( - MAX ( ALL 87 ) ) ) * 3
----
271

query I rowsort
SELECT ALL 61 * - 60 AS col0
----
-3660

onlyif mysql # aggregate syntax: 
query II rowsort label-2629
SELECT COUNT( * ) * + 93 * - - COUNT( * ) AS col0, - 14
----
93
-14

skipif mysql # not compatible
query II rowsort label-2629
SELECT COUNT ( * ) * + 93 * - - COUNT ( * ) AS col0, - 14
----
93
-14

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2631
SELECT 33 * - COUNT( * ) DIV - - 83, 18 AS col1
----
0
18

skipif mysql # not compatible
query II rowsort label-2631
SELECT 33 * - COUNT ( * ) / - - 83, 18 AS col1
----
0
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2632
SELECT DISTINCT - 8 + - 85 + - 60 AS col2, COUNT( * ) + + 92 + + 81
----
-153
174

skipif mysql # not compatible
query II rowsort label-2632
SELECT DISTINCT - 8 + - 85 + - 60 AS col2, COUNT ( * ) + + 92 + + 81
----
-153
174

query II rowsort
SELECT 52 AS col1, - 95 AS col1
----
52
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2634
SELECT ALL CAST( NULL AS DECIMAL ) + COUNT( * ) + 16 + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL CAST ( NULL AS REAL ) + COUNT ( * ) + 16 + 42 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL ( - 40 ) + + 52 * - 15
----
-820

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2637
SELECT + 46 * 34 DIV - - 24 col2, + COUNT( * ) col0
----
65
1

skipif mysql # not compatible
query II rowsort label-2637
SELECT + 46 * 34 / - - 24 col2, + COUNT ( * ) col0
----
65
1

query I rowsort
SELECT ALL - 14 + + + 15 - - - 16 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT - - MIN( - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-2639
SELECT - - MIN ( - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT 82 + - + MAX( DISTINCT - ( 56 ) ) AS col1
----
138

skipif mysql # not compatible
query I rowsort label-2640
SELECT 82 + - + MAX ( DISTINCT - ( 56 ) ) AS col1
----
138

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

query I rowsort
SELECT 43 * 68 * - 44
----
-128656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2643
SELECT - CAST( + 22 AS SIGNED ) + + 51 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2643
SELECT - CAST ( + 22 AS INTEGER ) + + 51 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT ALL COUNT( - ( 73 ) ) - - NULLIF ( + 74, + AVG ( 70 ) ) col1
----
75

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL COUNT ( - ( 73 ) ) - - NULLIF ( + 74, + AVG ( 70 ) ) col1
----
75

query I rowsort
SELECT 57 * 90
----
5130

query I rowsort
SELECT ALL 51 * - 9 col2
----
-459

query I rowsort
SELECT 63 + + 46 AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT ( + 86 ) * 15 - + 57 * COUNT( * ) + + - 19
----
1214

skipif mysql # not compatible
query I rowsort label-2648
SELECT ( + 86 ) * 15 - + 57 * COUNT ( * ) + + - 19
----
1214

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2649
SELECT ALL 45 * + 15 AS col0, + 88 / CAST( NULL AS SIGNED ) AS col1
----
675
NULL

skipif mysql # not compatible
query II rowsort label-2649
SELECT ALL 45 * + 15 AS col0, + 88 / CAST ( NULL AS INTEGER ) AS col1
----
675
NULL

query I rowsort
SELECT ( ( + - 52 ) ) * + + 49
----
-2548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2651
SELECT NULLIF ( COALESCE ( 56, + + 72 * - - 94 * + 40 * - COUNT( - 40 ) - - + MIN( + 23 ) - + 40, 54 * COUNT( * ) DIV + + COUNT( * ) DIV + 63, - - 44 ), 49 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-2651
SELECT NULLIF ( COALESCE ( 56, + + 72 * - - 94 * + 40 * - COUNT ( - 40 ) - - + MIN ( + 23 ) - + 40, 54 * COUNT ( * ) / + + COUNT ( * ) / + 63, - - 44 ), 49 ) col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2652
SELECT CASE + 32 WHEN - 83 / ( COUNT( * ) ) THEN 67 WHEN COALESCE ( - 20, + 60 * - 45 * + - COALESCE ( + - CAST( - - 27 AS SIGNED ), + - 88 + - 90 + - + 63 ), + COUNT( * ) / - 43 * 56 - - ( + + 10 ) ) * + 12 * 66 THEN - 52 * - 4 WHEN - + 8 * + COUNT( * ) THEN 44 ELSE + - 41 END AS col0, - 96 * - 4 + - - 92 + - + ( - 58 )
----
-41
534

skipif mysql # not compatible
query II rowsort label-2652
SELECT CASE + 32 WHEN - 83 / ( COUNT ( * ) ) THEN 67 WHEN COALESCE ( - 20, + 60 * - 45 * + - COALESCE ( + - CAST ( - - 27 AS INTEGER ), + - 88 + - 90 + - + 63 ), + COUNT ( * ) / - 43 * 56 - - ( + + 10 ) ) * + 12 * 66 THEN - 52 * - 4 WHEN - + 8 * + COUNT ( * ) THEN 44 ELSE + - 41 END AS col0, - 96 * - 4 + - - 92 + - + ( - 58 )
----
-41
534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2653
SELECT + 56 * - COUNT( ALL 74 ) * + + 24 AS col0, + CAST( - 45 AS SIGNED )
----
-1344
-45

skipif mysql # not compatible
query II rowsort label-2653
SELECT + 56 * - COUNT ( ALL 74 ) * + + 24 AS col0, + CAST ( - 45 AS INTEGER )
----
-1344
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL - 39 * + SUM( DISTINCT + + 2 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - 39 * + SUM ( DISTINCT + + 2 ) AS col1
----
-78

query I rowsort
SELECT + 17 * - 20 - + 2 AS col0
----
-342

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2657
SELECT - 37 * - 10 * - 34 + NULLIF ( CASE COALESCE ( + + 96, 87 * COUNT( * ) * - 15 * + 46 ) WHEN - + COUNT( * ) + - 85 THEN NULL WHEN + 61 THEN NULLIF ( + CAST( NULL AS SIGNED ), 76 ) + + - 72 ELSE NULL END, + + 62 / 80 * + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT - 37 * - 10 * - 34 + NULLIF ( CASE COALESCE ( + + 96, 87 * COUNT ( * ) * - 15 * + 46 ) WHEN - + COUNT ( * ) + - 85 THEN NULL WHEN + 61 THEN NULLIF ( + CAST ( NULL AS INTEGER ), 76 ) + + - 72 ELSE NULL END, + + 62 / 80 * + 56 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2658
SELECT DISTINCT - 66 * + + 87 + + CAST( + COALESCE ( + 13, + COUNT( * ) - 54 + + + 4, + 11 * + 63 ) AS SIGNED ) DIV 10 + - 76 + 64 col1
----
-5753

skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT - 66 * + + 87 + + CAST ( + COALESCE ( + 13, + COUNT ( * ) - 54 + + + 4, + 11 * + 63 ) AS INTEGER ) / 10 + - 76 + 64 col1
----
-5753

query I rowsort
SELECT ALL - - NULLIF ( - 0, 47 * - - 53 - + 2 ) * 25 + - + 79 + - 33 + + + 63
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT - + 99 - + 64 + - CASE - + 76 WHEN + CASE 87 WHEN + 62 - 43 + + 20 / + CASE + 54 WHEN + COUNT( * ) * - - MIN( - COALESCE ( 85, - 89 ) ) * + 0 * - - COUNT( * ) + 61 - - COALESCE ( - + 48, + - 31 ) - 71 * - COUNT( * ) THEN - 34 ELSE NULL END * + + 53 + - + COALESCE ( + 26, + 96, + + 32 ) THEN + CASE + ( - 72 ) WHEN 41 THEN 21 + - + 44 + + 49 WHEN + + 71 THEN NULL ELSE NULL END END THEN + - 39 END * + 88 - + - 86 + + 70 + + + 22 * SUM( 78 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT - + 99 - + 64 + - CASE - + 76 WHEN + CASE 87 WHEN + 62 - 43 + + 20 / + CASE + 54 WHEN + COUNT ( * ) * - - MIN ( - COALESCE ( 85, - 89 ) ) * + 0 * - - COUNT ( * ) + 61 - - COALESCE ( - + 48, + - 31 ) - 71 * - COUNT ( * ) THEN - 34 ELSE NULL END * + + 53 + - + COALESCE ( + 26, + 96, + + 32 ) THEN + CASE + ( - 72 ) WHEN 41 THEN 21 + - + 44 + + 49 WHEN + + 71 THEN NULL ELSE NULL END END THEN + - 39 END * + 88 - + - 86 + + 70 + + + 22 * SUM ( 78 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT ALL - 54 * - MIN( + + 58 ) AS col0
----
3132

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL - 54 * - MIN ( + + 58 ) AS col0
----
3132

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT - + 49 DIV + 64 * + 51
----
0

skipif mysql # not compatible
query I rowsort label-2662
SELECT - + 49 / + 64 * + 51
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( - 71, 40 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-2664
SELECT 63 * - + 79 + - CASE + 69 WHEN - - 32 - - 30 - - ( + 30 ) THEN 11 END * - COUNT( * ), 10 AS col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-2664
SELECT 63 * - + 79 + - CASE + 69 WHEN - - 32 - - 30 - - ( + 30 ) THEN 11 END * - COUNT ( * ), 10 AS col1
----
NULL
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2665
SELECT + 66 - - - MAX( - 28 ) * 50 AS col1, 15 AS col0
----
1466
15

skipif mysql # not compatible
query II rowsort label-2665
SELECT + 66 - - - MAX ( - 28 ) * 50 AS col1, 15 AS col0
----
1466
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT + - MIN( DISTINCT + + 69 ) + + - 92
----
-161

skipif mysql # not compatible
query I rowsort label-2666
SELECT + - MIN ( DISTINCT + + 69 ) + + - 92
----
-161

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT ALL - + 72 * 11 + + 7 + + COUNT( * ) + - - 38 * + COUNT( * ) AS col0
----
-746

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL - + 72 * 11 + + 7 + + COUNT ( * ) + - - 38 * + COUNT ( * ) AS col0
----
-746

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT - + 97 * - COUNT( * ) col1
----
97

skipif mysql # not compatible
query I rowsort label-2669
SELECT - + 97 * - COUNT ( * ) col1
----
97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2671
SELECT DISTINCT 51 DIV - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT 51 / - 61 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2672
SELECT - COALESCE ( - ( - NULLIF ( CAST( NULL AS SIGNED ), 97 ) ), 93 * + 61 DIV COUNT( * ) + - 76 * - 28 + CAST( NULL AS SIGNED ), - 83 + ( - 6 ) ) - 56 * + + 8
----
-359

skipif mysql # not compatible
query I rowsort label-2672
SELECT - COALESCE ( - ( - NULLIF ( CAST ( NULL AS INTEGER ), 97 ) ), 93 * + 61 / COUNT ( * ) + - 76 * - 28 + CAST ( NULL AS INTEGER ), - 83 + ( - 6 ) ) - 56 * + + 8
----
-359

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT - 86 DIV + 66 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2673
SELECT - 86 / + 66 AS col1
----
-1

query I rowsort
SELECT - 4 * + 68 AS col0
----
-272

query I rowsort
SELECT - ( 78 )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-2676
SELECT ALL - 71 DIV - - 63
----
-1

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL - 71 / - - 63
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT - CASE 9 WHEN + 43 * - + 37 / + + 10 * - NULLIF ( + COUNT( * ), - 11 ) THEN NULL ELSE - - 47 END
----
-47

skipif mysql # not compatible
query I rowsort label-2677
SELECT - CASE 9 WHEN + 43 * - + 37 / + + 10 * - NULLIF ( + COUNT ( * ), - 11 ) THEN NULL ELSE - - 47 END
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2678
SELECT ALL - ( - + ( + 37 ) ) DIV - - 22 + + - 23 + - 96
----
-118

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL - ( - + ( + 37 ) ) / - - 22 + + - 23 + - 96
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2679
SELECT + 26 DIV - + ( - - MAX( 99 ) ) * - - 72 col0
----
0

skipif mysql # not compatible
query I rowsort label-2679
SELECT + 26 / - + ( - - MAX ( 99 ) ) * - - 72 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2680
SELECT ALL + MAX( ALL - 54 ) DIV + 53
----
-1

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL + MAX ( ALL - 54 ) / + 53
----
-1

query I rowsort
SELECT + 2 * - 90 AS col0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT + 14 + 81 + - 17 * + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-2682
SELECT + 14 + 81 + - 17 * + COUNT ( * )
----
78

query I rowsort
SELECT + ( + 8 ) * - + NULLIF ( + ( - + 19 ), - + COALESCE ( 54, + 10 * - CASE 66 WHEN - + 49 THEN NULL ELSE + - 40 - 86 - + + 7 * + - 40 * - 22 - - - 9 * ( 60 ) END ) ) + 92 + - 46 AS col0
----
198

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT 8 DIV - + 28 + 50 + - 39 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2685
SELECT 8 / - + 28 + 50 + - 39 AS col2
----
11

query I rowsort
SELECT ALL + 77 * + - 32 + 52 * - 75
----
-6364

query I rowsort
SELECT ALL - 62 * + 35 + + 47 AS col1
----
-2123

query I rowsort
SELECT + 1 + + 79 AS col0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2689
SELECT ALL - - 33 * + COUNT( * ) + 53, 98 col0
----
86
98

skipif mysql # not compatible
query II rowsort label-2689
SELECT ALL - - 33 * + COUNT ( * ) + 53, 98 col0
----
86
98

query I rowsort
SELECT DISTINCT + + 93 col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2691
SELECT + CAST( - 75 AS SIGNED ) * + + NULLIF ( + 17, - 76 + COUNT( * ) )
----
-1275

skipif mysql # not compatible
query I rowsort label-2691
SELECT + CAST ( - 75 AS INTEGER ) * + + NULLIF ( + 17, - 76 + COUNT ( * ) )
----
-1275

query I rowsort
SELECT - + 37 + ( 25 ) + + COALESCE ( 24, + + 37 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2693
SELECT ALL - 47 * NULLIF ( + ( + 5 ), - 12 * - CAST( 98 AS SIGNED ) * NULLIF ( + CAST( NULL AS DECIMAL ), 67 * - + 0 ) + COUNT( * ) - 26 * 80 ) - ( + 55 )
----
-290

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL - 47 * NULLIF ( + ( + 5 ), - 12 * - CAST ( 98 AS INTEGER ) * NULLIF ( + CAST ( NULL AS REAL ), 67 * - + 0 ) + COUNT ( * ) - 26 * 80 ) - ( + 55 )
----
-290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2694
SELECT - - 26 * 34 - - 1 + + + 7 - 84 + + CAST( - + 62 AS SIGNED ) * + 65
----
-3222

skipif mysql # not compatible
query I rowsort label-2694
SELECT - - 26 * 34 - - 1 + + + 7 - 84 + + CAST ( - + 62 AS INTEGER ) * + 65
----
-3222

query I rowsort
SELECT ALL 73 * 32 * 67 AS col1
----
156512

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

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

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

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

query I rowsort
SELECT - 16 * + 7 * + 42 * + + 65
----
-305760

onlyif mysql # aggregate syntax: 
query II rowsort label-2699
SELECT - 30 AS col1, + 18 * + COUNT( * ) AS col1
----
-30
18

skipif mysql # not compatible
query II rowsort label-2699
SELECT - 30 AS col1, + 18 * + COUNT ( * ) AS col1
----
-30
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT 72 * - COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-2700
SELECT 72 * - COUNT ( * ) AS col1
----
-72

query I rowsort
SELECT 8 + - 58
----
-50

query I rowsort
SELECT DISTINCT - 57 * + 47 * + 1
----
-2679

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT DISTINCT - 84 + - 17 - - 99 * - NULLIF ( + CASE - - 79 WHEN - MAX( - 83 ) THEN + 40 * - + 87 + - - COALESCE ( + - 73, + 91 + 66 + 92 ) * - + CASE + MIN( - ( ( + 82 ) ) ) WHEN - MAX( ALL 74 ) * NULLIF ( - + 87, + 16 ) * - - 52 * - 84 + 57 THEN + + 71 - AVG ( - 30 ) + - 19 ELSE NULL END END, ( + - 14 ) / - + 9 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT - 84 + - 17 - - 99 * - NULLIF ( + CASE - - 79 WHEN - MAX ( - 83 ) THEN + 40 * - + 87 + - - COALESCE ( + - 73, + 91 + 66 + 92 ) * - + CASE + MIN ( - ( ( + 82 ) ) ) WHEN - MAX ( ALL 74 ) * NULLIF ( - + 87, + 16 ) * - - 52 * - 84 + 57 THEN + + 71 - AVG ( - 30 ) + - 19 ELSE NULL END END, ( + - 14 ) / - + 9 ) AS col1
----
NULL

query II rowsort
SELECT 36, ( 88 ) * - ( - 93 ) AS col0
----
36
8184

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT 98 + COALESCE ( + - SUM( 11 ), - 10 ) + 17 * 37
----
716

skipif mysql # not compatible
query I rowsort label-2705
SELECT 98 + COALESCE ( + - SUM ( 11 ), - 10 ) + 17 * 37
----
716

query I rowsort
SELECT DISTINCT - 66 + - 27 * NULLIF ( - + 10, + - AVG ( + 79 ) ) + - 73
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT - COUNT( - - 10 ) + - MAX( DISTINCT + 80 ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT - COUNT ( - - 10 ) + - MAX ( DISTINCT + 80 ) col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT DISTINCT 38 + - NULLIF ( - 45, - 46 + - CAST( NULL AS SIGNED ) + - COUNT( * ) ) * + - 86 AS col2
----
-3832

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT 38 + - NULLIF ( - 45, - 46 + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) * + - 86 AS col2
----
-3832

query II rowsort
SELECT DISTINCT 3, 95 col1
----
3
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2710
SELECT ALL + 40 + - ( - + 5 ) * + 66 * - CAST( NULL AS SIGNED ) * - 52 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL + 40 + - ( - + 5 ) * + 66 * - CAST ( NULL AS INTEGER ) * - 52 * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 88 * + 20 * 70
----
123200

query II rowsort
SELECT 30, - 15 AS col1
----
30
-15

query II rowsort
SELECT 36, - 5 AS col2
----
36
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT 2 + + - NULLIF ( - 87, + + MIN( 49 ) )
----
89

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT 2 + + - NULLIF ( - 87, + + MIN ( 49 ) )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT COALESCE ( 53, + CAST( + 23 AS SIGNED ) * - - 11, + 91 ) + ( 6 )
----
59

skipif mysql # not compatible
query I rowsort label-2715
SELECT COALESCE ( 53, + CAST ( + 23 AS INTEGER ) * - - 11, + 91 ) + ( 6 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2716
SELECT COUNT( * ) * + + 33 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT COUNT ( * ) * + + 33 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT DISTINCT ( - SUM( + 54 ) ) * 60 AS col0
----
-3240

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT ( - SUM ( + 54 ) ) * 60 AS col0
----
-3240

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

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

query I rowsort
SELECT ALL - - ( + - COALESCE ( 97, + 42 ) )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2720
SELECT 77 DIV + 28 + - 68 col0
----
-66

skipif mysql # not compatible
query I rowsort label-2720
SELECT 77 / + 28 + - 68 col0
----
-66

query I rowsort
SELECT - 42 * 60 * + 67 col2
----
-168840

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

query I rowsort
SELECT 46 * + 16 * - 21 + + + 10 + - 29 + - 50 * + 29 * - 72
----
88925

query II rowsort
SELECT 83, 14 * - - 87 AS col2
----
83
1218

query II rowsort
SELECT 20 col1, ( 91 )
----
20
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT + 9 * - COALESCE ( MAX( + 56 ), - - 50, - - 21 + + - 73 - + 13 * - 7 * 29 ) - + 83
----
-587

skipif mysql # not compatible
query I rowsort label-2726
SELECT + 9 * - COALESCE ( MAX ( + 56 ), - - 50, - - 21 + + - 73 - + 13 * - 7 * 29 ) - + 83
----
-587

query I rowsort
SELECT + NULLIF ( - 28, - 34 )
----
-28

query II rowsort
SELECT DISTINCT - 46 col2, 42 * + + 27 AS col2
----
-46
1134

onlyif mysql # aggregate syntax: 
query II rowsort label-2729
SELECT ALL - NULLIF ( 85, + + NULLIF ( + - MAX( DISTINCT - 49 ), COUNT( DISTINCT - - 34 ) ) * - + 51 + 91 ) AS col2, + 65 * + + 79
----
-85
5135

skipif mysql # not compatible
query II rowsort label-2729
SELECT ALL - NULLIF ( 85, + + NULLIF ( + - MAX ( DISTINCT - 49 ), COUNT ( DISTINCT - - 34 ) ) * - + 51 + 91 ) AS col2, + 65 * + + 79
----
-85
5135

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2731
SELECT ( - 5 ) / AVG ( DISTINCT - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT ( - 5 ) / AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2733
SELECT 97 + CAST( + - 93 AS SIGNED ) - 32 - + 49 * 85 * + 55 AS col1, + 18 + - COUNT( * )
----
-229103
17

skipif mysql # not compatible
query II rowsort label-2733
SELECT 97 + CAST ( + - 93 AS INTEGER ) - 32 - + 49 * 85 * + 55 AS col1, + 18 + - COUNT ( * )
----
-229103
17

query I rowsort
SELECT 33 * + 8 AS col1
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL COUNT( ALL + 9 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL COUNT ( ALL + 9 ) col2
----
1

query I rowsort
SELECT 23 - + 43 + + 5 * CASE - 45 WHEN - 24 * - + 32 THEN + 81 END * - 3 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT ALL + 47 * - - COUNT( * ) * 37
----
1739

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL + 47 * - - COUNT ( * ) * 37
----
1739

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2740
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) AS col2, 90 AS col1
----
1
90

skipif mysql # not compatible
query II rowsort label-2740
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col2, 90 AS col1
----
1
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2741
SELECT 45 DIV 45 - - 4 * COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-2741
SELECT 45 / 45 - - 4 * COUNT ( * )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT ALL + + ( 95 ) DIV 37 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL + + ( 95 ) / 37 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT ALL COUNT( * ) * 38 * MIN( DISTINCT - 87 ) AS col0
----
-3306

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL COUNT ( * ) * 38 * MIN ( DISTINCT - 87 ) AS col0
----
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT CASE + 34 WHEN - - 60 + - - 40 - - NULLIF ( + - 56, + - ( ( 46 ) ) ) THEN NULL WHEN + + 91 - + + 7 THEN COUNT( * ) ELSE NULL END + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT CASE + 34 WHEN - - 60 + - - 40 - - NULLIF ( + - 56, + - ( ( 46 ) ) ) THEN NULL WHEN + + 91 - + + 7 THEN COUNT ( * ) ELSE NULL END + + 90
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2745
SELECT ALL + - 49 DIV 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL + - 49 / 96 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT + SUM( + 42 ) * - 67 - - - 50 + - 93 + 82 AS col2
----
-2875

skipif mysql # not compatible
query I rowsort label-2746
SELECT + SUM ( + 42 ) * - 67 - - - 50 + - 93 + 82 AS col2
----
-2875

query I rowsort
SELECT ALL + 54 * - - 38
----
2052

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2748
SELECT - 21 DIV + 8 + COUNT( * ) AS col2, - 83 AS col1
----
-1
-83

skipif mysql # not compatible
query II rowsort label-2748
SELECT - 21 / + 8 + COUNT ( * ) AS col2, - 83 AS col1
----
-1
-83

query II rowsort
SELECT 33 + + + 35 AS col0, 83 col1
----
68
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2750
SELECT ALL - CAST( + - 34 AS SIGNED ) + - 59 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL - CAST ( + - 34 AS INTEGER ) + - 59 AS col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2751
SELECT + CASE - 89 WHEN 48 THEN + 65 WHEN + + COUNT( ALL + 72 ) * + 59 THEN + CAST( 4 AS SIGNED ) + - 7 ELSE + - 30 END
----
-30

skipif mysql # not compatible
query I rowsort label-2751
SELECT + CASE - 89 WHEN 48 THEN + 65 WHEN + + COUNT ( ALL + 72 ) * + 59 THEN + CAST ( 4 AS INTEGER ) + - 7 ELSE + - 30 END
----
-30

query I rowsort
SELECT + + 66 col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT + 49 + - + 44 / + 3 + + CASE + - COUNT( * ) WHEN + + 68 THEN NULL WHEN 16 + - ( + 54 ) THEN 82 END - - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT + 49 + - + 44 / + 3 + + CASE + - COUNT ( * ) WHEN + + 68 THEN NULL WHEN 16 + - ( + 54 ) THEN 82 END - - + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT + NULLIF ( + COUNT( * ), + - COUNT( * ) ) * + 5
----
5

skipif mysql # not compatible
query I rowsort label-2754
SELECT + NULLIF ( + COUNT ( * ), + - COUNT ( * ) ) * + 5
----
5

query I rowsort
SELECT + 45 + + 70
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2756
SELECT ALL 27 + SUM( - - 91 ) + - - CAST( COUNT( * ) AS SIGNED ) + 90 * - + CASE + COUNT( * ) WHEN + - 17 + 20 THEN - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL 27 + SUM ( - - 91 ) + - - CAST ( COUNT ( * ) AS INTEGER ) + 90 * - + CASE + COUNT ( * ) WHEN + - 17 + 20 THEN - COUNT ( * ) ELSE NULL END AS col0
----
NULL

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

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

query II rowsort
SELECT ALL + 12 * - - 91 * 77, 1 AS col2
----
84084
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT ALL COUNT( * ) + CASE AVG ( + + ( + 48 ) ) WHEN + 25 / - ( - 71 ) * - 43 THEN + 30 + - CASE + 89 WHEN + 16 THEN + + ( - 30 ) * - + 24 + + + 30 * 21 * + 8 END WHEN + ( + 53 ) THEN 16 ELSE + + 75 END
----
76

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL COUNT ( * ) + CASE AVG ( + + ( + 48 ) ) WHEN + 25 / - ( - 71 ) * - 43 THEN + 30 + - CASE + 89 WHEN + 16 THEN + + ( - 30 ) * - + 24 + + + 30 * 21 * + 8 END WHEN + ( + 53 ) THEN 16 ELSE + + 75 END
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT ALL 91 + + 27 * + - CAST( NULL AS SIGNED ) + + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL 91 + + 27 * + - CAST ( NULL AS INTEGER ) + + 36 AS col2
----
NULL

query II rowsort
SELECT 61, + 89 + - 75 AS col0
----
61
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT - NULLIF ( + 75, + - COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-2762
SELECT - NULLIF ( + 75, + - COUNT ( * ) )
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-2763
SELECT + COUNT( * ) + + 24 + + - 81, 78 * COUNT( * ) + COUNT( * ) AS col1
----
-56
79

skipif mysql # not compatible
query II rowsort label-2763
SELECT + COUNT ( * ) + + 24 + + - 81, 78 * COUNT ( * ) + COUNT ( * ) AS col1
----
-56
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2764
SELECT - 95, 25 + MIN( ALL - ( - - 66 ) ) col2
----
-95
-41

skipif mysql # not compatible
query II rowsort label-2764
SELECT - 95, 25 + MIN ( ALL - ( - - 66 ) ) col2
----
-95
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-2765
SELECT - MIN( - 66 ) + + + 9 AS col0, + 91 AS col1
----
75
91

skipif mysql # not compatible
query II rowsort label-2765
SELECT - MIN ( - 66 ) + + + 9 AS col0, + 91 AS col1
----
75
91

query II rowsort
SELECT ALL 51 AS col0, 20
----
51
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2767
SELECT - CASE - 36 WHEN - 95 + - 69 THEN - - NULLIF ( - 43, - - 33 / - CAST( NULL AS DECIMAL ) * 76 ) WHEN + 22 THEN + 28 * - CAST( NULL AS SIGNED ) + + 45 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2767
SELECT - CASE - 36 WHEN - 95 + - 69 THEN - - NULLIF ( - 43, - - 33 / - CAST ( NULL AS REAL ) * 76 ) WHEN + 22 THEN + 28 * - CAST ( NULL AS INTEGER ) + + 45 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2768
SELECT DISTINCT 56, MIN( + 80 ) + COUNT( * ) + + 59 AS col2
----
56
140

skipif mysql # not compatible
query II rowsort label-2768
SELECT DISTINCT 56, MIN ( + 80 ) + COUNT ( * ) + + 59 AS col2
----
56
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT + 61 + - CAST( - CAST( - - 62 AS SIGNED ) AS SIGNED ) * 29 AS col1
----
1859

skipif mysql # not compatible
query I rowsort label-2769
SELECT + 61 + - CAST ( - CAST ( - - 62 AS INTEGER ) AS INTEGER ) * 29 AS col1
----
1859

onlyif mysql # aggregate syntax: 
query II rowsort label-2770
SELECT DISTINCT 67 - - MAX( - 90 ), NULLIF ( 92, + 65 ) AS col2
----
-23
92

skipif mysql # not compatible
query II rowsort label-2770
SELECT DISTINCT 67 - - MAX ( - 90 ), NULLIF ( 92, + 65 ) AS col2
----
-23
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2771
SELECT - 37 + - - 84 + - 34 + - - 56 DIV ( - 14 ) DIV - 46 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2771
SELECT - 37 + - - 84 + - 34 + - - 56 / ( - 14 ) / - 46 AS col1
----
13

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

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

query I rowsort
SELECT ALL - 50 * + - 96 AS col1
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT - 13 + + 97 + - 68 * - COUNT( * ) AS col1
----
152

skipif mysql # not compatible
query I rowsort label-2774
SELECT - 13 + + 97 + - 68 * - COUNT ( * ) AS col1
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT ALL 19 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL 19 / - 49
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2777
SELECT DISTINCT - + 51 DIV + ( + 64 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT - + 51 / + ( + 64 ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-2778
SELECT + + 21 / 85
----
0

query I rowsort
SELECT + 34 * 66
----
2244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2780
SELECT 99 DIV + SUM( + - 18 ) + - 1 + - 11 + - 84
----
-101

skipif mysql # not compatible
query I rowsort label-2780
SELECT 99 / + SUM ( + - 18 ) + - 1 + - 11 + - 84
----
-101

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT + ( MAX( - 4 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2784
SELECT + ( MAX ( - 4 ) )
----
-4

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

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

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

query I rowsort
SELECT - COALESCE ( 25, + - 5 + + 6 * - ( 43 ) - + 5, + 76 )
----
-25

query I rowsort
SELECT - + 14 * + 31 * 54
----
-23436

onlyif mysql # DIV for integer division: 
query I rowsort label-2789
SELECT NULLIF ( + 9, - + 69 ) DIV - 19 * + 51 - ( + 76 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-2789
SELECT NULLIF ( + 9, - + 69 ) / - 19 * + 51 - ( + 76 ) AS col2
----
-76

query I rowsort
SELECT - 63 + - 23 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT + - MAX( 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2791
SELECT + - MAX ( 80 ) AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2792
SELECT DISTINCT - 59 / - + 12 * - 71 / + CASE WHEN + COALESCE ( - 99, - 77 ) NOT IN ( + - SUM( + + 18 ), + 98 * + + 82, ( COUNT( * ) ) * + 63, + - 82, + CAST( NULL AS SIGNED ) ) THEN NULL WHEN NOT NULL IS NOT NULL THEN NULL ELSE 40 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT - 59 / - + 12 * - 71 / + CASE WHEN + COALESCE ( - 99, - 77 ) NOT IN ( + - SUM ( + + 18 ), + 98 * + + 82, ( COUNT ( * ) ) * + 63, + - 82, + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN NOT NULL IS NOT NULL THEN NULL ELSE 40 END AS col2
----
NULL

query I rowsort
SELECT + 46 * ( CASE - 28 WHEN - 36 + + 40 THEN - 13 ELSE NULL END ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT + 79 * + - COUNT( * ) * - - COUNT( * ) - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-2795
SELECT + 79 * + - COUNT ( * ) * - - COUNT ( * ) - COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2796
SELECT DISTINCT - COUNT( * ) * - + 51 DIV - + 40 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT - COUNT ( * ) * - + 51 / - + 40 AS col0
----
-1

query I rowsort
SELECT DISTINCT 35 * + + ( + 65 ) + + + 9 AS col1
----
2284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2798
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), + 50 ) * 40 * + 55 / - NULLIF ( + - 34, 29 ) + + CAST( NULL AS SIGNED ) + + 28 - + + SUM( ALL + 45 ) * - - 1 / + + 36 + - CASE + 16 WHEN ( - CASE NULLIF ( + - 76, - + 61 ) WHEN - 26 THEN - 0 ELSE NULL END ) * + 75 + 14 / CAST( + + 90 AS SIGNED ) * + + 61 / - 68 THEN - 97 * - - COUNT( * ) * - + 29 + + COUNT( * ) ELSE NULL END * - 60 + + + 24 + - ( + + 58 ) / + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), + 50 ) * 40 * + 55 / - NULLIF ( + - 34, 29 ) + + CAST ( NULL AS INTEGER ) + + 28 - + + SUM ( ALL + 45 ) * - - 1 / + + 36 + - CASE + 16 WHEN ( - CASE NULLIF ( + - 76, - + 61 ) WHEN - 26 THEN - 0 ELSE NULL END ) * + 75 + 14 / CAST ( + + 90 AS INTEGER ) * + + 61 / - 68 THEN - 97 * - - COUNT ( * ) * - + 29 + + COUNT ( * ) ELSE NULL END * - 60 + + + 24 + - ( + + 58 ) / + + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ( + 30 ) * + + 24 + + COUNT( * )
----
721

skipif mysql # not compatible
query I rowsort label-2799
SELECT ( + 30 ) * + + 24 + + COUNT ( * )
----
721

onlyif mysql # aggregate syntax: 
query II rowsort label-2800
SELECT COUNT( 85 ), - COUNT( * ) col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-2800
SELECT COUNT ( 85 ), - COUNT ( * ) col1
----
1
-1

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

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

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

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

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

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

query I rowsort
SELECT ALL 78 * - + 32 AS col0
----
-2496

query I rowsort
SELECT DISTINCT - 98 * 25 + 93 AS col2
----
-2357

query I rowsort
SELECT + + 34 + 97 * + - 23 * 66 col0
----
-147212

onlyif mysql # aggregate syntax: 
query II rowsort label-2807
SELECT + MIN( ALL 75 ) col0, - 67 * - 10
----
75
670

skipif mysql # not compatible
query II rowsort label-2807
SELECT + MIN ( ALL 75 ) col0, - 67 * - 10
----
75
670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2808
SELECT - SUM( DISTINCT - + NULLIF ( CASE - 10 WHEN + 15 / - 74 + + + 28 + 97 THEN - 99 WHEN - 54 THEN + 41 ELSE NULL END, - CASE WHEN NOT ( NOT NULL IS NOT NULL ) THEN + - CAST( - - 59 AS SIGNED ) ELSE - - 35 END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT - SUM ( DISTINCT - + NULLIF ( CASE - 10 WHEN + 15 / - 74 + + + 28 + 97 THEN - 99 WHEN - 54 THEN + 41 ELSE NULL END, - CASE WHEN NOT ( NOT NULL IS NOT NULL ) THEN + - CAST ( - - 59 AS INTEGER ) ELSE - - 35 END ) ) AS col1
----
NULL

query II rowsort
SELECT - - 54 * + - 5, - ( + - ( 44 ) ) AS col0
----
-270
44

query I rowsort
SELECT DISTINCT 10 * + 60 * - 20
----
-12000

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT + SUM( DISTINCT + 83 ) - + 92 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-2811
SELECT + SUM ( DISTINCT + 83 ) - + 92 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT DISTINCT - 46 + SUM( - 5 )
----
-51

skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT - 46 + SUM ( - 5 )
----
-51

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2814
SELECT + 2 / + 23 + - + 24 * + 28 - CAST( NULL AS SIGNED ) + 66 * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-2814
SELECT + 2 / + 23 + - + 24 * + 28 - CAST ( NULL AS INTEGER ) + 66 * + 85
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT ALL + 94 DIV + - 77 + + 90 + - 99
----
-10

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL + 94 / + - 77 + + 90 + - 99
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2816
SELECT + 20 + + ( + 16 ) + NULLIF ( 50, - COUNT( * ) * - + COUNT( * ) + COUNT( * ) ) - - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / 4 / - + 33 + 79 - 73 * - 5 / + + ( + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT + 20 + + ( + 16 ) + NULLIF ( 50, - COUNT ( * ) * - + COUNT ( * ) + COUNT ( * ) ) - - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / 4 / - + 33 + 79 - 73 * - 5 / + + ( + 26 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2817
SELECT + - COUNT( * ) * + - ( + 84 ) + + + 47 DIV - ( 79 ) + + - COUNT( * ) DIV - MAX( ALL + 31 ) + - 90
----
-6

skipif mysql # not compatible
query I rowsort label-2817
SELECT + - COUNT ( * ) * + - ( + 84 ) + + + 47 / - ( 79 ) + + - COUNT ( * ) / - MAX ( ALL + 31 ) + - 90
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2818
SELECT ALL + - 81 * CAST( NULL AS SIGNED ) * + 10 + - COUNT( * ) + - + CASE 45 WHEN - + 71 THEN - + 26 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL + - 81 * CAST ( NULL AS INTEGER ) * + 10 + - COUNT ( * ) + - + CASE 45 WHEN - + 71 THEN - + 26 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 58 * 57 + + 65
----
3371

query I rowsort
SELECT + 17 - + NULLIF ( - 78, - 65 + + ( - 52 ) )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2821
SELECT ALL + - 6 + 72 + NULLIF ( + - CASE + 30 WHEN COUNT( * ) * COALESCE ( + - 36, + + 43 * + COUNT( + + COALESCE ( - 88, + 42 ) ), - CAST( NULL AS SIGNED ) ) THEN + 21 ELSE + MAX( + 9 ) DIV - 23 END, + + ( CAST( NULL AS SIGNED ) ) )
----
66

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + - 6 + 72 + NULLIF ( + - CASE + 30 WHEN COUNT ( * ) * COALESCE ( + - 36, + + 43 * + COUNT ( + + COALESCE ( - 88, + 42 ) ), - CAST ( NULL AS INTEGER ) ) THEN + 21 ELSE + MAX ( + 9 ) / - 23 END, + + ( CAST ( NULL AS INTEGER ) ) )
----
66

query I rowsort
SELECT - ( - 24 ) AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT - 83 + CAST( + 12 AS SIGNED ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-2823
SELECT - 83 + CAST ( + 12 AS INTEGER ) AS col1
----
-71

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2825
SELECT ALL + 84 + COUNT( DISTINCT - - 11 ) AS col2, 86 + COUNT( * )
----
85
87

skipif mysql # not compatible
query II rowsort label-2825
SELECT ALL + 84 + COUNT ( DISTINCT - - 11 ) AS col2, 86 + COUNT ( * )
----
85
87

query I rowsort
SELECT 57 * 80 + - 29
----
4531

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ALL - NULLIF ( - COUNT( * ), - + 28 ) - + COUNT( * ) * + + COUNT( * ) * 49
----
-48

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL - NULLIF ( - COUNT ( * ), - + 28 ) - + COUNT ( * ) * + + COUNT ( * ) * 49
----
-48

query I rowsort
SELECT 81 * + 18
----
1458

onlyif mysql # aggregate syntax: 
query II rowsort label-2829
SELECT COUNT( * ) + - - ( 47 ) * + ( - - 83 ) col2, - 44
----
3902
-44

skipif mysql # not compatible
query II rowsort label-2829
SELECT COUNT ( * ) + - - ( 47 ) * + ( - - 83 ) col2, - 44
----
3902
-44

query I rowsort
SELECT 7 * - - 25 AS col1
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2831
SELECT DISTINCT - ( - 35 ) * NULLIF ( + - 47, - COALESCE ( + MIN( 40 ), COUNT( 56 ), + CAST( NULL AS SIGNED ) + + CAST( - CASE + 72 WHEN COUNT( * ) * COUNT( * ) THEN NULL ELSE + 87 + - 0 - + 65 END AS SIGNED ) ) )
----
-1645

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT - ( - 35 ) * NULLIF ( + - 47, - COALESCE ( + MIN ( 40 ), COUNT ( 56 ), + CAST ( NULL AS INTEGER ) + + CAST ( - CASE + 72 WHEN COUNT ( * ) * COUNT ( * ) THEN NULL ELSE + 87 + - 0 - + 65 END AS INTEGER ) ) )
----
-1645

onlyif mysql # DIV for integer division: 
query I rowsort label-2832
SELECT ALL - 95 DIV + 62
----
-1

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL - 95 / + 62
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2833
SELECT 26 DIV 6 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2833
SELECT 26 / 6 AS col1
----
4

query I rowsort
SELECT ALL NULLIF ( 0, 16 ) * ( + - 76 )
----
0

query I rowsort
SELECT 32 + 35
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT DISTINCT + MIN( DISTINCT 21 ) * - + 56 + - 66 AS col1
----
-1242

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT + MIN ( DISTINCT 21 ) * - + 56 + - 66 AS col1
----
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT 42 + - 55 - - + MAX( - 5 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-2837
SELECT 42 + - 55 - - + MAX ( - 5 ) AS col1
----
-18

query I rowsort
SELECT ALL + ( + - 96 ) * + + 86
----
-8256

query I rowsort
SELECT 25 - 8 - 34 * + + 31 col2
----
-1037

query I rowsort
SELECT 61 * - 68 * 35
----
-145180

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

query I rowsort
SELECT 51 * 16 AS col1
----
816

query I rowsort
SELECT ALL 18 + - 58 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT CASE - 74 WHEN MAX( - 21 ) * + 23 THEN NULL WHEN 49 / 11 + - 90 THEN - 67 END + ( - 87 ) * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT CASE - 74 WHEN MAX ( - 21 ) * + 23 THEN NULL WHEN 49 / 11 + - 90 THEN - 67 END + ( - 87 ) * - 99
----
NULL

query I rowsort
SELECT ALL 30 + 17
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT 76 * COUNT( ALL + 93 * - 76 )
----
76

skipif mysql # not compatible
query I rowsort label-2846
SELECT 76 * COUNT ( ALL + 93 * - 76 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2847
SELECT CAST( + 79 AS SIGNED ) + + 89 * + 74 AS col2
----
6665

skipif mysql # not compatible
query I rowsort label-2847
SELECT CAST ( + 79 AS INTEGER ) + + 89 * + 74 AS col2
----
6665

onlyif mysql # DIV for integer division: 
query I rowsort label-2848
SELECT 52 DIV + 81 + - 39 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-2848
SELECT 52 / + 81 + - 39 AS col2
----
-39

query I rowsort
SELECT ALL 52 + 1 AS col2
----
53

query I rowsort
SELECT ALL 22 * 8
----
176

query I rowsort
SELECT DISTINCT 81 + 60 * 82 col0
----
5001

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT DISTINCT - MIN( DISTINCT - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT - MIN ( DISTINCT - 34 )
----
34

query I rowsort
SELECT ALL 16 - + 74
----
-58

query I rowsort
SELECT 17 * 42
----
714

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

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT COUNT ( * ) / + MIN ( ALL - 44 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2856
SELECT 27 * + CAST( + 9 AS SIGNED )
----
243

skipif mysql # not compatible
query I rowsort label-2856
SELECT 27 * + CAST ( + 9 AS INTEGER )
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT ALL + SUM( - 68 ) * 29 AS col0
----
-1972

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL + SUM ( - 68 ) * 29 AS col0
----
-1972

query I rowsort
SELECT ( + 38 ) + - 74
----
-36

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2861
SELECT DISTINCT COUNT( 72 ) DIV COUNT( * ) AS col2
----
1

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

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

query I rowsort
SELECT ALL - 90 * - ( 21 ) AS col2
----
1890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2864
SELECT DISTINCT - CASE 83 WHEN 82 THEN NULL ELSE + 98 + + CASE - 97 WHEN 14 + - 28 THEN NULL WHEN 58 THEN - ( + COUNT( * ) ) ELSE + CASE 44 WHEN 56 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 30 + - 3 WHEN - 73 THEN NULL WHEN 40 * 34 THEN NULL END * 6 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT - CASE 83 WHEN 82 THEN NULL ELSE + 98 + + CASE - 97 WHEN 14 + - 28 THEN NULL WHEN 58 THEN - ( + COUNT ( * ) ) ELSE + CASE 44 WHEN 56 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 30 + - 3 WHEN - 73 THEN NULL WHEN 40 * 34 THEN NULL END * 6 END END
----
NULL

query I rowsort
SELECT 45 + - 37 * 56
----
-2027

query I rowsort
SELECT - 76 * 9 + + 7 col1
----
-677

query I rowsort
SELECT 32 * - 46 col1
----
-1472

query I rowsort
SELECT 67 * + 89 col2
----
5963

query I rowsort
SELECT ALL 60 + 12
----
72

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

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

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

query I rowsort
SELECT DISTINCT + 21 + 18 AS col1
----
39

query I rowsort
SELECT ALL - CASE - 64 WHEN AVG ( - ( ( 10 ) ) ) + + 9 THEN NULL WHEN 2 THEN 83 * + NULLIF ( 35, - 41 ) ELSE 6 + 29 END + 77 * - 82
----
-6349

query I rowsort
SELECT - 40 + + 78 * - 97
----
-7606

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2876
SELECT + 49 DIV - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2876
SELECT + 49 / - 77 AS col1
----
0

query I rowsort
SELECT - 89 + 10
----
-79

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

skipif mysql # not compatible
query I rowsort label-2878
SELECT - - COUNT ( + CAST ( NULL AS REAL ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT + CAST( MIN( 42 ) AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-2879
SELECT + CAST ( MIN ( 42 ) AS INTEGER )
----
42

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

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL - + COUNT ( * ) + NULLIF ( ( - ( + 23 ) ), COUNT ( * ) )
----
-24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2881
SELECT - CAST( NULL AS SIGNED ) + CAST( 82 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2881
SELECT - CAST ( NULL AS INTEGER ) + CAST ( 82 AS REAL )
----
NULL

query I rowsort
SELECT - + 32 * + 90
----
-2880

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

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

query I rowsort
SELECT - 16 + 81
----
65

query I rowsort
SELECT ALL 55 + + 30 AS col2
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT - - 24 - - CASE COUNT( * ) WHEN - CASE 54 WHEN + COUNT( * ) THEN - COUNT( DISTINCT 74 ) END THEN NULL ELSE - ( + 94 ) END AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-2887
SELECT - - 24 - - CASE COUNT ( * ) WHEN - CASE 54 WHEN + COUNT ( * ) THEN - COUNT ( DISTINCT 74 ) END THEN NULL ELSE - ( + 94 ) END AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT DISTINCT + + 85 - + MAX( ALL 70 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT + + 85 - + MAX ( ALL 70 ) AS col0
----
15

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

query I rowsort
SELECT + - 75 + - 48 AS col0
----
-123

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT - + 89 + - COUNT( * ) * + 11
----
-100

skipif mysql # not compatible
query I rowsort label-2892
SELECT - + 89 + - COUNT ( * ) * + 11
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2893
SELECT - - 31 * + CAST( + 9 * + 33 AS SIGNED )
----
9207

skipif mysql # not compatible
query I rowsort label-2893
SELECT - - 31 * + CAST ( + 9 * + 33 AS INTEGER )
----
9207

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

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

query I rowsort
SELECT + 80 - 87 col1
----
-7

query I rowsort
SELECT 58 * - 72 - 35
----
-4211

query I rowsort
SELECT ALL + 9 * 48 - 92 AS col2
----
340

query I rowsort
SELECT DISTINCT ( + + 69 ) * - 10 AS col2
----
-690

query I rowsort
SELECT + 27 * + 99 * + 32 AS col2
----
85536

onlyif mysql # DIV for integer division: 
query I rowsort label-2900
SELECT + 45 DIV 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2900
SELECT + 45 / 34 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT DISTINCT + MIN( ( - 9 ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT + MIN ( ( - 9 ) ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT DISTINCT CASE + 27 WHEN - 90 * 94 - - 53 THEN + 23 WHEN MAX( DISTINCT - 32 ) * - 55 THEN - COUNT( * ) ELSE 75 + - 9 END * 3 AS col0
----
198

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT CASE + 27 WHEN - 90 * 94 - - 53 THEN + 23 WHEN MAX ( DISTINCT - 32 ) * - 55 THEN - COUNT ( * ) ELSE 75 + - 9 END * 3 AS col0
----
198

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

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL 91 / COUNT ( * )
----
91

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

skipif mysql # not compatible
query I rowsort label-2904
SELECT + COUNT ( * ) / - - 79
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2905
SELECT COUNT( * ) * - - CAST( - ( ( NULLIF ( 60, + 68 / - 50 + ( - 91 ) ) ) ) AS SIGNED ) + + 93 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2905
SELECT COUNT ( * ) * - - CAST ( - ( ( NULLIF ( 60, + 68 / - 50 + ( - 91 ) ) ) ) AS INTEGER ) + + 93 AS col2
----
33

query I rowsort
SELECT + 91 * 5 AS col1
----
455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2907
SELECT ALL + MIN( ALL 24 ) * - 82 + NULLIF ( + 70, + 51 / - CAST( NULL AS SIGNED ) + 34 ) AS col1
----
-1898

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL + MIN ( ALL 24 ) * - 82 + NULLIF ( + 70, + 51 / - CAST ( NULL AS INTEGER ) + 34 ) AS col1
----
-1898

query I rowsort
SELECT + 61 * - + 19
----
-1159

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT DISTINCT + 42 * MIN( ALL 70 )
----
2940

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT + 42 * MIN ( ALL 70 )
----
2940

query I rowsort
SELECT DISTINCT + 73 * + 46 + - 86 AS col2
----
3272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2913
SELECT ALL + CAST( - COUNT( DISTINCT + 53 ) AS SIGNED ) * + 8 col2
----
-8

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + CAST ( - COUNT ( DISTINCT + 53 ) AS INTEGER ) * + 8 col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT DISTINCT + MIN( ALL 88 ) + COALESCE ( COUNT( * ), + MAX( ALL 84 ) ) * + 88 AS col2
----
176

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + MIN ( ALL 88 ) + COALESCE ( COUNT ( * ), + MAX ( ALL 84 ) ) * + 88 AS col2
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT - + CASE 30 WHEN COUNT( * ) + - 61 THEN + ( 15 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT - + CASE 30 WHEN COUNT ( * ) + - 61 THEN + ( 15 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT - 34 + + COUNT( * ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2916
SELECT - 34 + + COUNT ( * ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT ALL NULLIF ( 14, + 91 * + MAX( DISTINCT 5 ) ) + + COALESCE ( 48, + 47, - COUNT( * ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL NULLIF ( 14, + 91 * + MAX ( DISTINCT 5 ) ) + + COALESCE ( 48, + 47, - COUNT ( * ) ) AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2918
SELECT + 87 * - ( - COUNT( * ) ) / CAST( NULL AS SIGNED ) + 63 / - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT + 87 * - ( - COUNT ( * ) ) / CAST ( NULL AS INTEGER ) + 63 / - 68
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2919
SELECT + SUM( 76 ) - 88 DIV 47 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-2919
SELECT + SUM ( 76 ) - 88 / 47 AS col1
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT - COUNT( * ) + - 17 * 39 AS col0
----
-664

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT - COUNT ( * ) + - 17 * 39 AS col0
----
-664

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT - - 79 + + 36 DIV + 39 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2922
SELECT - - 79 + + 36 / + 39 AS col0
----
79

query I rowsort
SELECT DISTINCT - 73 - + + 46
----
-119

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2925
SELECT ALL - + CAST( - COUNT( + 12 ) AS SIGNED ) - 11 * 31 AS col1
----
-340

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL - + CAST ( - COUNT ( + 12 ) AS INTEGER ) - 11 * 31 AS col1
----
-340

query I rowsort
SELECT DISTINCT - 82 * - 7 + ( 88 ) * 22 AS col1
----
2510

query I rowsort
SELECT - + 60 * + 64
----
-3840

query I rowsort
SELECT ALL - - 20 * + - 49
----
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT + - CASE - + MIN( DISTINCT 22 ) WHEN SUM( ALL 48 ) * + 52 THEN + MIN( + 81 ) ELSE NULL END * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT + - CASE - + MIN ( DISTINCT 22 ) WHEN SUM ( ALL 48 ) * + 52 THEN + MIN ( + 81 ) ELSE NULL END * 67
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2930
SELECT - 4 * ( + - CAST( 68 AS SIGNED ) ) * 21 col2
----
5712

skipif mysql # not compatible
query I rowsort label-2930
SELECT - 4 * ( + - CAST ( 68 AS INTEGER ) ) * 21 col2
----
5712

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2932
SELECT ALL + 65 AS col0, - 88 + + - ( - 52 ) + 31 * - NULLIF ( 57 * COALESCE ( + 58, - 76 DIV 13, + 88 ), ( - 75 ) + 84 ) * CASE - 70 + + NULLIF ( COUNT( + 38 ) + + 51, - 54 DIV + COUNT( * ) ) * + 65 WHEN ( + MIN( 12 ) ) + 37 THEN NULL ELSE 22 END AS col1
----
65
-2254728

skipif mysql # not compatible
query II rowsort label-2932
SELECT ALL + 65 AS col0, - 88 + + - ( - 52 ) + 31 * - NULLIF ( 57 * COALESCE ( + 58, - 76 / 13, + 88 ), ( - 75 ) + 84 ) * CASE - 70 + + NULLIF ( COUNT ( + 38 ) + + 51, - 54 / + COUNT ( * ) ) * + 65 WHEN ( + MIN ( 12 ) ) + 37 THEN NULL ELSE 22 END AS col1
----
65
-2254728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2933
SELECT CAST( CASE - + 11 WHEN - 56 THEN + 1 END AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2933
SELECT CAST ( CASE - + 11 WHEN - 56 THEN + 1 END AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 68 * + ( ( 97 ) )
----
-6596

query I rowsort
SELECT - 25 * 24 - - 22 * 59
----
698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2936
SELECT CAST( - MAX( - 74 ) AS SIGNED ) col0
----
74

skipif mysql # not compatible
query I rowsort label-2936
SELECT CAST ( - MAX ( - 74 ) AS INTEGER ) col0
----
74

query I rowsort
SELECT + ( NULLIF ( + 16, - ( 75 ) * 20 ) ) AS col1
----
16

query I rowsort
SELECT - 61 + + 15
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2939
SELECT - COUNT( * ) + ( + NULLIF ( + 33, - CAST( NULL AS SIGNED ) ) ) + 15
----
47

skipif mysql # not compatible
query I rowsort label-2939
SELECT - COUNT ( * ) + ( + NULLIF ( + 33, - CAST ( NULL AS INTEGER ) ) ) + 15
----
47

query I rowsort
SELECT + 43 * - 85
----
-3655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2941
SELECT ALL + COALESCE ( - - ( + + 21 ), 18, + 23 + - COUNT( * ), 86 DIV + COUNT( * ) ) * 46 + COALESCE ( ( 75 ), + 95 ) AS col2
----
1041

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL + COALESCE ( - - ( + + 21 ), 18, + 23 + - COUNT ( * ), 86 / + COUNT ( * ) ) * 46 + COALESCE ( ( 75 ), + 95 ) AS col2
----
1041

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT DISTINCT 99 * - + COUNT( * ) + - SUM( 83 )
----
-182

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT 99 * - + COUNT ( * ) + - SUM ( 83 )
----
-182

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

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL 5 * NULLIF ( 44, - 35 ) + CAST ( NULL AS INTEGER ) * 20
----
NULL

query I rowsort
SELECT ALL 74 * - 74 + 61 AS col1
----
-5415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT 64 * - 55 - - ( NULLIF ( 51, CAST( - 94 AS SIGNED ) ) ) AS col0
----
-3469

skipif mysql # not compatible
query I rowsort label-2945
SELECT 64 * - 55 - - ( NULLIF ( 51, CAST ( - 94 AS INTEGER ) ) ) AS col0
----
-3469

onlyif mysql # DIV for integer division: 
query II rowsort label-2946
SELECT DISTINCT + 99 col1, 39 DIV + 14
----
99
2

skipif mysql # not compatible
query II rowsort label-2946
SELECT DISTINCT + 99 col1, 39 / + 14
----
99
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT + CASE 88 WHEN + 84 THEN + 71 * 47 END - - MAX( 12 + 1 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT + CASE 88 WHEN + 84 THEN + 71 * 47 END - - MAX ( 12 + 1 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT COUNT( * ) + + + 91
----
92

skipif mysql # not compatible
query I rowsort label-2948
SELECT COUNT ( * ) + + + 91
----
92

query I rowsort
SELECT ALL 92 + + 92 + + 78 * 38
----
3148

query I rowsort
SELECT - 62 * + 61 - - NULLIF ( + 92, 66 + 88 ) AS col0
----
-3690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2951
SELECT - + COALESCE ( + 5, 14 DIV 44 + COUNT( * ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-2951
SELECT - + COALESCE ( + 5, 14 / 44 + COUNT ( * ) ) AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2952
SELECT 47 + + 52 DIV 57 + + ( SUM( 33 ) ) col2
----
80

skipif mysql # not compatible
query I rowsort label-2952
SELECT 47 + + 52 / 57 + + ( SUM ( 33 ) ) col2
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2953
SELECT ALL - 34, COUNT( * ) AS col2
----
-34
1

skipif mysql # not compatible
query II rowsort label-2953
SELECT ALL - 34, COUNT ( * ) AS col2
----
-34
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2954
SELECT - + 78 AS col0, + COUNT( * ) / CASE 19 WHEN + 77 THEN - 76 * + COUNT( * ) + + 55 ELSE NULL END AS col2
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-2954
SELECT - + 78 AS col0, + COUNT ( * ) / CASE 19 WHEN + 77 THEN - 76 * + COUNT ( * ) + + 55 ELSE NULL END AS col2
----
-78
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2955
SELECT - 81 * 15 + COUNT( * ) + CAST( NULL AS SIGNED ) - - 85 * - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2955
SELECT - 81 * 15 + COUNT ( * ) + CAST ( NULL AS INTEGER ) - - 85 * - 77 AS col2
----
NULL

query I rowsort
SELECT ALL + 5 * + + 97 AS col1
----
485

query I rowsort
SELECT ( + + 52 ) * + 19
----
988

query I rowsort
SELECT ALL - 88 * + 33 AS col0
----
-2904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2959
SELECT DISTINCT SUM( + - 44 ) DIV 18 * - 56 - + 12 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT SUM ( + - 44 ) / 18 * - 56 - + 12 AS col0
----
100

query I rowsort
SELECT ALL + + 60 * - 34 AS col1
----
-2040

query I rowsort
SELECT DISTINCT - ( - 85 )
----
85

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2964
SELECT - SUM( DISTINCT 10 ) * - 37 * CAST( + 64 AS SIGNED ) AS col2
----
23680

skipif mysql # not compatible
query I rowsort label-2964
SELECT - SUM ( DISTINCT 10 ) * - 37 * CAST ( + 64 AS INTEGER ) AS col2
----
23680

query I rowsort
SELECT - - 96 col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT NULLIF ( MAX( + 94 ), 41 ) col2
----
94

skipif mysql # not compatible
query I rowsort label-2966
SELECT NULLIF ( MAX ( + 94 ), 41 ) col2
----
94

query I rowsort
SELECT + 0 + - 41 * 3 * 70
----
-8610

query I rowsort
SELECT CASE 97 WHEN + - 3 THEN NULL WHEN + 62 THEN - 8 * + 64 END AS col1
----
NULL

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

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

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

query I rowsort
SELECT ( 20 ) + - 82 AS col2
----
-62

query I rowsort
SELECT + 28 + - - 53
----
81

query I rowsort
SELECT 17 + - 78 + + 22 AS col1
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT 20 DIV 44 * + + 13 col0
----
0

skipif mysql # not compatible
query I rowsort label-2974
SELECT 20 / 44 * + + 13 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL - 31 + + + ( - CASE + - 68 WHEN - 38 * - 50 THEN 59 * 12 + 70 * - 77 END ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL - 31 + + + ( - CASE + - 68 WHEN - 38 * - 50 THEN 59 * 12 + 70 * - 77 END ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2976
SELECT DISTINCT - COUNT( * ) * + COALESCE ( + ( + CAST( NULL AS SIGNED ) ), COUNT( ALL - 97 ) * 1 + 13 * + 65 )
----
-846

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT - COUNT ( * ) * + COALESCE ( + ( + CAST ( NULL AS INTEGER ) ), COUNT ( ALL - 97 ) * 1 + 13 * + 65 )
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT DISTINCT - COUNT( * ) + ( + + 23 ) * + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT - COUNT ( * ) + ( + + 23 ) * + COUNT ( * )
----
22

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

skipif mysql # not compatible
query I rowsort label-2978
SELECT COUNT ( * ) / - - MAX ( ALL - + 83 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT 45 + + + 30 * - + CASE MIN( DISTINCT 89 ) WHEN 31 THEN - 25 + - 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT 45 + + + 30 * - + CASE MIN ( DISTINCT 89 ) WHEN 31 THEN - 25 + - 45 ELSE NULL END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2981
SELECT 16 + - - ( - - 40 ) + - - ( 41 ) DIV - 63 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-2981
SELECT 16 + - - ( - - 40 ) + - - ( 41 ) / - 63 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT MIN( ( 99 ) ) * - ( - 81 ) - + NULLIF ( 12, - 99 + - 27 * + 54 ) AS col0
----
8007

skipif mysql # not compatible
query I rowsort label-2982
SELECT MIN ( ( 99 ) ) * - ( - 81 ) - + NULLIF ( 12, - 99 + - 27 * + 54 ) AS col0
----
8007

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT - 58 * + 18 + + - 42 * - + 87 * COUNT( * )
----
2610

skipif mysql # not compatible
query I rowsort label-2983
SELECT - 58 * + 18 + + - 42 * - + 87 * COUNT ( * )
----
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT SUM( DISTINCT + + 20 ) - + + 85 - - - 23 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-2984
SELECT SUM ( DISTINCT + + 20 ) - + + 85 - - - 23 AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT ALL - CAST( + - 7 AS SIGNED ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL - CAST ( + - 7 AS INTEGER ) AS col2
----
7

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

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL - 5 + - COUNT ( * ) AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2987
SELECT 35 DIV COUNT( DISTINCT + - 63 ) * - 6
----
-210

skipif mysql # not compatible
query I rowsort label-2987
SELECT 35 / COUNT ( DISTINCT + - 63 ) * - 6
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT COUNT( * ) * + + 71 + + 17 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2988
SELECT COUNT ( * ) * + + 71 + + 17 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT DISTINCT - 87 + + + 96 - - 70 * - + 31 + + 25 * COUNT( * )
----
-2136

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT - 87 + + + 96 - - 70 * - + 31 + + 25 * COUNT ( * )
----
-2136

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL - MAX( DISTINCT + 11 ) * - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL - MAX ( DISTINCT + 11 ) * - COUNT ( * )
----
11

query II rowsort
SELECT ALL 2 + - 77, - 28 - + 1 AS col2
----
-75
-29

query I rowsort
SELECT 61 + 77 - + + 37 AS col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT DISTINCT + 87 + + + MIN( 1 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT + 87 + + + MIN ( 1 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT SUM( + 60 ) + + + 78
----
138

skipif mysql # not compatible
query I rowsort label-2994
SELECT SUM ( + 60 ) + + + 78
----
138

query I rowsort
SELECT + 60 * - 57 col2
----
-3420

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

query I rowsort
SELECT DISTINCT + 76 * + 31 AS col1
----
2356

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL - + MIN( 43 ) * - CASE 43 WHEN 60 THEN - 2 + 91 * - 16 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL - + MIN ( 43 ) * - CASE 43 WHEN 60 THEN - 2 + 91 * - 16 END AS col1
----
NULL

query I rowsort
SELECT ALL + 59 - - 40 * + - 85 + - ( + 98 )
----
-3439

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT 39 * + - SUM( ALL 39 ) * 3 - 2
----
-4565

skipif mysql # not compatible
query I rowsort label-3000
SELECT 39 * + - SUM ( ALL 39 ) * 3 - 2
----
-4565

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL - NULLIF ( 10, + COUNT( ALL 85 ) ) * + 37
----
-370

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL - NULLIF ( 10, + COUNT ( ALL 85 ) ) * + 37
----
-370

query I rowsort
SELECT 37 * - 41 + 51 + + 98 + 91
----
-1277

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT DISTINCT MIN( - 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT MIN ( - 92 ) AS col0
----
-92

query I rowsort
SELECT + 18 + + 77 - + - 73 * - - 95 * - 76
----
-526965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3005
SELECT + 32 + + - COUNT( * ) + - 92 * + - CAST( 54 AS SIGNED ) + 17
----
5016

skipif mysql # not compatible
query I rowsort label-3005
SELECT + 32 + + - COUNT ( * ) + - 92 * + - CAST ( 54 AS INTEGER ) + 17
----
5016

query I rowsort
SELECT - - COALESCE ( + COALESCE ( + NULLIF ( + + 69, - 52 + + 14 ), 88 ), 95 + 2 ) AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3007
SELECT - CASE 92 WHEN + 26 * + 64 THEN + ( 60 ) - - CAST( NULL AS SIGNED ) END * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT - CASE 92 WHEN + 26 * + 64 THEN + ( 60 ) - - CAST ( NULL AS INTEGER ) END * 38
----
NULL

query I rowsort
SELECT + COALESCE ( 74, 88, + + 45 + 86 )
----
74

query I rowsort
SELECT 39 + + 75 + - 99 * - 58 + 94 AS col0
----
5950

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT ALL - 32 DIV + + 46 * + - 42 * + + ( 48 )
----
0

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - 32 / + + 46 * + - 42 * + + ( 48 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT + 98 * CASE 83 WHEN - - 45 THEN + 16 * 0 + 37 * + ( + 82 ) WHEN COUNT( * ) THEN MAX( ALL - 61 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT + 98 * CASE 83 WHEN - - 45 THEN + 16 * 0 + 37 * + ( + 82 ) WHEN COUNT ( * ) THEN MAX ( ALL - 61 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT ALL 51 * - ( + - MAX( ALL - 74 ) )
----
-3774

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL 51 * - ( + - MAX ( ALL - 74 ) )
----
-3774

query I rowsort
SELECT ALL 86 * - - 99
----
8514

query I rowsort
SELECT ALL - 36 + + 82 + + 3
----
49

query I rowsort
SELECT 36 * + + 28 AS col0
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT ALL 4 + 18 + ( - COUNT( * ) ) * + 67 + - 58 * 30
----
-1785

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL 4 + 18 + ( - COUNT ( * ) ) * + 67 + - 58 * 30
----
-1785

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3017
SELECT 7 - + - 77 - 60 + - COALESCE ( + 0, + 98 * 58, - 82, - MAX( DISTINCT + 30 ) * 32 + - 1 DIV 51 ) + - 94 * - 20 AS col0
----
1904

skipif mysql # not compatible
query I rowsort label-3017
SELECT 7 - + - 77 - 60 + - COALESCE ( + 0, + 98 * 58, - 82, - MAX ( DISTINCT + 30 ) * 32 + - 1 / 51 ) + - 94 * - 20 AS col0
----
1904

query I rowsort
SELECT ALL ( NULLIF ( + - 45, + - 44 + + CASE + 35 WHEN 63 + 10 THEN NULL ELSE + 48 / AVG ( 42 ) END ) ) + - 38 AS col0
----
-83

query I rowsort
SELECT 26 * - ( - 10 )
----
260

query I rowsort
SELECT 61 * + 74
----
4514

query II rowsort
SELECT ALL 33 AS col0, - 63 + + 46 + + 11
----
33
-6

query I rowsort
SELECT DISTINCT - 18 + 19 + - 9 + 83
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT CASE + 30 WHEN + ( + 34 ) THEN COUNT( * ) / + 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT CASE + 30 WHEN + ( + 34 ) THEN COUNT ( * ) / + 20 END
----
NULL

query I rowsort
SELECT + NULLIF ( + 16, - - 36 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL 22 * + 65 * 18 + - 23 + - MIN( 12 ) - 36
----
25669

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL 22 * + 65 * 18 + - 23 + - MIN ( 12 ) - 36
----
25669

query I rowsort
SELECT 51 * + 55 AS col2
----
2805

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT CASE 66 WHEN + 20 THEN - COALESCE ( - 32, 54 * - 93 + + 75 ) WHEN ( + 39 ) THEN + 34 * 89 WHEN + 61 * 80 + 80 / - 37 THEN NULL END * - COUNT( * ) + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT CASE 66 WHEN + 20 THEN - COALESCE ( - 32, 54 * - 93 + + 75 ) WHEN ( + 39 ) THEN + 34 * 89 WHEN + 61 * 80 + 80 / - 37 THEN NULL END * - COUNT ( * ) + 45
----
NULL

query I rowsort
SELECT ALL + 74 * + 91
----
6734

query I rowsort
SELECT ALL 59 * 51 - 37
----
2972

query I rowsort
SELECT + 96 * + + 81
----
7776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3032
SELECT - NULLIF ( - MAX( ALL - 2 ), + NULLIF ( - MIN( DISTINCT + 43 ), 40 * + MIN( + CAST( NULL AS SIGNED ) ) ) + - 30 ) * + 64 AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-3032
SELECT - NULLIF ( - MAX ( ALL - 2 ), + NULLIF ( - MIN ( DISTINCT + 43 ), 40 * + MIN ( + CAST ( NULL AS INTEGER ) ) ) + - 30 ) * + 64 AS col2
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-3033
SELECT ALL 65 * + 86 - - 43 + + - 72 DIV 87 DIV + 75 + + 0 DIV - 61 AS col0
----
5633

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL 65 * + 86 - - 43 + + - 72 / 87 / + 75 + + 0 / - 61 AS col0
----
5633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3034
SELECT COUNT( * ) * + - 86 + CAST( - + COUNT( DISTINCT - + 49 ) AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3034
SELECT COUNT ( * ) * + - 86 + CAST ( - + COUNT ( DISTINCT - + 49 ) AS INTEGER ) AS col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3035
SELECT - COUNT( * ) + 13 + - 95 + COALESCE ( 32, + 45 DIV 34 + 82, - 90 ) DIV + COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3035
SELECT - COUNT ( * ) + 13 + - 95 + COALESCE ( 32, + 45 / 34 + 82, - 90 ) / + COUNT ( * ) AS col0
----
-51

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

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

query I rowsort
SELECT ALL + COALESCE ( 27, - 18 ) col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3038
SELECT - 53 * + COUNT( - 18 ) - - 36 + 8 + 42 DIV 27 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3038
SELECT - 53 * + COUNT ( - 18 ) - - 36 + 8 + 42 / 27 AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT - + 74 + CASE - + 53 WHEN CAST( + 83 AS SIGNED ) * 42 THEN NULL ELSE 76 END
----
2

skipif mysql # not compatible
query I rowsort label-3039
SELECT - + 74 + CASE - + 53 WHEN CAST ( + 83 AS INTEGER ) * 42 THEN NULL ELSE 76 END
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3040
SELECT ALL + 88 DIV 50 * SUM( - - 75 ) * - 6 + COUNT( * ) col1
----
-449

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL + 88 / 50 * SUM ( - - 75 ) * - 6 + COUNT ( * ) col1
----
-449

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT DISTINCT + + NULLIF ( + - ( - - 91 ), + MAX( DISTINCT + 49 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT + + NULLIF ( + - ( - - 91 ), + MAX ( DISTINCT + 49 ) )
----
-91

query I rowsort
SELECT ALL + + 33 col2
----
33

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

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

query I rowsort
SELECT ( + + 55 ) col1
----
55

query I rowsort
SELECT ALL + + 90 AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT 47 * MAX( ALL + + ( - 82 ) ) + + - 84 + - 81 + + 83 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT 47 * MAX ( ALL + + ( - 82 ) ) + + - 84 + - 81 + + 83 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3047
SELECT + - 42 * 38 - - 92 DIV - 23 AS col1
----
-1600

skipif mysql # not compatible
query I rowsort label-3047
SELECT + - 42 * 38 - - 92 / - 23 AS col1
----
-1600

query I rowsort
SELECT - + ( 56 ) + + 59 + - 55 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT - MAX( 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3049
SELECT - MAX ( 64 ) AS col0
----
-64

query II rowsort
SELECT ALL 39 col1, 51 AS col1
----
39
51

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

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

query I rowsort
SELECT ALL + 70 + 43
----
113

query I rowsort
SELECT DISTINCT + 59 * - + 13
----
-767

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT DISTINCT + COALESCE ( + 55, + 27 * + + COUNT( * ) * + 93 ) + - NULLIF ( + 11, + 30 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT + COALESCE ( + 55, + 27 * + + COUNT ( * ) * + 93 ) + - NULLIF ( + 11, + 30 ) AS col2
----
44

query I rowsort
SELECT ALL + 21 + - 48 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + + 15 * NULLIF ( - - 46, - 10 - COUNT( ALL 24 ) * 22 )
----
690

skipif mysql # not compatible
query I rowsort label-3056
SELECT + + 15 * NULLIF ( - - 46, - 10 - COUNT ( ALL 24 ) * 22 )
----
690

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3058
SELECT - 86 + - CASE + 66 WHEN - COALESCE ( - 93, - 93 * 63 ) * - 94 + 43 * - 3 THEN ( + CAST( NULL AS DECIMAL ) ) * + 3 WHEN 25 + 14 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3058
SELECT - 86 + - CASE + 66 WHEN - COALESCE ( - 93, - 93 * 63 ) * - 94 + 43 * - 3 THEN ( + CAST ( NULL AS REAL ) ) * + 3 WHEN 25 + 14 THEN NULL END
----
NULL

query I rowsort
SELECT + 92 - + - 12
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3060
SELECT DISTINCT 23 col0, - 86 * + ( - + ( + 38 ) ) DIV + ( COUNT( * ) ) + 66 * 51 AS col2
----
23
6634

skipif mysql # not compatible
query II rowsort label-3060
SELECT DISTINCT 23 col0, - 86 * + ( - + ( + 38 ) ) / + ( COUNT ( * ) ) + 66 * 51 AS col2
----
23
6634

query I rowsort
SELECT - 62 + 25 + - + 96
----
-133

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

query I rowsort
SELECT ALL 50 + + 63 + - 97 + - 7 * 58 AS col1
----
-390

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT ALL 26 + + COUNT( * ) * 26 * - 80 + - 41 AS col0
----
-2095

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL 26 + + COUNT ( * ) * 26 * - 80 + - 41 AS col0
----
-2095

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3066
SELECT ALL CAST( NULL AS DECIMAL ) / - - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL CAST ( NULL AS REAL ) / - - 18 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3067
SELECT DISTINCT CAST( + 25 AS SIGNED ) - 74 * + CAST( NULL AS SIGNED ) col0, + SUM( - 81 ) + 36 AS col2
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-3067
SELECT DISTINCT CAST ( + 25 AS INTEGER ) - 74 * + CAST ( NULL AS INTEGER ) col0, + SUM ( - 81 ) + 36 AS col2
----
NULL
-45

query I rowsort
SELECT ALL 20 * + 98 AS col1
----
1960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3069
SELECT ALL MAX( ALL - NULLIF ( CAST( 35 AS SIGNED ), - + 77 + - 45 ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL MAX ( ALL - NULLIF ( CAST ( 35 AS INTEGER ), - + 77 + - 45 ) ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT + ( - 67 ) + SUM( - 34 ) AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-3070
SELECT + ( - 67 ) + SUM ( - 34 ) AS col1
----
-101

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

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

query II rowsort
SELECT + ( - 37 ) AS col1, NULLIF ( - 89, - 90 )
----
-37
-89

query I rowsort
SELECT + 72 * - 6 AS col2
----
-432

query I rowsort
SELECT ALL 84 * - 41
----
-3444

query I rowsort
SELECT + COALESCE ( 77, 64 )
----
77

query I rowsort
SELECT - 54 + + - 37 - - 42
----
-49

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3078
SELECT + NULLIF ( - COUNT( * ), + 6 ) * + 12 + + 1 + + 91 * - CASE CASE 90 WHEN ( + 71 ) - 12 THEN NULL WHEN 49 / 66 THEN ( 39 ) * CASE - 68 WHEN 94 THEN NULL WHEN CASE + 8 WHEN - COUNT( 17 ) * - ( + 6 ) THEN + COUNT( * ) WHEN - 51 THEN + 21 + CAST( NULL AS SIGNED ) * 18 END * + 39 - + CAST( NULL AS SIGNED ) THEN - MAX( DISTINCT 84 ) * 35 ELSE - 83 END WHEN + COUNT( DISTINCT 93 ) THEN + 47 * 93 ELSE 21 / + 19 END * CASE + 69 WHEN + 11 * 43 THEN 99 + - 75 WHEN + 65 + 34 * ( 73 / 12 + - 54 ) THEN - 22 + 5 * 60 ELSE NULL END WHEN + 59 * - 72 THEN 64 / 30 + - COUNT( - 61 ) WHEN + 39 * + 90 + + 52 * 85 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3078
SELECT + NULLIF ( - COUNT ( * ), + 6 ) * + 12 + + 1 + + 91 * - CASE CASE 90 WHEN ( + 71 ) - 12 THEN NULL WHEN 49 / 66 THEN ( 39 ) * CASE - 68 WHEN 94 THEN NULL WHEN CASE + 8 WHEN - COUNT ( 17 ) * - ( + 6 ) THEN + COUNT ( * ) WHEN - 51 THEN + 21 + CAST ( NULL AS INTEGER ) * 18 END * + 39 - + CAST ( NULL AS INTEGER ) THEN - MAX ( DISTINCT 84 ) * 35 ELSE - 83 END WHEN + COUNT ( DISTINCT 93 ) THEN + 47 * 93 ELSE 21 / + 19 END * CASE + 69 WHEN + 11 * 43 THEN 99 + - 75 WHEN + 65 + 34 * ( 73 / 12 + - 54 ) THEN - 22 + 5 * 60 ELSE NULL END WHEN + 59 * - 72 THEN 64 / 30 + - COUNT ( - 61 ) WHEN + 39 * + 90 + + 52 * 85 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3079
SELECT ALL + COALESCE ( - + 57, CAST( - - 83 AS SIGNED ) ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL + COALESCE ( - + 57, CAST ( - - 83 AS INTEGER ) ) AS col2
----
-57

query I rowsort
SELECT - COALESCE ( 39, - - ( - 24 ) + + 99 )
----
-39

query II rowsort
SELECT ALL + - 38, + 89 AS col1
----
-38
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT + MAX( - 0 ) * 0 * ( - + 53 ) + + 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3082
SELECT + MAX ( - 0 ) * 0 * ( - + 53 ) + + 10 AS col0
----
10

query I rowsort
SELECT ALL + - 53 * 68
----
-3604

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3084
SELECT DISTINCT 57 / CAST( NULL AS DECIMAL ) + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT 57 / CAST ( NULL AS REAL ) + + 27
----
NULL

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

query I rowsort
SELECT - + 87 * - 71
----
6177

query II rowsort
SELECT + 83, + 88 col1
----
83
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3088
SELECT ALL + CAST( + 89 AS SIGNED ) * ( - - SUM( 25 ) ) * 11 DIV - 36 + 16 AS col2
----
-663

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL + CAST ( + 89 AS INTEGER ) * ( - - SUM ( 25 ) ) * 11 / - 36 + 16 AS col2
----
-663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3089
SELECT - COUNT( * ) + 35 DIV - 47 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3089
SELECT - COUNT ( * ) + 35 / - 47 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + - SUM( DISTINCT 58 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3090
SELECT + - SUM ( DISTINCT 58 ) AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3091
SELECT - CAST( - + 76 AS SIGNED ) * + 52 AS col1
----
3952

skipif mysql # not compatible
query I rowsort label-3091
SELECT - CAST ( - + 76 AS INTEGER ) * + 52 AS col1
----
3952

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT - - 19 + 6 + + - ( - 53 ) + + - 41 + 84 - 57 * - ( + 16 DIV + 28 + - 84 ) * 36
----
-172247

skipif mysql # not compatible
query I rowsort label-3092
SELECT - - 19 + 6 + + - ( - 53 ) + + - 41 + 84 - 57 * - ( + 16 / + 28 + - 84 ) * 36
----
-172247

query I rowsort
SELECT - 16 + - 93 * + + 49 + - 76
----
-4649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT ALL - - COALESCE ( - 36, + - 33, 72 * + 13 * - CAST( 92 AS SIGNED ) + 3 ) * + 93 + 88
----
-3260

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL - - COALESCE ( - 36, + - 33, 72 * + 13 * - CAST ( 92 AS INTEGER ) + 3 ) * + 93 + 88
----
-3260

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT ALL + + 73 * + SUM( DISTINCT - 23 ) + + 69 - 94 + + ( COUNT( * ) )
----
-1703

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL + + 73 * + SUM ( DISTINCT - 23 ) + + 69 - 94 + + ( COUNT ( * ) )
----
-1703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3096
SELECT - + 94, 80 DIV CAST( - SUM( ALL 11 ) AS SIGNED ) AS col1
----
-94
-7

skipif mysql # not compatible
query II rowsort label-3096
SELECT - + 94, 80 / CAST ( - SUM ( ALL 11 ) AS INTEGER ) AS col1
----
-94
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT - 69 * + - COUNT( DISTINCT - 12 )
----
69

skipif mysql # not compatible
query I rowsort label-3097
SELECT - 69 * + - COUNT ( DISTINCT - 12 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3098
SELECT SUM( ALL + 9 ) AS col1, 48 + + COUNT( * )
----
9
49

skipif mysql # not compatible
query II rowsort label-3098
SELECT SUM ( ALL + 9 ) AS col1, 48 + + COUNT ( * )
----
9
49

query I rowsort
SELECT ALL + 0 + + + 83 * + 82 - + 29 col0
----
6777

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT - CASE - - 85 WHEN + - 80 THEN NULL ELSE - SUM( - + 3 ) * - ( + 23 ) + + 94 * COUNT( * ) END * 11 AS col1
----
-275

skipif mysql # not compatible
query I rowsort label-3100
SELECT - CASE - - 85 WHEN + - 80 THEN NULL ELSE - SUM ( - + 3 ) * - ( + 23 ) + + 94 * COUNT ( * ) END * 11 AS col1
----
-275

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

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

query I rowsort
SELECT 41 - + ( - 69 )
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-3103
SELECT 44 * - 57 * + COUNT( * ), 62 + 58 + - + 82 * - 98 AS col0
----
-2508
8156

skipif mysql # not compatible
query II rowsort label-3103
SELECT 44 * - 57 * + COUNT ( * ), 62 + 58 + - + 82 * - 98 AS col0
----
-2508
8156

onlyif mysql # DIV for integer division: 
query I rowsort label-3104
SELECT DISTINCT 2 DIV + + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT 2 / + + 98 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT 70 * CASE - 96 WHEN + COALESCE ( ( - COUNT( * ) ), - 84 * + CASE - 90 * COALESCE ( - NULLIF ( COUNT( ALL 95 ), - 12 ), + COUNT( * ) + 71, + 47 * 36 + 3 ) WHEN - 84 THEN NULL WHEN 55 + + 31 THEN - 73 WHEN 58 * 67 THEN 59 ELSE + 7 / 47 + CASE + 80 WHEN + ( + 67 ) * 81 + 58 THEN 41 + + 54 WHEN - 84 THEN NULL END END, - 5 ) THEN 93 WHEN 97 / 88 THEN NULL END * CASE WHEN ( COUNT( * ) ) <= + 38 THEN 7 * 58 + + 84 / 21 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT 70 * CASE - 96 WHEN + COALESCE ( ( - COUNT ( * ) ), - 84 * + CASE - 90 * COALESCE ( - NULLIF ( COUNT ( ALL 95 ), - 12 ), + COUNT ( * ) + 71, + 47 * 36 + 3 ) WHEN - 84 THEN NULL WHEN 55 + + 31 THEN - 73 WHEN 58 * 67 THEN 59 ELSE + 7 / 47 + CASE + 80 WHEN + ( + 67 ) * 81 + 58 THEN 41 + + 54 WHEN - 84 THEN NULL END END, - 5 ) THEN 93 WHEN 97 / 88 THEN NULL END * CASE WHEN ( COUNT ( * ) ) <= + 38 THEN 7 * 58 + + 84 / 21 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL 37 * 78 * - COUNT( DISTINCT 44 ) AS col2
----
-2886

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL 37 * 78 * - COUNT ( DISTINCT 44 ) AS col2
----
-2886

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3107
SELECT 76 DIV 82 AS col2, - COUNT( ALL 78 ) * + 68
----
0
-68

skipif mysql # not compatible
query II rowsort label-3107
SELECT 76 / 82 AS col2, - COUNT ( ALL 78 ) * + 68
----
0
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-3108
SELECT DISTINCT - 65 DIV - 38 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT - 65 / - 38 AS col0
----
1

query I rowsort
SELECT ALL - NULLIF ( - + 63, + + 79 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT DISTINCT COUNT( * ) * - 33 col1
----
-33

skipif mysql # not compatible
query I rowsort label-3110
SELECT DISTINCT COUNT ( * ) * - 33 col1
----
-33

query I rowsort
SELECT ALL ( + 27 ) * + 64 AS col1
----
1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT DISTINCT - CAST( + ( - + 78 ) AS SIGNED ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT - CAST ( + ( - + 78 ) AS INTEGER ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT - 69 * 10 * + CASE - COUNT( * ) WHEN - ( - NULLIF ( + - 29, 1 ) ) THEN NULL WHEN - AVG ( DISTINCT - 43 ) THEN + COUNT( * ) * 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT - 69 * 10 * + CASE - COUNT ( * ) WHEN - ( - NULLIF ( + - 29, 1 ) ) THEN NULL WHEN - AVG ( DISTINCT - 43 ) THEN + COUNT ( * ) * 28 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3114
SELECT 6 DIV 53 + - 31, 17 * 41 * 13 col1
----
-31
9061

skipif mysql # not compatible
query II rowsort label-3114
SELECT 6 / 53 + - 31, 17 * 41 * 13 col1
----
-31
9061

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

skipif mysql # not compatible
query I rowsort label-3115
SELECT + + NULLIF ( ( + - 42 ), COUNT ( * ) )
----
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT 47 * - + COUNT( DISTINCT - 87 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-3117
SELECT 47 * - + COUNT ( DISTINCT - 87 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT SUM( - 7 ) * 94 + + - 21 - + 73 * - 40 * + 61 AS col0
----
177441

skipif mysql # not compatible
query I rowsort label-3118
SELECT SUM ( - 7 ) * 94 + + - 21 - + 73 * - 40 * + 61 AS col0
----
177441

query I rowsort
SELECT ALL + NULLIF ( + 69, 68 ) + + 41 AS col1
----
110

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

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

query II rowsort
SELECT ALL + 54 * - 7 AS col1, ( + - 30 ) col1
----
-378
-30

query I rowsort
SELECT DISTINCT 57 + + 66
----
123

query I rowsort
SELECT 31 + - + 91
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3124
SELECT ALL 75 + + 76 AS col2, - CAST( NULLIF ( + 56, - 63 + + 16 + - 32 ) AS SIGNED ) col1
----
151
-56

skipif mysql # not compatible
query II rowsort label-3124
SELECT ALL 75 + + 76 AS col2, - CAST ( NULLIF ( + 56, - 63 + + 16 + - 32 ) AS INTEGER ) col1
----
151
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3125
SELECT DISTINCT - + CASE COALESCE ( + 54, - - 48 + - - ( - CAST( NULL AS SIGNED ) ) / - COALESCE ( 79, + COUNT( 23 ) + - 99, 87 ) ) WHEN 28 * 46 THEN + MIN( DISTINCT 23 ) WHEN 63 THEN NULL ELSE - 19 END
----
19

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT - + CASE COALESCE ( + 54, - - 48 + - - ( - CAST ( NULL AS INTEGER ) ) / - COALESCE ( 79, + COUNT ( 23 ) + - 99, 87 ) ) WHEN 28 * 46 THEN + MIN ( DISTINCT 23 ) WHEN 63 THEN NULL ELSE - 19 END
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT + COUNT( - 97 ) - 89
----
-88

skipif mysql # not compatible
query I rowsort label-3127
SELECT + COUNT ( - 97 ) - 89
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT DISTINCT - 60 + + 15 - 20 * ( - - 94 ) DIV 20 AS col1
----
-139

skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT - 60 + + 15 - 20 * ( - - 94 ) / 20 AS col1
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT - 72 + 20 + - - 46 * - + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-3129
SELECT - 72 + 20 + - - 46 * - + COUNT ( * )
----
-98

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

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

query I rowsort
SELECT ALL - 68 - 83
----
-151

query II rowsort
SELECT DISTINCT 22, 97 AS col2
----
22
97

query I rowsort
SELECT 54 * - + 18
----
-972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3134
SELECT ALL - 41 DIV COUNT( DISTINCT + - 57 ) * - 0 * + SUM( ALL - NULLIF ( - 0, + 93 ) ) + 7
----
7

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL - 41 / COUNT ( DISTINCT + - 57 ) * - 0 * + SUM ( ALL - NULLIF ( - 0, + 93 ) ) + 7
----
7

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

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

query I rowsort
SELECT 64 + - 51 * + 37
----
-1823

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3137
SELECT CAST( NULL AS DECIMAL ) + + 15 * - 29 * + 77 / - COALESCE ( - ( + 88 ), + 83 + + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3137
SELECT CAST ( NULL AS REAL ) + + 15 * - 29 * + 77 / - COALESCE ( - ( + 88 ), + 83 + + 2 )
----
NULL

query II rowsort
SELECT 32, - 78 AS col1
----
32
-78

query I rowsort
SELECT 86 - + ( + NULLIF ( + + 56, 29 ) ) * - 47 * - 62 AS col0
----
-163098

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT 60 + + - 51 - + + 52 + + 26 * - - 38 * COUNT( * )
----
945

skipif mysql # not compatible
query I rowsort label-3140
SELECT 60 + + - 51 - + + 52 + + 26 * - - 38 * COUNT ( * )
----
945

query I rowsort
SELECT ALL + 70 * - + 48
----
-3360

query II rowsort
SELECT - 51 AS col0, + 57 * 68 * - 70 * 80 AS col1
----
-51
-21705600

onlyif mysql # DIV for integer division: 
query II rowsort label-3143
SELECT 79 * 74 DIV + - 3 AS col0, + 42 AS col0
----
-1948
42

skipif mysql # not compatible
query II rowsort label-3143
SELECT 79 * 74 / + - 3 AS col0, + 42 AS col0
----
-1948
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT 86 + - ( COUNT( ALL - 54 ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-3144
SELECT 86 + - ( COUNT ( ALL - 54 ) ) AS col2
----
85

query I rowsort
SELECT 95 + - 82 - - 11 * - + 37 * + 77 AS col0
----
-31326

query I rowsort
SELECT DISTINCT - 52 * 49 AS col0
----
-2548

query I rowsort
SELECT 69 * - + 59 * - 15 AS col0
----
61065

query II rowsort
SELECT + 44 AS col2, 61 col2
----
44
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3149
SELECT + + COUNT( * ) AS col1, + CASE - - 0 WHEN CAST( + - 99 AS DECIMAL ) / - 50 THEN 39 / + CAST( + COUNT( * ) AS SIGNED ) * MAX( 13 + - 14 * 5 ) END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3149
SELECT + + COUNT ( * ) AS col1, + CASE - - 0 WHEN CAST ( + - 99 AS REAL ) / - 50 THEN 39 / + CAST ( + COUNT ( * ) AS INTEGER ) * MAX ( 13 + - 14 * 5 ) END AS col2
----
1
NULL

query I rowsort
SELECT ALL + 41 * + + ( - - 9 ) + - 13 * + 3
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ALL - + 69 * + 94 * 29 * - CASE 18 WHEN - - 19 THEN + COUNT( * ) * + COUNT( * ) ELSE NULL END + 46 * 69 + + ( NULLIF ( + 37, COUNT( - 51 ) / 75 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL - + 69 * + 94 * 29 * - CASE 18 WHEN - - 19 THEN + COUNT ( * ) * + COUNT ( * ) ELSE NULL END + 46 * 69 + + ( NULLIF ( + 37, COUNT ( - 51 ) / 75 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT + COUNT( * ) * - - 15 * - - 33 * + - 43 * + 7 + + ( 19 )
----
-148976

skipif mysql # not compatible
query I rowsort label-3152
SELECT + COUNT ( * ) * - - 15 * - - 33 * + - 43 * + 7 + + ( 19 )
----
-148976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3153
SELECT COALESCE ( 44, - - 61 * + + 62, - 72 * - 13 + + NULLIF ( COUNT( * ), + CAST( 98 AS DECIMAL ) ) * CAST( NULL AS SIGNED ) ) + - 82
----
-38

skipif mysql # not compatible
query I rowsort label-3153
SELECT COALESCE ( 44, - - 61 * + + 62, - 72 * - 13 + + NULLIF ( COUNT ( * ), + CAST ( 98 AS REAL ) ) * CAST ( NULL AS INTEGER ) ) + - 82
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3154
SELECT ALL + COALESCE ( + + 78, - CASE + 36 WHEN AVG ( ALL - 52 ) THEN + + 18 END + - + 36 + + 88, 46 ) DIV - COALESCE ( 63, - 5 + + 59 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL + COALESCE ( + + 78, - CASE + 36 WHEN AVG ( ALL - 52 ) THEN + + 18 END + - + 36 + + 88, 46 ) / - COALESCE ( 63, - 5 + + 59 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3155
SELECT DISTINCT - COUNT( * ) * 81 + - + 18 + - + CASE - - 72 WHEN - + 65 + + COUNT( * ) - - 94 * 57 * 9 THEN NULL ELSE 48 * 19 + - 9 DIV 91 END - - 42 * - 35 * - 9 AS col0
----
12219

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT - COUNT ( * ) * 81 + - + 18 + - + CASE - - 72 WHEN - + 65 + + COUNT ( * ) - - 94 * 57 * 9 THEN NULL ELSE 48 * 19 + - 9 / 91 END - - 42 * - 35 * - 9 AS col0
----
12219

query I rowsort
SELECT DISTINCT - 16 * - 24
----
384

query I rowsort
SELECT ALL 2 * + - 98
----
-196

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3158
SELECT ALL 6 + MIN( ALL 89 ), + 64 + + 43 DIV + 64 AS col2
----
95
64

skipif mysql # not compatible
query II rowsort label-3158
SELECT ALL 6 + MIN ( ALL 89 ), + 64 + + 43 / + 64 AS col2
----
95
64

query I rowsort
SELECT DISTINCT - 66 + + - ( 8 ) - 83 AS col2
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT DISTINCT 50 * + - 29 + - + 31 * - + 55 * - + COUNT( * )
----
-3155

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT 50 * + - 29 + - + 31 * - + 55 * - + COUNT ( * )
----
-3155

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

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

query II rowsort
SELECT + - 31 AS col0, - 93
----
-31
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3163
SELECT ALL SUM( - 30 ) + + COALESCE ( 30, - 11, + + 61 DIV 59 + + + COUNT( * ) - - COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL SUM ( - 30 ) + + COALESCE ( 30, - 11, + + 61 / 59 + + + COUNT ( * ) - - COUNT ( * ) ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3164
SELECT + 42 * - + AVG ( ALL 73 ) * CAST( NULL AS SIGNED ), + 90 * ( 27 ) AS col0
----
NULL
2430

skipif mysql # not compatible
query II rowsort label-3164
SELECT + 42 * - + AVG ( ALL 73 ) * CAST ( NULL AS INTEGER ), + 90 * ( 27 ) AS col0
----
NULL
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT + SUM( - - 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3165
SELECT + SUM ( - - 49 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT + CASE 74 WHEN + - ( - - 79 ) * - 83 * ( - + ( + COALESCE ( 69, AVG ( - ( - 81 ) ) ) ) ) * 95 THEN NULL ELSE + 80 + + ( - 46 ) * + 36 END + + COUNT( * ) * 43
----
-1533

skipif mysql # not compatible
query I rowsort label-3166
SELECT + CASE 74 WHEN + - ( - - 79 ) * - 83 * ( - + ( + COALESCE ( 69, AVG ( - ( - 81 ) ) ) ) ) * 95 THEN NULL ELSE + 80 + + ( - 46 ) * + 36 END + + COUNT ( * ) * 43
----
-1533

query I rowsort
SELECT DISTINCT 91 - + + 49 col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT DISTINCT - 20 * + - CASE - 19 WHEN - 77 - - + COALESCE ( + AVG ( DISTINCT 33 ), COUNT( * ) ) - - 84 * + AVG ( - 2 * 76 ) THEN + 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT - 20 * + - CASE - 19 WHEN - 77 - - + COALESCE ( + AVG ( DISTINCT 33 ), COUNT ( * ) ) - - 84 * + AVG ( - 2 * 76 ) THEN + 21 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT 45 * CASE COUNT( * ) WHEN 85 THEN NULL WHEN - 72 THEN 59 + ( + 66 ) WHEN + + 21 THEN 11 ELSE NULL END * + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT 45 * CASE COUNT ( * ) WHEN 85 THEN NULL WHEN - 72 THEN 59 + ( + 66 ) WHEN + + 21 THEN 11 ELSE NULL END * + 69 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 39 - 42
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT + COALESCE ( - 56, - + 41 ) + - MIN( ALL 91 ) - - 6 AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-3172
SELECT + COALESCE ( - 56, - + 41 ) + - MIN ( ALL 91 ) - - 6 AS col2
----
-141

query I rowsort
SELECT + 80 * 59
----
4720

query I rowsort
SELECT + 85 + - 44 AS col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3175
SELECT DISTINCT 9 DIV - + 3
----
-3

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT 9 / - + 3
----
-3

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

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

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

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

query I rowsort
SELECT + 49 * - 50 * - - 69
----
-169050

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT - SUM( - 40 ) + - 86 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-3179
SELECT - SUM ( - 40 ) + - 86 AS col1
----
-46

query I rowsort
SELECT ALL - 38 * 80 AS col1
----
-3040

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT - CASE + MAX( + - 88 ) WHEN 49 THEN NULL WHEN - - COUNT( DISTINCT + ( - 25 ) ) * - COUNT( ALL 4 ) + + 33 + 44 * 32 THEN 30 * 38 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT - CASE + MAX ( + - 88 ) WHEN 49 THEN NULL WHEN - - COUNT ( DISTINCT + ( - 25 ) ) * - COUNT ( ALL 4 ) + + 33 + 44 * 32 THEN 30 * 38 END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3182
SELECT + COUNT ( * ) / - - 84 AS col2
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3184
SELECT - 72 DIV + 62
----
-1

skipif mysql # not compatible
query I rowsort label-3184
SELECT - 72 / + 62
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT DISTINCT MIN( ALL + 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT MIN ( ALL + 81 ) AS col0
----
81

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

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

query I rowsort
SELECT + + 64 - - 75 AS col0
----
139

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3189
SELECT ALL - COUNT( * ) * + - 41 + - SUM( DISTINCT + 94 ) + CAST( NULL AS SIGNED ) * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL - COUNT ( * ) * + - 41 + - SUM ( DISTINCT + 94 ) + CAST ( NULL AS INTEGER ) * + 86
----
NULL

query I rowsort
SELECT - + 14 * - + CASE + - 92 WHEN + 7 * - - 84 + - - ( + 94 ) * + 24 / + - 57 THEN 51 END AS col1
----
NULL

query I rowsort
SELECT ALL 94 + + - 7 - 52 + 68
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3192
SELECT ALL - - CAST( - 79 AS SIGNED ) * - 89 + - + 29
----
7002

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - - CAST ( - 79 AS INTEGER ) * - 89 + - + 29
----
7002

query I rowsort
SELECT - 60 * 43
----
-2580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3194
SELECT CAST( MIN( DISTINCT - 33 ) AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-3194
SELECT CAST ( MIN ( DISTINCT - 33 ) AS INTEGER )
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3195
SELECT ( + + COUNT( * ) ), 16 + ( + 14 ) DIV + MIN( DISTINCT + 68 ) AS col2
----
1
16

skipif mysql # not compatible
query II rowsort label-3195
SELECT ( + + COUNT ( * ) ), 16 + ( + 14 ) / + MIN ( DISTINCT + 68 ) AS col2
----
1
16

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3197
SELECT 87 DIV - - 14 + 90 * COALESCE ( + COUNT( ALL + 54 ), + ( - - 31 ), COALESCE ( + 28, + 19 - COALESCE ( + 41, + 21 + 35 ) * - 32 ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3197
SELECT 87 / - - 14 + 90 * COALESCE ( + COUNT ( ALL + 54 ), + ( - - 31 ), COALESCE ( + 28, + 19 - COALESCE ( + 41, + 21 + 35 ) * - 32 ) ) AS col2
----
96

query II rowsort
SELECT - + 13 + + 5, 86 col0
----
-8
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3199
SELECT + 95 DIV MAX( DISTINCT 9 ) * - + NULLIF ( 48, + ( - 56 ) * + NULLIF ( 16, - 13 * 75 ) * 83 ) - ( 10 ) DIV COALESCE ( - 89, + CAST( + COALESCE ( - 66, 70 * + CAST( + 50 AS SIGNED ), - 6 ) AS SIGNED ), NULLIF ( + 75, - 32 + - 17 * ( 66 ) ) - 50 ) col2
----
-480

skipif mysql # not compatible
query I rowsort label-3199
SELECT + 95 / MAX ( DISTINCT 9 ) * - + NULLIF ( 48, + ( - 56 ) * + NULLIF ( 16, - 13 * 75 ) * 83 ) - ( 10 ) / COALESCE ( - 89, + CAST ( + COALESCE ( - 66, 70 * + CAST ( + 50 AS INTEGER ), - 6 ) AS INTEGER ), NULLIF ( + 75, - 32 + - 17 * ( 66 ) ) - 50 ) col2
----
-480

query I rowsort
SELECT - + 85 * ( + + 31 ) + - 70 AS col0
----
-2705

query I rowsort
SELECT - 63 * 5
----
-315

query I rowsort
SELECT ALL + 10 * + + 4 AS col2
----
40

query I rowsort
SELECT DISTINCT 62 * - 11 AS col0
----
-682

onlyif mysql # DIV for integer division: 
query I rowsort label-3204
SELECT - 80 DIV + ( 75 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3204
SELECT - 80 / + ( 75 ) AS col1
----
-1

query I rowsort
SELECT ALL + 42 * + 22 * 92
----
85008

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT - 56 * + - MAX( - ( - 83 ) ) * - - ( + 55 ) AS col2
----
255640

skipif mysql # not compatible
query I rowsort label-3206
SELECT - 56 * + - MAX ( - ( - 83 ) ) * - - ( + 55 ) AS col2
----
255640

query I rowsort
SELECT + 62 * - 85 AS col1
----
-5270

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL 68 * - + 97 * - + COUNT( * )
----
6596

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL 68 * - + 97 * - + COUNT ( * )
----
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT + MIN( 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3209
SELECT + MIN ( 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT - ( ( - CASE - - ( + - 58 ) WHEN + 63 * + - ( + - NULLIF ( + + 80, + + 7 + 66 * - ( + 4 ) ) ) * - 52 THEN - COUNT( * ) ELSE NULL END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT - ( ( - CASE - - ( + - 58 ) WHEN + 63 * + - ( + - NULLIF ( + + 80, + + 7 + 66 * - ( + 4 ) ) ) * - 52 THEN - COUNT ( * ) ELSE NULL END ) ) AS col2
----
NULL

query II rowsort
SELECT + 26 * + 6 * - 3, 79 + 22 + - - 94 * 6 AS col2
----
-468
665

query I rowsort
SELECT ALL 39 * - 6 + + - 79 * + - 39 AS col0
----
2847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3213
SELECT DISTINCT CAST( + 59 AS SIGNED ) col2
----
59

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT CAST ( + 59 AS INTEGER ) col2
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT ALL COALESCE ( - 66, 10 + + + COUNT( * ), ( 6 ) ) + + 14 + - + 45
----
-97

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL COALESCE ( - 66, 10 + + + COUNT ( * ), ( 6 ) ) + + 14 + - + 45
----
-97

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3218
SELECT + CASE WHEN NOT NULL >= - COUNT( * ) THEN - 45 + - 11 * CAST( + 86 AS SIGNED ) * - + 88 + + 23 + - SUM( - 12 ) * + 4 WHEN NULL IS NOT NULL THEN - ( NULLIF ( + 6, - 10 * 14 + + NULLIF ( 89, COUNT( * ) ) ) ) + + ( 25 ) END + - COALESCE ( - 48, + ( + 55 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT + CASE WHEN NOT NULL >= - COUNT ( * ) THEN - 45 + - 11 * CAST ( + 86 AS INTEGER ) * - + 88 + + 23 + - SUM ( - 12 ) * + 4 WHEN NULL IS NOT NULL THEN - ( NULLIF ( + 6, - 10 * 14 + + NULLIF ( 89, COUNT ( * ) ) ) ) + + ( 25 ) END + - COALESCE ( - 48, + ( + 55 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT DISTINCT 19 + 83 - - COUNT( ALL + 46 )
----
103

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT 19 + 83 - - COUNT ( ALL + 46 )
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-3220
SELECT ALL 78 + + + 45 DIV + - 43 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL 78 + + + 45 / + - 43 AS col1
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3221
SELECT + 84 + - + 63 + + COUNT( * ), MAX( - 34 ) * + - 15 AS col0
----
22
510

skipif mysql # not compatible
query II rowsort label-3221
SELECT + 84 + - + 63 + + COUNT ( * ), MAX ( - 34 ) * + - 15 AS col0
----
22
510

query I rowsort
SELECT - CASE - 91 WHEN 15 * + - 58 + - 59 + + 56 / + ( - CASE - 91 WHEN 37 THEN 6 ELSE NULL END ) THEN NULL ELSE + 36 END AS col2
----
-36

query II rowsort
SELECT 94 AS col1, 88
----
94
88

query I rowsort
SELECT - 66 - NULLIF ( - - 22, - 77 )
----
-88

query I rowsort
SELECT DISTINCT AVG ( + CASE 67 WHEN + 67 + 45 + 53 THEN + 28 ELSE NULL END ) * + 21 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3226
SELECT + 36 + - CASE + + 80 WHEN + COUNT( * ) THEN 83 + 81 END AS col1, - COUNT( * ) * - + NULLIF ( + 54, - + CASE + 76 WHEN + 50 THEN NULL ELSE - ( 7 ) * 99 + COUNT( * ) END * 48 )
----
NULL
54

skipif mysql # not compatible
query II rowsort label-3226
SELECT + 36 + - CASE + + 80 WHEN + COUNT ( * ) THEN 83 + 81 END AS col1, - COUNT ( * ) * - + NULLIF ( + 54, - + CASE + 76 WHEN + 50 THEN NULL ELSE - ( 7 ) * 99 + COUNT ( * ) END * 48 )
----
NULL
54

query I rowsort
SELECT ALL 34 + + + 30
----
64

query I rowsort
SELECT ALL 39 * 84 AS col1
----
3276

query I rowsort
SELECT + 8 + - + 51 + 84
----
41

query I rowsort
SELECT DISTINCT 83 + + - 31 * + 0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3231
SELECT ALL - - COUNT( * ) + + CAST( NULL AS SIGNED ) * + 70
----
NULL

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

query I rowsort
SELECT + + 52 + + 99 AS col0
----
151

query II rowsort
SELECT ALL + 4, + 92 AS col0
----
4
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT + CASE MIN( + 26 ) WHEN - 98 * 99 * + 92 / 79 + ( 79 ) THEN - ( 68 ) * - 86 END * + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT + CASE MIN ( + 26 ) WHEN - 98 * 99 * + 92 / 79 + ( 79 ) THEN - ( 68 ) * - 86 END * + 32 AS col2
----
NULL

query I rowsort
SELECT ALL - 97 - + 69 AS col1
----
-166

query I rowsort
SELECT + 97 * - + 42 AS col0
----
-4074

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT - - ( - - MAX( - 49 ) ) + - - 17
----
-32

skipif mysql # not compatible
query I rowsort label-3237
SELECT - - ( - - MAX ( - 49 ) ) + - - 17
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3238
SELECT DISTINCT + ( - 37 ) DIV - 60 + - 18 DIV + NULLIF ( 67, - + 33 - - AVG ( - 56 ) + - + ( - ( 32 ) ) + CASE COUNT( * ) WHEN 92 THEN - 80 WHEN + 33 + - 74 THEN NULL ELSE NULL END * 7 ) + + 23 DIV + 59 - 21 * + 54
----
-1134

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT + ( - 37 ) / - 60 + - 18 / + NULLIF ( 67, - + 33 - - AVG ( - 56 ) + - + ( - ( 32 ) ) + CASE COUNT ( * ) WHEN 92 THEN - 80 WHEN + 33 + - 74 THEN NULL ELSE NULL END * 7 ) + + 23 / + 59 - 21 * + 54
----
-1134

query I rowsort
SELECT - - 25 * - 90 AS col0
----
-2250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT + CASE + 68 WHEN + COUNT( * ) THEN + SUM( + 13 ) * - 79 / - 51 WHEN - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) THEN 25 * - 51 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3240
SELECT + CASE + 68 WHEN + COUNT ( * ) THEN + SUM ( + 13 ) * - 79 / - 51 WHEN - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN 25 * - 51 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT - MAX( - 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT - MAX ( - 46 ) AS col2
----
46

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

skipif mysql # not compatible
query II rowsort label-3242
SELECT 32, + COUNT ( * ) / + - 18 col0
----
32
0

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

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

query I rowsort
SELECT ALL + 55 * + - 1 AS col1
----
-55

query I rowsort
SELECT 54 - - 4 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT 60 + - CASE 10 WHEN + NULLIF ( + 83, + - COUNT( * ) ) THEN - ( - 6 ) WHEN - + COALESCE ( 69, + SUM( DISTINCT 87 ) / - 60 ) + - 95 THEN NULL END + - COUNT( * ) * 35 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT 60 + - CASE 10 WHEN + NULLIF ( + 83, + - COUNT ( * ) ) THEN - ( - 6 ) WHEN - + COALESCE ( 69, + SUM ( DISTINCT 87 ) / - 60 ) + - 95 THEN NULL END + - COUNT ( * ) * 35 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3247
SELECT COALESCE ( + ( - 39 ), - - 61, + + 75, - - 10 ) * - 20 * + 20 * + 38 + + + ( + + CAST( 34 AS SIGNED ) ) + + 67 AS col2
----
592901

skipif mysql # not compatible
query I rowsort label-3247
SELECT COALESCE ( + ( - 39 ), - - 61, + + 75, - - 10 ) * - 20 * + 20 * + 38 + + + ( + + CAST ( 34 AS INTEGER ) ) + + 67 AS col2
----
592901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3248
SELECT ALL - CAST( NULL AS SIGNED ), 89 - - 67 + ( - 47 ) + + 74 + COUNT( * ) AS col2, + 24 AS col1
----
NULL
184
24

skipif mysql # not compatible
query III rowsort label-3248
SELECT ALL - CAST ( NULL AS INTEGER ), 89 - - 67 + ( - 47 ) + + 74 + COUNT ( * ) AS col2, + 24 AS col1
----
NULL
184
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3249
SELECT 70 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-3249
SELECT 70 / - 75
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3250
SELECT DISTINCT - COALESCE ( 82, + + 83 + 84 - + ( 9 ) - - 66, - ( + 87 ) * + + 94 * 35 * COUNT( * ) + COUNT( * ) * 7 + CAST( NULL AS SIGNED ) * 15 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT - COALESCE ( 82, + + 83 + 84 - + ( 9 ) - - 66, - ( + 87 ) * + + 94 * 35 * COUNT ( * ) + COUNT ( * ) * 7 + CAST ( NULL AS INTEGER ) * 15 ) AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3251
SELECT ALL 14 + + ( - + COUNT( * ) ) + AVG ( CASE - 71 WHEN - 15 THEN + - 67 WHEN - CAST( - + 43 AS SIGNED ) THEN COALESCE ( - CAST( NULL AS SIGNED ), - 22 + + 6 ) END ) * 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL 14 + + ( - + COUNT ( * ) ) + AVG ( CASE - 71 WHEN - 15 THEN + - 67 WHEN - CAST ( - + 43 AS INTEGER ) THEN COALESCE ( - CAST ( NULL AS INTEGER ), - 22 + + 6 ) END ) * 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3252
SELECT 11 * + COUNT( * ) * + 87 + + 90 + + 42 * + COALESCE ( + 26, + COUNT( * ) + - 1 ), - 63 + 12 AS col0
----
2139
-51

skipif mysql # not compatible
query II rowsort label-3252
SELECT 11 * + COUNT ( * ) * + 87 + + 90 + + 42 * + COALESCE ( + 26, + COUNT ( * ) + - 1 ), - 63 + 12 AS col0
----
2139
-51

query I rowsort
SELECT DISTINCT - 66 + + + COALESCE ( + 52, + - 46 ) AS col1
----
-14

query II rowsort
SELECT - 43 col2, ( 3 )
----
-43
3

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

query I rowsort
SELECT 5 + 68 * - 72
----
-4891

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL - COUNT( * ) + + + 62 col2
----
61

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL - COUNT ( * ) + + + 62 col2
----
61

query I rowsort
SELECT ALL + 93 + + + 48
----
141

query II rowsort
SELECT DISTINCT 4 col1, 95
----
4
95

query I rowsort
SELECT 95 * - 26 AS col1
----
-2470

onlyif mysql # aggregate syntax: 
query II rowsort label-3261
SELECT ALL 10 AS col1, - 44 * + 93 * + ( - COUNT( * ) )
----
10
4092

skipif mysql # not compatible
query II rowsort label-3261
SELECT ALL 10 AS col1, - 44 * + 93 * + ( - COUNT ( * ) )
----
10
4092

query II rowsort
SELECT - 97 AS col2, 43 * 69
----
-97
2967

query II rowsort
SELECT DISTINCT 8, + 69 AS col1
----
8
69

query I rowsort
SELECT ( ( - 43 ) ) AS col0
----
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT - + SUM( + + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-3267
SELECT - + SUM ( + + 60 )
----
-60

query I rowsort
SELECT 93 - + + 2 AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3269
SELECT COUNT( * ) * - + 12 DIV 90 + - 82 * COALESCE ( - 92, - + 19, 47 * - 52 + + - 70 )
----
7544

skipif mysql # not compatible
query I rowsort label-3269
SELECT COUNT ( * ) * - + 12 / 90 + - 82 * COALESCE ( - 92, - + 19, 47 * - 52 + + - 70 )
----
7544

query I rowsort
SELECT - 95 - + 84 AS col2
----
-179

onlyif mysql # DIV for integer division: 
query II rowsort label-3271
SELECT ALL - 26, - 54 DIV - - 29 + - 72 + - 27 DIV - - 93 AS col2
----
-26
-73

skipif mysql # not compatible
query II rowsort label-3271
SELECT ALL - 26, - 54 / - - 29 + - 72 + - 27 / - - 93 AS col2
----
-26
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3272
SELECT 16 * + 82 + - 97 + NULLIF ( + CAST( NULL AS SIGNED ), + 29 + 69 ) + - + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT 16 * + 82 + - 97 + NULLIF ( + CAST ( NULL AS INTEGER ), + 29 + 69 ) + - + 75 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT SUM( + 95 ) * + - 95
----
-9025

skipif mysql # not compatible
query I rowsort label-3275
SELECT SUM ( + 95 ) * + - 95
----
-9025

onlyif mysql # aggregate syntax: 
query II rowsort label-3276
SELECT - 72 * - 53 + + COUNT( * ) * + + 36, + MAX( ALL - - 49 ) AS col2
----
3852
49

skipif mysql # not compatible
query II rowsort label-3276
SELECT - 72 * - 53 + + COUNT ( * ) * + + 36, + MAX ( ALL - - 49 ) AS col2
----
3852
49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3278
SELECT ALL 15 + - 10, - ( - 24 ) * COUNT( * ) AS col0
----
5
24

skipif mysql # not compatible
query II rowsort label-3278
SELECT ALL 15 + - 10, - ( - 24 ) * COUNT ( * ) AS col0
----
5
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3279
SELECT ALL + COALESCE ( MIN( + NULLIF ( - + 20, - 67 ) ), - - 32 DIV - 57, + 2 ) + - ( - 5 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL + COALESCE ( MIN ( + NULLIF ( - + 20, - 67 ) ), - - 32 / - 57, + 2 ) + - ( - 5 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL - COUNT( DISTINCT 23 ) + + + 34
----
33

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL - COUNT ( DISTINCT 23 ) + + + 34
----
33

query I rowsort
SELECT ( 62 ) * + 74 + + 87 * - 49 * + + 7
----
-25253

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT DISTINCT 44 + + MAX( DISTINCT + 70 ) AS col1
----
114

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT 44 + + MAX ( DISTINCT + 70 ) AS col1
----
114

query I rowsort
SELECT ALL - 61 + 6 + + 31 AS col1
----
-24

query I rowsort
SELECT 85 + - - 24
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3285
SELECT 88 * + 81, CAST( NULL AS SIGNED ) AS col0
----
7128
NULL

skipif mysql # not compatible
query II rowsort label-3285
SELECT 88 * + 81, CAST ( NULL AS INTEGER ) AS col0
----
7128
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3287
SELECT DISTINCT SUM( ALL + 22 ), + 66 col0
----
22
66

skipif mysql # not compatible
query II rowsort label-3287
SELECT DISTINCT SUM ( ALL + 22 ), + 66 col0
----
22
66

query I rowsort
SELECT ALL 1 + 64 * - + 68 - + 54 AS col0
----
-4405

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ALL + 17 - - 9 + ( - + SUM( - 25 ) ) * - - 84 AS col2
----
2126

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL + 17 - - 9 + ( - + SUM ( - 25 ) ) * - - 84 AS col2
----
2126

query I rowsort
SELECT 11 - 47
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT 14 * - 17 * + - COUNT( * )
----
238

skipif mysql # not compatible
query I rowsort label-3291
SELECT 14 * - 17 * + - COUNT ( * )
----
238

query II rowsort
SELECT 82 - + 6, + 49 AS col2
----
76
49

query I rowsort
SELECT ALL + + 55 - 31
----
24

query I rowsort
SELECT 62 + - 95 - + 80 AS col0
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT + 36 DIV 52 * - 83 * 12 + + - 14 + + 33 DIV + 95 * 80 col1
----
-14

skipif mysql # not compatible
query I rowsort label-3295
SELECT + 36 / 52 * - 83 * 12 + + - 14 + + 33 / + 95 * 80 col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT ( + 58 ) - + MAX( ALL - ( + 93 ) ) + + 85
----
236

skipif mysql # not compatible
query I rowsort label-3296
SELECT ( + 58 ) - + MAX ( ALL - ( + 93 ) ) + + 85
----
236

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3298
SELECT ALL COALESCE ( - COALESCE ( - CAST( NULL AS SIGNED ), + 76 * + 38 + + 3 - + 62 + - 72 - + 89 + - + CASE + SUM( + + ( - NULLIF ( + 37, - 56 ) ) ) WHEN + ( + 35 ) - - NULLIF ( - 87, 82 + CAST( NULL AS SIGNED ) ) THEN - 92 ELSE 39 * ( + 78 ) END, - COUNT( * ) + - 22 ), 94 DIV SUM( ALL 60 ) + 8 DIV ( + 2 ) )
----
374

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL COALESCE ( - COALESCE ( - CAST ( NULL AS INTEGER ), + 76 * + 38 + + 3 - + 62 + - 72 - + 89 + - + CASE + SUM ( + + ( - NULLIF ( + 37, - 56 ) ) ) WHEN + ( + 35 ) - - NULLIF ( - 87, 82 + CAST ( NULL AS INTEGER ) ) THEN - 92 ELSE 39 * ( + 78 ) END, - COUNT ( * ) + - 22 ), 94 / SUM ( ALL 60 ) + 8 / ( + 2 ) )
----
374

query I rowsort
SELECT DISTINCT + - 13 * 8
----
-104

query I rowsort
SELECT ALL + ( - 32 ) * - 80
----
2560

onlyif mysql # aggregate syntax: 
query II rowsort label-3301
SELECT ALL - COUNT( + 61 ) AS col1, 39 AS col1
----
-1
39

skipif mysql # not compatible
query II rowsort label-3301
SELECT ALL - COUNT ( + 61 ) AS col1, 39 AS col1
----
-1
39

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

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL SUM ( ALL - 11 )
----
-11

query I rowsort
SELECT + 43 + - 89 * - 37
----
3336

query I rowsort
SELECT + - 43 * + + 60 AS col2
----
-2580

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT + COUNT( 99 ) + + 19
----
20

skipif mysql # not compatible
query I rowsort label-3305
SELECT + COUNT ( 99 ) + + 19
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3306
SELECT + 70 + 76 AS col2, COUNT( - 83 ) + - + 54 + + - 4 + + + SUM( DISTINCT + 27 ) * 8 - + - ( + - 88 ) AS col1
----
146
71

skipif mysql # not compatible
query II rowsort label-3306
SELECT + 70 + 76 AS col2, COUNT ( - 83 ) + - + 54 + + - 4 + + + SUM ( DISTINCT + 27 ) * 8 - + - ( + - 88 ) AS col1
----
146
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3307
SELECT + - 98 * + 24 * + + 46 * - + ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT + - 98 * + 24 * + + 46 * - + ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT + SUM( - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-3308
SELECT + SUM ( - 62 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3309
SELECT ALL - CAST( + 88 AS SIGNED ) * - + COUNT( * ) + - 79 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL - CAST ( + 88 AS INTEGER ) * - + COUNT ( * ) + - 79 AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT DISTINCT - 38 DIV - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT - 38 / - 95 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3311
SELECT CASE - CASE + + COUNT( * ) WHEN - - CASE + ( - CAST( NULL AS SIGNED ) ) WHEN + + 44 THEN NULL WHEN + - 81 * + - AVG ( ALL + 32 ) + - COALESCE ( - CASE 51 WHEN COUNT( * ) THEN NULL ELSE ( - NULLIF ( 40, 51 / + 22 ) ) + 44 * - 16 END, 25 ) / COUNT( * ) THEN 55 + 67 END THEN NULL WHEN + 71 + NULLIF ( - SUM( ALL + 4 ), 18 * 29 ) * - 3 THEN 85 WHEN + COUNT( * ) THEN - ( + 36 ) + - 70 ELSE NULL END WHEN - 25 THEN - 39 + - 57 * COUNT( * ) WHEN + 60 + CASE + 11 - + CASE + NULLIF ( 21, ( + 39 ) * + CAST( + ( - 73 ) AS SIGNED ) + 67 * - 52 ) WHEN 12 + 62 THEN 56 * 74 ELSE NULL END WHEN - 44 THEN NULL ELSE 70 * 1 - 67 * - 79 END THEN - 88 * 48 WHEN 37 THEN - ( NULLIF ( 28, + 0 ) ) - - 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT CASE - CASE + + COUNT ( * ) WHEN - - CASE + ( - CAST ( NULL AS INTEGER ) ) WHEN + + 44 THEN NULL WHEN + - 81 * + - AVG ( ALL + 32 ) + - COALESCE ( - CASE 51 WHEN COUNT ( * ) THEN NULL ELSE ( - NULLIF ( 40, 51 / + 22 ) ) + 44 * - 16 END, 25 ) / COUNT ( * ) THEN 55 + 67 END THEN NULL WHEN + 71 + NULLIF ( - SUM ( ALL + 4 ), 18 * 29 ) * - 3 THEN 85 WHEN + COUNT ( * ) THEN - ( + 36 ) + - 70 ELSE NULL END WHEN - 25 THEN - 39 + - 57 * COUNT ( * ) WHEN + 60 + CASE + 11 - + CASE + NULLIF ( 21, ( + 39 ) * + CAST ( + ( - 73 ) AS INTEGER ) + 67 * - 52 ) WHEN 12 + 62 THEN 56 * 74 ELSE NULL END WHEN - 44 THEN NULL ELSE 70 * 1 - 67 * - 79 END THEN - 88 * 48 WHEN 37 THEN - ( NULLIF ( 28, + 0 ) ) - - 25 END
----
NULL

query I rowsort
SELECT ALL 9 * ( - - 88 )
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL + COUNT( NULLIF ( + - 13, - 16 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL + COUNT ( NULLIF ( + - 13, - 16 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT ALL ( + 72 ) * COUNT( * ) * - + COUNT( * ) + - 68 * - 41 + - 54 * - - 27 * + CAST( NULL AS SIGNED ) / + 45 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL ( + 72 ) * COUNT ( * ) * - + COUNT ( * ) + - 68 * - 41 + - 54 * - - 27 * + CAST ( NULL AS INTEGER ) / + 45 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT 30 * + - 78 - - 66 * + - 98
----
-8808

query I rowsort
SELECT - 25 * + 84 AS col2
----
-2100

onlyif mysql # aggregate syntax: 
query II rowsort label-3318
SELECT MIN( ALL ( + + 28 ) ), 38 * - 52 * COUNT( * ) AS col1
----
28
-1976

skipif mysql # not compatible
query II rowsort label-3318
SELECT MIN ( ALL ( + + 28 ) ), 38 * - 52 * COUNT ( * ) AS col1
----
28
-1976

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

query I rowsort
SELECT ALL + 14 * - + 81 * + - 95 - - + 0
----
107730

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT MIN( + 41 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-3321
SELECT MIN ( + 41 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3322
SELECT DISTINCT + 53 AS col1, - COUNT( * ) - - + 78
----
53
77

skipif mysql # not compatible
query II rowsort label-3322
SELECT DISTINCT + 53 AS col1, - COUNT ( * ) - - + 78
----
53
77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3324
SELECT ALL - CAST( 5 AS SIGNED ) * - - 26 * + 55 AS col2
----
-7150

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - CAST ( 5 AS INTEGER ) * - - 26 * + 55 AS col2
----
-7150

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT - 83 + SUM( + 29 ) - 47
----
-101

skipif mysql # not compatible
query I rowsort label-3325
SELECT - 83 + SUM ( + 29 ) - 47
----
-101

query I rowsort
SELECT ALL 89 * + 39 * + 34
----
118014

onlyif mysql # DIV for integer division: 
query II rowsort label-3327
SELECT - + 99, 32 DIV - 29 AS col2
----
-99
-1

skipif mysql # not compatible
query II rowsort label-3327
SELECT - + 99, 32 / - 29 AS col2
----
-99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT - - 15 * + COUNT( * ) + 61 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3328
SELECT - - 15 * + COUNT ( * ) + 61 AS col2
----
76

query II rowsort
SELECT 94, 25 AS col1
----
94
25

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

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

query II rowsort
SELECT 0 AS col0, 37 - - 86 AS col0
----
0
123

onlyif mysql # aggregate syntax: 
query II rowsort label-3332
SELECT DISTINCT 27 AS col0, + COALESCE ( 77, + + ( + COUNT( * ) ) ) AS col2
----
27
77

skipif mysql # not compatible
query II rowsort label-3332
SELECT DISTINCT 27 AS col0, + COALESCE ( 77, + + ( + COUNT ( * ) ) ) AS col2
----
27
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT ALL - + 40 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL - + 40 / - 90 AS col0
----
0

query II rowsort
SELECT 12 AS col2, - 4 AS col2
----
12
-4

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

skipif mysql # not compatible
query II rowsort label-3335
SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) AS col2
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3336
SELECT ALL - - CASE + 17 WHEN + CAST( + + 74 AS SIGNED ) THEN NULL ELSE + 80 END + - - 60 * + MAX( DISTINCT - CAST( - 42 AS SIGNED ) )
----
2600

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL - - CASE + 17 WHEN + CAST ( + + 74 AS INTEGER ) THEN NULL ELSE + 80 END + - - 60 * + MAX ( DISTINCT - CAST ( - 42 AS INTEGER ) )
----
2600

query I rowsort
SELECT - + 88 * + 32 - + 20
----
-2836

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

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

query I rowsort
SELECT - 71 * 91 AS col2
----
-6461

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

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

query I rowsort
SELECT ALL + - 73 + - + 23 AS col0
----
-96

query I rowsort
SELECT ALL - - 60 * 79 + 52 + - 67 col0
----
4725

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT - MIN( - 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-3343
SELECT - MIN ( - 54 ) AS col2
----
54

query I rowsort
SELECT DISTINCT - 51 * 9 AS col2
----
-459

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT CAST( + 53 AS SIGNED ) / + + COUNT( * ) * 2 - - COUNT( * ) + CASE - ( - COUNT( ALL + 39 ) ) WHEN ( - 31 ) / + + COUNT( * ) * 33 + - 67 * COUNT( * ) THEN NULL WHEN 20 * SUM( - ( + 84 ) ) THEN + AVG ( ALL + 42 ) * CAST( 48 AS SIGNED ) WHEN 43 + + 58 * - 98 THEN - 10 / + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT CAST ( + 53 AS INTEGER ) / + + COUNT ( * ) * 2 - - COUNT ( * ) + CASE - ( - COUNT ( ALL + 39 ) ) WHEN ( - 31 ) / + + COUNT ( * ) * 33 + - 67 * COUNT ( * ) THEN NULL WHEN 20 * SUM ( - ( + 84 ) ) THEN + AVG ( ALL + 42 ) * CAST ( 48 AS INTEGER ) WHEN 43 + + 58 * - 98 THEN - 10 / + 62 END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3348
SELECT COUNT( ALL + - ( + 41 ) ) * - - 22 - ( + - CASE - ( 27 ) WHEN - + CASE - COUNT( * ) WHEN - CAST( + 23 AS SIGNED ) / - - ( 20 ) * + 6 + - ( 10 + 30 ) THEN NULL ELSE + 3 END / - NULLIF ( CAST( NULL AS SIGNED ), ( - 52 ) ) THEN + 63 END ) + - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT COUNT ( ALL + - ( + 41 ) ) * - - 22 - ( + - CASE - ( 27 ) WHEN - + CASE - COUNT ( * ) WHEN - CAST ( + 23 AS INTEGER ) / - - ( 20 ) * + 6 + - ( 10 + 30 ) THEN NULL ELSE + 3 END / - NULLIF ( CAST ( NULL AS INTEGER ), ( - 52 ) ) THEN + 63 END ) + - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT + MAX( DISTINCT + 88 ) + + 4 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3349
SELECT + MAX ( DISTINCT + 88 ) + + 4 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL COUNT( * ) * - 35 * - - 67 AS col2
----
-2345

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL COUNT ( * ) * - 35 * - - 67 AS col2
----
-2345

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT + 14 * + NULLIF ( CASE - 16 WHEN CASE + ( + 9 ) WHEN - NULLIF ( - 54, + NULLIF ( + 92, ( + 60 ) ) ) THEN NULL ELSE - MIN( + 9 ) END THEN NULL ELSE - 34 * + 70 + 26 END, - 17 )
----
-32956

skipif mysql # not compatible
query I rowsort label-3351
SELECT + 14 * + NULLIF ( CASE - 16 WHEN CASE + ( + 9 ) WHEN - NULLIF ( - 54, + NULLIF ( + 92, ( + 60 ) ) ) THEN NULL ELSE - MIN ( + 9 ) END THEN NULL ELSE - 34 * + 70 + 26 END, - 17 )
----
-32956

onlyif mysql # DIV for integer division: 
query I rowsort label-3352
SELECT ALL - 89 DIV + ( - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL - 89 / + ( - 85 )
----
1

query I rowsort
SELECT ( - + 89 ) col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT - ( COUNT( 3 ) ) * - 26 * + - COUNT( * ) * - 36 + - - 17 + - 43 + - - COALESCE ( - + 27, ( + - 84 ), + COUNT( * ) * - + COUNT( * ) + - 5 ) * - 90
----
3340

skipif mysql # not compatible
query I rowsort label-3354
SELECT - ( COUNT ( 3 ) ) * - 26 * + - COUNT ( * ) * - 36 + - - 17 + - 43 + - - COALESCE ( - + 27, ( + - 84 ), + COUNT ( * ) * - + COUNT ( * ) + - 5 ) * - 90
----
3340

query I rowsort
SELECT + 42 + + - ( - - 71 ) AS col2
----
-29

query II rowsort
SELECT ( - + 94 ), - 99 * + 36 col2
----
-94
-3564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3357
SELECT + + 44 DIV NULLIF ( + 18, - + 26 - - + COUNT( * ) ) col0
----
2

skipif mysql # not compatible
query I rowsort label-3357
SELECT + + 44 / NULLIF ( + 18, - + 26 - - + COUNT ( * ) ) col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3358
SELECT - 92 * 88 + + + CASE - 22 WHEN + 77 + + - 97 THEN NULL ELSE CASE - 60 WHEN + 47 THEN NULL WHEN 99 * - 46 * - 4 THEN MAX( DISTINCT + CAST( NULL AS SIGNED ) ) ELSE - 55 END + 37 END * - COUNT( * ) AS col2
----
-8078

skipif mysql # not compatible
query I rowsort label-3358
SELECT - 92 * 88 + + + CASE - 22 WHEN + 77 + + - 97 THEN NULL ELSE CASE - 60 WHEN + 47 THEN NULL WHEN 99 * - 46 * - 4 THEN MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) ELSE - 55 END + 37 END * - COUNT ( * ) AS col2
----
-8078

query I rowsort
SELECT - 22 * - + 10
----
220

query II rowsort
SELECT DISTINCT ( - - 4 ) AS col2, 34
----
4
34

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

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

query I rowsort
SELECT + 84 - + 68 * - 68 * 31 AS col0
----
143428

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT + 98 + COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-3363
SELECT + 98 + COUNT ( * ) AS col2
----
99

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

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

query I rowsort
SELECT 60 + + 97 AS col1
----
157

query I rowsort
SELECT ALL + 62 + - 36
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3367
SELECT 40 + - MIN( + CAST( NULL AS SIGNED ) ) + - + 73 * - + 44 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT 40 + - MIN ( + CAST ( NULL AS INTEGER ) ) + - + 73 * - + 44 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT - COALESCE ( - - 16, + 0 - CASE - 7 WHEN - + 52 THEN + COALESCE ( + COALESCE ( + + 24, 79 + + 79 + + ( NULLIF ( - - 55, - 21 ) ), - 71, 29 ), 24 * - 85 - 77 ) ELSE NULL END + COUNT( * ) * COUNT( * ) ) - - 9 * + 53 AS col0
----
461

skipif mysql # not compatible
query I rowsort label-3368
SELECT - COALESCE ( - - 16, + 0 - CASE - 7 WHEN - + 52 THEN + COALESCE ( + COALESCE ( + + 24, 79 + + 79 + + ( NULLIF ( - - 55, - 21 ) ), - 71, 29 ), 24 * - 85 - 77 ) ELSE NULL END + COUNT ( * ) * COUNT ( * ) ) - - 9 * + 53 AS col0
----
461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3369
SELECT - CAST( - + 9 AS SIGNED ) + - + MAX( + - 99 ) + - CASE NULLIF ( + 57, 61 ) WHEN + SUM( + + 6 ) + - 61 + ( - 88 ) * - 30 * + 8 THEN + COUNT( * ) WHEN NULLIF ( - 37, 14 + 57 ) / 27 + COUNT( * ) * + 53 THEN COUNT( * ) / 69 WHEN COUNT( * ) THEN NULL END * - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3369
SELECT - CAST ( - + 9 AS INTEGER ) + - + MAX ( + - 99 ) + - CASE NULLIF ( + 57, 61 ) WHEN + SUM ( + + 6 ) + - 61 + ( - 88 ) * - 30 * + 8 THEN + COUNT ( * ) WHEN NULLIF ( - 37, 14 + 57 ) / 27 + COUNT ( * ) * + 53 THEN COUNT ( * ) / 69 WHEN COUNT ( * ) THEN NULL END * - 41 AS col0
----
NULL

query II rowsort
SELECT ALL + 71 + + + 36 AS col0, 93
----
107
93

query I rowsort
SELECT - ( CASE 48 WHEN + - 5 THEN NULL WHEN + - 36 + - 28 THEN - 12 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT ALL + SUM( + 26 ) + + 62
----
88

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL + SUM ( + 26 ) + + 62
----
88

query I rowsort
SELECT 89 + - 12
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3374
SELECT 99 + - CAST( NULL AS SIGNED ) * 62 - - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT 99 + - CAST ( NULL AS INTEGER ) * 62 - - + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT 8 + - + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-3375
SELECT 8 + - + COUNT ( * )
----
7

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

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

query I rowsort
SELECT ALL - 2 * - 97 AS col0
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT 89 * CASE - 50 WHEN - 51 / + 88 THEN + + 71 + + 71 + + 71 * - 51 * + - ( + - 90 ) * - MAX( + 50 ) - 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT 89 * CASE - 50 WHEN - 51 / + 88 THEN + + 71 + + 71 + + 71 * - 51 * + - ( + - 90 ) * - MAX ( + 50 ) - 25 END
----
NULL

query I rowsort
SELECT 24 + 41 col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT DISTINCT - SUM( ALL CASE - - 81 WHEN - 93 + + - 2 * - 95 THEN - - 43 ELSE 47 END )
----
-47

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT - SUM ( ALL CASE - - 81 WHEN - 93 + + - 2 * - 95 THEN - - 43 ELSE 47 END )
----
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT 14 * - COALESCE ( + 89, 53, - + COUNT( * ), - - 6, + + 99 )
----
-1246

skipif mysql # not compatible
query I rowsort label-3382
SELECT 14 * - COALESCE ( + 89, 53, - + COUNT ( * ), - - 6, + + 99 )
----
-1246

query II rowsort
SELECT ALL - 85, - CASE 32 WHEN + + ( + 26 ) THEN + 11 WHEN - 98 THEN 29 WHEN 12 * + 32 THEN NULL ELSE NULL END AS col0
----
-85
NULL

query II rowsort
SELECT ALL - 88 AS col2, ( - 4 ) col2
----
-88
-4

query II rowsort
SELECT 43 AS col2, + 17
----
43
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT 4 * - + NULLIF ( - - 98, CAST( NULL AS SIGNED ) ) AS col2
----
-392

skipif mysql # not compatible
query I rowsort label-3386
SELECT 4 * - + NULLIF ( - - 98, CAST ( NULL AS INTEGER ) ) AS col2
----
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL - CASE - ( + NULLIF ( + 31, - - 7 ) ) WHEN + 57 + - COUNT( * ) THEN + - 79 WHEN - 22 * + + 38 THEN NULL ELSE 75 END
----
-75

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - CASE - ( + NULLIF ( + 31, - - 7 ) ) WHEN + 57 + - COUNT ( * ) THEN + - 79 WHEN - 22 * + + 38 THEN NULL ELSE 75 END
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3388
SELECT DISTINCT NULLIF ( + 44, + 72 DIV + 63 + + 98 * - 9 + - - COUNT( * ) ) DIV 42 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT NULLIF ( + 44, + 72 / + 63 + + 98 * - 9 + - - COUNT ( * ) ) / 42 AS col2
----
1

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

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

query I rowsort
SELECT ALL 51 + 37
----
88

query I rowsort
SELECT ( + + 60 ) * + 30 AS col2
----
1800

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3392
SELECT - 95 + + 69 * - - 36 DIV - CAST( 6 AS SIGNED )
----
-509

skipif mysql # not compatible
query I rowsort label-3392
SELECT - 95 + + 69 * - - 36 / - CAST ( 6 AS INTEGER )
----
-509

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT - COUNT( * ) * + + 21 * - + MAX( - 95 ) AS col1
----
-1995

skipif mysql # not compatible
query I rowsort label-3393
SELECT - COUNT ( * ) * + + 21 * - + MAX ( - 95 ) AS col1
----
-1995

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

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

query I rowsort
SELECT - 62 * + 46 * + 46
----
-131192

query I rowsort
SELECT 67 * + 51
----
3417

query II rowsort
SELECT - 85 col2, + 26
----
-85
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT SUM( ALL 75 ) * 17
----
1275

skipif mysql # not compatible
query I rowsort label-3398
SELECT SUM ( ALL 75 ) * 17
----
1275

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3399
SELECT 2 AS col0, + 4 + 70 / - - 33 * CAST( NULL AS SIGNED ) * + 22
----
2
NULL

skipif mysql # not compatible
query II rowsort label-3399
SELECT 2 AS col0, + 4 + 70 / - - 33 * CAST ( NULL AS INTEGER ) * + 22
----
2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT 80 * + - COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT 80 * + - COUNT ( * ) AS col0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT 79 - + 9 * + 66 * + - 95 + ( - - 47 ) + + NULLIF ( 47, - 20 * + 1 - + CAST( - 90 AS SIGNED ) ) - ( 22 ) col1
----
56581

skipif mysql # not compatible
query I rowsort label-3401
SELECT 79 - + 9 * + 66 * + - 95 + ( - - 47 ) + + NULLIF ( 47, - 20 * + 1 - + CAST ( - 90 AS INTEGER ) ) - ( 22 ) col1
----
56581

query I rowsort
SELECT 24 * - 61
----
-1464

query II rowsort
SELECT ALL 74 AS col2, ( + + 24 ) * 27 col1
----
74
648

query I rowsort
SELECT ( 88 ) * + 46 AS col2
----
4048

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3405
SELECT DISTINCT 80 AS col1, - 47 DIV + COUNT( * )
----
80
-47

skipif mysql # not compatible
query II rowsort label-3405
SELECT DISTINCT 80 AS col1, - 47 / + COUNT ( * )
----
80
-47

query II rowsort
SELECT ALL 82, 94 + - 21 AS col1
----
82
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT 14 DIV + 42 col0
----
0

skipif mysql # not compatible
query I rowsort label-3407
SELECT 14 / + 42 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3408
SELECT 35 DIV 66 - + 64 + + 62 * - - 46 AS col2
----
2788

skipif mysql # not compatible
query I rowsort label-3408
SELECT 35 / 66 - + 64 + + 62 * - - 46 AS col2
----
2788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3409
SELECT CASE + 23 WHEN + - NULLIF ( + 22, + CAST( NULL AS SIGNED ) ) * 34 * + COUNT( * ) * - 87 / + 5 THEN - + 95 WHEN + MAX( DISTINCT - - 45 ) * + - 30 * + 57 + + 76 THEN - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT CASE + 23 WHEN + - NULLIF ( + 22, + CAST ( NULL AS INTEGER ) ) * 34 * + COUNT ( * ) * - 87 / + 5 THEN - + 95 WHEN + MAX ( DISTINCT - - 45 ) * + - 30 * + 57 + + 76 THEN - 18 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3410
SELECT + 95 * + 10 * - COUNT( * ) DIV COUNT( * ) + + - 21 + 27 + - CAST( 87 AS SIGNED ) * + + 88 * + 85 AS col1
----
-651704

skipif mysql # not compatible
query I rowsort label-3410
SELECT + 95 * + 10 * - COUNT ( * ) / COUNT ( * ) + + - 21 + 27 + - CAST ( 87 AS INTEGER ) * + + 88 * + 85 AS col1
----
-651704

onlyif mysql # DIV for integer division: 
query I rowsort label-3411
SELECT 39 DIV + - 72
----
0

skipif mysql # not compatible
query I rowsort label-3411
SELECT 39 / + - 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3412
SELECT ALL + COALESCE ( - 93, 51 + + 38 * - 20 - + 27 ) / - CASE 41 WHEN CASE 3 WHEN 71 THEN NULL ELSE - CASE - 89 WHEN + CAST( + COUNT( * ) AS SIGNED ) THEN - - 77 * + SUM( - 50 ) WHEN + 62 * - 46 THEN NULL WHEN 83 / - 33 + ( - COUNT( * ) ) THEN NULL END / 29 END THEN - CAST( NULL AS SIGNED ) / - 51 + 26 END / 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL + COALESCE ( - 93, 51 + + 38 * - 20 - + 27 ) / - CASE 41 WHEN CASE 3 WHEN 71 THEN NULL ELSE - CASE - 89 WHEN + CAST ( + COUNT ( * ) AS INTEGER ) THEN - - 77 * + SUM ( - 50 ) WHEN + 62 * - 46 THEN NULL WHEN 83 / - 33 + ( - COUNT ( * ) ) THEN NULL END / 29 END THEN - CAST ( NULL AS INTEGER ) / - 51 + 26 END / 83 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL - MAX ( ALL - 20 )
----
20

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

skipif mysql # not compatible
query II rowsort label-3414
SELECT COUNT ( * ) AS col2, - 67 AS col0
----
1
-67

query I rowsort
SELECT 23 + + 80
----
103

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

skipif mysql # not compatible
query II rowsort label-3416
SELECT ALL - 99 * - - 6 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
-594
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3417
SELECT 29 DIV 14 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3417
SELECT 29 / 14 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3418
SELECT ALL - 61 * - 18 * - CAST( NULL AS SIGNED ) * - 35 + COUNT( * ) * ( - + MAX( + 15 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL - 61 * - 18 * - CAST ( NULL AS INTEGER ) * - 35 + COUNT ( * ) * ( - + MAX ( + 15 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3419
SELECT DISTINCT + 20 * 66 + + + SUM( ALL + NULLIF ( 98, - CAST( NULL AS SIGNED ) / - + 23 * + COALESCE ( + + 47, - + ( - - 22 ) ) ) )
----
1418

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT + 20 * 66 + + + SUM ( ALL + NULLIF ( 98, - CAST ( NULL AS INTEGER ) / - + 23 * + COALESCE ( + + 47, - + ( - - 22 ) ) ) )
----
1418

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT + + ( + 45 ) * + CASE AVG ( DISTINCT - 76 ) WHEN 57 THEN NULL WHEN + 46 THEN NULL ELSE + 78 * + + 83 END * - + COUNT( DISTINCT 65 ) + + 65 - + 4 * - + 44 + + NULLIF ( + + 64, - 95 + 36 / - 15 ) + MAX( DISTINCT + ( 31 ) ) AS col2
----
-290994

skipif mysql # not compatible
query I rowsort label-3420
SELECT + + ( + 45 ) * + CASE AVG ( DISTINCT - 76 ) WHEN 57 THEN NULL WHEN + 46 THEN NULL ELSE + 78 * + + 83 END * - + COUNT ( DISTINCT 65 ) + + 65 - + 4 * - + 44 + + NULLIF ( + + 64, - 95 + 36 / - 15 ) + MAX ( DISTINCT + ( 31 ) ) AS col2
----
-290994

query I rowsort
SELECT - 10 + + + 12 + + 54 * 44 + - 66 AS col0
----
2312

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT - SUM( 86 ) * - 9
----
774

skipif mysql # not compatible
query I rowsort label-3422
SELECT - SUM ( 86 ) * - 9
----
774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT - - 90 + - + ( - ( + 35 ) ) * - - CAST( NULL AS SIGNED ) + + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT - - 90 + - + ( - ( + 35 ) ) * - - CAST ( NULL AS INTEGER ) + + 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3424
SELECT + - 91 * + NULLIF ( - 63, 54 * - 6 + - MAX( ALL + 59 ) ) + + 68 + + 1 + - - 13 + - 0, ( COUNT( * ) ) col2
----
5815
1

skipif mysql # not compatible
query II rowsort label-3424
SELECT + - 91 * + NULLIF ( - 63, 54 * - 6 + - MAX ( ALL + 59 ) ) + + 68 + + 1 + - - 13 + - 0, ( COUNT ( * ) ) col2
----
5815
1

query I rowsort
SELECT + + 9 * + 28 AS col0
----
252

onlyif mysql # aggregate syntax: 
query II rowsort label-3426
SELECT DISTINCT + + 29 * - 51 AS col1, COUNT( ALL + 18 )
----
-1479
1

skipif mysql # not compatible
query II rowsort label-3426
SELECT DISTINCT + + 29 * - 51 AS col1, COUNT ( ALL + 18 )
----
-1479
1

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

query I rowsort
SELECT ALL - 35 + - 25 col2
----
-60

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

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

query I rowsort
SELECT ALL COALESCE ( + + 33, - 39 ) - + ( + NULLIF ( 67, + 70 * - + 46 ) ) AS col1
----
-34

query I rowsort
SELECT + 82 - 47
----
35

query I rowsort
SELECT DISTINCT + 43 * + 76 AS col0
----
3268

query I rowsort
SELECT ALL - - 87 * + 97
----
8439

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3434
SELECT DISTINCT 86, - 4 + 41 * 21 * + CAST( NULL AS SIGNED ) col0
----
86
NULL

skipif mysql # not compatible
query II rowsort label-3434
SELECT DISTINCT 86, - 4 + 41 * 21 * + CAST ( NULL AS INTEGER ) col0
----
86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT + 23 + - - COUNT( * ) + 61
----
85

skipif mysql # not compatible
query I rowsort label-3435
SELECT + 23 + - - COUNT ( * ) + 61
----
85

query I rowsort
SELECT + 50 * 83 AS col1
----
4150

query I rowsort
SELECT + 9 * - + 48 AS col1
----
-432

onlyif mysql # DIV for integer division: 
query II rowsort label-3438
SELECT + 21 + 47 + - + 13 DIV + 10 - - + 91, ( + 97 ) AS col2
----
158
97

skipif mysql # not compatible
query II rowsort label-3438
SELECT + 21 + 47 + - + 13 / + 10 - - + 91, ( + 97 ) AS col2
----
158
97

query I rowsort
SELECT DISTINCT ( - - 91 ) AS col1
----
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT + 14 * + COUNT( * ) * 18 * + - 48 AS col0
----
-12096

skipif mysql # not compatible
query I rowsort label-3441
SELECT + 14 * + COUNT ( * ) * 18 * + - 48 AS col0
----
-12096

query I rowsort
SELECT + 91 + + 96 AS col2
----
187

query II rowsort
SELECT + 67 + - - 54, + 51 col2
----
121
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT CASE - NULLIF ( + MAX( DISTINCT - - 94 ), + + 57 + 77 - - COUNT( * ) * + 87 ) WHEN - 27 THEN NULL WHEN + 11 THEN + 73 * 71 ELSE + 59 - - 18 END * 29 + COALESCE ( 19, 24 ) - + 99
----
2153

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT CASE - NULLIF ( + MAX ( DISTINCT - - 94 ), + + 57 + 77 - - COUNT ( * ) * + 87 ) WHEN - 27 THEN NULL WHEN + 11 THEN + 73 * 71 ELSE + 59 - - 18 END * 29 + COALESCE ( 19, 24 ) - + 99
----
2153

onlyif mysql # aggregate syntax: 
query II rowsort label-3445
SELECT + COUNT( * ) + + 54, 64 AS col2
----
55
64

skipif mysql # not compatible
query II rowsort label-3445
SELECT + COUNT ( * ) + + 54, 64 AS col2
----
55
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT + 48 + + ( + - COUNT( * ) )
----
47

skipif mysql # not compatible
query I rowsort label-3447
SELECT + 48 + + ( + - COUNT ( * ) )
----
47

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3449
SELECT - COUNT( * ) + - 85 + 55 + + - COUNT( * ) * - 28 + - + COUNT( * ) - - 74 DIV - 70
----
-5

skipif mysql # not compatible
query I rowsort label-3449
SELECT - COUNT ( * ) + - 85 + 55 + + - COUNT ( * ) * - 28 + - + COUNT ( * ) - - 74 / - 70
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3450
SELECT ALL - 17 DIV NULLIF ( 20, - NULLIF ( + 82, ( + - 21 ) ) ) + + 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL - 17 / NULLIF ( 20, - NULLIF ( + 82, ( + - 21 ) ) ) + + 10 AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3451
SELECT ALL 40 DIV - - 79 + - 24 + - + 17
----
-41

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL 40 / - - 79 + - 24 + - + 17
----
-41

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

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

query I rowsort
SELECT - - 80 + + 84 * - NULLIF ( + 34, + 20 + - + 85 ) AS col2
----
-2776

onlyif mysql # aggregate syntax: 
query II rowsort label-3454
SELECT - 55 * 14 AS col2, + COUNT( * ) col1
----
-770
1

skipif mysql # not compatible
query II rowsort label-3454
SELECT - 55 * 14 AS col2, + COUNT ( * ) col1
----
-770
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT - + COUNT( * ) + - MIN( ALL - 91 ) + + 15 * + - COUNT( * ) * + 26 AS col2
----
-300

skipif mysql # not compatible
query I rowsort label-3455
SELECT - + COUNT ( * ) + - MIN ( ALL - 91 ) + + 15 * + - COUNT ( * ) * + 26 AS col2
----
-300

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

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

query I rowsort
SELECT + + 61 * + ( + - 41 )
----
-2501

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT 39 * + - 20 * - 13 * + 55 * - 61 * - + 41 + + COUNT( * ) AS col2
----
1394807701

skipif mysql # not compatible
query I rowsort label-3458
SELECT 39 * + - 20 * - 13 * + 55 * - 61 * - + 41 + + COUNT ( * ) AS col2
----
1394807701

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

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

query I rowsort
SELECT DISTINCT + + 36 col0
----
36

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

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

query I rowsort
SELECT - + 3 + 97 + - 90
----
4

query I rowsort
SELECT - 84 - - 60 + 1 + + - ( - - 67 ) + + 33 AS col2
----
-57

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3465
SELECT ALL + COALESCE ( + - CAST( 93 AS SIGNED ), + + 51 * + 89 + ( - 83 ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL + COALESCE ( + - CAST ( 93 AS INTEGER ), + + 51 * + 89 + ( - 83 ) ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-3466
SELECT - + 59 * + - COUNT( * ), - 33 AS col2
----
59
-33

skipif mysql # not compatible
query II rowsort label-3466
SELECT - + 59 * + - COUNT ( * ), - 33 AS col2
----
59
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3467
SELECT - 16 + - COUNT( * ) AS col2, - 51
----
-17
-51

skipif mysql # not compatible
query II rowsort label-3467
SELECT - 16 + - COUNT ( * ) AS col2, - 51
----
-17
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3468
SELECT - 15 / - - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT - 15 / - - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - - 17
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT ALL CAST( + 4 AS SIGNED ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL CAST ( + 4 AS INTEGER ) AS col2
----
4

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3472
SELECT 21, 39 * - + 77 * + - 5 - + - 94 + - 10 + 92 DIV 49 + 25 * - 51 AS col1
----
21
13825

skipif mysql # not compatible
query II rowsort label-3472
SELECT 21, 39 * - + 77 * + - 5 - + - 94 + - 10 + 92 / 49 + 25 * - 51 AS col1
----
21
13825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT - CAST( NULL AS SIGNED ) + + 98 + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT - CAST ( NULL AS INTEGER ) + + 98 + - 12
----
NULL

query I rowsort
SELECT ALL + 72 + + 25 + - - 0
----
97

query I rowsort
SELECT ALL 71 + - - 34 AS col2
----
105

query II rowsort
SELECT - 3, - 17 AS col2
----
-3
-17

query I rowsort
SELECT + - NULLIF ( + 84, - 88 - - 38 )
----
-84

query I rowsort
SELECT ALL + 70 + - 96
----
-26

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

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

query II rowsort
SELECT + 47, 16 * 72 AS col1
----
47
1152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3481
SELECT ALL - 70, - 13 * + - 12 * ( CAST( NULL AS SIGNED ) ) + - COUNT( * ) - - SUM( ALL - + 55 ) * + + 71 / 10 + - 59 AS col2
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-3481
SELECT ALL - 70, - 13 * + - 12 * ( CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) - - SUM ( ALL - + 55 ) * + + 71 / 10 + - 59 AS col2
----
-70
NULL

query II rowsort
SELECT - 19 AS col2, 52 * - - 33 AS col2
----
-19
1716

onlyif mysql # aggregate syntax: 
query II rowsort label-3483
SELECT DISTINCT - + 67 AS col2, - COUNT( * ) AS col0
----
-67
-1

skipif mysql # not compatible
query II rowsort label-3483
SELECT DISTINCT - + 67 AS col2, - COUNT ( * ) AS col0
----
-67
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT ALL - 54 - - CAST( - + ( 73 ) AS SIGNED ) + ( - 57 ) + + ( + 61 )
----
-123

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL - 54 - - CAST ( - + ( 73 ) AS INTEGER ) + ( - 57 ) + + ( + 61 )
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT SUM( ALL + 99 ) + - 23 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3486
SELECT SUM ( ALL + 99 ) + - 23 AS col2
----
76

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

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

query II rowsort
SELECT - 0 - - + 65 * + + 84 - - 18 AS col2, - 15 * - 69 AS col0
----
5478
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT DISTINCT + + CASE + 37 WHEN - 55 THEN - - 78 + CASE 21 WHEN - 72 THEN + - 71 END + 65 * - 74 ELSE MIN( DISTINCT 73 ) * 39 END * - + 17
----
-48399

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT + + CASE + 37 WHEN - 55 THEN - - 78 + CASE 21 WHEN - 72 THEN + - 71 END + 65 * - 74 ELSE MIN ( DISTINCT 73 ) * 39 END * - + 17
----
-48399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3491
SELECT ALL COUNT( * ) DIV 32 * - - 62 col0
----
0

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL COUNT ( * ) / 32 * - - 62 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - MAX( + 44 ) + - ( - 38 )
----
-6

skipif mysql # not compatible
query I rowsort label-3492
SELECT - MAX ( + 44 ) + - ( - 38 )
----
-6

query I rowsort
SELECT DISTINCT 21 * 98 AS col2
----
2058

query I rowsort
SELECT ALL 80 + + 39 * - 25 AS col0
----
-895

query I rowsort
SELECT 14 + + - NULLIF ( 42, - 47 + + - NULLIF ( + 36, - 22 + - 46 ) ) col0
----
-28

query I rowsort
SELECT DISTINCT - 58 + + 51 AS col1
----
-7

query I rowsort
SELECT 98 * 37 * - + NULLIF ( + 26, 4 )
----
-94276

query I rowsort
SELECT 33 + 7 * - + 77
----
-506

onlyif mysql # aggregate syntax: 
query II rowsort label-3499
SELECT ALL - COUNT( * ) + + + 32 AS col0, 92 AS col2
----
31
92

skipif mysql # not compatible
query II rowsort label-3499
SELECT ALL - COUNT ( * ) + + + 32 AS col0, 92 AS col2
----
31
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3500
SELECT 4 + COUNT( * ) AS col1, 19 + MIN( ALL - + 86 ) * + + 93 AS col0
----
5
-7979

skipif mysql # not compatible
query II rowsort label-3500
SELECT 4 + COUNT ( * ) AS col1, 19 + MIN ( ALL - + 86 ) * + + 93 AS col0
----
5
-7979

onlyif mysql # aggregate syntax: 
query II rowsort label-3501
SELECT COUNT( * ) + - 6 AS col0, - 9
----
-5
-9

skipif mysql # not compatible
query II rowsort label-3501
SELECT COUNT ( * ) + - 6 AS col0, - 9
----
-5
-9

query I rowsort
SELECT 14 + 44 AS col0
----
58

query I rowsort
SELECT ALL - 13 + - - 52
----
39

query I rowsort
SELECT 23 + 47 AS col2
----
70

query I rowsort
SELECT ALL - 40 + - 56 * + 70 AS col2
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT DISTINCT - 95 + + COUNT( * ) * - - 89
----
-6

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - 95 + + COUNT ( * ) * - - 89
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL + 40 + + 56 * - COUNT( * ) * - - 91 + + 97 AS col0
----
-4959

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + 40 + + 56 * - COUNT ( * ) * - - 91 + + 97 AS col0
----
-4959

query I rowsort
SELECT DISTINCT + 95 + 22
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT MAX( - 47 ) + + + 13 - 21 * 76
----
-1630

skipif mysql # not compatible
query I rowsort label-3509
SELECT MAX ( - 47 ) + + + 13 - 21 * 76
----
-1630

query I rowsort
SELECT 39 * + 43
----
1677

onlyif mysql # aggregate syntax: 
query II rowsort label-3511
SELECT 49 * + 62 AS col1, COALESCE ( - - 29, 92 ) + - COUNT( * )
----
3038
28

skipif mysql # not compatible
query II rowsort label-3511
SELECT 49 * + 62 AS col1, COALESCE ( - - 29, 92 ) + - COUNT ( * )
----
3038
28

query I rowsort
SELECT - CASE + + 18 WHEN - ( - 4 ) THEN + 38 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL + - MAX( 7 ) - - 30 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL + - MAX ( 7 ) - - 30 AS col1
----
23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3515
SELECT DISTINCT + 17 DIV ( + - 25 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT + 17 / ( + - 25 ) AS col1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3517
SELECT + 39 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-3517
SELECT + 39 / + 43
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3518
SELECT - 48 + - 90 AS col2, MIN( ALL + + 64 ) * + 36
----
-138
2304

skipif mysql # not compatible
query II rowsort label-3518
SELECT - 48 + - 90 AS col2, MIN ( ALL + + 64 ) * + 36
----
-138
2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3519
SELECT + CASE + 75 WHEN + 62 THEN NULL WHEN 68 * - 97 * + 41 THEN CASE + 60 WHEN + 18 THEN - - CASE - COALESCE ( ( 97 ), 95, - 32 * 10 ) WHEN + 25 + - - 51 THEN NULL WHEN - 90 - + COUNT( * ) THEN + 49 DIV 22 ELSE + 78 END DIV 73 + + COUNT( * ) * 28 WHEN - 67 THEN NULL ELSE NULL END ELSE - CAST( 76 AS SIGNED ) * 74 + 35 * + 44 END * ( - 21 + - COUNT( * ) ) + - ( + COALESCE ( + 53, - 72, 3, - ( + CAST( 10 AS SIGNED ) ) DIV - NULLIF ( 83, - 37 ) ) )
----
89795

skipif mysql # not compatible
query I rowsort label-3519
SELECT + CASE + 75 WHEN + 62 THEN NULL WHEN 68 * - 97 * + 41 THEN CASE + 60 WHEN + 18 THEN - - CASE - COALESCE ( ( 97 ), 95, - 32 * 10 ) WHEN + 25 + - - 51 THEN NULL WHEN - 90 - + COUNT ( * ) THEN + 49 / 22 ELSE + 78 END / 73 + + COUNT ( * ) * 28 WHEN - 67 THEN NULL ELSE NULL END ELSE - CAST ( 76 AS INTEGER ) * 74 + 35 * + 44 END * ( - 21 + - COUNT ( * ) ) + - ( + COALESCE ( + 53, - 72, 3, - ( + CAST ( 10 AS INTEGER ) ) / - NULLIF ( 83, - 37 ) ) )
----
89795

query I rowsort
SELECT 47 - + 17 + 22
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ALL 59 * + 19 * + ( + 37 ) + - COUNT( * ) col1
----
41476

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL 59 * + 19 * + ( + 37 ) + - COUNT ( * ) col1
----
41476

query I rowsort
SELECT DISTINCT 7 * 50 AS col0
----
350

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT + ( + + 0 ) DIV - 23 + - 23
----
-23

skipif mysql # not compatible
query I rowsort label-3523
SELECT + ( + + 0 ) / - 23 + - 23
----
-23

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

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL + 71 + - + COUNT ( * ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT 39 + COUNT( * ) * + 0 - 50
----
-11

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT 39 + COUNT ( * ) * + 0 - 50
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL - COALESCE ( - + 21, 7 + - COUNT( * ), - 66 ) + - - ( + 75 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL - COALESCE ( - + 21, 7 + - COUNT ( * ), - 66 ) + - - ( + 75 ) AS col0
----
96

query I rowsort
SELECT ( + - 65 ) * - 2 - - - 95 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3528
SELECT ALL NULLIF ( - + COALESCE ( + COUNT( * ), - 23 * - 57 + - 34 + - MIN( - + 66 ) * CASE 14 WHEN + + 9 THEN NULL WHEN - 95 * - ( + + 3 ) THEN NULL ELSE - 10 END ), + 16 + 56 + CAST( + + COUNT( * ) AS SIGNED ) * 66 ) + 43 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL NULLIF ( - + COALESCE ( + COUNT ( * ), - 23 * - 57 + - 34 + - MIN ( - + 66 ) * CASE 14 WHEN + + 9 THEN NULL WHEN - 95 * - ( + + 3 ) THEN NULL ELSE - 10 END ), + 16 + 56 + CAST ( + + COUNT ( * ) AS INTEGER ) * 66 ) + 43 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3529
SELECT DISTINCT COALESCE ( - 45, + ( + - COUNT( * ) ) ) DIV + 1 + 54 DIV + CAST( - - 62 AS SIGNED ) * 27 + 92 AS col2, ( - 44 ) DIV + - COUNT( * )
----
47
44

skipif mysql # not compatible
query II rowsort label-3529
SELECT DISTINCT COALESCE ( - 45, + ( + - COUNT ( * ) ) ) / + 1 + 54 / + CAST ( - - 62 AS INTEGER ) * 27 + 92 AS col2, ( - 44 ) / + - COUNT ( * )
----
47
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT ALL ( + 78 ) * - CASE + COUNT( 53 ) WHEN 2 * 18 * - MIN( DISTINCT - 21 ) + - ( - + 26 ) + - COUNT( * ) / 19 THEN 1 END + + 13 + 7 * - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL ( + 78 ) * - CASE + COUNT ( 53 ) WHEN 2 * 18 * - MIN ( DISTINCT - 21 ) + - ( - + 26 ) + - COUNT ( * ) / 19 THEN 1 END + + 13 + 7 * - 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT DISTINCT COUNT( * ) + - 73 col0
----
-72

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT COUNT ( * ) + - 73 col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3532
SELECT + 48 + + 62 DIV - + 1 * - COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-3532
SELECT + 48 + + 62 / - + 1 * - COUNT ( * )
----
110

query I rowsort
SELECT - 54 * 86
----
-4644

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

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

query I rowsort
SELECT - NULLIF ( - 96, + 30 - - 67 * - + 67 + 95 )
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3536
SELECT - 18 + COALESCE ( + COALESCE ( + 41, + 13, 91 DIV + NULLIF ( 73, 38 * - ( 45 ) ) DIV + 55 * 5 ), - COUNT( * ) * 58 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3536
SELECT - 18 + COALESCE ( + COALESCE ( + 41, + 13, 91 / + NULLIF ( 73, 38 * - ( 45 ) ) / + 55 * 5 ), - COUNT ( * ) * 58 ) AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3537
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), - + 24 + 19 + - COUNT( * ) - + + 8 ) * + 5 * 73 * - 47 / + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), - + 24 + 19 + - COUNT ( * ) - + + 8 ) * + 5 * 73 * - 47 / + + 77
----
NULL

query II rowsort
SELECT - + ( - 55 ) + 91 AS col1, 45
----
146
45

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

query I rowsort
SELECT - - 98 + + 19 - + 6 * 26
----
-39

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT - + 82 * 87 DIV 21 col2
----
-339

skipif mysql # not compatible
query I rowsort label-3542
SELECT - + 82 * 87 / 21 col2
----
-339

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT DISTINCT + 60 DIV - - 98 + - + 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT + 60 / - - 98 + - + 25 AS col1
----
-25

query II rowsort
SELECT + - 20, - ( + - 96 ) + 1 + - - 44 col0
----
-20
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT - 77 * ( - COUNT( * ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3545
SELECT - 77 * ( - COUNT ( * ) ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL + + NULLIF ( + COUNT( 67 ), + 75 / + 3 + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL + + NULLIF ( + COUNT ( 67 ), + 75 / + 3 + 71 )
----
1

query I rowsort
SELECT - - 55 * 43 + - 36 + + 24 AS col1
----
2353

query I rowsort
SELECT - + 97 + - ( 63 ) col1
----
-160

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3550
SELECT ALL - ( 20 ) DIV 38 col2, 7 * 78 + - - 33 AS col0
----
0
579

skipif mysql # not compatible
query II rowsort label-3550
SELECT ALL - ( 20 ) / 38 col2, 7 * 78 + - - 33 AS col0
----
0
579

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT MAX( - - 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3551
SELECT MAX ( - - 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT - COUNT( * ) * 21 + 4 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT - COUNT ( * ) * 21 + 4 AS col2
----
-17

query I rowsort
SELECT + 62 * 21 * + 84 * + 82
----
8968176

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL + 34 * - + MAX( ALL - 98 ) * 16 + - 10 AS col1
----
53302

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL + 34 * - + MAX ( ALL - 98 ) * 16 + - 10 AS col1
----
53302

query I rowsort
SELECT + NULLIF ( - 23, + 51 )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-3556
SELECT - 56 + - ( - MAX( DISTINCT - 81 ) ), 4 AS col0
----
-137
4

skipif mysql # not compatible
query II rowsort label-3556
SELECT - 56 + - ( - MAX ( DISTINCT - 81 ) ), 4 AS col0
----
-137
4

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3560
SELECT MAX( - 11 ) AS col1, - MIN( - - COALESCE ( - + 91, ( - CAST( - + 75 AS SIGNED ) ) ) )
----
-11
91

skipif mysql # not compatible
query II rowsort label-3560
SELECT MAX ( - 11 ) AS col1, - MIN ( - - COALESCE ( - + 91, ( - CAST ( - + 75 AS INTEGER ) ) ) )
----
-11
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 4 - + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 4 - + + 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3562
SELECT ALL CAST( 69 AS SIGNED ) - + 55 * 29 AS col1, NULLIF ( - COUNT( * ), + 74 * 6 / + 82 - + 96 )
----
-1526
-1

skipif mysql # not compatible
query II rowsort label-3562
SELECT ALL CAST ( 69 AS INTEGER ) - + 55 * 29 AS col1, NULLIF ( - COUNT ( * ), + 74 * 6 / + 82 - + 96 )
----
-1526
-1

query I rowsort
SELECT + 66 * 87 AS col2
----
5742

onlyif mysql # aggregate syntax: 
query II rowsort label-3564
SELECT MIN( - 80 ) AS col2, + 66 AS col2
----
-80
66

skipif mysql # not compatible
query II rowsort label-3564
SELECT MIN ( - 80 ) AS col2, + 66 AS col2
----
-80
66

query I rowsort
SELECT 50 * - 63 + + 54
----
-3096

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT MIN( - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-3566
SELECT MIN ( - 53 )
----
-53

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

skipif mysql # not compatible
query II rowsort label-3567
SELECT - CAST ( NULL AS INTEGER ), 18 AS col0
----
NULL
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3568
SELECT - 24 DIV + - 38 AS col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-3568
SELECT - 24 / + - 38 AS col0, COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3569
SELECT - ( - + COUNT( * ) ) AS col2, + MIN( - - 35 ) + - + 46 - - 53 + + NULLIF ( + + 18, - 16 * + 1 )
----
1
60

skipif mysql # not compatible
query II rowsort label-3569
SELECT - ( - + COUNT ( * ) ) AS col2, + MIN ( - - 35 ) + - + 46 - - 53 + + NULLIF ( + + 18, - 16 * + 1 )
----
1
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - ( + + MIN( 42 ) ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-3571
SELECT - ( + + MIN ( 42 ) ) AS col0
----
-42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3573
SELECT DISTINCT 60 AS col1, CAST( NULL AS SIGNED ) / + 30 - 3 * + 3 * - + 13 + - - 88
----
60
NULL

skipif mysql # not compatible
query II rowsort label-3573
SELECT DISTINCT 60 AS col1, CAST ( NULL AS INTEGER ) / + 30 - 3 * + 3 * - + 13 + - - 88
----
60
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3574
SELECT - + SUM( DISTINCT + 40 ) AS col0, 11 * 23 * - + 52 * + + 65 AS col1
----
-40
-855140

skipif mysql # not compatible
query II rowsort label-3574
SELECT - + SUM ( DISTINCT + 40 ) AS col0, 11 * 23 * - + 52 * + + 65 AS col1
----
-40
-855140

query I rowsort
SELECT - - NULLIF ( - 34, - - 55 * 98 * 85 * - + 78 * - 38 ) AS col0
----
-34

query I rowsort
SELECT ALL - - 13 + - - 77
----
90

query I rowsort
SELECT DISTINCT + 37 * 35 + 71
----
1366

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3579
SELECT ALL 84 DIV COALESCE ( - 63, - CAST( 99 AS SIGNED ) - + ( + MIN( - - 98 ) ) - - + 57, 4 ) - ( 84 ) + 61 DIV 99 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL 84 / COALESCE ( - 63, - CAST ( 99 AS INTEGER ) - + ( + MIN ( - - 98 ) ) - - + 57, 4 ) - ( 84 ) + 61 / 99 AS col2
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3580
SELECT ALL + + 8 DIV + 11
----
0

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL + + 8 / + 11
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3582
SELECT - + COUNT( * ) + 61 + 58 / + + CASE + 56 WHEN CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) THEN NULL WHEN - - 96 THEN ( - CAST( 68 AS DECIMAL ) ) + - + 36 + - 10 + - 22 + - 35 * - 13 / - - 72 + - + ( - 26 ) * 95 END * + - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3582
SELECT - + COUNT ( * ) + 61 + 58 / + + CASE + 56 WHEN CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN NULL WHEN - - 96 THEN ( - CAST ( 68 AS REAL ) ) + - + 36 + - 10 + - 22 + - 35 * - 13 / - - 72 + - + ( - 26 ) * 95 END * + - 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT + COUNT( DISTINCT 99 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3583
SELECT + COUNT ( DISTINCT 99 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT - COUNT( * ) * + + 75 + 49 + + COUNT( - + 16 ) + + 42 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-3584
SELECT - COUNT ( * ) * + + 75 + 49 + + COUNT ( - + 16 ) + + 42 AS col0
----
17

query II rowsort
SELECT + NULLIF ( + + 11, + - 82 ) AS col0, 92
----
11
92

query I rowsort
SELECT ALL - 81 * + 7 col0
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT DISTINCT - MIN( - 1 ) * + - 89 + - 3 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT - MIN ( - 1 ) * + - 89 + - 3 AS col0
----
-92

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3589
SELECT DISTINCT 14 DIV - 77 * - - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT 14 / - 77 * - - 74 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT COUNT( * ) * - 30 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3590
SELECT COUNT ( * ) * - 30 AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT ALL - CAST( - - 78 AS SIGNED ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL - CAST ( - - 78 AS INTEGER ) AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3592
SELECT 64 * - 80, - CAST( 54 AS DECIMAL ) * + - CAST( NULL AS SIGNED ) * - + 3 AS col0
----
-5120
NULL

skipif mysql # not compatible
query II rowsort label-3592
SELECT 64 * - 80, - CAST ( 54 AS REAL ) * + - CAST ( NULL AS INTEGER ) * - + 3 AS col0
----
-5120
NULL

query I rowsort
SELECT DISTINCT - 74 * + 4
----
-296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3594
SELECT DISTINCT - 65 * + AVG ( 71 ) / + CASE - + ( - 47 ) WHEN + CASE + 47 WHEN - 96 THEN + 62 - 27 * - - 88 WHEN - - MAX( + - 15 ) THEN - - COUNT( * ) END * - 76 / + 88 THEN - - 37 WHEN + - 45 THEN NULL WHEN + COUNT( DISTINCT + 44 ) THEN NULL END * - 52 + + CAST( 74 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT - 65 * + AVG ( 71 ) / + CASE - + ( - 47 ) WHEN + CASE + 47 WHEN - 96 THEN + 62 - 27 * - - 88 WHEN - - MAX ( + - 15 ) THEN - - COUNT ( * ) END * - 76 / + 88 THEN - - 37 WHEN + - 45 THEN NULL WHEN + COUNT ( DISTINCT + 44 ) THEN NULL END * - 52 + + CAST ( 74 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3595
SELECT 77 * + 15 AS col0, 60 * - - COALESCE ( + + ( - COUNT( DISTINCT - - 12 ) ), - 57 * - + ( 20 ) DIV + ( - 72 ) + + 3 - 18 )
----
1155
-60

skipif mysql # not compatible
query II rowsort label-3595
SELECT 77 * + 15 AS col0, 60 * - - COALESCE ( + + ( - COUNT ( DISTINCT - - 12 ) ), - 57 * - + ( 20 ) / + ( - 72 ) + + 3 - 18 )
----
1155
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT NULLIF ( 21, - COUNT( * ) / 74 * + COUNT( * ) ) * + 27 AS col1
----
567

skipif mysql # not compatible
query I rowsort label-3596
SELECT NULLIF ( 21, - COUNT ( * ) / 74 * + COUNT ( * ) ) * + 27 AS col1
----
567

query I rowsort
SELECT + 50 + + 70 - + + 18 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT + 19 * - 5 * + SUM( ALL + 69 )
----
-6555

skipif mysql # not compatible
query I rowsort label-3598
SELECT + 19 * - 5 * + SUM ( ALL + 69 )
----
-6555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT + 59 + 14 + CAST( + 91 AS SIGNED ) + + + 66 * - 96 * + 96 + - + ( + 9 )
----
-608101

skipif mysql # not compatible
query I rowsort label-3599
SELECT + 59 + 14 + CAST ( + 91 AS INTEGER ) + + + 66 * - 96 * + 96 + - + ( + 9 )
----
-608101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT - + CAST( - 66 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-3600
SELECT - + CAST ( - 66 AS INTEGER )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3601
SELECT ALL - 35 + + COALESCE ( + 71, - + 90 + CASE + + 28 WHEN 61 THEN 43 - 10 ELSE NULL END DIV 95 * + NULLIF ( - 62, - 31 * - - 5 ) - 71, 72 DIV + 89 - 67, - SUM( DISTINCT 68 ) * - 43 ) * 72
----
5077

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL - 35 + + COALESCE ( + 71, - + 90 + CASE + + 28 WHEN 61 THEN 43 - 10 ELSE NULL END / 95 * + NULLIF ( - 62, - 31 * - - 5 ) - 71, 72 / + 89 - 67, - SUM ( DISTINCT 68 ) * - 43 ) * 72
----
5077

query I rowsort
SELECT 52 + - COALESCE ( + 10, + + 26 * 90 ) + + + 52
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3603
SELECT DISTINCT + 8 + COALESCE ( SUM( - 87 ), - 72 ) + + CASE - CAST( - 12 AS SIGNED ) WHEN - ( + 94 ) THEN - 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT + 8 + COALESCE ( SUM ( - 87 ), - 72 ) + + CASE - CAST ( - 12 AS INTEGER ) WHEN - ( + 94 ) THEN - 6 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3604
SELECT ALL CAST( NULL AS SIGNED ) * - - 40 AS col0, - COUNT( * ) * - + ( - + 12 )
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-3604
SELECT ALL CAST ( NULL AS INTEGER ) * - - 40 AS col0, - COUNT ( * ) * - + ( - + 12 )
----
NULL
-12

query I rowsort
SELECT ALL 69 + + - ( + 88 ) * - 61 AS col1
----
5437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT DISTINCT - 17 / - 25 * 52 * + + ( + + CAST( NULL AS SIGNED ) ) / + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT - 17 / - 25 * 52 * + + ( + + CAST ( NULL AS INTEGER ) ) / + 79 AS col2
----
NULL

query I rowsort
SELECT ALL + + 48 + + 97 AS col1
----
145

query II rowsort
SELECT 22 + - - 61, 88 AS col2
----
83
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT ALL - ( SUM( 47 ) ) * + 34
----
-1598

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL - ( SUM ( 47 ) ) * + 34
----
-1598

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT DISTINCT 96 * 39 * - SUM( - 52 )
----
194688

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT 96 * 39 * - SUM ( - 52 )
----
194688

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT + COUNT( * ) + 97
----
98

skipif mysql # not compatible
query I rowsort label-3611
SELECT + COUNT ( * ) + 97
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3612
SELECT - CAST( 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-3612
SELECT - CAST ( 14 AS INTEGER )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT 17 + 23 * - SUM( + + 71 ) * + - COUNT( * )
----
1650

skipif mysql # not compatible
query I rowsort label-3613
SELECT 17 + 23 * - SUM ( + + 71 ) * + - COUNT ( * )
----
1650

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

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

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

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

query II rowsort
SELECT DISTINCT - 1, ( + - 67 ) AS col2
----
-1
-67

query II rowsort
SELECT DISTINCT 50 - + 78 - - 61, 88 AS col2
----
33
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3618
SELECT DISTINCT - 75, 65 * COUNT( * ) * 2 AS col0
----
-75
130

skipif mysql # not compatible
query II rowsort label-3618
SELECT DISTINCT - 75, 65 * COUNT ( * ) * 2 AS col0
----
-75
130

query I rowsort
SELECT ALL - 50 * - 53 * + 57 AS col2
----
151050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3620
SELECT 49 - - MAX( - CAST( NULL AS SIGNED ) ), 59 AS col0
----
NULL
59

skipif mysql # not compatible
query II rowsort label-3620
SELECT 49 - - MAX ( - CAST ( NULL AS INTEGER ) ), 59 AS col0
----
NULL
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3621
SELECT DISTINCT 85 - 99 + + + 7 DIV - - 29
----
-14

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT 85 - 99 + + + 7 / - - 29
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL - MIN( + 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL - MIN ( + 74 ) AS col0
----
-74

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

skipif mysql # not compatible
query I rowsort label-3623
SELECT ( - 27 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 75 AS col2, + 37 * - ( 77 ) * + - 35 * + ( - 2 ) AS col2
----
75
-199430

query I rowsort
SELECT 32 * 63 AS col1
----
2016

query I rowsort
SELECT ALL - 50 * - 74
----
3700

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT 39 + 38 + - - 7 * - 63 + + + SUM( DISTINCT + - 4 )
----
-368

skipif mysql # not compatible
query I rowsort label-3627
SELECT 39 + 38 + - - 7 * - 63 + + + SUM ( DISTINCT + - 4 )
----
-368

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

query I rowsort
SELECT ALL - 51 * - 4
----
204

query I rowsort
SELECT 67 + 25 AS col1
----
92

query II rowsort
SELECT ALL - ( - + ( 81 ) ) AS col1, 80
----
81
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3632
SELECT COUNT( + - CAST( - + 46 AS DECIMAL ) ) + 48 * - COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3632
SELECT COUNT ( + - CAST ( - + 46 AS REAL ) ) + 48 * - COUNT ( * ) AS col1
----
-47

query I rowsort
SELECT 83 + + 65 * + - 62 * + 81 + + 60 AS col0
----
-326287

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT DISTINCT + SUM( DISTINCT 91 ) + + 18 + - - 70 - 21 AS col1
----
158

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT + SUM ( DISTINCT 91 ) + + 18 + - - 70 - 21 AS col1
----
158

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

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

query I rowsort
SELECT 88 + - 40
----
48

query I rowsort
SELECT ALL + 39 + - + 13 AS col1
----
26

query I rowsort
SELECT ALL + 48 * 87
----
4176

query I rowsort
SELECT - COALESCE ( - - 17, - 15 * - - 96 * + 78 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + 23 col0
----
21

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + 23 col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL + 79 + - - 57 + SUM( DISTINCT ( + 57 ) ) AS col0
----
193

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL + 79 + - - 57 + SUM ( DISTINCT ( + 57 ) ) AS col0
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) * - 91 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) * - 91 AS col0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3643
SELECT ALL - 24 + - CAST( NULL AS DECIMAL ) + - SUM( - + 0 ) * + 32 + + 67 * 20 * 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL - 24 + - CAST ( NULL AS REAL ) + - SUM ( - + 0 ) * + 32 + + 67 * 20 * 89 AS col0
----
NULL

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

query I rowsort
SELECT 36 * + 23
----
828

query I rowsort
SELECT ALL 3 - + - 27 * - 65 + + + 44
----
-1708

query I rowsort
SELECT + - 41 + 87
----
46

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

query I rowsort
SELECT DISTINCT 38 * ( + 30 )
----
1140

query I rowsort
SELECT + 38 * 9 col2
----
342

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

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

query I rowsort
SELECT ALL 61 * - 21 AS col1
----
-1281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3653
SELECT + 26 DIV - + 65 * + - ( + 80 ) * - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3653
SELECT + 26 / - + 65 * + - ( + 80 ) * - + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3654
SELECT + 25 * + + 26 + + COALESCE ( 8, + + ( 0 ), + MIN( DISTINCT - 8 ) * 41 + COUNT( * ) ) + CAST( NULL AS DECIMAL ) * - - ( 8 ) * - - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT + 25 * + + 26 + + COALESCE ( 8, + + ( 0 ), + MIN ( DISTINCT - 8 ) * 41 + COUNT ( * ) ) + CAST ( NULL AS REAL ) * - - ( 8 ) * - - 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT + MAX( - 13 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-3655
SELECT + MAX ( - 13 ) AS col2
----
-13

query I rowsort
SELECT + 2 * + 94 AS col0
----
188

query I rowsort
SELECT - 8 * - + 1 * + 3 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT DISTINCT COUNT( * ) * - 95 * + 6 * + COUNT( * ) * + 95
----
-54150

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT COUNT ( * ) * - 95 * + 6 * + COUNT ( * ) * + 95
----
-54150

query I rowsort
SELECT + 72 * + - 50 AS col1
----
-3600

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3662
SELECT - COALESCE ( - CAST( + 45 AS SIGNED ), 41 DIV 71 ) * + 23 * - ( COUNT( + 49 ) ) AS col1
----
-1035

skipif mysql # not compatible
query I rowsort label-3662
SELECT - COALESCE ( - CAST ( + 45 AS INTEGER ), 41 / 71 ) * + 23 * - ( COUNT ( + 49 ) ) AS col1
----
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT ALL 30 * - COUNT( * ) + + 98
----
68

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL 30 * - COUNT ( * ) + + 98
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT - 73 * 90 - - SUM( ALL - 44 ) * - + 75
----
-3270

skipif mysql # not compatible
query I rowsort label-3664
SELECT - 73 * 90 - - SUM ( ALL - 44 ) * - + 75
----
-3270

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

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

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

query I rowsort
SELECT DISTINCT 28 * - 10 AS col2
----
-280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3668
SELECT DISTINCT - 86 + + COALESCE ( - + 87, COALESCE ( + - 16, + 15 ) + - CAST( COUNT( * ) AS SIGNED ) ) + COUNT( * )
----
-172

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT - 86 + + COALESCE ( - + 87, COALESCE ( + - 16, + 15 ) + - CAST ( COUNT ( * ) AS INTEGER ) ) + COUNT ( * )
----
-172

query I rowsort
SELECT - 77 * 18 * + 94
----
-130284

onlyif mysql # aggregate syntax: 
query II rowsort label-3670
SELECT - 90 - + - COUNT( * ) + + - 58 - - - 16 * - ( + 95 ) + + - COUNT( * ), 73 + - 95 AS col2
----
1372
-22

skipif mysql # not compatible
query II rowsort label-3670
SELECT - 90 - + - COUNT ( * ) + + - 58 - - - 16 * - ( + 95 ) + + - COUNT ( * ), 73 + - 95 AS col2
----
1372
-22

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT - 4 DIV - + 85 - 83 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-3672
SELECT - 4 / - + 85 - 83 AS col1
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3673
SELECT - CAST( NULL AS DECIMAL ) * + 84 AS col1, + ( - 68 ) col2
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-3673
SELECT - CAST ( NULL AS REAL ) * + 84 AS col1, + ( - 68 ) col2
----
NULL
-68

query I rowsort
SELECT - 57 + + + 5
----
-52

query I rowsort
SELECT - + ( - 19 ) + - 83
----
-64

query II rowsort
SELECT DISTINCT - 42 * - 50, 50 col2
----
2100
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT - - 37 + - 82 - + + COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-3677
SELECT - - 37 + - 82 - + + COUNT ( * ) AS col1
----
-46

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

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

query I rowsort
SELECT - + ( + + 69 ) * + 48
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT DISTINCT NULLIF ( - 94, + 85 ) * + COUNT( * ) * - 82 + + 5
----
7713

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT NULLIF ( - 94, + 85 ) * + COUNT ( * ) * - 82 + + 5
----
7713

query I rowsort
SELECT ALL - 51 - 85
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT + COUNT( * ) + + 88
----
89

skipif mysql # not compatible
query I rowsort label-3682
SELECT + COUNT ( * ) + + 88
----
89

query I rowsort
SELECT - 50 * - 65
----
3250

query II rowsort
SELECT DISTINCT + ( - ( 80 ) ) AS col0, + 72
----
-80
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT + MIN( + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-3685
SELECT + MIN ( + 71 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3686
SELECT ALL - 88 DIV + COUNT( * ) + 95, 65 col2
----
7
65

skipif mysql # not compatible
query II rowsort label-3686
SELECT ALL - 88 / + COUNT ( * ) + 95, 65 col2
----
7
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT ALL + CAST( + - 55 AS SIGNED ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL + CAST ( + - 55 AS INTEGER ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3688
SELECT ALL CAST( NULL AS SIGNED ) / - 13 + - COUNT( * ) - + 81 + - 24 - ( - 1 ) + - 45 + + 82 - + - 35 / 51 / - - 32 * - NULLIF ( - 71, + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL CAST ( NULL AS INTEGER ) / - 13 + - COUNT ( * ) - + 81 + - 24 - ( - 1 ) + - 45 + + 82 - + - 35 / 51 / - - 32 * - NULLIF ( - 71, + 93 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3689
SELECT DISTINCT 95 DIV 39 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3689
SELECT DISTINCT 95 / 39 AS col2
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-3690
SELECT DISTINCT 83 DIV - 5 + 47 col2, 61 * + ( + 62 ) * - 82
----
31
-310124

skipif mysql # not compatible
query II rowsort label-3690
SELECT DISTINCT 83 / - 5 + 47 col2, 61 * + ( + 62 ) * - 82
----
31
-310124

query I rowsort
SELECT + ( + - 48 ) + 14 - - 3
----
-31

query I rowsort
SELECT ( - 56 ) col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3693
SELECT + 18 * + + CASE + 4 WHEN 62 * - 13 - + MAX( + - 90 ) + ( ( - - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) ) ) / - MAX( ALL + 28 ) * + - 59 - - AVG ( - 17 ) * + - ( + + COUNT( 9 ) ) THEN NULL WHEN - 69 THEN - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT + 18 * + + CASE + 4 WHEN 62 * - 13 - + MAX ( + - 90 ) + ( ( - - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) ) / - MAX ( ALL + 28 ) * + - 59 - - AVG ( - 17 ) * + - ( + + COUNT ( 9 ) ) THEN NULL WHEN - 69 THEN - 74 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3694
SELECT + COUNT( * ) + SUM( + 81 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT + COUNT ( * ) + SUM ( + 81 ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( - - 55 ) AS col0
----
55

query I rowsort
SELECT ALL 70 * - 13 + - - 55 + 93
----
-762

query I rowsort
SELECT + 46 * 62 + - + 31 + - - 1
----
2822

query I rowsort
SELECT ALL 37 * - - CASE 2 WHEN + + 38 / - 18 THEN - 17 / - + AVG ( ALL - ( + 28 ) ) + - 88 + - + 14 WHEN + 81 THEN + 86 END + - + NULLIF ( 25, - + 31 * - 30 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3699
SELECT ALL + + 69, + COUNT( * ) + - + 78 * - NULLIF ( + MAX( ALL 46 ), - CASE + 14 WHEN - ( - - 6 ) + + 73 THEN 65 ELSE NULL END ) - + + 92 + + 97 * 34 AS col2
----
69
6795

skipif mysql # not compatible
query II rowsort label-3699
SELECT ALL + + 69, + COUNT ( * ) + - + 78 * - NULLIF ( + MAX ( ALL 46 ), - CASE + 14 WHEN - ( - - 6 ) + + 73 THEN 65 ELSE NULL END ) - + + 92 + + 97 * 34 AS col2
----
69
6795

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL 50 * - - CASE 56 WHEN + MAX( - 7 ) / COUNT( * ) THEN MAX( - 65 ) END * - + 44 + + 95 - + COUNT( * ) * 63 * - 44 * 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL 50 * - - CASE 56 WHEN + MAX ( - 7 ) / COUNT ( * ) THEN MAX ( - 65 ) END * - + 44 + + 95 - + COUNT ( * ) * 63 * - 44 * 70 AS col1
----
NULL

query I rowsort
SELECT ALL + - 12 * + 65 + + + 28
----
-752

query I rowsort
SELECT + 61 + - 60 + - 46
----
-45

query I rowsort
SELECT - + ( + - 63 ) AS col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3704
SELECT DISTINCT - 54 DIV + ( MIN( ALL + 92 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT - 54 / + ( MIN ( ALL + 92 ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3705
SELECT COUNT( * ) AS col0, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-3705
SELECT COUNT ( * ) AS col0, - COUNT ( * )
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT + 2 + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3706
SELECT + 2 + + COUNT ( * )
----
3

query I rowsort
SELECT ( + 40 ) * + ( + 41 ) col0
----
1640

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT - + MIN( - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-3708
SELECT - + MIN ( - 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT ALL + 35 - 32 * COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL + 35 - 32 * COUNT ( * )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT ALL - ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL - ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT - + CAST( + + 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-3711
SELECT - + CAST ( + + 18 AS INTEGER )
----
-18

query I rowsort
SELECT ALL - 61 * + + 19 + - 2
----
-1161

query I rowsort
SELECT - 77 * + - 57
----
4389

query I rowsort
SELECT 76 * + - 18
----
-1368

query II rowsort
SELECT - 15 AS col2, - 29 AS col2
----
-15
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-3716
SELECT 23 DIV + + 43
----
0

skipif mysql # not compatible
query I rowsort label-3716
SELECT 23 / + + 43
----
0

query I rowsort
SELECT 58 + + - 93 AS col0
----
-35

query I rowsort
SELECT 32 * - 85 * 69
----
-187680

query I rowsort
SELECT 68 * 43
----
2924

query I rowsort
SELECT 48 + - 60 AS col1
----
-12

query I rowsort
SELECT DISTINCT + 19 + - - 11 AS col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3722
SELECT ALL - 32 AS col2, COUNT( * ) col2
----
-32
1

skipif mysql # not compatible
query II rowsort label-3722
SELECT ALL - 32 AS col2, COUNT ( * ) col2
----
-32
1

query I rowsort
SELECT DISTINCT - 74 + 8
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT DISTINCT + 19 + + + CASE + 87 WHEN - 88 THEN 49 WHEN + 7 THEN NULL ELSE 25 + + 72 END + + SUM( DISTINCT + 75 ) + - - COUNT( DISTINCT 9 ) * - 25 + - - 56
----
222

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT + 19 + + + CASE + 87 WHEN - 88 THEN 49 WHEN + 7 THEN NULL ELSE 25 + + 72 END + + SUM ( DISTINCT + 75 ) + - - COUNT ( DISTINCT 9 ) * - 25 + - - 56
----
222

query I rowsort
SELECT 93 + + 31 * - 28 AS col1
----
-775

query I rowsort
SELECT ALL - 56 + - 92
----
-148

onlyif mysql # aggregate syntax: 
query II rowsort label-3727
SELECT 27 AS col1, - 85 * + COUNT( * )
----
27
-85

skipif mysql # not compatible
query II rowsort label-3727
SELECT 27 AS col1, - 85 * + COUNT ( * )
----
27
-85

query II rowsort
SELECT ALL - 47, - 41 AS col0
----
-47
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3729
SELECT ALL - 21 AS col2, - COUNT( * ) * + ( + 56 ) - - + 81 AS col2
----
-21
25

skipif mysql # not compatible
query II rowsort label-3729
SELECT ALL - 21 AS col2, - COUNT ( * ) * + ( + 56 ) - - + 81 AS col2
----
-21
25

query II rowsort
SELECT + 3 AS col0, NULLIF ( - 24, + + 87 )
----
3
-24

query II rowsort
SELECT ALL - 76 AS col1, + 59 - - NULLIF ( 25, 62 )
----
-76
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT + + CASE COUNT( + ( - + 29 ) ) WHEN - 55 THEN + 23 * 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT + + CASE COUNT ( + ( - + 29 ) ) WHEN - 55 THEN + 23 * 45 ELSE NULL END
----
NULL

query I rowsort
SELECT 65 * - + 91 AS col1
----
-5915

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT ALL - 16 DIV + 24
----
0

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL - 16 / + 24
----
0

query I rowsort
SELECT ALL - 0 - 81 - - 34 AS col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3736
SELECT 71 AS col0, + NULLIF ( - + 82, - 16 ) DIV - + COUNT( * )
----
71
82

skipif mysql # not compatible
query II rowsort label-3736
SELECT 71 AS col0, + NULLIF ( - + 82, - 16 ) / - + COUNT ( * )
----
71
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL + COUNT( * ) - + 72 - + 17
----
-88

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL + COUNT ( * ) - + 72 - + 17
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3738
SELECT 45 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3738
SELECT 45 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 86 * - + 43 AS col1
----
-3698

onlyif mysql # DIV for integer division: 
query I rowsort label-3740
SELECT - 95 DIV 30 * 81
----
-243

skipif mysql # not compatible
query I rowsort label-3740
SELECT - 95 / 30 * 81
----
-243

query II rowsort
SELECT DISTINCT 70 AS col0, + 10 * + + 66
----
70
660

query II rowsort
SELECT DISTINCT 92 AS col2, 96 AS col0
----
92
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT MAX( ALL ( + 79 ) )
----
79

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT MAX ( ALL ( + 79 ) )
----
79

query I rowsort
SELECT ALL - ( - + 70 )
----
70

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3745
SELECT ALL + - 22 * + CAST( NULL AS DECIMAL ) AS col0, 44 * 26 - - - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3745
SELECT ALL + - 22 * + CAST ( NULL AS REAL ) AS col0, 44 * 26 - - - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT + COUNT( * ) + + 38
----
39

skipif mysql # not compatible
query I rowsort label-3746
SELECT + COUNT ( * ) + + 38
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3747
SELECT ALL CAST( + - 44 AS SIGNED ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL CAST ( + - 44 AS INTEGER ) AS col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT - NULLIF ( - - 21, ( - 85 ) * CASE + + ( + 25 ) WHEN + 9 THEN NULL ELSE + ( CAST( 70 AS SIGNED ) ) END - - + 66 * - 57 * ( 0 ) / - ( - - 62 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-3748
SELECT - NULLIF ( - - 21, ( - 85 ) * CASE + + ( + 25 ) WHEN + 9 THEN NULL ELSE + ( CAST ( 70 AS INTEGER ) ) END - - + 66 * - 57 * ( 0 ) / - ( - - 62 ) )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3749
SELECT ALL - ( COUNT( * ) ) * + ( 35 ) AS col1, 39
----
-35
39

skipif mysql # not compatible
query II rowsort label-3749
SELECT ALL - ( COUNT ( * ) ) * + ( 35 ) AS col1, 39
----
-35
39

query I rowsort
SELECT ALL 38 + - 49 col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT NULLIF ( + 33, - ( 15 ) + + + COUNT( * ) ) + - + 13 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3751
SELECT NULLIF ( + 33, - ( 15 ) + + + COUNT ( * ) ) + - + 13 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT - MIN( - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-3752
SELECT - MIN ( - 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT COALESCE ( ( COUNT( * ) ), + + 5 + - - 23 * - 22 * - - 20 - 69 - - MAX( ALL 50 ) ) + + 36 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT COALESCE ( ( COUNT ( * ) ), + + 5 + - - 23 * - 22 * - - 20 - 69 - - MAX ( ALL 50 ) ) + + 36 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3754
SELECT DISTINCT + 50 + 8 * 99 + + + 0 + - CAST( + 79 AS SIGNED ) * - 23 * ( + + CAST( NULL AS SIGNED ) ) * NULLIF ( + 81, 12 + + 94 ) - - 77 * + COALESCE ( + 60, + ( + + COUNT( * ) ), 28 ) * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT + 50 + 8 * 99 + + + 0 + - CAST ( + 79 AS INTEGER ) * - 23 * ( + + CAST ( NULL AS INTEGER ) ) * NULLIF ( + 81, 12 + + 94 ) - - 77 * + COALESCE ( + 60, + ( + + COUNT ( * ) ), 28 ) * + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ( + 80 ) + - + MIN( DISTINCT + 10 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3755
SELECT ( + 80 ) + - + MIN ( DISTINCT + 10 ) AS col0
----
70

query I rowsort
SELECT DISTINCT 20 * - 5 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL 78 + + 6 + - COUNT( * ) + + 25 * - 86 * - 71 AS col2
----
152733

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL 78 + + 6 + - COUNT ( * ) + + 25 * - 86 * - 71 AS col2
----
152733

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT DISTINCT MIN( - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT MIN ( - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL - COUNT( + 1 ) + 77 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL - COUNT ( + 1 ) + 77 AS col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3760
SELECT 83 DIV - MIN( DISTINCT - 56 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3760
SELECT 83 / - MIN ( DISTINCT - 56 ) col1
----
1

query I rowsort
SELECT DISTINCT - 87 + - 81
----
-168

query II rowsort
SELECT 93 * 67 AS col0, + 41 + 26
----
6231
67

query I rowsort
SELECT 96 + + 77 col0
----
173

query I rowsort
SELECT ALL 81 * 47 * - 90 * + + 76 + - NULLIF ( 8, 4 )
----
-26039888

query I rowsort
SELECT ALL 49 * - 66 * + 24 - - 36 - 52 + - 49
----
-77681

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT DISTINCT - COALESCE ( 5, + - 64 ) * - SUM( 54 ) + + - 55
----
215

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT - COALESCE ( 5, + - 64 ) * - SUM ( 54 ) + + - 55
----
215

query I rowsort
SELECT DISTINCT - NULLIF ( - 48, + 90 ) col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL - MAX( ALL 47 ) * - 64 AS col0
----
3008

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL - MAX ( ALL 47 ) * - 64 AS col0
----
3008

query I rowsort
SELECT DISTINCT - CASE - 70 WHEN + + 9 THEN NULL WHEN - - 39 THEN + 53 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - - 44 * - 52 * NULLIF ( - 42, + 74 + + COUNT( * ) ) * COUNT( * ) * + + 67 - - - 9 AS col1
----
6438423

skipif mysql # not compatible
query I rowsort label-3770
SELECT - - 44 * - 52 * NULLIF ( - 42, + 74 + + COUNT ( * ) ) * COUNT ( * ) * + + 67 - - - 9 AS col1
----
6438423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT ALL - 71 * 49 + 33 * - - 21 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL - 71 * 49 + 33 * - - 21 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - ( + + 83 )
----
-83

query I rowsort
SELECT ALL + - 40 col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3774
SELECT - 10 + - ( + COUNT( * ) ) - - 35 DIV + NULLIF ( + 43, 80 * - 1 - - + CAST( NULL AS SIGNED ) ) * + 38 * 9
----
-11

skipif mysql # not compatible
query I rowsort label-3774
SELECT - 10 + - ( + COUNT ( * ) ) - - 35 / + NULLIF ( + 43, 80 * - 1 - - + CAST ( NULL AS INTEGER ) ) * + 38 * 9
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT + 84 * MAX( 64 )
----
5376

skipif mysql # not compatible
query I rowsort label-3775
SELECT + 84 * MAX ( 64 )
----
5376

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL + CASE WHEN NULL BETWEEN NULL AND ( 17 ) THEN 4 * + + NULLIF ( - + COUNT( * ), - 57 ) + + 54 + + 51 * - + 17 * + AVG ( ALL + 45 ) * 41 END / 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL + CASE WHEN NULL BETWEEN NULL AND ( 17 ) THEN 4 * + + NULLIF ( - + COUNT ( * ), - 57 ) + + 54 + + 51 * - + 17 * + AVG ( ALL + 45 ) * 41 END / 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3777
SELECT DISTINCT + + ( CAST( NULL AS SIGNED ) ) AS col1, 98 AS col0
----
NULL
98

skipif mysql # not compatible
query II rowsort label-3777
SELECT DISTINCT + + ( CAST ( NULL AS INTEGER ) ) AS col1, 98 AS col0
----
NULL
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT + + 33 + + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT + + 33 + + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT DISTINCT - COUNT( * ) * + - 15
----
15

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT - COUNT ( * ) * + - 15
----
15

query I rowsort
SELECT DISTINCT + 94 * ( + 40 )
----
3760

query II rowsort
SELECT - + 89 * 27 AS col1, 40
----
-2403
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3782
SELECT - CAST( NULL AS SIGNED ) * - + SUM( + 84 ) * + CAST( - SUM( DISTINCT + 3 ) AS SIGNED ) + + 28 + + - 54 + - + 68 + + 63 + + 44 - + - COUNT( * ) * - 87 * - ( - COUNT( * ) ) * + 86 + 6 * - MAX( + 39 ) * + 17 * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT - CAST ( NULL AS INTEGER ) * - + SUM ( + 84 ) * + CAST ( - SUM ( DISTINCT + 3 ) AS INTEGER ) + + 28 + + - 54 + - + 68 + + 63 + + 44 - + - COUNT ( * ) * - 87 * - ( - COUNT ( * ) ) * + 86 + 6 * - MAX ( + 39 ) * + 17 * - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT DISTINCT - COUNT( * ) * - - 53
----
-53

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT - COUNT ( * ) * - - 53
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT DISTINCT 65 + CAST( NULL AS SIGNED ) * - 22 - + 27 + - + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT 65 + CAST ( NULL AS INTEGER ) * - 22 - + 27 + - + 59
----
NULL

query I rowsort
SELECT ALL 73 + 8 + + - 64
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT + MAX( + 76 ) * + 60
----
4560

skipif mysql # not compatible
query I rowsort label-3786
SELECT + MAX ( + 76 ) * + 60
----
4560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3787
SELECT ALL + CAST( NULL AS SIGNED ) + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL + CAST ( NULL AS INTEGER ) + + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT - MIN( ALL + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-3788
SELECT - MIN ( ALL + 88 )
----
-88

query I rowsort
SELECT ALL 67 + - + 66
----
1

query I rowsort
SELECT DISTINCT 96 + - 12 AS col2
----
84

query I rowsort
SELECT + 25 * - COALESCE ( - 73, - + 93 ) AS col1
----
1825

query I rowsort
SELECT - ( + 67 ) AS col0
----
-67

query I rowsort
SELECT DISTINCT 66 * + + 3 * + 22 AS col0
----
4356

query I rowsort
SELECT ALL 84 - 86 - + 89
----
-91

query I rowsort
SELECT + 89 - - 21
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT + COUNT( * ) + + 22
----
23

skipif mysql # not compatible
query I rowsort label-3796
SELECT + COUNT ( * ) + + 22
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3797
SELECT + CAST( + 33 AS SIGNED ) - + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3797
SELECT + CAST ( + 33 AS INTEGER ) - + COUNT ( * ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ALL MIN( ALL - 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL MIN ( ALL - 87 ) AS col2
----
-87

query I rowsort
SELECT + 59 * + 77 AS col0
----
4543

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL + SUM( 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL + SUM ( 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3801
SELECT 93 DIV ( 53 ) + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3801
SELECT 93 / ( 53 ) + + - COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT 83 * - 47 AS col0
----
-3901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3803
SELECT + COALESCE ( 36, + + COALESCE ( - - COUNT( * ), + NULLIF ( 17, - CAST( NULL AS SIGNED ) ) ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3803
SELECT + COALESCE ( 36, + + COALESCE ( - - COUNT ( * ), + NULLIF ( 17, - CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
36

query II rowsort
SELECT 19, - 96 col0
----
19
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT DISTINCT + + 93 DIV + - 21 col2
----
-4

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT + + 93 / + - 21 col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT + 98 DIV - 36 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3806
SELECT + 98 / - 36 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3807
SELECT - ( - 87 ) DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3807
SELECT - ( - 87 ) / + 94 AS col2
----
0

query I rowsort
SELECT - - 28 * + + ( 87 ) AS col0
----
2436

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT ALL - COUNT( - ( - 48 ) ) * - MAX( ALL 60 )
----
60

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL - COUNT ( - ( - 48 ) ) * - MAX ( ALL 60 )
----
60

query I rowsort
SELECT ALL + + 65 col1
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3811
SELECT ALL + - 74 AS col1, 51 DIV + 45 + - + COUNT( ALL - NULLIF ( 92, 89 + - + 87 ) ) AS col2
----
-74
0

skipif mysql # not compatible
query II rowsort label-3811
SELECT ALL + - 74 AS col1, 51 / + 45 + - + COUNT ( ALL - NULLIF ( 92, 89 + - + 87 ) ) AS col2
----
-74
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3812
SELECT + ( + - ( + CAST( 86 AS SIGNED ) ) ) + + + 95
----
9

skipif mysql # not compatible
query I rowsort label-3812
SELECT + ( + - ( + CAST ( 86 AS INTEGER ) ) ) + + + 95
----
9

query I rowsort
SELECT ALL - 82 * - 21 col0
----
1722

onlyif mysql # DIV for integer division: 
query I rowsort label-3814
SELECT DISTINCT + 31 * - - 22 + - - 50 DIV - 29 + + 24 col1
----
705

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT + 31 * - - 22 + - - 50 / - 29 + + 24 col1
----
705

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT CASE - 16 WHEN 84 THEN NULL WHEN + + 14 THEN - 27 ELSE - COUNT( DISTINCT - 51 ) END * + - 70 + 21 - - 41 + + 61 AS col0
----
193

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT CASE - 16 WHEN 84 THEN NULL WHEN + + 14 THEN - 27 ELSE - COUNT ( DISTINCT - 51 ) END * + - 70 + 21 - - 41 + + 61 AS col0
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT 27 * - - 28 - + NULLIF ( COUNT( * ), - COUNT( - 22 ) + 59 * ( + 5 ) * + 19 * - COALESCE ( SUM( DISTINCT + 23 ), + 21 + - 50 + + - ( - - ( - COUNT( * ) ) ) ) / - 53 + - 28 ) + + 20 / + 94 * - 81 + - SUM( ALL + - 32 ) * - CASE - 94 WHEN + COUNT( * ) THEN 5 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT 27 * - - 28 - + NULLIF ( COUNT ( * ), - COUNT ( - 22 ) + 59 * ( + 5 ) * + 19 * - COALESCE ( SUM ( DISTINCT + 23 ), + 21 + - 50 + + - ( - - ( - COUNT ( * ) ) ) ) / - 53 + - 28 ) + + 20 / + 94 * - 81 + - SUM ( ALL + - 32 ) * - CASE - 94 WHEN + COUNT ( * ) THEN 5 END col0
----
NULL

query II rowsort
SELECT + 28 AS col2, 87
----
28
87

query I rowsort
SELECT - + 52 - + 72 AS col2
----
-124

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3819
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 12 DIV + 10 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3819
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 12 / + 10 AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL + 29 * 46 * - - 52 * + 78 + - + COUNT( * )
----
5410703

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL + 29 * 46 * - - 52 * + 78 + - + COUNT ( * )
----
5410703

query I rowsort
SELECT DISTINCT 85 * - - 12 * - 72
----
-73440

onlyif mysql # aggregate syntax: 
query II rowsort label-3822
SELECT ALL 98 * - - COUNT( * ) + 71 + - COUNT( * ) AS col0, COUNT( * )
----
168
1

skipif mysql # not compatible
query II rowsort label-3822
SELECT ALL 98 * - - COUNT ( * ) + 71 + - COUNT ( * ) AS col0, COUNT ( * )
----
168
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT - COUNT( * ) + + 17 col2
----
16

skipif mysql # not compatible
query I rowsort label-3823
SELECT - COUNT ( * ) + + 17 col2
----
16

query I rowsort
SELECT + ( - - 80 ) - + 60 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT - COUNT( * ) * 54
----
-54

skipif mysql # not compatible
query I rowsort label-3825
SELECT - COUNT ( * ) * 54
----
-54

query I rowsort
SELECT - 96 + - - 53 AS col0
----
-43

query I rowsort
SELECT + 2 - 58 AS col1
----
-56

query I rowsort
SELECT ALL 25 * + + 78 AS col1
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL MIN( + + 32 ) - + - 19
----
51

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL MIN ( + + 32 ) - + - 19
----
51

query I rowsort
SELECT + 96 * + 13
----
1248

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3831
SELECT - CASE - NULLIF ( 14, + COUNT( * ) ) WHEN - 3 THEN NULL WHEN + - ( - CAST( + 71 AS DECIMAL ) ) THEN + 69 ELSE 71 END AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-3831
SELECT - CASE - NULLIF ( 14, + COUNT ( * ) ) WHEN - 3 THEN NULL WHEN + - ( - CAST ( + 71 AS REAL ) ) THEN + 69 ELSE 71 END AS col1
----
-71

query I rowsort
SELECT ALL - 97 * + 9 AS col1
----
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL SUM( DISTINCT - - 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL SUM ( DISTINCT - - 40 ) AS col1
----
40

query II rowsort
SELECT + 12 + 34, 74 AS col2
----
46
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT SUM( + 9 ) * - - 70
----
630

skipif mysql # not compatible
query I rowsort label-3835
SELECT SUM ( + 9 ) * - - 70
----
630

query I rowsort
SELECT ALL - 38 * - 20 + 61
----
821

onlyif mysql # DIV for integer division: 
query I rowsort label-3837
SELECT ALL - 88 * 8 * - + 64 + - 45 + - 6 DIV + 55 AS col0
----
45011

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL - 88 * 8 * - + 64 + - 45 + - 6 / + 55 AS col0
----
45011

onlyif mysql # aggregate syntax: 
query II rowsort label-3838
SELECT + 5 + + - 90, - MAX( DISTINCT - + 92 ) AS col0
----
-85
92

skipif mysql # not compatible
query II rowsort label-3838
SELECT + 5 + + - 90, - MAX ( DISTINCT - + 92 ) AS col0
----
-85
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT - + ( + - NULLIF ( COUNT( * ), + + 25 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT - + ( + - NULLIF ( COUNT ( * ), + + 25 ) ) AS col0
----
1

query I rowsort
SELECT 30 + - 22 AS col0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3841
SELECT SUM( DISTINCT + 21 ) DIV + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3841
SELECT SUM ( DISTINCT + 21 ) / + 57 AS col1
----
0

query I rowsort
SELECT ( - 0 ) + 56
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3843
SELECT CAST( NULL AS SIGNED ) * ( + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT CAST ( NULL AS INTEGER ) * ( + 71 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3844
SELECT DISTINCT + + 23 DIV - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT + + 23 / - COUNT ( * )
----
-23

query I rowsort
SELECT DISTINCT 86 + + 4
----
90

query II rowsort
SELECT DISTINCT - 38 AS col0, 54 + - - ( ( 69 ) )
----
-38
123

query I rowsort
SELECT ALL + 73 + 67 AS col0
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3848
SELECT 77 + + CAST( + + 63 AS SIGNED )
----
140

skipif mysql # not compatible
query I rowsort label-3848
SELECT 77 + + CAST ( + + 63 AS INTEGER )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT ALL + 1 * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL + 1 * + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3850
SELECT + 50 * - ( + + 89 ) * - CAST( NULL AS SIGNED ) * - - COUNT( * ) / NULLIF ( 3, + 50 - MAX( - 69 ) ) + + + 51 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT + 50 * - ( + + 89 ) * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) / NULLIF ( 3, + 50 - MAX ( - 69 ) ) + + + 51 col0
----
NULL

query I rowsort
SELECT 3 * + ( + - 81 ) * - 10
----
2430

query I rowsort
SELECT DISTINCT + 83 * + - 78
----
-6474

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT 92 * - + COUNT( * ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3853
SELECT 92 * - + COUNT ( * ) AS col2
----
-92

query II rowsort
SELECT ALL 34 AS col1, 83 AS col0
----
34
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT ALL ( - 70 ) * - COUNT( * ) * - ( COALESCE ( COUNT( * ), + 69 * + 32 ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL ( - 70 ) * - COUNT ( * ) * - ( COALESCE ( COUNT ( * ), + 69 * + 32 ) ) AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3856
SELECT COUNT( * ) DIV - NULLIF ( + 43, - 59 )
----
0

skipif mysql # not compatible
query I rowsort label-3856
SELECT COUNT ( * ) / - NULLIF ( + 43, - 59 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3857
SELECT ALL + 39 DIV + 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL + 39 / + 69 AS col0
----
0

query I rowsort
SELECT 82 * 39
----
3198

query II rowsort
SELECT - 43 AS col2, - 33 AS col1
----
-43
-33

query I rowsort
SELECT 27 + + - 40
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-3861
SELECT 1 DIV + 30 col1
----
0

skipif mysql # not compatible
query I rowsort label-3861
SELECT 1 / + 30 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3862
SELECT ( - 12 ) DIV - 83 * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3862
SELECT ( - 12 ) / - 83 * + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT 8 + + NULLIF ( - - SUM( + - 49 ), + - ( - CASE - ( + - 16 ) WHEN 86 * + 66 * + - 39 THEN + 14 / + + 85 - + + 77 WHEN 4 - - 90 THEN NULL ELSE + - 16 * COUNT( * ) END ) ) + - - COUNT( * ) + + CASE + - COALESCE ( - 11, 91 ) WHEN 71 THEN + 19 * + 67 * + + COALESCE ( 93, + 27 ) + + - 25 + 70 * 82 END * 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT 8 + + NULLIF ( - - SUM ( + - 49 ), + - ( - CASE - ( + - 16 ) WHEN 86 * + 66 * + - 39 THEN + 14 / + + 85 - + + 77 WHEN 4 - - 90 THEN NULL ELSE + - 16 * COUNT ( * ) END ) ) + - - COUNT ( * ) + + CASE + - COALESCE ( - 11, 91 ) WHEN 71 THEN + 19 * + 67 * + + COALESCE ( 93, + 27 ) + + - 25 + 70 * 82 END * 92 AS col0
----
NULL

query I rowsort
SELECT ALL + 81 + - NULLIF ( - 85, + 96 ) * - ( - 12 )
----
1101

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT 42 DIV - + 43 + - 80 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-3865
SELECT 42 / - + 43 + - 80 AS col1
----
-80

query I rowsort
SELECT ALL 29 + 85
----
114

onlyif mysql # aggregate syntax: 
query III rowsort label-3867
SELECT DISTINCT 91 + - 90 + 17 * + - SUM( ALL 9 ) AS col2, COALESCE ( + - 61, - - 83 ), 90 + - 38 AS col2
----
-152
-61
52

skipif mysql # not compatible
query III rowsort label-3867
SELECT DISTINCT 91 + - 90 + 17 * + - SUM ( ALL 9 ) AS col2, COALESCE ( + - 61, - - 83 ), 90 + - 38 AS col2
----
-152
-61
52

query I rowsort
SELECT + COALESCE ( 57, 17, NULLIF ( 25, - - 51 / + 76 * - 37 * + ( - + 52 ) ) ) AS col2
----
57

query I rowsort
SELECT NULLIF ( + 65, 55 ) * - 8 col1
----
-520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3870
SELECT - CAST( 45 AS SIGNED ) * + 63
----
-2835

skipif mysql # not compatible
query I rowsort label-3870
SELECT - CAST ( 45 AS INTEGER ) * + 63
----
-2835

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ALL COUNT( * ) * 46 * + + 28 * COALESCE ( - - 67, 48 )
----
86296

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL COUNT ( * ) * 46 * + + 28 * COALESCE ( - - 67, 48 )
----
86296

query I rowsort
SELECT 91 * 61 AS col2
----
5551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3873
SELECT DISTINCT - 83 * - 36 * + 18 * ( 31 ) - - ( + 86 ) * + CAST( 42 AS SIGNED )
----
1670916

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT - 83 * - 36 * + 18 * ( 31 ) - - ( + 86 ) * + CAST ( 42 AS INTEGER )
----
1670916

query I rowsort
SELECT ALL 58 + - 22 + + - 66 + 49
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT + + MAX( 16 ) col0
----
16

skipif mysql # not compatible
query I rowsort label-3875
SELECT + + MAX ( 16 ) col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT DISTINCT - COALESCE ( - COUNT( * ), + + 95 + - 8, + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT - COALESCE ( - COUNT ( * ), + + 95 + - 8, + 12 )
----
1

query I rowsort
SELECT 14 * + ( - 67 )
----
-938

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3878
SELECT ALL - 39 * + CAST( - 57 AS SIGNED ) AS col0, + 34 AS col0
----
2223
34

skipif mysql # not compatible
query II rowsort label-3878
SELECT ALL - 39 * + CAST ( - 57 AS INTEGER ) AS col0, + 34 AS col0
----
2223
34

query I rowsort
SELECT + 59 * - 23 + 9 - - 36 AS col1
----
-1312

query II rowsort
SELECT 95 AS col1, + 30
----
95
30

query II rowsort
SELECT 65 AS col2, - 79 AS col1
----
65
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-3882
SELECT ALL - 32, + 42 + - 73 - + COUNT( * ) AS col0
----
-32
-32

skipif mysql # not compatible
query II rowsort label-3882
SELECT ALL - 32, + 42 + - 73 - + COUNT ( * ) AS col0
----
-32
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3883
SELECT 3 * + 89 AS col0, SUM( ( 16 ) ) DIV + + 64 * + COUNT( * )
----
267
0

skipif mysql # not compatible
query II rowsort label-3883
SELECT 3 * + 89 AS col0, SUM ( ( 16 ) ) / + + 64 * + COUNT ( * )
----
267
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3884
SELECT CASE COUNT( * ) WHEN 88 + - + ( 34 ) - - 24 THEN - 9 * - ( - 14 ) * + - ( + - CASE + - 68 WHEN + 66 THEN NULL WHEN + 49 + - AVG ( - - 91 ) THEN + + 99 END ) DIV + 93 + + - NULLIF ( - - 33, - 26 ) + NULLIF ( - COUNT( * ), 0 ) * - - 11 * + ( 97 ) * - + COUNT( * ) * + - 84 + - - 22 WHEN + 10 - - 38 * + 54 THEN 92 + 66 ELSE + 13 + + 33 END - 48 * + 68 AS col1
----
-3218

skipif mysql # not compatible
query I rowsort label-3884
SELECT CASE COUNT ( * ) WHEN 88 + - + ( 34 ) - - 24 THEN - 9 * - ( - 14 ) * + - ( + - CASE + - 68 WHEN + 66 THEN NULL WHEN + 49 + - AVG ( - - 91 ) THEN + + 99 END ) / + 93 + + - NULLIF ( - - 33, - 26 ) + NULLIF ( - COUNT ( * ), 0 ) * - - 11 * + ( 97 ) * - + COUNT ( * ) * + - 84 + - - 22 WHEN + 10 - - 38 * + 54 THEN 92 + 66 ELSE + 13 + + 33 END - 48 * + 68 AS col1
----
-3218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3885
SELECT ALL - COUNT( * ) DIV - 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL - COUNT ( * ) / - 39 AS col0
----
0

query I rowsort
SELECT 86 + - ( + - 87 ) * 78 * + - 50
----
-339214

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT ALL 72 DIV 91 col2
----
0

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL 72 / 91 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3888
SELECT CAST( 87 AS SIGNED ) + - 41 DIV + - 1, + 24 * COUNT( * ) col2
----
128
24

skipif mysql # not compatible
query II rowsort label-3888
SELECT CAST ( 87 AS INTEGER ) + - 41 / + - 1, + 24 * COUNT ( * ) col2
----
128
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3889
SELECT ALL + COUNT( * ) * - 9 * - + COUNT( * ) DIV + + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL + COUNT ( * ) * - 9 * - + COUNT ( * ) / + + 97 AS col1
----
0

query I rowsort
SELECT 12 - + + 89
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3891
SELECT 81, + CAST( - - NULLIF ( - 87, 71 ) AS SIGNED ) - - CASE 78 WHEN + + MAX( ALL + + 48 ) THEN - 9 ELSE NULL END AS col0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-3891
SELECT 81, + CAST ( - - NULLIF ( - 87, 71 ) AS INTEGER ) - - CASE 78 WHEN + + MAX ( ALL + + 48 ) THEN - 9 ELSE NULL END AS col0
----
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3892
SELECT + CAST( NULL AS SIGNED ) + NULLIF ( 97, + 97 ) + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT + CAST ( NULL AS INTEGER ) + NULLIF ( 97, + 97 ) + + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - 13 - + 32 + + COUNT( * ) * - 49
----
-94

skipif mysql # not compatible
query I rowsort label-3893
SELECT - 13 - + 32 + + COUNT ( * ) * - 49
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3894
SELECT + CAST( NULL AS SIGNED ) * + 60 * + SUM( DISTINCT 9 ) * - NULLIF ( + - NULLIF ( - + 83, + 39 * - COUNT( * ) - - 43 ), + + 35 * + - COALESCE ( 61, 75 / + 69, - + NULLIF ( + - 19, - 85 / - 45 ) / - 66 / - 83 + + 7 / 54 - - - 94 / + 17 * - CASE - 61 WHEN ( + 40 ) THEN NULL WHEN - ( - + 86 ) / + NULLIF ( 48 * 76 + 91, - 11 ) THEN 94 * 41 - 31 ELSE + 49 + + 27 END, 15 + + CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT + CAST ( NULL AS INTEGER ) * + 60 * + SUM ( DISTINCT 9 ) * - NULLIF ( + - NULLIF ( - + 83, + 39 * - COUNT ( * ) - - 43 ), + + 35 * + - COALESCE ( 61, 75 / + 69, - + NULLIF ( + - 19, - 85 / - 45 ) / - 66 / - 83 + + 7 / 54 - - - 94 / + 17 * - CASE - 61 WHEN ( + 40 ) THEN NULL WHEN - ( - + 86 ) / + NULLIF ( 48 * 76 + 91, - 11 ) THEN 94 * 41 - 31 ELSE + 49 + + 27 END, 15 + + CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT DISTINCT + 34 * COUNT( * ) * - 7 * 53 * - 98 AS col1
----
1236172

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT + 34 * COUNT ( * ) * - 7 * 53 * - 98 AS col1
----
1236172

onlyif mysql # aggregate syntax: 
query II rowsort label-3896
SELECT ALL COUNT( * ) col2, + 73 * 58 * + 96 AS col1
----
1
406464

skipif mysql # not compatible
query II rowsort label-3896
SELECT ALL COUNT ( * ) col2, + 73 * 58 * + 96 AS col1
----
1
406464

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT - 77 + + COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3897
SELECT - 77 + + COUNT ( * ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL COUNT( ALL 66 )
----
1

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL COUNT ( ALL 66 )
----
1

query I rowsort
SELECT - 94 * - 65
----
6110

query I rowsort
SELECT DISTINCT 0 + - 50
----
-50

query II rowsort
SELECT ALL + 24, - 45 AS col2
----
24
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT DISTINCT - 88 + - 31 + - COUNT( - 0 ) * + 27
----
-146

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT - 88 + - 31 + - COUNT ( - 0 ) * + 27
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3903
SELECT ALL - - 73 DIV NULLIF ( + 82, 50 - + 49 - + CAST( - 4 AS SIGNED ) ) * + 10 * + ( 77 ) * + MIN( - 94 ) * 83
----
0

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - - 73 / NULLIF ( + 82, 50 - + 49 - + CAST ( - 4 AS INTEGER ) ) * + 10 * + ( 77 ) * + MIN ( - 94 ) * 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT - NULLIF ( + - MIN( 36 ), + CAST( NULL AS SIGNED ) )
----
36

skipif mysql # not compatible
query I rowsort label-3904
SELECT - NULLIF ( + - MIN ( 36 ), + CAST ( NULL AS INTEGER ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT - + SUM( ALL - + 93 ) + - 12
----
81

skipif mysql # not compatible
query I rowsort label-3905
SELECT - + SUM ( ALL - + 93 ) + - 12
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3906
SELECT - 12 AS col1, 38 * 6 * + - COUNT( * ) * + + 62 AS col1
----
-12
-14136

skipif mysql # not compatible
query II rowsort label-3906
SELECT - 12 AS col1, 38 * 6 * + - COUNT ( * ) * + + 62 AS col1
----
-12
-14136

query I rowsort
SELECT ALL - 94 + + - ( COALESCE ( 90, 66, + 68 ) ) + - 32 AS col1
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT DISTINCT - + 31 * - - ( MAX( ALL - 32 ) ) + + 87
----
1079

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT - + 31 * - - ( MAX ( ALL - 32 ) ) + + 87
----
1079

query I rowsort
SELECT - 81 * + - 79 AS col1
----
6399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3910
SELECT ALL + - 62 * - 89 + - MAX( ALL 62 ) - 69 * COUNT( * ) + 74 + + 71 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + - 62 * - 89 + - MAX ( ALL 62 ) - 69 * COUNT ( * ) + 74 + + 71 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 65 + - 22 - + 89 * 99 * 91 - + 83 * - 27 + - 69 AS col0
----
-799716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3912
SELECT ALL - COUNT( * ) * + - ( + - 84 ) - COUNT( * ) + + 64 + 39 + - 64 + 13 DIV 29 * + 35 * - 55 + + + 95 * + + CAST( + - 83 AS SIGNED ) * + 99
----
-780661

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL - COUNT ( * ) * + - ( + - 84 ) - COUNT ( * ) + + 64 + 39 + - 64 + 13 / 29 * + 35 * - 55 + + + 95 * + + CAST ( + - 83 AS INTEGER ) * + 99
----
-780661

onlyif mysql # aggregate syntax: 
query II rowsort label-3913
SELECT - - 48 - - + NULLIF ( + COUNT( * ), 40 ) + + CASE - 91 WHEN - - 82 THEN 21 WHEN 43 THEN NULL END - - 83 * 97 * - - 91 / + 89 * 26 * + 63 * - 43 AS col2, 47
----
NULL
47

skipif mysql # not compatible
query II rowsort label-3913
SELECT - - 48 - - + NULLIF ( + COUNT ( * ), 40 ) + + CASE - 91 WHEN - - 82 THEN 21 WHEN 43 THEN NULL END - - 83 * 97 * - - 91 / + 89 * 26 * + 63 * - 43 AS col2, 47
----
NULL
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL + COUNT( DISTINCT 2 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + COUNT ( DISTINCT 2 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3915
SELECT + + COUNT( * ) * 17, + 55 + - 53 AS col1
----
17
2

skipif mysql # not compatible
query II rowsort label-3915
SELECT + + COUNT ( * ) * 17, + 55 + - 53 AS col1
----
17
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT + SUM( + - 26 ) * 61 + 60 - - 86 AS col1
----
-1440

skipif mysql # not compatible
query I rowsort label-3916
SELECT + SUM ( + - 26 ) * 61 + 60 - - 86 AS col1
----
-1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3917
SELECT ALL - CAST( NULL AS SIGNED ) * - 71 - - 36 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - CAST ( NULL AS INTEGER ) * - 71 - - 36 col1
----
NULL

query I rowsort
SELECT - 79 * + 9 col1
----
-711

query I rowsort
SELECT + NULLIF ( + 75, 90 ) + + + 6
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT - COUNT( * ) + + ( + + 47 ) col0
----
46

skipif mysql # not compatible
query I rowsort label-3920
SELECT - COUNT ( * ) + + ( + + 47 ) col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3921
SELECT + CASE CAST( NULL AS SIGNED ) WHEN + 71 THEN + 38 + - 40 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN + 71 THEN + 38 + - 40 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3922
SELECT + 79 + - 31 AS col1, SUM( - 61 ) * - 55 + COUNT( * ) * - 64 - - 21 - + - 97
----
48
3409

skipif mysql # not compatible
query II rowsort label-3922
SELECT + 79 + - 31 AS col1, SUM ( - 61 ) * - 55 + COUNT ( * ) * - 64 - - 21 - + - 97
----
48
3409

query I rowsort
SELECT ALL 2 * 34 * 74
----
5032

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT + COUNT( * ) * + CASE + 93 WHEN + + 13 - + - 88 + - 52 * SUM( + + 61 ) * 7 * + + ( + NULLIF ( 44, - + 86 ) ) THEN NULL ELSE 33 + - 70 END + + 9
----
-28

skipif mysql # not compatible
query I rowsort label-3924
SELECT + COUNT ( * ) * + CASE + 93 WHEN + + 13 - + - 88 + - 52 * SUM ( + + 61 ) * 7 * + + ( + NULLIF ( 44, - + 86 ) ) THEN NULL ELSE 33 + - 70 END + + 9
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3925
SELECT DISTINCT - 56 DIV NULLIF ( - ( - COALESCE ( + - CASE + + 80 WHEN + MAX( DISTINCT - 15 ) * + + COUNT( * ) * + - CASE + 55 WHEN 75 THEN NULL ELSE 96 END - + 27 - - 74 * - - 33 + 89 THEN - 91 WHEN + 16 + 62 - - 43 * - 87 + AVG ( - 1 ) * SUM( - 31 ) THEN - 61 * + 83 ELSE + 92 * 46 + + 48 + - 14 END, 14 DIV 94, 59 ) ), + 86 ) DIV + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT - 56 / NULLIF ( - ( - COALESCE ( + - CASE + + 80 WHEN + MAX ( DISTINCT - 15 ) * + + COUNT ( * ) * + - CASE + 55 WHEN 75 THEN NULL ELSE 96 END - + 27 - - 74 * - - 33 + 89 THEN - 91 WHEN + 16 + 62 - - 43 * - 87 + AVG ( - 1 ) * SUM ( - 31 ) THEN - 61 * + 83 ELSE + 92 * 46 + + 48 + - 14 END, 14 / 94, 59 ) ), + 86 ) / + 89 AS col2
----
0

query I rowsort
SELECT + 43 * - 89
----
-3827

query I rowsort
SELECT + 37 + - 9 + + - ( + 56 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT + COUNT( + - 0 )
----
1

skipif mysql # not compatible
query I rowsort label-3928
SELECT + COUNT ( + - 0 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3929
SELECT + 7 * + 31 AS col1, - COUNT( * )
----
217
-1

skipif mysql # not compatible
query II rowsort label-3929
SELECT + 7 * + 31 AS col1, - COUNT ( * )
----
217
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT - COALESCE ( COUNT( * ), + 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-3930
SELECT - COALESCE ( COUNT ( * ), + 23 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3931
SELECT + 30 DIV + 46 * - MIN( DISTINCT 91 ) * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3931
SELECT + 30 / + 46 * - MIN ( DISTINCT 91 ) * + + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3932
SELECT - CAST( NULL AS SIGNED ) * - + 41 + + 8 + - 17 + + + 39 * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3932
SELECT - CAST ( NULL AS INTEGER ) * - + 41 + + 8 + - 17 + + + 39 * - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT ALL + 39 * + 18 + + COUNT( * )
----
703

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL + 39 * + 18 + + COUNT ( * )
----
703

query I rowsort
SELECT ALL ( - 27 ) + - 24 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT COUNT( * ) + 23 * + 79 AS col0
----
1818

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT COUNT ( * ) + 23 * + 79 AS col0
----
1818

query I rowsort
SELECT + 94 + 26 AS col0
----
120

onlyif mysql # DIV for integer division: 
query II rowsort label-3937
SELECT DISTINCT 18 DIV - - 46 AS col2, ( - 4 ) DIV 3 AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-3937
SELECT DISTINCT 18 / - - 46 AS col2, ( - 4 ) / 3 AS col2
----
0
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3938
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 68 * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 68 * - - COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT ALL + 49 + - + 7 AS col1, 80 AS col0
----
42
80

query I rowsort
SELECT NULLIF ( + 32, NULLIF ( + 33, NULLIF ( - + 50, AVG ( 18 ) * - 85 + 45 ) ) )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3941
SELECT + - NULLIF ( CAST( NULL AS SIGNED ), + + 28 ) * - 51 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT + - NULLIF ( CAST ( NULL AS INTEGER ), + + 28 ) * - 51 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3942
SELECT DISTINCT + 38 - + 60 AS col1, 60 DIV - - COUNT( * ) AS col2
----
-22
60

skipif mysql # not compatible
query II rowsort label-3942
SELECT DISTINCT + 38 - + 60 AS col1, 60 / - - COUNT ( * ) AS col2
----
-22
60

query I rowsort
SELECT DISTINCT + 57 - - 32 + - 53
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL + + ( MAX( DISTINCT - - 16 ) ) col2
----
16

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL + + ( MAX ( DISTINCT - - 16 ) ) col2
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3945
SELECT - MAX( + 76 ) AS col0, - 69 * - 90
----
-76
6210

skipif mysql # not compatible
query II rowsort label-3945
SELECT - MAX ( + 76 ) AS col0, - 69 * - 90
----
-76
6210

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT - - 44 * + COUNT( + 71 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3946
SELECT - - 44 * + COUNT ( + 71 ) AS col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT ALL - - 37 DIV + 66 + + 76 + - 88 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL - - 37 / + 66 + + 76 + - 88 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT ALL + COUNT( * ) * + - 90 * + + 97
----
-8730

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL + COUNT ( * ) * + - 90 * + + 97
----
-8730

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3949
SELECT CAST( NULL AS SIGNED ) col2, 90 + - 44 AS col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-3949
SELECT CAST ( NULL AS INTEGER ) col2, 90 + - 44 AS col1
----
NULL
46

query I rowsort
SELECT ALL + 42 * - 95
----
-3990

query I rowsort
SELECT DISTINCT + 24 * + + 39 AS col0
----
936

query I rowsort
SELECT DISTINCT - 70 * 90 * + + 77
----
-485100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3953
SELECT ALL SUM( - - 53 ) DIV COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL SUM ( - - 53 ) / COUNT ( * )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT - 20 * + + COUNT( * ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-3954
SELECT - 20 * + + COUNT ( * ) col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT ALL 94 DIV + 93 + + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL 94 / + 93 + + - 18
----
-17

query I rowsort
SELECT 76 + - 81 AS col2
----
-5

query I rowsort
SELECT ALL - ( 47 )
----
-47

query II rowsort
SELECT 63 AS col0, + 0
----
63
0

query I rowsort
SELECT 31 * + + 81 AS col2
----
2511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT 80 * - 43 * 30 - + CAST( NULL AS SIGNED ) + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT 80 * - 43 * 30 - + CAST ( NULL AS INTEGER ) + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT ALL 13 + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL 13 + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-3962
SELECT ALL - ( + MAX( - 69 ) ) AS col1, 38 AS col1
----
69
38

skipif mysql # not compatible
query II rowsort label-3962
SELECT ALL - ( + MAX ( - 69 ) ) AS col1, 38 AS col1
----
69
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT ALL COUNT( * ) + - - 55 * - - 0 - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL COUNT ( * ) + - - 55 * - - 0 - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 21 + - 12
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL 41 + + + SUM( DISTINCT ( + + COALESCE ( - 93, + 96 ) ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL 41 + + + SUM ( DISTINCT ( + + COALESCE ( - 93, + 96 ) ) ) AS col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3966
SELECT ALL COUNT( * ) + - 0 DIV - 48 * - 27
----
1

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL COUNT ( * ) + - 0 / - 48 * - 27
----
1

query II rowsort
SELECT 43 AS col1, + 41 * + + 51 * 6
----
43
12546

query II rowsort
SELECT - 74 AS col2, 21
----
-74
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3969
SELECT - CAST( + - CAST( 85 AS SIGNED ) AS SIGNED ) - - COUNT( * ) + + 4 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-3969
SELECT - CAST ( + - CAST ( 85 AS INTEGER ) AS INTEGER ) - - COUNT ( * ) + + 4 AS col0
----
90

query I rowsort
SELECT - 96 + + 79 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT COUNT( * ) * - 17 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3971
SELECT COUNT ( * ) * - 17 AS col2
----
-17

query I rowsort
SELECT ALL - ( - 81 )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT DISTINCT 14 - + CAST( NULL AS SIGNED ) * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT 14 - + CAST ( NULL AS INTEGER ) * 5
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3974
SELECT ALL + 28 * CASE + 42 WHEN + + 27 THEN NULL WHEN - ( + 46 ) * - 51 DIV ( + SUM( DISTINCT - NULLIF ( + 93, + + 39 + + ( - 70 ) + - 74 DIV + 99 ) ) ) THEN 31 ELSE - - 92 DIV COUNT( * ) DIV ( + - COUNT( * ) ) END AS col2, + 5 + 38 AS col2
----
-2576
43

skipif mysql # not compatible
query II rowsort label-3974
SELECT ALL + 28 * CASE + 42 WHEN + + 27 THEN NULL WHEN - ( + 46 ) * - 51 / ( + SUM ( DISTINCT - NULLIF ( + 93, + + 39 + + ( - 70 ) + - 74 / + 99 ) ) ) THEN 31 ELSE - - 92 / COUNT ( * ) / ( + - COUNT ( * ) ) END AS col2, + 5 + 38 AS col2
----
-2576
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT - MAX( + 4 ) * 74 AS col0
----
-296

skipif mysql # not compatible
query I rowsort label-3975
SELECT - MAX ( + 4 ) * 74 AS col0
----
-296

query I rowsort
SELECT ALL - 53 - ( - ( + ( - ( - - 30 ) ) ) )
----
-83

query I rowsort
SELECT DISTINCT + + 64 * + 95
----
6080

query I rowsort
SELECT 76 + - 68
----
8

query II rowsort
SELECT 4 AS col2, + 51 AS col1
----
4
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3980
SELECT - 98, - CAST( NULL AS SIGNED ) AS col2
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-3980
SELECT - 98, - CAST ( NULL AS INTEGER ) AS col2
----
-98
NULL

query I rowsort
SELECT - 38 + + 5 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT - 31 AS col0, + MIN( + 31 )
----
-31
31

skipif mysql # not compatible
query II rowsort label-3982
SELECT - 31 AS col0, + MIN ( + 31 )
----
-31
31

query I rowsort
SELECT ALL 82 * - - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT 99 + - CASE + 39 WHEN 20 / - ( + COUNT( * ) ) + - 34 THEN 72 WHEN 60 THEN - + 71 * - - COUNT( * ) END + + - 5 * - 70 + + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT 99 + - CASE + 39 WHEN 20 / - ( + COUNT ( * ) ) + - 34 THEN 72 WHEN 60 THEN - + 71 * - - COUNT ( * ) END + + - 5 * - 70 + + - 91
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3985
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) + + 33 - - + NULLIF ( - ( - - CAST( NULL AS SIGNED ) ), + NULLIF ( - MAX( + 71 ), 45 ) * 99 + COUNT( * ) ) + - - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) + + 33 - - + NULLIF ( - ( - - CAST ( NULL AS INTEGER ) ), + NULLIF ( - MAX ( + 71 ), 45 ) * 99 + COUNT ( * ) ) + - - 66
----
NULL

query I rowsort
SELECT ALL 49 + + - 39
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3987
SELECT 5 DIV COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3987
SELECT 5 / COUNT ( * ) AS col2
----
5

query I rowsort
SELECT - 46 * 1 + 59 * + 86
----
5028

query I rowsort
SELECT 84 * + 86 + - + NULLIF ( - 84, 91 ) AS col0
----
7308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3990
SELECT DISTINCT + CASE - - 17 WHEN + 55 * + 19 * + 43 THEN NULL ELSE - + NULLIF ( + 76, 47 ) * - CAST( NULL AS SIGNED ) END / - 46 + + + 9 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT + CASE - - 17 WHEN + 55 * + 19 * + 43 THEN NULL ELSE - + NULLIF ( + 76, 47 ) * - CAST ( NULL AS INTEGER ) END / - 46 + + + 9 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3991
SELECT 2 + + - 94 - + CASE 12 WHEN NULLIF ( - 12, 35 * COUNT( * ) DIV - 50 + + MIN( 84 ) ) THEN - + 3 * 60 DIV + 5 * - 56 + + + 58 + - - CAST( NULL AS SIGNED ) * 83 ELSE CASE - ( - + 50 ) WHEN 6 THEN - 54 + 22 WHEN - 27 THEN NULL ELSE 51 + 34 END * - 15 END
----
1183

skipif mysql # not compatible
query I rowsort label-3991
SELECT 2 + + - 94 - + CASE 12 WHEN NULLIF ( - 12, 35 * COUNT ( * ) / - 50 + + MIN ( 84 ) ) THEN - + 3 * 60 / + 5 * - 56 + + + 58 + - - CAST ( NULL AS INTEGER ) * 83 ELSE CASE - ( - + 50 ) WHEN 6 THEN - 54 + 22 WHEN - 27 THEN NULL ELSE 51 + 34 END * - 15 END
----
1183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3992
SELECT 85 * - 17 + - 13 + + + 65 * + - CAST( NULL AS SIGNED ) + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT 85 * - 17 + - 13 + + + 65 * + - CAST ( NULL AS INTEGER ) + 3 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT ALL 83 + - 78 + - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL 83 + - 78 + - COUNT ( * )
----
4

query I rowsort
SELECT DISTINCT + 94 * - - 65 * - 51
----
-311610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3995
SELECT 21 DIV - NULLIF ( + 29, - + MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) + 19 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3995
SELECT 21 / - NULLIF ( + 29, - + MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + 19 ) AS col1
----
0

query I rowsort
SELECT ALL - 22 + - + 15 + 44 * 39 * 79 AS col2
----
135527

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3997
SELECT DISTINCT 0 DIV COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT 0 / COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3998
SELECT 11 DIV + 33 * - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3998
SELECT 11 / + 33 * - 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT COUNT( * ) + - 63
----
-62

skipif mysql # not compatible
query I rowsort label-3999
SELECT COUNT ( * ) + - 63
----
-62

query I rowsort
SELECT + 81 + + 14 col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT CAST( + - ( 49 ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-4001
SELECT CAST ( + - ( 49 ) AS INTEGER )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4002
SELECT ALL + CASE + + CASE - COUNT( DISTINCT 42 ) WHEN + 93 THEN - AVG ( DISTINCT ( 87 ) ) ELSE + COUNT( * ) END WHEN - 73 THEN + - 38 / CASE 47 WHEN + - ( + + 20 ) THEN + - 68 WHEN + + 10 * + 11 + - + 67 + + 77 + - 36 THEN - 98 WHEN - 99 * + 75 * CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL + CASE + + CASE - COUNT ( DISTINCT 42 ) WHEN + 93 THEN - AVG ( DISTINCT ( 87 ) ) ELSE + COUNT ( * ) END WHEN - 73 THEN + - 38 / CASE 47 WHEN + - ( + + 20 ) THEN + - 68 WHEN + + 10 * + 11 + - + 67 + + 77 + - 36 THEN - 98 WHEN - 99 * + 75 * CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4003
SELECT ( + COUNT( * ) ) * COALESCE ( 35, 82 - + + 3 ) DIV - 77 * + COUNT( * ) + - 89 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4003
SELECT ( + COUNT ( * ) ) * COALESCE ( 35, 82 - + + 3 ) / - 77 * + COUNT ( * ) + - 89 AS col1
----
-89

query I rowsort
SELECT 65 + + 40
----
105

query II rowsort
SELECT - COALESCE ( + 87, - 43 * 96 ) col2, + 66 * 41 * - + 25 * - + 26
----
-87
1758900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4006
SELECT DISTINCT + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * + - SUM( ALL - 42 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * + - SUM ( ALL - 42 ) - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 95 * + 82 * - - 3
----
23370

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT - COUNT( - 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-4008
SELECT - COUNT ( - 96 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4009
SELECT + 36 DIV 18 * + - NULLIF ( - COUNT( * ), + COUNT( * ) ) + - 57 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-4009
SELECT + 36 / 18 * + - NULLIF ( - COUNT ( * ), + COUNT ( * ) ) + - 57 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT + COUNT( * ) + - 8 col2
----
-7

skipif mysql # not compatible
query I rowsort label-4010
SELECT + COUNT ( * ) + - 8 col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT + 63 - - CAST( - + 76 AS SIGNED ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4011
SELECT + 63 - - CAST ( - + 76 AS INTEGER ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL - MAX( ALL + 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL - MAX ( ALL + 24 ) AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4013
SELECT DISTINCT CASE - 66 WHEN + MIN( ALL - - 89 ) * + - MIN( ALL - ( - 68 ) ) * + - COUNT( * ) THEN NULL WHEN - - 25 * - + CAST( NULL AS SIGNED ) + 36 * + COUNT( * ) THEN - 68 WHEN + 35 * SUM( + 85 ) THEN NULL WHEN - 4 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT CASE - 66 WHEN + MIN ( ALL - - 89 ) * + - MIN ( ALL - ( - 68 ) ) * + - COUNT ( * ) THEN NULL WHEN - - 25 * - + CAST ( NULL AS INTEGER ) + 36 * + COUNT ( * ) THEN - 68 WHEN + 35 * SUM ( + 85 ) THEN NULL WHEN - 4 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT - 86 * + - 8 + + 32 + + 98, 96 AS col2
----
818
96

query I rowsort
SELECT ALL 55 + - - NULLIF ( - 89, + 90 - + 38 ) * - + 36
----
3259

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT + 32 DIV + + 38 * + + 11 col1
----
0

skipif mysql # not compatible
query I rowsort label-4016
SELECT + 32 / + + 38 * + + 11 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4017
SELECT + COALESCE ( - 68, 86 DIV + COALESCE ( 14, - - 91 * + 97 * + 11 + + COALESCE ( - + ( + 42 ), - 76 ) ) + + COUNT( * ), 79 ) * 9 * - COUNT( - 87 ) * + + ( COUNT( * ) ) col2
----
612

skipif mysql # not compatible
query I rowsort label-4017
SELECT + COALESCE ( - 68, 86 / + COALESCE ( 14, - - 91 * + 97 * + 11 + + COALESCE ( - + ( + 42 ), - 76 ) ) + + COUNT ( * ), 79 ) * 9 * - COUNT ( - 87 ) * + + ( COUNT ( * ) ) col2
----
612

query I rowsort
SELECT + 14 * + + 77 AS col1
----
1078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4019
SELECT + COUNT( + + CAST( 76 AS SIGNED ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4019
SELECT + COUNT ( + + CAST ( 76 AS INTEGER ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT COUNT( * ) * + 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT COUNT ( * ) * + 4 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT NULLIF ( 7, - 84 * 7 + - 21 / + 85 + - 73 - - + 5 - + - 79 * + SUM( - + 50 ) )
----
7

skipif mysql # not compatible
query I rowsort label-4021
SELECT NULLIF ( 7, - 84 * 7 + - 21 / + 85 + - 73 - - + 5 - + - 79 * + SUM ( - + 50 ) )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4022
SELECT ALL + 57 * - CASE - - COALESCE ( - 47, 17 + + 28 + - + MAX( DISTINCT - 10 ) ) WHEN - 27 THEN NULL WHEN - 66 * + CAST( + 55 AS SIGNED ) THEN - ( + + COUNT( * ) ) * - - 11 END + - COALESCE ( 93, 45 + COALESCE ( + 53, CAST( NULL AS DECIMAL ) * + 23 + - + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL + 57 * - CASE - - COALESCE ( - 47, 17 + + 28 + - + MAX ( DISTINCT - 10 ) ) WHEN - 27 THEN NULL WHEN - 66 * + CAST ( + 55 AS INTEGER ) THEN - ( + + COUNT ( * ) ) * - - 11 END + - COALESCE ( 93, 45 + COALESCE ( + 53, CAST ( NULL AS REAL ) * + 23 + - + COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT + 78 * - 59 * 80 AS col2
----
-368160

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL + COUNT( ALL + ( + 83 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL + COUNT ( ALL + ( + 83 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT DISTINCT COUNT( * ) * 27 * + 30
----
810

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT COUNT ( * ) * 27 * + 30
----
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4026
SELECT ALL + 40 * 12 + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL + 40 * 12 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 96 * + - 42 + - 66 * + 9
----
-4626

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT MAX( + 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4028
SELECT MAX ( + 13 ) AS col0
----
13

query I rowsort
SELECT - 66 * + 70 + + 49 - + 8 AS col2
----
-4579

query I rowsort
SELECT + 12 * 94
----
1128

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT - ( - 97 ) * - + SUM( ALL - 19 ) AS col0
----
1843

skipif mysql # not compatible
query I rowsort label-4031
SELECT - ( - 97 ) * - + SUM ( ALL - 19 ) AS col0
----
1843

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4032
SELECT ALL - MIN( ALL + ( 94 ) ) * 29 - - + COUNT( * ) AS col2, 35 DIV + - 66 * + 57
----
-2725
0

skipif mysql # not compatible
query II rowsort label-4032
SELECT ALL - MIN ( ALL + ( 94 ) ) * 29 - - + COUNT ( * ) AS col2, 35 / + - 66 * + 57
----
-2725
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4033
SELECT - 18 + 42 + + 92, + MIN( + 6 ) AS col0
----
116
6

skipif mysql # not compatible
query II rowsort label-4033
SELECT - 18 + 42 + + 92, + MIN ( + 6 ) AS col0
----
116
6

query I rowsort
SELECT ALL + COALESCE ( + 29, - 27, + - 30 )
----
29

query I rowsort
SELECT DISTINCT + + 93 - 47 AS col0
----
46

query I rowsort
SELECT - + 37 + - 56 * + 86 AS col2
----
-4853

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT + + 23 * + 32 - - 20 + - - 16 + - COUNT( * ) + - + COUNT( * ) + - 14 * + + 22 * + 47
----
-13706

skipif mysql # not compatible
query I rowsort label-4037
SELECT + + 23 * + 32 - - 20 + - - 16 + - COUNT ( * ) + - + COUNT ( * ) + - 14 * + + 22 * + 47
----
-13706

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), + - ( 70 ) + + 37 - - - 7 * - 50 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), + - ( 70 ) + + 37 - - - 7 * - 50 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT + COUNT( * ) * + 25 * COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-4039
SELECT + COUNT ( * ) * + 25 * COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT - COALESCE ( - 64, - 25 * - 41 ) * ( + + 27 ) * + COUNT( * )
----
1728

skipif mysql # not compatible
query I rowsort label-4040
SELECT - COALESCE ( - 64, - 25 * - 41 ) * ( + + 27 ) * + COUNT ( * )
----
1728

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4041
SELECT - CAST( NULL AS DECIMAL ) + - + 32 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT - CAST ( NULL AS REAL ) + - + 32 * - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4042
SELECT DISTINCT COUNT( * ) AS col0, + 41 * + 49
----
1
2009

skipif mysql # not compatible
query II rowsort label-4042
SELECT DISTINCT COUNT ( * ) AS col0, + 41 * + 49
----
1
2009

query I rowsort
SELECT ALL - 74 + + 90 + + ( - - 52 ) col0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4044
SELECT ALL 0 * 85 * + 48 + - COALESCE ( - + 87, + - 93 * - - 0 * + 59 * + + 11 DIV + 86 ) + + SUM( + 44 ) * 72 DIV + + 13 * + COUNT( * ), + 12 AS col0
----
330
12

skipif mysql # not compatible
query II rowsort label-4044
SELECT ALL 0 * 85 * + 48 + - COALESCE ( - + 87, + - 93 * - - 0 * + 59 * + + 11 / + 86 ) + + SUM ( + 44 ) * 72 / + + 13 * + COUNT ( * ), + 12 AS col0
----
330
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4045
SELECT - + COALESCE ( 77, + + 10 ) DIV - 89 + + + 99, MIN( DISTINCT - + 74 ) + 72 AS col1
----
99
-2

skipif mysql # not compatible
query II rowsort label-4045
SELECT - + COALESCE ( 77, + + 10 ) / - 89 + + + 99, MIN ( DISTINCT - + 74 ) + 72 AS col1
----
99
-2

query II rowsort
SELECT ALL + 94 + + 46 * + 59 col1, 20 AS col2
----
2808
20

query I rowsort
SELECT DISTINCT + 83 * 1 + + 47 col1
----
130

query I rowsort
SELECT - - 19 + - 9 * - 7 * + 84
----
5311

query I rowsort
SELECT - NULLIF ( - - 0, + + 59 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT - 8 + 76 * + - COUNT( * ) + - 72 * + 90 AS col1
----
-6564

skipif mysql # not compatible
query I rowsort label-4050
SELECT - 8 + 76 * + - COUNT ( * ) + - 72 * + 90 AS col1
----
-6564

query I rowsort
SELECT + 14 * 87
----
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT - COUNT( DISTINCT + - 79 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4052
SELECT - COUNT ( DISTINCT + - 79 ) AS col2
----
-1

query I rowsort
SELECT - 2 + - + 34
----
-36

query I rowsort
SELECT - 61 * + 53
----
-3233

query I rowsort
SELECT ALL - 94 * - 38 AS col1
----
3572

query II rowsort
SELECT ALL + 85, - 48 * - + 10 AS col2
----
85
480

onlyif mysql # DIV for integer division: 
query I rowsort label-4057
SELECT ALL + 85 DIV + 44 + 17 * + + 54 + 8
----
927

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL + 85 / + 44 + 17 * + + 54 + 8
----
927

query I rowsort
SELECT ALL 25 * 80 AS col2
----
2000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4059
SELECT + 31 + - + SUM( ALL + + CAST( NULL AS SIGNED ) ) - + COUNT( + 22 ) * + + 64 AS col2, 14 DIV + - 71
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4059
SELECT + 31 + - + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) - + COUNT ( + 22 ) * + + 64 AS col2, 14 / + - 71
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4060
SELECT ALL 81 / - 68 - - - AVG ( DISTINCT - CASE - 55 WHEN - - 24 + - 17 - 45 + - 14 * - NULLIF ( + 42, 65 ) * - 1 THEN NULL WHEN 54 THEN + 85 END ) + + 8 * - CAST( - - 25 AS SIGNED ) * 69 * + CASE - - 77 WHEN - COUNT( * ) THEN + - MIN( + + 13 ) ELSE NULL END * + + 50 + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL 81 / - 68 - - - AVG ( DISTINCT - CASE - 55 WHEN - - 24 + - 17 - 45 + - 14 * - NULLIF ( + 42, 65 ) * - 1 THEN NULL WHEN 54 THEN + 85 END ) + + 8 * - CAST ( - - 25 AS INTEGER ) * 69 * + CASE - - 77 WHEN - COUNT ( * ) THEN + - MIN ( + + 13 ) ELSE NULL END * + + 50 + 91 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4061
SELECT + 48 + + 62 DIV - CAST( + ( - - 43 ) AS SIGNED ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4061
SELECT + 48 + + 62 / - CAST ( + ( - - 43 ) AS INTEGER ) AS col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4062
SELECT DISTINCT 54 DIV 88 * - + 64
----
0

skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT 54 / 88 * - + 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT - 0 * - COUNT( * ) + - + 11 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4063
SELECT - 0 * - COUNT ( * ) + - + 11 AS col0
----
-11

query I rowsort
SELECT ALL 89 * - 38 AS col1
----
-3382

query I rowsort
SELECT ( - 99 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT 58 * + COUNT( * ) + 83 * - + 6 + + 0 AS col1
----
-440

skipif mysql # not compatible
query I rowsort label-4066
SELECT 58 * + COUNT ( * ) + 83 * - + 6 + + 0 AS col1
----
-440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4067
SELECT ( + 89 ) AS col0, ( + NULLIF ( 46, + - 41 ) ) / - - CAST( NULL AS SIGNED ) + + 89 * COUNT( * )
----
89
NULL

skipif mysql # not compatible
query II rowsort label-4067
SELECT ( + 89 ) AS col0, ( + NULLIF ( 46, + - 41 ) ) / - - CAST ( NULL AS INTEGER ) + + 89 * COUNT ( * )
----
89
NULL

query I rowsort
SELECT ALL 83 * - - 44
----
3652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4069
SELECT - ( + 15 ) * + CASE - + COUNT( * ) WHEN - 60 * COUNT( * ) * - 23 + - SUM( + + 17 ) THEN - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) * + 4 * 69 * - + 50 THEN 43 WHEN + + 94 THEN + - COALESCE ( - 99, 81 - + 7 ) WHEN - - 96 THEN NULL END + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT - ( + 15 ) * + CASE - + COUNT ( * ) WHEN - 60 * COUNT ( * ) * - 23 + - SUM ( + + 17 ) THEN - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) * + 4 * 69 * - + 50 THEN 43 WHEN + + 94 THEN + - COALESCE ( - 99, 81 - + 7 ) WHEN - - 96 THEN NULL END + 75 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4070
SELECT DISTINCT + 46 col1, - CAST( NULL AS DECIMAL )
----
46
NULL

skipif mysql # not compatible
query II rowsort label-4070
SELECT DISTINCT + 46 col1, - CAST ( NULL AS REAL )
----
46
NULL

query I rowsort
SELECT + + 10 * + 3 AS col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT + CAST( + 9 AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4072
SELECT + CAST ( + 9 AS INTEGER ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4073
SELECT + ( + COALESCE ( - 69, COUNT( * ) ) ) AS col1, - 11 AS col1
----
-69
-11

skipif mysql # not compatible
query II rowsort label-4073
SELECT + ( + COALESCE ( - 69, COUNT ( * ) ) ) AS col1, - 11 AS col1
----
-69
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT + 91 * + 55 * - - 12 + + COUNT( * )
----
60061

skipif mysql # not compatible
query I rowsort label-4074
SELECT + 91 * + 55 * - - 12 + + COUNT ( * )
----
60061

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4075
SELECT DISTINCT 78 * ( + 52 ) + - 40 DIV + - COUNT( * ) + + 9 AS col0, + 4 * CASE + 14 WHEN + 5 THEN - 97 + + 20 * + - 54 ELSE NULL END + - 8
----
4105
NULL

skipif mysql # not compatible
query II rowsort label-4075
SELECT DISTINCT 78 * ( + 52 ) + - 40 / + - COUNT ( * ) + + 9 AS col0, + 4 * CASE + 14 WHEN + 5 THEN - 97 + + 20 * + - 54 ELSE NULL END + - 8
----
4105
NULL

query II rowsort
SELECT + 38 AS col0, - 72 + + 47 * 95 * + + 83 AS col1
----
38
370523

query I rowsort
SELECT - 79 * 25 * + 91 AS col0
----
-179725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4078
SELECT ALL - 97 * - - 0 * + CAST( NULL AS SIGNED ) / - 94 * - 35 + CAST( NULL AS SIGNED ) * CAST( NULLIF ( MAX( - - 85 ), - 56 ) AS DECIMAL ) - - + ( 23 ) * + COUNT( * ) / + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL - 97 * - - 0 * + CAST ( NULL AS INTEGER ) / - 94 * - 35 + CAST ( NULL AS INTEGER ) * CAST ( NULLIF ( MAX ( - - 85 ), - 56 ) AS REAL ) - - + ( 23 ) * + COUNT ( * ) / + - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT DISTINCT COUNT( ALL + + 89 )
----
1

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT COUNT ( ALL + + 89 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4080
SELECT ALL + + 15 * - 32 DIV + COUNT( * )
----
-480

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL + + 15 * - 32 / + COUNT ( * )
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT - + COUNT( * ) * + 51
----
-51

skipif mysql # not compatible
query I rowsort label-4081
SELECT - + COUNT ( * ) * + 51
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4082
SELECT ALL - 68 * - + 11 + + - NULLIF ( + + 76, - + MIN( DISTINCT + 75 ) ) AS col2, - 27 * - 7 * 94 - - 91 AS col0
----
672
17857

skipif mysql # not compatible
query II rowsort label-4082
SELECT ALL - 68 * - + 11 + + - NULLIF ( + + 76, - + MIN ( DISTINCT + 75 ) ) AS col2, - 27 * - 7 * 94 - - 91 AS col0
----
672
17857

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT ALL - COUNT( * ) + 66 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL - COUNT ( * ) + 66 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL + - ( - 7 ) + - COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL + - ( - 7 ) + - COUNT ( * ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL + - 23 * - MIN( 66 ) AS col2
----
1518

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL + - 23 * - MIN ( 66 ) AS col2
----
1518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4086
SELECT - CAST( NULL AS SIGNED ) * + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4086
SELECT - CAST ( NULL AS INTEGER ) * + 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - 77 + - - 37 + - 89 + COUNT( * ) * - - 44 * - 27 * + + 6 AS col1
----
-7257

skipif mysql # not compatible
query I rowsort label-4087
SELECT - 77 + - - 37 + - 89 + COUNT ( * ) * - - 44 * - 27 * + + 6 AS col1
----
-7257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT + 81 * - + ( + CAST( 42 AS SIGNED ) ) * + 30 AS col1
----
-102060

skipif mysql # not compatible
query I rowsort label-4088
SELECT + 81 * - + ( + CAST ( 42 AS INTEGER ) ) * + 30 AS col1
----
-102060

onlyif mysql # aggregate syntax: 
query II rowsort label-4089
SELECT DISTINCT - MIN( + 7 ), ( - + 83 ) + 93 AS col0
----
-7
10

skipif mysql # not compatible
query II rowsort label-4089
SELECT DISTINCT - MIN ( + 7 ), ( - + 83 ) + 93 AS col0
----
-7
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT ALL - - COUNT( * ) + + COUNT( * ) + + - COUNT( * ) - + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL - - COUNT ( * ) + + COUNT ( * ) + + - COUNT ( * ) - + + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT 31 + 95
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT 14 - COUNT( * ) + - 70 - + - 50 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-4092
SELECT 14 - COUNT ( * ) + - 70 - + - 50 AS col0
----
-7

query I rowsort
SELECT DISTINCT 1 * + 78
----
78

query I rowsort
SELECT 40 * + 93
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT DISTINCT - COUNT( * ) * - 54
----
54

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT - COUNT ( * ) * - 54
----
54

query I rowsort
SELECT 30 * + + ( ( + + 40 ) ) * - 42
----
-50400

query II rowsort
SELECT ALL - ( - + 59 ) AS col2, 21 AS col0
----
59
21

query I rowsort
SELECT DISTINCT - 45 * + 93 * 0 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4099
SELECT ALL 35 DIV + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL 35 / + COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL - MIN( - + 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL - MIN ( - + 40 ) AS col0
----
40

query II rowsort
SELECT DISTINCT 48 * - 75 AS col0, 68
----
-3600
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4102
SELECT + 59 * - 93 - ( - 13 ) DIV 60
----
-5487

skipif mysql # not compatible
query I rowsort label-4102
SELECT + 59 * - 93 - ( - 13 ) / 60
----
-5487

onlyif mysql # DIV for integer division: 
query I rowsort label-4103
SELECT ALL 96 DIV 12 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL 96 / 12 AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT + CASE - - CAST( NULL AS SIGNED ) WHEN - 13 THEN - - 32 + + AVG ( - 86 ) END / - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT + CASE - - CAST ( NULL AS INTEGER ) WHEN - 13 THEN - - 32 + + AVG ( - 86 ) END / - 22 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4105
SELECT ALL CAST( NULL AS SIGNED ) * - - MAX( ALL 68 ) * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL CAST ( NULL AS INTEGER ) * - - MAX ( ALL 68 ) * COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4106
SELECT + 58 * + + COUNT( * ), 42 AS col1
----
58
42

skipif mysql # not compatible
query II rowsort label-4106
SELECT + 58 * + + COUNT ( * ), 42 AS col1
----
58
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT + - 86 * + 27 + - COUNT( DISTINCT - 11 ) AS col2
----
-2323

skipif mysql # not compatible
query I rowsort label-4107
SELECT + - 86 * + 27 + - COUNT ( DISTINCT - 11 ) AS col2
----
-2323

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4108
SELECT DISTINCT - 85 + CAST( NULL AS DECIMAL ) + + ( - 14 ) + - 11 - + - 29 + + - MIN( DISTINCT + - 98 ) / + 90 * 15 + + + COUNT( * ) - - 4 - - - 29 + + 44 + 20 AS col2, 83 * 77
----
NULL
6391

skipif mysql # not compatible
query II rowsort label-4108
SELECT DISTINCT - 85 + CAST ( NULL AS REAL ) + + ( - 14 ) + - 11 - + - 29 + + - MIN ( DISTINCT + - 98 ) / + 90 * 15 + + + COUNT ( * ) - - 4 - - - 29 + + 44 + 20 AS col2, 83 * 77
----
NULL
6391

onlyif mysql # aggregate syntax: 
query II rowsort label-4109
SELECT ALL + 74 + - + ( + + 49 ), - COUNT( * ) + + 34 col0
----
25
33

skipif mysql # not compatible
query II rowsort label-4109
SELECT ALL + 74 + - + ( + + 49 ), - COUNT ( * ) + + 34 col0
----
25
33

query I rowsort
SELECT DISTINCT + 16 * 15 AS col0
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT DISTINCT + CAST( + 74 AS SIGNED ) + - 38 + - COUNT( * ) + - 71 * + 75 * - ( + + 39 )
----
207710

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT + CAST ( + 74 AS INTEGER ) + - 38 + - COUNT ( * ) + - 71 * + 75 * - ( + + 39 )
----
207710

query I rowsort
SELECT DISTINCT + 24 + - 78 + + 42 AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4113
SELECT - COALESCE ( 38, - 14 DIV + - 15 )
----
-38

skipif mysql # not compatible
query I rowsort label-4113
SELECT - COALESCE ( 38, - 14 / + - 15 )
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-4114
SELECT DISTINCT - SUM( ALL - 89 ) + 63 * - - 90 + + COUNT( * ) + + 83 + + + 77 + + ( - 89 ) * + + 25, 57 AS col0
----
3695
57

skipif mysql # not compatible
query II rowsort label-4114
SELECT DISTINCT - SUM ( ALL - 89 ) + 63 * - - 90 + + COUNT ( * ) + + 83 + + + 77 + + ( - 89 ) * + + 25, 57 AS col0
----
3695
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT COUNT( * ) * 78 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4115
SELECT COUNT ( * ) * 78 AS col1
----
78

query II rowsort
SELECT - 98, - 66 AS col0
----
-98
-66

query I rowsort
SELECT ALL 85 - 8 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL + ( + MAX( 32 ) ) - + 29 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL + ( + MAX ( 32 ) ) - + 29 AS col0
----
3

query I rowsort
SELECT 37 - + 39 col1
----
-2

query I rowsort
SELECT 40 * 24 * 7 * - - 29
----
194880

query II rowsort
SELECT ALL 65 AS col0, - 11 AS col0
----
65
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT NULLIF ( - 29, + 48 ) + - - 90 * - COUNT( * ) * + - COUNT( * ) col0
----
61

skipif mysql # not compatible
query I rowsort label-4122
SELECT NULLIF ( - 29, + 48 ) + - - 90 * - COUNT ( * ) * + - COUNT ( * ) col0
----
61

query II rowsort
SELECT 46 - - 42 - 49 col2, ( - 41 ) + 0 + + + 9
----
39
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT 27 + + + CASE - - 19 WHEN + + 1 * + 84 * 32 + + MAX( ALL ( - 13 ) ) / - + 55 + 81 * 2 / - MAX( + 36 ) - - + 2 THEN NULL ELSE + + 48 * + 0 END AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4124
SELECT 27 + + + CASE - - 19 WHEN + + 1 * + 84 * 32 + + MAX ( ALL ( - 13 ) ) / - + 55 + 81 * 2 / - MAX ( + 36 ) - - + 2 THEN NULL ELSE + + 48 * + 0 END AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT 36 + + + 6 * COALESCE ( - 50, + MIN( ALL 25 ), - 92 )
----
-264

skipif mysql # not compatible
query I rowsort label-4125
SELECT 36 + + + 6 * COALESCE ( - 50, + MIN ( ALL 25 ), - 92 )
----
-264

query I rowsort
SELECT 39 * 70 * + + 1 AS col2
----
2730

query I rowsort
SELECT 65 * - 67 AS col1
----
-4355

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL 29 * - 92 * - - COUNT( * )
----
-2668

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL 29 * - 92 * - - COUNT ( * )
----
-2668

query I rowsort
SELECT 71 + 82
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-4130
SELECT ALL + 75 * + 72 * - 36 + + 30 AS col1, + 2 * + COUNT( * ) * - + 75 + + + 32 AS col0
----
-194370
-118

skipif mysql # not compatible
query II rowsort label-4130
SELECT ALL + 75 * + 72 * - 36 + + 30 AS col1, + 2 * + COUNT ( * ) * - + 75 + + + 32 AS col0
----
-194370
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT ALL - 96 * 78 + - 81 DIV 56
----
-7489

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL - 96 * 78 + - 81 / 56
----
-7489

query I rowsort
SELECT + CASE + NULLIF ( 79, - 0 ) WHEN + 14 THEN - - 22 ELSE + COALESCE ( + + 30, - + 81 ) END AS col0
----
30

query I rowsort
SELECT NULLIF ( 68, 74 ) * 94 * + 11 * - 54 col0
----
-3796848

onlyif mysql # DIV for integer division: 
query I rowsort label-4134
SELECT - ( - + COALESCE ( - - 38, - 23 - - 46 * + - 66 DIV - AVG ( + 25 ), - 77 * + 31 + - 48 ) ) * + 80
----
3040

skipif mysql # not compatible
query I rowsort label-4134
SELECT - ( - + COALESCE ( - - 38, - 23 - - 46 * + - 66 / - AVG ( + 25 ), - 77 * + 31 + - 48 ) ) * + 80
----
3040

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT + 36 * - COUNT( * ) * + 3
----
-108

skipif mysql # not compatible
query I rowsort label-4135
SELECT + 36 * - COUNT ( * ) * + 3
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT - 80 * + 46 + ( MIN( ALL - 28 ) ) AS col0
----
-3708

skipif mysql # not compatible
query I rowsort label-4136
SELECT - 80 * + 46 + ( MIN ( ALL - 28 ) ) AS col0
----
-3708

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT + - 73 AS col0, MIN( DISTINCT + 28 )
----
-73
28

skipif mysql # not compatible
query II rowsort label-4137
SELECT + - 73 AS col0, MIN ( DISTINCT + 28 )
----
-73
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4138
SELECT + + 68 DIV - 64 + + MAX( - 62 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4138
SELECT + + 68 / - 64 + + MAX ( - 62 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-4139
SELECT - - 57 * - 78 + - COUNT( * ) AS col2, 62 - - 32
----
-4447
94

skipif mysql # not compatible
query II rowsort label-4139
SELECT - - 57 * - 78 + - COUNT ( * ) AS col2, 62 - - 32
----
-4447
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4140
SELECT ALL SUM( DISTINCT + 52 ) * + + 73 AS col1, 99 AS col1
----
3796
99

skipif mysql # not compatible
query II rowsort label-4140
SELECT ALL SUM ( DISTINCT + 52 ) * + + 73 AS col1, 99 AS col1
----
3796
99

query I rowsort
SELECT DISTINCT - 60 * + 13 * + + ( 97 )
----
-75660

onlyif mysql # aggregate syntax: 
query II rowsort label-4142
SELECT + 32 * - - COUNT( * ) AS col1, 23 col2
----
32
23

skipif mysql # not compatible
query II rowsort label-4142
SELECT + 32 * - - COUNT ( * ) AS col1, 23 col2
----
32
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4143
SELECT ALL COUNT( * ) * + + 69 AS col1, - ( + 24 ) * - + 10 + - - 24 AS col2
----
69
264

skipif mysql # not compatible
query II rowsort label-4143
SELECT ALL COUNT ( * ) * + + 69 AS col1, - ( + 24 ) * - + 10 + - - 24 AS col2
----
69
264

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT - 2 + 62 - + - COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4144
SELECT - 2 + 62 - + - COUNT ( * ) AS col1
----
61

query II rowsort
SELECT + 25 + + 30, 76 AS col1
----
55
76

query I rowsort
SELECT + 96 * + + 70 AS col1
----
6720

onlyif mysql # DIV for integer division: 
query II rowsort label-4147
SELECT DISTINCT ( - 53 ) DIV 33 * + NULLIF ( - 29, - 77 + - - 37 ) AS col2, 60
----
29
60

skipif mysql # not compatible
query II rowsort label-4147
SELECT DISTINCT ( - 53 ) / 33 * + NULLIF ( - 29, - 77 + - - 37 ) AS col2, 60
----
29
60

query I rowsort
SELECT - ( - + 26 ) AS col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4149
SELECT - NULLIF ( - 70, - NULLIF ( + 1, + SUM( DISTINCT - + 50 ) ) ) DIV + 30, 18 * - 40 * + 92 * 21 AS col1
----
2
-1391040

skipif mysql # not compatible
query II rowsort label-4149
SELECT - NULLIF ( - 70, - NULLIF ( + 1, + SUM ( DISTINCT - + 50 ) ) ) / + 30, 18 * - 40 * + 92 * 21 AS col1
----
2
-1391040

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT ALL 24 + - - SUM( + 90 ) AS col2
----
114

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL 24 + - - SUM ( + 90 ) AS col2
----
114

query I rowsort
SELECT - ( - + 82 ) * + 37 AS col0
----
3034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4152
SELECT ( CAST( + + 50 AS SIGNED ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4152
SELECT ( CAST ( + + 50 AS INTEGER ) ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ( - MIN( DISTINCT - + 59 ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4153
SELECT ( - MIN ( DISTINCT - + 59 ) ) AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4154
SELECT + CASE + 43 WHEN ( + 91 ) - - MAX( ALL - - 55 ) + - - COUNT( * ) * - COUNT( * ) THEN - 69 * 51 + + 10 + + ( + 88 ) + + + 84 - NULLIF ( COUNT( * ), + - CAST( + 77 AS SIGNED ) ) WHEN + 7 THEN - + 61 ELSE + - 42 END DIV + - 73 + - + 61 + - - ( COUNT( * ) ), - CAST( - 16 AS SIGNED ) AS col1, + 98 AS col0
----
-60
16
98

skipif mysql # not compatible
query III rowsort label-4154
SELECT + CASE + 43 WHEN ( + 91 ) - - MAX ( ALL - - 55 ) + - - COUNT ( * ) * - COUNT ( * ) THEN - 69 * 51 + + 10 + + ( + 88 ) + + + 84 - NULLIF ( COUNT ( * ), + - CAST ( + 77 AS INTEGER ) ) WHEN + 7 THEN - + 61 ELSE + - 42 END / + - 73 + - + 61 + - - ( COUNT ( * ) ), - CAST ( - 16 AS INTEGER ) AS col1, + 98 AS col0
----
-60
16
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT - + 73 DIV 28 + + 53 + - 14 col1
----
37

skipif mysql # not compatible
query I rowsort label-4155
SELECT - + 73 / 28 + + 53 + - 14 col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4156
SELECT ALL 21 * 9 + - CAST( + 97 AS SIGNED ) * + - 77 + + - CASE COALESCE ( - + 97, - + COUNT( * ), + CAST( - 9 AS SIGNED ) * + - 13 * + + 39 + ( - 86 ) + 35 ) WHEN 78 THEN - 56 * + + 34 * + 30 WHEN - 55 THEN + - 67 + - 35 END + + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL 21 * 9 + - CAST ( + 97 AS INTEGER ) * + - 77 + + - CASE COALESCE ( - + 97, - + COUNT ( * ), + CAST ( - 9 AS INTEGER ) * + - 13 * + + 39 + ( - 86 ) + 35 ) WHEN 78 THEN - 56 * + + 34 * + 30 WHEN - 55 THEN + - 67 + - 35 END + + 74 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 58 * + + 81 + 58
----
4756

query I rowsort
SELECT + NULLIF ( 73, 91 ) AS col2
----
73

query II rowsort
SELECT - 98 * + NULLIF ( + 30, + - 39 * - 71 ) AS col0, CASE + 31 WHEN - AVG ( DISTINCT - 61 ) THEN NULL WHEN 1 THEN + - 14 * 34 ELSE NULL END AS col0
----
-2940
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4160
SELECT ALL - 48 * NULLIF ( 91, + - 14 ) + + SUM( ALL - 76 ) * 0, - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
-4368
NULL

skipif mysql # not compatible
query II rowsort label-4160
SELECT ALL - 48 * NULLIF ( 91, + - 14 ) + + SUM ( ALL - 76 ) * 0, - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
-4368
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4161
SELECT 46 * COUNT( DISTINCT + 13 ) - - + 38 AS col2, + 26 - - 34
----
84
60

skipif mysql # not compatible
query II rowsort label-4161
SELECT 46 * COUNT ( DISTINCT + 13 ) - - + 38 AS col2, + 26 - - 34
----
84
60

query I rowsort
SELECT + + 34 * 82 + + 83
----
2871

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT ALL + 66 * + COALESCE ( + 38, + 53 * - 63 ) * CASE - - 78 WHEN - 66 THEN 27 + + MIN( - + 69 ) + 34 END + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL + 66 * + COALESCE ( + 38, + 53 * - 63 ) * CASE - - 78 WHEN - 66 THEN 27 + + MIN ( - + 69 ) + 34 END + 29 AS col1
----
NULL

query I rowsort
SELECT - 73 * - 37 + 76
----
2777

query I rowsort
SELECT ALL + - COALESCE ( - 40, - 31 )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4166
SELECT - NULLIF ( - 28, - + 22 * - - 48 ) + + COALESCE ( - + CAST( + COUNT( * ) AS SIGNED ), CAST( NULL AS SIGNED ) * + 67 DIV + 57 + - 33 * + 65 + + 47 + 82 + + - 99 + 65, + ( - - CAST( + - 47 AS SIGNED ) ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4166
SELECT - NULLIF ( - 28, - + 22 * - - 48 ) + + COALESCE ( - + CAST ( + COUNT ( * ) AS INTEGER ), CAST ( NULL AS INTEGER ) * + 67 / + 57 + - 33 * + 65 + + 47 + 82 + + - 99 + 65, + ( - - CAST ( + - 47 AS INTEGER ) ) ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT ALL - - MAX( ALL + + ( + + 81 ) ) * 49 - + 24 + + 94
----
4039

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL - - MAX ( ALL + + ( + + 81 ) ) * 49 - + 24 + + 94
----
4039

query II rowsort
SELECT - 27 + - 45 * + 3 + + - 13 col1, - 44 * + 64 * - + 3 * - 90
----
-175
-760320

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT - COUNT( * ) * + MAX( ALL - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-4169
SELECT - COUNT ( * ) * + MAX ( ALL - 72 )
----
72

query I rowsort
SELECT ALL ( + 79 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4171
SELECT COUNT( * ) AS col1, 36 + - 77
----
1
-41

skipif mysql # not compatible
query II rowsort label-4171
SELECT COUNT ( * ) AS col1, 36 + - 77
----
1
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4172
SELECT DISTINCT CAST( - - 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT CAST ( - - 77 AS INTEGER )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT - 96 DIV - 19 col2
----
5

skipif mysql # not compatible
query I rowsort label-4173
SELECT - 96 / - 19 col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + SUM( DISTINCT + NULLIF ( - + 94, - 30 ) ) + NULLIF ( - 88, 23 )
----
-182

skipif mysql # not compatible
query I rowsort label-4174
SELECT + SUM ( DISTINCT + NULLIF ( - + 94, - 30 ) ) + NULLIF ( - 88, 23 )
----
-182

query I rowsort
SELECT - 72 * 42
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT + SUM( - + 93 ) * - + 41
----
3813

skipif mysql # not compatible
query I rowsort label-4176
SELECT + SUM ( - + 93 ) * - + 41
----
3813

query I rowsort
SELECT ALL 84 * - 58
----
-4872

query II rowsort
SELECT - 90 + 41 * + 90 AS col1, - 56 AS col2
----
3600
-56

query I rowsort
SELECT - NULLIF ( 32, - 91 )
----
-32

query I rowsort
SELECT - NULLIF ( 15, + 19 ) col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL + 41 * + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL + 41 * + COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT + COUNT( * ) * + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-4182
SELECT + COUNT ( * ) * + - 6
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT DISTINCT 71 + + COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT 71 + + COUNT ( * ) AS col0
----
72

query I rowsort
SELECT - 30 + ( 22 ) AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT + 36 - CAST( NULL AS SIGNED ) + + + 14 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT + 36 - CAST ( NULL AS INTEGER ) + + + 14 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT - COUNT( * ) + + 0 + SUM( 72 ) * + + CASE - + 58 WHEN - COUNT( * ) THEN - 9 ELSE NULL END * + + COUNT( * ) * - + 84 + + 38 + CASE - 67 WHEN - 87 THEN ( - + 23 ) END + + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT - COUNT ( * ) + + 0 + SUM ( 72 ) * + + CASE - + 58 WHEN - COUNT ( * ) THEN - 9 ELSE NULL END * + + COUNT ( * ) * - + 84 + + 38 + CASE - 67 WHEN - 87 THEN ( - + 23 ) END + + 79 AS col1
----
NULL

query I rowsort
SELECT + ( + + 95 ) - - 59 col1
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4188
SELECT + 0 + 14 + CAST( COUNT( * ) AS SIGNED ) + + ( + + 98 ) * - 80 + - 2 AS col1
----
-7827

skipif mysql # not compatible
query I rowsort label-4188
SELECT + 0 + 14 + CAST ( COUNT ( * ) AS INTEGER ) + + ( + + 98 ) * - 80 + - 2 AS col1
----
-7827

query I rowsort
SELECT - ( + + 10 )
----
-10

query I rowsort
SELECT ALL 85 + + + 73
----
158

query I rowsort
SELECT + 55 + - 34 + - 59 AS col1
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-4192
SELECT DISTINCT 43 DIV - - 51
----
0

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT 43 / - - 51
----
0

query I rowsort
SELECT 87 + + - 68 + - 91 * - + 61
----
5570

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT + 91 * + - COUNT( * ) * - 20
----
1820

skipif mysql # not compatible
query I rowsort label-4194
SELECT + 91 * + - COUNT ( * ) * - 20
----
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT + 35 * + COUNT( * ) + MAX( + 27 )
----
62

skipif mysql # not compatible
query I rowsort label-4195
SELECT + 35 * + COUNT ( * ) + MAX ( + 27 )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT 64 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT 64 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT 1 * - - NULLIF ( + - 18, - 52 ) + - ( MAX( 59 ) ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4197
SELECT 1 * - - NULLIF ( + - 18, - 52 ) + - ( MAX ( 59 ) ) AS col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4198
SELECT - - 15 DIV + COUNT( * ) + - - 74 + + + COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-4198
SELECT - - 15 / + COUNT ( * ) + - - 74 + + + COUNT ( * ) AS col0
----
90

query I rowsort
SELECT 43 * - - 1 AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4200
SELECT ALL - COALESCE ( + 73, + 5 DIV - AVG ( 29 ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL - COALESCE ( + 73, + 5 / - AVG ( 29 ) ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL - COUNT( ALL - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL - COUNT ( ALL - 8 )
----
-1

query II rowsort
SELECT + 52, - 44 * + 48 - + - 21 AS col0
----
52
-2091

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT 65 * - MIN( ALL - 10 ) * + COUNT( * ) * + 37 AS col2
----
24050

skipif mysql # not compatible
query I rowsort label-4203
SELECT 65 * - MIN ( ALL - 10 ) * + COUNT ( * ) * + 37 AS col2
----
24050

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ALL - 99 + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL - 99 + COUNT ( * )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT ALL + 45 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL + 45 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 18 + + 48 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT 49 * SUM( - 34 )
----
-1666

skipif mysql # not compatible
query I rowsort label-4207
SELECT 49 * SUM ( - 34 )
----
-1666

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT 55 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-4208
SELECT 55 / 84
----
0

query I rowsort
SELECT ALL - COALESCE ( 1, - 69 + + - 18 ) + - 32 + ( + 46 ) col0
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4210
SELECT 38 AS col2, CAST( NULL AS DECIMAL ) AS col1
----
38
NULL

skipif mysql # not compatible
query II rowsort label-4210
SELECT 38 AS col2, CAST ( NULL AS REAL ) AS col1
----
38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT DISTINCT - 82 + + 91 + + COUNT( DISTINCT + 63 ) * 13
----
22

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT - 82 + + 91 + + COUNT ( DISTINCT + 63 ) * 13
----
22

query II rowsort
SELECT 47, 19 AS col0
----
47
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT 45 DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-4213
SELECT 45 / 55
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4214
SELECT 81 + 53 + - 93 DIV COUNT( * ) * + + 68
----
-6190

skipif mysql # not compatible
query I rowsort label-4214
SELECT 81 + 53 + - 93 / COUNT ( * ) * + + 68
----
-6190

query II rowsort
SELECT - 83 col0, 28 AS col2
----
-83
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4216
SELECT CASE COUNT( * ) WHEN - ( CAST( 2 AS SIGNED ) ) * - + 19 * + + 16 * + 38 / 34 THEN 37 END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT CASE COUNT ( * ) WHEN - ( CAST ( 2 AS INTEGER ) ) * - + 19 * + + 16 * + 38 / 34 THEN 37 END + - COUNT ( * )
----
NULL

query I rowsort
SELECT 64 * - - 62 AS col2
----
3968

query I rowsort
SELECT ALL 70 * - 97 col1
----
-6790

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT 71 DIV - 84 col1
----
0

skipif mysql # not compatible
query I rowsort label-4219
SELECT 71 / - 84 col1
----
0

query II rowsort
SELECT DISTINCT 45, 8 AS col0
----
45
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL COUNT( + 95 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL COUNT ( + 95 ) AS col2
----
1

query II rowsort
SELECT 89 + 12, 19 + 65 + - 84 * - 34 AS col0
----
101
2940

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT SUM( - + 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-4223
SELECT SUM ( - + 30 ) AS col0
----
-30

query II rowsort
SELECT + + 25, 20 AS col1
----
25
20

query I rowsort
SELECT + NULLIF ( - 99, + - 15 * - 1 * + 20 * + + 19 ) * + - ( ( - 21 ) ) AS col1
----
-2079

query I rowsort
SELECT ALL - + 99 col1
----
-99

query I rowsort
SELECT 58 - 72 * - 60
----
4378

query I rowsort
SELECT DISTINCT - - 48
----
48

query I rowsort
SELECT ( 20 ) * - 15
----
-300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4230
SELECT - CAST( NULL AS SIGNED ) + + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT - CAST ( NULL AS INTEGER ) + + + 92
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4231
SELECT 28 * - CAST( - 0 AS SIGNED ) * 64 * - ( - ( - - 93 ) ) - - 85 - - CAST( + 51 AS SIGNED ) DIV NULLIF ( - - 67, 81 ) * - 88 DIV + + 27 * - + COALESCE ( - - 38, 57 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4231
SELECT 28 * - CAST ( - 0 AS INTEGER ) * 64 * - ( - ( - - 93 ) ) - - 85 - - CAST ( + 51 AS INTEGER ) / NULLIF ( - - 67, 81 ) * - 88 / + + 27 * - + COALESCE ( - - 38, 57 ) AS col0
----
85

query I rowsort
SELECT ALL 88 * - 60 + + NULLIF ( - 42, 33 )
----
-5322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4233
SELECT + 58 DIV 55 * 10 * - CAST( COUNT( * ) AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-4233
SELECT + 58 / 55 * 10 * - CAST ( COUNT ( * ) AS INTEGER )
----
-10

query I rowsort
SELECT 56 * 67 AS col2
----
3752

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT ALL 55 * + 96 * + COUNT( * )
----
5280

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL 55 * + 96 * + COUNT ( * )
----
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT NULLIF ( - SUM( ALL + ( 9 ) ), + + 60 ) + - 19
----
-28

skipif mysql # not compatible
query I rowsort label-4236
SELECT NULLIF ( - SUM ( ALL + ( 9 ) ), + + 60 ) + - 19
----
-28

query I rowsort
SELECT DISTINCT - 86 + - 47 * 71 + + 33 AS col0
----
-3390

onlyif mysql # DIV for integer division: 
query II rowsort label-4238
SELECT ALL 7 + + 68 + + - 72 + 32 DIV + 17 AS col0, 24 * + - 72
----
4
-1728

skipif mysql # not compatible
query II rowsort label-4238
SELECT ALL 7 + + 68 + + - 72 + 32 / + 17 AS col0, 24 * + - 72
----
4
-1728

query I rowsort
SELECT 68 * - 32 + + 5
----
-2171

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT DISTINCT 42 + + 14 * + COALESCE ( - MAX( - + 74 ), + 69, + SUM( ALL - 55 ) ) AS col1
----
1078

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT 42 + + 14 * + COALESCE ( - MAX ( - + 74 ), + 69, + SUM ( ALL - 55 ) ) AS col1
----
1078

query I rowsort
SELECT 84 + 1
----
85

query I rowsort
SELECT ALL 41 * + 11
----
451

query I rowsort
SELECT ALL - 69 - - 55
----
-14

query I rowsort
SELECT DISTINCT COALESCE ( + 0, - + 15 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4245
SELECT DISTINCT - + 35 - - 31, 46 + + + COUNT( * ) * + ( - 86 ) AS col1
----
-4
-40

skipif mysql # not compatible
query II rowsort label-4245
SELECT DISTINCT - + 35 - - 31, 46 + + + COUNT ( * ) * + ( - 86 ) AS col1
----
-4
-40

query I rowsort
SELECT - NULLIF ( 86, + 65 * + - 18 / + - 93 * - 53 ) + + 9 - - + 33 * + 83 AS col1
----
2662

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4247
SELECT - - 34 - + + CAST( 87 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-4247
SELECT - - 34 - + + CAST ( 87 AS INTEGER )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT + - 84 * - 2 * COUNT( * )
----
168

skipif mysql # not compatible
query I rowsort label-4248
SELECT + - 84 * - 2 * COUNT ( * )
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL + 79 * 40 + + COUNT( * ) AS col1
----
3161

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL + 79 * 40 + + COUNT ( * ) AS col1
----
3161

query I rowsort
SELECT - + 98 + - 22 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT DISTINCT 93 * + + COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4251
SELECT DISTINCT 93 * + + COUNT ( * ) AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4252
SELECT - + 78 DIV - COUNT( * ) + - + COALESCE ( - - 0, + 80 ) + + + SUM( - 82 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4252
SELECT - + 78 / - COUNT ( * ) + - + COALESCE ( - - 0, + 80 ) + + + SUM ( - 82 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ALL + ( - + ( + SUM( DISTINCT + 5 ) ) )
----
-5

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL + ( - + ( + SUM ( DISTINCT + 5 ) ) )
----
-5

query I rowsort
SELECT - 80 + + 73
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4255
SELECT ALL - + 30 * + 54 * 62 + 39 + - MAX( ALL + - 60 ) DIV + 69
----
-100401

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL - + 30 * + 54 * 62 + 39 + - MAX ( ALL + - 60 ) / + 69
----
-100401

query I rowsort
SELECT DISTINCT + + 54 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL + + MIN( - 27 ) col0
----
-27

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL + + MIN ( - 27 ) col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ALL + SUM( DISTINCT 67 ) col1
----
67

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL + SUM ( DISTINCT 67 ) col1
----
67

query I rowsort
SELECT - 47 * - + 39
----
1833

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT DISTINCT - + 87 * + COUNT( * ) - - 98 + - COUNT( * ) + - 5 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT - + 87 * + COUNT ( * ) - - 98 + - COUNT ( * ) + - 5 AS col1
----
5

query I rowsort
SELECT ALL + 20 * + 39 - + 20 * 12 + + - 38 AS col1
----
502

query I rowsort
SELECT + 49 * 11 AS col0
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT ALL 61 * - SUM( ALL + 81 ) AS col1
----
-4941

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL 61 * - SUM ( ALL + 81 ) AS col1
----
-4941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT ALL - 1 * MAX( DISTINCT CAST( - 38 AS SIGNED ) ) * + 14 * - 34 * CASE + 37 WHEN - 72 THEN NULL WHEN + 19 + - 37 THEN - 71 END + + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL - 1 * MAX ( DISTINCT CAST ( - 38 AS INTEGER ) ) * + 14 * - 34 * CASE + 37 WHEN - 72 THEN NULL WHEN + 19 + - 37 THEN - 71 END + + - 31
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT + COUNT( * ) DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4265
SELECT + COUNT ( * ) / + 70 AS col0
----
0

query I rowsort
SELECT ALL - 51 * + 33 + + - 45
----
-1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4267
SELECT DISTINCT + 97 AS col2, COUNT( * ) * + 74 DIV + 57
----
97
1

skipif mysql # not compatible
query II rowsort label-4267
SELECT DISTINCT + 97 AS col2, COUNT ( * ) * + 74 / + 57
----
97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4268
SELECT COUNT( * ) AS col1, 77
----
1
77

skipif mysql # not compatible
query II rowsort label-4268
SELECT COUNT ( * ) AS col1, 77
----
1
77

query I rowsort
SELECT DISTINCT 60 * - + 73
----
-4380

query I rowsort
SELECT + ( + 67 ) + + 52 * - NULLIF ( + 36, 79 )
----
-1805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4271
SELECT - 48 * ( + + NULLIF ( + - 80, - 42 - - 79 * + COUNT( * ) * - + 83 * - 8 + + CAST( NULL AS SIGNED ) + - - 38 ) ) * COUNT( * ) - + 51 col1, COUNT( * ) AS col0
----
3789
1

skipif mysql # not compatible
query II rowsort label-4271
SELECT - 48 * ( + + NULLIF ( + - 80, - 42 - - 79 * + COUNT ( * ) * - + 83 * - 8 + + CAST ( NULL AS INTEGER ) + - - 38 ) ) * COUNT ( * ) - + 51 col1, COUNT ( * ) AS col0
----
3789
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT MAX( DISTINCT + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-4272
SELECT MAX ( DISTINCT + 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT + ( 75 ) - 18 + + + 98 * + + COALESCE ( - 67, - - COUNT( * ) ) * + 93
----
-610581

skipif mysql # not compatible
query I rowsort label-4273
SELECT + ( 75 ) - 18 + + + 98 * + + COALESCE ( - 67, - - COUNT ( * ) ) * + 93
----
-610581

onlyif mysql # DIV for integer division: 
query I rowsort label-4274
SELECT ALL + 10 DIV - 24
----
0

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL + 10 / - 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT COUNT( DISTINCT - 72 )
----
1

skipif mysql # not compatible
query I rowsort label-4275
SELECT COUNT ( DISTINCT - 72 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4276
SELECT DISTINCT CASE 58 WHEN + + COUNT( * ) THEN NULL WHEN COUNT( * ) - COUNT( * ) THEN + 57 WHEN - COUNT( * ) * + 53 THEN NULL ELSE NULL END, 79 AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-4276
SELECT DISTINCT CASE 58 WHEN + + COUNT ( * ) THEN NULL WHEN COUNT ( * ) - COUNT ( * ) THEN + 57 WHEN - COUNT ( * ) * + 53 THEN NULL ELSE NULL END, 79 AS col1
----
NULL
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4277
SELECT 71 AS col2, 40 * + NULLIF ( 75, + 52 / + 11 ) + 60 + + + CAST( + 32 AS SIGNED ) * - 48
----
71
1524

skipif mysql # not compatible
query II rowsort label-4277
SELECT 71 AS col2, 40 * + NULLIF ( 75, + 52 / + 11 ) + 60 + + + CAST ( + 32 AS INTEGER ) * - 48
----
71
1524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4278
SELECT - + COALESCE ( - - COUNT( * ), - CAST( NULL AS SIGNED ) ) * - 29 * - 48 AS col1
----
-1392

skipif mysql # not compatible
query I rowsort label-4278
SELECT - + COALESCE ( - - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) * - 29 * - 48 AS col1
----
-1392

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT - - 88 + ( ( - 66 ) ) + + - 60 * - + 14 * COUNT( * )
----
862

skipif mysql # not compatible
query I rowsort label-4279
SELECT - - 88 + ( ( - 66 ) ) + + - 60 * - + 14 * COUNT ( * )
----
862

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT - - 30 - 48 + - + 51 + + - ( + 19 ) * CASE + 43 WHEN + - 86 THEN - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT - - 30 - 48 + - + 51 + + - ( + 19 ) * CASE + 43 WHEN + - 86 THEN - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT - - ( 90 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4282
SELECT DISTINCT + - COUNT( * ) * - 43 / + COUNT( * ) / + - COUNT( * ) / CAST( NULL AS DECIMAL ) / - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT + - COUNT ( * ) * - 43 / + COUNT ( * ) / + - COUNT ( * ) / CAST ( NULL AS REAL ) / - 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4283
SELECT + - 44 * - CASE + ( + 42 ) WHEN + CAST( NULL AS SIGNED ) + + 83 + - 20 * AVG ( DISTINCT - + 67 ) THEN NULL WHEN + + 60 THEN + COALESCE ( COUNT( * ), - - 72 ) + + 36 * - - COALESCE ( - - ( - NULLIF ( - 44, - - COUNT( * ) * COUNT( * ) * + + ( - ( - 9 ) ) - + - 39 ) ), 57 ) + + 33 ELSE NULL END * + 0 * + + 56 + + ( + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT + - 44 * - CASE + ( + 42 ) WHEN + CAST ( NULL AS INTEGER ) + + 83 + - 20 * AVG ( DISTINCT - + 67 ) THEN NULL WHEN + + 60 THEN + COALESCE ( COUNT ( * ), - - 72 ) + + 36 * - - COALESCE ( - - ( - NULLIF ( - 44, - - COUNT ( * ) * COUNT ( * ) * + + ( - ( - 9 ) ) - + - 39 ) ), 57 ) + + 33 ELSE NULL END * + 0 * + + 56 + + ( + 31 )
----
NULL

query I rowsort
SELECT ALL 98 * ( 65 ) * - 71 + 78 col0
----
-452192

query I rowsort
SELECT DISTINCT ( ( 82 ) ) col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4286
SELECT ALL 77 AS col2, MIN( - 52 ) * + 31 AS col1
----
77
-1612

skipif mysql # not compatible
query II rowsort label-4286
SELECT ALL 77 AS col2, MIN ( - 52 ) * + 31 AS col1
----
77
-1612

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL COUNT( - 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL COUNT ( - 45 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 25 * - + 54
----
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT - SUM( ALL - 53 ) * + 3
----
159

skipif mysql # not compatible
query I rowsort label-4289
SELECT - SUM ( ALL - 53 ) * + 3
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4290
SELECT - AVG ( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT - AVG ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4291
SELECT ALL - AVG ( DISTINCT + 13 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL - AVG ( DISTINCT + 13 ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4292
SELECT + - 92 + + 51 + CAST( NULL AS SIGNED ) / - COALESCE ( + 5, + 86 ) * 43 * - 87 + + CAST( NULL AS SIGNED ) + + 6 - + ( 97 ) + - 28 + CAST( NULL AS SIGNED ) - - ( + 67 ) * - MAX( + 38 ) * - - ( - 23 ) - + - 30 / + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4292
SELECT + - 92 + + 51 + CAST ( NULL AS INTEGER ) / - COALESCE ( + 5, + 86 ) * 43 * - 87 + + CAST ( NULL AS INTEGER ) + + 6 - + ( 97 ) + - 28 + CAST ( NULL AS INTEGER ) - - ( + 67 ) * - MAX ( + 38 ) * - - ( - 23 ) - + - 30 / + - 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4293
SELECT ALL + COUNT( * ) AS col1, - 52
----
1
-52

skipif mysql # not compatible
query II rowsort label-4293
SELECT ALL + COUNT ( * ) AS col1, - 52
----
1
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4294
SELECT - + 17 DIV COUNT( * ) * - 40 + + COUNT( * ) + - ( - 36 )
----
717

skipif mysql # not compatible
query I rowsort label-4294
SELECT - + 17 / COUNT ( * ) * - 40 + + COUNT ( * ) + - ( - 36 )
----
717

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT - + 12 * - + 49 + - 18 + 10 + - COUNT( * ) + + 90 + - - 34 * 33 * SUM( - - 46 ) * + COUNT( * ) * + COALESCE ( - 58, - + 69, + COUNT( * ) ) + - 44 AS col2
----
-2992871

skipif mysql # not compatible
query I rowsort label-4295
SELECT - + 12 * - + 49 + - 18 + 10 + - COUNT ( * ) + + 90 + - - 34 * 33 * SUM ( - - 46 ) * + COUNT ( * ) * + COALESCE ( - 58, - + 69, + COUNT ( * ) ) + - 44 AS col2
----
-2992871

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT - - 42 * 26 + - SUM( 20 )
----
1072

skipif mysql # not compatible
query I rowsort label-4296
SELECT - - 42 * 26 + - SUM ( 20 )
----
1072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4297
SELECT ALL + - 43 DIV + COUNT( * ) * - + NULLIF ( - COUNT( * ), - 35 ) + - + MAX( DISTINCT - + 12 ) + + + ( - - CAST( 58 AS SIGNED ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + - 43 / + COUNT ( * ) * - + NULLIF ( - COUNT ( * ), - 35 ) + - + MAX ( DISTINCT - + 12 ) + + + ( - - CAST ( 58 AS INTEGER ) ) AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4298
SELECT 26 / - ( + + 92 ) - + - COUNT( * ) + + 9 + CASE - 50 WHEN - 76 + + 78 + - + NULLIF ( CAST( + + ( 35 ) AS SIGNED ), ( 42 ) ) - 69 + - 77 * 55 * - + 40 * - 53 THEN + - 23 END + + 22 * CASE - 0 WHEN ( - + 68 ) THEN NULL WHEN - + SUM( ALL 51 ) + - - NULLIF ( 50, - ( 26 ) * 5 ) THEN NULL WHEN 85 + - - 15 THEN - + 36 ELSE NULL END * - COALESCE ( + + 74, + - COUNT( * ), 60 ) - + 30 * + 47 * 5 * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT 26 / - ( + + 92 ) - + - COUNT ( * ) + + 9 + CASE - 50 WHEN - 76 + + 78 + - + NULLIF ( CAST ( + + ( 35 ) AS INTEGER ), ( 42 ) ) - 69 + - 77 * 55 * - + 40 * - 53 THEN + - 23 END + + 22 * CASE - 0 WHEN ( - + 68 ) THEN NULL WHEN - + SUM ( ALL 51 ) + - - NULLIF ( 50, - ( 26 ) * 5 ) THEN NULL WHEN 85 + - - 15 THEN - + 36 ELSE NULL END * - COALESCE ( + + 74, + - COUNT ( * ), 60 ) - + 30 * + 47 * 5 * 36 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT ALL - 15 DIV - + 90 * - + 20 + 84 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL - 15 / - + 90 * - + 20 + 84 AS col1
----
84

query I rowsort
SELECT ALL - 86 * 77
----
-6622

onlyif mysql # aggregate syntax: 
query II rowsort label-4301
SELECT 50 * SUM( ALL - 4 ) * + 92 + + + 61 AS col1, - 45 * - MAX( 10 ) + + 75 AS col0
----
-18339
525

skipif mysql # not compatible
query II rowsort label-4301
SELECT 50 * SUM ( ALL - 4 ) * + 92 + + + 61 AS col1, - 45 * - MAX ( 10 ) + + 75 AS col0
----
-18339
525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4302
SELECT ALL - 57 / + 23 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL - 57 / + 23 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4303
SELECT ALL 61 DIV - 7 + + - 66
----
-74

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL 61 / - 7 + + - 66
----
-74

query I rowsort
SELECT + COALESCE ( + 32, - 87 )
----
32

query II rowsort
SELECT ALL + 86 * + 78 AS col0, - 9 AS col1
----
6708
-9

query II rowsort
SELECT - 90 + - 68 * 43 + - 84, 13 col0
----
-3098
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4307
SELECT + 80 DIV + 60 - + + SUM( + 6 ) DIV + COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4307
SELECT + 80 / + 60 - + + SUM ( + 6 ) / + COUNT ( * ) AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4308
SELECT ( CAST( - - 89 AS SIGNED ) )
----
89

skipif mysql # not compatible
query I rowsort label-4308
SELECT ( CAST ( - - 89 AS INTEGER ) )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4309
SELECT + 72 - - 52 * 39 * + SUM( ALL + 61 ) + - CAST( + 51 AS SIGNED ) * - - 90
----
119190

skipif mysql # not compatible
query I rowsort label-4309
SELECT + 72 - - 52 * 39 * + SUM ( ALL + 61 ) + - CAST ( + 51 AS INTEGER ) * - - 90
----
119190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4310
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) * - 9 - - MIN( + 63 ) - + 67 + 18 + - COALESCE ( + + 50, - - 93 ) + 29 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4310
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * - 9 - - MIN ( + 63 ) - + 67 + 18 + - COALESCE ( + + 50, - - 93 ) + 29 AS col1
----
-7

query I rowsort
SELECT ALL 4 * + - 4 - - 87
----
71

query I rowsort
SELECT 74 + - 39 + 40 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + ( + 72 ) * - 49 * - + 64 AS col1
----
225792

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + ( + 72 ) * - 49 * - + 64 AS col1
----
225792

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT CASE + 88 WHEN - - 24 THEN NULL ELSE - 48 END + + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-4314
SELECT CASE + 88 WHEN - - 24 THEN NULL ELSE - 48 END + + COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL + 51 - + + 17 + + + COUNT( * ) * - 97
----
-63

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + 51 - + + 17 + + + COUNT ( * ) * - 97
----
-63

query I rowsort
SELECT ALL 0 - + - 10 AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT CAST( NULL AS SIGNED ) * 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT CAST ( NULL AS INTEGER ) * 17 AS col1
----
NULL

query I rowsort
SELECT 18 + 24 col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 29 * - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 29 * - 17 AS col1
----
NULL

query I rowsort
SELECT + 35 + - ( + CASE - 35 WHEN + - 99 THEN 12 WHEN 78 THEN + + 31 ELSE - + 72 * 9 + 7 + + 79 END ) * - 6 AS col1
----
-3337

query I rowsort
SELECT ALL + 76 + - 54 col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL SUM( ( 9 ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL SUM ( ( 9 ) ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT ALL + 27 + + 59 + 66 + CASE 7 WHEN ( + 68 ) * - 1 + + 14 * + ( + COUNT( * ) ) - + - 81 + + 33 - - 13 THEN MIN( 64 ) WHEN 18 THEN NULL ELSE NULL END * ( - 59 ) * - 34 * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL + 27 + + 59 + 66 + CASE 7 WHEN ( + 68 ) * - 1 + + 14 * + ( + COUNT ( * ) ) - + - 81 + + 33 - - 13 THEN MIN ( 64 ) WHEN 18 THEN NULL ELSE NULL END * ( - 59 ) * - 34 * 63
----
NULL

query I rowsort
SELECT + ( - 80 ) + + ( + - 12 ) + - + 55
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT DISTINCT - 94 + - 59 + + ( 84 ) * 89 DIV + 53 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT - 94 + - 59 + + ( 84 ) * 89 / + 53 AS col0
----
-12

query I rowsort
SELECT 12 + + - 16
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 95 * + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 95 * + + 2
----
NULL

query I rowsort
SELECT DISTINCT - 33 + 56
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4329
SELECT ALL - 82 - 65 * + CAST( - + 87 AS SIGNED ) * + + NULLIF ( - - 39, + 99 + - - 95 ) AS col2
----
220463

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - 82 - 65 * + CAST ( - + 87 AS INTEGER ) * + + NULLIF ( - - 39, + 99 + - - 95 ) AS col2
----
220463

onlyif mysql # DIV for integer division: 
query I rowsort label-4330
SELECT 39 DIV - 38 col2
----
-1

skipif mysql # not compatible
query I rowsort label-4330
SELECT 39 / - 38 col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4331
SELECT DISTINCT - 37 DIV + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT - 37 / + 49 AS col2
----
0

query I rowsort
SELECT ALL + 82 - 34 + + 58 + + COALESCE ( 42, 82, 63 )
----
148

query I rowsort
SELECT 94 + 41 AS col2
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-4334
SELECT 65 DIV + + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4334
SELECT 65 / + + 76 AS col0
----
0

query I rowsort
SELECT ALL - 10 * + 50 * - ( + 82 ) AS col2
----
41000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4336
SELECT DISTINCT - 37 DIV - + SUM( + 12 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT - 37 / - + SUM ( + 12 ) AS col0
----
3

query II rowsort
SELECT + 21 AS col1, ( + 60 ) AS col0
----
21
60

onlyif mysql # aggregate syntax: 
query II rowsort label-4338
SELECT ALL - 19 * + + MAX( DISTINCT + 15 ), ( 6 ) - + + 86 AS col2
----
-285
-80

skipif mysql # not compatible
query II rowsort label-4338
SELECT ALL - 19 * + + MAX ( DISTINCT + 15 ), ( 6 ) - + + 86 AS col2
----
-285
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT + 87 * + 28 - + 88 * + COUNT( * ) AS col2
----
2348

skipif mysql # not compatible
query I rowsort label-4339
SELECT + 87 * + 28 - + 88 * + COUNT ( * ) AS col2
----
2348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT ALL - CAST( - 16 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL - CAST ( - 16 AS INTEGER ) AS col0
----
16

query I rowsort
SELECT 89 * + 36 * - 91
----
-291564

onlyif mysql # aggregate syntax: 
query II rowsort label-4342
SELECT DISTINCT - + ( - - NULLIF ( + 66, + 65 ) ) + COUNT( * ) AS col0, - 42 AS col0
----
-65
-42

skipif mysql # not compatible
query II rowsort label-4342
SELECT DISTINCT - + ( - - NULLIF ( + 66, + 65 ) ) + COUNT ( * ) AS col0, - 42 AS col0
----
-65
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT 78 * COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4343
SELECT 78 * COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT DISTINCT 59 + + MIN( + + 26 )
----
85

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT 59 + + MIN ( + + 26 )
----
85

query I rowsort
SELECT DISTINCT - 53 col2
----
-53

query I rowsort
SELECT ALL + + 11 + 95
----
106

query I rowsort
SELECT ALL - 56 + - 1 AS col1
----
-57

query I rowsort
SELECT 58 * + 2
----
116

query I rowsort
SELECT 1 + 40 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT COUNT( * ) + + COUNT( * ) * - COUNT( * ) + - 22 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4350
SELECT COUNT ( * ) + + COUNT ( * ) * - COUNT ( * ) + - 22 AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4351
SELECT ALL + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + - COUNT( - 73 ) + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - COUNT ( - 73 ) + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT MAX( ALL 30 ) * 84 * - - 67 AS col1
----
168840

skipif mysql # not compatible
query I rowsort label-4352
SELECT MAX ( ALL 30 ) * 84 * - - 67 AS col1
----
168840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT DISTINCT - CAST( - 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT - CAST ( - 21 AS INTEGER )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT DISTINCT - 62 + - 70 + ( + 98 ) * 11 + + COUNT( * ) * 71 + COUNT( * ) + - 15 * + 77 AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT - 62 + - 70 + ( + 98 ) * 11 + + COUNT ( * ) * 71 + COUNT ( * ) + - 15 * + 77 AS col2
----
-137

query I rowsort
SELECT ALL + 4 + + 5
----
9

query I rowsort
SELECT - 2 + + 69 AS col0
----
67

query I rowsort
SELECT 50 * - 48
----
-2400

query I rowsort
SELECT + ( + 82 ) col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT COALESCE ( - 96, + NULLIF ( + + 11, + 39 - + 51 * + 31 * - COUNT( * ) ) )
----
-96

skipif mysql # not compatible
query I rowsort label-4359
SELECT COALESCE ( - 96, + NULLIF ( + + 11, + 39 - + 51 * + 31 * - COUNT ( * ) ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL MIN( DISTINCT 73 ) * + 89 - - + 39
----
6536

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL MIN ( DISTINCT 73 ) * + 89 - - + 39
----
6536

query I rowsort
SELECT 55 * - - 50 AS col0
----
2750

query I rowsort
SELECT 91 * + - 18 AS col1
----
-1638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4363
SELECT ALL + COUNT( * ) col1, - 67, + CAST( NULL AS SIGNED ) AS col0
----
1
-67
NULL

skipif mysql # not compatible
query III rowsort label-4363
SELECT ALL + COUNT ( * ) col1, - 67, + CAST ( NULL AS INTEGER ) AS col0
----
1
-67
NULL

query I rowsort
SELECT ALL 90 * + 25 - 1
----
2249

onlyif mysql # aggregate syntax: 
query II rowsort label-4365
SELECT DISTINCT + 13, + 56 * COUNT( DISTINCT - 35 ) AS col1
----
13
56

skipif mysql # not compatible
query II rowsort label-4365
SELECT DISTINCT + 13, + 56 * COUNT ( DISTINCT - 35 ) AS col1
----
13
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + 84 * - COUNT( ALL - - 61 ) * - + 29 * + + 54 + + ( - 23 ) AS col1
----
131521

skipif mysql # not compatible
query I rowsort label-4366
SELECT + 84 * - COUNT ( ALL - - 61 ) * - + 29 * + + 54 + + ( - 23 ) AS col1
----
131521

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL + CASE - - 7 WHEN + 36 THEN NULL WHEN + 91 THEN - 15 / 14 / + SUM( 22 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + CASE - - 7 WHEN + 36 THEN NULL WHEN + 91 THEN - 15 / 14 / + SUM ( 22 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT COALESCE ( + - 69, + 39 DIV - - 91 * - + 55 + - 60, + 42 )
----
-69

skipif mysql # not compatible
query I rowsort label-4368
SELECT COALESCE ( + - 69, + 39 / - - 91 * - + 55 + - 60, + 42 )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4369
SELECT ALL + 25, - COUNT( DISTINCT - 76 ) AS col1
----
25
-1

skipif mysql # not compatible
query II rowsort label-4369
SELECT ALL + 25, - COUNT ( DISTINCT - 76 ) AS col1
----
25
-1

query I rowsort
SELECT ALL 95 * - 30 * + 18 AS col1
----
-51300

query I rowsort
SELECT + 1 + - 31
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT + 18 * + COALESCE ( + 65, + 16 * + ( 59 ), - COALESCE ( + COUNT( * ), - - 86 ) ) AS col0
----
1170

skipif mysql # not compatible
query I rowsort label-4372
SELECT + 18 * + COALESCE ( + 65, + 16 * + ( 59 ), - COALESCE ( + COUNT ( * ), - - 86 ) ) AS col0
----
1170

query I rowsort
SELECT - 83 - - ( + 23 )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-4374
SELECT ALL + COUNT( * ) AS col1, - 47
----
1
-47

skipif mysql # not compatible
query II rowsort label-4374
SELECT ALL + COUNT ( * ) AS col1, - 47
----
1
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT SUM( DISTINCT + + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-4375
SELECT SUM ( DISTINCT + + 76 )
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4376
SELECT - 59 - - NULLIF ( CAST( NULL AS DECIMAL ), 10 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT - 59 - - NULLIF ( CAST ( NULL AS REAL ), 10 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT - 45 * + + 77 * - CASE - CAST( - 90 AS SIGNED ) WHEN - - 34 THEN + 50 WHEN - 20 THEN + + CAST( - 42 AS SIGNED ) * + CASE + 1 WHEN - + 74 THEN NULL ELSE 93 END ELSE 72 END + + 72 * + + 31 col2
----
251712

skipif mysql # not compatible
query I rowsort label-4377
SELECT - 45 * + + 77 * - CASE - CAST ( - 90 AS INTEGER ) WHEN - - 34 THEN + 50 WHEN - 20 THEN + + CAST ( - 42 AS INTEGER ) * + CASE + 1 WHEN - + 74 THEN NULL ELSE 93 END ELSE 72 END + + 72 * + + 31 col2
----
251712

onlyif mysql # aggregate syntax: 
query II rowsort label-4378
SELECT DISTINCT + 31 AS col2, - COUNT( * ) * - - 44
----
31
-44

skipif mysql # not compatible
query II rowsort label-4378
SELECT DISTINCT + 31 AS col2, - COUNT ( * ) * - - 44
----
31
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT ALL + 94 * - ( + MAX( 18 ) ) + + ( - 50 ) + + ( + - 56 ) AS col0
----
-1798

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL + 94 * - ( + MAX ( 18 ) ) + + ( - 50 ) + + ( + - 56 ) AS col0
----
-1798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4380
SELECT DISTINCT COUNT( * ) * COUNT( * ) + - COALESCE ( + - 89, ( - + 47 ) - - + 33 - + 20 + 61 ) DIV + 80 col0
----
2

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + - COALESCE ( + - 89, ( - + 47 ) - - + 33 - + 20 + 61 ) / + 80 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL - SUM( ALL - + 98 ) + + MAX( - ( - 85 ) )
----
183

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL - SUM ( ALL - + 98 ) + + MAX ( - ( - 85 ) )
----
183

query II rowsort
SELECT - + 39, 96 AS col1
----
-39
96

query II rowsort
SELECT - CASE + 64 WHEN - 97 THEN 15 ELSE NULL END AS col0, + 7 * + 35 col0
----
NULL
245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4384
SELECT DISTINCT + 68 + - 56 - + - 64 DIV COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT + 68 + - 56 - + - 64 / COUNT ( * ) AS col2
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4385
SELECT ALL - 10 * + - 10 / + 9 + - + ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL - 10 * + - 10 / + 9 + - + ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4386
SELECT - - ( NULLIF ( MAX( ALL + 11 ), - 37 ) ) + - + NULLIF ( - + 55, - CAST( 72 AS SIGNED ) - - + 48 + - 64 / + 17 ) * CASE 4 WHEN - 44 + COALESCE ( + 98, + COUNT( - - ( + 19 ) ) ) * + - 36 + 78 + - 96 + + CAST( NULL AS SIGNED ) * ( - CAST( NULL AS SIGNED ) ) * 41 + - 92 * - 42 THEN + + MIN( - 21 ) WHEN 93 + + + 74 + + ( + 94 ) + - 85 THEN + + COUNT( * ) ELSE NULL END + + CASE + 82 WHEN + + CASE - 85 WHEN - 83 * - + NULLIF ( + 57, + + 38 - + 40 ) + COUNT( * ) THEN 57 * + 96 WHEN + 13 + COUNT( * ) * COUNT( * ) THEN - 41 / MIN( 8 ) END + ( + 49 ) THEN 35 * - CASE 23 WHEN - 86 + 22 THEN NULL WHEN - 74 - + 70 THEN NULL WHEN 41 THEN 58 + 80 END END * 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4386
SELECT - - ( NULLIF ( MAX ( ALL + 11 ), - 37 ) ) + - + NULLIF ( - + 55, - CAST ( 72 AS INTEGER ) - - + 48 + - 64 / + 17 ) * CASE 4 WHEN - 44 + COALESCE ( + 98, + COUNT ( - - ( + 19 ) ) ) * + - 36 + 78 + - 96 + + CAST ( NULL AS INTEGER ) * ( - CAST ( NULL AS INTEGER ) ) * 41 + - 92 * - 42 THEN + + MIN ( - 21 ) WHEN 93 + + + 74 + + ( + 94 ) + - 85 THEN + + COUNT ( * ) ELSE NULL END + + CASE + 82 WHEN + + CASE - 85 WHEN - 83 * - + NULLIF ( + 57, + + 38 - + 40 ) + COUNT ( * ) THEN 57 * + 96 WHEN + 13 + COUNT ( * ) * COUNT ( * ) THEN - 41 / MIN ( 8 ) END + ( + 49 ) THEN 35 * - CASE 23 WHEN - 86 + 22 THEN NULL WHEN - 74 - + 70 THEN NULL WHEN 41 THEN 58 + 80 END END * 58 AS col0
----
NULL

query I rowsort
SELECT - - 99 * + 34
----
3366

query I rowsort
SELECT - 58 + - 61 AS col1
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL - MAX( + 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL - MAX ( + 66 ) AS col0
----
-66

query I rowsort
SELECT - + COALESCE ( + 99, + 92 ) AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4391
SELECT + SUM( ALL + - CAST( + - 49 AS SIGNED ) )
----
49

skipif mysql # not compatible
query I rowsort label-4391
SELECT + SUM ( ALL + - CAST ( + - 49 AS INTEGER ) )
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4392
SELECT DISTINCT - 93 AS col2, 10 + COUNT( * ) col2
----
-93
11

skipif mysql # not compatible
query II rowsort label-4392
SELECT DISTINCT - 93 AS col2, 10 + COUNT ( * ) col2
----
-93
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT - ( + + 39 ) + - MIN( ALL + 26 ) - - 54
----
-11

skipif mysql # not compatible
query I rowsort label-4393
SELECT - ( + + 39 ) + - MIN ( ALL + 26 ) - - 54
----
-11

query II rowsort
SELECT DISTINCT + 70 AS col0, 6
----
70
6

query I rowsort
SELECT ALL 73 - + 22 * + 75 AS col0
----
-1577

query II rowsort
SELECT ALL 77 * - 1 AS col2, - 2 AS col2
----
-77
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT - ( + 9 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT - ( + 9 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + + 72 + ( - 94 ) * 62
----
-5756

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL 44 * 4 * + - COUNT( + 36 ) AS col0
----
-176

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL 44 * 4 * + - COUNT ( + 36 ) AS col0
----
-176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4400
SELECT - 67 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT - 67 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4401
SELECT - MIN( - + 13 ) AS col1, 45 AS col2, - + 45
----
13
45
-45

skipif mysql # not compatible
query III rowsort label-4401
SELECT - MIN ( - + 13 ) AS col1, 45 AS col2, - + 45
----
13
45
-45

query I rowsort
SELECT DISTINCT - 37 * + 75
----
-2775

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT + COUNT( * ) + 30 + 76 + 74 * + COALESCE ( - 95, + + MAX( - - 88 ) ) AS col1
----
-6923

skipif mysql # not compatible
query I rowsort label-4403
SELECT + COUNT ( * ) + 30 + 76 + 74 * + COALESCE ( - 95, + + MAX ( - - 88 ) ) AS col1
----
-6923

query I rowsort
SELECT ALL + 19 * 4 AS col0
----
76

query I rowsort
SELECT + 13 + - 54 + - 49 AS col1
----
-90

query I rowsort
SELECT + 30 * - 82 * - - 23 col1
----
-56580

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT + SUM( - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-4407
SELECT + SUM ( - 42 )
----
-42

query II rowsort
SELECT ( - - 39 ) AS col1, + 72 * - 40 AS col0
----
39
-2880

query II rowsort
SELECT ( + - 40 ), 46 * 69 AS col1
----
-40
3174

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT ALL - 67 * 45 + SUM( DISTINCT - 98 ) col1
----
-3113

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL - 67 * 45 + SUM ( DISTINCT - 98 ) col1
----
-3113

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT + CASE + - 82 WHEN 50 THEN AVG ( - 21 ) END * 54 * + 27 + - MIN( DISTINCT 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT + CASE + - 82 WHEN 50 THEN AVG ( - 21 ) END * 54 * + 27 + - MIN ( DISTINCT 60 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT DISTINCT - 23 * + - 73 + + 11 - - COALESCE ( + 43, + 50 + - - COALESCE ( + COUNT( * ), - + 76 ) + + 93, - 43 * + - ( 52 ) - 15 + - - 78 + - 49 * - 79 ) * + 27 * + + 31 AS col1
----
37681

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT - 23 * + - 73 + + 11 - - COALESCE ( + 43, + 50 + - - COALESCE ( + COUNT ( * ), - + 76 ) + + 93, - 43 * + - ( 52 ) - 15 + - - 78 + - 49 * - 79 ) * + 27 * + + 31 AS col1
----
37681

query I rowsort
SELECT + - 50 * - 56 - 54
----
2746

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT CASE 13 WHEN ( COUNT( - 49 ) ) THEN - - MIN( - 85 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT CASE 13 WHEN ( COUNT ( - 49 ) ) THEN - - MIN ( - 85 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4415
SELECT - - 3 + 86 AS col1, COUNT( * )
----
89
1

skipif mysql # not compatible
query II rowsort label-4415
SELECT - - 3 + 86 AS col1, COUNT ( * )
----
89
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT DISTINCT - + 32 * + + SUM( DISTINCT + 13 ) + + 9
----
-407

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT - + 32 * + + SUM ( DISTINCT + 13 ) + + 9
----
-407

onlyif mysql # aggregate syntax: 
query II rowsort label-4417
SELECT - + COUNT( * ) + 69 AS col0, - 53 AS col0
----
68
-53

skipif mysql # not compatible
query II rowsort label-4417
SELECT - + COUNT ( * ) + 69 AS col0, - 53 AS col0
----
68
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4418
SELECT 53 * - COUNT( * ) + + 76 + + 36 * 41 * 83 * 40 AS col2, - 23
----
4900343
-23

skipif mysql # not compatible
query II rowsort label-4418
SELECT 53 * - COUNT ( * ) + + 76 + + 36 * 41 * 83 * 40 AS col2, - 23
----
4900343
-23

query I rowsort
SELECT ALL + - NULLIF ( - + 34, - ( 52 ) / + - 4 )
----
34

query I rowsort
SELECT + 91 * + 3 AS col1
----
273

query I rowsort
SELECT NULLIF ( + 17, 68 + ( - 2 ) * + - 80 )
----
17

query II rowsort
SELECT - 31 * + 69 + + 32, 2 + - - 1 col2
----
-2107
3

query I rowsort
SELECT ALL + 12 * - - 54 AS col2
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT DISTINCT - 54 * 82 + - - COUNT( * ) + 95
----
-4332

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT - 54 * 82 + - - COUNT ( * ) + 95
----
-4332

query I rowsort
SELECT - + 43 * + + 52
----
-2236

query I rowsort
SELECT DISTINCT - 5 * + 89
----
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - NULLIF ( - COUNT( * ), - 98 ) - SUM( DISTINCT 87 )
----
-86

skipif mysql # not compatible
query I rowsort label-4427
SELECT - NULLIF ( - COUNT ( * ), - 98 ) - SUM ( DISTINCT 87 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4428
SELECT ALL - 50 * + CASE - ( + 1 ) WHEN + AVG ( 22 ) - CAST( NULL AS SIGNED ) - - 12 THEN + ( + 0 ) ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - 50 * + CASE - ( + 1 ) WHEN + AVG ( 22 ) - CAST ( NULL AS INTEGER ) - - 12 THEN + ( + 0 ) ELSE NULL END * COUNT ( * )
----
NULL

query II rowsort
SELECT 40 AS col1, + 40 * - 25 * 96 AS col1
----
40
-96000

onlyif mysql # aggregate syntax: 
query II rowsort label-4430
SELECT - 7 col1, - COUNT( * )
----
-7
-1

skipif mysql # not compatible
query II rowsort label-4430
SELECT - 7 col1, - COUNT ( * )
----
-7
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT 64 + + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4431
SELECT 64 + + COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT COUNT( * ) * - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4432
SELECT COUNT ( * ) * - + COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4433
SELECT ALL + AVG ( DISTINCT + 1 ) * + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL + AVG ( DISTINCT + 1 ) * + - CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT 83 + + 14 * + 14 AS col2, + 34 AS col1
----
279
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4435
SELECT 37 AS col1, - CAST( NULL AS SIGNED )
----
37
NULL

skipif mysql # not compatible
query II rowsort label-4435
SELECT 37 AS col1, - CAST ( NULL AS INTEGER )
----
37
NULL

query I rowsort
SELECT ALL + 88 * + 22 AS col2
----
1936

query I rowsort
SELECT 9 + 75 AS col1
----
84

query II rowsort
SELECT ALL - 80, 49 col1
----
-80
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4439
SELECT DISTINCT - 16 + + 86 - + CAST( NULL AS SIGNED ) * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT - 16 + + 86 - + CAST ( NULL AS INTEGER ) * 52
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4440
SELECT ALL + 62 + - 58 * 33 AS col0, + COUNT( * ) DIV - ( - + 54 ) AS col1
----
-1852
0

skipif mysql # not compatible
query II rowsort label-4440
SELECT ALL + 62 + - 58 * 33 AS col0, + COUNT ( * ) / - ( - + 54 ) AS col1
----
-1852
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4441
SELECT ALL 82 + + + COALESCE ( - 55, 41 * + - 87 + + + ( + CAST( NULL AS SIGNED ) ) + - 99 ) * + 60, + 59 AS col1
----
-3218
59

skipif mysql # not compatible
query II rowsort label-4441
SELECT ALL 82 + + + COALESCE ( - 55, 41 * + - 87 + + + ( + CAST ( NULL AS INTEGER ) ) + - 99 ) * + 60, + 59 AS col1
----
-3218
59

query I rowsort
SELECT 99 + 55 * + ( 87 )
----
4884

query I rowsort
SELECT - - 88 * - 97 + - CASE 25 WHEN - + 54 THEN + + 73 + - 38 + + 71 ELSE - - 47 END - + 18 AS col1
----
-8601

query I rowsort
SELECT + 13 - + 49 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT ALL - COUNT( ALL 81 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL - COUNT ( ALL 81 ) AS col2
----
-1

query II rowsort
SELECT + 2 AS col0, + 63 AS col1
----
2
63

query I rowsort
SELECT ALL 5 * - ( 37 ) * 14 * - 99 * + - 3 + - 57 AS col2
----
-769287

query I rowsort
SELECT ALL 10 - + 99
----
-89

query I rowsort
SELECT DISTINCT - 60 * - - 27 AS col0
----
-1620

query I rowsort
SELECT ALL - 16 * - 45
----
720

query I rowsort
SELECT - 16 * + 75 + - 18 * - 83
----
294

query I rowsort
SELECT + 29 * - - 77 AS col0
----
2233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4453
SELECT - 95 / CASE - COUNT( * ) WHEN ( 17 ) - + 11 + + 59 THEN - MIN( + + 17 ) WHEN + 60 * + + ( + 97 ) * - 95 + + - CAST( NULL AS SIGNED ) THEN NULL END + 59 + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT - 95 / CASE - COUNT ( * ) WHEN ( 17 ) - + 11 + + 59 THEN - MIN ( + + 17 ) WHEN + 60 * + + ( + 97 ) * - 95 + + - CAST ( NULL AS INTEGER ) THEN NULL END + 59 + 33
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4454
SELECT ALL + - 36 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL + - 36 / - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT + ( - + COUNT( DISTINCT - 52 ) ) + + + 91 * + 19 AS col1
----
1728

skipif mysql # not compatible
query I rowsort label-4455
SELECT + ( - + COUNT ( DISTINCT - 52 ) ) + + + 91 * + 19 AS col1
----
1728

query I rowsort
SELECT DISTINCT - ( + 25 ) AS col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT DISTINCT + AVG ( DISTINCT - 36 ) / + + 9 * - + 54 / - + CASE CASE - ( + NULLIF ( 81, 41 ) ) WHEN 9 THEN + - 2 * + 42 END WHEN 33 / 74 + + 59 THEN - - COALESCE ( CAST( - 7 AS SIGNED ), + 31 * - + ( 3 ) ) WHEN + - 64 THEN + 48 + - 3 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT + AVG ( DISTINCT - 36 ) / + + 9 * - + 54 / - + CASE CASE - ( + NULLIF ( 81, 41 ) ) WHEN 9 THEN + - 2 * + 42 END WHEN 33 / 74 + + 59 THEN - - COALESCE ( CAST ( - 7 AS INTEGER ), + 31 * - + ( 3 ) ) WHEN + - 64 THEN + 48 + - 3 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT MAX( DISTINCT - 60 ) + - 93 + - 95 + COALESCE ( - 0, + 45 ) + - 68 * - 53 * - + 58
----
-209280

skipif mysql # not compatible
query I rowsort label-4458
SELECT MAX ( DISTINCT - 60 ) + - 93 + - 95 + COALESCE ( - 0, + 45 ) + - 68 * - 53 * - + 58
----
-209280

query I rowsort
SELECT ALL + 64 * + - 85 AS col0
----
-5440

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4460
SELECT ALL 19 + - CAST( CAST( - 28 AS SIGNED ) AS SIGNED ) DIV + 14 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL 19 + - CAST ( CAST ( - 28 AS INTEGER ) AS INTEGER ) / + 14 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT DISTINCT + 19 * COUNT( + 32 )
----
19

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT + 19 * COUNT ( + 32 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4462
SELECT ALL - 65 + + - 34 DIV + ( - ( COUNT( + - 94 ) ) )
----
-31

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - 65 + + - 34 / + ( - ( COUNT ( + - 94 ) ) )
----
-31

query I rowsort
SELECT ALL + 2 * - ( - 71 ) AS col0
----
142

query I rowsort
SELECT ( - 78 ) * + + 75 col1
----
-5850

query I rowsort
SELECT 19 + - 37
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL + MAX( DISTINCT + 15 ) + - + 25 + + - 25 + - - 14 + 42 + + - 94 - - 53
----
-20

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL + MAX ( DISTINCT + 15 ) + - + 25 + + - 25 + - - 14 + 42 + + - 94 - - 53
----
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4467
SELECT 99 + - + COUNT( * ) * CASE + 88 WHEN + 32 * - - 41 THEN - + CAST( NULL AS DECIMAL ) + 7 + + 30 + + + 18 + - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT 99 + - + COUNT ( * ) * CASE + 88 WHEN + 32 * - - 41 THEN - + CAST ( NULL AS REAL ) + 7 + + 30 + + + 18 + - - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 12 * + ( - 26 )
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT DISTINCT - COUNT( * ) + - 79
----
-80

skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT - COUNT ( * ) + - 79
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL COUNT( 40 )
----
1

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL COUNT ( 40 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4471
SELECT ALL - 51 * 4 + CAST( + + 49 AS SIGNED ) + + 3 * - 46 * COUNT( * ), + 11 AS col0
----
-293
11

skipif mysql # not compatible
query II rowsort label-4471
SELECT ALL - 51 * 4 + CAST ( + + 49 AS INTEGER ) + + 3 * - 46 * COUNT ( * ), + 11 AS col0
----
-293
11

query I rowsort
SELECT DISTINCT - CASE - 95 WHEN 11 THEN - - 98 + - 30 END AS col2
----
NULL

query I rowsort
SELECT 99 * - + 96 AS col1
----
-9504

onlyif mysql # DIV for integer division: 
query I rowsort label-4474
SELECT ALL + ( + - 69 ) DIV - + 38 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL + ( + - 69 ) / - + 38 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT COUNT( * ) * + 14 + + 51
----
65

skipif mysql # not compatible
query I rowsort label-4475
SELECT COUNT ( * ) * + 14 + + 51
----
65

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4476
SELECT + 98 / - ( + - 95 ) - - 33 + + + 48 - + + 18 * + - 44 * + CAST( + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT + 98 / - ( + - 95 ) - - 33 + + + 48 - + + 18 * + - 44 * + CAST ( + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4477
SELECT ALL + - 12 * - 78 - - + NULLIF ( - COALESCE ( - CAST( 37 AS SIGNED ), - - 7 + - 46 ), + NULLIF ( + 48, - COUNT( * ) ) ) + 81 col2
----
1054

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL + - 12 * - 78 - - + NULLIF ( - COALESCE ( - CAST ( 37 AS INTEGER ), - - 7 + - 46 ), + NULLIF ( + 48, - COUNT ( * ) ) ) + 81 col2
----
1054

query II rowsort
SELECT - 50 * 8 * - - 72 + - - 98 + - 80 * + 96 * 12 + - + 97 * - + 82 * - - ( + - 45 ) + 96 * 9 * + - 12 AS col2, 81 * 17 AS col2
----
-489160
1377

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4479
SELECT ALL + + 73 DIV + - ( - + 43 ) + + ( - + 14 ) DIV - ( - COUNT( * ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL + + 73 / + - ( - + 43 ) + + ( - + 14 ) / - ( - COUNT ( * ) ) AS col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4480
SELECT DISTINCT - 79 * 32 * COALESCE ( - 6, + CASE + 7 WHEN + 68 * - 44 + - + 91 * - - 14 THEN - 75 * 33 - 3 * - SUM( DISTINCT - 33 ) ELSE NULL END, 47 + + - 9, - 2 DIV + + 96 + - 37 ) AS col1
----
15168

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT - 79 * 32 * COALESCE ( - 6, + CASE + 7 WHEN + 68 * - 44 + - + 91 * - - 14 THEN - 75 * 33 - 3 * - SUM ( DISTINCT - 33 ) ELSE NULL END, 47 + + - 9, - 2 / + + 96 + - 37 ) AS col1
----
15168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4481
SELECT + MIN( DISTINCT - CASE - + ( + + 48 ) WHEN - 58 * 20 THEN NULL WHEN 32 + + + COALESCE ( - 3, + 17 ) - - NULLIF ( - + 75, - + 50 ) + - 28 + + 59 * 64 THEN COALESCE ( - 5, - 98, - 39 ) ELSE - ( 96 ) DIV + COALESCE ( 83, CAST( NULL AS SIGNED ) - - 51 + - 60 ) - - - 3 END ) * - + SUM( ALL 27 ) AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-4481
SELECT + MIN ( DISTINCT - CASE - + ( + + 48 ) WHEN - 58 * 20 THEN NULL WHEN 32 + + + COALESCE ( - 3, + 17 ) - - NULLIF ( - + 75, - + 50 ) + - 28 + + 59 * 64 THEN COALESCE ( - 5, - 98, - 39 ) ELSE - ( 96 ) / + COALESCE ( 83, CAST ( NULL AS INTEGER ) - - 51 + - 60 ) - - - 3 END ) * - + SUM ( ALL 27 ) AS col1
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4482
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) / - 83 AS col1
----
0

query I rowsort
SELECT - 53 * + - 26 AS col0
----
1378

query I rowsort
SELECT 71 + + - 77 AS col1
----
-6

query I rowsort
SELECT + 36 + - - 82 col0
----
118

query I rowsort
SELECT ALL 23 * - + 81 + - - 12 col0
----
-1851

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT - SUM( DISTINCT 13 ) col0
----
-13

skipif mysql # not compatible
query I rowsort label-4487
SELECT - SUM ( DISTINCT 13 ) col0
----
-13

query I rowsort
SELECT ALL + 55 * 15
----
825

query I rowsort
SELECT ALL 20 + + CASE - 81 WHEN - 89 THEN 63 ELSE 67 END + - - 50 col1
----
137

query I rowsort
SELECT DISTINCT 78 + - 40
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT DISTINCT COUNT( * ) * - - MIN( + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT COUNT ( * ) * - - MIN ( + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT - SUM( DISTINCT + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-4492
SELECT - SUM ( DISTINCT + 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT DISTINCT COUNT( * ) + 63 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT COUNT ( * ) + 63 AS col0
----
64

query I rowsort
SELECT + 72 - 88
----
-16

query II rowsort
SELECT DISTINCT 9, + 50 AS col1
----
9
50

query II rowsort
SELECT 81 AS col1, 99 AS col1
----
81
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT SUM( DISTINCT 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT SUM ( DISTINCT 74 ) AS col1
----
74

query II rowsort
SELECT ALL - 34 * - - 24 * 3 AS col1, 59 * - 22
----
-2448
-1298

onlyif mysql # DIV for integer division: 
query I rowsort label-4499
SELECT + 24 DIV + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4499
SELECT + 24 / + 32 AS col1
----
0

query I rowsort
SELECT ALL 30 + + 73 * 59 AS col2
----
4337

query I rowsort
SELECT - ( - - 48 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT DISTINCT 65 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT 65 / 98
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4503
SELECT - 26, 22 + - 31 + + 21 + - CAST( NULL AS SIGNED ) * - 22 * + - CAST( NULL AS SIGNED ) AS col1
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-4503
SELECT - 26, 22 + - 31 + + 21 + - CAST ( NULL AS INTEGER ) * - 22 * + - CAST ( NULL AS INTEGER ) AS col1
----
-26
NULL

query I rowsort
SELECT - 94 - - 61
----
-33

query I rowsort
SELECT ALL 0 * 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT + 64 + + ( ( CASE - 24 WHEN + - 15 + + ( - - COALESCE ( + 74, - 4, 62 * + + COUNT( * ) + + 55 ) ) THEN 73 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT + 64 + + ( ( CASE - 24 WHEN + - 15 + + ( - - COALESCE ( + 74, - 4, 62 * + + COUNT ( * ) + + 55 ) ) THEN 73 ELSE NULL END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4507
SELECT + 40 + + + MAX( DISTINCT + + 57 ) AS col0, ( + - 92 )
----
97
-92

skipif mysql # not compatible
query II rowsort label-4507
SELECT + 40 + + + MAX ( DISTINCT + + 57 ) AS col0, ( + - 92 )
----
97
-92

query I rowsort
SELECT + ( 50 ) AS col1
----
50

query I rowsort
SELECT ALL ( ( 73 ) ) * - 53
----
-3869

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT DISTINCT + MIN( DISTINCT + 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT + MIN ( DISTINCT + 76 ) AS col0
----
76

query I rowsort
SELECT + 74 + 36 AS col1
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT ALL + COALESCE ( 85, + CAST( + NULLIF ( - 93, 72 ) AS SIGNED ) * ( 18 ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL + COALESCE ( 85, + CAST ( + NULLIF ( - 93, 72 ) AS INTEGER ) * ( 18 ) ) AS col2
----
85

query I rowsort
SELECT COALESCE ( - 86, - 61 + - 86, + NULLIF ( 34, 46 ) ) AS col1
----
-86

query I rowsort
SELECT 73 * 41 + 70 * + 89 AS col2
----
9223

query I rowsort
SELECT - 56 + + 78 AS col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT - 68 DIV + 50
----
-1

skipif mysql # not compatible
query I rowsort label-4516
SELECT - 68 / + 50
----
-1

query I rowsort
SELECT - 74 * 85
----
-6290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4518
SELECT ALL CAST( + ( + 92 ) AS SIGNED ) * 73 + 54 col2
----
6770

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL CAST ( + ( + 92 ) AS INTEGER ) * 73 + 54 col2
----
6770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT ALL + ( CAST( + 8 AS SIGNED ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL + ( CAST ( + 8 AS INTEGER ) ) AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4520
SELECT DISTINCT - 88 * 3 + 73 DIV 46 AS col1
----
-263

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT - 88 * 3 + 73 / 46 AS col1
----
-263

query I rowsort
SELECT - 20 + 95 col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT MAX( DISTINCT CASE + 98 WHEN - NULLIF ( 89, 85 * + 23 ) THEN NULL WHEN ( 71 ) THEN 40 WHEN + 95 THEN NULL END ) * ( + 11 ) + + SUM( ALL - 5 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT MAX ( DISTINCT CASE + 98 WHEN - NULLIF ( 89, 85 * + 23 ) THEN NULL WHEN ( 71 ) THEN 40 WHEN + 95 THEN NULL END ) * ( + 11 ) + + SUM ( ALL - 5 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 70 * - 7 + + 87 AS col0
----
-403

query I rowsort
SELECT ALL + 37 * + 15 col0
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL ( - 88 ) * ( MAX( DISTINCT + 49 ) ) + CASE 68 WHEN - NULLIF ( + 90, 3 ) * 71 + - 44 * 33 THEN 77 ELSE - 30 * 75 END * + 36 AS col2
----
-85312

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL ( - 88 ) * ( MAX ( DISTINCT + 49 ) ) + CASE 68 WHEN - NULLIF ( + 90, 3 ) * 71 + - 44 * 33 THEN 77 ELSE - 30 * 75 END * + 36 AS col2
----
-85312

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT + 8 - 6 * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4526
SELECT + 8 - 6 * COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT + CASE + MIN( ALL 66 ) WHEN 19 THEN 87 * 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT + CASE + MIN ( ALL 66 ) WHEN 19 THEN 87 * 89 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT ALL CAST( CASE 19 WHEN + 16 + - COUNT( - 41 + + 34 ) THEN 63 WHEN + COUNT( * ) * ( 17 ) THEN NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL CAST ( CASE 19 WHEN + 16 + - COUNT ( - 41 + + 34 ) THEN 63 WHEN + COUNT ( * ) * ( 17 ) THEN NULL END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 84 * 34
----
2856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4530
SELECT MIN( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 90 * 77 + 27 col0
----
6957

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT + COUNT( * ) + 35
----
36

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT + COUNT ( * ) + 35
----
36

query I rowsort
SELECT DISTINCT 60 * - 42 AS col2
----
-2520

query I rowsort
SELECT + 24 + 2 col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT ALL + 29 - CAST( - 58 - - 61 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL + 29 - CAST ( - 58 - - 61 AS INTEGER ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL - COUNT( ( + 50 ) ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - COUNT ( ( + 50 ) ) * COUNT ( * )
----
-1

query I rowsort
SELECT + 1 + - 6 AS col1
----
-5

query I rowsort
SELECT ALL 12 - + 89
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT - COUNT( DISTINCT 50 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4539
SELECT - COUNT ( DISTINCT 50 ) AS col0
----
-1

query I rowsort
SELECT - ( 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT - COUNT( DISTINCT 53 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4541
SELECT - COUNT ( DISTINCT 53 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4542
SELECT + 94 + COALESCE ( + 72, + COUNT( * ), - CAST( NULL AS SIGNED ) + - COUNT( * ) )
----
166

skipif mysql # not compatible
query I rowsort label-4542
SELECT + 94 + COALESCE ( + 72, + COUNT ( * ), - CAST ( NULL AS INTEGER ) + - COUNT ( * ) )
----
166

query I rowsort
SELECT ALL 59 * 41
----
2419

query I rowsort
SELECT + 70 + + 68 * 44 AS col1
----
3062

query I rowsort
SELECT ALL 76 - + 97
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL COUNT( DISTINCT 95 )
----
1

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL COUNT ( DISTINCT 95 )
----
1

query I rowsort
SELECT + 17 * + ( - 55 ) AS col0
----
-935

query I rowsort
SELECT DISTINCT - - ( 46 ) * - NULLIF ( + 26, + 43 )
----
-1196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4549
SELECT DISTINCT + 62 DIV - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT + 62 / - COUNT ( * )
----
-62

query I rowsort
SELECT + 59 * - 74 AS col1
----
-4366

onlyif mysql # DIV for integer division: 
query I rowsort label-4551
SELECT + - 34 DIV 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4551
SELECT + - 34 / 76 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ALL + COUNT( * ) * 44
----
44

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL + COUNT ( * ) * 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT + - 49 * COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-4553
SELECT + - 49 * COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT + - 90 * COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-4554
SELECT + - 90 * COUNT ( * )
----
-90

query I rowsort
SELECT - - 85 * 84 AS col1
----
7140

query I rowsort
SELECT + - ( - 17 ) col1
----
17

query I rowsort
SELECT ALL - 5 * 55 AS col0
----
-275

query I rowsort
SELECT - ( 2 ) AS col1
----
-2

query I rowsort
SELECT DISTINCT 27 + + 90
----
117

query I rowsort
SELECT + 21 * 77 + + 77
----
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT DISTINCT - COUNT( * ) + + 10
----
9

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT - COUNT ( * ) + + 10
----
9

query I rowsort
SELECT DISTINCT + 97 + 43 AS col2
----
140

query I rowsort
SELECT DISTINCT - + CASE - 89 WHEN 46 * 19 THEN + 50 + + 96 WHEN - ( - 29 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 89 * + ( - 60 ) + - 91 * + 70 AS col1
----
-11710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4565
SELECT + - ( ( - MAX( ALL - CAST( - 7 AS SIGNED ) ) ) )
----
7

skipif mysql # not compatible
query I rowsort label-4565
SELECT + - ( ( - MAX ( ALL - CAST ( - 7 AS INTEGER ) ) ) )
----
7

query I rowsort
SELECT + 20 + 23
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4567
SELECT 93 * + CASE + 4 WHEN 78 * CASE + MIN( ( 65 ) ) * CAST( 39 / + 80 + + 34 AS SIGNED ) WHEN COUNT( - 39 ) THEN - 57 ELSE - 15 * 25 END THEN 53 + - COUNT( * ) END * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT 93 * + CASE + 4 WHEN 78 * CASE + MIN ( ( 65 ) ) * CAST ( 39 / + 80 + + 34 AS INTEGER ) WHEN COUNT ( - 39 ) THEN - 57 ELSE - 15 * 25 END THEN 53 + - COUNT ( * ) END * 98
----
NULL

query I rowsort
SELECT ALL - 34 * + 24
----
-816

onlyif mysql # DIV for integer division: 
query I rowsort label-4569
SELECT 99 DIV - 19 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4569
SELECT 99 / - 19 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT + 61 - COALESCE ( - 16, COUNT( * ) + + 66 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT + 61 - COALESCE ( - 16, COUNT ( * ) + + 66 ) AS col0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4571
SELECT ALL - 98 - + COALESCE ( - 27, + COUNT( * ) + + 24 * ( 46 DIV 73 ), + 57 * + COUNT( * ) - 36 ) * COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL - 98 - + COALESCE ( - 27, + COUNT ( * ) + + 24 * ( 46 / 73 ), + 57 * + COUNT ( * ) - 36 ) * COUNT ( * )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4572
SELECT DISTINCT - SUM( ALL 15 ) - + 93 DIV + NULLIF ( 7, + MIN( ALL 41 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT - SUM ( ALL 15 ) - + 93 / + NULLIF ( 7, + MIN ( ALL 41 ) )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT DISTINCT - 89 * - + MIN( DISTINCT - 50 )
----
-4450

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT - 89 * - + MIN ( DISTINCT - 50 )
----
-4450

query I rowsort
SELECT 34 * + + 99
----
3366

query I rowsort
SELECT 8 * + - 19 * ( 26 * 57 )
----
-225264

query I rowsort
SELECT 24 - - 4 * 42
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT COUNT( * ) - - 78 + COUNT( * ) DIV + 66 col2
----
79

skipif mysql # not compatible
query I rowsort label-4577
SELECT COUNT ( * ) - - 78 + COUNT ( * ) / + 66 col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4578
SELECT ALL 5 * ( - 51 ) * + NULLIF ( - COALESCE ( - 88, - 26, - 35, COUNT( * ) + + SUM( - 24 ) ) DIV + 85 + 87 * - 21, + 91 )
----
465630

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL 5 * ( - 51 ) * + NULLIF ( - COALESCE ( - 88, - 26, - 35, COUNT ( * ) + + SUM ( - 24 ) ) / + 85 + 87 * - 21, + 91 )
----
465630

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL 23 * + + SUM( DISTINCT 64 )
----
1472

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL 23 * + + SUM ( DISTINCT 64 )
----
1472

query I rowsort
SELECT + 39 * + 22 col1
----
858

onlyif mysql # DIV for integer division: 
query I rowsort label-4581
SELECT ( + - 42 ) + + 28 DIV - 37 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4581
SELECT ( + - 42 ) + + 28 / - 37 AS col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4582
SELECT - CAST( - 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4582
SELECT - CAST ( - 1 AS INTEGER )
----
1

query I rowsort
SELECT ALL ( - 30 ) AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4584
SELECT ALL - 0 + - + COALESCE ( + ( CASE MAX( ALL + 57 ) WHEN - COALESCE ( ( 10 ), 69 - + CAST( NULL AS SIGNED ) ) THEN 75 * COUNT( * ) - - 48 WHEN 11 * 84 THEN NULL END ), COUNT( 78 ), 62, 92 * - 16 + 28 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL - 0 + - + COALESCE ( + ( CASE MAX ( ALL + 57 ) WHEN - COALESCE ( ( 10 ), 69 - + CAST ( NULL AS INTEGER ) ) THEN 75 * COUNT ( * ) - - 48 WHEN 11 * 84 THEN NULL END ), COUNT ( 78 ), 62, 92 * - 16 + 28 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4585
SELECT + 96 + - 29 DIV - 26 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4585
SELECT + 96 + - 29 / - 26 AS col2
----
97

query I rowsort
SELECT - 5 * + - 0 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT CAST( NULL AS SIGNED ) + + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT CAST ( NULL AS INTEGER ) + + + 16
----
NULL

query I rowsort
SELECT + ( - + 14 )
----
-14

query I rowsort
SELECT DISTINCT ( + 23 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4590
SELECT 38 * - MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT 38 * - MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - ( - - 82 ) AS col1
----
-82

query I rowsort
SELECT ALL 76 + - 61 AS col1
----
15

query I rowsort
SELECT - 46 + - + 41
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4594
SELECT + NULLIF ( 46, + 10 * CASE WHEN NOT NULL >= NULL THEN - 12 DIV 90 ELSE 28 END + + 68 DIV 17 ) * 91 + 88 DIV 19
----
4190

skipif mysql # not compatible
query I rowsort label-4594
SELECT + NULLIF ( 46, + 10 * CASE WHEN NOT NULL >= NULL THEN - 12 / 90 ELSE 28 END + + 68 / 17 ) * 91 + 88 / 19
----
4190

query I rowsort
SELECT ALL + 73 + - 76 - 41 AS col1
----
-44

query I rowsort
SELECT ALL + 68 * - ( 93 )
----
-6324

query I rowsort
SELECT ALL - ( + 82 )
----
-82

query I rowsort
SELECT - ( + 30 ) * 68
----
-2040

query I rowsort
SELECT + 96 * 20 AS col0
----
1920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4600
SELECT DISTINCT 74 + - + 55 DIV SUM( DISTINCT - 52 * 8 )
----
74

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT 74 + - + 55 / SUM ( DISTINCT - 52 * 8 )
----
74

query I rowsort
SELECT ALL - 63 - - 44 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT + COUNT( - 75 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4602
SELECT + COUNT ( - 75 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT + SUM( DISTINCT - 74 ) * 85 - - COUNT( * ) AS col2
----
-6289

skipif mysql # not compatible
query I rowsort label-4603
SELECT + SUM ( DISTINCT - 74 ) * 85 - - COUNT ( * ) AS col2
----
-6289

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT DISTINCT MAX( DISTINCT - 86 ) - 0
----
-86

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT MAX ( DISTINCT - 86 ) - 0
----
-86

query I rowsort
SELECT DISTINCT - ( - 95 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT CASE + 89 WHEN + 33 - + 81 THEN + 33 END * MIN( - 41 + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT CASE + 89 WHEN + 33 - + 81 THEN + 33 END * MIN ( - 41 + 71 )
----
NULL

query I rowsort
SELECT 28 * + 45 AS col0
----
1260

query I rowsort
SELECT 34 - ( + 30 ) * + 39
----
-1136

query I rowsort
SELECT 8 + 14
----
22

query I rowsort
SELECT ( + 85 ) * + 14 col0
----
1190

query I rowsort
SELECT 53 * 53
----
2809

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4612
SELECT 24 + + 67 * - SUM( ALL 90 ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT 24 + + 67 * - SUM ( ALL 90 ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 34 + - 6
----
28

query I rowsort
SELECT 43 + + 91 AS col2
----
134

query I rowsort
SELECT ALL NULLIF ( - 39, - - ( 28 ) )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4616
SELECT ALL - CAST( NULL AS SIGNED ) + + + 22 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL - CAST ( NULL AS INTEGER ) + + + 22 / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL + - 63 + - - 77 + 52 * CASE + 69 + 38 WHEN 73 THEN 43 WHEN + 15 + + COUNT( * ) THEN + 55 WHEN + COUNT( * ) / MAX( 40 ) + - 15 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL + - 63 + - - 77 + 52 * CASE + 69 + 38 WHEN 73 THEN 43 WHEN + 15 + + COUNT ( * ) THEN + 55 WHEN + COUNT ( * ) / MAX ( 40 ) + - 15 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 71 * - + 78 + + 93 * - ( - 5 )
----
-5073

query I rowsort
SELECT 14 + - 33 AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4620
SELECT - 94 * - ( + + COALESCE ( MIN( - 50 ), + 5 + 92 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4620
SELECT - 94 * - ( + + COALESCE ( MIN ( - 50 ), + 5 + 92 ) ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 51 + - 38 - + ( - 12 ) - - 69 * + 77 * 33 * + 67 AS col1
----
11747068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4622
SELECT COALESCE ( 16, - 31, + 17 DIV SUM( 10 ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4622
SELECT COALESCE ( 16, - 31, + 17 / SUM ( 10 ) ) AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4623
SELECT - ( + - COUNT( * ) ) DIV - 28 col1
----
0

skipif mysql # not compatible
query I rowsort label-4623
SELECT - ( + - COUNT ( * ) ) / - 28 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT + 77 + + 38 * COUNT( * ) AS col1
----
115

skipif mysql # not compatible
query I rowsort label-4624
SELECT + 77 + + 38 * COUNT ( * ) AS col1
----
115

query I rowsort
SELECT DISTINCT + 10 + 56 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT - MIN( - + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT - MIN ( - + 53 )
----
53

query I rowsort
SELECT ALL ( - 33 ) + + + ( 72 ) - + 3
----
36

query I rowsort
SELECT - + 83 * - 75 + 47 AS col0
----
6272

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4629
SELECT DISTINCT 79 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT 79 + - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - 62, + 19 col0
----
-62
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL - 30 * 62 * + ( 70 ) * 20 + ( 45 + CASE MIN( + 4 ) WHEN - MIN( DISTINCT COALESCE ( + 26, - 65 + + 39 ) ) THEN NULL WHEN + 16 THEN 50 * 97 ELSE + 33 * + 88 - - COUNT( * ) END ) + - 79
----
-2601129

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL - 30 * 62 * + ( 70 ) * 20 + ( 45 + CASE MIN ( + 4 ) WHEN - MIN ( DISTINCT COALESCE ( + 26, - 65 + + 39 ) ) THEN NULL WHEN + 16 THEN 50 * 97 ELSE + 33 * + 88 - - COUNT ( * ) END ) + - 79
----
-2601129

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT + 75 * - - 68 * + - 85 - MAX( - 78 ) * 3 AS col0
----
-433266

skipif mysql # not compatible
query I rowsort label-4632
SELECT + 75 * - - 68 * + - 85 - MAX ( - 78 ) * 3 AS col0
----
-433266

onlyif mysql # aggregate syntax: 
query II rowsort label-4633
SELECT ALL + COUNT( * ), 11 + - 48 AS col1
----
1
-37

skipif mysql # not compatible
query II rowsort label-4633
SELECT ALL + COUNT ( * ), 11 + - 48 AS col1
----
1
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT + 93 * + + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4634
SELECT + 93 * + + COUNT ( * ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT - 33 * + COUNT( * ) * - 92 - 81 AS col2
----
2955

skipif mysql # not compatible
query I rowsort label-4635
SELECT - 33 * + COUNT ( * ) * - 92 - 81 AS col2
----
2955

onlyif mysql # aggregate syntax: 
query II rowsort label-4636
SELECT DISTINCT + COUNT( * ) AS col2, 49 * 35 AS col0
----
1
1715

skipif mysql # not compatible
query II rowsort label-4636
SELECT DISTINCT + COUNT ( * ) AS col2, 49 * 35 AS col0
----
1
1715

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT 41 * + + 14 - - + SUM( + 41 )
----
615

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT 41 * + + 14 - - + SUM ( + 41 )
----
615

query I rowsort
SELECT + - 64 + - + NULLIF ( - + 15, + 46 )
----
-49

query I rowsort
SELECT - 58 * + 64 - + 4
----
-3716

query I rowsort
SELECT + NULLIF ( - 66, - - 99 * + + 35 + 97 )
----
-66

query I rowsort
SELECT + NULLIF ( - 39, - 90 ) col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT NULLIF ( - + 88, - COUNT( * ) ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4642
SELECT NULLIF ( - + 88, - COUNT ( * ) ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-4643
SELECT + 95 + 81 AS col1, CASE + 66 WHEN - COUNT( * ) THEN + 45 WHEN 7 THEN NULL END AS col1
----
176
NULL

skipif mysql # not compatible
query II rowsort label-4643
SELECT + 95 + 81 AS col1, CASE + 66 WHEN - COUNT ( * ) THEN + 45 WHEN 7 THEN NULL END AS col1
----
176
NULL

query I rowsort
SELECT DISTINCT 1 * + + 11 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4645
SELECT + ( + + NULLIF ( 29, - COUNT( * ) * CAST( - CASE + CAST( NULL AS SIGNED ) WHEN 32 THEN 98 END + + 18 * + 78 AS DECIMAL ) ) )
----
29

skipif mysql # not compatible
query I rowsort label-4645
SELECT + ( + + NULLIF ( 29, - COUNT ( * ) * CAST ( - CASE + CAST ( NULL AS INTEGER ) WHEN 32 THEN 98 END + + 18 * + 78 AS REAL ) ) )
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-4646
SELECT + 42 DIV - 96, 55 AS col0
----
0
55

skipif mysql # not compatible
query II rowsort label-4646
SELECT + 42 / - 96, 55 AS col0
----
0
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4647
SELECT 7 * - + 92 DIV 83 + - ( + 51 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4647
SELECT 7 * - + 92 / 83 + - ( + 51 ) AS col0
----
-58

query I rowsort
SELECT + NULLIF ( + 41, + 17 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT SUM( + - 47 ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-4649
SELECT SUM ( + - 47 ) col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4650
SELECT + 94 + - - CAST( - + COALESCE ( + - CASE - 50 WHEN 2 THEN - 12 END, - 85 - ( + COALESCE ( - COUNT( * ), ( - 11 ), - AVG ( ALL 7 ) ) ) ) AS SIGNED )
----
178

skipif mysql # not compatible
query I rowsort label-4650
SELECT + 94 + - - CAST ( - + COALESCE ( + - CASE - 50 WHEN 2 THEN - 12 END, - 85 - ( + COALESCE ( - COUNT ( * ), ( - 11 ), - AVG ( ALL 7 ) ) ) ) AS INTEGER )
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT DISTINCT + 22 * + NULLIF ( COALESCE ( 41, 98 * 16, + COALESCE ( 42, 89, - 17 ) ), - AVG ( DISTINCT 14 ) ) * 8 + - CASE + CASE 83 WHEN - COUNT( * ) THEN NULL WHEN + 39 THEN + 31 - + 8 END WHEN CASE ( - ( 97 ) ) WHEN ( + 22 ) + - 72 THEN NULL WHEN - COUNT( * ) THEN + 52 END * 47 THEN + 51 + + SUM( 69 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT + 22 * + NULLIF ( COALESCE ( 41, 98 * 16, + COALESCE ( 42, 89, - 17 ) ), - AVG ( DISTINCT 14 ) ) * 8 + - CASE + CASE 83 WHEN - COUNT ( * ) THEN NULL WHEN + 39 THEN + 31 - + 8 END WHEN CASE ( - ( 97 ) ) WHEN ( + 22 ) + - 72 THEN NULL WHEN - COUNT ( * ) THEN + 52 END * 47 THEN + 51 + + SUM ( 69 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL NULLIF ( COUNT( * ), MIN( DISTINCT + 92 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL NULLIF ( COUNT ( * ), MIN ( DISTINCT + 92 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT + MIN( - 61 ) * + - 34 AS col0
----
2074

skipif mysql # not compatible
query I rowsort label-4653
SELECT + MIN ( - 61 ) * + - 34 AS col0
----
2074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT ALL ( - - 30 ) + - 85 * + + CAST( NULL AS SIGNED ) + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL ( - - 30 ) + - 85 * + + CAST ( NULL AS INTEGER ) + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT + 99 - 77 + 86 + + SUM( + 29 ) * - 81 AS col2
----
-2241

skipif mysql # not compatible
query I rowsort label-4655
SELECT + 99 - 77 + 86 + + SUM ( + 29 ) * - 81 AS col2
----
-2241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4656
SELECT - NULLIF ( + ( + CAST( NULL AS SIGNED ) ), 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT - NULLIF ( + ( + CAST ( NULL AS INTEGER ) ), 7 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4657
SELECT + 78 * - - CAST( NULL AS DECIMAL ) + + - 88 * + 15 * 10 + 99 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT + 78 * - - CAST ( NULL AS REAL ) + + - 88 * + 15 * 10 + 99 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT - 48 * - ( + 48 ) * + - 55 * COUNT( * ) - - 65 AS col1
----
-126655

skipif mysql # not compatible
query I rowsort label-4658
SELECT - 48 * - ( + 48 ) * + - 55 * COUNT ( * ) - - 65 AS col1
----
-126655

query I rowsort
SELECT DISTINCT + - 86 + - 10 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ALL + COUNT( * ) + + SUM( + 91 )
----
92

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL + COUNT ( * ) + + SUM ( + 91 )
----
92

query I rowsort
SELECT - - 12 - + 10 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT ALL - + 11 * + 84 + - 88 * - + MIN( ALL - 54 ) AS col0
----
-5676

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL - + 11 * + 84 + - 88 * - + MIN ( ALL - 54 ) AS col0
----
-5676

query I rowsort
SELECT ALL - 57 + + + 48 * - 98 + + 95 * 48 AS col0
----
-201

query I rowsort
SELECT + CASE 60 WHEN - 44 THEN 28 ELSE - 92 - - 92 END + 55
----
55

query I rowsort
SELECT - 64 - - 19
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT - NULLIF ( + 73, + COUNT( * ) ) + - COUNT( * ) - - 85 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4666
SELECT - NULLIF ( + 73, + COUNT ( * ) ) + - COUNT ( * ) - - 85 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT - 78 - + 40 * MAX( DISTINCT + 87 ) AS col2
----
-3558

skipif mysql # not compatible
query I rowsort label-4667
SELECT - 78 - + 40 * MAX ( DISTINCT + 87 ) AS col2
----
-3558

query I rowsort
SELECT - + 85 * + 92 AS col0
----
-7820

onlyif mysql # DIV for integer division: 
query I rowsort label-4669
SELECT ALL - - COALESCE ( + 79, - - 98 ) DIV 26 - 56 * + 84
----
-4701

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL - - COALESCE ( + 79, - - 98 ) / 26 - 56 * + 84
----
-4701

onlyif mysql # aggregate syntax: 
query II rowsort label-4670
SELECT - - 10 * 37 AS col1, 8 * NULLIF ( 13, - CASE + 92 WHEN COUNT( * ) * + 76 + - 98 THEN - 22 * - 53 WHEN COUNT( * ) THEN NULL ELSE NULL END + AVG ( ALL 62 ) ) + 25 * - 25 AS col2
----
370
-521

skipif mysql # not compatible
query II rowsort label-4670
SELECT - - 10 * 37 AS col1, 8 * NULLIF ( 13, - CASE + 92 WHEN COUNT ( * ) * + 76 + - 98 THEN - 22 * - 53 WHEN COUNT ( * ) THEN NULL ELSE NULL END + AVG ( ALL 62 ) ) + 25 * - 25 AS col2
----
370
-521

query I rowsort
SELECT - + 35 + - 33
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4672
SELECT - AVG ( + 59 ) * 92 + CAST( NULL AS SIGNED ) + + CASE + COUNT( * ) WHEN - 55 THEN NULL WHEN - 56 THEN NULL WHEN - AVG ( + COALESCE ( - 88, 9 ) ) THEN - 42 + - CASE 6 WHEN - COUNT( * ) + + 3 THEN + 45 * 76 + 26 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT - AVG ( + 59 ) * 92 + CAST ( NULL AS INTEGER ) + + CASE + COUNT ( * ) WHEN - 55 THEN NULL WHEN - 56 THEN NULL WHEN - AVG ( + COALESCE ( - 88, 9 ) ) THEN - 42 + - CASE 6 WHEN - COUNT ( * ) + + 3 THEN + 45 * 76 + 26 END END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4673
SELECT ALL CAST( - 38 AS DECIMAL ) * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL CAST ( - 38 AS REAL ) * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT - 2 * - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4674
SELECT - 2 * - COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL + SUM( ALL 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL + SUM ( ALL 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT DISTINCT + 30 * - NULLIF ( - 80, - COUNT( * ) )
----
2400

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT + 30 * - NULLIF ( - 80, - COUNT ( * ) )
----
2400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4677
SELECT DISTINCT + CASE + 17 WHEN + - ( + COALESCE ( + MIN( - 87 ), COUNT( * ) + AVG ( ALL 86 ), - 76 ) ) THEN NULL WHEN SUM( ALL 3 ) + CASE + 53 WHEN 63 THEN - 22 WHEN - MAX( DISTINCT 69 ) THEN - NULLIF ( + 21, + MAX( + 31 ) ) + 11 * - 59 END THEN + 97 WHEN 17 THEN + 86 DIV + 23 END AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT + CASE + 17 WHEN + - ( + COALESCE ( + MIN ( - 87 ), COUNT ( * ) + AVG ( ALL 86 ), - 76 ) ) THEN NULL WHEN SUM ( ALL 3 ) + CASE + 53 WHEN 63 THEN - 22 WHEN - MAX ( DISTINCT 69 ) THEN - NULLIF ( + 21, + MAX ( + 31 ) ) + 11 * - 59 END THEN + 97 WHEN 17 THEN + 86 / + 23 END AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT ALL + COALESCE ( + 25, - - 45 + - CASE 6 WHEN + 33 THEN NULL WHEN ( + 14 ) THEN NULL WHEN - 10 + 78 THEN NULL ELSE 58 END * - COUNT( * ) ) * + 97
----
2425

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL + COALESCE ( + 25, - - 45 + - CASE 6 WHEN + 33 THEN NULL WHEN ( + 14 ) THEN NULL WHEN - 10 + 78 THEN NULL ELSE 58 END * - COUNT ( * ) ) * + 97
----
2425

query I rowsort
SELECT - 66 * + - NULLIF ( - 13, - 58 ) AS col2
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT + 30 + SUM( + - 26 ) * - + 19 * - 3 - 58
----
-1510

skipif mysql # not compatible
query I rowsort label-4680
SELECT + 30 + SUM ( + - 26 ) * - + 19 * - 3 - 58
----
-1510

query I rowsort
SELECT ALL - 12 * - 27
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT ( + + ( + ( MAX( 21 ) ) ) )
----
21

skipif mysql # not compatible
query I rowsort label-4682
SELECT ( + + ( + ( MAX ( 21 ) ) ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT DISTINCT + ( + + 48 ) * + + 64 + + 50 * - 24 * + MIN( DISTINCT 57 * 32 )
----
-2185728

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT + ( + + 48 ) * + + 64 + + 50 * - 24 * + MIN ( DISTINCT 57 * 32 )
----
-2185728

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL 82 * + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL 82 * + COUNT ( * )
----
82

query I rowsort
SELECT 40 * + 40 * CASE + 26 WHEN - 29 THEN NULL ELSE 39 END + 6 AS col0
----
62406

query I rowsort
SELECT COALESCE ( - 32, + 17 - 57, - 60 )
----
-32

query I rowsort
SELECT - ( + CASE - ( 25 ) WHEN + - 10 THEN + 61 END ) * - 38 + ( - AVG ( DISTINCT 73 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4688
SELECT ( - - CAST( NULL AS SIGNED ) ) - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT ( - - CAST ( NULL AS INTEGER ) ) - 52 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4689
SELECT DISTINCT 88 + + COUNT( * ) - - CASE - 82 WHEN - 72 THEN AVG ( + 32 ) * + CASE - COUNT( DISTINCT - 38 ) WHEN NULLIF ( + 93, + 19 ) + + 86 THEN + 2 * 37 END WHEN 21 + 38 * - CAST( NULL AS SIGNED ) THEN - 86 + + 99 * - 17 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT 88 + + COUNT ( * ) - - CASE - 82 WHEN - 72 THEN AVG ( + 32 ) * + CASE - COUNT ( DISTINCT - 38 ) WHEN NULLIF ( + 93, + 19 ) + + 86 THEN + 2 * 37 END WHEN 21 + 38 * - CAST ( NULL AS INTEGER ) THEN - 86 + + 99 * - 17 END * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 46 * + - 58
----
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT 43 + + MIN( - 0 ) + CASE - 71 WHEN 72 THEN 15 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT 43 + + MIN ( - 0 ) + CASE - 71 WHEN 72 THEN 15 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT DISTINCT 11 * - 37 * - 43 * + MAX( 32 ) * 90 + COUNT( * ) * 52 AS col2
----
50402932

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT 11 * - 37 * - 43 * + MAX ( 32 ) * 90 + COUNT ( * ) * 52 AS col2
----
50402932

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL - 21 + + MIN( DISTINCT - - 52 ) - - + 15 * - COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL - 21 + + MIN ( DISTINCT - - 52 ) - - + 15 * - COUNT ( * ) AS col2
----
16

query I rowsort
SELECT + 90 * - - 29 col1
----
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - ( - 94 ) + COALESCE ( 15, - 54 * - COUNT( * ) ) col2
----
109

skipif mysql # not compatible
query I rowsort label-4695
SELECT - ( - 94 ) + COALESCE ( 15, - 54 * - COUNT ( * ) ) col2
----
109

query II rowsort
SELECT ALL 13 AS col2, - 13
----
13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL SUM( ALL + 53 ) - + 28 + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL SUM ( ALL + 53 ) - + 28 + - COUNT ( * )
----
24

query I rowsort
SELECT - ( 57 ) + + 47 * - 88
----
-4193

onlyif mysql # aggregate syntax: 
query II rowsort label-4699
SELECT - + 56 col1, + COUNT( * ) AS col2
----
-56
1

skipif mysql # not compatible
query II rowsort label-4699
SELECT - + 56 col1, + COUNT ( * ) AS col2
----
-56
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4700
SELECT ALL - 44, - CASE 98 WHEN + - 95 THEN - ( ( 1 ) ) * + CAST( MIN( - 37 ) * 6 - + 61 AS DECIMAL ) END AS col2
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-4700
SELECT ALL - 44, - CASE 98 WHEN + - 95 THEN - ( ( 1 ) ) * + CAST ( MIN ( - 37 ) * 6 - + 61 AS REAL ) END AS col2
----
-44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT + COUNT( * ) + - 80 + - COALESCE ( + + ( + + CASE + 44 WHEN - 40 THEN - 70 * ( 77 ) WHEN 96 + 87 THEN NULL ELSE + 68 END ), + 56 ) + 21 * NULLIF ( + 27, - 71 )
----
420

skipif mysql # not compatible
query I rowsort label-4701
SELECT + COUNT ( * ) + - 80 + - COALESCE ( + + ( + + CASE + 44 WHEN - 40 THEN - 70 * ( 77 ) WHEN 96 + 87 THEN NULL ELSE + 68 END ), + 56 ) + 21 * NULLIF ( + 27, - 71 )
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT ALL - ( - + COUNT( + - 21 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL - ( - + COUNT ( + - 21 ) )
----
1

query I rowsort
SELECT ALL - + 16 * 34
----
-544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4704
SELECT - 15 / + CASE - - COUNT( * ) WHEN - COALESCE ( + - 36, + ( 98 ) / + COUNT( * ) ) THEN 63 - + COUNT( + 11 ) WHEN 4 THEN 35 END * + ( CAST( 30 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT - 15 / + CASE - - COUNT ( * ) WHEN - COALESCE ( + - 36, + ( 98 ) / + COUNT ( * ) ) THEN 63 - + COUNT ( + 11 ) WHEN 4 THEN 35 END * + ( CAST ( 30 AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - - 66 * + + 46
----
3036

query I rowsort
SELECT 49 * + - 87
----
-4263

query I rowsort
SELECT NULLIF ( 38, - 76 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT 52 / - 27 - - 94 + 37 * 24 * - CAST( NULL AS SIGNED ) * - 40 - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4708
SELECT 52 / - 27 - - 94 + 37 * 24 * - CAST ( NULL AS INTEGER ) * - 40 - - 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4709
SELECT COALESCE ( 23, - 33 + - CAST( - 50 AS SIGNED ) * + - 93 ) DIV 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4709
SELECT COALESCE ( 23, - 33 + - CAST ( - 50 AS INTEGER ) * + - 93 ) / 60 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4710
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) + 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) + 39 col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 25 ) + + ( - 75 ) AS col2
----
-50

query I rowsort
SELECT ALL + 53 + - 35 * - 38
----
1383

query I rowsort
SELECT DISTINCT - COALESCE ( NULLIF ( - 77, - 59 ), + - 5 ) + 94 AS col0
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4714
SELECT ALL - 81 * + COUNT( * ) DIV + - 91
----
0

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL - 81 * + COUNT ( * ) / + - 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT ALL - 8 + - CAST( + - 6 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL - 8 + - CAST ( + - 6 AS INTEGER )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4716
SELECT ALL + ( - COALESCE ( - ( + 58 ), + CAST( NULL AS SIGNED ) * - - 44 + 18 ) ) + 59 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL + ( - COALESCE ( - ( + 58 ), + CAST ( NULL AS INTEGER ) * - - 44 + 18 ) ) + 59 AS col0
----
117

query I rowsort
SELECT 69 + + - 96
----
-27

query II rowsort
SELECT + 73 AS col2, 1 * + + 68 AS col0
----
73
68

query I rowsort
SELECT ALL - ( + 92 ) AS col2
----
-92

query I rowsort
SELECT ALL + 9 + 49 AS col0
----
58

query I rowsort
SELECT ALL 40 + + 2 AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4722
SELECT 59 * 15 DIV - 2
----
-442

skipif mysql # not compatible
query I rowsort label-4722
SELECT 59 * 15 / - 2
----
-442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4723
SELECT DISTINCT - COUNT( * ) * COUNT( * ) * + 96 DIV 1 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) * + 96 / 1 AS col0
----
-96

query I rowsort
SELECT ALL - 90 - - - 63 * + + 50 col1
----
-3240

query II rowsort
SELECT DISTINCT + 51 AS col1, + 82
----
51
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT NULLIF ( + 76, - + SUM( DISTINCT - 76 ) ) - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT NULLIF ( + 76, - + SUM ( DISTINCT - 76 ) ) - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT - - CAST( 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-4727
SELECT - - CAST ( 62 AS INTEGER )
----
62

query II rowsort
SELECT DISTINCT + 12 AS col2, - 57
----
12
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT ALL - 40 DIV + - COALESCE ( + 15, 82 * 96, - 3 )
----
2

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - 40 / + - COALESCE ( + 15, 82 * 96, - 3 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT 48 * - + 42 * - ( + COUNT( * ) ) * + + COUNT( * ) AS col2
----
2016

skipif mysql # not compatible
query I rowsort label-4730
SELECT 48 * - + 42 * - ( + COUNT ( * ) ) * + + COUNT ( * ) AS col2
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT + 90 * + MAX( DISTINCT + 50 ) - - NULLIF ( 8, + + 7 ) AS col2
----
4508

skipif mysql # not compatible
query I rowsort label-4731
SELECT + 90 * + MAX ( DISTINCT + 50 ) - - NULLIF ( 8, + + 7 ) AS col2
----
4508

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT 94 - + + 97 DIV NULLIF ( - 79, + - 49 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-4732
SELECT 94 - + + 97 / NULLIF ( - 79, + - 49 ) AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4733
SELECT DISTINCT - CAST( + 29 AS SIGNED ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT - CAST ( + 29 AS INTEGER ) AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4734
SELECT ALL 26, CAST( NULL AS SIGNED ) * + 48 col0
----
26
NULL

skipif mysql # not compatible
query II rowsort label-4734
SELECT ALL 26, CAST ( NULL AS INTEGER ) * + 48 col0
----
26
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4735
SELECT ALL + COUNT( * ) AS col1, + 66 * 91 + - 7 DIV 61 + + COUNT( * )
----
1
6007

skipif mysql # not compatible
query II rowsort label-4735
SELECT ALL + COUNT ( * ) AS col1, + 66 * 91 + - 7 / 61 + + COUNT ( * )
----
1
6007

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT COUNT( * ) * - + 38
----
-38

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT COUNT ( * ) * - + 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT + 79 + - NULLIF ( 94, - + COUNT( * ) + + + 41 )
----
-15

skipif mysql # not compatible
query I rowsort label-4737
SELECT + 79 + - NULLIF ( 94, - + COUNT ( * ) + + + 41 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4738
SELECT - - MIN( + + 9 ) AS col2, - 90 AS col1
----
9
-90

skipif mysql # not compatible
query II rowsort label-4738
SELECT - - MIN ( + + 9 ) AS col2, - 90 AS col1
----
9
-90

query I rowsort
SELECT ALL + 64 + + 78 col0
----
142

query I rowsort
SELECT ( 25 ) + + 17
----
42

query I rowsort
SELECT + 62 - - - ( 5 ) * + 62 + + + 35 AS col1
----
-213

query I rowsort
SELECT 12 + - - 84 AS col0
----
96

query I rowsort
SELECT 47 - 96
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-4744
SELECT - 32 DIV - 38 + + 39 col1, + 41 * - 39
----
39
-1599

skipif mysql # not compatible
query II rowsort label-4744
SELECT - 32 / - 38 + + 39 col1, + 41 * - 39
----
39
-1599

query I rowsort
SELECT ALL + 49 * + + 92
----
4508

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT NULLIF ( + 22, 55 - + ( + 28 ) ) DIV - 65 col0
----
0

skipif mysql # not compatible
query I rowsort label-4746
SELECT NULLIF ( + 22, 55 - + ( + 28 ) ) / - 65 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT MIN( 11 ) * - 29 + + - 52
----
-371

skipif mysql # not compatible
query I rowsort label-4747
SELECT MIN ( 11 ) * - 29 + + - 52
----
-371

query I rowsort
SELECT ALL + 23 * 44 + + + 48 - - - 59
----
1001

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT 76 * + CASE + - 8 WHEN + ( - - NULLIF ( + 2, + CASE 42 WHEN 19 THEN ( 69 ) + 89 WHEN 45 THEN NULL ELSE 3 END ) ) THEN COUNT( * ) END + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT 76 * + CASE + - 8 WHEN + ( - - NULLIF ( + 2, + CASE 42 WHEN 19 THEN ( 69 ) + 89 WHEN 45 THEN NULL ELSE 3 END ) ) THEN COUNT ( * ) END + - 91
----
NULL

query I rowsort
SELECT COALESCE ( - + 83, + 73 * - 50 + - 46 ) * + + 49 * - + 66 + 83
----
268505

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4751
SELECT ALL + SUM( + 41 ), - 32 DIV + - COUNT( DISTINCT + 12 ) + - 42 AS col0
----
41
-10

skipif mysql # not compatible
query II rowsort label-4751
SELECT ALL + SUM ( + 41 ), - 32 / + - COUNT ( DISTINCT + 12 ) + - 42 AS col0
----
41
-10

query I rowsort
SELECT + 77 + + ( 61 )
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4753
SELECT - CASE 99 WHEN CASE 94 WHEN + 63 + - 92 * 47 * - 43 THEN CAST( ( - 69 ) AS SIGNED ) * - 87 WHEN + 78 THEN 72 + 97 DIV 84 END THEN + 93 - - 27 ELSE COUNT( * ) * 19 END DIV COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-4753
SELECT - CASE 99 WHEN CASE 94 WHEN + 63 + - 92 * 47 * - 43 THEN CAST ( ( - 69 ) AS INTEGER ) * - 87 WHEN + 78 THEN 72 + 97 / 84 END THEN + 93 - - 27 ELSE COUNT ( * ) * 19 END / COUNT ( * )
----
-19

query I rowsort
SELECT - 41 + + 50 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT + MIN( DISTINCT 60 ) * 77 + + - 71
----
4549

skipif mysql # not compatible
query I rowsort label-4755
SELECT + MIN ( DISTINCT 60 ) * 77 + + - 71
----
4549

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT DISTINCT + 5 DIV + 96 * - 12
----
0

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT + 5 / + 96 * - 12
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT DISTINCT 70 / + ( ( + + CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT 70 / + ( ( + + CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 81 * 60 - - + 23 AS col2
----
4883

query I rowsort
SELECT - ( - 16 ) + 55 AS col1
----
71

query I rowsort
SELECT ALL 4 * - - 33 - + 38 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT + + 55 * - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-4761
SELECT + + 55 * - COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4762
SELECT + ( - + NULLIF ( - 83, 36 - - COUNT( * ) ) ) col2, + 9 DIV + + 55 col0
----
83
0

skipif mysql # not compatible
query II rowsort label-4762
SELECT + ( - + NULLIF ( - 83, 36 - - COUNT ( * ) ) ) col2, + 9 / + + 55 col0
----
83
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4763
SELECT COUNT( * ) * - 17 + - 55 AS col2, 78 AS col0
----
-72
78

skipif mysql # not compatible
query II rowsort label-4763
SELECT COUNT ( * ) * - 17 + - 55 AS col2, 78 AS col0
----
-72
78

query I rowsort
SELECT - 3 - - 42 AS col0
----
39

query I rowsort
SELECT ALL + + ( - + 84 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT + COUNT( * ) * + 40 + + 6 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4766
SELECT + COUNT ( * ) * + 40 + + 6 AS col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4767
SELECT - CAST( NULL AS SIGNED ) - 3, - CAST( NULL AS SIGNED ) - - 38
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4767
SELECT - CAST ( NULL AS INTEGER ) - 3, - CAST ( NULL AS INTEGER ) - - 38
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4768
SELECT - - 0 * + - 95 * - + 68 * - + CAST( NULL AS DECIMAL ) / + NULLIF ( - - SUM( DISTINCT ( 97 ) ), + 63 + - 28 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT - - 0 * + - 95 * - + 68 * - + CAST ( NULL AS REAL ) / + NULLIF ( - - SUM ( DISTINCT ( 97 ) ), + 63 + - 28 ) AS col0
----
NULL

query I rowsort
SELECT - 33 * - - 9 + 23 + + 53 AS col2
----
-221

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT - + 72 * + 16 * - - COUNT( * ) * 67 + + 96 col1
----
-77088

skipif mysql # not compatible
query I rowsort label-4770
SELECT - + 72 * + 16 * - - COUNT ( * ) * 67 + + 96 col1
----
-77088

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL SUM( + 95 ) col2
----
95

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL SUM ( + 95 ) col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4772
SELECT - 88 * 64 AS col1, + ( + 47 ) + - + COUNT( * ) AS col0
----
-5632
46

skipif mysql # not compatible
query II rowsort label-4772
SELECT - 88 * 64 AS col1, + ( + 47 ) + - + COUNT ( * ) AS col0
----
-5632
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL COALESCE ( + + 51, + NULLIF ( 98, - COUNT( * ) ), + - 58 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL COALESCE ( + + 51, + NULLIF ( 98, - COUNT ( * ) ), + - 58 ) AS col2
----
51

query I rowsort
SELECT DISTINCT + 14 col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4775
SELECT - - SUM( ALL + + 75 ) DIV + COUNT( * ) + COUNT( * ) * + - 18 * - 82 - + 29 + - COUNT( * ) * 21 AS col0
----
1501

skipif mysql # not compatible
query I rowsort label-4775
SELECT - - SUM ( ALL + + 75 ) / + COUNT ( * ) + COUNT ( * ) * + - 18 * - 82 - + 29 + - COUNT ( * ) * 21 AS col0
----
1501

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT + + 73 * - + 84 + ( + NULLIF ( + COUNT( * ), - 59 ) ) * - 40
----
-6172

skipif mysql # not compatible
query I rowsort label-4776
SELECT + + 73 * - + 84 + ( + NULLIF ( + COUNT ( * ), - 59 ) ) * - 40
----
-6172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4777
SELECT - NULLIF ( - + COUNT( * ), + CAST( NULL AS SIGNED ) * + + COALESCE ( - 69, + 47 ) / ( + 89 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4777
SELECT - NULLIF ( - + COUNT ( * ), + CAST ( NULL AS INTEGER ) * + + COALESCE ( - 69, + 47 ) / ( + 89 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT ALL - 93 + - - 82 + + COUNT( + 9 ) * SUM( - 84 ) - 20
----
-115

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL - 93 + - - 82 + + COUNT ( + 9 ) * SUM ( - 84 ) - 20
----
-115

query I rowsort
SELECT DISTINCT - 34 + 3
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4780
SELECT - ( - COUNT( 92 ) ) DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-4780
SELECT - ( - COUNT ( 92 ) ) / 52
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4781
SELECT + 60 + + + 32 AS col1, + NULLIF ( - CASE - - 78 WHEN + CAST( - - 88 AS SIGNED ) * 64 THEN NULL ELSE - 20 END, - 75 * NULLIF ( 32, + COALESCE ( 55, - 87 * + 53, - 10 ) + 49 ) + + 14 ) AS col1
----
92
20

skipif mysql # not compatible
query II rowsort label-4781
SELECT + 60 + + + 32 AS col1, + NULLIF ( - CASE - - 78 WHEN + CAST ( - - 88 AS INTEGER ) * 64 THEN NULL ELSE - 20 END, - 75 * NULLIF ( 32, + COALESCE ( 55, - 87 * + 53, - 10 ) + 49 ) + + 14 ) AS col1
----
92
20

query II rowsort
SELECT ALL 30 + + - 89 AS col1, 82
----
-59
82

query I rowsort
SELECT ALL - 26 + + - 10 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT ALL COUNT( * ) * + 49
----
49

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL COUNT ( * ) * + 49
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT ALL 89 + - CAST( + 69 AS SIGNED ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL 89 + - CAST ( + 69 AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT ALL + 53 + + 16 + + + 55 + 23 + - - 77 * COUNT( * ) * - 20
----
-1393

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL + 53 + + 16 + + + 55 + 23 + - - 77 * COUNT ( * ) * - 20
----
-1393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4787
SELECT + COALESCE ( - NULLIF ( + 70, MIN( - 5 ) * MAX( DISTINCT + 19 ) * - + 37 ), - COUNT( * ) * ( COUNT( * ) * 45 ) + - 54, + COUNT( * ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4787
SELECT + COALESCE ( - NULLIF ( + 70, MIN ( - 5 ) * MAX ( DISTINCT + 19 ) * - + 37 ), - COUNT ( * ) * ( COUNT ( * ) * 45 ) + - 54, + COUNT ( * ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 72 * + 21
----
1512

query I rowsort
SELECT - CASE + 35 WHEN 32 / - + 52 THEN NULL ELSE 79 END col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4790
SELECT - 59 - + 87 - + + 49 DIV + + CASE 53 WHEN - 15 + + + 97 THEN NULL WHEN + 6 THEN NULL ELSE COUNT( * ) END
----
-195

skipif mysql # not compatible
query I rowsort label-4790
SELECT - 59 - + 87 - + + 49 / + + CASE 53 WHEN - 15 + + + 97 THEN NULL WHEN + 6 THEN NULL ELSE COUNT ( * ) END
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4791
SELECT CAST( - 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4791
SELECT CAST ( - 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT - 9 / - + CASE + MIN( ALL 17 ) WHEN + 64 * - 49 + + 85 * - + 71 + COUNT( * ) * - COUNT( * ) THEN + NULLIF ( + 4, 44 + + 80 * + 42 ) * 56 ELSE NULL END / 13 - - 84 * 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT - 9 / - + CASE + MIN ( ALL 17 ) WHEN + 64 * - 49 + + 85 * - + 71 + COUNT ( * ) * - COUNT ( * ) THEN + NULLIF ( + 4, 44 + + 80 * + 42 ) * 56 ELSE NULL END / 13 - - 84 * 78 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4793
SELECT + COALESCE ( - + 67, 9 + COUNT( * ) ) * - 16 - 41 + + - CAST( - CASE 85 WHEN + AVG ( 16 ) THEN 47 END AS SIGNED ) + 39 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT + COALESCE ( - + 67, 9 + COUNT ( * ) ) * - 16 - 41 + + - CAST ( - CASE 85 WHEN + AVG ( 16 ) THEN 47 END AS INTEGER ) + 39 * - 48
----
NULL

query I rowsort
SELECT + CASE + 83 WHEN 37 THEN - 17 END * + 89 * - 93 + - 44 + + + 27 + 95 * 93 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4795
SELECT ALL 40 DIV + 56 * 85 - - + 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL 40 / + 56 * 85 - - + 59 AS col2
----
59

query I rowsort
SELECT ( + ( + 37 ) ) AS col0
----
37

query I rowsort
SELECT ALL 17 * ( - 95 )
----
-1615

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4798
SELECT + COALESCE ( - 90, + - 61, + + 69 * 1 DIV - MIN( + + 54 ) * 58 ) + - 78
----
-168

skipif mysql # not compatible
query I rowsort label-4798
SELECT + COALESCE ( - 90, + - 61, + + 69 * 1 / - MIN ( + + 54 ) * 58 ) + - 78
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-4799
SELECT DISTINCT 29 DIV NULLIF ( - 94, + 49 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT 29 / NULLIF ( - 94, + 49 ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 0 * - 70 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT ALL 81 * + MAX( ALL + 58 )
----
4698

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL 81 * + MAX ( ALL + 58 )
----
4698

query I rowsort
SELECT + 14 * + + 9 + 60 + - 80
----
106

query I rowsort
SELECT - - 87 + 59 + + + 85
----
231

query I rowsort
SELECT - + 12 + - 68 + - 43 AS col1
----
-123

query II rowsort
SELECT ALL + 57 AS col1, - 60 col2
----
57
-60

query I rowsort
SELECT + - 43 * - 93 + + + 75
----
4074

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4807
SELECT DISTINCT + 60, + CAST( NULL AS SIGNED ) * + + 41 col2
----
60
NULL

skipif mysql # not compatible
query II rowsort label-4807
SELECT DISTINCT + 60, + CAST ( NULL AS INTEGER ) * + + 41 col2
----
60
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4808
SELECT + 82, - 12 DIV + 27 AS col2
----
82
0

skipif mysql # not compatible
query II rowsort label-4808
SELECT + 82, - 12 / + 27 AS col2
----
82
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT - - ( + + COUNT( + 28 ) ) * + COUNT( * ) - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4809
SELECT - - ( + + COUNT ( + 28 ) ) * + COUNT ( * ) - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - 95 * - 25 AS col0
----
2375

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT + 97 * + COUNT( * ) - 43 - + 89 * - 37 * CASE - 10 WHEN - + 36 / 41 THEN NULL WHEN 30 THEN 17 ELSE COUNT( * ) END * CASE WHEN NOT 0 <> NULL THEN + 50 + - ( 2 + + 79 ) * + NULLIF ( 70, - 45 - + 54 * ( - 54 * 78 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT + 97 * + COUNT ( * ) - 43 - + 89 * - 37 * CASE - 10 WHEN - + 36 / 41 THEN NULL WHEN 30 THEN 17 ELSE COUNT ( * ) END * CASE WHEN NOT 0 <> NULL THEN + 50 + - ( 2 + + 79 ) * + NULLIF ( 70, - 45 - + 54 * ( - 54 * 78 ) ) END AS col2
----
NULL

query II rowsort
SELECT DISTINCT 11 AS col2, 73 * + + 40 * - 87
----
11
-254040

query I rowsort
SELECT ALL + + 3 * 98 - + 43 + + 17
----
268

query I rowsort
SELECT + 47 + + - 97
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT - 61 + + 14 - + + 4 + - ( - 29 ) + + 37 + - 31 * + + 63 + - COUNT( * ) AS col2
----
-1939

skipif mysql # not compatible
query I rowsort label-4815
SELECT - 61 + + 14 - + + 4 + - ( - 29 ) + + 37 + - 31 * + + 63 + - COUNT ( * ) AS col2
----
-1939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4816
SELECT ALL + 5 * + NULLIF ( - ( + 14 ), + CAST( + + ( - 13 ) AS SIGNED ) * MIN( DISTINCT - 65 ) ) + + 64 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + 5 * + NULLIF ( - ( + 14 ), + CAST ( + + ( - 13 ) AS INTEGER ) * MIN ( DISTINCT - 65 ) ) + + 64 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4817
SELECT - ( + + MAX( DISTINCT + 77 ) ) AS col1, CASE + 35 WHEN + - 62 + 98 THEN + 0 END * 92 + - 20
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-4817
SELECT - ( + + MAX ( DISTINCT + 77 ) ) AS col1, CASE + 35 WHEN + - 62 + 98 THEN + 0 END * 92 + - 20
----
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT DISTINCT - COUNT( * ) + + - COUNT( * ) * ( - - COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( * ) * ( - - COUNT ( * ) )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4819
SELECT ALL - 94 + - + 17 * - SUM( + 31 ) * - + COUNT( * ) DIV + COUNT( * ) + + 29 + 7 * 96 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - 94 + - + 17 * - SUM ( + 31 ) * - + COUNT ( * ) / + COUNT ( * ) + + 29 + 7 * 96 AS col2
----
80

query I rowsort
SELECT - 96 - - 76 * - 86 + + ( - 80 ) AS col1
----
-6712

query I rowsort
SELECT ALL - 21 + + 47 + 71 + 54 * - 19 * - ( + 42 ) - 0 + + - 97 * 81 AS col2
----
35332

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - CASE - + 14 WHEN + 60 + - + NULLIF ( 97, + 10 + 51 ) THEN - COUNT( * ) + + + 59 * 13 WHEN - 41 / SUM( ALL 99 * 60 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT - CASE - + 14 WHEN + 60 + - + NULLIF ( 97, + 10 + 51 ) THEN - COUNT ( * ) + + + 59 * 13 WHEN - 41 / SUM ( ALL 99 * 60 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL - CASE + 63 WHEN + 20 - 64 * - 98 THEN 67 END + - SUM( 48 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL - CASE + 63 WHEN + 20 - 64 * - 98 THEN 67 END + - SUM ( 48 ) AS col2
----
NULL

query I rowsort
SELECT 27 + + 87 * - 19
----
-1626

query I rowsort
SELECT 72 - 10 AS col0
----
62

query I rowsort
SELECT ALL - 22 * + 20 AS col1
----
-440

query I rowsort
SELECT 43 * + 13
----
559

query I rowsort
SELECT 46 + 7 + - 3 col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT COUNT( DISTINCT + 20 ) + + - MIN( 93 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4829
SELECT COUNT ( DISTINCT + 20 ) + + - MIN ( 93 ) AS col2
----
-92

query I rowsort
SELECT ALL + 59 * + 36
----
2124

query I rowsort
SELECT DISTINCT - 5 * + 20 * + 76
----
-7600

query I rowsort
SELECT ( + + 51 ) * - 25 AS col0
----
-1275

query I rowsort
SELECT ALL - + 60 col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT + ( COUNT( * ) ) * + + 79
----
79

skipif mysql # not compatible
query I rowsort label-4834
SELECT + ( COUNT ( * ) ) * + + 79
----
79

query I rowsort
SELECT DISTINCT - NULLIF ( + 99, - - ( + 83 ) ) AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT DISTINCT - 59 + + - CAST( NULL AS SIGNED ) - + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT - 59 + + - CAST ( NULL AS INTEGER ) - + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT + COUNT( * ) + - 66 * - 89 AS col0
----
5875

skipif mysql # not compatible
query I rowsort label-4837
SELECT + COUNT ( * ) + - 66 * - 89 AS col0
----
5875

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL ( + + COUNT( * ) ) + + 47 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL ( + + COUNT ( * ) ) + + 47 AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4839
SELECT + 1 - - COALESCE ( 61, + 59 + - 66 + + 55 DIV - MIN( ALL - + 15 ) - - COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-4839
SELECT + 1 - - COALESCE ( 61, + 59 + - 66 + + 55 / - MIN ( ALL - + 15 ) - - COUNT ( * ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT MIN( 90 ) + - - MIN( DISTINCT - + 93 ) - + 99 + - 54 + - - 71 * - - 19 * NULLIF ( + SUM( ALL 73 ), 20 - COUNT( 74 ) / - 45 ) * 64 AS col1
----
6302372

skipif mysql # not compatible
query I rowsort label-4840
SELECT MIN ( 90 ) + - - MIN ( DISTINCT - + 93 ) - + 99 + - 54 + - - 71 * - - 19 * NULLIF ( + SUM ( ALL 73 ), 20 - COUNT ( 74 ) / - 45 ) * 64 AS col1
----
6302372

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT - 73 * - COUNT( * ) + - + 60 + 7 * COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4841
SELECT - 73 * - COUNT ( * ) + - + 60 + 7 * COUNT ( * ) AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4842
SELECT ALL + COALESCE ( - + COUNT( * ), - 41 * 52 * - 15, + + 63 - - ( - 95 ) DIV + + SUM( ALL - 96 ) * 45 ) + NULLIF ( + 10, - COUNT( * ) + - 75 )
----
9

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL + COALESCE ( - + COUNT ( * ), - 41 * 52 * - 15, + + 63 - - ( - 95 ) / + + SUM ( ALL - 96 ) * 45 ) + NULLIF ( + 10, - COUNT ( * ) + - 75 )
----
9

query I rowsort
SELECT ALL - + ( - - 61 ) col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT 61 + - COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4844
SELECT 61 + - COUNT ( * ) AS col1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT ALL - + 90 + + 85 DIV + 73 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL - + 90 + + 85 / + 73 AS col2
----
-89

query I rowsort
SELECT - 94 * - 26 + + 71 + + 34 AS col2
----
2549

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT DISTINCT 60 DIV 9
----
6

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT 60 / 9
----
6

query I rowsort
SELECT 47 + - - 94 * 79 AS col2
----
7473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT CAST( NULL AS SIGNED ) * + + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT CAST ( NULL AS INTEGER ) * + + 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT 63 + - 79 + - - 91 + - COALESCE ( + 50, - 62 - + COUNT( * ), + 98 * + + 90 - - + 33 + + 80 ) * - 21 * 47 AS col2
----
49425

skipif mysql # not compatible
query I rowsort label-4850
SELECT 63 + - 79 + - - 91 + - COALESCE ( + 50, - 62 - + COUNT ( * ), + 98 * + + 90 - - + 33 + + 80 ) * - 21 * 47 AS col2
----
49425

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT 72 + - CASE WHEN NOT CASE 66 WHEN - 46 THEN NULL WHEN - 52 + - 80 THEN - 84 ELSE NULL END > + 19 THEN NULL ELSE 77 * COUNT( * ) END
----
-5

skipif mysql # not compatible
query I rowsort label-4851
SELECT 72 + - CASE WHEN NOT CASE 66 WHEN - 46 THEN NULL WHEN - 52 + - 80 THEN - 84 ELSE NULL END > + 19 THEN NULL ELSE 77 * COUNT ( * ) END
----
-5

query I rowsort
SELECT DISTINCT - 36 * - NULLIF ( + 67, 86 ) AS col1
----
2412

query I rowsort
SELECT ALL 18 * + + 61 * + 40 AS col0
----
43920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4854
SELECT 53 * 27 * 42 DIV + + COUNT( * )
----
60102

skipif mysql # not compatible
query I rowsort label-4854
SELECT 53 * 27 * 42 / + + COUNT ( * )
----
60102

query I rowsort
SELECT DISTINCT 53 * + ( - - 60 )
----
3180

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT ALL COUNT( * ), - COUNT( * ) col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-4856
SELECT ALL COUNT ( * ), - COUNT ( * ) col0
----
1
-1

query I rowsort
SELECT 78 + - 86
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4858
SELECT 8 col0, - 91 / - CAST( NULL AS DECIMAL ) AS col2
----
8
NULL

skipif mysql # not compatible
query II rowsort label-4858
SELECT 8 col0, - 91 / - CAST ( NULL AS REAL ) AS col2
----
8
NULL

query I rowsort
SELECT 62 - - - 23
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4860
SELECT 68 * + - CAST( - - 7 AS SIGNED )
----
-476

skipif mysql # not compatible
query I rowsort label-4860
SELECT 68 * + - CAST ( - - 7 AS INTEGER )
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT - 12 * COUNT( * ) + - 92
----
-104

skipif mysql # not compatible
query I rowsort label-4861
SELECT - 12 * COUNT ( * ) + - 92
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-4862
SELECT ALL - COALESCE ( 19, + 19 ) DIV ( - + 51 ) - - + 46 col1
----
46

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL - COALESCE ( 19, + 19 ) / ( - + 51 ) - - + 46 col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4863
SELECT MAX( ALL 82 ) * + NULLIF ( - 92, + 38 * + CAST( NULL AS SIGNED ) )
----
-7544

skipif mysql # not compatible
query I rowsort label-4863
SELECT MAX ( ALL 82 ) * + NULLIF ( - 92, + 38 * + CAST ( NULL AS INTEGER ) )
----
-7544

onlyif mysql # DIV for integer division: 
query I rowsort label-4864
SELECT DISTINCT - - 1 DIV + 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT - - 1 / + 51 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT DISTINCT MIN( ALL - 14 ) + + ( - 16 ) + - + 7 * 5 * + COUNT( * ) * 48 + 35
----
-1675

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT MIN ( ALL - 14 ) + + ( - 16 ) + - + 7 * 5 * + COUNT ( * ) * 48 + 35
----
-1675

query I rowsort
SELECT DISTINCT + + 88 + + ( + 26 ) AS col0
----
114

query I rowsort
SELECT ALL - - 26 + + 84
----
110

query I rowsort
SELECT 48 * 88
----
4224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT DISTINCT - - ( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT - - ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 99 + - - 29 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL - - 46 + 81 - - + ( - NULLIF ( - - ( + COUNT( + 28 ) ), - + 20 / + COUNT( * ) ) ) + 57
----
183

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL - - 46 + 81 - - + ( - NULLIF ( - - ( + COUNT ( + 28 ) ), - + 20 / + COUNT ( * ) ) ) + 57
----
183

query I rowsort
SELECT ALL 96 + 19
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT DISTINCT - 56 + 19 DIV 92 DIV + 86 DIV + - 10
----
-56

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT - 56 + 19 / 92 / + 86 / + - 10
----
-56

query I rowsort
SELECT 79 * + 19
----
1501

query II rowsort
SELECT ALL - - 40, + NULLIF ( 38, - 56 * + 32 ) col0
----
40
38

query I rowsort
SELECT ALL - 23 * 39 + 9 * - 25 col2
----
-1122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4877
SELECT ALL - - 23 AS col0, + COUNT( * ) * 92 DIV 15
----
23
6

skipif mysql # not compatible
query II rowsort label-4877
SELECT ALL - - 23 AS col0, + COUNT ( * ) * 92 / 15
----
23
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL + SUM( DISTINCT + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL + SUM ( DISTINCT + 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT - 50 * 82 - 77 + + + COUNT( * ) * 46 - - 24 col1
----
-4107

skipif mysql # not compatible
query I rowsort label-4879
SELECT - 50 * 82 - 77 + + + COUNT ( * ) * 46 - - 24 col1
----
-4107

query I rowsort
SELECT - - ( + 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4881
SELECT + 60 + 92 + - COUNT( * ) DIV + 58 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-4881
SELECT + 60 + 92 + - COUNT ( * ) / + 58 AS col2
----
152

query II rowsort
SELECT 70 AS col0, + 15 + - 5 + 21 + - 44 * + 52 + + 52 + + + 57
----
70
-2148

query I rowsort
SELECT + 13 + - 80 * - - 18 AS col2
----
-1427

query I rowsort
SELECT + 6 - - 13 * + - 80 AS col1
----
-1034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4885
SELECT ALL + SUM( DISTINCT 99 ) * 2 * + - 61 col2, + 45 * - CAST( NULL AS SIGNED )
----
-12078
NULL

skipif mysql # not compatible
query II rowsort label-4885
SELECT ALL + SUM ( DISTINCT 99 ) * 2 * + - 61 col2, + 45 * - CAST ( NULL AS INTEGER )
----
-12078
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4886
SELECT + NULLIF ( + - 45, 76 * + CASE COUNT( * ) WHEN AVG ( ALL + + 37 ) DIV - - AVG ( ALL 39 ) * 84 THEN - + MAX( - 31 ) * 72 ELSE NULL END ) DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-4886
SELECT + NULLIF ( + - 45, 76 * + CASE COUNT ( * ) WHEN AVG ( ALL + + 37 ) / - - AVG ( ALL 39 ) * 84 THEN - + MAX ( - 31 ) * 72 ELSE NULL END ) / - 87
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4887
SELECT DISTINCT 6 DIV + - 6
----
-1

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT 6 / + - 6
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4888
SELECT + 70 + + ( 24 ) DIV 36 AS col2, + 55 AS col0
----
70
55

skipif mysql # not compatible
query II rowsort label-4888
SELECT + 70 + + ( 24 ) / 36 AS col2, + 55 AS col0
----
70
55

query I rowsort
SELECT - 76 * + + 62 AS col0
----
-4712

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT ALL MAX( DISTINCT + + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL MAX ( DISTINCT + + 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT + 23 + - COUNT( * ) * + 31 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4891
SELECT + 23 + - COUNT ( * ) * + 31 AS col0
----
-8

query I rowsort
SELECT - 29 - 2 + + - ( 33 ) AS col0
----
-64

query I rowsort
SELECT + 40 * - - 92 AS col0
----
3680

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT DISTINCT - 87 + + - 2 * 89 DIV - COALESCE ( + 23, + 70 + - - COALESCE ( + 59, + ( + 85 ) + + 49 + 60 DIV - 68, + 16 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT - 87 + + - 2 * 89 / - COALESCE ( + 23, + 70 + - - COALESCE ( + 59, + ( + 85 ) + + 49 + 60 / - 68, + 16 ) )
----
-80

query I rowsort
SELECT DISTINCT 64 * - ( + 17 )
----
-1088

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT ALL - 61 + + COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL - 61 + + COUNT ( * ) AS col0
----
-60

query I rowsort
SELECT - 25 + + 28
----
3

query II rowsort
SELECT + - COALESCE ( + - 24, 61, + NULLIF ( - 2, + + 4 ) + - 5 ), 21 AS col2
----
24
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 14 + 91
----
77

query II rowsort
SELECT + - 52 col1, + 31
----
-52
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT - ( + 63 ) + - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-4902
SELECT - ( + 63 ) + - COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT - 2 * COUNT( * ) + + + 70 + 55 + + 87
----
210

skipif mysql # not compatible
query I rowsort label-4903
SELECT - 2 * COUNT ( * ) + + + 70 + 55 + + 87
----
210

query I rowsort
SELECT - 54 * - + 25 + + 12 AS col0
----
1362

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4905
SELECT ALL + 74 * COALESCE ( 97, + 59 DIV + 35 * + 18 + + CAST( NULL AS SIGNED ), - 20 DIV 9 ) * - ( - 77 )
----
552706

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL + 74 * COALESCE ( 97, + 59 / + 35 * + 18 + + CAST ( NULL AS INTEGER ), - 20 / 9 ) * - ( - 77 )
----
552706

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4906
SELECT DISTINCT + - 29, - 19 DIV - - MAX( DISTINCT - 25 ) AS col2
----
-29
0

skipif mysql # not compatible
query II rowsort label-4906
SELECT DISTINCT + - 29, - 19 / - - MAX ( DISTINCT - 25 ) AS col2
----
-29
0

query I rowsort
SELECT DISTINCT - CASE + 30 WHEN 1 THEN + 79 END * ( - - 42 ) - + 55 * - + 90 - - + 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT ALL + CASE - 69 WHEN + CAST( NULL AS SIGNED ) THEN 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL + CASE - 69 WHEN + CAST ( NULL AS INTEGER ) THEN 1 END
----
NULL

query II rowsort
SELECT - + 88 + 87, + 52 + - + 47 col2
----
-1
5

query I rowsort
SELECT - 16 + - + 76 + - ( + 12 )
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-4911
SELECT + COUNT( * ) AS col1, COUNT( * ) * + + 26
----
1
26

skipif mysql # not compatible
query II rowsort label-4911
SELECT + COUNT ( * ) AS col1, COUNT ( * ) * + + 26
----
1
26

query I rowsort
SELECT - - 80 * 69 + - 47 + 0 AS col0
----
5473

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL + - COUNT( 88 )
----
-1

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL + - COUNT ( 88 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4914
SELECT MAX( 7 ) * + CASE CAST( NULL AS DECIMAL ) WHEN - - 68 - 75 THEN - 51 WHEN - 17 THEN NULL END + + + ( 17 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT MAX ( 7 ) * + CASE CAST ( NULL AS REAL ) WHEN - - 68 - 75 THEN - 51 WHEN - 17 THEN NULL END + + + ( 17 ) AS col1
----
NULL

query I rowsort
SELECT - 54 * + 80
----
-4320

query I rowsort
SELECT DISTINCT ( - 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT + COUNT( * ) + + + ( 87 ) * 81 * 84 AS col2
----
591949

skipif mysql # not compatible
query I rowsort label-4917
SELECT + COUNT ( * ) + + + ( 87 ) * 81 * 84 AS col2
----
591949

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4918
SELECT DISTINCT CAST( 73 AS SIGNED ) col1, + 59 * + 46 AS col2
----
73
2714

skipif mysql # not compatible
query II rowsort label-4918
SELECT DISTINCT CAST ( 73 AS INTEGER ) col1, + 59 * + 46 AS col2
----
73
2714

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT - MIN( DISTINCT + 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-4919
SELECT - MIN ( DISTINCT + 87 ) AS col0
----
-87

query I rowsort
SELECT - ( + + 8 ) AS col2
----
-8

query I rowsort
SELECT + 53 + + 30 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT - COALESCE ( - - 64, + COUNT( * ), 67 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4922
SELECT - COALESCE ( - - 64, + COUNT ( * ), 67 ) AS col2
----
-64

query I rowsort
SELECT + 29 + - - 65 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT DISTINCT MIN( ALL + ( + 13 ) ) + + - COUNT( + - 18 ) + 41 + + 44
----
97

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT MIN ( ALL + ( + 13 ) ) + + - COUNT ( + - 18 ) + 41 + + 44
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL 11 + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL 11 + COUNT ( * )
----
12

query I rowsort
SELECT ALL 23 * - 11 AS col0
----
-253

onlyif mysql # DIV for integer division: 
query I rowsort label-4927
SELECT + - 35 DIV - + NULLIF ( + + 68, 64 - + 36 - + 16 - 73 )
----
0

skipif mysql # not compatible
query I rowsort label-4927
SELECT + - 35 / - + NULLIF ( + + 68, 64 - + 36 - + 16 - 73 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4928
SELECT ALL - 30 + + + MIN( DISTINCT + + 17 ) + 79 + + 95 DIV - 31 + + 73 DIV + - ( 3 ) + 48 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL - 30 + + + MIN ( DISTINCT + + 17 ) + 79 + + 95 / - 31 + + 73 / + - ( 3 ) + 48 AS col2
----
87

query II rowsort
SELECT + 76 * + 13, + 69 AS col2
----
988
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT + MIN( ALL + ( + - 12 ) ) - - ( COUNT( * ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4930
SELECT + MIN ( ALL + ( + - 12 ) ) - - ( COUNT ( * ) ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4931
SELECT - - 27 + - 90 * + COALESCE ( + - NULLIF ( 47, + AVG ( - 43 ) ), COUNT( * ) + + 94, - 72 ) col2, + 88
----
4257
88

skipif mysql # not compatible
query II rowsort label-4931
SELECT - - 27 + - 90 * + COALESCE ( + - NULLIF ( 47, + AVG ( - 43 ) ), COUNT ( * ) + + 94, - 72 ) col2, + 88
----
4257
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT + MAX( - 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-4932
SELECT + MAX ( - 62 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-4933
SELECT + - 83 * - 44, COALESCE ( - MIN( + 4 ), + + COUNT( + + 44 ) - - - 46 ) - + 61 AS col1
----
3652
-65

skipif mysql # not compatible
query II rowsort label-4933
SELECT + - 83 * - 44, COALESCE ( - MIN ( + 4 ), + + COUNT ( + + 44 ) - - - 46 ) - + 61 AS col1
----
3652
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-4934
SELECT - 0 * - 84 - + COUNT( * ) + - 58 + + 98 * + ( - 8 ) AS col1, 50 AS col0
----
-843
50

skipif mysql # not compatible
query II rowsort label-4934
SELECT - 0 * - 84 - + COUNT ( * ) + - 58 + + 98 * + ( - 8 ) AS col1, 50 AS col0
----
-843
50

query I rowsort
SELECT DISTINCT - + 16 - - 72 - - 45 * 95
----
4331

query I rowsort
SELECT DISTINCT - CASE + - 35 WHEN 2 THEN 18 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4937
SELECT - COALESCE ( - + 20, 20 + + 38 + + SUM( - + 86 ) DIV - MIN( ALL + + 48 ), - - COUNT( * ) * + COUNT( DISTINCT 57 ) - + - 40 * 47, COUNT( * ) * 81 ) * - 88 AS col2
----
-1760

skipif mysql # not compatible
query I rowsort label-4937
SELECT - COALESCE ( - + 20, 20 + + 38 + + SUM ( - + 86 ) / - MIN ( ALL + + 48 ), - - COUNT ( * ) * + COUNT ( DISTINCT 57 ) - + - 40 * 47, COUNT ( * ) * 81 ) * - 88 AS col2
----
-1760

onlyif mysql # DIV for integer division: 
query I rowsort label-4938
SELECT 56 DIV - 92 * + + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4938
SELECT 56 / - 92 * + + 71 AS col2
----
0

query I rowsort
SELECT DISTINCT + 59 * - 42 col2
----
-2478

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL - COUNT( * ) * - - 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL - COUNT ( * ) * - - 25 AS col0
----
-25

query II rowsort
SELECT 32, 70 AS col2
----
32
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4942
SELECT ALL - COUNT( * ) AS col1, COUNT( * ) + - - 1 - 50 DIV 11
----
-1
-2

skipif mysql # not compatible
query II rowsort label-4942
SELECT ALL - COUNT ( * ) AS col1, COUNT ( * ) + - - 1 - 50 / 11
----
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT 46 DIV - 19
----
-2

skipif mysql # not compatible
query I rowsort label-4943
SELECT 46 / - 19
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT MIN( + 20 ) / COUNT( * ) / + - CASE - 94 WHEN 5 THEN 75 ELSE NULL END * - 51 + + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT MIN ( + 20 ) / COUNT ( * ) / + - CASE - 94 WHEN 5 THEN 75 ELSE NULL END * - 51 + + 88 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 14 * - 50 * + 66 col0
----
-46200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT 62 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT 62 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 42 + + 4 - + 51
----
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4948
SELECT 71 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT 71 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4949
SELECT ALL - 42 + + CAST( + NULLIF ( - 97, 72 ) AS SIGNED )
----
-139

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL - 42 + + CAST ( + NULLIF ( - 97, 72 ) AS INTEGER )
----
-139

query II rowsort
SELECT ALL 23 AS col0, 59 AS col2
----
23
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4951
SELECT - ( + COUNT( * ) ) + 45 DIV 78 + - 59
----
-60

skipif mysql # not compatible
query I rowsort label-4951
SELECT - ( + COUNT ( * ) ) + 45 / 78 + - 59
----
-60

query II rowsort
SELECT - 43 * - - 61 * 9 AS col2, + 10 AS col0
----
-23607
10

query I rowsort
SELECT - + ( - - 54 )
----
-54

query I rowsort
SELECT DISTINCT + 51 - - 89 AS col0
----
140

query II rowsort
SELECT DISTINCT + 40 * + + 78 * 6 AS col0, + 20 AS col1
----
18720
20

query II rowsort
SELECT + 9 * - 37 + - 36 col2, - 54 col0
----
-369
-54

query I rowsort
SELECT ALL - + 39 * + 28 + - + 46
----
-1138

query I rowsort
SELECT 84 + + + 19 AS col1
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT - 73 * - - 89 - - - 78 + - 9 * 83 * 37 + - 77 DIV + + 90 + 83 * - 72 + 64 - NULLIF ( - + 56, + 77 * + 27 )
----
-40070

skipif mysql # not compatible
query I rowsort label-4959
SELECT - 73 * - - 89 - - - 78 + - 9 * 83 * 37 + - 77 / + + 90 + 83 * - 72 + 64 - NULLIF ( - + 56, + 77 * + 27 )
----
-40070

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL ( - COALESCE ( - - 78, + COUNT( - 47 ) ) ) - - - NULLIF ( + ( + 49 ), + 86 + + COALESCE ( + AVG ( 84 ), + 16 ) * 24 ) * 1 AS col2
----
-127

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL ( - COALESCE ( - - 78, + COUNT ( - 47 ) ) ) - - - NULLIF ( + ( + 49 ), + 86 + + COALESCE ( + AVG ( 84 ), + 16 ) * 24 ) * 1 AS col2
----
-127

query II rowsort
SELECT - 76 * + 72 + - - 16 AS col1, 9
----
-5456
9

query I rowsort
SELECT 64 * + 60
----
3840

query I rowsort
SELECT - 59 * + - 78 - 91 + + 53
----
4564

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT ALL - MAX( DISTINCT 22 ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL - MAX ( DISTINCT 22 ) col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4965
SELECT + 4 col2, + ( - 59 ) + + 75 + - 19 + + 67 + + 14 * - 65 * - 64 * - MIN( 47 ) + 47 * + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * + 53
----
4
NULL

skipif mysql # not compatible
query II rowsort label-4965
SELECT + 4 col2, + ( - 59 ) + + 75 + - 19 + + 67 + + 14 * - 65 * - 64 * - MIN ( 47 ) + 47 * + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * + 53
----
4
NULL

query I rowsort
SELECT 41 + + + 93 AS col2
----
134

query II rowsort
SELECT ALL - + 51 AS col1, - 98 * - 78
----
-51
7644

query II rowsort
SELECT - 34 + 75 * ( 74 ) AS col0, + 98 * + 20 * + 7 AS col1
----
5516
13720

query II rowsort
SELECT DISTINCT + 83 * - 89 * 32 AS col2, - 1 AS col0
----
-236384
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4970
SELECT ALL - ( + - 22 ) AS col0, - CAST( NULL AS SIGNED ) + + 42 AS col0
----
22
NULL

skipif mysql # not compatible
query II rowsort label-4970
SELECT ALL - ( + - 22 ) AS col0, - CAST ( NULL AS INTEGER ) + + 42 AS col0
----
22
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4971
SELECT 97 + - + 35, + ( 36 ) * - 80 * + 73 * + + ( + CASE - COUNT( * ) WHEN CASE - COUNT( * ) WHEN SUM( - - 81 ) + 16 THEN - COALESCE ( + 7, 19 ) * 56 WHEN + 94 / 65 THEN + 75 ELSE + 2 + 74 END * - 60 THEN 3 END ) + - CAST( 98 AS SIGNED ) - 26 * 69 AS col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-4971
SELECT 97 + - + 35, + ( 36 ) * - 80 * + 73 * + + ( + CASE - COUNT ( * ) WHEN CASE - COUNT ( * ) WHEN SUM ( - - 81 ) + 16 THEN - COALESCE ( + 7, 19 ) * 56 WHEN + 94 / 65 THEN + 75 ELSE + 2 + 74 END * - 60 THEN 3 END ) + - CAST ( 98 AS INTEGER ) - 26 * 69 AS col2
----
62
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4972
SELECT DISTINCT - MAX( ALL + 26 ) + CAST( - 50 AS SIGNED ) + + + COALESCE ( MIN( ALL 69 ), 51, + 20, + + 14, - + 61 )
----
-7

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT - MAX ( ALL + 26 ) + CAST ( - 50 AS INTEGER ) + + + COALESCE ( MIN ( ALL 69 ), 51, + 20, + + 14, - + 61 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4973
SELECT ALL + 1 + COALESCE ( 92, + 36 - CAST( NULL AS SIGNED ) + 55 + + 10 * - 69 DIV 64 + + 72, + 91 ) - - 41 DIV + - 27 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + 1 + COALESCE ( 92, + 36 - CAST ( NULL AS INTEGER ) + 55 + + 10 * - 69 / 64 + + 72, + 91 ) - - 41 / + - 27 AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT ALL 6 + + 59 / - + 62 - - CAST( NULL AS SIGNED ) / - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL 6 + + 59 / - + 62 - - CAST ( NULL AS INTEGER ) / - 12
----
NULL

query I rowsort
SELECT DISTINCT - 28 * - 9
----
252

query I rowsort
SELECT DISTINCT - 56 + - 64 + + 75
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4977
SELECT 6 DIV + - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-4977
SELECT 6 / + - COUNT ( * )
----
-6

query I rowsort
SELECT 77 * - + 43 AS col2
----
-3311

query II rowsort
SELECT 87 * - + 47 AS col1, - 93
----
-4089
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-4980
SELECT 32 + - + 53 AS col0, + COUNT( * ) col0
----
-21
1

skipif mysql # not compatible
query II rowsort label-4980
SELECT 32 + - + 53 AS col0, + COUNT ( * ) col0
----
-21
1

query I rowsort
SELECT - + 15 col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4982
SELECT + COUNT( * ) + CASE + 91 WHEN - CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) + - 13 * + 36 + ( - - 27 ) * + 56 THEN + + 80 WHEN - 54 THEN CASE + - 60 WHEN + AVG ( ALL + ( + 97 ) ) THEN - CAST( NULL AS SIGNED ) DIV - 8 WHEN SUM( ALL 40 ) THEN NULL END ELSE 5 DIV + 53 + 91 END
----
92

skipif mysql # not compatible
query I rowsort label-4982
SELECT + COUNT ( * ) + CASE + 91 WHEN - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) + - 13 * + 36 + ( - - 27 ) * + 56 THEN + + 80 WHEN - 54 THEN CASE + - 60 WHEN + AVG ( ALL + ( + 97 ) ) THEN - CAST ( NULL AS INTEGER ) / - 8 WHEN SUM ( ALL 40 ) THEN NULL END ELSE 5 / + 53 + 91 END
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT - MIN( DISTINCT 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT - MIN ( DISTINCT 26 ) AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4984
SELECT DISTINCT - CASE WHEN + CASE 82 WHEN + - 13 + + 94 THEN NULL WHEN - 53 THEN + CAST( 18 AS SIGNED ) * - COUNT( * ) + - 80 + + 87 + - 73 * - - AVG ( + 71 ) * CASE 13 - + 0 WHEN - 28 THEN 43 - 80 END + 19 WHEN + 26 + COUNT( * ) DIV + 79 THEN NULL END NOT IN ( 18 + + MAX( ALL 44 + - 60 ) * - 41 ) THEN 48 DIV COUNT( * ) ELSE 50 * 87 END
----
-4350

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT - CASE WHEN + CASE 82 WHEN + - 13 + + 94 THEN NULL WHEN - 53 THEN + CAST ( 18 AS INTEGER ) * - COUNT ( * ) + - 80 + + 87 + - 73 * - - AVG ( + 71 ) * CASE 13 - + 0 WHEN - 28 THEN 43 - 80 END + 19 WHEN + 26 + COUNT ( * ) / + 79 THEN NULL END NOT IN ( 18 + + MAX ( ALL 44 + - 60 ) * - 41 ) THEN 48 / COUNT ( * ) ELSE 50 * 87 END
----
-4350

query I rowsort
SELECT DISTINCT ( + + 50 ) AS col0
----
50

query II rowsort
SELECT - - 50 + - ( - 85 ) * 2 AS col0, 74 col0
----
220
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT DISTINCT - COUNT( * ) * - COUNT( + + 61 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT - COUNT ( * ) * - COUNT ( + + 61 ) AS col1
----
1

query II rowsort
SELECT - + 6 - 90 AS col2, + 3 * - 1 AS col0
----
-96
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4989
SELECT + - COUNT( * ) * CASE - - 33 WHEN - 85 THEN NULL WHEN + + CASE 59 WHEN + - 20 * + 57 + + 90 THEN NULL ELSE - - 10 END * + + 61 THEN + - 58 - 80 * + + COUNT( * ) ELSE 67 + + ( - 68 + - AVG ( 9 ) ) END * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT + - COUNT ( * ) * CASE - - 33 WHEN - 85 THEN NULL WHEN + + CASE 59 WHEN + - 20 * + 57 + + 90 THEN NULL ELSE - - 10 END * + + 61 THEN + - 58 - 80 * + + COUNT ( * ) ELSE 67 + + ( - 68 + - AVG ( 9 ) ) END * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4990
SELECT ALL - 95 * + CASE + 43 WHEN + AVG ( ALL + 12 ) THEN + 31 WHEN COUNT( * ) THEN + 39 END - 82 AS col2, + 22 AS col2
----
NULL
22

skipif mysql # not compatible
query II rowsort label-4990
SELECT ALL - 95 * + CASE + 43 WHEN + AVG ( ALL + 12 ) THEN + 31 WHEN COUNT ( * ) THEN + 39 END - 82 AS col2, + 22 AS col2
----
NULL
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT - - ( NULLIF ( + 16, + 81 + 64 ) ) + COALESCE ( - 92, + 89 ) + + + MAX( ALL + 66 ) * + COUNT( * ) + - 62
----
-72

skipif mysql # not compatible
query I rowsort label-4991
SELECT - - ( NULLIF ( + 16, + 81 + 64 ) ) + COALESCE ( - 92, + 89 ) + + + MAX ( ALL + 66 ) * + COUNT ( * ) + - 62
----
-72

query I rowsort
SELECT ALL - 45 * + 82 + + 7 - - 56 - 34
----
-3661

onlyif mysql # DIV for integer division: 
query I rowsort label-4993
SELECT + 10 DIV - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4993
SELECT + 10 / - 80 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4994
SELECT DISTINCT + COALESCE ( - SUM( DISTINCT + 55 ), - COALESCE ( 96, 34 DIV 96 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT + COALESCE ( - SUM ( DISTINCT + 55 ), - COALESCE ( 96, 34 / 96 ) )
----
-55

query II rowsort
SELECT DISTINCT + + ( - 63 ), + 83 + 49 AS col1
----
-63
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL + 81 * + - COUNT( * ) + 98 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL + 81 * + - COUNT ( * ) + 98 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT DISTINCT COUNT( DISTINCT - 62 ) * + 69 + + 23 + 60 * + + 33 * - 57 AS col0
----
-112768

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT COUNT ( DISTINCT - 62 ) * + 69 + + 23 + 60 * + + 33 * - 57 AS col0
----
-112768

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT COALESCE ( + - COALESCE ( - 24, - + COUNT( * ) ), 54, - 65 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4998
SELECT COALESCE ( + - COALESCE ( - 24, - + COUNT ( * ) ), 54, - 65 ) AS col0
----
24

query I rowsort
SELECT COALESCE ( ( - 64 ), + + 16 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT CASE - COUNT( * ) WHEN + + 33 + 68 THEN + 85 * 41 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT CASE - COUNT ( * ) WHEN + + 33 + 68 THEN + 85 * 41 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 80 * - 37 + - NULLIF ( + - 62, 8 ) - 23
----
-2921

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5002
SELECT + 48 DIV COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-5002
SELECT + 48 / COUNT ( * ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT + SUM( + 51 ) * + 80 AS col0
----
4080

skipif mysql # not compatible
query I rowsort label-5003
SELECT + SUM ( + 51 ) * + 80 AS col0
----
4080

onlyif mysql # aggregate syntax: 
query II rowsort label-5004
SELECT - 30 * 94 * + 91 AS col1, ( - 66 ) * - ( COUNT( * ) ) + - + ( 86 )
----
-256620
-20

skipif mysql # not compatible
query II rowsort label-5004
SELECT - 30 * 94 * + 91 AS col1, ( - 66 ) * - ( COUNT ( * ) ) + - + ( 86 )
----
-256620
-20

query II rowsort
SELECT ALL 24 * + 91 + 42 AS col2, + 67
----
2226
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT MIN( ALL + ( 85 ) )
----
85

skipif mysql # not compatible
query I rowsort label-5006
SELECT MIN ( ALL + ( 85 ) )
----
85

query II rowsort
SELECT ALL 17 * 79 + - 40 AS col1, ( + 32 ) * 90
----
1303
2880

query I rowsort
SELECT DISTINCT ( + 25 ) * 78 * - - 15 + - ( - 57 ) AS col1
----
29307

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5009
SELECT ALL - NULLIF ( - COUNT( DISTINCT + 47 ), + + 53 - - 41 ) * - 89 + + 68 DIV 47 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL - NULLIF ( - COUNT ( DISTINCT + 47 ), + + 53 - - 41 ) * - 89 + + 68 / 47 AS col0
----
-88

query I rowsort
SELECT + 94 * - 83
----
-7802

query I rowsort
SELECT + 58 + - - 99 AS col0
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL SUM( 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL SUM ( 30 ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT + CAST( NULL AS SIGNED ) + 73 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT + CAST ( NULL AS INTEGER ) + 73 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5014
SELECT ALL - 7 - + NULLIF ( - 77, + COUNT( * ) ) + - + 6 AS col2, + ( + - 85 ) + - 36 * - CASE - 2 WHEN - 16 * 42 * - 61 THEN 34 END
----
64
NULL

skipif mysql # not compatible
query II rowsort label-5014
SELECT ALL - 7 - + NULLIF ( - 77, + COUNT ( * ) ) + - + 6 AS col2, + ( + - 85 ) + - 36 * - CASE - 2 WHEN - 16 * 42 * - 61 THEN 34 END
----
64
NULL

query I rowsort
SELECT ALL - 1 * - + 51 + + ( 48 )
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5016
SELECT ALL - SUM( + 43 ) DIV - 65 * - ( - 86 ) * - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL - SUM ( + 43 ) / - 65 * - ( - 86 ) * - 85 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT - + 79 * + + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-5017
SELECT - + 79 * + + COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT - + 21 + + NULLIF ( 60, - COUNT( * ) / COUNT( 16 ) ) + + 60 * + NULLIF ( - - 80, 47 )
----
4839

skipif mysql # not compatible
query I rowsort label-5018
SELECT - + 21 + + NULLIF ( 60, - COUNT ( * ) / COUNT ( 16 ) ) + + 60 * + NULLIF ( - - 80, 47 )
----
4839

query I rowsort
SELECT + - 10 * - - 43 AS col0
----
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT - - 46 + + + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-5020
SELECT - - 46 + + + COUNT ( * )
----
47

query I rowsort
SELECT + + 35 + + 89 AS col2
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-5022
SELECT - + 30 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-5022
SELECT - + 30 / + 46
----
0

query I rowsort
SELECT - 67 * 4 + - 22 * ( + 10 ) + NULLIF ( 46, - 4 )
----
-442

query II rowsort
SELECT - 88, + 45 AS col0
----
-88
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT ALL + + COUNT( DISTINCT - + 22 ) + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL + + COUNT ( DISTINCT - + 22 ) + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( + 91 ) + 45 + + - 68 * - 44 AS col1
----
2946

query II rowsort
SELECT DISTINCT COALESCE ( + + 79, 16 ), - 45 AS col1
----
79
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT ALL - + MAX( ALL 7 ) + - - ( + 73 ) + + ( - CAST( NULL AS SIGNED ) ) / - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL - + MAX ( ALL 7 ) + - - ( + 73 ) + + ( - CAST ( NULL AS INTEGER ) ) / - 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5029
SELECT ALL - 60 AS col2, 4 * + COUNT( * ) AS col1
----
-60
4

skipif mysql # not compatible
query II rowsort label-5029
SELECT ALL - 60 AS col2, 4 * + COUNT ( * ) AS col1
----
-60
4

query I rowsort
SELECT + ( + - 57 )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5031
SELECT 45 * - COUNT( * ) + + - 10 + + 65 DIV - 43 col2
----
-56

skipif mysql # not compatible
query I rowsort label-5031
SELECT 45 * - COUNT ( * ) + + - 10 + + 65 / - 43 col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT COUNT( * ) * - 84 + + + 68
----
-16

skipif mysql # not compatible
query I rowsort label-5032
SELECT COUNT ( * ) * - 84 + + + 68
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5033
SELECT + COUNT( * ) DIV 85 * 89 + - 12 + 29 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5033
SELECT + COUNT ( * ) / 85 * 89 + - 12 + 29 AS col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT DISTINCT 45 DIV - 42 + + - 86 - ( - - 9 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT 45 / - 42 + + - 86 - ( - - 9 ) AS col2
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5035
SELECT + 30 DIV - 94 * 77
----
0

skipif mysql # not compatible
query I rowsort label-5035
SELECT + 30 / - 94 * 77
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5036
SELECT ALL + 45 AS col1, + 61 * - 40 * 5 + + 69 * 13 * ( - + 20 ) * - SUM( + 6 ) col1
----
45
95440

skipif mysql # not compatible
query II rowsort label-5036
SELECT ALL + 45 AS col1, + 61 * - 40 * 5 + + 69 * 13 * ( - + 20 ) * - SUM ( + 6 ) col1
----
45
95440

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT + COUNT( - 97 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5037
SELECT + COUNT ( - 97 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5038
SELECT ALL + CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5038
SELECT ALL + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT DISTINCT COUNT( * ) / + - ( + + CASE + 9 WHEN - COUNT( * ) + - ( + + 73 ) THEN + + 33 WHEN + 75 + + 70 + + NULLIF ( + MIN( 7 ), 60 ) THEN NULL END ) + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT COUNT ( * ) / + - ( + + CASE + 9 WHEN - COUNT ( * ) + - ( + + 73 ) THEN + + 33 WHEN + 75 + + 70 + + NULLIF ( + MIN ( 7 ), 60 ) THEN NULL END ) + + 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5040
SELECT ALL + 61 AS col0, - 17 + - COUNT( * ) AS col1
----
61
-18

skipif mysql # not compatible
query II rowsort label-5040
SELECT ALL + 61 AS col0, - 17 + - COUNT ( * ) AS col1
----
61
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5041
SELECT + ( CAST( NULL AS SIGNED ) ) * - 80 * - 93 + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5041
SELECT + ( CAST ( NULL AS INTEGER ) ) * - 80 * - 93 + + 99
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5042
SELECT DISTINCT + NULLIF ( + COUNT( * ), - 55 * + 32 * - - 42 * 10 / 15 ), 40 * 4 AS col1
----
1
160

skipif mysql # not compatible
query II rowsort label-5042
SELECT DISTINCT + NULLIF ( + COUNT ( * ), - 55 * + 32 * - - 42 * 10 / 15 ), 40 * 4 AS col1
----
1
160

onlyif mysql # DIV for integer division: 
query I rowsort label-5043
SELECT - COALESCE ( ( - 0 ), - 66 ) * - 0 DIV + - 2
----
0

skipif mysql # not compatible
query I rowsort label-5043
SELECT - COALESCE ( ( - 0 ), - 66 ) * - 0 / + - 2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT + 47 + + - 0 * 31 + SUM( ALL + CASE + 87 WHEN + 82 + + 65 THEN + + 60 ELSE 20 END )
----
67

skipif mysql # not compatible
query I rowsort label-5044
SELECT + 47 + + - 0 * 31 + SUM ( ALL + CASE + 87 WHEN + 82 + + 65 THEN + + 60 ELSE 20 END )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5045
SELECT + 64 DIV 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5045
SELECT + 64 / 96 AS col0
----
0

query I rowsort
SELECT + COALESCE ( 37, 63 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5047
SELECT 75 * + MAX( ( + + 22 ) ) * CAST( NULL AS SIGNED ) - - 14 * - 93 + + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT 75 * + MAX ( ( + + 22 ) ) * CAST ( NULL AS INTEGER ) - - 14 * - 93 + + 84 AS col2
----
NULL

query I rowsort
SELECT + 11 * - 11
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT - 37 * - + 72 + + - COUNT( * ) - + 14 - - - 6 * + 58 * 18 AS col2
----
-3615

skipif mysql # not compatible
query I rowsort label-5049
SELECT - 37 * - + 72 + + - COUNT ( * ) - + 14 - - - 6 * + 58 * 18 AS col2
----
-3615

query I rowsort
SELECT + ( - 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query III rowsort label-5051
SELECT ALL COUNT( * ) AS col0, 7 AS col1, - COALESCE ( + - 47, 53 * - 26 + - 85 + + 59, + COUNT( * ) ) * COUNT( * ) + - 29 + - 2 AS col1
----
1
7
16

skipif mysql # not compatible
query III rowsort label-5051
SELECT ALL COUNT ( * ) AS col0, 7 AS col1, - COALESCE ( + - 47, 53 * - 26 + - 85 + + 59, + COUNT ( * ) ) * COUNT ( * ) + - 29 + - 2 AS col1
----
1
7
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL - NULLIF ( - COUNT( * ), 70 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL - NULLIF ( - COUNT ( * ), 70 ) AS col1
----
1

query II rowsort
SELECT - - ( - 97 ) AS col1, 91 + 28 * - 82 + - 65 AS col2
----
-97
-2270

query I rowsort
SELECT DISTINCT - 61 * - + 38 AS col1
----
2318

query II rowsort
SELECT DISTINCT 32 AS col0, 66 * + - 85
----
32
-5610

query I rowsort
SELECT COALESCE ( + 17, + 2 )
----
17