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

query I rowsort
SELECT 67 * - + 58 AS col2
----
-3886

query I rowsort
SELECT DISTINCT 68 * - ( 74 ) * - 38
----
191216

query II rowsort
SELECT - 10 AS col1, 76
----
-10
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5060
SELECT ALL AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2, 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-5060
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2, 78
----
NULL
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5061
SELECT CAST( NULL AS SIGNED ) AS col1, + 16 + + + COUNT( * ) * - 30 DIV 29
----
NULL
15

skipif mysql # not compatible
query II rowsort label-5061
SELECT CAST ( NULL AS INTEGER ) AS col1, + 16 + + + COUNT ( * ) * - 30 / 29
----
NULL
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5062
SELECT ALL 39 + 99, - COALESCE ( - ( + - 20 ), - 18 DIV - 68, - + 33 ) * - COUNT( * ) * - - 14 * - - 52 * - 16 + + ( 69 ) * + - MIN( ALL + CAST( 64 AS SIGNED ) ) * + 10 + 86 AS col2
----
138
-277034

skipif mysql # not compatible
query II rowsort label-5062
SELECT ALL 39 + 99, - COALESCE ( - ( + - 20 ), - 18 / - 68, - + 33 ) * - COUNT ( * ) * - - 14 * - - 52 * - 16 + + ( 69 ) * + - MIN ( ALL + CAST ( 64 AS INTEGER ) ) * + 10 + 86 AS col2
----
138
-277034

query I rowsort
SELECT ALL - + 32 + - 91
----
-123

query I rowsort
SELECT DISTINCT ( 35 ) + + - NULLIF ( - 46, 3 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT 70 + - NULLIF ( + COUNT( * ), + 51 * - COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-5065
SELECT 70 + - NULLIF ( + COUNT ( * ), + 51 * - COUNT ( * ) )
----
69

query II rowsort
SELECT - + 62, + ( + - 11 ) * + + 64 AS col0
----
-62
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT ALL + 52 + + + 24 + + COUNT( * ) + - + COUNT( * ) * + 48 + + - 1
----
28

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL + 52 + + + 24 + + COUNT ( * ) + - + COUNT ( * ) * + 48 + + - 1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5068
SELECT - 1 col1, COUNT( - CAST( - - 81 AS SIGNED ) ) * + ( 44 )
----
-1
44

skipif mysql # not compatible
query II rowsort label-5068
SELECT - 1 col1, COUNT ( - CAST ( - - 81 AS INTEGER ) ) * + ( 44 )
----
-1
44

query I rowsort
SELECT 97 + - ( - + 65 ) AS col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT DISTINCT - 69 + - - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT - 69 + - - COUNT ( * )
----
-68

query II rowsort
SELECT ALL 89 + - ( - 85 ) col1, 93 * 9 AS col2
----
174
837

query I rowsort
SELECT 87 * 93
----
8091

query I rowsort
SELECT DISTINCT - 69 * 4 AS col0
----
-276

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

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT - COUNT ( * ) - - + 17 * + 19 AS col2
----
322

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT 88 * - + 53 - - COUNT( * )
----
-4663

skipif mysql # not compatible
query I rowsort label-5075
SELECT 88 * - + 53 - - COUNT ( * )
----
-4663

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5076
SELECT + 34 DIV + + 85 * + - 7 * + 74 - + COUNT( * ) AS col2, - 99 + + + ( + COUNT( * ) )
----
-1
-98

skipif mysql # not compatible
query II rowsort label-5076
SELECT + 34 / + + 85 * + - 7 * + 74 - + COUNT ( * ) AS col2, - 99 + + + ( + COUNT ( * ) )
----
-1
-98

query I rowsort
SELECT 87 - + 36
----
51

query I rowsort
SELECT 90 * 21 AS col1
----
1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5079
SELECT ALL + COUNT( * ) * + NULLIF ( - + 26, - 11 ) * - 30 DIV + + MIN( DISTINCT + 29 ) col0
----
26

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + COUNT ( * ) * + NULLIF ( - + 26, - 11 ) * - 30 / + + MIN ( DISTINCT + 29 ) col0
----
26

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

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT + COUNT ( * ) * + 27 * - COUNT ( * ) AS col2
----
-27

query I rowsort
SELECT 15 * + 33 col1
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT - 96 * - + 69 * COUNT( * ) - - - 54
----
6570

skipif mysql # not compatible
query I rowsort label-5082
SELECT - 96 * - + 69 * COUNT ( * ) - - - 54
----
6570

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT - - ( - 73 ) * + + 73 + + COUNT( - 24 ) AS col2
----
-5328

skipif mysql # not compatible
query I rowsort label-5084
SELECT - - ( - 73 ) * + + 73 + + COUNT ( - 24 ) AS col2
----
-5328

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

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

query I rowsort
SELECT 84 + + 80 col1
----
164

query I rowsort
SELECT + 10 - + + 21 AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5088
SELECT ALL - ( COUNT( * ) ) DIV + 48 * + 34 DIV - 94 DIV - + NULLIF ( 50, + 5 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL - ( COUNT ( * ) ) / + 48 * + 34 / - 94 / - + NULLIF ( 50, + 5 ) AS col1
----
0

query I rowsort
SELECT DISTINCT CASE + - 29 WHEN - - 16 THEN - 21 END + 21 + - + 89
----
NULL

query I rowsort
SELECT ALL - + 26 + 0 * + 60 + ( ( 55 ) )
----
29

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

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

query I rowsort
SELECT DISTINCT 2 + 6 AS col2
----
8

query I rowsort
SELECT ALL - 58 + + 91 AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5094
SELECT - COUNT( * ) * - CASE - 81 WHEN + + 16 * CAST( NULL AS SIGNED ) THEN - COUNT( * ) ELSE NULL END * - 22 - + 51 * - MIN( ALL + 51 ) + - 40 * - 93 + - MAX( - 75 ) + - MIN( ALL - ( 44 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT - COUNT ( * ) * - CASE - 81 WHEN + + 16 * CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) ELSE NULL END * - 22 - + 51 * - MIN ( ALL + 51 ) + - 40 * - 93 + - MAX ( - 75 ) + - MIN ( ALL - ( 44 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT DISTINCT + MIN( - 36 ) + - - 54
----
18

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT + MIN ( - 36 ) + - - 54
----
18

query I rowsort
SELECT DISTINCT - 56 + 21 AS col1
----
-35

query I rowsort
SELECT ALL 73 + 66 + + + 79 + - - 65 * - - 14 + - + NULLIF ( - 40, 17 ) * 96 AS col2
----
4968

query I rowsort
SELECT ALL 86 + - 31
----
55

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

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

query I rowsort
SELECT ALL CASE + 69 WHEN AVG ( + 1 ) / - COALESCE ( + 77, + 90 ) THEN 45 END
----
NULL

query I rowsort
SELECT ( + 61 ) * + 7 * + 41 AS col2
----
17507

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL - COUNT( DISTINCT 14 ) - + 4 * COUNT( * ) * - 50 AS col0
----
199

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL - COUNT ( DISTINCT 14 ) - + 4 * COUNT ( * ) * - 50 AS col0
----
199

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT + 67 DIV - + 90 + + 45 DIV + 81 + - 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-5105
SELECT + 67 / - + 90 + + 45 / + 81 + - 27 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-5106
SELECT 96 + - - COUNT( * ) + - 38 + + - 38 * COUNT( * ) + - 25 col2, + 17
----
-4
17

skipif mysql # not compatible
query II rowsort label-5106
SELECT 96 + - - COUNT ( * ) + - 38 + + - 38 * COUNT ( * ) + - 25 col2, + 17
----
-4
17

query I rowsort
SELECT 11 * - 41 - + 86 + 28
----
-509

query I rowsort
SELECT ALL + 20 * + 78 * - 75 col2
----
-117000

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ( + 39 ) + - 15 * + CASE 52 WHEN - 68 + + COUNT( * ) + + NULLIF ( + 58, COALESCE ( - 13, + 23, - - 52 + - COUNT( * ), - - 40 + - 17 + - 2 + - 64 * MAX( ALL 61 ) ) + ( 93 ) ) + 31 THEN 45 + ( 18 ) * + 81 WHEN + 37 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5109
SELECT ( + 39 ) + - 15 * + CASE 52 WHEN - 68 + + COUNT ( * ) + + NULLIF ( + 58, COALESCE ( - 13, + 23, - - 52 + - COUNT ( * ), - - 40 + - 17 + - 2 + - 64 * MAX ( ALL 61 ) ) + ( 93 ) ) + 31 THEN 45 + ( 18 ) * + 81 WHEN + 37 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 11 * 75 + 13 * - 68 + + 91
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT - 64 * + + CASE 85 WHEN - ( + 41 ) + - 56 + + NULLIF ( 80, MIN( - 30 ) ) + - - ( - - ( + 4 ) ) * + - 16 THEN - 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT - 64 * + + CASE 85 WHEN - ( + 41 ) + - 56 + + NULLIF ( 80, MIN ( - 30 ) ) + - - ( - - ( + 4 ) ) * + - 16 THEN - 66 END
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5114
SELECT DISTINCT - 44 * - 15 + + NULLIF ( + 91, + + 23 + AVG ( DISTINCT - 29 ) ) * - CASE + 66 WHEN + + 31 * 94 THEN + + 22 * + 76 / 35 + + - COUNT( * ) WHEN 57 + - CAST( NULL AS DECIMAL ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT - 44 * - 15 + + NULLIF ( + 91, + + 23 + AVG ( DISTINCT - 29 ) ) * - CASE + 66 WHEN + + 31 * 94 THEN + + 22 * + 76 / 35 + + - COUNT ( * ) WHEN 57 + - CAST ( NULL AS REAL ) THEN NULL END
----
NULL

query I rowsort
SELECT - 71 + - 61 AS col0
----
-132

query I rowsort
SELECT DISTINCT + 94 * + ( 29 ) * 20 + 12 AS col2
----
54532

query I rowsort
SELECT ALL + 67 + + + NULLIF ( 37, 28 )
----
104

query I rowsort
SELECT DISTINCT - + 24 + + + 0 + + 44
----
20

query I rowsort
SELECT ALL + + 61 * 33 + - - 54
----
2067

onlyif mysql # aggregate syntax: 
query II rowsort label-5120
SELECT ALL COUNT( ALL + - 62 ) + + 67 + + 60 + 90 * ( COUNT( * ) ) * - 32, 74 AS col2
----
-2752
74

skipif mysql # not compatible
query II rowsort label-5120
SELECT ALL COUNT ( ALL + - 62 ) + + 67 + + 60 + 90 * ( COUNT ( * ) ) * - 32, 74 AS col2
----
-2752
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5121
SELECT DISTINCT + + 48 + - 83 + + NULLIF ( + ( - 20 ), + CASE 52 WHEN + + NULLIF ( 27, + + 63 * + + ( - + 30 ) ) * + 72 THEN - + 60 END ) + + COUNT( * ) DIV CASE + 68 WHEN + SUM( DISTINCT 90 ) THEN ( 3 ) ELSE + 31 END * + 33 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT + + 48 + - 83 + + NULLIF ( + ( - 20 ), + CASE 52 WHEN + + NULLIF ( 27, + + 63 * + + ( - + 30 ) ) * + 72 THEN - + 60 END ) + + COUNT ( * ) / CASE + 68 WHEN + SUM ( DISTINCT 90 ) THEN ( 3 ) ELSE + 31 END * + 33 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-5122
SELECT ALL - COUNT( * ), + 31 + + 7 AS col2
----
-1
38

skipif mysql # not compatible
query II rowsort label-5122
SELECT ALL - COUNT ( * ), + 31 + + 7 AS col2
----
-1
38

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

query I rowsort
SELECT ALL + 27 + - - CASE + 58 WHEN + 81 THEN NULL ELSE - 44 END AS col2
----
-17

query I rowsort
SELECT - + 46 - + - 92 AS col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT ALL - CAST( NULL AS SIGNED ) / - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL - CAST ( NULL AS INTEGER ) / - 30
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5127
SELECT DISTINCT + NULLIF ( - + 64, + 67 ) DIV - ( COUNT( * ) ) col2
----
64

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT + NULLIF ( - + 64, + 67 ) / - ( COUNT ( * ) ) col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT + CASE WHEN 74 NOT IN ( COUNT( 43 ) ) THEN 64 - 15 END
----
49

skipif mysql # not compatible
query I rowsort label-5128
SELECT + CASE WHEN 74 NOT IN ( COUNT ( 43 ) ) THEN 64 - 15 END
----
49

query I rowsort
SELECT + 76 * - - 67 col1
----
5092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5130
SELECT ALL - COUNT( ALL + 87 ) DIV - COUNT( ALL - - 24 )
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT ALL CASE COUNT( * ) WHEN COUNT( * ) THEN - + ( - 57 ) ELSE - - NULLIF ( - 25, + + 81 ) - 86 END * + - 35 AS col0
----
-1995

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL CASE COUNT ( * ) WHEN COUNT ( * ) THEN - + ( - 57 ) ELSE - - NULLIF ( - 25, + + 81 ) - 86 END * + - 35 AS col0
----
-1995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5132
SELECT + CAST( - 72 AS SIGNED ) * 90 AS col1
----
-6480

skipif mysql # not compatible
query I rowsort label-5132
SELECT + CAST ( - 72 AS INTEGER ) * 90 AS col1
----
-6480

query II rowsort
SELECT DISTINCT ( - + 52 ) AS col2, 33 - - 84 - 55
----
-52
62

query I rowsort
SELECT DISTINCT ( NULLIF ( 3, - 42 * + 49 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT - NULLIF ( CASE - 25 WHEN + - 90 + + COUNT( * ) THEN NULL WHEN + 26 THEN + 67 ELSE NULL END, + - ( - 11 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT - NULLIF ( CASE - 25 WHEN + - 90 + + COUNT ( * ) THEN NULL WHEN + 26 THEN + 67 ELSE NULL END, + - ( - 11 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT ALL COUNT( * ) * - 69 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL COUNT ( * ) * - 69 AS col0
----
-69

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

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

query I rowsort
SELECT + 48 * + ( + + 45 )
----
2160

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

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

query I rowsort
SELECT + 41 + + - 89
----
-48

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT + 12 * - - 3 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT + 12 * - - 3 / - 45
----
0

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

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

query II rowsort
SELECT ( + + 78 ), 11 col2
----
78
11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5146
SELECT ALL + 16 * - CASE - 18 WHEN + 69 THEN 56 DIV + COUNT( * ) + + 73 * 91 ELSE - 29 END + + + 9 AS col2
----
473

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL + 16 * - CASE - 18 WHEN + 69 THEN 56 / + COUNT ( * ) + + 73 * 91 ELSE - 29 END + + + 9 AS col2
----
473

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT + 46 - + - 15 + - 33 * - - 92 - + SUM( ALL + + 71 ) AS col1
----
-3046

skipif mysql # not compatible
query I rowsort label-5147
SELECT + 46 - + - 15 + - 33 * - - 92 - + SUM ( ALL + + 71 ) AS col1
----
-3046

query I rowsort
SELECT - 51 * - 67
----
3417

query I rowsort
SELECT DISTINCT 57 * 5
----
285

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5151
SELECT + NULLIF ( 80, - 83 ) DIV COUNT( * ), + 28 * 71 DIV - 6 + + + 3 AS col1
----
80
-328

skipif mysql # not compatible
query II rowsort label-5151
SELECT + NULLIF ( 80, - 83 ) / COUNT ( * ), + 28 * 71 / - 6 + + + 3 AS col1
----
80
-328

query I rowsort
SELECT + 31 * - 35
----
-1085

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT DISTINCT - 80 * + COUNT( * ) * - - 43 + - COALESCE ( 24, + 52 )
----
-3464

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT - 80 * + COUNT ( * ) * - - 43 + - COALESCE ( 24, + 52 )
----
-3464

query II rowsort
SELECT ALL 5 * + 81 AS col0, 70
----
405
70

query I rowsort
SELECT - 45 - 11 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT ALL 46 * + COUNT( * ) + - 67 * 37 + - + COALESCE ( - 36, - + 28 ) * + 81
----
483

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL 46 * + COUNT ( * ) + - 67 * 37 + - + COALESCE ( - 36, - + 28 ) * + 81
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT + CASE + 47 WHEN + + MIN( + 40 ) THEN NULL WHEN + 69 THEN - SUM( DISTINCT - + 59 ) - COUNT( * ) WHEN - 53 + - 27 THEN - 90 / - 43 * + + 71 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT + CASE + 47 WHEN + + MIN ( + 40 ) THEN NULL WHEN + 69 THEN - SUM ( DISTINCT - + 59 ) - COUNT ( * ) WHEN - 53 + - 27 THEN - 90 / - 43 * + + 71 ELSE NULL END
----
NULL

query I rowsort
SELECT + - 75 + COALESCE ( - 98, - 44 + + - 0 ) * - 40 AS col1
----
3845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5159
SELECT ALL - + 83 * + CAST( - 68 AS SIGNED ) - - + ( + 3 )
----
5647

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL - + 83 * + CAST ( - 68 AS INTEGER ) - - + ( + 3 )
----
5647

query I rowsort
SELECT - + 1 + + 58 * + 37 col0
----
2145

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

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

query I rowsort
SELECT - 47 * + 38 AS col0
----
-1786

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5163
SELECT + + 74 * + + MAX( 83 ) + - 81 DIV 19 AS col1
----
6138

skipif mysql # not compatible
query I rowsort label-5163
SELECT + + 74 * + + MAX ( 83 ) + - 81 / 19 AS col1
----
6138

query I rowsort
SELECT ALL - + 91 * ( - ( - 97 ) )
----
-8827

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

skipif mysql # not compatible
query I rowsort label-5165
SELECT - 74 + + COUNT ( * ) + - 78 AS col0
----
-151

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT DISTINCT - - 41 * - COALESCE ( + NULLIF ( 46, - - 39 ), - ( - - 8 ) * - NULLIF ( - - 15, - NULLIF ( - 79, - - 97 - - 1 ) ) * + + 37, 11 * - 8 DIV + 29 + + + 28 )
----
-1886

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT - - 41 * - COALESCE ( + NULLIF ( 46, - - 39 ), - ( - - 8 ) * - NULLIF ( - - 15, - NULLIF ( - 79, - - 97 - - 1 ) ) * + + 37, 11 * - 8 / + 29 + + + 28 )
----
-1886

query II rowsort
SELECT - 80 AS col2, + 42 + - 59
----
-80
-17

query I rowsort
SELECT - 30 + + NULLIF ( + + 47, - 90 * 48 ) AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5169
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + 40
----
NULL
40

skipif mysql # not compatible
query II rowsort label-5169
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 40
----
NULL
40

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

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

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

skipif mysql # not compatible
query I rowsort label-5171
SELECT + 48 / + 83
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5172
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 95 AS col2
----
NULL
95

skipif mysql # not compatible
query II rowsort label-5172
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 95 AS col2
----
NULL
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5173
SELECT 23 AS col2, - ( - 65 ) - + COUNT( * ) + + - 53 + - 51 AS col1
----
23
-40

skipif mysql # not compatible
query II rowsort label-5173
SELECT 23 AS col2, - ( - 65 ) - + COUNT ( * ) + + - 53 + - 51 AS col1
----
23
-40

query I rowsort
SELECT + 24 * - - 32 col0
----
768

onlyif mysql # DIV for integer division: 
query II rowsort label-5175
SELECT DISTINCT - ( - 51 ) DIV - + 20, 48 * - 14 col1
----
-2
-672

skipif mysql # not compatible
query II rowsort label-5175
SELECT DISTINCT - ( - 51 ) / - + 20, 48 * - 14 col1
----
-2
-672

query I rowsort
SELECT - 94 * 32
----
-3008

query I rowsort
SELECT + 0 + + 21
----
21

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5180
SELECT DISTINCT + MAX( ALL + 50 ) + + COUNT( * ) col2, + 64 col2
----
51
64

skipif mysql # not compatible
query II rowsort label-5180
SELECT DISTINCT + MAX ( ALL + 50 ) + + COUNT ( * ) col2, + 64 col2
----
51
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT 17 * - + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT 17 * - + COUNT ( * ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT ALL CASE + - 77 WHEN 42 * + - COALESCE ( + + 92, 81 * - 24 + + 9 + + - 12 ) THEN - SUM( DISTINCT - 29 ) END + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL CASE + - 77 WHEN 42 * + - COALESCE ( + + 92, 81 * - 24 + + 9 + + - 12 ) THEN - SUM ( DISTINCT - 29 ) END + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + ( - 63 ) + + + 26 + + 10 * 47 + + COALESCE ( - 68, - 11 ) AS col1
----
365

query I rowsort
SELECT 41 * - + ( 47 ) AS col0
----
-1927

query I rowsort
SELECT 48 * ( 18 ) * 75 + - 88
----
64712

query I rowsort
SELECT DISTINCT 81 * - + 44 AS col0
----
-3564

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT + 33 * COUNT( * ) * + - 76 - - 2 col1
----
-2506

skipif mysql # not compatible
query I rowsort label-5188
SELECT + 33 * COUNT ( * ) * + - 76 - - 2 col1
----
-2506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT 31 + + NULLIF ( + - 64, CASE - - NULLIF ( CASE WHEN NOT + 64 BETWEEN + - 18 * - 21 + + CAST( - + 3 AS SIGNED ) AND NULL THEN NULL ELSE + 81 * 71 + - 93 END, + 84 ) WHEN + - 11 + + 0 THEN 47 WHEN - 75 THEN NULL WHEN + 4 + - 76 * + 56 THEN NULL ELSE + 67 * + 96 END + + 26 ) - - 81
----
48

skipif mysql # not compatible
query I rowsort label-5189
SELECT 31 + + NULLIF ( + - 64, CASE - - NULLIF ( CASE WHEN NOT + 64 BETWEEN + - 18 * - 21 + + CAST ( - + 3 AS INTEGER ) AND NULL THEN NULL ELSE + 81 * 71 + - 93 END, + 84 ) WHEN + - 11 + + 0 THEN 47 WHEN - 75 THEN NULL WHEN + 4 + - 76 * + 56 THEN NULL ELSE + 67 * + 96 END + + 26 ) - - 81
----
48

query I rowsort
SELECT 85 * - 84 - + 67 + 54
----
-7153

query I rowsort
SELECT ALL 34 + 14 AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5192
SELECT DISTINCT - SUM( 24 ) * - + CAST( + 42 AS SIGNED )
----
1008

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT - SUM ( 24 ) * - + CAST ( + 42 AS INTEGER )
----
1008

query I rowsort
SELECT DISTINCT - ( + 2 ) col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5194
SELECT DISTINCT 94 + + COALESCE ( - MIN( + 99 ), - SUM( CASE - 98 WHEN + 75 THEN - 37 ELSE NULL END ) * + - 21 ) * + CASE 99 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - - 83 * - - 4 THEN + 74 END col2, + 8 col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-5194
SELECT DISTINCT 94 + + COALESCE ( - MIN ( + 99 ), - SUM ( CASE - 98 WHEN + 75 THEN - 37 ELSE NULL END ) * + - 21 ) * + CASE 99 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 83 * - - 4 THEN + 74 END col2, + 8 col1
----
NULL
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5195
SELECT DISTINCT 68 * + CASE - - 54 WHEN CAST( + + MAX( ALL + 34 ) AS SIGNED ) / 33 / COALESCE ( - - 16, + 28 * - + ( 95 ) - NULLIF ( + + 85, 59 ) + - 39 - + - 80 * + 78 ) THEN - 91 + COUNT( + CAST( NULL AS SIGNED ) ) WHEN - 95 * 78 THEN NULL WHEN 86 THEN NULL ELSE NULL END / - CASE + 93 + 33 * + COALESCE ( + 85 * - 47, 99 * 49 + - CAST( NULL AS SIGNED ), NULLIF ( 80, COUNT( * ) ) ) WHEN 88 + 62 THEN NULL ELSE COUNT( * ) END + - COUNT( * ) * + MIN( + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT 68 * + CASE - - 54 WHEN CAST ( + + MAX ( ALL + 34 ) AS INTEGER ) / 33 / COALESCE ( - - 16, + 28 * - + ( 95 ) - NULLIF ( + + 85, 59 ) + - 39 - + - 80 * + 78 ) THEN - 91 + COUNT ( + CAST ( NULL AS INTEGER ) ) WHEN - 95 * 78 THEN NULL WHEN 86 THEN NULL ELSE NULL END / - CASE + 93 + 33 * + COALESCE ( + 85 * - 47, 99 * 49 + - CAST ( NULL AS INTEGER ), NULLIF ( 80, COUNT ( * ) ) ) WHEN 88 + 62 THEN NULL ELSE COUNT ( * ) END + - COUNT ( * ) * + MIN ( + 32 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5196
SELECT + - 63 DIV - CAST( + + ( - + 66 ) AS SIGNED ) + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5196
SELECT + - 63 / - CAST ( + + ( - + 66 ) AS INTEGER ) + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL + 60 - 72
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-5198
SELECT ALL + 1 DIV - ( + - 21 )
----
0

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + 1 / - ( + - 21 )
----
0

query I rowsort
SELECT + 56 + - + 83 - - 56
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - 65 * - COUNT( * ) - + + ( - 66 )
----
131

skipif mysql # not compatible
query I rowsort label-5200
SELECT - 65 * - COUNT ( * ) - + + ( - 66 )
----
131

query I rowsort
SELECT - 78 + + + 41 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT 98 * - - MAX( - - 69 )
----
6762

skipif mysql # not compatible
query I rowsort label-5202
SELECT 98 * - - MAX ( - - 69 )
----
6762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5203
SELECT ALL 53 * CAST( - NULLIF ( + 51, + 1 * - COALESCE ( + - 70, - 85 ) + - COUNT( * ) ) AS SIGNED ) + + NULLIF ( - + 74, ( - 0 ) ) * + 95
----
-9733

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL 53 * CAST ( - NULLIF ( + 51, + 1 * - COALESCE ( + - 70, - 85 ) + - COUNT ( * ) ) AS INTEGER ) + + NULLIF ( - + 74, ( - 0 ) ) * + 95
----
-9733

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

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

query I rowsort
SELECT + 31 * 79 AS col1
----
2449

query II rowsort
SELECT ALL - 18 AS col0, - 37
----
-18
-37

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

skipif mysql # not compatible
query I rowsort label-5207
SELECT + 45 * - 42 * - + COUNT ( * ) * - 73 AS col0
----
-137970

query I rowsort
SELECT ALL - 33 * + 25 + + - 5 col1
----
-830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5209
SELECT ALL + 75 * + CASE + - NULLIF ( 41, SUM( 68 ) * + CAST( - 83 AS SIGNED ) + - 31 + - + 53 * CAST( COUNT( * ) AS SIGNED ) + + 25 * - - 28 / - + MIN( ALL + 75 ) ) WHEN + 27 * + 6 * - 39 THEN - - 41 / + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL + 75 * + CASE + - NULLIF ( 41, SUM ( 68 ) * + CAST ( - 83 AS INTEGER ) + - 31 + - + 53 * CAST ( COUNT ( * ) AS INTEGER ) + + 25 * - - 28 / - + MIN ( ALL + 75 ) ) WHEN + 27 * + 6 * - 39 THEN - - 41 / + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 24 * ( - + 23 )
----
-552

query I rowsort
SELECT - 11 * - - 69 AS col1
----
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT SUM( - + 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-5212
SELECT SUM ( - + 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT MAX( DISTINCT - 98 ) * - 94
----
9212

skipif mysql # not compatible
query I rowsort label-5213
SELECT MAX ( DISTINCT - 98 ) * - 94
----
9212

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT ALL COUNT( * ) + + 85 * - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL COUNT ( * ) + + 85 * - COUNT ( * )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT ALL - ( + - 49 ) * - 15 - - 46 - CAST( 93 AS SIGNED )
----
-782

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - ( + - 49 ) * - 15 - - 46 - CAST ( 93 AS INTEGER )
----
-782

query II rowsort
SELECT DISTINCT 95 AS col0, 83
----
95
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT DISTINCT + COUNT( * ) + - 84 + + 31 + - - 1
----
-51

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT + COUNT ( * ) + - 84 + + 31 + - - 1
----
-51

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

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

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

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

query II rowsort
SELECT DISTINCT 61 AS col2, - 24 * 19 AS col1
----
61
-456

onlyif mysql # aggregate syntax: 
query II rowsort label-5221
SELECT ALL 12 AS col1, + 51 + ( - COUNT( * ) )
----
12
50

skipif mysql # not compatible
query II rowsort label-5221
SELECT ALL 12 AS col1, + 51 + ( - COUNT ( * ) )
----
12
50

query I rowsort
SELECT 25 + + 54 AS col0
----
79

onlyif mysql # aggregate syntax: 
query III rowsort label-5223
SELECT DISTINCT + 17 + COUNT( * ) + COUNT( * ) + + COUNT( * ) * + + COALESCE ( - ( + - 31 ), + 95, + COUNT( * ) * 65 ) - + 90 AS col1, - 92 AS col0, ( + 97 )
----
-40
-92
97

skipif mysql # not compatible
query III rowsort label-5223
SELECT DISTINCT + 17 + COUNT ( * ) + COUNT ( * ) + + COUNT ( * ) * + + COALESCE ( - ( + - 31 ), + 95, + COUNT ( * ) * 65 ) - + 90 AS col1, - 92 AS col0, ( + 97 )
----
-40
-92
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5224
SELECT - 22, - COUNT( * ) * + 23 AS col2
----
-22
-23

skipif mysql # not compatible
query II rowsort label-5224
SELECT - 22, - COUNT ( * ) * + 23 AS col2
----
-22
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5225
SELECT ALL - 76, - MIN( DISTINCT + COALESCE ( - 78, - 9 + 25 - - 65 + - 38 DIV - 45 ) ) + + - 9 AS col2
----
-76
69

skipif mysql # not compatible
query II rowsort label-5225
SELECT ALL - 76, - MIN ( DISTINCT + COALESCE ( - 78, - 9 + 25 - - 65 + - 38 / - 45 ) ) + + - 9 AS col2
----
-76
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5226
SELECT ALL 69 * + - 85 col0, MIN( 91 )
----
-5865
91

skipif mysql # not compatible
query II rowsort label-5226
SELECT ALL 69 * + - 85 col0, MIN ( 91 )
----
-5865
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5227
SELECT DISTINCT - - 17 - - MIN( 0 ) DIV + 82, COUNT( * ) col2
----
17
1

skipif mysql # not compatible
query II rowsort label-5227
SELECT DISTINCT - - 17 - - MIN ( 0 ) / + 82, COUNT ( * ) col2
----
17
1

query II rowsort
SELECT + 24, + 81 * - 87 AS col2
----
24
-7047

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5230
SELECT 15 * + CAST( NULL AS SIGNED ) + 2 * - 3 * 72 * + 28 / + ( - 15 ) + + + 21, 69 AS col0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-5230
SELECT 15 * + CAST ( NULL AS INTEGER ) + 2 * - 3 * 72 * + 28 / + ( - 15 ) + + + 21, 69 AS col0
----
NULL
69

query II rowsort
SELECT 3 AS col0, 41 AS col1
----
3
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT - ( - 84 ) - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5232
SELECT - ( - 84 ) - COUNT ( * ) AS col0
----
83

query I rowsort
SELECT 77 * + 31
----
2387

query I rowsort
SELECT - 93 - - ( + 63 )
----
-30

query II rowsort
SELECT + 75 AS col0, 42
----
75
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT + - CASE - + 49 WHEN - 96 * - 35 THEN NULL WHEN - 84 THEN - 98 END * - 99 + + 18 + 66 * + + 96 / + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT + - CASE - + 49 WHEN - 96 * - 35 THEN NULL WHEN - 84 THEN - 98 END * - 99 + + 18 + 66 * + + 96 / + ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL - 48 - - COUNT( * ) * - 78 AS col0
----
-126

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL - 48 - - COUNT ( * ) * - 78 AS col0
----
-126

query I rowsort
SELECT ALL + - ( + + 20 ) * - 3
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5239
SELECT DISTINCT - - 68 col2, + COUNT( ( 54 ) ) * - 50
----
68
-50

skipif mysql # not compatible
query II rowsort label-5239
SELECT DISTINCT - - 68 col2, + COUNT ( ( 54 ) ) * - 50
----
68
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-5240
SELECT ALL - - 12 AS col2, COUNT( DISTINCT - 82 ) * COUNT( * ) - + - 58 AS col1
----
12
59

skipif mysql # not compatible
query II rowsort label-5240
SELECT ALL - - 12 AS col2, COUNT ( DISTINCT - 82 ) * COUNT ( * ) - + - 58 AS col1
----
12
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5241
SELECT ALL + ( + 5 ) * COUNT( * ) * - - 66 AS col1, - SUM( ALL - + 80 ) AS col1
----
330
80

skipif mysql # not compatible
query II rowsort label-5241
SELECT ALL + ( + 5 ) * COUNT ( * ) * - - 66 AS col1, - SUM ( ALL - + 80 ) AS col1
----
330
80

query I rowsort
SELECT 23 - 43 - - - 69
----
-89

query I rowsort
SELECT ALL - - ( - 52 ) AS col2
----
-52

query II rowsort
SELECT + + 10 AS col1, + 7 + + + 42 - - - 35 AS col1
----
10
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT 53 * - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT 53 * - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT ALL - NULLIF ( - - 55, + CAST( NULL AS SIGNED ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL - NULLIF ( - - 55, + CAST ( NULL AS INTEGER ) ) AS col0
----
-55

query I rowsort
SELECT 2 + - 42 + + 0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-5249
SELECT - CASE - + 51 WHEN - AVG ( ALL + 39 ) - - - 17 * + 65 / + 71 + MAX( ALL 66 ) THEN - + 71 WHEN - - 99 * - - AVG ( DISTINCT + + 29 ) * 16 - + + 20 THEN NULL END AS col0, - 22 * - + 12 + - + 90 + + ( + 44 ) * - 69 AS col2
----
NULL
-2862

skipif mysql # not compatible
query II rowsort label-5249
SELECT - CASE - + 51 WHEN - AVG ( ALL + 39 ) - - - 17 * + 65 / + 71 + MAX ( ALL 66 ) THEN - + 71 WHEN - - 99 * - - AVG ( DISTINCT + + 29 ) * 16 - + + 20 THEN NULL END AS col0, - 22 * - + 12 + - + 90 + + ( + 44 ) * - 69 AS col2
----
NULL
-2862

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT 0 + + 11 * COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5250
SELECT 0 + + 11 * COUNT ( * ) AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5251
SELECT 35 - + + COALESCE ( + 77, + 34 * - 84, - CAST( + COUNT( * ) AS SIGNED ) )
----
-42

skipif mysql # not compatible
query I rowsort label-5251
SELECT 35 - + + COALESCE ( + 77, + 34 * - 84, - CAST ( + COUNT ( * ) AS INTEGER ) )
----
-42

query II rowsort
SELECT ALL 7 * + - 33 * + + 12 AS col1, + 23 AS col1
----
-2772
23

query I rowsort
SELECT ALL 18 + 88
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5254
SELECT DISTINCT NULLIF ( - MAX( DISTINCT 35 ), - 21 * COUNT( * ) * CAST( 5 AS SIGNED ) ) + - + 97 AS col1, 1 AS col2
----
-132
1

skipif mysql # not compatible
query II rowsort label-5254
SELECT DISTINCT NULLIF ( - MAX ( DISTINCT 35 ), - 21 * COUNT ( * ) * CAST ( 5 AS INTEGER ) ) + - + 97 AS col1, 1 AS col2
----
-132
1

query II rowsort
SELECT ALL 71 * - 57 AS col1, 0 AS col2
----
-4047
0

query I rowsort
SELECT + 82 * 15 AS col0
----
1230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5257
SELECT + COUNT( * ) + COALESCE ( 62, + - 21 * - + 30 - + - 98 - - 18 ) AS col2, - ( - 1 ) * - CAST( NULL AS SIGNED )
----
63
NULL

skipif mysql # not compatible
query II rowsort label-5257
SELECT + COUNT ( * ) + COALESCE ( 62, + - 21 * - + 30 - + - 98 - - 18 ) AS col2, - ( - 1 ) * - CAST ( NULL AS INTEGER )
----
63
NULL

query I rowsort
SELECT ALL ( - ( + 30 ) ) + + + 35 + + + 73 * + + 36 - - 73
----
2706

query I rowsort
SELECT ALL 64 + + 88 AS col1
----
152

query I rowsort
SELECT + 46 + 97 + + 38
----
181

query I rowsort
SELECT DISTINCT + NULLIF ( 14, - 17 * AVG ( 34 ) ) + - - 79 + 79
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT + 23 + + ( - 18 ) * + + 94 * - 75 + - - COUNT( * ) AS col1
----
126924

skipif mysql # not compatible
query I rowsort label-5262
SELECT + 23 + + ( - 18 ) * + + 94 * - 75 + - - COUNT ( * ) AS col1
----
126924

query I rowsort
SELECT + 81 * 30
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT ALL + 31 * - + MIN( DISTINCT + 62 ) * - 53 - - + 41 AS col0
----
101907

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL + 31 * - + MIN ( DISTINCT + 62 ) * - 53 - - + 41 AS col0
----
101907

query I rowsort
SELECT DISTINCT 63 - - 98 AS col1
----
161

query I rowsort
SELECT DISTINCT + 13 * - + 22 * + 6 col1
----
-1716

query I rowsort
SELECT ALL NULLIF ( + 9, - - 91 + - + 0 )
----
9

query I rowsort
SELECT - 93 + 3 + + + 49
----
-41

query I rowsort
SELECT DISTINCT 98 - + 58 * ( - 43 )
----
2592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5270
SELECT ALL + NULLIF ( + 87, 20 ) * + + 12 + + 99 DIV - SUM( - + 2 ) AS col2
----
1093

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL + NULLIF ( + 87, 20 ) * + + 12 + + 99 / - SUM ( - + 2 ) AS col2
----
1093

query I rowsort
SELECT DISTINCT + ( + 59 ) * + + 27
----
1593

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5273
SELECT - SUM( DISTINCT - 21 ) * + 75 + + ( + MIN( DISTINCT + + 91 ) ) + + CAST( NULL AS SIGNED ) * + ( - 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT - SUM ( DISTINCT - 21 ) * + 75 + + ( + MIN ( DISTINCT + + 91 ) ) + + CAST ( NULL AS INTEGER ) * + ( - 10 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5274
SELECT - CAST( NULL AS SIGNED ) * - 81 + - 50 + 25 + 27 * - 44 + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5274
SELECT - CAST ( NULL AS INTEGER ) * - 81 + - 50 + 25 + 27 * - 44 + 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT + 35 * - - 10 - + COUNT( * ) AS col2
----
349

skipif mysql # not compatible
query I rowsort label-5275
SELECT + 35 * - - 10 - + COUNT ( * ) AS col2
----
349

query I rowsort
SELECT + + 35 col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT ALL + - 76 DIV + - 9 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL + - 76 / + - 9 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT - COUNT( * ) + COUNT( * ) + 67 * 69
----
4623

skipif mysql # not compatible
query I rowsort label-5278
SELECT - COUNT ( * ) + COUNT ( * ) + 67 * 69
----
4623

query I rowsort
SELECT - + 38 * - - 40 col1
----
-1520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5280
SELECT ALL - 58 DIV - 35 * - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL - 58 / - 35 * - - COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5281
SELECT COUNT( * ) DIV - ( 36 ) + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5281
SELECT COUNT ( * ) / - ( 36 ) + - COUNT ( * ) AS col1
----
-1

query II rowsort
SELECT + ( + 13 ) AS col2, 40
----
13
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT + + 81 + - - MAX( ALL + 52 )
----
133

skipif mysql # not compatible
query I rowsort label-5283
SELECT + + 81 + - - MAX ( ALL + 52 )
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT ALL + CAST( - + ( CASE 54 WHEN - 81 THEN 62 WHEN - + 19 THEN NULL WHEN + 74 * + 75 + - 96 THEN + 31 END ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL + CAST ( - + ( CASE 54 WHEN - 81 THEN 62 WHEN - + 19 THEN NULL WHEN + 74 * + 75 + - 96 THEN + 31 END ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 12 * + - ( + 5 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5286
SELECT DISTINCT - 67 * 32 + - - CASE COUNT( + 81 ) WHEN - - 2 / - CAST( NULL AS SIGNED ) * + 7 THEN NULL WHEN - + 37 + - 22 THEN 74 - + COALESCE ( + 90, 32 * 23 * SUM( DISTINCT - 66 ) * + + 29 / + 95 + 29 + - COUNT( * ) * SUM( ALL - - 89 ) ) - 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT - 67 * 32 + - - CASE COUNT ( + 81 ) WHEN - - 2 / - CAST ( NULL AS INTEGER ) * + 7 THEN NULL WHEN - + 37 + - 22 THEN 74 - + COALESCE ( + 90, 32 * 23 * SUM ( DISTINCT - 66 ) * + + 29 / + 95 + 29 + - COUNT ( * ) * SUM ( ALL - - 89 ) ) - 51 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5287
SELECT DISTINCT COUNT( + CAST( NULL AS SIGNED ) ) * 0 + - 37 + 12 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT COUNT ( + CAST ( NULL AS INTEGER ) ) * 0 + - 37 + 12 AS col1
----
-25

query I rowsort
SELECT + 65 * - - NULLIF ( - - 91, - 83 ) AS col2
----
5915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT ALL CAST( - 67 AS SIGNED ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL CAST ( - 67 AS INTEGER ) AS col1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5290
SELECT - NULLIF ( + CAST( - 17 AS SIGNED ), - 73 + - ( 4 ) )
----
17

skipif mysql # not compatible
query I rowsort label-5290
SELECT - NULLIF ( + CAST ( - 17 AS INTEGER ), - 73 + - ( 4 ) )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL CAST( NULL AS SIGNED ) + 65 * 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL CAST ( NULL AS INTEGER ) + 65 * 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT + COALESCE ( - 90, - COUNT( * ) ) * + - 9
----
810

skipif mysql # not compatible
query I rowsort label-5292
SELECT + COALESCE ( - 90, - COUNT ( * ) ) * + - 9
----
810

query I rowsort
SELECT + 5 - + 95 AS col1
----
-90

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

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

query I rowsort
SELECT ALL 93 * - 53 AS col1
----
-4929

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

query I rowsort
SELECT ALL 5 * 9 AS col2
----
45

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

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

query I rowsort
SELECT DISTINCT ( - 15 ) - - 19
----
4

query I rowsort
SELECT + COALESCE ( 51, + + ( + 28 ) ) - - 27 + 72 + - + 79 * - - 60 * + - 88
----
417270

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5302
SELECT - 37 AS col0, - 0 + - + 55 DIV - 26 + + + COUNT( * )
----
-37
3

skipif mysql # not compatible
query II rowsort label-5302
SELECT - 37 AS col0, - 0 + - + 55 / - 26 + + + COUNT ( * )
----
-37
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5303
SELECT - ( 44 ) + + MIN( ALL - 30 ) + - CASE - - 14 WHEN - 91 THEN NULL ELSE + + 43 END AS col2, + 97
----
-117
97

skipif mysql # not compatible
query II rowsort label-5303
SELECT - ( 44 ) + + MIN ( ALL - 30 ) + - CASE - - 14 WHEN - 91 THEN NULL ELSE + + 43 END AS col2, + 97
----
-117
97

query I rowsort
SELECT - + 28 * ( - + 81 ) - + 1
----
2267

query I rowsort
SELECT + 75 * + 10 * - + ( + 83 ) col0
----
-62250

query II rowsort
SELECT + 60, - 98 + 52 * + - 42 AS col2
----
60
-2282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5307
SELECT DISTINCT + CAST( + - ( CASE + 21 WHEN - + 88 THEN NULL WHEN - COUNT( * ) THEN - 14 ELSE NULL END ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT + CAST ( + - ( CASE + 21 WHEN - + 88 THEN NULL WHEN - COUNT ( * ) THEN - 14 ELSE NULL END ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 2 * - + 6 + 43
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5309
SELECT ALL + 36 DIV - COUNT( * ) + + - 83 + - - 55
----
-64

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL + 36 / - COUNT ( * ) + + - 83 + - - 55
----
-64

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

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

query I rowsort
SELECT - - 1 * ( + 23 ) col1
----
23

query II rowsort
SELECT + 78, + 51 AS col0
----
78
51

query I rowsort
SELECT - 91 + - 48
----
-139

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5315
SELECT + 49 * ( + CASE + 98 WHEN + 89 / COUNT( * ) * - 8 THEN + + 17 + + + 8 + + - 10 * - 5 + - COUNT( * ) END ) + + AVG ( ALL - 97 ) + - CAST( + SUM( + 79 ) AS DECIMAL ) * - CAST( + - 67 AS DECIMAL ) * + 6 + ( 53 ) + - + 48 * - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT + 49 * ( + CASE + 98 WHEN + 89 / COUNT ( * ) * - 8 THEN + + 17 + + + 8 + + - 10 * - 5 + - COUNT ( * ) END ) + + AVG ( ALL - 97 ) + - CAST ( + SUM ( + 79 ) AS REAL ) * - CAST ( + - 67 AS REAL ) * + 6 + ( 53 ) + - + 48 * - 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5316
SELECT ALL 40 DIV - 82 * 1 DIV COUNT( * ) + - + 96 + - 24 * - 63 AS col2
----
1416

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL 40 / - 82 * 1 / COUNT ( * ) + - + 96 + - 24 * - 63 AS col2
----
1416

query I rowsort
SELECT ALL - - 49 col1
----
49

query I rowsort
SELECT DISTINCT - 13 + + - 77 + + 64 col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT ALL - NULLIF ( 4, + 91 ) + - MAX( ( + 29 ) ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL - NULLIF ( 4, + 91 ) + - MAX ( ( + 29 ) ) AS col2
----
-33

query I rowsort
SELECT 25 - - 70 * - 2 AS col0
----
-115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5321
SELECT ALL - COALESCE ( + - 58, CASE + - 10 WHEN + 15 THEN 92 * + - ( + 60 ) ELSE NULL END ) DIV + 41 - - MAX( ALL + + CAST( 51 AS SIGNED ) ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL - COALESCE ( + - 58, CASE + - 10 WHEN + 15 THEN 92 * + - ( + 60 ) ELSE NULL END ) / + 41 - - MAX ( ALL + + CAST ( 51 AS INTEGER ) ) AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5322
SELECT ALL COUNT( ALL + + 89 ) * - COUNT( * ) - 85 + + - 1 * + 29 DIV - NULLIF ( + SUM( DISTINCT 43 ), - CAST( NULL AS SIGNED ) - + 11 + + + 24 ) - + 46 - - SUM( DISTINCT 85 ) AS col1, - 39 AS col2
----
-47
-39

skipif mysql # not compatible
query II rowsort label-5322
SELECT ALL COUNT ( ALL + + 89 ) * - COUNT ( * ) - 85 + + - 1 * + 29 / - NULLIF ( + SUM ( DISTINCT 43 ), - CAST ( NULL AS INTEGER ) - + 11 + + + 24 ) - + 46 - - SUM ( DISTINCT 85 ) AS col1, - 39 AS col2
----
-47
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-5323
SELECT DISTINCT - ( - 86 ) + MAX( - 21 ) * MAX( ALL - 75 ) + - + 9 AS col1, COUNT( * ) * + 23
----
1652
23

skipif mysql # not compatible
query II rowsort label-5323
SELECT DISTINCT - ( - 86 ) + MAX ( - 21 ) * MAX ( ALL - 75 ) + - + 9 AS col1, COUNT ( * ) * + 23
----
1652
23

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

query I rowsort
SELECT 15 + - ( + 97 ) AS col1
----
-82

query I rowsort
SELECT 25 + + ( - 74 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT ( + + CAST( NULL AS SIGNED ) ) - + - 29 + - 74 - + 59 * + CAST( + ( 41 ) AS SIGNED ) + - - 19 - 38 * + 54 * - ( + 91 ) * + 80 * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT ( + + CAST ( NULL AS INTEGER ) ) - + - 29 + - 74 - + 59 * + CAST ( + ( 41 ) AS INTEGER ) + - - 19 - 38 * + 54 * - ( + 91 ) * + 80 * 99
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5328
SELECT ALL + 30 * + 86 AS col1, 81 DIV - 81 AS col0
----
2580
-1

skipif mysql # not compatible
query II rowsort label-5328
SELECT ALL + 30 * + 86 AS col1, 81 / - 81 AS col0
----
2580
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5329
SELECT ALL + ( + + ( 84 ) ) - + 46 DIV 1
----
38

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL + ( + + ( 84 ) ) - + 46 / 1
----
38

query I rowsort
SELECT 50 * + + 3 AS col2
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5331
SELECT ALL - ( + 35 ) * - 52 + - + CAST( NULL AS SIGNED ), 14 * + COUNT( * ) * 28 * + 87 AS col1
----
NULL
34104

skipif mysql # not compatible
query II rowsort label-5331
SELECT ALL - ( + 35 ) * - 52 + - + CAST ( NULL AS INTEGER ), 14 * + COUNT ( * ) * 28 * + 87 AS col1
----
NULL
34104

query I rowsort
SELECT 40 * 97
----
3880

query I rowsort
SELECT 76 * - 47 * 27 AS col1
----
-96444

query I rowsort
SELECT 59 + - 28 + - - 12 AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5335
SELECT ALL - - 68 DIV + + 85
----
0

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL - - 68 / + + 85
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL - 60 + SUM( ALL - - 58 ) + + - COUNT( ALL + - ( + 18 ) ) * + ( + ( + 68 ) ) * + MAX( ALL - 11 )
----
746

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL - 60 + SUM ( ALL - - 58 ) + + - COUNT ( ALL + - ( + 18 ) ) * + ( + ( + 68 ) ) * + MAX ( ALL - 11 )
----
746

onlyif mysql # aggregate syntax: 
query II rowsort label-5338
SELECT - - COUNT( ALL + 86 ) AS col2, 37 AS col0
----
1
37

skipif mysql # not compatible
query II rowsort label-5338
SELECT - - COUNT ( ALL + 86 ) AS col2, 37 AS col0
----
1
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5339
SELECT + CAST( + 41 AS SIGNED ) + - COUNT( * ) - + COALESCE ( - 95, - COUNT( * ) ) + 36 AS col2
----
171

skipif mysql # not compatible
query I rowsort label-5339
SELECT + CAST ( + 41 AS INTEGER ) + - COUNT ( * ) - + COALESCE ( - 95, - COUNT ( * ) ) + 36 AS col2
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-5340
SELECT ALL - COUNT( * ) * - 18 AS col0, 27
----
18
27

skipif mysql # not compatible
query II rowsort label-5340
SELECT ALL - COUNT ( * ) * - 18 AS col0, 27
----
18
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5341
SELECT ALL - COUNT( * ) + + 29 + CAST( - 77 AS SIGNED ) DIV + MAX( ALL 80 ) * - - 72
----
28

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL - COUNT ( * ) + + 29 + CAST ( - 77 AS INTEGER ) / + MAX ( ALL 80 ) * - - 72
----
28

query I rowsort
SELECT NULLIF ( - 5, + 70 ) + + 4 * + 38 - - 57
----
204

query I rowsort
SELECT + + 95 * + 38 + + 90
----
3700

query I rowsort
SELECT DISTINCT - 17 + - 30 AS col1
----
-47

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

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

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

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL - + COUNT ( * ) + + - 49 - - + COUNT ( * ) / ( - ( + 82 ) ) - COUNT ( * ) AS col0
----
-51

query I rowsort
SELECT 78 * - + 4 + - 20 AS col0
----
-332

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

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

query I rowsort
SELECT ALL 48 - 15 col1
----
33

query I rowsort
SELECT 6 * + 95 AS col0
----
570

query I rowsort
SELECT 41 * + 84
----
3444

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

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL - MAX ( ALL 14 )
----
-14

query I rowsort
SELECT DISTINCT - ( + - 8 ) - - 32 - 12
----
28

query II rowsort
SELECT ALL - 96, - 1 col2
----
-96
-1

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

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

query I rowsort
SELECT 44 * - 99 AS col0
----
-4356

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT ALL + 72 DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL + 72 / + 46
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5358
SELECT 50 DIV - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5358
SELECT 50 / - 67 AS col0
----
0

query I rowsort
SELECT ALL - 99 * 20
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT 66 + CASE - 63 WHEN - 64 - - 90 + 56 + ( + 27 ) * - 45 / + 85 * 29 * 80 * 52 + - SUM( DISTINCT 92 ) THEN + - 40 + + - 26 * 18 WHEN + - 38 * 68 THEN NULL ELSE NULL END * + 5 + - 89 * + 97 + MIN( + 82 ) + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT 66 + CASE - 63 WHEN - 64 - - 90 + 56 + ( + 27 ) * - 45 / + 85 * 29 * 80 * 52 + - SUM ( DISTINCT 92 ) THEN + - 40 + + - 26 * 18 WHEN + - 38 * 68 THEN NULL ELSE NULL END * + 5 + - 89 * + 97 + MIN ( + 82 ) + - 49
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5361
SELECT 31 AS col0, COUNT( * ) * + ( 4 ) * - + CASE - + 7 WHEN + 72 THEN - COUNT( * ) * 80 * - + 11 * + - CAST( + 24 AS SIGNED ) * COUNT( * ) * - + COUNT( * ) + + + CAST( NULL AS SIGNED ) WHEN - AVG ( DISTINCT - 36 ) THEN NULL ELSE NULL END
----
31
NULL

skipif mysql # not compatible
query II rowsort label-5361
SELECT 31 AS col0, COUNT ( * ) * + ( 4 ) * - + CASE - + 7 WHEN + 72 THEN - COUNT ( * ) * 80 * - + 11 * + - CAST ( + 24 AS INTEGER ) * COUNT ( * ) * - + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) WHEN - AVG ( DISTINCT - 36 ) THEN NULL ELSE NULL END
----
31
NULL

query I rowsort
SELECT ALL + 72 * 57 AS col2
----
4104

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5364
SELECT 76 / MAX( CASE + ( + - 45 ) WHEN - 80 - + 75 * + 62 THEN 76 END ) * - + CAST( NULL AS SIGNED ) + - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT 76 / MAX ( CASE + ( + - 45 ) WHEN - 80 - + 75 * + 62 THEN 76 END ) * - + CAST ( NULL AS INTEGER ) + - 71 AS col0
----
NULL

query I rowsort
SELECT 50 - 28 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL - 0 * SUM( 68 ) * COUNT( * ) * + - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL - 0 * SUM ( 68 ) * COUNT ( * ) * + - 0 AS col0
----
0

query I rowsort
SELECT DISTINCT - 82 + + 45 AS col0
----
-37

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

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

query I rowsort
SELECT ALL + ( - COALESCE ( + - 86, + 51 ) ) + 69
----
155

query II rowsort
SELECT + NULLIF ( 75, + + 53 ) AS col1, - 42 * - 33
----
75
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT ALL - MIN( 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL - MIN ( 93 )
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-5372
SELECT ( - 81 ) - + 30, MAX( DISTINCT 20 ) AS col0
----
-111
20

skipif mysql # not compatible
query II rowsort label-5372
SELECT ( - 81 ) - + 30, MAX ( DISTINCT 20 ) AS col0
----
-111
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5373
SELECT ALL NULLIF ( + - COUNT( * ), - CAST( NULL AS SIGNED ) ) DIV - 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL NULLIF ( + - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) / - 12 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT 97 * - COUNT( ALL COALESCE ( ( - - 28 ), - ( + ( + 87 ) ) ) ) * + 68
----
-6596

skipif mysql # not compatible
query I rowsort label-5374
SELECT 97 * - COUNT ( ALL COALESCE ( ( - - 28 ), - ( + ( + 87 ) ) ) ) * + 68
----
-6596

query I rowsort
SELECT ALL - 29 + - - 3 + 24 * 8 AS col1
----
166

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

skipif mysql # not compatible
query I rowsort label-5376
SELECT 77 / + - ( + 94 ) * - COUNT ( * ) * 79 * + MIN ( + 90 ) * 10 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT + 29 + + 41 + 40 + - MAX( ALL - 8 ) * - 0 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-5377
SELECT + 29 + + 41 + 40 + - MAX ( ALL - 8 ) * - 0 AS col2
----
110

query I rowsort
SELECT - - COALESCE ( - 16, - 58 )
----
-16

query I rowsort
SELECT ALL - 88 + 71 AS col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT CASE - CAST( NULL AS SIGNED ) WHEN COALESCE ( + COALESCE ( 53, + ( 11 ) - + + 68 ), + - 52 * - 2 + + 58 - + + 65 * 72 ) THEN + 55 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5380
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN COALESCE ( + COALESCE ( 53, + ( 11 ) - + + 68 ), + - 52 * - 2 + + 58 - + + 65 * 72 ) THEN + 55 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 5 * 30 * + + 1 + ( - 70 ) AS col2
----
80

query I rowsort
SELECT + 96 * 9 AS col1
----
864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5383
SELECT ALL - + COALESCE ( 92, 73 ) * + MAX( DISTINCT + + 25 ) - + 43 * + + CAST( 90 AS SIGNED ) + + + 18 AS col1
----
-6152

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL - + COALESCE ( 92, 73 ) * + MAX ( DISTINCT + + 25 ) - + 43 * + + CAST ( 90 AS INTEGER ) + + + 18 AS col1
----
-6152

query I rowsort
SELECT NULLIF ( + 86, + + 27 ) AS col0
----
86

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

query I rowsort
SELECT + 36 * + + 51 AS col2
----
1836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5387
SELECT CASE - 49 WHEN + 0 - - COUNT( DISTINCT - + 49 ) THEN - 87 - + + CAST( NULL AS SIGNED ) * + - 82 + - COUNT( + 0 ) WHEN + 59 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT CASE - 49 WHEN + 0 - - COUNT ( DISTINCT - + 49 ) THEN - 87 - + + CAST ( NULL AS INTEGER ) * + - 82 + - COUNT ( + 0 ) WHEN + 59 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 53 * + 3 + - 64 * - 75 + 16 + + - 73
----
4584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5389
SELECT CASE WHEN MIN( ALL + CAST( - 62 AS SIGNED ) ) >= - COUNT( * ) THEN NULL ELSE + - 24 + ( - 13 ) END
----
-37

skipif mysql # not compatible
query I rowsort label-5389
SELECT CASE WHEN MIN ( ALL + CAST ( - 62 AS INTEGER ) ) >= - COUNT ( * ) THEN NULL ELSE + - 24 + ( - 13 ) END
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT SUM( - 9 ) * + - 46 + 29 + - + 63 - + - 73 + 14 * 53 + - 5 + - - 12 AS col1
----
1202

skipif mysql # not compatible
query I rowsort label-5390
SELECT SUM ( - 9 ) * + - 46 + 29 + - + 63 - + - 73 + 14 * 53 + - 5 + - - 12 AS col1
----
1202

query I rowsort
SELECT ALL + COALESCE ( 66, - CASE + 52 WHEN + 60 + - 24 THEN - 87 - 14 ELSE + 27 END )
----
66

query I rowsort
SELECT DISTINCT + COALESCE ( 40, - - 4 )
----
40

query I rowsort
SELECT ALL + 67 * + 72 * 39
----
188136

query I rowsort
SELECT + NULLIF ( + - 80, 35 )
----
-80

query I rowsort
SELECT + 21 * - + 98 + - 88
----
-2146

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT + COUNT( * ) + - - ( + 2 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5396
SELECT + COUNT ( * ) + - - ( + 2 ) AS col1
----
3

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

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

query I rowsort
SELECT + 93 + 95 * - 11
----
-952

query I rowsort
SELECT - 99 - - + 56
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT DISTINCT + 50 + - - 95 * + 3 * - - CASE 73 WHEN - 88 THEN - - NULLIF ( - 11, SUM( ALL + 40 ) * - 81 ) * - - 48 WHEN - 63 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT + 50 + - - 95 * + 3 * - - CASE 73 WHEN - 88 THEN - - NULLIF ( - 11, SUM ( ALL + 40 ) * - 81 ) * - - 48 WHEN - 63 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5401
SELECT ALL CASE ( + 31 ) WHEN + + 55 THEN NULL WHEN - 30 * + 73 * - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) THEN + 5 WHEN - 47 THEN + + 52 WHEN - 9 * - 21 - + COUNT( * ) * - 8 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL CASE ( + 31 ) WHEN + + 55 THEN NULL WHEN - 30 * + 73 * - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + 5 WHEN - 47 THEN + + 52 WHEN - 9 * - 21 - + COUNT ( * ) * - 8 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 92 + 74 AS col0
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-5403
SELECT DISTINCT + + 67 DIV + 18 + 48 + - + 68
----
-17

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT + + 67 / + 18 + 48 + - + 68
----
-17

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

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

query I rowsort
SELECT DISTINCT - 33 + 97 * + 24 * 26 * - 76 AS col0
----
-4600161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5406
SELECT - SUM( - + CAST( 86 AS SIGNED ) ) DIV + 60
----
1

skipif mysql # not compatible
query I rowsort label-5406
SELECT - SUM ( - + CAST ( 86 AS INTEGER ) ) / + 60
----
1

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

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

query I rowsort
SELECT DISTINCT + 41 * + + 8 + 68 AS col1
----
396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5409
SELECT - COUNT( + CASE + 79 WHEN CAST( - + CAST( 85 AS SIGNED ) AS SIGNED ) THEN + + 15 * ( + - 13 ) * 7 END )
----
0

skipif mysql # not compatible
query I rowsort label-5409
SELECT - COUNT ( + CASE + 79 WHEN CAST ( - + CAST ( 85 AS INTEGER ) AS INTEGER ) THEN + + 15 * ( + - 13 ) * 7 END )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5410
SELECT - - NULLIF ( 71, + 48 / - 5 ) + + - 22 + + COUNT( * ) AS col1, - 90 * ( - - MIN( + + ( + + 90 ) ) ) col0
----
50
-8100

skipif mysql # not compatible
query II rowsort label-5410
SELECT - - NULLIF ( 71, + 48 / - 5 ) + + - 22 + + COUNT ( * ) AS col1, - 90 * ( - - MIN ( + + ( + + 90 ) ) ) col0
----
50
-8100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5411
SELECT - 80 + + CAST( ( 15 ) AS SIGNED ) - + 94 * 40 col2, COUNT( * ) * 23 * - COUNT( DISTINCT + 27 ) AS col2
----
-3825
-23

skipif mysql # not compatible
query II rowsort label-5411
SELECT - 80 + + CAST ( ( 15 ) AS INTEGER ) - + 94 * 40 col2, COUNT ( * ) * 23 * - COUNT ( DISTINCT + 27 ) AS col2
----
-3825
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT - SUM( DISTINCT + + 31 ) * - 80
----
2480

skipif mysql # not compatible
query I rowsort label-5412
SELECT - SUM ( DISTINCT + + 31 ) * - 80
----
2480

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT ALL + 73 * MIN( DISTINCT - - 17 )
----
1241

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL + 73 * MIN ( DISTINCT - - 17 )
----
1241

query I rowsort
SELECT - 94 + + 51 - - ( - 5 )
----
-48

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5416
SELECT - 8, + MIN( 62 ) AS col1
----
-8
62

skipif mysql # not compatible
query II rowsort label-5416
SELECT - 8, + MIN ( 62 ) AS col1
----
-8
62

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

skipif mysql # not compatible
query II rowsort label-5417
SELECT ALL COUNT ( * ), - 24 AS col2
----
1
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5418
SELECT - + 57 DIV - 30 + - - 75
----
76

skipif mysql # not compatible
query I rowsort label-5418
SELECT - + 57 / - 30 + - - 75
----
76

query I rowsort
SELECT ALL 95 * - 67
----
-6365

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5420
SELECT - COUNT( * ) DIV 11, 11 AS col0
----
0
11

skipif mysql # not compatible
query II rowsort label-5420
SELECT - COUNT ( * ) / 11, 11 AS col0
----
0
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5421
SELECT DISTINCT + 99 DIV 2
----
49

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT + 99 / 2
----
49

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5423
SELECT + NULLIF ( - 48, + + ( + 90 ) + SUM( 45 ) ) DIV + 18 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5423
SELECT + NULLIF ( - 48, + + ( + 90 ) + SUM ( 45 ) ) / + 18 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT + COUNT( * ) + + 18 col0
----
19

skipif mysql # not compatible
query I rowsort label-5424
SELECT + COUNT ( * ) + + 18 col0
----
19

query I rowsort
SELECT ALL 35 * ( + + 62 )
----
2170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5426
SELECT ( + CAST( 22 AS SIGNED ) )
----
22

skipif mysql # not compatible
query I rowsort label-5426
SELECT ( + CAST ( 22 AS INTEGER ) )
----
22

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5428
SELECT + 5 DIV - - 13 AS col1, - COUNT( * ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-5428
SELECT + 5 / - - 13 AS col1, - COUNT ( * ) AS col1
----
0
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5430
SELECT ALL CAST( - 11 AS SIGNED ) * - 10 * + + 76 * COUNT( * ) + 0 AS col1
----
8360

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL CAST ( - 11 AS INTEGER ) * - 10 * + + 76 * COUNT ( * ) + 0 AS col1
----
8360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5431
SELECT + CASE 10 WHEN COUNT( + CAST( + + 13 AS SIGNED ) ) THEN - 56 ELSE + MIN( ALL 92 ) END AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5431
SELECT + CASE 10 WHEN COUNT ( + CAST ( + + 13 AS INTEGER ) ) THEN - 56 ELSE + MIN ( ALL 92 ) END AS col1
----
92

query I rowsort
SELECT CASE - 70 WHEN + - 65 THEN + - 5 + - COALESCE ( 65, + 20 / + 61 ) - - 46 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT ALL - 73 * + - COUNT( * ) * + ( - 96 ) + 58
----
-6950

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL - 73 * + - COUNT ( * ) * + ( - 96 ) + 58
----
-6950

query I rowsort
SELECT ALL + NULLIF ( + 29, 59 / + 6 ) col2
----
29

query I rowsort
SELECT ALL + 12 * + - 21 col0
----
-252

query I rowsort
SELECT + - 49 - + 77 AS col1
----
-126

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

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT - SUM ( ALL 7 )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-5438
SELECT + 15 * - COUNT( * ) - 66 + COUNT( * ) * + 75, + 26 + - + 19 * - - NULLIF ( - COUNT( * ), + COUNT( * ) ) AS col0
----
-6
45

skipif mysql # not compatible
query II rowsort label-5438
SELECT + 15 * - COUNT ( * ) - 66 + COUNT ( * ) * + 75, + 26 + - + 19 * - - NULLIF ( - COUNT ( * ), + COUNT ( * ) ) AS col0
----
-6
45

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5440
SELECT DISTINCT + ( - - 19 ) DIV + - COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT + ( - - 19 ) / + - COUNT ( * ) AS col0
----
-19

query II rowsort
SELECT 52 * - - 82, + 0 AS col2
----
4264
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5442
SELECT DISTINCT - 86 - + 65 + + - SUM( ALL 1 ) * - + ( - COUNT( * ) ) * COUNT( ALL + 32 ) * - CAST( + 24 AS SIGNED ) AS col1, - 59 AS col0
----
-127
-59

skipif mysql # not compatible
query II rowsort label-5442
SELECT DISTINCT - 86 - + 65 + + - SUM ( ALL 1 ) * - + ( - COUNT ( * ) ) * COUNT ( ALL + 32 ) * - CAST ( + 24 AS INTEGER ) AS col1, - 59 AS col0
----
-127
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5443
SELECT ALL - ( + - 95 ) - - 47 * - - 17 * CAST( 39 AS SIGNED )
----
31256

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL - ( + - 95 ) - - 47 * - - 17 * CAST ( 39 AS INTEGER )
----
31256

onlyif mysql # aggregate syntax: 
query II rowsort label-5444
SELECT 75 * - COUNT( * ), + 71 AS col1
----
-75
71

skipif mysql # not compatible
query II rowsort label-5444
SELECT 75 * - COUNT ( * ), + 71 AS col1
----
-75
71

query I rowsort
SELECT ALL - 36 * 42 + - 95
----
-1607

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT ALL + + COALESCE ( - + ( ( COUNT( * ) ) ), 72 ) * + - 36 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL + + COALESCE ( - + ( ( COUNT ( * ) ) ), 72 ) * + - 36 AS col1
----
36

query II rowsort
SELECT ALL 26, - 63 AS col1
----
26
-63

query I rowsort
SELECT ALL + NULLIF ( + 60, - - 63 ) * + ( - + 34 ) + 83 AS col1
----
-1957

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5449
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1, + 69 AS col1
----
NULL
69

skipif mysql # not compatible
query II rowsort label-5449
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1, + 69 AS col1
----
NULL
69

query I rowsort
SELECT ALL - 13 + 42 * ( + 21 )
----
869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5451
SELECT 34 + - + 2 + + 84 DIV MAX( DISTINCT CAST( + + 32 AS SIGNED ) )
----
34

skipif mysql # not compatible
query I rowsort label-5451
SELECT 34 + - + 2 + + 84 / MAX ( DISTINCT CAST ( + + 32 AS INTEGER ) )
----
34

query II rowsort
SELECT + 94 AS col0, 99 AS col1
----
94
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5453
SELECT ALL - 13 + - + 16 DIV - 36 col0
----
-13

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL - 13 + - + 16 / - 36 col0
----
-13

query I rowsort
SELECT 50 + 63 AS col1
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5455
SELECT NULLIF ( - - 94, 54 * - - 46 * + 69 ) * + + ( + 35 ) + + - COALESCE ( - - 94, 72 / MAX( + 37 ) * - - NULLIF ( - 43, + 23 ) ) + CAST( NULL AS SIGNED ) / - COUNT( * ) + + CAST( NULL AS SIGNED ) * + 96 + 15 / - - 77 * - + 41 * + 82 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT NULLIF ( - - 94, 54 * - - 46 * + 69 ) * + + ( + 35 ) + + - COALESCE ( - - 94, 72 / MAX ( + 37 ) * - - NULLIF ( - 43, + 23 ) ) + CAST ( NULL AS INTEGER ) / - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + 96 + 15 / - - 77 * - + 41 * + 82 col1
----
NULL

query I rowsort
SELECT 95 * + - 35 AS col0
----
-3325

query I rowsort
SELECT DISTINCT - 68 + + 66 AS col2
----
-2

query I rowsort
SELECT ALL 81 + 94 AS col0
----
175

query I rowsort
SELECT DISTINCT 40 * 30
----
1200

query I rowsort
SELECT 78 + - - 14 * + 16 AS col2
----
302

query I rowsort
SELECT ALL - 50 + 33
----
-17

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

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT + 96 + + - 9 + - CAST ( 15 AS INTEGER )
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT MAX( + 55 ) + 75
----
130

skipif mysql # not compatible
query I rowsort label-5464
SELECT MAX ( + 55 ) + 75
----
130

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5466
SELECT + 70 AS col2, + NULLIF ( - COUNT( * ), - 35 )
----
70
-1

skipif mysql # not compatible
query II rowsort label-5466
SELECT + 70 AS col2, + NULLIF ( - COUNT ( * ), - 35 )
----
70
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5467
SELECT 51 * + + 8 * - + ( - COUNT( * ) ) * + - 81 + + 21 AS col0, + ( 75 )
----
-33027
75

skipif mysql # not compatible
query II rowsort label-5467
SELECT 51 * + + 8 * - + ( - COUNT ( * ) ) * + - 81 + + 21 AS col0, + ( 75 )
----
-33027
75

query I rowsort
SELECT 49 * - + 72 + + 69 AS col2
----
-3459

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT - + ( + - 6 ) * 98 + 87 * - - CASE + 21 WHEN 75 THEN + - 51 * + 55 + + - 38 - - + MAX( - 1 ) + 38 * + 15 + NULLIF ( + 3, + 24 * - 98 ) + - + 88 + 3 + 47 WHEN 78 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT - + ( + - 6 ) * 98 + 87 * - - CASE + 21 WHEN 75 THEN + - 51 * + 55 + + - 38 - - + MAX ( - 1 ) + 38 * + 15 + NULLIF ( + 3, + 24 * - 98 ) + - + 88 + 3 + 47 WHEN 78 THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT ( - COALESCE ( - 43, + 82 * + 61 ) ) + + 37 col0
----
80

query II rowsort
SELECT + 74 col1, - COALESCE ( - - 89, 19 + + 10 ) + 80 + + 99 AS col0
----
74
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ALL - - COUNT( ALL - 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL - - COUNT ( ALL - 44 ) AS col0
----
1

query I rowsort
SELECT ALL 70 - + 4
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5474
SELECT - CAST( NULL AS SIGNED ) * - 89 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT - CAST ( NULL AS INTEGER ) * - 89 col2
----
NULL

query I rowsort
SELECT DISTINCT - 89 - - 23
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5476
SELECT - - CAST( + 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5476
SELECT - - CAST ( + 4 AS INTEGER ) AS col1
----
4

query I rowsort
SELECT + ( + 67 ) + - + 35 + - 3
----
29

query I rowsort
SELECT ALL - 56 * + 12
----
-672

query I rowsort
SELECT + 6 * + 32
----
192

query II rowsort
SELECT 98, 50 AS col2
----
98
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT DISTINCT CASE 0 WHEN + SUM( DISTINCT - 2 ) THEN + + 19 WHEN + + COALESCE ( - 30, - + 26 * - - 81 ) * - + 35 THEN 15 END * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT CASE 0 WHEN + SUM ( DISTINCT - 2 ) THEN + + 19 WHEN + + COALESCE ( - 30, - + 26 * - - 81 ) * - + 35 THEN 15 END * - 20
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5482
SELECT 31 + - - ( + MIN( + ( 27 ) ) ) - COUNT( * ) AS col0, - 89 + - 63 - + COALESCE ( 97, + + COUNT( DISTINCT - ( - 65 ) ) ) + - ( + 71 )
----
57
-320

skipif mysql # not compatible
query II rowsort label-5482
SELECT 31 + - - ( + MIN ( + ( 27 ) ) ) - COUNT ( * ) AS col0, - 89 + - 63 - + COALESCE ( 97, + + COUNT ( DISTINCT - ( - 65 ) ) ) + - ( + 71 )
----
57
-320

query I rowsort
SELECT DISTINCT + 63 * - 33 * + 48 AS col1
----
-99792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5484
SELECT 69 DIV - + 10 DIV + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-5484
SELECT 69 / - + 10 / + COUNT ( * )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5485
SELECT ALL - 44 + 40 * - MAX( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL - 44 + 40 * - MAX ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5486
SELECT 50 + + + COUNT( * ) AS col1, 55 AS col2
----
51
55

skipif mysql # not compatible
query II rowsort label-5486
SELECT 50 + + + COUNT ( * ) AS col1, 55 AS col2
----
51
55

query I rowsort
SELECT ALL + 81 + - ( - 39 )
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5488
SELECT 60 + - - COUNT( * ) + + COUNT( - - CAST( NULL AS SIGNED ) ) + - COALESCE ( - MIN( + 90 ), + 58, - COUNT( * ), - + ( ( - ( - 23 ) ) ) + - - 46 * 73 DIV - + 43 ) - - 48 * - CASE - 19 WHEN COUNT( * ) - - - 63 * + CASE + + 63 WHEN + CAST( COUNT( * ) AS SIGNED ) + + 4 - ( - 77 ) + + 32 THEN 33 WHEN + 4 THEN NULL ELSE NULL END THEN ( COUNT( * ) ) ELSE 25 END
----
-1049

skipif mysql # not compatible
query I rowsort label-5488
SELECT 60 + - - COUNT ( * ) + + COUNT ( - - CAST ( NULL AS INTEGER ) ) + - COALESCE ( - MIN ( + 90 ), + 58, - COUNT ( * ), - + ( ( - ( - 23 ) ) ) + - - 46 * 73 / - + 43 ) - - 48 * - CASE - 19 WHEN COUNT ( * ) - - - 63 * + CASE + + 63 WHEN + CAST ( COUNT ( * ) AS INTEGER ) + + 4 - ( - 77 ) + + 32 THEN 33 WHEN + 4 THEN NULL ELSE NULL END THEN ( COUNT ( * ) ) ELSE 25 END
----
-1049

onlyif mysql # DIV for integer division: 
query I rowsort label-5489
SELECT 34 DIV ( 99 ) * + + 46 * + ( - 2 ) * + - 62 + - 52 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-5489
SELECT 34 / ( 99 ) * + + 46 * + ( - 2 ) * + - 62 + - 52 AS col2
----
-52

query I rowsort
SELECT 69 + + 9
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT COUNT( * ) * NULLIF ( + + 66, + 74 - + NULLIF ( - + 16, - - NULLIF ( + + 77, + 43 ) * - 29 * + - ( - 86 ) * CASE 6 WHEN - + 23 / 72 * 23 / + 36 THEN - ( 25 ) END + + COALESCE ( - - MAX( ALL - ( 72 ) ), - 71, 51 * 55 ) + - ( + 64 ) - CASE 76 WHEN 84 THEN - 46 WHEN MAX( 53 ) * + 73 - 62 THEN NULL END * + COALESCE ( + 38 / + 26 + - 86, - 93 ) ) + + COUNT( * ) )
----
66

skipif mysql # not compatible
query I rowsort label-5491
SELECT COUNT ( * ) * NULLIF ( + + 66, + 74 - + NULLIF ( - + 16, - - NULLIF ( + + 77, + 43 ) * - 29 * + - ( - 86 ) * CASE 6 WHEN - + 23 / 72 * 23 / + 36 THEN - ( 25 ) END + + COALESCE ( - - MAX ( ALL - ( 72 ) ), - 71, 51 * 55 ) + - ( + 64 ) - CASE 76 WHEN 84 THEN - 46 WHEN MAX ( 53 ) * + 73 - 62 THEN NULL END * + COALESCE ( + 38 / + 26 + - 86, - 93 ) ) + + COUNT ( * ) )
----
66

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

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

query I rowsort
SELECT 79 + 7 col1
----
86

query II rowsort
SELECT ALL + 81 + + + 8 - - 28 + 89 + + + 33 * 48 + 99 * 59 + - + 28 AS col0, 82 AS col0
----
7603
82

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

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

query I rowsort
SELECT 69 * - 41
----
-2829

query I rowsort
SELECT 94 * 59 * + - 96
----
-532416

query I rowsort
SELECT 84 * - 91
----
-7644

query I rowsort
SELECT ALL 63 * 16 col1
----
1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5500
SELECT - 46 + - CAST( COUNT( * ) AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-5500
SELECT - 46 + - CAST ( COUNT ( * ) AS INTEGER )
----
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-5501
SELECT - 90 DIV - 62, + 86 AS col1
----
1
86

skipif mysql # not compatible
query II rowsort label-5501
SELECT - 90 / - 62, + 86 AS col1
----
1
86

query I rowsort
SELECT + 73 * 20 AS col0
----
1460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5503
SELECT - 17 - - - ( SUM( - + ( - 83 ) ) ) + + NULLIF ( - 70, + 13 * - 38 * CAST( NULL AS SIGNED ) - - + 41 ) - - - ( + + 34 )
----
-204

skipif mysql # not compatible
query I rowsort label-5503
SELECT - 17 - - - ( SUM ( - + ( - 83 ) ) ) + + NULLIF ( - 70, + 13 * - 38 * CAST ( NULL AS INTEGER ) - - + 41 ) - - - ( + + 34 )
----
-204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5504
SELECT - - 14 * ( + 25 ) * - 3 + - + CASE 17 WHEN + 61 THEN - CAST( NULL AS SIGNED ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT - - 14 * ( + 25 ) * - 3 + - + CASE 17 WHEN + 61 THEN - CAST ( NULL AS INTEGER ) END col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL - - 35 + 93 + - 40 + + COUNT( * ) * - - ( - - 24 ) * - 31 AS col1
----
-656

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL - - 35 + 93 + - 40 + + COUNT ( * ) * - - ( - - 24 ) * - 31 AS col1
----
-656

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT CASE - 82 WHEN 26 * + COUNT( * ) THEN - 99 + + - 38 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5507
SELECT CASE - 82 WHEN 26 * + COUNT ( * ) THEN - 99 + + - 38 END AS col2
----
NULL

query II rowsort
SELECT ALL 93 + + + 66 AS col2, 97 AS col2
----
159
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5509
SELECT ALL CAST( 13 AS SIGNED ), 46 AS col2
----
13
46

skipif mysql # not compatible
query II rowsort label-5509
SELECT ALL CAST ( 13 AS INTEGER ), 46 AS col2
----
13
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL 36 + - 66 + + - CASE 7 WHEN 55 THEN - 95 ELSE NULL END + - 47 + - 73 + - - 73 + + - CASE 70 WHEN - 31 + 85 THEN 71 WHEN 30 THEN NULL ELSE - COUNT( DISTINCT 7 ) END * + 63 * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL 36 + - 66 + + - CASE 7 WHEN 55 THEN - 95 ELSE NULL END + - 47 + - 73 + - - 73 + + - CASE 70 WHEN - 31 + 85 THEN 71 WHEN 30 THEN NULL ELSE - COUNT ( DISTINCT 7 ) END * + 63 * - 11
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5512
SELECT ALL 12 + - 26 + - + 14 DIV + - 34
----
-14

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL 12 + - 26 + - + 14 / + - 34
----
-14

query I rowsort
SELECT + 18 * + 80 * + - 50 AS col1
----
-72000

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5515
SELECT ALL 6 + - - COALESCE ( - 33, + MAX( + 75 ) DIV - ( - + 17 ) * - - 63 * + COUNT( * ) * - 69 * + 30 * - + 55 + + 52 + + 0 + - 82 * + 76 ) DIV - + 37 * - + 58 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL 6 + - - COALESCE ( - 33, + MAX ( + 75 ) / - ( - + 17 ) * - - 63 * + COUNT ( * ) * - 69 * + 30 * - + 55 + + 52 + + 0 + - 82 * + 76 ) / - + 37 * - + 58 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT - COALESCE ( + 70, - + 10 + - 78, + - 1, - 44 + - COUNT( * ) )
----
-70

skipif mysql # not compatible
query I rowsort label-5516
SELECT - COALESCE ( + 70, - + 10 + - 78, + - 1, - 44 + - COUNT ( * ) )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5517
SELECT ALL 76 + + ( COUNT( DISTINCT + + 79 ) ) + + 48 * - + MAX( 83 ) * + + 87 + + + CAST( - 95 AS SIGNED ) + 16 + + 42
----
-346568

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL 76 + + ( COUNT ( DISTINCT + + 79 ) ) + + 48 * - + MAX ( 83 ) * + + 87 + + + CAST ( - 95 AS INTEGER ) + 16 + + 42
----
-346568

onlyif mysql # aggregate syntax: 
query II rowsort label-5518
SELECT 80 AS col0, COUNT( * ) - COUNT( * ) - 8 * + 19 * - 77 * - 31
----
80
-362824

skipif mysql # not compatible
query II rowsort label-5518
SELECT 80 AS col0, COUNT ( * ) - COUNT ( * ) - 8 * + 19 * - 77 * - 31
----
80
-362824

query I rowsort
SELECT + COALESCE ( + 50, + 92 ) * + 1 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT + SUM( - 74 ) * + CASE - + 45 WHEN - - 48 THEN - - 95 ELSE NULL END / + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-5520
SELECT + SUM ( - 74 ) * + CASE - + 45 WHEN - - 48 THEN - - 95 ELSE NULL END / + - 11
----
NULL

query I rowsort
SELECT + 10 + - 44 AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query III rowsort label-5522
SELECT ALL 36 DIV - 45 - - - 55 * + 43 + 32 AS col1, ( - - NULLIF ( + - 35, - + CAST( NULL AS SIGNED ) * - + CAST( NULL AS SIGNED ) * - 67 * - - COUNT( * ) - - COUNT( * ) + - 90 * - 10 DIV - 45 * + - SUM( - CAST( NULL AS DECIMAL ) ) ) ) - ( + 20 ) * 86 AS col0, + 90 + + CASE CASE - + COUNT( * ) WHEN 0 + + 91 THEN + 62 WHEN + + 15 - 27 * - 56 THEN - MAX( 7 ) * + 79 END WHEN + 84 THEN NULL WHEN 65 THEN + CASE 71 WHEN COALESCE ( 73, - 68 ) * - 68 THEN NULL WHEN + COUNT( * ) THEN 93 + - ( CAST( NULL AS SIGNED ) + ( ( 87 ) + - 7 ) ) END END
----
-2333
-1755
NULL

skipif mysql # not compatible
query III rowsort label-5522
SELECT ALL 36 / - 45 - - - 55 * + 43 + 32 AS col1, ( - - NULLIF ( + - 35, - + CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS INTEGER ) * - 67 * - - COUNT ( * ) - - COUNT ( * ) + - 90 * - 10 / - 45 * + - SUM ( - CAST ( NULL AS REAL ) ) ) ) - ( + 20 ) * 86 AS col0, + 90 + + CASE CASE - + COUNT ( * ) WHEN 0 + + 91 THEN + 62 WHEN + + 15 - 27 * - 56 THEN - MAX ( 7 ) * + 79 END WHEN + 84 THEN NULL WHEN 65 THEN + CASE 71 WHEN COALESCE ( 73, - 68 ) * - 68 THEN NULL WHEN + COUNT ( * ) THEN 93 + - ( CAST ( NULL AS INTEGER ) + ( ( 87 ) + - 7 ) ) END END
----
-2333
-1755
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5523
SELECT 14 DIV - 21 + + - 15 + + + 16
----
1

skipif mysql # not compatible
query I rowsort label-5523
SELECT 14 / - 21 + + - 15 + + + 16
----
1

query I rowsort
SELECT ALL + 78 * + 66 AS col0
----
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT ALL - 50 * - COUNT( - 79 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL - 50 * - COUNT ( - 79 ) AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5526
SELECT - + 20 DIV 21 - + COUNT( * ) + - 38 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-5526
SELECT - + 20 / 21 - + COUNT ( * ) + - 38 AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5527
SELECT - COUNT( * ) + + - 23 DIV + 46 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5527
SELECT - COUNT ( * ) + + - 23 / + 46 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5528
SELECT ALL 91 * + 41 * CAST( + 45 AS SIGNED ) + - + SUM( + 43 )
----
167852

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL 91 * + 41 * CAST ( + 45 AS INTEGER ) + - + SUM ( + 43 )
----
167852

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT - + COALESCE ( + 6, + 40, 28 * + 78 + - 79 ) * + - COUNT( * ) * - - ( + + ( - 74 ) ) AS col2
----
-444

skipif mysql # not compatible
query I rowsort label-5530
SELECT - + COALESCE ( + 6, + 40, 28 * + 78 + - 79 ) * + - COUNT ( * ) * - - ( + + ( - 74 ) ) AS col2
----
-444

query I rowsort
SELECT - - 60 + - + 10 AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5532
SELECT ALL + CASE 82 WHEN NULLIF ( - + CAST( + 38 AS SIGNED ), 71 DIV + - 41 ) THEN - - 55 ELSE 44 - 1 DIV - 71 END AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL + CASE 82 WHEN NULLIF ( - + CAST ( + 38 AS INTEGER ), 71 / + - 41 ) THEN - - 55 ELSE 44 - 1 / - 71 END AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5533
SELECT DISTINCT - - ( COALESCE ( + - 41, + 37 ) ) * - 50 * + 54 * - - 26 * - COUNT( * ) * - COUNT( * ) * + + 73 + 58 + + + 33 * - CAST( NULL AS SIGNED ) + 76 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT - - ( COALESCE ( + - 41, + 37 ) ) * - 50 * + 54 * - - 26 * - COUNT ( * ) * - COUNT ( * ) * + + 73 + 58 + + + 33 * - CAST ( NULL AS INTEGER ) + 76 - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5534
SELECT ALL + 74 * 13 * CASE + 61 WHEN + 75 * 0 THEN NULL WHEN - 35 THEN NULL ELSE + 14 * + - MIN( DISTINCT 46 ) END + + + CAST( 31 AS SIGNED )
----
-619497

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL + 74 * 13 * CASE + 61 WHEN + 75 * 0 THEN NULL WHEN - 35 THEN NULL ELSE + 14 * + - MIN ( DISTINCT 46 ) END + + + CAST ( 31 AS INTEGER )
----
-619497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5535
SELECT ALL + CAST( NULL AS SIGNED ) * - - 97 + + - COUNT( * ) AS col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5536
SELECT DISTINCT + 24 AS col0, 18 * + 29 * + 0 * + 35 * 95 * + - CAST( 95 AS SIGNED ) AS col1
----
24
0

skipif mysql # not compatible
query II rowsort label-5536
SELECT DISTINCT + 24 AS col0, 18 * + 29 * + 0 * + 35 * 95 * + - CAST ( 95 AS INTEGER ) AS col1
----
24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT DISTINCT - COUNT( * ) * - 86 + + + 94 + + 14 AS col2
----
194

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT - COUNT ( * ) * - 86 + + + 94 + + 14 AS col2
----
194

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5538
SELECT - ( + - 28 ) + MAX( 21 ) + 95 * + - 49 * + CASE 77 WHEN - 23 THEN + 93 + + 92 * + 24 * - CAST( NULL AS DECIMAL ) ELSE NULL END * - + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5538
SELECT - ( + - 28 ) + MAX ( 21 ) + 95 * + - 49 * + CASE 77 WHEN - 23 THEN + 93 + + 92 * + 24 * - CAST ( NULL AS REAL ) ELSE NULL END * - + 20
----
NULL

query I rowsort
SELECT - - 27 * + 71 * 19 AS col2
----
36423

query I rowsort
SELECT ALL - 81 + - 4
----
-85

query I rowsort
SELECT ALL + 27 + - 95
----
-68

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

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

query I rowsort
SELECT - 94 + 20
----
-74

query I rowsort
SELECT ALL - 82 + - + 92
----
-174

onlyif mysql # aggregate syntax: 
query II rowsort label-5545
SELECT ALL 86, ( 66 ) * + + SUM( + 78 ) AS col0
----
86
5148

skipif mysql # not compatible
query II rowsort label-5545
SELECT ALL 86, ( 66 ) * + + SUM ( + 78 ) AS col0
----
86
5148

query II rowsort
SELECT 41 AS col1, + 80 + + 75
----
41
155

query I rowsort
SELECT - ( + + 37 ) + + + 10 * 78 + - 61
----
682

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

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

query I rowsort
SELECT DISTINCT 76 * - 48
----
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT - SUM( + 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-5550
SELECT - SUM ( + 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT ALL 22 * MIN( ALL + 46 ) * - 58 * COUNT( * ) * - 72 AS col1
----
4226112

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL 22 * MIN ( ALL + 46 ) * - 58 * COUNT ( * ) * - 72 AS col1
----
4226112

query I rowsort
SELECT + 34 * 25
----
850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5553
SELECT 13 + - COUNT( - 8 ) + - + COUNT( * ) DIV - + 87 + + 29 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-5553
SELECT 13 + - COUNT ( - 8 ) + - + COUNT ( * ) / - + 87 + + 29 AS col2
----
41

query I rowsort
SELECT 83 * - 27 + + 13
----
-2228

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT COALESCE ( 1, - 23, - - 13 + - 45 ) * - 60 + + COUNT( * ) col0
----
-59

skipif mysql # not compatible
query I rowsort label-5555
SELECT COALESCE ( 1, - 23, - - 13 + - 45 ) * - 60 + + COUNT ( * ) col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5556
SELECT ALL COUNT( DISTINCT ( CAST( NULL AS SIGNED ) ) ) * - 79 DIV - 46 + + 85 * 51 + + + 79
----
4414

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL COUNT ( DISTINCT ( CAST ( NULL AS INTEGER ) ) ) * - 79 / - 46 + + 85 * 51 + + + 79
----
4414

query II rowsort
SELECT 57 col1, 57 * 64 * - - 68 + + 26 AS col2
----
57
248090

onlyif mysql # aggregate syntax: 
query II rowsort label-5558
SELECT ALL + 19 * 54 * + MAX( DISTINCT - - 16 ) AS col2, - 11 * + 79 AS col0
----
16416
-869

skipif mysql # not compatible
query II rowsort label-5558
SELECT ALL + 19 * 54 * + MAX ( DISTINCT - - 16 ) AS col2, - 11 * + 79 AS col0
----
16416
-869

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

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

query II rowsort
SELECT DISTINCT - 71, - 70 col2
----
-71
-70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT ALL - 13 DIV - 18 + + 69
----
69

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL - 13 / - 18 + + 69
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5564
SELECT + CASE + - COUNT( * ) WHEN 24 * 48 + 30 * + COALESCE ( 29, + 54, 84 + + + 97 + + 63 + - - 4, - CAST( NULL AS SIGNED ) / 65 ) / 66 THEN 93 END * + 38 - - 54 * - 7 * + CAST( 91 AS SIGNED ) col0, + 56 + - + 90 AS col1
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-5564
SELECT + CASE + - COUNT ( * ) WHEN 24 * 48 + 30 * + COALESCE ( 29, + 54, 84 + + + 97 + + 63 + - - 4, - CAST ( NULL AS INTEGER ) / 65 ) / 66 THEN 93 END * + 38 - - 54 * - 7 * + CAST ( 91 AS INTEGER ) col0, + 56 + - + 90 AS col1
----
NULL
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-5565
SELECT ALL - 69 DIV - + 41 + 92 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL - 69 / - + 41 + 92 AS col1
----
93

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5568
SELECT + 99 AS col2, CAST( NULL AS SIGNED ) AS col1
----
99
NULL

skipif mysql # not compatible
query II rowsort label-5568
SELECT + 99 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
99
NULL

query I rowsort
SELECT 83 * + 63 + - 81
----
5148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5570
SELECT CAST( NULL AS SIGNED ) * + 50 + - AVG ( DISTINCT + - ( 30 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5570
SELECT CAST ( NULL AS INTEGER ) * + 50 + - AVG ( DISTINCT + - ( 30 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 28 + + + 26
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL 92 * 53 * - COUNT( - 8 )
----
-4876

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL 92 * 53 * - COUNT ( - 8 )
----
-4876

query I rowsort
SELECT - 88 * + 22 * + 57 - - NULLIF ( + 42, + - 76 * COALESCE ( 49, + + 59 ) ) - 78 + - 97 AS col0
----
-110485

onlyif mysql # aggregate syntax: 
query II rowsort label-5574
SELECT ALL - + 75, - COUNT( * ) + - - 20 + 31 + 78 + 49 * - 24 AS col0
----
-75
-1048

skipif mysql # not compatible
query II rowsort label-5574
SELECT ALL - + 75, - COUNT ( * ) + - - 20 + 31 + 78 + 49 * - 24 AS col0
----
-75
-1048

query I rowsort
SELECT DISTINCT - 26 + 39 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5576
SELECT 67, 51 * COUNT( * ) AS col0
----
67
51

skipif mysql # not compatible
query II rowsort label-5576
SELECT 67, 51 * COUNT ( * ) AS col0
----
67
51

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

query II rowsort
SELECT - 7, 11 * + 88 * + + 6 col2
----
-7
5808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5579
SELECT + CAST( + 16 AS DECIMAL ) * - 59 * - 30 + + - 0 + + 26 + - 17 / CASE 3 WHEN 39 + ( 64 ) * - - 3 + - 35 + CAST( 7 AS SIGNED ) + COUNT( * ) THEN COUNT( * ) ELSE NULL END + 88 * - + CAST( NULL AS SIGNED ) * 53 + + 25 + + NULLIF ( - - COALESCE ( - - 1, + 44 ), + 9 ) + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT + CAST ( + 16 AS REAL ) * - 59 * - 30 + + - 0 + + 26 + - 17 / CASE 3 WHEN 39 + ( 64 ) * - - 3 + - 35 + CAST ( 7 AS INTEGER ) + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END + 88 * - + CAST ( NULL AS INTEGER ) * 53 + + 25 + + NULLIF ( - - COALESCE ( - - 1, + 44 ), + 9 ) + 77
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5580
SELECT ALL CAST( NULL AS SIGNED ) + + 20 - + 59 * - + COUNT( * ) + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL CAST ( NULL AS INTEGER ) + + 20 - + 59 * - + COUNT ( * ) + + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL COUNT( ALL 84 ) + - 72
----
-71

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL COUNT ( ALL 84 ) + - 72
----
-71

query I rowsort
SELECT DISTINCT + 4 * - + 41 AS col1
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL - MIN( ALL 52 ) - 32
----
-84

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL - MIN ( ALL 52 ) - 32
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5584
SELECT DISTINCT + CASE - + 39 WHEN + 21 THEN NULL ELSE + 56 END * - - 91 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT + CASE - + 39 WHEN + 21 THEN NULL ELSE + 56 END * - - 91 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 5 * - 91
----
-455

query I rowsort
SELECT 68 * 6 AS col1
----
408

query I rowsort
SELECT 75 - - 2 col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5588
SELECT 23 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-5588
SELECT 23 / + 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT 94 * - 72 * - + CASE 19 WHEN + + 38 * + ( + COUNT( * ) ) THEN NULL ELSE + - COALESCE ( - SUM( ALL - + CASE 98 WHEN 54 THEN - - NULLIF ( + + 39, - 7 ) + + 19 ELSE NULL END ), + 3 ) END
----
-20304

skipif mysql # not compatible
query I rowsort label-5589
SELECT 94 * - 72 * - + CASE 19 WHEN + + 38 * + ( + COUNT ( * ) ) THEN NULL ELSE + - COALESCE ( - SUM ( ALL - + CASE 98 WHEN 54 THEN - - NULLIF ( + + 39, - 7 ) + + 19 ELSE NULL END ), + 3 ) END
----
-20304

query I rowsort
SELECT DISTINCT + 33 * + 97
----
3201

onlyif mysql # DIV for integer division: 
query I rowsort label-5591
SELECT DISTINCT 10 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT 10 / + 79
----
0

query I rowsort
SELECT 10 - 11 * - 23 + - 0 * + + 3 - - 2
----
265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT DISTINCT - CAST( + COALESCE ( + 47, + + 32 * + 8 * + 6 + - 52 ) AS SIGNED ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT - CAST ( + COALESCE ( + 47, + + 32 * + 8 * + 6 + - 52 ) AS INTEGER ) AS col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5594
SELECT + CASE MAX( - 3 ) WHEN + - 77 + CAST( NULL AS SIGNED ) THEN NULL WHEN 70 THEN + ( - 58 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT + CASE MAX ( - 3 ) WHEN + - 77 + CAST ( NULL AS INTEGER ) THEN NULL WHEN 70 THEN + ( - 58 ) END
----
NULL

query I rowsort
SELECT + 31 * - ( + 98 ) AS col2
----
-3038

query II rowsort
SELECT 21 + 20 AS col1, 40 AS col0
----
41
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5597
SELECT + - 40 DIV - 62 + + 61 + 87 - - 72 + - + 17 * - 34 * + NULLIF ( + + 38, MAX( ALL ( + - 72 ) ) + - ( 50 ) * - + 2 - - 56 )
----
22184

skipif mysql # not compatible
query I rowsort label-5597
SELECT + - 40 / - 62 + + 61 + 87 - - 72 + - + 17 * - 34 * + NULLIF ( + + 38, MAX ( ALL ( + - 72 ) ) + - ( 50 ) * - + 2 - - 56 )
----
22184

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT + COUNT( * ) * - 49 * COUNT( * ) * + 44 + - 80 col2
----
-2236

skipif mysql # not compatible
query I rowsort label-5598
SELECT + COUNT ( * ) * - 49 * COUNT ( * ) * + 44 + - 80 col2
----
-2236

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

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

skipif mysql # not compatible
query I rowsort label-5600
SELECT - ( + COUNT ( * ) ) / 1 + + + 26
----
25

query I rowsort
SELECT ALL 36 + + - ( + 84 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT + + NULLIF ( SUM( - + 96 ), 82 / - NULLIF ( - - 76, - - 62 + + 92 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-5602
SELECT + + NULLIF ( SUM ( - + 96 ), 82 / - NULLIF ( - - 76, - - 62 + + 92 ) )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5603
SELECT ALL + + COUNT( * ) * + 36, 98 + ( + SUM( 16 ) ) AS col1
----
36
114

skipif mysql # not compatible
query II rowsort label-5603
SELECT ALL + + COUNT ( * ) * + 36, 98 + ( + SUM ( 16 ) ) AS col1
----
36
114

onlyif mysql # DIV for integer division: 
query II rowsort label-5604
SELECT + ( - 27 ) DIV + 28, + 18 AS col0
----
0
18

skipif mysql # not compatible
query II rowsort label-5604
SELECT + ( - 27 ) / + 28, + 18 AS col0
----
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT + COUNT( * ) + + 16 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5605
SELECT + COUNT ( * ) + + 16 AS col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT DISTINCT + 63 DIV 11 DIV + - 60
----
0

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT + 63 / 11 / + - 60
----
0

query I rowsort
SELECT + 32 * - 24 + 11 * + - 83 AS col0
----
-1681

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT - 0 / - 52 + 66 + - - CASE + 58 WHEN + - 27 * 61 + ( - ( 81 ) ) + + 57 THEN - + NULLIF ( - COUNT( * ), - - 40 * - 72 + + - SUM( - 4 ) ) WHEN + 92 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT - 0 / - 52 + 66 + - - CASE + 58 WHEN + - 27 * 61 + ( - ( 81 ) ) + + 57 THEN - + NULLIF ( - COUNT ( * ), - - 40 * - 72 + + - SUM ( - 4 ) ) WHEN + 92 THEN NULL END
----
NULL

query I rowsort
SELECT 59 * - 35
----
-2065

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT CASE + ( - 28 ) WHEN - NULLIF ( - 58, ( - 22 ) + - - 26 + - COUNT( * ) ) THEN NULL WHEN ( COUNT( * ) ) / - 72 THEN - 23 * + COUNT( * ) + 49 + - 33 END * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5610
SELECT CASE + ( - 28 ) WHEN - NULLIF ( - 58, ( - 22 ) + - - 26 + - COUNT ( * ) ) THEN NULL WHEN ( COUNT ( * ) ) / - 72 THEN - 23 * + COUNT ( * ) + 49 + - 33 END * + 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5611
SELECT ALL CAST( + + 5 AS SIGNED ) - - 99 + + 4 DIV - COUNT( * ) col1
----
100

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL CAST ( + + 5 AS INTEGER ) - - 99 + + 4 / - COUNT ( * ) col1
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT DISTINCT 18 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT 18 / 88
----
0

query I rowsort
SELECT ALL - 64 - + 8 + ( + 28 )
----
-44

query I rowsort
SELECT DISTINCT + 9 * 1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT CAST( + ( - 17 ) AS SIGNED ) * 40 AS col0
----
-680

skipif mysql # not compatible
query I rowsort label-5615
SELECT CAST ( + ( - 17 ) AS INTEGER ) * 40 AS col0
----
-680

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5617
SELECT + COUNT( * ) + - - NULLIF ( - 99, + CAST( NULL AS SIGNED ) + 5 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-5617
SELECT + COUNT ( * ) + - - NULLIF ( - 99, + CAST ( NULL AS INTEGER ) + 5 ) AS col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5618
SELECT + CAST( - 10 AS SIGNED ) * - ( + 44 )
----
440

skipif mysql # not compatible
query I rowsort label-5618
SELECT + CAST ( - 10 AS INTEGER ) * - ( + 44 )
----
440

query II rowsort
SELECT - 93 * ( - + 58 ) col0, 34 + 28
----
5394
62

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

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

query I rowsort
SELECT - 11 - - + 80
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT + CASE + - 89 WHEN 13 - - 78 THEN + 43 + - CAST( NULL AS SIGNED ) END + - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5622
SELECT + CASE + - 89 WHEN 13 - - 78 THEN + 43 + - CAST ( NULL AS INTEGER ) END + - 41 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5624
SELECT - 57 * + 12 * - CAST( + - ( + 45 ) AS SIGNED ) AS col0
----
-30780

skipif mysql # not compatible
query I rowsort label-5624
SELECT - 57 * + 12 * - CAST ( + - ( + 45 ) AS INTEGER ) AS col0
----
-30780

onlyif mysql # DIV for integer division: 
query I rowsort label-5625
SELECT - 75 + - 98 + 50 DIV + + 4
----
-161

skipif mysql # not compatible
query I rowsort label-5625
SELECT - 75 + - 98 + 50 / + + 4
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT + 21 * SUM( ALL NULLIF ( + 78, + 38 ) )
----
1638

skipif mysql # not compatible
query I rowsort label-5626
SELECT + 21 * SUM ( ALL NULLIF ( + 78, + 38 ) )
----
1638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5627
SELECT - 27 + - - 31 + + - 29 / - CAST( NULL AS SIGNED ) * + 95 / + 97 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT - 27 + - - 31 + + - 29 / - CAST ( NULL AS INTEGER ) * + 95 / + 97 col1
----
NULL

query I rowsort
SELECT ALL - 56 + + 60
----
4

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

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

query I rowsort
SELECT + - 38 * - 29 * + 42
----
46284

query I rowsort
SELECT - 1 + + 85 + - 50 * - ( 56 ) * + - 9 * + 71 * - + 5 + + 58 AS col0
----
8946142

onlyif mysql # aggregate syntax: 
query II rowsort label-5632
SELECT 41 AS col0, + 35 + + 76 * - - CASE - COUNT( * ) WHEN + 33 THEN + 11 ELSE NULL END * 55 + + + NULLIF ( - - NULLIF ( - + 19, 1 + 58 ), - 0 - + 51 / 73 ) * - - COUNT( * ) + - + 3
----
41
NULL

skipif mysql # not compatible
query II rowsort label-5632
SELECT 41 AS col0, + 35 + + 76 * - - CASE - COUNT ( * ) WHEN + 33 THEN + 11 ELSE NULL END * 55 + + + NULLIF ( - - NULLIF ( - + 19, 1 + 58 ), - 0 - + 51 / 73 ) * - - COUNT ( * ) + - + 3
----
41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT DISTINCT CASE 18 WHEN + 60 - + 79 / - + 58 * - + ( - - MIN( DISTINCT 90 ) ) THEN - - 90 WHEN - 71 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT CASE 18 WHEN + 60 - + 79 / - + 58 * - + ( - - MIN ( DISTINCT 90 ) ) THEN - - 90 WHEN - 71 THEN NULL ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL - - NULLIF ( - ( 28 ), - - 6 ) + - 75 + 85 AS col0, COALESCE ( - 49, + - 11 )
----
-18
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT 41 * + 87 + + 95 + + - COALESCE ( - - NULLIF ( - 3, - - 88 ), 96 * + 33 + + COUNT( * ) + - 82 * - 43, - 39 ) AS col1
----
3665

skipif mysql # not compatible
query I rowsort label-5635
SELECT 41 * + 87 + + 95 + + - COALESCE ( - - NULLIF ( - 3, - - 88 ), 96 * + 33 + + COUNT ( * ) + - 82 * - 43, - 39 ) AS col1
----
3665

query I rowsort
SELECT - 68 * - - 39
----
-2652

query I rowsort
SELECT ALL + ( + + 44 ) * + - 36 + 73 * 26
----
314

query II rowsort
SELECT 78 col1, - 0
----
78
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5639
SELECT ALL - 14 * + 33 + 26 + - 37 * - NULLIF ( + COUNT( * ), - COALESCE ( + 19, - - 88, + ( - CASE 77 WHEN - 95 * ( 80 ) THEN - - ( - CAST( - 8 AS SIGNED ) ) * - - 38 + - ( - 82 ) * - COALESCE ( + 26, + 58 + - - CAST( - 61 AS SIGNED ), + 84 ) + - 17 WHEN 13 THEN NULL WHEN MAX( - + 41 ) THEN NULL END ) ) * 57 + + 56 ) AS col1
----
-399

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL - 14 * + 33 + 26 + - 37 * - NULLIF ( + COUNT ( * ), - COALESCE ( + 19, - - 88, + ( - CASE 77 WHEN - 95 * ( 80 ) THEN - - ( - CAST ( - 8 AS INTEGER ) ) * - - 38 + - ( - 82 ) * - COALESCE ( + 26, + 58 + - - CAST ( - 61 AS INTEGER ), + 84 ) + - 17 WHEN 13 THEN NULL WHEN MAX ( - + 41 ) THEN NULL END ) ) * 57 + + 56 ) AS col1
----
-399

query I rowsort
SELECT DISTINCT + + 60 * - 79 * 38 + - - 37 AS col2
----
-180083

query II rowsort
SELECT + 7, - 91 * - + 95 AS col2
----
7
8645

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT ALL - - 95 * - - COUNT( * ) + - 71 + - 65 + - + 72 * - + 77
----
5503

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL - - 95 * - - COUNT ( * ) + - 71 + - 65 + - + 72 * - + 77
----
5503

query I rowsort
SELECT 45 * - 6 - + - 60
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5644
SELECT - 18 AS col0, CAST( - ( - - 71 ) AS SIGNED )
----
-18
-71

skipif mysql # not compatible
query II rowsort label-5644
SELECT - 18 AS col0, CAST ( - ( - - 71 ) AS INTEGER )
----
-18
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5645
SELECT ALL - 34 * + COALESCE ( - - 85, 58 ) * - CAST( 87 AS SIGNED ) AS col0
----
251430

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL - 34 * + COALESCE ( - - 85, 58 ) * - CAST ( 87 AS INTEGER ) AS col0
----
251430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5646
SELECT + + 13 * - CAST( NULL AS SIGNED ) - - 49 * + + ( - - 17 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT + + 13 * - CAST ( NULL AS INTEGER ) - - 49 * + + ( - - 17 ) col0
----
NULL

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

query I rowsort
SELECT - - 79 * + 54
----
4266

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT ALL 71 * + + 93 - COUNT( * ) AS col2
----
6602

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL 71 * + + 93 - COUNT ( * ) AS col2
----
6602

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT CASE WHEN NOT NULL IS NULL OR NOT NULL IS NOT NULL THEN 61 ELSE + SUM( - 88 ) END
----
61

skipif mysql # not compatible
query I rowsort label-5650
SELECT CASE WHEN NOT NULL IS NULL OR NOT NULL IS NOT NULL THEN 61 ELSE + SUM ( - 88 ) END
----
61

query I rowsort
SELECT DISTINCT - 5 * - 87
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT 32 * - COUNT( * ) - 22
----
-54

skipif mysql # not compatible
query I rowsort label-5652
SELECT 32 * - COUNT ( * ) - 22
----
-54

query I rowsort
SELECT - 35 * - 84
----
2940

onlyif mysql # aggregate syntax: 
query II rowsort label-5654
SELECT COUNT( ALL + - 96 ) AS col2, - ( - - 42 ) AS col2
----
1
-42

skipif mysql # not compatible
query II rowsort label-5654
SELECT COUNT ( ALL + - 96 ) AS col2, - ( - - 42 ) AS col2
----
1
-42

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5656
SELECT + MAX( - - 46 ) DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-5656
SELECT + MAX ( - - 46 ) / 54
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5657
SELECT ALL 99 DIV + 27
----
3

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL 99 / + 27
----
3

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

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

query I rowsort
SELECT + NULLIF ( 8, + + 46 ) * + + 53 + - 15 + + + 40
----
449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5660
SELECT ALL CAST( ( - - 58 ) AS SIGNED ) col2
----
58

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL CAST ( ( - - 58 ) AS INTEGER ) col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5661
SELECT + 58 DIV + 2
----
29

skipif mysql # not compatible
query I rowsort label-5661
SELECT + 58 / + 2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL 64 + 79 + - COUNT( * ) * 39 col1
----
104

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL 64 + 79 + - COUNT ( * ) * 39 col1
----
104

query I rowsort
SELECT ALL 28 * + + 93 AS col0
----
2604

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5665
SELECT ALL 57 * - CASE - 42 WHEN COUNT( * ) * 64 THEN NULL WHEN - - 40 * - - 72 * + 76 - - COALESCE ( - 54, + - COUNT( * ) * - + 47 ) * 5 / + + COALESCE ( - COUNT( * ), 24, + + 54, + 73 ) + - 13 + + + NULLIF ( 39, + 68 ) THEN - CAST( + COALESCE ( + ( MIN( DISTINCT + + 52 ) ), + NULLIF ( - 3, - ( + + 54 ) ), - - 71, - 38 ) AS SIGNED ) - - + 85 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL 57 * - CASE - 42 WHEN COUNT ( * ) * 64 THEN NULL WHEN - - 40 * - - 72 * + 76 - - COALESCE ( - 54, + - COUNT ( * ) * - + 47 ) * 5 / + + COALESCE ( - COUNT ( * ), 24, + + 54, + 73 ) + - 13 + + + NULLIF ( 39, + 68 ) THEN - CAST ( + COALESCE ( + ( MIN ( DISTINCT + + 52 ) ), + NULLIF ( - 3, - ( + + 54 ) ), - - 71, - 38 ) AS INTEGER ) - - + 85 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 39 - 85 * 11 AS col0
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT DISTINCT CASE - + 42 WHEN + 28 THEN - SUM( DISTINCT - 50 ) + + CASE + 90 WHEN 66 - + - 6 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN - 77 THEN + 93 END * - - COUNT( * ) WHEN 68 * 49 THEN - COUNT( * ) * - + 16 WHEN 93 THEN 73 * 98 END + - + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT CASE - + 42 WHEN + 28 THEN - SUM ( DISTINCT - 50 ) + + CASE + 90 WHEN 66 - + - 6 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN - 77 THEN + 93 END * - - COUNT ( * ) WHEN 68 * 49 THEN - COUNT ( * ) * - + 16 WHEN 93 THEN 73 * 98 END + - + 40 AS col0
----
NULL

query I rowsort
SELECT + 15 - + 75 col2
----
-60

query I rowsort
SELECT ALL - 82 + + - 7 AS col2
----
-89

query I rowsort
SELECT + + 76 - - 42 * + ( - - 43 )
----
1882

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5672
SELECT ALL NULLIF ( + + CAST( + 68 AS SIGNED ), + 73 + + + AVG ( ALL 6 ) )
----
68

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL NULLIF ( + + CAST ( + 68 AS INTEGER ), + 73 + + + AVG ( ALL 6 ) )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5673
SELECT ALL + COUNT( * ) + + 10 col2, - 87 AS col1
----
11
-87

skipif mysql # not compatible
query II rowsort label-5673
SELECT ALL + COUNT ( * ) + + 10 col2, - 87 AS col1
----
11
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT - CAST( - 45 AS SIGNED ) - 6 * - - 83 + + 48
----
-405

skipif mysql # not compatible
query I rowsort label-5674
SELECT - CAST ( - 45 AS INTEGER ) - 6 * - - 83 + + 48
----
-405

query I rowsort
SELECT ALL - 41 + + 57 - + 79 + + 92 + - - 87 * - - 8 * + 10 * - + NULLIF ( + 90, 64 * - + ( + 65 ) * - 9 + - 43 + + 98 ) * 80
----
-50111971

query I rowsort
SELECT - 88 - - - 9 + - - 77
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5677
SELECT ALL MAX( ALL 24 ) DIV - - 3 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL MAX ( ALL 24 ) / - - 3 AS col2
----
8

query I rowsort
SELECT DISTINCT - 97 * + 52 * - + 40 + + + 60
----
201820

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT - + 69 * - 12 * + 41 - + - ( - MAX( DISTINCT 23 ) )
----
33925

skipif mysql # not compatible
query I rowsort label-5679
SELECT - + 69 * - 12 * + 41 - + - ( - MAX ( DISTINCT 23 ) )
----
33925

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5680
SELECT COUNT( * ) * + + 78 * + - 1 + + - 29 DIV - - 10 - + 65 + + + ( 51 ) * - + 4 * + 75 + 23 * - COUNT( - 2 ) + - + 97 AS col0, 92
----
-15565
92

skipif mysql # not compatible
query II rowsort label-5680
SELECT COUNT ( * ) * + + 78 * + - 1 + + - 29 / - - 10 - + 65 + + + ( 51 ) * - + 4 * + 75 + 23 * - COUNT ( - 2 ) + - + 97 AS col0, 92
----
-15565
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5681
SELECT - - COUNT( + + 56 ) - - 36 * + 71 * - 85 * CAST( NULL AS SIGNED ) + - - 22 - + 16 / COUNT( * ) AS col1, + 75 * + 11 AS col2
----
NULL
825

skipif mysql # not compatible
query II rowsort label-5681
SELECT - - COUNT ( + + 56 ) - - 36 * + 71 * - 85 * CAST ( NULL AS INTEGER ) + - - 22 - + 16 / COUNT ( * ) AS col1, + 75 * + 11 AS col2
----
NULL
825

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

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

query I rowsort
SELECT + + 51 * - NULLIF ( 85, - + 82 ) * + 70 + + - 3
----
-303453

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

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

query II rowsort
SELECT ALL + NULLIF ( + 88, + + 5 ) AS col0, ( + 43 ) AS col0
----
88
43

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

query I rowsort
SELECT ALL + 29 + + 56 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL COUNT( * ) + CASE 37 WHEN - 54 THEN + 46 END + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL COUNT ( * ) + CASE 37 WHEN - 54 THEN + 46 END + 65 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5689
SELECT DISTINCT + MIN( ALL - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) + + - 39 * - 20 - - 61 * 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT + MIN ( ALL - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + - 39 * - 20 - - 61 * 22 AS col2
----
NULL

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

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

query I rowsort
SELECT 9 + + 35 AS col0
----
44

query I rowsort
SELECT 19 + - 20
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5693
SELECT 54 - + 59 DIV + 72
----
54

skipif mysql # not compatible
query I rowsort label-5693
SELECT 54 - + 59 / + 72
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5694
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 47 / - 8 + + 93 + 73 + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5694
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 47 / - 8 + + 93 + 73 + - 15
----
NULL

query I rowsort
SELECT DISTINCT - 92 + 14 col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT CASE - - 32 WHEN 1 THEN - 91 + + + 7 + - + 39 WHEN + 80 + + MIN( + + 35 ) THEN - 44 + ( 67 ) * - - 9 + 52 ELSE NULL END + - ( 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT CASE - - 32 WHEN 1 THEN - 91 + + + 7 + - + 39 WHEN + 80 + + MIN ( + + 35 ) THEN - 44 + ( 67 ) * - - 9 + 52 ELSE NULL END + - ( 81 )
----
NULL

query I rowsort
SELECT ALL - 59 - - 22
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL 47 * - COUNT( DISTINCT + - 94 )
----
-47

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL 47 * - COUNT ( DISTINCT + - 94 )
----
-47

query I rowsort
SELECT + 25 * - 34
----
-850

query I rowsort
SELECT DISTINCT 65 * - 71 col1
----
-4615

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

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

query I rowsort
SELECT 13 * + - 22 - + 42 + 68
----
-260

query II rowsort
SELECT ALL - 47, + 95 + + - NULLIF ( + 49, + 67 ) AS col0
----
-47
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5704
SELECT + COUNT( + CAST( - 33 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5704
SELECT + COUNT ( + CAST ( - 33 AS INTEGER ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5705
SELECT DISTINCT MAX( ALL + 69 ) * + + 40 + - CAST( NULL AS SIGNED ) - - 37 + + 90 / + 75 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT MAX ( ALL + 69 ) * + + 40 + - CAST ( NULL AS INTEGER ) - - 37 + + 90 / + 75 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5706
SELECT 4 DIV COALESCE ( 9, + 3 * - 7 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5706
SELECT 4 / COALESCE ( 9, + 3 * - 7 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5707
SELECT ALL + 60 * + 74 DIV + 37 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL + 60 * + 74 / + 37 AS col2
----
120

query II rowsort
SELECT ALL - 43 AS col1, + 58 + - - 2 + + 92 AS col0
----
-43
152

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT ALL - CASE + 56 WHEN - COUNT( * ) + + - 53 + 4 / COUNT( * ) THEN NULL WHEN - 29 THEN + 4 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL - CASE + 56 WHEN - COUNT ( * ) + + - 53 + 4 / COUNT ( * ) THEN NULL WHEN - 29 THEN + 4 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL 88 + + 69
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5712
SELECT DISTINCT - COUNT( DISTINCT + 12 ) + CASE + 98 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END / + + 34 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT - COUNT ( DISTINCT + 12 ) + CASE + 98 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END / + + 34 + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 19 + + 94 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT 6 * + MAX( - 85 ) - ( + - 28 ) + + 98 AS col0
----
-384

skipif mysql # not compatible
query I rowsort label-5714
SELECT 6 * + MAX ( - 85 ) - ( + - 28 ) + + 98 AS col0
----
-384

query I rowsort
SELECT 29 * ( + - 78 )
----
-2262

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT ALL - 97 + MAX( ALL + - ( - 68 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL - 97 + MAX ( ALL + - ( - 68 ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT ALL + COALESCE ( NULLIF ( - 39, + 78 ), + MAX( ALL + - 21 ) * - 52 * + + 38 + + 95 ) + - + 1 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL + COALESCE ( NULLIF ( - 39, + 78 ), + MAX ( ALL + - 21 ) * - 52 * + + 38 + + 95 ) + - + 1 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-5719
SELECT 49 AS col2, 1 * + ( + SUM( ALL - 88 ) ) + 26 - + NULLIF ( - 99, + 55 ) * - 43
----
49
-4319

skipif mysql # not compatible
query II rowsort label-5719
SELECT 49 AS col2, 1 * + ( + SUM ( ALL - 88 ) ) + 26 - + NULLIF ( - 99, + 55 ) * - 43
----
49
-4319

query I rowsort
SELECT 19 * + ( - 85 ) col2
----
-1615

query I rowsort
SELECT 43 * + 5 + 41 + - 42 * - 89
----
3994

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5723
SELECT + 43 * + + ( - COUNT( * ) ) * - 20 * - 9 - + 52 + ( 43 ) + 40 DIV + 81 * + - 91 AS col2
----
-7749

skipif mysql # not compatible
query I rowsort label-5723
SELECT + 43 * + + ( - COUNT ( * ) ) * - 20 * - 9 - + 52 + ( 43 ) + 40 / + 81 * + - 91 AS col2
----
-7749

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT DISTINCT + 63 * - + 99 * 82 + + COALESCE ( + MAX( DISTINCT + 25 ), - 66 ) AS col2
----
-511409

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT + 63 * - + 99 * 82 + + COALESCE ( + MAX ( DISTINCT + 25 ), - 66 ) AS col2
----
-511409

onlyif mysql # aggregate syntax: 
query II rowsort label-5725
SELECT DISTINCT + 39, - 49 - - - 5 * + - MIN( + 87 ) + + + 11 AS col2
----
39
397

skipif mysql # not compatible
query II rowsort label-5725
SELECT DISTINCT + 39, - 49 - - - 5 * + - MIN ( + 87 ) + + + 11 AS col2
----
39
397

query I rowsort
SELECT - 10 - + ( - + 83 )
----
73

query I rowsort
SELECT 90 + - 61 AS col1
----
29

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

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

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL - MAX ( ALL - 77 )
----
77

query I rowsort
SELECT + 59 * + + 10 * - 7 * 41 AS col1
----
-169330

query I rowsort
SELECT ALL - 97 * + 80
----
-7760

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

skipif mysql # not compatible
query I rowsort label-5732
SELECT COUNT ( * ) - 13 / COUNT ( * )
----
-12

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

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

query I rowsort
SELECT 59 - 32 AS col0
----
27

query I rowsort
SELECT + 26 * - 68
----
-1768

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT - - 48 + SUM( DISTINCT + 50 )
----
98

skipif mysql # not compatible
query I rowsort label-5736
SELECT - - 48 + SUM ( DISTINCT + 50 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT + - 67 * CASE - 16 WHEN 20 THEN + - 33 WHEN + - 62 - - 26 + + 23 THEN 38 + + 3 END / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5737
SELECT + - 67 * CASE - 16 WHEN 20 THEN + - 33 WHEN + - 62 - - 26 + + 23 THEN 38 + + 3 END / + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5738
SELECT ALL + 85 * 46 + + 45 DIV 34
----
3911

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL + 85 * 46 + + 45 / 34
----
3911

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT ALL COUNT( * ) * + 22 + 19 - - 44 - + 8 + + 72
----
149

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL COUNT ( * ) * + 22 + 19 - - 44 - + 8 + + 72
----
149

query I rowsort
SELECT DISTINCT + 89 * + 45 + + 99 AS col1
----
4104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5741
SELECT ALL - COUNT( * ) * - - 8 / ( - + CAST( + COUNT( * ) AS DECIMAL ) ) + + - 93 * - 4 + 87 - - + ( - 43 ) - + - CAST( NULL AS SIGNED ) + - ( + 39 ) * + + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL - COUNT ( * ) * - - 8 / ( - + CAST ( + COUNT ( * ) AS REAL ) ) + + - 93 * - 4 + 87 - - + ( - 43 ) - + - CAST ( NULL AS INTEGER ) + - ( + 39 ) * + + 69 AS col0
----
NULL

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

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

query I rowsort
SELECT + 11 + 71 * - - NULLIF ( CASE + 52 WHEN + + 76 THEN - 8 ELSE NULL END, - - 83 ) * + ( + + ( + 12 ) ) * - + 65 * - 67
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5744
SELECT DISTINCT - 12 * 31 + - 19 + - COALESCE ( 14, - 43 ) * - 19 AS col1, - COUNT( * ) - 7
----
-125
-8

skipif mysql # not compatible
query II rowsort label-5744
SELECT DISTINCT - 12 * 31 + - 19 + - COALESCE ( 14, - 43 ) * - 19 AS col1, - COUNT ( * ) - 7
----
-125
-8

query I rowsort
SELECT - 81 * 41 * 67 AS col1
----
-222507

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT + 93 + - 17 + + COUNT( * ) + - + 87 + - 15 * + - 6 + + COALESCE ( - MIN( + + 68 ), 68 * - 4 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5746
SELECT + 93 + - 17 + + COUNT ( * ) + - + 87 + - 15 * + - 6 + + COALESCE ( - MIN ( + + 68 ), 68 * - 4 ) AS col1
----
12

query I rowsort
SELECT ALL - 2 * + - 88 - 57 AS col2
----
119

query I rowsort
SELECT - 45 * 27 AS col2
----
-1215

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5749
SELECT ALL - 66 DIV - - 43 col1, CAST( + 3 AS SIGNED ) AS col1
----
-1
3

skipif mysql # not compatible
query II rowsort label-5749
SELECT ALL - 66 / - - 43 col1, CAST ( + 3 AS INTEGER ) AS col1
----
-1
3

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

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

query I rowsort
SELECT + CASE + 57 WHEN 72 THEN + 3 ELSE - 28 + + + 58 END + - 7 AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5752
SELECT + + CAST( + 29 AS SIGNED ) * + CAST( NULL AS SIGNED ) / - - 66 + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT + + CAST ( + 29 AS INTEGER ) * + CAST ( NULL AS INTEGER ) / - - 66 + 85 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5753
SELECT - 7 + + 70 * 91 DIV - 3 AS col0
----
-2130

skipif mysql # not compatible
query I rowsort label-5753
SELECT - 7 + + 70 * 91 / - 3 AS col0
----
-2130

query I rowsort
SELECT - 77 - + 30
----
-107

query II rowsort
SELECT DISTINCT + + 41 * + - 74 AS col0, + 57 * 31 AS col0
----
-3034
1767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5756
SELECT - COALESCE ( + + 8, - 52 + MAX( + 7 ) + + COALESCE ( + 52, - 91 + + CAST( 44 AS SIGNED ) * - ( + 40 ) ), - + 12 DIV + + COALESCE ( - ( ( + 56 ) ), - 78, + + SUM( - 94 ) ) ) + + COUNT( * ) DIV - + 60 + 1 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-5756
SELECT - COALESCE ( + + 8, - 52 + MAX ( + 7 ) + + COALESCE ( + 52, - 91 + + CAST ( 44 AS INTEGER ) * - ( + 40 ) ), - + 12 / + + COALESCE ( - ( ( + 56 ) ), - 78, + + SUM ( - 94 ) ) ) + + COUNT ( * ) / - + 60 + 1 AS col1
----
-7

query I rowsort
SELECT ALL + COALESCE ( + 84, 3, + 46 ) col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT ALL + COUNT( * ) * - 16 - - - 23
----
-39

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL + COUNT ( * ) * - 16 - - - 23
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT ALL + 7 * - CASE - 1 WHEN + 24 + + + 99 THEN - 89 * + - 73 + + 98 + + - 45 - + 57 * - 7 / 94 WHEN - 65 * COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL + 7 * - CASE - 1 WHEN + 24 + + + 99 THEN - 89 * + - 73 + + 98 + + - 45 - + 57 * - 7 / 94 WHEN - 65 * COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 57 * - - 60
----
3420

query I rowsort
SELECT - + 46 + + 57
----
11

query I rowsort
SELECT DISTINCT - 24 + + ( - ( + 46 ) ) * + 3 col0
----
-162

query I rowsort
SELECT ALL + 66 + + 14 * - 16 AS col1
----
-158

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

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

query I rowsort
SELECT + 98 + + ( + 25 ) + + 48
----
171

query II rowsort
SELECT - 37 * + 64, - 17 AS col2
----
-2368
-17

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

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

query I rowsort
SELECT DISTINCT - 63 + + 11 AS col1
----
-52

query I rowsort
SELECT ALL + + 95 + + 37 + + COALESCE ( - 52, - - 79 ) + 54
----
134

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5771
SELECT - 41 DIV - 13
----
3

skipif mysql # not compatible
query I rowsort label-5771
SELECT - 41 / - 13
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5772
SELECT + CASE - + 41 WHEN - + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) THEN 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT + CASE - + 41 WHEN - + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN 65 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5773
SELECT ALL - MAX( + - 62 ) DIV - 30 + + 45 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL - MAX ( + - 62 ) / - 30 + + 45 AS col1
----
43

query I rowsort
SELECT ALL - 15 * - - 30
----
-450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5775
SELECT - 5 + - 9 DIV - COUNT( ALL - 54 ) + - 82 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-5775
SELECT - 5 + - 9 / - COUNT ( ALL - 54 ) + - 82 AS col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5776
SELECT + 11 DIV - 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5776
SELECT + 11 / - 23 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT - COUNT( * ) * - + NULLIF ( - ( + + 77 ), - SUM( + ( + + 89 ) ) )
----
-77

skipif mysql # not compatible
query I rowsort label-5777
SELECT - COUNT ( * ) * - + NULLIF ( - ( + + 77 ), - SUM ( + ( + + 89 ) ) )
----
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5778
SELECT ALL + 85 DIV + CAST( + 62 AS SIGNED ) + + 32
----
33

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL + 85 / + CAST ( + 62 AS INTEGER ) + + 32
----
33

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT + NULLIF ( + - ( - 43 ), - 27 + - 67 + + ( - 58 ) + - NULLIF ( - 94, + ( 86 ) ) + + 1 * + - CASE - ( - 83 ) WHEN - - 37 / - COUNT( * ) THEN + COUNT( * ) END ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5781
SELECT + NULLIF ( + - ( - 43 ), - 27 + - 67 + + ( - 58 ) + - NULLIF ( - 94, + ( 86 ) ) + + 1 * + - CASE - ( - 83 ) WHEN - - 37 / - COUNT ( * ) THEN + COUNT ( * ) END ) AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5782
SELECT ALL + 8 * + - COALESCE ( - 17, + 50, + COALESCE ( - 41, + 97, + + AVG ( - - 50 ) - + COUNT( * ) + - + 8 + - CAST( - 61 AS SIGNED ) - - SUM( + 8 ) * + 5 - - COUNT( * ), + 6 * + 2 ) * + 84 * 69 + 85 ) * ( + 20 ) + - COUNT( ALL CASE + 73 WHEN CAST( NULL AS SIGNED ) THEN - NULLIF ( + 24, - 24 ) WHEN 36 THEN NULL ELSE NULL END ) - CAST( NULL AS DECIMAL ) + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL + 8 * + - COALESCE ( - 17, + 50, + COALESCE ( - 41, + 97, + + AVG ( - - 50 ) - + COUNT ( * ) + - + 8 + - CAST ( - 61 AS INTEGER ) - - SUM ( + 8 ) * + 5 - - COUNT ( * ), + 6 * + 2 ) * + 84 * 69 + 85 ) * ( + 20 ) + - COUNT ( ALL CASE + 73 WHEN CAST ( NULL AS INTEGER ) THEN - NULLIF ( + 24, - 24 ) WHEN 36 THEN NULL ELSE NULL END ) - CAST ( NULL AS REAL ) + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT + ( - CASE + + COUNT( * ) WHEN COUNT( * ) THEN - - COUNT( * ) END )
----
-1

skipif mysql # not compatible
query I rowsort label-5783
SELECT + ( - CASE + + COUNT ( * ) WHEN COUNT ( * ) THEN - - COUNT ( * ) END )
----
-1

query II rowsort
SELECT DISTINCT + 70 AS col2, 64 * 97
----
70
6208

query II rowsort
SELECT ALL + 74 col2, 92 * 52 col0
----
74
4784

onlyif mysql # aggregate syntax: 
query II rowsort label-5786
SELECT ALL 77 * 17 - + 51 * + 99 * + ( 80 ) AS col1, - 5 * + COUNT( * ) AS col1
----
-402611
-5

skipif mysql # not compatible
query II rowsort label-5786
SELECT ALL 77 * 17 - + 51 * + 99 * + ( 80 ) AS col1, - 5 * + COUNT ( * ) AS col1
----
-402611
-5

query I rowsort
SELECT + 21 * - 80
----
-1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5788
SELECT + 39 + - COUNT( - COALESCE ( + CAST( NULL AS SIGNED ), - - 25 ) )
----
38

skipif mysql # not compatible
query I rowsort label-5788
SELECT + 39 + - COUNT ( - COALESCE ( + CAST ( NULL AS INTEGER ), - - 25 ) )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT CASE + + 72 WHEN 17 * - COUNT( * ) THEN NULL WHEN 53 THEN NULL ELSE + 39 * + 97 + + MAX( ALL 22 ) + + 13 END AS col1
----
3818

skipif mysql # not compatible
query I rowsort label-5789
SELECT CASE + + 72 WHEN 17 * - COUNT ( * ) THEN NULL WHEN 53 THEN NULL ELSE + 39 * + 97 + + MAX ( ALL 22 ) + + 13 END AS col1
----
3818

query I rowsort
SELECT ALL 52 * - - 67 - + 68 + - 42 + + 40 * - ( 9 )
----
3014

query I rowsort
SELECT + 83 * - 54 AS col2
----
-4482

query I rowsort
SELECT - ( - 80 ) * - 34 + + 66 AS col1
----
-2654

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

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

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

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

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

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

query I rowsort
SELECT + + 41 * 74
----
3034

query II rowsort
SELECT ALL - 60 AS col0, 76 AS col2
----
-60
76

query I rowsort
SELECT DISTINCT 97 * - 47
----
-4559

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5799
SELECT - 71 AS col0, 97 / + ( 46 ) + + AVG ( DISTINCT + + ( + 59 ) ) + + + 46 * - CAST( NULL AS DECIMAL ) AS col0
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-5799
SELECT - 71 AS col0, 97 / + ( 46 ) + + AVG ( DISTINCT + + ( + 59 ) ) + + + 46 * - CAST ( NULL AS REAL ) AS col0
----
-71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT - 55 * - ( - - COUNT( * ) ) + - 89
----
-34

skipif mysql # not compatible
query I rowsort label-5800
SELECT - 55 * - ( - - COUNT ( * ) ) + - 89
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-5801
SELECT 99 * - - 48 * + + 28 + + + 42 AS col2, COUNT( * )
----
133098
1

skipif mysql # not compatible
query II rowsort label-5801
SELECT 99 * - - 48 * + + 28 + + + 42 AS col2, COUNT ( * )
----
133098
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5802
SELECT ALL - + COUNT( * ) + + + 40 - - COUNT( * ) * - 91 - + 95 * + 85 AS col0, + 43 col2
----
-8127
43

skipif mysql # not compatible
query II rowsort label-5802
SELECT ALL - + COUNT ( * ) + + + 40 - - COUNT ( * ) * - 91 - + 95 * + 85 AS col0, + 43 col2
----
-8127
43

query I rowsort
SELECT NULLIF ( 73, 34 ) - + 46
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5804
SELECT COUNT( * ), 31 * - 56 col0
----
1
-1736

skipif mysql # not compatible
query II rowsort label-5804
SELECT COUNT ( * ), 31 * - 56 col0
----
1
-1736

query I rowsort
SELECT COALESCE ( + 10, - 14, + + 47, + 18 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT ALL - + SUM( ALL + 95 ) + + 81 col2
----
-14

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL - + SUM ( ALL + 95 ) + + 81 col2
----
-14

query I rowsort
SELECT ALL - 34 + + 81 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT MIN( DISTINCT + 47 ) + + MAX( 11 )
----
58

skipif mysql # not compatible
query I rowsort label-5808
SELECT MIN ( DISTINCT + 47 ) + + MAX ( 11 )
----
58

query I rowsort
SELECT ALL + + CASE - - 57 WHEN - - 87 THEN NULL ELSE + + 24 END + + + 61
----
85

query I rowsort
SELECT 13 - - 75 AS col2
----
88

query I rowsort
SELECT 87 + + 31
----
118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5812
SELECT COUNT( * ) DIV - 46 + + 84 * 61 * + 19 + + 0 DIV - COALESCE ( + 11, + MAX( - 30 ), - + COUNT( + - CAST( - COALESCE ( + 86, + - 7 DIV - - 35 * - 39 * - 9 + 39 ) AS DECIMAL ) ) + - 70 ) AS col2
----
97356

skipif mysql # not compatible
query I rowsort label-5812
SELECT COUNT ( * ) / - 46 + + 84 * 61 * + 19 + + 0 / - COALESCE ( + 11, + MAX ( - 30 ), - + COUNT ( + - CAST ( - COALESCE ( + 86, + - 7 / - - 35 * - 39 * - 9 + 39 ) AS REAL ) ) + - 70 ) AS col2
----
97356

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT ALL - ( + 81 ) - - COUNT( * ) - - + 12 col0
----
-68

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL - ( + 81 ) - - COUNT ( * ) - - + 12 col0
----
-68

query I rowsort
SELECT 39 * - 36 * + - 76
----
106704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5815
SELECT ALL - MIN( - 90 ) DIV - 24 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL - MIN ( - 90 ) / - 24 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT ALL - COUNT( * ) - + - COUNT( * ) * - - 3 col0
----
2

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL - COUNT ( * ) - + - COUNT ( * ) * - - 3 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT 29 * - COUNT( 41 ) * + CASE + 93 WHEN + 38 THEN + 89 + - 49 WHEN 80 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT 29 * - COUNT ( 41 ) * + CASE + 93 WHEN + 38 THEN + 89 + - 49 WHEN 80 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5818
SELECT - 74 DIV - COUNT( * ) + 5 - + 47 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5818
SELECT - 74 / - COUNT ( * ) + 5 - + 47 AS col1
----
32

query I rowsort
SELECT ALL 40 - + 47
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-5820
SELECT ALL + 85 DIV + 77 AS col1, ( 81 )
----
1
81

skipif mysql # not compatible
query II rowsort label-5820
SELECT ALL + 85 / + 77 AS col1, ( 81 )
----
1
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5821
SELECT 19 + + CASE COALESCE ( + CASE - 28 WHEN 7 THEN NULL WHEN 77 * - + 68 / - - 20 THEN - 91 ELSE NULL END, + 14 * + 70 / + 83, ( 25 ) + ( + 91 ) + + CAST( NULL AS SIGNED ) ) WHEN + 71 THEN + + COUNT( * ) - - MAX( ALL + 31 ) * + + 31 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5821
SELECT 19 + + CASE COALESCE ( + CASE - 28 WHEN 7 THEN NULL WHEN 77 * - + 68 / - - 20 THEN - 91 ELSE NULL END, + 14 * + 70 / + 83, ( 25 ) + ( + 91 ) + + CAST ( NULL AS INTEGER ) ) WHEN + 71 THEN + + COUNT ( * ) - - MAX ( ALL + 31 ) * + + 31 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT MAX( - + 80 ) * + CASE + 37 WHEN + 28 THEN ( - 12 ) * COUNT( * ) * + + 85 * + 48 + + + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT MAX ( - + 80 ) * + CASE + 37 WHEN + 28 THEN ( - 12 ) * COUNT ( * ) * + + 85 * + 48 + + + 60 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT 39 * - + COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT 39 * - + COUNT ( * ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT COALESCE ( + 80, + - 3 ) * + COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5824
SELECT COALESCE ( + 80, + - 3 ) * + COUNT ( * ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5825
SELECT ALL - 40 * - CASE + + CAST( + 94 AS SIGNED ) WHEN + 13 * - + NULLIF ( + + 33, 2 * 28 / + + 53 + - 37 * + - 46 / - - CASE - 26 WHEN + + 2 THEN CAST( - 29 AS SIGNED ) ELSE NULL END * + 54 ) + - 58 THEN + COUNT( * ) END * - - 69 / + - COALESCE ( COUNT( * ), + - 24 * - 94 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL - 40 * - CASE + + CAST ( + 94 AS INTEGER ) WHEN + 13 * - + NULLIF ( + + 33, 2 * 28 / + + 53 + - 37 * + - 46 / - - CASE - 26 WHEN + + 2 THEN CAST ( - 29 AS INTEGER ) ELSE NULL END * + 54 ) + - 58 THEN + COUNT ( * ) END * - - 69 / + - COALESCE ( COUNT ( * ), + - 24 * - 94 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5826
SELECT DISTINCT - COALESCE ( - 25, COUNT( * ) ) * - 24, + COUNT( * ) AS col2
----
-600
1

skipif mysql # not compatible
query II rowsort label-5826
SELECT DISTINCT - COALESCE ( - 25, COUNT ( * ) ) * - 24, + COUNT ( * ) AS col2
----
-600
1

query I rowsort
SELECT DISTINCT - COALESCE ( 30, - 92 ) AS col2
----
-30

query I rowsort
SELECT ALL 86 + 25
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT DISTINCT - NULLIF ( COUNT( * ), + 60 ) + + 59 AS col0, 69
----
58
69

skipif mysql # not compatible
query II rowsort label-5829
SELECT DISTINCT - NULLIF ( COUNT ( * ), + 60 ) + + 59 AS col0, 69
----
58
69

query I rowsort
SELECT DISTINCT + 68 * + - 70 * + - 8 + - + 32
----
38048

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT ALL + 99 + + 23 * 53 + + 23 + + COUNT( * ) AS col2
----
1342

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL + 99 + + 23 * 53 + + 23 + + COUNT ( * ) AS col2
----
1342

query I rowsort
SELECT DISTINCT ( + - 62 ) * - 59 AS col0
----
3658

query I rowsort
SELECT 88 - 44
----
44

query I rowsort
SELECT ALL 89 + 92
----
181

query I rowsort
SELECT ALL ( + COALESCE ( - NULLIF ( - 82, - - 30 + 5 ), 62 ) ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5837
SELECT DISTINCT ( + COALESCE ( + 5, - 69 + 42 * + 94 ) ) * + - SUM( ALL 4 ) * - + 33 - 14 AS col1, 58 + - ( - 69 ) col2
----
646
127

skipif mysql # not compatible
query II rowsort label-5837
SELECT DISTINCT ( + COALESCE ( + 5, - 69 + 42 * + 94 ) ) * + - SUM ( ALL 4 ) * - + 33 - 14 AS col1, 58 + - ( - 69 ) col2
----
646
127

query I rowsort
SELECT DISTINCT + 56 + ( + 45 ) * 80 * - 72 AS col2
----
-259144

query I rowsort
SELECT 23 + - + 49 + 28
----
2

query I rowsort
SELECT ALL 18 - 81
----
-63

query I rowsort
SELECT 48 * - - 90
----
4320

query I rowsort
SELECT DISTINCT - 98 * - + 46
----
4508

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT ALL COUNT( * ) * - 50 - + ( + 22 )
----
-72

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL COUNT ( * ) * - 50 - + ( + 22 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT 38 * NULLIF ( + 82, + 20 ) * + COUNT( * ) AS col1
----
3116

skipif mysql # not compatible
query I rowsort label-5845
SELECT 38 * NULLIF ( + 82, + 20 ) * + COUNT ( * ) AS col1
----
3116

query I rowsort
SELECT ALL + 80 * - + 56 AS col1
----
-4480

query I rowsort
SELECT DISTINCT - NULLIF ( 1, - + 10 * - + 57 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT SUM( DISTINCT + - 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-5848
SELECT SUM ( DISTINCT + - 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-5849
SELECT 54 * - COUNT( * ) * + - 82, - 42 + - 11 AS col0
----
4428
-53

skipif mysql # not compatible
query II rowsort label-5849
SELECT 54 * - COUNT ( * ) * + - 82, - 42 + - 11 AS col0
----
4428
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5850
SELECT + CASE + + 86 WHEN + 41 THEN - - 82 + COALESCE ( + 91, - CAST( NULL AS SIGNED ), COUNT( * ), + 33 ) WHEN 72 THEN 42 END - + - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5850
SELECT + CASE + + 86 WHEN + 41 THEN - - 82 + COALESCE ( + 91, - CAST ( NULL AS INTEGER ), COUNT ( * ), + 33 ) WHEN 72 THEN 42 END - + - 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT DISTINCT - + MIN( + 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT - + MIN ( + 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL + + COUNT( * ) * - 32 + + 75 + - 89 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL + + COUNT ( * ) * - 32 + + 75 + - 89 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT - MIN( + 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-5853
SELECT - MIN ( + 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT ALL + - 68 + - 5 + - - CASE - 44 WHEN - 93 - 86 + + COUNT( * ) - + + COUNT( * ) + 75 * + COUNT( * ) * + 7 + + - 2 THEN - - 50 * + - ( 30 ) END + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL + - 68 + - 5 + - - CASE - 44 WHEN - 93 - 86 + + COUNT ( * ) - + + COUNT ( * ) + 75 * + COUNT ( * ) * + 7 + + - 2 THEN - - 50 * + - ( 30 ) END + + 64
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5855
SELECT DISTINCT + - 43 + - COUNT( * ) + - COUNT( * ) AS col1, - ( + ( + SUM( ALL + 3 ) ) )
----
-45
-3

skipif mysql # not compatible
query II rowsort label-5855
SELECT DISTINCT + - 43 + - COUNT ( * ) + - COUNT ( * ) AS col1, - ( + ( + SUM ( ALL + 3 ) ) )
----
-45
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT ALL + + ( - + 68 ) * + SUM( DISTINCT - - 91 )
----
-6188

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL + + ( - + 68 ) * + SUM ( DISTINCT - - 91 )
----
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT ALL COUNT( * ) + + 4 * - 25 * - 9 - - - ( - COUNT( + - 84 ) )
----
902

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL COUNT ( * ) + + 4 * - 25 * - 9 - - - ( - COUNT ( + - 84 ) )
----
902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5859
SELECT + 9 * - + ( - + COUNT( * ) ) + + CAST( 28 AS SIGNED ) * - - ( - 54 ) - + 7
----
-1510

skipif mysql # not compatible
query I rowsort label-5859
SELECT + 9 * - + ( - + COUNT ( * ) ) + + CAST ( 28 AS INTEGER ) * - - ( - 54 ) - + 7
----
-1510

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5861
SELECT ALL 43 + + 7 + - 71 * - + CAST( NULL AS SIGNED ) * - 22 AS col1, + COUNT( * ) * - COALESCE ( ( - 4 ), - CASE 57 WHEN + CASE - 87 WHEN + CASE + 80 WHEN + 87 / COALESCE ( + 94, - 67 + - 98 / 62 ) + 67 THEN NULL WHEN COUNT( * ) / + + COUNT( * ) + - 82 THEN + 87 ELSE NULL END / - 28 + + 5 * - AVG ( - 42 ) * - COUNT( + 98 ) THEN + 63 END THEN CASE + 61 WHEN - 55 - - ( 96 ) THEN + COUNT( * ) WHEN ( + 52 ) * COUNT( ( + 51 ) ) THEN NULL ELSE NULL END ELSE NULL END ) + ( - 86 ) AS col0
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-5861
SELECT ALL 43 + + 7 + - 71 * - + CAST ( NULL AS INTEGER ) * - 22 AS col1, + COUNT ( * ) * - COALESCE ( ( - 4 ), - CASE 57 WHEN + CASE - 87 WHEN + CASE + 80 WHEN + 87 / COALESCE ( + 94, - 67 + - 98 / 62 ) + 67 THEN NULL WHEN COUNT ( * ) / + + COUNT ( * ) + - 82 THEN + 87 ELSE NULL END / - 28 + + 5 * - AVG ( - 42 ) * - COUNT ( + 98 ) THEN + 63 END THEN CASE + 61 WHEN - 55 - - ( 96 ) THEN + COUNT ( * ) WHEN ( + 52 ) * COUNT ( ( + 51 ) ) THEN NULL ELSE NULL END ELSE NULL END ) + ( - 86 ) AS col0
----
NULL
-82

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

query II rowsort
SELECT + + 7 - + - ( 69 ) AS col1, + 8
----
76
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT DISTINCT + 85 - - NULLIF ( - + 50, ( + - 37 ) ) * + COALESCE ( + 84, + COUNT( * ), - - 69 * + + ( + 22 ) ) col0
----
-4115

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT + 85 - - NULLIF ( - + 50, ( + - 37 ) ) * + COALESCE ( + 84, + COUNT ( * ), - - 69 * + + ( + 22 ) ) col0
----
-4115

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5866
SELECT - 92 * NULLIF ( - + MAX( 73 ), 39 ) - CASE + - CAST( NULL AS SIGNED ) WHEN - + 96 * - 20 * + 77 - + - 48 THEN NULL WHEN + 84 / + 98 + ( + COUNT( * ) ) + + - 12 * - + 74 THEN NULL ELSE + 17 END AS col1
----
6699

skipif mysql # not compatible
query I rowsort label-5866
SELECT - 92 * NULLIF ( - + MAX ( 73 ), 39 ) - CASE + - CAST ( NULL AS INTEGER ) WHEN - + 96 * - 20 * + 77 - + - 48 THEN NULL WHEN + 84 / + 98 + ( + COUNT ( * ) ) + + - 12 * - + 74 THEN NULL ELSE + 17 END AS col1
----
6699

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5867
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), 13 + 69 * + - 24 * - 62 + + 60 * + + COALESCE ( 20, - 70, + + COUNT( * ) ) * + COUNT( * ) + - + 43 - - + 95 + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), 13 + 69 * + - 24 * - 62 + + 60 * + + COALESCE ( 20, - 70, + + COUNT ( * ) ) * + COUNT ( * ) + - + 43 - - + 95 + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5868
SELECT DISTINCT 22 AS col1, + 5 * 27 + CASE + 22 WHEN - + 26 + - ( 75 ) + - 49 / + COUNT( * ) / + 28 / ( + 25 ) THEN NULL ELSE - CASE + - 20 WHEN - ( - COUNT( * ) ) THEN - + 60 END * 73 * - 1 * ( + 16 ) + - - 62 * - 15 * - 44 * 31 END + - 15 - - 56
----
22
NULL

skipif mysql # not compatible
query II rowsort label-5868
SELECT DISTINCT 22 AS col1, + 5 * 27 + CASE + 22 WHEN - + 26 + - ( 75 ) + - 49 / + COUNT ( * ) / + 28 / ( + 25 ) THEN NULL ELSE - CASE + - 20 WHEN - ( - COUNT ( * ) ) THEN - + 60 END * 73 * - 1 * ( + 16 ) + - - 62 * - 15 * - 44 * 31 END + - 15 - - 56
----
22
NULL

query I rowsort
SELECT + 76 + - 46 AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5870
SELECT + 52 + + - ( CASE - 76 WHEN - + NULLIF ( + 29, + SUM( DISTINCT 91 ) * - CAST( NULL AS SIGNED ) ) THEN NULL ELSE + + 57 END ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5870
SELECT + 52 + + - ( CASE - 76 WHEN - + NULLIF ( + 29, + SUM ( DISTINCT 91 ) * - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + + 57 END ) AS col2
----
-5

query II rowsort
SELECT ALL 31 AS col1, 84 AS col0
----
31
84

query I rowsort
SELECT + 29 + + 51
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT ALL ( + 19 ) * + COUNT( * ) + + - 84 * - 76
----
6403

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL ( + 19 ) * + COUNT ( * ) + + - 84 * - 76
----
6403

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

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

query I rowsort
SELECT + 22 - + 28 * - 28
----
806

query II rowsort
SELECT + 93 + 73 AS col0, + 81 + + 71 AS col2
----
166
152

query II rowsort
SELECT ALL 97 AS col2, 12
----
97
12

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

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

query II rowsort
SELECT ALL + 9 AS col1, 1 + + - ( + 83 ) AS col1
----
9
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL 2 * + 64 + - COUNT( * )
----
127

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL 2 * + 64 + - COUNT ( * )
----
127

query I rowsort
SELECT + 63 + - 64
----
-1

query II rowsort
SELECT DISTINCT + 86, - 75 * - 19 AS col2
----
86
1425

query I rowsort
SELECT + 21 * 19 + 98
----
497

query I rowsort
SELECT ALL + 49 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT ALL COUNT( ALL + 81 ) * 57 + + SUM( ALL + 90 )
----
147

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL COUNT ( ALL + 81 ) * 57 + + SUM ( ALL + 90 )
----
147

query I rowsort
SELECT ALL 20 * - + 31 + NULLIF ( - 55, + 92 ) - - 27
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT DISTINCT + 36 * 74 + + COALESCE ( 96, COUNT( * ) ) AS col1
----
2760

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT + 36 * 74 + + COALESCE ( 96, COUNT ( * ) ) AS col1
----
2760

query I rowsort
SELECT ALL + 74 * 50 AS col0
----
3700

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT + + 68 + - - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-5889
SELECT + + 68 + - - COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT 4 * + COUNT( * ) + + COUNT( * ) + - COUNT( * ) * - + 91 + 2 + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-5890
SELECT 4 * + COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) * - + 91 + 2 + COUNT ( * )
----
99

query II rowsort
SELECT ALL + + 82 col1, - 94 * + 10
----
82
-940

onlyif mysql # DIV for integer division: 
query I rowsort label-5892
SELECT DISTINCT + 36 * + - 92 + 58 - 90 + + 73 + 0 DIV + - 76
----
-3271

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT + 36 * + - 92 + 58 - 90 + + 73 + 0 / + - 76
----
-3271

query I rowsort
SELECT - - 52 + + 34
----
86

query I rowsort
SELECT DISTINCT ( - 55 ) * 44 - 65 - 80
----
-2565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5895
SELECT DISTINCT + 6 * - + 30 - CAST( - CASE - 86 WHEN + + 93 + - 45 - 67 THEN + - 46 WHEN SUM( ALL + + 97 ) THEN + COUNT( * ) END AS SIGNED ) - 14 - - + AVG ( - ( - 18 ) ) + 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT + 6 * - + 30 - CAST ( - CASE - 86 WHEN + + 93 + - 45 - 67 THEN + - 46 WHEN SUM ( ALL + + 97 ) THEN + COUNT ( * ) END AS INTEGER ) - 14 - - + AVG ( - ( - 18 ) ) + 17 col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5896
SELECT ALL - 97 DIV + - 22, 5 col2
----
4
5

skipif mysql # not compatible
query II rowsort label-5896
SELECT ALL - 97 / + - 22, 5 col2
----
4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT - COALESCE ( - 3, COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-5897
SELECT - COALESCE ( - 3, COUNT ( * ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT - COALESCE ( - 74, + 86 * + 24 * 11 * - COUNT( * ), - 14 - - COUNT( ALL + - 49 ) * + + 66 * - - 71 ) + + + MAX( DISTINCT 54 )
----
128

skipif mysql # not compatible
query I rowsort label-5898
SELECT - COALESCE ( - 74, + 86 * + 24 * 11 * - COUNT ( * ), - 14 - - COUNT ( ALL + - 49 ) * + + 66 * - - 71 ) + + + MAX ( DISTINCT 54 )
----
128

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT - + 23 * MAX( - 30 )
----
690

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT - + 23 * MAX ( - 30 )
----
690

query I rowsort
SELECT - 90 * + 45 * 54 * + + 31
----
-6779700

onlyif mysql # DIV for integer division: 
query I rowsort label-5902
SELECT - 95 DIV 73 * + 34 * 91 - + 5 * - + 22
----
-2984

skipif mysql # not compatible
query I rowsort label-5902
SELECT - 95 / 73 * + 34 * 91 - + 5 * - + 22
----
-2984

query I rowsort
SELECT + 65 + 39 + + 26 AS col1
----
130

query II rowsort
SELECT ALL + 25 * - 14 * - 18 AS col0, - 86 AS col2
----
6300
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT DISTINCT + ( - SUM( + - ( - - 81 ) ) ) * - 17
----
-1377

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT + ( - SUM ( + - ( - - 81 ) ) ) * - 17
----
-1377

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT + COUNT( * ) + - 86 + 32 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5907
SELECT + COUNT ( * ) + - 86 + 32 AS col2
----
-53

query I rowsort
SELECT + 99 + + 46 + - 45 col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT - MAX( ALL - 90 ) * + - 92 AS col0
----
-8280

skipif mysql # not compatible
query I rowsort label-5909
SELECT - MAX ( ALL - 90 ) * + - 92 AS col0
----
-8280

query I rowsort
SELECT + ( - - 41 ) * + + 10
----
410

query I rowsort
SELECT ALL 81 + + 14 AS col0
----
95

query I rowsort
SELECT ALL 57 + - ( - 78 )
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5913
SELECT - CASE 14 WHEN + 51 + + COALESCE ( COUNT( * ), 65 + 72 / - - 10 ) * 68 / + 45 * + COUNT( * ) * + 34 + - + 61 + + - COUNT( * ) + + 12 - CASE + + 75 WHEN + + ( - + 45 ) THEN NULL WHEN + 75 * + + CAST( NULL AS SIGNED ) THEN NULL ELSE 74 * - - 72 - - 33 END THEN NULL ELSE + 80 END
----
-80

skipif mysql # not compatible
query I rowsort label-5913
SELECT - CASE 14 WHEN + 51 + + COALESCE ( COUNT ( * ), 65 + 72 / - - 10 ) * 68 / + 45 * + COUNT ( * ) * + 34 + - + 61 + + - COUNT ( * ) + + 12 - CASE + + 75 WHEN + + ( - + 45 ) THEN NULL WHEN + 75 * + + CAST ( NULL AS INTEGER ) THEN NULL ELSE 74 * - - 72 - - 33 END THEN NULL ELSE + 80 END
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT DISTINCT - 63 DIV 9 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT - 63 / 9 AS col0
----
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5915
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - 88 + 44 / + 1 + 93 - 93 * - 50 * + + 80 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT + CAST ( NULL AS REAL ) + - 88 + 44 / + 1 + 93 - 93 * - 50 * + + 80 col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5916
SELECT ALL 51 * + 79 AS col0, NULLIF ( - - 5, - + 62 ) * + ( + 46 ) + - - 28 + 6 DIV 60 * - - 87
----
4029
258

skipif mysql # not compatible
query II rowsort label-5916
SELECT ALL 51 * + 79 AS col0, NULLIF ( - - 5, - + 62 ) * + ( + 46 ) + - - 28 + 6 / 60 * - - 87
----
4029
258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5917
SELECT ALL + COALESCE ( 2, - 74, CAST( NULL AS SIGNED ), + ( - - 14 ) ) DIV + + 9 * - 6 + COUNT( * ) - - 62 + + 22 - MIN( DISTINCT + + 13 ) * 50 AS col2
----
-565

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL + COALESCE ( 2, - 74, CAST ( NULL AS INTEGER ), + ( - - 14 ) ) / + + 9 * - 6 + COUNT ( * ) - - 62 + + 22 - MIN ( DISTINCT + + 13 ) * 50 AS col2
----
-565

onlyif mysql # DIV for integer division: 
query I rowsort label-5918
SELECT ALL 67 DIV 25 + - 22
----
-20

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL 67 / 25 + - 22
----
-20

query I rowsort
SELECT DISTINCT 80 * NULLIF ( + 96, - 89 ) AS col1
----
7680

query I rowsort
SELECT ALL - 14 + 42 + - 33
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT + 83 * MIN( DISTINCT + + 49 ) * - + 32 AS col1
----
-130144

skipif mysql # not compatible
query I rowsort label-5921
SELECT + 83 * MIN ( DISTINCT + + 49 ) * - + 32 AS col1
----
-130144

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5923
SELECT 32 DIV ( - MIN( + + 89 ) ) DIV + + 16 col0
----
0

skipif mysql # not compatible
query I rowsort label-5923
SELECT 32 / ( - MIN ( + + 89 ) ) / + + 16 col0
----
0

query I rowsort
SELECT ALL 80 + 40
----
120

query I rowsort
SELECT - 49 * - CASE - 86 WHEN + - AVG ( - - 21 ) THEN 35 * + 10 + + + 23 + - - 81 END / - 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5926
SELECT 63 * - 60 col1, SUM( ALL 3 )
----
-3780
3

skipif mysql # not compatible
query II rowsort label-5926
SELECT 63 * - 60 col1, SUM ( ALL 3 )
----
-3780
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5927
SELECT + + 67 DIV - + 15 - + + 27 + - 87 * 70 + 22 - 41
----
-6140

skipif mysql # not compatible
query I rowsort label-5927
SELECT + + 67 / - + 15 - + + 27 + - 87 * 70 + 22 - 41
----
-6140

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT DISTINCT + - 63 * CASE + 55 WHEN 61 THEN + 30 ELSE - + 36 END * + COUNT( * ) * + 16 + - 76 + - + CASE - COALESCE ( + + COALESCE ( + 63, 18 ), + 36 ) WHEN - 56 * + 41 + - 29 * - 99 THEN NULL ELSE 89 * 38 * NULLIF ( + + 5, 15 * 32 ) * - 65 + - 90 + 24 - - - 52 END
----
1135480

skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT + - 63 * CASE + 55 WHEN 61 THEN + 30 ELSE - + 36 END * + COUNT ( * ) * + 16 + - 76 + - + CASE - COALESCE ( + + COALESCE ( + 63, 18 ), + 36 ) WHEN - 56 * + 41 + - 29 * - 99 THEN NULL ELSE 89 * 38 * NULLIF ( + + 5, 15 * 32 ) * - 65 + - 90 + 24 - - - 52 END
----
1135480

query I rowsort
SELECT ALL + 18 - + 57 * 85 AS col1
----
-4827

query I rowsort
SELECT DISTINCT - - 64 col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT 57 * + 59 - - + COUNT( * ) * - + ( + COUNT( * ) ) + + 58 * 46 + + + 51 - - 82
----
6163

skipif mysql # not compatible
query I rowsort label-5932
SELECT 57 * + 59 - - + COUNT ( * ) * - + ( + COUNT ( * ) ) + + 58 * 46 + + + 51 - - 82
----
6163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5933
SELECT ALL - + 21 * CAST( NULL AS SIGNED ) * - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL - + 21 * CAST ( NULL AS INTEGER ) * - 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5934
SELECT ( - 84 ) AS col2, - 80 * + CASE - 44 WHEN - 76 THEN - COUNT( - + 67 ) + + 28 ELSE NULL END
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-5934
SELECT ( - 84 ) AS col2, - 80 * + CASE - 44 WHEN - 76 THEN - COUNT ( - + 67 ) + + 28 ELSE NULL END
----
-84
NULL

query I rowsort
SELECT ALL + 91 * + - 75 col0
----
-6825

query I rowsort
SELECT 22 * - - ( + - 15 )
----
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-5937
SELECT DISTINCT - 39 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT - 39 / + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT 41 / + ( + CASE COUNT( * ) WHEN - + 68 THEN - CASE - + 42 WHEN + AVG ( ALL - 6 ) THEN + + 46 * 75 END WHEN 2 THEN NULL ELSE NULL END ) * - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5938
SELECT 41 / + ( + CASE COUNT ( * ) WHEN - + 68 THEN - CASE - + 42 WHEN + AVG ( ALL - 6 ) THEN + + 46 * 75 END WHEN 2 THEN NULL ELSE NULL END ) * - 59 AS col1
----
NULL

query I rowsort
SELECT ALL - 21 + + 70
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5940
SELECT ALL - 48 DIV 40
----
-1

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL - 48 / 40
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5941
SELECT - 83 AS col0, + COUNT( * ) * COUNT( * ) DIV + 20 + 89 * + 96 * - 24 + 66 + 85 AS col2
----
-83
-204905

skipif mysql # not compatible
query II rowsort label-5941
SELECT - 83 AS col0, + COUNT ( * ) * COUNT ( * ) / + 20 + 89 * + 96 * - 24 + 66 + 85 AS col2
----
-83
-204905

query I rowsort
SELECT 31 + + 54 + 36 - 20 + - + ( + 84 ) + ( + ( - 26 ) ) * + 88 * - + 71 * + - 4 * + - 59 AS col0
----
38337745

query I rowsort
SELECT 67 / + + CASE + 33 WHEN - - 30 THEN 37 END AS col0
----
NULL

query I rowsort
SELECT ALL - 21 + - 41 AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5945
SELECT 38 + - 2 DIV COUNT( * ) AS col2, + NULLIF ( + 75, + - CAST( 85 AS DECIMAL ) ) + + 82 + - - COALESCE ( - + MAX( ALL - 87 ), - 90 * + - 97 + 71 + + + 68, - 53 + - + 5 )
----
36
244

skipif mysql # not compatible
query II rowsort label-5945
SELECT 38 + - 2 / COUNT ( * ) AS col2, + NULLIF ( + 75, + - CAST ( 85 AS REAL ) ) + + 82 + - - COALESCE ( - + MAX ( ALL - 87 ), - 90 * + - 97 + 71 + + + 68, - 53 + - + 5 )
----
36
244

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT CASE + - COUNT( * ) WHEN - 40 THEN + + 25 / - 40 + + - ( 70 ) ELSE NULL END * 7 + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5946
SELECT CASE + - COUNT ( * ) WHEN - 40 THEN + + 25 / - 40 + + - ( 70 ) ELSE NULL END * 7 + 45
----
NULL

query I rowsort
SELECT 47 + + 15 col2
----
62

query I rowsort
SELECT ALL + 49 * - 75 AS col0
----
-3675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5949
SELECT DISTINCT + CAST( - NULLIF ( - + 81, 78 ) AS SIGNED ) + - - CASE + 83 WHEN - 48 THEN NULL WHEN - CAST( 15 AS SIGNED ) * - + ( + ( + SUM( ALL 32 ) ) ) + + 82 + - 16 + + 55 THEN - 43 WHEN COUNT( - + 60 ) * - 11 + + 16 THEN NULL END AS col0, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5949
SELECT DISTINCT + CAST ( - NULLIF ( - + 81, 78 ) AS INTEGER ) + - - CASE + 83 WHEN - 48 THEN NULL WHEN - CAST ( 15 AS INTEGER ) * - + ( + ( + SUM ( ALL 32 ) ) ) + + 82 + - 16 + + 55 THEN - 43 WHEN COUNT ( - + 60 ) * - 11 + + 16 THEN NULL END AS col0, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT 66 + + 85 AS col1
----
151

query I rowsort
SELECT DISTINCT + 4 + - - 3
----
7

query I rowsort
SELECT 47 + 29 + - + 97 AS col0
----
-21

query II rowsort
SELECT 23 AS col1, 30 * + 82 AS col1
----
23
2460

query I rowsort
SELECT DISTINCT + 77 + - 27
----
50

query II rowsort
SELECT - + 42, - 47 * - + 57 col2
----
-42
2679

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

skipif mysql # not compatible
query I rowsort label-5956
SELECT - COUNT ( ALL - + 8 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5957
SELECT DISTINCT - COALESCE ( + 31, COUNT( * ) + 42 DIV + 70 DIV - 50 ) AS col1, ( - + 7 )
----
-31
-7

skipif mysql # not compatible
query II rowsort label-5957
SELECT DISTINCT - COALESCE ( + 31, COUNT ( * ) + 42 / + 70 / - 50 ) AS col1, ( - + 7 )
----
-31
-7

query I rowsort
SELECT DISTINCT ( 97 ) * 86
----
8342

query I rowsort
SELECT 2 * - - 54 - + 18 + 20 AS col2
----
110

query I rowsort
SELECT ALL + 91 * + - 74
----
-6734

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5961
SELECT DISTINCT - - 56 DIV + - COALESCE ( 16, - 8 + + 18 ) + 36 + - ( + 53 ) AS col1, COUNT( * )
----
-20
1

skipif mysql # not compatible
query II rowsort label-5961
SELECT DISTINCT - - 56 / + - COALESCE ( 16, - 8 + + 18 ) + 36 + - ( + 53 ) AS col1, COUNT ( * )
----
-20
1

query I rowsort
SELECT ALL + 22 - - + 70 * + 16 AS col2
----
1142

query I rowsort
SELECT - 97 + + 40 + - - 22 col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT - COALESCE ( 29, - COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-5964
SELECT - COALESCE ( 29, - COUNT ( * ) )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT 61 AS col1, SUM( - + 2 )
----
61
-2

skipif mysql # not compatible
query II rowsort label-5965
SELECT 61 AS col1, SUM ( - + 2 )
----
61
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5966
SELECT DISTINCT - CASE COUNT( * ) WHEN ( 74 ) * + COALESCE ( 2, - - 86 ) + + - ( COUNT( * ) ) + COUNT( * ) + - 52 / COALESCE ( - 86, - + 57 ) THEN - - ( 33 ) * 60 - CAST( - 24 AS SIGNED ) - 56 WHEN + + 1 * - 98 + 20 THEN + ( + + 73 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT - CASE COUNT ( * ) WHEN ( 74 ) * + COALESCE ( 2, - - 86 ) + + - ( COUNT ( * ) ) + COUNT ( * ) + - 52 / COALESCE ( - 86, - + 57 ) THEN - - ( 33 ) * 60 - CAST ( - 24 AS INTEGER ) - 56 WHEN + + 1 * - 98 + 20 THEN + ( + + 73 ) END AS col1
----
NULL

query I rowsort
SELECT ALL - + 89 col0
----
-89

query I rowsort
SELECT - ( + 84 ) * 77 + - + ( - + 11 ) AS col2
----
-6457

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

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

query I rowsort
SELECT - 86 + - 80
----
-166

query I rowsort
SELECT 32 * - 19
----
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT ALL - 52 + - + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL - 52 + - + COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT 38 + - COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5973
SELECT 38 + - COUNT ( * ) AS col1
----
37

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

skipif mysql # not compatible
query I rowsort label-5974
SELECT + MIN ( - 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT - 54 * + + 95 + - CASE + 56 WHEN - 57 * + 93 THEN NULL WHEN - 9 THEN - COUNT( * ) ELSE - + 59 * - 16 END
----
-6074

skipif mysql # not compatible
query I rowsort label-5975
SELECT - 54 * + + 95 + - CASE + 56 WHEN - 57 * + 93 THEN NULL WHEN - 9 THEN - COUNT ( * ) ELSE - + 59 * - 16 END
----
-6074

query I rowsort
SELECT ALL 5 + 31 * - + 51
----
-1576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5977
SELECT - MAX( DISTINCT CAST( + 97 AS SIGNED ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5977
SELECT - MAX ( DISTINCT CAST ( + 97 AS INTEGER ) ) AS col0
----
-97

query I rowsort
SELECT 67 + + + 21 + - 43
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5979
SELECT ALL 81 + 5 DIV 99 * 13 * - 20 * 98 * ( - COUNT( * ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL 81 + 5 / 99 * 13 * - 20 * 98 * ( - COUNT ( * ) ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT - MAX( DISTINCT NULLIF ( - 55, 59 ) )
----
55

skipif mysql # not compatible
query I rowsort label-5980
SELECT - MAX ( DISTINCT NULLIF ( - 55, 59 ) )
----
55

query I rowsort
SELECT DISTINCT ( + 68 ) + + 47 + 56 col0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT DISTINCT MAX( ALL + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT MAX ( ALL + 29 )
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT - COUNT( * ) * - 7 col0
----
7

skipif mysql # not compatible
query I rowsort label-5984
SELECT - COUNT ( * ) * - 7 col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT ALL + 0 / - CASE WHEN NOT + MAX( + - 35 ) IS NULL THEN NULL ELSE + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL + 0 / - CASE WHEN NOT + MAX ( + - 35 ) IS NULL THEN NULL ELSE + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - ( + 16 ) * - + 76 AS col1
----
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL - 27 - COALESCE ( + + COALESCE ( + 5, - 20 * - MAX( DISTINCT - 77 ) ), + 34 + - - 48 )
----
-32

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL - 27 - COALESCE ( + + COALESCE ( + 5, - 20 * - MAX ( DISTINCT - 77 ) ), + 34 + - - 48 )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5988
SELECT COALESCE ( - COUNT( * ), + - 54 * - 59 DIV + - 50, + 64 DIV - 8 + + + 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-5988
SELECT COALESCE ( - COUNT ( * ), + - 54 * - 59 / + - 50, + 64 / - 8 + + + 72 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5989
SELECT ALL - - COALESCE ( 59, 71 ) * 14 AS col1, 4 * + 8 + - COUNT( * ) * - COALESCE ( - 17, + CAST( + - COUNT( * ) AS SIGNED ), - + 83 ) * + + 78 AS col2
----
826
-1294

skipif mysql # not compatible
query II rowsort label-5989
SELECT ALL - - COALESCE ( 59, 71 ) * 14 AS col1, 4 * + 8 + - COUNT ( * ) * - COALESCE ( - 17, + CAST ( + - COUNT ( * ) AS INTEGER ), - + 83 ) * + + 78 AS col2
----
826
-1294

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT - + 31 DIV + 59 * - 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5990
SELECT - + 31 / + 59 * - 16 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5991
SELECT ALL - + 54 * - - 23 AS col0, COUNT( * )
----
-1242
1

skipif mysql # not compatible
query II rowsort label-5991
SELECT ALL - + 54 * - - 23 AS col0, COUNT ( * )
----
-1242
1

query II rowsort
SELECT DISTINCT + ( - 58 ), - 6 * - 13 AS col0
----
-58
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT DISTINCT - 52 * 25 * + COUNT( * ) * - 97 * - 17 - - 66
----
-2143634

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT - 52 * 25 * + COUNT ( * ) * - 97 * - 17 - - 66
----
-2143634

query I rowsort
SELECT - - 79 * 13 + 61 * 51 * + + 11
----
35248

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT 74 * 91 * - 16 + 3 + + + 70 * COUNT( DISTINCT + 63 ) * 5 + + ( + 80 ) AS col2
----
-107311

skipif mysql # not compatible
query I rowsort label-5995
SELECT 74 * 91 * - 16 + 3 + + + 70 * COUNT ( DISTINCT + 63 ) * 5 + + ( + 80 ) AS col2
----
-107311

onlyif mysql # aggregate syntax: 
query II rowsort label-5996
SELECT CASE + 53 WHEN + 71 THEN - 23 END, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5996
SELECT CASE + 53 WHEN + 71 THEN - 23 END, COUNT ( * ) AS col2
----
NULL
1

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

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

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

skipif mysql # not compatible
query II rowsort label-5998
SELECT + + ( + 27 ) AS col2, COUNT ( * )
----
27
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5999
SELECT + MAX( ALL + 73 ) DIV - COUNT( * ) + + 10
----
-63

skipif mysql # not compatible
query I rowsort label-5999
SELECT + MAX ( ALL + 73 ) / - COUNT ( * ) + + 10
----
-63

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6001
SELECT DISTINCT - 79 * + - 32 + 32 + - + 59 + + 68 + - ( - 42 ) col1, + ( + NULLIF ( + 1, MIN( - 87 ) ) ) AS col1
----
2611
1

skipif mysql # not compatible
query II rowsort label-6001
SELECT DISTINCT - 79 * + - 32 + 32 + - + 59 + + 68 + - ( - 42 ) col1, + ( + NULLIF ( + 1, MIN ( - 87 ) ) ) AS col1
----
2611
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6002
SELECT + SUM( DISTINCT + NULLIF ( ( 78 ), 71 ) ) DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-6002
SELECT + SUM ( DISTINCT + NULLIF ( ( 78 ), 71 ) ) / 71
----
1

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

query I rowsort
SELECT ALL - + ( - 76 ) * 55 + + 25 AS col2
----
4205

onlyif mysql # DIV for integer division: 
query I rowsort label-6005
SELECT - 94 DIV + - 35 col1
----
2

skipif mysql # not compatible
query I rowsort label-6005
SELECT - 94 / + - 35 col1
----
2

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

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

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

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

query II rowsort
SELECT ALL + 96 AS col0, 97 AS col0
----
96
97

query I rowsort
SELECT + 76 * + + 50
----
3800

query I rowsort
SELECT + 88 - ( 61 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT + COUNT( * ) * + 74 * - 36 AS col2
----
-2664

skipif mysql # not compatible
query I rowsort label-6011
SELECT + COUNT ( * ) * + 74 * - 36 AS col2
----
-2664

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6013
SELECT ALL 58 DIV - + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL 58 / - + 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT ALL + 6 * COALESCE ( + - ( + SUM( - - ( 11 ) ) ), ( 14 ) ) * - 75 + - MIN( - 57 )
----
5007

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL + 6 * COALESCE ( + - ( + SUM ( - - ( 11 ) ) ), ( 14 ) ) * - 75 + - MIN ( - 57 )
----
5007

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - COALESCE ( + 47, + COUNT( * ) ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6015
SELECT - COALESCE ( + 47, + COUNT ( * ) ) AS col0
----
-47

query II rowsort
SELECT DISTINCT 88 AS col0, 58 AS col2
----
88
58

query II rowsort
SELECT DISTINCT 39 AS col2, 92 + - - 77 - - COALESCE ( + + 62, + ( 97 ) ) * 10 + + - 46
----
39
743

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT + COUNT( * ) * + + 11 * + 35 * - - 48
----
18480

skipif mysql # not compatible
query I rowsort label-6019
SELECT + COUNT ( * ) * + + 11 * + 35 * - - 48
----
18480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6020
SELECT + 80 + CAST( NULL AS SIGNED ) + 84 * - 45 - 16 + + 10 * + NULLIF ( 60, 94 / - 58 * 17 ) * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT + 80 + CAST ( NULL AS INTEGER ) + 84 * - 45 - 16 + + 10 * + NULLIF ( 60, 94 / - 58 * 17 ) * + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL 92 - + COUNT( * ) * - 21
----
113

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL 92 - + COUNT ( * ) * - 21
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT + MIN( - 92 ) + - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-6022
SELECT + MIN ( - 92 ) + - COUNT ( * )
----
-93

query I rowsort
SELECT + 29 + - 57
----
-28

query I rowsort
SELECT + - 69 * - 91
----
6279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6025
SELECT - CASE + 49 WHEN - COUNT( * ) THEN - 42 WHEN - 36 * - 19 THEN + CAST( 94 AS SIGNED ) + + + SUM( ALL - 71 ) * 55 WHEN - - 75 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT - CASE + 49 WHEN - COUNT ( * ) THEN - 42 WHEN - 36 * - 19 THEN + CAST ( 94 AS INTEGER ) + + + SUM ( ALL - 71 ) * 55 WHEN - - 75 THEN NULL END
----
NULL

query II rowsort
SELECT DISTINCT 32 AS col2, - 17 AS col1
----
32
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-6027
SELECT + 5 DIV + 48 DIV - + 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6027
SELECT + 5 / + 48 / - + 1 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6028
SELECT - ( - + SUM( ALL - 22 ) ) / 62 + + 23 * + 21 * - 52 + + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT - ( - + SUM ( ALL - 22 ) ) / 62 + + 23 * + 21 * - 52 + + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT - + 42 * - ( - 12 )
----
-504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6030
SELECT DISTINCT - MIN( DISTINCT - 44 ) DIV COUNT( * ) * + 2 * 13 * - COUNT( - 11 ) + 19 + - - 0 - 23 - - 26 + + 58 col1
----
-1064

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT - MIN ( DISTINCT - 44 ) / COUNT ( * ) * + 2 * 13 * - COUNT ( - 11 ) + 19 + - - 0 - 23 - - 26 + + 58 col1
----
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT - - CASE + 38 WHEN + + 45 * - + ( COUNT( + 43 ) ) THEN - 43 WHEN 10 THEN - + 99 + - ( - 91 ) END * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT - - CASE + 38 WHEN + + 45 * - + ( COUNT ( + 43 ) ) THEN - 43 WHEN 10 THEN - + 99 + - ( - 91 ) END * - 84
----
NULL

query II rowsort
SELECT - 59 * - 78 + - - 29 col2, 63 * 96
----
4631
6048

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT + MIN( DISTINCT + + 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-6034
SELECT + MIN ( DISTINCT + + 57 ) AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6035
SELECT ALL - 39 DIV + - 90 + 41
----
41

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL - 39 / + - 90 + 41
----
41

query I rowsort
SELECT ALL + - 34 * - 76 + - 2 AS col2
----
2582

query I rowsort
SELECT - + 7 + + COALESCE ( 68, 48 + 43 ) AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6038
SELECT - 18 / 87 - + 73 + + - 44 - + - 45 * + - CASE 26 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + COUNT( * ) * + - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT - 18 / 87 - + 73 + + - 44 - + - 45 * + - CASE 26 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + COUNT ( * ) * + - CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6039
SELECT DISTINCT - + 22 DIV - 1 + - 20 * + - 24 AS col0
----
502

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT - + 22 / - 1 + - 20 * + - 24 AS col0
----
502

onlyif mysql # DIV for integer division: 
query I rowsort label-6040
SELECT ALL - 39 DIV ( 91 ) + + + 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL - 39 / ( 91 ) + + + 38 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6041
SELECT - CAST( NULL AS SIGNED ) * - 85 + + COUNT( * ) - - AVG ( DISTINCT - 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT - CAST ( NULL AS INTEGER ) * - 85 + + COUNT ( * ) - - AVG ( DISTINCT - 31 )
----
NULL

query I rowsort
SELECT DISTINCT + 17 * - + NULLIF ( + ( ( 31 ) ), + + 79 ) AS col2
----
-527

query I rowsort
SELECT DISTINCT 8 * - + 98 + - 38 AS col2
----
-822

query II rowsort
SELECT - COALESCE ( + 67, - + 90, - 87 ) + + ( - 42 ) AS col0, ( + 25 )
----
-109
25

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

skipif mysql # not compatible
query II rowsort label-6045
SELECT ALL - COUNT ( * ), 84 col2
----
-1
84

query I rowsort
SELECT ALL + 99 * - 72
----
-7128

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

skipif mysql # not compatible
query II rowsort label-6047
SELECT DISTINCT - COUNT ( * ) AS col0, - 51
----
-1
-51

query I rowsort
SELECT ALL + 90 - + 35
----
55

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

skipif mysql # not compatible
query II rowsort label-6049
SELECT ALL 46, COUNT ( * ) AS col2
----
46
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6050
SELECT 39, COALESCE ( - 25, + 11 * - COALESCE ( - + ( + MIN( DISTINCT 9 ) ), + 71 ) * + ( 97 ), + + 81 ) AS col0
----
39
-25

skipif mysql # not compatible
query II rowsort label-6050
SELECT 39, COALESCE ( - 25, + 11 * - COALESCE ( - + ( + MIN ( DISTINCT 9 ) ), + 71 ) * + ( 97 ), + + 81 ) AS col0
----
39
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT MIN( - + 72 ) * - - ( + NULLIF ( + MAX( ( 30 ) ), 49 * 20 * + - ( - - ( + - NULLIF ( 63, - 13 ) ) ) + + ( - - 78 ) ) )
----
-2160

skipif mysql # not compatible
query I rowsort label-6051
SELECT MIN ( - + 72 ) * - - ( + NULLIF ( + MAX ( ( 30 ) ), 49 * 20 * + - ( - - ( + - NULLIF ( 63, - 13 ) ) ) + + ( - - 78 ) ) )
----
-2160

query I rowsort
SELECT 1 + + ( + 11 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6053
SELECT - 2 AS col1, ( - COUNT( * ) ) + + 85 + 26 AS col2
----
-2
110

skipif mysql # not compatible
query II rowsort label-6053
SELECT - 2 AS col1, ( - COUNT ( * ) ) + + 85 + 26 AS col2
----
-2
110

onlyif mysql # DIV for integer division: 
query I rowsort label-6054
SELECT 8 DIV + + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6054
SELECT 8 / + + 77 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6055
SELECT DISTINCT 86 DIV + 45
----
1

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT 86 / + 45
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6056
SELECT DISTINCT 3 DIV 11
----
0

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT 3 / 11
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6057
SELECT 91 * - 33 * 25 * 67, + 40 * - MAX( DISTINCT + CAST( + + 79 AS SIGNED ) ) AS col1
----
-5030025
-3160

skipif mysql # not compatible
query II rowsort label-6057
SELECT 91 * - 33 * 25 * 67, + 40 * - MAX ( DISTINCT + CAST ( + + 79 AS INTEGER ) ) AS col1
----
-5030025
-3160

query II rowsort
SELECT ALL 13 AS col2, + 89 AS col1
----
13
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6059
SELECT DISTINCT + CASE + 59 WHEN + 91 * - 5 / + - 11 THEN - CAST( NULL AS SIGNED ) ELSE + 21 END AS col0
----
21

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT + CASE + 59 WHEN + 91 * - 5 / + - 11 THEN - CAST ( NULL AS INTEGER ) ELSE + 21 END AS col0
----
21

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

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

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

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

query II rowsort
SELECT DISTINCT + 52 + - 52, - 22 * 41 col1
----
0
-902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6063
SELECT ALL CASE + 38 WHEN - 51 THEN + - 71 ELSE + 42 * - + NULLIF ( - - 14, CASE 90 WHEN 17 THEN NULL ELSE + CASE 90 WHEN - 73 / - MIN( + - ( + 61 ) ) + - 92 THEN NULL WHEN - - 75 THEN NULL WHEN COUNT( * ) THEN 15 + + COUNT( * ) - - 98 END * + - 93 END * AVG ( ALL + + 23 ) * + - 64 / + CAST( - COUNT( * ) AS SIGNED ) ) * + CAST( NULL AS SIGNED ) + 37 + + 24 + - + 36 + 62 END + - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL CASE + 38 WHEN - 51 THEN + - 71 ELSE + 42 * - + NULLIF ( - - 14, CASE 90 WHEN 17 THEN NULL ELSE + CASE 90 WHEN - 73 / - MIN ( + - ( + 61 ) ) + - 92 THEN NULL WHEN - - 75 THEN NULL WHEN COUNT ( * ) THEN 15 + + COUNT ( * ) - - 98 END * + - 93 END * AVG ( ALL + + 23 ) * + - 64 / + CAST ( - COUNT ( * ) AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) + 37 + + 24 + - + 36 + 62 END + - 39 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 64 + COALESCE ( 68, 30 ) col1
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6065
SELECT + 38 DIV + - 22 + + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6065
SELECT + 38 / + - 22 + + - COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT ALL COALESCE ( + ( + + COUNT( DISTINCT - 84 ) ), ( 44 ) + 85 * + ( + + 17 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL COALESCE ( + ( + + COUNT ( DISTINCT - 84 ) ), ( 44 ) + 85 * + ( + + 17 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6067
SELECT 92 AS col0, - 54 + + + COUNT( * )
----
92
-53

skipif mysql # not compatible
query II rowsort label-6067
SELECT 92 AS col0, - 54 + + + COUNT ( * )
----
92
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT ALL COUNT( * ) + + - 85
----
-84

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL COUNT ( * ) + + - 85
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6069
SELECT ALL + 58 + - 21 AS col1, CAST( - 66 AS SIGNED ) AS col0
----
37
-66

skipif mysql # not compatible
query II rowsort label-6069
SELECT ALL + 58 + - 21 AS col1, CAST ( - 66 AS INTEGER ) AS col0
----
37
-66

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

query I rowsort
SELECT DISTINCT - 83 + 65 + 75
----
57

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

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

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

query I rowsort
SELECT ALL 29 * 60
----
1740

query I rowsort
SELECT DISTINCT - 58 - 35
----
-93

query I rowsort
SELECT ALL - ( - - 98 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT - COALESCE ( + 8, - ( + - COUNT( * ) ) ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT - COALESCE ( + 8, - ( + - COUNT ( * ) ) ) col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6078
SELECT ALL - 59 - - CAST( NULL AS SIGNED ) + 20 / - 12 + + - 36 * 62 - + + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL - 59 - - CAST ( NULL AS INTEGER ) + 20 / - 12 + + - 36 * 62 - + + 34 AS col2
----
NULL

query I rowsort
SELECT ALL - ( 92 ) AS col0
----
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6080
SELECT 72 - + + 25 / - 56 * - CAST( NULL AS DECIMAL ) * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6080
SELECT 72 - + + 25 / - 56 * - CAST ( NULL AS REAL ) * + 78
----
NULL

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

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

query II rowsort
SELECT ALL + 68 * + - 99, - 18 col0
----
-6732
-18

query I rowsort
SELECT ALL 97 * + 32 AS col2
----
3104

query I rowsort
SELECT ALL - 69 * + 93 * 76
----
-487692

query I rowsort
SELECT 7 - 2 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT - 64 + - ( - MAX( + - 50 ) ) * + COUNT( * ) + - 53 AS col2
----
-167

skipif mysql # not compatible
query I rowsort label-6086
SELECT - 64 + - ( - MAX ( + - 50 ) ) * + COUNT ( * ) + - 53 AS col2
----
-167

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT - SUM( DISTINCT - + CASE 51 WHEN + 0 THEN - 6 ELSE + + 25 END ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6088
SELECT - SUM ( DISTINCT - + CASE 51 WHEN + 0 THEN - 6 ELSE + + 25 END ) AS col0
----
25

query I rowsort
SELECT - 47 * + 31 + + 96 AS col1
----
-1361

query I rowsort
SELECT ALL + 22 + + - 76 + - 17 * - 71 + - 7 * - 45 + 31 AS col1
----
1499

query II rowsort
SELECT ALL - 48 + + - 14 AS col0, - 18
----
-62
-18

query II rowsort
SELECT + 14 + - + 85, + 21 AS col0
----
-71
21

onlyif mysql # aggregate syntax: 
query II rowsort label-6093
SELECT ALL - COUNT( * ) + - COUNT( * ), + 79 AS col2
----
-2
79

skipif mysql # not compatible
query II rowsort label-6093
SELECT ALL - COUNT ( * ) + - COUNT ( * ), + 79 AS col2
----
-2
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT ALL MIN( ALL - 18 ) + - 33 + 25
----
-26

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL MIN ( ALL - 18 ) + - 33 + 25
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6095
SELECT DISTINCT + 29 + - ( - + 76 ) - + COUNT( * ) * 74 + + 99 DIV 50 DIV + - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT + 29 + - ( - + 76 ) - + COUNT ( * ) * 74 + + 99 / 50 / + - COUNT ( * ) AS col2
----
30

query I rowsort
SELECT 29 * - ( 12 ) AS col0
----
-348

query II rowsort
SELECT ALL 33 * + - 92 AS col0, - 59
----
-3036
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT - NULLIF ( - - 2, + 97 * 96 + - + COUNT( * ) * 79 + - 84 - - COUNT( * ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6098
SELECT - NULLIF ( - - 2, + 97 * 96 + - + COUNT ( * ) * 79 + - 84 - - COUNT ( * ) ) AS col2
----
-2

query I rowsort
SELECT 18 + + COALESCE ( + 22, + 10, - - 79 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT - - NULLIF ( - 74, - COUNT( * ) ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-6100
SELECT - - NULLIF ( - 74, - COUNT ( * ) ) AS col0
----
-74

query II rowsort
SELECT - + ( + 53 ), 78 AS col1
----
-53
78

query II rowsort
SELECT ALL 92 * + 90 * 98 - - 55 + 85, 20 AS col1
----
811580
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT + 30 * + 98 * + COUNT( * ) + - + 71 AS col1
----
2869

skipif mysql # not compatible
query I rowsort label-6103
SELECT + 30 * + 98 * + COUNT ( * ) + - + 71 AS col1
----
2869

query I rowsort
SELECT DISTINCT 88 * 17 col1
----
1496

query I rowsort
SELECT + 17 * + 89 * + 11
----
16643

onlyif mysql # DIV for integer division: 
query I rowsort label-6106
SELECT ALL - 63 DIV - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL - 63 / - 97 AS col1
----
0

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

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

query I rowsort
SELECT + 81 * 43 col0
----
3483

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6110
SELECT ALL 39 DIV + 36 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL 39 / + 36 AS col2
----
1

query I rowsort
SELECT ALL + 73 * + - 54 col1
----
-3942

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6113
SELECT - 3 / - CAST( NULL AS DECIMAL ) / + ( 16 ) * - - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6113
SELECT - 3 / - CAST ( NULL AS REAL ) / + ( 16 ) * - - 84
----
NULL

query I rowsort
SELECT ALL 29 * - 8 + 91 + - + 75 - + 4 * - ( 28 ) AS col2
----
-104

query II rowsort
SELECT - 21 + 51 - + 30 + + 9 * + + 78 * + - 95 AS col1, - 97
----
-66690
-97

query I rowsort
SELECT + 91 * 94
----
8554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6117
SELECT 1 * - ( 1 ) + + COUNT( * ) * - 6 DIV - - 14 + - ( + 21 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6117
SELECT 1 * - ( 1 ) + + COUNT ( * ) * - 6 / - - 14 + - ( + 21 ) AS col0
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-6118
SELECT - 94 AS col1, 37 DIV + + 96
----
-94
0

skipif mysql # not compatible
query II rowsort label-6118
SELECT - 94 AS col1, 37 / + + 96
----
-94
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT ALL - 52 + + COUNT( * ) + - 64 + + CASE + + 45 WHEN - - 72 * 23 THEN + 78 * + 92 WHEN 1 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL - 52 + + COUNT ( * ) + - 64 + + CASE + + 45 WHEN - - 72 * 23 THEN + 78 * + 92 WHEN 1 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - - 46 * - 45
----
-2070

query I rowsort
SELECT DISTINCT - - 70 + + - 92
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-6122
SELECT ALL 0 AS col0, CASE - + 52 WHEN - ( - COUNT( * ) ) THEN + 90 ELSE - 2 - - ( + - ( 5 ) ) END * + 92 AS col0
----
0
-644

skipif mysql # not compatible
query II rowsort label-6122
SELECT ALL 0 AS col0, CASE - + 52 WHEN - ( - COUNT ( * ) ) THEN + 90 ELSE - 2 - - ( + - ( 5 ) ) END * + 92 AS col0
----
0
-644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6123
SELECT ALL - COUNT( * ) * + CAST( 25 AS SIGNED ) + - 59 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL - COUNT ( * ) * + CAST ( 25 AS INTEGER ) + - 59 AS col2
----
-84

query I rowsort
SELECT - 12 * - + 6 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT ALL - CASE 63 WHEN + 15 * 59 THEN - COUNT( ALL 20 ) ELSE NULL END + - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL - CASE 63 WHEN + 15 * 59 THEN - COUNT ( ALL 20 ) ELSE NULL END + - 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6126
SELECT DISTINCT - 20 AS col1, 72 * + COUNT( + 82 ) AS col0
----
-20
72

skipif mysql # not compatible
query II rowsort label-6126
SELECT DISTINCT - 20 AS col1, 72 * + COUNT ( + 82 ) AS col0
----
-20
72

query I rowsort
SELECT DISTINCT + 69 * - - NULLIF ( - - COALESCE ( - ( + 22 ), ( + + 84 ) * 91 ), + 59 * + + 50 ) AS col0
----
-1518

query I rowsort
SELECT ALL 64 + - - 46
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL NULLIF ( - 56, SUM( DISTINCT - 58 ) * + 55 + COUNT( * ) - + 24 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL NULLIF ( - 56, SUM ( DISTINCT - 58 ) * + 55 + COUNT ( * ) - + 24 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT - CASE - 98 WHEN 62 THEN 62 + + 42 WHEN - 47 THEN NULL END / + COUNT( * ) + - 12 * - 87 + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT - CASE - 98 WHEN 62 THEN 62 + + 42 WHEN - 47 THEN NULL END / + COUNT ( * ) + - 12 * - 87 + + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT ALL - + 28 * - + MIN( DISTINCT 58 ) * - 44 + - - 69
----
-71387

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL - + 28 * - + MIN ( DISTINCT 58 ) * - 44 + - - 69
----
-71387

onlyif mysql # DIV for integer division: 
query I rowsort label-6132
SELECT - + 19 * 74 DIV + 57 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-6132
SELECT - + 19 * 74 / + 57 AS col2
----
-24

query II rowsort
SELECT - - 43 AS col2, 34 AS col1
----
43
34

query I rowsort
SELECT ALL ( 44 ) AS col2
----
44

query I rowsort
SELECT - + 70 - + NULLIF ( - + 75, - 63 ) + + - 30 + - 69 * + + 47 AS col2
----
-3268

query I rowsort
SELECT DISTINCT - ( - - NULLIF ( + 13, + + 43 / - + 85 ) ) * - 94 AS col1
----
1222

query I rowsort
SELECT DISTINCT - 42 - - 21 AS col0
----
-21

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

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

query I rowsort
SELECT ALL 29 * - ( + + 50 ) AS col0
----
-1450

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT ALL 88 * - + MIN( 20 )
----
-1760

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL 88 * - + MIN ( 20 )
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT 31 * - 3 + + COUNT( * ) - + - COUNT( * ) * 97 col2
----
5

skipif mysql # not compatible
query I rowsort label-6141
SELECT 31 * - 3 + + COUNT ( * ) - + - COUNT ( * ) * 97 col2
----
5

query I rowsort
SELECT DISTINCT 34 * - 49 * ( + 31 )
----
-51646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6143
SELECT CAST( + - COUNT( * ) AS SIGNED ) AS col2, + COUNT( * ) - + - COUNT( * ) + + ( 58 ) AS col2
----
-1
60

skipif mysql # not compatible
query II rowsort label-6143
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) AS col2, + COUNT ( * ) - + - COUNT ( * ) + + ( 58 ) AS col2
----
-1
60

query I rowsort
SELECT + 58 * + NULLIF ( + ( 44 ), + + 80 )
----
2552

query I rowsort
SELECT + 64 * + 11 AS col2
----
704

query I rowsort
SELECT ALL 69 * - 52 * - 64 col2
----
229632

query II rowsort
SELECT DISTINCT - 86 * + + 55 AS col0, 74 AS col2
----
-4730
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6148
SELECT + COUNT( * ) + + + 3 col1, 91
----
4
91

skipif mysql # not compatible
query II rowsort label-6148
SELECT + COUNT ( * ) + + + 3 col1, 91
----
4
91

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

skipif mysql # not compatible
query I rowsort label-6149
SELECT + COUNT ( * ) * - 58 * + + 21 * 52 AS col0
----
-63336

query I rowsort
SELECT + 97 * + + 65 AS col1
----
6305

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT 15 * + - COUNT( * ) + - 90 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-6151
SELECT 15 * + - COUNT ( * ) + - 90 AS col2
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6152
SELECT ALL + 22 * - 53 + 28 - + CAST( 61 AS SIGNED ) AS col0
----
-1199

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL + 22 * - 53 + 28 - + CAST ( 61 AS INTEGER ) AS col0
----
-1199

query I rowsort
SELECT ALL + + 97 * + ( + 87 ) + - 5 + - 79 AS col1
----
8355

query I rowsort
SELECT DISTINCT - 64 * + 62 * 12 * + 62
----
-2952192

query I rowsort
SELECT DISTINCT - 37 * 94 + - 42 AS col1
----
-3520

query I rowsort
SELECT ALL - - 67 * - ( + - 42 ) AS col1
----
2814

onlyif mysql # aggregate syntax: 
query II rowsort label-6157
SELECT DISTINCT + + 11 * + - 80 * - COUNT( * ) + - 89 AS col2, COALESCE ( - + 15, + - 30 ) AS col1
----
791
-15

skipif mysql # not compatible
query II rowsort label-6157
SELECT DISTINCT + + 11 * + - 80 * - COUNT ( * ) + - 89 AS col2, COALESCE ( - + 15, + - 30 ) AS col1
----
791
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6158
SELECT ALL + 29 * - CAST( NULL AS DECIMAL ) * + + NULLIF ( + 8, - 75 ) + - - COUNT( * ) * - NULLIF ( + 20, - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL + 29 * - CAST ( NULL AS REAL ) * + + NULLIF ( + 8, - 75 ) + - - COUNT ( * ) * - NULLIF ( + 20, - 63 )
----
NULL

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

query I rowsort
SELECT ALL - + 0 - - - 54 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT + SUM( ALL - 61 ) * 43
----
-2623

skipif mysql # not compatible
query I rowsort label-6161
SELECT + SUM ( ALL - 61 ) * 43
----
-2623

query I rowsort
SELECT - 54 * + 88
----
-4752

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

skipif mysql # not compatible
query I rowsort label-6163
SELECT - COUNT ( + 91 ) + 96 / + + 73 + - 34
----
-34

query I rowsort
SELECT ALL + 13 * 71
----
923

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT 66 * - COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-6165
SELECT 66 * - COUNT ( * ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT - COUNT( * ) + - 40 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-6166
SELECT - COUNT ( * ) + - 40 AS col2
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-6167
SELECT 76 DIV - - 79
----
0

skipif mysql # not compatible
query I rowsort label-6167
SELECT 76 / - - 79
----
0

query I rowsort
SELECT ALL + 72 * - + 48
----
-3456

query I rowsort
SELECT 47 * - 87
----
-4089

query I rowsort
SELECT 86 + + 89
----
175

query II rowsort
SELECT - 19 col0, 65 AS col2
----
-19
65

query II rowsort
SELECT 46, + 4 * + ( - 45 ) AS col0
----
46
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT MIN( DISTINCT + 43 ) + COUNT( DISTINCT ( - + 42 ) )
----
44

skipif mysql # not compatible
query I rowsort label-6173
SELECT MIN ( DISTINCT + 43 ) + COUNT ( DISTINCT ( - + 42 ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT COUNT( * ) / + + ( - - CASE - 61 WHEN + COUNT( DISTINCT 29 ) THEN - 27 WHEN + COUNT( * ) * + ( - 62 ) THEN 64 + + 17 + COUNT( * ) ELSE NULL END ) / - - 30 / 53
----
NULL

skipif mysql # not compatible
query I rowsort label-6174
SELECT COUNT ( * ) / + + ( - - CASE - 61 WHEN + COUNT ( DISTINCT 29 ) THEN - 27 WHEN + COUNT ( * ) * + ( - 62 ) THEN 64 + + 17 + COUNT ( * ) ELSE NULL END ) / - - 30 / 53
----
NULL

query I rowsort
SELECT DISTINCT - 0 + - - 82
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6176
SELECT ALL NULLIF ( + NULLIF ( + - 28, 38 ), - - 51 - - 15 ) DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL NULLIF ( + NULLIF ( + - 28, 38 ), - - 51 - - 15 ) / 53 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6177
SELECT MAX( DISTINCT 60 ) DIV - NULLIF ( + 19, - 73 * + MAX( DISTINCT - + 40 ) * - 57 ) * COUNT( * ) col1
----
-3

skipif mysql # not compatible
query I rowsort label-6177
SELECT MAX ( DISTINCT 60 ) / - NULLIF ( + 19, - 73 * + MAX ( DISTINCT - + 40 ) * - 57 ) * COUNT ( * ) col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT DISTINCT + 28 DIV + 15 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT + 28 / + 15 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT ALL COUNT( * ) + - 26 * + - 85 - - + COUNT( * )
----
2212

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL COUNT ( * ) + - 26 * + - 85 - - + COUNT ( * )
----
2212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6180
SELECT + ( + 93 ) * - 12 - + 16 + - COALESCE ( + COUNT( * ), + + 34 DIV + - 65 - ( + SUM( ALL + 52 ) ) + - 66, + + COUNT( * ) + - COALESCE ( - + 17, + 99 + - - COUNT( * ) ) )
----
-1133

skipif mysql # not compatible
query I rowsort label-6180
SELECT + ( + 93 ) * - 12 - + 16 + - COALESCE ( + COUNT ( * ), + + 34 / + - 65 - ( + SUM ( ALL + 52 ) ) + - 66, + + COUNT ( * ) + - COALESCE ( - + 17, + 99 + - - COUNT ( * ) ) )
----
-1133

onlyif mysql # DIV for integer division: 
query II rowsort label-6181
SELECT 57 AS col1, + 22 + - 52 DIV + + 84 AS col1
----
57
22

skipif mysql # not compatible
query II rowsort label-6181
SELECT 57 AS col1, + 22 + - 52 / + + 84 AS col1
----
57
22

query I rowsort
SELECT DISTINCT - 55 + - 51
----
-106

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6184
SELECT 38 * - 86 + 63 - 76 + + 46 DIV - ( + 75 ) * - 70 * - - ( + CASE + CAST( - 11 AS SIGNED ) WHEN 34 + + - 87 * - - NULLIF ( + + NULLIF ( COUNT( * ), + - 4 * 90 ), 58 * - + 40 ) THEN 22 ELSE + + 32 END )
----
-3281

skipif mysql # not compatible
query I rowsort label-6184
SELECT 38 * - 86 + 63 - 76 + + 46 / - ( + 75 ) * - 70 * - - ( + CASE + CAST ( - 11 AS INTEGER ) WHEN 34 + + - 87 * - - NULLIF ( + + NULLIF ( COUNT ( * ), + - 4 * 90 ), 58 * - + 40 ) THEN 22 ELSE + + 32 END )
----
-3281

query I rowsort
SELECT ALL NULLIF ( + 41, + 32 * 64 ) * 0 AS col0
----
0

query I rowsort
SELECT ALL + 38 + - 47 AS col0
----
-9

query I rowsort
SELECT ALL 26 - 83 * - 23
----
1935

query I rowsort
SELECT - 8 * 63 + + 58
----
-446

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6189
SELECT CASE - 33 WHEN 33 + 31 / MIN( ALL 93 + 32 * - 63 ) THEN NULL WHEN MIN( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * - ( + 0 ) THEN - 91 * - 55 END * - 6 + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6189
SELECT CASE - 33 WHEN 33 + 31 / MIN ( ALL 93 + 32 * - 63 ) THEN NULL WHEN MIN ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - ( + 0 ) THEN - 91 * - 55 END * - 6 + 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6190
SELECT CAST( 4 AS SIGNED ) + COUNT( * ) col2
----
5

skipif mysql # not compatible
query I rowsort label-6190
SELECT CAST ( 4 AS INTEGER ) + COUNT ( * ) col2
----
5

query I rowsort
SELECT DISTINCT 1 - 75
----
-74

query I rowsort
SELECT ALL 19 * 60
----
1140

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6193
SELECT ALL CAST( NULL AS DECIMAL ) / - AVG ( ALL + 42 * + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL CAST ( NULL AS REAL ) / - AVG ( ALL + 42 * + 7 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6194
SELECT CAST( 3 AS SIGNED ) * 94
----
282

skipif mysql # not compatible
query I rowsort label-6194
SELECT CAST ( 3 AS INTEGER ) * 94
----
282

query I rowsort
SELECT DISTINCT 65 * - 84
----
-5460

query I rowsort
SELECT ALL 24 * 24 AS col1
----
576

query I rowsort
SELECT ALL 59 * + 6
----
354

query I rowsort
SELECT CASE + 39 WHEN + 71 THEN 46 * ( 53 ) ELSE NULL END * - 36 AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT + 68 + + COALESCE ( 44, + 90 * + 92 ) * 11
----
552

query I rowsort
SELECT 5 * 32 AS col0
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-6202
SELECT DISTINCT 58 + - 70 DIV - 40
----
59

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT 58 + - 70 / - 40
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT DISTINCT + NULLIF ( - 14, - 23 ) + + COUNT( * ) * - 37 col1
----
-51

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT + NULLIF ( - 14, - 23 ) + + COUNT ( * ) * - 37 col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT DISTINCT - 69 + MIN( ALL 69 )
----
0

skipif mysql # not compatible
query I rowsort label-6204
SELECT DISTINCT - 69 + MIN ( ALL 69 )
----
0

query I rowsort
SELECT ALL + ( - 46 ) + 3 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-6206
SELECT ALL + 41 DIV 18 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL + 41 / 18 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6207
SELECT CAST( + MIN( 74 ) AS SIGNED ) * 24 AS col0
----
1776

skipif mysql # not compatible
query I rowsort label-6207
SELECT CAST ( + MIN ( 74 ) AS INTEGER ) * 24 AS col0
----
1776

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT SUM( DISTINCT COALESCE ( - 49, + 90 ) ) + - 87 AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-6208
SELECT SUM ( DISTINCT COALESCE ( - 49, + 90 ) ) + - 87 AS col1
----
-136

query I rowsort
SELECT DISTINCT 86 * + 38 + + 6
----
3274

query I rowsort
SELECT ALL + 34 * 88 + + 53
----
3045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6211
SELECT ALL - 51 * + 87 + - 84 / - ( MIN( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL - 51 * + 87 + - 84 / - ( MIN ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT DISTINCT 23 * + 46 + 85 AS col2
----
1143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6213
SELECT 51 DIV 42 + MAX( 27 )
----
28

skipif mysql # not compatible
query I rowsort label-6213
SELECT 51 / 42 + MAX ( 27 )
----
28

query I rowsort
SELECT DISTINCT + 51 * 51 + - 64 * 0 AS col0
----
2601

query I rowsort
SELECT ALL 4 - 7 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL - 15 / NULLIF ( - 84 / 57 - - SUM( 15 ) * CASE 40 WHEN 96 + 19 THEN + COALESCE ( + 2, - 9, - ( 95 ) / - COALESCE ( - 68 * 57, - 32 ) + 38 ) + + 63 END, 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - 15 / NULLIF ( - 84 / 57 - - SUM ( 15 ) * CASE 40 WHEN 96 + 19 THEN + COALESCE ( + 2, - 9, - ( 95 ) / - COALESCE ( - 68 * 57, - 32 ) + 38 ) + + 63 END, 5 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6217
SELECT ALL - - 21 DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL - - 21 / - 34
----
0

query I rowsort
SELECT + 13 * 92 + - 49
----
1147

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

skipif mysql # not compatible
query I rowsort label-6219
SELECT COUNT ( * ) / + 2 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT ALL + ( CASE COUNT( * ) WHEN 87 * 79 + + 84 THEN ( - AVG ( ALL + 50 ) ) END ) - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL + ( CASE COUNT ( * ) WHEN 87 * 79 + + 84 THEN ( - AVG ( ALL + 50 ) ) END ) - 94 AS col0
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 34, 13, 11 ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT 80 - COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-6222
SELECT 80 - COUNT ( * ) AS col1
----
79

query I rowsort
SELECT - 58 * + 20
----
-1160

query I rowsort
SELECT DISTINCT 6 * 62 col2
----
372

query I rowsort
SELECT ( 78 ) * - 91 + 76 * 80 col1
----
-1018

query I rowsort
SELECT DISTINCT + 19 * - 49 col1
----
-931

query I rowsort
SELECT + + 8 * - 9 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT DISTINCT + + ( 52 ) * COUNT( * ) col0
----
52

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT + + ( 52 ) * COUNT ( * ) col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT + COUNT( * ) - 84 col0
----
-83

skipif mysql # not compatible
query I rowsort label-6229
SELECT + COUNT ( * ) - 84 col0
----
-83

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

skipif mysql # not compatible
query I rowsort label-6230
SELECT + - COUNT ( * ) / 42 AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6232
SELECT ALL - 61 + + 99 * + CAST( + 25 AS SIGNED ) AS col2
----
2414

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL - 61 + + 99 * + CAST ( + 25 AS INTEGER ) AS col2
----
2414

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT - CASE - - 24 WHEN - NULLIF ( SUM( + 24 ), - CASE - 89 WHEN + ( + 32 ) * - 60 THEN + 35 * - 90 + - 99 * - COUNT( * ) END ) + 33 THEN NULL ELSE + 14 END
----
-14

skipif mysql # not compatible
query I rowsort label-6233
SELECT - CASE - - 24 WHEN - NULLIF ( SUM ( + 24 ), - CASE - 89 WHEN + ( + 32 ) * - 60 THEN + 35 * - 90 + - 99 * - COUNT ( * ) END ) + 33 THEN NULL ELSE + 14 END
----
-14

query I rowsort
SELECT DISTINCT + 0 + - 89
----
-89

query I rowsort
SELECT ALL 46 * - 17 AS col1
----
-782

onlyif mysql # DIV for integer division: 
query I rowsort label-6236
SELECT + 52 DIV - 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6236
SELECT + 52 / - 85 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6237
SELECT + ( + ( + 89 ) ) + CASE COALESCE ( 60, + 73, - 99 + - 33 ) WHEN AVG ( CAST( 71 AS SIGNED ) ) * - COUNT( * ) THEN COALESCE ( CAST( - 33 AS SIGNED ), CAST( 69 AS SIGNED ) * - SUM( DISTINCT + ( 35 ) * - 94 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT + ( + ( + 89 ) ) + CASE COALESCE ( 60, + 73, - 99 + - 33 ) WHEN AVG ( CAST ( 71 AS INTEGER ) ) * - COUNT ( * ) THEN COALESCE ( CAST ( - 33 AS INTEGER ), CAST ( 69 AS INTEGER ) * - SUM ( DISTINCT + ( 35 ) * - 94 ) ) END AS col1
----
NULL

query I rowsort
SELECT + 87 + + 20 * - 41 AS col0
----
-733

query I rowsort
SELECT ALL - ( 69 ) + COALESCE ( 66 + 78 * 99, + 38 )
----
7719

query I rowsort
SELECT - NULLIF ( + 93, AVG ( DISTINCT 78 ) ) AS col2
----
-93

query I rowsort
SELECT ALL 11 * 94 AS col0
----
1034

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

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

query I rowsort
SELECT - 98 * + 98
----
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT DISTINCT NULLIF ( + COUNT( * ), - CASE - 48 WHEN - COUNT( * ) * 25 THEN NULL WHEN AVG ( - 29 ) + - 0 THEN - COUNT( * ) * 12 END - COALESCE ( COUNT( * ), + 5 ) * 15 ) + 2
----
3

skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT NULLIF ( + COUNT ( * ), - CASE - 48 WHEN - COUNT ( * ) * 25 THEN NULL WHEN AVG ( - 29 ) + - 0 THEN - COUNT ( * ) * 12 END - COALESCE ( COUNT ( * ), + 5 ) * 15 ) + 2
----
3

query I rowsort
SELECT - COALESCE ( + - 21, 21 )
----
21

query I rowsort
SELECT - 33 + + ( 75 ) - + 27 * + NULLIF ( + 23, ( 52 ) * - 95 )
----
-579

onlyif mysql # DIV for integer division: 
query I rowsort label-6247
SELECT ALL ( - 97 ) + 58 DIV 82 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL ( - 97 ) + 58 / 82 AS col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6248
SELECT - COALESCE ( - - SUM( - 17 ), - 27 ) DIV + 4 + 99
----
103

skipif mysql # not compatible
query I rowsort label-6248
SELECT - COALESCE ( - - SUM ( - 17 ), - 27 ) / + 4 + 99
----
103

query I rowsort
SELECT DISTINCT 19 * - 80 - - 76 AS col1
----
-1444

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

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

query I rowsort
SELECT + 39 + + 32 AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6252
SELECT + 97 * + NULLIF ( + 93, 1 / - COUNT( * ) + NULLIF ( - 3 + 88, + 57 ) * ( + CAST( NULL AS SIGNED ) ) )
----
9021

skipif mysql # not compatible
query I rowsort label-6252
SELECT + 97 * + NULLIF ( + 93, 1 / - COUNT ( * ) + NULLIF ( - 3 + 88, + 57 ) * ( + CAST ( NULL AS INTEGER ) ) )
----
9021

query I rowsort
SELECT ALL - 30 * - ( 5 ) - 6 AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT ALL - 75 * + COUNT( DISTINCT + 39 )
----
-75

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL - 75 * + COUNT ( DISTINCT + 39 )
----
-75

query I rowsort
SELECT ALL + COALESCE ( - 88, - 10 )
----
-88

query I rowsort
SELECT DISTINCT - 66 * - 87 AS col0
----
5742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6257
SELECT + - 27 + - + 12 * - CAST( + 14 AS SIGNED ) AS col0
----
141

skipif mysql # not compatible
query I rowsort label-6257
SELECT + - 27 + - + 12 * - CAST ( + 14 AS INTEGER ) AS col0
----
141

query I rowsort
SELECT - + 10 * 53 * 77 + + 24 * - 1 AS col1
----
-40834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT - CASE - 96 WHEN - 54 THEN + 57 + 96 / + 60 WHEN CAST( + CAST( 33 AS SIGNED ) AS SIGNED ) / 57 THEN 23 END * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT - CASE - 96 WHEN - 54 THEN + 57 + 96 / + 60 WHEN CAST ( + CAST ( 33 AS INTEGER ) AS INTEGER ) / 57 THEN 23 END * + 16
----
NULL

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

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

query I rowsort
SELECT - + 47 + 40 + 63 AS col0
----
56

query I rowsort
SELECT ALL - + 69 * 48
----
-3312

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT - 73 * - + SUM( DISTINCT + 76 ) + + COUNT( * ) + + 83
----
5632

skipif mysql # not compatible
query I rowsort label-6264
SELECT - 73 * - + SUM ( DISTINCT + 76 ) + + COUNT ( * ) + + 83
----
5632

query I rowsort
SELECT - + 3 * NULLIF ( 22, + CASE - 41 WHEN 24 / - 13 THEN 27 ELSE NULL END ) * 58
----
-3828

query I rowsort
SELECT - 65 + - 63 AS col2
----
-128

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

skipif mysql # not compatible
query I rowsort label-6267
SELECT - 78 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6268
SELECT ALL - 26 DIV - 1 + + 51
----
77

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL - 26 / - 1 + + 51
----
77

query I rowsort
SELECT DISTINCT + - COALESCE ( + 76, 4 + + 37, + 55 + + CASE - 52 WHEN 66 - - ( - 66 ) THEN NULL ELSE - 48 + 87 END * + 12 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT - 92 * - + CASE COUNT( * ) WHEN + 78 THEN 67 * 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6270
SELECT - 92 * - + CASE COUNT ( * ) WHEN + 78 THEN 67 * 37 END
----
NULL

query I rowsort
SELECT ALL + 95 * + 50 + 95
----
4845

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

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

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

query I rowsort
SELECT + + 96 + - 77 AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6275
SELECT DISTINCT - 74 * - - 23 + COUNT( * ) DIV COUNT( * ) AS col0
----
-1701

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT - 74 * - - 23 + COUNT ( * ) / COUNT ( * ) AS col0
----
-1701

query I rowsort
SELECT ALL 26 * 40 + - 65 * 43 + 13 * - 91
----
-2938

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6277
SELECT ALL 17 * - 16 + + 13 * COALESCE ( COUNT( * ), NULLIF ( + 70, 96 ) DIV 18 )
----
-259

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL 17 * - 16 + + 13 * COALESCE ( COUNT ( * ), NULLIF ( + 70, 96 ) / 18 )
----
-259

query I rowsort
SELECT ALL 6 + + CASE WHEN NULL IS NOT NULL THEN NULL ELSE 79 END
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT - 11 * - + CASE - - COALESCE ( + 41, - 27 + NULLIF ( + 29, + AVG ( DISTINCT 10 ) ), - 27 * 95 + - 73 * + 69 ) WHEN COUNT( * ) THEN 47 * + 22 + 51 END * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT - 11 * - + CASE - - COALESCE ( + 41, - 27 + NULLIF ( + 29, + AVG ( DISTINCT 10 ) ), - 27 * 95 + - 73 * + 69 ) WHEN COUNT ( * ) THEN 47 * + 22 + 51 END * 6
----
NULL

query I rowsort
SELECT DISTINCT ( 1 )
----
1

query I rowsort
SELECT DISTINCT - 41 * + 96 AS col2
----
-3936

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT ALL CASE - 36 WHEN - + 3 THEN 9 + 67 END + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL CASE - 36 WHEN - + 3 THEN 9 + 67 END + + COUNT ( * ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL - 23 + + + ( 18 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 75 - + 86 * 38
----
-3343

query I rowsort
SELECT + 81 * + 75
----
6075

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

skipif mysql # not compatible
query II rowsort label-6286
SELECT - COUNT ( * ) col2, + 70 AS col2
----
-1
70

query I rowsort
SELECT + 75 + + 28
----
103

query I rowsort
SELECT + 45 * + 17 AS col2
----
765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6289
SELECT + 51 * + CAST( + 23 AS SIGNED ) * CASE + 3 + + 78 WHEN + 86 * + 11 + - 51 * + 42 THEN NULL WHEN 59 * - ( + 45 ) + CAST( NULL AS SIGNED ) THEN NULL WHEN 59 THEN 95 WHEN 10 * 29 THEN - 10 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT + 51 * + CAST ( + 23 AS INTEGER ) * CASE + 3 + + 78 WHEN + 86 * + 11 + - 51 * + 42 THEN NULL WHEN 59 * - ( + 45 ) + CAST ( NULL AS INTEGER ) THEN NULL WHEN 59 THEN 95 WHEN 10 * 29 THEN - 10 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6290
SELECT ALL 57 DIV - + 82 * - 29 col1
----
0

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL 57 / - + 82 * - 29 col1
----
0

query I rowsort
SELECT - ( - - 18 )
----
-18

query I rowsort
SELECT + 98 - - 85
----
183

query I rowsort
SELECT + 15 * 79
----
1185

query I rowsort
SELECT ALL 86 - + 14 + 98 * + 98
----
9676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6295
SELECT + 62 + - + COALESCE ( - 10, - 48 - ( 0 ) ) - - CAST( + COUNT( * ) AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-6295
SELECT + 62 + - + COALESCE ( - 10, - 48 - ( 0 ) ) - - CAST ( + COUNT ( * ) AS INTEGER )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT + 79 * COUNT( ALL + 58 ) * 54
----
4266

skipif mysql # not compatible
query I rowsort label-6296
SELECT + 79 * COUNT ( ALL + 58 ) * 54
----
4266

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT + - ( + + MAX( - 99 ) ) * ( - 45 + - 8 ) AS col0
----
-5247

skipif mysql # not compatible
query I rowsort label-6297
SELECT + - ( + + MAX ( - 99 ) ) * ( - 45 + - 8 ) AS col0
----
-5247

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

skipif mysql # not compatible
query I rowsort label-6298
SELECT + + CAST ( NULL AS INTEGER ) - - 31 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6299
SELECT ALL + + COUNT( * ), + 98 * + 96 * 28 col0
----
1
263424

skipif mysql # not compatible
query II rowsort label-6299
SELECT ALL + + COUNT ( * ), + 98 * + 96 * 28 col0
----
1
263424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6300
SELECT + + 7 * + NULLIF ( + 67, COUNT( * ) ) + 4 DIV - 92 AS col2
----
469

skipif mysql # not compatible
query I rowsort label-6300
SELECT + + 7 * + NULLIF ( + 67, COUNT ( * ) ) + 4 / - 92 AS col2
----
469

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT + 83 DIV + 19 * + 5 DIV + 5 + 57 * - ( + 62 + - 24 )
----
-2162

skipif mysql # not compatible
query I rowsort label-6301
SELECT + 83 / + 19 * + 5 / + 5 + 57 * - ( + 62 + - 24 )
----
-2162

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6302
SELECT 80 * + COUNT( * ) + + NULLIF ( 13, + 13 + - CAST( NULL AS DECIMAL ) )
----
93

skipif mysql # not compatible
query I rowsort label-6302
SELECT 80 * + COUNT ( * ) + + NULLIF ( 13, + 13 + - CAST ( NULL AS REAL ) )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6303
SELECT + CAST( NULL AS SIGNED ) AS col0, 45 * + + COUNT( * ) - + 20 col1
----
NULL
25

skipif mysql # not compatible
query II rowsort label-6303
SELECT + CAST ( NULL AS INTEGER ) AS col0, 45 * + + COUNT ( * ) - + 20 col1
----
NULL
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL CASE - - 41 WHEN - + 74 - 46 THEN COUNT( * ) END * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL CASE - - 41 WHEN - + 74 - 46 THEN COUNT ( * ) END * 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT + 78 * - 16 + + COUNT( * ) AS col2
----
-1247

skipif mysql # not compatible
query I rowsort label-6305
SELECT + 78 * - 16 + + COUNT ( * ) AS col2
----
-1247

query II rowsort
SELECT + - 66, + ( + - 71 ) AS col1
----
-66
-71

query I rowsort
SELECT - 51 - + + 32 + 70 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT + - MAX( - - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-6308
SELECT + - MAX ( - - 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL - 45 + - 44 - + ( COALESCE ( + 49, COUNT( * ) ) ) * 23
----
-1216

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL - 45 + - 44 - + ( COALESCE ( + 49, COUNT ( * ) ) ) * 23
----
-1216

query I rowsort
SELECT 58 + + 58
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT ALL 35 + MAX( ALL + - 44 ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL 35 + MAX ( ALL + - 44 ) col1
----
-9

query I rowsort
SELECT ALL 39 * - + 81
----
-3159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6313
SELECT ALL + 82 + + CAST( + ( - COUNT( * ) ) AS SIGNED ) + COUNT( * ) * + 75
----
156

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + 82 + + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + COUNT ( * ) * + 75
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT ( - + ( + + COUNT( * ) ) ) + + 88 col0
----
87

skipif mysql # not compatible
query I rowsort label-6314
SELECT ( - + ( + + COUNT ( * ) ) ) + + 88 col0
----
87

query I rowsort
SELECT 11 - - + 77 AS col2
----
88

query I rowsort
SELECT 82 * - + 88 col0
----
-7216

query I rowsort
SELECT 20 + + + 30
----
50

query I rowsort
SELECT DISTINCT + 65 * + + 81 AS col2
----
5265

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

skipif mysql # not compatible
query I rowsort label-6319
SELECT COUNT ( * ) + - + ( + 12 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT 1 + + COUNT( + 69 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6320
SELECT 1 + + COUNT ( + 69 ) AS col0
----
2

query I rowsort
SELECT ALL - 92 * 32
----
-2944

onlyif mysql # DIV for integer division: 
query I rowsort label-6322
SELECT 10 + COALESCE ( - ( 25 ), 7 * - 93, + ( - 36 ) - 73, - 16 * - 13 ) + 7 DIV 28 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-6322
SELECT 10 + COALESCE ( - ( 25 ), 7 * - 93, + ( - 36 ) - 73, - 16 * - 13 ) + 7 / 28 AS col2
----
-15

query I rowsort
SELECT ALL - CASE WHEN COALESCE ( + 8, + 78, 12 ) <= - NULLIF ( 8, 59 ) THEN - 25 * 16 ELSE 43 * - 23 END * - 84
----
-83076

query I rowsort
SELECT 36 * - - 9
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT 7 + + MIN( ALL 74 )
----
81

skipif mysql # not compatible
query I rowsort label-6325
SELECT 7 + + MIN ( ALL 74 )
----
81

query I rowsort
SELECT 45 + 95 * 15 AS col0
----
1470

query I rowsort
SELECT 26 * - NULLIF ( + + 58, - 48 * 84 ) * + 9
----
-13572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6328
SELECT SUM( ALL + + CAST( NULL AS SIGNED ) ) * CASE - + ( - 58 ) WHEN + CAST( NULL AS SIGNED ) * 58 THEN - 17 WHEN - 21 THEN NULL ELSE + 31 END * - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6328
SELECT SUM ( ALL + + CAST ( NULL AS INTEGER ) ) * CASE - + ( - 58 ) WHEN + CAST ( NULL AS INTEGER ) * 58 THEN - 17 WHEN - 21 THEN NULL ELSE + 31 END * - 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6329
SELECT 32 + - 43 + - COUNT( * ) DIV - - 99 * 6 col1
----
-11

skipif mysql # not compatible
query I rowsort label-6329
SELECT 32 + - 43 + - COUNT ( * ) / - - 99 * 6 col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT + COALESCE ( - COUNT( * ), COUNT( * ) ) + - + 54 * MAX( - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-6330
SELECT + COALESCE ( - COUNT ( * ), COUNT ( * ) ) + - + 54 * MAX ( - 0 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT 95 * ( - COUNT( * ) ) * + 55 + 27
----
-5198

skipif mysql # not compatible
query I rowsort label-6331
SELECT 95 * ( - COUNT ( * ) ) * + 55 + 27
----
-5198

query I rowsort
SELECT ALL - 89 + 1
----
-88

query I rowsort
SELECT DISTINCT - 31 + 35 + 74 * 85 * - 58
----
-364816

onlyif mysql # aggregate syntax: 
query II rowsort label-6334
SELECT DISTINCT 39 + 79, - COUNT( * ) * + ( + 47 ) AS col1
----
118
-47

skipif mysql # not compatible
query II rowsort label-6334
SELECT DISTINCT 39 + 79, - COUNT ( * ) * + ( + 47 ) AS col1
----
118
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT ALL - 40 * + NULLIF ( + 36, - COUNT( * ) ) + - NULLIF ( 15, - 33 )
----
-1455

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL - 40 * + NULLIF ( + 36, - COUNT ( * ) ) + - NULLIF ( 15, - 33 )
----
-1455

query II rowsort
SELECT 4 * 79 AS col1, 8
----
316
8

query I rowsort
SELECT - 83 + - 36
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT + + 57 * + 45 + - 75 * - COUNT( * )
----
2640

skipif mysql # not compatible
query I rowsort label-6338
SELECT + + 57 * + 45 + - 75 * - COUNT ( * )
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT + - 43 * 89 + - ( 60 ) * + COUNT( * )
----
-3887

skipif mysql # not compatible
query I rowsort label-6339
SELECT + - 43 * 89 + - ( 60 ) * + COUNT ( * )
----
-3887

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT ALL - + NULLIF ( - 92, COUNT( * ) * + 90 + + ( 29 ) * + 6 )
----
92

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL - + NULLIF ( - 92, COUNT ( * ) * + 90 + + ( 29 ) * + 6 )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6342
SELECT ALL COUNT( * ) * + - 69 * 19 * - 58 DIV + - COUNT( * )
----
-76038

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL COUNT ( * ) * + - 69 * 19 * - 58 / + - COUNT ( * )
----
-76038

query I rowsort
SELECT 20 + - 2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT CASE 14 WHEN 52 THEN + - COUNT( * ) * 87 - + 32 END * 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6344
SELECT CASE 14 WHEN 52 THEN + - COUNT ( * ) * 87 - + 32 END * 91 AS col2
----
NULL

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

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

query I rowsort
SELECT 17 * 80 * - 49
----
-66640

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT DISTINCT COALESCE ( 52, + COUNT( * ), + 39 ) * + 84 * 76 col2
----
331968

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT COALESCE ( 52, + COUNT ( * ), + 39 ) * + 84 * 76 col2
----
331968

onlyif mysql # DIV for integer division: 
query I rowsort label-6348
SELECT DISTINCT + ( - 25 ) DIV + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT + ( - 25 ) / + 86 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6349
SELECT 36 DIV + 26 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6349
SELECT 36 / + 26 AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT COUNT( * ) + 83 + - + 90 - + 43 * - 76 * - 23
----
-75170

skipif mysql # not compatible
query I rowsort label-6351
SELECT COUNT ( * ) + 83 + - + 90 - + 43 * - 76 * - 23
----
-75170

onlyif mysql # DIV for integer division: 
query I rowsort label-6352
SELECT 26 DIV + + 30
----
0

skipif mysql # not compatible
query I rowsort label-6352
SELECT 26 / + + 30
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6353
SELECT ALL - ( + + 3 ) * + 34, - COUNT( * ) AS col0
----
-102
-1

skipif mysql # not compatible
query II rowsort label-6353
SELECT ALL - ( + + 3 ) * + 34, - COUNT ( * ) AS col0
----
-102
-1

query I rowsort
SELECT - + 74 * - 12 AS col0
----
888

query I rowsort
SELECT - + 15 - 72 + + 7 + + 11 + CASE - 8 WHEN 70 * 49 THEN - 60 * - 67 + + 65 ELSE 56 END + 88 * 89
----
7819

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6356
SELECT ALL CAST( NULL AS SIGNED ), COALESCE ( + 19, 73 DIV - 18, + 3 ) AS col2
----
NULL
19

skipif mysql # not compatible
query II rowsort label-6356
SELECT ALL CAST ( NULL AS INTEGER ), COALESCE ( + 19, 73 / - 18, + 3 ) AS col2
----
NULL
19

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

query I rowsort
SELECT ALL 70 + + 21
----
91

query I rowsort
SELECT DISTINCT 45 * - - 61 * 35 + - 23
----
96052

query I rowsort
SELECT + 72 - + 99
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT ALL MIN( 74 ) * - - 87 + - 16 AS col0
----
6422

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL MIN ( 74 ) * - - 87 + - 16 AS col0
----
6422

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6362
SELECT ALL 32 * 25 + + COUNT( * ) * - - 72 DIV COUNT( * ) + 84
----
956

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL 32 * 25 + + COUNT ( * ) * - - 72 / COUNT ( * ) + 84
----
956

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT - 24 * + MAX( + ( 15 ) ) * - ( + 56 )
----
20160

skipif mysql # not compatible
query I rowsort label-6363
SELECT - 24 * + MAX ( + ( 15 ) ) * - ( + 56 )
----
20160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6364
SELECT - - COUNT( ALL + 79 ) DIV - 45, 11 + + - 66 AS col0
----
0
-55

skipif mysql # not compatible
query II rowsort label-6364
SELECT - - COUNT ( ALL + 79 ) / - 45, 11 + + - 66 AS col0
----
0
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL - 17 * + NULLIF ( + - 65, + 1 * - SUM( + 51 ) ) + - ( 29 ) + - 26
----
1050

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL - 17 * + NULLIF ( + - 65, + 1 * - SUM ( + 51 ) ) + - ( 29 ) + - 26
----
1050

query I rowsort
SELECT DISTINCT - ( + 91 ) * - - 54 * - + 18 col0
----
88452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6367
SELECT + 70 DIV 89 - + MAX( ALL + 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6367
SELECT + 70 / 89 - + MAX ( ALL + 30 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT DISTINCT NULLIF ( MIN( DISTINCT + 87 ), + + 4 - - 7 * 49 ) * 34
----
2958

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT NULLIF ( MIN ( DISTINCT + 87 ), + + 4 - - 7 * 49 ) * 34
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT + 19 * 33 * - 16 + - COUNT( * )
----
-10033

skipif mysql # not compatible
query I rowsort label-6369
SELECT + 19 * 33 * - 16 + - COUNT ( * )
----
-10033

query I rowsort
SELECT ALL 47 * - 34 * - 96 AS col2
----
153408

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT DISTINCT COUNT( * ) * CASE - 28 WHEN 77 - 12 THEN 21 / + NULLIF ( + COUNT( * ) * - 46 + - 35, + 87 ) WHEN + 44 * 32 THEN - 7 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT COUNT ( * ) * CASE - 28 WHEN 77 - 12 THEN 21 / + NULLIF ( + COUNT ( * ) * - 46 + - 35, + 87 ) WHEN + 44 * 32 THEN - 7 END AS col2
----
NULL

query I rowsort
SELECT ALL + 19 * + 68 AS col1
----
1292

onlyif mysql # DIV for integer division: 
query I rowsort label-6373
SELECT + 22 + - 12 DIV ( - - 20 )
----
22

skipif mysql # not compatible
query I rowsort label-6373
SELECT + 22 + - 12 / ( - - 20 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT - MIN( - - 73 ) * - 14 + + + ( + MAX( DISTINCT - 75 ) ) + - 53 AS col2
----
894

skipif mysql # not compatible
query I rowsort label-6374
SELECT - MIN ( - - 73 ) * - 14 + + + ( + MAX ( DISTINCT - 75 ) ) + - 53 AS col2
----
894

query I rowsort
SELECT + 16 * - ( - 92 ) * - 23 AS col2
----
-33856

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT + 75 + + - 75 * - 24 + - + COUNT( ALL - 99 ) - 33 * - 91
----
4877

skipif mysql # not compatible
query I rowsort label-6376
SELECT + 75 + + - 75 * - 24 + - + COUNT ( ALL - 99 ) - 33 * - 91
----
4877

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT MAX( + - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-6378
SELECT MAX ( + - 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT + 63 + - 41 + 20 + - + COUNT( * ) + COUNT( ALL + ( 67 ) ) * 22 * + MIN( + ( - 49 ) ) * + 75 AS col1
----
-80809

skipif mysql # not compatible
query I rowsort label-6379
SELECT + 63 + - 41 + 20 + - + COUNT ( * ) + COUNT ( ALL + ( 67 ) ) * 22 * + MIN ( + ( - 49 ) ) * + 75 AS col1
----
-80809

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT MIN( - 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6380
SELECT MIN ( - 1 ) AS col1
----
-1

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

skipif mysql # not compatible
query I rowsort label-6381
SELECT - NULLIF ( + 74, CAST ( NULL AS INTEGER ) )
----
-74

query I rowsort
SELECT - ( - 85 ) + - 6 * + - 31
----
271

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

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

query I rowsort
SELECT ALL 38 * + 80
----
3040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6385
SELECT + 9 + + + CAST( + - 74 AS SIGNED ) + - - 67 + + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-6385
SELECT + 9 + + + CAST ( + - 74 AS INTEGER ) + - - 67 + + + COUNT ( * )
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6386
SELECT DISTINCT - 3 + + 60 DIV ( CAST( + + 42 AS SIGNED ) ) + 36 + 11 * 55 * 25 AS col2
----
15159

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT - 3 + + 60 / ( CAST ( + + 42 AS INTEGER ) ) + 36 + 11 * 55 * 25 AS col2
----
15159

query I rowsort
SELECT + - 70 + + 53 AS col0
----
-17

query I rowsort
SELECT ALL 76 + - 93 * + 51
----
-4667

query II rowsort
SELECT - 33 AS col1, + 90 AS col0
----
-33
90

query I rowsort
SELECT DISTINCT - - 34 + - 26 AS col2
----
8

query II rowsort
SELECT 21 AS col2, - ( + 20 ) AS col0
----
21
-20

query I rowsort
SELECT + - ( 13 ) + 81
----
68

query I rowsort
SELECT + 73 * 97 - - + 52 * + - COALESCE ( 44, + 40 ) - - 91 AS col0
----
4884

query I rowsort
SELECT - 42 + - 51
----
-93

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

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

query I rowsort
SELECT DISTINCT - - 42 + + 38 * + + 81
----
3120

query I rowsort
SELECT - ( + 4 ) col2
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6398
SELECT - NULLIF ( CAST( NULL AS DECIMAL ), + 28 + + ( 68 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT - NULLIF ( CAST ( NULL AS REAL ), + 28 + + ( 68 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT ALL - COUNT( * ) + 66 * - NULLIF ( + - 86, - 11 ) * + 28
----
158927

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL - COUNT ( * ) + 66 * - NULLIF ( + - 86, - 11 ) * + 28
----
158927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6400
SELECT - - 68 * + - CASE WHEN NOT - 92 IN ( + COUNT( ALL - - 36 ) + 19 ) THEN 37 WHEN NOT NULL NOT IN ( - 71 * 28 + - SUM( DISTINCT - 76 + CAST( 75 AS SIGNED ) ) ) THEN + 34 END + ( 95 + MAX( ALL 93 ) ) AS col2
----
-2328

skipif mysql # not compatible
query I rowsort label-6400
SELECT - - 68 * + - CASE WHEN NOT - 92 IN ( + COUNT ( ALL - - 36 ) + 19 ) THEN 37 WHEN NOT NULL NOT IN ( - 71 * 28 + - SUM ( DISTINCT - 76 + CAST ( 75 AS INTEGER ) ) ) THEN + 34 END + ( 95 + MAX ( ALL 93 ) ) AS col2
----
-2328

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT ALL + COUNT( DISTINCT - ( 73 ) ) * + 95
----
95

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL + COUNT ( DISTINCT - ( 73 ) ) * + 95
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6402
SELECT + 71 * 41 + - 10 * CASE + 11 WHEN + 3 * - 69 THEN + 80 WHEN 41 * - 78 + AVG ( CASE + 46 WHEN + 17 THEN 0 ELSE 0 END ) * - COUNT( - 73 ) THEN NULL ELSE - 3 END DIV + SUM( DISTINCT - 95 ) + 44 AS col1
----
2955

skipif mysql # not compatible
query I rowsort label-6402
SELECT + 71 * 41 + - 10 * CASE + 11 WHEN + 3 * - 69 THEN + 80 WHEN 41 * - 78 + AVG ( CASE + 46 WHEN + 17 THEN 0 ELSE 0 END ) * - COUNT ( - 73 ) THEN NULL ELSE - 3 END / + SUM ( DISTINCT - 95 ) + 44 AS col1
----
2955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6403
SELECT CASE + 4 WHEN 30 THEN - - MIN( ALL ( 58 ) ) + - 7 / - ( CAST( NULL AS SIGNED ) ) WHEN - 98 THEN NULL END * 97 + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT CASE + 4 WHEN 30 THEN - - MIN ( ALL ( 58 ) ) + - 7 / - ( CAST ( NULL AS INTEGER ) ) WHEN - 98 THEN NULL END * 97 + + 95
----
NULL

query I rowsort
SELECT DISTINCT + + 23 AS col0
----
23

query I rowsort
SELECT ALL + - 88 * 3 AS col2
----
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6406
SELECT - ( - ( - + 55 ) ) DIV - ( 96 ) + + - 3 + 85 * COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-6406
SELECT - ( - ( - + 55 ) ) / - ( 96 ) + + - 3 + 85 * COUNT ( * ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6407
SELECT - 29 * 33, - MAX( + - ( + 38 ) ) AS col1
----
-957
38

skipif mysql # not compatible
query II rowsort label-6407
SELECT - 29 * 33, - MAX ( + - ( + 38 ) ) AS col1
----
-957
38

query I rowsort
SELECT DISTINCT + ( + + 72 ) AS col0
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-6409
SELECT ( + 14 ), + 7 * + - 23 + + 41 + - 42 DIV 2 AS col0
----
14
-141

skipif mysql # not compatible
query II rowsort label-6409
SELECT ( + 14 ), + 7 * + - 23 + + 41 + - 42 / 2 AS col0
----
14
-141

query I rowsort
SELECT ALL 93 * 69 * - 9 AS col1
----
-57753

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT - 99 * - SUM( 90 ) * MIN( DISTINCT - - 86 ) * 11 + - - 77
----
8428937

skipif mysql # not compatible
query I rowsort label-6411
SELECT - 99 * - SUM ( 90 ) * MIN ( DISTINCT - - 86 ) * 11 + - - 77
----
8428937

query II rowsort
SELECT DISTINCT + ( - 17 ), - 74 AS col0
----
-17
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT SUM( - ( 87 ) ) * + 23 + + - 8 + + ( - - 98 ) * 52 AS col0
----
3087

skipif mysql # not compatible
query I rowsort label-6413
SELECT SUM ( - ( 87 ) ) * + 23 + + - 8 + + ( - - 98 ) * 52 AS col0
----
3087

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT NULLIF ( + 18, + 40 * - + 61 + + 17 + SUM( 47 ) + 32 * - 80 )
----
18

skipif mysql # not compatible
query I rowsort label-6414
SELECT NULLIF ( + 18, + 40 * - + 61 + + 17 + SUM ( 47 ) + 32 * - 80 )
----
18

query I rowsort
SELECT + COALESCE ( + 69, 83, - COALESCE ( - 97, - ( 53 ) ) * ( + 24 ), + 59 + 73 ) + 30 * 48 AS col0
----
1509

onlyif mysql # DIV for integer division: 
query I rowsort label-6416
SELECT 29 DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6416
SELECT 29 / + 85 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6417
SELECT MAX( 8 ) DIV - - 86 * - 20
----
0

skipif mysql # not compatible
query I rowsort label-6417
SELECT MAX ( 8 ) / - - 86 * - 20
----
0

query II rowsort
SELECT 35 * - 53 AS col2, - 25 AS col2
----
-1855
-25

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

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

query II rowsort
SELECT ALL 79 + 31, 5 AS col1
----
110
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6421
SELECT DISTINCT 38 + + - 47 AS col0, + COUNT( DISTINCT + 90 ) + + 19 + - - 46
----
-9
66

skipif mysql # not compatible
query II rowsort label-6421
SELECT DISTINCT 38 + + - 47 AS col0, + COUNT ( DISTINCT + 90 ) + + 19 + - - 46
----
-9
66

query I rowsort
SELECT - 43 + 8
----
-35

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

query I rowsort
SELECT - 36 + ( 30 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT DISTINCT COUNT( * ) + 99 + 45 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT COUNT ( * ) + 99 + 45 AS col1
----
145

query I rowsort
SELECT ALL + 52 + - 34
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT + MIN( - 66 ) * 58 - + COUNT( 24 ) + MIN( 60 )
----
-3769

skipif mysql # not compatible
query I rowsort label-6427
SELECT + MIN ( - 66 ) * 58 - + COUNT ( 24 ) + MIN ( 60 )
----
-3769

query I rowsort
SELECT - 93 - 36
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6429
SELECT - CAST( + - 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-6429
SELECT - CAST ( + - 16 AS INTEGER )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT COUNT( * ) + - 31 - 33 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6430
SELECT COUNT ( * ) + - 31 - 33 AS col2
----
-63

query I rowsort
SELECT ( + 88 ) * - - 48 AS col0
----
4224

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6433
SELECT - MIN( DISTINCT + 62 ) DIV + 33 + - 44 * + - 74 - + + COUNT( * ) + - - 38 + 56 * 37 AS col1
----
5364

skipif mysql # not compatible
query I rowsort label-6433
SELECT - MIN ( DISTINCT + 62 ) / + 33 + - 44 * + - 74 - + + COUNT ( * ) + - - 38 + 56 * 37 AS col1
----
5364

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT - SUM( DISTINCT - 23 ) * - 23 AS col2
----
-529

skipif mysql # not compatible
query I rowsort label-6435
SELECT - SUM ( DISTINCT - 23 ) * - 23 AS col2
----
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT COALESCE ( + 86, - 8 * - + 90 * + + MIN( ALL 2 ) - 74 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-6436
SELECT COALESCE ( + 86, - 8 * - + 90 * + + MIN ( ALL 2 ) - 74 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT 96 * COUNT( * ) - 39 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-6437
SELECT 96 * COUNT ( * ) - 39 AS col2
----
57

query II rowsort
SELECT + 63, 28 + + 14 * + 35 AS col0
----
63
518

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT DISTINCT - MAX( ( 73 ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT - MAX ( ( 73 ) ) AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6440
SELECT 36 - + MAX( ALL - 96 ) DIV + 6 + + - 26
----
26

skipif mysql # not compatible
query I rowsort label-6440
SELECT 36 - + MAX ( ALL - 96 ) / + 6 + + - 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ALL + COALESCE ( - 31, - 86 ) + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL + COALESCE ( - 31, - 86 ) + COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6442
SELECT - SUM( ALL - 56 ) * - 80 + - - 89 * SUM( + 43 ) DIV + ( + - 97 ) - ( - 94 ) + 5 AS col2
----
-4420

skipif mysql # not compatible
query I rowsort label-6442
SELECT - SUM ( ALL - 56 ) * - 80 + - - 89 * SUM ( + 43 ) / + ( + - 97 ) - ( - 94 ) + 5 AS col2
----
-4420

query I rowsort
SELECT 19 + - 5 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT ALL - NULLIF ( + + ( - COUNT( * ) ), 78 ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL - NULLIF ( + + ( - COUNT ( * ) ), 78 ) + COUNT ( * ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6445
SELECT 35 + - CASE + + 39 WHEN - - 7 * - COUNT( * ) - 8 + - AVG ( + 17 ) + 89 * + 40 THEN - 46 + - 13 WHEN CAST( NULL AS SIGNED ) THEN 57 DIV CAST( NULL AS SIGNED ) ELSE MIN( 71 ) * - 72 END AS col1
----
5147

skipif mysql # not compatible
query I rowsort label-6445
SELECT 35 + - CASE + + 39 WHEN - - 7 * - COUNT ( * ) - 8 + - AVG ( + 17 ) + 89 * + 40 THEN - 46 + - 13 WHEN CAST ( NULL AS INTEGER ) THEN 57 / CAST ( NULL AS INTEGER ) ELSE MIN ( 71 ) * - 72 END AS col1
----
5147

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6446
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, - 23 AS col0
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-6446
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - 23 AS col0
----
NULL
-23

query I rowsort
SELECT ALL - 3 + + 44 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6448
SELECT ALL - 30 + + 4 + - ( + 42 ) * + COUNT( - 44 ) / - - CASE + + 8 WHEN 45 * 73 + - COALESCE ( 83, - COUNT( * ) ) THEN - 91 WHEN AVG ( ALL + CAST( - 77 AS SIGNED ) ) THEN + ( 33 ) END * 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL - 30 + + 4 + - ( + 42 ) * + COUNT ( - 44 ) / - - CASE + + 8 WHEN 45 * 73 + - COALESCE ( 83, - COUNT ( * ) ) THEN - 91 WHEN AVG ( ALL + CAST ( - 77 AS INTEGER ) ) THEN + ( 33 ) END * 52 AS col2
----
NULL

query I rowsort
SELECT + 44 * ( - 7 ) + 81
----
-227

query I rowsort
SELECT ALL 97 + + 19
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT ALL - CAST( - - 13 AS SIGNED ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL - CAST ( - - 13 AS INTEGER ) AS col1
----
-13

query I rowsort
SELECT 35 + - ( 94 ) * 77
----
-7203

query II rowsort
SELECT 44 * - - COALESCE ( 51, 61 ) AS col1, COALESCE ( + - COALESCE ( + + 28, + 94 ), + 79 ) - + 75 AS col1
----
2244
-103

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

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

query I rowsort
SELECT 37 + + 89
----
126

query I rowsort
SELECT ALL 94 - - 89 AS col0
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-6457
SELECT 24 * + - 40 * - 65 * 32 DIV 2 - - + 93
----
998493

skipif mysql # not compatible
query I rowsort label-6457
SELECT 24 * + - 40 * - 65 * 32 / 2 - - + 93
----
998493

query I rowsort
SELECT - 33 * + + CASE + 99 WHEN + 81 * + 4 THEN 49 - 19 + - 88 END / 23 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6459
SELECT - CASE - 33 WHEN + 97 + CAST( NULL AS SIGNED ) THEN 50 - - 72 - MIN( + 42 ) + + COUNT( * ) * COUNT( * ) WHEN 35 * + 52 THEN + COUNT( * ) ELSE NULL END + ( + COUNT( * ) + COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT - CASE - 33 WHEN + 97 + CAST ( NULL AS INTEGER ) THEN 50 - - 72 - MIN ( + 42 ) + + COUNT ( * ) * COUNT ( * ) WHEN 35 * + 52 THEN + COUNT ( * ) ELSE NULL END + ( + COUNT ( * ) + COUNT ( * ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT DISTINCT - 79 * + CASE 36 WHEN - - 40 THEN NULL ELSE COALESCE ( + 9, - - 37 ) END - - - SUM( DISTINCT 56 ) * - 18 AS col2
----
297

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT - 79 * + CASE 36 WHEN - - 40 THEN NULL ELSE COALESCE ( + 9, - - 37 ) END - - - SUM ( DISTINCT 56 ) * - 18 AS col2
----
297

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

skipif mysql # not compatible
query I rowsort label-6461
SELECT ALL + COUNT ( * ) - 25 AS col2
----
-24

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

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

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

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

query I rowsort
SELECT 93 * 15
----
1395

query I rowsort
SELECT CASE + 13 WHEN - CASE + - ( 89 ) WHEN 43 THEN - NULLIF ( + - 16, 48 ) + + 23 ELSE NULL END THEN 39 END
----
NULL

query I rowsort
SELECT 86 + - 29 * + 64 * + 32 * ( - 3 ) AS col2
----
178262

query I rowsort
SELECT - 49 * - 1
----
49

query I rowsort
SELECT + 2 + - 50
----
-48

query I rowsort
SELECT ALL - 14 * + NULLIF ( 53, 24 )
----
-742

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL - COUNT( 97 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL - COUNT ( 97 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6473
SELECT 33 * - - CAST( NULL AS SIGNED ) + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT 33 * - - CAST ( NULL AS INTEGER ) + 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6474
SELECT COALESCE ( - + 4, + 3, + - 64 + SUM( ALL + ( 19 ) ) + - 46 * 82 * + 74 * - 12, 94 * 78 ) DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-6474
SELECT COALESCE ( - + 4, + 3, + - 64 + SUM ( ALL + ( 19 ) ) + - 46 * 82 * + 74 * - 12, 94 * 78 ) / 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT COUNT( * ) * + - 56 * + + MIN( - - 86 ) * - + COUNT( * )
----
4816

skipif mysql # not compatible
query I rowsort label-6475
SELECT COUNT ( * ) * + - 56 * + + MIN ( - - 86 ) * - + COUNT ( * )
----
4816

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT - ( - 91 ) * - + 25 * 8 * - + 94 + COUNT( * )
----
1710801

skipif mysql # not compatible
query I rowsort label-6476
SELECT - ( - 91 ) * - + 25 * 8 * - + 94 + COUNT ( * )
----
1710801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6477
SELECT MAX( 36 ) DIV 21 + - ( - 57 ) col0
----
58

skipif mysql # not compatible
query I rowsort label-6477
SELECT MAX ( 36 ) / 21 + - ( - 57 ) col0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6478
SELECT + 40 DIV - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6478
SELECT + 40 / - 42 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6479
SELECT + 57 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6479
SELECT + 57 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL - 45 * + 73 + + NULLIF ( 50, 8 ) * COUNT( * )
----
-3235

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL - 45 * + 73 + + NULLIF ( 50, 8 ) * COUNT ( * )
----
-3235

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT DISTINCT + 61 * + 64 + - 50 - COUNT( * ) + 47 * + 43 * 71 + + 33 AS col0
----
147377

skipif mysql # not compatible
query I rowsort label-6481
SELECT DISTINCT + 61 * + 64 + - 50 - COUNT ( * ) + 47 * + 43 * 71 + + 33 AS col0
----
147377

query I rowsort
SELECT ALL + 71 * - 26 AS col2
----
-1846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6483
SELECT ALL - CAST( NULL AS SIGNED ) * + 7 + 14 + 1 * + + 92 * + CASE + 85 WHEN - 99 THEN + - 45 END + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - CAST ( NULL AS INTEGER ) * + 7 + 14 + 1 * + + 92 * + CASE + 85 WHEN - 99 THEN + - 45 END + 32 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6485
SELECT ALL + CASE + - NULLIF ( - 67, CAST( + + 14 AS SIGNED ) * + 44 * - COALESCE ( + 16, 97 * 20 ) ) WHEN + ( + 6 ) THEN - 51 WHEN 36 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL + CASE + - NULLIF ( - 67, CAST ( + + 14 AS INTEGER ) * + 44 * - COALESCE ( + 16, 97 * 20 ) ) WHEN + ( + 6 ) THEN - 51 WHEN 36 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT MIN( + 96 ) col2
----
96

skipif mysql # not compatible
query I rowsort label-6486
SELECT MIN ( + 96 ) col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT - MAX( + 57 ) * 28
----
-1596

skipif mysql # not compatible
query I rowsort label-6487
SELECT - MAX ( + 57 ) * 28
----
-1596

query I rowsort
SELECT ALL + 99 * - 37 * + 63 * 27 * - 12 AS col2
----
74769156

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6490
SELECT - - 30 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6490
SELECT - - 30 * - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - 70 - + 93
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - SUM( DISTINCT - 44 ) * + MIN( + 95 )
----
4180

skipif mysql # not compatible
query I rowsort label-6492
SELECT - SUM ( DISTINCT - 44 ) * + MIN ( + 95 )
----
4180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6493
SELECT ALL + - COUNT( 72 ) DIV - + 94
----
0

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL + - COUNT ( 72 ) / - + 94
----
0

query I rowsort
SELECT ALL + + 81 * - + 59 - - 34 * 90 + - 54 AS col1
----
-1773

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6495
SELECT + + SUM( DISTINCT 79 ) + - - 36 + - + SUM( + 80 ) - - - 21 DIV + 81 + 24 * + 97 * 21 * 8 * SUM( DISTINCT 75 )
----
29332835

skipif mysql # not compatible
query I rowsort label-6495
SELECT + + SUM ( DISTINCT 79 ) + - - 36 + - + SUM ( + 80 ) - - - 21 / + 81 + 24 * + 97 * 21 * 8 * SUM ( DISTINCT 75 )
----
29332835

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT ALL - 74 * + CASE 69 WHEN AVG ( - - 71 ) * - + 72 + + NULLIF ( + COUNT( * ), - 38 * + 17 + + CASE + 18 WHEN 16 THEN NULL ELSE 34 END * - COUNT( * ) ) / + 94 THEN 7 + - ( + 93 + 63 ) * + 39 WHEN 79 THEN NULL WHEN 44 THEN + 4 END + 57 / 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL - 74 * + CASE 69 WHEN AVG ( - - 71 ) * - + 72 + + NULLIF ( + COUNT ( * ), - 38 * + 17 + + CASE + 18 WHEN 16 THEN NULL ELSE 34 END * - COUNT ( * ) ) / + 94 THEN 7 + - ( + 93 + 63 ) * + 39 WHEN 79 THEN NULL WHEN 44 THEN + 4 END + 57 / 14
----
NULL

query I rowsort
SELECT + 14 * + 51 * - 90
----
-64260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6498
SELECT ALL - NULLIF ( + - 30, COUNT( * ) + + 85 ) + + CAST( - 23 AS SIGNED ) * 82 * + 45, - 90 DIV + 75 + 36 AS col2
----
-84840
35

skipif mysql # not compatible
query II rowsort label-6498
SELECT ALL - NULLIF ( + - 30, COUNT ( * ) + + 85 ) + + CAST ( - 23 AS INTEGER ) * 82 * + 45, - 90 / + 75 + 36 AS col2
----
-84840
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6499
SELECT - 7, 52 * COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col1
----
-7
0

skipif mysql # not compatible
query II rowsort label-6499
SELECT - 7, 52 * COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1
----
-7
0

query I rowsort
SELECT - 46 + + - 44 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT - CASE 23 WHEN - 95 * - 5 - 79 * - 6 THEN + 38 + - 85 + ( - 55 ) + SUM( DISTINCT ( + 90 ) ) / 4 WHEN 12 THEN MIN( 65 ) - 37 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6501
SELECT - CASE 23 WHEN - 95 * - 5 - 79 * - 6 THEN + 38 + - 85 + ( - 55 ) + SUM ( DISTINCT ( + 90 ) ) / 4 WHEN 12 THEN MIN ( 65 ) - 37 ELSE NULL END
----
NULL

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

query I rowsort
SELECT + 58 - + 66 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT - 87 * 58 * - COUNT( ALL + - 61 ) - - - COUNT( * ) + + 50
----
5095

skipif mysql # not compatible
query I rowsort label-6504
SELECT - 87 * 58 * - COUNT ( ALL + - 61 ) - - - COUNT ( * ) + + 50
----
5095

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT + NULLIF ( COUNT( * ), - 12 / ( + 65 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6506
SELECT + NULLIF ( COUNT ( * ), - 12 / ( + 65 ) )
----
1

query I rowsort
SELECT 3 * 73 + 88 * - 18
----
-1365

query I rowsort
SELECT + 80 - 65 + - 12
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT + COUNT( * ) + - MIN( 77 ) * - 23
----
1772

skipif mysql # not compatible
query I rowsort label-6509
SELECT + COUNT ( * ) + - MIN ( 77 ) * - 23
----
1772

query I rowsort
SELECT + 3 * + 84
----
252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6511
SELECT ALL 14 DIV 93 * MIN( + 66 )
----
0

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL 14 / 93 * MIN ( + 66 )
----
0

query I rowsort
SELECT + + 59 + + 1 col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6513
SELECT ALL + 54 DIV NULLIF ( + + 52, - - 55 + - 32 + + 32 + - 96 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL + 54 / NULLIF ( + + 52, - - 55 + - 32 + + 32 + - 96 ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT + CASE + - 59 WHEN 73 + - 84 THEN - COUNT( * ) WHEN 44 + + COUNT( * ) / - - COUNT( * ) THEN + + COALESCE ( + COUNT( * ), CASE - 82 WHEN + ( NULLIF ( 88, 93 ) ) THEN NULL WHEN 88 THEN + 32 * 1 + 76 END + + 93, + 57, + COUNT( * ) ) END * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6515
SELECT + CASE + - 59 WHEN 73 + - 84 THEN - COUNT ( * ) WHEN 44 + + COUNT ( * ) / - - COUNT ( * ) THEN + + COALESCE ( + COUNT ( * ), CASE - 82 WHEN + ( NULLIF ( 88, 93 ) ) THEN NULL WHEN 88 THEN + 32 * 1 + 76 END + + 93, + 57, + COUNT ( * ) ) END * COUNT ( * ) col2
----
NULL

query I rowsort
SELECT - 50 * + 82 * - + NULLIF ( - 38, - 7 ) - + + 40 + - 32 AS col1
----
-155872

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT ALL MAX( ALL + + 46 ) * - - 37
----
1702

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL MAX ( ALL + + 46 ) * - - 37
----
1702

query I rowsort
SELECT - 9 + - - 97 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT - + 69 + 39 * + - COUNT( ALL 14 )
----
-108

skipif mysql # not compatible
query I rowsort label-6519
SELECT - + 69 + 39 * + - COUNT ( ALL 14 )
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6520
SELECT ALL - 45 * 72 + + + 85 + COUNT( * ) - - + NULLIF ( 70, - - 10 + - COUNT( * ) * ( - + 0 ) * COALESCE ( + 36, + 11 + 73, + 74 ) - + COUNT( - 9 ) ) DIV + ( - 32 ) + + NULLIF ( + 24, 3 ) * - 61 AS col1
----
-4620

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL - 45 * 72 + + + 85 + COUNT ( * ) - - + NULLIF ( 70, - - 10 + - COUNT ( * ) * ( - + 0 ) * COALESCE ( + 36, + 11 + 73, + 74 ) - + COUNT ( - 9 ) ) / + ( - 32 ) + + NULLIF ( + 24, 3 ) * - 61 AS col1
----
-4620

onlyif mysql # DIV for integer division: 
query I rowsort label-6521
SELECT ALL + 97 DIV - - 1
----
97

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL + 97 / - - 1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6522
SELECT - 98 DIV - - 1 - - - 31 col2
----
-129

skipif mysql # not compatible
query I rowsort label-6522
SELECT - 98 / - - 1 - - - 31 col2
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL + 86 + - - MIN( DISTINCT - COALESCE ( NULLIF ( - - 43, + + 90 ), + COALESCE ( - 24, 85 ) ) )
----
43

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL + 86 + - - MIN ( DISTINCT - COALESCE ( NULLIF ( - - 43, + + 90 ), + COALESCE ( - 24, 85 ) ) )
----
43

query I rowsort
SELECT - + 6 + + - 58
----
-64

query I rowsort
SELECT - 55 * 56 AS col1
----
-3080

query I rowsort
SELECT - 64 + - - 48 * 30 AS col1
----
1376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6527
SELECT 46 DIV - SUM( CAST( + 37 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6527
SELECT 46 / - SUM ( CAST ( + 37 AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT 49 + + ( 67 ) AS col0
----
116

query II rowsort
SELECT ALL 58 AS col1, 77 - 52
----
58
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6530
SELECT DISTINCT - CAST( COALESCE ( - 17, - 74 * + 5 + COUNT( * ) + - 49, - 1 ) AS SIGNED ) * - - 88 AS col2, 4
----
1496
4

skipif mysql # not compatible
query II rowsort label-6530
SELECT DISTINCT - CAST ( COALESCE ( - 17, - 74 * + 5 + COUNT ( * ) + - 49, - 1 ) AS INTEGER ) * - - 88 AS col2, 4
----
1496
4

query I rowsort
SELECT 29 * + 76
----
2204

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT DISTINCT - MAX( ALL + 51 ) + + 13 * + 44 AS col0
----
521

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT - MAX ( ALL + 51 ) + + 13 * + 44 AS col0
----
521

query I rowsort
SELECT DISTINCT 22 - + + 87 * ( - + 57 ) AS col2
----
4981

onlyif mysql # DIV for integer division: 
query I rowsort label-6534
SELECT ALL 81 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL 81 / 57
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT NULLIF ( - 7, - 71 * - - ( 14 ) / - ( - 77 ) - + + 47 ) * - COUNT( * ) + + 84 * COALESCE ( 20, NULLIF ( - CASE + 63 WHEN 43 THEN + 65 ELSE ( - ( - 30 ) ) END, 78 ) ) + - 20 AS col0
----
1667

skipif mysql # not compatible
query I rowsort label-6535
SELECT NULLIF ( - 7, - 71 * - - ( 14 ) / - ( - 77 ) - + + 47 ) * - COUNT ( * ) + + 84 * COALESCE ( 20, NULLIF ( - CASE + 63 WHEN 43 THEN + 65 ELSE ( - ( - 30 ) ) END, 78 ) ) + - 20 AS col0
----
1667

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT 29 * + + COUNT( DISTINCT + 52 ) * + - COUNT( * ) + 63 * 88
----
5515

skipif mysql # not compatible
query I rowsort label-6536
SELECT 29 * + + COUNT ( DISTINCT + 52 ) * + - COUNT ( * ) + 63 * 88
----
5515

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT + 70 * + + 70 * - 34 + - NULLIF ( + COUNT( * ), 16 ) AS col2
----
-166601

skipif mysql # not compatible
query I rowsort label-6537
SELECT + 70 * + + 70 * - 34 + - NULLIF ( + COUNT ( * ), 16 ) AS col2
----
-166601

query I rowsort
SELECT 80 + + 53 + - 11 * 7 AS col2
----
56

query II rowsort
SELECT ALL - 19, 84 AS col0
----
-19
84

query II rowsort
SELECT + 91 AS col2, 71
----
91
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6541
SELECT ( 86 ) + - CAST( NULL AS DECIMAL ) / + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT ( 86 ) + - CAST ( NULL AS REAL ) / + + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT CASE - COUNT( * ) WHEN 20 + + 4 * - 0 THEN NULL ELSE COALESCE ( 49, 83 * - 35 ) + - + 37 + - 6 END * 88 AS col2
----
528

skipif mysql # not compatible
query I rowsort label-6542
SELECT CASE - COUNT ( * ) WHEN 20 + + 4 * - 0 THEN NULL ELSE COALESCE ( 49, 83 * - 35 ) + - + 37 + - 6 END * 88 AS col2
----
528

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

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

query II rowsort
SELECT + 48 AS col0, - 62 * + COALESCE ( + 12, 86 ) col1
----
48
-744

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6546
SELECT ALL - 81 DIV + 39 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL - 81 / + 39 AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6547
SELECT DISTINCT - NULLIF ( + 27, CAST( + 2 AS SIGNED ) )
----
-27

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT - NULLIF ( + 27, CAST ( + 2 AS INTEGER ) )
----
-27

query I rowsort
SELECT ALL 83 * + 73
----
6059

query I rowsort
SELECT DISTINCT - 92 * + + 85 AS col1
----
-7820

onlyif mysql # DIV for integer division: 
query III rowsort label-6550
SELECT + 71 AS col2, 5 DIV 84 * 95, + 23 DIV - - 5 + + - 16 AS col1
----
71
0
-12

skipif mysql # not compatible
query III rowsort label-6550
SELECT + 71 AS col2, 5 / 84 * 95, + 23 / - - 5 + + - 16 AS col1
----
71
0
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6551
SELECT - 71 * - - 54 * - - SUM( 28 ) DIV - + 4
----
26838

skipif mysql # not compatible
query I rowsort label-6551
SELECT - 71 * - - 54 * - - SUM ( 28 ) / - + 4
----
26838

onlyif mysql # aggregate syntax: 
query II rowsort label-6552
SELECT + + 45 AS col1, + CASE 42 WHEN + 72 * + 20 + + 7 THEN NULL WHEN + 1 * 48 THEN COALESCE ( + ( - 1 ), - 35 ) + + 22 END + + COUNT( * ) / - ( 28 ) AS col0
----
45
NULL

skipif mysql # not compatible
query II rowsort label-6552
SELECT + + 45 AS col1, + CASE 42 WHEN + 72 * + 20 + + 7 THEN NULL WHEN + 1 * 48 THEN COALESCE ( + ( - 1 ), - 35 ) + + 22 END + + COUNT ( * ) / - ( 28 ) AS col0
----
45
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6553
SELECT COUNT( * ) DIV 2, - ( - + 66 ) * + - 43 * + 61 AS col1
----
0
-173118

skipif mysql # not compatible
query II rowsort label-6553
SELECT COUNT ( * ) / 2, - ( - + 66 ) * + - 43 * + 61 AS col1
----
0
-173118

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT - MIN( + NULLIF ( - ( - 89 ), 17 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-6554
SELECT - MIN ( + NULLIF ( - ( - 89 ), 17 ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT + SUM( - NULLIF ( - 42, - ( - 55 ) ) ) col1
----
42

skipif mysql # not compatible
query I rowsort label-6555
SELECT + SUM ( - NULLIF ( - 42, - ( - 55 ) ) ) col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6556
SELECT DISTINCT 72 + + - 93 + ( COUNT( * ) ) - + - COUNT( * ) * + 16 - + CASE 23 WHEN - - 56 + - 26 THEN + AVG ( ALL 68 ) + + AVG ( ALL 59 ) WHEN 95 THEN NULL WHEN - 33 / CAST( NULL AS SIGNED ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT 72 + + - 93 + ( COUNT ( * ) ) - + - COUNT ( * ) * + 16 - + CASE 23 WHEN - - 56 + - 26 THEN + AVG ( ALL 68 ) + + AVG ( ALL 59 ) WHEN 95 THEN NULL WHEN - 33 / CAST ( NULL AS INTEGER ) THEN NULL END col0
----
NULL

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

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

query I rowsort
SELECT ALL + 18 + + 1 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT DISTINCT - 90 + + 12 + + 2 * COALESCE ( COUNT( * ), - + 33, + 7 ) * - 75 + - - CASE - 51 WHEN - + 44 / AVG ( DISTINCT 38 ) THEN NULL ELSE 29 * 87 END
----
2295

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT - 90 + + 12 + + 2 * COALESCE ( COUNT ( * ), - + 33, + 7 ) * - 75 + - - CASE - 51 WHEN - + 44 / AVG ( DISTINCT 38 ) THEN NULL ELSE 29 * 87 END
----
2295

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6560
SELECT ALL - - 14 * - + 79 AS col0, CAST( NULL AS DECIMAL )
----
-1106
NULL

skipif mysql # not compatible
query II rowsort label-6560
SELECT ALL - - 14 * - + 79 AS col0, CAST ( NULL AS REAL )
----
-1106
NULL

query I rowsort
SELECT ALL 56 + 20
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT MIN( ALL - 72 ) + 19 col1
----
-53

skipif mysql # not compatible
query I rowsort label-6562
SELECT MIN ( ALL - 72 ) + 19 col1
----
-53

query I rowsort
SELECT - - NULLIF ( + 17, + 91 ) AS col2
----
17

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

skipif mysql # not compatible
query I rowsort label-6564
SELECT + 53 + - CAST ( NULL AS INTEGER ) + ( - - 87 ) - + + 74
----
NULL

query I rowsort
SELECT 86 * - 39 + - 7 * - COALESCE ( + + 3, + - 7, - ( + 43 ) ) AS col2
----
-3333

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT DISTINCT 64 * + COUNT( * ) col1
----
64

skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT 64 * + COUNT ( * ) col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL - 84 - 43 * - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL - 84 - 43 * - COUNT ( * )
----
-41

query I rowsort
SELECT DISTINCT - 57 * 79 * + - 3
----
13509

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

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

query I rowsort
SELECT 64 * - + ( - 41 ) AS col1
----
2624

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

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

query I rowsort
SELECT 83 + + ( - 27 ) + - - 82 col1
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-6573
SELECT 54 * - MAX( + 90 ) AS col0, 37 * - - MIN( - - 44 )
----
-4860
1628

skipif mysql # not compatible
query II rowsort label-6573
SELECT 54 * - MAX ( + 90 ) AS col0, 37 * - - MIN ( - - 44 )
----
-4860
1628

query II rowsort
SELECT 89 * - NULLIF ( - + 93, - 46 + + 64 ), 55 AS col0
----
8277
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6575
SELECT ALL - 40 * 72 AS col2, COUNT( * ) * 17 + 29
----
-2880
46

skipif mysql # not compatible
query II rowsort label-6575
SELECT ALL - 40 * 72 AS col2, COUNT ( * ) * 17 + 29
----
-2880
46

query I rowsort
SELECT 60 - 90 + + 12
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6577
SELECT ALL - CASE + 35 WHEN + + CAST( + 6 AS DECIMAL ) THEN - 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL - CASE + 35 WHEN + + CAST ( + 6 AS REAL ) THEN - 1 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 40 * + 19 AS col2
----
-760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6579
SELECT CAST( NULL AS SIGNED ) - - 11 * ( + + 7 ) - - ( + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6579
SELECT CAST ( NULL AS INTEGER ) - - 11 * ( + + 7 ) - - ( + 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT + COUNT( * ) + 53 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6580
SELECT + COUNT ( * ) + 53 AS col1
----
54

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6582
SELECT ALL - 52 + + 2 + COUNT( * ) + + COALESCE ( COALESCE ( COUNT( * ), + COUNT( * ), 44 * 3 * MIN( - CAST( + - 47 AS SIGNED ) ), COUNT( * ) * + 9 ), + 77 ) * ( - 80 + - CAST( NULL AS SIGNED ) * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL - 52 + + 2 + COUNT ( * ) + + COALESCE ( COALESCE ( COUNT ( * ), + COUNT ( * ), 44 * 3 * MIN ( - CAST ( + - 47 AS INTEGER ) ), COUNT ( * ) * + 9 ), + 77 ) * ( - 80 + - CAST ( NULL AS INTEGER ) * COUNT ( * ) )
----
NULL

query I rowsort
SELECT - 44 + - 19 col1
----
-63

query I rowsort
SELECT ALL + 30 * - 79 AS col2
----
-2370

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL + 61 + - + COUNT( * ) * 45 * - - 13 AS col0
----
-524

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL + 61 + - + COUNT ( * ) * 45 * - - 13 AS col0
----
-524

query I rowsort
SELECT + 71 + 82 AS col0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT ALL - + SUM( DISTINCT - 64 ) + - 55 + - 15 + 23 * - - COALESCE ( - 9, + 32 ) * - ( + MAX( ALL - 60 ) ) AS col0
----
-12426

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL - + SUM ( DISTINCT - 64 ) + - 55 + - 15 + 23 * - - COALESCE ( - 9, + 32 ) * - ( + MAX ( ALL - 60 ) ) AS col0
----
-12426

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

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

query I rowsort
SELECT + - 0 + - ( + NULLIF ( ( 43 ), CASE - 38 WHEN 92 * + - 69 THEN - 76 * + + 92 END / - + ( - 9 ) ) ) * + 67
----
-2881

query II rowsort
SELECT DISTINCT ( + 34 ) AS col2, 85 AS col1
----
34
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6591
SELECT - + 31 DIV 19 * COUNT( * ) * - 45 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-6591
SELECT - + 31 / 19 * COUNT ( * ) * - 45 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT + NULLIF ( + + 23, + - 63 ) + - COUNT( * ) + 1 + - 32 col1
----
-9

skipif mysql # not compatible
query I rowsort label-6592
SELECT + NULLIF ( + + 23, + - 63 ) + - COUNT ( * ) + 1 + - 32 col1
----
-9

query I rowsort
SELECT + 46 * + 92 AS col2
----
4232

onlyif mysql # DIV for integer division: 
query I rowsort label-6594
SELECT + 15 * 11 + + - 33 DIV - - 23 AS col0
----
164

skipif mysql # not compatible
query I rowsort label-6594
SELECT + 15 * 11 + + - 33 / - - 23 AS col0
----
164

query II rowsort
SELECT ALL 90 - - 72 AS col2, + 16
----
162
16

query II rowsort
SELECT DISTINCT 53 col0, + 21 AS col1
----
53
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6597
SELECT + 93 DIV - 63
----
-1

skipif mysql # not compatible
query I rowsort label-6597
SELECT + 93 / - 63
----
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6599
SELECT DISTINCT COALESCE ( + - 80, - 44 - + CASE COUNT( * ) WHEN + COUNT( - 94 ) THEN NULL ELSE - + 69 - 22 END - + COUNT( * ) * - 98 * + 36, 17 * 43 - CASE - 91 WHEN 67 THEN 40 * + 82 WHEN - 34 THEN NULL END ) DIV 6
----
-13

skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT COALESCE ( + - 80, - 44 - + CASE COUNT ( * ) WHEN + COUNT ( - 94 ) THEN NULL ELSE - + 69 - 22 END - + COUNT ( * ) * - 98 * + 36, 17 * 43 - CASE - 91 WHEN 67 THEN 40 * + 82 WHEN - 34 THEN NULL END ) / 6
----
-13

query I rowsort
SELECT ALL 75 - - 9 + + 44 * - - 50 + + 21
----
2305

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT - COALESCE ( + COUNT( - - 89 ), - - 28 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6601
SELECT - COALESCE ( + COUNT ( - - 89 ), - - 28 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 71 * - 63
----
4473

onlyif mysql # DIV for integer division: 
query I rowsort label-6603
SELECT + 57 DIV 3
----
19

skipif mysql # not compatible
query I rowsort label-6603
SELECT + 57 / 3
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT - CASE - + 97 WHEN ( + 76 ) THEN - + 16 / - - MIN( + 97 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT - CASE - + 97 WHEN ( + 76 ) THEN - + 16 / - - MIN ( + 97 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6605
SELECT + 75 + - CAST( - CAST( - - MIN( 44 ) AS SIGNED ) AS SIGNED ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT + 75 + - CAST ( - CAST ( - - MIN ( 44 ) AS INTEGER ) AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 39 * 93 AS col1
----
-3627

query I rowsort
SELECT ALL 45 * - NULLIF ( 64, 86 * + + 78 - + 7 ) AS col2
----
-2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6608
SELECT - 57 + CASE + + 0 WHEN + 18 * - - 51 * 5 * - 38 + - - 93 + 60 THEN NULL WHEN - MIN( + - 62 ) THEN + 39 ELSE + CASE + 8 WHEN + 69 + 69 THEN - 24 - 8 ELSE - CAST( 96 AS SIGNED ) END + 13 * + SUM( + 89 / + ( - CAST( NULL AS SIGNED ) ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6608
SELECT - 57 + CASE + + 0 WHEN + 18 * - - 51 * 5 * - 38 + - - 93 + 60 THEN NULL WHEN - MIN ( + - 62 ) THEN + 39 ELSE + CASE + 8 WHEN + 69 + 69 THEN - 24 - 8 ELSE - CAST ( 96 AS INTEGER ) END + 13 * + SUM ( + 89 / + ( - CAST ( NULL AS INTEGER ) ) ) END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT + COALESCE ( - 4, 47 ) + MAX( DISTINCT - - 3 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6610
SELECT + COALESCE ( - 4, 47 ) + MAX ( DISTINCT - - 3 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT ALL COUNT( * ) * - + 80 * + 9 * + 38 AS col0
----
-27360

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL COUNT ( * ) * - + 80 * + 9 * + 38 AS col0
----
-27360

query I rowsort
SELECT + 21 + 94
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6613
SELECT - CAST( - + CAST( + + MIN( ALL 36 ) AS SIGNED ) AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT - CAST ( - + CAST ( + + MIN ( ALL 36 ) AS INTEGER ) AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6614
SELECT + 99 AS col2, ( - + 35 ) + 5 * - COUNT( * ) * COUNT( * ) DIV - 21 AS col1
----
99
-35

skipif mysql # not compatible
query II rowsort label-6614
SELECT + 99 AS col2, ( - + 35 ) + 5 * - COUNT ( * ) * COUNT ( * ) / - 21 AS col1
----
99
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6615
SELECT 9 DIV 36 + - 66
----
-66

skipif mysql # not compatible
query I rowsort label-6615
SELECT 9 / 36 + - 66
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6616
SELECT + ( + - 19 ) * + - 98 DIV - COUNT( * ) * + COUNT( * )
----
-1862

skipif mysql # not compatible
query I rowsort label-6616
SELECT + ( + - 19 ) * + - 98 / - COUNT ( * ) * + COUNT ( * )
----
-1862

query I rowsort
SELECT - 62 + - 18
----
-80

query II rowsort
SELECT ALL - 55 * 86 + + + 17 AS col0, - 87 col2
----
-4713
-87

query II rowsort
SELECT + 56 AS col0, 35 col1
----
56
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6620
SELECT DISTINCT 93 * - 21 * - 49 * 95 + 59 + ( + COUNT( * ) ) * 91 / + - 72 - - + 18 + + + 73 * - 22 * + - COUNT( * ) / - 23 * 98 + + 88 * ( CAST( NULL AS SIGNED ) - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT 93 * - 21 * - 49 * 95 + 59 + ( + COUNT ( * ) ) * 91 / + - 72 - - + 18 + + + 73 * - 22 * + - COUNT ( * ) / - 23 * 98 + + 88 * ( CAST ( NULL AS INTEGER ) - COUNT ( * ) )
----
NULL

query II rowsort
SELECT + - 0 AS col2, + 19 * 23 * 46 * 78
----
0
1567956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6622
SELECT + + 61 * - + 65 + - - ( + 70 ) * + + ( + MAX( CAST( 78 AS SIGNED ) ) ) + + 58 * - 30 * + 81 - + SUM( DISTINCT + + ( 33 ) ) * + COUNT( * ) - + 51 AS col2
----
-139529

skipif mysql # not compatible
query I rowsort label-6622
SELECT + + 61 * - + 65 + - - ( + 70 ) * + + ( + MAX ( CAST ( 78 AS INTEGER ) ) ) + + 58 * - 30 * + 81 - + SUM ( DISTINCT + + ( 33 ) ) * + COUNT ( * ) - + 51 AS col2
----
-139529

query I rowsort
SELECT - 64 * + 74 * + 26 * + 92 AS col1
----
-11328512

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT + CASE - COUNT( * ) WHEN - - CASE + 18 WHEN 31 * + 45 THEN NULL WHEN - 64 THEN NULL ELSE - 5 END + + 84 THEN - - 59 ELSE + 5 END col1
----
5

skipif mysql # not compatible
query I rowsort label-6624
SELECT + CASE - COUNT ( * ) WHEN - - CASE + 18 WHEN 31 * + 45 THEN NULL WHEN - 64 THEN NULL ELSE - 5 END + + 84 THEN - - 59 ELSE + 5 END col1
----
5

query I rowsort
SELECT - 8 - + 72 col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-6626
SELECT - ( - 7 ) * - 43 AS col2, - COALESCE ( + + 79, - MIN( DISTINCT + 81 ) * - - 25 + - - 38, - 52 + 89 * + + 24 )
----
-301
-79

skipif mysql # not compatible
query II rowsort label-6626
SELECT - ( - 7 ) * - 43 AS col2, - COALESCE ( + + 79, - MIN ( DISTINCT + 81 ) * - - 25 + - - 38, - 52 + 89 * + + 24 )
----
-301
-79

query II rowsort
SELECT 53 AS col1, 36 + CASE 62 WHEN + 38 / + 54 THEN NULL ELSE - 53 END
----
53
-17

query II rowsort
SELECT - 91 AS col2, 47 * + 30 * - - 40 AS col1
----
-91
56400

query I rowsort
SELECT - - 69 * + 60 AS col0
----
4140

onlyif mysql # aggregate syntax: 
query II rowsort label-6630
SELECT DISTINCT + - 18, + 6 * + 37 * + - COUNT( * ) + + 24 * 13 AS col1
----
-18
90

skipif mysql # not compatible
query II rowsort label-6630
SELECT DISTINCT + - 18, + 6 * + 37 * + - COUNT ( * ) + + 24 * 13 AS col1
----
-18
90

query I rowsort
SELECT DISTINCT ( 38 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL + ( - + 14 ) * - 39 - 71 - 35 + + COUNT( * ) * - 47 + 76 * - 56 * + 81 * + 50 col1
----
-17236407

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL + ( - + 14 ) * - 39 - 71 - 35 + + COUNT ( * ) * - 47 + 76 * - 56 * + 81 * + 50 col1
----
-17236407

query I rowsort
SELECT - 34 + 34
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6634
SELECT + COALESCE ( + SUM( 7 ), + 52 - + - 3 ) DIV - - COALESCE ( CAST( + ( - - ( + 45 ) ) AS SIGNED ), + - COUNT( * ) + 66, - 67 * 31 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6634
SELECT + COALESCE ( + SUM ( 7 ), + 52 - + - 3 ) / - - COALESCE ( CAST ( + ( - - ( + 45 ) ) AS INTEGER ), + - COUNT ( * ) + 66, - 67 * 31 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6635
SELECT - AVG ( + - 54 ) * - + 84 * + CAST( - COUNT( DISTINCT - 8 ) AS SIGNED ) + + - CAST( NULL AS SIGNED ) + ( + - 4 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT - AVG ( + - 54 ) * - + 84 * + CAST ( - COUNT ( DISTINCT - 8 ) AS INTEGER ) + + - CAST ( NULL AS INTEGER ) + ( + - 4 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT + 16 - - COUNT( DISTINCT + 33 )
----
17

skipif mysql # not compatible
query I rowsort label-6636
SELECT + 16 - - COUNT ( DISTINCT + 33 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6637
SELECT ALL CAST( - - 29 AS SIGNED ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL CAST ( - - 29 AS INTEGER ) AS col1
----
29

query I rowsort
SELECT - ( - - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL 3 + + 62 + + + SUM( ALL - 61 ) * 6
----
-301

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL 3 + + 62 + + + SUM ( ALL - 61 ) * 6
----
-301

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6640
SELECT + CAST( + 12 AS SIGNED ) DIV + + 6 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6640
SELECT + CAST ( + 12 AS INTEGER ) / + + 6 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT ALL 56 + + - COUNT( * ) + MIN( + - 29 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL 56 + + - COUNT ( * ) + MIN ( + - 29 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT - CASE - + 19 WHEN + 29 * + 18 * - 95 THEN + - 18 + + + COUNT( * ) WHEN + COUNT( * ) + + COUNT( * ) * - 76 + + COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT - CASE - + 19 WHEN + 29 * + 18 * - 95 THEN + - 18 + + + COUNT ( * ) WHEN + COUNT ( * ) + + COUNT ( * ) * - 76 + + COUNT ( * ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - + 85 * 14 AS col1
----
-1190

onlyif mysql # DIV for integer division: 
query II rowsort label-6644
SELECT ALL + 72 DIV 57 + ( 95 ) AS col0, - 84
----
96
-84

skipif mysql # not compatible
query II rowsort label-6644
SELECT ALL + 72 / 57 + ( 95 ) AS col0, - 84
----
96
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6645
SELECT 46 - + MAX( + 95 ) * - ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6645
SELECT 46 - + MAX ( + 95 ) * - ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - + 45, + 1 ) * + 98 AS col2
----
-4410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6647
SELECT - COUNT( * ) + + CAST( - 81 AS SIGNED ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-6647
SELECT - COUNT ( * ) + + CAST ( - 81 AS INTEGER ) col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT + ( + - ( - + ( - 96 ) ) ) * - 16 - - COUNT( DISTINCT 46 ) + - ( - COUNT( * ) ) AS col2
----
1538

skipif mysql # not compatible
query I rowsort label-6648
SELECT + ( + - ( - + ( - 96 ) ) ) * - 16 - - COUNT ( DISTINCT 46 ) + - ( - COUNT ( * ) ) AS col2
----
1538

onlyif mysql # aggregate syntax: 
query II rowsort label-6649
SELECT ALL - 78 - - 15, COUNT( * ) AS col2
----
-63
1

skipif mysql # not compatible
query II rowsort label-6649
SELECT ALL - 78 - - 15, COUNT ( * ) AS col2
----
-63
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6650
SELECT ALL - COUNT( * ) DIV 57 * - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL - COUNT ( * ) / 57 * - 70 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6651
SELECT ( - 78 ) + - - 7 + + CAST( NULL AS DECIMAL ) + - + 60 * - - 2 / + - CAST( NULL AS SIGNED ) * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT ( - 78 ) + - - 7 + + CAST ( NULL AS REAL ) + - + 60 * - - 2 / + - CAST ( NULL AS INTEGER ) * + 37
----
NULL

query I rowsort
SELECT ALL + - ( + 83 ) * 34 AS col1
----
-2822

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT DISTINCT 7 * + - COALESCE ( + 41, + - 16, - + 60 ) * + SUM( 47 ) + 50 AS col0
----
-13439

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT 7 * + - COALESCE ( + 41, + - 16, - + 60 ) * + SUM ( 47 ) + 50 AS col0
----
-13439

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT ALL - CASE MIN( + + 74 ) WHEN 14 + - 10 + + - 97 * - + 48 THEN + - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL - CASE MIN ( + + 74 ) WHEN 14 + - 10 + + - 97 * - + 48 THEN + - COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6655
SELECT - 44 * + 92 + - - 30 + - 78 DIV 73 col1
----
-4019

skipif mysql # not compatible
query I rowsort label-6655
SELECT - 44 * + 92 + - - 30 + - 78 / 73 col1
----
-4019

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

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

query I rowsort
SELECT DISTINCT + + 73 * 83 - 0
----
6059

query I rowsort
SELECT 35 + - - 82 * - + ( 8 ) AS col0
----
-621

onlyif mysql # DIV for integer division: 
query II rowsort label-6659
SELECT DISTINCT 59, - 96 DIV + + 96 + ( + ( - 45 ) ) AS col0
----
59
-46

skipif mysql # not compatible
query II rowsort label-6659
SELECT DISTINCT 59, - 96 / + + 96 + ( + ( - 45 ) ) AS col0
----
59
-46

query I rowsort
SELECT 54 * 73 * + 14
----
55188

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT MAX( DISTINCT 28 ) * + - ( + 84 ) AS col2
----
-2352

skipif mysql # not compatible
query I rowsort label-6661
SELECT MAX ( DISTINCT 28 ) * + - ( + 84 ) AS col2
----
-2352

query I rowsort
SELECT ALL - 81 + - 68
----
-149

query I rowsort
SELECT 70 + 79 AS col1
----
149

query I rowsort
SELECT DISTINCT - 8 + - 90 col2
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-6665
SELECT COUNT( ALL ( - - 54 ) ) + - COUNT( * ) * 1 AS col1, NULLIF ( - COALESCE ( - - 13, - 20 ), - ( ( - COUNT( * ) ) ) )
----
0
-13

skipif mysql # not compatible
query II rowsort label-6665
SELECT COUNT ( ALL ( - - 54 ) ) + - COUNT ( * ) * 1 AS col1, NULLIF ( - COALESCE ( - - 13, - 20 ), - ( ( - COUNT ( * ) ) ) )
----
0
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT DISTINCT + 36 * + - NULLIF ( COUNT( * ), + 95 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6666
SELECT DISTINCT + 36 * + - NULLIF ( COUNT ( * ), + 95 ) AS col1
----
-36

query I rowsort
SELECT 70 + - 74 * + ( + 3 ) AS col0
----
-152

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

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT + COUNT ( * ) + - 98 * 45 AS col0
----
-4409

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL 50 + + ( - + SUM( ALL - 10 ) ) + - + MIN( ALL + + 52 ) + + 62 + + COUNT( * ) * - 2 / - CASE - 44 WHEN ( + 91 ) THEN - 68 * - - CASE + 26 WHEN + 50 * 80 THEN 19 WHEN + MAX( DISTINCT + 76 ) THEN - 57 END * 46 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL 50 + + ( - + SUM ( ALL - 10 ) ) + - + MIN ( ALL + + 52 ) + + 62 + + COUNT ( * ) * - 2 / - CASE - 44 WHEN ( + 91 ) THEN - 68 * - - CASE + 26 WHEN + 50 * 80 THEN 19 WHEN + MAX ( DISTINCT + 76 ) THEN - 57 END * 46 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 19 * - 92
----
-1748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6671
SELECT DISTINCT + 64 + - + NULLIF ( COUNT( * ), + 53 ) + - 1 * - 50 * - + 25 * - + COUNT( * ) + CASE + 65 WHEN - 6 THEN NULL WHEN + + CAST( NULL AS SIGNED ) THEN + + 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT + 64 + - + NULLIF ( COUNT ( * ), + 53 ) + - 1 * - 50 * - + 25 * - + COUNT ( * ) + CASE + 65 WHEN - 6 THEN NULL WHEN + + CAST ( NULL AS INTEGER ) THEN + + 44 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6672
SELECT 49 col2, + 8 + - 10 + - 51 + + - 19 * + 64 * + CAST( + SUM( DISTINCT + CAST( + 87 AS SIGNED ) ) AS SIGNED ) AS col0
----
49
-105845

skipif mysql # not compatible
query II rowsort label-6672
SELECT 49 col2, + 8 + - 10 + - 51 + + - 19 * + 64 * + CAST ( + SUM ( DISTINCT + CAST ( + 87 AS INTEGER ) ) AS INTEGER ) AS col0
----
49
-105845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6673
SELECT DISTINCT - CASE + + 16 WHEN - 48 THEN + + CASE - + 60 WHEN 5 + - 93 THEN + - COUNT( * ) END * MIN( DISTINCT + 60 ) WHEN + - AVG ( - 3 ) * - MAX( - + CAST( 4 AS SIGNED ) ) * + 92 THEN NULL END + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT - CASE + + 16 WHEN - 48 THEN + + CASE - + 60 WHEN 5 + - 93 THEN + - COUNT ( * ) END * MIN ( DISTINCT + 60 ) WHEN + - AVG ( - 3 ) * - MAX ( - + CAST ( 4 AS INTEGER ) ) * + 92 THEN NULL END + 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6674
SELECT ALL + ( + CASE + 80 WHEN - 32 THEN - CASE + 62 WHEN + CASE - - 92 WHEN - NULLIF ( - COUNT( * ), - 16 ) * 12 THEN 44 ELSE + 76 END * + - 56 * - CAST( - 31 * + 80 AS SIGNED ) THEN 85 END END ) + + COALESCE ( - 22, 99, + 11 ) / + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL + ( + CASE + 80 WHEN - 32 THEN - CASE + 62 WHEN + CASE - - 92 WHEN - NULLIF ( - COUNT ( * ), - 16 ) * 12 THEN 44 ELSE + 76 END * + - 56 * - CAST ( - 31 * + 80 AS INTEGER ) THEN 85 END END ) + + COALESCE ( - 22, 99, + 11 ) / + 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT 91 + + + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-6675
SELECT 91 + + + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6676
SELECT ALL + COUNT( * ) - - - COUNT( 64 ) * - 58 * + 1 * + 89 col1, ( + + 14 ) * + MIN( - 85 ) + 12 * - 5 AS col0
----
5163
-1250

skipif mysql # not compatible
query II rowsort label-6676
SELECT ALL + COUNT ( * ) - - - COUNT ( 64 ) * - 58 * + 1 * + 89 col1, ( + + 14 ) * + MIN ( - 85 ) + 12 * - 5 AS col0
----
5163
-1250

query I rowsort
SELECT + 63 * + + 22 * - 68
----
-94248

query I rowsort
SELECT - ( + 36 ) * + - 6 AS col2
----
216

query I rowsort
SELECT ALL + 99 * - - 57 AS col2
----
5643

onlyif mysql # DIV for integer division: 
query I rowsort label-6680
SELECT 88 DIV + + 27 + + 41 * - 74
----
-3031

skipif mysql # not compatible
query I rowsort label-6680
SELECT 88 / + + 27 + + 41 * - 74
----
-3031

query II rowsort
SELECT ALL - 58, + 43 AS col0
----
-58
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT CASE + - 96 WHEN - + 37 THEN + + 59 WHEN - 62 - - + 93 THEN NULL END + + COUNT( * ) + + 65 + + 97 + - + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6682
SELECT CASE + - 96 WHEN - + 37 THEN + + 59 WHEN - 62 - - + 93 THEN NULL END + + COUNT ( * ) + + 65 + + 97 + - + 43 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL + 7 - + COUNT ( * ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6684
SELECT 48 * - + CASE - + NULLIF ( + 87, + COUNT( DISTINCT + 8 ) ) WHEN + 50 - + + 46 THEN + CAST( - ( CASE + + 32 WHEN - 48 + + 34 * + 85 THEN NULL ELSE + SUM( 48 ) END ) AS SIGNED ) WHEN - 89 THEN 82 ELSE NULL END + - AVG ( ALL - 43 - 48 * - NULLIF ( + 92, + 4 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6684
SELECT 48 * - + CASE - + NULLIF ( + 87, + COUNT ( DISTINCT + 8 ) ) WHEN + 50 - + + 46 THEN + CAST ( - ( CASE + + 32 WHEN - 48 + + 34 * + 85 THEN NULL ELSE + SUM ( 48 ) END ) AS INTEGER ) WHEN - 89 THEN 82 ELSE NULL END + - AVG ( ALL - 43 - 48 * - NULLIF ( + 92, + 4 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6685
SELECT DISTINCT - 80 * - CASE + 68 WHEN + 26 * + 94 * + + 41 * - 88 * 51 - - 60 THEN 21 END, 14 - - - MAX( + 14 ) AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6685
SELECT DISTINCT - 80 * - CASE + 68 WHEN + 26 * + 94 * + + 41 * - 88 * 51 - - 60 THEN 21 END, 14 - - - MAX ( + 14 ) AS col0
----
NULL
0

query I rowsort
SELECT ALL - - ( ( - 13 ) ) AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6687
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * + - 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * + - 25 AS col1
----
25

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

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

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

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

query I rowsort
SELECT 48 * 8 AS col2
----
384

query I rowsort
SELECT 83 * - 63
----
-5229

query I rowsort
SELECT ALL - 21 * - + CASE + + AVG ( + + 19 ) WHEN + 12 * 86 THEN + - 31 / + 61 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6693
SELECT 90 DIV + 20 * + 1
----
4

skipif mysql # not compatible
query I rowsort label-6693
SELECT 90 / + 20 * + 1
----
4

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT DISTINCT 52 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT 52 / 97
----
0

query I rowsort
SELECT ALL + 49 + + - ( + 42 ) + 27 + + 29 + ( - ( 49 ) )
----
14

query I rowsort
SELECT ALL 86 * - 26 AS col0
----
-2236

query II rowsort
SELECT DISTINCT 70, 86 AS col2
----
70
86

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6701
SELECT 8 - - 7 AS col1, + 96 * - + MAX( 29 ) AS col1
----
15
-2784

skipif mysql # not compatible
query II rowsort label-6701
SELECT 8 - - 7 AS col1, + 96 * - + MAX ( 29 ) AS col1
----
15
-2784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6702
SELECT 2 AS col2, COALESCE ( + 73, - NULLIF ( + 28, + 15 ) + MAX( ALL CAST( NULL AS SIGNED ) ) ) AS col1
----
2
73

skipif mysql # not compatible
query II rowsort label-6702
SELECT 2 AS col2, COALESCE ( + 73, - NULLIF ( + 28, + 15 ) + MAX ( ALL CAST ( NULL AS INTEGER ) ) ) AS col1
----
2
73

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

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

query II rowsort
SELECT 18 - + 92, - 50 col1
----
-74
-50

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

skipif mysql # not compatible
query II rowsort label-6705
SELECT ALL COUNT ( * ) AS col2, 17
----
1
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT DISTINCT MIN( ALL - 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT MIN ( ALL - 83 ) AS col2
----
-83

query I rowsort
SELECT DISTINCT 79 + 77 AS col0
----
156

query I rowsort
SELECT DISTINCT - 78 + + 31
----
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT DISTINCT - NULLIF ( - 2, + COUNT( * ) / + 4 * - NULLIF ( - + 11, - + 96 ) * + 12 + 37 + 40 + + 75 ) - - - 92 * + + 92
----
-8462

skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT - NULLIF ( - 2, + COUNT ( * ) / + 4 * - NULLIF ( - + 11, - + 96 ) * + 12 + 37 + 40 + + 75 ) - - - 92 * + + 92
----
-8462

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT 8 + - 36 * - - COUNT( 66 ) - - 35 + ( - 43 )
----
-36

skipif mysql # not compatible
query I rowsort label-6711
SELECT 8 + - 36 * - - COUNT ( 66 ) - - 35 + ( - 43 )
----
-36

query I rowsort
SELECT ALL - + 36 * + - 50 * + 64
----
115200

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT - + CASE - 98 WHEN + + 94 + - + 43 * + + 96 / + 81 * + - ( + + SUM( ALL - 58 ) ) THEN + + COUNT( * ) WHEN - 18 THEN NULL ELSE NULL END + - COALESCE ( 4, + MIN( - 42 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT - + CASE - 98 WHEN + + 94 + - + 43 * + + 96 / + 81 * + - ( + + SUM ( ALL - 58 ) ) THEN + + COUNT ( * ) WHEN - 18 THEN NULL ELSE NULL END + - COALESCE ( 4, + MIN ( - 42 ) )
----
NULL

query I rowsort
SELECT - - 92 * + 34 AS col1
----
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT ALL + - 23 - - COUNT( - - ( 83 ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL + - 23 - - COUNT ( - - ( 83 ) ) AS col2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6716
SELECT ALL - - 61 * 13 DIV + 55
----
14

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL - - 61 * 13 / + 55
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT - + ( + CASE CASE - 90 WHEN - 79 + + + 23 THEN + - 54 WHEN + 35 + ( + COUNT( * ) ) THEN + ( - 21 ) END WHEN - - 41 THEN 63 END ) * + NULLIF ( + 21, - 84 ) + NULLIF ( 4, 75 * MAX( DISTINCT 8 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT - + ( + CASE CASE - 90 WHEN - 79 + + + 23 THEN + - 54 WHEN + 35 + ( + COUNT ( * ) ) THEN + ( - 21 ) END WHEN - - 41 THEN 63 END ) * + NULLIF ( + 21, - 84 ) + NULLIF ( 4, 75 * MAX ( DISTINCT 8 ) ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6719
SELECT 4, 42 + + + COUNT( * ) * - 65 * + 2 AS col0
----
4
-88

skipif mysql # not compatible
query II rowsort label-6719
SELECT 4, 42 + + + COUNT ( * ) * - 65 * + 2 AS col0
----
4
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6720
SELECT DISTINCT - + 94 * + + 12 / CASE + + 48 WHEN - 57 * - 37 THEN NULL WHEN + 79 THEN - - 94 * 94 ELSE NULL END AS col1, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6720
SELECT DISTINCT - + 94 * + + 12 / CASE + + 48 WHEN - 57 * - 37 THEN NULL WHEN + 79 THEN - - 94 * 94 ELSE NULL END AS col1, CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6721
SELECT ALL 41 DIV + - 86 col2
----
0

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL 41 / + - 86 col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT + - MAX( - 94 ) * + 70 AS col0
----
6580

skipif mysql # not compatible
query I rowsort label-6723
SELECT + - MAX ( - 94 ) * + 70 AS col0
----
6580

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT + CASE + 75 WHEN - + 5 + + COALESCE ( + 74, - 74 / + - 59, 0 ) + COUNT( * ) THEN NULL WHEN + - 98 * + + 97 - - 21 * + - 2 * 30 THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6724
SELECT + CASE + 75 WHEN - + 5 + + COALESCE ( + 74, - 74 / + - 59, 0 ) + COUNT ( * ) THEN NULL WHEN + - 98 * + + 97 - - 21 * + - 2 * 30 THEN COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT + + 57 * + 56
----
3192

query III rowsort
SELECT ALL + - 30, COALESCE ( + 57, - 90 ) AS col2, - - 54 AS col2
----
-30
57
54

query I rowsort
SELECT - 99 * 57 * - 48 + COALESCE ( - 12, COALESCE ( + 74, 82 ) ) col0
----
270852

query I rowsort
SELECT + + 71 + - + 37 * - - NULLIF ( - 37, 46 ) col0
----
1440

onlyif mysql # aggregate syntax: 
query II rowsort label-6729
SELECT + MIN( + 2 ) AS col1, + 89
----
2
89

skipif mysql # not compatible
query II rowsort label-6729
SELECT + MIN ( + 2 ) AS col1, + 89
----
2
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT + 87 * - - MIN( ALL + - 46 )
----
-4002

skipif mysql # not compatible
query I rowsort label-6730
SELECT + 87 * - - MIN ( ALL + - 46 )
----
-4002

query I rowsort
SELECT DISTINCT + 33 * + 43 + + 80 - - 59 * + + 23
----
2856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6732
SELECT ALL CAST( CASE 60 WHEN + - COUNT( * ) - 15 * - + CAST( + ( - COALESCE ( + 28, 59 ) ) AS DECIMAL ) THEN + + 83 / + 99 + + ( - 71 ) END AS SIGNED ) * + 87 + + 14 * + 31 + COUNT( ALL 15 ) * - 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL CAST ( CASE 60 WHEN + - COUNT ( * ) - 15 * - + CAST ( + ( - COALESCE ( + 28, 59 ) ) AS REAL ) THEN + + 83 / + 99 + + ( - 71 ) END AS INTEGER ) * + 87 + + 14 * + 31 + COUNT ( ALL 15 ) * - 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT SUM( ALL - 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-6733
SELECT SUM ( ALL - 68 ) AS col0
----
-68

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

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

query I rowsort
SELECT + 21 * + 83 col1
----
1743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6736
SELECT - COALESCE ( + NULLIF ( - COUNT( * ), - - 93 * - 10 + ( - + CASE 11 WHEN - CAST( NULL AS SIGNED ) THEN - ( 97 ) WHEN + 81 + - AVG ( ALL + NULLIF ( + + 22, - - 85 ) ) + - 1 + + COUNT( * ) THEN MIN( + ( + 76 ) ) * + 39 + + 0 WHEN + 19 - 99 THEN - CAST( - MIN( ALL 52 ) AS DECIMAL ) END ) ), 1 * - 10 + + SUM( 99 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6736
SELECT - COALESCE ( + NULLIF ( - COUNT ( * ), - - 93 * - 10 + ( - + CASE 11 WHEN - CAST ( NULL AS INTEGER ) THEN - ( 97 ) WHEN + 81 + - AVG ( ALL + NULLIF ( + + 22, - - 85 ) ) + - 1 + + COUNT ( * ) THEN MIN ( + ( + 76 ) ) * + 39 + + 0 WHEN + 19 - 99 THEN - CAST ( - MIN ( ALL 52 ) AS REAL ) END ) ), 1 * - 10 + + SUM ( 99 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT ALL 97 DIV + + 58 col2
----
1

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL 97 / + + 58 col2
----
1

query I rowsort
SELECT + 9 + - 32 + + 4 AS col1
----
-19

query II rowsort
SELECT DISTINCT 32 * - 66, - 18 * 67 * + + 12 * 18 AS col2
----
-2112
-260496

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL CASE + 72 WHEN - - 71 * + + 65 + + COUNT( * ) THEN 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL CASE + 72 WHEN - - 71 * + + 65 + + COUNT ( * ) THEN 70 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT + COUNT( * ) + - 30 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-6741
SELECT + COUNT ( * ) + - 30 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-6742
SELECT + + 68 - - + 80 AS col2, + NULLIF ( + 82, + ( MAX( + - 26 ) ) ) AS col0
----
148
82

skipif mysql # not compatible
query II rowsort label-6742
SELECT + + 68 - - + 80 AS col2, + NULLIF ( + 82, + ( MAX ( + - 26 ) ) ) AS col0
----
148
82

query I rowsort
SELECT - 15 + 54 * - 44
----
-2391

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT - 19 DIV - + 90 + - + 47 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-6744
SELECT - 19 / - + 90 + - + 47 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT DISTINCT + COALESCE ( - COUNT( * ), + 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-6745
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + 19 )
----
-1

query I rowsort
SELECT - - 85 + 3 + + ( + + 79 )
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT ALL - MIN( - + 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL - MIN ( - + 30 ) AS col0
----
30

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6749
SELECT ALL + CASE + COALESCE ( 52, + CAST( NULL AS SIGNED ) ) WHEN 23 + - 37 THEN 88 WHEN + - 12 THEN - + AVG ( + 34 ) + - - 46 - 38 END AS col1, + CAST( - 37 AS SIGNED ) * + + 96
----
NULL
-3552

skipif mysql # not compatible
query II rowsort label-6749
SELECT ALL + CASE + COALESCE ( 52, + CAST ( NULL AS INTEGER ) ) WHEN 23 + - 37 THEN 88 WHEN + - 12 THEN - + AVG ( + 34 ) + - - 46 - 38 END AS col1, + CAST ( - 37 AS INTEGER ) * + + 96
----
NULL
-3552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT DISTINCT - 97 * - CAST( - 99 AS SIGNED ) * + 75 AS col2
----
-720225

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT - 97 * - CAST ( - 99 AS INTEGER ) * + 75 AS col2
----
-720225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6751
SELECT - - 86 DIV + COALESCE ( 39, - - 40 + 47 ) AS col2, COUNT( * ) + + COUNT( * ) AS col2
----
2
2

skipif mysql # not compatible
query II rowsort label-6751
SELECT - - 86 / + COALESCE ( 39, - - 40 + 47 ) AS col2, COUNT ( * ) + + COUNT ( * ) AS col2
----
2
2

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

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

query I rowsort
SELECT ALL - + 16 * + - 35 col1
----
560

onlyif mysql # DIV for integer division: 
query I rowsort label-6754
SELECT DISTINCT - 14 DIV - - 96 + - 3 + 35 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT - 14 / - - 96 + - 3 + 35 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6755
SELECT ALL - 78 DIV - - COUNT( - - 47 ) + COUNT( * ) + - 43
----
-120

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - 78 / - - COUNT ( - - 47 ) + COUNT ( * ) + - 43
----
-120

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

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

query I rowsort
SELECT ALL + 22 * - + ( - 57 ) col2
----
1254

query II rowsort
SELECT ALL + 44 AS col2, 34 AS col2
----
44
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6759
SELECT ALL ( - CAST( NULL AS SIGNED ) ) / + ( - NULLIF ( + - 60, 22 + + 40 ) ) + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) / + ( - NULLIF ( + - 60, 22 + + 40 ) ) + + COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6760
SELECT - NULLIF ( + - 54, NULLIF ( - + CAST( NULL AS SIGNED ), - + 48 + 56 ) * + + COUNT( * ) + - 71 / + COUNT( ALL + + 92 ) + + 68 ) + + + 47 + MAX( ALL 82 )
----
183

skipif mysql # not compatible
query I rowsort label-6760
SELECT - NULLIF ( + - 54, NULLIF ( - + CAST ( NULL AS INTEGER ), - + 48 + 56 ) * + + COUNT ( * ) + - 71 / + COUNT ( ALL + + 92 ) + + 68 ) + + + 47 + MAX ( ALL 82 )
----
183

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT - ( - MAX( 37 ) ) * - 87 AS col1
----
-3219

skipif mysql # not compatible
query I rowsort label-6762
SELECT - ( - MAX ( 37 ) ) * - 87 AS col1
----
-3219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6763
SELECT + 4 * 73 DIV COUNT( * ) * - 65 * - 76 AS col0
----
1442480

skipif mysql # not compatible
query I rowsort label-6763
SELECT + 4 * 73 / COUNT ( * ) * - 65 * - 76 AS col0
----
1442480

query I rowsort
SELECT DISTINCT - 5 * + 43
----
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT + 68 - - 76 + ( + + 35 ) - 19 * - + NULLIF ( 16, - 7 + - COUNT( * ) )
----
483

skipif mysql # not compatible
query I rowsort label-6765
SELECT + 68 - - 76 + ( + + 35 ) - 19 * - + NULLIF ( 16, - 7 + - COUNT ( * ) )
----
483

query I rowsort
SELECT - ( 94 )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-6767
SELECT ALL + MIN( - 46 ) * + 91 - 46 + + CASE - COUNT( * ) WHEN - 46 THEN NULL ELSE - 3 END AS col1, + COUNT( * )
----
-4235
1

skipif mysql # not compatible
query II rowsort label-6767
SELECT ALL + MIN ( - 46 ) * + 91 - 46 + + CASE - COUNT ( * ) WHEN - 46 THEN NULL ELSE - 3 END AS col1, + COUNT ( * )
----
-4235
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6768
SELECT NULLIF ( + ( - + MIN( 24 ) ), - - MIN( - - 68 ) ) * - 59 DIV + COUNT( * ) AS col0
----
1416

skipif mysql # not compatible
query I rowsort label-6768
SELECT NULLIF ( + ( - + MIN ( 24 ) ), - - MIN ( - - 68 ) ) * - 59 / + COUNT ( * ) AS col0
----
1416

query II rowsort
SELECT - 59 AS col1, - 77 AS col0
----
-59
-77

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6771
SELECT + MAX( DISTINCT 61 ) / - CASE + + COUNT( * ) WHEN - 91 + - + COUNT( ALL - + CAST( NULL AS SIGNED ) ) * - + 23 THEN 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT + MAX ( DISTINCT 61 ) / - CASE + + COUNT ( * ) WHEN - 91 + - + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) * - + 23 THEN 95 END
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6773
SELECT DISTINCT 35 DIV COUNT( * ) * + - 79
----
-2765

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT 35 / COUNT ( * ) * + - 79
----
-2765

onlyif mysql # DIV for integer division: 
query I rowsort label-6774
SELECT DISTINCT 44 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT 44 / - 33
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT + COUNT( + 13 ) + - COUNT( DISTINCT 38 )
----
0

skipif mysql # not compatible
query I rowsort label-6775
SELECT + COUNT ( + 13 ) + - COUNT ( DISTINCT 38 )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6777
SELECT DISTINCT + 68 * - CAST( - + 23 AS SIGNED ) AS col0
----
1564

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT + 68 * - CAST ( - + 23 AS INTEGER ) AS col0
----
1564

query I rowsort
SELECT ALL 89 + 68 col0
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6779
SELECT 15 * - 26 - CAST( + - 28 AS SIGNED ) AS col0
----
-362

skipif mysql # not compatible
query I rowsort label-6779
SELECT 15 * - 26 - CAST ( + - 28 AS INTEGER ) AS col0
----
-362

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT + NULLIF ( 74, + - 46 * + - COUNT( * ) ) * COUNT( + + 32 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-6780
SELECT + NULLIF ( 74, + - 46 * + - COUNT ( * ) ) * COUNT ( + + 32 ) AS col2
----
74

query I rowsort
SELECT ALL - - 89 + 75 AS col0
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6782
SELECT DISTINCT 51 * + CAST( 16 AS SIGNED ) * + + 8 * COALESCE ( + + COUNT( * ), - 24, CAST( 48 AS SIGNED ) * CAST( NULL AS SIGNED ) - COUNT( * ) + - + 90 ) + - 97 - + COUNT( * ) + 94 * + COUNT( * ) * 62 + - - NULLIF ( ( 81 ), + 80 ) - - 63 * + 5
----
12654

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT 51 * + CAST ( 16 AS INTEGER ) * + + 8 * COALESCE ( + + COUNT ( * ), - 24, CAST ( 48 AS INTEGER ) * CAST ( NULL AS INTEGER ) - COUNT ( * ) + - + 90 ) + - 97 - + COUNT ( * ) + 94 * + COUNT ( * ) * 62 + - - NULLIF ( ( 81 ), + 80 ) - - 63 * + 5
----
12654

query I rowsort
SELECT ALL + 44 + - 82 AS col0
----
-38

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

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

query I rowsort
SELECT DISTINCT ( + - 89 ) + + 81
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT ALL + MAX( - + 96 ) * + + ( - 57 ) AS col1
----
5472

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL + MAX ( - + 96 ) * + + ( - 57 ) AS col1
----
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT CASE 54 WHEN + NULLIF ( + + 70, + + 64 * 12 * - + 22 ) THEN 57 / - 98 WHEN + COUNT( * ) * + 36 + - + 21 - 76 THEN NULL END / + - 19 + - 85 * + 62 * + + 68 + + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6787
SELECT CASE 54 WHEN + NULLIF ( + + 70, + + 64 * 12 * - + 22 ) THEN 57 / - 98 WHEN + COUNT ( * ) * + 36 + - + 21 - 76 THEN NULL END / + - 19 + - 85 * + 62 * + + 68 + + + 91
----
NULL

query I rowsort
SELECT ALL - 63 + 37 - 93 AS col2
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT 54 + - CASE + 20 WHEN - - COUNT( * ) + - ( - 16 ) * COUNT( * ) THEN 77 / + + 19 + - - 63 ELSE NULL END + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT 54 + - CASE + 20 WHEN - - COUNT ( * ) + - ( - 16 ) * COUNT ( * ) THEN 77 / + + 19 + - - 63 ELSE NULL END + 55
----
NULL

query I rowsort
SELECT 99 - - + 20
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT 63 * + + 72 - 37 + MAX( ALL 55 ) * - - 75
----
8624

skipif mysql # not compatible
query I rowsort label-6791
SELECT 63 * + + 72 - 37 + MAX ( ALL 55 ) * - - 75
----
8624

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6792
SELECT - 62 * + 25 + - 55 * NULLIF ( 59, - + CAST( NULL AS DECIMAL ) )
----
-4795

skipif mysql # not compatible
query I rowsort label-6792
SELECT - 62 * + 25 + - 55 * NULLIF ( 59, - + CAST ( NULL AS REAL ) )
----
-4795

query I rowsort
SELECT 89 * 44 AS col0
----
3916

query I rowsort
SELECT ALL + 91 * + + 27
----
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT 98 + - - MAX( ALL 51 ) * + - NULLIF ( + NULLIF ( COALESCE ( - - 93, 35 ), + + ( - ( + + 21 ) ) + - 7 + + 73 + 60 * - - 27 ), - COUNT( * ) ) AS col0
----
-4645

skipif mysql # not compatible
query I rowsort label-6795
SELECT 98 + - - MAX ( ALL 51 ) * + - NULLIF ( + NULLIF ( COALESCE ( - - 93, 35 ), + + ( - ( + + 21 ) ) + - 7 + + 73 + 60 * - - 27 ), - COUNT ( * ) ) AS col0
----
-4645

query I rowsort
SELECT DISTINCT - COALESCE ( + 78, 96 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT - 99 * - + COUNT( * ) + + COUNT( DISTINCT - + 72 ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-6797
SELECT - 99 * - + COUNT ( * ) + + COUNT ( DISTINCT - + 72 ) AS col2
----
100

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT 88 * + COUNT( * ) * - - 11 * ( + 73 ) * + - COUNT( ALL - ( 87 ) ) AS col0
----
-70664

skipif mysql # not compatible
query I rowsort label-6801
SELECT 88 * + COUNT ( * ) * - - 11 * ( + 73 ) * + - COUNT ( ALL - ( 87 ) ) AS col0
----
-70664

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT DISTINCT - COUNT( DISTINCT 37 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT - COUNT ( DISTINCT 37 ) col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT 4 + 39 * + 24 + - 88 - + - 59 + MAX( DISTINCT + + 99 ) * 34
----
4277

skipif mysql # not compatible
query I rowsort label-6804
SELECT 4 + 39 * + 24 + - 88 - + - 59 + MAX ( DISTINCT + + 99 ) * 34
----
4277

onlyif mysql # aggregate syntax: 
query II rowsort label-6805
SELECT COUNT( * ) + - 40 AS col0, 26 * - 23 + - 63 * 67 AS col2
----
-39
-4819

skipif mysql # not compatible
query II rowsort label-6805
SELECT COUNT ( * ) + - 40 AS col0, 26 * - 23 + - 63 * 67 AS col2
----
-39
-4819

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT SUM( - + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-6806
SELECT SUM ( - + 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT DISTINCT ( + SUM( 72 ) ) * - CASE 45 WHEN + 46 THEN - - NULLIF ( + 63, - NULLIF ( + NULLIF ( 49, - 92 + - - ( + 51 ) ), - COALESCE ( + 34, + 89 * + - 26 + - + COUNT( * ) * + 62 ) * 74 + 55 ) ) - + 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT ( + SUM ( 72 ) ) * - CASE 45 WHEN + 46 THEN - - NULLIF ( + 63, - NULLIF ( + NULLIF ( 49, - 92 + - - ( + 51 ) ), - COALESCE ( + 34, + 89 * + - 26 + - + COUNT ( * ) * + 62 ) * 74 + 55 ) ) - + 77 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6808
SELECT COUNT( * ) * + 50 + - 26 - - 39 + NULLIF ( 48, + CAST( 29 AS SIGNED ) + 44 ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-6808
SELECT COUNT ( * ) * + 50 + - 26 - - 39 + NULLIF ( 48, + CAST ( 29 AS INTEGER ) + 44 ) AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT DISTINCT - - 87 + + COUNT( - 86 )
----
88

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT - - 87 + + COUNT ( - 86 )
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6810
SELECT ALL + 63 + + - SUM( + + 77 ) - + 62 AS col2, - 5 + 32
----
-76
27

skipif mysql # not compatible
query II rowsort label-6810
SELECT ALL + 63 + + - SUM ( + + 77 ) - + 62 AS col2, - 5 + 32
----
-76
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6811
SELECT 60 + - + NULLIF ( - 57, COUNT( * ) * - - 35 + + 91 ) DIV - 32
----
59

skipif mysql # not compatible
query I rowsort label-6811
SELECT 60 + - + NULLIF ( - 57, COUNT ( * ) * - - 35 + + 91 ) / - 32
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6812
SELECT ALL - - COUNT( * ) + - 12 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL - - COUNT ( * ) + - 12 * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL 51 + 91 AS col0
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT + 30 * + 21 * - COUNT( * )
----
-630

skipif mysql # not compatible
query I rowsort label-6814
SELECT + 30 * + 21 * - COUNT ( * )
----
-630

query I rowsort
SELECT + 99 + 37
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6816
SELECT DISTINCT - SUM( ALL - + 71 ), CAST( NULL AS SIGNED ) AS col2
----
71
NULL

skipif mysql # not compatible
query II rowsort label-6816
SELECT DISTINCT - SUM ( ALL - + 71 ), CAST ( NULL AS INTEGER ) AS col2
----
71
NULL

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

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL COUNT ( ALL + 25 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT COUNT( * ) + - - ( COALESCE ( + + 98, ( 98 ) - 22, 30 ) )
----
99

skipif mysql # not compatible
query I rowsort label-6818
SELECT COUNT ( * ) + - - ( COALESCE ( + + 98, ( 98 ) - 22, 30 ) )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6819
SELECT ALL + CAST( AVG ( DISTINCT 54 ) AS SIGNED ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL + CAST ( AVG ( DISTINCT 54 ) AS INTEGER ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT 78 * - - 51 - - ( - MIN( 97 ) ) col2
----
3881

skipif mysql # not compatible
query I rowsort label-6820
SELECT 78 * - - 51 - - ( - MIN ( 97 ) ) col2
----
3881

onlyif mysql # DIV for integer division: 
query I rowsort label-6821
SELECT ALL 53 DIV - 23 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL 53 / - 23 AS col2
----
-2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6823
SELECT 9 + 7 DIV - - 11
----
9

skipif mysql # not compatible
query I rowsort label-6823
SELECT 9 + 7 / - - 11
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT ALL COUNT( ALL 34 ) + + COALESCE ( - + 74, + COUNT( * ) + - 67 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL COUNT ( ALL 34 ) + + COALESCE ( - + 74, + COUNT ( * ) + - 67 ) AS col0
----
-73

query I rowsort
SELECT DISTINCT NULLIF ( + 47, - ( - 93 ) )
----
47

query I rowsort
SELECT DISTINCT 23 - 33
----
-10

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

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

query I rowsort
SELECT 18 + + 53
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6829
SELECT 89 DIV + ( + 45 ) AS col2, 4 * NULLIF ( + 14, - COUNT( * ) ) AS col1
----
1
56

skipif mysql # not compatible
query II rowsort label-6829
SELECT 89 / + ( + 45 ) AS col2, 4 * NULLIF ( + 14, - COUNT ( * ) ) AS col1
----
1
56

query I rowsort
SELECT ALL - CASE + 22 WHEN 0 THEN + - 24 END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6831
SELECT + 57 * - CAST( NULL AS DECIMAL ) * - - 67 - - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6831
SELECT + 57 * - CAST ( NULL AS REAL ) * - - 67 - - 32
----
NULL

query I rowsort
SELECT - 62 * + + 60 AS col2
----
-3720

onlyif mysql # aggregate syntax: 
query II rowsort label-6833
SELECT ALL + COUNT( 50 ) * 88 - - - 75 + - - 92 + 71 - + - 68 * + 84 AS col1, - 23 * + 58
----
5888
-1334

skipif mysql # not compatible
query II rowsort label-6833
SELECT ALL + COUNT ( 50 ) * 88 - - - 75 + - - 92 + 71 - + - 68 * + 84 AS col1, - 23 * + 58
----
5888
-1334

query II rowsort
SELECT ALL + 69, 41 AS col0
----
69
41

query I rowsort
SELECT + NULLIF ( - 34, - 12 )
----
-34

query I rowsort
SELECT + 8 + - + 36
----
-28

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

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

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

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

query I rowsort
SELECT DISTINCT + + 35 + - 66 * - + 29 + + - 17
----
1932

query I rowsort
SELECT 15 * CASE - 5 WHEN - 12 THEN + 11 END * + 26 - + + 88 + + ( + 47 ) + - - 41 / + + 67 * + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT DISTINCT + 51 + + - 23 + - MIN( + COALESCE ( + - 98, 94 ) )
----
126

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT + 51 + + - 23 + - MIN ( + COALESCE ( + - 98, 94 ) )
----
126

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6843
SELECT - ( - - 4 ) - + 24 * + CAST( + 23 AS SIGNED )
----
-556

skipif mysql # not compatible
query I rowsort label-6843
SELECT - ( - - 4 ) - + 24 * + CAST ( + 23 AS INTEGER )
----
-556

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6845
SELECT - + 79 + MIN( - - 67 ), 29 + - ( CASE - COUNT( - + 50 ) WHEN - 65 + - 48 THEN + 63 END ) + 3 * + + 10 AS col0
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-6845
SELECT - + 79 + MIN ( - - 67 ), 29 + - ( CASE - COUNT ( - + 50 ) WHEN - 65 + - 48 THEN + 63 END ) + 3 * + + 10 AS col0
----
-12
NULL

query I rowsort
SELECT - NULLIF ( - 30, + ( + 62 ) - ( - - 69 ) )
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6847
SELECT - - 63 * - 91 * CAST( NULL AS DECIMAL ) * + 42 + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6847
SELECT - - 63 * - 91 * CAST ( NULL AS REAL ) * + 42 + - 66
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT - + 67 + + 91 AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6851
SELECT DISTINCT + 85 * - 21 * + - 94 * - 95 * + CAST( - - 32 AS SIGNED ) col2
----
-510081600

skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT + 85 * - 21 * + - 94 * - 95 * + CAST ( - - 32 AS INTEGER ) col2
----
-510081600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6852
SELECT DISTINCT 12 - + + CAST( - 54 AS SIGNED ) * - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT 12 - + + CAST ( - 54 AS INTEGER ) * - COUNT ( * )
----
-42

query I rowsort
SELECT ALL + 58 * + + 54
----
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT - + 36 + COUNT( * ) + - - COUNT( + + 73 )
----
-34

skipif mysql # not compatible
query I rowsort label-6854
SELECT - + 36 + COUNT ( * ) + - - COUNT ( + + 73 )
----
-34

query I rowsort
SELECT + 11 * + 62 AS col1
----
682

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6857
SELECT ALL 34 - ( - + 20 ) - - - ( CASE ( + CAST( NULL AS SIGNED ) ) WHEN - MIN( + 56 ) * - - CAST( NULL AS SIGNED ) + - + 67 + - 55 * - 94 + 1 THEN + 2 / - 68 + - 30 WHEN - + 56 + - COUNT( * ) / + COALESCE ( - + 85, AVG ( + 3 ), 19 ) - - 70 THEN + 90 * - COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL 34 - ( - + 20 ) - - - ( CASE ( + CAST ( NULL AS INTEGER ) ) WHEN - MIN ( + 56 ) * - - CAST ( NULL AS INTEGER ) + - + 67 + - 55 * - 94 + 1 THEN + 2 / - 68 + - 30 WHEN - + 56 + - COUNT ( * ) / + COALESCE ( - + 85, AVG ( + 3 ), 19 ) - - 70 THEN + 90 * - COUNT ( * ) ELSE NULL END )
----
NULL

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

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

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

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

query I rowsort
SELECT ALL 4 * 86
----
344

query I rowsort
SELECT DISTINCT 33 * + 80
----
2640

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-6864
SELECT ALL COALESCE ( + + 13, + - 93 ) * - COUNT( * ) col0, - SUM( DISTINCT - ( - 59 ) ) AS col2, - - 36 * - 81 + + COUNT( * ) + 75 + - CASE - - 89 WHEN 88 THEN NULL WHEN + COUNT( * ) * + + 58 * - - 54 THEN 92 * + COUNT( * ) / 77 + + ( ( + 36 ) ) + 62 WHEN + 40 THEN NULL END
----
-13
-59
NULL

skipif mysql # not compatible
query III rowsort label-6864
SELECT ALL COALESCE ( + + 13, + - 93 ) * - COUNT ( * ) col0, - SUM ( DISTINCT - ( - 59 ) ) AS col2, - - 36 * - 81 + + COUNT ( * ) + 75 + - CASE - - 89 WHEN 88 THEN NULL WHEN + COUNT ( * ) * + + 58 * - - 54 THEN 92 * + COUNT ( * ) / 77 + + ( ( + 36 ) ) + 62 WHEN + 40 THEN NULL END
----
-13
-59
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6865
SELECT + 50 * MIN( 97 ) DIV + - 52
----
-93

skipif mysql # not compatible
query I rowsort label-6865
SELECT + 50 * MIN ( 97 ) / + - 52
----
-93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6866
SELECT 74 / - + CASE - 53 WHEN + + 55 + - 4 + - ( 92 ) - - + 5 / + 58 * - 36 THEN 57 WHEN + 82 THEN - CASE COALESCE ( + + COUNT( DISTINCT + - 42 ), MIN( DISTINCT + - ( 47 ) ) * + 28 + 7 ) WHEN + AVG ( 69 ) * + 26 THEN NULL ELSE - ( + CASE - 15 WHEN AVG ( DISTINCT - 89 ) * COUNT( * ) THEN + ( + 8 ) * - 35 WHEN - CAST( - 58 AS DECIMAL ) + 75 * - 72 THEN 49 ELSE NULL END ) END END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6866
SELECT 74 / - + CASE - 53 WHEN + + 55 + - 4 + - ( 92 ) - - + 5 / + 58 * - 36 THEN 57 WHEN + 82 THEN - CASE COALESCE ( + + COUNT ( DISTINCT + - 42 ), MIN ( DISTINCT + - ( 47 ) ) * + 28 + 7 ) WHEN + AVG ( 69 ) * + 26 THEN NULL ELSE - ( + CASE - 15 WHEN AVG ( DISTINCT - 89 ) * COUNT ( * ) THEN + ( + 8 ) * - 35 WHEN - CAST ( - 58 AS REAL ) + 75 * - 72 THEN 49 ELSE NULL END ) END END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6867
SELECT 38 * - 20 + + + 30 * 57 DIV 36 * - COUNT( * ) * + - 94 + - - COUNT( * ) - + + 5 * + 34 * + + 46 * 22 * + 44
----
-7566101

skipif mysql # not compatible
query I rowsort label-6867
SELECT 38 * - 20 + + + 30 * 57 / 36 * - COUNT ( * ) * + - 94 + - - COUNT ( * ) - + + 5 * + 34 * + + 46 * 22 * + 44
----
-7566101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6868
SELECT - 32 DIV - 98 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6868
SELECT - 32 / - 98 * - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT ( - MIN( ALL - NULLIF ( 52, + + 65 + 26 ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-6869
SELECT ( - MIN ( ALL - NULLIF ( 52, + + 65 + 26 ) ) )
----
52

query I rowsort
SELECT ALL COALESCE ( - 32, + 27 ) * - 27 * - + 96
----
-82944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6871
SELECT CASE - 44 WHEN + 56 THEN + COUNT( - + 10 ) * + 86 WHEN - 47 THEN - SUM( DISTINCT - 31 ) / + + CAST( NULL AS SIGNED ) - COUNT( * ) / COUNT( * ) + ( COUNT( * ) ) - - ( 32 ) + + 50 WHEN + 7 THEN + ( + + 30 ) + 93 / 21 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6871
SELECT CASE - 44 WHEN + 56 THEN + COUNT ( - + 10 ) * + 86 WHEN - 47 THEN - SUM ( DISTINCT - 31 ) / + + CAST ( NULL AS INTEGER ) - COUNT ( * ) / COUNT ( * ) + ( COUNT ( * ) ) - - ( 32 ) + + 50 WHEN + 7 THEN + ( + + 30 ) + 93 / 21 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 70 * + 82 + - 17 AS col2
----
-5757

onlyif mysql # aggregate syntax: 
query II rowsort label-6873
SELECT DISTINCT 37 * ( - 20 ) + - 74 AS col0, 78 * + MIN( 37 ) * - + 67 AS col0
----
-814
-193362

skipif mysql # not compatible
query II rowsort label-6873
SELECT DISTINCT 37 * ( - 20 ) + - 74 AS col0, 78 * + MIN ( 37 ) * - + 67 AS col0
----
-814
-193362

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT - + 94 + + MIN( - 91 ) AS col0
----
-185

skipif mysql # not compatible
query I rowsort label-6874
SELECT - + 94 + + MIN ( - 91 ) AS col0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6875
SELECT + 98 + CAST( + 35 AS SIGNED ) * + 21 + + 6
----
839

skipif mysql # not compatible
query I rowsort label-6875
SELECT + 98 + CAST ( + 35 AS INTEGER ) * + 21 + + 6
----
839

query I rowsort
SELECT + + 8 * + + 49 * + - 99 AS col1
----
-38808

query I rowsort
SELECT - 81 * + - 15 + - ( 30 )
----
1185

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT ALL COUNT( * ) * - 39 * - 82 + MAX( - - 69 )
----
3267

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL COUNT ( * ) * - 39 * - 82 + MAX ( - - 69 )
----
3267

query I rowsort
SELECT - ( - 47 ) * - 97
----
-4559

query I rowsort
SELECT ALL + 37 * - 28 * - 76
----
78736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6882
SELECT ALL COALESCE ( + - NULLIF ( CAST( NULL AS SIGNED ), + 36 * + - 94 * - 78 ), 35, SUM( ALL - + ( 78 ) ) + + 9 )
----
35

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL COALESCE ( + - NULLIF ( CAST ( NULL AS INTEGER ), + 36 * + - 94 * - 78 ), 35, SUM ( ALL - + ( 78 ) ) + + 9 )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6883
SELECT DISTINCT - 48 * + + 72 + - 52 * ( + SUM( DISTINCT - 51 ) ) - 69 + + 90 DIV + 20 AS col1
----
-869

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT - 48 * + + 72 + - 52 * ( + SUM ( DISTINCT - 51 ) ) - 69 + + 90 / + 20 AS col1
----
-869

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6885
SELECT - + COUNT( DISTINCT - 9 ) + - 51 DIV - 24
----
1

skipif mysql # not compatible
query I rowsort label-6885
SELECT - + COUNT ( DISTINCT - 9 ) + - 51 / - 24
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT ALL - COUNT( * ) * + 5 - COUNT( * ) + - + 29 * + + COALESCE ( + - 54, 42, + ( + 38 ) ) * 57 AS col2
----
89256

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL - COUNT ( * ) * + 5 - COUNT ( * ) + - + 29 * + + COALESCE ( + - 54, 42, + ( + 38 ) ) * 57 AS col2
----
89256

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6887
SELECT DISTINCT + - 69 - + 41 - + 53 * - - COUNT( * ) - CASE 72 WHEN 2 THEN - 12 WHEN - - 55 + - + 40 * CAST( - 40 AS DECIMAL ) + + - 47 - - 87 THEN + + COALESCE ( + 80, COUNT( * ) ) * + 42 END * - COALESCE ( 93, + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT + - 69 - + 41 - + 53 * - - COUNT ( * ) - CASE 72 WHEN 2 THEN - 12 WHEN - - 55 + - + 40 * CAST ( - 40 AS REAL ) + + - 47 - - 87 THEN + + COALESCE ( + 80, COUNT ( * ) ) * + 42 END * - COALESCE ( 93, + - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT - 2 * - COUNT( * ) * - + 93 * + COUNT( * ) col2
----
-186

skipif mysql # not compatible
query I rowsort label-6888
SELECT - 2 * - COUNT ( * ) * - + 93 * + COUNT ( * ) col2
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT - COUNT( * ) * 99 * + 86
----
-8514

skipif mysql # not compatible
query I rowsort label-6889
SELECT - COUNT ( * ) * 99 * + 86
----
-8514

query I rowsort
SELECT - 11 + + 80
----
69

query I rowsort
SELECT ALL NULLIF ( 48, + 65 ) AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6892
SELECT DISTINCT + COUNT( * ) * - COALESCE ( - MAX( - 1 ), - + CAST( - - 2 AS SIGNED ) ) DIV + 98 * 44
----
0

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT + COUNT ( * ) * - COALESCE ( - MAX ( - 1 ), - + CAST ( - - 2 AS INTEGER ) ) / + 98 * 44
----
0

query II rowsort
SELECT ALL ( - 88 ), - 35 * 78 * - + 5 AS col2
----
-88
13650

query I rowsort
SELECT ALL 63 * - 22
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT ALL - COUNT( 83 ) * 95
----
-95

skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL - COUNT ( 83 ) * 95
----
-95

query I rowsort
SELECT ALL - 42 + + + 52 AS col1
----
10

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6898
SELECT DISTINCT 62 + + COUNT( * ) AS col2, 16 AS col1
----
63
16

skipif mysql # not compatible
query II rowsort label-6898
SELECT DISTINCT 62 + + COUNT ( * ) AS col2, 16 AS col1
----
63
16

query I rowsort
SELECT 17 * + + 40 AS col2
----
680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6900
SELECT DISTINCT COUNT( * ) + - 18 DIV + CAST( - + 63 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT COUNT ( * ) + - 18 / + CAST ( - + 63 AS INTEGER ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT COUNT( * ) * - + MAX( DISTINCT + + 20 ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-6902
SELECT COUNT ( * ) * - + MAX ( DISTINCT + + 20 ) col1
----
-20

query I rowsort
SELECT 15 + - + 75 + - 49 * - - 33 AS col1
----
-1677

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

skipif mysql # not compatible
query I rowsort label-6904
SELECT - COUNT ( * ) + - - 51 * 50 / - - 89
----
27

query I rowsort
SELECT DISTINCT - - ( 77 )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6906
SELECT ALL 84 - + + 31 + - 94 * 56 * 77 DIV COALESCE ( + 42, + - 21, - 81 ) DIV - - 96 * + + COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL 84 - + + 31 + - 94 * 56 * 77 / COALESCE ( + 42, + - 21, - 81 ) / - - 96 * + + COUNT ( * ) AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6907
SELECT 38 * + 23 + + CASE + CAST( NULL AS DECIMAL ) WHEN + 19 * - 38 + 74 + + 49 / + 66 THEN NULL WHEN - - COUNT( CAST( NULL AS SIGNED ) ) THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT 38 * + 23 + + CASE + CAST ( NULL AS REAL ) WHEN + 19 * - 38 + 74 + + 49 / + 66 THEN NULL WHEN - - COUNT ( CAST ( NULL AS INTEGER ) ) THEN - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT + 50 + CASE - - 69 WHEN 45 THEN - + MAX( + 53 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT + 50 + CASE - - 69 WHEN 45 THEN - + MAX ( + 53 ) END AS col1
----
NULL

query I rowsort
SELECT ALL + 16 - + 33 + - 65 * - 21 * 19 + - 12 + - 50 AS col2
----
25856

query I rowsort
SELECT 64 * 19 AS col2
----
1216

query I rowsort
SELECT 7 * - - 17 col1
----
119

query II rowsort
SELECT + ( + + 66 ) AS col0, 15 AS col1
----
66
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT DISTINCT + COUNT( * ) - + + 92
----
-91

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT + COUNT ( * ) - + + 92
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT - MIN( - 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6914
SELECT - MIN ( - 5 ) AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6915
SELECT - 0 - - 33 DIV - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6915
SELECT - 0 - - 33 / - 99 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6916
SELECT ALL + 64 * - COUNT( * ) AS col1, - SUM( + - 7 ) * - 52 * 74 - + CAST( + 29 AS SIGNED ) AS col2
----
-64
-26965

skipif mysql # not compatible
query II rowsort label-6916
SELECT ALL + 64 * - COUNT ( * ) AS col1, - SUM ( + - 7 ) * - 52 * 74 - + CAST ( + 29 AS INTEGER ) AS col2
----
-64
-26965

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

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

query I rowsort
SELECT ALL 57 * 76
----
4332

query I rowsort
SELECT 8 * + 54 AS col2
----
432

onlyif mysql # DIV for integer division: 
query II rowsort label-6920
SELECT ALL - 73 + + ( - - 98 ), 14 DIV 62 AS col1
----
25
0

skipif mysql # not compatible
query II rowsort label-6920
SELECT ALL - 73 + + ( - - 98 ), 14 / 62 AS col1
----
25
0

query I rowsort
SELECT 88 + + 1 col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6922
SELECT 27 DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6922
SELECT 27 / 99 AS col1
----
0

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

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

query I rowsort
SELECT 7 + + - 1
----
6

query I rowsort
SELECT ALL - 38 + + 59 * - - 67
----
3915

query I rowsort
SELECT ALL + ( - - 70 ) * + 22 AS col2
----
1540

query I rowsort
SELECT DISTINCT - 56 + + 55 AS col1
----
-1

query II rowsort
SELECT - 29, - 6 AS col2
----
-29
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6929
SELECT ALL - CAST( NULL AS DECIMAL ) + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL - CAST ( NULL AS REAL ) + 62
----
NULL

query I rowsort
SELECT 74 * + 32 + - + 0 + - + 45 AS col2
----
2323

onlyif mysql # DIV for integer division: 
query II rowsort label-6931
SELECT - 7 DIV - 60 + 14, - ( - 93 ) * + ( - ( + 32 ) ) AS col2
----
14
-2976

skipif mysql # not compatible
query II rowsort label-6931
SELECT - 7 / - 60 + 14, - ( - 93 ) * + ( - ( + 32 ) ) AS col2
----
14
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT ALL - COUNT( * ) + + - 31
----
-32

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL - COUNT ( * ) + + - 31
----
-32

query I rowsort
SELECT 23 * - 86 AS col0
----
-1978

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

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

query II rowsort
SELECT + 62 AS col0, + 24
----
62
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6936
SELECT + 96, 99 DIV - + 13 + - 25 * COALESCE ( - ( - - 17 ), COUNT( * ) * CASE - 96 WHEN COUNT( * ) THEN - - 24 WHEN - 2 DIV 64 THEN + 5 + - 52 WHEN + + 98 THEN NULL ELSE - 91 END ) AS col0
----
96
418

skipif mysql # not compatible
query II rowsort label-6936
SELECT + 96, 99 / - + 13 + - 25 * COALESCE ( - ( - - 17 ), COUNT ( * ) * CASE - 96 WHEN COUNT ( * ) THEN - - 24 WHEN - 2 / 64 THEN + 5 + - 52 WHEN + + 98 THEN NULL ELSE - 91 END ) AS col0
----
96
418

onlyif mysql # aggregate syntax: 
query II rowsort label-6937
SELECT + - 30 AS col1, + COALESCE ( - - 69, + + COUNT( * ) ) * + 17 + + 29 + - + 1 + 26 col1
----
-30
1227

skipif mysql # not compatible
query II rowsort label-6937
SELECT + - 30 AS col1, + COALESCE ( - - 69, + + COUNT ( * ) ) * + 17 + + 29 + - + 1 + 26 col1
----
-30
1227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6938
SELECT + + 90 * - COALESCE ( 67, 7 ) + CAST( NULL AS SIGNED ) + 87 * 37 / + - 48 + - 89 col2, - 84 + + 34 AS col1
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-6938
SELECT + + 90 * - COALESCE ( 67, 7 ) + CAST ( NULL AS INTEGER ) + 87 * 37 / + - 48 + - 89 col2, - 84 + + 34 AS col1
----
NULL
-50

query I rowsort
SELECT ALL - 81 - - 76
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6940
SELECT COUNT( ALL - 13 ) * COUNT( * ) + 1 + + 30 - + 9 * - + CAST( + + 14 AS SIGNED ) AS col1, 20 DIV - 44
----
158
0

skipif mysql # not compatible
query II rowsort label-6940
SELECT COUNT ( ALL - 13 ) * COUNT ( * ) + 1 + + 30 - + 9 * - + CAST ( + + 14 AS INTEGER ) AS col1, 20 / - 44
----
158
0

query I rowsort
SELECT ALL - 31 * 10 AS col2
----
-310

query I rowsort
SELECT DISTINCT - ( + - 58 ) col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6943
SELECT DISTINCT + 87 DIV + + COUNT( * ) + + NULLIF ( - COUNT( - 67 ), CAST( NULL AS DECIMAL ) ) + - 14
----
72

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT + 87 / + + COUNT ( * ) + + NULLIF ( - COUNT ( - 67 ), CAST ( NULL AS REAL ) ) + - 14
----
72

query I rowsort
SELECT ALL COALESCE ( 9, - 42 ) * - 69 AS col0
----
-621

onlyif mysql # DIV for integer division: 
query I rowsort label-6945
SELECT 32 DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-6945
SELECT 32 / + 37
----
0

query I rowsort
SELECT - ( + 86 ) * - 33 AS col2
----
2838

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT 63 + 83 * - SUM( DISTINCT - + 42 )
----
3549

skipif mysql # not compatible
query I rowsort label-6947
SELECT 63 + 83 * - SUM ( DISTINCT - + 42 )
----
3549

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT DISTINCT - 37 * - + 51 * + 74 * - 60 * AVG ( ALL + - 36 ) / + 32 + COUNT( * ) + - 55 - CASE + 97 WHEN + ( + 97 ) * + 82 THEN - COUNT( * ) ELSE NULL END * - - 91 * - COUNT( * ) / - + 65 / - - 4 + + 82 + - 26 * + 20 / + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT - 37 * - + 51 * + 74 * - 60 * AVG ( ALL + - 36 ) / + 32 + COUNT ( * ) + - 55 - CASE + 97 WHEN + ( + 97 ) * + 82 THEN - COUNT ( * ) ELSE NULL END * - - 91 * - COUNT ( * ) / - + 65 / - - 4 + + 82 + - 26 * + 20 / + 73
----
NULL

query I rowsort
SELECT ALL - 79 * 80 * + 64
----
-404480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6950
SELECT + CASE + - 70 WHEN - ( AVG ( + + NULLIF ( - 21, + - ( - 15 ) * + 13 ) ) ) * + COUNT( DISTINCT 33 ) / + ( - 27 ) - 55 / - 35 * + COUNT( * ) + + ( + 38 ) THEN - ( - + ( + COALESCE ( + 16, 65, + 27 * 98 ) ) ) + 75 WHEN 42 THEN CAST( + 11 AS SIGNED ) END + - NULLIF ( - COUNT( DISTINCT 18 ), + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6950
SELECT + CASE + - 70 WHEN - ( AVG ( + + NULLIF ( - 21, + - ( - 15 ) * + 13 ) ) ) * + COUNT ( DISTINCT 33 ) / + ( - 27 ) - 55 / - 35 * + COUNT ( * ) + + ( + 38 ) THEN - ( - + ( + COALESCE ( + 16, 65, + 27 * 98 ) ) ) + 75 WHEN 42 THEN CAST ( + 11 AS INTEGER ) END + - NULLIF ( - COUNT ( DISTINCT 18 ), + 34 )
----
NULL

query I rowsort
SELECT ALL - ( 63 ) AS col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6952
SELECT + 23 DIV - 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6952
SELECT + 23 / - 49 AS col2
----
0

query II rowsort
SELECT ALL - 88 AS col0, ( + - 3 ) col0
----
-88
-3

query I rowsort
SELECT 32 + + 34 + + 68 + + - 96 + + 28 * - ( - + 26 ) AS col1
----
766

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT DISTINCT 16 + - COUNT( * ) - + ( + ( 74 ) ) * + + 56
----
-4129

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT 16 + - COUNT ( * ) - + ( + ( 74 ) ) * + + 56
----
-4129

onlyif mysql # aggregate syntax: 
query II rowsort label-6956
SELECT - COUNT( ALL - 49 ), - 99 AS col2
----
-1
-99

skipif mysql # not compatible
query II rowsort label-6956
SELECT - COUNT ( ALL - 49 ), - 99 AS col2
----
-1
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT DISTINCT MAX( - + NULLIF ( 23, ( + 65 ) * - 35 ) ) + + - 70 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT MAX ( - + NULLIF ( 23, ( + 65 ) * - 35 ) ) + + - 70 AS col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6958
SELECT ALL NULLIF ( + 81, + COUNT( * ) * + 4 * - CASE - 12 WHEN - + 30 THEN + - COUNT( * ) + + MIN( DISTINCT + + 79 ) + - + 9 - + + MAX( ALL + 33 ) END + ( CAST( NULL AS SIGNED ) ) * - 25 ) * + 84 * - 40
----
-272160

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL NULLIF ( + 81, + COUNT ( * ) * + 4 * - CASE - 12 WHEN - + 30 THEN + - COUNT ( * ) + + MIN ( DISTINCT + + 79 ) + - + 9 - + + MAX ( ALL + 33 ) END + ( CAST ( NULL AS INTEGER ) ) * - 25 ) * + 84 * - 40
----
-272160

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT + 10 * + + 92 * + + COUNT( * ) * - 66 AS col2
----
-60720

skipif mysql # not compatible
query I rowsort label-6959
SELECT + 10 * + + 92 * + + COUNT ( * ) * - 66 AS col2
----
-60720

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT - NULLIF ( - COUNT( ALL 91 ), - COUNT( * ) + + COUNT( 37 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6960
SELECT - NULLIF ( - COUNT ( ALL 91 ), - COUNT ( * ) + + COUNT ( 37 ) ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL + CAST ( + - 21 AS INTEGER ) + + 54 AS col0
----
33

query I rowsort
SELECT + 80 * 28
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT DISTINCT ( - 42 ) * 91 * - CASE - 91 WHEN 80 THEN + + 88 + + COUNT( * ) * + 10 * - + MIN( DISTINCT 20 ) + - SUM( - 6 ) WHEN + - 13 THEN - - 58 + COUNT( * ) * + - 69 END + COUNT( * ) + - COUNT( * ) * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT ( - 42 ) * 91 * - CASE - 91 WHEN 80 THEN + + 88 + + COUNT ( * ) * + 10 * - + MIN ( DISTINCT 20 ) + - SUM ( - 6 ) WHEN + - 13 THEN - - 58 + COUNT ( * ) * + - 69 END + COUNT ( * ) + - COUNT ( * ) * + 77
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6964
SELECT ALL CAST( NULL AS SIGNED ) + + COALESCE ( CAST( + 78 AS SIGNED ), - 85, - + 68 * + 3 ) * 35 + 91 + 49 col0, ( + 44 )
----
NULL
44

skipif mysql # not compatible
query II rowsort label-6964
SELECT ALL CAST ( NULL AS INTEGER ) + + COALESCE ( CAST ( + 78 AS INTEGER ), - 85, - + 68 * + 3 ) * 35 + 91 + 49 col0, ( + 44 )
----
NULL
44

onlyif mysql # DIV for integer division: 
query II rowsort label-6965
SELECT + 44 * + 45 AS col0, - 6 + - - 15 * 52 DIV - - 11
----
1980
64

skipif mysql # not compatible
query II rowsort label-6965
SELECT + 44 * + 45 AS col0, - 6 + - - 15 * 52 / - - 11
----
1980
64

query I rowsort
SELECT + 20 * + 69 * + 78 AS col2
----
107640

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

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

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

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

query I rowsort
SELECT - 78 * 25 * + + 51 AS col2
----
-99450

onlyif mysql # aggregate syntax: 
query II rowsort label-6970
SELECT DISTINCT - + COUNT( * ) * - 72 - + COUNT( * ) * + + COALESCE ( 94, 39 * + ( 94 ) + - 66 ), 95 + ( 81 ) AS col1
----
-22
176

skipif mysql # not compatible
query II rowsort label-6970
SELECT DISTINCT - + COUNT ( * ) * - 72 - + COUNT ( * ) * + + COALESCE ( 94, 39 * + ( 94 ) + - 66 ), 95 + ( 81 ) AS col1
----
-22
176

query I rowsort
SELECT ALL - + 0 * + - 34 + - 47 + ( - - 60 )
----
13

query I rowsort
SELECT - - 38 * - + 82 AS col2
----
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT + + COUNT( DISTINCT - 22 ) * 22 * 12 AS col0
----
264

skipif mysql # not compatible
query I rowsort label-6973
SELECT + + COUNT ( DISTINCT - 22 ) * 22 * 12 AS col0
----
264

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

skipif mysql # not compatible
query I rowsort label-6974
SELECT - + 63 * - + COUNT ( * ) + - 78 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-6975
SELECT ALL + - CASE - COUNT( * ) WHEN 77 THEN 52 + 42 WHEN + - COUNT( * ) * - 60 * - 3 - + 31 THEN NULL WHEN - 22 THEN - 15 END * 89 * - - 54 + 52, - 23 + - + ( - 92 ) AS col0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-6975
SELECT ALL + - CASE - COUNT ( * ) WHEN 77 THEN 52 + 42 WHEN + - COUNT ( * ) * - 60 * - 3 - + 31 THEN NULL WHEN - 22 THEN - 15 END * 89 * - - 54 + 52, - 23 + - + ( - 92 ) AS col0
----
NULL
69

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6977
SELECT - + 13 * + ( + 58 ) * 91 - + ( + 29 ) + 6 DIV - COUNT( + 65 ) col2
----
-68649

skipif mysql # not compatible
query I rowsort label-6977
SELECT - + 13 * + ( + 58 ) * 91 - + ( + 29 ) + 6 / - COUNT ( + 65 ) col2
----
-68649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6978
SELECT - 94 * + 15 / + - COUNT( * ) * + 58 * - 88 - - CAST( NULL AS SIGNED ) * + - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6978
SELECT - 94 * + 15 / + - COUNT ( * ) * + 58 * - 88 - - CAST ( NULL AS INTEGER ) * + - 14 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6979
SELECT ALL - 77 * 53 + CASE 25 WHEN + 70 / - ( - + COUNT( * ) ) * + COUNT( * ) * ( - NULLIF ( - 79, COALESCE ( 39, - - COUNT( * ) + - 97, CAST( NULL AS SIGNED ) * - ( 99 ) ) ) ) + - 76 + - AVG ( DISTINCT - 61 ) + - 9 THEN - - 68 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL - 77 * 53 + CASE 25 WHEN + 70 / - ( - + COUNT ( * ) ) * + COUNT ( * ) * ( - NULLIF ( - 79, COALESCE ( 39, - - COUNT ( * ) + - 97, CAST ( NULL AS INTEGER ) * - ( 99 ) ) ) ) + - 76 + - AVG ( DISTINCT - 61 ) + - 9 THEN - - 68 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - - 37 * - 68 * 98 AS col2
----
-246568

query II rowsort
SELECT - NULLIF ( + - 15, 80 * 63 ) col0, 98
----
15
98

query I rowsort
SELECT ALL + 55 * + 45 + 95 col1
----
2570

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT - CASE COUNT( * ) WHEN - - 46 + 34 THEN NULL WHEN - - 1 THEN + - 7 - - + 46 ELSE NULL END col2
----
-39

skipif mysql # not compatible
query I rowsort label-6984
SELECT - CASE COUNT ( * ) WHEN - - 46 + 34 THEN NULL WHEN - - 1 THEN + - 7 - - + 46 ELSE NULL END col2
----
-39

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

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

query I rowsort
SELECT ALL 4 * + 4
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6987
SELECT DISTINCT CASE - + MAX( + 89 ) WHEN + COUNT( * ) THEN NULL ELSE + + 26 END + + - 48 + + 11 DIV 70 * CAST( - - 95 AS SIGNED ) + - - 6 + + 7
----
-9

skipif mysql # not compatible
query I rowsort label-6987
SELECT DISTINCT CASE - + MAX ( + 89 ) WHEN + COUNT ( * ) THEN NULL ELSE + + 26 END + + - 48 + + 11 / 70 * CAST ( - - 95 AS INTEGER ) + - - 6 + + 7
----
-9

query I rowsort
SELECT ALL ( - + 3 ) + + 77 + 35
----
109

query I rowsort
SELECT DISTINCT + 38 * + 57 AS col1
----
2166

query I rowsort
SELECT ALL ( - 86 ) - 8 + 0 AS col0
----
-94

query I rowsort
SELECT + 44 + - 20 AS col2
----
24

query I rowsort
SELECT + 20 + 33 * COALESCE ( - ( 18 ), 63 ) * 99 * + - 10 + + + 26 col2
----
588106

query I rowsort
SELECT + ( + ( + - 8 ) ) - + - 35 + ( 79 ) * - - 35
----
2792

query I rowsort
SELECT ALL 32 * - 63 AS col2
----
-2016

query I rowsort
SELECT + 96 + 7 + 0 * - + 19
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6996
SELECT DISTINCT CAST( + + 52 AS SIGNED ) - - SUM( - + 74 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT CAST ( + + 52 AS INTEGER ) - - SUM ( - + 74 ) AS col0
----
-22

query I rowsort
SELECT ALL 6 * - + ( 35 ) * 71
----
-14910

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6999
SELECT 9 DIV - + 27 * - 8 + - 1 col1
----
-1

skipif mysql # not compatible
query I rowsort label-6999
SELECT 9 / - + 27 * - 8 + - 1 col1
----
-1

query II rowsort
SELECT ALL - ( + 18 ) * - 32, + 63 AS col1
----
576
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7001
SELECT + - 98 DIV - 16
----
6

skipif mysql # not compatible
query I rowsort label-7001
SELECT + - 98 / - 16
----
6

query I rowsort
SELECT - + 34 + 28
----
-6

query I rowsort
SELECT - 39 + + 65
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7004
SELECT DISTINCT 31 DIV - 58 * + + 74 + - 70 + - NULLIF ( + 51, CASE 54 WHEN + MIN( DISTINCT - 81 ) * - 46 THEN + 91 * 71 DIV + COUNT( DISTINCT + 75 ) - 84 ELSE - CAST( NULL AS SIGNED ) END ) + + + COUNT( ALL + 48 ) DIV + - COUNT( * )
----
-122

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT 31 / - 58 * + + 74 + - 70 + - NULLIF ( + 51, CASE 54 WHEN + MIN ( DISTINCT - 81 ) * - 46 THEN + 91 * 71 / + COUNT ( DISTINCT + 75 ) - 84 ELSE - CAST ( NULL AS INTEGER ) END ) + + + COUNT ( ALL + 48 ) / + - COUNT ( * )
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7005
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) DIV - - 94 + - 37 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) / - - 94 + - 37 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT DISTINCT - MAX( - 74 ) + - 1
----
73

skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT - MAX ( - 74 ) + - 1
----
73

query I rowsort
SELECT + 28 * + + 93
----
2604

query I rowsort
SELECT ALL - + 89 + + 98 col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT - CASE - 51 WHEN + 54 - 65 * - COUNT( * ) * - ( - - 74 ) / - CASE 1 WHEN + - 50 * ( 47 ) THEN 6 - 73 - + + MAX( + 64 ) WHEN - + 4 * - 1 + + 49 + - + 50 THEN NULL END + COUNT( * ) + + COUNT( * ) + + 59 * + - 95 * + 1 + + 71 / + 78 * 42 THEN + CASE 35 WHEN - 96 + 14 THEN NULLIF ( - 22, + 43 ) + + 5 END / 50 WHEN - 71 THEN 28 + - 70 WHEN - 76 * - 6 THEN - MAX( 83 ) + 31 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7009
SELECT - CASE - 51 WHEN + 54 - 65 * - COUNT ( * ) * - ( - - 74 ) / - CASE 1 WHEN + - 50 * ( 47 ) THEN 6 - 73 - + + MAX ( + 64 ) WHEN - + 4 * - 1 + + 49 + - + 50 THEN NULL END + COUNT ( * ) + + COUNT ( * ) + + 59 * + - 95 * + 1 + + 71 / + 78 * 42 THEN + CASE 35 WHEN - 96 + 14 THEN NULLIF ( - 22, + 43 ) + + 5 END / 50 WHEN - 71 THEN 28 + - 70 WHEN - 76 * - 6 THEN - MAX ( 83 ) + 31 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT COUNT( * ) * - - 91 + - 64
----
27

skipif mysql # not compatible
query I rowsort label-7010
SELECT COUNT ( * ) * - - 91 + - 64
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7011
SELECT ALL + 14 * + 27 col0, + CASE 36 WHEN COUNT( * ) THEN NULL WHEN - 38 THEN COUNT( * ) ELSE - 12 END - - CASE - 57 WHEN - 83 / 7 / MIN( - + 61 ) THEN - 84 * 43 * 18 / - NULLIF ( + 68, + COALESCE ( - COUNT( * ), 76 + + COUNT( * ) ) ) WHEN - - 86 THEN NULL ELSE NULL END - SUM( - + 46 ) * 77
----
378
NULL

skipif mysql # not compatible
query II rowsort label-7011
SELECT ALL + 14 * + 27 col0, + CASE 36 WHEN COUNT ( * ) THEN NULL WHEN - 38 THEN COUNT ( * ) ELSE - 12 END - - CASE - 57 WHEN - 83 / 7 / MIN ( - + 61 ) THEN - 84 * 43 * 18 / - NULLIF ( + 68, + COALESCE ( - COUNT ( * ), 76 + + COUNT ( * ) ) ) WHEN - - 86 THEN NULL ELSE NULL END - SUM ( - + 46 ) * 77
----
378
NULL

query I rowsort
SELECT - 40 * - + 51 * CASE - 65 WHEN + 61 THEN NULL ELSE 5 * - 18 END - - 1 AS col1
----
-183599

query I rowsort
SELECT ALL + 42 + + 41
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7014
SELECT 42 * - - COALESCE ( 62, 92 * + + 10 * - 31 - - ( + - CASE - + 47 WHEN + 70 * + 4 + + 50 + + 30 + + ( - CASE - SUM( NULLIF ( 58, + 75 ) ) WHEN + 64 THEN - ( 24 ) ELSE - - CAST( + + AVG ( ALL ( - 3 ) ) AS SIGNED ) - - COUNT( * ) END ) THEN ( 89 ) * - ( + CASE - 72 WHEN + 21 THEN 87 + COUNT( DISTINCT + 47 + + 5 ) ELSE NULL END ) END ) * - COUNT( * ), 80 + COUNT( DISTINCT + 18 ) ) * - CASE + 71 WHEN COUNT( * ) THEN + 75 - - CAST( NULL AS SIGNED ) DIV 66 ELSE MIN( 32 ) END + + NULLIF ( - 32 + - 87 * + 41, - COUNT( * ) * 67 )
----
-86927

skipif mysql # not compatible
query I rowsort label-7014
SELECT 42 * - - COALESCE ( 62, 92 * + + 10 * - 31 - - ( + - CASE - + 47 WHEN + 70 * + 4 + + 50 + + 30 + + ( - CASE - SUM ( NULLIF ( 58, + 75 ) ) WHEN + 64 THEN - ( 24 ) ELSE - - CAST ( + + AVG ( ALL ( - 3 ) ) AS INTEGER ) - - COUNT ( * ) END ) THEN ( 89 ) * - ( + CASE - 72 WHEN + 21 THEN 87 + COUNT ( DISTINCT + 47 + + 5 ) ELSE NULL END ) END ) * - COUNT ( * ), 80 + COUNT ( DISTINCT + 18 ) ) * - CASE + 71 WHEN COUNT ( * ) THEN + 75 - - CAST ( NULL AS INTEGER ) / 66 ELSE MIN ( 32 ) END + + NULLIF ( - 32 + - 87 * + 41, - COUNT ( * ) * 67 )
----
-86927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7015
SELECT ALL 61 AS col1, 82 + + + NULLIF ( + CAST( NULL AS SIGNED ), + 7 ) - 44 / - NULLIF ( COALESCE ( 82, COUNT( - - 59 ) + - 19 ), - - 60 * - 97 )
----
61
NULL

skipif mysql # not compatible
query II rowsort label-7015
SELECT ALL 61 AS col1, 82 + + + NULLIF ( + CAST ( NULL AS INTEGER ), + 7 ) - 44 / - NULLIF ( COALESCE ( 82, COUNT ( - - 59 ) + - 19 ), - - 60 * - 97 )
----
61
NULL

query II rowsort
SELECT DISTINCT 13 AS col0, 98
----
13
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT 36 * 61 * + COUNT( * )
----
2196

skipif mysql # not compatible
query I rowsort label-7017
SELECT 36 * 61 * + COUNT ( * )
----
2196

query I rowsort
SELECT ALL 51 * + ( + 7 ) AS col2
----
357

query II rowsort
SELECT 17 AS col2, 81 * + 31
----
17
2511

query II rowsort
SELECT - 72 AS col2, 2 * 26
----
-72
52

query I rowsort
SELECT 62 * + 77 AS col2
----
4774

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7023
SELECT 68 + - COUNT( * ) AS col1, 4 col1
----
67
4

skipif mysql # not compatible
query II rowsort label-7023
SELECT 68 + - COUNT ( * ) AS col1, 4 col1
----
67
4

query II rowsort
SELECT - 83, + 28 AS col0
----
-83
28

query I rowsort
SELECT ( - - 73 ) + - + 94 - 29 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT DISTINCT - CASE + MAX( DISTINCT 42 ) WHEN + CASE 36 WHEN + + 48 + MAX( + + 88 ) * - + 79 THEN NULL ELSE - - 12 + - - 4 + - COALESCE ( - 9, - COUNT( * ) * + COUNT( * ) / - 22 + 73 * + ( 93 ) ) END THEN NULL ELSE 65 + - 23 + + COUNT( * ) * + 62 + + + MIN( - 69 ) - - 39 * COUNT( * ) END - CASE WHEN NOT + 88 BETWEEN - 8 + - ( + ( 4 ) - ( 85 ) ) * - 8 AND - 33 THEN 96 ELSE NULL END * + 56 AS col1
----
-5450

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT - CASE + MAX ( DISTINCT 42 ) WHEN + CASE 36 WHEN + + 48 + MAX ( + + 88 ) * - + 79 THEN NULL ELSE - - 12 + - - 4 + - COALESCE ( - 9, - COUNT ( * ) * + COUNT ( * ) / - 22 + 73 * + ( 93 ) ) END THEN NULL ELSE 65 + - 23 + + COUNT ( * ) * + 62 + + + MIN ( - 69 ) - - 39 * COUNT ( * ) END - CASE WHEN NOT + 88 BETWEEN - 8 + - ( + ( 4 ) - ( 85 ) ) * - 8 AND - 33 THEN 96 ELSE NULL END * + 56 AS col1
----
-5450

query I rowsort
SELECT 52 * + + 80 * + 12 AS col0
----
49920

query I rowsort
SELECT DISTINCT 43 - + 44 + - + 21
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-7029
SELECT ALL + 44 DIV - ( - - 86 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL + 44 / - ( - - 86 ) AS col1
----
0

query I rowsort
SELECT + 87 * + 3
----
261

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7032
SELECT + 1 * - MAX( DISTINCT + ( - 76 ) ) AS col1, 42
----
76
42

skipif mysql # not compatible
query II rowsort label-7032
SELECT + 1 * - MAX ( DISTINCT + ( - 76 ) ) AS col1, 42
----
76
42

query I rowsort
SELECT 38 - 22 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7034
SELECT ALL COUNT( - CAST( NULL AS SIGNED ) ) + - - 73
----
73

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) ) + - - 73
----
73

query I rowsort
SELECT NULLIF ( - ( - - ( - - 39 ) ), 55 * + 72 )
----
-39

query I rowsort
SELECT ALL + 92 * - 2 + + 46
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT - CASE - + 96 WHEN 56 - + 40 THEN NULL WHEN - - 67 / + COUNT( * ) + - - 67 THEN - - COUNT( + 44 ) ELSE - + 39 END
----
39

skipif mysql # not compatible
query I rowsort label-7037
SELECT - CASE - + 96 WHEN 56 - + 40 THEN NULL WHEN - - 67 / + COUNT ( * ) + - - 67 THEN - - COUNT ( + 44 ) ELSE - + 39 END
----
39

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7039
SELECT + 33 / + - 66 - - 37 - + - 41 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT + 33 / + - 66 - - 37 - + - 41 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 67 + - - 8
----
75

query II rowsort
SELECT + 45 AS col1, ( - 87 )
----
45
-87

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

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

query I rowsort
SELECT - CASE - 46 WHEN 27 THEN - + 73 * - ( 63 ) WHEN + - 17 THEN NULL ELSE NULL END / - 96 + + 48 * + 41
----
NULL

query II rowsort
SELECT + 6 AS col1, - 12 + + ( - 43 ) AS col0
----
6
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT DISTINCT 14 + + CASE - - 67 WHEN + COUNT( * ) THEN NULL WHEN 10 THEN + COUNT( * ) * - 65 + + + 60 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT 14 + + CASE - - 67 WHEN + COUNT ( * ) THEN NULL WHEN 10 THEN + COUNT ( * ) * - 65 + + + 60 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7046
SELECT 61 AS col2, CAST( + - 78 AS SIGNED ) AS col2
----
61
-78

skipif mysql # not compatible
query II rowsort label-7046
SELECT 61 AS col2, CAST ( + - 78 AS INTEGER ) AS col2
----
61
-78

query I rowsort
SELECT DISTINCT + 38 * + CASE - ( - 51 ) WHEN 4 * 20 THEN NULL ELSE + - 16 - 1 END * + - 20 * - 13
----
-167960

query I rowsort
SELECT DISTINCT 86 - 76 - + ( - + 91 ) * + + 35 + - 6 AS col2
----
3189

query II rowsort
SELECT ALL - COALESCE ( 53, 71 ) AS col1, 61 * 52
----
-53
3172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7050
SELECT ALL - 93 - + MAX( 66 ) / 85 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL - 93 - + MAX ( 66 ) / 85 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT 23 - MAX( - 88 )
----
111

skipif mysql # not compatible
query I rowsort label-7051
SELECT 23 - MAX ( - 88 )
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT - MAX( ( + 35 ) ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-7052
SELECT - MAX ( ( + 35 ) ) col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT - MAX( + + 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-7053
SELECT - MAX ( + + 31 )
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-7054
SELECT 71 * + COUNT( * ) AS col0, 19 * + + 4 - 71
----
71
5

skipif mysql # not compatible
query II rowsort label-7054
SELECT 71 * + COUNT ( * ) AS col0, 19 * + + 4 - 71
----
71
5

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

skipif mysql # not compatible
query I rowsort label-7055
SELECT 58 - - + CAST ( NULL AS REAL ) * + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT 67 - COALESCE ( - ( - - MIN( + - 29 ) ), 94 ) * + - COUNT( * ) col1
----
96

skipif mysql # not compatible
query I rowsort label-7056
SELECT 67 - COALESCE ( - ( - - MIN ( + - 29 ) ), 94 ) * + - COUNT ( * ) col1
----
96

query I rowsort
SELECT DISTINCT 96 * 94
----
9024

query I rowsort
SELECT 60 + - - ( - NULLIF ( + 16, 14 * - 62 + - 39 - + 60 ) )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7059
SELECT - COALESCE ( 70, - ( - COUNT( * ) ), - 9 ) DIV - 68
----
1

skipif mysql # not compatible
query I rowsort label-7059
SELECT - COALESCE ( 70, - ( - COUNT ( * ) ), - 9 ) / - 68
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT - 24 + - COUNT( * ) + + 42 * - + 17 AS col0
----
-739

skipif mysql # not compatible
query I rowsort label-7060
SELECT - 24 + - COUNT ( * ) + + 42 * - + 17 AS col0
----
-739

query I rowsort
SELECT ALL - 12 + 66 AS col2
----
54

query I rowsort
SELECT 53 + - 60 AS col0
----
-7

query I rowsort
SELECT + NULLIF ( + + 7, - + 30 + + 86 ) - - + 0 + - 35 * + 48 * + - 60
----
100807

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7064
SELECT ALL - CAST( NULL AS DECIMAL ) + - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL - CAST ( NULL AS REAL ) + - 57 AS col2
----
NULL

query III rowsort
SELECT ALL - + 10 + 86 AS col1, + 98 + + + 47 + 8, - ( - + 97 ) AS col1
----
76
153
97

query I rowsort
SELECT - ( - 69 ) + 29
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7067
SELECT ALL + ( - + 70 ) * 85 + 50 - 12 - - NULLIF ( - - 35, + + 2 * + 85 * 22 + + 18 ) + - 99 * - COUNT( * ) * - 85 + 8 DIV + 18 * + + COUNT( DISTINCT + - ( - - 25 ) ) * + - 95
----
-14292

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL + ( - + 70 ) * 85 + 50 - 12 - - NULLIF ( - - 35, + + 2 * + 85 * 22 + + 18 ) + - 99 * - COUNT ( * ) * - 85 + 8 / + 18 * + + COUNT ( DISTINCT + - ( - - 25 ) ) * + - 95
----
-14292

onlyif mysql # DIV for integer division: 
query I rowsort label-7068
SELECT + 18 DIV - 36 + + 65 + - 27 + + 59 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-7068
SELECT + 18 / - 36 + + 65 + - 27 + + 59 AS col1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7069
SELECT DISTINCT + 27 DIV - MIN( 98 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT + 27 / - MIN ( 98 ) AS col0
----
0

query I rowsort
SELECT + 15 + - 19
----
-4

query I rowsort
SELECT + 63 * - COALESCE ( - 23, 45 * - 81 )
----
1449

query I rowsort
SELECT + 81 + - 22 col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT DISTINCT SUM( DISTINCT 32 ) * + - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT SUM ( DISTINCT 32 ) * + - COUNT ( * )
----
-32

query I rowsort
SELECT + CASE - 6 WHEN + 84 THEN 51 * 84 + + 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT + COUNT( * ) * + 27 * 90 AS col2
----
2430

skipif mysql # not compatible
query I rowsort label-7075
SELECT + COUNT ( * ) * + 27 * 90 AS col2
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT + 4 - - COUNT( * ) - - 24
----
29

skipif mysql # not compatible
query I rowsort label-7076
SELECT + 4 - - COUNT ( * ) - - 24
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-7077
SELECT COUNT( * ) col1, 76
----
1
76

skipif mysql # not compatible
query II rowsort label-7077
SELECT COUNT ( * ) col1, 76
----
1
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7078
SELECT ALL 9 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL 9 / 80
----
0

query II rowsort
SELECT ALL + 16 col0, - 55
----
16
-55

query I rowsort
SELECT - COALESCE ( + ( + 26 ), 42 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-7081
SELECT ALL 26 col0, COUNT( * ) * - 68 AS col1
----
26
-68

skipif mysql # not compatible
query II rowsort label-7081
SELECT ALL 26 col0, COUNT ( * ) * - 68 AS col1
----
26
-68

query I rowsort
SELECT ALL + 89 * - 69 * - 58 * - 42
----
-14959476

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT + CASE + + COUNT( * ) WHEN + + 26 * + ( + 32 ) * 96 THEN - 29 + 34 WHEN - 26 THEN NULL END + 24 + - 35 * - + 39 * - - 59 + + 82 - + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7083
SELECT + CASE + + COUNT ( * ) WHEN + + 26 * + ( + 32 ) * 96 THEN - 29 + 34 WHEN - 26 THEN NULL END + 24 + - 35 * - + 39 * - - 59 + + 82 - + 1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7084
SELECT ALL 73 DIV - 44 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL 73 / - 44 AS col2
----
-1

query I rowsort
SELECT DISTINCT 67 * - 51 AS col0
----
-3417

query I rowsort
SELECT ALL + 90 + + 40
----
130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT + MAX( ALL + NULLIF ( - 62, + - 60 * + 46 ) ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-7088
SELECT + MAX ( ALL + NULLIF ( - 62, + - 60 * + 46 ) ) AS col1
----
-62

query I rowsort
SELECT ALL + 25 + 56 AS col2
----
81

query I rowsort
SELECT DISTINCT - ( + COALESCE ( 44, + 66, + 60 ) )
----
-44

query II rowsort
SELECT - + 14, 51 col2
----
-14
51

query I rowsort
SELECT ALL 19 + + 78 * + + 41 AS col2
----
3217

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT DISTINCT - 22 + + - COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT - 22 + + - COUNT ( * ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7094
SELECT COALESCE ( CASE - - 51 WHEN + ( + - COUNT( * ) ) + COUNT( * ) THEN NULL WHEN + + 92 + - CAST( NULL AS SIGNED ) * + - 28 THEN NULL WHEN + 75 * - 98 THEN 52 + + - 65 + 44 ELSE NULL END, - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-7094
SELECT COALESCE ( CASE - - 51 WHEN + ( + - COUNT ( * ) ) + COUNT ( * ) THEN NULL WHEN + + 92 + - CAST ( NULL AS INTEGER ) * + - 28 THEN NULL WHEN + 75 * - 98 THEN 52 + + - 65 + 44 ELSE NULL END, - 94 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7095
SELECT - 85 / + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7095
SELECT - 85 / + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 2 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7096
SELECT - + 9 - 85 + CAST( - + MIN( ALL - - 83 ) AS SIGNED ) * + 88
----
-7398

skipif mysql # not compatible
query I rowsort label-7096
SELECT - + 9 - 85 + CAST ( - + MIN ( ALL - - 83 ) AS INTEGER ) * + 88
----
-7398

query II rowsort
SELECT 79 col0, 18 AS col0
----
79
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7098
SELECT DISTINCT + - ( 43 ) DIV - MAX( DISTINCT - 80 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT + - ( 43 ) / - MAX ( DISTINCT - 80 ) AS col0
----
0

query I rowsort
SELECT - - 34 - ( + 71 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7100
SELECT - NULLIF ( - 80, CAST( NULL AS SIGNED ) ) col2, - 57 DIV COUNT( * )
----
80
-57

skipif mysql # not compatible
query II rowsort label-7100
SELECT - NULLIF ( - 80, CAST ( NULL AS INTEGER ) ) col2, - 57 / COUNT ( * )
----
80
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-7101
SELECT DISTINCT - - 49 DIV 83 + 61 - - - 80 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT - - 49 / 83 + 61 - - - 80 AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7102
SELECT - CASE NULLIF ( - ( 43 ), - - CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) + - - 24 / + ( - 96 ) ) WHEN + - 5 THEN - 78 + - ( - CAST( - COUNT( DISTINCT NULLIF ( - 1, - 84 + + - NULLIF ( 16, - - 78 ) ) ) AS SIGNED ) ) + + 50 * 41 * + 73 * + - 43 WHEN 6 / + 19 * - + 90 * + - 33 * - MAX( DISTINCT - 15 * 4 ) + + ( 10 ) * 74 THEN 9 END * + AVG ( ALL 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7102
SELECT - CASE NULLIF ( - ( 43 ), - - CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + - - 24 / + ( - 96 ) ) WHEN + - 5 THEN - 78 + - ( - CAST ( - COUNT ( DISTINCT NULLIF ( - 1, - 84 + + - NULLIF ( 16, - - 78 ) ) ) AS INTEGER ) ) + + 50 * 41 * + 73 * + - 43 WHEN 6 / + 19 * - + 90 * + - 33 * - MAX ( DISTINCT - 15 * 4 ) + + ( 10 ) * 74 THEN 9 END * + AVG ( ALL 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7103
SELECT + + 93 col1, - 26 * ( MIN( ALL + 19 ) ) col0
----
93
-494

skipif mysql # not compatible
query II rowsort label-7103
SELECT + + 93 col1, - 26 * ( MIN ( ALL + 19 ) ) col0
----
93
-494

query II rowsort
SELECT ALL + 26, 97 col1
----
26
97

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

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

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

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

query II rowsort
SELECT ( 0 ) AS col2, 19 AS col1
----
0
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7108
SELECT - 28 DIV + - 15
----
1

skipif mysql # not compatible
query I rowsort label-7108
SELECT - 28 / + - 15
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7109
SELECT ALL - COUNT( * ) DIV - - COALESCE ( + - 37, 74 * ( - 35 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL - COUNT ( * ) / - - COALESCE ( + - 37, 74 * ( - 35 ) )
----
0

query I rowsort
SELECT - 4 + + 88 + + 91 AS col0
----
175

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7112
SELECT ( - MAX( COALESCE ( - 43, - 29 ) ) ) DIV + ( 25 ) - + - 46 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-7112
SELECT ( - MAX ( COALESCE ( - 43, - 29 ) ) ) / + ( 25 ) - + - 46 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT + COUNT( ( + 65 ) ) * - 18 * + 99 * - 56 AS col1
----
99792

skipif mysql # not compatible
query I rowsort label-7113
SELECT + COUNT ( ( + 65 ) ) * - 18 * + 99 * - 56 AS col1
----
99792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7114
SELECT DISTINCT + ( + CAST( - - 64 AS SIGNED ) ) col0
----
64

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT + ( + CAST ( - - 64 AS INTEGER ) ) col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7115
SELECT ALL SUM( - 37 ) * - MAX( ALL - 67 ) + - 91 col2, - ( + CAST( NULL AS SIGNED ) ) AS col2, COUNT( * ) DIV - COUNT( * ) AS col0
----
-2570
NULL
-1

skipif mysql # not compatible
query III rowsort label-7115
SELECT ALL SUM ( - 37 ) * - MAX ( ALL - 67 ) + - 91 col2, - ( + CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) / - COUNT ( * ) AS col0
----
-2570
NULL
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7117
SELECT ALL 32 * 17, - SUM( 27 ) + + CAST( - + 77 AS SIGNED ) AS col0
----
544
-104

skipif mysql # not compatible
query II rowsort label-7117
SELECT ALL 32 * 17, - SUM ( 27 ) + + CAST ( - + 77 AS INTEGER ) AS col0
----
544
-104

query I rowsort
SELECT DISTINCT ( - 59 ) * 36 + 0 + + 1
----
-2123

query II rowsort
SELECT ALL 88 * - - 4 + 40 * - + 83, 96 AS col2
----
-2968
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT + 7 * + - 39 + - MAX( DISTINCT - + 94 ) + + + 31 * 87 AS col2
----
2518

skipif mysql # not compatible
query I rowsort label-7120
SELECT + 7 * + - 39 + - MAX ( DISTINCT - + 94 ) + + + 31 * 87 AS col2
----
2518

query I rowsort
SELECT + 13 * - 69 AS col2
----
-897

query I rowsort
SELECT + 29 - + 59 AS col1
----
-30

query I rowsort
SELECT ALL NULLIF ( - 0, 15 )
----
0

query I rowsort
SELECT + 56 + 71
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7125
SELECT ALL + - 9 * - CAST( NULL AS SIGNED ) * + + 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL + - 9 * - CAST ( NULL AS INTEGER ) * + + 18 AS col1
----
NULL

query II rowsort
SELECT 92 + 19, + 95 col1
----
111
95

query I rowsort
SELECT - 79 * - 37
----
2923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7128
SELECT + 22 + - - COALESCE ( + - MIN( DISTINCT - - 45 ), MAX( DISTINCT - + 81 ) * - 12 * - - 18 + + AVG ( ALL - 67 ) * + 52 DIV - SUM( DISTINCT 59 ) * - 0 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7128
SELECT + 22 + - - COALESCE ( + - MIN ( DISTINCT - - 45 ), MAX ( DISTINCT - + 81 ) * - 12 * - - 18 + + AVG ( ALL - 67 ) * + 52 / - SUM ( DISTINCT 59 ) * - 0 ) AS col1
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-7129
SELECT 82 - - 59 * + 61 * + - 89 * + - NULLIF ( + - 51, 22 ), - 64 DIV + 93 AS col0
----
-16335779
0

skipif mysql # not compatible
query II rowsort label-7129
SELECT 82 - - 59 * + 61 * + - 89 * + - NULLIF ( + - 51, 22 ), - 64 / + 93 AS col0
----
-16335779
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT - + CAST( 94 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-7130
SELECT - + CAST ( 94 AS INTEGER )
----
-94

query I rowsort
SELECT - 36 + - - 23 * + + 42 AS col2
----
930

onlyif mysql # aggregate syntax: 
query II rowsort label-7132
SELECT - 6 - - 27 AS col2, COUNT( * ) col2
----
21
1

skipif mysql # not compatible
query II rowsort label-7132
SELECT - 6 - - 27 AS col2, COUNT ( * ) col2
----
21
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7133
SELECT 31 + + + COUNT( * ), 47 + + 66 AS col1
----
32
113

skipif mysql # not compatible
query II rowsort label-7133
SELECT 31 + + + COUNT ( * ), 47 + + 66 AS col1
----
32
113

query I rowsort
SELECT ALL NULLIF ( - + 37, - 31 * - - ( + 2 ) + - 55 ) * + + 22 col0
----
-814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7135
SELECT DISTINCT - 75 * + CASE - 48 WHEN + 37 * - - 72 + - 37 * - + 60 * + 43 THEN - + CASE 60 WHEN + - COUNT( * ) THEN 60 WHEN 58 THEN + - COUNT( * ) + + ( - 91 ) WHEN COALESCE ( - 45, + + CAST( - 0 AS SIGNED ) ) - + 95 / 73 THEN NULL ELSE NULL END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT - 75 * + CASE - 48 WHEN + 37 * - - 72 + - 37 * - + 60 * + 43 THEN - + CASE 60 WHEN + - COUNT ( * ) THEN 60 WHEN 58 THEN + - COUNT ( * ) + + ( - 91 ) WHEN COALESCE ( - 45, + + CAST ( - 0 AS INTEGER ) ) - + 95 / 73 THEN NULL ELSE NULL END ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 37 * 15 + + 58
----
613

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT + 95 * + COUNT( * ) * + - 65 AS col0
----
-6175

skipif mysql # not compatible
query I rowsort label-7137
SELECT + 95 * + COUNT ( * ) * + - 65 AS col0
----
-6175

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7139
SELECT DISTINCT - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7140
SELECT 89 * 87 * - 95 * + - 17 + + + NULLIF ( - 48, + COUNT( * ) ) * + - ( + CAST( 98 AS SIGNED ) )
----
12509649

skipif mysql # not compatible
query I rowsort label-7140
SELECT 89 * 87 * - 95 * + - 17 + + + NULLIF ( - 48, + COUNT ( * ) ) * + - ( + CAST ( 98 AS INTEGER ) )
----
12509649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7141
SELECT + CAST( NULL AS SIGNED ) * 88 * - 67 + - + AVG ( ALL + 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7141
SELECT + CAST ( NULL AS INTEGER ) * 88 * - 67 + - + AVG ( ALL + 2 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 7 * - + 90 AS col1
----
630

query I rowsort
SELECT ALL - NULLIF ( + + 95, - - 84 ) * - ( - + 73 )
----
-6935

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

query I rowsort
SELECT ALL + 35 + + 71 * + 73 + + 90 * - 69
----
-992

query I rowsort
SELECT 71 * ( 69 )
----
4899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7147
SELECT ALL 38 / + ( + CAST( NULL AS SIGNED ) ) * - 27 * + MIN( - 70 ) * SUM( ALL 30 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL 38 / + ( + CAST ( NULL AS INTEGER ) ) * - 27 * + MIN ( - 70 ) * SUM ( ALL 30 ) col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7149
SELECT ALL + 27 + 43 + + 49 * - 57 + - 5 + - - 48 * + CASE WHEN ( - CAST( 76 AS SIGNED ) ) IS NULL THEN - 13 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL + 27 + 43 + + 49 * - 57 + - 5 + - - 48 * + CASE WHEN ( - CAST ( 76 AS INTEGER ) ) IS NULL THEN - 13 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 72 + + + 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT + SUM( ALL 50 ) + 34
----
84

skipif mysql # not compatible
query I rowsort label-7151
SELECT + SUM ( ALL 50 ) + 34
----
84

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

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

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

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

query I rowsort
SELECT ( COALESCE ( + + 93, + - 80, - + 10 ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT COUNT( + 59 ) + + - 82 + + 70 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-7155
SELECT COUNT ( + 59 ) + + - 82 + + 70 AS col1
----
-11

query I rowsort
SELECT 99 * ( 47 )
----
4653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7157
SELECT + 43 / - 24 * - + 10 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7157
SELECT + 43 / - 24 * - + 10 + + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 15, - 48 col0
----
15
-48

query I rowsort
SELECT 56 - 36
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT - COUNT( 47 ) * + + 66 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7160
SELECT - COUNT ( 47 ) * + + 66 AS col1
----
-66

query I rowsort
SELECT 15 * - 55 AS col1
----
-825

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

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

query II rowsort
SELECT - 45 AS col1, - 0 * + 87
----
-45
0

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

skipif mysql # not compatible
query I rowsort label-7164
SELECT COUNT ( * ) / 22 col2
----
0

query I rowsort
SELECT 42 * + 56 * ( - 17 ) * - 80
----
3198720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7166
SELECT ALL + 88 * + CAST( NULL AS SIGNED ) + + 12 + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL + 88 * + CAST ( NULL AS INTEGER ) + + 12 + - 32
----
NULL

query I rowsort
SELECT DISTINCT 21 * ( 25 ) AS col0
----
525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7168
SELECT COUNT( DISTINCT 49 ) DIV - - COUNT( * ) + - + 46 - - 87 * + + 25 * - COUNT( * ) DIV + 1
----
-2220

skipif mysql # not compatible
query I rowsort label-7168
SELECT COUNT ( DISTINCT 49 ) / - - COUNT ( * ) + - + 46 - - 87 * + + 25 * - COUNT ( * ) / + 1
----
-2220

query I rowsort
SELECT 71 - - + 0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7170
SELECT SUM( 35 ) AS col2, 8
----
35
8

skipif mysql # not compatible
query II rowsort label-7170
SELECT SUM ( 35 ) AS col2, 8
----
35
8

query I rowsort
SELECT ALL 6 * - + 48 + 96 AS col1
----
-192

onlyif mysql # aggregate syntax: 
query II rowsort label-7172
SELECT + COUNT( * ) AS col0, 57 + + 94 * COUNT( * ) AS col0
----
1
151

skipif mysql # not compatible
query II rowsort label-7172
SELECT + COUNT ( * ) AS col0, 57 + + 94 * COUNT ( * ) AS col0
----
1
151

onlyif mysql # aggregate syntax: 
query II rowsort label-7173
SELECT 58 * + 20 AS col2, COALESCE ( ( - - 71 ), 82 * 91 * + 41 ) + - - NULLIF ( COALESCE ( 73, 49, + + 41 ), + - COUNT( * ) ) * + + 35 * + 2 - - 17
----
1160
5198

skipif mysql # not compatible
query II rowsort label-7173
SELECT 58 * + 20 AS col2, COALESCE ( ( - - 71 ), 82 * 91 * + 41 ) + - - NULLIF ( COALESCE ( 73, 49, + + 41 ), + - COUNT ( * ) ) * + + 35 * + 2 - - 17
----
1160
5198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7174
SELECT CAST( - 85 AS SIGNED ) + + + 95 + + COALESCE ( - MAX( - 38 ), - - 9, 40 * - + ( + + COUNT( * ) ) )
----
48

skipif mysql # not compatible
query I rowsort label-7174
SELECT CAST ( - 85 AS INTEGER ) + + + 95 + + COALESCE ( - MAX ( - 38 ), - - 9, 40 * - + ( + + COUNT ( * ) ) )
----
48

query I rowsort
SELECT ALL - NULLIF ( 34, 63 * 34 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7176
SELECT - 74 * + 8 + + NULLIF ( - ( - 38 ), - 82 + + CASE - + 12 WHEN + MAX( DISTINCT 98 ) + + 36 THEN + 99 / - 70 * + + 79 - + 17 + + - COALESCE ( 13, - 42 ) / - 54 WHEN - - 71 + + 15 + COUNT( ALL - 17 ) + 91 * - + 23 / - + COALESCE ( CAST( NULL AS SIGNED ), + 23 + - 67, CASE 91 WHEN 85 THEN COUNT( * ) WHEN 6 THEN COUNT( * ) ELSE NULL END + + SUM( DISTINCT - 7 ) * 96 ) + CASE 30 WHEN - 59 * 59 + 46 THEN 31 END THEN - CAST( 70 AS SIGNED ) * + CASE 91 + - 71 * 40 WHEN COUNT( * ) THEN 61 + 96 WHEN + 27 / + 21 THEN 94 END END * 75 )
----
-554

skipif mysql # not compatible
query I rowsort label-7176
SELECT - 74 * + 8 + + NULLIF ( - ( - 38 ), - 82 + + CASE - + 12 WHEN + MAX ( DISTINCT 98 ) + + 36 THEN + 99 / - 70 * + + 79 - + 17 + + - COALESCE ( 13, - 42 ) / - 54 WHEN - - 71 + + 15 + COUNT ( ALL - 17 ) + 91 * - + 23 / - + COALESCE ( CAST ( NULL AS INTEGER ), + 23 + - 67, CASE 91 WHEN 85 THEN COUNT ( * ) WHEN 6 THEN COUNT ( * ) ELSE NULL END + + SUM ( DISTINCT - 7 ) * 96 ) + CASE 30 WHEN - 59 * 59 + 46 THEN 31 END THEN - CAST ( 70 AS INTEGER ) * + CASE 91 + - 71 * 40 WHEN COUNT ( * ) THEN 61 + 96 WHEN + 27 / + 21 THEN 94 END END * 75 )
----
-554

query I rowsort
SELECT 6 - 59 - ( 95 ) AS col0
----
-148

onlyif mysql # aggregate syntax: 
query II rowsort label-7178
SELECT COUNT( * ), 60 * + 63 AS col0
----
1
3780

skipif mysql # not compatible
query II rowsort label-7178
SELECT COUNT ( * ), 60 * + 63 AS col0
----
1
3780

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT DISTINCT 8 * - NULLIF ( + COUNT( * ), + 67 * 68 - + + 67 + + 92 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT 8 * - NULLIF ( + COUNT ( * ), + 67 * 68 - + + 67 + + 92 ) AS col2
----
-8

query I rowsort
SELECT ALL - 41 - 65
----
-106

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

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

query I rowsort
SELECT ALL - 93 * - + 24
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT - 77 - + SUM( + 75 ) * - SUM( + 12 ) + - + 59 - - 48 + - 32 AS col2
----
780

skipif mysql # not compatible
query I rowsort label-7183
SELECT - 77 - + SUM ( + 75 ) * - SUM ( + 12 ) + - + 59 - - 48 + - 32 AS col2
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT - 82 * NULLIF ( + 85, - COUNT( * ) ) AS col2
----
-6970

skipif mysql # not compatible
query I rowsort label-7184
SELECT - 82 * NULLIF ( + 85, - COUNT ( * ) ) AS col2
----
-6970

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT - + ( - COUNT( * ) ) + 59 + + - 71 * - 62 * - 91 + + + 36 AS col1
----
-400486

skipif mysql # not compatible
query I rowsort label-7185
SELECT - + ( - COUNT ( * ) ) + 59 + + - 71 * - 62 * - 91 + + + 36 AS col1
----
-400486

onlyif mysql # DIV for integer division: 
query I rowsort label-7186
SELECT + + 16 DIV - 2
----
-8

skipif mysql # not compatible
query I rowsort label-7186
SELECT + + 16 / - 2
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-7187
SELECT DISTINCT + + 38 DIV + 68 + + + 10 - - 18 AS col2, - 29 * + - 77 * + 20
----
28
44660

skipif mysql # not compatible
query II rowsort label-7187
SELECT DISTINCT + + 38 / + 68 + + + 10 - - 18 AS col2, - 29 * + - 77 * + 20
----
28
44660

query II rowsort
SELECT ALL + 78, 30 + - - 16 + - 87 * 99 AS col2
----
78
-8567

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT 47 * + 53 + COUNT( * )
----
2492

skipif mysql # not compatible
query I rowsort label-7189
SELECT 47 * + 53 + COUNT ( * )
----
2492

query I rowsort
SELECT - 27 - - + 54 AS col2
----
27

query II rowsort
SELECT DISTINCT - 42 AS col0, - 77 + - ( - 44 ) * - + 58
----
-42
-2629

query I rowsort
SELECT DISTINCT 80 * + ( - - 96 ) AS col2
----
7680

query I rowsort
SELECT + 68 + - - ( 96 ) AS col1
----
164

query I rowsort
SELECT - 7 + 20 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT + MAX( DISTINCT 18 ) - COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-7195
SELECT + MAX ( DISTINCT 18 ) - COUNT ( * ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT + CASE 62 WHEN - ( 75 ) THEN NULL WHEN + - 12 * - + 63 * - 86 THEN 59 + + SUM( ALL 63 ) ELSE NULL END + - - CASE - 14 WHEN - + 35 / + NULLIF ( - 45, 0 ) THEN NULL WHEN 2 + + 24 THEN - 69 * + - 93 + 12 * + 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7196
SELECT + CASE 62 WHEN - ( 75 ) THEN NULL WHEN + - 12 * - + 63 * - 86 THEN 59 + + SUM ( ALL 63 ) ELSE NULL END + - - CASE - 14 WHEN - + 35 / + NULLIF ( - 45, 0 ) THEN NULL WHEN 2 + + 24 THEN - 69 * + - 93 + 12 * + 36 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT + MAX( 30 ) + - 12 + - 84 * + 32 * - + 96 * + + 10 AS col2
----
2580498

skipif mysql # not compatible
query I rowsort label-7198
SELECT + MAX ( 30 ) + - 12 + - 84 * + 32 * - + 96 * + + 10 AS col2
----
2580498

query I rowsort
SELECT ALL 62 * - - 77 AS col2
----
4774

query I rowsort
SELECT DISTINCT 74 + - 46 + - 88 * + 59 AS col2
----
-5164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7201
SELECT ALL 33 DIV + 56 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL 33 / + 56 + - COUNT ( * )
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7203
SELECT + ( + 8 ) * + 36 + - ( 80 ) DIV NULLIF ( - + CAST( + CAST( + + 81 AS SIGNED ) AS SIGNED ), + COUNT( * ) )
----
288

skipif mysql # not compatible
query I rowsort label-7203
SELECT + ( + 8 ) * + 36 + - ( 80 ) / NULLIF ( - + CAST ( + CAST ( + + 81 AS INTEGER ) AS INTEGER ), + COUNT ( * ) )
----
288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7204
SELECT ALL 3 * + + 70 * + - COALESCE ( 24, - CASE + 35 WHEN - ( - - 61 ) THEN - 9 * - MAX( ALL 6 ) END DIV 38, - 5 ) AS col1
----
-5040

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL 3 * + + 70 * + - COALESCE ( 24, - CASE + 35 WHEN - ( - - 61 ) THEN - 9 * - MAX ( ALL 6 ) END / 38, - 5 ) AS col1
----
-5040

onlyif mysql # DIV for integer division: 
query I rowsort label-7205
SELECT ALL + ( + 7 ) * 34 - - 71 DIV 56 * - 42 AS col1
----
196

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL + ( + 7 ) * 34 - - 71 / 56 * - 42 AS col1
----
196

query III rowsort
SELECT ( 45 ) AS col1, 38 col0, + - 77 AS col2
----
45
38
-77

query I rowsort
SELECT ALL 67 * - 12
----
-804

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT + MAX( - 47 ) + + 37
----
-10

skipif mysql # not compatible
query I rowsort label-7208
SELECT + MAX ( - 47 ) + + 37
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ALL + CASE + COUNT( * ) WHEN 57 THEN + 29 * + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL + CASE + COUNT ( * ) WHEN 57 THEN + 29 * + 12 END
----
NULL

query I rowsort
SELECT - 55 + 69 AS col2
----
14

query I rowsort
SELECT - 13 * - 52 AS col1
----
676

query I rowsort
SELECT - 19 * 25 + - + 72
----
-547

query II rowsort
SELECT ALL + - 36 * - + 54 AS col2, - 76 AS col2
----
1944
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7214
SELECT + + CAST( 31 AS SIGNED ) * - 0 col1
----
0

skipif mysql # not compatible
query I rowsort label-7214
SELECT + + CAST ( 31 AS INTEGER ) * - 0 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT - SUM( + 34 ) + - - NULLIF ( + 74, COUNT( * ) ) + + 69 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-7215
SELECT - SUM ( + 34 ) + - - NULLIF ( + 74, COUNT ( * ) ) + + 69 AS col2
----
109

query I rowsort
SELECT + 15 * 88 * + + 45 * - 33 + 96
----
-1960104

query I rowsort
SELECT ALL 86 * - 98 * - 88 * + ( - 25 ) AS col0
----
-18541600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7218
SELECT ALL - - 31 * + + COUNT( * ) DIV + + 79 + + COUNT( ALL 45 ) - - 55 + 82 DIV - - 88 + + 90
----
146

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL - - 31 * + + COUNT ( * ) / + + 79 + + COUNT ( ALL 45 ) - - 55 + 82 / - - 88 + + 90
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-7219
SELECT - - ( 21 ), + 5 + - - COUNT( * ) + ( - 7 ) * 50 AS col1
----
21
-344

skipif mysql # not compatible
query II rowsort label-7219
SELECT - - ( 21 ), + 5 + - - COUNT ( * ) + ( - 7 ) * 50 AS col1
----
21
-344

onlyif mysql # DIV for integer division: 
query I rowsort label-7220
SELECT + 82 DIV + - 51 + - 30 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7220
SELECT + 82 / + - 51 + - 30 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-7221
SELECT - 52 * + 61 AS col1, 21 - + 59 * MAX( ALL 52 ) + + 71 AS col0
----
-3172
-2976

skipif mysql # not compatible
query II rowsort label-7221
SELECT - 52 * + 61 AS col1, 21 - + 59 * MAX ( ALL 52 ) + + 71 AS col0
----
-3172
-2976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7222
SELECT - - CAST( NULL AS SIGNED ) * 6 * - 73 * 79 + 2 * - + 16 * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7222
SELECT - - CAST ( NULL AS INTEGER ) * 6 * - 73 * 79 + 2 * - + 16 * - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT - - 0 / + CASE - + 80 WHEN + - MAX( ALL 61 ) - - 90 THEN - MAX( + 71 ) + - - MAX( ( - - 77 ) ) + + - ( 5 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7223
SELECT - - 0 / + CASE - + 80 WHEN + - MAX ( ALL 61 ) - - 90 THEN - MAX ( + 71 ) + - - MAX ( ( - - 77 ) ) + + - ( 5 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + + 94 + 53 AS col0
----
147

query II rowsort
SELECT 34 AS col0, + 34 + + COALESCE ( - + 58, - 46, 65 )
----
34
-24

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

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

query I rowsort
SELECT ALL 22 + 63
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT - COUNT( * ) * - ( - 27 ) * + 22 * - COUNT( * ) AS col1
----
594

skipif mysql # not compatible
query I rowsort label-7228
SELECT - COUNT ( * ) * - ( - 27 ) * + 22 * - COUNT ( * ) AS col1
----
594

query II rowsort
SELECT ALL + 3 + - 83 + - - 81, 41 - - 61 AS col0
----
1
102

query II rowsort
SELECT 53 AS col0, + 5
----
53
5

query I rowsort
SELECT - COALESCE ( + + 47, 59 * + 79 ) AS col2
----
-47

query I rowsort
SELECT - 15 - + - 37
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7233
SELECT 70 + - 86 * - + NULLIF ( 90, - 63 + - 16 ) * - 36 + - + CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7233
SELECT 70 + - 86 * - + NULLIF ( 90, - 63 + - 16 ) * - 36 + - + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 40 - + 47 AS col2
----
-87

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

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

query I rowsort
SELECT DISTINCT ( - 89 ) * - 31 * 80
----
220720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7237
SELECT ALL COUNT( * ) - + - 69 + - 11 * + - ( - + 85 ) * - 49 * - 88 + - CAST( NULL AS SIGNED ) + CASE - COALESCE ( - 60, + - SUM( + + 5 ) * - 57 * - - 45 - + 44 ) WHEN - COUNT( * ) THEN - 3 * + COUNT( * ) + + 52 WHEN + ( + + COUNT( * ) ) THEN - 16 ELSE + - 65 + 7 END + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL COUNT ( * ) - + - 69 + - 11 * + - ( - + 85 ) * - 49 * - 88 + - CAST ( NULL AS INTEGER ) + CASE - COALESCE ( - 60, + - SUM ( + + 5 ) * - 57 * - - 45 - + 44 ) WHEN - COUNT ( * ) THEN - 3 * + COUNT ( * ) + + 52 WHEN + ( + + COUNT ( * ) ) THEN - 16 ELSE + - 65 + 7 END + 94
----
NULL

query II rowsort
SELECT ( - 75 ) * - + 35 AS col1, 65 AS col1
----
2625
65

query I rowsort
SELECT 86 * 69 * - NULLIF ( - 28, - 48 / - - 2 * - 34 ) AS col2
----
166152

onlyif mysql # DIV for integer division: 
query II rowsort label-7240
SELECT + 86, 39 DIV 89 * 98 AS col0
----
86
0

skipif mysql # not compatible
query II rowsort label-7240
SELECT + 86, 39 / 89 * 98 AS col0
----
86
0

query I rowsort
SELECT + 64 + - 67 + - 93 + - - 32 * 91 AS col2
----
2816

onlyif mysql # DIV for integer division: 
query I rowsort label-7242
SELECT 72 DIV 24
----
3

skipif mysql # not compatible
query I rowsort label-7242
SELECT 72 / 24
----
3

query I rowsort
SELECT - 73 * 36 + - 91 * 38
----
-6086

query I rowsort
SELECT 3 * 7 AS col2
----
21

query I rowsort
SELECT DISTINCT + 83 * - 35 * + - 72 + 61 AS col2
----
209221

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7246
SELECT ALL CASE - - 75 WHEN - + CAST( + 61 AS DECIMAL ) THEN NULL ELSE - + 8 + + - COUNT( DISTINCT + 44 ) END * + 64 + + + 7
----
-569

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL CASE - - 75 WHEN - + CAST ( + 61 AS REAL ) THEN NULL ELSE - + 8 + + - COUNT ( DISTINCT + 44 ) END * + 64 + + + 7
----
-569

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT DISTINCT 74 + + - COUNT( * ) + + SUM( - + 25 ) * + 36 * - + 77 * + COALESCE ( - MIN( ALL - 82 ), - 42 + + 94 * - - 28 - + 12 ) * + 8 col0
----
45460873

skipif mysql # not compatible
query I rowsort label-7247
SELECT DISTINCT 74 + + - COUNT ( * ) + + SUM ( - + 25 ) * + 36 * - + 77 * + COALESCE ( - MIN ( ALL - 82 ), - 42 + + 94 * - - 28 - + 12 ) * + 8 col0
----
45460873

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT + 23 * - + 34 * - 88 + + ( + 2 ) * + ( - COUNT( * ) ) AS col2
----
68814

skipif mysql # not compatible
query I rowsort label-7248
SELECT + 23 * - + 34 * - 88 + + ( + 2 ) * + ( - COUNT ( * ) ) AS col2
----
68814

query I rowsort
SELECT ALL - ( + + 23 ) + 4
----
-19

query II rowsort
SELECT + 60, - 83 AS col1
----
60
-83

query I rowsort
SELECT 61 + - 56 * + 56 + + 59 AS col2
----
-3016

query I rowsort
SELECT ALL - 9 + + + 59 AS col1
----
50

query I rowsort
SELECT - 8 * 62 * - ( 91 ) * + 67 + + + 25 col0
----
3024137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7254
SELECT ALL - 18 + ( 47 ) - CAST( NULL AS SIGNED ) * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL - 18 + ( 47 ) - CAST ( NULL AS INTEGER ) * - 21
----
NULL

query I rowsort
SELECT ALL 86 + + ( + 71 )
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT DISTINCT + 26 * - - ( + COALESCE ( COUNT( * ), 6, + 13 * + 5 ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT + 26 * - - ( + COALESCE ( COUNT ( * ), 6, + 13 * + 5 ) ) AS col2
----
26

query I rowsort
SELECT DISTINCT 4 + + 81 AS col1
----
85

query I rowsort
SELECT 71 + + 83
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT ALL + 71 + - 14 DIV 68 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL + 71 + - 14 / 68 AS col1
----
71

query I rowsort
SELECT 77 * + 9 AS col2
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT CASE - 31 WHEN - COUNT( * ) THEN - + 3 / + 98 * - ( 1 ) ELSE NULL END + 33 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7261
SELECT CASE - 31 WHEN - COUNT ( * ) THEN - + 3 / + 98 * - ( 1 ) ELSE NULL END + 33 col0
----
NULL

query I rowsort
SELECT 61 + 92
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7263
SELECT 96 - 15 DIV COUNT( - 36 ), COUNT( * ) + 13 AS col1
----
81
14

skipif mysql # not compatible
query II rowsort label-7263
SELECT 96 - 15 / COUNT ( - 36 ), COUNT ( * ) + 13 AS col1
----
81
14

query I rowsort
SELECT 67 * 29 AS col0
----
1943

query I rowsort
SELECT 70 + + 99 AS col2
----
169

query I rowsort
SELECT 80 * CASE - - 61 WHEN 72 THEN - 37 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT 96 + + CASE + COUNT( * ) WHEN - 35 THEN + 55 - + NULLIF ( + ( + 82 ), + 65 ) - - 76 WHEN + COUNT( * ) THEN + - 46 + - CAST( NULL AS SIGNED ) + + 46 END + + 24 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT 96 + + CASE + COUNT ( * ) WHEN - 35 THEN + 55 - + NULLIF ( + ( + 82 ), + 65 ) - - 76 WHEN + COUNT ( * ) THEN + - 46 + - CAST ( NULL AS INTEGER ) + + 46 END + + 24 * + - COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7268
SELECT COUNT ( * ) + + 31 / + 97
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7269
SELECT NULLIF ( 5, + - COUNT( * ) + + CAST( + - 93 AS DECIMAL ) ) * - COUNT( * ) + - 15
----
-20

skipif mysql # not compatible
query I rowsort label-7269
SELECT NULLIF ( 5, + - COUNT ( * ) + + CAST ( + - 93 AS REAL ) ) * - COUNT ( * ) + - 15
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT 92 + MAX( DISTINCT - 46 ) + + 68 + 12 + - ( - COUNT( * ) ) * - + 4 * 57 * - 81 * 59
----
1089738

skipif mysql # not compatible
query I rowsort label-7270
SELECT 92 + MAX ( DISTINCT - 46 ) + + 68 + 12 + - ( - COUNT ( * ) ) * - + 4 * 57 * - 81 * 59
----
1089738

query I rowsort
SELECT - 48 * - 18 + + 90 + 79 AS col1
----
1033

query I rowsort
SELECT NULLIF ( + - 80, - 15 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7273
SELECT - MIN( DISTINCT - - 95 ) DIV + NULLIF ( ( 13 ), CAST( NULL AS SIGNED ) )
----
-7

skipif mysql # not compatible
query I rowsort label-7273
SELECT - MIN ( DISTINCT - - 95 ) / + NULLIF ( ( 13 ), CAST ( NULL AS INTEGER ) )
----
-7

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

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL + - 52 * COUNT ( * ) / - 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7275
SELECT ALL - 74 + - 51 - 59 * + 48 * + + 25, - NULLIF ( + COUNT( * ), + 88 ) * - COALESCE ( + COUNT( * ), COUNT( * ) ) DIV - 31 AS col2
----
-70925
0

skipif mysql # not compatible
query II rowsort label-7275
SELECT ALL - 74 + - 51 - 59 * + 48 * + + 25, - NULLIF ( + COUNT ( * ), + 88 ) * - COALESCE ( + COUNT ( * ), COUNT ( * ) ) / - 31 AS col2
----
-70925
0

query I rowsort
SELECT 51 + COALESCE ( - 34, + - 49, - 59 ) * - - 60 AS col1
----
-1989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7277
SELECT CAST( - - 70 AS SIGNED ) + + + 60 col2
----
130

skipif mysql # not compatible
query I rowsort label-7277
SELECT CAST ( - - 70 AS INTEGER ) + + + 60 col2
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-7278
SELECT SUM( + 69 ), - 12 AS col2
----
69
-12

skipif mysql # not compatible
query II rowsort label-7278
SELECT SUM ( + 69 ), - 12 AS col2
----
69
-12

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

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL COUNT ( * ) + 46 AS col2
----
47

query I rowsort
SELECT 27 * - - 2 + 34 - + 0 + - 67 * 84 + NULLIF ( + + 8, + 68 )
----
-5532

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT ALL + 47 + + - 13 + - + COUNT( * ) + - 53 * - + 23 AS col0
----
1252

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL + 47 + + - 13 + - + COUNT ( * ) + - 53 * - + 23 AS col0
----
1252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7282
SELECT DISTINCT 75 + - - 88 + COUNT( * ) DIV - CAST( - 79 AS SIGNED ) col2
----
163

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT 75 + - - 88 + COUNT ( * ) / - CAST ( - 79 AS INTEGER ) col2
----
163

query I rowsort
SELECT ALL ( 74 ) AS col1
----
74

query I rowsort
SELECT ( 65 ) * + + 0 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7286
SELECT ALL - COUNT( * ) - 25 + 8 AS col2, + 12
----
-18
12

skipif mysql # not compatible
query II rowsort label-7286
SELECT ALL - COUNT ( * ) - 25 + 8 AS col2, + 12
----
-18
12

query I rowsort
SELECT + 86 * + 76 col1
----
6536

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7288
SELECT DISTINCT 8, 57 - + + ( 43 ) * + 28 + - 93 * CAST( - 48 AS SIGNED ) AS col1
----
8
3317

skipif mysql # not compatible
query II rowsort label-7288
SELECT DISTINCT 8, 57 - + + ( 43 ) * + 28 + - 93 * CAST ( - 48 AS INTEGER ) AS col1
----
8
3317

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7289
SELECT DISTINCT 9 DIV - - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT 9 / - - COUNT ( * ) AS col1
----
9

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

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

query I rowsort
SELECT ALL - 13 * - 20 AS col0
----
260

query I rowsort
SELECT ALL 44 * 4 col0
----
176

query II rowsort
SELECT 10 AS col0, - 29
----
10
-29

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

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT MIN ( - 86 )
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-7295
SELECT + 2 - - - ( - 45 ) AS col1, COUNT( * ) + - 1 * + 82 + - + ( - CASE + - ( 11 ) WHEN 51 + - - 83 - - 86 + 49 * 90 - - - 29 THEN - 58 WHEN + + 15 THEN - 16 * 93 END ) * - + 84 / + 80 AS col1
----
47
NULL

skipif mysql # not compatible
query II rowsort label-7295
SELECT + 2 - - - ( - 45 ) AS col1, COUNT ( * ) + - 1 * + 82 + - + ( - CASE + - ( 11 ) WHEN 51 + - - 83 - - 86 + 49 * 90 - - - 29 THEN - 58 WHEN + + 15 THEN - 16 * 93 END ) * - + 84 / + 80 AS col1
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT ALL SUM( DISTINCT 96 )
----
96

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL SUM ( DISTINCT 96 )
----
96

query I rowsort
SELECT - 96 * 56 * - 75
----
403200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7298
SELECT DISTINCT COUNT( * ) + COUNT( * ) * + 59 * + NULLIF ( + CAST( - 19 AS SIGNED ), + 38 ) col2
----
-1120

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * + 59 * + NULLIF ( + CAST ( - 19 AS INTEGER ), + 38 ) col2
----
-1120

query I rowsort
SELECT DISTINCT + ( 40 ) col1
----
40

query I rowsort
SELECT ALL - 45 * - - 1 + - 28 * + - 8
----
179

query I rowsort
SELECT - 78 * - 89 col1
----
6942

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7302
SELECT ALL - - 25 * + 25 + - + 57 + 31 DIV - 41 - ( + 88 ) * - + COUNT( DISTINCT - + 54 ) AS col0
----
656

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL - - 25 * + 25 + - + 57 + 31 / - 41 - ( + 88 ) * - + COUNT ( DISTINCT - + 54 ) AS col0
----
656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7303
SELECT - COUNT( ( 54 ) ) DIV SUM( ALL - 75 ) + - 65
----
-65

skipif mysql # not compatible
query I rowsort label-7303
SELECT - COUNT ( ( 54 ) ) / SUM ( ALL - 75 ) + - 65
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-7304
SELECT ALL + 58 * + 73 * + 20 + + 74 DIV - - 15 col1
----
84684

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL + 58 * + 73 * + 20 + + 74 / - - 15 col1
----
84684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7305
SELECT - - CAST( NULL AS SIGNED ) * 81 * + CASE + 58 WHEN + 24 THEN - NULLIF ( 21, ( - 27 ) + - ( - 35 ) + - 29 * 6 / ( + 62 ) + + 46 ) * - COUNT( + 85 ) WHEN - 6 THEN + 5 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7305
SELECT - - CAST ( NULL AS INTEGER ) * 81 * + CASE + 58 WHEN + 24 THEN - NULLIF ( 21, ( - 27 ) + - ( - 35 ) + - 29 * 6 / ( + 62 ) + + 46 ) * - COUNT ( + 85 ) WHEN - 6 THEN + 5 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7306
SELECT ALL 38 DIV - COUNT( * ) + 48 * + 32 + - 78
----
1420

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL 38 / - COUNT ( * ) + 48 * + 32 + - 78
----
1420

onlyif mysql # DIV for integer division: 
query I rowsort label-7307
SELECT - 7 DIV + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7307
SELECT - 7 / + 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT ALL + - 75 * - - SUM( + 24 ) * + + 28 - + 83
----
-50483

skipif mysql # not compatible
query I rowsort label-7308
SELECT ALL + - 75 * - - SUM ( + 24 ) * + + 28 - + 83
----
-50483

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7310
SELECT - + ( 96 ) + + + NULLIF ( COUNT( * ), 42 ) * 33 + - 56 + + 65 DIV - - 31 AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-7310
SELECT - + ( 96 ) + + + NULLIF ( COUNT ( * ), 42 ) * 33 + - 56 + + 65 / - - 31 AS col0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT + COUNT( * ) - 89 * - 80 + 15 - 9 AS col0
----
7127

skipif mysql # not compatible
query I rowsort label-7311
SELECT + COUNT ( * ) - 89 * - 80 + 15 - 9 AS col0
----
7127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7312
SELECT + AVG ( + 83 ) * - + 12 + + + ( + CAST( NULL AS SIGNED ) ) + + 59 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT + AVG ( + 83 ) * - + 12 + + + ( + CAST ( NULL AS INTEGER ) ) + + 59 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT COUNT( DISTINCT + ( - - 48 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7313
SELECT COUNT ( DISTINCT + ( - - 48 ) ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7314
SELECT + 57 DIV - - 20 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7314
SELECT + 57 / - - 20 AS col0
----
2

query I rowsort
SELECT DISTINCT ( - 23 )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7316
SELECT ALL - 45 DIV + 10 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL - 45 / + 10 AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7317
SELECT + SUM( - ( - 78 ) ) DIV COUNT( * ) + 27 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-7317
SELECT + SUM ( - ( - 78 ) ) / COUNT ( * ) + 27 AS col0
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7318
SELECT + 45 + + COUNT( * ) AS col1, CAST( + 64 AS SIGNED ) AS col2
----
46
64

skipif mysql # not compatible
query II rowsort label-7318
SELECT + 45 + + COUNT ( * ) AS col1, CAST ( + 64 AS INTEGER ) AS col2
----
46
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7319
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 84 AS col2
----
NULL
84

skipif mysql # not compatible
query II rowsort label-7319
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 84 AS col2
----
NULL
84

query I rowsort
SELECT DISTINCT + 27 * - + 77
----
-2079

query I rowsort
SELECT ALL 3 * + 31 AS col1
----
93

query I rowsort
SELECT - 9 * + 99 AS col1
----
-891

onlyif mysql # aggregate syntax: 
query II rowsort label-7323
SELECT + 15 + - 32 AS col0, 4 + + COUNT( * )
----
-17
5

skipif mysql # not compatible
query II rowsort label-7323
SELECT + 15 + - 32 AS col0, 4 + + COUNT ( * )
----
-17
5

query I rowsort
SELECT + 32 * + - 16
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT + 91 + - NULLIF ( + 67, 77 + 38 ) + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-7325
SELECT + 91 + - NULLIF ( + 67, 77 + 38 ) + COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT + ( ( + 33 ) ) + - - COUNT( * ) * + 48 * - + ( + CASE + 57 WHEN - + COUNT( * ) - - 81 THEN 63 WHEN + 38 * - 37 + - - 40 + - NULLIF ( + ( - 84 ), + 35 ) THEN NULL ELSE NULL END ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7326
SELECT + ( ( + 33 ) ) + - - COUNT ( * ) * + 48 * - + ( + CASE + 57 WHEN - + COUNT ( * ) - - 81 THEN 63 WHEN + 38 * - 37 + - - 40 + - NULLIF ( + ( - 84 ), + 35 ) THEN NULL ELSE NULL END ) + - 99
----
NULL

query I rowsort
SELECT + 96 * + + 46
----
4416

query I rowsort
SELECT DISTINCT 2 + ( + 80 ) AS col0
----
82

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

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

query I rowsort
SELECT DISTINCT + ( + 19 ) + + 98
----
117

onlyif mysql # DIV for integer division: 
query II rowsort label-7331
SELECT ALL 54 DIV 78 AS col1, 64 DIV + 89
----
0
0

skipif mysql # not compatible
query II rowsort label-7331
SELECT ALL 54 / 78 AS col1, 64 / + 89
----
0
0

query I rowsort
SELECT + 66 + + 36 AS col0
----
102

query I rowsort
SELECT DISTINCT + 4 * 93 AS col0
----
372

query I rowsort
SELECT - 80 + + - 74
----
-154

query II rowsort
SELECT + 39 col2, 24 * - 19 * + 92 AS col0
----
39
-41952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7336
SELECT ALL + 71 * - - COALESCE ( 66, + 18 * + ( 15 ), - - 55 * - 23 * 67 * - 96, - - AVG ( DISTINCT + 33 ) ) * - CAST( - 52 AS SIGNED ) * - COUNT( * ) + 48 + + 58 + - CAST( NULL AS DECIMAL ) * - - 65 + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL + 71 * - - COALESCE ( 66, + 18 * + ( 15 ), - - 55 * - 23 * 67 * - 96, - - AVG ( DISTINCT + 33 ) ) * - CAST ( - 52 AS INTEGER ) * - COUNT ( * ) + 48 + + 58 + - CAST ( NULL AS REAL ) * - - 65 + 33 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7337
SELECT ALL + - 81 DIV - COUNT( * ) + + + 82 * + - ( - + 2 ) AS col1
----
245

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL + - 81 / - COUNT ( * ) + + + 82 * + - ( - + 2 ) AS col1
----
245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7338
SELECT CAST( SUM( ALL - 19 ) AS SIGNED ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7338
SELECT CAST ( SUM ( ALL - 19 ) AS INTEGER ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT + MAX( - + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-7339
SELECT + MAX ( - + 80 )
----
-80

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

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

query II rowsort
SELECT + - 76 * - 33 * - 29 + + 8 AS col0, + 41 col1
----
-72724
41

query I rowsort
SELECT ALL + COALESCE ( + 25, 81 * + 65, 2 ) AS col1
----
25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7344
SELECT DISTINCT + 25 DIV - 6 - + - 80 - + + ( + 30 ) + - - COUNT( ALL 10 ) * + MAX( 33 ) * + 34 * - COALESCE ( - - 11, - 9 + + - ( + + 59 ) + - COALESCE ( + COUNT( * ), + 79 * SUM( 17 ), 33 + NULLIF ( 75, - + CAST( NULL AS SIGNED ) ) ) * - 29 ) + 83
----
-12213

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT + 25 / - 6 - + - 80 - + + ( + 30 ) + - - COUNT ( ALL 10 ) * + MAX ( 33 ) * + 34 * - COALESCE ( - - 11, - 9 + + - ( + + 59 ) + - COALESCE ( + COUNT ( * ), + 79 * SUM ( 17 ), 33 + NULLIF ( 75, - + CAST ( NULL AS INTEGER ) ) ) * - 29 ) + 83
----
-12213

onlyif mysql # DIV for integer division: 
query I rowsort label-7345
SELECT ALL ( - 15 ) DIV - 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL ( - 15 ) / - 45 AS col2
----
0

query II rowsort
SELECT ALL + - 66 AS col0, 44 AS col1
----
-66
44

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT - - 25 * MAX( DISTINCT NULLIF ( + - ( - - 64 ), + COALESCE ( + + 23, - 28, - 57 ) ) ) col0
----
-1600

skipif mysql # not compatible
query I rowsort label-7349
SELECT - - 25 * MAX ( DISTINCT NULLIF ( + - ( - - 64 ), + COALESCE ( + + 23, - 28, - 57 ) ) ) col0
----
-1600

query I rowsort
SELECT + 13 * + - 46 + 72 AS col0
----
-526

query I rowsort
SELECT DISTINCT - 40 - - - 81
----
-121

query I rowsort
SELECT DISTINCT - 67 * 25 * 57
----
-95475

query I rowsort
SELECT ALL - COALESCE ( 16, - 71 * - + 29 * - 34, - - 35 + 99 * + + 27 )
----
-16

query I rowsort
SELECT 80 * + 92
----
7360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7355
SELECT ALL - CASE 91 WHEN - COUNT( * ) THEN + COALESCE ( + - 71, - + 39 * - COUNT( * ) - - + 89 ) WHEN 32 THEN NULL ELSE + - 84 DIV + 81 + 40 + - 78 + + - 35 END
----
74

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL - CASE 91 WHEN - COUNT ( * ) THEN + COALESCE ( + - 71, - + 39 * - COUNT ( * ) - - + 89 ) WHEN 32 THEN NULL ELSE + - 84 / + 81 + 40 + - 78 + + - 35 END
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7356
SELECT DISTINCT COUNT( - 93 ) DIV - + 49
----
0

skipif mysql # not compatible
query I rowsort label-7356
SELECT DISTINCT COUNT ( - 93 ) / - + 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT 76 - - MAX( DISTINCT - 3 )
----
73

skipif mysql # not compatible
query I rowsort label-7357
SELECT 76 - - MAX ( DISTINCT - 3 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7358
SELECT ALL - CASE - - 77 WHEN - COUNT( * ) + + 76 THEN + + NULLIF ( + + MAX( ( + 57 ) ), - 43 ) - - NULLIF ( - 86, - - 66 ) DIV AVG ( ALL - 8 ) ELSE - 75 * + + NULLIF ( + - 7, - - 35 ) * 72 + 26 + + - 73 + - COUNT( * ) DIV - 8 END + - 68 AS col1
----
-37821

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL - CASE - - 77 WHEN - COUNT ( * ) + + 76 THEN + + NULLIF ( + + MAX ( ( + 57 ) ), - 43 ) - - NULLIF ( - 86, - - 66 ) / AVG ( ALL - 8 ) ELSE - 75 * + + NULLIF ( + - 7, - - 35 ) * 72 + 26 + + - 73 + - COUNT ( * ) / - 8 END + - 68 AS col1
----
-37821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7359
SELECT COALESCE ( - ( + 8 ), - 39 * + 44 + 70 + + + 87 + + COUNT( * ) * COUNT( * ) * - + 38 + 43 + - SUM( DISTINCT + 54 ) - - 31, + 36 ) DIV 15 * + 42
----
0

skipif mysql # not compatible
query I rowsort label-7359
SELECT COALESCE ( - ( + 8 ), - 39 * + 44 + 70 + + + 87 + + COUNT ( * ) * COUNT ( * ) * - + 38 + 43 + - SUM ( DISTINCT + 54 ) - - 31, + 36 ) / 15 * + 42
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7360
SELECT COALESCE ( - MIN( DISTINCT - - 87 ), + 87 ) * 12, 4 AS col2
----
-1044
4

skipif mysql # not compatible
query II rowsort label-7360
SELECT COALESCE ( - MIN ( DISTINCT - - 87 ), + 87 ) * 12, 4 AS col2
----
-1044
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7361
SELECT ALL CASE - - 26 WHEN COUNT( * ) THEN - CASE + + 98 WHEN 16 / 33 THEN + 35 * + 57 + + - 6 * - 85 / + - 17 * - - ( CAST( - 93 AS SIGNED ) ) - 29 WHEN + COUNT( * ) + + + MAX( ALL - 37 ) + + 16 * - - 69 * - - 28 - + 26 + + 54 THEN NULL ELSE - CASE + + 7 WHEN + 31 - + - 21 * - + SUM( DISTINCT - 34 ) / + - 8 THEN 96 + - COUNT( * ) ELSE NULL END * + 12 + 86 + + + 82 * 76 * COUNT( * ) + NULLIF ( NULLIF ( + 97, 95 ) + 95, + 30 + - 10 ) * COUNT( * ) END ELSE NULL END * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL CASE - - 26 WHEN COUNT ( * ) THEN - CASE + + 98 WHEN 16 / 33 THEN + 35 * + 57 + + - 6 * - 85 / + - 17 * - - ( CAST ( - 93 AS INTEGER ) ) - 29 WHEN + COUNT ( * ) + + + MAX ( ALL - 37 ) + + 16 * - - 69 * - - 28 - + 26 + + 54 THEN NULL ELSE - CASE + + 7 WHEN + 31 - + - 21 * - + SUM ( DISTINCT - 34 ) / + - 8 THEN 96 + - COUNT ( * ) ELSE NULL END * + 12 + 86 + + + 82 * 76 * COUNT ( * ) + NULLIF ( NULLIF ( + 97, 95 ) + 95, + 30 + - 10 ) * COUNT ( * ) END ELSE NULL END * - 63
----
NULL

query II rowsort
SELECT ALL 49 + - - 32, 99 AS col0
----
81
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7363
SELECT ALL - 51 + + + CAST( NULL AS SIGNED ) + - - 9 * 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL - 51 + + + CAST ( NULL AS INTEGER ) + - - 9 * 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7364
SELECT DISTINCT + 96 * - + 84 DIV + COUNT( ALL - + 12 )
----
-8064

skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT + 96 * - + 84 / + COUNT ( ALL - + 12 )
----
-8064

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7365
SELECT COUNT( * ) DIV ( - 7 ) col2, 82 + - 8 - - 33 AS col2
----
0
107

skipif mysql # not compatible
query II rowsort label-7365
SELECT COUNT ( * ) / ( - 7 ) col2, 82 + - 8 - - 33 AS col2
----
0
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7366
SELECT ALL ( + - CAST( - 84 AS SIGNED ) ) + - 70 col2
----
14

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL ( + - CAST ( - 84 AS INTEGER ) ) + - 70 col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT NULLIF ( + 96, + 2 * 81 - + 67 + + 94 + + MAX( - 91 ) ) * - + 12 + + + 65 AS col1
----
-1087

skipif mysql # not compatible
query I rowsort label-7367
SELECT NULLIF ( + 96, + 2 * 81 - + 67 + + 94 + + MAX ( - 91 ) ) * - + 12 + + + 65 AS col1
----
-1087

query I rowsort
SELECT ALL - 24 * - 33 AS col1
----
792

query I rowsort
SELECT 30 * + 13
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT COUNT( * ) + 52 + 21 + 5
----
79

skipif mysql # not compatible
query I rowsort label-7370
SELECT COUNT ( * ) + 52 + 21 + 5
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7371
SELECT + 17 + + NULLIF ( CAST( NULL AS SIGNED ), + ( - - 38 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7371
SELECT + 17 + + NULLIF ( CAST ( NULL AS INTEGER ), + ( - - 38 ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7372
SELECT + CAST( NULL AS DECIMAL ) + + - 65 + + 76 / + 65 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7372
SELECT + CAST ( NULL AS REAL ) + + - 65 + + 76 / + 65 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT COUNT( * ) + + 41 * 97 AS col1
----
3978

skipif mysql # not compatible
query I rowsort label-7373
SELECT COUNT ( * ) + + 41 * 97 AS col1
----
3978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7374
SELECT ALL COUNT( * ) - + NULLIF ( + 33, CASE - 28 WHEN - 38 + + 86 - + + 39 THEN NULL ELSE + + 97 END - + + CASE - 32 WHEN + 93 * + CASE - 82 WHEN - ( + COALESCE ( - 69, + CASE ( + 78 ) WHEN 76 DIV + COUNT( * ) * - 44 THEN - - 37 END + + 36 ) ) * 70 + CAST( NULL AS DECIMAL ) + NULLIF ( - AVG ( DISTINCT + + 90 ), 63 + - - 58 + + 37 + + COUNT( * ) * - 69 ) * + ( + + 71 ) + - 26 THEN NULL WHEN - 41 + + 96 THEN + 69 + - CAST( - 73 AS SIGNED ) * 96 ELSE - 12 END THEN + 18 END + - 63 ) DIV + CASE 10 WHEN + NULLIF ( + 74, 38 DIV ( + 3 * NULLIF ( + ( 71 ), ( - CAST( NULL AS SIGNED ) ) DIV + 7 ) ) + + 88 * COALESCE ( 53, + 50 + COUNT( * ), AVG ( DISTINCT + 42 ) * + 8 ) ) * 6 THEN NULL WHEN COALESCE ( + 75, - 7, - 42 * + 80 ) * + 36 THEN 62 ELSE 37 * 90 + 50 END
----
1

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL COUNT ( * ) - + NULLIF ( + 33, CASE - 28 WHEN - 38 + + 86 - + + 39 THEN NULL ELSE + + 97 END - + + CASE - 32 WHEN + 93 * + CASE - 82 WHEN - ( + COALESCE ( - 69, + CASE ( + 78 ) WHEN 76 / + COUNT ( * ) * - 44 THEN - - 37 END + + 36 ) ) * 70 + CAST ( NULL AS REAL ) + NULLIF ( - AVG ( DISTINCT + + 90 ), 63 + - - 58 + + 37 + + COUNT ( * ) * - 69 ) * + ( + + 71 ) + - 26 THEN NULL WHEN - 41 + + 96 THEN + 69 + - CAST ( - 73 AS INTEGER ) * 96 ELSE - 12 END THEN + 18 END + - 63 ) / + CASE 10 WHEN + NULLIF ( + 74, 38 / ( + 3 * NULLIF ( + ( 71 ), ( - CAST ( NULL AS INTEGER ) ) / + 7 ) ) + + 88 * COALESCE ( 53, + 50 + COUNT ( * ), AVG ( DISTINCT + 42 ) * + 8 ) ) * 6 THEN NULL WHEN COALESCE ( + 75, - 7, - 42 * + 80 ) * + 36 THEN 62 ELSE 37 * 90 + 50 END
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7376
SELECT ALL 97 - + - 88 + + NULLIF ( + 32, + ( - 38 ) * - 4 ) AS col0, + COUNT( * ) AS col0
----
217
1

skipif mysql # not compatible
query II rowsort label-7376
SELECT ALL 97 - + - 88 + + NULLIF ( + 32, + ( - 38 ) * - 4 ) AS col0, + COUNT ( * ) AS col0
----
217
1

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

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

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

query III rowsort
SELECT ALL - 99 * + 87, + 47 * 9 * + + 44 AS col2, - + 52 * - 15 AS col2
----
-8613
18612
780

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT ALL - COUNT( * ) - - + 86 + - 29 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL - COUNT ( * ) - - + 86 + - 29 AS col1
----
56

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

skipif mysql # not compatible
query I rowsort label-7381
SELECT + COUNT ( * ) / - ( 71 ) + - COUNT ( * ) col0
----
-1

query I rowsort
SELECT - 56 * 77 - 88
----
-4400

query I rowsort
SELECT + 30 * - + 99 AS col0
----
-2970

query II rowsort
SELECT ALL - - COALESCE ( - - 67, - 27 ), 69 AS col1
----
67
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7385
SELECT ALL + MIN( - 50 ) DIV ( + - 18 ) * + CASE + - 70 WHEN - 77 THEN NULL ELSE - COUNT( * ) END + + 47 DIV + 47
----
-1

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL + MIN ( - 50 ) / ( + - 18 ) * + CASE + - 70 WHEN - 77 THEN NULL ELSE - COUNT ( * ) END + + 47 / + 47
----
-1

query I rowsort
SELECT 86 - + + 33 AS col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7387
SELECT DISTINCT 69 DIV + SUM( - - 24 )
----
2

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT 69 / + SUM ( - - 24 )
----
2

query I rowsort
SELECT DISTINCT 86 + + 80 + 25 AS col2
----
191

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7389
SELECT DISTINCT + 36 + ( + 94 ) - + - COUNT( * ) DIV SUM( + 44 )
----
130

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT + 36 + ( + 94 ) - + - COUNT ( * ) / SUM ( + 44 )
----
130

query I rowsort
SELECT ALL - 82 + 27 * + 58 AS col0
----
1484

query I rowsort
SELECT 76 + + 33 + + 90 AS col2
----
199

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

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

query I rowsort
SELECT 15 * + - ( + 50 ) AS col2
----
-750

query I rowsort
SELECT 21 - - 82 AS col1
----
103

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7396
SELECT CAST( NULL AS SIGNED ) * + ( + ( + CASE + 15 WHEN + - 29 * - 19 / + + COUNT( * ) THEN + 80 ELSE + + COUNT( * ) + - 77 END ) ) * - 16 + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT CAST ( NULL AS INTEGER ) * + ( + ( + CASE + 15 WHEN + - 29 * - 19 / + + COUNT ( * ) THEN + 80 ELSE + + COUNT ( * ) + - 77 END ) ) * - 16 + 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT 5 + MAX( DISTINCT - NULLIF ( + - 9, 66 ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7397
SELECT 5 + MAX ( DISTINCT - NULLIF ( + - 9, 66 ) ) AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7398
SELECT ALL 61 + COALESCE ( ( 66 ), CAST( NULL AS SIGNED ) DIV - 38 DIV - - COUNT( * ) ) + + - SUM( - 8 ) - + 78 col1
----
57

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL 61 + COALESCE ( ( 66 ), CAST ( NULL AS INTEGER ) / - 38 / - - COUNT ( * ) ) + + - SUM ( - 8 ) - + 78 col1
----
57

query I rowsort
SELECT DISTINCT - 64 + + 9
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-7400
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * 56 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT 21 + - + 64 * - COUNT( - 23 )
----
85

skipif mysql # not compatible
query I rowsort label-7401
SELECT 21 + - + 64 * - COUNT ( - 23 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT DISTINCT - NULLIF ( + 64, + + COUNT( * ) / 46 + - 2 + COUNT( * ) * - NULLIF ( - 10, 21 ) + - - 52 ) + 5 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT - NULLIF ( + 64, + + COUNT ( * ) / 46 + - 2 + COUNT ( * ) * - NULLIF ( - 10, 21 ) + - - 52 ) + 5 AS col1
----
-59

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7404
SELECT ALL - 19 + CASE + - 33 WHEN + + 13 / - - ( + 66 ) + + CAST( NULL AS SIGNED ) - 73 THEN - - 41 ELSE - ( - - 22 ) END
----
-41

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL - 19 + CASE + - 33 WHEN + + 13 / - - ( + 66 ) + + CAST ( NULL AS INTEGER ) - 73 THEN - - 41 ELSE - ( - - 22 ) END
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-7405
SELECT COALESCE ( + 74, + 80 + + + 18 ) + + 82 DIV - + 12 + + 54
----
122

skipif mysql # not compatible
query I rowsort label-7405
SELECT COALESCE ( + 74, + 80 + + + 18 ) + + 82 / - + 12 + + 54
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-7406
SELECT 20 DIV 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7406
SELECT 20 / 59 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7407
SELECT ALL + 55 DIV 12 * + CASE + 20 WHEN - 87 * + - ( + CASE + 70 WHEN + ( + - 86 ) - + - 6 * 70 THEN + + 84 + + COUNT( * ) + - 49 + 99 DIV - - 95 + + + 22 * - NULLIF ( CAST( NULL AS SIGNED ), - NULLIF ( + 6, 38 ) * + 80 ) * - 46 WHEN - 10 + 2 THEN NULL WHEN - MIN( + 45 ) THEN NULL END ) + + + 13 - + - 89 THEN + 28 WHEN - - COUNT( * ) THEN - - COALESCE ( - 37, - 48 * - 97 + + ( 17 ) ) ELSE 26 - - 25 END
----
204

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL + 55 / 12 * + CASE + 20 WHEN - 87 * + - ( + CASE + 70 WHEN + ( + - 86 ) - + - 6 * 70 THEN + + 84 + + COUNT ( * ) + - 49 + 99 / - - 95 + + + 22 * - NULLIF ( CAST ( NULL AS INTEGER ), - NULLIF ( + 6, 38 ) * + 80 ) * - 46 WHEN - 10 + 2 THEN NULL WHEN - MIN ( + 45 ) THEN NULL END ) + + + 13 - + - 89 THEN + 28 WHEN - - COUNT ( * ) THEN - - COALESCE ( - 37, - 48 * - 97 + + ( 17 ) ) ELSE 26 - - 25 END
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT - 15 * - - NULLIF ( + SUM( DISTINCT + 60 ), + 70 / + 18 + - - 19 ) col1
----
-900

skipif mysql # not compatible
query I rowsort label-7408
SELECT - 15 * - - NULLIF ( + SUM ( DISTINCT + 60 ), + 70 / + 18 + - - 19 ) col1
----
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-7409
SELECT 10 + - 26 DIV - - 3 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7409
SELECT 10 + - 26 / - - 3 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7410
SELECT - - MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7410
SELECT - - MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 37 * - - 47 + 24 + - - 54 * + 20 + - 47 + + 0
----
2796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7412
SELECT ALL - 94 * 47 - COALESCE ( + + CAST( + + CASE + 1 WHEN COALESCE ( 53, + 34 / - - 60 ) - - - SUM( + 13 ) - - + 2 / - 49 / + 29 THEN + ( + + COUNT( * ) ) + + NULLIF ( + COALESCE ( + 12, CAST( NULL AS DECIMAL ) * - SUM( 60 ) + COUNT( * ) + + - 4 + + 0 - - + CAST( + COUNT( * ) AS SIGNED ) * + + SUM( COALESCE ( + 61, - ( 29 ), 33 / - 84 * + + 65 ) ), + 61 ), COUNT( * ) ) END AS SIGNED ), 99 ) AS col2
----
-4517

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL - 94 * 47 - COALESCE ( + + CAST ( + + CASE + 1 WHEN COALESCE ( 53, + 34 / - - 60 ) - - - SUM ( + 13 ) - - + 2 / - 49 / + 29 THEN + ( + + COUNT ( * ) ) + + NULLIF ( + COALESCE ( + 12, CAST ( NULL AS REAL ) * - SUM ( 60 ) + COUNT ( * ) + + - 4 + + 0 - - + CAST ( + COUNT ( * ) AS INTEGER ) * + + SUM ( COALESCE ( + 61, - ( 29 ), 33 / - 84 * + + 65 ) ), + 61 ), COUNT ( * ) ) END AS INTEGER ), 99 ) AS col2
----
-4517

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

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

query I rowsort
SELECT ALL + - 38 * + - 10 AS col0
----
380

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7416
SELECT ALL + CAST( NULL AS SIGNED ) col0, + CASE - 97 WHEN 20 - + 82 * - 2 / - 13 + + + 17 THEN + + 65 ELSE - - 38 + 88 END - + 96 - - 94 + - + 52 * - 54 * - + 27 * + + 28 AS col2
----
NULL
-2122724

skipif mysql # not compatible
query II rowsort label-7416
SELECT ALL + CAST ( NULL AS INTEGER ) col0, + CASE - 97 WHEN 20 - + 82 * - 2 / - 13 + + + 17 THEN + + 65 ELSE - - 38 + 88 END - + 96 - - 94 + - + 52 * - 54 * - + 27 * + + 28 AS col2
----
NULL
-2122724

query I rowsort
SELECT - 87 * - + 30 AS col0
----
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT - COUNT( * ) + ( + ( 89 ) )
----
88

skipif mysql # not compatible
query I rowsort label-7418
SELECT - COUNT ( * ) + ( + ( 89 ) )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7419
SELECT DISTINCT + CAST( + - CAST( - NULLIF ( + + 57, + + MAX( + 48 ) + + - COALESCE ( + - 9, - 44 ) + + - ( - - 77 ) / COUNT( * ) ) AS SIGNED ) AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT + CAST ( + - CAST ( - NULLIF ( + + 57, + + MAX ( + 48 ) + + - COALESCE ( + - 9, - 44 ) + + - ( - - 77 ) / COUNT ( * ) ) AS INTEGER ) AS INTEGER ) AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7420
SELECT NULLIF ( COALESCE ( 4, 53 ), + MIN( - CASE - - 17 WHEN - 99 + - 74 THEN - + 32 END ) * + 32 ) DIV - 12 + - + ( + COUNT( + 37 ) ) + - NULLIF ( - 14, - CAST( NULL AS SIGNED ) * + 56 + + COUNT( * ) ) + + COUNT( * ) AS col2, - 16 AS col1
----
14
-16

skipif mysql # not compatible
query II rowsort label-7420
SELECT NULLIF ( COALESCE ( 4, 53 ), + MIN ( - CASE - - 17 WHEN - 99 + - 74 THEN - + 32 END ) * + 32 ) / - 12 + - + ( + COUNT ( + 37 ) ) + - NULLIF ( - 14, - CAST ( NULL AS INTEGER ) * + 56 + + COUNT ( * ) ) + + COUNT ( * ) AS col2, - 16 AS col1
----
14
-16

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

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL 28 / COUNT ( * ) AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7422
SELECT DISTINCT ( 44 ) * 16 + + 93 + - CAST( - NULLIF ( + CAST( NULL AS SIGNED ), - + 11 * + 85 * - - COUNT( * ) ) AS DECIMAL ) * + + MAX( ALL ( - 55 ) ) + - 1 / + 9 * - COUNT( DISTINCT + 47 ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT ( 44 ) * 16 + + 93 + - CAST ( - NULLIF ( + CAST ( NULL AS INTEGER ), - + 11 * + 85 * - - COUNT ( * ) ) AS REAL ) * + + MAX ( ALL ( - 55 ) ) + - 1 / + 9 * - COUNT ( DISTINCT + 47 ) * - 48
----
NULL

query I rowsort
SELECT 86 * - 97 + - - 9
----
-8333

query I rowsort
SELECT ALL 17 * + 41 + - - 16
----
713

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7425
SELECT ALL CAST( ( - 14 ) AS SIGNED ) * - - 69 * - + 89 + + 93 + - 53 + - + 93 * 34 AS col1, + 29 * - - 97 AS col2
----
82852
2813

skipif mysql # not compatible
query II rowsort label-7425
SELECT ALL CAST ( ( - 14 ) AS INTEGER ) * - - 69 * - + 89 + + 93 + - 53 + - + 93 * 34 AS col1, + 29 * - - 97 AS col2
----
82852
2813

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7427
SELECT + 92 DIV + 5 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7427
SELECT + 92 / + 5 AS col0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7428
SELECT + 3 * - - SUM( ALL + 5 ) * + + 60, 67 - + - 80 AS col2
----
900
147

skipif mysql # not compatible
query II rowsort label-7428
SELECT + 3 * - - SUM ( ALL + 5 ) * + + 60, 67 - + - 80 AS col2
----
900
147

query I rowsort
SELECT 14 * + 72 + + 86
----
1094

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT MIN( DISTINCT + 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7430
SELECT MIN ( DISTINCT + 38 ) AS col0
----
38

query I rowsort
SELECT ALL 44 * - 13 col1
----
-572

query I rowsort
SELECT + NULLIF ( - 89, - ( 1 ) ) AS col0
----
-89

query II rowsort
SELECT + 73 * 56 AS col0, 24 * 9 AS col2
----
4088
216

query II rowsort
SELECT + ( + + CASE 56 WHEN 9 THEN NULL WHEN 60 THEN - 54 * + - 71 END ) AS col1, + ( + - 65 )
----
NULL
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7435
SELECT + 8 * + CAST( COUNT( ALL - 42 ) AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-7435
SELECT + 8 * + CAST ( COUNT ( ALL - 42 ) AS INTEGER )
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-7436
SELECT ALL 14 DIV + - 30 * - 92 * + + 2 * - - 22 col0, 34 - - ( - ( + - ( 29 ) ) )
----
0
63

skipif mysql # not compatible
query II rowsort label-7436
SELECT ALL 14 / + - 30 * - 92 * + + 2 * - - 22 col0, 34 - - ( - ( + - ( 29 ) ) )
----
0
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL 31 + 13 + - + ( + NULLIF ( COUNT( * ), + 8 ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL 31 + 13 + - + ( + NULLIF ( COUNT ( * ), + 8 ) ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT MAX( - 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7438
SELECT MAX ( - 31 ) AS col2
----
-31

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

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

query I rowsort
SELECT - - 3 * + - 12 * + 2 AS col2
----
-72

query I rowsort
SELECT ALL - + 3 - 24 col1
----
-27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT - - 54 - COUNT( DISTINCT + 14 )
----
53

skipif mysql # not compatible
query I rowsort label-7443
SELECT - - 54 - COUNT ( DISTINCT + 14 )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7444
SELECT ALL - COUNT( - + CAST( + 29 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL - COUNT ( - + CAST ( + 29 AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7445
SELECT - + 27 DIV + 98 + - + ( + 86 ) * + COUNT( ALL 62 )
----
-86

skipif mysql # not compatible
query I rowsort label-7445
SELECT - + 27 / + 98 + - + ( + 86 ) * + COUNT ( ALL 62 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7446
SELECT DISTINCT - COUNT( * ) + NULLIF ( - - 6, CAST( - 14 AS SIGNED ) ) + 90 * + 50
----
4505

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT - COUNT ( * ) + NULLIF ( - - 6, CAST ( - 14 AS INTEGER ) ) + 90 * + 50
----
4505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7447
SELECT ALL - CASE - 55 WHEN 88 THEN NULL WHEN + CAST( + 3 AS SIGNED ) * 81 * + - 67 THEN + ( - 52 ) END * - 15 * + MIN( + 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL - CASE - 55 WHEN 88 THEN NULL WHEN + CAST ( + 3 AS INTEGER ) * 81 * + - 67 THEN + ( - 52 ) END * - 15 * + MIN ( + 93 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7448
SELECT DISTINCT 6 DIV 17 + + - 77
----
-77

skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT 6 / 17 + + - 77
----
-77

query I rowsort
SELECT ALL + 97 * - 74 + - 69
----
-7247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7450
SELECT ALL NULLIF ( - CASE - - 66 WHEN + 91 THEN - CAST( NULL AS SIGNED ) WHEN + + COUNT( * ) THEN NULL END, 49 + + - 97 * + + 27 + + - 71 + + ( + + 40 ) ) / - CAST( NULL AS SIGNED ) - NULLIF ( + 88, + 11 * + + COUNT( * ) ) + - - 72 col2, 8 - + 90 * + 37
----
NULL
-3322

skipif mysql # not compatible
query II rowsort label-7450
SELECT ALL NULLIF ( - CASE - - 66 WHEN + 91 THEN - CAST ( NULL AS INTEGER ) WHEN + + COUNT ( * ) THEN NULL END, 49 + + - 97 * + + 27 + + - 71 + + ( + + 40 ) ) / - CAST ( NULL AS INTEGER ) - NULLIF ( + 88, + 11 * + + COUNT ( * ) ) + - - 72 col2, 8 - + 90 * + 37
----
NULL
-3322

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT ALL + 33 DIV 97 + + + 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL + 33 / 97 + + + 15 AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7452
SELECT + ( - COALESCE ( COUNT( * ), + 49, - 68 DIV - 21 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7452
SELECT + ( - COALESCE ( COUNT ( * ), + 49, - 68 / - 21 ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7453
SELECT ALL + 60 col2, + CASE + COUNT( * ) WHEN 16 * + 47 * - 11 * + - 27 THEN - + 29 WHEN - - 8 THEN + - 25 / 85 ELSE NULL END * - - 50
----
60
NULL

skipif mysql # not compatible
query II rowsort label-7453
SELECT ALL + 60 col2, + CASE + COUNT ( * ) WHEN 16 * + 47 * - 11 * + - 27 THEN - + 29 WHEN - - 8 THEN + - 25 / 85 ELSE NULL END * - - 50
----
60
NULL

query I rowsort
SELECT - 80 * + 23
----
-1840

query I rowsort
SELECT + 86 * 99 AS col2
----
8514

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

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

query I rowsort
SELECT ALL 26 * + + 58 col0
----
1508

query I rowsort
SELECT + NULLIF ( + + 33, + 31 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT DISTINCT + 23 * + - 17 + + 0 * + 94 * + + 59 * + MAX( DISTINCT - + 32 )
----
-391

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT + 23 * + - 17 + + 0 * + 94 * + + 59 * + MAX ( DISTINCT - + 32 )
----
-391

query I rowsort
SELECT DISTINCT 61 * 58 AS col1
----
3538

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT DISTINCT 73 DIV + 2 col2
----
36

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT 73 / + 2 col2
----
36

query I rowsort
SELECT ALL - 90 * - CASE + 55 WHEN - - ( 81 ) + 15 THEN - COALESCE ( - 76, + 72 + + 42 * 44 * + - AVG ( - 95 ) / 98 / + + ( COALESCE ( - 32, + - 1 ) ), - - 8 ) * 28 + - 9 END * + + 37 - - - 76 * 35 AS col1
----
NULL

query I rowsort
SELECT ALL 91 * - + 89 AS col0
----
-8099

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT NULLIF ( - - 75, + COUNT( * ) + - 78 + + 7 )
----
75

skipif mysql # not compatible
query I rowsort label-7464
SELECT NULLIF ( - - 75, + COUNT ( * ) + - 78 + + 7 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT + 14 + - 48 + + 73 * + - COUNT( * ) + - - 62 * + 31
----
1815

skipif mysql # not compatible
query I rowsort label-7465
SELECT + 14 + - 48 + + 73 * + - COUNT ( * ) + - - 62 * + 31
----
1815

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7467
SELECT DISTINCT 25 * 69 DIV - 79
----
-21

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT 25 * 69 / - 79
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT 93 * + + MIN( + 47 ) * - - 12 + + - COUNT( * ) + 0 + + COALESCE ( - 75, - 45, + 63 * - 23 ) AS col0
----
52376

skipif mysql # not compatible
query I rowsort label-7469
SELECT 93 * + + MIN ( + 47 ) * - - 12 + + - COUNT ( * ) + 0 + + COALESCE ( - 75, - 45, + 63 * - 23 ) AS col0
----
52376

query I rowsort
SELECT ALL 72 * + + 10 AS col2
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL 92 * + 69 - + + 13 + CASE + MIN( + 58 ) WHEN - 79 THEN 20 ELSE - 75 * + 39 END - ( - 75 ) col1
----
3485

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL 92 * + 69 - + + 13 + CASE + MIN ( + 58 ) WHEN - 79 THEN 20 ELSE - 75 * + 39 END - ( - 75 ) col1
----
3485

query I rowsort
SELECT + 84 * - 85 AS col1
----
-7140

query I rowsort
SELECT DISTINCT 89 * - 70 * - 35
----
218050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7474
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) * - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7474
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 88 AS col2
----
NULL

query II rowsort
SELECT ALL 64, 8 * - - 26 * + 4 col1
----
64
832

query I rowsort
SELECT ALL - 72 * - 22 AS col2
----
1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7477
SELECT DISTINCT - 61 DIV - CASE + - 59 WHEN - - 78 + + 58 THEN NULL ELSE + 63 + 62 + + + 79 * - 41 END * - 34 + 23 + + + 6 - - - COALESCE ( - + 36, + 43 + - SUM( DISTINCT + + 65 ) + + + 41 + - 19 + - 10 * + + ( - COUNT( * ) ) - + + COUNT( * ) + - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) + - NULLIF ( 57, 21 ) * - ( - - 47 ) * - - COUNT( * ) DIV ( 95 ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT - 61 / - CASE + - 59 WHEN - - 78 + + 58 THEN NULL ELSE + 63 + 62 + + + 79 * - 41 END * - 34 + 23 + + + 6 - - - COALESCE ( - + 36, + 43 + - SUM ( DISTINCT + + 65 ) + + + 41 + - 19 + - 10 * + + ( - COUNT ( * ) ) - + + COUNT ( * ) + - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - NULLIF ( 57, 21 ) * - ( - - 47 ) * - - COUNT ( * ) / ( 95 ) ) AS col2
----
65

query I rowsort
SELECT - + 92 * + + 53 AS col0
----
-4876

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ALL 30 * + NULLIF ( + 21, + COALESCE ( - 83, - 92 * + - 85 * + COUNT( * ) * 3, 59 ) * - 3 * 27 + - 70 + + + 4 + - COUNT( * ) * 70 ) AS col2
----
630

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL 30 * + NULLIF ( + 21, + COALESCE ( - 83, - 92 * + - 85 * + COUNT ( * ) * 3, 59 ) * - 3 * 27 + - 70 + + + 4 + - COUNT ( * ) * 70 ) AS col2
----
630

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT + CAST( NULL AS SIGNED ) * NULLIF ( + - 72, 13 * 57 + - 36 ) + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT + CAST ( NULL AS INTEGER ) * NULLIF ( + - 72, 13 * 57 + - 36 ) + + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT DISTINCT - COUNT( * ) + + - 31
----
-32

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT - COUNT ( * ) + + - 31
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ALL + MIN( DISTINCT + 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL + MIN ( DISTINCT + 40 ) AS col1
----
40

query I rowsort
SELECT DISTINCT - ( ( 9 ) ) col0
----
-9

query I rowsort
SELECT ALL - 18 + - 31 AS col0
----
-49

query I rowsort
SELECT DISTINCT - 59 + ( - - 4 ) * + - 45 * + - 59 - + 38 AS col0
----
10523

query I rowsort
SELECT DISTINCT + + 66 + 73
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7490
SELECT NULLIF ( + 58, NULLIF ( - + 7, - + 86 * - - 0 - - + CAST( NULL AS SIGNED ) ) )
----
58

skipif mysql # not compatible
query I rowsort label-7490
SELECT NULLIF ( + 58, NULLIF ( - + 7, - + 86 * - - 0 - - + CAST ( NULL AS INTEGER ) ) )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7491
SELECT + 87, + CAST( NULL AS SIGNED ) + - 55 + - + ( AVG ( - - 68 ) ) * - + 91 AS col0
----
87
NULL

skipif mysql # not compatible
query II rowsort label-7491
SELECT + 87, + CAST ( NULL AS INTEGER ) + - 55 + - + ( AVG ( - - 68 ) ) * - + 91 AS col0
----
87
NULL

query I rowsort
SELECT 86 + - - 0 AS col2
----
86

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

query I rowsort
SELECT ALL + 32 + - - 42 + - 80 * 75
----
-5926

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7496
SELECT ALL - COALESCE ( + 0, SUM( - - ( - + 27 ) ), - - 51 DIV + + MAX( + ( 36 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL - COALESCE ( + 0, SUM ( - - ( - + 27 ) ), - - 51 / + + MAX ( + ( 36 ) ) )
----
0

query I rowsort
SELECT ALL + 32 * - 49 AS col1
----
-1568

query I rowsort
SELECT 15 * 9 * + + 64 AS col1
----
8640

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

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL + 60 * 58 * + + COUNT ( * ) AS col1
----
3480

query I rowsort
SELECT 31 + - 80 + + 25
----
-24

query I rowsort
SELECT ALL - 87 - + + 22
----
-109

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

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

query I rowsort
SELECT 5 * + 16 AS col2
----
80

query I rowsort
SELECT - 58 * + 64 + + + 55 + - + NULLIF ( + 87, + - 22 * + 61 ) + + - 96 col1
----
-3840

query I rowsort
SELECT 14 * - 95 * + 59 AS col2
----
-78470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7506
SELECT ALL - 85 AS col1, CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) + - - 52 AS col2
----
-85
53

skipif mysql # not compatible
query II rowsort label-7506
SELECT ALL - 85 AS col1, CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) + - - 52 AS col2
----
-85
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7507
SELECT DISTINCT - ( + + NULLIF ( + 2, - 48 ) ), COUNT( * ) * - + 31 * + - 68 - + NULLIF ( + 7, - 69 * - 6 + + ( - 38 ) ) * + - 69 * 0 DIV - 37 AS col1
----
-2
2108

skipif mysql # not compatible
query II rowsort label-7507
SELECT DISTINCT - ( + + NULLIF ( + 2, - 48 ) ), COUNT ( * ) * - + 31 * + - 68 - + NULLIF ( + 7, - 69 * - 6 + + ( - 38 ) ) * + - 69 * 0 / - 37 AS col1
----
-2
2108

query I rowsort
SELECT ALL 78 - ( - - 17 )
----
61

query II rowsort
SELECT ALL - 4, + 39 AS col0
----
-4
39

query I rowsort
SELECT DISTINCT 72 * + 2
----
144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT - MIN( 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-7512
SELECT - MIN ( 26 ) AS col0
----
-26

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

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL - CAST ( NULL AS INTEGER ) * 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7514
SELECT DISTINCT + 0 col2, + CAST( + - 87 AS SIGNED ) - 63 + + 12
----
0
-138

skipif mysql # not compatible
query II rowsort label-7514
SELECT DISTINCT + 0 col2, + CAST ( + - 87 AS INTEGER ) - 63 + + 12
----
0
-138

query I rowsort
SELECT DISTINCT 96 * 76 AS col2
----
7296

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT ALL - 82 + 8 * COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL - 82 + 8 * COUNT ( * )
----
-74

query I rowsort
SELECT + 84 - + ( - 22 ) * 47 * + 52
----
53852

onlyif mysql # aggregate syntax: 
query II rowsort label-7518
SELECT ALL - 54, - 47 + 42 + + COUNT( * ) + + 51 col0
----
-54
47

skipif mysql # not compatible
query II rowsort label-7518
SELECT ALL - 54, - 47 + 42 + + COUNT ( * ) + + 51 col0
----
-54
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7519
SELECT DISTINCT 76 + NULLIF ( - - CAST( NULL AS SIGNED ), - MIN( + ( + - 67 ) ) ) - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT 76 + NULLIF ( - - CAST ( NULL AS INTEGER ), - MIN ( + ( + - 67 ) ) ) - - 97
----
NULL

query I rowsort
SELECT ALL 80 + - 99 + + 7
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT DISTINCT + 99 + + MAX( DISTINCT + 70 )
----
169

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT + 99 + + MAX ( DISTINCT + 70 )
----
169

query I rowsort
SELECT DISTINCT + 88 + + - 48 AS col2
----
40

query I rowsort
SELECT 92 + 69 * - 62
----
-4186

onlyif mysql # DIV for integer division: 
query II rowsort label-7524
SELECT 87 AS col1, 5 + - - 4 DIV - - 64
----
87
5

skipif mysql # not compatible
query II rowsort label-7524
SELECT 87 AS col1, 5 + - - 4 / - - 64
----
87
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7525
SELECT DISTINCT + 39 + - - 11 + + ( - ( - ( 94 ) ) ) AS col2, 68 + COUNT( * ) + + - 40 AS col0
----
144
29

skipif mysql # not compatible
query II rowsort label-7525
SELECT DISTINCT + 39 + - - 11 + + ( - ( - ( 94 ) ) ) AS col2, 68 + COUNT ( * ) + + - 40 AS col0
----
144
29

query II rowsort
SELECT - + 69, + 6 AS col2
----
-69
6

query I rowsort
SELECT - 9 * - 48 AS col0
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT ( + + 79 ) + - + 76 + 11 * - + ( - MIN( ALL 64 ) ) + - 5 + - + 56
----
646

skipif mysql # not compatible
query I rowsort label-7528
SELECT ( + + 79 ) + - + 76 + 11 * - + ( - MIN ( ALL 64 ) ) + - 5 + - + 56
----
646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7529
SELECT ALL 62 * - + 14, - 50 DIV CAST( - NULLIF ( - ( + COUNT( + 48 ) ), 71 ) AS SIGNED ) * 24 * + 28 - - + COUNT( + 65 ) + COUNT( * ) * 79 AS col0
----
-868
-33520

skipif mysql # not compatible
query II rowsort label-7529
SELECT ALL 62 * - + 14, - 50 / CAST ( - NULLIF ( - ( + COUNT ( + 48 ) ), 71 ) AS INTEGER ) * 24 * + 28 - - + COUNT ( + 65 ) + COUNT ( * ) * 79 AS col0
----
-868
-33520

onlyif mysql # aggregate syntax: 
query II rowsort label-7530
SELECT ALL COUNT( * ) - + + 64 AS col1, + 60 AS col0
----
-63
60

skipif mysql # not compatible
query II rowsort label-7530
SELECT ALL COUNT ( * ) - + + 64 AS col1, + 60 AS col0
----
-63
60

query I rowsort
SELECT DISTINCT 97 * - 56 AS col0
----
-5432

query I rowsort
SELECT DISTINCT + 52 * + 68 * ( + 37 ) - + 13 AS col0
----
130819

query I rowsort
SELECT 34 + 94
----
128

query I rowsort
SELECT 56 * - 90 - + 50
----
-5090

query I rowsort
SELECT ( - 31 ) * + 92 AS col0
----
-2852

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7538
SELECT - CAST( NULL AS SIGNED ) * 14 + - AVG ( DISTINCT 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT - CAST ( NULL AS INTEGER ) * 14 + - AVG ( DISTINCT 1 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7539
SELECT DISTINCT + 20 DIV + 36 * + - 61 AS col0, + 20
----
0
20

skipif mysql # not compatible
query II rowsort label-7539
SELECT DISTINCT + 20 / + 36 * + - 61 AS col0, + 20
----
0
20

query I rowsort
SELECT ALL + 2 * 25 * - 75
----
-3750

query I rowsort
SELECT 40 * - 9
----
-360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7542
SELECT 46 - - 46 * 52 DIV + 20 + + COUNT( - ( + 11 ) )
----
166

skipif mysql # not compatible
query I rowsort label-7542
SELECT 46 - - 46 * 52 / + 20 + + COUNT ( - ( + 11 ) )
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7543
SELECT 93 * + 21 * - - 17 * - - 86 - + - 37 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7543
SELECT 93 * + 21 * - - 17 * - - 86 - + - 37 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7544
SELECT - + 97 * + NULLIF ( - - 94, NULLIF ( 33, - COUNT( * ) * COALESCE ( ( - MIN( DISTINCT 73 ) ), + 82 + + - 7 ) ) * + 13 + 82 ) + - - 35 + + COUNT( * ) DIV - 73
----
-9083

skipif mysql # not compatible
query I rowsort label-7544
SELECT - + 97 * + NULLIF ( - - 94, NULLIF ( 33, - COUNT ( * ) * COALESCE ( ( - MIN ( DISTINCT 73 ) ), + 82 + + - 7 ) ) * + 13 + 82 ) + - - 35 + + COUNT ( * ) / - 73
----
-9083

query I rowsort
SELECT - + 92 * - 3 * + 11 AS col2
----
3036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7546
SELECT ALL - CAST( - - 20 AS SIGNED ) + + 55 - - - 24 col2
----
11

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL - CAST ( - - 20 AS INTEGER ) + + 55 - - - 24 col2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7547
SELECT + - MIN( 60 ), + 37 * + 90 AS col2
----
-60
3330

skipif mysql # not compatible
query II rowsort label-7547
SELECT + - MIN ( 60 ), + 37 * + 90 AS col2
----
-60
3330

query I rowsort
SELECT + + 85 * + 24 + + - 18 AS col0
----
2022

onlyif mysql # DIV for integer division: 
query II rowsort label-7549
SELECT + 38 - 75 AS col0, 73 DIV - 72 AS col1
----
-37
-1

skipif mysql # not compatible
query II rowsort label-7549
SELECT + 38 - 75 AS col0, 73 / - 72 AS col1
----
-37
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT ALL 21 + - MIN( + 31 )
----
-10

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL 21 + - MIN ( + 31 )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-7551
SELECT DISTINCT - COALESCE ( 63, 72 DIV - 58, 89 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT - COALESCE ( 63, 72 / - 58, 89 ) AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-7552
SELECT DISTINCT + 3 + + + 36 + - 53 DIV + 44
----
38

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT + 3 + + + 36 + - 53 / + 44
----
38

query I rowsort
SELECT ALL - 70 + 21 AS col2
----
-49

query I rowsort
SELECT + + 65 + - 14
----
51

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7556
SELECT + CAST( 27 AS SIGNED ) * + - MAX( DISTINCT + 57 ) - 63 - - 15
----
-1587

skipif mysql # not compatible
query I rowsort label-7556
SELECT + CAST ( 27 AS INTEGER ) * + - MAX ( DISTINCT + 57 ) - 63 - - 15
----
-1587

query I rowsort
SELECT + - 38 * 62 + 21 + 91
----
-2244

query I rowsort
SELECT ALL + 59 * - 4
----
-236

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7559
SELECT ALL 42 AS col2, COALESCE ( - 89, ( CAST( NULL AS SIGNED ) ) ) AS col2
----
42
-89

skipif mysql # not compatible
query II rowsort label-7559
SELECT ALL 42 AS col2, COALESCE ( - 89, ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
42
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7560
SELECT ALL CAST( NULL AS SIGNED ) / 63 * - MAX( ALL - - 25 ) * + - 86 * + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL CAST ( NULL AS INTEGER ) / 63 * - MAX ( ALL - - 25 ) * + - 86 * + 82 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT + 9 DIV + + 24 * - 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7561
SELECT + 9 / + + 24 * - 26 AS col2
----
0

query I rowsort
SELECT DISTINCT 47 col1
----
47

query I rowsort
SELECT - NULLIF ( - ( - + 23 ), 42 + + + ( + 36 ) / 30 )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7564
SELECT DISTINCT 50 DIV + 42 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT 50 / + 42 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7565
SELECT + 73 DIV - - 75
----
0

skipif mysql # not compatible
query I rowsort label-7565
SELECT + 73 / - - 75
----
0

query I rowsort
SELECT + 91 + + 24 col0
----
115

query I rowsort
SELECT ALL ( - ( - - 18 ) ) * NULLIF ( - 6, - - 87 ) + 62
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7568
SELECT + CASE + 47 WHEN - 65 - - - 55 + + + 13 * - COUNT( * ) THEN NULL ELSE COALESCE ( - 13, - + 23, + CAST( + - 84 AS SIGNED ) DIV - 93, + COALESCE ( - 72, - 43 * - - COUNT( * ), - 13 ) ) - - 52 END, - ( + + 83 ) AS col0
----
39
-83

skipif mysql # not compatible
query II rowsort label-7568
SELECT + CASE + 47 WHEN - 65 - - - 55 + + + 13 * - COUNT ( * ) THEN NULL ELSE COALESCE ( - 13, - + 23, + CAST ( + - 84 AS INTEGER ) / - 93, + COALESCE ( - 72, - 43 * - - COUNT ( * ), - 13 ) ) - - 52 END, - ( + + 83 ) AS col0
----
39
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT + COUNT( * ) * + 81 * 94 * + 37
----
281718

skipif mysql # not compatible
query I rowsort label-7569
SELECT + COUNT ( * ) * + 81 * 94 * + 37
----
281718

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT - 13 + COUNT( 31 ) - 61
----
-73

skipif mysql # not compatible
query I rowsort label-7570
SELECT - 13 + COUNT ( 31 ) - 61
----
-73

query I rowsort
SELECT DISTINCT 55 * 17 + - ( + + 83 )
----
852

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT + COUNT( * ) * - - ( + + COALESCE ( + 11, - + 9 ) ) col2
----
11

skipif mysql # not compatible
query I rowsort label-7572
SELECT + COUNT ( * ) * - - ( + + COALESCE ( + 11, - + 9 ) ) col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7573
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 75 - - 34 + - + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 75 - - 34 + - + 50 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7574
SELECT ALL + + ( - 13 ) DIV - + 67
----
0

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL + + ( - 13 ) / - + 67
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7575
SELECT + 66 DIV + - 18
----
-3

skipif mysql # not compatible
query I rowsort label-7575
SELECT + 66 / + - 18
----
-3

query I rowsort
SELECT ALL 76 * 57 + 61 * NULLIF ( - 59, 89 * 40 ) * + 73 AS col2
----
-258395

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

query I rowsort
SELECT - - 94 * - + 55 + - ( 60 ) col1
----
-5230

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT ALL + SUM( + 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL + SUM ( + 8 ) AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7580
SELECT + + NULLIF ( COUNT( * ), + - 36 ) AS col0, 78 + CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7580
SELECT + + NULLIF ( COUNT ( * ), + - 36 ) AS col0, 78 + CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT ALL + MIN( DISTINCT - + 61 ) * - 68 - 0 - - 49 + + COUNT( * ) + SUM( DISTINCT - - 48 ) AS col2
----
4246

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL + MIN ( DISTINCT - + 61 ) * - 68 - 0 - - 49 + + COUNT ( * ) + SUM ( DISTINCT - - 48 ) AS col2
----
4246

query I rowsort
SELECT DISTINCT + 36 * + 82
----
2952

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7584
SELECT SUM( - ( + 56 ) ) AS col2, 0 * - NULLIF ( 22, + 20 - + - 78 ) AS col2
----
-56
0

skipif mysql # not compatible
query II rowsort label-7584
SELECT SUM ( - ( + 56 ) ) AS col2, 0 * - NULLIF ( 22, + 20 - + - 78 ) AS col2
----
-56
0

query II rowsort
SELECT DISTINCT + 16, 67 AS col2
----
16
67

query I rowsort
SELECT - - 92 * - 14 AS col0
----
-1288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7587
SELECT - 10 - 88 * - - CAST( - 47 AS SIGNED ) * + + 84 + - 96 + + ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7587
SELECT - 10 - 88 * - - CAST ( - 47 AS INTEGER ) * + + 84 + - 96 + + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7588
SELECT DISTINCT CAST( - NULLIF ( - - COUNT( * ), + 10 ) AS SIGNED ) AS col0, - ( - + NULLIF ( + COUNT( * ), COUNT( * ) ) ) + - 65 - - 57
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7588
SELECT DISTINCT CAST ( - NULLIF ( - - COUNT ( * ), + 10 ) AS INTEGER ) AS col0, - ( - + NULLIF ( + COUNT ( * ), COUNT ( * ) ) ) + - 65 - - 57
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT + SUM( + 45 ) - - 55 + 42 * + 15
----
730

skipif mysql # not compatible
query I rowsort label-7589
SELECT + SUM ( + 45 ) - - 55 + 42 * + 15
----
730

query II rowsort
SELECT ALL + 28 * + + 74, 63 AS col1
----
2072
63

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7592
SELECT - 50 + + CASE + MIN( ALL 47 ) WHEN - - CAST( NULL AS SIGNED ) THEN - NULLIF ( - CAST( - 79 AS SIGNED ), - COUNT( * ) + 46 + - 47 * - 27 * + COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT - 50 + + CASE + MIN ( ALL 47 ) WHEN - - CAST ( NULL AS INTEGER ) THEN - NULLIF ( - CAST ( - 79 AS INTEGER ), - COUNT ( * ) + 46 + - 47 * - 27 * + COUNT ( * ) ) END
----
NULL

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

query I rowsort
SELECT - 67 * + 96
----
-6432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7595
SELECT ALL - COALESCE ( - 20, - COUNT( * ), + MAX( ALL + + 88 ) + - 95 ) * 52 + - 38 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL - COALESCE ( - 20, - COUNT ( * ), + MAX ( ALL + + 88 ) + - 95 ) * 52 + - 38 + + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7597
SELECT + 37 * - 6, COUNT( * ) AS col1
----
-222
1

skipif mysql # not compatible
query II rowsort label-7597
SELECT + 37 * - 6, COUNT ( * ) AS col1
----
-222
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT + SUM( ALL - 95 ) + + + COUNT( * ) + - 43 + + - 1 AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-7598
SELECT + SUM ( ALL - 95 ) + + + COUNT ( * ) + - 43 + + - 1 AS col2
----
-138

query I rowsort
SELECT - 8 * 35
----
-280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7600
SELECT + CAST( 38 AS SIGNED ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7600
SELECT + CAST ( 38 AS INTEGER ) AS col1
----
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT + CASE - ( + ( 81 ) ) WHEN - - COALESCE ( - 2, + 85 + ( - + ( + 65 ) ) + - COUNT( * ), - 19 ) THEN + 82 WHEN SUM( - 45 ) THEN 95 END * + + COUNT( * ) + - 60 + 11 - + - 62 / + 91 + 85 * ( + - CASE COUNT( * ) WHEN + 42 THEN NULL WHEN 52 THEN 20 WHEN + + 9 * + - 41 THEN + 58 - + + 70 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT + CASE - ( + ( 81 ) ) WHEN - - COALESCE ( - 2, + 85 + ( - + ( + 65 ) ) + - COUNT ( * ), - 19 ) THEN + 82 WHEN SUM ( - 45 ) THEN 95 END * + + COUNT ( * ) + - 60 + 11 - + - 62 / + 91 + 85 * ( + - CASE COUNT ( * ) WHEN + 42 THEN NULL WHEN 52 THEN 20 WHEN + + 9 * + - 41 THEN + 58 - + + 70 ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT ALL 3 + - 86 - + - 99 col1
----
16

query I rowsort
SELECT DISTINCT 42 * - + 6 AS col0
----
-252

query I rowsort
SELECT ALL 69 - CASE + 72 WHEN + 89 + + 64 + 1 THEN + + ( + 60 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 29 * + 96 * + COALESCE ( - 22, - - 8 * 55 )
----
-61248

query I rowsort
SELECT + ( + 72 ) + - - 42 col2
----
114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT + COUNT( * ) - - + COALESCE ( + - 34, - 91 + - - 77, + SUM( ALL + 98 ) ) * 73 + - + 99 + + ( - 23 ) + 84
----
-2519

skipif mysql # not compatible
query I rowsort label-7609
SELECT + COUNT ( * ) - - + COALESCE ( + - 34, - 91 + - - 77, + SUM ( ALL + 98 ) ) * 73 + - + 99 + + ( - 23 ) + 84
----
-2519

query I rowsort
SELECT ALL - ( - 29 ) AS col0
----
29

query I rowsort
SELECT ( - - 46 ) + 48 AS col0
----
94

query I rowsort
SELECT + 93 * + 33
----
3069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7613
SELECT - COUNT( * ) / + 15 + 86 + - CASE WHEN NULLIF ( + MAX( DISTINCT + 38 ), + - 41 ) <> + - ( + + 15 ) / - COUNT( * ) + + + 70 * - 68 THEN + 91 WHEN - COUNT( * ) / + 59 IS NULL THEN + CAST( NULL AS SIGNED ) * 71 - - 93 ELSE NULL END * MAX( DISTINCT + - 34 ) * + NULLIF ( CAST( NULL AS SIGNED ), 62 * + 14 * 17 * - 99 + - - 16 + - + 88 * + ( ( - CAST( - 75 AS SIGNED ) ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7613
SELECT - COUNT ( * ) / + 15 + 86 + - CASE WHEN NULLIF ( + MAX ( DISTINCT + 38 ), + - 41 ) <> + - ( + + 15 ) / - COUNT ( * ) + + + 70 * - 68 THEN + 91 WHEN - COUNT ( * ) / + 59 IS NULL THEN + CAST ( NULL AS INTEGER ) * 71 - - 93 ELSE NULL END * MAX ( DISTINCT + - 34 ) * + NULLIF ( CAST ( NULL AS INTEGER ), 62 * + 14 * 17 * - 99 + - - 16 + - + 88 * + ( ( - CAST ( - 75 AS INTEGER ) ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7614
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) DIV - 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) / - 43 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7615
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + 15 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT COUNT( ALL + 95 ) * - - 13
----
13

skipif mysql # not compatible
query I rowsort label-7616
SELECT COUNT ( ALL + 95 ) * - - 13
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7617
SELECT 34 + 74 * - COUNT( * ) * ( 33 ) * - CAST( - 9 AS SIGNED )
----
-21944

skipif mysql # not compatible
query I rowsort label-7617
SELECT 34 + 74 * - COUNT ( * ) * ( 33 ) * - CAST ( - 9 AS INTEGER )
----
-21944

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL - ( + + 95 ) * + - SUM( ALL - 79 )
----
-7505

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL - ( + + 95 ) * + - SUM ( ALL - 79 )
----
-7505

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7620
SELECT 40 DIV COUNT( - 89 )
----
40

skipif mysql # not compatible
query I rowsort label-7620
SELECT 40 / COUNT ( - 89 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT ALL + NULLIF ( - + MAX( + 82 ), - 76 * - - COALESCE ( 7, + 70, MIN( - ( - - 4 ) ) + - - 2 + - 73 - - - 31 * - - 24 * + 34 + - 52 ) + - ( 47 ) ) * + 72 * 35 AS col0
----
-206640

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL + NULLIF ( - + MAX ( + 82 ), - 76 * - - COALESCE ( 7, + 70, MIN ( - ( - - 4 ) ) + - - 2 + - 73 - - - 31 * - - 24 * + 34 + - 52 ) + - ( 47 ) ) * + 72 * 35 AS col0
----
-206640

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

query II rowsort
SELECT 30 + - ( + - 76 ), + NULLIF ( + 89, + 36 ) AS col1
----
106
89

query I rowsort
SELECT DISTINCT + 61 + + 46 + - 53
----
54

query I rowsort
SELECT ALL - 97 + + 77 AS col0
----
-20

query I rowsort
SELECT ALL + 43 + + ( - + 61 ) AS col1
----
-18

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7628
SELECT - 13 AS col0, 14 / + CASE 76 WHEN 15 * - 8 THEN NULL WHEN - 13 + 99 / + 66 THEN + COUNT( * ) ELSE NULL END * - - 30
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-7628
SELECT - 13 AS col0, 14 / + CASE 76 WHEN 15 * - 8 THEN NULL WHEN - 13 + 99 / + 66 THEN + COUNT ( * ) ELSE NULL END * - - 30
----
-13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT DISTINCT + ( NULLIF ( + 29, + + MAX( ALL - ( - 75 ) ) ) ) + + 6 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT + ( NULLIF ( + 29, + + MAX ( ALL - ( - 75 ) ) ) ) + + 6 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL - 98 + - 30 + - - COUNT( ALL - 55 ) AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL - 98 + - 30 + - - COUNT ( ALL - 55 ) AS col0
----
-127

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

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL + 43 + - - COUNT ( * ) AS col2
----
44

query I rowsort
SELECT 46 + + 23 AS col0
----
69

query I rowsort
SELECT 55 + - 8
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL COUNT( + 62 ) + - ( + MAX( ( - 17 ) ) ) - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL COUNT ( + 62 ) + - ( + MAX ( ( - 17 ) ) ) - COUNT ( * )
----
17

query II rowsort
SELECT DISTINCT - 15, 32 AS col1
----
-15
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7636
SELECT - 89 / 47 * + + 2 + 30 + CAST( NULL AS SIGNED ) + + 83, 38 AS col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-7636
SELECT - 89 / 47 * + + 2 + 30 + CAST ( NULL AS INTEGER ) + + 83, 38 AS col1
----
NULL
38

query I rowsort
SELECT DISTINCT - + 80 * + + 67
----
-5360

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

query I rowsort
SELECT 64 + - 17 * 47 AS col2
----
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT - ( - ( - + 34 ) ) * + COALESCE ( 99, - 43, - + 81 * + 10 ) + - COUNT( * ) * - 35 * + ( 6 ) + + + CASE 34 WHEN - 43 THEN NULL WHEN - 2 + + 43 THEN 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT - ( - ( - + 34 ) ) * + COALESCE ( 99, - 43, - + 81 * + 10 ) + - COUNT ( * ) * - 35 * + ( 6 ) + + + CASE 34 WHEN - 43 THEN NULL WHEN - 2 + + 43 THEN 50 END
----
NULL

query I rowsort
SELECT DISTINCT 72 - + 90
----
-18

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

skipif mysql # not compatible
query I rowsort label-7642
SELECT + COUNT ( * ) / + 44 col1
----
0

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

query I rowsort
SELECT ALL 3 * 68
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT SUM( - 36 ) * + ( + 94 )
----
-3384

skipif mysql # not compatible
query I rowsort label-7645
SELECT SUM ( - 36 ) * + ( + 94 )
----
-3384

query I rowsort
SELECT DISTINCT - + ( + COALESCE ( - 68, - + 34 + + 42 ) )
----
68

query I rowsort
SELECT 46 * 38 AS col0
----
1748

query I rowsort
SELECT DISTINCT 79 * - 74 col0
----
-5846

onlyif mysql # aggregate syntax: 
query II rowsort label-7649
SELECT CASE + MIN( 39 ) WHEN ( 79 ) THEN 73 * + 84 ELSE NULL END * + - 88 AS col1, 36
----
NULL
36

skipif mysql # not compatible
query II rowsort label-7649
SELECT CASE + MIN ( 39 ) WHEN ( 79 ) THEN 73 * + 84 ELSE NULL END * + - 88 AS col1, 36
----
NULL
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7650
SELECT 74 * - - 31 - + + MAX( DISTINCT CAST( NULL AS DECIMAL ) ) + + - 38 / - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT 74 * - - 31 - + + MAX ( DISTINCT CAST ( NULL AS REAL ) ) + + - 38 / - + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL CAST ( NULL AS INTEGER ) + - 17 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7652
SELECT ( + - COALESCE ( 95, CAST( NULL AS SIGNED ) ) ) - 78 AS col1
----
-173

skipif mysql # not compatible
query I rowsort label-7652
SELECT ( + - COALESCE ( 95, CAST ( NULL AS INTEGER ) ) ) - 78 AS col1
----
-173

onlyif mysql # DIV for integer division: 
query II rowsort label-7653
SELECT 83 AS col0, - 64 DIV 55
----
83
-1

skipif mysql # not compatible
query II rowsort label-7653
SELECT 83 AS col0, - 64 / 55
----
83
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7654
SELECT DISTINCT + 29 + + CAST( + 84 AS SIGNED )
----
113

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT + 29 + + CAST ( + 84 AS INTEGER )
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-7655
SELECT ALL - 74 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL - 74 / - 77
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), - 46 )
----
NULL

query I rowsort
SELECT ALL - 2 + + + 83
----
81

query I rowsort
SELECT DISTINCT 44 + 37 - 41 AS col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7660
SELECT 77 AS col1, COUNT( * ) + + 23 + - COUNT( * ) + + - 9 * - - 51
----
77
-436

skipif mysql # not compatible
query II rowsort label-7660
SELECT 77 AS col1, COUNT ( * ) + + 23 + - COUNT ( * ) + + - 9 * - - 51
----
77
-436

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

skipif mysql # not compatible
query I rowsort label-7661
SELECT - COUNT ( * ) / - ( + 34 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT DISTINCT 20 + - - COALESCE ( - - COUNT( * ), + + 17 * + 4 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7662
SELECT DISTINCT 20 + - - COALESCE ( - - COUNT ( * ), + + 17 * + 4 ) AS col1
----
21

query II rowsort
SELECT - NULLIF ( - ( 81 ), + 4 ), - 90 AS col2
----
81
-90

query II rowsort
SELECT 21, + CASE - 27 WHEN - ( - - 91 ) THEN - 34 ELSE NULL END AS col0
----
21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT - ( - CASE + + 62 WHEN + NULLIF ( 2, + 82 + - 35 ) + - 59 * + COUNT( * ) * 73 * + 69 THEN NULL WHEN - 25 THEN SUM( - 8 ) END ) * - 96 * - 5 + + + 27 + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT - ( - CASE + + 62 WHEN + NULLIF ( 2, + 82 + - 35 ) + - 59 * + COUNT ( * ) * 73 * + 69 THEN NULL WHEN - 25 THEN SUM ( - 8 ) END ) * - 96 * - 5 + + + 27 + 14 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL MAX ( ALL - - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT - CASE + 44 WHEN ( - 73 ) + + CASE WHEN NULL IS NULL THEN NULL ELSE - 13 END * - COUNT( * ) + + COUNT( * ) THEN - + ( - 46 ) WHEN 56 + - ( - + COALESCE ( ( COUNT( * ) ), ( - 68 ) ) ) THEN - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT - CASE + 44 WHEN ( - 73 ) + + CASE WHEN NULL IS NULL THEN NULL ELSE - 13 END * - COUNT ( * ) + + COUNT ( * ) THEN - + ( - 46 ) WHEN 56 + - ( - + COALESCE ( ( COUNT ( * ) ), ( - 68 ) ) ) THEN - 43 END
----
NULL

query II rowsort
SELECT 15 AS col2, + 73 + 93
----
15
166

query I rowsort
SELECT ALL - 49 - + - 91 AS col0
----
42

query II rowsort
SELECT - 46 * + 91 col0, 49 + 11 col0
----
-4186
60

onlyif mysql # aggregate syntax: 
query II rowsort label-7671
SELECT ALL MIN( - - 8 ) AS col1, COUNT( * )
----
8
1

skipif mysql # not compatible
query II rowsort label-7671
SELECT ALL MIN ( - - 8 ) AS col1, COUNT ( * )
----
8
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7672
SELECT + NULLIF ( - - 18, - NULLIF ( - CAST( + 74 AS SIGNED ), 29 / 95 + 28 ) )
----
18

skipif mysql # not compatible
query I rowsort label-7672
SELECT + NULLIF ( - - 18, - NULLIF ( - CAST ( + 74 AS INTEGER ), 29 / 95 + 28 ) )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7673
SELECT - + 37 * - CAST( - - 77 AS SIGNED )
----
2849

skipif mysql # not compatible
query I rowsort label-7673
SELECT - + 37 * - CAST ( - - 77 AS INTEGER )
----
2849

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT 21 * - + SUM( - - 61 ) + - COALESCE ( + 64, - 92, COUNT( * ) ) + + - 84 * + 55 AS col2
----
-5965

skipif mysql # not compatible
query I rowsort label-7675
SELECT 21 * - + SUM ( - - 61 ) + - COALESCE ( + 64, - 92, COUNT ( * ) ) + + - 84 * + 55 AS col2
----
-5965

query I rowsort
SELECT + NULLIF ( + - 45, + 25 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT + - COUNT( DISTINCT + - 73 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7677
SELECT + - COUNT ( DISTINCT + - 73 ) col2
----
-1

query I rowsort
SELECT ALL + - 65 col0
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7679
SELECT + 82 DIV 84 * COALESCE ( + 11, 51 + - + 40, - + 33 ) + - 84 + + + 73 + + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-7679
SELECT + 82 / 84 * COALESCE ( + 11, 51 + - + 40, - + 33 ) + - 84 + + + 73 + + COUNT ( * )
----
-10

query I rowsort
SELECT ALL + - 11 * 62 col0
----
-682

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT - - 55 / + - 23 + - CASE - COUNT( * ) WHEN 88 THEN + COUNT( * ) + - 39 WHEN - 33 / + AVG ( + 94 ) + - NULLIF ( + 48, + 45 ) + - 19 THEN NULL WHEN + 51 + + - 9 THEN 86 * + + 92 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT - - 55 / + - 23 + - CASE - COUNT ( * ) WHEN 88 THEN + COUNT ( * ) + - 39 WHEN - 33 / + AVG ( + 94 ) + - NULLIF ( + 48, + 45 ) + - 19 THEN NULL WHEN + 51 + + - 9 THEN 86 * + + 92 ELSE NULL END AS col0
----
NULL

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

query I rowsort
SELECT - + ( + 24 ) - + + ( - + 46 ) AS col0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7684
SELECT - 75 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7684
SELECT - 75 / 97 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT - 24 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-7685
SELECT - 24 / + 69
----
0

query I rowsort
SELECT - 37 + + 21 AS col0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7687
SELECT - - MAX( DISTINCT - 53 ) DIV 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7687
SELECT - - MAX ( DISTINCT - 53 ) / 75 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7688
SELECT + 71 AS col2, + CAST( - ( + 71 ) AS SIGNED ) * + 60 + - AVG ( ALL - CASE + 9 WHEN - CAST( NULL AS SIGNED ) THEN - 89 + - 48 ELSE NULL END ) AS col2
----
71
NULL

skipif mysql # not compatible
query II rowsort label-7688
SELECT + 71 AS col2, + CAST ( - ( + 71 ) AS INTEGER ) * + 60 + - AVG ( ALL - CASE + 9 WHEN - CAST ( NULL AS INTEGER ) THEN - 89 + - 48 ELSE NULL END ) AS col2
----
71
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7689
SELECT 79 * - 25 * - - 66 + - + 14 DIV - 52
----
-130350

skipif mysql # not compatible
query I rowsort label-7689
SELECT 79 * - 25 * - - 66 + - + 14 / - 52
----
-130350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7690
SELECT ALL + 21 * - + CAST( NULL AS SIGNED ) + + 93 + - COUNT( * ) * ( ( + 52 ) ) + + 61 * 41 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL + 21 * - + CAST ( NULL AS INTEGER ) + + 93 + - COUNT ( * ) * ( ( + 52 ) ) + + 61 * 41 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT + COUNT( * ) + + COUNT( - ( 5 ) ) - + - 78
----
80

skipif mysql # not compatible
query I rowsort label-7691
SELECT + COUNT ( * ) + + COUNT ( - ( 5 ) ) - + - 78
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT DISTINCT 97 * - SUM( ALL 85 ) AS col1
----
-8245

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT 97 * - SUM ( ALL 85 ) AS col1
----
-8245

query I rowsort
SELECT + 21 + 83 col1
----
104

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

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL 91 + + COUNT ( * ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + 97 + COUNT( * ) * - + 4 - - + CASE ( + - 36 ) WHEN + + 52 THEN + - 27 * + 20 * + 73 WHEN + - 93 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT + 97 + COUNT ( * ) * - + 4 - - + CASE ( + - 36 ) WHEN + + 52 THEN + - 27 * + 20 * + 73 WHEN + - 93 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT - ( CASE - - 7 WHEN + 24 * 4 THEN COUNT( * ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT - ( CASE - - 7 WHEN + 24 * 4 THEN COUNT ( * ) ELSE NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7697
SELECT ALL 79 + - + 19 / ( 30 ) + - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL 79 + - + 19 / ( 30 ) + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( + + 20, + + 13 )
----
-20

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

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

query I rowsort
SELECT ALL ( + 5 ) - + 90 + 38 AS col0
----
-47

query I rowsort
SELECT DISTINCT 66 - + 7 AS col1
----
59

query I rowsort
SELECT ALL + 8 * - + 12
----
-96

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7704
SELECT DISTINCT 30 DIV 32 AS col1, + 60
----
0
60

skipif mysql # not compatible
query II rowsort label-7704
SELECT DISTINCT 30 / 32 AS col1, + 60
----
0
60

query I rowsort
SELECT ALL - 72 - + 84
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-7706
SELECT + 96 DIV + 62 + ( - - 91 )
----
92

skipif mysql # not compatible
query I rowsort label-7706
SELECT + 96 / + 62 + ( - - 91 )
----
92

query I rowsort
SELECT ALL 36 * - 60
----
-2160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7708
SELECT + CAST( NULL AS DECIMAL ) * + 13 * + 85 * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7708
SELECT + CAST ( NULL AS REAL ) * + 13 * + 85 * 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT - COUNT( DISTINCT ( + + 31 ) ) * COALESCE ( + 14, + - 0, 69 * + NULLIF ( - 90, + COUNT( * ) ) + + NULLIF ( + + 36, + 32 ) - - 58 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-7709
SELECT - COUNT ( DISTINCT ( + + 31 ) ) * COALESCE ( + 14, + - 0, 69 * + NULLIF ( - 90, + COUNT ( * ) ) + + NULLIF ( + + 36, + 32 ) - - 58 ) AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7710
SELECT ALL - + MIN( - 55 ) * + + CAST( + 23 AS SIGNED ) + 18 * 19 + - ( + - 11 ) * - ( + 84 )
----
683

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL - + MIN ( - 55 ) * + + CAST ( + 23 AS INTEGER ) + 18 * 19 + - ( + - 11 ) * - ( + 84 )
----
683

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT DISTINCT 98 * - 71 * + COUNT( * ) + + 70 AS col0
----
-6888

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT 98 * - 71 * + COUNT ( * ) + + 70 AS col0
----
-6888

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT ALL + CASE - - 75 WHEN 28 * + + ( - 21 ) * 62 + 46 + COUNT( * ) THEN - + 76 * COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT ALL + CASE - - 75 WHEN 28 * + + ( - 21 ) * 62 + 46 + COUNT ( * ) THEN - + 76 * COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT - - 25 * + + 65
----
1625

query I rowsort
SELECT ALL - 20 * - 88 * - 91
----
-160160

query I rowsort
SELECT + - 65 * - 58 * 95 col2
----
358150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7716
SELECT ALL + + 87 DIV + 46 + - - 84 + + - 47 + + 5 AS col0, - COUNT( * ) * + - 90 AS col1
----
43
90

skipif mysql # not compatible
query II rowsort label-7716
SELECT ALL + + 87 / + 46 + - - 84 + + - 47 + + 5 AS col0, - COUNT ( * ) * + - 90 AS col1
----
43
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT 68 * - - 22 + + - COUNT( * ) + - 45
----
1450

skipif mysql # not compatible
query I rowsort label-7717
SELECT 68 * - - 22 + + - COUNT ( * ) + - 45
----
1450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7718
SELECT ALL + - CAST( - COUNT( * ) AS SIGNED ) * + 21 + - 72 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL + - CAST ( - COUNT ( * ) AS INTEGER ) * + 21 + - 72 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-7719
SELECT + COUNT( * ), MAX( ALL + - ( 72 ) ) * + - 72 - - - COUNT( * ) * 36 + + 70 * + 25 - + 72 AS col0
----
1
6826

skipif mysql # not compatible
query II rowsort label-7719
SELECT + COUNT ( * ), MAX ( ALL + - ( 72 ) ) * + - 72 - - - COUNT ( * ) * 36 + + 70 * + 25 - + 72 AS col0
----
1
6826

query I rowsort
SELECT DISTINCT 17 * + 44 + 30 AS col0
----
778

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT DISTINCT + 95 * + - MIN( 11 ) + - + 34 AS col1
----
-1079

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT + 95 * + - MIN ( 11 ) + - + 34 AS col1
----
-1079

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT 23 + + 34 DIV - + 67 * 83 col2
----
23

skipif mysql # not compatible
query I rowsort label-7722
SELECT 23 + + 34 / - + 67 * 83 col2
----
23

query I rowsort
SELECT ALL - 11 + - 67 + + 53 AS col0
----
-25

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

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

query I rowsort
SELECT 39 * - + 60
----
-2340

query I rowsort
SELECT 75 * + + 28
----
2100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7727
SELECT DISTINCT - 39 DIV - + 67 * - COUNT( - - 95 )
----
0

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT - 39 / - + 67 * - COUNT ( - - 95 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT 49 - ( + ( ( COALESCE ( - MAX( ALL + 75 ), + NULLIF ( + MIN( DISTINCT + + NULLIF ( - 10, + 85 * - + 34 ) ), - 28 * + 64 ) ) ) ) ) + - 0 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-7728
SELECT 49 - ( + ( ( COALESCE ( - MAX ( ALL + 75 ), + NULLIF ( + MIN ( DISTINCT + + NULLIF ( - 10, + 85 * - + 34 ) ), - 28 * + 64 ) ) ) ) ) + - 0 AS col0
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-7729
SELECT ALL 32 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL 32 / 40
----
0

query I rowsort
SELECT 58 + 68 AS col1
----
126

query I rowsort
SELECT ALL 49 * 7
----
343

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT 65 * + + NULLIF ( - ( + + NULLIF ( + - 69, MIN( 29 ) ) ), 13 / + + 79 + + COUNT( * ) ) * - 33
----
-148005

skipif mysql # not compatible
query I rowsort label-7732
SELECT 65 * + + NULLIF ( - ( + + NULLIF ( + - 69, MIN ( 29 ) ) ), 13 / + + 79 + + COUNT ( * ) ) * - 33
----
-148005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7733
SELECT DISTINCT - 39 DIV + + COUNT( * ) AS col0
----
-39

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7734
SELECT ALL 25 - 37 * + COUNT( * ) DIV COALESCE ( - 69, + SUM( 17 ) ) * COUNT( * ) AS col1, + 1 AS col0
----
25
1

skipif mysql # not compatible
query II rowsort label-7734
SELECT ALL 25 - 37 * + COUNT ( * ) / COALESCE ( - 69, + SUM ( 17 ) ) * COUNT ( * ) AS col1, + 1 AS col0
----
25
1

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

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

query II rowsort
SELECT - 24 AS col1, - 17 + - 39 AS col2
----
-24
-56

query I rowsort
SELECT ALL 89 * - ( - 0 ) AS col0
----
0

query I rowsort
SELECT 3 - 85
----
-82

query I rowsort
SELECT DISTINCT + 43 * - + 40 AS col0
----
-1720

query II rowsort
SELECT ALL + 6, 68 AS col0
----
6
68

query I rowsort
SELECT - 94 + 35 AS col0
----
-59

query I rowsort
SELECT + ( - 64 ) * + 22 AS col0
----
-1408

onlyif mysql # aggregate syntax: 
query II rowsort label-7743
SELECT COUNT( * ) + 63 - - - 9 AS col1, MAX( DISTINCT + 41 ) col0
----
55
41

skipif mysql # not compatible
query II rowsort label-7743
SELECT COUNT ( * ) + 63 - - - 9 AS col1, MAX ( DISTINCT + 41 ) col0
----
55
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7744
SELECT + ( + 38 ) DIV + ( - 62 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7744
SELECT + ( + 38 ) / + ( - 62 ) AS col0
----
0

query I rowsort
SELECT 80 + - + 66 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL 27 * - + MIN( - ( 13 ) )
----
351

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL 27 * - + MIN ( - ( 13 ) )
----
351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7747
SELECT - ( - COUNT( * ) ) DIV 56 DIV - 95 + - COALESCE ( + - 27, + 51 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7747
SELECT - ( - COUNT ( * ) ) / 56 / - 95 + - COALESCE ( + - 27, + 51 ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7748
SELECT COUNT( * ) * + + MAX( + 13 ) AS col1, ( 64 ) AS col1
----
13
64

skipif mysql # not compatible
query II rowsort label-7748
SELECT COUNT ( * ) * + + MAX ( + 13 ) AS col1, ( 64 ) AS col1
----
13
64

query I rowsort
SELECT 98 + - 90 AS col0
----
8

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

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

query I rowsort
SELECT + NULLIF ( - + 51, - 4 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7752
SELECT COUNT( * ) DIV + 51 + 3 * COALESCE ( + - 98, - COUNT( * ) * - - 39, 41 ) * 40 AS col2
----
-11760

skipif mysql # not compatible
query I rowsort label-7752
SELECT COUNT ( * ) / + 51 + 3 * COALESCE ( + - 98, - COUNT ( * ) * - - 39, 41 ) * 40 AS col2
----
-11760

query I rowsort
SELECT ALL - NULLIF ( + 37, - 66 ) + + 11 * - - 81
----
854

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT + 46 + - COUNT( * ) - 0 * COUNT( + 37 ) * COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-7755
SELECT + 46 + - COUNT ( * ) - 0 * COUNT ( + 37 ) * COUNT ( * )
----
45

query I rowsort
SELECT ALL + 47 + + + 22 AS col1
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-7757
SELECT 20, 94 DIV - + 11 AS col2
----
20
-8

skipif mysql # not compatible
query II rowsort label-7757
SELECT 20, 94 / - + 11 AS col2
----
20
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7758
SELECT + CAST( NULL AS SIGNED ) col0, - 22 col1
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-7758
SELECT + CAST ( NULL AS INTEGER ) col0, - 22 col1
----
NULL
-22

query I rowsort
SELECT ALL - ( + 46 ) + + + NULLIF ( + 71, - + 86 ) * 71
----
4995

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT MIN( ALL + - 79 ) + + 68 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7761
SELECT MIN ( ALL + - 79 ) + + 68 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT SUM( DISTINCT + 79 ) * - + COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7762
SELECT SUM ( DISTINCT + 79 ) * - + COUNT ( * ) AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7763
SELECT + 75 * + - 64 * + 74 + + - CAST( NULL AS SIGNED ) AS col2, 99 AS col1
----
NULL
99

skipif mysql # not compatible
query II rowsort label-7763
SELECT + 75 * + - 64 * + 74 + + - CAST ( NULL AS INTEGER ) AS col2, 99 AS col1
----
NULL
99

query I rowsort
SELECT ALL - NULLIF ( 45, - 13 )
----
-45

query I rowsort
SELECT 68 + - + 62 AS col1
----
6

query I rowsort
SELECT 74 * + 40 * + - 69
----
-204240

query I rowsort
SELECT 84 + + 26
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT 93 + - - 49 * - + COUNT( * ) - 44
----
0

skipif mysql # not compatible
query I rowsort label-7768
SELECT 93 + - - 49 * - + COUNT ( * ) - 44
----
0

query I rowsort
SELECT 64 * + + 95 AS col2
----
6080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7770
SELECT 0 * - COALESCE ( - MIN( + 77 ), - - 6 DIV - + 18 ) DIV 30 col0
----
0

skipif mysql # not compatible
query I rowsort label-7770
SELECT 0 * - COALESCE ( - MIN ( + 77 ), - - 6 / - + 18 ) / 30 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT COUNT( * ) + ( + + 12 ) * + - ( + ( + - 89 ) ) + + - 7 * - - 70
----
579

skipif mysql # not compatible
query I rowsort label-7771
SELECT COUNT ( * ) + ( + + 12 ) * + - ( + ( + - 89 ) ) + + - 7 * - - 70
----
579

query I rowsort
SELECT 74 * - - NULLIF ( + - 28, - + 66 - - COALESCE ( - 53, + 3 ) + - 93 + + 43 * - 91 ) * COALESCE ( + + 15, + - 47 )
----
-31080

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT ALL MIN( ALL - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL MIN ( ALL - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT DISTINCT MIN( - 77 ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT MIN ( - 77 ) col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT DISTINCT 27 * + SUM( 54 )
----
1458

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT 27 * + SUM ( 54 )
----
1458

query I rowsort
SELECT 33 + 73 * + - AVG ( ALL + ( - ( - + 13 ) ) ) - - - CASE - 93 WHEN ( 37 ) THEN - - 23 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7777
SELECT DISTINCT 16 + + - 64 - COUNT( - 64 ) AS col0, - 30
----
-49
-30

skipif mysql # not compatible
query II rowsort label-7777
SELECT DISTINCT 16 + + - 64 - COUNT ( - 64 ) AS col0, - 30
----
-49
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7778
SELECT ALL + 12 + - SUM( - 30 ) - - 9 + + + COALESCE ( - 65, + + COUNT( * ) DIV 18 + + 44, + + 2 - - 83, - SUM( DISTINCT - - 80 ) ) * 38
----
-2419

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL + 12 + - SUM ( - 30 ) - - 9 + + + COALESCE ( - 65, + + COUNT ( * ) / 18 + + 44, + + 2 - - 83, - SUM ( DISTINCT - - 80 ) ) * 38
----
-2419

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT COUNT( DISTINCT + 31 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7779
SELECT COUNT ( DISTINCT + 31 ) AS col2
----
1

query I rowsort
SELECT 12 * - 12
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7781
SELECT DISTINCT - + 49 * - CAST( NULL AS SIGNED ) AS col0, 3
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7781
SELECT DISTINCT - + 49 * - CAST ( NULL AS INTEGER ) AS col0, 3
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT DISTINCT + - 1 * - COUNT( * ) + - - SUM( ALL 88 ) + + 74 - COUNT( * )
----
162

skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT + - 1 * - COUNT ( * ) + - - SUM ( ALL 88 ) + + 74 - COUNT ( * )
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT DISTINCT + 46 * 11 * 52 + - + COUNT( * ) * + 27
----
26285

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT + 46 * 11 * 52 + - + COUNT ( * ) * + 27
----
26285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7784
SELECT ALL CAST( NULL AS SIGNED ) * 82 * 37 + + 64 + + - 53 / + + 78 * - - 26 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL CAST ( NULL AS INTEGER ) * 82 * 37 + + 64 + + - 53 / + + 78 * - - 26 col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT ALL ( 11 ) * + - 92 * NULLIF ( 55, ( - 91 ) * - + ( + 46 ) ) - - - 71 * COUNT( * ) AS col0
----
-55731

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL ( 11 ) * + - 92 * NULLIF ( 55, ( - 91 ) * - + ( + 46 ) ) - - - 71 * COUNT ( * ) AS col0
----
-55731

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

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

query I rowsort
SELECT + 44 * + 19 AS col0
----
836

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7789
SELECT ALL 56 * + 60 * - 74 AS col1, + CAST( NULL AS SIGNED ) + 78 AS col0
----
-248640
NULL

skipif mysql # not compatible
query II rowsort label-7789
SELECT ALL 56 * + 60 * - 74 AS col1, + CAST ( NULL AS INTEGER ) + 78 AS col0
----
-248640
NULL

query I rowsort
SELECT ( - + 19 ) * 13 + + 20 AS col2
----
-227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7791
SELECT ALL 74 * COUNT( * ) DIV - 57
----
-1

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL 74 * COUNT ( * ) / - 57
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT COUNT( DISTINCT - 50 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7792
SELECT COUNT ( DISTINCT - 50 ) AS col1
----
1

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

query I rowsort
SELECT + 20 * 22 AS col0
----
440

query I rowsort
SELECT + NULLIF ( + + 94, 89 ) * 7 + - 6
----
652

onlyif mysql # aggregate syntax: 
query III rowsort label-7796
SELECT COUNT( * ) AS col0, ( - 72 ), 34 - - + 56 * + 19 + + 15 + + 14 + - COUNT( * ) * 88 + + + 29 AS col0
----
1
-72
1068

skipif mysql # not compatible
query III rowsort label-7796
SELECT COUNT ( * ) AS col0, ( - 72 ), 34 - - + 56 * + 19 + + 15 + + 14 + - COUNT ( * ) * 88 + + + 29 AS col0
----
1
-72
1068

query I rowsort
SELECT + COALESCE ( - 15, + + 90 ) AS col0
----
-15

query I rowsort
SELECT - 78 * 14
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT ALL MIN( DISTINCT + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL MIN ( DISTINCT + 76 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7800
SELECT DISTINCT 72 + + CAST( + + MAX( ALL + 3 ) AS SIGNED ) * 19 AS col1
----
129

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT 72 + + CAST ( + + MAX ( ALL + 3 ) AS INTEGER ) * 19 AS col1
----
129

query I rowsort
SELECT ALL - 86 * 20 AS col2
----
-1720

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7802
SELECT - 1 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7802
SELECT - 1 + CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT DISTINCT 65 * ( + 46 )
----
2990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7805
SELECT ALL + 14 + MAX( DISTINCT 9 ) DIV - COUNT( 33 * 37 )
----
5

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL + 14 + MAX ( DISTINCT 9 ) / - COUNT ( 33 * 37 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7806
SELECT ALL - CAST( + 48 AS SIGNED ) + ( COUNT( * ) )
----
-47

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL - CAST ( + 48 AS INTEGER ) + ( COUNT ( * ) )
----
-47

query I rowsort
SELECT ALL - 87 * - 32 AS col1
----
2784

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

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

query I rowsort
SELECT - 12 * NULLIF ( 34 * 32, + 87 )
----
-13056

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT - 76 DIV 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7810
SELECT - 76 / 81 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT MIN ( DISTINCT 10 )
----
10

query I rowsort
SELECT ALL + 24 * 45
----
1080

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

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL 40 + COUNT ( * ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT DISTINCT + COUNT( * ) / - CASE COUNT( * ) * COALESCE ( - MAX( + 50 ), - 52 ) WHEN - 47 THEN 28 WHEN - ( - 46 ) + + 91 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT + COUNT ( * ) / - CASE COUNT ( * ) * COALESCE ( - MAX ( + 50 ), - 52 ) WHEN - 47 THEN 28 WHEN - ( - 46 ) + + 91 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 16 * + 68
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT - MIN( DISTINCT + 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7816
SELECT - MIN ( DISTINCT + 40 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT - 92 + + COALESCE ( COUNT( ALL - COALESCE ( - ( 5 ), + 23 + 22 * 6 ) ), + COUNT( * ) * 2, + 31 + 3 ) * COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-7817
SELECT - 92 + + COALESCE ( COUNT ( ALL - COALESCE ( - ( 5 ), + 23 + 22 * 6 ) ), + COUNT ( * ) * 2, + 31 + 3 ) * COUNT ( * ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT + MIN( DISTINCT + 30 ) col1
----
30

skipif mysql # not compatible
query I rowsort label-7818
SELECT + MIN ( DISTINCT + 30 ) col1
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7819
SELECT CAST( - CASE 41 WHEN + 49 * + ( + 3 ) THEN 91 * 11 END AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT CAST ( - CASE 41 WHEN + 49 * + ( + 3 ) THEN 91 * 11 END AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL - 52 * ( 22 ) AS col2
----
-1144

query I rowsort
SELECT - 86 + - 63 col2
----
-149

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL - MIN( + 92 ) * COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL - MIN ( + 92 ) * COUNT ( * )
----
-92

query I rowsort
SELECT + ( 55 ) + 71
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT + SUM( 16 ) * 90
----
1440

skipif mysql # not compatible
query I rowsort label-7825
SELECT + SUM ( 16 ) * 90
----
1440

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

skipif mysql # not compatible
query I rowsort label-7826
SELECT + 79 * COUNT ( * ) + 4 / 52
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT DISTINCT 32 DIV 19
----
1

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT 32 / 19
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT + SUM( ALL + 51 ) * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-7828
SELECT + SUM ( ALL + 51 ) * COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL 67 * - COUNT( - 18 )
----
-67

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL 67 * - COUNT ( - 18 )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7830
SELECT + CAST( - ( + MAX( + 82 ) ) AS SIGNED ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-7830
SELECT + CAST ( - ( + MAX ( + 82 ) ) AS INTEGER ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT MAX( DISTINCT - 33 ) * 85 + 71 AS col0
----
-2734

skipif mysql # not compatible
query I rowsort label-7831
SELECT MAX ( DISTINCT - 33 ) * 85 + 71 AS col0
----
-2734

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT CASE 83 WHEN 31 + 30 THEN 58 WHEN 2 - - COUNT( 33 ) THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT CASE 83 WHEN 31 + 30 THEN 58 WHEN 2 - - COUNT ( 33 ) THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT ALL - 38 * + 90 + ( - SUM( DISTINCT + 56 ) ) * 30 AS col1
----
-5100

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL - 38 * + 90 + ( - SUM ( DISTINCT + 56 ) ) * 30 AS col1
----
-5100

query I rowsort
SELECT + 28 * 33 + 33 AS col2
----
957

query I rowsort
SELECT ALL 41 * + 12 + 44
----
536

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT CASE - 18 WHEN 29 THEN 33 WHEN + 63 THEN - ( CASE MAX( ALL - 30 ) WHEN 90 THEN - 49 * 6 END ) - + 53 * - 33 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT CASE - 18 WHEN 29 THEN 33 WHEN + 63 THEN - ( CASE MAX ( ALL - 30 ) WHEN 90 THEN - 49 * 6 END ) - + 53 * - 33 END AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 4 * 40 + 1 * 25 AS col2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT DISTINCT - - 76 * COUNT( - 74 ) + - 23
----
53

skipif mysql # not compatible
query I rowsort label-7840
SELECT DISTINCT - - 76 * COUNT ( - 74 ) + - 23
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT - + 18 + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7841
SELECT - + 18 + COUNT ( * ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT ALL + - 10 * COUNT( * ) + 86
----
76

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL + - 10 * COUNT ( * ) + 86
----
76

query I rowsort
SELECT NULLIF ( - CASE - 38 WHEN + 55 THEN 75 END, - 98 * 59 + + 62 / 38 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT + MAX( - 7 ) * COALESCE ( + 80, - COUNT( * ), 89, 58 )
----
-560

skipif mysql # not compatible
query I rowsort label-7844
SELECT + MAX ( - 7 ) * COALESCE ( + 80, - COUNT ( * ), 89, 58 )
----
-560

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7846
SELECT + + CAST( NULL AS SIGNED ) + - MAX( DISTINCT - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT + + CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT - 79 )
----
NULL

query I rowsort
SELECT ALL - 10 + + 4
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7848
SELECT ALL 60 - CAST( - CASE ( 62 ) WHEN 61 * - 39 + + COUNT( * ) THEN + ( - 98 ) * COUNT( * ) END - 23 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL 60 - CAST ( - CASE ( 62 ) WHEN 61 * - 39 + + COUNT ( * ) THEN + ( - 98 ) * COUNT ( * ) END - 23 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 88 * + 25
----
2200

query I rowsort
SELECT ALL - - 11 - - 96 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ALL + - COUNT( * ) - 17 * - 78 AS col1
----
1325

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL + - COUNT ( * ) - 17 * - 78 AS col1
----
1325

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

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

query I rowsort
SELECT - 22 + - 7 col2
----
-29

query I rowsort
SELECT DISTINCT + + 82 * 55
----
4510

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

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

query I rowsort
SELECT - 49 + 24 * 47 col0
----
1079

query I rowsort
SELECT ALL - + 69 - 77
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT + 71 + - COUNT( 25 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7858
SELECT + 71 + - COUNT ( 25 ) AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7859
SELECT ALL + 93 DIV + 6
----
15

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL + 93 / + 6
----
15

query I rowsort
SELECT 59 * 82 * 69 AS col0
----
333822

query I rowsort
SELECT DISTINCT + 76 * 19 AS col2
----
1444

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

skipif mysql # not compatible
query I rowsort label-7862
SELECT COUNT ( + 14 ) / 12 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT DISTINCT 62 * 62 DIV + 66
----
58

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT 62 * 62 / + 66
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT 58 * + NULLIF ( - 59, ( - ( COUNT( * ) ) ) ) AS col2
----
-3422

skipif mysql # not compatible
query I rowsort label-7864
SELECT 58 * + NULLIF ( - 59, ( - ( COUNT ( * ) ) ) ) AS col2
----
-3422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7865
SELECT NULLIF ( + 38, 57 + + CAST( NULL AS SIGNED ) ) DIV 26 - + 91 * - NULLIF ( - 5 + + COUNT( * ), SUM( 51 ) ) AS col2
----
-363

skipif mysql # not compatible
query I rowsort label-7865
SELECT NULLIF ( + 38, 57 + + CAST ( NULL AS INTEGER ) ) / 26 - + 91 * - NULLIF ( - 5 + + COUNT ( * ), SUM ( 51 ) ) AS col2
----
-363

query I rowsort
SELECT ALL 19 + - - 24 + - 4 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT DISTINCT SUM( - 46 ) + 32 col2
----
-14

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT SUM ( - 46 ) + 32 col2
----
-14

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT ALL COALESCE ( + COUNT( * ), - 35 ) + 24 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL COALESCE ( + COUNT ( * ), - 35 ) + 24 AS col0
----
25

query I rowsort
SELECT ALL - ( 91 ) AS col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7872
SELECT ALL - COUNT( * ) + - COUNT( - CAST( NULL AS DECIMAL ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL - COUNT ( * ) + - COUNT ( - CAST ( NULL AS REAL ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT - CASE - ( + COALESCE ( 65, 83 ) ) WHEN 0 THEN SUM( DISTINCT + 72 ) WHEN 92 * COUNT( * ) THEN NULL ELSE NULL END * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7873
SELECT - CASE - ( + COALESCE ( 65, 83 ) ) WHEN 0 THEN SUM ( DISTINCT + 72 ) WHEN 92 * COUNT ( * ) THEN NULL ELSE NULL END * 48
----
NULL

query I rowsort
SELECT ALL 64 + 39 AS col2
----
103

query I rowsort
SELECT - 61 + - 8 - + 88
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT CASE 13 WHEN + COALESCE ( MIN( - 67 ), + NULLIF ( - 1, ( COUNT( * ) ) * - COUNT( * ) ) * SUM( ALL + 89 + + 89 ) + - 89 ) THEN + 92 / 8 ELSE 52 END
----
52

skipif mysql # not compatible
query I rowsort label-7876
SELECT CASE 13 WHEN + COALESCE ( MIN ( - 67 ), + NULLIF ( - 1, ( COUNT ( * ) ) * - COUNT ( * ) ) * SUM ( ALL + 89 + + 89 ) + - 89 ) THEN + 92 / 8 ELSE 52 END
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT ALL + 81 - 3 + 9 * COALESCE ( + 42, + CAST( NULL AS SIGNED ) ) AS col2
----
456

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL + 81 - 3 + 9 * COALESCE ( + 42, + CAST ( NULL AS INTEGER ) ) AS col2
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT DISTINCT COUNT( * ) * - 37 * SUM( ALL 73 ) AS col1
----
-2701

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT COUNT ( * ) * - 37 * SUM ( ALL 73 ) AS col1
----
-2701

query I rowsort
SELECT ALL - 0 - 77 AS col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7880
SELECT + 97 * - + NULLIF ( - 14, NULLIF ( 36, AVG ( DISTINCT 36 ) ) ) + 93 DIV COUNT( * ) col1
----
1451

skipif mysql # not compatible
query I rowsort label-7880
SELECT + 97 * - + NULLIF ( - 14, NULLIF ( 36, AVG ( DISTINCT 36 ) ) ) + 93 / COUNT ( * ) col1
----
1451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7881
SELECT DISTINCT + 31 * - 19 * + CAST( ( - COUNT( * ) ) AS SIGNED )
----
589

skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT + 31 * - 19 * + CAST ( ( - COUNT ( * ) ) AS INTEGER )
----
589

query I rowsort
SELECT - 10 - + 45
----
-55

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

skipif mysql # not compatible
query I rowsort label-7883
SELECT 49 + - 39 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7884
SELECT + 46 * - 92 * + COALESCE ( 45, - CAST( NULL AS SIGNED ) + 15 ) + 68 DIV + 11
----
-190434

skipif mysql # not compatible
query I rowsort label-7884
SELECT + 46 * - 92 * + COALESCE ( 45, - CAST ( NULL AS INTEGER ) + 15 ) + 68 / + 11
----
-190434

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7885
SELECT COUNT( * ) + + SUM( - 98 ) DIV - 34 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7885
SELECT COUNT ( * ) + + SUM ( - 98 ) / - 34 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT ALL + 89 * CAST( + 90 AS SIGNED ) * - 36 AS col2
----
-288360

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL + 89 * CAST ( + 90 AS INTEGER ) * - 36 AS col2
----
-288360

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT DISTINCT + 80 * - NULLIF ( COUNT( * ), 7 ) * 44 AS col2
----
-3520

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT + 80 * - NULLIF ( COUNT ( * ), 7 ) * 44 AS col2
----
-3520

query I rowsort
SELECT DISTINCT 56 + 22 AS col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-7889
SELECT - 91 AS col0, - MIN( ALL + 39 ) * - 33 AS col0
----
-91
1287

skipif mysql # not compatible
query II rowsort label-7889
SELECT - 91 AS col0, - MIN ( ALL + 39 ) * - 33 AS col0
----
-91
1287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7890
SELECT CAST( - 55 AS SIGNED ) + + - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-7890
SELECT CAST ( - 55 AS INTEGER ) + + - COUNT ( * )
----
-56

query I rowsort
SELECT 94 * - 13 col1
----
-1222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7892
SELECT ALL CAST( 2 AS SIGNED ) * + - 45 + + 77 + + 6 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL CAST ( 2 AS INTEGER ) * + - 45 + + 77 + + 6 AS col1
----
-7

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

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

query I rowsort
SELECT + ( NULLIF ( 72, + 3 ) ) * ( - 14 - 86 ) + + 24 * 99 AS col1
----
-4824

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7895
SELECT COUNT( * ) AS col1, 27 DIV 91
----
1
0

skipif mysql # not compatible
query II rowsort label-7895
SELECT COUNT ( * ) AS col1, 27 / 91
----
1
0

query I rowsort
SELECT ALL 64 * + + 73 * + 26 + 5
----
121477

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT COUNT( * ) * - 3 + - 21 - 77 * 47 AS col1
----
-3643

skipif mysql # not compatible
query I rowsort label-7897
SELECT COUNT ( * ) * - 3 + - 21 - 77 * 47 AS col1
----
-3643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7898
SELECT ALL CASE - 80 WHEN 79 THEN NULL WHEN 75 THEN + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) END * + 22 + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL CASE - 80 WHEN 79 THEN NULL WHEN 75 THEN + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) END * + 22 + 23
----
NULL

query I rowsort
SELECT 93 + + 88
----
181

query I rowsort
SELECT ALL - 83 * + 33 + - 88
----
-2827

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7901
SELECT + 62 AS col0, - CAST( NULL AS DECIMAL )
----
62
NULL

skipif mysql # not compatible
query II rowsort label-7901
SELECT + 62 AS col0, - CAST ( NULL AS REAL )
----
62
NULL

query I rowsort
SELECT 3 + - 74 col1
----
-71

query I rowsort
SELECT ALL - 34 * + - 17 + + ( COALESCE ( 83, 77 ) ) AS col1
----
661

query I rowsort
SELECT 9 * - 63
----
-567

query I rowsort
SELECT DISTINCT - 18 * + 24 col1
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7906
SELECT DISTINCT - 46 + + - AVG ( ALL - ( + CAST( NULL AS SIGNED ) ) ) / 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT - 46 + + - AVG ( ALL - ( + CAST ( NULL AS INTEGER ) ) ) / 73
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7907
SELECT COUNT( * ), + COALESCE ( - - 98, COUNT( * ) * COUNT( * ) ) AS col2
----
1
98

skipif mysql # not compatible
query II rowsort label-7907
SELECT COUNT ( * ), + COALESCE ( - - 98, COUNT ( * ) * COUNT ( * ) ) AS col2
----
1
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7908
SELECT 64 * - COUNT( * ) * + COUNT( * ) + ( 19 - + ( 71 ) DIV + 94 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7908
SELECT 64 * - COUNT ( * ) * + COUNT ( * ) + ( 19 - + ( 71 ) / + 94 ) AS col0
----
-45

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

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

query I rowsort
SELECT 56 * + 70 AS col2
----
3920

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT ALL - SUM( DISTINCT 79 ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL - SUM ( DISTINCT 79 ) col1
----
-79

query I rowsort
SELECT ALL - - 53 - - 43
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT - COUNT( - ( CASE + 62 WHEN + 57 THEN NULL WHEN 81 THEN 19 * + 1 - 72 ELSE NULL END ) ) * - 69
----
0

skipif mysql # not compatible
query I rowsort label-7914
SELECT - COUNT ( - ( CASE + 62 WHEN + 57 THEN NULL WHEN 81 THEN 19 * + 1 - 72 ELSE NULL END ) ) * - 69
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT - + 38 * + 81 * + COUNT( * )
----
-3078

skipif mysql # not compatible
query I rowsort label-7916
SELECT - + 38 * + 81 * + COUNT ( * )
----
-3078

query I rowsort
SELECT + 86 * - 63 + + 18 col1
----
-5400

onlyif mysql # DIV for integer division: 
query I rowsort label-7918
SELECT DISTINCT 82 DIV 54
----
1

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT 82 / 54
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7919
SELECT + + SUM( + 24 ) DIV + 11 col2
----
2

skipif mysql # not compatible
query I rowsort label-7919
SELECT + + SUM ( + 24 ) / + 11 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT ALL + 77 * + 8 + - + 37 + + COUNT( ALL 99 ) col2
----
580

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL + 77 * + 8 + - + 37 + + COUNT ( ALL 99 ) col2
----
580

onlyif mysql # DIV for integer division: 
query I rowsort label-7921
SELECT DISTINCT - 66 DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT - 66 / - 84 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7923
SELECT + 84 + 71 DIV + MAX( 97 )
----
84

skipif mysql # not compatible
query I rowsort label-7923
SELECT + 84 + 71 / + MAX ( 97 )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7924
SELECT + 97 DIV - 36 - 87 + + COALESCE ( COUNT( * ) + 15 * - 10, + 45 + + COUNT( * ) )
----
-238

skipif mysql # not compatible
query I rowsort label-7924
SELECT + 97 / - 36 - 87 + + COALESCE ( COUNT ( * ) + 15 * - 10, + 45 + + COUNT ( * ) )
----
-238

query I rowsort
SELECT ALL - 17 + - 34
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL COUNT( * ) + - + 88 + + 94 * - + 12
----
-1215

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL COUNT ( * ) + - + 88 + + 94 * - + 12
----
-1215

query I rowsort
SELECT + ( 55 ) + + 21
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7928
SELECT + 80 DIV - 83 * - - 39
----
0

skipif mysql # not compatible
query I rowsort label-7928
SELECT + 80 / - 83 * - - 39
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT + 62 + - 97 + SUM( + 95 ) + + NULLIF ( + 85, + 84 ) AS col1
----
145

skipif mysql # not compatible
query I rowsort label-7930
SELECT + 62 + - 97 + SUM ( + 95 ) + + NULLIF ( + 85, + 84 ) AS col1
----
145

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

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

query I rowsort
SELECT ALL 44 + - 89
----
-45

query I rowsort
SELECT DISTINCT COALESCE ( 31, - 89 ) + - - 57 col2
----
88

query I rowsort
SELECT + 26 * 18 AS col2
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL - 39 * COUNT( * ) * + 49 + + 42
----
-1869

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL - 39 * COUNT ( * ) * + 49 + + 42
----
-1869

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

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

query I rowsort
SELECT ALL 29 * - ( 92 ) + - 1 + + 8 AS col1
----
-2661

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT + MAX( DISTINCT + ( + 63 ) ) col1
----
63

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT + MAX ( DISTINCT + ( + 63 ) ) col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT ALL + 40 * - 45 + - - COUNT( * ) AS col1
----
-1799

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL + 40 * - 45 + - - COUNT ( * ) AS col1
----
-1799

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL 1 * + - ( + MAX( 83 ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL 1 * + - ( + MAX ( 83 ) ) AS col0
----
-83

query II rowsort
SELECT ( - + 1 ) AS col2, ( - 43 )
----
-1
-43

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

query I rowsort
SELECT COALESCE ( + 30, - ( + + 26 ) * - 61 + NULLIF ( 50, NULLIF ( + 5, 78 ) ) )
----
30

query I rowsort
SELECT DISTINCT + + COALESCE ( + ( + - 74 ), 23 ) * 72 - 7 AS col1
----
-5335

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT DISTINCT + NULLIF ( + 55, + + COUNT( * ) * + - COUNT( * ) ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT + NULLIF ( + 55, + + COUNT ( * ) * + - COUNT ( * ) ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-7947
SELECT - 52 * 21, - 14 DIV - 26 AS col0
----
-1092
0

skipif mysql # not compatible
query II rowsort label-7947
SELECT - 52 * 21, - 14 / - 26 AS col0
----
-1092
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7948
SELECT + - 67 DIV + COUNT( + 74 )
----
-67

skipif mysql # not compatible
query I rowsort label-7948
SELECT + - 67 / + COUNT ( + 74 )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7949
SELECT 9 * - + ( - CAST( NULL AS SIGNED ) ) + + - COUNT( * ) + + COALESCE ( 70, - 94 / + 34, NULLIF ( CASE - 0 WHEN COUNT( - 5 ) THEN NULL WHEN - 16 THEN NULL WHEN 85 + 51 * 85 THEN + COUNT( * ) ELSE - 5 + 71 * + CAST( NULL AS DECIMAL ) END, 8 / + 13 + - MAX( + CAST( NULL AS DECIMAL ) ) / - 63 ) + ( COALESCE ( + 62, - COUNT( * ) ) ) * + 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT 9 * - + ( - CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) + + COALESCE ( 70, - 94 / + 34, NULLIF ( CASE - 0 WHEN COUNT ( - 5 ) THEN NULL WHEN - 16 THEN NULL WHEN 85 + 51 * 85 THEN + COUNT ( * ) ELSE - 5 + 71 * + CAST ( NULL AS REAL ) END, 8 / + 13 + - MAX ( + CAST ( NULL AS REAL ) ) / - 63 ) + ( COALESCE ( + 62, - COUNT ( * ) ) ) * + 40 ) AS col1
----
NULL

query II rowsort
SELECT - + 92 * 29 AS col1, 96
----
-2668
96

query I rowsort
SELECT - 1 * - - 78 * + - 32
----
2496

query I rowsort
SELECT - 42 * 59 + - 78
----
-2556

query I rowsort
SELECT ALL - - CASE - + 24 WHEN - + 8 THEN - + 4 END * + 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7954
SELECT - CASE 79 WHEN - 76 THEN + 20 WHEN + 39 / - CAST( 5 AS DECIMAL ) - 45 THEN CASE CAST( NULL AS SIGNED ) WHEN + 21 + + ( - NULLIF ( 86, 75 ) ) THEN - 32 * 35 END + + 17 ELSE NULL END + ( - 62 + 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7954
SELECT - CASE 79 WHEN - 76 THEN + 20 WHEN + 39 / - CAST ( 5 AS REAL ) - 45 THEN CASE CAST ( NULL AS INTEGER ) WHEN + 21 + + ( - NULLIF ( 86, 75 ) ) THEN - 32 * 35 END + + 17 ELSE NULL END + ( - 62 + 29 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT - 72 + - 11 * - + MIN( DISTINCT + - 33 ) * - SUM( - 49 * 29 ) AS col0
----
-515895

skipif mysql # not compatible
query I rowsort label-7956
SELECT - 72 + - 11 * - + MIN ( DISTINCT + - 33 ) * - SUM ( - 49 * 29 ) AS col0
----
-515895

query I rowsort
SELECT - CASE + - 73 WHEN - CASE - 6 WHEN 62 - - 25 THEN NULL WHEN 30 * 36 THEN NULL ELSE + 83 END THEN NULL ELSE 9 END AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ALL + + 33 + - - COUNT( * ) * 50 + + COALESCE ( 87, 41 + + 3 ) AS col0
----
170

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL + + 33 + - - COUNT ( * ) * 50 + + COALESCE ( 87, 41 + + 3 ) AS col0
----
170

query I rowsort
SELECT ALL - 66 + + - 39
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT - - 60 * COALESCE ( + 70, COUNT( * ), + 4 ) + - 40 AS col1
----
4160

skipif mysql # not compatible
query I rowsort label-7960
SELECT - - 60 * COALESCE ( + 70, COUNT ( * ), + 4 ) + - 40 AS col1
----
4160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7961
SELECT ALL CAST( + + ( - 49 ) AS SIGNED ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL CAST ( + + ( - 49 ) AS INTEGER ) AS col2
----
-49

query II rowsort
SELECT 20 AS col2, - 26 + 36
----
20
10

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

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

query I rowsort
SELECT ALL - 63 + - 28 AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7965
SELECT - 74 - + - 70 - - CAST( NULL AS SIGNED ) * 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7965
SELECT - 74 - + - 70 - - CAST ( NULL AS INTEGER ) * 99 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7966
SELECT - SUM( + CAST( - 61 AS SIGNED ) )
----
61

skipif mysql # not compatible
query I rowsort label-7966
SELECT - SUM ( + CAST ( - 61 AS INTEGER ) )
----
61

query I rowsort
SELECT - ( 24 ) AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7968
SELECT - COUNT( * ) + + 51 + + - NULLIF ( - 14, - - CASE - CAST( NULL AS SIGNED ) WHEN - 43 THEN SUM( ALL + 64 ) END ) * + 8 AS col2
----
162

skipif mysql # not compatible
query I rowsort label-7968
SELECT - COUNT ( * ) + + 51 + + - NULLIF ( - 14, - - CASE - CAST ( NULL AS INTEGER ) WHEN - 43 THEN SUM ( ALL + 64 ) END ) * + 8 AS col2
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7969
SELECT ALL - 72 / - 16 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL - 72 / - 16 * + + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT DISTINCT + 45 - + + SUM( ALL NULLIF ( 3, + 25 ) )
----
42

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT + 45 - + + SUM ( ALL NULLIF ( 3, + 25 ) )
----
42

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

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

query I rowsort
SELECT - 66 + - 4 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT - 84 + - - 74 - + + 34 * - COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7974
SELECT - 84 + - - 74 - + + 34 * - COUNT ( * ) AS col0
----
24

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

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

query I rowsort
SELECT + 19 * - 31 AS col2
----
-589

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

skipif mysql # not compatible
query I rowsort label-7977
SELECT 1 / + COUNT ( * ) + - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT ( + 53 ) * - 61 AS col2
----
-3233

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT - COUNT( * ) * + - 58 + - + 0 + + + 3 + 32 * 76
----
2493

skipif mysql # not compatible
query I rowsort label-7979
SELECT - COUNT ( * ) * + - 58 + - + 0 + + + 3 + 32 * 76
----
2493

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7980
SELECT ALL - CASE - 89 WHEN + MIN( - 1 ) THEN NULL WHEN + 12 THEN 21 - - COUNT( * ) WHEN + 67 + + CAST( - 33 AS DECIMAL ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL - CASE - 89 WHEN + MIN ( - 1 ) THEN NULL WHEN + 12 THEN 21 - - COUNT ( * ) WHEN + 67 + + CAST ( - 33 AS REAL ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7981
SELECT + - 96, CASE + + COUNT( * ) WHEN + 61 * - AVG ( - CAST( ( 67 ) AS SIGNED ) ) THEN + 27 * - COUNT( * ) END * ( - 16 ) + 47 AS col2
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-7981
SELECT + - 96, CASE + + COUNT ( * ) WHEN + 61 * - AVG ( - CAST ( ( 67 ) AS INTEGER ) ) THEN + 27 * - COUNT ( * ) END * ( - 16 ) + 47 AS col2
----
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT COUNT( * ) * - 42 + + COUNT( * ) + 4 * MAX( - 97 ) AS col0
----
-429

skipif mysql # not compatible
query I rowsort label-7982
SELECT COUNT ( * ) * - 42 + + COUNT ( * ) + 4 * MAX ( - 97 ) AS col0
----
-429

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT NULLIF ( COUNT( * ), + - 55 * 56 * 61 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7983
SELECT NULLIF ( COUNT ( * ), + - 55 * 56 * 61 ) AS col0
----
1

query I rowsort
SELECT 86 * - - 79 AS col2
----
6794

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7985
SELECT + 90 + + - 6 + - MAX( ALL - 42 ) / + CAST( NULL AS DECIMAL ) + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT + 90 + + - 6 + - MAX ( ALL - 42 ) / + CAST ( NULL AS REAL ) + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT DISTINCT + 50 + COALESCE ( + 7, + - 57, - + CASE 61 WHEN 82 THEN NULL WHEN - 9 * + 35 THEN COUNT( * ) + NULLIF ( - 16, + 98 ) WHEN - COUNT( * ) + 42 THEN NULL END )
----
57

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT + 50 + COALESCE ( + 7, + - 57, - + CASE 61 WHEN 82 THEN NULL WHEN - 9 * + 35 THEN COUNT ( * ) + NULLIF ( - 16, + 98 ) WHEN - COUNT ( * ) + 42 THEN NULL END )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7987
SELECT DISTINCT - 69 + + ( - ( - 75 ) ) + + COALESCE ( 22, - 23 ) + 78 * COALESCE ( - CAST( NULL AS SIGNED ), + ( - 91 ) * ( 11 DIV - SUM( ALL 26 ) ) ) * - 63 col1
----
28

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT - 69 + + ( - ( - 75 ) ) + + COALESCE ( 22, - 23 ) + 78 * COALESCE ( - CAST ( NULL AS INTEGER ), + ( - 91 ) * ( 11 / - SUM ( ALL 26 ) ) ) * - 63 col1
----
28

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

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

query I rowsort
SELECT ALL + 31 + + 92
----
123

query I rowsort
SELECT ALL - 76 + + 10 - 33 AS col2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7991
SELECT 5, + CAST( NULL AS SIGNED ) + - 94 col1
----
5
NULL

skipif mysql # not compatible
query II rowsort label-7991
SELECT 5, + CAST ( NULL AS INTEGER ) + - 94 col1
----
5
NULL

query II rowsort
SELECT - 87 AS col0, 59 * + + 79
----
-87
4661

query I rowsort
SELECT DISTINCT - 86 * - 94 AS col1
----
8084

query I rowsort
SELECT 19 + 55 + + + 2 AS col0
----
76

query I rowsort
SELECT 22 * + + 67
----
1474

query II rowsort
SELECT ALL 54 AS col2, + 77 + + - 54 + + 92 - - 26 AS col1
----
54
141

query I rowsort
SELECT 28 + 7 * 43 * + COALESCE ( - + 38, - 57 * + 23, COALESCE ( - 6, - 57 + - 27, - 57 ) + + 78 )
----
-11410

query I rowsort
SELECT 12 * + 47
----
564

query I rowsort
SELECT ALL ( 1 ) * - 6 AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8000
SELECT DISTINCT + COUNT( * ) DIV + 23 * 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT + COUNT ( * ) / + 23 * 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8001
SELECT ALL 23 AS col2, - 9 * - COUNT( * ) + - CASE - - 41 WHEN 7 THEN - 59 * - MAX( DISTINCT 83 ) ELSE NULL END + 35 * 53
----
23
NULL

skipif mysql # not compatible
query II rowsort label-8001
SELECT ALL 23 AS col2, - 9 * - COUNT ( * ) + - CASE - - 41 WHEN 7 THEN - 59 * - MAX ( DISTINCT 83 ) ELSE NULL END + 35 * 53
----
23
NULL

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

query I rowsort
SELECT ALL + + 34 * + 88
----
2992

onlyif mysql # aggregate syntax: 
query II rowsort label-8004
SELECT + - 34 AS col0, - 84 * + COUNT( * )
----
-34
-84

skipif mysql # not compatible
query II rowsort label-8004
SELECT + - 34 AS col0, - 84 * + COUNT ( * )
----
-34
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8005
SELECT - 87 * 81 * + 52 DIV COUNT( * ) AS col2, 13
----
-366444
13

skipif mysql # not compatible
query II rowsort label-8005
SELECT - 87 * 81 * + 52 / COUNT ( * ) AS col2, 13
----
-366444
13

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

skipif mysql # not compatible
query I rowsort label-8006
SELECT 80 / + + 83 - - 11
----
11

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

skipif mysql # not compatible
query I rowsort label-8007
SELECT + 70 / - COUNT ( * ) AS col0
----
-70

query I rowsort
SELECT 69 * + + 37 AS col2
----
2553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8009
SELECT + 14 - - + 45 + + + CASE 27 WHEN + - 87 * - CASE + 22 WHEN 33 - ( 23 + - 84 * NULLIF ( - 75 * - 21, 74 - 80 ) ) * - 16 THEN + COUNT( + CAST( NULL AS SIGNED ) ) + + 94 END + 5 THEN - 3 ELSE NULL END * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT + 14 - - + 45 + + + CASE 27 WHEN + - 87 * - CASE + 22 WHEN 33 - ( 23 + - 84 * NULLIF ( - 75 * - 21, 74 - 80 ) ) * - 16 THEN + COUNT ( + CAST ( NULL AS INTEGER ) ) + + 94 END + 5 THEN - 3 ELSE NULL END * - 98
----
NULL

query I rowsort
SELECT 49 * + 44
----
2156

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8011
SELECT ALL - CAST( NULL AS DECIMAL ) + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL - CAST ( NULL AS REAL ) + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT 72 - - ( + 72 ) + COUNT( * ) * + 38
----
182

skipif mysql # not compatible
query I rowsort label-8012
SELECT 72 - - ( + 72 ) + COUNT ( * ) * + 38
----
182

onlyif mysql # aggregate syntax: 
query II rowsort label-8013
SELECT DISTINCT - 31 AS col0, COUNT( * ) + 52 * - + 19 * + 30
----
-31
-29639

skipif mysql # not compatible
query II rowsort label-8013
SELECT DISTINCT - 31 AS col0, COUNT ( * ) + 52 * - + 19 * + 30
----
-31
-29639

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT 91 * COUNT( * ) + 28
----
119

skipif mysql # not compatible
query I rowsort label-8014
SELECT 91 * COUNT ( * ) + 28
----
119

query I rowsort
SELECT + 13 * + + 99
----
1287

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8016
SELECT - COUNT( DISTINCT - + 97 ) AS col1, + 67 DIV + 77 col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-8016
SELECT - COUNT ( DISTINCT - + 97 ) AS col1, + 67 / + 77 col2
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8017
SELECT CAST( + 26 AS SIGNED ) + 52 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8017
SELECT CAST ( + 26 AS INTEGER ) + 52 AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8018
SELECT 22 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT 22 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8019
SELECT CAST( + 68 AS SIGNED ) * - 14 + + + 4 + + 48 * 41
----
1020

skipif mysql # not compatible
query I rowsort label-8019
SELECT CAST ( + 68 AS INTEGER ) * - 14 + + + 4 + + 48 * 41
----
1020

query II rowsort
SELECT 28 * - + 48 AS col2, 64 * + - ( + 89 ) + - 83
----
-1344
-5779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8021
SELECT ALL - COALESCE ( - 67, + - 16 ) * + - 22 / MIN( + 74 ) * - SUM( 2 ) * CAST( NULL AS SIGNED ) + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL - COALESCE ( - 67, + - 16 ) * + - 22 / MIN ( + 74 ) * - SUM ( 2 ) * CAST ( NULL AS INTEGER ) + 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8022
SELECT NULLIF ( - + 18, 24 ) * 90 + COALESCE ( 72, CAST( NULL AS SIGNED ) ) + 6 * 3 AS col2
----
-1530

skipif mysql # not compatible
query I rowsort label-8022
SELECT NULLIF ( - + 18, 24 ) * 90 + COALESCE ( 72, CAST ( NULL AS INTEGER ) ) + 6 * 3 AS col2
----
-1530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8023
SELECT COALESCE ( + + 5, + COUNT( * ) * + - COUNT( * ), - 43 DIV + + COUNT( * ) + + ( 34 ) ) - 12
----
-7

skipif mysql # not compatible
query I rowsort label-8023
SELECT COALESCE ( + + 5, + COUNT ( * ) * + - COUNT ( * ), - 43 / + + COUNT ( * ) + + ( 34 ) ) - 12
----
-7

query I rowsort
SELECT DISTINCT + ( + + 63 ) * 58 AS col2
----
3654

query I rowsort
SELECT 18 + + - 61 + ( + 88 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT ALL NULLIF ( 14, + MIN( - 28 ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL NULLIF ( 14, + MIN ( - 28 ) ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT - MIN( - 66 ) * - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8027
SELECT - MIN ( - 66 ) * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL COUNT( ALL - CASE + - 6 WHEN + - 94 THEN - + 63 + 19 ELSE NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL COUNT ( ALL - CASE + - 6 WHEN + - 94 THEN - + 63 + 19 ELSE NULL END )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT + 77 + - ( 37 ) + - ( + - COUNT( * ) ) + 66
----
107

skipif mysql # not compatible
query I rowsort label-8029
SELECT + 77 + - ( 37 ) + - ( + - COUNT ( * ) ) + 66
----
107

query I rowsort
SELECT DISTINCT + 43 + + - 92 * + - 72
----
6667

query I rowsort
SELECT ALL - 85 + + 67
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT - - ( + 98 ) + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-8032
SELECT - - ( + 98 ) + - COUNT ( * )
----
97

query II rowsort
SELECT + + 16 * + 75 AS col2, 58
----
1200
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ALL - + MAX( - 96 ) * + COUNT( * ) * + 80 + + 60 + - MIN( ALL + - 80 ) * 5 AS col1
----
8140

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL - + MAX ( - 96 ) * + COUNT ( * ) * + 80 + + 60 + - MIN ( ALL + - 80 ) * 5 AS col1
----
8140

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT + CASE - MIN( ALL - + 0 ) WHEN - - 74 THEN 6 * - - SUM( - 62 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT + CASE - MIN ( ALL - + 0 ) WHEN - - 74 THEN 6 * - - SUM ( - 62 ) ELSE NULL END
----
NULL

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

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

query II rowsort
SELECT ALL + - 26 * + 44 AS col2, + 40 - + + 30 col0
----
-1144
10

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8039
SELECT - 92 DIV + - COALESCE ( COUNT( * ), MAX( + + 81 ), 11 * + - 12 )
----
92

skipif mysql # not compatible
query I rowsort label-8039
SELECT - 92 / + - COALESCE ( COUNT ( * ), MAX ( + + 81 ), 11 * + - 12 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8040
SELECT 89 * + 27 + COALESCE ( CAST( NULL AS SIGNED ), - 61 * - 59 - - 41 * 90 ) DIV + ( 10 * 28 + + 4 ) + - ( + 80 + + COUNT( * ) ) AS col2
----
2347

skipif mysql # not compatible
query I rowsort label-8040
SELECT 89 * + 27 + COALESCE ( CAST ( NULL AS INTEGER ), - 61 * - 59 - - 41 * 90 ) / + ( 10 * 28 + + 4 ) + - ( + 80 + + COUNT ( * ) ) AS col2
----
2347

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8041
SELECT - + 78 * 12 DIV - 88 * + - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-8041
SELECT - + 78 * 12 / - 88 * + - COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT ALL 51 * + + 91 + 27 + COUNT( DISTINCT - 9 ) + - - 72 * 29 * ( - 76 )
----
-154019

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL 51 * + + 91 + 27 + COUNT ( DISTINCT - 9 ) + - - 72 * 29 * ( - 76 )
----
-154019

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

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

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

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

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

query I rowsort
SELECT ALL 1 * + - 74 * - 94 - + 1 AS col2
----
6955

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT MAX( + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-8047
SELECT MAX ( + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT - COUNT( ALL - 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8048
SELECT - COUNT ( ALL - 48 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8049
SELECT + 97 + + MIN( ALL 67 ) * - CAST( + 72 AS SIGNED ) - - 15 AS col2
----
-4712

skipif mysql # not compatible
query I rowsort label-8049
SELECT + 97 + + MIN ( ALL 67 ) * - CAST ( + 72 AS INTEGER ) - - 15 AS col2
----
-4712

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

query I rowsort
SELECT + 43 * + - ( 67 )
----
-2881

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT + COUNT( * ) * MAX( DISTINCT - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-8052
SELECT + COUNT ( * ) * MAX ( DISTINCT - 9 )
----
-9

query I rowsort
SELECT + 61 + + + 32 AS col2
----
93

query II rowsort
SELECT + 20 - ( + - 77 ) AS col0, - 14
----
97
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT ALL COUNT( - NULLIF ( 10, - 94 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL COUNT ( - NULLIF ( 10, - 94 ) ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8057
SELECT + 13 * COALESCE ( + 17, - 92 ) DIV + COUNT( * )
----
221

skipif mysql # not compatible
query I rowsort label-8057
SELECT + 13 * COALESCE ( + 17, - 92 ) / + COUNT ( * )
----
221

onlyif mysql # DIV for integer division: 
query I rowsort label-8058
SELECT ALL - 69 DIV - 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL - 69 / - 62 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT + COUNT( * ) + 51 + - 59 * + 60 * + + 20
----
-70748

skipif mysql # not compatible
query I rowsort label-8059
SELECT + COUNT ( * ) + 51 + - 59 * + 60 * + + 20
----
-70748

onlyif mysql # DIV for integer division: 
query I rowsort label-8060
SELECT ALL 71 DIV - + 3 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL 71 / - + 3 AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8061
SELECT + 77 * - 78 * - 34 * + CAST( - + 83 AS SIGNED )
----
-16948932

skipif mysql # not compatible
query I rowsort label-8061
SELECT + 77 * - 78 * - 34 * + CAST ( - + 83 AS INTEGER )
----
-16948932

query I rowsort
SELECT - 83 + 63 AS col1
----
-20

query I rowsort
SELECT + 53 * + + 18
----
954

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT - CASE - 38 WHEN + 0 * ( + ( - 49 ) ) - + MIN( ALL - - 52 ) - 55 * - 72 THEN - 37 + COUNT( * ) ELSE + COALESCE ( ( + 65 ), - 20 + 83, - CASE 50 WHEN 53 THEN 40 ELSE NULL END ) * 86 END + - 63 * 16 AS col0
----
-6598

skipif mysql # not compatible
query I rowsort label-8064
SELECT - CASE - 38 WHEN + 0 * ( + ( - 49 ) ) - + MIN ( ALL - - 52 ) - 55 * - 72 THEN - 37 + COUNT ( * ) ELSE + COALESCE ( ( + 65 ), - 20 + 83, - CASE 50 WHEN 53 THEN 40 ELSE NULL END ) * 86 END + - 63 * 16 AS col0
----
-6598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8065
SELECT ALL CAST( - 35 AS SIGNED ) + ( + + 19 ) + - COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL CAST ( - 35 AS INTEGER ) + ( + + 19 ) + - COUNT ( * ) AS col0
----
-17

query I rowsort
SELECT ALL - 56 * 51 * + 77 AS col1
----
-219912

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT - 52 + - + COUNT( * ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-8067
SELECT - 52 + - + COUNT ( * ) col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT ALL + + 4 + - 9 + - CAST( + - 33 AS SIGNED ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL + + 4 + - 9 + - CAST ( + - 33 AS INTEGER ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL + SUM( ALL - 11 ) col1
----
-11

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL + SUM ( ALL - 11 ) col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT DISTINCT + + 54 + - + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT + + 54 + - + COUNT ( * ) AS col0
----
53

query I rowsort
SELECT - - 93 * - + 94 AS col2
----
-8742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8072
SELECT ALL - 43 DIV - 25 - - - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL - 43 / - 25 - - - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT - ( - 27 ) * - + COUNT( * ) * ( 9 )
----
-243

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8074
SELECT - 12 - + - 39 + - 23 DIV + 87 col0
----
27

skipif mysql # not compatible
query I rowsort label-8074
SELECT - 12 - + - 39 + - 23 / + 87 col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8075
SELECT ALL + 14 DIV + + 36 + - - 81 - + + 35
----
46

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL + 14 / + + 36 + - - 81 - + + 35
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8076
SELECT ALL + + 43 DIV COUNT( * ) - + 34 * + 46 * 29 * + 58 * + COUNT( * ) * + + 69 AS col1
----
-181514669

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL + + 43 / COUNT ( * ) - + 34 * + 46 * 29 * + 58 * + COUNT ( * ) * + + 69 AS col1
----
-181514669

query II rowsort
SELECT + 47, - 32 AS col0
----
47
-32

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

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

query I rowsort
SELECT - 91 * + 34 AS col0
----
-3094

query I rowsort
SELECT + 53 * 56 + + 55 AS col1
----
3023

query I rowsort
SELECT + 56 - - - 6 * + 7 * + 41 - + 49 * - + 33 AS col2
----
-49

query II rowsort
SELECT ( + - 15 ), 93 - - 88 AS col1
----
-15
181

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8084
SELECT + ( + 67 ) col1, MAX( DISTINCT - 46 ) AS col2
----
67
-46

skipif mysql # not compatible
query II rowsort label-8084
SELECT + ( + 67 ) col1, MAX ( DISTINCT - 46 ) AS col2
----
67
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT ALL + MAX( DISTINCT - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL + MAX ( DISTINCT - 65 )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-8086
SELECT - 44 DIV - 41
----
1

skipif mysql # not compatible
query I rowsort label-8086
SELECT - 44 / - 41
----
1

query I rowsort
SELECT - 20 + + 3 + + 43 AS col0
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT DISTINCT 30 + + COUNT( * ) + 58 * - 44 * - NULLIF ( 85, + 50 * - 50 / - MAX( 54 ) ) + 38 col1
----
216989

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT 30 + + COUNT ( * ) + 58 * - 44 * - NULLIF ( 85, + 50 * - 50 / - MAX ( 54 ) ) + 38 col1
----
216989

query I rowsort
SELECT DISTINCT ( - + 83 ) + + 51
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT 63 * - SUM( + - 17 ) AS col0
----
1071

skipif mysql # not compatible
query I rowsort label-8091
SELECT 63 * - SUM ( + - 17 ) AS col0
----
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT DISTINCT + 58 + 77 * - ( - + 71 ) * + COUNT( * ) * - + COUNT( * ) * - + COALESCE ( - COUNT( * ), + COUNT( * ) )
----
-5409

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT + 58 + 77 * - ( - + 71 ) * + COUNT ( * ) * - + COUNT ( * ) * - + COALESCE ( - COUNT ( * ), + COUNT ( * ) )
----
-5409

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8093
SELECT ALL + 83 + - + 96 - - - CAST( NULL AS SIGNED ) * - 18 AS col1, 68 + + 83
----
NULL
151

skipif mysql # not compatible
query II rowsort label-8093
SELECT ALL + 83 + - + 96 - - - CAST ( NULL AS INTEGER ) * - 18 AS col1, 68 + + 83
----
NULL
151

query I rowsort
SELECT ALL - 3 + + 26 AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8095
SELECT ALL COUNT( * ) DIV COALESCE ( + 94, + - 46, 87 * + 27 + - + 25 + + + 31 * + SUM( DISTINCT + 16 ) ) - 89 DIV 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL COUNT ( * ) / COALESCE ( + 94, + - 46, 87 * + 27 + - + 25 + + + 31 * + SUM ( DISTINCT + 16 ) ) - 89 / 92 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT ALL - COALESCE ( - + 33, - + COUNT( * ) - + - COUNT( * ) + + + ( 34 ) * 66 + - ( 18 ) ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL - COALESCE ( - + 33, - + COUNT ( * ) - + - COUNT ( * ) + + + ( 34 ) * 66 + - ( 18 ) ) AS col2
----
33

query I rowsort
SELECT ALL 99 - + + 56 + - 37
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8098
SELECT - CAST( 9 AS SIGNED ), + NULLIF ( + 73, - 66 + 42 ) AS col2
----
-9
73

skipif mysql # not compatible
query II rowsort label-8098
SELECT - CAST ( 9 AS INTEGER ), + NULLIF ( + 73, - 66 + 42 ) AS col2
----
-9
73

query II rowsort
SELECT 24 + - 5 AS col0, ( + + 49 )
----
19
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT - 83 + + + 12 * - + COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-8100
SELECT - 83 + + + 12 * - + COUNT ( * ) AS col2
----
-95

query I rowsort
SELECT DISTINCT - 51 * - 21
----
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT DISTINCT - - MIN( 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT - - MIN ( 41 ) AS col1
----
41

query I rowsort
SELECT + 32 * CASE 95 WHEN + - 18 THEN - 30 - 3 END * - 7 + 56
----
NULL

query I rowsort
SELECT ALL - 15 * + + 53 AS col0
----
-795

query I rowsort
SELECT 93 * + 37 * 89
----
306249

query I rowsort
SELECT 28 * - + 84 AS col1
----
-2352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8107
SELECT 31 + + CASE + - 94 WHEN COALESCE ( - 25, - 27 * - 29, 94 + 67 ) + - MIN( 80 ) * - SUM( 58 * CAST( 53 AS SIGNED ) ) THEN 8 WHEN 18 THEN 80 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT 31 + + CASE + - 94 WHEN COALESCE ( - 25, - 27 * - 29, 94 + 67 ) + - MIN ( 80 ) * - SUM ( 58 * CAST ( 53 AS INTEGER ) ) THEN 8 WHEN 18 THEN 80 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8108
SELECT ALL - ( + + CAST( 45 AS SIGNED ) ), 97 AS col0
----
-45
97

skipif mysql # not compatible
query II rowsort label-8108
SELECT ALL - ( + + CAST ( 45 AS INTEGER ) ), 97 AS col0
----
-45
97

query I rowsort
SELECT 18 + + 98
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL - CASE + 82 WHEN - COUNT( * ) THEN NULL WHEN - 70 THEN 50 * - 62 + 66 * COUNT( * ) + + - 67 + - 31 WHEN - ( - 19 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL - CASE + 82 WHEN - COUNT ( * ) THEN NULL WHEN - 70 THEN 50 * - 62 + 66 * COUNT ( * ) + + - 67 + - 31 WHEN - ( - 19 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 42 + - - COALESCE ( + 13, - - 20 ) AS col0
----
55

query I rowsort
SELECT ALL + 51 * - - 29
----
1479

onlyif mysql # aggregate syntax: 
query II rowsort label-8113
SELECT ALL - COUNT( * ) + - - 43 * 26 * MIN( DISTINCT - 35 ), COUNT( + 83 ) AS col2
----
-39131
1

skipif mysql # not compatible
query II rowsort label-8113
SELECT ALL - COUNT ( * ) + - - 43 * 26 * MIN ( DISTINCT - 35 ), COUNT ( + 83 ) AS col2
----
-39131
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8114
SELECT 18 * + - CAST( - 32 AS SIGNED )
----
576

skipif mysql # not compatible
query I rowsort label-8114
SELECT 18 * + - CAST ( - 32 AS INTEGER )
----
576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8115
SELECT 53 + + - CAST( + COUNT( * ) AS SIGNED ) + - SUM( DISTINCT 4 ) + + 92 * + 72 + SUM( DISTINCT + 76 )
----
6748

skipif mysql # not compatible
query I rowsort label-8115
SELECT 53 + + - CAST ( + COUNT ( * ) AS INTEGER ) + - SUM ( DISTINCT 4 ) + + 92 * + 72 + SUM ( DISTINCT + 76 )
----
6748

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT 43 + + CASE + + 50 WHEN CASE - + NULLIF ( - 1, + + ( - 89 ) ) WHEN - 24 + 54 * + COUNT( * ) THEN 59 * + 90 + - 89 WHEN 12 THEN NULL ELSE 10 END THEN + SUM( DISTINCT NULLIF ( 94, + 56 * 4 ) ) WHEN - COALESCE ( 55, 52 + - 48 ) + - NULLIF ( 63 + + 18, 79 ) THEN + 60 + 70 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT 43 + + CASE + + 50 WHEN CASE - + NULLIF ( - 1, + + ( - 89 ) ) WHEN - 24 + 54 * + COUNT ( * ) THEN 59 * + 90 + - 89 WHEN 12 THEN NULL ELSE 10 END THEN + SUM ( DISTINCT NULLIF ( 94, + 56 * 4 ) ) WHEN - COALESCE ( 55, 52 + - 48 ) + - NULLIF ( 63 + + 18, 79 ) THEN + 60 + 70 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8117
SELECT DISTINCT - COUNT( * ) + + + 36 * - CASE - + 59 WHEN + - COUNT( * ) THEN + - CASE + + 10 WHEN + COUNT( * ) * 95 / + - 11 * - CAST( + 46 AS SIGNED ) THEN NULL ELSE MIN( + 75 ) END + COUNT( 85 ) WHEN 33 + + 56 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT DISTINCT - COUNT ( * ) + + + 36 * - CASE - + 59 WHEN + - COUNT ( * ) THEN + - CASE + + 10 WHEN + COUNT ( * ) * 95 / + - 11 * - CAST ( + 46 AS INTEGER ) THEN NULL ELSE MIN ( + 75 ) END + COUNT ( 85 ) WHEN 33 + + 56 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT ALL 71 AS col1, + 74 * - 76
----
71
-5624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8119
SELECT DISTINCT 77 + 17 + MAX( + 41 ) DIV 46 * - 28 * + + MIN( DISTINCT - - 63 ) - 96 + - ( + 0 ) + 26 * 42 AS col0
----
1090

skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT 77 + 17 + MAX ( + 41 ) / 46 * - 28 * + + MIN ( DISTINCT - - 63 ) - 96 + - ( + 0 ) + 26 * 42 AS col0
----
1090

query I rowsort
SELECT DISTINCT 36 + - 44
----
-8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8122
SELECT DISTINCT - 4 - + 45 + - CAST( - + NULLIF ( 24, - 8 / - 50 - + - COALESCE ( ( ( COUNT( * ) ) ), COUNT( * ) * - 32, - 91 ) ) AS SIGNED ) * 41
----
935

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT - 4 - + 45 + - CAST ( - + NULLIF ( 24, - 8 / - 50 - + - COALESCE ( ( ( COUNT ( * ) ) ), COUNT ( * ) * - 32, - 91 ) ) AS INTEGER ) * 41
----
935

query I rowsort
SELECT + 5 * + - 59 + - - 37
----
-258

query I rowsort
SELECT - 14 + + 47
----
33

query I rowsort
SELECT ALL 84 - + 32 col0
----
52

query I rowsort
SELECT 92 + + 97
----
189

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

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

query I rowsort
SELECT ALL 11 * 13 AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL + COUNT( * ) - - COALESCE ( - 97, + MIN( - 21 ), + - 89 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL + COUNT ( * ) - - COALESCE ( - 97, + MIN ( - 21 ), + - 89 ) AS col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8130
SELECT ALL MIN( + CASE + - 95 WHEN 29 THEN + - 84 ELSE NULL END ), - 93 col0, 70 * - 31 * SUM( ALL 16 ) DIV - COUNT( * ) AS col0
----
NULL
-93
34720

skipif mysql # not compatible
query III rowsort label-8130
SELECT ALL MIN ( + CASE + - 95 WHEN 29 THEN + - 84 ELSE NULL END ), - 93 col0, 70 * - 31 * SUM ( ALL 16 ) / - COUNT ( * ) AS col0
----
NULL
-93
34720

query I rowsort
SELECT + 8 * + 48 AS col0
----
384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8132
SELECT 49 DIV COUNT( * ) * - - 9 AS col0
----
441

skipif mysql # not compatible
query I rowsort label-8132
SELECT 49 / COUNT ( * ) * - - 9 AS col0
----
441

query I rowsort
SELECT ( - - 30 ) AS col0
----
30

query I rowsort
SELECT ALL - + 91 col0
----
-91

query I rowsort
SELECT + CASE - 26 WHEN - 77 * + 55 THEN NULL WHEN - 96 + + 93 THEN - + 21 END * - 51 * 20 + - + 28 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8136
SELECT + + 27 * + - CAST ( NULL AS INTEGER ) + - 19
----
NULL

query I rowsort
SELECT + NULLIF ( - + 50, - 88 )
----
-50

query I rowsort
SELECT 41 / + CASE - 69 WHEN - 7 THEN - ( + 62 ) END AS col2
----
NULL

query I rowsort
SELECT + 20 - - - 15
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8140
SELECT DISTINCT + 51 AS col0, - ( 49 ) * + 31 * 22 + - + 54 + CAST( - 96 AS SIGNED ) + - 79 + - CAST( NULL AS SIGNED )
----
51
NULL

skipif mysql # not compatible
query II rowsort label-8140
SELECT DISTINCT + 51 AS col0, - ( 49 ) * + 31 * 22 + - + 54 + CAST ( - 96 AS INTEGER ) + - 79 + - CAST ( NULL AS INTEGER )
----
51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT 55 * - ( - - 56 ) * - COUNT( * ) + + - 40 AS col0
----
3040

skipif mysql # not compatible
query I rowsort label-8141
SELECT 55 * - ( - - 56 ) * - COUNT ( * ) + + - 40 AS col0
----
3040

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT MIN( ( - 81 ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-8143
SELECT MIN ( ( - 81 ) ) AS col2
----
-81

query I rowsort
SELECT ALL - 77 * 81 + - 3
----
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT ALL + CASE - + 65 WHEN + CASE 68 WHEN + ( + 66 ) THEN NULL WHEN + - 0 + - + 51 - + - 9 THEN COUNT( * ) * - + 72 * COUNT( * ) ELSE NULL END THEN - 44 * 97 - 53 END * - 80 + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL + CASE - + 65 WHEN + CASE 68 WHEN + ( + 66 ) THEN NULL WHEN + - 0 + - + 51 - + - 9 THEN COUNT ( * ) * - + 72 * COUNT ( * ) ELSE NULL END THEN - 44 * 97 - 53 END * - 80 + 28
----
NULL

query I rowsort
SELECT + 61 + - 85 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT COUNT( * ) * 85 * - 31 - + 18 + + + 48 AS col0
----
-2605

skipif mysql # not compatible
query I rowsort label-8147
SELECT COUNT ( * ) * 85 * - 31 - + 18 + + + 48 AS col0
----
-2605

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

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

query I rowsort
SELECT - 43 - 29
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT + NULLIF ( + 80, - + COUNT( * ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-8150
SELECT + NULLIF ( + 80, - + COUNT ( * ) ) AS col1
----
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT + 48 * SUM( DISTINCT - 16 )
----
-768

skipif mysql # not compatible
query I rowsort label-8152
SELECT + 48 * SUM ( DISTINCT - 16 )
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT - COUNT( DISTINCT - 10 ) + - 29 * + 99
----
-2872

skipif mysql # not compatible
query I rowsort label-8153
SELECT - COUNT ( DISTINCT - 10 ) + - 29 * + 99
----
-2872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8154
SELECT - - 38 AS col0, - 25 * - 82 * + - 7 - + CASE - + 81 WHEN 60 * 34 / + 5 THEN NULLIF ( + 59, COUNT( * ) / 91 ) ELSE CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + ( 15 ) END
----
38
NULL

skipif mysql # not compatible
query II rowsort label-8154
SELECT - - 38 AS col0, - 25 * - 82 * + - 7 - + CASE - + 81 WHEN 60 * 34 / + 5 THEN NULLIF ( + 59, COUNT ( * ) / 91 ) ELSE CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + ( 15 ) END
----
38
NULL

query II rowsort
SELECT - - 69 col1, 78 + - 42 col0
----
69
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT DISTINCT - 75 - + 65 * COUNT( * ) AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT - 75 - + 65 * COUNT ( * ) AS col2
----
-140

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

skipif mysql # not compatible
query I rowsort label-8157
SELECT - COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8158
SELECT - - 15 AS col1, + MIN( + 43 ) AS col1
----
15
43

skipif mysql # not compatible
query II rowsort label-8158
SELECT - - 15 AS col1, + MIN ( + 43 ) AS col1
----
15
43

query II rowsort
SELECT - 3 + 0 - 7 + - 66 AS col2, - 45
----
-76
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-8160
SELECT ALL - + COUNT( * ) * + 95 AS col0, 27 + 41
----
-95
68

skipif mysql # not compatible
query II rowsort label-8160
SELECT ALL - + COUNT ( * ) * + 95 AS col0, 27 + 41
----
-95
68

query I rowsort
SELECT - + ( 84 ) + - + ( - 65 ) AS col1
----
-19

query I rowsort
SELECT - + 87 * - 27 + + 1 + 58
----
2408

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

query II rowsort
SELECT DISTINCT - 46 AS col0, + 68
----
-46
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT - 5 * + SUM( ALL + 23 )
----
-115

skipif mysql # not compatible
query I rowsort label-8165
SELECT - 5 * + SUM ( ALL + 23 )
----
-115

query I rowsort
SELECT - 45 + - 35
----
-80

query II rowsort
SELECT - 82 AS col1, 32
----
-82
32

onlyif mysql # aggregate syntax: 
query II rowsort label-8168
SELECT ALL 93, + COALESCE ( - 17, - CASE - + 83 WHEN + 28 THEN - 61 END, - + COUNT( * ) ) col0
----
93
-17

skipif mysql # not compatible
query II rowsort label-8168
SELECT ALL 93, + COALESCE ( - 17, - CASE - + 83 WHEN + 28 THEN - 61 END, - + COUNT ( * ) ) col0
----
93
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT DISTINCT + 66 * - 80 * - NULLIF ( + COUNT( * ), 25 / + - 20 * + + COUNT( * ) ) AS col2
----
5280

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT + 66 * - 80 * - NULLIF ( + COUNT ( * ), 25 / + - 20 * + + COUNT ( * ) ) AS col2
----
5280

query I rowsort
SELECT - 72 * - - 87
----
-6264

query I rowsort
SELECT + + 54 + + 94
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8172
SELECT ALL - 27 DIV - 18 + - + 18 * + MIN( + - NULLIF ( 55, - - 1 ) ) AS col0, 59 * + 42
----
991
2478

skipif mysql # not compatible
query II rowsort label-8172
SELECT ALL - 27 / - 18 + - + 18 * + MIN ( + - NULLIF ( 55, - - 1 ) ) AS col0, 59 * + 42
----
991
2478

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8173
SELECT 87 / - + CAST( NULL AS DECIMAL ) + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8173
SELECT 87 / - + CAST ( NULL AS REAL ) + 69
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8174
SELECT DISTINCT - 83 DIV + - 74 + + MAX( DISTINCT 54 ) + - COUNT( - + 55 ) * - 89
----
144

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT - 83 / + - 74 + + MAX ( DISTINCT 54 ) + - COUNT ( - + 55 ) * - 89
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8175
SELECT ALL + 50 DIV + MAX( ALL + - 17 ) + CASE ( + - 55 ) WHEN 88 * - - 93 + 26 THEN + 33 DIV + 35 WHEN - 42 THEN COALESCE ( COUNT( * ), 83 * CASE 85 WHEN 27 * + 55 - - 81 THEN COUNT( * ) END + CASE 78 WHEN 39 * CAST( CASE 23 WHEN 14 * CAST( NULL AS SIGNED ) THEN ( ( - COALESCE ( COUNT( * ), COUNT( * ) * COUNT( DISTINCT + 86 ) + - MIN( DISTINCT - 34 + 85 ) ) ) ) END AS SIGNED ) THEN 18 END ) ELSE MIN( CAST( - 14 AS SIGNED ) ) * ( ( CASE + ( + 22 ) WHEN COUNT( * ) THEN - 7 WHEN 66 THEN ( 45 ) DIV - ( + 14 ) ELSE + 29 END ) ) END
----
-408

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + 50 / + MAX ( ALL + - 17 ) + CASE ( + - 55 ) WHEN 88 * - - 93 + 26 THEN + 33 / + 35 WHEN - 42 THEN COALESCE ( COUNT ( * ), 83 * CASE 85 WHEN 27 * + 55 - - 81 THEN COUNT ( * ) END + CASE 78 WHEN 39 * CAST ( CASE 23 WHEN 14 * CAST ( NULL AS INTEGER ) THEN ( ( - COALESCE ( COUNT ( * ), COUNT ( * ) * COUNT ( DISTINCT + 86 ) + - MIN ( DISTINCT - 34 + 85 ) ) ) ) END AS INTEGER ) THEN 18 END ) ELSE MIN ( CAST ( - 14 AS INTEGER ) ) * ( ( CASE + ( + 22 ) WHEN COUNT ( * ) THEN - 7 WHEN 66 THEN ( 45 ) / - ( + 14 ) ELSE + 29 END ) ) END
----
-408

query I rowsort
SELECT - 61 * 65
----
-3965

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

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

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

query I rowsort
SELECT + 31 * + 37 col2
----
1147

query I rowsort
SELECT + 37 * + 95 * - NULLIF ( - + 63, + 12 + + 84 ) AS col2
----
221445

query I rowsort
SELECT ALL 71 * - 46 - + + 14 + - 97 AS col0
----
-3377

query II rowsort
SELECT + 7 * + 41 AS col1, 50
----
287
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8183
SELECT DISTINCT 72 DIV + 98 * + - 78
----
0

skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT 72 / + 98 * + - 78
----
0

query I rowsort
SELECT ALL 65 * - + 51 AS col2
----
-3315

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT 62 * - 66 - + 29 + - SUM( DISTINCT + + 40 )
----
-4161

skipif mysql # not compatible
query I rowsort label-8185
SELECT 62 * - 66 - + 29 + - SUM ( DISTINCT + + 40 )
----
-4161

query I rowsort
SELECT DISTINCT 48 * - + 34 AS col2
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT - + SUM( DISTINCT 78 ) + 78 + + 88 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-8187
SELECT - + SUM ( DISTINCT 78 ) + 78 + + 88 AS col0
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT DISTINCT + NULLIF ( COALESCE ( 46, 11, + + 60 ), + COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT + NULLIF ( COALESCE ( 46, 11, + + 60 ), + COUNT ( * ) )
----
46

query I rowsort
SELECT DISTINCT + 72 * + 43 AS col0
----
3096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8191
SELECT DISTINCT 50 DIV - 55 * + - 84 + - MAX( ALL + + 30 ) + - SUM( ALL - 63 ) * - 61 * ( + - 68 ) * + 84 - 87 DIV 10
----
21951178

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT 50 / - 55 * + - 84 + - MAX ( ALL + + 30 ) + - SUM ( ALL - 63 ) * - 61 * ( + - 68 ) * + 84 - 87 / 10
----
21951178

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT DISTINCT MAX( ALL + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT MAX ( ALL + 73 )
----
73

query I rowsort
SELECT + - 39 * - 18 col1
----
702

onlyif mysql # aggregate syntax: 
query II rowsort label-8194
SELECT - - COUNT( * ) + + - NULLIF ( + + MAX( - 74 ), 46 * + - 53 + + - ( - 81 ) - - 10 ) * + 36, + 40 + - NULLIF ( - SUM( DISTINCT 15 ), 26 ) AS col1
----
2665
55

skipif mysql # not compatible
query II rowsort label-8194
SELECT - - COUNT ( * ) + + - NULLIF ( + + MAX ( - 74 ), 46 * + - 53 + + - ( - 81 ) - - 10 ) * + 36, + 40 + - NULLIF ( - SUM ( DISTINCT 15 ), 26 ) AS col1
----
2665
55

query I rowsort
SELECT DISTINCT - - 35 + + + 18 AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8196
SELECT - - CASE + 45 WHEN 10 THEN 45 WHEN - ( - 28 ) THEN + + 30 END / + CAST( 14 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT - - CASE + 45 WHEN 10 THEN 45 WHEN - ( - 28 ) THEN + + 30 END / + CAST ( 14 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8197
SELECT - - 84 DIV + 8
----
10

skipif mysql # not compatible
query I rowsort label-8197
SELECT - - 84 / + 8
----
10

query I rowsort
SELECT 12 * + + COALESCE ( - 58, + 23 * - 70 )
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT DISTINCT + 76 + - 92 + - + 20 - - - 97 + - 58 * + + COUNT( * ) AS col0
----
-191

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT + 76 + - 92 + - + 20 - - - 97 + - 58 * + + COUNT ( * ) AS col0
----
-191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8200
SELECT ALL - 55 + - CAST( + + 81 AS SIGNED ) AS col2
----
-136

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL - 55 + - CAST ( + + 81 AS INTEGER ) AS col2
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT DISTINCT - 10 + 16 + - COUNT( ALL 43 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8201
SELECT DISTINCT - 10 + 16 + - COUNT ( ALL 43 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8202
SELECT DISTINCT - 37 + + COUNT( * ) - - - COUNT( * ) AS col0, + 67
----
-37
67

skipif mysql # not compatible
query II rowsort label-8202
SELECT DISTINCT - 37 + + COUNT ( * ) - - - COUNT ( * ) AS col0, + 67
----
-37
67

query I rowsort
SELECT ALL - ( - 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT ALL - SUM( + 4 ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL - SUM ( + 4 ) col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8205
SELECT CASE 16 WHEN + 96 / - CASE - + 58 WHEN 69 - - + 60 + + SUM( + - 65 ) * - 11 / + 23 THEN COUNT( * ) + COUNT( * ) END * + 79 THEN + CAST( NULL AS DECIMAL ) * + 10 WHEN 22 THEN NULL WHEN - 84 * 60 THEN NULL END * - NULLIF ( - 24, + 60 + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT CASE 16 WHEN + 96 / - CASE - + 58 WHEN 69 - - + 60 + + SUM ( + - 65 ) * - 11 / + 23 THEN COUNT ( * ) + COUNT ( * ) END * + 79 THEN + CAST ( NULL AS REAL ) * + 10 WHEN 22 THEN NULL WHEN - 84 * 60 THEN NULL END * - NULLIF ( - 24, + 60 + + COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8206
SELECT ALL - 92 - ( 16 ) DIV + + 13
----
-93

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL - 92 - ( 16 ) / + + 13
----
-93

query I rowsort
SELECT 46 - 19
----
27

query I rowsort
SELECT ALL 19 * 36 AS col0
----
684

query I rowsort
SELECT ALL - 30 * 94
----
-2820

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

query II rowsort
SELECT 38 AS col0, - 17 AS col2
----
38
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-8212
SELECT + 71 col0, - ( + ( + 74 ) ) * + 71 + + COUNT( * )
----
71
-5253

skipif mysql # not compatible
query II rowsort label-8212
SELECT + 71 col0, - ( + ( + 74 ) ) * + 71 + + COUNT ( * )
----
71
-5253

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

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

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

skipif mysql # not compatible
query I rowsort label-8214
SELECT 98 * + - COUNT ( * ) * 96 AS col1
----
-9408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8215
SELECT ALL 50 DIV - 20 + - 58 * + COALESCE ( + - ( ( - - 71 ) ), - ( 57 ) - MIN( - - ( + 90 ) ) ) + + + 84 * + 33 AS col1
----
6888

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL 50 / - 20 + - 58 * + COALESCE ( + - ( ( - - 71 ) ), - ( 57 ) - MIN ( - - ( + 90 ) ) ) + + + 84 * + 33 AS col1
----
6888

query I rowsort
SELECT ALL - CASE 52 WHEN - 57 - 68 THEN + 71 * + - 39 * + - CASE 78 WHEN NULLIF ( - + 79, - 47 ) + - 2 THEN NULL WHEN - - 12 / + 22 + 43 * 14 THEN + 98 ELSE NULL END - + 12 - ( + 26 - ( 37 ) * - 57 ) WHEN 79 THEN NULL ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT 78 * + 70 col2
----
5460

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

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

query II rowsort
SELECT ALL - 37, - 59 col1
----
-37
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8221
SELECT + 60 * - SUM( 5 ) - - CASE - + COUNT( * ) WHEN + - 83 THEN NULL WHEN + 55 + - - 88 THEN NULL ELSE + + 33 * - + 22 * 99 + - CAST( - - 14 AS SIGNED ) END AS col0
----
-72188

skipif mysql # not compatible
query I rowsort label-8221
SELECT + 60 * - SUM ( 5 ) - - CASE - + COUNT ( * ) WHEN + - 83 THEN NULL WHEN + 55 + - - 88 THEN NULL ELSE + + 33 * - + 22 * 99 + - CAST ( - - 14 AS INTEGER ) END AS col0
----
-72188

query I rowsort
SELECT ALL - 43 + - - 28
----
-15

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

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

query I rowsort
SELECT + 37 * + 6 + + + 13
----
235

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8226
SELECT ALL - MIN( - - 39 ) * - - 61 + - 6 * + + 49 * MAX( DISTINCT 95 ) * COUNT( * ) - + COUNT( ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * - 20 - + 9 * 49
----
-30750

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL - MIN ( - - 39 ) * - - 61 + - 6 * + + 49 * MAX ( DISTINCT 95 ) * COUNT ( * ) - + COUNT ( ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - 20 - + 9 * 49
----
-30750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8227
SELECT + 27 + CAST( NULL AS SIGNED ) * COUNT( * ) / + CAST( - - 11 AS SIGNED ) / AVG ( 46 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT + 27 + CAST ( NULL AS INTEGER ) * COUNT ( * ) / + CAST ( - - 11 AS INTEGER ) / AVG ( 46 ) AS col1
----
NULL

query II rowsort
SELECT 47 * + 18 * + - 95, 46 AS col0
----
-80370
46

query II rowsort
SELECT - 49 + - COALESCE ( 94, - - 41 ), - 40 AS col1
----
-143
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT ALL 23 * - 39 + - 93 * COUNT( * ) AS col2
----
-990

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL 23 * - 39 + - 93 * COUNT ( * ) AS col2
----
-990

query I rowsort
SELECT DISTINCT - 80 + - + 46 col2
----
-126

query I rowsort
SELECT - 76 + - - 90 AS col0
----
14

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

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL - 47 + + COUNT ( * ) AS col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8234
SELECT 37 - 85 + + - 98 / 13 / - - CASE + 14 WHEN + + 47 * 30 * - 78 / - 7 * 10 - + + COUNT( * ) + - 33 - - + ( - ( CASE CAST( COUNT( * ) AS SIGNED ) WHEN 54 THEN NULL ELSE - SUM( 21 ) END ) ) + 18 THEN 78 WHEN 75 THEN 63 ELSE NULL END / 97 + - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT 37 - 85 + + - 98 / 13 / - - CASE + 14 WHEN + + 47 * 30 * - 78 / - 7 * 10 - + + COUNT ( * ) + - 33 - - + ( - ( CASE CAST ( COUNT ( * ) AS INTEGER ) WHEN 54 THEN NULL ELSE - SUM ( 21 ) END ) ) + 18 THEN 78 WHEN 75 THEN 63 ELSE NULL END / 97 + - 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8235
SELECT DISTINCT 97 DIV - - 99 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT 97 / - - 99 * COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ( - + NULLIF ( - - 6, - - COUNT( * ) + COUNT( * ) - + 90 / 25 * - ( + 12 ) * + ( 70 ) * - 12 ) ) + + 86
----
80

skipif mysql # not compatible
query I rowsort label-8236
SELECT ( - + NULLIF ( - - 6, - - COUNT ( * ) + COUNT ( * ) - + 90 / 25 * - ( + 12 ) * + ( 70 ) * - 12 ) ) + + 86
----
80

query I rowsort
SELECT 47 + - + 94
----
-47

query I rowsort
SELECT ALL - 33 * + - 45 AS col2
----
1485

query II rowsort
SELECT 57 + 46 + + 46 + 91 AS col2, 47 + 14 AS col1
----
240
61

query I rowsort
SELECT ALL - NULLIF ( 76, - - 52 * + 81 ) - + 10
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT COUNT( * ) * + COUNT( ALL + COALESCE ( - - 68, - 87 * - 0 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8241
SELECT COUNT ( * ) * + COUNT ( ALL + COALESCE ( - - 68, - 87 * - 0 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT - MAX( + 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8242
SELECT - MAX ( + 11 ) AS col1
----
-11

query I rowsort
SELECT 66 + + 85 AS col0
----
151

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8245
SELECT DISTINCT CAST( - 39 AS SIGNED ) * - NULLIF ( COUNT( * ), + COUNT( * ) + - CASE 53 WHEN - + COUNT( * ) * - + 65 THEN 19 END * + 40 * - + COUNT( * ) ) * + 94 - - 39
----
3705

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT CAST ( - 39 AS INTEGER ) * - NULLIF ( COUNT ( * ), + COUNT ( * ) + - CASE 53 WHEN - + COUNT ( * ) * - + 65 THEN 19 END * + 40 * - + COUNT ( * ) ) * + 94 - - 39
----
3705

query I rowsort
SELECT 66 * - 83
----
-5478

query I rowsort
SELECT ALL - COALESCE ( + - 85, - 33 ) AS col1
----
85

query I rowsort
SELECT CASE WHEN NOT - ( 86 ) IS NOT NULL THEN + 75 ELSE - - 84 END * - 52 + + 72
----
-4296

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT 52 * + 37 * + 7 * MIN( + 77 ) * - 36 + 29
----
-37333267

skipif mysql # not compatible
query I rowsort label-8249
SELECT 52 * + 37 * + 7 * MIN ( + 77 ) * - 36 + 29
----
-37333267

query I rowsort
SELECT ALL - NULLIF ( + 51, - 62 ) AS col1
----
-51

query I rowsort
SELECT 0 + - 14 - + 21
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL - 98 * SUM( - - 96 )
----
-9408

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL - 98 * SUM ( - - 96 )
----
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL - 38 * - - ( - COUNT( * ) ) col1
----
38

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL - 38 * - - ( - COUNT ( * ) ) col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT + 18 + + 64 + + 94 * 56 * + - 87 + + CASE 91 WHEN - + 85 + AVG ( ALL + + 61 ) * - 44 THEN - MAX( DISTINCT + COALESCE ( 46, 87 ) ) * - MAX( + 44 ) WHEN 35 THEN NULL ELSE NULL END * + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT + 18 + + 64 + + 94 * 56 * + - 87 + + CASE 91 WHEN - + 85 + AVG ( ALL + + 61 ) * - 44 THEN - MAX ( DISTINCT + COALESCE ( 46, 87 ) ) * - MAX ( + 44 ) WHEN 35 THEN NULL ELSE NULL END * + 69
----
NULL

query II rowsort
SELECT DISTINCT - - 69 * + - 51 AS col0, + 70 col0
----
-3519
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8256
SELECT ALL - COALESCE ( + 27, - NULLIF ( 67, - + 72 * - 26 ) - 56 ) AS col2, 12 + - COUNT( * ) * - CASE COUNT( * ) WHEN - 83 + 83 THEN NULL WHEN - + 65 THEN NULL ELSE CASE - 76 WHEN ( - 57 ) THEN - COALESCE ( COUNT( * ), COUNT( * ) - 89, 97 - - MAX( DISTINCT 28 ) ) * - 48 + 42 DIV + 18 WHEN - CASE 56 WHEN - 22 * - COUNT( * ) THEN - COUNT( * ) WHEN + COUNT( * ) THEN NULL END THEN 40 ELSE + 3 DIV - COUNT( * ) END END DIV 40 + - 10
----
-27
2

skipif mysql # not compatible
query II rowsort label-8256
SELECT ALL - COALESCE ( + 27, - NULLIF ( 67, - + 72 * - 26 ) - 56 ) AS col2, 12 + - COUNT ( * ) * - CASE COUNT ( * ) WHEN - 83 + 83 THEN NULL WHEN - + 65 THEN NULL ELSE CASE - 76 WHEN ( - 57 ) THEN - COALESCE ( COUNT ( * ), COUNT ( * ) - 89, 97 - - MAX ( DISTINCT 28 ) ) * - 48 + 42 / + 18 WHEN - CASE 56 WHEN - 22 * - COUNT ( * ) THEN - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL END THEN 40 ELSE + 3 / - COUNT ( * ) END END / 40 + - 10
----
-27
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT + 90 * + 51 * - COUNT( * ) + + - 16
----
-4606

skipif mysql # not compatible
query I rowsort label-8257
SELECT + 90 * + 51 * - COUNT ( * ) + + - 16
----
-4606

query I rowsort
SELECT ALL - 94 * 35
----
-3290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8259
SELECT MIN( ALL + CAST( - - ( 16 ) AS SIGNED ) ) DIV + - 64 AS col1, 59 DIV - ( + 52 ) col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-8259
SELECT MIN ( ALL + CAST ( - - ( 16 ) AS INTEGER ) ) / + - 64 AS col1, 59 / - ( + 52 ) col1
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL ( - 54 ) + + COALESCE ( 10, - COUNT( * ), 64 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL ( - 54 ) + + COALESCE ( 10, - COUNT ( * ), 64 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT DISTINCT - COUNT( * ) + - COALESCE ( - 35, + COUNT( 78 ) )
----
34

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT - COUNT ( * ) + - COALESCE ( - 35, + COUNT ( 78 ) )
----
34

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

skipif mysql # not compatible
query I rowsort label-8262
SELECT 72 / COUNT ( * ) col0
----
72

query I rowsort
SELECT ALL 68 + 90 * - - 27
----
2498

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT - COALESCE ( - 45, 62, - COUNT( * ) * - + 41 + + 12 ) * + + CASE 91 WHEN - 97 + + COUNT( * ) * + - COUNT( * ) THEN + + COUNT( - + 52 ) - + 19 WHEN + ( 8 ) / - 52 + 86 * + 40 THEN + 27 + 0 WHEN - 91 THEN 68 + 32 WHEN 6 / 45 THEN NULL END + + NULLIF ( AVG ( + 73 ), + 45 * + 24 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8264
SELECT - COALESCE ( - 45, 62, - COUNT ( * ) * - + 41 + + 12 ) * + + CASE 91 WHEN - 97 + + COUNT ( * ) * + - COUNT ( * ) THEN + + COUNT ( - + 52 ) - + 19 WHEN + ( 8 ) / - 52 + 86 * + 40 THEN + 27 + 0 WHEN - 91 THEN 68 + 32 WHEN 6 / 45 THEN NULL END + + NULLIF ( AVG ( + 73 ), + 45 * + 24 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 51 + - 89 - - 12 col0
----
-26

query I rowsort
SELECT DISTINCT 95 + + 68 + - 8
----
155

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8268
SELECT + 83 DIV - 13 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8268
SELECT + 83 / - 13 AS col0
----
-6

query I rowsort
SELECT + 32 * + 3 * - 77 * + 28 AS col1
----
-206976

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8271
SELECT ALL CAST( NULL AS DECIMAL ) - MIN( DISTINCT + 8 ), ( - 51 ) + 45 AS col1
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-8271
SELECT ALL CAST ( NULL AS REAL ) - MIN ( DISTINCT + 8 ), ( - 51 ) + 45 AS col1
----
NULL
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT - COALESCE ( - 91, - 52 * + 16 - - 73 * - - ( - + 66 ) + - - MAX( DISTINCT - - 88 ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8272
SELECT - COALESCE ( - 91, - 52 * + 16 - - 73 * - - ( - + 66 ) + - - MAX ( DISTINCT - - 88 ) ) AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8273
SELECT + COUNT( * ) * - + 79 DIV - + 38
----
2

skipif mysql # not compatible
query I rowsort label-8273
SELECT + COUNT ( * ) * - + 79 / - + 38
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8274
SELECT ALL 42 DIV NULLIF ( 48, MAX( ALL - 9 ) ) * + 40 * - 45 * NULLIF ( - 65, + NULLIF ( - COUNT( * ), + 36 DIV - 73 * + 74 + + 70 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL 42 / NULLIF ( 48, MAX ( ALL - 9 ) ) * + 40 * - 45 * NULLIF ( - 65, + NULLIF ( - COUNT ( * ), + 36 / - 73 * + 74 + + 70 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT - COUNT( * ) * + 14 + + + CASE - NULLIF ( - COUNT( 35 ), + 26 * + 14 ) WHEN 60 THEN COUNT( * ) WHEN + 16 THEN NULL END * SUM( DISTINCT + - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8275
SELECT - COUNT ( * ) * + 14 + + + CASE - NULLIF ( - COUNT ( 35 ), + 26 * + 14 ) WHEN 60 THEN COUNT ( * ) WHEN + 16 THEN NULL END * SUM ( DISTINCT + - 5 )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8277
SELECT + MIN( + 38 ) * + MAX( 31 ) - - COUNT( * ) AS col0, - COUNT( * ) + - + 37 DIV - + 30
----
1179
0

skipif mysql # not compatible
query II rowsort label-8277
SELECT + MIN ( + 38 ) * + MAX ( 31 ) - - COUNT ( * ) AS col0, - COUNT ( * ) + - + 37 / - + 30
----
1179
0

query II rowsort
SELECT - 7 * + ( 44 ), + 89 AS col2
----
-308
89

query I rowsort
SELECT ALL + NULLIF ( - 19, + + 92 + + 73 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT - 94 + ( + - 93 ) * + COALESCE ( CASE + 58 WHEN + 43 * - + 9 * NULLIF ( - COUNT( * ), + 89 + ( - MAX( ALL 35 ) ) ) + 49 + - 23 THEN 55 - 6 END, + NULLIF ( 90, COUNT( * ) ) )
----
-8464

skipif mysql # not compatible
query I rowsort label-8280
SELECT - 94 + ( + - 93 ) * + COALESCE ( CASE + 58 WHEN + 43 * - + 9 * NULLIF ( - COUNT ( * ), + 89 + ( - MAX ( ALL 35 ) ) ) + 49 + - 23 THEN 55 - 6 END, + NULLIF ( 90, COUNT ( * ) ) )
----
-8464

query I rowsort
SELECT - 15 * + + 72
----
-1080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8282
SELECT ALL 54 * + 8 + + - 27 + + - COUNT( * ) + - CASE + COALESCE ( CASE + 60 WHEN + 72 THEN COUNT( * ) WHEN 47 * + CAST( NULL AS SIGNED ) + + - 14 THEN NULL ELSE - + NULLIF ( + - 97, + 35 ) * + 23 END, 3 + + MAX( ALL - 81 + - 46 * - 30 ) ) WHEN - 93 + NULLIF ( - 63, + 97 * COALESCE ( + 39, 36 / + 67 + 49 ) ) THEN NULL WHEN - COUNT( * ) - - 55 THEN NULLIF ( + ( 85 ), 90 * - 61 ) + 90 * CAST( 97 AS SIGNED ) ELSE NULL END * 89 / - MIN( DISTINCT ( CAST( 88 AS DECIMAL ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL 54 * + 8 + + - 27 + + - COUNT ( * ) + - CASE + COALESCE ( CASE + 60 WHEN + 72 THEN COUNT ( * ) WHEN 47 * + CAST ( NULL AS INTEGER ) + + - 14 THEN NULL ELSE - + NULLIF ( + - 97, + 35 ) * + 23 END, 3 + + MAX ( ALL - 81 + - 46 * - 30 ) ) WHEN - 93 + NULLIF ( - 63, + 97 * COALESCE ( + 39, 36 / + 67 + 49 ) ) THEN NULL WHEN - COUNT ( * ) - - 55 THEN NULLIF ( + ( 85 ), 90 * - 61 ) + 90 * CAST ( 97 AS INTEGER ) ELSE NULL END * 89 / - MIN ( DISTINCT ( CAST ( 88 AS REAL ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT ALL + - COUNT( * ) * - - 80 + + - ( - 31 ) + COALESCE ( + ( + 83 ), 65 ) * COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL + - COUNT ( * ) * - - 80 + + - ( - 31 ) + COALESCE ( + ( + 83 ), 65 ) * COUNT ( * ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT - 56 - - NULLIF ( - + 70, 47 + - 17 * 18 ) * + - 82 + - MAX( DISTINCT - - 76 )
----
5608

skipif mysql # not compatible
query I rowsort label-8284
SELECT - 56 - - NULLIF ( - + 70, 47 + - 17 * 18 ) * + - 82 + - MAX ( DISTINCT - - 76 )
----
5608

onlyif mysql # DIV for integer division: 
query I rowsort label-8285
SELECT DISTINCT + 42 * - 82 + - 86 - - ( + + 65 ) DIV - 25
----
-3532

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT + 42 * - 82 + - 86 - - ( + + 65 ) / - 25
----
-3532

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT COUNT( - - 86 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8286
SELECT COUNT ( - - 86 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8287
SELECT DISTINCT - 49 * + CAST( 87 AS SIGNED )
----
-4263

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT - 49 * + CAST ( 87 AS INTEGER )
----
-4263

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8288
SELECT DISTINCT + - CASE + 67 WHEN - 6 / - CAST( NULL AS DECIMAL ) + - 12 THEN NULL ELSE 78 * 34 END
----
-2652

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT + - CASE + 67 WHEN - 6 / - CAST ( NULL AS REAL ) + - 12 THEN NULL ELSE 78 * 34 END
----
-2652

query I rowsort
SELECT DISTINCT + - 19 * 29 * + - 17 + - 60 AS col0
----
9307

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT - + COUNT( * ) + 15 + 99
----
113

skipif mysql # not compatible
query I rowsort label-8290
SELECT - + COUNT ( * ) + 15 + 99
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-8291
SELECT ALL + - 99 * + COUNT( * ) + 2 AS col0, + 67 AS col0
----
-97
67

skipif mysql # not compatible
query II rowsort label-8291
SELECT ALL + - 99 * + COUNT ( * ) + 2 AS col0, + 67 AS col0
----
-97
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT DISTINCT - + MAX( DISTINCT + 2 ) * + 1 - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT - + MAX ( DISTINCT + 2 ) * + 1 - - COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT + + 49 * - 73 * + - 19 AS col0
----
67963

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

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

query I rowsort
SELECT - 72 * - - 24 * 9 + + 79
----
-15473

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT - COUNT( * ) + + 80 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-8296
SELECT - COUNT ( * ) + + 80 AS col0
----
79

query I rowsort
SELECT - 56 + - 53
----
-109

query I rowsort
SELECT - 15 * - 48
----
720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8299
SELECT + NULLIF ( CAST( - - ( 61 ) AS SIGNED ), + + COUNT( * ) * + 23 + 30 * + 72 ) * - 78
----
-4758

skipif mysql # not compatible
query I rowsort label-8299
SELECT + NULLIF ( CAST ( - - ( 61 ) AS INTEGER ), + + COUNT ( * ) * + 23 + 30 * + 72 ) * - 78
----
-4758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8300
SELECT - COUNT( * ) + 27 - - - CASE + 54 WHEN + - ( - - 2 ) * ( - + 86 ) * + 49 * + 53 + 6 THEN NULL ELSE 52 DIV CAST( + - 25 AS SIGNED ) * + 39 + - ( 28 ) + 97 END * - 22 AS col0
----
-172

skipif mysql # not compatible
query I rowsort label-8300
SELECT - COUNT ( * ) + 27 - - - CASE + 54 WHEN + - ( - - 2 ) * ( - + 86 ) * + 49 * + 53 + 6 THEN NULL ELSE 52 / CAST ( + - 25 AS INTEGER ) * + 39 + - ( 28 ) + 97 END * - 22 AS col0
----
-172

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

query I rowsort
SELECT ALL + ( 0 ) / + CASE + 89 WHEN - 64 + - 95 THEN - 38 ELSE NULL END * - 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT + CASE - 83 WHEN + + 33 / 7 / - 65 THEN NULL WHEN + 67 + + 45 THEN COUNT( * ) END + + ( + 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT + CASE - 83 WHEN + + 33 / 7 / - 65 THEN NULL WHEN + 67 + + 45 THEN COUNT ( * ) END + + ( + 96 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8304
SELECT ALL 96 * - - 57, + NULLIF ( - 4, + CAST( - + 64 AS SIGNED ) * - + CAST( + ( - CAST( NULL AS DECIMAL ) ) AS SIGNED ) + - 76 * 13 * - + 73 - - + 10 ) + CAST( + + 88 AS DECIMAL ) * - COUNT( * ) + MAX( CASE - 93 WHEN 20 THEN 29 ELSE NULL END ) AS col1
----
5472
NULL

skipif mysql # not compatible
query II rowsort label-8304
SELECT ALL 96 * - - 57, + NULLIF ( - 4, + CAST ( - + 64 AS INTEGER ) * - + CAST ( + ( - CAST ( NULL AS REAL ) ) AS INTEGER ) + - 76 * 13 * - + 73 - - + 10 ) + CAST ( + + 88 AS REAL ) * - COUNT ( * ) + MAX ( CASE - 93 WHEN 20 THEN 29 ELSE NULL END ) AS col1
----
5472
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT + NULLIF ( + 16, 6 ) DIV - 15
----
-1

skipif mysql # not compatible
query I rowsort label-8305
SELECT + NULLIF ( + 16, 6 ) / - 15
----
-1

query I rowsort
SELECT DISTINCT + 88 * - 17
----
-1496

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT + SUM( + - 59 ) + - 69 AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-8307
SELECT + SUM ( + - 59 ) + - 69 AS col0
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8308
SELECT + CAST( NULL AS SIGNED ) / + NULLIF ( + 67, - 78 * COUNT( * ) * - MIN( - 64 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT + CAST ( NULL AS INTEGER ) / + NULLIF ( + 67, - 78 * COUNT ( * ) * - MIN ( - 64 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8309
SELECT ALL 97, - COUNT( * ) col0
----
97
-1

skipif mysql # not compatible
query II rowsort label-8309
SELECT ALL 97, - COUNT ( * ) col0
----
97
-1

query II rowsort
SELECT 41 AS col1, 31
----
41
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8311
SELECT + CAST( - COUNT( * ) AS SIGNED ) + + 75 + + 42 col1, COALESCE ( - - COUNT( * ), - 20 * - 99 ) * - - 3 * - 43 AS col1
----
116
-129

skipif mysql # not compatible
query II rowsort label-8311
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + + 75 + + 42 col1, COALESCE ( - - COUNT ( * ), - 20 * - 99 ) * - - 3 * - 43 AS col1
----
116
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT - COUNT( * ) * - 70 * 21 AS col2
----
1470

skipif mysql # not compatible
query I rowsort label-8312
SELECT - COUNT ( * ) * - 70 * 21 AS col2
----
1470

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8313
SELECT ALL 36 * + - NULLIF ( - - 97, + MAX( DISTINCT - 75 ) ) / + NULLIF ( + COUNT( * ), - 71 + + 8 + - 71 ) + - + CAST( NULL AS DECIMAL ), - 61 AS col2
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-8313
SELECT ALL 36 * + - NULLIF ( - - 97, + MAX ( DISTINCT - 75 ) ) / + NULLIF ( + COUNT ( * ), - 71 + + 8 + - 71 ) + - + CAST ( NULL AS REAL ), - 61 AS col2
----
NULL
-61

query II rowsort
SELECT 54 AS col1, 89 AS col1
----
54
89

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8316
SELECT + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) / + - 95 * 48 / - - 18 + 73 * 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) / + - 95 * 48 / - - 18 + 73 * 64 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8317
SELECT ALL 3 DIV + + 98 + - NULLIF ( + 46, - - 86 )
----
-46

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL 3 / + + 98 + - NULLIF ( + 46, - - 86 )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8318
SELECT DISTINCT - COUNT( * ) DIV - - COUNT( - + 3 ) + - + 43 * + + 80 * - 6 AS col1
----
20639

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT - COUNT ( * ) / - - COUNT ( - + 3 ) + - + 43 * + + 80 * - 6 AS col1
----
20639

query I rowsort
SELECT DISTINCT + 45 * + - 66 * + 35 AS col2
----
-103950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8320
SELECT + COUNT( * ) * + 53 DIV + MIN( + 38 ) - - - 47 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-8320
SELECT + COUNT ( * ) * + 53 / + MIN ( + 38 ) - - - 47 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-8321
SELECT ( + 25 ), + COUNT( * ) * NULLIF ( + - 60, + NULLIF ( 90, + 78 ) ) AS col0
----
25
-60

skipif mysql # not compatible
query II rowsort label-8321
SELECT ( + 25 ), + COUNT ( * ) * NULLIF ( + - 60, + NULLIF ( 90, + 78 ) ) AS col0
----
25
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT - COUNT( * ) * 5 + + 26
----
21

skipif mysql # not compatible
query I rowsort label-8322
SELECT - COUNT ( * ) * 5 + + 26
----
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8323
SELECT ALL + CASE COUNT( 44 ) WHEN + 41 THEN NULL WHEN - ( + 70 ) THEN + 1 + + CAST( NULL AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL + CASE COUNT ( 44 ) WHEN + 41 THEN NULL WHEN - ( + 70 ) THEN + 1 + + CAST ( NULL AS REAL ) ELSE NULL END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8325
SELECT + - CAST( + CASE + + 80 WHEN COALESCE ( 1, - - 66 * 10, - 37 + - COUNT( 14 ), - ( + 44 ) * + - 57 + + 22 + - + 21 ) THEN - + 73 * - ( COUNT( * ) + COALESCE ( 96, - 37 ) ) + COUNT( * ) END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT + - CAST ( + CASE + + 80 WHEN COALESCE ( 1, - - 66 * 10, - 37 + - COUNT ( 14 ), - ( + 44 ) * + - 57 + + 22 + - + 21 ) THEN - + 73 * - ( COUNT ( * ) + COALESCE ( 96, - 37 ) ) + COUNT ( * ) END AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8326
SELECT - + 9 DIV - + 51 + + 28
----
28

skipif mysql # not compatible
query I rowsort label-8326
SELECT - + 9 / - + 51 + + 28
----
28

query I rowsort
SELECT + ( 73 ) col0
----
73

query I rowsort
SELECT DISTINCT 72 + + NULLIF ( + 39, + - 22 )
----
111

query II rowsort
SELECT ALL - - 46, 29 AS col0
----
46
29

query I rowsort
SELECT 32 + ( + + 62 ) col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT DISTINCT 85 - + + COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT 85 - + + COUNT ( * ) AS col2
----
84

query II rowsort
SELECT DISTINCT - 3 - - + 96 col2, - 83 AS col1
----
93
-83

query I rowsort
SELECT DISTINCT + 92 * + 27 AS col1
----
2484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8334
SELECT DISTINCT - + 26 - + 0 + COUNT( * ) - - 50 * 70 + - + CAST( NULL AS SIGNED ) DIV + 9 DIV - 27 + + 28 col1, 51 DIV - - COUNT( * ) AS col0
----
NULL
51

skipif mysql # not compatible
query II rowsort label-8334
SELECT DISTINCT - + 26 - + 0 + COUNT ( * ) - - 50 * 70 + - + CAST ( NULL AS INTEGER ) / + 9 / - 27 + + 28 col1, 51 / - - COUNT ( * ) AS col0
----
NULL
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8335
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 7 / + - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 7 / + - 39 AS col2
----
NULL

query I rowsort
SELECT 70 * + 53 + 22
----
3732

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

query I rowsort
SELECT DISTINCT - 68 - + + 73
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT ALL CASE - 79 WHEN - + SUM( ALL 11 ) + COUNT( ALL - COALESCE ( - 29, - ( ( - 73 ) ), - 97 ) ) THEN NULL WHEN + 26 THEN - - 6 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL CASE - 79 WHEN - + SUM ( ALL 11 ) + COUNT ( ALL - COALESCE ( - 29, - ( ( - 73 ) ), - 97 ) ) THEN NULL WHEN + 26 THEN - - 6 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8340
SELECT 76 AS col0, ( - SUM( ALL + + 36 ) ) AS col0, 33 DIV ( + 71 ) AS col0
----
76
-36
0

skipif mysql # not compatible
query III rowsort label-8340
SELECT 76 AS col0, ( - SUM ( ALL + + 36 ) ) AS col0, 33 / ( + 71 ) AS col0
----
76
-36
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8341
SELECT 14, + COUNT( * ) + + + SUM( - CAST( NULL AS SIGNED ) ) - + 78 + - 72 * + 68 + - 49 + + 89 col2
----
14
NULL

skipif mysql # not compatible
query II rowsort label-8341
SELECT 14, + COUNT ( * ) + + + SUM ( - CAST ( NULL AS INTEGER ) ) - + 78 + - 72 * + 68 + - 49 + + 89 col2
----
14
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT ALL + 2 * + CASE + MIN( - + 9 ) WHEN 24 THEN COUNT( * ) + + + 69 / - + COUNT( * ) WHEN - COUNT( * ) + + MAX( ALL - 44 ) THEN NULL WHEN + + 46 THEN NULL ELSE NULL END * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL + 2 * + CASE + MIN ( - + 9 ) WHEN 24 THEN COUNT ( * ) + + + 69 / - + COUNT ( * ) WHEN - COUNT ( * ) + + MAX ( ALL - 44 ) THEN NULL WHEN + + 46 THEN NULL ELSE NULL END * - 63
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8344
SELECT DISTINCT + 93 * 68 AS col2, 58 * 69 + CASE - + 86 WHEN + 83 + SUM( DISTINCT 75 ) * + 50 THEN + 20 * + 41 END * - MAX( - + 52 ) * - 38 + + + 95 * - 0 * 85 col0
----
6324
NULL

skipif mysql # not compatible
query II rowsort label-8344
SELECT DISTINCT + 93 * 68 AS col2, 58 * 69 + CASE - + 86 WHEN + 83 + SUM ( DISTINCT 75 ) * + 50 THEN + 20 * + 41 END * - MAX ( - + 52 ) * - 38 + + + 95 * - 0 * 85 col0
----
6324
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8345
SELECT DISTINCT + COUNT( * ) * - - 63 AS col1, + 66 AS col0
----
63
66

skipif mysql # not compatible
query II rowsort label-8345
SELECT DISTINCT + COUNT ( * ) * - - 63 AS col1, + 66 AS col0
----
63
66

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

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

query I rowsort
SELECT DISTINCT + 84 + - ( - 75 )
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT DISTINCT - 57 + - MIN( DISTINCT - 17 )
----
-40

skipif mysql # not compatible
query I rowsort label-8348
SELECT DISTINCT - 57 + - MIN ( DISTINCT - 17 )
----
-40

query I rowsort
SELECT ALL + 3 + 44 + + + 73
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8350
SELECT ALL 89 + 34 AS col0, + NULLIF ( - COALESCE ( - ( - COALESCE ( + 97, + + 93 ) ), - 86 * + 85 - - 76 + + - COUNT( * ), + 49 DIV - NULLIF ( - NULLIF ( + - 83, - 16 ), + NULLIF ( COUNT( ALL + 3 ), 11 + + ( + ( + COALESCE ( - COUNT( * ), - 50 * + 29 ) ) ) ) ) + + ( - 41 ), - 26 * - ( + 39 ) ), ( 33 ) * ( 15 ) ) * - 2 col2
----
123
194

skipif mysql # not compatible
query II rowsort label-8350
SELECT ALL 89 + 34 AS col0, + NULLIF ( - COALESCE ( - ( - COALESCE ( + 97, + + 93 ) ), - 86 * + 85 - - 76 + + - COUNT ( * ), + 49 / - NULLIF ( - NULLIF ( + - 83, - 16 ), + NULLIF ( COUNT ( ALL + 3 ), 11 + + ( + ( + COALESCE ( - COUNT ( * ), - 50 * + 29 ) ) ) ) ) + + ( - 41 ), - 26 * - ( + 39 ) ), ( 33 ) * ( 15 ) ) * - 2 col2
----
123
194

query I rowsort
SELECT 81 * - + 93 AS col0
----
-7533

query I rowsort
SELECT ALL - 67 + - + 97 + - - 60 * + - 24
----
-1604

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

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

query I rowsort
SELECT DISTINCT - 58 + + 0 * + - 3 AS col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8355
SELECT ALL SUM( - 9 ) + - 58 - 21 DIV - 72 * 91 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL SUM ( - 9 ) + - 58 - 21 / - 72 * 91 AS col0
----
-67

query I rowsort
SELECT DISTINCT + 86 + + + 59
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT + 16 * 68 + - - 19 * COUNT( * )
----
1107

skipif mysql # not compatible
query I rowsort label-8357
SELECT + 16 * 68 + - - 19 * COUNT ( * )
----
1107

query I rowsort
SELECT 91 * 29 * + 70 AS col2
----
184730

onlyif mysql # aggregate syntax: 
query II rowsort label-8359
SELECT + MAX( + 82 ), 26 + + 48 AS col2
----
82
74

skipif mysql # not compatible
query II rowsort label-8359
SELECT + MAX ( + 82 ), 26 + + 48 AS col2
----
82
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT 70 + - 50 * - COUNT( * )
----
120

skipif mysql # not compatible
query I rowsort label-8360
SELECT 70 + - 50 * - COUNT ( * )
----
120

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

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

query I rowsort
SELECT + CASE 6 WHEN + 19 * 8 * + 24 * + 71 + + 99 + + - 60 + + 1 + + - ( + - 20 ) THEN - - 27 + 92 - - 81 WHEN + 9 * 10 + - 54 THEN NULL END
----
NULL

query I rowsort
SELECT 16 + + 96 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT MAX( - - 69 ) col0
----
69

skipif mysql # not compatible
query I rowsort label-8364
SELECT MAX ( - - 69 ) col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL COUNT( + 59 ) * - 95 + 17
----
-78

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL COUNT ( + 59 ) * - 95 + 17
----
-78

query I rowsort
SELECT + ( - - 33 ) * - 79 * - 27
----
70389

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

query I rowsort
SELECT 96 + - 83 + - - 11 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT - COUNT( * ) * - - COUNT( * ) * MAX( ( 64 ) ) / 76 + - 78 * + 49 / ( MAX( - 68 ) ) * + 9 + + + 93 + - + MIN( DISTINCT 90 ) + 56 + + CASE CASE WHEN + 7 IS NOT NULL THEN NULL ELSE + 4 * NULLIF ( ( + MAX( 30 ) ), 75 ) + COUNT( * ) * 65 END WHEN 2 * 16 THEN NULL WHEN - MIN( DISTINCT - ( - 85 ) ) THEN + 4 END + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8369
SELECT - COUNT ( * ) * - - COUNT ( * ) * MAX ( ( 64 ) ) / 76 + - 78 * + 49 / ( MAX ( - 68 ) ) * + 9 + + + 93 + - + MIN ( DISTINCT 90 ) + 56 + + CASE CASE WHEN + 7 IS NOT NULL THEN NULL ELSE + 4 * NULLIF ( ( + MAX ( 30 ) ), 75 ) + COUNT ( * ) * 65 END WHEN 2 * 16 THEN NULL WHEN - MIN ( DISTINCT - ( - 85 ) ) THEN + 4 END + 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT ALL + 39 * - SUM( - 3 )
----
117

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL + 39 * - SUM ( - 3 )
----
117

query I rowsort
SELECT 16 * - 12 * 93
----
-17856

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT + 68 + + COUNT( * ) * + ( - - 74 ) AS col2
----
142

skipif mysql # not compatible
query I rowsort label-8372
SELECT + 68 + + COUNT ( * ) * + ( - - 74 ) AS col2
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-8373
SELECT DISTINCT + COUNT( * ) * - 45 * 70 * - + 77 * + - 93 AS col2, + COUNT( - 89 ) AS col1
----
-22557150
1

skipif mysql # not compatible
query II rowsort label-8373
SELECT DISTINCT + COUNT ( * ) * - 45 * 70 * - + 77 * + - 93 AS col2, + COUNT ( - 89 ) AS col1
----
-22557150
1

query I rowsort
SELECT ALL 90 * - - 63 * 45 + + 57 AS col0
----
255207

query I rowsort
SELECT 95 * ( - 60 ) col1
----
-5700

query I rowsort
SELECT - 34 + - + 79
----
-113

query I rowsort
SELECT ALL ( - 15 ) * - 7 + - 73
----
32

query I rowsort
SELECT ALL - COALESCE ( - 36, 85 * - - 7, - 11 ) AS col1
----
36

query I rowsort
SELECT ALL ( - 89 ) * - 48
----
4272

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8380
SELECT ALL - 43 DIV + COALESCE ( + CAST( NULL AS SIGNED ), - 68 )
----
0

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - 43 / + COALESCE ( + CAST ( NULL AS INTEGER ), - 68 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8381
SELECT ALL 67 + + 48 * - CAST( - - 44 AS SIGNED ) * - - 33 * + - 75 + - 60
----
5227207

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL 67 + + 48 * - CAST ( - - 44 AS INTEGER ) * - - 33 * + - 75 + - 60
----
5227207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8382
SELECT DISTINCT 32, - CAST( + + 87 AS SIGNED ) AS col2
----
32
-87

skipif mysql # not compatible
query II rowsort label-8382
SELECT DISTINCT 32, - CAST ( + + 87 AS INTEGER ) AS col2
----
32
-87

query II rowsort
SELECT ALL 87, - ( + 57 ) AS col2
----
87
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT - SUM( + 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8384
SELECT - SUM ( + 20 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT COUNT( * ) * NULLIF ( ( - SUM( + 77 ) ), - - 48 / + - COUNT( ALL 55 ) ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8385
SELECT COUNT ( * ) * NULLIF ( ( - SUM ( + 77 ) ), - - 48 / + - COUNT ( ALL 55 ) ) AS col1
----
-77

query I rowsort
SELECT ALL + 71 + 1 + + 87 AS col2
----
159

query I rowsort
SELECT 72 + 68 AS col0
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-8388
SELECT 4, + COUNT( ALL - 10 ) AS col0
----
4
1

skipif mysql # not compatible
query II rowsort label-8388
SELECT 4, + COUNT ( ALL - 10 ) AS col0
----
4
1

query II rowsort
SELECT ALL 49, 94 AS col0
----
49
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT 91 + - - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-8391
SELECT 91 + - - COUNT ( * )
----
92

query I rowsort
SELECT ALL - 72 + - 0 AS col1
----
-72

query I rowsort
SELECT 0 + + - 5 - + 86
----
-91

query I rowsort
SELECT ALL + 8 + 88 AS col1
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT ALL MIN( DISTINCT + 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL MIN ( DISTINCT + 36 ) AS col2
----
36

query I rowsort
SELECT 16 + + 71 + + 92 col1
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8398
SELECT ALL - 36 + 63 + - ( CASE 74 WHEN - 90 THEN - CAST( NULL AS DECIMAL ) * - 52 * - 68 + + 12 * + 34 WHEN 77 + + CAST( NULL AS SIGNED ) THEN NULL ELSE - + COALESCE ( - + 8, + 8 ) / + CASE - 63 WHEN - 42 THEN CASE COUNT( * ) WHEN + ( 45 ) THEN COUNT( * ) WHEN 63 * COUNT( * ) THEN 6 ELSE NULL END * 41 WHEN - SUM( ALL 19 ) THEN NULL ELSE NULL END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL - 36 + 63 + - ( CASE 74 WHEN - 90 THEN - CAST ( NULL AS REAL ) * - 52 * - 68 + + 12 * + 34 WHEN 77 + + CAST ( NULL AS INTEGER ) THEN NULL ELSE - + COALESCE ( - + 8, + 8 ) / + CASE - 63 WHEN - 42 THEN CASE COUNT ( * ) WHEN + ( 45 ) THEN COUNT ( * ) WHEN 63 * COUNT ( * ) THEN 6 ELSE NULL END * 41 WHEN - SUM ( ALL 19 ) THEN NULL ELSE NULL END END )
----
NULL

query I rowsort
SELECT - 53 * - + 60
----
3180

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT - COALESCE ( COUNT( * ), + 52, - - 15 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8400
SELECT - COALESCE ( COUNT ( * ), + 52, - - 15 ) AS col2
----
-1

query I rowsort
SELECT - 22 + + - 88 + - 3 * + 22
----
-176

onlyif mysql # DIV for integer division: 
query I rowsort label-8402
SELECT ALL - + 84 DIV 74 DIV - 39 * + 3 + - + 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL - + 84 / 74 / - 39 * + 3 + - + 7 AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8403
SELECT - COUNT( DISTINCT ( - + 89 ) ) DIV - - 9
----
0

skipif mysql # not compatible
query I rowsort label-8403
SELECT - COUNT ( DISTINCT ( - + 89 ) ) / - - 9
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8404
SELECT DISTINCT - 93 * + COUNT( * ) + + - 82 - - + 40 AS col2, 30 * MIN( DISTINCT + 21 ) + - - COALESCE ( 11, - COUNT( - + 56 ) ) AS col0
----
-135
641

skipif mysql # not compatible
query II rowsort label-8404
SELECT DISTINCT - 93 * + COUNT ( * ) + + - 82 - - + 40 AS col2, 30 * MIN ( DISTINCT + 21 ) + - - COALESCE ( 11, - COUNT ( - + 56 ) ) AS col0
----
-135
641

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL + CASE - 70 WHEN + - MIN( ALL + 71 ) THEN NULL WHEN + 77 / - - 46 THEN NULL ELSE + 65 END AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL + CASE - 70 WHEN + - MIN ( ALL + 71 ) THEN NULL WHEN + 77 / - - 46 THEN NULL ELSE + 65 END AS col0
----
65

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8407
SELECT ALL - COALESCE ( + + 97, CASE 11 WHEN - + SUM( DISTINCT + 57 ) + - 51 - + 44 THEN NULL ELSE - 39 * + + 92 END + + 44, + COUNT( * ) + - ( + 25 ) ) DIV - + 40 - - 82 - + + COUNT( * ) * + 89 * + 31
----
-2675

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL - COALESCE ( + + 97, CASE 11 WHEN - + SUM ( DISTINCT + 57 ) + - 51 - + 44 THEN NULL ELSE - 39 * + + 92 END + + 44, + COUNT ( * ) + - ( + 25 ) ) / - + 40 - - 82 - + + COUNT ( * ) * + 89 * + 31
----
-2675

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT - - 23 * + + COUNT( * ) * - 38 * + - 35 * 41 AS col1
----
1254190

skipif mysql # not compatible
query I rowsort label-8408
SELECT - - 23 * + + COUNT ( * ) * - 38 * + - 35 * 41 AS col1
----
1254190

query II rowsort
SELECT + 31 AS col0, 80 AS col0
----
31
80

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

query I rowsort
SELECT - 91 * + 65 AS col2
----
-5915

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT SUM( DISTINCT + 67 ) col2
----
67

skipif mysql # not compatible
query I rowsort label-8413
SELECT SUM ( DISTINCT + 67 ) col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT DISTINCT 68 * - COALESCE ( - 52, - COUNT( * ) ) + - 72
----
3464

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT 68 * - COALESCE ( - 52, - COUNT ( * ) ) + - 72
----
3464

query II rowsort
SELECT 48 * - 8 + ( - 96 ) AS col1, 20 + - + 4
----
-480
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT - 49 * 99 DIV 57
----
-85

skipif mysql # not compatible
query I rowsort label-8416
SELECT - 49 * 99 / 57
----
-85

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

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

query I rowsort
SELECT ALL 14 + + + 93 AS col1
----
107

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

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

query II rowsort
SELECT DISTINCT 43 + 80, ( - ( + 73 ) ) AS col1
----
123
-73

query I rowsort
SELECT DISTINCT 36 + + 54 + 86 * + 95 AS col2
----
8260

query II rowsort
SELECT + 60 * - 93 AS col0, - 61
----
-5580
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8423
SELECT - 24 * COUNT( * ) DIV 53 * + + ( 24 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8423
SELECT - 24 * COUNT ( * ) / 53 * + + ( 24 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8424
SELECT - 42 DIV - 64 AS col2, 63 + - 26 + 92 * 81 col0
----
0
7489

skipif mysql # not compatible
query II rowsort label-8424
SELECT - 42 / - 64 AS col2, 63 + - 26 + 92 * 81 col0
----
0
7489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8425
SELECT + CASE - 99 WHEN - 88 + - CASE + 18 WHEN + 55 THEN - - 89 * - 56 * 68 - - + CAST( NULL AS SIGNED ) - 36 / + 25 * - 58 WHEN - + 43 THEN NULL WHEN CAST( NULL AS DECIMAL ) + 22 THEN NULL ELSE NULL END THEN - - 76 * - + 58 + - 30 + - 27 * COUNT( DISTINCT + ( - 58 ) ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + 87 * COUNT( * ) END * 34
----
2958

skipif mysql # not compatible
query I rowsort label-8425
SELECT + CASE - 99 WHEN - 88 + - CASE + 18 WHEN + 55 THEN - - 89 * - 56 * 68 - - + CAST ( NULL AS INTEGER ) - 36 / + 25 * - 58 WHEN - + 43 THEN NULL WHEN CAST ( NULL AS REAL ) + 22 THEN NULL ELSE NULL END THEN - - 76 * - + 58 + - 30 + - 27 * COUNT ( DISTINCT + ( - 58 ) ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + 87 * COUNT ( * ) END * 34
----
2958

query I rowsort
SELECT + 30 - 36 AS col0
----
-6

query I rowsort
SELECT + + 18 - - + 34
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL + MAX( DISTINCT + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL + MAX ( DISTINCT + 31 )
----
31

query I rowsort
SELECT ( 75 ) AS col0
----
75

query I rowsort
SELECT ALL - 32 * 11
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT - MAX( + 49 ) * - + 23
----
1127

skipif mysql # not compatible
query I rowsort label-8431
SELECT - MAX ( + 49 ) * - + 23
----
1127

query I rowsort
SELECT DISTINCT 52 * 95 * + + 34
----
167960

query I rowsort
SELECT DISTINCT - + 7 * - 72
----
504

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT + 39 + - + 76 * - + 2 * - COUNT( * ) - + 3 - + 11 AS col1
----
-127

skipif mysql # not compatible
query I rowsort label-8435
SELECT + 39 + - + 76 * - + 2 * - COUNT ( * ) - + 3 - + 11 AS col1
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT - 9 - - 19 * + + NULLIF ( - + NULLIF ( - 51, + 35 + - + COUNT( * ) + 66 * + 6 * - 58 ), - + 62 )
----
960

skipif mysql # not compatible
query I rowsort label-8436
SELECT - 9 - - 19 * + + NULLIF ( - + NULLIF ( - 51, + 35 + - + COUNT ( * ) + 66 * + 6 * - 58 ), - + 62 )
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT ALL - 72 * 53 + + 26 + - COUNT( * ) AS col2
----
-3791

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL - 72 * 53 + + 26 + - COUNT ( * ) AS col2
----
-3791

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT - + 82 * + + MIN( - ( - 93 ) ) + + - MIN( - - ( + 16 ) )
----
-7642

skipif mysql # not compatible
query I rowsort label-8438
SELECT - + 82 * + + MIN ( - ( - 93 ) ) + + - MIN ( - - ( + 16 ) )
----
-7642

query I rowsort
SELECT - COALESCE ( 86, 22 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT - - 42 + + - COUNT( DISTINCT + 73 ) * - COALESCE ( - 58, - 16 + - NULLIF ( + - 56, + 11 ) ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-8440
SELECT - - 42 + + - COUNT ( DISTINCT + 73 ) * - COALESCE ( - 58, - 16 + - NULLIF ( + - 56, + 11 ) ) col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8441
SELECT DISTINCT - - 6 DIV - 30 + - 57 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT - - 6 / - 30 + - 57 AS col1
----
-57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8443
SELECT + CASE 99 WHEN - + CAST( - + CAST( - - 31 AS SIGNED ) AS SIGNED ) THEN NULL WHEN NULLIF ( - - CAST( - 62 AS SIGNED ), 22 ) THEN - - 62 * COUNT( * ) * - + 20 / - NULLIF ( - - 54, - + CAST( - NULLIF ( - 10, + SUM( ALL - 98 ) / + + 23 ) AS DECIMAL ) ) + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT + CASE 99 WHEN - + CAST ( - + CAST ( - - 31 AS INTEGER ) AS INTEGER ) THEN NULL WHEN NULLIF ( - - CAST ( - 62 AS INTEGER ), 22 ) THEN - - 62 * COUNT ( * ) * - + 20 / - NULLIF ( - - 54, - + CAST ( - NULLIF ( - 10, + SUM ( ALL - 98 ) / + + 23 ) AS REAL ) ) + - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL + 43 * - 59
----
-2537

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT + ( - 73 ) DIV - 67 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8445
SELECT + ( - 73 ) / - 67 AS col0
----
1

query I rowsort
SELECT + 14 + - 80
----
-66

query I rowsort
SELECT ALL 44 * - 44 * - 53 + - + 24
----
102584

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT + SUM( - 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-8448
SELECT + SUM ( - 82 ) AS col2
----
-82

query I rowsort
SELECT + 94 * + - 18 - + 41
----
-1733

query I rowsort
SELECT ALL + 73 * + 39 * - - ( 71 ) - + - ( + 52 )
----
202189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8451
SELECT NULLIF ( + - ( 8 ), - - 39 ) * - - 92 + - - 10 + 5 DIV - COUNT( * ) AS col2
----
-731

skipif mysql # not compatible
query I rowsort label-8451
SELECT NULLIF ( + - ( 8 ), - - 39 ) * - - 92 + - - 10 + 5 / - COUNT ( * ) AS col2
----
-731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT + 66 - + + 39 * + + 0 * - + 86 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT + 66 - + + 39 * + + 0 * - + 86 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT 81 + + 38 + + COUNT( * ) + 91 - - 41 * - COUNT( * ) col2
----
170

skipif mysql # not compatible
query I rowsort label-8453
SELECT 81 + + 38 + + COUNT ( * ) + 91 - - 41 * - COUNT ( * ) col2
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ALL COUNT( * ) * 96 * ( - 77 )
----
-7392

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL COUNT ( * ) * 96 * ( - 77 )
----
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT MAX( DISTINCT - - 46 ) + + 46 * - 8 col2
----
-322

skipif mysql # not compatible
query I rowsort label-8455
SELECT MAX ( DISTINCT - - 46 ) + + 46 * - 8 col2
----
-322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8456
SELECT ( - ( ( MIN( ALL - 58 ) ) ) ) + 27 DIV - 61 - + 97 + + 81
----
42

skipif mysql # not compatible
query I rowsort label-8456
SELECT ( - ( ( MIN ( ALL - 58 ) ) ) ) + 27 / - 61 - + 97 + + 81
----
42

query I rowsort
SELECT - 71 + - + 65 - 36 * - - 48 AS col0
----
-1864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8458
SELECT - COUNT( DISTINCT - 35 ) * - - COALESCE ( 91, + ( + - 68 ) * - 92 * CASE - COUNT( * ) WHEN + 65 THEN 85 DIV - + 57 + + 87 * + - 55 WHEN - COALESCE ( - 83, - 5, - 51, + + SUM( - 25 ) + + CASE 26 + - 72 WHEN + 20 + 32 THEN 96 * 76 END DIV 80 ) * ( - 35 ) THEN 25 END * 69 + - COUNT( * ), COUNT( * ) ) + COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8458
SELECT - COUNT ( DISTINCT - 35 ) * - - COALESCE ( 91, + ( + - 68 ) * - 92 * CASE - COUNT ( * ) WHEN + 65 THEN 85 / - + 57 + + 87 * + - 55 WHEN - COALESCE ( - 83, - 5, - 51, + + SUM ( - 25 ) + + CASE 26 + - 72 WHEN + 20 + 32 THEN 96 * 76 END / 80 ) * ( - 35 ) THEN 25 END * 69 + - COUNT ( * ), COUNT ( * ) ) + COUNT ( * ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-8459
SELECT DISTINCT - COUNT( * ), - ( - 25 ) * - + MAX( DISTINCT - + 18 ) * + + 47 AS col1
----
-1
21150

skipif mysql # not compatible
query II rowsort label-8459
SELECT DISTINCT - COUNT ( * ), - ( - 25 ) * - + MAX ( DISTINCT - + 18 ) * + + 47 AS col1
----
-1
21150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8460
SELECT COALESCE ( - 4, COALESCE ( 81, - ( + - 37 ) ) + + CASE + 32 WHEN - 33 + 10 * - CAST( - ( - 23 ) AS SIGNED ) * 3 THEN + - 16 * + 4 ELSE NULL END + + - 97, - 99 + - - ( COUNT( * ) ) ) + 74
----
70

skipif mysql # not compatible
query I rowsort label-8460
SELECT COALESCE ( - 4, COALESCE ( 81, - ( + - 37 ) ) + + CASE + 32 WHEN - 33 + 10 * - CAST ( - ( - 23 ) AS INTEGER ) * 3 THEN + - 16 * + 4 ELSE NULL END + + - 97, - 99 + - - ( COUNT ( * ) ) ) + 74
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8461
SELECT DISTINCT - 84 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT - 84 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT + NULLIF ( + - 34, 29 ) * + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-8462
SELECT + NULLIF ( + - 34, 29 ) * + COUNT ( * ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT + COUNT( * ) + + + CASE - - 2 WHEN - + 52 / 5 - NULLIF ( + 92, - 21 * + 21 * 58 / - - ( - 48 ) ) + + + NULLIF ( + COUNT( * ), + COUNT( * ) * + 68 * - + 25 * 93 + NULLIF ( + 34, - 21 ) ) THEN + COALESCE ( 82, - COUNT( * ), + 61 ) - + 81 WHEN 77 + + ( 45 + 26 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8463
SELECT + COUNT ( * ) + + + CASE - - 2 WHEN - + 52 / 5 - NULLIF ( + 92, - 21 * + 21 * 58 / - - ( - 48 ) ) + + + NULLIF ( + COUNT ( * ), + COUNT ( * ) * + 68 * - + 25 * 93 + NULLIF ( + 34, - 21 ) ) THEN + COALESCE ( 82, - COUNT ( * ), + 61 ) - + 81 WHEN 77 + + ( 45 + 26 ) THEN NULL END
----
NULL

query I rowsort
SELECT - - ( - 76 )
----
-76

query I rowsort
SELECT ALL - + 12 * ( - - 91 ) + - 86 AS col1
----
-1178

query I rowsort
SELECT ALL - 2 + - 51 * - 33 - + 58 AS col0
----
1623

query I rowsort
SELECT ALL 56 + + - 39
----
17

query I rowsort
SELECT ALL + + 37 + - 99 - + 45 + 59
----
-48

query I rowsort
SELECT - - 41 * 38 - + - 33 + + ( + 4 ) col0
----
1595

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL - COUNT( 38 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL - COUNT ( 38 ) AS col1
----
-1

query I rowsort
SELECT + + COALESCE ( - + 93, - - 73 ) AS col2
----
-93

query I rowsort
SELECT ( 79 ) + 90 AS col1
----
169

query I rowsort
SELECT DISTINCT - - 8 + + ( - 26 ) AS col1
----
-18

query I rowsort
SELECT ALL + 39 + - 46
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8475
SELECT ALL - SUM( DISTINCT - 91 ) + + CAST( NULL AS SIGNED ) + - 50 + 11 / 44 + + AVG ( DISTINCT + ( - 49 ) ) * + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL - SUM ( DISTINCT - 91 ) + + CAST ( NULL AS INTEGER ) + - 50 + 11 / 44 + + AVG ( DISTINCT + ( - 49 ) ) * + + 97
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8477
SELECT + CAST( NULL AS DECIMAL ) * + COUNT( * ) * + - 29 + ( + 88 ) + 92 + + 69 * + MIN( ALL + - COALESCE ( 3, + 41 ) ) + - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8477
SELECT + CAST ( NULL AS REAL ) * + COUNT ( * ) * + - 29 + ( + 88 ) + 92 + + 69 * + MIN ( ALL + - COALESCE ( 3, + 41 ) ) + - 91 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8478
SELECT ALL + 39 - + 69 + - - COUNT( * ) * - NULLIF ( 6, + 41 * + 54 - - - COALESCE ( - 3, - - COUNT( * ), + + 18 ) + - - 40 * MIN( + - 16 ) + - 44 - 52 + + 44 + + + 28 + + COUNT( * ) ) - CAST( CASE 56 WHEN + 47 THEN 8 * - COUNT( DISTINCT 94 ) WHEN 98 THEN NULL ELSE NULL END AS SIGNED ) * AVG ( ALL 30 + 83 * - 5 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL + 39 - + 69 + - - COUNT ( * ) * - NULLIF ( 6, + 41 * + 54 - - - COALESCE ( - 3, - - COUNT ( * ), + + 18 ) + - - 40 * MIN ( + - 16 ) + - 44 - 52 + + 44 + + + 28 + + COUNT ( * ) ) - CAST ( CASE 56 WHEN + 47 THEN 8 * - COUNT ( DISTINCT 94 ) WHEN 98 THEN NULL ELSE NULL END AS INTEGER ) * AVG ( ALL 30 + 83 * - 5 ) col2
----
NULL

query II rowsort
SELECT ALL - 20 AS col2, + 63 * + 58 AS col2
----
-20
3654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8480
SELECT DISTINCT + 94 * - CAST( + 48 AS SIGNED ) * - 6 + 54 - - ( + 16 ) - - 8 * - NULLIF ( COUNT( * ), COUNT( * ) * - CAST( + 20 AS SIGNED ) ) - CASE - 33 WHEN - ( + CAST( - + 60 AS SIGNED ) ) THEN - 2 WHEN + - 37 + - 66 THEN NULL WHEN - 38 THEN NULL ELSE NULL END - + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT + 94 * - CAST ( + 48 AS INTEGER ) * - 6 + 54 - - ( + 16 ) - - 8 * - NULLIF ( COUNT ( * ), COUNT ( * ) * - CAST ( + 20 AS INTEGER ) ) - CASE - 33 WHEN - ( + CAST ( - + 60 AS INTEGER ) ) THEN - 2 WHEN + - 37 + - 66 THEN NULL WHEN - 38 THEN NULL ELSE NULL END - + 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8481
SELECT ALL + 85 * + 66 AS col2, + ( NULLIF ( - SUM( DISTINCT 13 ), 65 ) ) DIV 57 AS col1
----
5610
0

skipif mysql # not compatible
query II rowsort label-8481
SELECT ALL + 85 * + 66 AS col2, + ( NULLIF ( - SUM ( DISTINCT 13 ), 65 ) ) / 57 AS col1
----
5610
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8482
SELECT ALL + 13 DIV + + 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL + 13 / + + 96 AS col0
----
0

query II rowsort
SELECT 3 AS col2, + 28 AS col2
----
3
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT 90 * + NULLIF ( 22, COUNT( * ) * + 8 / + 52 + - COUNT( + 7 ) * - 20 + + 33 + + - 6 + + ( 67 ) + + 62 ) * - + MAX( ALL + ( - 72 ) )
----
142560

skipif mysql # not compatible
query I rowsort label-8485
SELECT 90 * + NULLIF ( 22, COUNT ( * ) * + 8 / + 52 + - COUNT ( + 7 ) * - 20 + + 33 + + - 6 + + ( 67 ) + + 62 ) * - + MAX ( ALL + ( - 72 ) )
----
142560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8486
SELECT 13 * + 37 * - + COUNT( * ) * + 19 * - - 93 + - 27 AS col2, + CAST( 46 AS SIGNED )
----
-849954
46

skipif mysql # not compatible
query II rowsort label-8486
SELECT 13 * + 37 * - + COUNT ( * ) * + 19 * - - 93 + - 27 AS col2, + CAST ( 46 AS INTEGER )
----
-849954
46

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

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL + COUNT ( - 73 ) * + 5 AS col2
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-8488
SELECT DISTINCT 9, 45 DIV 15 - + 67 AS col2
----
9
-64

skipif mysql # not compatible
query II rowsort label-8488
SELECT DISTINCT 9, 45 / 15 - + 67 AS col2
----
9
-64

query II rowsort
SELECT DISTINCT 61 AS col1, + 91
----
61
91

query I rowsort
SELECT ALL + 23 * - 12 AS col2
----
-276

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

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

query I rowsort
SELECT ALL + COALESCE ( 77, + NULLIF ( 62, + + NULLIF ( - + 62, - 45 ) * - 95 ) ) AS col0
----
77

query I rowsort
SELECT - - ( + 71 ) col0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-8494
SELECT COUNT( * ), - 6 + - ( - + 60 ) AS col2
----
1
54

skipif mysql # not compatible
query II rowsort label-8494
SELECT COUNT ( * ), - 6 + - ( - + 60 ) AS col2
----
1
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT 70 - + - MAX( ALL - + ( NULLIF ( + - NULLIF ( 35, + 96 ), + - ( + 98 ) + 68 ) ) )
----
105

skipif mysql # not compatible
query I rowsort label-8495
SELECT 70 - + - MAX ( ALL - + ( NULLIF ( + - NULLIF ( 35, + 96 ), + - ( + 98 ) + 68 ) ) )
----
105

query I rowsort
SELECT + 21 * + + 61
----
1281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8497
SELECT ALL - 55 DIV + - 67 * - 86 * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL - 55 / + - 67 * - 86 * - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT - NULLIF ( - - SUM( + + 79 ), 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT - NULLIF ( - - SUM ( + + 79 ), 79 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8499
SELECT - ( - 63 ) - + + CAST( NULL AS DECIMAL ) * - 21 * 80 - 48 * + 94 + 36 * 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8499
SELECT - ( - 63 ) - + + CAST ( NULL AS REAL ) * - 21 * 80 - 48 * + 94 + 36 * 80 AS col1
----
NULL

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

skipif mysql # not compatible
query II rowsort label-8500
SELECT DISTINCT 93 col1, COUNT ( * ) * + - 93
----
93
-93

query I rowsort
SELECT DISTINCT - 53 + + 32 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT ALL 97 * + NULLIF ( 50, COUNT( * ) + - MIN( ALL 14 ) ) + + 85
----
4935

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL 97 * + NULLIF ( 50, COUNT ( * ) + - MIN ( ALL 14 ) ) + + 85
----
4935

query I rowsort
SELECT ALL 1 + + 54 AS col2
----
55

query II rowsort
SELECT - + 85 AS col2, 79
----
-85
79

query I rowsort
SELECT ALL 41 + 74 - + 98 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT ALL - 39 + + - 85 * - CASE - + ( 82 ) WHEN + 36 * - COUNT( * ) THEN AVG ( 46 ) * COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL - 39 + + - 85 * - CASE - + ( 82 ) WHEN + 36 * - COUNT ( * ) THEN AVG ( 46 ) * COUNT ( * ) END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - COALESCE ( + + 10, + + 75 + - 41, - 34 ) AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8509
SELECT ALL + 70 + - CAST( - 93 AS SIGNED ) AS col2
----
163

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL + 70 + - CAST ( - 93 AS INTEGER ) AS col2
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-8510
SELECT 8 - 59 + + 60 + - NULLIF ( 7, - + 56 + 54 ) - - - 14 * - 0 * + - ( - 9 ), - 19 * + COUNT( * ) + - 2 + 57 col2
----
2
36

skipif mysql # not compatible
query II rowsort label-8510
SELECT 8 - 59 + + 60 + - NULLIF ( 7, - + 56 + 54 ) - - - 14 * - 0 * + - ( - 9 ), - 19 * + COUNT ( * ) + - 2 + 57 col2
----
2
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT 90 / - CASE - + 3 WHEN + 25 THEN - + COALESCE ( - + SUM( DISTINCT 32 ), 25 / COALESCE ( 15, - 46 - + + 72 ) - 20 / - 68 - NULLIF ( - 57, MAX( ALL - - 35 ) ) * + 89 + 67 ) * NULLIF ( - MAX( ALL 11 ), 35 ) * 49 ELSE NULL END + 83 * 80 + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT 90 / - CASE - + 3 WHEN + 25 THEN - + COALESCE ( - + SUM ( DISTINCT 32 ), 25 / COALESCE ( 15, - 46 - + + 72 ) - 20 / - 68 - NULLIF ( - 57, MAX ( ALL - - 35 ) ) * + 89 + 67 ) * NULLIF ( - MAX ( ALL 11 ), 35 ) * 49 ELSE NULL END + 83 * 80 + 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT + COUNT( * ) - + 22 + + 40
----
19

skipif mysql # not compatible
query I rowsort label-8512
SELECT + COUNT ( * ) - + 22 + + 40
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT - SUM( DISTINCT 97 ) * + + MAX( DISTINCT 63 ) col1
----
-6111

skipif mysql # not compatible
query I rowsort label-8513
SELECT - SUM ( DISTINCT 97 ) * + + MAX ( DISTINCT 63 ) col1
----
-6111

query I rowsort
SELECT + 34 * - 7 AS col0
----
-238

query I rowsort
SELECT ALL 18 * 28 + - 1 AS col1
----
503

query II rowsort
SELECT + 29 col0, 92 * - + 49 * - + ( - 59 ) AS col0
----
29
-265972

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT DISTINCT 61 * + COUNT( * ) - - 41 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT 61 * + COUNT ( * ) - - 41 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT MAX( DISTINCT 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8518
SELECT MAX ( DISTINCT 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT + NULLIF ( 60, - 23 ) * + + 59 + - - NULLIF ( - + 26, ( + 53 ) ) + + CASE + - NULLIF ( + ( - COUNT( * ) ), - - 32 + + - 86 ) WHEN - 98 THEN + ( + 26 ) WHEN - - 69 + 66 THEN NULL ELSE - 29 END * + 74 AS col2
----
1368

skipif mysql # not compatible
query I rowsort label-8519
SELECT + NULLIF ( 60, - 23 ) * + + 59 + - - NULLIF ( - + 26, ( + 53 ) ) + + CASE + - NULLIF ( + ( - COUNT ( * ) ), - - 32 + + - 86 ) WHEN - 98 THEN + ( + 26 ) WHEN - - 69 + 66 THEN NULL ELSE - 29 END * + 74 AS col2
----
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL COUNT( * ) * - 45 - 83 AS col1
----
-128

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL COUNT ( * ) * - 45 - 83 AS col1
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-8521
SELECT DISTINCT + COALESCE ( + 85, 15 DIV - 72 ) * 17
----
1445

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT + COALESCE ( + 85, 15 / - 72 ) * 17
----
1445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8522
SELECT COALESCE ( + + COUNT( * ), - + 23, - 94 ) DIV + 98 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8522
SELECT COALESCE ( + + COUNT ( * ), - + 23, - 94 ) / + 98 + - COUNT ( * )
----
-1

query I rowsort
SELECT - 25 * + 97 AS col2
----
-2425

query I rowsort
SELECT DISTINCT + 8 * 67 AS col2
----
536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8525
SELECT + COALESCE ( + 5, + - CASE + 1 WHEN + + 32 / - 97 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) THEN - - MIN( DISTINCT + 3 ) ELSE - 31 END, + 9, - 58 ) AS col0, + COUNT( ALL + NULLIF ( - + 65, + - ( - 67 ) ) ) col2
----
5
1

skipif mysql # not compatible
query II rowsort label-8525
SELECT + COALESCE ( + 5, + - CASE + 1 WHEN + + 32 / - 97 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - - MIN ( DISTINCT + 3 ) ELSE - 31 END, + 9, - 58 ) AS col0, + COUNT ( ALL + NULLIF ( - + 65, + - ( - 67 ) ) ) col2
----
5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT DISTINCT + MIN( + 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT + MIN ( + 50 ) AS col0
----
50

query I rowsort
SELECT - 76 - - 66
----
-10

query I rowsort
SELECT - 35 * + + 21 * - 59 AS col2
----
43365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8529
SELECT ALL + COUNT( * ) + - 3 + + 80 + - + 16 + - ( 67 ) / + COUNT( * ) + - MAX( ALL 57 ) / + CAST( NULL AS SIGNED ) * + + ( - + 35 ) - + NULLIF ( - 77, + - 49 / - 75 * 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL + COUNT ( * ) + - 3 + + 80 + - + 16 + - ( 67 ) / + COUNT ( * ) + - MAX ( ALL 57 ) / + CAST ( NULL AS INTEGER ) * + + ( - + 35 ) - + NULLIF ( - 77, + - 49 / - 75 * 29 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8530
SELECT - ( + MIN( ALL 54 ) ) * 84 * - CASE - 81 WHEN + 8 THEN + 62 WHEN + + 30 THEN NULL END * - - 77 - + 48 - + - 2, 36 DIV + + 64 * - 67 col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8530
SELECT - ( + MIN ( ALL 54 ) ) * 84 * - CASE - 81 WHEN + 8 THEN + 62 WHEN + + 30 THEN NULL END * - - 77 - + 48 - + - 2, 36 / + + 64 * - 67 col2
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8531
SELECT ALL - + COUNT( * ) + ( NULLIF ( COALESCE ( + 55, - CAST( + + 63 AS SIGNED ) + - + SUM( ALL - + 80 ) + + 77 - + CAST( 42 AS SIGNED ) * - NULLIF ( - 80, + 54 ) ), + - 28 * - 62 ) ) + - 40 * 97 * + NULLIF ( - 71, + CASE WHEN 42 < COUNT( * ) THEN COUNT( * ) * + ( + COUNT( * ) ) + CAST( NULL AS SIGNED ) ELSE NULL END ) AS col2
----
275534

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL - + COUNT ( * ) + ( NULLIF ( COALESCE ( + 55, - CAST ( + + 63 AS INTEGER ) + - + SUM ( ALL - + 80 ) + + 77 - + CAST ( 42 AS INTEGER ) * - NULLIF ( - 80, + 54 ) ), + - 28 * - 62 ) ) + - 40 * 97 * + NULLIF ( - 71, + CASE WHEN 42 < COUNT ( * ) THEN COUNT ( * ) * + ( + COUNT ( * ) ) + CAST ( NULL AS INTEGER ) ELSE NULL END ) AS col2
----
275534

query I rowsort
SELECT ALL + + 71 * + - 10 AS col1
----
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT - COUNT( * ) * + 53 * + + 97
----
-5141

skipif mysql # not compatible
query I rowsort label-8533
SELECT - COUNT ( * ) * + 53 * + + 97
----
-5141

query I rowsort
SELECT - 89 * 11 AS col0
----
-979

onlyif mysql # aggregate syntax: 
query II rowsort label-8535
SELECT - 28 + + 9, - CASE + - 37 WHEN + 45 + - AVG ( + 9 ) THEN COUNT( * ) WHEN + 72 * - - 68 * + COUNT( * ) THEN NULL ELSE - 96 + + ( - 59 ) END AS col2
----
-19
155

skipif mysql # not compatible
query II rowsort label-8535
SELECT - 28 + + 9, - CASE + - 37 WHEN + 45 + - AVG ( + 9 ) THEN COUNT ( * ) WHEN + 72 * - - 68 * + COUNT ( * ) THEN NULL ELSE - 96 + + ( - 59 ) END AS col2
----
-19
155

onlyif mysql # aggregate syntax: 
query II rowsort label-8536
SELECT ALL - + 58 + + 68 AS col1, 71 * + CASE - SUM( DISTINCT 24 ) WHEN - 14 * + 7 * + 0 THEN + 39 WHEN - ( - 29 ) + + ( + - 2 ) THEN + + 8 WHEN - 95 THEN + 61 END + 70 * - + 38
----
10
NULL

skipif mysql # not compatible
query II rowsort label-8536
SELECT ALL - + 58 + + 68 AS col1, 71 * + CASE - SUM ( DISTINCT 24 ) WHEN - 14 * + 7 * + 0 THEN + 39 WHEN - ( - 29 ) + + ( + - 2 ) THEN + + 8 WHEN - 95 THEN + 61 END + 70 * - + 38
----
10
NULL

query I rowsort
SELECT - 42 + 0 AS col1
----
-42

query I rowsort
SELECT ALL - + 41 + + 84
----
43

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8540
SELECT - ( + 39 ) AS col0, CASE + COUNT( * ) WHEN - - 65 / + 27 + + - COUNT( * ) + 35 + - 93 THEN 78 END * - - COUNT( * ) + + + COUNT( * ) - - 42 AS col1
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-8540
SELECT - ( + 39 ) AS col0, CASE + COUNT ( * ) WHEN - - 65 / + 27 + + - COUNT ( * ) + 35 + - 93 THEN 78 END * - - COUNT ( * ) + + + COUNT ( * ) - - 42 AS col1
----
-39
NULL

query I rowsort
SELECT ALL COALESCE ( - - 34, - + 50 ) AS col2
----
34

query I rowsort
SELECT - + 94 * + - 9 AS col0
----
846

query I rowsort
SELECT + 5 + 10 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8544
SELECT ALL + COALESCE ( + + 91, - 85, + 25 * + + COALESCE ( 25, 24 ) + + 47 ) + + + CAST( ( - + CASE - + 94 WHEN + CAST( - 55 AS SIGNED ) / + COUNT( * ) THEN NULL WHEN - + 50 * - 6 / - - SUM( 37 ) THEN 49 * COUNT( * ) * + + 72 END ) AS SIGNED ) - + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL + COALESCE ( + + 91, - 85, + 25 * + + COALESCE ( 25, 24 ) + + 47 ) + + + CAST ( ( - + CASE - + 94 WHEN + CAST ( - 55 AS INTEGER ) / + COUNT ( * ) THEN NULL WHEN - + 50 * - 6 / - - SUM ( 37 ) THEN 49 * COUNT ( * ) * + + 72 END ) AS INTEGER ) - + 18 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( - 52, - 29 ) + - + 25
----
-77

query I rowsort
SELECT ALL - COALESCE ( + 31, + + 41 ) * 0 + - - 9 * 1 * 62 AS col0
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT DISTINCT - 6 - COUNT( DISTINCT 18 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT - 6 - COUNT ( DISTINCT 18 ) AS col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8548
SELECT + 82 * - 96 + - + 1 + 87 * + + 58 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8548
SELECT + 82 * - 96 + - + 1 + 87 * + + 58 * - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - 28 ) AS col0
----
-28

query I rowsort
SELECT ALL - 12 * 49 * 41 AS col1
----
-24108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8551
SELECT + 82 * + 70 DIV - + ( - NULLIF ( - - ( + - COUNT( * ) ), 14 + - COUNT( * ) - 27 + + + CAST( NULL AS SIGNED ) ) ) - - 53 + - 59 + - + 59 * + 52 * + + 57 AS col1
----
-180622

skipif mysql # not compatible
query I rowsort label-8551
SELECT + 82 * + 70 / - + ( - NULLIF ( - - ( + - COUNT ( * ) ), 14 + - COUNT ( * ) - 27 + + + CAST ( NULL AS INTEGER ) ) ) - - 53 + - 59 + - + 59 * + 52 * + + 57 AS col1
----
-180622

onlyif mysql # DIV for integer division: 
query II rowsort label-8552
SELECT 58 DIV - + 53 - - 29, - 74 * + 36 * - 61 AS col2
----
28
162504

skipif mysql # not compatible
query II rowsort label-8552
SELECT 58 / - + 53 - - 29, - 74 * + 36 * - 61 AS col2
----
28
162504

onlyif mysql # DIV for integer division: 
query I rowsort label-8553
SELECT + 25 DIV 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8553
SELECT + 25 / 41 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT + 37 * - 55 * - COUNT( ALL - + 70 )
----
2035

skipif mysql # not compatible
query I rowsort label-8554
SELECT + 37 * - 55 * - COUNT ( ALL - + 70 )
----
2035

onlyif mysql # DIV for integer division: 
query I rowsort label-8555
SELECT 13 * - 52 + + 0 * - 77 DIV 92 - + - 32 AS col0
----
-644

skipif mysql # not compatible
query I rowsort label-8555
SELECT 13 * - 52 + + 0 * - 77 / 92 - + - 32 AS col0
----
-644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8556
SELECT + CAST( NULL AS SIGNED ) * - 63 / + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8556
SELECT + CAST ( NULL AS INTEGER ) * - 63 / + 43 AS col1
----
NULL

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

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

query I rowsort
SELECT + 7 + + + ( 15 ) + + + 91 * + 86 + 94 * + + COALESCE ( + 61, 63 ) - 75 AS col1
----
13507

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8560
SELECT + COALESCE ( - 51, ( 16 ) * - 2 * + - COALESCE ( 72, 54, + 43 + 29 DIV + + COALESCE ( - ( - 56 ), + COUNT( * ) ), - 74 * + COUNT( * ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-8560
SELECT + COALESCE ( - 51, ( 16 ) * - 2 * + - COALESCE ( 72, 54, + 43 + 29 / + + COALESCE ( - ( - 56 ), + COUNT ( * ) ), - 74 * + COUNT ( * ) ) )
----
-51

query I rowsort
SELECT DISTINCT 59 * - + 59
----
-3481

query II rowsort
SELECT + ( + + ( - - 35 ) ) AS col1, - 68
----
35
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT - COUNT( * ) + 42 + + 38
----
79

skipif mysql # not compatible
query I rowsort label-8563
SELECT - COUNT ( * ) + 42 + + 38
----
79

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

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

query I rowsort
SELECT DISTINCT + ( - 74 ) * 19 + - 68 + - - 24 AS col2
----
-1450

query I rowsort
SELECT + + 33 * + 11
----
363

query I rowsort
SELECT NULLIF ( + 8, + + 83 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8568
SELECT ALL COUNT( * ) * + NULLIF ( + - CAST( MIN( + 60 ) AS SIGNED ), 75 ) + + + 58 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL COUNT ( * ) * + NULLIF ( + - CAST ( MIN ( + 60 ) AS INTEGER ), 75 ) + + + 58 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT CASE - - 88 WHEN CASE + + 96 WHEN + 13 + - 53 THEN + 67 / - + COALESCE ( - NULLIF ( - 4, 48 + - SUM( - 8 ) * + - 29 * - 66 ), 93, + 68 + 46 ) + + 56 END THEN 69 * - - 5 * - - SUM( + 48 ) * - 84 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT CASE - - 88 WHEN CASE + + 96 WHEN + 13 + - 53 THEN + 67 / - + COALESCE ( - NULLIF ( - 4, 48 + - SUM ( - 8 ) * + - 29 * - 66 ), 93, + 68 + 46 ) + + 56 END THEN 69 * - - 5 * - - SUM ( + 48 ) * - 84 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL NULLIF ( 35, - + 98 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT + COUNT( - + NULLIF ( - - 2, - 89 ) ) - + - NULLIF ( 63, 98 / 84 ) - - 7 - COUNT( * ) * + 12 + - + 27 * + 76 AS col2
----
-1993

skipif mysql # not compatible
query I rowsort label-8571
SELECT + COUNT ( - + NULLIF ( - - 2, - 89 ) ) - + - NULLIF ( 63, 98 / 84 ) - - 7 - COUNT ( * ) * + 12 + - + 27 * + 76 AS col2
----
-1993

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8573
SELECT - 76 DIV - 4
----
19

skipif mysql # not compatible
query I rowsort label-8573
SELECT - 76 / - 4
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL - COUNT( * ) * NULLIF ( + MIN( + 65 ), - 93 / + 56 * - + 95 )
----
-65

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL - COUNT ( * ) * NULLIF ( + MIN ( + 65 ), - 93 / + 56 * - + 95 )
----
-65

query I rowsort
SELECT - ( + 75 ) * - 60
----
4500

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8576
SELECT - 90 AS col0, + CAST( NULL AS SIGNED ) col0
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-8576
SELECT - 90 AS col0, + CAST ( NULL AS INTEGER ) col0
----
-90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT DISTINCT - NULLIF ( 32, + COUNT( * ) ) * + - 15 AS col0
----
480

skipif mysql # not compatible
query I rowsort label-8577
SELECT DISTINCT - NULLIF ( 32, + COUNT ( * ) ) * + - 15 AS col0
----
480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT DISTINCT 7 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT 7 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + - 7, - 93 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT - + MIN( + 11 ) - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-8580
SELECT - + MIN ( + 11 ) - COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT ALL - 76 * - 59 - COUNT( * ) AS col2
----
4483

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL - 76 * - 59 - COUNT ( * ) AS col2
----
4483

query I rowsort
SELECT DISTINCT NULLIF ( 95, 15 ) AS col0
----
95

query I rowsort
SELECT - - 7 - - 92 + 97
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8584
SELECT + 75, CAST( + 97 AS SIGNED ) * + ( - - 50 ) * + COUNT( * ) - + - 79 * - 69 AS col1
----
75
-601

skipif mysql # not compatible
query II rowsort label-8584
SELECT + 75, CAST ( + 97 AS INTEGER ) * + ( - - 50 ) * + COUNT ( * ) - + - 79 * - 69 AS col1
----
75
-601

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

query II rowsort
SELECT ALL ( + 3 ) AS col0, + 75 AS col0
----
3
75

query I rowsort
SELECT 65 + - - 27 * - - 64 AS col2
----
1793

query I rowsort
SELECT 0 * - 63 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT COUNT( * ) - + MIN( ALL - - 54 )
----
-53

skipif mysql # not compatible
query I rowsort label-8589
SELECT COUNT ( * ) - + MIN ( ALL - - 54 )
----
-53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8590
SELECT CAST( - - 48 AS SIGNED ) DIV + 25 + - 10 + - 92 * - 8 AS col0
----
727

skipif mysql # not compatible
query I rowsort label-8590
SELECT CAST ( - - 48 AS INTEGER ) / + 25 + - 10 + - 92 * - 8 AS col0
----
727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8591
SELECT 26 * - COUNT( * ) - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT 26 * - COUNT ( * ) - + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 26 * 76
----
1976

query II rowsort
SELECT ALL - 81 * + 58, 60 AS col2
----
-4698
60

query I rowsort
SELECT 9 + - 16 + 45 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT - 77 * - 68 + - + COUNT( * )
----
5235

skipif mysql # not compatible
query I rowsort label-8595
SELECT - 77 * - 68 + - + COUNT ( * )
----
5235

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT DISTINCT NULLIF ( 21, 32 + COUNT( * ) * - 62 ) + - ( - 63 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT NULLIF ( 21, 32 + COUNT ( * ) * - 62 ) + - ( - 63 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT 6 + - MAX( DISTINCT + - 88 )
----
94

skipif mysql # not compatible
query I rowsort label-8597
SELECT 6 + - MAX ( DISTINCT + - 88 )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8598
SELECT ( - 80 ) DIV 7 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8598
SELECT ( - 80 ) / 7 AS col0
----
-11

query I rowsort
SELECT ALL ( - 51 ) + + 35
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT - + COUNT( * ) * + - 42 - - + 88 col0
----
130

skipif mysql # not compatible
query I rowsort label-8600
SELECT - + COUNT ( * ) * + - 42 - - + 88 col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT - 70 * NULLIF ( - 14, + 5 ) + - COALESCE ( + - 74, COUNT( * ) ) + - 44 - 51 + - - 16 * - 3 + + NULLIF ( - ( - NULLIF ( - 55, - 85 + + COALESCE ( COUNT( * ), - 84 * + 85 + + 90 - - - 21 - 82 * + 26, + 69 ) ) ), 25 ) + 60 AS col0
----
916

skipif mysql # not compatible
query I rowsort label-8601
SELECT - 70 * NULLIF ( - 14, + 5 ) + - COALESCE ( + - 74, COUNT ( * ) ) + - 44 - 51 + - - 16 * - 3 + + NULLIF ( - ( - NULLIF ( - 55, - 85 + + COALESCE ( COUNT ( * ), - 84 * + 85 + + 90 - - - 21 - 82 * + 26, + 69 ) ) ), 25 ) + 60 AS col0
----
916

onlyif mysql # aggregate syntax: 
query II rowsort label-8602
SELECT - COUNT( * ) + 20 + - 3 + - 88 + COUNT( * ) AS col1, - 2 * 70 col1
----
-71
-140

skipif mysql # not compatible
query II rowsort label-8602
SELECT - COUNT ( * ) + 20 + - 3 + - 88 + COUNT ( * ) AS col1, - 2 * 70 col1
----
-71
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT 27 * + 40 * 79 * + COUNT( * ) + - + 31
----
85289

skipif mysql # not compatible
query I rowsort label-8603
SELECT 27 * + 40 * 79 * + COUNT ( * ) + - + 31
----
85289

query I rowsort
SELECT + 46 - 31 AS col0
----
15

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

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

query I rowsort
SELECT ALL ( - 49 ) AS col0
----
-49

query I rowsort
SELECT + 4 + - ( - 92 ) AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8608
SELECT CASE COUNT( * ) WHEN - 68 THEN + + 19 WHEN + - 14 - + + 99 - + 22 * + - 99 * - - 39 THEN NULL WHEN + 53 THEN NULL ELSE - COUNT( * ) END * + 92 * NULLIF ( 74, - + COUNT( * ) ) + - CASE - CAST( NULL AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) THEN - - 35 * - ( - SUM( ALL + - 96 ) ) + - - 27 WHEN - 76 + 83 * + 18 THEN NULL ELSE 75 END - 99
----
-6982

skipif mysql # not compatible
query I rowsort label-8608
SELECT CASE COUNT ( * ) WHEN - 68 THEN + + 19 WHEN + - 14 - + + 99 - + 22 * + - 99 * - - 39 THEN NULL WHEN + 53 THEN NULL ELSE - COUNT ( * ) END * + 92 * NULLIF ( 74, - + COUNT ( * ) ) + - CASE - CAST ( NULL AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) THEN - - 35 * - ( - SUM ( ALL + - 96 ) ) + - - 27 WHEN - 76 + 83 * + 18 THEN NULL ELSE 75 END - 99
----
-6982

query II rowsort
SELECT ALL + ( 15 ) AS col1, 81 col0
----
15
81

query II rowsort
SELECT - 40 + - 82, + 75 + 92 AS col1
----
-122
167

query I rowsort
SELECT 32 + ( - 67 ) * - 52 + + 4 * + 58 col0
----
3748

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT DISTINCT - ( MIN( + 7 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT - ( MIN ( + 7 ) )
----
-7

query I rowsort
SELECT 10 + - 43 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8614
SELECT - 22 AS col2, - ( + - COUNT( * ) ) - - 4 AS col1
----
-22
5

skipif mysql # not compatible
query II rowsort label-8614
SELECT - 22 AS col2, - ( + - COUNT ( * ) ) - - 4 AS col1
----
-22
5

query I rowsort
SELECT ( + 48 ) * + 41 - + + 64
----
1904

query I rowsort
SELECT 19 + + + 12
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8617
SELECT 26 DIV 22 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8617
SELECT 26 / 22 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8618
SELECT ALL + COALESCE ( ( - 63 ), - CAST( 92 AS SIGNED ) - + COUNT( * ), - 82 ) + + + 48 + COUNT( * ) + ( - + 20 ) + - COUNT( * ) * - + 37 * + CASE - + CASE + 66 WHEN - NULLIF ( + 56, + + 61 ) * - - 61 * 72 THEN NULL ELSE - 33 * + 19 * - 9 + + 37 + - CASE + 84 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE NULLIF ( 81, + 50 - COALESCE ( + 49, - 47 + + 22 ) ) END * + ( + 56 * + ( + CAST( - COUNT( - ( - 72 ) ) AS SIGNED ) ) ) END WHEN 61 * 58 THEN CAST( NULL AS SIGNED ) ELSE NULL END * + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL + COALESCE ( ( - 63 ), - CAST ( 92 AS INTEGER ) - + COUNT ( * ), - 82 ) + + + 48 + COUNT ( * ) + ( - + 20 ) + - COUNT ( * ) * - + 37 * + CASE - + CASE + 66 WHEN - NULLIF ( + 56, + + 61 ) * - - 61 * 72 THEN NULL ELSE - 33 * + 19 * - 9 + + 37 + - CASE + 84 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULLIF ( 81, + 50 - COALESCE ( + 49, - 47 + + 22 ) ) END * + ( + 56 * + ( + CAST ( - COUNT ( - ( - 72 ) ) AS INTEGER ) ) ) END WHEN 61 * 58 THEN CAST ( NULL AS INTEGER ) ELSE NULL END * + 51 AS col2
----
NULL

query I rowsort
SELECT 9 * + 68 AS col2
----
612

query II rowsort
SELECT DISTINCT - 4 * - ( - + ( + 40 ) ) * + 24 AS col1, - ( + 54 ) - - + 77
----
-3840
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8621
SELECT DISTINCT + CASE + 88 WHEN - - COUNT( * ) * 38 THEN NULL WHEN + 80 + + NULLIF ( + 80, - CASE + 60 WHEN + 14 THEN - 46 * ( - - 13 ) WHEN MAX( DISTINCT + 70 ) THEN NULL WHEN 33 THEN NULL ELSE NULL END / + 60 ) THEN - 51 + 15 + - 16 - - ( 29 ) - + COUNT( * ) - + - 17 / - + 36 * CAST( + 8 AS DECIMAL ) END + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT + CASE + 88 WHEN - - COUNT ( * ) * 38 THEN NULL WHEN + 80 + + NULLIF ( + 80, - CASE + 60 WHEN + 14 THEN - 46 * ( - - 13 ) WHEN MAX ( DISTINCT + 70 ) THEN NULL WHEN 33 THEN NULL ELSE NULL END / + 60 ) THEN - 51 + 15 + - 16 - - ( 29 ) - + COUNT ( * ) - + - 17 / - + 36 * CAST ( + 8 AS REAL ) END + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT ALL - MIN( ALL - 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL - MIN ( ALL - 56 ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8623
SELECT DISTINCT + 5 + + ( COUNT( ALL - CAST( NULL AS SIGNED ) ) ) DIV 24 col0
----
5

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT + 5 + + ( COUNT ( ALL - CAST ( NULL AS INTEGER ) ) ) / 24 col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT + COUNT( * ) * 89 - - 54 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-8624
SELECT + COUNT ( * ) * 89 - - 54 AS col1
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8625
SELECT - 42 / + 77 - - CAST( NULL AS SIGNED ), - 44 + - 40 AS col0
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-8625
SELECT - 42 / + 77 - - CAST ( NULL AS INTEGER ), - 44 + - 40 AS col0
----
NULL
-84

query II rowsort
SELECT DISTINCT - 83 AS col0, + 42 + 18 + + 34 + + ( + + 66 ) + - + 21 AS col2
----
-83
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8627
SELECT 24 * + - CAST( NULL AS SIGNED ) + - CASE + ( 51 ) WHEN 69 THEN 9 WHEN - - 65 THEN + 81 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT 24 * + - CAST ( NULL AS INTEGER ) + - CASE + ( 51 ) WHEN 69 THEN 9 WHEN - - 65 THEN + 81 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 87 + + 5
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8629
SELECT ALL + ( CAST( - - 91 AS SIGNED ) ) + + + CASE - - 15 WHEN 65 THEN + 99 WHEN - + ( - 24 ) - - - 38 THEN NULL WHEN - 25 THEN NULL ELSE NULL END * - - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL + ( CAST ( - - 91 AS INTEGER ) ) + + + CASE - - 15 WHEN 65 THEN + 99 WHEN - + ( - 24 ) - - - 38 THEN NULL WHEN - 25 THEN NULL ELSE NULL END * - - 2
----
NULL

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

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

query I rowsort
SELECT - ( 48 ) * 55 - - 10
----
-2630

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8632
SELECT DISTINCT + + ( + + 75 ) * CAST( - 58 AS SIGNED ) DIV 72 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT + + ( + + 75 ) * CAST ( - 58 AS INTEGER ) / 72 AS col0
----
-60

query I rowsort
SELECT ALL - 36 + - + 50
----
-86

query II rowsort
SELECT ALL - - 52 AS col2, 90
----
52
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8635
SELECT + ( + - MAX( ALL 36 ) ) / - NULLIF ( - - CAST( - 83 AS SIGNED ), + COUNT( * ) ) * - - NULLIF ( + CAST( NULL AS SIGNED ), + 22 + NULLIF ( + 95, - 82 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT + ( + - MAX ( ALL 36 ) ) / - NULLIF ( - - CAST ( - 83 AS INTEGER ), + COUNT ( * ) ) * - - NULLIF ( + CAST ( NULL AS INTEGER ), + 22 + NULLIF ( + 95, - 82 ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 22 * 51
----
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT 98 * - MAX( ALL - 12 ) * + COUNT( * ) AS col0
----
1176

skipif mysql # not compatible
query I rowsort label-8637
SELECT 98 * - MAX ( ALL - 12 ) * + COUNT ( * ) AS col0
----
1176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT CAST( NULL AS SIGNED ) + + - 53 * + ( - 90 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT CAST ( NULL AS INTEGER ) + + - 53 * + ( - 90 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8639
SELECT - 97 DIV - - COALESCE ( - 64, - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-8639
SELECT - 97 / - - COALESCE ( - 64, - 84 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT + + SUM( + - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-8640
SELECT + + SUM ( + - 70 )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8641
SELECT DISTINCT + 62 - - - SUM( DISTINCT + 27 ) + + - ( + + 82 ) + - ( + COALESCE ( CASE 8 WHEN - + 79 * - 23 + + 68 - + 49 * COUNT( - + 45 ) * - 20 + + - 26 THEN - 76 * COUNT( * ) + - 53 WHEN - 59 * - 2 - + - 99 THEN NULL END, 95 + + 97 ) ) + ( 44 ) DIV + 10 AS col1
----
-235

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT + 62 - - - SUM ( DISTINCT + 27 ) + + - ( + + 82 ) + - ( + COALESCE ( CASE 8 WHEN - + 79 * - 23 + + 68 - + 49 * COUNT ( - + 45 ) * - 20 + + - 26 THEN - 76 * COUNT ( * ) + - 53 WHEN - 59 * - 2 - + - 99 THEN NULL END, 95 + + 97 ) ) + ( 44 ) / + 10 AS col1
----
-235

onlyif mysql # aggregate syntax: 
query III rowsort label-8642
SELECT DISTINCT 8 col0, + COUNT( ALL 11 ) AS col0, - COALESCE ( + SUM( 36 ), + + COUNT( * ) ) * + + 49
----
8
1
-1764

skipif mysql # not compatible
query III rowsort label-8642
SELECT DISTINCT 8 col0, + COUNT ( ALL 11 ) AS col0, - COALESCE ( + SUM ( 36 ), + + COUNT ( * ) ) * + + 49
----
8
1
-1764

onlyif mysql # aggregate syntax: 
query II rowsort label-8643
SELECT ALL + CASE 96 WHEN 74 THEN - MIN( ALL 6 ) * + + COUNT( * ) * 99 + - 64 * - SUM( DISTINCT - 16 ) ELSE NULL END AS col1, SUM( DISTINCT - 7 ) col1
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-8643
SELECT ALL + CASE 96 WHEN 74 THEN - MIN ( ALL 6 ) * + + COUNT ( * ) * 99 + - 64 * - SUM ( DISTINCT - 16 ) ELSE NULL END AS col1, SUM ( DISTINCT - 7 ) col1
----
NULL
-7

query I rowsort
SELECT + + 5 + 36
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8645
SELECT + 13 * + + CAST( + 34 AS SIGNED ) * 68 + + 27 + - + 66 * - 90 AS col0
----
36023

skipif mysql # not compatible
query I rowsort label-8645
SELECT + 13 * + + CAST ( + 34 AS INTEGER ) * 68 + + 27 + - + 66 * - 90 AS col0
----
36023

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT DISTINCT COUNT( 47 ) + - 1 * + 1 + 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT COUNT ( 47 ) + - 1 * + 1 + 65 AS col1
----
65

query I rowsort
SELECT ALL 96 * - + 94 AS col2
----
-9024

query I rowsort
SELECT + 43 + - 16 + - 50
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8649
SELECT ALL COALESCE ( + 40, + 14 * + CAST( - NULLIF ( - + 31, - 43 ) AS SIGNED ) + - + 45 ) + 45 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL COALESCE ( + 40, + 14 * + CAST ( - NULLIF ( - + 31, - 43 ) AS INTEGER ) + - + 45 ) + 45 AS col0
----
85

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

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

skipif mysql # not compatible
query I rowsort label-8651
SELECT + COUNT ( * ) + 15 * + 95 AS col0
----
1426

query I rowsort
SELECT + 7 + + 80 AS col0
----
87

query I rowsort
SELECT - COALESCE ( + 59, - + 22 ) - - 3 AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8654
SELECT DISTINCT - 89 * CAST( NULL AS SIGNED ) * - - 1 * - + COUNT( * ) * - + 35 + 15 * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT - 89 * CAST ( NULL AS INTEGER ) * - - 1 * - + COUNT ( * ) * - + 35 + 15 * + 66
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8655
SELECT + 77 * - 87 * SUM ( ALL - CAST ( NULL AS INTEGER ) ) * - 47 - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 83 * 56 * + + 65 AS col0
----
302120

onlyif mysql # aggregate syntax: 
query II rowsort label-8657
SELECT DISTINCT + 73, + 89 * + SUM( - 20 ) * + 47 + + COUNT( * ) + 4 * + 63 + 26 AS col1
----
73
-83381

skipif mysql # not compatible
query II rowsort label-8657
SELECT DISTINCT + 73, + 89 * + SUM ( - 20 ) * + 47 + + COUNT ( * ) + 4 * + 63 + 26 AS col1
----
73
-83381

query I rowsort
SELECT - 53 + 96 - + + 92
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-8659
SELECT ALL + COALESCE ( - 59, + 33 + + + COUNT( * ) ) AS col1, + 95
----
-59
95

skipif mysql # not compatible
query II rowsort label-8659
SELECT ALL + COALESCE ( - 59, + 33 + + + COUNT ( * ) ) AS col1, + 95
----
-59
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT ALL - 79 * + - COUNT( * ) - 12 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL - 79 * + - COUNT ( * ) - 12 AS col1
----
67

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

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

query I rowsort
SELECT - + 21 * 42
----
-882

onlyif mysql # aggregate syntax: 
query II rowsort label-8663
SELECT + + 10 + + + 59 AS col2, COUNT( * ) AS col2
----
69
1

skipif mysql # not compatible
query II rowsort label-8663
SELECT + + 10 + + + 59 AS col2, COUNT ( * ) AS col2
----
69
1

query I rowsort
SELECT - 72 + + 32
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT - 86 * - 33 * + + COUNT( * ) + - + 82
----
2756

skipif mysql # not compatible
query I rowsort label-8665
SELECT - 86 * - 33 * + + COUNT ( * ) + - + 82
----
2756

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT ALL + - COUNT( - 37 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL + - COUNT ( - 37 ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT DISTINCT + COALESCE ( 90, + - 70 DIV 76 + - + 87, + - 98 - + 14 )
----
90

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT + COALESCE ( 90, + - 70 / 76 + - + 87, + - 98 - + 14 )
----
90

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

query I rowsort
SELECT - - 95 + + 1 + + + 92 AS col1
----
188

query II rowsort
SELECT DISTINCT + 82 AS col2, 81 AS col2
----
82
81

query I rowsort
SELECT + + 58 * 88 + 51 AS col0
----
5155

query I rowsort
SELECT - 44 - - 73 AS col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8673
SELECT + - 45 DIV + 24 + 85 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8673
SELECT + - 45 / + 24 + 85 AS col0
----
84

query I rowsort
SELECT - - 34 + + ( + 68 ) AS col0
----
102

query I rowsort
SELECT + 58 + - + 95
----
-37

query I rowsort
SELECT DISTINCT + 64 * + - 63 + + 52 AS col2
----
-3980

query I rowsort
SELECT ALL 41 + + 23 AS col1
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT - 91 + COUNT( * ) * + 46 + - 26 + + 31
----
-40

skipif mysql # not compatible
query I rowsort label-8679
SELECT - 91 + COUNT ( * ) * + 46 + - 26 + + 31
----
-40

query I rowsort
SELECT ALL 37 * 95 * - - 58 * - 49
----
-9989630

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT + 43 + - + 56 + + - 69 * 49 + - 14 - - COUNT( * ) + - - 90 + - 62 * 58 * 16 + 30 * COUNT( * ) * NULLIF ( + - 81, + 8 )
----
-63283

skipif mysql # not compatible
query I rowsort label-8681
SELECT + 43 + - + 56 + + - 69 * 49 + - 14 - - COUNT ( * ) + - - 90 + - 62 * 58 * 16 + 30 * COUNT ( * ) * NULLIF ( + - 81, + 8 )
----
-63283

query I rowsort
SELECT - 48 + + + 62 AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8683
SELECT + 13 + CAST( NULL AS SIGNED ) + 98 + 92 * + ( 46 ) - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT + 13 + CAST ( NULL AS INTEGER ) + 98 + 92 * + ( 46 ) - 58 AS col2
----
NULL

query I rowsort
SELECT ALL + 60 * + + 0 * + 87
----
0

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

query I rowsort
SELECT + 53 * + - ( + 61 ) AS col2
----
-3233

onlyif mysql # DIV for integer division: 
query I rowsort label-8687
SELECT ALL - COALESCE ( - + 75, - 52 ) DIV - 25 - - - 85 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL - COALESCE ( - + 75, - 52 ) / - 25 - - - 85 AS col1
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8688
SELECT + 4 * + CAST( - ( + + 35 ) AS SIGNED ) AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-8688
SELECT + 4 * + CAST ( - ( + + 35 ) AS INTEGER ) AS col0
----
-140

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT + MAX( DISTINCT + COALESCE ( - 69, + 36 ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8690
SELECT + MAX ( DISTINCT + COALESCE ( - 69, + 36 ) ) AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8691
SELECT ALL - 84 / + CAST( NULL AS SIGNED ) AS col1, - 75 AS col0
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-8691
SELECT ALL - 84 / + CAST ( NULL AS INTEGER ) AS col1, - 75 AS col0
----
NULL
-75

query I rowsort
SELECT + 84 * - 57 AS col1
----
-4788

query I rowsort
SELECT ( + 61 ) * - + 38 * + - 35 - 20 AS col0
----
81110

query II rowsort
SELECT DISTINCT - - 50 + 51, + 81 * - 99 AS col0
----
101
-8019

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT 17 * + - SUM( DISTINCT 29 ) AS col2
----
-493

skipif mysql # not compatible
query I rowsort label-8695
SELECT 17 * + - SUM ( DISTINCT 29 ) AS col2
----
-493

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT - COUNT( 26 ) + - + ( + 41 ) - - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-8696
SELECT - COUNT ( 26 ) + - + ( + 41 ) - - COUNT ( * )
----
-41

query I rowsort
SELECT 10 * - 36
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT ALL - COUNT( DISTINCT + 42 ) + + 65 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL - COUNT ( DISTINCT + 42 ) + + 65 AS col2
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8699
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 75 + - 37 * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 75 + - 37 * + 66
----
NULL

query I rowsort
SELECT 0 + 57 AS col1
----
57

query I rowsort
SELECT 35 * + 6
----
210

query I rowsort
SELECT 9 + 60
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-8703
SELECT 21 AS col0, - 0 DIV + + 43
----
21
0

skipif mysql # not compatible
query II rowsort label-8703
SELECT 21 AS col0, - 0 / + + 43
----
21
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT 19 + 38 * + SUM( - 67 ) * NULLIF ( 89, + + 34 ) * - - 62 + COUNT( * ) AS col0
----
-14048808

skipif mysql # not compatible
query I rowsort label-8704
SELECT 19 + 38 * + SUM ( - 67 ) * NULLIF ( 89, + + 34 ) * - - 62 + COUNT ( * ) AS col0
----
-14048808

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT 54 DIV - 61 * + 28
----
0

skipif mysql # not compatible
query I rowsort label-8705
SELECT 54 / - 61 * + 28
----
0

query I rowsort
SELECT 25 * 87 AS col1
----
2175

query I rowsort
SELECT ALL - 28 * - 51
----
1428

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8708
SELECT ALL 48 DIV + - 62 * + COUNT( * ) AS col2, 94 - + 75 AS col2
----
0
19

skipif mysql # not compatible
query II rowsort label-8708
SELECT ALL 48 / + - 62 * + COUNT ( * ) AS col2, 94 - + 75 AS col2
----
0
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8709
SELECT ALL - COALESCE ( + 15, 95 DIV - + COUNT( * ) ) - + 25 + - 51 * + 12 * ( - ( + NULLIF ( 32, + - 9 ) ) ) AS col1
----
19544

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL - COALESCE ( + 15, 95 / - + COUNT ( * ) ) - + 25 + - 51 * + 12 * ( - ( + NULLIF ( 32, + - 9 ) ) ) AS col1
----
19544

query I rowsort
SELECT 34 + - 22 AS col2
----
12

query II rowsort
SELECT 36 AS col0, 77 AS col0
----
36
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8712
SELECT 43 + - 69 DIV + 98 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8712
SELECT 43 + - 69 / + 98 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT 79 - + NULLIF ( + COUNT( * ), - 0 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-8713
SELECT 79 - + NULLIF ( + COUNT ( * ), - 0 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + - 72 * + + 69 - + + COUNT( ALL 40 ) - - + 19 + - 25 * + + COUNT( - + 27 ) * - - 97 * 55 + + 94
----
-138231

skipif mysql # not compatible
query I rowsort label-8714
SELECT + - 72 * + + 69 - + + COUNT ( ALL 40 ) - - + 19 + - 25 * + + COUNT ( - + 27 ) * - - 97 * 55 + + 94
----
-138231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8715
SELECT ALL - COUNT( + ( - 91 ) ) AS col1, - CASE 29 WHEN + CAST( NULL AS SIGNED ) * 87 THEN + 13 WHEN - - 98 + - - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END / 34 col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8715
SELECT ALL - COUNT ( + ( - 91 ) ) AS col1, - CASE 29 WHEN + CAST ( NULL AS INTEGER ) * 87 THEN + 13 WHEN - - 98 + - - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END / 34 col0
----
-1
NULL

query I rowsort
SELECT + - ( 85 ) col1
----
-85

query I rowsort
SELECT DISTINCT NULLIF ( 1, + 30 ) * - 19 * - 50 * + 90 * + 74
----
6327000

query I rowsort
SELECT DISTINCT 30 + + + 94
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ALL SUM( ALL - 96 ) + 61 * - - 39 * 76 AS col0
----
180708

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL SUM ( ALL - 96 ) + 61 * - - 39 * 76 AS col0
----
180708

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8720
SELECT + MIN( DISTINCT + 73 ) DIV - 24 + 34 + 21 * - 32 + - 21 AS col1
----
-662

skipif mysql # not compatible
query I rowsort label-8720
SELECT + MIN ( DISTINCT + 73 ) / - 24 + 34 + 21 * - 32 + - 21 AS col1
----
-662

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT + 57 + + - 84 * COUNT( * ) * COUNT( DISTINCT - 13 ) + + + 21 + - + 97 - + + ( 76 ) + - + 78 + + 35 * - + 61 * - 13 + - - MAX( - - 58 ) + - - COUNT( * ) * - 42 AS col0
----
27514

skipif mysql # not compatible
query I rowsort label-8721
SELECT + 57 + + - 84 * COUNT ( * ) * COUNT ( DISTINCT - 13 ) + + + 21 + - + 97 - + + ( 76 ) + - + 78 + + 35 * - + 61 * - 13 + - - MAX ( - - 58 ) + - - COUNT ( * ) * - 42 AS col0
----
27514

query I rowsort
SELECT ALL + 81 + - - 91 AS col0
----
172

query I rowsort
SELECT + 77 * 13 - + + 23 + - + 85 AS col1
----
893

onlyif mysql # DIV for integer division: 
query I rowsort label-8724
SELECT + 40 DIV + 9 + + 40 * - + 48
----
-1916

skipif mysql # not compatible
query I rowsort label-8724
SELECT + 40 / + 9 + + 40 * - + 48
----
-1916

query I rowsort
SELECT + 79 + + ( - 76 ) + + 1 col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-8726
SELECT + - COUNT( * ) AS col0, 32 - - ( - 75 )
----
-1
-43

skipif mysql # not compatible
query II rowsort label-8726
SELECT + - COUNT ( * ) AS col0, 32 - - ( - 75 )
----
-1
-43

query I rowsort
SELECT ALL - CASE - + 16 WHEN - + 35 THEN NULL ELSE - - 6 END AS col1
----
-6

query I rowsort
SELECT DISTINCT ( + - 91 ) + + 14 * + 95 col2
----
1239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8729
SELECT + CAST( 35 AS SIGNED ) * 47 * SUM( DISTINCT - 7 ) AS col0
----
-11515

skipif mysql # not compatible
query I rowsort label-8729
SELECT + CAST ( 35 AS INTEGER ) * 47 * SUM ( DISTINCT - 7 ) AS col0
----
-11515

query I rowsort
SELECT - 77 * 97 + + - 37 + + 24
----
-7482

query I rowsort
SELECT ALL 76 + - - 54 AS col1
----
130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT 55 + - 3 + COUNT( - 39 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8733
SELECT 55 + - 3 + COUNT ( - 39 ) AS col0
----
53

query II rowsort
SELECT 29 + 0 AS col1, + 51 col2
----
29
51

query I rowsort
SELECT - 45 * + 36 + + 84
----
-1536

query II rowsort
SELECT 35 + + - 37 AS col1, 16
----
-2
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT ALL - 32 - CAST( AVG ( 94 ) AS SIGNED )
----
-126

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL - 32 - CAST ( AVG ( 94 ) AS INTEGER )
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-8738
SELECT 34 + - - 52 + - 93 * 57 DIV + - 58 AS col2
----
177

skipif mysql # not compatible
query I rowsort label-8738
SELECT 34 + - - 52 + - 93 * 57 / + - 58 AS col2
----
177

query I rowsort
SELECT 44 + 52 AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8740
SELECT ALL CAST( - 33 AS SIGNED ) - + - 29
----
-4

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL CAST ( - 33 AS INTEGER ) - + - 29
----
-4

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8742
SELECT NULLIF ( - 34, - 95 ) DIV 65 AS col1, 67 + - 60
----
0
7

skipif mysql # not compatible
query II rowsort label-8742
SELECT NULLIF ( - 34, - 95 ) / 65 AS col1, 67 + - 60
----
0
7

query I rowsort
SELECT 40 + + 41 * + - 13
----
-493

query I rowsort
SELECT 79 + + - 63 + - + 99 AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-8745
SELECT 50 DIV 1 * - 42 AS col1
----
-2100

skipif mysql # not compatible
query I rowsort label-8745
SELECT 50 / 1 * - 42 AS col1
----
-2100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8746
SELECT 88 + - ( CAST( + + 74 AS SIGNED ) ) AS col1, - 58 * 98 AS col0
----
14
-5684

skipif mysql # not compatible
query II rowsort label-8746
SELECT 88 + - ( CAST ( + + 74 AS INTEGER ) ) AS col1, - 58 * 98 AS col0
----
14
-5684

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT DISTINCT + + 46 + + 83 AS col0, 53 + SUM( + 95 )
----
129
148

skipif mysql # not compatible
query II rowsort label-8747
SELECT DISTINCT + + 46 + + 83 AS col0, 53 + SUM ( + 95 )
----
129
148

query I rowsort
SELECT - 61 + 68 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8749
SELECT DISTINCT - 46 DIV - + 28
----
1

skipif mysql # not compatible
query I rowsort label-8749
SELECT DISTINCT - 46 / - + 28
----
1

query I rowsort
SELECT DISTINCT CASE - - 84 WHEN + 4 THEN NULL WHEN - 34 THEN 77 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT ALL 21 * - - 65 + CAST( NULL AS SIGNED ) + + 26 * 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL 21 * - - 65 + CAST ( NULL AS INTEGER ) + + 26 * 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8752
SELECT + 50 DIV - - COALESCE ( 23, - 84 * + - 89 DIV + 99 + 2 + + + 85, + COUNT( * ) DIV - 78 + 46, - + 30 ) + + 7 + - NULLIF ( - 97, + COUNT( * ) ) - - 2 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-8752
SELECT + 50 / - - COALESCE ( 23, - 84 * + - 89 / + 99 + 2 + + + 85, + COUNT ( * ) / - 78 + 46, - + 30 ) + + 7 + - NULLIF ( - 97, + COUNT ( * ) ) - - 2 AS col1
----
108

query I rowsort
SELECT + - 16 + + ( 50 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8754
SELECT DISTINCT - 44 * - 57 * + ( 20 ) + + - 99 + + 37 / - 66 + NULLIF ( MAX( - 66 ), + 47 ) - - CASE 31 WHEN + + SUM( - + 24 ) THEN AVG ( DISTINCT + 42 ) * - 30 WHEN + + NULLIF ( + 94, - - COUNT( * ) * + AVG ( DISTINCT - 28 ) + + 73 ) * 99 - + 70 THEN NULL ELSE - 69 END + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT - 44 * - 57 * + ( 20 ) + + - 99 + + 37 / - 66 + NULLIF ( MAX ( - 66 ), + 47 ) - - CASE 31 WHEN + + SUM ( - + 24 ) THEN AVG ( DISTINCT + 42 ) * - 30 WHEN + + NULLIF ( + 94, - - COUNT ( * ) * + AVG ( DISTINCT - 28 ) + + 73 ) * 99 - + 70 THEN NULL ELSE - 69 END + + CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT + 80 * - + 3 + + + SUM( ALL - + 21 ) * + 96 col0
----
-2256

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT + 80 * - + 3 + + + SUM ( ALL - + 21 ) * + 96 col0
----
-2256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8757
SELECT DISTINCT + 12 * 18 / + - 30 - CAST( NULL AS SIGNED ) * + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT + 12 * 18 / + - 30 - CAST ( NULL AS INTEGER ) * + + 69
----
NULL

query I rowsort
SELECT + 96 * + ( - 29 )
----
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT SUM( + 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8759
SELECT SUM ( + 40 ) AS col0
----
40

query I rowsort
SELECT ALL - 79 * - + ( - 13 ) - 13
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT MAX( + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-8761
SELECT MAX ( + 75 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8762
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) * + + 80 * + - 78 + + 70 + 84 col2
----
6394

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) * + + 80 * + - 78 + + 70 + 84 col2
----
6394

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8764
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 92 / - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 92 / - 14
----
NULL

query I rowsort
SELECT + 42 + 18
----
60

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

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

query I rowsort
SELECT + 94 + 88
----
182

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT + MIN( DISTINCT - 94 ) + + - 57 col1
----
-151

skipif mysql # not compatible
query I rowsort label-8769
SELECT + MIN ( DISTINCT - 94 ) + + - 57 col1
----
-151

onlyif mysql # aggregate syntax: 
query II rowsort label-8770
SELECT - 56 AS col2, 33 + 16 * - CASE 22 WHEN MIN( - + 30 ) THEN 97 ELSE NULL END + + + ( + 88 )
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-8770
SELECT - 56 AS col2, 33 + 16 * - CASE 22 WHEN MIN ( - + 30 ) THEN 97 ELSE NULL END + + + ( + 88 )
----
-56
NULL

query I rowsort
SELECT ALL + 66 + + + 49 + - 14 AS col2
----
101

query I rowsort
SELECT ALL - 11 + + 67 AS col1
----
56

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

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

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

skipif mysql # not compatible
query I rowsort label-8774
SELECT + MIN ( + 82 )
----
82

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT + - 67 + - - 77 + NULLIF ( - 74, - ( COUNT( * ) ) )
----
-64

skipif mysql # not compatible
query I rowsort label-8778
SELECT + - 67 + - - 77 + NULLIF ( - 74, - ( COUNT ( * ) ) )
----
-64

query I rowsort
SELECT - + 87 - - 68 AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8780
SELECT - - 33 * - ( - COALESCE ( - 92, ( + 46 ), 47 + + + 19 + 66 ) ) + - 58 + - CASE + MIN( ALL + 6 ) WHEN - 94 THEN NULL WHEN - - COUNT( * ) THEN + + 58 END + - + COUNT( * ) + + 46 / + COALESCE ( + - 32, + 13 + - 41 * 65 ) + - - 56 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT - - 33 * - ( - COALESCE ( - 92, ( + 46 ), 47 + + + 19 + 66 ) ) + - 58 + - CASE + MIN ( ALL + 6 ) WHEN - 94 THEN NULL WHEN - - COUNT ( * ) THEN + + 58 END + - + COUNT ( * ) + + 46 / + COALESCE ( + - 32, + 13 + - 41 * 65 ) + - - 56 * - CAST ( NULL AS REAL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL + COUNT ( DISTINCT 52 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8782
SELECT - + 84 DIV - + 32 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8782
SELECT - + 84 / - + 32 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT DISTINCT 76 / + 34 * + + CAST( NULL AS SIGNED ) + - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT 76 / + 34 * + + CAST ( NULL AS INTEGER ) + - 1 AS col1
----
NULL

query I rowsort
SELECT - + 4 * - 11 + + 10 + + 36 AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8785
SELECT 24 * - 86 - - 96 + CAST( - 35 AS SIGNED ) + - CASE + COUNT( * ) WHEN - 42 THEN NULL WHEN COUNT( * ) THEN - + 97 ELSE NULL END
----
-1906

skipif mysql # not compatible
query I rowsort label-8785
SELECT 24 * - 86 - - 96 + CAST ( - 35 AS INTEGER ) + - CASE + COUNT ( * ) WHEN - 42 THEN NULL WHEN COUNT ( * ) THEN - + 97 ELSE NULL END
----
-1906

query I rowsort
SELECT + NULLIF ( 26, + ( + 61 ) ) * - 32 - + 12 AS col2
----
-844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8787
SELECT + - CAST( + CASE + ( 66 ) WHEN - - 36 THEN + 46 + 67 WHEN - 12 THEN + ( - - 26 ) WHEN + 90 THEN - ( + - 64 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT + - CAST ( + CASE + ( 66 ) WHEN - - 36 THEN + 46 + 67 WHEN - 12 THEN + ( - - 26 ) WHEN + 90 THEN - ( + - 64 ) END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8788
SELECT + MIN( ALL - 91 ) + + - 32 * - 60 AS col1, 81 * COUNT( * ) DIV 62 * + 32 DIV + 32 DIV 10 * + 50 AS col2
----
1829
0

skipif mysql # not compatible
query II rowsort label-8788
SELECT + MIN ( ALL - 91 ) + + - 32 * - 60 AS col1, 81 * COUNT ( * ) / 62 * + 32 / + 32 / 10 * + 50 AS col2
----
1829
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL + ( - 39 ) * 81 * COUNT( ALL - - 44 ) col2
----
-3159

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL + ( - 39 ) * 81 * COUNT ( ALL - - 44 ) col2
----
-3159

query II rowsort
SELECT + 67, + 47 AS col2
----
67
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT ( MAX( + 54 ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-8791
SELECT ( MAX ( + 54 ) ) AS col2
----
54

query I rowsort
SELECT 5 * - 78 + + 62
----
-328

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8796
SELECT NULLIF ( + + 54, - MIN( ALL - 83 ) ) AS col2, + 32
----
54
32

skipif mysql # not compatible
query II rowsort label-8796
SELECT NULLIF ( + + 54, - MIN ( ALL - 83 ) ) AS col2, + 32
----
54
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT 43 * 13 * + 90 + - - ( + 92 ) + + 56 + - COUNT( * ) * 49 + - 39 AS col0
----
50370

skipif mysql # not compatible
query I rowsort label-8797
SELECT 43 * 13 * + 90 + - - ( + 92 ) + + 56 + - COUNT ( * ) * 49 + - 39 AS col0
----
50370

query I rowsort
SELECT CASE + - 16 WHEN + 12 THEN NULL ELSE - 27 END
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT + 77 + ( - COUNT( ALL - 89 ) ) + - 86
----
-10

skipif mysql # not compatible
query I rowsort label-8799
SELECT + 77 + ( - COUNT ( ALL - 89 ) ) + - 86
----
-10

query I rowsort
SELECT DISTINCT 88 + 36 + - ( 59 ) AS col2
----
65

query II rowsort
SELECT DISTINCT 13 + + 96, 13 + 92 + + 65 + - 91 AS col0
----
109
79

query I rowsort
SELECT ALL - 76 + - + 34 AS col1
----
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-8803
SELECT - COUNT( * ) col1, - 53
----
-1
-53

skipif mysql # not compatible
query II rowsort label-8803
SELECT - COUNT ( * ) col1, - 53
----
-1
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8804
SELECT + 1 DIV + + ( - NULLIF ( - + 46, 18 ) ) + - 75 col2, + COUNT( * )
----
-75
1

skipif mysql # not compatible
query II rowsort label-8804
SELECT + 1 / + + ( - NULLIF ( - + 46, 18 ) ) + - 75 col2, + COUNT ( * )
----
-75
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8805
SELECT 58 + + + 75 - - + 78 - - - 24 + + + 37 * 53 * - 74 + - CASE - 85 WHEN - + 41 * COALESCE ( - MIN( ALL + - 90 ), - 2 * 77 * + + MAX( ALL - + ( 1 ) ) ) + + 28 THEN + + MIN( + CAST( NULL AS SIGNED ) ) * ( 5 ) * - 33 - 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8805
SELECT 58 + + + 75 - - + 78 - - - 24 + + + 37 * 53 * - 74 + - CASE - 85 WHEN - + 41 * COALESCE ( - MIN ( ALL + - 90 ), - 2 * 77 * + + MAX ( ALL - + ( 1 ) ) ) + + 28 THEN + + MIN ( + CAST ( NULL AS INTEGER ) ) * ( 5 ) * - 33 - 1 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 0, - 62 AS col2
----
0
-62

query I rowsort
SELECT 61 * 47 * 72
----
206424

query I rowsort
SELECT - 84 + + + 72 + - 27
----
-39

query II rowsort
SELECT + 62 AS col1, 41 AS col2
----
62
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8810
SELECT DISTINCT + CASE - CAST( - 27 AS SIGNED ) WHEN + 41 THEN 37 * + + 96 * - - COUNT( * ) + - 10 * + COUNT( DISTINCT - 49 ) END + - - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT + CASE - CAST ( - 27 AS INTEGER ) WHEN + 41 THEN 37 * + + 96 * - - COUNT ( * ) + - 10 * + COUNT ( DISTINCT - 49 ) END + - - 27 AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( ( - + 81 ), - + COALESCE ( + 91, 35 ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT DISTINCT MIN( 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT MIN ( 85 ) AS col0
----
85

query II rowsort
SELECT DISTINCT + - 16 * 85 + - 14 + - + 80 - ( 7 ), + 57 + NULLIF ( 36, + - 94 ) * - 51 AS col1
----
-1461
-1779

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT 7 * + - COUNT( * ) + - 67 - - 69 - - 41
----
36

skipif mysql # not compatible
query I rowsort label-8814
SELECT 7 * + - COUNT ( * ) + - 67 - - 69 - - 41
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8815
SELECT - - ( - 9 ) * - - 23 * + 47 + + 34 + - 87 * + 41 + CAST( NULL AS SIGNED ) * + 88 / 44 * + SUM( DISTINCT 74 ) * + + 41 * 51 + - + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT - - ( - 9 ) * - - 23 * + 47 + + 34 + - 87 * + 41 + CAST ( NULL AS INTEGER ) * + 88 / 44 * + SUM ( DISTINCT 74 ) * + + 41 * 51 + - + 65 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8816
SELECT 99 DIV 24
----
4

skipif mysql # not compatible
query I rowsort label-8816
SELECT 99 / 24
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT 86 * - + 4 * + - COUNT( * ) + - 80 + + 31 + 10 + - - 86 * - 71 * - + 71 - COUNT( * ) * NULLIF ( - 84, + - 10 * + 1 + - COUNT( ALL - 55 ) + + 29 - + - COALESCE ( 70, - 70 / + CASE + 73 WHEN 45 + + COUNT( * ) THEN + 55 * - COUNT( + + 12 ) WHEN - - 55 / 15 * - + 59 * - 46 THEN ( - 55 ) + - COUNT( * ) WHEN 61 * - 2 - 68 THEN + 75 ELSE NULL END + 63 * - 29 - - 65 ) ) * 22 * - 96
----
256423

skipif mysql # not compatible
query I rowsort label-8817
SELECT 86 * - + 4 * + - COUNT ( * ) + - 80 + + 31 + 10 + - - 86 * - 71 * - + 71 - COUNT ( * ) * NULLIF ( - 84, + - 10 * + 1 + - COUNT ( ALL - 55 ) + + 29 - + - COALESCE ( 70, - 70 / + CASE + 73 WHEN 45 + + COUNT ( * ) THEN + 55 * - COUNT ( + + 12 ) WHEN - - 55 / 15 * - + 59 * - 46 THEN ( - 55 ) + - COUNT ( * ) WHEN 61 * - 2 - 68 THEN + 75 ELSE NULL END + 63 * - 29 - - 65 ) ) * 22 * - 96
----
256423

query I rowsort
SELECT DISTINCT 8 * 66
----
528

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

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

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

query I rowsort
SELECT DISTINCT - 28 * - - 59 AS col1
----
-1652

onlyif mysql # DIV for integer division: 
query I rowsort label-8822
SELECT 63 DIV 41 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8822
SELECT 63 / 41 AS col1
----
1

query I rowsort
SELECT 44 * - 61
----
-2684

onlyif mysql # DIV for integer division: 
query I rowsort label-8824
SELECT DISTINCT + 66 + + 83 DIV - 66
----
65

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT + 66 + + 83 / - 66
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL - 11 + 21 * SUM( ALL - + 50 ) * + - 2 AS col1
----
2089

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL - 11 + 21 * SUM ( ALL - + 50 ) * + - 2 AS col1
----
2089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8826
SELECT CASE 26 WHEN + + 40 THEN AVG ( DISTINCT - 36 ) + + + 38 WHEN 36 THEN NULL END * + COUNT( * ) - CAST( COUNT( - - 88 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT CASE 26 WHEN + + 40 THEN AVG ( DISTINCT - 36 ) + + + 38 WHEN 36 THEN NULL END * + COUNT ( * ) - CAST ( COUNT ( - - 88 ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8827
SELECT ALL + CASE - + 62 WHEN COUNT( * ) THEN + 28 END + 4 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL + CASE - + 62 WHEN COUNT ( * ) THEN + 28 END + 4 / - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 69 * - - 44
----
3036

query I rowsort
SELECT ALL + 12 + ( - 80 ) - - - 27 AS col0
----
-95

query I rowsort
SELECT 88 * 19
----
1672

query I rowsort
SELECT 59 + 87 AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT 83 + - MAX( DISTINCT - 89 )
----
172

skipif mysql # not compatible
query I rowsort label-8832
SELECT 83 + - MAX ( DISTINCT - 89 )
----
172

query I rowsort
SELECT 27 - + 83
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8834
SELECT ALL SUM( CAST( 2 AS SIGNED ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL SUM ( CAST ( 2 AS INTEGER ) ) AS col0
----
2

query I rowsort
SELECT - 98 + - + 80
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT SUM( - 17 ) * + - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-8836
SELECT SUM ( - 17 ) * + - COUNT ( * )
----
17

query II rowsort
SELECT 76 + + + 92 AS col1, 85
----
168
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT - - NULLIF ( 54, - COUNT( * ) / 8 - + 15 * - 89 )
----
54

skipif mysql # not compatible
query I rowsort label-8838
SELECT - - NULLIF ( 54, - COUNT ( * ) / 8 - + 15 * - 89 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8839
SELECT ALL + ( + 14 ) AS col2, + CAST( NULL AS SIGNED )
----
14
NULL

skipif mysql # not compatible
query II rowsort label-8839
SELECT ALL + ( + 14 ) AS col2, + CAST ( NULL AS INTEGER )
----
14
NULL

query I rowsort
SELECT 52 + 97 AS col1
----
149

query I rowsort
SELECT ALL 74 * - 0 + 3 * + + 5 * - + 53
----
-795

query I rowsort
SELECT ALL 31 * 73 * - + 65 AS col0
----
-147095

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT - 1 + + + 90, COUNT( * ) * - 89 col1
----
89
-89

skipif mysql # not compatible
query II rowsort label-8843
SELECT - 1 + + + 90, COUNT ( * ) * - 89 col1
----
89
-89

query I rowsort
SELECT - 84 * 40
----
-3360

onlyif mysql # aggregate syntax: 
query II rowsort label-8845
SELECT ALL 54 * + 18 * - COUNT( * ), 82 col1
----
-972
82

skipif mysql # not compatible
query II rowsort label-8845
SELECT ALL 54 * + 18 * - COUNT ( * ), 82 col1
----
-972
82

query I rowsort
SELECT - - CASE - - 93 WHEN + 18 THEN NULL WHEN + 57 THEN NULL ELSE + - 85 END AS col2
----
-85

query II rowsort
SELECT DISTINCT - 76, - 11 AS col1
----
-76
-11

query II rowsort
SELECT ALL - 83, 11 AS col0
----
-83
11

query I rowsort
SELECT 54 * - ( 71 ) AS col0
----
-3834

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT SUM( NULLIF ( + + 19, + 63 ) )
----
19

skipif mysql # not compatible
query I rowsort label-8850
SELECT SUM ( NULLIF ( + + 19, + 63 ) )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8851
SELECT - 53 DIV + 66 + 77 AS col1, - COUNT( * ) * - + CASE - + CAST( - MAX( + - 33 ) AS SIGNED ) WHEN - - MIN( + 19 ) THEN NULL WHEN + 25 THEN + 50 ELSE NULL END col1
----
77
NULL

skipif mysql # not compatible
query II rowsort label-8851
SELECT - 53 / + 66 + 77 AS col1, - COUNT ( * ) * - + CASE - + CAST ( - MAX ( + - 33 ) AS INTEGER ) WHEN - - MIN ( + 19 ) THEN NULL WHEN + 25 THEN + 50 ELSE NULL END col1
----
77
NULL

query I rowsort
SELECT + 65 * COALESCE ( 97, - 26 ) - + 99
----
6206

onlyif mysql # aggregate syntax: 
query II rowsort label-8853
SELECT ALL - 52 * - 26 * - 75 AS col0, - 68 - + ( - COUNT( ALL - 94 ) ) AS col0
----
-101400
-67

skipif mysql # not compatible
query II rowsort label-8853
SELECT ALL - 52 * - 26 * - 75 AS col0, - 68 - + ( - COUNT ( ALL - 94 ) ) AS col0
----
-101400
-67

query I rowsort
SELECT 44 + + + 18 AS col2
----
62

query I rowsort
SELECT 79 * - ( 77 ) * + 56 AS col0
----
-340648

query I rowsort
SELECT ALL ( - + 76 ) * + 54 + + - 74 col2
----
-4178

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

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

query I rowsort
SELECT DISTINCT 88 + - 61 + - - 34
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-8859
SELECT ALL + 80 + MIN( - + 90 ) AS col0, - 12
----
-10
-12

skipif mysql # not compatible
query II rowsort label-8859
SELECT ALL + 80 + MIN ( - + 90 ) AS col0, - 12
----
-10
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8860
SELECT - COALESCE ( + + 9, 52 DIV - CASE - 83 WHEN - 32 DIV + CAST( + 21 AS SIGNED ) THEN - 33 DIV + 66 * + + 96 WHEN - - MAX( + 18 ) THEN 79 + COUNT( * ) + COUNT( * ) END, + - 4 * - 94 + - - 97 + + - 15 * - ( + COUNT( * ) ) DIV 85 * MIN( ALL + 41 ) * - - 72 ) + - NULLIF ( - 18, - + 59 ) + NULLIF ( 80, + - ( + 20 ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8860
SELECT - COALESCE ( + + 9, 52 / - CASE - 83 WHEN - 32 / + CAST ( + 21 AS INTEGER ) THEN - 33 / + 66 * + + 96 WHEN - - MAX ( + 18 ) THEN 79 + COUNT ( * ) + COUNT ( * ) END, + - 4 * - 94 + - - 97 + + - 15 * - ( + COUNT ( * ) ) / 85 * MIN ( ALL + 41 ) * - - 72 ) + - NULLIF ( - 18, - + 59 ) + NULLIF ( 80, + - ( + 20 ) ) AS col1
----
89

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

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

query I rowsort
SELECT - NULLIF ( + + ( + + NULLIF ( - + 58, + 2 - - 6 ) ), 77 ) * - - 55 * - ( 57 )
----
-181830

onlyif mysql # DIV for integer division: 
query I rowsort label-8863
SELECT DISTINCT + 7 DIV + 11
----
0

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT + 7 / + 11
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8864
SELECT - 5 * 36 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT - 5 * 36 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8865
SELECT DISTINCT 46 AS col1, 11 DIV 95 * - ( + 54 ) + + 15 * 53 * + 68 col0
----
46
54060

skipif mysql # not compatible
query II rowsort label-8865
SELECT DISTINCT 46 AS col1, 11 / 95 * - ( + 54 ) + + 15 * 53 * + 68 col0
----
46
54060

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

query I rowsort
SELECT ALL - 94 - - ( - 48 ) AS col1
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8868
SELECT - 5 * + - CAST( - + 60 AS SIGNED ) DIV - COUNT( * ) AS col0
----
300

skipif mysql # not compatible
query I rowsort label-8868
SELECT - 5 * + - CAST ( - + 60 AS INTEGER ) / - COUNT ( * ) AS col0
----
300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8869
SELECT ALL - 18 col0, - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-8869
SELECT ALL - 18 col0, - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
-18
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT DISTINCT - - CASE - 19 WHEN COUNT( * ) THEN - + 14 WHEN - + 55 - - 50 THEN NULL ELSE 86 END * + - 31 + - COUNT( * ) AS col0
----
-2667

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT - - CASE - 19 WHEN COUNT ( * ) THEN - + 14 WHEN - + 55 - - 50 THEN NULL ELSE 86 END * + - 31 + - COUNT ( * ) AS col0
----
-2667

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT ALL - 33 - + COUNT( * ) - - COUNT( * ) + - + NULLIF ( 89, + + 50 / + AVG ( ALL + 25 ) ) - + 41 * - 89
----
3527

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL - 33 - + COUNT ( * ) - - COUNT ( * ) + - + NULLIF ( 89, + + 50 / + AVG ( ALL + 25 ) ) - + 41 * - 89
----
3527

query I rowsort
SELECT DISTINCT + NULLIF ( - + 29, - 6 ) AS col0
----
-29

query I rowsort
SELECT - 85 - 93
----
-178

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8877
SELECT + 77 * + + 59 + - - ( 11 ) DIV - - 82 col2
----
4543

skipif mysql # not compatible
query I rowsort label-8877
SELECT + 77 * + + 59 + - - ( 11 ) / - - 82 col2
----
4543

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

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL + 17 / 18 + + COUNT ( * ) + + 98 + 0 AS col1
----
99

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

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

query I rowsort
SELECT DISTINCT - 48 + - 13 + + 78
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8881
SELECT DISTINCT + 90 DIV + + 43
----
2

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT + 90 / + + 43
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8882
SELECT + MAX( + ( + 5 ) ) + - CAST( NULL AS SIGNED ) * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT + MAX ( + ( + 5 ) ) + - CAST ( NULL AS INTEGER ) * - 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8883
SELECT ALL - + 2 + COUNT( ALL - CAST( - + 87 AS SIGNED ) ) + - - 38
----
37

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL - + 2 + COUNT ( ALL - CAST ( - + 87 AS INTEGER ) ) + - - 38
----
37

query I rowsort
SELECT ALL + 56 * 14 AS col0
----
784

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

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

query I rowsort
SELECT - 43 * 4 AS col0
----
-172

query I rowsort
SELECT - 19 * - 87 col2
----
1653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8888
SELECT ALL 11 * + - 73 + 32 DIV + 26 * COUNT( * ) AS col0
----
-802

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL 11 * + - 73 + 32 / + 26 * COUNT ( * ) AS col0
----
-802

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL + 0 * - + 99 * COUNT( * ) + + COUNT( * ) - - - 11
----
-10

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL + 0 * - + 99 * COUNT ( * ) + + COUNT ( * ) - - - 11
----
-10

query I rowsort
SELECT ( - - 26 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8891
SELECT ALL 48 * - + 44 + - CASE WHEN NULL NOT IN ( 30, + COALESCE ( - 86, - 20 + 0 ), + + COALESCE ( + - 1, - COUNT( * ) ) / 44, - + COUNT( * ) * - + 66 * - ( + - 35 ), + NULLIF ( - - COALESCE ( + + 95, + 40 + 3 * + + 42, + + 77 ), - + 79 * + 49 ) * + 64 ) THEN 81 END * + 94 + - 60 AS col1, COUNT( * ) - + 47
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-8891
SELECT ALL 48 * - + 44 + - CASE WHEN NULL NOT IN ( 30, + COALESCE ( - 86, - 20 + 0 ), + + COALESCE ( + - 1, - COUNT ( * ) ) / 44, - + COUNT ( * ) * - + 66 * - ( + - 35 ), + NULLIF ( - - COALESCE ( + + 95, + 40 + 3 * + + 42, + + 77 ), - + 79 * + 49 ) * + 64 ) THEN 81 END * + 94 + - 60 AS col1, COUNT ( * ) - + 47
----
NULL
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8892
SELECT DISTINCT ( - - COALESCE ( - - 78, 84 * + 41 ) ) * 94 + - + 72 - + 42 + - 83 - + + 90 * - CAST( NULL AS SIGNED ) / + 78 * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT ( - - COALESCE ( - - 78, 84 * + 41 ) ) * 94 + - + 72 - + 42 + - 83 - + + 90 * - CAST ( NULL AS INTEGER ) / + 78 * - 75
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT + ( 54 ) - + 55 DIV - + ( + + 45 ) + + + 8 col0
----
63

skipif mysql # not compatible
query I rowsort label-8895
SELECT + ( 54 ) - + 55 / - + ( + + 45 ) + + + 8 col0
----
63

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

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

query I rowsort
SELECT COALESCE ( - ( - 2 ), + + 38, + 34 ) AS col1
----
2

query I rowsort
SELECT + ( + + 3 )
----
3

query I rowsort
SELECT NULLIF ( 39, - 44 )
----
39

query II rowsort
SELECT + ( 2 ), 57 AS col2
----
2
57

query I rowsort
SELECT DISTINCT - 95 * 57 + - 63 AS col0
----
-5478

query I rowsort
SELECT - + 76 * - 95 * + + 36 - 16 + - 72 - + 87 * - + ( 97 )
----
268271

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT ALL + + 92 DIV 36
----
2

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL + + 92 / 36
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8904
SELECT + - 7 + - CASE COUNT( * ) WHEN + - 97 * + - 48 * 72 * + 11 * + 33 + - - 9 + + + 64 THEN - 99 DIV 21 + + 39 ELSE + MAX( ALL + 57 ) END * - - 52 AS col2
----
-2971

skipif mysql # not compatible
query I rowsort label-8904
SELECT + - 7 + - CASE COUNT ( * ) WHEN + - 97 * + - 48 * 72 * + 11 * + 33 + - - 9 + + + 64 THEN - 99 / 21 + + 39 ELSE + MAX ( ALL + 57 ) END * - - 52 AS col2
----
-2971

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT - - COUNT( * ) - + + 79 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8905
SELECT - - COUNT ( * ) - + + 79 AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8906
SELECT - + ( + COUNT( * ) ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT - + ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8907
SELECT - CAST( NULL AS SIGNED ) * + + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8907
SELECT - CAST ( NULL AS INTEGER ) * + + 42 AS col2
----
NULL

query I rowsort
SELECT ALL 80 + - + 85 - - - 91 * - + 1 AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + 59 * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + 59 * 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT - - 50 + + ( + + COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT - - 50 + + ( + + COUNT ( * ) )
----
51

query I rowsort
SELECT ALL + - 88 * - 65 + 53 - + 70 col0
----
5703

query I rowsort
SELECT - - 50 * + + 76
----
3800

query I rowsort
SELECT - 46 + + 3 AS col2
----
-43

query I rowsort
SELECT ALL - 86 + + 19 col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT DISTINCT + + 37 * - - 11 * - 96 + - COUNT( DISTINCT - 42 ) AS col2
----
-39073

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT + + 37 * - - 11 * - 96 + - COUNT ( DISTINCT - 42 ) AS col2
----
-39073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8916
SELECT ALL - - 75 + - - ( - CAST( COUNT( * ) AS SIGNED ) ), - 63 AS col2
----
74
-63

skipif mysql # not compatible
query II rowsort label-8916
SELECT ALL - - 75 + - - ( - CAST ( COUNT ( * ) AS INTEGER ) ), - 63 AS col2
----
74
-63

query I rowsort
SELECT - 20 * + 66 AS col0
----
-1320

query I rowsort
SELECT DISTINCT - 79 + 25
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8919
SELECT DISTINCT ( MAX( DISTINCT - CAST( + - 72 AS SIGNED ) ) )
----
72

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT ( MAX ( DISTINCT - CAST ( + - 72 AS INTEGER ) ) )
----
72

query I rowsort
SELECT ALL ( - 77 ) col2
----
-77

query I rowsort
SELECT ALL - 79 + - 8
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8922
SELECT ALL + 25 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL + 25 / 48
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8923
SELECT 54 AS col1, - COUNT( * ) * - + 27 * 34
----
54
918

skipif mysql # not compatible
query II rowsort label-8923
SELECT 54 AS col1, - COUNT ( * ) * - + 27 * 34
----
54
918

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT + 7 * - COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT + 7 * - COUNT ( * ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT MAX( ALL + - 27 ) - + + 82 * + - 88 AS col2
----
7189

skipif mysql # not compatible
query I rowsort label-8925
SELECT MAX ( ALL + - 27 ) - + + 82 * + - 88 AS col2
----
7189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8926
SELECT ALL COUNT( * ) * + CAST( - - 31 AS SIGNED ) col2
----
31

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL COUNT ( * ) * + CAST ( - - 31 AS INTEGER ) col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8927
SELECT 78 + - 67 DIV + 80 col0
----
78

skipif mysql # not compatible
query I rowsort label-8927
SELECT 78 + - 67 / + 80 col0
----
78

query I rowsort
SELECT ALL 94 - - + 89
----
183

query I rowsort
SELECT DISTINCT + 44 * + - 44
----
-1936

query I rowsort
SELECT DISTINCT + 35 * - 94 * + 75 AS col1
----
-246750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8931
SELECT DISTINCT - - ( + CAST( - 47 AS SIGNED ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT - - ( + CAST ( - 47 AS INTEGER ) ) AS col1
----
-47

query I rowsort
SELECT + 1 + - 7 * + 7
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT + 45 * + COUNT( * ) + - + 73 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-8933
SELECT + 45 * + COUNT ( * ) + - + 73 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT ( - - 94 ) + + + MAX( ALL - 19 ) + - 10 + + COUNT( * ) * COUNT( ALL - 18 ) * ( - 11 ) * - COUNT( * ) + + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-8934
SELECT ( - - 94 ) + + + MAX ( ALL - 19 ) + - 10 + + COUNT ( * ) * COUNT ( ALL - 18 ) * ( - 11 ) * - COUNT ( * ) + + COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT + + MAX( + 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8935
SELECT + + MAX ( + 82 ) AS col1
----
82

query I rowsort
SELECT DISTINCT + 84 * - + 96 col0
----
-8064

query I rowsort
SELECT 30 * + - 85 * + 90 + 94 AS col2
----
-229406

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT DISTINCT + 23 + + 9 DIV - + 94
----
23

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT + 23 + + 9 / - + 94
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT + 17 * + + MIN( DISTINCT - + 37 )
----
-629

skipif mysql # not compatible
query I rowsort label-8939
SELECT + 17 * + + MIN ( DISTINCT - + 37 )
----
-629

query I rowsort
SELECT DISTINCT + + NULLIF ( + 49, NULLIF ( + 85, 11 - - 79 ) ) + + - 36 AS col2
----
13

query II rowsort
SELECT 91, + 10 - + 71 - 20 AS col2
----
91
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT ALL COUNT( * ) + - + 0 * 48
----
1

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL COUNT ( * ) + - + 0 * 48
----
1

query I rowsort
SELECT ALL + 40 + + + 65 AS col2
----
105

query I rowsort
SELECT + 83 - + 91
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-8945
SELECT - 92 DIV 83
----
-1

skipif mysql # not compatible
query I rowsort label-8945
SELECT - 92 / 83
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT ALL - 93 * + ( 20 ) * - COUNT( * ) * - + 64 AS col0
----
-119040

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL - 93 * + ( 20 ) * - COUNT ( * ) * - + 64 AS col0
----
-119040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8947
SELECT DISTINCT ( - 14 ) + COUNT( * ) + - NULLIF ( + 9, - ( + + 30 ) + - 50 + - + 45 + - CAST( 6 AS SIGNED ) ) + - + 83 * - + 29 * - 70 - + 46
----
-168558

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT ( - 14 ) + COUNT ( * ) + - NULLIF ( + 9, - ( + + 30 ) + - 50 + - + 45 + - CAST ( 6 AS INTEGER ) ) + - + 83 * - + 29 * - 70 - + 46
----
-168558

query I rowsort
SELECT DISTINCT 96 + - 81 AS col2
----
15

query I rowsort
SELECT 69 + NULLIF ( - 78, + 41 * + - 43 + + NULLIF ( + AVG ( ALL NULLIF ( + 28, 67 ) ), + - 40 ) ) * - 55 AS col0
----
4359

query I rowsort
SELECT DISTINCT + 48 - - 72 AS col1
----
120

query II rowsort
SELECT ALL 27, 16 AS col2
----
27
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8952
SELECT DISTINCT + 39 * ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT + 39 * ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT DISTINCT - 48 - + - 58 + + + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT - 48 - + - 58 + + + COUNT ( * )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8954
SELECT CAST( - COUNT( * ) AS SIGNED ) * 74 * + CASE - 89 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + 75 + - SUM( ALL + 0 ) THEN - + NULLIF ( 30, + ( - 28 ) + - ( 96 ) ) * + ( - CAST( - + ( - ( 96 ) ) AS SIGNED ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8954
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * 74 * + CASE - 89 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 75 + - SUM ( ALL + 0 ) THEN - + NULLIF ( 30, + ( - 28 ) + - ( 96 ) ) * + ( - CAST ( - + ( - ( 96 ) ) AS INTEGER ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL + 21 * - 92
----
-1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT DISTINCT - 66 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT - 66 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8957
SELECT COALESCE ( - + 40, - 54 * - + 20 ) DIV - - 86 * + + COUNT( + 98 ) + + 50
----
50

skipif mysql # not compatible
query I rowsort label-8957
SELECT COALESCE ( - + 40, - 54 * - + 20 ) / - - 86 * + + COUNT ( + 98 ) + + 50
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8958
SELECT COUNT( * ), MAX( CAST( NULL AS SIGNED ) ) * - 56 / CAST( NULL AS SIGNED ) - + 62 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8958
SELECT COUNT ( * ), MAX ( CAST ( NULL AS INTEGER ) ) * - 56 / CAST ( NULL AS INTEGER ) - + 62 AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8959
SELECT + 39 AS col1, + 67 + + + 29 + - + COUNT( * )
----
39
95

skipif mysql # not compatible
query II rowsort label-8959
SELECT + 39 AS col1, + 67 + + + 29 + - + COUNT ( * )
----
39
95

query I rowsort
SELECT 4 + - ( 12 )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8961
SELECT DISTINCT - 48 - - NULLIF ( - - 36, - 16 - + 81 + + + 63 ) + 47 + 65 DIV - 79 * - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT - 48 - - NULLIF ( - - 36, - 16 - + 81 + + + 63 ) + 47 + 65 / - 79 * - COUNT ( * )
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8962
SELECT ALL - CAST( NULL AS DECIMAL ), - 83 AS col1
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-8962
SELECT ALL - CAST ( NULL AS REAL ), - 83 AS col1
----
NULL
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT - 52 * - COUNT( * ) * COUNT( * ) * - 69 + + + 0 + - 3 AS col0
----
-3591

skipif mysql # not compatible
query I rowsort label-8963
SELECT - 52 * - COUNT ( * ) * COUNT ( * ) * - 69 + + + 0 + - 3 AS col0
----
-3591

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8964
SELECT COUNT( * ) col2, + 68 + COUNT( * ) DIV + 10
----
1
68

skipif mysql # not compatible
query II rowsort label-8964
SELECT COUNT ( * ) col2, + 68 + COUNT ( * ) / + 10
----
1
68

query I rowsort
SELECT 97 * - 6
----
-582

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8966
SELECT ALL - 39 AS col1, MIN( DISTINCT 71 ) DIV - + COUNT( * ) * + COUNT( * )
----
-39
-71

skipif mysql # not compatible
query II rowsort label-8966
SELECT ALL - 39 AS col1, MIN ( DISTINCT 71 ) / - + COUNT ( * ) * + COUNT ( * )
----
-39
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL - NULLIF ( - 67, - 16 - + ( - COUNT( * ) ) * 70 * - CASE - 33 WHEN 85 THEN NULL ELSE + 96 END )
----
67

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL - NULLIF ( - 67, - 16 - + ( - COUNT ( * ) ) * 70 * - CASE - 33 WHEN 85 THEN NULL ELSE + 96 END )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8968
SELECT DISTINCT - MAX( ALL + - 31 ) DIV 73 + - - 52 - + COUNT( * ) - + CAST( + 66 AS SIGNED ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT - MAX ( ALL + - 31 ) / 73 + - - 52 - + COUNT ( * ) - + CAST ( + 66 AS INTEGER ) AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8969
SELECT + - 65 DIV + 21 - + - 17
----
14

skipif mysql # not compatible
query I rowsort label-8969
SELECT + - 65 / + 21 - + - 17
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-8970
SELECT 75 DIV + 13 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8970
SELECT 75 / + 13 AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8971
SELECT ALL - + COUNT( * ) * 83 * 9 + 69 DIV - + 15
----
-751

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL - + COUNT ( * ) * 83 * 9 + 69 / - + 15
----
-751

query I rowsort
SELECT 6 - + 67
----
-61

query II rowsort
SELECT + + 52 AS col1, - 92
----
52
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT ALL - COUNT( - 45 ) * + 38
----
-38

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL - COUNT ( - 45 ) * + 38
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8975
SELECT - ( + COUNT( * ) ) DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-8975
SELECT - ( + COUNT ( * ) ) / + 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT + COUNT( * ) * - 56 + + 77 + + 40 + + 14 * - - 82
----
1209

skipif mysql # not compatible
query I rowsort label-8976
SELECT + COUNT ( * ) * - 56 + + 77 + + 40 + + 14 * - - 82
----
1209

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8977
SELECT + + CAST( NULL AS DECIMAL ) AS col2, ( + 89 )
----
NULL
89

skipif mysql # not compatible
query II rowsort label-8977
SELECT + + CAST ( NULL AS REAL ) AS col2, ( + 89 )
----
NULL
89

query I rowsort
SELECT 45 * - + 53 * 38 col2
----
-90630

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT DISTINCT - 52 + - - COUNT( * ) + - 25 + - 66
----
-142

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT - 52 + - - COUNT ( * ) + - 25 + - 66
----
-142

query I rowsort
SELECT ALL + 30 + + 67
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8981
SELECT ALL - NULLIF ( - 92, + + 88 - + 39 ) + 38 + + COUNT( * ) col1, - 80 * + 44 * 82
----
131
-288640

skipif mysql # not compatible
query II rowsort label-8981
SELECT ALL - NULLIF ( - 92, + + 88 - + 39 ) + 38 + + COUNT ( * ) col1, - 80 * + 44 * 82
----
131
-288640

query II rowsort
SELECT - 83 AS col0, 21
----
-83
21

query II rowsort
SELECT ALL 94, + 29 + 88 - 61 AS col2
----
94
56

query I rowsort
SELECT ALL 98 + - ( 87 ) AS col0
----
11

query I rowsort
SELECT - 68 + + 26 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT - COUNT( - + 84 ) + + 67
----
66

skipif mysql # not compatible
query I rowsort label-8986
SELECT - COUNT ( - + 84 ) + + 67
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8987
SELECT - CAST( - - ( - 76 ) AS SIGNED ) - 82 + 64 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8987
SELECT - CAST ( - - ( - 76 ) AS INTEGER ) - 82 + 64 AS col0
----
58

query I rowsort
SELECT ALL + 78 * - 71 * - 70 col0
----
387660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8989
SELECT CAST( 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-8989
SELECT CAST ( 63 AS INTEGER )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8990
SELECT - + 37 AS col1, - COUNT( * ) DIV + 18
----
-37
0

skipif mysql # not compatible
query II rowsort label-8990
SELECT - + 37 AS col1, - COUNT ( * ) / + 18
----
-37
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8991
SELECT - MIN( ALL - 44 ), + 18 DIV - 73 AS col2
----
44
0

skipif mysql # not compatible
query II rowsort label-8991
SELECT - MIN ( ALL - 44 ), + 18 / - 73 AS col2
----
44
0

query I rowsort
SELECT ALL 55 * 66
----
3630

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8993
SELECT - COALESCE ( COUNT( ALL - - 46 ), - - 33 + - MAX( + - 99 ) * COUNT( * ), + - SUM( + 89 ) * + 41 - + - MIN( ALL 66 ) ) AS col1, - 13 DIV 62 + - - 64
----
-1
64

skipif mysql # not compatible
query II rowsort label-8993
SELECT - COALESCE ( COUNT ( ALL - - 46 ), - - 33 + - MAX ( + - 99 ) * COUNT ( * ), + - SUM ( + 89 ) * + 41 - + - MIN ( ALL 66 ) ) AS col1, - 13 / 62 + - - 64
----
-1
64

query I rowsort
SELECT DISTINCT 90 * + 7
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT + 1 + MIN( - 13 )
----
-12

skipif mysql # not compatible
query I rowsort label-8995
SELECT + 1 + MIN ( - 13 )
----
-12

query I rowsort
SELECT + 13 * - + 62 * - 98 * + 82 AS col0
----
6477016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8997
SELECT - 19 * 52 * - CAST( - + ( - 87 ) AS SIGNED ) AS col0
----
85956

skipif mysql # not compatible
query I rowsort label-8997
SELECT - 19 * 52 * - CAST ( - + ( - 87 ) AS INTEGER ) AS col0
----
85956

query I rowsort
SELECT + 30 + + 63 + - 2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT + CASE + 47 WHEN + - 99 * + 60 + + - SUM( - 74 ) * - 97 + + + 36 THEN NULL WHEN - 95 + 30 THEN + MIN( ALL + 96 ) * + ( ( 32 ) ) * + 28 + 3 / - 93 ELSE NULL END * - + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT + CASE + 47 WHEN + - 99 * + 60 + + - SUM ( - 74 ) * - 97 + + + 36 THEN NULL WHEN - 95 + 30 THEN + MIN ( ALL + 96 ) * + ( ( 32 ) ) * + 28 + 3 / - 93 ELSE NULL END * - + 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT - COALESCE ( + 9, 85 * + + ( - + COUNT( * ) ) + - - 50 + 73 * + - 83, + 65 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9000
SELECT - COALESCE ( + 9, 85 * + + ( - + COUNT ( * ) ) + - - 50 + 73 * + - 83, + 65 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT - 71 + - COUNT( * ) * - 1
----
-70

skipif mysql # not compatible
query I rowsort label-9001
SELECT - 71 + - COUNT ( * ) * - 1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9002
SELECT ALL - MIN( ALL 94 ) DIV - 1
----
94

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL - MIN ( ALL 94 ) / - 1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9003
SELECT + CAST( - COUNT( * ) AS SIGNED ) * + + 14 + + 74
----
60

skipif mysql # not compatible
query I rowsort label-9003
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * + + 14 + + 74
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9004
SELECT ALL MIN( DISTINCT CAST( 95 AS SIGNED ) ) col0
----
95

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL MIN ( DISTINCT CAST ( 95 AS INTEGER ) ) col0
----
95

query II rowsort
SELECT ( + 53 ) AS col2, ( - 13 )
----
53
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9006
SELECT 90 / MIN( ALL - + 28 ) + - CASE 1 WHEN + CAST( NULL AS SIGNED ) THEN CAST( + 55 AS DECIMAL ) END / - 44 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT 90 / MIN ( ALL - + 28 ) + - CASE 1 WHEN + CAST ( NULL AS INTEGER ) THEN CAST ( + 55 AS REAL ) END / - 44 col1
----
NULL

query I rowsort
SELECT - 29 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL - 90 * ( - + COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL - 90 * ( - + COUNT ( * ) )
----
90

query I rowsort
SELECT ALL - 9 * 20 * 77 + - 0
----
-13860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9010
SELECT + - COUNT( * ) DIV - COUNT( * ) + 88 + - 58 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9010
SELECT + - COUNT ( * ) / - COUNT ( * ) + 88 + - 58 AS col2
----
31

query I rowsort
SELECT - ( + 34 ) * 19 - - - ( + - 12 ) AS col2
----
-634

query I rowsort
SELECT + 56 * 68 - + + 25 AS col1
----
3783

query I rowsort
SELECT - - 89 * - 74 + 48 + + 42
----
-6496

query II rowsort
SELECT DISTINCT - 96 * + 67 + - 99 col1, 96 AS col1
----
-6531
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL + 68 * + MIN( ALL + 36 ) + - - 5 col2
----
2453

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL + 68 * + MIN ( ALL + 36 ) + - - 5 col2
----
2453

onlyif mysql # aggregate syntax: 
query II rowsort label-9016
SELECT COUNT( * ) * - CASE - COUNT( * ) WHEN - COALESCE ( + CASE + NULLIF ( - CASE 77 WHEN + + COUNT( * ) THEN + CASE + 42 WHEN - 67 THEN - - 24 END END, ( - 25 ) ) WHEN - 51 THEN + ( + 0 ) ELSE NULL END, - 84 + - 97 / 61, + - 40 * - - 64 + - MAX( - 76 ) ) THEN - - 6 ELSE NULL END + 92 AS col2, + 62 AS col1
----
NULL
62

skipif mysql # not compatible
query II rowsort label-9016
SELECT COUNT ( * ) * - CASE - COUNT ( * ) WHEN - COALESCE ( + CASE + NULLIF ( - CASE 77 WHEN + + COUNT ( * ) THEN + CASE + 42 WHEN - 67 THEN - - 24 END END, ( - 25 ) ) WHEN - 51 THEN + ( + 0 ) ELSE NULL END, - 84 + - 97 / 61, + - 40 * - - 64 + - MAX ( - 76 ) ) THEN - - 6 ELSE NULL END + 92 AS col2, + 62 AS col1
----
NULL
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT - + COUNT( * ) * - 41 * - 76 + + COUNT( DISTINCT - + ( - 91 ) ) AS col2
----
-3115

skipif mysql # not compatible
query I rowsort label-9017
SELECT - + COUNT ( * ) * - 41 * - 76 + + COUNT ( DISTINCT - + ( - 91 ) ) AS col2
----
-3115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9018
SELECT ALL + - ( + ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL + - ( + ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9019
SELECT - 99 + + 23 DIV - 26
----
-99

skipif mysql # not compatible
query I rowsort label-9019
SELECT - 99 + + 23 / - 26
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9020
SELECT ALL - + COUNT( * ) * CAST( NULL AS SIGNED ) + 87 + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL - + COUNT ( * ) * CAST ( NULL AS INTEGER ) + 87 + 75
----
NULL

query I rowsort
SELECT - 38 * + + 79 * + 13 AS col2
----
-39026

query I rowsort
SELECT + - 88 * + + 98 + 20 + + + 28 + + 81
----
-8495

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT - - 18 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-9023
SELECT - - 18 / + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT 13 * - - COUNT( * ) + 73 - - - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-9024
SELECT 13 * - - COUNT ( * ) + 73 - - - COUNT ( * )
----
85

query I rowsort
SELECT ALL - - 81 * - 14
----
-1134

query I rowsort
SELECT ALL + 2 * - 71 * - 35 - 81
----
4889

onlyif mysql # DIV for integer division: 
query I rowsort label-9027
SELECT - 1 DIV + - 75 - 55 + - 17 * + - NULLIF ( + 89, + - 98 ) * + ( - + 40 )
----
-60575

skipif mysql # not compatible
query I rowsort label-9027
SELECT - 1 / + - 75 - 55 + - 17 * + - NULLIF ( + 89, + - 98 ) * + ( - + 40 )
----
-60575

query I rowsort
SELECT DISTINCT - 38 * + - 89
----
3382

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT - COALESCE ( ( + + 51 ), 85, + COALESCE ( + 92, + 58 ) * - NULLIF ( + 11, + 4 * - ( - 70 ) ) * NULLIF ( + 20, 15 * + 57 + + 53 - + 62 + 35 * - - COUNT( * ) / + 93 * 81 ) ) col2
----
-51

skipif mysql # not compatible
query I rowsort label-9029
SELECT - COALESCE ( ( + + 51 ), 85, + COALESCE ( + 92, + 58 ) * - NULLIF ( + 11, + 4 * - ( - 70 ) ) * NULLIF ( + 20, 15 * + 57 + + 53 - + 62 + 35 * - - COUNT ( * ) / + 93 * 81 ) ) col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT - COALESCE ( NULLIF ( - + 75, - COUNT( ALL - 40 ) ), - + 90 )
----
75

skipif mysql # not compatible
query I rowsort label-9030
SELECT - COALESCE ( NULLIF ( - + 75, - COUNT ( ALL - 40 ) ), - + 90 )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9031
SELECT 35 AS col0, 43 * - COUNT( * ) AS col1
----
35
-43

skipif mysql # not compatible
query II rowsort label-9031
SELECT 35 AS col0, 43 * - COUNT ( * ) AS col1
----
35
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9032
SELECT - COUNT( * ) AS col2, - COUNT( * ) DIV + 85 * 18 - - - 69
----
-1
-69

skipif mysql # not compatible
query II rowsort label-9032
SELECT - COUNT ( * ) AS col2, - COUNT ( * ) / + 85 * 18 - - - 69
----
-1
-69

query I rowsort
SELECT - ( + - 36 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT + 89 + 19 + COUNT( * ) * - 85 * + + 73
----
-6097

skipif mysql # not compatible
query I rowsort label-9034
SELECT + 89 + 19 + COUNT ( * ) * - 85 * + + 73
----
-6097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9035
SELECT ALL CAST( NULL AS SIGNED ), 9 * - COUNT( * ) AS col0
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-9035
SELECT ALL CAST ( NULL AS INTEGER ), 9 * - COUNT ( * ) AS col0
----
NULL
-9

query I rowsort
SELECT ALL 71 * - 4
----
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL SUM( - - 15 )
----
15

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL SUM ( - - 15 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT DISTINCT 0 * + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT 0 * + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 12 - + + 81
----
-69

query I rowsort
SELECT ALL COALESCE ( + - 47, ( - 15 ), 92 + + 86 + - 54 )
----
-47

query I rowsort
SELECT + 29 * + 10 * + - 64
----
-18560

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT DISTINCT MIN( - + 75 ) + 86 + + 69
----
80

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT MIN ( - + 75 ) + 86 + + 69
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-9043
SELECT ALL + 16 DIV 15 + 43 AS col2, + ( - + 35 ) AS col1
----
44
-35

skipif mysql # not compatible
query II rowsort label-9043
SELECT ALL + 16 / 15 + 43 AS col2, + ( - + 35 ) AS col1
----
44
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9044
SELECT + 93 DIV + 21 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9044
SELECT + 93 / + 21 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT - - COUNT( * ) + + + 85
----
86

skipif mysql # not compatible
query I rowsort label-9045
SELECT - - COUNT ( * ) + + + 85
----
86

query I rowsort
SELECT + + 49 * - 11
----
-539

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT + 29 * + 72 + - + 62 + 68 + + - 74 DIV + 12
----
2088

skipif mysql # not compatible
query I rowsort label-9047
SELECT + 29 * + 72 + - + 62 + 68 + + - 74 / + 12
----
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT MAX( ALL - 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-9048
SELECT MAX ( ALL - 38 ) AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9049
SELECT ALL + + 81 DIV + 67 + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL + + 81 / + 67 + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT + 56 * - + ( + 52 ) + 29
----
-2883

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9051
SELECT ALL COUNT( * ) DIV - - 43 + 90 + + - 28
----
62

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL COUNT ( * ) / - - 43 + 90 + + - 28
----
62

query I rowsort
SELECT ALL + - ( 79 )
----
-79

query I rowsort
SELECT + + 97 - + + 66
----
31

query II rowsort
SELECT + 95, - 99 AS col1
----
95
-99

query I rowsort
SELECT + - 22 - + + 53 AS col1
----
-75

query I rowsort
SELECT - - 17 * + 7 AS col2
----
119

query I rowsort
SELECT ALL - - 28 * 33 / + + 85 * + + CASE - 58 WHEN - 82 * + 85 + - 57 * + - 98 THEN + 3 * - 58 END
----
NULL

query I rowsort
SELECT - + 13 * + - 65 * + + 95 + - 84 AS col2
----
80191

onlyif mysql # aggregate syntax: 
query II rowsort label-9059
SELECT + + COUNT( * ) col0, - 22 AS col1
----
1
-22

skipif mysql # not compatible
query II rowsort label-9059
SELECT + + COUNT ( * ) col0, - 22 AS col1
----
1
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL COUNT( * ) * + - 68
----
-68

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL COUNT ( * ) * + - 68
----
-68

query I rowsort
SELECT ALL - - 53 - 99 + - 67 AS col0
----
-113

query I rowsort
SELECT ALL 42 * - - 55
----
2310

onlyif mysql # aggregate syntax: 
query II rowsort label-9063
SELECT ALL - 64, COUNT( * ) AS col0
----
-64
1

skipif mysql # not compatible
query II rowsort label-9063
SELECT ALL - 64, COUNT ( * ) AS col0
----
-64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT DISTINCT - + CASE - - 13 WHEN AVG ( DISTINCT 37 ) THEN NULL WHEN + 87 * COUNT( * ) * 30 THEN - 44 ELSE - ( + - 43 ) - 59 END
----
16

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT - + CASE - - 13 WHEN AVG ( DISTINCT 37 ) THEN NULL WHEN + 87 * COUNT ( * ) * 30 THEN - 44 ELSE - ( + - 43 ) - 59 END
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9065
SELECT 79 * COUNT( * ) AS col2, SUM( ALL + - 17 ) * - - COUNT( * ) * - 61 * 24
----
79
24888

skipif mysql # not compatible
query II rowsort label-9065
SELECT 79 * COUNT ( * ) AS col2, SUM ( ALL + - 17 ) * - - COUNT ( * ) * - 61 * 24
----
79
24888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9066
SELECT DISTINCT + 89 / - + CASE - + 96 WHEN - 71 * + 64 * - + 75 THEN + MIN( ALL 86 ) * 26 / - 56 WHEN + 52 * + CAST( + 37 AS SIGNED ) THEN NULL WHEN + 58 + 57 THEN + 73 - 67 + + 66 + - + 55 * - ( + COALESCE ( COUNT( * ), - NULLIF ( + 83, + 85 ) ) ) / - 75 * + 54 * COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT + 89 / - + CASE - + 96 WHEN - 71 * + 64 * - + 75 THEN + MIN ( ALL 86 ) * 26 / - 56 WHEN + 52 * + CAST ( + 37 AS INTEGER ) THEN NULL WHEN + 58 + 57 THEN + 73 - 67 + + 66 + - + 55 * - ( + COALESCE ( COUNT ( * ), - NULLIF ( + 83, + 85 ) ) ) / - 75 * + 54 * COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT 53 + - 90 + - 41
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT 62 + + - SUM( DISTINCT - 15 )
----
77

skipif mysql # not compatible
query I rowsort label-9068
SELECT 62 + + - SUM ( DISTINCT - 15 )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9069
SELECT COUNT( DISTINCT ( - 18 ) ) DIV - 1 col2, - 67 col1
----
-1
-67

skipif mysql # not compatible
query II rowsort label-9069
SELECT COUNT ( DISTINCT ( - 18 ) ) / - 1 col2, - 67 col1
----
-1
-67

query I rowsort
SELECT ALL + 62 * + ( + 8 ) AS col1
----
496

query I rowsort
SELECT 69 * - 71
----
-4899

query I rowsort
SELECT 72 + + - 87 + - 78 + 18 * - 94 col0
----
-1785

query I rowsort
SELECT 7 - + 4 AS col1
----
3

query II rowsort
SELECT 78 * + + 44 AS col2, 65 AS col2
----
3432
65

query I rowsort
SELECT ALL + 71 * - 74 * - 14 AS col0
----
73556

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ALL + 62 * - 57 * + CASE - 90 WHEN + - 32 THEN COUNT( * ) WHEN - 39 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL + 62 * - 57 * + CASE - 90 WHEN + - 32 THEN COUNT ( * ) WHEN - 39 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT 97 + + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9077
SELECT 97 + + COUNT ( * ) AS col1
----
98

query I rowsort
SELECT DISTINCT + 44 + + 23
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9079
SELECT DISTINCT - 90 + + - 51 + + 23 * - COUNT( ALL 67 ) DIV ( 40 ) * 62
----
-141

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT - 90 + + - 51 + + 23 * - COUNT ( ALL 67 ) / ( 40 ) * 62
----
-141

query I rowsort
SELECT 94 + + 55 AS col0
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9081
SELECT COALESCE ( - + 44, - + 67, + - 69 - - CASE + 59 WHEN + 61 * - SUM( 8 ) * + - 54 + + + 22 + - 24 THEN MAX( + 11 ) WHEN 14 THEN + CAST( 14 AS SIGNED ) - 46 END ) + + 17 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9081
SELECT COALESCE ( - + 44, - + 67, + - 69 - - CASE + 59 WHEN + 61 * - SUM ( 8 ) * + - 54 + + + 22 + - 24 THEN MAX ( + 11 ) WHEN 14 THEN + CAST ( 14 AS INTEGER ) - 46 END ) + + 17 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT 81 + - 20 * COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-9082
SELECT 81 + - 20 * COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT - COUNT( * ) * + 45 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-9083
SELECT - COUNT ( * ) * + 45 AS col1
----
-45

query I rowsort
SELECT ALL 15 * ( - - 16 )
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-9085
SELECT + 54 + + - COALESCE ( - 96, + 97 * + 35 DIV + + 34, - 86 )
----
150

skipif mysql # not compatible
query I rowsort label-9085
SELECT + 54 + + - COALESCE ( - 96, + 97 * + 35 / + + 34, - 86 )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT ALL + 6 + + 65 + - + 86 * + COUNT( * ) * - + 89 + + 45
----
7770

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL + 6 + + 65 + - + 86 * + COUNT ( * ) * - + 89 + + 45
----
7770

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT ALL - 32 + + COUNT( ALL 78 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL - 32 + + COUNT ( ALL 78 ) AS col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9088
SELECT - 5 DIV + - COALESCE ( 79, - 57 ) * - + 34 + - 25
----
-25

skipif mysql # not compatible
query I rowsort label-9088
SELECT - 5 / + - COALESCE ( 79, - 57 ) * - + 34 + - 25
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT 53 + COUNT( * ) + - - 99 * - COUNT( * ) + - + 81
----
-126

skipif mysql # not compatible
query I rowsort label-9089
SELECT 53 + COUNT ( * ) + - - 99 * - COUNT ( * ) + - + 81
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-9090
SELECT + 10 DIV 79 - + 8 + - 8 + COALESCE ( 11, 54 + 68 + - 79 + - - NULLIF ( 6, + - ( + 10 ) + - 17 ) * + 22 )
----
-5

skipif mysql # not compatible
query I rowsort label-9090
SELECT + 10 / 79 - + 8 + - 8 + COALESCE ( 11, 54 + 68 + - 79 + - - NULLIF ( 6, + - ( + 10 ) + - 17 ) * + 22 )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9091
SELECT 99 * - COUNT( * ) * + SUM( ALL - 13 ) AS col0, + 38 AS col2
----
1287
38

skipif mysql # not compatible
query II rowsort label-9091
SELECT 99 * - COUNT ( * ) * + SUM ( ALL - 13 ) AS col0, + 38 AS col2
----
1287
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9092
SELECT 30 DIV + + 21
----
1

skipif mysql # not compatible
query I rowsort label-9092
SELECT 30 / + + 21
----
1

query I rowsort
SELECT DISTINCT - + 26 AS col0
----
-26

query II rowsort
SELECT ALL + 41 * + 50, 12 col1
----
2050
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9095
SELECT 22 + + CASE 42 WHEN CAST( + - AVG ( + 80 ) AS SIGNED ) THEN + 37 - - COUNT( * ) WHEN + 5 THEN + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9095
SELECT 22 + + CASE 42 WHEN CAST ( + - AVG ( + 80 ) AS INTEGER ) THEN + 37 - - COUNT ( * ) WHEN + 5 THEN + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + - 51 * + 15
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL + 55 * COUNT( ALL + 74 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL + 55 * COUNT ( ALL + 74 ) AS col2
----
55

query II rowsort
SELECT + ( + 70 ) AS col1, - 99 AS col1
----
70
-99

query I rowsort
SELECT 99 * - 87
----
-8613

query I rowsort
SELECT ALL 26 * - 47 AS col0
----
-1222

query I rowsort
SELECT 98 + 2 * - + 3 AS col0
----
92

query I rowsort
SELECT 94 * - 11 * - 59 + + 7 AS col2
----
61013

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT - 24 * + COUNT( * ) * - - 12 + - + 40
----
-328

skipif mysql # not compatible
query I rowsort label-9103
SELECT - 24 * + COUNT ( * ) * - - 12 + - + 40
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT ( + MIN( + - 45 ) ) * COALESCE ( + 74, - 43 * ( + 63 ) - 68 ) AS col0
----
-3330

skipif mysql # not compatible
query I rowsort label-9104
SELECT ( + MIN ( + - 45 ) ) * COALESCE ( + 74, - 43 * ( + 63 ) - 68 ) AS col0
----
-3330

query II rowsort
SELECT ALL 22 AS col1, 91 AS col0
----
22
91

query I rowsort
SELECT ALL 25 + + 27 + + 24 + - + 98 * - + 26 * + + 69 AS col1
----
175888

query I rowsort
SELECT 4 + - 17 * - 20 AS col2
----
344

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT + 58 + - SUM( ALL - 78 )
----
136

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT + 58 + - SUM ( ALL - 78 )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT 13 + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-9109
SELECT 13 + COUNT ( * )
----
14

query I rowsort
SELECT 16 * + + 37 col2
----
592

query I rowsort
SELECT ALL + COALESCE ( + 6, + 70 ) + + 47 AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9112
SELECT ALL + 31 * NULLIF ( - COUNT( * ), + - 33 * ( - + 37 ) + - 72 - - 34 * - CAST( NULL AS SIGNED ) ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL + 31 * NULLIF ( - COUNT ( * ), + - 33 * ( - + 37 ) + - 72 - - 34 * - CAST ( NULL AS INTEGER ) ) AS col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9113
SELECT 94 DIV 75 DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9113
SELECT 94 / 75 / COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT 97 - - ( - ( - COUNT( * ) ) )
----
98

skipif mysql # not compatible
query I rowsort label-9114
SELECT 97 - - ( - ( - COUNT ( * ) ) )
----
98

query II rowsort
SELECT 6 - + 54 * + + 29 AS col0, 98 + + 57
----
-1560
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL - ( - + COUNT( ALL 5 ) ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL - ( - + COUNT ( ALL 5 ) ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT ALL + COUNT( * ) + - 51 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL + COUNT ( * ) + - 51 AS col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9118
SELECT CASE + + 22 WHEN + 82 THEN 24 * - + 6 + - CAST( NULL AS SIGNED ) END * 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT CASE + + 22 WHEN + 82 THEN 24 * - + 6 + - CAST ( NULL AS INTEGER ) END * 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT DISTINCT - CASE - 29 WHEN ( 56 ) - - 77 THEN - 81 * - COUNT( * ) ELSE + 93 * - + 44 END - COUNT( * )
----
4091

skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT - CASE - 29 WHEN ( 56 ) - - 77 THEN - 81 * - COUNT ( * ) ELSE + 93 * - + 44 END - COUNT ( * )
----
4091

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9120
SELECT + 43 - + ( + 56 ) DIV + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-9120
SELECT + 43 - + ( + 56 ) / + COUNT ( * )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9121
SELECT ALL + 32, 97 + + 28 * - CAST( NULL AS SIGNED ) AS col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-9121
SELECT ALL + 32, 97 + + 28 * - CAST ( NULL AS INTEGER ) AS col0
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT 34 * - COUNT( * ) col2
----
-34

skipif mysql # not compatible
query I rowsort label-9122
SELECT 34 * - COUNT ( * ) col2
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9123
SELECT + + 47 * - 16 * 27 * - + MAX( - - 92 ) + - 70 AS col0, + 72
----
1867898
72

skipif mysql # not compatible
query II rowsort label-9123
SELECT + + 47 * - 16 * 27 * - + MAX ( - - 92 ) + - 70 AS col0, + 72
----
1867898
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9124
SELECT DISTINCT + COUNT( ALL + CAST( NULL AS SIGNED ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) col1
----
0

query II rowsort
SELECT + + ( - - ( + 69 ) ) AS col1, - 12
----
69
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9126
SELECT + + 56 * CASE - COUNT( * ) WHEN + + 11 THEN - - CASE - CAST( NULL AS SIGNED ) WHEN - - 60 THEN - - 79 END WHEN - 9 + + 76 THEN - 43 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT + + 56 * CASE - COUNT ( * ) WHEN + + 11 THEN - - CASE - CAST ( NULL AS INTEGER ) WHEN - - 60 THEN - - 79 END WHEN - 9 + + 76 THEN - 43 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9127
SELECT ALL + 50 DIV - - 75 * - ( 32 )
----
0

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL + 50 / - - 75 * - ( 32 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9128
SELECT DISTINCT 94 * - COUNT( * ) * - - 98, 55 AS col1
----
-9212
55

skipif mysql # not compatible
query II rowsort label-9128
SELECT DISTINCT 94 * - COUNT ( * ) * - - 98, 55 AS col1
----
-9212
55

query I rowsort
SELECT ALL + ( + - 70 ) AS col2
----
-70

query I rowsort
SELECT + ( 70 ) col2
----
70

query I rowsort
SELECT DISTINCT - 1 * + 92 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT - - 95 * 50 + + SUM( ALL 37 ) AS col2
----
4787

skipif mysql # not compatible
query I rowsort label-9132
SELECT - - 95 * 50 + + SUM ( ALL 37 ) AS col2
----
4787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT + 81 * - + CAST( - 85 AS SIGNED )
----
6885

skipif mysql # not compatible
query I rowsort label-9133
SELECT + 81 * - + CAST ( - 85 AS INTEGER )
----
6885

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9134
SELECT - 21 - + 81 DIV MAX( + - 33 ) DIV + 51 * + + COALESCE ( - 24, - 56 * - COUNT( * ) ) + + 76 AS col0, CASE 8 WHEN + 92 THEN 66 * + ( - NULLIF ( - 77, + - 88 ) ) + 63 ELSE NULL END DIV 57 col1
----
55
NULL

skipif mysql # not compatible
query II rowsort label-9134
SELECT - 21 - + 81 / MAX ( + - 33 ) / + 51 * + + COALESCE ( - 24, - 56 * - COUNT ( * ) ) + + 76 AS col0, CASE 8 WHEN + 92 THEN 66 * + ( - NULLIF ( - 77, + - 88 ) ) + 63 ELSE NULL END / 57 col1
----
55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT + SUM( DISTINCT + + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-9135
SELECT + SUM ( DISTINCT + + 71 )
----
71

query I rowsort
SELECT DISTINCT + + 60 col0
----
60

query I rowsort
SELECT + 34 + - + 2 + - ( + 54 ) * - 96 + + 83
----
5299

query II rowsort
SELECT ALL + 37 AS col1, - 40 AS col2
----
37
-40

query I rowsort
SELECT + 72 * + 66 AS col1
----
4752

onlyif mysql # DIV for integer division: 
query I rowsort label-9140
SELECT ALL 78 DIV ( - 98 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL 78 / ( - 98 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9141
SELECT + COUNT( * ) col2, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-9141
SELECT + COUNT ( * ) col2, COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT SUM( ALL - 83 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-9142
SELECT SUM ( ALL - 83 ) AS col1
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9143
SELECT ALL + NULLIF ( 38, CAST( NULL AS SIGNED ) ) * + 84 * + COUNT( * ) + - - MAX( ALL 6 ) * - + 18
----
3084

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL + NULLIF ( 38, CAST ( NULL AS INTEGER ) ) * + 84 * + COUNT ( * ) + - - MAX ( ALL 6 ) * - + 18
----
3084

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9144
SELECT DISTINCT CAST( NULL AS DECIMAL ) * COALESCE ( 96, - + COUNT( * ) ) * - 38 + - 77 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT CAST ( NULL AS REAL ) * COALESCE ( 96, - + COUNT ( * ) ) * - 38 + - 77 col2
----
NULL

query I rowsort
SELECT + 13 - 73 - + 56 AS col2
----
-116

query I rowsort
SELECT ALL 7 * 30 + 1
----
211

query II rowsort
SELECT DISTINCT + 46 AS col1, 86 + 9 AS col0
----
46
95

query I rowsort
SELECT 45 * 16 + + 30 * - 94 * + 69 + + - 76 * - 79 * 83 * + 41 AS col2
----
20237752

query I rowsort
SELECT + 1 + - 70 AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT + CAST( 62 AS SIGNED ) + 42 + 26 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-9150
SELECT + CAST ( 62 AS INTEGER ) + 42 + 26 AS col1
----
130

onlyif mysql # DIV for integer division: 
query II rowsort label-9151
SELECT 10 AS col2, 23 DIV - 95
----
10
0

skipif mysql # not compatible
query II rowsort label-9151
SELECT 10 AS col2, 23 / - 95
----
10
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9152
SELECT 80 AS col0, 59 * CAST( - + 48 AS SIGNED ) AS col1
----
80
-2832

skipif mysql # not compatible
query II rowsort label-9152
SELECT 80 AS col0, 59 * CAST ( - + 48 AS INTEGER ) AS col1
----
80
-2832

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9153
SELECT - 59 - + 76 AS col0, - 24 DIV + MAX( DISTINCT - 36 ) + + 16 AS col1
----
-135
16

skipif mysql # not compatible
query II rowsort label-9153
SELECT - 59 - + 76 AS col0, - 24 / + MAX ( DISTINCT - 36 ) + + 16 AS col1
----
-135
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9154
SELECT ALL COUNT( * ) AS col1, 56 DIV + - 89 * 22
----
1
0

skipif mysql # not compatible
query II rowsort label-9154
SELECT ALL COUNT ( * ) AS col1, 56 / + - 89 * 22
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT ALL + COUNT( * ) + - 6 * 94
----
-563

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL + COUNT ( * ) + - 6 * 94
----
-563

query I rowsort
SELECT ALL ( + 79 ) * 74
----
5846

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ALL COALESCE ( + COUNT( * ), - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL COALESCE ( + COUNT ( * ), - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL CASE - + 4 WHEN - 65 THEN - ( + 93 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 82 * + 32
----
-2624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT + + CAST( 33 AS SIGNED ) + - 27 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9160
SELECT + + CAST ( 33 AS INTEGER ) + - 27 AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9161
SELECT DISTINCT - + 97 DIV + 90
----
-1

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT - + 97 / + 90
----
-1

query I rowsort
SELECT ALL - NULLIF ( + 5, - 28 * + 95 + + + 52 ) AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9163
SELECT + - COUNT( * ) + + 22, - COUNT( * ) DIV + 4 AS col1
----
21
0

skipif mysql # not compatible
query II rowsort label-9163
SELECT + - COUNT ( * ) + + 22, - COUNT ( * ) / + 4 AS col1
----
21
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT - COALESCE ( - + SUM( DISTINCT + + 75 ), - 52 + 47 + - + 61 * - 35 * + - ( SUM( ALL + 66 ) ) )
----
75

skipif mysql # not compatible
query I rowsort label-9164
SELECT - COALESCE ( - + SUM ( DISTINCT + + 75 ), - 52 + 47 + - + 61 * - 35 * + - ( SUM ( ALL + 66 ) ) )
----
75

query I rowsort
SELECT - 63 * + 15 + + 37
----
-908

query I rowsort
SELECT - + 35 + 85
----
50

query I rowsort
SELECT ALL - + 22 * + 35 + ( - 70 )
----
-840

query II rowsort
SELECT - + 36, 6 * 56 AS col1
----
-36
336

query I rowsort
SELECT - 25 + + + 6
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9170
SELECT - + 85 DIV - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9170
SELECT - + 85 / - 94 AS col2
----
0

query II rowsort
SELECT ALL + - 82 AS col0, + 53
----
-82
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9172
SELECT - 52 + NULLIF ( NULLIF ( 31, + MAX( 21 ) ), 59 * - CAST( NULL AS DECIMAL ) + 74 + 19 ) * + COUNT( * ), - 69 DIV + 46 col0
----
-21
-1

skipif mysql # not compatible
query II rowsort label-9172
SELECT - 52 + NULLIF ( NULLIF ( 31, + MAX ( 21 ) ), 59 * - CAST ( NULL AS REAL ) + 74 + 19 ) * + COUNT ( * ), - 69 / + 46 col0
----
-21
-1

query II rowsort
SELECT ALL + - 91 AS col2, 55
----
-91
55

query I rowsort
SELECT - 63 * - 71 + + 83
----
4556

query I rowsort
SELECT 8 * + 39 * - 61 + 71 AS col1
----
-18961

query I rowsort
SELECT - NULLIF ( - 16, 75 ) col1
----
16

query II rowsort
SELECT DISTINCT + 80, 11 AS col1
----
80
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9178
SELECT ALL - 85 DIV - 89 + + 18 - + MAX( 41 ) + - COALESCE ( COUNT( * ), + 53 + + + 43 ) * + 57 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - 85 / - 89 + + 18 - + MAX ( 41 ) + - COALESCE ( COUNT ( * ), + 53 + + + 43 ) * + 57 AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9179
SELECT + + 70 * - - 3 - 35 - CAST( NULL AS DECIMAL ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT + + 70 * - - 3 - 35 - CAST ( NULL AS REAL ) * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9180
SELECT 41 col2, 18 + - 0 * 33 DIV - + SUM( + 77 ) AS col1
----
41
18

skipif mysql # not compatible
query II rowsort label-9180
SELECT 41 col2, 18 + - 0 * 33 / - + SUM ( + 77 ) AS col1
----
41
18

query II rowsort
SELECT - - 58 + + 52 AS col0, - ( 1 )
----
110
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9182
SELECT - 63 DIV + + 94 + 89 + + ( COUNT( * ) ) + - 24 * + - 36
----
954

skipif mysql # not compatible
query I rowsort label-9182
SELECT - 63 / + + 94 + 89 + + ( COUNT ( * ) ) + - 24 * + - 36
----
954

query I rowsort
SELECT ALL - ( 61 ) * + 50 AS col0
----
-3050

query I rowsort
SELECT - 43 * + 80
----
-3440

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT NULLIF ( - 44, - 26 / - - 67 + - - 11 ) * + 68 + + COUNT( * ) + + COUNT( * ) + + 96 AS col2
----
-2894

skipif mysql # not compatible
query I rowsort label-9185
SELECT NULLIF ( - 44, - 26 / - - 67 + - - 11 ) * + 68 + + COUNT ( * ) + + COUNT ( * ) + + 96 AS col2
----
-2894

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT + COUNT( COALESCE ( - 56, + + 41 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9186
SELECT + COUNT ( COALESCE ( - 56, + + 41 ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ALL 91 * COUNT( * ) + - MAX( - - ( + NULLIF ( 57, + 64 ) ) )
----
34

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL 91 * COUNT ( * ) + - MAX ( - - ( + NULLIF ( 57, + 64 ) ) )
----
34

query I rowsort
SELECT DISTINCT + ( + 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT + COUNT( 60 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9189
SELECT + COUNT ( 60 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT + ( - ( + + COUNT( DISTINCT 8 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9190
SELECT + ( - ( + + COUNT ( DISTINCT 8 ) ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 6 * + + 95 + - ( 96 ) + - + 78 AS col2
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT - SUM( ALL 44 ) * + + 59 + + 87 col1
----
-2509

skipif mysql # not compatible
query I rowsort label-9192
SELECT - SUM ( ALL 44 ) * + + 59 + + 87 col1
----
-2509

query I rowsort
SELECT 40 * - 68 * + 80 + + 58
----
-217542

query I rowsort
SELECT + NULLIF ( - 93, - + 79 - + 44 ) AS col1
----
-93

query II rowsort
SELECT + 53 * - 78 * + 3 AS col1, 90 AS col1
----
-12402
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL SUM( + + 66 ) * + + 13 + + 10
----
868

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL SUM ( + + 66 ) * + + 13 + + 10
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT + COUNT( * ) * - 47 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-9197
SELECT + COUNT ( * ) * - 47 AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9198
SELECT + COUNT( * ) + + NULLIF ( + + 16, + 13 ) - SUM( ALL - 21 ) + + - CAST( + - 10 AS SIGNED ) * COUNT( * ) * 71 * - - 10 * - - 64 * + - 28 AS col0
----
-12723162

skipif mysql # not compatible
query I rowsort label-9198
SELECT + COUNT ( * ) + + NULLIF ( + + 16, + 13 ) - SUM ( ALL - 21 ) + + - CAST ( + - 10 AS INTEGER ) * COUNT ( * ) * 71 * - - 10 * - - 64 * + - 28 AS col0
----
-12723162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9199
SELECT DISTINCT CASE - + COUNT( * ) WHEN + 51 THEN + + 87 ELSE NULL END * + + 31 - + CAST( CASE 29 WHEN 17 THEN 69 * COUNT( * ) * - 54 * + 7 + - - COUNT( * ) ELSE NULL END AS SIGNED ) + - ( - 15 ) * - 89 * + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT CASE - + COUNT ( * ) WHEN + 51 THEN + + 87 ELSE NULL END * + + 31 - + CAST ( CASE 29 WHEN 17 THEN 69 * COUNT ( * ) * - 54 * + 7 + - - COUNT ( * ) ELSE NULL END AS INTEGER ) + - ( - 15 ) * - 89 * + - 55
----
NULL

query I rowsort
SELECT + 17 * 63 AS col2
----
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT + - 50 * - SUM( + + 90 ) AS col0
----
4500

skipif mysql # not compatible
query I rowsort label-9201
SELECT + - 50 * - SUM ( + + 90 ) AS col0
----
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL - 44 * + - 50 * - COUNT( * ) col2
----
-2200

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL - 44 * + - 50 * - COUNT ( * ) col2
----
-2200

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT 5 * - 4 * - COUNT( * ) * - + 52
----
-1040

skipif mysql # not compatible
query I rowsort label-9203
SELECT 5 * - 4 * - COUNT ( * ) * - + 52
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT DISTINCT CASE - 40 WHEN - 1 THEN COUNT( * ) ELSE + - 9 END
----
-9

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT CASE - 40 WHEN - 1 THEN COUNT ( * ) ELSE + - 9 END
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT NULLIF ( - 63, + MIN( ALL + 14 ) ) * + - 86
----
5418

skipif mysql # not compatible
query I rowsort label-9205
SELECT NULLIF ( - 63, + MIN ( ALL + 14 ) ) * + - 86
----
5418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9206
SELECT DISTINCT - 12 * + + 40 * - + 66 + - - MAX( + COALESCE ( + 70, - CASE - ( 63 ) WHEN - 40 * - CASE WHEN NULL IS NULL THEN + 77 END THEN + 29 + + 85 * + + 59 DIV + 59 WHEN - 52 THEN NULL END, - 66 ) )
----
31750

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT - 12 * + + 40 * - + 66 + - - MAX ( + COALESCE ( + 70, - CASE - ( 63 ) WHEN - 40 * - CASE WHEN NULL IS NULL THEN + 77 END THEN + 29 + + 85 * + + 59 / + 59 WHEN - 52 THEN NULL END, - 66 ) )
----
31750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9207
SELECT + 63 DIV - NULLIF ( - COALESCE ( + + 98, + COUNT( - 79 ) + + 22 * + 96, - - 44 + - 47 ), - NULLIF ( - 51, + - ( - + 48 ) * - 54 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9207
SELECT + 63 / - NULLIF ( - COALESCE ( + + 98, + COUNT ( - 79 ) + + 22 * + 96, - - 44 + - 47 ), - NULLIF ( - 51, + - ( - + 48 ) * - 54 ) )
----
0

query I rowsort
SELECT - 72 + - 43
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT + - ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9209
SELECT + - ( + + COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9210
SELECT ALL + - COALESCE ( 88, + + 67 * + ( 93 ) + + - 58, 89 * + COUNT( * ) + + CASE + COUNT( * ) WHEN 11 + ( - 7 ) THEN NULL ELSE + 37 END - 25, 82 ) + - COUNT( * ), 75 + + CAST( + 48 AS SIGNED ) * ( - COUNT( * ) ) AS col1
----
-89
27

skipif mysql # not compatible
query II rowsort label-9210
SELECT ALL + - COALESCE ( 88, + + 67 * + ( 93 ) + + - 58, 89 * + COUNT ( * ) + + CASE + COUNT ( * ) WHEN 11 + ( - 7 ) THEN NULL ELSE + 37 END - 25, 82 ) + - COUNT ( * ), 75 + + CAST ( + 48 AS INTEGER ) * ( - COUNT ( * ) ) AS col1
----
-89
27

query I rowsort
SELECT ALL - 71 + - 87 AS col1
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT ALL + 17 * + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL + 17 * + COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ( 23 ) * - MIN( + - 56 ) AS col1
----
1288

skipif mysql # not compatible
query I rowsort label-9213
SELECT ( 23 ) * - MIN ( + - 56 ) AS col1
----
1288

query II rowsort
SELECT 0, - 36 AS col0
----
0
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL - COALESCE ( ( + + 54 ), 14 + - - 54, - COUNT( * ) - - + 87 * + - 61 * + + NULLIF ( + 21, 64 / + + 7 / - - COUNT( * ) + + - 82 ) ) + 39 + - 26 * + COALESCE ( - COUNT( - 2 ), - ( - - 78 ) ) * + MAX( + + 5 ) AS col2
----
115

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL - COALESCE ( ( + + 54 ), 14 + - - 54, - COUNT ( * ) - - + 87 * + - 61 * + + NULLIF ( + 21, 64 / + + 7 / - - COUNT ( * ) + + - 82 ) ) + 39 + - 26 * + COALESCE ( - COUNT ( - 2 ), - ( - - 78 ) ) * + MAX ( + + 5 ) AS col2
----
115

query I rowsort
SELECT 88 - - - 76 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9217
SELECT + SUM( - 84 ) * COALESCE ( + + 17, + + COUNT( * ) + + + 7 ) + - 2 * + CASE + 62 WHEN 80 + + - CAST( - 26 AS SIGNED ) + + ( - COUNT( * ) ) * 36 THEN NULL WHEN - CASE - - COUNT( * ) WHEN + 89 THEN - 47 WHEN + 89 * 65 THEN - - CAST( + 82 AS SIGNED ) END THEN + 53 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT + SUM ( - 84 ) * COALESCE ( + + 17, + + COUNT ( * ) + + + 7 ) + - 2 * + CASE + 62 WHEN 80 + + - CAST ( - 26 AS INTEGER ) + + ( - COUNT ( * ) ) * 36 THEN NULL WHEN - CASE - - COUNT ( * ) WHEN + 89 THEN - 47 WHEN + 89 * 65 THEN - - CAST ( + 82 AS INTEGER ) END THEN + 53 END AS col0
----
NULL

query II rowsort
SELECT 48 AS col0, 64 * + - ( + 82 ) + + 27 AS col0
----
48
-5221

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT 42 * - COALESCE ( COUNT( * ), 63, 77 * - 46 - - - MIN( ALL - 9 ) + - + MAX( ALL - 95 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-9219
SELECT 42 * - COALESCE ( COUNT ( * ), 63, 77 * - 46 - - - MIN ( ALL - 9 ) + - + MAX ( ALL - 95 ) )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9220
SELECT ALL - NULLIF ( + COUNT( * ), - CAST( NULL AS SIGNED ) * COALESCE ( - 21, - - 24, COUNT( * ) + + + 57 ) + - ( 26 ) * - + 9 + 79 ) - - 25 + 38 DIV - - 1 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL - NULLIF ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) * COALESCE ( - 21, - - 24, COUNT ( * ) + + + 57 ) + - ( 26 ) * - + 9 + 79 ) - - 25 + 38 / - - 1 AS col1
----
62

query I rowsort
SELECT 13 * + - 83 * + 44
----
-47476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9222
SELECT DISTINCT - COALESCE ( - ( - - MAX( ALL - 58 ) ), + - COALESCE ( - COUNT( * ), + - CAST( NULL AS SIGNED ) + + - 77 DIV MAX( ALL - - 83 ), + + ( + 7 ) ), - 48 ) - ( - 86 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT - COALESCE ( - ( - - MAX ( ALL - 58 ) ), + - COALESCE ( - COUNT ( * ), + - CAST ( NULL AS INTEGER ) + + - 77 / MAX ( ALL - - 83 ), + + ( + 7 ) ), - 48 ) - ( - 86 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL COUNT( * ) * - - 27 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL COUNT ( * ) * - - 27 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT 32 - 88 + - - SUM( DISTINCT 58 ) - - - 72 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9224
SELECT 32 - 88 + - - SUM ( DISTINCT 58 ) - - - 72 AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT DISTINCT - CAST( + - 14 AS SIGNED ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT - CAST ( + - 14 AS INTEGER ) AS col2
----
14

query I rowsort
SELECT - 48 * 52 * + 80 + 74 AS col1
----
-199606

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT ALL + CAST( + + 33 AS SIGNED ) * 26
----
858

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL + CAST ( + + 33 AS INTEGER ) * 26
----
858

query I rowsort
SELECT 28 * + 65 col0
----
1820

query I rowsort
SELECT ( - 15 ) col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9230
SELECT ALL - 7 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL - 7 / - 54
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9231
SELECT DISTINCT + COALESCE ( - - ( - + COUNT( * ) ), - 13 * - - COALESCE ( 71, + NULLIF ( - 80, COUNT( * ) * CAST( NULL AS SIGNED ) * + 5 + - - 27 ) ), ( + - 7 ) DIV - 13 + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT + COALESCE ( - - ( - + COUNT ( * ) ), - 13 * - - COALESCE ( 71, + NULLIF ( - 80, COUNT ( * ) * CAST ( NULL AS INTEGER ) * + 5 + - - 27 ) ), ( + - 7 ) / - 13 + - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL CASE + - 32 WHEN - 71 THEN 17 - COUNT( 91 ) * 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL CASE + - 32 WHEN - 71 THEN 17 - COUNT ( 91 ) * 42 END
----
NULL

query I rowsort
SELECT - - ( 76 ) AS col1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9234
SELECT ALL - 63 DIV + - ( + + 41 )
----
1

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL - 63 / + - ( + + 41 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9235
SELECT DISTINCT 86 + 9 + + COUNT( * ) AS col0, + ( - COUNT( * ) ) + - - COALESCE ( - - 53, + 45, NULLIF ( + + 23, + + 68 * - 54 + + 51 + - - 97 ) )
----
96
52

skipif mysql # not compatible
query II rowsort label-9235
SELECT DISTINCT 86 + 9 + + COUNT ( * ) AS col0, + ( - COUNT ( * ) ) + - - COALESCE ( - - 53, + 45, NULLIF ( + + 23, + + 68 * - 54 + + 51 + - - 97 ) )
----
96
52

query I rowsort
SELECT - - ( ( 32 ) )
----
32

query I rowsort
SELECT ALL - 72 + - 55 * + 70 + 57 AS col0
----
-3865

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT 30 + - 8 * - - 90 + - - COUNT( * ) + + 32 AS col2
----
-657

skipif mysql # not compatible
query I rowsort label-9238
SELECT 30 + - 8 * - - 90 + - - COUNT ( * ) + + 32 AS col2
----
-657

onlyif mysql # aggregate syntax: 
query II rowsort label-9239
SELECT 22 + - - MAX( + 11 ), - 54 AS col0
----
33
-54

skipif mysql # not compatible
query II rowsort label-9239
SELECT 22 + - - MAX ( + 11 ), - 54 AS col0
----
33
-54

query I rowsort
SELECT DISTINCT - ( + + 76 )
----
-76

query I rowsort
SELECT 99 + - 98 + - + 85 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ALL + 56 + + 85 + + + COUNT( * )
----
142

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL + 56 + + 85 + + + COUNT ( * )
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9243
SELECT ALL CASE 4 WHEN + - COUNT( * ) + - 26 THEN NULL WHEN - 92 THEN 21 * - COUNT( * ) + 35 + - 84 + + NULLIF ( - 76, + 54 ) * 52 + + 19 * - + COUNT( * ) / CASE - CAST( - 71 AS SIGNED ) WHEN + - ( - 84 ) THEN - + COUNT( * ) END / - - 31 * 58 + - - 96 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL CASE 4 WHEN + - COUNT ( * ) + - 26 THEN NULL WHEN - 92 THEN 21 * - COUNT ( * ) + 35 + - 84 + + NULLIF ( - 76, + 54 ) * 52 + + 19 * - + COUNT ( * ) / CASE - CAST ( - 71 AS INTEGER ) WHEN + - ( - 84 ) THEN - + COUNT ( * ) END / - - 31 * 58 + - - 96 END AS col1
----
NULL

query I rowsort
SELECT 7 + - 64 + 93 * + 77 + + 95
----
7199

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT - CASE + + 4 WHEN COUNT( * ) + - MAX( DISTINCT 95 ) + + 16 * + COUNT( * ) * + 78 THEN + 1 + 62 ELSE NULL END * + 74 + COUNT( * ) - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT - CASE + + 4 WHEN COUNT ( * ) + - MAX ( DISTINCT 95 ) + + 16 * + COUNT ( * ) * + 78 THEN + 1 + 62 ELSE NULL END * + 74 + COUNT ( * ) - 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9246
SELECT 23 * - COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9246
SELECT 23 * - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 97 + ( + 8 ) AS col2
----
105

query I rowsort
SELECT 77 * 57 + + 92 AS col0
----
4481

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT SUM( + 95 ) col1
----
95

skipif mysql # not compatible
query I rowsort label-9249
SELECT SUM ( + 95 ) col1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9250
SELECT - 32 DIV + + 70 + ( + 16 ), + COUNT( * ) * - 89 * + - 31 col0
----
16
2759

skipif mysql # not compatible
query II rowsort label-9250
SELECT - 32 / + + 70 + ( + 16 ), + COUNT ( * ) * - 89 * + - 31 col0
----
16
2759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9251
SELECT CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - 12 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - 12 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT + NULLIF ( + SUM( DISTINCT - - 40 ), 62 )
----
40

skipif mysql # not compatible
query I rowsort label-9252
SELECT + NULLIF ( + SUM ( DISTINCT - - 40 ), 62 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9253
SELECT ALL - ( + 80 ) col0, - 0 * - - ( - SUM( + - 86 ) )
----
-80
0

skipif mysql # not compatible
query II rowsort label-9253
SELECT ALL - ( + 80 ) col0, - 0 * - - ( - SUM ( + - 86 ) )
----
-80
0

query I rowsort
SELECT - 69 * - 91 + + 35 * - 42 * - 37 + - + 99 AS col0
----
60570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9255
SELECT COUNT( * ) * 42 * - - ( - 34 ), + CAST( - 1 AS SIGNED ) * + 27 col0
----
-1428
-27

skipif mysql # not compatible
query II rowsort label-9255
SELECT COUNT ( * ) * 42 * - - ( - 34 ), + CAST ( - 1 AS INTEGER ) * + 27 col0
----
-1428
-27

query I rowsort
SELECT 48 * + 8
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT 51 * + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-9257
SELECT 51 * + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9258
SELECT ALL - ( + - COALESCE ( - - 16, + 62 DIV + 31 - - ( - + ( 73 ) ), - COUNT( * ) * + SUM( ALL + + 1 ) + - 57 ) ) col0
----
16

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL - ( + - COALESCE ( - - 16, + 62 / + 31 - - ( - + ( 73 ) ), - COUNT ( * ) * + SUM ( ALL + + 1 ) + - 57 ) ) col0
----
16

query I rowsort
SELECT ALL + 78 * - - ( - 30 ) * 20
----
-46800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9260
SELECT ALL ( - 41 ), 87 - + - 7 + + CAST( NULL AS SIGNED ) / - 39 + + + 11 + + 49 / 70 * - + NULLIF ( 81, 90 * - - ( + AVG ( ALL ( + 99 ) ) ) - - 96 - + - 96 * + 38 ) * - - 13 col1
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-9260
SELECT ALL ( - 41 ), 87 - + - 7 + + CAST ( NULL AS INTEGER ) / - 39 + + + 11 + + 49 / 70 * - + NULLIF ( 81, 90 * - - ( + AVG ( ALL ( + 99 ) ) ) - - 96 - + - 96 * + 38 ) * - - 13 col1
----
-41
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT ALL CAST( + 65 AS SIGNED ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL CAST ( + 65 AS INTEGER ) AS col2
----
65

query I rowsort
SELECT - 5 + + 93
----
88

query I rowsort
SELECT ALL + + 35 + 85 col2
----
120

query I rowsort
SELECT - 62 - - ( + 6 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT + - COUNT( * ) + - 38 + 78
----
39

skipif mysql # not compatible
query I rowsort label-9265
SELECT + - COUNT ( * ) + - 38 + 78
----
39

query I rowsort
SELECT DISTINCT - - 23 + - ( - 43 ) col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT - + COUNT( - + 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-9267
SELECT - + COUNT ( - + 4 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9268
SELECT + + 40 + + 2 + + 67 DIV + 85 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-9268
SELECT + + 40 + + 2 + + 67 / + 85 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT ALL - COUNT( DISTINCT + 37 ) + + + 36
----
35

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL - COUNT ( DISTINCT + 37 ) + + + 36
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT + - 21 - + CASE - NULLIF ( - 96, + - 59 - + 7 ) WHEN ( + 68 ) * 3 * - - 99 - + + COALESCE ( - - NULLIF ( - 77, - AVG ( ALL - 35 ) ), ( 51 ), - + COALESCE ( ( SUM( ALL 46 ) ), + - 0 ) ) THEN - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9270
SELECT + - 21 - + CASE - NULLIF ( - 96, + - 59 - + 7 ) WHEN ( + 68 ) * 3 * - - 99 - + + COALESCE ( - - NULLIF ( - 77, - AVG ( ALL - 35 ) ), ( 51 ), - + COALESCE ( ( SUM ( ALL 46 ) ), + - 0 ) ) THEN - 43 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT ALL 4 - + + 68 * + COUNT( * ) * + + 11 + + SUM( DISTINCT - 74 ) AS col0
----
-818

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL 4 - + + 68 * + COUNT ( * ) * + + 11 + + SUM ( DISTINCT - 74 ) AS col0
----
-818

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT - COUNT( + + 24 ) - + + 16 - - 62 + 13
----
58

skipif mysql # not compatible
query I rowsort label-9272
SELECT - COUNT ( + + 24 ) - + + 16 - - 62 + 13
----
58

query I rowsort
SELECT ALL 96 * - - 77 AS col0
----
7392

query I rowsort
SELECT + 8 / CASE - - 89 WHEN - 90 THEN NULL WHEN - 97 THEN - 22 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 13 * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT - COUNT( DISTINCT - + 50 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9276
SELECT - COUNT ( DISTINCT - + 50 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9277
SELECT ALL CASE 40 WHEN - CAST( + 34 AS SIGNED ) + 13 THEN NULL WHEN - 20 THEN - 94 END * COUNT( * ) + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL CASE 40 WHEN - CAST ( + 34 AS INTEGER ) + 13 THEN NULL WHEN - 20 THEN - 94 END * COUNT ( * ) + 12
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 20, + 3 + - 31 ) * 82
----
1640

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT DISTINCT 28 DIV - 38 - + ( - 96 ) col1
----
96

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT 28 / - 38 - + ( - 96 ) col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT ( + COALESCE ( - 68, + + COUNT( * ) ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-9280
SELECT ( + COALESCE ( - 68, + + COUNT ( * ) ) ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT + ( NULLIF ( - + MAX( ALL - - 83 ), - COUNT( DISTINCT - NULLIF ( 9, + 73 ) ) ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-9281
SELECT + ( NULLIF ( - + MAX ( ALL - - 83 ), - COUNT ( DISTINCT - NULLIF ( 9, + 73 ) ) ) ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT + COUNT( * ) * - 48 * + 37 * + - 32 * - + 13
----
-738816

skipif mysql # not compatible
query I rowsort label-9282
SELECT + COUNT ( * ) * - 48 * + 37 * + - 32 * - + 13
----
-738816

query I rowsort
SELECT + 88 + + 0 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT - CASE 53 WHEN - + 50 THEN NULL WHEN CASE + - 24 WHEN - + 10 - - + COUNT( * ) + - + 67 THEN NULL WHEN + 16 + - 36 THEN + 62 END / 39 THEN NULL WHEN + 92 THEN ( - 38 ) END * 90 * 34 * + + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9284
SELECT - CASE 53 WHEN - + 50 THEN NULL WHEN CASE + - 24 WHEN - + 10 - - + COUNT ( * ) + - + 67 THEN NULL WHEN + 16 + - 36 THEN + 62 END / 39 THEN NULL WHEN + 92 THEN ( - 38 ) END * 90 * 34 * + + 19 AS col1
----
NULL

query I rowsort
SELECT - 40 * 54 + - 70 AS col1
----
-2230

query I rowsort
SELECT ALL 76 * + 63
----
4788

query I rowsort
SELECT 56 * 5 * + NULLIF ( - + 33, - COALESCE ( - 68, - 94 * - + 84 ) + - COALESCE ( - 6, - 80 ) ) * - 54 + + 22 - 20 + + 54 AS col0
----
499016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9288
SELECT ALL - 4 * 5 + + NULLIF ( + 64, + - 30 * COALESCE ( + - 51, - MAX( - + 29 ) - + 66 ) ) + + 95 * - - 92 DIV 92 AS col0
----
139

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL - 4 * 5 + + NULLIF ( + 64, + - 30 * COALESCE ( + - 51, - MAX ( - + 29 ) - + 66 ) ) + + 95 * - - 92 / 92 AS col0
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT DISTINCT CAST( NULL AS SIGNED ) / 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 65 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9290
SELECT + 17 + - ( + - 34 ) * CAST( NULL AS SIGNED ) + + 53 * + NULLIF ( + 2, - + MAX( - + 8 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT + 17 + - ( + - 34 ) * CAST ( NULL AS INTEGER ) + + 53 * + NULLIF ( + 2, - + MAX ( - + 8 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9291
SELECT CASE - CASE - COUNT( * ) WHEN - 97 + - - 44 + - 85 * + 49 THEN + 97 WHEN 73 / + 34 THEN MAX( + 86 ) END WHEN - 76 THEN - 31 * + 74 - - MAX( ALL ( - + 65 ) ) * - - 58 WHEN + + 0 THEN NULL ELSE NULL END, + ( + 67 ) AS col1
----
NULL
67

skipif mysql # not compatible
query II rowsort label-9291
SELECT CASE - CASE - COUNT ( * ) WHEN - 97 + - - 44 + - 85 * + 49 THEN + 97 WHEN 73 / + 34 THEN MAX ( + 86 ) END WHEN - 76 THEN - 31 * + 74 - - MAX ( ALL ( - + 65 ) ) * - - 58 WHEN + + 0 THEN NULL ELSE NULL END, + ( + 67 ) AS col1
----
NULL
67

query I rowsort
SELECT - - 27 + 74 col1
----
101

query I rowsort
SELECT - 89 * 26 + 42 + - 3
----
-2275

query II rowsort
SELECT DISTINCT + 83 * - + 18 + - 54 * + 73 * + - 97 AS col0, 85 * - 3 * 94 + 7 + - - 15 col1
----
380880
-23948

query I rowsort
SELECT ALL NULLIF ( + NULLIF ( - 19, + 85 * + + 30 ), ( 16 ) ) * + 0 + 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT + COUNT( * ) + + - 12 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9296
SELECT + COUNT ( * ) + + - 12 AS col2
----
-11

query I rowsort
SELECT + + 50 * 73
----
3650

query I rowsort
SELECT - 60 + - 63 * - 79 col0
----
4917

query I rowsort
SELECT DISTINCT 95 * - + 3 + + - 66 AS col2
----
-351

query I rowsort
SELECT - ( + - 96 ) AS col2
----
96

query II rowsort
SELECT - 34 AS col1, - 73 AS col0
----
-34
-73

query I rowsort
SELECT DISTINCT - COALESCE ( 32, 38 ) col0
----
-32

query I rowsort
SELECT - + 50 + - - 36 * + ( + 99 ) AS col1
----
3514

query I rowsort
SELECT ALL 49 * 57
----
2793

onlyif mysql # aggregate syntax: 
query II rowsort label-9305
SELECT ALL + ( - COUNT( * ) ) * + + 43, + MAX( 30 ) AS col1
----
-43
30

skipif mysql # not compatible
query II rowsort label-9305
SELECT ALL + ( - COUNT ( * ) ) * + + 43, + MAX ( 30 ) AS col1
----
-43
30

query II rowsort
SELECT - 76 * + - 35 * - NULLIF ( + 71, - 24 ) AS col2, 13 + + 89 * + 29
----
-188860
2594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9307
SELECT + 46 * - 15 + COALESCE ( - + ( - ( + + 82 ) ), + 28 + COUNT( * ) + 38 - + NULLIF ( + + 31, + 53 + MIN( + 44 ) + + 71 + + 40 ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9307
SELECT + 46 * - 15 + COALESCE ( - + ( - ( + + 82 ) ), + 28 + COUNT ( * ) + 38 - + NULLIF ( + + 31, + 53 + MIN ( + 44 ) + + 71 + + 40 ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 79 * 0 * + 24 AS col0
----
0

query I rowsort
SELECT - - 73 + + 24 + + 20 AS col1
----
117

query II rowsort
SELECT 59 AS col1, - 96 * + + 91
----
59
-8736

query I rowsort
SELECT DISTINCT - 95 * - - 41 AS col2
----
-3895

query I rowsort
SELECT DISTINCT ( 88 ) AS col0
----
88

query I rowsort
SELECT - 48 + - + 94
----
-142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT ALL CAST( + ( - 18 ) AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL CAST ( + ( - 18 ) AS INTEGER )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9315
SELECT + 24 + + 96 AS col0, COUNT( * ) AS col1
----
120
1

skipif mysql # not compatible
query II rowsort label-9315
SELECT + 24 + + 96 AS col0, COUNT ( * ) AS col1
----
120
1

query I rowsort
SELECT + 1 + - + 43 AS col2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9317
SELECT ALL - 50 DIV 32
----
-1

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL - 50 / 32
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT + MAX( DISTINCT + NULLIF ( - + 24, - + 99 + 51 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-9318
SELECT + MAX ( DISTINCT + NULLIF ( - + 24, - + 99 + 51 ) )
----
-24

query II rowsort
SELECT 72 col0, + 96 AS col2
----
72
96

query II rowsort
SELECT ALL - 93, 4 AS col2
----
-93
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9321
SELECT ALL MAX( DISTINCT - 72 ) + 76 - + 7 * ( - 82 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL MAX ( DISTINCT - 72 ) + 76 - + 7 * ( - 82 ) + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 39, - 57 AS col2
----
39
-57

query I rowsort
SELECT NULLIF ( 92, 82 - + + 79 + + - 82 ) * 46 * + 29
----
122728

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL 52 + - - 64 * - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL 52 + - - 64 * - COUNT ( * )
----
-12

query I rowsort
SELECT + NULLIF ( 90, - + 97 * 81 ) AS col0
----
90

query II rowsort
SELECT + 33, 26 * + ( + - 92 ) * - + ( + 10 ) AS col2
----
33
23920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT ALL 48 + - - CAST( NULL AS SIGNED ) + + + 29 - + + 80 * + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL 48 + - - CAST ( NULL AS INTEGER ) + + + 29 - + + 80 * + + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT CASE - + 79 WHEN - - 22 * + 64 + + 76 + + 88 THEN NULL WHEN + 14 THEN NULL ELSE - COUNT( * ) + - 74 END
----
-75

skipif mysql # not compatible
query I rowsort label-9328
SELECT CASE - + 79 WHEN - - 22 * + 64 + + 76 + + 88 THEN NULL WHEN + 14 THEN NULL ELSE - COUNT ( * ) + - 74 END
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9329
SELECT - 66, + COALESCE ( - 13, - 49 ) * + NULLIF ( - CAST( NULL AS SIGNED ), + 66 ) AS col2
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-9329
SELECT - 66, + COALESCE ( - 13, - 49 ) * + NULLIF ( - CAST ( NULL AS INTEGER ), + 66 ) AS col2
----
-66
NULL

query II rowsort
SELECT ALL - 38 col0, 27 AS col0
----
-38
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT - 89 * - COUNT( * ) + - + COALESCE ( - + MAX( DISTINCT 43 ), + COUNT( * ), + 35 )
----
132

skipif mysql # not compatible
query I rowsort label-9331
SELECT - 89 * - COUNT ( * ) + - + COALESCE ( - + MAX ( DISTINCT 43 ), + COUNT ( * ), + 35 )
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT - NULLIF ( + 76, - COUNT( - ( 34 ) ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9332
SELECT - NULLIF ( + 76, - COUNT ( - ( 34 ) ) ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT ALL - COUNT( * ) + - + ( + MIN( DISTINCT 25 ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL - COUNT ( * ) + - + ( + MIN ( DISTINCT 25 ) ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT - MAX( ALL 62 ) * - 85 * ( + 67 ) * 60
----
21185400

skipif mysql # not compatible
query I rowsort label-9334
SELECT - MAX ( ALL 62 ) * - 85 * ( + 67 ) * 60
----
21185400

onlyif mysql # DIV for integer division: 
query I rowsort label-9335
SELECT ALL 37 DIV + 49 + 58
----
58

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL 37 / + 49 + 58
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT ALL + + 6 - - + 54 DIV 63
----
6

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL + + 6 - - + 54 / 63
----
6

query II rowsort
SELECT - 90, + 88 - - 81 AS col0
----
-90
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9338
SELECT DISTINCT - COALESCE ( - 71, + + COUNT( * ), + CAST( NULL AS SIGNED ), - 11 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT - COALESCE ( - 71, + + COUNT ( * ), + CAST ( NULL AS INTEGER ), - 11 ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9339
SELECT COALESCE ( + 49, - SUM( + 63 ) - + COUNT( * ), + 72, - 60 - - 30 + 89 ) AS col2, - 93 * - 17 col2
----
49
1581

skipif mysql # not compatible
query II rowsort label-9339
SELECT COALESCE ( + 49, - SUM ( + 63 ) - + COUNT ( * ), + 72, - 60 - - 30 + 89 ) AS col2, - 93 * - 17 col2
----
49
1581

query I rowsort
SELECT CASE - 86 WHEN - 18 + - 43 THEN - - 13 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9341
SELECT COUNT( * ) - 65 - 52 + + 8 * - MAX( - 83 ) AS col2, 90 DIV 45 AS col2
----
548
2

skipif mysql # not compatible
query II rowsort label-9341
SELECT COUNT ( * ) - 65 - 52 + + 8 * - MAX ( - 83 ) AS col2, 90 / 45 AS col2
----
548
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9342
SELECT + ( - 73 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9342
SELECT + ( - 73 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9343
SELECT ALL + CAST( NULL AS SIGNED ), + ( + 46 ) * COUNT( * ) * - MIN( - 28 ) * + 83 + + MAX( + - CAST( - + 75 AS SIGNED ) ) + SUM( DISTINCT + - 99 ) + + - 2 * - 78 + - - 66 * 66 AS col2
----
NULL
111392

skipif mysql # not compatible
query II rowsort label-9343
SELECT ALL + CAST ( NULL AS INTEGER ), + ( + 46 ) * COUNT ( * ) * - MIN ( - 28 ) * + 83 + + MAX ( + - CAST ( - + 75 AS INTEGER ) ) + SUM ( DISTINCT + - 99 ) + + - 2 * - 78 + - - 66 * 66 AS col2
----
NULL
111392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9344
SELECT - 39 + - + 66 + - 99 + - - NULLIF ( 40, + + 81 + + + AVG ( DISTINCT - 53 ) * + 55 + + 92 + + + 22 * - 21 * + CAST( NULL AS SIGNED ) + + + 36 + MAX( ALL - 80 ) ) + - 29 * - - 6 DIV 50 DIV + + 58 AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-9344
SELECT - 39 + - + 66 + - 99 + - - NULLIF ( 40, + + 81 + + + AVG ( DISTINCT - 53 ) * + 55 + + 92 + + + 22 * - 21 * + CAST ( NULL AS INTEGER ) + + + 36 + MAX ( ALL - 80 ) ) + - 29 * - - 6 / 50 / + + 58 AS col1
----
-164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT 35 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT 35 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 53 AS col1, 31
----
53
31

query I rowsort
SELECT 26 * 5
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL - 55 * ( + COUNT( * ) ) * - ( CASE - COUNT( * ) WHEN + 37 * + - 54 THEN - + COALESCE ( + 98, SUM( + 79 ) ) / - 11 END ) * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL - 55 * ( + COUNT ( * ) ) * - ( CASE - COUNT ( * ) WHEN + 37 * + - 54 THEN - + COALESCE ( + 98, SUM ( + 79 ) ) / - 11 END ) * 4
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9349
SELECT ( + + 70 ) - + 77 + - SUM( - 72 ) AS col2, 29 AS col1
----
65
29

skipif mysql # not compatible
query II rowsort label-9349
SELECT ( + + 70 ) - + 77 + - SUM ( - 72 ) AS col2, 29 AS col1
----
65
29

query I rowsort
SELECT 51 * + 10
----
510

onlyif mysql # DIV for integer division: 
query I rowsort label-9351
SELECT ALL + ( 65 ) + 18 * - 30 DIV ( - + 83 ) DIV - + 78 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL + ( 65 ) + 18 * - 30 / ( - + 83 ) / - + 78 AS col1
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-9352
SELECT 41 * 90 AS col0, - COUNT( * )
----
3690
-1

skipif mysql # not compatible
query II rowsort label-9352
SELECT 41 * 90 AS col0, - COUNT ( * )
----
3690
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9353
SELECT ALL + 92 + COALESCE ( - 65, + 31 DIV - + CAST( NULL AS SIGNED ) DIV + - 94 ) - + 36 col2
----
-9

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL + 92 + COALESCE ( - 65, + 31 / - + CAST ( NULL AS INTEGER ) / + - 94 ) - + 36 col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9354
SELECT MAX( - CAST( NULL AS SIGNED ) ) - + ( + 62 ) + - + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) - + ( + 62 ) + - + 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9355
SELECT ALL 5 + + - 60 * + COUNT( * ) DIV + 69 col0
----
5

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL 5 + + - 60 * + COUNT ( * ) / + 69 col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9356
SELECT 67 * COUNT( * ) col0, 0 AS col0
----
67
0

skipif mysql # not compatible
query II rowsort label-9356
SELECT 67 * COUNT ( * ) col0, 0 AS col0
----
67
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT 41 + - 98 + ( - ( + 66 ) ) * + COUNT( 20 ) + 3 AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-9357
SELECT 41 + - 98 + ( - ( + 66 ) ) * + COUNT ( 20 ) + 3 AS col2
----
-120

query I rowsort
SELECT 76 * + + 70 * - 8
----
-42560

onlyif mysql # aggregate syntax: 
query II rowsort label-9359
SELECT 47 + - - 71 col1, - 95 + - SUM( + 33 ) AS col2
----
118
-128

skipif mysql # not compatible
query II rowsort label-9359
SELECT 47 + - - 71 col1, - 95 + - SUM ( + 33 ) AS col2
----
118
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9360
SELECT CAST( + 37 AS SIGNED ) * - 93 AS col1, MAX( - + 15 ) AS col1
----
-3441
-15

skipif mysql # not compatible
query II rowsort label-9360
SELECT CAST ( + 37 AS INTEGER ) * - 93 AS col1, MAX ( - + 15 ) AS col1
----
-3441
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9361
SELECT 50 * + - NULLIF ( + COUNT( * ), - + 68 * 93 + - 29 * + 25 * 72 * 69 + MIN( DISTINCT 66 ) ) DIV + - ( - + 98 ) + + CASE - CAST( 96 AS SIGNED ) WHEN + 12 + + 16 THEN NULL ELSE + - 85 + + 50 END * 32
----
-1120

skipif mysql # not compatible
query I rowsort label-9361
SELECT 50 * + - NULLIF ( + COUNT ( * ), - + 68 * 93 + - 29 * + 25 * 72 * 69 + MIN ( DISTINCT 66 ) ) / + - ( - + 98 ) + + CASE - CAST ( 96 AS INTEGER ) WHEN + 12 + + 16 THEN NULL ELSE + - 85 + + 50 END * 32
----
-1120

query I rowsort
SELECT - 98 * ( 61 ) AS col2
----
-5978

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT + SUM( 72 ) * COUNT( * ) + MIN( ( + 58 ) )
----
130

skipif mysql # not compatible
query I rowsort label-9363
SELECT + SUM ( 72 ) * COUNT ( * ) + MIN ( ( + 58 ) )
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT - COUNT( DISTINCT + 81 ) + + + 19
----
18

skipif mysql # not compatible
query I rowsort label-9364
SELECT - COUNT ( DISTINCT + 81 ) + + + 19
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL - + COALESCE ( + - 95, - + SUM( 63 ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL - + COALESCE ( + - 95, - + SUM ( 63 ) ) AS col1
----
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9366
SELECT CAST( NULL AS DECIMAL ) * - 83 + - 84 * + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT CAST ( NULL AS REAL ) * - 83 + - 84 * + 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT + NULLIF ( - - COALESCE ( + 4, COALESCE ( + 13, - + 18 ) ), 95 * - 67 ) * - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-9367
SELECT + NULLIF ( - - COALESCE ( + 4, COALESCE ( + 13, - + 18 ) ), 95 * - 67 ) * - COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT ALL - - CASE + 14 WHEN AVG ( ALL - ( + - NULLIF ( 91, - 26 * - 19 ) ) ) / - NULLIF ( - ( + 20 ), + ( - 47 ) * - COALESCE ( 72, + + 47 + - - ( - COUNT( * ) ) - + ( COUNT( * ) ) * + - AVG ( ALL - - 6 ), 47 - + + 64 - COUNT( * ) * - COUNT( * ) ) + 2 + - 74 - - 65 - 82 * - 71 / 94 ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL - - CASE + 14 WHEN AVG ( ALL - ( + - NULLIF ( 91, - 26 * - 19 ) ) ) / - NULLIF ( - ( + 20 ), + ( - 47 ) * - COALESCE ( 72, + + 47 + - - ( - COUNT ( * ) ) - + ( COUNT ( * ) ) * + - AVG ( ALL - - 6 ), 47 - + + 64 - COUNT ( * ) * - COUNT ( * ) ) + 2 + - 74 - - 65 - 82 * - 71 / 94 ) THEN + COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9369
SELECT DISTINCT + 79 DIV + 21 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT + 79 / + 21 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT DISTINCT + 29 * CAST( + AVG ( DISTINCT - 80 ) AS SIGNED ) * - 64 + - 0 AS col0
----
148480

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT + 29 * CAST ( + AVG ( DISTINCT - 80 ) AS INTEGER ) * - 64 + - 0 AS col0
----
148480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9371
SELECT DISTINCT CAST( + NULLIF ( + 97, - SUM( + NULLIF ( - 80, - 92 DIV - 47 + + 46 + + 52 DIV + 79 ) ) * - COALESCE ( + 9, - 18 ) ) AS SIGNED ) DIV + 70 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT CAST ( + NULLIF ( + 97, - SUM ( + NULLIF ( - 80, - 92 / - 47 + + 46 + + 52 / + 79 ) ) * - COALESCE ( + 9, - 18 ) ) AS INTEGER ) / + 70 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL COUNT( * ) * + COUNT( * ) * - 35 col0
----
-35

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL COUNT ( * ) * + COUNT ( * ) * - 35 col0
----
-35

query II rowsort
SELECT ALL 11 col1, 7 - + 18 * 39 col2
----
11
-695

query I rowsort
SELECT 6 * + 43 AS col0
----
258

query I rowsort
SELECT 13 + + 55 AS col1
----
68

query I rowsort
SELECT ALL ( - 63 ) + - 34
----
-97

query I rowsort
SELECT + 89 + + 8 AS col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9378
SELECT - MIN( - 79 ) - - - 56 + - COALESCE ( - + COUNT( * ), + 7 ) DIV 8 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9378
SELECT - MIN ( - 79 ) - - - 56 + - COALESCE ( - + COUNT ( * ), + 7 ) / 8 AS col0
----
23

query II rowsort
SELECT - 21 col2, + 70
----
-21
70

query I rowsort
SELECT + 65 + - 47 + + + 25
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9381
SELECT - 71 - COUNT( * ) + NULLIF ( - + ( + COUNT( * ) ), 86 DIV - 92 ) + 18 DIV 47 + - + 73 DIV + 74 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-9381
SELECT - 71 - COUNT ( * ) + NULLIF ( - + ( + COUNT ( * ) ), 86 / - 92 ) + 18 / 47 + - + 73 / + 74 AS col0
----
-73

query I rowsort
SELECT DISTINCT 88 * + - 46 AS col2
----
-4048

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9383
SELECT 97 AS col1, CAST( NULL AS SIGNED ) + - 7 / + 28 AS col2
----
97
NULL

skipif mysql # not compatible
query II rowsort label-9383
SELECT 97 AS col1, CAST ( NULL AS INTEGER ) + - 7 / + 28 AS col2
----
97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9384
SELECT DISTINCT CAST( 78 AS SIGNED ) + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT CAST ( 78 AS INTEGER ) + COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT DISTINCT - 15 * + COUNT( DISTINCT - 24 ) * - - CASE 98 WHEN - 15 + + SUM( + 80 ) THEN + 95 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT - 15 * + COUNT ( DISTINCT - 24 ) * - - CASE 98 WHEN - 15 + + SUM ( + 80 ) THEN + 95 END col2
----
NULL

query I rowsort
SELECT ALL + 61 + 76 * + - 11
----
-775

query I rowsort
SELECT - ( + 0 ) + + - 37 AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9388
SELECT ALL 17 + 9 DIV + 82 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL 17 + 9 / + 82 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT - SUM( ALL + + ( + 91 ) ) + 49 * - + ( - COUNT( * ) ) * - 25 AS col2
----
-1316

skipif mysql # not compatible
query I rowsort label-9389
SELECT - SUM ( ALL + + ( + 91 ) ) + 49 * - + ( - COUNT ( * ) ) * - 25 AS col2
----
-1316

query I rowsort
SELECT + 99 * - - 17 AS col0
----
1683

query I rowsort
SELECT DISTINCT - 16 * - 77 AS col1
----
1232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT DISTINCT 64 * 77 - + 97 + - ( CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT 64 * 77 - + 97 + - ( CAST ( NULL AS INTEGER ) ) col1
----
NULL

query II rowsort
SELECT - - 62 * - 92 * + 99, + 15 AS col0
----
-564696
15

query I rowsort
SELECT DISTINCT - 57 * + 29
----
-1653

query I rowsort
SELECT DISTINCT - COALESCE ( - 94, 69 ) * + 79 - 56
----
7370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9396
SELECT ALL - COUNT( * ) DIV - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL - COUNT ( * ) / - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT DISTINCT + + COALESCE ( + 25, + 38 ) AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9398
SELECT + MIN( - CAST( NULL AS SIGNED ) ) / - CAST( 78 AS SIGNED ) - - 7 - - 59 * + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) / - CAST ( 78 AS INTEGER ) - - 7 - - 59 * + 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9399
SELECT ALL + 41 DIV 23 - - - COALESCE ( - 10, - + MAX( ALL 58 ) ) AS col1, + 93 * - - 90
----
11
8370

skipif mysql # not compatible
query II rowsort label-9399
SELECT ALL + 41 / 23 - - - COALESCE ( - 10, - + MAX ( ALL 58 ) ) AS col1, + 93 * - - 90
----
11
8370

query I rowsort
SELECT DISTINCT - 50 * - + 60
----
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL 82 * - + 4 * MIN( ALL COALESCE ( - - 41, - 21 ) ) + + + 0 * + 12 AS col1
----
-13448

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL 82 * - + 4 * MIN ( ALL COALESCE ( - - 41, - 21 ) ) + + + 0 * + 12 AS col1
----
-13448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9402
SELECT - + MAX( - - 89 ) DIV - + 85 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9402
SELECT - + MAX ( - - 89 ) / - + 85 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9403
SELECT ALL + + 21 AS col2, - 44 * COUNT( * )
----
21
-44

skipif mysql # not compatible
query II rowsort label-9403
SELECT ALL + + 21 AS col2, - 44 * COUNT ( * )
----
21
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT ALL + ( + + 69 ) * SUM( - 51 ) * + COALESCE ( - + 29, COUNT( - 57 ) - + 39 ) * ( - 0 ) + + 97 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL + ( + + 69 ) * SUM ( - 51 ) * + COALESCE ( - + 29, COUNT ( - 57 ) - + 39 ) * ( - 0 ) + + 97 AS col0
----
97

query I rowsort
SELECT - - 11 * - 9 AS col1
----
-99

query I rowsort
SELECT ALL - 90 * - 83 * 87 + - 48 - + + NULLIF ( - 72, + 8 ) * - - 86 + - 78
----
655956

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT DISTINCT - + COUNT( * ) * - 96 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT - + COUNT ( * ) * - 96 AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9408
SELECT + CAST( + 99 AS SIGNED ) + + + 97
----
196

skipif mysql # not compatible
query I rowsort label-9408
SELECT + CAST ( + 99 AS INTEGER ) + + + 97
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9409
SELECT - CASE + + CASE - 99 WHEN COUNT( * ) THEN NULL ELSE - CAST( - - COUNT( * ) AS SIGNED ) END WHEN + 19 THEN + - ( + COUNT( * ) ) + 10 ELSE + 20 END
----
-20

skipif mysql # not compatible
query I rowsort label-9409
SELECT - CASE + + CASE - 99 WHEN COUNT ( * ) THEN NULL ELSE - CAST ( - - COUNT ( * ) AS INTEGER ) END WHEN + 19 THEN + - ( + COUNT ( * ) ) + 10 ELSE + 20 END
----
-20

query I rowsort
SELECT - 12 * 85 + 18
----
-1002

query I rowsort
SELECT ALL 83 + - 11 AS col2
----
72

query I rowsort
SELECT + 65 * - 64 * 71
----
-295360

query I rowsort
SELECT DISTINCT 77 + + ( - - 50 ) AS col2
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9414
SELECT DISTINCT CAST( - 49 AS SIGNED ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT CAST ( - 49 AS INTEGER ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT ALL - SUM( - ( - 74 ) ) + ( - - 25 ) + 77 * 13 AS col1
----
952

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL - SUM ( - ( - 74 ) ) + ( - - 25 ) + 77 * 13 AS col1
----
952

query I rowsort
SELECT ALL 12 * 48 AS col2
----
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT DISTINCT CAST( NULL AS SIGNED ) / 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9418
SELECT DISTINCT + 74 + - - 69 * - 10 * MIN( - 54 ) AS col1, + 43 + COUNT( * ) AS col2
----
37334
44

skipif mysql # not compatible
query II rowsort label-9418
SELECT DISTINCT + 74 + - - 69 * - 10 * MIN ( - 54 ) AS col1, + 43 + COUNT ( * ) AS col2
----
37334
44

query I rowsort
SELECT ALL 76 * 87 * + 9
----
59508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9420
SELECT - CAST( COUNT( 14 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9420
SELECT - CAST ( COUNT ( 14 ) AS INTEGER )
----
-1

query I rowsort
SELECT + 76 - + - 50 + 0 * - + 9 * - - 17 AS col2
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9422
SELECT - 58 DIV + - COALESCE ( - COUNT( * ), + ( - - ( 34 ) ) )
----
-58

skipif mysql # not compatible
query I rowsort label-9422
SELECT - 58 / + - COALESCE ( - COUNT ( * ), + ( - - ( 34 ) ) )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9423
SELECT + 69 * + COALESCE ( - 86, - + CAST( + + 96 AS SIGNED ) + - 47, - 60 ), 82 AS col1
----
-5934
82

skipif mysql # not compatible
query II rowsort label-9423
SELECT + 69 * + COALESCE ( - 86, - + CAST ( + + 96 AS INTEGER ) + - 47, - 60 ), 82 AS col1
----
-5934
82

query I rowsort
SELECT DISTINCT + ( + 83 )
----
83

query I rowsort
SELECT ALL + CASE 70 WHEN + + 56 THEN 92 WHEN + + 34 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + - 17 * + 72 AS col1
----
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL + - NULLIF ( + + 94, + + MAX( ALL - 58 ) - - ( - - 51 ) )
----
-94

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL + - NULLIF ( + + 94, + + MAX ( ALL - 58 ) - - ( - - 51 ) )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9428
SELECT ALL + - CASE + 21 WHEN + 69 THEN - COALESCE ( - COUNT( * ), 41 + 67, 60 / - 95 * - - 64 ) / - + 95 + 27 + ( + + NULLIF ( + 91, - + CASE + 26 WHEN - ( 63 ) * + + 70 THEN 86 WHEN - 69 * - CAST( - 3 AS SIGNED ) * + - CASE - + CAST( NULL AS SIGNED ) WHEN - + 47 THEN + 4 + 88 + CASE COUNT( * ) WHEN 67 THEN - - 89 WHEN - AVG ( DISTINCT - CAST( NULLIF ( - - 53, + 29 + + ( + - ( - ( CAST( NULL AS SIGNED ) ) ) ) * + 74 * 68 ) AS DECIMAL ) ) THEN NULL ELSE NULL END / 63 ELSE NULL END + + 4 * + 82 THEN - COUNT( * ) * 3 + - 68 END - MIN( + 33 ) ) ) ELSE NULL END * + ( 90 * 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL + - CASE + 21 WHEN + 69 THEN - COALESCE ( - COUNT ( * ), 41 + 67, 60 / - 95 * - - 64 ) / - + 95 + 27 + ( + + NULLIF ( + 91, - + CASE + 26 WHEN - ( 63 ) * + + 70 THEN 86 WHEN - 69 * - CAST ( - 3 AS INTEGER ) * + - CASE - + CAST ( NULL AS INTEGER ) WHEN - + 47 THEN + 4 + 88 + CASE COUNT ( * ) WHEN 67 THEN - - 89 WHEN - AVG ( DISTINCT - CAST ( NULLIF ( - - 53, + 29 + + ( + - ( - ( CAST ( NULL AS INTEGER ) ) ) ) * + 74 * 68 ) AS REAL ) ) THEN NULL ELSE NULL END / 63 ELSE NULL END + + 4 * + 82 THEN - COUNT ( * ) * 3 + - 68 END - MIN ( + 33 ) ) ) ELSE NULL END * + ( 90 * 58 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT + 86 * + + 60 * + + CASE COUNT( + - ( + 10 ) ) WHEN - 81 THEN + COALESCE ( + 11, - NULLIF ( + 30, 0 ) + - + ( 2 ) / - 2, - - 46 ) + COUNT( * ) WHEN COUNT( + + 68 ) THEN NULL ELSE 1 END * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT + 86 * + + 60 * + + CASE COUNT ( + - ( + 10 ) ) WHEN - 81 THEN + COALESCE ( + 11, - NULLIF ( + 30, 0 ) + - + ( 2 ) / - 2, - - 46 ) + COUNT ( * ) WHEN COUNT ( + + 68 ) THEN NULL ELSE 1 END * 13
----
NULL

query I rowsort
SELECT - 56 * + 81
----
-4536

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT + + COALESCE ( + - 73, + COUNT( 28 ) * 35 + + + 29 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-9431
SELECT + + COALESCE ( + - 73, + COUNT ( 28 ) * 35 + + + 29 ) AS col2
----
-73

query I rowsort
SELECT - 74 * - 91 AS col0
----
6734

query II rowsort
SELECT ALL + 12 * 36 * 63 + 31 AS col0, 38 AS col2
----
27247
38

query I rowsort
SELECT + 13 + 52 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ( + - MAX( DISTINCT 32 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-9435
SELECT ( + - MAX ( DISTINCT 32 ) )
----
-32

query I rowsort
SELECT + + 90 * + ( + + ( - 54 ) )
----
-4860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9437
SELECT + 11 * 79 * CAST( NULL AS SIGNED ) + ( - 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9437
SELECT + 11 * 79 * CAST ( NULL AS INTEGER ) + ( - 45 ) AS col0
----
NULL

query I rowsort
SELECT - - 57 + 36 AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9439
SELECT ALL - 65 DIV - 42 + - ( - - 35 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL - 65 / - 42 + - ( - - 35 ) AS col0
----
-34

query I rowsort
SELECT - - 65 + - ( + 5 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT - 70 * - 3 * + 63 + - COALESCE ( - 8, - COUNT( * ) ) * - NULLIF ( - COUNT( * ), 34 / - - 20 + - 3 ) + 96
----
13334

skipif mysql # not compatible
query I rowsort label-9441
SELECT - 70 * - 3 * + 63 + - COALESCE ( - 8, - COUNT ( * ) ) * - NULLIF ( - COUNT ( * ), 34 / - - 20 + - 3 ) + 96
----
13334

onlyif mysql # DIV for integer division: 
query II rowsort label-9442
SELECT 25 * 18 * + 34, - 79 DIV + 69 AS col2
----
15300
-1

skipif mysql # not compatible
query II rowsort label-9442
SELECT 25 * 18 * + 34, - 79 / + 69 AS col2
----
15300
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9443
SELECT 67 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT 67 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL + 33 * + + COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL + 33 * + + COUNT ( * ) AS col0
----
33

query I rowsort
SELECT DISTINCT - 78 * - 56 col1
----
4368

query I rowsort
SELECT 57 - 31 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT DISTINCT - MAX( ALL + 39 ) + COUNT( * ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT - MAX ( ALL + 39 ) + COUNT ( * ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT ALL + 33 * - 54 * - - COUNT( * ) AS col0
----
-1782

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL + 33 * - 54 * - - COUNT ( * ) AS col0
----
-1782

onlyif mysql # DIV for integer division: 
query I rowsort label-9449
SELECT DISTINCT + 15 * + 19 * 40 DIV - 40 AS col1
----
-285

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT + 15 * + 19 * 40 / - 40 AS col1
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT SUM( DISTINCT ( - 17 ) ) + - 57 col0
----
-74

skipif mysql # not compatible
query I rowsort label-9450
SELECT SUM ( DISTINCT ( - 17 ) ) + - 57 col0
----
-74

query I rowsort
SELECT ( - 7 ) - 81 AS col1
----
-88

query II rowsort
SELECT DISTINCT 90, + 33 AS col2
----
90
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT 66 + + + 44 * + + COUNT( * ) + - 25 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9453
SELECT 66 + + + 44 * + + COUNT ( * ) + - 25 AS col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9454
SELECT ALL COUNT( * ) DIV + + 23
----
0

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL COUNT ( * ) / + + 23
----
0

query I rowsort
SELECT 82 + 87
----
169

onlyif mysql # aggregate syntax: 
query II rowsort label-9456
SELECT - 51 AS col2, 3 * + COALESCE ( 54, - - COUNT( * ), NULLIF ( 61, - - 50 ) + COUNT( DISTINCT ( + 63 ) ) ) + NULLIF ( - 76, - 50 )
----
-51
86

skipif mysql # not compatible
query II rowsort label-9456
SELECT - 51 AS col2, 3 * + COALESCE ( 54, - - COUNT ( * ), NULLIF ( 61, - - 50 ) + COUNT ( DISTINCT ( + 63 ) ) ) + NULLIF ( - 76, - 50 )
----
-51
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9457
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) + ( 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) + ( 33 )
----
NULL

query I rowsort
SELECT ALL 87 * - 92
----
-8004

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT 72 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT 72 / 86
----
0

query I rowsort
SELECT DISTINCT 22 * + 10 AS col1
----
220

query I rowsort
SELECT ( 38 ) * 89 AS col2
----
3382

onlyif mysql # DIV for integer division: 
query I rowsort label-9462
SELECT 10 DIV ( 47 DIV - 20 )
----
-5

skipif mysql # not compatible
query I rowsort label-9462
SELECT 10 / ( 47 / - 20 )
----
-5

query I rowsort
SELECT ALL 21 + + 52 * 8
----
437

query I rowsort
SELECT ALL + 36 + 79
----
115

query I rowsort
SELECT DISTINCT 73 + - 0 AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9466
SELECT ALL CAST( 23 AS SIGNED ) + - MAX( 36 )
----
-13

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL CAST ( 23 AS INTEGER ) + - MAX ( 36 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT - 66 * 59 - COUNT( * ) * 30
----
-3924

skipif mysql # not compatible
query I rowsort label-9467
SELECT - 66 * 59 - COUNT ( * ) * 30
----
-3924

query I rowsort
SELECT 35 * CASE - 27 WHEN - 17 THEN 26 + 99 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT ALL - 92 + + SUM( - 93 )
----
-185

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL - 92 + + SUM ( - 93 )
----
-185

query I rowsort
SELECT 60 * - 84 AS col1
----
-5040

query I rowsort
SELECT 67 + + 2 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT 86 * - NULLIF ( SUM( 25 ), - 51 ) AS col2
----
-2150

skipif mysql # not compatible
query I rowsort label-9472
SELECT 86 * - NULLIF ( SUM ( 25 ), - 51 ) AS col2
----
-2150

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT 92 + 78 DIV 3
----
118

skipif mysql # not compatible
query I rowsort label-9473
SELECT 92 + 78 / 3
----
118

query I rowsort
SELECT DISTINCT - 57 * 91
----
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT ALL MAX( - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL MAX ( - 92 )
----
-92

query I rowsort
SELECT 76 * 86 col0
----
6536

query I rowsort
SELECT ALL - 30 * 18 AS col0
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT DISTINCT - 57 * - SUM( - 58 )
----
-3306

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT - 57 * - SUM ( - 58 )
----
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT ALL MAX( ALL 38 )
----
38

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL MAX ( ALL 38 )
----
38

query I rowsort
SELECT CASE + 96 WHEN + 57 * + 59 THEN 35 + 50 WHEN ( 73 ) + - 90 THEN NULL WHEN + 9 THEN NULL END * + 7 col2
----
NULL

query I rowsort
SELECT ALL + ( - 27 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9482
SELECT CAST( NULL AS SIGNED ) - - 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT CAST ( NULL AS INTEGER ) - - 87 AS col1
----
NULL

query I rowsort
SELECT ALL + 95 + + 75 AS col1
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9484
SELECT ALL - CASE COUNT( * ) WHEN 15 THEN - NULLIF ( + 22, 90 + 58 ) WHEN + 25 + + 80 THEN + 68 + COUNT( * ) DIV - 76 ELSE + 53 END + 45 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL - CASE COUNT ( * ) WHEN 15 THEN - NULLIF ( + 22, 90 + 58 ) WHEN + 25 + + 80 THEN + 68 + COUNT ( * ) / - 76 ELSE + 53 END + 45 AS col1
----
-8

query I rowsort
SELECT + 31 - 81
----
-50

query I rowsort
SELECT DISTINCT - 6 * 14 + + COALESCE ( - 40 + 57, - 38 + + 93 )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9487
SELECT + - MIN( + 44 ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-9487
SELECT + - MIN ( + 44 ) / + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT ALL + MIN( + 50 ) * 56 + 51 col2
----
2851

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL + MIN ( + 50 ) * 56 + 51 col2
----
2851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9489
SELECT - + MAX( CAST( 93 AS SIGNED ) ) + - 77 col1
----
-170

skipif mysql # not compatible
query I rowsort label-9489
SELECT - + MAX ( CAST ( 93 AS INTEGER ) ) + - 77 col1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT + CASE 11 WHEN + 56 * 56 THEN 79 END * NULLIF ( 91 + CASE 56 + - NULLIF ( 70, ( + COUNT( * ) ) * 99 ) / - ( + 27 ) WHEN - COUNT( * ) THEN NULLIF ( 61, 86 ) ELSE COUNT( * ) + COUNT( * ) END, - 86 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9490
SELECT + CASE 11 WHEN + 56 * 56 THEN 79 END * NULLIF ( 91 + CASE 56 + - NULLIF ( 70, ( + COUNT ( * ) ) * 99 ) / - ( + 27 ) WHEN - COUNT ( * ) THEN NULLIF ( 61, 86 ) ELSE COUNT ( * ) + COUNT ( * ) END, - 86 ) col2
----
NULL

query I rowsort
SELECT ( 78 ) col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT - 64 * - ( COUNT( * ) + - 55 ) + + 38 * 10
----
-3076

skipif mysql # not compatible
query I rowsort label-9492
SELECT - 64 * - ( COUNT ( * ) + - 55 ) + + 38 * 10
----
-3076

query I rowsort
SELECT + 43 * - 82 AS col1
----
-3526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9494
SELECT DISTINCT 54 DIV + - 93 * - ( COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT 54 / + - 93 * - ( COUNT ( * ) ) AS col2
----
0

query I rowsort
SELECT ALL 31 * - 77 - + 28 * + 95
----
-5047

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9496
SELECT + COALESCE ( + COUNT( - 99 ), 77 DIV 98 + 62 * - 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9496
SELECT + COALESCE ( + COUNT ( - 99 ), 77 / 98 + 62 * - 90 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT SUM( ALL 31 )
----
31

skipif mysql # not compatible
query I rowsort label-9497
SELECT SUM ( ALL 31 )
----
31

query I rowsort
SELECT COALESCE ( - COALESCE ( 17, + ( 76 ) + - 99 ), - 59 ) * + 81 + - 45 col0
----
-1422

query I rowsort
SELECT + 83 * + + 88 AS col2
----
7304

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT SUM( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-9500
SELECT SUM ( DISTINCT + 79 )
----
79

query I rowsort
SELECT - 41 * 77
----
-3157

query I rowsort
SELECT ALL - 70 * + COALESCE ( 17, 42 ) col0
----
-1190

query I rowsort
SELECT + 53 * + NULLIF ( 23, 77 * + 21 + + 23 ) AS col1
----
1219

query I rowsort
SELECT ALL 59 * - - 79 AS col1
----
4661

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL COALESCE ( + SUM( + 2 ), - ( COUNT( * ) ) * 47, + 98 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL COALESCE ( + SUM ( + 2 ), - ( COUNT ( * ) ) * 47, + 98 ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9506
SELECT - COUNT( * ) DIV ( + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-9506
SELECT - COUNT ( * ) / ( + 71 )
----
0

query I rowsort
SELECT ALL 11 * + - 49 AS col0
----
-539

query I rowsort
SELECT DISTINCT COALESCE ( + 2, - 51 + 22 * 79 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT - 99 + + - 19 + COUNT( * ) AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-9509
SELECT - 99 + + - 19 + COUNT ( * ) AS col0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT ALL MAX( 37 )
----
37

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL MAX ( 37 )
----
37

query I rowsort
SELECT - 75 * + + 80
----
-6000

query I rowsort
SELECT + 52 + - ( + 35 ) * 14 AS col0
----
-438

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT - MAX( ALL - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-9513
SELECT - MAX ( ALL - 37 )
----
37

query I rowsort
SELECT - + 5 * + + 7 * 64 AS col1
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT - 36 - + SUM( 29 ) + + NULLIF ( 93, + 60 * - 19 ) * - 13 * COUNT( * ) AS col1
----
-1274

skipif mysql # not compatible
query I rowsort label-9515
SELECT - 36 - + SUM ( 29 ) + + NULLIF ( 93, + 60 * - 19 ) * - 13 * COUNT ( * ) AS col1
----
-1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9516
SELECT ALL + 24 + ( - CASE SUM( ALL - 74 ) WHEN 11 THEN - ( + COUNT( * ) ) + + CAST( 40 + - ( - 11 + + 75 ) AS SIGNED ) * - 32 WHEN 47 * + 35 + - 43 THEN NULL WHEN CAST( + 77 AS SIGNED ) * + COUNT( * ) THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL + 24 + ( - CASE SUM ( ALL - 74 ) WHEN 11 THEN - ( + COUNT ( * ) ) + + CAST ( 40 + - ( - 11 + + 75 ) AS INTEGER ) * - 32 WHEN 47 * + 35 + - 43 THEN NULL WHEN CAST ( + 77 AS INTEGER ) * + COUNT ( * ) THEN NULL END ) AS col0
----
NULL

query I rowsort
SELECT - 79 + - 59 AS col0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT ALL COUNT( * ) + 39 + 5
----
45

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL COUNT ( * ) + 39 + 5
----
45

query I rowsort
SELECT ALL - 33 + + 97 + 12 * + 35 AS col2
----
484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9520
SELECT - - 28 + + 80 + 77 * COUNT( * ) DIV 63 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-9520
SELECT - - 28 + + 80 + 77 * COUNT ( * ) / 63 AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL NULLIF ( - 30, MAX( ALL 75 ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL NULLIF ( - 30, MAX ( ALL 75 ) ) AS col1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9522
SELECT - + 53 + - + 81 DIV + 23
----
-56

skipif mysql # not compatible
query I rowsort label-9522
SELECT - + 53 + - + 81 / + 23
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT DISTINCT + 31 + - COUNT( * ) - - 90
----
120

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT + 31 + - COUNT ( * ) - - 90
----
120

query I rowsort
SELECT ALL - 72 + + 23 + 91
----
42

query I rowsort
SELECT + COALESCE ( + 70, + 32, ( + 77 ) + 77, 92 * 35 ) col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9526
SELECT DISTINCT - ( + 68 ) DIV - COUNT( * ) - - 80 DIV 52 col1
----
69

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - ( + 68 ) / - COUNT ( * ) - - 80 / 52 col1
----
69

query I rowsort
SELECT - + 51 * - 2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT + COALESCE ( - 16, - MAX( + 77 ) + 58 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9528
SELECT + COALESCE ( - 16, - MAX ( + 77 ) + 58 ) AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-9529
SELECT 65 * + ( + + 40 ) + 43 DIV 4
----
2610

skipif mysql # not compatible
query I rowsort label-9529
SELECT 65 * + ( + + 40 ) + 43 / 4
----
2610

query I rowsort
SELECT ( + 18 ) AS col2
----
18

query I rowsort
SELECT - 83 * 78 * + CASE + 88 WHEN + 89 THEN NULL ELSE 67 END AS col2
----
-433758

query I rowsort
SELECT ( ( 11 ) )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL 71 * COUNT( * ) * 4
----
284

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL 71 * COUNT ( * ) * 4
----
284

query I rowsort
SELECT + 20 * 49 - - 51 - 40
----
991

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT + ( - + ( + 2 ) ) DIV NULLIF ( ( 96 ) * - 59, 86 )
----
0

skipif mysql # not compatible
query I rowsort label-9535
SELECT + ( - + ( + 2 ) ) / NULLIF ( ( 96 ) * - 59, 86 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT + CASE 69 WHEN - 32 / + 74 THEN 61 + - 63 * COUNT( * ) ELSE NULL END * 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT + CASE 69 WHEN - 32 / + 74 THEN 61 + - 63 * COUNT ( * ) ELSE NULL END * 7 AS col2
----
NULL

query I rowsort
SELECT ALL - 11 * 85 AS col0
----
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT + 57 * - COUNT( ALL 70 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT + 57 * - COUNT ( ALL 70 ) AS col0
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9539
SELECT CAST( NULL AS DECIMAL ) * - COALESCE ( + 85, 74, + 84 * + 85 ) - + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT CAST ( NULL AS REAL ) * - COALESCE ( + 85, 74, + 84 * + 85 ) - + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT ALL COALESCE ( + COUNT( * ), - 71, - 44 * 7 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL COALESCE ( + COUNT ( * ), - 71, - 44 * 7 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9541
SELECT ALL 25 * - 53 + - + 1 DIV - 3
----
-1325

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL 25 * - 53 + - + 1 / - 3
----
-1325

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT COUNT( DISTINCT 6 )
----
1

skipif mysql # not compatible
query I rowsort label-9542
SELECT COUNT ( DISTINCT 6 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT COUNT( DISTINCT - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-9543
SELECT COUNT ( DISTINCT - 69 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT DISTINCT MIN( DISTINCT 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT MIN ( DISTINCT 5 ) AS col2
----
5

query I rowsort
SELECT ALL + 43 * + NULLIF ( ( 73 ), - 96 * - 36 + 46 ) + ( 9 )
----
3148

query I rowsort
SELECT + + 23 * + 17
----
391

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT - + 17 + + CASE - 49 WHEN + 12 + + 2 * CASE - 51 + - COUNT( * ) WHEN - 69 THEN 35 * - 81 WHEN 8 * - COUNT( * ) THEN + COUNT( * ) * 15 + ( 45 ) ELSE NULL END THEN NULL WHEN + 81 THEN - 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT - + 17 + + CASE - 49 WHEN + 12 + + 2 * CASE - 51 + - COUNT ( * ) WHEN - 69 THEN 35 * - 81 WHEN 8 * - COUNT ( * ) THEN + COUNT ( * ) * 15 + ( 45 ) ELSE NULL END THEN NULL WHEN + 81 THEN - 0 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL + MIN( - + 60 ) + - 32 + + 28
----
-64

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + MIN ( - + 60 ) + - 32 + + 28
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT + + MAX( 71 ) * + + 86
----
6106

skipif mysql # not compatible
query I rowsort label-9549
SELECT + + MAX ( 71 ) * + + 86
----
6106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9550
SELECT ALL 83 + + + 59 + - - NULLIF ( CAST( NULL AS SIGNED ), - 47 ) + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL 83 + + + 59 + - - NULLIF ( CAST ( NULL AS INTEGER ), - 47 ) + + 98
----
NULL

query I rowsort
SELECT - 53 * - + 84 AS col1
----
4452

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT 74 - + + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-9552
SELECT 74 - + + COUNT ( * )
----
73

query I rowsort
SELECT DISTINCT - ( + - 42 ) AS col2
----
42

query I rowsort
SELECT 21 - - 78 + + + 10 * - 17
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-9555
SELECT 64 DIV 2
----
32

skipif mysql # not compatible
query I rowsort label-9555
SELECT 64 / 2
----
32

query I rowsort
SELECT ALL - + 68 - + 43 * - - 76
----
-3336

onlyif mysql # DIV for integer division: 
query I rowsort label-9557
SELECT NULLIF ( + 81, + CASE - 5 WHEN + 13 THEN NULL ELSE 37 + 6 END + 96 ) DIV - 41 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9557
SELECT NULLIF ( + 81, + CASE - 5 WHEN + 13 THEN NULL ELSE 37 + 6 END + 96 ) / - 41 AS col2
----
-1

query I rowsort
SELECT ALL - ( - 9 ) AS col1
----
9

query I rowsort
SELECT 35 + - + NULLIF ( + 8, 3 ) - + 8 AS col1
----
19

query I rowsort
SELECT DISTINCT + 88 * + + 40 AS col2
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT 50 + + MIN( + - 38 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9561
SELECT 50 + + MIN ( + - 38 ) AS col2
----
12

query II rowsort
SELECT 86 * - 22 AS col2, 90
----
-1892
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT ALL - COALESCE ( 91, - ( COUNT( * ) ), + 66 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL - COALESCE ( 91, - ( COUNT ( * ) ), + 66 ) AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT + 53 * - 47 + + CASE + 29 WHEN - 73 * 32 THEN 98 END + - COALESCE ( 15, CAST( NULL AS SIGNED ) * + CASE + 81 WHEN - 28 THEN 49 * 91 END, - 64 ) * 82 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT + 53 * - 47 + + CASE + 29 WHEN - 73 * 32 THEN 98 END + - COALESCE ( 15, CAST ( NULL AS INTEGER ) * + CASE + 81 WHEN - 28 THEN 49 * 91 END, - 64 ) * 82 col2
----
NULL

query I rowsort
SELECT ALL - 16 + 46 * COALESCE ( - + 24, + 44 )
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT DISTINCT MAX( ALL + 18 ) * - ( 65 ) * 69 AS col0
----
-80730

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT MAX ( ALL + 18 ) * - ( 65 ) * 69 AS col0
----
-80730

query I rowsort
SELECT DISTINCT - 98 + + 69 AS col0
----
-29

query I rowsort
SELECT COALESCE ( + 80, - - 71 + - + 88 * - 20, 53 ) * - 96 AS col0
----
-7680

query I rowsort
SELECT 16 * 6 * - 67 + - + 58 * 16
----
-7360

query I rowsort
SELECT ALL - 80 + - - 39
----
-41

query I rowsort
SELECT DISTINCT + 26 * - + 26 * - + 54
----
36504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9572
SELECT CAST( NULL AS SIGNED ) * 37 * + 86 * + CASE 79 WHEN + 55 + 92 * 29 THEN NULL ELSE - 33 END + COUNT( * ) * + CASE 85 WHEN + 92 THEN - COUNT( * ) + + 37 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9572
SELECT CAST ( NULL AS INTEGER ) * 37 * + 86 * + CASE 79 WHEN + 55 + 92 * 29 THEN NULL ELSE - 33 END + COUNT ( * ) * + CASE 85 WHEN + 92 THEN - COUNT ( * ) + + 37 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9573
SELECT CAST( NULL AS SIGNED ) * - 14 * + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9573
SELECT CAST ( NULL AS INTEGER ) * - 14 * + 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT + COUNT( * ) * - 26 col1
----
-26

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT + COUNT ( * ) * - 26 col1
----
-26

query I rowsort
SELECT DISTINCT + 55 * - + 69 AS col1
----
-3795

query I rowsort
SELECT DISTINCT + 39 + - + 21 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT CAST( + 94 AS SIGNED ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9577
SELECT CAST ( + 94 AS INTEGER ) AS col2
----
94

query I rowsort
SELECT 10 + 32 * + 75
----
2410

query II rowsort
SELECT + 50 + 56 AS col1, + CASE - ( - 49 ) WHEN 50 THEN - 97 WHEN + 32 * + 49 THEN NULL END - + 59
----
106
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ALL MIN( DISTINCT - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL MIN ( DISTINCT - 35 )
----
-35

query I rowsort
SELECT NULLIF ( - + 79, + 76 ) * 11 AS col0
----
-869

query I rowsort
SELECT ALL 17 - + 43 + + + 79 col1
----
53

query I rowsort
SELECT 66 * + 11
----
726

query I rowsort
SELECT DISTINCT 56 * - 90 * 36
----
-181440

query II rowsort
SELECT DISTINCT + 62 * - 20, 67 AS col2
----
-1240
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT 28 * 15 + - COALESCE ( + 32, 41 * 46, - MIN( ALL 96 ) ) AS col0
----
388

skipif mysql # not compatible
query I rowsort label-9586
SELECT 28 * 15 + - COALESCE ( + 32, 41 * 46, - MIN ( ALL 96 ) ) AS col0
----
388

query II rowsort
SELECT 58 + 70 AS col0, - 65 + + - 46 col0
----
128
-111

query I rowsort
SELECT ALL 83 - + + 73 + + - 88 * 68 - - 68
----
-5906

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT COUNT( * ) * - - 7
----
7

skipif mysql # not compatible
query I rowsort label-9589
SELECT COUNT ( * ) * - - 7
----
7

query I rowsort
SELECT - + 61 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT 80 + - COUNT( * ) + + - ( - 78 ) * - NULLIF ( 5, + 2 ) AS col0
----
-311

skipif mysql # not compatible
query I rowsort label-9591
SELECT 80 + - COUNT ( * ) + + - ( - 78 ) * - NULLIF ( 5, + 2 ) AS col0
----
-311

onlyif mysql # aggregate syntax: 
query II rowsort label-9592
SELECT COUNT( * ), 45 - - - 23 + + CASE - + 44 WHEN - 59 * 91 THEN NULL WHEN 96 * + 78 THEN - COUNT( * ) END col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9592
SELECT COUNT ( * ), 45 - - - 23 + + CASE - + 44 WHEN - 59 * 91 THEN NULL WHEN 96 * + 78 THEN - COUNT ( * ) END col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT + SUM( ALL - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-9593
SELECT + SUM ( ALL - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT DISTINCT 24 * + 99 + COUNT( * ) col1
----
2377

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT 24 * + 99 + COUNT ( * ) col1
----
2377

query I rowsort
SELECT ALL - 11 * + 75 AS col2
----
-825

onlyif mysql # DIV for integer division: 
query I rowsort label-9596
SELECT DISTINCT 53 DIV + 54 * + + 36 * - - 36
----
0

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT 53 / + 54 * + + 36 * - - 36
----
0

query I rowsort
SELECT ALL - 82 * + 11 + + + 12 AS col2
----
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL + 99 * 88 * COALESCE ( + - 62, - COUNT( * ), 42 * 95 ) + 83
----
-540061

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL + 99 * 88 * COALESCE ( + - 62, - COUNT ( * ), 42 * 95 ) + 83
----
-540061

query I rowsort
SELECT 95 * - + 85 AS col0
----
-8075

query I rowsort
SELECT ALL - 12 * + 6 AS col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9601
SELECT 39 * - CAST( 96 AS SIGNED ) + - - ( 20 ) * - 9
----
-3924

skipif mysql # not compatible
query I rowsort label-9601
SELECT 39 * - CAST ( 96 AS INTEGER ) + - - ( 20 ) * - 9
----
-3924

onlyif mysql # aggregate syntax: 
query II rowsort label-9602
SELECT COUNT( * ) AS col2, ( 27 ) * 20 + + - 18 AS col2
----
1
522

skipif mysql # not compatible
query II rowsort label-9602
SELECT COUNT ( * ) AS col2, ( 27 ) * 20 + + - 18 AS col2
----
1
522

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL + COUNT( * ) + - ( + ( - COUNT( * ) ) ) + - COUNT( DISTINCT 59 ) * - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL + COUNT ( * ) + - ( + ( - COUNT ( * ) ) ) + - COUNT ( DISTINCT 59 ) * - COUNT ( * ) AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9604
SELECT COUNT( * ) * - 34 DIV + 60 - 89 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-9604
SELECT COUNT ( * ) * - 34 / + 60 - 89 AS col0
----
-89

query I rowsort
SELECT DISTINCT + 21 + - 22 * - + 69 AS col1
----
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT 94 - + - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9606
SELECT 94 - + - COUNT ( * )
----
95

query I rowsort
SELECT ALL + 40 + - 52
----
-12

query II rowsort
SELECT 1 * + 41 - - - 86 AS col0, 25 + + + 20 AS col2
----
-45
45

query I rowsort
SELECT - + 40 + 84 col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT DISTINCT - + 64 - COUNT( * ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT - + 64 - COUNT ( * ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-9611
SELECT 53 AS col2, - 2 * 25 - - + COUNT( * ) AS col2
----
53
-49

skipif mysql # not compatible
query II rowsort label-9611
SELECT 53 AS col2, - 2 * 25 - - + COUNT ( * ) AS col2
----
53
-49

query I rowsort
SELECT - + 78 col0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9613
SELECT - - 96 * MAX( ALL 77 ) + + 8 + - CAST( NULL AS SIGNED ) * + CASE ( 73 ) WHEN NULLIF ( 75, - 11 ) THEN NULL ELSE - 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT - - 96 * MAX ( ALL 77 ) + + 8 + - CAST ( NULL AS INTEGER ) * + CASE ( 73 ) WHEN NULLIF ( 75, - 11 ) THEN NULL ELSE - 47 END AS col1
----
NULL

query I rowsort
SELECT ALL - + CASE - + ( CASE 9 WHEN + 84 * 45 THEN 4 END ) WHEN - 39 THEN NULL WHEN 66 THEN + 16 * - 94 END * 31 AS col2
----
NULL

query I rowsort
SELECT - ( + - 31 )
----
31

query I rowsort
SELECT DISTINCT - 45 col2
----
-45

query I rowsort
SELECT - 62 * 96 AS col0
----
-5952

query I rowsort
SELECT ALL - - 97 * 37 AS col0
----
3589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9619
SELECT ALL CAST( NULL AS SIGNED ) / NULLIF ( - + 15, - - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL CAST ( NULL AS INTEGER ) / NULLIF ( - + 15, - - COUNT ( * ) ) col2
----
NULL

query I rowsort
SELECT + NULLIF ( 92, + - 83 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9621
SELECT - - 53 DIV + - 75
----
0

skipif mysql # not compatible
query I rowsort label-9621
SELECT - - 53 / + - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT MIN( - 30 ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-9622
SELECT MIN ( - 30 ) col2
----
-30

query I rowsort
SELECT + 20 * + - 24
----
-480

query II rowsort
SELECT ALL - 63 AS col0, 36 * - 61 * + 55 * 82 col0
----
-63
-9903960

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT - - 3 - - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-9625
SELECT - - 3 - - COUNT ( * )
----
4

query I rowsort
SELECT + 36 + + - 21
----
15

query II rowsort
SELECT 92, - 82 - - + 35 AS col2
----
92
-47

query I rowsort
SELECT ALL 48 * 57 AS col1
----
2736

query I rowsort
SELECT DISTINCT - 70 + 2 AS col2
----
-68

query II rowsort
SELECT ALL 19 + + 53 AS col1, + 8 * + + 3 * - 51 AS col0
----
72
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT - CASE + COUNT( * ) WHEN 44 THEN COUNT( * ) * - 4 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9631
SELECT - CASE + COUNT ( * ) WHEN 44 THEN COUNT ( * ) * - 4 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9632
SELECT ALL 95 + + 62 + + ( - COALESCE ( - + COUNT( * ), CAST( NULL AS SIGNED ) ) )
----
158

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL 95 + + 62 + + ( - COALESCE ( - + COUNT ( * ), CAST ( NULL AS INTEGER ) ) )
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9633
SELECT DISTINCT CASE - 73 WHEN COUNT( * ) * 26 + - COALESCE ( 8, 22, - COALESCE ( COUNT( * ), - 21, - 16 ) ) + MIN( 66 ) * 84 THEN - 96 END * AVG ( - CAST( - CAST( - 89 AS SIGNED ) AS SIGNED ) ) + - SUM( DISTINCT 67 + - 52 * 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT CASE - 73 WHEN COUNT ( * ) * 26 + - COALESCE ( 8, 22, - COALESCE ( COUNT ( * ), - 21, - 16 ) ) + MIN ( 66 ) * 84 THEN - 96 END * AVG ( - CAST ( - CAST ( - 89 AS INTEGER ) AS INTEGER ) ) + - SUM ( DISTINCT 67 + - 52 * 51 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9634
SELECT + 57 * - + COUNT( * ) - + 89 * 67 DIV - - 2 - + ( + 40 ) AS col1
----
-3078

skipif mysql # not compatible
query I rowsort label-9634
SELECT + 57 * - + COUNT ( * ) - + 89 * 67 / - - 2 - + ( + 40 ) AS col1
----
-3078

query II rowsort
SELECT ALL + 30 col2, + 14
----
30
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT + SUM( ALL - 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-9636
SELECT + SUM ( ALL - 43 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT 53 * - + COUNT( * ) + + - 10
----
-63

skipif mysql # not compatible
query I rowsort label-9637
SELECT 53 * - + COUNT ( * ) + + - 10
----
-63

query I rowsort
SELECT + COALESCE ( - 79, 42 ) AS col2
----
-79

query II rowsort
SELECT + 25, - 4 + + ( - 23 ) AS col0
----
25
-27

query II rowsort
SELECT + 79, - 66 AS col1
----
79
-66

query I rowsort
SELECT ( COALESCE ( 62, - 82 * - 18 * + 14 ) ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT 53 * - 82 + + - 39 + + CASE 14 WHEN - 11 THEN NULL WHEN - 1 + 70 THEN - 33 - ( COUNT( * ) ) WHEN 83 THEN NULL END + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT 53 * - 82 + + - 39 + + CASE 14 WHEN - 11 THEN NULL WHEN - 1 + 70 THEN - 33 - ( COUNT ( * ) ) WHEN 83 THEN NULL END + - 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT ALL - 81 DIV 44
----
-1

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL - 81 / 44
----
-1

query I rowsort
SELECT + ( 57 ) AS col0
----
57

query I rowsort
SELECT ALL + ( + 52 ) AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9646
SELECT DISTINCT - COUNT( + 40 ) * - CAST( + 93 AS SIGNED ) - + - 79 + ( + 8 ) * 36 * + 41 AS col1
----
11980

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT - COUNT ( + 40 ) * - CAST ( + 93 AS INTEGER ) - + - 79 + ( + 8 ) * 36 * + 41 AS col1
----
11980

query I rowsort
SELECT - - 11 + + 38 AS col1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9648
SELECT + + COUNT( * ) AS col0, CASE + 42 WHEN + MIN( - 19 ) THEN - 11 ELSE NULL END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9648
SELECT + + COUNT ( * ) AS col0, CASE + 42 WHEN + MIN ( - 19 ) THEN - 11 ELSE NULL END AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9649
SELECT MIN( 9 ), - CAST( NULL AS SIGNED ) + - - 34 + - + CAST( NULL AS DECIMAL ) + 17 AS col0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-9649
SELECT MIN ( 9 ), - CAST ( NULL AS INTEGER ) + - - 34 + - + CAST ( NULL AS REAL ) + 17 AS col0
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT - + COUNT( * ) * NULLIF ( - MAX( + 60 ), 62 * + 47 + ( 17 ) ) + 8
----
68

skipif mysql # not compatible
query I rowsort label-9650
SELECT - + COUNT ( * ) * NULLIF ( - MAX ( + 60 ), 62 * + 47 + ( 17 ) ) + 8
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT - - 35 * 5 + + 47 + MAX( ALL - 28 ) AS col2
----
194

skipif mysql # not compatible
query I rowsort label-9651
SELECT - - 35 * 5 + + 47 + MAX ( ALL - 28 ) AS col2
----
194

query I rowsort
SELECT - 93 * + 93 AS col2
----
-8649

onlyif mysql # DIV for integer division: 
query I rowsort label-9653
SELECT - 33 + 36 + + - 84 DIV - 23 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9653
SELECT - 33 + 36 + + - 84 / - 23 AS col1
----
6

query I rowsort
SELECT DISTINCT + - 28 * + 8 - - - 29
----
-253

query I rowsort
SELECT DISTINCT - 12 * + 35 AS col1
----
-420

query II rowsort
SELECT DISTINCT + 31, 49 * + 52 * 59 AS col2
----
31
150332

query I rowsort
SELECT - 60 * + + 80
----
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT - - MIN( + + 53 ) + - + 27
----
26

skipif mysql # not compatible
query I rowsort label-9658
SELECT - - MIN ( + + 53 ) + - + 27
----
26

query I rowsort
SELECT DISTINCT ( - ( 41 ) ) AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9660
SELECT + + ( COUNT( * ) ) * - 66 / + 70 * + CASE - 15 WHEN - 99 + 23 THEN MIN( DISTINCT ( 72 ) ) * 16 + + NULLIF ( + CAST( 25 AS SIGNED ), 36 ) END + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT + + ( COUNT ( * ) ) * - 66 / + 70 * + CASE - 15 WHEN - 99 + 23 THEN MIN ( DISTINCT ( 72 ) ) * 16 + + NULLIF ( + CAST ( 25 AS INTEGER ), 36 ) END + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT - - 24 * + + MAX( DISTINCT 58 ) * + CASE 20 WHEN COUNT( * ) + 76 THEN - 70 WHEN - ( + 82 ) THEN + 74 * + ( - 44 ) ELSE NULL END * ( - 25 * 29 ) + 97 / + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT - - 24 * + + MAX ( DISTINCT 58 ) * + CASE 20 WHEN COUNT ( * ) + 76 THEN - 70 WHEN - ( + 82 ) THEN + 74 * + ( - 44 ) ELSE NULL END * ( - 25 * 29 ) + 97 / + 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT - - COUNT( * ) + 64 - + - 21 + + 25 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-9662
SELECT - - COUNT ( * ) + 64 - + - 21 + + 25 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT - 35 + COUNT( + - 97 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9663
SELECT - 35 + COUNT ( + - 97 ) AS col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9664
SELECT - CASE - MAX( DISTINCT 83 ) WHEN + 95 THEN NULL WHEN - CASE - COUNT( * ) WHEN - ( ( 41 ) ) THEN NULLIF ( MAX( ALL 94 ), - 8 ) DIV 97 END * 34 THEN NULL WHEN - 25 + 19 THEN 17 ELSE 50 DIV 2 + - 69 END AS col0
----
44

skipif mysql # not compatible
query I rowsort label-9664
SELECT - CASE - MAX ( DISTINCT 83 ) WHEN + 95 THEN NULL WHEN - CASE - COUNT ( * ) WHEN - ( ( 41 ) ) THEN NULLIF ( MAX ( ALL 94 ), - 8 ) / 97 END * 34 THEN NULL WHEN - 25 + 19 THEN 17 ELSE 50 / 2 + - 69 END AS col0
----
44

query I rowsort
SELECT - + 43 + 51 + 72 - + 94
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT - 62 + 59 * - + ( 61 ) * - MAX( ALL + 75 ) AS col0
----
269863

skipif mysql # not compatible
query I rowsort label-9666
SELECT - 62 + 59 * - + ( 61 ) * - MAX ( ALL + 75 ) AS col0
----
269863

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT + COUNT( * ) + - - 20 * 78 AS col1
----
1561

skipif mysql # not compatible
query I rowsort label-9667
SELECT + COUNT ( * ) + - - 20 * 78 AS col1
----
1561

query I rowsort
SELECT ALL - - 69 * + 71 + - 35 AS col1
----
4864

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT DISTINCT - 38 + ( - 6 ) + + - 4 * 46 * - - 8 + + 20 * + NULLIF ( 76, + NULLIF ( - COUNT( * ), CASE COUNT( * ) WHEN - 12 + 33 THEN + 51 * 51 + + 0 ELSE + CASE - 91 WHEN + MAX( 95 ) THEN + 67 * 50 END END / 10 ) )
----
4

skipif mysql # not compatible
query I rowsort label-9669
SELECT DISTINCT - 38 + ( - 6 ) + + - 4 * 46 * - - 8 + + 20 * + NULLIF ( 76, + NULLIF ( - COUNT ( * ), CASE COUNT ( * ) WHEN - 12 + 33 THEN + 51 * 51 + + 0 ELSE + CASE - 91 WHEN + MAX ( 95 ) THEN + 67 * 50 END END / 10 ) )
----
4

query I rowsort
SELECT DISTINCT + 29 + 7
----
36

query I rowsort
SELECT ALL 1 + 17 - - ( - 36 ) * - 60 * - 72 + 53 col1
----
-155449

query I rowsort
SELECT - NULLIF ( - 96, - - 30 ) + - - 25 AS col1
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9673
SELECT + 83 + MAX( 61 ) DIV + + 65 col2
----
83

skipif mysql # not compatible
query I rowsort label-9673
SELECT + 83 + MAX ( 61 ) / + + 65 col2
----
83

query I rowsort
SELECT DISTINCT - 39 + + - 92 + + - 66 - + + ( + 60 )
----
-257

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT - SUM( ALL + - 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9675
SELECT - SUM ( ALL + - 14 ) AS col0
----
14

query I rowsort
SELECT ALL 41 + 57 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT - 47 * - + ( - + COUNT( * ) ) * 37
----
-1739

skipif mysql # not compatible
query I rowsort label-9677
SELECT - 47 * - + ( - + COUNT ( * ) ) * 37
----
-1739

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL 46 / - CASE COALESCE ( 11, - + 82 + - + 26 * + + 82 + ( + 37 + 84 ) ) WHEN 45 + ( - ( - NULLIF ( - CASE MAX( 35 ) WHEN - 40 THEN - COUNT( * ) * CASE 82 WHEN 15 + 44 THEN + COUNT( * ) END END, + COALESCE ( COUNT( * ), 33, + COUNT( + 93 ), ( + 60 ) * 76 ) + - 90 ) ) + - 63 ) * 54 THEN MAX( DISTINCT 85 ) END - + 24 * + ( + 46 / - ( ( MAX( - 26 ) ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL 46 / - CASE COALESCE ( 11, - + 82 + - + 26 * + + 82 + ( + 37 + 84 ) ) WHEN 45 + ( - ( - NULLIF ( - CASE MAX ( 35 ) WHEN - 40 THEN - COUNT ( * ) * CASE 82 WHEN 15 + 44 THEN + COUNT ( * ) END END, + COALESCE ( COUNT ( * ), 33, + COUNT ( + 93 ), ( + 60 ) * 76 ) + - 90 ) ) + - 63 ) * 54 THEN MAX ( DISTINCT 85 ) END - + 24 * + ( + 46 / - ( ( MAX ( - 26 ) ) ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT DISTINCT COUNT( * ) * + 76 * - MAX( - + 50 )
----
3800

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT COUNT ( * ) * + 76 * - MAX ( - + 50 )
----
3800

onlyif mysql # DIV for integer division: 
query I rowsort label-9680
SELECT ALL + 18 DIV + 7 - - + 42 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL + 18 / + 7 - - + 42 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT DISTINCT 58 * + MIN( ALL + 88 )
----
5104

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT 58 * + MIN ( ALL + 88 )
----
5104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9682
SELECT COUNT( * ) DIV - - 80 * - 37
----
0

skipif mysql # not compatible
query I rowsort label-9682
SELECT COUNT ( * ) / - - 80 * - 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT 0 * + - SUM( ALL - ( + 63 ) ) * 44 + 33 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9683
SELECT 0 * + - SUM ( ALL - ( + 63 ) ) * 44 + 33 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT COUNT( * ) * 4 + ( + ( 79 ) ) + + 22
----
105

skipif mysql # not compatible
query I rowsort label-9684
SELECT COUNT ( * ) * 4 + ( + ( 79 ) ) + + 22
----
105

query II rowsort
SELECT ( 78 ), + 36 * - ( + + 4 ) AS col2
----
78
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT - - COUNT( * ) * - 99 - - 46 * + 71 AS col1
----
3167

skipif mysql # not compatible
query I rowsort label-9686
SELECT - - COUNT ( * ) * - 99 - - 46 * + 71 AS col1
----
3167

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT 95 * + COUNT( * ) * + 57
----
5415

skipif mysql # not compatible
query I rowsort label-9687
SELECT 95 * + COUNT ( * ) * + 57
----
5415

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT + 86 + + MAX( 35 ) AS col0
----
121

skipif mysql # not compatible
query I rowsort label-9688
SELECT + 86 + + MAX ( 35 ) AS col0
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9689
SELECT + COUNT( * ) DIV 72 * + CAST( SUM( ALL + 55 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9689
SELECT + COUNT ( * ) / 72 * + CAST ( SUM ( ALL + 55 ) AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9690
SELECT ALL + + 22 * - 9 + - 13, COUNT( * ) DIV 39 * + 10 AS col2
----
-211
0

skipif mysql # not compatible
query II rowsort label-9690
SELECT ALL + + 22 * - 9 + - 13, COUNT ( * ) / 39 * + 10 AS col2
----
-211
0

query II rowsort
SELECT ALL - + ( + 71 ), 68 * + 98 col1
----
-71
6664

query II rowsort
SELECT + - ( + 89 ) AS col1, + 55
----
-89
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT + + COUNT( * ) * + ( - COUNT( * ) ) - 28 - - + 7 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-9693
SELECT + + COUNT ( * ) * + ( - COUNT ( * ) ) - 28 - - + 7 AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9694
SELECT - 80 / - NULLIF ( - + CAST( NULL AS SIGNED ), - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT - 80 / - NULLIF ( - + CAST ( NULL AS INTEGER ), - 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT DISTINCT + 9 + - + CASE - NULLIF ( 91, - COUNT( * ) ) WHEN 13 + + NULLIF ( 2, 11 ) - - 50 THEN COUNT( * ) WHEN + 75 * + 99 THEN - 68 * + 12 WHEN 46 + - 11 THEN NULL ELSE 90 END * - 92
----
8289

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT + 9 + - + CASE - NULLIF ( 91, - COUNT ( * ) ) WHEN 13 + + NULLIF ( 2, 11 ) - - 50 THEN COUNT ( * ) WHEN + 75 * + 99 THEN - 68 * + 12 WHEN 46 + - 11 THEN NULL ELSE 90 END * - 92
----
8289

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT DISTINCT - - COUNT( * ) * 1 * 5
----
5

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT - - COUNT ( * ) * 1 * 5
----
5

query I rowsort
SELECT + 60 * + 29
----
1740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) + 48
----
NULL

query I rowsort
SELECT ALL + 52 + - 19
----
33

query II rowsort
SELECT DISTINCT - 71 + - 40 * 43 AS col1, 93 * - 65 + + - 80 AS col1
----
-1791
-6125

query I rowsort
SELECT 69 + - 2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9702
SELECT ALL - 53 + - ( + 63 ) + + CASE + 75 WHEN 65 THEN - + 11 * 34 WHEN - 29 * - 97 THEN - 27 + ( + CAST( AVG ( 71 ) AS SIGNED ) ) ELSE NULL END * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL - 53 + - ( + 63 ) + + CASE + 75 WHEN 65 THEN - + 11 * 34 WHEN - 29 * - 97 THEN - 27 + ( + CAST ( AVG ( 71 ) AS INTEGER ) ) ELSE NULL END * + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT 76 - + 51 + SUM( ALL - 18 ) + - 54 * 4
----
-209

skipif mysql # not compatible
query I rowsort label-9703
SELECT 76 - + 51 + SUM ( ALL - 18 ) + - 54 * 4
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT 85 + - CASE - 23 WHEN NULLIF ( + 25, - 88 ) * - MIN( - + 5 ) - 5 THEN - 39 ELSE 98 END AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-9704
SELECT 85 + - CASE - 23 WHEN NULLIF ( + 25, - 88 ) * - MIN ( - + 5 ) - 5 THEN - 39 ELSE 98 END AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT ALL + SUM( + - 74 ) * 46 * - 59
----
200836

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL + SUM ( + - 74 ) * 46 * - 59
----
200836

query II rowsort
SELECT 95 + + + 14 + - 72 AS col0, + 74 * - 22 * - 90 + + 27 * + 1 * 11 AS col2
----
37
146817

query I rowsort
SELECT ALL + 90 * - 78 AS col1
----
-7020

query I rowsort
SELECT 10 * - 45 AS col1
----
-450

query I rowsort
SELECT ALL + 81 * + 68 AS col2
----
5508

onlyif mysql # aggregate syntax: 
query II rowsort label-9710
SELECT ALL 31 col2, + MIN( 72 ) - COUNT( * ) + + 99 * - 81 + + 10
----
31
-7938

skipif mysql # not compatible
query II rowsort label-9710
SELECT ALL 31 col2, + MIN ( 72 ) - COUNT ( * ) + + 99 * - 81 + + 10
----
31
-7938

query I rowsort
SELECT 20 - 30 * 58 AS col1
----
-1720

onlyif mysql # DIV for integer division: 
query I rowsort label-9712
SELECT 0 DIV - + 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9712
SELECT 0 / - + 15 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT DISTINCT + ( CASE + 28 WHEN + 64 THEN - CAST( NULL AS SIGNED ) END ) / - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT + ( CASE + 28 WHEN + 64 THEN - CAST ( NULL AS INTEGER ) END ) / - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT ALL - MIN( ALL - - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL - MIN ( ALL - - 70 )
----
-70

query I rowsort
SELECT 45 * - + 86 AS col0
----
-3870

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT COUNT( ALL 45 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9716
SELECT COUNT ( ALL 45 ) col1
----
1

query II rowsort
SELECT DISTINCT - 7 col1, + 3 col1
----
-7
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT COUNT( * ) * 35 col2
----
35

skipif mysql # not compatible
query I rowsort label-9718
SELECT COUNT ( * ) * 35 col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT DISTINCT - - CAST( - 90 AS SIGNED ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT - - CAST ( - 90 AS INTEGER ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9720
SELECT DISTINCT + 46 + + 17 * 19 * 32, COUNT( * ) + + ( - 68 ) + - + 36 AS col2
----
10382
-103

skipif mysql # not compatible
query II rowsort label-9720
SELECT DISTINCT + 46 + + 17 * 19 * 32, COUNT ( * ) + + ( - 68 ) + - + 36 AS col2
----
10382
-103

query I rowsort
SELECT ALL - 71 + - + 66 * + 0 AS col0
----
-71

query I rowsort
SELECT ALL 38 + - 6 col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT MAX( 0 ) + - + COALESCE ( - + ( 84 ), - MAX( DISTINCT + + 4 ) + + - 9, 52 * COUNT( * ) ) * - 49
----
-4116

skipif mysql # not compatible
query I rowsort label-9723
SELECT MAX ( 0 ) + - + COALESCE ( - + ( 84 ), - MAX ( DISTINCT + + 4 ) + + - 9, 52 * COUNT ( * ) ) * - 49
----
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL + 10 + ( + - COUNT( * ) ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL + 10 + ( + - COUNT ( * ) ) AS col2
----
9

query II rowsort
SELECT ALL - NULLIF ( - 80, + + 72 ), + 63 + 73 AS col1
----
80
136

query I rowsort
SELECT + 44 + - 95 - 92 AS col2
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT ALL 84 + - + NULLIF ( + 68, - ( + + ( + + COUNT( - 75 ) ) ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL 84 + - + NULLIF ( + 68, - ( + + ( + + COUNT ( - 75 ) ) ) ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT - ( + - 3 ) + - + MAX( - 82 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9728
SELECT - ( + - 3 ) + - + MAX ( - 82 ) AS col2
----
85

query I rowsort
SELECT 97 * + 72 * - 39 * - + 60
----
16342560

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT ALL COUNT( ALL + 75 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL COUNT ( ALL + 75 ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT - SUM( DISTINCT 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-9731
SELECT - SUM ( DISTINCT 44 )
----
-44

query I rowsort
SELECT 5 + + 93 * - 42
----
-3901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9733
SELECT ALL 66 - - - 81 + - COALESCE ( + COALESCE ( 34, + 96 * - - 22 DIV + + 14 + + COALESCE ( + 0, + AVG ( ALL 80 ) * - 96 - 90 ), + MAX( + 55 ) DIV - COUNT( * ) ), 23 ) DIV 62
----
-15

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL 66 - - - 81 + - COALESCE ( + COALESCE ( 34, + 96 * - - 22 / + + 14 + + COALESCE ( + 0, + AVG ( ALL 80 ) * - 96 - 90 ), + MAX ( + 55 ) / - COUNT ( * ) ), 23 ) / 62
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9734
SELECT SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) * + + COUNT( * ) * + - 15 + - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) * + - 15 + - 1 AS col2
----
NULL

query I rowsort
SELECT 79 * 38
----
3002

query I rowsort
SELECT 14 + 73 * + + 68 AS col0
----
4978

query I rowsort
SELECT 85 + + + 74 AS col2
----
159

query I rowsort
SELECT ALL 30 - 83
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT ( + 47 ) * - COUNT( * ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-9739
SELECT ( + 47 ) * - COUNT ( * ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT - NULLIF ( + COUNT( * ), 83 * ( 38 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9740
SELECT - NULLIF ( + COUNT ( * ), 83 * ( 38 ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 49 * + - ( 48 ) AS col2
----
-2352

query I rowsort
SELECT + 40 * 82 AS col2
----
3280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9743
SELECT ALL + MIN( ALL + 51 ) DIV + 44 + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL + MIN ( ALL + 51 ) / + 44 + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL + MIN( ALL - 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL + MIN ( ALL - 58 ) AS col1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9745
SELECT 50 DIV 3 + ( - NULLIF ( - 38, - 52 ) )
----
54

skipif mysql # not compatible
query I rowsort label-9745
SELECT 50 / 3 + ( - NULLIF ( - 38, - 52 ) )
----
54

query I rowsort
SELECT - 10 * + - 15 * + + 94 AS col2
----
14100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9747
SELECT ALL ( + SUM( + + 67 ) ) DIV - - 8, 75 AS col2
----
8
75

skipif mysql # not compatible
query II rowsort label-9747
SELECT ALL ( + SUM ( + + 67 ) ) / - - 8, 75 AS col2
----
8
75

query I rowsort
SELECT DISTINCT + ( + - COALESCE ( + 86, - 75, - ( 83 ) + + + 54 + - - 41 + + 63 + + 70 * 13, + 9 ) )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT DISTINCT - COUNT( * ) * 78 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT - COUNT ( * ) * 78 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT ALL + - SUM( DISTINCT - 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL + - SUM ( DISTINCT - 82 ) AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9751
SELECT ALL + COALESCE ( + COUNT( ALL - 21 ), - COUNT( * ) ) * - 48 * CAST( ( CAST( NULL AS SIGNED ) ) AS SIGNED ) + + - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL + COALESCE ( + COUNT ( ALL - 21 ), - COUNT ( * ) ) * - 48 * CAST ( ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + - 82 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9752
SELECT 80 * 46 + + CASE 82 WHEN + - 9 THEN NULL WHEN MAX( ALL - - 12 ) THEN - 84 + - COUNT( * ) ELSE 8 * - 37 END + CAST( COUNT( * ) AS SIGNED ) * 53 + MAX( ( - 42 ) )
----
3395

skipif mysql # not compatible
query I rowsort label-9752
SELECT 80 * 46 + + CASE 82 WHEN + - 9 THEN NULL WHEN MAX ( ALL - - 12 ) THEN - 84 + - COUNT ( * ) ELSE 8 * - 37 END + CAST ( COUNT ( * ) AS INTEGER ) * 53 + MAX ( ( - 42 ) )
----
3395

onlyif mysql # DIV for integer division: 
query I rowsort label-9753
SELECT + 59 DIV + - 35 + - 25 + - 14
----
-40

skipif mysql # not compatible
query I rowsort label-9753
SELECT + 59 / + - 35 + - 25 + - 14
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9754
SELECT ALL 88 * - 71 * + ( - 96 ) - - 79 * 4 + - COUNT( * ) DIV 33 AS col2
----
600124

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL 88 * - 71 * + ( - 96 ) - - 79 * 4 + - COUNT ( * ) / 33 AS col2
----
600124

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL 63 * 99 - 38 + + 99 * - + 84 * + 39 + + + ( + COUNT( * ) ) AS col2
----
-318124

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL 63 * 99 - 38 + + 99 * - + 84 * + 39 + + + ( + COUNT ( * ) ) AS col2
----
-318124

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL - - CASE 98 WHEN + + ( AVG ( ALL 41 ) ) + - MIN( - + 13 ) THEN - 48 * - 47 - 73 * COUNT( * ) WHEN + 82 THEN 99 * 4 END * - 69 + + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL - - CASE 98 WHEN + + ( AVG ( ALL 41 ) ) + - MIN ( - + 13 ) THEN - 48 * - 47 - 73 * COUNT ( * ) WHEN + 82 THEN 99 * 4 END * - 69 + + 29 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9757
SELECT ALL CAST( - 71 AS SIGNED ) * ( + NULLIF ( + COUNT( * ), 88 ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL CAST ( - 71 AS INTEGER ) * ( + NULLIF ( + COUNT ( * ), 88 ) ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT - 28 * - NULLIF ( COUNT( * ), - 33 ) + COALESCE ( 31, + - 6 ) + COUNT( * ) * + 57 + 55
----
171

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT - 28 * - NULLIF ( COUNT ( * ), - 33 ) + COALESCE ( 31, + - 6 ) + COUNT ( * ) * + 57 + 55
----
171

query I rowsort
SELECT DISTINCT + + 90 AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9760
SELECT + - CASE - - 54 WHEN 52 * - + 3 THEN + CAST( - 68 AS SIGNED ) * 11 + + - 25 - 80 + COUNT( * ) DIV 88 ELSE 14 * + 98 END
----
-1372

skipif mysql # not compatible
query I rowsort label-9760
SELECT + - CASE - - 54 WHEN 52 * - + 3 THEN + CAST ( - 68 AS INTEGER ) * 11 + + - 25 - 80 + COUNT ( * ) / 88 ELSE 14 * + 98 END
----
-1372

query I rowsort
SELECT + + ( 67 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT ALL COUNT( + 39 ) * NULLIF ( - - NULLIF ( + 14, - COALESCE ( - 96, - 67 ) ), + COUNT( * ) * - 17 ) - + 55
----
-41

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL COUNT ( + 39 ) * NULLIF ( - - NULLIF ( + 14, - COALESCE ( - 96, - 67 ) ), + COUNT ( * ) * - 17 ) - + 55
----
-41

query I rowsort
SELECT ALL 39 * - 57 AS col2
----
-2223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9764
SELECT - CAST( - 30 AS SIGNED ) - + + 12 col1
----
18

skipif mysql # not compatible
query I rowsort label-9764
SELECT - CAST ( - 30 AS INTEGER ) - + + 12 col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT MIN( + + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-9765
SELECT MIN ( + + 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT MIN( + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9766
SELECT MIN ( + 94 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9767
SELECT - COALESCE ( 27, - - COUNT( * ) - + 90 - - 28 * + SUM( DISTINCT ( - 41 ) ) + - + CAST( NULL AS SIGNED ) ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9767
SELECT - COALESCE ( 27, - - COUNT ( * ) - + 90 - - 28 * + SUM ( DISTINCT ( - 41 ) ) + - + CAST ( NULL AS INTEGER ) ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT ALL ( + ( - COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL ( + ( - COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9769
SELECT - CASE + + 17 WHEN - 80 THEN NULL WHEN - - 83 THEN - CAST( + + NULLIF ( - CAST( 27 AS SIGNED ), + - 43 ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT - CASE + + 17 WHEN - 80 THEN NULL WHEN - - 83 THEN - CAST ( + + NULLIF ( - CAST ( 27 AS INTEGER ), + - 43 ) AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 76 * - 31
----
-2356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9771
SELECT DISTINCT 69 AS col0, 91 * + CASE 65 WHEN + CAST( - MIN( DISTINCT - - 3 ) AS SIGNED ) - + - 10 * - + 58 * 84 THEN + ( + CASE CASE SUM( DISTINCT + 36 ) WHEN + 6 - COUNT( ALL 71 ) THEN + 98 + - COUNT( * ) WHEN 63 THEN NULL END WHEN + 96 / 20 + - 43 THEN - 88 WHEN 82 + + 69 THEN 55 ELSE NULL END ) + 44 WHEN NULLIF ( 51, + CAST( NULL AS SIGNED ) / + 4 + 4 ) * - ( - 25 ) + + MIN( ALL 20 ) * 15 THEN NULL END + + 66 * 63
----
69
NULL

skipif mysql # not compatible
query II rowsort label-9771
SELECT DISTINCT 69 AS col0, 91 * + CASE 65 WHEN + CAST ( - MIN ( DISTINCT - - 3 ) AS INTEGER ) - + - 10 * - + 58 * 84 THEN + ( + CASE CASE SUM ( DISTINCT + 36 ) WHEN + 6 - COUNT ( ALL 71 ) THEN + 98 + - COUNT ( * ) WHEN 63 THEN NULL END WHEN + 96 / 20 + - 43 THEN - 88 WHEN 82 + + 69 THEN 55 ELSE NULL END ) + 44 WHEN NULLIF ( 51, + CAST ( NULL AS INTEGER ) / + 4 + 4 ) * - ( - 25 ) + + MIN ( ALL 20 ) * 15 THEN NULL END + + 66 * 63
----
69
NULL

query I rowsort
SELECT + 46 * + 41 AS col1
----
1886

onlyif mysql # DIV for integer division: 
query I rowsort label-9773
SELECT - 64 DIV - - 65
----
0

skipif mysql # not compatible
query I rowsort label-9773
SELECT - 64 / - - 65
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9774
SELECT DISTINCT 70 * ( ( SUM( DISTINCT 63 ) ) ), 98 * + 66 col1
----
4410
6468

skipif mysql # not compatible
query II rowsort label-9774
SELECT DISTINCT 70 * ( ( SUM ( DISTINCT 63 ) ) ), 98 * + 66 col1
----
4410
6468

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ALL ( + + 80 ) * - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL ( + + 80 ) * - COUNT ( * )
----
-80

query I rowsort
SELECT + 10 + + 47 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT DISTINCT ( - COUNT( * ) ) * - 39 col1
----
39

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT ( - COUNT ( * ) ) * - 39 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT DISTINCT COUNT( * ) + + 9 + + - 92 * 44 * 61 * 44 + - 78 AS col1
----
-10864900

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT COUNT ( * ) + + 9 + + - 92 * 44 * 61 * 44 + - 78 AS col1
----
-10864900

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT ALL + 28 + - 0 * + MIN( DISTINCT + 71 ) * + COUNT( * ) - 86 * + - 20
----
1748

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL + 28 + - 0 * + MIN ( DISTINCT + 71 ) * + COUNT ( * ) - 86 * + - 20
----
1748

query I rowsort
SELECT ALL - 95 * ( + - 2 ) AS col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT DISTINCT SUM( DISTINCT 64 ) + 23 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT SUM ( DISTINCT 64 ) + 23 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9782
SELECT CASE CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN MAX( ALL + 48 ) WHEN + 86 * + 56 THEN NULL ELSE + 96 END AS col0, 9 * 19 AS col2
----
96
171

skipif mysql # not compatible
query II rowsort label-9782
SELECT CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN MAX ( ALL + 48 ) WHEN + 86 * + 56 THEN NULL ELSE + 96 END AS col0, 9 * 19 AS col2
----
96
171

query I rowsort
SELECT + + 57 * - 78
----
-4446

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9784
SELECT 51 * + 99 + 8 * + 73 * ( - + 4 ) * - + 41 - - 63 + - CAST( - - 55 AS SIGNED ) + - 49 + - 5 * - 67 AS col0
----
101119

skipif mysql # not compatible
query I rowsort label-9784
SELECT 51 * + 99 + 8 * + 73 * ( - + 4 ) * - + 41 - - 63 + - CAST ( - - 55 AS INTEGER ) + - 49 + - 5 * - 67 AS col0
----
101119

query II rowsort
SELECT DISTINCT + - 98 col2, - 91
----
-98
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT DISTINCT - + 85 * + 3 + - 37 + 42 + - - 81 + + + COUNT( * ) * - NULLIF ( - - 21, 96 ) AS col0
----
-190

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT - + 85 * + 3 + - 37 + 42 + - - 81 + + + COUNT ( * ) * - NULLIF ( - - 21, 96 ) AS col0
----
-190

query I rowsort
SELECT - 60 * - 3 AS col1
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9788
SELECT ALL - - NULLIF ( + 12, - SUM( + - 21 ) + 22 ) DIV - 26 + - 43
----
-43

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL - - NULLIF ( + 12, - SUM ( + - 21 ) + 22 ) / - 26 + - 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT - + 24 * + NULLIF ( + COUNT( * ), COUNT( * ) + + 85 + 56 * + 54 / + 91 ) + - CASE 39 WHEN 36 THEN NULL WHEN ( + COUNT( * ) ) THEN NULL ELSE + 87 END
----
-111

skipif mysql # not compatible
query I rowsort label-9789
SELECT - + 24 * + NULLIF ( + COUNT ( * ), COUNT ( * ) + + 85 + 56 * + 54 / + 91 ) + - CASE 39 WHEN 36 THEN NULL WHEN ( + COUNT ( * ) ) THEN NULL ELSE + 87 END
----
-111

query I rowsort
SELECT ALL - - 43 * 3
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT DISTINCT + - 81 * - CASE + - ( ( - ( - MIN( ALL + ( - + 8 ) ) ) ) ) WHEN + + SUM( 32 ) * + COUNT( * ) + - COALESCE ( 42, - 31 ) THEN 12 WHEN 67 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT + - 81 * - CASE + - ( ( - ( - MIN ( ALL + ( - + 8 ) ) ) ) ) WHEN + + SUM ( 32 ) * + COUNT ( * ) + - COALESCE ( 42, - 31 ) THEN 12 WHEN 67 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9792
SELECT DISTINCT - 38 DIV - + 67 - + 90
----
-90

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT - 38 / - + 67 - + 90
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT + COUNT( * ) * 30 + - 59 + - + 63 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-9793
SELECT + COUNT ( * ) * 30 + - 59 + - + 63 AS col1
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9794
SELECT ALL 31 * + MAX( ALL 81 ) * 89 - - 80 DIV - + 30 + - MAX( + + 89 ) + + COUNT( * )
----
223389

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL 31 * + MAX ( ALL 81 ) * 89 - - 80 / - + 30 + - MAX ( + + 89 ) + + COUNT ( * )
----
223389

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT COALESCE ( + 93, COUNT( * ), 9 * MAX( + 71 ), + 24 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-9795
SELECT COALESCE ( + 93, COUNT ( * ), 9 * MAX ( + 71 ), + 24 ) AS col2
----
93

query I rowsort
SELECT + 31 * - CASE - 3 WHEN - - 54 - + 90 + + COALESCE ( - ( - 79 ), - 16, + 92 ) * + 49 + + NULLIF ( - 44, + 91 ) * - 86 THEN NULL WHEN 59 THEN 72 WHEN + 3 THEN 70 END + 67 * - 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT - COALESCE ( + + 20, + COALESCE ( + MIN( 15 ), + 98, 46 * - 44 + - COUNT( * ) + - 34 + - 82 + 42 * - 76 ), - COUNT( * ) ) + + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-9797
SELECT - COALESCE ( + + 20, + COALESCE ( + MIN ( 15 ), + 98, 46 * - 44 + - COUNT ( * ) + - 34 + - 82 + 42 * - 76 ), - COUNT ( * ) ) + + COUNT ( * )
----
-19

query I rowsort
SELECT ALL + CASE 62 WHEN + 4 * + 61 - - - 49 + + 1 THEN - + 95 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 95 * - - 89 AS col2
----
8455

query I rowsort
SELECT - 1 + - 85 AS col0
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9801
SELECT 11 + - 49 + 46 + - - 53 * + + COUNT( * ) DIV + - 62 + - - 50
----
58

skipif mysql # not compatible
query I rowsort label-9801
SELECT 11 + - 49 + 46 + - - 53 * + + COUNT ( * ) / + - 62 + - - 50
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT DISTINCT - 76 * MAX( DISTINCT - 76 )
----
5776

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT - 76 * MAX ( DISTINCT - 76 )
----
5776

onlyif mysql # aggregate syntax: 
query II rowsort label-9803
SELECT ALL 64 AS col2, COUNT( * ) AS col1
----
64
1

skipif mysql # not compatible
query II rowsort label-9803
SELECT ALL 64 AS col2, COUNT ( * ) AS col1
----
64
1

query I rowsort
SELECT 94 * - + 48 AS col0
----
-4512

onlyif mysql # DIV for integer division: 
query I rowsort label-9805
SELECT 30 + + + 70 + - 52 + + 38 - - COALESCE ( - + 66, - + ( + 13 ), + 29 + 99 ) DIV + 90 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9805
SELECT 30 + + + 70 + - 52 + + 38 - - COALESCE ( - + 66, - + ( + 13 ), + 29 + 99 ) / + 90 AS col2
----
86

query II rowsort
SELECT NULLIF ( + 10, - 88 * 56 ) + - 45 + + + 23, COALESCE ( 54, + 59, 51 ) AS col2
----
-12
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9807
SELECT DISTINCT 76 col1, CAST( - 77 AS SIGNED ) * - + 79
----
76
6083

skipif mysql # not compatible
query II rowsort label-9807
SELECT DISTINCT 76 col1, CAST ( - 77 AS INTEGER ) * - + 79
----
76
6083

onlyif mysql # DIV for integer division: 
query II rowsort label-9808
SELECT ALL 29 + + 85 - + 16 - - ( ( + 61 ) ) + - 47 * - + 14 + 7, 83 DIV + 67 AS col0
----
824
1

skipif mysql # not compatible
query II rowsort label-9808
SELECT ALL 29 + + 85 - + 16 - - ( ( + 61 ) ) + - 47 * - + 14 + 7, 83 / + 67 AS col0
----
824
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9809
SELECT 20 * CAST( NULL AS DECIMAL ), 23 + + 45 AS col0
----
NULL
68

skipif mysql # not compatible
query II rowsort label-9809
SELECT 20 * CAST ( NULL AS REAL ), 23 + + 45 AS col0
----
NULL
68

query I rowsort
SELECT 55 + + 41 AS col1
----
96

query II rowsort
SELECT ALL 81 AS col0, 20 AS col0
----
81
20

query II rowsort
SELECT 52 AS col0, + 69
----
52
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9813
SELECT ALL 81 DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL 81 / - 98 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT 39 DIV + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9814
SELECT 39 / + 98 AS col0
----
0

query I rowsort
SELECT ALL - ( 53 ) + + 47
----
-6

query I rowsort
SELECT DISTINCT 16 + - 6
----
10

query I rowsort
SELECT ALL ( 90 ) + + + 15
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT ALL ( - + 41 ) + + NULLIF ( - COUNT( * ), 4 )
----
-42

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL ( - + 41 ) + + NULLIF ( - COUNT ( * ), 4 )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9819
SELECT 33 DIV - - 15
----
2

skipif mysql # not compatible
query I rowsort label-9819
SELECT 33 / - - 15
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9820
SELECT - CAST( NULL AS SIGNED ) * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT - CAST ( NULL AS INTEGER ) * - 64
----
NULL

query I rowsort
SELECT ALL + CASE 27 WHEN + 4 THEN + - 64 * 84 + + 30 + 86 WHEN - 73 THEN + 15 END - + 34 * - - 17
----
NULL

query II rowsort
SELECT ALL - 44 AS col2, + 87 col2
----
-44
87

query I rowsort
SELECT DISTINCT 89 - + - ( + - 40 ) + 84 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT ALL - + SUM( + + 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL - + SUM ( + + 84 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-9825
SELECT + 90 AS col0, + COUNT( * ) + - 62
----
90
-61

skipif mysql # not compatible
query II rowsort label-9825
SELECT + 90 AS col0, + COUNT ( * ) + - 62
----
90
-61

query I rowsort
SELECT 62 * - 33 + + - 7 AS col0
----
-2053

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT - 60 * - COUNT( * ) * ( - 38 ) * + 49 * + - ( + - 76 ) * + - 43 + - COALESCE ( - - 37, - 29, - 63 ) * 12 AS col0
----
365100516

skipif mysql # not compatible
query I rowsort label-9827
SELECT - 60 * - COUNT ( * ) * ( - 38 ) * + 49 * + - ( + - 76 ) * + - 43 + - COALESCE ( - - 37, - 29, - 63 ) * 12 AS col0
----
365100516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9828
SELECT + 45 DIV - - 83 - - NULLIF ( - 65, + 50 DIV + 68 * 32 - - - 47 ) + + ( - 81 ) DIV - ( 17 ) * + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-9828
SELECT + 45 / - - 83 - - NULLIF ( - 65, + 50 / + 68 * 32 - - - 47 ) + + ( - 81 ) / - ( 17 ) * + COUNT ( * )
----
-61

query I rowsort
SELECT DISTINCT - - ( 76 ) AS col2
----
76

query I rowsort
SELECT DISTINCT - ( 36 ) col2
----
-36

query I rowsort
SELECT ALL - ( - + 84 ) * - - ( - - ( 19 ) ) AS col1
----
1596

query I rowsort
SELECT 4 * 90 AS col2
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9833
SELECT ALL 7 * + + MAX( ALL - 18 ) * - 80 - CAST( + + 74 AS SIGNED )
----
10006

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL 7 * + + MAX ( ALL - 18 ) * - 80 - CAST ( + + 74 AS INTEGER )
----
10006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9834
SELECT DISTINCT - CASE - 58 WHEN - AVG ( DISTINCT - 16 ) + + 47 THEN NULL WHEN + + 12 + + + 3 / - - COUNT( * ) THEN - - CAST( NULL AS SIGNED ) * - - 38 + 71 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT - CASE - 58 WHEN - AVG ( DISTINCT - 16 ) + + 47 THEN NULL WHEN + + 12 + + + 3 / - - COUNT ( * ) THEN - - CAST ( NULL AS INTEGER ) * - - 38 + 71 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 45 * - + 92 col0
----
-4140

query I rowsort
SELECT DISTINCT - 90 * 58
----
-5220

query II rowsort
SELECT 30 * + - 94 col2, 35 * + 7
----
-2820
245

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9838
SELECT 4 * 54 AS col1, COALESCE ( 98, - + 67 * + + 54, + - SUM( DISTINCT - 68 ) DIV - 90, - - MIN( - 96 ) - - - 75 + 0 ) + 27
----
216
125

skipif mysql # not compatible
query II rowsort label-9838
SELECT 4 * 54 AS col1, COALESCE ( 98, - + 67 * + + 54, + - SUM ( DISTINCT - 68 ) / - 90, - - MIN ( - 96 ) - - - 75 + 0 ) + 27
----
216
125

query I rowsort
SELECT 10 - - - 48 AS col2
----
-38

query I rowsort
SELECT ALL + 0 + + + 43
----
43

query I rowsort
SELECT 20 * 75
----
1500

onlyif mysql # aggregate syntax: 
query II rowsort label-9842
SELECT DISTINCT + COUNT( * ) + - 76 AS col1, - 12 col2
----
-75
-12

skipif mysql # not compatible
query II rowsort label-9842
SELECT DISTINCT + COUNT ( * ) + - 76 AS col1, - 12 col2
----
-75
-12

query I rowsort
SELECT ALL - 27 + 76 * - 65 * 10 + - 43 + 96 col1
----
-49374

query I rowsort
SELECT DISTINCT - 18 + + - 49
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9845
SELECT DISTINCT - COUNT( * ) + - COALESCE ( + 75, 15 DIV + + 32 + - MIN( DISTINCT ( - 90 ) ) )
----
-76

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT - COUNT ( * ) + - COALESCE ( + 75, 15 / + + 32 + - MIN ( DISTINCT ( - 90 ) ) )
----
-76

query I rowsort
SELECT ALL 75 + - 59 AS col2
----
16

query I rowsort
SELECT 55 - + - 9 + - 97 * 72 * + NULLIF ( - 70, + 19 * 91 - + 84 + CASE - 78 WHEN + 32 - + 73 THEN + 39 END )
----
488944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9848
SELECT ALL - CAST( NULL AS SIGNED ) * - CASE + 0 WHEN - + 81 THEN + + ( + COALESCE ( + 25, 98 / - - 92 ) ) * + COUNT( ALL - 54 ) WHEN 72 * - 21 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL - CAST ( NULL AS INTEGER ) * - CASE + 0 WHEN - + 81 THEN + + ( + COALESCE ( + 25, 98 / - - 92 ) ) * + COUNT ( ALL - 54 ) WHEN 72 * - 21 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9849
SELECT DISTINCT - COALESCE ( + - ( + + 61 ), - CAST( + - 32 AS SIGNED ) ) * + ( - 17 ) col2
----
-1037

skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT - COALESCE ( + - ( + + 61 ), - CAST ( + - 32 AS INTEGER ) ) * + ( - 17 ) col2
----
-1037

query I rowsort
SELECT - 36 + + 77 * 32 AS col1
----
2428

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT ALL - - 68 + COALESCE ( ( 38 ), - - 1, + MAX( ALL - 30 ) ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL - - 68 + COALESCE ( ( 38 ), - - 1, + MAX ( ALL - 30 ) ) AS col0
----
106

query I rowsort
SELECT + NULLIF ( - - 7, - 23 ) + - + 68 AS col1
----
-61

query I rowsort
SELECT 99 * + 57 * 69 * 9
----
3504303

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT DISTINCT + + 2 * + + 91 * 6 * + COUNT( DISTINCT + 24 ) * + 87 + COALESCE ( - MAX( ALL - 14 ), 49 ) AS col2
----
95018

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT + + 2 * + + 91 * 6 * + COUNT ( DISTINCT + 24 ) * + 87 + COALESCE ( - MAX ( ALL - 14 ), 49 ) AS col2
----
95018

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT 79 * + ( - + ( - - CASE + MIN( DISTINCT - 88 ) WHEN - COUNT( * ) THEN NULL WHEN + - 13 THEN + MAX( - 3 ) / - + 32 ELSE NULL END ) ) + + 28 * - ( - 14 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT 79 * + ( - + ( - - CASE + MIN ( DISTINCT - 88 ) WHEN - COUNT ( * ) THEN NULL WHEN + - 13 THEN + MAX ( - 3 ) / - + 32 ELSE NULL END ) ) + + 28 * - ( - 14 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9856
SELECT DISTINCT + + 26 - + - 63 + + - 55 + + COUNT( * ) DIV - 57 * + 10 * 99 * + + ( + + ( + - 25 ) )
----
34

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT + + 26 - + - 63 + + - 55 + + COUNT ( * ) / - 57 * + 10 * 99 * + + ( + + ( + - 25 ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT ALL - 13 * - 27 * - 85 * + COUNT( * ) AS col2
----
-29835

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL - 13 * - 27 * - 85 * + COUNT ( * ) AS col2
----
-29835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9858
SELECT DISTINCT - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 6
----
NULL

query II rowsort
SELECT ALL 5 * - - 27 AS col1, - 35 AS col2
----
135
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9860
SELECT 50 / - CASE - + 65 WHEN - 1 THEN NULL WHEN + COUNT( * ) / - + 97 THEN - NULLIF ( + 98, + - AVG ( ALL + CAST( + 92 AS SIGNED ) ) ) * - + CASE - 46 WHEN 1 + + 16 THEN NULLIF ( - 77, + 70 * + COUNT( * ) + 32 ) + - 34 WHEN 7 THEN NULL ELSE 45 END * - MIN( + 35 + - 30 ) + - COUNT( * ) * 73 WHEN 29 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT 50 / - CASE - + 65 WHEN - 1 THEN NULL WHEN + COUNT ( * ) / - + 97 THEN - NULLIF ( + 98, + - AVG ( ALL + CAST ( + 92 AS INTEGER ) ) ) * - + CASE - 46 WHEN 1 + + 16 THEN NULLIF ( - 77, + 70 * + COUNT ( * ) + 32 ) + - 34 WHEN 7 THEN NULL ELSE 45 END * - MIN ( + 35 + - 30 ) + - COUNT ( * ) * 73 WHEN 29 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9861
SELECT + NULLIF ( - + 62, - - 9 ) DIV 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9861
SELECT + NULLIF ( - + 62, - - 9 ) / 98 AS col0
----
0

query I rowsort
SELECT + ( - 89 ) * 19
----
-1691

query I rowsort
SELECT + ( 10 ) * + 82 + 25 AS col2
----
845

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL - 61 * - + ( + MAX( ALL + - 68 ) ) AS col1
----
-4148

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL - 61 * - + ( + MAX ( ALL + - 68 ) ) AS col1
----
-4148

onlyif mysql # aggregate syntax: 
query II rowsort label-9865
SELECT ALL + ( MAX( DISTINCT + - 57 ) ) AS col2, + 98 AS col0
----
-57
98

skipif mysql # not compatible
query II rowsort label-9865
SELECT ALL + ( MAX ( DISTINCT + - 57 ) ) AS col2, + 98 AS col0
----
-57
98

query I rowsort
SELECT ALL + - 50 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT + NULLIF ( + COUNT( * ), + 70 + - + CASE + 90 WHEN 78 THEN SUM( + - 34 ) * + - 18 ELSE NULL END + - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9867
SELECT + NULLIF ( + COUNT ( * ), + 70 + - + CASE + 90 WHEN 78 THEN SUM ( + - 34 ) * + - 18 ELSE NULL END + - COUNT ( * ) ) col0
----
1

query I rowsort
SELECT DISTINCT - NULLIF ( + 8, 26 ) * - - 69 + - 12 col2
----
-564

query I rowsort
SELECT - 47 * + 76
----
-3572

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT - CASE SUM( - 68 ) WHEN COUNT( * ) * - ( + 53 ) THEN NULL ELSE - 61 END * 56 + + 75 + - COUNT( * )
----
3490

skipif mysql # not compatible
query I rowsort label-9870
SELECT - CASE SUM ( - 68 ) WHEN COUNT ( * ) * - ( + 53 ) THEN NULL ELSE - 61 END * 56 + + 75 + - COUNT ( * )
----
3490

query I rowsort
SELECT + 35 + 91
----
126

query I rowsort
SELECT ALL + 5 * + + 55
----
275

onlyif mysql # DIV for integer division: 
query I rowsort label-9873
SELECT ALL NULLIF ( - 81, - + 80 ) + 44 DIV + 22
----
-79

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL NULLIF ( - 81, - + 80 ) + 44 / + 22
----
-79

query I rowsort
SELECT ALL - 32 + + - 93 col0
----
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-9875
SELECT DISTINCT 28 AS col1, - 34 - - 34 + + 96 + - SUM( 47 ) AS col2
----
28
49

skipif mysql # not compatible
query II rowsort label-9875
SELECT DISTINCT 28 AS col1, - 34 - - 34 + + 96 + - SUM ( 47 ) AS col2
----
28
49

query I rowsort
SELECT ALL + 69 + 62
----
131

query II rowsort
SELECT + 40 * 37 + + ( - 11 ), 29 AS col1
----
1469
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9878
SELECT ALL CAST( + 12 AS SIGNED ) + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL CAST ( + 12 AS INTEGER ) + + COUNT ( * )
----
13

query II rowsort
SELECT - NULLIF ( + 13, - ( - 73 ) ), - 33 AS col2
----
-13
-33

query I rowsort
SELECT - 57 + + 15 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT - ( + MIN( DISTINCT + - 95 ) ) + + 48
----
143

skipif mysql # not compatible
query I rowsort label-9881
SELECT - ( + MIN ( DISTINCT + - 95 ) ) + + 48
----
143

query I rowsort
SELECT ALL + 69 - + 12
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9883
SELECT - CAST( + 13 AS SIGNED ) * - + 49 * - 97 * + + 96 * - 91 AS col0
----
539788704

skipif mysql # not compatible
query I rowsort label-9883
SELECT - CAST ( + 13 AS INTEGER ) * - + 49 * - 97 * + + 96 * - 91 AS col0
----
539788704

query II rowsort
SELECT ALL 18 col0, - 89
----
18
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9885
SELECT ALL - ( - CAST( NULLIF ( - + 12, - NULLIF ( - CASE - 59 WHEN + 56 THEN NULL WHEN CASE + NULLIF ( - 39, - 95 ) WHEN + - 11 THEN NULL WHEN - ( - 29 ) - - MIN( ALL - 17 - + 39 ) THEN + 20 END THEN NULL ELSE CAST( NULL AS DECIMAL ) END, + 9 ) * 75 ) AS SIGNED ) ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL - ( - CAST ( NULLIF ( - + 12, - NULLIF ( - CASE - 59 WHEN + 56 THEN NULL WHEN CASE + NULLIF ( - 39, - 95 ) WHEN + - 11 THEN NULL WHEN - ( - 29 ) - - MIN ( ALL - 17 - + 39 ) THEN + 20 END THEN NULL ELSE CAST ( NULL AS REAL ) END, + 9 ) * 75 ) AS INTEGER ) ) / 71
----
0

query I rowsort
SELECT ALL + 17 * + 55 + 70 - + - 20
----
1025

onlyif mysql # aggregate syntax: 
query II rowsort label-9887
SELECT - + COUNT( * ) AS col2, - 90 AS col0
----
-1
-90

skipif mysql # not compatible
query II rowsort label-9887
SELECT - + COUNT ( * ) AS col2, - 90 AS col0
----
-1
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9888
SELECT DISTINCT + ( + 51 ) * 87 AS col0, 40 + + + 57 * - 60 - - MAX( - 0 )
----
4437
-3380

skipif mysql # not compatible
query II rowsort label-9888
SELECT DISTINCT + ( + 51 ) * 87 AS col0, 40 + + + 57 * - 60 - - MAX ( - 0 )
----
4437
-3380

query II rowsort
SELECT - 30 AS col1, 87
----
-30
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9890
SELECT - + MIN( ALL + + 88 ) * 9 * + 77 * - 34 * - CAST( 13 AS SIGNED ) * - 4
----
107819712

skipif mysql # not compatible
query I rowsort label-9890
SELECT - + MIN ( ALL + + 88 ) * 9 * + 77 * - 34 * - CAST ( 13 AS INTEGER ) * - 4
----
107819712

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT + + COUNT( * ) * - 75 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT + + COUNT ( * ) * - 75 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT ALL + - COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL + - COUNT ( * ) * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9893
SELECT ALL - COUNT( DISTINCT - 42 ) DIV + ( + SUM( ALL 10 ) ) + - 41 + - - 44 + - SUM( - 35 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL - COUNT ( DISTINCT - 42 ) / + ( + SUM ( ALL 10 ) ) + - 41 + - - 44 + - SUM ( - 35 ) AS col0
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9894
SELECT ALL COUNT( * ) DIV SUM( + 42 ) AS col1, COALESCE ( + 35, + 84, + + 54 * + + 47 + - - 32 - 89 DIV 88 + - 33 ) AS col1
----
0
35

skipif mysql # not compatible
query II rowsort label-9894
SELECT ALL COUNT ( * ) / SUM ( + 42 ) AS col1, COALESCE ( + 35, + 84, + + 54 * + + 47 + - - 32 - 89 / 88 + - 33 ) AS col1
----
0
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT - 40 * COUNT( * ) + + 42 + - 87
----
-85

skipif mysql # not compatible
query I rowsort label-9895
SELECT - 40 * COUNT ( * ) + + 42 + - 87
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9896
SELECT ALL + CASE - + CAST( + + 62 AS DECIMAL ) WHEN - 38 THEN - 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL + CASE - + CAST ( + + 62 AS REAL ) WHEN - 38 THEN - 21 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9897
SELECT + 48 DIV + CAST( + 21 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-9897
SELECT + 48 / + CAST ( + 21 AS INTEGER )
----
2

query I rowsort
SELECT ( + + 5 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9899
SELECT + 35 * + CAST( NULL AS SIGNED ) * ( ( - + 4 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT + 35 * + CAST ( NULL AS INTEGER ) * ( ( - + 4 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9900
SELECT + 94 + + MIN( DISTINCT + + 91 ) * + + 25 * ( + 36 ) * + + COUNT( * ), SUM( DISTINCT 52 ) + + 61 AS col2
----
81994
113

skipif mysql # not compatible
query II rowsort label-9900
SELECT + 94 + + MIN ( DISTINCT + + 91 ) * + + 25 * ( + 36 ) * + + COUNT ( * ), SUM ( DISTINCT 52 ) + + 61 AS col2
----
81994
113

query I rowsort
SELECT DISTINCT + 50 * - 65 + 55 AS col0
----
-3195

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT CASE 9 WHEN - - 52 THEN - - MAX( - 94 ) * - + 6 * MIN( DISTINCT + + 18 ) - - 82 + - 85 * + 69 - 24 * - 59 WHEN + 96 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9902
SELECT CASE 9 WHEN - - 52 THEN - - MAX ( - 94 ) * - + 6 * MIN ( DISTINCT + + 18 ) - - 82 + - 85 * + 69 - 24 * - 59 WHEN + 96 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 49 * 12 + - 32 - + + 50 + CASE + 46 WHEN - - 5 THEN 62 - - - 40 / - 89 WHEN - - 82 THEN + 84 END + + 74 col1
----
NULL

query I rowsort
SELECT DISTINCT ( + 0 ) * - + 52 + - 46 AS col0
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9905
SELECT + NULLIF ( 52, + CAST( NULL AS DECIMAL ) / - + 61 + 19 ) * - 49
----
-2548

skipif mysql # not compatible
query I rowsort label-9905
SELECT + NULLIF ( 52, + CAST ( NULL AS REAL ) / - + 61 + 19 ) * - 49
----
-2548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT + CAST( + 40 AS SIGNED ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9906
SELECT + CAST ( + 40 AS INTEGER ) AS col1
----
40

query I rowsort
SELECT + 46 - 58 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9908
SELECT + COUNT( * ) * 49 AS col0, 41
----
49
41

skipif mysql # not compatible
query II rowsort label-9908
SELECT + COUNT ( * ) * 49 AS col0, 41
----
49
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ALL 33 * - + 33 * - COUNT( * ) * - COUNT( * )
----
-1089

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL 33 * - + 33 * - COUNT ( * ) * - COUNT ( * )
----
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT CASE - ( 45 ) WHEN + ( + ( - + 70 ) ) / - 36 + + 48 THEN COUNT( * ) WHEN - 51 * + - 3 + 96 + 90 * - - ( ( + ( - 59 ) ) ) * 6 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT CASE - ( 45 ) WHEN + ( + ( - + 70 ) ) / - 36 + + 48 THEN COUNT ( * ) WHEN - 51 * + - 3 + 96 + 90 * - - ( ( + ( - 59 ) ) ) * 6 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + CASE - 58 WHEN + 42 THEN + ( 59 ) END * ( + 2 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9912
SELECT DISTINCT - 68 DIV 36 col2, + MAX( - + 26 ) AS col1
----
-1
-26

skipif mysql # not compatible
query II rowsort label-9912
SELECT DISTINCT - 68 / 36 col2, + MAX ( - + 26 ) AS col1
----
-1
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT + 54 * - CASE - 13 WHEN + COUNT( ALL - 51 ) THEN + - 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT + 54 * - CASE - 13 WHEN + COUNT ( ALL - 51 ) THEN + - 55 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9914
SELECT ALL - - NULLIF ( 83, + COUNT( * ) * 56 + - AVG ( - + COALESCE ( - 14, + - 78 ) ) - - - CAST( + - 72 AS DECIMAL ) * + CAST( + + CASE + 17 WHEN 14 * + 36 + + ( 98 ) THEN 46 + 41 ELSE NULL END AS DECIMAL ) * 77 * 52 ) * + 86
----
7138

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL - - NULLIF ( 83, + COUNT ( * ) * 56 + - AVG ( - + COALESCE ( - 14, + - 78 ) ) - - - CAST ( + - 72 AS REAL ) * + CAST ( + + CASE + 17 WHEN 14 * + 36 + + ( 98 ) THEN 46 + 41 ELSE NULL END AS REAL ) * 77 * 52 ) * + 86
----
7138

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT + + COUNT( * ) - 40 * + 51 col1
----
-2039

skipif mysql # not compatible
query I rowsort label-9915
SELECT + + COUNT ( * ) - 40 * + 51 col1
----
-2039

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT - + CASE - - 10 WHEN + 63 * 49 THEN 85 * + 74 - - 19 + + 73 * 31 * 70 WHEN COUNT( * ) * CASE 50 WHEN 44 + 92 THEN - COUNT( * ) WHEN - CASE 59 WHEN + 37 * 62 THEN - AVG ( DISTINCT 71 ) / 75 - MAX( ALL 35 ) END - 25 * + 28 THEN 2 WHEN 91 / + 91 THEN NULL END + - COUNT( * ) * + 85 THEN 96 * 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT - + CASE - - 10 WHEN + 63 * 49 THEN 85 * + 74 - - 19 + + 73 * 31 * 70 WHEN COUNT ( * ) * CASE 50 WHEN 44 + 92 THEN - COUNT ( * ) WHEN - CASE 59 WHEN + 37 * 62 THEN - AVG ( DISTINCT 71 ) / 75 - MAX ( ALL 35 ) END - 25 * + 28 THEN 2 WHEN 91 / + 91 THEN NULL END + - COUNT ( * ) * + 85 THEN 96 * 8 ELSE NULL END
----
NULL

query I rowsort
SELECT + + 97 + - + 6 AS col2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9918
SELECT ALL - CAST( 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL - CAST ( 16 AS INTEGER )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-9919
SELECT + - 80 DIV 29 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9919
SELECT + - 80 / 29 AS col0
----
-2

query I rowsort
SELECT ALL ( + + 23 )
----
23

query I rowsort
SELECT + 57 + - 6 AS col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9922
SELECT DISTINCT + 92 DIV - 85 - - 37 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT + 92 / - 85 - - 37 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT DISTINCT + 28 + COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT + 28 + COUNT ( * ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT MIN( DISTINCT - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-9924
SELECT MIN ( DISTINCT - 85 )
----
-85

query I rowsort
SELECT + 6 + - 90 * - 49
----
4416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9926
SELECT DISTINCT - COALESCE ( + 23, + - COUNT( * ) * - 30 * CAST( + 55 AS SIGNED ) DIV - 28 * - 77 + - SUM( DISTINCT - - 21 ) + - + COUNT( * ) DIV + SUM( - CAST( - 73 AS SIGNED ) ) - + COUNT( * ) ) + + ( + CAST( - 16 AS SIGNED ) + COUNT( * ) )
----
-38

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT - COALESCE ( + 23, + - COUNT ( * ) * - 30 * CAST ( + 55 AS INTEGER ) / - 28 * - 77 + - SUM ( DISTINCT - - 21 ) + - + COUNT ( * ) / + SUM ( - CAST ( - 73 AS INTEGER ) ) - + COUNT ( * ) ) + + ( + CAST ( - 16 AS INTEGER ) + COUNT ( * ) )
----
-38

query I rowsort
SELECT DISTINCT + ( - 16 ) + - 1 AS col2
----
-17

query I rowsort
SELECT ALL - 77 + + 97 * + 33 + + 82 * + 74
----
9192

query I rowsort
SELECT ALL + 13 + 7 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT - SUM( DISTINCT - 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT - SUM ( DISTINCT - 86 ) AS col0
----
86

query I rowsort
SELECT ALL - 4 * ( 37 )
----
-148

query I rowsort
SELECT 20 + 72 AS col1
----
92

query I rowsort
SELECT DISTINCT - 32 + + 84 col2
----
52

query I rowsort
SELECT DISTINCT + 32 + - 20
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9935
SELECT ALL 58 + - + CAST( - ( - 36 ) AS SIGNED ) + - 4 * + - 29
----
138

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL 58 + - + CAST ( - ( - 36 ) AS INTEGER ) + - 4 * + - 29
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-9936
SELECT DISTINCT 17 DIV - 17 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT 17 / - 17 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9937
SELECT DISTINCT - ( - - CASE - - COUNT( * ) WHEN 75 THEN NULL WHEN + - CASE - 15 WHEN 32 THEN NULL WHEN + 71 THEN NULL ELSE - - 48 + 65 END + - 26 + + MIN( 70 ) - 1 / + 69 * NULLIF ( 96, CAST( - 13 AS SIGNED ) + + CAST( NULL AS SIGNED ) * - 62 ) THEN 70 ELSE 89 END ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT - ( - - CASE - - COUNT ( * ) WHEN 75 THEN NULL WHEN + - CASE - 15 WHEN 32 THEN NULL WHEN + 71 THEN NULL ELSE - - 48 + 65 END + - 26 + + MIN ( 70 ) - 1 / + 69 * NULLIF ( 96, CAST ( - 13 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - 62 ) THEN 70 ELSE 89 END ) AS col2
----
-89

query I rowsort
SELECT 83 * - ( - - 39 ) AS col2
----
-3237

query I rowsort
SELECT ALL 16 * 50 AS col0
----
800

query I rowsort
SELECT 54 + + 34
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9941
SELECT ALL - 69 DIV - MAX( + 15 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL - 69 / - MAX ( + 15 ) AS col1
----
4

query I rowsort
SELECT ALL 92 * - + ( - 65 ) * 88 AS col0
----
526240

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT CASE + + 3 WHEN + 77 / CASE 22 WHEN + 95 * + 20 * - ( - ( + 64 ) ) + + + SUM( DISTINCT 17 ) THEN 17 WHEN - 17 THEN 19 * 70 ELSE NULL END * + 63 THEN + 37 * 99 + + 12 * 75 WHEN 52 + 66 * - COUNT( * ) THEN NULL ELSE ( 30 ) END + - 26 * + 60 AS col0
----
-1530

skipif mysql # not compatible
query I rowsort label-9943
SELECT CASE + + 3 WHEN + 77 / CASE 22 WHEN + 95 * + 20 * - ( - ( + 64 ) ) + + + SUM ( DISTINCT 17 ) THEN 17 WHEN - 17 THEN 19 * 70 ELSE NULL END * + 63 THEN + 37 * 99 + + 12 * 75 WHEN 52 + 66 * - COUNT ( * ) THEN NULL ELSE ( 30 ) END + - 26 * + 60 AS col0
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT DISTINCT - 52 - 93 - 32 * - - 21 * - 26 + + + 76 + + COALESCE ( - 48, - + 93 + + + 17, 11 + COUNT( ALL - 61 ) )
----
17355

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT - 52 - 93 - 32 * - - 21 * - 26 + + + 76 + + COALESCE ( - 48, - + 93 + + + 17, 11 + COUNT ( ALL - 61 ) )
----
17355

query I rowsort
SELECT DISTINCT + 97 * - 39 col2
----
-3783

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT + 48 + - COUNT( + 97 ) * - COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9946
SELECT + 48 + - COUNT ( + 97 ) * - COUNT ( * ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT COUNT( * ) * - - 29 / - + SUM( 88 ) / - - 65 + + CASE - 4 WHEN + 80 / - 10 + - + 31 * - + 20 THEN NULL ELSE - CASE COUNT( * ) WHEN - 0 THEN NULL WHEN 29 * + 41 THEN - 10 WHEN + 80 / - 61 THEN + ( + 79 ) END END * 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT COUNT ( * ) * - - 29 / - + SUM ( 88 ) / - - 65 + + CASE - 4 WHEN + 80 / - 10 + - + 31 * - + 20 THEN NULL ELSE - CASE COUNT ( * ) WHEN - 0 THEN NULL WHEN 29 * + 41 THEN - 10 WHEN + 80 / - 61 THEN + ( + 79 ) END END * 9 AS col2
----
NULL

query I rowsort
SELECT ALL + 6 * - - 53 AS col1
----
318

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT + MAX( ALL - 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-9949
SELECT + MAX ( ALL - 49 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT + ( + + 34 ) * 34 * 74 + 24 + - MIN( + 65 ) AS col1
----
85503

skipif mysql # not compatible
query I rowsort label-9950
SELECT + ( + + 34 ) * 34 * 74 + 24 + - MIN ( + 65 ) AS col1
----
85503

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT COUNT( * ) + + - 6 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9951
SELECT COUNT ( * ) + + - 6 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT DISTINCT COUNT( + 87 )
----
1

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT COUNT ( + 87 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9953
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * )
----
NULL

query II rowsort
SELECT - 15 AS col2, 99 + - - 74
----
-15
173

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ALL SUM( ALL - 26 ) + - - 14 * - COALESCE ( ( + 21 ), + - 31 ) * - - COUNT( * ) col0
----
-320

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL SUM ( ALL - 26 ) + - - 14 * - COALESCE ( ( + 21 ), + - 31 ) * - - COUNT ( * ) col0
----
-320

query II rowsort
SELECT - 55 * + - 27 + + 97, - 83 * + - 79 AS col1
----
1582
6557

query I rowsort
SELECT ALL + 63 + + 55 AS col1
----
118

query I rowsort
SELECT ALL + + 94 + 47
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-9959
SELECT ALL + 69, - 13 + - MIN( DISTINCT 52 ) AS col2
----
69
-65

skipif mysql # not compatible
query II rowsort label-9959
SELECT ALL + 69, - 13 + - MIN ( DISTINCT 52 ) AS col2
----
69
-65

query I rowsort
SELECT + 21 * 32
----
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9961
SELECT CASE 85 WHEN + 87 THEN + 79 WHEN - - 26 THEN CAST( NULL AS SIGNED ) ELSE NULL END * COALESCE ( + 76, - 86, + + 89, + - COUNT( * ) ) - + - CASE + 8 WHEN + + 8 * - + 0 THEN NULL WHEN - 90 THEN - 10 + + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT CASE 85 WHEN + 87 THEN + 79 WHEN - - 26 THEN CAST ( NULL AS INTEGER ) ELSE NULL END * COALESCE ( + 76, - 86, + + 89, + - COUNT ( * ) ) - + - CASE + 8 WHEN + + 8 * - + 0 THEN NULL WHEN - 90 THEN - 10 + + 93 END
----
NULL

query II rowsort
SELECT DISTINCT + 77 AS col1, 28 AS col0
----
77
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9963
SELECT 64 DIV 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9963
SELECT 64 / 82 AS col0
----
0

query II rowsort
SELECT ALL 45 AS col1, 74 AS col1
----
45
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9965
SELECT COUNT( * ) + - + 98 + - MAX( DISTINCT + 21 ) * ( 62 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT COUNT ( * ) + - + 98 + - MAX ( DISTINCT + 21 ) * ( 62 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 42 + 93
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9967
SELECT DISTINCT + ( 20 ) DIV + 62 + + 68 - 79 + - 2 + + ( + COUNT( * ) ) DIV - 18 * 92
----
-13

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT + ( 20 ) / + 62 + + 68 - 79 + - 2 + + ( + COUNT ( * ) ) / - 18 * 92
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9968
SELECT 33 DIV - 43 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9968
SELECT 33 / - 43 * COUNT ( * )
----
0

query II rowsort
SELECT ALL + 46 * + 3, 34 AS col2
----
138
34

query III rowsort
SELECT + 10, 18 AS col0, + 55 AS col0
----
10
18
55

query II rowsort
SELECT ALL - 84 AS col2, + 16 AS col1
----
-84
16

query I rowsort
SELECT ALL - 73 * 97 AS col0
----
-7081

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9973
SELECT + NULLIF ( + + 4, + NULLIF ( 97, - - 10 * + CAST( NULL AS DECIMAL ) * + 12 + - - COUNT( * ) ) * - COALESCE ( + + SUM( ALL ( 83 ) ), + - MIN( + 86 ) ) + + + 17 ) * + - 79 + + 92 * + 63
----
5480

skipif mysql # not compatible
query I rowsort label-9973
SELECT + NULLIF ( + + 4, + NULLIF ( 97, - - 10 * + CAST ( NULL AS REAL ) * + 12 + - - COUNT ( * ) ) * - COALESCE ( + + SUM ( ALL ( 83 ) ), + - MIN ( + 86 ) ) + + + 17 ) * + - 79 + + 92 * + 63
----
5480

query I rowsort
SELECT ALL - COALESCE ( 35, + 64 )
----
-35

query I rowsort
SELECT ALL - 83 - - 20
----
-63

query I rowsort
SELECT DISTINCT - 65 * - 99 col0
----
6435

query II rowsort
SELECT + 78 AS col1, 79 AS col0
----
78
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL - MAX( 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL - MAX ( 88 )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9979
SELECT ALL - CAST( + 96 AS SIGNED ) * + 19 + 4 * + 83 * - COUNT( * )
----
-2156

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL - CAST ( + 96 AS INTEGER ) * + 19 + 4 * + 83 * - COUNT ( * )
----
-2156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9980
SELECT DISTINCT - 65 * 85 * - 24 * + ( - CAST( 14 AS SIGNED ) ) * + + 37 * - COUNT( * ) AS col0
----
68686800

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT - 65 * 85 * - 24 * + ( - CAST ( 14 AS INTEGER ) ) * + + 37 * - COUNT ( * ) AS col0
----
68686800

onlyif mysql # DIV for integer division: 
query I rowsort label-9981
SELECT DISTINCT 45 DIV + 87 * - 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT 45 / + 87 * - 91 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT 2 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9982
SELECT 2 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - 87, + 56 AS col2
----
-87
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT 79 - COUNT( * ) * 30
----
49

skipif mysql # not compatible
query I rowsort label-9984
SELECT 79 - COUNT ( * ) * 30
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9985
SELECT - COUNT( * ) DIV + 38 + + - ( + - SUM( - 3 ) ) * - MIN( + 56 ) + + 11 AS col0
----
179

skipif mysql # not compatible
query I rowsort label-9985
SELECT - COUNT ( * ) / + 38 + + - ( + - SUM ( - 3 ) ) * - MIN ( + 56 ) + + 11 AS col0
----
179

query I rowsort
SELECT + 12 - 21 AS col2
----
-9

query I rowsort
SELECT ALL - 94 + 91 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT - - 89 - - + 95 + + CASE + - ( - 70 ) WHEN - COALESCE ( - 24, 64, + - MIN( DISTINCT + 29 ) ) THEN - 10 WHEN + - 71 * 58 THEN ( - + 60 ) WHEN 19 + NULLIF ( NULLIF ( 36, + 84 ), 82 - - ( 51 ) ) / + 23 THEN - 28 * 31 END + - 84 * - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT - - 89 - - + 95 + + CASE + - ( - 70 ) WHEN - COALESCE ( - 24, 64, + - MIN ( DISTINCT + 29 ) ) THEN - 10 WHEN + - 71 * 58 THEN ( - + 60 ) WHEN 19 + NULLIF ( NULLIF ( 36, + 84 ), 82 - - ( 51 ) ) / + 23 THEN - 28 * 31 END + - 84 * - 18 AS col1
----
NULL

query I rowsort
SELECT ALL - 83 + + 12 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT DISTINCT + COUNT( * ) * - 24 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT + COUNT ( * ) * - 24 AS col1
----
-24

query I rowsort
SELECT ALL + 3 + - - 60
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9992
SELECT - 5, 94 * 52 + + - 16 + - CAST( NULL AS SIGNED ) AS col2
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-9992
SELECT - 5, 94 * 52 + + - 16 + - CAST ( NULL AS INTEGER ) AS col2
----
-5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT DISTINCT + 92 * 99 + + 67 DIV 25 DIV 89
----
9108

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT + 92 * 99 + + 67 / 25 / 89
----
9108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT ALL - 34 + - 74 + + - CAST( - - 49 AS SIGNED ) * 27
----
-1431

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL - 34 + - 74 + + - CAST ( - - 49 AS INTEGER ) * 27
----
-1431

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT - 19 + + 92 + + 79 + + 15 * ( - COUNT( * ) ) * - 36 * + 79 * ( 35 ) + + 39 * - 31 * 47 AS col0
----
1436429

skipif mysql # not compatible
query I rowsort label-9995
SELECT - 19 + + 92 + + 79 + + 15 * ( - COUNT ( * ) ) * - 36 * + 79 * ( 35 ) + + 39 * - 31 * 47 AS col0
----
1436429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9996
SELECT + CASE WHEN - 90 IS NULL THEN + CAST( + - 32 AS SIGNED ) END * + 29 / 64 * 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9996
SELECT + CASE WHEN - 90 IS NULL THEN + CAST ( + - 32 AS INTEGER ) END * + 29 / 64 * 25 AS col1
----
NULL

query I rowsort
SELECT ALL 58 + - 38 * - 20
----
818

query I rowsort
SELECT + - 87 + - 15 + - 0 * + 60
----
-102

query I rowsort
SELECT - COALESCE ( + + 24, - - 47 + 62 + + 61, 17 - 46 )
----
-24

