sqllogictest
Artifact Content
Not logged in

Artifact 92c4da4770bbf2beac37934c52669418963dc4fc:


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 ALL + 70 - 19 + - 68 AS col2
----
-17

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3
SELECT + 1 * + 66 + 5 AS col0, 43 + - - SUM( - - CAST( NULL AS SIGNED ) ) * COUNT( * ) * 19 + - CAST( + 57 AS SIGNED ) * CASE 22 WHEN 4 THEN - + 22 + - 11 + - CAST( + 93 AS SIGNED ) ELSE NULL END
----
71
NULL

skipif mysql # not compatible
query II rowsort label-3
SELECT + 1 * + 66 + 5 AS col0, 43 + - - SUM ( - - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * 19 + - CAST ( + 57 AS INTEGER ) * CASE 22 WHEN 4 THEN - + 22 + - 11 + - CAST ( + 93 AS INTEGER ) ELSE NULL END
----
71
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4
SELECT ALL - - 97, - 40 * + ( - 36 ) * - - COUNT( * ) + - + COUNT( DISTINCT 11 ) AS col0
----
97
1439

skipif mysql # not compatible
query II rowsort label-4
SELECT ALL - - 97, - 40 * + ( - 36 ) * - - COUNT ( * ) + - + COUNT ( DISTINCT 11 ) AS col0
----
97
1439

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT ALL - - MAX( ALL - - 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL - - MAX ( ALL - - 36 ) AS col2
----
36

query II rowsort
SELECT + - 87 AS col1, 76
----
-87
76

query I rowsort
SELECT - 55 + ( - 75 )
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT 89 DIV + - 12
----
-7

skipif mysql # not compatible
query I rowsort label-8
SELECT 89 / + - 12
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-9
SELECT - 64 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-9
SELECT - 64 / 65
----
0

query II rowsort
SELECT + 94 AS col1, - 77 col1
----
94
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT - 56 * - COALESCE ( + - 94, - 70 * - 68, + 12 ) + - 8 + + 83 * + 34 + - COUNT( * ) * + - COUNT( DISTINCT - - 86 ) + + MIN( ALL - 53 ) + + 98 * - - 17
----
-836

skipif mysql # not compatible
query I rowsort label-11
SELECT - 56 * - COALESCE ( + - 94, - 70 * - 68, + 12 ) + - 8 + + 83 * + 34 + - COUNT ( * ) * + - COUNT ( DISTINCT - - 86 ) + + MIN ( ALL - 53 ) + + 98 * - - 17
----
-836

onlyif mysql # aggregate syntax: 
query II rowsort label-12
SELECT 91 AS col1, COUNT( - 5 ) * + 19 + + 75
----
91
94

skipif mysql # not compatible
query II rowsort label-12
SELECT 91 AS col1, COUNT ( - 5 ) * + 19 + + 75
----
91
94

query I rowsort
SELECT ALL - 84 * - 73 AS col2
----
6132

query II rowsort
SELECT ALL NULLIF ( + 1, + 91 - ( - 51 ) ) + - 18 col1, 89 AS col1
----
-17
89

onlyif mysql # aggregate syntax: 
query II rowsort label-15
SELECT COUNT( * ) + 75 + - ( + + COUNT( * ) ) AS col0, 12 AS col2
----
75
12

skipif mysql # not compatible
query II rowsort label-15
SELECT COUNT ( * ) + 75 + - ( + + COUNT ( * ) ) AS col0, 12 AS col2
----
75
12

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-17
SELECT ALL 7 AS col0, 53 * - COUNT( + - 3 )
----
7
-53

skipif mysql # not compatible
query II rowsort label-17
SELECT ALL 7 AS col0, 53 * - COUNT ( + - 3 )
----
7
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-18
SELECT - MAX( DISTINCT - 4 ) AS col1, - ( 40 ) * + - 92 * - + 71
----
4
-261280

skipif mysql # not compatible
query II rowsort label-18
SELECT - MAX ( DISTINCT - 4 ) AS col1, - ( 40 ) * + - 92 * - + 71
----
4
-261280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-19
SELECT + 84 * - - CAST( - 6 AS SIGNED ) * + - COALESCE ( + + COUNT( * ), 71 ) + - - 52 AS col0
----
556

skipif mysql # not compatible
query I rowsort label-19
SELECT + 84 * - - CAST ( - 6 AS INTEGER ) * + - COALESCE ( + + COUNT ( * ), 71 ) + - - 52 AS col0
----
556

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT ALL CASE - 10 WHEN - - 90 THEN + + 99 * + 36 WHEN - 24 + + 55 * + + COUNT( * ) THEN NULL END + + + COUNT( + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL CASE - 10 WHEN - - 90 THEN + + 99 * + 36 WHEN - 24 + + 55 * + + COUNT ( * ) THEN NULL END + + + COUNT ( + 66 )
----
NULL

query I rowsort
SELECT - 62 * + 81 + - + 48 + + 29 AS col0
----
-5041

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT - NULLIF ( + - COUNT( * ), - 48 * + ( + 68 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-22
SELECT - NULLIF ( + - COUNT ( * ), - 48 * + ( + 68 ) ) AS col2
----
1

query II rowsort
SELECT + 72 + 39, 96 + + + 50 + 16 AS col2
----
111
162

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

query I rowsort
SELECT + 48 + - ( - 42 ) * - + 90
----
-3732

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT - NULLIF ( - 15, 5 + COUNT( ALL 98 ) )
----
15

skipif mysql # not compatible
query I rowsort label-26
SELECT - NULLIF ( - 15, 5 + COUNT ( ALL 98 ) )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-27
SELECT ALL 30 + 3 DIV + 85 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL 30 + 3 / + 85 AS col0
----
30

query II rowsort
SELECT 88 AS col1, + 75
----
88
75

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-30
SELECT ALL + 32, + 67 DIV ( + - 72 ) AS col2
----
32
0

skipif mysql # not compatible
query II rowsort label-30
SELECT ALL + 32, + 67 / ( + - 72 ) AS col2
----
32
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-31
SELECT - 10 + + - 15 + 91 * - 11 + - CASE - + 37 WHEN + 94 * - + 20 * ( 43 ) THEN + 72 ELSE - - COUNT( * ) END DIV - - 42 + + 23
----
-1003

skipif mysql # not compatible
query I rowsort label-31
SELECT - 10 + + - 15 + 91 * - 11 + - CASE - + 37 WHEN + 94 * - + 20 * ( 43 ) THEN + 72 ELSE - - COUNT ( * ) END / - - 42 + + 23
----
-1003

query II rowsort
SELECT ALL + 19 AS col1, 51
----
19
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-33
SELECT + - MAX( DISTINCT + + 28 ) / CAST( NULL AS SIGNED ) + COUNT( * ) / - 57 / MIN( DISTINCT + 34 ) * CAST( NULLIF ( SUM( + 22 ), 61 ) AS SIGNED ) + - 47 + + + ( - - 59 ) + + + 50 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-33
SELECT + - MAX ( DISTINCT + + 28 ) / CAST ( NULL AS INTEGER ) + COUNT ( * ) / - 57 / MIN ( DISTINCT + 34 ) * CAST ( NULLIF ( SUM ( + 22 ), 61 ) AS INTEGER ) + - 47 + + + ( - - 59 ) + + + 50 / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT - - 80 + + + COUNT( - 71 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-34
SELECT - - 80 + + + COUNT ( - 71 ) AS col0
----
81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-36
SELECT - + COALESCE ( + COALESCE ( - - COUNT( * ), + 63 DIV COUNT( * ) ), + COUNT( * ) ) + + + 6 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-36
SELECT - + COALESCE ( + COALESCE ( - - COUNT ( * ), + 63 / COUNT ( * ) ), + COUNT ( * ) ) + + + 6 AS col1
----
5

query II rowsort
SELECT + 73 col1, 53
----
73
53

query I rowsort
SELECT DISTINCT + 8 * + 64 AS col2
----
512

query II rowsort
SELECT - 73 AS col1, - 73
----
-73
-73

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-41
SELECT DISTINCT + - 86 col2, 9 DIV + - 78 + + + 94 AS col1
----
-86
94

skipif mysql # not compatible
query II rowsort label-41
SELECT DISTINCT + - 86 col2, 9 / + - 78 + + + 94 AS col1
----
-86
94

query I rowsort
SELECT ALL + 58 * + - NULLIF ( + 6, - - AVG ( DISTINCT + + 83 ) * 7 ) * - + 8 AS col2
----
2784

query I rowsort
SELECT DISTINCT + + 40 * + 47 * 41 * - + 96
----
-7399680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-44
SELECT + ( 84 ) DIV + COUNT( DISTINCT - NULLIF ( - 52, 42 * - - 93 + + 29 ) ) + 36 * + 57 - COUNT( * ) - - - 75 AS col1
----
2060

skipif mysql # not compatible
query I rowsort label-44
SELECT + ( 84 ) / + COUNT ( DISTINCT - NULLIF ( - 52, 42 * - - 93 + + 29 ) ) + 36 * + 57 - COUNT ( * ) - - - 75 AS col1
----
2060

query II rowsort
SELECT + - 1, 22 AS col1
----
-1
22

query I rowsort
SELECT + + COALESCE ( + 39, - 83 + - + 13 ) col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT - 1 * + ( + + CASE + + 1 WHEN + ( 88 ) THEN NULL WHEN 91 THEN 87 WHEN - COUNT( * ) - + 55 THEN - 32 * 15 + + 33 ELSE NULL END ) * 52 / + + 89 / - + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT - 1 * + ( + + CASE + + 1 WHEN + ( 88 ) THEN NULL WHEN 91 THEN 87 WHEN - COUNT ( * ) - + 55 THEN - 32 * 15 + + 33 ELSE NULL END ) * 52 / + + 89 / - + 63
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT ALL - 3 * - ( - COUNT( * ) ) + ( NULLIF ( + + 70, + + 78 * 91 ) )
----
67

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL - 3 * - ( - COUNT ( * ) ) + ( NULLIF ( + + 70, + + 78 * 91 ) )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-50
SELECT ALL + 20 * 28 + + 40 + - - CAST( NULL AS SIGNED ) * + + 97 AS col0, COUNT( * ) * 33 DIV + 74 + 44 DIV 37 AS col1, + 47 * + 81
----
NULL
1
3807

skipif mysql # not compatible
query III rowsort label-50
SELECT ALL + 20 * 28 + + 40 + - - CAST ( NULL AS INTEGER ) * + + 97 AS col0, COUNT ( * ) * 33 / + 74 + 44 / 37 AS col1, + 47 * + 81
----
NULL
1
3807

query I rowsort
SELECT - 91 - 8
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-52
SELECT ALL + COUNT( ALL + 7 ) AS col0, 5 * - 78 * - - ( + CASE - + 14 WHEN - 19 * COUNT( * ) * - + 71 THEN NULL WHEN + - 3 + - NULLIF ( ( - AVG ( - 81 ) ), 7 ) + - COALESCE ( + 37, 67 + + 58 * + 69, 48 ) THEN 55 ELSE - 29 * - 16 + - CAST( NULL AS SIGNED ) END )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-52
SELECT ALL + COUNT ( ALL + 7 ) AS col0, 5 * - 78 * - - ( + CASE - + 14 WHEN - 19 * COUNT ( * ) * - + 71 THEN NULL WHEN + - 3 + - NULLIF ( ( - AVG ( - 81 ) ), 7 ) + - COALESCE ( + 37, 67 + + 58 * + 69, 48 ) THEN 55 ELSE - 29 * - 16 + - CAST ( NULL AS INTEGER ) END )
----
1
NULL

query I rowsort
SELECT DISTINCT + 59 * 80 + - 85
----
4635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-54
SELECT - 67 * - CAST( + COUNT( * ) AS SIGNED ) * COUNT( * ) DIV + + 71 * + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-54
SELECT - 67 * - CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( * ) / + + 71 * + 47 AS col0
----
0

query I rowsort
SELECT ALL + 26 * - - 69 + 17 AS col0
----
1811

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT ALL - 43 * + 13 + 49 + - MAX( 37 ) + + - 82 + - 18 + - 57 - 27 * + - COALESCE ( 29, - 87, - 34 * + 16 + 14 + 35 ) * 99 - - MAX( DISTINCT 51 - 30 * - 74 ) AS col1
----
79084

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL - 43 * + 13 + 49 + - MAX ( 37 ) + + - 82 + - 18 + - 57 - 27 * + - COALESCE ( 29, - 87, - 34 * + 16 + 14 + 35 ) * 99 - - MAX ( DISTINCT 51 - 30 * - 74 ) AS col1
----
79084

query I rowsort
SELECT - 72 * + 30
----
-2160

query I rowsort
SELECT - 31 + 49 * + 89
----
4330

query II rowsort
SELECT + 54 + - 90 AS col0, - 71 AS col2
----
-36
-71

query I rowsort
SELECT - COALESCE ( + + 86, + 79 + - - 25, 63 * 93 )
----
-86

query I rowsort
SELECT + CASE + 43 WHEN - + ( 90 ) THEN + 16 * - 44 + - - ( + - 55 ) * - 23 * 85 WHEN + 82 THEN NULL ELSE 26 + - + 66 - - 40 END * + - 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-62
SELECT ALL CAST( - 32 AS SIGNED ) * + 23 * + 95
----
-69920

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL CAST ( - 32 AS INTEGER ) * + 23 * + 95
----
-69920

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT DISTINCT COUNT( * ) - + 88 + - - CASE + 13 WHEN + 44 * - 41 + - + 9 THEN + 18 + 42 * 35 WHEN - 6 THEN + 78 * - COALESCE ( + 68, ( + 86 ) * - SUM( DISTINCT 17 ) / + AVG ( ALL 70 + - 72 ), 22 + ( 52 + 1 ) ) / - 66 END - 38 * NULLIF ( + 91 + - 19, 24 * - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-63
SELECT DISTINCT COUNT ( * ) - + 88 + - - CASE + 13 WHEN + 44 * - 41 + - + 9 THEN + 18 + 42 * 35 WHEN - 6 THEN + 78 * - COALESCE ( + 68, ( + 86 ) * - SUM ( DISTINCT 17 ) / + AVG ( ALL 70 + - 72 ), 22 + ( 52 + 1 ) ) / - 66 END - 38 * NULLIF ( + 91 + - 19, 24 * - 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT + - COUNT( * ) + 68 - - - COUNT( * ) * 65 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-64
SELECT + - COUNT ( * ) + 68 - - - COUNT ( * ) * 65 AS col2
----
2

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

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

query I rowsort
SELECT + 83 - 97 AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT ALL + 43 DIV - 63 + - + 63
----
-63

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL + 43 / - 63 + - + 63
----
-63

query I rowsort
SELECT + + 99 * + 58
----
5742

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-69
SELECT - - 82 DIV + 45 col1, + MAX( ALL + 34 )
----
1
34

skipif mysql # not compatible
query II rowsort label-69
SELECT - - 82 / + 45 col1, + MAX ( ALL + 34 )
----
1
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT + 30 * + + ( + 68 ) + SUM( - 20 )
----
2020

skipif mysql # not compatible
query I rowsort label-71
SELECT + 30 * + + ( + 68 ) + SUM ( - 20 )
----
2020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-72
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - 62 * - 88 * - 20 + + 24 - + 44 - CAST( NULL AS SIGNED ) ) / - COUNT( * ) + + SUM( DISTINCT - 23 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-72
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - 62 * - 88 * - 20 + + 24 - + 44 - CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) + + SUM ( DISTINCT - 23 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-73
SELECT ALL - MAX( DISTINCT + 13 ) DIV 8 * - 42 + + COUNT( * ) + - + 56 * - 85 + - 18 AS col0
----
4785

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL - MAX ( DISTINCT + 13 ) / 8 * - 42 + + COUNT ( * ) + - + 56 * - 85 + - 18 AS col0
----
4785

query II rowsort
SELECT ALL + + 62 + + + 58 AS col2, 33 + - + 94 * + 14 AS col2
----
120
-1283

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT ALL + 12 * - - ( + CASE - + 65 WHEN 33 * - - MIN( 35 ) * - 25 + - - 72 THEN - 3 * - 6 + 17 + 29 + - 89 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL + 12 * - - ( + CASE - + 65 WHEN 33 * - - MIN ( 35 ) * - 25 + - - 72 THEN - 3 * - 6 + 17 + 29 + - 89 END ) AS col0
----
NULL

query I rowsort
SELECT 30 * 22 col1
----
660

query I rowsort
SELECT DISTINCT + 39 + - 11 AS col2
----
28

query I rowsort
SELECT 43 + + - NULLIF ( + 78, 76 / - 42 ) AS col1
----
-35

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

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

query II rowsort
SELECT DISTINCT - 97, - 7 + - 82 * 83 AS col2
----
-97
-6813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-82
SELECT 33 DIV CAST( - + COUNT( 27 ) AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-82
SELECT 33 / CAST ( - + COUNT ( 27 ) AS INTEGER )
----
-33

query I rowsort
SELECT 55 + - - 99
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-84
SELECT ALL 89 DIV MIN( 9 ) col0
----
9

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL 89 / MIN ( 9 ) col0
----
9

query I rowsort
SELECT 64 + + 2 + 83
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-86
SELECT - ( + - 86 ) * - - COUNT( * ) * 60 + - 14 + + 48 DIV - - 84 AS col1
----
5146

skipif mysql # not compatible
query I rowsort label-86
SELECT - ( + - 86 ) * - - COUNT ( * ) * 60 + - 14 + + 48 / - - 84 AS col1
----
5146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-87
SELECT 48 DIV ( - - MAX( ALL - 53 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-87
SELECT 48 / ( - - MAX ( ALL - 53 ) ) AS col2
----
0

query I rowsort
SELECT 54 + + 81 col0
----
135

query I rowsort
SELECT ( - 25 ) * 27 * ( + ( + 61 ) ) * 9 AS col2
----
-370575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-90
SELECT ALL + COUNT( + 80 ) * - 3 * - 43 - + 0 DIV MIN( ALL + 6 )
----
129

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL + COUNT ( + 80 ) * - 3 * - 43 - + 0 / MIN ( ALL + 6 )
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT + 67 + - + MAX( + 60 ) * - COUNT( + ( + 65 ) ) * 19 + - 58 * + 94 AS col2
----
-4245

skipif mysql # not compatible
query I rowsort label-91
SELECT + 67 + - + MAX ( + 60 ) * - COUNT ( + ( + 65 ) ) * 19 + - 58 * + 94 AS col2
----
-4245

query I rowsort
SELECT 85 * - 72
----
-6120

query I rowsort
SELECT ALL - - 98 * - + 32 AS col1
----
-3136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-94
SELECT ( + COALESCE ( - 5, - + 99, 85 * + NULLIF ( + 83, - + 29 + - - CAST( NULL AS SIGNED ) + - - MIN( 35 ) ) + + 92, 11 ) ) + - 26
----
-31

skipif mysql # not compatible
query I rowsort label-94
SELECT ( + COALESCE ( - 5, - + 99, 85 * + NULLIF ( + 83, - + 29 + - - CAST ( NULL AS INTEGER ) + - - MIN ( 35 ) ) + + 92, 11 ) ) + - 26
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-95
SELECT ALL - COALESCE ( - 0, - + 41, + + 53 + - COUNT( * ) * + - CAST( NULL AS SIGNED ) + + 18 + - - 89 DIV + + 2 + - - 64 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL - COALESCE ( - 0, - + 41, + + 53 + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + + 18 + - - 89 / + + 2 + - - 64 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-96
SELECT + 8 + - 54 - - + 78 - - - 2 DIV + COUNT( - - 46 ), - 41 - + CASE 60 WHEN + + COUNT( * ) THEN - 43 WHEN + + COUNT( * ) * - 75 THEN NULL END AS col1
----
30
NULL

skipif mysql # not compatible
query II rowsort label-96
SELECT + 8 + - 54 - - + 78 - - - 2 / + COUNT ( - - 46 ), - 41 - + CASE 60 WHEN + + COUNT ( * ) THEN - 43 WHEN + + COUNT ( * ) * - 75 THEN NULL END AS col1
----
30
NULL

query II rowsort
SELECT - - 95, 7 AS col0
----
95
7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-98
SELECT DISTINCT - 82 AS col0, 14 / + CAST( + 80 AS SIGNED ) + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) - 53 / + 68
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-98
SELECT DISTINCT - 82 AS col0, 14 / + CAST ( + 80 AS INTEGER ) + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) - 53 / + 68
----
-82
NULL

query II rowsort
SELECT - 58, ( - 96 ) AS col1
----
-58
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-100
SELECT ALL COALESCE ( - COUNT( * ), - - CAST( NULL AS SIGNED ) DIV + 73 * + COUNT( * ) * 23 * + 83, + ( + COUNT( * ) ) * 59 ) DIV - + 41 col2
----
0

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL COALESCE ( - COUNT ( * ), - - CAST ( NULL AS INTEGER ) / + 73 * + COUNT ( * ) * 23 * + 83, + ( + COUNT ( * ) ) * 59 ) / - + 41 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT MIN( 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-101
SELECT MIN ( 57 ) AS col1
----
57

query I rowsort
SELECT ALL + 6 + + 31 + + 58 AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-103
SELECT DISTINCT COUNT( * ) * - 52 DIV 35 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT COUNT ( * ) * - 52 / 35 AS col2
----
-1

query I rowsort
SELECT ALL - 37 + - - 26
----
-11

query I rowsort
SELECT + 10 * - 89 col1
----
-890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-106
SELECT ALL + - COUNT( * ) + - - COUNT( - + 24 ) + + 89 * 86 + COUNT( * ) - - 52 - - COUNT( * ) * + COALESCE ( + COALESCE ( - + CASE + ( + ( + 87 ) ) WHEN - - 47 * + 84 + - 95 THEN - + 92 * - COALESCE ( - 12, - 97, - 68, 74 * 51 ) END, 45, + 73, 55 ), ( 93 ) ) * 18 DIV + 86 AS col2
----
7716

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL + - COUNT ( * ) + - - COUNT ( - + 24 ) + + 89 * 86 + COUNT ( * ) - - 52 - - COUNT ( * ) * + COALESCE ( + COALESCE ( - + CASE + ( + ( + 87 ) ) WHEN - - 47 * + 84 + - 95 THEN - + 92 * - COALESCE ( - 12, - 97, - 68, 74 * 51 ) END, 45, + 73, 55 ), ( 93 ) ) * 18 / + 86 AS col2
----
7716

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

onlyif mysql # DIV for integer division: 
query I rowsort label-108
SELECT 53 DIV 41 * - 8 - 68 + - 68 + - + 1 DIV 19 * 47
----
-144

skipif mysql # not compatible
query I rowsort label-108
SELECT 53 / 41 * - 8 - 68 + - 68 + - + 1 / 19 * 47
----
-144

query I rowsort
SELECT 49 * - - 53 AS col0
----
2597

onlyif mysql # aggregate syntax: 
query II rowsort label-110
SELECT 23 - 89, + ( COUNT( * ) ) AS col2
----
-66
1

skipif mysql # not compatible
query II rowsort label-110
SELECT 23 - 89, + ( COUNT ( * ) ) AS col2
----
-66
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-111
SELECT DISTINCT COALESCE ( + + 8, 78 ) / + ( CAST( NULL AS DECIMAL ) ) + + CASE + 35 WHEN + - 89 + - 4 THEN 78 ELSE NULL END / - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT COALESCE ( + + 8, 78 ) / + ( CAST ( NULL AS REAL ) ) + + CASE + 35 WHEN + - 89 + - 4 THEN 78 ELSE NULL END / - 23
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT 68 DIV - 22 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-112
SELECT 68 / - 22 AS col0
----
-3

query I rowsort
SELECT ALL - 90 - 0
----
-90

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-115
SELECT 58 - 53 DIV - 62
----
58

skipif mysql # not compatible
query I rowsort label-115
SELECT 58 - 53 / - 62
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-116
SELECT ALL - COALESCE ( 57, + ( - CAST( COALESCE ( + + 71, - 68 ) AS SIGNED ) ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL - COALESCE ( 57, + ( - CAST ( COALESCE ( + + 71, - 68 ) AS INTEGER ) ) ) AS col1
----
-57

query I rowsort
SELECT DISTINCT - 63 * - 96 * + 30
----
181440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-118
SELECT 38 * + + COUNT( * ) * - NULLIF ( + - CAST( NULL AS SIGNED ), - - CAST( - CAST( + ( + - COUNT( * ) ) AS SIGNED ) AS SIGNED ) - + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-118
SELECT 38 * + + COUNT ( * ) * - NULLIF ( + - CAST ( NULL AS INTEGER ), - - CAST ( - CAST ( + ( + - COUNT ( * ) ) AS INTEGER ) AS INTEGER ) - + 4 )
----
NULL

query I rowsort
SELECT 74 * - 26 * + 82 AS col0
----
-157768

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

skipif mysql # not compatible
query I rowsort label-120
SELECT - MIN ( DISTINCT - 32 )
----
32

query I rowsort
SELECT 90 + + 97 + + 21 * 26
----
733

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-123
SELECT COUNT( * ) - - 82 AS col1, - 0 AS col0
----
83
0

skipif mysql # not compatible
query II rowsort label-123
SELECT COUNT ( * ) - - 82 AS col1, - 0 AS col0
----
83
0

query I rowsort
SELECT DISTINCT 59 * - 21 AS col0
----
-1239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-125
SELECT - CASE - 17 WHEN - 17 THEN 82 * + COUNT( * ) * + + CAST( NULL AS SIGNED ) WHEN - 44 THEN NULL ELSE - COUNT( - - 38 ) / - 32 * - 52 + - 14 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT - CASE - 17 WHEN - 17 THEN 82 * + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) WHEN - 44 THEN NULL ELSE - COUNT ( - - 38 ) / - 32 * - 52 + - 14 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT + 56 DIV - ( - - 74 ) + + 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-126
SELECT + 56 / - ( - - 74 ) + + 15 AS col2
----
15

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-128
SELECT - 22 DIV + COUNT( ALL - 76 )
----
-22

skipif mysql # not compatible
query I rowsort label-128
SELECT - 22 / + COUNT ( ALL - 76 )
----
-22

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-130
SELECT DISTINCT + + COALESCE ( 94, - 47 ) DIV + 75 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT + + COALESCE ( 94, - 47 ) / + 75 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT ALL - COALESCE ( + COUNT( * ), - 8 ) + - 83
----
-84

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL - COALESCE ( + COUNT ( * ), - 8 ) + - 83
----
-84

query II rowsort
SELECT 10 + 25 * 99 + - 53, 87 - 30 * 52 AS col2
----
2432
-1473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-133
SELECT ALL + - 58 + - 0 + - - 83 - + - 8 + - + 76 * - CAST( 29 AS SIGNED ) + + 57 AS col0
----
2294

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL + - 58 + - 0 + - - 83 - + - 8 + - + 76 * - CAST ( 29 AS INTEGER ) + + 57 AS col0
----
2294

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT DISTINCT - - 29 + - 66 + + COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT - - 29 + - 66 + + COUNT ( * ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT ALL + MAX( DISTINCT - 73 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL + MAX ( DISTINCT - 73 ) AS col2
----
-73

query I rowsort
SELECT 21 * + - 97 - + 77
----
-2114

query I rowsort
SELECT + 8 + - - 87 * - - 82 AS col2
----
7142

query I rowsort
SELECT 58 * - 75 * - - 25 - + 90 AS col0
----
-108840

query I rowsort
SELECT ALL 77 * 41 - - 94 AS col1
----
3251

query I rowsort
SELECT + 2 * + 77 AS col0
----
154

query I rowsort
SELECT + COALESCE ( - 39, - 21 + + 73, + 79 ) AS col0
----
-39

query I rowsort
SELECT ALL 60 * - 52 AS col1
----
-3120

onlyif mysql # DIV for integer division: 
query I rowsort label-143
SELECT + 66 DIV - 20 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-143
SELECT + 66 / - 20 AS col2
----
-3

query I rowsort
SELECT + 48 * + 62 * + 55
----
163680

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

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

query II rowsort
SELECT ALL 86, 58 + + 34 col0
----
86
92

query I rowsort
SELECT + COALESCE ( 17, - 34 ) + 20 AS col2
----
37

query I rowsort
SELECT DISTINCT - + 98 + + + 65
----
-33

query II rowsort
SELECT 50, - 93 AS col0
----
50
-93

query II rowsort
SELECT ALL + - 31 + + 38 - - NULLIF ( - ( + 17 ), - 40 ) AS col0, 1 + 24
----
-10
25

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

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

query I rowsort
SELECT - - 45 + + 12
----
57

query I rowsort
SELECT ALL - 39 + + 69
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT - 79 + - MAX( DISTINCT - - 0 )
----
-79

skipif mysql # not compatible
query I rowsort label-154
SELECT - 79 + - MAX ( DISTINCT - - 0 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT ALL - + COUNT( * ) + 50 * + 36 * + COUNT( * ) col2
----
1799

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL - + COUNT ( * ) + 50 * + 36 * + COUNT ( * ) col2
----
1799

query I rowsort
SELECT - 92 + 61
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT - - 93 * + 16 + + - ( - CASE + + 34 WHEN 51 THEN NULL WHEN + + COUNT( * ) THEN MIN( DISTINCT + + 32 ) WHEN - 68 + - + NULLIF ( + - 72, 36 ) THEN NULL ELSE + ( 40 ) END ) AS col0
----
1528

skipif mysql # not compatible
query I rowsort label-158
SELECT - - 93 * + 16 + + - ( - CASE + + 34 WHEN 51 THEN NULL WHEN + + COUNT ( * ) THEN MIN ( DISTINCT + + 32 ) WHEN - 68 + - + NULLIF ( + - 72, 36 ) THEN NULL ELSE + ( 40 ) END ) AS col0
----
1528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-159
SELECT DISTINCT + + ( + - ( + 9 ) ) / + 91 * + NULLIF ( - CASE - NULLIF ( ( + SUM( - 87 ) ), + COUNT( * ) ) WHEN + 61 - 89 THEN NULL WHEN + 94 THEN + 70 * + 72 + + + 51 + + COUNT( * ) END, - - 43 * + 45 - - 10 + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT + + ( + - ( + 9 ) ) / + 91 * + NULLIF ( - CASE - NULLIF ( ( + SUM ( - 87 ) ), + COUNT ( * ) ) WHEN + 61 - 89 THEN NULL WHEN + 94 THEN + 70 * + 72 + + + 51 + + COUNT ( * ) END, - - 43 * + 45 - - 10 + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - + 24 * 53 col2
----
-1272

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

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

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

query I rowsort
SELECT - 50 * 45
----
-2250

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT ALL 4 DIV + 53 - - 86
----
86

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL 4 / + 53 - - 86
----
86

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-168
SELECT ALL + COUNT( * ) DIV + MIN( ALL 21 ) - 0 * - CAST( - 10 AS SIGNED ) AS col2, 21 DIV + - 19
----
0
-1

skipif mysql # not compatible
query II rowsort label-168
SELECT ALL + COUNT ( * ) / + MIN ( ALL 21 ) - 0 * - CAST ( - 10 AS INTEGER ) AS col2, 21 / + - 19
----
0
-1

query II rowsort
SELECT + 12, + 32 + + 57 + + 32 + + 85 AS col2
----
12
206

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT - 18 - + + 2 + - 23 + - - COUNT( * ) * - 42 + + 34 * - + 37 * - 15 * + 89 * + - 50
----
-83971585

skipif mysql # not compatible
query I rowsort label-172
SELECT - 18 - + + 2 + - 23 + - - COUNT ( * ) * - 42 + + 34 * - + 37 * - 15 * + 89 * + - 50
----
-83971585

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

onlyif mysql # aggregate syntax: 
query II rowsort label-174
SELECT COUNT( * ) * + 99 * + 59 + COUNT( * ) + + ( - 3 ), 91 AS col1
----
5839
91

skipif mysql # not compatible
query II rowsort label-174
SELECT COUNT ( * ) * + 99 * + 59 + COUNT ( * ) + + ( - 3 ), 91 AS col1
----
5839
91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-176
SELECT + ( 13 ) DIV + + 65 * 57 * COUNT( * ) * - COUNT( + 14 )
----
0

skipif mysql # not compatible
query I rowsort label-176
SELECT + ( 13 ) / + + 65 * 57 * COUNT ( * ) * - COUNT ( + 14 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-177
SELECT ALL + ( + + COALESCE ( - + COUNT( DISTINCT - + 77 ), COUNT( * ) + - 83, + - CAST( NULL AS SIGNED ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL + ( + + COALESCE ( - + COUNT ( DISTINCT - + 77 ), COUNT ( * ) + - 83, + - CAST ( NULL AS INTEGER ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-178
SELECT ALL 97 * - COUNT( * ) + + 24 * - ( - + 21 ) * 39 AS col1, + 11 AS col1
----
19559
11

skipif mysql # not compatible
query II rowsort label-178
SELECT ALL 97 * - COUNT ( * ) + + 24 * - ( - + 21 ) * 39 AS col1, + 11 AS col1
----
19559
11

query I rowsort
SELECT + COALESCE ( 87, 48 ) AS col1
----
87

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

query I rowsort
SELECT DISTINCT 71 * + + 31 + + + 44
----
2245

query I rowsort
SELECT ALL 70 * 89 AS col0
----
6230

query II rowsort
SELECT + - 70 AS col1, - 42 col2
----
-70
-42

query II rowsort
SELECT + + 71 + + 12, 8 col1
----
83
8

query II rowsort
SELECT + 4 AS col0, - 18 - - 19
----
4
1

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT DISTINCT + - COUNT( * ) * + ( - + 70 ) + - 14 * MAX( DISTINCT - + 90 ) * + 48 AS col1
----
60550

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT + - COUNT ( * ) * + ( - + 70 ) + - 14 * MAX ( DISTINCT - + 90 ) * + 48 AS col1
----
60550

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT ALL 71 DIV + 26 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL 71 / + 26 AS col0
----
2

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

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

query I rowsort
SELECT DISTINCT + 41 + - - ( - ( + ( + - 67 ) ) ) AS col2
----
108

query II rowsort
SELECT - + 85 AS col1, 19
----
-85
19

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

skipif mysql # not compatible
query I rowsort label-191
SELECT ( + COUNT ( ALL 22 ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-192
SELECT CAST( NULL AS SIGNED ) - NULLIF ( + CASE - - 50 WHEN + - ( + + 20 ) - - MAX( DISTINCT + 96 ) THEN + 57 + - 66 + 54 * 74 WHEN + 82 + 69 THEN NULL ELSE + 6 - - 21 + 98 + - + ( + + 3 ) * COUNT( * ) END, - 18 + 33 ) * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-192
SELECT CAST ( NULL AS INTEGER ) - NULLIF ( + CASE - - 50 WHEN + - ( + + 20 ) - - MAX ( DISTINCT + 96 ) THEN + 57 + - 66 + 54 * 74 WHEN + 82 + 69 THEN NULL ELSE + 6 - - 21 + 98 + - + ( + + 3 ) * COUNT ( * ) END, - 18 + 33 ) * 73 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 36 AS col1, 26 col1
----
-36
26

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT 39 * - + 18 - + CASE - COUNT( * ) WHEN + 54 THEN + + 52 WHEN - + 43 + + 70 THEN + - COUNT( 98 ) ELSE NULL END + - 22 + - + 99 * ( - 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-194
SELECT 39 * - + 18 - + CASE - COUNT ( * ) WHEN + 54 THEN + + 52 WHEN - + 43 + + 70 THEN + - COUNT ( 98 ) ELSE NULL END + - 22 + - + 99 * ( - 31 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT - COUNT( * ) + - NULLIF ( - 10, - 49 )
----
9

skipif mysql # not compatible
query I rowsort label-195
SELECT - COUNT ( * ) + - NULLIF ( - 10, - 49 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-196
SELECT - 95 AS col0, - COUNT( * ) * + 25
----
-95
-25

skipif mysql # not compatible
query II rowsort label-196
SELECT - 95 AS col0, - COUNT ( * ) * + 25
----
-95
-25

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-198
SELECT COALESCE ( - ( - 2 ), + 53 * 61 * - 88 + + 14 * CAST( NULL AS SIGNED ) * - 84 DIV + + 11 ) + + + 95 + + 66 * - 30 * - 94
----
186217

skipif mysql # not compatible
query I rowsort label-198
SELECT COALESCE ( - ( - 2 ), + 53 * 61 * - 88 + + 14 * CAST ( NULL AS INTEGER ) * - 84 / + + 11 ) + + + 95 + + 66 * - 30 * - 94
----
186217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-199
SELECT 77 * COALESCE ( + 40, ( + 97 ) * COUNT( * ) + - + COUNT( * ) + + 68 - - 15 DIV - 13 ) AS col1, ( CAST( NULL AS SIGNED ) ) AS col0
----
3080
NULL

skipif mysql # not compatible
query II rowsort label-199
SELECT 77 * COALESCE ( + 40, ( + 97 ) * COUNT ( * ) + - + COUNT ( * ) + + 68 - - 15 / - 13 ) AS col1, ( CAST ( NULL AS INTEGER ) ) AS col0
----
3080
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-200
SELECT ALL - 31 DIV + 84 * + COUNT( ALL + + 2 ) * - 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - 31 / + 84 * + COUNT ( ALL + + 2 ) * - 14 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT 95 * + SUM( - + 19 ) + + COUNT( ALL + 97 ) - + + 91 * + 62 * - COUNT( DISTINCT - 87 ) * + 65 + 64 + + 72 col0
----
365062

skipif mysql # not compatible
query I rowsort label-201
SELECT 95 * + SUM ( - + 19 ) + + COUNT ( ALL + 97 ) - + + 91 * + 62 * - COUNT ( DISTINCT - 87 ) * + 65 + 64 + + 72 col0
----
365062

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

skipif mysql # not compatible
query I rowsort label-202
SELECT + 12 * + COUNT ( * ) - - - 23 AS col1
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-203
SELECT ALL - NULLIF ( - 89, + 12 / CAST( - - 49 AS DECIMAL ) - - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL - NULLIF ( - 89, + 12 / CAST ( - - 49 AS REAL ) - - 89 )
----
89

query I rowsort
SELECT 64 * 87 * + 86 col1
----
478848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-205
SELECT 67 + + - ( 80 ) * + COUNT( * ) - + 45 + + 39 - - COUNT( * ) - + - 57 * + 13 * SUM( DISTINCT 28 ) * - 9 / + 95 * + 52 + + + CAST( NULL AS SIGNED ) * + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT 67 + + - ( 80 ) * + COUNT ( * ) - + 45 + + 39 - - COUNT ( * ) - + - 57 * + 13 * SUM ( DISTINCT 28 ) * - 9 / + 95 * + 52 + + + CAST ( NULL AS INTEGER ) * + + 63
----
NULL

query I rowsort
SELECT ALL 1 + 53 col1
----
54

query I rowsort
SELECT DISTINCT + 41 * - 7 * 97
----
-27839

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-208
SELECT ( + - COUNT( * ) ) * 7 * - + MAX( + 44 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT ( + - COUNT ( * ) ) * 7 * - + MAX ( + 44 ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-209
SELECT DISTINCT + 42 * 31 DIV + NULLIF ( COUNT( * ), + 96 + - 36 + + ( 76 ) ), 17 DIV - - 38 col2
----
1302
0

skipif mysql # not compatible
query II rowsort label-209
SELECT DISTINCT + 42 * 31 / + NULLIF ( COUNT ( * ), + 96 + - 36 + + ( 76 ) ), 17 / - - 38 col2
----
1302
0

query I rowsort
SELECT - 84 + 54
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-211
SELECT 15 + - 17 DIV + - 45 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-211
SELECT 15 + - 17 / + - 45 AS col2
----
15

query I rowsort
SELECT COALESCE ( - 74, 37 + 58 )
----
-74

query I rowsort
SELECT DISTINCT - 73 + - 48 + + + COALESCE ( - 4, 81 )
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT DISTINCT - ( 7 ) + - ( - 55 ) * + 73 * + - COUNT( * ) AS col0
----
-4022

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT - ( 7 ) + - ( - 55 ) * + 73 * + - COUNT ( * ) AS col0
----
-4022

query I rowsort
SELECT DISTINCT + 12 + 36 AS col2
----
48

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

skipif mysql # not compatible
query I rowsort label-216
SELECT ( - 7 ) + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-217
SELECT ALL - ( - + NULLIF ( - MIN( + - CAST( - + 24 AS SIGNED ) ), + 88 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL - ( - + NULLIF ( - MIN ( + - CAST ( - + 24 AS INTEGER ) ), + 88 ) )
----
-24

query I rowsort
SELECT DISTINCT - 21 * + ( - 14 ) - - 27 col0
----
321

onlyif mysql # DIV for integer division: 
query I rowsort label-219
SELECT - 51 * + 86 + - + 57 - + 14 DIV 59 AS col0
----
-4443

skipif mysql # not compatible
query I rowsort label-219
SELECT - 51 * + 86 + - + 57 - + 14 / 59 AS col0
----
-4443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-220
SELECT NULLIF ( + 66, - CAST( MIN( ALL - 12 ) AS SIGNED ) ) * 11
----
726

skipif mysql # not compatible
query I rowsort label-220
SELECT NULLIF ( + 66, - CAST ( MIN ( ALL - 12 ) AS INTEGER ) ) * 11
----
726

query II rowsort
SELECT ALL 44 * + + 53 AS col1, 63 * + - 13 AS col0
----
2332
-819

query I rowsort
SELECT 64 + + - 68
----
-4

query I rowsort
SELECT 54 + - - 36 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-224
SELECT ALL + ( 42 ) - - + CAST( - - 12 AS SIGNED ) * - - CAST( - 43 AS SIGNED ) + + 23 AS col0
----
-451

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL + ( 42 ) - - + CAST ( - - 12 AS INTEGER ) * - - CAST ( - 43 AS INTEGER ) + + 23 AS col0
----
-451

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT - NULLIF ( - 80, NULLIF ( 59, - - 74 + - 12 / 50 * - ( - 43 ) ) + + 78 + + - 36 / + 36 * + 66 * + + COUNT( * ) ) * + COUNT( * ) col0
----
80

skipif mysql # not compatible
query I rowsort label-225
SELECT - NULLIF ( - 80, NULLIF ( 59, - - 74 + - 12 / 50 * - ( - 43 ) ) + + 78 + + - 36 / + 36 * + 66 * + + COUNT ( * ) ) * + COUNT ( * ) col0
----
80

query I rowsort
SELECT ALL - 27 * - + 21 * + + 86 * 40
----
1950480

onlyif mysql # aggregate syntax: 
query II rowsort label-227
SELECT ALL + COUNT( + 61 ) AS col1, 25 AS col0
----
1
25

skipif mysql # not compatible
query II rowsort label-227
SELECT ALL + COUNT ( + 61 ) AS col1, 25 AS col0
----
1
25

query I rowsort
SELECT ( - 24 ) + + 91
----
67

query II rowsort
SELECT ALL 89 AS col2, 39 * + + 23 AS col1
----
89
897

query II rowsort
SELECT 74 * + 88 * - 25 AS col2, 42
----
-162800
42

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

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

query I rowsort
SELECT DISTINCT 96 * - 93
----
-8928

query I rowsort
SELECT 58 * - 75 AS col2
----
-4350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT ALL 31 * CASE 20 WHEN 5 THEN - + 58 WHEN - 11 THEN NULL END / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL 31 * CASE 20 WHEN 5 THEN - + 58 WHEN - 11 THEN NULL END / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT - SUM( ALL + 71 ) col0
----
-71

skipif mysql # not compatible
query I rowsort label-236
SELECT - SUM ( ALL + 71 ) col0
----
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT 60 * + NULLIF ( + 47, CASE - NULLIF ( COUNT( * ), + ( - 53 ) ) WHEN 79 + + 22 THEN - - NULLIF ( - - 2, + + 77 ) WHEN - 97 THEN COUNT( * ) ELSE NULL END ) AS col0
----
2820

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT 60 * + NULLIF ( + 47, CASE - NULLIF ( COUNT ( * ), + ( - 53 ) ) WHEN 79 + + 22 THEN - - NULLIF ( - - 2, + + 77 ) WHEN - 97 THEN COUNT ( * ) ELSE NULL END ) AS col0
----
2820

query I rowsort
SELECT DISTINCT 95 * - 78 + - - 62 + 68
----
-7280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-240
SELECT ALL 64 * 59 + + 37, 44 + - ( - CASE - 72 WHEN 95 THEN - 37 WHEN + ( - 23 ) * - + 74 - + 32 / - 25 + - - 36 / CAST( NULLIF ( + + 63, - CAST( NULL AS SIGNED ) + - SUM( + 87 ) ) AS SIGNED ) - - - 88 + 4 * + 76 THEN 43 + + 90 END ) AS col2
----
3813
NULL

skipif mysql # not compatible
query II rowsort label-240
SELECT ALL 64 * 59 + + 37, 44 + - ( - CASE - 72 WHEN 95 THEN - 37 WHEN + ( - 23 ) * - + 74 - + 32 / - 25 + - - 36 / CAST ( NULLIF ( + + 63, - CAST ( NULL AS INTEGER ) + - SUM ( + 87 ) ) AS INTEGER ) - - - 88 + 4 * + 76 THEN 43 + + 90 END ) AS col2
----
3813
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-241
SELECT COUNT( * ) col0, + CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-241
SELECT COUNT ( * ) col0, + CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

query I rowsort
SELECT 73 * + 25
----
1825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-243
SELECT CAST( - CASE ( COUNT( * ) ) WHEN 21 THEN - 36 END AS SIGNED ) - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-243
SELECT CAST ( - CASE ( COUNT ( * ) ) WHEN 21 THEN - 36 END AS INTEGER ) - 34
----
NULL

query I rowsort
SELECT 99 + 93 * + + 30 AS col0
----
2889

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT 43 * - COUNT( + 86 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-245
SELECT 43 * - COUNT ( + 86 ) AS col0
----
-43

query I rowsort
SELECT ALL - + 24 * + 63
----
-1512

onlyif mysql # DIV for integer division: 
query I rowsort label-247
SELECT DISTINCT 74 DIV - 88 * - + 62 col0
----
0

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT 74 / - 88 * - + 62 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT ALL + + 12 * 78 + + 74 - MAX( ALL - 10 ) AS col1
----
1020

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL + + 12 * 78 + + 74 - MAX ( ALL - 10 ) AS col1
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL + + COALESCE ( - 32, - ( - - 22 ) * - - 19 * + + 26 + - + 89, - 55 + - COUNT( * ) ) * + + COUNT( * ) - + COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL + + COALESCE ( - 32, - ( - - 22 ) * - - 19 * + + 26 + - + 89, - 55 + - COUNT ( * ) ) * + + COUNT ( * ) - + COUNT ( * ) AS col1
----
-33

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-251
SELECT - - 13 - - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-251
SELECT - - 13 - - - CAST ( NULL AS INTEGER ) col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT - COUNT( * ) + + 27 + - + 25 * - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-253
SELECT - COUNT ( * ) + + 27 + - + 25 * - COUNT ( * )
----
51

query I rowsort
SELECT + ( + 36 ) * + - ( - 92 ) AS col2
----
3312

query II rowsort
SELECT - ( - - ( 31 ) ), + 0 * - ( - 74 ) * 67 AS col2
----
-31
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-256
SELECT + 24, + ( - 75 ) + - + ( CAST( NULL AS SIGNED ) ) col2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-256
SELECT + 24, + ( - 75 ) + - + ( CAST ( NULL AS INTEGER ) ) col2
----
24
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-257
SELECT ALL 35 AS col1, 53 DIV 34 AS col0
----
35
1

skipif mysql # not compatible
query II rowsort label-257
SELECT ALL 35 AS col1, 53 / 34 AS col0
----
35
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-258
SELECT DISTINCT + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-258
SELECT DISTINCT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
0

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

skipif mysql # not compatible
query II rowsort label-259
SELECT - - COUNT ( * ) AS col0, 67 / + COUNT ( * ) AS col1
----
1
67

query I rowsort
SELECT ALL - 31 * + 18
----
-558

query II rowsort
SELECT - 67 + 98 * + 17 * - + 42 col1, - 84
----
-70039
-84

query I rowsort
SELECT - NULLIF ( - + 25, 5 ) + - 87 + + 9 AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-263
SELECT ALL 55 * + CAST( + 84 AS SIGNED ) AS col1
----
4620

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL 55 * + CAST ( + 84 AS INTEGER ) AS col1
----
4620

query I rowsort
SELECT + NULLIF ( - 11, + + 61 ) * 85 + + + 22 + + 20
----
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT - SUM( 98 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-265
SELECT - SUM ( 98 ) AS col2
----
-98

query I rowsort
SELECT ALL - 68 + - + 91 + + + 84 * - ( - 47 ) AS col1
----
3789

query II rowsort
SELECT DISTINCT + 14 + - 74 AS col0, ( + 99 ) + + ( - 93 )
----
-60
6

onlyif mysql # aggregate syntax: 
query II rowsort label-268
SELECT ALL - 59 * COUNT( * ), 8 AS col0
----
-59
8

skipif mysql # not compatible
query II rowsort label-268
SELECT ALL - 59 * COUNT ( * ), 8 AS col0
----
-59
8

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL SUM( DISTINCT + 24 ) + 40 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL SUM ( DISTINCT + 24 ) + 40 AS col2
----
64

query I rowsort
SELECT DISTINCT 13 + + 16 * - 93 AS col2
----
-1475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-271
SELECT - COALESCE ( + SUM( DISTINCT - 19 ), - 55, + 30 DIV + + 12 + + 51 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-271
SELECT - COALESCE ( + SUM ( DISTINCT - 19 ), - 55, + 30 / + + 12 + + 51 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT ALL 47 + - - SUM( - - 79 ) col1
----
126

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL 47 + - - SUM ( - - 79 ) col1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT 42 * ( + COUNT( * ) ) + - 71 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-273
SELECT 42 * ( + COUNT ( * ) ) + - 71 AS col0
----
-29

query I rowsort
SELECT ALL 41 * + 92 * 81 AS col0
----
305532

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT + 53 DIV + 44 + 65 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-275
SELECT + 53 / + 44 + 65 AS col2
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-276
SELECT - 65 * - 31 / + 0 / + 33 / + CASE WHEN ( 55 > NULL ) THEN + 32 END - 22 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-276
SELECT - 65 * - 31 / + 0 / + 33 / + CASE WHEN ( 55 > NULL ) THEN + 32 END - 22 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT + 82 + - - ( - CASE + COUNT( * ) WHEN + + 89 THEN - - 20 + 2 WHEN - 3 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT + 82 + - - ( - CASE + COUNT ( * ) WHEN + + 89 THEN - - 20 + 2 WHEN - 3 THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT ALL 63 * + + 55 * + + 33
----
114345

onlyif mysql # aggregate syntax: 
query II rowsort label-279
SELECT ALL + 43 * MAX( ALL 83 ) * - 19 - + 65, + 32 - CASE - 36 WHEN - 25 THEN 36 ELSE NULL END AS col2
----
-67876
NULL

skipif mysql # not compatible
query II rowsort label-279
SELECT ALL + 43 * MAX ( ALL 83 ) * - 19 - + 65, + 32 - CASE - 36 WHEN - 25 THEN 36 ELSE NULL END AS col2
----
-67876
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-280
SELECT - - 86 * 48 + 89 + COUNT( * ), + 84 AS col2
----
4218
84

skipif mysql # not compatible
query II rowsort label-280
SELECT - - 86 * 48 + 89 + COUNT ( * ), + 84 AS col2
----
4218
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-281
SELECT + - 40 + + - 92 + + 10 + 9 DIV + COUNT( * ) + + 94 + 52 + + ( - 56 ) - - 31 + - COUNT( - - ( - + 78 ) ) + + 74 * - ( + 25 )
----
-1843

skipif mysql # not compatible
query I rowsort label-281
SELECT + - 40 + + - 92 + + 10 + 9 / + COUNT ( * ) + + 94 + 52 + + ( - 56 ) - - 31 + - COUNT ( - - ( - + 78 ) ) + + 74 * - ( + 25 )
----
-1843

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-282
SELECT ALL + 71 / CAST( NULL AS SIGNED ) col2, + 19 AS col2
----
NULL
19

skipif mysql # not compatible
query II rowsort label-282
SELECT ALL + 71 / CAST ( NULL AS INTEGER ) col2, + 19 AS col2
----
NULL
19

query I rowsort
SELECT - ( 78 ) * - - ( + - 98 ) + + ( + + 99 )
----
7743

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT - 26 * + 34 + - 48 + NULLIF ( + 26, + 84 * - COUNT( * ) + - 30 * + COUNT( * ) ) col2
----
-906

skipif mysql # not compatible
query I rowsort label-284
SELECT - 26 * + 34 + - 48 + NULLIF ( + 26, + 84 * - COUNT ( * ) + - 30 * + COUNT ( * ) ) col2
----
-906

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

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT DISTINCT + - SUM( ALL - 55 )
----
55

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT + - SUM ( ALL - 55 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-287
SELECT - ( - - CAST( + + 45 AS SIGNED ) ) + + COUNT( * ) + + 38 * + CAST( NULL AS SIGNED ) + - 83 + + 91 * - + 89 * - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-287
SELECT - ( - - CAST ( + + 45 AS INTEGER ) ) + + COUNT ( * ) + + 38 * + CAST ( NULL AS INTEGER ) + - 83 + + 91 * - + 89 * - 94 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 71 col0
----
71

query I rowsort
SELECT DISTINCT - 86 * + - ( + 23 )
----
1978

query I rowsort
SELECT - 43 * - 16
----
688

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT - COUNT( * ) + + + CASE - 7 WHEN + + 57 THEN 47 ELSE + + 10 END * - 73 * - - 37 * + + 37 AS col0
----
-999371

skipif mysql # not compatible
query I rowsort label-291
SELECT - COUNT ( * ) + + + CASE - 7 WHEN + + 57 THEN 47 ELSE + + 10 END * - 73 * - - 37 * + + 37 AS col0
----
-999371

query II rowsort
SELECT DISTINCT ( + + ( 98 ) ), - 97 AS col2
----
98
-97

query I rowsort
SELECT ALL + 0 + + + 92 AS col1
----
92

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT - NULLIF ( + MAX( ALL + - 72 ), + 69 )
----
72

skipif mysql # not compatible
query I rowsort label-296
SELECT - NULLIF ( + MAX ( ALL + - 72 ), + 69 )
----
72

query I rowsort
SELECT DISTINCT + 83 * + 65 AS col2
----
5395

query I rowsort
SELECT - ( - - 66 ) AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-299
SELECT - ( + CAST( NULL AS SIGNED ) ) / - + COUNT( * ) * + 92 * + CASE 76 WHEN + 39 THEN 82 + 38 * - 80 * 75 * 72 WHEN - 70 * - - 39 THEN + AVG ( - 72 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT - ( + CAST ( NULL AS INTEGER ) ) / - + COUNT ( * ) * + 92 * + CASE 76 WHEN + 39 THEN 82 + 38 * - 80 * 75 * 72 WHEN - 70 * - - 39 THEN + AVG ( - 72 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT ALL COUNT( * ) * + - COALESCE ( + 37, - 31 ) * + 75 * + 67
----
-185925

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL COUNT ( * ) * + - COALESCE ( + 37, - 31 ) * + 75 * + 67
----
-185925

onlyif mysql # DIV for integer division: 
query II rowsort label-301
SELECT ALL 26 AS col2, 72 + + 70 DIV - 45
----
26
71

skipif mysql # not compatible
query II rowsort label-301
SELECT ALL 26 AS col2, 72 + + 70 / - 45
----
26
71

query I rowsort
SELECT 28 + + + 47
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-303
SELECT NULLIF ( 97, - 87 ) DIV - 28 + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-303
SELECT NULLIF ( 97, - 87 ) / - 28 + COUNT ( * )
----
-2

query I rowsort
SELECT 60 * - + 84 * - 5 * + 65
----
1638000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-305
SELECT 30 DIV + 37 + 50 + + + COUNT( * ) col1
----
51

skipif mysql # not compatible
query I rowsort label-305
SELECT 30 / + 37 + 50 + + + COUNT ( * ) col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT ALL SUM( DISTINCT - 95 ) - + ( - - 77 )
----
-172

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL SUM ( DISTINCT - 95 ) - + ( - - 77 )
----
-172

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-307
SELECT + - CASE 11 WHEN + CAST( NULL AS DECIMAL ) THEN 9 * - 33 ELSE NULL END, 38 DIV - - MIN( + 44 ) * - - 37 col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-307
SELECT + - CASE 11 WHEN + CAST ( NULL AS REAL ) THEN 9 * - 33 ELSE NULL END, 38 / - - MIN ( + 44 ) * - - 37 col0
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-308
SELECT CASE - 15 WHEN - 77 THEN - 73 / COUNT( DISTINCT - + 86 ) + + 21 - - 40 / + 68 * 23 + 32 - ( 88 ) * + + 19 * + 15 + + 71 - + 1 + - 14 * - 91 + + 62 * - COUNT( * ) + + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-308
SELECT CASE - 15 WHEN - 77 THEN - 73 / COUNT ( DISTINCT - + 86 ) + + 21 - - 40 / + 68 * 23 + 32 - ( 88 ) * + + 19 * + 15 + + 71 - + 1 + - 14 * - 91 + + 62 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT 39 * + + 52 AS col2
----
2028

query I rowsort
SELECT + ( 72 ) - + 10 + + - 8 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT + MAX( - - 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-311
SELECT + MAX ( - - 55 ) AS col2
----
55

query I rowsort
SELECT DISTINCT - 42 * + 1 AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-313
SELECT - COUNT( NULLIF ( - 34, 59 * - 8 - + - 4 + + 52 ) ) * - + 84 * - - COUNT( * ) + - - 73 - - 28 - - 17 DIV + NULLIF ( - 95, - + 33 + - 91 + 30 DIV + - 78 * 31 * 24 ) + + 14
----
199

skipif mysql # not compatible
query I rowsort label-313
SELECT - COUNT ( NULLIF ( - 34, 59 * - 8 - + - 4 + + 52 ) ) * - + 84 * - - COUNT ( * ) + - - 73 - - 28 - - 17 / + NULLIF ( - 95, - + 33 + - 91 + 30 / + - 78 * 31 * 24 ) + + 14
----
199

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

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT DISTINCT - MIN( ALL + 56 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT - MIN ( ALL + 56 ) AS col0
----
-56

query I rowsort
SELECT ALL - - ( + - ( 18 ) ) col0
----
-18

query I rowsort
SELECT DISTINCT 81 + 20
----
101

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-319
SELECT ALL - COALESCE ( + + CAST( + 92 AS SIGNED ), + 53 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL - COALESCE ( + + CAST ( + 92 AS INTEGER ), + 53 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT ALL - COUNT( * ) + + 83 - - 85 * 68 AS col1
----
5862

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL - COUNT ( * ) + + 83 - - 85 * 68 AS col1
----
5862

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

skipif mysql # not compatible
query II rowsort label-321
SELECT + - 88 col2, + COUNT ( * ) AS col2
----
-88
1

query I rowsort
SELECT ALL + 15 + - - 75 - + 75 + + - 62 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT - SUM( ALL + 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-323
SELECT - SUM ( ALL + 1 ) AS col1
----
-1

query I rowsort
SELECT 8 * + NULLIF ( + 40, + 24 ) AS col0
----
320

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-326
SELECT DISTINCT + 86 + - - 29 * - SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) * - SUM( 24 ) - + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT + 86 + - - 29 * - SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * - SUM ( 24 ) - + + 79
----
NULL

query I rowsort
SELECT 96 - + - 52 + + 81 AS col1
----
229

query I rowsort
SELECT ALL + 68 + 85 AS col0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-329
SELECT DISTINCT 19 DIV + + 5 col0
----
3

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT 19 / + + 5 col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-330
SELECT DISTINCT 37 + + + CAST( + 10 AS SIGNED ) col2
----
47

skipif mysql # not compatible
query I rowsort label-330
SELECT DISTINCT 37 + + + CAST ( + 10 AS INTEGER ) col2
----
47

query I rowsort
SELECT 86 * + 47
----
4042

query II rowsort
SELECT ALL 72 + - 22 - - 66 * - 20 AS col1, - 42 * 88
----
-1270
-3696

query I rowsort
SELECT ALL + 14 * 81 AS col0
----
1134

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

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

query I rowsort
SELECT 9 * - 21 * 61 AS col1
----
-11529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-336
SELECT 83 + + CAST( CASE 28 WHEN + - ( + 42 ) * + - 33 THEN NULL WHEN + + 28 THEN MIN( - 93 ) * - 31 / - + 75 - - CASE + - 65 WHEN + 93 - + COUNT( * ) THEN 4 WHEN + 94 * + NULLIF ( 52, + 33 ) * + 80 THEN - + 58 * - 23 END WHEN - 37 THEN NULL END AS SIGNED ) + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-336
SELECT 83 + + CAST ( CASE 28 WHEN + - ( + 42 ) * + - 33 THEN NULL WHEN + + 28 THEN MIN ( - 93 ) * - 31 / - + 75 - - CASE + - 65 WHEN + 93 - + COUNT ( * ) THEN 4 WHEN + 94 * + NULLIF ( 52, + 33 ) * + 80 THEN - + 58 * - 23 END WHEN - 37 THEN NULL END AS INTEGER ) + 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT 92 + ( + + MAX( DISTINCT - - 20 ) )
----
112

skipif mysql # not compatible
query I rowsort label-337
SELECT 92 + ( + + MAX ( DISTINCT - - 20 ) )
----
112

query I rowsort
SELECT DISTINCT 30 * + - 82 AS col1
----
-2460

onlyif mysql # DIV for integer division: 
query II rowsort label-339
SELECT ALL 27 AS col1, 31 DIV - 1 AS col1
----
27
-31

skipif mysql # not compatible
query II rowsort label-339
SELECT ALL 27 AS col1, 31 / - 1 AS col1
----
27
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-340
SELECT ALL + CAST( NULL AS DECIMAL ) * 57 AS col2, + 4
----
NULL
4

skipif mysql # not compatible
query II rowsort label-340
SELECT ALL + CAST ( NULL AS REAL ) * 57 AS col2, + 4
----
NULL
4

onlyif mysql # aggregate syntax: 
query II rowsort label-341
SELECT ALL 36 AS col1, - COUNT( * ) AS col0
----
36
-1

skipif mysql # not compatible
query II rowsort label-341
SELECT ALL 36 AS col1, - COUNT ( * ) AS col0
----
36
-1

query I rowsort
SELECT 27 + - - 75 - 69
----
33

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

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

query I rowsort
SELECT - 30 * + 20 * - 48 * + 8 + - 87
----
230313

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-345
SELECT - NULLIF ( + - 70, + - 43 ) DIV 19 AS col0, CAST( NULL AS SIGNED ) + - 38 * + NULLIF ( + 53, - 78 * + 30 + 11 + + 81 ) DIV - - 31
----
3
NULL

skipif mysql # not compatible
query II rowsort label-345
SELECT - NULLIF ( + - 70, + - 43 ) / 19 AS col0, CAST ( NULL AS INTEGER ) + - 38 * + NULLIF ( + 53, - 78 * + 30 + 11 + + 81 ) / - - 31
----
3
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-347
SELECT COUNT( * ) DIV 65 + 72 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-347
SELECT COUNT ( * ) / 65 + 72 AS col0
----
72

query I rowsort
SELECT - 69 + 13 * - - CASE + 90 WHEN 12 THEN - 30 / + 9 + - + 85 END
----
NULL

query I rowsort
SELECT - 46 * - - 30 + - 37 + - 94 - 81 * - 48 + - 75 + 49
----
2351

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-351
SELECT ALL - 88 DIV - 27
----
3

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL - 88 / - 27
----
3

query I rowsort
SELECT DISTINCT - + ( + 86 ) + + - 55 * + 6
----
-416

query I rowsort
SELECT DISTINCT - - 93 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ALL - - NULLIF ( - MAX( + COALESCE ( + 88, + 70 ) ), + 49 * + - 71 - - + MIN( CASE - 92 WHEN 32 THEN 49 + + 50 + - 55 ELSE 85 END ) + - 27 )
----
-88

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL - - NULLIF ( - MAX ( + COALESCE ( + 88, + 70 ) ), + 49 * + - 71 - - + MIN ( CASE - 92 WHEN 32 THEN 49 + + 50 + - 55 ELSE 85 END ) + - 27 )
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-355
SELECT - 99 AS col2, + 18 * 19 DIV + 25 AS col1
----
-99
13

skipif mysql # not compatible
query II rowsort label-355
SELECT - 99 AS col2, + 18 * 19 / + 25 AS col1
----
-99
13

query II rowsort
SELECT + + 40 * + 91 * + 18 + - 52, 97 AS col0
----
65468
97

query I rowsort
SELECT DISTINCT - 36 + 83
----
47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-359
SELECT DISTINCT 37 + CASE + AVG ( + 75 ) WHEN COUNT( * ) THEN - - 53 WHEN + - 23 THEN 81 + CAST( + 38 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-359
SELECT DISTINCT 37 + CASE + AVG ( + 75 ) WHEN COUNT ( * ) THEN - - 53 WHEN + - 23 THEN 81 + CAST ( + 38 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT ALL 96 + - NULLIF ( 80, + + 85 + - COUNT( * ) - 26 )
----
16

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL 96 + - NULLIF ( 80, + + 85 + - COUNT ( * ) - 26 )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-361
SELECT SUM( DISTINCT 84 ) + + COALESCE ( 76, - 81 ) + + 45 + 16, + 39 * - 81 col0
----
221
-3159

skipif mysql # not compatible
query II rowsort label-361
SELECT SUM ( DISTINCT 84 ) + + COALESCE ( 76, - 81 ) + + 45 + 16, + 39 * - 81 col0
----
221
-3159

query I rowsort
SELECT 2 + + - 11 + - 11 * + ( + - 33 )
----
354

onlyif mysql # aggregate syntax: 
query II rowsort label-363
SELECT 9 * - COUNT( * ) AS col0, + 85 * + + ( - + 14 ) + + 89
----
-9
-1101

skipif mysql # not compatible
query II rowsort label-363
SELECT 9 * - COUNT ( * ) AS col0, + 85 * + + ( - + 14 ) + + 89
----
-9
-1101

query I rowsort
SELECT - CASE + 75 WHEN + 29 + 80 THEN 35 + - 37 ELSE NULL END
----
NULL

query I rowsort
SELECT + 0 * + 43
----
0

query I rowsort
SELECT + 59 * - 44
----
-2596

onlyif mysql # DIV for integer division: 
query I rowsort label-367
SELECT ALL 82 DIV + NULLIF ( 8, + + 48 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL 82 / + NULLIF ( 8, + + 48 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT ALL + COALESCE ( - ( - 4 ), + 47 * + - 42, - - COUNT( * ) * + 99 + + 61 ) * 66 + 8 + + + ( + 36 ) * + ( + 1 )
----
308

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL + COALESCE ( - ( - 4 ), + 47 * + - 42, - - COUNT ( * ) * + 99 + + 61 ) * 66 + 8 + + + ( + 36 ) * + ( + 1 )
----
308

onlyif mysql # aggregate syntax: 
query II rowsort label-369
SELECT DISTINCT ( - 30 ) * - - 27 * - MAX( 61 ), COUNT( DISTINCT 91 ) col0
----
49410
1

skipif mysql # not compatible
query II rowsort label-369
SELECT DISTINCT ( - 30 ) * - - 27 * - MAX ( 61 ), COUNT ( DISTINCT 91 ) col0
----
49410
1

query I rowsort
SELECT - 0 * - + 27 * - 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT ALL + + NULLIF ( + 29, - COUNT( * ) ) + + 4
----
33

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL + + NULLIF ( + 29, - COUNT ( * ) ) + + 4
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-372
SELECT + - 53 * - 86 * - COALESCE ( 25, - + 36, + 2 * - NULLIF ( + + CAST( NULL AS SIGNED ), 43 ) ) + - 80 + - + 3 AS col0
----
-114033

skipif mysql # not compatible
query I rowsort label-372
SELECT + - 53 * - 86 * - COALESCE ( 25, - + 36, + 2 * - NULLIF ( + + CAST ( NULL AS INTEGER ), 43 ) ) + - 80 + - + 3 AS col0
----
-114033

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT DISTINCT + COUNT( * ) + ( + 8 )
----
9

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT + COUNT ( * ) + ( + 8 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-374
SELECT ALL + + MAX( - 14 ), 60 AS col2
----
-14
60

skipif mysql # not compatible
query II rowsort label-374
SELECT ALL + + MAX ( - 14 ), 60 AS col2
----
-14
60

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT - - 54 * MAX( + 90 ) + - SUM( ALL + 75 ) col1
----
4785

skipif mysql # not compatible
query I rowsort label-375
SELECT - - 54 * MAX ( + 90 ) + - SUM ( ALL + 75 ) col1
----
4785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-376
SELECT ALL - - 30 * + - SUM( - 50 ) * 50 * - + 86 + + - 44 + CAST( NULL AS SIGNED ) - - + 9 * - MIN( DISTINCT + 85 ) * - 7 - + COUNT( * ) * - 90 AS col0, - 40
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-376
SELECT ALL - - 30 * + - SUM ( - 50 ) * 50 * - + 86 + + - 44 + CAST ( NULL AS INTEGER ) - - + 9 * - MIN ( DISTINCT + 85 ) * - 7 - + COUNT ( * ) * - 90 AS col0, - 40
----
NULL
-40

query I rowsort
SELECT ALL 94 * + + 8 + + 46 + + 98 - 89 AS col0
----
807

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-379
SELECT DISTINCT 93 * + 37 + - 48 + + CAST( NULL AS SIGNED ) / - 78 + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-379
SELECT DISTINCT 93 * + 37 + - 48 + + CAST ( NULL AS INTEGER ) / - 78 + - 16
----
NULL

query I rowsort
SELECT DISTINCT - 54 * + 63 AS col2
----
-3402

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT DISTINCT + 86 * COUNT( * ) - - + 55 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT + 86 * COUNT ( * ) - - + 55 AS col2
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-382
SELECT - + 27 * - 48 + - + 31 * + + 94 * - COALESCE ( - 68, - 24 * - 70 - + - 66 - CAST( NULL AS SIGNED ) ) + - - 42 col1
----
-196814

skipif mysql # not compatible
query I rowsort label-382
SELECT - + 27 * - 48 + - + 31 * + + 94 * - COALESCE ( - 68, - 24 * - 70 - + - 66 - CAST ( NULL AS INTEGER ) ) + - - 42 col1
----
-196814

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT DISTINCT ( ( + COALESCE ( - 33, + 50 ) ) ) * + + COUNT( * ) - 47 - - COALESCE ( - - 89, - 89 )
----
9

skipif mysql # not compatible
query I rowsort label-383
SELECT DISTINCT ( ( + COALESCE ( - 33, + 50 ) ) ) * + + COUNT ( * ) - 47 - - COALESCE ( - - 89, - 89 )
----
9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-385
SELECT ALL - 42 DIV 40
----
-1

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL - 42 / 40
----
-1

query I rowsort
SELECT + NULLIF ( + - 5, - 57 )
----
-5

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

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

query I rowsort
SELECT ALL 77 * + - 97
----
-7469

query I rowsort
SELECT + 83 * 42
----
3486

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-391
SELECT DISTINCT CAST( + AVG ( DISTINCT + 42 ) AS SIGNED ) AS col2, - 38
----
42
-38

skipif mysql # not compatible
query II rowsort label-391
SELECT DISTINCT CAST ( + AVG ( DISTINCT + 42 ) AS INTEGER ) AS col2, - 38
----
42
-38

query I rowsort
SELECT DISTINCT 24 * + - ( - 37 ) AS col1
----
888

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

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

query II rowsort
SELECT + 53 * - 14 * + - 12 * - - 63 AS col2, - 48 * 6 * - 91 AS col0
----
560952
26208

query II rowsort
SELECT 46, + 82 + - 78 + - 64 AS col0
----
46
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT ALL ( 95 ) + COUNT( * ) AS col2, 8 col0
----
96
8

skipif mysql # not compatible
query II rowsort label-396
SELECT ALL ( 95 ) + COUNT ( * ) AS col2, 8 col0
----
96
8

query I rowsort
SELECT + 41 + - + 56 AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-398
SELECT + 5 DIV - - 59
----
0

skipif mysql # not compatible
query I rowsort label-398
SELECT + 5 / - - 59
----
0

query I rowsort
SELECT ALL 11 + - 20 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT + 17 + 27 + + 48 * - 25 + - - 21 + + MAX( 85 ) + - 24 + + - 5
----
-1079

skipif mysql # not compatible
query I rowsort label-400
SELECT + 17 + 27 + + 48 * - 25 + - - 21 + + MAX ( 85 ) + - 24 + + - 5
----
-1079

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT + + MIN( DISTINCT 26 ) - - + 80 * + 86 * - 39 AS col0
----
-268294

skipif mysql # not compatible
query I rowsort label-401
SELECT + + MIN ( DISTINCT 26 ) - - + 80 * + 86 * - 39 AS col0
----
-268294

query I rowsort
SELECT + + 24 + + 81
----
105

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

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

query I rowsort
SELECT DISTINCT 16 + + 30
----
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-405
SELECT ALL + 43 + 42 * - - CAST( + 62 AS SIGNED ) + + 62 DIV + 30 AS col2
----
2649

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL + 43 + 42 * - - CAST ( + 62 AS INTEGER ) + + 62 / + 30 AS col2
----
2649

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

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

query I rowsort
SELECT DISTINCT - - 46 * - 97 AS col2
----
-4462

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT ALL - 63 + 95 + + 60 DIV + 25 + - 3
----
31

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL - 63 + 95 + + 60 / + 25 + - 3
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT DISTINCT + 94 * COALESCE ( + 1, CASE 16 WHEN - COUNT( * ) THEN + 39 END - - 62 ) + COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT + 94 * COALESCE ( + 1, CASE 16 WHEN - COUNT ( * ) THEN + 39 END - - 62 ) + COUNT ( * ) AS col0
----
95

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

skipif mysql # not compatible
query I rowsort label-410
SELECT - 87 + + ( + 54 ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-411
SELECT DISTINCT + COUNT( * ) DIV + + ( + - SUM( DISTINCT + 99 ) ) + + 21 + + 84
----
105

skipif mysql # not compatible
query I rowsort label-411
SELECT DISTINCT + COUNT ( * ) / + + ( + - SUM ( DISTINCT + 99 ) ) + + 21 + + 84
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-412
SELECT + + 47 * 9 * + - CAST( NULL AS SIGNED ) + + COALESCE ( - 37, + - 9 * - - 39 / 35 ) + - - 16 + - + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-412
SELECT + + 47 * 9 * + - CAST ( NULL AS INTEGER ) + + COALESCE ( - 37, + - 9 * - - 39 / 35 ) + - - 16 + - + 66
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-413
SELECT + - CAST( - NULLIF ( + + 21, + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-413
SELECT + - CAST ( - NULLIF ( + + 21, + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
21

query II rowsort
SELECT ALL + 96, + 96
----
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT + MAX( ALL 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-415
SELECT + MAX ( ALL 66 ) AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-416
SELECT DISTINCT + 89 DIV - 10 - + 89 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT + 89 / - 10 - + 89 AS col0
----
-97

query I rowsort
SELECT DISTINCT + NULLIF ( - 61, + 35 + + - 77 + + - 90 + + 56 + + 50 * + 16 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-418
SELECT CAST( + + AVG ( - + 92 ) AS SIGNED ) col1
----
-92

skipif mysql # not compatible
query I rowsort label-418
SELECT CAST ( + + AVG ( - + 92 ) AS INTEGER ) col1
----
-92

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

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

skipif mysql # not compatible
query I rowsort label-420
SELECT - COUNT ( * ) / 95 AS col1
----
0

query I rowsort
SELECT - 19 * + 55 AS col2
----
-1045

query I rowsort
SELECT 47 * + ( - 17 ) + - 59
----
-858

query I rowsort
SELECT 2 * + - ( + 55 ) AS col1
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT ALL + COUNT( * ) * + 53 * + - 11 AS col0
----
-583

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL + COUNT ( * ) * + 53 * + - 11 AS col0
----
-583

query I rowsort
SELECT DISTINCT + 38 * + 38
----
1444

query I rowsort
SELECT 18 + 4 AS col2
----
22

query I rowsort
SELECT 1 * - 46
----
-46

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-429
SELECT DISTINCT + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) / 94 * COALESCE ( 39, 95 * - 83 + + - 83 ) * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) / 94 * COALESCE ( 39, 95 * - 83 + + - 83 ) * - 79
----
NULL

query I rowsort
SELECT ALL + 73 + - 79 AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-431
SELECT ALL ( - 63 ) + - + 69 * - SUM( - + 9 ), 58 DIV 99 + 62 col2
----
-684
62

skipif mysql # not compatible
query II rowsort label-431
SELECT ALL ( - 63 ) + - + 69 * - SUM ( - + 9 ), 58 / 99 + 62 col2
----
-684
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-432
SELECT COUNT( * ) * + COUNT( * ) * CAST( NULL AS SIGNED ) * + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT COUNT ( * ) * + COUNT ( * ) * CAST ( NULL AS INTEGER ) * + - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL - + 27 + NULLIF ( - 42, + + SUM( ALL - - 21 ) * 13 ) - - 26
----
-43

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL - + 27 + NULLIF ( - 42, + + SUM ( ALL - - 21 ) * 13 ) - - 26
----
-43

query I rowsort
SELECT DISTINCT - 65 + - NULLIF ( + + 58, CASE - + 30 WHEN + 83 * 50 + + 10 * + + 68 THEN NULL WHEN + - 11 * NULLIF ( + - ( 94 ), - 86 + 72 + + 58 ) * 35 + - + 94 - - - 70 THEN + 63 + 17 WHEN - 77 THEN NULL END / - 61 - + - 13 + + 44 * + 4 )
----
-123

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

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT 8 - MAX( DISTINCT + 24 ) + + 24 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-436
SELECT 8 - MAX ( DISTINCT + 24 ) + + 24 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT 52 * - CASE WHEN NOT COUNT( * ) IS NOT NULL THEN - 4 - + COUNT( - + 87 ) ELSE + + 13 END * + 37 col1
----
-25012

skipif mysql # not compatible
query I rowsort label-437
SELECT 52 * - CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN - 4 - + COUNT ( - + 87 ) ELSE + + 13 END * + 37 col1
----
-25012

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

query I rowsort
SELECT - - 0 col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-440
SELECT 31 * + 31 AS col0, 75 DIV 25 + 83 AS col2
----
961
86

skipif mysql # not compatible
query II rowsort label-440
SELECT 31 * + 31 AS col0, 75 / 25 + 83 AS col2
----
961
86

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT DISTINCT + 38 - + COUNT( * ) + - - 74 + - 55 * - COUNT( * )
----
166

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT + 38 - + COUNT ( * ) + - - 74 + - 55 * - COUNT ( * )
----
166

query I rowsort
SELECT ALL + 16 * - - 81 AS col2
----
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT DISTINCT - - CASE 26 WHEN + 59 THEN + COUNT( * ) / + + 86 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT - - CASE 26 WHEN + 59 THEN + COUNT ( * ) / + + 86 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT DISTINCT + ( - MIN( - + 35 ) ) * 1 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT + ( - MIN ( - + 35 ) ) * 1 AS col0
----
35

query I rowsort
SELECT ALL 49 * + 97
----
4753

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT ALL COUNT( * ) * - 6 * + 20 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL COUNT ( * ) * - 6 * + 20 AS col0
----
-120

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-448
SELECT 12 DIV + 78 * - COUNT( * ) AS col2
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL 13 * - + SUM( - 60 ) AS col0
----
780

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL 13 * - + SUM ( - 60 ) AS col0
----
780

query I rowsort
SELECT DISTINCT 48 * - 45
----
-2160

query II rowsort
SELECT + 57, + 46 * 47 AS col0
----
57
2162

query I rowsort
SELECT 21 + 83 AS col0
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-454
SELECT DISTINCT COUNT( * ) + - COUNT( * ) - + NULLIF ( 44, - 92 ) AS col0, - 82 col2
----
-44
-82

skipif mysql # not compatible
query II rowsort label-454
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) - + NULLIF ( 44, - 92 ) AS col0, - 82 col2
----
-44
-82

query I rowsort
SELECT 98 - + 29
----
69

query I rowsort
SELECT 37 * - CASE - 79 WHEN - 37 THEN NULL WHEN - + 88 THEN - 74 END / + 44 * - 33 * - + ( - 93 ) * + COALESCE ( + + 81, - 79 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT + COUNT ( * ) * - 74 AS col1
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-458
SELECT 27 DIV + + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-458
SELECT 27 / + + 32 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-459
SELECT ALL NULLIF ( + + 45, - - 53 * - 27 * + CAST( NULL AS SIGNED ) ) + + 42 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL NULLIF ( + + 45, - - 53 * - 27 * + CAST ( NULL AS INTEGER ) ) + + 42 AS col0
----
87

query I rowsort
SELECT DISTINCT 58 + - 46 * + 15 AS col0
----
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT ALL - 17 + + 91 * COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL - 17 + + 91 * COUNT ( * )
----
74

query II rowsort
SELECT ALL - ( - ( - 69 ) ) AS col2, - 10
----
-69
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT ALL + 27 * - CASE COUNT( + 14 ) WHEN + - 28 THEN - 53 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL + 27 * - CASE COUNT ( + 14 ) WHEN + - 28 THEN - 53 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT 97 - - - MAX( DISTINCT + 56 )
----
41

skipif mysql # not compatible
query I rowsort label-464
SELECT 97 - - - MAX ( DISTINCT + 56 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-465
SELECT ALL + ( + 69 ) / - CAST( NULL AS SIGNED ) * - 59 / - - 14 - - 79 * - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL + ( + 69 ) / - CAST ( NULL AS INTEGER ) * - 59 / - - 14 - - 79 * - 40 AS col0
----
NULL

query I rowsort
SELECT + 86 + - + ( - 70 ) AS col0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT + 95 + 54 - - - MIN( ALL - 6 )
----
155

skipif mysql # not compatible
query I rowsort label-467
SELECT + 95 + 54 - - - MIN ( ALL - 6 )
----
155

query I rowsort
SELECT 46 * + + 38 col1
----
1748

onlyif mysql # aggregate syntax: 
query II rowsort label-469
SELECT - 22 + + ( - + CASE - 94 WHEN COUNT( * ) * + 42 - - NULLIF ( - 28, 14 / 14 ) * 58 THEN + - COUNT( + 58 ) * - + COUNT( * ) - 84 * + 3 WHEN + + 42 THEN ( - 28 ) * + 40 + - 55 ELSE NULL END ) + ( 15 ), + 95 col0
----
NULL
95

skipif mysql # not compatible
query II rowsort label-469
SELECT - 22 + + ( - + CASE - 94 WHEN COUNT ( * ) * + 42 - - NULLIF ( - 28, 14 / 14 ) * 58 THEN + - COUNT ( + 58 ) * - + COUNT ( * ) - 84 * + 3 WHEN + + 42 THEN ( - 28 ) * + 40 + - 55 ELSE NULL END ) + ( 15 ), + 95 col0
----
NULL
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-470
SELECT 15 + - ( - 70 ) - ( + CAST( - 89 AS SIGNED ) )
----
174

skipif mysql # not compatible
query I rowsort label-470
SELECT 15 + - ( - 70 ) - ( + CAST ( - 89 AS INTEGER ) )
----
174

query I rowsort
SELECT ALL 88 * + 77 AS col1
----
6776

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT DISTINCT + 76 * - 50 + MAX( + 27 )
----
-3773

skipif mysql # not compatible
query I rowsort label-472
SELECT DISTINCT + 76 * - 50 + MAX ( + 27 )
----
-3773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-473
SELECT CAST( 70 AS SIGNED ) + + 14
----
84

skipif mysql # not compatible
query I rowsort label-473
SELECT CAST ( 70 AS INTEGER ) + + 14
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-474
SELECT DISTINCT - 43 AS col2, 37 * - MAX( + 81 )
----
-43
-2997

skipif mysql # not compatible
query II rowsort label-474
SELECT DISTINCT - 43 AS col2, 37 * - MAX ( + 81 )
----
-43
-2997

query II rowsort
SELECT ALL + - 77 AS col0, + 62 AS col2
----
-77
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-476
SELECT DISTINCT ( + CASE - ( - CAST( NULL AS SIGNED ) ) WHEN COUNT( * ) * + 88 + - 77 + - - 89 THEN NULL ELSE CAST( NULL AS SIGNED ) + - 68 * - COUNT( * ) END ) / + - COUNT( * ) AS col2, 74 AS col0
----
NULL
74

skipif mysql # not compatible
query II rowsort label-476
SELECT DISTINCT ( + CASE - ( - CAST ( NULL AS INTEGER ) ) WHEN COUNT ( * ) * + 88 + - 77 + - - 89 THEN NULL ELSE CAST ( NULL AS INTEGER ) + - 68 * - COUNT ( * ) END ) / + - COUNT ( * ) AS col2, 74 AS col0
----
NULL
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-477
SELECT ALL CAST( + 63 AS SIGNED ) * + 43 AS col0
----
2709

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL CAST ( + 63 AS INTEGER ) * + 43 AS col0
----
2709

onlyif mysql # DIV for integer division: 
query I rowsort label-478
SELECT DISTINCT - 31 * 42 DIV + ( + 94 ) + + 86 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT - 31 * 42 / + ( + 94 ) + + 86 AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-479
SELECT ALL NULLIF ( COUNT( * ), + COALESCE ( - 48, - - COUNT( * ) ) - - 90 ) * - 90 AS col1, - 18 DIV 41
----
-90
0

skipif mysql # not compatible
query II rowsort label-479
SELECT ALL NULLIF ( COUNT ( * ), + COALESCE ( - 48, - - COUNT ( * ) ) - - 90 ) * - 90 AS col1, - 18 / 41
----
-90
0

query I rowsort
SELECT + 54 * - 64 AS col1
----
-3456

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL + 98 * + 12 + SUM( ALL + 46 ) AS col1
----
1222

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL + 98 * + 12 + SUM ( ALL + 46 ) AS col1
----
1222

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-482
SELECT ALL - CAST( NULL AS DECIMAL ) * + - COALESCE ( + 43, - + 55 / + 39 * - - AVG ( DISTINCT + - 34 ) + 86 * 76 * - + 17 + ( - 94 ) * - CASE - - 53 WHEN - 21 + 26 THEN - NULLIF ( 5, 12 ) * - - 89 * + 62 ELSE NULL END ) + + COUNT( - 66 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL - CAST ( NULL AS REAL ) * + - COALESCE ( + 43, - + 55 / + 39 * - - AVG ( DISTINCT + - 34 ) + 86 * 76 * - + 17 + ( - 94 ) * - CASE - - 53 WHEN - 21 + 26 THEN - NULLIF ( 5, 12 ) * - - 89 * + 62 ELSE NULL END ) + + COUNT ( - 66 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT + NULLIF ( - 24, - + 58 + - - COUNT( * ) + - + 6 * + 96 + + 93 )
----
-24

skipif mysql # not compatible
query I rowsort label-483
SELECT + NULLIF ( - 24, - + 58 + - - COUNT ( * ) + - + 6 * + 96 + + 93 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-484
SELECT + 42 + + MAX( 43 ) + - 12 DIV + + 90 * COALESCE ( - 4, - 19 ) - 90 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-484
SELECT + 42 + + MAX ( 43 ) + - 12 / + + 90 * COALESCE ( - 4, - 19 ) - 90 AS col2
----
-5

query I rowsort
SELECT + 18 + 22 - - 21
----
61

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

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

query I rowsort
SELECT ALL ( - - 48 ) * - 67 * + 69 * - - 73 + 12 + - - 53 + - + 62 - + 26 * 37 col1
----
-16199951

onlyif mysql # DIV for integer division: 
query II rowsort label-488
SELECT DISTINCT + 78 AS col1, + 19 DIV + 40 AS col2
----
78
0

skipif mysql # not compatible
query II rowsort label-488
SELECT DISTINCT + 78 AS col1, + 19 / + 40 AS col2
----
78
0

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT DISTINCT + COALESCE ( SUM( - 28 ), 48, + + 66 )
----
-28

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT + COALESCE ( SUM ( - 28 ), 48, + + 66 )
----
-28

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

skipif mysql # not compatible
query I rowsort label-490
SELECT - - 70 + CAST ( NULL AS INTEGER ) * - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT ALL COUNT( * ) - + 19 * - - 68 AS col0
----
-1291

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL COUNT ( * ) - + 19 * - - 68 AS col0
----
-1291

query I rowsort
SELECT + ( + + 69 ) * - 71 AS col1
----
-4899

query II rowsort
SELECT 29, - 95 * + 41 AS col0
----
29
-3895

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT - 62 + 24 - MIN( DISTINCT + 66 ) * + - 2 * + COUNT( * ) * - 51
----
-6770

skipif mysql # not compatible
query I rowsort label-494
SELECT - 62 + 24 - MIN ( DISTINCT + 66 ) * + - 2 * + COUNT ( * ) * - 51
----
-6770

query I rowsort
SELECT ALL + - 85 * - + COALESCE ( - 40, + 65, 77 + - + 8 + - 56 )
----
-3400

query I rowsort
SELECT - 76 + - 18 AS col2
----
-94

query II rowsort
SELECT - + 38, + 8 AS col1
----
-38
8

query I rowsort
SELECT ALL + 24 - - NULLIF ( + 73, COALESCE ( - 56, - 97 ) - + 82 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT - + MAX( + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-499
SELECT - + MAX ( + 53 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-500
SELECT - ( - + 23 ) * - COUNT( * ) * + 78 + + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-500
SELECT - ( - + 23 ) * - COUNT ( * ) * + 78 + + - CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT - + 15, 54 AS col0
----
-15
54

query I rowsort
SELECT ALL - 38 * + - 39
----
1482

query I rowsort
SELECT ALL + 80 * 72 col2
----
5760

query I rowsort
SELECT DISTINCT - 21 * + 89 AS col2
----
-1869

query I rowsort
SELECT + + 99 * 66 * + 83 - + 67
----
542255

onlyif mysql # aggregate syntax: 
query II rowsort label-506
SELECT - 52 AS col0, CASE + COUNT( * ) WHEN + 27 THEN - ( - COALESCE ( - + 31, + 4 + 58 + 43, - - 74 ) ) + + CASE + 18 WHEN 76 * 48 * + 51 THEN + - 63 - + 63 END WHEN ( COALESCE ( + 14, + 82 * - 52 / - COALESCE ( + MIN( DISTINCT + - ( ( + 12 ) ) ), - - 70 + + COUNT( * ) * NULLIF ( 57, 93 * + 31 ) * 12, + 76 ) ) ) * + 90 THEN COUNT( * ) WHEN AVG ( 87 ) / + 9 THEN - 48 END * 73 AS col1
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-506
SELECT - 52 AS col0, CASE + COUNT ( * ) WHEN + 27 THEN - ( - COALESCE ( - + 31, + 4 + 58 + 43, - - 74 ) ) + + CASE + 18 WHEN 76 * 48 * + 51 THEN + - 63 - + 63 END WHEN ( COALESCE ( + 14, + 82 * - 52 / - COALESCE ( + MIN ( DISTINCT + - ( ( + 12 ) ) ), - - 70 + + COUNT ( * ) * NULLIF ( 57, 93 * + 31 ) * 12, + 76 ) ) ) * + 90 THEN COUNT ( * ) WHEN AVG ( 87 ) / + 9 THEN - 48 END * 73 AS col1
----
-52
NULL

query I rowsort
SELECT - - 91 * - 60
----
-5460

query I rowsort
SELECT - 36 * 95 AS col0
----
-3420

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT DISTINCT - 78 + + 84 DIV + + 35
----
-76

skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT - 78 + + 84 / + + 35
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL SUM( ALL + ( - 18 ) ) + + + 11 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL SUM ( ALL + ( - 18 ) ) + + + 11 AS col0
----
-7

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-513
SELECT 15 DIV 73 * + 14 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-513
SELECT 15 / 73 * + 14 + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-514
SELECT DISTINCT + 3 / + - CAST( NULL AS SIGNED ) / - 30 + MAX( DISTINCT + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT + 3 / + - CAST ( NULL AS INTEGER ) / - 30 + MAX ( DISTINCT + 7 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT ALL - 70 DIV 77 + + 74 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL - 70 / 77 + + 74 AS col2
----
74

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-517
SELECT - 18 DIV + 85 AS col2, 31 + - + COUNT( * ) AS col1
----
0
30

skipif mysql # not compatible
query II rowsort label-517
SELECT - 18 / + 85 AS col2, 31 + - + COUNT ( * ) AS col1
----
0
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-518
SELECT ALL - 38 / - + ( 19 ) * + 14 + 83 / - + 35 + + 5 + - CAST( NULL AS DECIMAL ) + - + 83 * - 71 / - - 87 + - ( + - 69 ) * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL - 38 / - + ( 19 ) * + 14 + 83 / - + 35 + + 5 + - CAST ( NULL AS REAL ) + - + 83 * - 71 / - - 87 + - ( + - 69 ) * 54
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-519
SELECT ALL 65 DIV + ( - ( - + 74 ) )
----
0

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL 65 / + ( - ( - + 74 ) )
----
0

query I rowsort
SELECT + NULLIF ( + - 16, + - 28 )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-521
SELECT + 88 DIV NULLIF ( + 27, + 71 ) DIV + 65 * ( 26 )
----
0

skipif mysql # not compatible
query I rowsort label-521
SELECT + 88 / NULLIF ( + 27, + 71 ) / + 65 * ( 26 )
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL COUNT ( * ) * - COUNT ( * ) / - 46 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT - 52 - MIN( DISTINCT 89 ) + 89 * + ( - 13 ) AS col2
----
-1298

skipif mysql # not compatible
query I rowsort label-524
SELECT - 52 - MIN ( DISTINCT 89 ) + 89 * + ( - 13 ) AS col2
----
-1298

query II rowsort
SELECT DISTINCT - 77 * + 13 AS col2, 62 AS col0
----
-1001
62

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT - 24 * - 41 * + 34 - - 81 + + MAX( DISTINCT + 61 )
----
33598

skipif mysql # not compatible
query I rowsort label-526
SELECT - 24 * - 41 * + 34 - - 81 + + MAX ( DISTINCT + 61 )
----
33598

query I rowsort
SELECT + + 8 * - 65 AS col1
----
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT DISTINCT + 2 * + CASE + + 51 WHEN 28 * 2 THEN + 32 / + 82 WHEN - - 50 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-528
SELECT DISTINCT + 2 * + CASE + + 51 WHEN 28 * 2 THEN + 32 / + 82 WHEN - - 50 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT 25 * + 46 AS col2
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT - 65 * + + COUNT( * ) + + + 84
----
19

skipif mysql # not compatible
query I rowsort label-530
SELECT - 65 * + + COUNT ( * ) + + + 84
----
19

query II rowsort
SELECT + 13 * 5 AS col0, 86 col0
----
65
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-532
SELECT DISTINCT 83 * 29 AS col2, CAST( NULL AS SIGNED ) - - + 49
----
2407
NULL

skipif mysql # not compatible
query II rowsort label-532
SELECT DISTINCT 83 * 29 AS col2, CAST ( NULL AS INTEGER ) - - + 49
----
2407
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT + COALESCE ( + 95, 25 ) - - - 98 + - COUNT( * ) * COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-534
SELECT + COALESCE ( + 95, 25 ) - - - 98 + - COUNT ( * ) * COUNT ( * ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT DISTINCT + SUM( ALL - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT + SUM ( ALL - 50 )
----
-50

query I rowsort
SELECT + 40 - + 13 * + - 11
----
183

query I rowsort
SELECT + 79 * - + 40 - - + 70
----
-3090

query I rowsort
SELECT + 6 + + - 53
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-539
SELECT ALL - + 40 * + 77 AS col0, MIN( - 69 ) AS col0
----
-3080
-69

skipif mysql # not compatible
query II rowsort label-539
SELECT ALL - + 40 * + 77 AS col0, MIN ( - 69 ) AS col0
----
-3080
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-540
SELECT + 33 + 65 DIV - + SUM( ALL - 39 )
----
34

skipif mysql # not compatible
query I rowsort label-540
SELECT + 33 + 65 / - + SUM ( ALL - 39 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT ALL ( - 11 ) * CASE - - 26 WHEN 10 + NULLIF ( 3, - 47 + + COUNT( * ) * - 94 ) + 16 + + + 41 THEN NULL WHEN - 80 THEN COALESCE ( ( + 15 ), - - 31 ) END * COUNT( * ) + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL ( - 11 ) * CASE - - 26 WHEN 10 + NULLIF ( 3, - 47 + + COUNT ( * ) * - 94 ) + 16 + + + 41 THEN NULL WHEN - 80 THEN COALESCE ( ( + 15 ), - - 31 ) END * COUNT ( * ) + + 93
----
NULL

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

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

query I rowsort
SELECT ALL - 65 + - - 82
----
17

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

query II rowsort
SELECT ALL 40 AS col0, - 78 * 94
----
40
-7332

query I rowsort
SELECT 31 + + 35 AS col0
----
66

query II rowsort
SELECT ALL + 29 + ( - + 27 ) AS col0, - 38
----
2
-38

query I rowsort
SELECT 47 * + 11 * 43
----
22231

query I rowsort
SELECT - 91 * - COALESCE ( - - 40, - + NULLIF ( + - 56, - 27 ) * - 49 ) + + 6 + - + 41 * + 99
----
-413

query I rowsort
SELECT 21 * + - 65 AS col1
----
-1365

onlyif mysql # aggregate syntax: 
query II rowsort label-551
SELECT COALESCE ( - - 39, 43 * - 67 * - 31 ) * - COALESCE ( + - 69, - COUNT( * ) * + - SUM( ALL + 88 ) + - 6 ) * + 97 * - - COUNT( * ) + - - 70 + + 21 + - 25 * + 70 * - COUNT( - 46 ) AS col0, 90
----
262868
90

skipif mysql # not compatible
query II rowsort label-551
SELECT COALESCE ( - - 39, 43 * - 67 * - 31 ) * - COALESCE ( + - 69, - COUNT ( * ) * + - SUM ( ALL + 88 ) + - 6 ) * + 97 * - - COUNT ( * ) + - - 70 + + 21 + - 25 * + 70 * - COUNT ( - 46 ) AS col0, 90
----
262868
90

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT DISTINCT - MIN( ALL - COALESCE ( - - 56, 62 + - - 95, - ( + 66 ) * - + 46 + + + 86 ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT - MIN ( ALL - COALESCE ( - - 56, 62 + - - 95, - ( + 66 ) * - + 46 + + + 86 ) ) AS col2
----
56

query I rowsort
SELECT DISTINCT - 84 - + - 18 + + 4 AS col0
----
-62

query I rowsort
SELECT DISTINCT - 75 * - + 90
----
6750

query II rowsort
SELECT 46 * 75 * 52, - 30 AS col2
----
179400
-30

query I rowsort
SELECT ALL 59 * - - 87 col1
----
5133

query I rowsort
SELECT 71 * 55 col2
----
3905

query I rowsort
SELECT ALL - 58 * - - 45 * + - 31 AS col2
----
80910

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT 85 * - - ( - 83 ) - + 49 + + - 63 + COUNT( * ) AS col0
----
-7166

skipif mysql # not compatible
query I rowsort label-559
SELECT 85 * - - ( - 83 ) - + 49 + + - 63 + COUNT ( * ) AS col0
----
-7166

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

query I rowsort
SELECT 72 - + - 63 + - 91 + - - 5 * - 75 AS col0
----
-331

query II rowsort
SELECT ALL - - 14 AS col1, + 22 * + + 75
----
14
1650

query I rowsort
SELECT + 88 * - ( - ( 34 ) ) AS col0
----
2992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-564
SELECT + - 47 * COALESCE ( - - SUM( DISTINCT - 45 ), + + 43, + 95 * + 72 * 7 ) + + CAST( + - 43 AS SIGNED )
----
2072

skipif mysql # not compatible
query I rowsort label-564
SELECT + - 47 * COALESCE ( - - SUM ( DISTINCT - 45 ), + + 43, + 95 * + 72 * 7 ) + + CAST ( + - 43 AS INTEGER )
----
2072

onlyif mysql # DIV for integer division: 
query I rowsort label-565
SELECT - 15 DIV - 15
----
1

skipif mysql # not compatible
query I rowsort label-565
SELECT - 15 / - 15
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT ALL MAX( 25 ) * - 21 * 6 AS col1
----
-3150

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL MAX ( 25 ) * - 21 * 6 AS col1
----
-3150

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

query I rowsort
SELECT + 38 + - 89 AS col2
----
-51

query I rowsort
SELECT DISTINCT 12 * + 98
----
1176

query I rowsort
SELECT ALL + 72 + 57
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT + ( - - 46 ) * + + 35 * + COUNT( * ) AS col2
----
1610

skipif mysql # not compatible
query I rowsort label-571
SELECT + ( - - 46 ) * + + 35 * + COUNT ( * ) AS col2
----
1610

query I rowsort
SELECT ALL - 97 + - 36
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT DISTINCT COUNT( * ) + + 67 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT COUNT ( * ) + + 67 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT ALL 44 * - + 93 * - 28 - + COUNT( * ) + + 29 AS col2
----
114604

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL 44 * - + 93 * - 28 - + COUNT ( * ) + + 29 AS col2
----
114604

query II rowsort
SELECT ALL + 44 AS col2, 54 + - + ( + + ( + 3 ) )
----
44
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-576
SELECT DISTINCT + 78 + - ( - COUNT( * ) ) DIV ( - 49 ) * - + 42 + + + 14 + - 27 + - + 78 + - 7 * + 36 * MIN( DISTINCT + - 63 ) * MIN( ALL + - 35 )
----
-555673

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT + 78 + - ( - COUNT ( * ) ) / ( - 49 ) * - + 42 + + + 14 + - 27 + - + 78 + - 7 * + 36 * MIN ( DISTINCT + - 63 ) * MIN ( ALL + - 35 )
----
-555673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-577
SELECT DISTINCT - CAST( - - 70 AS SIGNED ) + + + 67
----
-3

skipif mysql # not compatible
query I rowsort label-577
SELECT DISTINCT - CAST ( - - 70 AS INTEGER ) + + + 67
----
-3

query II rowsort
SELECT 2 * 88 AS col2, 43
----
176
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-579
SELECT ALL ( + 8 ) + + 86 - - - COALESCE ( 74, - - MAX( ALL - + 87 ), + 26 DIV ( - COALESCE ( - 14, - + ( + + 39 ) - - 58 ) ) ) + - - 84 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL ( + 8 ) + + 86 - - - COALESCE ( 74, - - MAX ( ALL - + 87 ), + 26 / ( - COALESCE ( - 14, - + ( + + 39 ) - - 58 ) ) ) + - - 84 AS col0
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-580
SELECT ( - 30 ) - + COALESCE ( + 39, CAST( NULL AS SIGNED ) )
----
-69

skipif mysql # not compatible
query I rowsort label-580
SELECT ( - 30 ) - + COALESCE ( + 39, CAST ( NULL AS INTEGER ) )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL SUM( DISTINCT + 60 ) * + - 55 * - 62 col0
----
204600

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL SUM ( DISTINCT + 60 ) * + - 55 * - 62 col0
----
204600

onlyif mysql # aggregate syntax: 
query II rowsort label-582
SELECT COUNT( * ) - + + 89, MIN( - 66 ) AS col2
----
-88
-66

skipif mysql # not compatible
query II rowsort label-582
SELECT COUNT ( * ) - + + 89, MIN ( - 66 ) AS col2
----
-88
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-583
SELECT ALL COUNT( * ) DIV - 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL COUNT ( * ) / - 14 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-584
SELECT ALL - 98 - + - 1 AS col1, CAST( 29 AS SIGNED ) - COUNT( * ) - + + COUNT( * ) col1
----
-97
27

skipif mysql # not compatible
query II rowsort label-584
SELECT ALL - 98 - + - 1 AS col1, CAST ( 29 AS INTEGER ) - COUNT ( * ) - + + COUNT ( * ) col1
----
-97
27

query I rowsort
SELECT DISTINCT COALESCE ( - 54, + - 31 + - 81 * 96 - 28, - ( 15 ) * + + 19 ) * + 50 + + 86 AS col1
----
-2614

query I rowsort
SELECT DISTINCT 95 - + 45
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-587
SELECT ALL - COALESCE ( + 97, - 59 + + 52 DIV - ( + 2 ), COUNT( * ) * 1 )
----
-97

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL - COALESCE ( + 97, - 59 + + 52 / - ( + 2 ), COUNT ( * ) * 1 )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-588
SELECT DISTINCT ( COUNT( 22 ) ) * + - 66 AS col1, - 78 * 6 AS col1
----
-66
-468

skipif mysql # not compatible
query II rowsort label-588
SELECT DISTINCT ( COUNT ( 22 ) ) * + - 66 AS col1, - 78 * 6 AS col1
----
-66
-468

query I rowsort
SELECT 71 * - 78 * + 57 * + - ( - 98 ) AS col2
----
-30935268

query I rowsort
SELECT ALL - NULLIF ( + 98, - + 95 * + + 75 + + + 79 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-591
SELECT + MIN( - 16 ), + ( + - 8 ) + COUNT( * ) AS col2
----
-16
-7

skipif mysql # not compatible
query II rowsort label-591
SELECT + MIN ( - 16 ), + ( + - 8 ) + COUNT ( * ) AS col2
----
-16
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT 46 + - 82 + - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-592
SELECT 46 + - 82 + - COUNT ( * )
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-593
SELECT ALL + 99 / - AVG ( ALL + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL + 99 / - AVG ( ALL + - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-594
SELECT ALL CAST( NULL AS SIGNED ) / - 76 + ( - - COUNT( * ) ) - - - 54 - COUNT( * ) + - - ( - + 73 ) + - ( + 34 ) * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL CAST ( NULL AS INTEGER ) / - 76 + ( - - COUNT ( * ) ) - - - 54 - COUNT ( * ) + - - ( - + 73 ) + - ( + 34 ) * + 34
----
NULL

query II rowsort
SELECT 90 * - + 55 * - 25 + + ( + 32 ) * + 47 + - 41, 50 AS col0
----
125213
50

query I rowsort
SELECT ALL - + 65 * + - 31 AS col2
----
2015

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT + + COALESCE ( + + 66, + COUNT( ALL + - 37 ), - 58 )
----
66

skipif mysql # not compatible
query I rowsort label-597
SELECT + + COALESCE ( + + 66, + COUNT ( ALL + - 37 ), - 58 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT DISTINCT - + CASE - + COUNT( * ) WHEN + ( + + 5 ) / - - 10 THEN + 46 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT DISTINCT - + CASE - + COUNT ( * ) WHEN + ( + + 5 ) / - - 10 THEN + 46 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-599
SELECT DISTINCT - 7 * + CAST( - - 74 AS SIGNED ) + + 4
----
-514

skipif mysql # not compatible
query I rowsort label-599
SELECT DISTINCT - 7 * + CAST ( - - 74 AS INTEGER ) + + 4
----
-514

query I rowsort
SELECT - + 81 * + - 53 * ( 6 ) AS col2
----
25758

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT ALL - 1 + ( + + COUNT( - 28 ) ) + + 40
----
40

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL - 1 + ( + + COUNT ( - 28 ) ) + + 40
----
40

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

query I rowsort
SELECT + 58 * + 45 - 43 * + 16
----
1922

query I rowsort
SELECT ALL + 10 + - 29 + + 13 AS col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-605
SELECT ALL - + COUNT( - + CAST( NULL AS DECIMAL ) ) + - 22 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL - + COUNT ( - + CAST ( NULL AS REAL ) ) + - 22 AS col0
----
-22

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

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

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

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

query I rowsort
SELECT - - 54 - 68 + + 42 * - - 41 AS col0
----
1708

onlyif mysql # DIV for integer division: 
query I rowsort label-609
SELECT DISTINCT + 16 DIV + 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-609
SELECT DISTINCT + 16 / + 79 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT + COUNT( * ) * - + 81 * - 41 * - + 9
----
-29889

skipif mysql # not compatible
query I rowsort label-610
SELECT + COUNT ( * ) * - + 81 * - 41 * - + 9
----
-29889

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT DISTINCT ( - MIN( DISTINCT - 28 ) ) * + 36
----
1008

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT ( - MIN ( DISTINCT - 28 ) ) * + 36
----
1008

onlyif mysql # aggregate syntax: 
query II rowsort label-612
SELECT ALL 37 AS col2, NULLIF ( - COUNT( * ), 91 - 8 + - SUM( ALL - + 33 ) * + + 94 ) * + + 58 AS col0
----
37
-58

skipif mysql # not compatible
query II rowsort label-612
SELECT ALL 37 AS col2, NULLIF ( - COUNT ( * ), 91 - 8 + - SUM ( ALL - + 33 ) * + + 94 ) * + + 58 AS col0
----
37
-58

query I rowsort
SELECT - 2 + 61
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-614
SELECT + 78 + + - CASE CAST( - - ( - + COUNT( * ) ) AS SIGNED ) WHEN - 48 THEN - 94 WHEN ( 68 ) THEN + 44 + 47 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-614
SELECT + 78 + + - CASE CAST ( - - ( - + COUNT ( * ) ) AS INTEGER ) WHEN - 48 THEN - 94 WHEN ( 68 ) THEN + 44 + 47 END col2
----
NULL

query II rowsort
SELECT ALL 94 AS col1, + 51 * - 81 * 1 AS col2
----
94
-4131

query I rowsort
SELECT + 95 * + - 37 AS col0
----
-3515

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

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

query I rowsort
SELECT + 72 * - 28
----
-2016

query III rowsort
SELECT ALL 5 AS col2, ( - 70 ), + 3 AS col0
----
5
-70
3

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL MAX( + 55 ) col2
----
55

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL MAX ( + 55 ) col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-621
SELECT ALL COALESCE ( - 13, - 74 ) - + ( + - COUNT( * ) ) + 98 * + - CAST( - - AVG ( + 58 ) AS SIGNED ) AS col1
----
-5696

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL COALESCE ( - 13, - 74 ) - + ( + - COUNT ( * ) ) + 98 * + - CAST ( - - AVG ( + 58 ) AS INTEGER ) AS col1
----
-5696

query I rowsort
SELECT + 36 * - 71 col1
----
-2556

query I rowsort
SELECT + 0 + - - 50 AS col2
----
50

query I rowsort
SELECT + 29 + 28
----
57

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

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

query I rowsort
SELECT + 45 * + 59 + + 77 - + 50
----
2682

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

query I rowsort
SELECT DISTINCT 17 * 73 * + - 21
----
-26061

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT ALL 46 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL 46 / + 53
----
0

query I rowsort
SELECT ( + 84 ) col2
----
84

query I rowsort
SELECT ALL 25 * + 9 + + 5 * - 47 AS col0
----
-10

query I rowsort
SELECT + - ( + - 52 ) + + 28
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT DISTINCT 49 * - + CASE 40 WHEN + 57 + + - 83 THEN - 33 ELSE - 56 * - - 1 END + ( - MIN( + + 86 ) ) * - 96 + - 48 - - + SUM( + 39 ) AS col0
----
10991

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT 49 * - + CASE 40 WHEN + 57 + + - 83 THEN - 33 ELSE - 56 * - - 1 END + ( - MIN ( + + 86 ) ) * - 96 + - 48 - - + SUM ( + 39 ) AS col0
----
10991

query II rowsort
SELECT ALL + + 53 AS col2, CASE - 78 WHEN - 72 THEN NULL WHEN + - 65 THEN NULL ELSE - 80 * ( + 37 ) END + 98
----
53
-2862

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT + MIN( ALL - + 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-635
SELECT + MIN ( ALL - + 57 ) AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-636
SELECT ALL - ( + - NULLIF ( 92, 30 ) ) * + 9 / - - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL - ( + - NULLIF ( 92, 30 ) ) * + 9 / - - CAST ( + CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-638
SELECT + - 10 DIV - + 96 + - 16 * + 0 * NULLIF ( - 87, - COALESCE ( - + 80, MAX( DISTINCT 21 ) ) * 88 * - + CAST( + - 74 AS SIGNED ) + + AVG ( + COALESCE ( + 47, 71 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-638
SELECT + - 10 / - + 96 + - 16 * + 0 * NULLIF ( - 87, - COALESCE ( - + 80, MAX ( DISTINCT 21 ) ) * 88 * - + CAST ( + - 74 AS INTEGER ) + + AVG ( + COALESCE ( + 47, 71 ) ) )
----
0

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

skipif mysql # not compatible
query II rowsort label-639
SELECT + 65 AS col1, + 0 / + + COUNT ( * )
----
65
0

query I rowsort
SELECT ALL + 59 * + 98 + 7 col1
----
5789

query I rowsort
SELECT + 59 + 38
----
97

query I rowsort
SELECT - - 45 * + ( + 2 ) - + 69 + - 34 * - 44
----
1517

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT + + COALESCE ( - + 60, + 40 * + 49, + COUNT( * ) )
----
-60

skipif mysql # not compatible
query I rowsort label-643
SELECT + + COALESCE ( - + 60, + 40 * + 49, + COUNT ( * ) )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL + COUNT( * ) * 63 + - 79 + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL + COUNT ( * ) * 63 + - 79 + COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-645
SELECT DISTINCT + 95 * - + 91 - - - 22 + + COUNT( * ) DIV 48 AS col0
----
-8667

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT + 95 * - + 91 - - - 22 + + COUNT ( * ) / 48 AS col0
----
-8667

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

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

query I rowsort
SELECT - - 9 + - CASE + 30 WHEN + 13 THEN NULL ELSE - + 63 END
----
72

query I rowsort
SELECT DISTINCT + - 29 * + + 80 AS col1
----
-2320

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT ALL - 37 * - COUNT( * ) - + - 74 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL - 37 * - COUNT ( * ) - + - 74 AS col0
----
111

query I rowsort
SELECT ALL + 54 * - - 48
----
2592

query I rowsort
SELECT - 89 * - 33 + - 72 * - 80 AS col0
----
8697

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

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

query II rowsort
SELECT ALL ( + - 80 ) AS col0, - 88 - - 33 + 87 AS col0
----
-80
32

onlyif mysql # aggregate syntax: 
query II rowsort label-655
SELECT - 36, COUNT( * ) * 98 AS col2
----
-36
98

skipif mysql # not compatible
query II rowsort label-655
SELECT - 36, COUNT ( * ) * 98 AS col2
----
-36
98

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-656
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, 99 DIV - 14 AS col1
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-656
SELECT ALL CAST ( NULL AS REAL ) AS col1, 99 / - 14 AS col1
----
NULL
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT ALL + SUM( ALL + + 78 ) * + - 84 * + 63
----
-412776

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL + SUM ( ALL + + 78 ) * + - 84 * + 63
----
-412776

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-659
SELECT DISTINCT CAST( NULL AS SIGNED ), - 12 AS col1
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-659
SELECT DISTINCT CAST ( NULL AS INTEGER ), - 12 AS col1
----
NULL
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT - 36 DIV - + 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-660
SELECT - 36 / - + 43 AS col1
----
0

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

query I rowsort
SELECT - 12 - + + 35 AS col2
----
-47

query I rowsort
SELECT ALL 83 * - ( + 12 ) AS col2
----
-996

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT - 88 - COUNT( * ) AS col0, 83 * - 78
----
-89
-6474

skipif mysql # not compatible
query II rowsort label-664
SELECT - 88 - COUNT ( * ) AS col0, 83 * - 78
----
-89
-6474

query I rowsort
SELECT - ( - 60 ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-666
SELECT ALL 0 * + ( + NULLIF ( 32, - - AVG ( + CAST( NULL AS SIGNED ) ) DIV + + CAST( NULL AS SIGNED ) + + - 59 ) ) * 61 DIV - + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL 0 * + ( + NULLIF ( 32, - - AVG ( + CAST ( NULL AS INTEGER ) ) / + + CAST ( NULL AS INTEGER ) + + - 59 ) ) * 61 / - + 71 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-667
SELECT - 6 DIV + + 4 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-667
SELECT - 6 / + + 4 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT DISTINCT - 26 DIV + 54 * 28
----
0

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT - 26 / + 54 * 28
----
0

query I rowsort
SELECT ALL 76 * + 96 AS col1
----
7296

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT DISTINCT 94 + - 11 + + COUNT( * ) col1
----
84

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT 94 + - 11 + + COUNT ( * ) col1
----
84

query I rowsort
SELECT DISTINCT + 54 * - 9
----
-486

query I rowsort
SELECT + ( - - 8 ) - + 81 + 68
----
-5

query I rowsort
SELECT ALL 40 * 18
----
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-674
SELECT DISTINCT COUNT( * ) DIV + + SUM( 34 ) * + 50 * + - ( + + COUNT( * ) ) * - 48 + + 26 + - 9 * - 71 * 35 + - 79 + + 75 * + 51 + + + 75 * + - 11 AS col0, 90 DIV 33 * + 4 AS col1
----
25312
8

skipif mysql # not compatible
query II rowsort label-674
SELECT DISTINCT COUNT ( * ) / + + SUM ( 34 ) * + 50 * + - ( + + COUNT ( * ) ) * - 48 + + 26 + - 9 * - 71 * 35 + - 79 + + 75 * + 51 + + + 75 * + - 11 AS col0, 90 / 33 * + 4 AS col1
----
25312
8

query I rowsort
SELECT ALL 65 + - 7 col2
----
58

query II rowsort
SELECT + 32 AS col0, + ( 56 ) AS col0
----
32
56

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT + COALESCE ( 54, + ( + + 48 ) DIV - 37 ) * NULLIF ( - 23, - NULLIF ( - 16, - 11 ) + - 13 )
----
-1242

skipif mysql # not compatible
query I rowsort label-677
SELECT + COALESCE ( 54, + ( + + 48 ) / - 37 ) * NULLIF ( - 23, - NULLIF ( - 16, - 11 ) + - 13 )
----
-1242

query I rowsort
SELECT 99 + 75 * 82 * + + 71 * + 49 AS col0
----
21395949

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT ALL - 73 + + 10 - - ( - + COUNT( * ) )
----
-64

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL - 73 + + 10 - - ( - + COUNT ( * ) )
----
-64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT 6 * + 78 + - ( + 24 ) * - - CASE SUM( DISTINCT - 43 ) WHEN + + 17 / + 37 * - - 41 THEN - + 64 WHEN - - 66 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-681
SELECT 6 * + 78 + - ( + 24 ) * - - CASE SUM ( DISTINCT - 43 ) WHEN + + 17 / + 37 * - - 41 THEN - + 64 WHEN - - 66 THEN - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT DISTINCT COALESCE ( - 96, - - 23 ) DIV + 75
----
-1

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT COALESCE ( - 96, - - 23 ) / + 75
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-683
SELECT ALL 67 * 81 DIV + COUNT( * )
----
5427

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL 67 * 81 / + COUNT ( * )
----
5427

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

query II rowsort
SELECT + 28, 56 * 9 + 53 AS col0
----
28
557

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT + 59 - COUNT( + 79 )
----
58

skipif mysql # not compatible
query I rowsort label-686
SELECT + 59 - COUNT ( + 79 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-687
SELECT - CAST( NULL AS SIGNED ) * 99 * - + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-687
SELECT - CAST ( NULL AS INTEGER ) * 99 * - + 42 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT + 43 DIV - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-689
SELECT + 43 / - 69 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-690
SELECT COALESCE ( 59, - CASE + 94 WHEN 20 * - 86 + - - COUNT( * ) * CAST( - 83 AS SIGNED ) + - 77 * + - 96 THEN NULL WHEN - + 71 THEN - NULLIF ( - ( - - COUNT( * ) ), 85 * - + 6 * + COUNT( * ) + 20 ) WHEN - 67 THEN NULL ELSE + + 53 END ) + + + ( - - 60 ) / + CAST( NULL AS SIGNED ) + 18 + + NULLIF ( 67, 76 * + CAST( NULL AS DECIMAL ) ) AS col2, + 67 AS col1
----
NULL
67

skipif mysql # not compatible
query II rowsort label-690
SELECT COALESCE ( 59, - CASE + 94 WHEN 20 * - 86 + - - COUNT ( * ) * CAST ( - 83 AS INTEGER ) + - 77 * + - 96 THEN NULL WHEN - + 71 THEN - NULLIF ( - ( - - COUNT ( * ) ), 85 * - + 6 * + COUNT ( * ) + 20 ) WHEN - 67 THEN NULL ELSE + + 53 END ) + + + ( - - 60 ) / + CAST ( NULL AS INTEGER ) + 18 + + NULLIF ( 67, 76 * + CAST ( NULL AS REAL ) ) AS col2, + 67 AS col1
----
NULL
67

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-692
SELECT CAST( NULL AS SIGNED ) * + 79 / - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-692
SELECT CAST ( NULL AS INTEGER ) * + 79 / - 94
----
NULL

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

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

query II rowsort
SELECT ALL - 3 * 18 AS col2, - 90
----
-54
-90

query I rowsort
SELECT ALL + 39 * + 58
----
2262

query I rowsort
SELECT ALL + 30 * 24
----
720

onlyif mysql # aggregate syntax: 
query II rowsort label-697
SELECT COUNT( * ) + + 43 AS col0, + 60 * CASE - + 82 WHEN + 64 THEN - COUNT( * ) ELSE NULL END AS col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-697
SELECT COUNT ( * ) + + 43 AS col0, + 60 * CASE - + 82 WHEN + 64 THEN - COUNT ( * ) ELSE NULL END AS col0
----
44
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-698
SELECT 39 * - 73 + 67 AS col1, - COUNT( * ) * + 41
----
-2780
-41

skipif mysql # not compatible
query II rowsort label-698
SELECT 39 * - 73 + 67 AS col1, - COUNT ( * ) * + 41
----
-2780
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT 65 + ( 37 ) + + COUNT( * )
----
103

skipif mysql # not compatible
query I rowsort label-699
SELECT 65 + ( 37 ) + + COUNT ( * )
----
103

query I rowsort
SELECT ALL - 40 * + ( - 32 )
----
1280

query I rowsort
SELECT 36 + - + 10 AS col0
----
26

query I rowsort
SELECT 46 + - 73 * - + 0 - + + 68
----
-22

query I rowsort
SELECT 81 - + 34 AS col1
----
47

query I rowsort
SELECT 55 + - 48 * 61
----
-2873

query I rowsort
SELECT ALL 71 + 9 + + 77 AS col2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT 65 + + + MAX( - 87 )
----
-22

skipif mysql # not compatible
query I rowsort label-706
SELECT 65 + + + MAX ( - 87 )
----
-22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-707
SELECT ALL + 40 + 5 + ( + 72 ) + + - CAST( + + 71 AS SIGNED ) DIV + - COALESCE ( - + 99, 53 - + 85 )
----
117

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL + 40 + 5 + ( + 72 ) + + - CAST ( + + 71 AS INTEGER ) / + - COALESCE ( - + 99, 53 - + 85 )
----
117

query I rowsort
SELECT ALL - 77 + + 20 + - 81
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-709
SELECT ALL 46 * - 23 * + AVG ( - + CAST( NULL AS SIGNED ) ) * 8 + - - 67 * - COUNT( * ) + - 69 + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL 46 * - 23 * + AVG ( - + CAST ( NULL AS INTEGER ) ) * 8 + - - 67 * - COUNT ( * ) + - 69 + + 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-710
SELECT 87 / - 40 * CASE 88 WHEN - + 19 * + + 41 + + 33 + 70 + + - COALESCE ( 26, 36 + + + 76 ) + - MIN( ALL - + 67 ) + 94 + + + 58 + + 96 + - + 31 + COUNT( * ) + - 36 * + - 2 + 39 * + COUNT( * ) * - 26 * + + 12 * + ( + - 51 ) - - - 63 / + CAST( + 46 AS SIGNED ) + 50 THEN - 84 * - - CAST( - + CAST( + - 16 AS SIGNED ) AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-710
SELECT 87 / - 40 * CASE 88 WHEN - + 19 * + + 41 + + 33 + 70 + + - COALESCE ( 26, 36 + + + 76 ) + - MIN ( ALL - + 67 ) + 94 + + + 58 + + 96 + - + 31 + COUNT ( * ) + - 36 * + - 2 + 39 * + COUNT ( * ) * - 26 * + + 12 * + ( + - 51 ) - - - 63 / + CAST ( + 46 AS INTEGER ) + 50 THEN - 84 * - - CAST ( - + CAST ( + - 16 AS INTEGER ) AS INTEGER ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 63 + + 61
----
124

query I rowsort
SELECT ALL - + 92 + 96
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-713
SELECT COUNT( * ) * 28 / - 15 * - 91 * - CAST( NULL AS DECIMAL ) - + SUM( ALL + 28 ), 85 AS col0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-713
SELECT COUNT ( * ) * 28 / - 15 * - 91 * - CAST ( NULL AS REAL ) - + SUM ( ALL + 28 ), 85 AS col0
----
NULL
85

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT DISTINCT - 72 + + 74 * + 65 - - + 78 * 28 DIV - + 3
----
4010

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT - 72 + + 74 * + 65 - - + 78 * 28 / - + 3
----
4010

query I rowsort
SELECT + - 87 * 23 + + 1 * + 63 + 65 AS col2
----
-1873

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

query I rowsort
SELECT ALL 94 + + + 51
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT ALL + CASE + ( + + MAX( DISTINCT + + 44 ) ) WHEN MAX( ALL + + 51 ) THEN NULL ELSE COUNT( * ) END - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-719
SELECT ALL + CASE + ( + + MAX ( DISTINCT + + 44 ) ) WHEN MAX ( ALL + + 51 ) THEN NULL ELSE COUNT ( * ) END - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-720
SELECT ALL - - 87 * + 5 - 21, 60 DIV 35 col2
----
414
1

skipif mysql # not compatible
query II rowsort label-720
SELECT ALL - - 87 * + 5 - 21, 60 / 35 col2
----
414
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-721
SELECT DISTINCT - NULLIF ( - - COUNT( * ), + 21 + 52 ) * - - 90 * - 65 DIV COUNT( * ) col2
----
5850

skipif mysql # not compatible
query I rowsort label-721
SELECT DISTINCT - NULLIF ( - - COUNT ( * ), + 21 + 52 ) * - - 90 * - 65 / COUNT ( * ) col2
----
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT ALL + - MAX( DISTINCT + - 26 ) - + 75 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL + - MAX ( DISTINCT + - 26 ) - + 75 AS col1
----
-49

query I rowsort
SELECT 0 + + 68 + 71 * - 20
----
-1352

query II rowsort
SELECT ( 26 ) AS col2, + 9 col1
----
26
9

onlyif mysql # aggregate syntax: 
query II rowsort label-725
SELECT MIN( ALL - 48 ) AS col0, 48 AS col2
----
-48
48

skipif mysql # not compatible
query II rowsort label-725
SELECT MIN ( ALL - 48 ) AS col0, 48 AS col2
----
-48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT DISTINCT - - COUNT( DISTINCT 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT - - COUNT ( DISTINCT 72 ) AS col1
----
1

query I rowsort
SELECT 40 * + 55 AS col0
----
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT ALL 7 + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL 7 + + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-729
SELECT DISTINCT 96, - COUNT( 5 ) AS col2
----
96
-1

skipif mysql # not compatible
query II rowsort label-729
SELECT DISTINCT 96, - COUNT ( 5 ) AS col2
----
96
-1

query II rowsort
SELECT 74, 14 AS col1
----
74
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-731
SELECT CAST( + ( + COUNT( * ) ) AS SIGNED ) * 95 + - 53 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-731
SELECT CAST ( + ( + COUNT ( * ) ) AS INTEGER ) * 95 + - 53 AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT ALL 59 + - 80 DIV COALESCE ( + 66, - - 32 + + 77 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL 59 + - 80 / COALESCE ( + 66, - - 32 + + 77 ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-733
SELECT CASE 50 WHEN - COALESCE ( + 65, - COUNT( * ) * - ( - 48 ) - - 95 * ( + COUNT( * ) ) * + - 92 * ( CAST( 53 AS SIGNED ) ) * + COALESCE ( + - 28, COUNT( * ) * + - MIN( + CAST( NULL AS SIGNED ) ) * - 27 - - 22 ) + + + 73 + - + 8 - 97 * + COUNT( * ) * 22 + - - 65 * + 65 + - 13 * + 54 * + COALESCE ( - 79, CAST( NULL AS SIGNED ), - ( 22 ) * COALESCE ( 28, + COUNT( ALL - 15 ) ) + NULLIF ( + ( 70 ) + - 36, COUNT( * ) + 2 ) ) ) * - CAST( 52 * - CAST( 64 AS SIGNED ) AS SIGNED ) THEN NULL WHEN + 46 THEN 7 * - 29 END * - CAST( + 52 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-733
SELECT CASE 50 WHEN - COALESCE ( + 65, - COUNT ( * ) * - ( - 48 ) - - 95 * ( + COUNT ( * ) ) * + - 92 * ( CAST ( 53 AS INTEGER ) ) * + COALESCE ( + - 28, COUNT ( * ) * + - MIN ( + CAST ( NULL AS INTEGER ) ) * - 27 - - 22 ) + + + 73 + - + 8 - 97 * + COUNT ( * ) * 22 + - - 65 * + 65 + - 13 * + 54 * + COALESCE ( - 79, CAST ( NULL AS INTEGER ), - ( 22 ) * COALESCE ( 28, + COUNT ( ALL - 15 ) ) + NULLIF ( + ( 70 ) + - 36, COUNT ( * ) + 2 ) ) ) * - CAST ( 52 * - CAST ( 64 AS INTEGER ) AS INTEGER ) THEN NULL WHEN + 46 THEN 7 * - 29 END * - CAST ( + 52 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-734
SELECT - SUM( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-734
SELECT - SUM ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT ALL 23 + - + 22
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT - ( 27 ) + + COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-737
SELECT - ( 27 ) + + COUNT ( * ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-738
SELECT - COUNT( * ) AS col2, 45 * + - 11 col1
----
-1
-495

skipif mysql # not compatible
query II rowsort label-738
SELECT - COUNT ( * ) AS col2, 45 * + - 11 col1
----
-1
-495

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

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

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

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL MIN ( 15 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-741
SELECT + + 54 - + 14 + 96, CAST( NULL AS SIGNED ) + + 7 AS col0
----
136
NULL

skipif mysql # not compatible
query II rowsort label-741
SELECT + + 54 - + 14 + 96, CAST ( NULL AS INTEGER ) + + 7 AS col0
----
136
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-742
SELECT - CAST( + 6 AS SIGNED ) * 74 + - ( - 73 )
----
-371

skipif mysql # not compatible
query I rowsort label-742
SELECT - CAST ( + 6 AS INTEGER ) * 74 + - ( - 73 )
----
-371

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-744
SELECT - - 79 + - 78 DIV - + 94 * - - 21 + - - 67 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-744
SELECT - - 79 + - 78 / - + 94 * - - 21 + - - 67 AS col0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT DISTINCT + 15 * - - MIN( 68 ) + - + MIN( 11 ) AS col0
----
1009

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT + 15 * - - MIN ( 68 ) + - + MIN ( 11 ) AS col0
----
1009

query I rowsort
SELECT ALL - 93 - + 67 + ( - 41 ) * 35 * - 34 AS col0
----
48630

query I rowsort
SELECT - 53 * + - 54 AS col0
----
2862

query I rowsort
SELECT - 66 - + 48 AS col0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT - CASE - 65 WHEN COUNT( * ) + - SUM( - + ( + 62 ) ) THEN NULL WHEN + 90 * 32 THEN - + COUNT( DISTINCT + 56 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-749
SELECT - CASE - 65 WHEN COUNT ( * ) + - SUM ( - + ( + 62 ) ) THEN NULL WHEN + 90 * 32 THEN - + COUNT ( DISTINCT + 56 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT - + COUNT( * ) * MIN( ALL + 92 ) - 59 - 85
----
-236

skipif mysql # not compatible
query I rowsort label-750
SELECT - + COUNT ( * ) * MIN ( ALL + 92 ) - 59 - 85
----
-236

query I rowsort
SELECT - - 27 * + + 13 * 88
----
30888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-752
SELECT - + CAST( NULL AS SIGNED ) * + + 24 - - 66 + - + 67 + - - ( + COUNT( * ) ) * - 94 * 54 + + 75 - + + COUNT( * ) * - 41 * - + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-752
SELECT - + CAST ( NULL AS INTEGER ) * + + 24 - - 66 + - + 67 + - - ( + COUNT ( * ) ) * - 94 * 54 + + 75 - + + COUNT ( * ) * - 41 * - + 92 AS col2
----
NULL

query II rowsort
SELECT ALL + - 72, - 93 + - 70 AS col1
----
-72
-163

query I rowsort
SELECT - - 77 + 87 * - + ( 57 ) AS col1
----
-4882

onlyif mysql # DIV for integer division: 
query I rowsort label-755
SELECT + + 72 DIV - 63 col1
----
-1

skipif mysql # not compatible
query I rowsort label-755
SELECT + + 72 / - 63 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT ALL + - ( 39 ) * 4 + - MIN( ALL - 28 ) AS col1
----
-128

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL + - ( 39 ) * 4 + - MIN ( ALL - 28 ) AS col1
----
-128

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-757
SELECT DISTINCT + 39 * CASE 93 WHEN + + 86 THEN + 23 * ( - + 11 ) WHEN - 75 * - COALESCE ( + 85, - - MAX( DISTINCT - - CAST( NULL AS DECIMAL ) ) ) THEN - COUNT( * ) + + 87 * - 67 + + 43 + + 84 * + - 37 + - 84 * ( - ( MAX( - 5 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT + 39 * CASE 93 WHEN + + 86 THEN + 23 * ( - + 11 ) WHEN - 75 * - COALESCE ( + 85, - - MAX ( DISTINCT - - CAST ( NULL AS REAL ) ) ) THEN - COUNT ( * ) + + 87 * - 67 + + 43 + + 84 * + - 37 + - 84 * ( - ( MAX ( - 5 ) ) ) END
----
NULL

query II rowsort
SELECT ALL + - 12, 44 AS col1
----
-12
44

query I rowsort
SELECT ALL + + 80 * 11 col1
----
880

query I rowsort
SELECT DISTINCT - 47 * - 4 col1
----
188

query I rowsort
SELECT - 19 + + 62 AS col0
----
43

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

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

query II rowsort
SELECT - 37 + - 63 AS col0, - 55
----
-100
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT + MIN( DISTINCT + 91 ) * - - 60
----
5460

skipif mysql # not compatible
query I rowsort label-764
SELECT + MIN ( DISTINCT + 91 ) * - - 60
----
5460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-765
SELECT AVG ( ALL + + 9 ) * + 14 + - 91 + - 82 + MIN( - CAST( NULL AS SIGNED ) ) + - 48 + + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-765
SELECT AVG ( ALL + + 9 ) * + 14 + - 91 + - 82 + MIN ( - CAST ( NULL AS INTEGER ) ) + - 48 + + 93 AS col1
----
NULL

query I rowsort
SELECT + CASE - + 11 WHEN + 30 * - - 82 + 97 THEN NULL ELSE - + 87 END + 92
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT ALL COUNT( * ) * - 11 * + 45 + + ( + COUNT( ALL + 36 ) ) + 70 * 58 AS col2
----
3566

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL COUNT ( * ) * - 11 * + 45 + + ( + COUNT ( ALL + 36 ) ) + 70 * 58 AS col2
----
3566

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

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

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

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

query I rowsort
SELECT + 78 * + 80 + + - 42
----
6198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-771
SELECT ALL 17 + - COUNT( * ) / CAST( NULL AS SIGNED ) * - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL 17 + - COUNT ( * ) / CAST ( NULL AS INTEGER ) * - 92 AS col1
----
NULL

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

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

query I rowsort
SELECT - ( 6 ) col1
----
-6

query I rowsort
SELECT + 88 + 56 * + 73 AS col1
----
4176

query I rowsort
SELECT + 99 + + - 2 + ( 32 ) + 47
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT - 81 - - + 3 + + COUNT( ALL 8 ) col2
----
-77

skipif mysql # not compatible
query I rowsort label-776
SELECT - 81 - - + 3 + + COUNT ( ALL 8 ) col2
----
-77

query I rowsort
SELECT + NULLIF ( - 65, - - 34 * + 60 - + + 94 ) + 74
----
9

query I rowsort
SELECT ALL + + 24 - + 41 AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-779
SELECT + + 17 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-779
SELECT + + 17 / + 45
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT DISTINCT 16 DIV + - ( + 65 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT 16 / + - ( + 65 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT ALL + 61 - COUNT( - - 43 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL + 61 - COUNT ( - - 43 ) AS col0
----
60

query I rowsort
SELECT + 17 * - - 45
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT - CASE - 20 WHEN + COUNT( * ) * 0 THEN NULL WHEN + - 27 THEN COUNT( DISTINCT - 9 ) ELSE NULL END * - 76 * 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-783
SELECT - CASE - 20 WHEN + COUNT ( * ) * 0 THEN NULL WHEN + - 27 THEN COUNT ( DISTINCT - 9 ) ELSE NULL END * - 76 * 84 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL + - COUNT ( * ) * 59 * - 61 AS col0
----
3599

onlyif mysql # aggregate syntax: 
query II rowsort label-785
SELECT + ( 16 ) + + MAX( ALL - 29 ) AS col0, 22 * + + 62 AS col0
----
-13
1364

skipif mysql # not compatible
query II rowsort label-785
SELECT + ( 16 ) + + MAX ( ALL - 29 ) AS col0, 22 * + + 62 AS col0
----
-13
1364

query I rowsort
SELECT + - 90 + - 22
----
-112

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-789
SELECT - ( - 42 ) DIV - - 71 + + + 12 + 99 * - 44 + - SUM( DISTINCT - + 42 ) - + COUNT( * )
----
-4303

skipif mysql # not compatible
query I rowsort label-789
SELECT - ( - 42 ) / - - 71 + + + 12 + 99 * - 44 + - SUM ( DISTINCT - + 42 ) - + COUNT ( * )
----
-4303

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-790
SELECT ALL 32 DIV COUNT( * ) + + + 77 + + 96 * + + 52 + + 76
----
5177

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL 32 / COUNT ( * ) + + + 77 + + 96 * + + 52 + + 76
----
5177

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT - MAX( 98 ) + + + 96 - - - 92 * + 73 * 52 AS col2
----
-349234

skipif mysql # not compatible
query I rowsort label-791
SELECT - MAX ( 98 ) + + + 96 - - - 92 * + 73 * 52 AS col2
----
-349234

query I rowsort
SELECT + - 54 * - 12 AS col1
----
648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-793
SELECT + + 55 * - - 55 DIV COUNT( * ) + - 10 + - 90
----
2925

skipif mysql # not compatible
query I rowsort label-793
SELECT + + 55 * - - 55 / COUNT ( * ) + - 10 + - 90
----
2925

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

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

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

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

query I rowsort
SELECT 71 * + - 19 + - 38 - + + 33
----
-1420

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT - MIN( + 95 ) * - MIN( + ( NULLIF ( + ( + 51 ), 48 ) ) ) * - 89 AS col0
----
-431205

skipif mysql # not compatible
query I rowsort label-797
SELECT - MIN ( + 95 ) * - MIN ( + ( NULLIF ( + ( + 51 ), 48 ) ) ) * - 89 AS col0
----
-431205

onlyif mysql # DIV for integer division: 
query I rowsort label-798
SELECT ALL 75 DIV 20 + - COALESCE ( + + 77, - 9 ) + 7 + - 44 * 39 * - 1 AS col1
----
1649

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL 75 / 20 + - COALESCE ( + + 77, - 9 ) + 7 + - 44 * 39 * - 1 AS col1
----
1649

query I rowsort
SELECT ALL + 54 * + 16 AS col2
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT ALL MIN( 9 ) * + 75 * + + 38 + - 69
----
25581

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL MIN ( 9 ) * + 75 * + + 38 + - 69
----
25581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-801
SELECT - CAST( CAST( MIN( ALL - 75 ) AS SIGNED ) AS SIGNED ) * 29 DIV 33 * - + COALESCE ( - + 91, ( - - 72 ) * + NULLIF ( - 23, + - 73 ), + 22 + - 79 ) AS col1
----
5915

skipif mysql # not compatible
query I rowsort label-801
SELECT - CAST ( CAST ( MIN ( ALL - 75 ) AS INTEGER ) AS INTEGER ) * 29 / 33 * - + COALESCE ( - + 91, ( - - 72 ) * + NULLIF ( - 23, + - 73 ), + 22 + - 79 ) AS col1
----
5915

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT ( + NULLIF ( + 7, CASE + 91 WHEN - + 42 * 36 + 36 THEN NULL WHEN - + CASE + - 48 WHEN 29 + + 53 THEN - MIN( ALL 12 ) END THEN - 92 ELSE NULL END * + + 91 + - - 43 + 89 ) )
----
7

skipif mysql # not compatible
query I rowsort label-802
SELECT ( + NULLIF ( + 7, CASE + 91 WHEN - + 42 * 36 + 36 THEN NULL WHEN - + CASE + - 48 WHEN 29 + + 53 THEN - MIN ( ALL 12 ) END THEN - 92 ELSE NULL END * + + 91 + - - 43 + 89 ) )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-803
SELECT ALL 30 + 13 + + 45 DIV MIN( + 28 )
----
44

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL 30 + 13 + + 45 / MIN ( + 28 )
----
44

query I rowsort
SELECT 81 + - 21
----
60

query I rowsort
SELECT ALL + 9 + + + 38 AS col2
----
47

query II rowsort
SELECT + 10 AS col0, + 50
----
10
50

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

onlyif mysql # aggregate syntax: 
query II rowsort label-808
SELECT 16 + + ( 10 ) * + ( + 74 ) AS col0, CASE + 43 WHEN + COUNT( ALL - 99 ) * - 99 * 17 THEN - - COUNT( * ) WHEN - 78 THEN NULL ELSE - 82 END
----
756
-82

skipif mysql # not compatible
query II rowsort label-808
SELECT 16 + + ( 10 ) * + ( + 74 ) AS col0, CASE + 43 WHEN + COUNT ( ALL - 99 ) * - 99 * 17 THEN - - COUNT ( * ) WHEN - 78 THEN NULL ELSE - 82 END
----
756
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-809
SELECT 42, - 0 DIV 81 AS col0
----
42
0

skipif mysql # not compatible
query II rowsort label-809
SELECT 42, - 0 / 81 AS col0
----
42
0

onlyif mysql # aggregate syntax: 
query II rowsort label-810
SELECT ALL 78, COUNT( 27 ) * + 66 - + + 18 AS col2
----
78
48

skipif mysql # not compatible
query II rowsort label-810
SELECT ALL 78, COUNT ( 27 ) * + 66 - + + 18 AS col2
----
78
48

query I rowsort
SELECT - COALESCE ( 46, - 84, - 73 + + - 43 * 82 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL + ( - CASE - + 99 WHEN - 69 THEN - + COUNT( * ) + 74 ELSE NULL END ) * - + 92 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL + ( - CASE - + 99 WHEN - 69 THEN - + COUNT ( * ) + 74 ELSE NULL END ) * - + 92 col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-813
SELECT ALL CAST( NULL AS DECIMAL ) * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL CAST ( NULL AS REAL ) * - 4
----
NULL

query I rowsort
SELECT - 44 + - 39 + - 57 * - 2 AS col0
----
31

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-816
SELECT ALL SUM( - CAST( - + 40 AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL SUM ( - CAST ( - + 40 AS INTEGER ) )
----
40

query I rowsort
SELECT - 1 - + - 79 AS col0
----
78

query I rowsort
SELECT + 10 * + + 23
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT 68 + 37 + - 48 * - COUNT( * ) * - 14 * 29
----
-19383

skipif mysql # not compatible
query I rowsort label-819
SELECT 68 + 37 + - 48 * - COUNT ( * ) * - 14 * 29
----
-19383

onlyif mysql # DIV for integer division: 
query I rowsort label-820
SELECT ALL - 50 DIV + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL - 50 / + 55 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-821
SELECT COUNT( * ) / - ( + CAST( NULL AS DECIMAL ) ) / + + 19 + + CAST( NULL AS DECIMAL ) + - 36 / + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-821
SELECT COUNT ( * ) / - ( + CAST ( NULL AS REAL ) ) / + + 19 + + CAST ( NULL AS REAL ) + - 36 / + + 23
----
NULL

query I rowsort
SELECT DISTINCT + 80 + NULLIF ( COALESCE ( + 5, + ( + 82 ) * + 59 ), - + NULLIF ( 49, - 16 ) ) + + 73 AS col1
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-823
SELECT - CAST( 57 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-823
SELECT - CAST ( 57 AS INTEGER )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-824
SELECT ALL + ( 55 ) + + + 71 - - 26 + - CAST( + ( + NULLIF ( - COALESCE ( COUNT( * ), - - 91 ), 81 * - 38 - + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col0
----
153

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL + ( 55 ) + + + 71 - - 26 + - CAST ( + ( + NULLIF ( - COALESCE ( COUNT ( * ), - - 91 ), 81 * - 38 - + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col0
----
153

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

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

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

skipif mysql # not compatible
query I rowsort label-826
SELECT 68 / + COUNT ( * ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-827
SELECT ALL - AVG ( 91 ) + CAST( NULL AS DECIMAL ) / + - CAST( + - 16 AS SIGNED ) - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL - AVG ( 91 ) + CAST ( NULL AS REAL ) / + - CAST ( + - 16 AS INTEGER ) - 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT + 26 * + + MIN( 24 ) + 16 + + 65 * - 13 AS col0
----
-205

skipif mysql # not compatible
query I rowsort label-828
SELECT + 26 * + + MIN ( 24 ) + 16 + + 65 * - 13 AS col0
----
-205

query II rowsort
SELECT + 29 col1, 69
----
29
69

query II rowsort
SELECT DISTINCT - 40 + + 51 AS col0, + ( - 81 )
----
11
-81

query II rowsort
SELECT 90 AS col1, 42 * 48 AS col2
----
90
2016

query I rowsort
SELECT ALL + 76 + + - 27 col2
----
49

query II rowsort
SELECT + 40 AS col2, - 95 * - - 30 AS col1
----
40
-2850

query II rowsort
SELECT ALL - 0, - COALESCE ( 6, + - 45 + + + 94 * + 48 ) AS col0
----
0
-6

query I rowsort
SELECT DISTINCT 7 + 30 * + 64
----
1927

query II rowsort
SELECT + 94 AS col2, + 78 * - 95 AS col1
----
94
-7410

query I rowsort
SELECT 81 * + 43 AS col1
----
3483

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT CASE - ( + + 4 ) WHEN 21 THEN NULL WHEN - 1 THEN - + 76 WHEN 97 THEN NULL ELSE - 92 * - - 44 END + + COUNT( * ) * - 39 AS col1
----
-4087

skipif mysql # not compatible
query I rowsort label-838
SELECT CASE - ( + + 4 ) WHEN 21 THEN NULL WHEN - 1 THEN - + 76 WHEN 97 THEN NULL ELSE - 92 * - - 44 END + + COUNT ( * ) * - 39 AS col1
----
-4087

query I rowsort
SELECT 64 * - 56
----
-3584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-840
SELECT ALL - MIN( DISTINCT ( + + 27 ) ) DIV - + 89 + + 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL - MIN ( DISTINCT ( + + 27 ) ) / - + 89 + + 81 AS col0
----
81

query II rowsort
SELECT 6 * 92, - 70 + - + 15 AS col1
----
552
-85

query I rowsort
SELECT 90 + + 55 * - - ( + 10 ) AS col0
----
640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-843
SELECT 96 DIV + - ( - - MIN( ALL - 90 ) )
----
1

skipif mysql # not compatible
query I rowsort label-843
SELECT 96 / + - ( - - MIN ( ALL - 90 ) )
----
1

query I rowsort
SELECT 99 + + 98 AS col0
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT ALL SUM( ALL 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL SUM ( ALL 3 ) AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-846
SELECT + CASE 12 WHEN - + 67 DIV 10 THEN NULL WHEN + 29 THEN 71 ELSE - 88 END DIV + 43
----
-2

skipif mysql # not compatible
query I rowsort label-846
SELECT + CASE 12 WHEN - + 67 / 10 THEN NULL WHEN + 29 THEN 71 ELSE - 88 END / + 43
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-847
SELECT - NULLIF ( CAST( COUNT( * ) AS SIGNED ), + 74 ) + - 18 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-847
SELECT - NULLIF ( CAST ( COUNT ( * ) AS INTEGER ), + 74 ) + - 18 AS col2
----
-19

query I rowsort
SELECT + 41 * 86 col1
----
3526

query I rowsort
SELECT 3 + - 69
----
-66

query I rowsort
SELECT + 99 + + 67 * + + 45
----
3114

query I rowsort
SELECT - 8 * - 87 AS col2
----
696

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

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL + - COUNT ( * ) + 48 AS col0
----
47

query I rowsort
SELECT ALL 61 + 33 AS col2
----
94

query I rowsort
SELECT DISTINCT + 51 + + 71 + + 37
----
159

query I rowsort
SELECT - 48 + 10 + + - 41 + + 58 - + 25 * 83 * - 28
----
58079

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT CASE + 56 WHEN COUNT( * ) * + - 59 * + 81 - COALESCE ( + COUNT( * ), 90 ) * 68 THEN NULL ELSE - 75 END AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-856
SELECT CASE + 56 WHEN COUNT ( * ) * + - 59 * + 81 - COALESCE ( + COUNT ( * ), 90 ) * 68 THEN NULL ELSE - 75 END AS col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-857
SELECT NULLIF ( - - 83, - + 12 ) * 37 * - 52 + 74 DIV - 82
----
-159692

skipif mysql # not compatible
query I rowsort label-857
SELECT NULLIF ( - - 83, - + 12 ) * 37 * - 52 + 74 / - 82
----
-159692

query I rowsort
SELECT ALL + 10 * - 92 * - 85 + 63
----
78263

query I rowsort
SELECT ALL COALESCE ( + + 58, - 18 * 35 ) * + + 1 * - + ( NULLIF ( 27, - 46 ) ) + - 80
----
-1646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-860
SELECT + 48 DIV - - 24 + + + COUNT( * ) + - 23
----
-20

skipif mysql # not compatible
query I rowsort label-860
SELECT + 48 / - - 24 + + + COUNT ( * ) + - 23
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL 30 * ( NULLIF ( + COUNT( * ), + + 92 ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL 30 * ( NULLIF ( + COUNT ( * ), + + 92 ) ) AS col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-862
SELECT DISTINCT 60 DIV - 12
----
-5

skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT 60 / - 12
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-863
SELECT CASE - COUNT( * ) WHEN + - 24 THEN - 37 WHEN - 39 DIV 34 THEN + NULLIF ( + 14, - SUM( ALL + - 53 ) + + - COUNT( * ) - 30 * - CAST( NULL AS DECIMAL ) ) END AS col1
----
14

skipif mysql # not compatible
query I rowsort label-863
SELECT CASE - COUNT ( * ) WHEN + - 24 THEN - 37 WHEN - 39 / 34 THEN + NULLIF ( + 14, - SUM ( ALL + - 53 ) + + - COUNT ( * ) - 30 * - CAST ( NULL AS REAL ) ) END AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT - 4 * - COUNT( * ) + - 77 col2
----
-73

skipif mysql # not compatible
query I rowsort label-864
SELECT - 4 * - COUNT ( * ) + - 77 col2
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT + CASE - 59 WHEN + 10 THEN NULL WHEN - + ( - + COUNT( * ) ) THEN NULL WHEN - + SUM( + 0 ) THEN - + 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-866
SELECT + CASE - 59 WHEN + 10 THEN NULL WHEN - + ( - + COUNT ( * ) ) THEN NULL WHEN - + SUM ( + 0 ) THEN - + 92 ELSE NULL END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-868
SELECT ALL 52 * 8 * + 29 AS col2, 26 DIV - 87 col1
----
12064
0

skipif mysql # not compatible
query II rowsort label-868
SELECT ALL 52 * 8 * + 29 AS col2, 26 / - 87 col1
----
12064
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-869
SELECT + CASE AVG ( DISTINCT + ( 72 ) ) WHEN + 45 * CAST( NULL AS SIGNED ) THEN - NULLIF ( - 1, 85 / 71 ) * + + CAST( - - MAX( + + 58 ) AS SIGNED ) * + 31 + + 13 + + 48 + - + 67 + 32 * 58 + - 39 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-869
SELECT + CASE AVG ( DISTINCT + ( 72 ) ) WHEN + 45 * CAST ( NULL AS INTEGER ) THEN - NULLIF ( - 1, 85 / 71 ) * + + CAST ( - - MAX ( + + 58 ) AS INTEGER ) * + 31 + + 13 + + 48 + - + 67 + 32 * 58 + - 39 END AS col1
----
NULL

query I rowsort
SELECT + 93 * - 38
----
-3534

query I rowsort
SELECT - 99 * + 5
----
-495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-872
SELECT DISTINCT - 16 DIV + + 60 + + + SUM( + 31 ) col0
----
31

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT - 16 / + + 60 + + + SUM ( + 31 ) col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-873
SELECT + + 94 * ( + + 83 ) + - - COUNT( * ) DIV 56
----
7802

skipif mysql # not compatible
query I rowsort label-873
SELECT + + 94 * ( + + 83 ) + - - COUNT ( * ) / 56
----
7802

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-874
SELECT - SUM( - 36 ) DIV + + ( - 19 ) + + + 75 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-874
SELECT - SUM ( - 36 ) / + + ( - 19 ) + + + 75 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT DISTINCT + + COUNT( * ) + - 86 + - 83 AS col2
----
-168

skipif mysql # not compatible
query I rowsort label-875
SELECT DISTINCT + + COUNT ( * ) + - 86 + - 83 AS col2
----
-168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT ALL + ( - 95 ) * + MIN( + + 74 )
----
-7030

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL + ( - 95 ) * + MIN ( + + 74 )
----
-7030

query I rowsort
SELECT + 63 + 88 - - 69 * - 80 AS col2
----
-5369

onlyif mysql # DIV for integer division: 
query II rowsort label-879
SELECT - ( - 80 ) AS col2, 89 * 92 + + - 45 DIV - 66 * + 88 AS col0
----
80
8188

skipif mysql # not compatible
query II rowsort label-879
SELECT - ( - 80 ) AS col2, 89 * 92 + + - 45 / - 66 * + 88 AS col0
----
80
8188

query I rowsort
SELECT - CASE 3 WHEN + 37 * 67 * - 1 THEN 39 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - - 8 + + 24 + - + 15 * 10 + + 56 col2
----
-62

query I rowsort
SELECT - - 67 * 84 AS col2
----
5628

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ALL - - COUNT( ALL 93 ) + 85 * - - 25 * - - 11 * - 99
----
-2314124

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL - - COUNT ( ALL 93 ) + 85 * - - 25 * - - 11 * - 99
----
-2314124

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT NULLIF ( 0, + 80 + - + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-884
SELECT NULLIF ( 0, + 80 + - + COUNT ( * ) ) AS col2
----
0

query II rowsort
SELECT - - 17 + - 78 AS col1, - 41 AS col2
----
-61
-41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT ALL - + SUM( - 99 ) - 43
----
56

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL - + SUM ( - 99 ) - 43
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT ALL 55 * CASE + - 32 WHEN 3 / - COUNT( * ) THEN NULL ELSE + - MAX( ALL ( - 71 ) ) * - 59 * - - 47 + + 91 * - 1 * + 27 + + COUNT( * ) + - - 62 + - 9 - - - 35 END * - 59 AS col1
----
646796645

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL 55 * CASE + - 32 WHEN 3 / - COUNT ( * ) THEN NULL ELSE + - MAX ( ALL ( - 71 ) ) * - 59 * - - 47 + + 91 * - 1 * + 27 + + COUNT ( * ) + - - 62 + - 9 - - - 35 END * - 59 AS col1
----
646796645

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

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

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

skipif mysql # not compatible
query I rowsort label-890
SELECT + COUNT ( ALL + 68 ) - - + 94 AS col1
----
95

query I rowsort
SELECT - 7 * + 56
----
-392

query I rowsort
SELECT ALL - 50 * 91
----
-4550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT CAST( - - 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-893
SELECT CAST ( - - 11 AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT + SUM( - 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-894
SELECT + SUM ( - 26 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT DISTINCT + NULLIF ( + COUNT( * ), AVG ( DISTINCT + 93 ) )
----
1

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT + NULLIF ( + COUNT ( * ), AVG ( DISTINCT + 93 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT + ( + - 73 ) * COUNT( * ) * - + COUNT( * ) - + - 36 + + 39 + CASE CASE - 1 WHEN + 88 THEN NULL WHEN + - 14 * - 40 THEN NULL ELSE - - 68 END WHEN - 83 THEN + COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT + ( + - 73 ) * COUNT ( * ) * - + COUNT ( * ) - + - 36 + + 39 + CASE CASE - 1 WHEN + 88 THEN NULL WHEN + - 14 * - 40 THEN NULL ELSE - - 68 END WHEN - 83 THEN + COUNT ( * ) ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-897
SELECT ALL COALESCE ( - + 57, AVG ( ALL + 62 ) ) DIV MAX( DISTINCT + 18 )
----
-3

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL COALESCE ( - + 57, AVG ( ALL + 62 ) ) / MAX ( DISTINCT + 18 )
----
-3

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

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

query I rowsort
SELECT - 17 + + 57 AS col1
----
40

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

query I rowsort
SELECT + 99 * + 84
----
8316

query I rowsort
SELECT + 69 * + COALESCE ( - 38, - 61 * + + 80, 20 * + - 58 )
----
-2622

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-904
SELECT COALESCE ( - 39, + + 57 ), - 84 * + COUNT( * ) AS col0
----
-39
-84

skipif mysql # not compatible
query II rowsort label-904
SELECT COALESCE ( - 39, + + 57 ), - 84 * + COUNT ( * ) AS col0
----
-39
-84

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

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

query I rowsort
SELECT DISTINCT 44 * + 0 + 29 AS col1
----
29

query I rowsort
SELECT + 81 + - + 95
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-908
SELECT DISTINCT - + 46 * + - ( - CAST( + + CASE + + ( - 69 ) WHEN + 4 THEN + - 32 END AS SIGNED ) ) + + - ( 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT - + 46 * + - ( - CAST ( + + CASE + + ( - 69 ) WHEN + 4 THEN + - 32 END AS INTEGER ) ) + + - ( 20 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT + 94 + - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-909
SELECT + 94 + - COUNT ( * )
----
93

query I rowsort
SELECT ALL - ( 91 ) * - 13 + ( + 76 )
----
1259

query I rowsort
SELECT + + 57 + - 72
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT + + CASE - COUNT( * ) WHEN + + 70 THEN 67 END * 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT + + CASE - COUNT ( * ) WHEN + + 70 THEN 67 END * 5 AS col1
----
NULL

query I rowsort
SELECT 82 * + NULLIF ( - 29, + 61 * + + 31 + - 59 ) + + + 9 AS col2
----
-2369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-914
SELECT DISTINCT - + NULLIF ( CAST( + CASE - ( - ( 55 ) ) WHEN 72 * - 63 * + 47 THEN - + 14 + - 33 END AS SIGNED ), + 95 + + 51 ) * - ( COUNT( * ) ) + + 57 + - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT - + NULLIF ( CAST ( + CASE - ( - ( 55 ) ) WHEN 72 * - 63 * + 47 THEN - + 14 + - 33 END AS INTEGER ), + 95 + + 51 ) * - ( COUNT ( * ) ) + + 57 + - 97 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-915
SELECT ALL + 46 * - - 0 + 42, - CAST( + + 56 AS SIGNED ) - + 51 AS col0
----
42
-107

skipif mysql # not compatible
query II rowsort label-915
SELECT ALL + 46 * - - 0 + 42, - CAST ( + + 56 AS INTEGER ) - + 51 AS col0
----
42
-107

query II rowsort
SELECT - 88, 87 AS col1
----
-88
87

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

skipif mysql # not compatible
query I rowsort label-917
SELECT - - 32 + - CAST ( NULL AS INTEGER ) - - - 65
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-919
SELECT ALL + 10 DIV + + MAX( + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL + 10 / + + MAX ( + 61 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT DISTINCT + MIN( + 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT + MIN ( + 17 ) AS col0
----
17

query II rowsort
SELECT DISTINCT - 73 AS col2, - 42
----
-73
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT ALL - MAX( + ( 58 ) ) - - COUNT( * ) + + 33 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL - MAX ( + ( 58 ) ) - - COUNT ( * ) + + 33 AS col1
----
-24

query II rowsort
SELECT DISTINCT + 36 * - + 92 AS col2, - 76 AS col2
----
-3312
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-924
SELECT 90 * 2 * + ( - 91 ), + CASE - + 25 WHEN + ( + ( CASE 1 WHEN - 49 THEN + 84 END ) ) * + 67 THEN 13 ELSE + COUNT( * ) END - + 27 AS col0
----
-16380
-26

skipif mysql # not compatible
query II rowsort label-924
SELECT 90 * 2 * + ( - 91 ), + CASE - + 25 WHEN + ( + ( CASE 1 WHEN - 49 THEN + 84 END ) ) * + 67 THEN 13 ELSE + COUNT ( * ) END - + 27 AS col0
----
-16380
-26

query I rowsort
SELECT ALL - 63 - ( - 94 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-926
SELECT 71 + CAST( NULL AS SIGNED ) AS col2, 73 AS col0
----
NULL
73

skipif mysql # not compatible
query II rowsort label-926
SELECT 71 + CAST ( NULL AS INTEGER ) AS col2, 73 AS col0
----
NULL
73

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT ALL - NULLIF ( - + 24, - + 4 + + 90 / COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL - NULLIF ( - + 24, - + 4 + + 90 / COUNT ( * ) )
----
24

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-929
SELECT COUNT( * ) / - SUM( ( ( - CAST( NULL AS DECIMAL ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT COUNT ( * ) / - SUM ( ( ( - CAST ( NULL AS REAL ) ) ) ) AS col1
----
NULL

query I rowsort
SELECT 5 * + - 66 * 82 AS col1
----
-27060

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL 58 + + 30 + + COUNT( DISTINCT + 10 )
----
89

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL 58 + + 30 + + COUNT ( DISTINCT + 10 )
----
89

query I rowsort
SELECT ALL - 66 + - 43
----
-109

query I rowsort
SELECT COALESCE ( 57, + 35 + - 43 ) * - 75 AS col1
----
-4275

query I rowsort
SELECT DISTINCT - - COALESCE ( - + 77, - - 38 * + 24 * - 14 + + 59 )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-935
SELECT - 1 DIV 10 + - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-935
SELECT - 1 / 10 + - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-936
SELECT 98 * + MIN( - 67 ) * - 4, 70 AS col2
----
26264
70

skipif mysql # not compatible
query II rowsort label-936
SELECT 98 * + MIN ( - 67 ) * - 4, 70 AS col2
----
26264
70

query I rowsort
SELECT ALL 84 + - - 77
----
161

onlyif mysql # DIV for integer division: 
query II rowsort label-938
SELECT 25 * - 34 + - 4 - + 81 + - 60 * - NULLIF ( - 98, + 56 ) * + 60 - + 80 + + ( 70 ) DIV - 64 + - 82, 0 col1
----
-353898
0

skipif mysql # not compatible
query II rowsort label-938
SELECT 25 * - 34 + - 4 - + 81 + - 60 * - NULLIF ( - 98, + 56 ) * + 60 - + 80 + + ( 70 ) / - 64 + - 82, 0 col1
----
-353898
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-939
SELECT - CAST( 22 AS SIGNED ) - + ( + - SUM( ALL 52 ) )
----
30

skipif mysql # not compatible
query I rowsort label-939
SELECT - CAST ( 22 AS INTEGER ) - + ( + - SUM ( ALL 52 ) )
----
30

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

skipif mysql # not compatible
query I rowsort label-940
SELECT + + NULLIF ( + COUNT ( * ), 41 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-941
SELECT ALL 12 * + CAST( NULL AS SIGNED ) / + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL 12 * + CAST ( NULL AS INTEGER ) / + 62 AS col1
----
NULL

query I rowsort
SELECT - - 37 col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-943
SELECT ALL + SUM( DISTINCT 77 ) - + - 46 - CAST( - - 52 AS SIGNED ) + + 27 + + 7 * + 47
----
427

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL + SUM ( DISTINCT 77 ) - + - 46 - CAST ( - - 52 AS INTEGER ) + + 27 + + 7 * + 47
----
427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-944
SELECT - COUNT( ALL + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-944
SELECT - COUNT ( ALL + + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT 47 * + 77 AS col1
----
3619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-946
SELECT - 26 + + COUNT( * ) + CASE + 90 WHEN COALESCE ( + 75, - 35 / + COUNT( * ) - - 19, 49 ) * + SUM( 62 ) * + 27 / - + 11 THEN + 99 + - 93 END * - 61 * + 14 + + + 0 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-946
SELECT - 26 + + COUNT ( * ) + CASE + 90 WHEN COALESCE ( + 75, - 35 / + COUNT ( * ) - - 19, 49 ) * + SUM ( 62 ) * + 27 / - + 11 THEN + 99 + - 93 END * - 61 * + 14 + + + 0 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-947
SELECT DISTINCT 96 * - 4 AS col1, 90 - + COUNT( ( - 68 ) ) col0
----
-384
89

skipif mysql # not compatible
query II rowsort label-947
SELECT DISTINCT 96 * - 4 AS col1, 90 - + COUNT ( ( - 68 ) ) col0
----
-384
89

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

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

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

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

query I rowsort
SELECT 74 + 2 + + 24
----
100

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

skipif mysql # not compatible
query I rowsort label-951
SELECT CAST ( COUNT ( * ) AS INTEGER ) * + 93
----
93

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

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

query I rowsort
SELECT 25 * - 87
----
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT DISTINCT - MAX( + - 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT - MAX ( + - 17 ) AS col1
----
17

query I rowsort
SELECT 41 * + + 47 col2
----
1927

query I rowsort
SELECT ALL + 43 * - + 36 + - 50
----
-1598

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT ALL + 4 * 75 + - - 25 + - 9 + - 40 / CASE - MAX( + 23 ) WHEN + 66 + + ( + 96 ) - + CASE COUNT( * ) WHEN ( 28 ) * - COUNT( * ) / - COUNT( * ) THEN - - 32 ELSE NULL END THEN NULL WHEN 27 * 73 * - 70 THEN + - 81 END + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL + 4 * 75 + - - 25 + - 9 + - 40 / CASE - MAX ( + 23 ) WHEN + 66 + + ( + 96 ) - + CASE COUNT ( * ) WHEN ( 28 ) * - COUNT ( * ) / - COUNT ( * ) THEN - - 32 ELSE NULL END THEN NULL WHEN 27 * 73 * - 70 THEN + - 81 END + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT - 16 + - COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-958
SELECT - 16 + - COUNT ( * ) AS col0
----
-17

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

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

query I rowsort
SELECT ( + 68 ) + 11 AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-961
SELECT + 8 * - CASE + 65 WHEN + 15 * 99 - + 16 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - COUNT( * ) END
----
8

skipif mysql # not compatible
query I rowsort label-961
SELECT + 8 * - CASE + 65 WHEN + 15 * 99 - + 16 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - COUNT ( * ) END
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT + 43 * 38 + - COUNT( * ) * + 2 AS col0
----
1632

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT + 43 * 38 + - COUNT ( * ) * + 2 AS col0
----
1632

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-963
SELECT MAX( ALL - + COALESCE ( - + 8, + 10 ) ) * - + MIN( DISTINCT 27 ) * + 66 + - + 75 + + 82 - - 76 DIV + 50 - + - COUNT( * ) + - 56 AS col2, - 97 - 65 + - + 52 * - COUNT( * ) AS col0
----
-14303
-110

skipif mysql # not compatible
query II rowsort label-963
SELECT MAX ( ALL - + COALESCE ( - + 8, + 10 ) ) * - + MIN ( DISTINCT 27 ) * + 66 + - + 75 + + 82 - - 76 / + 50 - + - COUNT ( * ) + - 56 AS col2, - 97 - 65 + - + 52 * - COUNT ( * ) AS col0
----
-14303
-110

query I rowsort
SELECT ALL - + 51 * + 48
----
-2448

query I rowsort
SELECT + 65 + - - 81
----
146

query I rowsort
SELECT ALL - 99 - 19
----
-118

query I rowsort
SELECT ALL 18 - - 39 - + + 36 + + 69 * 54 * 10 + - - 92 AS col1
----
37373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-968
SELECT - - 28 * 50 * - 19 / - MIN( ALL - - 99 ) / - MIN( 71 ) - + CAST( NULL AS SIGNED ) * + + 0 + - 62 * - - NULLIF ( + - 14, - 51 + + + 88 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-968
SELECT - - 28 * 50 * - 19 / - MIN ( ALL - - 99 ) / - MIN ( 71 ) - + CAST ( NULL AS INTEGER ) * + + 0 + - 62 * - - NULLIF ( + - 14, - 51 + + + 88 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT - + MAX( DISTINCT + + 98 ) * + + 91 + - + 97 * - 7 AS col2
----
-8239

skipif mysql # not compatible
query I rowsort label-969
SELECT - + MAX ( DISTINCT + + 98 ) * + + 91 + - + 97 * - 7 AS col2
----
-8239

query I rowsort
SELECT - ( 17 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT + 29 + - 8 * + + COUNT( * ) + + 54
----
75

skipif mysql # not compatible
query I rowsort label-971
SELECT + 29 + - 8 * + + COUNT ( * ) + + 54
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-972
SELECT + COUNT( * ), + CAST( NULL AS SIGNED ) - + + COUNT( * ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-972
SELECT + COUNT ( * ), + CAST ( NULL AS INTEGER ) - + + COUNT ( * ) AS col0
----
1
NULL

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

skipif mysql # not compatible
query I rowsort label-973
SELECT + + 72 / + CAST ( NULL AS INTEGER ) + - CAST ( 42 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 67 * + 26 AS col1
----
1742

onlyif mysql # DIV for integer division: 
query II rowsort label-975
SELECT - 78 AS col2, 49 DIV + - NULLIF ( 9, + 62 ) col0
----
-78
-5

skipif mysql # not compatible
query II rowsort label-975
SELECT - 78 AS col2, 49 / + - NULLIF ( 9, + 62 ) col0
----
-78
-5

query II rowsort
SELECT 55, - 74 col0
----
55
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT ALL NULLIF ( - MIN( ALL - ( + 32 ) ), + 10 + + 25 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL NULLIF ( - MIN ( ALL - ( + 32 ) ), + 10 + + 25 ) AS col2
----
32

query I rowsort
SELECT ALL - 91 + + + 72
----
-19

query I rowsort
SELECT ALL ( 87 ) * - 66
----
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL COUNT( * ) * COALESCE ( 47, - 43 * + + 48 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL COUNT ( * ) * COALESCE ( 47, - 43 * + + 48 ) AS col1
----
47

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

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT 95 + - + 11 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 24 + 5 * 55
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT DISTINCT 30 + + CASE 42 WHEN + 86 * - 60 + - COALESCE ( 67, - MIN( - - 83 ) / + 81 / + 13 ) THEN NULL ELSE + - COUNT( * ) END * - 23
----
53

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT 30 + + CASE 42 WHEN + 86 * - 60 + - COALESCE ( 67, - MIN ( - - 83 ) / + 81 / + 13 ) THEN NULL ELSE + - COUNT ( * ) END * - 23
----
53

query I rowsort
SELECT + 0 * + 19
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-985
SELECT + 88 + + 84 + + 70 * 2 DIV + 7 AS col2
----
192

skipif mysql # not compatible
query I rowsort label-985
SELECT + 88 + + 84 + + 70 * 2 / + 7 AS col2
----
192

onlyif mysql # aggregate syntax: 
query II rowsort label-986
SELECT - 94 - ( ( SUM( - - 17 ) ) ) + + 87 AS col2, 13 + 60 * ( - 67 ) col1
----
-24
-4007

skipif mysql # not compatible
query II rowsort label-986
SELECT - 94 - ( ( SUM ( - - 17 ) ) ) + + 87 AS col2, 13 + 60 * ( - 67 ) col1
----
-24
-4007

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-987
SELECT + 64 + + + 51 col1, 86 * + + CAST( + 56 AS SIGNED ) AS col0
----
115
4816

skipif mysql # not compatible
query II rowsort label-987
SELECT + 64 + + + 51 col1, 86 * + + CAST ( + 56 AS INTEGER ) AS col0
----
115
4816

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT ALL 76 + - 18 + ( MAX( - 73 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL 76 + - 18 + ( MAX ( - 73 ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT - CASE 30 WHEN + SUM( ALL 81 ) - + COUNT( * ) THEN - + 48 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT - CASE 30 WHEN + SUM ( ALL 81 ) - + COUNT ( * ) THEN - + 48 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-990
SELECT ALL 68 AS col0, + 94 * - ( - COUNT( * ) ) * - 58 + - COALESCE ( 92, + - 51, - 79 * + 86 * 64 ) AS col0
----
68
-5544

skipif mysql # not compatible
query II rowsort label-990
SELECT ALL 68 AS col0, + 94 * - ( - COUNT ( * ) ) * - 58 + - COALESCE ( 92, + - 51, - 79 * + 86 * 64 ) AS col0
----
68
-5544

query I rowsort
SELECT ( - ( 55 ) )
----
-55

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

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL 22 / - + COUNT ( * )
----
-22

query I rowsort
SELECT DISTINCT + 16 * 81 + - - NULLIF ( - ( - 47 ), 82 ) AS col1
----
1343

query II rowsort
SELECT + - 18 AS col0, - ( - 94 ) + + ( - 35 )
----
-18
59

query I rowsort
SELECT + CASE - 95 WHEN 35 + - 33 + - 69 THEN NULL ELSE + - 40 + - 20 + + 10 END
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-996
SELECT CAST( ( + + 78 ) AS SIGNED ) * - 64 + + + 84
----
-4908

skipif mysql # not compatible
query I rowsort label-996
SELECT CAST ( ( + + 78 ) AS INTEGER ) * - 64 + + + 84
----
-4908

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-998
SELECT ALL - 45 * 99 * 84 * - CAST( NULL AS SIGNED ) * - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL - 45 * 99 * 84 * - CAST ( NULL AS INTEGER ) * - 5 AS col0
----
NULL

query I rowsort
SELECT ALL + 97 * - 69 + - 40 - - NULLIF ( - + 89, 34 ) AS col1
----
-6822

query I rowsort
SELECT DISTINCT + NULLIF ( 94, - 88 + - 53 / - 21 - 97 ) AS col2
----
94

query I rowsort
SELECT - 72 * + COALESCE ( 95, 57 ) AS col0
----
-6840

query II rowsort
SELECT - 46 col0, - 13
----
-46
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT - + 82 * - COUNT( * ) + 43
----
125

skipif mysql # not compatible
query I rowsort label-1004
SELECT - + 82 * - COUNT ( * ) + 43
----
125

query I rowsort
SELECT - + 76 * - + 27 AS col1
----
2052

query I rowsort
SELECT ALL + - 92 col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT ALL + 46 * 22 + - + COUNT( * )
----
1011

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL + 46 * 22 + - + COUNT ( * )
----
1011

query I rowsort
SELECT - + 32 - + - 37 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1009
SELECT ALL - + 15 DIV + 69 * + COUNT( * ) * + 38 * + 39 + - + 86, CAST( + COUNT( * ) AS SIGNED ) * - 8 + - 14 DIV - - 13 + + 48 * - ( - 47 ) AS col0
----
-86
2247

skipif mysql # not compatible
query II rowsort label-1009
SELECT ALL - + 15 / + 69 * + COUNT ( * ) * + 38 * + 39 + - + 86, CAST ( + COUNT ( * ) AS INTEGER ) * - 8 + - 14 / - - 13 + + 48 * - ( - 47 ) AS col0
----
-86
2247

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT DISTINCT + NULLIF ( + 79, - 36 ) * + COUNT( ALL 71 ) + - 94 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT + NULLIF ( + 79, - 36 ) * + COUNT ( ALL 71 ) + - 94 AS col2
----
-15

query I rowsort
SELECT ALL 21 * + + 90 + + ( - 37 )
----
1853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1013
SELECT ALL - NULLIF ( COALESCE ( - CASE 20 WHEN - + 60 * - NULLIF ( - 72, 19 + + AVG ( - + 7 ) ) * + COUNT( * ) * - COUNT( * ) + + CAST( NULL AS SIGNED ) - + + 49 THEN - - COUNT( * ) WHEN - SUM( + - 57 ) * + 57 + + 21 + + 31 THEN + 36 END, + MIN( ALL 31 ) + - - COUNT( * ) * 19 ), + CAST( - - 43 AS SIGNED ) ) * + - 53 + - 4 * COUNT( * ) + ( MAX( ALL + 53 ) ) - + 73 * + - ( + 24 ) + 98 - - 59 + + ( - 95 ) AS col1, 48 AS col1
----
4513
48

skipif mysql # not compatible
query II rowsort label-1013
SELECT ALL - NULLIF ( COALESCE ( - CASE 20 WHEN - + 60 * - NULLIF ( - 72, 19 + + AVG ( - + 7 ) ) * + COUNT ( * ) * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) - + + 49 THEN - - COUNT ( * ) WHEN - SUM ( + - 57 ) * + 57 + + 21 + + 31 THEN + 36 END, + MIN ( ALL 31 ) + - - COUNT ( * ) * 19 ), + CAST ( - - 43 AS INTEGER ) ) * + - 53 + - 4 * COUNT ( * ) + ( MAX ( ALL + 53 ) ) - + 73 * + - ( + 24 ) + 98 - - 59 + + ( - 95 ) AS col1, 48 AS col1
----
4513
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT + 24 + - CASE - 98 WHEN + ( - MIN( 61 ) ) THEN + - 51 / + 10 + 70 WHEN ( 2 ) THEN + 51 * + - 88 END * 60 * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT + 24 + - CASE - 98 WHEN + ( - MIN ( 61 ) ) THEN + - 51 / + 10 + 70 WHEN ( 2 ) THEN + 51 * + - 88 END * 60 * - 90
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT DISTINCT CASE + + 40 WHEN - 20 / + COALESCE ( + ( + 67 ), - - 6 ) * + + NULLIF ( - - COUNT( - 50 ), 56 * - - ( 80 ) ) THEN 38 * + + 76 WHEN + - 81 THEN - 46 * - 56 * + 15 + - 72 * COUNT( * ) * + 74 ELSE NULL END + - COUNT( * ) * NULLIF ( - COUNT( * ), - 50 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT CASE + + 40 WHEN - 20 / + COALESCE ( + ( + 67 ), - - 6 ) * + + NULLIF ( - - COUNT ( - 50 ), 56 * - - ( 80 ) ) THEN 38 * + + 76 WHEN + - 81 THEN - 46 * - 56 * + 15 + - 72 * COUNT ( * ) * + 74 ELSE NULL END + - COUNT ( * ) * NULLIF ( - COUNT ( * ), - 50 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1019
SELECT ALL 35 * - ( + + COUNT( * ) ) * - 80 * + 42 AS col1, - 74 + - 32 AS col1
----
117600
-106

skipif mysql # not compatible
query II rowsort label-1019
SELECT ALL 35 * - ( + + COUNT ( * ) ) * - 80 * + 42 AS col1, - 74 + - 32 AS col1
----
117600
-106

query I rowsort
SELECT DISTINCT + 43 - + 42 AS col2
----
1

query I rowsort
SELECT - ( - 32 ) AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1022
SELECT ALL AVG ( - CAST( NULL AS SIGNED ) ) AS col1, + 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-1022
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) AS col1, + 84
----
NULL
84

onlyif mysql # aggregate syntax: 
query II rowsort label-1023
SELECT DISTINCT NULLIF ( 56, + 42 + - 43 ) - - NULLIF ( - COUNT( * ), + 85 ) AS col2, CASE 85 WHEN 32 THEN - 97 + - 94 END + - - 54 AS col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-1023
SELECT DISTINCT NULLIF ( 56, + 42 + - 43 ) - - NULLIF ( - COUNT ( * ), + 85 ) AS col2, CASE 85 WHEN 32 THEN - 97 + - 94 END + - - 54 AS col0
----
55
NULL

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

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL - MAX ( - 34 )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1025
SELECT - + COALESCE ( CASE - 45 WHEN - - 78 THEN NULL WHEN + NULLIF ( 48, + 5 + + 87 ) THEN - - 29 * + CAST( NULL AS SIGNED ) + - 89 * + + 13 WHEN + NULLIF ( - - CAST( - 43 AS SIGNED ), + 87 * 42 + - 26 ) THEN NULL ELSE NULL END, + + 38 ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-1025
SELECT - + COALESCE ( CASE - 45 WHEN - - 78 THEN NULL WHEN + NULLIF ( 48, + 5 + + 87 ) THEN - - 29 * + CAST ( NULL AS INTEGER ) + - 89 * + + 13 WHEN + NULLIF ( - - CAST ( - 43 AS INTEGER ), + 87 * 42 + - 26 ) THEN NULL ELSE NULL END, + + 38 ) col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-1026
SELECT + SUM( ALL - 59 ) AS col2, - COUNT( * )
----
-59
-1

skipif mysql # not compatible
query II rowsort label-1026
SELECT + SUM ( ALL - 59 ) AS col2, - COUNT ( * )
----
-59
-1

query I rowsort
SELECT - - 72 * + 37 - + 15 AS col1
----
2649

query I rowsort
SELECT DISTINCT + + ( - NULLIF ( 8, 91 ) ) col0
----
-8

query I rowsort
SELECT + 57 - 61 - + + 36 * 53 * - 55 + + 87 + + ( - 45 ) AS col0
----
104978

onlyif mysql # DIV for integer division: 
query I rowsort label-1030
SELECT DISTINCT 35 DIV - 82 + + 7
----
7

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT 35 / - 82 + + 7
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1031
SELECT + 76 DIV - - 39 - + 72 * + 96
----
-6911

skipif mysql # not compatible
query I rowsort label-1031
SELECT + 76 / - - 39 - + 72 * + 96
----
-6911

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT - 71 * SUM( - 31 ) * - - 4 + - - 31 * - 53 * - 72
----
127100

skipif mysql # not compatible
query I rowsort label-1032
SELECT - 71 * SUM ( - 31 ) * - - 4 + - - 31 * - 53 * - 72
----
127100

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1034
SELECT ALL + - CASE - 89 WHEN 28 THEN NULL WHEN + + 44 THEN NULL WHEN + - 75 * - - SUM( DISTINCT 72 ) + + - 78 THEN 44 END + + 54 * + - CASE CAST( - + 42 AS SIGNED ) WHEN - 58 * - 45 THEN NULL WHEN - CAST( COUNT( * ) AS SIGNED ) THEN - 64 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL + - CASE - 89 WHEN 28 THEN NULL WHEN + + 44 THEN NULL WHEN + - 75 * - - SUM ( DISTINCT 72 ) + + - 78 THEN 44 END + + 54 * + - CASE CAST ( - + 42 AS INTEGER ) WHEN - 58 * - 45 THEN NULL WHEN - CAST ( COUNT ( * ) AS INTEGER ) THEN - 64 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL 20 * + 26 AS col2, - 10 * + - 9 * + 42 * - 99 - + 16
----
520
-374236

query I rowsort
SELECT DISTINCT 24 * - + 54 AS col2
----
-1296

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

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

query I rowsort
SELECT ALL - NULLIF ( + ( - + 34 ), - NULLIF ( - 26, + 79 ) ) AS col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1039
SELECT ALL - 65 + + - 79 + + MAX( - 9 ) * - ( 25 ) DIV COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL - 65 + + - 79 + + MAX ( - 9 ) * - ( 25 ) / COUNT ( * ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1040
SELECT ALL 19 + 54 * + COUNT( * ) AS col2, 64 + - 47
----
73
17

skipif mysql # not compatible
query II rowsort label-1040
SELECT ALL 19 + 54 * + COUNT ( * ) AS col2, 64 + - 47
----
73
17

query I rowsort
SELECT DISTINCT 78 + 66 AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT ALL - 73 + + CASE + 87 WHEN + 7 * - COUNT( * ) THEN - 57 * 30 WHEN - - 0 THEN + 81 * AVG ( - ( - ( 27 ) ) ) * + NULLIF ( + 45, - 39 + + COUNT( * ) * - + COUNT( * ) + + 9 ) / - - 3 + - COUNT( * ) WHEN - + 95 THEN - + COUNT( * ) * + - 45 - ( - + 57 ) WHEN - 50 + + - 68 THEN MAX( + 22 ) * 3 + - COUNT( 11 ) ELSE NULL END * - - 79 / + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL - 73 + + CASE + 87 WHEN + 7 * - COUNT ( * ) THEN - 57 * 30 WHEN - - 0 THEN + 81 * AVG ( - ( - ( 27 ) ) ) * + NULLIF ( + 45, - 39 + + COUNT ( * ) * - + COUNT ( * ) + + 9 ) / - - 3 + - COUNT ( * ) WHEN - + 95 THEN - + COUNT ( * ) * + - 45 - ( - + 57 ) WHEN - 50 + + - 68 THEN MAX ( + 22 ) * 3 + - COUNT ( 11 ) ELSE NULL END * - - 79 / + 96 AS col2
----
NULL

query II rowsort
SELECT 9 + + ( - - 34 ), + 27 + + + 19 + 3 AS col1
----
43
49

query I rowsort
SELECT 16 * 69 AS col2
----
1104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1045
SELECT - ( 92 ) * 1 + - CAST( NULL AS SIGNED ) / 94 + 61 * 44 + + - 22 * CAST( + 15 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1045
SELECT - ( 92 ) * 1 + - CAST ( NULL AS INTEGER ) / 94 + 61 * 44 + + - 22 * CAST ( + 15 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1046
SELECT DISTINCT 38 AS col2, ( COALESCE ( - 25, + 38 DIV - - 90 * + MIN( - 1 ), - 41 + + - 73 + - - COUNT( * ) ) )
----
38
-25

skipif mysql # not compatible
query II rowsort label-1046
SELECT DISTINCT 38 AS col2, ( COALESCE ( - 25, + 38 / - - 90 * + MIN ( - 1 ), - 41 + + - 73 + - - COUNT ( * ) ) )
----
38
-25

query II rowsort
SELECT ALL 90 AS col1, 41 AS col2
----
90
41

query I rowsort
SELECT 99 * - - 13
----
1287

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT 5 + - COUNT( * ) + - MAX( ALL + 22 ) + + - 1 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1049
SELECT 5 + - COUNT ( * ) + - MAX ( ALL + 22 ) + + - 1 AS col2
----
-19

query I rowsort
SELECT DISTINCT 12 * - 85 AS col0
----
-1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1051
SELECT 18 DIV - MAX( + 1 ) AS col0, 40
----
-18
40

skipif mysql # not compatible
query II rowsort label-1051
SELECT 18 / - MAX ( + 1 ) AS col0, 40
----
-18
40

query II rowsort
SELECT 23 AS col0, 53
----
23
53

onlyif mysql # DIV for integer division: 
query II rowsort label-1053
SELECT ALL - 11 - 56 * + - 83 col2, 70 DIV - 16
----
4637
-4

skipif mysql # not compatible
query II rowsort label-1053
SELECT ALL - 11 - 56 * + - 83 col2, 70 / - 16
----
4637
-4

query I rowsort
SELECT 40 + - 83
----
-43

query I rowsort
SELECT 14 * - 17 AS col0
----
-238

query II rowsort
SELECT ALL 22 col1, - 51 AS col0
----
22
-51

query I rowsort
SELECT 30 + - ( + 2 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1058
SELECT 34 DIV + - 94 * - 77
----
0

skipif mysql # not compatible
query I rowsort label-1058
SELECT 34 / + - 94 * - 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1059
SELECT + 5 + + COALESCE ( + - NULLIF ( COALESCE ( + NULLIF ( - ( + COUNT( * ) ), + 58 * - 81 ), COUNT( * ) ), + - CAST( NULL AS SIGNED ) ), - 67, - + 35 * - + COUNT( * ) * + 96 ) + - 22 col2
----
-16

skipif mysql # not compatible
query I rowsort label-1059
SELECT + 5 + + COALESCE ( + - NULLIF ( COALESCE ( + NULLIF ( - ( + COUNT ( * ) ), + 58 * - 81 ), COUNT ( * ) ), + - CAST ( NULL AS INTEGER ) ), - 67, - + 35 * - + COUNT ( * ) * + 96 ) + - 22 col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1060
SELECT DISTINCT + - COUNT( + 8 ) DIV - 6 + + 92 * 98 AS col2
----
9016

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT + - COUNT ( + 8 ) / - 6 + + 92 * 98 AS col2
----
9016

query II rowsort
SELECT - 7 AS col1, - 21
----
-7
-21

query II rowsort
SELECT DISTINCT - 16, - ( + 59 ) + + - 78 col1
----
-16
-137

query II rowsort
SELECT DISTINCT - - 10 AS col1, + 4 * 42 AS col2
----
10
168

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT - MAX( + 6 ) + - - NULLIF ( - NULLIF ( - 15, + 95 ), - 32 ) * NULLIF ( - - 49, - - COUNT( * ) ) AS col2
----
729

skipif mysql # not compatible
query I rowsort label-1064
SELECT - MAX ( + 6 ) + - - NULLIF ( - NULLIF ( - 15, + 95 ), - 32 ) * NULLIF ( - - 49, - - COUNT ( * ) ) AS col2
----
729

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1065
SELECT + + 10 * + 74 + + + 52 + + + 95 * - COUNT( * ) * + 22 AS col1, - 0 DIV COALESCE ( 66, - COUNT( ALL 50 ) ) * COALESCE ( + ( - 38 ), - - 51 ) * 78 + - + ( 39 ) + - NULLIF ( 0, + COUNT( * ) ) DIV - - 62 * - 44 AS col1
----
-1298
-39

skipif mysql # not compatible
query II rowsort label-1065
SELECT + + 10 * + 74 + + + 52 + + + 95 * - COUNT ( * ) * + 22 AS col1, - 0 / COALESCE ( 66, - COUNT ( ALL 50 ) ) * COALESCE ( + ( - 38 ), - - 51 ) * 78 + - + ( 39 ) + - NULLIF ( 0, + COUNT ( * ) ) / - - 62 * - 44 AS col1
----
-1298
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1066
SELECT - ( 23 ) * + - 54, - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2
----
1242
NULL

skipif mysql # not compatible
query II rowsort label-1066
SELECT - ( 23 ) * + - 54, - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2
----
1242
NULL

query I rowsort
SELECT ALL 51 + - 10
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-1068
SELECT COUNT( * ), 7 + - ( 59 ) * 28 AS col0
----
1
-1645

skipif mysql # not compatible
query II rowsort label-1068
SELECT COUNT ( * ), 7 + - ( 59 ) * 28 AS col0
----
1
-1645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1069
SELECT DISTINCT 69 + - - COUNT( * ) * 38 + - COALESCE ( + + ( - 64 ), + - CAST( + 98 AS SIGNED ) ) AS col0, COUNT( * ) + + - COUNT( * )
----
171
0

skipif mysql # not compatible
query II rowsort label-1069
SELECT DISTINCT 69 + - - COUNT ( * ) * 38 + - COALESCE ( + + ( - 64 ), + - CAST ( + 98 AS INTEGER ) ) AS col0, COUNT ( * ) + + - COUNT ( * )
----
171
0

query I rowsort
SELECT DISTINCT - 69 + - 28
----
-97

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1073
SELECT DISTINCT 36 + - 72 + + - CASE + 58 WHEN - + SUM( DISTINCT + 16 ) THEN CAST( 12 AS SIGNED ) ELSE NULL END / - - SUM( ALL + 28 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT 36 + - 72 + + - CASE + 58 WHEN - + SUM ( DISTINCT + 16 ) THEN CAST ( 12 AS INTEGER ) ELSE NULL END / - - SUM ( ALL + 28 ) AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( - - 95, + 91 ) + - ( + 6 ) + - 36 AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-1075
SELECT ( 73 ) * 43 * - - 56 AS col2, + ( - COUNT( * ) ) + - 39 AS col0
----
175784
-40

skipif mysql # not compatible
query II rowsort label-1075
SELECT ( 73 ) * 43 * - - 56 AS col2, + ( - COUNT ( * ) ) + - 39 AS col0
----
175784
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1076
SELECT ALL COUNT( * ) * - COUNT( * ), 23 * ( 35 ) + + 48 AS col1
----
-1
853

skipif mysql # not compatible
query II rowsort label-1076
SELECT ALL COUNT ( * ) * - COUNT ( * ), 23 * ( 35 ) + + 48 AS col1
----
-1
853

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT DISTINCT 7 * + - 32 * + MAX( DISTINCT 18 ) AS col0
----
-4032

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT 7 * + - 32 * + MAX ( DISTINCT 18 ) AS col0
----
-4032

query I rowsort
SELECT 35 * + + 59 AS col1
----
2065

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT COUNT( * ) - - - 70 + - - 97 + 49 - - - 43 + ( - 29 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1079
SELECT COUNT ( * ) - - - 70 + - - 97 + 49 - - - 43 + ( - 29 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT DISTINCT COALESCE ( - ( + 34 ), - 87 ) * - 20 - - COUNT( * ) AS col1
----
681

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT COALESCE ( - ( + 34 ), - 87 ) * - 20 - - COUNT ( * ) AS col1
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT DISTINCT 71 * - 34 * + COUNT( * ) AS col0
----
-2414

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT 71 * - 34 * + COUNT ( * ) AS col0
----
-2414

query I rowsort
SELECT ALL NULLIF ( + + 66, 0 ) - 55 + - 22 * - 0
----
11

query I rowsort
SELECT DISTINCT 64 - - 88 AS col1
----
152

onlyif mysql # DIV for integer division: 
query II rowsort label-1084
SELECT 8 + - - 51 - + 92 DIV + + 22 col1, 3 DIV 59 AS col1
----
55
0

skipif mysql # not compatible
query II rowsort label-1084
SELECT 8 + - - 51 - + 92 / + + 22 col1, 3 / 59 AS col1
----
55
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT 53 - - 40 * - COALESCE ( ( COALESCE ( - + COUNT( * ), 82 + - 12, - - 49 ) ), + - 38 * 83 * 12 ) + 67 AS col1
----
160

skipif mysql # not compatible
query I rowsort label-1085
SELECT 53 - - 40 * - COALESCE ( ( COALESCE ( - + COUNT ( * ), 82 + - 12, - - 49 ) ), + - 38 * 83 * 12 ) + 67 AS col1
----
160

query I rowsort
SELECT COALESCE ( + 46, 80 + 69 * + 56 + - 6 ) * 3
----
138

query I rowsort
SELECT 60 * + + 15
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT 43 + NULLIF ( + 45, + 67 + + 13 + - 78 ) + - + MIN( 45 )
----
43

skipif mysql # not compatible
query I rowsort label-1088
SELECT 43 + NULLIF ( + 45, + 67 + + 13 + - 78 ) + - + MIN ( 45 )
----
43

query I rowsort
SELECT ALL + 27 * - 37 AS col0
----
-999

onlyif mysql # aggregate syntax: 
query II rowsort label-1090
SELECT - - 21 * - + 41 * + - 35 * - 97, - 20 * + 59 * - SUM( DISTINCT 30 ) + - - 35 col0
----
-2923095
35435

skipif mysql # not compatible
query II rowsort label-1090
SELECT - - 21 * - + 41 * + - 35 * - 97, - 20 * + 59 * - SUM ( DISTINCT 30 ) + - - 35 col0
----
-2923095
35435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1091
SELECT ALL - 16 * + - CAST( + MAX( DISTINCT - 8 ) AS SIGNED ) col1
----
-128

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL - 16 * + - CAST ( + MAX ( DISTINCT - 8 ) AS INTEGER ) col1
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1092
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), - + NULLIF ( 92, 98 ) * + 94 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), - + NULLIF ( 92, 98 ) * + 94 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT DISTINCT + MIN( ALL - + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT + MIN ( ALL - + 94 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT - COALESCE ( - 15, - COUNT( DISTINCT - 56 ), - - 25 + - COUNT( * ) * - ( - 15 ) * - 61 )
----
15

skipif mysql # not compatible
query I rowsort label-1094
SELECT - COALESCE ( - 15, - COUNT ( DISTINCT - 56 ), - - 25 + - COUNT ( * ) * - ( - 15 ) * - 61 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT ALL + 66 * - MAX( ALL 56 ) col0
----
-3696

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL + 66 * - MAX ( ALL 56 ) col0
----
-3696

query I rowsort
SELECT - 39 * + 95 + - - 21 - + + 70
----
-3754

query I rowsort
SELECT DISTINCT + + 50 + 65 + + 50
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-1098
SELECT ALL - 75 + - + 88 DIV - 40
----
-73

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL - 75 + - + 88 / - 40
----
-73

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1100
SELECT - + 45 + - + COUNT( * ), ( + CASE - 7 WHEN COUNT( DISTINCT + + 85 ) * - - 79 + - + 14 + - 55 + + - 66 * - 76 + + 13 * + 52 THEN + 16 END ) AS col2
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-1100
SELECT - + 45 + - + COUNT ( * ), ( + CASE - 7 WHEN COUNT ( DISTINCT + + 85 ) * - - 79 + - + 14 + - 55 + + - 66 * - 76 + + 13 * + 52 THEN + 16 END ) AS col2
----
-46
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT ALL - + 42 * + COUNT( * ) + + 96 - - 60 * + - 52 * ( + COUNT( * ) ) * - - 46
----
-143466

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL - + 42 * + COUNT ( * ) + + 96 - - 60 * + - 52 * ( + COUNT ( * ) ) * - - 46
----
-143466

query I rowsort
SELECT ( + 38 ) * 46 * + + 9 + 47 * - 11 * 30 - - - 51
----
171

query I rowsort
SELECT ALL + 15 * 17 AS col2
----
255

query I rowsort
SELECT + 82 + + 98
----
180

query I rowsort
SELECT - ( - 8 ) * + 25
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1107
SELECT CAST( - CASE - 34 WHEN COALESCE ( - 50, - - COUNT( * ) ) THEN + + ( + 21 ) END AS SIGNED ) * - - 2 + - + 33 + - - 54 * + 82 - + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1107
SELECT CAST ( - CASE - 34 WHEN COALESCE ( - 50, - - COUNT ( * ) ) THEN + + ( + 21 ) END AS INTEGER ) * - - 2 + - + 33 + - - 54 * + 82 - + - 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1108
SELECT + CASE + 19 WHEN + - 74 / - + 92 / 78 - - + AVG ( - 57 ) - + + ( - + 16 ) THEN - - 53 * - SUM( + + NULLIF ( + 14, + + 0 + 43 ) ) * + + CAST( 10 AS SIGNED ) * - COALESCE ( 64, - 79 - + - 39 + + + 42 ) - NULLIF ( - 38, 13 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT + CASE + 19 WHEN + - 74 / - + 92 / 78 - - + AVG ( - 57 ) - + + ( - + 16 ) THEN - - 53 * - SUM ( + + NULLIF ( + 14, + + 0 + 43 ) ) * + + CAST ( 10 AS INTEGER ) * - COALESCE ( 64, - 79 - + - 39 + + + 42 ) - NULLIF ( - 38, 13 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT - 78 * - 27 * - 21 + + - 21 + - - COUNT( * ) * - 15
----
-44262

skipif mysql # not compatible
query I rowsort label-1109
SELECT - 78 * - 27 * - 21 + + - 21 + - - COUNT ( * ) * - 15
----
-44262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1110
SELECT DISTINCT + CAST( 67 AS SIGNED ) col0
----
67

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT + CAST ( 67 AS INTEGER ) col0
----
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT + COUNT( * ) * - + MAX( DISTINCT + 6 ) * - 56
----
336

skipif mysql # not compatible
query I rowsort label-1112
SELECT + COUNT ( * ) * - + MAX ( DISTINCT + 6 ) * - 56
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT - 33 * + + COALESCE ( - + COUNT( DISTINCT + 90 ), 59 ) + - MIN( 11 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1113
SELECT - 33 * + + COALESCE ( - + COUNT ( DISTINCT + 90 ), 59 ) + - MIN ( 11 ) AS col2
----
22

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1115
SELECT ALL 76 * CASE - - 97 WHEN + 34 THEN + - COUNT( * ) + - MIN( + + 49 ) - - + CASE WHEN + 12 IS NULL THEN 96 END + - - 84 + + MIN( + 21 ) * 79 / 78 * + + 72 * 54 WHEN + - 51 THEN NULL ELSE NULL END / + 36 AS col0, + 18 + - - 60 AS col0
----
NULL
78

skipif mysql # not compatible
query II rowsort label-1115
SELECT ALL 76 * CASE - - 97 WHEN + 34 THEN + - COUNT ( * ) + - MIN ( + + 49 ) - - + CASE WHEN + 12 IS NULL THEN 96 END + - - 84 + + MIN ( + 21 ) * 79 / 78 * + + 72 * 54 WHEN + - 51 THEN NULL ELSE NULL END / + 36 AS col0, + 18 + - - 60 AS col0
----
NULL
78

onlyif mysql # DIV for integer division: 
query I rowsort label-1116
SELECT + 82 DIV + NULLIF ( + + 20, 14 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1116
SELECT + 82 / + NULLIF ( + + 20, 14 ) AS col1
----
4

query I rowsort
SELECT + 88 * 53 AS col2
----
4664

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL ( - + 41 ) * + - 6 * + COUNT( * )
----
246

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL ( - + 41 ) * + - 6 * + COUNT ( * )
----
246

query I rowsort
SELECT + 75 + 79
----
154

query I rowsort
SELECT ALL 57 + + 54
----
111

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

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

query I rowsort
SELECT ALL + 3 + - 73
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1123
SELECT ALL NULLIF ( 37, - CAST( NULL AS SIGNED ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL NULLIF ( 37, - CAST ( NULL AS INTEGER ) ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT - NULLIF ( + COUNT( * ), - 3 / - 88 + 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-1124
SELECT - NULLIF ( + COUNT ( * ), - 3 / - 88 + 46 )
----
-1

query I rowsort
SELECT + 21 + 84
----
105

query I rowsort
SELECT ALL 4 + + 48
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1127
SELECT + 86 + COALESCE ( 63 - 16, - 40 + 95 DIV + 6, SUM( ALL 73 ) - - NULLIF ( 77, + 94 * 72 ) ) AS col0
----
133

skipif mysql # not compatible
query I rowsort label-1127
SELECT + 86 + COALESCE ( 63 - 16, - 40 + 95 / + 6, SUM ( ALL 73 ) - - NULLIF ( 77, + 94 * 72 ) ) AS col0
----
133

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

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

query I rowsort
SELECT DISTINCT 9 + - 19 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT DISTINCT - CASE 22 WHEN 62 * 98 + 66 THEN + 98 / ( AVG ( DISTINCT - 84 ) ) END + - 76 * + MIN( ALL 83 / 11 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT - CASE 22 WHEN 62 * 98 + 66 THEN + 98 / ( AVG ( DISTINCT - 84 ) ) END + - 76 * + MIN ( ALL 83 / 11 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1131
SELECT DISTINCT 3 + - 8 DIV + 75
----
3

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT 3 + - 8 / + 75
----
3

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

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

query I rowsort
SELECT ALL - 41 + + 34 * - 2
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1134
SELECT 5 DIV - 83 + 97 * MIN( + 55 )
----
5335

skipif mysql # not compatible
query I rowsort label-1134
SELECT 5 / - 83 + 97 * MIN ( + 55 )
----
5335

query I rowsort
SELECT DISTINCT - 69 * - 77 AS col2
----
5313

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

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT COUNT ( * ) / + 31 + - 94 AS col2
----
-94

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1138
SELECT ALL + COUNT( * ) DIV - 14 - - 18 * 75
----
1350

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL + COUNT ( * ) / - 14 - - 18 * 75
----
1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1139
SELECT - CAST( COUNT( * ) AS SIGNED ) * - 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1139
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * - 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT + MAX( ALL + 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1140
SELECT + MAX ( ALL + 48 ) AS col0
----
48

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT ALL 17 DIV 67 - 10 DIV COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL 17 / 67 - 10 / COUNT ( * )
----
-10

query I rowsort
SELECT - 66 * - 41 col0
----
2706

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT DISTINCT - ( COUNT( ALL - 72 ) ) * - MIN( + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT - ( COUNT ( ALL - 72 ) ) * - MIN ( + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT - 1 * - MAX( 95 )
----
95

skipif mysql # not compatible
query I rowsort label-1145
SELECT - 1 * - MAX ( 95 )
----
95

query I rowsort
SELECT DISTINCT 71 * 86
----
6106

query I rowsort
SELECT - 48 * 37 + 96
----
-1680

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

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

query I rowsort
SELECT DISTINCT + 34 * 61
----
2074

query I rowsort
SELECT ALL + CASE WHEN + AVG ( ALL - ( 31 ) ) IS NOT NULL THEN ( + 89 ) * 6 END
----
534

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

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

query I rowsort
SELECT + 47 * + 9 AS col0
----
423

onlyif mysql # DIV for integer division: 
query I rowsort label-1153
SELECT - 58 - 20 DIV - 64
----
-58

skipif mysql # not compatible
query I rowsort label-1153
SELECT - 58 - 20 / - 64
----
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT DISTINCT + MAX( DISTINCT 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT + MAX ( DISTINCT 5 ) AS col1
----
5

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

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) * 63 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1157
SELECT DISTINCT 5 + 62 DIV 7 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT 5 + 62 / 7 AS col0
----
13

query I rowsort
SELECT 53 * 76 + 50
----
4078

query I rowsort
SELECT ALL - 17 + - 48 col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT ALL - COUNT( * ) + - SUM( + 36 ) * + 39
----
-1405

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL - COUNT ( * ) + - SUM ( + 36 ) * + 39
----
-1405

query I rowsort
SELECT ALL 98 + 35
----
133

query I rowsort
SELECT DISTINCT 57 * - 33 AS col0
----
-1881

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT COUNT( + 68 )
----
1

skipif mysql # not compatible
query I rowsort label-1163
SELECT COUNT ( + 68 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT 86 DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-1164
SELECT 86 / 47
----
1

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

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL 90 + - COUNT ( * ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT ALL - CASE 60 WHEN + COUNT( * ) + - 74 THEN 86 ELSE NULL END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL - CASE 60 WHEN + COUNT ( * ) + - 74 THEN 86 ELSE NULL END + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT - + CASE - 29 WHEN 61 * + ( ( COUNT( * ) ) * 99 ) THEN NULL ELSE - 76 END AS col2
----
76

skipif mysql # not compatible
query I rowsort label-1167
SELECT - + CASE - 29 WHEN 61 * + ( ( COUNT ( * ) ) * 99 ) THEN NULL ELSE - 76 END AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1168
SELECT 66 DIV + 7 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1168
SELECT 66 / + 7 AS col2
----
9

query I rowsort
SELECT ALL - 72 + - 60 AS col2
----
-132

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

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

query I rowsort
SELECT DISTINCT - ( 19 ) * + 89 col1
----
-1691

onlyif mysql # DIV for integer division: 
query I rowsort label-1172
SELECT + ( + 54 ) DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-1172
SELECT + ( + 54 ) / - 68
----
0

query I rowsort
SELECT - - NULLIF ( + 78, - 14 ) AS col2
----
78

query I rowsort
SELECT ALL + ( - 83 ) col0
----
-83

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

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

query I rowsort
SELECT 35 * 25 col2
----
875

query I rowsort
SELECT ALL 6 - + 82 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT SUM( DISTINCT - ( - 28 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1178
SELECT SUM ( DISTINCT - ( - 28 ) ) AS col0
----
28

query I rowsort
SELECT - ( 2 ) - - 58 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT NULLIF ( + MAX( DISTINCT 54 ), 86 * + 5 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-1180
SELECT NULLIF ( + MAX ( DISTINCT 54 ), 86 * + 5 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT 14 + NULLIF ( 70 + - ( 61 - 91 ) * ( - COUNT( * ) ), + 66 )
----
54

skipif mysql # not compatible
query I rowsort label-1181
SELECT 14 + NULLIF ( 70 + - ( 61 - 91 ) * ( - COUNT ( * ) ), + 66 )
----
54

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

skipif mysql # not compatible
query I rowsort label-1182
SELECT - SUM ( 73 ) * COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT + 65 * SUM( DISTINCT - 30 ) AS col0
----
-1950

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + 65 * SUM ( DISTINCT - 30 ) AS col0
----
-1950

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

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

query I rowsort
SELECT 18 + + 79 AS col0
----
97

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

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

query I rowsort
SELECT 25 * 9
----
225

query I rowsort
SELECT DISTINCT 48 * 17
----
816

query I rowsort
SELECT - 82 * 54 - - 88 * 95 AS col1
----
3932

query I rowsort
SELECT ALL 83 * + 9 AS col1
----
747

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1191
SELECT COUNT( * ) + + + 25 + NULLIF ( - 7, + 51 ) DIV + 39 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1191
SELECT COUNT ( * ) + + + 25 + NULLIF ( - 7, + 51 ) / + 39 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT COUNT( * ) * + COUNT( - 37 ) * 2 + - 39
----
-37

skipif mysql # not compatible
query I rowsort label-1192
SELECT COUNT ( * ) * + COUNT ( - 37 ) * 2 + - 39
----
-37

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

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

query I rowsort
SELECT 53 + + - 34 - 99 * + 58
----
-5723

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT 48 * + 70 + - COUNT( * )
----
3359

skipif mysql # not compatible
query I rowsort label-1195
SELECT 48 * + 70 + - COUNT ( * )
----
3359

query I rowsort
SELECT ALL - 21 + 57
----
36

query I rowsort
SELECT 85 * + 55 + 25 AS col2
----
4700

query I rowsort
SELECT 53 + 94
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1199
SELECT ALL + 49 + + COUNT( * ) + + CASE 73 WHEN 91 DIV - 98 + - 3 THEN NULL ELSE - 22 + - 46 * - COUNT( * ) END DIV 47
----
50

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL + 49 + + COUNT ( * ) + + CASE 73 WHEN 91 / - 98 + - 3 THEN NULL ELSE - 22 + - 46 * - COUNT ( * ) END / 47
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1200
SELECT 76 * + 76 + - 13 * + ( + CAST( NULL AS SIGNED ) * - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT 76 * + 76 + - 13 * + ( + CAST ( NULL AS INTEGER ) * - 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT DISTINCT - 4 + + - COALESCE ( + SUM( DISTINCT - 73 ), + 49 )
----
69

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT - 4 + + - COALESCE ( + SUM ( DISTINCT - 73 ), + 49 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1202
SELECT CAST( + 68 AS SIGNED ) + + 80 * COUNT( * ) AS col1
----
148

skipif mysql # not compatible
query I rowsort label-1202
SELECT CAST ( + 68 AS INTEGER ) + + 80 * COUNT ( * ) AS col1
----
148

query I rowsort
SELECT ALL - - 6 + - + 49 AS col0
----
-43

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

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

query I rowsort
SELECT DISTINCT + + 77 + - 4 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT ALL - NULLIF ( COUNT( * ), + 33 ) * + 18 col1
----
-18

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - NULLIF ( COUNT ( * ), + 33 ) * + 18 col1
----
-18

query I rowsort
SELECT ALL + 21 - + + 52 * 71
----
-3671

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

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

query I rowsort
SELECT DISTINCT - ( + 87 ) - - 61 AS col2
----
-26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT ALL + - CASE - - 16 WHEN 57 THEN NULL WHEN NULLIF ( - 47, + 64 ) THEN NULL ELSE + 0 * ( CASE 43 WHEN - 25 THEN - ( + ( CASE + 33 WHEN 19 THEN - 13 / - NULLIF ( 98, COALESCE ( + 44, + COUNT( + 41 ), - 2 / - 28 ) + + 35 ) ELSE NULL END ) ) WHEN 44 + + 66 THEN NULL END ) END - + 70 * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL + - CASE - - 16 WHEN 57 THEN NULL WHEN NULLIF ( - 47, + 64 ) THEN NULL ELSE + 0 * ( CASE 43 WHEN - 25 THEN - ( + ( CASE + 33 WHEN 19 THEN - 13 / - NULLIF ( 98, COALESCE ( + 44, + COUNT ( + 41 ), - 2 / - 28 ) + + 35 ) ELSE NULL END ) ) WHEN 44 + + 66 THEN NULL END ) END - + 70 * 96
----
NULL

query I rowsort
SELECT 49 + 47 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT 37 + - + COUNT( DISTINCT 99 ) * 13 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-1213
SELECT 37 + - + COUNT ( DISTINCT 99 ) * 13 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT - MAX( + ( 76 ) ) * 30 AS col1
----
-2280

skipif mysql # not compatible
query I rowsort label-1214
SELECT - MAX ( + ( 76 ) ) * 30 AS col1
----
-2280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1215
SELECT - ( - + 74 ) + + 26 DIV - COUNT( ALL 56 )
----
48

skipif mysql # not compatible
query I rowsort label-1215
SELECT - ( - + 74 ) + + 26 / - COUNT ( ALL 56 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT ALL COUNT( * ) * - 71 * + 77 AS col0
----
-5467

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL COUNT ( * ) * - 71 * + 77 AS col0
----
-5467

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

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

query I rowsort
SELECT 26 + + + 80 + 60
----
166

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

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL COUNT ( * ) * + 54 * 60 AS col1
----
3240

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

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

query I rowsort
SELECT ALL + + NULLIF ( 45, 5 ) * + 74 AS col2
----
3330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1222
SELECT + CAST( NULL AS SIGNED ) * 67 * 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT + CAST ( NULL AS INTEGER ) * 67 * 12 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1223
SELECT NULLIF ( + 85, + 76 * 21 ) DIV - 17 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-1223
SELECT NULLIF ( + 85, + 76 * 21 ) / - 17 AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1224
SELECT ALL 7 * + + COUNT( * ) DIV MAX( DISTINCT 41 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL 7 * + + COUNT ( * ) / MAX ( DISTINCT 41 ) col0
----
0

query II rowsort
SELECT DISTINCT 76 col1, + 59
----
76
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1226
SELECT ( - 38 ) / + - ( 23 ) + CASE + 51 WHEN - 94 THEN 87 WHEN 93 + 97 THEN NULL END * - CAST( 97 * + 58 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1226
SELECT ( - 38 ) / + - ( 23 ) + CASE + 51 WHEN - 94 THEN 87 WHEN 93 + 97 THEN NULL END * - CAST ( 97 * + 58 AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 21 ) + - 59 col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT 18 * + CASE WHEN NOT 19 NOT BETWEEN NULL AND NULL THEN + COUNT( * ) + 36 ELSE 38 * + 86 END AS col1
----
58824

skipif mysql # not compatible
query I rowsort label-1228
SELECT 18 * + CASE WHEN NOT 19 NOT BETWEEN NULL AND NULL THEN + COUNT ( * ) + 36 ELSE 38 * + 86 END AS col1
----
58824

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT MAX( ALL 58 ) * - 26 + 56 AS col0
----
-1452

skipif mysql # not compatible
query I rowsort label-1229
SELECT MAX ( ALL 58 ) * - 26 + 56 AS col0
----
-1452

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

skipif mysql # not compatible
query II rowsort label-1230
SELECT + COUNT ( * ), 75 AS col2
----
1
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1231
SELECT + COALESCE ( + CASE 15 WHEN + 44 THEN CAST( NULL AS SIGNED ) + 83 * - 15 ELSE NULL END, 76, CAST( + 25 AS SIGNED ) + 2 )
----
76

skipif mysql # not compatible
query I rowsort label-1231
SELECT + COALESCE ( + CASE 15 WHEN + 44 THEN CAST ( NULL AS INTEGER ) + 83 * - 15 ELSE NULL END, 76, CAST ( + 25 AS INTEGER ) + 2 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT ALL + 42 * COUNT( * ) + 82
----
124

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL + 42 * COUNT ( * ) + 82
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1233
SELECT CASE + 22 WHEN - 52 THEN NULL WHEN - 52 * 51 THEN - COUNT( * ) * 11 + NULLIF ( + COUNT( * ), 52 * - CAST( NULL AS SIGNED ) ) ELSE - 72 DIV 79 END col1
----
0

skipif mysql # not compatible
query I rowsort label-1233
SELECT CASE + 22 WHEN - 52 THEN NULL WHEN - 52 * 51 THEN - COUNT ( * ) * 11 + NULLIF ( + COUNT ( * ), 52 * - CAST ( NULL AS INTEGER ) ) ELSE - 72 / 79 END col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT ALL 46 * + 58 * + 49 + 20 * - ( 13 * MAX( DISTINCT + 6 ) + 43 )
----
128312

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL 46 * + 58 * + 49 + 20 * - ( 13 * MAX ( DISTINCT + 6 ) + 43 )
----
128312

query I rowsort
SELECT + 35 * + - 45 col1
----
-1575

query I rowsort
SELECT ALL - 14 * - NULLIF ( + + 41, 19 ) + + 80 AS col2
----
654

onlyif mysql # DIV for integer division: 
query I rowsort label-1237
SELECT DISTINCT + 48 * - - 61 DIV 60 + - 6
----
42

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT + 48 * - - 61 / 60 + - 6
----
42

query I rowsort
SELECT + COALESCE ( + 15, - 66 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT MIN( DISTINCT 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1239
SELECT MIN ( DISTINCT 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT DISTINCT 51 * + 17 + - COUNT( * )
----
866

skipif mysql # not compatible
query I rowsort label-1240
SELECT DISTINCT 51 * + 17 + - COUNT ( * )
----
866

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT SUM( NULLIF ( 25, 74 + + 99 ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1241
SELECT SUM ( NULLIF ( 25, 74 + + 99 ) ) AS col0
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1242
SELECT + NULLIF ( 94, CAST( NULL AS DECIMAL ) )
----
94

skipif mysql # not compatible
query I rowsort label-1242
SELECT + NULLIF ( 94, CAST ( NULL AS REAL ) )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1243
SELECT - 99 + ( - ( CAST( 75 AS SIGNED ) ) ) AS col0
----
-174

skipif mysql # not compatible
query I rowsort label-1243
SELECT - 99 + ( - ( CAST ( 75 AS INTEGER ) ) ) AS col0
----
-174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1244
SELECT - ( - + COALESCE ( - + 78, + 24 * - 4 ) ) DIV ( 55 DIV + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1244
SELECT - ( - + COALESCE ( - + 78, + 24 * - 4 ) ) / ( 55 / + COUNT ( * ) ) AS col1
----
-1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT + - SUM( DISTINCT 4 ) - + 41 + 52 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1247
SELECT + - SUM ( DISTINCT 4 ) - + 41 + 52 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1248
SELECT DISTINCT + + CAST( - - ( COUNT( * ) ) AS SIGNED ) DIV 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT + + CAST ( - - ( COUNT ( * ) ) AS INTEGER ) / 55 AS col1
----
0

query I rowsort
SELECT - + 78 - + 4 * + + 5
----
-98

query I rowsort
SELECT ALL + 72 - + 65 col1
----
7

query I rowsort
SELECT ALL + - ( - 0 ) / 56 * CASE 49 WHEN 77 - 98 THEN 70 END + 74
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 88, + 20 * 73 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-1253
SELECT - 44 col2, + COUNT( * ) * + 35 AS col1
----
-44
35

skipif mysql # not compatible
query II rowsort label-1253
SELECT - 44 col2, + COUNT ( * ) * + 35 AS col1
----
-44
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1254
SELECT DISTINCT + + 99 DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT + + 99 / 63
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT + 36 * - ( - - COUNT( * ) ) + 2
----
-34

skipif mysql # not compatible
query I rowsort label-1256
SELECT + 36 * - ( - - COUNT ( * ) ) + 2
----
-34

query I rowsort
SELECT ALL - - 87 * - 69 AS col2
----
-6003

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT - - SUM( - + 52 ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-1258
SELECT - - SUM ( - + 52 ) col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT - CASE + + 98 WHEN 73 / 82 + 26 THEN NULL ELSE 37 END * COUNT( 50 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-1259
SELECT - CASE + + 98 WHEN 73 / 82 + 26 THEN NULL ELSE 37 END * COUNT ( 50 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT ALL + - COUNT( - 37 ) * - 8 + 17
----
25

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL + - COUNT ( - 37 ) * - 8 + 17
----
25

query I rowsort
SELECT ALL ( - - 88 ) AS col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1262
SELECT ALL NULLIF ( COALESCE ( 42, - 94 DIV ( - 26 ) ), NULLIF ( 43, 82 + - 86 ) )
----
42

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL NULLIF ( COALESCE ( 42, - 94 / ( - 26 ) ), NULLIF ( 43, 82 + - 86 ) )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-1263
SELECT 93 AS col2, - 8 * - 68 + COUNT( - 9 )
----
93
545

skipif mysql # not compatible
query II rowsort label-1263
SELECT 93 AS col2, - 8 * - 68 + COUNT ( - 9 )
----
93
545

query I rowsort
SELECT - - 10 * - 8 * + 93 AS col1
----
-7440

query I rowsort
SELECT - 89 + - - 23 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT - 83 + - - 30 + - MAX( DISTINCT - 30 ) * 82 AS col1
----
2407

skipif mysql # not compatible
query I rowsort label-1266
SELECT - 83 + - - 30 + - MAX ( DISTINCT - 30 ) * 82 AS col1
----
2407

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT ALL MAX( DISTINCT + - 53 ) + + 45 * 20 * 42 AS col2
----
37747

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL MAX ( DISTINCT + - 53 ) + + 45 * 20 * 42 AS col2
----
37747

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT - 59 + CASE + COUNT( * ) WHEN + SUM( ALL 73 ) * COUNT( * ) THEN - 23 * 29 + 90 / 65 WHEN 22 THEN NULL END + - COALESCE ( 63, 57 * 70 + 2 / 26 ) * 79 / - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-1268
SELECT - 59 + CASE + COUNT ( * ) WHEN + SUM ( ALL 73 ) * COUNT ( * ) THEN - 23 * 29 + 90 / 65 WHEN 22 THEN NULL END + - COALESCE ( 63, 57 * 70 + 2 / 26 ) * 79 / - 18
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1269
SELECT ALL + 94 DIV - + 63
----
-1

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL + 94 / - + 63
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT - COUNT( * ) + + - 30
----
-31

skipif mysql # not compatible
query I rowsort label-1270
SELECT - COUNT ( * ) + + - 30
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1271
SELECT ALL - 20 DIV + 66 * 13 + - 83 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL - 20 / + 66 * 13 + - 83 AS col1
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1272
SELECT + CAST( + MAX( + + 16 ) AS SIGNED ) * + 87 * - 69 + + CAST( 21 AS SIGNED ) col0
----
-96027

skipif mysql # not compatible
query I rowsort label-1272
SELECT + CAST ( + MAX ( + + 16 ) AS INTEGER ) * + 87 * - 69 + + CAST ( 21 AS INTEGER ) col0
----
-96027

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT DISTINCT 79 DIV - - 31 + - 60 * + 7 AS col1
----
-418

skipif mysql # not compatible
query I rowsort label-1273
SELECT DISTINCT 79 / - - 31 + - 60 * + 7 AS col1
----
-418

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT - 76 * - COALESCE ( - 18, MAX( - 0 ) + 22 * 25 ) * - 39 AS col0
----
53352

skipif mysql # not compatible
query I rowsort label-1274
SELECT - 76 * - COALESCE ( - 18, MAX ( - 0 ) + 22 * 25 ) * - 39 AS col0
----
53352

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT + 41 DIV - NULLIF ( 54, 35 ) + 93
----
93

skipif mysql # not compatible
query I rowsort label-1275
SELECT + 41 / - NULLIF ( 54, 35 ) + 93
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1276
SELECT ALL CAST( - CAST( + 81 AS SIGNED ) AS SIGNED ) * + 59 + + 5 col1
----
-4774

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL CAST ( - CAST ( + 81 AS INTEGER ) AS INTEGER ) * + 59 + + 5 col1
----
-4774

query II rowsort
SELECT + ( + + 19 ) AS col1, - 60 col2
----
19
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1278
SELECT + 58 + - + 50 + - 39 * + COUNT( * ) - COUNT( * ) DIV 97
----
-31

skipif mysql # not compatible
query I rowsort label-1278
SELECT + 58 + - + 50 + - 39 * + COUNT ( * ) - COUNT ( * ) / 97
----
-31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ( - + COUNT( - ( + + 91 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1280
SELECT ( - + COUNT ( - ( + + 91 ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1281
SELECT + 78 * - 29 + + COALESCE ( COUNT( * ), + 8 DIV 17 - + 16 )
----
-2261

skipif mysql # not compatible
query I rowsort label-1281
SELECT + 78 * - 29 + + COALESCE ( COUNT ( * ), + 8 / 17 - + 16 )
----
-2261

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1283
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 91 AS col1, - 15 col2
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-1283
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 91 AS col1, - 15 col2
----
NULL
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT + + 32 + - COALESCE ( NULLIF ( + - 0, - 92 ), - 72, + COUNT( * ) )
----
32

skipif mysql # not compatible
query I rowsort label-1284
SELECT + + 32 + - COALESCE ( NULLIF ( + - 0, - 92 ), - 72, + COUNT ( * ) )
----
32

query I rowsort
SELECT ALL ( - + 96 ) * NULLIF ( - 65, 0 )
----
6240

query I rowsort
SELECT + 67 * - 89
----
-5963

onlyif mysql # aggregate syntax: 
query II rowsort label-1287
SELECT ALL + - MAX( - 57 ), + CASE + + 48 WHEN - 12 THEN - 32 WHEN 68 THEN NULL ELSE COUNT( * ) END + 56 AS col1
----
57
57

skipif mysql # not compatible
query II rowsort label-1287
SELECT ALL + - MAX ( - 57 ), + CASE + + 48 WHEN - 12 THEN - 32 WHEN 68 THEN NULL ELSE COUNT ( * ) END + 56 AS col1
----
57
57

query I rowsort
SELECT + 26 * 70 + ( - 86 ) AS col1
----
1734

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT - + COUNT( * ) * - COUNT( * ) * + - 89 + - - 27
----
-62

skipif mysql # not compatible
query I rowsort label-1289
SELECT - + COUNT ( * ) * - COUNT ( * ) * + - 89 + - - 27
----
-62

query I rowsort
SELECT ALL - ( - 99 ) * - - 7
----
693

query II rowsort
SELECT + - 55 * 90 AS col0, 11 + - 87
----
-4950
-76

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

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

query I rowsort
SELECT - 8 + 38 * + 67
----
2538

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT CASE + 8 WHEN - - COUNT( * ) + + 17 + + 21 THEN + 53 ELSE + 53 + 91 END
----
144

skipif mysql # not compatible
query I rowsort label-1294
SELECT CASE + 8 WHEN - - COUNT ( * ) + + 17 + + 21 THEN + 53 ELSE + 53 + 91 END
----
144

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT DISTINCT - + 22 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT - + 22 / + 79
----
0

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

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

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

query I rowsort
SELECT ALL - - 46 + 5 + 36 AS col2
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1300
SELECT DISTINCT - 17 DIV COUNT( * ) - - NULLIF ( 80, + 7 )
----
63

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT - 17 / COUNT ( * ) - - NULLIF ( 80, + 7 )
----
63

query II rowsort
SELECT - - 48 + + 20 AS col2, 73 AS col2
----
68
73

query I rowsort
SELECT DISTINCT + 7 + + 92 AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT ALL - ( + + 37 ) + - 45 DIV 92
----
-37

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL - ( + + 37 ) + - 45 / 92
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT MIN( - + ( 4 ) ) + CASE - 86 WHEN COUNT( * ) THEN NULL WHEN + 91 + - 63 / - 10 THEN 0 WHEN ( - 52 ) THEN - COUNT( * ) + - ( + CASE 55 WHEN + 53 THEN 88 END ) * + 24 ELSE + 22 END AS col1
----
18

skipif mysql # not compatible
query I rowsort label-1304
SELECT MIN ( - + ( 4 ) ) + CASE - 86 WHEN COUNT ( * ) THEN NULL WHEN + 91 + - 63 / - 10 THEN 0 WHEN ( - 52 ) THEN - COUNT ( * ) + - ( + CASE 55 WHEN + 53 THEN 88 END ) * + 24 ELSE + 22 END AS col1
----
18

query I rowsort
SELECT 34 * + + 22
----
748

query I rowsort
SELECT DISTINCT + ( - 87 ) + 82 * 71
----
5735

query I rowsort
SELECT ALL - 16 + + ( + 68 ) AS col1
----
52

query II rowsort
SELECT DISTINCT - ( - - 30 ) + 62 col1, 66
----
32
66

query II rowsort
SELECT 35, + 97 AS col1
----
35
97

query I rowsort
SELECT 78 * + + 39 AS col1
----
3042

query I rowsort
SELECT 49 * - + 74
----
-3626

onlyif mysql # DIV for integer division: 
query I rowsort label-1312
SELECT DISTINCT - 45 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT - 45 / + 92
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1314
SELECT 68 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-1314
SELECT 68 / 73
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1315
SELECT ALL - 54 DIV - 33
----
1

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL - 54 / - 33
----
1

query II rowsort
SELECT ALL 57 * - 33 * + + 42, + 3 AS col2
----
-79002
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT ALL - 56 * CASE + 28 WHEN + COUNT( * ) THEN NULL ELSE - 57 + + 75 END AS col2
----
-1008

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL - 56 * CASE + 28 WHEN + COUNT ( * ) THEN NULL ELSE - 57 + + 75 END AS col2
----
-1008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1318
SELECT DISTINCT + + 45 * + - CAST( NULL AS SIGNED ) + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT + + 45 * + - CAST ( NULL AS INTEGER ) + - 80
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-1319
SELECT DISTINCT - + 91, + COUNT( DISTINCT + 96 ) AS col0, - MAX( ALL 74 ) col2
----
-91
1
-74

skipif mysql # not compatible
query III rowsort label-1319
SELECT DISTINCT - + 91, + COUNT ( DISTINCT + 96 ) AS col0, - MAX ( ALL 74 ) col2
----
-91
1
-74

query I rowsort
SELECT + 65 * - - 60 * 62 col2
----
241800

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

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

query II rowsort
SELECT - 29 AS col2, + 32 - + 45 AS col0
----
-29
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1323
SELECT 1 * 66 + - 56 * + + COUNT( ALL + + 6 ) + 47 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT 1 * 66 + - 56 * + + COUNT ( ALL + + 6 ) + 47 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT DISTINCT - MIN( - + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT - MIN ( - + 49 )
----
49

query I rowsort
SELECT DISTINCT - - 57 AS col1
----
57

query I rowsort
SELECT - 1 * 65
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT 4 - 89 + + COUNT( ALL - 79 ) + - - 29 - 33 * 41 * 2
----
-2761

skipif mysql # not compatible
query I rowsort label-1327
SELECT 4 - 89 + + COUNT ( ALL - 79 ) + - - 29 - 33 * 41 * 2
----
-2761

query I rowsort
SELECT DISTINCT - 13 + + 21
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1329
SELECT - CASE - CAST( COUNT( * ) AS DECIMAL ) WHEN - - CAST( NULL AS SIGNED ) - 13 + - 72 THEN NULL WHEN - 78 THEN 47 - 28 END * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1329
SELECT - CASE - CAST ( COUNT ( * ) AS REAL ) WHEN - - CAST ( NULL AS INTEGER ) - 13 + - 72 THEN NULL WHEN - 78 THEN 47 - 28 END * - 87
----
NULL

query I rowsort
SELECT ALL + 38 + - 27
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1331
SELECT DISTINCT + 32 + CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT + 32 + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT DISTINCT - 21 * - SUM( DISTINCT - - 32 ) AS col1
----
672

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT - 21 * - SUM ( DISTINCT - - 32 ) AS col1
----
672

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

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL + 57 + CAST ( NULL AS INTEGER ) - + 38
----
NULL

query I rowsort
SELECT - 25 + + 91 * 85 + - - 70 * + + ( - 87 )
----
1620

query I rowsort
SELECT ALL + 88 * - NULLIF ( + ( + - 97 ), 62 ) + ( 34 )
----
8570

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT + COALESCE ( + 24, + + 55 ) * + 34 * - - 98 * - CASE COUNT( * ) WHEN - CASE + 44 WHEN - 47 * - COUNT( * ) + + 61 THEN + ( 34 ) / - 19 END * 10 THEN + 83 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT + COALESCE ( + 24, + + 55 ) * + 34 * - - 98 * - CASE COUNT ( * ) WHEN - CASE + 44 WHEN - 47 * - COUNT ( * ) + + 61 THEN + ( 34 ) / - 19 END * 10 THEN + 83 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 8 - 12 col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1338
SELECT ALL CASE 6 WHEN 82 + + - 83 THEN - - 77 * CASE SUM( - COALESCE ( 70, 57 * 11 + 83 ) ) WHEN + 52 THEN - COUNT( * ) - 13 DIV SUM( 60 + + ( ( 1 ) ) ) WHEN 93 DIV ( - 11 ) + 99 THEN + 97 WHEN CAST( + 45 AS SIGNED ) + + 87 THEN + CAST( NULL AS SIGNED ) END ELSE - 3 END + 37 * COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL CASE 6 WHEN 82 + + - 83 THEN - - 77 * CASE SUM ( - COALESCE ( 70, 57 * 11 + 83 ) ) WHEN + 52 THEN - COUNT ( * ) - 13 / SUM ( 60 + + ( ( 1 ) ) ) WHEN 93 / ( - 11 ) + 99 THEN + 97 WHEN CAST ( + 45 AS INTEGER ) + + 87 THEN + CAST ( NULL AS INTEGER ) END ELSE - 3 END + 37 * COUNT ( * ) AS col0
----
34

query I rowsort
SELECT - 56 - - - 44 + 41 AS col0
----
-59

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

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

query I rowsort
SELECT 34 * - 31 * + 75
----
-79050

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ( + 74 ) + + COALESCE ( COUNT( * ), + 98, + + 28 - 39 ) - + 69 * - 45
----
3180

skipif mysql # not compatible
query I rowsort label-1342
SELECT ( + 74 ) + + COALESCE ( COUNT ( * ), + 98, + + 28 - 39 ) - + 69 * - 45
----
3180

onlyif mysql # aggregate syntax: 
query II rowsort label-1343
SELECT ALL 77, - COUNT( - + 88 ) AS col2
----
77
-1

skipif mysql # not compatible
query II rowsort label-1343
SELECT ALL 77, - COUNT ( - + 88 ) AS col2
----
77
-1

query I rowsort
SELECT ( 70 ) * + NULLIF ( 17, 10 ) * + 6 * + 4 + 87 AS col1
----
28647

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT ALL ( - 80 ) + - + COUNT( * ) col0
----
-81

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL ( - 80 ) + - + COUNT ( * ) col0
----
-81

query II rowsort
SELECT DISTINCT 83, - 72 AS col1
----
83
-72

query I rowsort
SELECT ALL - 21 + - 54 AS col0
----
-75

query II rowsort
SELECT 59 - + + 24, 7 AS col0
----
35
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1349
SELECT DISTINCT COUNT( * ) DIV NULLIF ( + 79, + 15 * + 7 + - - 19 ) * 10 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT COUNT ( * ) / NULLIF ( + 79, + 15 * + 7 + - - 19 ) * 10 AS col0
----
0

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

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

query I rowsort
SELECT 69 * 56 AS col2
----
3864

query I rowsort
SELECT 72 * + 6
----
432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1353
SELECT COUNT( * ) + + - 84 DIV 92 col0
----
1

skipif mysql # not compatible
query I rowsort label-1353
SELECT COUNT ( * ) + + - 84 / 92 col0
----
1

query II rowsort
SELECT - 44 AS col2, - 29
----
-44
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT COUNT( * ) * + 23 * 21 AS col1
----
483

skipif mysql # not compatible
query I rowsort label-1355
SELECT COUNT ( * ) * + 23 * 21 AS col1
----
483

query I rowsort
SELECT 94 * + - 83 * + 86
----
-670972

query II rowsort
SELECT - 53 AS col0, 28 AS col2
----
-53
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT 68 + + COUNT( * ) + - - 17
----
86

skipif mysql # not compatible
query I rowsort label-1358
SELECT 68 + + COUNT ( * ) + - - 17
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1359
SELECT ALL - COUNT( * ) col0, 74 * - 76
----
-1
-5624

skipif mysql # not compatible
query II rowsort label-1359
SELECT ALL - COUNT ( * ) col0, 74 * - 76
----
-1
-5624

query II rowsort
SELECT DISTINCT - 10 AS col0, ( - 84 )
----
-10
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT ALL 28 * + 88 * + COUNT( * ) * + + 95 * - - 69
----
16151520

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL 28 * + 88 * + COUNT ( * ) * + + 95 * - - 69
----
16151520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1362
SELECT 84 * 67 * + CAST( + - 36 AS SIGNED ) AS col1
----
-202608

skipif mysql # not compatible
query I rowsort label-1362
SELECT 84 * 67 * + CAST ( + - 36 AS INTEGER ) AS col1
----
-202608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1363
SELECT + COUNT( * ) * + + 83 + - 60 + + - MAX( ALL + 80 ) + 40 * 7 DIV 86
----
-54

skipif mysql # not compatible
query I rowsort label-1363
SELECT + COUNT ( * ) * + + 83 + - 60 + + - MAX ( ALL + 80 ) + 40 * 7 / 86
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-1364
SELECT ALL - COUNT( * ), - 14 - + + 48 AS col0
----
-1
-62

skipif mysql # not compatible
query II rowsort label-1364
SELECT ALL - COUNT ( * ), - 14 - + + 48 AS col0
----
-1
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1365
SELECT DISTINCT 26 * COUNT( - 62 ) - - CAST( + 44 AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT 26 * COUNT ( - 62 ) - - CAST ( + 44 AS INTEGER ) AS col1
----
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT - COUNT( + + 44 ) * - ( - 17 ) * - 56 col0
----
952

skipif mysql # not compatible
query I rowsort label-1367
SELECT - COUNT ( + + 44 ) * - ( - 17 ) * - 56 col0
----
952

onlyif mysql # aggregate syntax: 
query II rowsort label-1368
SELECT + 2 AS col2, COUNT( * ) * 75 AS col2
----
2
75

skipif mysql # not compatible
query II rowsort label-1368
SELECT + 2 AS col2, COUNT ( * ) * 75 AS col2
----
2
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1369
SELECT - + 18 / - ( - CASE + - COUNT( * ) WHEN + - 96 / 98 * - COALESCE ( 13, - 63 + COUNT( * ) / 81, 1 ) THEN 76 END ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT - + 18 / - ( - CASE + - COUNT ( * ) WHEN + - 96 / 98 * - COALESCE ( 13, - 63 + COUNT ( * ) / 81, 1 ) THEN 76 END ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query III rowsort
SELECT + + 24 AS col1, + ( - 97 ) + - 0, - - 73 * - ( + 34 ) + 14 AS col1
----
24
-97
-2468

query I rowsort
SELECT DISTINCT CASE - 43 WHEN - 44 THEN + + 30 END + + ( + 45 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1372
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) * - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) * - - 72
----
NULL

query I rowsort
SELECT ALL - + 88 * 91 - - 74 AS col2
----
-7934

onlyif mysql # DIV for integer division: 
query I rowsort label-1374
SELECT 49 DIV + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1374
SELECT 49 / + 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT DISTINCT 91 + + 68 * MAX( ( + 91 ) ) + + 72 + + 37
----
6388

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT 91 + + 68 * MAX ( ( + 91 ) ) + + 72 + + 37
----
6388

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL + - MIN( DISTINCT - 78 ) * + 10 * + 8
----
6240

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL + - MIN ( DISTINCT - 78 ) * + 10 * + 8
----
6240

onlyif mysql # aggregate syntax: 
query II rowsort label-1377
SELECT 98 * 1 * - + 97 * - 21, - SUM( DISTINCT - 34 ) AS col1
----
199626
34

skipif mysql # not compatible
query II rowsort label-1377
SELECT 98 * 1 * - + 97 * - 21, - SUM ( DISTINCT - 34 ) AS col1
----
199626
34

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

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

query I rowsort
SELECT DISTINCT - 59 + - - 96
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT DISTINCT + - 63 + - MAX( + 53 )
----
-116

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT + - 63 + - MAX ( + 53 )
----
-116

onlyif mysql # aggregate syntax: 
query II rowsort label-1381
SELECT COUNT( * ) AS col1, NULLIF ( + 91, - 58 )
----
1
91

skipif mysql # not compatible
query II rowsort label-1381
SELECT COUNT ( * ) AS col1, NULLIF ( + 91, - 58 )
----
1
91

query I rowsort
SELECT ALL 75 + 13 AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1383
SELECT DISTINCT - + 33 + - MIN( ALL 53 ) + + CAST( - 74 AS SIGNED ) + + 18 + - 27 * 88 AS col0
----
-2518

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT - + 33 + - MIN ( ALL 53 ) + + CAST ( - 74 AS INTEGER ) + + 18 + - 27 * 88 AS col0
----
-2518

query I rowsort
SELECT + ( - 3 ) * - 85 AS col1
----
255

query II rowsort
SELECT DISTINCT 89 + 72, 58 AS col0
----
161
58

query I rowsort
SELECT ALL + 35 + - - 24
----
59

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1388
SELECT ALL 24 - 77 - + 29 DIV + 55 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL 24 - 77 - + 29 / + 55 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-1389
SELECT ALL 83 * 38, 71 * 12 * - ( + + ( + - NULLIF ( COUNT( * ), + 26 ) ) ) * 13 AS col2
----
3154
11076

skipif mysql # not compatible
query II rowsort label-1389
SELECT ALL 83 * 38, 71 * 12 * - ( + + ( + - NULLIF ( COUNT ( * ), + 26 ) ) ) * 13 AS col2
----
3154
11076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1390
SELECT ALL SUM( ALL - 91 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL SUM ( ALL - 91 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT - CASE - COUNT( * ) WHEN - 52 * - 8 + COALESCE ( + - NULLIF ( - ( 71 ), MAX( + 8 ) / 48 + + ( - COALESCE ( 15, - SUM( ALL - 75 ) - 32 ) + - 62 * NULLIF ( + SUM( 15 ), + 63 ) ) * ( - 47 ) ), 92 * 80 ) - + 54 THEN + 13 ELSE + 36 END AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-1391
SELECT - CASE - COUNT ( * ) WHEN - 52 * - 8 + COALESCE ( + - NULLIF ( - ( 71 ), MAX ( + 8 ) / 48 + + ( - COALESCE ( 15, - SUM ( ALL - 75 ) - 32 ) + - 62 * NULLIF ( + SUM ( 15 ), + 63 ) ) * ( - 47 ) ), 92 * 80 ) - + 54 THEN + 13 ELSE + 36 END AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1392
SELECT + 53 * - 84 * + COUNT( * ) AS col0, NULLIF ( - + ( + CAST( NULL AS SIGNED ) ), - - 3 ) * 96 AS col1
----
-4452
NULL

skipif mysql # not compatible
query II rowsort label-1392
SELECT + 53 * - 84 * + COUNT ( * ) AS col0, NULLIF ( - + ( + CAST ( NULL AS INTEGER ) ), - - 3 ) * 96 AS col1
----
-4452
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT + SUM( + 86 ) + - 46 col1
----
40

skipif mysql # not compatible
query I rowsort label-1393
SELECT + SUM ( + 86 ) + - 46 col1
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-1394
SELECT + 70 DIV + + 98 AS col2, 76 * - - 60 AS col0
----
0
4560

skipif mysql # not compatible
query II rowsort label-1394
SELECT + 70 / + + 98 AS col2, 76 * - - 60 AS col0
----
0
4560

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

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL MIN ( 70 )
----
70

query I rowsort
SELECT - COALESCE ( 47, - + 44 ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT DISTINCT + CASE + + 56 WHEN - 12 * 38 * - AVG ( - - 78 ) - COUNT( * ) THEN - 55 ELSE NULL END * - 98 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT + CASE + + 56 WHEN - 12 * 38 * - AVG ( - - 78 ) - COUNT ( * ) THEN - 55 ELSE NULL END * - 98 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT + COALESCE ( + - 28, + COUNT( * ) )
----
-28

skipif mysql # not compatible
query I rowsort label-1398
SELECT + COALESCE ( + - 28, + COUNT ( * ) )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT COALESCE ( COUNT( * ), + 25, - 38 * - 76 )
----
1

skipif mysql # not compatible
query I rowsort label-1399
SELECT COALESCE ( COUNT ( * ), + 25, - 38 * - 76 )
----
1

query I rowsort
SELECT - - NULLIF ( - ( + 44 ), + + 74 ) * - ( + 63 ) + + - 16 * - 84
----
4116

query I rowsort
SELECT - 60 * - 28
----
1680

query I rowsort
SELECT ALL + - 30 AS col1
----
-30

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

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL + + COALESCE ( ( - 96 ), - MAX ( + 9 ) )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1404
SELECT DISTINCT + COALESCE ( 49, + 25 ) * 65 + COUNT( * ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT + COALESCE ( 49, + 25 ) * 65 + COUNT ( * ) + + - CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1406
SELECT DISTINCT COUNT( * ) * + + CASE + 10 WHEN - - 84 + + + 52 * 71 THEN - 38 WHEN - COALESCE ( 32, 30, - CAST( NULL AS DECIMAL ) ) - + COUNT( * ) / - 56 THEN NULL END * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT COUNT ( * ) * + + CASE + 10 WHEN - - 84 + + + 52 * 71 THEN - 38 WHEN - COALESCE ( 32, 30, - CAST ( NULL AS REAL ) ) - + COUNT ( * ) / - 56 THEN NULL END * CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - + 43 * - - 25 AS col2
----
-1075

query I rowsort
SELECT ALL + - 9 * + 1 + - 47 * 57 + + 24 col1
----
-2664

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT + 89 * 92 * + + SUM( DISTINCT 18 ) AS col2
----
147384

skipif mysql # not compatible
query I rowsort label-1409
SELECT + 89 * 92 * + + SUM ( DISTINCT 18 ) AS col2
----
147384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1410
SELECT - + AVG ( + ( CAST( NULL AS SIGNED ) ) ) * - MIN( + 15 ) + - 41 + + 45 + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1410
SELECT - + AVG ( + ( CAST ( NULL AS INTEGER ) ) ) * - MIN ( + 15 ) + - 41 + + 45 + 10
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1411
SELECT - - COUNT ( * ) + - 23 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT DISTINCT - 13 * + 80 + - 64 * - 85 + - + COUNT( * )
----
4399

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT - 13 * + 80 + - 64 * - 85 + - + COUNT ( * )
----
4399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1413
SELECT COUNT( ALL CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1413
SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1414
SELECT DISTINCT + 84 * 38 + + 97 AS col2, 40 * - MIN( + + 75 ) AS col0
----
3289
-3000

skipif mysql # not compatible
query II rowsort label-1414
SELECT DISTINCT + 84 * 38 + + 97 AS col2, 40 * - MIN ( + + 75 ) AS col0
----
3289
-3000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1415
SELECT DISTINCT + NULLIF ( COALESCE ( + - 42, - CASE - 54 WHEN + + 6 * + ( + MIN( DISTINCT 26 ) ) * COUNT( * ) + - COALESCE ( - 58, 27 * 19 ) * - AVG ( ALL 17 * 74 ) THEN NULL WHEN CAST( 8 AS SIGNED ) * CASE WHEN ( + 85 / COUNT( * ) ) NOT BETWEEN ( NULL ) AND NULL THEN NULL WHEN + 17 > 29 THEN - 61 + COUNT( * ) / 39 ELSE NULL END THEN 4 END ), - 59 * - 22 ) * - 43 AS col2
----
1806

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT + NULLIF ( COALESCE ( + - 42, - CASE - 54 WHEN + + 6 * + ( + MIN ( DISTINCT 26 ) ) * COUNT ( * ) + - COALESCE ( - 58, 27 * 19 ) * - AVG ( ALL 17 * 74 ) THEN NULL WHEN CAST ( 8 AS INTEGER ) * CASE WHEN ( + 85 / COUNT ( * ) ) NOT BETWEEN ( NULL ) AND NULL THEN NULL WHEN + 17 > 29 THEN - 61 + COUNT ( * ) / 39 ELSE NULL END THEN 4 END ), - 59 * - 22 ) * - 43 AS col2
----
1806

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

skipif mysql # not compatible
query I rowsort label-1416
SELECT - SUM ( + 8 )
----
-8

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

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

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

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

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

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

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

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

query II rowsort
SELECT - 29 * - 39 * - 10, - 19 AS col2
----
-11310
-19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT + CASE - 39 WHEN - SUM( ALL 42 ) THEN 87 END * + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1423
SELECT + CASE - 39 WHEN - SUM ( ALL 42 ) THEN 87 END * + + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT ALL COUNT( * ) * - + NULLIF ( CASE + - 5 WHEN + - 24 THEN + + 72 END, + - 40 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL COUNT ( * ) * - + NULLIF ( CASE + - 5 WHEN + - 24 THEN + + 72 END, + - 40 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT + 93 - SUM( DISTINCT + + 23 ) + + + SUM( - - 43 ) * - COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1425
SELECT + 93 - SUM ( DISTINCT + + 23 ) + + + SUM ( - - 43 ) * - COUNT ( * ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT - CASE + + 12 WHEN 5 THEN ( - - 97 ) END + + MIN( + 4 ) * COALESCE ( 18, 85 - - 81 ) * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1426
SELECT - CASE + + 12 WHEN 5 THEN ( - - 97 ) END + + MIN ( + 4 ) * COALESCE ( 18, 85 - - 81 ) * - 63
----
NULL

query I rowsort
SELECT + 69 * + 35
----
2415

query I rowsort
SELECT - COALESCE ( - - 41, - + 99 )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-1429
SELECT DISTINCT - 51, - NULLIF ( - 14, + COUNT( * ) - + 61 ) col0
----
-51
14

skipif mysql # not compatible
query II rowsort label-1429
SELECT DISTINCT - 51, - NULLIF ( - 14, + COUNT ( * ) - + 61 ) col0
----
-51
14

query I rowsort
SELECT ALL - 28 + - - 84 AS col2
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1431
SELECT ALL - 31 DIV - 45 + - - 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL - 31 / - 45 + - - 7 AS col1
----
7

query I rowsort
SELECT + + 47 + + + 79
----
126

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1434
SELECT ALL + COUNT( * ) DIV - 72 + + 35
----
35

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL + COUNT ( * ) / - 72 + + 35
----
35

query I rowsort
SELECT NULLIF ( NULLIF ( - 1, + 69 + + ( + NULLIF ( 99, + - 70 ) ) ), ( 30 ) ) AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1437
SELECT + ( COALESCE ( - 13, - - 55 + - ( + + COUNT( * ) ) ) ) DIV + - ( 90 ) * 20
----
0

skipif mysql # not compatible
query I rowsort label-1437
SELECT + ( COALESCE ( - 13, - - 55 + - ( + + COUNT ( * ) ) ) ) / + - ( 90 ) * 20
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1438
SELECT ALL + 1 + COUNT( - CAST( NULL AS SIGNED ) ) + - - 41
----
42

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL + 1 + COUNT ( - CAST ( NULL AS INTEGER ) ) + - - 41
----
42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT 71 + COUNT( * ) col1
----
72

skipif mysql # not compatible
query I rowsort label-1440
SELECT 71 + COUNT ( * ) col1
----
72

query I rowsort
SELECT ALL + - 8 * 27 + 36 col2
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1442
SELECT DISTINCT - - 95 - - ( - 25 ) + - - COALESCE ( SUM( DISTINCT - 11 ), + CASE - 78 WHEN - 85 THEN + 62 + + 6 WHEN COALESCE ( 86, 50 * 62, - 51 ) * + 33 THEN NULL WHEN 33 THEN NULL ELSE NULL END DIV 26, COUNT( * ) )
----
59

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT - - 95 - - ( - 25 ) + - - COALESCE ( SUM ( DISTINCT - 11 ), + CASE - 78 WHEN - 85 THEN + 62 + + 6 WHEN COALESCE ( 86, 50 * 62, - 51 ) * + 33 THEN NULL WHEN 33 THEN NULL ELSE NULL END / 26, COUNT ( * ) )
----
59

query II rowsort
SELECT - 89 AS col0, + ( - + 99 )
----
-89
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1444
SELECT ALL - CAST( - 89 AS SIGNED ) - + MIN( - 2 ) + 28 * - + ( + + 92 )
----
-2485

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL - CAST ( - 89 AS INTEGER ) - + MIN ( - 2 ) + 28 * - + ( + + 92 )
----
-2485

query II rowsort
SELECT + 39, 7 * 4 + + 3 AS col0
----
39
31

query I rowsort
SELECT 62 * + + 84 + - ( - 13 ) AS col0
----
5221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1447
SELECT DISTINCT - 90 - - - 69 DIV - 24 + COUNT( * ) * - + 1
----
-89

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT - 90 - - - 69 / - 24 + COUNT ( * ) * - + 1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1448
SELECT DISTINCT - NULLIF ( + CAST( + 51 AS SIGNED ), + 13 ) col0
----
-51

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT - NULLIF ( + CAST ( + 51 AS INTEGER ), + 13 ) col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1449
SELECT 59 + CAST( 51 AS SIGNED ) + - 55 AS col2, COUNT( * ) * - + COUNT( * ) * 17 + 26
----
55
9

skipif mysql # not compatible
query II rowsort label-1449
SELECT 59 + CAST ( 51 AS INTEGER ) + - 55 AS col2, COUNT ( * ) * - + COUNT ( * ) * 17 + 26
----
55
9

onlyif mysql # DIV for integer division: 
query II rowsort label-1450
SELECT 62 DIV 28 col1, - ( - 38 ) AS col2
----
2
38

skipif mysql # not compatible
query II rowsort label-1450
SELECT 62 / 28 col1, - ( - 38 ) AS col2
----
2
38

query I rowsort
SELECT ALL + 99 * 28
----
2772

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

query I rowsort
SELECT 87 * - 35 * - 46
----
140070

query I rowsort
SELECT ALL + 0 * NULLIF ( 91, COALESCE ( + - AVG ( 95 ), 70, + - 26 * 63 ) * 32 - - 73 ) * - 57
----
0

query I rowsort
SELECT 97 * + 25
----
2425

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT ALL + 36 * COUNT( * ) * - 62 col0
----
-2232

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL + 36 * COUNT ( * ) * - 62 col0
----
-2232

query I rowsort
SELECT DISTINCT - 82 + + - 4 + - + 72
----
-158

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1459
SELECT 77 DIV - 4, CAST( NULL AS SIGNED ) col1
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-1459
SELECT 77 / - 4, CAST ( NULL AS INTEGER ) col1
----
-19
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT ALL - COUNT( ALL - + 79 ) + + - 20 + + 94 + + - 23 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL - COUNT ( ALL - + 79 ) + + - 20 + + 94 + + - 23 AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1462
SELECT DISTINCT - CASE + + 61 WHEN - - 92 THEN + COUNT( * ) + - 44 + CAST( NULL AS SIGNED ) * 16 * + 83 + + 7 END + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT - CASE + + 61 WHEN - - 92 THEN + COUNT ( * ) + - 44 + CAST ( NULL AS INTEGER ) * 16 * + 83 + + 7 END + + 54
----
NULL

query I rowsort
SELECT ALL 28 + - + ( - - 81 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT 25 * + + NULLIF ( + 38, + CASE NULLIF ( + COALESCE ( - 58, + + 38 - + MAX( 46 ), + 61 ), 37 ) WHEN + COUNT( * ) * 40 + - 72 THEN 96 WHEN 17 THEN ( COUNT( * ) ) + 18 * 59 ELSE COUNT( DISTINCT 99 ) * - 0 END ) * 81 AS col2
----
76950

skipif mysql # not compatible
query I rowsort label-1464
SELECT 25 * + + NULLIF ( + 38, + CASE NULLIF ( + COALESCE ( - 58, + + 38 - + MAX ( 46 ), + 61 ), 37 ) WHEN + COUNT ( * ) * 40 + - 72 THEN 96 WHEN 17 THEN ( COUNT ( * ) ) + 18 * 59 ELSE COUNT ( DISTINCT 99 ) * - 0 END ) * 81 AS col2
----
76950

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT ALL 35 + + COUNT( * ) * + 60
----
95

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL 35 + + COUNT ( * ) * + 60
----
95

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

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

query I rowsort
SELECT ALL - 96 + 60 + + - 20 + 86 - + 35 * - 68 AS col0
----
2410

query I rowsort
SELECT COALESCE ( - ( - 12 ), 86 ) * 86 - - 85
----
1117

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

skipif mysql # not compatible
query I rowsort label-1469
SELECT ( - COUNT ( * ) ) * 19
----
-19

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

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

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

query II rowsort
SELECT ALL - 30 - + 20 * 28 + 25 col0, 17 AS col1
----
-565
17

query I rowsort
SELECT DISTINCT + 72 * - 19 * - + 15 AS col1
----
20520

query I rowsort
SELECT 27 - - 47 * + + 75 AS col1
----
3552

query I rowsort
SELECT DISTINCT + 22 - + ( - - 71 ) col0
----
-49

query I rowsort
SELECT DISTINCT - - 27 * 46 + - + 51 AS col2
----
1191

onlyif mysql # DIV for integer division: 
query I rowsort label-1477
SELECT ALL 64 DIV + 15
----
4

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL 64 / + 15
----
4

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1479
SELECT + - ( - COUNT( * ) ) AS col2, 55 + 13 AS col1
----
1
68

skipif mysql # not compatible
query II rowsort label-1479
SELECT + - ( - COUNT ( * ) ) AS col2, 55 + 13 AS col1
----
1
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT DISTINCT 22 DIV - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT 22 / - 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT COUNT( * ) - 98
----
-97

skipif mysql # not compatible
query I rowsort label-1481
SELECT COUNT ( * ) - 98
----
-97

query I rowsort
SELECT + 0 * 58 * + - ( + ( - 96 ) ) - - - 22 * + 71 AS col2
----
-1562

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT 79 + - 19 + - NULLIF ( + 58, + COUNT( * ) + - 61 )
----
2

skipif mysql # not compatible
query I rowsort label-1483
SELECT 79 + - 19 + - NULLIF ( + 58, + COUNT ( * ) + - 61 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT + COUNT( - - 6 )
----
1

skipif mysql # not compatible
query I rowsort label-1484
SELECT + COUNT ( - - 6 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1485
SELECT CASE - 64 WHEN - 10 THEN - 37 * - 7 - - 20 WHEN + COALESCE ( - MIN( ALL + CASE - 84 WHEN + 88 * + 5 + 17 * 49 THEN 76 ELSE NULL END ), 88 ) * 25 + COALESCE ( + 13, - 2 / + CAST( CASE - COUNT( * ) WHEN + COUNT( * ) THEN 76 / 15 END AS SIGNED ), 10 - - MAX( ALL 23 ) * + 52 ) * COUNT( * ) THEN + 0 + + SUM( DISTINCT 8 ) WHEN 54 + COUNT( * ) THEN NULL ELSE + 88 * MAX( ALL 22 ) END * + 33 AS col0
----
63888

skipif mysql # not compatible
query I rowsort label-1485
SELECT CASE - 64 WHEN - 10 THEN - 37 * - 7 - - 20 WHEN + COALESCE ( - MIN ( ALL + CASE - 84 WHEN + 88 * + 5 + 17 * 49 THEN 76 ELSE NULL END ), 88 ) * 25 + COALESCE ( + 13, - 2 / + CAST ( CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN 76 / 15 END AS INTEGER ), 10 - - MAX ( ALL 23 ) * + 52 ) * COUNT ( * ) THEN + 0 + + SUM ( DISTINCT 8 ) WHEN 54 + COUNT ( * ) THEN NULL ELSE + 88 * MAX ( ALL 22 ) END * + 33 AS col0
----
63888

query I rowsort
SELECT ALL 41 * - - 29 * - + 79 * - 67
----
6293377

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1488
SELECT ( - + CAST( - 73 AS SIGNED ) ) + - + 51 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1488
SELECT ( - + CAST ( - 73 AS INTEGER ) ) + - + 51 AS col1
----
22

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

skipif mysql # not compatible
query I rowsort label-1489
SELECT CAST ( + ( + - COUNT ( * ) ) AS INTEGER ) * + 17
----
-17

query I rowsort
SELECT DISTINCT 64 + + 3 AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1491
SELECT CAST( 35 AS SIGNED ) * 85 + + COUNT( * ) DIV - ( - - COUNT( * ) ) + + COUNT( * )
----
2975

skipif mysql # not compatible
query I rowsort label-1491
SELECT CAST ( 35 AS INTEGER ) * 85 + + COUNT ( * ) / - ( - - COUNT ( * ) ) + + COUNT ( * )
----
2975

query I rowsort
SELECT 3 * - 15 AS col2
----
-45

query II rowsort
SELECT 84, 24 AS col2
----
84
24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1495
SELECT 22 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-1495
SELECT 22 / 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ALL - MAX( DISTINCT - + 79 ) + 26 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL - MAX ( DISTINCT - + 79 ) + 26 AS col1
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1497
SELECT 93 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT 93 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

query I rowsort
SELECT ALL - 94 + + + 49 AS col2
----
-45

query I rowsort
SELECT ALL - CASE + 46 WHEN ( - - 34 ) / NULLIF ( - 32, - 23 * - - 95 + - + 74 ) - - - 27 THEN 93 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1501
SELECT DISTINCT - + CASE - + 73 WHEN + 40 THEN + CAST( NULL AS SIGNED ) END + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT - + CASE - + 73 WHEN + 40 THEN + CAST ( NULL AS INTEGER ) END + 18
----
NULL

query I rowsort
SELECT 73 + 24 col0
----
97

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

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL - + COUNT ( * ) + - 39 AS col2
----
-40

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1506
SELECT - - CASE - 71 WHEN + 44 + - 24 * - + CAST( 35 AS SIGNED ) + - 80 THEN AVG ( - - ( + 1 ) ) WHEN + COUNT( * ) / MAX( DISTINCT ( 6 ) ) THEN NULL ELSE NULL END * - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1506
SELECT - - CASE - 71 WHEN + 44 + - 24 * - + CAST ( 35 AS INTEGER ) + - 80 THEN AVG ( - - ( + 1 ) ) WHEN + COUNT ( * ) / MAX ( DISTINCT ( 6 ) ) THEN NULL ELSE NULL END * - 69 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1507
SELECT - 96 + CAST( + + 3 AS SIGNED ) + - 40 col0
----
-133

skipif mysql # not compatible
query I rowsort label-1507
SELECT - 96 + CAST ( + + 3 AS INTEGER ) + - 40 col0
----
-133

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

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

query II rowsort
SELECT DISTINCT + + 74 AS col0, 72
----
74
72

query I rowsort
SELECT ALL - 21 * - 8 - - 38
----
206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1511
SELECT - MAX( - ( - - 42 ) ) * + 69 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1511
SELECT - MAX ( - ( - - 42 ) ) * + 69 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT + MIN( 41 ) * + ( - 50 ) + - - 84 AS col2
----
-1966

skipif mysql # not compatible
query I rowsort label-1512
SELECT + MIN ( 41 ) * + ( - 50 ) + - - 84 AS col2
----
-1966

query I rowsort
SELECT ALL + - 15 col0
----
-15

query II rowsort
SELECT 20, + CASE ( + ( 37 ) ) WHEN 87 THEN NULL ELSE + 73 * - 70 END + - - 92 * + - 59 AS col1
----
20
-10538

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT - SUM( ALL + 23 ) * + 35 AS col1
----
-805

skipif mysql # not compatible
query I rowsort label-1515
SELECT - SUM ( ALL + 23 ) * + 35 AS col1
----
-805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1516
SELECT + CAST( - 82 AS SIGNED ) * - 9 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1516
SELECT + CAST ( - 82 AS INTEGER ) * - 9 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 66 * + 82
----
5412

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1519
SELECT ALL + 43, 1 DIV 30 AS col1
----
43
0

skipif mysql # not compatible
query II rowsort label-1519
SELECT ALL + 43, 1 / 30 AS col1
----
43
0

query I rowsort
SELECT + 24 * 68 AS col0
----
1632

onlyif mysql # aggregate syntax: 
query II rowsort label-1521
SELECT ALL + 52 AS col1, - COUNT( * ) - - - 59 + 89 + + 42 * + 96 * - 61 * - 0 * - 3
----
52
29

skipif mysql # not compatible
query II rowsort label-1521
SELECT ALL + 52 AS col1, - COUNT ( * ) - - - 59 + 89 + + 42 * + 96 * - 61 * - 0 * - 3
----
52
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1522
SELECT - 88 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1522
SELECT - 88 / + 99 AS col2
----
0

query I rowsort
SELECT + CASE - + 45 WHEN - + 84 THEN 71 END
----
NULL

query I rowsort
SELECT DISTINCT 75 * + - 4 + - 11 AS col0
----
-311

query I rowsort
SELECT + 29 * - 72 AS col1
----
-2088

query I rowsort
SELECT + 34 + 7 AS col2
----
41

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

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL SUM ( - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT - 74 * + 20 + - + NULLIF ( + COUNT( * ), - + SUM( + 48 ) ) AS col1
----
-1481

skipif mysql # not compatible
query I rowsort label-1528
SELECT - 74 * + 20 + - + NULLIF ( + COUNT ( * ), - + SUM ( + 48 ) ) AS col1
----
-1481

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT 1 * - NULLIF ( + - 31, + CASE WHEN NOT COUNT( * ) NOT IN ( - + 52 * + COALESCE ( 99, - + COUNT( * ) * + 41, COUNT( * ) / + 43 + 8 * + COUNT( * ) ) * - 96 ) THEN + 10 ELSE NULL END * - 49 ) * NULLIF ( 87, ( 52 ) / CASE - 22 WHEN + COALESCE ( + ( - 77 ), 62 * - 70 ) THEN 19 * - ( - ( 35 ) ) + AVG ( DISTINCT + 47 ) ELSE MIN( + 32 ) END + + 8 ) + - 85
----
2612

skipif mysql # not compatible
query I rowsort label-1530
SELECT 1 * - NULLIF ( + - 31, + CASE WHEN NOT COUNT ( * ) NOT IN ( - + 52 * + COALESCE ( 99, - + COUNT ( * ) * + 41, COUNT ( * ) / + 43 + 8 * + COUNT ( * ) ) * - 96 ) THEN + 10 ELSE NULL END * - 49 ) * NULLIF ( 87, ( 52 ) / CASE - 22 WHEN + COALESCE ( + ( - 77 ), 62 * - 70 ) THEN 19 * - ( - ( 35 ) ) + AVG ( DISTINCT + 47 ) ELSE MIN ( + 32 ) END + + 8 ) + - 85
----
2612

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1532
SELECT + + 83 * - - 61 + + 21 DIV + - 52
----
5063

skipif mysql # not compatible
query I rowsort label-1532
SELECT + + 83 * - - 61 + + 21 / + - 52
----
5063

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1533
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0, + 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-1533
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0, + 26
----
NULL
26

query II rowsort
SELECT DISTINCT + 82, + 1 AS col0
----
82
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1535
SELECT ALL - + 1 * + COUNT( 2 ) DIV - COALESCE ( + + 25, 25 * + + NULLIF ( + 16, + 96 * - MIN( DISTINCT - 66 ) - 16 * - ( 26 ) ) + 76 * 20, + 31 * MIN( - 88 ) ) * + NULLIF ( 18, 26 + - 73 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL - + 1 * + COUNT ( 2 ) / - COALESCE ( + + 25, 25 * + + NULLIF ( + 16, + 96 * - MIN ( DISTINCT - 66 ) - 16 * - ( 26 ) ) + 76 * 20, + 31 * MIN ( - 88 ) ) * + NULLIF ( 18, 26 + - 73 ) AS col0
----
0

query II rowsort
SELECT - - 56 AS col2, 75 AS col1
----
56
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1537
SELECT DISTINCT - + MAX( ALL 39 ) * + ( CAST( 22 AS SIGNED ) ) AS col0
----
-858

skipif mysql # not compatible
query I rowsort label-1537
SELECT DISTINCT - + MAX ( ALL 39 ) * + ( CAST ( 22 AS INTEGER ) ) AS col0
----
-858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1538
SELECT - + 83 * 86 + COALESCE ( + COUNT( * ), + CAST( NULL AS SIGNED ) DIV - 86, + 55, COUNT( * ) ) AS col2
----
-7137

skipif mysql # not compatible
query I rowsort label-1538
SELECT - + 83 * 86 + COALESCE ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) / - 86, + 55, COUNT ( * ) ) AS col2
----
-7137

query I rowsort
SELECT ALL - ( + 7 ) * + 24
----
-168

query II rowsort
SELECT + 57 AS col0, 15 * + 81 AS col2
----
57
1215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1541
SELECT - CAST( + ( - ( + 57 ) ) AS SIGNED ) * - ( - 79 )
----
4503

skipif mysql # not compatible
query I rowsort label-1541
SELECT - CAST ( + ( - ( + 57 ) ) AS INTEGER ) * - ( - 79 )
----
4503

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT - 43 * 88 + + COUNT( * )
----
-3783

skipif mysql # not compatible
query I rowsort label-1542
SELECT - 43 * 88 + + COUNT ( * )
----
-3783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1543
SELECT - - COUNT( * ) DIV CAST( - + 85 AS SIGNED ) DIV - 37 AS col1, 19
----
0
19

skipif mysql # not compatible
query II rowsort label-1543
SELECT - - COUNT ( * ) / CAST ( - + 85 AS INTEGER ) / - 37 AS col1, 19
----
0
19

query II rowsort
SELECT + 58 AS col1, + 6
----
58
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1545
SELECT ALL 47 DIV - COUNT( - + 82 ) + - 17 * + 6 + - 72 - + - 31 + 21 * - COUNT( DISTINCT - + 93 ) * COUNT( * ) * - CAST( + COUNT( * ) + COUNT( * ) AS SIGNED ) AS col2
----
-148

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL 47 / - COUNT ( - + 82 ) + - 17 * + 6 + - 72 - + - 31 + 21 * - COUNT ( DISTINCT - + 93 ) * COUNT ( * ) * - CAST ( + COUNT ( * ) + COUNT ( * ) AS INTEGER ) AS col2
----
-148

query I rowsort
SELECT - + ( 10 ) - - 27 * ( - + 90 ) + + 16 AS col2
----
-2424

query I rowsort
SELECT ALL - - 30 * + COALESCE ( + 0, + - 40 + - - 53 ) * + 44
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1549
SELECT DISTINCT ( - 59 ) DIV - 43 - + NULLIF ( - 13, + 56 * - 35 * - 84 * + 17 ) + + SUM( - 22 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT ( - 59 ) / - 43 - + NULLIF ( - 13, + 56 * - 35 * - 84 * + 17 ) + + SUM ( - 22 ) AS col1
----
-8

query II rowsort
SELECT - 83 * + 36, 6 * 49 col2
----
-2988
294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1551
SELECT ALL 84 DIV + 94 * 69 + + COALESCE ( + MAX( ALL 32 ), + 61 + + 26 ) - + 83
----
-51

skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL 84 / + 94 * 69 + + COALESCE ( + MAX ( ALL 32 ), + 61 + + 26 ) - + 83
----
-51

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT ( MIN( 17 ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1554
SELECT ( MIN ( 17 ) ) AS col0
----
17

query I rowsort
SELECT + 53 - COALESCE ( 31, - 72, + 78 ) + - 48 * - 16
----
790

onlyif mysql # aggregate syntax: 
query II rowsort label-1556
SELECT + COUNT( 72 ) col1, 43 col2
----
1
43

skipif mysql # not compatible
query II rowsort label-1556
SELECT + COUNT ( 72 ) col1, 43 col2
----
1
43

query I rowsort
SELECT ( + + 16 ) col0
----
16

query II rowsort
SELECT - 93 + - + 60 AS col1, + 68
----
-153
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1559
SELECT + 87 * - ( 29 ) * - - CASE - - COUNT( * ) WHEN - CAST( - + 32 AS SIGNED ) THEN - ( - COUNT( * ) ) WHEN + MAX( DISTINCT - 68 ) THEN NULL END + COUNT( * ) + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-1559
SELECT + 87 * - ( 29 ) * - - CASE - - COUNT ( * ) WHEN - CAST ( - + 32 AS INTEGER ) THEN - ( - COUNT ( * ) ) WHEN + MAX ( DISTINCT - 68 ) THEN NULL END + COUNT ( * ) + 43
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1560
SELECT + 4 / - 77 * COUNT ( * ) * 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT - CASE - 0 WHEN - 57 * + 69 * + 70 THEN 99 ELSE NULL END + + - COALESCE ( + - COUNT( ALL + 39 ), + - 14, + - 97 ) * + - 35 + - AVG ( DISTINCT + 36 + + 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1561
SELECT - CASE - 0 WHEN - 57 * + 69 * + 70 THEN 99 ELSE NULL END + + - COALESCE ( + - COUNT ( ALL + 39 ), + - 14, + - 97 ) * + - 35 + - AVG ( DISTINCT + 36 + + 19 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1562
SELECT - NULLIF ( + + 67, + - AVG ( 51 ) * 3 + - 85 ) * + 80 + 13 - 24 DIV 3 AS col1
----
-5355

skipif mysql # not compatible
query I rowsort label-1562
SELECT - NULLIF ( + + 67, + - AVG ( 51 ) * 3 + - 85 ) * + 80 + 13 - 24 / 3 AS col1
----
-5355

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1563
SELECT ALL - COUNT( * ) DIV - 87 * - + SUM( + COALESCE ( - ( - 93 ), + 70 * + 69 * + ( + 65 ) * 7 + + + 44 ) ) * 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL - COUNT ( * ) / - 87 * - + SUM ( + COALESCE ( - ( - 93 ), + 70 * + 69 * + ( + 65 ) * 7 + + + 44 ) ) * 18 AS col2
----
0

query I rowsort
SELECT + 37 - 44 + - 79
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1565
SELECT ALL COUNT( ALL + ( + CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL COUNT ( ALL + ( + CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1566
SELECT + CASE - COUNT( * ) WHEN - 15 * - - 57 THEN COUNT( - 25 ) ELSE - 84 + - + COUNT( * ) + ( 49 ) END DIV 7 + + 88 + COUNT( * ) DIV 20 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1566
SELECT + CASE - COUNT ( * ) WHEN - 15 * - - 57 THEN COUNT ( - 25 ) ELSE - 84 + - + COUNT ( * ) + ( 49 ) END / 7 + + 88 + COUNT ( * ) / 20 AS col2
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT 79 + + + SUM( ALL 83 ) + ( - + 63 ) * - COUNT( * )
----
225

skipif mysql # not compatible
query I rowsort label-1568
SELECT 79 + + + SUM ( ALL 83 ) + ( - + 63 ) * - COUNT ( * )
----
225

query I rowsort
SELECT ALL + 93 * + 22 AS col0
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT DISTINCT + CASE - 56 WHEN - ( - 34 ) + - 14 + + COALESCE ( + COUNT( * ), 18 ) THEN NULL ELSE 60 END AS col1
----
60

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT + CASE - 56 WHEN - ( - 34 ) + - 14 + + COALESCE ( + COUNT ( * ), 18 ) THEN NULL ELSE 60 END AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT - 87 * + COUNT( DISTINCT + - 65 ) * 45 + 93
----
-3822

skipif mysql # not compatible
query I rowsort label-1571
SELECT - 87 * + COUNT ( DISTINCT + - 65 ) * 45 + 93
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT DISTINCT ( CASE + MIN( ALL + 29 ) WHEN - 39 + - COUNT( * ) THEN NULL ELSE + 4 * + 30 END )
----
120

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT ( CASE + MIN ( ALL + 29 ) WHEN - 39 + - COUNT ( * ) THEN NULL ELSE + 4 * + 30 END )
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1573
SELECT 58 + - + CAST( + + COUNT( * ) AS SIGNED ) - + 16 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1573
SELECT 58 + - + CAST ( + + COUNT ( * ) AS INTEGER ) - + 16 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT 2 - - 40 + MAX( DISTINCT 47 ) - - 18 col0
----
107

skipif mysql # not compatible
query I rowsort label-1574
SELECT 2 - - 40 + MAX ( DISTINCT 47 ) - - 18 col0
----
107

query I rowsort
SELECT - 5 * 12 * - 25
----
1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1576
SELECT - 44 + + + COUNT( * ) - + 74 * - COALESCE ( - - 54, + COUNT( * ) * - + CAST( - 82 AS SIGNED ) * 16 + - + 0, + 73 ) AS col0
----
3953

skipif mysql # not compatible
query I rowsort label-1576
SELECT - 44 + + + COUNT ( * ) - + 74 * - COALESCE ( - - 54, + COUNT ( * ) * - + CAST ( - 82 AS INTEGER ) * 16 + - + 0, + 73 ) AS col0
----
3953

query I rowsort
SELECT 48 - - + 46 + + 71 AS col0
----
165

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1578
SELECT 51 + + MAX( ALL - 24 ) - - CASE + SUM( DISTINCT + 3 ) WHEN - ( + + 96 ) * + + 19 * + SUM( DISTINCT + 80 ) THEN NULL WHEN + + ( - 47 ) THEN + 16 * - CAST( - 82 AS DECIMAL ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1578
SELECT 51 + + MAX ( ALL - 24 ) - - CASE + SUM ( DISTINCT + 3 ) WHEN - ( + + 96 ) * + + 19 * + SUM ( DISTINCT + 80 ) THEN NULL WHEN + + ( - 47 ) THEN + 16 * - CAST ( - 82 AS REAL ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + ( + - 78 ) + 51
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT ALL MAX( ALL 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL MAX ( ALL 70 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1581
SELECT 40 * + MIN( ALL - 96 ) AS col1, + 25
----
-3840
25

skipif mysql # not compatible
query II rowsort label-1581
SELECT 40 * + MIN ( ALL - 96 ) AS col1, + 25
----
-3840
25

query I rowsort
SELECT ALL - 66 + - + 29
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1583
SELECT COUNT( * ) + 95 * - CASE - 71 WHEN MIN( ALL + CAST( NULL AS SIGNED ) ) THEN - 25 END AS col0, 72 AS col1
----
NULL
72

skipif mysql # not compatible
query II rowsort label-1583
SELECT COUNT ( * ) + 95 * - CASE - 71 WHEN MIN ( ALL + CAST ( NULL AS INTEGER ) ) THEN - 25 END AS col0, 72 AS col1
----
NULL
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1584
SELECT DISTINCT 59 + - 70 + 78 + MAX( + - 88 ) - - 98 / - CASE + 92 WHEN + + AVG ( - 42 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) + - - 65 * COUNT( * ) THEN + 6 + - 2 END * + COALESCE ( CAST( NULL AS SIGNED ) * + 81, + 8 * - 31 + - MAX( + 6 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT 59 + - 70 + 78 + MAX ( + - 88 ) - - 98 / - CASE + 92 WHEN + + AVG ( - 42 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) + - - 65 * COUNT ( * ) THEN + 6 + - 2 END * + COALESCE ( CAST ( NULL AS INTEGER ) * + 81, + 8 * - 31 + - MAX ( + 6 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1585
SELECT ALL + COUNT( * ) + - - 39 + - + 57 + - 26 + - - 17, 23 + - 70 AS col2
----
-26
-47

skipif mysql # not compatible
query II rowsort label-1585
SELECT ALL + COUNT ( * ) + - - 39 + - + 57 + - 26 + - - 17, 23 + - 70 AS col2
----
-26
-47

query I rowsort
SELECT 81 + - - 58
----
139

query I rowsort
SELECT DISTINCT + 36 + + + 24 * + 19 col2
----
492

onlyif mysql # DIV for integer division: 
query I rowsort label-1588
SELECT ( 10 ) DIV + 39 + - 95 - + - 74 DIV 4 * + 43 * - - 30 AS col0
----
23125

skipif mysql # not compatible
query I rowsort label-1588
SELECT ( 10 ) / + 39 + - 95 - + - 74 / 4 * + 43 * - - 30 AS col0
----
23125

onlyif mysql # DIV for integer division: 
query II rowsort label-1589
SELECT 92 col0, - 85 DIV + + 32 AS col2
----
92
-2

skipif mysql # not compatible
query II rowsort label-1589
SELECT 92 col0, - 85 / + + 32 AS col2
----
92
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-1590
SELECT + 81, + COUNT( * ) * - 52 + NULLIF ( - 33, + COALESCE ( - - 95, 75 * + 86 ) ) AS col1
----
81
-85

skipif mysql # not compatible
query II rowsort label-1590
SELECT + 81, + COUNT ( * ) * - 52 + NULLIF ( - 33, + COALESCE ( - - 95, 75 * + 86 ) ) AS col1
----
81
-85

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1593
SELECT ALL + 19 + - + COUNT( * ) * + 20 * CASE WHEN NULL IS NULL THEN - CASE 69 WHEN - + 95 THEN CAST( 19 AS SIGNED ) * - CASE - CASE - 4 WHEN + 91 * - 41 THEN - 53 * + ( - 28 ) WHEN 24 THEN MAX( DISTINCT 44 ) WHEN + 72 * 11 - 15 THEN NULL END WHEN 65 / + 89 THEN 6 * 5 END - 14 ELSE NULL END ELSE NULL END + 87 * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL + 19 + - + COUNT ( * ) * + 20 * CASE WHEN NULL IS NULL THEN - CASE 69 WHEN - + 95 THEN CAST ( 19 AS INTEGER ) * - CASE - CASE - 4 WHEN + 91 * - 41 THEN - 53 * + ( - 28 ) WHEN 24 THEN MAX ( DISTINCT 44 ) WHEN + 72 * 11 - 15 THEN NULL END WHEN 65 / + 89 THEN 6 * 5 END - 14 ELSE NULL END ELSE NULL END + 87 * - 90
----
NULL

query I rowsort
SELECT 97 * 82 col2
----
7954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1595
SELECT ALL + 10 / - MAX( - CAST( NULL AS SIGNED ) ) * CAST( 30 AS SIGNED ) * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL + 10 / - MAX ( - CAST ( NULL AS INTEGER ) ) * CAST ( 30 AS INTEGER ) * 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT DISTINCT COUNT( * ) - 94 - 93 * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT COUNT ( * ) - 94 - 93 * - + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT - 37 - + 29 AS col0
----
-66

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1599
SELECT 93 + 79 DIV - 6
----
80

skipif mysql # not compatible
query I rowsort label-1599
SELECT 93 + 79 / - 6
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-1600
SELECT 32 * + + COUNT( * ) * - - 86 AS col0, 77 + + 10 + - ( - 17 ) + + + ( 51 )
----
2752
155

skipif mysql # not compatible
query II rowsort label-1600
SELECT 32 * + + COUNT ( * ) * - - 86 AS col0, 77 + + 10 + - ( - 17 ) + + + ( 51 )
----
2752
155

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

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL - SUM ( 98 )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1602
SELECT 38 + COUNT( * ) * CASE + 38 WHEN - 9 + 86 THEN NULL WHEN - - MIN( DISTINCT 9 ) + 90 + + - 60 THEN + 86 ELSE - CAST( NULL AS DECIMAL ) * - + 3 END * + CAST( CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1602
SELECT 38 + COUNT ( * ) * CASE + 38 WHEN - 9 + 86 THEN NULL WHEN - - MIN ( DISTINCT 9 ) + 90 + + - 60 THEN + 86 ELSE - CAST ( NULL AS REAL ) * - + 3 END * + CAST ( CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1604
SELECT ALL + 20 - + ( + 91 ) * 89, CAST( NULL AS SIGNED ) + + 98 + - COUNT( * ) AS col0
----
-8079
NULL

skipif mysql # not compatible
query II rowsort label-1604
SELECT ALL + 20 - + ( + 91 ) * 89, CAST ( NULL AS INTEGER ) + + 98 + - COUNT ( * ) AS col0
----
-8079
NULL

query I rowsort
SELECT + 26 * + 82 AS col2
----
2132

query II rowsort
SELECT 14 * + - 39 * + + 10, 32 * + 77 AS col1
----
-5460
2464

query I rowsort
SELECT - 35 + - - 85
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT 47 + 92 * + + 22 - - COUNT( * )
----
2072

skipif mysql # not compatible
query I rowsort label-1608
SELECT 47 + 92 * + + 22 - - COUNT ( * )
----
2072

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT ALL COUNT( - 31 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL COUNT ( - 31 ) AS col2
----
1

query II rowsort
SELECT DISTINCT 80 AS col0, - 15 AS col2
----
80
-15

query I rowsort
SELECT + 84 + + 12 col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1612
SELECT COALESCE ( + + MAX( ALL - 82 ), + CAST( - CASE - COUNT( * ) WHEN 37 * - ( - + COUNT( * ) ) THEN NULL ELSE 94 END AS SIGNED ) * - + 21 * 0 - - 42 + + 76 ) + + 88 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1612
SELECT COALESCE ( + + MAX ( ALL - 82 ), + CAST ( - CASE - COUNT ( * ) WHEN 37 * - ( - + COUNT ( * ) ) THEN NULL ELSE 94 END AS INTEGER ) * - + 21 * 0 - - 42 + + 76 ) + + 88 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT 63 + + CASE + 50 WHEN - - 71 THEN NULL WHEN - COUNT( * ) THEN - 43 ELSE COUNT( * ) * + 41 END + + ( + - 32 ) + + + NULLIF ( + ( + + MAX( ALL 34 ) ), 74 * ( 18 ) )
----
106

skipif mysql # not compatible
query I rowsort label-1613
SELECT 63 + + CASE + 50 WHEN - - 71 THEN NULL WHEN - COUNT ( * ) THEN - 43 ELSE COUNT ( * ) * + 41 END + + ( + - 32 ) + + + NULLIF ( + ( + + MAX ( ALL 34 ) ), 74 * ( 18 ) )
----
106

query I rowsort
SELECT ALL - 70 + - 44 AS col2
----
-114

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1616
SELECT 96 * + + 30 + - - COUNT( * ) + - 44 + 23 * + + 96 * 14 * + 88 AS col2, - 35 AS col0
----
2723093
-35

skipif mysql # not compatible
query II rowsort label-1616
SELECT 96 * + + 30 + - - COUNT ( * ) + - 44 + 23 * + + 96 * 14 * + 88 AS col2, - 35 AS col0
----
2723093
-35

query I rowsort
SELECT ALL 4 * - + 68
----
-272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1618
SELECT - CAST( + - COUNT( * ) AS SIGNED ) / COUNT( * ) * - CAST( NULL AS DECIMAL ) + - - 83 - + COUNT( * ) * - - 62 + + 90 + - COUNT( * ) - - 73 - - COUNT( * ) * + ( + + NULLIF ( - 36, - 12 * 83 - COUNT( * ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) / COUNT ( * ) * - CAST ( NULL AS REAL ) + - - 83 - + COUNT ( * ) * - - 62 + + 90 + - COUNT ( * ) - - 73 - - COUNT ( * ) * + ( + + NULLIF ( - 36, - 12 * 83 - COUNT ( * ) ) ) col2
----
NULL

query I rowsort
SELECT ALL - 29 + 65
----
36

query I rowsort
SELECT - NULLIF ( + + ( + 98 ), + ( + - 64 ) - + CASE 69 WHEN 80 THEN NULL WHEN - 94 THEN - 15 END + + - 17 )
----
-98

query I rowsort
SELECT 13 + + 48 AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1622
SELECT CAST( NULL AS SIGNED ) * + 17 / 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT CAST ( NULL AS INTEGER ) * + 17 / 86 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1623
SELECT CASE - 57 WHEN + COUNT( * ) THEN NULL WHEN - COUNT( * ) * + 17 + + NULLIF ( 16, + CAST( - ( - - NULLIF ( + 7, - CAST( NULL AS SIGNED ) + 94 ) ) AS SIGNED ) * - - 81 ) * 18 THEN ( + COUNT( * ) ) + 38 WHEN 51 * 9 THEN 29 + + 14 ELSE NULL END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1623
SELECT CASE - 57 WHEN + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) * + 17 + + NULLIF ( 16, + CAST ( - ( - - NULLIF ( + 7, - CAST ( NULL AS INTEGER ) + 94 ) ) AS INTEGER ) * - - 81 ) * 18 THEN ( + COUNT ( * ) ) + 38 WHEN 51 * 9 THEN 29 + + 14 ELSE NULL END * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT MAX( ( + 47 ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1624
SELECT MAX ( ( + 47 ) ) AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1625
SELECT - CAST( NULL AS SIGNED ) * + 7 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1625
SELECT - CAST ( NULL AS INTEGER ) * + 7 - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1626
SELECT CAST( NULL AS SIGNED ) * - CASE 32 WHEN - COUNT( + CAST( + 29 AS SIGNED ) ) + + 63 THEN NULL WHEN + - AVG ( - 36 ) THEN + + 96 WHEN + - 18 + 27 * + 27 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT CAST ( NULL AS INTEGER ) * - CASE 32 WHEN - COUNT ( + CAST ( + 29 AS INTEGER ) ) + + 63 THEN NULL WHEN + - AVG ( - 36 ) THEN + + 96 WHEN + - 18 + 27 * + 27 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1627
SELECT ALL + 73 * + - ( + CAST( + - 57 AS SIGNED ) ) - - 65 * 78 + + COUNT( * ) + + 69 + + - NULLIF ( + 32, 39 ) col2
----
9269

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL + 73 * + - ( + CAST ( + - 57 AS INTEGER ) ) - - 65 * 78 + + COUNT ( * ) + + 69 + + - NULLIF ( + 32, 39 ) col2
----
9269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1628
SELECT - 40 - + CAST( 20 AS SIGNED ) * + COUNT( * ) AS col0, 40 AS col0
----
-60
40

skipif mysql # not compatible
query II rowsort label-1628
SELECT - 40 - + CAST ( 20 AS INTEGER ) * + COUNT ( * ) AS col0, 40 AS col0
----
-60
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT 24 * - ( CASE CASE COUNT( * ) WHEN + 34 THEN NULL WHEN + + COUNT( * ) * 96 THEN NULL WHEN + 26 THEN NULL ELSE ( - ( + 33 ) ) + - COALESCE ( - 26, NULLIF ( + ( 10 ), + 85 ), + NULLIF ( - 98, 66 / 32 ) ) - 92 END WHEN - 90 THEN + 76 WHEN 88 + 25 THEN NULL ELSE NULL END ) - 5 * - COALESCE ( + 17, + ( - COALESCE ( 21, 98 ) ) * COALESCE ( - 80 + 27, 44 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1629
SELECT 24 * - ( CASE CASE COUNT ( * ) WHEN + 34 THEN NULL WHEN + + COUNT ( * ) * 96 THEN NULL WHEN + 26 THEN NULL ELSE ( - ( + 33 ) ) + - COALESCE ( - 26, NULLIF ( + ( 10 ), + 85 ), + NULLIF ( - 98, 66 / 32 ) ) - 92 END WHEN - 90 THEN + 76 WHEN 88 + 25 THEN NULL ELSE NULL END ) - 5 * - COALESCE ( + 17, + ( - COALESCE ( 21, 98 ) ) * COALESCE ( - 80 + 27, 44 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT + 28 DIV - 2 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1630
SELECT + 28 / - 2 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1631
SELECT - 33 * MIN( DISTINCT + - CAST( - + 55 AS SIGNED ) ) DIV + 2 + 14 + - 61 * 25 * 84 * + - 71
----
9094207

skipif mysql # not compatible
query I rowsort label-1631
SELECT - 33 * MIN ( DISTINCT + - CAST ( - + 55 AS INTEGER ) ) / + 2 + 14 + - 61 * 25 * 84 * + - 71
----
9094207

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT DISTINCT SUM( DISTINCT + - 73 ) * - 66 * - 0
----
0

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT SUM ( DISTINCT + - 73 ) * - 66 * - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1633
SELECT - 4 + + 92 AS col1, + CASE - CAST( NULL AS SIGNED ) WHEN MAX( ALL + 6 ) * - 30 THEN - 75 END
----
88
NULL

skipif mysql # not compatible
query II rowsort label-1633
SELECT - 4 + + 92 AS col1, + CASE - CAST ( NULL AS INTEGER ) WHEN MAX ( ALL + 6 ) * - 30 THEN - 75 END
----
88
NULL

query I rowsort
SELECT - 37 + + + 61 AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1635
SELECT ALL + - COALESCE ( 0, - COALESCE ( + - 16, - - 53 * + 29 * - + NULLIF ( - 61, COUNT( * ) + 92 + 6 ) - + 18 - 67 + + - 50 + + 57, 36 DIV - 89, - MIN( CAST( NULL AS SIGNED ) ) * - 70 - + 5 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL + - COALESCE ( 0, - COALESCE ( + - 16, - - 53 * + 29 * - + NULLIF ( - 61, COUNT ( * ) + 92 + 6 ) - + 18 - 67 + + - 50 + + 57, 36 / - 89, - MIN ( CAST ( NULL AS INTEGER ) ) * - 70 - + 5 ) )
----
0

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

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

query I rowsort
SELECT ALL - COALESCE ( 46, - 99 * + 42 + - 19 + - 77, + 67 ) * + 75
----
-3450

query I rowsort
SELECT - - 71 * + 14 AS col1
----
994

onlyif mysql # aggregate syntax: 
query II rowsort label-1639
SELECT ALL + + 15 + - + MAX( ALL NULLIF ( 19, 10 ) ) + + 59 * 24, + 49 * + + 77 AS col2
----
1412
3773

skipif mysql # not compatible
query II rowsort label-1639
SELECT ALL + + 15 + - + MAX ( ALL NULLIF ( 19, 10 ) ) + + 59 * 24, + 49 * + + 77 AS col2
----
1412
3773

query II rowsort
SELECT - - 85 + 45 col1, 87
----
130
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1641
SELECT ALL - 74 + + - 7 AS col1, COUNT( * )
----
-81
1

skipif mysql # not compatible
query II rowsort label-1641
SELECT ALL - 74 + + - 7 AS col1, COUNT ( * )
----
-81
1

query I rowsort
SELECT - + 10 * ( - 39 ) AS col1
----
390

query I rowsort
SELECT - 96 * - 35 AS col2
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT - 35 - - COUNT( * ) + + COUNT( * ) + + 41 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1644
SELECT - 35 - - COUNT ( * ) + + COUNT ( * ) + + 41 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT DISTINCT + 72 + - 6 + - COUNT( * ) + - ( + COUNT( * ) ) * 80 * 85 * + + 91 * + - 43 AS col2
----
26608465

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT + 72 + - 6 + - COUNT ( * ) + - ( + COUNT ( * ) ) * 80 * 85 * + + 91 * + - 43 AS col2
----
26608465

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

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

query I rowsort
SELECT ALL - 39 + - - 85 AS col2
----
46

query I rowsort
SELECT DISTINCT 11 + 26 AS col0
----
37

query I rowsort
SELECT ALL + 58 + - - 80
----
138

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

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

query II rowsort
SELECT - + ( + 61 ) col2, + 72 AS col0
----
-61
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT + - MAX( + - 42 ) - - 61 + 68 AS col2
----
171

skipif mysql # not compatible
query I rowsort label-1652
SELECT + - MAX ( + - 42 ) - - 61 + 68 AS col2
----
171

query I rowsort
SELECT - + 9 + - CASE + - 98 WHEN + - 33 THEN - 44 END AS col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT - 41 * - COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1656
SELECT - 41 * - COUNT ( * ) AS col1
----
41

query I rowsort
SELECT + 47 * 31 AS col1
----
1457

query I rowsort
SELECT DISTINCT 53 * 20 AS col0
----
1060

onlyif mysql # DIV for integer division: 
query I rowsort label-1659
SELECT DISTINCT - 37 DIV - + 27
----
1

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT - 37 / - + 27
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT + 94 + - - COUNT( * ) + - 63
----
32

skipif mysql # not compatible
query I rowsort label-1661
SELECT + 94 + - - COUNT ( * ) + - 63
----
32

query I rowsort
SELECT ALL - 19 - + 40 * + 82 * 10
----
-32819

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1663
SELECT DISTINCT ( + + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT ( + + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT + 88 * + + 39 AS col1
----
3432

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT ALL CASE - 91 WHEN + + NULLIF ( + COUNT( * ), - COUNT( * ) ) THEN - + 63 END * 46 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL CASE - 91 WHEN + + NULLIF ( + COUNT ( * ), - COUNT ( * ) ) THEN - + 63 END * 46 col2
----
NULL

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

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

query I rowsort
SELECT 19 * + - 36 + + - 90 * + 82
----
-8064

query I rowsort
SELECT ( - 80 ) col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-1669
SELECT - 2 DIV - 89 + + ( - - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-1669
SELECT - 2 / - 89 + + ( - - 73 )
----
73

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

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

query I rowsort
SELECT + 57 * 82
----
4674

query I rowsort
SELECT + 16 + - NULLIF ( 60, + + 38 ) AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1673
SELECT DISTINCT + 63 col1, 64 * - ( CAST( NULL AS SIGNED ) ) col1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-1673
SELECT DISTINCT + 63 col1, 64 * - ( CAST ( NULL AS INTEGER ) ) col1
----
63
NULL

query I rowsort
SELECT 48 * + + 97 + - - 40 + - + 49
----
4647

query I rowsort
SELECT DISTINCT 33 * - 22 AS col0
----
-726

query I rowsort
SELECT ALL - - 92 * 76
----
6992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1677
SELECT ALL + CAST( NULL AS SIGNED ) * 22 + - - 70 * 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + CAST ( NULL AS INTEGER ) * 22 + - - 70 * 37 AS col2
----
NULL

query I rowsort
SELECT + 83 * + 82 col0
----
6806

query I rowsort
SELECT + 53 + + + 59 * + ( 44 )
----
2649

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT + + COALESCE ( + 47, + - MIN( + 15 ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-1680
SELECT + + COALESCE ( + 47, + - MIN ( + 15 ) ) AS col0
----
47

query I rowsort
SELECT ALL 41 * - 77 * ( - 89 ) AS col1
----
280973

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1682
SELECT 34 * + + COUNT( * ) + - - 49 - - 88 + + - MIN( DISTINCT 10 ) * + - 47 * 45 + CASE + - CASE - 14 WHEN 22 THEN NULL WHEN 33 * + 20 * - 28 * 45 + + 2 THEN 63 WHEN ( 97 ) * - 68 + + 69 / - CAST( 89 AS DECIMAL ) THEN NULL END WHEN + 59 + 40 * + COUNT( * ) THEN NULL ELSE - COUNT( * ) END + - 5
----
21315

skipif mysql # not compatible
query I rowsort label-1682
SELECT 34 * + + COUNT ( * ) + - - 49 - - 88 + + - MIN ( DISTINCT 10 ) * + - 47 * 45 + CASE + - CASE - 14 WHEN 22 THEN NULL WHEN 33 * + 20 * - 28 * 45 + + 2 THEN 63 WHEN ( 97 ) * - 68 + + 69 / - CAST ( 89 AS REAL ) THEN NULL END WHEN + 59 + 40 * + COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END + - 5
----
21315

query I rowsort
SELECT + + 23 + 29 * - 56 * + + 21
----
-34081

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

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

query I rowsort
SELECT ALL + NULLIF ( + + 43, - - 75 * + + 80 ) * + + 13 + 42
----
601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1686
SELECT ALL + COALESCE ( + AVG ( - + 93 ), + - 14 ) * ( + - MIN( ALL + 45 ) ) * + ( - CAST( NULL AS SIGNED ) ) + + 48 + - 68 - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + COALESCE ( + AVG ( - + 93 ), + - 14 ) * ( + - MIN ( ALL + 45 ) ) * + ( - CAST ( NULL AS INTEGER ) ) + + 48 + - 68 - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1687
SELECT ALL + + 94 * - 34 + SUM( + 96 ) + - NULLIF ( - - COUNT( * ), - 63 + 35 ) * 56 + - - 64 + 5 + 47 * + 94 + + 77 * + MIN( ALL - CAST( NULL AS SIGNED ) ) + 17 * MAX( DISTINCT - ( - 91 ) - + 34 ) * 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL + + 94 * - 34 + SUM ( + 96 ) + - NULLIF ( - - COUNT ( * ), - 63 + 35 ) * 56 + - - 64 + 5 + 47 * + 94 + + 77 * + MIN ( ALL - CAST ( NULL AS INTEGER ) ) + 17 * MAX ( DISTINCT - ( - 91 ) - + 34 ) * 18 AS col2
----
NULL

query II rowsort
SELECT - 38 col2, 15
----
-38
15

query I rowsort
SELECT - 96 + - ( - 76 ) + - 64
----
-84

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

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

skipif mysql # not compatible
query I rowsort label-1691
SELECT - CAST ( NULL AS INTEGER ) + + 16 * + - 78
----
NULL

query I rowsort
SELECT ALL - 23 * + + 79 AS col2
----
-1817

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT 22 * + 29 * + + COUNT( * ) AS col0
----
638

skipif mysql # not compatible
query I rowsort label-1695
SELECT 22 * + 29 * + + COUNT ( * ) AS col0
----
638

query II rowsort
SELECT 15 AS col0, + 64
----
15
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1697
SELECT 12 DIV + 15 col1
----
0

skipif mysql # not compatible
query I rowsort label-1697
SELECT 12 / + 15 col1
----
0

query I rowsort
SELECT 48 + - 90 AS col0
----
-42

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

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

query I rowsort
SELECT 31 - - - 98 AS col1
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1701
SELECT ALL + 88 DIV - 61 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL + 88 / - 61 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1702
SELECT 38 DIV 18 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1702
SELECT 38 / 18 AS col0
----
2

query I rowsort
SELECT ALL 92 * + ( + - 81 ) AS col2
----
-7452

query II rowsort
SELECT 47 * + 86 AS col1, + 84 * - - 72 AS col0
----
4042
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT ALL - 16 + 1 - + - COALESCE ( + - 3, - MIN( 89 ), 24 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL - 16 + 1 - + - COALESCE ( + - 3, - MIN ( 89 ), 24 ) AS col2
----
-18

query I rowsort
SELECT ALL 68 + + 4 AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1707
SELECT 41 AS col0, 3 * + COUNT( * )
----
41
3

skipif mysql # not compatible
query II rowsort label-1707
SELECT 41 AS col0, 3 * + COUNT ( * )
----
41
3

query II rowsort
SELECT + 3 AS col1, - 75 * + 70 + - 94
----
3
-5344

query I rowsort
SELECT 22 * - + 0 * + 40 col0
----
0

query I rowsort
SELECT - 55 - + - 47 * - - 56 AS col0
----
2577

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT - SUM( DISTINCT + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1711
SELECT - SUM ( DISTINCT + 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1712
SELECT ALL - + COUNT( * ) AS col1, - COALESCE ( + COUNT( * ), - SUM( ALL - - 77 ) ) AS col0
----
-1
-1

skipif mysql # not compatible
query II rowsort label-1712
SELECT ALL - + COUNT ( * ) AS col1, - COALESCE ( + COUNT ( * ), - SUM ( ALL - - 77 ) ) AS col0
----
-1
-1

query I rowsort
SELECT ( 35 ) * - 48
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT DISTINCT - - ( - + ( - - CASE + COUNT( * ) WHEN + 65 THEN - COUNT( * ) * - COUNT( * ) END ) ) + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT - - ( - + ( - - CASE + COUNT ( * ) WHEN + 65 THEN - COUNT ( * ) * - COUNT ( * ) END ) ) + 25 AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT 70 + - 88
----
-18

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

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

query II rowsort
SELECT + 60 AS col1, 94 * - 87
----
60
-8178

query II rowsort
SELECT - + COALESCE ( - 0, ( - 17 ), 81 + - 21 ) AS col1, 37 + - 17
----
0
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT DISTINCT MAX( - ( - 14 ) ) * + + 15 + - 6
----
204

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT MAX ( - ( - 14 ) ) * + + 15 + - 6
----
204

query I rowsort
SELECT ( + 28 ) - + 31
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1722
SELECT + NULLIF ( - + 51, - + COUNT( + - 98 ) * + - 84 ) * - 66 col1, - 66
----
3366
-66

skipif mysql # not compatible
query II rowsort label-1722
SELECT + NULLIF ( - + 51, - + COUNT ( + - 98 ) * + - 84 ) * - 66 col1, - 66
----
3366
-66

query I rowsort
SELECT + 47 + + 5 + + 98 AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT ALL 24 - COUNT( ALL - 35 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL 24 - COUNT ( ALL - 35 ) AS col0
----
23

query I rowsort
SELECT ALL 83 * + 50 AS col0
----
4150

query I rowsort
SELECT ALL - 19 - - 1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT 13 * - CASE - - 96 WHEN + + 6 THEN + COUNT( * ) * + ( + + 64 ) WHEN + 53 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT 13 * - CASE - - 96 WHEN + + 6 THEN + COUNT ( * ) * + ( + + 64 ) WHEN + 53 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1728
SELECT 16 + + CAST( NULL AS SIGNED ), + 55 * - MIN( + 91 ) AS col1
----
NULL
-5005

skipif mysql # not compatible
query II rowsort label-1728
SELECT 16 + + CAST ( NULL AS INTEGER ), + 55 * - MIN ( + 91 ) AS col1
----
NULL
-5005

query I rowsort
SELECT 25 * + 92 AS col0
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT 96 + - MIN( ALL - 76 ) * 15 * + - 23
----
-26124

skipif mysql # not compatible
query I rowsort label-1730
SELECT 96 + - MIN ( ALL - 76 ) * 15 * + - 23
----
-26124

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT 32 - + 4 + COUNT( * ) - + - 21 + 76 * - - 88 * + COUNT( - 94 )
----
6738

skipif mysql # not compatible
query I rowsort label-1731
SELECT 32 - + 4 + COUNT ( * ) - + - 21 + 76 * - - 88 * + COUNT ( - 94 )
----
6738

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT 31 + + 56 - + 59 + + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-1733
SELECT 31 + + 56 - + 59 + + - COUNT ( * )
----
27

query I rowsort
SELECT 41 + 45
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT 84 * - - 44 * COUNT( - - 58 ) * + 10 * + 43 + + 51 * - ( 24 )
----
1588056

skipif mysql # not compatible
query I rowsort label-1735
SELECT 84 * - - 44 * COUNT ( - - 58 ) * + 10 * + 43 + + 51 * - ( 24 )
----
1588056

query I rowsort
SELECT 31 * + 22 AS col0
----
682

query I rowsort
SELECT ALL - COALESCE ( - - 98, ( 94 ) ) AS col1
----
-98

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1739
SELECT + CAST( NULL AS DECIMAL ) / + - 95 + - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT + CAST ( NULL AS REAL ) / + - 95 + - 98 AS col2
----
NULL

query II rowsort
SELECT ALL - + 96 + 82 col1, + 34 * + - 26 AS col0
----
-14
-884

query I rowsort
SELECT DISTINCT - + CASE - 60 WHEN - 24 THEN + 85 ELSE NULL END + + + 46
----
NULL

query I rowsort
SELECT DISTINCT + - ( + - 55 ) / CASE - + 60 WHEN - 41 * - 5 THEN NULL WHEN 96 - - 51 THEN + 24 - 91 + + - 8 + + 50 END + NULLIF ( + + 29, - 21 ) + - 43 * - 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1743
SELECT + 20 DIV + ( + 32 ) * + 18 - + 53 + + 79 * + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-1743
SELECT + 20 / + ( + 32 ) * + 18 - + 53 + + 79 * + COUNT ( * )
----
26

query I rowsort
SELECT ALL 59 * - + 1 + + 84 + + + 38
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1745
SELECT - 29 * - + 36, - COUNT( * ) + + - 42 + + - 99 DIV + 69 AS col1
----
1044
-44

skipif mysql # not compatible
query II rowsort label-1745
SELECT - 29 * - + 36, - COUNT ( * ) + + - 42 + + - 99 / + 69 AS col1
----
1044
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1746
SELECT ALL + 51 * 21 + COUNT( * ) + + 30 DIV ( 71 ) * - 95
----
1072

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL + 51 * 21 + COUNT ( * ) + + 30 / ( 71 ) * - 95
----
1072

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

query I rowsort
SELECT 65 * + + ( + - 42 ) + - - 69 AS col0
----
-2661

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

query II rowsort
SELECT + 51 + 3 AS col2, 70 AS col2
----
54
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT + NULLIF ( + + COUNT( * ), + COALESCE ( 81, 89 + + 97, - - 65 ) - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1751
SELECT + NULLIF ( + + COUNT ( * ), + COALESCE ( 81, 89 + + 97, - - 65 ) - + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1752
SELECT + CAST( NULL AS SIGNED ) * - - 66 * - 28 + - + SUM( DISTINCT 85 ) * - 3 + + 22 / + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT + CAST ( NULL AS INTEGER ) * - - 66 * - 28 + - + SUM ( DISTINCT 85 ) * - 3 + + 22 / + + 5
----
NULL

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

query I rowsort
SELECT DISTINCT NULLIF ( 96, 85 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1755
SELECT DISTINCT COALESCE ( COUNT( * ), 39 * 76 + - COUNT( * ), COUNT( * ) * + NULLIF ( + + 59, 8 / - SUM( - 54 ) * + + 89 * NULLIF ( + 4, + COUNT( 26 ) ) * - 20 + COALESCE ( 57, 41 ) - - 52 ) * + CAST( NULL AS SIGNED ) + + 81 ) * 85
----
85

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT COALESCE ( COUNT ( * ), 39 * 76 + - COUNT ( * ), COUNT ( * ) * + NULLIF ( + + 59, 8 / - SUM ( - 54 ) * + + 89 * NULLIF ( + 4, + COUNT ( 26 ) ) * - 20 + COALESCE ( 57, 41 ) - - 52 ) * + CAST ( NULL AS INTEGER ) + + 81 ) * 85
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1756
SELECT 87 * - COALESCE ( - + SUM( + ( - - 95 ) ), CAST( NULL AS SIGNED ) ) + - 81 - - + 9 - 72
----
8121

skipif mysql # not compatible
query I rowsort label-1756
SELECT 87 * - COALESCE ( - + SUM ( + ( - - 95 ) ), CAST ( NULL AS INTEGER ) ) + - 81 - - + 9 - 72
----
8121

onlyif mysql # aggregate syntax: 
query II rowsort label-1757
SELECT + 47 * ( + 8 ) AS col2, - COUNT( + - 90 ) * - 80
----
376
80

skipif mysql # not compatible
query II rowsort label-1757
SELECT + 47 * ( + 8 ) AS col2, - COUNT ( + - 90 ) * - 80
----
376
80

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

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

query I rowsort
SELECT + 65 + - - 35 - - 54 AS col2
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT ALL CASE WHEN - 20 NOT IN ( 26, + ( - 67 ) + - - 28 + + 39 ) THEN + 45 + + 89 * + COUNT( * ) * + 82 * - 10 * + 86 END * - - 84 AS col1
----
-527203740

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL CASE WHEN - 20 NOT IN ( 26, + ( - 67 ) + - - 28 + + 39 ) THEN + 45 + + 89 * + COUNT ( * ) * + 82 * - 10 * + 86 END * - - 84 AS col1
----
-527203740

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1763
SELECT - COUNT ( * ), + 99 AS col2
----
-1
99

query I rowsort
SELECT + 11 / CASE - ( - AVG ( + 89 ) ) WHEN + 61 * - 27 THEN NULL WHEN - 5 THEN 0 END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1766
SELECT ALL CAST( NULL AS SIGNED ) + - 28 + + + CASE + 37 WHEN 87 * + - 51 + + 1 THEN MAX( ALL - 22 ) + 6 ELSE NULL END + + - 44 - - CAST( NULL AS SIGNED ) * + 74 * - ( + 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL CAST ( NULL AS INTEGER ) + - 28 + + + CASE + 37 WHEN 87 * + - 51 + + 1 THEN MAX ( ALL - 22 ) + 6 ELSE NULL END + + - 44 - - CAST ( NULL AS INTEGER ) * + 74 * - ( + 53 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ALL 93 + + COALESCE ( - - 39, - 31 + 45 * - COALESCE ( - COUNT( * ), - + MAX( 22 ) ), - + 64 ) AS col0
----
132

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL 93 + + COALESCE ( - - 39, - 31 + 45 * - COALESCE ( - COUNT ( * ), - + MAX ( 22 ) ), - + 64 ) AS col0
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1768
SELECT DISTINCT ( - SUM( ALL - + 66 ) ) * + - 36 + NULLIF ( - ( + + 73 ), + 45 ) * - CASE WHEN 38 < NULL THEN + - 27 END * 41 + - 10 / + COUNT( * ) + - 99 + - 30 + - 52 - - ( 66 ) * - CAST( NULL AS SIGNED ) * - CASE ( COUNT( * ) ) + 78 WHEN - ( 86 ) THEN 42 * 84 ELSE + 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT ( - SUM ( ALL - + 66 ) ) * + - 36 + NULLIF ( - ( + + 73 ), + 45 ) * - CASE WHEN 38 < NULL THEN + - 27 END * 41 + - 10 / + COUNT ( * ) + - 99 + - 30 + - 52 - - ( 66 ) * - CAST ( NULL AS INTEGER ) * - CASE ( COUNT ( * ) ) + 78 WHEN - ( 86 ) THEN 42 * 84 ELSE + 76 END AS col2
----
NULL

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

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

query I rowsort
SELECT + 57 * + 9 * + - 77 AS col0
----
-39501

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL COUNT( 21 ) + - 30 * - 94
----
2821

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL COUNT ( 21 ) + - 30 * - 94
----
2821

query I rowsort
SELECT + 69 - 20 - 56 * - 62
----
3521

query I rowsort
SELECT - 51 * + + 57 AS col0
----
-2907

query I rowsort
SELECT + 21 + - 15
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1775
SELECT - COALESCE ( + 40, + COUNT( * ), + - CAST( NULL AS SIGNED ) DIV - CASE + 20 WHEN - - COUNT( * ) THEN - 42 + - COUNT( * ) * + - 3 ELSE NULL END ) * - + 13, - 78 + - 7 col0
----
520
-85

skipif mysql # not compatible
query II rowsort label-1775
SELECT - COALESCE ( + 40, + COUNT ( * ), + - CAST ( NULL AS INTEGER ) / - CASE + 20 WHEN - - COUNT ( * ) THEN - 42 + - COUNT ( * ) * + - 3 ELSE NULL END ) * - + 13, - 78 + - 7 col0
----
520
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1776
SELECT - 38, COUNT( * ) * + + 52 DIV - - 84 AS col1
----
-38
0

skipif mysql # not compatible
query II rowsort label-1776
SELECT - 38, COUNT ( * ) * + + 52 / - - 84 AS col1
----
-38
0

query II rowsort
SELECT ALL + 52, 79 * - + 32 AS col1
----
52
-2528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1778
SELECT + + CAST( - 19 AS SIGNED ) * - 62 * - 26 - + + COUNT( * ) col2
----
-30629

skipif mysql # not compatible
query I rowsort label-1778
SELECT + + CAST ( - 19 AS INTEGER ) * - 62 * - 26 - + + COUNT ( * ) col2
----
-30629

query I rowsort
SELECT ALL + 66 * - + 3
----
-198

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

skipif mysql # not compatible
query I rowsort label-1780
SELECT - COALESCE ( + CAST ( - + COUNT ( * ) AS INTEGER ), - + 21, ( 60 ) )
----
1

query I rowsort
SELECT + - 16 + - NULLIF ( 77, - 34 )
----
-93

query I rowsort
SELECT - - 11 * + 99 - + 26
----
1063

query I rowsort
SELECT ALL + + ( - 51 ) col0
----
-51

query I rowsort
SELECT NULLIF ( + + ( + 49 ), - 72 ) AS col1
----
49

query I rowsort
SELECT - + 51 * + + 30 - - - 34 - + + 19 AS col0
----
-1583

query I rowsort
SELECT - 93 * - 26
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT - 62 * MIN( + 24 ) * - 40 - - - 5 AS col0
----
59515

skipif mysql # not compatible
query I rowsort label-1787
SELECT - 62 * MIN ( + 24 ) * - 40 - - - 5 AS col0
----
59515

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1788
SELECT ALL + - 89 / + CASE - - COUNT( * ) WHEN - 48 * 15 THEN - 14 * - 6 + - + MAX( 2 ) + + COALESCE ( 55, 3 * NULLIF ( ( - 49 ), + CAST( + 29 AS DECIMAL ) / + 90 * - 4 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL + - 89 / + CASE - - COUNT ( * ) WHEN - 48 * 15 THEN - 14 * - 6 + - + MAX ( 2 ) + + COALESCE ( 55, 3 * NULLIF ( ( - 49 ), + CAST ( + 29 AS REAL ) / + 90 * - 4 ) ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - NULLIF ( + + 21, - + 76 + + 39 ), - 90 * 97 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT + NULLIF ( + 58, - 9 + - - 94 + 47 + - 83 - 95 + + 88 * - 7 * - 21 * - + ( - 90 ) * - - 10 * 42 + + - COUNT( + 50 ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1790
SELECT + NULLIF ( + 58, - 9 + - - 94 + 47 + - 83 - 95 + + 88 * - 7 * - 21 * - + ( - 90 ) * - - 10 * 42 + + - COUNT ( + 50 ) ) AS col1
----
58

query I rowsort
SELECT - 20 + 88 AS col2
----
68

query I rowsort
SELECT - + 84 * 46 AS col1
----
-3864

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1793
SELECT + CAST( NULL AS SIGNED ) * + 48 + CASE - 23 WHEN 22 THEN - - ( - + 85 ) END / 15 AS col2, 60 * - 4
----
NULL
-240

skipif mysql # not compatible
query II rowsort label-1793
SELECT + CAST ( NULL AS INTEGER ) * + 48 + CASE - 23 WHEN 22 THEN - - ( - + 85 ) END / 15 AS col2, 60 * - 4
----
NULL
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1794
SELECT - 59 + + MIN( ALL - 46 ) + - 92 - + 23 - + 31 / + 79 / CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1794
SELECT - 59 + + MIN ( ALL - 46 ) + - 92 - + 23 - + 31 / + 79 / CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

query I rowsort
SELECT + 65 * - 52 AS col2
----
-3380

onlyif mysql # aggregate syntax: 
query II rowsort label-1796
SELECT ALL + 1 * - - 99 AS col1, + COUNT( * ) + - 73
----
99
-72

skipif mysql # not compatible
query II rowsort label-1796
SELECT ALL + 1 * - - 99 AS col1, + COUNT ( * ) + - 73
----
99
-72

query I rowsort
SELECT - 35 + - 24 * 31
----
-779

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT SUM( - - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-1798
SELECT SUM ( - - 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT MAX( ALL - + 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-1799
SELECT MAX ( ALL - + 84 ) AS col2
----
-84

query I rowsort
SELECT - 29 + - 57 * - + 2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ALL ( + SUM( DISTINCT ( + - 69 ) ) )
----
-69

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL ( + SUM ( DISTINCT ( + - 69 ) ) )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1802
SELECT ALL + ( - COALESCE ( - - 75, + COUNT( * ) - - - 39, - COALESCE ( - 90, + 93 + 99 * + 78 ) * COUNT( * ) - + + 50 DIV + 30 ) ) * + 68 + + 39
----
-5061

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL + ( - COALESCE ( - - 75, + COUNT ( * ) - - - 39, - COALESCE ( - 90, + 93 + 99 * + 78 ) * COUNT ( * ) - + + 50 / + 30 ) ) * + 68 + + 39
----
-5061

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1803
SELECT DISTINCT - COUNT( * ) + MIN( ALL + + 12 ) DIV + MAX( - 87 ) + + + 8 + CAST( - MAX( ALL 81 ) AS SIGNED ) * + 60 AS col0
----
-4853

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT - COUNT ( * ) + MIN ( ALL + + 12 ) / + MAX ( - 87 ) + + + 8 + CAST ( - MAX ( ALL 81 ) AS INTEGER ) * + 60 AS col0
----
-4853

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

query I rowsort
SELECT ALL - ( 1 ) + 51 AS col2
----
50

query II rowsort
SELECT - 69 + + 13 AS col1, 50 - + - 64
----
-56
114

query II rowsort
SELECT - ( 58 ) AS col2, + ( 49 ) * - 90 AS col2
----
-58
-4410

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT - 46 + 29 * + COUNT( * ) * - - 99 AS col0
----
2825

skipif mysql # not compatible
query I rowsort label-1808
SELECT - 46 + 29 * + COUNT ( * ) * - - 99 AS col0
----
2825

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT + MAX( + 51 ) + + - 16
----
35

skipif mysql # not compatible
query I rowsort label-1809
SELECT + MAX ( + 51 ) + + - 16
----
35

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

skipif mysql # not compatible
query I rowsort label-1810
SELECT - MAX ( DISTINCT - 9 )
----
9

query I rowsort
SELECT DISTINCT 75 + - + 25 * + - 4
----
175

query I rowsort
SELECT + NULLIF ( - 12, + + 48 ) + - ( - + ( 56 ) ) + + 49 * 15 AS col0
----
779

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL 10 - - 14 - 36 - 14 * - - 28 * 24 + + 26 - + COUNT( * )
----
-9395

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL 10 - - 14 - 36 - 14 * - - 28 * 24 + + 26 - + COUNT ( * )
----
-9395

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT + COUNT( * ) + + + 53 + 40 * COUNT( - - 9 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-1814
SELECT + COUNT ( * ) + + + 53 + 40 * COUNT ( - - 9 ) AS col1
----
94

query II rowsort
SELECT DISTINCT 35 * 50 col1, 4 AS col2
----
1750
4

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1817
SELECT DISTINCT + CASE - 72 WHEN - CAST( + ( + + COALESCE ( - 28, 13, 45 + 94 ) ) AS SIGNED ) THEN 80 WHEN - 99 * - ( + + 57 ) THEN NULL WHEN - 41 * - 83 THEN NULL END * - - 92 * - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT + CASE - 72 WHEN - CAST ( + ( + + COALESCE ( - 28, 13, 45 + 94 ) ) AS INTEGER ) THEN 80 WHEN - 99 * - ( + + 57 ) THEN NULL WHEN - 41 * - 83 THEN NULL END * - - 92 * - 89 AS col1
----
NULL

query I rowsort
SELECT ALL - 26 - - 13 AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1819
SELECT + + 40 / - + CASE - 13 WHEN 13 * + CAST( NULL AS SIGNED ) / - 0 + 49 + CAST( NULL AS SIGNED ) THEN NULL WHEN + 43 + - 32 * + COUNT( * ) + - + 26 * - 44 THEN 45 END, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1819
SELECT + + 40 / - + CASE - 13 WHEN 13 * + CAST ( NULL AS INTEGER ) / - 0 + 49 + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 43 + - 32 * + COUNT ( * ) + - + 26 * - 44 THEN 45 END, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1820
SELECT - - NULLIF ( 22, 72 ) DIV + 61 - - 94 + + 52 AS col2
----
146

skipif mysql # not compatible
query I rowsort label-1820
SELECT - - NULLIF ( 22, 72 ) / + 61 - - 94 + + 52 AS col2
----
146

query I rowsort
SELECT ALL + 10 * - + 22
----
-220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1822
SELECT ALL + 39 DIV ( + 72 ) DIV + COUNT( * ) * + - 36 + + COUNT( * ) + NULLIF ( - COUNT( * ), + 76 + 67 * + 9 ) * - COUNT( * ) + - 5 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL + 39 / ( + 72 ) / + COUNT ( * ) * + - 36 + + COUNT ( * ) + NULLIF ( - COUNT ( * ), + 76 + 67 * + 9 ) * - COUNT ( * ) + - 5 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT ALL + 50 * - NULLIF ( + COUNT( * ), + 23 ) - + SUM( ALL - COALESCE ( + 50, - + 1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL + 50 * - NULLIF ( + COUNT ( * ), + 23 ) - + SUM ( ALL - COALESCE ( + 50, - + 1 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1824
SELECT - 66 * - ( + ( + - 98 ) ) * CAST( NULL AS SIGNED ) + 92 + 79 * COUNT( * ) * - - 70 + + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT - 66 * - ( + ( + - 98 ) ) * CAST ( NULL AS INTEGER ) + 92 + 79 * COUNT ( * ) * - - 70 + + 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT MAX( 56 )
----
56

skipif mysql # not compatible
query I rowsort label-1825
SELECT MAX ( 56 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1826
SELECT ALL + 58 + + COALESCE ( - CAST( + + 47 AS SIGNED ), - COALESCE ( 52, + ( + 44 ) ), 16 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL + 58 + + COALESCE ( - CAST ( + + 47 AS INTEGER ), - COALESCE ( 52, + ( + 44 ) ), 16 ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT - NULLIF ( - ( - 75 ), - 12 ) + + MAX( ALL - - 82 ) * - - 22
----
1729

skipif mysql # not compatible
query I rowsort label-1827
SELECT - NULLIF ( - ( - 75 ), - 12 ) + + MAX ( ALL - - 82 ) * - - 22
----
1729

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT 6 DIV + COALESCE ( + 61, - - 60 )
----
0

skipif mysql # not compatible
query I rowsort label-1828
SELECT 6 / + COALESCE ( + 61, - - 60 )
----
0

query I rowsort
SELECT 97 * 3 * - + 0 + - + 70 * - 43 AS col1
----
3010

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT ALL - MIN( 32 ) + COUNT( * ) * - + 83 * + 53 + - 22
----
-4453

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL - MIN ( 32 ) + COUNT ( * ) * - + 83 * + 53 + - 22
----
-4453

onlyif mysql # aggregate syntax: 
query II rowsort label-1831
SELECT DISTINCT - ( - SUM( + 80 ) ) AS col0, COUNT( ( + - 31 ) ) - - + 14
----
80
15

skipif mysql # not compatible
query II rowsort label-1831
SELECT DISTINCT - ( - SUM ( + 80 ) ) AS col0, COUNT ( ( + - 31 ) ) - - + 14
----
80
15

query I rowsort
SELECT ALL - 61 + 99 * - - 95 AS col0
----
9344

query II rowsort
SELECT ALL 80, 47 AS col1
----
80
47

query I rowsort
SELECT 41 * - ( 23 )
----
-943

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1835
SELECT DISTINCT - COUNT( * ) DIV - - 13 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT - COUNT ( * ) / - - 13 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1836
SELECT 57 * + CAST( + 54 AS SIGNED ) AS col2, 58 * + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * 20 AS col0
----
3078
NULL

skipif mysql # not compatible
query II rowsort label-1836
SELECT 57 * + CAST ( + 54 AS INTEGER ) AS col2, 58 * + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * 20 AS col0
----
3078
NULL

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

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

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

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

query I rowsort
SELECT ALL - 98 - - 83 * + - 25
----
-2173

query I rowsort
SELECT 56 * 51 AS col2
----
2856

query I rowsort
SELECT ALL + 99 - - 60 col2
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT DISTINCT CASE - + COUNT( * ) WHEN 97 * + MAX( DISTINCT 1 ) THEN - - 11 - + 8 * 11 * + - 10 * + + 29 WHEN - COUNT( * ) THEN - 84 END col0
----
-84

skipif mysql # not compatible
query I rowsort label-1842
SELECT DISTINCT CASE - + COUNT ( * ) WHEN 97 * + MAX ( DISTINCT 1 ) THEN - - 11 - + 8 * 11 * + - 10 * + + 29 WHEN - COUNT ( * ) THEN - 84 END col0
----
-84

query I rowsort
SELECT 71 + 68 AS col0
----
139

query I rowsort
SELECT - 39 + - 88 + 21 AS col0
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT DISTINCT - COUNT( 31 ) * + 95
----
-95

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT - COUNT ( 31 ) * + 95
----
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-1846
SELECT ALL - + 55 DIV 86 * + 99, 49 + 91 AS col0
----
0
140

skipif mysql # not compatible
query II rowsort label-1846
SELECT ALL - + 55 / 86 * + 99, 49 + 91 AS col0
----
0
140

query I rowsort
SELECT DISTINCT - - 5 * + - 28
----
-140

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

query I rowsort
SELECT 50 * + - 27 AS col0
----
-1350

query I rowsort
SELECT - 64 * - - 77
----
-4928

onlyif mysql # aggregate syntax: 
query II rowsort label-1851
SELECT - 71 * + - COUNT( * ) + - COUNT( * ) AS col0, 13 col2
----
70
13

skipif mysql # not compatible
query II rowsort label-1851
SELECT - 71 * + - COUNT ( * ) + - COUNT ( * ) AS col0, 13 col2
----
70
13

query I rowsort
SELECT ALL + 96 + 92 - 24 + 2 AS col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT DISTINCT MIN( 60 ) + 16
----
76

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT MIN ( 60 ) + 16
----
76

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

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

query II rowsort
SELECT 94, - 68 col2
----
94
-68

query I rowsort
SELECT ALL - 29 + + - 41
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1857
SELECT DISTINCT 5 * + CAST( NULL AS DECIMAL ), ( 65 ) AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-1857
SELECT DISTINCT 5 * + CAST ( NULL AS REAL ), ( 65 ) AS col0
----
NULL
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT - NULLIF ( 53, + 3 * + 8 ) * + - MAX( 31 ) + + 55
----
1698

skipif mysql # not compatible
query I rowsort label-1858
SELECT - NULLIF ( 53, + 3 * + 8 ) * + - MAX ( 31 ) + + 55
----
1698

query I rowsort
SELECT 57 - - - 26 + + 21 + - 80 * + + ( - 43 ) AS col1
----
3492

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT COUNT( * ) + 71 + NULLIF ( + - 35, - 54 ) * 5
----
-103

skipif mysql # not compatible
query I rowsort label-1860
SELECT COUNT ( * ) + 71 + NULLIF ( + - 35, - 54 ) * 5
----
-103

query I rowsort
SELECT 66 * + 2 AS col0
----
132

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

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

query I rowsort
SELECT ALL + 66 - + 89 + 81 * 88 AS col0
----
7105

query II rowsort
SELECT 94 AS col0, 14 AS col2
----
94
14

query I rowsort
SELECT 56 + - + 78 AS col1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-1866
SELECT DISTINCT - 94 DIV NULLIF ( 73, 77 * - 12 DIV + - 19 - - 57 - - 85 * - - 59 * - - 40 * 21 DIV - - 63 + - 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT - 94 / NULLIF ( 73, 77 * - 12 / + - 19 - - 57 - - 85 * - - 59 * - - 40 * 21 / - - 63 + - 21 )
----
-1

query I rowsort
SELECT ( + 97 ) * 62 + ( + 68 )
----
6082

query I rowsort
SELECT ALL 98 - - + 24
----
122

query I rowsort
SELECT 75 + + 30 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT ALL + MAX( + ( 18 ) ) * + - CASE + 84 WHEN 85 + + - NULLIF ( 70, + - 19 * - 70 ) + - + 69 + 96 / + MAX( ALL + 50 ) + + + COUNT( * ) * - COUNT( * ) + - 46 THEN NULL WHEN + COUNT( DISTINCT 91 ) THEN CASE + 14 WHEN 7 * 52 THEN + 34 ELSE NULL END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL + MAX ( + ( 18 ) ) * + - CASE + 84 WHEN 85 + + - NULLIF ( 70, + - 19 * - 70 ) + - + 69 + 96 / + MAX ( ALL + 50 ) + + + COUNT ( * ) * - COUNT ( * ) + - 46 THEN NULL WHEN + COUNT ( DISTINCT 91 ) THEN CASE + 14 WHEN 7 * 52 THEN + 34 ELSE NULL END ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT 82 DIV - + 22
----
-3

skipif mysql # not compatible
query I rowsort label-1871
SELECT 82 / - + 22
----
-3

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

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

query I rowsort
SELECT ALL + 35 * - 4 AS col0
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT 86 * - COUNT( * ) * + - 10
----
860

skipif mysql # not compatible
query I rowsort label-1874
SELECT 86 * - COUNT ( * ) * + - 10
----
860

query I rowsort
SELECT 29 + + + 42
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1876
SELECT NULLIF ( + 89, - 34 + + + 72 ) DIV - - COUNT( * ) * - COUNT( + 10 ) AS col1, 39 + - - 39 + - 59 DIV + - 56 - + + CAST( NULL AS SIGNED ) * 45 * + - 21 DIV + 85 AS col0
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-1876
SELECT NULLIF ( + 89, - 34 + + + 72 ) / - - COUNT ( * ) * - COUNT ( + 10 ) AS col1, 39 + - - 39 + - 59 / + - 56 - + + CAST ( NULL AS INTEGER ) * 45 * + - 21 / + 85 AS col0
----
-89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT - MAX( 1 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1877
SELECT - MAX ( 1 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ( - - 9 ) + - 1 + - + 59 * COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-1878
SELECT ( - - 9 ) + - 1 + - + 59 * COUNT ( * )
----
-51

query I rowsort
SELECT ALL - 43 * - 72
----
3096

query I rowsort
SELECT - ( - - 28 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1881
SELECT ALL + 74 + - 32 + + + CASE CAST( NULL AS SIGNED ) WHEN 49 THEN NULL WHEN + + 72 * - 39 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL + 74 + - 32 + + + CASE CAST ( NULL AS INTEGER ) WHEN 49 THEN NULL WHEN + + 72 * - 39 THEN + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - - 53 * - 59 + + + 70 AS col0
----
-3057

query I rowsort
SELECT ALL - 94 + + 84 AS col2
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT - SUM( DISTINCT - + 91 ) * - - 87 * 57
----
451269

skipif mysql # not compatible
query I rowsort label-1885
SELECT - SUM ( DISTINCT - + 91 ) * - - 87 * 57
----
451269

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT COALESCE ( 97, - COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-1886
SELECT COALESCE ( 97, - COUNT ( * ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT + + 5 * - + COUNT( * ) + 78
----
73

skipif mysql # not compatible
query I rowsort label-1887
SELECT + + 5 * - + COUNT ( * ) + 78
----
73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT ALL - 1 * + CAST( NULL AS SIGNED ) + - - 10 + - ( - 42 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL - 1 * + CAST ( NULL AS INTEGER ) + - - 10 + - ( - 42 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT DISTINCT - - 42 * - - COALESCE ( MIN( - + 82 ), - COUNT( * ) ) + + 44 + COUNT( - 98 ) AS col0
----
-3399

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT - - 42 * - - COALESCE ( MIN ( - + 82 ), - COUNT ( * ) ) + + 44 + COUNT ( - 98 ) AS col0
----
-3399

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL - SUM( DISTINCT 25 ) * - MAX( DISTINCT - 51 ) + + + COUNT( * ) - + 79 - + COUNT( * ) AS col0
----
-1354

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL - SUM ( DISTINCT 25 ) * - MAX ( DISTINCT - 51 ) + + + COUNT ( * ) - + 79 - + COUNT ( * ) AS col0
----
-1354

query I rowsort
SELECT ALL + NULLIF ( + 66, - 42 ) * + 12 AS col0
----
792

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1894
SELECT + 76 + 7 DIV + 25 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-1894
SELECT + 76 + 7 / + 25 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT + NULLIF ( + ( + - ( + + CASE 52 WHEN + 49 THEN 6 END ) ), + 50 ) * - CASE COALESCE ( COALESCE ( 60, 43 * + NULLIF ( - - 93, + COUNT( ALL 26 ) ) ), + + 66 + - COUNT( DISTINCT - 13 ) * - COUNT( * ) * + SUM( 86 ), - 41 ) WHEN 9 * COUNT( * ) THEN NULL WHEN - MAX( - 96 ) / - 47 THEN NULL WHEN 39 THEN ( COUNT( * ) ) ELSE - COUNT( * ) * 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT + NULLIF ( + ( + - ( + + CASE 52 WHEN + 49 THEN 6 END ) ), + 50 ) * - CASE COALESCE ( COALESCE ( 60, 43 * + NULLIF ( - - 93, + COUNT ( ALL 26 ) ) ), + + 66 + - COUNT ( DISTINCT - 13 ) * - COUNT ( * ) * + SUM ( 86 ), - 41 ) WHEN 9 * COUNT ( * ) THEN NULL WHEN - MAX ( - 96 ) / - 47 THEN NULL WHEN 39 THEN ( COUNT ( * ) ) ELSE - COUNT ( * ) * 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT + MAX( + 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1896
SELECT + MAX ( + 26 ) AS col2
----
26

query I rowsort
SELECT 71 * + - 27 + + ( - 38 ) AS col0
----
-1955

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1898
SELECT + 40 * - 86 AS col1, 36 + + 92 + + COUNT( * ) * 41 DIV 1
----
-3440
169

skipif mysql # not compatible
query II rowsort label-1898
SELECT + 40 * - 86 AS col1, 36 + + 92 + + COUNT ( * ) * 41 / 1
----
-3440
169

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1900
SELECT + COALESCE ( - 72, + + 13 + - + 95, - - 56 DIV + - COUNT( ALL + + 98 ) DIV 7 + 30 )
----
-72

skipif mysql # not compatible
query I rowsort label-1900
SELECT + COALESCE ( - 72, + + 13 + - + 95, - - 56 / + - COUNT ( ALL + + 98 ) / 7 + 30 )
----
-72

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1902
SELECT + NULLIF ( - + CAST( NULL AS SIGNED ), + 53 ) * 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1902
SELECT + NULLIF ( - + CAST ( NULL AS INTEGER ), + 53 ) * 79 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 42 * 63, - 35 AS col1
----
2646
-35

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( + - 9, - 92 ) AS col0
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL + 3 + - 68 + + + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL + 3 + - 68 + + + COUNT ( * )
----
-64

query I rowsort
SELECT DISTINCT - 45 + 70 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT - 57 * + COUNT( * ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-1909
SELECT - 57 * + COUNT ( * ) col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT ALL NULLIF ( - 29, COUNT( * ) ) + + 42 - - 41
----
54

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL NULLIF ( - 29, COUNT ( * ) ) + + 42 - - 41
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ALL - 31 + - COUNT( 63 ) * + - NULLIF ( + 87, + 19 - + - 41 ) * + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL - 31 + - COUNT ( 63 ) * + - NULLIF ( + 87, + 19 - + - 41 ) * + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT ALL + + MAX( ALL 83 ) + - 66 + - + 58
----
-41

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL + + MAX ( ALL 83 ) + - 66 + - + 58
----
-41

query I rowsort
SELECT + + 57 + - 27 * + ( + 24 ) AS col2
----
-591

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT + - 82 + - 91 * COUNT( * ) * - 71
----
6379

skipif mysql # not compatible
query I rowsort label-1914
SELECT + - 82 + - 91 * COUNT ( * ) * - 71
----
6379

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT ALL - - CASE - 96 WHEN 49 * + 30 * + 58 THEN 63 WHEN - 13 + COUNT( * ) + - + COUNT( * ) * - + 82 THEN NULL END * - + COUNT( * ) - - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL - - CASE - 96 WHEN 49 * + 30 * + 58 THEN 63 WHEN - 13 + COUNT ( * ) + - + COUNT ( * ) * - + 82 THEN NULL END * - + COUNT ( * ) - - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT - 16 + - + 58 * - - COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-1916
SELECT - 16 + - + 58 * - - COUNT ( * ) AS col2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT - - 1 DIV - + ( 12 )
----
0

skipif mysql # not compatible
query I rowsort label-1917
SELECT - - 1 / - + ( 12 )
----
0

query I rowsort
SELECT - 59 * + + 20 AS col0
----
-1180

onlyif mysql # aggregate syntax: 
query III rowsort label-1919
SELECT DISTINCT + COUNT( * ) * 81, + COUNT( * ) * MIN( ALL 80 ) AS col2, ( 76 ) * 90 col2
----
81
80
6840

skipif mysql # not compatible
query III rowsort label-1919
SELECT DISTINCT + COUNT ( * ) * 81, + COUNT ( * ) * MIN ( ALL 80 ) AS col2, ( 76 ) * 90 col2
----
81
80
6840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1920
SELECT DISTINCT - SUM( ALL - 89 ) DIV 92 - + 88 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT - SUM ( ALL - 89 ) / 92 - + 88 AS col2
----
-88

query I rowsort
SELECT ALL + - 83 * 49 - + 84 AS col1
----
-4151

query I rowsort
SELECT 41 * - 81 + + - 88
----
-3409

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT DISTINCT + MAX( ALL - 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT + MAX ( ALL - 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT + MIN( DISTINCT + + 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1924
SELECT + MIN ( DISTINCT + + 53 ) AS col0
----
53

query I rowsort
SELECT + COALESCE ( 45, - 46 + 43 * - + 99 ) AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1926
SELECT DISTINCT COUNT( * ) DIV - 25 * - 76 - 42 * - 81 AS col0
----
3402

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT COUNT ( * ) / - 25 * - 76 - 42 * - 81 AS col0
----
3402

query I rowsort
SELECT ALL + 12 * - ( 59 ) AS col0
----
-708

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT - COUNT( * ) * - + 59 / - CASE - - COUNT( * ) WHEN + - MIN( - 70 ) THEN NULL WHEN + 81 * - 42 * + COUNT( * ) + - ( 71 ) + - CASE + COALESCE ( - 53, 83 + - 20 + - 62 - - 90 * + - 39 ) WHEN COUNT( * ) * - ( + 76 ) THEN + 86 WHEN - 95 THEN NULL END - - 93 THEN NULL ELSE CASE COALESCE ( 75, 38 ) WHEN 60 - - SUM( DISTINCT 38 ) THEN - 28 ELSE NULL END * 68 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT - COUNT ( * ) * - + 59 / - CASE - - COUNT ( * ) WHEN + - MIN ( - 70 ) THEN NULL WHEN + 81 * - 42 * + COUNT ( * ) + - ( 71 ) + - CASE + COALESCE ( - 53, 83 + - 20 + - 62 - - 90 * + - 39 ) WHEN COUNT ( * ) * - ( + 76 ) THEN + 86 WHEN - 95 THEN NULL END - - 93 THEN NULL ELSE CASE COALESCE ( 75, 38 ) WHEN 60 - - SUM ( DISTINCT 38 ) THEN - 28 ELSE NULL END * 68 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 52 * + + 15
----
780

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1930
SELECT DISTINCT + ( - 68 ) DIV + + 42 AS col1, - SUM( + 18 ) AS col0
----
-1
-18

skipif mysql # not compatible
query II rowsort label-1930
SELECT DISTINCT + ( - 68 ) / + + 42 AS col1, - SUM ( + 18 ) AS col0
----
-1
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1931
SELECT DISTINCT + 92, + CAST( - COUNT( * ) AS SIGNED ) + + 59 * - - 81 * 50 - + 15 + COALESCE ( 83, 40, 46 * - + 28 ) + + CASE + + 41 WHEN + + 61 THEN - 59 * + COUNT( ALL + 22 ) * + 2 WHEN - - 51 * + 3 THEN NULL END * COUNT( * ) + - 82 AS col2
----
92
NULL

skipif mysql # not compatible
query II rowsort label-1931
SELECT DISTINCT + 92, + CAST ( - COUNT ( * ) AS INTEGER ) + + 59 * - - 81 * 50 - + 15 + COALESCE ( 83, 40, 46 * - + 28 ) + + CASE + + 41 WHEN + + 61 THEN - 59 * + COUNT ( ALL + 22 ) * + 2 WHEN - - 51 * + 3 THEN NULL END * COUNT ( * ) + - 82 AS col2
----
92
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1934
SELECT DISTINCT + 37, - 96 * + + CAST( + 93 AS SIGNED ) col0
----
37
-8928

skipif mysql # not compatible
query II rowsort label-1934
SELECT DISTINCT + 37, - 96 * + + CAST ( + 93 AS INTEGER ) col0
----
37
-8928

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT COUNT( * ) * + - 42 + 48 * - - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-1938
SELECT COUNT ( * ) * + - 42 + 48 * - - COUNT ( * )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1939
SELECT + 63 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT + 63 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT COALESCE ( - COUNT( * ), 12 - - 9 * - 81, + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1940
SELECT COALESCE ( - COUNT ( * ), 12 - - 9 * - 81, + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT + 9 + + 47
----
56

query I rowsort
SELECT + 15 * - 90 AS col1
----
-1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1943
SELECT DISTINCT - + CASE - COUNT( * ) WHEN + ( - 23 ) * 27 THEN - + 0 * CASE WHEN NOT ( - ( + + 86 ) ) >= - CAST( - 20 AS SIGNED ) - + NULLIF ( 27, - 80 * + ( - - COUNT( * ) ) * 55 ) THEN + ( 40 ) * - COALESCE ( + 25, ( + 32 ) ) + + CAST( - 30 AS SIGNED ) END ELSE NULL END * + COUNT( * ) + - 0 * - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT - + CASE - COUNT ( * ) WHEN + ( - 23 ) * 27 THEN - + 0 * CASE WHEN NOT ( - ( + + 86 ) ) >= - CAST ( - 20 AS INTEGER ) - + NULLIF ( 27, - 80 * + ( - - COUNT ( * ) ) * 55 ) THEN + ( 40 ) * - COALESCE ( + 25, ( + 32 ) ) + + CAST ( - 30 AS INTEGER ) END ELSE NULL END * + COUNT ( * ) + - 0 * - 23 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1944
SELECT ALL + - 91 * + COUNT( - + NULLIF ( + 73, 73 ) ) + + - 10 + + + 12 * COALESCE ( + 44, - + 46, + ( + - COUNT( * ) ) * - NULLIF ( COUNT( * ), - 45 * - 70 * + 49 * + - 4 + - 30 + + 52 / + + 64 * - COUNT( + - ( + CAST( NULL AS SIGNED ) ) ) ) ) AS col1
----
518

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL + - 91 * + COUNT ( - + NULLIF ( + 73, 73 ) ) + + - 10 + + + 12 * COALESCE ( + 44, - + 46, + ( + - COUNT ( * ) ) * - NULLIF ( COUNT ( * ), - 45 * - 70 * + 49 * + - 4 + - 30 + + 52 / + + 64 * - COUNT ( + - ( + CAST ( NULL AS INTEGER ) ) ) ) ) AS col1
----
518

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

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

query I rowsort
SELECT + 41 + + 30
----
71

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

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

query I rowsort
SELECT - + COALESCE ( + + 39, - 47 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT DISTINCT NULLIF ( + 52, - + 24 ) + 6 + - 66 * + 6 * + 6 + - + COUNT( DISTINCT - 48 )
----
-2319

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT NULLIF ( + 52, - + 24 ) + 6 + - 66 * + 6 * + 6 + - + COUNT ( DISTINCT - 48 )
----
-2319

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT ALL + 66 + - CASE + CASE + 33 WHEN - + COUNT( + 70 ) THEN + COUNT( * ) + + + AVG ( ALL + 10 ) * - MAX( + 8 ) + - + 12 END WHEN + 60 THEN + 41 * - + 93 ELSE - 65 END AS col1
----
131

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL + 66 + - CASE + CASE + 33 WHEN - + COUNT ( + 70 ) THEN + COUNT ( * ) + + + AVG ( ALL + 10 ) * - MAX ( + 8 ) + - + 12 END WHEN + 60 THEN + 41 * - + 93 ELSE - 65 END AS col1
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1951
SELECT 98, 68 + - 87 * + COALESCE ( + - COUNT( 42 ), - - CAST( NULL AS SIGNED ), - 84 ) - 50 col1
----
98
105

skipif mysql # not compatible
query II rowsort label-1951
SELECT 98, 68 + - 87 * + COALESCE ( + - COUNT ( 42 ), - - CAST ( NULL AS INTEGER ), - 84 ) - 50 col1
----
98
105

query I rowsort
SELECT + 68 + - 15 + ( - - 77 ) - 52 * + 47 + 46
----
-2268

onlyif mysql # DIV for integer division: 
query I rowsort label-1953
SELECT ALL - 91 + + + 27 * 17 DIV - 74 - 95
----
-192

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL - 91 + + + 27 * 17 / - 74 - 95
----
-192

query I rowsort
SELECT DISTINCT 42 + 28
----
70

query I rowsort
SELECT - 91 + + - 0
----
-91

query I rowsort
SELECT ALL 60 * - 66
----
-3960

query I rowsort
SELECT 7 + + 54
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ALL COALESCE ( COUNT( * ), 84 )
----
1

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL COALESCE ( COUNT ( * ), 84 )
----
1

query I rowsort
SELECT - 57 * - 49 AS col0
----
2793

query I rowsort
SELECT DISTINCT - + 10 - - ( 17 ) * - 52 + 22 AS col2
----
-872

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT ALL - SUM( ALL ( + 92 ) ) - - 60 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL - SUM ( ALL ( + 92 ) ) - - 60 AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1962
SELECT + 24 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-1962
SELECT + 24 / + 50
----
0

query I rowsort
SELECT 51 * - 24 * - 97 AS col1
----
118728

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT + COUNT( * ) * - - 9 + + 4
----
13

skipif mysql # not compatible
query I rowsort label-1964
SELECT + COUNT ( * ) * - - 9 + + 4
----
13

query I rowsort
SELECT ALL - 80 * + ( 66 ) AS col2
----
-5280

query I rowsort
SELECT 76 * 56 AS col0
----
4256

query II rowsort
SELECT DISTINCT 47 * + 34 * + - 66 * - - 32, + 14 col0
----
-3374976
14

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

query I rowsort
SELECT 56 + + 30 AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1970
SELECT + SUM( - - 10 ) DIV + 69 * + 43 + + 1 + + 14 + 0 + - 48 * 32 col2
----
-1521

skipif mysql # not compatible
query I rowsort label-1970
SELECT + SUM ( - - 10 ) / + 69 * + 43 + + 1 + + 14 + 0 + - 48 * 32 col2
----
-1521

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1972
SELECT 65 * + COUNT( * ) DIV - + 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1972
SELECT 65 * + COUNT ( * ) / - + 78 AS col0
----
0

query I rowsort
SELECT NULLIF ( + 92, + - ( + - ( - 99 ) ) ) + + - 9
----
83

query II rowsort
SELECT ALL - NULLIF ( - 38, - + 34 / + - 7 ), ( - 75 ) + + ( + 50 ) AS col1
----
38
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT DISTINCT - 63 + - 65 * + 68 * COUNT( * ) AS col2
----
-4483

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT - 63 + - 65 * + 68 * COUNT ( * ) AS col2
----
-4483

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT ALL - COALESCE ( - + 81, - 99 * - + 64, - ( 6 ) + - - 30 ) + + COALESCE ( 64, COUNT( * ) ) * + MIN( DISTINCT - 46 ) AS col2
----
-2863

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL - COALESCE ( - + 81, - 99 * - + 64, - ( 6 ) + - - 30 ) + + COALESCE ( 64, COUNT ( * ) ) * + MIN ( DISTINCT - 46 ) AS col2
----
-2863

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL - COUNT( ALL - - NULLIF ( - 48, + 49 * + 82 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - COUNT ( ALL - - NULLIF ( - 48, + 49 * + 82 ) )
----
-1

query II rowsort
SELECT DISTINCT - + 46 + 92 * - - 11 * + + 97 AS col2, 45 AS col2
----
98118
45

query I rowsort
SELECT ALL - 95 + + - 74
----
-169

onlyif mysql # DIV for integer division: 
query I rowsort label-1980
SELECT 94 - + + 82 DIV 56 - + 36 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1980
SELECT 94 - + + 82 / 56 - + 36 AS col0
----
57

query I rowsort
SELECT - 48 * + 13
----
-624

query I rowsort
SELECT DISTINCT - 62 + - 95 * 68 AS col0
----
-6522

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1983
SELECT 30 DIV - 22 AS col1, + COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-1983
SELECT 30 / - 22 AS col1, + COUNT ( * )
----
-1
1

query I rowsort
SELECT + 14 * 22 - - - 73 AS col0
----
235

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

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

query II rowsort
SELECT ALL ( + 6 ), 56 AS col1
----
6
56

query I rowsort
SELECT ALL + CASE + - 5 WHEN - ( - - 92 ) THEN - 8 ELSE + 94 END * 54 AS col0
----
5076

query I rowsort
SELECT ( + + 55 ) - - - 38
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1989
SELECT - + MIN( ALL + 28 ) AS col1, MIN( + + CAST( NULL AS SIGNED ) )
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-1989
SELECT - + MIN ( ALL + 28 ) AS col1, MIN ( + + CAST ( NULL AS INTEGER ) )
----
-28
NULL

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

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

query I rowsort
SELECT - 21 + 83
----
62

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1993
SELECT 31 * 16 * + + 65 AS col0, 73 DIV - ( COUNT( * ) ) AS col1
----
32240
-73

skipif mysql # not compatible
query II rowsort label-1993
SELECT 31 * 16 * + + 65 AS col0, 73 / - ( COUNT ( * ) ) AS col1
----
32240
-73

query II rowsort
SELECT - 16 AS col1, + 47 AS col0
----
-16
47

query I rowsort
SELECT ( 40 ) + - 23 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL COUNT( * ) * + + 79 + + 42 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL COUNT ( * ) * + + 79 + + 42 AS col1
----
121

query I rowsort
SELECT ALL - 49 * 66 AS col2
----
-3234

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1998
SELECT SUM( + 79 ) DIV + 56 col2, ( + 10 )
----
1
10

skipif mysql # not compatible
query II rowsort label-1998
SELECT SUM ( + 79 ) / + 56 col2, ( + 10 )
----
1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT ALL 98 * - 16 * COUNT( * ) + - 10 AS col1
----
-1578

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL 98 * - 16 * COUNT ( * ) + - 10 AS col1
----
-1578

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2001
SELECT ( + 89 ) + 95 AS col2, 85 + - COUNT( * ) * - COUNT( * ) + + 60
----
184
146

skipif mysql # not compatible
query II rowsort label-2001
SELECT ( + 89 ) + 95 AS col2, 85 + - COUNT ( * ) * - COUNT ( * ) + + 60
----
184
146

query I rowsort
SELECT ALL 28 * - ( + + 73 ) AS col0
----
-2044

query I rowsort
SELECT 1 * 79
----
79

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2005
SELECT 10 * MIN( 46 ), - 10 AS col1
----
460
-10

skipif mysql # not compatible
query II rowsort label-2005
SELECT 10 * MIN ( 46 ), - 10 AS col1
----
460
-10

query I rowsort
SELECT ALL 85 * 67 + - 22
----
5673

query I rowsort
SELECT ALL 92 * + 6 * - ( + + 32 )
----
-17664

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2008
SELECT + 4 * + CAST( NULL AS DECIMAL ) - + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2008
SELECT + 4 * + CAST ( NULL AS REAL ) - + 33 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2009
SELECT COUNT( * ), - CASE WHEN NOT 19 NOT BETWEEN - 29 * - COUNT( ALL 54 ) + - + 92 * + CAST( MIN( + 86 ) AS SIGNED ) + - CAST( - + 38 AS SIGNED ) AND - ( + + 93 ) * - 60 - 89 THEN - - 22 ELSE + 82 DIV + COUNT( * ) * - 70 * + + 18 + - - 26 + - COALESCE ( + 10, NULLIF ( 78, + 8 * + ( 58 ) + + COUNT( * ) ) ) END AS col2
----
1
-22

skipif mysql # not compatible
query II rowsort label-2009
SELECT COUNT ( * ), - CASE WHEN NOT 19 NOT BETWEEN - 29 * - COUNT ( ALL 54 ) + - + 92 * + CAST ( MIN ( + 86 ) AS INTEGER ) + - CAST ( - + 38 AS INTEGER ) AND - ( + + 93 ) * - 60 - 89 THEN - - 22 ELSE + 82 / + COUNT ( * ) * - 70 * + + 18 + - - 26 + - COALESCE ( + 10, NULLIF ( 78, + 8 * + ( 58 ) + + COUNT ( * ) ) ) END AS col2
----
1
-22

query I rowsort
SELECT ALL 68 * + + 8 AS col2
----
544

query I rowsort
SELECT - 80 * 27 AS col2
----
-2160

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT + + 21 * 53 + + + COUNT( * ) - - 44
----
1158

skipif mysql # not compatible
query I rowsort label-2013
SELECT + + 21 * 53 + + + COUNT ( * ) - - 44
----
1158

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT MAX( - - 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2014
SELECT MAX ( - - 64 ) AS col1
----
64

query I rowsort
SELECT + 76 + 46
----
122

query I rowsort
SELECT + 52 * + 21 - 0 AS col1
----
1092

query I rowsort
SELECT ALL + - 20 col0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2018
SELECT - + 94 + + 62 DIV 90 * COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-2018
SELECT - + 94 + + 62 / 90 * COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT - + 78 + - + SUM( + - 74 ) + + 75 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-2019
SELECT - + 78 + - + SUM ( + - 74 ) + + 75 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT DISTINCT MIN( - - 68 ) col0
----
68

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT MIN ( - - 68 ) col0
----
68

query I rowsort
SELECT ALL - 23 * + 59 * + 95
----
-128915

query I rowsort
SELECT - 48 * 81
----
-3888

query II rowsort
SELECT - - 57 AS col2, - 56 col2
----
57
-56

query I rowsort
SELECT ALL - ( - 36 ) col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT + + CAST( COALESCE ( + 66, + - 23 * - 64 ) AS SIGNED ) + - 98 * + CAST( 98 AS SIGNED ) - - 61
----
-9477

skipif mysql # not compatible
query I rowsort label-2025
SELECT + + CAST ( COALESCE ( + 66, + - 23 * - 64 ) AS INTEGER ) + - 98 * + CAST ( 98 AS INTEGER ) - - 61
----
-9477

query I rowsort
SELECT - - 76 * - - 94
----
7144

query I rowsort
SELECT - COALESCE ( + - 50, 54 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT - MIN( 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-2028
SELECT - MIN ( 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT DISTINCT 29 * COUNT( - + 15 ) * - + 54 - - 3 AS col2
----
-1563

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT 29 * COUNT ( - + 15 ) * - + 54 - - 3 AS col2
----
-1563

onlyif mysql # aggregate syntax: 
query II rowsort label-2030
SELECT ALL 19, COUNT( * ) + - - MAX( DISTINCT - ( + + 42 ) ) AS col1
----
19
-41

skipif mysql # not compatible
query II rowsort label-2030
SELECT ALL 19, COUNT ( * ) + - - MAX ( DISTINCT - ( + + 42 ) ) AS col1
----
19
-41

query I rowsort
SELECT + 94 + 96
----
190

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

query I rowsort
SELECT ALL 34 + 7
----
41

query I rowsort
SELECT - COALESCE ( 81, + 57 ) - - 54 * CASE - 35 WHEN + 22 THEN NULL WHEN - AVG ( ALL + 50 ) THEN 96 * + 96 END * + 74
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2036
SELECT ALL 12 / + + 55 * 7 + - - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL 12 / + + 55 * 7 + - - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2037
SELECT ALL CAST( 22 AS SIGNED ) DIV + 22 + + 14 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL CAST ( 22 AS INTEGER ) / + 22 + + 14 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2038
SELECT ( - + COALESCE ( COUNT( * ), - + CASE - - 55 WHEN - COUNT( * ) THEN NULLIF ( + CASE + + CAST( + + 91 AS SIGNED ) WHEN + + 90 / - CAST( + 18 AS SIGNED ) + 34 / + - 36 THEN NULL WHEN 74 - - 65 * - CAST( + + 31 AS SIGNED ) + 52 THEN COUNT( * ) END, + 33 * 28 * 55 ) ELSE NULL END + + + 78, + - 86 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2038
SELECT ( - + COALESCE ( COUNT ( * ), - + CASE - - 55 WHEN - COUNT ( * ) THEN NULLIF ( + CASE + + CAST ( + + 91 AS INTEGER ) WHEN + + 90 / - CAST ( + 18 AS INTEGER ) + 34 / + - 36 THEN NULL WHEN 74 - - 65 * - CAST ( + + 31 AS INTEGER ) + 52 THEN COUNT ( * ) END, + 33 * 28 * 55 ) ELSE NULL END + + + 78, + - 86 ) ) AS col1
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2040
SELECT DISTINCT MAX( ALL - 1 ) * - + 33 + 79 / COALESCE ( - 90, 4 / COUNT( * ) + + - 0 + + - 10, + + 24 ) * - 39 - 84 + + 30 + 99 + 77 / - NULLIF ( CAST( - CASE - 12 WHEN + 41 THEN - - 3 WHEN - 1 THEN NULL WHEN - 41 THEN NULL END AS SIGNED ), 99 ) - 82 + - 40 * + COUNT( * ) * - 65 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT MAX ( ALL - 1 ) * - + 33 + 79 / COALESCE ( - 90, 4 / COUNT ( * ) + + - 0 + + - 10, + + 24 ) * - 39 - 84 + + 30 + 99 + 77 / - NULLIF ( CAST ( - CASE - 12 WHEN + 41 THEN - - 3 WHEN - 1 THEN NULL WHEN - 41 THEN NULL END AS INTEGER ), 99 ) - 82 + - 40 * + COUNT ( * ) * - 65 * COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2041
SELECT ( - + 31 ) DIV - + 5 - - 55 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-2041
SELECT ( - + 31 ) / - + 5 - - 55 AS col2
----
61

query I rowsort
SELECT DISTINCT + 0 * - 8 AS col0
----
0

query II rowsort
SELECT ( + - 16 ), - 37 AS col2
----
-16
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2044
SELECT ALL - MAX( ( - + COALESCE ( - + 26, - 99 ) ) ) DIV 17 AS col0, + COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-2044
SELECT ALL - MAX ( ( - + COALESCE ( - + 26, - 99 ) ) ) / 17 AS col0, + COUNT ( * ) AS col0
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2045
SELECT + NULLIF ( - + MAX( ALL + 93 ), ( - 84 ) * 47 / SUM( DISTINCT 95 ) - + + CASE + + 90 WHEN 30 * ( 13 ) * - 61 / + ( 73 ) + + + 0 THEN - COUNT( ALL - + 44 ) + 88 WHEN - - 94 THEN - NULLIF ( + 67, + - COUNT( * ) ) * CAST( NULL AS SIGNED ) * + COUNT( * ) WHEN - ( CAST( NULL AS SIGNED ) ) * + 99 THEN - COUNT( * ) * + 41 + + ( + ( - 6 ) ) ELSE NULL END )
----
-93

skipif mysql # not compatible
query I rowsort label-2045
SELECT + NULLIF ( - + MAX ( ALL + 93 ), ( - 84 ) * 47 / SUM ( DISTINCT 95 ) - + + CASE + + 90 WHEN 30 * ( 13 ) * - 61 / + ( 73 ) + + + 0 THEN - COUNT ( ALL - + 44 ) + 88 WHEN - - 94 THEN - NULLIF ( + 67, + - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) WHEN - ( CAST ( NULL AS INTEGER ) ) * + 99 THEN - COUNT ( * ) * + 41 + + ( + ( - 6 ) ) ELSE NULL END )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT - + MAX( ALL 4 ) + + 83 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2046
SELECT - + MAX ( ALL 4 ) + + 83 AS col1
----
79

query I rowsort
SELECT ALL - 38 * + 60 - + + 35 AS col2
----
-2315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2048
SELECT - 37 * - 4 - - + CAST( - 31 AS SIGNED ) + 84
----
201

skipif mysql # not compatible
query I rowsort label-2048
SELECT - 37 * - 4 - - + CAST ( - 31 AS INTEGER ) + 84
----
201

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT + 96 DIV 46 col0
----
2

skipif mysql # not compatible
query I rowsort label-2050
SELECT + 96 / 46 col0
----
2

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

query II rowsort
SELECT ALL + - 54 AS col0, + 26
----
-54
26

query II rowsort
SELECT + - 93, 95 / CASE + 32 WHEN 44 THEN NULL WHEN - 83 THEN + 77 * - - 53 / - 66 / + 36 ELSE NULL END AS col0
----
-93
NULL

query II rowsort
SELECT ALL + - 93 AS col2, + ( - - 99 ) + + 19
----
-93
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2055
SELECT DISTINCT COUNT( DISTINCT + + 59 ) * AVG ( DISTINCT - CASE CAST( - ( - 60 ) AS SIGNED ) WHEN - - 68 + 57 THEN 49 END ) * - + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT COUNT ( DISTINCT + + 59 ) * AVG ( DISTINCT - CASE CAST ( - ( - 60 ) AS INTEGER ) WHEN - - 68 + 57 THEN 49 END ) * - + 56 AS col0
----
NULL

query I rowsort
SELECT + - 72 - + 56 AS col1
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT - - MAX( DISTINCT - - 7 ) * 35 AS col1
----
245

skipif mysql # not compatible
query I rowsort label-2057
SELECT - - MAX ( DISTINCT - - 7 ) * 35 AS col1
----
245

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

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL MAX ( 77 )
----
77

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT + - 22 * - SUM( DISTINCT + 62 ) + - 56 AS col1
----
1308

skipif mysql # not compatible
query I rowsort label-2062
SELECT + - 22 * - SUM ( DISTINCT + 62 ) + - 56 AS col1
----
1308

onlyif mysql # DIV for integer division: 
query I rowsort label-2063
SELECT - ( + 5 ) * 19 DIV 8 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-2063
SELECT - ( + 5 ) * 19 / 8 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT DISTINCT + COUNT( DISTINCT + + 26 ) * 39
----
39

skipif mysql # not compatible
query I rowsort label-2064
SELECT DISTINCT + COUNT ( DISTINCT + + 26 ) * 39
----
39

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

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

query I rowsort
SELECT DISTINCT + 76 + 48
----
124

query I rowsort
SELECT ALL - 21 + 99 AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2068
SELECT - COALESCE ( - 55, ( + 51 ) * - - 75 * + 71 ) * 92 + CAST( NULL AS SIGNED ) + 42 / + ( - 67 ) * ( 60 ) + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT - COALESCE ( - 55, ( + 51 ) * - - 75 * + 71 ) * 92 + CAST ( NULL AS INTEGER ) + 42 / + ( - 67 ) * ( 60 ) + - 19
----
NULL

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

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

query I rowsort
SELECT - 17 + 8 * 0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2071
SELECT DISTINCT NULLIF ( + COUNT( * ), 21 ) DIV + + 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT NULLIF ( + COUNT ( * ), 21 ) / + + 69 AS col0
----
0

query I rowsort
SELECT 91 * - 71
----
-6461

query I rowsort
SELECT DISTINCT - 77 + - 84
----
-161

query I rowsort
SELECT ALL ( - 18 ) * + - 30 - 93 AS col1
----
447

query I rowsort
SELECT + 19 * 51 * + 27
----
26163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2076
SELECT COALESCE ( - 49, + 8 DIV NULLIF ( + 15, COUNT( * ) + - 10 + 60 * 13 * CAST( COALESCE ( - + 89, + + 4 + 52 ) AS SIGNED ) * + 74 + - + 93 - - + 66 + - 37 + + - CAST( - - 61 AS SIGNED ) * - ( COUNT( DISTINCT + - 52 ) ) ) ) * 31 - 96 AS col0
----
-1615

skipif mysql # not compatible
query I rowsort label-2076
SELECT COALESCE ( - 49, + 8 / NULLIF ( + 15, COUNT ( * ) + - 10 + 60 * 13 * CAST ( COALESCE ( - + 89, + + 4 + 52 ) AS INTEGER ) * + 74 + - + 93 - - + 66 + - 37 + + - CAST ( - - 61 AS INTEGER ) * - ( COUNT ( DISTINCT + - 52 ) ) ) ) * 31 - 96 AS col0
----
-1615

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT - ( 74 ) * - 47 + 50 + + - SUM( - - 74 ) - 47 * - - 70 - + COUNT( * ) + - - 75 AS col2
----
238

skipif mysql # not compatible
query I rowsort label-2077
SELECT - ( 74 ) * - 47 + 50 + + - SUM ( - - 74 ) - 47 * - - 70 - + COUNT ( * ) + - - 75 AS col2
----
238

onlyif mysql # aggregate syntax: 
query II rowsort label-2078
SELECT ALL + COUNT( ALL + 35 ) * + 38, - 41 * 53 - - COUNT( * ) AS col0
----
38
-2172

skipif mysql # not compatible
query II rowsort label-2078
SELECT ALL + COUNT ( ALL + 35 ) * + 38, - 41 * 53 - - COUNT ( * ) AS col0
----
38
-2172

query I rowsort
SELECT ALL - NULLIF ( + 46, + 10 * - - 8 )
----
-46

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

query I rowsort
SELECT DISTINCT - - 0 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2082
SELECT COUNT( * ) * + 86 - + 65 + - SUM( ALL + 46 ) DIV - 99
----
21

skipif mysql # not compatible
query I rowsort label-2082
SELECT COUNT ( * ) * + 86 - + 65 + - SUM ( ALL + 46 ) / - 99
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2083
SELECT 87 + - 3 * - 91 * - 18 + COUNT( * ) + 88 * 56 DIV + - COUNT( * ) * COUNT( * ) AS col2
----
-9754

skipif mysql # not compatible
query I rowsort label-2083
SELECT 87 + - 3 * - 91 * - 18 + COUNT ( * ) + 88 * 56 / + - COUNT ( * ) * COUNT ( * ) AS col2
----
-9754

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT - 57 - + SUM( - - ( + 37 ) ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-2084
SELECT - 57 - + SUM ( - - ( + 37 ) ) AS col0
----
-94

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

skipif mysql # not compatible
query II rowsort label-2085
SELECT - 1 * - + 18 AS col2, COUNT ( * )
----
18
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2086
SELECT ALL SUM( + 54 ) + + COUNT( * ) + COUNT( * ) * - NULLIF ( + 69, - - NULLIF ( - - COUNT( * ), + CAST( NULL AS SIGNED ) ) / - - 99 ) + - - NULLIF ( + 70, + ( 32 ) ) * + 57 + - - 47 * - 69 * + ( + - 49 ) - NULLIF ( - 68, - 49 + 16 ) + - 61 - - CASE + - COUNT( * ) WHEN - 22 THEN NULL WHEN ( ( 65 ) ) THEN 12 END + NULLIF ( 76 - + 59, COALESCE ( - COUNT( * ), 52 * 96 ) ) / 44 * - CASE + 3 WHEN 3 * 47 THEN SUM( DISTINCT + 4 ) - - 64 END * - COUNT( * ) * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL SUM ( + 54 ) + + COUNT ( * ) + COUNT ( * ) * - NULLIF ( + 69, - - NULLIF ( - - COUNT ( * ), + CAST ( NULL AS INTEGER ) ) / - - 99 ) + - - NULLIF ( + 70, + ( 32 ) ) * + 57 + - - 47 * - 69 * + ( + - 49 ) - NULLIF ( - 68, - 49 + 16 ) + - 61 - - CASE + - COUNT ( * ) WHEN - 22 THEN NULL WHEN ( ( 65 ) ) THEN 12 END + NULLIF ( 76 - + 59, COALESCE ( - COUNT ( * ), 52 * 96 ) ) / 44 * - CASE + 3 WHEN 3 * 47 THEN SUM ( DISTINCT + 4 ) - - 64 END * - COUNT ( * ) * + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT + COUNT( * ) + + + 81
----
82

skipif mysql # not compatible
query I rowsort label-2087
SELECT + COUNT ( * ) + + + 81
----
82

query I rowsort
SELECT DISTINCT + + 96 + + - 88 * - 34
----
3088

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT ALL - MAX( - 19 ) + + - 84 - 15 - - + 67 + - - ( - 11 ) - COUNT( * ) + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL - MAX ( - 19 ) + + - 84 - 15 - - + 67 + - - ( - 11 ) - COUNT ( * ) + COUNT ( * )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT 85 * COALESCE ( + ( 10 ), - CAST( - 18 AS SIGNED ) ) + - + 0 + - + NULLIF ( - - 15, - 57 )
----
835

skipif mysql # not compatible
query I rowsort label-2090
SELECT 85 * COALESCE ( + ( 10 ), - CAST ( - 18 AS INTEGER ) ) + - + 0 + - + NULLIF ( - - 15, - 57 )
----
835

query I rowsort
SELECT ALL - CASE + 74 WHEN - - 89 + 47 THEN NULL ELSE + 79 END * + 51 AS col2
----
-4029

query I rowsort
SELECT ALL + 62 + + 40 AS col0
----
102

query I rowsort
SELECT ( - + 5 ) + - 9 - - 47
----
33

query II rowsort
SELECT 3 col0, + 78 AS col1
----
3
78

query I rowsort
SELECT DISTINCT 76 * - 36 AS col0
----
-2736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2096
SELECT - 15 AS col2, COALESCE ( 61, - CAST( - MIN( DISTINCT - - 32 ) AS SIGNED ), - COUNT( * ) )
----
-15
61

skipif mysql # not compatible
query II rowsort label-2096
SELECT - 15 AS col2, COALESCE ( 61, - CAST ( - MIN ( DISTINCT - - 32 ) AS INTEGER ), - COUNT ( * ) )
----
-15
61

query I rowsort
SELECT ALL 11 + 11 * - 54 * - 6 AS col0
----
3575

query II rowsort
SELECT 95 + 8 - - + 44 AS col2, 42 col1
----
147
42

query II rowsort
SELECT 93, - 88 AS col0
----
93
-88

query I rowsort
SELECT ALL 75 + + 13 AS col2
----
88

query I rowsort
SELECT 85 * + - 19 AS col2
----
-1615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2102
SELECT 91 + + 87 + - 73, + CASE NULLIF ( - COUNT( * ), - - COUNT( * ) * + + COUNT( * ) - - + 81 ) WHEN - - 65 THEN - ( - ( - CAST( NULL AS SIGNED ) ) ) * + 77 / - 3 END AS col0
----
105
NULL

skipif mysql # not compatible
query II rowsort label-2102
SELECT 91 + + 87 + - 73, + CASE NULLIF ( - COUNT ( * ), - - COUNT ( * ) * + + COUNT ( * ) - - + 81 ) WHEN - - 65 THEN - ( - ( - CAST ( NULL AS INTEGER ) ) ) * + 77 / - 3 END AS col0
----
105
NULL

query I rowsort
SELECT DISTINCT 10 - + 64 * + 79 AS col1
----
-5046

query I rowsort
SELECT 1 + - + 68 AS col0
----
-67

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

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

query I rowsort
SELECT 84 - + 79 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT 91 + SUM( ALL - - 87 ) AS col1
----
178

skipif mysql # not compatible
query I rowsort label-2107
SELECT 91 + SUM ( ALL - - 87 ) AS col1
----
178

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2109
SELECT 19 * ( - CAST( + + 94 AS SIGNED ) ) + - 81 - CAST( NULL AS SIGNED ) * - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT 19 * ( - CAST ( + + 94 AS INTEGER ) ) + - 81 - CAST ( NULL AS INTEGER ) * - 5 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2110
SELECT ALL + 76 * + - CAST( ( + 65 ) AS SIGNED ) * + NULLIF ( - 70, + + CAST( 18 AS SIGNED ) ) * - MAX( ALL - - 47 ) - + 43 - - 6 * + 13 AS col1
----
-16252565

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL + 76 * + - CAST ( ( + 65 ) AS INTEGER ) * + NULLIF ( - 70, + + CAST ( 18 AS INTEGER ) ) * - MAX ( ALL - - 47 ) - + 43 - - 6 * + 13 AS col1
----
-16252565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2111
SELECT SUM( - 38 ) DIV - - SUM( + + 27 ) col2, ( 61 ) + + - CASE - + COALESCE ( - + ( - + 95 ), + AVG ( + - 53 ) + - MAX( - 90 ) + - COUNT( * ) + - + ( - 28 ) + AVG ( 5 ) * COUNT( * ) * - + 25 * + - AVG ( + 37 ) * - MAX( ALL + 10 ), - 42, + 87 ) WHEN + 86 THEN - 58 WHEN + COUNT( * ) THEN NULL ELSE 86 * CAST( - CAST( - 56 AS SIGNED ) AS SIGNED ) + + NULLIF ( 31 - - 39 * 50, COUNT( * ) * - 89 ) * 39 END + - 13
----
-1
-82027

skipif mysql # not compatible
query II rowsort label-2111
SELECT SUM ( - 38 ) / - - SUM ( + + 27 ) col2, ( 61 ) + + - CASE - + COALESCE ( - + ( - + 95 ), + AVG ( + - 53 ) + - MAX ( - 90 ) + - COUNT ( * ) + - + ( - 28 ) + AVG ( 5 ) * COUNT ( * ) * - + 25 * + - AVG ( + 37 ) * - MAX ( ALL + 10 ), - 42, + 87 ) WHEN + 86 THEN - 58 WHEN + COUNT ( * ) THEN NULL ELSE 86 * CAST ( - CAST ( - 56 AS INTEGER ) AS INTEGER ) + + NULLIF ( 31 - - 39 * 50, COUNT ( * ) * - 89 ) * 39 END + - 13
----
-1
-82027

onlyif mysql # DIV for integer division: 
query I rowsort label-2112
SELECT ALL - 96 DIV - + 59
----
1

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - 96 / - + 59
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2114
SELECT ALL - 43 AS col1, 25 * - - SUM( - 55 ) AS col0
----
-43
-1375

skipif mysql # not compatible
query II rowsort label-2114
SELECT ALL - 43 AS col1, 25 * - - SUM ( - 55 ) AS col0
----
-43
-1375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2115
SELECT - 66 * - + 5 + - COUNT( * ) * 40 DIV - 13 col0
----
333

skipif mysql # not compatible
query I rowsort label-2115
SELECT - 66 * - + 5 + - COUNT ( * ) * 40 / - 13 col0
----
333

query I rowsort
SELECT ALL 31 * + 22 AS col1
----
682

query I rowsort
SELECT ALL - 35 + ( 22 ) * 86 + + + 39 AS col1
----
1896

query I rowsort
SELECT DISTINCT - + 20 + + 92 AS col1
----
72

query I rowsort
SELECT ALL + 69 + - 32 + 19 - 5 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT ALL NULLIF ( + - 79, NULLIF ( + - NULLIF ( - 35, + + 39 ), - 56 ) - + - COUNT( * ) + + + 4 ) * + 10 * + + ( - 27 )
----
21330

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL NULLIF ( + - 79, NULLIF ( + - NULLIF ( - 35, + + 39 ), - 56 ) - + - COUNT ( * ) + + + 4 ) * + 10 * + + ( - 27 )
----
21330

query I rowsort
SELECT ALL + - 90 + - 20
----
-110

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

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT - COUNT ( * ) + - - 82 AS col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2123
SELECT ALL + 20 + COALESCE ( 88, - - 69 ) DIV + 13 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL + 20 + COALESCE ( 88, - - 69 ) / + 13 AS col2
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT - SUM( 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-2125
SELECT - SUM ( 97 ) AS col1
----
-97

query I rowsort
SELECT ALL 35 + - - NULLIF ( - + 5, + 86 )
----
30

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

skipif mysql # not compatible
query I rowsort label-2127
SELECT - COUNT ( 96 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2128
SELECT ALL 12 DIV - COALESCE ( + - COUNT( * ), 99 )
----
12

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL 12 / - COALESCE ( + - COUNT ( * ), 99 )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2129
SELECT 59 - CAST( + - 49 AS SIGNED )
----
108

skipif mysql # not compatible
query I rowsort label-2129
SELECT 59 - CAST ( + - 49 AS INTEGER )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL 5 - 32 * COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL 5 - 32 * COUNT ( * )
----
-27

query I rowsort
SELECT DISTINCT 64 * 93
----
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT DISTINCT 34 - + + 84 + 97 * + + 32 * - COUNT( + 25 ) * COUNT( * ) + - - COALESCE ( + ( + + ( - 78 ) ), 3 )
----
-3232

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT 34 - + + 84 + 97 * + + 32 * - COUNT ( + 25 ) * COUNT ( * ) + - - COALESCE ( + ( + + ( - 78 ) ), 3 )
----
-3232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2133
SELECT ALL CASE + + 88 WHEN + MIN( ALL ( - 76 ) ) + - 27 THEN NULL ELSE 27 END * 47 + - 19 + - 38 + 51 * 63 * + + CAST( + COUNT( * ) AS SIGNED ) + + 66 AS col0
----
4491

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL CASE + + 88 WHEN + MIN ( ALL ( - 76 ) ) + - 27 THEN NULL ELSE 27 END * 47 + - 19 + - 38 + 51 * 63 * + + CAST ( + COUNT ( * ) AS INTEGER ) + + 66 AS col0
----
4491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2134
SELECT + CAST( SUM( + - 10 ) AS SIGNED ) - + + 26
----
-36

skipif mysql # not compatible
query I rowsort label-2134
SELECT + CAST ( SUM ( + - 10 ) AS INTEGER ) - + + 26
----
-36

query I rowsort
SELECT DISTINCT 28 * - 70 AS col2
----
-1960

query II rowsort
SELECT + 40 - - - 17, - 63 + + - 57 AS col1
----
23
-120

query I rowsort
SELECT + 57 * 19
----
1083

query I rowsort
SELECT - 33 * - 76 * + + 17 AS col2
----
42636

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT + COUNT( * ) + - 28 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-2139
SELECT + COUNT ( * ) + - 28 AS col0
----
-27

query I rowsort
SELECT - 10 - + - 78 * 60 * - 82
----
-383770

onlyif mysql # aggregate syntax: 
query II rowsort label-2141
SELECT - 86 - + 81, CASE - - 21 WHEN COUNT( * ) * - 96 * + - COALESCE ( + COUNT( * ), - COUNT( * ) ) * 94 THEN NULL ELSE 6 END AS col2
----
-167
6

skipif mysql # not compatible
query II rowsort label-2141
SELECT - 86 - + 81, CASE - - 21 WHEN COUNT ( * ) * - 96 * + - COALESCE ( + COUNT ( * ), - COUNT ( * ) ) * 94 THEN NULL ELSE 6 END AS col2
----
-167
6

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

query I rowsort
SELECT DISTINCT - - ( - 67 ) * - 92 AS col1
----
6164

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - + CASE + 76 WHEN 77 THEN - - 99 WHEN - + 34 THEN NULL ELSE + + SUM( DISTINCT - 34 ) END + 41 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-2144
SELECT - + CASE + 76 WHEN 77 THEN - - 99 WHEN - + 34 THEN NULL ELSE + + SUM ( DISTINCT - 34 ) END + 41 AS col1
----
75

query I rowsort
SELECT - 76 * - 62 * - 31
----
-146072

onlyif mysql # aggregate syntax: 
query II rowsort label-2146
SELECT ALL - + 60 * 2 + 29 + 96 * + COUNT( * ) + ( + - 58 ) AS col1, - CASE + 83 WHEN + + 26 * + 6 * + - 81 * 17 + + 22 THEN - 27 * + + COUNT( * ) END col0
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-2146
SELECT ALL - + 60 * 2 + 29 + 96 * + COUNT ( * ) + ( + - 58 ) AS col1, - CASE + 83 WHEN + + 26 * + 6 * + - 81 * 17 + + 22 THEN - 27 * + + COUNT ( * ) END col0
----
-53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT + - MAX( DISTINCT 68 ) + - 86 AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-2147
SELECT + - MAX ( DISTINCT 68 ) + - 86 AS col0
----
-154

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT - 46 * + - 72 + + + COUNT( ALL + 96 ) * + 15 + + + 65
----
3392

skipif mysql # not compatible
query I rowsort label-2149
SELECT - 46 * + - 72 + + + COUNT ( ALL + 96 ) * + 15 + + + 65
----
3392

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT + + SUM( + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2150
SELECT + + SUM ( + 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2151
SELECT - 34 * - COUNT( * ) - - NULLIF ( 21, + - 37 ) AS col2, + NULLIF ( 97, - 12 - 81 ) AS col2
----
55
97

skipif mysql # not compatible
query II rowsort label-2151
SELECT - 34 * - COUNT ( * ) - - NULLIF ( 21, + - 37 ) AS col2, + NULLIF ( 97, - 12 - 81 ) AS col2
----
55
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2152
SELECT ALL 55 * - 15 + - 37 * - COUNT( * ) DIV + 43 * 75 AS col0
----
-825

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL 55 * - 15 + - 37 * - COUNT ( * ) / + 43 * 75 AS col0
----
-825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2153
SELECT + COUNT( * ) DIV - - 56 + + 44 + - 90 DIV + - 14 + + + 74 DIV - - 3 + + 38 * - 96 AS col1
----
-3574

skipif mysql # not compatible
query I rowsort label-2153
SELECT + COUNT ( * ) / - - 56 + + 44 + - 90 / + - 14 + + + 74 / - - 3 + + 38 * - 96 AS col1
----
-3574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT ALL + - 10 * + CASE - CAST( NULL AS SIGNED ) WHEN 51 * + 78 THEN - 31 END * - 43 * + ( + + 88 ) + - 89 + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL + - 10 * + CASE - CAST ( NULL AS INTEGER ) WHEN 51 * + 78 THEN - 31 END * - 43 * + ( + + 88 ) + - 89 + - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT ALL + COALESCE ( - 67, - + 28 + - 55, - COUNT( * ) * - - 65 * + + COUNT( * ) )
----
-67

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL + COALESCE ( - 67, - + 28 + - 55, - COUNT ( * ) * - - 65 * + + COUNT ( * ) )
----
-67

query I rowsort
SELECT ALL - 52 * - 76 + + 63 AS col1
----
4015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2157
SELECT - - 52 * + 33 - - + ( + COUNT( + CAST( - 56 AS SIGNED ) ) )
----
1717

skipif mysql # not compatible
query I rowsort label-2157
SELECT - - 52 * + 33 - - + ( + COUNT ( + CAST ( - 56 AS INTEGER ) ) )
----
1717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2158
SELECT DISTINCT - ( - ( - NULLIF ( + - 82, + 75 * 12 * + 53 * - 79 - - COALESCE ( + COUNT( * ), 60, - 6 - + 13 - + SUM( DISTINCT + ( + + 59 ) ), 4 * 41 + + 33 ) * - + ( + 79 ) * + 41 + + COUNT( * ) - 61 * - + 90 ) ) ) DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT - ( - ( - NULLIF ( + - 82, + 75 * 12 * + 53 * - 79 - - COALESCE ( + COUNT ( * ), 60, - 6 - + 13 - + SUM ( DISTINCT + ( + + 59 ) ), 4 * 41 + + 33 ) * - + ( + 79 ) * + 41 + + COUNT ( * ) - 61 * - + 90 ) ) ) / + 85 AS col2
----
0

query I rowsort
SELECT ALL + NULLIF ( 8, - 84 * 54 ) * 85 + + 72 + - + 95 AS col1
----
657

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2160
SELECT 83 * - MIN( ALL + + ( 37 ) ) * - 81 + - MAX( - + 14 ) - 49 - + - 68 AS col1, + 33 DIV 42 DIV - COUNT( * )
----
248784
0

skipif mysql # not compatible
query II rowsort label-2160
SELECT 83 * - MIN ( ALL + + ( 37 ) ) * - 81 + - MAX ( - + 14 ) - 49 - + - 68 AS col1, + 33 / 42 / - COUNT ( * )
----
248784
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT - COUNT( * ) + - - 4 * - 44 * + 98
----
-17249

skipif mysql # not compatible
query I rowsort label-2161
SELECT - COUNT ( * ) + - - 4 * - 44 * + 98
----
-17249

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT - 94 + - + MIN( + 27 ) * - ( - + 63 ) - - - 56 AS col0
----
-1851

skipif mysql # not compatible
query I rowsort label-2163
SELECT - 94 + - + MIN ( + 27 ) * - ( - + 63 ) - - - 56 AS col0
----
-1851

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT + 0 + - 77 + - 54 * + COUNT( * ) * + 37 + - 65 * - + 65 AS col2
----
2150

skipif mysql # not compatible
query I rowsort label-2164
SELECT + 0 + - 77 + - 54 * + COUNT ( * ) * + 37 + - 65 * - + 65 AS col2
----
2150

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

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

query I rowsort
SELECT - ( - 82 ) + + 56 AS col0
----
138

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

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

query I rowsort
SELECT ( + - 96 ) * - 21 + + 70
----
2086

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2169
SELECT ALL 21 * + + NULLIF ( - 45, + 51 * - - SUM( DISTINCT + COALESCE ( + 22, + - 41 - 13 ) ) + 63 + - - 11 + - 35 ) * + - 28 - - CASE - 9 WHEN 90 + + 74 THEN 20 * 91 + + - 30 + - 74 * - + ( 70 ) + - ( + CAST( - 65 AS SIGNED ) ) + - 65 - 35 ELSE + 50 * - 81 - + 32 END AS col2
----
22378

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL 21 * + + NULLIF ( - 45, + 51 * - - SUM ( DISTINCT + COALESCE ( + 22, + - 41 - 13 ) ) + 63 + - - 11 + - 35 ) * + - 28 - - CASE - 9 WHEN 90 + + 74 THEN 20 * 91 + + - 30 + - 74 * - + ( 70 ) + - ( + CAST ( - 65 AS INTEGER ) ) + - 65 - 35 ELSE + 50 * - 81 - + 32 END AS col2
----
22378

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

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

query I rowsort
SELECT + 16 + - + 55 AS col2
----
-39

query I rowsort
SELECT DISTINCT CASE 80 WHEN + - ( 61 ) THEN + ( + 47 ) WHEN + 74 THEN + 5 END - - - 1 + + 75 + + - 55 + - 5 AS col0
----
NULL

query II rowsort
SELECT 52 AS col2, 34
----
52
34

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2175
SELECT + 86 + + CAST( - + 44 AS SIGNED ) + - - 86 * 97 col0
----
8384

skipif mysql # not compatible
query I rowsort label-2175
SELECT + 86 + + CAST ( - + 44 AS INTEGER ) + - - 86 * 97 col0
----
8384

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT + 98 DIV 23
----
4

skipif mysql # not compatible
query I rowsort label-2176
SELECT + 98 / 23
----
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT DISTINCT 21 DIV - - 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT 21 / - - 41 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT ALL SUM( - 27 ) * + COALESCE ( + - COUNT( * ), - + 51 ) + - + 16 + + - 89 * - + 62 + COUNT( * )
----
5530

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL SUM ( - 27 ) * + COALESCE ( + - COUNT ( * ), - + 51 ) + - + 16 + + - 89 * - + 62 + COUNT ( * )
----
5530

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT ALL + 68 + 8 DIV 91 col2
----
68

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL + 68 + 8 / 91 col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2181
SELECT ALL - 94 + - - 55 + - 19 DIV - 96 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL - 94 + - - 55 + - 19 / - 96 AS col0
----
-39

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

skipif mysql # not compatible
query I rowsort label-2182
SELECT + 18 - - + COUNT ( * ) AS col1
----
19

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2185
SELECT DISTINCT + NULLIF ( 48, + COUNT( * ) + - 33 + + NULLIF ( + + 81, + 62 DIV + CASE - 31 WHEN - 56 THEN - - 53 WHEN - + 58 THEN - 11 * 27 * + + 83 - - 60 ELSE NULL END * + 89 * + 6 * - 34 - 23 ) + 20 + + 99 ) DIV - + 13 + - 73 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT + NULLIF ( 48, + COUNT ( * ) + - 33 + + NULLIF ( + + 81, + 62 / + CASE - 31 WHEN - 56 THEN - - 53 WHEN - + 58 THEN - 11 * 27 * + + 83 - - 60 ELSE NULL END * + 89 * + 6 * - 34 - 23 ) + 20 + + 99 ) / - + 13 + - 73 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT CASE + + 84 WHEN - 93 THEN NULL WHEN - COUNT( * ) THEN - COUNT( * ) ELSE ( + 95 ) END
----
95

skipif mysql # not compatible
query I rowsort label-2186
SELECT CASE + + 84 WHEN - 93 THEN NULL WHEN - COUNT ( * ) THEN - COUNT ( * ) ELSE ( + 95 ) END
----
95

query II rowsort
SELECT ALL + - 37 AS col1, + 3
----
-37
3

query I rowsort
SELECT DISTINCT - 61 * - ( - + 81 )
----
-4941

onlyif mysql # DIV for integer division: 
query I rowsort label-2189
SELECT ALL COALESCE ( + 24, 11 ) DIV 26 + 97 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL COALESCE ( + 24, 11 ) / 26 + 97 AS col2
----
97

query I rowsort
SELECT - - 6 + 56 AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2191
SELECT DISTINCT - ( 83 ) * 92 AS col0, - COUNT( * )
----
-7636
-1

skipif mysql # not compatible
query II rowsort label-2191
SELECT DISTINCT - ( 83 ) * 92 AS col0, - COUNT ( * )
----
-7636
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT - + 31 + + SUM( DISTINCT + 95 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2192
SELECT - + 31 + + SUM ( DISTINCT + 95 ) AS col0
----
64

query I rowsort
SELECT DISTINCT 59 - 63 - - 64 * - 60 * + - 78 AS col2
----
299516

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT 85 * + + 23 * - - ( + - COUNT( * ) )
----
-1955

skipif mysql # not compatible
query I rowsort label-2194
SELECT 85 * + + 23 * - - ( + - COUNT ( * ) )
----
-1955

onlyif mysql # DIV for integer division: 
query I rowsort label-2195
SELECT ALL + CASE + - 55 WHEN + 7 THEN - 10 ELSE + ( 8 ) - + 37 END DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL + CASE + - 55 WHEN + 7 THEN - 10 ELSE + ( 8 ) - + 37 END / 42
----
0

query I rowsort
SELECT 75 - + 66 * 85
----
-5535

query I rowsort
SELECT 10 * + 64 AS col0
----
640

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT 84 - + COUNT( * ) + - 52 + 18 + + 59 * - SUM( 8 ) * - 15
----
7129

skipif mysql # not compatible
query I rowsort label-2200
SELECT 84 - + COUNT ( * ) + - 52 + 18 + + 59 * - SUM ( 8 ) * - 15
----
7129

query II rowsort
SELECT ALL 79 AS col2, COALESCE ( 79, - + 68 * + + 17, - + 15 - 21 )
----
79
79

query I rowsort
SELECT 94 + - + 34
----
60

query I rowsort
SELECT ALL - 96 * 39 AS col2
----
-3744

onlyif mysql # aggregate syntax: 
query II rowsort label-2204
SELECT - 87, + NULLIF ( - COUNT( + 53 ), + + 56 ) * - - ( + + 81 ) col1
----
-87
-81

skipif mysql # not compatible
query II rowsort label-2204
SELECT - 87, + NULLIF ( - COUNT ( + 53 ), + + 56 ) * - - ( + + 81 ) col1
----
-87
-81

query II rowsort
SELECT - 89, - 88 AS col1
----
-89
-88

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

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

query I rowsort
SELECT 19 - + 97
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2208
SELECT ALL 0, - COUNT( * ) - 94 - + - 79 * - COUNT( * ) AS col1
----
0
-174

skipif mysql # not compatible
query II rowsort label-2208
SELECT ALL 0, - COUNT ( * ) - 94 - + - 79 * - COUNT ( * ) AS col1
----
0
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT DISTINCT 21 + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT 21 + COUNT ( * )
----
22

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

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

query I rowsort
SELECT ALL + 70 + - + 65
----
5

query II rowsort
SELECT 24 AS col1, - 90
----
24
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2213
SELECT - CAST( NULLIF ( 75, 57 ) AS SIGNED ), 35 AS col2
----
-75
35

skipif mysql # not compatible
query II rowsort label-2213
SELECT - CAST ( NULLIF ( 75, 57 ) AS INTEGER ), 35 AS col2
----
-75
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2214
SELECT + 2 + - + 33 - - + 57 * COUNT( * ) * + CAST( NULL AS SIGNED ) + - 1 + 32 * - 75 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT + 2 + - + 33 - - + 57 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - 1 + 32 * - 75 * COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT 9 AS col1, - 17 AS col1
----
9
-17

query I rowsort
SELECT NULLIF ( + + ( - 20 ), + - 3 * - - 34 ) + - NULLIF ( - 10, 13 )
----
-10

query II rowsort
SELECT - 4 AS col2, 83 * + + 4
----
-4
332

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2218
SELECT - 94 DIV + 35 - 98 + + COUNT( * ) + - MAX( CASE 73 WHEN + 73 - - 71 - + + 89 THEN + 44 - - 25 WHEN + - 87 THEN - 83 WHEN NULLIF ( + 34, + + CAST( NULL AS DECIMAL ) ) * 60 DIV + + 70 * - + 57 + + 86 THEN NULL ELSE + 58 + - - 84 END ) + - COUNT( * ) * 96 AS col2
----
-337

skipif mysql # not compatible
query I rowsort label-2218
SELECT - 94 / + 35 - 98 + + COUNT ( * ) + - MAX ( CASE 73 WHEN + 73 - - 71 - + + 89 THEN + 44 - - 25 WHEN + - 87 THEN - 83 WHEN NULLIF ( + 34, + + CAST ( NULL AS REAL ) ) * 60 / + + 70 * - + 57 + + 86 THEN NULL ELSE + 58 + - - 84 END ) + - COUNT ( * ) * 96 AS col2
----
-337

query II rowsort
SELECT - - 7, - NULLIF ( - 38, - 30 ) + - + 72 AS col2
----
7
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2220
SELECT ALL CAST( 7 AS SIGNED ) + - - COALESCE ( - 86, + NULLIF ( + + 65, + + 28 ), + + CASE 36 WHEN + 1 THEN - + 60 * + + 96 WHEN - 37 / + - 6 + + 18 / + CAST( NULL AS SIGNED ) THEN CASE + - 1 WHEN - + ( + + 55 ) * + + 24 + - 8 THEN - - 98 ELSE + 68 END * 55 - - 50 + COUNT( * ) END * - + 40 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL CAST ( 7 AS INTEGER ) + - - COALESCE ( - 86, + NULLIF ( + + 65, + + 28 ), + + CASE 36 WHEN + 1 THEN - + 60 * + + 96 WHEN - 37 / + - 6 + + 18 / + CAST ( NULL AS INTEGER ) THEN CASE + - 1 WHEN - + ( + + 55 ) * + + 24 + - 8 THEN - - 98 ELSE + 68 END * 55 - - 50 + COUNT ( * ) END * - + 40 ) AS col1
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2221
SELECT ALL + 12 DIV + 10 + + 76 * - SUM( - - 45 )
----
-3419

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL + 12 / + 10 + + 76 * - SUM ( - - 45 )
----
-3419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2222
SELECT + AVG ( DISTINCT + - 70 ) / + CASE - 54 WHEN + 8 THEN - ( COALESCE ( + 45, ( - 45 ) ) ) ELSE NULL END * + 71 + + 24 + CASE + 13 WHEN + 81 THEN + 56 + COUNT( * ) + - + CAST( NULL AS SIGNED ) WHEN - 16 + - 87 - - - MAX( 98 ) * + 0 THEN COUNT( * ) END + + + ( 3 ) * + 5 / 19 + + 2 / ( - + COUNT( DISTINCT + 10 ) ) + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT + AVG ( DISTINCT + - 70 ) / + CASE - 54 WHEN + 8 THEN - ( COALESCE ( + 45, ( - 45 ) ) ) ELSE NULL END * + 71 + + 24 + CASE + 13 WHEN + 81 THEN + 56 + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) WHEN - 16 + - 87 - - - MAX ( 98 ) * + 0 THEN COUNT ( * ) END + + + ( 3 ) * + 5 / 19 + + 2 / ( - + COUNT ( DISTINCT + 10 ) ) + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT 16 * - + 23 + - COUNT( * ) AS col2
----
-369

skipif mysql # not compatible
query I rowsort label-2223
SELECT 16 * - + 23 + - COUNT ( * ) AS col2
----
-369

query I rowsort
SELECT + 18 * - + 83 col2
----
-1494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2225
SELECT COUNT( DISTINCT ( + 45 ) ) * - + CAST( - AVG ( DISTINCT - 33 ) AS SIGNED ) * - - 31 * ( - + 19 ) AS col1
----
19437

skipif mysql # not compatible
query I rowsort label-2225
SELECT COUNT ( DISTINCT ( + 45 ) ) * - + CAST ( - AVG ( DISTINCT - 33 ) AS INTEGER ) * - - 31 * ( - + 19 ) AS col1
----
19437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2226
SELECT 7 / - 99 + + CASE 85 WHEN CASE - 90 WHEN 57 * 74 * + CAST( + COUNT( * ) AS SIGNED ) * - 19 / - 59 * - - 73 + + 72 THEN NULL WHEN - - 90 * + 63 + - 66 + + - NULLIF ( - 17, - + 92 ) * - 26 THEN + 45 ELSE NULL END THEN NULL WHEN + ( - COUNT( * ) ) * + 31 THEN - NULLIF ( - 91, - + CAST( + 29 AS DECIMAL ) ) + 98 - + 38 / - 59 END + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT 7 / - 99 + + CASE 85 WHEN CASE - 90 WHEN 57 * 74 * + CAST ( + COUNT ( * ) AS INTEGER ) * - 19 / - 59 * - - 73 + + 72 THEN NULL WHEN - - 90 * + 63 + - 66 + + - NULLIF ( - 17, - + 92 ) * - 26 THEN + 45 ELSE NULL END THEN NULL WHEN + ( - COUNT ( * ) ) * + 31 THEN - NULLIF ( - 91, - + CAST ( + 29 AS REAL ) ) + 98 - + 38 / - 59 END + 84
----
NULL

query II rowsort
SELECT ALL - 66 col2, - 16 + - ( - 22 )
----
-66
6

query II rowsort
SELECT + 22 AS col2, + 26
----
22
26

query II rowsort
SELECT + 39 AS col0, + 65 + + 60
----
39
125

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

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

query II rowsort
SELECT DISTINCT - + 33 col0, - 66 col0
----
-33
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2232
SELECT 94 + + 33 - 54 * CAST( - MIN( - + 11 ) AS SIGNED )
----
-467

skipif mysql # not compatible
query I rowsort label-2232
SELECT 94 + + 33 - 54 * CAST ( - MIN ( - + 11 ) AS INTEGER )
----
-467

query I rowsort
SELECT ALL + 73 * - - NULLIF ( 98, - 83 + 15 ) AS col1
----
7154

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ( COUNT( * ) ) + + 19 + + 75 - - 86 / - CASE - - 16 WHEN COUNT( * ) * - MIN( DISTINCT + 83 ) + COALESCE ( 4, - + CASE + 81 WHEN 73 * - ( 11 ) * - 87 * + 98 - + + 95 + - 89 + - - NULLIF ( 77, - - 1 ) + - NULLIF ( - CASE - COUNT( * ) WHEN 82 - - + ( + 75 ) * + + 99 THEN + 79 - + 10 END, + 74 ) + + 40 THEN 28 / 43 WHEN - COUNT( * ) THEN + COUNT( * ) * 4 + COUNT( * ) * + ( MAX( + 95 ) ) ELSE NULL END, COUNT( + 38 ) / - ( COUNT( * ) ) ) + COUNT( DISTINCT 5 ) THEN 19 + 61 ELSE NULL END + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2234
SELECT ( COUNT ( * ) ) + + 19 + + 75 - - 86 / - CASE - - 16 WHEN COUNT ( * ) * - MIN ( DISTINCT + 83 ) + COALESCE ( 4, - + CASE + 81 WHEN 73 * - ( 11 ) * - 87 * + 98 - + + 95 + - 89 + - - NULLIF ( 77, - - 1 ) + - NULLIF ( - CASE - COUNT ( * ) WHEN 82 - - + ( + 75 ) * + + 99 THEN + 79 - + 10 END, + 74 ) + + 40 THEN 28 / 43 WHEN - COUNT ( * ) THEN + COUNT ( * ) * 4 + COUNT ( * ) * + ( MAX ( + 95 ) ) ELSE NULL END, COUNT ( + 38 ) / - ( COUNT ( * ) ) ) + COUNT ( DISTINCT 5 ) THEN 19 + 61 ELSE NULL END + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT 0 * + COUNT( * ) * - COUNT( * ) + - ( + 16 ) * - + ( + 15 )
----
240

skipif mysql # not compatible
query I rowsort label-2235
SELECT 0 * + COUNT ( * ) * - COUNT ( * ) + - ( + 16 ) * - + ( + 15 )
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT 64 * + COUNT( DISTINCT + 33 ) - + 19
----
45

skipif mysql # not compatible
query I rowsort label-2236
SELECT 64 * + COUNT ( DISTINCT + 33 ) - + 19
----
45

query I rowsort
SELECT 23 * - 22
----
-506

query I rowsort
SELECT ALL + ( - 34 ) * - 78 AS col0
----
2652

onlyif mysql # DIV for integer division: 
query I rowsort label-2239
SELECT ( 37 ) + + 92 + - + COALESCE ( - NULLIF ( - 3, + + 77 * 49 ), - + ( 59 ), 35 ) DIV + 75 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-2239
SELECT ( 37 ) + + 92 + - + COALESCE ( - NULLIF ( - 3, + + 77 * 49 ), - + ( 59 ), 35 ) / + 75 AS col2
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2240
SELECT CAST( NULL AS SIGNED ) / + 62 * - - COUNT( ( + - 36 ) ) * 10 + + COALESCE ( 19, + 67, + 16 - - 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT CAST ( NULL AS INTEGER ) / + 62 * - - COUNT ( ( + - 36 ) ) * 10 + + COALESCE ( 19, + 67, + 16 - - 31 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 55 + 40 AS col0
----
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT ALL + ( - 54 ) + + - 45 * - + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL + ( - 54 ) + + - 45 * - + COUNT ( * )
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT DISTINCT CASE - - SUM( - 5 ) WHEN 51 + - 86 * 40 - - 35 THEN NULL ELSE ( - - 26 ) / - ( 20 ) / - COUNT( * ) END + + ( - CASE + 36 WHEN + 38 THEN + ( + + 6 ) - 29 + 9 * - 26 + + ( + 60 ) - - COALESCE ( - + 90, + COUNT( * ) ) / - ( 84 ) / 41 * + 23 * + - COUNT( * ) / + 19 * + MAX( DISTINCT 74 * + 75 ) * + 87 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT CASE - - SUM ( - 5 ) WHEN 51 + - 86 * 40 - - 35 THEN NULL ELSE ( - - 26 ) / - ( 20 ) / - COUNT ( * ) END + + ( - CASE + 36 WHEN + 38 THEN + ( + + 6 ) - 29 + 9 * - 26 + + ( + 60 ) - - COALESCE ( - + 90, + COUNT ( * ) ) / - ( 84 ) / 41 * + 23 * + - COUNT ( * ) / + 19 * + MAX ( DISTINCT 74 * + 75 ) * + 87 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2246
SELECT DISTINCT + 10 + + - 20 + + SUM( ALL 11 ) - 29 - - 67 * + 57 * - CAST( - COALESCE ( + 40, + CAST( + + 60 AS DECIMAL ) ) AS SIGNED ) + - 4 * + 84
----
152396

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT + 10 + + - 20 + + SUM ( ALL 11 ) - 29 - - 67 * + 57 * - CAST ( - COALESCE ( + 40, + CAST ( + + 60 AS REAL ) ) AS INTEGER ) + - 4 * + 84
----
152396

onlyif mysql # aggregate syntax: 
query II rowsort label-2247
SELECT 38 + - + 49 AS col2, CASE - - COUNT( ALL - + 61 ) WHEN + COUNT( * ) THEN + 2 * + - COUNT( * ) + 73 WHEN + 84 THEN NULL ELSE NULL END - + MIN( + - 69 ) + - - CASE - 12 WHEN - 79 * - AVG ( ALL 0 ) * 26 THEN NULL WHEN - + COUNT( ALL + 61 ) THEN 0 ELSE NULL END AS col0
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-2247
SELECT 38 + - + 49 AS col2, CASE - - COUNT ( ALL - + 61 ) WHEN + COUNT ( * ) THEN + 2 * + - COUNT ( * ) + 73 WHEN + 84 THEN NULL ELSE NULL END - + MIN ( + - 69 ) + - - CASE - 12 WHEN - 79 * - AVG ( ALL 0 ) * 26 THEN NULL WHEN - + COUNT ( ALL + 61 ) THEN 0 ELSE NULL END AS col0
----
-11
NULL

query I rowsort
SELECT ALL + 38 + - + 23 AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2249
SELECT DISTINCT - ( + ( + 56 ) ) + - ( + 59 ) + + 85 DIV + - COUNT( * ) - 41 - - 56 * + 69
----
3623

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT - ( + ( + 56 ) ) + - ( + 59 ) + + 85 / + - COUNT ( * ) - 41 - - 56 * + 69
----
3623

onlyif mysql # DIV for integer division: 
query II rowsort label-2250
SELECT 84 + 43 + + 29 DIV + + ( + - 17 ) col2, - 75 + - 37 + - 18 AS col0
----
126
-130

skipif mysql # not compatible
query II rowsort label-2250
SELECT 84 + 43 + + 29 / + + ( + - 17 ) col2, - 75 + - 37 + - 18 AS col0
----
126
-130

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

query I rowsort
SELECT 43 + + NULLIF ( - 93, 7 + + 47 ) AS col0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-2253
SELECT DISTINCT + - 73 * 54 + - 14 + 64 DIV + ( + 96 ) col2
----
-3956

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT + - 73 * 54 + - 14 + 64 / + ( + 96 ) col2
----
-3956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2254
SELECT DISTINCT - - COUNT( * ) + - - CAST( NULL AS SIGNED ) / + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT - - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) / + 21
----
NULL

query I rowsort
SELECT ALL + - 48 + - 9 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT ALL - CASE - 40 WHEN + 74 THEN + 97 - 43 WHEN 89 * - ( 24 ) + + 40 + - + 44 THEN NULL WHEN 8 * + + 13 THEN NULL END - - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL - CASE - 40 WHEN + 74 THEN + 97 - 43 WHEN 89 * - ( 24 ) + + 40 + - + 44 THEN NULL WHEN 8 * + + 13 THEN NULL END - - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT DISTINCT - 25 - - - COUNT( * ) + + 6
----
-20

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT - 25 - - - COUNT ( * ) + + 6
----
-20

query I rowsort
SELECT ALL + - 31 * - 73
----
2263

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT DISTINCT - CASE NULLIF ( - + 97, NULLIF ( 30, - 18 * 85 + 32 ) ) WHEN 20 * - + COUNT( * ) THEN + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT - CASE NULLIF ( - + 97, NULLIF ( 30, - 18 * 85 + 32 ) ) WHEN 20 * - + COUNT ( * ) THEN + 86 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT + 16 - SUM( + 57 )
----
-41

skipif mysql # not compatible
query I rowsort label-2260
SELECT + 16 - SUM ( + 57 )
----
-41

query II rowsort
SELECT DISTINCT - ( 66 ) AS col0, 45 * - + 11 AS col1
----
-66
-495

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2263
SELECT DISTINCT - CAST( COUNT( * ) AS DECIMAL ) / CASE + - 18 WHEN CASE - 44 WHEN - NULLIF ( - 53, + 4 ) THEN 49 ELSE - 30 END THEN - COALESCE ( 61, 79 * 9 + + - 89 + - - 4 * - 77 ) WHEN - 44 * - 48 * - - ( 0 ) THEN - - 34 + COUNT( * ) / + 10 + - 32 * - - MIN( - 25 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT - CAST ( COUNT ( * ) AS REAL ) / CASE + - 18 WHEN CASE - 44 WHEN - NULLIF ( - 53, + 4 ) THEN 49 ELSE - 30 END THEN - COALESCE ( 61, 79 * 9 + + - 89 + - - 4 * - 77 ) WHEN - 44 * - 48 * - - ( 0 ) THEN - - 34 + COUNT ( * ) / + 10 + - 32 * - - MIN ( - 25 ) END AS col1
----
NULL

query I rowsort
SELECT ALL 82 * + - 48 * - 48
----
188928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2265
SELECT - CASE CAST( NULL AS SIGNED ) WHEN + + ( + 21 ) * + 41 THEN NULL WHEN - - CAST( NULL AS SIGNED ) + - - 38 THEN + 13 + + + ( + + COUNT( * ) ) WHEN 50 * - 51 + - - CASE + + 87 WHEN + + 60 THEN NULL WHEN 78 + - + 35 + - ( - - 38 ) * + CAST( - 56 AS SIGNED ) + - 37 THEN 43 * - 83 ELSE 70 * + 23 * - - 67 END * + 18 THEN + 15 END * - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2265
SELECT - CASE CAST ( NULL AS INTEGER ) WHEN + + ( + 21 ) * + 41 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) + - - 38 THEN + 13 + + + ( + + COUNT ( * ) ) WHEN 50 * - 51 + - - CASE + + 87 WHEN + + 60 THEN NULL WHEN 78 + - + 35 + - ( - - 38 ) * + CAST ( - 56 AS INTEGER ) + - 37 THEN 43 * - 83 ELSE 70 * + 23 * - - 67 END * + 18 THEN + 15 END * - 90 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2266
SELECT ALL + NULLIF ( - + CAST( NULL AS DECIMAL ), + + 61 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL + NULLIF ( - + CAST ( NULL AS REAL ), + + 61 ) AS col0
----
NULL

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

query II rowsort
SELECT ALL - 60 * - - 84 * - 7, ( 66 ) * - 99 + 25 + - - 0 col0
----
35280
-6509

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

skipif mysql # not compatible
query I rowsort label-2269
SELECT + + COALESCE ( - CAST ( NULL AS INTEGER ), + 88 )
----
88

query II rowsort
SELECT ALL + 69, + 11 AS col0
----
69
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2271
SELECT ALL 47 * - 34 * + 43 DIV COUNT( * ) AS col0
----
-68714

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL 47 * - 34 * + 43 / COUNT ( * ) AS col0
----
-68714

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT NULLIF ( - - COUNT( * ), - - ( + 82 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2272
SELECT NULLIF ( - - COUNT ( * ), - - ( + 82 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2273
SELECT DISTINCT 64 * - + 16 * + - COUNT( * ), - 80 AS col1
----
1024
-80

skipif mysql # not compatible
query II rowsort label-2273
SELECT DISTINCT 64 * - + 16 * + - COUNT ( * ), - 80 AS col1
----
1024
-80

query I rowsort
SELECT + 35 + + 88
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2275
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( + - 45 ) / - 32 * - 29 + - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( + - 45 ) / - 32 * - 29 + - 20 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2277
SELECT ALL 59 * 52 * + + 56 * - 25 + + COUNT( * ) DIV COUNT( * ) AS col2
----
-4295199

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL 59 * 52 * + + 56 * - 25 + + COUNT ( * ) / COUNT ( * ) AS col2
----
-4295199

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT DISTINCT - 64 * - COUNT( * ) + - - 14 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT - 64 * - COUNT ( * ) + - - 14 AS col0
----
78

query II rowsort
SELECT ALL + 3, 51 AS col1
----
3
51

query I rowsort
SELECT + ( + + 23 ) col0
----
23

query II rowsort
SELECT + 39 - + 5 + 78 AS col1, 56
----
112
56

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

query II rowsort
SELECT ALL + 80 AS col0, - ( + - 28 ) * - 41 + - - 40
----
80
-1108

query I rowsort
SELECT + 15 + 93
----
108

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

skipif mysql # not compatible
query I rowsort label-2285
SELECT COUNT ( - - 42 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT - COUNT( * ) * + - CASE 85 WHEN - 29 / 36 + + AVG ( + 30 ) THEN NULL WHEN + + 18 THEN + + 57 * - + 67 + COALESCE ( ( 32 ), + COUNT( * ) * + 20 ) ELSE NULL END + - + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT - COUNT ( * ) * + - CASE 85 WHEN - 29 / 36 + + AVG ( + 30 ) THEN NULL WHEN + + 18 THEN + + 57 * - + 67 + COALESCE ( ( 32 ), + COUNT ( * ) * + 20 ) ELSE NULL END + - + 76 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2287
SELECT COUNT( * ) col0, + COALESCE ( - 96, + 51 * + - MAX( - - 53 ) * 13 * + CASE + 80 WHEN + ( - NULLIF ( 41, - 45 - + CAST( - 95 AS SIGNED ) ) ) THEN - 1 DIV - 76 + 83 - + COUNT( ALL 42 ) + + 65 ELSE NULL END + 48 + + 25, 78 * 16 + - COUNT( * ) * CAST( NULL AS SIGNED ) * + 80, 33 + + 92 * ( 53 ) * - 28 + + 68 ) * + 47 AS col2
----
1
-4512

skipif mysql # not compatible
query II rowsort label-2287
SELECT COUNT ( * ) col0, + COALESCE ( - 96, + 51 * + - MAX ( - - 53 ) * 13 * + CASE + 80 WHEN + ( - NULLIF ( 41, - 45 - + CAST ( - 95 AS INTEGER ) ) ) THEN - 1 / - 76 + 83 - + COUNT ( ALL 42 ) + + 65 ELSE NULL END + 48 + + 25, 78 * 16 + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + 80, 33 + + 92 * ( 53 ) * - 28 + + 68 ) * + 47 AS col2
----
1
-4512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2288
SELECT - CASE + CAST( NULL AS SIGNED ) WHEN 90 THEN 43 WHEN 94 THEN + 59 + - 37 / + + 70 * + COUNT( * ) WHEN - 50 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT - CASE + CAST ( NULL AS INTEGER ) WHEN 90 THEN 43 WHEN 94 THEN + 59 + - 37 / + + 70 * + COUNT ( * ) WHEN - 50 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2289
SELECT - - 20 + + COALESCE ( - 45, 77 ) DIV 58 DIV 65 * - + 73 + + MIN( DISTINCT + 38 ) DIV COALESCE ( 48, - 71 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2289
SELECT - - 20 + + COALESCE ( - 45, 77 ) / 58 / 65 * - + 73 + + MIN ( DISTINCT + 38 ) / COALESCE ( 48, - 71 ) AS col2
----
20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL - - 8 - 1 * - SUM( 68 )
----
76

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL - - 8 - 1 * - SUM ( 68 )
----
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL + COALESCE ( + 72, - ( 87 ), - 10 * + 83 * 69 * + 35 * COUNT( * ) ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL + COALESCE ( + 72, - ( 87 ), - 10 * + 83 * 69 * + 35 * COUNT ( * ) ) AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2294
SELECT - - 76 - MAX( + - 2 ) AS col0, + COUNT( * ) DIV - - 44
----
78
0

skipif mysql # not compatible
query II rowsort label-2294
SELECT - - 76 - MAX ( + - 2 ) AS col0, + COUNT ( * ) / - - 44
----
78
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2295
SELECT ALL - + 33 DIV + + 28 + + 25 col0, + CAST( NULL AS SIGNED )
----
24
NULL

skipif mysql # not compatible
query II rowsort label-2295
SELECT ALL - + 33 / + + 28 + + 25 col0, + CAST ( NULL AS INTEGER )
----
24
NULL

query I rowsort
SELECT - + 1 - + 29
----
-30

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

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

query I rowsort
SELECT - CASE + - 43 WHEN + 18 THEN NULL WHEN - 18 THEN + 98 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2299
SELECT + 0 + - 8 + - - 38 - + 5 + - - 15 DIV - 56 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2299
SELECT + 0 + - 8 + - - 38 - + 5 + - - 15 / - 56 AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2300
SELECT - 70 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2300
SELECT - 70 / - 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT - - 24 * 59 * COUNT( - 22 )
----
1416

skipif mysql # not compatible
query I rowsort label-2301
SELECT - - 24 * 59 * COUNT ( - 22 )
----
1416

query I rowsort
SELECT DISTINCT NULLIF ( + 49, - 39 * + ( + 92 ) )
----
49

query I rowsort
SELECT - + 49 * - 13
----
637

query I rowsort
SELECT DISTINCT + + 62 * 31 * - 41 * - + 34
----
2679268

onlyif mysql # aggregate syntax: 
query II rowsort label-2305
SELECT + 49 * - 38 + + 58 * + 14 AS col2, + 59 * - - COUNT( * ) AS col1
----
-1050
59

skipif mysql # not compatible
query II rowsort label-2305
SELECT + 49 * - 38 + + 58 * + 14 AS col2, + 59 * - - COUNT ( * ) AS col1
----
-1050
59

query I rowsort
SELECT DISTINCT + COALESCE ( + 86, 38 ) col1
----
86

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2308
SELECT ALL + 69 DIV + + 77 + + ( - - 89 ) + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL + 69 / + + 77 + + ( - - 89 ) + COUNT ( * )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2309
SELECT ALL + SUM( DISTINCT - + CAST( 47 AS SIGNED ) ) DIV - - 27 + - NULLIF ( 99, + 52 + - 54 )
----
-100

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL + SUM ( DISTINCT - + CAST ( 47 AS INTEGER ) ) / - - 27 + - NULLIF ( 99, + 52 + - 54 )
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-2310
SELECT ALL 86 DIV + 48 + + 51 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL 86 / + 48 + + 51 AS col0
----
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2312
SELECT DISTINCT + CAST( - + CASE - - 95 WHEN + + 66 * - 39 THEN + 44 * + 99 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT + CAST ( - + CASE - - 95 WHEN + + 66 * - 39 THEN + 44 * + 99 END AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT ( - COALESCE ( - ( - 55 ), - 48, COUNT( * ) ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2314
SELECT ( - COALESCE ( - ( - 55 ), - 48, COUNT ( * ) ) ) AS col1
----
-55

query I rowsort
SELECT DISTINCT ( - + 72 ) * - - ( 3 )
----
-216

query I rowsort
SELECT ALL - 77 * 7 + + 60 AS col1
----
-479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT 74 * + + CAST( NULL AS SIGNED ) + 22 + + 78 + - 32 * - - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2317
SELECT 74 * + + CAST ( NULL AS INTEGER ) + 22 + + 78 + - 32 * - - 37 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2318
SELECT 38 * + NULLIF ( NULLIF ( + MAX( DISTINCT - CAST( + ( - NULLIF ( - - 11, - 25 ) ) AS SIGNED ) ), + 47 ), - - 54 ) + + NULLIF ( - + 37, - 24 ) AS col2
----
381

skipif mysql # not compatible
query I rowsort label-2318
SELECT 38 * + NULLIF ( NULLIF ( + MAX ( DISTINCT - CAST ( + ( - NULLIF ( - - 11, - 25 ) ) AS INTEGER ) ), + 47 ), - - 54 ) + + NULLIF ( - + 37, - 24 ) AS col2
----
381

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2319
SELECT + CAST( 18 AS SIGNED ) * + 57 + - CAST( - 81 AS SIGNED )
----
1107

skipif mysql # not compatible
query I rowsort label-2319
SELECT + CAST ( 18 AS INTEGER ) * + 57 + - CAST ( - 81 AS INTEGER )
----
1107

query I rowsort
SELECT ALL ( - + 53 ) * + 30 - 31
----
-1621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2321
SELECT DISTINCT - + 22 * + + 96 - 87 - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT - + 22 * + + 96 - 87 - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT + 18 + + 4 AS col0, 18
----
22
18

query I rowsort
SELECT ALL - - 57 * - 52 - 39
----
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT + COUNT( * ) + + ( + 86 ) * - 94
----
-8083

skipif mysql # not compatible
query I rowsort label-2324
SELECT + COUNT ( * ) + + ( + 86 ) * - 94
----
-8083

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT + MIN( ALL 3 ) * - 57
----
-171

skipif mysql # not compatible
query I rowsort label-2325
SELECT + MIN ( ALL 3 ) * - 57
----
-171

query I rowsort
SELECT ALL - 34 * - + 26 col0
----
884

query I rowsort
SELECT + - COALESCE ( + 53, 81 - + 28 ) + + 1 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT - CASE - 59 WHEN MAX( + - 9 ) THEN NULL WHEN - 88 + + - 77 THEN - 83 * + 75 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2328
SELECT - CASE - 59 WHEN MAX ( + - 9 ) THEN NULL WHEN - 88 + + - 77 THEN - 83 * + 75 ELSE NULL END AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT 75 + - 53 * + 88 AS col0
----
-4589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2332
SELECT ALL - 84 * - ( - - COUNT( * ) ) DIV - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL - 84 * - ( - - COUNT ( * ) ) / - 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2333
SELECT ALL 77 * + + COUNT( * ) AS col2, - 79
----
77
-79

skipif mysql # not compatible
query II rowsort label-2333
SELECT ALL 77 * + + COUNT ( * ) AS col2, - 79
----
77
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-2334
SELECT ALL - ( - COUNT( * ) ), - MAX( DISTINCT - + ( 23 ) ) + - 67 AS col0
----
1
-44

skipif mysql # not compatible
query II rowsort label-2334
SELECT ALL - ( - COUNT ( * ) ), - MAX ( DISTINCT - + ( 23 ) ) + - 67 AS col0
----
1
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT DISTINCT - ( COALESCE ( - 18, + NULLIF ( + + 87, - 57 ) * - + 31, + 27 + 33 ) ) * + SUM( + 55 )
----
990

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT - ( COALESCE ( - 18, + NULLIF ( + + 87, - 57 ) * - + 31, + 27 + 33 ) ) * + SUM ( + 55 )
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT MIN( - - 7 ) + SUM( + - 70 ) + + + ( + + 18 )
----
-45

skipif mysql # not compatible
query I rowsort label-2336
SELECT MIN ( - - 7 ) + SUM ( + - 70 ) + + + ( + + 18 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT 31 + + 57 - + 87 + - COUNT( - COALESCE ( + 0, 24, - - 66 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2337
SELECT 31 + + 57 - + 87 + - COUNT ( - COALESCE ( + 0, 24, - - 66 ) ) AS col1
----
0

query I rowsort
SELECT ALL + - 97 + 29 - 55
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2339
SELECT CAST( + 35 AS SIGNED ) * 59 * + - 85
----
-175525

skipif mysql # not compatible
query I rowsort label-2339
SELECT CAST ( + 35 AS INTEGER ) * 59 * + - 85
----
-175525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2340
SELECT + 79 + - 43 + - CAST( + - 54 AS SIGNED ) + + 49 + + COUNT( * ) * + 37 col2, - ( 55 ) AS col2
----
176
-55

skipif mysql # not compatible
query II rowsort label-2340
SELECT + 79 + - 43 + - CAST ( + - 54 AS INTEGER ) + + 49 + + COUNT ( * ) * + 37 col2, - ( 55 ) AS col2
----
176
-55

query I rowsort
SELECT 94 * 37 AS col1
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT 29 + + NULLIF ( + 8, + - 72 + COUNT( ALL + - 62 ) ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2342
SELECT 29 + + NULLIF ( + 8, + - 72 + COUNT ( ALL + - 62 ) ) AS col1
----
37

query I rowsort
SELECT ALL - 69 + + 82 + - 27 col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2344
SELECT ALL + COALESCE ( + - 33, - - ( + 10 ) + - - CAST( NULL AS SIGNED ) ) * COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL + COALESCE ( + - 33, - - ( + 10 ) + - - CAST ( NULL AS INTEGER ) ) * COUNT ( * )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2345
SELECT 2 AS col2, CAST( NULL AS SIGNED )
----
2
NULL

skipif mysql # not compatible
query II rowsort label-2345
SELECT 2 AS col2, CAST ( NULL AS INTEGER )
----
2
NULL

query I rowsort
SELECT ALL 88 + - + 6
----
82

query I rowsort
SELECT DISTINCT - CASE - - 23 WHEN - 86 THEN + 17 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 19 * - 38
----
-722

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2350
SELECT DISTINCT - 24 + - - COUNT( * ) + - - 98, 74 AS col0
----
75
74

skipif mysql # not compatible
query II rowsort label-2350
SELECT DISTINCT - 24 + - - COUNT ( * ) + - - 98, 74 AS col0
----
75
74

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

query I rowsort
SELECT 9 * 22
----
198

query I rowsort
SELECT 45 * - 7
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT DISTINCT - ( COALESCE ( 63, ( - - 41 ) ) ) - - COUNT( * ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT - ( COALESCE ( 63, ( - - 41 ) ) ) - - COUNT ( * ) AS col2
----
-62

query I rowsort
SELECT 58 * + 42
----
2436

query II rowsort
SELECT + 38, 59 AS col0
----
38
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2357
SELECT 64 DIV - - 45 col1
----
1

skipif mysql # not compatible
query I rowsort label-2357
SELECT 64 / - - 45 col1
----
1

query I rowsort
SELECT ALL - 6 - + 44 AS col0
----
-50

query I rowsort
SELECT 35 * + 88 AS col0
----
3080

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

query I rowsort
SELECT ALL 56 * - 20 col0
----
-1120

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT 54 DIV - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2362
SELECT 54 / - 90 AS col1
----
0

query I rowsort
SELECT DISTINCT + 96 * - - 51 AS col0
----
4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2364
SELECT ALL - - 62 * 67 + + CAST( - 89 AS SIGNED ) - - - 51 AS col2, COUNT( * ) AS col2
----
4014
1

skipif mysql # not compatible
query II rowsort label-2364
SELECT ALL - - 62 * 67 + + CAST ( - 89 AS INTEGER ) - - - 51 AS col2, COUNT ( * ) AS col2
----
4014
1

query I rowsort
SELECT + 69 + 24 * - 49 AS col0
----
-1107

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT + 66 * + 48 * + - 48 + - - 4 DIV - 6
----
-152064

skipif mysql # not compatible
query I rowsort label-2366
SELECT + 66 * + 48 * + - 48 + - - 4 / - 6
----
-152064

query II rowsort
SELECT ALL - ( 43 ) * - 37, + ( - + 91 ) + + - 4 AS col0
----
1591
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT ALL + COUNT( * ) + 76 + - 67
----
10

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL + COUNT ( * ) + 76 + - 67
----
10

query I rowsort
SELECT ALL ( + COALESCE ( - 62, - 96 * 14 * ( + CASE - 82 WHEN 5 THEN + ( + + 88 ) WHEN + - 76 - - 74 + 3 * 71 THEN NULL END ) ) ) + - - 2 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT - 18 - - COUNT( * ) - 47 * + ( + 29 ) * + 85
----
-115872

skipif mysql # not compatible
query I rowsort label-2370
SELECT - 18 - - COUNT ( * ) - 47 * + ( + 29 ) * + 85
----
-115872

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT + COALESCE ( + 71, - CASE + 28 WHEN + 4 + + ( - ( 39 ) ) THEN + ( + + 50 ) WHEN + 65 THEN NULL WHEN - + 27 THEN COUNT( * ) ELSE + ( - 0 ) END + - COALESCE ( 86, + + ( 7 ), 96 ), - ( - - SUM( ALL + - 23 ) ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2371
SELECT + COALESCE ( + 71, - CASE + 28 WHEN + 4 + + ( - ( 39 ) ) THEN + ( + + 50 ) WHEN + 65 THEN NULL WHEN - + 27 THEN COUNT ( * ) ELSE + ( - 0 ) END + - COALESCE ( 86, + + ( 7 ), 96 ), - ( - - SUM ( ALL + - 23 ) ) ) AS col0
----
71

query I rowsort
SELECT 69 + + + 60
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2373
SELECT ALL + SUM( ALL + ( 26 ) ) * + 95 + - 96 AS col1, CAST( NULL AS SIGNED )
----
2374
NULL

skipif mysql # not compatible
query II rowsort label-2373
SELECT ALL + SUM ( ALL + ( 26 ) ) * + 95 + - 96 AS col1, CAST ( NULL AS INTEGER )
----
2374
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2374
SELECT NULLIF ( - NULLIF ( + + 51, 31 ), 62 / + 61 + + + 20 + + 6 * + 39 + + MAX( DISTINCT 37 ) * + COUNT( * ) * 95 ) * 23 + - 84, - 53 col0
----
-1257
-53

skipif mysql # not compatible
query II rowsort label-2374
SELECT NULLIF ( - NULLIF ( + + 51, 31 ), 62 / + 61 + + + 20 + + 6 * + 39 + + MAX ( DISTINCT 37 ) * + COUNT ( * ) * 95 ) * 23 + - 84, - 53 col0
----
-1257
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT ALL + 61 + - COUNT( * ) + MIN( ALL - 34 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL + 61 + - COUNT ( * ) + MIN ( ALL - 34 ) AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2376
SELECT - 42, - COUNT( * ) * - SUM( + 80 ) * ( + - 77 ) - CAST( NULL AS SIGNED ) + 86 + - 40 * + - 22 * + 45 AS col0
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-2376
SELECT - 42, - COUNT ( * ) * - SUM ( + 80 ) * ( + - 77 ) - CAST ( NULL AS INTEGER ) + 86 + - 40 * + - 22 * + 45 AS col0
----
-42
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2378
SELECT 79 DIV 76 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-2378
SELECT 79 / 76 / + 60
----
0

query I rowsort
SELECT DISTINCT 47 + 32 * - 90 + + NULLIF ( - - 33, - 38 * ( 10 ) ) col2
----
-2800

query II rowsort
SELECT ALL 3 col0, 52
----
3
52

query I rowsort
SELECT ALL 88 + + + 69
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT DISTINCT 47 + + + NULLIF ( + 68, - + ( - - 28 ) ) + + - SUM( + + ( 40 ) )
----
75

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT 47 + + + NULLIF ( + 68, - + ( - - 28 ) ) + + - SUM ( + + ( 40 ) )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2383
SELECT 79 AS col2, + 5 + - NULLIF ( ( + - 68 ), 71 * + - 64 + 13 * + COUNT( * ) * + AVG ( - 3 ) ) + MAX( DISTINCT - - 17 ) + - CASE + + 8 WHEN - 14 * 64 * - COALESCE ( AVG ( DISTINCT - - 43 ), + + MIN( + 64 ) + 22 ) THEN + 26 ELSE NULL END + + 59 * - + 82 AS col0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-2383
SELECT 79 AS col2, + 5 + - NULLIF ( ( + - 68 ), 71 * + - 64 + 13 * + COUNT ( * ) * + AVG ( - 3 ) ) + MAX ( DISTINCT - - 17 ) + - CASE + + 8 WHEN - 14 * 64 * - COALESCE ( AVG ( DISTINCT - - 43 ), + + MIN ( + 64 ) + 22 ) THEN + 26 ELSE NULL END + + 59 * - + 82 AS col0
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT COALESCE ( COUNT( * ), - 58 ) * 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2384
SELECT COALESCE ( COUNT ( * ), - 58 ) * 76 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT DISTINCT MAX( ALL 55 ) + + 7
----
62

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT MAX ( ALL 55 ) + + 7
----
62

query II rowsort
SELECT ALL 14 AS col1, 14 * + 20 AS col2
----
14
280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2387
SELECT DISTINCT - 37 + + 15 DIV 33 * 21 * + 18 * + MAX( DISTINCT + 13 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT - 37 + + 15 / 33 * 21 * + 18 * + MAX ( DISTINCT + 13 ) AS col2
----
-37

query I rowsort
SELECT NULLIF ( + + 24, + 1 ) * + + 22 + + 88 AS col0
----
616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2389
SELECT - COUNT( * ) / COALESCE ( 56, 83 ) * + - CASE - 58 WHEN - 62 * + COALESCE ( - 49, COUNT( * ) + COUNT( * ) ) THEN NULL WHEN - COALESCE ( + - 53, - - 9 + - COALESCE ( ( + ( + 99 ) ), + 90 + - - CASE WHEN 46 IN ( - 42, COUNT( DISTINCT 46 ), 58, + ( 75 ) ) THEN - MIN( - 23 ) END ) ) THEN 22 * + COALESCE ( - 73, - 62 + CAST( NULL AS SIGNED ) * - - 93 ) / 33 + + NULLIF ( - COUNT( * ), - 10 ) * 81 ELSE NULL END + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT - COUNT ( * ) / COALESCE ( 56, 83 ) * + - CASE - 58 WHEN - 62 * + COALESCE ( - 49, COUNT ( * ) + COUNT ( * ) ) THEN NULL WHEN - COALESCE ( + - 53, - - 9 + - COALESCE ( ( + ( + 99 ) ), + 90 + - - CASE WHEN 46 IN ( - 42, COUNT ( DISTINCT 46 ), 58, + ( 75 ) ) THEN - MIN ( - 23 ) END ) ) THEN 22 * + COALESCE ( - 73, - 62 + CAST ( NULL AS INTEGER ) * - - 93 ) / 33 + + NULLIF ( - COUNT ( * ), - 10 ) * 81 ELSE NULL END + + 3
----
NULL

query I rowsort
SELECT 45 * + 30
----
1350

query I rowsort
SELECT 19 + + 64
----
83

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

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

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

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

query I rowsort
SELECT 84 * 60 + + - 23
----
5017

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2395
SELECT DISTINCT - 2 * + + CAST( NULL AS DECIMAL ), MIN( DISTINCT - + 52 ) - - 50 AS col0
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-2395
SELECT DISTINCT - 2 * + + CAST ( NULL AS REAL ), MIN ( DISTINCT - + 52 ) - - 50 AS col0
----
NULL
-2

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL NULLIF ( 27, SUM( 3 ) * + 67 ) * - - MIN( ALL - ( + - 70 ) ) AS col2
----
1890

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL NULLIF ( 27, SUM ( 3 ) * + 67 ) * - - MIN ( ALL - ( + - 70 ) ) AS col2
----
1890

query I rowsort
SELECT 63 + - + 51 + - + 95 col0
----
-83

query I rowsort
SELECT ALL - COALESCE ( + 1, 46 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT + 30 * 62 + + + 71 - + COALESCE ( - 96, + + 59 * - + ( NULLIF ( - COUNT( * ), + 12 / 97 + 7 ) ) ) + + CAST( NULL AS SIGNED ) + - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT + 30 * 62 + + + 71 - + COALESCE ( - 96, + + 59 * - + ( NULLIF ( - COUNT ( * ), + 12 / 97 + 7 ) ) ) + + CAST ( NULL AS INTEGER ) + - + 50
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT + COUNT ( DISTINCT + 2 ) AS col0
----
1

query I rowsort
SELECT - 80 * - 30 col1
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT + - COALESCE ( - COUNT( * ), 16 + - 51 * + 95 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2404
SELECT + - COALESCE ( - COUNT ( * ), 16 + - 51 * + 95 ) AS col1
----
1

query I rowsort
SELECT ALL + 51 + - 56
----
-5

query I rowsort
SELECT ALL - 93 + + ( + - 97 ) + - 2 + - 43 * - + 59 * + 51
----
129195

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT DISTINCT COUNT( * ) * 13 + 24
----
37

skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT COUNT ( * ) * 13 + 24
----
37

query II rowsort
SELECT - + 12 * 50, - 71 AS col0
----
-600
-71

query I rowsort
SELECT ALL + 90 + 35 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT ALL - - COUNT( * ) + + 52 * - 81
----
-4211

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL - - COUNT ( * ) + + 52 * - 81
----
-4211

query I rowsort
SELECT - 78 + 55
----
-23

query I rowsort
SELECT - 83 * - 30 * + + 60
----
149400

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT + 66 + + NULLIF ( + NULLIF ( 24, - 47 / + + 36 ), + - ( - - 14 ) + + 87 + - ( - 52 ) * 58 ) * + 21 * + COUNT( * ) + + + NULLIF ( + 58, 66 ) AS col2
----
628

skipif mysql # not compatible
query I rowsort label-2414
SELECT + 66 + + NULLIF ( + NULLIF ( 24, - 47 / + + 36 ), + - ( - - 14 ) + + 87 + - ( - 52 ) * 58 ) * + 21 * + COUNT ( * ) + + + NULLIF ( + 58, 66 ) AS col2
----
628

onlyif mysql # DIV for integer division: 
query II rowsort label-2415
SELECT DISTINCT 4 AS col2, 21 DIV + 22
----
4
0

skipif mysql # not compatible
query II rowsort label-2415
SELECT DISTINCT 4 AS col2, 21 / + 22
----
4
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT + 76 + - 68 * - ( - COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-2418
SELECT + 76 + - 68 * - ( - COUNT ( * ) )
----
8

query I rowsort
SELECT + 35 * + - 34
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL ( - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL ( - COUNT ( * ) ) col0
----
-1

query II rowsort
SELECT DISTINCT ( 59 ) AS col0, 68
----
59
68

query I rowsort
SELECT DISTINCT 64 - - - 46 - + 15 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2423
SELECT - AVG ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2423
SELECT - AVG ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT ( - 45 ) * COUNT ( * ) + + COUNT ( * ) AS col2
----
-44

query I rowsort
SELECT + 98 + + + 11 * + 89 * + - 96 AS col2
----
-93886

query I rowsort
SELECT ( - 1 ) AS col0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2428
SELECT ALL CAST( NULL AS DECIMAL ) * - - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL CAST ( NULL AS REAL ) * - - 34 AS col1
----
NULL

query II rowsort
SELECT ( + 71 ) AS col2, 68
----
71
68

query II rowsort
SELECT + 26 - - 82 AS col0, 57 + - 10 + 71 AS col1
----
108
118

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT ALL - ( - 59 ) DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL - ( - 59 ) / 55
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2433
SELECT + 64 DIV + 87 * + 57 * + 37 + - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2433
SELECT + 64 / + 87 * + 57 * + 37 + - + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2434
SELECT ALL - CAST( NULL AS SIGNED ) * 43 + + CASE + - 99 WHEN 51 * + 98 THEN NULL WHEN 22 + + - 21 THEN - 34 + - COUNT( * ) * - 54 END + + ( 85 ) + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL - CAST ( NULL AS INTEGER ) * 43 + + CASE + - 99 WHEN 51 * + 98 THEN NULL WHEN 22 + + - 21 THEN - 34 + - COUNT ( * ) * - 54 END + + ( 85 ) + 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2435
SELECT + - 91 - - CASE - 40 WHEN CAST( NULL AS SIGNED ) THEN - CAST( NULL AS DECIMAL ) WHEN 9 * ( + 72 ) - - 69 * + - COALESCE ( - ( COUNT( DISTINCT ( + - 59 ) ) ), - 88 + + 53 ) * + COUNT( + 52 ) + + 80 + 62 THEN COUNT( * ) WHEN + SUM( ALL - + 4 ) * - 75 THEN - 43 ELSE NULL END + + + 1 / 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT + - 91 - - CASE - 40 WHEN CAST ( NULL AS INTEGER ) THEN - CAST ( NULL AS REAL ) WHEN 9 * ( + 72 ) - - 69 * + - COALESCE ( - ( COUNT ( DISTINCT ( + - 59 ) ) ), - 88 + + 53 ) * + COUNT ( + 52 ) + + 80 + 62 THEN COUNT ( * ) WHEN + SUM ( ALL - + 4 ) * - 75 THEN - 43 ELSE NULL END + + + 1 / 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT ALL + ( + NULLIF ( - 1, + 75 * + + 33 - + + 48 - - COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL + ( + NULLIF ( - 1, + 75 * + + 33 - + + 48 - - COUNT ( * ) ) ) AS col2
----
-1

query I rowsort
SELECT ALL - 40 * - - 91 + + 74
----
-3566

query I rowsort
SELECT DISTINCT - 4 * - 61 + + 97 + + + 53 AS col0
----
394

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT DISTINCT ( + 62 ) * + ( COUNT( * ) ) * - 79 + - 39 + - 79 + + - 6 AS col1
----
-5022

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT ( + 62 ) * + ( COUNT ( * ) ) * - 79 + - 39 + - 79 + + - 6 AS col1
----
-5022

onlyif mysql # DIV for integer division: 
query I rowsort label-2441
SELECT - COALESCE ( + + 81, + ( 16 ) + + - 23, - - ( - 20 ), 58 ) * ( 15 ) * 84 DIV + - 37 + + + 36 + 69
----
2863

skipif mysql # not compatible
query I rowsort label-2441
SELECT - COALESCE ( + + 81, + ( 16 ) + + - 23, - - ( - 20 ), 58 ) * ( 15 ) * 84 / + - 37 + + + 36 + 69
----
2863

query II rowsort
SELECT ALL + 11 * + + COALESCE ( 48, + 97 + - 98 ) + + 91 + - 65 AS col1, - 22 * + 71 AS col2
----
554
-1562

query II rowsort
SELECT + ( + 76 ) + - 69 AS col1, + COALESCE ( 9, - 84 ) AS col1
----
7
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2444
SELECT - 37 - COUNT( - 46 ) DIV + + COUNT( * ) - + 25 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2444
SELECT - 37 - COUNT ( - 46 ) / + + COUNT ( * ) - + 25 AS col2
----
-63

query I rowsort
SELECT ALL CASE - 1 WHEN - + 5 THEN + 6 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT ALL + 17 * NULLIF ( + NULLIF ( - 42, - 61 / 98 ), + - 52 - 3 * COUNT( * ) + + 33 ) - 57 AS col0
----
-771

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL + 17 * NULLIF ( + NULLIF ( - 42, - 61 / 98 ), + - 52 - 3 * COUNT ( * ) + + 33 ) - 57 AS col0
----
-771

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT ALL - 46 - + - COUNT( - + 88 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL - 46 - + - COUNT ( - + 88 ) AS col2
----
-45

query I rowsort
SELECT - + 40 + ( 7 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT ALL - CASE - 20 WHEN - COUNT( ALL + 3 ) THEN + 4 * + COUNT( * ) * + 88 + 81 + 52 + + + 42 * - NULLIF ( 43, - NULLIF ( - + 73, - - 59 ) ) * - 21 ELSE + + COUNT( * ) END * 30
----
-30

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL - CASE - 20 WHEN - COUNT ( ALL + 3 ) THEN + 4 * + COUNT ( * ) * + 88 + 81 + 52 + + + 42 * - NULLIF ( 43, - NULLIF ( - + 73, - - 59 ) ) * - 21 ELSE + + COUNT ( * ) END * 30
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT - MAX( 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-2451
SELECT - MAX ( 45 )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2452
SELECT - 40 - - - COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
-40

skipif mysql # not compatible
query I rowsort label-2452
SELECT - 40 - - - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
-40

query I rowsort
SELECT - 5 * - ( + - ( - 4 ) ) * 88 AS col1
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT + MIN( - + ( 59 ) ) * 17 + 66 + - 95 + - 50 * - 2
----
-932

skipif mysql # not compatible
query I rowsort label-2454
SELECT + MIN ( - + ( 59 ) ) * 17 + 66 + - 95 + - 50 * - 2
----
-932

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2456
SELECT 26 AS col2, - 55 * CAST( NULL AS SIGNED ) AS col2
----
26
NULL

skipif mysql # not compatible
query II rowsort label-2456
SELECT 26 AS col2, - 55 * CAST ( NULL AS INTEGER ) AS col2
----
26
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2457
SELECT 61 col1, + 84 DIV 36 col1
----
61
2

skipif mysql # not compatible
query II rowsort label-2457
SELECT 61 col1, + 84 / 36 col1
----
61
2

query I rowsort
SELECT - 69 * 89
----
-6141

onlyif mysql # aggregate syntax: 
query II rowsort label-2459
SELECT ALL 25, MAX( + 91 ) AS col0
----
25
91

skipif mysql # not compatible
query II rowsort label-2459
SELECT ALL 25, MAX ( + 91 ) AS col0
----
25
91

query I rowsort
SELECT - 87 - + 26 AS col0
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2461
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0, + SUM( DISTINCT 22 ) + + 75 * - + ( CAST( 4 AS SIGNED ) ) + + 29 * 69 DIV - 10 col0
----
NULL
-478

skipif mysql # not compatible
query II rowsort label-2461
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0, + SUM ( DISTINCT 22 ) + + 75 * - + ( CAST ( 4 AS INTEGER ) ) + + 29 * 69 / - 10 col0
----
NULL
-478

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT ALL + COALESCE ( + - MIN( DISTINCT 58 ), 37 ) * - ( + + 65 ) * + + COUNT( * ) AS col2
----
3770

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL + COALESCE ( + - MIN ( DISTINCT 58 ), 37 ) * - ( + + 65 ) * + + COUNT ( * ) AS col2
----
3770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2463
SELECT - CASE + 62 WHEN - CAST( 39 AS SIGNED ) + + 10 THEN + - 56 END - + + COUNT( * ) * + 78 AS col1, COUNT( * ) DIV - 42 + - MAX( ALL + - 90 )
----
NULL
90

skipif mysql # not compatible
query II rowsort label-2463
SELECT - CASE + 62 WHEN - CAST ( 39 AS INTEGER ) + + 10 THEN + - 56 END - + + COUNT ( * ) * + 78 AS col1, COUNT ( * ) / - 42 + - MAX ( ALL + - 90 )
----
NULL
90

query II rowsort
SELECT DISTINCT 83, 51 AS col2
----
83
51

query I rowsort
SELECT - 51 + + 16 + + 74
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-2466
SELECT + ( + + 8 ) * - COUNT( * ), MAX( ALL 79 ) * 40 + - + 98 * 97 AS col2
----
-8
-6346

skipif mysql # not compatible
query II rowsort label-2466
SELECT + ( + + 8 ) * - COUNT ( * ), MAX ( ALL 79 ) * 40 + - + 98 * 97 AS col2
----
-8
-6346

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2467
SELECT - 56 DIV 22 + - 22 AS col2, + ( - SUM( DISTINCT + 15 ) )
----
-24
-15

skipif mysql # not compatible
query II rowsort label-2467
SELECT - 56 / 22 + - 22 AS col2, + ( - SUM ( DISTINCT + 15 ) )
----
-24
-15

query II rowsort
SELECT 36, + NULLIF ( - 22, - 32 ) col1
----
36
-22

query II rowsort
SELECT + 44 col1, 87 AS col0
----
44
87

query I rowsort
SELECT 53 + + 7
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2471
SELECT 48 DIV + - 38 - 76 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-2471
SELECT 48 / + - 38 - 76 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2472
SELECT 79 col2, COUNT( * )
----
79
1

skipif mysql # not compatible
query II rowsort label-2472
SELECT 79 col2, COUNT ( * )
----
79
1

query I rowsort
SELECT ALL 73 * + + 62 AS col2
----
4526

query I rowsort
SELECT + + CASE 39 WHEN - + 71 THEN NULL WHEN - 42 THEN NULL ELSE - 63 END col2
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2475
SELECT - CAST( NULL AS DECIMAL ) AS col1, 60 AS col1
----
NULL
60

skipif mysql # not compatible
query II rowsort label-2475
SELECT - CAST ( NULL AS REAL ) AS col1, 60 AS col1
----
NULL
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT - COUNT( * ) / 17 * 91 + + - 38 * + - 81 * CASE - - COUNT( * ) WHEN + 30 THEN + 30 + + - COUNT( - 63 ) WHEN - SUM( DISTINCT - - 7 ) * + + NULLIF ( + MAX( ALL + 87 ), + 19 ) * + - 80 * - 62 + - - 27 THEN + + 67 * - + COALESCE ( + 19, - 13 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2476
SELECT - COUNT ( * ) / 17 * 91 + + - 38 * + - 81 * CASE - - COUNT ( * ) WHEN + 30 THEN + 30 + + - COUNT ( - 63 ) WHEN - SUM ( DISTINCT - - 7 ) * + + NULLIF ( + MAX ( ALL + 87 ), + 19 ) * + - 80 * - 62 + - - 27 THEN + + 67 * - + COALESCE ( + 19, - 13 ) END col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2478
SELECT + COALESCE ( 81, - + 26 * - 52 * - 28 + SUM( - + 96 ) * + 76 ) * - 87 - 46 + - 88 + CAST( NULL AS SIGNED ) - - - 91 * + - ( - CAST( - - 51 AS SIGNED ) ) * + 2 + + 65 * 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT + COALESCE ( 81, - + 26 * - 52 * - 28 + SUM ( - + 96 ) * + 76 ) * - 87 - 46 + - 88 + CAST ( NULL AS INTEGER ) - - - 91 * + - ( - CAST ( - - 51 AS INTEGER ) ) * + 2 + + 65 * 55 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2479
SELECT 54 * - 50 * - 18 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT 54 * - 50 * - 18 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2480
SELECT DISTINCT + COALESCE ( + - 40, - COUNT( * ) + - - 29 ) DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT + COALESCE ( + - 40, - COUNT ( * ) + - - 29 ) / 90
----
0

query I rowsort
SELECT ALL + 30 - - 14 AS col2
----
44

query I rowsort
SELECT - 74 * 50 AS col0
----
-3700

query I rowsort
SELECT ALL + - 75 - - + 34 * + + 75 + 81 * 31 - - - 64 AS col1
----
4922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2484
SELECT - CASE - 17 WHEN + 80 THEN NULL WHEN + MAX( DISTINCT + 87 ) / 30 * 63 + + 74 + 99 + 33 * + 3 * - + 23 - - 70 * COALESCE ( - - 95, + - 84, + COUNT( ALL 15 ) - - 28 + - 29 + MIN( DISTINCT - 59 ) / - + 23 / + + 34 * + + 25 / - COUNT( * ) ) * + - 42 * - CAST( - MIN( + 61 ) AS SIGNED ) THEN NULL ELSE + 6 END * + 52 - + + COUNT( * ) AS col0
----
-313

skipif mysql # not compatible
query I rowsort label-2484
SELECT - CASE - 17 WHEN + 80 THEN NULL WHEN + MAX ( DISTINCT + 87 ) / 30 * 63 + + 74 + 99 + 33 * + 3 * - + 23 - - 70 * COALESCE ( - - 95, + - 84, + COUNT ( ALL 15 ) - - 28 + - 29 + MIN ( DISTINCT - 59 ) / - + 23 / + + 34 * + + 25 / - COUNT ( * ) ) * + - 42 * - CAST ( - MIN ( + 61 ) AS INTEGER ) THEN NULL ELSE + 6 END * + 52 - + + COUNT ( * ) AS col0
----
-313

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

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT - + COUNT ( ALL - 48 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2486
SELECT DISTINCT + COUNT( * ) - 42 + 76 AS col2, - 37 * - MAX( ALL - ( - 42 ) )
----
35
1554

skipif mysql # not compatible
query II rowsort label-2486
SELECT DISTINCT + COUNT ( * ) - 42 + 76 AS col2, - 37 * - MAX ( ALL - ( - 42 ) )
----
35
1554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2487
SELECT DISTINCT + - 0 * - 67 + - ( - 46 ) + 3 * + + 30 + 21 - + NULLIF ( - CAST( NULL AS SIGNED ), 50 ) * COALESCE ( - 53, - - CASE + AVG ( 39 ) WHEN 62 THEN + CAST( - COUNT( + 75 ) AS SIGNED ) + - COUNT( * ) - 8 - - + COUNT( * ) WHEN + - 67 THEN + 77 * - ( - COUNT( * ) ) + - 85 + + 54 + - 76 * - - 93 * + 65 * - ( 62 ) * + - 67 * - 95 + AVG ( DISTINCT + 52 ) * + 54 + + ( - ( COALESCE ( MAX( DISTINCT - ( - ( + ( 30 ) ) ) ), 33 ) ) ) * 80 + ( + 8 ) WHEN - 99 THEN + 36 * 60 ELSE NULL END * 9 + CAST( + 61 AS DECIMAL ) * CASE - 22 WHEN - 44 THEN NULL WHEN + 48 THEN + 16 END, + 27 + COUNT( * ) ) * NULLIF ( 82, + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT + - 0 * - 67 + - ( - 46 ) + 3 * + + 30 + 21 - + NULLIF ( - CAST ( NULL AS INTEGER ), 50 ) * COALESCE ( - 53, - - CASE + AVG ( 39 ) WHEN 62 THEN + CAST ( - COUNT ( + 75 ) AS INTEGER ) + - COUNT ( * ) - 8 - - + COUNT ( * ) WHEN + - 67 THEN + 77 * - ( - COUNT ( * ) ) + - 85 + + 54 + - 76 * - - 93 * + 65 * - ( 62 ) * + - 67 * - 95 + AVG ( DISTINCT + 52 ) * + 54 + + ( - ( COALESCE ( MAX ( DISTINCT - ( - ( + ( 30 ) ) ) ), 33 ) ) ) * 80 + ( + 8 ) WHEN - 99 THEN + 36 * 60 ELSE NULL END * 9 + CAST ( + 61 AS REAL ) * CASE - 22 WHEN - 44 THEN NULL WHEN + 48 THEN + 16 END, + 27 + COUNT ( * ) ) * NULLIF ( 82, + 99 )
----
NULL

query I rowsort
SELECT 58 * - 61 * + ( 82 ) AS col1
----
-290116

onlyif mysql # DIV for integer division: 
query II rowsort label-2489
SELECT ALL - 61 DIV - 61 AS col0, 98 AS col0
----
1
98

skipif mysql # not compatible
query II rowsort label-2489
SELECT ALL - 61 / - 61 AS col0, 98 AS col0
----
1
98

query I rowsort
SELECT 57 - 3 AS col1
----
54

query I rowsort
SELECT 64 + - + 34 AS col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2492
SELECT ALL + COALESCE ( COUNT( * ), + ( 5 ) ) + 39 AS col2, COUNT( * ) AS col1
----
40
1

skipif mysql # not compatible
query II rowsort label-2492
SELECT ALL + COALESCE ( COUNT ( * ), + ( 5 ) ) + 39 AS col2, COUNT ( * ) AS col1
----
40
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2493
SELECT ALL - 62 DIV 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL - 62 / 74 AS col1
----
0

query I rowsort
SELECT 44 * + 12 * + + 58 AS col0
----
30624

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

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT - 44 * + COUNT ( + 76 ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2496
SELECT 63 DIV + 63 col0
----
1

skipif mysql # not compatible
query I rowsort label-2496
SELECT 63 / + 63 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT 98 + - 90 * + NULLIF ( COUNT( + - 24 ), + ( - 35 ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2497
SELECT 98 + - 90 * + NULLIF ( COUNT ( + - 24 ), + ( - 35 ) ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL - COUNT( * ) + + - COALESCE ( + + 92, - + 57, - + 2 * + 74 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - COUNT ( * ) + + - COALESCE ( + + 92, - + 57, - + 2 * + 74 ) AS col0
----
-93

query I rowsort
SELECT DISTINCT + 97 + + - 19
----
78

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

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

query I rowsort
SELECT + 69 * 6
----
414

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

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL - + COUNT ( * ) + - 47 AS col0
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2503
SELECT ( + CASE - 22 WHEN 33 THEN + 84 WHEN - - ( 86 ) * + CAST( NULL AS DECIMAL ) THEN + 38 WHEN + AVG ( DISTINCT + - 48 ) + + 9 + + 84 / 14 THEN NULL END ) - + + 86 * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT ( + CASE - 22 WHEN 33 THEN + 84 WHEN - - ( 86 ) * + CAST ( NULL AS REAL ) THEN + 38 WHEN + AVG ( DISTINCT + - 48 ) + + 9 + + 84 / 14 THEN NULL END ) - + + 86 * 90
----
NULL

query I rowsort
SELECT + 22 - 41 AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2505
SELECT ALL - CASE - 66 WHEN - 10 + 42 * + - CAST( - + 98 AS SIGNED ) * - 16 + 54 + 57 * 95 + - ( - - 44 ) + + 29 THEN NULL WHEN + + 81 THEN - 95 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL - CASE - 66 WHEN - 10 + 42 * + - CAST ( - + 98 AS INTEGER ) * - 16 + 54 + 57 * 95 + - ( - - 44 ) + + 29 THEN NULL WHEN + + 81 THEN - 95 ELSE NULL END
----
NULL

query I rowsort
SELECT + 35 * + 44
----
1540

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL MIN( 60 ) - - 87 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL MIN ( 60 ) - - 87 AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT - 72 - + + MAX( ALL - - 66 ) AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-2509
SELECT - 72 - + + MAX ( ALL - - 66 ) AS col0
----
-138

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT CASE COUNT( * ) WHEN - - 49 THEN + 98 * + + 88 + + 29 + - + 86 ELSE + NULLIF ( + 58, - - 5 / - + 2 / 2 * - 89 + - + 37 + - - 5 + - + 91 / - - 71 ) * - 78 END
----
-4524

skipif mysql # not compatible
query I rowsort label-2511
SELECT CASE COUNT ( * ) WHEN - - 49 THEN + 98 * + + 88 + + 29 + - + 86 ELSE + NULLIF ( + 58, - - 5 / - + 2 / 2 * - 89 + - + 37 + - - 5 + - + 91 / - - 71 ) * - 78 END
----
-4524

onlyif mysql # DIV for integer division: 
query I rowsort label-2512
SELECT + 38 DIV 89 * + 54
----
0

skipif mysql # not compatible
query I rowsort label-2512
SELECT + 38 / 89 * + 54
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2513
SELECT CASE + - CAST( NULL AS DECIMAL ) WHEN + NULLIF ( - + ( + - 32 ), - + 28 ) THEN + + SUM( + 95 ) * + 17 WHEN - 23 THEN + COUNT( * ) ELSE NULL END * + CASE - + COUNT( * ) WHEN COUNT( * ) - 34 * + 54 * + 91 * 99 THEN - 36 ELSE + 82 * CAST( + ( - 13 ) AS SIGNED ) - 44 END AS col2, - COUNT( * ) DIV 13 + - 24 AS col0
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-2513
SELECT CASE + - CAST ( NULL AS REAL ) WHEN + NULLIF ( - + ( + - 32 ), - + 28 ) THEN + + SUM ( + 95 ) * + 17 WHEN - 23 THEN + COUNT ( * ) ELSE NULL END * + CASE - + COUNT ( * ) WHEN COUNT ( * ) - 34 * + 54 * + 91 * 99 THEN - 36 ELSE + 82 * CAST ( + ( - 13 ) AS INTEGER ) - 44 END AS col2, - COUNT ( * ) / 13 + - 24 AS col0
----
NULL
-24

query II rowsort
SELECT ( - - 4 ) col2, - 67 AS col2
----
4
-67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT COUNT( * ) * - 11 * - - 29 AS col2
----
-319

skipif mysql # not compatible
query I rowsort label-2516
SELECT COUNT ( * ) * - 11 * - - 29 AS col2
----
-319

onlyif mysql # DIV for integer division: 
query I rowsort label-2517
SELECT DISTINCT 5 DIV 12
----
0

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT 5 / 12
----
0

query II rowsort
SELECT ALL 10, 54 * + + 96 AS col0
----
10
5184

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT ALL + 20 * + COUNT( * ) * + 69
----
1380

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL + 20 * + COUNT ( * ) * + 69
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT 57 + - MAX( ALL + + 33 )
----
24

skipif mysql # not compatible
query I rowsort label-2521
SELECT 57 + - MAX ( ALL + + 33 )
----
24

query I rowsort
SELECT ALL - 57 * - 27
----
1539

query I rowsort
SELECT 64 * 43
----
2752

query II rowsort
SELECT 67 AS col2, 61
----
67
61

query I rowsort
SELECT ALL 98 + + + 57
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2526
SELECT - COALESCE ( SUM( ALL + ( + + CAST( NULL AS SIGNED ) ) ), + 10 + - 47 + 63 + - - ( + 6 ) ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-2526
SELECT - COALESCE ( SUM ( ALL + ( + + CAST ( NULL AS INTEGER ) ) ), + 10 + - 47 + 63 + - - ( + 6 ) ) AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2527
SELECT DISTINCT - COALESCE ( + COUNT( * ), + MIN( DISTINCT - ( - - 64 ) ) * + COUNT( * ) + + 98 + + 95 + + 19 - - - 3 * + - MIN( - + 30 ), 51 ) DIV + 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + MIN ( DISTINCT - ( - - 64 ) ) * + COUNT ( * ) + + 98 + + 95 + + 19 - - - 3 * + - MIN ( - + 30 ), 51 ) / + 62 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL MIN( 79 ) col0
----
79

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL MIN ( 79 ) col0
----
79

query I rowsort
SELECT - 50 - + - 24
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL + 98 + - COUNT( * ) * + + MAX( DISTINCT - 0 )
----
98

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL + 98 + - COUNT ( * ) * + + MAX ( DISTINCT - 0 )
----
98

query I rowsort
SELECT ALL + ( + - 13 ) * + - 78 AS col2
----
1014

onlyif mysql # aggregate syntax: 
query II rowsort label-2532
SELECT + 55, 41 + NULLIF ( + MIN( DISTINCT + + 80 ), 48 ) * + 33 + + 7 AS col1
----
55
2688

skipif mysql # not compatible
query II rowsort label-2532
SELECT + 55, 41 + NULLIF ( + MIN ( DISTINCT + + 80 ), 48 ) * + 33 + + 7 AS col1
----
55
2688

query I rowsort
SELECT - - 79 * - 5 + 82 AS col1
----
-313

query I rowsort
SELECT ALL + 74 * - 84 AS col1
----
-6216

query I rowsort
SELECT - CASE - + 78 WHEN + 56 THEN - - ( + - 63 ) / - 69 + + 47 END / - + 34 - - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL + + NULLIF ( - 50, 50 + - SUM( DISTINCT + + 85 ) ) * - - CASE ( + COUNT( * ) ) WHEN 84 * - - 5 THEN + - 23 ELSE NULL END / COUNT( * ) + - MAX( DISTINCT + 93 ) - - + 24 * 11 - - 76 - + 72 * + 32 - + - ( + 86 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + + NULLIF ( - 50, 50 + - SUM ( DISTINCT + + 85 ) ) * - - CASE ( + COUNT ( * ) ) WHEN 84 * - - 5 THEN + - 23 ELSE NULL END / COUNT ( * ) + - MAX ( DISTINCT + 93 ) - - + 24 * 11 - - 76 - + 72 * + 32 - + - ( + 86 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2537
SELECT CAST( 81 AS SIGNED ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2537
SELECT CAST ( 81 AS INTEGER ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT - COUNT( * ) * 74 * - 60 * 49
----
217560

skipif mysql # not compatible
query I rowsort label-2538
SELECT - COUNT ( * ) * 74 * - 60 * 49
----
217560

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL - 33 * + + COUNT( * ) - + 55 + 70 / + - CASE - MIN( + - 74 ) WHEN + 72 * + 50 THEN + 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL - 33 * + + COUNT ( * ) - + 55 + 70 / + - CASE - MIN ( + - 74 ) WHEN + 72 * + 50 THEN + 1 END
----
NULL

query I rowsort
SELECT - + 53 + 57
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2543
SELECT + 95 AS col2, 52 + - MIN( DISTINCT 12 )
----
95
40

skipif mysql # not compatible
query II rowsort label-2543
SELECT + 95 AS col2, 52 + - MIN ( DISTINCT 12 )
----
95
40

query I rowsort
SELECT NULLIF ( - 4, 22 )
----
-4

query II rowsort
SELECT ALL + 64, 81 AS col1
----
64
81

query II rowsort
SELECT ALL 64 * - 85 AS col0, 23 AS col0
----
-5440
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT + 64 + - MAX( ALL - 96 ) AS col1
----
160

skipif mysql # not compatible
query I rowsort label-2547
SELECT + 64 + - MAX ( ALL - 96 ) AS col1
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT DISTINCT + 75 * + CAST( - 23 AS SIGNED ) + - 88 - - 49 col0
----
-1764

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT + 75 * + CAST ( - 23 AS INTEGER ) + - 88 - - 49 col0
----
-1764

onlyif mysql # aggregate syntax: 
query II rowsort label-2549
SELECT ALL + 61 * + 87, 60 - + 15 + NULLIF ( COUNT( * ), 17 ) * + ( 21 ) AS col1
----
5307
66

skipif mysql # not compatible
query II rowsort label-2549
SELECT ALL + 61 * + 87, 60 - + 15 + NULLIF ( COUNT ( * ), 17 ) * + ( 21 ) AS col1
----
5307
66

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2551
SELECT ALL 22 + + + 19 + - 68 + NULLIF ( 87, - NULLIF ( - CAST( NULL AS SIGNED ), 35 * - + ( COUNT( * ) ) * + ( 70 ) + - 38 ) / - 44 * + 92 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL 22 + + + 19 + - 68 + NULLIF ( 87, - NULLIF ( - CAST ( NULL AS INTEGER ), 35 * - + ( COUNT ( * ) ) * + ( 70 ) + - 38 ) / - 44 * + 92 ) AS col1
----
60

query I rowsort
SELECT - 28 + - 94
----
-122

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

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

query I rowsort
SELECT + ( - 33 ) + + + 61
----
28

query I rowsort
SELECT DISTINCT 16 + + - 4 AS col1
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-2556
SELECT 57, 99 DIV + 92 AS col2
----
57
1

skipif mysql # not compatible
query II rowsort label-2556
SELECT 57, 99 / + 92 AS col2
----
57
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT ALL - CAST( - 86 AS SIGNED ) + - 56 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL - CAST ( - 86 AS INTEGER ) + - 56 AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2558
SELECT ALL 62 DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL 62 / 99 AS col2
----
0

query I rowsort
SELECT ALL 56 - + 86 - + + 73 AS col2
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-2560
SELECT ALL 21 * - 38 + 15 DIV - 73
----
-798

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL 21 * - 38 + 15 / - 73
----
-798

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2561
SELECT - COUNT( * ), 47 + 47 DIV + 59 + + + COUNT( * ) - + + 89 AS col1
----
-1
-41

skipif mysql # not compatible
query II rowsort label-2561
SELECT - COUNT ( * ), 47 + 47 / + 59 + + + COUNT ( * ) - + + 89 AS col1
----
-1
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-2562
SELECT 18 AS col0, 77 + MIN( ALL + + 18 )
----
18
95

skipif mysql # not compatible
query II rowsort label-2562
SELECT 18 AS col0, 77 + MIN ( ALL + + 18 )
----
18
95

query I rowsort
SELECT - - 92 + 91
----
183

query I rowsort
SELECT ALL - 86 - 76 AS col2
----
-162

query I rowsort
SELECT ALL + COALESCE ( + - 19, 92 + - 49, ( + - 31 ) * - 27 ) * - 44 + + - ( 68 ) AS col0
----
768

query I rowsort
SELECT + + 6 * 44 AS col2
----
264

query II rowsort
SELECT ALL + + 1, + 64 AS col1
----
1
64

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2569
SELECT ALL + 88, - 8 / + ( - - CAST( NULL AS DECIMAL ) ) AS col2
----
88
NULL

skipif mysql # not compatible
query II rowsort label-2569
SELECT ALL + 88, - 8 / + ( - - CAST ( NULL AS REAL ) ) AS col2
----
88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT - 68 * 52 - - - 19 - COUNT( * ) * ( + + COUNT( * ) ) + 0 + - 60 col2
----
-3616

skipif mysql # not compatible
query I rowsort label-2570
SELECT - 68 * 52 - - - 19 - COUNT ( * ) * ( + + COUNT ( * ) ) + 0 + - 60 col2
----
-3616

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT + 80 * + COUNT( * ) - + + 97 * + 31 + 50
----
-2877

skipif mysql # not compatible
query I rowsort label-2571
SELECT + 80 * + COUNT ( * ) - + + 97 * + 31 + 50
----
-2877

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT - + COUNT( * ) * - 47 DIV + 14
----
3

skipif mysql # not compatible
query I rowsort label-2572
SELECT - + COUNT ( * ) * - 47 / + 14
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2573
SELECT ALL + COUNT( * ) DIV + COUNT( * ) + + 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL + COUNT ( * ) / + COUNT ( * ) + + 37 AS col1
----
38

onlyif mysql # aggregate syntax: 
query III rowsort label-2574
SELECT + + COUNT( * ) AS col0, + 45 AS col0, 39
----
1
45
39

skipif mysql # not compatible
query III rowsort label-2574
SELECT + + COUNT ( * ) AS col0, + 45 AS col0, 39
----
1
45
39

onlyif mysql # DIV for integer division: 
query II rowsort label-2575
SELECT DISTINCT + 80 DIV 38 + 81 AS col2, + 35 AS col1
----
83
35

skipif mysql # not compatible
query II rowsort label-2575
SELECT DISTINCT + 80 / 38 + 81 AS col2, + 35 AS col1
----
83
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2576
SELECT 66 * - 92 DIV COUNT( * ) - - - 81
----
-6153

skipif mysql # not compatible
query I rowsort label-2576
SELECT 66 * - 92 / COUNT ( * ) - - - 81
----
-6153

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL - NULLIF ( + - MIN( 26 ), + SUM( ALL + 70 ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL - NULLIF ( + - MIN ( 26 ), + SUM ( ALL + 70 ) ) AS col2
----
26

query I rowsort
SELECT ALL - 3 + + 2 AS col2
----
-1

query I rowsort
SELECT + 40 * + NULLIF ( 59, - + 94 ) + - 57 AS col1
----
2303

query I rowsort
SELECT ALL + 30 * - - 1 AS col0
----
30

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2583
SELECT DISTINCT + 40 + + + 97 col2, CAST( + COUNT( * ) AS SIGNED )
----
137
1

skipif mysql # not compatible
query II rowsort label-2583
SELECT DISTINCT + 40 + + + 97 col2, CAST ( + COUNT ( * ) AS INTEGER )
----
137
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT DISTINCT - 85 - + COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT - 85 - + COUNT ( * ) AS col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-2585
SELECT DISTINCT 3 - CASE WHEN NOT ( NOT NULL <= 20 ) THEN 87 DIV 92 - - + 6 ELSE 72 + - 10 END * + - NULLIF ( - 0, 88 )
----
3

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT 3 - CASE WHEN NOT ( NOT NULL <= 20 ) THEN 87 / 92 - - + 6 ELSE 72 + - 10 END * + - NULLIF ( - 0, 88 )
----
3

query I rowsort
SELECT 92 + + - 59
----
33

query II rowsort
SELECT DISTINCT + 13 * - + 10 AS col0, 16 * 66
----
-130
1056

query I rowsort
SELECT 72 * + - 13 * COALESCE ( + + 8, - - 80 )
----
-7488

query I rowsort
SELECT ( - 1 ) * - 60 * 13
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT + 88 + + COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2590
SELECT + 88 + + COUNT ( * ) AS col1
----
89

query II rowsort
SELECT DISTINCT + 16 - + 81 * - + 53 col0, + 47
----
4309
47

query I rowsort
SELECT 75 * 19 * - 21 * + 3
----
-89775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2593
SELECT 5 - + + CASE + + COUNT( * ) WHEN - 9 + 81 THEN + 90 + - 80 + 55 WHEN - + COUNT( * ) + - 75 THEN 98 + + CAST( NULL AS SIGNED ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT 5 - + + CASE + + COUNT ( * ) WHEN - 9 + 81 THEN + 90 + - 80 + 55 WHEN - + COUNT ( * ) + - 75 THEN 98 + + CAST ( NULL AS INTEGER ) ELSE NULL END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT DISTINCT - + 62 DIV - - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT - + 62 / - - 93 AS col1
----
0

query I rowsort
SELECT - 82 * 76 * ( + - 59 ) AS col0
----
367688

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2597
SELECT + 28 DIV - - COUNT( * ) + - 43 * 29
----
-1219

skipif mysql # not compatible
query I rowsort label-2597
SELECT + 28 / - - COUNT ( * ) + - 43 * 29
----
-1219

query I rowsort
SELECT 23 + - 24 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2599
SELECT + + 89 DIV - 68 - + 92
----
-93

skipif mysql # not compatible
query I rowsort label-2599
SELECT + + 89 / - 68 - + 92
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2600
SELECT 15 * CASE - COUNT( * ) WHEN 23 + + 76 - - + 97 + + 76 * ( - 80 ) * CAST( NULL AS SIGNED ) + - 98 - + COUNT( * ) THEN + COALESCE ( 21, - 86 + 75 * + COUNT( * ) * + MAX( ALL + 96 ) + + 28 ) WHEN - 91 + 81 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT 15 * CASE - COUNT ( * ) WHEN 23 + + 76 - - + 97 + + 76 * ( - 80 ) * CAST ( NULL AS INTEGER ) + - 98 - + COUNT ( * ) THEN + COALESCE ( 21, - 86 + 75 * + COUNT ( * ) * + MAX ( ALL + 96 ) + + 28 ) WHEN - 91 + 81 THEN NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL + 90 + - COUNT ( * ) AS col2
----
89

query I rowsort
SELECT ALL - - COALESCE ( - + 37, 77, 23 )
----
-37

query I rowsort
SELECT 38 * 31 AS col2
----
1178

query I rowsort
SELECT + 37 * + 49 + - + 36
----
1777

query I rowsort
SELECT DISTINCT - 16 + 13 - + 78 AS col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2606
SELECT 57 DIV + + 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2606
SELECT 57 / + + 63 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2607
SELECT ( + 28 ) * + + ( COUNT( * ) ) + - CASE - 88 WHEN + ( CAST( + 0 AS SIGNED ) ) * - ( 64 ) THEN 0 END + ( + 86 ) AS col0, 28 * 59 AS col0
----
NULL
1652

skipif mysql # not compatible
query II rowsort label-2607
SELECT ( + 28 ) * + + ( COUNT ( * ) ) + - CASE - 88 WHEN + ( CAST ( + 0 AS INTEGER ) ) * - ( 64 ) THEN 0 END + ( + 86 ) AS col0, 28 * 59 AS col0
----
NULL
1652

query I rowsort
SELECT ALL - 98 * + - 60 * + COALESCE ( - - 81, + 82 + - - NULLIF ( - - 77, 72 + + 74 + - 30 * ( 95 ) ) ) AS col0
----
476280

query II rowsort
SELECT 96, + 84 + + 3 * + 59 * - 68 + + CASE + + 32 WHEN 63 THEN - 79 * - 62 + 40 + - 81 ELSE 36 END AS col0
----
96
-11916

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

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

query I rowsort
SELECT DISTINCT 4 * 11
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2612
SELECT ALL - COALESCE ( - + CAST( 56 AS SIGNED ), - + COALESCE ( - + ( - - 39 ), - + 28 ) )
----
56

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL - COALESCE ( - + CAST ( 56 AS INTEGER ), - + COALESCE ( - + ( - - 39 ), - + 28 ) )
----
56

query I rowsort
SELECT ALL - 72 - - 72 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2614
SELECT 82 DIV - 56 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2614
SELECT 82 / - 56 AS col0
----
-1

query I rowsort
SELECT ALL 39 * - + 45
----
-1755

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT + 60 * - CAST( - - 78 AS SIGNED ) + - 7
----
-4687

skipif mysql # not compatible
query I rowsort label-2617
SELECT + 60 * - CAST ( - - 78 AS INTEGER ) + - 7
----
-4687

query I rowsort
SELECT 79 + + 36
----
115

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT COALESCE ( + - 16, MIN( ALL - 63 ) * COUNT( * ) ) + - 94
----
-110

skipif mysql # not compatible
query I rowsort label-2620
SELECT COALESCE ( + - 16, MIN ( ALL - 63 ) * COUNT ( * ) ) + - 94
----
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-2621
SELECT ALL - COUNT( * ), NULLIF ( + 29, - + ( + 14 ) ) + + - 25 AS col2
----
-1
4

skipif mysql # not compatible
query II rowsort label-2621
SELECT ALL - COUNT ( * ), NULLIF ( + 29, - + ( + 14 ) ) + + - 25 AS col2
----
-1
4

query II rowsort
SELECT ALL + 87 col1, - 20 * + 84 * + 13 - - 47 + 10 col1
----
87
-21783

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT ALL - SUM( DISTINCT - + 93 ) * - COUNT( DISTINCT - 37 ) + - 47 * + 72 / - - CASE - 72 WHEN - 9 THEN NULL WHEN + ( + + COUNT( * ) ) THEN + + 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL - SUM ( DISTINCT - + 93 ) * - COUNT ( DISTINCT - 37 ) + - 47 * + 72 / - - CASE - 72 WHEN - 9 THEN NULL WHEN + ( + + COUNT ( * ) ) THEN + + 4 END
----
NULL

query I rowsort
SELECT DISTINCT - + ( + - 56 ) * - 17 * + + 67 AS col1
----
-63784

query II rowsort
SELECT ALL 68 AS col2, - 16
----
68
-16

query I rowsort
SELECT + ( - 20 ) + 13
----
-7

query I rowsort
SELECT 69 * - + 77 * + 2
----
-10626

query I rowsort
SELECT 12 * - 96 + 35 + + 48 * 9 * - 77
----
-34381

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT - + COALESCE ( MAX( + - 48 ), + + 69 * + 67 * + 49 + + COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-2629
SELECT - + COALESCE ( MAX ( + - 48 ), + + 69 * + 67 * + 49 + + COUNT ( * ) )
----
48

query I rowsort
SELECT 89 + - + ( - + 3 ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2631
SELECT - + COUNT( * ) AS col0, + CAST( - 19 AS SIGNED ) + - 92 * - + COUNT( * ) * + ( + 65 ) * + - 40 + + 13
----
-1
-239206

skipif mysql # not compatible
query II rowsort label-2631
SELECT - + COUNT ( * ) AS col0, + CAST ( - 19 AS INTEGER ) + - 92 * - + COUNT ( * ) * + ( + 65 ) * + - 40 + + 13
----
-1
-239206

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT - 72 + - 35 + + 55 + + + 14 DIV - 52
----
-52

skipif mysql # not compatible
query I rowsort label-2632
SELECT - 72 + - 35 + + 55 + + + 14 / - 52
----
-52

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

query I rowsort
SELECT DISTINCT - 52 + 22
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2635
SELECT ALL - 8 DIV - + 4 DIV + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL - 8 / - + 4 / + + COUNT ( * )
----
2

query I rowsort
SELECT 61 * - 40 AS col1
----
-2440

query I rowsort
SELECT ( - 96 ) col0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2638
SELECT ALL 70 * 44 + + CAST( + 39 AS SIGNED ) AS col0
----
3119

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL 70 * 44 + + CAST ( + 39 AS INTEGER ) AS col0
----
3119

query I rowsort
SELECT - 11 - 16 * - 64 / - 42 + - 66 * - CASE - ( - 38 ) WHEN 79 THEN - 1 WHEN 45 * 93 + + 41 + + - 88 + - 86 THEN + - 60 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2640
SELECT + SUM( 73 ) AS col0, + COALESCE ( + + 18, - + NULLIF ( COUNT( * ), 84 ) ) AS col1
----
73
18

skipif mysql # not compatible
query II rowsort label-2640
SELECT + SUM ( 73 ) AS col0, + COALESCE ( + + 18, - + NULLIF ( COUNT ( * ), 84 ) ) AS col1
----
73
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT CASE + + COUNT( * ) WHEN - 81 * + 24 / 26 + - 2 * - MIN( DISTINCT - + 38 ) THEN + 4 WHEN 74 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT CASE + + COUNT ( * ) WHEN - 81 * + 24 / 26 + - 2 * - MIN ( DISTINCT - + 38 ) THEN + 4 WHEN 74 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT COUNT( * ) * + - 53 - + - 47 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-2642
SELECT COUNT ( * ) * + - 53 - + - 47 AS col1
----
-6

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

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

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

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

query I rowsort
SELECT DISTINCT 82 * 91 * 99 - + - 11
----
738749

query I rowsort
SELECT ALL 63 * 67
----
4221

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT SUM( DISTINCT - 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2647
SELECT SUM ( DISTINCT - 15 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT + 21 * + MIN( DISTINCT + ( + - 7 ) )
----
-147

skipif mysql # not compatible
query I rowsort label-2648
SELECT + 21 * + MIN ( DISTINCT + ( + - 7 ) )
----
-147

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2649
SELECT COUNT( DISTINCT - 61 ), - 63 DIV 42 * - - 11 AS col1
----
1
-11

skipif mysql # not compatible
query II rowsort label-2649
SELECT COUNT ( DISTINCT - 61 ), - 63 / 42 * - - 11 AS col1
----
1
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT COUNT( ALL - 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2650
SELECT COUNT ( ALL - 16 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2651
SELECT - 79 DIV - MIN( ALL + 41 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2651
SELECT - 79 / - MIN ( ALL + 41 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT + MAX( - + 56 ) * + - 89
----
4984

skipif mysql # not compatible
query I rowsort label-2652
SELECT + MAX ( - + 56 ) * + - 89
----
4984

onlyif mysql # aggregate syntax: 
query II rowsort label-2653
SELECT ALL SUM( DISTINCT 18 ), COUNT( * ) * + 61 * - + 79 AS col0
----
18
-4819

skipif mysql # not compatible
query II rowsort label-2653
SELECT ALL SUM ( DISTINCT 18 ), COUNT ( * ) * + 61 * - + 79 AS col0
----
18
-4819

query I rowsort
SELECT ALL 54 * 69 + - 52
----
3674

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2655
SELECT - + CAST( NULL AS SIGNED ) * - 72 + - 97 * + COALESCE ( + + 4, ( - - 84 ) + + + 75 + + + 70, ( - 8 ) * - - 73 + + 60 + - 43 + - - 26 * + + 19 + + - 86 * - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT - + CAST ( NULL AS INTEGER ) * - 72 + - 97 * + COALESCE ( + + 4, ( - - 84 ) + + + 75 + + + 70, ( - 8 ) * - - 73 + + 60 + - 43 + - - 26 * + + 19 + + - 86 * - 54 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2656
SELECT ALL - MIN( ALL - + 97 ) * COUNT( * ) - - 55 + CASE - 63 WHEN - - 88 + - - COUNT( * ) * + - 82 / + 88 + + ( 39 ) THEN NULL WHEN - 1 * CAST( - 31 AS SIGNED ) THEN - CAST( NULL AS SIGNED ) * - - 20 ELSE NULL END AS col1, + 91 AS col0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-2656
SELECT ALL - MIN ( ALL - + 97 ) * COUNT ( * ) - - 55 + CASE - 63 WHEN - - 88 + - - COUNT ( * ) * + - 82 / + 88 + + ( 39 ) THEN NULL WHEN - 1 * CAST ( - 31 AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) * - - 20 ELSE NULL END AS col1, + 91 AS col0
----
NULL
91

query I rowsort
SELECT + 59 + + 67 AS col2
----
126

query I rowsort
SELECT - - 94 * + - CASE + 57 WHEN - 18 * 42 + NULLIF ( 3, - 0 * + 29 + 91 ) + 95 - - 85 THEN NULL WHEN - + ( 65 ) THEN NULL ELSE 48 + + - 38 END AS col2
----
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT + 73 + + COUNT( * ) * 82 col1
----
155

skipif mysql # not compatible
query I rowsort label-2659
SELECT + 73 + + COUNT ( * ) * 82 col1
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT - MIN( - 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-2660
SELECT - MIN ( - 39 ) AS col2
----
39

query I rowsort
SELECT - 86 + - 24 + - 28 + + ( - - 69 ) * + 87
----
5865

query I rowsort
SELECT ALL - + 57 + - 27 col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2663
SELECT - + 42 + + + 59 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2663
SELECT - + 42 + + + 59 + + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2664
SELECT - COUNT ( CAST ( 32 AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + + 27 + + COALESCE ( 68, + 41 ) + + 8 * + 38 AS col2
----
399

query I rowsort
SELECT - 75 * + - 93
----
6975

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2667
SELECT - + COUNT( + ( - 50 ) ) + - - 55, 12 DIV 13 * 96 AS col0
----
54
0

skipif mysql # not compatible
query II rowsort label-2667
SELECT - + COUNT ( + ( - 50 ) ) + - - 55, 12 / 13 * 96 AS col0
----
54
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2668
SELECT - + CAST( NULL AS SIGNED ) * - 13 / ( 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2668
SELECT - + CAST ( NULL AS INTEGER ) * - 13 / ( 44 )
----
NULL

query I rowsort
SELECT - 88 + 50 AS col2
----
-38

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

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

query I rowsort
SELECT - 64 + + 8
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2672
SELECT ( - CASE 59 WHEN NULLIF ( - COUNT( * ), ( + - 58 ) ) - - COUNT( * ) THEN NULL WHEN 23 THEN NULL ELSE 14 * 83 * - 3 END ) DIV ( + - CAST( + COUNT( * ) AS SIGNED ) ) + + COALESCE ( + - 74, + NULLIF ( CASE 77 WHEN CAST( + COUNT( * ) AS SIGNED ) + 89 THEN - SUM( DISTINCT - 65 ) WHEN - 49 + + - CASE 4 WHEN - 60 + + COALESCE ( 47, + 93 ) - COUNT( * ) + - CASE 32 WHEN - 3 * 88 + + COUNT( * ) THEN NULL WHEN - 52 THEN NULL WHEN - + 10 THEN NULL ELSE - 45 * - 35 * + 75 END - - 98 * + 28 + - 55 THEN NULL ELSE + 51 * + 99 + 3 END THEN NULL END, 46 ) * - 62 ) * 38 - - COUNT( 44 ) * - 89
----
-6387

skipif mysql # not compatible
query I rowsort label-2672
SELECT ( - CASE 59 WHEN NULLIF ( - COUNT ( * ), ( + - 58 ) ) - - COUNT ( * ) THEN NULL WHEN 23 THEN NULL ELSE 14 * 83 * - 3 END ) / ( + - CAST ( + COUNT ( * ) AS INTEGER ) ) + + COALESCE ( + - 74, + NULLIF ( CASE 77 WHEN CAST ( + COUNT ( * ) AS INTEGER ) + 89 THEN - SUM ( DISTINCT - 65 ) WHEN - 49 + + - CASE 4 WHEN - 60 + + COALESCE ( 47, + 93 ) - COUNT ( * ) + - CASE 32 WHEN - 3 * 88 + + COUNT ( * ) THEN NULL WHEN - 52 THEN NULL WHEN - + 10 THEN NULL ELSE - 45 * - 35 * + 75 END - - 98 * + 28 + - 55 THEN NULL ELSE + 51 * + 99 + 3 END THEN NULL END, 46 ) * - 62 ) * 38 - - COUNT ( 44 ) * - 89
----
-6387

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT DISTINCT + MAX( + 58 ) col0
----
58

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT + MAX ( + 58 ) col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT ALL MIN( DISTINCT + 0 ) / - + 86 + + + 10 * ( 11 ) * + 88 + - CASE + 79 WHEN + ( - AVG ( DISTINCT - + 70 ) ) THEN - ( - + 91 ) * - + 38 END + + - 72 + + ( - COALESCE ( - 15, 74 - + 77 ) ) + ( 77 ) * + ( - 39 ) + 40 * + 4 - + + 23 - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL MIN ( DISTINCT + 0 ) / - + 86 + + + 10 * ( 11 ) * + 88 + - CASE + 79 WHEN + ( - AVG ( DISTINCT - + 70 ) ) THEN - ( - + 91 ) * - + 38 END + + - 72 + + ( - COALESCE ( - 15, 74 - + 77 ) ) + ( 77 ) * + ( - 39 ) + 40 * + 4 - + + 23 - 21
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2675
SELECT ALL + COALESCE ( MAX( - 93 ), + 19, + + COUNT( * ) - + 22 * + + AVG ( ALL - ( - COALESCE ( - ( - 63 ), + 33 ) ) ) DIV + 82 + - + COUNT( * ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL + COALESCE ( MAX ( - 93 ), + 19, + + COUNT ( * ) - + 22 * + + AVG ( ALL - ( - COALESCE ( - ( - 63 ), + 33 ) ) ) / + 82 + - + COUNT ( * ) ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT + ( + + 73 ) + - 48 * - COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-2676
SELECT + ( + + 73 ) + - 48 * - COUNT ( * )
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2677
SELECT ALL 90 * + ( - - CASE + + 83 WHEN - 53 * + COUNT( * ) + + CAST( NULL AS SIGNED ) * + + 25 + + + COUNT( * ) + + ( - 42 ) THEN - - 45 WHEN - 65 + - 7 THEN NULL END ) * - + 66 - - 75, + 30 AS col0
----
NULL
30

skipif mysql # not compatible
query II rowsort label-2677
SELECT ALL 90 * + ( - - CASE + + 83 WHEN - 53 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + + 25 + + + COUNT ( * ) + + ( - 42 ) THEN - - 45 WHEN - 65 + - 7 THEN NULL END ) * - + 66 - - 75, + 30 AS col0
----
NULL
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2678
SELECT + CAST( NULL AS SIGNED ) * + + 28 * - 91 * COUNT( * ) * - 95 * - - 48 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2678
SELECT + CAST ( NULL AS INTEGER ) * + + 28 * - 91 * COUNT ( * ) * - 95 * - - 48 * CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2680
SELECT + ( - - SUM( ALL + 51 ) ) col2, + 87 + + 12 + - 43 * + 27
----
51
-1062

skipif mysql # not compatible
query II rowsort label-2680
SELECT + ( - - SUM ( ALL + 51 ) ) col2, + 87 + + 12 + - 43 * + 27
----
51
-1062

query II rowsort
SELECT ALL + 53 AS col0, - 33 + + + 68
----
53
35

query I rowsort
SELECT ALL - 9 * 48
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT + MAX( DISTINCT + 97 ) * + - 67 * - 96
----
623904

skipif mysql # not compatible
query I rowsort label-2683
SELECT + MAX ( DISTINCT + 97 ) * + - 67 * - 96
----
623904

query II rowsort
SELECT DISTINCT + 69 col2, 49
----
69
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT DISTINCT 45 * MAX( DISTINCT 45 ) + - 90
----
1935

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT 45 * MAX ( DISTINCT 45 ) + - 90
----
1935

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2688
SELECT DISTINCT - + ( + - 79 ) * + 73 + + - COALESCE ( - CAST( + COUNT( * ) AS SIGNED ), 47 * 15 ), 22 AS col1
----
5768
22

skipif mysql # not compatible
query II rowsort label-2688
SELECT DISTINCT - + ( + - 79 ) * + 73 + + - COALESCE ( - CAST ( + COUNT ( * ) AS INTEGER ), 47 * 15 ), 22 AS col1
----
5768
22

query I rowsort
SELECT + 4 + - 32 AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2690
SELECT DISTINCT ( + CAST( - 10 AS SIGNED ) ) AS col1, - 21 AS col2
----
-10
-21

skipif mysql # not compatible
query II rowsort label-2690
SELECT DISTINCT ( + CAST ( - 10 AS INTEGER ) ) AS col1, - 21 AS col2
----
-10
-21

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

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

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

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

query I rowsort
SELECT ALL + 52 + + 34 col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT DISTINCT MIN( + + 62 ) * 42 + + 97
----
2701

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT MIN ( + + 62 ) * 42 + + 97
----
2701

query I rowsort
SELECT DISTINCT 72 + - 45
----
27

query I rowsort
SELECT + - 13 * + + 16
----
-208

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

query I rowsort
SELECT 98 + - 4 - - 38 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT - ( + - 97 ) * SUM( ALL + 13 ) * + ( + - 74 ) AS col1
----
-93314

skipif mysql # not compatible
query I rowsort label-2699
SELECT - ( + - 97 ) * SUM ( ALL + 13 ) * + ( + - 74 ) AS col1
----
-93314

query I rowsort
SELECT 31 * - 65 * 40 * + 56 AS col2
----
-4513600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2701
SELECT 90 * + ( SUM( + 45 ) ) * - 55 * - 82 DIV + COUNT( * )
----
18265500

skipif mysql # not compatible
query I rowsort label-2701
SELECT 90 * + ( SUM ( + 45 ) ) * - 55 * - 82 / + COUNT ( * )
----
18265500

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

skipif mysql # not compatible
query I rowsort label-2702
SELECT - - COUNT ( - 39 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2703
SELECT COALESCE ( + + 52, - 10 ) + - COALESCE ( 1, - - 24 * - 18 ) * + 38 * + COUNT( * ) - + - 9 DIV + COUNT( * ) - 49 col2
----
-26

skipif mysql # not compatible
query I rowsort label-2703
SELECT COALESCE ( + + 52, - 10 ) + - COALESCE ( 1, - - 24 * - 18 ) * + 38 * + COUNT ( * ) - + - 9 / + COUNT ( * ) - 49 col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2704
SELECT DISTINCT 99 AS col0, NULLIF ( + ( - COALESCE ( + COUNT( * ), 21 + + + CAST( NULL AS SIGNED ) ) ), + + 1 ) + - + 71 + + + 50 AS col0
----
99
-22

skipif mysql # not compatible
query II rowsort label-2704
SELECT DISTINCT 99 AS col0, NULLIF ( + ( - COALESCE ( + COUNT ( * ), 21 + + + CAST ( NULL AS INTEGER ) ) ), + + 1 ) + - + 71 + + + 50 AS col0
----
99
-22

query II rowsort
SELECT DISTINCT 51 AS col2, 82 AS col1
----
51
82

query II rowsort
SELECT ALL 5, - 42 + 25 col2
----
5
-17

query II rowsort
SELECT 20 AS col1, 22 + - 37
----
20
-15

query I rowsort
SELECT ALL + 67 * 19 * 71 AS col2
----
90383

query II rowsort
SELECT + 15 AS col0, 86
----
15
86

query I rowsort
SELECT 72 - 24 * - 17 AS col2
----
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2711
SELECT COUNT( * ) DIV - CASE COALESCE ( - CASE - COUNT( DISTINCT + 44 ) WHEN - 69 * CAST( - - 33 AS SIGNED ) THEN + + 95 * - 85 - + CAST( NULL AS SIGNED ) * + 36 * - CASE + MIN( + 74 ) WHEN + COUNT( * ) * - - 91 + - - CAST( - MIN( + 9 ) AS SIGNED ) THEN - + 11 * + - 47 WHEN 28 THEN - 59 + - - AVG ( ALL - 90 ) + + 86 + - COALESCE ( 38, + 85 ) * - - 54 * - 95 DIV - - 37 + COUNT( * ) DIV - 36 ELSE CASE + NULLIF ( + + 46, AVG ( ALL + - 50 ) ) WHEN - COUNT( + - 87 ) THEN NULL WHEN + - 23 THEN NULL WHEN + COALESCE ( + + COUNT( * ), 7 * 55 ) DIV ( COUNT( * ) ) THEN 43 ELSE NULL END - 71 END WHEN + ( + 23 ) + - COALESCE ( 20 + COUNT( * ), + COALESCE ( - 82, - 73 + + 60 * + 28 ) ) * - COALESCE ( 72, COUNT( * ) - 9 ) THEN NULL WHEN - 76 THEN 65 ELSE NULL END, - 21 * + ( 3 ) ) WHEN NULLIF ( 6, + COUNT( * ) + - 62 ) * COUNT( * ) + 68 * 14 THEN NULL WHEN - SUM( + 96 ) THEN NULL ELSE - 69 * 9 END
----
0

skipif mysql # not compatible
query I rowsort label-2711
SELECT COUNT ( * ) / - CASE COALESCE ( - CASE - COUNT ( DISTINCT + 44 ) WHEN - 69 * CAST ( - - 33 AS INTEGER ) THEN + + 95 * - 85 - + CAST ( NULL AS INTEGER ) * + 36 * - CASE + MIN ( + 74 ) WHEN + COUNT ( * ) * - - 91 + - - CAST ( - MIN ( + 9 ) AS INTEGER ) THEN - + 11 * + - 47 WHEN 28 THEN - 59 + - - AVG ( ALL - 90 ) + + 86 + - COALESCE ( 38, + 85 ) * - - 54 * - 95 / - - 37 + COUNT ( * ) / - 36 ELSE CASE + NULLIF ( + + 46, AVG ( ALL + - 50 ) ) WHEN - COUNT ( + - 87 ) THEN NULL WHEN + - 23 THEN NULL WHEN + COALESCE ( + + COUNT ( * ), 7 * 55 ) / ( COUNT ( * ) ) THEN 43 ELSE NULL END - 71 END WHEN + ( + 23 ) + - COALESCE ( 20 + COUNT ( * ), + COALESCE ( - 82, - 73 + + 60 * + 28 ) ) * - COALESCE ( 72, COUNT ( * ) - 9 ) THEN NULL WHEN - 76 THEN 65 ELSE NULL END, - 21 * + ( 3 ) ) WHEN NULLIF ( 6, + COUNT ( * ) + - 62 ) * COUNT ( * ) + 68 * 14 THEN NULL WHEN - SUM ( + 96 ) THEN NULL ELSE - 69 * 9 END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT ALL + 68 * - CAST( - 74 AS SIGNED ) AS col2
----
5032

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL + 68 * - CAST ( - 74 AS INTEGER ) AS col2
----
5032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2713
SELECT ( + + 74 ) * 82 / - + 81 + - COALESCE ( COALESCE ( - + 96, + COUNT( * ) - + - ( + 48 ) * - COUNT( * ), - NULLIF ( + 32, 38 ) + - 48 ), - 57 ) * - 83 * - CASE + ( - + 29 ) WHEN + AVG ( ALL - 34 ) THEN - COUNT( * ) WHEN - - 48 * + 12 * COUNT( * ) * + MAX( 26 ) THEN CAST( + COUNT( * ) AS SIGNED ) * 90 - - COUNT( + 67 ) + + 79 END + - 64 - - 82 + + 48 / - 99 + + + 40 / - 33 + - COUNT( * ) AS col2, - SUM( 63 ) * + 23
----
NULL
-1449

skipif mysql # not compatible
query II rowsort label-2713
SELECT ( + + 74 ) * 82 / - + 81 + - COALESCE ( COALESCE ( - + 96, + COUNT ( * ) - + - ( + 48 ) * - COUNT ( * ), - NULLIF ( + 32, 38 ) + - 48 ), - 57 ) * - 83 * - CASE + ( - + 29 ) WHEN + AVG ( ALL - 34 ) THEN - COUNT ( * ) WHEN - - 48 * + 12 * COUNT ( * ) * + MAX ( 26 ) THEN CAST ( + COUNT ( * ) AS INTEGER ) * 90 - - COUNT ( + 67 ) + + 79 END + - 64 - - 82 + + 48 / - 99 + + + 40 / - 33 + - COUNT ( * ) AS col2, - SUM ( 63 ) * + 23
----
NULL
-1449

query I rowsort
SELECT ALL + 77 * - 5 * - 41 AS col1
----
15785

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2715
SELECT 98 DIV - + SUM( + 73 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2715
SELECT 98 / - + SUM ( + 73 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2716
SELECT DISTINCT ( - 61 ) DIV 67 * - + 22 - + 54 * + - COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT ( - 61 ) / 67 * - + 22 - + 54 * + - COUNT ( * ) AS col2
----
54

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2718
SELECT NULLIF ( 32, 65 - 53 ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-2718
SELECT NULLIF ( 32, 65 - 53 ) / + 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT DISTINCT + 80 DIV 36
----
2

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT + 80 / 36
----
2

query I rowsort
SELECT - 32 * + 9
----
-288

query II rowsort
SELECT + - 64, - 28 AS col2
----
-64
-28

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2724
SELECT MIN( ALL + 65 ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT MIN ( ALL + 65 ) + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT CASE + 83 WHEN + - 54 THEN - 32 / - + 37 * + + 73 + + 40 ELSE NULL END + + ( + 14 ) + - COALESCE ( + 9, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT CASE + 83 WHEN + - 54 THEN - 32 / - + 37 * + + 73 + + 40 ELSE NULL END + + ( + 14 ) + - COALESCE ( + 9, COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT DISTINCT + + 48 * 76 - + 42 + + CASE - 42 WHEN - 40 THEN - 26 / + 46 + CASE + + AVG ( ALL - 94 ) WHEN COUNT( * ) * AVG ( - 56 ) + - 20 THEN - 13 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT + + 48 * 76 - + 42 + + CASE - 42 WHEN - 40 THEN - 26 / + 46 + CASE + + AVG ( ALL - 94 ) WHEN COUNT ( * ) * AVG ( - 56 ) + - 20 THEN - 13 END END
----
NULL

query I rowsort
SELECT ALL + 12 * + 79 AS col0
----
948

query I rowsort
SELECT DISTINCT + COALESCE ( + 90, - - ( 71 ) )
----
90

query II rowsort
SELECT - 16 AS col2, 62 col0
----
-16
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT COUNT( * ) * 34 col1
----
34

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

query I rowsort
SELECT ( + 71 ) + + - NULLIF ( - 23, - 69 * 3 + + 61 * + 97 ) AS col1
----
94

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2734
SELECT CAST( + 62 AS DECIMAL ) * + ( - - 47 ) * - CASE + - 34 WHEN - SUM( 94 ) THEN NULL WHEN + 53 THEN - + SUM( - + CASE + 38 WHEN 72 * + - 35 * - 73 + 24 THEN NULL WHEN - 88 THEN - 87 ELSE NULL END ) WHEN COUNT( * ) + + 75 + + 62 THEN NULL END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT CAST ( + 62 AS REAL ) * + ( - - 47 ) * - CASE + - 34 WHEN - SUM ( 94 ) THEN NULL WHEN + 53 THEN - + SUM ( - + CASE + 38 WHEN 72 * + - 35 * - 73 + 24 THEN NULL WHEN - 88 THEN - 87 ELSE NULL END ) WHEN COUNT ( * ) + + 75 + + 62 THEN NULL END + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 23 * - 53
----
-1219

query II rowsort
SELECT 82 + 87 AS col1, - 25
----
169
-25

query I rowsort
SELECT ALL 16 * 38 col0
----
608

onlyif mysql # DIV for integer division: 
query I rowsort label-2738
SELECT 1 + 55 + 83 DIV - ( 29 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2738
SELECT 1 + 55 + 83 / - ( 29 ) AS col1
----
54

query I rowsort
SELECT 72 + - 59 - + 73
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT ALL COUNT( DISTINCT 77 ) + + 36 col1
----
37

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL COUNT ( DISTINCT 77 ) + + 36 col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT ( MAX( ALL - 78 ) ) + + NULLIF ( + 24, - + 51 ) + + 73 * - 76 * + 57 AS col0
----
-316290

skipif mysql # not compatible
query I rowsort label-2741
SELECT ( MAX ( ALL - 78 ) ) + + NULLIF ( + 24, - + 51 ) + + 73 * - 76 * + 57 AS col0
----
-316290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2742
SELECT - 82 DIV 22 - - + 2 DIV SUM( DISTINCT + - 80 ) + - 20 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2742
SELECT - 82 / 22 - - + 2 / SUM ( DISTINCT + - 80 ) + - 20 AS col1
----
-23

query I rowsort
SELECT DISTINCT + 53 * + + 71 * + 46 + - - 94 * - 82 AS col1
----
165390

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT CASE 0 WHEN - 8 THEN + AVG ( DISTINCT - + 81 ) * 9 END * - ( + COUNT( * ) ) + + + ( + - 94 ) - 87 * - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT CASE 0 WHEN - 8 THEN + AVG ( DISTINCT - + 81 ) * 9 END * - ( + COUNT ( * ) ) + + + ( + - 94 ) - 87 * - 3 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2745
SELECT CAST( + + 3 AS SIGNED ) * ( 62 ) * + 2 * - + 78 AS col0
----
-29016

skipif mysql # not compatible
query I rowsort label-2745
SELECT CAST ( + + 3 AS INTEGER ) * ( 62 ) * + 2 * - + 78 AS col0
----
-29016

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2748
SELECT 71 * COUNT( * ) * - 57 * - 31 + + + 87 + + 80 + + CASE - 75 WHEN - - 78 * + 13 + - 37 THEN - 15 WHEN + MIN( + ( - + 30 ) ) + + + CAST( NULL AS SIGNED ) + - - ( - 7 ) THEN NULL END + + + 61 * - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT 71 * COUNT ( * ) * - 57 * - 31 + + + 87 + + 80 + + CASE - 75 WHEN - - 78 * + 13 + - 37 THEN - 15 WHEN + MIN ( + ( - + 30 ) ) + + + CAST ( NULL AS INTEGER ) + - - ( - 7 ) THEN NULL END + + + 61 * - 9
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2749
SELECT + COUNT( * ) * - - 19 + - 7 - - 16 DIV - 98 * COUNT( * ) + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-2749
SELECT + COUNT ( * ) * - - 19 + - 7 - - 16 / - 98 * COUNT ( * ) + + COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT DISTINCT - MAX( ALL ( + 57 ) ) + + 19 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT - MAX ( ALL ( + 57 ) ) + + 19 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT DISTINCT - 74 * CASE - 58 WHEN + COUNT( * ) THEN - 47 WHEN 47 * + - AVG ( DISTINCT - 18 ) THEN - ( ( + 77 ) ) END * - 4 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT - 74 * CASE - 58 WHEN + COUNT ( * ) THEN - 47 WHEN 47 * + - AVG ( DISTINCT - 18 ) THEN - ( ( + 77 ) ) END * - 4 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2752
SELECT ALL - + 83 - + COALESCE ( + CAST( + 75 AS SIGNED ), 59, + 43 DIV - - COALESCE ( MIN( DISTINCT 71 ), MAX( ALL 79 ) + - NULLIF ( ( - 74 ), + 10 ) ) ) - 40 * - 40
----
1442

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL - + 83 - + COALESCE ( + CAST ( + 75 AS INTEGER ), 59, + 43 / - - COALESCE ( MIN ( DISTINCT 71 ), MAX ( ALL 79 ) + - NULLIF ( ( - 74 ), + 10 ) ) ) - 40 * - 40
----
1442

query II rowsort
SELECT 89 + 97, 73 AS col0
----
186
73

query I rowsort
SELECT DISTINCT - 24 - 43
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2755
SELECT ALL - ( SUM( 64 ) ) DIV + + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL - ( SUM ( 64 ) ) / + + 79 AS col1
----
0

query I rowsort
SELECT + - 80 + - ( + 0 ) * + - 68
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT ALL - 75 * - NULLIF ( 31, - ( + 16 ) * MIN( DISTINCT + 60 ) / + 45 / - 45 ) AS col2
----
2325

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL - 75 * - NULLIF ( 31, - ( + 16 ) * MIN ( DISTINCT + 60 ) / + 45 / - 45 ) AS col2
----
2325

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT + MAX( + COALESCE ( + 20, 35 / 10 ) ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2759
SELECT + MAX ( + COALESCE ( + 20, 35 / 10 ) ) AS col0
----
20

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2761
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 93 - - + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 93 - - + 35 AS col2
----
NULL

query II rowsort
SELECT - - 36 - 4, 59 AS col0
----
32
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2763
SELECT + - 31 DIV + + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2763
SELECT + - 31 / + + 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT - 82 * COUNT( * ) * - + 75 + NULLIF ( + + 35, + 77 )
----
6185

skipif mysql # not compatible
query I rowsort label-2764
SELECT - 82 * COUNT ( * ) * - + 75 + NULLIF ( + + 35, + 77 )
----
6185

query I rowsort
SELECT ALL + 39 * + + 27 AS col1
----
1053

query I rowsort
SELECT DISTINCT + - 28 * 93
----
-2604

onlyif mysql # aggregate syntax: 
query II rowsort label-2767
SELECT - 22 - + COUNT( * ) * 18 AS col1, + 10
----
-40
10

skipif mysql # not compatible
query II rowsort label-2767
SELECT - 22 - + COUNT ( * ) * 18 AS col1, + 10
----
-40
10

query II rowsort
SELECT 40 col2, 39 AS col1
----
40
39

query II rowsort
SELECT 75 AS col1, - 12
----
75
-12

query I rowsort
SELECT ALL 93 + - - 61
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2771
SELECT - CASE + CAST( NULL AS SIGNED ) WHEN 10 + - + MAX( - 68 ) - - 11 + + 22 * - 93 / - COUNT( * ) THEN + CASE 53 WHEN + 24 THEN + 73 END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2771
SELECT - CASE + CAST ( NULL AS INTEGER ) WHEN 10 + - + MAX ( - 68 ) - - 11 + + 22 * - 93 / - COUNT ( * ) THEN + CASE 53 WHEN + 24 THEN + 73 END ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 63 * + 77
----
4851

query I rowsort
SELECT + 75 * 52
----
3900

query I rowsort
SELECT + 81 + + 83 AS col2
----
164

query I rowsort
SELECT ALL 87 * 30
----
2610

query I rowsort
SELECT DISTINCT - 68 + + - 73 * + ( 35 ) + + 19 * + + 7 * - ( - ( + - 24 ) ) col2
----
-5815

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2777
SELECT ALL SUM( - CAST( - + 30 AS SIGNED ) ) + 95
----
125

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL SUM ( - CAST ( - + 30 AS INTEGER ) ) + 95
----
125

query II rowsort
SELECT - CASE WHEN - 82 BETWEEN NULL AND - 18 THEN CASE - 86 WHEN + 58 + 85 THEN NULL WHEN + + 75 THEN - + 8 * - 0 WHEN - ( - 47 ) THEN - + 22 + + 20 ELSE NULL END + + 63 ELSE NULL END, - 79 AS col1
----
NULL
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT + 27 DIV - 20 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2779
SELECT + 27 / - 20 AS col1
----
-1

query I rowsort
SELECT ALL 33 + - + 51 + - 96
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-2781
SELECT DISTINCT COUNT( DISTINCT + - 87 ) + 78, + 44 AS col1
----
79
44

skipif mysql # not compatible
query II rowsort label-2781
SELECT DISTINCT COUNT ( DISTINCT + - 87 ) + 78, + 44 AS col1
----
79
44

query I rowsort
SELECT ALL ( + - 51 ) + - ( ( - 93 ) ) AS col1
----
42

query I rowsort
SELECT DISTINCT 86 * 45 col1
----
3870

onlyif mysql # aggregate syntax: 
query II rowsort label-2784
SELECT + COUNT( - 98 ) + + 20 AS col1, 69 AS col0
----
21
69

skipif mysql # not compatible
query II rowsort label-2784
SELECT + COUNT ( - 98 ) + + 20 AS col1, 69 AS col0
----
21
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2785
SELECT + 97 DIV + 30
----
3

skipif mysql # not compatible
query I rowsort label-2785
SELECT + 97 / + 30
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT ALL + COUNT( * ) * 47 + + 4 + - + 79 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL + COUNT ( * ) * 47 + + 4 + - + 79 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT + 85 - + COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2787
SELECT + 85 - + COUNT ( * ) AS col0
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT + + MAX( ALL 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2789
SELECT + + MAX ( ALL 8 ) AS col2
----
8

query I rowsort
SELECT ALL - - 48 * + - ( + 47 ) * - + 24
----
54144

onlyif mysql # aggregate syntax: 
query II rowsort label-2791
SELECT - + NULLIF ( + - 25, + - 95 ) - + SUM( + 66 ) + + 14 * + - 35 - + 10 AS col1, 83
----
-541
83

skipif mysql # not compatible
query II rowsort label-2791
SELECT - + NULLIF ( + - 25, + - 95 ) - + SUM ( + 66 ) + + 14 * + - 35 - + 10 AS col1, 83
----
-541
83

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2793
SELECT + 52 * + - COUNT( * ) - + 49 + + + CASE - MAX( - - 69 ) WHEN + SUM( - - 35 ) * 49 * + - 37 THEN - SUM( 70 ) + + 69 ELSE 91 * - MIN( ALL 88 ) - 17 DIV 75 END AS col2
----
-8109

skipif mysql # not compatible
query I rowsort label-2793
SELECT + 52 * + - COUNT ( * ) - + 49 + + + CASE - MAX ( - - 69 ) WHEN + SUM ( - - 35 ) * 49 * + - 37 THEN - SUM ( 70 ) + + 69 ELSE 91 * - MIN ( ALL 88 ) - 17 / 75 END AS col2
----
-8109

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT + - NULLIF ( + CASE - - COUNT( * ) WHEN ( - 70 ) - COUNT( * ) THEN NULL WHEN + NULLIF ( + 62, + - 37 ) THEN 56 WHEN + 26 - - 86 THEN NULL ELSE COUNT( * ) END, 12 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2794
SELECT + - NULLIF ( + CASE - - COUNT ( * ) WHEN ( - 70 ) - COUNT ( * ) THEN NULL WHEN + NULLIF ( + 62, + - 37 ) THEN 56 WHEN + 26 - - 86 THEN NULL ELSE COUNT ( * ) END, 12 ) AS col2
----
-1

query I rowsort
SELECT + - 40 * 56 + 14 * - 16
----
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT - 0 * - NULLIF ( - ( + 45 ), - + COUNT( * ) ) * - COUNT( + 28 )
----
0

skipif mysql # not compatible
query I rowsort label-2796
SELECT - 0 * - NULLIF ( - ( + 45 ), - + COUNT ( * ) ) * - COUNT ( + 28 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT + - MIN( 95 ) * + 68 * + - COUNT( * ) + + + 24 * + 37 + - COUNT( * ) AS col2
----
7347

skipif mysql # not compatible
query I rowsort label-2797
SELECT + - MIN ( 95 ) * + 68 * + - COUNT ( * ) + + + 24 * + 37 + - COUNT ( * ) AS col2
----
7347

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT DISTINCT + 1 * + + SUM( 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT + 1 * + + SUM ( 1 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2799
SELECT ALL + - 97 AS col1, - 52 * - 98 + - COUNT( * ) + + CAST( NULL AS DECIMAL ) / 0 * - COALESCE ( - - 66, - COUNT( * ) ) - + 82 + + 35 / - 72 * CAST( NULL AS SIGNED ) AS col0
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-2799
SELECT ALL + - 97 AS col1, - 52 * - 98 + - COUNT ( * ) + + CAST ( NULL AS REAL ) / 0 * - COALESCE ( - - 66, - COUNT ( * ) ) - + 82 + + 35 / - 72 * CAST ( NULL AS INTEGER ) AS col0
----
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT - SUM( - + 68 ) * COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-2800
SELECT - SUM ( - + 68 ) * COUNT ( * )
----
68

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( - 83, - - 14 - - - 39 ) AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2804
SELECT DISTINCT - 30 DIV - 13 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT - 30 / - 13 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2805
SELECT - + ( + MAX( ALL + + 45 ) ) + + - 29 + + AVG ( ALL - + NULLIF ( 28, - - 24 * + 20 + CAST( + 66 AS SIGNED ) + + - 21 * - + ( - - ( 25 ) ) ) ) - 86 + - 81 + 66 + - - ( + 9 ) * - - 60 * + CASE + COUNT( * ) WHEN 24 + - COUNT( * ) THEN NULL WHEN - + 54 / + COUNT( * ) + + 60 THEN - - 33 + 45 END * - 0 - + - 16 - - 54 * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT - + ( + MAX ( ALL + + 45 ) ) + + - 29 + + AVG ( ALL - + NULLIF ( 28, - - 24 * + 20 + CAST ( + 66 AS INTEGER ) + + - 21 * - + ( - - ( 25 ) ) ) ) - 86 + - 81 + 66 + - - ( + 9 ) * - - 60 * + CASE + COUNT ( * ) WHEN 24 + - COUNT ( * ) THEN NULL WHEN - + 54 / + COUNT ( * ) + + 60 THEN - - 33 + 45 END * - 0 - + - 16 - - 54 * + 78
----
NULL

query I rowsort
SELECT - + 13 + + 73 AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2807
SELECT - + 8 * SUM( ALL 58 ) DIV + + COALESCE ( ( 45 ), 37 ) + 43 - + + CAST( - 84 AS SIGNED )
----
117

skipif mysql # not compatible
query I rowsort label-2807
SELECT - + 8 * SUM ( ALL 58 ) / + + COALESCE ( ( 45 ), 37 ) + 43 - + + CAST ( - 84 AS INTEGER )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT - COUNT( * ) + - 59 + - 77 + + 71 * + - 48 AS col1
----
-3545

skipif mysql # not compatible
query I rowsort label-2808
SELECT - COUNT ( * ) + - 59 + - 77 + + 71 * + - 48 AS col1
----
-3545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2809
SELECT - CASE + - 90 WHEN - COUNT( * ) + - 20 THEN NULL WHEN + 91 THEN - + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2809
SELECT - CASE + - 90 WHEN - COUNT ( * ) + - 20 THEN NULL WHEN + 91 THEN - + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT - CASE + + 57 WHEN + 67 / + - 11 THEN - + 76 / 93 END + - + 0 * 94 + - COUNT( * ) / + - ( - ( - 50 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT - CASE + + 57 WHEN + 67 / + - 11 THEN - + 76 / 93 END + - + 0 * 94 + - COUNT ( * ) / + - ( - ( - 50 ) )
----
NULL

query I rowsort
SELECT + 81 * 63 AS col0
----
5103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2812
SELECT ALL + NULLIF ( + 2, CAST( NULL AS SIGNED ) * + 39 * + - 34 + - COUNT( * ) * + 94 * + + 79 ) * + 1 AS col2, CAST( NULL AS SIGNED )
----
2
NULL

skipif mysql # not compatible
query II rowsort label-2812
SELECT ALL + NULLIF ( + 2, CAST ( NULL AS INTEGER ) * + 39 * + - 34 + - COUNT ( * ) * + 94 * + + 79 ) * + 1 AS col2, CAST ( NULL AS INTEGER )
----
2
NULL

query I rowsort
SELECT ALL - 54 * - 28
----
1512

query I rowsort
SELECT - 51 + - - 81 + + ( - + 82 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT - 28 + - 99 - + + MIN( 44 ) AS col0
----
-171

skipif mysql # not compatible
query I rowsort label-2815
SELECT - 28 + - 99 - + + MIN ( 44 ) AS col0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL + 18 + + 82 + NULLIF ( 98, + 5 * - 82 ) + - SUM( + 49 ) + + 0 AS col0
----
149

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL + 18 + + 82 + NULLIF ( 98, + 5 * - 82 ) + - SUM ( + 49 ) + + 0 AS col0
----
149

query I rowsort
SELECT + 21 + 67 * - 72 AS col0
----
-4803

query I rowsort
SELECT ALL - 46 + + - 56
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2819
SELECT ALL CAST( + NULLIF ( + 75, 82 ) AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL CAST ( + NULLIF ( + 75, 82 ) AS INTEGER )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2820
SELECT DISTINCT - 37 + 29 - - - 58 + 33 DIV 9 + + + 2 - COUNT( * ) * - 48 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT - 37 + 29 - - - 58 + 33 / 9 + + + 2 - COUNT ( * ) * - 48 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2821
SELECT ALL 79 + COUNT( * ) col2, + 38 * - + CASE 85 WHEN - 94 THEN - COUNT( DISTINCT 21 ) ELSE NULL END AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-2821
SELECT ALL 79 + COUNT ( * ) col2, + 38 * - + CASE 85 WHEN - 94 THEN - COUNT ( DISTINCT 21 ) ELSE NULL END AS col2
----
80
NULL

query I rowsort
SELECT + 91 * - 51 * - - 7
----
-32487

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT DISTINCT + MAX( + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT + MAX ( + 99 ) AS col2
----
99

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

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL COUNT ( * ) * - COUNT ( ALL 66 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2826
SELECT ALL - 27 DIV + COUNT( * ) - - 4 * 71 * + + ( - MIN( + - 16 ) )
----
4517

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL - 27 / + COUNT ( * ) - - 4 * 71 * + + ( - MIN ( + - 16 ) )
----
4517

query I rowsort
SELECT + 55 * + ( + 52 ) AS col1
----
2860

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

skipif mysql # not compatible
query I rowsort label-2828
SELECT + SUM ( 5 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2829
SELECT ALL - + MAX( + CAST( NULL AS SIGNED ) ) AS col2, - 98 AS col2
----
NULL
-98

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2830
SELECT + 0 DIV - COUNT( * ) + COUNT( * ) + NULLIF ( ( + 33 ), + - NULLIF ( - 15, + 29 DIV - - ( 68 ) + - 88 ) DIV - + 86 + + 22 ) * - 26 + - - 8 AS col1
----
-849

skipif mysql # not compatible
query I rowsort label-2830
SELECT + 0 / - COUNT ( * ) + COUNT ( * ) + NULLIF ( ( + 33 ), + - NULLIF ( - 15, + 29 / - - ( 68 ) + - 88 ) / - + 86 + + 22 ) * - 26 + - - 8 AS col1
----
-849

query I rowsort
SELECT ALL + 24 * + - 41
----
-984

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT + 75 * - COUNT( * ) * + 82
----
-6150

skipif mysql # not compatible
query I rowsort label-2833
SELECT + 75 * - COUNT ( * ) * + 82
----
-6150

onlyif mysql # DIV for integer division: 
query I rowsort label-2834
SELECT DISTINCT - 42 DIV - + 48 * - - 45
----
0

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT - 42 / - + 48 * - - 45
----
0

query I rowsort
SELECT ALL - NULLIF ( 27, 15 ) AS col0
----
-27

query I rowsort
SELECT ALL - - NULLIF ( - + 70, 93 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2837
SELECT - NULLIF ( 81, - COUNT( * ) - CAST( NULL AS DECIMAL ) * - + 86 )
----
-81

skipif mysql # not compatible
query I rowsort label-2837
SELECT - NULLIF ( 81, - COUNT ( * ) - CAST ( NULL AS REAL ) * - + 86 )
----
-81

query I rowsort
SELECT 21 + + - 50 AS col2
----
-29

query I rowsort
SELECT DISTINCT - 1 * - + 34 + 42
----
76

query I rowsort
SELECT - 0 * - 10
----
0

query I rowsort
SELECT ALL 70 + - 0 + + + 81 + 88 * 87 AS col0
----
7807

query II rowsort
SELECT 0 * + 77, 97 AS col0
----
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT 17 + + + COUNT( ALL - 33 ) col2
----
18

skipif mysql # not compatible
query I rowsort label-2843
SELECT 17 + + + COUNT ( ALL - 33 ) col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2844
SELECT DISTINCT 16 + ( + + 71 ) * + CASE - + AVG ( 58 ) WHEN + - 63 THEN - ( - CAST( NULL AS SIGNED ) ) ELSE - 33 END AS col0
----
-2327

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT 16 + ( + + 71 ) * + CASE - + AVG ( 58 ) WHEN + - 63 THEN - ( - CAST ( NULL AS INTEGER ) ) ELSE - 33 END AS col0
----
-2327

onlyif mysql # DIV for integer division: 
query I rowsort label-2845
SELECT 17 DIV 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2845
SELECT 17 / 21 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2846
SELECT ALL 17 col2, - ( MAX( 42 ) ) * - + COUNT( * )
----
17
42

skipif mysql # not compatible
query II rowsort label-2846
SELECT ALL 17 col2, - ( MAX ( 42 ) ) * - + COUNT ( * )
----
17
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2847
SELECT 94, COALESCE ( - 66, + CASE 69 WHEN + + ( + CAST( NULL AS SIGNED ) ) * - + 41 THEN NULL WHEN + COALESCE ( + - 24, - + 87 + + - 71 / 81 * - 5 * + 28, - 74, + 58 * - 47 ) THEN - ( + - 17 ) * + 51 WHEN + 95 + - 46 THEN NULL END * - 91 + + 71 ) AS col1
----
94
-66

skipif mysql # not compatible
query II rowsort label-2847
SELECT 94, COALESCE ( - 66, + CASE 69 WHEN + + ( + CAST ( NULL AS INTEGER ) ) * - + 41 THEN NULL WHEN + COALESCE ( + - 24, - + 87 + + - 71 / 81 * - 5 * + 28, - 74, + 58 * - 47 ) THEN - ( + - 17 ) * + 51 WHEN + 95 + - 46 THEN NULL END * - 91 + + 71 ) AS col1
----
94
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2848
SELECT ALL - 50 + 74 + - CAST( NULL AS DECIMAL ) + + - 93 + + - 20 * + - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL - 50 + 74 + - CAST ( NULL AS REAL ) + + - 93 + + - 20 * + - 25 AS col0
----
NULL

query I rowsort
SELECT 1 * + + 52 * 91
----
4732

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

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL + ( - - 58 ) / + COUNT ( * ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT COUNT( * ) * - - 93 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-2851
SELECT COUNT ( * ) * - - 93 AS col2
----
93

query I rowsort
SELECT ALL - ( - ( 23 ) ) * - - 22 * - 62 * - 45 + + 73 AS col0
----
1411813

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT 42 - COUNT( * ) + - 7 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2853
SELECT 42 - COUNT ( * ) + - 7 AS col2
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT MIN( 72 ) * - 27 + 14 AS col0
----
-1930

skipif mysql # not compatible
query I rowsort label-2855
SELECT MIN ( 72 ) * - 27 + 14 AS col0
----
-1930

query I rowsort
SELECT + 49 * - 81 + + 99
----
-3870

onlyif mysql # DIV for integer division: 
query I rowsort label-2857
SELECT ALL 60 DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL 60 / + 52
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT SUM( + ( + 69 ) ) * 74 AS col0
----
5106

skipif mysql # not compatible
query I rowsort label-2858
SELECT SUM ( + ( + 69 ) ) * 74 AS col0
----
5106

query I rowsort
SELECT DISTINCT 77 * 54 AS col2
----
4158

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

query I rowsort
SELECT ALL 53 + - 51 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT ALL COUNT( * ) * 15 col0
----
15

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL COUNT ( * ) * 15 col0
----
15

query I rowsort
SELECT ALL + 53 * 18 AS col1
----
954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2864
SELECT DISTINCT - 99 + - CAST( - 76 AS SIGNED ) * 11 AS col0
----
737

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT - 99 + - CAST ( - 76 AS INTEGER ) * 11 AS col0
----
737

query I rowsort
SELECT DISTINCT 59 + + 22 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL 18 + COUNT( * ) * SUM( DISTINCT 38 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL 18 + COUNT ( * ) * SUM ( DISTINCT 38 ) AS col1
----
56

query I rowsort
SELECT ALL 76 + COALESCE ( 91 + - 80, - 80 + 18 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT CASE + 68 WHEN COALESCE ( + 5, NULLIF ( + 92, + MIN( ALL 14 ) ) ) + 40 THEN - 3 WHEN COUNT( * ) THEN NULL ELSE NULL END * 98 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT CASE + 68 WHEN COALESCE ( + 5, NULLIF ( + 92, + MIN ( ALL 14 ) ) ) + 40 THEN - 3 WHEN COUNT ( * ) THEN NULL ELSE NULL END * 98 col0
----
NULL

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

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

query I rowsort
SELECT 82 * - 15
----
-1230

query I rowsort
SELECT + 48 * 47 + - 80 AS col0
----
2176

query I rowsort
SELECT ALL 58 + - 80 AS col2
----
-22

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

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL COUNT ( * ) + 45 AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2874
SELECT COALESCE ( 24, - CASE + 66 WHEN 46 * 73 THEN + 41 ELSE 49 END * - 46, 9 DIV - 97 ) + - 98 DIV - 58
----
25

skipif mysql # not compatible
query I rowsort label-2874
SELECT COALESCE ( 24, - CASE + 66 WHEN 46 * 73 THEN + 41 ELSE 49 END * - 46, 9 / - 97 ) + - 98 / - 58
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT CASE - 45 WHEN + 20 - + 44 THEN COUNT( * ) WHEN + 39 * - MAX( 17 ) THEN + 47 ELSE 25 END + + SUM( DISTINCT 36 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2876
SELECT CASE - 45 WHEN + 20 - + 44 THEN COUNT ( * ) WHEN + 39 * - MAX ( 17 ) THEN + 47 ELSE 25 END + + SUM ( DISTINCT 36 ) AS col1
----
61

query I rowsort
SELECT DISTINCT NULLIF ( 38, 20 * + AVG ( 64 ) ) - + 95
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2878
SELECT NULLIF ( 5, + CASE 30 WHEN CAST( - MAX( DISTINCT 95 ) AS SIGNED ) DIV 61 + 86 * CAST( NULL AS DECIMAL ) THEN + 51 ELSE NULL END ) * NULLIF ( CASE ( - 55 ) WHEN 90 THEN + 19 - 98 ELSE + 64 END + + 53 DIV + 87, + ( + 84 ) * 72 + 94 )
----
320

skipif mysql # not compatible
query I rowsort label-2878
SELECT NULLIF ( 5, + CASE 30 WHEN CAST ( - MAX ( DISTINCT 95 ) AS INTEGER ) / 61 + 86 * CAST ( NULL AS REAL ) THEN + 51 ELSE NULL END ) * NULLIF ( CASE ( - 55 ) WHEN 90 THEN + 19 - 98 ELSE + 64 END + + 53 / + 87, + ( + 84 ) * 72 + 94 )
----
320

query I rowsort
SELECT ( 8 ) + 40 AS col0
----
48

query I rowsort
SELECT 52 - + 23
----
29

query I rowsort
SELECT 26 + + 23 * - 14
----
-296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2882
SELECT DISTINCT NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) + - AVG ( - 54 ) ) - - 17 * CASE 67 * - 65 WHEN - 75 THEN - ( - NULLIF ( 22, COUNT( * ) ) ) + 2 WHEN COUNT( * ) + 2 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) + - AVG ( - 54 ) ) - - 17 * CASE 67 * - 65 WHEN - 75 THEN - ( - NULLIF ( 22, COUNT ( * ) ) ) + 2 WHEN COUNT ( * ) + 2 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 36 * 78
----
2808

query I rowsort
SELECT - 8 + + 20
----
12

query I rowsort
SELECT - 30 + 47
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT ALL + 8 DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL + 8 / 93 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2887
SELECT - - 97 DIV 28
----
3

skipif mysql # not compatible
query I rowsort label-2887
SELECT - - 97 / 28
----
3

query I rowsort
SELECT - NULLIF ( + 49, - 87 / ( 72 / + 34 ) ) + - 73 AS col0
----
-122

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

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

query I rowsort
SELECT - - 53 * 68 AS col1
----
3604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2891
SELECT ALL - COUNT( * ) DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL - COUNT ( * ) / 35
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT - 6 DIV 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2892
SELECT - 6 / 91 AS col2
----
0

query I rowsort
SELECT DISTINCT 99 * 28 + - 57 AS col0
----
2715

query I rowsort
SELECT ALL + 67 * 6
----
402

query I rowsort
SELECT DISTINCT + ( 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL NULLIF ( + SUM( 99 ), - COUNT( + 70 ) + - 77 ) * 9 + + 11 AS col0
----
902

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL NULLIF ( + SUM ( 99 ), - COUNT ( + 70 ) + - 77 ) * 9 + + 11 AS col0
----
902

query I rowsort
SELECT DISTINCT 7 * + 36 + 84 AS col0
----
336

query I rowsort
SELECT - + 95 * 84
----
-7980

query I rowsort
SELECT DISTINCT 19 * + 88 + 90 AS col0
----
1762

query I rowsort
SELECT ALL - 42 * + 33 + 48 * 1 col0
----
-1338

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

query I rowsort
SELECT - - 51 * + 54 col1
----
2754

query I rowsort
SELECT + - 6 * 94 + - 48 AS col1
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL ( 37 ) * 18 + COUNT( * ) * + 75
----
741

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL ( 37 ) * 18 + COUNT ( * ) * + 75
----
741

query I rowsort
SELECT DISTINCT + - 22 * + 61 + + 36 AS col0
----
-1306

query I rowsort
SELECT ALL ( + + 38 ) * - 18 AS col1
----
-684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2907
SELECT COALESCE ( - 1, + CAST( NULL AS SIGNED ), NULLIF ( 32, - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2907
SELECT COALESCE ( - 1, + CAST ( NULL AS INTEGER ), NULLIF ( 32, - COUNT ( * ) ) )
----
-1

query I rowsort
SELECT ALL + 16 * + + 7 - 81
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2909
SELECT DISTINCT CAST( - 47 AS SIGNED ) * + 9
----
-423

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT CAST ( - 47 AS INTEGER ) * + 9
----
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT DISTINCT - COUNT( * ) * ( + ( + NULLIF ( - 20, 63 ) ) )
----
20

skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT - COUNT ( * ) * ( + ( + NULLIF ( - 20, 63 ) ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT DISTINCT - COUNT( - 41 ) * - 70 - + 86 * 33 AS col0
----
-2768

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT - COUNT ( - 41 ) * - 70 - + 86 * 33 AS col0
----
-2768

query I rowsort
SELECT - 93 * + + 45
----
-4185

query I rowsort
SELECT 23 * - 75 + + 56
----
-1669

query I rowsort
SELECT ALL 4 * + - 5
----
-20

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

skipif mysql # not compatible
query I rowsort label-2915
SELECT SUM ( - + 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT + 92 + + + COUNT( 66 )
----
93

skipif mysql # not compatible
query I rowsort label-2916
SELECT + 92 + + + COUNT ( 66 )
----
93

query I rowsort
SELECT + 51 * + + 46
----
2346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2918
SELECT SUM( + + CAST( COALESCE ( 3, + 56 + - 65 ) AS SIGNED ) ) col1
----
3

skipif mysql # not compatible
query I rowsort label-2918
SELECT SUM ( + + CAST ( COALESCE ( 3, + 56 + - 65 ) AS INTEGER ) ) col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT + MAX( + 7 ) * 26
----
182

skipif mysql # not compatible
query I rowsort label-2919
SELECT + MAX ( + 7 ) * 26
----
182

query I rowsort
SELECT ALL 3 * - - 22 AS col1
----
66

query I rowsort
SELECT + 20 * + + 12 AS col0
----
240

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

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

query I rowsort
SELECT - ( 59 ) * 27 AS col2
----
-1593

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2924
SELECT + - 56 - + - 97 + COUNT( * ) * 40 * - COALESCE ( + 9 DIV 34, 13 )
----
41

skipif mysql # not compatible
query I rowsort label-2924
SELECT + - 56 - + - 97 + COUNT ( * ) * 40 * - COALESCE ( + 9 / 34, 13 )
----
41

query I rowsort
SELECT ALL 7 * 4
----
28

query I rowsort
SELECT ALL + 87 + + COALESCE ( 84, ( + 76 ) ) AS col2
----
171

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

query I rowsort
SELECT DISTINCT - 18 * 92 + + 4 * 4 AS col1
----
-1640

query I rowsort
SELECT + 95 * + 46 AS col1
----
4370

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL - - MAX( - 80 ) + + 21 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL - - MAX ( - 80 ) + + 21 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT - MIN( 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-2931
SELECT - MIN ( 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ALL + ( + SUM( DISTINCT 77 ) ) * + 57 AS col0
----
4389

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL + ( + SUM ( DISTINCT 77 ) ) * + 57 AS col0
----
4389

query I rowsort
SELECT ALL 78 + - - 76 col0
----
154

query I rowsort
SELECT - - 16 - 0 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT ALL MIN( - 95 ) + - 25
----
-120

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL MIN ( - 95 ) + - 25
----
-120

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

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL - + COUNT ( * ) + + + 40 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT - + 41 * + COALESCE ( - 81, - 33 * 43, + SUM( ALL 81 ) )
----
3321

skipif mysql # not compatible
query I rowsort label-2937
SELECT - + 41 * + COALESCE ( - 81, - 33 * 43, + SUM ( ALL 81 ) )
----
3321

onlyif mysql # DIV for integer division: 
query I rowsort label-2938
SELECT ALL - 96 DIV + 53 + - 46 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL - 96 / + 53 + - 46 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT - COALESCE ( - - NULLIF ( 52, - ( COUNT( * ) ) * - 94 ), 93 * 20, + CASE 24 WHEN COUNT( + 56 ) THEN NULL WHEN - 96 / + 30 - 48 THEN NULL ELSE 34 END, 63 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-2939
SELECT - COALESCE ( - - NULLIF ( 52, - ( COUNT ( * ) ) * - 94 ), 93 * 20, + CASE 24 WHEN COUNT ( + 56 ) THEN NULL WHEN - 96 / + 30 - 48 THEN NULL ELSE 34 END, 63 ) AS col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT DISTINCT - - 55 / - CAST( NULL AS SIGNED ) / 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT - - 55 / - CAST ( NULL AS INTEGER ) / 15 AS col1
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( 63, 33 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2942
SELECT - CAST( NULL AS SIGNED ) * 43 + - CAST( + 21 AS SIGNED ) + + 4 * SUM( + 80 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT - CAST ( NULL AS INTEGER ) * 43 + - CAST ( + 21 AS INTEGER ) + + 4 * SUM ( + 80 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 69 * + 84 AS col0
----
-5796

query I rowsort
SELECT + - 16 * - 30 + + 72 col1
----
552

query I rowsort
SELECT - 24 + + 83
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT ALL - - 78 DIV - 40 - + 25 col0
----
-26

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL - - 78 / - 40 - + 25 col0
----
-26

query I rowsort
SELECT - 33 * 30 AS col0
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL - 8 * - 64 + + COUNT( * )
----
513

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL - 8 * - 64 + + COUNT ( * )
----
513

query I rowsort
SELECT - 5 * + 16 AS col2
----
-80

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

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

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

query I rowsort
SELECT ALL + 95 * + NULLIF ( - ( 18 ), 28 ) - 20 AS col2
----
-1730

query I rowsort
SELECT - 69 * + 58
----
-4002

query I rowsort
SELECT - 75 * - 26 AS col2
----
1950

query I rowsort
SELECT - 87 + 11 AS col0
----
-76

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

query I rowsort
SELECT ALL + CASE 90 WHEN 5 THEN NULL WHEN - 31 THEN + 16 END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2959
SELECT DISTINCT + COUNT( + CAST( 85 AS DECIMAL ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT + COUNT ( + CAST ( 85 AS REAL ) ) AS col2
----
1

query I rowsort
SELECT ALL 51 * + 3
----
153

query I rowsort
SELECT DISTINCT 68 * + 6
----
408

query I rowsort
SELECT - 82 * ( - 57 ) - 85 * + 51 col0
----
339

onlyif mysql # DIV for integer division: 
query I rowsort label-2963
SELECT 45 DIV - 52 * + - 9 * - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2963
SELECT 45 / - 52 * + - 9 * - 99 AS col2
----
0

query I rowsort
SELECT 51 * - 88 AS col2
----
-4488

query I rowsort
SELECT ALL - 56 * COALESCE ( + - 83, - NULLIF ( + 50, - 97 ) )
----
4648

query I rowsort
SELECT 32 + - 70 * - - 32
----
-2208

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT 71 DIV + + 86
----
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT 71 / + + 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT SUM( ALL 18 ) - SUM( - 28 )
----
46

skipif mysql # not compatible
query I rowsort label-2968
SELECT SUM ( ALL 18 ) - SUM ( - 28 )
----
46

query I rowsort
SELECT ALL 43 + - 48 - + 63 - - ( 83 )
----
15

query I rowsort
SELECT 42 + + ( 27 ) col0
----
69

query I rowsort
SELECT DISTINCT - - 90 * + ( - 40 ) * + ( 2 + - 77 ) - 47 * 79 AS col1
----
266287

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL - 25 + COUNT( * ) * - 11 * - 22 AS col2
----
217

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL - 25 + COUNT ( * ) * - 11 * - 22 AS col2
----
217

query I rowsort
SELECT + 88 * ( 99 )
----
8712

query II rowsort
SELECT - 48, + 80 AS col1
----
-48
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT ALL - COUNT( DISTINCT + ( 85 ) ) + + 59 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL - COUNT ( DISTINCT + ( 85 ) ) + + 59 AS col2
----
58

query I rowsort
SELECT ALL - CASE - + 93 WHEN - + 7 THEN NULL ELSE 52 - 24 END + + ( + ( 75 ) ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT - COUNT( 48 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT - COUNT ( 48 ) col2
----
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2980
SELECT - 68 * + 71 * + - CAST( + 3 AS SIGNED )
----
14484

skipif mysql # not compatible
query I rowsort label-2980
SELECT - 68 * + 71 * + - CAST ( + 3 AS INTEGER )
----
14484

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT NULLIF ( - COUNT( * ), - 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-2981
SELECT NULLIF ( - COUNT ( * ), - 38 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2982
SELECT ALL 12 + CASE - + 60 WHEN 93 THEN + ( + COUNT( CAST( CASE + 89 WHEN 7 * - 89 THEN NULL ELSE 23 / - 69 + 2 END AS SIGNED ) ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL 12 + CASE - + 60 WHEN 93 THEN + ( + COUNT ( CAST ( CASE + 89 WHEN 7 * - 89 THEN NULL ELSE 23 / - 69 + 2 END AS INTEGER ) ) ) END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT - - COALESCE ( 0, 2, COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2984
SELECT - - COALESCE ( 0, 2, COUNT ( * ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2985
SELECT - 95 * + CAST( NULL AS SIGNED ) + COUNT( * ) + - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT - 95 * + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 86 AS col1
----
NULL

query I rowsort
SELECT ALL - 23 * - 78 * - - 37 AS col2
----
66378

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

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

query I rowsort
SELECT ALL - 12 * - - ( + 52 ) + 79
----
-545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT ALL + + 90 - - CAST( + + 77 AS SIGNED )
----
167

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL + + 90 - - CAST ( + + 77 AS INTEGER )
----
167

query I rowsort
SELECT ALL - ( + 62 ) * + - COALESCE ( 93, + ( + 62 ) * + 43 )
----
5766

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT DISTINCT MAX( + COALESCE ( 68, - 93 ) ) - - 70 col1
----
138

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT MAX ( + COALESCE ( 68, - 93 ) ) - - 70 col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL - - MIN( DISTINCT - 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL - - MIN ( DISTINCT - 49 ) AS col0
----
-49

query I rowsort
SELECT + 69 * - 86 + 97 + 87
----
-5750

onlyif mysql # DIV for integer division: 
query I rowsort label-2994
SELECT ALL - ( + + 23 ) DIV + + 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL - ( + + 23 ) / + + 35 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT - 54 * + MIN( ALL - - 28 ) * - COUNT( * ) + - COUNT( * ) + SUM( 51 ) AS col1
----
1562

skipif mysql # not compatible
query I rowsort label-2995
SELECT - 54 * + MIN ( ALL - - 28 ) * - COUNT ( * ) + - COUNT ( * ) + SUM ( 51 ) AS col1
----
1562

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2996
SELECT 69 DIV COUNT( * ) - COUNT( * ) + + COUNT( DISTINCT + 52 ) + SUM( ALL + 21 )
----
90

skipif mysql # not compatible
query I rowsort label-2996
SELECT 69 / COUNT ( * ) - COUNT ( * ) + + COUNT ( DISTINCT + 52 ) + SUM ( ALL + 21 )
----
90

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2998
SELECT ALL COUNT( * ) DIV + - 2 AS col1, 48 + + - 98 AS col2
----
0
-50

skipif mysql # not compatible
query II rowsort label-2998
SELECT ALL COUNT ( * ) / + - 2 AS col1, 48 + + - 98 AS col2
----
0
-50

query I rowsort
SELECT ALL - 69 * - NULLIF ( 98, + 80 + 72 )
----
6762

query I rowsort
SELECT 36 * 53
----
1908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3001
SELECT ALL - 60 * + - 18 * 84 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL - 60 * + - 18 * 84 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 42 + + 47
----
89

query II rowsort
SELECT ALL - ( 76 ) AS col0, + 98 AS col1
----
-76
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT + 15 * - 77 + - CASE + 79 WHEN 15 * 8 THEN NULL ELSE + 46 * ( + CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT + 15 * - 77 + - CASE + 79 WHEN 15 * 8 THEN NULL ELSE + 46 * ( + CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT ALL - ( - 87 ) * - - 35 AS col1
----
3045

query I rowsort
SELECT 26 * - 23 AS col1
----
-598

query I rowsort
SELECT ALL + 97 + 82
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT DISTINCT - 43 + 33 + ( - 26 ) + + COUNT( * ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT - 43 + 33 + ( - 26 ) + + COUNT ( * ) AS col2
----
-35

query I rowsort
SELECT 7 * 1 + + 70 + + - 6 * 10 AS col1
----
17

query I rowsort
SELECT 51 * - 92
----
-4692

query II rowsort
SELECT ALL - 25 + + 5 AS col0, + 87
----
-20
87

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

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

query I rowsort
SELECT ALL + - 26 + - 98 * 47 AS col2
----
-4632

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT ALL - + 55 * - - MAX( 91 ) + 99 + 56
----
-4850

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL - + 55 * - - MAX ( 91 ) + 99 + 56
----
-4850

query I rowsort
SELECT - NULLIF ( - 0, 69 ) col0
----
0

query I rowsort
SELECT ALL - 79 + - - 67 + - 22
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-3017
SELECT - 86 * - 45, - 99 + - 9 * - ( + MIN( DISTINCT - 36 ) ) AS col2
----
3870
-423

skipif mysql # not compatible
query II rowsort label-3017
SELECT - 86 * - 45, - 99 + - 9 * - ( + MIN ( DISTINCT - 36 ) ) AS col2
----
3870
-423

onlyif mysql # DIV for integer division: 
query I rowsort label-3018
SELECT ALL - - ( + 49 ) + + - 89 - + - 9 + ( 54 + 24 DIV 61 ) * 71
----
3803

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL - - ( + 49 ) + + - 89 - + - 9 + ( 54 + 24 / 61 ) * 71
----
3803

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3019
SELECT DISTINCT + COUNT( * ) * + + ( 45 ) * + 1 - - COUNT( * ) DIV + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT + COUNT ( * ) * + + ( 45 ) * + 1 - - COUNT ( * ) / + COUNT ( * )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3020
SELECT - 52 - + 6 AS col0, - 7 * + 37 + COALESCE ( 1, - 6 * NULLIF ( 54, - CAST( 95 AS SIGNED ) ) ) AS col0
----
-58
-258

skipif mysql # not compatible
query II rowsort label-3020
SELECT - 52 - + 6 AS col0, - 7 * + 37 + COALESCE ( 1, - 6 * NULLIF ( 54, - CAST ( 95 AS INTEGER ) ) ) AS col0
----
-58
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT DISTINCT + - 13 * SUM( ALL + 72 )
----
-936

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT + - 13 * SUM ( ALL + 72 )
----
-936

onlyif mysql # aggregate syntax: 
query II rowsort label-3022
SELECT + 66 - + 88 AS col2, NULLIF ( - MAX( DISTINCT - 43 ), COALESCE ( + 96, + 63, - 28 ) )
----
-22
43

skipif mysql # not compatible
query II rowsort label-3022
SELECT + 66 - + 88 AS col2, NULLIF ( - MAX ( DISTINCT - 43 ), COALESCE ( + 96, + 63, - 28 ) )
----
-22
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT MAX( 49 )
----
49

skipif mysql # not compatible
query I rowsort label-3023
SELECT MAX ( 49 )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3024
SELECT - COALESCE ( + + 42, - + 85 DIV - 40 DIV + COUNT( * ) + 65 )
----
-42

skipif mysql # not compatible
query I rowsort label-3024
SELECT - COALESCE ( + + 42, - + 85 / - 40 / + COUNT ( * ) + 65 )
----
-42

query I rowsort
SELECT ALL - ( - NULLIF ( + + 78, AVG ( ALL + 21 ) ) ) * + 14
----
1092

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

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

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

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL + COUNT ( * ) / + 8
----
0

query I rowsort
SELECT 28 - - - 91 col2
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3029
SELECT ALL + ( + COUNT( 94 ) ) DIV - 37 * - 3
----
0

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL + ( + COUNT ( 94 ) ) / - 37 * - 3
----
0

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

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

query I rowsort
SELECT 74 - - 18 col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL 98 - - 83 + + + COALESCE ( + 57, COUNT( * ) )
----
238

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL 98 - - 83 + + + COALESCE ( + 57, COUNT ( * ) )
----
238

query I rowsort
SELECT DISTINCT - + NULLIF ( 13, + 44 + - 97 )
----
-13

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

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

query I rowsort
SELECT 37 * + 12 * + 68 + 24
----
30216

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT 73 / - CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE ( - SUM( DISTINCT 93 ) ) END / 78 + MIN( DISTINCT + ( - ( + 25 ) ) + + 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT 73 / - CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE ( - SUM ( DISTINCT 93 ) ) END / 78 + MIN ( DISTINCT + ( - ( + 25 ) ) + + 10 )
----
NULL

query I rowsort
SELECT ALL 24 * - 75 * - + 35 * 88 + + 65 AS col1
----
5544065

onlyif mysql # aggregate syntax: 
query II rowsort label-3038
SELECT ALL + 10 col1, 42 * - 22 + + COUNT( - 99 ) AS col0
----
10
-923

skipif mysql # not compatible
query II rowsort label-3038
SELECT ALL + 10 col1, 42 * - 22 + + COUNT ( - 99 ) AS col0
----
10
-923

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT + NULLIF ( - NULLIF ( + 17, + - 42 * + 27 * + CASE 84 * - 95 WHEN + MIN( ( 92 ) ) THEN 58 * - 97 END ), COUNT( * ) * - 43 ) * + 4 + - 30 * - 8
----
172

skipif mysql # not compatible
query I rowsort label-3039
SELECT + NULLIF ( - NULLIF ( + 17, + - 42 * + 27 * + CASE 84 * - 95 WHEN + MIN ( ( 92 ) ) THEN 58 * - 97 END ), COUNT ( * ) * - 43 ) * + 4 + - 30 * - 8
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT ALL + 47 * 44 * + + 44 * + COUNT( * ) + + - 81 col0
----
90911

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL + 47 * 44 * + + 44 * + COUNT ( * ) + + - 81 col0
----
90911

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

skipif mysql # not compatible
query I rowsort label-3041
SELECT MAX ( + CAST ( ( 23 ) AS INTEGER ) )
----
23

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3046
SELECT + 82 * + 51 * + + 33 - CAST( + - NULLIF ( - 55, + 93 DIV 55 ) AS SIGNED ) DIV 33
----
138005

skipif mysql # not compatible
query I rowsort label-3046
SELECT + 82 * + 51 * + + 33 - CAST ( + - NULLIF ( - 55, + 93 / 55 ) AS INTEGER ) / 33
----
138005

query I rowsort
SELECT + 14 + - 3
----
11

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT ALL - 48 - + + COUNT( * ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL - 48 - + + COUNT ( * ) col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT + - COUNT( * ) + 42 * - 85 - 53
----
-3624

skipif mysql # not compatible
query I rowsort label-3052
SELECT + - COUNT ( * ) + 42 * - 85 - 53
----
-3624

query I rowsort
SELECT - + 67 + - - 29 AS col0
----
-38

query I rowsort
SELECT - + 62 - - - 37
----
-99

query I rowsort
SELECT DISTINCT 29 * 7
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT ALL - 82 - + - COUNT( * ) * + + 29 * + 46
----
1252

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL - 82 - + - COUNT ( * ) * + + 29 * + 46
----
1252

onlyif mysql # aggregate syntax: 
query II rowsort label-3057
SELECT + 50, + 40 * + + CASE - 2 WHEN - 14 * 74 + 88 * + AVG ( + 29 * + 89 ) THEN COUNT( ALL 8 ) END AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-3057
SELECT + 50, + 40 * + + CASE - 2 WHEN - 14 * 74 + 88 * + AVG ( + 29 * + 89 ) THEN COUNT ( ALL 8 ) END AS col0
----
50
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3058
SELECT - + 18 + - NULLIF ( - ( + 25 ), - CAST( - CAST( NULLIF ( + COUNT( * ), - 20 * + 35 ) AS SIGNED ) AS SIGNED ) )
----
7

skipif mysql # not compatible
query I rowsort label-3058
SELECT - + 18 + - NULLIF ( - ( + 25 ), - CAST ( - CAST ( NULLIF ( + COUNT ( * ), - 20 * + 35 ) AS INTEGER ) AS INTEGER ) )
----
7

query II rowsort
SELECT ALL 78 AS col0, + 70 col0
----
78
70

query I rowsort
SELECT DISTINCT - + 56 - - NULLIF ( + 22, 90 ) * 53 - 17 * 28 AS col1
----
634

query I rowsort
SELECT DISTINCT + 90 * + + 14
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT - CASE 67 WHEN - COUNT( DISTINCT - + 92 ) - + 96 THEN 4 END + COUNT( * ) * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT - CASE 67 WHEN - COUNT ( DISTINCT - + 92 ) - + 96 THEN 4 END + COUNT ( * ) * - COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3063
SELECT - CASE + 2 WHEN - CAST( NULL AS SIGNED ) * - + CAST( NULL AS SIGNED ) * - + 23 + 85 + + CASE - 7 - CASE - 17 + 51 WHEN - 90 THEN + 99 * + 66 WHEN - 99 THEN NULL ELSE - 28 END WHEN 6 + + 25 THEN 18 * - 94 ELSE NULL END THEN NULL WHEN + 87 * 99 + + 32 THEN 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3063
SELECT - CASE + 2 WHEN - CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS INTEGER ) * - + 23 + 85 + + CASE - 7 - CASE - 17 + 51 WHEN - 90 THEN + 99 * + 66 WHEN - 99 THEN NULL ELSE - 28 END WHEN 6 + + 25 THEN 18 * - 94 ELSE NULL END THEN NULL WHEN + 87 * 99 + + 32 THEN 43 END
----
NULL

query I rowsort
SELECT - 13 + - 9
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-3065
SELECT - - 41 DIV 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3065
SELECT - - 41 / 81 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3066
SELECT - - 35 * CAST( + 95 AS SIGNED ) AS col0, + 5
----
3325
5

skipif mysql # not compatible
query II rowsort label-3066
SELECT - - 35 * CAST ( + 95 AS INTEGER ) AS col0, + 5
----
3325
5

query I rowsort
SELECT DISTINCT + 30 * - 25
----
-750

query I rowsort
SELECT + - 2 + 74
----
72

query I rowsort
SELECT ALL + 97 * 27 col2
----
2619

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3071
SELECT ALL CAST( - 98 AS SIGNED ) AS col0, - 17
----
-98
-17

skipif mysql # not compatible
query II rowsort label-3071
SELECT ALL CAST ( - 98 AS INTEGER ) AS col0, - 17
----
-98
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT - 64 + + - COUNT( * ) - + 15
----
-80

skipif mysql # not compatible
query I rowsort label-3072
SELECT - 64 + + - COUNT ( * ) - + 15
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT DISTINCT + MAX( DISTINCT + ( - 71 ) ) + - ( - 1 ) DIV + 54
----
-71

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT + MAX ( DISTINCT + ( - 71 ) ) + - ( - 1 ) / + 54
----
-71

query I rowsort
SELECT - 40 * 87
----
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT - SUM( ALL 10 ) * + 43 * 58 AS col1
----
-24940

skipif mysql # not compatible
query I rowsort label-3075
SELECT - SUM ( ALL 10 ) * + 43 * 58 AS col1
----
-24940

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT ALL - 36 DIV + + 35 + - + 48 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL - 36 / + + 35 + - + 48 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT + SUM( DISTINCT - 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT + SUM ( DISTINCT - 22 ) AS col0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3078
SELECT ALL 51 DIV - - COUNT( * ) + 91
----
142

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL 51 / - - COUNT ( * ) + 91
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3079
SELECT ALL COUNT( * ) / - + 30 * 96 * + AVG ( 68 ) + - NULLIF ( - CAST( NULL AS SIGNED ), 36 ) + 25 * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL COUNT ( * ) / - + 30 * 96 * + AVG ( 68 ) + - NULLIF ( - CAST ( NULL AS INTEGER ), 36 ) + 25 * 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3080
SELECT + CASE - + 57 WHEN 15 + 17 + - + SUM( DISTINCT + 84 ) + 29 THEN 87 - 5 * - 8 WHEN 23 THEN + 21 + 61 * CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT + CASE - + 57 WHEN 15 + 17 + - + SUM ( DISTINCT + 84 ) + 29 THEN 87 - 5 * - 8 WHEN 23 THEN + 21 + 61 * CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3081
SELECT ALL + CASE WHEN ( NULL ) IS NOT NULL THEN 75 WHEN NOT ( NULL ) IN ( 83 * 98 ) THEN 78 + 92 WHEN NOT - COUNT( * ) + COALESCE ( 84 + CAST( NULL AS DECIMAL ), + 84, 12 ) / - 64 NOT BETWEEN CASE + 95 WHEN + 77 * - 29 THEN + MIN( DISTINCT - 34 ) + - 51 WHEN - COUNT( * ) THEN NULL END / 96 AND ( NULL ) THEN 7 ELSE - 2 END AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL + CASE WHEN ( NULL ) IS NOT NULL THEN 75 WHEN NOT ( NULL ) IN ( 83 * 98 ) THEN 78 + 92 WHEN NOT - COUNT ( * ) + COALESCE ( 84 + CAST ( NULL AS REAL ), + 84, 12 ) / - 64 NOT BETWEEN CASE + 95 WHEN + 77 * - 29 THEN + MIN ( DISTINCT - 34 ) + - 51 WHEN - COUNT ( * ) THEN NULL END / 96 AND ( NULL ) THEN 7 ELSE - 2 END AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT - 4 * COUNT( - 23 ) * + 74
----
-296

skipif mysql # not compatible
query I rowsort label-3082
SELECT - 4 * COUNT ( - 23 ) * + 74
----
-296

query I rowsort
SELECT + 70 * + 83 + 54 AS col0
----
5864

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ( + MAX( DISTINCT + ( 85 ) ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-3084
SELECT ( + MAX ( DISTINCT + ( 85 ) ) ) AS col2
----
85

query II rowsort
SELECT ( + + 35 ), ( + NULLIF ( - 45, - 67 + + 40 ) ) * 31 AS col0
----
35
-1395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3086
SELECT ALL 57 * - CAST( + 56 AS SIGNED ) * - 66 + - - 74
----
210746

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL 57 * - CAST ( + 56 AS INTEGER ) * - 66 + - - 74
----
210746

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3087
SELECT - CAST( NULL AS SIGNED ) * - AVG ( ALL - NULLIF ( CAST( NULL AS DECIMAL ), 93 ) ) + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT - CAST ( NULL AS INTEGER ) * - AVG ( ALL - NULLIF ( CAST ( NULL AS REAL ), 93 ) ) + + 64
----
NULL

query I rowsort
SELECT + 33 - - + 27 AS col1
----
60

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

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

query I rowsort
SELECT ALL + 26 * + 71 + - 16
----
1830

query I rowsort
SELECT ( - 15 ) AS col2
----
-15

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

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL COUNT ( * ) * + CAST ( + CAST ( NULL AS REAL ) AS REAL ) + + - MAX ( + + 63 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 49 * 95
----
4655

query I rowsort
SELECT + 20 + - - 7 * - - 52
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT + ( + + 34 ) * + + COALESCE ( - 84, - COUNT( * ) + + 47, + 40 )
----
-2856

skipif mysql # not compatible
query I rowsort label-3096
SELECT + ( + + 34 ) * + + COALESCE ( - 84, - COUNT ( * ) + + 47, + 40 )
----
-2856

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3097
SELECT ALL 84 * + 39, + NULLIF ( - 40, - + ( + + 13 ) * - CAST( NULL AS SIGNED ) ) AS col0
----
3276
-40

skipif mysql # not compatible
query II rowsort label-3097
SELECT ALL 84 * + 39, + NULLIF ( - 40, - + ( + + 13 ) * - CAST ( NULL AS INTEGER ) ) AS col0
----
3276
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT CASE + 74 WHEN 90 + - - 77 + + + COUNT( 57 ) * 40 * 22 THEN ( + 11 ) * - ( + 17 / 55 ) + ( 71 ) * - 0 ELSE 96 END
----
96

skipif mysql # not compatible
query I rowsort label-3098
SELECT CASE + 74 WHEN 90 + - - 77 + + + COUNT ( 57 ) * 40 * 22 THEN ( + 11 ) * - ( + 17 / 55 ) + ( 71 ) * - 0 ELSE 96 END
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3099
SELECT + COUNT( + - 76 ) * 32 + + COUNT( * ), - NULLIF ( - - ( 3 ), - 30 * 90 ) col2
----
33
-3

skipif mysql # not compatible
query II rowsort label-3099
SELECT + COUNT ( + - 76 ) * 32 + + COUNT ( * ), - NULLIF ( - - ( 3 ), - 30 * 90 ) col2
----
33
-3

query I rowsort
SELECT ALL + COALESCE ( + + 77, + - ( 77 ), 48 ) AS col2
----
77

query I rowsort
SELECT DISTINCT 96 * 75 - 65 AS col2
----
7135

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

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

query I rowsort
SELECT - - 8 * - - 89
----
712

query I rowsort
SELECT - 4 + - 63 * + + 47 AS col2
----
-2965

query II rowsort
SELECT ALL 84 AS col2, 15 * 10 AS col0
----
84
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL - COUNT( ALL 79 ) * - SUM( - - 75 ) + - 57 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL - COUNT ( ALL 79 ) * - SUM ( - - 75 ) + - 57 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3107
SELECT ALL - 36 * + - CAST( NULL AS DECIMAL ) + - 82 * CASE - COUNT( * ) WHEN + + 21 * 90 THEN 9 * + MAX( ALL 99 ) + CAST( + 81 + 29 AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL - 36 * + - CAST ( NULL AS REAL ) + - 82 * CASE - COUNT ( * ) WHEN + + 21 * 90 THEN 9 * + MAX ( ALL 99 ) + CAST ( + 81 + 29 AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3108
SELECT + + 30 DIV - 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3108
SELECT + + 30 / - 39 AS col2
----
0

query I rowsort
SELECT ALL + - 83 * + + ( - - 9 ) col2
----
-747

query II rowsort
SELECT 61, + 20 AS col1
----
61
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3111
SELECT + - 86 * + + 19 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT + - 86 * + + 19 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT ALL + 1 * - - 23 * + - MAX( DISTINCT - - 56 ) col0
----
-1288

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + 1 * - - 23 * + - MAX ( DISTINCT - - 56 ) col0
----
-1288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3115
SELECT + CAST( - + 47 AS SIGNED ) - - + 4 - - + 53, + 90 AS col1
----
10
90

skipif mysql # not compatible
query II rowsort label-3115
SELECT + CAST ( - + 47 AS INTEGER ) - - + 4 - - + 53, + 90 AS col1
----
10
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3116
SELECT ALL + 51 + - COALESCE ( + 42, + 69 DIV COUNT( * ), - - 68 * 20 )
----
9

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL + 51 + - COALESCE ( + 42, + 69 / COUNT ( * ), - - 68 * 20 )
----
9

query I rowsort
SELECT 37 * - 0 * + + 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL COUNT( * ) + 84 + 26 * - COALESCE ( - 15, - + COUNT( * ), 32 * - 98 ) * - 85 AS col1
----
-33065

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL COUNT ( * ) + 84 + 26 * - COALESCE ( - 15, - + COUNT ( * ), 32 * - 98 ) * - 85 AS col1
----
-33065

onlyif mysql # aggregate syntax: 
query II rowsort label-3119
SELECT ALL - 74 + - COUNT( * ), - ( + 27 ) col0
----
-75
-27

skipif mysql # not compatible
query II rowsort label-3119
SELECT ALL - 74 + - COUNT ( * ), - ( + 27 ) col0
----
-75
-27

query I rowsort
SELECT ALL + 10 + + ( 74 ) + 28 + - + 83 * NULLIF ( - 80, 68 ) - - 79 AS col2
----
6831

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

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT - 29 + CAST ( NULL AS INTEGER ) + - 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3122
SELECT ALL - 11 + COALESCE ( - 60, - SUM( ALL + - NULLIF ( - - 68, + CAST( NULL AS SIGNED ) + + 41 ) ), COUNT( * ) ) * 68
----
-4091

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL - 11 + COALESCE ( - 60, - SUM ( ALL + - NULLIF ( - - 68, + CAST ( NULL AS INTEGER ) + + 41 ) ), COUNT ( * ) ) * 68
----
-4091

query I rowsort
SELECT 42 / + + 92 * - 7 * - 80 * - ( - CASE + 71 WHEN + 45 THEN 61 * 77 ELSE NULL END ) / 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT - 3 * COUNT( * ) + MIN( DISTINCT + 5 ) * COUNT( * ) + + 77 + + - 61 * 16 * + SUM( - 23 + ( - 40 + 22 ) )
----
40095

skipif mysql # not compatible
query I rowsort label-3124
SELECT - 3 * COUNT ( * ) + MIN ( DISTINCT + 5 ) * COUNT ( * ) + + 77 + + - 61 * 16 * + SUM ( - 23 + ( - 40 + 22 ) )
----
40095

query II rowsort
SELECT ALL - ( - + 79 ) AS col0, - 81 * 70 * 13 AS col2
----
79
-73710

query I rowsort
SELECT ALL 38 + - - 8 + + - 3 * + + 56 AS col2
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT ALL 97 - + - ( + COUNT( * ) ) + + - NULLIF ( - COALESCE ( 17, - COUNT( * ) + 58 ), ( + 41 ) ) + + COUNT( * ) * 27 * - ( 65 ) col2
----
-1640

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL 97 - + - ( + COUNT ( * ) ) + + - NULLIF ( - COALESCE ( 17, - COUNT ( * ) + 58 ), ( + 41 ) ) + + COUNT ( * ) * 27 * - ( 65 ) col2
----
-1640

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3129
SELECT ALL 73 - ( ( CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL 73 - ( ( CAST ( NULL AS REAL ) ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT 51 * - COUNT( * ) * - 81
----
4131

skipif mysql # not compatible
query I rowsort label-3131
SELECT 51 * - COUNT ( * ) * - 81
----
4131

onlyif mysql # DIV for integer division: 
query II rowsort label-3132
SELECT ALL - 67 DIV 20 AS col2, 87
----
-3
87

skipif mysql # not compatible
query II rowsort label-3132
SELECT ALL - 67 / 20 AS col2, 87
----
-3
87

query I rowsort
SELECT + 10 * - 94 * + - 99 + 93
----
93153

query I rowsort
SELECT 65 + 21 col2
----
86

query I rowsort
SELECT ALL 62 * - + COALESCE ( + - 19, - COALESCE ( + + 20, - 22, - - NULLIF ( + 52, + 66 ) * 7 ) * 56 ) col2
----
1178

query I rowsort
SELECT 11 + - 63 AS col2
----
-52

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

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

query I rowsort
SELECT 3 * - + 69
----
-207

query I rowsort
SELECT ALL - 96 * + + 51 * 46
----
-225216

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT DISTINCT 47 * - + 13 * 24 * - - COUNT( * ) * - 66
----
967824

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT 47 * - + 13 * 24 * - - COUNT ( * ) * - 66
----
967824

query I rowsort
SELECT - 95 * 98 AS col2
----
-9310

query I rowsort
SELECT 13 + - 30
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3143
SELECT COALESCE ( - 69, + CAST( NULL AS SIGNED ) )
----
-69

skipif mysql # not compatible
query I rowsort label-3143
SELECT COALESCE ( - 69, + CAST ( NULL AS INTEGER ) )
----
-69

query I rowsort
SELECT 59 + - 18 + 47 AS col0
----
88

query I rowsort
SELECT 3 - 0 + - + 67 * ( + 32 ) AS col0
----
-2141

query I rowsort
SELECT - 61 + - 89 + - ( 35 ) * - 81
----
2685

query I rowsort
SELECT ALL + 69 + + 67 + 15 + + CASE - - 94 WHEN 11 * - 65 + 94 * + COALESCE ( - 13, - 97 * - 88, 19 * + 98 ) THEN + 27 ELSE NULL END * 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL + - 63 + COALESCE ( - COUNT( * ), - + 1 ) + + - 33 + + 62 * + - 11 AS col2
----
-779

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + - 63 + COALESCE ( - COUNT ( * ), - + 1 ) + + - 33 + + 62 * + - 11 AS col2
----
-779

query I rowsort
SELECT DISTINCT - + 1 * + ( - 93 ) - - ( - 79 ) + - 17 + - + 73 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT COUNT( * ) + 87 * 40 AS col1
----
3481

skipif mysql # not compatible
query I rowsort label-3150
SELECT COUNT ( * ) + 87 * 40 AS col1
----
3481

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

skipif mysql # not compatible
query I rowsort label-3151
SELECT 55 + - + COUNT ( * ) * - + ( ( + - 11 ) ) AS col2
----
44

query I rowsort
SELECT 64 + - 75 AS col2
----
-11

query I rowsort
SELECT ALL 51 + 20 + 66 + + 22
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3154
SELECT DISTINCT 10 * 0 DIV - MIN( DISTINCT + ( - 95 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT 10 * 0 / - MIN ( DISTINCT + ( - 95 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT 45 * + 20 * 80 * + COUNT( * ) AS col1
----
72000

skipif mysql # not compatible
query I rowsort label-3155
SELECT 45 * + 20 * 80 * + COUNT ( * ) AS col1
----
72000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3156
SELECT 51 + + 49 + + MAX( DISTINCT 95 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT 51 + + 49 + + MAX ( DISTINCT 95 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3157
SELECT DISTINCT - 98 - - 85 * + + 87 * + CAST( + COALESCE ( + CAST( NULL AS SIGNED ), - + 65 * + 40 * COUNT( * ) - 73 ) AS SIGNED )
----
-19766933

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT - 98 - - 85 * + + 87 * + CAST ( + COALESCE ( + CAST ( NULL AS INTEGER ), - + 65 * + 40 * COUNT ( * ) - 73 ) AS INTEGER )
----
-19766933

query II rowsort
SELECT DISTINCT 15 AS col0, + 31 * + 72
----
15
2232

query I rowsort
SELECT DISTINCT - NULLIF ( + 68, + 20 ) AS col2
----
-68

query I rowsort
SELECT 70 * 7 AS col1
----
490

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

skipif mysql # not compatible
query I rowsort label-3161
SELECT SUM ( DISTINCT 90 )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3162
SELECT SUM( + + 91 ) * + + 54 AS col1, - 37 * NULLIF ( - 15, - 31 ) DIV 19 + + NULLIF ( NULLIF ( COUNT( * ), 67 * - 91 ), 81 ) AS col0
----
4914
30

skipif mysql # not compatible
query II rowsort label-3162
SELECT SUM ( + + 91 ) * + + 54 AS col1, - 37 * NULLIF ( - 15, - 31 ) / 19 + + NULLIF ( NULLIF ( COUNT ( * ), 67 * - 91 ), 81 ) AS col0
----
4914
30

query I rowsort
SELECT 96 + - 41 AS col1
----
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT DISTINCT - SUM( - 37 ) * 48 - 24 + + 31 + 21 * - COUNT( * ) - 90
----
1672

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT - SUM ( - 37 ) * 48 - 24 + + 31 + 21 * - COUNT ( * ) - 90
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT - CASE 36 WHEN + - COUNT( * ) * - COUNT( * ) + + 51 THEN NULL WHEN 31 THEN - 10 END * - 46 - + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT - CASE 36 WHEN + - COUNT ( * ) * - COUNT ( * ) + + 51 THEN NULL WHEN 31 THEN - 10 END * - 46 - + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT 56 + 6 + 69 * 81 * ( 39 ) * + 88 * + SUM( 82 ) + - 2
----
1572878796

skipif mysql # not compatible
query I rowsort label-3167
SELECT 56 + 6 + 69 * 81 * ( 39 ) * + 88 * + SUM ( 82 ) + - 2
----
1572878796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3168
SELECT + ( - MIN( DISTINCT + 41 ) ) DIV CASE - - SUM( + - 89 ) WHEN - 98 THEN COUNT( * ) ELSE 94 + + 86 DIV 24 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3168
SELECT + ( - MIN ( DISTINCT + 41 ) ) / CASE - - SUM ( + - 89 ) WHEN - 98 THEN COUNT ( * ) ELSE 94 + + 86 / 24 END AS col2
----
0

query II rowsort
SELECT DISTINCT - + 17 AS col1, 85 + 92 AS col0
----
-17
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3170
SELECT + - COUNT( * ) AS col2, - 41 DIV - 74 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-3170
SELECT + - COUNT ( * ) AS col2, - 41 / - 74 AS col0
----
-1
0

query I rowsort
SELECT 5 * - - 19 AS col2
----
95

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

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL + - COUNT ( * ) / 6
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3173
SELECT - 10 DIV - - 35
----
0

skipif mysql # not compatible
query I rowsort label-3173
SELECT - 10 / - - 35
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3174
SELECT + - COUNT( * ) AS col0, - 34 * 14 * - - 70 col1
----
-1
-33320

skipif mysql # not compatible
query II rowsort label-3174
SELECT + - COUNT ( * ) AS col0, - 34 * 14 * - - 70 col1
----
-1
-33320

query I rowsort
SELECT DISTINCT - CASE - - 90 WHEN - 74 THEN 74 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT ALL - + NULLIF ( - 4, + MAX( + 27 ) + 73 * - 86 ) + - 11 + + + 25 * 91
----
2268

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL - + NULLIF ( - 4, + MAX ( + 27 ) + 73 * - 86 ) + - 11 + + + 25 * 91
----
2268

query I rowsort
SELECT ALL - 73 + - - 79 AS col1
----
6

query I rowsort
SELECT ALL NULLIF ( - - 73, + ( - 38 ) )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3179
SELECT - COUNT( * ) AS col0, + CASE WHEN + 29 = - + 29 THEN - 82 END + - COUNT( ALL - 97 ) + - 40
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3179
SELECT - COUNT ( * ) AS col0, + CASE WHEN + 29 = - + 29 THEN - 82 END + - COUNT ( ALL - 97 ) + - 40
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL + CASE + 14 WHEN COUNT( * ) THEN NULL WHEN - 80 + + 28 THEN - 31 * - + COUNT( * ) * - CASE 10 WHEN 93 - COUNT( * ) THEN NULL WHEN - COUNT( * ) * + MIN( - 9 ) THEN + 21 END - 41 WHEN - 74 * 99 THEN NULL END + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL + CASE + 14 WHEN COUNT ( * ) THEN NULL WHEN - 80 + + 28 THEN - 31 * - + COUNT ( * ) * - CASE 10 WHEN 93 - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) * + MIN ( - 9 ) THEN + 21 END - 41 WHEN - 74 * 99 THEN NULL END + 10 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - 18 + + 79 AS col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3183
SELECT 8, + 4 * - ( - 27 ) + COUNT( * ) AS col2
----
8
109

skipif mysql # not compatible
query II rowsort label-3183
SELECT 8, + 4 * - ( - 27 ) + COUNT ( * ) AS col2
----
8
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3184
SELECT - - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT - - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT + 69 * + COUNT( * ) * 82 AS col1
----
5658

skipif mysql # not compatible
query I rowsort label-3185
SELECT + 69 * + COUNT ( * ) * 82 AS col1
----
5658

query I rowsort
SELECT - 81 * - 86
----
6966

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT - COALESCE ( + 51, + COUNT( * ), - 17 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3187
SELECT - COALESCE ( + 51, + COUNT ( * ), - 17 ) AS col0
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL + COUNT( * ) - - COALESCE ( + - ( - NULLIF ( - - 76, + + 74 ) ), - 73, - MIN( + - 66 ) ) * - 10
----
-759

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + COUNT ( * ) - - COALESCE ( + - ( - NULLIF ( - - 76, + + 74 ) ), - 73, - MIN ( + - 66 ) ) * - 10
----
-759

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3191
SELECT + 10 + - - 7 * + 14 * CAST( NULL AS SIGNED ) + + - ( - 45 ) + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT + 10 + - - 7 * + 14 * CAST ( NULL AS INTEGER ) + + - ( - 45 ) + 20
----
NULL

query I rowsort
SELECT ALL 21 - 56
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT - COALESCE ( - - ( - + COUNT( * ) ), + ( - 70 ), - - COUNT( * ) * - 88 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3193
SELECT - COALESCE ( - - ( - + COUNT ( * ) ), + ( - 70 ), - - COUNT ( * ) * - 88 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT ALL 97 - 90 * MAX( + ( - ( 95 ) ) )
----
8647

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL 97 - 90 * MAX ( + ( - ( 95 ) ) )
----
8647

onlyif mysql # aggregate syntax: 
query II rowsort label-3195
SELECT ALL + 39 * COUNT( * ), 30 * 33 col0
----
39
990

skipif mysql # not compatible
query II rowsort label-3195
SELECT ALL + 39 * COUNT ( * ), 30 * 33 col0
----
39
990

query I rowsort
SELECT DISTINCT 27 * + 73 col1
----
1971

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3197
SELECT + MAX( - 71 ) + + 37 + - + COALESCE ( - + 5, - + 3, + + 55 DIV - + 8 * 63 + 59 - - 84, + COALESCE ( 59, - 72 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-3197
SELECT + MAX ( - 71 ) + + 37 + - + COALESCE ( - + 5, - + 3, + + 55 / - + 8 * 63 + 59 - - 84, + COALESCE ( 59, - 72 ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT - 49 * + NULLIF ( - COUNT( * ), - COUNT( * ) * + 34 + 46 * - 87 * + - 29 + + 10 + ( + 6 ) )
----
49

skipif mysql # not compatible
query I rowsort label-3198
SELECT - 49 * + NULLIF ( - COUNT ( * ), - COUNT ( * ) * + 34 + 46 * - 87 * + - 29 + + 10 + ( + 6 ) )
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT DISTINCT + CASE + 4 WHEN 1 + + 79 + + - COUNT( * ) * + + 11 * + 23 + NULLIF ( + 82, 60 * 13 ) - + 43 THEN + 68 + - 18 WHEN - 41 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT + CASE + 4 WHEN 1 + + 79 + + - COUNT ( * ) * + + 11 * + 23 + NULLIF ( + 82, 60 * 13 ) - + 43 THEN + 68 + - 18 WHEN - 41 THEN NULL ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3202
SELECT ALL + + SUM( DISTINCT - + 72 ) AS col1, 39 * - 71 AS col1
----
-72
-2769

skipif mysql # not compatible
query II rowsort label-3202
SELECT ALL + + SUM ( DISTINCT - + 72 ) AS col1, 39 * - 71 AS col1
----
-72
-2769

query I rowsort
SELECT DISTINCT + NULLIF ( + - 23, 95 * + 38 * - 92 * - + 65 + 20 * 59 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT - 50 * + SUM( DISTINCT 87 ) col2
----
-4350

skipif mysql # not compatible
query I rowsort label-3204
SELECT - 50 * + SUM ( DISTINCT 87 ) col2
----
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT DISTINCT + + 34 * CAST( - + 50 AS SIGNED ) + - 4 AS col0
----
-1704

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT + + 34 * CAST ( - + 50 AS INTEGER ) + - 4 AS col0
----
-1704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3206
SELECT + 63 * - 10 * - - ( - CAST( NULL AS SIGNED ) ) + + - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT + 63 * - 10 * - - ( - CAST ( NULL AS INTEGER ) ) + + - 24 AS col0
----
NULL

query I rowsort
SELECT ALL - 72 * + 30 + + 76 - 91 * 43 * - ( - - 23 ) AS col2
----
87915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT - - 8 + ( + CAST( - - 62 AS SIGNED ) ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3208
SELECT - - 8 + ( + CAST ( - - 62 AS INTEGER ) ) AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3209
SELECT ALL 67 * + 17 * - 15 + - - 66 DIV 28 DIV - 39 + - COUNT( * ) + - 8 AS col2
----
-17094

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL 67 * + 17 * - 15 + - - 66 / 28 / - 39 + - COUNT ( * ) + - 8 AS col2
----
-17094

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT - + 33 + + CASE + 76 WHEN + 58 - - + 1 THEN 16 WHEN + + 99 THEN 54 WHEN - 6 THEN NULL WHEN 21 THEN NULL WHEN 69 * - 18 THEN COUNT( * ) + + 51 * - COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT - + 33 + + CASE + 76 WHEN + 58 - - + 1 THEN 16 WHEN + + 99 THEN 54 WHEN - 6 THEN NULL WHEN 21 THEN NULL WHEN 69 * - 18 THEN COUNT ( * ) + + 51 * - COUNT ( * ) ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3211
SELECT ALL - - ( CAST( NULL AS SIGNED ) ) * - CAST( NULL AS DECIMAL ) + - ( - AVG ( ( 67 ) ) ) AS col2, 41 * 67 AS col1
----
NULL
2747

skipif mysql # not compatible
query II rowsort label-3211
SELECT ALL - - ( CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS REAL ) + - ( - AVG ( ( 67 ) ) ) AS col2, 41 * 67 AS col1
----
NULL
2747

query I rowsort
SELECT + COALESCE ( 99, + 68 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL - NULLIF ( + 97, - - 0 - + CASE 91 WHEN + 58 THEN + - 27 END + 32 ) * - + 18 * 8 + - COUNT( * ) * - 91
----
14059

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL - NULLIF ( + 97, - - 0 - + CASE 91 WHEN + 58 THEN + - 27 END + 32 ) * - + 18 * 8 + - COUNT ( * ) * - 91
----
14059

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3214
SELECT - 76 * - COUNT( * ) - - 11 DIV + 36 + - - ( - + 82 ) * + 41 + 57
----
-3229

skipif mysql # not compatible
query I rowsort label-3214
SELECT - 76 * - COUNT ( * ) - - 11 / + 36 + - - ( - + 82 ) * + 41 + 57
----
-3229

onlyif mysql # DIV for integer division: 
query II rowsort label-3215
SELECT DISTINCT + 30 DIV - + 75 AS col2, 15 DIV 39 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-3215
SELECT DISTINCT + 30 / - + 75 AS col2, 15 / 39 AS col2
----
0
0

query I rowsort
SELECT - 66 + + 11 - - + 87 * + 16 * - 75 col0
----
-104455

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3218
SELECT - - 81 * - + MIN( ALL - + 18 ) + + COUNT( * ), COUNT( * ) * + 47 col0
----
1459
47

skipif mysql # not compatible
query II rowsort label-3218
SELECT - - 81 * - + MIN ( ALL - + 18 ) + + COUNT ( * ), COUNT ( * ) * + 47 col0
----
1459
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT - CASE AVG ( ALL 33 ) WHEN 95 THEN 97 WHEN + + NULLIF ( - 64, 40 - + COUNT( * ) ) * + - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT - CASE AVG ( ALL 33 ) WHEN 95 THEN 97 WHEN + + NULLIF ( - 64, 40 - + COUNT ( * ) ) * + - COUNT ( * ) THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT - 10 + + - COUNT( * ) * - NULLIF ( 36, - COUNT( * ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3221
SELECT - 10 + + - COUNT ( * ) * - NULLIF ( 36, - COUNT ( * ) ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3222
SELECT ALL 22 - - 12 + - - 13 * - MIN( ALL 97 ) AS col1, - COUNT( * )
----
-1227
-1

skipif mysql # not compatible
query II rowsort label-3222
SELECT ALL 22 - - 12 + - - 13 * - MIN ( ALL 97 ) AS col1, - COUNT ( * )
----
-1227
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3224
SELECT DISTINCT CAST( NULL AS SIGNED ), + CASE - COUNT( * ) WHEN 28 / + 84 + - + CASE - 36 WHEN - 8 THEN + - 17 WHEN + 73 THEN NULL ELSE NULL END * NULLIF ( - CASE - 81 WHEN 4 * + 64 + - 41 * 30 THEN + 41 ELSE NULL END, 29 ) THEN 46 + CASE + CASE ( - 52 ) WHEN + 4 - 2 THEN NULL ELSE + COUNT( ALL + 22 ) * ( - 32 ) END WHEN - 69 * - ( - 99 ) THEN NULL WHEN + 15 + - 6 * + 47 THEN 79 ELSE + 90 END / + COALESCE ( + 69, 56, COUNT( * ) ) ELSE NULL END * - MIN( DISTINCT 1 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3224
SELECT DISTINCT CAST ( NULL AS INTEGER ), + CASE - COUNT ( * ) WHEN 28 / + 84 + - + CASE - 36 WHEN - 8 THEN + - 17 WHEN + 73 THEN NULL ELSE NULL END * NULLIF ( - CASE - 81 WHEN 4 * + 64 + - 41 * 30 THEN + 41 ELSE NULL END, 29 ) THEN 46 + CASE + CASE ( - 52 ) WHEN + 4 - 2 THEN NULL ELSE + COUNT ( ALL + 22 ) * ( - 32 ) END WHEN - 69 * - ( - 99 ) THEN NULL WHEN + 15 + - 6 * + 47 THEN 79 ELSE + 90 END / + COALESCE ( + 69, 56, COUNT ( * ) ) ELSE NULL END * - MIN ( DISTINCT 1 )
----
NULL
NULL

query I rowsort
SELECT ALL + 80 * - 77
----
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT - MIN( ALL 79 ) * - 66 col0
----
5214

skipif mysql # not compatible
query I rowsort label-3226
SELECT - MIN ( ALL 79 ) * - 66 col0
----
5214

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT + 56 + - SUM( 61 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3227
SELECT + 56 + - SUM ( 61 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3228
SELECT - COUNT( * ) col2, + CASE WHEN NULL IS NOT NULL THEN 13 ELSE 65 END AS col1
----
-1
65

skipif mysql # not compatible
query II rowsort label-3228
SELECT - COUNT ( * ) col2, + CASE WHEN NULL IS NOT NULL THEN 13 ELSE 65 END AS col1
----
-1
65

query I rowsort
SELECT + ( - 76 ) + - - 98
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT - SUM( - 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-3230
SELECT - SUM ( - 59 ) AS col1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT + 50 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-3231
SELECT + 50 / + 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3232
SELECT - ( - - COUNT( * ) ) + - CAST( 3 AS SIGNED ) * + 41, 54 DIV 28 * - - 56 AS col2
----
-124
56

skipif mysql # not compatible
query II rowsort label-3232
SELECT - ( - - COUNT ( * ) ) + - CAST ( 3 AS INTEGER ) * + 41, 54 / 28 * - - 56 AS col2
----
-124
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT + CAST( + 24 AS SIGNED ) * - 6
----
-144

skipif mysql # not compatible
query I rowsort label-3233
SELECT + CAST ( + 24 AS INTEGER ) * - 6
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT ALL NULLIF ( COUNT( DISTINCT - 61 ), + 54 ) * + + ( + 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL NULLIF ( COUNT ( DISTINCT - 61 ), + 54 ) * + + ( + 77 ) AS col1
----
77

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

skipif mysql # not compatible
query I rowsort label-3235
SELECT + CAST ( NULL AS INTEGER ) / + 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3236
SELECT ALL - + 61 DIV + 83 - - ( - 7 ) + - + 98, - MIN( ALL - - 80 ) AS col1
----
-105
-80

skipif mysql # not compatible
query II rowsort label-3236
SELECT ALL - + 61 / + 83 - - ( - 7 ) + - + 98, - MIN ( ALL - - 80 ) AS col1
----
-105
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT 72 * - COUNT( DISTINCT - 98 ) * + ( - - 30 ) + - - 4 + + 11 + + + ( - 25 ) - + 9 * + 70
----
-2800

skipif mysql # not compatible
query I rowsort label-3237
SELECT 72 * - COUNT ( DISTINCT - 98 ) * + ( - - 30 ) + - - 4 + + 11 + + + ( - 25 ) - + 9 * + 70
----
-2800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT - - 90 / - + CAST( NULL AS SIGNED ) + + 15 + + - 17 * + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT - - 90 / - + CAST ( NULL AS INTEGER ) + + 15 + + - 17 * + + 33
----
NULL

query II rowsort
SELECT + - 88 AS col1, - 96 AS col1
----
-88
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT + + SUM( + 30 ) * - - 19 col2
----
570

skipif mysql # not compatible
query I rowsort label-3240
SELECT + + SUM ( + 30 ) * - - 19 col2
----
570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3241
SELECT DISTINCT - 84 + + + CASE COUNT( * ) WHEN 48 THEN + 44 * AVG ( DISTINCT 76 ) ELSE 20 * + - 50 END DIV 88 + 47 * 31
----
1362

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT - 84 + + + CASE COUNT ( * ) WHEN 48 THEN + 44 * AVG ( DISTINCT 76 ) ELSE 20 * + - 50 END / 88 + 47 * 31
----
1362

query I rowsort
SELECT + 5 - - + 6 - + 39 * - + 86 + 33 * + - 57 AS col1
----
1484

onlyif mysql # aggregate syntax: 
query II rowsort label-3243
SELECT DISTINCT - COUNT( * ) AS col0, - 40
----
-1
-40

skipif mysql # not compatible
query II rowsort label-3243
SELECT DISTINCT - COUNT ( * ) AS col0, - 40
----
-1
-40

query I rowsort
SELECT ALL + + 32 + - 72 - 28 - + 91
----
-159

query I rowsort
SELECT ALL - - 58 AS col1
----
58

query I rowsort
SELECT DISTINCT 2 + + 98
----
100

query I rowsort
SELECT ALL + 90 - + 68
----
22

query II rowsort
SELECT ALL - + 25, 4 AS col2
----
-25
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT + + SUM( 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3249
SELECT + + SUM ( 3 ) AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3250
SELECT ALL + COUNT( * ) * + - ( 35 ) - 72 + + 3 - + + CAST( + 13 AS SIGNED ) col2
----
-117

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL + COUNT ( * ) * + - ( 35 ) - 72 + + 3 - + + CAST ( + 13 AS INTEGER ) col2
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-3251
SELECT 14 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-3251
SELECT 14 / 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3252
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - - COUNT( ALL 40 ) * 48 + + 55 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - - COUNT ( ALL 40 ) * 48 + + 55 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3253
SELECT 61 DIV + MIN( ALL 9 )
----
6

skipif mysql # not compatible
query I rowsort label-3253
SELECT 61 / + MIN ( ALL 9 )
----
6

query II rowsort
SELECT ALL 49 AS col1, - 69 * - 38 * + COALESCE ( + 96, + - ( 78 ) ) + - + 47 AS col2
----
49
251665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3255
SELECT DISTINCT - 66 * 26 AS col2, NULLIF ( - CAST( NULL AS SIGNED ), - - 53 + + COUNT( * ) )
----
-1716
NULL

skipif mysql # not compatible
query II rowsort label-3255
SELECT DISTINCT - 66 * 26 AS col2, NULLIF ( - CAST ( NULL AS INTEGER ), - - 53 + + COUNT ( * ) )
----
-1716
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3256
SELECT COUNT( * ) * - + 13 + + - 17 + 68 + - 76 DIV 67 + + 79 DIV - 66
----
36

skipif mysql # not compatible
query I rowsort label-3256
SELECT COUNT ( * ) * - + 13 + + - 17 + 68 + - 76 / 67 + + 79 / - 66
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT 51 DIV - 33 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3257
SELECT 51 / - 33 AS col2
----
-1

query I rowsort
SELECT ( - ( + 82 ) ) + - 7 + - - 17 col1
----
-72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3260
SELECT ALL - 21 DIV + 63 * + 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL - 21 / + 63 * + 49 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT 70 - 19 * 5 * - COUNT( * ) - - 9
----
174

skipif mysql # not compatible
query I rowsort label-3261
SELECT 70 - 19 * 5 * - COUNT ( * ) - - 9
----
174

query I rowsort
SELECT 79 + 10 col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT ALL + 49 * 73 DIV + 92 col1
----
38

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL + 49 * 73 / + 92 col1
----
38

query I rowsort
SELECT 86 * - 43 * + 31 AS col2
----
-114638

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3265
SELECT ALL 27 AS col1, + CAST( NULL AS SIGNED ) - + + 50 AS col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-3265
SELECT ALL 27 AS col1, + CAST ( NULL AS INTEGER ) - + + 50 AS col2
----
27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT DISTINCT - 4 + COUNT( - 37 ) + - 36
----
-39

skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT - 4 + COUNT ( - 37 ) + - 36
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL ( + MAX( + 81 ) ) + - 20 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL ( + MAX ( + 81 ) ) + - 20 AS col2
----
61

query I rowsort
SELECT 79 + - + 71 * - - 4
----
-205

query I rowsort
SELECT 14 - - 99
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3270
SELECT ALL + 67 AS col1, 86 DIV - SUM( ALL - - 52 )
----
67
-1

skipif mysql # not compatible
query II rowsort label-3270
SELECT ALL + 67 AS col1, 86 / - SUM ( ALL - - 52 )
----
67
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3271
SELECT + COUNT( * ) + + COUNT( * ) AS col1, 15
----
2
15

skipif mysql # not compatible
query II rowsort label-3271
SELECT + COUNT ( * ) + + COUNT ( * ) AS col1, 15
----
2
15

query I rowsort
SELECT ALL + - 92 + - + 13 * + NULLIF ( 56, 15 ) AS col0
----
-820

query I rowsort
SELECT ALL - 88 + + 41 + + 94
----
47

query II rowsort
SELECT 82 * + 84 - - NULLIF ( + 31, + 2 ) + + 66, 17 col2
----
6985
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3275
SELECT - 34 DIV + + 97 * + 77 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3275
SELECT - 34 / + + 97 * + 77 + COUNT ( * )
----
1

query II rowsort
SELECT + 10 col0, - 73
----
10
-73

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

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

query I rowsort
SELECT 72 * + 18 * - 89
----
-115344

query I rowsort
SELECT ALL - CASE - 14 WHEN - 56 THEN 96 * + 58 WHEN 88 THEN NULL WHEN - 66 + - 34 * - 59 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT - COUNT( * ) * - + 66 + + 88 AS col0
----
154

skipif mysql # not compatible
query I rowsort label-3280
SELECT - COUNT ( * ) * - + 66 + + 88 AS col0
----
154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT - CASE - 1 WHEN NULLIF ( - + 25, - 55 ) THEN NULL WHEN 1 + - 98 * + + 71 + - 55 THEN NULL ELSE 87 END * + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-3282
SELECT - CASE - 1 WHEN NULLIF ( - + 25, - 55 ) THEN NULL WHEN 1 + - 98 * + + 71 + - 55 THEN NULL ELSE 87 END * + COUNT ( * )
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT + 17 DIV - - 72 + 86 col2
----
86

skipif mysql # not compatible
query I rowsort label-3283
SELECT + 17 / - - 72 + 86 col2
----
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3284
SELECT - 71 DIV - CAST( 1 AS SIGNED ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3284
SELECT - 71 / - CAST ( 1 AS INTEGER ) AS col2
----
71

query I rowsort
SELECT - 15 + - 76 AS col2
----
-91

query I rowsort
SELECT ALL - 78 - + + NULLIF ( + 72, 94 ) AS col0
----
-150

query I rowsort
SELECT DISTINCT + 67 * - - 46 + + 20 AS col2
----
3102

query I rowsort
SELECT ALL - COALESCE ( ( + 31 ), - 12 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ALL - COALESCE ( CASE + + 81 WHEN + - 38 + - COALESCE ( + COUNT( * ), + 8 ) THEN CASE + + SUM( - 74 ) WHEN + NULLIF ( - ( - 94 ), 79 ) + AVG ( - 92 ) THEN - 82 WHEN - 83 THEN 76 ELSE NULL END * - MIN( - 9 * 41 ) - + COUNT( * ) END, ( + 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL - COALESCE ( CASE + + 81 WHEN + - 38 + - COALESCE ( + COUNT ( * ), + 8 ) THEN CASE + + SUM ( - 74 ) WHEN + NULLIF ( - ( - 94 ), 79 ) + AVG ( - 92 ) THEN - 82 WHEN - 83 THEN 76 ELSE NULL END * - MIN ( - 9 * 41 ) - + COUNT ( * ) END, ( + 56 ) )
----
-56

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

skipif mysql # not compatible
query I rowsort label-3290
SELECT + 89 * + - 42 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 89 + ( + + 19 ) + - + 34 * 90 AS col1
----
-2952

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT 60 + SUM( ALL + 71 )
----
131

skipif mysql # not compatible
query I rowsort label-3292
SELECT 60 + SUM ( ALL + 71 )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT 99 + + MAX( DISTINCT 61 )
----
160

skipif mysql # not compatible
query I rowsort label-3293
SELECT 99 + + MAX ( DISTINCT 61 )
----
160

query I rowsort
SELECT ALL 39 + 28
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3295
SELECT 79 + - COALESCE ( 8, - 77 DIV - SUM( + 43 ) + - 37, - + 31 * + 89 )
----
71

skipif mysql # not compatible
query I rowsort label-3295
SELECT 79 + - COALESCE ( 8, - 77 / - SUM ( + 43 ) + - 37, - + 31 * + 89 )
----
71

query II rowsort
SELECT ALL - 17 * + 3 AS col1, + 6
----
-51
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ALL + CASE - + CASE - 7 WHEN - - 62 * 89 + + ( 59 ) + - COALESCE ( - + 37, + - COUNT( * ) ) THEN 92 WHEN - 87 * - 86 + 61 * - 65 THEN + 97 * 86 + NULLIF ( - AVG ( DISTINCT + NULLIF ( ( - 47 ), + 34 ) ), - 18 ) ELSE 57 END WHEN 53 THEN 79 + - 5 * + 1 WHEN + 21 * + 65 THEN NULL WHEN 53 - COUNT( * ) THEN NULL END + + 14 * MAX( DISTINCT 53 * + 29 + 45 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL + CASE - + CASE - 7 WHEN - - 62 * 89 + + ( 59 ) + - COALESCE ( - + 37, + - COUNT ( * ) ) THEN 92 WHEN - 87 * - 86 + 61 * - 65 THEN + 97 * 86 + NULLIF ( - AVG ( DISTINCT + NULLIF ( ( - 47 ), + 34 ) ), - 18 ) ELSE 57 END WHEN 53 THEN 79 + - 5 * + 1 WHEN + 21 * + 65 THEN NULL WHEN 53 - COUNT ( * ) THEN NULL END + + 14 * MAX ( DISTINCT 53 * + 29 + 45 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT ALL 3 + + 85 * + ( + MIN( ALL + 40 ) ) * + 91
----
309403

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL 3 + + 85 * + ( + MIN ( ALL + 40 ) ) * + 91
----
309403

onlyif mysql # DIV for integer division: 
query I rowsort label-3299
SELECT 98 DIV + + 96
----
1

skipif mysql # not compatible
query I rowsort label-3299
SELECT 98 / + + 96
----
1

query I rowsort
SELECT ALL - ( + - 52 ) + - 90
----
-38

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3302
SELECT MAX( DISTINCT + 98 ) DIV 75 col1
----
1

skipif mysql # not compatible
query I rowsort label-3302
SELECT MAX ( DISTINCT + 98 ) / 75 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3303
SELECT 24 + - 75 AS col2, CAST( 1 AS SIGNED )
----
-51
1

skipif mysql # not compatible
query II rowsort label-3303
SELECT 24 + - 75 AS col2, CAST ( 1 AS INTEGER )
----
-51
1

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

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

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

skipif mysql # not compatible
query I rowsort label-3305
SELECT - SUM ( ALL 69 )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3306
SELECT - - 95 + - + CAST( + - 88 AS SIGNED )
----
183

skipif mysql # not compatible
query I rowsort label-3306
SELECT - - 95 + - + CAST ( + - 88 AS INTEGER )
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT DISTINCT + - 15 * - 17 + - + COUNT( * ) AS col1
----
254

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT + - 15 * - 17 + - + COUNT ( * ) AS col1
----
254

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3310
SELECT - 81 / - COUNT( 89 ) + - + 10 * + COALESCE ( + 58, + 44 + + 24 - + COUNT( * ) / - 72 * - 41 ) * - - 22 * CAST( NULL AS SIGNED ) + - AVG ( 54 ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT - 81 / - COUNT ( 89 ) + - + 10 * + COALESCE ( + 58, + 44 + + 24 - + COUNT ( * ) / - 72 * - 41 ) * - - 22 * CAST ( NULL AS INTEGER ) + - AVG ( 54 ) * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3311
SELECT ALL - + 73 * - 57 * - COUNT( * ), 48 - - 57 AS col2
----
-4161
105

skipif mysql # not compatible
query II rowsort label-3311
SELECT ALL - + 73 * - 57 * - COUNT ( * ), 48 - - 57 AS col2
----
-4161
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT + 59 * - 41 * - ( MAX( ALL + + 7 ) )
----
16933

skipif mysql # not compatible
query I rowsort label-3312
SELECT + 59 * - 41 * - ( MAX ( ALL + + 7 ) )
----
16933

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT ALL 99 * - 66 * COUNT( * ) AS col0
----
-6534

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL 99 * - 66 * COUNT ( * ) AS col0
----
-6534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3315
SELECT CASE 6 WHEN MIN( ALL - 68 ) * COALESCE ( 87, + + CASE + 1 WHEN - COUNT( * ) + 40 THEN + + ( + COUNT( * ) ) + - + 76 WHEN - 22 * - 53 THEN NULL END ) THEN NULL ELSE COALESCE ( 38, 96, 32 DIV 33 ) END
----
38

skipif mysql # not compatible
query I rowsort label-3315
SELECT CASE 6 WHEN MIN ( ALL - 68 ) * COALESCE ( 87, + + CASE + 1 WHEN - COUNT ( * ) + 40 THEN + + ( + COUNT ( * ) ) + - + 76 WHEN - 22 * - 53 THEN NULL END ) THEN NULL ELSE COALESCE ( 38, 96, 32 / 33 ) END
----
38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3316
SELECT DISTINCT - 48 DIV + CAST( 22 AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT - 48 / + CAST ( 22 AS INTEGER ) AS col2
----
-2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3318
SELECT - 51 DIV - 57 col1
----
0

skipif mysql # not compatible
query I rowsort label-3318
SELECT - 51 / - 57 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT + MIN( + 97 ) * + COUNT( DISTINCT 51 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3319
SELECT + MIN ( + 97 ) * + COUNT ( DISTINCT 51 ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3320
SELECT ALL 41 * + AVG ( - CAST( NULL AS SIGNED ) ) + 38 + 45 + - - 94 + - 74 * + NULLIF ( - - 38, - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL 41 * + AVG ( - CAST ( NULL AS INTEGER ) ) + 38 + 45 + - - 94 + - 74 * + NULLIF ( - - 38, - 57 )
----
NULL

query I rowsort
SELECT + 33 * - 28 AS col1
----
-924

onlyif mysql # aggregate syntax: 
query II rowsort label-3322
SELECT + COUNT( * ) AS col1, + 50 * - 0 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-3322
SELECT + COUNT ( * ) AS col1, + 50 * - 0 AS col0
----
1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3323
SELECT ALL 11 AS col1, - SUM( + + ( + 12 ) )
----
11
-12

skipif mysql # not compatible
query II rowsort label-3323
SELECT ALL 11 AS col1, - SUM ( + + ( + 12 ) )
----
11
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3324
SELECT + 97 * + CAST( 40 AS SIGNED ) col2, 84 * - + 37 + - 82 AS col0
----
3880
-3190

skipif mysql # not compatible
query II rowsort label-3324
SELECT + 97 * + CAST ( 40 AS INTEGER ) col2, 84 * - + 37 + - 82 AS col0
----
3880
-3190

query I rowsort
SELECT DISTINCT 62 + - 82 AS col0
----
-20

query II rowsort
SELECT ALL 70, 24 AS col2
----
70
24

query I rowsort
SELECT + 61 + + 36 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT + 67 * - CASE 79 WHEN + - COUNT( * ) THEN NULL WHEN + 92 THEN NULL WHEN - + 41 THEN 98 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT + 67 * - CASE 79 WHEN + - COUNT ( * ) THEN NULL WHEN + 92 THEN NULL WHEN - + 41 THEN 98 END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3330
SELECT - CAST( + ( + 82 ) AS SIGNED ) col1, 69 AS col0
----
-82
69

skipif mysql # not compatible
query II rowsort label-3330
SELECT - CAST ( + ( + 82 ) AS INTEGER ) col1, 69 AS col0
----
-82
69

query II rowsort
SELECT 67 col0, 28
----
67
28

query II rowsort
SELECT - 81, 55 AS col2
----
-81
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT + 31 + 3 * - 87 + + SUM( - - 2 ) AS col0
----
-228

skipif mysql # not compatible
query I rowsort label-3333
SELECT + 31 + 3 * - 87 + + SUM ( - - 2 ) AS col0
----
-228

query I rowsort
SELECT - 37 * 22 AS col1
----
-814

onlyif mysql # aggregate syntax: 
query II rowsort label-3335
SELECT ALL + 30 * 41 * + 43 AS col1, - SUM( DISTINCT - 87 ) AS col1
----
52890
87

skipif mysql # not compatible
query II rowsort label-3335
SELECT ALL + 30 * 41 * + 43 AS col1, - SUM ( DISTINCT - 87 ) AS col1
----
52890
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT + - 91 + - COUNT( * ) * 51 AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-3336
SELECT + - 91 + - COUNT ( * ) * 51 AS col0
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT ALL - MIN( ALL 33 ) - + + 54 + + CASE - 85 WHEN 85 THEN - 95 WHEN + - 45 THEN - 16 * - 32 - - COUNT( * ) WHEN + 98 * 68 + + 47 * 62 + + 11 THEN NULL ELSE + 44 END
----
-43

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL - MIN ( ALL 33 ) - + + 54 + + CASE - 85 WHEN 85 THEN - 95 WHEN + - 45 THEN - 16 * - 32 - - COUNT ( * ) WHEN + 98 * 68 + + 47 * 62 + + 11 THEN NULL ELSE + 44 END
----
-43

query II rowsort
SELECT DISTINCT 66 AS col2, - 13 AS col1
----
66
-13

query I rowsort
SELECT ALL - 5 - 89 AS col0
----
-94

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

skipif mysql # not compatible
query I rowsort label-3340
SELECT NULLIF ( 74, 67 + - - COUNT ( * ) )
----
74

query II rowsort
SELECT - + 97, + 57 AS col1
----
-97
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT - - 8 * - 12 * + COUNT( * ) - - 92 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3342
SELECT - - 8 * - 12 * + COUNT ( * ) - - 92 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT - 21 + 56 * SUM( + 29 ) col1
----
1603

skipif mysql # not compatible
query I rowsort label-3343
SELECT - 21 + 56 * SUM ( + 29 ) col1
----
1603

onlyif mysql # aggregate syntax: 
query II rowsort label-3344
SELECT + - COALESCE ( - + 22, + COUNT( * ) * - + 97, + - 80 - + ( - 52 ) ) * - 5 AS col1, + 53
----
-110
53

skipif mysql # not compatible
query II rowsort label-3344
SELECT + - COALESCE ( - + 22, + COUNT ( * ) * - + 97, + - 80 - + ( - 52 ) ) * - 5 AS col1, + 53
----
-110
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT SUM( + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3345
SELECT SUM ( + 79 ) AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3346
SELECT ALL 53 DIV + ( MIN( ALL - 86 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL 53 / + ( MIN ( ALL - 86 ) ) col2
----
0

query I rowsort
SELECT - 97 * + + 54 * + - 8 * - 10
----
-419040

query I rowsort
SELECT ALL - + 95 * 0
----
0

query I rowsort
SELECT ALL - - 78 * - 80
----
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ( - + COUNT( * ) ) * 30 * 30 + - 16 + - ( 80 ) AS col2
----
-996

skipif mysql # not compatible
query I rowsort label-3350
SELECT ( - + COUNT ( * ) ) * 30 * 30 + - 16 + - ( 80 ) AS col2
----
-996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3351
SELECT - - 7 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT - - 7 * + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 19 * 35 * - + 28 + + ( ( - 98 ) )
----
-18718

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT 53 * - + 29 - - + 20 + + 82 * - COUNT( * ) AS col2
----
-1599

skipif mysql # not compatible
query I rowsort label-3353
SELECT 53 * - + 29 - - + 20 + + 82 * - COUNT ( * ) AS col2
----
-1599

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL 5 * - + 83 * + COUNT( * ) + 69 * 51
----
3104

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL 5 * - + 83 * + COUNT ( * ) + 69 * 51
----
3104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3355
SELECT + ( - + CASE COUNT( * ) WHEN - + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + - SUM( + 24 ) THEN - + 14 ELSE + + COUNT( * ) END ) * + 34 * COUNT( * ) + 18 - - - NULLIF ( + + COUNT( * ), - 29 / + NULLIF ( 16, 82 + ( 41 + - 42 ) / + 72 ) + - COUNT( * ) ) + - COUNT( * ) * 36
----
-53

skipif mysql # not compatible
query I rowsort label-3355
SELECT + ( - + CASE COUNT ( * ) WHEN - + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + - SUM ( + 24 ) THEN - + 14 ELSE + + COUNT ( * ) END ) * + 34 * COUNT ( * ) + 18 - - - NULLIF ( + + COUNT ( * ), - 29 / + NULLIF ( 16, 82 + ( 41 + - 42 ) / + 72 ) + - COUNT ( * ) ) + - COUNT ( * ) * 36
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL - 59 * + + COUNT( * ) + - 7 * - - ( 2 ) * - 19 AS col2
----
207

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL - 59 * + + COUNT ( * ) + - 7 * - - ( 2 ) * - 19 AS col2
----
207

query I rowsort
SELECT - COALESCE ( + 83, - 86 ) * 77 * + ( - 34 )
----
217294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3358
SELECT DISTINCT + NULLIF ( + 21, + 75 * - CAST( - COUNT( * ) AS SIGNED ) + 98 * - 61 ) col0
----
21

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT + NULLIF ( + 21, + 75 * - CAST ( - COUNT ( * ) AS INTEGER ) + 98 * - 61 ) col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT 90 * + COUNT( + 24 ) + - 53 + + - COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3359
SELECT 90 * + COUNT ( + 24 ) + - 53 + + - COUNT ( * ) AS col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3360
SELECT ALL + 99 DIV ( 31 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL + 99 / ( 31 ) AS col1
----
3

query I rowsort
SELECT DISTINCT 92 * + 90 + + - ( + 35 )
----
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT - ( - 18 ) * COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-3362
SELECT - ( - 18 ) * COUNT ( * )
----
18

query I rowsort
SELECT + 44 + + + 50 * 11 + - 85 - - 39 + 24 * - 72
----
-1180

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3364
SELECT DISTINCT COALESCE ( 96, 93 DIV - CAST( 59 AS SIGNED ) + 50, 71 ) * - 22 * - - 82 * + NULLIF ( - 19, + 72 ) AS col0
----
3290496

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT COALESCE ( 96, 93 / - CAST ( 59 AS INTEGER ) + 50, 71 ) * - 22 * - - 82 * + NULLIF ( - 19, + 72 ) AS col0
----
3290496

query I rowsort
SELECT - 61 * - + 45 + - 18 AS col1
----
2727

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3366
SELECT COUNT( * ) DIV 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3366
SELECT COUNT ( * ) / 16 AS col1
----
0

query I rowsort
SELECT ALL - 28 - - - 22 col1
----
-50

query I rowsort
SELECT ALL 95 - - ( 98 ) col0
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT SUM( ( + 64 ) ) + - 30 + 99
----
133

skipif mysql # not compatible
query I rowsort label-3369
SELECT SUM ( ( + 64 ) ) + - 30 + 99
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT CASE - + 92 WHEN - 39 * + - 90 * 58 + + + COUNT( * ) THEN - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT CASE - + 92 WHEN - 39 * + - 90 * 58 + + + COUNT ( * ) THEN - 78 END
----
NULL

query I rowsort
SELECT - 92 + 72 col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT + CASE - 48 WHEN CASE 50 WHEN - 73 THEN - 13 * + ( - 8 ) WHEN ( - 12 ) * - 50 + + - 1 * + 81 + + + 95 * 61 THEN NULLIF ( + 8, 4 ) * 4 END THEN - CASE NULLIF ( + ( ( AVG ( 20 ) ) ), 30 ) WHEN 75 THEN 37 END + - MIN( DISTINCT 96 ) WHEN 94 * + 44 THEN ( - 34 ) ELSE NULLIF ( 41, 78 + + 38 ) END
----
41

skipif mysql # not compatible
query I rowsort label-3372
SELECT + CASE - 48 WHEN CASE 50 WHEN - 73 THEN - 13 * + ( - 8 ) WHEN ( - 12 ) * - 50 + + - 1 * + 81 + + + 95 * 61 THEN NULLIF ( + 8, 4 ) * 4 END THEN - CASE NULLIF ( + ( ( AVG ( 20 ) ) ), 30 ) WHEN 75 THEN 37 END + - MIN ( DISTINCT 96 ) WHEN 94 * + 44 THEN ( - 34 ) ELSE NULLIF ( 41, 78 + + 38 ) END
----
41

query I rowsort
SELECT 57 * + 59 AS col0
----
3363

query I rowsort
SELECT + 14 * - + 61 + + + 6 - - 24 col1
----
-824

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT - SUM( + 17 ) + - 12 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-3375
SELECT - SUM ( + 17 ) + - 12 AS col2
----
-29

query I rowsort
SELECT DISTINCT + + 6 * + 35
----
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3377
SELECT + COUNT( * ) DIV - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3377
SELECT + COUNT ( * ) / - 94 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3378
SELECT + 22 DIV 72 + 8 + 14 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3378
SELECT + 22 / 72 + 8 + 14 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT DISTINCT + COUNT( * ) + - 29 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT + COUNT ( * ) + - 29 AS col2
----
-28

query I rowsort
SELECT ALL + 3 + + 35
----
38

query I rowsort
SELECT ALL 51 + 59
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ALL 27 + + 98 + + - COALESCE ( + + NULLIF ( - - 5, + ( - - 60 ) ), + 29 ) + + COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL 27 + + 98 + + - COALESCE ( + + NULLIF ( - - 5, + ( - - 60 ) ), + 29 ) + + COUNT ( * )
----
121

query I rowsort
SELECT ALL - 58 + + + 83
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT ALL + NULLIF ( COUNT( * ), + 33 ) * MIN( ALL + 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL + NULLIF ( COUNT ( * ), + 33 ) * MIN ( ALL + 29 ) AS col2
----
29

query II rowsort
SELECT ALL - 34 AS col1, + 97 AS col0
----
-34
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT DISTINCT + 13 * COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT + 13 * COUNT ( * ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL - COUNT( - ( + 92 ) ) - - 10 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - COUNT ( - ( + 92 ) ) - - 10 AS col1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3388
SELECT 36 AS col0, - ( + 16 ) + + + 66 * - + COALESCE ( - NULLIF ( 32, - MAX( DISTINCT 35 ) ), + + 10 ) + + - COUNT( * ) + - - 89 * + 68 AS col1
----
36
8147

skipif mysql # not compatible
query II rowsort label-3388
SELECT 36 AS col0, - ( + 16 ) + + + 66 * - + COALESCE ( - NULLIF ( 32, - MAX ( DISTINCT 35 ) ), + + 10 ) + + - COUNT ( * ) + - - 89 * + 68 AS col1
----
36
8147

query I rowsort
SELECT 95 - + ( + 53 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT COUNT( * ) * - COUNT( * ) * - + 93
----
93

skipif mysql # not compatible
query I rowsort label-3390
SELECT COUNT ( * ) * - COUNT ( * ) * - + 93
----
93

query II rowsort
SELECT DISTINCT - 82 AS col0, - 99 AS col1
----
-82
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3392
SELECT DISTINCT CAST( - COALESCE ( AVG ( ALL - ( - 24 ) ), + - 63 ) AS SIGNED ) DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT CAST ( - COALESCE ( AVG ( ALL - ( - 24 ) ), + - 63 ) AS INTEGER ) / 47
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3393
SELECT ALL + 60, CAST( NULL AS SIGNED ) + - 70 + 47 * 43 + + 97 * + - 60 AS col0
----
60
NULL

skipif mysql # not compatible
query II rowsort label-3393
SELECT ALL + 60, CAST ( NULL AS INTEGER ) + - 70 + 47 * 43 + + 97 * + - 60 AS col0
----
60
NULL

query I rowsort
SELECT - - ( + + 3 )
----
3

query I rowsort
SELECT 95 + 48
----
143

query I rowsort
SELECT + 90 * 68 AS col0
----
6120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3397
SELECT - 29 + 39 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT - 29 + 39 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 68 * + 40 AS col0
----
2720

query I rowsort
SELECT ALL - + 99 * - + 8 AS col0
----
792

query I rowsort
SELECT 64 + + 58 * - + 15 * - 18
----
15724

query I rowsort
SELECT ALL + - 87 * + + 14 * 30
----
-36540

query I rowsort
SELECT ( 65 ) + + + 72
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL MAX( ALL - + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL MAX ( ALL - + 95 )
----
-95

query I rowsort
SELECT - + ( + 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT - 15 * + - 25 * + COUNT( * ) + - + 28 * - COUNT( ALL + 60 )
----
403

skipif mysql # not compatible
query I rowsort label-3405
SELECT - 15 * + - 25 * + COUNT ( * ) + - + 28 * - COUNT ( ALL + 60 )
----
403

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3406
SELECT ALL - - 98, + ( + CAST( - + 85 AS SIGNED ) ) * - 90 * 0 * 44 AS col2
----
98
0

skipif mysql # not compatible
query II rowsort label-3406
SELECT ALL - - 98, + ( + CAST ( - + 85 AS INTEGER ) ) * - 90 * 0 * 44 AS col2
----
98
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT DISTINCT 45 DIV 25 * + - 14
----
-14

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT 45 / 25 * + - 14
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL ( COUNT( * ) ) * 49
----
49

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL ( COUNT ( * ) ) * 49
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3409
SELECT ALL COUNT( ALL - CAST( NULL AS SIGNED ) ) * 11
----
0

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT MIN( 40 )
----
40

skipif mysql # not compatible
query I rowsort label-3410
SELECT MIN ( 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT + ( COUNT( * ) ) * + - COUNT( * ) + + 68 + - NULLIF ( - + 23, + 79 ) + + 79 + + - 93 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3411
SELECT + ( COUNT ( * ) ) * + - COUNT ( * ) + + 68 + - NULLIF ( - + 23, + 79 ) + + 79 + + - 93 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT MIN( 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3412
SELECT MIN ( 23 ) AS col1
----
23

query II rowsort
SELECT ALL + 53, ( - NULLIF ( + 23, + 19 * 7 ) ) AS col2
----
53
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT SUM( ALL + 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-3414
SELECT SUM ( ALL + 76 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL 53 * + 52 - - COUNT( * ) * - + 47
----
2709

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL 53 * + 52 - - COUNT ( * ) * - + 47
----
2709

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT + 8 + + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3416
SELECT + 8 + + COUNT ( * ) AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3417
SELECT DISTINCT 32 DIV + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT 32 / + COUNT ( * ) AS col0
----
32

query I rowsort
SELECT - 2 * - 69
----
138

query I rowsort
SELECT DISTINCT + 55 * 60 * 68 * + 25 AS col1
----
5610000

onlyif mysql # aggregate syntax: 
query II rowsort label-3420
SELECT COUNT( ALL - + 81 ) * + - 66 + + 2 AS col1, 9
----
-64
9

skipif mysql # not compatible
query II rowsort label-3420
SELECT COUNT ( ALL - + 81 ) * + - 66 + + 2 AS col1, 9
----
-64
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL + - 39 * + - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL + - 39 * + - COUNT ( * )
----
39

query I rowsort
SELECT - 74 + - 17 + + 27
----
-64

query II rowsort
SELECT - 13 AS col1, - 92
----
-13
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3424
SELECT ALL COALESCE ( + 24, + 15 * - CAST( - - CAST( + - 55 AS SIGNED ) AS SIGNED ) + - COUNT( * ) + 93 * + COALESCE ( - - 26, + - 79 DIV - - 53, 47 * - 65 + COUNT( * ) + 81 ) + MAX( DISTINCT 62 ), SUM( 79 ) )
----
24

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL COALESCE ( + 24, + 15 * - CAST ( - - CAST ( + - 55 AS INTEGER ) AS INTEGER ) + - COUNT ( * ) + 93 * + COALESCE ( - - 26, + - 79 / - - 53, 47 * - 65 + COUNT ( * ) + 81 ) + MAX ( DISTINCT 62 ), SUM ( 79 ) )
----
24

query I rowsort
SELECT ALL + + 34 + - - 87 AS col1
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-3426
SELECT ALL - 75 + + 42 + + SUM( ALL 9 ) AS col2, 2 + 45 AS col0
----
-24
47

skipif mysql # not compatible
query II rowsort label-3426
SELECT ALL - 75 + + 42 + + SUM ( ALL 9 ) AS col2, 2 + 45 AS col0
----
-24
47

query I rowsort
SELECT DISTINCT - 63 + + 91 AS col2
----
28

onlyif mysql # aggregate syntax: 
query III rowsort label-3428
SELECT 19 AS col0, + ( ( 5 ) ) AS col0, MAX( - + 16 ) AS col0
----
19
5
-16

skipif mysql # not compatible
query III rowsort label-3428
SELECT 19 AS col0, + ( ( 5 ) ) AS col0, MAX ( - + 16 ) AS col0
----
19
5
-16

query I rowsort
SELECT ALL - 30 + - 33
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-3430
SELECT DISTINCT COUNT( * ), + 95 AS col1
----
1
95

skipif mysql # not compatible
query II rowsort label-3430
SELECT DISTINCT COUNT ( * ), + 95 AS col1
----
1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT - MAX( - 25 )
----
25

skipif mysql # not compatible
query I rowsort label-3431
SELECT - MAX ( - 25 )
----
25

query II rowsort
SELECT ALL 93 AS col1, - 17
----
93
-17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3433
SELECT - ( + - 60 ) * CAST( NULL AS DECIMAL ) * - 28 - - 1 + + MIN( - + 83 ) * - COALESCE ( 99, + + 29 + + 90, 39 * - 27, - - 48 + COUNT( * ) ) * - 3 * ( + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT - ( + - 60 ) * CAST ( NULL AS REAL ) * - 28 - - 1 + + MIN ( - + 83 ) * - COALESCE ( 99, + + 29 + + 90, 39 * - 27, - - 48 + COUNT ( * ) ) * - 3 * ( + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 85 * 51
----
-4335

query I rowsort
SELECT ALL + 31 * - - 74 * + - 85
----
-194990

query I rowsort
SELECT ALL - 76 - + - 60 col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3437
SELECT - ( 43 ) + 0 + + - CASE - 96 WHEN + 3 THEN NULL ELSE + COUNT( * ) * + 49 + + + COUNT( * ) END + + 40 - - 67 * + 29 + + + 54 * - 73 * - + 41 AS col0, - 35 AS col2
----
163512
-35

skipif mysql # not compatible
query II rowsort label-3437
SELECT - ( 43 ) + 0 + + - CASE - 96 WHEN + 3 THEN NULL ELSE + COUNT ( * ) * + 49 + + + COUNT ( * ) END + + 40 - - 67 * + 29 + + + 54 * - 73 * - + 41 AS col0, - 35 AS col2
----
163512
-35

query I rowsort
SELECT + 51 * 76 AS col0
----
3876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3439
SELECT - 31 DIV - COUNT( * ) + + 4 + - 46 * - 41
----
1921

skipif mysql # not compatible
query I rowsort label-3439
SELECT - 31 / - COUNT ( * ) + + 4 + - 46 * - 41
----
1921

query II rowsort
SELECT + 44 + + 1 AS col2, 46
----
45
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3441
SELECT - 15 * 82 * + NULLIF ( 6, - CAST( 61 AS DECIMAL ) * 87 + 62 ) col2
----
-7380

skipif mysql # not compatible
query I rowsort label-3441
SELECT - 15 * 82 * + NULLIF ( 6, - CAST ( 61 AS REAL ) * 87 + 62 ) col2
----
-7380

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT + 21 * - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-3442
SELECT + 21 * - COUNT ( * )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3443
SELECT ALL + COALESCE ( - 7, - 89 * + 44 + - 84, - ( + CAST( NULL AS SIGNED ) ) + - + 19 )
----
-7

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL + COALESCE ( - 7, - 89 * + 44 + - 84, - ( + CAST ( NULL AS INTEGER ) ) + - + 19 )
----
-7

query I rowsort
SELECT ALL 79 * 37 AS col1
----
2923

query I rowsort
SELECT ALL 91 * + 12 AS col1
----
1092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3446
SELECT ( + COALESCE ( + - 51, 0 + - 10 + 90 DIV + 82 * + 3, - COUNT( * ) ) ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3446
SELECT ( + COALESCE ( + - 51, 0 + - 10 + 90 / + 82 * + 3, - COUNT ( * ) ) ) AS col0
----
-51

query I rowsort
SELECT + 49 * 73 * + NULLIF ( + 68, + 95 + + CASE 44 WHEN - 72 * + 50 + + ( + + 12 ) + - - 96 + 76 THEN - 96 ELSE NULL END )
----
243236

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT CASE + - COUNT( * ) WHEN 99 THEN + - COUNT( * ) WHEN COUNT( * ) + + - NULLIF ( - 81, - 77 ) + CASE ( - - 95 ) WHEN - 36 - + 81 * + COUNT( + 19 ) / - + 22 THEN - 81 ELSE NULL END THEN - NULLIF ( 99, CASE + COUNT( * ) WHEN + 43 + - SUM( 72 ) THEN + COUNT( * ) * + ( - COUNT( * ) ) END + - 25 ) * + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT CASE + - COUNT ( * ) WHEN 99 THEN + - COUNT ( * ) WHEN COUNT ( * ) + + - NULLIF ( - 81, - 77 ) + CASE ( - - 95 ) WHEN - 36 - + 81 * + COUNT ( + 19 ) / - + 22 THEN - 81 ELSE NULL END THEN - NULLIF ( 99, CASE + COUNT ( * ) WHEN + 43 + - SUM ( 72 ) THEN + COUNT ( * ) * + ( - COUNT ( * ) ) END + - 25 ) * + 88 END
----
NULL

query I rowsort
SELECT + ( + + 64 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3450
SELECT ALL - 81 * - 99 * - NULLIF ( COUNT( * ), COUNT( * ) - COUNT( * ) + + 79 * ( - - 20 ) ) + - - 98 AS col2, - 90 - + - 88 AS col0
----
-7921
-2

skipif mysql # not compatible
query II rowsort label-3450
SELECT ALL - 81 * - 99 * - NULLIF ( COUNT ( * ), COUNT ( * ) - COUNT ( * ) + + 79 * ( - - 20 ) ) + - - 98 AS col2, - 90 - + - 88 AS col0
----
-7921
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3451
SELECT ALL ( - 36 ) * + - COUNT( * ) + - 5 + + CAST( NULL AS SIGNED ) + + 91 * + CASE - COUNT( * ) WHEN - 63 * + + CASE - - COUNT( ALL + 0 ) WHEN 43 THEN NULL WHEN - 16 + COUNT( * ) THEN + ( + 16 ) END + 57 / + 11 THEN COUNT( 26 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL ( - 36 ) * + - COUNT ( * ) + - 5 + + CAST ( NULL AS INTEGER ) + + 91 * + CASE - COUNT ( * ) WHEN - 63 * + + CASE - - COUNT ( ALL + 0 ) WHEN 43 THEN NULL WHEN - 16 + COUNT ( * ) THEN + ( + 16 ) END + 57 / + 11 THEN COUNT ( 26 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3452
SELECT + - 31 DIV + 26 AS col0, COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-3452
SELECT + - 31 / + 26 AS col0, COUNT ( * ) AS col1
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3453
SELECT ALL + 52 * + CASE ( - + 8 ) WHEN + 29 THEN - CASE + ( - 23 ) WHEN 58 THEN COUNT( * ) ELSE NULL END + + 41 WHEN - + 80 THEN NULL ELSE - NULLIF ( 81, + - 90 - - 3 ) * - - 54 END + - CASE - AVG ( ALL COALESCE ( CAST( 34 AS SIGNED ), - CAST( + 69 AS SIGNED ) + CAST( + 88 AS SIGNED ), - ( 15 ) ) ) WHEN + 92 THEN NULL WHEN + 34 * 29 THEN NULL ELSE - 56 END
----
-227392

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL + 52 * + CASE ( - + 8 ) WHEN + 29 THEN - CASE + ( - 23 ) WHEN 58 THEN COUNT ( * ) ELSE NULL END + + 41 WHEN - + 80 THEN NULL ELSE - NULLIF ( 81, + - 90 - - 3 ) * - - 54 END + - CASE - AVG ( ALL COALESCE ( CAST ( 34 AS INTEGER ), - CAST ( + 69 AS INTEGER ) + CAST ( + 88 AS INTEGER ), - ( 15 ) ) ) WHEN + 92 THEN NULL WHEN + 34 * 29 THEN NULL ELSE - 56 END
----
-227392

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT - NULLIF ( - - 53, - 17 + + MIN( DISTINCT - 29 ) * 30 ) * + 40 + - 76 * - + COUNT( * )
----
-2044

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT - NULLIF ( - - 53, - 17 + + MIN ( DISTINCT - 29 ) * 30 ) * + 40 + - 76 * - + COUNT ( * )
----
-2044

query I rowsort
SELECT - 61 - 94
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT + COUNT( * ) + 53 * - 90 col1
----
-4769

skipif mysql # not compatible
query I rowsort label-3456
SELECT + COUNT ( * ) + 53 * - 90 col1
----
-4769

query I rowsort
SELECT + - 79 + 71
----
-8

query I rowsort
SELECT ALL + + 57 + + + 41
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT - + 4 + + 12 + COUNT( * ) + 24 * 44 * - 24 AS col2
----
-25335

skipif mysql # not compatible
query I rowsort label-3459
SELECT - + 4 + + 12 + COUNT ( * ) + 24 * 44 * - 24 AS col2
----
-25335

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL CASE COUNT( * ) WHEN + + MAX( ALL COALESCE ( - + 86, - 29, - 97 ) ) THEN 10 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL CASE COUNT ( * ) WHEN + + MAX ( ALL COALESCE ( - + 86, - 29, - 97 ) ) THEN 10 END col1
----
NULL

query I rowsort
SELECT DISTINCT 15 * 85 AS col0
----
1275

query I rowsort
SELECT ALL + COALESCE ( 13, + + 50 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL + - 65 - 52 - - 79 + - 50 - + 23 / - 85 + - CASE + SUM( DISTINCT - 26 ) WHEN - 66 THEN - 42 END * 42 + + COUNT( * ) * - - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL + - 65 - 52 - - 79 + - 50 - + 23 / - 85 + - CASE + SUM ( DISTINCT - 26 ) WHEN - 66 THEN - 42 END * 42 + + COUNT ( * ) * - - 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3464
SELECT DISTINCT + COUNT( * ) - + 27 * - 68 AS col2, - 93 DIV + 58 + + 42
----
1837
41

skipif mysql # not compatible
query II rowsort label-3464
SELECT DISTINCT + COUNT ( * ) - + 27 * - 68 AS col2, - 93 / + 58 + + 42
----
1837
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT - MAX( + + 41 ) * 36 * + 87 * 69 - - 73 AS col2
----
-8860355

skipif mysql # not compatible
query I rowsort label-3465
SELECT - MAX ( + + 41 ) * 36 * + 87 * 69 - - 73 AS col2
----
-8860355

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT COUNT( * ) + + 27
----
28

skipif mysql # not compatible
query I rowsort label-3466
SELECT COUNT ( * ) + + 27
----
28

query II rowsort
SELECT ALL 98 AS col2, 84 AS col1
----
98
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3468
SELECT + 4, 20 * 4 * - 75 * - 69 - - CAST( NULL AS SIGNED ) AS col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-3468
SELECT + 4, 20 * 4 * - 75 * - 69 - - CAST ( NULL AS INTEGER ) AS col1
----
4
NULL

query I rowsort
SELECT DISTINCT + 55 * 86 AS col2
----
4730

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT - 44 * - 64 - - - MAX( - 40 ) * COUNT( * ) col1
----
2856

skipif mysql # not compatible
query I rowsort label-3470
SELECT - 44 * - 64 - - - MAX ( - 40 ) * COUNT ( * ) col1
----
2856

query I rowsort
SELECT DISTINCT - CASE - 5 WHEN - + 54 THEN - - 44 ELSE + - 47 END AS col2
----
47

query I rowsort
SELECT 4 + + 78
----
82

query I rowsort
SELECT 40 - - 8
----
48

query II rowsort
SELECT ALL - 75 AS col0, 35 * - 76
----
-75
-2660

onlyif mysql # aggregate syntax: 
query II rowsort label-3475
SELECT ALL - ( COUNT( - 47 ) ) col0, + 48 * - 26 AS col0
----
-1
-1248

skipif mysql # not compatible
query II rowsort label-3475
SELECT ALL - ( COUNT ( - 47 ) ) col0, + 48 * - 26 AS col0
----
-1
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT - COUNT( * ) * + MIN( 94 ) * 60 + + SUM( DISTINCT - 41 ) AS col1
----
-5681

skipif mysql # not compatible
query I rowsort label-3476
SELECT - COUNT ( * ) * + MIN ( 94 ) * 60 + + SUM ( DISTINCT - 41 ) AS col1
----
-5681

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3477
SELECT + 76, - 95 DIV - 26 + + - CAST( + 82 AS SIGNED ) * - 29 AS col1
----
76
2381

skipif mysql # not compatible
query II rowsort label-3477
SELECT + 76, - 95 / - 26 + + - CAST ( + 82 AS INTEGER ) * - 29 AS col1
----
76
2381

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT 23 * - COALESCE ( - COUNT( - 99 ), + + 44 * + + COUNT( * ) * - 55 )
----
23

skipif mysql # not compatible
query I rowsort label-3478
SELECT 23 * - COALESCE ( - COUNT ( - 99 ), + + 44 * + + COUNT ( * ) * - 55 )
----
23

query I rowsort
SELECT ALL 37 + 9
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3480
SELECT ( + + MAX( + NULLIF ( + + ( + 3 ), - - ( + 60 ) / + 36 + - - 91 + - 26 * 38 ) ) ) + + + NULLIF ( + CAST( NULL AS SIGNED ), + + 73 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT ( + + MAX ( + NULLIF ( + + ( + 3 ), - - ( + 60 ) / + 36 + - - 91 + - 26 * 38 ) ) ) + + + NULLIF ( + CAST ( NULL AS INTEGER ), + + 73 ) col2
----
NULL

query I rowsort
SELECT ALL - - ( 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL - COALESCE ( ( 29 ), - ( 5 ) ) + - COUNT( * ) + + 29 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL - COALESCE ( ( 29 ), - ( 5 ) ) + - COUNT ( * ) + + 29 col1
----
-1

query II rowsort
SELECT - 59 AS col1, 85 AS col1
----
-59
85

query I rowsort
SELECT - 75 * + 62 col1
----
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT COUNT( * ) + + + 58 + 47 * - 75 AS col0
----
-3466

skipif mysql # not compatible
query I rowsort label-3485
SELECT COUNT ( * ) + + + 58 + 47 * - 75 AS col0
----
-3466

query I rowsort
SELECT - - 80 col1
----
80

query II rowsort
SELECT DISTINCT - 68, + ( + 15 ) + - 19 - - 12 col2
----
-68
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL + COUNT( * ) + + + 41
----
42

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + COUNT ( * ) + + + 41
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT CAST( NULL AS SIGNED ) * - + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT CAST ( NULL AS INTEGER ) * - + 6 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT ALL - CAST( NULL AS SIGNED ) * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL - CAST ( NULL AS INTEGER ) * - 57
----
NULL

query I rowsort
SELECT + 25 * + 65 col1
----
1625

query I rowsort
SELECT DISTINCT + COALESCE ( 6, + 44 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3493
SELECT ALL ( + 31 ) - - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL ( + 31 ) - - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3494
SELECT 50 * COALESCE ( + CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) * - 6, - COALESCE ( + - 21, - COUNT( * ) ) * + 6 - - SUM( ALL 13 ) + + 50 * + 89 ) + 44 + + - 88 + + - 72 + + 33 AS col0
----
229367

skipif mysql # not compatible
query I rowsort label-3494
SELECT 50 * COALESCE ( + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) * - 6, - COALESCE ( + - 21, - COUNT ( * ) ) * + 6 - - SUM ( ALL 13 ) + + 50 * + 89 ) + 44 + + - 88 + + - 72 + + 33 AS col0
----
229367

query I rowsort
SELECT DISTINCT + 20 - - + ( + - 48 ) + + ( - 3 ) AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT - + ( + CAST( 34 AS SIGNED ) )
----
-34

skipif mysql # not compatible
query I rowsort label-3496
SELECT - + ( + CAST ( 34 AS INTEGER ) )
----
-34

query I rowsort
SELECT 24 * - 90 AS col2
----
-2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3498
SELECT ALL 15 * - CASE + CAST( NULL AS SIGNED ) WHEN - 35 THEN - + COALESCE ( - 59, + - 18 ) WHEN - 57 THEN NULL WHEN 46 THEN - 16 * + 79 + + - 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL 15 * - CASE + CAST ( NULL AS INTEGER ) WHEN - 35 THEN - + COALESCE ( - 59, + - 18 ) WHEN - 57 THEN NULL WHEN 46 THEN - 16 * + 79 + + - 70 END
----
NULL

query I rowsort
SELECT COALESCE ( - 7, - 64 ) * 50 AS col2
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT - CASE COUNT( * ) WHEN 54 THEN NULL WHEN + 70 THEN - + 25 ELSE - 93 END * - + 95 + - + 73 + + 71 * COUNT( * ) AS col0
----
-8837

skipif mysql # not compatible
query I rowsort label-3500
SELECT - CASE COUNT ( * ) WHEN 54 THEN NULL WHEN + 70 THEN - + 25 ELSE - 93 END * - + 95 + - + 73 + + 71 * COUNT ( * ) AS col0
----
-8837

query I rowsort
SELECT DISTINCT + 23 + + 99 + + 88 + 74 AS col0
----
284

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT 59 DIV 37
----
1

skipif mysql # not compatible
query I rowsort label-3502
SELECT 59 / 37
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT ALL + COUNT( * ) + + + 24
----
25

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL + COUNT ( * ) + + + 24
----
25

query I rowsort
SELECT 30 * - 20 AS col1
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL + 79 * + MAX( ALL 95 )
----
7505

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL + 79 * + MAX ( ALL 95 )
----
7505

onlyif mysql # DIV for integer division: 
query I rowsort label-3506
SELECT 93 DIV + 68 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3506
SELECT 93 / + 68 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL + - COUNT( * ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + - COUNT ( * ) + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT DISTINCT - COUNT( * ) + - CASE 53 WHEN + ( - 1 ) + - + 70 THEN 43 WHEN 4 / - + 84 THEN - + 5 WHEN 19 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT - COUNT ( * ) + - CASE 53 WHEN + ( - 1 ) + - + 70 THEN 43 WHEN 4 / - + 84 THEN - + 5 WHEN 19 THEN NULL END
----
NULL

query II rowsort
SELECT ALL + 78 + - 75 * - + 59 * 69 col2, 21 * - 52 col0
----
305403
-1092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3510
SELECT 72 / - - NULLIF ( + CAST( NULL AS SIGNED ), - 24 ) + + 85 + COUNT( * ) * - 13 * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT 72 / - - NULLIF ( + CAST ( NULL AS INTEGER ), - 24 ) + + 85 + COUNT ( * ) * - 13 * + 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3511
SELECT 16 / - 72 * - - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3511
SELECT 16 / - 72 * - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3512
SELECT MIN( - 64 ), + COUNT( ALL + ( - - 53 ) ) + 56 AS col1
----
-64
57

skipif mysql # not compatible
query II rowsort label-3512
SELECT MIN ( - 64 ), + COUNT ( ALL + ( - - 53 ) ) + 56 AS col1
----
-64
57

query I rowsort
SELECT ALL - ( + - NULLIF ( 22, - 55 ) )
----
22

query I rowsort
SELECT DISTINCT - + ( - 8 )
----
8

query I rowsort
SELECT ALL 49 * + 94 + + 22
----
4628

query I rowsort
SELECT 64 * 15 - + 70 col2
----
890

query I rowsort
SELECT ALL + 91 * - - 29
----
2639

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT + 89 * + 40 + - 62 + - ( - COUNT( + CASE - ( - 93 ) WHEN - 1 THEN 52 + + + 4 WHEN 64 THEN NULL ELSE NULL END ) ) - - - COUNT( * ) AS col0
----
3497

skipif mysql # not compatible
query I rowsort label-3518
SELECT + 89 * + 40 + - 62 + - ( - COUNT ( + CASE - ( - 93 ) WHEN - 1 THEN 52 + + + 4 WHEN 64 THEN NULL ELSE NULL END ) ) - - - COUNT ( * ) AS col0
----
3497

query I rowsort
SELECT DISTINCT - 58 * - 88 - + 90
----
5014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3520
SELECT - - 52 + + + 27, NULLIF ( + + CAST( NULL AS SIGNED ), - + COUNT( * ) ) / + + 49 - - 36 AS col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-3520
SELECT - - 52 + + + 27, NULLIF ( + + CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) / + + 49 - - 36 AS col1
----
79
NULL

query I rowsort
SELECT - ( - ( 96 ) ) AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3522
SELECT - CAST( NULL AS SIGNED ) / - COALESCE ( - - 37, - 12 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT - CAST ( NULL AS INTEGER ) / - COALESCE ( - - 37, - 12 ) AS col0
----
NULL

query I rowsort
SELECT + 45 * - - 98
----
4410

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT + COUNT( * ) + + SUM( + + 64 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3524
SELECT + COUNT ( * ) + + SUM ( + + 64 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT + COUNT( 74 ) * 30
----
30

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT + COUNT ( 74 ) * 30
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT + 9 DIV + + 24 * - 67
----
0

skipif mysql # not compatible
query I rowsort label-3526
SELECT + 9 / + + 24 * - 67
----
0

query I rowsort
SELECT ALL NULLIF ( - + 85, + 95 ) + - 48 AS col1
----
-133

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3528
SELECT ALL - CASE 80 WHEN 5 * - + 72 + 7 THEN 46 WHEN + CAST( - + 5 AS SIGNED ) THEN + 52 * ( + - 46 ) ELSE - 91 * 29 DIV - 29 END * 66
----
-6006

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL - CASE 80 WHEN 5 * - + 72 + 7 THEN 46 WHEN + CAST ( - + 5 AS INTEGER ) THEN + 52 * ( + - 46 ) ELSE - 91 * 29 / - 29 END * 66
----
-6006

onlyif mysql # DIV for integer division: 
query I rowsort label-3529
SELECT ALL 68 DIV 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL 68 / 84 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3530
SELECT + 73 DIV + + 59
----
1

skipif mysql # not compatible
query I rowsort label-3530
SELECT + 73 / + + 59
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3531
SELECT + 79 * + CAST( NULL AS SIGNED ) / - 63 AS col0, 43 AS col0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-3531
SELECT + 79 * + CAST ( NULL AS INTEGER ) / - 63 AS col0, 43 AS col0
----
NULL
43

query I rowsort
SELECT + 38 + - + 84 * 46
----
-3826

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT + SUM( + - 90 ) * - 32 + + 99 + - ( + 47 ) * + 92
----
-1345

skipif mysql # not compatible
query I rowsort label-3533
SELECT + SUM ( + - 90 ) * - 32 + + 99 + - ( + 47 ) * + 92
----
-1345

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL CASE - 88 WHEN 46 - - 49 / + 86 / + - COALESCE ( 48, - 9, - 64 ) THEN 71 + + 17 - + COUNT( * ) END + - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL CASE - 88 WHEN 46 - - 49 / + 86 / + - COALESCE ( 48, - 9, - 64 ) THEN 71 + + 17 - + COUNT ( * ) END + - 1 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3535
SELECT ALL 20 + + - 85 DIV 49
----
19

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL 20 + + - 85 / 49
----
19

query I rowsort
SELECT + 43 - 26 + + 99
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT DISTINCT 67 + - 3 / - CAST( NULL AS SIGNED ) - + - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT 67 + - 3 / - CAST ( NULL AS INTEGER ) - + - 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL - 98 * - COUNT( DISTINCT + + 67 ) + + 68 + + 68
----
234

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL - 98 * - COUNT ( DISTINCT + + 67 ) + + 68 + + 68
----
234

query I rowsort
SELECT ALL + 65 * - 28 + + 41
----
-1779

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3540
SELECT ALL - 32 * + 11 * 45 + COUNT( * ) DIV 67 * CASE - MAX( + 51 ) WHEN 52 * + 23 - COUNT( * ) THEN NULL ELSE + + 58 END
----
-15840

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL - 32 * + 11 * 45 + COUNT ( * ) / 67 * CASE - MAX ( + 51 ) WHEN 52 * + 23 - COUNT ( * ) THEN NULL ELSE + + 58 END
----
-15840

onlyif mysql # DIV for integer division: 
query II rowsort label-3541
SELECT + 96 DIV - + NULLIF ( - 60, - 80 ) - + + 85 AS col0, + 62 AS col2
----
-84
62

skipif mysql # not compatible
query II rowsort label-3541
SELECT + 96 / - + NULLIF ( - 60, - 80 ) - + + 85 AS col0, + 62 AS col2
----
-84
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT - COALESCE ( + COUNT( ALL + 10 ), - + 71 * 19, + SUM( + 95 ) + + 30, - - 88 * 59 + - 77 * + 51 * 85 + + 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-3542
SELECT - COALESCE ( + COUNT ( ALL + 10 ), - + 71 * 19, + SUM ( + 95 ) + + 30, - - 88 * 59 + - 77 * + 51 * 85 + + 54 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3543
SELECT ALL + SUM( + CAST( 25 AS SIGNED ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL + SUM ( + CAST ( 25 AS INTEGER ) ) AS col2
----
25

query I rowsort
SELECT - 17 * 39 + + 85 AS col2
----
-578

query II rowsort
SELECT - ( 7 ) - + ( - + 85 ) - + 8 col1, 80 AS col0
----
70
80

query I rowsort
SELECT - + 69 * + 61 AS col1
----
-4209

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3547
SELECT + COALESCE ( - 90, - 17 * - + 57 - 67 ), 64 + + CAST( NULL AS DECIMAL ) AS col0
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-3547
SELECT + COALESCE ( - 90, - 17 * - + 57 - 67 ), 64 + + CAST ( NULL AS REAL ) AS col0
----
-90
NULL

query I rowsort
SELECT - 27 + - - 13 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3549
SELECT ALL + 3 * - 22 * + 68 * - 75 * - - ( - ( + COUNT( * ) ) ) - 53 - + 41 * 92 * + 90 - 21 + CAST( 31 AS SIGNED ) * - COUNT( * ) + + + 50 * 25
----
-674935

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL + 3 * - 22 * + 68 * - 75 * - - ( - ( + COUNT ( * ) ) ) - 53 - + 41 * 92 * + 90 - 21 + CAST ( 31 AS INTEGER ) * - COUNT ( * ) + + + 50 * 25
----
-674935

onlyif mysql # DIV for integer division: 
query I rowsort label-3550
SELECT + NULLIF ( - + 32, + + 7 * + + 45 + - + 43 ) DIV - 88 + 59 + 3 + + ( + 37 ) * + - 78 AS col2
----
-2824

skipif mysql # not compatible
query I rowsort label-3550
SELECT + NULLIF ( - + 32, + + 7 * + + 45 + - + 43 ) / - 88 + 59 + 3 + + ( + 37 ) * + - 78 AS col2
----
-2824

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT - 93 + COUNT( * ) - MIN( + + 72 ) * 81 AS col1
----
-5924

skipif mysql # not compatible
query I rowsort label-3551
SELECT - 93 + COUNT ( * ) - MIN ( + + 72 ) * 81 AS col1
----
-5924

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT ALL + 74 * + COUNT( + + 30 ) - 8
----
66

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL + 74 * + COUNT ( + + 30 ) - 8
----
66

query I rowsort
SELECT + - 24 * + 46 + + ( 35 )
----
-1069

query II rowsort
SELECT ALL + 0 AS col2, 96 AS col2
----
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT DISTINCT - 53 * - - MAX( - - 5 ) AS col2
----
-265

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT - 53 * - - MAX ( - - 5 ) AS col2
----
-265

query I rowsort
SELECT - - 42 * - ( 96 ) AS col2
----
-4032

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3557
SELECT ALL + ( - CAST( + + 31 AS SIGNED ) ) AS col2, 7
----
-31
7

skipif mysql # not compatible
query II rowsort label-3557
SELECT ALL + ( - CAST ( + + 31 AS INTEGER ) ) AS col2, 7
----
-31
7

query I rowsort
SELECT ALL + 62 * + - 58 + - 34 AS col0
----
-3630

query I rowsort
SELECT - 43 + - 62
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT - MIN( - + 47 ) * ( - - 60 ) * - 99
----
-279180

skipif mysql # not compatible
query I rowsort label-3560
SELECT - MIN ( - + 47 ) * ( - - 60 ) * - 99
----
-279180

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT - 57 + COUNT( * ) * + 34 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-3561
SELECT - 57 + COUNT ( * ) * + 34 AS col1
----
-23

query II rowsort
SELECT + 1, - 14 AS col0
----
1
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3563
SELECT ALL CAST( 66 AS SIGNED ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL CAST ( 66 AS INTEGER ) AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT DISTINCT CAST( + 77 AS SIGNED ) + + - 4
----
73

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT CAST ( + 77 AS INTEGER ) + + - 4
----
73

query I rowsort
SELECT - 68 * + + 14 col2
----
-952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3566
SELECT ALL + SUM( DISTINCT 26 ) + - - COUNT( + + CAST( NULL AS SIGNED ) ) + + - COUNT( * ) * 29 AS col1, 55 AS col2
----
-3
55

skipif mysql # not compatible
query II rowsort label-3566
SELECT ALL + SUM ( DISTINCT 26 ) + - - COUNT ( + + CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) * 29 AS col1, 55 AS col2
----
-3
55

query I rowsort
SELECT DISTINCT ( - - 31 ) AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3568
SELECT ALL + NULLIF ( - + 97, + - ( ( AVG ( + ( - 62 ) ) ) ) * + 36 * - 43 ) + - - 18 DIV - + COUNT( 28 )
----
-115

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL + NULLIF ( - + 97, + - ( ( AVG ( + ( - 62 ) ) ) ) * + 36 * - 43 ) + - - 18 / - + COUNT ( 28 )
----
-115

query I rowsort
SELECT DISTINCT - 23 + + + 66 * 11 * - 97 AS col2
----
-70445

onlyif mysql # aggregate syntax: 
query II rowsort label-3570
SELECT - 33 * + + COUNT( * ) AS col2, + 47
----
-33
47

skipif mysql # not compatible
query II rowsort label-3570
SELECT - 33 * + + COUNT ( * ) AS col2, + 47
----
-33
47

query I rowsort
SELECT + 56 + ( + 54 )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT DISTINCT 62 + + MIN( DISTINCT + 52 )
----
114

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT 62 + + MIN ( DISTINCT + 52 )
----
114

query I rowsort
SELECT ALL COALESCE ( - 34, + 45 * - 60 ) + + 73
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT - MAX( + 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-3574
SELECT - MAX ( + 34 ) AS col1
----
-34

query I rowsort
SELECT - 2 - + 82 AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT ALL CAST( + 17 AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL CAST ( + 17 AS INTEGER ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-3577
SELECT 62 AS col2, COUNT( * ) AS col1
----
62
1

skipif mysql # not compatible
query II rowsort label-3577
SELECT 62 AS col2, COUNT ( * ) AS col1
----
62
1

query I rowsort
SELECT ALL 8 + - 38 AS col2
----
-30

query I rowsort
SELECT + 90 + - 91 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3580
SELECT - CAST( - 88 AS SIGNED ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-3580
SELECT - CAST ( - 88 AS INTEGER ) AS col0
----
88

query I rowsort
SELECT - CASE + 55 WHEN + 60 / - + 25 THEN - 65 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT + COUNT( * ) * + 74 * - 92
----
-6808

skipif mysql # not compatible
query I rowsort label-3582
SELECT + COUNT ( * ) * + 74 * - 92
----
-6808

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT + 81 DIV 39 + 65 + 10 col0
----
77

skipif mysql # not compatible
query I rowsort label-3583
SELECT + 81 / 39 + 65 + 10 col0
----
77

query I rowsort
SELECT ALL + COALESCE ( + 58, + + 56 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL 86 * - 71 * + CASE COUNT( * ) WHEN - + ( + + 5 ) THEN NULL ELSE - + 6 * - 51 END * + 8 * + 59 + + + MIN( - - 38 )
----
-881901754

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL 86 * - 71 * + CASE COUNT ( * ) WHEN - + ( + + 5 ) THEN NULL ELSE - + 6 * - 51 END * + 8 * + 59 + + + MIN ( - - 38 )
----
-881901754

query II rowsort
SELECT DISTINCT + 73 AS col2, + 11 AS col2
----
73
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT - MAX( DISTINCT 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-3587
SELECT - MAX ( DISTINCT 13 )
----
-13

query II rowsort
SELECT + + 48 AS col1, 1 AS col0
----
48
1

query I rowsort
SELECT ALL + NULLIF ( 7, - ( - 12 ) - + 66 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + ( - SUM( + 33 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3590
SELECT + ( - SUM ( + 33 ) ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL - 57 * - ( 73 ) * - + 95 - CASE 15 WHEN + 66 * + + MAX( ALL ( + 74 ) ) * + 59 + - - 30 / - COUNT( * ) + - 59 + + 1 + - + 44 THEN 26 + AVG ( DISTINCT - + 46 ) WHEN - - 8 * + 63 THEN NULL ELSE NULL END + - COUNT( * ) + + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL - 57 * - ( 73 ) * - + 95 - CASE 15 WHEN + 66 * + + MAX ( ALL ( + 74 ) ) * + 59 + - - 30 / - COUNT ( * ) + - 59 + + 1 + - + 44 THEN 26 + AVG ( DISTINCT - + 46 ) WHEN - - 8 * + 63 THEN NULL ELSE NULL END + - COUNT ( * ) + + 61 AS col1
----
NULL

query II rowsort
SELECT + 51, + 77 AS col1
----
51
77

query II rowsort
SELECT + NULLIF ( + - 3, + + 12 ) * - - 27 * 59 + - 1 - + 62, 36 * + 30 * + + 21 AS col0
----
-4842
22680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3594
SELECT - NULLIF ( + ( - + ( - ( + COUNT( * ) ) ) ), - + 74 * + AVG ( DISTINCT + 41 ) + 41 / - NULLIF ( + ( + ( + ( - 44 ) ) ), + + 79 ) + 11 / + 95 ) / + COALESCE ( 60, - 25 * - 65, 36 * 2 ) * - 9 + + ( 55 ) + ( + CASE 19 WHEN 30 THEN 72 WHEN 73 THEN 74 + ( + 76 ) WHEN 4 + + 17 THEN 61 * + CAST( - 64 * + 69 AS SIGNED ) END + 12 ) * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT - NULLIF ( + ( - + ( - ( + COUNT ( * ) ) ) ), - + 74 * + AVG ( DISTINCT + 41 ) + 41 / - NULLIF ( + ( + ( + ( - 44 ) ) ), + + 79 ) + 11 / + 95 ) / + COALESCE ( 60, - 25 * - 65, 36 * 2 ) * - 9 + + ( 55 ) + ( + CASE 19 WHEN 30 THEN 72 WHEN 73 THEN 74 + ( + 76 ) WHEN 4 + + 17 THEN 61 * + CAST ( - 64 * + 69 AS INTEGER ) END + 12 ) * 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT ALL - COUNT( DISTINCT + 38 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL - COUNT ( DISTINCT + 38 ) AS col2
----
-1

query II rowsort
SELECT + 35 AS col0, + ( 8 )
----
35
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3597
SELECT - 57 col2, - CAST( + ( 91 ) AS SIGNED ) * - 24 * + - 66
----
-57
-144144

skipif mysql # not compatible
query II rowsort label-3597
SELECT - 57 col2, - CAST ( + ( 91 ) AS INTEGER ) * - 24 * + - 66
----
-57
-144144

query I rowsort
SELECT + 94 - + 32 col1
----
62

query I rowsort
SELECT ALL + 50 + + 40 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3600
SELECT ALL - CAST( + ( + 30 ) AS SIGNED ) + - + COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL - CAST ( + ( + 30 ) AS INTEGER ) + - + COUNT ( * ) AS col0
----
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-3601
SELECT ALL - 91 + - 53 AS col1, + 39 DIV - 38 + - - 81 AS col2
----
-144
80

skipif mysql # not compatible
query II rowsort label-3601
SELECT ALL - 91 + - 53 AS col1, + 39 / - 38 + - - 81 AS col2
----
-144
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3602
SELECT 55 * 77 + CASE + - 2 WHEN - - 67 * + + 82 THEN + SUM( + 93 ) WHEN - COALESCE ( - - 82, + 15 ) * + + 82 + - 65 - + + SUM( ALL - 13 ) THEN - + CAST( + COUNT( * ) AS DECIMAL ) END, - 12 + + ( + + 43 ) + 66 AS col2
----
NULL
97

skipif mysql # not compatible
query II rowsort label-3602
SELECT 55 * 77 + CASE + - 2 WHEN - - 67 * + + 82 THEN + SUM ( + 93 ) WHEN - COALESCE ( - - 82, + 15 ) * + + 82 + - 65 - + + SUM ( ALL - 13 ) THEN - + CAST ( + COUNT ( * ) AS REAL ) END, - 12 + + ( + + 43 ) + 66 AS col2
----
NULL
97

query I rowsort
SELECT 43 - 45 col1
----
-2

query I rowsort
SELECT 17 + + 88 + - 73
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT 55 * 49 - + COUNT( * ) AS col1
----
2694

skipif mysql # not compatible
query I rowsort label-3605
SELECT 55 * 49 - + COUNT ( * ) AS col1
----
2694

query I rowsort
SELECT ALL - 19 + 32
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT DISTINCT - COUNT( * ) + + 38 - 60
----
-23

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT - COUNT ( * ) + + 38 - 60
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT DISTINCT - 92 + - 11 + + - 50 * - MIN( - 9 ) AS col0
----
-553

skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT - 92 + - 11 + + - 50 * - MIN ( - 9 ) AS col0
----
-553

query I rowsort
SELECT 42 + - 30 + - 30 * + + 51 AS col1
----
-1518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3610
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) + 60 + + + COUNT( * ) * MIN( ( + + 9 ) ) + - 32 * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) + 60 + + + COUNT ( * ) * MIN ( ( + + 9 ) ) + - 32 * + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT DISTINCT 8 - + 90 + - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT 8 - + 90 + - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 32 * 88
----
2816

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3613
SELECT 39 + - 74 + + NULLIF ( + ( - - 2 ), + CAST( NULL AS DECIMAL ) + - - 53 ) AS col2, + 42 AS col2
----
-33
42

skipif mysql # not compatible
query II rowsort label-3613
SELECT 39 + - 74 + + NULLIF ( + ( - - 2 ), + CAST ( NULL AS REAL ) + - - 53 ) AS col2, + 42 AS col2
----
-33
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ALL - - MIN( DISTINCT - + 50 ) - + 36 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL - - MIN ( DISTINCT - + 50 ) - + 36 AS col0
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3615
SELECT MAX( - 90 ) * 18 * 56 DIV - + 96 AS col0
----
945

skipif mysql # not compatible
query I rowsort label-3615
SELECT MAX ( - 90 ) * 18 * 56 / - + 96 AS col0
----
945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3616
SELECT ALL MIN( ALL - 15 ), - CAST( NULL AS SIGNED ) AS col2
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-3616
SELECT ALL MIN ( ALL - 15 ), - CAST ( NULL AS INTEGER ) AS col2
----
-15
NULL

query I rowsort
SELECT 1 + - 69
----
-68

query I rowsort
SELECT DISTINCT - 19 - 31 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT ALL - - MAX( ALL - + 87 ) * + 8 / + 93 + CASE 69 WHEN + COUNT( * ) * 2 + - + COUNT( * ) THEN + + 16 * + 87 * COUNT( * ) + - - 84 ELSE NULL END * - - COUNT( * ) * - 55 * + 58 * + 72, + 44 AS col0
----
NULL
44

skipif mysql # not compatible
query II rowsort label-3619
SELECT ALL - - MAX ( ALL - + 87 ) * + 8 / + 93 + CASE 69 WHEN + COUNT ( * ) * 2 + - + COUNT ( * ) THEN + + 16 * + 87 * COUNT ( * ) + - - 84 ELSE NULL END * - - COUNT ( * ) * - 55 * + 58 * + 72, + 44 AS col0
----
NULL
44

query I rowsort
SELECT - 76 * + + 30
----
-2280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3621
SELECT + CAST( - 70 AS SIGNED ) DIV + - 21 - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3621
SELECT + CAST ( - 70 AS INTEGER ) / + - 21 - + COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-3622
SELECT - 3 DIV 42, 52 DIV + - 89 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-3622
SELECT - 3 / 42, 52 / + - 89 AS col2
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3623
SELECT + - 87 * 79 * - + 33 + + + 23 * + NULLIF ( - 64, COUNT( * ) ) + - 31 - - NULLIF ( - ( - + 13 ), - CAST( - 48 AS SIGNED ) / 46 + NULLIF ( 59, 61 + - 12 + - 8 + - + 67 ) )
----
225319

skipif mysql # not compatible
query I rowsort label-3623
SELECT + - 87 * 79 * - + 33 + + + 23 * + NULLIF ( - 64, COUNT ( * ) ) + - 31 - - NULLIF ( - ( - + 13 ), - CAST ( - 48 AS INTEGER ) / 46 + NULLIF ( 59, 61 + - 12 + - 8 + - + 67 ) )
----
225319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT 16 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT 16 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3625
SELECT ALL + COALESCE ( - 29, + 89 ) DIV - MAX( + - 11 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL + COALESCE ( - 29, + 89 ) / - MAX ( + - 11 ) AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3626
SELECT COUNT( * ) * - 30 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT COUNT ( * ) * - 30 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3627
SELECT + 74 * + NULLIF ( + 32, - 52 ) + - 15 * + + 39 * + + 90, COUNT( * ) * + 87 + + - SUM( + 3 ) AS col2
----
-50282
84

skipif mysql # not compatible
query II rowsort label-3627
SELECT + 74 * + NULLIF ( + 32, - 52 ) + - 15 * + + 39 * + + 90, COUNT ( * ) * + 87 + + - SUM ( + 3 ) AS col2
----
-50282
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3628
SELECT COUNT( * ) * - - 85 + 54 + - 3 + COALESCE ( + - ( + 5 ), + 90 * + COUNT( * ) - + 22 ) * + 94 * 13 col1, - 32 * + 35 AS col2
----
-5974
-1120

skipif mysql # not compatible
query II rowsort label-3628
SELECT COUNT ( * ) * - - 85 + 54 + - 3 + COALESCE ( + - ( + 5 ), + 90 * + COUNT ( * ) - + 22 ) * + 94 * 13 col1, - 32 * + 35 AS col2
----
-5974
-1120

query I rowsort
SELECT ( - + 17 ) + + + 19 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3630
SELECT - 92 + + 4 * + ( - 72 ) * - + 38 AS col0, 12 * - + COALESCE ( - COUNT( * ), + 21 + + - NULLIF ( 2, 49 ) + - 69 * 39, 9 * - COUNT( * ) )
----
10852
12

skipif mysql # not compatible
query II rowsort label-3630
SELECT - 92 + + 4 * + ( - 72 ) * - + 38 AS col0, 12 * - + COALESCE ( - COUNT ( * ), + 21 + + - NULLIF ( 2, 49 ) + - 69 * 39, 9 * - COUNT ( * ) )
----
10852
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL 61 + - COUNT( * ) * - 94 AS col1
----
155

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL 61 + - COUNT ( * ) * - 94 AS col1
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT ALL + + SUM( ALL + 63 ) + 97
----
160

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL + + SUM ( ALL + 63 ) + 97
----
160

query I rowsort
SELECT + - NULLIF ( + - 80, + + 40 ) AS col2
----
80

query II rowsort
SELECT ALL - 59 AS col0, + 75 AS col2
----
-59
75

query I rowsort
SELECT ALL 51 + - 88 - + 88 * + 0 * 70 * 69
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3636
SELECT 98 * + ( + 14 ) AS col0, ( - + ( + 18 ) ) col1, 2 + - 89 * + 47 * - ( - NULLIF ( - - COUNT( * ), - - CASE - 14 WHEN - 58 THEN NULL ELSE + 27 END ) ) * + 76 * + - 42 - - - 23 - - 29 * - CASE - + 19 WHEN 90 - 55 THEN CAST( NULL AS SIGNED ) / COUNT( * ) - - ( - 7 - 28 ) WHEN - 66 + 72 THEN COUNT( * ) ELSE NULL END * + 65 AS col1
----
1372
-18
NULL

skipif mysql # not compatible
query III rowsort label-3636
SELECT 98 * + ( + 14 ) AS col0, ( - + ( + 18 ) ) col1, 2 + - 89 * + 47 * - ( - NULLIF ( - - COUNT ( * ), - - CASE - 14 WHEN - 58 THEN NULL ELSE + 27 END ) ) * + 76 * + - 42 - - - 23 - - 29 * - CASE - + 19 WHEN 90 - 55 THEN CAST ( NULL AS INTEGER ) / COUNT ( * ) - - ( - 7 - 28 ) WHEN - 66 + 72 THEN COUNT ( * ) ELSE NULL END * + 65 AS col1
----
1372
-18
NULL

query I rowsort
SELECT 50 * - 70 + 42
----
-3458

query I rowsort
SELECT 52 + - + 35
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT COUNT( * ) * - ( + NULLIF ( 97, - ( + 49 ) + + + 9 + + - 17 + + 79 ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3639
SELECT COUNT ( * ) * - ( + NULLIF ( 97, - ( + 49 ) + + + 9 + + - 17 + + 79 ) ) AS col0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3640
SELECT ALL COALESCE ( + + 76, - - 43 ) DIV + 23
----
3

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL COALESCE ( + + 76, - - 43 ) / + 23
----
3

query II rowsort
SELECT DISTINCT 7 AS col2, + 6
----
7
6

query I rowsort
SELECT ALL - 88 - + 80
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT DISTINCT MAX( - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT MAX ( - 7 )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3644
SELECT ALL ( SUM( - 98 ) ) * + 36, 40 DIV - 5 AS col2
----
-3528
-8

skipif mysql # not compatible
query II rowsort label-3644
SELECT ALL ( SUM ( - 98 ) ) * + 36, 40 / - 5 AS col2
----
-3528
-8

query II rowsort
SELECT NULLIF ( 94, 1 * - - 45 + - 94 + + - 82 ) - - + 37 * + 53 AS col2, + 48 AS col2
----
2055
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3646
SELECT 68 DIV - 15 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3646
SELECT 68 / - 15 AS col0
----
-4

query I rowsort
SELECT ( - COALESCE ( + + 10, - - 94 + + 11 ) ) * - 96 AS col0
----
960

query I rowsort
SELECT 77 * + 17 AS col2
----
1309

query I rowsort
SELECT ALL - 88 * + 47
----
-4136

query I rowsort
SELECT 84 + + + 2 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT ALL MAX( - - 32 ) col2
----
32

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL MAX ( - - 32 ) col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3652
SELECT CAST( + 43 AS SIGNED ) - + 16 - - - 71 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-3652
SELECT CAST ( + 43 AS INTEGER ) - + 16 - - - 71 AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3653
SELECT ALL 7 * - + CAST( NULL AS SIGNED ) - + 94 * - MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL 7 * - + CAST ( NULL AS INTEGER ) - + 94 * - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT - 12, 41 AS col1
----
-12
41

query I rowsort
SELECT + 51 - 35 AS col1
----
16

query I rowsort
SELECT - 73 * 40 AS col1
----
-2920

query I rowsort
SELECT - - 19 * - 70 * + 12
----
-15960

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT - - COUNT( * ) + + 52 + + 36
----
89

skipif mysql # not compatible
query I rowsort label-3658
SELECT - - COUNT ( * ) + + 52 + + 36
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT - MIN( + + 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3659
SELECT - MIN ( + + 64 ) AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3660
SELECT - + CAST( NULL AS SIGNED ) + + - COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT - + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT - - 80 - - ( + SUM( - 58 ) ) col2
----
22

skipif mysql # not compatible
query I rowsort label-3661
SELECT - - 80 - - ( + SUM ( - 58 ) ) col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT - - MIN( 29 ) * - COUNT( * ) * 20
----
-580

skipif mysql # not compatible
query I rowsort label-3662
SELECT - - MIN ( 29 ) * - COUNT ( * ) * 20
----
-580

query I rowsort
SELECT + - 63 * 4 AS col1
----
-252

query I rowsort
SELECT ALL - + 26 * 35 + + 65 + + 69
----
-776

onlyif mysql # aggregate syntax: 
query II rowsort label-3665
SELECT DISTINCT + - CASE - 89 WHEN + + 62 + + + 92 THEN + + 25 ELSE NULL END * - + 69 + MAX( - 30 ) + 43 * SUM( DISTINCT + 72 ) AS col0, 84 AS col2
----
NULL
84

skipif mysql # not compatible
query II rowsort label-3665
SELECT DISTINCT + - CASE - 89 WHEN + + 62 + + + 92 THEN + + 25 ELSE NULL END * - + 69 + MAX ( - 30 ) + 43 * SUM ( DISTINCT + 72 ) AS col0, 84 AS col2
----
NULL
84

query I rowsort
SELECT ALL + 14 * + + 15 AS col1
----
210

query I rowsort
SELECT - 76 * 2
----
-152

query I rowsort
SELECT DISTINCT + - ( - + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT ALL + - COUNT( * ) * - + 46 + + COUNT( * ) * 92 + - + 39
----
99

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL + - COUNT ( * ) * - + 46 + + COUNT ( * ) * 92 + - + 39
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-3670
SELECT DISTINCT COUNT( * ) DIV + CAST( + - 59 AS SIGNED ) AS col1, - 56 * + CAST( NULL AS DECIMAL ) + 96 + 99 * + - 98 * 95 * + SUM( - 1 ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3670
SELECT DISTINCT COUNT ( * ) / + CAST ( + - 59 AS INTEGER ) AS col1, - 56 * + CAST ( NULL AS REAL ) + 96 + 99 * + - 98 * 95 * + SUM ( - 1 ) AS col1
----
0
NULL

query I rowsort
SELECT + - 37 * - 50 + 29
----
1879

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3672
SELECT ALL + ( - - COUNT( * ) ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL + ( - - COUNT ( * ) ) / COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT - 33 + + COUNT( * ) * + - 39
----
-72

skipif mysql # not compatible
query I rowsort label-3673
SELECT - 33 + + COUNT ( * ) * + - 39
----
-72

query II rowsort
SELECT + 39 * + - 46 AS col0, 46 + 46
----
-1794
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3675
SELECT DISTINCT ( + 66 ) DIV - 10
----
-6

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT ( + 66 ) / - 10
----
-6

query II rowsort
SELECT - 27 - 91, + 1 AS col2
----
-118
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT MIN( DISTINCT CASE + 72 WHEN + 96 * + 72 THEN NULL WHEN 12 * - - 42 THEN + + 8 + - 85 * - + CAST( + + 15 AS SIGNED ) WHEN 19 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3677
SELECT MIN ( DISTINCT CASE + 72 WHEN + 96 * + 72 THEN NULL WHEN 12 * - - 42 THEN + + 8 + - 85 * - + CAST ( + + 15 AS INTEGER ) WHEN 19 THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT - CAST( NULL AS SIGNED ) * 47 + + 6 / + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT - CAST ( NULL AS INTEGER ) * 47 + + 6 / + 44 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT DISTINCT COUNT( * ) * 87 * - + 12
----
-1044

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT COUNT ( * ) * 87 * - + 12
----
-1044

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT + 56 + + + NULLIF ( - + SUM( DISTINCT 58 ), COUNT( * ) / + 50 * - + 81 * 72 + ( 58 ) + 37 )
----
-2

skipif mysql # not compatible
query I rowsort label-3680
SELECT + 56 + + + NULLIF ( - + SUM ( DISTINCT 58 ), COUNT ( * ) / + 50 * - + 81 * 72 + ( 58 ) + 37 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT + 20 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT + 20 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3682
SELECT + COALESCE ( - - 9, + 31 + 8 DIV + 12, + COUNT( * ) * 52 + - - COUNT( * ) + - ( + - ( + + COUNT( * ) ) ) * + CAST( + + 95 AS SIGNED ) DIV + 57 ) - 48 - COUNT( * ) * - + 95 * 0 + - 48 * - COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3682
SELECT + COALESCE ( - - 9, + 31 + 8 / + 12, + COUNT ( * ) * 52 + - - COUNT ( * ) + - ( + - ( + + COUNT ( * ) ) ) * + CAST ( + + 95 AS INTEGER ) / + 57 ) - 48 - COUNT ( * ) * - + 95 * 0 + - 48 * - COUNT ( * ) AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3683
SELECT + COUNT( * ) * 68 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT + COUNT ( * ) * 68 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3684
SELECT + COALESCE ( - 13, + 44, - COUNT( * ) + + CAST( NULL AS SIGNED ) ) * + CASE 58 WHEN 63 * + + ( 77 ) THEN - 15 END + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT + COALESCE ( - 13, + 44, - COUNT ( * ) + + CAST ( NULL AS INTEGER ) ) * + CASE 58 WHEN 63 * + + ( 77 ) THEN - 15 END + 58 AS col1
----
NULL

query I rowsort
SELECT 29 * + 93 + + - 83
----
2614

onlyif mysql # DIV for integer division: 
query I rowsort label-3686
SELECT ALL 84 DIV 31
----
2

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL 84 / 31
----
2

query I rowsort
SELECT + 66 + - 61 col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3688
SELECT DISTINCT 9 DIV - - 5 + + ( 92 ), COUNT( * ) * + MIN( DISTINCT - 9 ) AS col2
----
93
-9

skipif mysql # not compatible
query II rowsort label-3688
SELECT DISTINCT 9 / - - 5 + + ( 92 ), COUNT ( * ) * + MIN ( DISTINCT - 9 ) AS col2
----
93
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3689
SELECT - + CASE - 46 WHEN - + COUNT( - 5 ) * - 28 THEN NULL ELSE - 66 + + 11 * + 39 END DIV - 5 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-3689
SELECT - + CASE - 46 WHEN - + COUNT ( - 5 ) * - 28 THEN NULL ELSE - 66 + + 11 * + 39 END / - 5 AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3690
SELECT + + ( - 96 ) + - 63 - COALESCE ( - + CASE - + 94 WHEN + + 31 THEN + 86 / + 22 + - + 86 + - 87 + + 79 + - + COALESCE ( + - MIN( - - 55 ), - ( MIN( 11 ) ) * 36 - + 58 ) END, - 96 * + + 1 * + 29 ) + 50 * - CAST( NULL AS SIGNED ) * 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT + + ( - 96 ) + - 63 - COALESCE ( - + CASE - + 94 WHEN + + 31 THEN + 86 / + 22 + - + 86 + - 87 + + 79 + - + COALESCE ( + - MIN ( - - 55 ), - ( MIN ( 11 ) ) * 36 - + 58 ) END, - 96 * + + 1 * + 29 ) + 50 * - CAST ( NULL AS INTEGER ) * 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT - 67 * - COUNT( - 39 )
----
67

skipif mysql # not compatible
query I rowsort label-3691
SELECT - 67 * - COUNT ( - 39 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3692
SELECT DISTINCT 36 * CAST( NULL AS SIGNED ) + 32 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT 36 * CAST ( NULL AS INTEGER ) + 32 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3693
SELECT + - 73 + CASE 67 WHEN - + 72 THEN + 46 * + 75 WHEN + 55 THEN 15 * - COUNT( * ) - + 72 + 91 + - 52 + + + 60 + 54 * 62 * + - 45 ELSE ( + 93 ) * - ( - 77 ) + + 71 + + 60 * - 1 END + 87 DIV 49 AS col2
----
7100

skipif mysql # not compatible
query I rowsort label-3693
SELECT + - 73 + CASE 67 WHEN - + 72 THEN + 46 * + 75 WHEN + 55 THEN 15 * - COUNT ( * ) - + 72 + 91 + - 52 + + + 60 + 54 * 62 * + - 45 ELSE ( + 93 ) * - ( - 77 ) + + 71 + + 60 * - 1 END + 87 / 49 AS col2
----
7100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3694
SELECT - + ( - 40 ) + + 67 * - 36 - + ( COUNT( * ) ) DIV + 5 AS col0
----
-2372

skipif mysql # not compatible
query I rowsort label-3694
SELECT - + ( - 40 ) + + 67 * - 36 - + ( COUNT ( * ) ) / + 5 AS col0
----
-2372

query I rowsort
SELECT DISTINCT - - 49 + + - 61 + + 11
----
-1

query I rowsort
SELECT ALL - 87 + - - 32 * - - 18 * - 14 AS col0
----
-8151

query I rowsort
SELECT ALL + + 99 + + + 71 AS col2
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT - 47 + - COALESCE ( 25, - COALESCE ( - 1, - 18 + + - 21 - 92, + - ( 23 ) * 94 ) DIV 68 DIV - - 52 - - + 86 * 67 + 31 + + 61 DIV + 36 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-3698
SELECT - 47 + - COALESCE ( 25, - COALESCE ( - 1, - 18 + + - 21 - 92, + - ( 23 ) * 94 ) / 68 / - - 52 - - + 86 * 67 + 31 + + 61 / + 36 ) AS col0
----
-72

query I rowsort
SELECT ALL + 1 + 23 AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3700
SELECT ALL - - ( - CAST( NULL AS SIGNED ) ) / - - ( - COUNT( * ) ) + - - 94 - 5 + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL - - ( - CAST ( NULL AS INTEGER ) ) / - - ( - COUNT ( * ) ) + - - 94 - 5 + + 96
----
NULL

query I rowsort
SELECT ALL + - COALESCE ( + - 14, + + 47 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3702
SELECT - COUNT( * ) / - 44 + - 86 + + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT - COUNT ( * ) / - 44 + - 86 + + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3703
SELECT ALL + 21 DIV + MAX( ALL + + 39 ) DIV + + COUNT( * ) + + - 51 * 36 + + SUM( ALL + 0 )
----
-1836

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL + 21 / + MAX ( ALL + + 39 ) / + + COUNT ( * ) + + - 51 * 36 + + SUM ( ALL + 0 )
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT + - 71 + MAX( - 11 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-3704
SELECT + - 71 + MAX ( - 11 ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ALL + - SUM( ALL + 52 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL + - SUM ( ALL + 52 ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL + + 32 * 77 * + CASE - 1 WHEN CASE - 86 WHEN 13 - - - 33 THEN COUNT( * ) ELSE - 29 END THEN NULL ELSE 2 END AS col1
----
4928

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL + + 32 * 77 * + CASE - 1 WHEN CASE - 86 WHEN 13 - - - 33 THEN COUNT ( * ) ELSE - 29 END THEN NULL ELSE 2 END AS col1
----
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT - 10 + - COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3707
SELECT - 10 + - COUNT ( * ) AS col1
----
-11

query II rowsort
SELECT 87 * ( - 37 ) + + ( + 82 ), 84 AS col1
----
-3137
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3709
SELECT ALL + CAST( + - 23 AS SIGNED ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL + CAST ( + - 23 AS INTEGER ) AS col0
----
-23

query I rowsort
SELECT DISTINCT - 61 * + + 12 - - 25 + + 8 * + 44 AS col2
----
-355

query I rowsort
SELECT ( - CASE 2 WHEN + 34 THEN 61 END )
----
NULL

query I rowsort
SELECT + 3 * + 53 + - 94
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT COALESCE ( + + SUM( ALL - 13 ), + + 29 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3713
SELECT COALESCE ( + + SUM ( ALL - 13 ), + + 29 ) AS col0
----
-13

query I rowsort
SELECT + 26 + - - 18 AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT - 38 DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3715
SELECT - 38 / - 75 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT + 43 * - COUNT( * ) * - 22
----
946

skipif mysql # not compatible
query I rowsort label-3716
SELECT + 43 * - COUNT ( * ) * - 22
----
946

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT DISTINCT 49 DIV - 10
----
-4

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT 49 / - 10
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT + ( - + 62 ) * + + 41 * + COUNT( + + 76 )
----
-2542

skipif mysql # not compatible
query I rowsort label-3718
SELECT + ( - + 62 ) * + + 41 * + COUNT ( + + 76 )
----
-2542

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT ALL MAX( DISTINCT - 61 ) * + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL MAX ( DISTINCT - 61 ) * + COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT + ( - SUM( + 3 ) ) * + 18
----
-54

skipif mysql # not compatible
query I rowsort label-3720
SELECT + ( - SUM ( + 3 ) ) * + 18
----
-54

query I rowsort
SELECT DISTINCT 7 * + 57 * + 32 AS col2
----
12768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3722
SELECT - CAST( 98 AS SIGNED ) * - 12 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3722
SELECT - CAST ( 98 AS INTEGER ) * - 12 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 16 + + + 1
----
17

query I rowsort
SELECT ALL 52 + + - 32 * - 58
----
1908

query I rowsort
SELECT + 31 * + 85 AS col2
----
2635

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT - 35 - 64 DIV + - 42
----
-34

skipif mysql # not compatible
query I rowsort label-3726
SELECT - 35 - 64 / + - 42
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL - COALESCE ( - + NULLIF ( + - 89, + - 0 * - 71 * - 81 + + + 99 ), - 41 * - 49, + 96, - COALESCE ( + + COUNT( * ), - COUNT( * ), - ( 99 ) ) )
----
-89

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL - COALESCE ( - + NULLIF ( + - 89, + - 0 * - 71 * - 81 + + + 99 ), - 41 * - 49, + 96, - COALESCE ( + + COUNT ( * ), - COUNT ( * ), - ( 99 ) ) )
----
-89

query I rowsort
SELECT - + ( - + 83 ) AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT ALL + 56 + - CAST( 51 AS SIGNED ) * + 17
----
-811

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL + 56 + - CAST ( 51 AS INTEGER ) * + 17
----
-811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT ALL 28 / + - CAST( NULL AS SIGNED ) * + - ( + 71 ) / - 30 + + - 86 * - NULLIF ( - 70, 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL 28 / + - CAST ( NULL AS INTEGER ) * + - ( + 71 ) / - 30 + + - 86 * - NULLIF ( - 70, 2 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3731
SELECT ALL - + CAST( + 56 AS SIGNED ) + + 52 AS col2, 87
----
-4
87

skipif mysql # not compatible
query II rowsort label-3731
SELECT ALL - + CAST ( + 56 AS INTEGER ) + + 52 AS col2, 87
----
-4
87

query I rowsort
SELECT 86 * - 94 * 92
----
-743728

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3733
SELECT ALL - + 77, ( + COUNT( * ) ) * 1 DIV - 50 * 24 AS col1
----
-77
0

skipif mysql # not compatible
query II rowsort label-3733
SELECT ALL - + 77, ( + COUNT ( * ) ) * 1 / - 50 * 24 AS col1
----
-77
0

query I rowsort
SELECT + 47 * - 88
----
-4136

query I rowsort
SELECT 65 * + 13 * - 68
----
-57460

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT ALL + 71 * - 38 * - COUNT( * )
----
2698

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL + 71 * - 38 * - COUNT ( * )
----
2698

query I rowsort
SELECT ALL ( + 50 ) * 68
----
3400

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL - COUNT( DISTINCT 9 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL - COUNT ( DISTINCT 9 ) AS col2
----
-1

query I rowsort
SELECT 62 * 86
----
5332

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT 87 * 22 * + 39 * + COUNT( * ) AS col1
----
74646

skipif mysql # not compatible
query I rowsort label-3740
SELECT 87 * 22 * + 39 * + COUNT ( * ) AS col1
----
74646

query I rowsort
SELECT ALL - 29 * + ( 52 ) AS col2
----
-1508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3742
SELECT 93 DIV COALESCE ( + CAST( + MAX( DISTINCT + ( - 13 ) ) AS SIGNED ), - - MIN( - 77 ), + 35 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-3742
SELECT 93 / COALESCE ( + CAST ( + MAX ( DISTINCT + ( - 13 ) ) AS INTEGER ), - - MIN ( - 77 ), + 35 ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-3743
SELECT ALL - SUM( 20 ) AS col0, 50 * 78 AS col2
----
-20
3900

skipif mysql # not compatible
query II rowsort label-3743
SELECT ALL - SUM ( 20 ) AS col0, 50 * 78 AS col2
----
-20
3900

query I rowsort
SELECT ALL - ( - + 69 ) col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL - 3 + + COUNT( * ) * - + 46 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL - 3 + + COUNT ( * ) * - + 46 AS col0
----
-49

query I rowsort
SELECT ALL - 30 + + 88
----
58

query I rowsort
SELECT 86 + - + ( + 15 ) AS col2
----
71

query I rowsort
SELECT ALL + 67 + 64 * 72
----
4675

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT - MIN( ALL + - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-3749
SELECT - MIN ( ALL + - 26 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3750
SELECT CASE - 34 WHEN - ( - - CAST( - 9 AS SIGNED ) ) * + + 58 * - 63 * - + 3 + + 90 THEN NULL WHEN + ( + 61 ) * + 30 THEN + - ( - - SUM( ALL 82 ) ) WHEN + - 9 THEN - - 37 ELSE ( - COUNT( * ) ) DIV - 43 END DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-3750
SELECT CASE - 34 WHEN - ( - - CAST ( - 9 AS INTEGER ) ) * + + 58 * - 63 * - + 3 + + 90 THEN NULL WHEN + ( + 61 ) * + 30 THEN + - ( - - SUM ( ALL 82 ) ) WHEN + - 9 THEN - - 37 ELSE ( - COUNT ( * ) ) / - 43 END / - 25
----
0

query I rowsort
SELECT DISTINCT - - 95 + - - 93 * + COALESCE ( - 50, + 2 ) * - 68 + + 81 AS col1
----
316376

query I rowsort
SELECT - ( - + ( 70 ) )
----
70

query I rowsort
SELECT - NULLIF ( - 19, - 25 - - 13 + 69 + + 89 * + 38 * - 32 + - - 32 ) col0
----
19

query I rowsort
SELECT ALL + 45 + - 99
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL - MIN( + 33 ) + 61
----
28

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL - MIN ( + 33 ) + 61
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3756
SELECT ALL - + ( + 47 ) DIV + - COALESCE ( + 79, 40 * 59, - 51, + + 56 )
----
0

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - + ( + 47 ) / + - COALESCE ( + 79, 40 * 59, - 51, + + 56 )
----
0

query I rowsort
SELECT NULLIF ( - - ( + + 32 ), + 65 ) AS col2
----
32

query I rowsort
SELECT ALL + ( + 91 ) + - 69 * + 48
----
-3221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT DISTINCT + 63 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + 63 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT COALESCE ( - 2, + - 6 * - + 91, 79 * - 74 + + 62 - + COUNT( * ) ) * - 60 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-3760
SELECT COALESCE ( - 2, + - 6 * - + 91, 79 * - 74 + + 62 - + COUNT ( * ) ) * - 60 AS col1
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-3761
SELECT 28 AS col1, SUM( DISTINCT - 62 )
----
28
-62

skipif mysql # not compatible
query II rowsort label-3761
SELECT 28 AS col1, SUM ( DISTINCT - 62 )
----
28
-62

query II rowsort
SELECT ALL 99 AS col1, ( 29 ) - + 99 col2
----
99
-70

query I rowsort
SELECT + 9 + - 87 + - 62 col1
----
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3764
SELECT 65, + ( - - 53 ) DIV CAST( 80 AS SIGNED ) + - COUNT( * ) DIV + - 27 + + 18 DIV 21 + + + ( - 59 ) AS col0
----
65
-59

skipif mysql # not compatible
query II rowsort label-3764
SELECT 65, + ( - - 53 ) / CAST ( 80 AS INTEGER ) + - COUNT ( * ) / + - 27 + + 18 / 21 + + + ( - 59 ) AS col0
----
65
-59

query I rowsort
SELECT ALL - 44 - - 16
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT - ( + + COUNT( + + 81 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3766
SELECT - ( + + COUNT ( + + 81 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL CASE + 21 WHEN + ( - + 99 ) - - ( + ( 13 ) ) THEN 72 * + + NULLIF ( 45, + 52 ) + + 14 + - + MAX( - 47 ) + COUNT( * ) + - 57 ELSE + - 63 END AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL CASE + 21 WHEN + ( - + 99 ) - - ( + ( 13 ) ) THEN 72 * + + NULLIF ( 45, + 52 ) + + 14 + - + MAX ( - 47 ) + COUNT ( * ) + - 57 ELSE + - 63 END AS col0
----
-63

query II rowsort
SELECT DISTINCT + 93, 32 + - 1 - - 34 * 19 col1
----
93
677

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3769
SELECT 43 + 52 DIV + 9 DIV + - COUNT( * ) + - + 34 + + - SUM( ALL - - 1 ) * - 39 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-3769
SELECT 43 + 52 / + 9 / + - COUNT ( * ) + - + 34 + + - SUM ( ALL - - 1 ) * - 39 AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3770
SELECT + 52 * + 6 + + 46 + - 9 DIV + + 24 col1
----
358

skipif mysql # not compatible
query I rowsort label-3770
SELECT + 52 * + 6 + + 46 + - 9 / + + 24 col1
----
358

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT MAX( ALL + 77 ) * COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-3771
SELECT MAX ( ALL + 77 ) * COUNT ( * )
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3772
SELECT MIN( 32 ) / + CAST( NULL AS DECIMAL ) + + COUNT( * ) + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT MIN ( 32 ) / + CAST ( NULL AS REAL ) + + COUNT ( * ) + 13
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT 77 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3773
SELECT 77 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 32 * + + 6 * + 54
----
10368

onlyif mysql # DIV for integer division: 
query I rowsort label-3775
SELECT + 95 DIV - - 42 + 13
----
15

skipif mysql # not compatible
query I rowsort label-3775
SELECT + 95 / - - 42 + 13
----
15

query I rowsort
SELECT DISTINCT 45 * + 67 + + - 84
----
2931

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3777
SELECT ALL CASE + - 90 WHEN 13 + + - 37 / - - 57 * 34 * + 38 * + - 85 THEN - COUNT( * ) WHEN - 28 THEN NULL ELSE NULL END * - CAST( NULL AS SIGNED ) * - 20 + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL CASE + - 90 WHEN 13 + + - 37 / - - 57 * 34 * + 38 * + - 85 THEN - COUNT ( * ) WHEN - 28 THEN NULL ELSE NULL END * - CAST ( NULL AS INTEGER ) * - 20 + + 57
----
NULL

query I rowsort
SELECT + 7 * - - ( - 75 ) + 31 AS col1
----
-494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( + 47 ) + + - COALESCE ( + NULLIF ( + - CAST( NULL AS SIGNED ), - CAST( 89 AS SIGNED ) - 98 ), + 85 * + 28, + + 97 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( + 47 ) + + - COALESCE ( + NULLIF ( + - CAST ( NULL AS INTEGER ), - CAST ( 89 AS INTEGER ) - 98 ), + 85 * + 28, + + 97 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT - 43 * - 47 AS col2, + MIN( 1 )
----
2021
1

skipif mysql # not compatible
query II rowsort label-3780
SELECT - 43 * - 47 AS col2, + MIN ( 1 )
----
2021
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3781
SELECT SUM( ALL + + 19 ) AS col2, ( + - 86 ) * 49 AS col1
----
19
-4214

skipif mysql # not compatible
query II rowsort label-3781
SELECT SUM ( ALL + + 19 ) AS col2, ( + - 86 ) * 49 AS col1
----
19
-4214

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT SUM( ALL + - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-3782
SELECT SUM ( ALL + - 6 )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3783
SELECT - 13 + COUNT( * ), 18 AS col1
----
-12
18

skipif mysql # not compatible
query II rowsort label-3783
SELECT - 13 + COUNT ( * ), 18 AS col1
----
-12
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT ALL - 99 + + 91 * - MAX( - 34 )
----
2995

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL - 99 + + 91 * - MAX ( - 34 )
----
2995

query I rowsort
SELECT - + 22 + + - 8
----
-30

query I rowsort
SELECT ALL + + 5 + 4 + - 79 + + 97 * + + 83 * 50 AS col1
----
402480

query I rowsort
SELECT DISTINCT - 58 * 1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3788
SELECT DISTINCT - NULLIF ( CAST( - 45 AS SIGNED ), + 7 + + CAST( + 45 AS SIGNED ) ) * COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT - NULLIF ( CAST ( - 45 AS INTEGER ), + 7 + + CAST ( + 45 AS INTEGER ) ) * COUNT ( * )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT - CAST( NULL AS SIGNED ) + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT - CAST ( NULL AS INTEGER ) + 3
----
NULL

query II rowsort
SELECT DISTINCT - 14 * + 60 - + 70 AS col2, + 53
----
-910
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT DISTINCT - COUNT( * ) - - + 53
----
52

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT - COUNT ( * ) - - + 53
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3792
SELECT ALL - - COALESCE ( 63, - COALESCE ( SUM( - 74 ), - 98, + - COUNT( * ) DIV + MAX( DISTINCT CAST( NULL AS SIGNED ) ), 83 ) ) - + - 51 - + 64 + - 62 * - - NULLIF ( + 38, + 74 + 84 ) * - + ( + + 31 ) AS col2
----
73086

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL - - COALESCE ( 63, - COALESCE ( SUM ( - 74 ), - 98, + - COUNT ( * ) / + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ), 83 ) ) - + - 51 - + 64 + - 62 * - - NULLIF ( + 38, + 74 + 84 ) * - + ( + + 31 ) AS col2
----
73086

query I rowsort
SELECT - 84 - - ( - + 71 ) + 66
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT - + COUNT( - 73 ) + + 88
----
87

skipif mysql # not compatible
query I rowsort label-3794
SELECT - + COUNT ( - 73 ) + + 88
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-3795
SELECT ALL + 15 DIV 77 AS col2, - 79
----
0
-79

skipif mysql # not compatible
query II rowsort label-3795
SELECT ALL + 15 / 77 AS col2, - 79
----
0
-79

query I rowsort
SELECT - - 9 * 1 * + 25 - + 14 AS col0
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT + - 4 + - 65 + - + SUM( 28 ) * - - 87 AS col2
----
-2505

skipif mysql # not compatible
query I rowsort label-3797
SELECT + - 4 + - 65 + - + SUM ( 28 ) * - - 87 AS col2
----
-2505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3798
SELECT ALL + CASE CAST( NULL AS SIGNED ) WHEN + - 47 / 29 * - 97 - + 23 THEN NULL WHEN - 4 THEN - COALESCE ( - 81, + + 26 ) - 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL + CASE CAST ( NULL AS INTEGER ) WHEN + - 47 / 29 * - 97 - + 23 THEN NULL WHEN - 4 THEN - COALESCE ( - 81, + + 26 ) - 95 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3799
SELECT DISTINCT + + ( + 53 ) DIV + 50 + + COALESCE ( 23, + 54 ) + + 86 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT + + ( + 53 ) / + 50 + + COALESCE ( 23, + 54 ) + + 86 AS col1
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3800
SELECT ALL + CASE - 41 WHEN 20 THEN NULL WHEN - ( - + 54 ) * + - COALESCE ( + + 20, 27, + COALESCE ( - 9, + + 54 ) DIV + 17 + 95 ) THEN NULL WHEN - ( + CAST( NULL AS SIGNED ) ) * - + 19 THEN + COUNT( * ) + - MIN( ALL - - 68 ) ELSE 38 * + 82 - - ( 62 ) DIV - 84 + + - 84 END AS col2
----
3032

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL + CASE - 41 WHEN 20 THEN NULL WHEN - ( - + 54 ) * + - COALESCE ( + + 20, 27, + COALESCE ( - 9, + + 54 ) / + 17 + 95 ) THEN NULL WHEN - ( + CAST ( NULL AS INTEGER ) ) * - + 19 THEN + COUNT ( * ) + - MIN ( ALL - - 68 ) ELSE 38 * + 82 - - ( 62 ) / - 84 + + - 84 END AS col2
----
3032

query I rowsort
SELECT + 56 * - + 33 + - 80 * + 80 + 88
----
-8160

query I rowsort
SELECT ALL ( - - 12 ) col2
----
12

query I rowsort
SELECT - 21 * 41
----
-861

query I rowsort
SELECT ( 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT + MIN( ALL - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-3805
SELECT + MIN ( ALL - 43 )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3806
SELECT ALL 16 DIV 70 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL 16 / 70 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3807
SELECT ALL COUNT( * ) DIV + 21 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL COUNT ( * ) / + 21 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT ALL 22 * - COUNT( DISTINCT - 45 ) + - + 89 AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL 22 * - COUNT ( DISTINCT - 45 ) + - + 89 AS col1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT DISTINCT 91 * + 23 + - COUNT( * ) * - - COUNT( * ) AS col1
----
2092

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT 91 * + 23 + - COUNT ( * ) * - - COUNT ( * ) AS col1
----
2092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3810
SELECT ALL 59 * COALESCE ( + ( + - 71 ), - COUNT( * ), 56 + - - 59 + - CAST( - - SUM( + 55 ) AS SIGNED ) * - - COUNT( * ) ) + + COUNT( DISTINCT + + 45 ), 81 * - 45 AS col2
----
-4188
-3645

skipif mysql # not compatible
query II rowsort label-3810
SELECT ALL 59 * COALESCE ( + ( + - 71 ), - COUNT ( * ), 56 + - - 59 + - CAST ( - - SUM ( + 55 ) AS INTEGER ) * - - COUNT ( * ) ) + + COUNT ( DISTINCT + + 45 ), 81 * - 45 AS col2
----
-4188
-3645

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3811
SELECT + COALESCE ( + + 56, CAST( NULL AS SIGNED ) DIV + 45 - - + 33 + + - CAST( NULL AS SIGNED ) + + + 75, 59 ), 28 - + + 32 AS col0
----
56
-4

skipif mysql # not compatible
query II rowsort label-3811
SELECT + COALESCE ( + + 56, CAST ( NULL AS INTEGER ) / + 45 - - + 33 + + - CAST ( NULL AS INTEGER ) + + + 75, 59 ), 28 - + + 32 AS col0
----
56
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT + NULLIF ( + CASE + 87 WHEN 11 THEN - - COUNT( * ) / - + 54 * + 29 / - 71 WHEN + 1 - 90 THEN + + 72 WHEN + 62 THEN NULL ELSE NULL END, 40 ) / 90 + COUNT( * ) * 21 / 95 * - COALESCE ( - 61, - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT + NULLIF ( + CASE + 87 WHEN 11 THEN - - COUNT ( * ) / - + 54 * + 29 / - 71 WHEN + 1 - 90 THEN + + 72 WHEN + 62 THEN NULL ELSE NULL END, 40 ) / 90 + COUNT ( * ) * 21 / 95 * - COALESCE ( - 61, - 2 )
----
NULL

query II rowsort
SELECT + ( + - 38 ) * - - 58, 80 + 32 * 10 AS col0
----
-2204
400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3814
SELECT ALL 67 DIV + + 73 * + COUNT( * ) DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL 67 / + + 73 * + COUNT ( * ) / - COUNT ( * )
----
0

query I rowsort
SELECT + ( + 80 ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3816
SELECT + NULLIF ( - 91, + MAX( ALL + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) ) + - - MAX( DISTINCT - 33 ) AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-3816
SELECT + NULLIF ( - 91, + MAX ( ALL + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) + - - MAX ( DISTINCT - 33 ) AS col1
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3817
SELECT ALL 2 * 61 + - - 80 col0, CAST( NULL AS SIGNED )
----
202
NULL

skipif mysql # not compatible
query II rowsort label-3817
SELECT ALL 2 * 61 + - - 80 col0, CAST ( NULL AS INTEGER )
----
202
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT + ( - - CAST( NULL AS SIGNED ) ) * + - 51 + - - 88 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT + ( - - CAST ( NULL AS INTEGER ) ) * + - 51 + - - 88 col2
----
NULL

query I rowsort
SELECT NULLIF ( - 35, + AVG ( + + 19 ) )
----
-35

query II rowsort
SELECT ALL + - 58 col1, + 86 * - 92 col2
----
-58
-7912

query I rowsort
SELECT + COALESCE ( - - 11, + 64 * + 72 + - - 28 ) + - 8 AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT ALL + + COALESCE ( - - 78, - 97 DIV + + 6, + 62 DIV - 3 DIV 9 ) col0
----
78

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + + COALESCE ( - - 78, - 97 / + + 6, + 62 / - 3 / 9 ) col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3823
SELECT ALL + + 80 AS col0, COUNT( * ) + - 31 DIV - 90 AS col1
----
80
1

skipif mysql # not compatible
query II rowsort label-3823
SELECT ALL + + 80 AS col0, COUNT ( * ) + - 31 / - 90 AS col1
----
80
1

query I rowsort
SELECT + - 4 + - 93
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT MIN( - - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-3825
SELECT MIN ( - - 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT ALL + CASE WHEN NOT NULL <> NULL THEN 91 WHEN NOT ( NOT + SUM( ALL 79 ) = - + 60 ) THEN - 64 / 0 + - 83 - 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL + CASE WHEN NOT NULL <> NULL THEN 91 WHEN NOT ( NOT + SUM ( ALL 79 ) = - + 60 ) THEN - 64 / 0 + - 83 - 46 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT - - COUNT( * ) - - NULLIF ( COUNT( * ), COALESCE ( - - 78, + 9 ) ) + + + 91 + + 48 * - 58 * 63 * + 74 * + 66
----
-856614435

skipif mysql # not compatible
query I rowsort label-3827
SELECT - - COUNT ( * ) - - NULLIF ( COUNT ( * ), COALESCE ( - - 78, + 9 ) ) + + + 91 + + 48 * - 58 * 63 * + 74 * + 66
----
-856614435

query I rowsort
SELECT + 77 * + 44
----
3388

query I rowsort
SELECT + 4 * + 8 AS col0
----
32

query I rowsort
SELECT ALL + 52 * - 98 + 38 - 32
----
-5090

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT DISTINCT + COUNT( * ) * + - 84
----
-84

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT + COUNT ( * ) * + - 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL - COUNT( DISTINCT 76 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL - COUNT ( DISTINCT 76 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3833
SELECT - - 48, + 12 * NULLIF ( + 24, + AVG ( - 37 ) ) * COUNT( DISTINCT + CAST( + 59 AS SIGNED ) ) * - 27 * CAST( NULL AS SIGNED ) AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-3833
SELECT - - 48, + 12 * NULLIF ( + 24, + AVG ( - 37 ) ) * COUNT ( DISTINCT + CAST ( + 59 AS INTEGER ) ) * - 27 * CAST ( NULL AS INTEGER ) AS col1
----
48
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3834
SELECT DISTINCT + 35 AS col0, + COUNT( * )
----
35
1

skipif mysql # not compatible
query II rowsort label-3834
SELECT DISTINCT + 35 AS col0, + COUNT ( * )
----
35
1

query II rowsort
SELECT ALL - 51 AS col2, - 45 AS col1
----
-51
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT ALL + - 81 * + - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL + - 81 * + - COUNT ( * )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3837
SELECT + 93 + 88 + - 54 + + CAST( + 7 AS SIGNED ) DIV + ( 58 ) * COUNT( * ) * 97 - + COUNT( * )
----
126

skipif mysql # not compatible
query I rowsort label-3837
SELECT + 93 + 88 + - 54 + + CAST ( + 7 AS INTEGER ) / + ( 58 ) * COUNT ( * ) * 97 - + COUNT ( * )
----
126

query I rowsort
SELECT DISTINCT ( - 65 ) col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT - COUNT( * ) + + + 12
----
11

skipif mysql # not compatible
query I rowsort label-3839
SELECT - COUNT ( * ) + + + 12
----
11

query I rowsort
SELECT - ( - - 48 ) * + 80
----
-3840

query I rowsort
SELECT ALL + 97 + - 34
----
63

query I rowsort
SELECT DISTINCT + 88 + + 17
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT - 15 + + 21 + 81 * - COUNT( ALL 21 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3843
SELECT - 15 + + 21 + 81 * - COUNT ( ALL 21 ) AS col1
----
-75

query I rowsort
SELECT ALL + 70 + + 83 AS col1
----
153

query I rowsort
SELECT - ( + 93 ) + - 84 AS col0
----
-177

query I rowsort
SELECT ALL + 98 + 24
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3847
SELECT COUNT( * ) DIV - 61 + - 67 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-3847
SELECT COUNT ( * ) / - 61 + - 67 AS col1
----
-67

query I rowsort
SELECT ALL - 71 + ( - - 55 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3849
SELECT ALL + 8 * + 76 AS col0, + COUNT( * )
----
608
1

skipif mysql # not compatible
query II rowsort label-3849
SELECT ALL + 8 * + 76 AS col0, + COUNT ( * )
----
608
1

query I rowsort
SELECT 67 * 80
----
5360

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT COUNT( * ) + 83 + - - ( 49 )
----
133

skipif mysql # not compatible
query I rowsort label-3851
SELECT COUNT ( * ) + 83 + - - ( 49 )
----
133

query I rowsort
SELECT ALL + 99 * ( + - 36 ) col1
----
-3564

query I rowsort
SELECT 12 + 14
----
26

query I rowsort
SELECT DISTINCT - 54 - - 90 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT COALESCE ( - 95, + 77, + + 76 ) - + COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT COALESCE ( - 95, + 77, + + 76 ) - + COUNT ( * ) AS col0
----
-96

query I rowsort
SELECT DISTINCT - - 21 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT + COUNT( ALL 59 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3857
SELECT + COUNT ( ALL 59 ) AS col1
----
1

query II rowsort
SELECT ALL - ( - 71 ), 79 AS col0
----
71
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3859
SELECT DISTINCT - + CASE + - AVG ( ALL NULLIF ( 72, ( - + 79 ) + - 74 + - 21 ) ) WHEN - 46 THEN + 40 * - 40 ELSE + COUNT( * ) + - CASE 53 WHEN - COUNT( * ) THEN + + CAST( NULL AS SIGNED ) * + - COUNT( ALL - 23 ) / + ( + 76 ) END - - - COALESCE ( + CAST( + 16 AS SIGNED ), + - 93 - - COUNT( * ) - + + 25 + - 91 - + + 47 ) * + + 10 * 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT - + CASE + - AVG ( ALL NULLIF ( 72, ( - + 79 ) + - 74 + - 21 ) ) WHEN - 46 THEN + 40 * - 40 ELSE + COUNT ( * ) + - CASE 53 WHEN - COUNT ( * ) THEN + + CAST ( NULL AS INTEGER ) * + - COUNT ( ALL - 23 ) / + ( + 76 ) END - - - COALESCE ( + CAST ( + 16 AS INTEGER ), + - 93 - - COUNT ( * ) - + + 25 + - 91 - + + 47 ) * + + 10 * 63 END
----
NULL

query II rowsort
SELECT ALL 92 * 52 AS col1, 93
----
4784
93

query I rowsort
SELECT 48 * - - 74
----
3552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3862
SELECT - CAST( NULL AS SIGNED ) * - CASE - MIN( DISTINCT - 96 ) WHEN + - COALESCE ( + - 16, - 65, - 63 ) THEN + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT - CAST ( NULL AS INTEGER ) * - CASE - MIN ( DISTINCT - 96 ) WHEN + - COALESCE ( + - 16, - 65, - 63 ) THEN + 60 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT 7 + + 98 + - COUNT( * ) - - 53 * + ( 43 )
----
2383

skipif mysql # not compatible
query I rowsort label-3863
SELECT 7 + + 98 + - COUNT ( * ) - - 53 * + ( 43 )
----
2383

query I rowsort
SELECT ALL 5 * - - 68
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL - 12 * + MIN( ALL - - 34 )
----
-408

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL - 12 * + MIN ( ALL - - 34 )
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT ( COUNT( * ) ) + 29 + - + 91 - + + 99 * - 72 AS col0
----
7067

skipif mysql # not compatible
query I rowsort label-3866
SELECT ( COUNT ( * ) ) + 29 + - + 91 - + + 99 * - 72 AS col0
----
7067

onlyif mysql # DIV for integer division: 
query II rowsort label-3867
SELECT NULLIF ( - 36, 2 * + 3 ) * 43 AS col0, 72 DIV + 97 + - - 67
----
-1548
67

skipif mysql # not compatible
query II rowsort label-3867
SELECT NULLIF ( - 36, 2 * + 3 ) * 43 AS col0, 72 / + 97 + - - 67
----
-1548
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3868
SELECT ALL 94 + + NULLIF ( - 54, - MIN( + - 29 ) * - - 64 + - ( 46 ) ) - CAST( - 74 AS SIGNED )
----
114

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL 94 + + NULLIF ( - 54, - MIN ( + - 29 ) * - - 64 + - ( 46 ) ) - CAST ( - 74 AS INTEGER )
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3869
SELECT ALL - 63 + - ( - 43 ) + ( ( 51 ) ) + 75 DIV + - 53 + - + 93, - 6 - - 43 + + SUM( + 43 ) AS col2
----
-63
80

skipif mysql # not compatible
query II rowsort label-3869
SELECT ALL - 63 + - ( - 43 ) + ( ( 51 ) ) + 75 / + - 53 + - + 93, - 6 - - 43 + + SUM ( + 43 ) AS col2
----
-63
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3870
SELECT 96 * - CAST( + 23 AS SIGNED ) * ( - COUNT( * ) ) * - ( - 45 ) + COUNT( * )
----
99361

skipif mysql # not compatible
query I rowsort label-3870
SELECT 96 * - CAST ( + 23 AS INTEGER ) * ( - COUNT ( * ) ) * - ( - 45 ) + COUNT ( * )
----
99361

query I rowsort
SELECT DISTINCT - 30 + + 43 + + 72 col2
----
85

query I rowsort
SELECT 87 + + + 73
----
160

query I rowsort
SELECT ALL + 2 + - + CASE + - 24 WHEN - COALESCE ( - + 52, + 25 + 1 ) THEN 93 * + 98 + + + 74 WHEN 13 + 2 THEN + 98 WHEN - + 60 THEN 1 END + - - 68 - ( - - 45 ) + - 23 * - 96 - 59 * - - 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3874
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( + CAST( NULL AS SIGNED ) ) AS col0, + MIN( + CAST( NULL AS SIGNED ) ) * + CASE COUNT( * ) WHEN MIN( ALL + 73 ) / NULLIF ( + 74, 84 ) * 10 THEN NULL ELSE - + 25 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3874
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( + CAST ( NULL AS INTEGER ) ) AS col0, + MIN ( + CAST ( NULL AS INTEGER ) ) * + CASE COUNT ( * ) WHEN MIN ( ALL + 73 ) / NULLIF ( + 74, 84 ) * 10 THEN NULL ELSE - + 25 END
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 84 + 77
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL 56 * ( - COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL 56 * ( - COUNT ( * ) )
----
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-3877
SELECT DISTINCT + 85 + - + 17 + - + 23 DIV + 87 * + 52 col1, - 14 * + ( + 77 ) AS col0
----
68
-1078

skipif mysql # not compatible
query II rowsort label-3877
SELECT DISTINCT + 85 + - + 17 + - + 23 / + 87 * + 52 col1, - 14 * + ( + 77 ) AS col0
----
68
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL - 67 - + + 51 * MAX( - 85 ) * 87 + + COUNT( * ) * + COUNT( * ) AS col1
----
377079

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL - 67 - + + 51 * MAX ( - 85 ) * 87 + + COUNT ( * ) * + COUNT ( * ) AS col1
----
377079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3879
SELECT DISTINCT - COUNT( * ) DIV MAX( ALL - CAST( 97 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT - COUNT ( * ) / MAX ( ALL - CAST ( 97 AS INTEGER ) )
----
0

query I rowsort
SELECT 86 * - 40
----
-3440

onlyif mysql # DIV for integer division: 
query I rowsort label-3881
SELECT ALL - COALESCE ( - 9, - 38 + - - 84 ) DIV - ( - - 51 ) * - 40 - 8 + + 75
----
67

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL - COALESCE ( - 9, - 38 + - - 84 ) / - ( - - 51 ) * - 40 - 8 + + 75
----
67

query I rowsort
SELECT ALL - ( 44 ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3883
SELECT DISTINCT - 49 DIV + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT - 49 / + 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3884
SELECT + NULLIF ( - 93, ( CASE + COUNT( * ) WHEN - - 69 THEN + 26 ELSE 7 END ) * - 38 * + ( + - 68 ) + - + 79 + 11 ) AS col1, + 62 col2
----
-93
62

skipif mysql # not compatible
query II rowsort label-3884
SELECT + NULLIF ( - 93, ( CASE + COUNT ( * ) WHEN - - 69 THEN + 26 ELSE 7 END ) * - 38 * + ( + - 68 ) + - + 79 + 11 ) AS col1, + 62 col2
----
-93
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT DISTINCT - - MIN( + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT - - MIN ( + 80 )
----
80

query I rowsort
SELECT DISTINCT + 74 * + COALESCE ( + ( + 43 ), + - 71 ) AS col0
----
3182

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT ALL - MIN( 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL - MIN ( 37 ) AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3888
SELECT ALL + 52 + - 17 + + COALESCE ( - + COUNT( * ), + - CAST( - + 56 AS SIGNED ) ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + 52 + - 17 + + COALESCE ( - + COUNT ( * ), + - CAST ( - + 56 AS INTEGER ) ) AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3889
SELECT - 95 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT - 95 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3890
SELECT DISTINCT - 25 + + ( + CASE + MIN( + 34 ) WHEN - - ( + - 62 ) THEN NULL WHEN - 48 THEN - CASE + ( 8 ) WHEN 8 + - + 70 * + 14 THEN - + 84 / 64 + + COUNT( * ) * - 90 WHEN - - 17 + - ( 9 ) THEN + 98 ELSE NULL END ELSE NULL END ) + 29 * + + CASE - 9 WHEN CAST( + - 8 AS SIGNED ) + + - COUNT( ALL - - 30 ) + 51 - + MIN( ( + 1 ) + 38 ) THEN - ( 93 ) END * 8 * + 0 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT - 25 + + ( + CASE + MIN ( + 34 ) WHEN - - ( + - 62 ) THEN NULL WHEN - 48 THEN - CASE + ( 8 ) WHEN 8 + - + 70 * + 14 THEN - + 84 / 64 + + COUNT ( * ) * - 90 WHEN - - 17 + - ( 9 ) THEN + 98 ELSE NULL END ELSE NULL END ) + 29 * + + CASE - 9 WHEN CAST ( + - 8 AS INTEGER ) + + - COUNT ( ALL - - 30 ) + 51 - + MIN ( ( + 1 ) + 38 ) THEN - ( 93 ) END * 8 * + 0 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3891
SELECT DISTINCT + 3 * - - CAST( - - 86 AS SIGNED ), 82 AS col0
----
258
82

skipif mysql # not compatible
query II rowsort label-3891
SELECT DISTINCT + 3 * - - CAST ( - - 86 AS INTEGER ), 82 AS col0
----
258
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3892
SELECT ALL - + CAST( NULL AS SIGNED ) + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL - + CAST ( NULL AS INTEGER ) + - 61
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3893
SELECT + 62 DIV - + 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3893
SELECT + 62 / - + 56 AS col2
----
-1

query II rowsort
SELECT - 92, 36 AS col1
----
-92
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3895
SELECT - COALESCE ( COUNT( * ), - - CAST( NULL AS SIGNED ), + + COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3895
SELECT - COALESCE ( COUNT ( * ), - - CAST ( NULL AS INTEGER ), + + COUNT ( * ) ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT COUNT( * ) * + 59 + - + COALESCE ( + NULLIF ( + ( - - 62 ), 63 ), COUNT( * ) ) * - ( - 62 ) * MIN( - 50 )
----
192259

skipif mysql # not compatible
query I rowsort label-3896
SELECT COUNT ( * ) * + 59 + - + COALESCE ( + NULLIF ( + ( - - 62 ), 63 ), COUNT ( * ) ) * - ( - 62 ) * MIN ( - 50 )
----
192259

query I rowsort
SELECT 88 - + 4
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3898
SELECT DISTINCT - 97 + CASE - ( + 8 ) WHEN + - 77 * - - 52 + + - 36 * 89 + - CAST( NULL AS SIGNED ) + + 94 * - 64 THEN ( - COUNT( * ) ) WHEN - ( + 83 ) THEN 16 ELSE NULL END - + + 40 * + NULLIF ( + 77, + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT - 97 + CASE - ( + 8 ) WHEN + - 77 * - - 52 + + - 36 * 89 + - CAST ( NULL AS INTEGER ) + + 94 * - 64 THEN ( - COUNT ( * ) ) WHEN - ( + 83 ) THEN 16 ELSE NULL END - + + 40 * + NULLIF ( + 77, + 77 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3899
SELECT - COUNT( * ) AS col0, ( - 1 ) * + 79 * 45
----
-1
-3555

skipif mysql # not compatible
query II rowsort label-3899
SELECT - COUNT ( * ) AS col0, ( - 1 ) * + 79 * 45
----
-1
-3555

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT + COUNT( * ) + + + 95 - - 35 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-3900
SELECT + COUNT ( * ) + + + 95 - - 35 AS col2
----
131

query I rowsort
SELECT ALL 44 - - 89
----
133

query I rowsort
SELECT + 26 + 74 * - - 55 col0
----
4096

query I rowsort
SELECT DISTINCT 37 * - 43 * - + 97 AS col0
----
154327

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT + 61 * + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-3904
SELECT + 61 * + COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT ALL - ( - 34 ) * + + 65 * - COUNT( * )
----
-2210

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL - ( - 34 ) * + + 65 * - COUNT ( * )
----
-2210

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL SUM( + - 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL SUM ( + - 64 )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3907
SELECT + 54 + 97 + - - SUM( ALL - 49 ) + - 27 * - ( - ( + 79 ) ) + COUNT( * ) + + 86 + + + 50, - 62 DIV + 46 * - 1 + - - 74 AS col1
----
-1894
75

skipif mysql # not compatible
query II rowsort label-3907
SELECT + 54 + 97 + - - SUM ( ALL - 49 ) + - 27 * - ( - ( + 79 ) ) + COUNT ( * ) + + 86 + + + 50, - 62 / + 46 * - 1 + - - 74 AS col1
----
-1894
75

query I rowsort
SELECT ( + + 1 ) AS col2
----
1

query I rowsort
SELECT ( - 63 ) col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3910
SELECT 72 / - CASE - - 94 WHEN + + CAST( + 57 AS SIGNED ) THEN NULL WHEN + - 85 THEN + 17 END * - + CAST( NULL AS SIGNED ) + 23 / - - CAST( NULL AS SIGNED ) * 50 * 82 + SUM( ALL 13 ) + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT 72 / - CASE - - 94 WHEN + + CAST ( + 57 AS INTEGER ) THEN NULL WHEN + - 85 THEN + 17 END * - + CAST ( NULL AS INTEGER ) + 23 / - - CAST ( NULL AS INTEGER ) * 50 * 82 + SUM ( ALL 13 ) + - 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT ALL 54 * CAST( NULL AS SIGNED ) * CAST( 24 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL 54 * CAST ( NULL AS INTEGER ) * CAST ( 24 AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 52 AS col0, - 95 AS col0
----
52
-95

query I rowsort
SELECT + - 42 * - CASE - - ( - - 37 ) WHEN - + 32 THEN + 91 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT + ( + - CASE - NULLIF ( - 30, + + NULLIF ( 5, - 35 ) + + 80 + + + 49 ) WHEN - 40 THEN 58 + - + 16 + + + MAX( DISTINCT 75 ) + - 88 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT + ( + - CASE - NULLIF ( - 30, + + NULLIF ( 5, - 35 ) + + 80 + + + 49 ) WHEN - 40 THEN 58 + - + 16 + + + MAX ( DISTINCT 75 ) + - 88 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3915
SELECT - COUNT( * ) DIV + ( - 17 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3915
SELECT - COUNT ( * ) / + ( - 17 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3916
SELECT + - 77 AS col1, + CAST( - 68 AS SIGNED ) col1
----
-77
-68

skipif mysql # not compatible
query II rowsort label-3916
SELECT + - 77 AS col1, + CAST ( - 68 AS INTEGER ) col1
----
-77
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3917
SELECT - 71 * + MIN( - 20 ) * CAST( - COALESCE ( - 18, + 14 + + 22 ) AS SIGNED ) + - 60 AS col2
----
25500

skipif mysql # not compatible
query I rowsort label-3917
SELECT - 71 * + MIN ( - 20 ) * CAST ( - COALESCE ( - 18, + 14 + + 22 ) AS INTEGER ) + - 60 AS col2
----
25500

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL - - 66 * 7 * - SUM( + 52 ) AS col0
----
-24024

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL - - 66 * 7 * - SUM ( + 52 ) AS col0
----
-24024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3919
SELECT - MIN( DISTINCT 31 ) DIV + - 80
----
0

skipif mysql # not compatible
query I rowsort label-3919
SELECT - MIN ( DISTINCT 31 ) / + - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT DISTINCT + 19 * + COUNT( * ) + - - 6 + - - 30 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT + 19 * + COUNT ( * ) + - - 6 + - - 30 AS col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3921
SELECT DISTINCT + + 8 * + 25 + - 52 * ( - AVG ( ALL - + CAST( + 41 AS SIGNED ) ) ) + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT + + 8 * + 25 + - 52 * ( - AVG ( ALL - + CAST ( + 41 AS INTEGER ) ) ) + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query III rowsort
SELECT 82 AS col2, 91 AS col1, + ( + 1 )
----
82
91
1

query I rowsort
SELECT - - 41 * 67
----
2747

onlyif mysql # aggregate syntax: 
query II rowsort label-3924
SELECT - COUNT( * ) AS col2, - NULLIF ( + + SUM( + 68 ), - 58 / - - 82 + - 24 ) col0
----
-1
-68

skipif mysql # not compatible
query II rowsort label-3924
SELECT - COUNT ( * ) AS col2, - NULLIF ( + + SUM ( + 68 ), - 58 / - - 82 + - 24 ) col0
----
-1
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3925
SELECT DISTINCT + 26 * + 79 + 88 DIV 63 * - 19 * ( - 75 ) + + COUNT( * )
----
3480

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT + 26 * + 79 + 88 / 63 * - 19 * ( - 75 ) + + COUNT ( * )
----
3480

onlyif mysql # DIV for integer division: 
query II rowsort label-3926
SELECT ALL + 13, + 43 DIV 12 col1
----
13
3

skipif mysql # not compatible
query II rowsort label-3926
SELECT ALL + 13, + 43 / 12 col1
----
13
3

query I rowsort
SELECT ( - - 66 ) * + 71 * 41 - 7
----
192119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3928
SELECT - CASE - 95 WHEN 88 * - - 57 THEN - CAST( NULL AS SIGNED ) + + + 15 WHEN + ( COUNT( * ) ) * - 82 - + - 71 + - + ( - 27 ) + - ( + ( - - CAST( + ( + CAST( 38 AS DECIMAL ) ) AS SIGNED ) ) ) THEN NULL END * + - COUNT( * ) + - + 46 + + 11 - + 70 - + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT - CASE - 95 WHEN 88 * - - 57 THEN - CAST ( NULL AS INTEGER ) + + + 15 WHEN + ( COUNT ( * ) ) * - 82 - + - 71 + - + ( - 27 ) + - ( + ( - - CAST ( + ( + CAST ( 38 AS REAL ) ) AS INTEGER ) ) ) THEN NULL END * + - COUNT ( * ) + - + 46 + + 11 - + 70 - + 5
----
NULL

query I rowsort
SELECT + 38 + 41 * + 0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3930
SELECT + 97 DIV + 47
----
2

skipif mysql # not compatible
query I rowsort label-3930
SELECT + 97 / + 47
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3931
SELECT + 14 + - - 27 / - + 56 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT + 14 + - - 27 / - + 56 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT - COUNT( ALL - 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-3932
SELECT - COUNT ( ALL - 37 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT ALL 96 * - NULLIF ( - + 31, 62 * + COUNT( * ) - + 97 ) AS col2
----
2976

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL 96 * - NULLIF ( - + 31, 62 * + COUNT ( * ) - + 97 ) AS col2
----
2976

query II rowsort
SELECT - ( - + 30 ) * 64 AS col0, + ( 29 ) AS col0
----
1920
29

query I rowsort
SELECT + 7 * + - 10 * 27
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT + 28 - - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-3936
SELECT + 28 - - COUNT ( * )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3937
SELECT ALL + + 16 DIV + 11 + 71
----
72

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL + + 16 / + 11 + 71
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL + 69 * 55 - - 97 + + COUNT( * ) AS col1
----
3893

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL + 69 * 55 - - 97 + + COUNT ( * ) AS col1
----
3893

onlyif mysql # DIV for integer division: 
query I rowsort label-3939
SELECT ALL - 29 DIV - 91 + - 3
----
-3

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL - 29 / - 91 + - 3
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3940
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT - COUNT( DISTINCT + 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-3941
SELECT - COUNT ( DISTINCT + 20 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3942
SELECT - - 65 * + 54 + + 96 DIV COALESCE ( - 33, + 87 + + - 62 + + - 86 * COUNT( * ) * + 19 ) * - 34 AS col0
----
3578

skipif mysql # not compatible
query I rowsort label-3942
SELECT - - 65 * + 54 + + 96 / COALESCE ( - 33, + 87 + + - 62 + + - 86 * COUNT ( * ) * + 19 ) * - 34 AS col0
----
3578

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT - - 39 - + - 57 + + COUNT( * ) * + + 85
----
181

skipif mysql # not compatible
query I rowsort label-3943
SELECT - - 39 - + - 57 + + COUNT ( * ) * + + 85
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3944
SELECT + - COUNT( * ) * + - COALESCE ( - 34, COUNT( * ) * - - 22, + 8 ) * + 40 * + - NULLIF ( + 79, - CAST( - 86 AS SIGNED ) * COALESCE ( 92, + 85 ) * MIN( + - 18 ) + COUNT( * ) ) + 13 - 36 - - 37 * + 3 AS col2
----
107528

skipif mysql # not compatible
query I rowsort label-3944
SELECT + - COUNT ( * ) * + - COALESCE ( - 34, COUNT ( * ) * - - 22, + 8 ) * + 40 * + - NULLIF ( + 79, - CAST ( - 86 AS INTEGER ) * COALESCE ( 92, + 85 ) * MIN ( + - 18 ) + COUNT ( * ) ) + 13 - 36 - - 37 * + 3 AS col2
----
107528

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT + - SUM( DISTINCT - - 64 ) + + 70 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3945
SELECT + - SUM ( DISTINCT - - 64 ) + + 70 AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3946
SELECT ALL + COALESCE ( 43, NULLIF ( + + 92, 39 ) + + - 68 + + 47 ) DIV + 9 + 63
----
67

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL + COALESCE ( 43, NULLIF ( + + 92, 39 ) + + - 68 + + 47 ) / + 9 + 63
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT ALL - 28 DIV - 87 + + + 70 * - 4
----
-280

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL - 28 / - 87 + + + 70 * - 4
----
-280

query I rowsort
SELECT + 63 * + - 44 + - + 96 * 21 AS col1
----
-4788

query I rowsort
SELECT DISTINCT - 82 - - 26 + 5 AS col2
----
-51

query II rowsort
SELECT ALL - + ( 64 ) AS col0, 18
----
-64
18

query I rowsort
SELECT + - ( + 21 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT - 98 + - COUNT( ALL - - 31 ) * + ( + 34 ) * + 50 * - CASE + 70 WHEN + MAX( ALL + 92 ) THEN COUNT( * ) * + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3952
SELECT - 98 + - COUNT ( ALL - - 31 ) * + ( + 34 ) * + 50 * - CASE + 70 WHEN + MAX ( ALL + 92 ) THEN COUNT ( * ) * + 95 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3953
SELECT DISTINCT - 19 AS col0, - NULLIF ( - COALESCE ( - + NULLIF ( + 24, + COUNT( * ) + - - ( - 48 ) * - 91 ), + + COALESCE ( + - 49, + CAST( 44 AS SIGNED ) ) ), - COUNT( * ) / NULLIF ( + CAST( - + 46 AS SIGNED ), 62 ) ) + + 82 + 43
----
-19
101

skipif mysql # not compatible
query II rowsort label-3953
SELECT DISTINCT - 19 AS col0, - NULLIF ( - COALESCE ( - + NULLIF ( + 24, + COUNT ( * ) + - - ( - 48 ) * - 91 ), + + COALESCE ( + - 49, + CAST ( 44 AS INTEGER ) ) ), - COUNT ( * ) / NULLIF ( + CAST ( - + 46 AS INTEGER ), 62 ) ) + + 82 + 43
----
-19
101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3954
SELECT ALL - 80 * - - CAST( NULL AS SIGNED ) * + - 92, - 28 AS col0
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-3954
SELECT ALL - 80 * - - CAST ( NULL AS INTEGER ) * + - 92, - 28 AS col0
----
NULL
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT - COALESCE ( - 66, 94 * ( + COUNT( * ) ) )
----
66

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT - COALESCE ( - 66, 94 * ( + COUNT ( * ) ) )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT 90 * + - 97 + + MIN( 20 ) + - 70 AS col0
----
-8780

skipif mysql # not compatible
query I rowsort label-3956
SELECT 90 * + - 97 + + MIN ( 20 ) + - 70 AS col0
----
-8780

query I rowsort
SELECT ALL - 81 * - ( - ( + 86 ) ) * - 67 - 13
----
466709

query I rowsort
SELECT 93 - - + 0 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT DISTINCT - 63 * 3 * - ( COUNT( * ) )
----
189

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT - 63 * 3 * - ( COUNT ( * ) )
----
189

query II rowsort
SELECT DISTINCT 58 AS col0, 63
----
58
63

query I rowsort
SELECT 92 + - 44 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT 28 - + SUM( DISTINCT - + ( - + 64 ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3962
SELECT 28 - + SUM ( DISTINCT - + ( - + 64 ) ) AS col1
----
-36

query I rowsort
SELECT ALL 7 + 75 AS col1
----
82

query I rowsort
SELECT 17 + + - 66 col1
----
-49

query I rowsort
SELECT ALL + - 7 + - + 70
----
-77

query I rowsort
SELECT 14 + - 43
----
-29

query I rowsort
SELECT DISTINCT ( + 90 ) AS col1
----
90

query I rowsort
SELECT ALL - 40 + - 5
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL SUM( DISTINCT 89 )
----
89

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL SUM ( DISTINCT 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT 7 + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-3970
SELECT 7 + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT - MIN( DISTINCT + - 15 )
----
15

skipif mysql # not compatible
query I rowsort label-3971
SELECT - MIN ( DISTINCT + - 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT + COUNT( * ) * - + 43
----
-43

skipif mysql # not compatible
query I rowsort label-3972
SELECT + COUNT ( * ) * - + 43
----
-43

query I rowsort
SELECT 63 * + 49 col2
----
3087

query I rowsort
SELECT ALL - ( - - 25 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL - MAX( DISTINCT + 46 ) - - - 52 + - - 6
----
-92

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL - MAX ( DISTINCT + 46 ) - - - 52 + - - 6
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3977
SELECT COUNT( * ) - - - ( 76 ) + + + CAST( NULL AS SIGNED ) * + ( 72 ) * + COUNT( * ) / NULLIF ( + CASE + 98 WHEN - MAX( ( - 78 ) ) THEN - - 91 WHEN + 33 THEN NULL END, - 81 ) * - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3977
SELECT COUNT ( * ) - - - ( 76 ) + + + CAST ( NULL AS INTEGER ) * + ( 72 ) * + COUNT ( * ) / NULLIF ( + CASE + 98 WHEN - MAX ( ( - 78 ) ) THEN - - 91 WHEN + 33 THEN NULL END, - 81 ) * - 20 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3978
SELECT 13 * + COALESCE ( + + 50, - CAST( NULL AS SIGNED ) ) + COUNT( * ) col0
----
651

skipif mysql # not compatible
query I rowsort label-3978
SELECT 13 * + COALESCE ( + + 50, - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) col0
----
651

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3979
SELECT ALL COUNT( * ) DIV 29 * CASE - ( + 75 ) WHEN - + MAX( ALL - + 1 ) THEN - SUM( DISTINCT + 97 ) END AS col1, - 84 DIV + 53 + + + MIN( ALL - - 69 ) col1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-3979
SELECT ALL COUNT ( * ) / 29 * CASE - ( + 75 ) WHEN - + MAX ( ALL - + 1 ) THEN - SUM ( DISTINCT + 97 ) END AS col1, - 84 / + 53 + + + MIN ( ALL - - 69 ) col1
----
NULL
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3980
SELECT - COUNT( + - 19 ) AS col1, - MAX( 62 ) * + + COUNT( 91 ) * 20 AS col2
----
-1
-1240

skipif mysql # not compatible
query II rowsort label-3980
SELECT - COUNT ( + - 19 ) AS col1, - MAX ( 62 ) * + + COUNT ( 91 ) * 20 AS col2
----
-1
-1240

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT ALL COUNT( * ) + + 8 - - 10 * 58 AS col1
----
589

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL COUNT ( * ) + + 8 - - 10 * 58 AS col1
----
589

query I rowsort
SELECT ALL - 77 + - 82
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL - CASE - 62 WHEN 66 * COUNT( * ) THEN + 48 END + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - CASE - 62 WHEN 66 * COUNT ( * ) THEN + 48 END + - 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3984
SELECT + 23 * + MIN( DISTINCT - + CAST( - - 7 AS SIGNED ) ) * CAST( NULL AS DECIMAL ) + + 76 * - + ( + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT + 23 * + MIN ( DISTINCT - + CAST ( - - 7 AS INTEGER ) ) * CAST ( NULL AS REAL ) + + 76 * - + ( + 11 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL + ( + COUNT( * ) ) + - 8 * + COUNT( * ) * + CASE - + 90 WHEN + + 77 * + 41 THEN - + 94 WHEN COALESCE ( + COUNT( * ), 58 + + + COUNT( * ) ) THEN + - 64 * + COUNT( * ) ELSE + 46 END AS col2
----
-367

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL + ( + COUNT ( * ) ) + - 8 * + COUNT ( * ) * + CASE - + 90 WHEN + + 77 * + 41 THEN - + 94 WHEN COALESCE ( + COUNT ( * ), 58 + + + COUNT ( * ) ) THEN + - 64 * + COUNT ( * ) ELSE + 46 END AS col2
----
-367

onlyif mysql # aggregate syntax: 
query II rowsort label-3986
SELECT DISTINCT + - 22 + + NULLIF ( 59, - + COUNT( * ) ) AS col1, - 27
----
37
-27

skipif mysql # not compatible
query II rowsort label-3986
SELECT DISTINCT + - 22 + + NULLIF ( 59, - + COUNT ( * ) ) AS col1, - 27
----
37
-27

query I rowsort
SELECT - 90 - - 50 + - 18
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3988
SELECT DISTINCT + - COUNT( * ) DIV + + 24 + 94 DIV - 57 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT + - COUNT ( * ) / + + 24 + 94 / - 57 AS col1
----
-1

query I rowsort
SELECT ALL - 17 - - 12 + + + 83 AS col2
----
78

query I rowsort
SELECT - COALESCE ( + 61, + 76 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3991
SELECT DISTINCT 65 * + 64 / - CAST( NULL AS SIGNED ) * NULLIF ( + 37, - 12 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT 65 * + 64 / - CAST ( NULL AS INTEGER ) * NULLIF ( + 37, - 12 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 15 * - 98
----
1470

query I rowsort
SELECT + + ( 59 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3994
SELECT ALL - CAST( + + 52 AS SIGNED ) * 1 + - 40 + + + 2 + CASE + COALESCE ( + 84, 4 ) WHEN + 35 + 6 THEN + 96 WHEN - - COUNT( * ) THEN CASE - 69 WHEN + 54 THEN NULL WHEN - 37 + 40 THEN - 4 + + 81 ELSE NULL END END - 68 + + CAST( - 43 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL - CAST ( + + 52 AS INTEGER ) * 1 + - 40 + + + 2 + CASE + COALESCE ( + 84, 4 ) WHEN + 35 + 6 THEN + 96 WHEN - - COUNT ( * ) THEN CASE - 69 WHEN + 54 THEN NULL WHEN - 37 + 40 THEN - 4 + + 81 ELSE NULL END END - 68 + + CAST ( - 43 AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + + 25 * - 71, 46 * 0 AS col1
----
-1775
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT COUNT( * ) * + + 21 + 97 - 91
----
27

skipif mysql # not compatible
query I rowsort label-3996
SELECT COUNT ( * ) * + + 21 + 97 - 91
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT - - 10 * + 17 * + 2 / - CASE - 51 WHEN + - COUNT( * ) THEN NULL WHEN - 25 THEN COUNT( + 98 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT - - 10 * + 17 * + 2 / - CASE - 51 WHEN + - COUNT ( * ) THEN NULL WHEN - 25 THEN COUNT ( + 98 ) END
----
NULL

query I rowsort
SELECT - 33 + + 77 AS col2
----
44

query I rowsort
SELECT - ( 46 ) * 71
----
-3266

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT MAX( + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-4000
SELECT MAX ( + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT MAX( DISTINCT - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-4001
SELECT MAX ( DISTINCT - 84 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT ALL ( + 97 ) * - 87 + SUM( 84 ) * - - 23 + + - 80 - + 45 AS col0
----
-6632

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL ( + 97 ) * - 87 + SUM ( 84 ) * - - 23 + + - 80 - + 45 AS col0
----
-6632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT + 79 * - 59 * - MIN( DISTINCT ( - CAST( + 1 AS SIGNED ) ) )
----
-4661

skipif mysql # not compatible
query I rowsort label-4003
SELECT + 79 * - 59 * - MIN ( DISTINCT ( - CAST ( + 1 AS INTEGER ) ) )
----
-4661

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4004
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) * - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 69 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 80 * 30 * - 36 + + 57 * - - 8 AS col0
----
-85944

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT MIN( 1 )
----
1

skipif mysql # not compatible
query I rowsort label-4006
SELECT MIN ( 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT MIN( 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4007
SELECT MIN ( 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT DISTINCT COUNT( * ) + - - NULLIF ( 99, + - 14 + 6 + 92 * - - 51 + - + 49 ) * + 91 AS col1
----
9010

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT COUNT ( * ) + - - NULLIF ( 99, + - 14 + 6 + 92 * - - 51 + - + 49 ) * + 91 AS col1
----
9010

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT - NULLIF ( + + 87, 96 / + 84 * + - COUNT( * ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-4009
SELECT - NULLIF ( + + 87, 96 / + 84 * + - COUNT ( * ) ) AS col0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4010
SELECT - 2 DIV - ( - 35 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4010
SELECT - 2 / - ( - 35 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT SUM( + - CASE + 48 WHEN - + 74 THEN - 23 WHEN - 58 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT SUM ( + - CASE + 48 WHEN - + 74 THEN - 23 WHEN - 58 THEN NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL ( 94 ) + - 0 + - COUNT( * ) * 32 + - 27 + + COUNT( * ) * + + 75
----
110

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL ( 94 ) + - 0 + - COUNT ( * ) * 32 + - 27 + + COUNT ( * ) * + + 75
----
110

query I rowsort
SELECT + 66 + + + NULLIF ( + - 90, + 64 ) col2
----
-24

query I rowsort
SELECT DISTINCT - 46 + - + 64 * - 12 * 56 * 89
----
3827666

query I rowsort
SELECT ALL + 7 + - 51 AS col2
----
-44

query II rowsort
SELECT + + ( + NULLIF ( 37, 49 ) ) + 22 AS col2, 52 * + 63
----
59
3276

query II rowsort
SELECT - + 26 - - COALESCE ( - 42, - + 26 + - + 26 ) AS col2, - 39
----
-68
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4018
SELECT + - 57 + - + MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-4018
SELECT + - 57 + - + MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL + - 27 - - + COUNT( * ) + - 99
----
-125

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL + - 27 - - + COUNT ( * ) + - 99
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4020
SELECT ALL - COUNT( * ), + 36 DIV + 43 col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-4020
SELECT ALL - COUNT ( * ), + 36 / + 43 col0
----
-1
0

query I rowsort
SELECT + 10 + 73
----
83

query I rowsort
SELECT ALL + ( 26 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT - COUNT( * ) + 47 * + - 76
----
-3573

skipif mysql # not compatible
query I rowsort label-4023
SELECT - COUNT ( * ) + 47 * + - 76
----
-3573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4024
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) - 15 col0
----
-14

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) - 15 col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT - - COUNT( * ) * 32 * - 52 AS col0
----
-1664

skipif mysql # not compatible
query I rowsort label-4025
SELECT - - COUNT ( * ) * 32 * - 52 AS col0
----
-1664

query I rowsort
SELECT - + 81 * + 34
----
-2754

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT - - CASE ( - 38 ) WHEN + COALESCE ( + - ( + + NULLIF ( + 4, - + COUNT( * ) * COUNT( * ) + - 15 ) ), 97, + 55 ) / - - 57 THEN - 61 WHEN + + MIN( + 86 ) THEN NULL ELSE NULL END + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT - - CASE ( - 38 ) WHEN + COALESCE ( + - ( + + NULLIF ( + 4, - + COUNT ( * ) * COUNT ( * ) + - 15 ) ), 97, + 55 ) / - - 57 THEN - 61 WHEN + + MIN ( + 86 ) THEN NULL ELSE NULL END + + 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT ALL - 70 * + CAST( NULL AS SIGNED ) * + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL - 70 * + CAST ( NULL AS INTEGER ) * + 80 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4029
SELECT - - 64 DIV + 58 - - 64 * - + 96
----
-6143

skipif mysql # not compatible
query I rowsort label-4029
SELECT - - 64 / + 58 - - 64 * - + 96
----
-6143

onlyif mysql # aggregate syntax: 
query II rowsort label-4030
SELECT + MIN( - + 90 ) * + - 83 AS col0, - ( + 65 )
----
7470
-65

skipif mysql # not compatible
query II rowsort label-4030
SELECT + MIN ( - + 90 ) * + - 83 AS col0, - ( + 65 )
----
7470
-65

query II rowsort
SELECT + - 95, 50 AS col1
----
-95
50

query I rowsort
SELECT ALL + ( + 6 ) AS col0
----
6

query I rowsort
SELECT DISTINCT - 4 * - - 64 AS col2
----
-256

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4034
SELECT ALL MAX( ALL + 40 ) * COUNT( * ) DIV + 83 + - 13 DIV 41 AS col1, - 20 * - 36 AS col0
----
0
720

skipif mysql # not compatible
query II rowsort label-4034
SELECT ALL MAX ( ALL + 40 ) * COUNT ( * ) / + 83 + - 13 / 41 AS col1, - 20 * - 36 AS col0
----
0
720

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT - COUNT( * ) - - - 30 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4035
SELECT - COUNT ( * ) - - - 30 AS col2
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4036
SELECT - COUNT( * ) DIV + + 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4036
SELECT - COUNT ( * ) / + + 15 AS col1
----
0

query I rowsort
SELECT ( - - 20 ) AS col2
----
20

query I rowsort
SELECT - 1 * 48 * 42 + + + 80 * - 96
----
-9696

query I rowsort
SELECT + 2 + + 73
----
75

query I rowsort
SELECT + 61 * 50
----
3050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4041
SELECT DISTINCT + 82 * - 80 + SUM( + CAST( - 13 AS SIGNED ) )
----
-6573

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT + 82 * - 80 + SUM ( + CAST ( - 13 AS INTEGER ) )
----
-6573

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL + CASE + 40 WHEN - CASE 21 WHEN + - 50 * - 61 + - 41 THEN NULL WHEN COALESCE ( + + 0, 43 * + + 98 + + 22 ) THEN - COUNT( * ) END THEN 5 * + COUNT( * ) + 17 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL + CASE + 40 WHEN - CASE 21 WHEN + - 50 * - 61 + - 41 THEN NULL WHEN COALESCE ( + + 0, 43 * + + 98 + + 22 ) THEN - COUNT ( * ) END THEN 5 * + COUNT ( * ) + 17 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4043
SELECT + 25 - - 47 - - MAX( ALL - 13 ) + - SUM( + 92 ) + - ( + 94 ) * - 52 + 89 * - 28 + + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT + 25 - - 47 - - MAX ( ALL - 13 ) + - SUM ( + 92 ) + - ( + 94 ) * - 52 + 89 * - 28 + + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 36 * - 2
----
-72

query II rowsort
SELECT - 54 * + + 92, - 15 + - - 59 AS col0
----
-4968
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4046
SELECT - MAX( - + COALESCE ( 43, + 42 ) ), - CAST( 12 AS SIGNED ) + 65 * - - CASE + 83 WHEN - 65 * - 5 THEN + 34 WHEN + 54 THEN + 41 * + CAST( NULL AS SIGNED ) WHEN MAX( DISTINCT + 70 ) THEN - 98 END col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-4046
SELECT - MAX ( - + COALESCE ( 43, + 42 ) ), - CAST ( 12 AS INTEGER ) + 65 * - - CASE + 83 WHEN - 65 * - 5 THEN + 34 WHEN + 54 THEN + 41 * + CAST ( NULL AS INTEGER ) WHEN MAX ( DISTINCT + 70 ) THEN - 98 END col1
----
43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT DISTINCT 93 * MIN( DISTINCT 6 )
----
558

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT 93 * MIN ( DISTINCT 6 )
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT - + COUNT( * ) + 71
----
70

skipif mysql # not compatible
query I rowsort label-4048
SELECT - + COUNT ( * ) + 71
----
70

query I rowsort
SELECT + + 97 * 85
----
8245

onlyif mysql # DIV for integer division: 
query I rowsort label-4050
SELECT DISTINCT + ( - NULLIF ( + 3, - 75 ) ) * - 12 DIV - 85 * + 93 * - - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT + ( - NULLIF ( + 3, - 75 ) ) * - 12 / - 85 * + 93 * - - 87 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT - CAST( + 27 AS SIGNED ) * + 81
----
-2187

skipif mysql # not compatible
query I rowsort label-4051
SELECT - CAST ( + 27 AS INTEGER ) * + 81
----
-2187

onlyif mysql # DIV for integer division: 
query I rowsort label-4052
SELECT ALL - 65 DIV + 35 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL - 65 / + 35 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4053
SELECT + CASE 33 WHEN 98 THEN - 8 + + 84 WHEN ( - 85 ) THEN SUM( - 62 ) END - + COUNT( * ) * - + 84 / + 90 - 8 + - + CAST( NULL AS SIGNED ) * 75 * - - CASE WHEN NOT ( NULL ) IS NOT NULL THEN + CAST( - 48 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT + CASE 33 WHEN 98 THEN - 8 + + 84 WHEN ( - 85 ) THEN SUM ( - 62 ) END - + COUNT ( * ) * - + 84 / + 90 - 8 + - + CAST ( NULL AS INTEGER ) * 75 * - - CASE WHEN NOT ( NULL ) IS NOT NULL THEN + CAST ( - 48 AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT 40 + 64 DIV 6 + - - 54 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-4054
SELECT 40 + 64 / 6 + - - 54 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT ( - 78 ) * - 94 + - 90 * MAX( - 3 )
----
7602

skipif mysql # not compatible
query I rowsort label-4055
SELECT ( - 78 ) * - 94 + - 90 * MAX ( - 3 )
----
7602

query I rowsort
SELECT + 15 * 30 AS col0
----
450

query I rowsort
SELECT NULLIF ( - 84, 8 * + 83 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4058
SELECT - 24 - CAST( + + 83 AS SIGNED ) - - COUNT( ALL + 99 )
----
-106

skipif mysql # not compatible
query I rowsort label-4058
SELECT - 24 - CAST ( + + 83 AS INTEGER ) - - COUNT ( ALL + 99 )
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL + + COUNT( * ) + - 84 + + 6 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + + COUNT ( * ) + - 84 + + 6 AS col2
----
-77

query I rowsort
SELECT ALL - - NULLIF ( + + 88, + 93 + 72 - - + 30 * + 20 + 62 + - + 64 )
----
88

query I rowsort
SELECT DISTINCT 27 * + 51
----
1377

query I rowsort
SELECT DISTINCT - ( + 10 ) AS col1
----
-10

query I rowsort
SELECT ALL + 63 + + 18 + - 76 * - ( 32 ) * + ( - 56 ) + + 66 + + 35 AS col2
----
-136010

query I rowsort
SELECT + 73 * 93 * 23 + + - 79 AS col0
----
156068

onlyif mysql # DIV for integer division: 
query I rowsort label-4065
SELECT 63 DIV + + 21 + - + 11 * - 39 AS col1
----
432

skipif mysql # not compatible
query I rowsort label-4065
SELECT 63 / + + 21 + - + 11 * - 39 AS col1
----
432

query I rowsort
SELECT 27 * + ( 35 ) - 81
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT + 18 + + - COUNT( DISTINCT - 12 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT + 18 + + - COUNT ( DISTINCT - 12 ) AS col1
----
17

query I rowsort
SELECT DISTINCT + 73 * - 72
----
-5256

query I rowsort
SELECT 46 * + 21
----
966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4070
SELECT ALL + COUNT( ( + CAST( - 11 AS SIGNED ) ) ) * - 32
----
-32

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL + COUNT ( ( + CAST ( - 11 AS INTEGER ) ) ) * - 32
----
-32

query I rowsort
SELECT 27 + + 67 AS col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4072
SELECT 30 DIV - COALESCE ( + COUNT( * ), 46 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4072
SELECT 30 / - COALESCE ( + COUNT ( * ), 46 ) AS col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4073
SELECT COUNT( DISTINCT + 91 ) DIV 44 + - 9
----
-9

skipif mysql # not compatible
query I rowsort label-4073
SELECT COUNT ( DISTINCT + 91 ) / 44 + - 9
----
-9

query I rowsort
SELECT - 15 * + - 53 * + 95 + - + ( + 90 )
----
75435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT COUNT( * ) * - - 24 * ( - 5 ) - - 35 + 25 * - 62 / - 59 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT COUNT ( * ) * - - 24 * ( - 5 ) - - 35 + 25 * - 62 / - 59 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( + 84 ) AS col1
----
84

query I rowsort
SELECT + ( - 14 ) + 53 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL MAX( ALL - + ( - 48 ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL MAX ( ALL - + ( - 48 ) ) AS col2
----
48

query I rowsort
SELECT - 59 + + 5 * - ( + 58 ) * - 8
----
2261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4080
SELECT 6 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4080
SELECT 6 - - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 33 * - 20 AS col2
----
-660

query I rowsort
SELECT - 72 + + + 49 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT - COUNT( * ) - ( - 49 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4083
SELECT - COUNT ( * ) - ( - 49 ) AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4084
SELECT ALL CAST( NULL AS SIGNED ) * - + 98 - - + 25 + - 70 + + 64 AS col1, 16
----
NULL
16

skipif mysql # not compatible
query II rowsort label-4084
SELECT ALL CAST ( NULL AS INTEGER ) * - + 98 - - + 25 + - 70 + + 64 AS col1, 16
----
NULL
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4085
SELECT - 55 + COUNT( * ) AS col2, 57 AS col0
----
-54
57

skipif mysql # not compatible
query II rowsort label-4085
SELECT - 55 + COUNT ( * ) AS col2, 57 AS col0
----
-54
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4086
SELECT + COUNT( * ) + + - COUNT( * ) * + ( + ( 55 ) ) DIV - + 21
----
3

skipif mysql # not compatible
query I rowsort label-4086
SELECT + COUNT ( * ) + + - COUNT ( * ) * + ( + ( 55 ) ) / - + 21
----
3

query I rowsort
SELECT ALL + ( 99 ) * ( ( - 27 ) ) * - ( + NULLIF ( COALESCE ( - 42, 50 * - 14 ), - 12 + + - 81 ) ) - 73 AS col0
----
-112339

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4088
SELECT + COUNT( * ) + + ( - + 90 ) + + 84 * - COUNT( * ) + 24 DIV 99 DIV + + ( - 13 ) col1
----
-173

skipif mysql # not compatible
query I rowsort label-4088
SELECT + COUNT ( * ) + + ( - + 90 ) + + 84 * - COUNT ( * ) + 24 / 99 / + + ( - 13 ) col1
----
-173

query I rowsort
SELECT DISTINCT COALESCE ( - - 30, - 23 - + 45 * - 91 ) + 81 AS col1
----
111

query I rowsort
SELECT 15 * 56
----
840

query I rowsort
SELECT ALL 21 + - 71 AS col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT CAST( NULL AS SIGNED ) + + 93 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4092
SELECT CAST ( NULL AS INTEGER ) + + 93 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT COUNT( 15 )
----
1

skipif mysql # not compatible
query I rowsort label-4093
SELECT COUNT ( 15 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4094
SELECT + COUNT( * ), 76 AS col0
----
1
76

skipif mysql # not compatible
query II rowsort label-4094
SELECT + COUNT ( * ), 76 AS col0
----
1
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4095
SELECT 40 + + 67 - + CAST( + 3 AS SIGNED ) AS col0, 66 AS col2
----
104
66

skipif mysql # not compatible
query II rowsort label-4095
SELECT 40 + + 67 - + CAST ( + 3 AS INTEGER ) AS col0, 66 AS col2
----
104
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT + COUNT( * ), + 78 col0
----
1
78

skipif mysql # not compatible
query II rowsort label-4096
SELECT + COUNT ( * ), + 78 col0
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT COUNT( 81 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4097
SELECT COUNT ( 81 ) AS col2
----
1

query I rowsort
SELECT ALL + 38 * + 3 - + - 52 + NULLIF ( - + 8, 69 ) AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT + MAX( DISTINCT 62 )
----
62

skipif mysql # not compatible
query I rowsort label-4099
SELECT + MAX ( DISTINCT 62 )
----
62

query I rowsort
SELECT NULLIF ( - - 93, + + 15 ) * - + 69 col2
----
-6417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4101
SELECT ALL - COUNT( * ) col0, + CASE - 30 WHEN - 19 * + ( - 28 ) / 67 + - CASE 23 WHEN - 43 + + 57 THEN NULL WHEN 88 * 42 - - - 34 * 74 + - 46 * + + 74 / - CASE MIN( 25 ) WHEN - 4 THEN NULL WHEN - 52 THEN 65 + 30 END * COUNT( * ) - SUM( + 45 ) THEN NULL WHEN + - CAST( MIN( + 58 ) AS DECIMAL ) THEN 86 ELSE 56 * + CASE - 61 WHEN + 52 THEN - 2 + - - ( + - COUNT( * ) ) WHEN COUNT( * ) THEN 32 END END / - 28 - + COALESCE ( 53, CASE - 50 WHEN - 45 + + 28 * + 25 THEN COALESCE ( COALESCE ( + 9, CAST( NULL AS SIGNED ) * COUNT( * ) ), - COALESCE ( + MAX( ALL - 58 ), NULLIF ( - ( COUNT( * ) ), 66 * + 29 ), + COUNT( * ) * + 80 ) ) ELSE 31 END * CAST( NULL AS SIGNED ) ) THEN NULL WHEN 87 + 47 THEN - 73 END * CAST( - 26 AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4101
SELECT ALL - COUNT ( * ) col0, + CASE - 30 WHEN - 19 * + ( - 28 ) / 67 + - CASE 23 WHEN - 43 + + 57 THEN NULL WHEN 88 * 42 - - - 34 * 74 + - 46 * + + 74 / - CASE MIN ( 25 ) WHEN - 4 THEN NULL WHEN - 52 THEN 65 + 30 END * COUNT ( * ) - SUM ( + 45 ) THEN NULL WHEN + - CAST ( MIN ( + 58 ) AS REAL ) THEN 86 ELSE 56 * + CASE - 61 WHEN + 52 THEN - 2 + - - ( + - COUNT ( * ) ) WHEN COUNT ( * ) THEN 32 END END / - 28 - + COALESCE ( 53, CASE - 50 WHEN - 45 + + 28 * + 25 THEN COALESCE ( COALESCE ( + 9, CAST ( NULL AS INTEGER ) * COUNT ( * ) ), - COALESCE ( + MAX ( ALL - 58 ), NULLIF ( - ( COUNT ( * ) ), 66 * + 29 ), + COUNT ( * ) * + 80 ) ) ELSE 31 END * CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 87 + 47 THEN - 73 END * CAST ( - 26 AS INTEGER )
----
-1
NULL

query I rowsort
SELECT COALESCE ( - - 80, + ( + 82 ) ) + + 68
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT DISTINCT COUNT( - 64 ) * + 87 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT COUNT ( - 64 ) * + 87 AS col2
----
87

query I rowsort
SELECT 56 * - 44
----
-2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4105
SELECT 30 - - + COUNT( * ) * COUNT( * ) DIV + 77 + + ( - - 68 ) + 6 + + 47 DIV + + 7
----
110

skipif mysql # not compatible
query I rowsort label-4105
SELECT 30 - - + COUNT ( * ) * COUNT ( * ) / + 77 + + ( - - 68 ) + 6 + + 47 / + + 7
----
110

query I rowsort
SELECT ALL + 24 * + 88 AS col0
----
2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT ALL + - CAST( - - 16 AS SIGNED ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL + - CAST ( - - 16 AS INTEGER ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL + + 46 * - COALESCE ( - 85, + - 35, - + 80 + + COUNT( * ) ) AS col1
----
3910

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL + + 46 * - COALESCE ( - 85, + - 35, - + 80 + + COUNT ( * ) ) AS col1
----
3910

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL + 98 * - COUNT( * ) - 70 - - - 14
----
-182

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL + 98 * - COUNT ( * ) - 70 - - - 14
----
-182

query I rowsort
SELECT - 56 * 26 AS col2
----
-1456

query I rowsort
SELECT ( - - 47 ) AS col2
----
47

query I rowsort
SELECT - 70 * + - ( 84 )
----
5880

query I rowsort
SELECT + + 63 + + - 13
----
50

query I rowsort
SELECT - - 70 col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL - 82 + - - 99 * - COUNT( * ) col1
----
-181

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL - 82 + - - 99 * - COUNT ( * ) col1
----
-181

query II rowsort
SELECT + 47, - 55 AS col0
----
47
-55

query I rowsort
SELECT DISTINCT + ( 40 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT ALL - CASE - + 20 WHEN - + 31 THEN + ( + 54 ) + CAST( + 19 AS SIGNED ) * + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL - CASE - + 20 WHEN - + 31 THEN + ( + 54 ) + CAST ( + 19 AS INTEGER ) * + 31 END
----
NULL

query I rowsort
SELECT - + 2 * - + 4 * - 64 AS col2
----
-512

query I rowsort
SELECT DISTINCT 45 * - + 14
----
-630

query I rowsort
SELECT DISTINCT + 80 + + NULLIF ( + 90, - - 31 )
----
170

query I rowsort
SELECT ALL - - 61 + + 99 AS col2
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-4123
SELECT - 72 - - + 28 - - COUNT( * ) AS col1, 58 - + + 35
----
-43
23

skipif mysql # not compatible
query II rowsort label-4123
SELECT - 72 - - + 28 - - COUNT ( * ) AS col1, 58 - + + 35
----
-43
23

query I rowsort
SELECT ALL + 30 * - 33
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT - NULLIF ( + 32, + 64 * COUNT( * ) * - 70 + - 17 * - 97 + - COUNT( * ) - - 10 + - 41 + 11 * + 94 * 97 + + 17 + + 80 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-4125
SELECT - NULLIF ( + 32, + 64 * COUNT ( * ) * - 70 + - 17 * - 97 + - COUNT ( * ) - - 10 + - 41 + 11 * + 94 * 97 + + 17 + + 80 ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT - 80 + - ( + COUNT( * ) ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4126
SELECT - 80 + - ( + COUNT ( * ) ) AS col0
----
-81

query I rowsort
SELECT - 97 * + 92 AS col1
----
-8924

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL ( CASE + + 42 WHEN 38 + - NULLIF ( 23, - + 48 ) THEN NULL WHEN 42 / - MAX( - + ( + 31 ) ) THEN 75 + 63 WHEN + 23 THEN NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL ( CASE + + 42 WHEN 38 + - NULLIF ( 23, - + 48 ) THEN NULL WHEN 42 / - MAX ( - + ( + 31 ) ) THEN 75 + 63 WHEN + 23 THEN NULL END ) col0
----
NULL

query I rowsort
SELECT ALL + 73 * - 67 AS col1
----
-4891

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT DISTINCT + COUNT( ( + 87 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT + COUNT ( ( + 87 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT ALL 61 DIV CASE 22 WHEN - - 16 + - 51 * + - 35 THEN NULL ELSE + - 56 END
----
-1

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL 61 / CASE 22 WHEN - - 16 + - 51 * + - 35 THEN NULL ELSE + - 56 END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT ALL - 16 * + 37 - + 3 * + SUM( + ( - 62 ) ) col1
----
-406

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL - 16 * + 37 - + 3 * + SUM ( + ( - 62 ) ) col1
----
-406

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4133
SELECT + 19 / - - CAST( NULL AS DECIMAL ) * + ( - 64 ) * - 23 * - - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT + 19 / - - CAST ( NULL AS REAL ) * + ( - 64 ) * - 23 * - - 95
----
NULL

query II rowsort
SELECT + 31 * + + 48 AS col0, + 12 col0
----
1488
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4135
SELECT + 45 * + 46 - - - COUNT( * ) + + COUNT( * ), 2 AS col1
----
2070
2

skipif mysql # not compatible
query II rowsort label-4135
SELECT + 45 * + 46 - - - COUNT ( * ) + + COUNT ( * ), 2 AS col1
----
2070
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4136
SELECT + 83 DIV + 99 * COUNT( DISTINCT + 40 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4136
SELECT + 83 / + 99 * COUNT ( DISTINCT + 40 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4137
SELECT ALL 89 DIV + 19
----
4

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL 89 / + 19
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT CASE - SUM( - 8 ) WHEN 41 THEN + 10 WHEN - ( 87 ) + ( + 28 ) + + 56 THEN ( - 52 ) * COUNT( + - NULLIF ( - - ( - 77 ), - + 79 ) ) + - + 47 - - 11 + + ( - + 12 ) ELSE - + 87 + - 40 END
----
-127

skipif mysql # not compatible
query I rowsort label-4138
SELECT CASE - SUM ( - 8 ) WHEN 41 THEN + 10 WHEN - ( 87 ) + ( + 28 ) + + 56 THEN ( - 52 ) * COUNT ( + - NULLIF ( - - ( - 77 ), - + 79 ) ) + - + 47 - - 11 + + ( - + 12 ) ELSE - + 87 + - 40 END
----
-127

query I rowsort
SELECT DISTINCT 30 * 80 AS col1
----
2400

query I rowsort
SELECT + + ( + - 27 ) + 5
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL 48 * - COUNT( * ) * - 58 + + COUNT( * ) col2
----
2785

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL 48 * - COUNT ( * ) * - 58 + + COUNT ( * ) col2
----
2785

query I rowsort
SELECT - 88 * - + 97 * - 50 AS col2
----
-426800

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT + SUM( + 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT + SUM ( + 15 ) AS col0
----
15

query II rowsort
SELECT + + 72 + - 18, - 84 + 85 AS col2
----
54
1

query II rowsort
SELECT - ( + 55 ) AS col1, + 22 AS col1
----
-55
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4146
SELECT + + 49 * - - 3 + + 69 + - 72 + - COUNT( + 49 ) DIV + + 34 + COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-4146
SELECT + + 49 * - - 3 + + 69 + - 72 + - COUNT ( + 49 ) / + + 34 + COUNT ( * )
----
145

query II rowsort
SELECT - - 92 * - 81 - + 63 + + - 56 AS col2, 68 AS col0
----
-7571
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4148
SELECT ALL + 34 * - 34 + + - SUM( + CAST( NULL AS SIGNED ) ) + - 69 + + - 42 + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL + 34 * - 34 + + - SUM ( + CAST ( NULL AS INTEGER ) ) + - 69 + + - 42 + + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL - 84 * + 87 + - - 86 - + - 57 - + 13 - + COUNT( * ) + - - 77 * + - 78 AS col1
----
-13185

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - 84 * + 87 + - - 86 - + - 57 - + 13 - + COUNT ( * ) + - - 77 * + - 78 AS col1
----
-13185

query I rowsort
SELECT - 4 + + - 14
----
-18

query I rowsort
SELECT ALL + 51 + + 71
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4152
SELECT DISTINCT - 93 * + COUNT( * ) - - ( + + ( - 14 ) ) / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT - 93 * + COUNT ( * ) - - ( + + ( - 14 ) ) / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT - + 65 - COUNT( + 10 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4153
SELECT - + 65 - COUNT ( + 10 ) AS col2
----
-66

query I rowsort
SELECT DISTINCT - + ( - 16 ) * - - 35
----
560

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT - 97 DIV - 70
----
1

skipif mysql # not compatible
query I rowsort label-4155
SELECT - 97 / - 70
----
1

query I rowsort
SELECT DISTINCT NULLIF ( + + 60, + 46 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL + COUNT( * ) * - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - 74 + + 37 AS col2
----
-37

query I rowsort
SELECT ALL 20 * + 14 AS col1
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT - COUNT( * ) + + 42
----
41

skipif mysql # not compatible
query I rowsort label-4160
SELECT - COUNT ( * ) + + 42
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT ALL CAST( 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL CAST ( 42 AS INTEGER )
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4162
SELECT - COALESCE ( 44, 91 * - 36 + + + 38 * 74 ) * - 36 * - + 2 * + 64 / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4162
SELECT - COALESCE ( 44, 91 * - 36 + + + 38 * 74 ) * - 36 * - + 2 * + 64 / + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4163
SELECT - COALESCE ( + 38, - CASE COUNT( * ) WHEN - 17 * + COUNT( * ) * - + COUNT( * ) THEN NULL WHEN - - COUNT( * ) THEN + 89 * + 55 DIV CASE - - 32 WHEN 15 THEN NULL ELSE + 20 + + 38 + + NULLIF ( + 23, + - 14 ) END * 41 ELSE 95 + - 45 END ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-4163
SELECT - COALESCE ( + 38, - CASE COUNT ( * ) WHEN - 17 * + COUNT ( * ) * - + COUNT ( * ) THEN NULL WHEN - - COUNT ( * ) THEN + 89 * + 55 / CASE - - 32 WHEN 15 THEN NULL ELSE + 20 + + 38 + + NULLIF ( + 23, + - 14 ) END * 41 ELSE 95 + - 45 END ) AS col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT ALL + CAST( NULL AS SIGNED ) * - - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT + 96 + - - NULLIF ( + 1, + 74 * 12 / 76 ) * - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-4165
SELECT + 96 + - - NULLIF ( + 1, + 74 * 12 / 76 ) * - COUNT ( * )
----
95

query I rowsort
SELECT - 7 * + 26
----
-182

query I rowsort
SELECT DISTINCT 19 * - 61 AS col2
----
-1159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4168
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COALESCE ( + - 69, - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COALESCE ( + - 69, - COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - ( - 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL - COUNT( + - 75 ) + 28 * 37
----
1035

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL - COUNT ( + - 75 ) + 28 * 37
----
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT + NULLIF ( 38, + MAX( ALL - - COALESCE ( 68, + 26 * - - 34, - ( - - 2 ) ) ) )
----
38

skipif mysql # not compatible
query I rowsort label-4171
SELECT + NULLIF ( 38, + MAX ( ALL - - COALESCE ( 68, + 26 * - - 34, - ( - - 2 ) ) ) )
----
38

query I rowsort
SELECT + 25 * 42
----
1050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4173
SELECT COUNT( - 63 ) * 56 col1, + 38 * - CAST( NULL AS SIGNED ) * 62 AS col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-4173
SELECT COUNT ( - 63 ) * 56 col1, + 38 * - CAST ( NULL AS INTEGER ) * 62 AS col0
----
56
NULL

query I rowsort
SELECT - 70 * 20 + + - 37 AS col1
----
-1437

query I rowsort
SELECT 53 * + + 96 AS col0
----
5088

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4176
SELECT + + 84 AS col0, + 20 - + - 45, - - 85 * - + ( + 39 ) + + ( - + 91 ) * CASE 13 WHEN - 62 * 58 * - ( + - 98 ) THEN 74 + - 86 - + CASE + - 72 WHEN + 81 THEN + ( - + 33 ) + - 70 DIV - 35 * - 87 * + 2 END ELSE - 10 * COUNT( * ) END + COUNT( * ) + 15 + - 76 + - - COUNT( * ) AS col2
----
84
65
-2464

skipif mysql # not compatible
query III rowsort label-4176
SELECT + + 84 AS col0, + 20 - + - 45, - - 85 * - + ( + 39 ) + + ( - + 91 ) * CASE 13 WHEN - 62 * 58 * - ( + - 98 ) THEN 74 + - 86 - + CASE + - 72 WHEN + 81 THEN + ( - + 33 ) + - 70 / - 35 * - 87 * + 2 END ELSE - 10 * COUNT ( * ) END + COUNT ( * ) + 15 + - 76 + - - COUNT ( * ) AS col2
----
84
65
-2464

query I rowsort
SELECT ALL - 55 + + + CASE 62 WHEN + + 26 * + 3 + + 50 + - + 49 + + 26 * + 74 THEN - 35 / - 78 * + - 67 + - + ( 44 ) END * 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT ALL 49 * - ( + + COUNT( * ) ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL 49 * - ( + + COUNT ( * ) ) * - 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4179
SELECT ALL - - 74 + + 21 * + COUNT( * ) AS col0, + 11 AS col0
----
95
11

skipif mysql # not compatible
query II rowsort label-4179
SELECT ALL - - 74 + + 21 * + COUNT ( * ) AS col0, + 11 AS col0
----
95
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT 67 * + - 76 + CASE - COUNT( * ) WHEN - - COALESCE ( + 81, - + SUM( DISTINCT - 31 ) ) THEN 33 END + - - ( - + 54 ) + 91 / + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT 67 * + - 76 + CASE - COUNT ( * ) WHEN - - COALESCE ( + 81, - + SUM ( DISTINCT - 31 ) ) THEN 33 END + - - ( - + 54 ) + 91 / + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 79 * 40 AS col2
----
3160

query I rowsort
SELECT - NULLIF ( 56, - + 64 / 61 + + + 45 + - + 37 ) + + 61 col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL + - 94 - - + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL + - 94 - - + COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT - ( - COUNT( * ) ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4184
SELECT - ( - COUNT ( * ) ) - + COUNT ( * )
----
0

query I rowsort
SELECT 2 * + - 91 * - 33
----
6006

query II rowsort
SELECT ALL 21 AS col0, - 18
----
21
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4187
SELECT DISTINCT 84 col0, - COALESCE ( - 52, - 81 + 38 * + - 78 DIV + 13 + - 4 * + COUNT( * ) * + 95 * + NULLIF ( 0, AVG ( ALL 95 ) + - ( + 24 ) ) ) + COUNT( DISTINCT - 49 ) + - + 90
----
84
-37

skipif mysql # not compatible
query II rowsort label-4187
SELECT DISTINCT 84 col0, - COALESCE ( - 52, - 81 + 38 * + - 78 / + 13 + - 4 * + COUNT ( * ) * + 95 * + NULLIF ( 0, AVG ( ALL 95 ) + - ( + 24 ) ) ) + COUNT ( DISTINCT - 49 ) + - + 90
----
84
-37

query II rowsort
SELECT - 85, COALESCE ( 13, + 54 * + 95 * + 10 * + 7 * + 76 ) AS col2
----
-85
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4189
SELECT 17 AS col0, + CAST( + COUNT( * ) AS SIGNED )
----
17
1

skipif mysql # not compatible
query II rowsort label-4189
SELECT 17 AS col0, + CAST ( + COUNT ( * ) AS INTEGER )
----
17
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT CAST( NULL AS SIGNED ) + 45 / - 23 + + 34 + - 1 + + ( + ( ( - + 82 ) ) ) * - 5 + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT CAST ( NULL AS INTEGER ) + 45 / - 23 + + 34 + - 1 + + ( + ( ( - + 82 ) ) ) * - 5 + 3 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4191
SELECT 59 DIV - - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4191
SELECT 59 / - - 67 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4192
SELECT 36 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-4192
SELECT 36 / - 92
----
0

query I rowsort
SELECT 40 + + 49 + - 74 AS col2
----
15

query I rowsort
SELECT ALL 90 * - + 93 * + 85
----
-711450

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL NULLIF ( + 57, 83 + - 41 + - + 64 / + COALESCE ( + CASE ( 55 ) WHEN NULLIF ( + 8, COUNT( * ) ) THEN + 12 + CASE - - 50 WHEN + 68 - + 43 * - ( + + 1 ) * + + 74 * - 47 THEN + - 71 WHEN + - ( + 68 ) * - 41 * 21 * - 29 THEN NULL ELSE NULL END ELSE - 43 END, - 59 + + - 36, - 83 + COALESCE ( ( ( 98 ) ), COUNT( DISTINCT - 69 ) * - - 39, 59 + + 92 + - 88 + - COUNT( * ) ), 78 ) ) + ( - COUNT( * ) )
----
56

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL NULLIF ( + 57, 83 + - 41 + - + 64 / + COALESCE ( + CASE ( 55 ) WHEN NULLIF ( + 8, COUNT ( * ) ) THEN + 12 + CASE - - 50 WHEN + 68 - + 43 * - ( + + 1 ) * + + 74 * - 47 THEN + - 71 WHEN + - ( + 68 ) * - 41 * 21 * - 29 THEN NULL ELSE NULL END ELSE - 43 END, - 59 + + - 36, - 83 + COALESCE ( ( ( 98 ) ), COUNT ( DISTINCT - 69 ) * - - 39, 59 + + 92 + - 88 + - COUNT ( * ) ), 78 ) ) + ( - COUNT ( * ) )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4196
SELECT ALL + 65 DIV + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + 65 / + COUNT ( * ) AS col2
----
65

query I rowsort
SELECT ALL - 11 + 9
----
-2

query I rowsort
SELECT 74 + - 55 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT - COUNT( ALL + ( - 28 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4199
SELECT - COUNT ( ALL + ( - 28 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4200
SELECT - ( + MIN( + 7 ) ) * - CAST( - 98 AS SIGNED )
----
-686

skipif mysql # not compatible
query I rowsort label-4200
SELECT - ( + MIN ( + 7 ) ) * - CAST ( - 98 AS INTEGER )
----
-686

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT + - COALESCE ( 41, - 29 ) DIV - 54 + + - 74 * - 42 + - 4 + - 68 AS col0
----
3036

skipif mysql # not compatible
query I rowsort label-4201
SELECT + - COALESCE ( 41, - 29 ) / - 54 + + - 74 * - 42 + - 4 + - 68 AS col0
----
3036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT - CASE CASE + - 1 WHEN 65 THEN - MAX( CAST( NULL AS SIGNED ) ) / - - 61 + + 25 + + + COUNT( * ) * - 60 WHEN 28 THEN - COUNT( * ) * 99 * - CAST( - 8 AS SIGNED ) + 39 * - NULLIF ( + 14, 26 * COUNT( * ) * - 84 + 93 + + 10 * 78 ) + CASE 27 WHEN 83 THEN NULL WHEN + 74 THEN + COUNT( * ) END ELSE NULL END WHEN + COUNT( * ) THEN NULL WHEN - + 39 THEN + + 94 END * - 9 * 86 * + ( + + 11 ) - + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT - CASE CASE + - 1 WHEN 65 THEN - MAX ( CAST ( NULL AS INTEGER ) ) / - - 61 + + 25 + + + COUNT ( * ) * - 60 WHEN 28 THEN - COUNT ( * ) * 99 * - CAST ( - 8 AS INTEGER ) + 39 * - NULLIF ( + 14, 26 * COUNT ( * ) * - 84 + 93 + + 10 * 78 ) + CASE 27 WHEN 83 THEN NULL WHEN + 74 THEN + COUNT ( * ) END ELSE NULL END WHEN + COUNT ( * ) THEN NULL WHEN - + 39 THEN + + 94 END * - 9 * 86 * + ( + + 11 ) - + 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL - - 43 * - + CASE - - 5 WHEN - 78 * - 40 THEN + AVG ( DISTINCT + - 10 ) END + COUNT( ALL - - 53 ) * - + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - - 43 * - + CASE - - 5 WHEN - 78 * - 40 THEN + AVG ( DISTINCT + - 10 ) END + COUNT ( ALL - - 53 ) * - + 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT DISTINCT + 17 + - SUM( + 73 ) + + 42 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT + 17 + - SUM ( + 73 ) + + 42 AS col2
----
-14

query I rowsort
SELECT DISTINCT - 59 + 46
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT + CASE MAX( + + 95 ) WHEN + 32 * - 32 + + - COUNT( * ) * + - 70 THEN NULL ELSE + ( + ( - - COALESCE ( + 19, + + 79, - 33 ) ) ) * 70 * + 77 END
----
102410

skipif mysql # not compatible
query I rowsort label-4206
SELECT + CASE MAX ( + + 95 ) WHEN + 32 * - 32 + + - COUNT ( * ) * + - 70 THEN NULL ELSE + ( + ( - - COALESCE ( + 19, + + 79, - 33 ) ) ) * 70 * + 77 END
----
102410

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT + + 30 + COUNT( * ) + - - 82
----
113

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT + + 30 + COUNT ( * ) + - - 82
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-4208
SELECT ALL - + 33, + 56 * - MIN( ALL - + 84 ) AS col0
----
-33
4704

skipif mysql # not compatible
query II rowsort label-4208
SELECT ALL - + 33, + 56 * - MIN ( ALL - + 84 ) AS col0
----
-33
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT COUNT( * ) - 69 col2
----
-68

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT COUNT ( * ) - 69 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT - CASE + 60 WHEN + - COUNT( * ) THEN MIN( ALL + + 31 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT - CASE + 60 WHEN + - COUNT ( * ) THEN MIN ( ALL + + 31 ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT + MIN( ALL + + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-4211
SELECT + MIN ( ALL + + 12 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4212
SELECT ALL - CAST( - CASE - COUNT( * ) WHEN + 34 THEN NULL WHEN - - AVG ( - + CAST( + 77 AS SIGNED ) ) * + 6 THEN COUNT( - 97 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL - CAST ( - CASE - COUNT ( * ) WHEN + 34 THEN NULL WHEN - - AVG ( - + CAST ( + 77 AS INTEGER ) ) * + 6 THEN COUNT ( - 97 ) END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4213
SELECT - COUNT( * ) + 49 AS col1, 8 * - - CAST( NULL AS SIGNED ) AS col2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-4213
SELECT - COUNT ( * ) + 49 AS col1, 8 * - - CAST ( NULL AS INTEGER ) AS col2
----
48
NULL

query I rowsort
SELECT 78 + - + 61
----
17

query II rowsort
SELECT ALL 96 * 65 * - 41 + - 14 AS col2, + 30
----
-255854
30

query I rowsort
SELECT - 66 * 1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4217
SELECT ALL + - MIN( DISTINCT ( 67 ) ) DIV + + 23 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL + - MIN ( DISTINCT ( 67 ) ) / + + 23 AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4218
SELECT DISTINCT + - SUM( DISTINCT - 15 ) - - 15 DIV + 45 + + - 20 * - + ( + 23 ) AS col0
----
475

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT + - SUM ( DISTINCT - 15 ) - - 15 / + 45 + + - 20 * - + ( + 23 ) AS col0
----
475

query I rowsort
SELECT ALL 45 * ( 49 )
----
2205

query I rowsort
SELECT DISTINCT 74 * - 97 * 76 AS col2
----
-545528

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT 14 * - + COUNT( + 72 ) * 69
----
-966

skipif mysql # not compatible
query I rowsort label-4221
SELECT 14 * - + COUNT ( + 72 ) * 69
----
-966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4222
SELECT DISTINCT 96 + 26 + - COUNT( * ) DIV - + 33 * + 93 DIV - + 30
----
122

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT 96 + 26 + - COUNT ( * ) / - + 33 * + 93 / - + 30
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-4223
SELECT DISTINCT COUNT( * ) + + 10, - 43 AS col2
----
11
-43

skipif mysql # not compatible
query II rowsort label-4223
SELECT DISTINCT COUNT ( * ) + + 10, - 43 AS col2
----
11
-43

query I rowsort
SELECT ALL + 79 + 91 * 21
----
1990

query II rowsort
SELECT ALL 43 + + NULLIF ( 87, - + 7 + 33 ) AS col1, 30
----
130
30

query II rowsort
SELECT DISTINCT 60 + + COALESCE ( 44, + - 27, + 53 ) AS col1, 89 col0
----
104
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4227
SELECT - CASE - 50 WHEN + NULLIF ( + - 90, + 93 ) THEN COUNT( * ) * + 43 + + COUNT( * ) ELSE + 68 * MAX( ALL - - 1 ) + - MIN( DISTINCT + 47 ) END DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-4227
SELECT - CASE - 50 WHEN + NULLIF ( + - 90, + 93 ) THEN COUNT ( * ) * + 43 + + COUNT ( * ) ELSE + 68 * MAX ( ALL - - 1 ) + - MIN ( DISTINCT + 47 ) END / + 72
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT ALL 95 + + 59 / 85 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL 95 + + 59 / 85 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT + COUNT( + - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-4229
SELECT + COUNT ( + - 60 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4230
SELECT - - 10 * + 33 + 78 col1, COUNT( * ) + + + 83
----
408
84

skipif mysql # not compatible
query II rowsort label-4230
SELECT - - 10 * + 33 + 78 col1, COUNT ( * ) + + + 83
----
408
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4231
SELECT ALL + - ( 6 ) DIV 4 + + ( + 74 ) DIV + 28
----
1

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL + - ( 6 ) / 4 + + ( + 74 ) / + 28
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT 19 DIV - 21 + + 34
----
34

skipif mysql # not compatible
query I rowsort label-4232
SELECT 19 / - 21 + + 34
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4233
SELECT - - 60 DIV - 46 + - ( 87 ) + - CAST( - + COUNT( * ) AS SIGNED ) * - 85 + ( COUNT( * ) ) AS col2
----
-172

skipif mysql # not compatible
query I rowsort label-4233
SELECT - - 60 / - 46 + - ( 87 ) + - CAST ( - + COUNT ( * ) AS INTEGER ) * - 85 + ( COUNT ( * ) ) AS col2
----
-172

onlyif mysql # aggregate syntax: 
query II rowsort label-4234
SELECT DISTINCT + + ( - 42 ), COUNT( * ) AS col2
----
-42
1

skipif mysql # not compatible
query II rowsort label-4234
SELECT DISTINCT + + ( - 42 ), COUNT ( * ) AS col2
----
-42
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4235
SELECT + - ( + CAST( + 37 AS SIGNED ) ) col0, + 27 * - + 27 * - 39 - + CAST( NULL AS SIGNED ) * + + 8
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-4235
SELECT + - ( + CAST ( + 37 AS INTEGER ) ) col0, + 27 * - + 27 * - 39 - + CAST ( NULL AS INTEGER ) * + + 8
----
-37
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4236
SELECT ALL + CASE - AVG ( - CAST( NULL AS SIGNED ) ) WHEN + 64 * - 97 + - SUM( DISTINCT + + 32 ) THEN 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL + CASE - AVG ( - CAST ( NULL AS INTEGER ) ) WHEN + 64 * - 97 + - SUM ( DISTINCT + + 32 ) THEN 90 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT - 14 - 73 + + - 57 * 63 + - 18 DIV - + 62 AS col0
----
-3678

skipif mysql # not compatible
query I rowsort label-4237
SELECT - 14 - 73 + + - 57 * 63 + - 18 / - + 62 AS col0
----
-3678

query I rowsort
SELECT - + 7 * + 28 + + 45 + + 19 * - - 15 col1
----
134

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4239
SELECT - 97 * 36 * - + 11 + + 85 + CAST( NULL AS SIGNED ), - CAST( NULL AS DECIMAL ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4239
SELECT - 97 * 36 * - + 11 + + 85 + CAST ( NULL AS INTEGER ), - CAST ( NULL AS REAL ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4240
SELECT ALL + COUNT( * ) * + ( - SUM( + 90 ) ) * - - CAST( NULL AS SIGNED ) * MAX( - + 0 ) / - - CASE + MAX( + + 60 ) WHEN - + 39 THEN - - COALESCE ( 87, - 22 ) * COUNT( * ) END * + MAX( ALL + 10 ) + - + 20 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL + COUNT ( * ) * + ( - SUM ( + 90 ) ) * - - CAST ( NULL AS INTEGER ) * MAX ( - + 0 ) / - - CASE + MAX ( + + 60 ) WHEN - + 39 THEN - - COALESCE ( 87, - 22 ) * COUNT ( * ) END * + MAX ( ALL + 10 ) + - + 20 col2
----
NULL

query I rowsort
SELECT DISTINCT + 70 * + 49 * - 86
----
-294980

query I rowsort
SELECT ALL + - 48 * - - 19 * + 16
----
-14592

query II rowsort
SELECT - 72, - 87 * - NULLIF ( - 47, 25 ) * - ( + - ( 52 ) ) AS col0
----
-72
-212628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4244
SELECT SUM( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT SUM ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT DISTINCT CAST( + + 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT CAST ( + + 9 AS INTEGER )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4246
SELECT - MIN( + 0 ) DIV - - 78 * + 35 * + 61
----
0

skipif mysql # not compatible
query I rowsort label-4246
SELECT - MIN ( + 0 ) / - - 78 * + 35 * + 61
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4247
SELECT + ( 38 ) * + CAST( NULL AS SIGNED ) + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT + ( 38 ) * + CAST ( NULL AS INTEGER ) + + 55
----
NULL

query I rowsort
SELECT DISTINCT - 56 + - 29 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4249
SELECT - COUNT( * ), + COUNT( * ) * 81 AS col0
----
-1
81

skipif mysql # not compatible
query II rowsort label-4249
SELECT - COUNT ( * ), + COUNT ( * ) * 81 AS col0
----
-1
81

query I rowsort
SELECT ALL 55 + - - 73 col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL + 83 * - 87 * NULLIF ( - - COUNT( * ), 67 + COUNT( * ) )
----
-7221

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL + 83 * - 87 * NULLIF ( - - COUNT ( * ), 67 + COUNT ( * ) )
----
-7221

query I rowsort
SELECT DISTINCT 2 * 76 * + - 4 AS col2
----
-608

query II rowsort
SELECT DISTINCT 0, 53 - + 32 * + 11 AS col0
----
0
-299

query I rowsort
SELECT - 25 + 96 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT ALL 95 + 18 + + COUNT( * ) AS col1
----
114

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL 95 + 18 + + COUNT ( * ) AS col1
----
114

query I rowsort
SELECT + 1 + + 22 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT + MIN( - COALESCE ( - 12, + 1, 31 ) ) + + + 73 + + - 57 + + 81 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-4257
SELECT + MIN ( - COALESCE ( - 12, + 1, 31 ) ) + + + 73 + + - 57 + + 81 AS col0
----
109

query I rowsort
SELECT + 83 * 97 * - 21 AS col2
----
-169071

query II rowsort
SELECT ALL 64, - 76 AS col1
----
64
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT + 53 + + MAX( DISTINCT + 83 ) - COUNT( * ) * ( + + ( - 46 ) )
----
182

skipif mysql # not compatible
query I rowsort label-4260
SELECT + 53 + + MAX ( DISTINCT + 83 ) - COUNT ( * ) * ( + + ( - 46 ) )
----
182

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4261
SELECT ALL 59 + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL 59 + - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 18 - - + ( + + 26 ) + - 14 + - - 90 * - 87 * - 78 AS col0
----
610770

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT ALL - 70 - + - 46 DIV - 21 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL - 70 - + - 46 / - 21 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT + - 64 + - - NULLIF ( + 93, COUNT( * ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4264
SELECT + - 64 + - - NULLIF ( + 93, COUNT ( * ) ) AS col0
----
29

query II rowsort
SELECT ALL + 3 AS col1, 13 col1
----
3
13

query II rowsort
SELECT ALL + - 71 col2, - 35
----
-71
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4267
SELECT ALL NULLIF ( + MAX( + 99 ), + 85 - COALESCE ( 97, CAST( ( 3 ) AS SIGNED ), 6 * + 31 + + 28 - - COALESCE ( COUNT( * ), - 33 ) + + ( - - ( - + 53 ) ) / + 20 + + CAST( - COUNT( * ) AS SIGNED ) ) ) * 27
----
2673

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL NULLIF ( + MAX ( + 99 ), + 85 - COALESCE ( 97, CAST ( ( 3 ) AS INTEGER ), 6 * + 31 + + 28 - - COALESCE ( COUNT ( * ), - 33 ) + + ( - - ( - + 53 ) ) / + 20 + + CAST ( - COUNT ( * ) AS INTEGER ) ) ) * 27
----
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT - ( ( + COUNT( * ) ) ) * 36
----
-36

skipif mysql # not compatible
query I rowsort label-4268
SELECT - ( ( + COUNT ( * ) ) ) * 36
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4269
SELECT ALL + + COUNT( * ), 80 * + 40 AS col0
----
1
3200

skipif mysql # not compatible
query II rowsort label-4269
SELECT ALL + + COUNT ( * ), 80 * + 40 AS col0
----
1
3200

query I rowsort
SELECT + 12 + + + 14 AS col1
----
26

query I rowsort
SELECT ALL + ( - + 92 )
----
-92

query I rowsort
SELECT + - 37 * - 36 * 10 + - 94
----
13226

query II rowsort
SELECT - - 32 * - 41 * NULLIF ( + 80, - - 45 * - - 49 ) AS col2, 7
----
-104960
7

query I rowsort
SELECT ALL - 74 * 56
----
-4144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT 88 * + CAST( + + 88 AS SIGNED ) * + - 84 * 64 + + + 46 + + + 1 + 69
----
-41631628

skipif mysql # not compatible
query I rowsort label-4275
SELECT 88 * + CAST ( + + 88 AS INTEGER ) * + - 84 * 64 + + + 46 + + + 1 + 69
----
-41631628

query I rowsort
SELECT - 29 * - 61 - + ( - 87 ) + + 42 col2
----
1898

query I rowsort
SELECT - 87 * + - ( 81 ) + 3 col0
----
7050

query I rowsort
SELECT + 15 + + - 91
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4279
SELECT ALL + CAST( NULL AS DECIMAL ) * + + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + CAST ( NULL AS REAL ) * + + 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT + 96 + SUM( + 48 )
----
144

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT + 96 + SUM ( + 48 )
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT DISTINCT + 24 + + + 44 * - 54 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT + 24 + + + 44 * - 54 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 56 + ( 6 ) AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT DISTINCT + CAST( + 5 AS SIGNED ) + - 78
----
-73

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT + CAST ( + 5 AS INTEGER ) + - 78
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4284
SELECT ALL - 52 DIV + 57 * + COUNT( * ) * - - 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - 52 / + 57 * + COUNT ( * ) * - - 56 AS col0
----
0

query I rowsort
SELECT DISTINCT 7 * 91
----
637

query I rowsort
SELECT 84 * - 28 * + 7
----
-16464

query I rowsort
SELECT ALL 42 * + 40 col0
----
1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4288
SELECT + CAST( - + 51 AS SIGNED ) * 80
----
-4080

skipif mysql # not compatible
query I rowsort label-4288
SELECT + CAST ( - + 51 AS INTEGER ) * 80
----
-4080

query I rowsort
SELECT 84 * - + 67 * 47
----
-264516

query II rowsort
SELECT ALL + + 81 * + 62, 80 col1
----
5022
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL - - MAX( DISTINCT - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL - - MAX ( DISTINCT - 66 )
----
-66

query I rowsort
SELECT DISTINCT + ( 54 ) * + + 0
----
0

query I rowsort
SELECT ALL - COALESCE ( - 98, + 74 * NULLIF ( + 13, - ( - 55 ) ) ) * NULLIF ( - 74, 88 + + - 66 ) + 22
----
-7230

query I rowsort
SELECT 99 * - + 52 + 66 AS col2
----
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL + 20 + + 30 * + COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL + 20 + + 30 * + COUNT ( * ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL COUNT( * ) + - 82 * + CASE 37 WHEN - - COUNT( * ) / + + 59 + - 6 * + COUNT( * ) THEN + ( - + ( - - 27 ) ) * + COUNT( * ) + 1 + + 47 WHEN - 40 THEN 95 WHEN - - MIN( DISTINCT + 52 ) THEN NULL ELSE NULL END + - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL COUNT ( * ) + - 82 * + CASE 37 WHEN - - COUNT ( * ) / + + 59 + - 6 * + COUNT ( * ) THEN + ( - + ( - - 27 ) ) * + COUNT ( * ) + 1 + + 47 WHEN - 40 THEN 95 WHEN - - MIN ( DISTINCT + 52 ) THEN NULL ELSE NULL END + - 81 AS col1
----
NULL

query I rowsort
SELECT + - COALESCE ( + COALESCE ( - + 41, 84, - 5 ), 79 )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4298
SELECT + 12 + CASE + - 9 WHEN - 40 THEN NULL WHEN 21 THEN NULL ELSE - - ( + COUNT( * ) ) DIV + 19 END + - 51 - + + 46 DIV SUM( DISTINCT + 58 )
----
-39

skipif mysql # not compatible
query I rowsort label-4298
SELECT + 12 + CASE + - 9 WHEN - 40 THEN NULL WHEN 21 THEN NULL ELSE - - ( + COUNT ( * ) ) / + 19 END + - 51 - + + 46 / SUM ( DISTINCT + 58 )
----
-39

query I rowsort
SELECT ALL + 70 * + 79 * + 48 * + 77
----
20438880

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4300
SELECT ( 88 ) DIV CAST( + ( 69 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4300
SELECT ( 88 ) / CAST ( + ( 69 ) AS INTEGER ) AS col0
----
1

query II rowsort
SELECT 11 AS col1, - 47 AS col0
----
11
-47

query I rowsort
SELECT DISTINCT ( + 93 ) * + 64
----
5952

query I rowsort
SELECT ALL 50 * - + 86 AS col0
----
-4300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4304
SELECT 56 DIV - + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-4304
SELECT 56 / - + COUNT ( * )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4305
SELECT DISTINCT - 38 DIV - - ( - 65 ) * + - 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT - 38 / - - ( - 65 ) * + - 10 AS col1
----
0

query I rowsort
SELECT DISTINCT - 97 col1
----
-97

query I rowsort
SELECT ALL 43 + + + 97
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4308
SELECT ALL - 20 * CAST( CASE - 70 WHEN 32 THEN - + 4 / + + COUNT( * ) + - 17 WHEN - - 42 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL - 20 * CAST ( CASE - 70 WHEN 32 THEN - + 4 / + + COUNT ( * ) + - 17 WHEN - - 42 THEN NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT 91 * - 92 * 19
----
-159068

query II rowsort
SELECT - 47 AS col2, + 38 * - 88 AS col2
----
-47
-3344

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL - COUNT( * ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT 80 - - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4312
SELECT 80 - - COUNT ( * )
----
81

query I rowsort
SELECT ALL 77 * + 35 * + 82
----
220990

query II rowsort
SELECT - 61 AS col1, 10 AS col1
----
-61
10

query I rowsort
SELECT ( + 69 ) + + + 15 AS col1
----
84

query II rowsort
SELECT ALL 1 AS col2, - ( - + 84 ) AS col2
----
1
84

query I rowsort
SELECT + 67 + - 47 AS col0
----
20

query I rowsort
SELECT 65 - 53
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4319
SELECT CAST( 82 AS SIGNED ) + + + 50 * - + COUNT( ALL + 7 ) - + 12 DIV + 77 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4319
SELECT CAST ( 82 AS INTEGER ) + + + 50 * - + COUNT ( ALL + 7 ) - + 12 / + 77 AS col1
----
32

query II rowsort
SELECT 31, + ( + 55 ) - + ( + 3 ) AS col1
----
31
52

query I rowsort
SELECT - 94 + - - 96 + 56
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL - - 33 * 3 - + - NULLIF ( - 37, + COUNT( - 30 ) * - 54 * 13 ) + - + 52 - 7 * + 42 * - 77 * NULLIF ( 93, - 61 )
----
2105344

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL - - 33 * 3 - + - NULLIF ( - 37, + COUNT ( - 30 ) * - 54 * 13 ) + - + 52 - 7 * + 42 * - 77 * NULLIF ( 93, - 61 )
----
2105344

onlyif mysql # DIV for integer division: 
query II rowsort label-4323
SELECT ALL - + 16 DIV + ( - 28 ) col2, 94
----
0
94

skipif mysql # not compatible
query II rowsort label-4323
SELECT ALL - + 16 / + ( - 28 ) col2, 94
----
0
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL + - CASE - ( + ( - + 82 ) ) WHEN - 12 THEN NULL WHEN 65 THEN + COUNT( * ) * + 32 WHEN + - 82 THEN NULL END + 68 + - 84 + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL + - CASE - ( + ( - + 82 ) ) WHEN - 12 THEN NULL WHEN 65 THEN + COUNT ( * ) * + 32 WHEN + - 82 THEN NULL END + 68 + - 84 + 9 AS col0
----
NULL

query I rowsort
SELECT - 16 + + - 66
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL - NULLIF ( - 13, - 10 - - 16 * - 18 - + 41 - 27 ) * - NULLIF ( - 34, - 66 * + 79 ) * COUNT( * ) AS col1
----
442

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL - NULLIF ( - 13, - 10 - - 16 * - 18 - + 41 - 27 ) * - NULLIF ( - 34, - 66 * + 79 ) * COUNT ( * ) AS col1
----
442

onlyif mysql # aggregate syntax: 
query II rowsort label-4327
SELECT + 25 * - MAX( 44 ), CASE 30 WHEN ( - - 56 ) THEN - - 62 * 54 - + 69 + 65 WHEN - 6 THEN - 98 * - + ( + 48 ) + MAX( 10 ) WHEN - 16 THEN NULL END * - - 71 AS col0
----
-1100
NULL

skipif mysql # not compatible
query II rowsort label-4327
SELECT + 25 * - MAX ( 44 ), CASE 30 WHEN ( - - 56 ) THEN - - 62 * 54 - + 69 + 65 WHEN - 6 THEN - 98 * - + ( + 48 ) + MAX ( 10 ) WHEN - 16 THEN NULL END * - - 71 AS col0
----
-1100
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4328
SELECT ALL - + 41 * 29 * + CASE - 23 WHEN CAST( NULL AS DECIMAL ) * + COALESCE ( + 12, - 84 * - ( + + COALESCE ( + - 12, + 2 * 63 * 69 + + 79 + 86 * + + 71 ) ) ) * - 0 THEN NULL ELSE - 30 * + ( COUNT( * ) ) END col2
----
35670

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL - + 41 * 29 * + CASE - 23 WHEN CAST ( NULL AS REAL ) * + COALESCE ( + 12, - 84 * - ( + + COALESCE ( + - 12, + 2 * 63 * 69 + + 79 + 86 * + + 71 ) ) ) * - 0 THEN NULL ELSE - 30 * + ( COUNT ( * ) ) END col2
----
35670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4329
SELECT CAST( - COUNT( * ) AS SIGNED ) DIV - 60 + + - MIN( ALL + + 56 ) DIV - + 60 * - + 16 + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-4329
SELECT CAST ( - COUNT ( * ) AS INTEGER ) / - 60 + + - MIN ( ALL + + 56 ) / - + 60 * - + 16 + - 8
----
-8

query I rowsort
SELECT ALL - + 28 * - 55
----
1540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4331
SELECT + - CAST( NULL AS SIGNED ) AS col2, 37 / + CASE - 42 WHEN + 30 THEN 30 END * - MIN( ALL + 99 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4331
SELECT + - CAST ( NULL AS INTEGER ) AS col2, 37 / + CASE - 42 WHEN + 30 THEN 30 END * - MIN ( ALL + 99 )
----
NULL
NULL

query I rowsort
SELECT ALL + 50 * ( NULLIF ( 57, 56 + + 50 ) ) + - 80 * - 35
----
5650

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL 23 * 81 * - MIN( ALL + 54 ) + 40 + - 32 AS col1
----
-100594

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL 23 * 81 * - MIN ( ALL + 54 ) + 40 + - 32 AS col1
----
-100594

query I rowsort
SELECT ALL + ( - + 37 ) AS col1
----
-37

query I rowsort
SELECT 24 * + 32 + - 37 + - 14 + + 19 AS col2
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT ALL 32 * + COUNT( * ) * 58 AS col0
----
1856

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL 32 * + COUNT ( * ) * 58 AS col0
----
1856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4337
SELECT + CASE + + 32 WHEN + 98 THEN NULL WHEN - ( + + ( - - ( - 62 ) ) ) THEN + CASE - SUM( ALL + 98 ) WHEN 14 THEN + + COUNT( * ) WHEN - + 18 THEN NULL ELSE + 90 END + + + 15 * + - 8 END, + CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4337
SELECT + CASE + + 32 WHEN + 98 THEN NULL WHEN - ( + + ( - - ( - 62 ) ) ) THEN + CASE - SUM ( ALL + 98 ) WHEN 14 THEN + + COUNT ( * ) WHEN - + 18 THEN NULL ELSE + 90 END + + + 15 * + - 8 END, + CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

query I rowsort
SELECT + 84 * 22
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT + COUNT( ALL - 73 ) * + + 44 col1
----
44

skipif mysql # not compatible
query I rowsort label-4339
SELECT + COUNT ( ALL - 73 ) * + + 44 col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT COUNT( DISTINCT + 25 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4340
SELECT COUNT ( DISTINCT + 25 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4341
SELECT ALL + COUNT( * ) AS col1, + 22 AS col1
----
1
22

skipif mysql # not compatible
query II rowsort label-4341
SELECT ALL + COUNT ( * ) AS col1, + 22 AS col1
----
1
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4342
SELECT ALL CAST( NULL AS SIGNED ) * - - 14 * 34 - - ( + - 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL CAST ( NULL AS INTEGER ) * - - 14 * 34 - - ( + - 28 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT + COUNT( 32 ) * 21 col0
----
21

skipif mysql # not compatible
query I rowsort label-4343
SELECT + COUNT ( 32 ) * 21 col0
----
21

query I rowsort
SELECT DISTINCT 78 * 48
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT DISTINCT MIN( ALL 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT MIN ( ALL 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT DISTINCT 95 * 34 * COUNT( * )
----
3230

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT 95 * 34 * COUNT ( * )
----
3230

onlyif mysql # aggregate syntax: 
query II rowsort label-4347
SELECT ALL - 93 AS col2, + MIN( - + CASE - 10 WHEN + 11 THEN NULL ELSE + 82 END )
----
-93
-82

skipif mysql # not compatible
query II rowsort label-4347
SELECT ALL - 93 AS col2, + MIN ( - + CASE - 10 WHEN + 11 THEN NULL ELSE + 82 END )
----
-93
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-4348
SELECT DISTINCT NULLIF ( - 9, - COUNT( * ) / + - 97 + - CASE - + 0 WHEN 81 * - - 92 THEN NULL WHEN + 41 + - - 58 THEN + - 92 END * + 40 ), COUNT( * ) AS col1
----
-9
1

skipif mysql # not compatible
query II rowsort label-4348
SELECT DISTINCT NULLIF ( - 9, - COUNT ( * ) / + - 97 + - CASE - + 0 WHEN 81 * - - 92 THEN NULL WHEN + 41 + - - 58 THEN + - 92 END * + 40 ), COUNT ( * ) AS col1
----
-9
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL - - 81 * - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL - - 81 * - COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT - + SUM( ( - 38 ) )
----
38

skipif mysql # not compatible
query I rowsort label-4350
SELECT - + SUM ( ( - 38 ) )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4351
SELECT DISTINCT - NULLIF ( - COUNT( * ), - CASE - + 79 WHEN 44 THEN - ( - - 5 ) * - 65 / COUNT( * ) END * COALESCE ( + COUNT( * ), - 79 + 31, + 71 ) - - + SUM( DISTINCT - 10 ) + COUNT( * ) + 28 + 38 + + + MAX( DISTINCT - - 26 ) ) AS col1, - 78 + 43 + + COUNT( * ) + - + 50
----
1
-84

skipif mysql # not compatible
query II rowsort label-4351
SELECT DISTINCT - NULLIF ( - COUNT ( * ), - CASE - + 79 WHEN 44 THEN - ( - - 5 ) * - 65 / COUNT ( * ) END * COALESCE ( + COUNT ( * ), - 79 + 31, + 71 ) - - + SUM ( DISTINCT - 10 ) + COUNT ( * ) + 28 + 38 + + + MAX ( DISTINCT - - 26 ) ) AS col1, - 78 + 43 + + COUNT ( * ) + - + 50
----
1
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4352
SELECT ALL + 55 + 48 + - NULLIF ( 48, + - 45 + + SUM( DISTINCT - 30 ) * - COUNT( * ) + 89 ) DIV 23 * 76 * + + COUNT( 93 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL + 55 + 48 + - NULLIF ( 48, + - 45 + + SUM ( DISTINCT - 30 ) * - COUNT ( * ) + 89 ) / 23 * 76 * + + COUNT ( 93 ) AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4353
SELECT DISTINCT CASE + + 63 WHEN - 40 THEN + + 92 WHEN - 17 * - 76 THEN - 49 * 86 - - + 88 + - 59 + - + 32 + - + 43 / + - COUNT( * ) * 7 * + 40 + - + 23 ELSE NULL END + + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT CASE + + 63 WHEN - 40 THEN + + 92 WHEN - 17 * - 76 THEN - 49 * 86 - - + 88 + - 59 + - + 32 + - + 43 / + - COUNT ( * ) * 7 * + 40 + - + 23 ELSE NULL END + + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - + 26 * COALESCE ( - 41, - 73 + - 15 ) AS col2
----
1066

query II rowsort
SELECT - + 29 AS col0, 15 * + 51 * + 89
----
-29
68085

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT CAST( + 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-4356
SELECT CAST ( + 58 AS INTEGER )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4357
SELECT - SUM( 68 ) DIV COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-4357
SELECT - SUM ( 68 ) / COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4358
SELECT ALL + 54 DIV + MAX( DISTINCT - 6 ) + - + 28 AS col2, ( - 52 ) AS col2
----
-37
-52

skipif mysql # not compatible
query II rowsort label-4358
SELECT ALL + 54 / + MAX ( DISTINCT - 6 ) + - + 28 AS col2, ( - 52 ) AS col2
----
-37
-52

query I rowsort
SELECT ALL + ( - - 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL 32 * - COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL 32 * - COUNT ( * ) AS col2
----
-32

query I rowsort
SELECT ALL + 47 * + 42
----
1974

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT ALL 88 DIV - + COUNT( * ) - + - 51 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL 88 / - + COUNT ( * ) - + - 51 AS col1
----
-37

query I rowsort
SELECT DISTINCT + 38 * - - 2 * + - 84 * + 38 AS col0
----
-242592

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT DISTINCT - 66 * - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT - 66 * - COUNT ( * ) AS col0
----
66

query I rowsort
SELECT - 61 + - 84
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + COUNT( + NULLIF ( + - 59, + + 81 * - 13 ) ) * - - 73 + - 17 + + 0 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4366
SELECT + COUNT ( + NULLIF ( + - 59, + + 81 * - 13 ) ) * - - 73 + - 17 + + 0 AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4367
SELECT 84 * - 58 + + 60 * - - CAST( NULL AS SIGNED ) + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT 84 * - 58 + + 60 * - - CAST ( NULL AS INTEGER ) + 75
----
NULL

query II rowsort
SELECT ( + 53 ), - 48 * - + ( + - 52 ) col1
----
53
-2496

query I rowsort
SELECT DISTINCT - 75 * + + 88 AS col1
----
-6600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4370
SELECT ( - COUNT( * ) ), CAST( 11 AS SIGNED ) AS col0
----
-1
11

skipif mysql # not compatible
query II rowsort label-4370
SELECT ( - COUNT ( * ) ), CAST ( 11 AS INTEGER ) AS col0
----
-1
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT + COUNT( * ) * + MIN( DISTINCT - + 44 ) * - + COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4371
SELECT + COUNT ( * ) * + MIN ( DISTINCT - + 44 ) * - + COUNT ( * ) AS col0
----
44

query I rowsort
SELECT + COALESCE ( + + 13, 97 ) AS col1
----
13

query I rowsort
SELECT ALL + COALESCE ( - - 20, + 51 ) col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT COUNT( * ) * 41
----
41

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT COUNT ( * ) * 41
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT - CAST( + 39 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-4375
SELECT - CAST ( + 39 AS INTEGER )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4376
SELECT + - 65 * - - 89 + + + MAX( 42 ) * - + 99 - + 64 * + 30 - - 32 + - 95 + 47 - + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + - + 84 - - - 14 + + - 80 * 54 * - - 34 * + 84 + 10 + COUNT( * ) + + 4 / CASE 39 WHEN 22 * - + 58 + + 73 THEN - 86 WHEN 1 + + 97 + + 87 * + - 72 / 94 THEN - 64 ELSE NULL END * + AVG ( - 58 ) / - 85 + - CASE WHEN NOT - 56 IS NULL THEN - - 92 ELSE - 28 * + + 73 * + 77 END * 94 * + - AVG ( 46 ) * + 43 * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT + - 65 * - - 89 + + + MAX ( 42 ) * - + 99 - + 64 * + 30 - - 32 + - 95 + 47 - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - + 84 - - - 14 + + - 80 * 54 * - - 34 * + 84 + 10 + COUNT ( * ) + + 4 / CASE 39 WHEN 22 * - + 58 + + 73 THEN - 86 WHEN 1 + + 97 + + 87 * + - 72 / 94 THEN - 64 ELSE NULL END * + AVG ( - 58 ) / - 85 + - CASE WHEN NOT - 56 IS NULL THEN - - 92 ELSE - 28 * + + 73 * + 77 END * 94 * + - AVG ( 46 ) * + 43 * 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT MAX( + + 80 ) col0
----
80

skipif mysql # not compatible
query I rowsort label-4377
SELECT MAX ( + + 80 ) col0
----
80

query I rowsort
SELECT DISTINCT - 48 * 52 AS col0
----
-2496

onlyif mysql # aggregate syntax: 
query II rowsort label-4379
SELECT ALL - 86 * + - 78 * + - 20 * 68 * + 12 + + ( - 78 ) + + + COUNT( * ), + NULLIF ( + + 68, + + 95 ) AS col0
----
-109474637
68

skipif mysql # not compatible
query II rowsort label-4379
SELECT ALL - 86 * + - 78 * + - 20 * 68 * + 12 + + ( - 78 ) + + + COUNT ( * ), + NULLIF ( + + 68, + + 95 ) AS col0
----
-109474637
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL - 10 + + SUM( - 23 )
----
-33

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL - 10 + + SUM ( - 23 )
----
-33

query I rowsort
SELECT + - 4 - - 7 * 70 * + 78 AS col1
----
38216

query I rowsort
SELECT ALL 55 + + 88 * - 36
----
-3113

query I rowsort
SELECT ALL - - 78 + + 58 AS col0
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4384
SELECT DISTINCT + - 16 + 67 DIV - - COUNT( DISTINCT - 94 ) + + 62
----
113

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT + - 16 + 67 / - - COUNT ( DISTINCT - 94 ) + + 62
----
113

query I rowsort
SELECT DISTINCT + 33 col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT + 12 DIV + 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4386
SELECT + 12 / + 64 AS col1
----
0

query I rowsort
SELECT 8 + - + 55 AS col1
----
-47

query II rowsort
SELECT 97 - + + 23, 97 AS col2
----
74
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4389
SELECT - 78 + + - COUNT( * ) DIV + 20 - - 2 * + 72 * - CAST( + 95 AS SIGNED ) + - COUNT( * )
----
-13759

skipif mysql # not compatible
query I rowsort label-4389
SELECT - 78 + + - COUNT ( * ) / + 20 - - 2 * + 72 * - CAST ( + 95 AS INTEGER ) + - COUNT ( * )
----
-13759

query I rowsort
SELECT ALL - + 74 + - + COALESCE ( - 91, 31 ) col0
----
17

query I rowsort
SELECT DISTINCT + - 11 * - 18
----
198

query I rowsort
SELECT ALL - COALESCE ( 23, - 96 ) + - + 41
----
-64

query I rowsort
SELECT + 14 + - 42 + 91
----
63

query I rowsort
SELECT - 28 + - 29 + - 22 AS col0
----
-79

query I rowsort
SELECT ALL 3 - + 82 col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ( + COALESCE ( + COUNT( * ), + 48 ) ) * + 5
----
5

skipif mysql # not compatible
query I rowsort label-4396
SELECT ( + COALESCE ( + COUNT ( * ), + 48 ) ) * + 5
----
5

query I rowsort
SELECT ALL + 52 * + 18 AS col1
----
936

query I rowsort
SELECT DISTINCT - 79 - - 78 * 41 AS col2
----
3119

query I rowsort
SELECT 65 * + + 12
----
780

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4400
SELECT DISTINCT - ( - CAST( + + 60 AS SIGNED ) ) AS col2, - 36
----
60
-36

skipif mysql # not compatible
query II rowsort label-4400
SELECT DISTINCT - ( - CAST ( + + 60 AS INTEGER ) ) AS col2, - 36
----
60
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4401
SELECT ALL - 39, COUNT( * ) AS col2
----
-39
1

skipif mysql # not compatible
query II rowsort label-4401
SELECT ALL - 39, COUNT ( * ) AS col2
----
-39
1

query II rowsort
SELECT ALL - 10 col1, 25
----
-10
25

query I rowsort
SELECT ALL + 89 * - 49 AS col0
----
-4361

query I rowsort
SELECT 90 + - 79 AS col1
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4405
SELECT DISTINCT + 16 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT + 16 / + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT ( + 5 ) * + 15
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT 9 DIV + 8
----
1

skipif mysql # not compatible
query I rowsort label-4407
SELECT 9 / + 8
----
1

query I rowsort
SELECT ALL - 90 + + 15
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4409
SELECT + 54 col0, COUNT( * ) col0
----
54
1

skipif mysql # not compatible
query II rowsort label-4409
SELECT + 54 col0, COUNT ( * ) col0
----
54
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT COUNT( * ) - + - 11 - 8 + - 95 + + 12 * + - 93 AS col0
----
-1207

skipif mysql # not compatible
query I rowsort label-4410
SELECT COUNT ( * ) - + - 11 - 8 + - 95 + + 12 * + - 93 AS col0
----
-1207

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT + 17 * - SUM( ALL 27 ) * + 33
----
-15147

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT + 17 * - SUM ( ALL 27 ) * + 33
----
-15147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4412
SELECT ( - 10 ) * - 25 + - + MAX( ALL - 46 ) - + ( 44 ) - 14 * - - 27 + - CASE 67 WHEN - 1 * 39 THEN NULL ELSE + + COUNT( DISTINCT - 56 ) END * - COUNT( * ) - COUNT( + + 59 ) + - 94 DIV - + 68 AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-4412
SELECT ( - 10 ) * - 25 + - + MAX ( ALL - 46 ) - + ( 44 ) - 14 * - - 27 + - CASE 67 WHEN - 1 * 39 THEN NULL ELSE + + COUNT ( DISTINCT - 56 ) END * - COUNT ( * ) - COUNT ( + + 59 ) + - 94 / - + 68 AS col0
----
-125

query I rowsort
SELECT 35 + - 85 * - 51 AS col0
----
4370

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4414
SELECT 37 AS col1, + COUNT( * ) DIV - 33 AS col1
----
37
0

skipif mysql # not compatible
query II rowsort label-4414
SELECT 37 AS col1, + COUNT ( * ) / - 33 AS col1
----
37
0

query I rowsort
SELECT ALL + 19 + - 96 + - 19 + + 55 + + - 93 * - 26 AS col1
----
2377

query II rowsort
SELECT 88, + 98 - - 1 - 76 * + 30 AS col1
----
88
-2181

onlyif mysql # aggregate syntax: 
query II rowsort label-4417
SELECT ALL MAX( - + 31 ) + + 75 * + 24, + 23 AS col2
----
1769
23

skipif mysql # not compatible
query II rowsort label-4417
SELECT ALL MAX ( - + 31 ) + + 75 * + 24, + 23 AS col2
----
1769
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4418
SELECT - CAST( COUNT( * ) AS SIGNED ) + - CASE + - 38 WHEN - 50 + - + 4 - + ( 86 ) - + - 69 + - - COALESCE ( 3, - - 61, - 42 + - COUNT( DISTINCT - 16 ) + - ( - ( ( 92 ) ) ) ) THEN 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + - CASE + - 38 WHEN - 50 + - + 4 - + ( 86 ) - + - 69 + - - COALESCE ( 3, - - 61, - 42 + - COUNT ( DISTINCT - 16 ) + - ( - ( ( 92 ) ) ) ) THEN 58 END
----
NULL

query I rowsort
SELECT ALL - - 10 + 26
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT 43 + + COUNT( - 59 ) * + 28
----
71

skipif mysql # not compatible
query I rowsort label-4420
SELECT 43 + + COUNT ( - 59 ) * + 28
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4421
SELECT DISTINCT - 2 col0, + CASE - 26 WHEN 70 / 42 + - + 1 THEN NULL WHEN - COUNT( * ) THEN + + 31 END
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-4421
SELECT DISTINCT - 2 col0, + CASE - 26 WHEN 70 / 42 + - + 1 THEN NULL WHEN - COUNT ( * ) THEN + + 31 END
----
-2
NULL

query I rowsort
SELECT ALL + 78 + 6
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT ALL - ( + COUNT( * ) ) * - - 18
----
-18

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL - ( + COUNT ( * ) ) * - - 18
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4424
SELECT COUNT( * ) DIV - 10 + - - 73
----
73

skipif mysql # not compatible
query I rowsort label-4424
SELECT COUNT ( * ) / - 10 + - - 73
----
73

query I rowsort
SELECT + COALESCE ( + + 97, - ( + ( - 71 ) ) * 23 ) + + 96
----
193

query I rowsort
SELECT ALL + 87 * - 68
----
-5916

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT 12 + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-4427
SELECT 12 + COUNT ( * )
----
13

query I rowsort
SELECT ALL - 12 - 26
----
-38

query II rowsort
SELECT 80 AS col1, + 57
----
80
57

query I rowsort
SELECT ALL + + 55 * - 65 * 50
----
-178750

query I rowsort
SELECT DISTINCT - 10 * - 89 * + 58 + + + 23 AS col2
----
51643

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT DISTINCT - 4 - + 81 + + MAX( ALL + 10 ) - 84 + - - CASE + - 52 WHEN + 8 - COALESCE ( + 23, - - 18 ) THEN NULL WHEN - SUM( + 40 ) + - 2 THEN 24 * 3 + AVG ( ALL - - 96 ) END * ( - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT - 4 - + 81 + + MAX ( ALL + 10 ) - 84 + - - CASE + - 52 WHEN + 8 - COALESCE ( + 23, - - 18 ) THEN NULL WHEN - SUM ( + 40 ) + - 2 THEN 24 * 3 + AVG ( ALL - - 96 ) END * ( - 39 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4433
SELECT - + 38, ( + 93 ) + - 39 + + COUNT( * ) DIV COALESCE ( + - 70, + 74 * + + 56 - + - 22 ) * - 59 AS col2
----
-38
54

skipif mysql # not compatible
query II rowsort label-4433
SELECT - + 38, ( + 93 ) + - 39 + + COUNT ( * ) / COALESCE ( + - 70, + 74 * + + 56 - + - 22 ) * - 59 AS col2
----
-38
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4434
SELECT + 52 DIV - - 12 + - - 48 AS col2, + COUNT( * )
----
52
1

skipif mysql # not compatible
query II rowsort label-4434
SELECT + 52 / - - 12 + - - 48 AS col2, + COUNT ( * )
----
52
1

query II rowsort
SELECT ALL 33, 35 AS col0
----
33
35

query I rowsort
SELECT ( - + 8 ) * + 33 col2
----
-264

onlyif mysql # aggregate syntax: 
query II rowsort label-4437
SELECT ALL + COUNT( * ) * 29 AS col1, + 46 + - - 95 * + + 53 + + + 13 AS col1
----
29
5094

skipif mysql # not compatible
query II rowsort label-4437
SELECT ALL + COUNT ( * ) * 29 AS col1, + 46 + - - 95 * + + 53 + + + 13 AS col1
----
29
5094

query I rowsort
SELECT ALL 14 * + 69 AS col1
----
966

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT DISTINCT COUNT( * ) * 86 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT COUNT ( * ) * 86 AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4440
SELECT CAST( - + COUNT( * ) AS SIGNED ) + + 17
----
16

skipif mysql # not compatible
query I rowsort label-4440
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) + + 17
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4441
SELECT 22 * - 75 / + SUM( + 91 ) * + COALESCE ( - 57, 89 ) + + - 73 * 51 / - CAST( NULL AS DECIMAL ) - - 51 * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT 22 * - 75 / + SUM ( + 91 ) * + COALESCE ( - 57, 89 ) + + - 73 * 51 / - CAST ( NULL AS REAL ) - - 51 * - 57
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT DISTINCT - 75 * - - 31 * - - COALESCE ( 6, - 71 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT - 75 * - - 31 * - - COALESCE ( 6, - 71 ) + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT ALL - SUM( - 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL - SUM ( - 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT MIN( DISTINCT - 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-4444
SELECT MIN ( DISTINCT - 41 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT - COUNT( * ) + - ( - - 57 ) - - 48 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT - COUNT ( * ) + - ( - - 57 ) - - 48 AS col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4446
SELECT + 67 / + + 43 * CAST( NULL AS SIGNED ) * + - 56 + 26 * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT + 67 / + + 43 * CAST ( NULL AS INTEGER ) * + - 56 + 26 * - 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT 99 - - - 36 + + COUNT( * ) + 10 + + 37 * - + 45
----
-1591

skipif mysql # not compatible
query I rowsort label-4447
SELECT 99 - - - 36 + + COUNT ( * ) + 10 + + 37 * - + 45
----
-1591

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT DISTINCT - MIN( - 37 ) * - + 6 + - 91
----
-313

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT - MIN ( - 37 ) * - + 6 + - 91
----
-313

query I rowsort
SELECT - 86 * + 26 - - 25 AS col0
----
-2211

query I rowsort
SELECT - + 38 * 38 + - + 24 AS col2
----
-1468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4451
SELECT COUNT( * ) * - 36 * - 69 + 78 + + ( - COALESCE ( - 23, + + 80 * - ( - - COUNT( * ) ) * ( + 29 ) * CAST( - - 73 AS SIGNED ) + + 26 + - - 82 * + - 35 + - COUNT( * ) + + + SUM( + - 70 ) ) ) DIV + - 42 AS col0
----
2562

skipif mysql # not compatible
query I rowsort label-4451
SELECT COUNT ( * ) * - 36 * - 69 + 78 + + ( - COALESCE ( - 23, + + 80 * - ( - - COUNT ( * ) ) * ( + 29 ) * CAST ( - - 73 AS INTEGER ) + + 26 + - - 82 * + - 35 + - COUNT ( * ) + + + SUM ( + - 70 ) ) ) / + - 42 AS col0
----
2562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4452
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - MAX( + 63 ) * CAST( 44 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - MAX ( + 63 ) * CAST ( 44 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT DISTINCT + 14 - + + SUM( 55 )
----
-41

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT + 14 - + + SUM ( 55 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL - MAX( DISTINCT + 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL - MAX ( DISTINCT + 90 ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL - 81 - COUNT( 76 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL - 81 - COUNT ( 76 ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT + CASE - - MAX( + + 36 ) WHEN + 47 / - 33 THEN NULL ELSE - 50 END AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4456
SELECT + CASE - - MAX ( + + 36 ) WHEN + 47 / - 33 THEN NULL ELSE - 50 END AS col0
----
-50

query I rowsort
SELECT - - 26 + - 53 AS col0
----
-27

query I rowsort
SELECT + 19 * - 66 AS col2
----
-1254

onlyif mysql # aggregate syntax: 
query II rowsort label-4459
SELECT + 33 - + COUNT( * ), 56 + + MIN( ALL + 22 ) - - - 67 * + + 98 col2
----
32
-6488

skipif mysql # not compatible
query II rowsort label-4459
SELECT + 33 - + COUNT ( * ), 56 + + MIN ( ALL + 22 ) - - - 67 * + + 98 col2
----
32
-6488

query I rowsort
SELECT DISTINCT 32 * + 3 AS col2
----
96

query II rowsort
SELECT - 38 + - ( + 49 ) AS col2, - 35 + + 75 col1
----
-87
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT ALL - 34 DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - 34 / 38
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4463
SELECT + 56 / - + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * ( - - CAST( NULL AS DECIMAL ) ) / 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT + 56 / - + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * ( - - CAST ( NULL AS REAL ) ) / 35 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 16 * + - 49
----
784

query I rowsort
SELECT ALL 2 + + 52 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + COUNT( * ) + + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4466
SELECT + COUNT ( * ) + + + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL 14 * + COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL 14 * + COUNT ( * ) AS col0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT + 25 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-4468
SELECT + 25 / - 83
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4469
SELECT ALL 31 + - + COALESCE ( - + 71, - ( - 75 ) ) - 99 DIV - 42
----
104

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL 31 + - + COALESCE ( - + 71, - ( - 75 ) ) - 99 / - 42
----
104

query I rowsort
SELECT ( - + 6 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT + CASE 19 WHEN + CAST( NULL AS SIGNED ) THEN - CAST( NULL AS SIGNED ) WHEN - + AVG ( 15 ) THEN NULL ELSE - - 24 * 63 END
----
1512

skipif mysql # not compatible
query I rowsort label-4471
SELECT + CASE 19 WHEN + CAST ( NULL AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) WHEN - + AVG ( 15 ) THEN NULL ELSE - - 24 * 63 END
----
1512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4472
SELECT ALL 6 * - COUNT( * ) + + 67 + 0 DIV - + 83 + + - 10
----
51

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL 6 * - COUNT ( * ) + + 67 + 0 / - + 83 + + - 10
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT + CAST( NULL AS SIGNED ) + - - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT + CAST ( NULL AS INTEGER ) + - - 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT ( + COALESCE ( 29, NULLIF ( + 16, + CASE + 30 WHEN - COUNT( * ) THEN + - 98 END / - 73 * + - COUNT( * ) + + + 92 ), + - 92 + - + ( - 26 ) + - 10 * + MAX( ALL - 91 ) * + - COUNT( * ) ) )
----
29

skipif mysql # not compatible
query I rowsort label-4474
SELECT ( + COALESCE ( 29, NULLIF ( + 16, + CASE + 30 WHEN - COUNT ( * ) THEN + - 98 END / - 73 * + - COUNT ( * ) + + + 92 ), + - 92 + - + ( - 26 ) + - 10 * + MAX ( ALL - 91 ) * + - COUNT ( * ) ) )
----
29

query I rowsort
SELECT + 95 * - 93
----
-8835

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL + SUM( ALL - + 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL + SUM ( ALL - + 97 ) AS col0
----
-97

query I rowsort
SELECT ( + 47 ) AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT + 59 - 9 DIV + 15 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4478
SELECT + 59 - 9 / + 15 AS col0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4479
SELECT + 36 + - 80 + - MAX( ALL 93 ) DIV - COUNT( DISTINCT - - 26 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4479
SELECT + 36 + - 80 + - MAX ( ALL 93 ) / - COUNT ( DISTINCT - - 26 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT - 86 * COUNT( * ) + 72 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4480
SELECT - 86 * COUNT ( * ) + 72 AS col2
----
-14

query I rowsort
SELECT ALL - 54 * 42 + - ( ( - 31 ) ) * 97 col0
----
739

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4482
SELECT - 11 * + 34 + + 32 DIV + COUNT( * )
----
-342

skipif mysql # not compatible
query I rowsort label-4482
SELECT - 11 * + 34 + + 32 / + COUNT ( * )
----
-342

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT CASE - COUNT( * ) WHEN SUM( DISTINCT - 12 ) + - ( - 28 - 77 ) THEN + 54 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT CASE - COUNT ( * ) WHEN SUM ( DISTINCT - 12 ) + - ( - 28 - 77 ) THEN + 54 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 94 * - 34
----
-3196

query I rowsort
SELECT + 0 + 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT 91 * 74 - MAX( - 76 ) AS col0
----
6810

skipif mysql # not compatible
query I rowsort label-4486
SELECT 91 * 74 - MAX ( - 76 ) AS col0
----
6810

query I rowsort
SELECT + 76 + + 59 col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT - CASE SUM( ALL + 25 ) WHEN 41 THEN NULL WHEN 56 + 18 THEN - 51 / COUNT( * ) + + 25 * + 23 WHEN - 36 * + COUNT( * ) + 32 THEN NULL ELSE NULL END - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT - CASE SUM ( ALL + 25 ) WHEN 41 THEN NULL WHEN 56 + 18 THEN - 51 / COUNT ( * ) + + 25 * + 23 WHEN - 36 * + COUNT ( * ) + 32 THEN NULL ELSE NULL END - 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ALL + CASE + COUNT( * ) WHEN 0 + + 51 THEN COUNT( * ) + + 31 ELSE NULL END * 4 - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL + CASE + COUNT ( * ) WHEN 0 + + 51 THEN COUNT ( * ) + + 31 ELSE NULL END * 4 - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT DISTINCT + NULLIF ( 30, + COUNT( * ) - 85 )
----
30

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT + NULLIF ( 30, + COUNT ( * ) - 85 )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4491
SELECT DISTINCT - 44 * - 72 - CASE + 80 + COALESCE ( 62, - 20 + 78 ) WHEN - 59 * - COALESCE ( + 67, 9 + COUNT( * ) ) THEN - 78 + + CAST( NULL AS SIGNED ) * - 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT - 44 * - 72 - CASE + 80 + COALESCE ( 62, - 20 + 78 ) WHEN - 59 * - COALESCE ( + 67, 9 + COUNT ( * ) ) THEN - 78 + + CAST ( NULL AS INTEGER ) * - 49 ELSE NULL END
----
NULL

query I rowsort
SELECT COALESCE ( - 58, - 47 + + 46, + 1 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4493
SELECT ALL + ( CAST( ( - ( - 0 ) ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL + ( CAST ( ( - ( - 0 ) ) AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ALL + MIN( DISTINCT 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL + MIN ( DISTINCT 29 ) AS col0
----
29

query I rowsort
SELECT ALL - 92 * 7
----
-644

onlyif mysql # DIV for integer division: 
query I rowsort label-4496
SELECT DISTINCT - 20 DIV 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT - 20 / 46 AS col0
----
0

query I rowsort
SELECT ALL CASE 45 WHEN 12 THEN NULL WHEN 30 THEN 1 ELSE NULL END
----
NULL

query I rowsort
SELECT - 16 * - 90
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT - MAX( DISTINCT - 85 ) * - 74 col0
----
-6290

skipif mysql # not compatible
query I rowsort label-4499
SELECT - MAX ( DISTINCT - 85 ) * - 74 col0
----
-6290

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT ALL + 2 * SUM( ALL 97 )
----
194

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL + 2 * SUM ( ALL 97 )
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT - COUNT( ALL + 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-4501
SELECT - COUNT ( ALL + 45 )
----
-1

query I rowsort
SELECT - 68 + 74 AS col0
----
6

query I rowsort
SELECT ALL - 29 * 87 AS col0
----
-2523

query I rowsort
SELECT DISTINCT - 48 * 35
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT DISTINCT + COUNT( + 60 ) + ( 85 + 71 ) AS col0
----
157

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + COUNT ( + 60 ) + ( 85 + 71 ) AS col0
----
157

query I rowsort
SELECT ALL - 2 + 0
----
-2

query I rowsort
SELECT ALL - 30 * + 8 col0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT DISTINCT + 75 + - 24 * + ( + COUNT( * ) - 91 * 97 ) col2
----
211899

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT + 75 + - 24 * + ( + COUNT ( * ) - 91 * 97 ) col2
----
211899

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT DISTINCT 61 + MIN( DISTINCT - 39 ) col1
----
22

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT 61 + MIN ( DISTINCT - 39 ) col1
----
22

query I rowsort
SELECT DISTINCT ( ( - 10 ) ) col1
----
-10

query I rowsort
SELECT DISTINCT 79 + 99 * 7
----
772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4512
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) / 59
----
NULL

query I rowsort
SELECT - NULLIF ( CASE 96 WHEN - 17 THEN 66 END, 25 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL + COUNT( * ) + + 77 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL + COUNT ( * ) + + 77 AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4515
SELECT - CAST( - 1 AS SIGNED ) - + 75
----
-74

skipif mysql # not compatible
query I rowsort label-4515
SELECT - CAST ( - 1 AS INTEGER ) - + 75
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT - COUNT( * ) - - 24
----
23

skipif mysql # not compatible
query I rowsort label-4516
SELECT - COUNT ( * ) - - 24
----
23

query I rowsort
SELECT ALL 60 * - 16 AS col2
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT MIN( ALL 16 ) + 33 * 72 col2
----
2392

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT MIN ( ALL 16 ) + 33 * 72 col2
----
2392

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT ALL - 4 DIV 32 + 49 * - 84 AS col0
----
-4116

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL - 4 / 32 + 49 * - 84 AS col0
----
-4116

query I rowsort
SELECT + 18 * 72
----
1296

query I rowsort
SELECT ALL + 68 * - 32
----
-2176

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4522
SELECT - COUNT( * ) / 21 + 38 * CASE + 89 - - 60 * + 45 WHEN - AVG ( DISTINCT NULLIF ( ( + 93 ), - CAST( + 45 AS DECIMAL ) / CAST( NULL AS DECIMAL ) ) ) + 83 THEN COUNT( * ) / - 27 WHEN - 67 THEN NULL WHEN + 16 * + 55 THEN + 28 * + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT - COUNT ( * ) / 21 + 38 * CASE + 89 - - 60 * + 45 WHEN - AVG ( DISTINCT NULLIF ( ( + 93 ), - CAST ( + 45 AS REAL ) / CAST ( NULL AS REAL ) ) ) + 83 THEN COUNT ( * ) / - 27 WHEN - 67 THEN NULL WHEN + 16 * + 55 THEN + 28 * + 78 END
----
NULL

query I rowsort
SELECT + 95 - - 36
----
131

query I rowsort
SELECT DISTINCT - ( - ( - 1 ) )
----
-1

query I rowsort
SELECT 8 * - 51 AS col2
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT CASE - 62 WHEN 95 THEN - COUNT( ALL 29 ) END * + 18 + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT CASE - 62 WHEN 95 THEN - COUNT ( ALL 29 ) END * + 18 + 31 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT 87 DIV - 30
----
-2

skipif mysql # not compatible
query I rowsort label-4527
SELECT 87 / - 30
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4528
SELECT ALL 46 DIV 19
----
2

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL 46 / 19
----
2

query I rowsort
SELECT + NULLIF ( 89, 74 * + 86 ) * 59 AS col2
----
5251

query I rowsort
SELECT ALL - + ( 90 ) AS col0
----
-90

query I rowsort
SELECT 20 * 4
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4532
SELECT ALL - 25 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL - 25 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT + SUM( - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-4533
SELECT + SUM ( - 54 )
----
-54

query I rowsort
SELECT ALL - ( 39 ) col1
----
-39

query I rowsort
SELECT ALL - 75 * + 29 AS col2
----
-2175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4536
SELECT ALL ( CAST( NULL AS SIGNED ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * COUNT ( * )
----
NULL

query I rowsort
SELECT - 4 - 20 AS col0
----
-24

query I rowsort
SELECT - 31 + + 99
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT + 41 DIV - 26 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4539
SELECT + 41 / - 26 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL - COUNT( - 51 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL - COUNT ( - 51 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT COALESCE ( - ( + 36 ), + ( + 62 ) + + 0, 32 ) DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT COALESCE ( - ( + 36 ), + ( + 62 ) + + 0, 32 ) / 99 AS col1
----
0

query I rowsort
SELECT ALL + 48 + 17 * - 16 col0
----
-224

query I rowsort
SELECT 46 - - 51
----
97

query I rowsort
SELECT ALL + 62 * 68
----
4216

query I rowsort
SELECT DISTINCT 56 + 21 * ( + 70 ) AS col0
----
1526

query I rowsort
SELECT 3 + + 21
----
24

query I rowsort
SELECT ( ( - 30 ) ) * + 93
----
-2790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT 13 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT 13 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 83 + - + 70 * + 1
----
13

query I rowsort
SELECT ALL + 44 + + 60 + + 48 AS col0
----
152

query I rowsort
SELECT 93 + + 52
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT COUNT( * ) - - + 54 * + 96
----
5185

skipif mysql # not compatible
query I rowsort label-4552
SELECT COUNT ( * ) - - + 54 * + 96
----
5185

query I rowsort
SELECT DISTINCT - 81 * 20
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL - 72 + - + SUM( DISTINCT + 89 ) + 77
----
-84

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL - 72 + - + SUM ( DISTINCT + 89 ) + 77
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL 48 * - - SUM( 41 )
----
1968

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL 48 * - - SUM ( 41 )
----
1968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4556
SELECT 18 + + - 22 + - COUNT( * ) DIV + 1
----
-5

skipif mysql # not compatible
query I rowsort label-4556
SELECT 18 + + - 22 + - COUNT ( * ) / + 1
----
-5

query I rowsort
SELECT DISTINCT + 27 - 20 + + 44 AS col1
----
51

query I rowsort
SELECT 15 + - 82 + 70 * 95
----
6583

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT 18 * - 28 * + MIN( DISTINCT + 4 ) AS col1
----
-2016

skipif mysql # not compatible
query I rowsort label-4559
SELECT 18 * - 28 * + MIN ( DISTINCT + 4 ) AS col1
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT SUM( DISTINCT + - 25 ) * + 0 col0
----
0

skipif mysql # not compatible
query I rowsort label-4560
SELECT SUM ( DISTINCT + - 25 ) * + 0 col0
----
0

query I rowsort
SELECT ALL + ( + 19 ) * 81 AS col0
----
1539

query I rowsort
SELECT + ( 4 ) col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4563
SELECT DISTINCT + 87 * 30 * CAST( + 49 * 52 AS SIGNED ) + + 1 * 42
----
6650322

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT + 87 * 30 * CAST ( + 49 * 52 AS INTEGER ) + + 1 * 42
----
6650322

query I rowsort
SELECT ALL + 70 * 94 * + 46 AS col0
----
302680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4565
SELECT + ( SUM( ALL CAST( NULL AS DECIMAL ) ) ) * + CAST( - 55 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4565
SELECT + ( SUM ( ALL CAST ( NULL AS REAL ) ) ) * + CAST ( - 55 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT - 22 + + ( 30 ) - + 57 * COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-4566
SELECT - 22 + + ( 30 ) - + 57 * COUNT ( * ) AS col2
----
-49

query I rowsort
SELECT DISTINCT + + 46 * 39 AS col1
----
1794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4568
SELECT - 80 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT - 80 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT + COALESCE ( + COUNT( * ), + 99, 97 * 11 ) * 62 + SUM( ALL - 79 )
----
-17

skipif mysql # not compatible
query I rowsort label-4569
SELECT + COALESCE ( + COUNT ( * ), + 99, 97 * 11 ) * 62 + SUM ( ALL - 79 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4570
SELECT - + CAST( NULL AS DECIMAL ) / + 99 + NULLIF ( - 34 + 43, SUM( ALL - 88 ) + + 39 ) * + 54 + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT - + CAST ( NULL AS REAL ) / + 99 + NULLIF ( - 34 + 43, SUM ( ALL - 88 ) + + 39 ) * + 54 + - 45
----
NULL

query I rowsort
SELECT 15 * - 73 AS col2
----
-1095

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT + MIN( ALL - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-4572
SELECT + MIN ( ALL - 46 )
----
-46

query I rowsort
SELECT ( + 56 ) + + 33
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT + 91 * + - 32 * + COUNT( * ) - - 9
----
-2903

skipif mysql # not compatible
query I rowsort label-4574
SELECT + 91 * + - 32 * + COUNT ( * ) - - 9
----
-2903

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4575
SELECT ALL - 44 DIV - COUNT( * ) - 91
----
-47

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL - 44 / - COUNT ( * ) - 91
----
-47

query I rowsort
SELECT + - 34 * - 63 + 46
----
2188

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT COUNT( * ) + 20 + - 2
----
19

skipif mysql # not compatible
query I rowsort label-4577
SELECT COUNT ( * ) + 20 + - 2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT + COUNT( * ) * - + 84
----
-84

skipif mysql # not compatible
query I rowsort label-4578
SELECT + COUNT ( * ) * - + 84
----
-84

query I rowsort
SELECT ALL 69 + 42 AS col1
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT ALL - 83 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL - 83 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( 67, 13 )
----
-67

query I rowsort
SELECT ALL 96 + + COALESCE ( + 67, + 67 + 30, 95 ) + - 53
----
110

query I rowsort
SELECT 61 + - 53 * 28
----
-1423

query I rowsort
SELECT ALL 35 + - - 62 + 91
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT 3 + - 89 * COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-4585
SELECT 3 + - 89 * COUNT ( * )
----
-86

query II rowsort
SELECT - 18 AS col1, - 45 col1
----
-18
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT CASE + 51 WHEN - 57 * 30 + 95 THEN - 65 * - 70 WHEN NULLIF ( COUNT( * ), COUNT( * ) ) THEN 60 END * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT CASE + 51 WHEN - 57 * 30 + 95 THEN - 65 * - 70 WHEN NULLIF ( COUNT ( * ), COUNT ( * ) ) THEN 60 END * 1
----
NULL

query I rowsort
SELECT - 81 * + 68 + 66 + 77
----
-5365

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL SUM( DISTINCT + 93 ) * - 95 * 25 + - ( + 9 - 55 * + 79 )
----
-216539

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL SUM ( DISTINCT + 93 ) * - 95 * 25 + - ( + 9 - 55 * + 79 )
----
-216539

onlyif mysql # aggregate syntax: 
query II rowsort label-4590
SELECT - COUNT( * ) AS col2, 87
----
-1
87

skipif mysql # not compatible
query II rowsort label-4590
SELECT - COUNT ( * ) AS col2, 87
----
-1
87

query I rowsort
SELECT 28 + - 72
----
-44

query I rowsort
SELECT ALL ( + + COALESCE ( - + 10, + 72 ) ) - 97 col1
----
-107

query I rowsort
SELECT ( + - 20 ) * 10 - 74 AS col0
----
-274

query II rowsort
SELECT ALL 85, + 74 AS col0
----
85
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4595
SELECT ALL COUNT( * ) AS col1, - 66
----
1
-66

skipif mysql # not compatible
query II rowsort label-4595
SELECT ALL COUNT ( * ) AS col1, - 66
----
1
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT ALL + CAST( NULL AS SIGNED ) * + 93 * 64 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL + CAST ( NULL AS INTEGER ) * + 93 * 64 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4597
SELECT - 95 DIV - - 88 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4597
SELECT - 95 / - - 88 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4598
SELECT ALL ( - 64 ) - - CASE 94 WHEN COUNT( * ) * MIN( ALL - ( 57 ) ) + 92 THEN + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL ( - 64 ) - - CASE 94 WHEN COUNT ( * ) * MIN ( ALL - ( 57 ) ) + 92 THEN + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4599
SELECT - COUNT( * ) + + COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4599
SELECT - COUNT ( * ) + + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4600
SELECT ALL 51 col2, - CAST( + ( 99 ) AS SIGNED ) AS col2
----
51
-99

skipif mysql # not compatible
query II rowsort label-4600
SELECT ALL 51 col2, - CAST ( + ( 99 ) AS INTEGER ) AS col2
----
51
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT + 59 - + 79 + - SUM( ALL NULLIF ( - 56, ( 60 ) ) ) * 96
----
5356

skipif mysql # not compatible
query I rowsort label-4601
SELECT + 59 - + 79 + - SUM ( ALL NULLIF ( - 56, ( 60 ) ) ) * 96
----
5356

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT - 65 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-4602
SELECT - 65 / + 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT ALL - ( + MAX( ALL ( - 82 ) ) ) * + CASE + COUNT( * ) WHEN 39 * ( 52 ) THEN NULL ELSE + 76 END col2
----
6232

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL - ( + MAX ( ALL ( - 82 ) ) ) * + CASE + COUNT ( * ) WHEN 39 * ( 52 ) THEN NULL ELSE + 76 END col2
----
6232

query I rowsort
SELECT + 77 * - 21
----
-1617

query I rowsort
SELECT DISTINCT 0 * 9 AS col1
----
0

query II rowsort
SELECT ALL + - 28, 34 + - 40 AS col2
----
-28
-6

query II rowsort
SELECT ALL + 1 col1, - 37
----
1
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT DISTINCT + 30 * - + 60 - + MIN( - 99 ) AS col1
----
-1701

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT + 30 * - + 60 - + MIN ( - 99 ) AS col1
----
-1701

query I rowsort
SELECT DISTINCT + + ( - - 85 ) AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT 44 * + + CAST( - 19 AS SIGNED ) * + CAST( - NULLIF ( + 94, 86 / + 78 + - 72 ) + 68 AS SIGNED ) - + 74 AS col0
----
21662

skipif mysql # not compatible
query I rowsort label-4610
SELECT 44 * + + CAST ( - 19 AS INTEGER ) * + CAST ( - NULLIF ( + 94, 86 / + 78 + - 72 ) + 68 AS INTEGER ) - + 74 AS col0
----
21662

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT + SUM( ALL - - 90 )
----
90

skipif mysql # not compatible
query I rowsort label-4611
SELECT + SUM ( ALL - - 90 )
----
90

query I rowsort
SELECT + + 83 col1
----
83

query I rowsort
SELECT - - 53 * - + 17 col0
----
-901

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT - - 42 * + - CAST( + + 44 AS SIGNED ) * - 26 AS col0
----
48048

skipif mysql # not compatible
query I rowsort label-4614
SELECT - - 42 * + - CAST ( + + 44 AS INTEGER ) * - 26 AS col0
----
48048

query I rowsort
SELECT DISTINCT 18 * 59 + - 55 AS col1
----
1007

query I rowsort
SELECT ALL 56 * + NULLIF ( - + 23, - 28 ) + + 37 * 60
----
932

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT - 14 DIV + 53 * 14
----
0

skipif mysql # not compatible
query I rowsort label-4617
SELECT - 14 / + 53 * 14
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT DISTINCT + - COUNT( * ) * + 78 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT + - COUNT ( * ) * + 78 AS col0
----
-78

query I rowsort
SELECT DISTINCT 26 * - 58 * + 63 + 20 * - 56 + 18
----
-96106

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT DISTINCT + + COUNT( DISTINCT - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT + + COUNT ( DISTINCT - 83 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT - + 26 * + - ( - + NULLIF ( + CAST( NULL AS SIGNED ), + 56 - 77 ) ) - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT - + 26 * + - ( - + NULLIF ( + CAST ( NULL AS INTEGER ), + 56 - 77 ) ) - 93
----
NULL

query I rowsort
SELECT ALL - 30 * + + 72 + - 70
----
-2230

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT MAX( DISTINCT CASE WHEN NOT - ( - 94 ) NOT BETWEEN + 47 AND 13 THEN 52 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT MAX ( DISTINCT CASE WHEN NOT - ( - 94 ) NOT BETWEEN + 47 AND 13 THEN 52 END ) AS col0
----
NULL

query I rowsort
SELECT - 56 * - 34 AS col0
----
1904

query I rowsort
SELECT - ( 24 ) + 16 AS col1
----
-8

query I rowsort
SELECT ALL + 71 * ( - 63 ) - - 31 + - 74
----
-4516

query I rowsort
SELECT DISTINCT ( - 25 ) AS col1
----
-25

query I rowsort
SELECT ALL 37 - + 54 - - 41 * - 29
----
-1206

onlyif mysql # DIV for integer division: 
query I rowsort label-4629
SELECT + 43 DIV - + 8 col2
----
-5

skipif mysql # not compatible
query I rowsort label-4629
SELECT + 43 / - + 8 col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4630
SELECT ALL CAST( NULL AS SIGNED ) * - COALESCE ( + - 90, 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL CAST ( NULL AS INTEGER ) * - COALESCE ( + - 90, 46 ) AS col2
----
NULL

query I rowsort
SELECT ALL 1 - 91 + + + ( + 46 ) AS col2
----
-44

query I rowsort
SELECT DISTINCT ( + 9 ) * + - 74
----
-666

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT + COUNT( DISTINCT - 17 ) + + - 92 + + 27
----
-64

skipif mysql # not compatible
query I rowsort label-4633
SELECT + COUNT ( DISTINCT - 17 ) + + - 92 + + 27
----
-64

query I rowsort
SELECT - 83 + 24
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT + SUM( + 32 ) * - 19 AS col1
----
-608

skipif mysql # not compatible
query I rowsort label-4635
SELECT + SUM ( + 32 ) * - 19 AS col1
----
-608

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4636
SELECT ALL CAST( + 98 AS SIGNED ) * 52 DIV + - 2 + NULLIF ( ( 8 ), ( 18 ) )
----
-2540

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL CAST ( + 98 AS INTEGER ) * 52 / + - 2 + NULLIF ( ( 8 ), ( 18 ) )
----
-2540

query I rowsort
SELECT + 60 + - 66 * + 31
----
-1986

query I rowsort
SELECT + 36 + 95
----
131

query I rowsort
SELECT + 42 - + 41
----
1

query I rowsort
SELECT ALL 59 * - ( + 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT + - ( - 26 ) + 94 * MIN( DISTINCT + 34 ) AS col1
----
3222

skipif mysql # not compatible
query I rowsort label-4641
SELECT + - ( - 26 ) + 94 * MIN ( DISTINCT + 34 ) AS col1
----
3222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4642
SELECT ALL - + 21 DIV ( + COUNT( * ) ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - + 21 / ( + COUNT ( * ) ) AS col2
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4643
SELECT + + 32 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT + + 32 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT + + 74 + - MAX( ALL + 64 ) + + COUNT( * ) + 32 * 56
----
1803

skipif mysql # not compatible
query I rowsort label-4644
SELECT + + 74 + - MAX ( ALL + 64 ) + + COUNT ( * ) + 32 * 56
----
1803

query I rowsort
SELECT + NULLIF ( - 7, + + 76 + - AVG ( ALL - 51 ) ) * + 63 + - 13 AS col0
----
-454

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT + CAST( NULL AS SIGNED ) * + - 76 + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT + CAST ( NULL AS INTEGER ) * + - 76 + + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + 45 / CASE + 97 WHEN - - 45 THEN NULL WHEN + 71 - + CASE 20 WHEN 34 THEN 95 * + COUNT( * ) WHEN NULLIF ( + 52, 1 * 4 - - 76 ) * - 47 + 92 * + 12 THEN + 66 ELSE NULL END THEN + COUNT( * ) + - 35 END + 44 * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT + 45 / CASE + 97 WHEN - - 45 THEN NULL WHEN + 71 - + CASE 20 WHEN 34 THEN 95 * + COUNT ( * ) WHEN NULLIF ( + 52, 1 * 4 - - 76 ) * - 47 + 92 * + 12 THEN + 66 ELSE NULL END THEN + COUNT ( * ) + - 35 END + 44 * - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT DISTINCT + CASE - COUNT( * ) WHEN + 25 THEN + - 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT + CASE - COUNT ( * ) WHEN + 25 THEN + - 15 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4649
SELECT ALL 41 DIV - + 58 + 17 + + ( + COUNT( * ) ) * 42 DIV 50 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL 41 / - + 58 + 17 + + ( + COUNT ( * ) ) * 42 / 50 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT MIN( + 94 ) * + 11 + 29 AS col2
----
1063

skipif mysql # not compatible
query I rowsort label-4650
SELECT MIN ( + 94 ) * + 11 + 29 AS col2
----
1063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4651
SELECT + 87 + 53 AS col2, - 87 + ( NULLIF ( - CAST( 50 AS SIGNED ), + 19 / - 32 + + COUNT( * ) * 80 ) )
----
140
-137

skipif mysql # not compatible
query II rowsort label-4651
SELECT + 87 + 53 AS col2, - 87 + ( NULLIF ( - CAST ( 50 AS INTEGER ), + 19 / - 32 + + COUNT ( * ) * 80 ) )
----
140
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT - COUNT( * ) + - 80 * - + 36
----
2879

skipif mysql # not compatible
query I rowsort label-4652
SELECT - COUNT ( * ) + - 80 * - + 36
----
2879

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT ALL + 27 * - 8 * + + 30 - + - 28 DIV COALESCE ( 59, ( + ( - 38 ) ) * - 63 ) AS col2
----
-6480

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL + 27 * - 8 * + + 30 - + - 28 / COALESCE ( 59, ( + ( - 38 ) ) * - 63 ) AS col2
----
-6480

query I rowsort
SELECT - 67 * 47
----
-3149

query II rowsort
SELECT DISTINCT + 35 col1, 66 * - 29
----
35
-1914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4656
SELECT - 73 * - 79 + 54 + + + AVG ( DISTINCT - - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) / + COALESCE ( COALESCE ( - 62, COUNT( + 74 ) + + 34, COUNT( * ) * 74 + + MIN( 94 ) ), + 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT - 73 * - 79 + 54 + + + AVG ( DISTINCT - - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) / + COALESCE ( COALESCE ( - 62, COUNT ( + 74 ) + + 34, COUNT ( * ) * 74 + + MIN ( 94 ) ), + 54 )
----
NULL

query I rowsort
SELECT - 2 * - + 94
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT - 20 + + - 91 * - COALESCE ( COUNT( * ), + - COUNT( * ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4658
SELECT - 20 + + - 91 * - COALESCE ( COUNT ( * ), + - COUNT ( * ) ) AS col1
----
71

query I rowsort
SELECT ALL - 40 * + - 32 AS col2
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT COUNT( * ) + + ( - 65 ) + - 45 + 13 * - 90
----
-1279

skipif mysql # not compatible
query I rowsort label-4660
SELECT COUNT ( * ) + + ( - 65 ) + - 45 + 13 * - 90
----
-1279

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT DISTINCT - COUNT( * ) * - 94
----
94

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT - COUNT ( * ) * - 94
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4662
SELECT 2 * + CASE + 90 WHEN - + 94 + + 20 THEN 88 + CAST( NULL AS SIGNED ) ELSE MIN( - 80 ) + - 6 DIV - 4 END
----
-158

skipif mysql # not compatible
query I rowsort label-4662
SELECT 2 * + CASE + 90 WHEN - + 94 + + 20 THEN 88 + CAST ( NULL AS INTEGER ) ELSE MIN ( - 80 ) + - 6 / - 4 END
----
-158

query II rowsort
SELECT 50 * - + 37 + - + 85 AS col1, - 11 + - + 13 AS col1
----
-1935
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT 28 * CASE 86 WHEN + + 70 / 65 / + COUNT( * ) + ( 8 ) * 31 THEN NULL WHEN - 84 THEN NULL ELSE - 9 * 85 END AS col0
----
-21420

skipif mysql # not compatible
query I rowsort label-4664
SELECT 28 * CASE 86 WHEN + + 70 / 65 / + COUNT ( * ) + ( 8 ) * 31 THEN NULL WHEN - 84 THEN NULL ELSE - 9 * 85 END AS col0
----
-21420

onlyif mysql # DIV for integer division: 
query I rowsort label-4665
SELECT ALL COALESCE ( + - 17, - + 60 DIV + COALESCE ( - 17, + 86, 83 + + 62 ), + 79 + - 75 ) DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL COALESCE ( + - 17, - + 60 / + COALESCE ( - 17, + 86, 83 + + 62 ), + 79 + - 75 ) / + 82
----
0

query I rowsort
SELECT DISTINCT 83 * - 19
----
-1577

query I rowsort
SELECT ALL 41 + + - 19 AS col1
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4668
SELECT 54 AS col0, + ( - 61 ) * COUNT( * ) - - NULLIF ( 55, 17 ) * - ( - 9 * - MIN( 49 * + 23 ) )
----
54
-557926

skipif mysql # not compatible
query II rowsort label-4668
SELECT 54 AS col0, + ( - 61 ) * COUNT ( * ) - - NULLIF ( 55, 17 ) * - ( - 9 * - MIN ( 49 * + 23 ) )
----
54
-557926

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT MAX( - + 22 ) + + MAX( ALL - - 57 )
----
35

skipif mysql # not compatible
query I rowsort label-4669
SELECT MAX ( - + 22 ) + + MAX ( ALL - - 57 )
----
35

query I rowsort
SELECT + COALESCE ( - + 25, + CASE + + 94 WHEN COALESCE ( 61, + 77 * 5 ) THEN NULL ELSE ( - 59 ) END + + 92 ) AS col2
----
-25

query I rowsort
SELECT ALL 90 + 38 + - + 69 + 85 * - 44 AS col1
----
-3681

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT 97 * - 77 - + MAX( - - 14 ) AS col0
----
-7483

skipif mysql # not compatible
query I rowsort label-4672
SELECT 97 * - 77 - + MAX ( - - 14 ) AS col0
----
-7483

query I rowsort
SELECT 41 + - - 25
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT DISTINCT - 15 + 47 * - 72 * - CASE - COUNT( * ) WHEN + NULLIF ( 3, 28 ) * 59 + 41 THEN COUNT( * ) / 32 WHEN 82 / + 27 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT - 15 + 47 * - 72 * - CASE - COUNT ( * ) WHEN + NULLIF ( 3, 28 ) * 59 + 41 THEN COUNT ( * ) / 32 WHEN 82 / + 27 THEN NULL END
----
NULL

query I rowsort
SELECT - CASE - 76 WHEN 48 THEN 22 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL COUNT( ALL - 54 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL COUNT ( ALL - 54 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4677
SELECT DISTINCT - - 30, COUNT( * ) + - 62 AS col2
----
30
-61

skipif mysql # not compatible
query II rowsort label-4677
SELECT DISTINCT - - 30, COUNT ( * ) + - 62 AS col2
----
30
-61

query I rowsort
SELECT 20 * 36 + 23 AS col1
----
743

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT DISTINCT MIN( ALL + 37 ) + + 23 + - 7 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT MIN ( ALL + 37 ) + + 23 + - 7 AS col0
----
53

query I rowsort
SELECT DISTINCT - - 51 + + + 75 AS col0
----
126

query I rowsort
SELECT 69 * - - 82 AS col2
----
5658

onlyif mysql # DIV for integer division: 
query I rowsort label-4682
SELECT ALL 1 DIV 16
----
0

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL 1 / 16
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4683
SELECT 0 DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-4683
SELECT 0 / + 41
----
0

query I rowsort
SELECT DISTINCT 19 - 61 * + COALESCE ( + + 18, + 67 ) col2
----
-1079

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4685
SELECT - 59 * - SUM( DISTINCT - 87 ) * - CAST( NULL AS DECIMAL ) * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT - 59 * - SUM ( DISTINCT - 87 ) * - CAST ( NULL AS REAL ) * - 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4686
SELECT + - COALESCE ( 2, 30 * CAST( NULL AS SIGNED ) + - ( NULLIF ( 6, CAST( 61 AS SIGNED ) * + ( COUNT( * ) + - 42 DIV 32 ) ) ) DIV 46 - + 93, 26 - - NULLIF ( 8, 97 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4686
SELECT + - COALESCE ( 2, 30 * CAST ( NULL AS INTEGER ) + - ( NULLIF ( 6, CAST ( 61 AS INTEGER ) * + ( COUNT ( * ) + - 42 / 32 ) ) ) / 46 - + 93, 26 - - NULLIF ( 8, 97 ) ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT ALL + COUNT( * ) - - 3
----
4

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL + COUNT ( * ) - - 3
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL - MIN( ALL + ( + 84 ) ) * - - ( - 68 ) AS col1
----
5712

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL - MIN ( ALL + ( + 84 ) ) * - - ( - 68 ) AS col1
----
5712

query I rowsort
SELECT ( - 1 ) * + + 25 AS col2
----
-25

query I rowsort
SELECT ALL - CASE 4 WHEN - ( + 21 ) + + 85 THEN + 95 + 63 * - 44 ELSE - 52 END AS col1
----
52

query II rowsort
SELECT DISTINCT - 86 AS col0, - 18
----
-86
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4692
SELECT ALL 84 * + + CAST( + - COUNT( * ) AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL 84 * + + CAST ( + - COUNT ( * ) AS INTEGER )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-4693
SELECT 8, COUNT( * ) col0
----
8
1

skipif mysql # not compatible
query II rowsort label-4693
SELECT 8, COUNT ( * ) col0
----
8
1

query I rowsort
SELECT 99 * + 51
----
5049

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL - SUM( ALL + - 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - SUM ( ALL + - 42 ) AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4696
SELECT + 36 AS col1, CAST( NULL AS SIGNED ) AS col0
----
36
NULL

skipif mysql # not compatible
query II rowsort label-4696
SELECT + 36 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT 28 + - MIN( + + 98 )
----
-70

skipif mysql # not compatible
query I rowsort label-4697
SELECT 28 + - MIN ( + + 98 )
----
-70

query II rowsort
SELECT ALL 91 AS col2, 92 + + 89
----
91
181

onlyif mysql # aggregate syntax: 
query II rowsort label-4699
SELECT 7 AS col0, + COUNT( * )
----
7
1

skipif mysql # not compatible
query II rowsort label-4699
SELECT 7 AS col0, + COUNT ( * )
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT 37 + + COUNT( ALL - - 70 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-4700
SELECT 37 + + COUNT ( ALL - - 70 ) AS col0
----
38

query II rowsort
SELECT DISTINCT 96 col1, + 16
----
96
16

query I rowsort
SELECT DISTINCT - 73 + + - 24 col0
----
-97

query I rowsort
SELECT 53 - - 36 AS col0
----
89

query II rowsort
SELECT ALL 2 AS col0, 53 * + - 94 + - 62 + + 18 * ( + 74 ) AS col0
----
2
-3712

query I rowsort
SELECT + 11 * 21 + + 68 + + - 72 AS col0
----
227

onlyif mysql # DIV for integer division: 
query II rowsort label-4706
SELECT - 59 AS col1, + 40 DIV + + 18
----
-59
2

skipif mysql # not compatible
query II rowsort label-4706
SELECT - 59 AS col1, + 40 / + + 18
----
-59
2

query I rowsort
SELECT DISTINCT + 74 + - 54 col0
----
20

query II rowsort
SELECT ALL - 19 + 58, 40 AS col0
----
39
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT - ( 23 ) + + + COUNT( - - 58 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4709
SELECT - ( 23 ) + + + COUNT ( - - 58 ) AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4710
SELECT 35 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT 35 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4711
SELECT + COUNT( * ) * + - 86 DIV - COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4711
SELECT + COUNT ( * ) * + - 86 / - COUNT ( * ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - - CASE - 70 WHEN + 74 + + - 17 THEN - COUNT( * ) ELSE + 14 + - 46 END AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-4712
SELECT - - CASE - 70 WHEN + 74 + + - 17 THEN - COUNT ( * ) ELSE + 14 + - 46 END AS col2
----
-32

query I rowsort
SELECT ALL ( + - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT ALL COUNT( * ) * + NULLIF ( - - COUNT( * ), + - 4 ) + 42
----
43

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL COUNT ( * ) * + NULLIF ( - - COUNT ( * ), + - 4 ) + 42
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4715
SELECT - CAST( CAST( - 54 AS SIGNED ) AS SIGNED ) DIV + 8, COUNT( * ) AS col0
----
6
1

skipif mysql # not compatible
query II rowsort label-4715
SELECT - CAST ( CAST ( - 54 AS INTEGER ) AS INTEGER ) / + 8, COUNT ( * ) AS col0
----
6
1

query I rowsort
SELECT 4 + + - 23
----
-19

query II rowsort
SELECT ALL + 48 AS col1, 31 AS col2
----
48
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT DISTINCT - SUM( ALL 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT - SUM ( ALL 71 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT - COUNT( * ) + + + 25
----
24

skipif mysql # not compatible
query I rowsort label-4719
SELECT - COUNT ( * ) + + + 25
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4720
SELECT - - CASE + 34 WHEN - CASE + + 69 WHEN - COUNT( * ) * - + 17 THEN + MIN( ALL 52 ) + CAST( NULL AS DECIMAL ) * + 88 END THEN NULL ELSE CAST( NULL AS SIGNED ) + - 6 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT - - CASE + 34 WHEN - CASE + + 69 WHEN - COUNT ( * ) * - + 17 THEN + MIN ( ALL 52 ) + CAST ( NULL AS REAL ) * + 88 END THEN NULL ELSE CAST ( NULL AS INTEGER ) + - 6 END AS col2
----
NULL

query I rowsort
SELECT + 55 + + 31
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT CASE 3 WHEN - 35 * + 21 THEN - 59 WHEN - - SUM( ALL ( + 60 ) ) / - 72 THEN CAST( NULL AS SIGNED ) - 17 WHEN - AVG ( ALL + 60 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT CASE 3 WHEN - 35 * + 21 THEN - 59 WHEN - - SUM ( ALL ( + 60 ) ) / - 72 THEN CAST ( NULL AS INTEGER ) - 17 WHEN - AVG ( ALL + 60 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ( - ( + 74 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT DISTINCT + 81 * + 10 * + COUNT( * ) * - ( + 19 ) - 76
----
-15466

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT + 81 * + 10 * + COUNT ( * ) * - ( + 19 ) - 76
----
-15466

onlyif mysql # DIV for integer division: 
query I rowsort label-4725
SELECT + 96 * ( 79 ) DIV 43 - - 91 AS col2
----
267

skipif mysql # not compatible
query I rowsort label-4725
SELECT + 96 * ( 79 ) / 43 - - 91 AS col2
----
267

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT - 73 DIV 29 * - + 32 - + - 35 * 58 + + 78 + + 26 AS col1
----
2198

skipif mysql # not compatible
query I rowsort label-4726
SELECT - 73 / 29 * - + 32 - + - 35 * 58 + + 78 + + 26 AS col1
----
2198

query I rowsort
SELECT DISTINCT + ( - 21 ) * + - 50
----
1050

query I rowsort
SELECT + 20 + + + 47
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4729
SELECT + 79 DIV - 87 AS col2, - 40 DIV NULLIF ( - 53, + 17 ) + - COUNT( * ) DIV 4
----
0
0

skipif mysql # not compatible
query II rowsort label-4729
SELECT + 79 / - 87 AS col2, - 40 / NULLIF ( - 53, + 17 ) + - COUNT ( * ) / 4
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4730
SELECT - NULLIF ( + 13, - + COUNT( - + 62 ) + + COUNT( * ) * + - CAST( NULL AS SIGNED ) * + 44 ) * CAST( + 81 - - 22 * 5 AS SIGNED ) + - ( 94 + 33 ) DIV 98 AS col1
----
-2484

skipif mysql # not compatible
query I rowsort label-4730
SELECT - NULLIF ( + 13, - + COUNT ( - + 62 ) + + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * + 44 ) * CAST ( + 81 - - 22 * 5 AS INTEGER ) + - ( 94 + 33 ) / 98 AS col1
----
-2484

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT MAX( + 7 ) col1
----
7

skipif mysql # not compatible
query I rowsort label-4731
SELECT MAX ( + 7 ) col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4732
SELECT 86 * CAST( MAX( + ( + 58 ) ) AS SIGNED ) + 65 - - COALESCE ( 18, 74 * + ( + 6 DIV - 49 ) )
----
5071

skipif mysql # not compatible
query I rowsort label-4732
SELECT 86 * CAST ( MAX ( + ( + 58 ) ) AS INTEGER ) + 65 - - COALESCE ( 18, 74 * + ( + 6 / - 49 ) )
----
5071

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT MAX( + - 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-4733
SELECT MAX ( + - 54 ) AS col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4734
SELECT + COUNT( * ) DIV - CAST( + 6 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4734
SELECT + COUNT ( * ) / - CAST ( + 6 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT + CASE + COUNT( * ) WHEN - 36 THEN + 60 ELSE NULL END + + - CASE - + MAX( DISTINCT + 69 ) WHEN + 63 * + ( 3 ) THEN NULL ELSE CASE ( - 52 ) WHEN 5 / - 12 THEN NULL WHEN + MAX( - 91 ) THEN COUNT( * ) END END + - CASE + 24 WHEN + MAX( DISTINCT - 3 ) THEN ( + 52 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT + CASE + COUNT ( * ) WHEN - 36 THEN + 60 ELSE NULL END + + - CASE - + MAX ( DISTINCT + 69 ) WHEN + 63 * + ( 3 ) THEN NULL ELSE CASE ( - 52 ) WHEN 5 / - 12 THEN NULL WHEN + MAX ( - 91 ) THEN COUNT ( * ) END END + - CASE + 24 WHEN + MAX ( DISTINCT - 3 ) THEN ( + 52 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT ALL CAST( + - ( 80 ) AS SIGNED ) * 28 AS col0
----
-2240

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL CAST ( + - ( 80 ) AS INTEGER ) * 28 AS col0
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT + NULLIF ( SUM( ALL - 24 ), 21 * - AVG ( 13 ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4737
SELECT + NULLIF ( SUM ( ALL - 24 ), 21 * - AVG ( 13 ) ) AS col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4738
SELECT + COUNT( * ) DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-4738
SELECT + COUNT ( * ) / 79
----
0

query I rowsort
SELECT ALL 14 * NULLIF ( + - 10, - 25 - + + 88 ) + + 83
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT + CASE 33 WHEN 10 * 44 THEN + AVG ( - ( - 32 ) ) * + 40 + + 51 * + 67 WHEN 82 THEN + NULLIF ( 68, MAX( 65 ) ) * + 12 ELSE - 90 - + 75 END
----
-165

skipif mysql # not compatible
query I rowsort label-4740
SELECT + CASE 33 WHEN 10 * 44 THEN + AVG ( - ( - 32 ) ) * + 40 + + 51 * + 67 WHEN 82 THEN + NULLIF ( 68, MAX ( 65 ) ) * + 12 ELSE - 90 - + 75 END
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4741
SELECT ALL CAST( NULL AS SIGNED ) * + 4 AS col0, + COALESCE ( 99, - 74 ) + - - 89 + + 97 AS col0
----
NULL
285

skipif mysql # not compatible
query II rowsort label-4741
SELECT ALL CAST ( NULL AS INTEGER ) * + 4 AS col0, + COALESCE ( 99, - 74 ) + - - 89 + + 97 AS col0
----
NULL
285

query I rowsort
SELECT ALL - 87 + + COALESCE ( 52, + 56, - - 6 ) AS col2
----
-35

query I rowsort
SELECT + 7 + 99 + 3 * - + 78 * + 24 * 24
----
-134678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4744
SELECT ALL + SUM( ALL + CAST( 30 AS SIGNED ) )
----
30

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL + SUM ( ALL + CAST ( 30 AS INTEGER ) )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4745
SELECT - NULLIF ( + 1, - 1 * 28 + - CAST( NULL AS SIGNED ) ) col0, 27
----
-1
27

skipif mysql # not compatible
query II rowsort label-4745
SELECT - NULLIF ( + 1, - 1 * 28 + - CAST ( NULL AS INTEGER ) ) col0, 27
----
-1
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4746
SELECT - MAX( - 3 ) * 84 * - 2 + CAST( NULL AS DECIMAL ) + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT - MAX ( - 3 ) * 84 * - 2 + CAST ( NULL AS REAL ) + 50
----
NULL

query I rowsort
SELECT ALL 65 + 9 * + NULLIF ( + + 9, ( - 66 ) * - 14 - 65 ) AS col2
----
146

query I rowsort
SELECT ALL - 20 + - 64 + 61 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4749
SELECT ALL - CAST( NULL AS SIGNED ) - - + 57 AS col2, - COALESCE ( - + COUNT( * ), + CAST( NULL AS SIGNED ), - COUNT( DISTINCT + NULLIF ( 49, 44 / 6 + - 40 ) ) ) + + 22
----
NULL
23

skipif mysql # not compatible
query II rowsort label-4749
SELECT ALL - CAST ( NULL AS INTEGER ) - - + 57 AS col2, - COALESCE ( - + COUNT ( * ), + CAST ( NULL AS INTEGER ), - COUNT ( DISTINCT + NULLIF ( 49, 44 / 6 + - 40 ) ) ) + + 22
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL + - 59 - + COUNT( * ) + + 80
----
20

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL + - 59 - + COUNT ( * ) + + 80
----
20

query I rowsort
SELECT - CASE + 33 WHEN - 29 THEN AVG ( 71 ) * 29 * - 38 * 29 WHEN 78 * 10 + - ( 74 + 31 ) THEN NULL END * 62 AS col0
----
NULL

query I rowsort
SELECT ALL + + 34 * + 61 * + 58 AS col1
----
120292

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT DISTINCT + 37 * + ( + CASE - 20 WHEN - 31 * - - 40 + - 36 + + ( COUNT( * ) ) * + 96 THEN 23 WHEN - COUNT( * ) - 53 THEN + COALESCE ( 86, 46 ) * 95 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT + 37 * + ( + CASE - 20 WHEN - 31 * - - 40 + - 36 + + ( COUNT ( * ) ) * + 96 THEN 23 WHEN - COUNT ( * ) - 53 THEN + COALESCE ( 86, 46 ) * 95 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT MIN( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-4754
SELECT MIN ( 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT DISTINCT ( + MAX( + + 31 ) )
----
31

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT ( + MAX ( + + 31 ) )
----
31

query I rowsort
SELECT - 80 * + 46 AS col1
----
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL + - CASE - COUNT( * ) WHEN + 72 THEN + 52 + - 18 * - 57 ELSE 99 END
----
-99

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL + - CASE - COUNT ( * ) WHEN + 72 THEN + 52 + - 18 * - 57 ELSE 99 END
----
-99

query I rowsort
SELECT ALL - 72 * + 88
----
-6336

query I rowsort
SELECT - 97 * + 68
----
-6596

query I rowsort
SELECT + 73 * + - 25
----
-1825

query I rowsort
SELECT ( - - 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT + NULLIF ( - COUNT( * ), ( - + 30 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4762
SELECT + NULLIF ( - COUNT ( * ), ( - + 30 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT + COALESCE ( - 22, - 98, - - SUM( 91 ), - 9 * + - 25 ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-4763
SELECT + COALESCE ( - 22, - 98, - - SUM ( 91 ), - 9 * + - 25 ) col2
----
-22

query I rowsort
SELECT - 37 * - - 56 AS col1
----
-2072

query I rowsort
SELECT + 31 - 88 * + + 5 - - 0 * - - 21
----
-409

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL + MAX( + 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL + MAX ( + 13 ) AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4767
SELECT ALL + CAST( - 7 AS SIGNED ) * + CASE + ( + ( + CASE - AVG ( 1 ) WHEN ( 46 ) THEN + 78 WHEN - 27 THEN COUNT( * ) END ) ) WHEN + 0 - 46 * 68 THEN NULL WHEN - 25 + + 33 / 93 THEN 45 * NULLIF ( - NULLIF ( 91, + 75 ), + 99 ) + 81 * - 3 END - ( AVG ( - COALESCE ( 40, + 43 * 15 ) ) + CAST( NULL AS SIGNED ) / 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + CAST ( - 7 AS INTEGER ) * + CASE + ( + ( + CASE - AVG ( 1 ) WHEN ( 46 ) THEN + 78 WHEN - 27 THEN COUNT ( * ) END ) ) WHEN + 0 - 46 * 68 THEN NULL WHEN - 25 + + 33 / 93 THEN 45 * NULLIF ( - NULLIF ( 91, + 75 ), + 99 ) + 81 * - 3 END - ( AVG ( - COALESCE ( 40, + 43 * 15 ) ) + CAST ( NULL AS INTEGER ) / 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT NULLIF ( + + 59, COUNT( * ) ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4768
SELECT NULLIF ( + + 59, COUNT ( * ) ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT + MAX( ALL + 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4769
SELECT + MAX ( ALL + 97 ) AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4770
SELECT ALL 83 DIV + 2
----
41

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL 83 / + 2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4771
SELECT + 3 * + 17 + + 72 - + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT + 3 * + 17 + + 72 - + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT + CAST( 18 AS SIGNED ) col1
----
18

skipif mysql # not compatible
query I rowsort label-4772
SELECT + CAST ( 18 AS INTEGER ) col1
----
18

query I rowsort
SELECT + 23 + - + 83
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL - 99 * + COUNT( * ) - + 47 * - 11 * - 40 * + 47
----
-972059

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL - 99 * + COUNT ( * ) - + 47 * - 11 * - 40 * + 47
----
-972059

query II rowsort
SELECT DISTINCT - 77, + ( 77 ) AS col1
----
-77
77

query I rowsort
SELECT + 39 + + - 10 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL CASE MIN( ALL + 20 ) WHEN 16 THEN NULL WHEN + - 34 + - - 74 THEN NULL ELSE 9 END
----
9

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL CASE MIN ( ALL + 20 ) WHEN 16 THEN NULL WHEN + - 34 + - - 74 THEN NULL ELSE 9 END
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4778
SELECT ALL NULLIF ( + + 57, + 7 ) * + COUNT( * ) DIV MAX( CAST( 82 AS SIGNED ) ) * + 99
----
0

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL NULLIF ( + + 57, + 7 ) * + COUNT ( * ) / MAX ( CAST ( 82 AS INTEGER ) ) * + 99
----
0

query I rowsort
SELECT + - 89 + + ( + 97 ) - - - 2 col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT + + ( - + CASE NULLIF ( + 84, COALESCE ( 87, - COUNT( * ) ) * + ( + 28 ) + 68 ) WHEN NULLIF ( 34, 21 ) + - 75 THEN NULL ELSE 50 END ) + + 2
----
-48

skipif mysql # not compatible
query I rowsort label-4780
SELECT + + ( - + CASE NULLIF ( + 84, COALESCE ( 87, - COUNT ( * ) ) * + ( + 28 ) + 68 ) WHEN NULLIF ( 34, 21 ) + - 75 THEN NULL ELSE 50 END ) + + 2
----
-48

query I rowsort
SELECT + + 3 * 75
----
225

query II rowsort
SELECT - + 18 col0, + 84 + + 8
----
-18
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4783
SELECT - - COUNT( * ) + + 39 + COUNT( * ), - CAST( NULL AS SIGNED ) + ( + 91 ) + + - 9 - - 25 * + AVG ( DISTINCT 55 ) AS col2
----
41
NULL

skipif mysql # not compatible
query II rowsort label-4783
SELECT - - COUNT ( * ) + + 39 + COUNT ( * ), - CAST ( NULL AS INTEGER ) + ( + 91 ) + + - 9 - - 25 * + AVG ( DISTINCT 55 ) AS col2
----
41
NULL

query I rowsort
SELECT + - 28 + 29
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4785
SELECT ALL + 8 AS col1, - 38 * - COUNT( - 92 )
----
8
38

skipif mysql # not compatible
query II rowsort label-4785
SELECT ALL + 8 AS col1, - 38 * - COUNT ( - 92 )
----
8
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT + ( 21 ) + - CAST( NULL AS SIGNED ) - - 38 * - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT + ( 21 ) + - CAST ( NULL AS INTEGER ) - - 38 * - 9
----
NULL

query I rowsort
SELECT - 12 - + + 78 AS col0
----
-90

query I rowsort
SELECT + 51 * - 95 col2
----
-4845

query I rowsort
SELECT + 55 + - 62 - - 55 * + NULLIF ( 95, - 16 ) + + 57 AS col2
----
5275

query I rowsort
SELECT DISTINCT - ( ( - ( + + ( - 86 ) ) ) ) AS col2
----
-86

query I rowsort
SELECT ALL + 92 * 41
----
3772

query II rowsort
SELECT 51, 47 * + 60 + + + 14 * - 9 AS col2
----
51
2694

query II rowsort
SELECT ALL 40, + 55 * + 75 AS col0
----
40
4125

query I rowsort
SELECT ALL + 90 + 55
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT MIN( ALL - - 94 )
----
94

skipif mysql # not compatible
query I rowsort label-4795
SELECT MIN ( ALL - - 94 )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4796
SELECT 13 DIV 79 * + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4796
SELECT 13 / 79 * + 72 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT DISTINCT - CAST( + - 92 AS SIGNED ) * + 20 * - - CAST( NULL AS SIGNED ) + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT - CAST ( + - 92 AS INTEGER ) * + 20 * - - CAST ( NULL AS INTEGER ) + 42
----
NULL

query I rowsort
SELECT 54 - - + 80 * 34 + + 3
----
2777

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL - CASE - COUNT( * ) WHEN - 29 THEN NULL WHEN + 87 THEN 27 / 64 + + 2 + 61 * MAX( 0 ) + - 17 END + - 87 * + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL - CASE - COUNT ( * ) WHEN - 29 THEN NULL WHEN + 87 THEN 27 / 64 + + 2 + 61 * MAX ( 0 ) + - 17 END + - 87 * + 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT - 81 / + + 52 + - CASE + 73 WHEN + 36 * + MAX( ALL - + 12 ) + + + 99 * 55 * + 3 THEN 49 END + 61 / 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT - 81 / + + 52 + - CASE + 73 WHEN + 36 * + MAX ( ALL - + 12 ) + + + 99 * 55 * + 3 THEN 49 END + 61 / 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT DISTINCT 19 * - COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT 19 * - COUNT ( * ) AS col1
----
-19

query I rowsort
SELECT ALL + 60 * + ( + 82 )
----
4920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4803
SELECT 53 * - COUNT( * ) * CAST( NULL AS SIGNED ) * - - 60 * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT 53 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - 60 * - 47
----
NULL

query I rowsort
SELECT ( + 33 ) + - ( + + 53 )
----
-20

query II rowsort
SELECT DISTINCT 77 * 20 AS col2, + 55
----
1540
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL 35 - + 94 + + + 58 * + 93 + + - COUNT( * ) * + - 49 * - ( - ( 26 ) ) AS col2
----
6609

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL 35 - + 94 + + + 58 * + 93 + + - COUNT ( * ) * + - 49 * - ( - ( 26 ) ) AS col2
----
6609

onlyif mysql # aggregate syntax: 
query II rowsort label-4807
SELECT DISTINCT - - 25 * 20 AS col1, ( 84 ) - + MAX( - - CASE + + 79 WHEN - 7 THEN + + 31 WHEN 96 * + 8 THEN NULL WHEN + 53 THEN - 30 ELSE NULL END )
----
500
NULL

skipif mysql # not compatible
query II rowsort label-4807
SELECT DISTINCT - - 25 * 20 AS col1, ( 84 ) - + MAX ( - - CASE + + 79 WHEN - 7 THEN + + 31 WHEN 96 * + 8 THEN NULL WHEN + 53 THEN - 30 ELSE NULL END )
----
500
NULL

query I rowsort
SELECT - 99 * 98
----
-9702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4809
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN 4 * - + NULLIF ( - COUNT( * ), COUNT( DISTINCT + 37 ) ) THEN NULL ELSE + 87 END * + COUNT( * ) + 52 * 38 AS col2
----
1889

skipif mysql # not compatible
query I rowsort label-4809
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN 4 * - + NULLIF ( - COUNT ( * ), COUNT ( DISTINCT + 37 ) ) THEN NULL ELSE + 87 END * + COUNT ( * ) + 52 * 38 AS col2
----
1889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4810
SELECT ALL COUNT( + - 21 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL COUNT ( + - 21 ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + COALESCE ( 98, + - 4 * + 83 + - 8, + 85 ) * + 42 col0
----
4116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4812
SELECT ALL COALESCE ( + + CAST( + 47 AS SIGNED ), - - ( + CAST( - + 59 AS SIGNED ) ) + 0 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL COALESCE ( + + CAST ( + 47 AS INTEGER ), - - ( + CAST ( - + 59 AS INTEGER ) ) + 0 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT DISTINCT - 52 + + 5 + + NULLIF ( + 30, + + 72 * + 14 + + - ( CASE WHEN NULL < NULL THEN + 40 WHEN ( COUNT( * ) ) NOT IN ( + 22 ) THEN NULL END ) )
----
-17

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT - 52 + + 5 + + NULLIF ( + 30, + + 72 * + 14 + + - ( CASE WHEN NULL < NULL THEN + 40 WHEN ( COUNT ( * ) ) NOT IN ( + 22 ) THEN NULL END ) )
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT - NULLIF ( + + 54, - 7 * CAST( NULL AS SIGNED ) ) * 9
----
-486

skipif mysql # not compatible
query I rowsort label-4814
SELECT - NULLIF ( + + 54, - 7 * CAST ( NULL AS INTEGER ) ) * 9
----
-486

query I rowsort
SELECT - 85 + 99
----
14

query I rowsort
SELECT 18 * + + 68 AS col0
----
1224

query I rowsort
SELECT 54 + - 82
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT ALL + COALESCE ( - 93, MAX( 89 ) + - 0 * 7 ) + - 16 * + - NULLIF ( + 85, - 34 + 21 * 52 )
----
1267

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL + COALESCE ( - 93, MAX ( 89 ) + - 0 * 7 ) + - 16 * + - NULLIF ( + 85, - 34 + 21 * 52 )
----
1267

query I rowsort
SELECT 44 * + 14 AS col0
----
616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4820
SELECT - MIN( DISTINCT - CAST( + 1 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4820
SELECT - MIN ( DISTINCT - CAST ( + 1 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT ALL - NULLIF ( + 13, + 87 * 89 + 87 - COUNT( * ) ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL - NULLIF ( + 13, + 87 * 89 + 87 - COUNT ( * ) ) AS col1
----
-13

query II rowsort
SELECT + 76 AS col0, + ( - 55 )
----
76
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-4823
SELECT ALL - 87 * MIN( ALL - - 68 ) * + ( + 74 ) + + + 31 AS col2, + 44 AS col1
----
-437753
44

skipif mysql # not compatible
query II rowsort label-4823
SELECT ALL - 87 * MIN ( ALL - - 68 ) * + ( + 74 ) + + + 31 AS col2, + 44 AS col1
----
-437753
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4824
SELECT COUNT( * ), 85 AS col0
----
1
85

skipif mysql # not compatible
query II rowsort label-4824
SELECT COUNT ( * ), 85 AS col0
----
1
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT COUNT( * ) * - 29
----
-29

skipif mysql # not compatible
query I rowsort label-4825
SELECT COUNT ( * ) * - 29
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4826
SELECT COUNT( * ) AS col0, - NULLIF ( + 21, + + ( - 61 ) + - 49 ) * - 26 AS col0
----
1
546

skipif mysql # not compatible
query II rowsort label-4826
SELECT COUNT ( * ) AS col0, - NULLIF ( + 21, + + ( - 61 ) + - 49 ) * - 26 AS col0
----
1
546

onlyif mysql # aggregate syntax: 
query II rowsort label-4827
SELECT ALL + 56 - + NULLIF ( + - MIN( 62 ), - - 55 ), + 83 AS col2
----
118
83

skipif mysql # not compatible
query II rowsort label-4827
SELECT ALL + 56 - + NULLIF ( + - MIN ( 62 ), - - 55 ), + 83 AS col2
----
118
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT DISTINCT - NULLIF ( + + COUNT( * ), ( + 27 ) * + 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT - NULLIF ( + + COUNT ( * ), ( + 27 ) * + 3 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT + 7 * - - 68 - + COUNT( * )
----
475

skipif mysql # not compatible
query I rowsort label-4829
SELECT + 7 * - - 68 - + COUNT ( * )
----
475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4830
SELECT DISTINCT + 84 DIV MAX( + 83 )
----
1

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT + 84 / MAX ( + 83 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT ALL - 57 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL - 57 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 66 * - + 34 * - - 48 AS col0
----
-107712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4833
SELECT 25 * 0 * - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT 25 * 0 * - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 83 + - - 77
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT 56 DIV + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4835
SELECT 56 / + 80 AS col1
----
0

query I rowsort
SELECT DISTINCT + 50 * 73 col1
----
3650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT + CAST( NULL AS SIGNED ) * + + 95 + - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT + CAST ( NULL AS INTEGER ) * + + 95 + - 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL - - ( - SUM( ALL - 73 ) )
----
73

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL - - ( - SUM ( ALL - 73 ) )
----
73

query I rowsort
SELECT - 44 * - 67 - + 33 AS col1
----
2915

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT + COUNT( * ) + + ( CASE 12 WHEN 24 * - COUNT( * ) THEN NULL WHEN 57 THEN - ( + 75 ) ELSE NULL END ) + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT + COUNT ( * ) + + ( CASE 12 WHEN 24 * - COUNT ( * ) THEN NULL WHEN 57 THEN - ( + 75 ) ELSE NULL END ) + + 78
----
NULL

query I rowsort
SELECT ALL - - 48 * + 35
----
1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4842
SELECT - 46 + - 0 + + COUNT( * ) AS col1, 0 DIV ( COUNT( * ) ) DIV + 41 - 4 * - 58
----
-45
232

skipif mysql # not compatible
query II rowsort label-4842
SELECT - 46 + - 0 + + COUNT ( * ) AS col1, 0 / ( COUNT ( * ) ) / + 41 - 4 * - 58
----
-45
232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4843
SELECT ALL + 76 + ( - - CAST( + + COUNT( 67 ) AS SIGNED ) ) AS col0, 81
----
77
81

skipif mysql # not compatible
query II rowsort label-4843
SELECT ALL + 76 + ( - - CAST ( + + COUNT ( 67 ) AS INTEGER ) ) AS col0, 81
----
77
81

query I rowsort
SELECT - ( 80 ) + + 92 AS col1
----
12

query I rowsort
SELECT + 69 * - COALESCE ( - 97, 66 ) - + + 91 * - 17
----
8240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4846
SELECT DISTINCT CAST( 80 AS SIGNED ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT CAST ( 80 AS INTEGER ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT ALL + + COUNT( * ) + - 7 col2
----
-6

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL + + COUNT ( * ) + - 7 col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT CASE 63 WHEN - COUNT( * ) * - 93 - 25 THEN NULL WHEN + 48 THEN - ( 34 ) * + 54 * 76 * 86 + + 5 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT CASE 63 WHEN - COUNT ( * ) * - 93 - 25 THEN NULL WHEN + 48 THEN - ( 34 ) * + 54 * 76 * 86 + + 5 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4849
SELECT DISTINCT CASE - CAST( NULL AS DECIMAL ) WHEN - - 18 THEN NULL WHEN + 74 * 17 THEN NULL ELSE - ( - 79 ) + - + 66 END + + 61 + 20
----
94

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT CASE - CAST ( NULL AS REAL ) WHEN - - 18 THEN NULL WHEN + 74 * 17 THEN NULL ELSE - ( - 79 ) + - + 66 END + + 61 + 20
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT ALL 8 * CAST( 66 AS SIGNED ) col1
----
528

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL 8 * CAST ( 66 AS INTEGER ) col1
----
528

query II rowsort
SELECT 57 AS col2, - 90
----
57
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4852
SELECT ALL + 59 DIV + 43
----
1

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + 59 / + 43
----
1

query II rowsort
SELECT 86, - 58 AS col0
----
86
-58

query I rowsort
SELECT + 72 + - 92 + + 80 * + + 48
----
3820

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT - MIN( 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-4855
SELECT - MIN ( 79 ) AS col0
----
-79

query II rowsort
SELECT 94 AS col1, - 3
----
94
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4857
SELECT + AVG ( DISTINCT 65 ) * + - 22 + CAST( - + COUNT( * ) AS SIGNED ) - 5 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT + AVG ( DISTINCT 65 ) * + - 22 + CAST ( - + COUNT ( * ) AS INTEGER ) - 5 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT + CAST( NULL AS SIGNED ) + 66 + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT + CAST ( NULL AS INTEGER ) + 66 + + 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4859
SELECT + SUM( - CAST( NULL AS SIGNED ) ) * + AVG ( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT + SUM ( - CAST ( NULL AS INTEGER ) ) * + AVG ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT ALL 0 DIV + ( - 80 ) DIV - 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL 0 / + ( - 80 ) / - 50 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT + COUNT( * ) * + + 28 * + ( - 75 ) AS col2
----
-2100

skipif mysql # not compatible
query I rowsort label-4861
SELECT + COUNT ( * ) * + + 28 * + ( - 75 ) AS col2
----
-2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT ( MAX( - 97 ) ) * + 5 * + - 20 + - CAST( NULL AS SIGNED ) + 96 * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT ( MAX ( - 97 ) ) * + 5 * + - 20 + - CAST ( NULL AS INTEGER ) + 96 * 27
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4863
SELECT + + ( - - 62 ) AS col0, - COALESCE ( 81, - NULLIF ( 50, - 98 ), 38 + + 84 DIV - 64 ) * + 6 * 72 AS col0
----
62
-34992

skipif mysql # not compatible
query II rowsort label-4863
SELECT + + ( - - 62 ) AS col0, - COALESCE ( 81, - NULLIF ( 50, - 98 ), 38 + + 84 / - 64 ) * + 6 * 72 AS col0
----
62
-34992

query II rowsort
SELECT DISTINCT + + ( + - 51 ) AS col0, ( + 19 ) - 16 * - 89 + ( - 38 ) AS col0
----
-51
1405

query I rowsort
SELECT ALL - 21 * 50 + - 55
----
-1105

query I rowsort
SELECT + NULLIF ( + - 31, + AVG ( ALL 48 ) * 72 ) AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT + CAST( + 24 AS SIGNED ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4867
SELECT + CAST ( + 24 AS INTEGER ) AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4868
SELECT DISTINCT 79 * - + AVG ( - 52 ) * 36 * - CAST( NULL AS SIGNED ) + 88 AS col0, CAST( - 50 AS SIGNED ) * + CAST( NULL AS SIGNED ) * + + 88
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4868
SELECT DISTINCT 79 * - + AVG ( - 52 ) * 36 * - CAST ( NULL AS INTEGER ) + 88 AS col0, CAST ( - 50 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + + 88
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4869
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - 82 + + - MAX( + 73 ) + - - 85 / + - CASE 0 WHEN 87 THEN + 7 WHEN - - 96 * + - 3 - 15 + + 74 / ( AVG ( + 66 ) ) THEN NULL END * 66 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - 82 + + - MAX ( + 73 ) + - - 85 / + - CASE 0 WHEN 87 THEN + 7 WHEN - - 96 * + - 3 - 15 + + 74 / ( AVG ( + 66 ) ) THEN NULL END * 66 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL + - 53 * 69 * + - ( + 8 ) * + + 6 + COUNT( * )
----
175537

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL + - 53 * 69 * + - ( + 8 ) * + + 6 + COUNT ( * )
----
175537

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT - 44 * + COUNT( * ) * + 85 * - 41 AS col0
----
153340

skipif mysql # not compatible
query I rowsort label-4871
SELECT - 44 * + COUNT ( * ) * + 85 * - 41 AS col0
----
153340

query I rowsort
SELECT ALL + 38 * 5 + + - 13
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT + MAX( - - 90 ) * - COUNT( - - 17 ) * 38
----
-3420

skipif mysql # not compatible
query I rowsort label-4873
SELECT + MAX ( - - 90 ) * - COUNT ( - - 17 ) * 38
----
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL - 24 * 70 + 11 + - - CASE - + 25 WHEN SUM( - - 97 ) * - 92 THEN 29 END / + - 6 * + - 48 + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL - 24 * 70 + 11 + - - CASE - + 25 WHEN SUM ( - - 97 ) * - 92 THEN 29 END / + - 6 * + - 48 + 10 AS col0
----
NULL

query I rowsort
SELECT - + 39 - - 41
----
2

query II rowsort
SELECT NULLIF ( - - 28, + 67 / + 65 ) AS col0, + 16
----
28
16

query I rowsort
SELECT - - 64 * - 95
----
-6080

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL + MAX( + 81 ) * + COUNT( * ) + 27 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL + MAX ( + 81 ) * + COUNT ( * ) + 27 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL MIN( ( + 3 ) )
----
3

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL MIN ( ( + 3 ) )
----
3

query I rowsort
SELECT ALL - + 49 + - 86 AS col2
----
-135

query II rowsort
SELECT ALL NULLIF ( + 19, - - 17 + + 75 ) AS col0, 91
----
19
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4882
SELECT DISTINCT - COUNT( * ) - + 29 * - 38 AS col2, - CASE + 98 WHEN + 80 THEN NULL WHEN 48 / - + 55 THEN NULL WHEN - 15 + - 19 THEN + 91 END + - + 77 - 99 * 38 / + 37 AS col1
----
1101
NULL

skipif mysql # not compatible
query II rowsort label-4882
SELECT DISTINCT - COUNT ( * ) - + 29 * - 38 AS col2, - CASE + 98 WHEN + 80 THEN NULL WHEN 48 / - + 55 THEN NULL WHEN - 15 + - 19 THEN + 91 END + - + 77 - 99 * 38 / + 37 AS col1
----
1101
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT - COUNT( * ) + + + 93 * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-4883
SELECT - COUNT ( * ) + + + 93 * - COUNT ( * )
----
-94

onlyif mysql # DIV for integer division: 
query II rowsort label-4884
SELECT ALL ( 3 ), 94 DIV 1 AS col1
----
3
94

skipif mysql # not compatible
query II rowsort label-4884
SELECT ALL ( 3 ), 94 / 1 AS col1
----
3
94

query I rowsort
SELECT DISTINCT ( - 72 ) col1
----
-72

query II rowsort
SELECT - 55 * 74 AS col0, + 69 * - - 72 + + + 77 col0
----
-4070
5045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4887
SELECT ALL CAST( + ( + CASE - COUNT( * ) WHEN - - CAST( + COUNT( * ) AS SIGNED ) + + 17 + - 62 + - 84 THEN NULL ELSE + 81 + 20 END ) AS SIGNED )
----
101

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL CAST ( + ( + CASE - COUNT ( * ) WHEN - - CAST ( + COUNT ( * ) AS INTEGER ) + + 17 + - 62 + - 84 THEN NULL ELSE + 81 + 20 END ) AS INTEGER )
----
101

query I rowsort
SELECT DISTINCT 60 - - 30 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT - COALESCE ( + COUNT( * ), - 15 ) * + 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4889
SELECT - COALESCE ( + COUNT ( * ), - 15 ) * + 40 AS col1
----
-40

query II rowsort
SELECT ALL ( 10 ) col2, - 19
----
10
-19

query I rowsort
SELECT ALL 12 * - 27
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT - COALESCE ( + - 97, + COUNT( * ) - + 54 * - - 33 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4892
SELECT - COALESCE ( + - 97, + COUNT ( * ) - + 54 * - - 33 ) AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4893
SELECT + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) / - 52 / - 70 / COUNT( * ) * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) / - 52 / - 70 / COUNT ( * ) * - 91
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT + CAST( ( + - 74 ) AS SIGNED ) * - NULLIF ( + - 40, - + 0 / CAST( NULL AS SIGNED ) * + 68 )
----
-2960

skipif mysql # not compatible
query I rowsort label-4894
SELECT + CAST ( ( + - 74 ) AS INTEGER ) * - NULLIF ( + - 40, - + 0 / CAST ( NULL AS INTEGER ) * + 68 )
----
-2960

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4895
SELECT ALL 59 * - NULLIF ( - 44, + 73 + + CAST( NULL AS SIGNED ) + 64 ) * + + 76, 79 DIV - + 43 AS col1
----
197296
-1

skipif mysql # not compatible
query II rowsort label-4895
SELECT ALL 59 * - NULLIF ( - 44, + 73 + + CAST ( NULL AS INTEGER ) + 64 ) * + + 76, 79 / - + 43 AS col1
----
197296
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT DISTINCT COUNT( * ) * - + COALESCE ( CASE + 84 WHEN + + ( - - 68 ) + - 95 THEN NULL ELSE - 99 END, 56 ) * - 81 * + - 31 AS col2
----
248589

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT COUNT ( * ) * - + COALESCE ( CASE + 84 WHEN + + ( - - 68 ) + - 95 THEN NULL ELSE - 99 END, 56 ) * - 81 * + - 31 AS col2
----
248589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4897
SELECT + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * 22 - + 34 * SUM( DISTINCT 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * 22 - + 34 * SUM ( DISTINCT 64 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4898
SELECT + 47 DIV + 6
----
7

skipif mysql # not compatible
query I rowsort label-4898
SELECT + 47 / + 6
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4899
SELECT ALL MIN( DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) / 82 * + - 65 + - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL MIN ( DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) / 82 * + - 65 + - 77 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT + + 81 * - 44 * COUNT( - 44 )
----
-3564

skipif mysql # not compatible
query I rowsort label-4900
SELECT + + 81 * - 44 * COUNT ( - 44 )
----
-3564

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT ALL 62 + + 49 DIV - 89 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL 62 + + 49 / - 89 AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4902
SELECT ALL 45 + + CAST( NULL AS SIGNED ) + COALESCE ( + 94, - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL 45 + + CAST ( NULL AS INTEGER ) + COALESCE ( + 94, - + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT - - 49 * + - 99 * - 98 - - + COALESCE ( - 5, + 68 * - + 89 - - 66 + - SUM( DISTINCT + - 26 ) + - 73 * + - MAX( DISTINCT + 63 ), 71 * 52 ) / CASE + ( + NULLIF ( 97, 64 ) ) * 43 WHEN + 59 THEN - 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4903
SELECT - - 49 * + - 99 * - 98 - - + COALESCE ( - 5, + 68 * - + 89 - - 66 + - SUM ( DISTINCT + - 26 ) + - 73 * + - MAX ( DISTINCT + 63 ), 71 * 52 ) / CASE + ( + NULLIF ( 97, 64 ) ) * 43 WHEN + 59 THEN - 66 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - + 85 col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT 29 * - + 40 + - NULLIF ( 78, 3 ) + - COUNT( ALL - 78 ) * COUNT( * ) * + 5 - - 68
----
-1175

skipif mysql # not compatible
query I rowsort label-4905
SELECT 29 * - + 40 + - NULLIF ( 78, 3 ) + - COUNT ( ALL - 78 ) * COUNT ( * ) * + 5 - - 68
----
-1175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4906
SELECT DISTINCT 3 * - 10 * + - 86 * - + 59 * 18 + - CAST( + + 26 AS SIGNED )
----
-2739986

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT 3 * - 10 * + - 86 * - + 59 * 18 + - CAST ( + + 26 AS INTEGER )
----
-2739986

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT MIN( DISTINCT - 36 ) * + + 35 AS col0
----
-1260

skipif mysql # not compatible
query I rowsort label-4907
SELECT MIN ( DISTINCT - 36 ) * + + 35 AS col0
----
-1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT CAST( NULL AS SIGNED ) + 43 + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT CAST ( NULL AS INTEGER ) + 43 + 96 AS col2
----
NULL

query I rowsort
SELECT ALL - 74 + - 18
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT 36 + + SUM( ALL 23 )
----
59

skipif mysql # not compatible
query I rowsort label-4910
SELECT 36 + + SUM ( ALL 23 )
----
59

query I rowsort
SELECT + COALESCE ( 52, + 50 ) AS col0
----
52

query I rowsort
SELECT DISTINCT - 71 * + 2
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT DISTINCT + MIN( - 62 ) * + 88 * + - 86 AS col1
----
469216

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT + MIN ( - 62 ) * + 88 * + - 86 AS col1
----
469216

query I rowsort
SELECT ALL - - 13 - 83 + + + 25 * - 24
----
-670

query I rowsort
SELECT + 45 + + 94 AS col0
----
139

query II rowsort
SELECT - 61 col0, + 31 + - 4 - + 16 * + 94 AS col0
----
-61
-1477

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT 66 + - COUNT( * ) + + 3 - - 62 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-4917
SELECT 66 + - COUNT ( * ) + + 3 - - 62 AS col2
----
130

query I rowsort
SELECT ( - + 94 ) * - ( 89 ) * 13
----
108758

query I rowsort
SELECT 82 * + 87
----
7134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4920
SELECT - 26 AS col1, 1 * MAX( ALL - 89 ) / + - CASE COALESCE ( COALESCE ( + 26, + 53 * - 64 / + 98 + 94 / + + 67 * + 77 ), - 61, - 98 ) WHEN 44 - ( - 23 ) THEN 94 WHEN 81 + 19 THEN NULL ELSE + 40 + CAST( NULL AS SIGNED ) END AS col2
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-4920
SELECT - 26 AS col1, 1 * MAX ( ALL - 89 ) / + - CASE COALESCE ( COALESCE ( + 26, + 53 * - 64 / + 98 + 94 / + + 67 * + 77 ), - 61, - 98 ) WHEN 44 - ( - 23 ) THEN 94 WHEN 81 + 19 THEN NULL ELSE + 40 + CAST ( NULL AS INTEGER ) END AS col2
----
-26
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4921
SELECT ALL 79, MAX( ALL - 50 ) AS col1
----
79
-50

skipif mysql # not compatible
query II rowsort label-4921
SELECT ALL 79, MAX ( ALL - 50 ) AS col1
----
79
-50

query I rowsort
SELECT 78 - + 45
----
33

query I rowsort
SELECT DISTINCT + 25 * + 75
----
1875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4924
SELECT 88 + + - COUNT( * ) DIV + 34 * + 31 + - + 35 + - + COUNT( * ) * + 87 * 97 + + - 26 * + 22 + - COUNT( * ) * - COALESCE ( + 89, + 99 + 70 * + 67 )
----
-8869

skipif mysql # not compatible
query I rowsort label-4924
SELECT 88 + + - COUNT ( * ) / + 34 * + 31 + - + 35 + - + COUNT ( * ) * + 87 * 97 + + - 26 * + 22 + - COUNT ( * ) * - COALESCE ( + 89, + 99 + 70 * + 67 )
----
-8869

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT 62 * + - COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-4925
SELECT 62 * + - COUNT ( * ) AS col1
----
-62

query I rowsort
SELECT ALL + 98 + + 69
----
167

query I rowsort
SELECT 68 + 44 * - 22 AS col2
----
-900

query I rowsort
SELECT 78 + + ( + - 69 ) * 79 - + - 12
----
-5361

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4929
SELECT 13 - CAST( 50 AS SIGNED ) * 32
----
-1587

skipif mysql # not compatible
query I rowsort label-4929
SELECT 13 - CAST ( 50 AS INTEGER ) * 32
----
-1587

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT 12 + + - 91 + + 11 * - MIN( DISTINCT + CASE + 22 WHEN - 77 THEN - 13 + - 42 END ) * - ( - 37 ) * - + ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT 12 + + - 91 + + 11 * - MIN ( DISTINCT + CASE + 22 WHEN - 77 THEN - 13 + - 42 END ) * - ( - 37 ) * - + ( COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4931
SELECT DISTINCT - - COUNT( 9 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT - - COUNT ( 9 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 0 ) AS col1
----
0

query I rowsort
SELECT + 99 + + 8 col2
----
107

query II rowsort
SELECT ALL - NULLIF ( + + ( - 85 ), 38 ) * + + 74 + 78 AS col1, + 4
----
6368
4

query II rowsort
SELECT + + 66 AS col2, + 66
----
66
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4936
SELECT DISTINCT + NULLIF ( 92, 15 * + 38 + + 22 + ( - + CAST( - 68 AS SIGNED ) ) * - SUM( DISTINCT + 8 ) + + - 37 - - COUNT( * ) ) * + - 92
----
-8464

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT + NULLIF ( 92, 15 * + 38 + + 22 + ( - + CAST ( - 68 AS INTEGER ) ) * - SUM ( DISTINCT + 8 ) + + - 37 - - COUNT ( * ) ) * + - 92
----
-8464

query I rowsort
SELECT ALL 96 + + 61 * - - COALESCE ( - 35, + 83, - 87 )
----
-2039

onlyif mysql # DIV for integer division: 
query I rowsort label-4938
SELECT - 66 * - 69 * - + 18 DIV - 9 + 72 * 91 col2
----
15660

skipif mysql # not compatible
query I rowsort label-4938
SELECT - 66 * - 69 * - + 18 / - 9 + 72 * 91 col2
----
15660

query I rowsort
SELECT - 35 * - - 45
----
-1575

query II rowsort
SELECT 6 AS col0, - COALESCE ( 35, + 76 * + + 27 + 24 )
----
6
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-4941
SELECT 18 * - COUNT( * ) + + 90 AS col0, + NULLIF ( - - COUNT( ALL 86 ), + 8 ) * - 69 * + 78 AS col0
----
72
-5382

skipif mysql # not compatible
query II rowsort label-4941
SELECT 18 * - COUNT ( * ) + + 90 AS col0, + NULLIF ( - - COUNT ( ALL 86 ), + 8 ) * - 69 * + 78 AS col0
----
72
-5382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4942
SELECT ALL - COUNT( * ) - + 29 + CASE + 81 WHEN - COUNT( * ) THEN - CAST( NULL AS DECIMAL ) + + COUNT( * ) WHEN 48 + - 89 + + COALESCE ( 83, - - CAST( NULL AS SIGNED ) * - 95 ) * - ( + 89 + ( 84 + + 54 ) * 44 ) THEN NULL ELSE NULL END * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL - COUNT ( * ) - + 29 + CASE + 81 WHEN - COUNT ( * ) THEN - CAST ( NULL AS REAL ) + + COUNT ( * ) WHEN 48 + - 89 + + COALESCE ( 83, - - CAST ( NULL AS INTEGER ) * - 95 ) * - ( + 89 + ( 84 + + 54 ) * 44 ) THEN NULL ELSE NULL END * 58 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4943
SELECT + CASE + + ( - 85 ) WHEN + + 50 * 76 * - + CAST( NULL AS SIGNED ) THEN + 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT + CASE + + ( - 85 ) WHEN + + 50 * 76 * - + CAST ( NULL AS INTEGER ) THEN + 92 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 84 - + 15
----
-99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4945
SELECT DISTINCT CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) * - - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) * - - 24 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( + 92 )
----
-92

query I rowsort
SELECT 61 * + 32
----
1952

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT DISTINCT COUNT( * ) * - + 34 * - COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT COUNT ( * ) * - + 34 * - COUNT ( * ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4949
SELECT - SUM( ALL + - 49 ) AS col1, 82 + - 40 + - 75 AS col1
----
49
-33

skipif mysql # not compatible
query II rowsort label-4949
SELECT - SUM ( ALL + - 49 ) AS col1, 82 + - 40 + - 75 AS col1
----
49
-33

query I rowsort
SELECT 46 - - 85
----
131

query I rowsort
SELECT ALL 43 * 99 AS col0
----
4257

query I rowsort
SELECT DISTINCT 55 * + 9
----
495

query I rowsort
SELECT ALL 90 * - 14 AS col2
----
-1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4954
SELECT 72 DIV - NULLIF ( 1, - + 69 ) * + COUNT( * ) + COUNT( * ) - + 51 AS col0, COUNT( ALL + - 44 ) * CASE - 22 WHEN + 85 * + - 85 THEN COUNT( * ) WHEN + 53 * 80 + - 53 * 36 THEN 3 WHEN + COUNT( * ) * + 94 THEN NULL ELSE NULL END DIV + COUNT( * )
----
-122
NULL

skipif mysql # not compatible
query II rowsort label-4954
SELECT 72 / - NULLIF ( 1, - + 69 ) * + COUNT ( * ) + COUNT ( * ) - + 51 AS col0, COUNT ( ALL + - 44 ) * CASE - 22 WHEN + 85 * + - 85 THEN COUNT ( * ) WHEN + 53 * 80 + - 53 * 36 THEN 3 WHEN + COUNT ( * ) * + 94 THEN NULL ELSE NULL END / + COUNT ( * )
----
-122
NULL

query I rowsort
SELECT ALL 7 * ( - - 12 )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4956
SELECT DISTINCT - 56 DIV 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT - 56 / 87 AS col2
----
0

query I rowsort
SELECT DISTINCT 42 + 67 * - 7
----
-427

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT 91 - + - SUM( + 12 ) + COUNT( * )
----
104

skipif mysql # not compatible
query I rowsort label-4958
SELECT 91 - + - SUM ( + 12 ) + COUNT ( * )
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT 97 / - + 46 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT 97 / - + 46 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 77 + - 47
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT - SUM( + ( - 32 ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4961
SELECT - SUM ( + ( - 32 ) ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT - CASE - COUNT( * ) WHEN MAX( ( - - 80 ) ) * + 84 + + 93 THEN + MAX( + 48 ) / + 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT - CASE - COUNT ( * ) WHEN MAX ( ( - - 80 ) ) * + 84 + + 93 THEN + MAX ( + 48 ) / + 28 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 39 * - + 52 AS col0
----
2028

query II rowsort
SELECT ALL 0 + - + 95, 80 + 84 col2
----
-95
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4965
SELECT DISTINCT + COUNT( * ) + + NULLIF ( + + CASE - CAST( NULL AS SIGNED ) WHEN + - 7 THEN NULL WHEN COALESCE ( + 40, 73 * + - 71 + 30 + - - 57 / - 59 + + - ( AVG ( ALL - 30 ) ) + + 29 * 26, 37, 87 * + 51 ) * 91 THEN CAST( 50 AS SIGNED ) END, + 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT + COUNT ( * ) + + NULLIF ( + + CASE - CAST ( NULL AS INTEGER ) WHEN + - 7 THEN NULL WHEN COALESCE ( + 40, 73 * + - 71 + 30 + - - 57 / - 59 + + - ( AVG ( ALL - 30 ) ) + + 29 * 26, 37, 87 * + 51 ) * 91 THEN CAST ( 50 AS INTEGER ) END, + 27 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL - 67 + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL - 67 + COUNT ( * )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4967
SELECT DISTINCT 35 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT 35 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT DISTINCT COUNT( + 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT COUNT ( + 89 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT - 97 * - COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4969
SELECT - 97 * - COUNT ( * ) AS col2
----
97

query I rowsort
SELECT + 36 * + 64
----
2304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4971
SELECT ALL + - 1 * + 69 / + 98 * + 76 + + CAST( NULL AS SIGNED ) + + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL + - 1 * + 69 / + 98 * + 76 + + CAST ( NULL AS INTEGER ) + + 68 AS col0
----
NULL

query I rowsort
SELECT - + 12 * + 37 - 74 - 89
----
-607

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4973
SELECT 26 DIV 29 - + CAST( - 90 AS SIGNED ) * - + 92, + 40 AS col2
----
-8280
40

skipif mysql # not compatible
query II rowsort label-4973
SELECT 26 / 29 - + CAST ( - 90 AS INTEGER ) * - + 92, + 40 AS col2
----
-8280
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL + NULLIF ( - ( - + 19 ), 75 * + + COUNT( * ) ) col0
----
19

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL + NULLIF ( - ( - + 19 ), 75 * + + COUNT ( * ) ) col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4975
SELECT ALL 21 * + - 70 - 51 DIV NULLIF ( - 47, + + 17 ) + - MIN( + 62 ) * - 3
----
-1283

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL 21 * + - 70 - 51 / NULLIF ( - 47, + + 17 ) + - MIN ( + 62 ) * - 3
----
-1283

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT - - 11 * + - MAX( ALL - + 96 ) + - + 66 - - COUNT( * ) * - + MIN( + + 90 ) * - ( + + 31 ) * 9 + + - 34 + 1
----
26067

skipif mysql # not compatible
query I rowsort label-4976
SELECT - - 11 * + - MAX ( ALL - + 96 ) + - + 66 - - COUNT ( * ) * - + MIN ( + + 90 ) * - ( + + 31 ) * 9 + + - 34 + 1
----
26067

onlyif mysql # aggregate syntax: 
query II rowsort label-4977
SELECT - ( + NULLIF ( + 87, + - 94 ) ) + + - 92, + COUNT( * ) AS col0
----
-179
1

skipif mysql # not compatible
query II rowsort label-4977
SELECT - ( + NULLIF ( + 87, + - 94 ) ) + + - 92, + COUNT ( * ) AS col0
----
-179
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4978
SELECT - 38 DIV COALESCE ( + COALESCE ( + - COALESCE ( - 63, - + 22 * 22 + 98 * 96, - - ( - - 5 ) * + + 70 ), + - SUM( - 32 ) ), 89, + 93 * - ( COALESCE ( 96, 68 - 49, + ( - 5 ) ) * - 64 ) ) + 2 - + MAX( DISTINCT - 51 )
----
53

skipif mysql # not compatible
query I rowsort label-4978
SELECT - 38 / COALESCE ( + COALESCE ( + - COALESCE ( - 63, - + 22 * 22 + 98 * 96, - - ( - - 5 ) * + + 70 ), + - SUM ( - 32 ) ), 89, + 93 * - ( COALESCE ( 96, 68 - 49, + ( - 5 ) ) * - 64 ) ) + 2 - + MAX ( DISTINCT - 51 )
----
53

query II rowsort
SELECT ALL - + 29 * + 32 AS col1, NULLIF ( 84, + - 77 ) * - 24
----
-928
-2016

query II rowsort
SELECT + - 94 * 68 AS col2, + 35 + 12
----
-6392
47

query I rowsort
SELECT ALL - 30 * - 7
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT ( + + COUNT( * ) ) * + - 51 + - 96 + 73
----
-74

skipif mysql # not compatible
query I rowsort label-4982
SELECT ( + + COUNT ( * ) ) * + - 51 + - 96 + 73
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT + + 19 * + COUNT( 8 )
----
19

skipif mysql # not compatible
query I rowsort label-4983
SELECT + + 19 * + COUNT ( 8 )
----
19

query I rowsort
SELECT - COALESCE ( 33, - 70 ) * - 59 * ( - + 56 ) * - 53 + - 32 col2
----
5778664

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT MIN( ALL 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4985
SELECT MIN ( ALL 34 )
----
34

query II rowsort
SELECT ALL + 17, 37 AS col2
----
17
37

query I rowsort
SELECT ALL - 42 * + + 94 * - ( + 94 )
----
371112

query I row