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 rowsort
SELECT + 78 + + 95 AS col1
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4989
SELECT ALL 90 * - + CAST( NULL AS SIGNED ) / 39 * - 21 * - 59 / 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL 90 * - + CAST ( NULL AS INTEGER ) / 39 * - 21 * - 59 / 92 AS col2
----
NULL

query I rowsort
SELECT + 95 * - 34
----
-3230

query I rowsort
SELECT - ( + - COALESCE ( 34, - + 75 + - 61 ) )
----
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT - CASE + - 45 WHEN - ( + MAX( 82 ) ) * + + SUM( ALL + 92 ) + - + 90 THEN + - 48 - - + COALESCE ( COUNT( * ), - + 75 * + COUNT( * ) + - 4 + - ( + 12 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT - CASE + - 45 WHEN - ( + MAX ( 82 ) ) * + + SUM ( ALL + 92 ) + - + 90 THEN + - 48 - - + COALESCE ( COUNT ( * ), - + 75 * + COUNT ( * ) + - 4 + - ( + 12 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4994
SELECT + CAST( NULL AS DECIMAL ) + + - COUNT( * ) + + + COALESCE ( 24, - 78 / 22 ) * + 66 * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT + CAST ( NULL AS REAL ) + + - COUNT ( * ) + + + COALESCE ( 24, - 78 / 22 ) * + 66 * COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ALL 41 + + - COUNT( DISTINCT - ( 17 ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL 41 + + - COUNT ( DISTINCT - ( 17 ) ) AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4996
SELECT ALL COUNT( * ) + + - 75 + - COALESCE ( + 51, ( + - 96 ), + + 60 DIV + 34 ) - - + 21
----
-104

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL COUNT ( * ) + + - 75 + - COALESCE ( + 51, ( + - 96 ), + + 60 / + 34 ) - - + 21
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL ( - + ( - - ( COUNT( * ) ) ) ) + + - 51 + 30 * - + ( - 12 ) AS col0
----
308

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL ( - + ( - - ( COUNT ( * ) ) ) ) + + - 51 + 30 * - + ( - 12 ) AS col0
----
308

query II rowsort
SELECT + 64 * - + ( - + ( + - ( 14 ) ) ) AS col0, 9
----
-896
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT ALL + COUNT( * ) - ( + ( + 94 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL + COUNT ( * ) - ( + ( + 94 ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT + - 30 + - 53 * + COUNT( * ) + + 61 + + + 89
----
67

skipif mysql # not compatible
query I rowsort label-5001
SELECT + - 30 + - 53 * + COUNT ( * ) + + 61 + + + 89
----
67

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

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

query I rowsort
SELECT - + 66 * + - 26 AS col0
----
1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5004
SELECT + + CASE + 64 WHEN + 27 * + CAST( NULL AS SIGNED ) + - - 88 * - NULLIF ( 98, + 9 ) THEN NULL WHEN + MAX( 61 ) + + - 81 THEN - 13 * - 36 DIV + 85 ELSE + 27 END + + COALESCE ( 15 - 84, + COUNT( * ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-5004
SELECT + + CASE + 64 WHEN + 27 * + CAST ( NULL AS INTEGER ) + - - 88 * - NULLIF ( 98, + 9 ) THEN NULL WHEN + MAX ( 61 ) + + - 81 THEN - 13 * - 36 / + 85 ELSE + 27 END + + COALESCE ( 15 - 84, + COUNT ( * ) ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT - - 50 - COUNT( * ) * 35
----
15

skipif mysql # not compatible
query I rowsort label-5005
SELECT - - 50 - COUNT ( * ) * 35
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT DISTINCT + NULLIF ( + CASE - 73 WHEN + + 8 THEN + - CAST( NULL AS SIGNED ) WHEN 88 THEN - 94 ELSE + 29 * + + 11 + 74 END, - 92 ) AS col2
----
393

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT + NULLIF ( + CASE - 73 WHEN + + 8 THEN + - CAST ( NULL AS INTEGER ) WHEN 88 THEN - 94 ELSE + 29 * + + 11 + 74 END, - 92 ) AS col2
----
393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5007
SELECT - CAST( - 54 AS SIGNED ) DIV COUNT( * ) + - ( - 7 ) col1, 57
----
61
57

skipif mysql # not compatible
query II rowsort label-5007
SELECT - CAST ( - 54 AS INTEGER ) / COUNT ( * ) + - ( - 7 ) col1, 57
----
61
57

query I rowsort
SELECT - 88 * + 7
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT - MIN( 64 ) * 10 AS col2
----
-640

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT - MIN ( 64 ) * 10 AS col2
----
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT + 55 * - 60 * 30 * + + COUNT( * ) - - COUNT( * )
----
-98999

skipif mysql # not compatible
query I rowsort label-5010
SELECT + 55 * - 60 * 30 * + + COUNT ( * ) - - COUNT ( * )
----
-98999

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT + 11 * CASE 59 WHEN + + NULLIF ( + + 24, + - 42 ) * + MAX( DISTINCT + 37 ) THEN - + 84 END + + 6 * + + 8 + - - 23 + + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT + 11 * CASE 59 WHEN + + NULLIF ( + + 24, + - 42 ) * + MAX ( DISTINCT + 37 ) THEN - + 84 END + + 6 * + + 8 + - - 23 + + 23 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5013
SELECT - + 74 + - + 86 - - + AVG ( ALL + 5 ) * + 75 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT - + 74 + - + 86 - - + AVG ( ALL + 5 ) * + 75 * - CAST ( NULL AS REAL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5014
SELECT - - COUNT ( * ) * - 88
----
-88

query II rowsort
SELECT DISTINCT + 95 AS col0, 12 * + 22
----
95
264

query II rowsort
SELECT ALL + 36 AS col2, 52 + + 72
----
36
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT DISTINCT + 56 * + + COUNT( - - 87 )
----
56

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT + 56 * + + COUNT ( - - 87 )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5018
SELECT DISTINCT 84 * - 58 DIV COUNT( * ) + + 74 * 4
----
-4576

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT 84 * - 58 / COUNT ( * ) + + 74 * 4
----
-4576

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

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

query I rowsort
SELECT ALL 58 * - 51 + + 67 + - 36 col2
----
-2927

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5021
SELECT - NULLIF ( 50, - NULLIF ( + 24, + 41 * - CAST( - 30 AS SIGNED ) ) ) - + + 2 * + 91 AS col2
----
-232

skipif mysql # not compatible
query I rowsort label-5021
SELECT - NULLIF ( 50, - NULLIF ( + 24, + 41 * - CAST ( - 30 AS INTEGER ) ) ) - + + 2 * + 91 AS col2
----
-232

query I rowsort
SELECT - CASE - 68 WHEN + - 63 THEN + 23 END
----
NULL

query I rowsort
SELECT ALL + 48 + + 23
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT DISTINCT - 94 * + 14 * - COUNT( * ) AS col0
----
1316

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT - 94 * + 14 * - COUNT ( * ) AS col0
----
1316

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL MIN( + 73 ) + 56 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL MIN ( + 73 ) + 56 AS col2
----
129

query II rowsort
SELECT DISTINCT 94 AS col2, - 61
----
94
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5027
SELECT DISTINCT - 67 - COUNT( * ) DIV + 53
----
-67

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT - 67 - COUNT ( * ) / + 53
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT ALL 88 - - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL 88 - - COUNT ( * )
----
89

query II rowsort
SELECT - 54 AS col2, - 94 + + 33 col0
----
-54
-61

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

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

query I rowsort
SELECT 18 * 73 AS col1
----
1314

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

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

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

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

query II rowsort
SELECT - 49 AS col1, 37 * - 34 AS col2
----
-49
-1258

query I rowsort
SELECT 8 + 9
----
17

query I rowsort
SELECT + 6 * 93 * + 11
----
6138

query I rowsort
SELECT ALL 85 * - - 9 AS col0
----
765

query I rowsort
SELECT - 73 * + + 12 AS col1
----
-876

query II rowsort
SELECT DISTINCT 28 AS col0, 67
----
28
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT ALL - MIN( - - 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL - MIN ( - - 4 ) AS col1
----
-4

query II rowsort
SELECT 62 AS col2, 91 + + + 78
----
62
169

query I rowsort
SELECT 26 * - 60 - - + 89 + + - 88
----
-1559

onlyif mysql # aggregate syntax: 
query II rowsort label-5043
SELECT + 53 * 12 + - 11 * - - 41 AS col0, COUNT( * )
----
185
1

skipif mysql # not compatible
query II rowsort label-5043
SELECT + 53 * 12 + - 11 * - - 41 AS col0, COUNT ( * )
----
185
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL 58 + + - 13 * + MIN( DISTINCT + + 94 ) + + 21 + 95 + + 15 * + - 29 AS col2
----
-1483

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL 58 + + - 13 * + MIN ( DISTINCT + + 94 ) + + 21 + 95 + + 15 * + - 29 AS col2
----
-1483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5047
SELECT DISTINCT + 70 + - COUNT( * ) * CAST( + 79 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT + 70 + - COUNT ( * ) * CAST ( + 79 AS INTEGER )
----
-9

query I rowsort
SELECT DISTINCT 26 + + 50 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5049
SELECT CASE - 79 WHEN + 57 * - CAST( NULL AS SIGNED ) THEN NULL ELSE + 32 END + COALESCE ( + + COUNT( * ), - 96 )
----
33

skipif mysql # not compatible
query I rowsort label-5049
SELECT CASE - 79 WHEN + 57 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 32 END + COALESCE ( + + COUNT ( * ), - 96 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5050
SELECT ALL 61 + + 63 DIV - 28 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL 61 + + 63 / - 28 AS col1
----
59

query I rowsort
SELECT DISTINCT + 70 + 55
----
125

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5052
SELECT ALL + 52 + + CAST( NULL AS DECIMAL ) * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + 52 + + CAST ( NULL AS REAL ) * - 64
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5053
SELECT + 10 * + COUNT( * ) * - CAST( - 1 AS SIGNED ) + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5053
SELECT + 10 * + COUNT ( * ) * - CAST ( - 1 AS INTEGER ) + COUNT ( * ) AS col2
----
11

query I rowsort
SELECT 16 - 60 - + + 98 AS col2
----
-142

query I rowsort
SELECT ALL + 53 - + 61 AS col0
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-5056
SELECT 6 * + + 44 col0, 11 DIV 14
----
264
0

skipif mysql # not compatible
query II rowsort label-5056
SELECT 6 * + + 44 col0, 11 / 14
----
264
0

query I rowsort
SELECT ALL + 8 * - - 49 * + 14 * 0 AS col0
----
0

query I rowsort
SELECT DISTINCT + 35 - - ( + - 15 ) AS col1
----
20

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

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

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

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL + COUNT ( * ) - 72 AS col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT 96 * + CAST( NULL AS SIGNED ) * + 87 * + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT 96 * + CAST ( NULL AS INTEGER ) * + 87 * + 84 AS col2
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 99, + ( 23 ) * + + 92 ) * - 36 * + 68 AS col2
----
-242352

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT DISTINCT CASE 65 WHEN - + 25 THEN - + 98 WHEN - - ( CASE + ( + 32 ) WHEN + 50 THEN - - 89 + + + NULLIF ( ( - - 92 ), - 91 * - 99 ) + 81 * + + COUNT( * ) ELSE NULL END ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT CASE 65 WHEN - + 25 THEN - + 98 WHEN - - ( CASE + ( + 32 ) WHEN + 50 THEN - - 89 + + + NULLIF ( ( - - 92 ), - 91 * - 99 ) + 81 * + + COUNT ( * ) ELSE NULL END ) THEN NULL ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT + 43 * - 86
----
-3698

query I rowsort
SELECT ALL - ( 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-5069
SELECT + 10 * - 88, COUNT( * ) AS col0
----
-880
1

skipif mysql # not compatible
query II rowsort label-5069
SELECT + 10 * - 88, COUNT ( * ) AS col0
----
-880
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5070
SELECT 48 + 52 DIV COALESCE ( 43, - ( + 70 ) + + + 52 + + + 27 * - 48 DIV - + 68 - + MAX( DISTINCT + 31 ) DIV - 33, + + 8 * + ( - + COALESCE ( MIN( DISTINCT 64 ), 97 + + 30, + 67 - + 20 * - 7 ) ), - ( + 25 ) DIV 46 ) DIV COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5070
SELECT 48 + 52 / COALESCE ( 43, - ( + 70 ) + + + 52 + + + 27 * - 48 / - + 68 - + MAX ( DISTINCT + 31 ) / - 33, + + 8 * + ( - + COALESCE ( MIN ( DISTINCT 64 ), 97 + + 30, + 67 - + 20 * - 7 ) ), - ( + 25 ) / 46 ) / COUNT ( * ) AS col0
----
49

query I rowsort
SELECT 82 + + 10
----
92

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

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

query I rowsort
SELECT DISTINCT + 15 + - CASE - 95 WHEN - 16 THEN - 74 END / + 3 + - 73 + + 62 col1
----
NULL

query I rowsort
SELECT ALL + 90 * + 77 - 37 + - 89 + - + 14 AS col2
----
6790

query I rowsort
SELECT ALL - 76 * + + 2 + 4 + + - 51
----
-199

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5077
SELECT - 7 DIV ( + 58 ) + + CAST( - - 33 AS SIGNED ) AS col1
----
33

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5078
SELECT ALL COUNT( * ) * - - 79 + + SUM( DISTINCT + 93 ) DIV + 2
----
125

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL COUNT ( * ) * - - 79 + + SUM ( DISTINCT + 93 ) / + 2
----
125

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

skipif mysql # not compatible
query I rowsort label-5079
SELECT SUM ( ALL 5 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5080
SELECT + CASE - 30 WHEN - 17 / COUNT( * ) THEN + - 78 * CAST( NULL AS SIGNED ) * 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT + CASE - 30 WHEN - 17 / COUNT ( * ) THEN + - 78 * CAST ( NULL AS INTEGER ) * 93 ELSE NULL END
----
NULL

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

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

query II rowsort
SELECT - 25 + COALESCE ( + 89, 10 ), 0 AS col2
----
64
0

query II rowsort
SELECT DISTINCT + 20 AS col1, - 86 - + 85
----
20
-171

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL - MIN( - - 7 ) * + ( + 75 ) - - 69 + + COUNT( * ) AS col1
----
-455

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL - MIN ( - - 7 ) * + ( + 75 ) - - 69 + + COUNT ( * ) AS col1
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT + CASE - ( - 89 ) WHEN 16 THEN NULL WHEN + + 34 THEN + 24 + 51 WHEN - COUNT( ALL - 81 ) + + - 57 THEN NULL ELSE - 31 END
----
-31

skipif mysql # not compatible
query I rowsort label-5086
SELECT + CASE - ( - 89 ) WHEN 16 THEN NULL WHEN + + 34 THEN + 24 + 51 WHEN - COUNT ( ALL - 81 ) + + - 57 THEN NULL ELSE - 31 END
----
-31

query I rowsort
SELECT DISTINCT 31 * + 19 - + 19 AS col1
----
570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5088
SELECT ALL + COALESCE ( + 26, 10, - COUNT( * ) * + + 29 ) * + 62 + - COALESCE ( + NULLIF ( + - CAST( NULL AS SIGNED ), - + 83 ), + 34 * 16 ) - - 18 AS col1, ( - COUNT( * ) )
----
1086
-1

skipif mysql # not compatible
query II rowsort label-5088
SELECT ALL + COALESCE ( + 26, 10, - COUNT ( * ) * + + 29 ) * + 62 + - COALESCE ( + NULLIF ( + - CAST ( NULL AS INTEGER ), - + 83 ), + 34 * 16 ) - - 18 AS col1, ( - COUNT ( * ) )
----
1086
-1

query I rowsort
SELECT + 65 * + + 54
----
3510

query I rowsort
SELECT ALL CASE - 96 WHEN AVG ( 40 ) THEN NULL WHEN + - 43 THEN - 68 ELSE + 39 END * - - 10 * + 2 * + - 46 * 13 AS col1
----
-466440

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT + COUNT( ALL + 5 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5091
SELECT + COUNT ( ALL + 5 ) col0
----
1

query I rowsort
SELECT - 83 + 44
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-5093
SELECT 90 AS col2, CASE + 92 WHEN - 70 - - - 56 + CASE - 64 WHEN 50 THEN + - 47 ELSE NULL END * 14 THEN - 63 ELSE 27 END DIV + 77 * - 30
----
90
0

skipif mysql # not compatible
query II rowsort label-5093
SELECT 90 AS col2, CASE + 92 WHEN - 70 - - - 56 + CASE - 64 WHEN 50 THEN + - 47 ELSE NULL END * 14 THEN - 63 ELSE 27 END / + 77 * - 30
----
90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT DISTINCT 70 * - COUNT( * ) * 58 col1
----
-4060

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT 70 * - COUNT ( * ) * 58 col1
----
-4060

query I rowsort
SELECT - 19 + 27
----
8

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

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

query I rowsort
SELECT - + 93 * + 94 - 69 AS col1
----
-8811

onlyif mysql # aggregate syntax: 
query II rowsort label-5098
SELECT - + 71 AS col2, + 48 * + - MIN( - 29 ) AS col2
----
-71
1392

skipif mysql # not compatible
query II rowsort label-5098
SELECT - + 71 AS col2, + 48 * + - MIN ( - 29 ) AS col2
----
-71
1392

onlyif mysql # DIV for integer division: 
query II rowsort label-5099
SELECT ALL - - 96 DIV 63 + 19, - 69 AS col2
----
20
-69

skipif mysql # not compatible
query II rowsort label-5099
SELECT ALL - - 96 / 63 + 19, - 69 AS col2
----
20
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5100
SELECT + ( 20 ) / + 35 * CAST( NULL AS SIGNED ) * + + ( - - 93 ) + - COUNT( ALL + 25 ) + + - 44 * - COALESCE ( - 70, - 71 * - CAST( + - 69 AS SIGNED ) + + 70, - 9 * - 72 ) / ( + 66 ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5100
SELECT + ( 20 ) / + 35 * CAST ( NULL AS INTEGER ) * + + ( - - 93 ) + - COUNT ( ALL + 25 ) + + - 44 * - COALESCE ( - 70, - 71 * - CAST ( + - 69 AS INTEGER ) + + 70, - 9 * - 72 ) / ( + 66 ) * 75
----
NULL

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

query I rowsort
SELECT ALL + - 83 + - 40 - + 47 AS col2
----
-170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5103
SELECT - - COUNT( ALL - CAST( NULL AS SIGNED ) ) * - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5103
SELECT - - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * - 50 AS col0
----
0

query II rowsort
SELECT - - 61 + 59 - - 3 AS col1, 76 AS col2
----
123
76

query I rowsort
SELECT - + 92 * + 62
----
-5704

query II rowsort
SELECT ALL - 45 AS col0, 1
----
-45
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5107
SELECT DISTINCT + CASE + 47 WHEN + ( - + 17 ) THEN + - SUM( ( 50 ) ) END + - 93, - 73 AS col1
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-5107
SELECT DISTINCT + CASE + 47 WHEN + ( - + 17 ) THEN + - SUM ( ( 50 ) ) END + - 93, - 73 AS col1
----
NULL
-73

query I rowsort
SELECT DISTINCT + 53 + - 9 AS col1
----
44

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

query I rowsort
SELECT ALL 10 + + 40
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT - 80 * COUNT( * ) + 65 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5111
SELECT - 80 * COUNT ( * ) + 65 AS col2
----
-15

query I rowsort
SELECT ALL + 20 + - - 45
----
65

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5115
SELECT ALL 46 DIV + 12 + - 89 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL 46 / + 12 + - 89 AS col1
----
-86

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5117
SELECT + 65 DIV + + ( + 58 ) + + COUNT( * ) * + 95 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5117
SELECT + 65 / + + ( + 58 ) + + COUNT ( * ) * + 95 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT ALL 90 * MAX( ALL + - 24 ) AS col1
----
-2160

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL 90 * MAX ( ALL + - 24 ) AS col1
----
-2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5119
SELECT - 96 + - - COALESCE ( 8, - 12 * 50 + + 7, - - ( - + 38 ) ) * CAST( 91 AS SIGNED )
----
632

skipif mysql # not compatible
query I rowsort label-5119
SELECT - 96 + - - COALESCE ( 8, - 12 * 50 + + 7, - - ( - + 38 ) ) * CAST ( 91 AS INTEGER )
----
632

query I rowsort
SELECT ALL 84 * + 18 - + 95
----
1417

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

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

query I rowsort
SELECT DISTINCT 58 * + 53 * 97 - + 97 AS col2
----
298081

query I rowsort
SELECT 53 * 5 - + 47
----
218

query I rowsort
SELECT ALL 71 * 46 AS col1
----
3266

query I rowsort
SELECT - 77 * - 40
----
3080

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

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

query I rowsort
SELECT + 42 + 30 AS col0
----
72

query I rowsort
SELECT COALESCE ( + ( 77 ), + 37 * - 24, + 77 + - 1 ) AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5129
SELECT + 18 + + 95 + - 95 DIV 7
----
100

skipif mysql # not compatible
query I rowsort label-5129
SELECT + 18 + + 95 + - 95 / 7
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT 54 * + 56 * + 8 * 11 * + 47 + - MIN( + 56 ) * 27 * - 27 * + 33
----
13854456

skipif mysql # not compatible
query I rowsort label-5130
SELECT 54 * + 56 * + 8 * 11 * + 47 + - MIN ( + 56 ) * 27 * - 27 * + 33
----
13854456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5131
SELECT + 35 / 5 * + SUM( + + 85 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT + 35 / 5 * + SUM ( + + 85 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 82 + - 36, NULLIF ( 53, - - 86 ) + - 3 AS col2
----
46
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5133
SELECT ALL COUNT( DISTINCT - 14 ) DIV - + 8
----
0

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL COUNT ( DISTINCT - 14 ) / - + 8
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5134
SELECT + 99 DIV 7 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5134
SELECT + 99 / 7 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5135
SELECT ALL 11 * 85 AS col0, COUNT( * ) AS col2
----
935
1

skipif mysql # not compatible
query II rowsort label-5135
SELECT ALL 11 * 85 AS col0, COUNT ( * ) AS col2
----
935
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5136
SELECT DISTINCT + COUNT( * ) * 42 + + + ( - + 11 ) AS col0, + 70 * + COUNT( - + 53 ) + + MAX( ALL 38 ) AS col2
----
31
108

skipif mysql # not compatible
query II rowsort label-5136
SELECT DISTINCT + COUNT ( * ) * 42 + + + ( - + 11 ) AS col0, + 70 * + COUNT ( - + 53 ) + + MAX ( ALL 38 ) AS col2
----
31
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5137
SELECT ALL + 76 * - ( - + 80 ) * + MIN( DISTINCT 26 ) + + 80 + - 32 * + COUNT( * ) DIV + CAST( - + 60 AS SIGNED ) * 19 - + 9 + + - 90
----
158061

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL + 76 * - ( - + 80 ) * + MIN ( DISTINCT 26 ) + + 80 + - 32 * + COUNT ( * ) / + CAST ( - + 60 AS INTEGER ) * 19 - + 9 + + - 90
----
158061

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT - NULLIF ( 68, - - NULLIF ( + MAX( + 33 ), 72 * - ( - - 90 ) ) ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-5138
SELECT - NULLIF ( 68, - - NULLIF ( + MAX ( + 33 ), 72 * - ( - - 90 ) ) ) AS col2
----
-68

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

skipif mysql # not compatible
query I rowsort label-5139
SELECT - SUM ( ALL - 70 )
----
70

query I rowsort
SELECT + + 37 * + + ( - 2 )
----
-74

query II rowsort
SELECT + 28 + + + 45 AS col1, + 66 col0
----
73
66

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5143
SELECT ALL + - SUM( + 41 ) + 79 DIV - 15 - + 84 AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL + - SUM ( + 41 ) + 79 / - 15 - + 84 AS col1
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5144
SELECT - 64 + + 61, + NULLIF ( + CAST( - - 53 AS SIGNED ), - 75 ) + 23 AS col1
----
-3
76

skipif mysql # not compatible
query II rowsort label-5144
SELECT - 64 + + 61, + NULLIF ( + CAST ( - - 53 AS INTEGER ), - 75 ) + 23 AS col1
----
-3
76

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5146
SELECT DISTINCT - 33 / 1 - MIN( ALL + + 45 ) + - + 35 * SUM( - - 6 ) * + COUNT( * ) + 90 + + - CAST( NULL AS SIGNED ) + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT - 33 / 1 - MIN ( ALL + + 45 ) + - + 35 * SUM ( - - 6 ) * + COUNT ( * ) + 90 + + - CAST ( NULL AS INTEGER ) + - 6
----
NULL

query I rowsort
SELECT ALL + 74 - 58 - + 68 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT + - 69 + 84 + COUNT( * ) * + 71 - 16
----
70

skipif mysql # not compatible
query I rowsort label-5148
SELECT + - 69 + 84 + COUNT ( * ) * + 71 - 16
----
70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5150
SELECT - + 5 + - 96 DIV - 94
----
-4

skipif mysql # not compatible
query I rowsort label-5150
SELECT - + 5 + - 96 / - 94
----
-4

query I rowsort
SELECT 81 + - - ( + ( + 37 ) )
----
118

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

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

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

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT - 66 - - CAST ( + CAST ( - + 66 AS INTEGER ) AS INTEGER ) AS col1
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-5154
SELECT DISTINCT + 76 DIV - + 23
----
-3

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT + 76 / - + 23
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5155
SELECT ALL - COALESCE ( - 21, + 33 * - - 28 * 56, - - 89 DIV + 23 DIV - 1 DIV ( 1 ) * + + 33, + COALESCE ( CAST( 39 AS SIGNED ), 80 * 31 + + COUNT( * ) ) * - 37 + + 89 + - NULLIF ( CAST( 36 AS SIGNED ), COUNT( * ) ) )
----
21

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL - COALESCE ( - 21, + 33 * - - 28 * 56, - - 89 / + 23 / - 1 / ( 1 ) * + + 33, + COALESCE ( CAST ( 39 AS INTEGER ), 80 * 31 + + COUNT ( * ) ) * - 37 + + 89 + - NULLIF ( CAST ( 36 AS INTEGER ), COUNT ( * ) ) )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5156
SELECT 16 + + ( COUNT( * ) ) AS col2, 59 AS col2
----
17
59

skipif mysql # not compatible
query II rowsort label-5156
SELECT 16 + + ( COUNT ( * ) ) AS col2, 59 AS col2
----
17
59

query I rowsort
SELECT 58 * + + 80 + + 55 AS col0
----
4695

query I rowsort
SELECT 32 * - + 90
----
-2880

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5160
SELECT DISTINCT - COUNT( + COALESCE ( + 55, - - 42 - NULLIF ( NULLIF ( + - CASE - 0 WHEN + - 76 * - - 95 + 92 THEN NULL WHEN + 89 THEN - 49 * 34 END, - - 16 * - 90 ), - CAST( NULL AS SIGNED ) ), 10, + 7 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT - COUNT ( + COALESCE ( + 55, - - 42 - NULLIF ( NULLIF ( + - CASE - 0 WHEN + - 76 * - - 95 + 92 THEN NULL WHEN + 89 THEN - 49 * 34 END, - - 16 * - 90 ), - CAST ( NULL AS INTEGER ) ), 10, + 7 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT ALL - CAST( - 50 AS SIGNED ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL - CAST ( - 50 AS INTEGER ) AS col0
----
50

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

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

query I rowsort
SELECT 22 * - ( 83 ) AS col2
----
-1826

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

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT - MAX ( - 45 )
----
45

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

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

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

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

query I rowsort
SELECT DISTINCT 11 + - ( ( 4 ) ) AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5168
SELECT ALL 70 + COUNT( ALL - 10 ) AS col0, CAST( NULL AS SIGNED ) * + 9 AS col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-5168
SELECT ALL 70 + COUNT ( ALL - 10 ) AS col0, CAST ( NULL AS INTEGER ) * + 9 AS col0
----
71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL + ( - + ( - + MAX( ALL - - 94 ) ) ) * + - 23 AS col1
----
-2162

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL + ( - + ( - + MAX ( ALL - - 94 ) ) ) * + - 23 AS col1
----
-2162

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5171
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 19 + COUNT( * ) AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL - 22 + - COALESCE ( - 74, + COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL - 22 + - COALESCE ( - 74, + COUNT ( * ) )
----
52

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

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

query I rowsort
SELECT ALL + 47 + - 45 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT + 90 - + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-5176
SELECT + 90 - + COUNT ( * )
----
89

query I rowsort
SELECT DISTINCT - COALESCE ( 93, + 89 ) + + - 36 AS col1
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-5178
SELECT ALL 43 DIV - + 22 - + 28 + + + 13
----
-16

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL 43 / - + 22 - + 28 + + + 13
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT DISTINCT + CAST( - 45 AS SIGNED ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT + CAST ( - 45 AS INTEGER ) AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5180
SELECT DISTINCT - COALESCE ( - ( - - 25 ), + + 46 + + ( + 70 ) ) DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT - COALESCE ( - ( - - 25 ), + + 46 + + ( + 70 ) ) / 64
----
0

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

query I rowsort
SELECT ALL 70 + + 56
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT - ( 92 ) * - - 6 * + COUNT( * ) * - 41 * 14
----
316848

skipif mysql # not compatible
query I rowsort label-5183
SELECT - ( 92 ) * - - 6 * + COUNT ( * ) * - 41 * 14
----
316848

query I rowsort
SELECT ALL + 95 * + 49 + + 81
----
4736

query I rowsort
SELECT - 53 - + 23 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL + COUNT( * ) - 85 + - + ( 3 ) * - 70
----
126

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL + COUNT ( * ) - 85 + - + ( 3 ) * - 70
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT ALL + 45 - - COUNT( * ) - + ( + 25 ) + 36 + + 93 + CASE - + 97 WHEN + - 23 THEN NULL WHEN - 0 * 77 + - - 0 THEN NULL ELSE - 0 END + + - 0 * - - 24 * - 49 AS col2
----
150

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL + 45 - - COUNT ( * ) - + ( + 25 ) + 36 + + 93 + CASE - + 97 WHEN + - 23 THEN NULL WHEN - 0 * 77 + - - 0 THEN NULL ELSE - 0 END + + - 0 * - - 24 * - 49 AS col2
----
150

query I rowsort
SELECT - COALESCE ( 19, + 88 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT DISTINCT - 70 - + + 32 * + 23 + COUNT( * )
----
-805

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT - 70 - + + 32 * + 23 + COUNT ( * )
----
-805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5190
SELECT + COALESCE ( - 45, + + 19 DIV + - 11 ) * - COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-5190
SELECT + COALESCE ( - 45, + + 19 / + - 11 ) * - COUNT ( * ) AS col1
----
45

query I rowsort
SELECT + 89 * + + NULLIF ( - 43, AVG ( ALL + 66 ) - - 4 ) AS col2
----
-3827

onlyif mysql # aggregate syntax: 
query II rowsort label-5192
SELECT ALL 6 AS col1, 31 + - - MAX( + 1 ) + 34 AS col0
----
6
66

skipif mysql # not compatible
query II rowsort label-5192
SELECT ALL 6 AS col1, 31 + - - MAX ( + 1 ) + 34 AS col0
----
6
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5193
SELECT ALL + ( - + 11 ) DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL + ( - + 11 ) / + 70
----
0

query II rowsort
SELECT - 16, - 91 - 46 + - - 57 col0
----
-16
-80

query II rowsort
SELECT 76, + 34 - + + 45 AS col2
----
76
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT CASE + 73 WHEN COUNT( * ) THEN 47 + + + 59 ELSE NULL END + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT CASE + 73 WHEN COUNT ( * ) THEN 47 + + + 59 ELSE NULL END + 90 AS col1
----
NULL

query I rowsort
SELECT 26 * - 3 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + COUNT( * ) * 71 + - - COALESCE ( 47, 52 * COUNT( * ) * - 57 ) + COALESCE ( + ( + + 17 ), 0 ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-5198
SELECT + COUNT ( * ) * 71 + - - COALESCE ( 47, 52 * COUNT ( * ) * - 57 ) + COALESCE ( + ( + + 17 ), 0 ) AS col2
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT 32 DIV - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5199
SELECT 32 / - 71 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5200
SELECT 90 DIV + 56 + + - 20 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5200
SELECT 90 / + 56 + + - 20 AS col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5201
SELECT 45 DIV + + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5201
SELECT 45 / + + 73 AS col2
----
0

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5203
SELECT 22 DIV 11 * CAST( + 75 AS SIGNED )
----
150

skipif mysql # not compatible
query I rowsort label-5203
SELECT 22 / 11 * CAST ( + 75 AS INTEGER )
----
150

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

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

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

query I rowsort
SELECT ALL 6 * + 82
----
492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5207
SELECT ALL + 27 + ( - ( - 41 ) ) + 95 * + - COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL + 27 + ( - ( - 41 ) ) + 95 * + - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

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

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

query II rowsort
SELECT 27 * - + 48 + 45 * 34, 30 - + + 7 AS col2
----
234
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5210
SELECT COUNT( * ) AS col1, - NULLIF ( + 73, 95 ) AS col2
----
1
-73

skipif mysql # not compatible
query II rowsort label-5210
SELECT COUNT ( * ) AS col1, - NULLIF ( + 73, 95 ) AS col2
----
1
-73

query I rowsort
SELECT DISTINCT + ( 70 ) + - 59
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT ALL - + CASE + + NULLIF ( + 65, - 15 * + 8 ) WHEN + 71 THEN + 92 + - - 76 * + SUM( DISTINCT 96 ) WHEN - 32 THEN NULL WHEN - + ( + ( + 20 ) ) THEN NULL END + - NULLIF ( - + 1, - 79 ) + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL - + CASE + + NULLIF ( + 65, - 15 * + 8 ) WHEN + 71 THEN + 92 + - - 76 * + SUM ( DISTINCT 96 ) WHEN - 32 THEN NULL WHEN - + ( + ( + 20 ) ) THEN NULL END + - NULLIF ( - + 1, - 79 ) + - 55
----
NULL

query II rowsort
SELECT DISTINCT - + 95 AS col2, 79 AS col0
----
-95
79

query I rowsort
SELECT ALL + + 76 * - - 50
----
3800

query I rowsort
SELECT 64 + + 29
----
93

query I rowsort
SELECT ALL + - 9 + + 88
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT DISTINCT + + ( + 67 ) * + 34 * + - 85 * COUNT( * )
----
-193630

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT + + ( + 67 ) * + 34 * + - 85 * COUNT ( * )
----
-193630

query I rowsort
SELECT DISTINCT - - 72 - - 24
----
96

query I rowsort
SELECT + 76 * 2 AS col1
----
152

query I rowsort
SELECT ALL - 74 - + + 73 AS col1
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5221
SELECT - CASE - 67 WHEN 99 * + MAX( + + 32 ) + + - 31 + + + 5 + + COUNT( * ) * + CAST( NULL AS SIGNED ) * + 17 * + 9 THEN + 28 WHEN - - 86 * + 64 + - + 89 + - ( + 17 ) + - 9 THEN - 28 * 78 END + - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT - CASE - 67 WHEN 99 * + MAX ( + + 32 ) + + - 31 + + + 5 + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 17 * + 9 THEN + 28 WHEN - - 86 * + 64 + - + 89 + - ( + 17 ) + - 9 THEN - 28 * 78 END + - - 93
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5222
SELECT - 3 DIV - + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5222
SELECT - 3 / - + 97 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT ALL 43 DIV - - ( + 95 )
----
0

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL 43 / - - ( + 95 )
----
0

query I rowsort
SELECT - COALESCE ( + 68, - 35 ) + - 56
----
-124

query II rowsort
SELECT ALL + 56 AS col2, - ( + 17 )
----
56
-17

query I rowsort
SELECT + + 3 + - 37 AS col0
----
-34

query I rowsort
SELECT ALL 70 * + 29 * + + 3
----
6090

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5229
SELECT ALL - SUM( ALL CAST( NULL AS SIGNED ) ) / + - 15 + - - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL - SUM ( ALL CAST ( NULL AS INTEGER ) ) / + - 15 + - - 24 AS col2
----
NULL

query II rowsort
SELECT + 49 * + 38, 77 AS col2
----
1862
77

query I rowsort
SELECT DISTINCT 13 * - + 51 AS col0
----
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT NULLIF ( + 15, + 47 ) * COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT NULLIF ( + 15, + 47 ) * COUNT ( * ) AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5233
SELECT + 13 * - 81 AS col1, - NULLIF ( + MIN( ALL + 52 ), + + 34 DIV - - 26 + - 31 + + COUNT( * ) ) DIV + + 53 * 16
----
-1053
0

skipif mysql # not compatible
query II rowsort label-5233
SELECT + 13 * - 81 AS col1, - NULLIF ( + MIN ( ALL + 52 ), + + 34 / - - 26 + - 31 + + COUNT ( * ) ) / + + 53 * 16
----
-1053
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT + 19 + COUNT( * ) + 35 * ( COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-5234
SELECT + 19 + COUNT ( * ) + 35 * ( COUNT ( * ) )
----
55

query II rowsort
SELECT ALL 1 + - 91 AS col2, - 68 AS col1
----
-90
-68

query I rowsort
SELECT DISTINCT ( - - 13 ) + 58
----
71

query II rowsort
SELECT + 83 * 8 AS col2, - 72
----
664
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT ALL + CASE - COALESCE ( - COUNT( * ), + - 53 ) WHEN - 7 THEN NULL WHEN - - 91 THEN - 35 + 41 - - 8 + - NULLIF ( + - 42, - ( - + 35 ) ) WHEN - - COUNT( * ) THEN - ( ( 35 ) ) END * + 90 * + 85 * + 32 + - - 62 + MAX( ALL + 99 ) AS col0
----
-8567839

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL + CASE - COALESCE ( - COUNT ( * ), + - 53 ) WHEN - 7 THEN NULL WHEN - - 91 THEN - 35 + 41 - - 8 + - NULLIF ( + - 42, - ( - + 35 ) ) WHEN - - COUNT ( * ) THEN - ( ( 35 ) ) END * + 90 * + 85 * + 32 + - - 62 + MAX ( ALL + 99 ) AS col0
----
-8567839

onlyif mysql # aggregate syntax: 
query II rowsort label-5239
SELECT + CASE COUNT( * ) WHEN - - 12 * - 74 THEN - 99 WHEN + + AVG ( + 99 ) / + 46 - + + COUNT( * ) + - 48 THEN NULL END, SUM( + 83 ) + - - 84 AS col2
----
NULL
167

skipif mysql # not compatible
query II rowsort label-5239
SELECT + CASE COUNT ( * ) WHEN - - 12 * - 74 THEN - 99 WHEN + + AVG ( + 99 ) / + 46 - + + COUNT ( * ) + - 48 THEN NULL END, SUM ( + 83 ) + - - 84 AS col2
----
NULL
167

onlyif mysql # aggregate syntax: 
query II rowsort label-5240
SELECT ( - 2 ) col2, 18 - COUNT( * ) col0
----
-2
17

skipif mysql # not compatible
query II rowsort label-5240
SELECT ( - 2 ) col2, 18 - COUNT ( * ) col0
----
-2
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT ALL + 14 * + COUNT( * ) + + 99
----
113

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL + 14 * + COUNT ( * ) + + 99
----
113

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

skipif mysql # not compatible
query I rowsort label-5242
SELECT ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2
----
1

query I rowsort
SELECT ALL + 97 * + 89 + + + 15 col2
----
8648

query I rowsort
SELECT + NULLIF ( 24, 63 ) AS col0
----
24

query I rowsort
SELECT NULLIF ( - 77, - 64 )
----
-77

query I rowsort
SELECT + 58 * + + 60
----
3480

query I rowsort
SELECT ALL - 88 * 78 + - + 77 * - 84 col1
----
-396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5248
SELECT DISTINCT - 27 * 73 + + MIN( DISTINCT 12 ) DIV 14 + 56 AS col1
----
-1915

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT - 27 * 73 + + MIN ( DISTINCT 12 ) / 14 + 56 AS col1
----
-1915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5249
SELECT DISTINCT COUNT( * ) * + - 63, 44 * 27 * + + 66 * CAST( - COUNT( * ) AS SIGNED ) * + 89 + + 28 col2
----
-63
-6978284

skipif mysql # not compatible
query II rowsort label-5249
SELECT DISTINCT COUNT ( * ) * + - 63, 44 * 27 * + + 66 * CAST ( - COUNT ( * ) AS INTEGER ) * + 89 + + 28 col2
----
-63
-6978284

query I rowsort
SELECT DISTINCT 24 * + ( 93 ) - + 1
----
2231

query I rowsort
SELECT ALL 64 * + 45
----
2880

query I rowsort
SELECT ALL + 70 * - - 41
----
2870

query I rowsort
SELECT - + 59 * - 88
----
5192

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT + 40 * + 42 + - COUNT( * ) * + 41 + - COUNT( * ) + - 59
----
1579

skipif mysql # not compatible
query I rowsort label-5254
SELECT + 40 * + 42 + - COUNT ( * ) * + 41 + - COUNT ( * ) + - 59
----
1579

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL MAX( 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL MAX ( 11 ) AS col0
----
11

query I rowsort
SELECT DISTINCT + 54 * 57
----
3078

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT - 1 + + 82 * MIN( DISTINCT - 31 ) + + - ( + - COUNT( * ) )
----
-2542

skipif mysql # not compatible
query I rowsort label-5258
SELECT - 1 + + 82 * MIN ( DISTINCT - 31 ) + + - ( + - COUNT ( * ) )
----
-2542

query I rowsort
SELECT - + 32 * - 55 AS col0
----
1760

query II rowsort
SELECT ALL + + 56 * + + 85, - 36 col2
----
4760
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-5261
SELECT ALL - ( - - 85 ) AS col1, + MAX( ALL 99 ) - 69 AS col0
----
-85
30

skipif mysql # not compatible
query II rowsort label-5261
SELECT ALL - ( - - 85 ) AS col1, + MAX ( ALL 99 ) - 69 AS col0
----
-85
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5262
SELECT DISTINCT + 4 * 92 * - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT + 4 * 92 * - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT DISTINCT + 93 * + SUM( DISTINCT 36 ) * 76 * + ( 15 ) - 34 - - - 34 col2
----
3816652

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT + 93 * + SUM ( DISTINCT 36 ) * 76 * + ( 15 ) - 34 - - - 34 col2
----
3816652

query I rowsort
SELECT - 67 * + 19
----
-1273

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT ALL - MIN( DISTINCT - 13 ) * - 86 * 93 * - - 73 - - 88 * + - MIN( DISTINCT + 11 ) * 74 + + 25 AS col0
----
-7661709

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL - MIN ( DISTINCT - 13 ) * - 86 * 93 * - - 73 - - 88 * + - MIN ( DISTINCT + 11 ) * 74 + + 25 AS col0
----
-7661709

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5267
SELECT DISTINCT CAST( - - CASE + COUNT( - 37 ) WHEN + 36 * + 98 + - 10 - CASE + MIN( 42 ) WHEN - 33 THEN COALESCE ( + 60, 93 * 67 * SUM( DISTINCT - - 42 ) ) WHEN + 67 THEN COALESCE ( + CAST( 2 AS SIGNED ), + 6 + - 51, + AVG ( + 99 ) * COUNT( * ) ) END + COUNT( CAST( NULL AS SIGNED ) ) THEN - COUNT( * ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT CAST ( - - CASE + COUNT ( - 37 ) WHEN + 36 * + 98 + - 10 - CASE + MIN ( 42 ) WHEN - 33 THEN COALESCE ( + 60, 93 * 67 * SUM ( DISTINCT - - 42 ) ) WHEN + 67 THEN COALESCE ( + CAST ( 2 AS INTEGER ), + 6 + - 51, + AVG ( + 99 ) * COUNT ( * ) ) END + COUNT ( CAST ( NULL AS INTEGER ) ) THEN - COUNT ( * ) END AS INTEGER )
----
NULL

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5271
SELECT ALL 95 + MIN( ALL 74 ) - 46 - - COUNT( * ) - - COUNT( ALL - 92 ) - - + CAST( 71 AS SIGNED ) + - 36 * ( - 99 ) AS col0
----
3760

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL 95 + MIN ( ALL 74 ) - 46 - - COUNT ( * ) - - COUNT ( ALL - 92 ) - - + CAST ( 71 AS INTEGER ) + - 36 * ( - 99 ) AS col0
----
3760

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

skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT - 54 / - COUNT ( * )
----
54

query I rowsort
SELECT DISTINCT 12 * ( 99 )
----
1188

query I rowsort
SELECT - 47 + 38 AS col0
----
-9

query I rowsort
SELECT - 65 * + + 28 AS col2
----
-1820

query I rowsort
SELECT - 23 + - 6
----
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5277
SELECT - 60 * + 7 + + - 51 DIV + + 2 AS col1, 48 DIV - CAST( + 94 AS SIGNED ) + 70
----
-445
70

skipif mysql # not compatible
query II rowsort label-5277
SELECT - 60 * + 7 + + - 51 / + + 2 AS col1, 48 / - CAST ( + 94 AS INTEGER ) + 70
----
-445
70

query I rowsort
SELECT DISTINCT 52 * + + 10 * + ( - 53 )
----
-27560

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

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL 53 / + + COUNT ( * ) + - COUNT ( * )
----
52

query I rowsort
SELECT + 93 + + 12
----
105

onlyif mysql # aggregate syntax: 
query III rowsort label-5281
SELECT ALL + COUNT( * ) AS col1, - MIN( DISTINCT + 42 ) + 28 AS col0, 30
----
1
-14
30

skipif mysql # not compatible
query III rowsort label-5281
SELECT ALL + COUNT ( * ) AS col1, - MIN ( DISTINCT + 42 ) + 28 AS col0, 30
----
1
-14
30

onlyif mysql # DIV for integer division: 
query II rowsort label-5282
SELECT - 49 AS col0, + 28 DIV 32 DIV - 29
----
-49
0

skipif mysql # not compatible
query II rowsort label-5282
SELECT - 49 AS col0, + 28 / 32 / - 29
----
-49
0

query I rowsort
SELECT ALL - 30 / + NULLIF ( + + 89, - 8 * - 5 ) - - CASE - 0 WHEN + 56 THEN NULL WHEN - + 66 / 8 + + + 94 THEN - 26 END + - - 29 + + + 78
----
NULL

query I rowsort
SELECT + COALESCE ( 21, 8 ) * - 77
----
-1617

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5286
SELECT ALL + 1 DIV - 58 - - ( + 76 ) * + - 66 * - 39 - - 43
----
195667

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL + 1 / - 58 - - ( + 76 ) * + - 66 * - 39 - - 43
----
195667

query I rowsort
SELECT 70 + + 41
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5288
SELECT + MAX( 46 ) DIV + + COALESCE ( - 17, - 89 * - - SUM( DISTINCT + 28 ), + MIN( 77 ) * + - 38 DIV + + 85 )
----
-2

skipif mysql # not compatible
query I rowsort label-5288
SELECT + MAX ( 46 ) / + + COALESCE ( - 17, - 89 * - - SUM ( DISTINCT + 28 ), + MIN ( 77 ) * + - 38 / + + 85 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5289
SELECT ALL + NULLIF ( - - NULLIF ( - - CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ), - MAX( + 6 ) ), - NULLIF ( + + 74, AVG ( 5 ) * 53 / - 15 - - COUNT( * ) ) ) * - 40 * 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL + NULLIF ( - - NULLIF ( - - CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ), - MAX ( + 6 ) ), - NULLIF ( + + 74, AVG ( 5 ) * 53 / - 15 - - COUNT ( * ) ) ) * - 40 * 77 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 67 * - + 78
----
-5226

query I rowsort
SELECT COALESCE ( - 76, - 5 ) + + 40 col2
----
-36

query I rowsort
SELECT 80 * + 71 AS col0
----
5680

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT ALL 64 * - + ( + 82 ) - - 76 - - 39 * + 97 * - NULLIF ( + + 18, - 27 + + 18 + + - COUNT( DISTINCT + 69 ) + SUM( 59 ) * + - 3 ) AS col0
----
-73266

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL 64 * - + ( + 82 ) - - 76 - - 39 * + 97 * - NULLIF ( + + 18, - 27 + + 18 + + - COUNT ( DISTINCT + 69 ) + SUM ( 59 ) * + - 3 ) AS col0
----
-73266

query I rowsort
SELECT - 8 * - - 27 AS col0
----
-216

query I rowsort
SELECT DISTINCT + ( + 95 ) * + 15
----
1425

query I rowsort
SELECT DISTINCT - 64 * + 43
----
-2752

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT COUNT( * ) * 63 + ( + 43 ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-5297
SELECT COUNT ( * ) * 63 + ( + 43 ) AS col1
----
106

query I rowsort
SELECT + 31 * - + 89 + 38
----
-2721

query I rowsort
SELECT DISTINCT + 89 + + 46
----
135

query I rowsort
SELECT + 75 * + 45
----
3375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5301
SELECT ALL + 31 + 85 + - + CASE 49 WHEN - 1 * + 26 + - COUNT( * ) THEN NULL ELSE - + MIN( ALL + 65 ) END * CAST( - 0 AS SIGNED ) * + COUNT( * ) * + 73 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL + 31 + 85 + - + CASE 49 WHEN - 1 * + 26 + - COUNT ( * ) THEN NULL ELSE - + MIN ( ALL + 65 ) END * CAST ( - 0 AS INTEGER ) * + COUNT ( * ) * + 73 AS col2
----
116

query I rowsort
SELECT 6 + + 74 - - 16 AS col0
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-5303
SELECT 16 + - 12 AS col1, 21 DIV 3 AS col2
----
4
7

skipif mysql # not compatible
query II rowsort label-5303
SELECT 16 + - 12 AS col1, 21 / 3 AS col2
----
4
7

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

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT - 58 + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT 25 + - - 75 + + - MIN( + - 28 ) - 27 * + - 92
----
2612

skipif mysql # not compatible
query I rowsort label-5305
SELECT 25 + - - 75 + + - MIN ( + - 28 ) - 27 * + - 92
----
2612

query I rowsort
SELECT ALL + NULLIF ( - + 86, + + 73 ) + - 54
----
-140

query I rowsort
SELECT 32 + 50 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5308
SELECT ALL - CASE COUNT( ALL + - 79 ) WHEN - + AVG ( DISTINCT ( + 82 ) ) + - + CAST( NULL AS SIGNED ) THEN + 59 + 66 WHEN 48 THEN NULL END * + CASE 46 WHEN - 29 THEN - 84 * + + COUNT( * ) * 17 + - + COUNT( ALL + 52 ) - 86 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL - CASE COUNT ( ALL + - 79 ) WHEN - + AVG ( DISTINCT ( + 82 ) ) + - + CAST ( NULL AS INTEGER ) THEN + 59 + 66 WHEN 48 THEN NULL END * + CASE 46 WHEN - 29 THEN - 84 * + + COUNT ( * ) * 17 + - + COUNT ( ALL + 52 ) - 86 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5309
SELECT 41 + - ( 96 ) + + + COUNT( * ) + + 31 DIV + 44 + 70 + + COUNT( * ) * + 95 * - 45 * - + ( + 51 )
----
218041

skipif mysql # not compatible
query I rowsort label-5309
SELECT 41 + - ( 96 ) + + + COUNT ( * ) + + 31 / + 44 + 70 + + COUNT ( * ) * + 95 * - 45 * - + ( + 51 )
----
218041

query I rowsort
SELECT ALL - ( - 3 ) * - - 83
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT MIN( - - 43 ) + - 19
----
24

skipif mysql # not compatible
query I rowsort label-5311
SELECT MIN ( - - 43 ) + - 19
----
24

query I rowsort
SELECT ALL - 41 * - 83
----
3403

query I rowsort
SELECT 60 + - 44
----
16

query I rowsort
SELECT 31 * 12
----
372

query I rowsort
SELECT DISTINCT - 14 - 13 col0
----
-27

query I rowsort
SELECT ALL - ( - 15 ) * + 41
----
615

onlyif mysql # DIV for integer division: 
query I rowsort label-5317
SELECT ALL 5 DIV - - 23 * + 26 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL 5 / - - 23 * + 26 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5318
SELECT 56 * COUNT( * ) AS col0, - 66 * - 54
----
56
3564

skipif mysql # not compatible
query II rowsort label-5318
SELECT 56 * COUNT ( * ) AS col0, - 66 * - 54
----
56
3564

query I rowsort
SELECT 16 * - 94
----
-1504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5320
SELECT ALL + + 3 DIV 15 - - COUNT( * ) + 27 * + - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL + + 3 / 15 - - COUNT ( * ) + 27 * + - COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5321
SELECT 46 DIV - 67 col0, - 92 * - - COUNT( * )
----
0
-92

skipif mysql # not compatible
query II rowsort label-5321
SELECT 46 / - 67 col0, - 92 * - - COUNT ( * )
----
0
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5322
SELECT + 16 * - 52 - + 0 * - 55 * COUNT( * ) AS col2, + COUNT( * )
----
-832
1

skipif mysql # not compatible
query II rowsort label-5322
SELECT + 16 * - 52 - + 0 * - 55 * COUNT ( * ) AS col2, + COUNT ( * )
----
-832
1

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

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

query I rowsort
SELECT ALL - - 90 - + + 30 + 86
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5325
SELECT + ( + 74 ) * - 81 * - CAST( NULL AS SIGNED ) * - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT + ( + 74 ) * - 81 * - CAST ( NULL AS INTEGER ) * - 68 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 69 * - 4 + - + 99 * - + 54 col2
----
5070

query II rowsort
SELECT 26 - + 90, 47 AS col2
----
-64
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT MIN( ALL + 64 ) col1
----
64

skipif mysql # not compatible
query I rowsort label-5328
SELECT MIN ( ALL + 64 ) col1
----
64

query I rowsort
SELECT ALL + 87 * - 42
----
-3654

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5331
SELECT ALL - - 98 * - 56 * + MIN( DISTINCT + 41 ) AS col1, COUNT( * )
----
-225008
1

skipif mysql # not compatible
query II rowsort label-5331
SELECT ALL - - 98 * - 56 * + MIN ( DISTINCT + 41 ) AS col1, COUNT ( * )
----
-225008
1

query I rowsort
SELECT - 65 * + + 58 AS col0
----
-3770

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

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

query I rowsort
SELECT ALL - - ( 97 ) col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL - - 23 * COUNT( * ) * 18 AS col0
----
414

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL - - 23 * COUNT ( * ) * 18 AS col0
----
414

onlyif mysql # DIV for integer division: 
query I rowsort label-5336
SELECT ALL - 4 + + + 63 DIV + ( - 43 )
----
-5

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL - 4 + + + 63 / + ( - 43 )
----
-5

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

skipif mysql # not compatible
query I rowsort label-5337
SELECT + CAST ( + MIN ( ALL - + 4 ) AS INTEGER )
----
-4

query I rowsort
SELECT + ( + + 91 ) + - NULLIF ( - 52, + - 74 ) col0
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5339
SELECT + 28 / CAST( - 71 AS DECIMAL ) / SUM( ALL - + CAST( NULL AS SIGNED ) ) * 82 + + 65 / 58 * - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT + 28 / CAST ( - 71 AS REAL ) / SUM ( ALL - + CAST ( NULL AS INTEGER ) ) * 82 + + 65 / 58 * - 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL MIN( ALL - 37 ) + - 54 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL MIN ( ALL - 37 ) + - 54 AS col1
----
-91

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

skipif mysql # not compatible
query I rowsort label-5341
SELECT + SUM ( - 18 )
----
-18

query I rowsort
SELECT ALL 12 + + 40 + + ( - - 97 ) + + COALESCE ( + 53, - 25 )
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT DISTINCT MIN( ALL - 29 ) + + 30 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT MIN ( ALL - 29 ) + + 30 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT COUNT( * ) + - 30 + - 30 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5344
SELECT COUNT ( * ) + - 30 + - 30 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT DISTINCT NULLIF ( + COUNT( * ), 9 * + + 68 + - 35 ) + + + 75
----
76

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT NULLIF ( + COUNT ( * ), 9 * + + 68 + - 35 ) + + + 75
----
76

query I rowsort
SELECT ALL 90 + - 34 * + - ( - 29 )
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT DISTINCT COUNT( * ) + + 4
----
5

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT COUNT ( * ) + + 4
----
5

query I rowsort
SELECT ALL + 0 + 19 * - - 59
----
1121

onlyif mysql # DIV for integer division: 
query I rowsort label-5349
SELECT ( 7 ) DIV 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5349
SELECT ( 7 ) / 77 AS col1
----
0

query I rowsort
SELECT ALL 42 * + ( + 94 )
----
3948

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ( ( COUNT( - - 51 ) ) ) - + - 20 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-5352
SELECT ( ( COUNT ( - - 51 ) ) ) - + - 20 AS col0
----
21

query I rowsort
SELECT ALL + 64 - + 86 AS col2
----
-22

query I rowsort
SELECT ALL - 10 * + 20 col1
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT DISTINCT - COUNT( - - 26 ) * - 10 * - + 11 AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT - COUNT ( - - 26 ) * - 10 * - + 11 AS col0
----
-110

query I rowsort
SELECT 76 - + + 25 AS col1
----
51

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

query I rowsort
SELECT + 4 + 81 + + 16 * + - 46 * - 48 * - 76 AS col0
----
-2684843

query I rowsort
SELECT - 13 * - + 1 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5360
SELECT - + 2 + CASE + + 35 WHEN - 88 + - + 63 / 92 THEN - 67 + 16 WHEN SUM( CAST( NULL AS SIGNED ) ) * + 17 * - 7 - MAX( ALL - 67 ) + + 98 * 46 THEN 71 + - COUNT( * ) * - + 35 ELSE + 55 - + 64 * - MIN( + + 95 ) END AS col0
----
6133

skipif mysql # not compatible
query I rowsort label-5360
SELECT - + 2 + CASE + + 35 WHEN - 88 + - + 63 / 92 THEN - 67 + 16 WHEN SUM ( CAST ( NULL AS INTEGER ) ) * + 17 * - 7 - MAX ( ALL - 67 ) + + 98 * 46 THEN 71 + - COUNT ( * ) * - + 35 ELSE + 55 - + 64 * - MIN ( + + 95 ) END AS col0
----
6133

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT - ( COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5361
SELECT - ( COUNT ( * ) ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5362
SELECT + 54 * + 52 + + 51 DIV 22 * - 49 * 95 AS col1
----
-6502

skipif mysql # not compatible
query I rowsort label-5362
SELECT + 54 * + 52 + + 51 / 22 * - 49 * 95 AS col1
----
-6502

query II rowsort
SELECT ALL + - 71, - 66 AS col1
----
-71
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT DISTINCT 33 * - + 52 / + 31 / + CASE 72 WHEN - 18 * - - 82 THEN + 11 - - + 88 + COUNT( * ) ELSE NULL END * + + COUNT( * ) + 2 + 68 * + - COUNT( * ) * 62 + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT 33 * - + 52 / + 31 / + CASE 72 WHEN - 18 * - - 82 THEN + 11 - - + 88 + COUNT ( * ) ELSE NULL END * + + COUNT ( * ) + 2 + 68 * + - COUNT ( * ) * 62 + 73 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5365
SELECT ALL - COALESCE ( + + 63, - 90 - 16 ) * + 23 + CASE + - 29 WHEN - 51 THEN + CAST( NULL AS SIGNED ) WHEN - 50 + + MAX( - + 36 ) - - - 84 * 75 * - 56 * - 37 DIV - - CAST( 11 AS SIGNED ) * + 40 + 25 * - ( + COUNT( * ) ) + COUNT( * ) THEN NULL ELSE 78 DIV 28 END * 24
----
-1401

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL - COALESCE ( + + 63, - 90 - 16 ) * + 23 + CASE + - 29 WHEN - 51 THEN + CAST ( NULL AS INTEGER ) WHEN - 50 + + MAX ( - + 36 ) - - - 84 * 75 * - 56 * - 37 / - - CAST ( 11 AS INTEGER ) * + 40 + 25 * - ( + COUNT ( * ) ) + COUNT ( * ) THEN NULL ELSE 78 / 28 END * 24
----
-1401

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL + 20 * + COUNT( * ) * - - 86 * - 91 + - COUNT( * ) + + 50 * + 10 + COUNT( ALL - 50 ) * 79
----
-155942

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL + 20 * + COUNT ( * ) * - - 86 * - 91 + - COUNT ( * ) + + 50 * + 10 + COUNT ( ALL - 50 ) * 79
----
-155942

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT + + MAX( DISTINCT + - 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5368
SELECT + + MAX ( DISTINCT + - 97 ) AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5369
SELECT ALL + + NULLIF ( + MAX( DISTINCT + + 98 ), + + ( + + NULLIF ( + 51, 48 * + COUNT( * ) + - 4 ) ) ) * - - CASE COALESCE ( - CAST( - 11 AS SIGNED ), - - 9 - ( - CAST( NULL AS SIGNED ) ) + + ( - COUNT( * ) ) * - 46, + - 49 - - ( + - COALESCE ( - CAST( NULL AS SIGNED ), 46 + COUNT( * ) * + 67, 56 + 0 ) ) * + 83 ) WHEN - 49 THEN NULL ELSE + ( 71 ) END + - 16 * 2 + 5
----
6931

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL + + NULLIF ( + MAX ( DISTINCT + + 98 ), + + ( + + NULLIF ( + 51, 48 * + COUNT ( * ) + - 4 ) ) ) * - - CASE COALESCE ( - CAST ( - 11 AS INTEGER ), - - 9 - ( - CAST ( NULL AS INTEGER ) ) + + ( - COUNT ( * ) ) * - 46, + - 49 - - ( + - COALESCE ( - CAST ( NULL AS INTEGER ), 46 + COUNT ( * ) * + 67, 56 + 0 ) ) * + 83 ) WHEN - 49 THEN NULL ELSE + ( 71 ) END + - 16 * 2 + 5
----
6931

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT - 66 + - - ( - - 91 ) * 29 * + + SUM( - 91 ) + 41
----
-240174

skipif mysql # not compatible
query I rowsort label-5370
SELECT - 66 + - - ( - - 91 ) * 29 * + + SUM ( - 91 ) + 41
----
-240174

onlyif mysql # aggregate syntax: 
query II rowsort label-5371
SELECT DISTINCT - MAX( DISTINCT 44 ) * - COUNT( * ) AS col1, - 10 col1
----
44
-10

skipif mysql # not compatible
query II rowsort label-5371
SELECT DISTINCT - MAX ( DISTINCT 44 ) * - COUNT ( * ) AS col1, - 10 col1
----
44
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5372
SELECT ALL + 98 * - + 16 / - 44 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + 98 * - + 16 / - 44 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 78 - + - 8
----
86

query I rowsort
SELECT + 36 * + 12
----
432

query I rowsort
SELECT + 13 + - 13 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5376
SELECT + NULLIF ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), + MAX( + 48 ) * + CAST( 56 AS SIGNED ) ) * - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5376
SELECT + NULLIF ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), + MAX ( + 48 ) * + CAST ( 56 AS INTEGER ) ) * - 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT + COUNT( * ) + - MIN( + 22 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-5377
SELECT + COUNT ( * ) + - MIN ( + 22 ) AS col1
----
-21

query I rowsort
SELECT - NULLIF ( + 16, + - COALESCE ( - 56, - - 10 ) ) AS col1
----
-16

query II rowsort
SELECT ALL 30, ( - - 76 ) AS col1
----
30
76

query I rowsort
SELECT + 94 + + + 28 AS col0
----
122

query I rowsort
SELECT ALL 65 * - + 42 * 43 AS col1
----
-117390

query I rowsort
SELECT DISTINCT 94 * - + 61 AS col2
----
-5734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5383
SELECT + SUM( + 52 ) + 83 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT + SUM ( + 52 ) + 83 + + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT + NULLIF ( + 5, + 7 ) * 85 - - 21
----
446

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5388
SELECT DISTINCT - 62 DIV + - 30
----
2

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT - 62 / + - 30
----
2

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

query I rowsort
SELECT + - 65 * ( - + 40 )
----
2600

query II rowsort
SELECT ALL + 59 + + 94 AS col0, 5 AS col1
----
153
5

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

skipif mysql # not compatible
query II rowsort label-5392
SELECT - - ( - - 12 ) AS col0, COUNT ( * )
----
12
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5393
SELECT 2 col2, - CAST( 95 AS SIGNED ) + + 60
----
2
-35

skipif mysql # not compatible
query II rowsort label-5393
SELECT 2 col2, - CAST ( 95 AS INTEGER ) + + 60
----
2
-35

query II rowsort
SELECT + 97 AS col0, 3 col1
----
97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT DISTINCT + + 28 / 59 / - + ( - 11 ) + + CASE NULLIF ( COUNT( * ), 30 ) WHEN + 90 THEN 90 + + 95 END - 35 + - - ( + 52 ) - 18 * + 5 * ( COUNT( * ) ) * 13 + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT + + 28 / 59 / - + ( - 11 ) + + CASE NULLIF ( COUNT ( * ), 30 ) WHEN + 90 THEN 90 + + 95 END - 35 + - - ( + 52 ) - 18 * + 5 * ( COUNT ( * ) ) * 13 + - 42
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5396
SELECT DISTINCT + - 29 DIV + NULLIF ( - NULLIF ( - SUM( ALL + 16 ), + 98 * - - 23 ), + 30 + - 99 ) + + 71
----
70

skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT + - 29 / + NULLIF ( - NULLIF ( - SUM ( ALL + 16 ), + 98 * - - 23 ), + 30 + - 99 ) + + 71
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5397
SELECT ALL - - 63 DIV ( 41 ) + + 56 - + - 32 DIV + - 65 + + + MIN( DISTINCT + 14 )
----
71

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL - - 63 / ( 41 ) + + 56 - + - 32 / + - 65 + + + MIN ( DISTINCT + 14 )
----
71

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

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

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

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

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

query I rowsort
SELECT - 37 - 39 AS col0
----
-76

query II rowsort
SELECT - 48 * - - 99 col1, + 0
----
-4752
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5403
SELECT - 54 + - + 47, - SUM( - 45 ) AS col1
----
-101
45

skipif mysql # not compatible
query II rowsort label-5403
SELECT - 54 + - + 47, - SUM ( - 45 ) AS col1
----
-101
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT DISTINCT - COALESCE ( COUNT( * ), + + 80 ) DIV CASE CASE + - COALESCE ( - - 84, - + 57, MAX( DISTINCT 64 ) + + ( + + COUNT( * ) ) ) WHEN + 42 THEN - 91 WHEN + 60 * + 69 THEN NULL ELSE - 71 END WHEN + + COUNT( * ) THEN - + 26 + + 53 WHEN COUNT( 71 ) THEN NULL ELSE - 57 END DIV 5 + + 83 + - 89 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT - COALESCE ( COUNT ( * ), + + 80 ) / CASE CASE + - COALESCE ( - - 84, - + 57, MAX ( DISTINCT 64 ) + + ( + + COUNT ( * ) ) ) WHEN + 42 THEN - 91 WHEN + 60 * + 69 THEN NULL ELSE - 71 END WHEN + + COUNT ( * ) THEN - + 26 + + 53 WHEN COUNT ( 71 ) THEN NULL ELSE - 57 END / 5 + + 83 + - 89 AS col1
----
-6

query II rowsort
SELECT ALL + ( + - 3 ) AS col2, + 40 AS col0
----
-3
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT - 1 DIV 70 * - - 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5406
SELECT - 1 / 70 * - - 16 AS col2
----
0

query I rowsort
SELECT + 7 * + 70 * - 0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5409
SELECT ALL 89 * + CAST( + + 43 AS SIGNED ) AS col2
----
3827

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL 89 * + CAST ( + + 43 AS INTEGER ) AS col2
----
3827

query I rowsort
SELECT ALL + 37 * + 53 * + - 26 AS col0
----
-50986

query I rowsort
SELECT - COALESCE ( 66, - + 0 ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-5412
SELECT - ( + 31 ), COUNT( * ) * + 44 col0
----
-31
44

skipif mysql # not compatible
query II rowsort label-5412
SELECT - ( + 31 ), COUNT ( * ) * + 44 col0
----
-31
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5413
SELECT 56 - - + 49 - - 59 DIV + 31 + COALESCE ( + + 4, + 39 * SUM( DISTINCT 20 ) + + 53 + + 56 + - 90 )
----
110

skipif mysql # not compatible
query I rowsort label-5413
SELECT 56 - - + 49 - - 59 / + 31 + COALESCE ( + + 4, + 39 * SUM ( DISTINCT 20 ) + + 53 + + 56 + - 90 )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL COUNT( * ) + COUNT( * ) + ( + 57 ) * + 47 col0
----
2681

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL COUNT ( * ) + COUNT ( * ) + ( + 57 ) * + 47 col0
----
2681

query I rowsort
SELECT DISTINCT - 22 + - + COALESCE ( + 10, - 65 + - - 53 + - 68, + 48 + - 17 + 54 + + + 73 * + ( + 78 ) ) * + 21
----
-232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5416
SELECT ALL + CASE 31 WHEN + - 24 THEN 85 * + COUNT( * ) * CAST( NULL AS DECIMAL ) - 31 - - - CAST( + 30 AS SIGNED ) + - ( 7 ) * - COALESCE ( - 73, + 41 ) END + + AVG ( - 48 ) * - 6 + - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL + CASE 31 WHEN + - 24 THEN 85 * + COUNT ( * ) * CAST ( NULL AS REAL ) - 31 - - - CAST ( + 30 AS INTEGER ) + - ( 7 ) * - COALESCE ( - 73, + 41 ) END + + AVG ( - 48 ) * - 6 + - - 56
----
NULL

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

skipif mysql # not compatible
query II rowsort label-5417
SELECT CAST ( NULL AS INTEGER ) * 30, COUNT ( DISTINCT 56 ) AS col0
----
NULL
1

query I rowsort
SELECT ALL - ( + 12 ) + - 23
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT 1 - - MAX( - 36 )
----
-35

skipif mysql # not compatible
query I rowsort label-5419
SELECT 1 - - MAX ( - 36 )
----
-35

query I rowsort
SELECT 3 + 32
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT - 59 - - COUNT( * ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5421
SELECT - 59 - - COUNT ( * ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT 49 + NULLIF ( + MIN( 93 ), - COUNT( * ) ) AS col0
----
142

skipif mysql # not compatible
query I rowsort label-5422
SELECT 49 + NULLIF ( + MIN ( 93 ), - COUNT ( * ) ) AS col0
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT SUM( ALL + 92 ) * + 59 * - COALESCE ( - 28, - - 17 * 93 + - 93 ) AS col2
----
151984

skipif mysql # not compatible
query I rowsort label-5423
SELECT SUM ( ALL + 92 ) * + 59 * - COALESCE ( - 28, - - 17 * 93 + - 93 ) AS col2
----
151984

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5425
SELECT 39 DIV + 41, ( - - 16 ) * 77 * 31 AS col1
----
0
38192

skipif mysql # not compatible
query II rowsort label-5425
SELECT 39 / + 41, ( - - 16 ) * 77 * 31 AS col1
----
0
38192

onlyif mysql # DIV for integer division: 
query I rowsort label-5426
SELECT ALL + 56 DIV + + 19 + + 38 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL + 56 / + + 19 + + 38 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT DISTINCT 4 + 10 * CASE + - COUNT( * ) WHEN - + 87 + + COUNT( * ) * COUNT( * ) THEN - COUNT( * ) WHEN - COUNT( * ) - 41 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT 4 + 10 * CASE + - COUNT ( * ) WHEN - + 87 + + COUNT ( * ) * COUNT ( * ) THEN - COUNT ( * ) WHEN - COUNT ( * ) - 41 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5428
SELECT ALL + 12 - - + COALESCE ( + 38, - + 62 * 44 * - 80 + 28 * - 65 - - 98 + 45 * + COUNT( * ) ) + + 52 AS col2, - CAST( NULL AS SIGNED ) AS col1
----
102
NULL

skipif mysql # not compatible
query II rowsort label-5428
SELECT ALL + 12 - - + COALESCE ( + 38, - + 62 * 44 * - 80 + 28 * - 65 - - 98 + 45 * + COUNT ( * ) ) + + 52 AS col2, - CAST ( NULL AS INTEGER ) AS col1
----
102
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5429
SELECT ALL + 32 - + COALESCE ( COALESCE ( + 82, - CAST( NULL AS SIGNED ) ), + 88 + ( 86 ) + + 14 * COUNT( * ) )
----
-50

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL + 32 - + COALESCE ( COALESCE ( + 82, - CAST ( NULL AS INTEGER ) ), + 88 + ( 86 ) + + 14 * COUNT ( * ) )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT - MAX( - - 92 ) * 25 AS col0
----
-2300

skipif mysql # not compatible
query I rowsort label-5430
SELECT - MAX ( - - 92 ) * 25 AS col0
----
-2300

query I rowsort
SELECT - 28 * - 66 + + 58
----
1906

query I rowsort
SELECT 25 * 8 * - + 35
----
-7000

query I rowsort
SELECT 60 * 10
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT ALL - COUNT( DISTINCT 91 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL - COUNT ( DISTINCT 91 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5435
SELECT DISTINCT - 2 AS col0, COUNT( * ) + + - 64 AS col0
----
-2
-63

skipif mysql # not compatible
query II rowsort label-5435
SELECT DISTINCT - 2 AS col0, COUNT ( * ) + + - 64 AS col0
----
-2
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5436
SELECT 50 * - + 27 DIV - - COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) * - 72 AS col1
----
-1350
NULL

skipif mysql # not compatible
query II rowsort label-5436
SELECT 50 * - + 27 / - - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) * - 72 AS col1
----
-1350
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL - MIN( DISTINCT - 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL - MIN ( DISTINCT - 14 ) AS col0
----
14

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5439
SELECT ALL - 51 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL - 51 / - 76
----
0

query I rowsort
SELECT 76 + - + 34 col1
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-5441
SELECT 4 AS col2, - 88 * 54 DIV 16
----
4
-297

skipif mysql # not compatible
query II rowsort label-5441
SELECT 4 AS col2, - 88 * 54 / 16
----
4
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT MIN( + NULLIF ( + + 59, - 21 ) ) + - 2
----
57

skipif mysql # not compatible
query I rowsort label-5442
SELECT MIN ( + NULLIF ( + + 59, - 21 ) ) + - 2
----
57

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

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

query I rowsort
SELECT ALL - 51 * + 7
----
-357

onlyif mysql # aggregate syntax: 
query II rowsort label-5445
SELECT 95 / CASE + - 83 WHEN + 26 * + 84 * + 16 + + + 27 THEN MIN( ALL 97 ) ELSE NULL END, CASE 29 WHEN - COUNT( * ) THEN COUNT( * ) * 36 + + 46 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5445
SELECT 95 / CASE + - 83 WHEN + 26 * + 84 * + 16 + + + 27 THEN MIN ( ALL 97 ) ELSE NULL END, CASE 29 WHEN - COUNT ( * ) THEN COUNT ( * ) * 36 + + 46 END
----
NULL
NULL

query I rowsort
SELECT 66 + + - 40 col1
----
26

query I rowsort
SELECT DISTINCT - 34 * 5 AS col0
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL + COUNT( ALL - 45 ) + - 83 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL + COUNT ( ALL - 45 ) + - 83 AS col1
----
-82

query I rowsort
SELECT 75 + 74
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5450
SELECT ALL + 6 + + + CASE - 73 WHEN - 25 THEN - COALESCE ( + CASE ( + + 27 ) WHEN 17 * + 58 + + + MIN( - 30 ) THEN 1 * - + 60 + - + 43 ELSE 93 END, - COUNT( * ) * - 17 * - + 28 ) * 10 WHEN - CAST( NULL AS SIGNED ) / - + COUNT( * ) * - 32 THEN NULL WHEN + + 21 / + ( - 53 ) THEN + 47 + - 32 END + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL + 6 + + + CASE - 73 WHEN - 25 THEN - COALESCE ( + CASE ( + + 27 ) WHEN 17 * + 58 + + + MIN ( - 30 ) THEN 1 * - + 60 + - + 43 ELSE 93 END, - COUNT ( * ) * - 17 * - + 28 ) * 10 WHEN - CAST ( NULL AS INTEGER ) / - + COUNT ( * ) * - 32 THEN NULL WHEN + + 21 / + ( - 53 ) THEN + 47 + - 32 END + 22
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5451
SELECT ALL ( + 57 ) + + CAST( NULL AS DECIMAL ) AS col1, 39 DIV + - 75
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5451
SELECT ALL ( + 57 ) + + CAST ( NULL AS REAL ) AS col1, 39 / + - 75
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5452
SELECT ALL 60 + CAST( + 97 AS SIGNED ) AS col2
----
157

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL 60 + CAST ( + 97 AS INTEGER ) AS col2
----
157

query I rowsort
SELECT 69 + + 84 AS col2
----
153

query I rowsort
SELECT DISTINCT - CASE ( + 12 ) WHEN - 99 + 8 THEN + 64 ELSE + 64 END
----
-64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT NULLIF ( + MAX( - + 49 ), + - 1 ) + + + 32
----
-17

skipif mysql # not compatible
query I rowsort label-5456
SELECT NULLIF ( + MAX ( - + 49 ), + - 1 ) + + + 32
----
-17

query II rowsort
SELECT ALL - 77 + - 15 + + ( + 93 ), ( - 87 ) + - 77 AS col1
----
1
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT COALESCE ( 42, 75, - + 73 + - 50 - 80 ) * COUNT( * ) + - - MAX( DISTINCT - - 5 ) * COUNT( * ) col2
----
47

skipif mysql # not compatible
query I rowsort label-5458
SELECT COALESCE ( 42, 75, - + 73 + - 50 - 80 ) * COUNT ( * ) + - - MAX ( DISTINCT - - 5 ) * COUNT ( * ) col2
----
47

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

skipif mysql # not compatible
query I rowsort label-5459
SELECT + SUM ( + 95 )
----
95

query I rowsort
SELECT ( - 3 ) + + + 57 col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT DISTINCT - COUNT( * ) + 83 + + 80 * 71 col2
----
5762

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT - COUNT ( * ) + 83 + + 80 * 71 col2
----
5762

query I rowsort
SELECT ALL - + 72 - 26 * - 5 AS col0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5463
SELECT ALL 76 - - 20 + COUNT( + NULLIF ( - 72, 17 ) ) AS col0, COUNT( * ) * 0 DIV - + 62 AS col1
----
97
0

skipif mysql # not compatible
query II rowsort label-5463
SELECT ALL 76 - - 20 + COUNT ( + NULLIF ( - 72, 17 ) ) AS col0, COUNT ( * ) * 0 / - + 62 AS col1
----
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT CASE - 83 WHEN 3 THEN - 1 WHEN 88 + - - COUNT( * ) THEN + ( - 78 ) END / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT CASE - 83 WHEN 3 THEN - 1 WHEN 88 + - - COUNT ( * ) THEN + ( - 78 ) END / - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT + 33 AS col0, + NULLIF ( - 77, + + 54 ) col2
----
33
-77

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

skipif mysql # not compatible
query I rowsort label-5466
SELECT MIN ( + 2 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5467
SELECT + SUM( DISTINCT ( - CAST( NULL AS SIGNED ) ) ) + - 47 - + COALESCE ( - 14, + 19 * - - 97 / - - 73 ) * - + MIN( ( - 7 ) ) / + + 86 * + + CAST( NULL AS SIGNED ) / 46 + 31 / - 36 * ( 93 ) AS col2, - ( - CAST( NULL AS SIGNED ) ) col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5467
SELECT + SUM ( DISTINCT ( - CAST ( NULL AS INTEGER ) ) ) + - 47 - + COALESCE ( - 14, + 19 * - - 97 / - - 73 ) * - + MIN ( ( - 7 ) ) / + + 86 * + + CAST ( NULL AS INTEGER ) / 46 + 31 / - 36 * ( 93 ) AS col2, - ( - CAST ( NULL AS INTEGER ) ) col1
----
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5469
SELECT 70 * 49, CAST( - - 59 AS SIGNED ) + + 99 + 51 * - 53 AS col2
----
3430
-2545

skipif mysql # not compatible
query II rowsort label-5469
SELECT 70 * 49, CAST ( - - 59 AS INTEGER ) + + 99 + 51 * - 53 AS col2
----
3430
-2545

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

skipif mysql # not compatible
query I rowsort label-5470
SELECT SUM ( DISTINCT 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT SUM( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-5471
SELECT SUM ( 90 )
----
90

query I rowsort
SELECT - 24 - 82 AS col1
----
-106

query I rowsort
SELECT + 35 * + 88 * + - 9
----
-27720

query I rowsort
SELECT - 41 + 72 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT + CASE 51 WHEN - + 69 + - 16 + + - 47 * + + COUNT( * ) * - 40 / - + 4 THEN - 40 + - 55 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5475
SELECT + CASE 51 WHEN - + 69 + - 16 + + - 47 * + + COUNT ( * ) * - 40 / - + 4 THEN - 40 + - 55 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT MAX( DISTINCT 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5476
SELECT MAX ( DISTINCT 11 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL - COUNT( * ) + - + COUNT( DISTINCT 73 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL - COUNT ( * ) + - + COUNT ( DISTINCT 73 ) AS col2
----
-2

query I rowsort
SELECT DISTINCT + 93 + + 19 * - + 73 AS col2
----
-1294

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT DISTINCT - 29 + CASE + CASE + 42 WHEN 64 + 89 THEN - 41 ELSE NULL END WHEN - 13 + 78 * + 92 * + 32 * - 58 * + SUM( + COALESCE ( + - 85, 42 ) ) THEN + + 2 * + 67 + + - 93 ELSE + 88 - - 12 + 1 - - 14 * + COUNT( * ) + 36 * 55 * - CASE - + COUNT( * ) WHEN 99 + + ( + SUM( 57 ) ) THEN 34 * COALESCE ( 48 * + 82, 5 + + 18 * - 89 ) + COUNT( * ) END * 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT - 29 + CASE + CASE + 42 WHEN 64 + 89 THEN - 41 ELSE NULL END WHEN - 13 + 78 * + 92 * + 32 * - 58 * + SUM ( + COALESCE ( + - 85, 42 ) ) THEN + + 2 * + 67 + + - 93 ELSE + 88 - - 12 + 1 - - 14 * + COUNT ( * ) + 36 * 55 * - CASE - + COUNT ( * ) WHEN 99 + + ( + SUM ( 57 ) ) THEN 34 * COALESCE ( 48 * + 82, 5 + + 18 * - 89 ) + COUNT ( * ) END * 66 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5480
SELECT - + 61 * - CAST( NULL AS SIGNED ) * - - ( 14 ), ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5480
SELECT - + 61 * - CAST ( NULL AS INTEGER ) * - - ( 14 ), ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 50 * - - 66
----
3300

query I rowsort
SELECT + - 92 + + - ( - 27 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5483
SELECT DISTINCT + 89 * + + 85 + - 26 + 87 + - CAST( NULL AS SIGNED ) + - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT + 89 * + + 85 + - 26 + 87 + - CAST ( NULL AS INTEGER ) + - - 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5484
SELECT - MAX( - - 13 ) - + - 45 + - 52 AS col1, + 30
----
-20
30

skipif mysql # not compatible
query II rowsort label-5484
SELECT - MAX ( - - 13 ) - + - 45 + - 52 AS col1, + 30
----
-20
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5485
SELECT - + CAST( 94 AS SIGNED ) * + 73
----
-6862

skipif mysql # not compatible
query I rowsort label-5485
SELECT - + CAST ( 94 AS INTEGER ) * + 73
----
-6862

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT ALL + 56 * MAX( + 88 ) col1
----
4928

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL + 56 * MAX ( + 88 ) col1
----
4928

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5487
SELECT - 7 + - + CASE - 95 WHEN COUNT( * ) THEN NULL WHEN - 77 * - + 82 THEN + CAST( NULL AS DECIMAL ) + ( - + 71 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT - 7 + - + CASE - 95 WHEN COUNT ( * ) THEN NULL WHEN - 77 * - + 82 THEN + CAST ( NULL AS REAL ) + ( - + 71 ) END col0
----
NULL

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

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

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

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

query I rowsort
SELECT - - 59 * - 35 - 53 col1
----
-2118

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5492
SELECT - - COALESCE ( - 71, + COUNT( * ) DIV + 95 ) - - 2 + + - 30 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-5492
SELECT - - COALESCE ( - 71, + COUNT ( * ) / + 95 ) - - 2 + + - 30 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-5493
SELECT - 96 * - NULLIF ( - 18, + + 26 + + COUNT( * ) ) * + - 24 + 99 AS col2, 53 * 12 + 85 - - 37
----
41571
758

skipif mysql # not compatible
query II rowsort label-5493
SELECT - 96 * - NULLIF ( - 18, + + 26 + + COUNT ( * ) ) * + - 24 + 99 AS col2, 53 * 12 + 85 - - 37
----
41571
758

query I rowsort
SELECT + + 35 + - + 81 * - 38
----
3113

query I rowsort
SELECT - 78 + - + 0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5496
SELECT ALL + CAST( - 80 AS SIGNED ) * 49 * + - 29
----
113680

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL + CAST ( - 80 AS INTEGER ) * 49 * + - 29
----
113680

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT + COALESCE ( - - 2, SUM( 34 ) * - 27 )
----
2

skipif mysql # not compatible
query I rowsort label-5497
SELECT + COALESCE ( - - 2, SUM ( 34 ) * - 27 )
----
2

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

skipif mysql # not compatible
query I rowsort label-5498
SELECT - COUNT ( * ) * 55
----
-55

query I rowsort
SELECT ALL 30 * + + 2 AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT + ( - + ( + - 16 ) ) DIV + - 67
----
0

skipif mysql # not compatible
query I rowsort label-5500
SELECT + ( - + ( + - 16 ) ) / + - 67
----
0

query I rowsort
SELECT ( - 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT ALL 37 * + NULLIF ( 53, - 26 + COUNT( * ) * + SUM( 31 ) - - + 53 + + - 96 + + - 91 ) + - 79 AS col1
----
1882

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL 37 * + NULLIF ( 53, - 26 + COUNT ( * ) * + SUM ( 31 ) - - + 53 + + - 96 + + - 91 ) + - 79 AS col1
----
1882

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT CASE + - 68 WHEN 85 + - 80 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5503
SELECT CASE + - 68 WHEN 85 + - 80 THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT DISTINCT 49 * 89 + 76 + + + SUM( 75 ) * + 10 * + - 89 * + 1
----
-62313

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT 49 * 89 + 76 + + + SUM ( 75 ) * + 10 * + - 89 * + 1
----
-62313

query I rowsort
SELECT DISTINCT + 99 * - 73 * + - 4 + - 67 + + 20 + + 32 - - 17 AS col1
----
28910

query I rowsort
SELECT 40 * - 27 + + - 46 + - 65 + 3 + - - 65 * 43
----
1607

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL 8 * + 74 * - - COUNT( * ) * COUNT( * ) + 21 - 12 AS col0
----
601

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL 8 * + 74 * - - COUNT ( * ) * COUNT ( * ) + 21 - 12 AS col0
----
601

query I rowsort
SELECT + 78 + + - ( - + 37 ) * + 25
----
1003

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT - - MAX( ALL + ( - + 97 ) ) * 2 - + COUNT( ALL - 75 )
----
-195

skipif mysql # not compatible
query I rowsort label-5509
SELECT - - MAX ( ALL + ( - + 97 ) ) * 2 - + COUNT ( ALL - 75 )
----
-195

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

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

query I rowsort
SELECT + - 5 + 56 + - 2 * + 47 AS col0
----
-43

query I rowsort
SELECT - + 88 * - + 69 AS col2
----
6072

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

skipif mysql # not compatible
query I rowsort label-5513
SELECT SUM ( ALL 43 )
----
43

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

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

query I rowsort
SELECT - - 55 * ( 26 ) + - 5
----
1425

query I rowsort
SELECT + - 44 * + 46
----
-2024

query I rowsort
SELECT - 41 + 75
----
34

query I rowsort
SELECT - 55 + - 17 AS col2
----
-72

query II rowsort
SELECT DISTINCT 51 AS col2, + 4
----
51
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT DISTINCT + 51 * - + COUNT( * ) * + - 5 * + 28 + + 94
----
7234

skipif mysql # not compatible
query I rowsort label-5521
SELECT DISTINCT + 51 * - + COUNT ( * ) * + - 5 * + 28 + + 94
----
7234

query I rowsort
SELECT ALL - 82 * + + ( 88 )
----
-7216

query I rowsort
SELECT - 96 * - 53
----
5088

onlyif mysql # DIV for integer division: 
query II rowsort label-5524
SELECT DISTINCT + 10 + - 8, - 0 * 94 DIV - 34 AS col2
----
2
0

skipif mysql # not compatible
query II rowsort label-5524
SELECT DISTINCT + 10 + - 8, - 0 * 94 / - 34 AS col2
----
2
0

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

skipif mysql # not compatible
query I rowsort label-5525
SELECT - COUNT ( * ) * + CAST ( 28 AS INTEGER )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-5526
SELECT ALL + SUM( - + 14 ) + + - 14 + - 63, + 8 + - - 9 + - 87 AS col1
----
-91
-70

skipif mysql # not compatible
query II rowsort label-5526
SELECT ALL + SUM ( - + 14 ) + + - 14 + - 63, + 8 + - - 9 + - 87 AS col1
----
-91
-70

query I rowsort
SELECT DISTINCT - 37 + 90 AS col1
----
53

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

skipif mysql # not compatible
query I rowsort label-5528
SELECT 40 * - - COUNT ( * ) / 65 * + ( + 17 ) AS col0
----
0

query I rowsort
SELECT 69 - 99 * 50 AS col1
----
-4881

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL MAX( ALL 43 ) * - 11
----
-473

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL MAX ( ALL 43 ) * - 11
----
-473

query II rowsort
SELECT + 35 AS col2, - 11 + + 83 AS col1
----
35
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5532
SELECT DISTINCT + 30 - + CAST( NULL AS SIGNED ) + - ( - COUNT( * ) ) + - - 96 / + ( + 30 ) AS col2, 16 * 12 col2
----
NULL
192

skipif mysql # not compatible
query II rowsort label-5532
SELECT DISTINCT + 30 - + CAST ( NULL AS INTEGER ) + - ( - COUNT ( * ) ) + - - 96 / + ( + 30 ) AS col2, 16 * 12 col2
----
NULL
192

query I rowsort
SELECT - 39 * - - 31 + - + 61 + + - 31 * + 41 * 52 - + + 42 * - 28 + + ( 46 )
----
-66140

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT ALL 16 * - COALESCE ( - 2, ( - COUNT( * ) ), 42 * + 51 ) * + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL 16 * - COALESCE ( - 2, ( - COUNT ( * ) ), 42 * + 51 ) * + COUNT ( * ) AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5536
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 35 + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 35 + - 94
----
NULL

query I rowsort
SELECT 14 * + 99 + + 96 AS col2
----
1482

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

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

query I rowsort
SELECT ALL + 20 * + - 96
----
-1920

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT ALL + 40 DIV - - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL + 40 / - - 64 AS col1
----
0

query I rowsort
SELECT ( + 32 ) * - - 46
----
1472

query I rowsort
SELECT ALL 42 * - 59 AS col2
----
-2478

query II rowsort
SELECT 0 AS col2, 33 * - 43 AS col0
----
0
-1419

query I rowsort
SELECT - 69 * + ( - 29 )
----
2001

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5546
SELECT 62 * - 22 DIV + - COUNT( * ) - - - ( + 60 ) AS col1
----
1304

skipif mysql # not compatible
query I rowsort label-5546
SELECT 62 * - 22 / + - COUNT ( * ) - - - ( + 60 ) AS col1
----
1304

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5548
SELECT ALL - 13 + - NULLIF ( - ( + 93 ), + CAST( - - 91 AS SIGNED ) + 20 ) + + ( - 51 ) AS col1, 61 AS col2
----
29
61

skipif mysql # not compatible
query II rowsort label-5548
SELECT ALL - 13 + - NULLIF ( - ( + 93 ), + CAST ( - - 91 AS INTEGER ) + 20 ) + + ( - 51 ) AS col1, 61 AS col2
----
29
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT ALL + COUNT( * ) * 17 * 69 * - 48 * - 57 AS col1
----
3209328

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL + COUNT ( * ) * 17 * 69 * - 48 * - 57 AS col1
----
3209328

onlyif mysql # DIV for integer division: 
query I rowsort label-5550
SELECT ( - ( 14 ) ) + + - 38 DIV - 71
----
-14

skipif mysql # not compatible
query I rowsort label-5550
SELECT ( - ( 14 ) ) + + - 38 / - 71
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5551
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - 39
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-5551
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - 39
----
NULL
-39

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

skipif mysql # not compatible
query I rowsort label-5552
SELECT + COUNT ( * ) + 47 AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5553
SELECT ALL - 23 + NULLIF ( SUM( 32 ), + 12 * - - 26 * - + 20 + - 54 ) + - - 48 + - - COUNT( * ) + - 77 + + 13 DIV 26
----
-19

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL - 23 + NULLIF ( SUM ( 32 ), + 12 * - - 26 * - + 20 + - 54 ) + - - 48 + - - COUNT ( * ) + - 77 + + 13 / 26
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-5554
SELECT 79 - COUNT( * ) AS col0, - 68 AS col0
----
78
-68

skipif mysql # not compatible
query II rowsort label-5554
SELECT 79 - COUNT ( * ) AS col0, - 68 AS col0
----
78
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5555
SELECT 53 + 48 DIV 74 * 25
----
53

skipif mysql # not compatible
query I rowsort label-5555
SELECT 53 + 48 / 74 * 25
----
53

query I rowsort
SELECT 59 * 21 col1
----
1239

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

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

query I rowsort
SELECT DISTINCT + 34 * + 93 * + - 95
----
-300390

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT + COUNT( ALL - + 49 ) * - - ( 7 ) + - 99 + - 76
----
-168

skipif mysql # not compatible
query I rowsort label-5559
SELECT + COUNT ( ALL - + 49 ) * - - ( 7 ) + - 99 + - 76
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL 47 - + 28 * + NULLIF ( - 39, 95 + + 93 + 73 / + 15 * + - NULLIF ( + COUNT( * ), + + ( + 80 ) * + 31 ) ) AS col1
----
1139

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL 47 - + 28 * + NULLIF ( - 39, 95 + + 93 + 73 / + 15 * + - NULLIF ( + COUNT ( * ), + + ( + 80 ) * + 31 ) ) AS col1
----
1139

query I rowsort
SELECT ALL - 61 - - 50
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5562
SELECT - 35 DIV 15 + - + ( - - COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-5562
SELECT - 35 / 15 + - + ( - - COUNT ( * ) )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5563
SELECT DISTINCT - SUM( ALL 46 ), 75 AS col0
----
-46
75

skipif mysql # not compatible
query II rowsort label-5563
SELECT DISTINCT - SUM ( ALL 46 ), 75 AS col0
----
-46
75

query I rowsort
SELECT 69 + + 49
----
118

query I rowsort
SELECT ALL - NULLIF ( - 95, - 81 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT CASE 96 WHEN + + 62 * 9 * - 28 THEN + NULLIF ( - + 49, - + ( + 72 ) * COUNT( * ) - 6 ) + + 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5566
SELECT CASE 96 WHEN + + 62 * 9 * - 28 THEN + NULLIF ( - + 49, - + ( + 72 ) * COUNT ( * ) - 6 ) + + 4 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT 87 DIV - - 2 + 89 AS col2
----
132

skipif mysql # not compatible
query I rowsort label-5567
SELECT 87 / - - 2 + 89 AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT 22 * + COUNT( - - CASE + 82 WHEN 60 THEN NULL WHEN + 49 THEN 57 END ) * + 88 + - 20 - 57 + 82 + + 36 * - 30
----
-1075

skipif mysql # not compatible
query I rowsort label-5568
SELECT 22 * + COUNT ( - - CASE + 82 WHEN 60 THEN NULL WHEN + 49 THEN 57 END ) * + 88 + - 20 - 57 + 82 + + 36 * - 30
----
-1075

query II rowsort
SELECT ALL - ( - - 51 ) + + 59 AS col2, 36
----
8
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT COUNT( * ) + 57 + + 43
----
101

skipif mysql # not compatible
query I rowsort label-5570
SELECT COUNT ( * ) + 57 + + 43
----
101

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5571
SELECT CASE CAST( NULL AS DECIMAL ) WHEN - 85 THEN + ( + 56 ) * 79 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5571
SELECT CASE CAST ( NULL AS REAL ) WHEN - 85 THEN + ( + 56 ) * 79 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5572
SELECT - ( + MIN( + + 58 ) ) + - 99 + NULLIF ( + + 45, - SUM( - - 7 ) + 76 ) + + CAST( NULL AS SIGNED ) + - ( COUNT( * ) ) * + 96 + - + 72 / - 38 + + 26 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT - ( + MIN ( + + 58 ) ) + - 99 + NULLIF ( + + 45, - SUM ( - - 7 ) + 76 ) + + CAST ( NULL AS INTEGER ) + - ( COUNT ( * ) ) * + 96 + - + 72 / - 38 + + 26 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL - 73 * + + 51 * - 68 + + SUM( - ( NULLIF ( - 95, - - 22 + - + NULLIF ( ( - - 50 ), 60 ) + - 3 + 83 * 74 ) ) ) * - + 58 AS col1
----
247654

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - 73 * + + 51 * - 68 + + SUM ( - ( NULLIF ( - 95, - - 22 + - + NULLIF ( ( - - 50 ), 60 ) + - 3 + 83 * 74 ) ) ) * - + 58 AS col1
----
247654

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5574
SELECT ALL + 81 + CASE 15 WHEN + 68 THEN - + CAST( + - 3 AS DECIMAL ) WHEN 60 + + 98 - - 18 * - + COUNT( DISTINCT + 84 ) * - COUNT( * ) + + + SUM( DISTINCT - 35 ) * - - 67 * + 72 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL + 81 + CASE 15 WHEN + 68 THEN - + CAST ( + - 3 AS REAL ) WHEN 60 + + 98 - - 18 * - + COUNT ( DISTINCT + 84 ) * - COUNT ( * ) + + + SUM ( DISTINCT - 35 ) * - - 67 * + 72 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5575
SELECT DISTINCT - 23 + - SUM( 64 ) DIV + 61 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-5575
SELECT DISTINCT - 23 + - SUM ( 64 ) / + 61 AS col2
----
-24

query I rowsort
SELECT ALL ( - + 31 ) + + 88 + - 90
----
-33

query I rowsort
SELECT + + 95 + - NULLIF ( - 10, - 0 * 86 + - 56 ) * 13 + - + 89 + 66
----
202

query I rowsort
SELECT + 25 + CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE + 79 END * + 23
----
NULL

query II rowsort
SELECT 53 col1, 23 * 2 + - - 97
----
53
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5580
SELECT ALL 7 + + 58 DIV + 72 * 44 * 66 + SUM( + 34 ) * + CAST( - 13 AS SIGNED ) + 36 + + CAST( - 21 AS SIGNED ) AS col1
----
-420

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL 7 + + 58 / + 72 * 44 * 66 + SUM ( + 34 ) * + CAST ( - 13 AS INTEGER ) + 36 + + CAST ( - 21 AS INTEGER ) AS col1
----
-420

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5581
SELECT 58 AS col1, + CAST( NULL AS DECIMAL ) * - 48
----
58
NULL

skipif mysql # not compatible
query II rowsort label-5581
SELECT 58 AS col1, + CAST ( NULL AS REAL ) * - 48
----
58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5582
SELECT 96, 4 * ( CAST( + - 69 AS SIGNED ) ) * - 95 AS col0
----
96
26220

skipif mysql # not compatible
query II rowsort label-5582
SELECT 96, 4 * ( CAST ( + - 69 AS INTEGER ) ) * - 95 AS col0
----
96
26220

query I rowsort
SELECT ALL 1 * 71 AS col2
----
71

query I rowsort
SELECT DISTINCT 12 * 49
----
588

query I rowsort
SELECT - COALESCE ( - 62, + + 72 ) AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5586
SELECT ALL 47 * CAST( + 12 AS SIGNED ) AS col0
----
564

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL 47 * CAST ( + 12 AS INTEGER ) AS col0
----
564

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT + NULLIF ( - COALESCE ( - ( + - 13 ), MIN( ALL - 37 ), - ( + 86 ) * + - 91 + 2 ), - + 88 ) - - 38
----
25

skipif mysql # not compatible
query I rowsort label-5587
SELECT + NULLIF ( - COALESCE ( - ( + - 13 ), MIN ( ALL - 37 ), - ( + 86 ) * + - 91 + 2 ), - + 88 ) - - 38
----
25

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT 66 DIV + 75 + - NULLIF ( 11, - + 61 + + COALESCE ( + COALESCE ( - - ( - 28 ), - 27 * + 29 ), + 71 ) * - 95 * - 36 ) + + - 73 + ( 78 )
----
-6

skipif mysql # not compatible
query I rowsort label-5589
SELECT 66 / + 75 + - NULLIF ( 11, - + 61 + + COALESCE ( + COALESCE ( - - ( - 28 ), - 27 * + 29 ), + 71 ) * - 95 * - 36 ) + + - 73 + ( 78 )
----
-6

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT DISTINCT 35 DIV - - 26
----
1

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT 35 / - - 26
----
1

query I rowsort
SELECT + 75 - 36
----
39

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5596
SELECT DISTINCT 14 DIV + 22 * + 45, 29 AS col2
----
0
29

skipif mysql # not compatible
query II rowsort label-5596
SELECT DISTINCT 14 / + 22 * + 45, 29 AS col2
----
0
29

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5598
SELECT + 27 * - 1 + COUNT( + 53 ) + + CASE 21 WHEN + - 48 * - + AVG ( 92 ) THEN + 27 ELSE NULL END * - 30 + - 92 + + 34, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5598
SELECT + 27 * - 1 + COUNT ( + 53 ) + + CASE 21 WHEN + - 48 * - + AVG ( 92 ) THEN + 27 ELSE NULL END * - 30 + - 92 + + 34, COUNT ( * ) AS col2
----
NULL
1

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

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

query I rowsort
SELECT + - 32 * - 20 AS col2
----
640

query II rowsort
SELECT 92, - 85 + - + 90 + - + 82 AS col0
----
92
-257

query I rowsort
SELECT - - ( - - ( + + 75 ) ) - + 30
----
45

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

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

query I rowsort
SELECT ALL - - 73 * 48 + - 53
----
3451

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

query I rowsort
SELECT - 60 * - + 68 AS col2
----
4080

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

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

query II rowsort
SELECT + + 25 AS col0, 19
----
25
19

query I rowsort
SELECT - - 30 + 93
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-5610
SELECT - + 50 DIV 8 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-5610
SELECT - + 50 / 8 AS col2
----
-6

query I rowsort
SELECT - 37 * - 35 AS col2
----
1295

query I rowsort
SELECT - 13 - + + 27 + 79 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5613
SELECT DISTINCT - 79 - 32 - 42 DIV - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT - 79 - 32 - 42 / - COUNT ( * )
----
-69

query I rowsort
SELECT DISTINCT + 15 * - + 10 col0
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5615
SELECT ALL - 61 - 61 AS col0, + SUM( - ( - 77 ) ) + + CAST( NULL AS SIGNED ) * + - COUNT( * )
----
-122
NULL

skipif mysql # not compatible
query II rowsort label-5615
SELECT ALL - 61 - 61 AS col0, + SUM ( - ( - 77 ) ) + + CAST ( NULL AS INTEGER ) * + - COUNT ( * )
----
-122
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5616
SELECT ALL SUM( ALL + 61 ) - + + 45 + + + 67 * + CAST( NULL AS SIGNED ) * - + 71 + + - SUM( ALL - ( 7 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL SUM ( ALL + 61 ) - + + 45 + + + 67 * + CAST ( NULL AS INTEGER ) * - + 71 + + - SUM ( ALL - ( 7 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5617
SELECT + ( - 93 ) DIV 1
----
-93

skipif mysql # not compatible
query I rowsort label-5617
SELECT + ( - 93 ) / 1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-5618
SELECT ALL + 88 DIV + + 15
----
5

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL + 88 / + + 15
----
5

query I rowsort
SELECT + 35 - - 53 * 27 AS col1
----
1466

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT + 88 + + + ( + 41 ) - - - 41 + + 73 * COALESCE ( + 81, + + COUNT( * ) )
----
6001

skipif mysql # not compatible
query I rowsort label-5621
SELECT + 88 + + + ( + 41 ) - - - 41 + + 73 * COALESCE ( + 81, + + COUNT ( * ) )
----
6001

query II rowsort
SELECT ALL 94 * - - 49 * + 89 * + + 44 col1, ( - - 86 ) + 71 + + 24 AS col1
----
18037096
181

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT + SUM( + 34 ) * + + ( + + ( - COUNT( * ) ) ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5623
SELECT + SUM ( + 34 ) * + + ( + + ( - COUNT ( * ) ) ) AS col0
----
-34

query I rowsort
SELECT + 5 * - 66 col1
----
-330

query I rowsort
SELECT + 76 + - - 84 AS col0
----
160

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

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL COUNT ( * ) * - - SUM ( ALL 65 ) AS col2
----
65

query I rowsort
SELECT + 52 + + 78 AS col0
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5628
SELECT DISTINCT ( - ( - + 71 ) ) * + CASE 67 WHEN - 28 + + + 40 THEN COUNT( - 34 ) + 20 ELSE + - 43 DIV + ( + NULLIF ( + 9, - + 13 ) ) END, 19 AS col0
----
-284
19

skipif mysql # not compatible
query II rowsort label-5628
SELECT DISTINCT ( - ( - + 71 ) ) * + CASE 67 WHEN - 28 + + + 40 THEN COUNT ( - 34 ) + 20 ELSE + - 43 / + ( + NULLIF ( + 9, - + 13 ) ) END, 19 AS col0
----
-284
19

query I rowsort
SELECT + 78 * + + 40 AS col0
----
3120

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5630
SELECT ALL + - 29 DIV + 41 * - 31 + CAST( + 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL + - 29 / + 41 * - 31 + CAST ( + 41 AS INTEGER )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT + + MIN( + - 43 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT + + MIN ( + - 43 ) AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5632
SELECT - 74 * + COALESCE ( - + 9, ( - SUM( ALL 23 ) ) + - 67 ) + 96 + - COUNT( * ) + 14 DIV + 79 AS col1
----
761

skipif mysql # not compatible
query I rowsort label-5632
SELECT - 74 * + COALESCE ( - + 9, ( - SUM ( ALL 23 ) ) + - 67 ) + 96 + - COUNT ( * ) + 14 / + 79 AS col1
----
761

query I rowsort
SELECT + 72 + + - 96 - - - 61 * + 61 - - - ( - - 46 ) col1
----
-3791

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

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL + 34 + - COUNT ( * ) * 64 AS col2
----
-30

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT - ( - - 95 ) + - - CAST( - 74 AS SIGNED )
----
-169

skipif mysql # not compatible
query I rowsort label-5636
SELECT - ( - - 95 ) + - - CAST ( - 74 AS INTEGER )
----
-169

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

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

query I rowsort
SELECT + 99 * + 79 + - 32 col0
----
7789

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT SUM( 3 ) + + 50 + 44
----
97

skipif mysql # not compatible
query I rowsort label-5639
SELECT SUM ( 3 ) + + 50 + 44
----
97

query I rowsort
SELECT DISTINCT 37 * - 87 AS col2
----
-3219

query I rowsort
SELECT ALL 95 - + 82 * - 29
----
2473

query II rowsort
SELECT ALL 9 AS col2, - 41
----
9
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT DISTINCT + 75 * - + COUNT( * ) * - + 76 * - COUNT( * ) AS col0
----
-5700

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT + 75 * - + COUNT ( * ) * - + 76 * - COUNT ( * ) AS col0
----
-5700

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT ALL + 2 DIV - - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL + 2 / - - 69 AS col1
----
0

query I rowsort
SELECT 4 + 35
----
39

query II rowsort
SELECT - 18 AS col0, - 6 AS col2
----
-18
-6

query I rowsort
SELECT 14 + 39 AS col2
----
53

query I rowsort
SELECT 88 * - 21 AS col2
----
-1848

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

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

query I rowsort
SELECT 10 + + 31 * 39 AS col0
----
1219

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

skipif mysql # not compatible
query I rowsort label-5651
SELECT COUNT ( * ) * - - 85
----
85

query II rowsort
SELECT DISTINCT 37 AS col1, 10 AS col2
----
37
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT - COUNT( + 17 ) + - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5654
SELECT - COUNT ( + 17 ) + - - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ( - 64 ) AS col2
----
-64

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

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

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

query II rowsort
SELECT + 9, 92 AS col1
----
9
92

query I rowsort
SELECT ALL 39 * + + 21 AS col1
----
819

query I rowsort
SELECT ALL - 3 - - + 58 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT - COUNT( * ) * 26 * - 57 + 20 - + - 0 * + - 3 * 2
----
1502

skipif mysql # not compatible
query I rowsort label-5661
SELECT - COUNT ( * ) * 26 * - 57 + 20 - + - 0 * + - 3 * 2
----
1502

onlyif mysql # DIV for integer division: 
query I rowsort label-5662
SELECT DISTINCT 84 DIV 4
----
21

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT 84 / 4
----
21

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5664
SELECT 83 col1, - MIN( - 33 ) + + + MAX( DISTINCT 21 )
----
83
54

skipif mysql # not compatible
query II rowsort label-5664
SELECT 83 col1, - MIN ( - 33 ) + + + MAX ( DISTINCT 21 )
----
83
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5665
SELECT DISTINCT 89 DIV - 73 col2
----
-1

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT 89 / - 73 col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5666
SELECT 98 DIV - ( - - 24 ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-5666
SELECT 98 / - ( - - 24 ) col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5667
SELECT ALL 24 * - - COUNT( * ) AS col1, 24 DIV + + ( COUNT( * ) ) + 77 AS col1
----
24
101

skipif mysql # not compatible
query II rowsort label-5667
SELECT ALL 24 * - - COUNT ( * ) AS col1, 24 / + + ( COUNT ( * ) ) + 77 AS col1
----
24
101

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

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

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

query II rowsort
SELECT 82 AS col1, - 77 AS col0
----
82
-77

query I rowsort
SELECT 94 + - - 79
----
173

query I rowsort
SELECT ALL + CASE - 70 WHEN - ( - + 40 ) THEN NULL ELSE ( 86 ) END + - - 56
----
142

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL COUNT( DISTINCT 72 ) * - + 37 + + 41
----
4

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL COUNT ( DISTINCT 72 ) * - + 37 + + 41
----
4

onlyif mysql # aggregate syntax: 
query III rowsort label-5675
SELECT ALL COUNT( * ) col0, - 6 * + + COUNT( * ) + 35 - + ( 84 ) * + - 23 AS col2, - 67
----
1
1961
-67

skipif mysql # not compatible
query III rowsort label-5675
SELECT ALL COUNT ( * ) col0, - 6 * + + COUNT ( * ) + 35 - + ( 84 ) * + - 23 AS col2, - 67
----
1
1961
-67

query I rowsort
SELECT DISTINCT 76 + + 54 + + 62 AS col0
----
192

query I rowsort
SELECT ALL - 8 + + 23 + 82
----
97

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

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

query I rowsort
SELECT 39 + ( - + 21 ) AS col0
----
18

query I rowsort
SELECT 13 * - - 10
----
130

query II rowsort
SELECT - 51 + + 73, 97 * - - 25 AS col0
----
22
2425

query II rowsort
SELECT 68, 78 AS col2
----
68
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5683
SELECT COUNT( * ) + + COALESCE ( - + 0, + + 34 + - COUNT( - 5 ), - 64 DIV 39 DIV - ( + COUNT( * ) ) + - 21 ) * + 89 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5683
SELECT COUNT ( * ) + + COALESCE ( - + 0, + + 34 + - COUNT ( - 5 ), - 64 / 39 / - ( + COUNT ( * ) ) + - 21 ) * + 89 AS col2
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5685
SELECT + 92 AS col2, 38 + COUNT( * ) AS col1
----
92
39

skipif mysql # not compatible
query II rowsort label-5685
SELECT + 92 AS col2, 38 + COUNT ( * ) AS col1
----
92
39

query II rowsort
SELECT ALL + 95, + 57 AS col1
----
95
57

query I rowsort
SELECT ALL - 0 + + 93 col2
----
93

query I rowsort
SELECT + 18 + + 8 col2
----
26

query I rowsort
SELECT - + 20 + - 56 AS col0
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5690
SELECT ALL + - 10 AS col0, + 69 DIV - 20 + - MAX( - + 30 ) AS col2
----
-10
27

skipif mysql # not compatible
query II rowsort label-5690
SELECT ALL + - 10 AS col0, + 69 / - 20 + - MAX ( - + 30 ) AS col2
----
-10
27

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

skipif mysql # not compatible
query I rowsort label-5691
SELECT - 97 * - 26 * - + COUNT ( + 83 ) AS col0
----
-2522

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT + COUNT( * ) * - COUNT( * ) + + + 22
----
21

skipif mysql # not compatible
query I rowsort label-5692
SELECT + COUNT ( * ) * - COUNT ( * ) + + + 22
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT - - 93 * COUNT( * ) * - 59 AS col0
----
-5487

skipif mysql # not compatible
query I rowsort label-5693
SELECT - - 93 * COUNT ( * ) * - 59 AS col0
----
-5487

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

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

query I rowsort
SELECT DISTINCT + 55 * - + ( - ( 55 ) )
----
3025

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

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

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

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

query I rowsort
SELECT DISTINCT 83 * - 25 * 65
----
-134875

query I rowsort
SELECT + NULLIF ( + - 31, - + 76 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT - 7 * - ( + COUNT( - 94 ) )
----
7

skipif mysql # not compatible
query I rowsort label-5700
SELECT - 7 * - ( + COUNT ( - 94 ) )
----
7

onlyif mysql # aggregate syntax: 
query III rowsort label-5701
SELECT SUM( DISTINCT + - 31 ) AS col1, + 26 + - 62 + + - 56 AS col0, - 98 AS col2
----
-31
-92
-98

skipif mysql # not compatible
query III rowsort label-5701
SELECT SUM ( DISTINCT + - 31 ) AS col1, + 26 + - 62 + + - 56 AS col0, - 98 AS col2
----
-31
-92
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5702
SELECT - MIN( ALL + - 84 ) * + 7 * - 61 * MAX( + 30 ) + - - COUNT( * ) col0, 41 DIV + + 52 col2
----
-1076039
0

skipif mysql # not compatible
query II rowsort label-5702
SELECT - MIN ( ALL + - 84 ) * + 7 * - 61 * MAX ( + 30 ) + - - COUNT ( * ) col0, 41 / + + 52 col2
----
-1076039
0

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

skipif mysql # not compatible
query I rowsort label-5703
SELECT SUM ( ALL - - 18 )
----
18

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

query I rowsort
SELECT ALL 71 + + 30 * + + NULLIF ( 84, 98 - + 49 * - 44 ) AS col1
----
2591

query I rowsort
SELECT DISTINCT 0 + + 52 * - + 96 + + - 21
----
-5013

query I rowsort
SELECT ALL ( - ( 44 ) ) + + 37
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5708
SELECT - CASE + COUNT( * ) WHEN - - CASE - 41 WHEN + NULLIF ( - 87, + 52 * + 60 * 28 ) * + 30 THEN + + MAX( 90 ) ELSE NULL END * 35 THEN NULL WHEN - NULLIF ( + COALESCE ( - NULLIF ( 42, - COUNT( * ) ), ( - CAST( NULL AS SIGNED ) ), 50 ), - CASE - 94 WHEN - 9 THEN + - 21 + 77 WHEN - + 44 + - + 21 - 60 * - 64 * + 83 * - 72 THEN + 13 * - 86 * - 42 + 75 ELSE NULL END * - 73 - 36 ) THEN + 72 + 89 WHEN 55 + 94 THEN + COALESCE ( 11, 18 / COUNT( * ) ) * 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5708
SELECT - CASE + COUNT ( * ) WHEN - - CASE - 41 WHEN + NULLIF ( - 87, + 52 * + 60 * 28 ) * + 30 THEN + + MAX ( 90 ) ELSE NULL END * 35 THEN NULL WHEN - NULLIF ( + COALESCE ( - NULLIF ( 42, - COUNT ( * ) ), ( - CAST ( NULL AS INTEGER ) ), 50 ), - CASE - 94 WHEN - 9 THEN + - 21 + 77 WHEN - + 44 + - + 21 - 60 * - 64 * + 83 * - 72 THEN + 13 * - 86 * - 42 + 75 ELSE NULL END * - 73 - 36 ) THEN + 72 + 89 WHEN 55 + 94 THEN + COALESCE ( 11, 18 / COUNT ( * ) ) * 51 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5709
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN + 16 THEN - + AVG ( - 88 ) * - 32 END + - 36, - CASE - - 43 WHEN 79 - - AVG ( ( + + ( - 47 ) ) ) THEN - - 93 * - 81 END col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5709
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN + 16 THEN - + AVG ( - 88 ) * - 32 END + - 36, - CASE - - 43 WHEN 79 - - AVG ( ( + + ( - 47 ) ) ) THEN - - 93 * - 81 END col0
----
NULL
NULL

query I rowsort
SELECT + 17 * + 84
----
1428

query I rowsort
SELECT ALL ( + + 8 ) * - 52 * - + 10
----
4160

query I rowsort
SELECT ALL 58 * + 10 AS col0
----
580

query I rowsort
SELECT ALL - + 89 + + 55 * + - 7 * + 91 + - 72 + 25
----
-35171

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

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

query I rowsort
SELECT ALL - COALESCE ( - - 74, - - 34, ( ( 75 ) ) ) AS col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5716
SELECT + + CAST( CAST( + - ( - ( - + 3 ) ) AS SIGNED ) AS SIGNED ) * + 21 + 3
----
-60

skipif mysql # not compatible
query I rowsort label-5716
SELECT + + CAST ( CAST ( + - ( - ( - + 3 ) ) AS INTEGER ) AS INTEGER ) * + 21 + 3
----
-60

query I rowsort
SELECT DISTINCT - + 34 * + - 73
----
2482

onlyif mysql # DIV for integer division: 
query I rowsort label-5718
SELECT - ( - + 2 ) DIV - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5718
SELECT - ( - + 2 ) / - 71 AS col1
----
0

query I rowsort
SELECT + 13 * - + 66 * - ( - 74 ) - - ( + 86 ) col1
----
-63406

query I rowsort
SELECT DISTINCT - + 42 * + 77
----
-3234

onlyif mysql # aggregate syntax: 
query II rowsort label-5721
SELECT ALL + + 80 * 71, 42 + COUNT( + + 38 ) AS col1
----
5680
43

skipif mysql # not compatible
query II rowsort label-5721
SELECT ALL + + 80 * 71, 42 + COUNT ( + + 38 ) AS col1
----
5680
43

query I rowsort
SELECT ALL + + 24 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT DISTINCT + + NULLIF ( 73, + 40 - COUNT( DISTINCT - - ( - + 78 ) ) + + 43 * - - COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-5723
SELECT DISTINCT + + NULLIF ( 73, + 40 - COUNT ( DISTINCT - - ( - + 78 ) ) + + 43 * - - COUNT ( * ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ( - - COALESCE ( - MIN( + - 37 ), - + NULLIF ( - COUNT( * ), 45 / + - COUNT( - 3 ) / 41 + + 85 + + AVG ( 15 ) - 26 + + ( - 54 ) + + + COUNT( * ) * - + 62 * + - 22 ) ) )
----
37

skipif mysql # not compatible
query I rowsort label-5724
SELECT ( - - COALESCE ( - MIN ( + - 37 ), - + NULLIF ( - COUNT ( * ), 45 / + - COUNT ( - 3 ) / 41 + + 85 + + AVG ( 15 ) - 26 + + ( - 54 ) + + + COUNT ( * ) * - + 62 * + - 22 ) ) )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5725
SELECT ALL - 43 DIV - MAX( 63 )
----
0

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL - 43 / - MAX ( 63 )
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5727
SELECT + 13 * + + 68 DIV - 17 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-5727
SELECT + 13 * + + 68 / - 17 AS col0
----
-52

query I rowsort
SELECT - 83 * 90
----
-7470

query I rowsort
SELECT + 89 * 79 AS col1
----
7031

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL + 24 * - ( + COUNT( * ) ) + + 71 * - ( 91 ) col2
----
-6485

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL + 24 * - ( + COUNT ( * ) ) + + 71 * - ( 91 ) col2
----
-6485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5731
SELECT COALESCE ( - MAX( ALL + 63 ), + CASE + ( - 66 ) WHEN - 65 THEN NULL WHEN + 4 THEN - CAST( NULL AS SIGNED ) END )
----
-63

skipif mysql # not compatible
query I rowsort label-5731
SELECT COALESCE ( - MAX ( ALL + 63 ), + CASE + ( - 66 ) WHEN - 65 THEN NULL WHEN + 4 THEN - CAST ( NULL AS INTEGER ) END )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT COALESCE ( + COUNT( * ), NULLIF ( - 72, + 75 ) + - + 30 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5732
SELECT COALESCE ( + COUNT ( * ), NULLIF ( - 72, + 75 ) + - + 30 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5733
SELECT DISTINCT + 75 col0, MIN( + + 5 )
----
75
5

skipif mysql # not compatible
query II rowsort label-5733
SELECT DISTINCT + 75 col0, MIN ( + + 5 )
----
75
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT DISTINCT 86 * 8 + MAX( 19 ) * - 36 * - ( + ( + MIN( + 53 ) ) ) + 54
----
36994

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT 86 * 8 + MAX ( 19 ) * - 36 * - ( + ( + MIN ( + 53 ) ) ) + 54
----
36994

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5735
SELECT ALL - 97 * CAST( NULL AS SIGNED ) + - 50 AS col2, 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-5735
SELECT ALL - 97 * CAST ( NULL AS INTEGER ) + - 50 AS col2, 41
----
NULL
41

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5737
SELECT - 17 + - CAST( NULL AS SIGNED ) + 50 + + 47 * + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5737
SELECT - 17 + - CAST ( NULL AS INTEGER ) + 50 + + 47 * + + 87
----
NULL

query I rowsort
SELECT + 23 * + 30
----
690

query I rowsort
SELECT - 93 + - - 85 * + COALESCE ( - 10, + 70 * - 45 ) col1
----
-943

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5740
SELECT - NULLIF ( - - 67, - + CAST( - COUNT( * ) AS DECIMAL ) ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-5740
SELECT - NULLIF ( - - 67, - + CAST ( - COUNT ( * ) AS REAL ) ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT MAX( DISTINCT 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-5741
SELECT MAX ( DISTINCT 85 ) AS col2
----
85

query I rowsort
SELECT + 87 + - NULLIF ( - 5, + 92 )
----
92

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

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL - MAX ( - 78 )
----
78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5745
SELECT ALL - CASE - 73 WHEN - + 25 THEN - - CAST( NULL AS SIGNED ) * + 42 * - 48 + - + 13 END - + 15 + - - 21 * + + NULLIF ( COUNT( * ), - - 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL - CASE - 73 WHEN - + 25 THEN - - CAST ( NULL AS INTEGER ) * + 42 * - 48 + - + 13 END - + 15 + - - 21 * + + NULLIF ( COUNT ( * ), - - 67 ) AS col1
----
NULL

query I rowsort
SELECT 68 * 42 * - - 99 AS col0
----
282744

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT ALL MIN( DISTINCT + - 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL MIN ( DISTINCT + - 20 ) AS col2
----
-20

query II rowsort
SELECT - 0, - 34 * COALESCE ( 37, 65, + - 74 ) AS col2
----
0
-1258

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT 60 + - COUNT( * ) - - 57 col1
----
116

skipif mysql # not compatible
query I rowsort label-5750
SELECT 60 + - COUNT ( * ) - - 57 col1
----
116

query I rowsort
SELECT 47 * - - 44
----
2068

query I rowsort
SELECT 91 * + 20 AS col2
----
1820

query II rowsort
SELECT - 89 * ( + 94 ) AS col1, 62 * - 17 * - + 43 AS col2
----
-8366
45322

query II rowsort
SELECT ALL 22 AS col0, 24 AS col0
----
22
24

query II rowsort
SELECT 86 + + ( - 51 ) AS col2, + 17 * - + 31 * + - 89 AS col0
----
35
46903

query I rowsort
SELECT 16 * 26
----
416

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

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

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

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL - COUNT ( DISTINCT + + 67 ) col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT - - MAX ( - 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT ALL + MIN( + 79 ) + 84
----
163

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL + MIN ( + 79 ) + 84
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5761
SELECT ALL - + 21, CAST( + COALESCE ( - 20, + 8 * - 21, + 96 * + 72 ) AS SIGNED ) * - + 68 AS col1
----
-21
1360

skipif mysql # not compatible
query II rowsort label-5761
SELECT ALL - + 21, CAST ( + COALESCE ( - 20, + 8 * - 21, + 96 * + 72 ) AS INTEGER ) * - + 68 AS col1
----
-21
1360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5762
SELECT - + COUNT( * ) DIV ( + 56 ) + - 6 + ( 25 ) + + 47 * + 1 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5762
SELECT - + COUNT ( * ) / ( + 56 ) + - 6 + ( 25 ) + + 47 * + 1 AS col0
----
66

query I rowsort
SELECT DISTINCT - 57 + - ( 95 ) AS col0
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT 17 + 88 + - 74 * COUNT( * ) * 52 * + 8 * - ( COUNT( * ) ) + - 88 AS col0
----
30801

skipif mysql # not compatible
query I rowsort label-5764
SELECT 17 + 88 + - 74 * COUNT ( * ) * 52 * + 8 * - ( COUNT ( * ) ) + - 88 AS col0
----
30801

onlyif mysql # DIV for integer division: 
query I rowsort label-5765
SELECT 23 DIV + 2 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5765
SELECT 23 / + 2 AS col0
----
11

query I rowsort
SELECT DISTINCT 24 + - 90 AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-5767
SELECT 7 * 96 * + 78 * 33 col2, + 23 + - NULLIF ( - 0, - 9 * + NULLIF ( 39, - 27 * + 50 + - CAST( - 41 AS SIGNED ) DIV CAST( NULL AS DECIMAL ) * - COUNT( * ) ) + COUNT( * ) + + - 55 + 78 * - + 50 ) + + NULLIF ( 97, - + ( - MIN( + ( + + ( - 22 ) ) ) ) * MIN( + + 55 ) ) + + 80 DIV - 43
----
1729728
119

skipif mysql # not compatible
query II rowsort label-5767
SELECT 7 * 96 * + 78 * 33 col2, + 23 + - NULLIF ( - 0, - 9 * + NULLIF ( 39, - 27 * + 50 + - CAST ( - 41 AS INTEGER ) / CAST ( NULL AS REAL ) * - COUNT ( * ) ) + COUNT ( * ) + + - 55 + 78 * - + 50 ) + + NULLIF ( 97, - + ( - MIN ( + ( + + ( - 22 ) ) ) ) * MIN ( + + 55 ) ) + + 80 / - 43
----
1729728
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT - COUNT( + + 19 ) * - - 86 + - 89 col0
----
-175

skipif mysql # not compatible
query I rowsort label-5768
SELECT - COUNT ( + + 19 ) * - - 86 + - 89 col0
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT ALL + COUNT( * ) + - - 91 + - 53 * - 28 AS col1
----
1576

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL + COUNT ( * ) + - - 91 + - 53 * - 28 AS col1
----
1576

query II rowsort
SELECT ALL - 85 + - + 41 col0, 7
----
-126
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5771
SELECT DISTINCT + CAST( + 7 AS SIGNED ) DIV + 64 + - + 64 + + ( MIN( + 68 ) ) + - - 20 + - 19 * + 34 AS col2
----
-622

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT + CAST ( + 7 AS INTEGER ) / + 64 + - + 64 + + ( MIN ( + 68 ) ) + - - 20 + - 19 * + 34 AS col2
----
-622

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5773
SELECT 29 + - 35 - 7 + + 53 - + - 69 + - CASE CAST( - 16 AS SIGNED ) WHEN + + 28 * - 13 - AVG ( DISTINCT - CAST( 56 AS SIGNED ) ) THEN NULL WHEN + + 86 * + ( + 58 ) * - + 31 + 40 - - 17 THEN + ( 10 ) + 87 + + COUNT( * ) * CASE + MAX( + - 6 ) WHEN + COUNT( * ) THEN NULL WHEN COALESCE ( - ( 52 ), + - CAST( NULL AS SIGNED ) ) THEN NULL ELSE + + 11 END END - + 27 * + 69 * 50 * + - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5773
SELECT 29 + - 35 - 7 + + 53 - + - 69 + - CASE CAST ( - 16 AS INTEGER ) WHEN + + 28 * - 13 - AVG ( DISTINCT - CAST ( 56 AS INTEGER ) ) THEN NULL WHEN + + 86 * + ( + 58 ) * - + 31 + 40 - - 17 THEN + ( 10 ) + 87 + + COUNT ( * ) * CASE + MAX ( + - 6 ) WHEN + COUNT ( * ) THEN NULL WHEN COALESCE ( - ( 52 ), + - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + + 11 END END - + 27 * + 69 * 50 * + - 50 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ALL - CASE - + 26 WHEN + 54 * + 61 * - 30 THEN - 53 WHEN + 83 - + - 66 * COALESCE ( + + MIN( DISTINCT - 11 ), - 33 + - - 95 + - 28 * + 56 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL - CASE - + 26 WHEN + 54 * + 61 * - 30 THEN - 53 WHEN + 83 - + - 66 * COALESCE ( + + MIN ( DISTINCT - 11 ), - 33 + - - 95 + - 28 * + 56 ) THEN NULL END
----
NULL

query I rowsort
SELECT 39 + - 24 AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5776
SELECT DISTINCT + SUM( ALL - 0 ) DIV + + ( - 96 ) * - 64 + + ( + 78 ) + - COUNT( * ) + 74 * - 41 * + 97
----
-294221

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT + SUM ( ALL - 0 ) / + + ( - 96 ) * - 64 + + ( + 78 ) + - COUNT ( * ) + 74 * - 41 * + 97
----
-294221

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT 22 * - + COUNT( * ) * - NULLIF ( 40, + 45 ) * + + 44 AS col2
----
38720

skipif mysql # not compatible
query I rowsort label-5777
SELECT 22 * - + COUNT ( * ) * - NULLIF ( 40, + 45 ) * + + 44 AS col2
----
38720

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT + 31 * + 4 + + 19 + - 76 + 84 + 51 + COUNT( * ) * + COUNT( * ) col0
----
203

skipif mysql # not compatible
query I rowsort label-5778
SELECT + 31 * + 4 + + 19 + - 76 + 84 + 51 + COUNT ( * ) * + COUNT ( * ) col0
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT DISTINCT - COUNT( * ) - + - 54 col0
----
53

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT - COUNT ( * ) - + - 54 col0
----
53

query I rowsort
SELECT DISTINCT - + 42 * + 2 * - 22 AS col2
----
1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5781
SELECT ALL - 10 * - CASE 79 WHEN - + CAST( + - COUNT( * ) AS SIGNED ) * AVG ( DISTINCT + + NULLIF ( + 8, + + 68 ) ) THEN MIN( - - 48 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL - 10 * - CASE 79 WHEN - + CAST ( + - COUNT ( * ) AS INTEGER ) * AVG ( DISTINCT + + NULLIF ( + 8, + + 68 ) ) THEN MIN ( - - 48 ) END AS col1
----
NULL

query I rowsort
SELECT - 64 * - + 90
----
5760

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

skipif mysql # not compatible
query I rowsort label-5783
SELECT 62 / + COUNT ( * ) col1
----
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT + 86 - + - MAX( DISTINCT ( 64 ) ) AS col0
----
150

skipif mysql # not compatible
query I rowsort label-5785
SELECT + 86 - + - MAX ( DISTINCT ( 64 ) ) AS col0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5786
SELECT ALL + 95 * - CASE ( - 13 ) WHEN - 93 * - - COUNT( * ) + COUNT( * ) * - 60 THEN ( + + COUNT( DISTINCT - 86 ) ) / + CAST( NULL AS SIGNED ) + + NULLIF ( - 84, - - 74 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL + 95 * - CASE ( - 13 ) WHEN - 93 * - - COUNT ( * ) + COUNT ( * ) * - 60 THEN ( + + COUNT ( DISTINCT - 86 ) ) / + CAST ( NULL AS INTEGER ) + + NULLIF ( - 84, - - 74 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 84 + CASE - COALESCE ( - - 37, 92 - - - ( + 64 ) + - 35 ) WHEN 81 THEN - 25 + - 53 END
----
NULL

query I rowsort
SELECT DISTINCT 62 + - ( - + 9 ) AS col0
----
71

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

skipif mysql # not compatible
query II rowsort label-5789
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0, 4 * + 4 AS col1
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL 6 * COUNT( * ) * - 41 AS col0
----
-246

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL 6 * COUNT ( * ) * - 41 AS col0
----
-246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5791
SELECT 64 / - CASE - 1 WHEN + - COUNT( * ) + + 24 + - 65 * CAST( 52 AS SIGNED ) + + 17 + + 44 / + + 54 THEN - COUNT( * ) ELSE NULL END AS col2, 87 * - 3 + - - 39 + - 51
----
NULL
-273

skipif mysql # not compatible
query II rowsort label-5791
SELECT 64 / - CASE - 1 WHEN + - COUNT ( * ) + + 24 + - 65 * CAST ( 52 AS INTEGER ) + + 17 + + 44 / + + 54 THEN - COUNT ( * ) ELSE NULL END AS col2, 87 * - 3 + - - 39 + - 51
----
NULL
-273

query I rowsort
SELECT DISTINCT - 58 * + + ( - 87 ) * - 38 + 60 + + 3
----
-191685

query II rowsort
SELECT ALL - 78, 95 AS col0
----
-78
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5794
SELECT ALL 9 * - - CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) / 31 + ( COUNT( * ) ) / COUNT( * ) * + ( + - 68 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL 9 * - - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) / 31 + ( COUNT ( * ) ) / COUNT ( * ) * + ( + - 68 ) col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5796
SELECT ( + - NULLIF ( - CAST( NULL AS SIGNED ), + + MIN( - 23 ) ) ) * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5796
SELECT ( + - NULLIF ( - CAST ( NULL AS INTEGER ), + + MIN ( - 23 ) ) ) * 22
----
NULL

query I rowsort
SELECT 42 * + + 89
----
3738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5798
SELECT ALL ( + 65 ) - - ( + + COALESCE ( + 17, CAST( NULL AS SIGNED ) * COUNT( * ) * + + 27, + + 73 ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL ( + 65 ) - - ( + + COALESCE ( + 17, CAST ( NULL AS INTEGER ) * COUNT ( * ) * + + 27, + + 73 ) ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5799
SELECT + 23 col1, 62 / + CASE 44 WHEN - 97 + + COUNT( * ) THEN NULL WHEN - 69 * - COALESCE ( - COUNT( * ), + COUNT( DISTINCT - 35 ) ) THEN - 4 WHEN - 59 + 27 * - - ( ( + MAX( - 54 ) ) ) THEN 66 * + 60 - + 81 END AS col2
----
23
NULL

skipif mysql # not compatible
query II rowsort label-5799
SELECT + 23 col1, 62 / + CASE 44 WHEN - 97 + + COUNT ( * ) THEN NULL WHEN - 69 * - COALESCE ( - COUNT ( * ), + COUNT ( DISTINCT - 35 ) ) THEN - 4 WHEN - 59 + 27 * - - ( ( + MAX ( - 54 ) ) ) THEN 66 * + 60 - + 81 END AS col2
----
23
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5801
SELECT ALL ( MAX( ALL 98 ) ) - - + 43 DIV 50 * - 45 + + 27 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL ( MAX ( ALL 98 ) ) - - + 43 / 50 * - 45 + + 27 AS col1
----
125

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

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

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT CAST ( NULL AS REAL ) * 41 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5804
SELECT - NULLIF ( - - 14, - 54 ) * - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT - NULLIF ( - - 14, - 54 ) * - + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 6 col2, 32
----
6
32

query I rowsort
SELECT + 35 + - 49 * + ( 88 )
----
-4277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5807
SELECT 70 * - COALESCE ( - + COALESCE ( 41, COUNT( * ) - - 87 ), + 21 DIV - - 24 + + - 98 + 56 * + - COUNT( * ) * - CAST( ( - 68 ) AS SIGNED ) * + 22 * 39 + + MAX( DISTINCT 71 ) ) - + 35
----
2835

skipif mysql # not compatible
query I rowsort label-5807
SELECT 70 * - COALESCE ( - + COALESCE ( 41, COUNT ( * ) - - 87 ), + 21 / - - 24 + + - 98 + 56 * + - COUNT ( * ) * - CAST ( ( - 68 ) AS INTEGER ) * + 22 * 39 + + MAX ( DISTINCT 71 ) ) - + 35
----
2835

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT - 48 + - - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-5808
SELECT - 48 + - - COUNT ( * )
----
-47

query II rowsort
SELECT ALL + 64, - 18 col2
----
64
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT DISTINCT + 88 + - 78 * - 40 + - - COUNT( * ) AS col1
----
3209

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT + 88 + - 78 * - 40 + - - COUNT ( * ) AS col1
----
3209

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5811
SELECT ALL - 66 AS col1, 72 * CAST( - 78 AS SIGNED )
----
-66
-5616

skipif mysql # not compatible
query II rowsort label-5811
SELECT ALL - 66 AS col1, 72 * CAST ( - 78 AS INTEGER )
----
-66
-5616

query II rowsort
SELECT - + 54 AS col0, + 79 + + 78 AS col0
----
-54
157

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT - COUNT( 21 ) * - - 46 + + 96
----
50

skipif mysql # not compatible
query I rowsort label-5814
SELECT - COUNT ( 21 ) * - - 46 + + 96
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5815
SELECT + - 77 DIV - - 28 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5815
SELECT + - 77 / - - 28 AS col2
----
-2

query I rowsort
SELECT DISTINCT + 72 + - 8 * - 41 * - 68
----
-22232

query I rowsort
SELECT ALL - + 10 + + - 96
----
-106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT - - 33 * NULLIF ( 41, SUM( - 38 ) ) + + 84
----
1437

skipif mysql # not compatible
query I rowsort label-5819
SELECT - - 33 * NULLIF ( 41, SUM ( - 38 ) ) + + 84
----
1437

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

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

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT + COUNT ( * ) + 46 AS col2
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5822
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 7 * + COALESCE ( - 3, - 50 ) * 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT CAST ( NULL AS REAL ) * - 7 * + COALESCE ( - 3, - 50 ) * 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5823
SELECT DISTINCT + 26 DIV 94 * + 35 + 83 DIV - SUM( - NULLIF ( - - 7, + 2 + - 18 * 39 ) )
----
11

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT + 26 / 94 * + 35 + 83 / - SUM ( - NULLIF ( - - 7, + 2 + - 18 * 39 ) )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5824
SELECT DISTINCT + CASE WHEN COUNT( * ) IS NOT NULL THEN - + NULLIF ( - CAST( NULL AS SIGNED ), - MAX( + - 68 ) + + 77 ) + - AVG ( 24 ) ELSE CAST( 22 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT + CASE WHEN COUNT ( * ) IS NOT NULL THEN - + NULLIF ( - CAST ( NULL AS INTEGER ), - MAX ( + - 68 ) + + 77 ) + - AVG ( 24 ) ELSE CAST ( 22 AS INTEGER ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5825
SELECT ALL - 12 DIV 27 AS col0, 50 AS col1
----
0
50

skipif mysql # not compatible
query II rowsort label-5825
SELECT ALL - 12 / 27 AS col0, 50 AS col1
----
0
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT MIN( DISTINCT + + 39 ) * - NULLIF ( + 98, + + COUNT( * ) ) * + 37 + + 70 * - + 61
----
-145684

skipif mysql # not compatible
query I rowsort label-5826
SELECT MIN ( DISTINCT + + 39 ) * - NULLIF ( + 98, + + COUNT ( * ) ) * + 37 + + 70 * - + 61
----
-145684

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5827
SELECT + 54 AS col0, - COUNT( * ) * + 12 DIV - 39 AS col2
----
54
0

skipif mysql # not compatible
query II rowsort label-5827
SELECT + 54 AS col0, - COUNT ( * ) * + 12 / - 39 AS col2
----
54
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT - 61 / - CAST( NULL AS SIGNED ) + 66 * - 60 * + 93 * - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT - 61 / - CAST ( NULL AS INTEGER ) + 66 * - 60 * + 93 * - - 75
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5829
SELECT - 73 * ( + 30 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT DISTINCT - COUNT( * ) * 63 * - COUNT( * ) - 52 - ( + COUNT( * ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT - COUNT ( * ) * 63 * - COUNT ( * ) - 52 - ( + COUNT ( * ) ) AS col0
----
10

query I rowsort
SELECT - 94 * 9
----
-846

query I rowsort
SELECT ( - + COALESCE ( - + NULLIF ( - ( 54 ), 3 ), - 66 + - - 36 ) ) AS col0
----
-54

query I rowsort
SELECT + NULLIF ( 99, + - 10 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT 13 * NULLIF ( - 23, 25 + - + MIN( ALL - 17 ) + - - 41 ) + 47 - + 74 AS col2
----
-326

skipif mysql # not compatible
query I rowsort label-5834
SELECT 13 * NULLIF ( - 23, 25 + - + MIN ( ALL - 17 ) + - - 41 ) + 47 - + 74 AS col2
----
-326

query I rowsort
SELECT ALL ( - 78 ) * 12 AS col0
----
-936

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT - 23 DIV - - 57 + + + 88 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5836
SELECT - 23 / - - 57 + + + 88 AS col2
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5837
SELECT ALL + COUNT( * ) AS col2, - 42 * - 78
----
1
3276

skipif mysql # not compatible
query II rowsort label-5837
SELECT ALL + COUNT ( * ) AS col2, - 42 * - 78
----
1
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT + NULLIF ( + COUNT( * ), - 54 * + 66 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5838
SELECT + NULLIF ( + COUNT ( * ), - 54 * + 66 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT + ( - - 45 ) * ( - 19 ) * + COUNT( 33 )
----
-855

skipif mysql # not compatible
query I rowsort label-5839
SELECT + ( - - 45 ) * ( - 19 ) * + COUNT ( 33 )
----
-855

query II rowsort
SELECT ALL + 2 AS col2, + 98 + - 72 * - + 84 + - 57 AS col1
----
2
6089

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5842
SELECT ( - COUNT( DISTINCT + CAST( + + 47 AS DECIMAL ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5842
SELECT ( - COUNT ( DISTINCT + CAST ( + + 47 AS REAL ) ) ) AS col1
----
-1

query I rowsort
SELECT - + 50 + + 63 * + 35
----
2155

query I rowsort
SELECT DISTINCT + 0 * - + 18
----
0

query I rowsort
SELECT ALL 65 + - 43 + + 9
----
31

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5847
SELECT + - 29 / - - 38 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5847
SELECT + - 29 / - - 38 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - + 23 * - 49
----
1127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5849
SELECT - CAST( - 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-5849
SELECT - CAST ( - 49 AS INTEGER )
----
49

query II rowsort
SELECT 8 AS col0, 6 AS col0
----
8
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT - - 48 * - COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5851
SELECT - - 48 * - COUNT ( * ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL + 43 + - COUNT( * ) - - 60 * + - 86 + - + 78 + + 25 + 9 * - + 89 AS col0
----
-5972

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL + 43 + - COUNT ( * ) - - 60 * + - 86 + - + 78 + + 25 + 9 * - + 89 AS col0
----
-5972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5853
SELECT DISTINCT - 84 DIV COALESCE ( 20, 44 + 65 + 26 * COALESCE ( ( 79 ), - + COUNT( * ) + + + 8, - 30 * ( - COUNT( * ) ) + - 73 + 6 * - 92 ) - + 49 * + 60 DIV - 11 * + + 42 * - 46 * + + 50 DIV + - 71 )
----
-4

skipif mysql # not compatible
query I rowsort label-5853
SELECT DISTINCT - 84 / COALESCE ( 20, 44 + 65 + 26 * COALESCE ( ( 79 ), - + COUNT ( * ) + + + 8, - 30 * ( - COUNT ( * ) ) + - 73 + 6 * - 92 ) - + 49 * + 60 / - 11 * + + 42 * - 46 * + + 50 / + - 71 )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5854
SELECT DISTINCT + COUNT( * ) + 82 - + - 49 * NULLIF ( - - ( + 62 ), + NULLIF ( - - 6, - - CAST( NULL AS SIGNED ) - + + CAST( + 76 AS SIGNED ) ) + - 70 ) * COUNT( * ) AS col2
----
3121

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT + COUNT ( * ) + 82 - + - 49 * NULLIF ( - - ( + 62 ), + NULLIF ( - - 6, - - CAST ( NULL AS INTEGER ) - + + CAST ( + 76 AS INTEGER ) ) + - 70 ) * COUNT ( * ) AS col2
----
3121

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

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

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

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

query I rowsort
SELECT ALL + 82 + - 43 * 31 AS col1
----
-1251

query I rowsort
SELECT DISTINCT + COALESCE ( + ( + 91 ), - 5 ) - + 19 AS col1
----
72

query I rowsort
SELECT DISTINCT + NULLIF ( 52, + 23 + + 5 ) * 77
----
4004

query I rowsort
SELECT ALL + ( 74 ) * - 17 col0
----
-1258

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT + 0 + CASE + - ( - 57 ) WHEN - - 99 THEN NULL WHEN + 15 THEN 98 ELSE + COALESCE ( + - 94, + - COUNT( * ), + 21 + + 60 + + 70 * - + 59 ) - 44 END + - 94 AS col1
----
-232

skipif mysql # not compatible
query I rowsort label-5863
SELECT + 0 + CASE + - ( - 57 ) WHEN - - 99 THEN NULL WHEN + 15 THEN 98 ELSE + COALESCE ( + - 94, + - COUNT ( * ), + 21 + + 60 + + 70 * - + 59 ) - 44 END + - 94 AS col1
----
-232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5864
SELECT + COALESCE ( + - MIN( 77 ), - + ( + - CASE + 57 WHEN + + 24 + + 53 + - COUNT( * ) / + 0 * - 64 * + + COUNT( * ) THEN NULL WHEN ( + 24 ) THEN 0 END ), - + CAST( + 36 AS SIGNED ) - - 64 + + 91 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-5864
SELECT + COALESCE ( + - MIN ( 77 ), - + ( + - CASE + 57 WHEN + + 24 + + 53 + - COUNT ( * ) / + 0 * - 64 * + + COUNT ( * ) THEN NULL WHEN ( + 24 ) THEN 0 END ), - + CAST ( + 36 AS INTEGER ) - - 64 + + 91 ) AS col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5865
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) / 95 - + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) / 95 - + - 31
----
NULL

query I rowsort
SELECT + 77 * + 52 AS col0
----
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT DISTINCT - ( - MAX( + ( - + 16 ) ) ) * + 12 * + 68
----
-13056

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT - ( - MAX ( + ( - + 16 ) ) ) * + 12 * + 68
----
-13056

onlyif mysql # DIV for integer division: 
query I rowsort label-5868
SELECT DISTINCT 17 DIV - 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT 17 / - 24 AS col2
----
0

query I rowsort
SELECT 27 * 92 + + 24
----
2508

onlyif mysql # aggregate syntax: 
query II rowsort label-5870
SELECT DISTINCT - CASE + 99 WHEN + + 3 * 99 + - 29 THEN NULL WHEN - 28 + 57 + - + NULLIF ( + 57, 78 ) - - 26 THEN 83 END AS col2, MIN( + 90 )
----
NULL
90

skipif mysql # not compatible
query II rowsort label-5870
SELECT DISTINCT - CASE + 99 WHEN + + 3 * 99 + - 29 THEN NULL WHEN - 28 + 57 + - + NULLIF ( + 57, 78 ) - - 26 THEN 83 END AS col2, MIN ( + 90 )
----
NULL
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5871
SELECT ALL 52 * + 20 DIV - COUNT( * ) AS col1, 97
----
-1040
97

skipif mysql # not compatible
query II rowsort label-5871
SELECT ALL 52 * + 20 / - COUNT ( * ) AS col1, 97
----
-1040
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5873
SELECT 67 DIV + 5
----
13

skipif mysql # not compatible
query I rowsort label-5873
SELECT 67 / + 5
----
13

query I rowsort
SELECT 38 * ( + 0 ) * + 74
----
0

query I rowsort
SELECT ALL 16 * + ( + 98 ) * + + 89 AS col1
----
139552

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT ALL 83 + + 79 + - 11 + COUNT( * ) + + 95 - 68 * + 6 * - 63 AS col1
----
25951

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL 83 + + 79 + - 11 + COUNT ( * ) + + 95 - 68 * + 6 * - 63 AS col1
----
25951

query II rowsort
SELECT 60 * + + 15, + 19 - + 40 AS col2
----
900
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT DISTINCT + 71 + + - 48 * ( - COUNT( * ) )
----
119

skipif mysql # not compatible
query I rowsort label-5880
SELECT DISTINCT + 71 + + - 48 * ( - COUNT ( * ) )
----
119

query I rowsort
SELECT ALL + 7 + 93 col2
----
100

query I rowsort
SELECT ALL - NULLIF ( NULLIF ( + 37, - 19 ), - 47 ) + 58 AS col1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5883
SELECT COUNT( * ) + + 31 AS col1, + 15 AS col1
----
32
15

skipif mysql # not compatible
query II rowsort label-5883
SELECT COUNT ( * ) + + 31 AS col1, + 15 AS col1
----
32
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT + CASE + 73 WHEN - 60 + COUNT( * ) / 96 THEN NULL WHEN 56 THEN NULL ELSE + + 62 END - - 24 + 50
----
136

skipif mysql # not compatible
query I rowsort label-5884
SELECT + CASE + 73 WHEN - 60 + COUNT ( * ) / 96 THEN NULL WHEN 56 THEN NULL ELSE + + 62 END - - 24 + 50
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5885
SELECT + CAST( NULL AS SIGNED ) + + 64, + ( + - 7 ) * + - CASE 90 WHEN + 54 + - 88 - + 28 * - - 96 * 20 * - 32 THEN 2 WHEN + 88 * - 66 THEN NULL ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5885
SELECT + CAST ( NULL AS INTEGER ) + + 64, + ( + - 7 ) * + - CASE 90 WHEN + 54 + - 88 - + 28 * - - 96 * 20 * - 32 THEN 2 WHEN + 88 * - 66 THEN NULL ELSE NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT - 26 * - - 69 - COUNT( * )
----
-1795

skipif mysql # not compatible
query I rowsort label-5886
SELECT - 26 * - - 69 - COUNT ( * )
----
-1795

query I rowsort
SELECT ALL 72 + + 28
----
100

query I rowsort
SELECT + 46 + 85 - 77 * - 84
----
6599

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT - COALESCE ( + + COALESCE ( 6, + + 54 * + + 41 + + COALESCE ( + 40, + 87 * + - 93, NULLIF ( + + 92, - - 81 + - + MIN( DISTINCT + 22 ) ) ) ), - 6 * - + NULLIF ( - ( 97 ), - 86 ) ) * 62 AS col2
----
-372

skipif mysql # not compatible
query I rowsort label-5889
SELECT - COALESCE ( + + COALESCE ( 6, + + 54 * + + 41 + + COALESCE ( + 40, + 87 * + - 93, NULLIF ( + + 92, - - 81 + - + MIN ( DISTINCT + 22 ) ) ) ), - 6 * - + NULLIF ( - ( 97 ), - 86 ) ) * 62 AS col2
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT COALESCE ( + - MIN( DISTINCT + 79 ), + 96 - + 43 + 93 * + + 20 * COUNT( * ), 47 )
----
-79

skipif mysql # not compatible
query I rowsort label-5890
SELECT COALESCE ( + - MIN ( DISTINCT + 79 ), + 96 - + 43 + 93 * + + 20 * COUNT ( * ), 47 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5891
SELECT DISTINCT - CASE - 76 WHEN + - CAST( + 35 AS SIGNED ) + 18 / + NULLIF ( + 19, + - COUNT( * ) ) - - ( - 42 ) * + 59 THEN + 97 - + 5 END * - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT - CASE - 76 WHEN + - CAST ( + 35 AS INTEGER ) + 18 / + NULLIF ( + 19, + - COUNT ( * ) ) - - ( - 42 ) * + 59 THEN + 97 - + 5 END * - 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5892
SELECT ALL 99 + COUNT( * ) * - - 53, - 16 AS col0
----
152
-16

skipif mysql # not compatible
query II rowsort label-5892
SELECT ALL 99 + COUNT ( * ) * - - 53, - 16 AS col0
----
152
-16

query I rowsort
SELECT 9 + 78 * + 92 AS col0
----
7185

query II rowsort
SELECT 86 * - 61 AS col2, 20
----
-5246
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5895
SELECT ALL + + 43 - 35 + - ( 76 ) DIV + 51
----
7

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL + + 43 - 35 + - ( 76 ) / + 51
----
7

query II rowsort
SELECT ALL 95 * + + 60 * 78 AS col1, 64 + + 25
----
444600
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5897
SELECT 32 DIV 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5897
SELECT 32 / 66 AS col0
----
0

query II rowsort
SELECT 81 AS col2, + 40 + 68 + - - 50
----
81
158

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT 42 + - CASE ( - COUNT( * ) ) WHEN - + 99 - - COUNT( - 77 ) THEN 52 END * + 73 - + 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT 42 + - CASE ( - COUNT ( * ) ) WHEN - + 99 - - COUNT ( - 77 ) THEN 52 END * + 73 - + 54 col1
----
NULL

query II rowsort
SELECT ALL 98 AS col0, 98 * 60
----
98
5880

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5902
SELECT ALL 6 AS col0, + 18 * - COUNT( * ) + + 37
----
6
19

skipif mysql # not compatible
query II rowsort label-5902
SELECT ALL 6 AS col0, + 18 * - COUNT ( * ) + + 37
----
6
19

query I rowsort
SELECT 38 + - - 70
----
108

query I rowsort
SELECT DISTINCT - 77 * - 62 AS col2
----
4774

query II rowsort
SELECT 16 AS col2, + 42
----
16
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT ALL - MIN( DISTINCT - + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL - MIN ( DISTINCT - + 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL - 59 * - SUM( + 71 ) * - + ( + 11 )
----
-46079

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL - 59 * - SUM ( + 71 ) * - + ( + 11 )
----
-46079

query I rowsort
SELECT ALL - 86 * - - 75
----
-6450

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT 50 * - 32 + + 39 * + + COUNT( * ) + + COUNT( DISTINCT + - 86 ) AS col1
----
-1560

skipif mysql # not compatible
query I rowsort label-5909
SELECT 50 * - 32 + + 39 * + + COUNT ( * ) + + COUNT ( DISTINCT + - 86 ) AS col1
----
-1560

query II rowsort
SELECT + 74 col2, - 7
----
74
-7

query I rowsort
SELECT ALL - 60 * + 73 AS col0
----
-4380

query I rowsort
SELECT 47 * - + 19
----
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT 83 * + + COUNT( ALL 9 ) * + 45 AS col2
----
3735

skipif mysql # not compatible
query I rowsort label-5913
SELECT 83 * + + COUNT ( ALL 9 ) * + 45 AS col2
----
3735

query I rowsort
SELECT 54 + + 93 AS col2
----
147

query II rowsort
SELECT + 85 AS col0, - 8
----
85
-8

query I rowsort
SELECT ALL + 87 + + 26 AS col0
----
113

query II rowsort
SELECT ALL - - 98, 99 col2
----
98
99

query I rowsort
SELECT ALL - 11 + + + 30 AS col2
----
19

query I rowsort
SELECT 75 + - 84 AS col1
----
-9

query I rowsort
SELECT ALL + 42 + - 21 + 45 * 72
----
3261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5921
SELECT ALL + + 91 / + - CAST( NULL AS SIGNED ) / + ( + 59 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL + + 91 / + - CAST ( NULL AS INTEGER ) / + ( + 59 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5922
SELECT - 3 DIV + 11 + - 39 AS col1, - COUNT( * ) * + + 41 * + + 2 + + 14
----
-39
-68

skipif mysql # not compatible
query II rowsort label-5922
SELECT - 3 / + 11 + - 39 AS col1, - COUNT ( * ) * + + 41 * + + 2 + + 14
----
-39
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5923
SELECT - 99 * 10 DIV - 69 + + 15 DIV + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5923
SELECT - 99 * 10 / - 69 + + 15 / + COUNT ( * ) AS col0
----
29

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5925
SELECT DISTINCT + - 49 - + 22 DIV - 58 * - + 52
----
-49

skipif mysql # not compatible
query I rowsort label-5925
SELECT DISTINCT + - 49 - + 22 / - 58 * - + 52
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT ALL CASE - + 10 WHEN + COALESCE ( - + 8, + + 31 ) + - 4 / MAX( ALL + 49 ) + + + COALESCE ( 48, + 32 ) THEN - COUNT( + 57 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL CASE - + 10 WHEN + COALESCE ( - + 8, + + 31 ) + - 4 / MAX ( ALL + 49 ) + + + COALESCE ( 48, + 32 ) THEN - COUNT ( + 57 ) END col2
----
NULL

query II rowsort
SELECT - - 54 AS col0, - 22 AS col1
----
54
-22

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

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

query I rowsort
SELECT 3 - 33 AS col2
----
-30

query II rowsort
SELECT ALL 83 col2, + 19 * + + 30 col1
----
83
570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5931
SELECT 43 AS col2, - 60 * CASE 20 WHEN 10 * 8 THEN NULL WHEN ( - 85 ) / 86 / + 90 * - + 22 THEN + + ( + COUNT( * ) ) + - + 76 + - 51 - + - COUNT( * ) * + AVG ( ALL - - CAST( NULL AS SIGNED ) ) / 74 WHEN + COUNT( * ) THEN NULL END
----
43
NULL

skipif mysql # not compatible
query II rowsort label-5931
SELECT 43 AS col2, - 60 * CASE 20 WHEN 10 * 8 THEN NULL WHEN ( - 85 ) / 86 / + 90 * - + 22 THEN + + ( + COUNT ( * ) ) + - + 76 + - 51 - + - COUNT ( * ) * + AVG ( ALL - - CAST ( NULL AS INTEGER ) ) / 74 WHEN + COUNT ( * ) THEN NULL END
----
43
NULL

query I rowsort
SELECT 13 * + + 66 * ( - - 19 )
----
16302

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5933
SELECT DISTINCT COUNT( * ) * + + ( + ( + + COUNT( * ) ) ) DIV 4 - 37
----
-37

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT COUNT ( * ) * + + ( + ( + + COUNT ( * ) ) ) / 4 - 37
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5934
SELECT ALL COALESCE ( - 50, COUNT( * ) ) * - + 65 DIV + - COUNT( * ) col0
----
-3250

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL COALESCE ( - 50, COUNT ( * ) ) * - + 65 / + - COUNT ( * ) col0
----
-3250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5935
SELECT + 48 - 91 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5935
SELECT + 48 - 91 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5936
SELECT ALL COUNT( DISTINCT - - 60 ) DIV - 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL COUNT ( DISTINCT - - 60 ) / - 32 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT ALL 47 + 9 - + + COUNT( * ) + 47 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL 47 + 9 - + + COUNT ( * ) + 47 AS col0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5938
SELECT - CASE - - COUNT( * ) WHEN + + COALESCE ( - - COUNT( * ), - COUNT( * ) - + 80 * + + 38, + + 4 ) THEN NULL WHEN - ( + 65 ) - + CAST( NULL AS SIGNED ) THEN 84 + - - COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5938
SELECT - CASE - - COUNT ( * ) WHEN + + COALESCE ( - - COUNT ( * ), - COUNT ( * ) - + 80 * + + 38, + + 4 ) THEN NULL WHEN - ( + 65 ) - + CAST ( NULL AS INTEGER ) THEN 84 + - - COUNT ( * ) END col1
----
NULL

query I rowsort
SELECT + 29 * - 79 * + 99 AS col1
----
-226809

query I rowsort
SELECT + 88 + - 95 + + 15 AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5941
SELECT - 11 + + 93 + - + COUNT( * ) + - 24 DIV - 3 + CAST( NULL AS DECIMAL ) * + - 90 AS col0, 13 + - - 58 DIV + 41 + + COUNT( * ) DIV - - 71 * + + 56 + 73 * - 34 AS col2
----
NULL
-2468

skipif mysql # not compatible
query II rowsort label-5941
SELECT - 11 + + 93 + - + COUNT ( * ) + - 24 / - 3 + CAST ( NULL AS REAL ) * + - 90 AS col0, 13 + - - 58 / + 41 + + COUNT ( * ) / - - 71 * + + 56 + 73 * - 34 AS col2
----
NULL
-2468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5942
SELECT - CASE + - 50 WHEN + COUNT( * ) / 34 + 13 + - - 11 - + 24 THEN NULL WHEN + - 99 * COUNT( DISTINCT - 80 ) + + CAST( + 69 AS SIGNED ) THEN NULL ELSE - 47 + 99 - + ( - COUNT( * ) ) END - + - 82 + - 26
----
3

skipif mysql # not compatible
query I rowsort label-5942
SELECT - CASE + - 50 WHEN + COUNT ( * ) / 34 + 13 + - - 11 - + 24 THEN NULL WHEN + - 99 * COUNT ( DISTINCT - 80 ) + + CAST ( + 69 AS INTEGER ) THEN NULL ELSE - 47 + 99 - + ( - COUNT ( * ) ) END - + - 82 + - 26
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT - CASE + 57 WHEN 84 THEN + + MIN( ALL + ( 46 ) ) ELSE - 13 END
----
13

skipif mysql # not compatible
query I rowsort label-5943
SELECT - CASE + 57 WHEN 84 THEN + + MIN ( ALL + ( 46 ) ) ELSE - 13 END
----
13

query I rowsort
SELECT ALL 73 * 53 + + - 72
----
3797

query I rowsort
SELECT + COALESCE ( 51, + 93 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT DISTINCT + 97 * + + 86 + CASE 70 WHEN 1 THEN + - 19 ELSE ( - + 6 ) END + - COUNT( * ) * - CASE WHEN NULL <= - 38 THEN 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT + 97 * + + 86 + CASE 70 WHEN 1 THEN + - 19 ELSE ( - + 6 ) END + - COUNT ( * ) * - CASE WHEN NULL <= - 38 THEN 45 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5947
SELECT ALL 40 DIV + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL 40 / + 73 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5948
SELECT DISTINCT COALESCE ( - MIN( 59 ), - 10 ) * - - 6 - + 57 + + 15 * - - SUM( 57 ) + + 27 + - CAST( - 0 AS SIGNED ) + 92 * + - 16
----
-1001

skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT COALESCE ( - MIN ( 59 ), - 10 ) * - - 6 - + 57 + + 15 * - - SUM ( 57 ) + + 27 + - CAST ( - 0 AS INTEGER ) + 92 * + - 16
----
-1001

query I rowsort
SELECT ALL - 10 * + - 35 + + 97 AS col2
----
447

query I rowsort
SELECT ALL + + 64 * + - 1 + - 11
----
-75

query I rowsort
SELECT ALL + - 60 * - 45 * + 92 - - 91 AS col2
----
248491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5952
SELECT - 43 * - + MAX( CAST( COALESCE ( + 2, - 68 + - 36 ) AS SIGNED ) ) - + 26
----
60

skipif mysql # not compatible
query I rowsort label-5952
SELECT - 43 * - + MAX ( CAST ( COALESCE ( + 2, - 68 + - 36 ) AS INTEGER ) ) - + 26
----
60

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

skipif mysql # not compatible
query I rowsort label-5953
SELECT + 55 * + COUNT ( * ) - - + 84 AS col2
----
139

query I rowsort
SELECT ALL - 95 * - 88 * + 87 - - + 91
----
727411

query I rowsort
SELECT ALL + + 11 col2
----
11

query I rowsort
SELECT ALL + - COALESCE ( - 39, - - 47 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT - 17 + COALESCE ( + + 2, 76, - + COUNT( DISTINCT 90 ) + - ( - NULLIF ( + 36, - - 52 ) ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5957
SELECT - 17 + COALESCE ( + + 2, 76, - + COUNT ( DISTINCT 90 ) + - ( - NULLIF ( + 36, - - 52 ) ) ) AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5958
SELECT 9 * + CAST( + 86 AS SIGNED ) - + + 16 + + + 53
----
811

skipif mysql # not compatible
query I rowsort label-5958
SELECT 9 * + CAST ( + 86 AS INTEGER ) - + + 16 + + + 53
----
811

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

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

query I rowsort
SELECT - 31 + 4 * - 41 * 82
----
-13479

onlyif mysql # DIV for integer division: 
query I rowsort label-5961
SELECT - - 23 DIV - 9
----
-2

skipif mysql # not compatible
query I rowsort label-5961
SELECT - - 23 / - 9
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5962
SELECT DISTINCT + COUNT( * ) * - CASE - - 83 WHEN - + 57 / - 45 * - + 97 THEN + - 4 / - 46 * + ( + CAST( - + ( - NULLIF ( - 41, 88 - + CAST( - + MIN( DISTINCT + 3 ) AS SIGNED ) + - COALESCE ( + COUNT( * ), + NULLIF ( + 2, + + COUNT( + 16 ) * + 26 * - ( COUNT( - 31 ) ) + - 79 ) ) ) ) AS SIGNED ) ) * + 82 + - - 51 ELSE NULL END * - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT + COUNT ( * ) * - CASE - - 83 WHEN - + 57 / - 45 * - + 97 THEN + - 4 / - 46 * + ( + CAST ( - + ( - NULLIF ( - 41, 88 - + CAST ( - + MIN ( DISTINCT + 3 ) AS INTEGER ) + - COALESCE ( + COUNT ( * ), + NULLIF ( + 2, + + COUNT ( + 16 ) * + 26 * - ( COUNT ( - 31 ) ) + - 79 ) ) ) ) AS INTEGER ) ) * + 82 + - - 51 ELSE NULL END * - + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( + 65 ) * - + 55 * - + 9
----
-32175

query I rowsort
SELECT ALL COALESCE ( - 89, - 42 * - 32 + + - ( + 61 ) ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT ALL 94 AS col2, COUNT( * ) * - + NULLIF ( + ( CASE 99 WHEN + 48 + - 94 * - COUNT( * ) THEN NULL ELSE - COUNT( * ) * - + 53 END ), + - 47 ) * + 29 * + COUNT( * ) - - 65 - - 27
----
94
-1445

skipif mysql # not compatible
query II rowsort label-5965
SELECT ALL 94 AS col2, COUNT ( * ) * - + NULLIF ( + ( CASE 99 WHEN + 48 + - 94 * - COUNT ( * ) THEN NULL ELSE - COUNT ( * ) * - + 53 END ), + - 47 ) * + 29 * + COUNT ( * ) - - 65 - - 27
----
94
-1445

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

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

query I rowsort
SELECT DISTINCT - 4 * - 17
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5968
SELECT DISTINCT + CASE + 16 WHEN - 34 THEN - 40 * + - 61 + 40 WHEN + + CAST( 31 AS SIGNED ) * - + 5 + 56 THEN 41 END + - + 8 * COUNT( * ) * + - 46 / - 24 AS col2, - 93
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-5968
SELECT DISTINCT + CASE + 16 WHEN - 34 THEN - 40 * + - 61 + 40 WHEN + + CAST ( 31 AS INTEGER ) * - + 5 + 56 THEN 41 END + - + 8 * COUNT ( * ) * + - 46 / - 24 AS col2, - 93
----
NULL
-93

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5970
SELECT ALL + MIN( DISTINCT + + 69 ) + + - 56 AS col2, 16 AS col2
----
13
16

skipif mysql # not compatible
query II rowsort label-5970
SELECT ALL + MIN ( DISTINCT + + 69 ) + + - 56 AS col2, 16 AS col2
----
13
16

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT DISTINCT CAST( + 56 AS SIGNED ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT CAST ( + 56 AS INTEGER ) AS col0
----
56

query I rowsort
SELECT DISTINCT 41 + - + 59 - - + 89
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5974
SELECT + COALESCE ( + 86, - - MIN( - CAST( NULL AS SIGNED ) ) * SUM( ALL + + 42 ) - + + 42 + - + COUNT( * ) ) * + CASE 28 WHEN 97 THEN NULL WHEN MAX( - 97 ) * + + 18 THEN NULL WHEN 55 THEN 89 ELSE - 78 END AS col0
----
-6708

skipif mysql # not compatible
query I rowsort label-5974
SELECT + COALESCE ( + 86, - - MIN ( - CAST ( NULL AS INTEGER ) ) * SUM ( ALL + + 42 ) - + + 42 + - + COUNT ( * ) ) * + CASE 28 WHEN 97 THEN NULL WHEN MAX ( - 97 ) * + + 18 THEN NULL WHEN 55 THEN 89 ELSE - 78 END AS col0
----
-6708

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT + 70 + COUNT( * ) AS col1
----
71

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

query I rowsort
SELECT ALL 93 + - 88 AS col2
----
5

query I rowsort
SELECT ALL 52 + - - 71
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5978
SELECT ALL CAST( COALESCE ( - 38, 7 ) AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL CAST ( COALESCE ( - 38, 7 ) AS INTEGER )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5979
SELECT - COALESCE ( + + 52, + 88 + 78 * 81 * - - CASE + 2 WHEN - COALESCE ( 55, - NULLIF ( 73, - 64 ), 2 ) THEN - 52 + 29 END * + - COUNT( * ) + 84 + 97 + - 16 * 88 DIV - 95 * - SUM( ALL 5 ) DIV + 41 + + 41 * + + 70 + + 39 * - COUNT( * ) * + 63, + - 69 + + 32 * 29 )
----
-52

skipif mysql # not compatible
query I rowsort label-5979
SELECT - COALESCE ( + + 52, + 88 + 78 * 81 * - - CASE + 2 WHEN - COALESCE ( 55, - NULLIF ( 73, - 64 ), 2 ) THEN - 52 + 29 END * + - COUNT ( * ) + 84 + 97 + - 16 * 88 / - 95 * - SUM ( ALL 5 ) / + 41 + + 41 * + + 70 + + 39 * - COUNT ( * ) * + 63, + - 69 + + 32 * 29 )
----
-52

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ALL 34 * - COUNT( * ) * 24
----
-816

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL 34 * - COUNT ( * ) * 24
----
-816

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

skipif mysql # not compatible
query I rowsort label-5983
SELECT + - COUNT ( * ) + + 66 AS col1
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5984
SELECT DISTINCT 87 DIV + - COUNT( * ) - - 29 * 41 + - 25
----
1077

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT 87 / + - COUNT ( * ) - - 29 * 41 + - 25
----
1077

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT - 7 * 72 * - - COUNT( * ) + - - 12 * - 68
----
-1320

skipif mysql # not compatible
query I rowsort label-5985
SELECT - 7 * 72 * - - COUNT ( * ) + - - 12 * - 68
----
-1320

query II rowsort
SELECT DISTINCT + - 34, - 85 AS col2
----
-34
-85

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

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

query I rowsort
SELECT + + 95 * + 46
----
4370

query I rowsort
SELECT ALL + + 82 AS col2
----
82

query I rowsort
SELECT + - 21 * + + 11
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5991
SELECT DISTINCT - 57 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT - 57 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT ALL - + 49 * + 0 * - 80 * - 7 DIV - 58 - 5 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL - + 49 * + 0 * - 80 * - 7 / - 58 - 5 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT DISTINCT + ( - + COUNT( * ) ) * MIN( + - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT + ( - + COUNT ( * ) ) * MIN ( + - 11 )
----
11

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

skipif mysql # not compatible
query I rowsort label-5994
SELECT + MIN ( 19 )
----
19

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

query I rowsort
SELECT ALL + - 19 * 91 AS col2
----
-1729

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5997
SELECT DISTINCT + COUNT( * ) * + CASE - 57 WHEN - 64 THEN 44 DIV - 84 * - COUNT( * ) + - 34 + - - SUM( DISTINCT + 67 ) WHEN + - 22 * - 1 + - - 35 THEN NULL ELSE - 55 - - 49 END
----
-6

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT + COUNT ( * ) * + CASE - 57 WHEN - 64 THEN 44 / - 84 * - COUNT ( * ) + - 34 + - - SUM ( DISTINCT + 67 ) WHEN + - 22 * - 1 + - - 35 THEN NULL ELSE - 55 - - 49 END
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT NULLIF ( + COUNT( * ), + - 15 + ( 55 ) ) * - - 90
----
90

skipif mysql # not compatible
query I rowsort label-5998
SELECT NULLIF ( + COUNT ( * ), + - 15 + ( 55 ) ) * - - 90
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5999
SELECT + + CASE ( 57 ) WHEN + CAST( - - COUNT( * ) AS SIGNED ) / + 41 THEN - 19 * + + 94 ELSE - + 83 * + 68 + - 55 * 70 END * SUM( ALL + - ( 48 ) ) / + - 14 + - SUM( ALL - + 90 ) + + - 82 + - CAST( NULL AS SIGNED ) col0, CAST( NULL AS SIGNED ) * + + 95 + - 88 / CAST( + SUM( - - 25 ) AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5999
SELECT + + CASE ( 57 ) WHEN + CAST ( - - COUNT ( * ) AS INTEGER ) / + 41 THEN - 19 * + + 94 ELSE - + 83 * + 68 + - 55 * 70 END * SUM ( ALL + - ( 48 ) ) / + - 14 + - SUM ( ALL - + 90 ) + + - 82 + - CAST ( NULL AS INTEGER ) col0, CAST ( NULL AS INTEGER ) * + + 95 + - 88 / CAST ( + SUM ( - - 25 ) AS INTEGER ) AS col2
----
NULL
NULL

query I rowsort
SELECT ALL 7 * - 33
----
-231

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6002
SELECT ALL 40, COUNT( * ) - 18 col0
----
40
-17

skipif mysql # not compatible
query II rowsort label-6002
SELECT ALL 40, COUNT ( * ) - 18 col0
----
40
-17

query I rowsort
SELECT ALL + 36 + 29
----
65

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

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

query I rowsort
SELECT ALL + 63 + - + 67 col2
----
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-6006
SELECT - 96, 34 DIV - 37 + - 99 AS col0
----
-96
-99

skipif mysql # not compatible
query II rowsort label-6006
SELECT - 96, 34 / - 37 + - 99 AS col0
----
-96
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6007
SELECT DISTINCT + 18 + SUM( ALL - 30 ) * + 88 * - CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT + 18 + SUM ( ALL - 30 ) * + 88 * - CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6008
SELECT NULLIF ( CAST( - + 23 AS SIGNED ), + 52 ) - + 49 + + 58 - + 22 * + ( - + 49 ) * - 53 * - 25 AS col2
----
1428336

skipif mysql # not compatible
query I rowsort label-6008
SELECT NULLIF ( CAST ( - + 23 AS INTEGER ), + 52 ) - + 49 + + 58 - + 22 * + ( - + 49 ) * - 53 * - 25 AS col2
----
1428336

query I rowsort
SELECT 32 - - 99
----
131

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6011
SELECT ALL - 27 DIV + ( COUNT( DISTINCT + 52 ) ) AS col0, - 93 + + SUM( - 47 )
----
-27
-140

skipif mysql # not compatible
query II rowsort label-6011
SELECT ALL - 27 / + ( COUNT ( DISTINCT + 52 ) ) AS col0, - 93 + + SUM ( - 47 )
----
-27
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6012
SELECT DISTINCT 57, + ( - - 41 ) DIV 27 - COUNT( * ) * + - 91 + + - 16 * - 40 * - 9 AS col2
----
57
-5668

skipif mysql # not compatible
query II rowsort label-6012
SELECT DISTINCT 57, + ( - - 41 ) / 27 - COUNT ( * ) * + - 91 + + - 16 * - 40 * - 9 AS col2
----
57
-5668

query I rowsort
SELECT DISTINCT - 18 + + - 33 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT COUNT( ALL + - 90 ) + 16 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6014
SELECT COUNT ( ALL + - 90 ) + 16 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT ALL - 1 + 79 * + 84 + 50 * + NULLIF ( - 59, - 89 * - ( + + 43 ) * - + MAX( + + 24 ) * 69 + + 6 + - 8 + + 68 ) + - - 49 - + - 72 AS col0
----
3806

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL - 1 + 79 * + 84 + 50 * + NULLIF ( - 59, - 89 * - ( + + 43 ) * - + MAX ( + + 24 ) * 69 + + 6 + - 8 + + 68 ) + - - 49 - + - 72 AS col0
----
3806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6016
SELECT 57 * + CASE + CAST( NULL AS SIGNED ) WHEN + 16 + - 41 THEN + 38 END * + 90 * + 38 - + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6016
SELECT 57 * + CASE + CAST ( NULL AS INTEGER ) WHEN + 16 + - 41 THEN + 38 END * + 90 * + 38 - + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 66 - - COALESCE ( + 66, ( - - ( - + 20 ) ) ) col1
----
132

query I rowsort
SELECT DISTINCT - 10 * - 70
----
700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6019
SELECT ALL - 1 + + 84 + + 69 DIV COUNT( * ) AS col1
----
152

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL - 1 + + 84 + + 69 / COUNT ( * ) AS col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT 82 * + COUNT( * ) / - CASE + + COUNT( * ) WHEN COALESCE ( 30, - + 51 ) THEN - 30 WHEN 16 / 68 * + 91 * + - 32 THEN + 42 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT 82 * + COUNT ( * ) / - CASE + + COUNT ( * ) WHEN COALESCE ( 30, - + 51 ) THEN - 30 WHEN 16 / 68 * + 91 * + - 32 THEN + 42 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT DISTINCT 40 - COUNT( * ) * - 24 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT 40 - COUNT ( * ) * - 24 AS col1
----
64

query II rowsort
SELECT 26 AS col2, 24
----
26
24

query I rowsort
SELECT 66 + + 60 AS col2
----
126

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

skipif mysql # not compatible
query I rowsort label-6024
SELECT COUNT ( * ) - COUNT ( + 18 ) AS col0
----
0

query I rowsort
SELECT - 83 * + 4 AS col1
----
-332

query I rowsort
SELECT ALL - 30 - 36 + + + 32 AS col1
----
-34

query I rowsort
SELECT DISTINCT - 72 * 7 * 47 AS col1
----
-23688

query I rowsort
SELECT DISTINCT - COALESCE ( + 73, + 79 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6029
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * - 61
----
61

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * - 61
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6030
SELECT ALL - ( CAST( + ( - 20 ) AS SIGNED ) ) DIV - 60 col1
----
0

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL - ( CAST ( + ( - 20 ) AS INTEGER ) ) / - 60 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6031
SELECT + + COUNT( * ) DIV + 60 + 67 * + 59, + COALESCE ( - + 93, - 12 * - ( - COUNT( * ) ) + - MAX( ALL - 95 ) + 4, + 43 ) AS col0
----
3953
-93

skipif mysql # not compatible
query II rowsort label-6031
SELECT + + COUNT ( * ) / + 60 + 67 * + 59, + COALESCE ( - + 93, - 12 * - ( - COUNT ( * ) ) + - MAX ( ALL - 95 ) + 4, + 43 ) AS col0
----
3953
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT ALL - 78 * - NULLIF ( - 5, + - MAX( DISTINCT 40 ) ) + 25 * 76 - + 25 * - 79
----
3485

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL - 78 * - NULLIF ( - 5, + - MAX ( DISTINCT 40 ) ) + 25 * 76 - + 25 * - 79
----
3485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6033
SELECT 9 + + 66 * COUNT( * ) + + CASE WHEN NOT COUNT( * ) IS NULL THEN NULL ELSE - 72 / + + 88 - - - CAST( - + 52 AS SIGNED ) + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6033
SELECT 9 + + 66 * COUNT ( * ) + + CASE WHEN NOT COUNT ( * ) IS NULL THEN NULL ELSE - 72 / + + 88 - - - CAST ( - + 52 AS INTEGER ) + 86 END
----
NULL

query II rowsort
SELECT + 40 AS col2, - 35 AS col1
----
40
-35

query I rowsort
SELECT ALL - NULLIF ( + 15, - 5 * + + 68 * + - ( + 75 ) - + 99 ) AS col0
----
-15

query I rowsort
SELECT - + 0 * + 73 + - 76
----
-76

query I rowsort
SELECT ALL - - 39 col1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6038
SELECT NULLIF ( ( + CAST( 58 AS SIGNED ) ), - CAST( - + 16 AS SIGNED ) )
----
58

skipif mysql # not compatible
query I rowsort label-6038
SELECT NULLIF ( ( + CAST ( 58 AS INTEGER ) ), - CAST ( - + 16 AS INTEGER ) )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6039
SELECT 1 DIV 91 DIV - 7 * + + 29 * - - 96
----
0

skipif mysql # not compatible
query I rowsort label-6039
SELECT 1 / 91 / - 7 * + + 29 * - - 96
----
0

query I rowsort
SELECT - 82 * 31
----
-2542

onlyif mysql # aggregate syntax: 
query II rowsort label-6041
SELECT - 96 * MIN( - ( + 66 ) ) + + + 73 - + 30 AS col0, + 99 * - 39 AS col1
----
6379
-3861

skipif mysql # not compatible
query II rowsort label-6041
SELECT - 96 * MIN ( - ( + 66 ) ) + + + 73 - + 30 AS col0, + 99 * - 39 AS col1
----
6379
-3861

onlyif mysql # aggregate syntax: 
query II rowsort label-6042
SELECT 6 AS col1, 53 * 89 + COUNT( * ) AS col0
----
6
4718

skipif mysql # not compatible
query II rowsort label-6042
SELECT 6 AS col1, 53 * 89 + COUNT ( * ) AS col0
----
6
4718

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6043
SELECT ALL CAST( + 26 AS SIGNED ) + 81
----
107

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL CAST ( + 26 AS INTEGER ) + 81
----
107

query I rowsort
SELECT DISTINCT - 84 + + ( + NULLIF ( 45, + 27 / NULLIF ( 71, + NULLIF ( 12, 47 + + 44 ) * 62 + 26 ) * + 54 ) ) * 45 AS col1
----
1941

query II rowsort
SELECT ALL - + 75, - 48 AS col1
----
-75
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL - + COALESCE ( + - 7, + 20 ) + - - COUNT( - - 10 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL - + COALESCE ( + - 7, + 20 ) + - - COUNT ( - - 10 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT - 80 * - 86 + 41 + + COUNT( DISTINCT - + 39 ) AS col0
----
6922

skipif mysql # not compatible
query I rowsort label-6047
SELECT - 80 * - 86 + 41 + + COUNT ( DISTINCT - + 39 ) AS col0
----
6922

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT COUNT( * ) + 38 * - ( + COUNT( * ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-6049
SELECT COUNT ( * ) + 38 * - ( + COUNT ( * ) ) AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6050
SELECT ( - CAST( NULL AS SIGNED ) ) * 85 / + 39 - + 90 AS col2, - SUM( DISTINCT + 33 ) * + 44 * - + 66 AS col1
----
NULL
95832

skipif mysql # not compatible
query II rowsort label-6050
SELECT ( - CAST ( NULL AS INTEGER ) ) * 85 / + 39 - + 90 AS col2, - SUM ( DISTINCT + 33 ) * + 44 * - + 66 AS col1
----
NULL
95832

query I rowsort
SELECT ALL 59 * 41 AS col1
----
2419

onlyif mysql # aggregate syntax: 
query II rowsort label-6052
SELECT 41 + - - 91, - 66 * - 71 * COUNT( * ) - NULLIF ( - 72, - + 84 ) AS col1
----
132
4758

skipif mysql # not compatible
query II rowsort label-6052
SELECT 41 + - - 91, - 66 * - 71 * COUNT ( * ) - NULLIF ( - 72, - + 84 ) AS col1
----
132
4758

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6053
SELECT 77 - + - ( + COUNT( * ) ) * - ( + COUNT( * ) ) DIV + 69 - + 70
----
7

skipif mysql # not compatible
query I rowsort label-6053
SELECT 77 - + - ( + COUNT ( * ) ) * - ( + COUNT ( * ) ) / + 69 - + 70
----
7

query I rowsort
SELECT ALL - 32 + 92
----
60

query I rowsort
SELECT 86 + 44 + - 19 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT ALL + 69 + + - NULLIF ( + COUNT( * ), 1 * + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL + 69 + + - NULLIF ( + COUNT ( * ), 1 * + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT ( - 59 ) + - MAX( ALL - + ( 44 ) ) + 84
----
69

skipif mysql # not compatible
query I rowsort label-6057
SELECT ( - 59 ) + - MAX ( ALL - + ( 44 ) ) + 84
----
69

query I rowsort
SELECT ALL 23 * + 6 AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT DISTINCT ( COUNT( * ) ) + - COALESCE ( - 4, + + 66 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT ( COUNT ( * ) ) + - COALESCE ( - 4, + + 66 ) AS col1
----
5

query I rowsort
SELECT DISTINCT 58 * 56
----
3248

query I rowsort
SELECT DISTINCT - 87 - - + 44
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT DISTINCT MIN( - - 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT MIN ( - - 7 ) AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6063
SELECT 72 + SUM( 68 ) DIV + 34
----
74

skipif mysql # not compatible
query I rowsort label-6063
SELECT 72 + SUM ( 68 ) / + 34
----
74

query I rowsort
SELECT - 81 * + - 29 col0
----
2349

query I rowsort
SELECT ALL + 43 * - CASE - 94 WHEN 60 THEN - + 65 + + + ( 85 ) * 41 WHEN - + AVG ( DISTINCT 62 ) THEN - 73 ELSE NULL END
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6068
SELECT ALL - + CAST( + COUNT( * ) AS SIGNED ) * + 67 * + + 17 + + 55 col0, - ( + + NULLIF ( - 51, 50 ) ) + - + CASE + 49 WHEN 81 + - + CASE - ( + COALESCE ( - COALESCE ( + AVG ( DISTINCT - - 10 ), + + 38, - - 91, - 94 ), + 61 + - 91 ) ) WHEN + - 44 THEN NULL ELSE - - MIN( - + 83 ) END THEN 47 ELSE 23 + + SUM( + 49 ) + - - COUNT( * ) END AS col1
----
-1084
-22

skipif mysql # not compatible
query II rowsort label-6068
SELECT ALL - + CAST ( + COUNT ( * ) AS INTEGER ) * + 67 * + + 17 + + 55 col0, - ( + + NULLIF ( - 51, 50 ) ) + - + CASE + 49 WHEN 81 + - + CASE - ( + COALESCE ( - COALESCE ( + AVG ( DISTINCT - - 10 ), + + 38, - - 91, - 94 ), + 61 + - 91 ) ) WHEN + - 44 THEN NULL ELSE - - MIN ( - + 83 ) END THEN 47 ELSE 23 + + SUM ( + 49 ) + - - COUNT ( * ) END AS col1
----
-1084
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6069
SELECT 77 * CAST( + 41 AS SIGNED ) * - 16 + - ( - 57 ) + + 94 AS col2
----
-50361

skipif mysql # not compatible
query I rowsort label-6069
SELECT 77 * CAST ( + 41 AS INTEGER ) * - 16 + - ( - 57 ) + + 94 AS col2
----
-50361

query I rowsort
SELECT DISTINCT - - ( + 34 ) * + 92
----
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT COUNT( * ) * + - 40 + - - SUM( 17 ) * + 40 AS col2
----
640

skipif mysql # not compatible
query I rowsort label-6071
SELECT COUNT ( * ) * + - 40 + - - SUM ( 17 ) * + 40 AS col2
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT - - 36 + - + ( - 10 ) * NULLIF ( + 39, - ( + 14 ) * COUNT( * ) / - - COUNT( * ) ) AS col1
----
426

skipif mysql # not compatible
query I rowsort label-6072
SELECT - - 36 + - + ( - 10 ) * NULLIF ( + 39, - ( + 14 ) * COUNT ( * ) / - - COUNT ( * ) ) AS col1
----
426

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT ALL - + 81 * - 60 - - 32 + + 34 DIV + - 27 + + 25
----
4916

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL - + 81 * - 60 - - 32 + + 34 / + - 27 + + 25
----
4916

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT DISTINCT + - COALESCE ( - ( + - 71 ), + 4 * + 60 * + 68, + + 46 * - 63 * - COUNT( + 11 ) + 18 - + 9, - 25 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT + - COALESCE ( - ( + - 71 ), + 4 * + 60 * + 68, + + 46 * - 63 * - COUNT ( + 11 ) + 18 - + 9, - 25 ) AS col0
----
-71

query I rowsort
SELECT - 86 * + 60 AS col1
----
-5160

query I rowsort
SELECT + 19 + - ( - - 74 ) + + 53
----
-2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6078
SELECT MIN( ( 45 ) ), - 50 DIV - 50 AS col0
----
45
1

skipif mysql # not compatible
query II rowsort label-6078
SELECT MIN ( ( 45 ) ), - 50 / - 50 AS col0
----
45
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT ALL 45 * 88 * COUNT( * ) + - 64
----
3896

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL 45 * 88 * COUNT ( * ) + - 64
----
3896

query I rowsort
SELECT + 83 * + - 55 AS col2
----
-4565

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6082
SELECT ALL 41 - - COALESCE ( CASE NULLIF ( + + 4, + 55 + 59 ) WHEN + 98 - + 37 DIV + 23 THEN NULL ELSE - NULLIF ( - 35, + ( 89 ) ) END, - CASE - + COALESCE ( 14, 51 + + 47, - + 72 ) WHEN - 29 * - 18 * + ( - 28 ) * - - 55 + 30 THEN + 95 ELSE NULL END DIV CASE + 44 WHEN 57 - - 98 * - MAX( ALL 47 ) THEN + 23 + - ( + 11 ) * + + 84 WHEN - NULLIF ( + - COALESCE ( + 3, + 61, - + 42 ), - 75 ) THEN NULL END * - 47 + - + COUNT( * ) ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL 41 - - COALESCE ( CASE NULLIF ( + + 4, + 55 + 59 ) WHEN + 98 - + 37 / + 23 THEN NULL ELSE - NULLIF ( - 35, + ( 89 ) ) END, - CASE - + COALESCE ( 14, 51 + + 47, - + 72 ) WHEN - 29 * - 18 * + ( - 28 ) * - - 55 + 30 THEN + 95 ELSE NULL END / CASE + 44 WHEN 57 - - 98 * - MAX ( ALL 47 ) THEN + 23 + - ( + 11 ) * + + 84 WHEN - NULLIF ( + - COALESCE ( + 3, + 61, - + 42 ), - 75 ) THEN NULL END * - 47 + - + COUNT ( * ) ) AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6083
SELECT - COALESCE ( - COUNT( * ), CAST( - 84 AS SIGNED ), + 28 * + COUNT( * ) ) AS col2, 21
----
1
21

skipif mysql # not compatible
query II rowsort label-6083
SELECT - COALESCE ( - COUNT ( * ), CAST ( - 84 AS INTEGER ), + 28 * + COUNT ( * ) ) AS col2, 21
----
1
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6084
SELECT ALL 17 - - 63 * CAST( NULL AS SIGNED ) + - 92 + + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL 17 - - 63 * CAST ( NULL AS INTEGER ) + - 92 + + 45 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6085
SELECT DISTINCT 76 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-6085
SELECT DISTINCT 76 / + 92
----
0

query II rowsort
SELECT 65 AS col0, - 21
----
65
-21

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

query I rowsort
SELECT - 81 * 93
----
-7533

query I rowsort
SELECT + 93 * + - COALESCE ( - ( - NULLIF ( + 62, - ( + - AVG ( + - ( 0 ) ) ) ) ), 90 ) AS col1
----
-5766

query I rowsort
SELECT - 99 + + 61 AS col2
----
-38

query I rowsort
SELECT DISTINCT 4 * + - 92 AS col0
----
-368

query II rowsort
SELECT - 81, + 14 col2
----
-81
14

query I rowsort
SELECT ALL 34 * - 40
----
-1360

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

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

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

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL SUM ( 92 )
----
92

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

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

query I rowsort
SELECT + 41 * 43
----
1763

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6099
SELECT + SUM( DISTINCT - 68 ) + - CAST( + 53 AS SIGNED )
----
-121

skipif mysql # not compatible
query I rowsort label-6099
SELECT + SUM ( DISTINCT - 68 ) + - CAST ( + 53 AS INTEGER )
----
-121

query I rowsort
SELECT COALESCE ( 20, - 98 * + - 60 - 54 * + ( - 34 ) )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6101
SELECT + CAST( + - ( 99 ) AS SIGNED ) / 19 + - 30 - - MAX( ALL + 38 ) * - CAST( NULL AS DECIMAL ) - + COUNT( * ) + ( ( 17 ) ) * 78 * ( SUM( + + 6 ) ) * 52 + - ( + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6101
SELECT + CAST ( + - ( 99 ) AS INTEGER ) / 19 + - 30 - - MAX ( ALL + 38 ) * - CAST ( NULL AS REAL ) - + COUNT ( * ) + ( ( 17 ) ) * 78 * ( SUM ( + + 6 ) ) * 52 + - ( + 98 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6102
SELECT - - 51 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL + 45 + COUNT( * ) + - 20 - + + 68 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL + 45 + COUNT ( * ) + - 20 - + + 68 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6104
SELECT ALL + 95, - SUM( DISTINCT - 39 ) AS col0
----
95
39

skipif mysql # not compatible
query II rowsort label-6104
SELECT ALL + 95, - SUM ( DISTINCT - 39 ) AS col0
----
95
39

query II rowsort
SELECT 60 col0, + 21 + + 4
----
60
25

query I rowsort
SELECT - - 90 * - NULLIF ( - - 82, - ( 96 ) ) AS col2
----
-7380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6107
SELECT ALL + + 82 DIV + ( 89 ) - - - COUNT( * ) - + ( + + 11 ) * 54 + + + 77 - - - 38 * 36
----
-1886

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL + + 82 / + ( 89 ) - - - COUNT ( * ) - + ( + + 11 ) * 54 + + + 77 - - - 38 * 36
----
-1886

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6109
SELECT ALL 25 DIV + + COUNT( * ) - + 69 + COUNT( * ) + 58 + 96 + - 90 * + COUNT( * ), COALESCE ( - - 5, + COUNT( * ) - - 94 ) col1
----
21
5

skipif mysql # not compatible
query II rowsort label-6109
SELECT ALL 25 / + + COUNT ( * ) - + 69 + COUNT ( * ) + 58 + 96 + - 90 * + COUNT ( * ), COALESCE ( - - 5, + COUNT ( * ) - - 94 ) col1
----
21
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6110
SELECT ALL - 33 DIV - + 84 + + - COUNT( * ) + + 13 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL - 33 / - + 84 + + - COUNT ( * ) + + 13 AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6111
SELECT - + 76 DIV + + 94 * 26 - + 45 * - 57 + + 64
----
2629

skipif mysql # not compatible
query I rowsort label-6111
SELECT - + 76 / + + 94 * 26 - + 45 * - 57 + + 64
----
2629

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT - 47 * + COUNT( * ) * - 30 + 24
----
1434

skipif mysql # not compatible
query I rowsort label-6113
SELECT - 47 * + COUNT ( * ) * - 30 + 24
----
1434

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ( + COUNT( DISTINCT 85 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6114
SELECT ( + COUNT ( DISTINCT 85 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6115
SELECT ALL + MIN( + - 79 ), 67 AS col1
----
-79
67

skipif mysql # not compatible
query II rowsort label-6115
SELECT ALL + MIN ( + - 79 ), 67 AS col1
----
-79
67

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

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

query I rowsort
SELECT DISTINCT 71 * - 52 * + 49
----
-180908

query I rowsort
SELECT - 35 + - 3 AS col1
----
-38

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

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL COUNT ( * ) * + COUNT ( * ) - + - 73 AS col1
----
74

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

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

query I rowsort
SELECT DISTINCT + 97 * + 21 col0
----
2037

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

query I rowsort
SELECT ALL 70 * - 61 * 42 col0
----
-179340

onlyif mysql # aggregate syntax: 
query II rowsort label-6124
SELECT - 52 * + + ( + - COUNT( * ) ) * + - 71 - 7 * + + COALESCE ( 37, - 41 ) + 15 + - 33, 4 * + 30 col2
----
-3969
120

skipif mysql # not compatible
query II rowsort label-6124
SELECT - 52 * + + ( + - COUNT ( * ) ) * + - 71 - 7 * + + COALESCE ( 37, - 41 ) + 15 + - 33, 4 * + 30 col2
----
-3969
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6125
SELECT ALL 87 * + CAST( - + MIN( 87 ) AS SIGNED ) * 44
----
-333036

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL 87 * + CAST ( - + MIN ( 87 ) AS INTEGER ) * 44
----
-333036

query I rowsort
SELECT - 52 + 81 * 28
----
2216

query I rowsort
SELECT + 58 + - 15
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT MAX( 25 )
----
25

skipif mysql # not compatible
query I rowsort label-6128
SELECT MAX ( 25 )
----
25

query I rowsort
SELECT ALL + 79 * + - 67
----
-5293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6130
SELECT + CAST( NULL AS SIGNED ) + + - NULLIF ( + + 8, + 94 ) + - ( 21 ) * - 7 * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT + CAST ( NULL AS INTEGER ) + + - NULLIF ( + + 8, + 94 ) + - ( 21 ) * - 7 * 90
----
NULL

query I rowsort
SELECT ALL CASE - 40 WHEN - 24 THEN + + 8 END / + 3 AS col2
----
NULL

query I rowsort
SELECT + 22 + - 92 + - 56 + - CASE + 53 WHEN - 34 THEN 8 WHEN + 14 * + 51 THEN + + 91 ELSE NULL END * - - 31 * 66 * 78 AS col1
----
NULL

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

query I rowsort
SELECT ALL 16 * + - 31
----
-496

query I rowsort
SELECT ALL 60 + + - 41 col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT + + 60 + - 99 + - 97 * - MIN( NULLIF ( + 9, 80 ) ) AS col2
----
834

skipif mysql # not compatible
query I rowsort label-6136
SELECT + + 60 + - 99 + - 97 * - MIN ( NULLIF ( + 9, 80 ) ) AS col2
----
834

query I rowsort
SELECT NULLIF ( - ( 43 ), - 4 ) AS col2
----
-43

query I rowsort
SELECT 73 + + 62 + - 23 AS col1
----
112

query I rowsort
SELECT - - NULLIF ( 20, 19 ) AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6140
SELECT ALL 5 + 96 DIV 99 + - + COUNT( * ) AS col1, + ( + - SUM( DISTINCT + 47 ) ) AS col0
----
4
-47

skipif mysql # not compatible
query II rowsort label-6140
SELECT ALL 5 + 96 / 99 + - + COUNT ( * ) AS col1, + ( + - SUM ( DISTINCT + 47 ) ) AS col0
----
4
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6141
SELECT DISTINCT COUNT( * ) + + - 46 * 49 * 42 * - + 90 AS col2, 68 col0
----
8520121
68

skipif mysql # not compatible
query II rowsort label-6141
SELECT DISTINCT COUNT ( * ) + + - 46 * 49 * 42 * - + 90 AS col2, 68 col0
----
8520121
68

query I rowsort
SELECT 84 + + - 46 AS col1
----
38

query II rowsort
SELECT - 2 + 7, + 25 AS col2
----
5
25

query I rowsort
SELECT ALL + - 85 + + + 66
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6145
SELECT DISTINCT 89 + 65 + - - 58 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT 89 + 65 + - - 58 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6146
SELECT - + 86 / 1 * 48 + + + NULLIF ( - CAST( NULL AS SIGNED ), - + 0 ) + + + 28 - MAX( 97 ) + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6146
SELECT - + 86 / 1 * 48 + + + NULLIF ( - CAST ( NULL AS INTEGER ), - + 0 ) + + + 28 - MAX ( 97 ) + - 50
----
NULL

query I rowsort
SELECT ALL + + 93 - - - 77 AS col2
----
16

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6149
SELECT 57 DIV - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6149
SELECT 57 / - 67 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6150
SELECT ALL CAST( + 43 AS SIGNED ) DIV COUNT( * ) - 58 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL CAST ( + 43 AS INTEGER ) / COUNT ( * ) - 58 AS col0
----
-15

query I rowsort
SELECT ALL - 10 * ( - ( + + 92 ) )
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT DISTINCT + COUNT( - 61 ) * - 4 * + 19
----
-76

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT + COUNT ( - 61 ) * - 4 * + 19
----
-76

query I rowsort
SELECT ALL - 1 * 11 AS col1
----
-11

query II rowsort
SELECT DISTINCT - 8 AS col2, ( - 73 ) AS col1
----
-8
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT ALL - 37 - + 26 + MIN( DISTINCT - 65 ) AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL - 37 - + 26 + MIN ( DISTINCT - 65 ) AS col2
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT 83 DIV 42
----
1

skipif mysql # not compatible
query I rowsort label-6156
SELECT 83 / 42
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6157
SELECT 95 DIV + ( + - 41 )
----
-2

skipif mysql # not compatible
query I rowsort label-6157
SELECT 95 / + ( + - 41 )
----
-2

query I rowsort
SELECT DISTINCT - NULLIF ( + 0, - 98 ) AS col2
----
0

query II rowsort
SELECT + 67 AS col0, - 28
----
67
-28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT ALL NULLIF ( 29, + CASE - 6 WHEN - + 22 + 97 THEN NULL WHEN - - 45 THEN NULL WHEN 80 + COUNT( * ) THEN COUNT( * ) * 18 + + 51 END * + + 58 * - 74 + 65 ) * + COALESCE ( - 92, + - 98 + + 33 * 8 ) AS col0
----
-2668

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL NULLIF ( 29, + CASE - 6 WHEN - + 22 + 97 THEN NULL WHEN - - 45 THEN NULL WHEN 80 + COUNT ( * ) THEN COUNT ( * ) * 18 + + 51 END * + + 58 * - 74 + 65 ) * + COALESCE ( - 92, + - 98 + + 33 * 8 ) AS col0
----
-2668

query I rowsort
SELECT DISTINCT + 66 + - 21 col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL + NULLIF ( 69, 56 * - COALESCE ( + COUNT( * ), + AVG ( DISTINCT + 96 ) ) ) + - 85 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL + NULLIF ( 69, 56 * - COALESCE ( + COUNT ( * ), + AVG ( DISTINCT + 96 ) ) ) + - 85 AS col0
----
-16

query I rowsort
SELECT 91 - - 6 AS col2
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6165
SELECT 97 DIV 52 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6165
SELECT 97 / 52 AS col1
----
1

query I rowsort
SELECT 1 + + 31 AS col2
----
32

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

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 62 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 68 + + 45 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT ALL NULLIF ( - 14, ( 69 ) - 60 ) + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL NULLIF ( - 14, ( 69 ) - 60 ) + COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT COUNT( * ) * - 52 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-6171
SELECT COUNT ( * ) * - 52 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT 35 - COUNT( DISTINCT + 29 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6172
SELECT 35 - COUNT ( DISTINCT + 29 ) AS col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6173
SELECT ALL 20 DIV - COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL 20 / - COUNT ( * ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL 32 + - MAX( - 32 )
----
64

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL 32 + - MAX ( - 32 )
----
64

query I rowsort
SELECT DISTINCT 67 - - 63 * - 2 AS col2
----
-59

query I rowsort
SELECT 25 + 95 * 60
----
5725

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT 61 * - ( - SUM( 73 ) * + COUNT( * ) ) AS col2
----
4453

skipif mysql # not compatible
query I rowsort label-6177
SELECT 61 * - ( - SUM ( 73 ) * + COUNT ( * ) ) AS col2
----
4453

query I rowsort
SELECT DISTINCT 2 - ( 48 ) col1
----
-46

query I rowsort
SELECT DISTINCT 95 * + 14
----
1330

query I rowsort
SELECT DISTINCT 1 * 94 - ( + 81 )
----
13

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT - NULLIF ( + MIN( 56 ), 76 )
----
-56

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT - NULLIF ( + MIN ( 56 ), 76 )
----
-56

query I rowsort
SELECT DISTINCT 59 * - 81 AS col1
----
-4779

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT 6 * 38 - + COUNT( * )
----
227

skipif mysql # not compatible
query I rowsort label-6187
SELECT 6 * 38 - + COUNT ( * )
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT SUM( DISTINCT 12 ) + - 50 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-6188
SELECT SUM ( DISTINCT 12 ) + - 50 AS col1
----
-38

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

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

query I rowsort
SELECT 11 * + 62 AS col2
----
682

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT + COUNT( - 8 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6191
SELECT + COUNT ( - 8 ) col0
----
1

query I rowsort
SELECT ALL + 79 + - 2 AS col2
----
77

query I rowsort
SELECT + 44 * 70 + 74 AS col2
----
3154

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

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL 11 / - 92
----
0

query I rowsort
SELECT 1 + + 95
----
96

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6197
SELECT ALL COUNT( * ) + 73 * ( - COALESCE ( 44, + 55 DIV + 80 ) ) col1
----
-3211

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL COUNT ( * ) + 73 * ( - COALESCE ( 44, + 55 / + 80 ) ) col1
----
-3211

query I rowsort
SELECT 53 * + 46 + 32 AS col1
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT COUNT( DISTINCT 89 ) + 58 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-6199
SELECT COUNT ( DISTINCT 89 ) + 58 AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6200
SELECT - CASE - 90 WHEN + 62 / 31 THEN + ( - ( - COUNT( * ) ) ) * 87 WHEN - CAST( NULL AS SIGNED ) THEN 36 * 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT - CASE - 90 WHEN + 62 / 31 THEN + ( - ( - COUNT ( * ) ) ) * 87 WHEN - CAST ( NULL AS INTEGER ) THEN 36 * 27 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6201
SELECT ALL + MIN( ALL CAST( NULL AS SIGNED ) ) + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL + MIN ( ALL CAST ( NULL AS INTEGER ) ) + - 13
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT 5 * + 11 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT - + ( ( SUM( DISTINCT + 98 ) ) ) + 67 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-6205
SELECT - + ( ( SUM ( DISTINCT + 98 ) ) ) + 67 AS col0
----
-31

query I rowsort
SELECT ALL - - 51 - - 12 * 34
----
459

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT - + 33 * ( + 16 + + COUNT( * ) ) AS col1
----
-561

skipif mysql # not compatible
query I rowsort label-6207
SELECT - + 33 * ( + 16 + + COUNT ( * ) ) AS col1
----
-561

query I rowsort
SELECT - 23 + 56
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT - COUNT( * ) + 41 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6209
SELECT - COUNT ( * ) + 41 AS col2
----
40

query I rowsort
SELECT + 11 + + 68 * 54
----
3683

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT ALL - MIN( DISTINCT 11 ) * 45
----
-495

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL - MIN ( DISTINCT 11 ) * 45
----
-495

query I rowsort
SELECT - 50 * - NULLIF ( 29 * - 67, + 59 * + 26 + 1 * 40 )
----
-97150

query I rowsort
SELECT + 24 + ( + 38 + 11 * + 2 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL - NULLIF ( + 68, + COUNT( * ) * 0 + 92 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL - NULLIF ( + 68, + COUNT ( * ) * 0 + 92 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT - - CASE + COUNT( * ) WHEN 82 + - 51 THEN + 13 - 45 ELSE COUNT( * ) * - 22 END + - 54 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-6215
SELECT - - CASE + COUNT ( * ) WHEN 82 + - 51 THEN + 13 - 45 ELSE COUNT ( * ) * - 22 END + - 54 AS col1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-6216
SELECT - 77 DIV ( 82 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6216
SELECT - 77 / ( 82 ) AS col2
----
0

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

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

query I rowsort
SELECT + ( COALESCE ( + 59, + 10 ) ) + - 77
----
-18

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT - 83 DIV + 73
----
-1

skipif mysql # not compatible
query I rowsort label-6220
SELECT - 83 / + 73
----
-1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT - 34 * COUNT( * ) + - 98 * 20 AS col0
----
-1994

skipif mysql # not compatible
query I rowsort label-6223
SELECT - 34 * COUNT ( * ) + - 98 * 20 AS col0
----
-1994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6224
SELECT ( + CAST( CAST( CASE - 55 WHEN + 84 THEN 28 / - 4 ELSE NULL END AS SIGNED ) AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6224
SELECT ( + CAST ( CAST ( CASE - 55 WHEN + 84 THEN 28 / - 4 ELSE NULL END AS INTEGER ) AS INTEGER ) ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6225
SELECT - 40 DIV - + 33 + 99 col2
----
100

skipif mysql # not compatible
query I rowsort label-6225
SELECT - 40 / - + 33 + 99 col2
----
100

query I rowsort
SELECT ALL 53 * + - 94 + 93 * - 25
----
-7307

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

query I rowsort
SELECT DISTINCT + COALESCE ( - 8, - 48 ) AS col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6229
SELECT ALL - 46 * COALESCE ( - COUNT( * ), 74, COUNT( * ) DIV 26 ) * + COUNT( * ) + 91 * 53
----
4869

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL - 46 * COALESCE ( - COUNT ( * ), 74, COUNT ( * ) / 26 ) * + COUNT ( * ) + 91 * 53
----
4869

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT DISTINCT NULLIF ( 15, - 90 ) * + 38 + 43 * COUNT( * ) AS col1
----
613

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT NULLIF ( 15, - 90 ) * + 38 + 43 * COUNT ( * ) AS col1
----
613

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT ALL + MAX( ALL - 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL + MAX ( ALL - 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT + 99 * + + ( MAX( DISTINCT 16 ) )
----
1584

skipif mysql # not compatible
query I rowsort label-6234
SELECT + 99 * + + ( MAX ( DISTINCT 16 ) )
----
1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6235
SELECT ALL 96 * - + COALESCE ( CASE 80 WHEN + 97 * + 72 + 9 THEN NULL WHEN 86 * 1 THEN CAST( - 73 AS SIGNED ) END, - 67 ) + + 57
----
6489

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL 96 * - + COALESCE ( CASE 80 WHEN + 97 * + 72 + 9 THEN NULL WHEN 86 * 1 THEN CAST ( - 73 AS INTEGER ) END, - 67 ) + + 57
----
6489

query I rowsort
SELECT - 69 * - 89 * 95 AS col1
----
583395

query I rowsort
SELECT ALL + 25 * 28 + + 86 AS col1
----
786

query I rowsort
SELECT + - 23 * + - 96 AS col1
----
2208

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6240
SELECT DISTINCT 11 DIV 11
----
1

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT 11 / 11
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT ALL + 89 * - 61 - COUNT( * ) * 35
----
-5464

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL + 89 * - 61 - COUNT ( * ) * 35
----
-5464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6242
SELECT + 98 + - 55 - CAST( ( - 59 ) AS SIGNED )
----
102

skipif mysql # not compatible
query I rowsort label-6242
SELECT + 98 + - 55 - CAST ( ( - 59 ) AS INTEGER )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT - MIN( DISTINCT + 3 ) * + 90 AS col0
----
-270

skipif mysql # not compatible
query I rowsort label-6243
SELECT - MIN ( DISTINCT + 3 ) * + 90 AS col0
----
-270

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6245
SELECT - 82 * - CAST( - 92 AS SIGNED ) * + NULLIF ( 64, - 83 + COUNT( * ) * 20 ) + 45 AS col2
----
-482771

skipif mysql # not compatible
query I rowsort label-6245
SELECT - 82 * - CAST ( - 92 AS INTEGER ) * + NULLIF ( 64, - 83 + COUNT ( * ) * 20 ) + 45 AS col2
----
-482771

query I rowsort
SELECT ( + 0 ) col0
----
0

query I rowsort
SELECT + + 96 * ( + 56 )
----
5376

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT - + 91 + 62 DIV + 11
----
-86

skipif mysql # not compatible
query I rowsort label-6248
SELECT - + 91 + 62 / + 11
----
-86

query I rowsort
SELECT ALL COALESCE ( 51, 42 ) AS col1
----
51

query I rowsort
SELECT - - 21 * + 61
----
1281

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6252
SELECT - - CAST( - 22 AS SIGNED ) + - CASE + 61 WHEN 38 * 7 THEN - CAST( - 5 AS SIGNED ) WHEN 11 + 46 * + 63 THEN 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6252
SELECT - - CAST ( - 22 AS INTEGER ) + - CASE + 61 WHEN 38 * 7 THEN - CAST ( - 5 AS INTEGER ) WHEN 11 + 46 * + 63 THEN 90 END
----
NULL

query I rowsort
SELECT ALL - 61 * - 80 AS col1
----
4880

query I rowsort
SELECT - 84 * - + 9 AS col0
----
756

query I rowsort
SELECT ALL - - 98 * 67
----
6566

query I rowsort
SELECT ALL - 51 * 90 AS col2
----
-4590

query I rowsort
SELECT - 77 * - 58 AS col2
----
4466

query I rowsort
SELECT - 83 * + 25
----
-2075

query I rowsort
SELECT + 41 - 18
----
23

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

query I rowsort
SELECT - COALESCE ( + 77, - 89 ) * 6
----
-462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6262
SELECT ALL 17 DIV - - 29 + + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL 17 / - - 29 + + + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6263
SELECT + 99 DIV - 75
----
-1

skipif mysql # not compatible
query I rowsort label-6263
SELECT + 99 / - 75
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6264
SELECT + 36 DIV 84 + - 69 * - MIN( 69 )
----
4761

skipif mysql # not compatible
query I rowsort label-6264
SELECT + 36 / 84 + - 69 * - MIN ( 69 )
----
4761

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

skipif mysql # not compatible
query I rowsort label-6265
SELECT 91 + - 39 + - COUNT ( * ) AS col1
----
51

query I rowsort
SELECT 80 * + NULLIF ( - 14, + ( 63 ) ) - 62
----
-1182

query I rowsort
SELECT COALESCE ( + 33, + COALESCE ( 50, - ( - 53 ), - 41 ) ) * 28
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT ALL CASE + + 85 WHEN + MIN( 59 ) THEN - 97 END / + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL CASE + + 85 WHEN + MIN ( 59 ) THEN - 97 END / + 11 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 51 - - 45
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT - 55 * ( - COUNT( * ) ) + 4
----
59

skipif mysql # not compatible
query I rowsort label-6272
SELECT - 55 * ( - COUNT ( * ) ) + 4
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6273
SELECT ALL - + 60 AS col1, + CASE + + CASE CASE ( 27 ) WHEN - COUNT( * ) THEN NULL ELSE 57 - 33 * + 57 END WHEN - 6 THEN + MIN( DISTINCT + 35 ) ELSE 42 END WHEN + 48 / 59 THEN - 39 + - 31 WHEN 78 THEN - CAST( NULL AS SIGNED ) * 8 + 93 ELSE 55 END AS col1
----
-60
55

skipif mysql # not compatible
query II rowsort label-6273
SELECT ALL - + 60 AS col1, + CASE + + CASE CASE ( 27 ) WHEN - COUNT ( * ) THEN NULL ELSE 57 - 33 * + 57 END WHEN - 6 THEN + MIN ( DISTINCT + 35 ) ELSE 42 END WHEN + 48 / 59 THEN - 39 + - 31 WHEN 78 THEN - CAST ( NULL AS INTEGER ) * 8 + 93 ELSE 55 END AS col1
----
-60
55

query I rowsort
SELECT - 30 + + 78 * - 81 col2
----
-6348

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT ALL 99 - - + 50 + + 22 - + COUNT( * ) * 97 * - 78
----
7737

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL 99 - - + 50 + + 22 - + COUNT ( * ) * 97 * - 78
----
7737

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT - 43 + - + ( + + CASE 82 WHEN 97 THEN 19 * CASE 60 WHEN - 49 THEN - 99 * 60 WHEN - 51 THEN NULL END WHEN - 76 / 14 + 8 * + 25 THEN - ( COUNT( * ) ) WHEN 5 * - COUNT( DISTINCT + 47 ) THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6277
SELECT - 43 + - + ( + + CASE 82 WHEN 97 THEN 19 * CASE 60 WHEN - 49 THEN - 99 * 60 WHEN - 51 THEN NULL END WHEN - 76 / 14 + 8 * + 25 THEN - ( COUNT ( * ) ) WHEN 5 * - COUNT ( DISTINCT + 47 ) THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 39 * 9 + + - 7
----
344

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT + + 13 * COUNT( * ) + + 12 + 99
----
124

skipif mysql # not compatible
query I rowsort label-6280
SELECT + + 13 * COUNT ( * ) + + 12 + 99
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT COALESCE ( + 65, + + COUNT( * ) + + COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-6281
SELECT COALESCE ( + 65, + + COUNT ( * ) + + COUNT ( * ) )
----
65

query I rowsort
SELECT + 79 + ( 79 ) AS col2
----
158

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

skipif mysql # not compatible
query I rowsort label-6283
SELECT - - COUNT ( + CAST ( + - 32 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6284
SELECT ( + + SUM( DISTINCT - 68 ) ) DIV 1
----
-68

skipif mysql # not compatible
query I rowsort label-6284
SELECT ( + + SUM ( DISTINCT - 68 ) ) / 1
----
-68

query I rowsort
SELECT - NULLIF ( + 54, ( 2 ) ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT DISTINCT + - 9 * MIN( ALL - + 66 )
----
594

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT + - 9 * MIN ( ALL - + 66 )
----
594

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

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

query I rowsort
SELECT ALL + COALESCE ( + - 66, + 74 + 16, ( 14 ) ) + - 23 * ( + ( 69 ) + - 75 * 56 ) col2
----
94947

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT - 26 * + MAX( DISTINCT 58 )
----
-1508

skipif mysql # not compatible
query I rowsort label-6289
SELECT - 26 * + MAX ( DISTINCT 58 )
----
-1508

query I rowsort
SELECT ( - ( + - CASE - + 57 WHEN + 60 THEN NULL ELSE - 82 END ) ) + 61
----
-21

query I rowsort
SELECT 2 * - 29
----
-58

query I rowsort
SELECT 11 * + 31
----
341

query I rowsort
SELECT ALL + 93 + 49 - - 13
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT DISTINCT 94 + 27 * - - COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT 94 + 27 * - - COUNT ( * )
----
121

query I rowsort
SELECT 1 + + 30
----
31

query I rowsort
SELECT ALL 29 + 93 + - - 95 AS col0
----
217

query I rowsort
SELECT 11 + 88 + - 35
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT ALL + COALESCE ( 39, COUNT( * ) ) * 43
----
1677

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL + COALESCE ( 39, COUNT ( * ) ) * 43
----
1677

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6300
SELECT DISTINCT + 3 * 44 DIV + 21
----
6

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT + 3 * 44 / + 21
----
6

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

skipif mysql # not compatible
query I rowsort label-6301
SELECT - 94 / + + COUNT ( * ) + - COUNT ( * ) AS col2
----
-95

query I rowsort
SELECT 17 * - + 48 * - NULLIF ( 43, 80 ) AS col1
----
35088

onlyif mysql # aggregate syntax: 
query II rowsort label-6303
SELECT DISTINCT - ( COUNT( * ) ) AS col2, 84 * - + 82
----
-1
-6888

skipif mysql # not compatible
query II rowsort label-6303
SELECT DISTINCT - ( COUNT ( * ) ) AS col2, 84 * - + 82
----
-1
-6888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6304
SELECT DISTINCT + COALESCE ( + 24, + - ( 37 ), - 45, - 31 * - COUNT( * ) ) * + CASE MIN( ALL - 80 ) + + COUNT( * ) WHEN 83 * 64 THEN + CAST( - 0 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT + COALESCE ( + 24, + - ( 37 ), - 45, - 31 * - COUNT ( * ) ) * + CASE MIN ( ALL - 80 ) + + COUNT ( * ) WHEN 83 * 64 THEN + CAST ( - 0 AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL + + 20 - - 4 * + 5 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT + MAX( + 0 ) - - MAX( DISTINCT + 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6306
SELECT + MAX ( + 0 ) - - MAX ( DISTINCT + 70 ) AS col0
----
70

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

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

query I rowsort
SELECT 52 * - 30 AS col1
----
-1560

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6310
SELECT DISTINCT - COALESCE ( - 68, + - 79 DIV + 4 + 64 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT - COALESCE ( - 68, + - 79 / + 4 + 64 ) AS col2
----
68

query I rowsort
SELECT DISTINCT + + 90 * + 82 AS col0
----
7380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6312
SELECT - ( - + CASE - - 97 WHEN + + ( + CAST( - CASE + ( + 72 ) WHEN 41 THEN - CASE + COALESCE ( - 28, 16 + NULLIF ( 67, 57 * 14 ) ) WHEN 28 + 23 / + 37 THEN NULL WHEN 75 THEN + COALESCE ( - 69, CAST( + 52 AS SIGNED ) + - SUM( 62 ) * COUNT( * ) ) * - 93 END + COUNT( * ) WHEN + 68 + - SUM( DISTINCT - 99 + 30 ) THEN NULL END AS DECIMAL ) ) / NULLIF ( 15, - 30 - - CASE 42 WHEN 53 THEN 2 * ( + 12 ) + + ( - COUNT( * ) + 22 ) ELSE + CAST( NULL AS DECIMAL ) * + 49 + + 60 END ) + AVG ( 60 ) * - 52 THEN COUNT( * ) + - CAST( - 17 AS SIGNED ) * - 44 WHEN - 13 * + 23 THEN NULL WHEN 75 THEN COALESCE ( - 80, - CAST( NULL AS SIGNED ) * COUNT( * ) ) * + 94 + + 25 ELSE + ( 96 ) END ) * COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-6312
SELECT - ( - + CASE - - 97 WHEN + + ( + CAST ( - CASE + ( + 72 ) WHEN 41 THEN - CASE + COALESCE ( - 28, 16 + NULLIF ( 67, 57 * 14 ) ) WHEN 28 + 23 / + 37 THEN NULL WHEN 75 THEN + COALESCE ( - 69, CAST ( + 52 AS INTEGER ) + - SUM ( 62 ) * COUNT ( * ) ) * - 93 END + COUNT ( * ) WHEN + 68 + - SUM ( DISTINCT - 99 + 30 ) THEN NULL END AS REAL ) ) / NULLIF ( 15, - 30 - - CASE 42 WHEN 53 THEN 2 * ( + 12 ) + + ( - COUNT ( * ) + 22 ) ELSE + CAST ( NULL AS REAL ) * + 49 + + 60 END ) + AVG ( 60 ) * - 52 THEN COUNT ( * ) + - CAST ( - 17 AS INTEGER ) * - 44 WHEN - 13 * + 23 THEN NULL WHEN 75 THEN COALESCE ( - 80, - CAST ( NULL AS INTEGER ) * COUNT ( * ) ) * + 94 + + 25 ELSE + ( 96 ) END ) * COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT 70 + - 10 * + + 78 * - + 83 + COUNT( * ) AS col2
----
64811

skipif mysql # not compatible
query I rowsort label-6313
SELECT 70 + - 10 * + + 78 * - + 83 + COUNT ( * ) AS col2
----
64811

query I rowsort
SELECT ALL - 33 + - 24 AS col1
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT + 10 + 39 + - - COUNT( * ) * - - COUNT( DISTINCT 90 ) * COUNT( ALL - 8 + + 60 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-6316
SELECT + 10 + 39 + - - COUNT ( * ) * - - COUNT ( DISTINCT 90 ) * COUNT ( ALL - 8 + + 60 ) AS col2
----
50

query I rowsort
SELECT DISTINCT CASE + 68 WHEN - 44 - + - 68 THEN + - 53 END / - 29
----
NULL

query I rowsort
SELECT ALL 42 + - 85 AS col0
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6319
SELECT DISTINCT 53 + + CAST( NULL AS DECIMAL ) * - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT 53 + + CAST ( NULL AS REAL ) * - 96 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT DISTINCT - NULLIF ( 4, + 69 * - 16 ) + - SUM( DISTINCT ( - COALESCE ( 14, - 37 ) ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT - NULLIF ( 4, + 69 * - 16 ) + - SUM ( DISTINCT ( - COALESCE ( 14, - 37 ) ) ) AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6322
SELECT COUNT( * ) + CAST( + COUNT( * ) AS SIGNED ) + - 87 * - 36 + - 23 / - CASE 76 + 69 WHEN 92 / 15 THEN 91 WHEN 53 THEN 14 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT COUNT ( * ) + CAST ( + COUNT ( * ) AS INTEGER ) + - 87 * - 36 + - 23 / - CASE 76 + 69 WHEN 92 / 15 THEN 91 WHEN 53 THEN 14 END AS col2
----
NULL

query II rowsort
SELECT ALL 47, - CASE WHEN 1 NOT BETWEEN ( 92 + 75 / - 38 ) AND NULL THEN 23 + - 25 * - 54 END * - 68 AS col0
----
47
93364

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT DISTINCT NULLIF ( 21, - COUNT( * ) ) * - 70 AS col0
----
-1470

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT NULLIF ( 21, - COUNT ( * ) ) * - 70 AS col0
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT + 70 * + + MIN( DISTINCT 35 ) AS col1
----
2450

skipif mysql # not compatible
query I rowsort label-6325
SELECT + 70 * + + MIN ( DISTINCT 35 ) AS col1
----
2450

query I rowsort
SELECT + 76 * + 36 AS col2
----
2736

query I rowsort
SELECT ALL 82 * + 44 * 1
----
3608

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT - 93 DIV 3
----
-31

skipif mysql # not compatible
query I rowsort label-6328
SELECT - 93 / 3
----
-31

query I rowsort
SELECT ALL CASE + ( + 17 ) WHEN + 39 + - - 78 THEN NULL WHEN 51 + + CASE 65 + 91 WHEN 67 / - NULLIF ( NULLIF ( - 30, + 19 ), 28 ) - - 81 THEN ( - 51 ) + ( 72 ) END THEN + 21 ELSE NULL END - ( 41 + 23 )
----
NULL

query II rowsort
SELECT + 40 * - 50 * 27, 54 * 81 AS col1
----
-54000
4374

query I rowsort
SELECT ALL 46 * - - 51 col0
----
2346

query II rowsort
SELECT DISTINCT 21 col2, 24
----
21
24

query I rowsort
SELECT ALL NULLIF ( - 17, - - 6 ) - + 59 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL 83 * + SUM( 28 ) * ( + 92 ) * 4 - + 92 * COUNT( * )
----
855140

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL 83 * + SUM ( 28 ) * ( + 92 ) * 4 - + 92 * COUNT ( * )
----
855140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6335
SELECT - 21 * NULLIF ( CAST( NULL AS SIGNED ), - - 49 * COUNT( * ) * + SUM( DISTINCT - ( 66 ) ) ) * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6335
SELECT - 21 * NULLIF ( CAST ( NULL AS INTEGER ), - - 49 * COUNT ( * ) * + SUM ( DISTINCT - ( 66 ) ) ) * 5
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT - 88 * - 30 + + + CASE + + 49 WHEN - 69 * + 1 THEN NULL WHEN 32 * 0 THEN + ( + 11 ) ELSE NULL END - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6337
SELECT - 88 * - 30 + + + CASE + + 49 WHEN - 69 * + 1 THEN NULL WHEN 32 * 0 THEN + ( + 11 ) ELSE NULL END - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - 9 * + - 97 + - 92 + - 16
----
765

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6339
SELECT + 17 AS col0, - CAST( NULL AS DECIMAL ) * COUNT( * ) AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-6339
SELECT + 17 AS col0, - CAST ( NULL AS REAL ) * COUNT ( * ) AS col2
----
17
NULL

query I rowsort
SELECT ALL + 89 * - 26 AS col2
----
-2314

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6341
SELECT - 87 DIV + MIN( ALL + 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-6341
SELECT - 87 / + MIN ( ALL + 78 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT + 21 * COUNT( * ) * + 78 * 87 + ( + COUNT( * ) )
----
142507

skipif mysql # not compatible
query I rowsort label-6342
SELECT + 21 * COUNT ( * ) * + 78 * 87 + ( + COUNT ( * ) )
----
142507

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6343
SELECT - 96 * - 20 * - 64 + + + ( + COUNT( * ) ) + - 52 DIV 20 AS col2
----
-122881

skipif mysql # not compatible
query I rowsort label-6343
SELECT - 96 * - 20 * - 64 + + + ( + COUNT ( * ) ) + - 52 / 20 AS col2
----
-122881

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6344
SELECT 34 DIV 37 + + 89, MIN( + ( - 97 ) ) AS col2
----
89
-97

skipif mysql # not compatible
query II rowsort label-6344
SELECT 34 / 37 + + 89, MIN ( + ( - 97 ) ) AS col2
----
89
-97

query I rowsort
SELECT ALL - - 0 * + 7 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL + 18 * 20 + - 56 + + - 26 + - 54 + + 25 * COUNT( * ) * 47 AS col2
----
1399

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL + 18 * 20 + - 56 + + - 26 + - 54 + + 25 * COUNT ( * ) * 47 AS col2
----
1399

query I rowsort
SELECT - + 59 + 5
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6348
SELECT - 8 DIV - 3 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6348
SELECT - 8 / - 3 AS col2
----
2

query I rowsort
SELECT ALL - - 25 * - 93 AS col2
----
-2325

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6350
SELECT ALL - 2 DIV + 85 - - COUNT( * ) AS col2, + ( + 57 )
----
1
57

skipif mysql # not compatible
query II rowsort label-6350
SELECT ALL - 2 / + 85 - - COUNT ( * ) AS col2, + ( + 57 )
----
1
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6351
SELECT ALL COUNT( * ) * - 67 + - - 85 * + 84 + + 28 DIV ( 37 DIV COUNT( * ) ) AS col2
----
7073

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL COUNT ( * ) * - 67 + - - 85 * + 84 + + 28 / ( 37 / COUNT ( * ) ) AS col2
----
7073

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL NULLIF ( - COUNT( * ), + + 37 * - + 54 ) * 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL NULLIF ( - COUNT ( * ), + + 37 * - + 54 ) * 1 AS col2
----
-1

query I rowsort
SELECT ALL 1 + - - 5 + + + 2
----
8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6355
SELECT ALL 91 col2, + COALESCE ( + - 79, + 87 * - COUNT( * ), + CAST( 16 AS SIGNED ) )
----
91
-79

skipif mysql # not compatible
query II rowsort label-6355
SELECT ALL 91 col2, + COALESCE ( + - 79, + 87 * - COUNT ( * ), + CAST ( 16 AS INTEGER ) )
----
91
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-6356
SELECT 59 AS col1, - COALESCE ( - 37, + NULLIF ( COUNT( * ), + + 11 + AVG ( + 16 ) ) ) * CASE 8 WHEN 55 + + 57 THEN NULL ELSE - ( COALESCE ( - ( - 52 ), - 39 * + COUNT( 84 ) ) ) + - 68 END AS col1
----
59
-4440

skipif mysql # not compatible
query II rowsort label-6356
SELECT 59 AS col1, - COALESCE ( - 37, + NULLIF ( COUNT ( * ), + + 11 + AVG ( + 16 ) ) ) * CASE 8 WHEN 55 + + 57 THEN NULL ELSE - ( COALESCE ( - ( - 52 ), - 39 * + COUNT ( 84 ) ) ) + - 68 END AS col1
----
59
-4440

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT + 94 - - - 98 - + - COALESCE ( - 59, 17, + - 81 + 29 * COUNT( * ) ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6357
SELECT + 94 - - - 98 - + - COALESCE ( - 59, 17, + - 81 + 29 * COUNT ( * ) ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT DISTINCT COUNT( * ) - + 40 + - 68 AS col2
----
-107

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT COUNT ( * ) - + 40 + - 68 AS col2
----
-107

query I rowsort
SELECT + 70 + - 0 col1
----
70

query I rowsort
SELECT DISTINCT 8 col2
----
8

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

skipif mysql # not compatible
query I rowsort label-6361
SELECT + 58 + - COUNT ( DISTINCT + 94 ) * 10 + - 95
----
-47

query I rowsort
SELECT + 17 * + 61 AS col2
----
1037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6363
SELECT ALL 28 * + COALESCE ( - COUNT( * ), 88 * - + 42 - - 45 + - 42 * CAST( 52 + + 72 AS SIGNED ) * 28 ) * CASE - ( - 91 ) WHEN - 41 THEN NULL ELSE + 67 END
----
-1876

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL 28 * + COALESCE ( - COUNT ( * ), 88 * - + 42 - - 45 + - 42 * CAST ( 52 + + 72 AS INTEGER ) * 28 ) * CASE - ( - 91 ) WHEN - 41 THEN NULL ELSE + 67 END
----
-1876

query I rowsort
SELECT + 34 + 87
----
121

query II rowsort
SELECT ALL 16 AS col2, 69
----
16
69

query II rowsort
SELECT ALL 68 AS col1, + 49 + - 58
----
68
-9

query I rowsort
SELECT + 10 + + + 64 * - - 37 * - - 8 col2
----
18954

query I rowsort
SELECT ALL 81 * + 3
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT ALL 92 * - - 47 * + - COALESCE ( + - COUNT( * ), + COUNT( * ) ) * - 52 AS col2
----
-224848

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL 92 * - - 47 * + - COALESCE ( + - COUNT ( * ), + COUNT ( * ) ) * - 52 AS col2
----
-224848

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

query I rowsort
SELECT + 62 * - 48 AS col1
----
-2976

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6372
SELECT - 61 * + 43 + + MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) + - 40 + + 64 * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6372
SELECT - 61 * + 43 + + MIN ( DISTINCT - CAST ( NULL AS REAL ) ) + - 40 + + 64 * - 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6373
SELECT ALL - COUNT( * ) DIV + 32 + 42 + + 55 - 72
----
25

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL - COUNT ( * ) / + 32 + 42 + + 55 - 72
----
25

query II rowsort
SELECT + 63 col2, 9 col1
----
63
9

query II rowsort
SELECT ALL + 71 AS col1, 28
----
71
28

query II rowsort
SELECT ALL + + 73 AS col2, 39
----
73
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT + - 88 * - + COALESCE ( - 7, + 0 * 19 + - - NULLIF ( - SUM( - 88 ), 13 ) + + 22, NULLIF ( - 81, 8 ) + 89 ) AS col0
----
-616

skipif mysql # not compatible
query I rowsort label-6377
SELECT + - 88 * - + COALESCE ( - 7, + 0 * 19 + - - NULLIF ( - SUM ( - 88 ), 13 ) + + 22, NULLIF ( - 81, 8 ) + 89 ) AS col0
----
-616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT + 65 - - CAST( NULL AS SIGNED ) + - + 6 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT + 65 - - CAST ( NULL AS INTEGER ) + - + 6 col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6380
SELECT + MAX( DISTINCT + 59 ) * ( + 7 ) - + CAST( + 36 AS SIGNED ) * - COUNT( * ) AS col1
----
449

skipif mysql # not compatible
query I rowsort label-6380
SELECT + MAX ( DISTINCT + 59 ) * ( + 7 ) - + CAST ( + 36 AS INTEGER ) * - COUNT ( * ) AS col1
----
449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6381
SELECT - CAST( NULL AS SIGNED ) * - 19 / + MAX( ( - CAST( - 87 AS DECIMAL ) ) ) / 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT - CAST ( NULL AS INTEGER ) * - 19 / + MAX ( ( - CAST ( - 87 AS REAL ) ) ) / 37
----
NULL

query I rowsort
SELECT ALL - - 73 * - - 95 * + CASE 16 WHEN 23 THEN + 87 END * + 18
----
NULL

query I rowsort
SELECT - + 87 - 78 col0
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-6384
SELECT - 83 DIV 13 col0
----
-6

skipif mysql # not compatible
query I rowsort label-6384
SELECT - 83 / 13 col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6385
SELECT 11 * - CAST( 66 AS SIGNED ) * 91
----
-66066

skipif mysql # not compatible
query I rowsort label-6385
SELECT 11 * - CAST ( 66 AS INTEGER ) * 91
----
-66066

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT ALL + COUNT( * ) - - - 51
----
-50

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL + COUNT ( * ) - - - 51
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-6387
SELECT 85 + - 11 DIV + - 48
----
85

skipif mysql # not compatible
query I rowsort label-6387
SELECT 85 + - 11 / + - 48
----
85

query I rowsort
SELECT 95 + NULLIF ( - + 75, 19 ) AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6389
SELECT ALL - MIN( + + 90 ) DIV 87
----
-1

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL - MIN ( + + 90 ) / 87
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6390
SELECT 1 * - CAST( - 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-6390
SELECT 1 * - CAST ( - 61 AS INTEGER )
----
61

query I rowsort
SELECT 36 + + 30 * 36 AS col2
----
1116

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6392
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 31 col1, 74 AS col1
----
NULL
74

skipif mysql # not compatible
query II rowsort label-6392
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 31 col1, 74 AS col1
----
NULL
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6393
SELECT 20 DIV COUNT( * ) * - + 89 * + - CAST( - 4 AS SIGNED ) * - ( - 47 )
----
-334640

skipif mysql # not compatible
query I rowsort label-6393
SELECT 20 / COUNT ( * ) * - + 89 * + - CAST ( - 4 AS INTEGER ) * - ( - 47 )
----
-334640

query I rowsort
SELECT DISTINCT 87 * + 75
----
6525

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT 29 + - + COUNT( ALL + 48 )
----
28

skipif mysql # not compatible
query I rowsort label-6395
SELECT 29 + - + COUNT ( ALL + 48 )
----
28

query I rowsort
SELECT 55 * + - 67 * + 82 col0
----
-302170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6397
SELECT 26 + + - CAST( + + 52 AS SIGNED ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-6397
SELECT 26 + + - CAST ( + + 52 AS INTEGER ) AS col1
----
-26

query I rowsort
SELECT ALL + 73 + - + 65
----
8

query I rowsort
SELECT + 69 - + 73 + - - 27 AS col1
----
23

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6402
SELECT + 37 DIV 18 + + COALESCE ( - MIN( ALL + 22 ), - 44 + + 78 + + 63 ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-6402
SELECT + 37 / 18 + + COALESCE ( - MIN ( ALL + 22 ), - 44 + + 78 + + 63 ) col0
----
-20

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6404
SELECT + - 66 DIV - + 1 - - COUNT( * ) + - - NULLIF ( 14, + - 64 * + 90 DIV - CASE 49 WHEN 87 THEN COUNT( * ) * 82 ELSE - COUNT( * ) END ) - 32
----
49

skipif mysql # not compatible
query I rowsort label-6404
SELECT + - 66 / - + 1 - - COUNT ( * ) + - - NULLIF ( 14, + - 64 * + 90 / - CASE 49 WHEN 87 THEN COUNT ( * ) * 82 ELSE - COUNT ( * ) END ) - 32
----
49

query I rowsort
SELECT ALL - 46 * - 56 AS col0
----
2576

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT + CASE + NULLIF ( NULLIF ( - COUNT( * ), - + 71 / - 95 * - MIN( ALL + 27 ) + 72 ), 28 / COUNT( * ) ) WHEN 67 THEN 26 - 17 * COUNT( * ) ELSE 45 END AS col0
----
45

skipif mysql # not compatible
query I rowsort label-6406
SELECT + CASE + NULLIF ( NULLIF ( - COUNT ( * ), - + 71 / - 95 * - MIN ( ALL + 27 ) + 72 ), 28 / COUNT ( * ) ) WHEN 67 THEN 26 - 17 * COUNT ( * ) ELSE 45 END AS col0
----
45

query I rowsort
SELECT + ( - 45 ) * - 87 - - 18 + - + 31 + 38 AS col0
----
3940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT + 46 - - ( 85 ) * 87 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT + 46 - - ( 85 ) * 87 * + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL - 96 - + 40 + + 59 * 30 * + 44 * - - 70 AS col1
----
5451464

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

query I rowsort
SELECT - 12 + NULLIF ( - 14, - 12 )
----
-26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT COUNT( + 13 ) * - 7 + + 6 * - - COUNT( * ) - + 35 + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-6413
SELECT COUNT ( + 13 ) * - 7 + + 6 * - - COUNT ( * ) - + 35 + COUNT ( * )
----
-35

query II rowsort
SELECT 85 * + 32 * + 33, - 4 + - - 55 + + - 57 * - 44 AS col2
----
89760
2559

query I rowsort
SELECT 20 * - + 72 AS col1
----
-1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6416
SELECT 79 AS col0, CASE - + 57 WHEN + NULLIF ( + - 93, + - 74 ) THEN NULL WHEN - 98 THEN - 57 * - 75 ELSE COALESCE ( CASE 12 WHEN + COUNT( * ) THEN - 69 * - 44 + - COUNT( * ) ELSE - 73 * - 7 END, - 64 ) DIV - 48 END - 24
----
79
-34

skipif mysql # not compatible
query II rowsort label-6416
SELECT 79 AS col0, CASE - + 57 WHEN + NULLIF ( + - 93, + - 74 ) THEN NULL WHEN - 98 THEN - 57 * - 75 ELSE COALESCE ( CASE 12 WHEN + COUNT ( * ) THEN - 69 * - 44 + - COUNT ( * ) ELSE - 73 * - 7 END, - 64 ) / - 48 END - 24
----
79
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6417
SELECT ALL - CASE + - 2 WHEN - 28 THEN NULL ELSE CAST( NULL AS SIGNED ) + - + 8 * COALESCE ( + 97, ( 96 ) + - 82 ) + - 66 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL - CASE + - 2 WHEN - 28 THEN NULL ELSE CAST ( NULL AS INTEGER ) + - + 8 * COALESCE ( + 97, ( 96 ) + - 82 ) + - 66 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 75 * 44 AS col0
----
-3300

query I rowsort
SELECT 40 + - 32 col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT COUNT( * ) * - 92 * - 5 * 29
----
13340

skipif mysql # not compatible
query I rowsort label-6420
SELECT COUNT ( * ) * - 92 * - 5 * 29
----
13340

query II rowsort
SELECT DISTINCT 5 AS col1, 8 AS col0
----
5
8

query II rowsort
SELECT DISTINCT 6 AS col2, - 17 AS col1
----
6
-17

query II rowsort
SELECT 16 + - + 28 * - 37 + + + 67 * ( + 45 ) AS col1, 47 AS col2
----
4067
47

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6425
SELECT 26 + - - 61 + + 31 DIV - + 97 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-6425
SELECT 26 + - - 61 + + 31 / - + 97 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT 61 + NULLIF ( - - 60, - 45 ) + - 18 + 75 + - + 93 * 62 + COUNT( * ) AS col1
----
-5587

skipif mysql # not compatible
query I rowsort label-6426
SELECT 61 + NULLIF ( - - 60, - 45 ) + - 18 + 75 + - + 93 * 62 + COUNT ( * ) AS col1
----
-5587

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT 71 + - COUNT( * ) - - - 71 * 51 * - ( + NULLIF ( - 0, - 22 ) ) - - COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6427
SELECT 71 + - COUNT ( * ) - - - 71 * 51 * - ( + NULLIF ( - 0, - 22 ) ) - - COUNT ( * ) AS col2
----
71

query I rowsort
SELECT ALL + 95 + + 81 AS col1
----
176

query I rowsort
SELECT 51 + - 44 AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6430
SELECT DISTINCT + NULLIF ( + 30, COUNT( - - 86 ) ) DIV - ( + 58 ) * + - COUNT( DISTINCT + 68 )
----
0

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT + NULLIF ( + 30, COUNT ( - - 86 ) ) / - ( + 58 ) * + - COUNT ( DISTINCT + 68 )
----
0

query I rowsort
SELECT - 67 + 90
----
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT DISTINCT MAX( - - 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT MAX ( - - 30 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT ALL + + 93 + + + SUM( DISTINCT 13 ) * 83 + + COUNT( * )
----
1173

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL + + 93 + + + SUM ( DISTINCT 13 ) * 83 + + COUNT ( * )
----
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT + COUNT( * ) + + 85 * SUM( - - 82 ) AS col1
----
6971

skipif mysql # not compatible
query I rowsort label-6435
SELECT + COUNT ( * ) + + 85 * SUM ( - - 82 ) AS col1
----
6971

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT DISTINCT - - SUM( DISTINCT - 44 ) * + COUNT( * ) + - 99 + 17
----
-126

skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT - - SUM ( DISTINCT - 44 ) * + COUNT ( * ) + - 99 + 17
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT + COUNT( * ) + 11 - - + 70 * 12 * + - 12 AS col0
----
-10068

skipif mysql # not compatible
query I rowsort label-6437
SELECT + COUNT ( * ) + 11 - - + 70 * 12 * + - 12 AS col0
----
-10068

query II rowsort
SELECT ALL - 93 AS col0, 55
----
-93
55

onlyif mysql # DIV for integer division: 
query II rowsort label-6439
SELECT - - 5 DIV + 39 * + 62 + 43 AS col0, - 86 DIV + 15 AS col2
----
43
-5

skipif mysql # not compatible
query II rowsort label-6439
SELECT - - 5 / + 39 * + 62 + 43 AS col0, - 86 / + 15 AS col2
----
43
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT DISTINCT + - MAX( + - 88 ) * - 97 * - - 33 * - 75 AS col2
----
21126600

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT + - MAX ( + - 88 ) * - 97 * - - 33 * - 75 AS col2
----
21126600

query II rowsort
SELECT DISTINCT - + 18 AS col0, 31 AS col2
----
-18
31

query II rowsort
SELECT + 66 AS col0, 49 col0
----
66
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT ALL + 34 * + 58 * - + 45 * COUNT( * ) AS col1
----
-88740

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL + 34 * + 58 * - + 45 * COUNT ( * ) AS col1
----
-88740

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

skipif mysql # not compatible
query II rowsort label-6444
SELECT DISTINCT - + 75, - ( - COUNT ( * ) ) col2
----
-75
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT + NULLIF ( + 61, - SUM( ALL - + 37 ) ) col2
----
61

skipif mysql # not compatible
query I rowsort label-6446
SELECT + NULLIF ( + 61, - SUM ( ALL - + 37 ) ) col2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-6447
SELECT + - 79 DIV - 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6447
SELECT + - 79 / - 66 AS col1
----
1

query I rowsort
SELECT ALL - 73 * + 95 AS col1
----
-6935

query I rowsort
SELECT + 24 * 40 col2
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT + CASE COUNT( * ) WHEN + 76 * + COUNT( * ) THEN + 34 WHEN - 90 THEN NULL ELSE COUNT( * ) * + + MAX( + + 45 ) + - 86 * - 5 END
----
475

skipif mysql # not compatible
query I rowsort label-6450
SELECT + CASE COUNT ( * ) WHEN + 76 * + COUNT ( * ) THEN + 34 WHEN - 90 THEN NULL ELSE COUNT ( * ) * + + MAX ( + + 45 ) + - 86 * - 5 END
----
475

onlyif mysql # DIV for integer division: 
query I rowsort label-6451
SELECT + 41 DIV - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6451
SELECT + 41 / - 92 AS col2
----
0

query I rowsort
SELECT ALL + 62 * 60
----
3720

onlyif mysql # DIV for integer division: 
query I rowsort label-6453
SELECT ALL 5 DIV + - 41 * - - 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL 5 / + - 41 * - - 28 AS col2
----
0

query I rowsort
SELECT DISTINCT + 44 + + 66 - - 44 + + 72 * - - 33 AS col0
----
2530

query I rowsort
SELECT + CASE + ( - - ( + 45 ) ) WHEN + 0 THEN - 57 + - 11 END
----
NULL

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

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

query I rowsort
SELECT + 87 * + - 77 * 88
----
-589512

query I rowsort
SELECT + 51 * 58
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT - CASE - COUNT( * ) WHEN - 88 * + - ( 20 ) + - + 36 + + 2 + CASE + ( 43 ) WHEN 33 THEN COALESCE ( COUNT( * ), COALESCE ( 10, - COUNT( * ) * - 79, 76 * 66 ) ) ELSE + COUNT( * ) END * COUNT( * ) / 20 THEN - 38 END + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT - CASE - COUNT ( * ) WHEN - 88 * + - ( 20 ) + - + 36 + + 2 + CASE + ( 43 ) WHEN 33 THEN COALESCE ( COUNT ( * ), COALESCE ( 10, - COUNT ( * ) * - 79, 76 * 66 ) ) ELSE + COUNT ( * ) END * COUNT ( * ) / 20 THEN - 38 END + 34
----
NULL

query I rowsort
SELECT ALL 63 + + 28 AS col2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6461
SELECT ALL ( 58 ) * - CAST( NULL AS SIGNED ) * + 2 / + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6461
SELECT ALL ( 58 ) * - CAST ( NULL AS INTEGER ) * + 2 / + 68
----
NULL

query I rowsort
SELECT DISTINCT 68 + + - NULLIF ( 26, - - 68 )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6463
SELECT - 80 + - ( - 77 ) + + - 92 AS col0, - 4 * - 53 + + COUNT( * ) + 59 AS col0
----
-95
272

skipif mysql # not compatible
query II rowsort label-6463
SELECT - 80 + - ( - 77 ) + + - 92 AS col0, - 4 * - 53 + + COUNT ( * ) + 59 AS col0
----
-95
272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6464
SELECT + - 65 - 16 + + - 40 * COUNT( * ) AS col2, - COUNT( * ) + - + MAX( DISTINCT - + COALESCE ( - - CASE + + 47 WHEN 86 * - CAST( NULL AS SIGNED ) THEN NULL ELSE + 63 END, 32 ) )
----
-121
62

skipif mysql # not compatible
query II rowsort label-6464
SELECT + - 65 - 16 + + - 40 * COUNT ( * ) AS col2, - COUNT ( * ) + - + MAX ( DISTINCT - + COALESCE ( - - CASE + + 47 WHEN 86 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 63 END, 32 ) )
----
-121
62

query I rowsort
SELECT + + 90 + + 82
----
172

query II rowsort
SELECT + ( 23 ), + 8 AS col0
----
23
8

query I rowsort
SELECT + 31 + 81 col0
----
112

query I rowsort
SELECT - + 51 * - - 94 col2
----
-4794

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

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

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

query II rowsort
SELECT - + COALESCE ( - - 18, + 75 ) - - 27, 48 * 31 AS col2
----
9
1488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6472
SELECT ALL - - MAX( 88 ) DIV + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL - - MAX ( 88 ) / + 98 AS col0
----
0

query I rowsort
SELECT - - 74 + - + ( - 92 ) + 24
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT ALL - SUM( DISTINCT - + 64 ) - 37 * - 43 + + - 97
----
1558

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL - SUM ( DISTINCT - + 64 ) - 37 * - 43 + + - 97
----
1558

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6476
SELECT ALL + ( + 42 ) AS col1, 67 * CAST( + 85 AS SIGNED ) AS col0
----
42
5695

skipif mysql # not compatible
query II rowsort label-6476
SELECT ALL + ( + 42 ) AS col1, 67 * CAST ( + 85 AS INTEGER ) AS col0
----
42
5695

query I rowsort
SELECT - 3 * + 84 AS col2
----
-252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6478
SELECT 13 DIV + 5 + + MAX( DISTINCT - 67 ) * - 65 + 36 AS col2
----
4393

skipif mysql # not compatible
query I rowsort label-6478
SELECT 13 / + 5 + + MAX ( DISTINCT - 67 ) * - 65 + 36 AS col2
----
4393

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT ALL + - COUNT( * ) * 54 - - 50 + - + 27 * NULLIF ( 82, + 5 - - + 97 * - + 33 ) AS col2
----
-2218

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL + - COUNT ( * ) * 54 - - 50 + - + 27 * NULLIF ( 82, + 5 - - + 97 * - + 33 ) AS col2
----
-2218

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6480
SELECT - - COUNT( * ) DIV - SUM( DISTINCT - 49 ) - - 36 col0, + COALESCE ( - + 42, - 41 + CASE 60 WHEN 5 THEN 35 + 56 END + 4 * + COUNT( * ) * + 31 )
----
36
-42

skipif mysql # not compatible
query II rowsort label-6480
SELECT - - COUNT ( * ) / - SUM ( DISTINCT - 49 ) - - 36 col0, + COALESCE ( - + 42, - 41 + CASE 60 WHEN 5 THEN 35 + 56 END + 4 * + COUNT ( * ) * + 31 )
----
36
-42

query I rowsort
SELECT - 70 * - CASE WHEN ( NOT ( ( + 81 ) >= 60 + + - 87 ) ) THEN 20 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6482
SELECT 64 * - CAST( NULL AS SIGNED ) + + COALESCE ( + + 35, + NULLIF ( + - CAST( NULL AS SIGNED ), + + 62 + 55 ), + 50 * - 75 ) + CASE - 52 WHEN 78 THEN 88 * COUNT( * ) ELSE 12 * 94 + 97 END * COALESCE ( 78 + + 66, COUNT( * ) ) + - MAX( ALL - 17 + + 48 ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6482
SELECT 64 * - CAST ( NULL AS INTEGER ) + + COALESCE ( + + 35, + NULLIF ( + - CAST ( NULL AS INTEGER ), + + 62 + 55 ), + 50 * - 75 ) + CASE - 52 WHEN 78 THEN 88 * COUNT ( * ) ELSE 12 * 94 + 97 END * COALESCE ( 78 + + 66, COUNT ( * ) ) + - MAX ( ALL - 17 + + 48 ) * - 5
----
NULL

query I rowsort
SELECT + 30 - - - 12 AS col2
----
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6485
SELECT - 0 * + NULLIF ( 9, - CAST( NULL AS SIGNED ) ) * - SUM( ALL + 15 ) col2, ( + 10 ) * 35 + 40 AS col1
----
0
390

skipif mysql # not compatible
query II rowsort label-6485
SELECT - 0 * + NULLIF ( 9, - CAST ( NULL AS INTEGER ) ) * - SUM ( ALL + 15 ) col2, ( + 10 ) * 35 + 40 AS col1
----
0
390

query I rowsort
SELECT ALL + 76 * - 87 * - + 66
----
436392

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT + SUM( ALL 88 ) + - - 64 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-6488
SELECT + SUM ( ALL 88 ) + - - 64 AS col2
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6489
SELECT ALL + COUNT( * ) * COUNT( * ) + 79 + - 3 + + - 13 + 89 DIV + NULLIF ( + - ( - 30 ), + + 31 * 75 ) - + 74
----
-8

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL + COUNT ( * ) * COUNT ( * ) + 79 + - 3 + + - 13 + 89 / + NULLIF ( + - ( - 30 ), + + 31 * 75 ) - + 74
----
-8

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

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

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

skipif mysql # not compatible
query I rowsort label-6491
SELECT - 32 * + 77 + - COUNT ( * ) - - 24 AS col2
----
-2441

query II rowsort
SELECT - 34 * - 28 * 63, 96 AS col0
----
59976
96

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT ALL 31 * ( + + SUM( DISTINCT - COALESCE ( + 10, + 31, + 47 ) ) ) + - 92
----
-402

skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL 31 * ( + + SUM ( DISTINCT - COALESCE ( + 10, + 31, + 47 ) ) ) + - 92
----
-402

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

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

query I rowsort
SELECT DISTINCT + 64 * + 39 + + 78
----
2574

query I rowsort
SELECT + 4 * - ( 7 )
----
-28

query I rowsort
SELECT DISTINCT - 31 * 37 + + 60
----
-1087

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6501
SELECT ALL CAST( CAST( + + 95 AS SIGNED ) AS SIGNED ) * - 20 * + 90 AS col2
----
-171000

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL CAST ( CAST ( + + 95 AS INTEGER ) AS INTEGER ) * - 20 * + 90 AS col2
----
-171000

query I rowsort
SELECT + ( - 53 ) * + 5 + - 92
----
-357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6503
SELECT ALL CASE ( + 95 ) WHEN NULLIF ( - CAST( NULL AS SIGNED ), - 90 * + - 99 ) - 58 THEN NULL WHEN + 16 DIV - 44 * ( - ( 36 ) * + COUNT( ALL 61 ) ) + - NULLIF ( + COUNT( * ), 32 ) * COUNT( * ) THEN 37 ELSE + COUNT( - 89 ) END * + ( + 95 + - 70 ) + + MAX( ALL COALESCE ( 37, - 34 ) ) DIV + 55
----
25

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL CASE ( + 95 ) WHEN NULLIF ( - CAST ( NULL AS INTEGER ), - 90 * + - 99 ) - 58 THEN NULL WHEN + 16 / - 44 * ( - ( 36 ) * + COUNT ( ALL 61 ) ) + - NULLIF ( + COUNT ( * ), 32 ) * COUNT ( * ) THEN 37 ELSE + COUNT ( - 89 ) END * + ( + 95 + - 70 ) + + MAX ( ALL COALESCE ( 37, - 34 ) ) / + 55
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT - NULLIF ( - - 38, + 65 * MIN( ALL + 14 ) + 62 )
----
-38

skipif mysql # not compatible
query I rowsort label-6504
SELECT - NULLIF ( - - 38, + 65 * MIN ( ALL + 14 ) + 62 )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6505
SELECT + + 61 - + + CAST( NULL AS SIGNED ) + + + 32 / 55 + - 75 + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6505
SELECT + + 61 - + + CAST ( NULL AS INTEGER ) + + + 32 / 55 + - 75 + + 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6506
SELECT DISTINCT CASE - - MAX( + + 15 ) WHEN - AVG ( 9 ) THEN 15 + - + 38 ELSE - 79 + + - CAST( NULL AS DECIMAL ) - - + 83 / - 52 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT CASE - - MAX ( + + 15 ) WHEN - AVG ( 9 ) THEN 15 + - + 38 ELSE - 79 + + - CAST ( NULL AS REAL ) - - + 83 / - 52 END AS col1
----
NULL

query I rowsort
SELECT - 21 col1
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT ALL ( 78 ) * + NULLIF ( - ( + 85 ), + - 92 * - 33 - 49 + 3 * + 33 * COUNT( * ) - 30 ) AS col1
----
-6630

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL ( 78 ) * + NULLIF ( - ( + 85 ), + - 92 * - 33 - 49 + 3 * + 33 * COUNT ( * ) - 30 ) AS col1
----
-6630

query I rowsort
SELECT + - 78 + 15 - + 7 * - - NULLIF ( 26, - 12 * + 80 - - 7 ) AS col0
----
-245

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6511
SELECT DISTINCT 30 * + CASE - + CAST( NULL AS SIGNED ) WHEN + 55 THEN NULL ELSE - - 87 END, + 85 DIV + 65 AS col1
----
2610
1

skipif mysql # not compatible
query II rowsort label-6511
SELECT DISTINCT 30 * + CASE - + CAST ( NULL AS INTEGER ) WHEN + 55 THEN NULL ELSE - - 87 END, + 85 / + 65 AS col1
----
2610
1

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

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL MIN ( 10 )
----
10

query I rowsort
SELECT ALL - 39 * + 23
----
-897

query I rowsort
SELECT 43 + + + NULLIF ( ( + - 84 ), 19 * - + 34 )
----
-41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT 20 + COALESCE ( + 89, 59 + + 14 ) + COALESCE ( - 11, COUNT( * ) + + SUM( ALL 32 ) + 46 * 22, + 69 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6516
SELECT 20 + COALESCE ( + 89, 59 + + 14 ) + COALESCE ( - 11, COUNT ( * ) + + SUM ( ALL 32 ) + 46 * 22, + 69 ) AS col0
----
98

query I rowsort
SELECT - 6 * + 25
----
-150

query II rowsort
SELECT ALL 39 col2, + ( 5 ) AS col0
----
39
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT 22 * + 46 * + 51 + - COUNT( * )
----
51611

skipif mysql # not compatible
query I rowsort label-6519
SELECT 22 * + 46 * + 51 + - COUNT ( * )
----
51611

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT - COUNT( * ) + - 88 * + - 25 AS col1
----
2199

skipif mysql # not compatible
query I rowsort label-6520
SELECT - COUNT ( * ) + - 88 * + - 25 AS col1
----
2199

query II rowsort
SELECT 72, + 68 AS col1
----
72
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT ALL + 13 + - - 72 * 82 - - 93 / - - 94 * - - COUNT( * ) * CASE + 42 WHEN - CASE SUM( 99 ) WHEN COUNT( * ) THEN NULL WHEN ( 39 ) + 79 THEN NULL ELSE 46 + 28 END THEN + 34 ELSE NULL END * + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL + 13 + - - 72 * 82 - - 93 / - - 94 * - - COUNT ( * ) * CASE + 42 WHEN - CASE SUM ( 99 ) WHEN COUNT ( * ) THEN NULL WHEN ( 39 ) + 79 THEN NULL ELSE 46 + 28 END THEN + 34 ELSE NULL END * + 67 AS col1
----
NULL

query I rowsort
SELECT ALL - 98 * 88
----
-8624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6524
SELECT ALL + CAST( NULL AS SIGNED ) + + 55 - + 43 * + 47 * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL + CAST ( NULL AS INTEGER ) + + 55 - + 43 * + 47 * - 62
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-6526
SELECT 39 / - + 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL - COUNT( ALL + 63 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL - COUNT ( ALL + 63 ) col1
----
-1

query II rowsort
SELECT 8 AS col2, COALESCE ( - 99, + COALESCE ( - CASE 9 WHEN - 38 + 51 THEN 24 END, + 33 ) )
----
8
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6529
SELECT - 28 * 92 DIV 85 * + 14 + + 3
----
-417

skipif mysql # not compatible
query I rowsort label-6529
SELECT - 28 * 92 / 85 * + 14 + + 3
----
-417

query I rowsort
SELECT 71 + + + 46 + + 69
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6531
SELECT ALL + CAST( 31 AS SIGNED ) + + 17 - - 6 + + 45 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL + CAST ( 31 AS INTEGER ) + + 17 - - 6 + + 45 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT DISTINCT - NULLIF ( + + 74, 99 + - 55 * MIN( - 94 ) / + - 58 + - AVG ( + 9 ) * + COUNT( * ) ) + + 36
----
-38

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT - NULLIF ( + + 74, 99 + - 55 * MIN ( - 94 ) / + - 58 + - AVG ( + 9 ) * + COUNT ( * ) ) + + 36
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT ALL 75 + + + COUNT( * ) * 39 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL 75 + + + COUNT ( * ) * 39 AS col1
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6534
SELECT DISTINCT - NULLIF ( - 96, MAX( ALL + CAST( NULL AS SIGNED ) ) + + - 5 + + + COUNT( * ) )
----
96

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT - NULLIF ( - 96, MAX ( ALL + CAST ( NULL AS INTEGER ) ) + + - 5 + + + COUNT ( * ) )
----
96

query II rowsort
SELECT 24 AS col0, ( 57 ) + + 81 * - 12
----
24
-915

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

query I rowsort
SELECT 89 * - - 27 AS col2
----
2403

query I rowsort
SELECT + 28 * + 79 + + - 3
----
2209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6539
SELECT - CASE 30 WHEN - - 99 * 61 THEN - - 32 + CAST( - 95 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT - CASE 30 WHEN - - 99 * 61 THEN - - 32 + CAST ( - 95 AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT MAX( 19 ) * ( - 60 )
----
-1140

skipif mysql # not compatible
query I rowsort label-6540
SELECT MAX ( 19 ) * ( - 60 )
----
-1140

onlyif mysql # aggregate syntax: 
query III rowsort label-6541
SELECT DISTINCT - COUNT( * ), - 62 col1, - 67 AS col1
----
-1
-62
-67

skipif mysql # not compatible
query III rowsort label-6541
SELECT DISTINCT - COUNT ( * ), - 62 col1, - 67 AS col1
----
-1
-62
-67

query I rowsort
SELECT DISTINCT - + 82 - 97 col2
----
-179

query II rowsort
SELECT ALL 22, + ( + + 70 ) AS col0
----
22
70

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

query I rowsort
SELECT 99 + + - 7 AS col0
----
92

query I rowsort
SELECT 14 * 47 AS col1
----
658

query I rowsort
SELECT 58 * + 16 AS col1
----
928

onlyif mysql # aggregate syntax: 
query II rowsort label-6548
SELECT COUNT( * ) + - 11 AS col2, ( - 73 ) AS col0
----
-10
-73

skipif mysql # not compatible
query II rowsort label-6548
SELECT COUNT ( * ) + - 11 AS col2, ( - 73 ) AS col0
----
-10
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6549
SELECT 31 AS col0, ( 3 ) * 21 AS col0, ( + 49 ) * + 2 / + COALESCE ( + + 7, + 86 ) + + - MAX( 96 ) + - 87 * - CAST( NULL AS SIGNED )
----
31
63
NULL

skipif mysql # not compatible
query III rowsort label-6549
SELECT 31 AS col0, ( 3 ) * 21 AS col0, ( + 49 ) * + 2 / + COALESCE ( + + 7, + 86 ) + + - MAX ( 96 ) + - 87 * - CAST ( NULL AS INTEGER )
----
31
63
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6550
SELECT + 29 + - CAST( - - 56 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-6550
SELECT + 29 + - CAST ( - - 56 AS INTEGER )
----
-27

query III rowsort
SELECT - - 35 AS col0, - 45, + 26 AS col0
----
35
-45
26

query II rowsort
SELECT ALL - 78 AS col1, 17 AS col1
----
-78
17

query I rowsort
SELECT ALL - + 27 + + 1 AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6554
SELECT DISTINCT + COALESCE ( 72, + MIN( ALL - 26 ) + + COUNT( DISTINCT 65 ) DIV - + 82 )
----
72

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT + COALESCE ( 72, + MIN ( ALL - 26 ) + + COUNT ( DISTINCT 65 ) / - + 82 )
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-6555
SELECT DISTINCT - 84 + + + 77 * - NULLIF ( + 69, + 72 ) + + COUNT( * ), 61 AS col2
----
-5396
61

skipif mysql # not compatible
query II rowsort label-6555
SELECT DISTINCT - 84 + + + 77 * - NULLIF ( + 69, + 72 ) + + COUNT ( * ), 61 AS col2
----
-5396
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT - CASE + 35 WHEN - - 11 * + 3 + 26 * - COUNT( * ) THEN + 93 WHEN 58 THEN 49 * 50 + + 98 / - 6 ELSE NULL END + + ( + 17 - 0 * 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT - CASE + 35 WHEN - - 11 * + 3 + 26 * - COUNT ( * ) THEN + 93 WHEN 58 THEN 49 * 50 + + 98 / - 6 ELSE NULL END + + ( + 17 - 0 * 75 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT DISTINCT - 36 * 77 + - 34 * - NULLIF ( - - MIN( - ( - - 40 ) ), CASE + 91 WHEN - COUNT( ALL + 38 ) + - + 30 + 22 / 61 THEN NULL WHEN + COUNT( * ) * 10 THEN 44 ELSE NULL END * + 30 )
----
-4132

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT - 36 * 77 + - 34 * - NULLIF ( - - MIN ( - ( - - 40 ) ), CASE + 91 WHEN - COUNT ( ALL + 38 ) + - + 30 + 22 / 61 THEN NULL WHEN + COUNT ( * ) * 10 THEN 44 ELSE NULL END * + 30 )
----
-4132

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

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

query I rowsort
SELECT ALL + 3 * + 21 + + 0 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT COUNT( * ) + + MAX( 47 ) + 83 * COUNT( * )
----
131

skipif mysql # not compatible
query I rowsort label-6560
SELECT COUNT ( * ) + + MAX ( 47 ) + 83 * COUNT ( * )
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6561
SELECT CAST( NULL AS SIGNED ) + 6 * - + 20 * - + 55 * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6561
SELECT CAST ( NULL AS INTEGER ) + 6 * - + 20 * - + 55 * 96
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6562
SELECT + SUM( - CASE 66 WHEN - 89 + + 27 THEN + 15 + 89 END ) / + 69 - - - MIN( - 85 ) AS col1, - 88 * - 55
----
NULL
4840

skipif mysql # not compatible
query II rowsort label-6562
SELECT + SUM ( - CASE 66 WHEN - 89 + + 27 THEN + 15 + 89 END ) / + 69 - - - MIN ( - 85 ) AS col1, - 88 * - 55
----
NULL
4840

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

skipif mysql # not compatible
query I rowsort label-6563
SELECT COUNT ( - 79 )
----
1

query I rowsort
SELECT 50 * - COALESCE ( - NULLIF ( - - 8, + 72 - + 73 ), - 56 ) + + 43 AS col0
----
443

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT ALL COUNT( * ) + - COUNT( DISTINCT - ( - - ( - 78 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL COUNT ( * ) + - COUNT ( DISTINCT - ( - - ( - 78 ) ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT DISTINCT + 68 DIV 23 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT + 68 / 23 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL + 50 * - NULLIF ( - 23, - 49 * + ( - 78 ) - - 43 ) * + MAX( ALL + 35 ) AS col2
----
40250

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL + 50 * - NULLIF ( - 23, - 49 * + ( - 78 ) - - 43 ) * + MAX ( ALL + 35 ) AS col2
----
40250

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT 64 + + COUNT( DISTINCT - 38 )
----
65

skipif mysql # not compatible
query I rowsort label-6568
SELECT 64 + + COUNT ( DISTINCT - 38 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6569
SELECT ALL 87 - + 83 + - + 41 + 41 - + NULLIF ( - - 39, - 8 ) / - 76 * - CAST( NULL AS SIGNED ) / - NULLIF ( + + 36, - 75 * 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL 87 - + 83 + - + 41 + 41 - + NULLIF ( - - 39, - 8 ) / - 76 * - CAST ( NULL AS INTEGER ) / - NULLIF ( + + 36, - 75 * 28 )
----
NULL

query I rowsort
SELECT DISTINCT + 68 * + ( - 68 )
----
-4624

query I rowsort
SELECT 45 * + 32 * 88
----
126720

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL - 5 * - + COUNT( * ) * - 69
----
-345

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL - 5 * - + COUNT ( * ) * - 69
----
-345

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6574
SELECT + 85 * + 0 + - 75 + + + 46 DIV 77 col0
----
-75

skipif mysql # not compatible
query I rowsort label-6574
SELECT + 85 * + 0 + - 75 + + + 46 / 77 col0
----
-75

query I rowsort
SELECT DISTINCT - COALESCE ( - 74, + + 95 )
----
74

query I rowsort
SELECT ALL - 78 * - ( + 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6577
SELECT ALL - + ( + CAST( NULL AS SIGNED ) ) AS col2, 92 * 4 - 41
----
NULL
327

skipif mysql # not compatible
query II rowsort label-6577
SELECT ALL - + ( + CAST ( NULL AS INTEGER ) ) AS col2, 92 * 4 - 41
----
NULL
327

query I rowsort
SELECT DISTINCT - 89 * - 38 AS col1
----
3382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6579
SELECT - COUNT( * ) + + + CASE 81 WHEN SUM( 88 ) * + AVG ( + CAST( NULL AS SIGNED ) ) THEN - 97 + NULLIF ( - + ( 33 ), - ( 35 ) * 2 ) WHEN 38 THEN - 14 END * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6579
SELECT - COUNT ( * ) + + + CASE 81 WHEN SUM ( 88 ) * + AVG ( + CAST ( NULL AS INTEGER ) ) THEN - 97 + NULLIF ( - + ( 33 ), - ( 35 ) * 2 ) WHEN 38 THEN - 14 END * 0 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6580
SELECT DISTINCT - 50 DIV - 41 col2
----
1

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT - 50 / - 41 col2
----
1

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

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

query I rowsort
SELECT - + 12 * - + 55 AS col1
----
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6583
SELECT ALL + 6 / + MAX( 84 ) * + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL + 6 / + MAX ( 84 ) * + - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - - 1 * - 8 * 11 * + + 83
----
-7304

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT + - SUM( ALL - + 73 ) + 52
----
125

skipif mysql # not compatible
query I rowsort label-6585
SELECT + - SUM ( ALL - + 73 ) + 52
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT - SUM( - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-6586
SELECT - SUM ( - 69 )
----
69

query I rowsort
SELECT DISTINCT - 87 + + + 90
----
3

query I rowsort
SELECT ALL + 96 * + 91 * ( + 23 ) AS col1
----
200928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6589
SELECT + 63 + 4 DIV ( + - SUM( + 65 ) ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6589
SELECT + 63 + 4 / ( + - SUM ( + 65 ) ) AS col0
----
63

query II rowsort
SELECT ALL - 5 + + 68, + 75 col2
----
63
75

query I rowsort
SELECT ALL ( - ( - 23 ) ) + 6 - - 94 * + 3
----
311

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT DISTINCT COUNT( * ) + + 66 + - 36 + 37 + + 16 + 70 * - ( - + 31 )
----
2254

skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT COUNT ( * ) + + 66 + - 36 + 37 + + 16 + 70 * - ( - + 31 )
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT - COALESCE ( 98, + + MAX( DISTINCT 47 ), + - 16 )
----
-98

skipif mysql # not compatible
query I rowsort label-6593
SELECT - COALESCE ( 98, + + MAX ( DISTINCT 47 ), + - 16 )
----
-98

query I rowsort
SELECT + 41 + 81 * - 23 col0
----
-1822

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT DISTINCT + MIN( + + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT + MIN ( + + 68 ) AS col2
----
68

query I rowsort
SELECT DISTINCT + 98 * - 47 - 84 AS col2
----
-4690

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6599
SELECT + 5 * MIN( DISTINCT 52 ) * + 22 AS col0, - 20 AS col2
----
5720
-20

skipif mysql # not compatible
query II rowsort label-6599
SELECT + 5 * MIN ( DISTINCT 52 ) * + 22 AS col0, - 20 AS col2
----
5720
-20

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

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

query I rowsort
SELECT ALL 63 * + 45 AS col0
----
2835

query I rowsort
SELECT + 69 - + 49
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT NULLIF ( COUNT( * ), + 88 * - + AVG ( ALL - - 12 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6603
SELECT NULLIF ( COUNT ( * ), + 88 * - + AVG ( ALL - - 12 ) )
----
1

query II rowsort
SELECT ALL + 25 AS col1, 37 * + 66 AS col1
----
25
2442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6605
SELECT + 81 * - 54 + - CAST( - 59 AS SIGNED )
----
-4315

skipif mysql # not compatible
query I rowsort label-6605
SELECT + 81 * - 54 + - CAST ( - 59 AS INTEGER )
----
-4315

query II rowsort
SELECT + 70 AS col2, 69
----
70
69

query I rowsort
SELECT + NULLIF ( + 26, + 43 ) * - 67 AS col0
----
-1742

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT CASE + - 33 WHEN - 46 / - COUNT( * ) + + MAX( DISTINCT + 23 ) THEN - COUNT( * ) WHEN CASE 78 WHEN + COUNT( * ) * AVG ( 78 ) THEN 27 - COUNT( * ) WHEN - 6 + + 72 THEN 77 + ( - 66 + 69 ) * 47 END * 48 THEN NULL WHEN 88 * COALESCE ( 31, - 33 ) THEN COUNT( - 42 ) * 16 + ( + 1 + + 92 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6608
SELECT CASE + - 33 WHEN - 46 / - COUNT ( * ) + + MAX ( DISTINCT + 23 ) THEN - COUNT ( * ) WHEN CASE 78 WHEN + COUNT ( * ) * AVG ( 78 ) THEN 27 - COUNT ( * ) WHEN - 6 + + 72 THEN 77 + ( - 66 + 69 ) * 47 END * 48 THEN NULL WHEN 88 * COALESCE ( 31, - 33 ) THEN COUNT ( - 42 ) * 16 + ( + 1 + + 92 ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6609
SELECT ALL + 13 DIV - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL + 13 / - 58 AS col1
----
0

query I rowsort
SELECT + 9 - - 70
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-6611
SELECT - 61 * - + MIN( - 96 ) - 10 AS col2, 27 AS col1
----
-5866
27

skipif mysql # not compatible
query II rowsort label-6611
SELECT - 61 * - + MIN ( - 96 ) - 10 AS col2, 27 AS col1
----
-5866
27

query I rowsort
SELECT ALL - - 44 * + 60 - + 20
----
2620

onlyif mysql # aggregate syntax: 
query II rowsort label-6613
SELECT - + 16 * + 22 - - 91 * - 40 AS col0, COUNT( * ) + 94 * - + 99 AS col0
----
-3992
-9305

skipif mysql # not compatible
query II rowsort label-6613
SELECT - + 16 * + 22 - - 91 * - 40 AS col0, COUNT ( * ) + 94 * - + 99 AS col0
----
-3992
-9305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6614
SELECT ALL - 41 * - + CAST( 43 AS SIGNED ) + - NULLIF ( + COUNT( * ), ( - + ( - - 63 ) ) * + - 90 + + - NULLIF ( + 81, 80 * - 79 * 54 ) ) + + COUNT( * ) AS col0
----
1763

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL - 41 * - + CAST ( 43 AS INTEGER ) + - NULLIF ( + COUNT ( * ), ( - + ( - - 63 ) ) * + - 90 + + - NULLIF ( + 81, 80 * - 79 * 54 ) ) + + COUNT ( * ) AS col0
----
1763

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

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

skipif mysql # not compatible
query I rowsort label-6616
SELECT COUNT ( 35 )
----
1

query I rowsort
SELECT ALL - 61 * - - 58 AS col2
----
-3538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6618
SELECT + 98 * - COUNT( * ) + - CAST( 64 AS SIGNED ) AS col0
----
-162

skipif mysql # not compatible
query I rowsort label-6618
SELECT + 98 * - COUNT ( * ) + - CAST ( 64 AS INTEGER ) AS col0
----
-162

query II rowsort
SELECT - 69 AS col1, - 69 AS col2
----
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT DISTINCT + COUNT( * ) + - 49 * - 94 AS col0
----
4607

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT + COUNT ( * ) + - 49 * - 94 AS col0
----
4607

onlyif mysql # aggregate syntax: 
query II rowsort label-6621
SELECT DISTINCT 13, CASE - 57 WHEN + + 27 * - + 44 + - + 74 - + 92 THEN COUNT( * ) WHEN 45 THEN NULL END * + 71 AS col0
----
13
NULL

skipif mysql # not compatible
query II rowsort label-6621
SELECT DISTINCT 13, CASE - 57 WHEN + + 27 * - + 44 + - + 74 - + 92 THEN COUNT ( * ) WHEN 45 THEN NULL END * + 71 AS col0
----
13
NULL

query I rowsort
SELECT ALL + 95 + CASE 93 WHEN + + 34 + ( - 4 ) THEN NULL WHEN 77 * 40 * - 28 THEN + 32 * + ( - 13 ) + - 55 ELSE NULL END
----
NULL

query I rowsort
SELECT - + 89 * 74
----
-6586

query I rowsort
SELECT ALL + + 60 + - 39
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6625
SELECT - 35 + - 39 AS col0, COALESCE ( + 91, + + 95 DIV MAX( 79 ) + - - 53 + + COUNT( * ) * + 68 * - + COUNT( * ) * 0 ) AS col0, - CASE WHEN COALESCE ( ( - 80 ), + 99 + + 87 ) BETWEEN 3 * 77 AND 89 THEN + COALESCE ( 49, - MIN( + 92 ) ) * + CAST( - COUNT( * ) AS SIGNED ) + - 0 * - COUNT( ALL - 39 * - 48 ) END
----
-74
91
NULL

skipif mysql # not compatible
query III rowsort label-6625
SELECT - 35 + - 39 AS col0, COALESCE ( + 91, + + 95 / MAX ( 79 ) + - - 53 + + COUNT ( * ) * + 68 * - + COUNT ( * ) * 0 ) AS col0, - CASE WHEN COALESCE ( ( - 80 ), + 99 + + 87 ) BETWEEN 3 * 77 AND 89 THEN + COALESCE ( 49, - MIN ( + 92 ) ) * + CAST ( - COUNT ( * ) AS INTEGER ) + - 0 * - COUNT ( ALL - 39 * - 48 ) END
----
-74
91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6626
SELECT + NULLIF ( + 31, + + 7 ) DIV - + 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6626
SELECT + NULLIF ( + 31, + + 7 ) / - + 40 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT ALL COALESCE ( COUNT( * ), + 31 )
----
1

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL COALESCE ( COUNT ( * ), + 31 )
----
1

query I rowsort
SELECT DISTINCT + ( 92 ) - + + 84 - - 4
----
12

query I rowsort
SELECT DISTINCT ( - - 2 ) col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6630
SELECT - NULLIF ( + 50, 99 ) + - - 31, + 75 DIV 83 + MIN( DISTINCT + 8 ) * + + 86 AS col2
----
-19
688

skipif mysql # not compatible
query II rowsort label-6630
SELECT - NULLIF ( + 50, 99 ) + - - 31, + 75 / 83 + MIN ( DISTINCT + 8 ) * + + 86 AS col2
----
-19
688

query I rowsort
SELECT ALL + 77 * - + 46 AS col2
----
-3542

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL - ( ( - COUNT( * ) ) ) * 15 + MAX( - 20 )
----
-5

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL - ( ( - COUNT ( * ) ) ) * 15 + MAX ( - 20 )
----
-5

query I rowsort
SELECT DISTINCT + 68 * 48 * - - 83 AS col2
----
270912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6634
SELECT - 52 * - CAST( + + 22 AS SIGNED ) AS col2
----
1144

skipif mysql # not compatible
query I rowsort label-6634
SELECT - 52 * - CAST ( + + 22 AS INTEGER ) AS col2
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT COUNT( * ) / - - CASE 30 WHEN ( - 84 ) THEN ( 50 ) + - + AVG ( + 65 ) - + 15 + 99 END * + 75 + + ( 83 ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT COUNT ( * ) / - - CASE 30 WHEN ( - 84 ) THEN ( 50 ) + - + AVG ( + 65 ) - + 15 + 99 END * + 75 + + ( 83 ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6636
SELECT + 75 DIV - + 42 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6636
SELECT + 75 / - + 42 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6637
SELECT + 77 DIV + + 39 + - CAST( + COUNT( * ) AS SIGNED ) + 19, 91 * + 27 + 57 * - SUM( DISTINCT + - 52 ) AS col2
----
19
5421

skipif mysql # not compatible
query II rowsort label-6637
SELECT + 77 / + + 39 + - CAST ( + COUNT ( * ) AS INTEGER ) + 19, 91 * + 27 + 57 * - SUM ( DISTINCT + - 52 ) AS col2
----
19
5421

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6639
SELECT + 15 DIV - 67 * + + 71 - + - 65
----
65

skipif mysql # not compatible
query I rowsort label-6639
SELECT + 15 / - 67 * + + 71 - + - 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT - MIN( 37 ) * + - 87 * - ( 57 ) * + CASE 75 WHEN 88 THEN + 37 END * 22 + + 88 - + 13 * - 83 * - + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6640
SELECT - MIN ( 37 ) * + - 87 * - ( 57 ) * + CASE 75 WHEN 88 THEN + 37 END * 22 + + 88 - + 13 * - 83 * - + 87
----
NULL

query I rowsort
SELECT 87 * 99 + - 68 * + + 67 * + - 27 AS col2
----
131625

query II rowsort
SELECT + 28 + - 58 AS col1, 27 col1
----
-30
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT + CASE - COUNT( 14 ) WHEN - - ( - 16 ) THEN NULL ELSE - ( + - NULLIF ( + + 59, - 60 - - 38 + 34 * COUNT( * ) ) ) * 34 - + SUM( DISTINCT 23 ) END
----
1983

skipif mysql # not compatible
query I rowsort label-6644
SELECT + CASE - COUNT ( 14 ) WHEN - - ( - 16 ) THEN NULL ELSE - ( + - NULLIF ( + + 59, - 60 - - 38 + 34 * COUNT ( * ) ) ) * 34 - + SUM ( DISTINCT 23 ) END
----
1983

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6646
SELECT CAST( + CASE CAST( - 69 AS SIGNED ) WHEN 28 + + 4 + - 55 * + 35 * - 38 + + 46 THEN NULL WHEN 88 * - + 60 + - - COUNT( * ) + + 86 + + 49 THEN NULL ELSE - ( - 54 ) + - COUNT( * ) END AS SIGNED ) DIV + 4 + 88 DIV 1
----
101

skipif mysql # not compatible
query I rowsort label-6646
SELECT CAST ( + CASE CAST ( - 69 AS INTEGER ) WHEN 28 + + 4 + - 55 * + 35 * - 38 + + 46 THEN NULL WHEN 88 * - + 60 + - - COUNT ( * ) + + 86 + + 49 THEN NULL ELSE - ( - 54 ) + - COUNT ( * ) END AS INTEGER ) / + 4 + 88 / 1
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6647
SELECT DISTINCT 56 * - NULLIF ( + + COUNT( * ), - 44 ) * - - 34 - 95 * 41 DIV + 42 AS col0
----
-1996

skipif mysql # not compatible
query I rowsort label-6647
SELECT DISTINCT 56 * - NULLIF ( + + COUNT ( * ), - 44 ) * - - 34 - 95 * 41 / + 42 AS col0
----
-1996

onlyif mysql # aggregate syntax: 
query II rowsort label-6648
SELECT DISTINCT 72 + + - 58 + + - ( - + 99 ) AS col1, + 69 * - + COUNT( + - 34 ) + + 42
----
113
-27

skipif mysql # not compatible
query II rowsort label-6648
SELECT DISTINCT 72 + + - 58 + + - ( - + 99 ) AS col1, + 69 * - + COUNT ( + - 34 ) + + 42
----
113
-27

query I rowsort
SELECT - 16 * 46 + - + 2 AS col1
----
-738

query II rowsort
SELECT - 73 * - 30 AS col1, 71 AS col1
----
2190
71

query I rowsort
SELECT - 56 + 88 AS col0
----
32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT DISTINCT - 7 * - - COUNT( 96 )
----
-7

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT - 7 * - - COUNT ( 96 )
----
-7

query I rowsort
SELECT ALL 1 + - - 30 AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6655
SELECT 12 + 70 col1, - 71 * + COUNT( * ) * COUNT( * ) AS col0
----
82
-71

skipif mysql # not compatible
query II rowsort label-6655
SELECT 12 + 70 col1, - 71 * + COUNT ( * ) * COUNT ( * ) AS col0
----
82
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6656
SELECT ALL 15 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL 15 / - 88
----
0

query I rowsort
SELECT DISTINCT + 47 * + 91
----
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT SUM( ALL + 11 ) + + 4 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6658
SELECT SUM ( ALL + 11 ) + + 4 AS col0
----
15

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

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT + COUNT ( CAST ( NULL AS INTEGER ) ) * - 35 - + + 64 AS col0
----
-64

query II rowsort
SELECT DISTINCT ( - ( - - 25 ) ) * - 92 * - 60 AS col1, 85 - - 84 AS col0
----
-138000
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6661
SELECT ALL CAST( + 37 AS SIGNED ) * - 15 + - NULLIF ( MAX( ALL - ( 29 ) ), - 15 ) + + - NULLIF ( + COALESCE ( + 40, + + 10 + - - ( - COUNT( * ) ), + - CAST( NULL AS SIGNED ) * 14 ), - 50 + - 3 ) * + 77 * - 70 col2
----
215074

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL CAST ( + 37 AS INTEGER ) * - 15 + - NULLIF ( MAX ( ALL - ( 29 ) ), - 15 ) + + - NULLIF ( + COALESCE ( + 40, + + 10 + - - ( - COUNT ( * ) ), + - CAST ( NULL AS INTEGER ) * 14 ), - 50 + - 3 ) * + 77 * - 70 col2
----
215074

query II rowsort
SELECT 90 + + 86 * ( 88 ) + + + 64 AS col1, 70 * + 83 AS col1
----
7722
5810

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT ALL - 46 DIV + 47 * 66
----
0

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL - 46 / + 47 * 66
----
0

query II rowsort
SELECT - 56 AS col1, - 11 * - 69 * - - ( + 73 ) + 4 AS col2
----
-56
55411

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

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

query I rowsort
SELECT ALL - 19 * + 19
----
-361

query I rowsort
SELECT ALL - 47 * + 79
----
-3713

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

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

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

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

query II rowsort
SELECT 12, 20 + - 94 AS col1
----
12
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT MAX( - 83 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-6671
SELECT MAX ( - 83 ) AS col1
----
-83

query I rowsort
SELECT 89 - - 89 AS col1
----
178

onlyif mysql # aggregate syntax: 
query II rowsort label-6673
SELECT + + 32, - MIN( DISTINCT + 62 ) * + 7 - + 96 AS col2
----
32
-530

skipif mysql # not compatible
query II rowsort label-6673
SELECT + + 32, - MIN ( DISTINCT + 62 ) * + 7 - + 96 AS col2
----
32
-530

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

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - COUNT ( DISTINCT - 63 ) AS col0
----
-1

query I rowsort
SELECT 78 * 37
----
2886

onlyif mysql # DIV for integer division: 
query I rowsort label-6676
SELECT ALL - 19 DIV - - 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL - 19 / - - 28 AS col1
----
0

query I rowsort
SELECT DISTINCT 1 + - 55 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-6678
SELECT + ( + MAX( ALL + 89 ) ), + 93 AS col1
----
89
93

skipif mysql # not compatible
query II rowsort label-6678
SELECT + ( + MAX ( ALL + 89 ) ), + 93 AS col1
----
89
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6679
SELECT DISTINCT - 28 + + - 57 - CAST( + 32 AS SIGNED ) + 62 + + 54
----
-1

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT - 28 + + - 57 - CAST ( + 32 AS INTEGER ) + 62 + + 54
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ALL - 69 + + ( - + ( - 36 ) ) + MAX( + + 18 )
----
-15

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL - 69 + + ( - + ( - 36 ) ) + MAX ( + + 18 )
----
-15

query I rowsort
SELECT ALL - + 63 col2
----
-63

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

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

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

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

query I rowsort
SELECT ALL - ( 5 ) + 27 * - - 23
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT 27 * - 46 * - - MAX( DISTINCT + - 7 ) * - COUNT( * )
----
-8694

skipif mysql # not compatible
query I rowsort label-6686
SELECT 27 * - 46 * - - MAX ( DISTINCT + - 7 ) * - COUNT ( * )
----
-8694

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT MAX( - 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-6687
SELECT MAX ( - 87 ) AS col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6688
SELECT MIN( + + 2 ) DIV 24 AS col0, + 20 AS col2
----
0
20

skipif mysql # not compatible
query II rowsort label-6688
SELECT MIN ( + + 2 ) / 24 AS col0, + 20 AS col2
----
0
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6689
SELECT - AVG ( ALL CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT - AVG ( ALL CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL - 26 - - 55 AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6691
SELECT 6 * + CAST( - + 63 AS SIGNED ) AS col2
----
-378

skipif mysql # not compatible
query I rowsort label-6691
SELECT 6 * + CAST ( - + 63 AS INTEGER ) AS col2
----
-378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6692
SELECT ALL CASE CASE + 55 WHEN 18 + 34 THEN 57 + 89 ELSE NULL END WHEN - - 33 THEN NULL WHEN - 85 + + 36 THEN - CAST( + 16 AS SIGNED ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL CASE CASE + 55 WHEN 18 + 34 THEN 57 + 89 ELSE NULL END WHEN - - 33 THEN NULL WHEN - 85 + + 36 THEN - CAST ( + 16 AS INTEGER ) END col0
----
NULL

query I rowsort
SELECT 37 - + + 72
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6694
SELECT DISTINCT 27 AS col0, CASE - - 75 WHEN CAST( NULL AS SIGNED ) THEN + COUNT( * ) * 74 ELSE NULL END - + + 50 * + 31 * - 30 AS col1
----
27
NULL

skipif mysql # not compatible
query II rowsort label-6694
SELECT DISTINCT 27 AS col0, CASE - - 75 WHEN CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) * 74 ELSE NULL END - + + 50 * + 31 * - 30 AS col1
----
27
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6695
SELECT DISTINCT 84 AS col1, - CASE - + 46 WHEN - 95 + - - 81 THEN + 3 END * - - ( - ( - 76 ) ) / + COUNT( * )
----
84
NULL

skipif mysql # not compatible
query II rowsort label-6695
SELECT DISTINCT 84 AS col1, - CASE - + 46 WHEN - 95 + - - 81 THEN + 3 END * - - ( - ( - 76 ) ) / + COUNT ( * )
----
84
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6696
SELECT ALL 88 DIV - 77 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL 88 / - 77 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6697
SELECT ( + COALESCE ( 25, - 8 * + 71 - - 5, + 27 * 95 + - NULLIF ( + - NULLIF ( - 90, + - CAST( NULL AS SIGNED ) - - ( + 71 ) - + 13 * - + 21 + - 70 * NULLIF ( + 9 + + 54, 77 + 33 ) * 0 ), CASE + COUNT( * ) WHEN 16 THEN - 39 WHEN - NULLIF ( 46, - MAX( ALL 95 ) + 21 ) THEN NULL WHEN 82 * + ( AVG ( 9 ) ) THEN ( - 72 ) END * CAST( NULLIF ( - 83, 18 - CASE - NULLIF ( + MIN( ALL - 93 ), - MIN( + 35 ) ) WHEN - 61 THEN 98 WHEN 77 * + COALESCE ( 47, + 25 ) THEN NULL END ) * 25 AS SIGNED ) + 13 * 57 ) ) ) + + 38 * + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-6697
SELECT ( + COALESCE ( 25, - 8 * + 71 - - 5, + 27 * 95 + - NULLIF ( + - NULLIF ( - 90, + - CAST ( NULL AS INTEGER ) - - ( + 71 ) - + 13 * - + 21 + - 70 * NULLIF ( + 9 + + 54, 77 + 33 ) * 0 ), CASE + COUNT ( * ) WHEN 16 THEN - 39 WHEN - NULLIF ( 46, - MAX ( ALL 95 ) + 21 ) THEN NULL WHEN 82 * + ( AVG ( 9 ) ) THEN ( - 72 ) END * CAST ( NULLIF ( - 83, 18 - CASE - NULLIF ( + MIN ( ALL - 93 ), - MIN ( + 35 ) ) WHEN - 61 THEN 98 WHEN 77 * + COALESCE ( 47, + 25 ) THEN NULL END ) * 25 AS INTEGER ) + 13 * 57 ) ) ) + + 38 * + COUNT ( * )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6698
SELECT COUNT( * ) DIV 49 * - 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6698
SELECT COUNT ( * ) / 49 * - 21 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6699
SELECT 83 DIV - 23
----
-3

skipif mysql # not compatible
query I rowsort label-6699
SELECT 83 / - 23
----
-3

query I rowsort
SELECT ALL 40 * 12 AS col0
----
480

query I rowsort
SELECT 93 * + 24
----
2232

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6703
SELECT 17, - ( COUNT( ALL + 42 ) ) + 27 + COUNT( * ) * 38 * - - 11 AS col1
----
17
444

skipif mysql # not compatible
query II rowsort label-6703
SELECT 17, - ( COUNT ( ALL + 42 ) ) + 27 + COUNT ( * ) * 38 * - - 11 AS col1
----
17
444

query I rowsort
SELECT ALL - 51 * + + 64 AS col2
----
-3264

onlyif mysql # aggregate syntax: 
query II rowsort label-6705
SELECT 87, + COUNT( * ) - - 34 * 37 + ( 67 ) AS col1
----
87
1326

skipif mysql # not compatible
query II rowsort label-6705
SELECT 87, + COUNT ( * ) - - 34 * 37 + ( 67 ) AS col1
----
87
1326

query I rowsort
SELECT ALL + 87 + + - 27
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT + COALESCE ( 26, + - COUNT( * ) + - 34 ) + - CASE 6 WHEN - - 49 THEN ( - 78 ) WHEN - + 45 - + - 15 THEN NULL END + - 69 * - + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6707
SELECT + COALESCE ( 26, + - COUNT ( * ) + - 34 ) + - CASE 6 WHEN - - 49 THEN ( - 78 ) WHEN - + 45 - + - 15 THEN NULL END + - 69 * - + 94
----
NULL

query II rowsort
SELECT 98, + 34 AS col1
----
98
34

query I rowsort
SELECT DISTINCT 39 + - 19 AS col2
----
20

query I rowsort
SELECT - ( - 71 ) + - 62 * + 23 AS col0
----
-1355

query I rowsort
SELECT ALL 74 + + 23
----
97

query II rowsort
SELECT 16 AS col0, - 44
----
16
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6713
SELECT 61 * + CAST( NULL AS SIGNED ) * 38 + CASE + - 59 WHEN + 58 + - COALESCE ( + 89, 24 + - 97, + + 51 + 70 + + ( + - CAST( - 85 AS SIGNED ) ) + - - CAST( NULL AS SIGNED ) * 54 ) * COALESCE ( 6, 88 + - ( + 97 ) * + 88 ) THEN NULL WHEN + 62 THEN NULL ELSE + 89 * 50 END * - CAST( 90 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT 61 * + CAST ( NULL AS INTEGER ) * 38 + CASE + - 59 WHEN + 58 + - COALESCE ( + 89, 24 + - 97, + + 51 + 70 + + ( + - CAST ( - 85 AS INTEGER ) ) + - - CAST ( NULL AS INTEGER ) * 54 ) * COALESCE ( 6, 88 + - ( + 97 ) * + 88 ) THEN NULL WHEN + 62 THEN NULL ELSE + 89 * 50 END * - CAST ( 90 AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL + 50 AS col0, + 38 AS col1
----
50
38

query I rowsort
SELECT ALL - + 64 * - 5 + + 33
----
353

onlyif mysql # DIV for integer division: 
query I rowsort label-6716
SELECT - 41 DIV ( + 16 ) + + 39 + + 24
----
61

skipif mysql # not compatible
query I rowsort label-6716
SELECT - 41 / ( + 16 ) + + 39 + + 24
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6717
SELECT DISTINCT - - CAST( + - COUNT( 7 ) AS SIGNED ) * - - 85 + + + CAST( NULL AS SIGNED ) * - + 39 AS col0, - ( - 42 ) + - 0 AS col0
----
NULL
42

skipif mysql # not compatible
query II rowsort label-6717
SELECT DISTINCT - - CAST ( + - COUNT ( 7 ) AS INTEGER ) * - - 85 + + + CAST ( NULL AS INTEGER ) * - + 39 AS col0, - ( - 42 ) + - 0 AS col0
----
NULL
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT - - 84 DIV + 42 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6718
SELECT - - 84 / + 42 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT ALL - NULLIF ( + - 30, + - ( + 28 ) / - CASE 18 WHEN - + 45 * + - 8 THEN - + COUNT( * ) - - - 70 END / + ( + + 89 ) + - - NULLIF ( COALESCE ( - + COUNT( * ), - - 57 - + 72 ), + ( 3 ) + + 87 ) ) * + 72 + - CASE - 42 + + 8 WHEN + MAX( DISTINCT ( 29 ) ) + 91 THEN NULL ELSE 22 END
----
2138

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL - NULLIF ( + - 30, + - ( + 28 ) / - CASE 18 WHEN - + 45 * + - 8 THEN - + COUNT ( * ) - - - 70 END / + ( + + 89 ) + - - NULLIF ( COALESCE ( - + COUNT ( * ), - - 57 - + 72 ), + ( 3 ) + + 87 ) ) * + 72 + - CASE - 42 + + 8 WHEN + MAX ( DISTINCT ( 29 ) ) + 91 THEN NULL ELSE 22 END
----
2138

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT ALL - MIN( ALL - 55 ) * + 96
----
5280

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL - MIN ( ALL - 55 ) * + 96
----
5280

onlyif mysql # DIV for integer division: 
query I rowsort label-6721
SELECT ALL + ( 62 ) * + 47 + + + 11 DIV 84 AS col0
----
2914

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL + ( 62 ) * + 47 + + + 11 / 84 AS col0
----
2914

query II rowsort
SELECT + 87, - 13 AS col2
----
87
-13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT DISTINCT - COALESCE ( + 73, - 15, 70 ) * CASE 5 WHEN - 21 + - 95 * + + 83 / 80 THEN - ( - - COUNT( * ) ) WHEN - - 28 THEN - 54 * - + 23 * COUNT( DISTINCT 87 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT - COALESCE ( + 73, - 15, 70 ) * CASE 5 WHEN - 21 + - 95 * + + 83 / 80 THEN - ( - - COUNT ( * ) ) WHEN - - 28 THEN - 54 * - + 23 * COUNT ( DISTINCT 87 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT DISTINCT - + 79 * - NULLIF ( - - 14, + - 94 * + MAX( + + 63 ) - + ( - + MAX( + 0 ) ) * - - 69 + 22 ) - - - 51
----
1055

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT - + 79 * - NULLIF ( - - 14, + - 94 * + MAX ( + + 63 ) - + ( - + MAX ( + 0 ) ) * - - 69 + 22 ) - - - 51
----
1055

query II rowsort
SELECT DISTINCT + - ( - 77 ) AS col1, 91 col2
----
77
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6727
SELECT - + 84 * + + ( - + 2 ) + + - CASE - - NULLIF ( 49, + NULLIF ( + + 56, - 36 * - + CASE - + 11 WHEN - + 24 + + AVG ( + + 72 ) THEN - AVG ( - 64 ) * + 11 END * 55 - CAST( + CASE + 99 WHEN CAST( NULL AS SIGNED ) * 65 - - COUNT( * ) THEN ( + 77 ) * - 27 + - 56 ELSE NULL END + + ( 37 ) AS SIGNED ) * 74 ) * 87 ) WHEN 25 THEN NULL ELSE ( - CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6727
SELECT - + 84 * + + ( - + 2 ) + + - CASE - - NULLIF ( 49, + NULLIF ( + + 56, - 36 * - + CASE - + 11 WHEN - + 24 + + AVG ( + + 72 ) THEN - AVG ( - 64 ) * + 11 END * 55 - CAST ( + CASE + 99 WHEN CAST ( NULL AS INTEGER ) * 65 - - COUNT ( * ) THEN ( + 77 ) * - 27 + - 56 ELSE NULL END + + ( 37 ) AS INTEGER ) * 74 ) * 87 ) WHEN 25 THEN NULL ELSE ( - CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT - - ( - 79 ) * 23 * - 26 * - 83
----
-3921086

query I rowsort
SELECT + - 77 * + - ( - 64 ) + - 13
----
-4941

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT - - 66 + - MIN( 28 ) - + 58 + 47 * - 77 + + 26
----
-3613

skipif mysql # not compatible
query I rowsort label-6730
SELECT - - 66 + - MIN ( 28 ) - + 58 + 47 * - 77 + + 26
----
-3613

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

query I rowsort
SELECT ALL 47 * 63
----
2961

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT - COUNT( * ) + - CASE + MIN( 73 ) WHEN - 7 + - 9 + + 5 + - MAX( + 87 ) * + 50 THEN - + 93 WHEN + 58 + - + 53 THEN NULL WHEN - - ( + 97 ) THEN NULL END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6733
SELECT - COUNT ( * ) + - CASE + MIN ( 73 ) WHEN - 7 + - 9 + + 5 + - MAX ( + 87 ) * + 50 THEN - + 93 WHEN + 58 + - + 53 THEN NULL WHEN - - ( + 97 ) THEN NULL END + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT ALL - 64 * + MIN( - - 71 ) AS col0
----
-4544

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL - 64 * + MIN ( - - 71 ) AS col0
----
-4544

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT + 59 + + 85 + COUNT( * ) * + NULLIF ( + ( - 29 ), - 5 ) * - CASE 64 WHEN + - ( - + 17 ) THEN NULL WHEN COUNT( DISTINCT - - 39 ) THEN - 66 END + + 4 * - - 88 / 41 + 82 * 29 * - 80 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6735
SELECT + 59 + + 85 + COUNT ( * ) * + NULLIF ( + ( - 29 ), - 5 ) * - CASE 64 WHEN + - ( - + 17 ) THEN NULL WHEN COUNT ( DISTINCT - - 39 ) THEN - 66 END + + 4 * - - 88 / 41 + 82 * 29 * - 80 col1
----
NULL

query I rowsort
SELECT DISTINCT 82 * 1 AS col0
----
82

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

skipif mysql # not compatible
query I rowsort label-6737
SELECT - MIN ( + 37 )
----
-37

query I rowsort
SELECT + 23 * + - 54 AS col0
----
-1242

query I rowsort
SELECT DISTINCT ( - 17 ) col0
----
-17

query II rowsort
SELECT ALL + 92 + 19 AS col0, - 99 AS col1
----
111
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT ALL COUNT( - 25 ) + + 32
----
33

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL COUNT ( - 25 ) + + 32
----
33

query II rowsort
SELECT ALL 98 + 45 AS col1, 11 AS col2
----
143
11

query I rowsort
SELECT ALL 63 + - - 3 + - 59 AS col0
----
7

query II rowsort
SELECT ALL 75 + - - 94 AS col2, + 8 col1
----
169
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT + 62 * + COUNT( DISTINCT + 76 ) * + 58 AS col2
----
3596

skipif mysql # not compatible
query I rowsort label-6746
SELECT + 62 * + COUNT ( DISTINCT + 76 ) * + 58 AS col2
----
3596

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT ALL COUNT( + 16 ) * COUNT( + 95 ) * 37 * - 39 * 44 + + COUNT( * ) + + 84
----
-63407

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL COUNT ( + 16 ) * COUNT ( + 95 ) * 37 * - 39 * 44 + + COUNT ( * ) + + 84
----
-63407

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT ALL 27 + - 73 + + COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL 27 + - 73 + + COUNT ( * ) AS col1
----
-45

query I rowsort
SELECT + 33 * + 90
----
2970

query II rowsort
SELECT - ( - 33 ) col1, - 74
----
33
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT DISTINCT ( COALESCE ( - 8, - + ( - + 86 ), + - COUNT( * ) ) ) + - 98 - - 31 + + 10 col1
----
-65

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT ( COALESCE ( - 8, - + ( - + 86 ), + - COUNT ( * ) ) ) + - 98 - - 31 + + 10 col1
----
-65

query II rowsort
SELECT ALL 79 + 91 AS col0, - 49 + - - 61 AS col1
----
170
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6753
SELECT DISTINCT + 44 * - 9 * MIN( ALL + + 68 ) + - 18 + + CAST( NULL AS SIGNED ) * 97 * 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT + 44 * - 9 * MIN ( ALL + + 68 ) + - 18 + + CAST ( NULL AS INTEGER ) * 97 * 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT CASE - 13 WHEN + AVG ( + - 88 ) * + - 25 - + COUNT( * ) * 42 THEN 81 - 92 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT CASE - 13 WHEN + AVG ( + - 88 ) * + - 25 - + COUNT ( * ) * 42 THEN 81 - 92 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 23 * 42 * + 38 AS col1
----
36708

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6757
SELECT DISTINCT - 9 DIV - 27 - + 77 + + - CAST( - 70 AS SIGNED ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT - 9 / - 27 - + 77 + + - CAST ( - 70 AS INTEGER ) AS col1
----
-7

query I rowsort
SELECT + + 61 * 44
----
2684

query I rowsort
SELECT - + 56 * ( - - 4 ) AS col0
----
-224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6760
SELECT ALL + + CASE COUNT( * ) WHEN + + 60 + - ( CASE 8 WHEN - ( + - 15 ) * 56 + + + 47 THEN - COALESCE ( - + COUNT( * ), - COUNT( * ) ) + 63 WHEN + COUNT( * ) THEN NULL END ) * + CAST( NULL AS SIGNED ) THEN + - 1 - + 90 WHEN 89 / + 55 + + 82 * + 79 THEN NULL WHEN + 74 + CAST( - 3 AS SIGNED ) THEN 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL + + CASE COUNT ( * ) WHEN + + 60 + - ( CASE 8 WHEN - ( + - 15 ) * 56 + + + 47 THEN - COALESCE ( - + COUNT ( * ), - COUNT ( * ) ) + 63 WHEN + COUNT ( * ) THEN NULL END ) * + CAST ( NULL AS INTEGER ) THEN + - 1 - + 90 WHEN 89 / + 55 + + 82 * + 79 THEN NULL WHEN + 74 + CAST ( - 3 AS INTEGER ) THEN 7 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6761
SELECT MAX( ALL NULLIF ( - - 65, - + CAST( NULL AS SIGNED ) / - 70 ) )
----
65

skipif mysql # not compatible
query I rowsort label-6761
SELECT MAX ( ALL NULLIF ( - - 65, - + CAST ( NULL AS INTEGER ) / - 70 ) )
----
65

query I rowsort
SELECT - + 6 * - 10
----
60

query I rowsort
SELECT + 65 * - + 9 * 48
----
-28080

query II rowsort
SELECT DISTINCT + 84 * 74 * - 86 AS col0, 53 * - 46 + - + 75
----
-534576
-2513

query I rowsort
SELECT DISTINCT + - 76 * - 68 + - 55
----
5113

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT ALL 52 DIV + + 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL 52 / + + 71 AS col1
----
0

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

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

query I rowsort
SELECT ALL + + CASE + 87 WHEN - 76 THEN + - 69 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT + - ( SUM( 52 ) ) * + ( 78 ) + + 29 * 55 * - 30 + - COUNT( * ) AS col1
----
-51907

skipif mysql # not compatible
query I rowsort label-6769
SELECT + - ( SUM ( 52 ) ) * + ( 78 ) + + 29 * 55 * - 30 + - COUNT ( * ) AS col1
----
-51907

query I rowsort
SELECT ALL + 91 * - 92 * - 80
----
669760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6771
SELECT ALL 93 * + 63 + + SUM( + COALESCE ( - - 22, + - ( - 92 ) ) ) DIV + ( + 74 ) AS col2
----
5859

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL 93 * + 63 + + SUM ( + COALESCE ( - - 22, + - ( - 92 ) ) ) / + ( + 74 ) AS col2
----
5859

query I rowsort
SELECT NULLIF ( - + 25, + 59 * + 42 + + 17 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT ALL 99 * - - 55 + + + COUNT( * ) + 57 - - - 45 * - 70 - COALESCE ( + + 34, - COUNT( * ) * + + 49 * + 31, - COUNT( * ) )
----
8619

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL 99 * - - 55 + + + COUNT ( * ) + 57 - - - 45 * - 70 - COALESCE ( + + 34, - COUNT ( * ) * + + 49 * + 31, - COUNT ( * ) )
----
8619

query I rowsort
SELECT NULLIF ( 16, + + 63 + - 64 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT ALL COUNT( * ) * + 70 + + - 91 + - 58 col1
----
-79

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL COUNT ( * ) * + 70 + + - 91 + - 58 col1
----
-79

query I rowsort
SELECT DISTINCT + 78 + + NULLIF ( - 28, 28 ) + - + 52 AS col0
----
-2

query II rowsort
SELECT DISTINCT 47 AS col2, - 33 * - 33 AS col0
----
47
1089

query II rowsort
SELECT 42 col0, 22
----
42
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT ALL - 88 + - - ( - + COALESCE ( - 50, 34 * - - 49 * - COUNT( * ), 37 + + 15 ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL - 88 + - - ( - + COALESCE ( - 50, 34 * - - 49 * - COUNT ( * ), 37 + + 15 ) ) AS col2
----
-38

query I rowsort
SELECT 99 * + + 26 AS col2
----
2574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6781
SELECT ALL - 61 + - - COUNT( * ) + 66 DIV - - 79 * 43
----
-60

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL - 61 + - - COUNT ( * ) + 66 / - - 79 * 43
----
-60

query I rowsort
SELECT 79 + + ( + - 6 ) AS col2
----
73

query II rowsort
SELECT 66 AS col1, 46
----
66
46

query I rowsort
SELECT 89 + + ( - 1 ) AS col2
----
88

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

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

query I rowsort
SELECT 98 + + 6 AS col1
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-6787
SELECT DISTINCT 73 col0, - COUNT( * ) AS col0
----
73
-1

skipif mysql # not compatible
query II rowsort label-6787
SELECT DISTINCT 73 col0, - COUNT ( * ) AS col0
----
73
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT ALL + MAX( DISTINCT 19 ) * 49 * - ( + 13 ) AS col1
----
-12103

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL + MAX ( DISTINCT 19 ) * 49 * - ( + 13 ) AS col1
----
-12103

query I rowsort
SELECT DISTINCT - + 24 - - 10
----
-14

query I rowsort
SELECT DISTINCT COALESCE ( 47, + 5 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT + 60 + + COUNT( * ) - + 32 * - 96 + + 8 AS col1
----
3141

skipif mysql # not compatible
query I rowsort label-6791
SELECT + 60 + + COUNT ( * ) - + 32 * - 96 + + 8 AS col1
----
3141

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT ALL + 71 - + + COUNT( * ) - - - COUNT( * ) col2
----
69

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL + 71 - + + COUNT ( * ) - - - COUNT ( * ) col2
----
69

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

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT SUM ( - - 33 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6794
SELECT 43 DIV 75 - + + 4
----
-4

skipif mysql # not compatible
query I rowsort label-6794
SELECT 43 / 75 - + + 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT - COUNT( DISTINCT - NULLIF ( + 44, 80 ) ) * - 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6795
SELECT - COUNT ( DISTINCT - NULLIF ( + 44, 80 ) ) * - 82 AS col2
----
82

query II rowsort
SELECT 33 * - 20 - + - 76 AS col1, 78
----
-584
78

query I rowsort
SELECT ALL - ( + - 84 ) * - 84
----
-7056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6798
SELECT + - MIN( ALL - - 98 ) DIV + + 1 + 48 + + + 74 col1
----
24

skipif mysql # not compatible
query I rowsort label-6798
SELECT + - MIN ( ALL - - 98 ) / + + 1 + 48 + + + 74 col1
----
24

query I rowsort
SELECT ALL 79 * 86 AS col2
----
6794

onlyif mysql # DIV for integer division: 
query I rowsort label-6800
SELECT DISTINCT + 19 DIV - - 24
----
0

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT + 19 / - - 24
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT 12 * + + COUNT( * ) + + - 16
----
-4

skipif mysql # not compatible
query I rowsort label-6802
SELECT 12 * + + COUNT ( * ) + + - 16
----
-4

query I rowsort
SELECT DISTINCT NULLIF ( + COALESCE ( - 27, - 90 + 42 ), + 10 * 81 ) * + 25 AS col2
----
-675

query II rowsort
SELECT DISTINCT - - 24, - 33 * 67 + 7 AS col2
----
24
-2204

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT - 98 * + + COUNT( * ) - - 10 * - ( 83 )
----
-928

skipif mysql # not compatible
query I rowsort label-6805
SELECT - 98 * + + COUNT ( * ) - - 10 * - ( 83 )
----
-928

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

skipif mysql # not compatible
query I rowsort label-6806
SELECT COUNT ( DISTINCT 84 ) * + 17 * + CAST ( NULL AS INTEGER ) + 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT + COALESCE ( + - NULLIF ( 47, - 94 - 98 + + 4 * + SUM( ALL - + 14 ) * + 92 ), - - 40, - + 40 + ( - 99 ) + + - 79 ) * - - COALESCE ( + - 41, - MAX( + 77 ) * + 36, + 21 ) + 48 + 65 * - MAX( 38 )
----
-495

skipif mysql # not compatible
query I rowsort label-6807
SELECT + COALESCE ( + - NULLIF ( 47, - 94 - 98 + + 4 * + SUM ( ALL - + 14 ) * + 92 ), - - 40, - + 40 + ( - 99 ) + + - 79 ) * - - COALESCE ( + - 41, - MAX ( + 77 ) * + 36, + 21 ) + 48 + 65 * - MAX ( 38 )
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT 90 - + + NULLIF ( 75, - 62 * - SUM( ALL + 18 ) )
----
15

skipif mysql # not compatible
query I rowsort label-6808
SELECT 90 - + + NULLIF ( 75, - 62 * - SUM ( ALL + 18 ) )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT DISTINCT + 19 + 80 * MAX( DISTINCT + 91 ) * + 58
----
422259

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT + 19 + 80 * MAX ( DISTINCT + 91 ) * + 58
----
422259

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL COUNT( * ) + + 16 * - 56 col0
----
-895

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL COUNT ( * ) + + 16 * - 56 col0
----
-895

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT ALL 5 + + - ( MAX( - 47 ) ) + + 42 * ( ( + + ( + 53 ) ) ) * - - 17
----
37894

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL 5 + + - ( MAX ( - 47 ) ) + + 42 * ( ( + + ( + 53 ) ) ) * - - 17
----
37894

query I rowsort
SELECT ALL + 92 + - 0 * 59
----
92

query I rowsort
SELECT 80 + + - 26
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6815
SELECT DISTINCT 23 DIV 40 * - 42
----
0

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT 23 / 40 * - 42
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6816
SELECT ALL - COALESCE ( COALESCE ( + 25, - - 54, 94 ), - 47, 53 DIV + - 1 * + - MAX( DISTINCT - 22 ) ) + - MAX( ( 98 ) )
----
-123

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL - COALESCE ( COALESCE ( + 25, - - 54, 94 ), - 47, 53 / + - 1 * + - MAX ( DISTINCT - 22 ) ) + - MAX ( ( 98 ) )
----
-123

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

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

query II rowsort
SELECT ALL 58 * + 30 * - 0 * + - 87 AS col0, 20 AS col0
----
0
20

query I rowsort
SELECT + 1 * - 31 + - - 53 + 35 col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT DISTINCT - MIN( + - 35 ) * 52 + 29 * + + 34 * + NULLIF ( - 37, - 21 )
----
-34662

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT - MIN ( + - 35 ) * 52 + 29 * + + 34 * + NULLIF ( - 37, - 21 )
----
-34662

onlyif mysql # DIV for integer division: 
query I rowsort label-6821
SELECT DISTINCT - 74 + + 11 DIV + 86 * - ( + - 33 )
----
-74

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT - 74 + + 11 / + 86 * - ( + - 33 )
----
-74

query I rowsort
SELECT 18 * + 43
----
774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6823
SELECT ALL 15 * - 90 DIV + - CASE + 20 WHEN + 71 DIV + COUNT( * ) - - + 20 + - + COUNT( * ) + + ( - CAST( - NULLIF ( 44, - + 36 ) AS SIGNED ) ) * - 90 THEN NULL WHEN 2 THEN - ( 83 ) ELSE + NULLIF ( COALESCE ( 73, + CASE 50 WHEN 13 THEN - MAX( 88 ) END ), - 82 ) DIV MAX( 73 ) END
----
1350

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL 15 * - 90 / + - CASE + 20 WHEN + 71 / + COUNT ( * ) - - + 20 + - + COUNT ( * ) + + ( - CAST ( - NULLIF ( 44, - + 36 ) AS INTEGER ) ) * - 90 THEN NULL WHEN 2 THEN - ( 83 ) ELSE + NULLIF ( COALESCE ( 73, + CASE 50 WHEN 13 THEN - MAX ( 88 ) END ), - 82 ) / MAX ( 73 ) END
----
1350

query II rowsort
SELECT 5 * 37 AS col2, + 85
----
185
85

query I rowsort
SELECT DISTINCT + 12 - + 33
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT 17 * - ( - SUM( ALL - 54 ) ) AS col0
----
-918

skipif mysql # not compatible
query I rowsort label-6826
SELECT 17 * - ( - SUM ( ALL - 54 ) ) AS col0
----
-918

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

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6828
SELECT ALL + 0 - - - 0 - + 49 + + MIN( DISTINCT - 70 ) DIV 28 + ( - - 27 ) + 26 AS col0, - 16 DIV - + MAX( DISTINCT - 78 ) + + SUM( 94 )
----
2
94

skipif mysql # not compatible
query II rowsort label-6828
SELECT ALL + 0 - - - 0 - + 49 + + MIN ( DISTINCT - 70 ) / 28 + ( - - 27 ) + 26 AS col0, - 16 / - + MAX ( DISTINCT - 78 ) + + SUM ( 94 )
----
2
94

query I rowsort
SELECT ALL 83 * - + 22 col2
----
-1826

onlyif mysql # aggregate syntax: 
query II rowsort label-6830
SELECT DISTINCT MIN( + 80 ), + 79 AS col1
----
80
79

skipif mysql # not compatible
query II rowsort label-6830
SELECT DISTINCT MIN ( + 80 ), + 79 AS col1
----
80
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6831
SELECT - 97 - 2 col1, ( + + CAST( + 19 AS SIGNED ) ) DIV - 20 + 18 AS col1
----
-99
18

skipif mysql # not compatible
query II rowsort label-6831
SELECT - 97 - 2 col1, ( + + CAST ( + 19 AS INTEGER ) ) / - 20 + 18 AS col1
----
-99
18

query I rowsort
SELECT ALL + 50 * + 54 AS col0
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT 58 - + MAX( 41 )
----
17

skipif mysql # not compatible
query I rowsort label-6833
SELECT 58 - + MAX ( 41 )
----
17

query I rowsort
SELECT - 80 * + 22 * + + 1
----
-1760

query I rowsort
SELECT DISTINCT + + 9 * COALESCE ( 1, 43 + + 15 ) AS col2
----
9

query II rowsort
SELECT ALL ( + 90 ), + 64 + - - 43 AS col1
----
90
107

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT - NULLIF ( COUNT( ALL + 65 ), + 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-6837
SELECT - NULLIF ( COUNT ( ALL + 65 ), + 39 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT 50 * MIN( 72 ) - 46 * + 82 AS col0
----
-172

skipif mysql # not compatible
query I rowsort label-6838
SELECT 50 * MIN ( 72 ) - 46 * + 82 AS col0
----
-172

query I rowsort
SELECT ALL + 90 * - + ( - 6 ) + 33 AS col1
----
573

query I rowsort
SELECT ALL - NULLIF ( + + 8, - - 97 ) col0
----
-8

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6842
SELECT ALL NULLIF ( - 14, + CASE - 1 WHEN - 3 DIV - 5 + + 70 THEN 40 WHEN - 8 THEN NULL ELSE - COALESCE ( + 5, + 37 + 28 + 67 ) END * - - NULLIF ( - 5, + COUNT( * ) * + + 27 ) ) DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL NULLIF ( - 14, + CASE - 1 WHEN - 3 / - 5 + + 70 THEN 40 WHEN - 8 THEN NULL ELSE - COALESCE ( + 5, + 37 + 28 + 67 ) END * - - NULLIF ( - 5, + COUNT ( * ) * + + 27 ) ) / + 89
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6843
SELECT - 83 DIV 21, + 48 AS col0
----
-3
48

skipif mysql # not compatible
query II rowsort label-6843
SELECT - 83 / 21, + 48 AS col0
----
-3
48

onlyif mysql # aggregate syntax: 
query II rowsort label-6844
SELECT ALL + 56 * 45 + + - 27 - MAX( + 39 ), COUNT( ALL - + CASE + 4 WHEN - 62 THEN NULL WHEN - 82 THEN 65 ELSE NULL END ) AS col1
----
2454
0

skipif mysql # not compatible
query II rowsort label-6844
SELECT ALL + 56 * 45 + + - 27 - MAX ( + 39 ), COUNT ( ALL - + CASE + 4 WHEN - 62 THEN NULL WHEN - 82 THEN 65 ELSE NULL END ) AS col1
----
2454
0

query I rowsort
SELECT + 83 * - 58 + - + 90 col1
----
-4904

onlyif mysql # DIV for integer division: 
query I rowsort label-6846
SELECT - 23 - 21 + + - 58 - - ( - 79 ) * 85 DIV - 47
----
40

skipif mysql # not compatible
query I rowsort label-6846
SELECT - 23 - 21 + + - 58 - - ( - 79 ) * 85 / - 47
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT + SUM( + - 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-6847
SELECT + SUM ( + - 78 ) AS col0
----
-78

query I rowsort
SELECT ALL 54 * + 26 + 71 * - 9 AS col0
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT ALL 72 * + 79 + - 88 + + COUNT( * ) + 4
----
5605

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL 72 * + 79 + - 88 + + COUNT ( * ) + 4
----
5605

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT ALL 82 * COUNT( * ) * - - 65 AS col2
----
5330

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL 82 * COUNT ( * ) * - - 65 AS col2
----
5330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6851
SELECT + CAST( + 32 AS SIGNED ) * - - 37 AS col2
----
1184

skipif mysql # not compatible
query I rowsort label-6851
SELECT + CAST ( + 32 AS INTEGER ) * - - 37 AS col2
----
1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6852
SELECT COALESCE ( + 43, + 76 + - - CAST( 86 AS SIGNED ) - + + NULLIF ( - - 71, + 18 ) * + 14 DIV - - ( + 38 ) * 29 ) * + COUNT( * ) + + CASE WHEN + COUNT( * ) NOT IN ( + ( 22 ) DIV - 20 - + + 55 ) THEN 21 END AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6852
SELECT COALESCE ( + 43, + 76 + - - CAST ( 86 AS INTEGER ) - + + NULLIF ( - - 71, + 18 ) * + 14 / - - ( + 38 ) * 29 ) * + COUNT ( * ) + + CASE WHEN + COUNT ( * ) NOT IN ( + ( 22 ) / - 20 - + + 55 ) THEN 21 END AS col0
----
64

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

skipif mysql # not compatible
query I rowsort label-6853
SELECT MIN ( DISTINCT - 14 )
----
-14

query I rowsort
SELECT ALL 75 + - + 85
----
-10

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

skipif mysql # not compatible
query I rowsort label-6855
SELECT MIN ( ALL - 61 )
----
-61

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6858
SELECT - COALESCE ( - + 98, + + 67, + 72 DIV + - ( - 17 ) * - 97 + - - 58 + 15 )
----
98

skipif mysql # not compatible
query I rowsort label-6858
SELECT - COALESCE ( - + 98, + + 67, + 72 / + - ( - 17 ) * - 97 + - - 58 + 15 )
----
98

query I rowsort
SELECT DISTINCT 74 - + + 22
----
52

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

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

query I rowsort
SELECT + 62 * - 37 AS col1
----
-2294

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT ALL 68 DIV + 98 * + 22 * - - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL 68 / + 98 * + 22 * - - 29 AS col2
----
0

query I rowsort
SELECT - 80 - - 99
----
19

query I rowsort
SELECT DISTINCT COALESCE ( - 72, + ( - 73 ), + 40, - 30 ) AS col1
----
-72

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

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

query I rowsort
SELECT - 55 * - 83
----
4565

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

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

query I rowsort
SELECT + + 74 + + COALESCE ( 69, + 0 )
----
143

query II rowsort
SELECT - 17 * + 10 + - 62 AS col0, - CASE - + 22 WHEN + + 85 THEN - 19 WHEN + 77 * + - ( 34 ) THEN NULL ELSE NULL END
----
-232
NULL

query I rowsort
SELECT - + 24 + + - 69 AS col1
----
-93

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

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL SUM ( ALL 79 )
----
79

query I rowsort
SELECT - - 50 * + NULLIF ( + - 72, + 97 )
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL + + COUNT( * ) + + 6 + - 25 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL + + COUNT ( * ) + + 6 + - 25 AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6874
SELECT - ( - 80 ) + - CAST( - COUNT( * ) AS SIGNED ) + - 28 * 95
----
-2579

skipif mysql # not compatible
query I rowsort label-6874
SELECT - ( - 80 ) + - CAST ( - COUNT ( * ) AS INTEGER ) + - 28 * 95
----
-2579

onlyif mysql # aggregate syntax: 
query II rowsort label-6875
SELECT - 58 + COALESCE ( - - 48, - CASE - 29 WHEN + 24 - - 32 THEN NULL ELSE MAX( DISTINCT + 18 ) END ) - - + 98 AS col0, + 16 AS col2
----
88
16

skipif mysql # not compatible
query II rowsort label-6875
SELECT - 58 + COALESCE ( - - 48, - CASE - 29 WHEN + 24 - - 32 THEN NULL ELSE MAX ( DISTINCT + 18 ) END ) - - + 98 AS col0, + 16 AS col2
----
88
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6876
SELECT - 2 * + COALESCE ( - 30, - CASE 21 WHEN CASE - ( - 45 ) WHEN - 94 THEN + + COUNT( * ) ELSE + 80 END * - - 21 + - 97 THEN + 42 WHEN - CAST( NULL AS SIGNED ) * - 77 + 34 THEN - 58 ELSE NULL END + - 68 * - - ( 13 ), 91 ) * - 9 - 96 AS col1
----
-636

skipif mysql # not compatible
query I rowsort label-6876
SELECT - 2 * + COALESCE ( - 30, - CASE 21 WHEN CASE - ( - 45 ) WHEN - 94 THEN + + COUNT ( * ) ELSE + 80 END * - - 21 + - 97 THEN + 42 WHEN - CAST ( NULL AS INTEGER ) * - 77 + 34 THEN - 58 ELSE NULL END + - 68 * - - ( 13 ), 91 ) * - 9 - 96 AS col1
----
-636

query I rowsort
SELECT - ( + 54 ) + - 87 + - + 53 AS col2
----
-194

onlyif mysql # aggregate syntax: 
query II rowsort label-6878
SELECT ALL - - COUNT( * ) + + + 36 * + + 49 + - + 10 + - 48 AS col0, - 98 - + + 37 + + 49 + - 19 + + 89 - + - COUNT( * )
----
1707
-15

skipif mysql # not compatible
query II rowsort label-6878
SELECT ALL - - COUNT ( * ) + + + 36 * + + 49 + - + 10 + - 48 AS col0, - 98 - + + 37 + + 49 + - 19 + + 89 - + - COUNT ( * )
----
1707
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6879
SELECT - - CASE + + 19 WHEN CASE WHEN NOT ( - CASE - - 13 WHEN + - CASE - 33 WHEN - COUNT( * ) THEN + 29 * - 63 + - CAST( NULL AS SIGNED ) WHEN + 50 THEN - - 70 + + COUNT( * ) * - 72 + - + 62 END * 43 + - + 43 THEN - + MAX( + 50 ) + AVG ( - 43 - + CAST( NULL AS DECIMAL ) * 76 ) END ) BETWEEN ( 74 ) AND - 75 * 55 + - 56 THEN + 77 WHEN NOT 65 <> ( + COALESCE ( 81, - ( 93 ) * COUNT( * ), - 58 * + 57 ) ) THEN NULL ELSE + COALESCE ( + 79, 91 ) END * 76 - 45 * 89 THEN + 7 + - 60 * + 23 WHEN + 2 THEN + COALESCE ( 90, NULLIF ( + 62, + ( - 84 ) * + 31 ) * - 71, 51 * 48 + 13 ) - + 31 * + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6879
SELECT - - CASE + + 19 WHEN CASE WHEN NOT ( - CASE - - 13 WHEN + - CASE - 33 WHEN - COUNT ( * ) THEN + 29 * - 63 + - CAST ( NULL AS INTEGER ) WHEN + 50 THEN - - 70 + + COUNT ( * ) * - 72 + - + 62 END * 43 + - + 43 THEN - + MAX ( + 50 ) + AVG ( - 43 - + CAST ( NULL AS REAL ) * 76 ) END ) BETWEEN ( 74 ) AND - 75 * 55 + - 56 THEN + 77 WHEN NOT 65 <> ( + COALESCE ( 81, - ( 93 ) * COUNT ( * ), - 58 * + 57 ) ) THEN NULL ELSE + COALESCE ( + 79, 91 ) END * 76 - 45 * 89 THEN + 7 + - 60 * + 23 WHEN + 2 THEN + COALESCE ( 90, NULLIF ( + 62, + ( - 84 ) * + 31 ) * - 71, 51 * 48 + 13 ) - + 31 * + 9 END
----
NULL

query I rowsort
SELECT - 85 + 44
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-6881
SELECT ALL + 66 DIV + + 49 + - 81 + - 80 AS col0
----
-160

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL + 66 / + + 49 + - 81 + - 80 AS col0
----
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-6882
SELECT 17 DIV + 12 + + + 72 + 42
----
115

skipif mysql # not compatible
query I rowsort label-6882
SELECT 17 / + 12 + + + 72 + 42
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6883
SELECT ALL - COUNT( * ) * - 79 DIV - - 89 * 65
----
0

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL - COUNT ( * ) * - 79 / - - 89 * 65
----
0

query II rowsort
SELECT DISTINCT + 70 AS col1, - 13 AS col0
----
70
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6885
SELECT DISTINCT + 16 DIV + NULLIF ( + ( - 97 ), + 99 - - 28 ) + - + 83 + COUNT( * ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT + 16 / + NULLIF ( + ( - 97 ), + 99 - - 28 ) + - + 83 + COUNT ( * ) col2
----
-82

query I rowsort
SELECT DISTINCT - + 98 * 86 AS col0
----
-8428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6887
SELECT ALL CASE + 35 WHEN - 44 * - + 79 THEN ( - + ( 4 ) ) * + - ( + 69 ) END * + - 42 + ( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL CASE + 35 WHEN - 44 * - + 79 THEN ( - + ( 4 ) ) * + - ( + 69 ) END * + - 42 + ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6888
SELECT - 76 * 86 DIV - COUNT( * ) AS col1
----
6536

skipif mysql # not compatible
query I rowsort label-6888
SELECT - 76 * 86 / - COUNT ( * ) AS col1
----
6536

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6890
SELECT + 29 DIV 20 col2
----
1

skipif mysql # not compatible
query I rowsort label-6890
SELECT + 29 / 20 col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6891
SELECT ALL 36 * 87 - 61 * + 2 - - 49 + 89 AS col1, + 97 DIV + 70
----
3148
1

skipif mysql # not compatible
query II rowsort label-6891
SELECT ALL 36 * 87 - 61 * + 2 - - 49 + 89 AS col1, + 97 / + 70
----
3148
1

query II rowsort
SELECT + 46 * + 66, + 72 AS col0
----
3036
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT - CAST( NULL AS SIGNED ) - - + 14 + + CASE - 44 WHEN 37 / - - COALESCE ( + 91, - 30 ) * + 60 * + - 19 * 36 + 36 + + SUM( ALL + 4 ) + - + COUNT( * ) + - + 6 * - - 72 / + 87 * + + 2 - - 38 / - 38 * + 63 THEN NULL WHEN ( - 30 ) THEN NULL ELSE ( 73 ) + 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT - CAST ( NULL AS INTEGER ) - - + 14 + + CASE - 44 WHEN 37 / - - COALESCE ( + 91, - 30 ) * + 60 * + - 19 * 36 + 36 + + SUM ( ALL + 4 ) + - + COUNT ( * ) + - + 6 * - - 72 / + 87 * + + 2 - - 38 / - 38 * + 63 THEN NULL WHEN ( - 30 ) THEN NULL ELSE ( 73 ) + 47 END
----
NULL

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

query I rowsort
SELECT + 92 * 92 + 18 AS col2
----
8482

query I rowsort
SELECT - 5 * - 53 * - - 61 - - 26 * + + 7 AS col2
----
16347

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6897
SELECT + 99 DIV + - ( - MAX( DISTINCT + 57 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6897
SELECT + 99 / + - ( - MAX ( DISTINCT + 57 ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT ALL COUNT( * ) * MIN( - - 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL COUNT ( * ) * MIN ( - - 3 ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6899
SELECT + NULLIF ( - 98, - 80 ) * 75 * - 47 * + + CASE + + 61 WHEN 48 THEN - - 99 ELSE + + NULLIF ( - - 45, + - CAST( NULL AS SIGNED ) ) + + COUNT( * ) * + 9 + + COALESCE ( 87, + 27 - 22, + + 22 ) END
----
48708450

skipif mysql # not compatible
query I rowsort label-6899
SELECT + NULLIF ( - 98, - 80 ) * 75 * - 47 * + + CASE + + 61 WHEN 48 THEN - - 99 ELSE + + NULLIF ( - - 45, + - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * + 9 + + COALESCE ( 87, + 27 - 22, + + 22 ) END
----
48708450

query I rowsort
SELECT DISTINCT + 57 * 78 col2
----
4446

query I rowsort
SELECT ALL 98 * - + 23
----
-2254

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT + 4 + + - 66 + 6 * - + COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-6902
SELECT + 4 + + - 66 + 6 * - + COUNT ( * ) AS col0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-6903
SELECT + 63 DIV - + 48
----
-1

skipif mysql # not compatible
query I rowsort label-6903
SELECT + 63 / - + 48
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT - 50 * + COUNT( DISTINCT 16 )
----
-50

skipif mysql # not compatible
query I rowsort label-6904
SELECT - 50 * + COUNT ( DISTINCT 16 )
----
-50

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

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

skipif mysql # not compatible
query I rowsort label-6906
SELECT SUM ( 14 )
----
14

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

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

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

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

query II rowsort
SELECT 34 AS col1, - 20 AS col2
----
34
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6910
SELECT ALL - 68 + + + 88 + + COUNT( * ) * - 46 * - 42 + + 20 * + NULLIF ( - + 98, + 24 - + 31 - 86 * + - SUM( - 42 ) * AVG ( 10 ) ) / 65 * + - COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL - 68 + + + 88 + + COUNT ( * ) * - 46 * - 42 + + 20 * + NULLIF ( - + 98, + 24 - + 31 - 86 * + - SUM ( - 42 ) * AVG ( 10 ) ) / 65 * + - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 61, + 21 )
----
61

query I rowsort
SELECT DISTINCT + 40 + 50 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6913
SELECT - - ( - - NULLIF ( + + 68, + 38 * - 27 * + + MIN( + + 2 ) * - + CAST( - ( 80 ) AS SIGNED ) ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6913
SELECT - - ( - - NULLIF ( + + 68, + 38 * - 27 * + + MIN ( + + 2 ) * - + CAST ( - ( 80 ) AS INTEGER ) ) ) AS col2
----
68

query II rowsort
SELECT ALL - 7 + - COALESCE ( + + 84, - - 30 ) AS col2, 52 * 26 * 38
----
-91
51376

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT + - COUNT( * ) - SUM( + + 27 ) * + 65 - 63
----
-1819

skipif mysql # not compatible
query I rowsort label-6915
SELECT + - COUNT ( * ) - SUM ( + + 27 ) * + 65 - 63
----
-1819

query I rowsort
SELECT + + 27 - - 92 AS col2
----
119

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

query II rowsort
SELECT - 81 AS col2, + 21 * + 21 + + 1 AS col1
----
-81
442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6919
SELECT + CAST( - COALESCE ( - ( 10 ), - - 52 ) AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-6919
SELECT + CAST ( - COALESCE ( - ( 10 ), - - 52 ) AS INTEGER )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6920
SELECT ALL - CASE - 57 WHEN CAST( NULL AS SIGNED ) + + 29 THEN + + 90 END + - - 53 + - - 71 * - + 45 / 40 AS col1, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6920
SELECT ALL - CASE - 57 WHEN CAST ( NULL AS INTEGER ) + + 29 THEN + + 90 END + - - 53 + - - 71 * - + 45 / 40 AS col1, - COUNT ( * )
----
NULL
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6922
SELECT ALL + CASE + 66 WHEN - - MAX( ALL 75 ) THEN NULL WHEN + 46 + - ( + 34 ) THEN - + 48 END * 72, + 16 col2
----
NULL
16

skipif mysql # not compatible
query II rowsort label-6922
SELECT ALL + CASE + 66 WHEN - - MAX ( ALL 75 ) THEN NULL WHEN + 46 + - ( + 34 ) THEN - + 48 END * 72, + 16 col2
----
NULL
16

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

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

query I rowsort
SELECT ALL + 42 - + 22 * + 64 + - 0 - 90 * + ( + 67 ) + + 54 * 61
----
-4102

query I rowsort
SELECT 43 * + 92 + 58
----
4014

query II rowsort
SELECT ALL - 70 * 15 AS col1, - 60 + 66
----
-1050
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6927
SELECT + CAST( 2 AS SIGNED ) DIV CAST( 80 AS SIGNED ) + + 7
----
7

skipif mysql # not compatible
query I rowsort label-6927
SELECT + CAST ( 2 AS INTEGER ) / CAST ( 80 AS INTEGER ) + + 7
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6928
SELECT - NULLIF ( - 79, + - 53 ) * + + 86 DIV + ( - COUNT( * ) ) - 0 + SUM( - 73 ) - MAX( 59 ) col1
----
-6926

skipif mysql # not compatible
query I rowsort label-6928
SELECT - NULLIF ( - 79, + - 53 ) * + + 86 / + ( - COUNT ( * ) ) - 0 + SUM ( - 73 ) - MAX ( 59 ) col1
----
-6926

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6929
SELECT 8 * - - MIN( DISTINCT 95 ) AS col1, NULLIF ( - 69, 56 * - CAST( - - 61 AS DECIMAL ) ) + + SUM( + - 81 ) AS col0
----
760
-150

skipif mysql # not compatible
query II rowsort label-6929
SELECT 8 * - - MIN ( DISTINCT 95 ) AS col1, NULLIF ( - 69, 56 * - CAST ( - - 61 AS REAL ) ) + + SUM ( + - 81 ) AS col0
----
760
-150

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

skipif mysql # not compatible
query I rowsort label-6930
SELECT - COUNT ( * ) * - + 21 + - 96 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT 98 * - 84 * - SUM( ALL - - 21 ) col0
----
172872

skipif mysql # not compatible
query I rowsort label-6931
SELECT 98 * - 84 * - SUM ( ALL - - 21 ) col0
----
172872

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

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

query II rowsort
SELECT DISTINCT - ( 59 ), - 20 AS col2
----
-59
-20

query I rowsort
SELECT 14 + 11 + + - COALESCE ( - - 15, - + 43 + 79 ) AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6935
SELECT ALL ( - 43 ) DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL ( - 43 ) / 94
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6936
SELECT CASE - CAST( + + 65 AS SIGNED ) WHEN 63 THEN - 49 * 35 * + 93 * 52 END * - COUNT( * ) * - + ( - 89 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6936
SELECT CASE - CAST ( + + 65 AS INTEGER ) WHEN 63 THEN - 49 * 35 * + 93 * 52 END * - COUNT ( * ) * - + ( - 89 ) AS col1
----
NULL

query I rowsort
SELECT 56 * + 28
----
1568

query I rowsort
SELECT ALL 30 + + ( + 77 ) AS col0
----
107

query I rowsort
SELECT + 99 - 5 AS col1
----
94

query I rowsort
SELECT ALL + - 61 + 80
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6941
SELECT - 44 * CASE + CAST( NULL AS SIGNED ) WHEN 78 - - - ( + + 66 ) - - 45 THEN 28 * - - 73 * - 36 / - + 31 - + 60 END - + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6941
SELECT - 44 * CASE + CAST ( NULL AS INTEGER ) WHEN 78 - - - ( + + 66 ) - - 45 THEN 28 * - - 73 * - 36 / - + 31 - + 60 END - + 13
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6942
SELECT ALL - 22 + - 70 * - 94 + 35 + - + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL - 22 + - 70 * - 94 + 35 + - + CAST ( - CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6943
SELECT + 26 - - NULLIF ( - COUNT( + CAST( NULL AS SIGNED ) ), + COUNT( * ) ), 27 - - 19 AS col1
----
26
46

skipif mysql # not compatible
query II rowsort label-6943
SELECT + 26 - - NULLIF ( - COUNT ( + CAST ( NULL AS INTEGER ) ), + COUNT ( * ) ), 27 - - 19 AS col1
----
26
46

query I rowsort
SELECT ALL - 11 + - 54 * - - 74
----
-4007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6945
SELECT ALL + 36 + + 18 * SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL + 36 + + 18 * SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 12 + - - 23 - ( - + 68 ) + - 11 - - + 30
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT - MIN( ALL + + ( 44 ) ) + 33 col2
----
-11

skipif mysql # not compatible
query I rowsort label-6947
SELECT - MIN ( ALL + + ( 44 ) ) + 33 col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT 2 - - - COUNT( * ) + + COUNT( * ) + COUNT( * ) * + 25 col0
----
27

skipif mysql # not compatible
query I rowsort label-6948
SELECT 2 - - - COUNT ( * ) + + COUNT ( * ) + COUNT ( * ) * + 25 col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT DISTINCT - COUNT( - 72 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT - COUNT ( - 72 ) AS col1
----
-1

query II rowsort
SELECT 50 + + 46, 54 AS col2
----
96
54

query I rowsort
SELECT ALL - COALESCE ( - 24, - - 5, - 39 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT ALL + - MIN( ALL + 85 ) * - NULLIF ( - 15, - - 92 * + ( AVG ( - 53 ) ) ) AS col2
----
-1275

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL + - MIN ( ALL + 85 ) * - NULLIF ( - 15, - - 92 * + ( AVG ( - 53 ) ) ) AS col2
----
-1275

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ( - + 83 ) + 81 + - SUM( ALL - 48 )
----
46

skipif mysql # not compatible
query I rowsort label-6953
SELECT ( - + 83 ) + 81 + - SUM ( ALL - 48 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6954
SELECT ALL + 35 - - CAST( + 26 AS SIGNED ) * 33 + 94 DIV + 74 + 44 + - - 33 DIV + 36 + + 73 * - MIN( + 36 ) * 16
----
-41110

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL + 35 - - CAST ( + 26 AS INTEGER ) * 33 + 94 / + 74 + 44 + - - 33 / + 36 + + 73 * - MIN ( + 36 ) * 16
----
-41110

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT 61 * - + NULLIF ( + ( + 73 ), - 93 ) + + COUNT( * )
----
-4452

skipif mysql # not compatible
query I rowsort label-6955
SELECT 61 * - + NULLIF ( + ( + 73 ), - 93 ) + + COUNT ( * )
----
-4452

query I rowsort
SELECT 4 * - 75
----
-300

query I rowsort
SELECT 2 + - + 93
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT DISTINCT MIN( DISTINCT + + 40 ) * - 53 * + 87 AS col1
----
-184440

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT MIN ( DISTINCT + + 40 ) * - 53 * + 87 AS col1
----
-184440

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6960
SELECT 18 DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-6960
SELECT 18 / + 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT ALL - MAX( + 71 ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL - MAX ( + 71 ) col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT MAX( DISTINCT + 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-6962
SELECT MAX ( DISTINCT + 36 ) AS col1
----
36

query II rowsort
SELECT DISTINCT - 69, 53 + - - ( + 90 ) AS col1
----
-69
143

onlyif mysql # DIV for integer division: 
query I rowsort label-6964
SELECT DISTINCT + 93 DIV + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT + 93 / + 94 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6965
SELECT ALL - SUM( + ( 27 ) ), CAST( NULL AS SIGNED ) col1
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-6965
SELECT ALL - SUM ( + ( 27 ) ), CAST ( NULL AS INTEGER ) col1
----
-27
NULL

query I rowsort
SELECT 2 * - ( 52 ) + 53
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-6967
SELECT DISTINCT - 59 AS col1, 27 + + + COUNT( - 10 ) * CASE 87 WHEN - 3 * - + 34 + 47 THEN - + 51 * - 72 + - 52 + - COUNT( * ) + - - ( + 61 ) ELSE 23 END
----
-59
50

skipif mysql # not compatible
query II rowsort label-6967
SELECT DISTINCT - 59 AS col1, 27 + + + COUNT ( - 10 ) * CASE 87 WHEN - 3 * - + 34 + 47 THEN - + 51 * - 72 + - 52 + - COUNT ( * ) + - - ( + 61 ) ELSE 23 END
----
-59
50

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

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL - MAX ( 39 )
----
-39

query I rowsort
SELECT 43 * 91 col0
----
3913

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

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL + COUNT ( * ) + + - 41 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT - 40 * - 65 / + SUM( - - 94 ) + + CASE + 80 WHEN 7 THEN 27 * + - COUNT( * ) + + 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6971
SELECT - 40 * - 65 / + SUM ( - - 94 ) + + CASE + 80 WHEN 7 THEN 27 * + - COUNT ( * ) + + 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT 17 - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-6972
SELECT 17 - COUNT ( * )
----
16

query II rowsort
SELECT + 12 AS col0, CASE + 58 WHEN - + 93 * - 67 * 6 THEN - NULLIF ( - 75, - + 77 ) END / 45
----
12
NULL

query I rowsort
SELECT 40 * - 38 * - 63 + - 48
----
95712

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT DISTINCT - SUM( - 58 ) + - - 86
----
144

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT - SUM ( - 58 ) + - - 86
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL + 4 + - 13 * - - SUM( + + 26 ) + - 74
----
-408

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL + 4 + - 13 * - - SUM ( + + 26 ) + - 74
----
-408

query II rowsort
SELECT DISTINCT - - 23 col0, - 30 * + 44 AS col0
----
23
-1320

query II rowsort
SELECT ALL - + 41 AS col1, 96 + - - 25 * - - 98
----
-41
2546

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT + 16 * - + COUNT( * ) + 46 * + 66
----
3020

skipif mysql # not compatible
query I rowsort label-6979
SELECT + 16 * - + COUNT ( * ) + 46 * + 66
----
3020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6980
SELECT - CAST( - 34 AS SIGNED ) * + 10 * + 39
----
13260

skipif mysql # not compatible
query I rowsort label-6980
SELECT - CAST ( - 34 AS INTEGER ) * + 10 * + 39
----
13260

onlyif mysql # DIV for integer division: 
query I rowsort label-6981
SELECT 27 DIV + 47 col1
----
0

skipif mysql # not compatible
query I rowsort label-6981
SELECT 27 / + 47 col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT ALL - 24 - - MAX( - 58 )
----
-82

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL - 24 - - MAX ( - 58 )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6984
SELECT - - 19 DIV 19 + ( + 83 )
----
84

skipif mysql # not compatible
query I rowsort label-6984
SELECT - - 19 / 19 + ( + 83 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6985
SELECT ALL - COALESCE ( + 92, + COUNT( * ), - ( + CAST( NULL AS SIGNED ) ), - + SUM( ALL + 83 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL - COALESCE ( + 92, + COUNT ( * ), - ( + CAST ( NULL AS INTEGER ) ), - + SUM ( ALL + 83 ) )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-6986
SELECT ALL - + 41 - 6 + - 54 DIV - - 69 * + - ( - - ( + 36 ) ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL - + 41 - 6 + - 54 / - - 69 * + - ( - - ( + 36 ) ) col0
----
-47

query II rowsort
SELECT + 66, 43 AS col0
----
66
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT - 93 - 87 - + MIN( 84 ) * 23 * + 20
----
-38820

skipif mysql # not compatible
query I rowsort label-6989
SELECT - 93 - 87 - + MIN ( 84 ) * 23 * + 20
----
-38820

query I rowsort
SELECT + 63 * - - 79 * ( - ( + 79 ) ) * + - 48 + + - 43 AS col2
----
18872741

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - 17 - - - MAX( ALL 51 )
----
-68

skipif mysql # not compatible
query I rowsort label-6991
SELECT - 17 - - - MAX ( ALL 51 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6992
SELECT + CAST( - COUNT( - - ( ( + + 49 ) ) ) AS SIGNED ) + + 48 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-6992
SELECT + CAST ( - COUNT ( - - ( ( + + 49 ) ) ) AS INTEGER ) + + 48 AS col2
----
47

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

query I rowsort
SELECT DISTINCT ( 1 ) * - + 79
----
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT + ( - NULLIF ( - 69, + + MIN( - 45 ) ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6996
SELECT + ( - NULLIF ( - 69, + + MIN ( - 45 ) ) ) AS col2
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6998
SELECT CASE 2 WHEN + 14 - - - SUM( DISTINCT 43 ) THEN - - CAST( - + 12 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6998
SELECT CASE 2 WHEN + 14 - - - SUM ( DISTINCT 43 ) THEN - - CAST ( - + 12 AS INTEGER ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6999
SELECT 53 DIV 1 + + + 46 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-6999
SELECT 53 / 1 + + + 46 AS col1
----
99

query I rowsort
SELECT ALL - 19 * 67 * 41 * 11 + 8 * + - 2 - - 26
----
-574113

query I rowsort
SELECT CASE + + 90 WHEN - 93 + + - 7 THEN NULL ELSE - 1 * - + 7 + - + 30 * + + 54 END
----
-1613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7002
SELECT DISTINCT + 3 * CAST( NULL AS DECIMAL ) * 52 * + + 2 * - CAST( NULL AS SIGNED ) / - 88 + + ( - NULLIF ( - CASE + COUNT( * ) WHEN + 1 THEN 0 WHEN + - CASE 72 WHEN - - 37 * - 87 THEN + 3 * - 93 END THEN NULL ELSE NULL END, - - 15 ) ) + + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT + 3 * CAST ( NULL AS REAL ) * 52 * + + 2 * - CAST ( NULL AS INTEGER ) / - 88 + + ( - NULLIF ( - CASE + COUNT ( * ) WHEN + 1 THEN 0 WHEN + - CASE 72 WHEN - - 37 * - 87 THEN + 3 * - 93 END THEN NULL ELSE NULL END, - - 15 ) ) + + COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ALL - 80 * + 19
----
-1520

onlyif mysql # aggregate syntax: 
query II rowsort label-7004
SELECT ALL + COUNT( 54 ), - 4 AS col0
----
1
-4

skipif mysql # not compatible
query II rowsort label-7004
SELECT ALL + COUNT ( 54 ), - 4 AS col0
----
1
-4

query I rowsort
SELECT + + ( - ( - 41 ) ) + - 0 AS col0
----
41

query II rowsort
SELECT + ( 96 ), 72 AS col0
----
96
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7007
SELECT - - COUNT( * ) + + - 98 + - + 67 - - 4 DIV - ( + COUNT( * ) ) col0
----
-168

skipif mysql # not compatible
query I rowsort label-7007
SELECT - - COUNT ( * ) + + - 98 + - + 67 - - 4 / - ( + COUNT ( * ) ) col0
----
-168

query I rowsort
SELECT ALL 81 * - 67 + + - 56 + + COALESCE ( + - 21, 80, 94 ) * - 12 - 93 AS col0
----
-5324

onlyif mysql # aggregate syntax: 
query II rowsort label-7009
SELECT DISTINCT 54 * + CASE + + 20 WHEN 43 THEN + COALESCE ( - ( - 79 ), - - 83 ) WHEN - 83 THEN NULL END + + 84 * - COUNT( + 91 ) col2, - 86 AS col2
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-7009
SELECT DISTINCT 54 * + CASE + + 20 WHEN 43 THEN + COALESCE ( - ( - 79 ), - - 83 ) WHEN - 83 THEN NULL END + + 84 * - COUNT ( + 91 ) col2, - 86 AS col2
----
NULL
-86

query II rowsort
SELECT ALL - ( 84 ) AS col2, 67
----
-84
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7011
SELECT - - 90 * + 15 * ( - COUNT( * ) ) * + COALESCE ( - - 54, - 78 + + + 7 + + + 63 + - - 98 DIV - 80 * + + 81 * COUNT( * ) DIV 68 - - 80 ) * - COUNT( * ) AS col0
----
72900

skipif mysql # not compatible
query I rowsort label-7011
SELECT - - 90 * + 15 * ( - COUNT ( * ) ) * + COALESCE ( - - 54, - 78 + + + 7 + + + 63 + - - 98 / - 80 * + + 81 * COUNT ( * ) / 68 - - 80 ) * - COUNT ( * ) AS col0
----
72900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7012
SELECT 73 * + MIN( 14 ) * - - COALESCE ( - COUNT( * ), - 14 ) - - COUNT( * ) + 55 + + 61 + + 23 DIV + - 24
----
-905

skipif mysql # not compatible
query I rowsort label-7012
SELECT 73 * + MIN ( 14 ) * - - COALESCE ( - COUNT ( * ), - 14 ) - - COUNT ( * ) + 55 + + 61 + + 23 / + - 24
----
-905

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT - 68 * + MAX( + + ( + 64 ) ) AS col1
----
-4352

skipif mysql # not compatible
query I rowsort label-7013
SELECT - 68 * + MAX ( + + ( + 64 ) ) AS col1
----
-4352

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7015
SELECT - + COUNT( * ) DIV - - COUNT( * ) + 16 - 8
----
7

skipif mysql # not compatible
query I rowsort label-7015
SELECT - + COUNT ( * ) / - - COUNT ( * ) + 16 - 8
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ALL NULLIF ( + COALESCE ( + 81, - 56 * + CASE WHEN ( NULL ) IS NOT NULL THEN - 20 END ), - COUNT( * ) * + COALESCE ( - CASE COUNT( * ) WHEN 17 * + ( + - 12 ) * - + 57 * - ( 3 ) THEN + 30 * - 58 ELSE 20 END, - 72 * + 67 * - + 30 ) )
----
81

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL NULLIF ( + COALESCE ( + 81, - 56 * + CASE WHEN ( NULL ) IS NOT NULL THEN - 20 END ), - COUNT ( * ) * + COALESCE ( - CASE COUNT ( * ) WHEN 17 * + ( + - 12 ) * - + 57 * - ( 3 ) THEN + 30 * - 58 ELSE 20 END, - 72 * + 67 * - + 30 ) )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7017
SELECT - - CAST( NULL AS SIGNED ) + + - 57, 50 AS col2
----
NULL
50

skipif mysql # not compatible
query II rowsort label-7017
SELECT - - CAST ( NULL AS INTEGER ) + + - 57, 50 AS col2
----
NULL
50

query I rowsort
SELECT + - 32 - + 79 + - + 69 col1
----
-180

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7020
SELECT - 11 DIV - NULLIF ( + - 74, + - CAST( - 38 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7020
SELECT - 11 / - NULLIF ( + - 74, + - CAST ( - 38 AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7021
SELECT DISTINCT - 38 DIV ( + 4 ) * - 91 col0
----
819

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT - 38 / ( + 4 ) * - 91 col0
----
819

query I rowsort
SELECT DISTINCT ( + + 71 ) * 62 col1
----
4402

query I rowsort
SELECT ALL 58 + - + 77
----
-19

query I rowsort
SELECT - 64 + + 12
----
-52

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

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

query I rowsort
SELECT + 40 + - - ( - ( + 78 ) )
----
-38

query II rowsort
SELECT - 90 AS col1, + 36 AS col0
----
-90
36

query I rowsort
SELECT - 22 + - 72 AS col0
----
-94

query I rowsort
SELECT ALL + CASE 57 WHEN - - 54 THEN NULL ELSE + ( 93 ) END
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7030
SELECT ALL + 92 DIV ( - + 68 ) * + 79 + 10
----
-69

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL + 92 / ( - + 68 ) * + 79 + 10
----
-69

query I rowsort
SELECT + 26 * 14 AS col1
----
364

query I rowsort
SELECT - - 35 * - - 31 AS col1
----
1085

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT + - COUNT( * ) + + 34 + 10 + - + 38
----
5

skipif mysql # not compatible
query I rowsort label-7033
SELECT + - COUNT ( * ) + + 34 + 10 + - + 38
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT ALL + NULLIF ( + 91, 70 ) * + ( - - CASE - 68 WHEN + 56 THEN + COUNT( * ) WHEN - 65 THEN NULL END ) - + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL + NULLIF ( + 91, 70 ) * + ( - - CASE - 68 WHEN + 56 THEN + COUNT ( * ) WHEN - 65 THEN NULL END ) - + + 55
----
NULL

query I rowsort
SELECT + + 18 + - + 3
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT + CASE - COUNT( * ) WHEN + COUNT( * ) + 28 THEN - COUNT( * ) / + 84 + - + ( + - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7036
SELECT + CASE - COUNT ( * ) WHEN + COUNT ( * ) + 28 THEN - COUNT ( * ) / + 84 + - + ( + - COUNT ( * ) ) END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7037
SELECT - SUM ( 73 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT - - 39 * - + 14 * 90 + SUM( DISTINCT + 60 ) + - + 36 + - + 14 AS col1
----
-49130

skipif mysql # not compatible
query I rowsort label-7038
SELECT - - 39 * - + 14 * 90 + SUM ( DISTINCT + 60 ) + - + 36 + - + 14 AS col1
----
-49130

query I rowsort
SELECT ALL 42 * + 19 + ( - 47 ) + + 80 + 2
----
833

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7041
SELECT - 95 + - CASE + 32 WHEN 42 - + + 7 THEN NULL WHEN + COALESCE ( - + 8, + NULLIF ( COALESCE ( - CASE - 44 WHEN - - ( 85 ) * 72 THEN NULL WHEN 53 THEN NULL ELSE + + 13 / + + 87 * + - 15 * + 98 / + + 57 - - 31 / + 12 END, - 46 ), + CAST( COUNT( * ) AS SIGNED ) / 31 ) ) THEN - 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT - 95 + - CASE + 32 WHEN 42 - + + 7 THEN NULL WHEN + COALESCE ( - + 8, + NULLIF ( COALESCE ( - CASE - 44 WHEN - - ( 85 ) * 72 THEN NULL WHEN 53 THEN NULL ELSE + + 13 / + + 87 * + - 15 * + 98 / + + 57 - - 31 / + 12 END, - 46 ), + CAST ( COUNT ( * ) AS INTEGER ) / 31 ) ) THEN - 82 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7043
SELECT + 70 * MIN( - + CAST( - - 7 AS SIGNED ) ) + + 78 * - 62 + - 43 AS col2
----
-5369

skipif mysql # not compatible
query I rowsort label-7043
SELECT + 70 * MIN ( - + CAST ( - - 7 AS INTEGER ) ) + + 78 * - 62 + - 43 AS col2
----
-5369

query I rowsort
SELECT - ( NULLIF ( + - 0, - 38 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT 28 * + ( + 77 ) * + 9 + - COUNT( DISTINCT 80 ) AS col2
----
19403

skipif mysql # not compatible
query I rowsort label-7045
SELECT 28 * + ( + 77 ) * + 9 + - COUNT ( DISTINCT 80 ) AS col2
----
19403

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT + COUNT( * ) * + - 39 * + ( - 25 ) col1
----
975

skipif mysql # not compatible
query I rowsort label-7046
SELECT + COUNT ( * ) * + - 39 * + ( - 25 ) col1
----
975

query I rowsort
SELECT - 45 + + 61 * + 21 AS col2
----
1236

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7049
SELECT + NULLIF ( - + 87, 19 + + - ( - COALESCE ( + - COUNT( * ), - MAX( DISTINCT - 27 ) / 97 - - 37 / MAX( CAST( + 37 AS SIGNED ) ) * - - 42 + - COUNT( DISTINCT - 3 ), + - MIN( ALL + + 93 ) * - 48 ) ) )
----
-87

skipif mysql # not compatible
query I rowsort label-7049
SELECT + NULLIF ( - + 87, 19 + + - ( - COALESCE ( + - COUNT ( * ), - MAX ( DISTINCT - 27 ) / 97 - - 37 / MAX ( CAST ( + 37 AS INTEGER ) ) * - - 42 + - COUNT ( DISTINCT - 3 ), + - MIN ( ALL + + 93 ) * - 48 ) ) )
----
-87

query II rowsort
SELECT ALL 51 AS col2, + 66 * + + 88 AS col0
----
51
5808

query II rowsort
SELECT - 62, + NULLIF ( + 14, - 87 / 53 * - - 58 + 98 * - 72 ) col2
----
-62
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT DISTINCT - 7 + + - 93 + 44 - + COUNT( * ) * - 55
----
-1

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT - 7 + + - 93 + 44 - + COUNT ( * ) * - 55
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ALL + CASE - 86 WHEN - 20 THEN NULL ELSE 97 * 40 * - 22 + + ( + 46 ) + - 99 - NULLIF ( + + 22, - 54 ) * + + 91 * 37 END + + COUNT( * )
----
-159486

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL + CASE - 86 WHEN - 20 THEN NULL ELSE 97 * 40 * - 22 + + ( + 46 ) + - 99 - NULLIF ( + + 22, - 54 ) * + + 91 * 37 END + + COUNT ( * )
----
-159486

query I rowsort
SELECT DISTINCT - 98 + + 57 + 53 - + 69 AS col1
----
-57

query I rowsort
SELECT 92 * + 96
----
8832

query I rowsort
SELECT 27 * 8 AS col2
----
216

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

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

query II rowsort
SELECT - 34, 75 AS col2
----
-34
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7060
SELECT DISTINCT - NULLIF ( - - 77, + - 12 ) + 91 * + NULLIF ( - + CAST( NULL AS SIGNED ), - ( - 1 ) ) / - 22 - - 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT - NULLIF ( - - 77, + - 12 ) + 91 * + NULLIF ( - + CAST ( NULL AS INTEGER ), - ( - 1 ) ) / - 22 - - 12 AS col1
----
NULL

query I rowsort
SELECT 8 - + + 21 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query III rowsort label-7062
SELECT 36 AS col2, SUM( 4 ) + - - 49, - + 62 * - 15 AS col0
----
36
53
930

skipif mysql # not compatible
query III rowsort label-7062
SELECT 36 AS col2, SUM ( 4 ) + - - 49, - + 62 * - 15 AS col0
----
36
53
930

query I rowsort
SELECT 17 - - + 73
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT 53 * 22 * COUNT( * ) AS col0
----
1166

skipif mysql # not compatible
query I rowsort label-7064
SELECT 53 * 22 * COUNT ( * ) AS col0
----
1166

onlyif mysql # DIV for integer division: 
query I rowsort label-7065
SELECT ALL - 80 DIV ( + + 63 ) * + 25 col0
----
-25

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL - 80 / ( + + 63 ) * + 25 col0
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-7066
SELECT - 0, + 59 DIV + 74 col1
----
0
0

skipif mysql # not compatible
query II rowsort label-7066
SELECT - 0, + 59 / + 74 col1
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT DISTINCT - 8 + - 6 + - - 53 + - + 14 + + 91 * - ( + 96 ) + + 19 + - + COALESCE ( + 84, - CASE - - COUNT( * ) WHEN + + COUNT( * ) THEN 8 WHEN + - 64 THEN NULL ELSE - 62 * - COUNT( * ) END * - + COUNT( + 17 ) ) * - 58
----
-3820

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT - 8 + - 6 + - - 53 + - + 14 + + 91 * - ( + 96 ) + + 19 + - + COALESCE ( + 84, - CASE - - COUNT ( * ) WHEN + + COUNT ( * ) THEN 8 WHEN + - 64 THEN NULL ELSE - 62 * - COUNT ( * ) END * - + COUNT ( + 17 ) ) * - 58
----
-3820

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT ALL 45 - 92 - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL 45 - 92 - COUNT ( * )
----
-48

query I rowsort
SELECT DISTINCT + 63 * + 87 AS col2
----
5481

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7070
SELECT + 52 / + MAX( - - 36 ) - + - CAST( NULL AS DECIMAL ), + 30 AS col0
----
NULL
30

skipif mysql # not compatible
query II rowsort label-7070
SELECT + 52 / + MAX ( - - 36 ) - + - CAST ( NULL AS REAL ), + 30 AS col0
----
NULL
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT 32 * 7 * - 15 * NULLIF ( - 44, + CASE WHEN ( NULL ) <> + 49 THEN 0 + + 81 ELSE 48 + 19 + + - 33 + + + ( + 27 ) * - + 2 - - COUNT( * ) - - CASE - 95 WHEN - - 8 - - 37 + 12 * - 74 THEN + - 60 / - 91 / 48 END * + 57 * 54 END ) * 68
----
10053120

skipif mysql # not compatible
query I rowsort label-7071
SELECT 32 * 7 * - 15 * NULLIF ( - 44, + CASE WHEN ( NULL ) <> + 49 THEN 0 + + 81 ELSE 48 + 19 + + - 33 + + + ( + 27 ) * - + 2 - - COUNT ( * ) - - CASE - 95 WHEN - - 8 - - 37 + 12 * - 74 THEN + - 60 / - 91 / 48 END * + 57 * 54 END ) * 68
----
10053120

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT MIN( DISTINCT 11 ) * - ( + 33 ) * - + COALESCE ( 57, - 95 * + 83 - + 33 ) + + 57 AS col1
----
20748

skipif mysql # not compatible
query I rowsort label-7072
SELECT MIN ( DISTINCT 11 ) * - ( + 33 ) * - + COALESCE ( 57, - 95 * + 83 - + 33 ) + + 57 AS col1
----
20748

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

query I rowsort
SELECT 42 * 56
----
2352

onlyif mysql # DIV for integer division: 
query II rowsort label-7075
SELECT + 43 * 0 DIV - - 67 + - 53 AS col0, + ( - 62 ) AS col0
----
-53
-62

skipif mysql # not compatible
query II rowsort label-7075
SELECT + 43 * 0 / - - 67 + - 53 AS col0, + ( - 62 ) AS col0
----
-53
-62

query II rowsort
SELECT ALL - 35 AS col1, 89 AS col1
----
-35
89

query I rowsort
SELECT ALL - - CASE - + 78 WHEN + + 10 THEN - 3 * + 56 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7078
SELECT ALL - 12 AS col1, + COUNT( * ) * - SUM( + 68 ) - 49 AS col1
----
-12
-117

skipif mysql # not compatible
query II rowsort label-7078
SELECT ALL - 12 AS col1, + COUNT ( * ) * - SUM ( + 68 ) - 49 AS col1
----
-12
-117

query II rowsort
SELECT DISTINCT - + 36, 13 + + 37 col1
----
-36
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT 62 * 5 * COUNT( * ) + + CASE 49 WHEN 95 THEN NULL ELSE - 28 END
----
282

skipif mysql # not compatible
query I rowsort label-7080
SELECT 62 * 5 * COUNT ( * ) + + CASE 49 WHEN 95 THEN NULL ELSE - 28 END
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT + 93 * - + COALESCE ( - COUNT( 14 ), 42 + + 58 ) * 17 + 74 + 67
----
1722

skipif mysql # not compatible
query I rowsort label-7081
SELECT + 93 * - + COALESCE ( - COUNT ( 14 ), 42 + + 58 ) * 17 + 74 + 67
----
1722

query II rowsort
SELECT + 62 AS col1, + 71 * - + ( - + 20 ) * 77
----
62
109340

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT - 60 + - + 14 + 92 * + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-7083
SELECT - 60 + - + 14 + 92 * + COUNT ( * )
----
18

query II rowsort
SELECT + 46 AS col0, 87 AS col2
----
46
87

query I rowsort
SELECT DISTINCT 99 * - + 36 AS col1
----
-3564

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT ALL - - 42 + + CASE COUNT( + - 29 ) WHEN - ( CASE 60 WHEN + COUNT( * ) THEN - ( 27 ) * + - 64 WHEN - COALESCE ( + + NULLIF ( + + 73, + 22 ), - - 65, - 55 ) / + 65 + + COALESCE ( 48, + COALESCE ( - 8, - ( + + 51 ) + - + 87 ) ) THEN - 43 * 47 ELSE NULL END ) THEN 78 WHEN + 25 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL - - 42 + + CASE COUNT ( + - 29 ) WHEN - ( CASE 60 WHEN + COUNT ( * ) THEN - ( 27 ) * + - 64 WHEN - COALESCE ( + + NULLIF ( + + 73, + 22 ), - - 65, - 55 ) / + 65 + + COALESCE ( 48, + COALESCE ( - 8, - ( + + 51 ) + - + 87 ) ) THEN - 43 * 47 ELSE NULL END ) THEN 78 WHEN + 25 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - - 17 col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT - 87 DIV 21
----
-4

skipif mysql # not compatible
query I rowsort label-7088
SELECT - 87 / 21
----
-4

query I rowsort
SELECT ALL + 35 + + ( - 52 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-7090
SELECT - + 68 * SUM( ALL + 45 ) * - 34 - + - 67 + 4, - 19 AS col2
----
104111
-19

skipif mysql # not compatible
query II rowsort label-7090
SELECT - + 68 * SUM ( ALL + 45 ) * - 34 - + - 67 + 4, - 19 AS col2
----
104111
-19

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

query I rowsort
SELECT ALL - 61 + NULLIF ( - + 21, + + 55 - 71 * + + 76 * 54 * - + 12 )
----
-82

query I rowsort
SELECT 18 + - + 55 * - 13
----
733

query I rowsort
SELECT 37 + - 61
----
-24

query I rowsort
SELECT ALL 23 + + COALESCE ( + 54, - + 30 )
----
77

query I rowsort
SELECT 8 + - 21
----
-13

query I rowsort
SELECT 53 - + 36 AS col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7098
SELECT ALL 87 + - - 46 AS col0, + MAX( DISTINCT - + 2 ) + 1 - 13 AS col2
----
133
-14

skipif mysql # not compatible
query II rowsort label-7098
SELECT ALL 87 + - - 46 AS col0, + MAX ( DISTINCT - + 2 ) + 1 - 13 AS col2
----
133
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7099
SELECT - CASE + + 68 WHEN + + 12 * - CASE - NULLIF ( - COUNT( * ), + 62 ) WHEN 78 THEN - + CASE 46 WHEN CAST( NULL AS DECIMAL ) THEN 92 * - 64 END WHEN - 49 THEN CASE 93 WHEN - - NULLIF ( ( - COUNT( * ) ), 63 + - 25 * + 78 ) THEN SUM( + 67 ) * 91 + + - 59 WHEN 90 THEN - 19 - - CAST( NULL AS SIGNED ) ELSE 40 END / 56 ELSE 7 + + 25 END + - 89 THEN - 85 * COUNT( * ) WHEN 22 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT - CASE + + 68 WHEN + + 12 * - CASE - NULLIF ( - COUNT ( * ), + 62 ) WHEN 78 THEN - + CASE 46 WHEN CAST ( NULL AS REAL ) THEN 92 * - 64 END WHEN - 49 THEN CASE 93 WHEN - - NULLIF ( ( - COUNT ( * ) ), 63 + - 25 * + 78 ) THEN SUM ( + 67 ) * 91 + + - 59 WHEN 90 THEN - 19 - - CAST ( NULL AS INTEGER ) ELSE 40 END / 56 ELSE 7 + + 25 END + - 89 THEN - 85 * COUNT ( * ) WHEN 22 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 22 - ( + 8 ) + + 59
----
73

query I rowsort
SELECT 52 + + 17 + 76 AS col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT 71 + + - 56 + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-7102
SELECT 71 + + - 56 + COUNT ( * )
----
16

query I rowsort
SELECT + 15 * 39 AS col2
----
585

onlyif mysql # aggregate syntax: 
query II rowsort label-7104
SELECT - COALESCE ( - 83, + 76 + - 5 + + 83 + + 14 * + COUNT( * ) * 64 * 67, + 75 * 88 * - 6 - 51 + + CASE + - 8 WHEN - 24 + + - 80 THEN NULL WHEN + 27 THEN + 5 END - 19, 49 * + 54 ) * + - COUNT( * ) * 72 + + COUNT( * ), + 92 * + 3 + 89 AS col0
----
-5975
365

skipif mysql # not compatible
query II rowsort label-7104
SELECT - COALESCE ( - 83, + 76 + - 5 + + 83 + + 14 * + COUNT ( * ) * 64 * 67, + 75 * 88 * - 6 - 51 + + CASE + - 8 WHEN - 24 + + - 80 THEN NULL WHEN + 27 THEN + 5 END - 19, 49 * + 54 ) * + - COUNT ( * ) * 72 + + COUNT ( * ), + 92 * + 3 + 89 AS col0
----
-5975
365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7105
SELECT - + 27 + 29 + - CAST( + MIN( DISTINCT + 98 ) AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-7105
SELECT - + 27 + 29 + - CAST ( + MIN ( DISTINCT + 98 ) AS INTEGER )
----
-96

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7108
SELECT ALL + + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL + + CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7109
SELECT - 21 * - 22 * + MIN( DISTINCT + CAST( - ( - 22 ) AS SIGNED ) )
----
10164

skipif mysql # not compatible
query I rowsort label-7109
SELECT - 21 * - 22 * + MIN ( DISTINCT + CAST ( - ( - 22 ) AS INTEGER ) )
----
10164

query I rowsort
SELECT DISTINCT - - ( 15 ) * + 64
----
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7111
SELECT + - 20 + + 88 - CAST( NULL AS SIGNED ) * - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7111
SELECT + - 20 + + 88 - CAST ( NULL AS INTEGER ) * - 84 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7112
SELECT - - 50 * NULLIF ( - + CAST( NULL AS DECIMAL ), - CAST( CASE + 12 WHEN - 93 + + 1 / - 32 THEN NULL WHEN - - CASE - - 83 WHEN 50 / + - 81 / + COUNT( * ) - 23 THEN - - 75 END THEN 94 * + - 99 END AS SIGNED ) ) + NULLIF ( 51, 11 ) - + - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7112
SELECT - - 50 * NULLIF ( - + CAST ( NULL AS REAL ), - CAST ( CASE + 12 WHEN - 93 + + 1 / - 32 THEN NULL WHEN - - CASE - - 83 WHEN 50 / + - 81 / + COUNT ( * ) - 23 THEN - - 75 END THEN 94 * + - 99 END AS INTEGER ) ) + NULLIF ( 51, 11 ) - + - 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT ALL - 36 * 28 + + - SUM( - 89 )
----
-919

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL - 36 * 28 + + - SUM ( - 89 )
----
-919

query I rowsort
SELECT DISTINCT 40 * 73 + - - 49
----
2969

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT - 7 * 34 * + COUNT( * ) + 65 + + 89 + - 15 * ( 75 ) * + 2
----
-2334

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT - 7 * 34 * + COUNT ( * ) + 65 + + 89 + - 15 * ( 75 ) * + 2
----
-2334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7116
SELECT ALL + 71 * + COALESCE ( - 19, - + 85 * + - CAST( NULL AS SIGNED ), - ( 14 ) ) + + COALESCE ( - + 4, 25 + + + AVG ( ALL - NULLIF ( + 46, - 7 * + - 46 ) ) * + - 10 ) + - CASE 82 WHEN 25 THEN NULL WHEN MIN( ALL - - 11 ) + + ( - 38 ) THEN + - 92 + - 12 + + - 74 / + 82 * - ( 57 ) * 71 WHEN 42 + - 19 THEN NULL END + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL + 71 * + COALESCE ( - 19, - + 85 * + - CAST ( NULL AS INTEGER ), - ( 14 ) ) + + COALESCE ( - + 4, 25 + + + AVG ( ALL - NULLIF ( + 46, - 7 * + - 46 ) ) * + - 10 ) + - CASE 82 WHEN 25 THEN NULL WHEN MIN ( ALL - - 11 ) + + ( - 38 ) THEN + - 92 + - 12 + + - 74 / + 82 * - ( 57 ) * 71 WHEN 42 + - 19 THEN NULL END + 36
----
NULL

query I rowsort
SELECT - - 59 + 4 + + + 57 * 93 AS col0
----
5364

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7120
SELECT - + 7 * + 62 + - 70 + - + 71 / - 31 * 42 / + 47 + - CASE - + 54 WHEN + AVG ( ALL ( - - 71 ) ) * 88 * - + 19 THEN - CAST( ( - ( + - 93 ) ) AS SIGNED ) END * + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7120
SELECT - + 7 * + 62 + - 70 + - + 71 / - 31 * 42 / + 47 + - CASE - + 54 WHEN + AVG ( ALL ( - - 71 ) ) * 88 * - + 19 THEN - CAST ( ( - ( + - 93 ) ) AS INTEGER ) END * + 27 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + ( 17 ) * - 28 * + 26 + - - 16 AS col0
----
-12360

onlyif mysql # DIV for integer division: 
query I rowsort label-7122
SELECT ALL - 36 * + ( + 12 ) + + + 60 DIV 26 col0
----
-430

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL - 36 * + ( + 12 ) + + + 60 / 26 col0
----
-430

onlyif mysql # aggregate syntax: 
query II rowsort label-7123
SELECT COUNT( * ), 74 + 33 AS col0
----
1
107

skipif mysql # not compatible
query II rowsort label-7123
SELECT COUNT ( * ), 74 + 33 AS col0
----
1
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT SUM( + 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7124
SELECT SUM ( + 32 ) AS col0
----
32

query I rowsort
SELECT - 29 * - 8
----
232

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

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

query I rowsort
SELECT + 11 + - 80
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7128
SELECT ALL CAST( + ( + 27 ) AS SIGNED ) * + 7 - - 29 AS col2
----
218

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL CAST ( + ( + 27 ) AS INTEGER ) * + 7 - - 29 AS col2
----
218

query II rowsort
SELECT 56 AS col0, 49
----
56
49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7131
SELECT ALL 69 - - 17 + - CAST( NULL AS SIGNED ) + + + 5 + + + 27 / 81 * + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL 69 - - 17 + - CAST ( NULL AS INTEGER ) + + + 5 + + + 27 / 81 * + - 41
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7132
SELECT ALL 42 AS col0, + 86 * + - COUNT( * )
----
42
-86

skipif mysql # not compatible
query II rowsort label-7132
SELECT ALL 42 AS col0, + 86 * + - COUNT ( * )
----
42
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7133
SELECT - 63 * - AVG ( CAST( NULL AS SIGNED ) ) AS col0, 1 + - + 75 * - CASE - MAX( ALL - - 40 ) WHEN + 70 + ( 67 ) THEN + NULLIF ( + - 10, - COUNT( * ) * - - 81 ) WHEN + 3 THEN - + CAST( NULL AS SIGNED ) * - - 28 * 88 / + - 74 + + + SUM( ALL - ( 61 ) ) + - 43 + + 16 * + 51 END * + 20
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7133
SELECT - 63 * - AVG ( CAST ( NULL AS INTEGER ) ) AS col0, 1 + - + 75 * - CASE - MAX ( ALL - - 40 ) WHEN + 70 + ( 67 ) THEN + NULLIF ( + - 10, - COUNT ( * ) * - - 81 ) WHEN + 3 THEN - + CAST ( NULL AS INTEGER ) * - - 28 * 88 / + - 74 + + + SUM ( ALL - ( 61 ) ) + - 43 + + 16 * + 51 END * + 20
----
NULL
NULL

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

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

query I rowsort
SELECT - ( - - 55 ) AS col2
----
-55

query I rowsort
SELECT + 3 * - + 13
----
-39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7137
SELECT + 15 - - - MIN( + - 25 ) * + CASE 2 WHEN + - 46 * - 95 * - - COUNT( * ) THEN NULL ELSE - CAST( NULL AS DECIMAL ) - 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7137
SELECT + 15 - - - MIN ( + - 25 ) * + CASE 2 WHEN + - 46 * - 95 * - - COUNT ( * ) THEN NULL ELSE - CAST ( NULL AS REAL ) - 25 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7138
SELECT + 21 DIV + NULLIF ( + 78, + CASE - + 57 WHEN - 14 THEN 3 ELSE NULL END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7138
SELECT + 21 / + NULLIF ( + 78, + CASE - + 57 WHEN - 14 THEN 3 ELSE NULL END ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT ALL 27 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL 27 / 40
----
0

query I rowsort
SELECT + 68 + - + 0 AS col2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7141
SELECT ALL 17 AS col1, - 26 * - 38 + COUNT( * ) - SUM( ALL 67 ) * CASE + NULLIF ( COUNT( * ), CASE - - CASE + CASE + 23 WHEN - ( NULLIF ( + + 68, 17 ) ) * + 12 / - 44 * 45 THEN - - 71 + + + 79 * + 15 + 69 ELSE NULL END WHEN - 94 THEN + 57 - + 94 * + 46 + + 74 WHEN + COUNT( * ) THEN NULL WHEN 73 + - 57 THEN NULL END WHEN COUNT( - ( + 1 ) ) + - CASE - 38 WHEN - MIN( DISTINCT + 49 ) THEN COUNT( * ) * - CASE WHEN NOT NULL <= NULL THEN - COUNT( * ) END END * 28 THEN 16 + 26 ELSE + 46 END ) WHEN + 47 THEN - 11 WHEN + 25 THEN 70 END AS col1
----
17
NULL

skipif mysql # not compatible
query II rowsort label-7141
SELECT ALL 17 AS col1, - 26 * - 38 + COUNT ( * ) - SUM ( ALL 67 ) * CASE + NULLIF ( COUNT ( * ), CASE - - CASE + CASE + 23 WHEN - ( NULLIF ( + + 68, 17 ) ) * + 12 / - 44 * 45 THEN - - 71 + + + 79 * + 15 + 69 ELSE NULL END WHEN - 94 THEN + 57 - + 94 * + 46 + + 74 WHEN + COUNT ( * ) THEN NULL WHEN 73 + - 57 THEN NULL END WHEN COUNT ( - ( + 1 ) ) + - CASE - 38 WHEN - MIN ( DISTINCT + 49 ) THEN COUNT ( * ) * - CASE WHEN NOT NULL <= NULL THEN - COUNT ( * ) END END * 28 THEN 16 + 26 ELSE + 46 END ) WHEN + 47 THEN - 11 WHEN + 25 THEN 70 END AS col1
----
17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT ALL + COALESCE ( + CASE - 74 WHEN + NULLIF ( ( AVG ( 18 ) ), + + 98 ) * COUNT( * ) + + + 52 THEN 53 ELSE - + COUNT( * ) END, - - 0 ) * 97 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL + COALESCE ( + CASE - 74 WHEN + NULLIF ( ( AVG ( 18 ) ), + + 98 ) * COUNT ( * ) + + + 52 THEN 53 ELSE - + COUNT ( * ) END, - - 0 ) * 97 AS col1
----
-97

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

skipif mysql # not compatible
query II rowsort label-7143
SELECT DISTINCT COUNT ( * ) AS col0, ( 42 ) + 36 + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

query II rowsort
SELECT DISTINCT 67 AS col2, - 61
----
67
-61

query I rowsort
SELECT + 76 * ( 3 ) - 77 - + 24 AS col1
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-7146
SELECT ALL 42 DIV COALESCE ( - - 21, + + 21, 22 - + 18, + - 1 ) * 76 + + 2 + - 47 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL 42 / COALESCE ( - - 21, + + 21, 22 - + 18, + - 1 ) * 76 + + 2 + - 47 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT ALL 36 * + SUM( ALL 44 ) AS col0
----
1584

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL 36 * + SUM ( ALL 44 ) AS col0
----
1584

query I rowsort
SELECT - 75 * - 43 + - 66 AS col0
----
3159

query I rowsort
SELECT + + 29 * + 50 + ( - 89 ) AS col1
----
1361

onlyif mysql # aggregate syntax: 
query II rowsort label-7150
SELECT DISTINCT + 6 AS col1, + ( COALESCE ( + + 26, - - COUNT( * ) ) ) * + 32
----
6
832

skipif mysql # not compatible
query II rowsort label-7150
SELECT DISTINCT + 6 AS col1, + ( COALESCE ( + + 26, - - COUNT ( * ) ) ) * + 32
----
6
832

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7152
SELECT - + 80 DIV - + 78 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7152
SELECT - + 80 / - + 78 AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7153
SELECT ALL - + 61 DIV + - 79 + + 1 AS col1, 77 - - - 19 * + + 0 + + 21
----
1
98

skipif mysql # not compatible
query II rowsort label-7153
SELECT ALL - + 61 / + - 79 + + 1 AS col1, 77 - - - 19 * + + 0 + + 21
----
1
98

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

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

query I rowsort
SELECT + + 88 col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7156
SELECT ALL - 24 DIV + - 28
----
0

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL - 24 / + - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT - NULLIF ( + - COUNT( * ), - COALESCE ( 47, - 86 ) * 66 ) * 44 + + 99 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-7157
SELECT - NULLIF ( + - COUNT ( * ), - COALESCE ( 47, - 86 ) * 66 ) * 44 + + 99 AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT + 91 * COUNT( DISTINCT - + 54 ) + + - 65 + + SUM( DISTINCT + 67 ) + - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-7158
SELECT + 91 * COUNT ( DISTINCT - + 54 ) + + - 65 + + SUM ( DISTINCT + 67 ) + - COUNT ( * )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7159
SELECT + - 31 * COUNT( * ) DIV 4 * - 56 * COUNT( * ) + + 16 * + 90 col0
----
1832

skipif mysql # not compatible
query I rowsort label-7159
SELECT + - 31 * COUNT ( * ) / 4 * - 56 * COUNT ( * ) + + 16 * + 90 col0
----
1832

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

skipif mysql # not compatible
query I rowsort label-7160
SELECT - 35 * - + 2 + COUNT ( * ) AS col1
----
71

query I rowsort
SELECT - + 53 + 33 AS col1
----
-20

query I rowsort
SELECT 84 * + - 63 * - + 10 - + 99 + + 58 - 50 * 71 + - 89
----
49240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7163
SELECT COALESCE ( - - 50, - COALESCE ( + - 90, 45 + - 63 - + - 99 - 5 * + CAST( NULL AS SIGNED ) ) + - 39 - 12 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-7163
SELECT COALESCE ( - - 50, - COALESCE ( + - 90, 45 + - 63 - + - 99 - 5 * + CAST ( NULL AS INTEGER ) ) + - 39 - 12 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-7164
SELECT + COUNT( * ) * + 57, - 36 AS col0
----
57
-36

skipif mysql # not compatible
query II rowsort label-7164
SELECT + COUNT ( * ) * + 57, - 36 AS col0
----
57
-36

query I rowsort
SELECT ALL + 76 * - 34 - - 59 AS col1
----
-2525

query I rowsort
SELECT - 22 * 48 + + 32 * + 40 * + 12 * 3 AS col2
----
45024

query II rowsort
SELECT NULLIF ( + 61, + 17 * - 8 - - 25 * - 9 + + - 42 ) col2, - 72 AS col1
----
61
-72

query I rowsort
SELECT - 51 + - 41
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-7169
SELECT + ( 19 ) + - ( - 56 ) + - 55 AS col0, 61 + + MIN( ALL + 27 ) col2
----
20
88

skipif mysql # not compatible
query II rowsort label-7169
SELECT + ( 19 ) + - ( - 56 ) + - 55 AS col0, 61 + + MIN ( ALL + 27 ) col2
----
20
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT - COUNT( * ) * COUNT( + + 39 ) * - + 57 + 22
----
79

skipif mysql # not compatible
query I rowsort label-7170
SELECT - COUNT ( * ) * COUNT ( + + 39 ) * - + 57 + 22
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7171
SELECT + ( 2 ) * + + 79 + + - MIN( DISTINCT - 9 ) AS col1, 67 * - + 84 AS col1
----
167
-5628

skipif mysql # not compatible
query II rowsort label-7171
SELECT + ( 2 ) * + + 79 + + - MIN ( DISTINCT - 9 ) AS col1, 67 * - + 84 AS col1
----
167
-5628

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7173
SELECT ALL 86 * 97 AS col0, + COUNT( * ) col0
----
8342
1

skipif mysql # not compatible
query II rowsort label-7173
SELECT ALL 86 * 97 AS col0, + COUNT ( * ) col0
----
8342
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT 52 + + - 80 DIV 20
----
48

skipif mysql # not compatible
query I rowsort label-7174
SELECT 52 + + - 80 / 20
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7175
SELECT 58 * - 39 / + CAST( NULL AS SIGNED )
----
NULL

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

query I rowsort
SELECT DISTINCT - 41 * - 17 * - + 29 AS col2
----
-20213

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT DISTINCT 98 + + COALESCE ( - 15, - 63 ) * - NULLIF ( - + COUNT( + - 96 ), + 51 )
----
83

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT 98 + + COALESCE ( - 15, - 63 ) * - NULLIF ( - + COUNT ( + - 96 ), + 51 )
----
83

query I rowsort
SELECT ALL 20 + 56
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT - CASE + + MAX( + 83 ) WHEN - 72 THEN - MIN( + 39 ) / + 78 + - COALESCE ( + - AVG ( DISTINCT - 80 ), - + ( + ( - 46 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT - CASE + + MAX ( + 83 ) WHEN - 72 THEN - MIN ( + 39 ) / + 78 + - COALESCE ( + - AVG ( DISTINCT - 80 ), - + ( + ( - 46 ) ) ) END
----
NULL

query I rowsort
SELECT - 12 + - + 90 col2
----
-102

query I rowsort
SELECT 79 + 52
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-7182
SELECT DISTINCT CASE 68 WHEN - ( + COUNT( * ) ) / - - 39 * - CASE WHEN NOT ( ( 75 ) ) IS NULL THEN NULL ELSE 91 * + - 45 END / + + 36 THEN - ( + ( - 41 ) ) * - 3 - 59 WHEN 94 THEN - 64 * 99 ELSE NULL END + - NULLIF ( + 90, - 91 ) AS col2, - ( + 91 ) * + 86
----
NULL
-7826

skipif mysql # not compatible
query II rowsort label-7182
SELECT DISTINCT CASE 68 WHEN - ( + COUNT ( * ) ) / - - 39 * - CASE WHEN NOT ( ( 75 ) ) IS NULL THEN NULL ELSE 91 * + - 45 END / + + 36 THEN - ( + ( - 41 ) ) * - 3 - 59 WHEN 94 THEN - 64 * 99 ELSE NULL END + - NULLIF ( + 90, - 91 ) AS col2, - ( + 91 ) * + 86
----
NULL
-7826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7183
SELECT ALL CAST( + 3 AS SIGNED ) * + CAST( - CASE - 90 WHEN - + 58 THEN + 43 WHEN 52 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL CAST ( + 3 AS INTEGER ) * + CAST ( - CASE - 90 WHEN - + 58 THEN + 43 WHEN 52 THEN NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( - 3, - 49 - - - 5 ) AS col2
----
-3

query II rowsort
SELECT DISTINCT + - 2 * + 21 AS col1, 96 * + + 68 AS col2
----
-42
6528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7186
SELECT ALL - COUNT( 42 ) AS col2, COALESCE ( + CAST( NULL AS SIGNED ), - 11 + COUNT( * ) DIV + 32 ) AS col1
----
-1
-11

skipif mysql # not compatible
query II rowsort label-7186
SELECT ALL - COUNT ( 42 ) AS col2, COALESCE ( + CAST ( NULL AS INTEGER ), - 11 + COUNT ( * ) / + 32 ) AS col1
----
-1
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT - 31 * + ( - COALESCE ( - + 39, + COUNT( * ) ) ) + + COUNT( * ) + 10 * + 16 AS col1
----
-1048

skipif mysql # not compatible
query I rowsort label-7187
SELECT - 31 * + ( - COALESCE ( - + 39, + COUNT ( * ) ) ) + + COUNT ( * ) + 10 * + 16 AS col1
----
-1048

query I rowsort
SELECT DISTINCT + 37 + + - 52
----
-15

query I rowsort
SELECT ALL 50 + + - 77 - + + 35 * - 35
----
1198

query II rowsort
SELECT 97 * + 83, 20 AS col2
----
8051
20

query I rowsort
SELECT + 43 * + 36 + ( + 92 ) col2
----
1640

query I rowsort
SELECT 36 * + + 76
----
2736

query I rowsort
SELECT DISTINCT - 17 * - - 93 AS col2
----
-1581

onlyif mysql # DIV for integer division: 
query I rowsort label-7194
SELECT DISTINCT 99 DIV 82
----
1

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT 99 / 82
----
1

query I rowsort
SELECT 62 * + 8 * + 54 * - 54
----
-1446336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7196
SELECT 68 DIV COUNT( DISTINCT + 46 )
----
68

skipif mysql # not compatible
query I rowsort label-7196
SELECT 68 / COUNT ( DISTINCT + 46 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT DISTINCT - 18 * + COUNT( * ) * - 65 AS col1
----
1170

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT - 18 * + COUNT ( * ) * - 65 AS col1
----
1170

onlyif mysql # DIV for integer division: 
query I rowsort label-7198
SELECT 81 DIV - 30 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7198
SELECT 81 / - 30 AS col0
----
-2

query I rowsort
SELECT 52 * + 8
----
416

query I rowsort
SELECT DISTINCT 56 * + 97 AS col1
----
5432

query I rowsort
SELECT ALL - 55 * - + 57 col0
----
3135

query I rowsort
SELECT ALL + 0 + + 63 AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7203
SELECT ALL 32 + - + ( + 26 ) + + 41 + 89 + - - CASE + CAST( + ( + 13 ) AS SIGNED ) WHEN 68 + - + COUNT( * ) THEN NULL WHEN + + 88 * - 57 THEN + COUNT( DISTINCT - + 11 ) * 38 ELSE 89 END + + 85 * + + 76 * + 89 - + - 23 DIV 90 AS col0
----
575165

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL 32 + - + ( + 26 ) + + 41 + 89 + - - CASE + CAST ( + ( + 13 ) AS INTEGER ) WHEN 68 + - + COUNT ( * ) THEN NULL WHEN + + 88 * - 57 THEN + COUNT ( DISTINCT - + 11 ) * 38 ELSE 89 END + + 85 * + + 76 * + 89 - + - 23 / 90 AS col0
----
575165

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7205
SELECT ALL + - 75 + COUNT( + 98 ) col2, - 42
----
-74
-42

skipif mysql # not compatible
query II rowsort label-7205
SELECT ALL + - 75 + COUNT ( + 98 ) col2, - 42
----
-74
-42

query I rowsort
SELECT + 88 - 54 + 7 col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7207
SELECT - 97 DIV 33
----
-2

skipif mysql # not compatible
query I rowsort label-7207
SELECT - 97 / 33
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT ALL + + COUNT( * ) + - + 83
----
-82

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL + + COUNT ( * ) + - + 83
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT 63 + - 66 + SUM( + 18 ) + - 37 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-7209
SELECT 63 + - 66 + SUM ( + 18 ) + - 37 AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7210
SELECT ALL - - CASE - - CAST( NULL AS SIGNED ) WHEN + 23 THEN + + 57 ELSE 25 DIV + - 1 + - 43 * + - 95 END * + 38 + ( COUNT( * ) ) + 19
----
154300

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL - - CASE - - CAST ( NULL AS INTEGER ) WHEN + 23 THEN + + 57 ELSE 25 / + - 1 + - 43 * + - 95 END * + 38 + ( COUNT ( * ) ) + 19
----
154300

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT ( 66 ) * - - COUNT( * ) * + 80
----
5280

skipif mysql # not compatible
query I rowsort label-7211
SELECT ( 66 ) * - - COUNT ( * ) * + 80
----
5280

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7213
SELECT 39 DIV 13 + + ( + + 13 ) * 67 - 29
----
845

skipif mysql # not compatible
query I rowsort label-7213
SELECT 39 / 13 + + ( + + 13 ) * 67 - 29
----
845

onlyif mysql # aggregate syntax: 
query III rowsort label-7214
SELECT DISTINCT - 91, + COALESCE ( - 23, - ( + + 83 ) * - ( + 66 ) ) + + 12 AS col2, - MAX( ALL - + 21 ) AS col1
----
-91
-11
21

skipif mysql # not compatible
query III rowsort label-7214
SELECT DISTINCT - 91, + COALESCE ( - 23, - ( + + 83 ) * - ( + 66 ) ) + + 12 AS col2, - MAX ( ALL - + 21 ) AS col1
----
-91
-11
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT - - 80 * - 69 + + MIN( DISTINCT 23 ) + - MIN( DISTINCT - 74 ) AS col2
----
-5423

skipif mysql # not compatible
query I rowsort label-7215
SELECT - - 80 * - 69 + + MIN ( DISTINCT 23 ) + - MIN ( DISTINCT - 74 ) AS col2
----
-5423

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT - 87 * MIN( + 79 ) col2
----
-6873

skipif mysql # not compatible
query I rowsort label-7216
SELECT - 87 * MIN ( + 79 ) col2
----
-6873

query II rowsort
SELECT ALL - 1 AS col0, 13 * + + NULLIF ( - - ( + 51 ), + 59 ) * 78 + + 47 AS col0
----
-1
51761

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT + MIN( DISTINCT + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-7219
SELECT + MIN ( DISTINCT + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT 46 * - MIN( + 27 )
----
-1242

skipif mysql # not compatible
query I rowsort label-7220
SELECT 46 * - MIN ( + 27 )
----
-1242

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

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

query I rowsort
SELECT ALL 58 * + 47 * - 12 AS col1
----
-32712

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

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

query I rowsort
SELECT - 14 * + ( + 9 ) + - 85 AS col0
----
-211

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

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

query I rowsort
SELECT + 16 + - 53
----
-37

query I rowsort
SELECT 59 * 71 - 4 * + - 92
----
4557

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT ALL + NULLIF ( - 9, + 10 - + 42 - + 20 * - 21 + 47 - + + 26 + 55 + 97 + - 59 * 65 * + NULLIF ( - 55, - SUM( DISTINCT - 40 ) ) / + - 35 - - 87 * + ( - ( + + COUNT( * ) ) ) )
----
-9

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL + NULLIF ( - 9, + 10 - + 42 - + 20 * - 21 + 47 - + + 26 + 55 + 97 + - 59 * 65 * + NULLIF ( - 55, - SUM ( DISTINCT - 40 ) ) / + - 35 - - 87 * + ( - ( + + COUNT ( * ) ) ) )
----
-9

query II rowsort
SELECT DISTINCT + 94, + 61 AS col1
----
94
61

query I rowsort
SELECT DISTINCT 9 + + 62
----
71

query I rowsort
SELECT ALL + 69 + 64 AS col0
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7232
SELECT - NULLIF ( + COUNT( * ), + + 47 + + CASE 20 WHEN CASE - ( COUNT( * ) ) WHEN - CAST( 82 AS SIGNED ) * 20 * + MAX( ALL - 81 ) THEN - 13 WHEN - ( - CASE + + CAST( - + 71 AS SIGNED ) WHEN 80 * - 3 * + COUNT( * ) * 67 THEN NULL ELSE - + 77 * 68 END ) THEN - + 33 END + + MAX( DISTINCT - + 17 ) * + + 10 + + CASE + + 91 WHEN - - 94 - - CAST( NULL AS SIGNED ) THEN COUNT( * ) WHEN - ( + CAST( NULL AS SIGNED ) ) THEN - 33 ELSE - 39 + ( - 9 - 41 ) END + 41 THEN + 58 WHEN 4 + - COUNT( * ) / 92 THEN + 35 * 67 - 33 ELSE NULL END ) + - 8
----
-9

skipif mysql # not compatible
query I rowsort label-7232
SELECT - NULLIF ( + COUNT ( * ), + + 47 + + CASE 20 WHEN CASE - ( COUNT ( * ) ) WHEN - CAST ( 82 AS INTEGER ) * 20 * + MAX ( ALL - 81 ) THEN - 13 WHEN - ( - CASE + + CAST ( - + 71 AS INTEGER ) WHEN 80 * - 3 * + COUNT ( * ) * 67 THEN NULL ELSE - + 77 * 68 END ) THEN - + 33 END + + MAX ( DISTINCT - + 17 ) * + + 10 + + CASE + + 91 WHEN - - 94 - - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) WHEN - ( + CAST ( NULL AS INTEGER ) ) THEN - 33 ELSE - 39 + ( - 9 - 41 ) END + 41 THEN + 58 WHEN 4 + - COUNT ( * ) / 92 THEN + 35 * 67 - 33 ELSE NULL END ) + - 8
----
-9

query I rowsort
SELECT + 9 * + 57
----
513

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7234
SELECT - 15 + 98 * ( + COALESCE ( CAST( + COUNT( DISTINCT + 3 ) AS SIGNED ), 5, ( COUNT( * ) ) + + 6 + + 6 ) ) * ( - 74 ) AS col0
----
-7267

skipif mysql # not compatible
query I rowsort label-7234
SELECT - 15 + 98 * ( + COALESCE ( CAST ( + COUNT ( DISTINCT + 3 ) AS INTEGER ), 5, ( COUNT ( * ) ) + + 6 + + 6 ) ) * ( - 74 ) AS col0
----
-7267

onlyif mysql # aggregate syntax: 
query II rowsort label-7235
SELECT - 91 + + 70 AS col2, COUNT( DISTINCT + + 56 ) * + 5 + - - 17 AS col2
----
-21
22

skipif mysql # not compatible
query II rowsort label-7235
SELECT - 91 + + 70 AS col2, COUNT ( DISTINCT + + 56 ) * + 5 + - - 17 AS col2
----
-21
22

query I rowsort
SELECT ALL + + 73 + + 78 AS col1
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT + MIN( DISTINCT + 71 ) * - - 74 * 4 - + 46
----
20970

skipif mysql # not compatible
query I rowsort label-7237
SELECT + MIN ( DISTINCT + 71 ) * - - 74 * 4 - + 46
----
20970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7238
SELECT - CAST( NULL AS SIGNED ) * + - CASE + 87 WHEN - - 71 THEN - - COUNT( * ) END * + 51 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7238
SELECT - CAST ( NULL AS INTEGER ) * + - CASE + 87 WHEN - - 71 THEN - - COUNT ( * ) END * + 51 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT DISTINCT + MIN( - - 40 ) * + 33
----
1320

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT + MIN ( - - 40 ) * + 33
----
1320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7240
SELECT DISTINCT + - ( + 21 ) - + CASE - ( + - 51 ) WHEN + + COALESCE ( + NULLIF ( 46, - - COUNT( * ) ), COUNT( * ), + + 62 - COALESCE ( + 85, - 5 * COUNT( * ) - + - CASE - - COUNT( * ) WHEN 20 THEN - 98 WHEN 8 THEN - 27 ELSE NULL END + + - ( COUNT( * ) ), - 54, + CASE + 25 WHEN - + NULLIF ( 84, 73 + - 69 ) THEN - COUNT( * ) * + 25 WHEN 42 * 18 THEN NULL END ), - 43 + + 85 * + 18 ) * 75 THEN - 87 * 28 ELSE - 65 - COUNT( * ) DIV - 6 END
----
44

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT + - ( + 21 ) - + CASE - ( + - 51 ) WHEN + + COALESCE ( + NULLIF ( 46, - - COUNT ( * ) ), COUNT ( * ), + + 62 - COALESCE ( + 85, - 5 * COUNT ( * ) - + - CASE - - COUNT ( * ) WHEN 20 THEN - 98 WHEN 8 THEN - 27 ELSE NULL END + + - ( COUNT ( * ) ), - 54, + CASE + 25 WHEN - + NULLIF ( 84, 73 + - 69 ) THEN - COUNT ( * ) * + 25 WHEN 42 * 18 THEN NULL END ), - 43 + + 85 * + 18 ) * 75 THEN - 87 * 28 ELSE - 65 - COUNT ( * ) / - 6 END
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7241
SELECT - - 43 + + CAST( + 75 AS SIGNED ) + + COUNT( * ) - - 48 * - + 48 * + + 94 AS col0
----
-216457

skipif mysql # not compatible
query I rowsort label-7241
SELECT - - 43 + + CAST ( + 75 AS INTEGER ) + + COUNT ( * ) - - 48 * - + 48 * + + 94 AS col0
----
-216457

query II rowsort
SELECT 17, + 44 AS col2
----
17
44

query I rowsort
SELECT - + 68 + + 91
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7244
SELECT - CAST( - - 65 AS SIGNED ) * + 14 * 25 AS col0
----
-22750

skipif mysql # not compatible
query I rowsort label-7244
SELECT - CAST ( - - 65 AS INTEGER ) * + 14 * 25 AS col0
----
-22750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7245
SELECT - MIN( DISTINCT + CAST( - 23 AS SIGNED ) ) * + 46
----
1058

skipif mysql # not compatible
query I rowsort label-7245
SELECT - MIN ( DISTINCT + CAST ( - 23 AS INTEGER ) ) * + 46
----
1058

onlyif mysql # DIV for integer division: 
query I rowsort label-7246
SELECT ALL - 46 DIV - + 54
----
0

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL - 46 / - + 54
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT - + 65 + + ( + MAX( + 1 ) ) * + 74 col2
----
9

skipif mysql # not compatible
query I rowsort label-7249
SELECT - + 65 + + ( + MAX ( + 1 ) ) * + 74 col2
----
9

query II rowsort
SELECT - - 91 * - 44, - 44 AS col0
----
-4004
-44

query II rowsort
SELECT ALL + 70 AS col1, 24
----
70
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7252
SELECT - COUNT( * ) DIV + 37, - 44 AS col2
----
0
-44

skipif mysql # not compatible
query II rowsort label-7252
SELECT - COUNT ( * ) / + 37, - 44 AS col2
----
0
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7253
SELECT + COUNT( * ) * - 25 * 74 * 56 / - 25 + + + 8 + CAST( NULL AS SIGNED ) - + CASE + 83 WHEN - SUM( ALL - + 28 ) THEN NULL WHEN + 94 THEN - - NULLIF ( - 15, - AVG ( - + 15 ) / COALESCE ( + 98, - 18, + + SUM( + 46 ) * ( NULLIF ( - 68, 33 * + + 45 * + - 82 ) ) - 42 - + 63 + 23 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT + COUNT ( * ) * - 25 * 74 * 56 / - 25 + + + 8 + CAST ( NULL AS INTEGER ) - + CASE + 83 WHEN - SUM ( ALL - + 28 ) THEN NULL WHEN + 94 THEN - - NULLIF ( - 15, - AVG ( - + 15 ) / COALESCE ( + 98, - 18, + + SUM ( + 46 ) * ( NULLIF ( - 68, 33 * + + 45 * + - 82 ) ) - 42 - + 63 + 23 ) ) END AS col1
----
NULL

query II rowsort
SELECT ( 75 ) AS col1, 65
----
75
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7255
SELECT - COUNT( * ) * - - COALESCE ( + 73, - ( - 2 ) + COUNT( * ) + 54 - + + 27 ) AS col0, COALESCE ( + 55, - 29 + - 94 )
----
-73
55

skipif mysql # not compatible
query II rowsort label-7255
SELECT - COUNT ( * ) * - - COALESCE ( + 73, - ( - 2 ) + COUNT ( * ) + 54 - + + 27 ) AS col0, COALESCE ( + 55, - 29 + - 94 )
----
-73
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT DISTINCT - 24 * - + COUNT( - - 70 ) + + - 39
----
-15

skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT - 24 * - + COUNT ( - - 70 ) + + - 39
----
-15

query I rowsort
SELECT ALL + 91 * 62 + - ( - 93 ) AS col0
----
5735

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT DISTINCT 40 * NULLIF ( COUNT( * ), + - 47 ) + - - 18
----
58

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT 40 * NULLIF ( COUNT ( * ), + - 47 ) + - - 18
----
58

query I rowsort
SELECT + COALESCE ( - - 68, - 32 * + 52, + + 98, - 90 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7261
SELECT + ( + + NULLIF ( 24, - 1 / + - 5 + - 72 + - + 38 ) ), ( - + 60 ) / - - ( + CAST( NULL AS SIGNED ) ) + + 83 AS col2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-7261
SELECT + ( + + NULLIF ( 24, - 1 / + - 5 + - 72 + - + 38 ) ), ( - + 60 ) / - - ( + CAST ( NULL AS INTEGER ) ) + + 83 AS col2
----
24
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7262
SELECT NULLIF ( - 26, - + CASE 18 WHEN 89 THEN NULL WHEN COUNT( * ) THEN - + 77 + - 56 END - + 88 * + 20 ) AS col0, - SUM( + CAST( NULL AS DECIMAL ) ) * + + 8 + - 7 + - 32 + - - 88
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-7262
SELECT NULLIF ( - 26, - + CASE 18 WHEN 89 THEN NULL WHEN COUNT ( * ) THEN - + 77 + - 56 END - + 88 * + 20 ) AS col0, - SUM ( + CAST ( NULL AS REAL ) ) * + + 8 + - 7 + - 32 + - - 88
----
-26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT + COUNT( * ) - + 21 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-7263
SELECT + COUNT ( * ) - + 21 AS col1
----
-20

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

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

query I rowsort
SELECT DISTINCT CASE - 68 WHEN + 91 + - 73 THEN + 50 WHEN + - 14 THEN NULL END
----
NULL

query I rowsort
SELECT + NULLIF ( - 87, + 97 * 11 * + 1 * + 26 )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7267
SELECT + 6 - ( + ( - - CAST( + 94 AS SIGNED ) ) ) + - 10 + + + 19 AS col1, 31 * + 47 * + + 79
----
-79
115103

skipif mysql # not compatible
query II rowsort label-7267
SELECT + 6 - ( + ( - - CAST ( + 94 AS INTEGER ) ) ) + - 10 + + + 19 AS col1, 31 * + 47 * + + 79
----
-79
115103

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT + + MIN( DISTINCT - + ( - - 54 ) ) + 79
----
25

skipif mysql # not compatible
query I rowsort label-7268
SELECT + + MIN ( DISTINCT - + ( - - 54 ) ) + 79
----
25

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

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

query I rowsort
SELECT DISTINCT COALESCE ( + 18, + 25 )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7271
SELECT + 72 DIV - - 39 + + 44 DIV ( + 10 ) + + - 90 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-7271
SELECT + 72 / - - 39 + + 44 / ( + 10 ) + + - 90 AS col0
----
-85

query I rowsort
SELECT - + 80 * 29
----
-2320

query I rowsort
SELECT + 86 + + + 46 AS col2
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7274
SELECT + - COALESCE ( - - COUNT( * ), - COALESCE ( - + 31, + + SUM( - + CAST( NULL AS SIGNED ) ) ) + - 84 + - - 41, + MIN( - 67 ) ) + + 24 + + 86 + - + ( - - 62 ) + COUNT( * ) * - + 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7274
SELECT + - COALESCE ( - - COUNT ( * ), - COALESCE ( - + 31, + + SUM ( - + CAST ( NULL AS INTEGER ) ) ) + - 84 + - - 41, + MIN ( - 67 ) ) + + 24 + + 86 + - + ( - - 62 ) + COUNT ( * ) * - + 47 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7275
SELECT - + 20 DIV ( - 88 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7275
SELECT - + 20 / ( - 88 ) AS col1
----
0

query I rowsort
SELECT ALL 78 * - 49 AS col2
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT ALL - SUM( + 86 ) * - + 43 + - + 74 AS col0
----
3624

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL - SUM ( + 86 ) * - + 43 + - + 74 AS col0
----
3624

query I rowsort
SELECT - - 45 * + 15
----
675

query I rowsort
SELECT ALL ( + COALESCE ( - - NULLIF ( + 80, 40 / - ( - 93 ) + 38 ), 15 ) ) AS col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7280
SELECT - 49 + + COUNT( * ) DIV + 16 + - - 85 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-7280
SELECT - 49 + + COUNT ( * ) / + 16 + - - 85 AS col2
----
36

query I rowsort
SELECT ( 5 ) * + NULLIF ( + - 36, + 68 ) col0
----
-180

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7282
SELECT 62 * + CASE + NULLIF ( - 45, - + 44 ) WHEN + ( + 93 ) THEN - ( + + 54 ) + - + COUNT( * ) + - 82 + + - 31 + COUNT( * ) + - 88 * - + CAST( NULL AS DECIMAL ) * + + 59 * COUNT( - - NULLIF ( + ( + 62 ), 86 ) ) / + - 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT 62 * + CASE + NULLIF ( - 45, - + 44 ) WHEN + ( + 93 ) THEN - ( + + 54 ) + - + COUNT ( * ) + - 82 + + - 31 + COUNT ( * ) + - 88 * - + CAST ( NULL AS REAL ) * + + 59 * COUNT ( - - NULLIF ( + ( + 62 ), 86 ) ) / + - 51 ELSE NULL END
----
NULL

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

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

query II rowsort
SELECT 5, - 35 col2
----
5
-35

query I rowsort
SELECT DISTINCT + 13 + - 61 + + 71 col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7286
SELECT - ( - - CAST( NULL AS SIGNED ) ) * - + 81 + + ( - 57 ) + - NULLIF ( - 30, 24 / - NULLIF ( + 30, - 34 * COUNT( * ) + - NULLIF ( - 83, - + 74 / 61 - - ( + 36 ) + + 24 * 46 * + 41 + - CAST( NULL AS SIGNED ) * + + 38 ) / - COUNT( * ) ) ) * - 81 * + COUNT( * ) * 36 - + 47 + - 42 - - + 72 * 47 AS col0, 73 * + 13 * COUNT( * ) AS col1
----
NULL
949

skipif mysql # not compatible
query II rowsort label-7286
SELECT - ( - - CAST ( NULL AS INTEGER ) ) * - + 81 + + ( - 57 ) + - NULLIF ( - 30, 24 / - NULLIF ( + 30, - 34 * COUNT ( * ) + - NULLIF ( - 83, - + 74 / 61 - - ( + 36 ) + + 24 * 46 * + 41 + - CAST ( NULL AS INTEGER ) * + + 38 ) / - COUNT ( * ) ) ) * - 81 * + COUNT ( * ) * 36 - + 47 + - 42 - - + 72 * 47 AS col0, 73 * + 13 * COUNT ( * ) AS col1
----
NULL
949

onlyif mysql # DIV for integer division: 
query II rowsort label-7287
SELECT 48 col1, 98 DIV 65 * + 96
----
48
96

skipif mysql # not compatible
query II rowsort label-7287
SELECT 48 col1, 98 / 65 * + 96
----
48
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT DISTINCT - MAX( DISTINCT 61 ) + SUM( ALL - 80 ) + - 44 * + ( + 65 )
----
-3001

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT - MAX ( DISTINCT 61 ) + SUM ( ALL - 80 ) + - 44 * + ( + 65 )
----
-3001

onlyif mysql # DIV for integer division: 
query I rowsort label-7289
SELECT DISTINCT + 14 + - ( + 56 ) * 53 DIV - 90
----
46

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT + 14 + - ( + 56 ) * 53 / - 90
----
46

query I rowsort
SELECT DISTINCT + 96 * - 1
----
-96

query I rowsort
SELECT 5 * - 26 + + - 74 * 83 * - - 3 AS col0
----
-18556

onlyif mysql # aggregate syntax: 
query II rowsort label-7292
SELECT 48, + COUNT( * ) * + COUNT( * ) - + + 76 + - + 40 * - - 42 * 99 + - 81 * - - 78 AS col0
----
48
-172713

skipif mysql # not compatible
query II rowsort label-7292
SELECT 48, + COUNT ( * ) * + COUNT ( * ) - + + 76 + - + 40 * - - 42 * 99 + - 81 * - - 78 AS col0
----
48
-172713

onlyif mysql # aggregate syntax: 
query III rowsort label-7293
SELECT ALL - 69 + + COUNT( * ) - - - COUNT( * ) AS col1, 23, + COUNT( * ) AS col0
----
-69
23
1

skipif mysql # not compatible
query III rowsort label-7293
SELECT ALL - 69 + + COUNT ( * ) - - - COUNT ( * ) AS col1, 23, + COUNT ( * ) AS col0
----
-69
23
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7294
SELECT 3 * + 32 * + 55 * + + COUNT( * ) AS col2, - 5 + ( + - COALESCE ( 69, + 87 * + NULLIF ( 68, - 11 * + 68 ) ) ) col2
----
5280
-74

skipif mysql # not compatible
query II rowsort label-7294
SELECT 3 * + 32 * + 55 * + + COUNT ( * ) AS col2, - 5 + ( + - COALESCE ( 69, + 87 * + NULLIF ( 68, - 11 * + 68 ) ) ) col2
----
5280
-74

query I rowsort
SELECT 77 + + 87 AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT DISTINCT - NULLIF ( + + 46, - 91 + COUNT( * ) + 66 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT - NULLIF ( + + 46, - 91 + COUNT ( * ) + 66 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-7297
SELECT 93 * + + 31 * + + 63 AS col0, - CASE + + 43 WHEN + COUNT( * ) THEN + + 1 * - 6 + - + 85 * ( + COUNT( DISTINCT - - 30 ) ) * - 4 * COUNT( * ) END AS col1
----
181629
NULL

skipif mysql # not compatible
query II rowsort label-7297
SELECT 93 * + + 31 * + + 63 AS col0, - CASE + + 43 WHEN + COUNT ( * ) THEN + + 1 * - 6 + - + 85 * ( + COUNT ( DISTINCT - - 30 ) ) * - 4 * COUNT ( * ) END AS col1
----
181629
NULL

query II rowsort
SELECT + 85 * + 82 + + 44 * - 82 AS col2, 16 * - 63 - 10 AS col2
----
3362
-1018

query I rowsort
SELECT DISTINCT - 3 - + 62 AS col1
----
-65

query I rowsort
SELECT - ( 3 ) * + - 53 + + 25
----
184

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

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

query II rowsort
SELECT 92 + 2 + + + 77, - 85 + + + 24 AS col0
----
171
-61

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

query I rowsort
SELECT - 31 + + 67 col2
----
36

query I rowsort
SELECT + 40 * + 43 AS col0
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL MIN( 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL MIN ( 18 ) AS col0
----
18

query I rowsort
SELECT DISTINCT + - 84 * - + 45 + + 58 + - 69 AS col2
----
3769

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT + COUNT( + 24 ) * - - 60 + + + 43 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-7309
SELECT + COUNT ( + 24 ) * - - 60 + + + 43 AS col2
----
103

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

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

query II rowsort
SELECT ALL 23 AS col1, + 52 col0
----
23
52

query I rowsort
SELECT DISTINCT - 46 * - 52 AS col1
----
2392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7313
SELECT DISTINCT 94 + - MAX( - 31 ) + + ( - 9 ) + - + 25 DIV + 63 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT 94 + - MAX ( - 31 ) + + ( - 9 ) + - + 25 / + 63 AS col0
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-7314
SELECT 18 DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-7314
SELECT 18 / 38
----
0

query II rowsort
SELECT ALL - 2 + ( - + ( + + 90 ) ), - 61 AS col0
----
-92
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL - 44 + + 63 + - 57 + 46 * - COUNT( * ) * 53 * 89
----
-217020

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL - 44 + + 63 + - 57 + 46 * - COUNT ( * ) * 53 * 89
----
-217020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7317
SELECT NULLIF ( 9, + 2 ) + 27 * + 46 + - 67 * - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7317
SELECT NULLIF ( 9, + 2 ) + 27 * + 46 + - 67 * - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 99 + - - 69 AS col2
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-7319
SELECT SUM( DISTINCT - + 54 ) col1, 63
----
-54
63

skipif mysql # not compatible
query II rowsort label-7319
SELECT SUM ( DISTINCT - + 54 ) col1, 63
----
-54
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT ALL + 0 + 77 + + 51 + - COUNT( + 43 ) * + - 54
----
182

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL + 0 + 77 + + 51 + - COUNT ( + 43 ) * + - 54
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT COALESCE ( NULLIF ( - MIN( ALL + - 47 ), + COUNT( * ) ), 94 ) * + MAX( ALL 11 ) * - - ( + 83 ) + + CAST( NULL AS SIGNED ) / + 25 + + 24 + - + AVG ( + - 77 ) / + 19 * - - 6 + + ( 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT COALESCE ( NULLIF ( - MIN ( ALL + - 47 ), + COUNT ( * ) ), 94 ) * + MAX ( ALL 11 ) * - - ( + 83 ) + + CAST ( NULL AS INTEGER ) / + 25 + + 24 + - + AVG ( + - 77 ) / + 19 * - - 6 + + ( 51 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7322
SELECT + 63 DIV COUNT( * ) + + COUNT( ALL + 54 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7322
SELECT + 63 / COUNT ( * ) + + COUNT ( ALL + 54 ) AS col0
----
64

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

skipif mysql # not compatible
query I rowsort label-7323
SELECT MIN ( ALL 57 )
----
57

query II rowsort
SELECT 96 + + NULLIF ( + 32, - + 22 ) AS col2, 49
----
128
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7325
SELECT ALL - 37 + - 68 DIV 89
----
-37

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL - 37 + - 68 / 89
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7326
SELECT MIN( ALL - 87 ), 4 AS col0
----
-87
4

skipif mysql # not compatible
query II rowsort label-7326
SELECT MIN ( ALL - 87 ), 4 AS col0
----
-87
4

onlyif mysql # DIV for integer division: 
query II rowsort label-7327
SELECT 77 * 93 col2, + 83 DIV 86 + 6
----
7161
6

skipif mysql # not compatible
query II rowsort label-7327
SELECT 77 * 93 col2, + 83 / 86 + 6
----
7161
6

query I rowsort
SELECT 12 + 80 + + + 94 AS col2
----
186

query I rowsort
SELECT DISTINCT - 65 * 34
----
-2210

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

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL - SUM ( - - 49 )
----
-49

query I rowsort
SELECT DISTINCT - CASE NULLIF ( + + 21, + ( 69 ) ) WHEN - - 30 THEN NULL WHEN 67 THEN NULL WHEN + 13 / + - 89 + - 89 THEN - 19 * - + 9 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7332
SELECT ALL - NULLIF ( - + COUNT( * ), - - 32 ) * 2 DIV + + 77 * 12 * + 23
----
0

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL - NULLIF ( - + COUNT ( * ), - - 32 ) * 2 / + + 77 * 12 * + 23
----
0

query I rowsort
SELECT 2 * - 38 * - - 53 * - 35 * - NULLIF ( - + 94, + 51 ) * 63
----
834883560

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT DISTINCT COUNT( * ) - 15 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT COUNT ( * ) - 15 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL - + 87 * CASE + 89 WHEN - 23 THEN - 23 * + - 73 WHEN - + COUNT( * ) THEN + 82 / - COUNT( * ) + 34 + + + 75 + + 54 + 55 / - 79 * - - 44 ELSE NULL END + + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL - + 87 * CASE + 89 WHEN - 23 THEN - 23 * + - 73 WHEN - + COUNT ( * ) THEN + 82 / - COUNT ( * ) + 34 + + + 75 + + 54 + 55 / - 79 * - - 44 ELSE NULL END + + 50 AS col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7337
SELECT ( 2 ) * 25 * 81 DIV + 94 col2
----
43

skipif mysql # not compatible
query I rowsort label-7337
SELECT ( 2 ) * 25 * 81 / + 94 col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7338
SELECT ALL - 58 DIV - - 45 - - MAX( + 38 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL - 58 / - - 45 - - MAX ( + 38 ) AS col2
----
37

query I rowsort
SELECT 32 * - 92
----
-2944

query I rowsort
SELECT ALL 21 * - 57 AS col0
----
-1197

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

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL - - ( + 42 ) / + + 80 * 69 + - - 41 - - - COUNT ( * )
----
40

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

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

query I rowsort
SELECT - 48 + + 73 AS col0
----
25

query I rowsort
SELECT + + 79 * 88 * 14 + - - 65 * - 75 AS col2
----
92453

query I rowsort
SELECT - 79 * + + 85 AS col2
----
-6715

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

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

query I rowsort
SELECT ALL 40 + - 22 AS col2
----
18

query I rowsort
SELECT + 22 * - 32
----
-704

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

skipif mysql # not compatible
query II rowsort label-7349
SELECT - COUNT ( * ) AS col2, 55 AS col1
----
-1
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL 45 - + - NULLIF ( - COUNT( * ), - 80 * + 6 )
----
44

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL 45 - + - NULLIF ( - COUNT ( * ), - 80 * + 6 )
----
44

query I rowsort
SELECT - 92 * - - 28 * + 79 AS col0
----
-203504

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT ALL 38 * + MIN( NULLIF ( - - 85, - 9 * 87 ) )
----
3230

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL 38 * + MIN ( NULLIF ( - - 85, - 9 * 87 ) )
----
3230

query I rowsort
SELECT - 50 - + 42 AS col1
----
-92

query I rowsort
SELECT + 77 * + 94 + + - 21 + 40
----
7257

query I rowsort
SELECT 73 * 4 + + 15 + - 27
----
280

query I rowsort
SELECT + 38 + - 55 * + - 11 * - 66 * - - 94
----
-3753382

query I rowsort
SELECT - - 52 * - ( - 68 ) - + 66 + - + 7 - + 44 + 11 - 59 * + 92 + 88
----
-1910

query I rowsort
SELECT ALL - 29 * + + 33 * 22
----
-21054

query I rowsort
SELECT - 52 + + 90 AS col0
----
38

query I rowsort
SELECT DISTINCT + NULLIF ( 74, - 13 + + + 3 )
----
74

query I rowsort
SELECT DISTINCT - 80 * - + 70
----
5600

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT ALL - NULLIF ( - 61, MAX( - 75 ) ) * - 21 + NULLIF ( - COALESCE ( 93, - COUNT( * ) + - ( - 51 ) ), 24 ) AS col1
----
-1374

skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL - NULLIF ( - 61, MAX ( - 75 ) ) * - 21 + NULLIF ( - COALESCE ( 93, - COUNT ( * ) + - ( - 51 ) ), 24 ) AS col1
----
-1374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7366
SELECT - COUNT( DISTINCT + 98 ) * - - 9 + + 21 DIV + COALESCE ( + COUNT( * ), 84 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7366
SELECT - COUNT ( DISTINCT + 98 ) * - - 9 + + 21 / + COALESCE ( + COUNT ( * ), 84 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL MIN( DISTINCT - - 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL MIN ( DISTINCT - - 18 ) AS col0
----
18

query I rowsort
SELECT ( + - COALESCE ( 40, - - 17 ) )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7369
SELECT - MIN( DISTINCT + - 73 ) DIV - + NULLIF ( + 82, - 41 * + + 91 * + COALESCE ( + 3, 15, + 31 * COUNT( * ) + + 56 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7369
SELECT - MIN ( DISTINCT + - 73 ) / - + NULLIF ( + 82, - 41 * + + 91 * + COALESCE ( + 3, 15, + 31 * COUNT ( * ) + + 56 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7370
SELECT ALL + + 75 + - 35 + + 47 DIV COALESCE ( + + 38, COUNT( * ), - 48 )
----
41

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL + + 75 + - 35 + + 47 / COALESCE ( + + 38, COUNT ( * ), - 48 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7371
SELECT DISTINCT 99 * COUNT( * ) * - - NULLIF ( 37, - COUNT( * ) ) / + 68 * - + ( CAST( NULL AS SIGNED ) ) + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT 99 * COUNT ( * ) * - - NULLIF ( 37, - COUNT ( * ) ) / + 68 * - + ( CAST ( NULL AS INTEGER ) ) + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT DISTINCT + 37 - + 48 + - + COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT + 37 - + 48 + - + COUNT ( * ) AS col0
----
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT - SUM( DISTINCT + 17 ) col2
----
-17

skipif mysql # not compatible
query I rowsort label-7374
SELECT - SUM ( DISTINCT + 17 ) col2
----
-17

query I rowsort
SELECT - ( 98 ) col2
----
-98

query I rowsort
SELECT - ( - + 31 ) + - 30
----
1

query I rowsort
SELECT ALL - 83 * + 83
----
-6889

query I rowsort
SELECT ALL + 19 - + ( + - 36 )
----
55

query I rowsort
SELECT DISTINCT - 65 * 29 AS col1
----
-1885

query I rowsort
SELECT + 33 * + ( - 49 ) AS col0
----
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT - COUNT( * ) * - 59 * COUNT( * ) + 25 col0
----
84

skipif mysql # not compatible
query I rowsort label-7381
SELECT - COUNT ( * ) * - 59 * COUNT ( * ) + 25 col0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7382
SELECT ALL MAX( ALL - - 61 ) DIV - ( + - 63 ) AS col1, - 67
----
0
-67

skipif mysql # not compatible
query II rowsort label-7382
SELECT ALL MAX ( ALL - - 61 ) / - ( + - 63 ) AS col1, - 67
----
0
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-7383
SELECT + ( 8 ) DIV + 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7383
SELECT + ( 8 ) / + 61 AS col2
----
0

query I rowsort
SELECT + 2 + + ( + - 13 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT DISTINCT + 91 * - - 11 * + COUNT( * )
----
1001

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT + 91 * - - 11 * + COUNT ( * )
----
1001

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

query II rowsort
SELECT ALL + + 92, 40 AS col0
----
92
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT + + 53 * - NULLIF ( - 71, - 47 / + NULLIF ( + COUNT( * ), 22 ) + + ( - + 95 ) )
----
3763

skipif mysql # not compatible
query I rowsort label-7388
SELECT + + 53 * - NULLIF ( - 71, - 47 / + NULLIF ( + COUNT ( * ), 22 ) + + ( - + 95 ) )
----
3763

query II rowsort
SELECT + - 54, 80 AS col1
----
-54
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7390
SELECT DISTINCT 15 * COALESCE ( + + 51, - - 73 * + 23 DIV 58 )
----
765

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT 15 * COALESCE ( + + 51, - - 73 * + 23 / 58 )
----
765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7391
SELECT DISTINCT + COUNT( ALL 10 ) * - ( 45 ) + + + MAX( - ( + - CAST( NULL AS SIGNED ) ) ) - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT + COUNT ( ALL 10 ) * - ( 45 ) + + + MAX ( - ( + - CAST ( NULL AS INTEGER ) ) ) - 91 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 39 + + 95
----
134

query I rowsort
SELECT - 16 * 76 AS col0
----
-1216

query I rowsort
SELECT 93 * - - 2
----
186

query I rowsort
SELECT ALL 56 + - 13
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT DISTINCT - + MIN( DISTINCT NULLIF ( + 15, - ( - + 75 ) ) )
----
-15

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT - + MIN ( DISTINCT NULLIF ( + 15, - ( - + 75 ) ) )
----
-15

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

query I rowsort
SELECT 26 - - 80 AS col1
----
106

query II rowsort
SELECT - - 3 AS col1, COALESCE ( + 14, - - 93 - 84 + - 73 * + 73 * 42 ) AS col2
----
3
14

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

skipif mysql # not compatible
query I rowsort label-7400
SELECT DISTINCT SUM ( - - 39 )
----
39

query I rowsort
SELECT ALL + 96 - + + 26
----
70

query I rowsort
SELECT ALL + 41 * 20
----
820

query I rowsort
SELECT ( - 37 ) + 95 * ( 1 ) * + - 34 - - 57
----
-3210

query I rowsort
SELECT ALL + 50 - + 59
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7405
SELECT CAST( - - 24 AS SIGNED ) * 5 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-7405
SELECT CAST ( - - 24 AS INTEGER ) * 5 AS col0
----
120

query I rowsort
SELECT 96 * 53
----
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT DISTINCT 10 * - 89 * + COUNT( * )
----
-890

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT 10 * - 89 * + COUNT ( * )
----
-890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7408
SELECT 86 * + 34 DIV COUNT( * ) * 97
----
283628

skipif mysql # not compatible
query I rowsort label-7408
SELECT 86 * + 34 / COUNT ( * ) * 97
----
283628

query I rowsort
SELECT 90 + + + 92
----
182

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7411
SELECT DISTINCT + 6 DIV - + 48, 76 AS col0
----
0
76

skipif mysql # not compatible
query II rowsort label-7411
SELECT DISTINCT + 6 / - + 48, 76 AS col0
----
0
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT ALL - 79 + - CASE + COUNT( * ) WHEN + 40 THEN + - 26 + - 69 ELSE - 29 END
----
-50

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL - 79 + - CASE + COUNT ( * ) WHEN + 40 THEN + - 26 + - 69 ELSE - 29 END
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7414
SELECT 43 DIV - ( + 25 ) - + - 29
----
28

skipif mysql # not compatible
query I rowsort label-7414
SELECT 43 / - ( + 25 ) - + - 29
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7415
SELECT COUNT( * ) * + CASE - ( - - 36 ) WHEN 44 THEN 13 WHEN 51 + CAST( NULL AS SIGNED ) THEN NULL WHEN + COUNT( * ) THEN - 80 ELSE + + COUNT( * ) + ( - 51 ) END * + 39
----
-1950

skipif mysql # not compatible
query I rowsort label-7415
SELECT COUNT ( * ) * + CASE - ( - - 36 ) WHEN 44 THEN 13 WHEN 51 + CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN - 80 ELSE + + COUNT ( * ) + ( - 51 ) END * + 39
----
-1950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7416
SELECT ALL CASE + SUM( ALL - + 85 ) WHEN - 11 * + COALESCE ( 58, + 89 + 73 * 81 + + - CAST( - - ( + 97 ) AS SIGNED ) * CASE - 20 WHEN 92 THEN 68 + 94 END ) / MAX( DISTINCT + + 28 ) * - 47 THEN NULL WHEN + 29 + - - 8 + 57 * + + CAST( NULL AS SIGNED ) THEN 53 END + CAST( 9 AS SIGNED ) / - MIN( ALL + + 99 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL CASE + SUM ( ALL - + 85 ) WHEN - 11 * + COALESCE ( 58, + 89 + 73 * 81 + + - CAST ( - - ( + 97 ) AS INTEGER ) * CASE - 20 WHEN 92 THEN 68 + 94 END ) / MAX ( DISTINCT + + 28 ) * - 47 THEN NULL WHEN + 29 + - - 8 + 57 * + + CAST ( NULL AS INTEGER ) THEN 53 END + CAST ( 9 AS INTEGER ) / - MIN ( ALL + + 99 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7417
SELECT 11 + + 29 DIV 37
----
11

skipif mysql # not compatible
query I rowsort label-7417
SELECT 11 + + 29 / 37
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7418
SELECT ALL SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + - 21
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7419
SELECT + COUNT( * ) DIV + 43 - + 50 + + 28
----
-22

skipif mysql # not compatible
query I rowsort label-7419
SELECT + COUNT ( * ) / + 43 - + 50 + + 28
----
-22

query II rowsort
SELECT ALL + + 75 + - 90, 89 AS col2
----
-15
89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT - 57 - CASE - + 52 WHEN - - ( - + MIN( DISTINCT + 47 ) ) + + + 85 THEN + 56 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT - 57 - CASE - + 52 WHEN - - ( - + MIN ( DISTINCT + 47 ) ) + + + 85 THEN + 56 ELSE NULL END AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7424
SELECT - 92 * + 78 + - COUNT( * ) + + - CAST( + ( 58 ) AS SIGNED ) * 92 AS col1
----
-12513

skipif mysql # not compatible
query I rowsort label-7424
SELECT - 92 * + 78 + - COUNT ( * ) + + - CAST ( + ( 58 ) AS INTEGER ) * 92 AS col1
----
-12513

onlyif mysql # aggregate syntax: 
query II rowsort label-7425
SELECT 48 * 32, + COUNT( * ) + COALESCE ( 67, 73 ) AS col2
----
1536
68

skipif mysql # not compatible
query II rowsort label-7425
SELECT 48 * 32, + COUNT ( * ) + COALESCE ( 67, 73 ) AS col2
----
1536
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7426
SELECT DISTINCT + 19 DIV + 42 - + 49
----
-49

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT + 19 / + 42 - + 49
----
-49

query I rowsort
SELECT ALL + 61 + 75 + + 63
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT ALL + 75 + + ( CASE 27 WHEN - + 54 * 10 + + 67 THEN MAX( + + 1 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL + 75 + + ( CASE 27 WHEN - + 54 * 10 + + 67 THEN MAX ( + + 1 ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7429
SELECT DISTINCT 15 DIV + 39 + 80 + - - ( + - 33 ) + + + 37
----
84

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT 15 / + 39 + 80 + - - ( + - 33 ) + + + 37
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT 31 * 99 + - COUNT( + - 96 ) + COUNT( * )
----
3069

skipif mysql # not compatible
query I rowsort label-7430
SELECT 31 * 99 + - COUNT ( + - 96 ) + COUNT ( * )
----
3069

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT 90 + - - 39 * + MAX( - 95 ) + + 11 AS col0
----
-3604

skipif mysql # not compatible
query I rowsort label-7433
SELECT 90 + - - 39 * + MAX ( - 95 ) + + 11 AS col0
----
-3604

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

skipif mysql # not compatible
query I rowsort label-7434
SELECT 0 + + CAST ( NULL AS INTEGER ) / - 11
----
NULL

query I rowsort
SELECT 6 * + - ( - + 96 )
----
576

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT MAX( ALL 97 ) * + 52 AS col1
----
5044

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT MAX ( ALL 97 ) * + 52 AS col1
----
5044

query I rowsort
SELECT 12 + + - 50
----
-38

query II rowsort
SELECT DISTINCT 42, 15 AS col0
----
42
15

query I rowsort
SELECT ALL NULLIF ( 41, - - 46 ) * - 76
----
-3116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7441
SELECT CAST( + 10 AS SIGNED ) * + 14 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-7441
SELECT CAST ( + 10 AS INTEGER ) * + 14 AS col1
----
140

query I rowsort
SELECT 21 + - - 3
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7443
SELECT 26 AS col2, COUNT( DISTINCT + 62 )
----
26
1

skipif mysql # not compatible
query II rowsort label-7443
SELECT 26 AS col2, COUNT ( DISTINCT + 62 )
----
26
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7444
SELECT ALL + 47 + - + 6 * - 30 DIV - - COUNT( * ) + + 19 AS col0
----
246

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL + 47 + - + 6 * - 30 / - - COUNT ( * ) + + 19 AS col0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT - NULLIF ( - 29, + COUNT( - 28 ) )
----
29

skipif mysql # not compatible
query I rowsort label-7445
SELECT - NULLIF ( - 29, + COUNT ( - 28 ) )
----
29

query I rowsort
SELECT 15 - ( + 9 ) * 15
----
-120

query II rowsort
SELECT ALL 59 AS col2, 14
----
59
14

query II rowsort
SELECT DISTINCT 10 AS col1, 0 AS col2
----
10
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT ALL MIN( + + 15 ) + + 62 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL MIN ( + + 15 ) + + 62 AS col1
----
77

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

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL - COUNT ( * ) / + + 93
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT DISTINCT - + 10 DIV - 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT - + 10 / - 18 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT + - MIN( 23 ) * - NULLIF ( - 5, + + 3 + - 92 ) AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-7452
SELECT + - MIN ( 23 ) * - NULLIF ( - 5, + + 3 + - 92 ) AS col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT - - 53 * + 25 * SUM( + - 93 ) * 62 + COUNT( * ) + 92 - - 34 + - COALESCE ( - - 7, 14 * 69 + - MIN( ALL + - ( + 15 ) ) ) * ( - 65 ) AS col0
----
-7639368

skipif mysql # not compatible
query I rowsort label-7453
SELECT - - 53 * + 25 * SUM ( + - 93 ) * 62 + COUNT ( * ) + 92 - - 34 + - COALESCE ( - - 7, 14 * 69 + - MIN ( ALL + - ( + 15 ) ) ) * ( - 65 ) AS col0
----
-7639368

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT ALL COUNT( * ) * + 66 + + 88
----
154

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL COUNT ( * ) * + 66 + + 88
----
154

query I rowsort
SELECT - 7 * - + 63 AS col1
----
441

query I rowsort
SELECT + 77 * - - 92
----
7084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7457
SELECT ALL + ( + CASE 89 WHEN + COUNT( * ) / + 97 THEN NULL WHEN + - 0 THEN NULL ELSE COUNT( * ) END ) * + + NULLIF ( - 26, - 45 ) * + - 74 + - + ( - CAST( NULL AS SIGNED ) ), + 31 + - 65 + - - 72 AS col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-7457
SELECT ALL + ( + CASE 89 WHEN + COUNT ( * ) / + 97 THEN NULL WHEN + - 0 THEN NULL ELSE COUNT ( * ) END ) * + + NULLIF ( - 26, - 45 ) * + - 74 + - + ( - CAST ( NULL AS INTEGER ) ), + 31 + - 65 + - - 72 AS col1
----
NULL
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7458
SELECT ALL + 29 * + + 92 * + 53 AS col2, CAST( CAST( + 0 AS SIGNED ) AS SIGNED ) + 20 + - + 16 + CAST( NULL AS SIGNED ) / + + 70 * 97 AS col0
----
141404
NULL

skipif mysql # not compatible
query II rowsort label-7458
SELECT ALL + 29 * + + 92 * + 53 AS col2, CAST ( CAST ( + 0 AS INTEGER ) AS INTEGER ) + 20 + - + 16 + CAST ( NULL AS INTEGER ) / + + 70 * 97 AS col0
----
141404
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7460
SELECT - 87 - + + COUNT( * ), 14 + 10 col0
----
-88
24

skipif mysql # not compatible
query II rowsort label-7460
SELECT - 87 - + + COUNT ( * ), 14 + 10 col0
----
-88
24

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7462
SELECT + 57 DIV - - ( COALESCE ( - ( + 89 ), + ( - 66 ) * + 80 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7462
SELECT + 57 / - - ( COALESCE ( - ( + 89 ), + ( - 66 ) * + 80 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7463
SELECT DISTINCT 81 * COUNT( * ) AS col2, 42 AS col0
----
81
42

skipif mysql # not compatible
query II rowsort label-7463
SELECT DISTINCT 81 * COUNT ( * ) AS col2, 42 AS col0
----
81
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7464
SELECT ALL COUNT( * ) * + + 89 * + NULLIF ( - 45, - 26 + 33 - + ( - 7 ) * + NULLIF ( + - 73, + + ( - - 18 ) + 82 - - COUNT( * ) ) / - ( CAST( - COUNT( * ) AS SIGNED ) ) ) AS col1, 77 * - MAX( DISTINCT + 74 ) + + MIN( DISTINCT - - 64 ) + - + 71 * + 77
----
-4005
-11101

skipif mysql # not compatible
query II rowsort label-7464
SELECT ALL COUNT ( * ) * + + 89 * + NULLIF ( - 45, - 26 + 33 - + ( - 7 ) * + NULLIF ( + - 73, + + ( - - 18 ) + 82 - - COUNT ( * ) ) / - ( CAST ( - COUNT ( * ) AS INTEGER ) ) ) AS col1, 77 * - MAX ( DISTINCT + 74 ) + + MIN ( DISTINCT - - 64 ) + - + 71 * + 77
----
-4005
-11101

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT 61 * COUNT( * ) + 75 + - + 6
----
130

skipif mysql # not compatible
query I rowsort label-7465
SELECT 61 * COUNT ( * ) + 75 + - + 6
----
130

query I rowsort
SELECT + 10 - + 4
----
6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT + 27 DIV + 8 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7468
SELECT + 27 / + 8 AS col2
----
3

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

skipif mysql # not compatible
query II rowsort label-7469
SELECT - ( 46 ) AS col2, SUM ( ALL - 76 ) AS col2
----
-46
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7470
SELECT ALL ( + + 9 ) + + CASE 16 WHEN + 64 THEN + 73 + - COUNT( * ) WHEN CAST( NULL AS DECIMAL ) + - 46 + + COUNT( 31 ) / 48 * 36 - - 24 THEN NULL END / + - 85 / 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL ( + + 9 ) + + CASE 16 WHEN + 64 THEN + 73 + - COUNT ( * ) WHEN CAST ( NULL AS REAL ) + - 46 + + COUNT ( 31 ) / 48 * 36 - - 24 THEN NULL END / + - 85 / 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL SUM( ALL + 58 ) + + 95 + - COUNT( * ) - - + COUNT( * ) * - 11 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL SUM ( ALL + 58 ) + + 95 + - COUNT ( * ) - - + COUNT ( * ) * - 11 AS col2
----
141

query I rowsort
SELECT + 74 + + 10 AS col0
----
84

query I rowsort
SELECT DISTINCT 38 + - - 26 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT + 50 + + COUNT( * ) - - 75
----
126

skipif mysql # not compatible
query I rowsort label-7474
SELECT + 50 + + COUNT ( * ) - - 75
----
126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT ALL 73 + 92 + + COALESCE ( - 89, - ( + SUM( ( + - COALESCE ( - + 54, + 64 ) ) ) ) * + + 90 * - + 48 * + - 33 * - 83, - 64 + + ( + 15 ), 49 + + 97 - NULLIF ( - 59, + 39 + + ( + COALESCE ( + 68, 22, - 98 / + + 93 ) ) * + + 38 + ( - CASE - COUNT( * ) WHEN 98 * - - 14 - ( ( + + ( + - 13 ) ) ) * + - 31 + - SUM( - 82 - + 76 ) THEN ( + 68 ) * COUNT( * ) ELSE + 56 / + 94 END ) ) * - ( + 50 + 11 ) ) col1
----
76

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL 73 + 92 + + COALESCE ( - 89, - ( + SUM ( ( + - COALESCE ( - + 54, + 64 ) ) ) ) * + + 90 * - + 48 * + - 33 * - 83, - 64 + + ( + 15 ), 49 + + 97 - NULLIF ( - 59, + 39 + + ( + COALESCE ( + 68, 22, - 98 / + + 93 ) ) * + + 38 + ( - CASE - COUNT ( * ) WHEN 98 * - - 14 - ( ( + + ( + - 13 ) ) ) * + - 31 + - SUM ( - 82 - + 76 ) THEN ( + 68 ) * COUNT ( * ) ELSE + 56 / + 94 END ) ) * - ( + 50 + 11 ) ) col1
----
76

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

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

query I rowsort
SELECT + + 80 + + - 38 AS col0
----
42

query I rowsort
SELECT - + 74 * + 76 + 63 + + - 4 * - 24 AS col0
----
-5465

query I rowsort
SELECT - + 16 + 78
----
62

query I rowsort
SELECT DISTINCT 4 * + - 51 AS col0
----
-204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7482
SELECT ALL 8 - 39 DIV COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL 8 - 39 / COUNT ( * )
----
-31

query I rowsort
SELECT + + 30 * + 67
----
2010

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7484
SELECT DISTINCT + CAST( + - 3 AS SIGNED ), - 58 AS col2
----
-3
-58

skipif mysql # not compatible
query II rowsort label-7484
SELECT DISTINCT + CAST ( + - 3 AS INTEGER ), - 58 AS col2
----
-3
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7485
SELECT DISTINCT - - COUNT( ALL - 37 ) DIV - 45 * + COUNT( * ) - - 42 + 72 - - - COUNT( * ) - 10 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT - - COUNT ( ALL - 37 ) / - 45 * + COUNT ( * ) - - 42 + 72 - - - COUNT ( * ) - 10 AS col2
----
103

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

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

query I rowsort
SELECT - + 14 * - 76
----
1064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7488
SELECT ALL - 9 DIV 92 DIV - COALESCE ( + 71, 18 * - + COUNT( * ) * ( 25 ) * - COALESCE ( - 80, + + AVG ( + 99 ) + 1 * - 80 ) ) * + 98 + + 84 + + 4
----
88

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL - 9 / 92 / - COALESCE ( + 71, 18 * - + COUNT ( * ) * ( 25 ) * - COALESCE ( - 80, + + AVG ( + 99 ) + 1 * - 80 ) ) * + 98 + + 84 + + 4
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT + 36 * - 96 * + - 64 + - COUNT( * ) + - - 91
----
221274

skipif mysql # not compatible
query I rowsort label-7489
SELECT + 36 * - 96 * + - 64 + - COUNT ( * ) + - - 91
----
221274

query I rowsort
SELECT - 77 * - 35
----
2695

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

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

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

query I rowsort
SELECT - 64 + 15
----
-49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT DISTINCT - 46 * - COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT - 46 * - COUNT ( * ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7496
SELECT DISTINCT + 56 * + MIN( ALL - 2 ) + 47 + COUNT( * ) + - 75 * - 45 + 77, + COUNT( * ) AS col1
----
3388
1

skipif mysql # not compatible
query II rowsort label-7496
SELECT DISTINCT + 56 * + MIN ( ALL - 2 ) + 47 + COUNT ( * ) + - 75 * - 45 + 77, + COUNT ( * ) AS col1
----
3388
1

query I rowsort
SELECT DISTINCT - 37 * - 25 col0
----
925

query I rowsort
SELECT - 16 * - - 85 AS col1
----
-1360

onlyif mysql # aggregate syntax: 
query II rowsort label-7499
SELECT 56 * - + NULLIF ( + 29, + COUNT( * ) + + 91 ) * + CASE + ( + - 68 ) WHEN COALESCE ( - + MAX( ALL - + 48 ), 1 + - + 11 ) THEN NULL WHEN + - 85 THEN - + 57 ELSE NULL END + - 98 + COUNT( ALL - 57 ) + 85 + + - 86, - COUNT( * ) + + + COUNT( * ) * 36 + - ( + + ( - 77 ) ) AS col1
----
NULL
112

skipif mysql # not compatible
query II rowsort label-7499
SELECT 56 * - + NULLIF ( + 29, + COUNT ( * ) + + 91 ) * + CASE + ( + - 68 ) WHEN COALESCE ( - + MAX ( ALL - + 48 ), 1 + - + 11 ) THEN NULL WHEN + - 85 THEN - + 57 ELSE NULL END + - 98 + COUNT ( ALL - 57 ) + 85 + + - 86, - COUNT ( * ) + + + COUNT ( * ) * 36 + - ( + + ( - 77 ) ) AS col1
----
NULL
112

query I rowsort
SELECT - 45 + + - 14 AS col2
----
-59

query I rowsort
SELECT COALESCE ( - 88, 98, - 76 * + 82 + - - 77 * + 13 )
----
-88

query I rowsort
SELECT DISTINCT - 30 * NULLIF ( 98, + 82 * 76 - + 91 ) + + 94
----
-2846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7503
SELECT ALL + 97 * + 67 * - - ( + + CAST( NULL AS SIGNED ) ) + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL + 97 * + 67 * - - ( + + CAST ( NULL AS INTEGER ) ) + + 65
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7505
SELECT - CAST( 98 AS SIGNED ) * - + 58 * + 31 + - + COUNT( ALL + 34 )
----
176203

skipif mysql # not compatible
query I rowsort label-7505
SELECT - CAST ( 98 AS INTEGER ) * - + 58 * + 31 + - + COUNT ( ALL + 34 )
----
176203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7506
SELECT ALL - COUNT( 51 ) + + + MAX( ALL - + 1 ) + - SUM( DISTINCT + 48 ) * + 18 * + CAST( NULL AS SIGNED ) * 82 * - 7 + - - 67 / - 23 * + ( + MAX( DISTINCT + 70 ) ) * + ( + COUNT( * ) ) + - + 53 - + 85 * - 14 / 97 / - - 96 * - + 2 * - 1 + - 32 / - ( + AVG ( - - ( 46 ) ) ) - + ( - + 78 ) * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL - COUNT ( 51 ) + + + MAX ( ALL - + 1 ) + - SUM ( DISTINCT + 48 ) * + 18 * + CAST ( NULL AS INTEGER ) * 82 * - 7 + - - 67 / - 23 * + ( + MAX ( DISTINCT + 70 ) ) * + ( + COUNT ( * ) ) + - + 53 - + 85 * - 14 / 97 / - - 96 * - + 2 * - 1 + - 32 / - ( + AVG ( - - ( 46 ) ) ) - + ( - + 78 ) * - 0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT + ( + COUNT ( + - 69 ) ) * COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL 56 + - 21 AS col0
----
35

query I rowsort
SELECT ALL 14 + - + 83 AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7510
SELECT COUNT( * ) * - 37 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-7510
SELECT COUNT ( * ) * - 37 / - 62
----
0

query II rowsort
SELECT DISTINCT 85 * 62 * 1 AS col2, 57
----
5270
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT 14 - - 52 + - COUNT( * ) * - COALESCE ( + 76, - NULLIF ( 81, + - 29 * - 74 * + 81 ) + ( - 89 ) + + - COUNT( * ) ) * - - 91
----
6982

skipif mysql # not compatible
query I rowsort label-7512
SELECT 14 - - 52 + - COUNT ( * ) * - COALESCE ( + 76, - NULLIF ( 81, + - 29 * - 74 * + 81 ) + ( - 89 ) + + - COUNT ( * ) ) * - - 91
----
6982

query I rowsort
SELECT 50 * - 43
----
-2150

query II rowsort
SELECT 12 AS col1, ( + + 20 ) AS col1
----
12
20

query I rowsort
SELECT 67 + - 7 AS col1
----
60

query I rowsort
SELECT + 76 + 37 - 41 col2
----
72

query I rowsort
SELECT 16 * + - 49 - + - 13 AS col0
----
-771

onlyif mysql # aggregate syntax: 
query II rowsort label-7518
SELECT - + MIN( DISTINCT + ( - + 86 ) ) AS col2, 45 AS col2
----
86
45

skipif mysql # not compatible
query II rowsort label-7518
SELECT - + MIN ( DISTINCT + ( - + 86 ) ) AS col2, 45 AS col2
----
86
45

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

query I rowsort
SELECT ALL NULLIF ( + 28, + + 3 )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7521
SELECT ALL + ( - MIN( - 31 ) ), 63 col0
----
31
63

skipif mysql # not compatible
query II rowsort label-7521
SELECT ALL + ( - MIN ( - 31 ) ), 63 col0
----
31
63

query I rowsort
SELECT ALL - 7 * + 45
----
-315

query II rowsort
SELECT + 50 AS col0, + 2 * 38 - 20
----
50
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT - 52 + - 58 + NULLIF ( - - CAST( NULL AS SIGNED ), - 45 ) + 36 * - COUNT( * ) * - + 26 * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT - 52 + - 58 + NULLIF ( - - CAST ( NULL AS INTEGER ), - 45 ) + 36 * - COUNT ( * ) * - + 26 * + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT ALL 22 * 64 + - CASE + 21 WHEN + MIN( DISTINCT 31 ) THEN COUNT( * ) END / + - NULLIF ( 24, COUNT( * ) / + 97 ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL 22 * 64 + - CASE + 21 WHEN + MIN ( DISTINCT 31 ) THEN COUNT ( * ) END / + - NULLIF ( 24, COUNT ( * ) / + 97 ) / - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7526
SELECT ALL + CASE + ( 53 ) WHEN + + 39 + - COUNT( * ) THEN CAST( NULL AS SIGNED ) ELSE - COUNT( * ) * - - COUNT( * ) END + 67 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL + CASE + ( 53 ) WHEN + + 39 + - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) ELSE - COUNT ( * ) * - - COUNT ( * ) END + 67 AS col2
----
66

query I rowsort
SELECT + 19 * - - 67 + + - 2 AS col0
----
1271

onlyif mysql # DIV for integer division: 
query I rowsort label-7528
SELECT 99 DIV 64
----
1

skipif mysql # not compatible
query I rowsort label-7528
SELECT 99 / 64
----
1

query I rowsort
SELECT 6 * 59 * + 16
----
5664

query I rowsort
SELECT 80 + 96
----
176

onlyif mysql # DIV for integer division: 
query II rowsort label-7531
SELECT + 26 AS col1, + 98 DIV - 48
----
26
-2

skipif mysql # not compatible
query II rowsort label-7531
SELECT + 26 AS col1, + 98 / - 48
----
26
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7532
SELECT CAST( - 70 AS SIGNED ) DIV 42 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7532
SELECT CAST ( - 70 AS INTEGER ) / 42 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7533
SELECT 25 DIV + - 62 * + 8
----
0

skipif mysql # not compatible
query I rowsort label-7533
SELECT 25 / + - 62 * + 8
----
0

query I rowsort
SELECT 5 - - 1 * NULLIF ( + 2, 79 ) * 35 - 83 AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7535
SELECT 42, CAST( - 99 AS SIGNED ) AS col0
----
42
-99

skipif mysql # not compatible
query II rowsort label-7535
SELECT 42, CAST ( - 99 AS INTEGER ) AS col0
----
42
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7536
SELECT ALL - ( - 53 ) * - CASE NULLIF ( - 19, 66 + + 96 ) WHEN - 13 * - ( + - 42 ) THEN + COUNT( * ) + - - 58 WHEN 77 THEN - ( - 77 ) WHEN - COUNT( * ) * 32 * - CASE - CAST( 89 AS SIGNED ) WHEN - 20 * - + COUNT( * ) - 70 THEN NULL WHEN + + 20 - - + 65 - - 54 THEN 92 + + COUNT( * ) END * + + 97 / 36 + NULLIF ( - 61, + NULLIF ( 35, COUNT( * ) ) + 22 ) * 76 THEN NULL END * 90 * + 77 AS col0, - 62 AS col0
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-7536
SELECT ALL - ( - 53 ) * - CASE NULLIF ( - 19, 66 + + 96 ) WHEN - 13 * - ( + - 42 ) THEN + COUNT ( * ) + - - 58 WHEN 77 THEN - ( - 77 ) WHEN - COUNT ( * ) * 32 * - CASE - CAST ( 89 AS INTEGER ) WHEN - 20 * - + COUNT ( * ) - 70 THEN NULL WHEN + + 20 - - + 65 - - 54 THEN 92 + + COUNT ( * ) END * + + 97 / 36 + NULLIF ( - 61, + NULLIF ( 35, COUNT ( * ) ) + 22 ) * 76 THEN NULL END * 90 * + 77 AS col0, - 62 AS col0
----
NULL
-62

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

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL + COUNT ( * ) + + 14
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT ALL + SUM( + 47 ) + 92 * - + COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL + SUM ( + 47 ) + 92 * - + COUNT ( * ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-7539
SELECT - 92, + 69 * - COUNT( * ) + 52 - 82 * + + 71 * + 46 AS col2
----
-92
-267829

skipif mysql # not compatible
query II rowsort label-7539
SELECT - 92, + 69 * - COUNT ( * ) + 52 - 82 * + + 71 * + 46 AS col2
----
-92
-267829

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT 24 + + 50 + - CASE - 14 WHEN + - 53 + 45 * - 91 * + 96 / + CASE - 38 WHEN CASE COUNT( * ) WHEN + 63 THEN + - 81 ELSE SUM( DISTINCT + 65 ) END * 27 THEN - 72 ELSE NULL END THEN 31 * + 81 + 32 END + - ( - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT 24 + + 50 + - CASE - 14 WHEN + - 53 + 45 * - 91 * + 96 / + CASE - 38 WHEN CASE COUNT ( * ) WHEN + 63 THEN + - 81 ELSE SUM ( DISTINCT + 65 ) END * 27 THEN - 72 ELSE NULL END THEN 31 * + 81 + 32 END + - ( - 66 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL - COUNT( DISTINCT 10 ) + + 71 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL - COUNT ( DISTINCT 10 ) + + 71 AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7542
SELECT ALL 15 - + COUNT( * ) DIV - 90
----
15

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL 15 - + COUNT ( * ) / - 90
----
15

query II rowsort
SELECT - 3, 88 AS col1
----
-3
88

onlyif mysql # DIV for integer division: 
query II rowsort label-7544
SELECT 14 + + 21 + - 97 DIV + 26 AS col2, - 75 + + 61 + - - 39 * + 8
----
32
298

skipif mysql # not compatible
query II rowsort label-7544
SELECT 14 + + 21 + - 97 / + 26 AS col2, - 75 + + 61 + - - 39 * + 8
----
32
298

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT 50 - 16 - + 99 + + + CASE 25 WHEN + 99 * + 78 * + 31 THEN NULL WHEN 51 * - COUNT( * ) THEN - 18 * 98 + - AVG ( - + 45 ) * - 56 + + - 36 + + - MIN( DISTINCT - 81 ) WHEN + 12 THEN NULL ELSE NULL END / - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7545
SELECT 50 - 16 - + 99 + + + CASE 25 WHEN + 99 * + 78 * + 31 THEN NULL WHEN 51 * - COUNT ( * ) THEN - 18 * 98 + - AVG ( - + 45 ) * - 56 + + - 36 + + - MIN ( DISTINCT - 81 ) WHEN + 12 THEN NULL ELSE NULL END / - 64
----
NULL

query I rowsort
SELECT 20 * 41
----
820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7547
SELECT ALL - CAST( + 21 AS SIGNED ) - + ( 71 ) - + + 21 + COUNT( * ) + + 48 * COUNT( * ) * 1
----
-64

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL - CAST ( + 21 AS INTEGER ) - + ( 71 ) - + + 21 + COUNT ( * ) + + 48 * COUNT ( * ) * 1
----
-64

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

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

query I rowsort
SELECT + 65 + + 84
----
149

query I rowsort
SELECT ALL - 2 * 39 AS col2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7551
SELECT DISTINCT COUNT( + + 86 ), 65 DIV + 62 * COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-7551
SELECT DISTINCT COUNT ( + + 86 ), 65 / + 62 * COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7552
SELECT COUNT( * ) + - - 38 + NULLIF ( + - NULLIF ( - 94, 73 ), - - 82 DIV - - CAST( NULL AS SIGNED ) * + 2 ) DIV - 30 + 59 * - - ( + 30 )
----
1806

skipif mysql # not compatible
query I rowsort label-7552
SELECT COUNT ( * ) + - - 38 + NULLIF ( + - NULLIF ( - 94, 73 ), - - 82 / - - CAST ( NULL AS INTEGER ) * + 2 ) / - 30 + 59 * - - ( + 30 )
----
1806

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT ALL + 58 DIV + - 34 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL + 58 / + - 34 AS col2
----
-1

query I rowsort
SELECT ALL - 53 * + 49
----
-2597

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

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

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

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

query I rowsort
SELECT ALL + 50 * - 75
----
-3750

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

skipif mysql # not compatible
query I rowsort label-7558
SELECT - ( COUNT ( * ) ) / - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT NULLIF ( - COUNT( * ), + 52 ) * - 14
----
14

skipif mysql # not compatible
query I rowsort label-7559
SELECT NULLIF ( - COUNT ( * ), + 52 ) * - 14
----
14

query II rowsort
SELECT ALL ( + + 31 ) AS col0, 89 AS col0
----
31
89

query II rowsort
SELECT + 76 + 84 col0, - 61
----
160
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-7562
SELECT ALL - 82 * + - 69 + + 45 + + 62 + + + NULLIF ( + - COUNT( 6 ), + 55 + 38 ) + + 25 + - 57 AS col1, + 51 * - + 38 AS col0
----
5732
-1938

skipif mysql # not compatible
query II rowsort label-7562
SELECT ALL - 82 * + - 69 + + 45 + + 62 + + + NULLIF ( + - COUNT ( 6 ), + 55 + 38 ) + + 25 + - 57 AS col1, + 51 * - + 38 AS col0
----
5732
-1938

query I rowsort
SELECT ALL + 68 * + + 47 + + 23 * 6 col0
----
3334

onlyif mysql # aggregate syntax: 
query II rowsort label-7564
SELECT ALL - 69 col0, 55 * + COUNT( * )
----
-69
55

skipif mysql # not compatible
query II rowsort label-7564
SELECT ALL - 69 col0, 55 * + COUNT ( * )
----
-69
55

query I rowsort
SELECT ALL + - 45 * - - 96 + - 62 * + 39 + - 36 AS col2
----
-6774

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT ALL 82 * + 21 * - MIN( DISTINCT + 10 ) + - + 30 AS col1
----
-17250

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL 82 * + 21 * - MIN ( DISTINCT + 10 ) + - + 30 AS col1
----
-17250

onlyif mysql # DIV for integer division: 
query I rowsort label-7567
SELECT 92 DIV - 56 - 89 + - 98 AS col2
----
-188

skipif mysql # not compatible
query I rowsort label-7567
SELECT 92 / - 56 - 89 + - 98 AS col2
----
-188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7568
SELECT ALL AVG ( - 93 ) * - + CAST( NULL AS SIGNED ) * 52 * ( - COUNT( * ) ) * 54 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL AVG ( - 93 ) * - + CAST ( NULL AS INTEGER ) * 52 * ( - COUNT ( * ) ) * 54 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7569
SELECT + 31 * - 67 DIV COUNT( DISTINCT + 2 ) + 81 AS col0
----
-1996

skipif mysql # not compatible
query I rowsort label-7569
SELECT + 31 * - 67 / COUNT ( DISTINCT + 2 ) + 81 AS col0
----
-1996

query I rowsort
SELECT ( + 94 ) + - ( 19 ) * - - 40 * - 42 AS col1
----
32014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7571
SELECT ALL - NULLIF ( - 33, - COALESCE ( + MAX( ALL - NULLIF ( - 21, 56 ) ), - 81 + + COUNT( * ) + - + 50 * ( 10 ) * + + 3 * COUNT( * ) - 40 + + - 43 * 97 + + 77 + SUM( DISTINCT + 2 ) * + 51 ) * + 45 * - - COUNT( * ) * 85 / - CAST( NULL AS SIGNED ) ) * - NULLIF ( 98, - COUNT( * ) - - 8 ) + - 21 AS col2
----
-3255

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL - NULLIF ( - 33, - COALESCE ( + MAX ( ALL - NULLIF ( - 21, 56 ) ), - 81 + + COUNT ( * ) + - + 50 * ( 10 ) * + + 3 * COUNT ( * ) - 40 + + - 43 * 97 + + 77 + SUM ( DISTINCT + 2 ) * + 51 ) * + 45 * - - COUNT ( * ) * 85 / - CAST ( NULL AS INTEGER ) ) * - NULLIF ( 98, - COUNT ( * ) - - 8 ) + - 21 AS col2
----
-3255

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT 65 * - 27 + - + COALESCE ( - COUNT( * ), 90 + 80 ) * - 15 * SUM( - 73 )
----
-660

skipif mysql # not compatible
query I rowsort label-7573
SELECT 65 * - 27 + - + COALESCE ( - COUNT ( * ), 90 + 80 ) * - 15 * SUM ( - 73 )
----
-660

query I rowsort
SELECT - 56 * + 18 + 77
----
-931

query I rowsort
SELECT DISTINCT + 48 + + ( + 46 ) + - 20 * + 74 AS col2
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT DISTINCT COALESCE ( COUNT( ALL + 50 ), - 30, + ( 23 ) ) * + - 42 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT COALESCE ( COUNT ( ALL + 50 ), - 30, + ( 23 ) ) * + - 42 AS col1
----
-42

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7580
SELECT ALL 3 DIV - MAX( + - 54 )
----
0

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL 3 / - MAX ( + - 54 )
----
0

query I rowsort
SELECT + 9 * + + 63
----
567

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

skipif mysql # not compatible
query I rowsort label-7582
SELECT - 14 * + - COUNT ( * ) / 65 * 96 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7583
SELECT ALL + CAST( + 12 AS SIGNED ) - + 83 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL + CAST ( + 12 AS INTEGER ) - + 83 AS col0
----
-71

query II rowsort
SELECT + 85 * 68, - 2 AS col0
----
5780
-2

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7586
SELECT DISTINCT + 29 * + COUNT( * ) AS col2, - MIN( - 65 )
----
29
65

skipif mysql # not compatible
query II rowsort label-7586
SELECT DISTINCT + 29 * + COUNT ( * ) AS col2, - MIN ( - 65 )
----
29
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT - + 91 * 92 * - 80 * + + CASE + + 83 WHEN 3 THEN NULL WHEN 76 THEN NULL WHEN - 73 / - - 32 * + NULLIF ( 94, - + 40 ) * 94 THEN NULL ELSE COUNT( * ) END AS col0
----
669760

skipif mysql # not compatible
query I rowsort label-7587
SELECT - + 91 * 92 * - 80 * + + CASE + + 83 WHEN 3 THEN NULL WHEN 76 THEN NULL WHEN - 73 / - - 32 * + NULLIF ( 94, - + 40 ) * 94 THEN NULL ELSE COUNT ( * ) END AS col0
----
669760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7588
SELECT - + 85 + 88 + + 66 + + - 61 * - 22, COUNT( * ) + + CAST( + + 4 AS SIGNED ) AS col0
----
1411
5

skipif mysql # not compatible
query II rowsort label-7588
SELECT - + 85 + 88 + + 66 + + - 61 * - 22, COUNT ( * ) + + CAST ( + + 4 AS INTEGER ) AS col0
----
1411
5

query I rowsort
SELECT - - 10 + 75 + - 85 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7590
SELECT + + 35 / CASE - NULLIF ( 54, - 43 ) WHEN - CAST( NULL AS SIGNED ) - + 33 THEN + + NULLIF ( + ( + 68 ), - CASE + ( + 53 ) WHEN 54 * - 57 THEN + - 28 * + - 86 * - 51 WHEN - 55 - - - 56 THEN - - ( ( + 83 ) ) END ) * + COUNT( * ) + 25 WHEN - COALESCE ( 37, 81 * 94 + + 31, - ( 83 ) * 13 ) * + 95 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7590
SELECT + + 35 / CASE - NULLIF ( 54, - 43 ) WHEN - CAST ( NULL AS INTEGER ) - + 33 THEN + + NULLIF ( + ( + 68 ), - CASE + ( + 53 ) WHEN 54 * - 57 THEN + - 28 * + - 86 * - 51 WHEN - 55 - - - 56 THEN - - ( ( + 83 ) ) END ) * + COUNT ( * ) + 25 WHEN - COALESCE ( 37, 81 * 94 + + 31, - ( 83 ) * 13 ) * + 95 THEN NULL END
----
NULL

query I rowsort
SELECT - 74 * 37 AS col0
----
-2738

query II rowsort
SELECT ALL - - 34 + - 57 AS col2, 78 * + 40 + + 42 AS col0
----
-23
3162

onlyif mysql # DIV for integer division: 
query II rowsort label-7593
SELECT DISTINCT + + 71 + - 19 col0, - 56 DIV + 33
----
52
-1

skipif mysql # not compatible
query II rowsort label-7593
SELECT DISTINCT + + 71 + - 19 col0, - 56 / + 33
----
52
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT DISTINCT ( ( - 7 ) ) + - + COUNT( * ) * SUM( ALL + + 28 )
----
-35

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT ( ( - 7 ) ) + - + COUNT ( * ) * SUM ( ALL + + 28 )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7595
SELECT - 1 DIV - + 42 + + 10 AS col0, MAX( ALL - + 30 )
----
10
-30

skipif mysql # not compatible
query II rowsort label-7595
SELECT - 1 / - + 42 + + 10 AS col0, MAX ( ALL - + 30 )
----
10
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-7596
SELECT ALL 40 + 75, - 65 - - SUM( 24 ) + + 28 + + + 41 * - NULLIF ( 3, - + 2 * - - ( 82 ) ) * - COUNT( * ) - + 20 * - 78 * - - 81 col1
----
115
126470

skipif mysql # not compatible
query II rowsort label-7596
SELECT ALL 40 + 75, - 65 - - SUM ( 24 ) + + 28 + + + 41 * - NULLIF ( 3, - + 2 * - - ( 82 ) ) * - COUNT ( * ) - + 20 * - 78 * - - 81 col1
----
115
126470

query II rowsort
SELECT ALL 45 * 92, - 80 AS col1
----
4140
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT - - 14 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-7598
SELECT - - 14 / 58
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7599
SELECT 97 DIV + + 16 + + - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-7599
SELECT 97 / + + 16 + + - COUNT ( * )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7600
SELECT ALL - CASE - + 87 WHEN + 44 * - 59 * - SUM( DISTINCT 5 ) + + ( - + 34 ) + + 67 * CAST( COUNT( * ) AS SIGNED ) THEN NULL WHEN - NULLIF ( + CASE - + 90 WHEN + 81 * - ( - - ( 43 ) ) THEN + 33 * COUNT( * ) END, - 58 ) + - CAST( + - 70 AS SIGNED ) + - 25 + 7 THEN NULL ELSE + 31 END * + 80 * + 13 * - CASE WHEN NULL IN ( 30, - 66 + + 1 * - - ( + + COALESCE ( 81, + 64 + + ( - - 89 ) + + - 95 ) ) ) THEN - 11 ELSE NULL END * - NULLIF ( - 10, NULLIF ( - 34, - CAST( NULL AS SIGNED ) ) ) + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL - CASE - + 87 WHEN + 44 * - 59 * - SUM ( DISTINCT 5 ) + + ( - + 34 ) + + 67 * CAST ( COUNT ( * ) AS INTEGER ) THEN NULL WHEN - NULLIF ( + CASE - + 90 WHEN + 81 * - ( - - ( 43 ) ) THEN + 33 * COUNT ( * ) END, - 58 ) + - CAST ( + - 70 AS INTEGER ) + - 25 + 7 THEN NULL ELSE + 31 END * + 80 * + 13 * - CASE WHEN NULL IN ( 30, - 66 + + 1 * - - ( + + COALESCE ( 81, + 64 + + ( - - 89 ) + + - 95 ) ) ) THEN - 11 ELSE NULL END * - NULLIF ( - 10, NULLIF ( - 34, - CAST ( NULL AS INTEGER ) ) ) + 61 AS col1
----
NULL

query I rowsort
SELECT - 22 * - 55 AS col2
----
1210

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT + CASE 83 WHEN + 50 * - - 99 THEN 13 * + COUNT( * ) / - + 59 + - 86 ELSE + 89 + + 55 + + 13 END col2
----
157

skipif mysql # not compatible
query I rowsort label-7603
SELECT + CASE 83 WHEN + 50 * - - 99 THEN 13 * + COUNT ( * ) / - + 59 + - 86 ELSE + 89 + + 55 + + 13 END col2
----
157

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7605
SELECT - 75 DIV - 63 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7605
SELECT - 75 / - 63 AS col0
----
1

query I rowsort
SELECT + AVG ( ALL - CASE - 60 WHEN + 16 THEN 26 END ) AS col0
----
NULL

query II rowsort
SELECT ALL + 86 AS col1, - 23 AS col0
----
86
-23

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

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

query I rowsort
SELECT CASE - 11 WHEN 51 * + 50 * 40 THEN - - ( 80 ) * 33 - + - 16 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7610
SELECT DISTINCT + 54 * - 4 - 30 + + 16 DIV 37
----
-246

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT + 54 * - 4 - 30 + + 16 / 37
----
-246

onlyif mysql # DIV for integer division: 
query II rowsort label-7611
SELECT - 33 * 68 DIV + - 78 AS col2, 3
----
28
3

skipif mysql # not compatible
query II rowsort label-7611
SELECT - 33 * 68 / + - 78 AS col2, 3
----
28
3

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7614
SELECT + 91 * - + ( - 34 ) * 78 / - 95 * - 64 * + + ( - 7 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT + 91 * - + ( - 34 ) * 78 / - 95 * - 64 * + + ( - 7 ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT ALL 97 * COUNT( + 3 ) * 21 AS col0
----
2037

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL 97 * COUNT ( + 3 ) * 21 AS col0
----
2037

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7617
SELECT DISTINCT - - 24 DIV - 71 * 51 + - 97, 70 col2
----
-97
70

skipif mysql # not compatible
query II rowsort label-7617
SELECT DISTINCT - - 24 / - 71 * 51 + - 97, 70 col2
----
-97
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL 7 * - 87 + + NULLIF ( + + 65, + ( - - 20 ) + - + COUNT( * ) ) * + 25 AS col2
----
1016

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL 7 * - 87 + + NULLIF ( + + 65, + ( - - 20 ) + - + COUNT ( * ) ) * + 25 AS col2
----
1016

query I rowsort
SELECT 36 * + 9 + - 81 * - - 90 + + 14 AS col1
----
-6952

onlyif mysql # DIV for integer division: 
query I rowsort label-7620
SELECT + - 20 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-7620
SELECT + - 20 / - 99
----
0

query I rowsort
SELECT - + 14 * + - 12
----
168

query I rowsort
SELECT - - 81 + - 78 AS col1
----
3

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

skipif mysql # not compatible
query II rowsort label-7623
SELECT + COUNT ( * ) AS col2, + CAST ( 70 AS INTEGER ) AS col1
----
1
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7624
SELECT - - 14, CAST( + + 26 AS SIGNED ) AS col0
----
14
26

skipif mysql # not compatible
query II rowsort label-7624
SELECT - - 14, CAST ( + + 26 AS INTEGER ) AS col0
----
14
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT ALL - + CASE + ( 2 ) WHEN - ( 42 ) THEN - 36 END + + SUM( DISTINCT + 59 ) + + + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL - + CASE + ( 2 ) WHEN - ( 42 ) THEN - 36 END + + SUM ( DISTINCT + 59 ) + + + 38 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 68 + - 84
----
-16

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT ALL + COALESCE ( - + ( + 64 ), COUNT( * ) * + 70 ) + - 97 AS col2
----
-161

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL + COALESCE ( - + ( + 64 ), COUNT ( * ) * + 70 ) + - 97 AS col2
----
-161

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

skipif mysql # not compatible
query II rowsort label-7630
SELECT ALL + COUNT ( ALL - ( - 92 ) ) AS col1, + 51 * + - CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7631
SELECT + COUNT( * ), - 56 + - - 40 AS col2
----
1
-16

skipif mysql # not compatible
query II rowsort label-7631
SELECT + COUNT ( * ), - 56 + - - 40 AS col2
----
1
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT - 75 + 92 - + + COUNT( * ) + + 96 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-7632
SELECT - 75 + 92 - + + COUNT ( * ) + + 96 AS col1
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-7633
SELECT ALL 48 DIV 53 DIV + 43 - - 41 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL 48 / 53 / + 43 - - 41 AS col2
----
41

onlyif mysql # aggregate syntax: 
query III rowsort label-7634
SELECT 2 * NULLIF ( + 8, + 80 ) + 58 AS col0, COUNT( * ) + - - 74 AS col1, - - 67
----
74
75
67

skipif mysql # not compatible
query III rowsort label-7634
SELECT 2 * NULLIF ( + 8, + 80 ) + 58 AS col0, COUNT ( * ) + - - 74 AS col1, - - 67
----
74
75
67

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

query I rowsort
SELECT 34 * 72 AS col2
----
2448

query I rowsort
SELECT ALL - 39 * + 39 col2
----
-1521

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7638
SELECT DISTINCT - ( - 68 ) AS col0, COUNT( * ) DIV + 79 + + 75 + 87 * + + 48 * + COUNT( DISTINCT - ( + 11 ) )
----
68
4251

skipif mysql # not compatible
query II rowsort label-7638
SELECT DISTINCT - ( - 68 ) AS col0, COUNT ( * ) / + 79 + + 75 + 87 * + + 48 * + COUNT ( DISTINCT - ( + 11 ) )
----
68
4251

query II rowsort
SELECT ALL - 30 * 22, - 20 AS col2
----
-660
-20

query I rowsort
SELECT ALL + 67 * 26
----
1742

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT 21 * 93 DIV 57
----
34

skipif mysql # not compatible
query I rowsort label-7641
SELECT 21 * 93 / 57
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7642
SELECT NULLIF ( - COALESCE ( - 34, - CAST( NULL AS SIGNED ), 30 DIV - - 79 - - + 74 + 96 + 49 - - 37 - - 20 * - - 30 * - - 27 ), + - ( - + COUNT( * ) ) * 19 + + AVG ( - 79 ) ) * 36 + + + 75 * - - COUNT( * ) + ( + CAST( 61 AS SIGNED ) ) + 62 DIV + 22
----
1362

skipif mysql # not compatible
query I rowsort label-7642
SELECT NULLIF ( - COALESCE ( - 34, - CAST ( NULL AS INTEGER ), 30 / - - 79 - - + 74 + 96 + 49 - - 37 - - 20 * - - 30 * - - 27 ), + - ( - + COUNT ( * ) ) * 19 + + AVG ( - 79 ) ) * 36 + + + 75 * - - COUNT ( * ) + ( + CAST ( 61 AS INTEGER ) ) + 62 / + 22
----
1362

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT 67 * 97 + + COUNT( * ) AS col2
----
6500

skipif mysql # not compatible
query I rowsort label-7643
SELECT 67 * 97 + + COUNT ( * ) AS col2
----
6500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7644
SELECT COUNT( - 53 ) DIV + 6 + + + 52
----
52

skipif mysql # not compatible
query I rowsort label-7644
SELECT COUNT ( - 53 ) / + 6 + + + 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT COUNT( * ) + 43 - - 19
----
63

skipif mysql # not compatible
query I rowsort label-7645
SELECT COUNT ( * ) + 43 - - 19
----
63

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

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

query II rowsort
SELECT 49 + + 0 AS col2, + 13
----
49
13

query I rowsort
SELECT DISTINCT 93 + + + 7
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-7649
SELECT 5 + - - 3 DIV + - 99 + - 61
----
-56

skipif mysql # not compatible
query I rowsort label-7649
SELECT 5 + - - 3 / + - 99 + - 61
----
-56

query I rowsort
SELECT ALL 50 * + + 63 * 4
----
12600

query I rowsort
SELECT NULLIF ( - 84, + 51 )
----
-84

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7654
SELECT 85 * + ( + COALESCE ( + COALESCE ( + + 34, - - 63 ), + COUNT( * ) * + + 31 DIV + 38 ) ), 97 * - - 97 AS col1
----
2890
9409

skipif mysql # not compatible
query II rowsort label-7654
SELECT 85 * + ( + COALESCE ( + COALESCE ( + + 34, - - 63 ), + COUNT ( * ) * + + 31 / + 38 ) ), 97 * - - 97 AS col1
----
2890
9409

query I rowsort
SELECT ALL - - 63 * + + 73 * - ( - 7 )
----
32193

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT COALESCE ( + - 39, NULLIF ( - 10, + 69 * MAX( + ( + 97 ) ) ) ) + - 58
----
-97

skipif mysql # not compatible
query I rowsort label-7656
SELECT COALESCE ( + - 39, NULLIF ( - 10, + 69 * MAX ( + ( + 97 ) ) ) ) + - 58
----
-97

query I rowsort
SELECT - COALESCE ( + 5, - 33 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT ALL + 69 + + - 27 * 0 DIV + 39 col2
----
69

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL + 69 + + - 27 * 0 / + 39 col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT - 92 + - COUNT( - + ( - + 2 ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-7659
SELECT - 92 + - COUNT ( - + ( - + 2 ) ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT DISTINCT 62 + + COUNT( * ) + 43 + - 15
----
91

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT 62 + + COUNT ( * ) + 43 + - 15
----
91

query II rowsort
SELECT 85 + + + 69 AS col1, + 44 * - 59 + - + 93 col1
----
154
-2689

query I rowsort
SELECT 87 * + 0 - + 39 - + 43 AS col0
----
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7663
SELECT - 19 + + CAST( NULL AS DECIMAL ) + 14 * + - 94 + - - ( - 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT - 19 + + CAST ( NULL AS REAL ) + 14 * + - 94 + - - ( - 85 ) AS col0
----
NULL

query I rowsort
SELECT - - CASE 35 WHEN + 3 + + - 79 / 93 THEN + 24 + + 97 + - 47 * - 51 ELSE 47 END
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT NULLIF ( COUNT( * ), + SUM( DISTINCT - 62 ) ) - - 11
----
12

skipif mysql # not compatible
query I rowsort label-7665
SELECT NULLIF ( COUNT ( * ), + SUM ( DISTINCT - 62 ) ) - - 11
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7666
SELECT ALL 40 DIV COALESCE ( - 78, COALESCE ( - - COUNT( * ), - + 2 ) + + - 67, + 72 ) AS col0, 54 AS col2
----
0
54

skipif mysql # not compatible
query II rowsort label-7666
SELECT ALL 40 / COALESCE ( - 78, COALESCE ( - - COUNT ( * ), - + 2 ) + + - 67, + 72 ) AS col0, 54 AS col2
----
0
54

query I rowsort
SELECT ALL + CASE WHEN 81 IS NOT NULL THEN + 67 END - 89
----
-22

query I rowsort
SELECT ALL - 43 * + + 29 * + - 22 * - 60 AS col0
----
-1646040

query I rowsort
SELECT 31 * 54 AS col1
----
1674

query I rowsort
SELECT DISTINCT 69 * + 99
----
6831

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL - MAX( ALL - 92 ) col0
----
92

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL - MAX ( ALL - 92 ) col0
----
92

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7673
SELECT + MAX( ALL + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT + MAX ( ALL + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7674
SELECT 1 AS col1, - MIN( - 45 )
----
1
45

skipif mysql # not compatible
query II rowsort label-7674
SELECT 1 AS col1, - MIN ( - 45 )
----
1
45

query I rowsort
SELECT 33 * - 70 AS col0
----
-2310

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT ALL - 99 DIV + - 47
----
2

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL - 99 / + - 47
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT DISTINCT MAX( + 65 ) + + 97 * 24 + 76 + 54 AS col1
----
2523

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT MAX ( + 65 ) + + 97 * 24 + 76 + 54 AS col1
----
2523

query I rowsort
SELECT DISTINCT - 81 * - + 50 AS col0
----
4050

query I rowsort
SELECT 59 * 95
----
5605

query I rowsort
SELECT ALL + 8 + - - 85 * - + 9 + - 12 + + 65
----
-704

onlyif mysql # DIV for integer division: 
query II rowsort label-7682
SELECT 9 * 4 DIV - + ( - + 44 ) * - 47 + + + ( + ( + 62 ) ), ( 75 ) AS col0
----
62
75

skipif mysql # not compatible
query II rowsort label-7682
SELECT 9 * 4 / - + ( - + 44 ) * - 47 + + + ( + ( + 62 ) ), ( 75 ) AS col0
----
62
75

query I rowsort
SELECT 30 + - 76
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-7684
SELECT + 2 AS col0, - ( ( + 7 ) ) * NULLIF ( 23, + 4 * + ( - 17 ) - - + 82 ) * + - COUNT( * ) * + + 69 * 99 AS col0
----
2
1099791

skipif mysql # not compatible
query II rowsort label-7684
SELECT + 2 AS col0, - ( ( + 7 ) ) * NULLIF ( 23, + 4 * + ( - 17 ) - - + 82 ) * + - COUNT ( * ) * + + 69 * 99 AS col0
----
2
1099791

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT DISTINCT + 92 + + + CASE - COUNT( * ) WHEN COALESCE ( - + 60, 71 ) THEN + - 11 * + + 11 * ( - - 27 ) + 95 + + COUNT( * ) / + 74 END / - MAX( 90 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT + 92 + + + CASE - COUNT ( * ) WHEN COALESCE ( - + 60, 71 ) THEN + - 11 * + + 11 * ( - - 27 ) + 95 + + COUNT ( * ) / + 74 END / - MAX ( 90 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL - COUNT( * ) + + 4
----
3

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL - COUNT ( * ) + + 4
----
3

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

skipif mysql # not compatible
query I rowsort label-7687
SELECT SUM ( DISTINCT - 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT ALL + - COUNT( * ) + - 74 + ( MAX( DISTINCT + 71 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL + - COUNT ( * ) + - 74 + ( MAX ( DISTINCT + 71 ) )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7689
SELECT ALL - COUNT( * ) / - COUNT( * ) * ( + - 35 ) * - CASE - + COALESCE ( - 26, 26 + CAST( COALESCE ( - 55, 78 * - - 56 ) AS SIGNED ), + 53 ) WHEN + 59 + + 98 THEN + + COUNT( * ) - + COUNT( * ) WHEN 50 THEN NULL END - + 20 + + + 15 * - + 78 + - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL - COUNT ( * ) / - COUNT ( * ) * ( + - 35 ) * - CASE - + COALESCE ( - 26, 26 + CAST ( COALESCE ( - 55, 78 * - - 56 ) AS INTEGER ), + 53 ) WHEN + 59 + + 98 THEN + + COUNT ( * ) - + COUNT ( * ) WHEN 50 THEN NULL END - + 20 + + + 15 * - + 78 + - + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7690
SELECT DISTINCT + 31 + + + COALESCE ( - - 27, - CAST( COUNT( * ) AS SIGNED ) ) * + SUM( DISTINCT + + 64 ) AS col1
----
1759

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT + 31 + + + COALESCE ( - - 27, - CAST ( COUNT ( * ) AS INTEGER ) ) * + SUM ( DISTINCT + + 64 ) AS col1
----
1759

query I rowsort
SELECT DISTINCT - COALESCE ( - 53, + 22, - 45 ) AS col2
----
53

query I rowsort
SELECT DISTINCT 93 + - + 59
----
34

query II rowsort
SELECT 9, + 21 * - 26 + - 4 + - 72 + - 50 * + 16 AS col2
----
9
-1422

onlyif mysql # DIV for integer division: 
query I rowsort label-7694
SELECT + 52 * - 97 + ( + - 7 ) DIV - 83 + + - 68 col2
----
-5112

skipif mysql # not compatible
query I rowsort label-7694
SELECT + 52 * - 97 + ( + - 7 ) / - 83 + + - 68 col2
----
-5112

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT 69 - + ( + - 63 ) - ( 54 ) * 65 DIV 17 DIV + + 3 + - 41
----
23

skipif mysql # not compatible
query I rowsort label-7695
SELECT 69 - + ( + - 63 ) - ( 54 ) * 65 / 17 / + + 3 + - 41
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT + MIN( + 32 ) col1
----
32

skipif mysql # not compatible
query I rowsort label-7696
SELECT + MIN ( + 32 ) col1
----
32

query I rowsort
SELECT ALL ( - 87 ) - + + 46 AS col0
----
-133

query I rowsort
SELECT 2 * - 18
----
-36

query I rowsort
SELECT DISTINCT + - 93 * + + 40 * 14 + - 1 AS col1
----
-52081

query II rowsort
SELECT ALL 60 AS col2, - 17 AS col2
----
60
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-7701
SELECT DISTINCT 14 col2, 42 + + + CASE + - 40 WHEN + 43 THEN COUNT( * ) END
----
14
NULL

skipif mysql # not compatible
query II rowsort label-7701
SELECT DISTINCT 14 col2, 42 + + + CASE + - 40 WHEN + 43 THEN COUNT ( * ) END
----
14
NULL

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

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

query II rowsort
SELECT ALL 71 AS col0, + 55 - 42
----
71
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7704
SELECT + 92 + - - 40 AS col1, COUNT( * ) + + CASE + - 84 WHEN - COUNT( * ) THEN - - 46 END
----
132
NULL

skipif mysql # not compatible
query II rowsort label-7704
SELECT + 92 + - - 40 AS col1, COUNT ( * ) + + CASE + - 84 WHEN - COUNT ( * ) THEN - - 46 END
----
132
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT + MAX( DISTINCT - + 93 ) * 94 AS col2
----
-8742

skipif mysql # not compatible
query I rowsort label-7705
SELECT + MAX ( DISTINCT - + 93 ) * 94 AS col2
----
-8742

query I rowsort
SELECT + 86 + + + 97
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7707
SELECT - ( 49 ) DIV 22 * + + MIN( DISTINCT 95 ) col2
----
-190

skipif mysql # not compatible
query I rowsort label-7707
SELECT - ( 49 ) / 22 * + + MIN ( DISTINCT 95 ) col2
----
-190

query I rowsort
SELECT ALL 74 * - 93 AS col0
----
-6882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7709
SELECT ALL 82 * + 8 / - ( CAST( NULL AS SIGNED ) ) + - - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL 82 * + 8 / - ( CAST ( NULL AS INTEGER ) ) + - - 60
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7710
SELECT ALL - 62 * 57 * + 51 * - + 87 + - 15 + + COUNT( * ) + + 8 DIV + 21 * - + 27 * - 77 + + - 9 + - 39 * 69 + + + 2 DIV 23
----
15677644

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL - 62 * 57 * + 51 * - + 87 + - 15 + + COUNT ( * ) + + 8 / + 21 * - + 27 * - 77 + + - 9 + - 39 * 69 + + + 2 / 23
----
15677644

query I rowsort
SELECT + 2 * - - 11
----
22

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

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

query I rowsort
SELECT ALL 14 * 20
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT CASE - 75 WHEN + COUNT( * ) - 18 THEN + - 30 * 54 + MAX( + 60 ) + COUNT( * ) / - + 90 + - 51 * ( - 81 ) + - 64 * 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7714
SELECT CASE - 75 WHEN + COUNT ( * ) - 18 THEN + - 30 * 54 + MAX ( + 60 ) + COUNT ( * ) / - + 90 + - 51 * ( - 81 ) + - 64 * 33 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7715
SELECT + + ( - 8 ) * + MAX( - 59 ) + + ( - 13 ) * + - ( - 12 ) * - 58 + COUNT( * ) * + 61 AS col0, + 21
----
9581
21

skipif mysql # not compatible
query II rowsort label-7715
SELECT + + ( - 8 ) * + MAX ( - 59 ) + + ( - 13 ) * + - ( - 12 ) * - 58 + COUNT ( * ) * + 61 AS col0, + 21
----
9581
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL 88 * - - 38 + MAX( 81 ) * - - 84
----
10148

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL 88 * - - 38 + MAX ( 81 ) * - - 84
----
10148

query I rowsort
SELECT + - 57 * - ( 91 )
----
5187

onlyif mysql # aggregate syntax: 
query II rowsort label-7718
SELECT ALL + + 76 AS col1, - MAX( DISTINCT - 49 ) AS col0
----
76
49

skipif mysql # not compatible
query II rowsort label-7718
SELECT ALL + + 76 AS col1, - MAX ( DISTINCT - 49 ) AS col0
----
76
49

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

query II rowsort
SELECT ALL + 9 col0, - 42 * 49 AS col1
----
9
-2058

query II rowsort
SELECT + 92 AS col2, 71
----
92
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7722
SELECT DISTINCT + 96 AS col2, - 98 + + NULLIF ( SUM( + ( + + 85 ) ), + 38 )
----
96
-13

skipif mysql # not compatible
query II rowsort label-7722
SELECT DISTINCT + 96 AS col2, - 98 + + NULLIF ( SUM ( + ( + + 85 ) ), + 38 )
----
96
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7723
SELECT ALL - - 93 * + 11 - 65 - - 74 * - COALESCE ( - - 32, - 65 * + 80 + + - 61 + + - 47 + 15 * - 87 ) * + 29 - + COUNT( * ) * + + 84 DIV - COUNT( * ) AS col0, - 79 * 30 col1
----
-67630
-2370

skipif mysql # not compatible
query II rowsort label-7723
SELECT ALL - - 93 * + 11 - 65 - - 74 * - COALESCE ( - - 32, - 65 * + 80 + + - 61 + + - 47 + 15 * - 87 ) * + 29 - + COUNT ( * ) * + + 84 / - COUNT ( * ) AS col0, - 79 * 30 col1
----
-67630
-2370

onlyif mysql # DIV for integer division: 
query I rowsort label-7724
SELECT + 95 DIV + 99 * 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7724
SELECT + 95 / + 99 * 92 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT - MIN( - 28 ) + - 6 - - ( 10 ) * - 94 - + 6
----
-924

skipif mysql # not compatible
query I rowsort label-7725
SELECT - MIN ( - 28 ) + - 6 - - ( 10 ) * - 94 - + 6
----
-924

query I rowsort
SELECT - + 31 * - - 48 + - - 92 AS col2
----
-1396

query I rowsort
SELECT ALL - 45 * + 40
----
-1800

onlyif mysql # DIV for integer division: 
query I rowsort label-7728
SELECT - + 81 DIV 47 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7728
SELECT - + 81 / 47 AS col0
----
-1

query I rowsort
SELECT + + 76 * 65 AS col0
----
4940

query I rowsort
SELECT DISTINCT - - 41 * 11 * - 94 + + 10 + + 4
----
-42380

query II rowsort
SELECT ALL + + 91 * - 42 AS col0, + 97 * + - 81 AS col2
----
-3822
-7857

query I rowsort
SELECT DISTINCT ( + 41 ) AS col0
----
41

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

query I rowsort
SELECT + 22 + - - 77 + + 14 * 83
----
1261

query I rowsort
SELECT - 69 * + 97 * + - 23
----
153939

query I rowsort
SELECT ALL ( + + 87 ) + - 48 AS col0
----
39

query I rowsort
SELECT DISTINCT 98 * - + 83 * 61 AS col2
----
-496174

query II rowsort
SELECT ALL 33 + + + 49 AS col2, 0 AS col2
----
82
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT + COUNT( * ) * + COUNT( * ) * 59 * - + ( 84 )
----
-4956

skipif mysql # not compatible
query I rowsort label-7739
SELECT + COUNT ( * ) * + COUNT ( * ) * 59 * - + ( 84 )
----
-4956

query I rowsort
SELECT DISTINCT 68 + 62 - + 31 * - 81 * - 20 * - - 55 AS col2
----
-2761970

query I rowsort
SELECT ALL 27 + + + 6 col0
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL 97 + + - 54 * COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL 97 + + - 54 * COUNT ( * ) AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7744
SELECT CAST( + + CASE 98 WHEN 42 THEN + - 31 + 88 + - + 9 - + 38 WHEN - 47 + 72 / + 71 + CAST( NULL AS SIGNED ) + + CAST( 58 AS SIGNED ) THEN NULL WHEN - 45 THEN NULL ELSE ( + 80 ) END AS SIGNED ), - ( + + 4 ) * + + 50 + 53 + 55 + - ( - - 18 ) AS col0
----
80
-110

skipif mysql # not compatible
query II rowsort label-7744
SELECT CAST ( + + CASE 98 WHEN 42 THEN + - 31 + 88 + - + 9 - + 38 WHEN - 47 + 72 / + 71 + CAST ( NULL AS INTEGER ) + + CAST ( 58 AS INTEGER ) THEN NULL WHEN - 45 THEN NULL ELSE ( + 80 ) END AS INTEGER ), - ( + + 4 ) * + + 50 + 53 + 55 + - ( - - 18 ) AS col0
----
80
-110

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

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

query I rowsort
SELECT + COALESCE ( - - 37, - 9 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7747
SELECT CAST( + 15 AS SIGNED ) AS col0, MIN( ALL - - 27 ) * COUNT( * ) + + 50
----
15
77

skipif mysql # not compatible
query II rowsort label-7747
SELECT CAST ( + 15 AS INTEGER ) AS col0, MIN ( ALL - - 27 ) * COUNT ( * ) + + 50
----
15
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7748
SELECT DISTINCT 84 DIV - 28
----
-3

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT 84 / - 28
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7749
SELECT ALL NULLIF ( CASE 31 WHEN + NULLIF ( + 93, 24 ) + + 68 / + 10 THEN + CAST( NULL AS SIGNED ) END, + COUNT( * ) ) * + + 3 * 27 * + - CAST( NULL AS SIGNED ) * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL NULLIF ( CASE 31 WHEN + NULLIF ( + 93, 24 ) + + 68 / + 10 THEN + CAST ( NULL AS INTEGER ) END, + COUNT ( * ) ) * + + 3 * 27 * + - CAST ( NULL AS INTEGER ) * + 49
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7750
SELECT ALL - + 16 DIV + 96 + + COUNT( * ) + + 55 + - 70 - + 47 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL - + 16 / + 96 + + COUNT ( * ) + + 55 + - 70 - + 47 AS col2
----
-61

query I rowsort
SELECT + - 46 * + 54
----
-2484

query II rowsort
SELECT ALL + 40 * + 83, 73 AS col0
----
3320
73

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

query I rowsort
SELECT + - ( - 28 ) + - + 90
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7755
SELECT ALL + ( + 79 ) * 70 - 74 + + 49 + + 7 + 38 * + 63 * 36 * 55 + - MAX( DISTINCT + 3 ) DIV - COUNT( DISTINCT + 54 ) col0
----
4745635

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL + ( + 79 ) * 70 - 74 + + 49 + + 7 + 38 * + 63 * 36 * 55 + - MAX ( DISTINCT + 3 ) / - COUNT ( DISTINCT + 54 ) col0
----
4745635

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT - SUM( DISTINCT - + COALESCE ( 46, - 35 * + 17, 7 ) ) * - SUM( ALL 48 ) col1
----
-2208

skipif mysql # not compatible
query I rowsort label-7756
SELECT - SUM ( DISTINCT - + COALESCE ( 46, - 35 * + 17, 7 ) ) * - SUM ( ALL 48 ) col1
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT + 16 + + COUNT( * ) + - 68
----
-51

skipif mysql # not compatible
query I rowsort label-7757
SELECT + 16 + + COUNT ( * ) + - 68
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT - - COUNT( * ) * + 31 * - + 49 + - - 22
----
-1497

skipif mysql # not compatible
query I rowsort label-7758
SELECT - - COUNT ( * ) * + 31 * - + 49 + - - 22
----
-1497

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7760
SELECT + 38 * 22 + - 26 + + + COUNT( * ) + 65 DIV + 79 AS col1
----
811

skipif mysql # not compatible
query I rowsort label-7760
SELECT + 38 * 22 + - 26 + + + COUNT ( * ) + 65 / + 79 AS col1
----
811

query II rowsort
SELECT 31 + - 66 + ( + + 91 ) + 47 AS col2, - 42 AS col1
----
103
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT 39 * + 14 * - 60 * + COUNT( * ) + - 89 * - - 68
----
-38812

skipif mysql # not compatible
query I rowsort label-7763
SELECT 39 * + 14 * - 60 * + COUNT ( * ) + - 89 * - - 68
----
-38812

onlyif mysql # DIV for integer division: 
query I rowsort label-7764
SELECT 59 DIV - ( - 93 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7764
SELECT 59 / - ( - 93 ) AS col0
----
0

query I rowsort
SELECT ALL + 12 + 54
----
66

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

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

query II rowsort
SELECT ALL - 40 + 97 * 56, + 25 AS col0
----
5392
25

onlyif mysql # DIV for integer division: 
query II rowsort label-7768
SELECT 41, 12 DIV + 88 AS col0
----
41
0

skipif mysql # not compatible
query II rowsort label-7768
SELECT 41, 12 / + 88 AS col0
----
41
0

query II rowsort
SELECT ALL 36, + ( - - 14 ) AS col1
----
36
14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7770
SELECT 39 + + CASE 33 WHEN 59 - 16 THEN CAST( NULL AS DECIMAL ) * - 69 + - 1 * + - MAX( - 43 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT 39 + + CASE 33 WHEN 59 - 16 THEN CAST ( NULL AS REAL ) * - 69 + - 1 * + - MAX ( - 43 ) END
----
NULL

query I rowsort
SELECT 75 - + + 13
----
62

query I rowsort
SELECT 49 + + COALESCE ( + 67, + + 31 * - + 43 + 7 ) * + 38 - - 34 AS col1
----
2629

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT CASE + 78 WHEN - 3 THEN - 24 * 66 * - + MAX( DISTINCT + + 76 ) END * + 86 * + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7773
SELECT CASE + 78 WHEN - 3 THEN - 24 * 66 * - + MAX ( DISTINCT + + 76 ) END * + 86 * + 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT 68 * + SUM( + - 88 ) AS col0
----
-5984

skipif mysql # not compatible
query I rowsort label-7774
SELECT 68 * + SUM ( + - 88 ) AS col0
----
-5984

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT ALL 43 * - NULLIF ( - 19, + - MIN( ALL + 90 ) )
----
817

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL 43 * - NULLIF ( - 19, + - MIN ( ALL + 90 ) )
----
817

query I rowsort
SELECT ALL - 78 - + 23 * - ( - 48 ) AS col1
----
-1182

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

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

skipif mysql # not compatible
query I rowsort label-7778
SELECT + + SUM ( - 38 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7779
SELECT NULLIF ( - + CAST( + + ( - - COUNT( * ) ) AS SIGNED ), 32 ) + 48 * - + 81
----
-3889

skipif mysql # not compatible
query I rowsort label-7779
SELECT NULLIF ( - + CAST ( + + ( - - COUNT ( * ) ) AS INTEGER ), 32 ) + 48 * - + 81
----
-3889

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT + MAX( + + 27 ) * 85
----
2295

skipif mysql # not compatible
query I rowsort label-7781
SELECT + MAX ( + + 27 ) * 85
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT COUNT( * ) * + 67 * + 4 * 90 * 66 + - 93
----
1591827

skipif mysql # not compatible
query I rowsort label-7782
SELECT COUNT ( * ) * + 67 * + 4 * 90 * 66 + - 93
----
1591827

onlyif mysql # DIV for integer division: 
query I rowsort label-7783
SELECT DISTINCT + 87 DIV - 66 + + - 67
----
-68

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT + 87 / - 66 + + - 67
----
-68

query I rowsort
SELECT ALL 44 * + ( 32 ) * 51 col1
----
71808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7785
SELECT ALL - CAST( + + COUNT( + 98 ) AS SIGNED ) DIV + 42 + + 20 col0
----
20

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL - CAST ( + + COUNT ( + 98 ) AS INTEGER ) / + 42 + + 20 col0
----
20

query I rowsort
SELECT + 36 * - COALESCE ( - 73, 14 )
----
2628

query I rowsort
SELECT DISTINCT + 35 + + 70
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7788
SELECT CASE + ( + 11 ) WHEN + + 69 THEN - - 39 WHEN - - 70 THEN NULL WHEN CAST( NULL AS SIGNED ) * - COALESCE ( COUNT( * ), + - ( COUNT( * ) ) ) + 40 THEN NULL WHEN + 11 THEN + + 50 ELSE NULL END AS col2
----
50

skipif mysql # not compatible
query I rowsort label-7788
SELECT CASE + ( + 11 ) WHEN + + 69 THEN - - 39 WHEN - - 70 THEN NULL WHEN CAST ( NULL AS INTEGER ) * - COALESCE ( COUNT ( * ), + - ( COUNT ( * ) ) ) + 40 THEN NULL WHEN + 11 THEN + + 50 ELSE NULL END AS col2
----
50

query I rowsort
SELECT - 3 * 12 * + ( - - 41 ) AS col1
----
-1476

query II rowsort
SELECT + 63 AS col2, - 59 * - 71 col2
----
63
4189

query I rowsort
SELECT ALL - 80 + - - 32 * - + 9 AS col1
----
-368

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT 44 * + - ( + 82 ) + + 22 + + 63 * + COUNT( * ) col1
----
-3523

skipif mysql # not compatible
query I rowsort label-7792
SELECT 44 * + - ( + 82 ) + + 22 + + 63 * + COUNT ( * ) col1
----
-3523

query I rowsort
SELECT DISTINCT 69 + + ( - 85 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT ( + + 6 ) + NULLIF ( + COUNT( * ), 97 ) + 19 * - 79
----
-1494

skipif mysql # not compatible
query I rowsort label-7794
SELECT ( + + 6 ) + NULLIF ( + COUNT ( * ), 97 ) + 19 * - 79
----
-1494

query I rowsort
SELECT DISTINCT + 8 + + 59 col0
----
67

query II rowsort
SELECT ALL - 54 * + 7 AS col2, + 75 AS col2
----
-378
75

query I rowsort
SELECT DISTINCT + 9 + + 30
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT - MIN( DISTINCT - + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-7798
SELECT - MIN ( DISTINCT - + 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT SUM( + 50 ) + + 5 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-7799
SELECT SUM ( + 50 ) + + 5 AS col2
----
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7800
SELECT 65 * - + 22 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7800
SELECT 65 * - + 22 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT ALL 55 - + COUNT( * ) + + 65 * - + 51 * + 56 + - + 81
----
-185667

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL 55 - + COUNT ( * ) + + 65 * - + 51 * + 56 + - + 81
----
-185667

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

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

query I rowsort
SELECT ALL - 46 - - 55 + + 56 AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7804
SELECT ALL 76 * - 74 - - 69 + CAST( + 75 AS SIGNED ) col1
----
-5480

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL 76 * - 74 - - 69 + CAST ( + 75 AS INTEGER ) col1
----
-5480

query I rowsort
SELECT 84 * - 76 + 83
----
-6301

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7807
SELECT ALL - + 76 * CAST( - 84 AS SIGNED ) AS col0
----
6384

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL - + 76 * CAST ( - 84 AS INTEGER ) AS col0
----
6384

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

query I rowsort
SELECT DISTINCT - ( 59 ) * + + 9 AS col1
----
-531

onlyif mysql # aggregate syntax: 
query II rowsort label-7810
SELECT - - 19 * COUNT( * ) AS col2, - 31
----
19
-31

skipif mysql # not compatible
query II rowsort label-7810
SELECT - - 19 * COUNT ( * ) AS col2, - 31
----
19
-31

query I rowsort
SELECT DISTINCT + CASE + + 64 WHEN + 2 THEN 30 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7812
SELECT CAST( 78 AS SIGNED ) AS col1, + COUNT( DISTINCT + 92 )
----
78
1

skipif mysql # not compatible
query II rowsort label-7812
SELECT CAST ( 78 AS INTEGER ) AS col1, + COUNT ( DISTINCT + 92 )
----
78
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7813
SELECT ALL + - 24 * + + 31 - - 84 + 68 + COUNT( * ) * + + 25 + + 76 * + 79 + + COUNT( * ) * + COUNT( * ) DIV + 66
----
5437

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL + - 24 * + + 31 - - 84 + 68 + COUNT ( * ) * + + 25 + + 76 * + 79 + + COUNT ( * ) * + COUNT ( * ) / + 66
----
5437

query II rowsort
SELECT - 78 + - 25 col0, 9
----
-103
9

query I rowsort
SELECT + 17 * + 10 - - + 17 + 89
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-7816
SELECT + - 36 DIV + - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7816
SELECT + - 36 / + - 65 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT ( COALESCE ( + 40, - MAX( DISTINCT - 50 ) * + 94 + 25 + - + 63 ) )
----
40

skipif mysql # not compatible
query I rowsort label-7817
SELECT ( COALESCE ( + 40, - MAX ( DISTINCT - 50 ) * + 94 + 25 + - + 63 ) )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7818
SELECT + - SUM( ALL + 0 ) AS col2, 53 AS col1
----
0
53

skipif mysql # not compatible
query II rowsort label-7818
SELECT + - SUM ( ALL + 0 ) AS col2, 53 AS col1
----
0
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7819
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 85 + + - 94 + + - COUNT( * ) * - - 0 - - + 37 DIV + COUNT( * ), SUM( + 44 ) DIV 20 AS col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-7819
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 85 + + - 94 + + - COUNT ( * ) * - - 0 - - + 37 / + COUNT ( * ), SUM ( + 44 ) / 20 AS col2
----
NULL
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7820
SELECT ALL 58 DIV - ( - 4 ), - COUNT( * ) + + 51 + - ( - COUNT( * ) ) * - COUNT( * ) + + 49 AS col2
----
14
98

skipif mysql # not compatible
query II rowsort label-7820
SELECT ALL 58 / - ( - 4 ), - COUNT ( * ) + + 51 + - ( - COUNT ( * ) ) * - COUNT ( * ) + + 49 AS col2
----
14
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7821
SELECT + 63 DIV - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7821
SELECT + 63 / - 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT 58 * - ( ( - 93 ) ) + + + NULLIF ( - COUNT( * ), + 0 * - COUNT( * ) * - - 8 + 63 + + - 12 * - 66 ) + + 37
----
5430

skipif mysql # not compatible
query I rowsort label-7822
SELECT 58 * - ( ( - 93 ) ) + + + NULLIF ( - COUNT ( * ), + 0 * - COUNT ( * ) * - - 8 + 63 + + - 12 * - 66 ) + + 37
----
5430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7823
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) DIV + 45 + + 57
----
57

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) / + 45 + + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT + COUNT( DISTINCT + - 38 ) + 6 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7824
SELECT + COUNT ( DISTINCT + - 38 ) + 6 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7825
SELECT ALL 10 * + 64 * - 0 DIV + 10
----
0

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL 10 * + 64 * - 0 / + 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT SUM( ALL NULLIF ( + 14, - 44 ) )
----
14

skipif mysql # not compatible
query I rowsort label-7826
SELECT SUM ( ALL NULLIF ( + 14, - 44 ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT ALL ( COUNT( * ) ) * 10 * + + COALESCE ( COUNT( * ), - 2, - + 66 + - 54 )
----
10

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL ( COUNT ( * ) ) * 10 * + + COALESCE ( COUNT ( * ), - 2, - + 66 + - 54 )
----
10

query I rowsort
SELECT - 86 * - - 89 * - + 48 AS col2
----
367392

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT - MIN( DISTINCT - NULLIF ( - 61, + + 77 ) ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-7829
SELECT - MIN ( DISTINCT - NULLIF ( - 61, + + 77 ) ) AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT - ( - CAST( 19 AS SIGNED ) )
----
19

skipif mysql # not compatible
query I rowsort label-7830
SELECT - ( - CAST ( 19 AS INTEGER ) )
----
19

query I rowsort
SELECT + 73 - 34
----
39

query I rowsort
SELECT DISTINCT 79 - + ( 93 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT ALL MAX( + 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL MAX ( + 48 ) AS col1
----
48

query II rowsort
SELECT + ( + ( + + 85 ) ) + + ( - 42 ) * 86, - 11 + + - 36 AS col2
----
-3527
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7835
SELECT DISTINCT SUM( + 92 ) - - 82 * + - ( + 15 ) + + - 22 DIV - 73
----
-1138

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT SUM ( + 92 ) - - 82 * + - ( + 15 ) + + - 22 / - 73
----
-1138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7836
SELECT ALL - 14 DIV CAST( + 42 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL - 14 / CAST ( + 42 AS INTEGER ) AS col1
----
0

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

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

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

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

query I rowsort
SELECT - 96 - + 45
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7840
SELECT ALL 2 * COALESCE ( - MAX( CAST( 55 AS SIGNED ) ), - 17 * 80 ) AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL 2 * COALESCE ( - MAX ( CAST ( 55 AS INTEGER ) ), - 17 * 80 ) AS col2
----
-110

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

skipif mysql # not compatible
query I rowsort label-7841
SELECT - ( SUM ( DISTINCT 79 ) )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7842
SELECT ALL + SUM( ALL 95 ) * + CAST( - 63 * + 7 + - CASE - 24 WHEN 52 THEN CASE + SUM( 60 ) WHEN 76 THEN 80 - 26 ELSE NULL END + - CAST( NULL AS DECIMAL ) WHEN 61 / - 12 THEN NULL ELSE NULL END * 7 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL + SUM ( ALL 95 ) * + CAST ( - 63 * + 7 + - CASE - 24 WHEN 52 THEN CASE + SUM ( 60 ) WHEN 76 THEN 80 - 26 ELSE NULL END + - CAST ( NULL AS REAL ) WHEN 61 / - 12 THEN NULL ELSE NULL END * 7 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7843
SELECT + ( + CASE WHEN 4 IS NULL THEN NULL ELSE + COUNT( ALL - 7 ) DIV + 32 END ) + + 74 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-7843
SELECT + ( + CASE WHEN 4 IS NULL THEN NULL ELSE + COUNT ( ALL - 7 ) / + 32 END ) + + 74 AS col1
----
74

query I rowsort
SELECT ALL 66 * 89
----
5874

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7845
SELECT DISTINCT + 85 DIV + 51 + CAST( 57 AS SIGNED ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT + 85 / + 51 + CAST ( 57 AS INTEGER ) AS col0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7846
SELECT ALL + 52 DIV 35
----
1

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL + 52 / 35
----
1

query I rowsort
SELECT - 88 + 73 AS col2
----
-15

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7849
SELECT 52 DIV 18 + 62 * + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-7849
SELECT 52 / 18 + 62 * + COUNT ( * )
----
64

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7852
SELECT COUNT( * ) * + 7 + 80 DIV 59 col1
----
8

skipif mysql # not compatible
query I rowsort label-7852
SELECT COUNT ( * ) * + 7 + 80 / 59 col1
----
8

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

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT + COUNT ( ALL + 10 ) AS col1
----
1

query I rowsort
SELECT ALL - 36 * - 14 + 64
----
568

onlyif mysql # DIV for integer division: 
query I rowsort label-7855
SELECT 80 DIV ( + 43 * 93 ) + + 3
----
3

skipif mysql # not compatible
query I rowsort label-7855
SELECT 80 / ( + 43 * 93 ) + + 3
----
3

query I rowsort
SELECT ALL + 53 * 51
----
2703

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT ALL + MIN( - 26 ) * 3
----
-78

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL + MIN ( - 26 ) * 3
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7858
SELECT ALL + 9 * 14 - CAST( NULL AS SIGNED ) / + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL + 9 * 14 - CAST ( NULL AS INTEGER ) / + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT - 86 - CASE + 92 - - COUNT( * ) * + 47 WHEN - MIN( ALL 19 ) * - 63 + ( - NULLIF ( + 32, + 12 ) ) THEN 59 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7859
SELECT - 86 - CASE + 92 - - COUNT ( * ) * + 47 WHEN - MIN ( ALL 19 ) * - 63 + ( - NULLIF ( + 32, + 12 ) ) THEN 59 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT - CASE + 20 WHEN 59 * - 93 - - 37 THEN NULL ELSE + ( - 53 ) END * - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-7860
SELECT - CASE + 20 WHEN 59 * - 93 - - 37 THEN NULL ELSE + ( - 53 ) END * - COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT + 81 * - COUNT( 40 ) + 75 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7861
SELECT + 81 * - COUNT ( 40 ) + 75 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT CASE - 78 WHEN + COUNT( * ) THEN NULL ELSE - 50 * 62 + + 35 END
----
-3065

skipif mysql # not compatible
query I rowsort label-7862
SELECT CASE - 78 WHEN + COUNT ( * ) THEN NULL ELSE - 50 * 62 + + 35 END
----
-3065

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT COUNT( * ) * 37 + - 81
----
-44

skipif mysql # not compatible
query I rowsort label-7864
SELECT COUNT ( * ) * 37 + - 81
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT DISTINCT COUNT( * ) * + 76 - ( + 73 )
----
3

skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT COUNT ( * ) * + 76 - ( + 73 )
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT ALL + 19 DIV 20
----
0

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL + 19 / 20
----
0

query I rowsort
SELECT ALL 97 * 14 AS col2
----
1358

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

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

skipif mysql # not compatible
query I rowsort label-7870
SELECT + 79 / COUNT ( * ) AS col1
----
79

query I rowsort
SELECT + 55 - NULLIF ( 94, 6 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT + 72 + 54 * - COUNT( * ) col1
----
18

skipif mysql # not compatible
query I rowsort label-7872
SELECT + 72 + 54 * - COUNT ( * ) col1
----
18

query I rowsort
SELECT CASE 97 WHEN 34 THEN - 40 - 92 * 74 ELSE 42 END AS col0
----
42

query I rowsort
SELECT ALL 83 + + COALESCE ( 89 - 66 * ( + 91 + - 23 * ( 72 ) ), + 17 )
----
103462

query I rowsort
SELECT ALL + 63 * 35
----
2205

onlyif mysql # DIV for integer division: 
query I rowsort label-7876
SELECT DISTINCT - 30 + - 57 DIV 74
----
-30

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT - 30 + - 57 / 74
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT ALL SUM( 9 ) + 37
----
46

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL SUM ( 9 ) + 37
----
46

query I rowsort
SELECT ALL + - 59 * + 3 AS col0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT - - COUNT( 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7879
SELECT - - COUNT ( 49 ) AS col0
----
1

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

query I rowsort
SELECT 83 * 39
----
3237

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

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

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

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

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

query I rowsort
SELECT DISTINCT 95 + 37 AS col1
----
132

query I rowsort
SELECT 62 * - 28
----
-1736

query I rowsort
SELECT ALL - + 54 + - 22 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT 50 * 27 - - COUNT( * )
----
1351

skipif mysql # not compatible
query I rowsort label-7888
SELECT 50 * 27 - - COUNT ( * )
----
1351

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT DISTINCT - SUM( - 6 ) * - ( + COUNT( * ) * + 50 + - COUNT( * ) )
----
-294

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT - SUM ( - 6 ) * - ( + COUNT ( * ) * + 50 + - COUNT ( * ) )
----
-294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7890
SELECT - + CASE 4 WHEN ( 26 ) + NULLIF ( + COUNT( ALL 70 ), 51 - - 0 * 69 ) THEN 85 WHEN + 12 THEN NULL ELSE - 17 END DIV - 97 - - 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7890
SELECT - + CASE 4 WHEN ( 26 ) + NULLIF ( + COUNT ( ALL 70 ), 51 - - 0 * 69 ) THEN 85 WHEN + 12 THEN NULL ELSE - 17 END / - 97 - - 69 AS col0
----
69

query I rowsort
SELECT DISTINCT + 53 * ( 48 )
----
2544

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT ALL 79 - COUNT( ALL - 37 - - 77 ) * - 67 AS col1
----
146

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL 79 - COUNT ( ALL - 37 - - 77 ) * - 67 AS col1
----
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7893
SELECT DISTINCT - 31 DIV - MAX( 96 * NULLIF ( - 33, + 6 * 20 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT - 31 / - MAX ( 96 * NULLIF ( - 33, + 6 * 20 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT MIN( ALL + 94 ) * SUM( - 78 ) + + 16
----
-7316

skipif mysql # not compatible
query I rowsort label-7894
SELECT MIN ( ALL + 94 ) * SUM ( - 78 ) + + 16
----
-7316

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT 40 * + SUM( ALL 80 )
----
3200

skipif mysql # not compatible
query I rowsort label-7895
SELECT 40 * + SUM ( ALL 80 )
----
3200

query I rowsort
SELECT ALL + 32 * - ( + 63 ) * 75
----
-151200

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

skipif mysql # not compatible
query I rowsort label-7897
SELECT + COUNT ( * ) * - 28 * + 80 + - COUNT ( * ) * - ( 0 ) AS col1
----
-2240

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

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT + COUNT ( * ) * 26 AS col0
----
26

query I rowsort
SELECT ALL + 32 * - COALESCE ( 75, 54 ) AS col0
----
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7900
SELECT AVG ( DISTINCT + 57 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT AVG ( DISTINCT + 57 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 64 + - - 90 AS col2
----
154

query I rowsort
SELECT DISTINCT + 14 * 66 col0
----
924

query I rowsort
SELECT COALESCE ( - - 85, 37 ) + + 0 col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7904
SELECT COALESCE ( CAST( NULL AS SIGNED ), - NULLIF ( 52, - 79 ) ) * ( + 24 + 61 )
----
-4420

skipif mysql # not compatible
query I rowsort label-7904
SELECT COALESCE ( CAST ( NULL AS INTEGER ), - NULLIF ( 52, - 79 ) ) * ( + 24 + 61 )
----
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT ALL - CASE 62 WHEN 7 THEN + 50 * - 59 WHEN + 12 * - COUNT( * ) + + MIN( DISTINCT + 70 + 30 ) THEN 22 * + ( + 82 ) ELSE NULL END + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL - CASE 62 WHEN 7 THEN + 50 * - 59 WHEN + 12 * - COUNT ( * ) + + MIN ( DISTINCT + 70 + 30 ) THEN 22 * + ( + 82 ) ELSE NULL END + + 18
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT DISTINCT + 34 + - + 82 + + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT + 34 + - + 82 + + COUNT ( * )
----
-47

query I rowsort
SELECT ALL CASE 46 WHEN - 60 THEN + 44 * - 91 + 99 WHEN - 52 * 56 THEN 54 * - 0 + 48 * - 37 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL + 1 + - + MAX( ALL + 18 ) + + 9
----
-8

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL + 1 + - + MAX ( ALL + 18 ) + + 9
----
-8

query I rowsort
SELECT DISTINCT - 42 + - 30
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7911
SELECT DISTINCT COALESCE ( - COUNT( * ), - 49 DIV COALESCE ( 66, 71 ) ) * - 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT COALESCE ( - COUNT ( * ), - 49 / COALESCE ( 66, 71 ) ) * - 7 AS col1
----
7

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

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

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

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

query I rowsort
SELECT 98 - + 21 + - 14 * 92
----
-1211

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT - 53 + COUNT( * ) * - ( COUNT( * ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-7916
SELECT - 53 + COUNT ( * ) * - ( COUNT ( * ) ) AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7917
SELECT - COALESCE ( - 55, - 23, + 58 * CAST( NULL AS SIGNED ) )
----
55

skipif mysql # not compatible
query I rowsort label-7917
SELECT - COALESCE ( - 55, - 23, + 58 * CAST ( NULL AS INTEGER ) )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7918
SELECT + + 34 DIV - - 17 + 72 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7918
SELECT + + 34 / - - 17 + 72 AS col0
----
74

query I rowsort
SELECT + 3 * + ( + 75 ) AS col2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT CASE + COALESCE ( 49, + SUM( ALL COALESCE ( + 74, + 82 * + 15 ) ) * - 7 + + ( 42 ) * 10, 46 ) WHEN 89 THEN NULL WHEN 51 * - 51 THEN + 38 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7920
SELECT CASE + COALESCE ( 49, + SUM ( ALL COALESCE ( + 74, + 82 * + 15 ) ) * - 7 + + ( 42 ) * 10, 46 ) WHEN 89 THEN NULL WHEN 51 * - 51 THEN + 38 END AS col2
----
NULL

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

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

query II rowsort
SELECT + 6, 39 col2
----
6
39

query I rowsort
SELECT 78 + - NULLIF ( 51, 98 + - 95 ) * - 89
----
4617

query I rowsort
SELECT 49 * + 29 * - - 86
----
122206

query I rowsort
SELECT 85 * + 91
----
7735

query I rowsort
SELECT DISTINCT 92 * 80 col1
----
7360

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

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

query I rowsort
SELECT ALL - 91 * - 60 AS col1
----
5460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7929
SELECT DISTINCT 56 * + 87 * - CAST( - 15 AS SIGNED ) AS col0
----
73080

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT 56 * + 87 * - CAST ( - 15 AS INTEGER ) AS col0
----
73080

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

skipif mysql # not compatible
query I rowsort label-7930
SELECT SUM ( ALL - 42 )
----
-42

query I rowsort
SELECT 87 * - + 72 AS col0
----
-6264

query I rowsort
SELECT ALL 91 * 95
----
8645

query I rowsort
SELECT DISTINCT 50 * + 41 AS col0
----
2050

query I rowsort
SELECT 64 * 10 * + 17
----
10880

query I rowsort
SELECT ( + 32 ) - + 77
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-7936
SELECT + 85, ( + CASE 33 WHEN 2 THEN + 56 WHEN - 68 * + COUNT( * ) THEN NULL END ) AS col1
----
85
NULL

skipif mysql # not compatible
query II rowsort label-7936
SELECT + 85, ( + CASE 33 WHEN 2 THEN + 56 WHEN - 68 * + COUNT ( * ) THEN NULL END ) AS col1
----
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT - NULLIF ( NULLIF ( + 96, + COALESCE ( - 34, 47 ) ), COALESCE ( - COUNT( * ), 58, 51 + 74 ) * ( + 12 * 90 + 38 ) ) * 74 + 11 AS col1
----
-7093

skipif mysql # not compatible
query I rowsort label-7937
SELECT - NULLIF ( NULLIF ( + 96, + COALESCE ( - 34, 47 ) ), COALESCE ( - COUNT ( * ), 58, 51 + 74 ) * ( + 12 * 90 + 38 ) ) * 74 + 11 AS col1
----
-7093

query I rowsort
SELECT ALL + 1 + - - 82 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT + MIN( ALL + + 18 ) * - COUNT( * ) + + 20 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7939
SELECT + MIN ( ALL + + 18 ) * - COUNT ( * ) + + 20 AS col0
----
2

query I rowsort
SELECT - 19 - + - 38 col2
----
19

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

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL SUM ( 16 )
----
16

query I rowsort
SELECT ALL 43 + + 64 * - - ( 78 )
----
5035

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT DISTINCT + - ( + 37 ) + + + ( CASE ( 71 ) WHEN COUNT( * ) / 43 THEN 32 * 17 WHEN SUM( ALL + 43 ) * 48 THEN + 26 WHEN COUNT( * ) THEN - 41 - COUNT( * ) ELSE NULL END ) - - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT + - ( + 37 ) + + + ( CASE ( 71 ) WHEN COUNT ( * ) / 43 THEN 32 * 17 WHEN SUM ( ALL + 43 ) * 48 THEN + 26 WHEN COUNT ( * ) THEN - 41 - COUNT ( * ) ELSE NULL END ) - - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ALL - - 42 + + 97 AS col1
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT DISTINCT - 13 * - NULLIF ( - 49, 93 ) + + 31 DIV - 5
----
-643

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT - 13 * - NULLIF ( - 49, 93 ) + + 31 / - 5
----
-643

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7946
SELECT - 71 + - MIN( + 5 ) + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT - 71 + - MIN ( + 5 ) + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7947
SELECT - - COALESCE ( CAST( 55 AS SIGNED ), - ( + MIN( 78 ) ), + 75 DIV 58 )
----
55

skipif mysql # not compatible
query I rowsort label-7947
SELECT - - COALESCE ( CAST ( 55 AS INTEGER ), - ( + MIN ( 78 ) ), + 75 / 58 )
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7948
SELECT 20 AS col2, + 69 + - - 68 + SUM( 23 ) * + ( 82 * + 23 ) col0
----
20
43515

skipif mysql # not compatible
query II rowsort label-7948
SELECT 20 AS col2, + 69 + - - 68 + SUM ( 23 ) * + ( 82 * + 23 ) col0
----
20
43515

query I rowsort
SELECT - ( 55 ) + - ( + 38 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT ALL + + ( 70 ) - - - 51 * + COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL + + ( 70 ) - - - 51 * + COUNT ( * ) AS col1
----
19

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

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

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

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

query I rowsort
SELECT ALL - + 83 * 68 + + + 43
----
-5601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7954
SELECT - - 9 DIV + + 19 * - 79 + + MIN( ALL + NULLIF ( - 13, - 14 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-7954
SELECT - - 9 / + + 19 * - 79 + + MIN ( ALL + NULLIF ( - 13, - 14 ) )
----
-13

query II rowsort
SELECT 76 col1, 88 col0
----
76
88

query I rowsort
SELECT ALL + - 70 - - 65 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT - NULLIF ( + + MAX( - 3 ), 20 * AVG ( ALL - 86 ) )
----
3

skipif mysql # not compatible
query I rowsort label-7957
SELECT - NULLIF ( + + MAX ( - 3 ), 20 * AVG ( ALL - 86 ) )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7958
SELECT ALL 17 - 36 + - + 56 * SUM( - 82 DIV CAST( - 49 AS SIGNED ) ) * + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL 17 - 36 + - + 56 * SUM ( - 82 / CAST ( - 49 AS INTEGER ) ) * + COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7959
SELECT + 1 * + SUM( DISTINCT - 57 ) DIV - 11 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7959
SELECT + 1 * + SUM ( DISTINCT - 57 ) / - 11 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT ALL - NULLIF ( - COUNT( * ), 12 * 30 ) * 28
----
28

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL - NULLIF ( - COUNT ( * ), 12 * 30 ) * 28
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7961
SELECT - 44 + 22 DIV + 7 + 24 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7961
SELECT - 44 + 22 / + 7 + 24 AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-7962
SELECT - + 82 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-7962
SELECT - + 82 / + 97
----
0

query I rowsort
SELECT ALL 51 * 75 * 11 col2
----
42075

query I rowsort
SELECT + 63 * + - 35
----
-2205

query I rowsort
SELECT + 69 * - + 35 * - 77 - - + ( 47 )
----
186002

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7968
SELECT 32 * ( 92 ) - 18 DIV COALESCE ( - 52 DIV 32 + 56 * 56, - 83 * - 71 ) AS col1
----
2944

skipif mysql # not compatible
query I rowsort label-7968
SELECT 32 * ( 92 ) - 18 / COALESCE ( - 52 / 32 + 56 * 56, - 83 * - 71 ) AS col1
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT DISTINCT 74 * 1 * - COUNT( * ) + COUNT( ALL - 53 )
----
-73

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT 74 * 1 * - COUNT ( * ) + COUNT ( ALL - 53 )
----
-73

query I rowsort
SELECT + 32 - - 52
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7971
SELECT CASE - + 39 WHEN + MAX( DISTINCT + 34 ) THEN - 76 WHEN CAST( 30 AS SIGNED ) + 11 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7971
SELECT CASE - + 39 WHEN + MAX ( DISTINCT + 34 ) THEN - 76 WHEN CAST ( 30 AS INTEGER ) + 11 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT ALL 49 DIV + ( - - 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL 49 / + ( - - 33 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT 42 * 92 + + MAX( - + 81 )
----
3783

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT 42 * 92 + + MAX ( - + 81 )
----
3783

query I rowsort
SELECT DISTINCT ( - + 86 ) * - 12 + - + 58
----
974

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7976
SELECT ALL 17 * - NULLIF ( + COUNT( * ), CAST( + MIN( DISTINCT + 16 ) AS SIGNED ) + + ( 94 ) ) + 91 col1
----
74

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL 17 * - NULLIF ( + COUNT ( * ), CAST ( + MIN ( DISTINCT + 16 ) AS INTEGER ) + + ( 94 ) ) + 91 col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7977
SELECT ALL 86 * - + COUNT( * ) + + CAST( NULL AS SIGNED ) - 21 + - ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL 86 * - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) - 21 + - ( + COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT + + NULLIF ( - 66, - 51 + - - 78 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7979
SELECT ALL 16 * - COUNT( * ) + + ( - COUNT( * ) ) - - CASE + 65 WHEN + COUNT( * ) * - COUNT( * ) THEN - 48 WHEN + 46 / 20 - + 23 / - 72 THEN NULL END * + CAST( - 94 * + 43 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL 16 * - COUNT ( * ) + + ( - COUNT ( * ) ) - - CASE + 65 WHEN + COUNT ( * ) * - COUNT ( * ) THEN - 48 WHEN + 46 / 20 - + 23 / - 72 THEN NULL END * + CAST ( - 94 * + 43 AS INTEGER )
----
NULL

query I rowsort
SELECT - 60 * + 24
----
-1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7981
SELECT ALL + 12 * COUNT( * ) * COUNT( * ) DIV + - 86 - 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL + 12 * COUNT ( * ) * COUNT ( * ) / + - 86 - 28 AS col1
----
-28

query I rowsort
SELECT + + 38 + + - 96 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ALL NULLIF ( - - 31, + 10 + - 31 * COUNT( * ) ) - ( - 47 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL NULLIF ( - - 31, + 10 + - 31 * COUNT ( * ) ) - ( - 47 ) AS col0
----
78

query I rowsort
SELECT - 49 + - 83 + + 49
----
-83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7985
SELECT ALL - 19 * + 34 AS col1, + 55 + + + 26 DIV CAST( 54 * - 42 AS SIGNED )
----
-646
55

skipif mysql # not compatible
query II rowsort label-7985
SELECT ALL - 19 * + 34 AS col1, + 55 + + + 26 / CAST ( 54 * - 42 AS INTEGER )
----
-646
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7986
SELECT - + CAST( 28 AS SIGNED ) - + - 92
----
64

skipif mysql # not compatible
query I rowsort label-7986
SELECT - + CAST ( 28 AS INTEGER ) - + - 92
----
64

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

skipif mysql # not compatible
query I rowsort label-7987
SELECT + CAST ( NULL AS INTEGER ) + + + 18 / 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT - - COUNT( * ) + + 92 + + 63 col2
----
156

skipif mysql # not compatible
query I rowsort label-7988
SELECT - - COUNT ( * ) + + 92 + + 63 col2
----
156

query II rowsort
SELECT - - 53 * + + 5 AS col0, - 59 col1
----
265
-59

query I rowsort
SELECT - + 47 + + 19 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT - + COUNT( * ) + ( 96 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7991
SELECT - + COUNT ( * ) + ( 96 ) AS col2
----
95

query I rowsort
SELECT ALL NULLIF ( - + 19, + - 1 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT DISTINCT CASE COUNT( * ) WHEN + 32 THEN 48 * - COUNT( * ) + + 61 * 13 WHEN 7 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT CASE COUNT ( * ) WHEN + 32 THEN 48 * - COUNT ( * ) + + 61 * 13 WHEN 7 THEN NULL ELSE NULL END AS col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7995
SELECT - NULLIF ( 4, - 30 ) DIV - - ( COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-7995
SELECT - NULLIF ( 4, - 30 ) / - - ( COUNT ( * ) )
----
-4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7996
SELECT CAST( + - 8 AS SIGNED ) DIV - 21 + 90 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7996
SELECT CAST ( + - 8 AS INTEGER ) / - 21 + 90 AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7997
SELECT ALL COALESCE ( 75, - ( + 29 ) DIV + + 2 DIV + COALESCE ( + 7, - COUNT( * ), - 23 * - 79, - 45 + 80 ), + 20 ) DIV 16 + 28 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL COALESCE ( 75, - ( + 29 ) / + + 2 / + COALESCE ( + 7, - COUNT ( * ), - 23 * - 79, - 45 + 80 ), + 20 ) / 16 + 28 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT - CASE - 60 WHEN - COUNT( * ) THEN + 62 WHEN + 56 THEN MIN( 56 ) - + 7 ELSE + COALESCE ( 4, - ( 4 ) * - NULLIF ( 4, 34 + - 20 ), - SUM( DISTINCT 45 ) ) + 40 * + ( 2 * 16 ) END * + 55 AS col1
----
-70620

skipif mysql # not compatible
query I rowsort label-7998
SELECT - CASE - 60 WHEN - COUNT ( * ) THEN + 62 WHEN + 56 THEN MIN ( 56 ) - + 7 ELSE + COALESCE ( 4, - ( 4 ) * - NULLIF ( 4, 34 + - 20 ), - SUM ( DISTINCT 45 ) ) + 40 * + ( 2 * 16 ) END * + 55 AS col1
----
-70620

query I rowsort
SELECT + 80 + 27 AS col2
----
107

query I rowsort
SELECT - 50 * - + 82
----
4100

query I rowsort
SELECT + 56 + - 2 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8002
SELECT - 64 * CASE CAST( NULL AS DECIMAL ) WHEN CASE - NULLIF ( 10, - ( ( + 7 ) ) ) WHEN + 78 * 75 THEN NULL WHEN - 76 * - 21 THEN + COUNT( * ) ELSE NULL END * + 65 THEN - 53 + 25 * NULLIF ( 29 * 41 + 67, - 42 ) WHEN COUNT( ALL 42 ) THEN - 56 END / 33 + - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT - 64 * CASE CAST ( NULL AS REAL ) WHEN CASE - NULLIF ( 10, - ( ( + 7 ) ) ) WHEN + 78 * 75 THEN NULL WHEN - 76 * - 21 THEN + COUNT ( * ) ELSE NULL END * + 65 THEN - 53 + 25 * NULLIF ( 29 * 41 + 67, - 42 ) WHEN COUNT ( ALL 42 ) THEN - 56 END / 33 + - 22 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 97 * - 12
----
-1164

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT - 10 + - 16 * 79 + + ( - 48 ) + SUM( ALL - 31 ) * 73
----
-3585

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT - 10 + - 16 * 79 + + ( - 48 ) + SUM ( ALL - 31 ) * 73
----
-3585

query I rowsort
SELECT DISTINCT + 56 + - NULLIF ( 38, - 5 * 88 / 93 )
----
18

query I rowsort
SELECT ALL - 1 * - 27 * 75 AS col2
----
2025

query I rowsort
SELECT ALL + 38 + + + 67 AS col0
----
105

query I rowsort
SELECT 2 - + 36 + + 49 * + 25 * - - 51 + - 11
----
62430

query I rowsort
SELECT 27 * - 24 + - + 62 + - 91 AS col0
----
-801

query I rowsort
SELECT DISTINCT 23 - - 6 AS col1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8011
SELECT ALL - 64 DIV 55
----
-1

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL - 64 / 55
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8013
SELECT + 67 + + 19 * - AVG ( 99 ) * - CASE CAST( 46 AS DECIMAL ) WHEN - 43 / 60 + 54 THEN 18 * + ( 66 ) END * 20 + SUM( DISTINCT + 2 ) * - 79 + + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8013
SELECT + 67 + + 19 * - AVG ( 99 ) * - CASE CAST ( 46 AS REAL ) WHEN - 43 / 60 + 54 THEN 18 * + ( 66 ) END * 20 + SUM ( DISTINCT + 2 ) * - 79 + + 59 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8014
SELECT + MIN ( 98 )
----
98

query II rowsort
SELECT DISTINCT 89 - 8 * + 69 col0, - 91
----
-463
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8016
SELECT ALL 94 DIV 88 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL 94 / 88 AS col1
----
1

query II rowsort
SELECT 31 AS col2, + 10 AS col1
----
31
10

query I rowsort
SELECT DISTINCT - 70 * + 9 AS col0
----
-630

query I rowsort
SELECT + 99 * 6 AS col2
----
594

query I rowsort
SELECT 52 + + 41 + - + 53 + 56 AS col0
----
96

query I rowsort
SELECT - 74 * - - 35 col1
----
-2590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8022
SELECT + ( - 95 ) + - 21 - - CAST( + 89 AS SIGNED ) + 54 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8022
SELECT + ( - 95 ) + - 21 - - CAST ( + 89 AS INTEGER ) + 54 AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8023
SELECT ALL + MIN( ALL 76 ) DIV - 93 + + 26
----
26

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL + MIN ( ALL 76 ) / - 93 + + 26
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8024
SELECT 1 DIV + 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8024
SELECT 1 / + 25 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT 44 * + + 25 * + MAX( - 41 )
----
-45100

skipif mysql # not compatible
query I rowsort label-8025
SELECT 44 * + + 25 * + MAX ( - 41 )
----
-45100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT DISTINCT + COUNT( + 59 ) + - 82 + + 2 * 14 col0
----
-53

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT + COUNT ( + 59 ) + - 82 + + 2 * 14 col0
----
-53

query II rowsort
SELECT - 7 AS col2, 92
----
-7
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8029
SELECT ALL 68 + + SUM( - 90 ) + - 35 AS col1, - 13
----
-57
-13

skipif mysql # not compatible
query II rowsort label-8029
SELECT ALL 68 + + SUM ( - 90 ) + - 35 AS col1, - 13
----
-57
-13

query I rowsort
SELECT 68 + + 87 AS col2
----
155

query II rowsort
SELECT - 18 col0, + 36
----
-18
36

query I rowsort
SELECT 13 * - - 18
----
234

query I rowsort
SELECT ALL + 42 + 11 AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT - 22 DIV 33 - + 58 + - 27 * + + 65
----
-1813

skipif mysql # not compatible
query I rowsort label-8034
SELECT - 22 / 33 - + 58 + - 27 * + + 65
----
-1813

query II rowsort
SELECT ALL - 54, - 48 AS col0
----
-54
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8036
SELECT + 59 * + - 85 * - 3 + - 35 - - CASE - - COALESCE ( + ( AVG ( + 2 ) ), 44 - - 50 ) WHEN MIN( + CAST( + 63 AS SIGNED ) ) THEN SUM( ALL + 28 ) + 43 WHEN - COUNT( * ) THEN NULL END + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8036
SELECT + 59 * + - 85 * - 3 + - 35 - - CASE - - COALESCE ( + ( AVG ( + 2 ) ), 44 - - 50 ) WHEN MIN ( + CAST ( + 63 AS INTEGER ) ) THEN SUM ( ALL + 28 ) + 43 WHEN - COUNT ( * ) THEN NULL END + - 60
----
NULL

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

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

query II rowsort
SELECT + 95 AS col2, - ( + + 6 ) AS col1
----
95
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8039
SELECT 43 DIV - SUM( DISTINCT - 80 ) * - 37 + - 61 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8039
SELECT 43 / - SUM ( DISTINCT - 80 ) * - 37 + - 61 AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8040
SELECT 7 * - + 93 * + SUM( ALL CAST( NULL AS SIGNED ) ) - + + COUNT( * ) + - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8040
SELECT 7 * - + 93 * + SUM ( ALL CAST ( NULL AS INTEGER ) ) - + + COUNT ( * ) + - 34 AS col1
----
NULL

query II rowsort
SELECT + 49, 39 AS col0
----
49
39

query I rowsort
SELECT 12 + + - 22
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8043
SELECT 43 * + + 53 DIV + - 52 - + 71 AS col0
----
-114

skipif mysql # not compatible
query I rowsort label-8043
SELECT 43 * + + 53 / + - 52 - + 71 AS col0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ALL - COUNT( * ) * + 71 * + 23 AS col0
----
-1633

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL - COUNT ( * ) * + 71 * + 23 AS col0
----
-1633

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT - MAX( ALL + 47 ) - + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT - MAX ( ALL + 47 ) - + COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-8046
SELECT ALL 34 * 28 * - 97 + 44 AS col1, 28 + COUNT( * )
----
-92300
29

skipif mysql # not compatible
query II rowsort label-8046
SELECT ALL 34 * 28 * - 97 + 44 AS col1, 28 + COUNT ( * )
----
-92300
29

query II rowsort
SELECT ALL - 10 AS col1, 13
----
-10
13

query I rowsort
SELECT DISTINCT + 74 * - 20
----
-1480

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT DISTINCT - + CASE - + COUNT( * ) WHEN - 74 + + 21 + - + 96 THEN 22 WHEN 20 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT - + CASE - + COUNT ( * ) WHEN - 74 + + 21 + - + 96 THEN 22 WHEN 20 THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8051
SELECT + COUNT( * ) * + 7 col0, + 84
----
7
84

skipif mysql # not compatible
query II rowsort label-8051
SELECT + COUNT ( * ) * + 7 col0, + 84
----
7
84

query II rowsort
SELECT + - 46 col2, 74 + + ( + + 99 ) col1
----
-46
173

query II rowsort
SELECT + 67, + 95 AS col2
----
67
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT - CAST( 27 AS SIGNED ) * 75 * + 51 * + - 64 + - - 22
----
6609622

skipif mysql # not compatible
query I rowsort label-8054
SELECT - CAST ( 27 AS INTEGER ) * 75 * + 51 * + - 64 + - - 22
----
6609622

onlyif mysql # aggregate syntax: 
query II rowsort label-8055
SELECT ALL NULLIF ( - ( 13 ), + 93 ) AS col1, + ( - COUNT( ALL 47 ) )
----
-13
-1

skipif mysql # not compatible
query II rowsort label-8055
SELECT ALL NULLIF ( - ( 13 ), + 93 ) AS col1, + ( - COUNT ( ALL 47 ) )
----
-13
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8056
SELECT DISTINCT + 58 DIV - 29
----
-2

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT + 58 / - 29
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT - 67 * 11 * - 42 * - + 46 - 79 + - 73 + COUNT( * ) + 97 * 61
----
-1418118

skipif mysql # not compatible
query I rowsort label-8057
SELECT - 67 * 11 * - 42 * - + 46 - 79 + - 73 + COUNT ( * ) + 97 * 61
----
-1418118

query II rowsort
SELECT DISTINCT + 43 col1, 10 * - 99 AS col2
----
43
-990

query I rowsort
SELECT 46 + - 8 - - - 20 AS col1
----
18

query I rowsort
SELECT DISTINCT + - 46 + + 28 * - 92
----
-2622

query I rowsort
SELECT ALL - ( + 22 ) + + 71 AS col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-8062
SELECT DISTINCT 35 AS col1, 84 * CASE - - 69 WHEN + COUNT( * ) - + 39 / + 39 THEN 20 * COUNT( * ) + - ( - COUNT( ALL 73 ) + 47 ) END / 47 col0
----
35
NULL

skipif mysql # not compatible
query II rowsort label-8062
SELECT DISTINCT 35 AS col1, 84 * CASE - - 69 WHEN + COUNT ( * ) - + 39 / + 39 THEN 20 * COUNT ( * ) + - ( - COUNT ( ALL 73 ) + 47 ) END / 47 col0
----
35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL 93 + COUNT( * ) + + + SUM( - 87 ) * + - 16 AS col2
----
1486

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL 93 + COUNT ( * ) + + + SUM ( - 87 ) * + - 16 AS col2
----
1486

query I rowsort
SELECT 94 - + 74 + - ( - 49 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8065
SELECT COALESCE ( + - 61, 1 + + 79 * + 44, - MIN( ALL CAST( NULL AS SIGNED ) ) + 93 * - 41 ) + 31
----
-30

skipif mysql # not compatible
query I rowsort label-8065
SELECT COALESCE ( + - 61, 1 + + 79 * + 44, - MIN ( ALL CAST ( NULL AS INTEGER ) ) + 93 * - 41 ) + 31
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT + 51 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-8066
SELECT + 51 / 78
----
0

query I rowsort
SELECT + 57 + + + 22
----
79

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8069
SELECT DISTINCT 80 DIV + 66
----
1

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT 80 / + 66
----
1

query I rowsort
SELECT + 21 + - 98 * ( - 15 )
----
1491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8071
SELECT + 97 + 68 - + NULLIF ( + 2, 62 + + COALESCE ( - + 7, CAST( NULL AS SIGNED ) / - ( ( + 93 ) ) ) + 83 ) + - 18 * 91 * 7
----
-11303

skipif mysql # not compatible
query I rowsort label-8071
SELECT + 97 + 68 - + NULLIF ( + 2, 62 + + COALESCE ( - + 7, CAST ( NULL AS INTEGER ) / - ( ( + 93 ) ) ) + 83 ) + - 18 * 91 * 7
----
-11303

query I rowsort
SELECT ALL + 38 * + - CASE + - 53 WHEN - 34 THEN - + 78 * - 13 / - ( 53 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8073
SELECT CASE + + 51 WHEN - NULLIF ( - ( - + 1 ), + 83 ) * + 3 + COUNT( ALL + 97 + - ( - ( - ( - 53 ) ) ) * - 43 ) THEN COALESCE ( 88, - COUNT( * ) * + 75 + + CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT CASE + + 51 WHEN - NULLIF ( - ( - + 1 ), + 83 ) * + 3 + COUNT ( ALL + 97 + - ( - ( - ( - 53 ) ) ) * - 43 ) THEN COALESCE ( 88, - COUNT ( * ) * + 75 + + CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT + NULLIF ( + - 79, 53 + - 44 )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8075
SELECT + COUNT( * ) + + + 47, 65 AS col0
----
48
65

skipif mysql # not compatible
query II rowsort label-8075
SELECT + COUNT ( * ) + + + 47, 65 AS col0
----
48
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT CASE - COUNT( * ) WHEN - 52 * - COUNT( * ) + NULLIF ( - 46, - 74 * 45 ) THEN - ( - 20 ) / CASE 90 * + 51 WHEN + 65 / - ( + 43 ) THEN 12 / + 29 WHEN + 6 THEN NULL ELSE + 83 * COUNT( * ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8076
SELECT CASE - COUNT ( * ) WHEN - 52 * - COUNT ( * ) + NULLIF ( - 46, - 74 * 45 ) THEN - ( - 20 ) / CASE 90 * + 51 WHEN + 65 / - ( + 43 ) THEN 12 / + 29 WHEN + 6 THEN NULL ELSE + 83 * COUNT ( * ) END END
----
NULL

query I rowsort
SELECT ALL ( + + NULLIF ( 84, + - 28 * 71 ) ) * + 50 col1
----
4200

query I rowsort
SELECT + 78 * + 75 * NULLIF ( ( + - 56 ), 27 ) AS col2
----
-327600

query I rowsort
SELECT + NULLIF ( - 86, - + 41 ) col2
----
-86

query I rowsort
SELECT + NULLIF ( - 59, + 50 )
----
-59

query I rowsort
SELECT NULLIF ( - - 84, - + 1 + - + 36 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-8082
SELECT ALL + SUM( DISTINCT 86 ) AS col0, + 26 AS col0
----
86
26

skipif mysql # not compatible
query II rowsort label-8082
SELECT ALL + SUM ( DISTINCT 86 ) AS col0, + 26 AS col0
----
86
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT + 31 DIV - + 71 * 81 * 42
----
0

skipif mysql # not compatible
query I rowsort label-8083
SELECT + 31 / - + 71 * 81 * 42
----
0

query I rowsort
SELECT ALL - 36 * 57 - - - 15
----
-2067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8085
SELECT 25 DIV - 70 * - + 38 + 93 - CAST( - COUNT( * ) AS SIGNED ) + - 39 + 13 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8085
SELECT 25 / - 70 * - + 38 + 93 - CAST ( - COUNT ( * ) AS INTEGER ) + - 39 + 13 AS col2
----
68

query I rowsort
SELECT - + 50 + - + 62
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8087
SELECT - - 75 * 92 + + 99 + - - CAST( NULL AS SIGNED ) + COUNT( * ) - + COUNT( * ) / + - 34 * - 60 * MIN( DISTINCT 21 * 16 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT - - 75 * 92 + + 99 + - - CAST ( NULL AS INTEGER ) + COUNT ( * ) - + COUNT ( * ) / + - 34 * - 60 * MIN ( DISTINCT 21 * 16 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8088
SELECT ALL + CASE 77 WHEN + 3 + + CASE + - 57 WHEN - 92 * + - 24 / 12 + + 96 THEN 55 + 18 * + CAST( NULL AS SIGNED ) WHEN + 92 - MAX( DISTINCT 29 + + 14 ) THEN NULL WHEN 76 + 10 THEN + COUNT( ALL 95 ) * + 65 ELSE NULL END * COUNT( * ) THEN NULL ELSE MIN( DISTINCT - 11 ) END
----
-11

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL + CASE 77 WHEN + 3 + + CASE + - 57 WHEN - 92 * + - 24 / 12 + + 96 THEN 55 + 18 * + CAST ( NULL AS INTEGER ) WHEN + 92 - MAX ( DISTINCT 29 + + 14 ) THEN NULL WHEN 76 + 10 THEN + COUNT ( ALL 95 ) * + 65 ELSE NULL END * COUNT ( * ) THEN NULL ELSE MIN ( DISTINCT - 11 ) END
----
-11

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8090
SELECT - + 1 * - 39 + + 44 + - 88 - CAST( + - CAST( 99 AS SIGNED ) AS SIGNED ) col0
----
94

skipif mysql # not compatible
query I rowsort label-8090
SELECT - + 1 * - 39 + + 44 + - 88 - CAST ( + - CAST ( 99 AS INTEGER ) AS INTEGER ) col0
----
94

query I rowsort
SELECT + - 84 * 30 + - 33 - - 88
----
-2465

query I rowsort
SELECT - 32 * - 13 + 47
----
463

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8093
SELECT DISTINCT - 87 * - 44 - + CAST( NULL AS DECIMAL ) * + MIN( - 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT - 87 * - 44 - + CAST ( NULL AS REAL ) * + MIN ( - 78 ) AS col2
----
NULL

query I rowsort
SELECT ALL 36 * + 80 + + 12 * + - 3 - - 23 AS col0
----
2867

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT DISTINCT + COALESCE ( - + 20, + COUNT( * ), - 10 + - MAX( ALL 23 ) ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT + COALESCE ( - + 20, + COUNT ( * ), - 10 + - MAX ( ALL 23 ) ) AS col2
----
-20

query I rowsort
SELECT ALL - - CASE 40 WHEN + 2 THEN + 18 * 1 / - CASE - 7 WHEN 98 * + 33 THEN + 71 ELSE NULL END + 28 END * 41 col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8098
SELECT - 22 - - - CAST( NULL AS SIGNED ) + + - 18 + - 8 / 71 + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT - 22 - - - CAST ( NULL AS INTEGER ) + + - 18 + - 8 / 71 + - 78
----
NULL

query I rowsort
SELECT ALL + ( + - 95 ) * ( - + 84 ) AS col0
----
7980

query I rowsort
SELECT ALL + - 44 + 67 + 8
----
31

query III rowsort
SELECT ALL - ( - 98 ), - 60 AS col1, - + 79 * - - 71 + - 67 AS col1
----
98
-60
-5676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8102
SELECT DISTINCT 79 + + 66 - + CAST( + 91 AS SIGNED ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT 79 + + 66 - + CAST ( + 91 AS INTEGER ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT DISTINCT + 35 + 83 * CASE - COUNT( * ) WHEN ( + 70 ) * + 4 * 26 THEN NULL WHEN 86 THEN NULL ELSE 2 END col0
----
201

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT + 35 + 83 * CASE - COUNT ( * ) WHEN ( + 70 ) * + 4 * 26 THEN NULL WHEN 86 THEN NULL ELSE 2 END col0
----
201

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8104
SELECT - 98 * + 43, - CAST( NULL AS DECIMAL ) / - + 85 + + 52 AS col2
----
-4214
NULL

skipif mysql # not compatible
query II rowsort label-8104
SELECT - 98 * + 43, - CAST ( NULL AS REAL ) / - + 85 + + 52 AS col2
----
-4214
NULL

query I rowsort
SELECT + 81 + + + ( - ( 39 ) ) AS col0
----
42

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

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

query II rowsort
SELECT 36 col2, 8
----
36
8

query I rowsort
SELECT ALL 39 + - + 44 + 16 AS col1
----
11

query I rowsort
SELECT - 45 * 69
----
-3105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8110
SELECT ALL ( + CASE - 71 WHEN - 59 + - 85 + 17 THEN NULL ELSE + CASE - - COUNT( * ) WHEN - 2 THEN + MIN( ALL + 94 ) * 41 WHEN - 14 THEN NULL ELSE NULL END * + CAST( + 16 + ( COALESCE ( + ( - 41 ), + 69, 76 * + 0 + + 32, 0 + 57 ) ) AS SIGNED ) + 56 END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL ( + CASE - 71 WHEN - 59 + - 85 + 17 THEN NULL ELSE + CASE - - COUNT ( * ) WHEN - 2 THEN + MIN ( ALL + 94 ) * 41 WHEN - 14 THEN NULL ELSE NULL END * + CAST ( + 16 + ( COALESCE ( + ( - 41 ), + 69, 76 * + 0 + + 32, 0 + 57 ) ) AS INTEGER ) + 56 END ) col2
----
NULL

query II rowsort
SELECT ALL 70 AS col0, - 82
----
70
-82

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

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

query I rowsort
SELECT ALL - 42 - - + 61 - - + 6 AS col2
----
25

query I rowsort
SELECT + 15 * - 71 * 59 AS col1
----
-62835

query II rowsort
SELECT 68 AS col0, 6 AS col1
----
68
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8116
SELECT ALL CASE - + 7 WHEN 46 THEN NULL WHEN - - 17 THEN 2 END * 42 * + CAST( - 35 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL CASE - + 7 WHEN 46 THEN NULL WHEN - - 17 THEN 2 END * 42 * + CAST ( - 35 AS INTEGER )
----
NULL

query I rowsort
SELECT - 61 + + 76
----
15

query I rowsort
SELECT + 79 * + - 20 AS col2
----
-1580

query I rowsort
SELECT + 37 + + + 77
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8120
SELECT - CAST( 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-8120
SELECT - CAST ( 29 AS INTEGER )
----
-29

query I rowsort
SELECT + 55 * 20 AS col1
----
1100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT DISTINCT + SUM( + + 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT + SUM ( + + 94 ) AS col2
----
94

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8125
SELECT 80 DIV - - ( + - MIN( DISTINCT 61 ) ) + - 0 + + SUM( + + 12 ) + 57 DIV 85 * 61
----
11

skipif mysql # not compatible
query I rowsort label-8125
SELECT 80 / - - ( + - MIN ( DISTINCT 61 ) ) + - 0 + + SUM ( + + 12 ) + 57 / 85 * 61
----
11

query II rowsort
SELECT ALL + 91, + 3 col0
----
91
3

query I rowsort
SELECT + 86 * + ( + + 33 ) * 49
----
139062

query II rowsort
SELECT DISTINCT + 78 col1, 61
----
78
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL MAX( ALL + - 52 ) * - - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL MAX ( ALL + - 52 ) * - - COUNT ( * )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8131
SELECT + + 19 * + + ( - 1 ) * - + CASE + 18 WHEN + COUNT( * ) * 57 * - 49 / + COUNT( * ) + + 75 THEN 36 * 21 - 78 END - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT + + 19 * + + ( - 1 ) * - + CASE + 18 WHEN + COUNT ( * ) * 57 * - 49 / + COUNT ( * ) + + 75 THEN 36 * 21 - 78 END - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 57 + - - 22
----
79

query I rowsort
SELECT + - 95 * + 79 - - + NULLIF ( + 87, - 67 ) AS col2
----
-7418

onlyif mysql # DIV for integer division: 
query II rowsort label-8134
SELECT DISTINCT 46 DIV - 5 + 88, NULLIF ( + 49, 59 DIV - + 90 ) + - 96 + 62 AS col0
----
79
15

skipif mysql # not compatible
query II rowsort label-8134
SELECT DISTINCT 46 / - 5 + 88, NULLIF ( + 49, 59 / - + 90 ) + - 96 + 62 AS col0
----
79
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8135
SELECT - 68, NULLIF ( + MAX( - 90 ), - 44 ) AS col2
----
-68
-90

skipif mysql # not compatible
query II rowsort label-8135
SELECT - 68, NULLIF ( + MAX ( - 90 ), - 44 ) AS col2
----
-68
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-8136
SELECT - + 64 DIV COALESCE ( - + 69, + 4 * - 8 + - 88, 48 ) DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-8136
SELECT - + 64 / COALESCE ( - + 69, + 4 * - 8 + - 88, 48 ) / 76
----
0

query I rowsort
SELECT + COALESCE ( 6, 51, - 5 ) col0
----
6

query I rowsort
SELECT DISTINCT 55 * + + 98 + - 77 AS col2
----
5313

query I rowsort
SELECT + 38 * + 11 + + ( + 36 ) AS col1
----
454

query I rowsort
SELECT DISTINCT + CASE 15 WHEN - NULLIF ( - 80, + - 27 / + - 15 ) THEN NULL ELSE - ( 48 ) END AS col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT ALL + 29 * 51 + - CASE WHEN NOT NULL NOT BETWEEN 95 AND + - 59 THEN - 73 ELSE + 28 * COALESCE ( 92, 5 * + 34 + + 77, 33, COALESCE ( CASE + 66 WHEN - 75 THEN 71 * - 55 + CAST( + 65 AS SIGNED ) END, - 8 ) * 53 ) END
----
-1097

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL + 29 * 51 + - CASE WHEN NOT NULL NOT BETWEEN 95 AND + - 59 THEN - 73 ELSE + 28 * COALESCE ( 92, 5 * + 34 + + 77, 33, COALESCE ( CASE + 66 WHEN - 75 THEN 71 * - 55 + CAST ( + 65 AS INTEGER ) END, - 8 ) * 53 ) END
----
-1097

query I rowsort
SELECT ALL + 94 * - 76 + + ( - - 63 ) col2
----
-7081

onlyif mysql # aggregate syntax: 
query II rowsort label-8143
SELECT + 53 AS col0, - SUM( 23 ) AS col2
----
53
-23

skipif mysql # not compatible
query II rowsort label-8143
SELECT + 53 AS col0, - SUM ( 23 ) AS col2
----
53
-23

query I rowsort
SELECT + CASE AVG ( - 52 ) WHEN + ( 91 ) THEN - 29 WHEN + 76 + + 73 - - 29 THEN + 19 ELSE NULL END + 53 col0
----
NULL

query I rowsort
SELECT + 0 * 63 - + ( - 21 ) AS col0
----
21

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

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

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

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

query I rowsort
SELECT 9 + 42 + + 77 * - 89 * + 39
----
-267216

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

skipif mysql # not compatible
query I rowsort label-8149
SELECT + 51 / + ( COUNT ( * ) ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT + ( - 0 ) * + + NULLIF ( + 48, - + 17 ) + + - MIN( - + 40 ) + 34 + + 31 col0
----
105

skipif mysql # not compatible
query I rowsort label-8150
SELECT + ( - 0 ) * + + NULLIF ( + 48, - + 17 ) + + - MIN ( - + 40 ) + 34 + + 31 col0
----
105

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8152
SELECT 84 + - + COUNT( * ) AS col2, - 11 DIV 85
----
83
0

skipif mysql # not compatible
query II rowsort label-8152
SELECT 84 + - + COUNT ( * ) AS col2, - 11 / 85
----
83
0

query I rowsort
SELECT ALL + 10 * - 89 AS col2
----
-890

query I rowsort
SELECT DISTINCT + 28 * 70 * + + 17 AS col1
----
33320

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT DISTINCT - 65 * + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT - 65 * + COUNT ( * )
----
-65

query I rowsort
SELECT 22 + + 70 * 8 col2
----
582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8157
SELECT 28 + - 53 / COUNT( * ) - 80 + - 16 + - ( + ( + CASE + CAST( 93 AS SIGNED ) WHEN 85 + CASE + COUNT( * ) + + 95 WHEN - 34 THEN NULL WHEN 37 THEN NULL ELSE + 77 END THEN + 26 + - CAST( NULL AS SIGNED ) ELSE NULL END ) ) + - 12 * 95 * + 78 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8157
SELECT 28 + - 53 / COUNT ( * ) - 80 + - 16 + - ( + ( + CASE + CAST ( 93 AS INTEGER ) WHEN 85 + CASE + COUNT ( * ) + + 95 WHEN - 34 THEN NULL WHEN 37 THEN NULL ELSE + 77 END THEN + 26 + - CAST ( NULL AS INTEGER ) ELSE NULL END ) ) + - 12 * 95 * + 78 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT COUNT( * ) + + COUNT( * ) + - - COUNT( * ) * MIN( DISTINCT + 56 )
----
58

skipif mysql # not compatible
query I rowsort label-8158
SELECT COUNT ( * ) + + COUNT ( * ) + - - COUNT ( * ) * MIN ( DISTINCT + 56 )
----
58

query I rowsort
SELECT 47 + - 2 - + 17
----
28

query I rowsort
SELECT 18 * + - 48 AS col2
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT 54 * - - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-8161
SELECT 54 * - - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8162
SELECT COUNT( * ) + - 81 AS col2, - COUNT( * ) DIV + + 56 + - 52
----
-80
-52

skipif mysql # not compatible
query II rowsort label-8162
SELECT COUNT ( * ) + - 81 AS col2, - COUNT ( * ) / + + 56 + - 52
----
-80
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8163
SELECT ALL 19 * - 91, CAST( - 15 AS SIGNED ) AS col2
----
-1729
-15

skipif mysql # not compatible
query II rowsort label-8163
SELECT ALL 19 * - 91, CAST ( - 15 AS INTEGER ) AS col2
----
-1729
-15

query I rowsort
SELECT 44 * - 12 AS col1
----
-528

query I rowsort
SELECT DISTINCT - 3 + 40
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT DISTINCT + COUNT( - + 48 ) * - + 30 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT + COUNT ( - + 48 ) * - + 30 AS col1
----
-30

query I rowsort
SELECT 65 * + 14
----
910

query I rowsort
SELECT ALL - 53 * + - 30 AS col0
----
1590

query I rowsort
SELECT 83 + 18 AS col0
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-8170
SELECT COUNT( * ) + - - 28, 54 * ( + ( MAX( - ( - - 73 ) ) ) ) + + 70 col1
----
29
-3872

skipif mysql # not compatible
query II rowsort label-8170
SELECT COUNT ( * ) + - - 28, 54 * ( + ( MAX ( - ( - - 73 ) ) ) ) + + 70 col1
----
29
-3872

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT CASE ( 75 ) WHEN - COUNT( * ) THEN 13 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT CASE ( 75 ) WHEN - COUNT ( * ) THEN 13 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 89 + 16 AS col1
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8173
SELECT - CASE 66 WHEN - 11 + + CAST( NULL AS SIGNED ) + + - NULLIF ( - COUNT( * ), - ( - 92 ) * - COALESCE ( COUNT( * ), CAST( NULL AS SIGNED ) + ( 29 ) ) + + 56 ) THEN NULL WHEN 92 * - 43 THEN CAST( NULL AS DECIMAL ) * + 73 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8173
SELECT - CASE 66 WHEN - 11 + + CAST ( NULL AS INTEGER ) + + - NULLIF ( - COUNT ( * ), - ( - 92 ) * - COALESCE ( COUNT ( * ), CAST ( NULL AS INTEGER ) + ( 29 ) ) + + 56 ) THEN NULL WHEN 92 * - 43 THEN CAST ( NULL AS REAL ) * + 73 END AS col2
----
NULL

query I rowsort
SELECT - ( 18 ) + CASE + 91 WHEN + 26 + - + 22 + - + 15 + 62 THEN + 52 - + 96 WHEN 0 THEN NULL END + - 29 * 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL + COUNT( * ) + + 35 + + - 64 * - 90 * + COUNT( DISTINCT - - 29 ) * - 63 + + ( - 97 ) * 54
----
-368082

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + COUNT ( * ) + + 35 + + - 64 * - 90 * + COUNT ( DISTINCT - - 29 ) * - 63 + + ( - 97 ) * 54
----
-368082

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8176
SELECT ALL CASE + 60 WHEN - ( - COUNT( * ) ) THEN NULL WHEN 69 * - - 52 THEN - 9 ELSE + 38 * + + COUNT( * ) - COUNT( * ) + - 76 * 3 END + + 32 DIV + 77
----
-191

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL CASE + 60 WHEN - ( - COUNT ( * ) ) THEN NULL WHEN 69 * - - 52 THEN - 9 ELSE + 38 * + + COUNT ( * ) - COUNT ( * ) + - 76 * 3 END + + 32 / + 77
----
-191

query I rowsort
SELECT 31 * - - 22
----
682

onlyif mysql # aggregate syntax: 
query II rowsort label-8178
SELECT + + MAX( DISTINCT + + 55 ) AS col2, + COUNT( * ) AS col1
----
55
1

skipif mysql # not compatible
query II rowsort label-8178
SELECT + + MAX ( DISTINCT + + 55 ) AS col2, + COUNT ( * ) AS col1
----
55
1

query II rowsort
SELECT + ( - 36 ), 40 col0
----
-36
40

query I rowsort
SELECT - 73 * 1 * + 95 + + 71 + + CASE - - 66 WHEN + + 98 THEN - + 58 + + 88 + - ( - 82 ) WHEN - 22 * 92 THEN NULL ELSE NULL END / - 45 AS col2
----
NULL

query I rowsort
SELECT + 40 * - 50
----
-2000

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT DISTINCT + ( - COUNT( * ) ) - + 73 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT + ( - COUNT ( * ) ) - + 73 AS col2
----
-74

query I rowsort
SELECT ALL 10 * - 39
----
-390

onlyif mysql # aggregate syntax: 
query II rowsort label-8184
SELECT DISTINCT - 35 col1, + 29 * - 86 + - COUNT( * ) AS col2
----
-35
-2495

skipif mysql # not compatible
query II rowsort label-8184
SELECT DISTINCT - 35 col1, + 29 * - 86 + - COUNT ( * ) AS col2
----
-35
-2495

query I rowsort
SELECT 22 * + - 82 AS col2
----
-1804

onlyif mysql # DIV for integer division: 
query I rowsort label-8186
SELECT DISTINCT + 97 DIV + 75
----
1

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT + 97 / + 75
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT ( - COUNT( * ) ) * + + 88
----
-88

skipif mysql # not compatible
query I rowsort label-8187
SELECT ( - COUNT ( * ) ) * + + 88
----
-88

query I rowsort
SELECT 47 * - 87 AS col1
----
-4089

query I rowsort
SELECT 21 * 59 AS col2
----
1239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8190
SELECT DISTINCT + CAST( - + 20 AS SIGNED ) * + - 39 + - + 14 * + ( - + 94 ) AS col2
----
2096

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT + CAST ( - + 20 AS INTEGER ) * + - 39 + - + 14 * + ( - + 94 ) AS col2
----
2096

query I rowsort
SELECT 37 * 80 AS col1
----
2960

query I rowsort
SELECT ALL + 80 * 2 AS col2
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT ALL - 89 + CASE ( NULLIF ( ( COUNT( * ) ), NULLIF ( - NULLIF ( - COALESCE ( + + 78, 81 * 47 ), + 11 * 66 + COUNT( 68 ) ), + COUNT( * ) + 69 ) + - 32 ) ) WHEN 59 * 45 + - 11 * 80 THEN - 27 * 74 WHEN MIN( DISTINCT - 76 ) THEN - ( 34 ) ELSE 81 END - 59 * MIN( DISTINCT - 40 - + 62 )
----
6010

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL - 89 + CASE ( NULLIF ( ( COUNT ( * ) ), NULLIF ( - NULLIF ( - COALESCE ( + + 78, 81 * 47 ), + 11 * 66 + COUNT ( 68 ) ), + COUNT ( * ) + 69 ) + - 32 ) ) WHEN 59 * 45 + - 11 * 80 THEN - 27 * 74 WHEN MIN ( DISTINCT - 76 ) THEN - ( 34 ) ELSE 81 END - 59 * MIN ( DISTINCT - 40 - + 62 )
----
6010

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT 47 * + + 93 * - COUNT( DISTINCT - 19 ) col0
----
-4371

skipif mysql # not compatible
query I rowsort label-8194
SELECT 47 * + + 93 * - COUNT ( DISTINCT - 19 ) col0
----
-4371

query I rowsort
SELECT DISTINCT - 8 * - 62 AS col1
----
496

query II rowsort
SELECT 27 + - - ( + + 62 ), 87 * + 30 AS col1
----
89
2610

query I rowsort
SELECT 41 + 50 AS col0
----
91

query I rowsort
SELECT ALL - - 42 + - 98 AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8199
SELECT ALL - MIN( DISTINCT CASE + ( + + CAST( 3 AS SIGNED ) ) WHEN 49 THEN 51 * 78 WHEN - 25 + - 69 + + 62 * 1 THEN NULL END ) * 40 + + 2 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL - MIN ( DISTINCT CASE + ( + + CAST ( 3 AS INTEGER ) ) WHEN 49 THEN 51 * 78 WHEN - 25 + - 69 + + 62 * 1 THEN NULL END ) * 40 + + 2 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8200
SELECT + + 57 * + 75 + + 40 * + NULLIF ( - - 32, CAST( NULL AS SIGNED ) * - 35 * - + 68 * + COUNT( * ) )
----
5555

skipif mysql # not compatible
query I rowsort label-8200
SELECT + + 57 * + 75 + + 40 * + NULLIF ( - - 32, CAST ( NULL AS INTEGER ) * - 35 * - + 68 * + COUNT ( * ) )
----
5555

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL COUNT( * ) * - 33 col0
----
-33

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL COUNT ( * ) * - 33 col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8202
SELECT + COUNT( * ) col1, - ( - 41 ) + 80 + + - 86 AS col1
----
1
35

skipif mysql # not compatible
query II rowsort label-8202
SELECT + COUNT ( * ) col1, - ( - 41 ) + 80 + + - 86 AS col1
----
1
35

query I rowsort
SELECT + ( + - 58 ) AS col0
----
-58

query I rowsort
SELECT ALL + + NULLIF ( - 98, + + 64 ) * + + 24 * 62
----
-145824

query I rowsort
SELECT 17 * - - 16 + + NULLIF ( - + 79, + 49 ) AS col1
----
193

query II rowsort
SELECT + 15 AS col1, 78
----
15
78

query I rowsort
SELECT DISTINCT + 48 * + - 14 AS col0
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT - 71 * + + 71 - + 41 * - 6 * + SUM( 86 ) + - - COALESCE ( + + ( MIN( DISTINCT 87 ) ), - 41 )
----
16202

skipif mysql # not compatible
query I rowsort label-8208
SELECT - 71 * + + 71 - + 41 * - 6 * + SUM ( 86 ) + - - COALESCE ( + + ( MIN ( DISTINCT 87 ) ), - 41 )
----
16202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8209
SELECT - CAST( + ( 56 ) AS SIGNED ) * - 82 AS col1
----
4592

skipif mysql # not compatible
query I rowsort label-8209
SELECT - CAST ( + ( 56 ) AS INTEGER ) * - 82 AS col1
----
4592

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT ALL - COUNT( DISTINCT - - 76 ) * - 5 * + 3 - + 72
----
-57

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL - COUNT ( DISTINCT - - 76 ) * - 5 * + 3 - + 72
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL - COUNT( * ) * + - 22
----
22

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL - COUNT ( * ) * + - 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT DISTINCT + ( - MAX( - - 99 ) )
----
-99

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT + ( - MAX ( - - 99 ) )
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8213
SELECT ALL 30 DIV + 89 * - ( - 3 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL 30 / + 89 * - ( - 3 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8214
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) + + COALESCE ( - 17, ( 24 ) * - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + COALESCE ( - 17, ( 24 ) * - COUNT ( * ) ) AS col0
----
NULL

query II rowsort
SELECT ALL + 57 col1, NULLIF ( + 30, + 0 * + 80 )
----
57
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT 11 * COUNT( * ) * - - 6 * + 35 * 44 - CASE + 60 WHEN + 34 * - 50 THEN - MAX( + - 62 ) + - 48 * COUNT( * ) WHEN + 21 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8216
SELECT 11 * COUNT ( * ) * - - 6 * + 35 * 44 - CASE + 60 WHEN + 34 * - 50 THEN - MAX ( + - 62 ) + - 48 * COUNT ( * ) WHEN + 21 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 51 * + - 41 AS col2
----
-2091

query I rowsort
SELECT + 62 + - 84 AS col0
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8219
SELECT 20 * 37 * - CAST( NULL AS DECIMAL ) + - - 49 * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT 20 * 37 * - CAST ( NULL AS REAL ) + - - 49 * - 87
----
NULL

query II rowsort
SELECT ALL 21 AS col0, + 45 - + + 17
----
21
28

query I rowsort
SELECT ALL NULLIF ( - 15, - - 0 ) + + 7
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8222
SELECT DISTINCT 79 + - - CAST( NULL AS SIGNED ) * COUNT( * ) * - + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT 79 + - - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - + 63
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8223
SELECT - NULLIF ( 17, + + 70 + 48 ) AS col2, 38 DIV + 92 AS col0
----
-17
0

skipif mysql # not compatible
query II rowsort label-8223
SELECT - NULLIF ( 17, + + 70 + 48 ) AS col2, 38 / + 92 AS col0
----
-17
0

query I rowsort
SELECT ALL 2 + + 86 + 10 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT + MAX( ALL - 99 ) + + 8
----
-91

skipif mysql # not compatible
query I rowsort label-8225
SELECT + MAX ( ALL - 99 ) + + 8
----
-91

query I rowsort
SELECT ALL + 48 + + + 92 * + 63 AS col0
----
5844

query I rowsort
SELECT - 78 + 7 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT DISTINCT 1 + - COUNT( * ) + - 98 + 5
----
-93

skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT 1 + - COUNT ( * ) + - 98 + 5
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT ALL 60 DIV ( - - ( - 44 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL 60 / ( - - ( - 44 ) ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8230
SELECT - 3 AS col0, 75 DIV + 81
----
-3
0

skipif mysql # not compatible
query II rowsort label-8230
SELECT - 3 AS col0, 75 / + 81
----
-3
0

query II rowsort
SELECT - 93 + - 81 AS col2, + 76 * 94 col2
----
-174
7144

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT ALL + CASE 48 WHEN + 93 + - - 1 + - 55 + + 3 * + + COUNT( * ) - + - 44 * + ( - - ( + 14 ) ) + - MIN( 98 + + 17 ) THEN NULL WHEN - 82 * + 48 + - COUNT( 64 ) THEN NULL ELSE - 71 * 4 END + + 87 AS col0
----
-197

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL + CASE 48 WHEN + 93 + - - 1 + - 55 + + 3 * + + COUNT ( * ) - + - 44 * + ( - - ( + 14 ) ) + - MIN ( 98 + + 17 ) THEN NULL WHEN - 82 * + 48 + - COUNT ( 64 ) THEN NULL ELSE - 71 * 4 END + + 87 AS col0
----
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT DISTINCT + SUM( - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT + SUM ( - 37 ) AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8234
SELECT DISTINCT + 35 + + - CASE - 60 WHEN + - 89 THEN + ( 30 ) WHEN 27 * - 68 / + CASE + + COUNT( * ) WHEN + + NULLIF ( 74, - CASE + 83 WHEN + 13 * - 91 THEN COALESCE ( - 87, 62, 17 - 46 ) ELSE - 13 END + + 32 * 30 ) + 3 THEN + CAST( 93 AS DECIMAL ) END THEN - 90 END * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT + 35 + + - CASE - 60 WHEN + - 89 THEN + ( 30 ) WHEN 27 * - 68 / + CASE + + COUNT ( * ) WHEN + + NULLIF ( 74, - CASE + 83 WHEN + 13 * - 91 THEN COALESCE ( - 87, 62, 17 - 46 ) ELSE - 13 END + + 32 * 30 ) + 3 THEN + CAST ( 93 AS REAL ) END THEN - 90 END * + 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8235
SELECT ALL - COUNT( ALL + + 55 ) * 85 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL - COUNT ( ALL + + 55 ) * 85 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + + 74, - - 95 + + 43 / 24 ) * + 21 + 20
----
1574

query I rowsort
SELECT - - 7 * - 15 + - 36 AS col0
----
-141

query I rowsort
SELECT ALL - 1 + 1 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT DISTINCT COUNT( * ) * 3 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT COUNT ( * ) * 3 AS col0
----
3

query I rowsort
SELECT ALL - 21 - 69
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL + 52 * + SUM( DISTINCT - + 90 ) AS col0
----
-4680

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL + 52 * + SUM ( DISTINCT - + 90 ) AS col0
----
-4680

query I rowsort
SELECT + + 46 * - 1 AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8243
SELECT - 95 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8243
SELECT - 95 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 2 AS col2, - 26
----
2
-26

query II rowsort
SELECT ALL + - 78 AS col0, - 44 AS col0
----
-78
-44

query II rowsort
SELECT + 43 AS col0, 57 * - 26 col0
----
43
-1482

query I rowsort
SELECT - 43 * - - 74 + + + 96 + 93 AS col1
----
-2993

query II rowsort
SELECT ALL + + 31 AS col2, 73 + - + 0 AS col2
----
31
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT DISTINCT + MIN( DISTINCT + 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT + MIN ( DISTINCT + 37 ) AS col2
----
37

query II rowsort
SELECT ALL + + 15 AS col2, 95
----
15
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8251
SELECT + CAST( NULL AS SIGNED ) / - 7 + + 95 + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8251
SELECT + CAST ( NULL AS INTEGER ) / - 7 + + 95 + 21
----
NULL

query I rowsort
SELECT DISTINCT + - 63 col0
----
-63

query I rowsort
SELECT DISTINCT 37 * 95 AS col0
----
3515

onlyif mysql # DIV for integer division: 
query II rowsort label-8254
SELECT DISTINCT - 6 * 83 DIV 15, + 57 + 20 col2
----
-33
77

skipif mysql # not compatible
query II rowsort label-8254
SELECT DISTINCT - 6 * 83 / 15, + 57 + 20 col2
----
-33
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT ALL + CASE 52 WHEN - 17 THEN - COALESCE ( - ( + 83 ), ( SUM( ( 76 ) ) ) ) WHEN + - SUM( 13 ) THEN NULL WHEN - 77 + + 40 THEN + 58 ELSE + COUNT( * ) + 75 END
----
76

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL + CASE 52 WHEN - 17 THEN - COALESCE ( - ( + 83 ), ( SUM ( ( 76 ) ) ) ) WHEN + - SUM ( 13 ) THEN NULL WHEN - 77 + + 40 THEN + 58 ELSE + COUNT ( * ) + 75 END
----
76

query I rowsort
SELECT DISTINCT - 97 * - ( - 42 ) * - 65 + + ( 30 )
----
264840

query I rowsort
SELECT + NULLIF ( 36, + AVG ( DISTINCT - 40 ) ) AS col1
----
36

query I rowsort
SELECT 16 * 45 + + 7
----
727

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8259
SELECT ALL - CASE + CAST( - + 37 AS SIGNED ) WHEN + 22 THEN NULL ELSE - 11 + + ( + - 37 ) END * - + 41 - + 63
----
-2031

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL - CASE + CAST ( - + 37 AS INTEGER ) WHEN + 22 THEN NULL ELSE - 11 + + ( + - 37 ) END * - + 41 - + 63
----
-2031

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8260
SELECT ALL + ( - 71 ) AS col0, - 31 * - + SUM( + 92 ) * CASE + + NULLIF ( + COUNT( + + 35 ), - + 5 + COALESCE ( - 62, ( 2 ) / - 96 ) ) WHEN + 24 THEN 93 ELSE 83 * + 31 + + 45 / CAST( NULL AS SIGNED ) END * 2 + COUNT( * )
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-8260
SELECT ALL + ( - 71 ) AS col0, - 31 * - + SUM ( + 92 ) * CASE + + NULLIF ( + COUNT ( + + 35 ), - + 5 + COALESCE ( - 62, ( 2 ) / - 96 ) ) WHEN + 24 THEN 93 ELSE 83 * + 31 + + 45 / CAST ( NULL AS INTEGER ) END * 2 + COUNT ( * )
----
-71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT + COUNT( * ) + 93 + NULLIF ( - 2, - - 57 ) * + 38 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8261
SELECT + COUNT ( * ) + 93 + NULLIF ( - 2, - - 57 ) * + 38 AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8262
SELECT - 32 * - 88 col0, COUNT( * ) + 40
----
2816
41

skipif mysql # not compatible
query II rowsort label-8262
SELECT - 32 * - 88 col0, COUNT ( * ) + 40
----
2816
41

query I rowsort
SELECT ALL 72 * 7 + - 21
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT + CASE MIN( 63 ) WHEN + - 7 / + + 73 THEN 3 WHEN 60 * + COUNT( * ) + 95 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8264
SELECT + CASE MIN ( 63 ) WHEN + - 7 / + + 73 THEN 3 WHEN 60 * + COUNT ( * ) + 95 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL - 46 * COUNT( * ) + + ( - 9 ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL - 46 * COUNT ( * ) + + ( - 9 ) col2
----
-55

query I rowsort
SELECT DISTINCT - 80 * + + 66 + + + 6 col2
----
-5274

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT ALL 16 * + 0 + - - MAX( + 46 ) + + 92 * + + 47 * 86 AS col2
----
371910

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL 16 * + 0 + - - MAX ( + 46 ) + + 92 * + + 47 * 86 AS col2
----
371910

onlyif mysql # aggregate syntax: 
query II rowsort label-8268
SELECT MAX( ALL 1 ) AS col0, - 79 + - + 60 * 96
----
1
-5839

skipif mysql # not compatible
query II rowsort label-8268
SELECT MAX ( ALL 1 ) AS col0, - 79 + - + 60 * 96
----
1
-5839

query I rowsort
SELECT DISTINCT 84 * - 55 + 96
----
-4524

query I rowsort
SELECT ALL 60 + NULLIF ( + 61, 12 )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT MIN( 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-8271
SELECT MIN ( 92 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT COUNT( 84 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8272
SELECT COUNT ( 84 ) AS col0
----
1

query I rowsort
SELECT + NULLIF ( + - 86, - - 35 ) * - 23 * 33 AS col2
----
65274

query I rowsort
SELECT - ( NULLIF ( - 93, + 46 + + 36 ) ) col2
----
93

query I rowsort
SELECT ALL - COALESCE ( + 14, + 14 * - 42 * + - ( + 11 ) * + 44, 20 + + 12 ) + - 94
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ALL - ( + MAX( DISTINCT 22 ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL - ( + MAX ( DISTINCT 22 ) ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-8277
SELECT DISTINCT 22 * COUNT( * ), COUNT( * ) AS col1
----
22
1

skipif mysql # not compatible
query II rowsort label-8277
SELECT DISTINCT 22 * COUNT ( * ), COUNT ( * ) AS col1
----
22
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8278
SELECT ALL + - CASE - - 31 WHEN - + SUM( DISTINCT 46 ) THEN - + 76 / - + COUNT( * ) * + - 90 * - 75 - - ( CAST( NULL AS SIGNED ) ) / + 93 END - CAST( NULL AS SIGNED ) - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL + - CASE - - 31 WHEN - + SUM ( DISTINCT 46 ) THEN - + 76 / - + COUNT ( * ) * + - 90 * - 75 - - ( CAST ( NULL AS INTEGER ) ) / + 93 END - CAST ( NULL AS INTEGER ) - 25
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8279
SELECT ALL + MAX( + 18 ) col0, - 81 * 19 AS col0
----
18
-1539

skipif mysql # not compatible
query II rowsort label-8279
SELECT ALL + MAX ( + 18 ) col0, - 81 * 19 AS col0
----
18
-1539

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8280
SELECT - 79 - + 61 + CAST( - 62 AS SIGNED ) * - 66 * + 30 * + 73 + - - 80 AS col2, 4 - - + 59 * - 68 + - 17 DIV 47 AS col2
----
8961420
-4008

skipif mysql # not compatible
query II rowsort label-8280
SELECT - 79 - + 61 + CAST ( - 62 AS INTEGER ) * - 66 * + 30 * + 73 + - - 80 AS col2, 4 - - + 59 * - 68 + - 17 / 47 AS col2
----
8961420
-4008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8281
SELECT - MIN( DISTINCT - 18 ) AS col2, - COUNT( * ) + CASE - NULLIF ( - 46, 65 ) WHEN - 18 * + + 65 / - + COUNT( * ) + - - 71 THEN + - 99 WHEN + CAST( COUNT( * ) AS SIGNED ) + - COALESCE ( - 83, COUNT( * ) * 88 ) / + CAST( NULL AS SIGNED ) THEN 72 * - 35 ELSE - 20 END + ( - 66 ) AS col2
----
18
-87

skipif mysql # not compatible
query II rowsort label-8281
SELECT - MIN ( DISTINCT - 18 ) AS col2, - COUNT ( * ) + CASE - NULLIF ( - 46, 65 ) WHEN - 18 * + + 65 / - + COUNT ( * ) + - - 71 THEN + - 99 WHEN + CAST ( COUNT ( * ) AS INTEGER ) + - COALESCE ( - 83, COUNT ( * ) * 88 ) / + CAST ( NULL AS INTEGER ) THEN 72 * - 35 ELSE - 20 END + ( - 66 ) AS col2
----
18
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT ALL COUNT( DISTINCT 38 )
----
1

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL COUNT ( DISTINCT 38 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT DISTINCT 67 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT 67 / + 89
----
0

query I rowsort
SELECT - 37 + - 52 AS col1
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8285
SELECT + COUNT( * ) DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-8285
SELECT + COUNT ( * ) / + 62
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8286
SELECT ALL - + CAST( - 61 AS SIGNED ) * 65 / + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - + CAST ( - 61 AS INTEGER ) * 65 / + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - CASE 65 WHEN 58 THEN + 28 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - + 44, - 72 ) AS col2
----
44

query I rowsort
SELECT - 96 * + 64 AS col0
----
-6144

query I rowsort
SELECT ALL + ( - - 19 ) * + 60 * 30 + - 74 * 34
----
31684

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT + MAX( - + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-8291
SELECT + MAX ( - + 32 )
----
-32

query I rowsort
SELECT 12 * - 66 AS col2
----
-792

query I rowsort
SELECT 47 * - 97 * 63 col1
----
-287217

query I rowsort
SELECT 28 - - 42 AS col0
----
70

query I rowsort
SELECT DISTINCT + 48 + 97
----
145

query II rowsort
SELECT ALL - 67 col2, 49 AS col2
----
-67
49

query I rowsort
SELECT DISTINCT - 48 + 50 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT ALL + CAST( NULL AS SIGNED ) + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL + CAST ( NULL AS INTEGER ) + - 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8299
SELECT 39, CAST( + - NULLIF ( + ( - 87 ), + - 13 ) AS SIGNED ) + + + CASE + - SUM( DISTINCT - 75 ) WHEN ( + 90 ) + - + 73 * + 5 * 9 THEN - 41 + COUNT( * ) WHEN 17 * 79 + 7 / - 36 THEN 28 WHEN 75 THEN NULL ELSE NULL END AS col0
----
39
NULL

skipif mysql # not compatible
query II rowsort label-8299
SELECT 39, CAST ( + - NULLIF ( + ( - 87 ), + - 13 ) AS INTEGER ) + + + CASE + - SUM ( DISTINCT - 75 ) WHEN ( + 90 ) + - + 73 * + 5 * 9 THEN - 41 + COUNT ( * ) WHEN 17 * 79 + 7 / - 36 THEN 28 WHEN 75 THEN NULL ELSE NULL END AS col0
----
39
NULL

query I rowsort
SELECT ALL - ( - - NULLIF ( - 50, + 73 * 8 * + 30 ) ) * ( 74 )
----
3700

query I rowsort
SELECT 27 + 12 col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8302
SELECT 63 - - + COUNT( * ) DIV COALESCE ( + 29, 35 ) * + 67 - 63 + 17
----
17

skipif mysql # not compatible
query I rowsort label-8302
SELECT 63 - - + COUNT ( * ) / COALESCE ( + 29, 35 ) * + 67 - 63 + 17
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8303
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 43 / + COUNT( DISTINCT - + 83 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 43 / + COUNT ( DISTINCT - + 83 ) AS col0
----
NULL

query II rowsort
SELECT 52 AS col0, + 79 AS col1
----
52
79

onlyif mysql # DIV for integer division: 
query II rowsort label-8305
SELECT DISTINCT 88, + 76 DIV + - ( + + 31 ) AS col1
----
88
-2

skipif mysql # not compatible
query II rowsort label-8305
SELECT DISTINCT 88, + 76 / + - ( + + 31 ) AS col1
----
88
-2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8306
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - CAST( NULL AS DECIMAL ) + + 97 * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS REAL ) + + 97 * - 44
----
NULL

query II rowsort
SELECT 33 AS col0, 22 AS col1
----
33
22

query I rowsort
SELECT DISTINCT - ( + + ( 5 ) ) * + + ( 66 ) AS col2
----
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-8309
SELECT ALL 67 DIV - - 98 + 11 DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL 67 / - - 98 + 11 / + 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8310
SELECT ALL + 31, + COUNT( * ) AS col0
----
31
1

skipif mysql # not compatible
query II rowsort label-8310
SELECT ALL + 31, + COUNT ( * ) AS col0
----
31
1

query I rowsort
SELECT 75 * + - 39 * + 46 AS col2
----
-134550

query I rowsort
SELECT + 50 * - 9
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT + MAX( ALL + 35 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-8313
SELECT + MAX ( ALL + 35 ) AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8314
SELECT - COALESCE ( - - 90, + COUNT( * ), + CAST( NULL AS SIGNED ) - - + 0 - + 43 * + - 20, 20 * - 80 * 40 - + + 48 + 37 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-8314
SELECT - COALESCE ( - - 90, + COUNT ( * ), + CAST ( NULL AS INTEGER ) - - + 0 - + 43 * + - 20, 20 * - 80 * 40 - + + 48 + 37 ) AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8315
SELECT + 77 + + + CAST( + MAX( DISTINCT + 30 ) AS SIGNED ) col1, 71
----
107
71

skipif mysql # not compatible
query II rowsort label-8315
SELECT + 77 + + + CAST ( + MAX ( DISTINCT + 30 ) AS INTEGER ) col1, 71
----
107
71

query I rowsort
SELECT ALL - 19 - + 31 AS col0
----
-50

query I rowsort
SELECT - 86 * 33
----
-2838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8318
SELECT DISTINCT ( 2 ) * + COUNT( ALL + + 56 ) * + 53 * - 32 + 95 * COUNT( ALL - 36 ) * + 52 + MAX( 95 ) + - 28 DIV 29 DIV MAX( 22 ) AS col1
----
1643

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT ( 2 ) * + COUNT ( ALL + + 56 ) * + 53 * - 32 + 95 * COUNT ( ALL - 36 ) * + 52 + MAX ( 95 ) + - 28 / 29 / MAX ( 22 ) AS col1
----
1643

onlyif mysql # aggregate syntax: 
query II rowsort label-8319
SELECT DISTINCT - 72 AS col1, - COUNT( * ) * + - 86 * ( + 98 )
----
-72
8428

skipif mysql # not compatible
query II rowsort label-8319
SELECT DISTINCT - 72 AS col1, - COUNT ( * ) * + - 86 * ( + 98 )
----
-72
8428

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT ALL - SUM( 78 ) * - 12 + 8 + + COUNT( * )
----
945

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL - SUM ( 78 ) * - 12 + 8 + + COUNT ( * )
----
945

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8321
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, + 34 * 94
----
NULL
3196

skipif mysql # not compatible
query II rowsort label-8321
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + 34 * 94
----
NULL
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8322
SELECT DISTINCT - COUNT( * ) * 20 + CAST( AVG ( ( - ( - ( + 95 ) ) ) ) AS SIGNED ) AS col2, - 52 + - + ( + - 46 ) - 72
----
75
-78

skipif mysql # not compatible
query II rowsort label-8322
SELECT DISTINCT - COUNT ( * ) * 20 + CAST ( AVG ( ( - ( - ( + 95 ) ) ) ) AS INTEGER ) AS col2, - 52 + - + ( + - 46 ) - 72
----
75
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8323
SELECT - NULLIF ( - 80, + + 8 ) - + CASE + - 57 WHEN + CAST( + COUNT( * ) AS SIGNED ) THEN - 18 * - AVG ( + 15 ) END + - 23 AS col1, - 10
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-8323
SELECT - NULLIF ( - 80, + + 8 ) - + CASE + - 57 WHEN + CAST ( + COUNT ( * ) AS INTEGER ) THEN - 18 * - AVG ( + 15 ) END + - 23 AS col1, - 10
----
NULL
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT - - COALESCE ( - COUNT( DISTINCT 32 ), ( + - 3 ) + - - 76 + + + 1 * - 64, - 4 * - COUNT( ALL - ( - 42 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8324
SELECT - - COALESCE ( - COUNT ( DISTINCT 32 ), ( + - 3 ) + - - 76 + + + 1 * - 64, - 4 * - COUNT ( ALL - ( - 42 ) ) ) AS col1
----
-1

query I rowsort
SELECT - NULLIF ( - 12, + 85 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT MIN( DISTINCT 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-8326
SELECT MIN ( DISTINCT 20 ) AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8327
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) / + ( - NULLIF ( - CAST( - + ( - CASE 13 WHEN - SUM( 40 ) THEN NULL WHEN 74 THEN + 20 / + 59 + - 32 WHEN - 64 + 32 * + 99 THEN NULL END ) AS SIGNED ), CAST( NULL AS DECIMAL ) ) ) * + CASE + COUNT( * ) * - 21 WHEN - 98 THEN 91 * + 85 END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8327
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) / + ( - NULLIF ( - CAST ( - + ( - CASE 13 WHEN - SUM ( 40 ) THEN NULL WHEN 74 THEN + 20 / + 59 + - 32 WHEN - 64 + 32 * + 99 THEN NULL END ) AS INTEGER ), CAST ( NULL AS REAL ) ) ) * + CASE + COUNT ( * ) * - 21 WHEN - 98 THEN 91 * + 85 END AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8328
SELECT - - 0 DIV - 62 + + COUNT( * ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8328
SELECT - - 0 / - 62 + + COUNT ( * ), + COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT + 7 * - 7 * 56 + + COUNT( * ) * + + COUNT( * ) AS col1
----
-2743

skipif mysql # not compatible
query I rowsort label-8329
SELECT + 7 * - 7 * 56 + + COUNT ( * ) * + + COUNT ( * ) AS col1
----
-2743

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT ALL 27 + - CASE 32 WHEN - 26 THEN COUNT( * ) * AVG ( DISTINCT + + 58 ) ELSE NULL END + 49 * + - ( + + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL 27 + - CASE 32 WHEN - 26 THEN COUNT ( * ) * AVG ( DISTINCT + + 58 ) ELSE NULL END + 49 * + - ( + + 92 )
----
NULL

query I rowsort
SELECT 52 * + 33 + 8
----
1724

onlyif mysql # aggregate syntax: 
query II rowsort label-8332
SELECT DISTINCT 39 + 63, COUNT( - + 79 ) AS col0
----
102
1

skipif mysql # not compatible
query II rowsort label-8332
SELECT DISTINCT 39 + 63, COUNT ( - + 79 ) AS col0
----
102
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8333
SELECT ALL SUM( + COALESCE ( + + 95, 94 + - - 69 ) ) DIV 33 * + 69 + 72 * - - 60
----
4458

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL SUM ( + COALESCE ( + + 95, 94 + - - 69 ) ) / 33 * + 69 + 72 * - - 60
----
4458

query I rowsort
SELECT ( - 91 ) + + 70 AS col2
----
-21

query I rowsort
SELECT 18 * + + 87 AS col2
----
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT + MAX( DISTINCT - + 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-8336
SELECT + MAX ( DISTINCT - + 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT + COUNT( + - 13 ) * 7 + - 77 * - + 46 + + NULLIF ( + + 46, - - COUNT( * ) )
----
3595

skipif mysql # not compatible
query I rowsort label-8337
SELECT + COUNT ( + - 13 ) * 7 + - 77 * - + 46 + + NULLIF ( + + 46, - - COUNT ( * ) )
----
3595

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT DISTINCT - COUNT( - - 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT - COUNT ( - - 6 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8339
SELECT ALL - 62 * - 76 * + - CAST( - 19 AS SIGNED ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL - 62 * - 76 * + - CAST ( - 19 AS INTEGER ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT MAX( - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-8340
SELECT MAX ( - 12 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8341
SELECT COUNT( 4 ) * - + CAST( NULL AS SIGNED ) / + NULLIF ( + COUNT( * ), + 91 ) - - 5 * + - MAX( - - 3 ) + - - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT COUNT ( 4 ) * - + CAST ( NULL AS INTEGER ) / + NULLIF ( + COUNT ( * ), + 91 ) - - 5 * + - MAX ( - - 3 ) + - - 5 AS col0
----
NULL

query I rowsort
SELECT 82 + + 49 col0
----
131

query I rowsort
SELECT ALL - NULLIF ( + 19, + COALESCE ( ( 23 ), + 67 ) + - 32 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT - MIN( + + 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT - MIN ( + + 41 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT DISTINCT + 72 - + ( - - COUNT( ALL + NULLIF ( + 75, - 94 * - + 86 + - 2 - + ( - 6 ) * - 65 ) ) ) * + + MIN( ALL - + 77 ) * - 92 + + 64 AS col2
----
-6948

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT + 72 - + ( - - COUNT ( ALL + NULLIF ( + 75, - 94 * - + 86 + - 2 - + ( - 6 ) * - 65 ) ) ) * + + MIN ( ALL - + 77 ) * - 92 + + 64 AS col2
----
-6948

query I rowsort
SELECT DISTINCT - 18 * + 91 * + + 1
----
-1638

query I rowsort
SELECT ALL + 54 - + + 14 - 49
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL - COUNT( * ) * 45
----
-45

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL - COUNT ( * ) * 45
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8349
SELECT ALL - - 4 DIV - + ( + - 2 ) - + 83
----
-81

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL - - 4 / - + ( + - 2 ) - + 83
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT + + COUNT( * ) - - ( CASE + + COUNT( * ) WHEN + 17 THEN NULL ELSE 19 END ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8350
SELECT + + COUNT ( * ) - - ( CASE + + COUNT ( * ) WHEN + 17 THEN NULL ELSE 19 END ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-8351
SELECT - + COUNT( * ) * + COUNT( * ) col2, - 21 + 58 + 19 col0
----
-1
56

skipif mysql # not compatible
query II rowsort label-8351
SELECT - + COUNT ( * ) * + COUNT ( * ) col2, - 21 + 58 + 19 col0
----
-1
56

query I rowsort
SELECT DISTINCT + 81 * - 40 AS col1
----
-3240

onlyif mysql # DIV for integer division: 
query I rowsort label-8353
SELECT - 1 DIV + 95 * 10 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8353
SELECT - 1 / + 95 * 10 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8354
SELECT DISTINCT + - 62 * - - 50, ( - MAX( + - 88 ) ) - + 74 AS col0
----
-3100
14

skipif mysql # not compatible
query II rowsort label-8354
SELECT DISTINCT + - 62 * - - 50, ( - MAX ( + - 88 ) ) - + 74 AS col0
----
-3100
14

query II rowsort
SELECT DISTINCT + - 86 + - 94 col0, 46 col0
----
-180
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8356
SELECT ALL + CASE - + 95 WHEN + 48 THEN - COUNT( * ) + - - 40 * + 26 / - + 94 WHEN 56 * - 47 THEN + + 72 + + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL + CASE - + 95 WHEN + 48 THEN - COUNT ( * ) + - - 40 * + 26 / - + 94 WHEN 56 * - 47 THEN + + 72 + + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT - + 1 * + 71 AS col2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-8358
SELECT DISTINCT - 96 + + + COALESCE ( + 53, ( - 55 ) + + + 72 + + ( - 62 ) ) DIV 39 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8358
SELECT DISTINCT - 96 + + + COALESCE ( + 53, ( - 55 ) + + + 72 + + ( - 62 ) ) / 39 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT - - COUNT( * ) + - 62 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8359
SELECT - - COUNT ( * ) + - 62 AS col2
----
-61

query I rowsort
SELECT - + 57 + 78 AS col0
----
21

query I rowsort
SELECT - - 83 + - + 78 * 73
----
-5611

query I rowsort
SELECT + - ( - 60 ) - - 84
----
144

query I rowsort
SELECT DISTINCT + 13 * - - 58
----
754

onlyif mysql # aggregate syntax: 
query II rowsort label-8364
SELECT ALL 74 + - 29 * COUNT( * ) + 46 AS col1, - 46
----
91
-46

skipif mysql # not compatible
query II rowsort label-8364
SELECT ALL 74 + - 29 * COUNT ( * ) + 46 AS col1, - 46
----
91
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8365
SELECT ALL COALESCE ( + 32, - 86 DIV - 51 )
----
32

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL COALESCE ( + 32, - 86 / - 51 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT DISTINCT - 14 * + 16 + + COALESCE ( + 4, COUNT( * ), + MAX( + - 26 ) ) * + - COUNT( * ) * + 92 AS col2
----
-592

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT - 14 * + 16 + + COALESCE ( + 4, COUNT ( * ), + MAX ( + - 26 ) ) * + - COUNT ( * ) * + 92 AS col2
----
-592

query I rowsort
SELECT ALL + 81 * + - COALESCE ( + 35, 3 ) + - - 31 + - 43 * - 25
----
-1729

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT 58 * CASE - - 34 WHEN COUNT( + + 84 ) THEN NULL ELSE - 12 END + 63 - - 94
----
-539

skipif mysql # not compatible
query I rowsort label-8368
SELECT 58 * CASE - - 34 WHEN COUNT ( + + 84 ) THEN NULL ELSE - 12 END + 63 - - 94
----
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT + 32 * + CASE - - 48 WHEN + SUM( 80 ) - + - 95 + + 60 THEN + SUM( ALL + 60 ) * + - 9 * - - 87 + - + ( - ( 96 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8369
SELECT + 32 * + CASE - - 48 WHEN + SUM ( 80 ) - + - 95 + + 60 THEN + SUM ( ALL + 60 ) * + - 9 * - - 87 + - + ( - ( 96 ) ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8370
SELECT + COALESCE ( + - ( 4 ), - 44, - - 40 + + 59 * 97 * - 70 + + AVG ( ALL - - 92 ) + + 30 * - 14, + 43 + + + 18 + - 57 ) * ( CAST( NULL AS SIGNED ) * 72 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT + COALESCE ( + - ( 4 ), - 44, - - 40 + + 59 * 97 * - 70 + + AVG ( ALL - - 92 ) + + 30 * - 14, + 43 + + + 18 + - 57 ) * ( CAST ( NULL AS INTEGER ) * 72 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT + MAX( DISTINCT 31 )
----
31

skipif mysql # not compatible
query I rowsort label-8371
SELECT + MAX ( DISTINCT 31 )
----
31

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8372
SELECT 3 * - + 65 + + + 34 * - - NULLIF ( + ( + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ), + - 19 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT 3 * - + 65 + + + 34 * - - NULLIF ( + ( + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ), + - 19 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8373
SELECT CASE + NULLIF ( 38, 27 ) WHEN CAST( + 64 AS SIGNED ) + - 37 THEN - 62 + - COUNT( * ) WHEN - 83 THEN + 27 * 85 + - - CAST( + + ( - 5 ) AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT CASE + NULLIF ( 38, 27 ) WHEN CAST ( + 64 AS INTEGER ) + - 37 THEN - 62 + - COUNT ( * ) WHEN - 83 THEN + 27 * 85 + - - CAST ( + + ( - 5 ) AS REAL ) END AS col2
----
NULL

query I rowsort
SELECT + ( 39 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8375
SELECT + 78 * + ( + MIN( - - 51 ) ) * 98 AS col1, 27
----
389844
27

skipif mysql # not compatible
query II rowsort label-8375
SELECT + 78 * + ( + MIN ( - - 51 ) ) * 98 AS col1, 27
----
389844
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8376
SELECT ALL + 1 AS col1, + COUNT( * ) * + ( + NULLIF ( 46, + - 25 ) ) + + + CAST( + - COUNT( * ) AS SIGNED )
----
1
45

skipif mysql # not compatible
query II rowsort label-8376
SELECT ALL + 1 AS col1, + COUNT ( * ) * + ( + NULLIF ( 46, + - 25 ) ) + + + CAST ( + - COUNT ( * ) AS INTEGER )
----
1
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ALL - COUNT( * ) * - 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL - COUNT ( * ) * - 40 AS col0
----
40

query I rowsort
SELECT + ( + ( + - 99 ) )
----
-99

query I rowsort
SELECT ALL + COALESCE ( + 98, - 79 + + 72 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8380
SELECT + 9 * 45 - + CASE WHEN NOT - CAST( 42 AS SIGNED ) IS NULL THEN NULL ELSE - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8380
SELECT + 9 * 45 - + CASE WHEN NOT - CAST ( 42 AS INTEGER ) IS NULL THEN NULL ELSE - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT - 32 - - + 91 * 98
----
8886

onlyif mysql # DIV for integer division: 
query I rowsort label-8382
SELECT 88 * - + 75 + - 31 DIV + 14 AS col0
----
-6602

skipif mysql # not compatible
query I rowsort label-8382
SELECT 88 * - + 75 + - 31 / + 14 AS col0
----
-6602

query I rowsort
SELECT + + ( - 68 ) * + NULLIF ( 44, - 85 ) + - COALESCE ( + CASE + 13 WHEN 23 THEN + 4 WHEN - - ( - + COALESCE ( + 36, + 92, - 43 + 69 ) ) THEN 6 * 6 END, 67 )
----
-3059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8384
SELECT ALL - 91 * - - 9 / + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL - 91 * - - 9 / + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT - + 22 + + ( - 85 ) * 2
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT - - 47 + + 19 + + COUNT( * ) * 94
----
160

skipif mysql # not compatible
query I rowsort label-8386
SELECT - - 47 + + 19 + + COUNT ( * ) * 94
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8387
SELECT ALL - 42 + + - 82 DIV NULLIF ( + + 57, 45 ) + ( 88 ) * - 58 + - MIN( ALL - 36 ) + COUNT( * ) + - 47 DIV + 11 * - COUNT( DISTINCT + 68 ) - MAX( ALL 89 ) * 79
----
-12137

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL - 42 + + - 82 / NULLIF ( + + 57, 45 ) + ( 88 ) * - 58 + - MIN ( ALL - 36 ) + COUNT ( * ) + - 47 / + 11 * - COUNT ( DISTINCT + 68 ) - MAX ( ALL 89 ) * 79
----
-12137

query II rowsort
SELECT 1 AS col0, + 99
----
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8389
SELECT - + 72 + + SUM( ALL - - 72 ) col1, 93 AS col1
----
0
93

skipif mysql # not compatible
query II rowsort label-8389
SELECT - + 72 + + SUM ( ALL - - 72 ) col1, 93 AS col1
----
0
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8390
SELECT ALL - + 96 + + COUNT( * ) - CASE 65 WHEN 39 * 29 + + COUNT( * ) + + ( 80 ) THEN NULL ELSE - NULLIF ( 17, - CAST( NULL AS SIGNED ) * + - 79 / - 68 * + 96 ) + 25 END * 63 AS col1
----
-599

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL - + 96 + + COUNT ( * ) - CASE 65 WHEN 39 * 29 + + COUNT ( * ) + + ( 80 ) THEN NULL ELSE - NULLIF ( 17, - CAST ( NULL AS INTEGER ) * + - 79 / - 68 * + 96 ) + 25 END * 63 AS col1
----
-599

query I rowsort
SELECT + 92 * - - 3 * - 97 AS col2
----
-26772

query II rowsort
SELECT ALL 80 AS col0, 44
----
80
44

query I rowsort
SELECT DISTINCT + + 59 + 88
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8394
SELECT 57, ( - 75 ) * - - 1 + - ( CAST( NULL AS SIGNED ) ) + + 0 + - 23 AS col0
----
57
NULL

skipif mysql # not compatible
query II rowsort label-8394
SELECT 57, ( - 75 ) * - - 1 + - ( CAST ( NULL AS INTEGER ) ) + + 0 + - 23 AS col0
----
57
NULL

query I rowsort
SELECT DISTINCT - 84 + + 94 AS col0
----
10

query I rowsort
SELECT ALL + - 9 + 51 * 20 + 61 AS col1
----
1072

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT - + 20 * COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-8397
SELECT - + 20 * COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT MAX( 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8398
SELECT MAX ( 93 ) AS col0
----
93

query I rowsort
SELECT DISTINCT + 89 + - - COALESCE ( - 36, + 80 + 16 )
----
53

query II rowsort
SELECT ALL - ( - 24 ) + - - ( - 78 ) + - 23 + + 24 AS col0, - 72 - - 0 AS col2
----
-53
-72

query I rowsort
SELECT - 86 * - 11 * + 37 * + - 63 AS col1
----
-2205126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8402
SELECT ALL + CASE - 63 WHEN 51 * - + 99 THEN CAST( NULL AS SIGNED ) END - + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL + CASE - 63 WHEN 51 * - + 99 THEN CAST ( NULL AS INTEGER ) END - + 36 AS col2
----
NULL

query I rowsort
SELECT - 56 - - 62
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8404
SELECT ALL CAST( - + 43 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL CAST ( - + 43 AS INTEGER )
----
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-8405
SELECT - 74 + - - 90 AS col0, CASE + 83 WHEN 53 + - - 37 THEN 68 * + 2 WHEN + 28 THEN + + 27 * - + 29 * + + 33 + - 8 + 91 DIV + 83 * - 53 * 78 ELSE + 69 DIV 17 + - ( + 34 ) END * 86 AS col1
----
16
-2580

skipif mysql # not compatible
query II rowsort label-8405
SELECT - 74 + - - 90 AS col0, CASE + 83 WHEN 53 + - - 37 THEN 68 * + 2 WHEN + 28 THEN + + 27 * - + 29 * + + 33 + - 8 + 91 / + 83 * - 53 * 78 ELSE + 69 / 17 + - ( + 34 ) END * 86 AS col1
----
16
-2580

query I rowsort
SELECT 71 * 49 - + 10 AS col0
----
3469

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8407
SELECT COUNT( * ) DIV - + 17 + - + 94 + - 44 AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-8407
SELECT COUNT ( * ) / - + 17 + - + 94 + - 44 AS col0
----
-138

onlyif mysql # aggregate syntax: 
query II rowsort label-8408
SELECT DISTINCT + 8 col1, + COUNT( * ) * - 7
----
8
-7

skipif mysql # not compatible
query II rowsort label-8408
SELECT DISTINCT + 8 col1, + COUNT ( * ) * - 7
----
8
-7

query I rowsort
SELECT ALL 38 * 65 AS col1
----
2470

query I rowsort
SELECT DISTINCT + ( 73 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8411
SELECT ALL + 27 * COUNT( * ) AS col0, 34
----
27
34

skipif mysql # not compatible
query II rowsort label-8411
SELECT ALL + 27 * COUNT ( * ) AS col0, 34
----
27
34

query II rowsort
SELECT + 37 AS col0, 89 AS col0
----
37
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8413
SELECT DISTINCT - 23 AS col0, COUNT( * )
----
-23
1

skipif mysql # not compatible
query II rowsort label-8413
SELECT DISTINCT - 23 AS col0, COUNT ( * )
----
-23
1

query II rowsort
SELECT ALL - 26 AS col0, + 29
----
-26
29

query I rowsort
SELECT + 42 * + 83 + + 13 AS col0
----
3499

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT 19 DIV - 27 * + ( + 8 ) + + + 96 DIV COALESCE ( - 91, - 88 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8416
SELECT 19 / - 27 * + ( + 8 ) + + + 96 / COALESCE ( - 91, - 88 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8417
SELECT ALL + 31 + CASE - COUNT( * ) WHEN + 65 * 11 THEN - + NULLIF ( NULLIF ( + 53, + MAX( DISTINCT - 30 ) * - 85 / + + 28 * - 27 - + + MAX( DISTINCT - 43 ) ), - CAST( COUNT( * ) AS DECIMAL ) - + 16 ) + CASE MIN( - 78 ) WHEN 57 THEN COUNT( * ) END WHEN - 83 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL + 31 + CASE - COUNT ( * ) WHEN + 65 * 11 THEN - + NULLIF ( NULLIF ( + 53, + MAX ( DISTINCT - 30 ) * - 85 / + + 28 * - 27 - + + MAX ( DISTINCT - 43 ) ), - CAST ( COUNT ( * ) AS REAL ) - + 16 ) + CASE MIN ( - 78 ) WHEN 57 THEN COUNT ( * ) END WHEN - 83 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT ALL - 9 AS col0, + 74 AS col0
----
-9
74

query I rowsort
SELECT DISTINCT 62 + + 60 + + + 61 AS col2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL + SUM( ALL - 60 ) + + + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL + SUM ( ALL - 60 ) + + + COUNT ( * )
----
-59

query I rowsort
SELECT 88 * 97
----
8536

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT - COUNT( 37 ) - 19 * + 97 - 61 AS col0
----
-1905

skipif mysql # not compatible
query I rowsort label-8422
SELECT - COUNT ( 37 ) - 19 * + 97 - 61 AS col0
----
-1905

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL ( COUNT( DISTINCT - - 13 ) ) + + SUM( ALL - NULLIF ( + - 88, + 17 + - 96 + + 65 ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL ( COUNT ( DISTINCT - - 13 ) ) + + SUM ( ALL - NULLIF ( + - 88, + 17 + - 96 + + 65 ) ) AS col2
----
89

query I rowsort
SELECT ALL 20 * 66
----
1320

query I rowsort
SELECT 68 * - + 31 + - 93 * 90 * + 28 * - + 55 + - 89
----
12887603

query I rowsort
SELECT 11 * - + 53 AS col2
----
-583

query I rowsort
SELECT ALL + 30 + - COALESCE ( 84, + 74 * + - 86 ) + 44
----
-10

query II rowsort
SELECT 72 col0, + 3
----
72
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8429
SELECT - + COUNT( * ), - 50 AS col2
----
-1
-50

skipif mysql # not compatible
query II rowsort label-8429
SELECT - + COUNT ( * ), - 50 AS col2
----
-1
-50

query I rowsort
SELECT DISTINCT 91 + - 9
----
82

query I rowsort
SELECT DISTINCT + 47 - 76
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT DISTINCT COUNT( 34 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT COUNT ( 34 ) col1
----
1

query II rowsort
SELECT 21 + - 29 AS col1, 21 col0
----
-8
21

query I rowsort
SELECT 57 * + ( + 6 ) AS col1
----
342

query I rowsort
SELECT ALL - ( + 92 ) * + 59 + - 7
----
-5435

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT NULLIF ( 12, + 13 ) + MAX( ALL + 62 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8436
SELECT NULLIF ( 12, + 13 ) + MAX ( ALL + 62 ) AS col0
----
74

query I rowsort
SELECT 66 - NULLIF ( - + 28, + 56 * - - 26 ) + + ( 88 )
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8438
SELECT DISTINCT - 12 * + CASE COALESCE ( 92, + 25 ) WHEN 20 THEN + COUNT( * ) ELSE 90 DIV + 84 + - + 39 + - 69 * - 56 + - + COALESCE ( - ( + + COUNT( * ) ), - 82 + + + 46 ) - 16 * CAST( 19 * 77 AS SIGNED ) DIV 30 END * COUNT( * ) AS col0
----
-36564

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT - 12 * + CASE COALESCE ( 92, + 25 ) WHEN 20 THEN + COUNT ( * ) ELSE 90 / + 84 + - + 39 + - 69 * - 56 + - + COALESCE ( - ( + + COUNT ( * ) ), - 82 + + + 46 ) - 16 * CAST ( 19 * 77 AS INTEGER ) / 30 END * COUNT ( * ) AS col0
----
-36564

query I rowsort
SELECT 40 + 31
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT 76 - + COUNT( * ) col1
----
75

skipif mysql # not compatible
query I rowsort label-8440
SELECT 76 - + COUNT ( * ) col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL - 3 * - + COUNT( * ) * + - 29 * - 28
----
2436

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL - 3 * - + COUNT ( * ) * + - 29 * - 28
----
2436

query I rowsort
SELECT ALL 32 * 20 * + + 11
----
7040

query I rowsort
SELECT DISTINCT + 58 * - 96
----
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT 72 * - + COALESCE ( COUNT( DISTINCT 75 ), ( - 8 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-8444
SELECT 72 * - + COALESCE ( COUNT ( DISTINCT 75 ), ( - 8 ) )
----
-72

query I rowsort
SELECT 75 + 30 * - 54 AS col1
----
-1545

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8446
SELECT 52 + + COUNT( * ) DIV 17 * NULLIF ( + + 94, - 60 + + 12 ), 49 col2
----
52
49

skipif mysql # not compatible
query II rowsort label-8446
SELECT 52 + + COUNT ( * ) / 17 * NULLIF ( + + 94, - 60 + + 12 ), 49 col2
----
52
49

query II rowsort
SELECT DISTINCT - ( 34 ) AS col0, 34
----
-34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8448
SELECT ALL - 68 DIV + 51 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL - 68 / + 51 AS col2
----
-1

query II rowsort
SELECT 71 * 35 col1, 13 col1
----
2485
13

query I rowsort
SELECT ALL + 96 + 15 * - 6 * 19 AS col1
----
-1614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8451
SELECT ALL - 69 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL - 69 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT ALL 11 + - COUNT( - 84 )
----
10

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL 11 + - COUNT ( - 84 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8453
SELECT 65 + + NULLIF ( - ( - - 29 ), - + 94 ) * + COALESCE ( - 34, - - 76 * 33 * + 20 * + 7 DIV 14 ), 27 + + MIN( - 77 ) AS col2
----
1051
-50

skipif mysql # not compatible
query II rowsort label-8453
SELECT 65 + + NULLIF ( - ( - - 29 ), - + 94 ) * + COALESCE ( - 34, - - 76 * 33 * + 20 * + 7 / 14 ), 27 + + MIN ( - 77 ) AS col2
----
1051
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8454
SELECT ALL - - COUNT( 45 ) + CASE COUNT( * ) WHEN 77 THEN NULL WHEN - - NULLIF ( + 42, + 88 / 32 + + CAST( - - COUNT( * ) AS SIGNED ) + 62 ) + - 34 + + 34 * + 28 * + - 0 THEN 50 / - 21 - 82 * CAST( - 36 - 98 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL - - COUNT ( 45 ) + CASE COUNT ( * ) WHEN 77 THEN NULL WHEN - - NULLIF ( + 42, + 88 / 32 + + CAST ( - - COUNT ( * ) AS INTEGER ) + 62 ) + - 34 + + 34 * + 28 * + - 0 THEN 50 / - 21 - 82 * CAST ( - 36 - 98 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT - 13 * - NULLIF ( 50, + 18 ) + + 16 + + + 73 + SUM( + 82 )
----
821

skipif mysql # not compatible
query I rowsort label-8455
SELECT - 13 * - NULLIF ( 50, + 18 ) + + 16 + + + 73 + SUM ( + 82 )
----
821

onlyif mysql # aggregate syntax: 
query II rowsort label-8456
SELECT ALL + COUNT( * ) + 33, 79 / + 64 + - CASE + 18 WHEN - + ( COUNT( * ) ) THEN - 93 / - 20 / 2 ELSE NULL END * - COUNT( * ) * + 43 + - 38 AS col1
----
34
NULL

skipif mysql # not compatible
query II rowsort label-8456
SELECT ALL + COUNT ( * ) + 33, 79 / + 64 + - CASE + 18 WHEN - + ( COUNT ( * ) ) THEN - 93 / - 20 / 2 ELSE NULL END * - COUNT ( * ) * + 43 + - 38 AS col1
----
34
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8457
SELECT + 44 + + CAST( - 94 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-8457
SELECT + 44 + + CAST ( - 94 AS INTEGER )
----
-50

query I rowsort
SELECT ALL - 59 + + 60 + 40 * - - 2 AS col0
----
81

query I rowsort
SELECT + 83 * - - 45
----
3735

onlyif mysql # DIV for integer division: 
query I rowsort label-8460
SELECT 13 + + 55 DIV + 66 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8460
SELECT 13 + + 55 / + 66 AS col1
----
13

query II rowsort
SELECT ALL - 98 - - 18, - 67 + + 4 AS col1
----
-80
-63

query I rowsort
SELECT 5 + 68 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT ALL CASE - - MIN( - 87 ) WHEN 17 * - + 72 THEN + 60 ELSE NULL END - + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL CASE - - MIN ( - 87 ) WHEN 17 * - + 72 THEN + 60 ELSE NULL END - + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL 63 * + 39 * - 47 * COUNT( * ) AS col0
----
-115479

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL 63 * + 39 * - 47 * COUNT ( * ) AS col0
----
-115479

onlyif mysql # DIV for integer division: 
query I rowsort label-8465
SELECT - 77 DIV 25 + + 44 col1
----
41

skipif mysql # not compatible
query I rowsort label-8465
SELECT - 77 / 25 + + 44 col1
----
41

onlyif mysql # DIV for integer division: 
query II rowsort label-8466
SELECT ALL + 32 * + 83 AS col2, 20 * 89 DIV - + 53 col0
----
2656
-33

skipif mysql # not compatible
query II rowsort label-8466
SELECT ALL + 32 * + 83 AS col2, 20 * 89 / - + 53 col0
----
2656
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT - MIN( + + 86 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-8467
SELECT - MIN ( + + 86 ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT 76 + + - SUM( + 73 ) + - 20
----
-17

skipif mysql # not compatible
query I rowsort label-8468
SELECT 76 + + - SUM ( + 73 ) + - 20
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT - MIN( - + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-8469
SELECT - MIN ( - + 73 )
----
73

query I rowsort
SELECT ALL 91 * 55 AS col0
----
5005

query II rowsort
SELECT ALL 64, 21 col1
----
64
21

query II rowsort
SELECT ALL 66, 81 AS col2
----
66
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8473
SELECT + CASE + 62 WHEN + 52 * + 0 THEN NULL WHEN - + 47 * + 31 * - - 45 THEN CASE - + COUNT( * ) WHEN - ( COUNT( * ) ) + - 92 + - CAST( NULL AS SIGNED ) + + + 69 + - CAST( + COUNT( * ) AS DECIMAL ) THEN - 81 ELSE 66 END - CAST( NULL AS SIGNED ) / 76 END + ( 77 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8473
SELECT + CASE + 62 WHEN + 52 * + 0 THEN NULL WHEN - + 47 * + 31 * - - 45 THEN CASE - + COUNT ( * ) WHEN - ( COUNT ( * ) ) + - 92 + - CAST ( NULL AS INTEGER ) + + + 69 + - CAST ( + COUNT ( * ) AS REAL ) THEN - 81 ELSE 66 END - CAST ( NULL AS INTEGER ) / 76 END + ( 77 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT ALL - MIN( DISTINCT + + 68 ) * - 24 + 12
----
1644

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL - MIN ( DISTINCT + + 68 ) * - 24 + 12
----
1644

query I rowsort
SELECT - 73 * 3
----
-219

query I rowsort
SELECT CASE + ( - 3 ) WHEN - COALESCE ( - - 59, 96 * - + 8 * - - 12 ) THEN + + 31 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8477
SELECT NULLIF ( COUNT( * ), CAST( NULL AS DECIMAL ) * + 66 + + + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-8477
SELECT NULLIF ( COUNT ( * ), CAST ( NULL AS REAL ) * + 66 + + + 20 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT - 43 + COUNT( * ) + + - NULLIF ( 11, 39 - - + 1 ) + + 92
----
39

skipif mysql # not compatible
query I rowsort label-8478
SELECT - 43 + COUNT ( * ) + + - NULLIF ( 11, 39 - - + 1 ) + + 92
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT ALL 9 * - - ( + SUM( + 55 ) ) + NULLIF ( - + 9, - - 36 )
----
486

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL 9 * - - ( + SUM ( + 55 ) ) + NULLIF ( - + 9, - - 36 )
----
486

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8480
SELECT ALL - 24 * + 12 * 2 * + ( - CASE - 1 WHEN 16 * 61 + - 29 THEN NULL WHEN COALESCE ( - COUNT( * ), 40 * - ( ( + CAST( + 19 AS DECIMAL ) ) ) ) THEN NULL ELSE + MIN( - 91 ) END ) * 49 + 43 * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL - 24 * + 12 * 2 * + ( - CASE - 1 WHEN 16 * 61 + - 29 THEN NULL WHEN COALESCE ( - COUNT ( * ), 40 * - ( ( + CAST ( + 19 AS REAL ) ) ) ) THEN NULL ELSE + MIN ( - 91 ) END ) * 49 + 43 * + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT ALL ( + 37 ) * - - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL ( + 37 ) * - - COUNT ( * ) AS col2
----
37

query I rowsort
SELECT - ( - + NULLIF ( + + 83, - ( 80 ) ) ) * + 69
----
5727

query II rowsort
SELECT + + 26 col2, + 83 AS col0
----
26
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8484
SELECT + + 49 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-8484
SELECT + + 49 / + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT - + 43 + 65 - - 3 + 9 + + COUNT( * ) * + ( - 30 ) * 5 AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-8485
SELECT - + 43 + 65 - - 3 + 9 + + COUNT ( * ) * + ( - 30 ) * 5 AS col0
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8486
SELECT + 86 AS col2, - 44 DIV - COUNT( ALL 47 ) AS col0
----
86
44

skipif mysql # not compatible
query II rowsort label-8486
SELECT + 86 AS col2, - 44 / - COUNT ( ALL 47 ) AS col0
----
86
44

query II rowsort
SELECT 89 AS col2, - 31
----
89
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8488
SELECT - COUNT( * ) + - - 70 + - 31 + + 50 DIV + - NULLIF ( + + 56, - 6 * - + 25 + 76 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-8488
SELECT - COUNT ( * ) + - - 70 + - 31 + + 50 / + - NULLIF ( + + 56, - 6 * - + 25 + 76 ) AS col2
----
38

query II rowsort
SELECT DISTINCT + + 7 AS col2, + ( + ( + + 54 ) ) col2
----
7
54

query I rowsort
SELECT DISTINCT - + 64 * + 40 * + + 83 + - ( + COALESCE ( - 29, + 11 ) ) - 26 + + 18 AS col0
----
-212459

query I rowsort
SELECT ALL + - ( + - 23 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8492
SELECT DISTINCT - MIN( ALL + + ( + 96 ) ) * - + 88 + + + NULLIF ( + + 77, - 35 - + 57 ) - + 5 + 3 * + 49 * 31 + - + 48 AS col2, 96 * - 50
----
13029
-4800

skipif mysql # not compatible
query II rowsort label-8492
SELECT DISTINCT - MIN ( ALL + + ( + 96 ) ) * - + 88 + + + NULLIF ( + + 77, - 35 - + 57 ) - + 5 + 3 * + 49 * 31 + - + 48 AS col2, 96 * - 50
----
13029
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL - ( COUNT( * ) ) * - + 69 * + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL - ( COUNT ( * ) ) * - + 69 * + COUNT ( * )
----
69

query I rowsort
SELECT NULLIF ( + 2, + + 65 * + 64 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT - NULLIF ( - 60, + ( 74 ) ) * + + 50 + - - 86 - - 91 * - MIN( ALL - 30 ) - - + SUM( ALL + - 75 ) AS col2
----
5741

skipif mysql # not compatible
query I rowsort label-8495
SELECT - NULLIF ( - 60, + ( 74 ) ) * + + 50 + - - 86 - - 91 * - MIN ( ALL - 30 ) - - + SUM ( ALL + - 75 ) AS col2
----
5741

query II rowsort
SELECT + 27 AS col2, - 91 + 41
----
27
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT - COUNT( 15 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8497
SELECT - COUNT ( 15 ) col0
----
-1

query I rowsort
SELECT - 86 * 88 AS col0
----
-7568

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL ( + + SUM( DISTINCT - 43 ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL ( + + SUM ( DISTINCT - 43 ) ) AS col1
----
-43

query I rowsort
SELECT ALL 15 * + - 16
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8501
SELECT ALL 79 + - COUNT( * ) * - + COUNT( * ) * + 57 + CASE - 33 WHEN CAST( 87 AS SIGNED ) * - 46 THEN + - ( + 45 ) WHEN + + 97 THEN NULL WHEN - 60 * 36 - 97 THEN - COUNT( * ) / - COUNT( * ) + + 2 * + - 57 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL 79 + - COUNT ( * ) * - + COUNT ( * ) * + 57 + CASE - 33 WHEN CAST ( 87 AS INTEGER ) * - 46 THEN + - ( + 45 ) WHEN + + 97 THEN NULL WHEN - 60 * 36 - 97 THEN - COUNT ( * ) / - COUNT ( * ) + + 2 * + - 57 END AS col0
----
NULL

query I rowsort
SELECT - 61 * - 43 AS col0
----
2623

query I rowsort
SELECT + NULLIF ( 86, + + 37 ) + - + 52 AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8504
SELECT + 26 - - - COUNT( * ) DIV - 48
----
26

skipif mysql # not compatible
query I rowsort label-8504
SELECT + 26 - - - COUNT ( * ) / - 48
----
26

query I rowsort
SELECT - CASE 82 WHEN 70 THEN - - 49 * + 39 END col1
----
NULL

query I rowsort
SELECT ALL 8 + + 95
----
103

query I rowsort
SELECT ALL 25 + - + 60 * + - 18 + ( - + 55 )
----
1050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8508
SELECT DISTINCT 37 + NULLIF ( - 55, CASE WHEN NOT NULL IS NULL THEN NULL ELSE + COUNT( * ) END * - 44 ) DIV 24 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT 37 + NULLIF ( - 55, CASE WHEN NOT NULL IS NULL THEN NULL ELSE + COUNT ( * ) END * - 44 ) / 24 AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8509
SELECT CAST( - + 39 AS SIGNED ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-8509
SELECT CAST ( - + 39 AS INTEGER ) AS col2
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-8510
SELECT 14 DIV 1 * + 70 * - 64 + + + 39 AS col0, - 74
----
-62681
-74

skipif mysql # not compatible
query II rowsort label-8510
SELECT 14 / 1 * + 70 * - 64 + + + 39 AS col0, - 74
----
-62681
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-8511
SELECT + CASE - COUNT( * ) WHEN SUM( DISTINCT + 80 ) THEN NULL WHEN 83 THEN - - 11 * + 71 * - 89 + - 78 END, 16 + - + 62 AS col2
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-8511
SELECT + CASE - COUNT ( * ) WHEN SUM ( DISTINCT + 80 ) THEN NULL WHEN 83 THEN - - 11 * + 71 * - 89 + - 78 END, 16 + - + 62 AS col2
----
NULL
-46

query I rowsort
SELECT + 16 + + 84 + + 2
----
102

query I rowsort
SELECT + - 20 * + 73 AS col0
----
-1460

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT MIN( + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-8514
SELECT MIN ( + 54 )
----
54

query I rowsort
SELECT + 42 * - 54 + + + 98 col2
----
-2170

onlyif mysql # DIV for integer division: 
query I rowsort label-8516
SELECT DISTINCT + + 35 DIV - 87 - + 22 * + 28 AS col2
----
-616

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT + + 35 / - 87 - + 22 * + 28 AS col2
----
-616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8517
SELECT COUNT( * ) DIV + + 36 + - 58 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-8517
SELECT COUNT ( * ) / + + 36 + - 58 AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8518
SELECT + 56 * + 19 + CAST( NULL AS SIGNED ) + + - 11 col2, + COUNT( * ) + + 63
----
NULL
64

skipif mysql # not compatible
query II rowsort label-8518
SELECT + 56 * + 19 + CAST ( NULL AS INTEGER ) + + - 11 col2, + COUNT ( * ) + + 63
----
NULL
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ALL + - SUM( + 47 ) * 57
----
-2679

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL + - SUM ( + 47 ) * 57
----
-2679

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT + + COUNT( * ) + + 24 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8520
SELECT + + COUNT ( * ) + + 24 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT - 49 * - + 50 + - - CASE - - 83 WHEN + 30 THEN + + SUM( DISTINCT - 20 ) WHEN 49 * 54 THEN - - 26 + - ( - 18 ) WHEN + + SUM( + 53 ) THEN NULL END + COUNT( * ) + - 14 * + + COUNT( * ) * - ( - + 24 ) * 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8521
SELECT - 49 * - + 50 + - - CASE - - 83 WHEN + 30 THEN + + SUM ( DISTINCT - 20 ) WHEN 49 * 54 THEN - - 26 + - ( - 18 ) WHEN + + SUM ( + 53 ) THEN NULL END + COUNT ( * ) + - 14 * + + COUNT ( * ) * - ( - + 24 ) * 18 AS col1
----
NULL

query II rowsort
SELECT - ( - - 43 ), + 44 AS col0
----
-43
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT - 53 * COUNT( * ) - + - 18
----
-35

skipif mysql # not compatible
query I rowsort label-8523
SELECT - 53 * COUNT ( * ) - + - 18
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8524
SELECT - - 38 DIV + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-8524
SELECT - - 38 / + COUNT ( * )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8525
SELECT - 74 * - + 26 + 78 + - 91 + - 75 * + COUNT( * ) + - COALESCE ( - 96, + COUNT( * ) DIV - COUNT( - + ( + 81 ) ), - 73 )
----
1932

skipif mysql # not compatible
query I rowsort label-8525
SELECT - 74 * - + 26 + 78 + - 91 + - 75 * + COUNT ( * ) + - COALESCE ( - 96, + COUNT ( * ) / - COUNT ( - + ( + 81 ) ), - 73 )
----
1932

query I rowsort
SELECT - 28 - - 60
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT - 42 + COUNT( * ) * 74 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8527
SELECT - 42 + COUNT ( * ) * 74 AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8528
SELECT ALL CAST( - 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL CAST ( - 7 AS INTEGER )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8529
SELECT - NULLIF ( + + 95, + 2 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT - NULLIF ( + + 95, + 2 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 81 + + 92 + + 3 * - - 72
----
389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8531
SELECT 66 + - - 17 - + + 49 * + - NULLIF ( + + COUNT( * ), + NULLIF ( - - 0, - CASE + COUNT( ALL - 29 ) WHEN + 75 - - + NULLIF ( - 35, + NULLIF ( + COUNT( * ), - - 66 ) ) THEN NULL ELSE - ( - 42 ) * + CASE - 27 WHEN + ( + COUNT( * ) ) + + 39 THEN MAX( DISTINCT - 20 ) WHEN 32 THEN NULL WHEN 3 * - COUNT( * ) THEN COUNT( * ) * - CAST( + CASE 91 WHEN + 51 * + CAST( NULL AS SIGNED ) THEN - 19 * 67 + + 44 END AS SIGNED ) ELSE NULL END + - 89 / 77 END ) ) + + 58 * 38 col1
----
2336

skipif mysql # not compatible
query I rowsort label-8531
SELECT 66 + - - 17 - + + 49 * + - NULLIF ( + + COUNT ( * ), + NULLIF ( - - 0, - CASE + COUNT ( ALL - 29 ) WHEN + 75 - - + NULLIF ( - 35, + NULLIF ( + COUNT ( * ), - - 66 ) ) THEN NULL ELSE - ( - 42 ) * + CASE - 27 WHEN + ( + COUNT ( * ) ) + + 39 THEN MAX ( DISTINCT - 20 ) WHEN 32 THEN NULL WHEN 3 * - COUNT ( * ) THEN COUNT ( * ) * - CAST ( + CASE 91 WHEN + 51 * + CAST ( NULL AS INTEGER ) THEN - 19 * 67 + + 44 END AS INTEGER ) ELSE NULL END + - 89 / 77 END ) ) + + 58 * 38 col1
----
2336

query I rowsort
SELECT 72 * - + 79
----
-5688

query I rowsort
SELECT DISTINCT + 99 + + + 33 + + 1 AS col2
----
133

query I rowsort
SELECT 85 * 66 AS col2
----
5610

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL + 81 + + COUNT( + + 28 )
----
82

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL + 81 + + COUNT ( + + 28 )
----
82

query I rowsort
SELECT DISTINCT - 27 + 42
----
15

query I rowsort
SELECT 62 + + 53 col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT DISTINCT + 64 + + - 81 * + COUNT( * ) + - 97 AS col0
----
-114

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT + 64 + + - 81 * + COUNT ( * ) + - 97 AS col0
----
-114

query I rowsort
SELECT 75 * - - 27
----
2025

query I rowsort
SELECT NULLIF ( - - 26, - 39 + - + 65 * + 20 ) + - 3 AS col0
----
23

query II rowsort
SELECT - 75 AS col1, 84 + - 45 AS col2
----
-75
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT ALL 84 + + + 18 * 25 DIV - 70
----
78

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL 84 + + + 18 * 25 / - 70
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT COALESCE ( - 19, + + 27, 67 ) * + 41 * COUNT( ALL - 29 ) * + 1 AS col2
----
-779

skipif mysql # not compatible
query I rowsort label-8543
SELECT COALESCE ( - 19, + + 27, 67 ) * + 41 * COUNT ( ALL - 29 ) * + 1 AS col2
----
-779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8544
SELECT COALESCE ( + CAST( + 84 AS SIGNED ), 24 - - 34, - 60 * - 78 + - 6 ) + - 49 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8544
SELECT COALESCE ( + CAST ( + 84 AS INTEGER ), 24 - - 34, - 60 * - 78 + - 6 ) + - 49 AS col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8545
SELECT ALL + COUNT( * ) DIV - 14
----
0

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL + COUNT ( * ) / - 14
----
0

query I rowsort
SELECT 9 * - - 39 AS col2
----
351

query I rowsort
SELECT ALL ( 24 ) * + 75 - 92 - + 64 * - 21 * 69
----
94444

query I rowsort
SELECT DISTINCT - + 93 - - 4
----
-89

query I rowsort
SELECT ALL + 2 * - 50 + 77
----
-23

query I rowsort
SELECT + 20 * 12 + + 53
----
293

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8551
SELECT + + 70 * 81 DIV + + COALESCE ( 93, - ( + 49 ) ) + - COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8551
SELECT + + 70 * 81 / + + COALESCE ( 93, - ( + 49 ) ) + - COUNT ( * ) AS col1
----
59

query I rowsort
SELECT - 26 * - + 55 + + 76 * + + 29
----
3634

query I rowsort
SELECT ALL 87 * + - 31
----
-2697

query I rowsort
SELECT 37 * + + 44 AS col1
----
1628

query I rowsort
SELECT 80 + - 89 AS col0
----
-9

query I rowsort
SELECT DISTINCT - - NULLIF ( 6, + 78 )
----
6

query I rowsort
SELECT ALL - 95 + - 73 * + + 41
----
-3088

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT DISTINCT + 37 * + + 95 * ( + 65 ) * COALESCE ( - 17, + 28, + COUNT( * ) + + - 37 ) + - 76
----
-3884151

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT + 37 * + + 95 * ( + 65 ) * COALESCE ( - 17, + 28, + COUNT ( * ) + + - 37 ) + - 76
----
-3884151

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT ALL - COUNT( * ) * - 74 * 57 * - + 62 AS col0
----
-261516

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL - COUNT ( * ) * - 74 * 57 * - + 62 AS col0
----
-261516

query I rowsort
SELECT ALL - 86 + - + 31
----
-117

query I rowsort
SELECT ALL 62 + 42 + - 74 * - - ( + 16 ) AS col1
----
-1080

onlyif mysql # aggregate syntax: 
query II rowsort label-8562
SELECT COUNT( * ) - - + 5 * - COUNT( * ) * + 69, - 66 AS col1
----
-344
-66

skipif mysql # not compatible
query II rowsort label-8562
SELECT COUNT ( * ) - - + 5 * - COUNT ( * ) * + 69, - 66 AS col1
----
-344
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8563
SELECT 85 / - 93 * + + CAST( NULL AS SIGNED ) * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT 85 / - 93 * + + CAST ( NULL AS INTEGER ) * - 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8564
SELECT 13 * + CAST( - 90 AS SIGNED ) + 72 AS col0
----
-1098

skipif mysql # not compatible
query I rowsort label-8564
SELECT 13 * + CAST ( - 90 AS INTEGER ) + 72 AS col0
----
-1098

onlyif mysql # aggregate syntax: 
query II rowsort label-8565
SELECT 91 * + 72 col1, COALESCE ( - MAX( ALL - + 64 ), + - 56 * COUNT( * ) + - + COUNT( * ) )
----
6552
64

skipif mysql # not compatible
query II rowsort label-8565
SELECT 91 * + 72 col1, COALESCE ( - MAX ( ALL - + 64 ), + - 56 * COUNT ( * ) + - + COUNT ( * ) )
----
6552
64

query II rowsort
SELECT 96 AS col1, 35 AS col2
----
96
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8567
SELECT 75 + - 26 DIV - + 22 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-8567
SELECT 75 + - 26 / - + 22 AS col2
----
76

query I rowsort
SELECT ALL 2 + + - 49 + - + 72
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT 61 + - SUM( + 41 ) + + 51 - + + 99 + - + ( + - 31 ) * 8 AS col1
----
220

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT 61 + - SUM ( + 41 ) + + 51 - + + 99 + - + ( + - 31 ) * 8 AS col1
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT DISTINCT - 5 * COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT - 5 * COUNT ( * ) AS col0
----
-5

query I rowsort
SELECT 91 - + 99 AS col2
----
-8

query I rowsort
SELECT 0 - - 58 * + - 83
----
-4814

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT 10 + - COUNT( * ) * - 49
----
59

skipif mysql # not compatible
query I rowsort label-8573
SELECT 10 + - COUNT ( * ) * - 49
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8574
SELECT CAST( + SUM( DISTINCT 27 ) AS SIGNED ) * - + 31 col2
----
-837

skipif mysql # not compatible
query I rowsort label-8574
SELECT CAST ( + SUM ( DISTINCT 27 ) AS INTEGER ) * - + 31 col2
----
-837

query I rowsort
SELECT 90 + + 15
----
105

query II rowsort
SELECT - 41 AS col1, 43 + - 71 AS col2
----
-41
-28

query I rowsort
SELECT 0 + 65 - 57
----
8

query I rowsort
SELECT NULLIF ( + + 65, + + 35 ) - 72
----
-7

query I rowsort
SELECT + 11 * + + 15 * 25
----
4125

onlyif mysql # aggregate syntax: 
query II rowsort label-8580
SELECT - COUNT( * ) col2, + 12 AS col1
----
-1
12

skipif mysql # not compatible
query II rowsort label-8580
SELECT - COUNT ( * ) col2, + 12 AS col1
----
-1
12

query II rowsort
SELECT DISTINCT 49 AS col1, + 4
----
49
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT DISTINCT - + ( - COUNT( * ) ) * + 13 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT - + ( - COUNT ( * ) ) * + 13 AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8583
SELECT + + 80 AS col2, + COUNT( * ) * + MAX( + - ( - 72 ) ) col2
----
80
72

skipif mysql # not compatible
query II rowsort label-8583
SELECT + + 80 AS col2, + COUNT ( * ) * + MAX ( + - ( - 72 ) ) col2
----
80
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8584
SELECT ALL - 23, - CAST( - + CASE 12 WHEN - COUNT( * ) THEN - COUNT( * ) END AS SIGNED ) AS col2
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-8584
SELECT ALL - 23, - CAST ( - + CASE 12 WHEN - COUNT ( * ) THEN - COUNT ( * ) END AS INTEGER ) AS col2
----
-23
NULL

query I rowsort
SELECT 67 + + 10 AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8586
SELECT 26 DIV + + 92 - - 11 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8586
SELECT 26 / + + 92 - - 11 AS col1
----
11

query I rowsort
SELECT + - ( - 82 )
----
82

query II rowsort
SELECT ALL - 16 AS col0, + 11 col2
----
-16
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8589
SELECT - - CAST( + 9 AS SIGNED ) * 37 + - 9
----
324

skipif mysql # not compatible
query I rowsort label-8589
SELECT - - CAST ( + 9 AS INTEGER ) * 37 + - 9
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL + NULLIF ( - + COUNT( * ), - COUNT( * ) * + 42 + 47 + ( - - ( - 51 ) ) * - 84 ) * 33 * CASE 84 WHEN + 99 * - + ( - 14 ) + 16 THEN NULL WHEN 16 / 65 * 22 THEN NULL WHEN 55 * + 65 THEN NULL ELSE + 39 END AS col2
----
-1287

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL + NULLIF ( - + COUNT ( * ), - COUNT ( * ) * + 42 + 47 + ( - - ( - 51 ) ) * - 84 ) * 33 * CASE 84 WHEN + 99 * - + ( - 14 ) + 16 THEN NULL WHEN 16 / 65 * 22 THEN NULL WHEN 55 * + 65 THEN NULL ELSE + 39 END AS col2
----
-1287

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8591
SELECT - 7 DIV + + 38 + - 57 + - - 59 + 63 + 18 * - 63 * - CAST( - NULLIF ( 68, - 39 ) AS SIGNED ) * - - 77 * - 39
----
231567401

skipif mysql # not compatible
query I rowsort label-8591
SELECT - 7 / + + 38 + - 57 + - - 59 + 63 + 18 * - 63 * - CAST ( - NULLIF ( 68, - 39 ) AS INTEGER ) * - - 77 * - 39
----
231567401

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + NULLIF ( + + COALESCE ( + COUNT( * ), - 77 ), + 72 ) * - 62 * 99
----
-6138

skipif mysql # not compatible
query I rowsort label-8592
SELECT + NULLIF ( + + COALESCE ( + COUNT ( * ), - 77 ), + 72 ) * - 62 * 99
----
-6138

query I rowsort
SELECT 82 + + + 65
----
147

query II rowsort
SELECT + + ( - 51 ), 75 col0
----
-51
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8595
SELECT ALL + + COUNT( * ) AS col1, COALESCE ( - 6, - 30 ) AS col2
----
1
-6

skipif mysql # not compatible
query II rowsort label-8595
SELECT ALL + + COUNT ( * ) AS col1, COALESCE ( - 6, - 30 ) AS col2
----
1
-6

query I rowsort
SELECT DISTINCT - ( 24 ) * + - 41 - + - 60 + 25 * - 90 + - 0 AS col0
----
-1206

onlyif mysql # aggregate syntax: 
query II rowsort label-8597
SELECT ALL + 16, - COUNT( * ) + 64 col2
----
16
63

skipif mysql # not compatible
query II rowsort label-8597
SELECT ALL + 16, - COUNT ( * ) + 64 col2
----
16
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8598
SELECT - CASE - - 42 WHEN - + 23 / - AVG ( - 21 ) * - COUNT( * ) + + 30 THEN + + CASE + - 82 WHEN 85 + + 3 THEN NULL ELSE COUNT( * ) END + + + 93 WHEN - + 79 THEN NULL ELSE + ( 45 ) END + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT - CASE - - 42 WHEN - + 23 / - AVG ( - 21 ) * - COUNT ( * ) + + 30 THEN + + CASE + - 82 WHEN 85 + + 3 THEN NULL ELSE COUNT ( * ) END + + + 93 WHEN - + 79 THEN NULL ELSE + ( 45 ) END + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT + COUNT( ALL + 67 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8599
SELECT + COUNT ( ALL + 67 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT + COUNT( * ) + - COUNT( * ) * - MAX( ALL - ( 86 ) ) * 65 + 87 * - COUNT( * ) + + - 32 col1
----
-5708

skipif mysql # not compatible
query I rowsort label-8600
SELECT + COUNT ( * ) + - COUNT ( * ) * - MAX ( ALL - ( 86 ) ) * 65 + 87 * - COUNT ( * ) + + - 32 col1
----
-5708

query I rowsort
SELECT 18 * + 28 + + 18 + - 84 AS col0
----
438

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8602
SELECT ALL 9 + 12 DIV + + SUM( - ( 40 ) ) * 67 + - - 47 col0
----
56

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL 9 + 12 / + + SUM ( - ( 40 ) ) * 67 + - - 47 col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT + COUNT( 15 )
----
1

skipif mysql # not compatible
query I rowsort label-8603
SELECT + COUNT ( 15 )
----
1

query I rowsort
SELECT ALL 85 + 59 AS col2
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8605
SELECT + 91 + + 75 - MIN( - + 0 ) * CAST( NULL AS SIGNED ) * + COUNT( * ) * 84 + - 39 + 10 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT + 91 + + 75 - MIN ( - + 0 ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 84 + - 39 + 10 col2
----
NULL

query I rowsort
SELECT DISTINCT 14 * 9 * + + 64 AS col2
----
8064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8607
SELECT + 43 + CAST( + - 48 AS SIGNED ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8607
SELECT + 43 + CAST ( + - 48 AS INTEGER ) AS col1
----
-5

query I rowsort
SELECT ALL 49 - + ( - 95 ) AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT - 60 * - COUNT( * ) col2
----
60

skipif mysql # not compatible
query I rowsort label-8609
SELECT - 60 * - COUNT ( * ) col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT + CAST( NULL AS SIGNED ) + + - ( - - 50 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT + CAST ( NULL AS INTEGER ) + + - ( - - 50 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8611
SELECT - 13 + + 69, - COALESCE ( + - CAST( NULL AS SIGNED ), + 4 + - 38, - ( - - 12 ) + 15 * - 48 ) AS col1
----
56
34

skipif mysql # not compatible
query II rowsort label-8611
SELECT - 13 + + 69, - COALESCE ( + - CAST ( NULL AS INTEGER ), + 4 + - 38, - ( - - 12 ) + 15 * - 48 ) AS col1
----
56
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8612
SELECT + 25 * 80 DIV + 64 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8612
SELECT + 25 * 80 / + 64 AS col1
----
31

query I rowsort
SELECT - 30 * 15
----
-450

onlyif mysql # DIV for integer division: 
query II rowsort label-8614
SELECT DISTINCT - 74 DIV 77, 30 * + 94 AS col1
----
0
2820

skipif mysql # not compatible
query II rowsort label-8614
SELECT DISTINCT - 74 / 77, 30 * + 94 AS col1
----
0
2820

query I rowsort
SELECT + 9 * - 2 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT ALL - - SUM( - - 0 ) * + 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL - - SUM ( - - 0 ) * + 50 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8617
SELECT DISTINCT + - 5 * - 65 + + 10 DIV - + 26 * 62 AS col0
----
325

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT + - 5 * - 65 + + 10 / - + 26 * 62 AS col0
----
325

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT - 32 + COUNT( * ) + - 47
----
-78

skipif mysql # not compatible
query I rowsort label-8618
SELECT - 32 + COUNT ( * ) + - 47
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL - - ( + 59 ) * COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL - - ( + 59 ) * COUNT ( * )
----
59

query I rowsort
SELECT - + 75 + + 39
----
-36

query I rowsort
SELECT DISTINCT - 53 * 95 col1
----
-5035

query I rowsort
SELECT ALL - + 63 * + 95
----
-5985

onlyif mysql # DIV for integer division: 
query I rowsort label-8623
SELECT ALL + 90 DIV - 87 + + + 40 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL + 90 / - 87 + + + 40 AS col2
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-8624
SELECT ALL + + ( + 78 ) AS col2, 71 DIV COALESCE ( + + 20, 16 ) + NULLIF ( + ( + 5 ), - 64 ) + - 0 * + 26 AS col1
----
78
8

skipif mysql # not compatible
query II rowsort label-8624
SELECT ALL + + ( + 78 ) AS col2, 71 / COALESCE ( + + 20, 16 ) + NULLIF ( + ( + 5 ), - 64 ) + - 0 * + 26 AS col1
----
78
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8625
SELECT ALL + COUNT( * ) DIV + 36 + - COUNT( * ) + + 21 * - 35 * - + 32 AS col1
----
23519

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL + COUNT ( * ) / + 36 + - COUNT ( * ) + + 21 * - 35 * - + 32 AS col1
----
23519

query I rowsort
SELECT - 48 * 51
----
-2448

onlyif mysql # aggregate syntax: 
query II rowsort label-8627
SELECT ALL 5 * COUNT( * ) + + 1, - 55 * + - 58 AS col0
----
6
3190

skipif mysql # not compatible
query II rowsort label-8627
SELECT ALL 5 * COUNT ( * ) + + 1, - 55 * + - 58 AS col0
----
6
3190

query I rowsort
SELECT - - 87 * + 29
----
2523

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8629
SELECT DISTINCT - - COUNT( * ) DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT - - COUNT ( * ) / - + 91
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8630
SELECT + 94 AS col2, 10 - - - SUM( - - 15 )
----
94
-5

skipif mysql # not compatible
query II rowsort label-8630
SELECT + 94 AS col2, 10 - - - SUM ( - - 15 )
----
94
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT + CASE - 45 WHEN 33 THEN - + 29 - - + 40 WHEN + COUNT( * ) - + 40 THEN + - 8 + + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT + CASE - 45 WHEN 33 THEN - + 29 - - + 40 WHEN + COUNT ( * ) - + 40 THEN + - 8 + + 9 END
----
NULL

query I rowsort
SELECT ALL - 22 * - + 15 * + 85 * + 53
----
1486650

query I rowsort
SELECT ( - - 53 ) AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT + 27 DIV - - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT + 27 / - - 49 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8635
SELECT + COUNT( * ) AS col2, 0 col2
----
1
0

skipif mysql # not compatible
query II rowsort label-8635
SELECT + COUNT ( * ) AS col2, 0 col2
----
1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8636
SELECT NULLIF ( + + 73, + 30 * + COALESCE ( + 9, - + 71 * + - ( COUNT( * ) ) + - - 39, + 37 + + + ( COUNT( * ) ) + CASE + - COUNT( * ) WHEN 80 * + - COUNT( - + 82 ) THEN - + 56 ELSE NULL END ) * - - 90 * - 77 + + 41 ) AS col0, - COUNT( * ) + - + 39 AS col2
----
73
-40

skipif mysql # not compatible
query II rowsort label-8636
SELECT NULLIF ( + + 73, + 30 * + COALESCE ( + 9, - + 71 * + - ( COUNT ( * ) ) + - - 39, + 37 + + + ( COUNT ( * ) ) + CASE + - COUNT ( * ) WHEN 80 * + - COUNT ( - + 82 ) THEN - + 56 ELSE NULL END ) * - - 90 * - 77 + + 41 ) AS col0, - COUNT ( * ) + - + 39 AS col2
----
73
-40

query II rowsort
SELECT DISTINCT + 17, - 98 col0
----
17
-98

query I rowsort
SELECT ALL + 23 * 34
----
782

onlyif mysql # aggregate syntax: 
query II rowsort label-8639
SELECT DISTINCT + 62, 82 * + COUNT( * ) * + 92 AS col2
----
62
7544

skipif mysql # not compatible
query II rowsort label-8639
SELECT DISTINCT + 62, 82 * + COUNT ( * ) * + 92 AS col2
----
62
7544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT CASE + - CAST( NULL AS SIGNED ) WHEN + + 87 THEN 78 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT CASE + - CAST ( NULL AS INTEGER ) WHEN + + 87 THEN 78 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT ALL MIN( COALESCE ( + 74, - 40 ) ) * + MAX( ALL 26 ) - + + NULLIF ( + + MIN( 14 ), + ( - - 90 ) ) + 92 AS col2
----
2002

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL MIN ( COALESCE ( + 74, - 40 ) ) * + MAX ( ALL 26 ) - + + NULLIF ( + + MIN ( 14 ), + ( - - 90 ) ) + 92 AS col2
----
2002

onlyif mysql # aggregate syntax: 
query II rowsort label-8642
SELECT - ( 82 ) + + COALESCE ( - - 10, 95, 35 * 13 * ( - 89 ) ) col2, SUM( 5 ) * - + 0 + + 41
----
-72
41

skipif mysql # not compatible
query II rowsort label-8642
SELECT - ( 82 ) + + COALESCE ( - - 10, 95, 35 * 13 * ( - 89 ) ) col2, SUM ( 5 ) * - + 0 + + 41
----
-72
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8643
SELECT + 37 * + - ( - - COALESCE ( CAST( NULL AS SIGNED ), + CASE - - 43 WHEN + 43 * - - 38 + 35 / COUNT( DISTINCT 74 ) THEN 90 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8643
SELECT + 37 * + - ( - - COALESCE ( CAST ( NULL AS INTEGER ), + CASE - - 43 WHEN + 43 * - - 38 + 35 / COUNT ( DISTINCT 74 ) THEN 90 END ) )
----
NULL

query I rowsort
SELECT + 49 * - + 86
----
-4214

query I rowsort
SELECT + 7 + + 71
----
78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8646
SELECT - CAST( - - ( CAST( - - 39 AS DECIMAL ) ) AS SIGNED ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-8646
SELECT - CAST ( - - ( CAST ( - - 39 AS REAL ) ) AS INTEGER ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT COUNT( - + 51 )
----
1

skipif mysql # not compatible
query I rowsort label-8647
SELECT COUNT ( - + 51 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT + 84 + + - 78 * - + 85 * + SUM( ALL 9 ) AS col0
----
59754

skipif mysql # not compatible
query I rowsort label-8648
SELECT + 84 + + - 78 * - + 85 * + SUM ( ALL 9 ) AS col0
----
59754

onlyif mysql # aggregate syntax: 
query II rowsort label-8649
SELECT ALL COUNT( 57 ) * - 67 AS col2, ( + + 64 ) AS col1
----
-67
64

skipif mysql # not compatible
query II rowsort label-8649
SELECT ALL COUNT ( 57 ) * - 67 AS col2, ( + + 64 ) AS col1
----
-67
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8650
SELECT + 1 DIV - - 89 * - COUNT( * ) * + 2
----
0

skipif mysql # not compatible
query I rowsort label-8650
SELECT + 1 / - - 89 * - COUNT ( * ) * + 2
----
0

query I rowsort
SELECT + - 4 * 53
----
-212

query I rowsort
SELECT + - 45 + - - 11
----
-34

query I rowsort
SELECT + - ( - - 57 ) + - + 60 AS col1
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8654
SELECT - CAST( NULL AS SIGNED ) AS col0, + 21 * + 97 col2
----
NULL
2037

skipif mysql # not compatible
query II rowsort label-8654
SELECT - CAST ( NULL AS INTEGER ) AS col0, + 21 * + 97 col2
----
NULL
2037

query I rowsort
SELECT - 66 * - ( 61 ) * - 56
----
-225456

query I rowsort
SELECT ALL + 99 + 95 AS col2
----
194

query I rowsort
SELECT DISTINCT ( - - 92 ) AS col0
----
92

query I rowsort
SELECT DISTINCT + 66 * + 60
----
3960

query I rowsort
SELECT ALL - 8 * - 53
----
424

query I rowsort
SELECT ALL - 97 + + - 33
----
-130

query I rowsort
SELECT + + ( + 97 )
----
97

query I rowsort
SELECT - 98 + + 71
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8663
SELECT - CAST( NULL AS SIGNED ) AS col2, - 36 * + + 6 AS col2
----
NULL
-216

skipif mysql # not compatible
query II rowsort label-8663
SELECT - CAST ( NULL AS INTEGER ) AS col2, - 36 * + + 6 AS col2
----
NULL
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT ALL - 47 * SUM( + - 16 ) + + 11
----
763

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL - 47 * SUM ( + - 16 ) + + 11
----
763

query I rowsort
SELECT - 36 * - 54 + + 60 AS col2
----
2004

onlyif mysql # aggregate syntax: 
query II rowsort label-8666
SELECT - ( - COUNT( * ) ) * + 75 AS col0, + 72 AS col1
----
75
72

skipif mysql # not compatible
query II rowsort label-8666
SELECT - ( - COUNT ( * ) ) * + 75 AS col0, + 72 AS col1
----
75
72

query II rowsort
SELECT + 81, 24 AS col0
----
81
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT ALL + 82 - + + COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL + 82 - + + COUNT ( * ) AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8669
SELECT 75 + - 23 + 34 - - + 65 DIV COUNT( * )
----
151

skipif mysql # not compatible
query I rowsort label-8669
SELECT 75 + - 23 + 34 - - + 65 / COUNT ( * )
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-8670
SELECT 82 DIV + 85 + - 23 + - 30
----
-53

skipif mysql # not compatible
query I rowsort label-8670
SELECT 82 / + 85 + - 23 + - 30
----
-53

query I rowsort
SELECT 91 + - 70 col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL + SUM( ALL - + CASE + 25 WHEN 98 / 87 + - 18 THEN - 35 + - - ( - + 79 ) WHEN ( - 66 ) THEN - 43 ELSE NULL END ) / - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL + SUM ( ALL - + CASE + 25 WHEN 98 / 87 + - 18 THEN - 35 + - - ( - + 79 ) WHEN ( - 66 ) THEN - 43 ELSE NULL END ) / - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT 92 * - - 10 * MIN( ALL + 2 ) + + + 81
----
1921

skipif mysql # not compatible
query I rowsort label-8673
SELECT 92 * - - 10 * MIN ( ALL + 2 ) + + + 81
----
1921

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT COUNT( * ) + - NULLIF ( + - 57, ( + COUNT( * ) ) - - - 92 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8674
SELECT COUNT ( * ) + - NULLIF ( + - 57, ( + COUNT ( * ) ) - - - 92 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT DISTINCT + SUM( DISTINCT 26 ) * + 61
----
1586

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT + SUM ( DISTINCT 26 ) * + 61
----
1586

query II rowsort
SELECT 6 * + 72 AS col2, 84 AS col0
----
432
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8677
SELECT 9 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8677
SELECT 9 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT ALL - COUNT( * ) * - ( 8 )
----
8

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL - COUNT ( * ) * - ( 8 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8679
SELECT DISTINCT + 75 * COALESCE ( - 96, + 94 * + COALESCE ( 88, - 30 + + 5 * 63 ) * 65 + + 36 + + CASE + - 97 WHEN 59 THEN CAST( + 45 AS SIGNED ) WHEN + 16 THEN NULL END + + 14 ) * COALESCE ( - 65, + 25 ) AS col2
----
468000

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT + 75 * COALESCE ( - 96, + 94 * + COALESCE ( 88, - 30 + + 5 * 63 ) * 65 + + 36 + + CASE + - 97 WHEN 59 THEN CAST ( + 45 AS INTEGER ) WHEN + 16 THEN NULL END + + 14 ) * COALESCE ( - 65, + 25 ) AS col2
----
468000

query II rowsort
SELECT COALESCE ( 32, - + 31, 66 ) + - + 33 + + 62 * - 75 AS col2, - 77 AS col2
----
-4651
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT CAST( NULL AS SIGNED ) * 37 * + 73 - - - CAST( - + 16 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT CAST ( NULL AS INTEGER ) * 37 * + 73 - - - CAST ( - + 16 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 94 + + 7
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-8683
SELECT 81 * - CASE + - 18 WHEN + - SUM( 91 ) THEN NULL WHEN - 18 * + 21 * - AVG ( - - 38 ) + + COUNT( * ) * + + COUNT( DISTINCT + ( - 93 ) ) THEN - 28 END AS col1, - CASE + COUNT( DISTINCT + 34 ) WHEN AVG ( - 56 ) + MAX( DISTINCT + - 53 ) THEN NULL ELSE COUNT( * ) * + - 97 + + 6 END
----
NULL
91

skipif mysql # not compatible
query II rowsort label-8683
SELECT 81 * - CASE + - 18 WHEN + - SUM ( 91 ) THEN NULL WHEN - 18 * + 21 * - AVG ( - - 38 ) + + COUNT ( * ) * + + COUNT ( DISTINCT + ( - 93 ) ) THEN - 28 END AS col1, - CASE + COUNT ( DISTINCT + 34 ) WHEN AVG ( - 56 ) + MAX ( DISTINCT + - 53 ) THEN NULL ELSE COUNT ( * ) * + - 97 + + 6 END
----
NULL
91

query I rowsort
SELECT - 54 + 67 AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT ALL 24 * CASE + NULLIF ( - 89, 69 + + 78 ) WHEN + + ( + 76 ) THEN NULL ELSE - COALESCE ( 66, + 98, + 99 + 61 ) END / 26 * - 38 / CAST( NULL AS SIGNED ) + + CASE WHEN NOT 80 > NULL THEN + - CAST( - - 54 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL 24 * CASE + NULLIF ( - 89, 69 + + 78 ) WHEN + + ( + 76 ) THEN NULL ELSE - COALESCE ( 66, + 98, + 99 + 61 ) END / 26 * - 38 / CAST ( NULL AS INTEGER ) + + CASE WHEN NOT 80 > NULL THEN + - CAST ( - - 54 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8686
SELECT DISTINCT 42 * - + COUNT( * ) DIV - + SUM( 70 ) * - 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT 42 * - + COUNT ( * ) / - + SUM ( 70 ) * - 20 AS col1
----
0

query I rowsort
SELECT DISTINCT + 59 + 28
----
87

query II rowsort
SELECT DISTINCT 86 + + - 76 AS col0, CASE + 2 WHEN - NULLIF ( + 53, + 23 ) THEN NULL ELSE - 59 END
----
10
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8689
SELECT - COUNT( * ) + + 51 + + CAST( NULL AS SIGNED ) * - - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8689
SELECT - COUNT ( * ) + + 51 + + CAST ( NULL AS INTEGER ) * - - 82 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 69 + + - 39 AS col2
----
30

query I rowsort
SELECT DISTINCT - 9 * + 89 AS col1
----
-801

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT - ( 81 ) * - COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8692
SELECT - ( 81 ) * - COUNT ( * ) AS col0
----
81

query I rowsort
SELECT 29 - - 86
----
115

query I rowsort
SELECT + 79 + - 37 + + + 37 * - + 90 - 82 * + + ( - 25 ) col0
----
-1238

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT ALL + 85 - + COUNT( * ) * COALESCE ( 96, + - 70 + - + COUNT( * ) * + COUNT( * ), + + COUNT( * ) + + 47 + + 18 ) + - 26 * 88 * + + COUNT( * )
----
-2299

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL + 85 - + COUNT ( * ) * COALESCE ( 96, + - 70 + - + COUNT ( * ) * + COUNT ( * ), + + COUNT ( * ) + + 47 + + 18 ) + - 26 * 88 * + + COUNT ( * )
----
-2299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8696
SELECT ALL ( + 7 ) DIV + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL ( + 7 ) / + COUNT ( * )
----
7

query I rowsort
SELECT + 23 * - 54 AS col0
----
-1242

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8698
SELECT CAST( 64 AS SIGNED ) DIV 96 * - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8698
SELECT CAST ( 64 AS INTEGER ) / 96 * - 32 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8699
SELECT DISTINCT 39 DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT 39 / + 92 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL 97 - SUM( 61 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL 97 - SUM ( 61 ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT ALL - COUNT( + + CAST( NULL AS SIGNED ) ) * + 52
----
0

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL - COUNT ( + + CAST ( NULL AS INTEGER ) ) * + 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT + COUNT( DISTINCT - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-8702
SELECT + COUNT ( DISTINCT - 40 )
----
1

query I rowsort
SELECT 16 * + - 36
----
-576

query I rowsort
SELECT ALL + 88 * - 22 col2
----
-1936

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT DISTINCT COUNT( * ) * - 45 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT COUNT ( * ) * - 45 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT 16 - - + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-8706
SELECT 16 - - + COUNT ( * )
----
17

query I rowsort
SELECT 19 * - + 83
----
-1577

query I rowsort
SELECT ALL + ( - - 20 ) + - + 92 AS col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8709
SELECT ALL - COUNT( ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL - COUNT ( ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT DISTINCT + 43 + - ( - COUNT( * ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT + 43 + - ( - COUNT ( * ) ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8711
SELECT CAST( NULL AS SIGNED ) / - 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8711
SELECT CAST ( NULL AS INTEGER ) / - 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT 18 * - COUNT( * ) + + + COUNT( + + 98 )
----
-17

skipif mysql # not compatible
query I rowsort label-8712
SELECT 18 * - COUNT ( * ) + + + COUNT ( + + 98 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8713
SELECT + CAST( NULL AS SIGNED ) * + + COUNT( * ) / - 51, + 42 AS col2
----
NULL
42

skipif mysql # not compatible
query II rowsort label-8713
SELECT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) / - 51, + 42 AS col2
----
NULL
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT ALL - - 57 * + 10 * + 55 + COUNT( * ) * + 72
----
31422

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL - - 57 * + 10 * + 55 + COUNT ( * ) * + 72
----
31422

onlyif mysql # DIV for integer division: 
query I rowsort label-8715
SELECT ALL - 21 DIV + 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL - 21 / + 46 AS col2
----
0

query I rowsort
SELECT ALL + 63 + COALESCE ( 73, 2 * + 15, + 48 ) * - 13 * - 13 + + 94
----
12494

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL - 71 * + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL - 71 * + COUNT ( * )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-8718
SELECT - + COUNT( * ), 71 AS col0
----
-1
71

skipif mysql # not compatible
query II rowsort label-8718
SELECT - + COUNT ( * ), 71 AS col0
----
-1
71

query I rowsort
SELECT - 71 + - + ( + - 46 ) col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT - COUNT( ALL ( 25 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8720
SELECT - COUNT ( ALL ( 25 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT - CAST( + 8 AS SIGNED ) + - 30 * + 87 * - + 90 AS col2
----
234892

skipif mysql # not compatible
query I rowsort label-8721
SELECT - CAST ( + 8 AS INTEGER ) + - 30 * + 87 * - + 90 AS col2
----
234892

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT + MAX( ALL + 12 ) * - - COUNT( * ) + + MIN( DISTINCT + - 27 )
----
-15

skipif mysql # not compatible
query I rowsort label-8722
SELECT + MAX ( ALL + 12 ) * - - COUNT ( * ) + + MIN ( DISTINCT + - 27 )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8723
SELECT + - ( - 64 ) + 8 + - COUNT( * ) * 84 + 43 * 3 + - 55 DIV + + COALESCE ( + 93, 85 ) + - COUNT( * ) - 5
----
111

skipif mysql # not compatible
query I rowsort label-8723
SELECT + - ( - 64 ) + 8 + - COUNT ( * ) * 84 + 43 * 3 + - 55 / + + COALESCE ( + 93, 85 ) + - COUNT ( * ) - 5
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT DISTINCT COUNT( * ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8725
SELECT DISTINCT - COALESCE ( - 27, - CAST( NULL AS SIGNED ) + + 4 * 47 )
----
27

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT - COALESCE ( - 27, - CAST ( NULL AS INTEGER ) + + 4 * 47 )
----
27

query I rowsort
SELECT + - 75 * - - 29 * - 51
----
110925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8727
SELECT DISTINCT + 18 DIV + SUM( ALL - 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT + 18 / + SUM ( ALL - 11 )
----
-1

query I rowsort
SELECT ALL ( - + 55 )
----
-55

query II rowsort
SELECT DISTINCT + 71 AS col0, 80 * + 53 AS col2
----
71
4240

query I rowsort
SELECT + 44 * 69
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT - 56 + - + NULLIF ( ( + 18 ), + COUNT( * ) ) - + 14
----
-88

skipif mysql # not compatible
query I rowsort label-8731
SELECT - 56 + - + NULLIF ( ( + 18 ), + COUNT ( * ) ) - + 14
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT + MAX( ALL - 62 ) * 79 + 84
----
-4814

skipif mysql # not compatible
query I rowsort label-8732
SELECT + MAX ( ALL - 62 ) * 79 + 84
----
-4814

onlyif mysql # DIV for integer division: 
query I rowsort label-8733
SELECT 28 DIV + + 80 + + + COALESCE ( - 1, 36 + + 33 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8733
SELECT 28 / + + 80 + + + COALESCE ( - 1, 36 + + 33 ) AS col2
----
-1

query I rowsort
SELECT + 14 * + 80 * - 48 AS col2
----
-53760

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT + 84 * + MAX( - 93 )
----
-7812

skipif mysql # not compatible
query I rowsort label-8735
SELECT + 84 * + MAX ( - 93 )
----
-7812

query I rowsort
SELECT ALL 89 * 67 + + - 73
----
5890

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT DISTINCT MIN( 15 ) * + 13 + + + NULLIF ( + - ( COUNT( * ) ), + - AVG ( - 39 ) * + + 51 + + - 48 + - + 84 )
----
194

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT MIN ( 15 ) * + 13 + + + NULLIF ( + - ( COUNT ( * ) ), + - AVG ( - 39 ) * + + 51 + + - 48 + - + 84 )
----
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8738
SELECT ALL + 96 * CAST( + 16 AS SIGNED ) + - ( + COUNT( * ) )
----
1535

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL + 96 * CAST ( + 16 AS INTEGER ) + - ( + COUNT ( * ) )
----
1535

query I rowsort
SELECT + 78 + 13 AS col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8740
SELECT ALL 84 DIV - - 43 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL 84 / - - 43 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8741
SELECT 66 * 71 + - 27 DIV 81
----
4686

skipif mysql # not compatible
query I rowsort label-8741
SELECT 66 * 71 + - 27 / 81
----
4686

query I rowsort
SELECT ALL - 19 * + 64 + + 24 - - 70 AS col2
----
-1122

query I rowsort
SELECT + 18 * 1
----
18

query I rowsort
SELECT - COALESCE ( 10, - - 27 ) + + + 74 AS col0
----
64

query I rowsort
SELECT CASE 83 WHEN - + 82 THEN NULL WHEN + ( - 88 ) THEN - 29 ELSE - + 31 END
----
-31

query I rowsort
SELECT DISTINCT - 59 * 44 + 44 AS col0
----
-2552

query I rowsort
SELECT DISTINCT 79 * - 11 - - + 51
----
-818

query II rowsort
SELECT - 15 AS col1, 78 + + 51
----
-15
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT + - COUNT( * ) * - 7
----
7

skipif mysql # not compatible
query I rowsort label-8749
SELECT + - COUNT ( * ) * - 7
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT - - 15 * 91 * - CAST( NULL AS SIGNED ) + + ( + 34 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT - - 15 * 91 * - CAST ( NULL AS INTEGER ) + + ( + 34 ) AS col1
----
NULL

query I rowsort
SELECT ALL - CASE - + 49 WHEN + - 5 THEN NULL ELSE + 5 + - 79 END col0
----
74

query I rowsort
SELECT - ( - - 6 ) col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT + - COUNT( * ) + + 56 + + - 30 + - - 7
----
32

skipif mysql # not compatible
query I rowsort label-8753
SELECT + - COUNT ( * ) + + 56 + + - 30 + - - 7
----
32

query I rowsort
SELECT DISTINCT + 18 - - - 11
----
7

query I rowsort
SELECT ALL - + 37 * - 57 AS col1
----
2109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT - + CAST( - 54 AS SIGNED ) * - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-8756
SELECT - + CAST ( - 54 AS INTEGER ) * - COUNT ( * )
----
-54

query I rowsort
SELECT DISTINCT - 27 * + 1 AS col2
----
-27

query I rowsort
SELECT ALL + 68 * 52 AS col2
----
3536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8759
SELECT DISTINCT + - COUNT( * ) - + COUNT( * ) col1, - NULLIF ( ( - + COUNT( * ) ), + - CAST( - 44 AS DECIMAL ) + - CAST( NULL AS SIGNED ) - ( + 17 ) ) * ( CASE 61 WHEN - 97 * NULLIF ( + + 48, 64 * + - 0 + + + 97 - + - 83 * - 0 ) / 13 - - CAST( NULL AS SIGNED ) - - + 28 + 38 + + - 51 * - 23 THEN NULL ELSE CAST( NULL AS SIGNED ) END ) * 64 + + ( + 89 )
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-8759
SELECT DISTINCT + - COUNT ( * ) - + COUNT ( * ) col1, - NULLIF ( ( - + COUNT ( * ) ), + - CAST ( - 44 AS REAL ) + - CAST ( NULL AS INTEGER ) - ( + 17 ) ) * ( CASE 61 WHEN - 97 * NULLIF ( + + 48, 64 * + - 0 + + + 97 - + - 83 * - 0 ) / 13 - - CAST ( NULL AS INTEGER ) - - + 28 + 38 + + - 51 * - 23 THEN NULL ELSE CAST ( NULL AS INTEGER ) END ) * 64 + + ( + 89 )
----
-2
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8760
SELECT DISTINCT COUNT( * ), - NULLIF ( + 84, - MAX( - - 89 ) ) AS col0
----
1
-84

skipif mysql # not compatible
query II rowsort label-8760
SELECT DISTINCT COUNT ( * ), - NULLIF ( + 84, - MAX ( - - 89 ) ) AS col0
----
1
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8761
SELECT - COUNT( * ) DIV 82 * + - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8761
SELECT - COUNT ( * ) / 82 * + - 54 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT + 21 * + CASE 89 WHEN CASE 31 WHEN + + 88 THEN NULL WHEN + 75 THEN NULL ELSE + 24 * - + MAX( DISTINCT + 73 ) + - 17 / - NULLIF ( + MAX( - 52 ), 16 ) END THEN - 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8762
SELECT + 21 * + CASE 89 WHEN CASE 31 WHEN + + 88 THEN NULL WHEN + 75 THEN NULL ELSE + 24 * - + MAX ( DISTINCT + 73 ) + - 17 / - NULLIF ( + MAX ( - 52 ), 16 ) END THEN - 2 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8763
SELECT + 14 + + 83, COUNT( * ) * + 73 AS col0
----
97
73

skipif mysql # not compatible
query II rowsort label-8763
SELECT + 14 + + 83, COUNT ( * ) * + 73 AS col0
----
97
73

query I rowsort
SELECT - 85 * 74
----
-6290

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ALL + 1 / + SUM( 13 ) + + CASE + 40 WHEN - 20 THEN 81 * - - COUNT( - 95 ) * - 61 + - 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL + 1 / + SUM ( 13 ) + + CASE + 40 WHEN - 20 THEN 81 * - - COUNT ( - 95 ) * - 61 + - 36 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT + CASE 45 WHEN - - 84 THEN - COUNT( * ) WHEN - 67 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT + CASE 45 WHEN - - 84 THEN - COUNT ( * ) WHEN - 67 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 96 col2
----
96

query II rowsort
SELECT 25 * - 48 - + 20 col1, 15 + - 41 + 9 + 47 + + 56 * + ( 85 ) AS col2
----
-1220
4790

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT - 84 * + COUNT( - 11 ) - 85
----
-169

skipif mysql # not compatible
query I rowsort label-8769
SELECT - 84 * + COUNT ( - 11 ) - 85
----
-169

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8770
SELECT - 19 DIV + - 19, MAX( - - 1 ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-8770
SELECT - 19 / + - 19, MAX ( - - 1 ) AS col2
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8771
SELECT ALL 90 - - 36 AS col1, - 25 DIV - COUNT( * )
----
126
25

skipif mysql # not compatible
query II rowsort label-8771
SELECT ALL 90 - - 36 AS col1, - 25 / - COUNT ( * )
----
126
25

onlyif mysql # aggregate syntax: 
query III rowsort label-8772
SELECT ALL - NULLIF ( 27, - - 51 ), + 14 * COUNT( * ) AS col0, + NULLIF ( - 9, - 16 * - + 52 ) AS col0
----
-27
14
-9

skipif mysql # not compatible
query III rowsort label-8772
SELECT ALL - NULLIF ( 27, - - 51 ), + 14 * COUNT ( * ) AS col0, + NULLIF ( - 9, - 16 * - + 52 ) AS col0
----
-27
14
-9

query I rowsort
SELECT - 73 * - 25 AS col0
----
1825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8774
SELECT DISTINCT - + CASE - MIN( - 70 ) WHEN + 36 THEN + 79 END col1, 96 - + - CAST( + + 8 AS SIGNED )
----
NULL
104

skipif mysql # not compatible
query II rowsort label-8774
SELECT DISTINCT - + CASE - MIN ( - 70 ) WHEN + 36 THEN + 79 END col1, 96 - + - CAST ( + + 8 AS INTEGER )
----
NULL
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT + COUNT( * ) / - CASE - 0 WHEN + 80 THEN + COUNT( * ) END - + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8775
SELECT + COUNT ( * ) / - CASE - 0 WHEN + 80 THEN + COUNT ( * ) END - + 96
----
NULL

query I rowsort
SELECT 86 * - 60 AS col1
----
-5160

query I rowsort
SELECT + 10 * + 45
----
450

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8778
SELECT CAST( NULL AS SIGNED ) + - CAST( - 29 AS DECIMAL ) + - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT CAST ( NULL AS INTEGER ) + - CAST ( - 29 AS REAL ) + - 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT DISTINCT - COUNT( * ) * 73
----
-73

skipif mysql # not compatible
query I rowsort label-8779
SELECT DISTINCT - COUNT ( * ) * 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT + MAX( - - 92 ) + - - 51
----
143

skipif mysql # not compatible
query I rowsort label-8780
SELECT + MAX ( - - 92 ) + - - 51
----
143

query II rowsort
SELECT ALL 37 * - 10 AS col2, - ( - 53 )
----
-370
53

query I rowsort
SELECT DISTINCT ( - 17 ) AS col2
----
-17

query I rowsort
SELECT DISTINCT COALESCE ( - - 4, - ( - + 47 ) ) col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT COUNT( * ) + 25 + 8 * - 77
----
-590

skipif mysql # not compatible
query I rowsort label-8784
SELECT COUNT ( * ) + 25 + 8 * - 77
----
-590

query I rowsort
SELECT 35 * - 81 col1
----
-2835

query I rowsort
SELECT + 17 + - + 87 AS col2
----
-70

query I rowsort
SELECT ALL CASE + 66 WHEN + - 45 THEN + 48 WHEN + 34 / + + 37 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8788
SELECT 94 col2, MAX( DISTINCT + 63 )
----
94
63

skipif mysql # not compatible
query II rowsort label-8788
SELECT 94 col2, MAX ( DISTINCT + 63 )
----
94
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8789
SELECT DISTINCT - COUNT( * ) + + ( - + CAST( 21 AS SIGNED ) ) / - - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT - COUNT ( * ) + + ( - + CAST ( 21 AS INTEGER ) ) / - - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL 73 + - NULLIF ( ( 32 ), 4 + - 24 ), - 86 * + 30 AS col2
----
41
-2580

query I rowsort
SELECT 16 - + 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT DISTINCT COUNT( * ) * + 85
----
85

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT COUNT ( * ) * + 85
----
85

onlyif mysql # DIV for integer division: 
query II rowsort label-8793
SELECT ALL 8 AS col1, + 48 DIV + 73 AS col2
----
8
0

skipif mysql # not compatible
query II rowsort label-8793
SELECT ALL 8 AS col1, + 48 / + 73 AS col2
----
8
0

query I rowsort
SELECT 25 - - + 92 AS col0
----
117

query I rowsort
SELECT DISTINCT - 84 * + 14 AS col1
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT 15 + MAX( DISTINCT - - 80 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-8796
SELECT 15 + MAX ( DISTINCT - - 80 ) AS col2
----
95

onlyif mysql # DIV for integer division: 
query II rowsort label-8797
SELECT 93 DIV 99 * + 51 - - 67 col1, 97
----
67
97

skipif mysql # not compatible
query II rowsort label-8797
SELECT 93 / 99 * + 51 - - 67 col1, 97
----
67
97

query I rowsort
SELECT - 18 * - 51 + - - 46 AS col2
----
964

query II rowsort
SELECT DISTINCT + NULLIF ( + 31, - 74 ) - + 17 + - + 12 * - 82, - 41 AS col2
----
998
-41

query II rowsort
SELECT ALL - 15 AS col0, + 42 AS col2
----
-15
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT COUNT( + 71 ) + 78 * - + 68 + 58 + + 98 * 52
----
-149

skipif mysql # not compatible
query I rowsort label-8801
SELECT COUNT ( + 71 ) + 78 * - + 68 + 58 + + 98 * 52
----
-149

query I rowsort
SELECT ALL - ( - 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL - MIN( + 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL - MIN ( + 94 ) AS col1
----
-94

query I rowsort
SELECT ALL + ( 48 ) * + 25
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8805
SELECT + ( - - 97 ) * 83 + NULLIF ( CAST( 67 AS SIGNED ), + + 4 ) AS col0
----
8118

skipif mysql # not compatible
query I rowsort label-8805
SELECT + ( - - 97 ) * 83 + NULLIF ( CAST ( 67 AS INTEGER ), + + 4 ) AS col0
----
8118

query II rowsort
SELECT ALL - + 41 AS col0, + 11 + 70 AS col0
----
-41
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8807
SELECT + - 11, + CAST( NULL AS SIGNED ) AS col1
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-8807
SELECT + - 11, + CAST ( NULL AS INTEGER ) AS col1
----
-11
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8808
SELECT + + 55 AS col2, + MIN( ALL + 68 ) AS col2
----
55
68

skipif mysql # not compatible
query II rowsort label-8808
SELECT + + 55 AS col2, + MIN ( ALL + 68 ) AS col2
----
55
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ( 4 ) + - ( + ( + MIN( DISTINCT + - 70 ) ) )
----
74

skipif mysql # not compatible
query I rowsort label-8809
SELECT ( 4 ) + - ( + ( + MIN ( DISTINCT + - 70 ) ) )
----
74

query II rowsort
SELECT - 99 AS col1, + 53
----
-99
53

onlyif mysql # DIV for integer division: 
query II rowsort label-8811
SELECT 1 DIV + + 59 + 94 AS col0, 59
----
94
59

skipif mysql # not compatible
query II rowsort label-8811
SELECT 1 / + + 59 + 94 AS col0, 59
----
94
59

query I rowsort
SELECT ALL 64 * - 94
----
-6016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8813
SELECT - COUNT( * ) + + COALESCE ( - ( - + 72 ), - SUM( DISTINCT - 73 ) * + SUM( CAST( 73 AS SIGNED ) ) ) col2
----
71

skipif mysql # not compatible
query I rowsort label-8813
SELECT - COUNT ( * ) + + COALESCE ( - ( - + 72 ), - SUM ( DISTINCT - 73 ) * + SUM ( CAST ( 73 AS INTEGER ) ) ) col2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8814
SELECT 80 DIV - 46 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8814
SELECT 80 / - 46 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8815
SELECT ALL - + 30, + 94 DIV - 32 AS col2
----
-30
-2

skipif mysql # not compatible
query II rowsort label-8815
SELECT ALL - + 30, + 94 / - 32 AS col2
----
-30
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT + CASE + 19 WHEN + COUNT( * ) THEN NULL ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-8816
SELECT + CASE + 19 WHEN + COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8817
SELECT ALL COUNT( * ) AS col0, 78 AS col0
----
1
78

skipif mysql # not compatible
query II rowsort label-8817
SELECT ALL COUNT ( * ) AS col0, 78 AS col0
----
1
78

query I rowsort
SELECT ALL + 77 * - - 11 + - 23 - - + 70
----
894

onlyif mysql # DIV for integer division: 
query I rowsort label-8819
SELECT - 96 DIV + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8819
SELECT - 96 / + 97 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8820
SELECT DISTINCT SUM( ALL - - 91 ) + - COUNT( * ) DIV - 60
----
91

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT SUM ( ALL - - 91 ) + - COUNT ( * ) / - 60
----
91

query II rowsort
SELECT ALL 95 AS col2, - ( + + ( 66 ) )
----
95
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8822
SELECT - CAST( + 70 AS SIGNED ) + - 59 AS col0, - 69
----
-129
-69

skipif mysql # not compatible
query II rowsort label-8822
SELECT - CAST ( + 70 AS INTEGER ) + - 59 AS col0, - 69
----
-129
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8823
SELECT - - 98 AS col2, - COUNT( - - CAST( NULL AS SIGNED ) ) AS col0
----
98
0

skipif mysql # not compatible
query II rowsort label-8823
SELECT - - 98 AS col2, - COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
98
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8824
SELECT DISTINCT ( COUNT( * ) ) + - 81 - 15 * - - 55 + - + ( + ( - COALESCE ( - + 75, + 32 * 49 DIV + 43 + + 97 + - CASE COUNT( * ) WHEN + - 81 DIV - AVG ( - 38 ) * 57 + + 43 THEN + 2 END * + COUNT( DISTINCT - 14 ), - NULLIF ( - + 20, + 71 * + 36 ) + + 12 ) ) )
----
-980

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT ( COUNT ( * ) ) + - 81 - 15 * - - 55 + - + ( + ( - COALESCE ( - + 75, + 32 * 49 / + 43 + + 97 + - CASE COUNT ( * ) WHEN + - 81 / - AVG ( - 38 ) * 57 + + 43 THEN + 2 END * + COUNT ( DISTINCT - 14 ), - NULLIF ( - + 20, + 71 * + 36 ) + + 12 ) ) )
----
-980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8825
SELECT DISTINCT COUNT( * ) + CAST( NULL AS SIGNED ) * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT COUNT ( * ) + CAST ( NULL AS INTEGER ) * - 97
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT DISTINCT 32 * - CAST( + + 7 AS SIGNED ) AS col1
----
-224

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT 32 * - CAST ( + + 7 AS INTEGER ) AS col1
----
-224

query I rowsort
SELECT ALL + COALESCE ( - - 74, 81 ) + + 95 * - 21 * ( + - 4 ) + + 58
----
8112

query II rowsort
SELECT DISTINCT 26 + + 45, - 83 AS col0
----
71
-83

query I rowsort
SELECT 35 + - 69
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL 61 + + COUNT( * ) + - 48 + 61
----
75

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL 61 + + COUNT ( * ) + - 48 + 61
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT ALL NULLIF ( + 18, + COUNT( * ) * + - 71 ) + ( 19 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL NULLIF ( + 18, + COUNT ( * ) * + - 71 ) + ( 19 ) AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8832
SELECT NULLIF ( 29, + 49 ) DIV - - 81 AS col0, COUNT( * ) + 78 + + 66 AS col0
----
0
145

skipif mysql # not compatible
query II rowsort label-8832
SELECT NULLIF ( 29, + 49 ) / - - 81 AS col0, COUNT ( * ) + 78 + + 66 AS col0
----
0
145

query I rowsort
SELECT 60 + + 30 AS col0
----
90

query I rowsort
SELECT 64 * - - 14
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT ALL + 98 - COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL + 98 - COUNT ( * ) AS col1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8836
SELECT DISTINCT ( - 47 ) DIV ( 78 ) * + COALESCE ( - + 90, - + 15 + + - 50 ) + - + MIN( 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT ( - 47 ) / ( 78 ) * + COALESCE ( - + 90, - + 15 + + - 50 ) + - + MIN ( 57 ) AS col1
----
-57

query I rowsort
SELECT - 89 * + 56 AS col2
----
-4984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT ALL CAST( - ( + 34 ) AS SIGNED ) * 87 * ( + 18 ) AS col1
----
-53244

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL CAST ( - ( + 34 ) AS INTEGER ) * 87 * ( + 18 ) AS col1
----
-53244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8839
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) - - CAST( NULL AS SIGNED ) * 2 - - COUNT( * ) - 79 - - NULLIF ( + + 0, 65 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) - - CAST ( NULL AS INTEGER ) * 2 - - COUNT ( * ) - 79 - - NULLIF ( + + 0, 65 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT - 69 * COUNT( * ) + 75
----
6

skipif mysql # not compatible
query I rowsort label-8840
SELECT - 69 * COUNT ( * ) + 75
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8841
SELECT + 22 * - COALESCE ( CAST( NULL AS SIGNED ), - + 45 ) - + + 13
----
977

skipif mysql # not compatible
query I rowsort label-8841
SELECT + 22 * - COALESCE ( CAST ( NULL AS INTEGER ), - + 45 ) - + + 13
----
977

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT DISTINCT + - CASE 36 WHEN + - 43 + CASE 88 WHEN - 86 THEN + 46 END - + - ( - + 50 ) / - 29 THEN - + ( - + NULLIF ( 54, 26 / + 16 + - COUNT( * ) ) ) + + - 15 * - 25 WHEN + + COUNT( * ) * CAST( NULL AS SIGNED ) THEN + - 85 - 93 + - 36 * - - 15 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT + - CASE 36 WHEN + - 43 + CASE 88 WHEN - 86 THEN + 46 END - + - ( - + 50 ) / - 29 THEN - + ( - + NULLIF ( 54, 26 / + 16 + - COUNT ( * ) ) ) + + - 15 * - 25 WHEN + + COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN + - 85 - 93 + - 36 * - - 15 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ALL + ( + MAX( + 10 ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL + ( + MAX ( + 10 ) ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT - - COUNT( * ) * + + 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8844
SELECT - - COUNT ( * ) * + + 57 AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8845
SELECT + + COUNT( - 45 ) * - 57 DIV - NULLIF ( + - 88, + 93 - - 12 ) * - COUNT( - - 80 ) * 61 - COALESCE ( - ( + 42 ), + 51 - - 70, + + 41 * - + 23 ) - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-8845
SELECT + + COUNT ( - 45 ) * - 57 / - NULLIF ( + - 88, + 93 - - 12 ) * - COUNT ( - - 80 ) * 61 - COALESCE ( - ( + 42 ), + 51 - - 70, + + 41 * - + 23 ) - COUNT ( * )
----
41

query I rowsort
SELECT + 68 * 98 * - 58 + + 98
----
-386414

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT - MIN( DISTINCT + - 25 ) * 63 AS col2
----
1575

skipif mysql # not compatible
query I rowsort label-8847
SELECT - MIN ( DISTINCT + - 25 ) * 63 AS col2
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT DISTINCT + ( - ( MIN( ALL - 22 ) ) )
----
22

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT + ( - ( MIN ( ALL - 22 ) ) )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT - 59 * + COUNT( * ) * + 60 * + ( + 75 ) - - - 26 col1
----
-265526

skipif mysql # not compatible
query I rowsort label-8849
SELECT - 59 * + COUNT ( * ) * + 60 * + ( + 75 ) - - - 26 col1
----
-265526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8850
SELECT - 65 + CASE 4 WHEN + 86 THEN NULL ELSE + - CAST( - 44 AS SIGNED ) + - 86 END + + COUNT( * ) AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-8850
SELECT - 65 + CASE 4 WHEN + 86 THEN NULL ELSE + - CAST ( - 44 AS INTEGER ) + - 86 END + + COUNT ( * ) AS col2
----
-106

query I rowsort
SELECT ALL - 96 + - - 2
----
-94

query I rowsort
SELECT ALL NULLIF ( 13, 64 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT + 62 * + + COUNT( + + 8 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8853
SELECT + 62 * + + COUNT ( + + 8 ) AS col1
----
62

query II rowsort
SELECT - CASE + ( CASE AVG ( + + 82 ) WHEN - - 51 THEN NULL ELSE - 37 END ) WHEN - 86 THEN NULL ELSE - ( - 65 ) END AS col2, + 35 AS col1
----
-65
35

query I rowsort
SELECT - 26 * - - 15
----
-390

query I rowsort
SELECT + 32 * COALESCE ( + - 31, - - 83 )
----
-992

query I rowsort
SELECT - 2 * + 22
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT - MAX( + + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-8858
SELECT - MAX ( + + 5 )
----
-5

query I rowsort
SELECT - NULLIF ( + - 98, 68 - - 43 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT + SUM( + 27 ) - 7 * - ( - 75 ) AS col2
----
-498

skipif mysql # not compatible
query I rowsort label-8860
SELECT + SUM ( + 27 ) - 7 * - ( - 75 ) AS col2
----
-498

query I rowsort
SELECT - ( + - 78 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8862
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 66
----
NULL

query II rowsort
SELECT ALL 30 AS col1, - 36 AS col2
----
30
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8864
SELECT ALL CAST( NULL AS SIGNED ) * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL CAST ( NULL AS INTEGER ) * + 67
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8865
SELECT - CAST( - 36 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-8865
SELECT - CAST ( - 36 AS INTEGER )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8866
SELECT + SUM( DISTINCT 62 ) + 38 DIV + ( - 33 ) AS col0, + 88
----
61
88

skipif mysql # not compatible
query II rowsort label-8866
SELECT + SUM ( DISTINCT 62 ) + 38 / + ( - 33 ) AS col0, + 88
----
61
88

query I rowsort
SELECT ALL + + COALESCE ( - NULLIF ( 65, + 75 * 37 ), + ( + 22 ) + - ( - 81 ) ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT + 95 * 93 + + COUNT( * ) * 74 + - 59
----
8850

skipif mysql # not compatible
query I rowsort label-8868
SELECT + 95 * 93 + + COUNT ( * ) * 74 + - 59
----
8850

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT - + ( + SUM( ALL 45 ) ) - + 33 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8869
SELECT - + ( + SUM ( ALL 45 ) ) - + 33 AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8870
SELECT 12 DIV CAST( + 26 AS SIGNED ) + + 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8870
SELECT 12 / CAST ( + 26 AS INTEGER ) + + 31 AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8871
SELECT + + 38 DIV + COUNT( + - 34 )
----
38

skipif mysql # not compatible
query I rowsort label-8871
SELECT + + 38 / + COUNT ( + - 34 )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8872
SELECT ALL - 49 DIV + 63 + - + ( + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL - 49 / + 63 + - + ( + 33 )
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8873
SELECT DISTINCT - COUNT( * ) DIV + 98 + - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT - COUNT ( * ) / + 98 + - COUNT ( * ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT DISTINCT - COUNT( * ) * - - 77 * - + 3
----
231

skipif mysql # not compatible
query I rowsort label-8874
SELECT DISTINCT - COUNT ( * ) * - - 77 * - + 3
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT + 7 * 83 * ( - - 77 ) * 35 + + - 36 + 57 * + + COUNT( * )
----
1565816

skipif mysql # not compatible
query I rowsort label-8875
SELECT + 7 * 83 * ( - - 77 ) * 35 + + - 36 + 57 * + + COUNT ( * )
----
1565816

onlyif mysql # DIV for integer division: 
query I rowsort label-8876
SELECT + 0 DIV - - 14
----
0

skipif mysql # not compatible
query I rowsort label-8876
SELECT + 0 / - - 14
----
0

query I rowsort
SELECT + - 60 * - 1 AS col0
----
60

query I rowsort
SELECT + COALESCE ( 61, - + 96 ) AS col0
----
61

query I rowsort
SELECT - 83 + - 95 AS col2
----
-178

query II rowsort
SELECT + 80, 11 AS col1
----
80
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8881
SELECT DISTINCT - + 41 * + + 11 + + 62 + + 64 * + + NULLIF ( - + COUNT( * ), + - 6 * + 54 + + 7 + + 22 ) * + CAST( NULL AS SIGNED ) * - ( - 94 ) * - COUNT( ALL CAST( 12 AS DECIMAL ) ) + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT - + 41 * + + 11 + + 62 + + 64 * + + NULLIF ( - + COUNT ( * ), + - 6 * + 54 + + 7 + + 22 ) * + CAST ( NULL AS INTEGER ) * - ( - 94 ) * - COUNT ( ALL CAST ( 12 AS REAL ) ) + - 11
----
NULL

query I rowsort
SELECT DISTINCT + + 93 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT ALL - 19 * - + 86 * - COUNT( * ) + - + COUNT( * )
----
-1635

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL - 19 * - + 86 * - COUNT ( * ) + - + COUNT ( * )
----
-1635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8884
SELECT DISTINCT - CAST( - 5 AS SIGNED ) * 86 + + COUNT( * ) DIV + 90 * - + 81
----
430

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT - CAST ( - 5 AS INTEGER ) * 86 + + COUNT ( * ) / + 90 * - + 81
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL + SUM( ALL - - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL + SUM ( ALL - - 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL + COUNT( * ) * MAX( ALL + 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL + COUNT ( * ) * MAX ( ALL + 26 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT - 38 * - + SUM( DISTINCT 51 ) * 7 + - - 87
----
13653

skipif mysql # not compatible
query I rowsort label-8887
SELECT - 38 * - + SUM ( DISTINCT 51 ) * 7 + - - 87
----
13653

onlyif mysql # aggregate syntax: 
query II rowsort label-8888
SELECT COALESCE ( MIN( - 40 ), 51 ) AS col1, + 95 AS col2
----
-40
95

skipif mysql # not compatible
query II rowsort label-8888
SELECT COALESCE ( MIN ( - 40 ), 51 ) AS col1, + 95 AS col2
----
-40
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT DISTINCT + ( + COUNT( * ) ) * - 47
----
-47

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT + ( + COUNT ( * ) ) * - 47
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT - 2 - - + 92 * MAX( ALL CASE 7 WHEN - 62 * + 86 THEN + 3 * + 68 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT - 2 - - + 92 * MAX ( ALL CASE 7 WHEN - 62 * + 86 THEN + 3 * + 68 END )
----
NULL

query I rowsort
SELECT + 8 * 36 AS col2
----
288

query II rowsort
SELECT DISTINCT 57 AS col1, 67 col2
----
57
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) * + 39 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) * + 39 AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8894
SELECT ALL - ( + 30 ) * + - COALESCE ( + ( 93 ), - + 89 * ( + 19 ) - - 78 + ( + NULLIF ( - - 80, 3 ) ) - + - 41 * CAST( NULL AS SIGNED ) * + COUNT( * ) )
----
2790

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL - ( + 30 ) * + - COALESCE ( + ( 93 ), - + 89 * ( + 19 ) - - 78 + ( + NULLIF ( - - 80, 3 ) ) - + - 41 * CAST ( NULL AS INTEGER ) * + COUNT ( * ) )
----
2790

query II rowsort
SELECT DISTINCT 68 AS col2, 80 - + - 83 - - - 89
----
68
74

query I rowsort
SELECT 63 - 70 + - - 20
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT 69 * COUNT( 76 )
----
69

skipif mysql # not compatible
query I rowsort label-8897
SELECT 69 * COUNT ( 76 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT 44 * - MIN( ALL + + 27 )
----
-1188

skipif mysql # not compatible
query I rowsort label-8898
SELECT 44 * - MIN ( ALL + + 27 )
----
-1188

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8899
SELECT CASE + + 10 WHEN - 16 THEN CAST( + + 12 AS DECIMAL ) + - 64 * - MAX( + 89 ) / - - 1 * - - 35 + + ( + 81 ) END * + 85 * 30 - 13 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT CASE + + 10 WHEN - 16 THEN CAST ( + + 12 AS REAL ) + - 64 * - MAX ( + 89 ) / - - 1 * - - 35 + + ( + 81 ) END * + 85 * 30 - 13 col1
----
NULL

query II rowsort
SELECT - 84 AS col2, - 80 * 11 AS col0
----
-84
-880

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT ( - 57 ) + - + 31 * - + 20, 90 / - - 36 + + CASE - - 10 WHEN - 16 + - + 7 THEN NULL WHEN - 79 THEN + + 84 WHEN + COUNT( * ) + + - 84 THEN 48 END AS col0
----
563
NULL

skipif mysql # not compatible
query II rowsort label-8901
SELECT ( - 57 ) + - + 31 * - + 20, 90 / - - 36 + + CASE - - 10 WHEN - 16 + - + 7 THEN NULL WHEN - 79 THEN + + 84 WHEN + COUNT ( * ) + + - 84 THEN 48 END AS col0
----
563
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT 89 DIV + ( - 75 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8902
SELECT 89 / + ( - 75 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8903
SELECT + 45 AS col2, 76 DIV - + SUM( ALL 15 ) AS col1, + CAST( NULL AS SIGNED ) DIV + - 7 AS col0
----
45
-5
NULL

skipif mysql # not compatible
query III rowsort label-8903
SELECT + 45 AS col2, 76 / - + SUM ( ALL 15 ) AS col1, + CAST ( NULL AS INTEGER ) / + - 7 AS col0
----
45
-5
NULL

query II rowsort
SELECT ALL + + 59 + 91 AS col1, 70 col2
----
150
70

query II rowsort
SELECT - 1 AS col1, - 64
----
-1
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8906
SELECT + + 2, CAST( NULL AS SIGNED ) AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-8906
SELECT + + 2, CAST ( NULL AS INTEGER ) AS col2
----
2
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8907
SELECT ALL - SUM( DISTINCT 10 ) + NULLIF ( - 52, - - 52 * - + 96 * - 41 ) + COUNT( * ) DIV + COALESCE ( - 88, - 27, - 18 ) col1
----
-62

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL - SUM ( DISTINCT 10 ) + NULLIF ( - 52, - - 52 * - + 96 * - 41 ) + COUNT ( * ) / + COALESCE ( - 88, - 27, - 18 ) col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT ALL - COUNT( + + 74 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL - COUNT ( + + 74 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT ALL - 70 + + COUNT( DISTINCT 82 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL - 70 + + COUNT ( DISTINCT 82 ) AS col1
----
-69

query I rowsort
SELECT DISTINCT 19 + 45 + + 89
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8911
SELECT 97 AS col2, CAST( NULL AS SIGNED ) + ( + - CAST( - COALESCE ( - 51, COALESCE ( + COUNT( * ), - COUNT( * ) ) ) AS SIGNED ) )
----
97
NULL

skipif mysql # not compatible
query II rowsort label-8911
SELECT 97 AS col2, CAST ( NULL AS INTEGER ) + ( + - CAST ( - COALESCE ( - 51, COALESCE ( + COUNT ( * ), - COUNT ( * ) ) ) AS INTEGER ) )
----
97
NULL

query I rowsort
SELECT ALL - 20 + 56 + - 23
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT 15 DIV - 73 - - + 41 - + 34 + + + 7 * - + 17
----
-112

skipif mysql # not compatible
query I rowsort label-8913
SELECT 15 / - 73 - - + 41 - + 34 + + + 7 * - + 17
----
-112

query I rowsort
SELECT - 76 * 2 + + 62 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT ALL COUNT( * ) + - + 22 * + NULLIF ( COUNT( * ), 4 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL COUNT ( * ) + - + 22 * + NULLIF ( COUNT ( * ), 4 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8916
SELECT - NULLIF ( 5, - - COALESCE ( - + COUNT( * ), - + 76 ) ) * - 61 col2, - 81 AS col2
----
305
-81

skipif mysql # not compatible
query II rowsort label-8916
SELECT - NULLIF ( 5, - - COALESCE ( - + COUNT ( * ), - + 76 ) ) * - 61 col2, - 81 AS col2
----
305
-81

query I rowsort
SELECT DISTINCT - 27 - - 56 col0
----
29

query I rowsort
SELECT ALL - + 26 col2
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8919
SELECT ALL + 93 - + 22 + + 31 DIV - 91
----
71

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL + 93 - + 22 + + 31 / - 91
----
71

query II rowsort
SELECT 0 * + + 71, 42 col0
----
0
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT 35 * - + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-8921
SELECT 35 * - + COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT 54 DIV COUNT( * ) DIV 36
----
1

skipif mysql # not compatible
query I rowsort label-8922
SELECT 54 / COUNT ( * ) / 36
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT 28 + + + 49 DIV 19
----
30

skipif mysql # not compatible
query I rowsort label-8923
SELECT 28 + + + 49 / 19
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8924
SELECT ALL 2 * ( CAST( - - 37 AS SIGNED ) ) col0
----
74

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL 2 * ( CAST ( - - 37 AS INTEGER ) ) col0
----
74

query I rowsort
SELECT 54 + 92
----
146

query I rowsort
SELECT 79 * 34
----
2686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8927
SELECT ALL - 76 * CAST( - 99 AS SIGNED ) AS col1
----
7524

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL - 76 * CAST ( - 99 AS INTEGER ) AS col1
----
7524

query I rowsort
SELECT 50 + 37
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8929
SELECT 69 DIV - - 45
----
1

skipif mysql # not compatible
query I rowsort label-8929
SELECT 69 / - - 45
----
1

query I rowsort
SELECT ALL - 77 + + 70
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT DISTINCT + + 57 + + 18 + + ( + 6 ) * + 90 * - ( ( + ( 29 ) ) ) * + ( - COUNT( * ) ) * + CASE - - 35 WHEN - + 67 * - 34 + 39 * - + 48 + CASE - ( - - CASE COUNT( * ) WHEN - 36 + - + 46 THEN NULL WHEN - 84 THEN + - 63 / 62 * - CASE 61 WHEN - - 77 * - 90 + 67 * + CASE + 21 WHEN 16 + ( - SUM( DISTINCT 88 ) ) THEN + COUNT( * ) + - 90 WHEN + ( 53 ) + + 51 THEN ( - 60 ) * 36 ELSE NULL END * + 25 THEN NULL WHEN - COUNT( * ) THEN COUNT( * ) END / COUNT( * ) + COUNT( * ) WHEN - 10 THEN + 4 * 19 WHEN 33 THEN NULL END ) WHEN + 93 / 24 - + ( 59 + 39 ) THEN + ( COUNT( * ) ) END THEN NULL ELSE ( + 99 ) * 60 END AS col0
----
93020475

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT + + 57 + + 18 + + ( + 6 ) * + 90 * - ( ( + ( 29 ) ) ) * + ( - COUNT ( * ) ) * + CASE - - 35 WHEN - + 67 * - 34 + 39 * - + 48 + CASE - ( - - CASE COUNT ( * ) WHEN - 36 + - + 46 THEN NULL WHEN - 84 THEN + - 63 / 62 * - CASE 61 WHEN - - 77 * - 90 + 67 * + CASE + 21 WHEN 16 + ( - SUM ( DISTINCT 88 ) ) THEN + COUNT ( * ) + - 90 WHEN + ( 53 ) + + 51 THEN ( - 60 ) * 36 ELSE NULL END * + 25 THEN NULL WHEN - COUNT ( * ) THEN COUNT ( * ) END / COUNT ( * ) + COUNT ( * ) WHEN - 10 THEN + 4 * 19 WHEN 33 THEN NULL END ) WHEN + 93 / 24 - + ( 59 + 39 ) THEN + ( COUNT ( * ) ) END THEN NULL ELSE ( + 99 ) * 60 END AS col0
----
93020475

onlyif mysql # aggregate syntax: 
query II rowsort label-8932
SELECT DISTINCT MIN( - 84 ), + 22 * - 67 AS col0
----
-84
-1474

skipif mysql # not compatible
query II rowsort label-8932
SELECT DISTINCT MIN ( - 84 ), + 22 * - 67 AS col0
----
-84
-1474

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT + 24 + - 0 + - - COUNT( * ) - + ( 1 ) + 17
----
41

skipif mysql # not compatible
query I rowsort label-8933
SELECT + 24 + - 0 + - - COUNT ( * ) - + ( 1 ) + 17
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8934
SELECT - MIN( ALL + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8934
SELECT - MIN ( ALL + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT 93 * + 57
----
5301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT ALL - 24 + - - CAST( NULL AS SIGNED ) - + 71 + 73 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL - 24 + - - CAST ( NULL AS INTEGER ) - + 71 + 73 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8937
SELECT 80 + CAST( 50 AS SIGNED ) + + + 53 AS col0
----
183

skipif mysql # not compatible
query I rowsort label-8937
SELECT 80 + CAST ( 50 AS INTEGER ) + + + 53 AS col0
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8938
SELECT ALL - 47 * - - COUNT( - 64 ) + CAST( - NULLIF ( - 6, - MIN( DISTINCT 67 ) ) AS SIGNED ) + - CASE + 25 WHEN + COUNT( - 51 ) THEN 38 * + + 19 + 1 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - 47 * - - COUNT ( - 64 ) + CAST ( - NULLIF ( - 6, - MIN ( DISTINCT 67 ) ) AS INTEGER ) + - CASE + 25 WHEN + COUNT ( - 51 ) THEN 38 * + + 19 + 1 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8939
SELECT + COUNT( * ) * - + 79 + - 89 * - 11 * - - 25, 2 col2
----
24396
2

skipif mysql # not compatible
query II rowsort label-8939
SELECT + COUNT ( * ) * - + 79 + - 89 * - 11 * - - 25, 2 col2
----
24396
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8940
SELECT ALL - - NULLIF ( + MIN( ALL - 74 ), - CAST( NULL AS SIGNED ) ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL - - NULLIF ( + MIN ( ALL - 74 ), - CAST ( NULL AS INTEGER ) ) AS col1
----
-74

query I rowsort
SELECT DISTINCT + 82 * + - 35 - - 36
----
-2834

query I rowsort
SELECT + ( + 76 ) + - 26
----
50

query II rowsort
SELECT ALL - - 40 * - 24, 89 * - 6 AS col1
----
-960
-534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8944
SELECT + COUNT( 53 ) * - MAX( 8 ) + - + 47 + + ( - COALESCE ( + + COUNT( * ), 57, - - 61 DIV MAX( + 8 ) + + COUNT( * ) - - + 42 + + 32 ) ) DIV + 72 + - - 38 + + - 55 - - COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-8944
SELECT + COUNT ( 53 ) * - MAX ( 8 ) + - + 47 + + ( - COALESCE ( + + COUNT ( * ), 57, - - 61 / MAX ( + 8 ) + + COUNT ( * ) - - + 42 + + 32 ) ) / + 72 + - - 38 + + - 55 - - COUNT ( * ) AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8945
SELECT - ( + CAST( - 6 AS SIGNED ) ) * - - MAX( + - 41 ) AS col2
----
-246

skipif mysql # not compatible
query I rowsort label-8945
SELECT - ( + CAST ( - 6 AS INTEGER ) ) * - - MAX ( + - 41 ) AS col2
----
-246

query I rowsort
SELECT 19 * - 12 AS col1
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT COUNT( + 98 )
----
1

skipif mysql # not compatible
query I rowsort label-8947
SELECT COUNT ( + 98 )
----
1

query II rowsort
SELECT ALL - 83 AS col0, 72 * + 83 * 76 * 91
----
-83
41330016

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT + 21 + + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-8949
SELECT + 21 + + + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8950
SELECT + COUNT( * ), + 70 AS col1
----
1
70

skipif mysql # not compatible
query II rowsort label-8950
SELECT + COUNT ( * ), + 70 AS col1
----
1
70

query I rowsort
SELECT ALL + 53 * - 87
----
-4611

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT MIN( ALL 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8952
SELECT MIN ( ALL 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT - COALESCE ( + MAX( + 78 ), - 37 )
----
-78

skipif mysql # not compatible
query I rowsort label-8953
SELECT - COALESCE ( + MAX ( + 78 ), - 37 )
----
-78

query I rowsort
SELECT + 37 * - - 62 AS col2
----
2294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8955
SELECT - 43 + + 33 + + 85 + - COALESCE ( + 65, - + 13 * 91, + 10, + - 74 + - - 58 * + 17 DIV + 91 ) DIV 24 + - + COUNT( - 74 )
----
72

skipif mysql # not compatible
query I rowsort label-8955
SELECT - 43 + + 33 + + 85 + - COALESCE ( + 65, - + 13 * 91, + 10, + - 74 + - - 58 * + 17 / + 91 ) / 24 + - + COUNT ( - 74 )
----
72

query I rowsort
SELECT ALL 49 + 22 col0
----
71

query I rowsort
SELECT ALL 7 * + - 79 * 61 AS col0
----
-33733

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8958
SELECT ALL 84 + + NULLIF ( - + 57, + - 26 ) - + 37 + + CAST( + 44 AS SIGNED ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL 84 + + NULLIF ( - + 57, + - 26 ) - + 37 + + CAST ( + 44 AS INTEGER ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query III rowsort label-8959
SELECT + 89 - - 28 + - 99 AS col0, - 12 AS col2, COUNT( ALL 24 ) AS col2
----
18
-12
1

skipif mysql # not compatible
query III rowsort label-8959
SELECT + 89 - - 28 + - 99 AS col0, - 12 AS col2, COUNT ( ALL 24 ) AS col2
----
18
-12
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8960
SELECT 16, + COUNT( DISTINCT 3 ) AS col0
----
16
1

skipif mysql # not compatible
query II rowsort label-8960
SELECT 16, + COUNT ( DISTINCT 3 ) AS col0
----
16
1

query I rowsort
SELECT - 13 + 53 AS col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8962
SELECT ALL + 18 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL + 18 / - 78
----
0

query I rowsort
SELECT - ( + 36 ) AS col2
----
-36

query I rowsort
SELECT ALL 89 + - 86 + ( - + 83 )
----
-80

query I rowsort
SELECT - - 75 - 63
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT + MIN( ALL - 55 ) * + 54 - + - 4 AS col1
----
-2966

skipif mysql # not compatible
query I rowsort label-8966
SELECT + MIN ( ALL - 55 ) * + 54 - + - 4 AS col1
----
-2966

query I rowsort
SELECT DISTINCT + 20 + - 91 AS col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-8968
SELECT - 25 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-8968
SELECT - 25 / 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8969
SELECT ALL + + 99 AS col1, - COUNT( * ) DIV - 18 * + + 33 + 55
----
99
55

skipif mysql # not compatible
query II rowsort label-8969
SELECT ALL + + 99 AS col1, - COUNT ( * ) / - 18 * + + 33 + 55
----
99
55

query I rowsort
SELECT - ( 52 ) * + 72 - - 42
----
-3702

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT + + CASE - 78 WHEN + 58 * - - 47 * + + CASE - 41 WHEN - 78 THEN - 32 END THEN - - COUNT( * ) END / 67 - + 51 + + + 6 + - 14 * + 41 * + MIN( ALL + + 79 ) * + 97 / - + 31 * 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT + + CASE - 78 WHEN + 58 * - - 47 * + + CASE - 41 WHEN - 78 THEN - 32 END THEN - - COUNT ( * ) END / 67 - + 51 + + + 6 + - 14 * + 41 * + MIN ( ALL + + 79 ) * + 97 / - + 31 * 94 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8972
SELECT ALL + ( 40 ) * CASE - 67 WHEN 96 + + + 56 - + 35 + 26 THEN 14 * + CAST( + COUNT( * ) AS SIGNED ) ELSE + COUNT( ALL - 19 ) END * + CASE 50 WHEN - 26 THEN - + 19 * + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL + ( 40 ) * CASE - 67 WHEN 96 + + + 56 - + 35 + 26 THEN 14 * + CAST ( + COUNT ( * ) AS INTEGER ) ELSE + COUNT ( ALL - 19 ) END * + CASE 50 WHEN - 26 THEN - + 19 * + 80 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8973
SELECT - AVG ( DISTINCT - 14 ) / + 6 + + - CAST( - 81 AS SIGNED ) + - + CASE - ( - 68 ) WHEN + ( + + 36 ) THEN + CASE CASE + 22 WHEN + + 39 * - - CAST( NULL AS DECIMAL ) THEN + 90 ELSE - - 98 * + COALESCE ( + 94, - + 75 ) END WHEN - 71 THEN - 6 * + 25 + + - AVG ( DISTINCT 75 ) * - 49 * - 56 END WHEN + 91 THEN NULL END + + 49 / ( NULLIF ( + 1, 23 + + - AVG ( DISTINCT + 94 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT - AVG ( DISTINCT - 14 ) / + 6 + + - CAST ( - 81 AS INTEGER ) + - + CASE - ( - 68 ) WHEN + ( + + 36 ) THEN + CASE CASE + 22 WHEN + + 39 * - - CAST ( NULL AS REAL ) THEN + 90 ELSE - - 98 * + COALESCE ( + 94, - + 75 ) END WHEN - 71 THEN - 6 * + 25 + + - AVG ( DISTINCT 75 ) * - 49 * - 56 END WHEN + 91 THEN NULL END + + 49 / ( NULLIF ( + 1, 23 + + - AVG ( DISTINCT + 94 ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8974
SELECT DISTINCT + CAST( 28 AS SIGNED ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT + CAST ( 28 AS INTEGER ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL + SUM( - 61 ) col0
----
-61

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL + SUM ( - 61 ) col0
----
-61

query I rowsort
SELECT DISTINCT + 94 * - 86 * - - 20 AS col0
----
-161680

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT DISTINCT + 23 * 28 + ( - + 34 ) + + - 2 + + 99 * - + COUNT( * ) * + - 21 AS col1
----
2687

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT + 23 * 28 + ( - + 34 ) + + - 2 + + 99 * - + COUNT ( * ) * + - 21 AS col1
----
2687

query I rowsort
SELECT COALESCE ( - + 66, - 4 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT + COUNT( * ) * - 56 col2
----
-56

skipif mysql # not compatible
query I rowsort label-8979
SELECT + COUNT ( * ) * - 56 col2
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8980
SELECT ALL 25 * + - 43 + 97 + - COUNT( * ) + + COALESCE ( + + 84, 30 * + 98 * + + 2, + MIN( - 70 ) * + 29 ) DIV + 88
----
-979

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL 25 * + - 43 + 97 + - COUNT ( * ) + + COALESCE ( + + 84, 30 * + 98 * + + 2, + MIN ( - 70 ) * + 29 ) / + 88
----
-979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8981
SELECT 85 * CASE + + 65 WHEN + 94 - + 46 * - + 32 * - 50 THEN - ( 68 ) / 43 + - COUNT( * ) - - 54 * 40 END + + 47 / + CAST( NULL AS SIGNED ) * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8981
SELECT 85 * CASE + + 65 WHEN + 94 - + 46 * - + 32 * - 50 THEN - ( 68 ) / 43 + - COUNT ( * ) - - 54 * 40 END + + 47 / + CAST ( NULL AS INTEGER ) * - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT CASE + - COUNT( * ) WHEN - 70 + + + 86 + 8 * 10 THEN 26 / + 34 WHEN + - 11 * 15 THEN NULL ELSE + 1 END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8982
SELECT CASE + - COUNT ( * ) WHEN - 70 + + + 86 + 8 * 10 THEN 26 / + 34 WHEN + - 11 * 15 THEN NULL ELSE + 1 END AS col1
----
1

query I rowsort
SELECT + 43 * + ( 80 ) * 6 * - 14 + - - 83 AS col0
----
-288877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8984
SELECT + CAST( + NULLIF ( ( + - 0 ), 57 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8984
SELECT + CAST ( + NULLIF ( ( + - 0 ), 57 ) AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8985
SELECT + COUNT( * ) DIV 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8985
SELECT + COUNT ( * ) / 35 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8986
SELECT + 66 + + 37 AS col2, - ( - - 3 ) DIV 6
----
103
0

skipif mysql # not compatible
query II rowsort label-8986
SELECT + 66 + + 37 AS col2, - ( - - 3 ) / 6
----
103
0

query I rowsort
SELECT ALL + 13 * - - 71 + - 34 AS col2
----
889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8988
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - COUNT( * ) + + 40 - + - 55 + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + + 40 - + - 55 + + 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8989
SELECT SUM( DISTINCT + - CAST( 59 AS SIGNED ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8989
SELECT SUM ( DISTINCT + - CAST ( 59 AS INTEGER ) ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL - NULLIF ( - COUNT( * ), + 88 ) * COALESCE ( - - ( - + SUM( ALL 87 ) ), + + ( - + COUNT( * ) ) ) + + 91 + - 59
----
-55

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL - NULLIF ( - COUNT ( * ), + 88 ) * COALESCE ( - - ( - + SUM ( ALL 87 ) ), + + ( - + COUNT ( * ) ) ) + + 91 + - 59
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT DISTINCT 0 DIV 61 col1
----
0

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT 0 / 61 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8992
SELECT + - 77 + 90 + + 89 / - COUNT( * ) * 30 * - NULLIF ( CAST( NULL AS SIGNED ), - 32 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT + - 77 + 90 + + 89 / - COUNT ( * ) * 30 * - NULLIF ( CAST ( NULL AS INTEGER ), - 32 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 66 * + 55 + - 5 AS col0
----
3625

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT + + COUNT( * ) + + 11 * 55 AS col0
----
606

skipif mysql # not compatible
query I rowsort label-8994
SELECT + + COUNT ( * ) + + 11 * 55 AS col0
----
606

query I rowsort
SELECT - - 97 * - 76 AS col0
----
-7372

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT - - 38 * + + NULLIF ( + 21, - SUM( 43 ) + + 8 * + + MAX( DISTINCT + 13 ) ) AS col2
----
798

skipif mysql # not compatible
query I rowsort label-8996
SELECT - - 38 * + + NULLIF ( + 21, - SUM ( 43 ) + + 8 * + + MAX ( DISTINCT + 13 ) ) AS col2
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT ALL + COUNT( ALL + 2 ) - + 12 + + ( 4 ) + ( 31 ) + - 85 / + + 34 * - + CASE - 29 WHEN + + COUNT( * ) + - + 73 THEN - 97 + - 8 * + 88 / - COUNT( * ) WHEN + 4 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL + COUNT ( ALL + 2 ) - + 12 + + ( 4 ) + ( 31 ) + - 85 / + + 34 * - + CASE - 29 WHEN + + COUNT ( * ) + - + 73 THEN - 97 + - 8 * + 88 / - COUNT ( * ) WHEN + 4 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ( + - 71 ) AS col1
----
-71

query I rowsort
SELECT DISTINCT - 89 - 84 AS col2
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT - 9 + - - 77 * - + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-9000
SELECT - 9 + - - 77 * - + COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9001
SELECT - + 3 * COUNT( * ) + - - 24 DIV - + COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9001
SELECT - + 3 * COUNT ( * ) + - - 24 / - + COUNT ( * ) AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9002
SELECT - 22 + - + 41 DIV 86 * + + 16 * COUNT( * ) AS col0, 19 AS col1
----
-22
19

skipif mysql # not compatible
query II rowsort label-9002
SELECT - 22 + - + 41 / 86 * + + 16 * COUNT ( * ) AS col0, 19 AS col1
----
-22
19

query I rowsort
SELECT - 36 + + + 50
----
14

query I rowsort
SELECT + - 1 + - 89 * + - 2 AS col2
----
177

query I rowsort
SELECT - ( - 30 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9006
SELECT 71 * - - 57 * + 6 * 65 DIV + ( + COUNT( * ) ) AS col1
----
1578330

skipif mysql # not compatible
query I rowsort label-9006
SELECT 71 * - - 57 * + 6 * 65 / + ( + COUNT ( * ) ) AS col1
----
1578330

query II rowsort
SELECT ALL + - 72 * 33 AS col1, + 96
----
-2376
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9008
SELECT 51 / 98 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT 51 / 98 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9009
SELECT DISTINCT - CASE + 12 WHEN - COUNT( * ) - 2 + + + COUNT( * ) + - NULLIF ( - 99, 81 * + COALESCE ( + + 59, 96 * 8 + CASE + 55 WHEN - ( + 53 ) / - COUNT( * ) + 55 THEN - 14 WHEN - + COUNT( * ) * 60 / - NULLIF ( + ( + 67 ), - - 12 ) THEN - 91 + + 66 ELSE - COUNT( * ) END + + - 53 + MAX( DISTINCT + NULLIF ( - 43, - 3 + - 57 ) ) * + ( + COUNT( * ) ) * 60, 0, 85 ) ) * - 47 THEN - 52 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT - CASE + 12 WHEN - COUNT ( * ) - 2 + + + COUNT ( * ) + - NULLIF ( - 99, 81 * + COALESCE ( + + 59, 96 * 8 + CASE + 55 WHEN - ( + 53 ) / - COUNT ( * ) + 55 THEN - 14 WHEN - + COUNT ( * ) * 60 / - NULLIF ( + ( + 67 ), - - 12 ) THEN - 91 + + 66 ELSE - COUNT ( * ) END + + - 53 + MAX ( DISTINCT + NULLIF ( - 43, - 3 + - 57 ) ) * + ( + COUNT ( * ) ) * 60, 0, 85 ) ) * - 47 THEN - 52 END * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 38 * - - 22
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL - COUNT( * ) + 67 - - 56 * + 87 * - 36 * + - 11 col1
----
1929378

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL - COUNT ( * ) + 67 - - 56 * + 87 * - 36 * + - 11 col1
----
1929378

query I rowsort
SELECT 54 + 28 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL - COALESCE ( + 54, - ( + 79 ) * - 0 + COUNT( * ) ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL - COALESCE ( + 54, - ( + 79 ) * - 0 + COUNT ( * ) ) col1
----
-54

query II rowsort
SELECT DISTINCT - ( + 91 ) + - 51, COALESCE ( + + 66, - 28 - - 6 ) AS col1
----
-142
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL - MIN( ALL - 87 ) + - 76 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL - MIN ( ALL - 87 ) + - 76 AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9016
SELECT + 39 DIV 68 + + 84 + + + 46
----
130

skipif mysql # not compatible
query I rowsort label-9016
SELECT + 39 / 68 + + 84 + + + 46
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT DISTINCT - 35 DIV + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT - 35 / + 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT ALL - NULLIF ( - COUNT( - 12 ), - 4 )
----
1

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL - NULLIF ( - COUNT ( - 12 ), - 4 )
----
1

query I rowsort
SELECT 53 * + 90 AS col1
----
4770

onlyif mysql # DIV for integer division: 
query I rowsort label-9020
SELECT ALL - 17 DIV - 74 col1
----
0

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL - 17 / - 74 col1
----
0

query I rowsort
SELECT 63 * - - 78 AS col0
----
4914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9022
SELECT ALL + CAST( 2 AS SIGNED ) + + 53 * + - 80
----
-4238

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL + CAST ( 2 AS INTEGER ) + + 53 * + - 80
----
-4238

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT DISTINCT - 36 DIV + 24 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT - 36 / + 24 AS col0
----
-1

query I rowsort
SELECT DISTINCT 95 + 49
----
144

query I rowsort
SELECT ALL 54 + + 93
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT DISTINCT - ( + NULLIF ( - MAX( 84 ), - ( - + ( - 81 ) ) ) )
----
84

skipif mysql # not compatible
query I rowsort label-9026
SELECT DISTINCT - ( + NULLIF ( - MAX ( 84 ), - ( - + ( - 81 ) ) ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT MAX( ALL 32 ) * + - 49 * + 79 + - 83 + + - 75 - + - 91 AS col0
----
-123939

skipif mysql # not compatible
query I rowsort label-9027
SELECT MAX ( ALL 32 ) * + - 49 * + 79 + - 83 + + - 75 - + - 91 AS col0
----
-123939

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT CASE 58 WHEN - - 42 THEN - + 7 END + + 30 - 29 - + 88 / + - 16 * - ( ( COUNT( ALL + 89 ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT CASE 58 WHEN - - 42 THEN - + 7 END + + 30 - 29 - + 88 / + - 16 * - ( ( COUNT ( ALL + 89 ) ) ) col2
----
NULL

query I rowsort
SELECT ALL - 91 - + 84 AS col0
----
-175

query I rowsort
SELECT 4 + + - 30 - + 9 * - 30
----
244

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL MAX( ALL + - 37 ) - + 26 * - 55 AS col1
----
1393

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL MAX ( ALL + - 37 ) - + 26 * - 55 AS col1
----
1393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9032
SELECT + 35 * NULLIF ( - 59, 64 ) * + - COUNT( * ) + + CAST( + - COUNT( * ) AS SIGNED ) col2
----
2064

skipif mysql # not compatible
query I rowsort label-9032
SELECT + 35 * NULLIF ( - 59, 64 ) * + - COUNT ( * ) + + CAST ( + - COUNT ( * ) AS INTEGER ) col2
----
2064

query II rowsort
SELECT NULLIF ( - - 51, - + 18 * - 70 ) - 35, - 4 AS col1
----
16
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9034
SELECT CAST( + 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-9034
SELECT CAST ( + 54 AS INTEGER )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL + 93 - COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL + 93 - COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9036
SELECT DISTINCT COUNT( * ) AS col2, 90 AS col0
----
1
90

skipif mysql # not compatible
query II rowsort label-9036
SELECT DISTINCT COUNT ( * ) AS col2, 90 AS col0
----
1
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9037
SELECT ALL 10 / - + 58 * + - 96 - - CASE + - CASE - MAX( DISTINCT 90 ) WHEN AVG ( - 63 ) * 30 THEN - - 24 - + MAX( DISTINCT 30 ) WHEN + COUNT( - 30 ) + + 65 + - 58 / + 89 - 53 - - + MIN( 72 ) - + - 67 THEN NULL ELSE NULL END WHEN 65 THEN NULL WHEN 19 + + - 53 THEN + + AVG ( + 85 ) END + - - 35 + + ( + 68 ) AS col0, 65
----
NULL
65

skipif mysql # not compatible
query II rowsort label-9037
SELECT ALL 10 / - + 58 * + - 96 - - CASE + - CASE - MAX ( DISTINCT 90 ) WHEN AVG ( - 63 ) * 30 THEN - - 24 - + MAX ( DISTINCT 30 ) WHEN + COUNT ( - 30 ) + + 65 + - 58 / + 89 - 53 - - + MIN ( 72 ) - + - 67 THEN NULL ELSE NULL END WHEN 65 THEN NULL WHEN 19 + + - 53 THEN + + AVG ( + 85 ) END + - - 35 + + ( + 68 ) AS col0, 65
----
NULL
65

query I rowsort
SELECT ALL 15 - - + 44
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9039
SELECT 17 DIV - ( + + COUNT( * ) ) + + - NULLIF ( - + COUNT( * ), + + COUNT( ALL 50 ) ) + - - 94 * - - COUNT( * ) + - + 71
----
7

skipif mysql # not compatible
query I rowsort label-9039
SELECT 17 / - ( + + COUNT ( * ) ) + + - NULLIF ( - + COUNT ( * ), + + COUNT ( ALL 50 ) ) + - - 94 * - - COUNT ( * ) + - + 71
----
7

query I rowsort
SELECT ALL + 21 * 42 - + - 36 AS col0
----
918

query II rowsort
SELECT NULLIF ( 43, + 58 * 71 ) * 61, - 4 AS col2
----
2623
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9042
SELECT - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9043
SELECT CASE + 96 WHEN + + 30 * + MIN( ALL - 89 ) + + 74 THEN NULL WHEN - + 44 THEN NULL ELSE 39 END DIV + 78 * + 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9043
SELECT CASE + 96 WHEN + + 30 * + MIN ( ALL - 89 ) + + 74 THEN NULL WHEN - + 44 THEN NULL ELSE 39 END / + 78 * + 39 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9044
SELECT + COUNT( * ) DIV + - 91 * - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9044
SELECT + COUNT ( * ) / + - 91 * - 82 AS col0
----
0

query I rowsort
SELECT ALL + 60 * + + 77
----
4620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9046
SELECT - 43 + MIN( ALL + CAST( NULL AS SIGNED ) ), 8 + 80 AS col2
----
NULL
88

skipif mysql # not compatible
query II rowsort label-9046
SELECT - 43 + MIN ( ALL + CAST ( NULL AS INTEGER ) ), 8 + 80 AS col2
----
NULL
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9047
SELECT DISTINCT + 16 * + - COUNT( * ) / + 97 + COALESCE ( - 0, - + 66 + + - 64 ) + 95 + + 12 / + 11 / - CAST( NULL AS SIGNED ) * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT + 16 * + - COUNT ( * ) / + 97 + COALESCE ( - 0, - + 66 + + - 64 ) + 95 + + 12 / + 11 / - CAST ( NULL AS INTEGER ) * + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT DISTINCT - MAX( ALL 95 ) * + 45 * + 78 * + 9
----
-3001050

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT - MAX ( ALL 95 ) * + 45 * + 78 * + 9
----
-3001050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9049
SELECT ALL CAST( NULL AS SIGNED ) + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL CAST ( NULL AS INTEGER ) + - 24
----
NULL

query I rowsort
SELECT ALL - 94 + + + 46 + - 26 - - - 68 AS col1
----
-142

query II rowsort
SELECT + 54 AS col0, ( 75 )
----
54
75

query I rowsort
SELECT ALL 72 + 19
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9053
SELECT 2, - 70 * - COUNT( * ) + ( + 7 ) - - 94 DIV 1 * - COUNT( * ) col1
----
2
-17

skipif mysql # not compatible
query II rowsort label-9053
SELECT 2, - 70 * - COUNT ( * ) + ( + 7 ) - - 94 / 1 * - COUNT ( * ) col1
----
2
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9054
SELECT ALL 90 * 9 * 3 DIV - - SUM( - - 20 )
----
121

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL 90 * 9 * 3 / - - SUM ( - - 20 )
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9055
SELECT + 65 AS col1, - 94 * SUM( DISTINCT - - CAST( + 58 AS SIGNED ) ) - + 84
----
65
-5536

skipif mysql # not compatible
query II rowsort label-9055
SELECT + 65 AS col1, - 94 * SUM ( DISTINCT - - CAST ( + 58 AS INTEGER ) ) - + 84
----
65
-5536

query I rowsort
SELECT ALL 25 * 5
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT + 77 - - + 59 * MIN( DISTINCT + 74 ) AS col1
----
4443

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT + 77 - - + 59 * MIN ( DISTINCT + 74 ) AS col1
----
4443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9058
SELECT ( + 26 ) + + - CAST( NULL AS SIGNED ) + + 47 + + 37 + 15 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT ( + 26 ) + + - CAST ( NULL AS INTEGER ) + + 47 + + 37 + 15 / - COUNT ( * )
----
NULL

query I rowsort
SELECT 98 + + + 2 AS col0
----
100

query I rowsort
SELECT ALL + 59 - - 35 + + + NULLIF ( + 19, - + 86 * - 45 ) AS col1
----
113

query II rowsort
SELECT DISTINCT - 36 AS col0, - 26 AS col1
----
-36
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-9062
SELECT 7 + - - COUNT( DISTINCT + 16 ) - 35, 16 AS col0
----
-27
16

skipif mysql # not compatible
query II rowsort label-9062
SELECT 7 + - - COUNT ( DISTINCT + 16 ) - 35, 16 AS col0
----
-27
16

query I rowsort
SELECT 59 * + 81 + + 34 * + 9 + - 35 AS col2
----
5050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9064
SELECT 14 * + CAST( + + 29 AS SIGNED )
----
406

skipif mysql # not compatible
query I rowsort label-9064
SELECT 14 * + CAST ( + + 29 AS INTEGER )
----
406

onlyif mysql # DIV for integer division: 
query I rowsort label-9065
SELECT ALL - 87 DIV 57 * + 57 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL - 87 / 57 * + 57 AS col1
----
-57

query I rowsort
SELECT ALL - ( + 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9067
SELECT 88 + - 58 DIV - - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-9067
SELECT 88 + - 58 / - - COUNT ( * )
----
30

query I rowsort
SELECT - 2 * - 89 + - + 45 + + 66 + - 10 col1
----
189

query II rowsort
SELECT + + 47, + 22 AS col0
----
47
22

query I rowsort
SELECT 62 + - 3 AS col1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9071
SELECT ALL - - 18 DIV + 54 - - 15
----
15

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL - - 18 / + 54 - - 15
----
15

query I rowsort
SELECT ALL - + 10 * + 57 AS col0
----
-570

query I rowsort
SELECT 93 * - 16 AS col0
----
-1488

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT ALL - 5 DIV - - 79 * 25 DIV + ( + 79 )
----
0

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL - 5 / - - 79 * 25 / + ( + 79 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9075
SELECT DISTINCT 83 AS col1, 19 DIV + - COUNT( * ) AS col2
----
83
-19

skipif mysql # not compatible
query II rowsort label-9075
SELECT DISTINCT 83 AS col1, 19 / + - COUNT ( * ) AS col2
----
83
-19

query I rowsort
SELECT + 82 + - 7
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9077
SELECT - 44 + - - 61 * - + 58 * - - 29 * - - CAST( - 51 AS SIGNED ) + 54 + 2 * ( + COUNT( * ) ) * + 11 AS col2
----
5232734

skipif mysql # not compatible
query I rowsort label-9077
SELECT - 44 + - - 61 * - + 58 * - - 29 * - - CAST ( - 51 AS INTEGER ) + 54 + 2 * ( + COUNT ( * ) ) * + 11 AS col2
----
5232734

query I rowsort
SELECT - ( - + 24 ) + + + 93 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT ALL - 98 + - + SUM( - ( 23 ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL - 98 + - + SUM ( - ( 23 ) ) AS col1
----
-75

query II rowsort
SELECT DISTINCT ( 54 ), 52 AS col1
----
54
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL + - 26 + - 45 * 3 + 63 * - - COUNT( * ) + - - 19 + - 76 AS col2
----
-155

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL + - 26 + - 45 * 3 + 63 * - - COUNT ( * ) + - - 19 + - 76 AS col2
----
-155

query II rowsort
SELECT + + 18 + + 27 - 7 + + - 3 + - ( + 60 ) AS col1, 18 AS col1
----
-25
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT DISTINCT + ( COUNT( 0 ) ) + 21 - + - ( - + 45 ) * + 24 * COUNT( * ) + 10
----
-1048

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT + ( COUNT ( 0 ) ) + 21 - + - ( - + 45 ) * + 24 * COUNT ( * ) + 10
----
-1048

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT ALL - - COUNT( * ) + + MIN( DISTINCT 5 ) + COUNT( * ) * + 58 * - 38 + COUNT( * ) AS col2
----
-2197

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL - - COUNT ( * ) + + MIN ( DISTINCT 5 ) + COUNT ( * ) * + 58 * - 38 + COUNT ( * ) AS col2
----
-2197

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT - COUNT( * ) + 21 + - - 60 * + COUNT( * ) * + + 35 + + 57
----
2177

skipif mysql # not compatible
query I rowsort label-9085
SELECT - COUNT ( * ) + 21 + - - 60 * + COUNT ( * ) * + + 35 + + 57
----
2177

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT + COUNT( * ) + COUNT( * ) + 93 * - 50
----
-4648

skipif mysql # not compatible
query I rowsort label-9086
SELECT + COUNT ( * ) + COUNT ( * ) + 93 * - 50
----
-4648

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT + 14 + - COUNT( * ) + 17
----
30

skipif mysql # not compatible
query I rowsort label-9087
SELECT + 14 + - COUNT ( * ) + 17
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9088
SELECT + COUNT( * ) * - COUNT( * ) * - CAST( + 9 AS SIGNED ) col0
----
9

skipif mysql # not compatible
query I rowsort label-9088
SELECT + COUNT ( * ) * - COUNT ( * ) * - CAST ( + 9 AS INTEGER ) col0
----
9

query I rowsort
SELECT DISTINCT 26 * - 62 AS col1
----
-1612

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ALL 85 * - + COUNT( 25 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL 85 * - + COUNT ( 25 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT + SUM( DISTINCT - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-9091
SELECT + SUM ( DISTINCT - 66 )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9092
SELECT ALL CAST( - + 83 AS SIGNED ) * 2 + + COALESCE ( ( + ( + + 13 ) ), + 85 ), 21 AS col2
----
-153
21

skipif mysql # not compatible
query II rowsort label-9092
SELECT ALL CAST ( - + 83 AS INTEGER ) * 2 + + COALESCE ( ( + ( + + 13 ) ), + 85 ), 21 AS col2
----
-153
21

query I rowsort
SELECT DISTINCT 90 * 93
----
8370

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL 49 * + 99 * - COUNT( * ) AS col2
----
-4851

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL 49 * + 99 * - COUNT ( * ) AS col2
----
-4851

onlyif mysql # DIV for integer division: 
query I rowsort label-9095
SELECT + 61 + 2 DIV + + 17
----
61

skipif mysql # not compatible
query I rowsort label-9095
SELECT + 61 + 2 / + + 17
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9096
SELECT DISTINCT COUNT( * ) * + - 46 - + 47 + + - 4 * - CAST( + 17 AS SIGNED ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT COUNT ( * ) * + - 46 - + 47 + + - 4 * - CAST ( + 17 AS INTEGER ) AS col1
----
-25

query I rowsort
SELECT ALL 99 * - - 12 - ( 65 ) * + 30 AS col0
----
-762

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT ALL 71 * MAX( - + 31 ) AS col2
----
-2201

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL 71 * MAX ( - + 31 ) AS col2
----
-2201

query II rowsort
SELECT - 83 + - + 83 AS col0, + 71
----
-166
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT + MIN( ALL + 57 ) * - 77 + - 90 * - 25 AS col1
----
-2139

skipif mysql # not compatible
query I rowsort label-9100
SELECT + MIN ( ALL + 57 ) * - 77 + - 90 * - 25 AS col1
----
-2139

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT + ( + COUNT( + 53 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9101
SELECT + ( + COUNT ( + 53 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ALL 13 * + - 55 * - COUNT( ALL 51 ) * - + 16 * + 96 col0
----
-1098240

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL 13 * + - 55 * - COUNT ( ALL 51 ) * - + 16 * + 96 col0
----
-1098240

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL + + MIN( DISTINCT - + 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL + + MIN ( DISTINCT - + 91 ) AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9104
SELECT DISTINCT NULLIF ( 78, - 99 ) * - AVG ( + 4 ) + + + CASE ( - 1 ) WHEN 85 THEN + 49 WHEN 64 THEN - + CAST( + ( 71 ) AS SIGNED ) END / 53 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT NULLIF ( 78, - 99 ) * - AVG ( + 4 ) + + + CASE ( - 1 ) WHEN 85 THEN + 49 WHEN 64 THEN - + CAST ( + ( 71 ) AS INTEGER ) END / 53 + COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9105
SELECT - 89 DIV + 89, 98 AS col1
----
-1
98

skipif mysql # not compatible
query II rowsort label-9105
SELECT - 89 / + 89, 98 AS col1
----
-1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL - + COUNT( * ) * - 91 + 20 - + 8
----
103

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL - + COUNT ( * ) * - 91 + 20 - + 8
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-9107
SELECT + 28 * + 25 AS col2, - MIN( DISTINCT + 41 ) AS col0
----
700
-41

skipif mysql # not compatible
query II rowsort label-9107
SELECT + 28 * + 25 AS col2, - MIN ( DISTINCT + 41 ) AS col0
----
700
-41

query I rowsort
SELECT DISTINCT + 60 + + 52
----
112

query I rowsort
SELECT - 46 - - 60
----
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9110
SELECT - + 38 DIV + + 15 AS col1, - CAST( NULL AS SIGNED ) col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-9110
SELECT - + 38 / + + 15 AS col1, - CAST ( NULL AS INTEGER ) col0
----
-2
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9111
SELECT DISTINCT + COUNT( * ) DIV + 8 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT + COUNT ( * ) / + 8 + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 11 + - 84 * 36 AS col0
----
-3013

query II rowsort
SELECT DISTINCT + 0 + - 79, + CASE + - 60 WHEN + 59 THEN NULL ELSE 35 END AS col1
----
-79
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL + + 90 + - 0 * + - COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL + + 90 + - 0 * + - COUNT ( * ) AS col1
----
90

query I rowsort
SELECT - + 33 col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9116
SELECT ALL + CASE - 29 WHEN - - 23 THEN NULL ELSE + ( + CAST( + 96 AS SIGNED ) ) * + COUNT( * ) + 92 END + 62
----
250

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL + CASE - 29 WHEN - - 23 THEN NULL ELSE + ( + CAST ( + 96 AS INTEGER ) ) * + COUNT ( * ) + 92 END + 62
----
250

onlyif mysql # DIV for integer division: 
query I rowsort label-9117
SELECT - COALESCE ( + + ( - 62 ), 70 DIV + 95, + + 74 ) - + 21 * 8 + - + 94 col2
----
-200

skipif mysql # not compatible
query I rowsort label-9117
SELECT - COALESCE ( + + ( - 62 ), 70 / + 95, + + 74 ) - + 21 * 8 + - + 94 col2
----
-200

onlyif mysql # aggregate syntax: 
query III rowsort label-9118
SELECT ALL + 94 + + MAX( DISTINCT 30 ), COUNT( * ) * + 68 * 68 col2, + COUNT( * ) * + 47 * + MAX( - 1 ) AS col0
----
124
4624
-47

skipif mysql # not compatible
query III rowsort label-9118
SELECT ALL + 94 + + MAX ( DISTINCT 30 ), COUNT ( * ) * + 68 * 68 col2, + COUNT ( * ) * + 47 * + MAX ( - 1 ) AS col0
----
124
4624
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9119
SELECT - COALESCE ( - 68, + CAST( + - 91 AS SIGNED ) )
----
68

skipif mysql # not compatible
query I rowsort label-9119
SELECT - COALESCE ( - 68, + CAST ( + - 91 AS INTEGER ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT - 91 * + COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-9120
SELECT - 91 * + COUNT ( * ) AS col0
----
-91

query I rowsort
SELECT DISTINCT - 49 * - 5 AS col2
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ALL MIN( ALL 6 ) - - 71 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL MIN ( ALL 6 ) - - 71 AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9123
SELECT 41 col0, + 45 + ( - - 30 ) DIV COALESCE ( + ( 83 ), - NULLIF ( + COUNT( ALL 55 ), 38 ) ) * 51 DIV + 40 * - MAX( DISTINCT - 62 ) * ( 50 ) + + COUNT( * ) + - 25
----
41
21

skipif mysql # not compatible
query II rowsort label-9123
SELECT 41 col0, + 45 + ( - - 30 ) / COALESCE ( + ( 83 ), - NULLIF ( + COUNT ( ALL 55 ), 38 ) ) * 51 / + 40 * - MAX ( DISTINCT - 62 ) * ( 50 ) + + COUNT ( * ) + - 25
----
41
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT DISTINCT ( + CAST( - 93 AS SIGNED ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT ( + CAST ( - 93 AS INTEGER ) ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT DISTINCT - 77 - + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT - 77 - + COUNT ( * )
----
-78

query I rowsort
SELECT DISTINCT 72 * - + 6
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT DISTINCT + COALESCE ( - 87, + 94 * - 92 * + 39 + - CASE 37 WHEN - COUNT( * ) THEN NULL WHEN - 3 * 81 + 77 + + 10 THEN + + 56 END + + COUNT( * ) )
----
-87

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT + COALESCE ( - 87, + 94 * - 92 * + 39 + - CASE 37 WHEN - COUNT ( * ) THEN NULL WHEN - 3 * 81 + 77 + + 10 THEN + + 56 END + + COUNT ( * ) )
----
-87

query I rowsort
SELECT + 31 * 97
----
3007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9129
SELECT DISTINCT 37 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT 37 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT 96 DIV 66 + - + 77 * + 92 AS col0
----
-7083

skipif mysql # not compatible
query I rowsort label-9130
SELECT 96 / 66 + - + 77 * + 92 AS col0
----
-7083

query I rowsort
SELECT + 66 * 86 * 59 col0
----
334884

query I rowsort
SELECT + ( - 99 ) + - 39
----
-138

query I rowsort
SELECT DISTINCT + 87 * 40 AS col2
----
3480

query II rowsort
SELECT ALL + 68 col0, + 44
----
68
44

query II rowsort
SELECT ALL + 42, 19 AS col2
----
42
19

query I rowsort
SELECT DISTINCT 94 * 36
----
3384

onlyif mysql # DIV for integer division: 
query I rowsort label-9137
SELECT ALL ( 18 ) DIV + 18
----
1

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL ( 18 ) / + 18
----
1

query I rowsort
SELECT + 90 * + 19 AS col0
----
1710

query I rowsort
SELECT + 60 * - 33 * - - 91 * 72 AS col0
----
-12972960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9140
SELECT + CASE - + 15 WHEN + - 38 THEN + + 86 WHEN + - CAST( - - ( 5 ) AS SIGNED ) THEN - 26 WHEN - 68 / COUNT( * ) THEN - ( - 37 ) END + CASE + - 31 WHEN - 11 THEN NULL ELSE 15 + - 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT + CASE - + 15 WHEN + - 38 THEN + + 86 WHEN + - CAST ( - - ( 5 ) AS INTEGER ) THEN - 26 WHEN - 68 / COUNT ( * ) THEN - ( - 37 ) END + CASE + - 31 WHEN - 11 THEN NULL ELSE 15 + - 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9141
SELECT ALL 47 + + 79 * COUNT( * ) * - + COUNT( * ), 67 + - + 30 AS col2
----
-32
37

skipif mysql # not compatible
query II rowsort label-9141
SELECT ALL 47 + + 79 * COUNT ( * ) * - + COUNT ( * ), 67 + - + 30 AS col2
----
-32
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT 59 * - - NULLIF ( - ( 65 ), COUNT( * ) ) + + 40
----
-3795

skipif mysql # not compatible
query I rowsort label-9142
SELECT 59 * - - NULLIF ( - ( 65 ), COUNT ( * ) ) + + 40
----
-3795

query I rowsort
SELECT ( - 8 ) * - 22 - + 12 AS col1
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9144
SELECT 79 * - + 83 + + 86 - + + 92 * - CAST( + - 59 AS SIGNED ) / + CAST( NULL AS SIGNED ) + + 27 + 39 / + CAST( NULL AS SIGNED ) * - 49 + + + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT 79 * - + 83 + + 86 - + + 92 * - CAST ( + - 59 AS INTEGER ) / + CAST ( NULL AS INTEGER ) + + 27 + 39 / + CAST ( NULL AS INTEGER ) * - 49 + + + 24 AS col2
----
NULL

query II rowsort
SELECT ALL - + 70 AS col1, - ( 13 ) * + 70 + + - 84 AS col0
----
-70
-994

query I rowsort
SELECT ALL 9 + - - 71
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT ALL + + CAST( + AVG ( - 67 ) AS SIGNED ) * - 86 AS col2
----
5762

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL + + CAST ( + AVG ( - 67 ) AS INTEGER ) * - 86 AS col2
----
5762

query I rowsort
SELECT ALL ( 78 ) * - 51 * - 45
----
179010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9149
SELECT ALL + - CAST( NULL AS SIGNED ) + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 29
----
NULL

query I rowsort
SELECT DISTINCT 32 + + 73
----
105

query II rowsort
SELECT DISTINCT + + 88 + - + 14 - - 76 AS col1, 6
----
150
6

query I rowsort
SELECT ALL CASE + 81 WHEN + 15 * - + 51 * - + 29 + 32 + 10 THEN NULL WHEN 98 THEN - 53 ELSE + 97 END * - 43 AS col0
----
-4171

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL MAX( ALL CASE + - 80 WHEN + 88 THEN NULL WHEN - 0 THEN - + 97 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL MAX ( ALL CASE + - 80 WHEN + 88 THEN NULL WHEN - 0 THEN - + 97 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9154
SELECT ( + 25 ) + - + 12 * 22 DIV + CAST( 26 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-9154
SELECT ( + 25 ) + - + 12 * 22 / + CAST ( 26 AS INTEGER )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT 40 * + 10 + + CAST( - + 40 AS SIGNED ) AS col0
----
360

skipif mysql # not compatible
query I rowsort label-9155
SELECT 40 * + 10 + + CAST ( - + 40 AS INTEGER ) AS col0
----
360

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9156
SELECT CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) + - 80 * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) + - 80 * 13
----
NULL

query I rowsort
SELECT DISTINCT + 90 - 24 + - 5 AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT 63 + + + 49 - - 44 DIV 10 - - + 60
----
176

skipif mysql # not compatible
query I rowsort label-9158
SELECT 63 + + + 49 - - 44 / 10 - - + 60
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-9159
SELECT ALL + 72 * - 16, - 71 + + COUNT( * ) AS col1
----
-1152
-70

skipif mysql # not compatible
query II rowsort label-9159
SELECT ALL + 72 * - 16, - 71 + + COUNT ( * ) AS col1
----
-1152
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT 73 * - CAST( - 65 AS SIGNED ) AS col1
----
4745

skipif mysql # not compatible
query I rowsort label-9160
SELECT 73 * - CAST ( - 65 AS INTEGER ) AS col1
----
4745

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT ALL 49 / - - CASE + - 43 WHEN + COUNT( * ) THEN NULL WHEN + 27 / 61 THEN + COUNT( * ) / - COALESCE ( + + MAX( + 20 ), + 15 - + COUNT( * ) ) / - - 15 + 41 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL 49 / - - CASE + - 43 WHEN + COUNT ( * ) THEN NULL WHEN + 27 / 61 THEN + COUNT ( * ) / - COALESCE ( + + MAX ( + 20 ), + 15 - + COUNT ( * ) ) / - - 15 + 41 END AS col1
----
NULL

query I rowsort
SELECT ALL + 63 * + 6
----
378

query I rowsort
SELECT 79 + + 29 + 31 AS col0
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9164
SELECT DISTINCT + 90 DIV COALESCE ( - - ( - 14 ), ( + 32 ) ) * + COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT + 90 / COALESCE ( - - ( - 14 ), ( + 32 ) ) * + COUNT ( * ) AS col1
----
-6

query I rowsort
SELECT ALL - 0 * + 91 AS col0
----
0

query II rowsort
SELECT 88 + - 21 AS col0, + 56 AS col0
----
67
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT ALL + 27 - SUM( ALL 6 )
----
21

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL + 27 - SUM ( ALL 6 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT DISTINCT + 18 * + - MIN( + 51 )
----
-918

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT + 18 * + - MIN ( + 51 )
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT 72 * + - COUNT( * ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-9169
SELECT 72 * + - COUNT ( * ) col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9170
SELECT ALL + COUNT( * ) * - - 72 * - 37 * - COUNT( * ) * ( MAX( + CAST( - 15 AS SIGNED ) ) ) AS col1
----
-39960

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL + COUNT ( * ) * - - 72 * - 37 * - COUNT ( * ) * ( MAX ( + CAST ( - 15 AS INTEGER ) ) ) AS col1
----
-39960

onlyif mysql # aggregate syntax: 
query II rowsort label-9171
SELECT COUNT( * ) * NULLIF ( 72, 73 + + + 59 + - 11 + + + 40 ) AS col0, - 91 AS col2
----
72
-91

skipif mysql # not compatible
query II rowsort label-9171
SELECT COUNT ( * ) * NULLIF ( 72, 73 + + + 59 + - 11 + + + 40 ) AS col0, - 91 AS col2
----
72
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9172
SELECT DISTINCT - ( - - NULLIF ( - 55, 47 ) ), CAST( NULL AS DECIMAL ) AS col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-9172
SELECT DISTINCT - ( - - NULLIF ( - 55, 47 ) ), CAST ( NULL AS REAL ) AS col0
----
55
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9173
SELECT 97 * - - 69 DIV 95 DIV + + 58 DIV - ( - 53 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9173
SELECT 97 * - - 69 / 95 / + + 58 / - ( - 53 ) AS col1
----
0

query I rowsort
SELECT ALL + 1 * + 52 AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9175
SELECT DISTINCT - ( + 51 ) AS col2, + COUNT( * ) * + + 42 - - 11 + 96 AS col2
----
-51
149

skipif mysql # not compatible
query II rowsort label-9175
SELECT DISTINCT - ( + 51 ) AS col2, + COUNT ( * ) * + + 42 - - 11 + 96 AS col2
----
-51
149

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9176
SELECT ALL CAST( NULL AS SIGNED ) + + + CAST( - 98 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL CAST ( NULL AS INTEGER ) + + + CAST ( - 98 AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9177
SELECT + 44 DIV COALESCE ( 34, - 34 * CASE + 52 WHEN - COUNT( * ) + - CAST( 43 AS SIGNED ) THEN NULL WHEN 44 THEN - + CAST( NULL AS SIGNED ) END + 83 * - 73, + SUM( + 78 ) * + - 94 + - 63 ) * 34 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-9177
SELECT + 44 / COALESCE ( 34, - 34 * CASE + 52 WHEN - COUNT ( * ) + - CAST ( 43 AS INTEGER ) THEN NULL WHEN 44 THEN - + CAST ( NULL AS INTEGER ) END + 83 * - 73, + SUM ( + 78 ) * + - 94 + - 63 ) * 34 / 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9178
SELECT + NULLIF ( MAX( DISTINCT + 60 ), - 17 * + 85 * CAST( + COALESCE ( 36, - + 99 + - CAST( NULL AS SIGNED ) ) AS SIGNED ) + + 41 * - 15 + - - 72 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9178
SELECT + NULLIF ( MAX ( DISTINCT + 60 ), - 17 * + 85 * CAST ( + COALESCE ( 36, - + 99 + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + 41 * - 15 + - - 72 ) AS col1
----
60

query I rowsort
SELECT ALL - - 86 + - 43 AS col2
----
43

query I rowsort
SELECT ALL + 93 + - - 27 - - 62
----
182

query I rowsort
SELECT ( - 71 ) * 46
----
-3266

onlyif mysql # aggregate syntax: 
query II rowsort label-9182
SELECT - 10 + - 39 * COUNT( * ) + + 62 + - - 83 AS col0, 11 * - ( + 75 ) AS col2
----
96
-825

skipif mysql # not compatible
query II rowsort label-9182
SELECT - 10 + - 39 * COUNT ( * ) + + 62 + - - 83 AS col0, 11 * - ( + 75 ) AS col2
----
96
-825

onlyif mysql # aggregate syntax: 
query II rowsort label-9183
SELECT DISTINCT CASE + 53 WHEN + 17 THEN 92 WHEN + - 23 * - 14 THEN 4 * + ( + COUNT( * ) ) + - 5 END + SUM( + ( 23 ) ) * - 26 col0, 54 AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-9183
SELECT DISTINCT CASE + 53 WHEN + 17 THEN 92 WHEN + - 23 * - 14 THEN 4 * + ( + COUNT ( * ) ) + - 5 END + SUM ( + ( 23 ) ) * - 26 col0, 54 AS col2
----
NULL
54

onlyif mysql # aggregate syntax: 
query II rowsort label-9184
SELECT DISTINCT - ( - + 80 ) AS col1, COUNT( * )
----
80
1

skipif mysql # not compatible
query II rowsort label-9184
SELECT DISTINCT - ( - + 80 ) AS col1, COUNT ( * )
----
80
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9185
SELECT + ( - 88 ) DIV + COUNT( * ) - - 49 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9185
SELECT + ( - 88 ) / + COUNT ( * ) - - 49 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ALL - 33 + + - SUM( DISTINCT + 5 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL - 33 + + - SUM ( DISTINCT + 5 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ALL CASE - 4 WHEN + + 64 * + 95 THEN - + 5 WHEN - - 65 THEN NULL WHEN - - 33 THEN - 4 * + + 53 + - + 17 * - ( COUNT( * ) ) * - ( + 86 ) - 23 END + + + 77 + + ( + ( + 78 ) ) * + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL CASE - 4 WHEN + + 64 * + 95 THEN - + 5 WHEN - - 65 THEN NULL WHEN - - 33 THEN - 4 * + + 53 + - + 17 * - ( COUNT ( * ) ) * - ( + 86 ) - 23 END + + + 77 + + ( + ( + 78 ) ) * + 3 AS col2
----
NULL

query I rowsort
SELECT ALL ( - 91 ) + 25 AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9189
SELECT ALL CAST( NULL AS SIGNED ) * 15 * + + 90 + 26 / 75 * + 1 / - ( + NULLIF ( - 63, - ( + 43 ) / + + COUNT( * ) - + 61 - 19 ) ) * - + COUNT( * ) + 52 + + 54 * - COALESCE ( 85, - - COUNT( * ) + 59, + 20 / - 86 + - - 53 + + - 3 ) * + - ( - 42 ) * - 70 + - 84 - - COUNT( * ) * + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL CAST ( NULL AS INTEGER ) * 15 * + + 90 + 26 / 75 * + 1 / - ( + NULLIF ( - 63, - ( + 43 ) / + + COUNT ( * ) - + 61 - 19 ) ) * - + COUNT ( * ) + 52 + + 54 * - COALESCE ( 85, - - COUNT ( * ) + 59, + 20 / - 86 + - - 53 + + - 3 ) * + - ( - 42 ) * - 70 + - 84 - - COUNT ( * ) * + + 60
----
NULL

query I rowsort
SELECT + + 87 * NULLIF ( - 49, 16 ) + + 85
----
-4178

onlyif mysql # DIV for integer division: 
query II rowsort label-9191
SELECT 86 DIV + 91 AS col2, 91 AS col0
----
0
91

skipif mysql # not compatible
query II rowsort label-9191
SELECT 86 / + 91 AS col2, 91 AS col0
----
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT + SUM( 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9192
SELECT + SUM ( 3 ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9193
SELECT COALESCE ( COUNT( * ), 52, + + 15 ) + - - 65 - - CAST( NULL AS SIGNED ) * - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT COALESCE ( COUNT ( * ), 52, + + 15 ) + - - 65 - - CAST ( NULL AS INTEGER ) * - 2 AS col1
----
NULL

query I rowsort
SELECT ALL + 50 + + 55 + 24 AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT - COALESCE ( 45, + + COUNT( * ) ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-9195
SELECT - COALESCE ( 45, + + COUNT ( * ) ) col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9196
SELECT MAX( + CAST( NULL AS SIGNED ) ) - + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9196
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) - + - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT - - NULLIF ( 85, - SUM( DISTINCT 72 ) * - 98 + - NULLIF ( COUNT( * ), + 55 ) / + ( SUM( 71 ) ) * 23 + + - 69 - 68 + - MAX( DISTINCT + 50 ) + + 88 + - 11 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-9197
SELECT - - NULLIF ( 85, - SUM ( DISTINCT 72 ) * - 98 + - NULLIF ( COUNT ( * ), + 55 ) / + ( SUM ( 71 ) ) * 23 + + - 69 - 68 + - MAX ( DISTINCT + 50 ) + + 88 + - 11 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT - COUNT( * ) + + - 66 + + 98 * - 39
----
-3889

skipif mysql # not compatible
query I rowsort label-9198
SELECT - COUNT ( * ) + + - 66 + + 98 * - 39
----
-3889

query I rowsort
SELECT DISTINCT 79 - + 94 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL 32 - 84 + + - COUNT( * ) / + CASE + 6 WHEN 32 THEN - + 54 WHEN - SUM( ALL + 1 ) * - ( 11 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL 32 - 84 + + - COUNT ( * ) / + CASE + 6 WHEN 32 THEN - + 54 WHEN - SUM ( ALL + 1 ) * - ( 11 ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9201
SELECT - COUNT( * ) AS col0, 52
----
-1
52

skipif mysql # not compatible
query II rowsort label-9201
SELECT - COUNT ( * ) AS col0, 52
----
-1
52

query I rowsort
SELECT DISTINCT 8 * + 43 AS col1
----
344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-9203
SELECT ALL + 77 - - - CAST( 16 AS SIGNED ) + + 30 - - 99 DIV ( + 50 ) + - + 59, - COUNT( * ) + + 25 - - MIN( - 78 ) * - 38 + + CAST( NULL AS DECIMAL ) AS col1
----
33
NULL

skipif mysql # not compatible
query II rowsort label-9203
SELECT ALL + 77 - - - CAST ( 16 AS INTEGER ) + + 30 - - 99 / ( + 50 ) + - + 59, - COUNT ( * ) + + 25 - - MIN ( - 78 ) * - 38 + + CAST ( NULL AS REAL ) AS col1
----
33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL 26 * + 60 * SUM( - 34 )
----
-53040

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL 26 * + 60 * SUM ( - 34 )
----
-53040

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT DISTINCT COUNT( 4 ) * + - CASE - - 66 WHEN + COUNT( * ) THEN - - 27 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT COUNT ( 4 ) * + - CASE - - 66 WHEN + COUNT ( * ) THEN - - 27 END AS col1
----
NULL

query I rowsort
SELECT 72 * - 88
----
-6336

query I rowsort
SELECT 7 * - 77 col0
----
-539

query II rowsort
SELECT ALL 61 col0, - 78
----
61
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9209
SELECT ALL - COUNT( * ) DIV + + 50 * - 32 AS col2, + COUNT( * ) + - + 98
----
0
-97

skipif mysql # not compatible
query II rowsort label-9209
SELECT ALL - COUNT ( * ) / + + 50 * - 32 AS col2, + COUNT ( * ) + - + 98
----
0
-97

query I rowsort
SELECT 97 * - 57
----
-5529

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT ALL 60 + - MIN( ALL - + 37 ) + 20
----
117

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL 60 + - MIN ( ALL - + 37 ) + 20
----
117

query I rowsort
SELECT 7 * - 98 * 43 col1
----
-29498

onlyif mysql # aggregate syntax: 
query II rowsort label-9213
SELECT ALL + MIN( DISTINCT + 55 ) + 52 AS col2, 68 * COUNT( * ) AS col0
----
107
68

skipif mysql # not compatible
query II rowsort label-9213
SELECT ALL + MIN ( DISTINCT + 55 ) + 52 AS col2, 68 * COUNT ( * ) AS col0
----
107
68

query I rowsort
SELECT 13 - + 88
----
-75

query I rowsort
SELECT ALL - 7 * + 97 + + 24 AS col0
----
-655

query I rowsort
SELECT 23 * NULLIF ( + 48, - 32 ) AS col0
----
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT + SUM( DISTINCT - 54 ) * COUNT( * ) * - COUNT( * ) + + + 65 + 55 + - 99 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9217
SELECT + SUM ( DISTINCT - 54 ) * COUNT ( * ) * - COUNT ( * ) + + + 65 + 55 + - 99 AS col2
----
75

query I rowsort
SELECT - 0 * 28
----
0

query I rowsort
SELECT ALL + 56 * 98 + - 91
----
5397

query I rowsort
SELECT - 99 + + 27 * + - 12
----
-423

query I rowsort
SELECT - 0 * - - 20 - - 88 + + 49 * + 37 - - 26 + + 68 * + 67 * 82 AS col1
----
375519

query I rowsort
SELECT DISTINCT + + 30 * - 85 * 75
----
-191250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT ALL + CAST( - - 8 AS SIGNED ) * 29 * + 52 - 73 + - 60 + + ( - 58 ) col0
----
11873

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL + CAST ( - - 8 AS INTEGER ) * 29 * + 52 - 73 + - 60 + + ( - 58 ) col0
----
11873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9224
SELECT 76 * - + 32 / 46 - - CASE - ( - COUNT( * ) ) WHEN + 64 + + + COALESCE ( + 37, + CASE - 65 WHEN + 67 THEN NULL ELSE + - 50 * - + 82 END * + COUNT( * ) + + 87 * - COUNT( * ) ) + - 44 - 24 + - 36 THEN NULL WHEN + 7 * - 41 THEN NULL ELSE - CASE - - 63 WHEN 57 * + COUNT( * ) * - 65 + + + 23 THEN NULL WHEN + ( - + COUNT( * ) ) + + ( - ( - - 13 ) ) THEN - CAST( NULL AS DECIMAL ) END * 65 / 72 + 90 - + 95 + + + 28 * CASE + 18 WHEN 56 THEN + CAST( 92 AS SIGNED ) + + 92 / + 60 END - - ( + 77 ) * 53 * - 45 + 53 END + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9224
SELECT 76 * - + 32 / 46 - - CASE - ( - COUNT ( * ) ) WHEN + 64 + + + COALESCE ( + 37, + CASE - 65 WHEN + 67 THEN NULL ELSE + - 50 * - + 82 END * + COUNT ( * ) + + 87 * - COUNT ( * ) ) + - 44 - 24 + - 36 THEN NULL WHEN + 7 * - 41 THEN NULL ELSE - CASE - - 63 WHEN 57 * + COUNT ( * ) * - 65 + + + 23 THEN NULL WHEN + ( - + COUNT ( * ) ) + + ( - ( - - 13 ) ) THEN - CAST ( NULL AS REAL ) END * 65 / 72 + 90 - + 95 + + + 28 * CASE + 18 WHEN 56 THEN + CAST ( 92 AS INTEGER ) + + 92 / + 60 END - - ( + 77 ) * 53 * - 45 + 53 END + - 67
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT DISTINCT + - NULLIF ( - + 13, CAST( + 81 AS SIGNED ) / - + 80 * - + ( + + 28 ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT + - NULLIF ( - + 13, CAST ( + 81 AS INTEGER ) / - + 80 * - + ( + + 28 ) ) AS col2
----
13

query I rowsort
SELECT + - 27 + - 8
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL 4 * 65 + - 74 - - - COUNT( * ) * + 42 AS col0
----
144

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL 4 * 65 + - 74 - - - COUNT ( * ) * + 42 AS col0
----
144

query I rowsort
SELECT + 71 * 82 AS col2
----
5822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9229
SELECT ALL + CAST( - 95 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL + CAST ( - 95 AS INTEGER )
----
-95

query I rowsort
SELECT - 8 * + 4 + - 86
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-9231
SELECT - 38 * COUNT( * ) - CASE + - ( 80 ) WHEN COUNT( * ) THEN NULL WHEN - - 89 THEN + 24 END AS col0, 43 col2
----
NULL
43

skipif mysql # not compatible
query II rowsort label-9231
SELECT - 38 * COUNT ( * ) - CASE + - ( 80 ) WHEN COUNT ( * ) THEN NULL WHEN - - 89 THEN + 24 END AS col0, 43 col2
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT DISTINCT - 27 * + COUNT( * ) * 9 * 32 col0
----
-7776

skipif mysql # not compatible
query I rowsort label-9232
SELECT DISTINCT - 27 * + COUNT ( * ) * 9 * 32 col0
----
-7776

query I rowsort
SELECT + ( + 83 ) - + - 23 AS col0
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9234
SELECT DISTINCT + 27 - + 64 + COUNT( * ) / - CAST( CASE + NULLIF ( 29, - - 13 / - 9 * - + 13 * + 72 + - + 60 + COUNT( * ) + COUNT( * ) ) WHEN + + 56 / - AVG ( ( 3 ) ) + 86 THEN - + CAST( NULL AS SIGNED ) WHEN - 24 + CAST( NULL AS SIGNED ) THEN NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT + 27 - + 64 + COUNT ( * ) / - CAST ( CASE + NULLIF ( 29, - - 13 / - 9 * - + 13 * + 72 + - + 60 + COUNT ( * ) + COUNT ( * ) ) WHEN + + 56 / - AVG ( ( 3 ) ) + 86 THEN - + CAST ( NULL AS INTEGER ) WHEN - 24 + CAST ( NULL AS INTEGER ) THEN NULL END AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9235
SELECT DISTINCT 85 col0, - 49 + - COUNT( * ) * + - 92
----
85
43

skipif mysql # not compatible
query II rowsort label-9235
SELECT DISTINCT 85 col0, - 49 + - COUNT ( * ) * + - 92
----
85
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT - ( + 79 ) * - ( - + COUNT( * ) ) * + - 52 AS col0
----
4108

skipif mysql # not compatible
query I rowsort label-9236
SELECT - ( + 79 ) * - ( - + COUNT ( * ) ) * + - 52 AS col0
----
4108

query I rowsort
SELECT - CASE - 71 WHEN - 75 THEN - ( 62 ) - + - 46 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT - ( - 52 ) + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-9238
SELECT - ( - 52 ) + - COUNT ( * )
----
51

query I rowsort
SELECT + 67 * - 70 AS col0
----
-4690

query I rowsort
SELECT + 78 + + 22 col2
----
100

query II rowsort
SELECT ALL 57 AS col0, - 78 * + 67 AS col0
----
57
-5226

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ALL 42 + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL 42 + COUNT ( * )
----
43

query II rowsort
SELECT - ( + - ( COALESCE ( - 85, + - 38, 71 + 39 ) ) ) col2, ( - 27 ) AS col0
----
-85
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT DISTINCT 71 + + - MIN( - + 87 ) + - + 17 * + 32 AS col0
----
-386

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT 71 + + - MIN ( - + 87 ) + - + 17 * + 32 AS col0
----
-386

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9245
SELECT - CASE - - 66 WHEN + - 78 * + - 85 * 78 * - - 33 * - COALESCE ( + 80, ( + + 48 ) + + + 51 ) + + + 0 + 83 * - 82 * + + CAST( + + COUNT( * ) AS DECIMAL ) * COUNT( * ) THEN 2 + + 23 + + 33 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT - CASE - - 66 WHEN + - 78 * + - 85 * 78 * - - 33 * - COALESCE ( + 80, ( + + 48 ) + + + 51 ) + + + 0 + 83 * - 82 * + + CAST ( + + COUNT ( * ) AS REAL ) * COUNT ( * ) THEN 2 + + 23 + + 33 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL 6 + MAX( + 63 )
----
69

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL 6 + MAX ( + 63 )
----
69

query I rowsort
SELECT + 12 * - 35 * - + 95
----
39900

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9248
SELECT - AVG ( + 48 ) + - 21 + 1 * 19 + + - CASE - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) WHEN - 68 / - 97 THEN 31 ELSE NULL END - - 83 AS col2, + 87 AS col2
----
NULL
87

skipif mysql # not compatible
query II rowsort label-9248
SELECT - AVG ( + 48 ) + - 21 + 1 * 19 + + - CASE - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) WHEN - 68 / - 97 THEN 31 ELSE NULL END - - 83 AS col2, + 87 AS col2
----
NULL
87

query I rowsort
SELECT DISTINCT 41 + + ( - ( - 47 ) )
----
88

query II rowsort
SELECT + 36 AS col1, - 9
----
36
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9251
SELECT ALL + 10, - COUNT( * ) + 79 + + 13 * + - 75 * + NULLIF ( - 23, + 0 - - 37 + CAST( + COUNT( * ) AS SIGNED ) * - 89 ) AS col2
----
10
22503

skipif mysql # not compatible
query II rowsort label-9251
SELECT ALL + 10, - COUNT ( * ) + 79 + + 13 * + - 75 * + NULLIF ( - 23, + 0 - - 37 + CAST ( + COUNT ( * ) AS INTEGER ) * - 89 ) AS col2
----
10
22503

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9252
SELECT + SUM( CASE - - 11 WHEN + - 14 THEN 45 * - + 12 + + 40 + - 16 + - - 75 ELSE - CAST( - 60 AS SIGNED ) + - 29 * + 18 END ) DIV 83 AS col0, - 93 * - ( COUNT( * ) ), - - COUNT( * ) col2
----
-5
93
1

skipif mysql # not compatible
query III rowsort label-9252
SELECT + SUM ( CASE - - 11 WHEN + - 14 THEN 45 * - + 12 + + 40 + - 16 + - - 75 ELSE - CAST ( - 60 AS INTEGER ) + - 29 * + 18 END ) / 83 AS col0, - 93 * - ( COUNT ( * ) ), - - COUNT ( * ) col2
----
-5
93
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9253
SELECT DISTINCT - 51 DIV - + 95 + - 36 - + + 12
----
-48

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT - 51 / - + 95 + - 36 - + + 12
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9254
SELECT ALL - COUNT( * ) DIV + 67 + 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL - COUNT ( * ) / + 67 + 40 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT ALL + + SUM( + 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL + + SUM ( + 3 ) AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9256
SELECT ALL 56 DIV - 36 - 58 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL 56 / - 36 - 58 AS col1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9257
SELECT - + 5 DIV 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9257
SELECT - + 5 / 79 AS col1
----
0

query I rowsort
SELECT DISTINCT 98 * - 52 AS col2
----
-5096

query II rowsort
SELECT - 76 AS col1, 64
----
-76
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9260
SELECT COUNT( * ), - 75 AS col0
----
1
-75

skipif mysql # not compatible
query II rowsort label-9260
SELECT COUNT ( * ), - 75 AS col0
----
1
-75

query I rowsort
SELECT + 99 * + 63 AS col0
----
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL - + 52 * - 46 + + + COUNT( * )
----
2393

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL - + 52 * - 46 + + + COUNT ( * )
----
2393

query I rowsort
SELECT - + 53 + 94
----
41

query I rowsort
SELECT DISTINCT - ( - + 62 ) * 69
----
4278

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT + - MAX( DISTINCT - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-9265
SELECT + - MAX ( DISTINCT - 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT DISTINCT + ( - MIN( ALL ( 56 ) ) )
----
-56

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT + ( - MIN ( ALL ( 56 ) ) )
----
-56

query I rowsort
SELECT ALL + 85 * + + 50 * 88 - + + 46
----
373954

query II rowsort
SELECT ALL + 28 AS col2, + 7 AS col1
----
28
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT DISTINCT - - ( - 25 ) / 78 + + - 97 + 97 + - ( + + CASE - + 50 WHEN - 19 THEN - NULLIF ( + + 38, 42 ) + + 66 * - 76 END ) * + + 30 / + - 77 + - + 68 + - - 69 / 37 * MIN( DISTINCT + ( - NULLIF ( 4, - 24 ) ) ) * 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT - - ( - 25 ) / 78 + + - 97 + 97 + - ( + + CASE - + 50 WHEN - 19 THEN - NULLIF ( + + 38, 42 ) + + 66 * - 76 END ) * + + 30 / + - 77 + - + 68 + - - 69 / 37 * MIN ( DISTINCT + ( - NULLIF ( 4, - 24 ) ) ) * 60 AS col0
----
NULL

query I rowsort
SELECT - 58 + - 97
----
-155

onlyif mysql # aggregate syntax: 
query II rowsort label-9271
SELECT DISTINCT + ( 67 ) AS col0, 65 * + COUNT( * )
----
67
65

skipif mysql # not compatible
query II rowsort label-9271
SELECT DISTINCT + ( 67 ) AS col0, 65 * + COUNT ( * )
----
67
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT - 9 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT - 9 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT - COUNT( * ) + 70 + + + CASE - - MAX( DISTINCT 21 ) WHEN 94 THEN - NULLIF ( - MAX( ALL - 62 ), + 89 * - + 35 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT - COUNT ( * ) + 70 + + + CASE - - MAX ( DISTINCT 21 ) WHEN 94 THEN - NULLIF ( - MAX ( ALL - 62 ), + 89 * - + 35 ) END AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( + 81, + 51 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9275
SELECT ALL - COUNT( * ) * 25 * - COUNT( * ) AS col0, + 4 * COUNT( DISTINCT - 14 )
----
25
4

skipif mysql # not compatible
query II rowsort label-9275
SELECT ALL - COUNT ( * ) * 25 * - COUNT ( * ) AS col0, + 4 * COUNT ( DISTINCT - 14 )
----
25
4

query I rowsort
SELECT DISTINCT - 12 * 28 + - 28
----
-364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9277
SELECT - CASE - CASE - 22 WHEN 12 THEN NULL WHEN 60 * + + COUNT( * ) THEN + ( - 93 ) END WHEN - COUNT( * ) THEN - CAST( NULL AS SIGNED ) ELSE - 57 * + 18 END AS col2, CASE - - 41 WHEN + ( ( + - 48 ) ) THEN + - 71 + 77 + + 32 / - NULLIF ( 85, - 52 ) * + 9 + - + 66 + + 91 END + COALESCE ( + - 38, CAST( - COALESCE ( + 12, + 65 ) AS SIGNED ), - - 61 * - COUNT( * ) * - 62 ) * + + 41
----
1026
NULL

skipif mysql # not compatible
query II rowsort label-9277
SELECT - CASE - CASE - 22 WHEN 12 THEN NULL WHEN 60 * + + COUNT ( * ) THEN + ( - 93 ) END WHEN - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) ELSE - 57 * + 18 END AS col2, CASE - - 41 WHEN + ( ( + - 48 ) ) THEN + - 71 + 77 + + 32 / - NULLIF ( 85, - 52 ) * + 9 + - + 66 + + 91 END + COALESCE ( + - 38, CAST ( - COALESCE ( + 12, + 65 ) AS INTEGER ), - - 61 * - COUNT ( * ) * - 62 ) * + + 41
----
1026
NULL

query II rowsort
SELECT + 48 * - - ( 14 ) AS col2, 26
----
672
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT 23 * - ( - + COUNT( * ) ) * + 84 AS col1
----
1932

skipif mysql # not compatible
query I rowsort label-9279
SELECT 23 * - ( - + COUNT ( * ) ) * + 84 AS col1
----
1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT DISTINCT 18 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT 18 + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL ( COUNT( DISTINCT - 91 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL ( COUNT ( DISTINCT - 91 ) )
----
1

query I rowsort
SELECT 46 - - 47 col0
----
93

query II rowsort
SELECT ALL 87 - + 24, - 38 + - 14 AS col1
----
63
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-9284
SELECT - 56 * - 29 AS col2, CASE WHEN NOT + COUNT( * ) <= + COUNT( * ) THEN + - ( + + 33 ) * COUNT( * ) / - 24 * + - COUNT( * ) * + + 54 - - 65 ELSE NULL END AS col0
----
1624
NULL

skipif mysql # not compatible
query II rowsort label-9284
SELECT - 56 * - 29 AS col2, CASE WHEN NOT + COUNT ( * ) <= + COUNT ( * ) THEN + - ( + + 33 ) * COUNT ( * ) / - 24 * + - COUNT ( * ) * + + 54 - - 65 ELSE NULL END AS col0
----
1624
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9285
SELECT - SUM( + - 54 ) AS col1, SUM( DISTINCT + 4 )
----
54
4

skipif mysql # not compatible
query II rowsort label-9285
SELECT - SUM ( + - 54 ) AS col1, SUM ( DISTINCT + 4 )
----
54
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9286
SELECT 15 DIV + 76 * + + 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9286
SELECT 15 / + 76 * + + 34 AS col1
----
0

query II rowsort
SELECT + 97 + - + 4, 99 AS col0
----
93
99

query I rowsort
SELECT ALL - ( + + 51 ) AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT DISTINCT - - CAST( - + 86 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT - - CAST ( - + 86 AS INTEGER )
----
-86

query I rowsort
SELECT + - 46 * + 10 + + COALESCE ( ( + ( + 31 ) ), + 74 * - COALESCE ( + - 23, - 57 * + 44 ) + + + ( 33 ), + + 75, + 57 )
----
-429

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT ALL + 38 DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL + 38 / 95 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9292
SELECT 94 DIV 13 * + + CAST( - + 73 AS SIGNED ) AS col2
----
-511

skipif mysql # not compatible
query I rowsort label-9292
SELECT 94 / 13 * + + CAST ( - + 73 AS INTEGER ) AS col2
----
-511

query I rowsort
SELECT ALL - ( + - 25 ) col1
----
25

query I rowsort
SELECT ALL - 47 * + 33
----
-1551

query I rowsort
SELECT 43 * + - 75 * 21 AS col0
----
-67725

query I rowsort
SELECT - COALESCE ( + 61, - 57 ) + 73 col0
----
12

query I rowsort
SELECT ALL 16 * - 96 AS col1
----
-1536

query I rowsort
SELECT 33 + + 36
----
69

query I rowsort
SELECT ALL 79 * - + ( - + 93 )
----
7347

query I rowsort
SELECT DISTINCT + 27 * + 88
----
2376

query II rowsort
SELECT + 87 col1, 75 * - + 5 * + + 14 AS col2
----
87
-5250

query I rowsort
SELECT ALL - CASE 16 WHEN - 53 THEN + 69 * + + 40 ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9303
SELECT DISTINCT - 55 + + - 26 + CAST( NULL AS SIGNED ) * COUNT( * ) - + 31 * + CAST( NULL AS SIGNED ) * 66 * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT - 55 + + - 26 + CAST ( NULL AS INTEGER ) * COUNT ( * ) - + 31 * + CAST ( NULL AS INTEGER ) * 66 * 87
----
NULL

query II rowsort
SELECT 6, 66 col1
----
6
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT DISTINCT + CASE 28 WHEN - - 97 + 50 THEN - - ( + MAX( 47 ) ) END + - NULLIF ( - - 93, - + 23 * + COUNT( * ) ) + 31 + + 16 * - COUNT( * ) + 99 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT + CASE 28 WHEN - - 97 + 50 THEN - - ( + MAX ( 47 ) ) END + - NULLIF ( - - 93, - + 23 * + COUNT ( * ) ) + 31 + + 16 * - COUNT ( * ) + 99 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9306
SELECT + 31 * - 87 + + 73 + + CAST( NULL AS SIGNED ) AS col0, 56 + - 43
----
NULL
13

skipif mysql # not compatible
query II rowsort label-9306
SELECT + 31 * - 87 + + 73 + + CAST ( NULL AS INTEGER ) AS col0, 56 + - 43
----
NULL
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9307
SELECT 23 * ( - CAST( - - 58 AS SIGNED ) ) * - 99 * + - 24, 77 AS col1
----
-3169584
77

skipif mysql # not compatible
query II rowsort label-9307
SELECT 23 * ( - CAST ( - - 58 AS INTEGER ) ) * - 99 * + - 24, 77 AS col1
----
-3169584
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9308
SELECT ALL + 37 + - ( 80 ), - CASE - + 34 WHEN + - 9 THEN COUNT( * ) END AS col2
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-9308
SELECT ALL + 37 + - ( 80 ), - CASE - + 34 WHEN + - 9 THEN COUNT ( * ) END AS col2
----
-43
NULL

query II rowsort
SELECT 0, - 0
----
0
0

query I rowsort
SELECT 3 + + 90
----
93

query II rowsort
SELECT - 65, 85 AS col2
----
-65
85

onlyif mysql # aggregate syntax: 
query II rowsort label-9312
SELECT 43 AS col1, + 52 * COUNT( * )
----
43
52

skipif mysql # not compatible
query II rowsort label-9312
SELECT 43 AS col1, + 52 * COUNT ( * )
----
43
52

query I rowsort
SELECT ALL + ( 84 ) * 75
----
6300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9314
SELECT 13 + - ( 13 ) DIV - - MAX( + + 81 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9314
SELECT 13 + - ( 13 ) / - - MAX ( + + 81 ) AS col0
----
13

query I rowsort
SELECT 22 + + 56 + + - 78 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9316
SELECT ALL - CAST( NULL AS SIGNED ) - - 41 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL - CAST ( NULL AS INTEGER ) - - 41 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 32 + - 46 AS col0
----
-14

query II rowsort
SELECT 38 + 0 + + 35 AS col1, - 33 AS col1
----
73
-33

query I rowsort
SELECT DISTINCT + - 23 * - 49
----
1127

query I rowsort
SELECT 60 + - - 74
----
134

query I rowsort
SELECT ALL + - ( + 58 ) - - - 42 AS col0
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-9322
SELECT NULLIF ( - 15, - + ( - - 51 ) ) DIV - 16 + - 91
----
-91

skipif mysql # not compatible
query I rowsort label-9322
SELECT NULLIF ( - 15, - + ( - - 51 ) ) / - 16 + - 91
----
-91

query I rowsort
SELECT 7 + - 99 AS col2
----
-92

query I rowsort
SELECT + 54 * + 42 AS col2
----
2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9325
SELECT + COUNT( * ) + MAX( + CAST( + 58 AS SIGNED ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9325
SELECT + COUNT ( * ) + MAX ( + CAST ( + 58 AS INTEGER ) ) AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9326
SELECT + CAST( NULL AS SIGNED ) + ( 26 ) AS col2, ( + 42 ) + 4 AS col0, - 7
----
NULL
46
-7

skipif mysql # not compatible
query III rowsort label-9326
SELECT + CAST ( NULL AS INTEGER ) + ( 26 ) AS col2, ( + 42 ) + 4 AS col0, - 7
----
NULL
46
-7

query II rowsort
SELECT DISTINCT - 60 AS col2, 74 AS col0
----
-60
74

query II rowsort
SELECT ALL - 19, - 59 AS col2
----
-19
-59

query I rowsort
SELECT DISTINCT - 9 * + 50 AS col1
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT DISTINCT - COALESCE ( COUNT( * ), 59 * - + 2 + 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT - COALESCE ( COUNT ( * ), 59 * - + 2 + 64 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT + NULLIF ( 42, - 82 + + COUNT( * ) + + 88 )
----
42

skipif mysql # not compatible
query I rowsort label-9331
SELECT + NULLIF ( 42, - 82 + + COUNT ( * ) + + 88 )
----
42

query I rowsort
SELECT - 45 * + CASE 64 WHEN + 60 * + 97 THEN - 72 + + 40 WHEN - + 17 THEN + 42 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9333
SELECT + 84 AS col0, - COUNT( * )
----
84
-1

skipif mysql # not compatible
query II rowsort label-9333
SELECT + 84 AS col0, - COUNT ( * )
----
84
-1

query I rowsort
SELECT + 97 - + - 84 + - - 66 * + - 13 AS col0
----
-677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9335
SELECT ( - ( - CAST( + COUNT( * ) AS SIGNED ) ) ) * - SUM( COALESCE ( + 91, + ( - - 13 ) + + 79 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-9335
SELECT ( - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) ) * - SUM ( COALESCE ( + 91, + ( - - 13 ) + + 79 ) )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9336
SELECT ALL - MIN( + 5 ) AS col0, - 77 - - - 82 * 41 AS col0
----
-5
-3439

skipif mysql # not compatible
query II rowsort label-9336
SELECT ALL - MIN ( + 5 ) AS col0, - 77 - - - 82 * 41 AS col0
----
-5
-3439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9337
SELECT + COUNT( DISTINCT - 34 ) AS col0, 61 * + CAST( 73 AS SIGNED )
----
1
4453

skipif mysql # not compatible
query II rowsort label-9337
SELECT + COUNT ( DISTINCT - 34 ) AS col0, 61 * + CAST ( 73 AS INTEGER )
----
1
4453

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT ALL MIN( 63 ) + + - COUNT( * ) * + 50 + 17 col0
----
30

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL MIN ( 63 ) + + - COUNT ( * ) * + 50 + 17 col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT ALL COUNT( * ) + - 40 + + 37 + + 93
----
91

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL COUNT ( * ) + - 40 + + 37 + + 93
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT DISTINCT + ( COUNT( * ) ) * - 51 * 5 - 68
----
-323

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT + ( COUNT ( * ) ) * - 51 * 5 - 68
----
-323

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT + COUNT( 74 )
----
1

skipif mysql # not compatible
query I rowsort label-9341
SELECT + COUNT ( 74 )
----
1

query I rowsort
SELECT + 13 * 97 AS col2
----
1261

query I rowsort
SELECT + 72 * + 94 col2
----
6768

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT - 78 * COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-9344
SELECT - 78 * COUNT ( * ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT DISTINCT + COUNT( * ) - + 78 * + 42
----
-3275

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT + COUNT ( * ) - + 78 * + 42
----
-3275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9346
SELECT ALL + CAST( NULL AS SIGNED ) - + + MIN( ALL - 66 ) * - 78 * 43 AS col0, - 93 + - 46 + + 78 col2
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-9346
SELECT ALL + CAST ( NULL AS INTEGER ) - + + MIN ( ALL - 66 ) * - 78 * 43 AS col0, - 93 + - 46 + + 78 col2
----
NULL
-61

query I rowsort
SELECT DISTINCT CASE - 47 WHEN + 45 * - 71 THEN - - 81 + - 91 END * + + 67 + 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT - COUNT( * ) * - + 21 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9348
SELECT - COUNT ( * ) * - + 21 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL ( - 44 ) - - NULLIF ( 79, 48 ) - 23 - 90 * - + COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL ( - 44 ) - - NULLIF ( 79, 48 ) - 23 - 90 * - + COUNT ( * )
----
102

query I rowsort
SELECT + NULLIF ( - - 87, - 66 ) - + 19 - + - 92 * - 8 AS col0
----
-668

onlyif mysql # DIV for integer division: 
query I rowsort label-9351
SELECT - 8 DIV + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9351
SELECT - 8 / + 91 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9352
SELECT DISTINCT + COUNT( * ) DIV - 7
----
0

skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT + COUNT ( * ) / - 7
----
0

query I rowsort
SELECT - 52 - + 45 AS col2
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9354
SELECT - - ( + 18 ) DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-9354
SELECT - - ( + 18 ) / + 81
----
0

query II rowsort
SELECT DISTINCT - 60 * - 26 AS col0, - 31 * NULLIF ( + - 74, + 85 ) AS col0
----
1560
2294

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL + 2 + COUNT( DISTINCT 85 ) * + 24 * - - 86 + + ( - - 22 )
----
2088

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL + 2 + COUNT ( DISTINCT 85 ) * + 24 * - - 86 + + ( - - 22 )
----
2088

query II rowsort
SELECT ALL - 22 + - 99 AS col1, - 96
----
-121
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT - - 16 - + COALESCE ( - 15, - + 21 + + 50 ) * - - COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9358
SELECT - - 16 - + COALESCE ( - 15, - + 21 + + 50 ) * - - COUNT ( * ) AS col2
----
31

query II rowsort
SELECT ALL - 11 * - - ( ( 46 ) ), + 84 AS col1
----
-506
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9360
SELECT 72 DIV - + 28 + + 80
----
78

skipif mysql # not compatible
query I rowsort label-9360
SELECT 72 / - + 28 + + 80
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9361
SELECT SUM( + - 59 ) * CAST( NULL AS SIGNED ) + - 20 + 42 + 70 / - 76 + + - AVG ( DISTINCT + 29 ) * + + 58 + ( + 29 ) + - - 58 * + - CASE COALESCE ( + + 91, 72 / + 21 ) WHEN ( + COUNT( ALL NULLIF ( - + 77, 30 ) ) ) + - 58 THEN + 65 + + + 30 WHEN + 9 THEN + 62 + + + 96 * + 12 * - - 41 END - COUNT( * ) + - + 56 * - 67 * + ( + 62 ) + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT SUM ( + - 59 ) * CAST ( NULL AS INTEGER ) + - 20 + 42 + 70 / - 76 + + - AVG ( DISTINCT + 29 ) * + + 58 + ( + 29 ) + - - 58 * + - CASE COALESCE ( + + 91, 72 / + 21 ) WHEN ( + COUNT ( ALL NULLIF ( - + 77, 30 ) ) ) + - 58 THEN + 65 + + + 30 WHEN + 9 THEN + 62 + + + 96 * + 12 * - - 41 END - COUNT ( * ) + - + 56 * - 67 * + ( + 62 ) + + 26
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9362
SELECT + ( + 71 ) DIV + 70 + COUNT( + - 85 ) * 45 + - COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-9362
SELECT + ( + 71 ) / + 70 + COUNT ( + - 85 ) * 45 + - COUNT ( * ) AS col2
----
45

query II rowsort
SELECT DISTINCT NULLIF ( 88, - NULLIF ( - 68, - 94 - + + 9 ) ) * 4 * - 79 AS col2, 50 AS col0
----
-27808
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9364
SELECT ALL 30 * + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL 30 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 75 AS col0, - ( - 86 ) AS col2
----
75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL ( - 71 ) * + COUNT( * ) + - NULLIF ( + + 35, - 62 )
----
-106

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL ( - 71 ) * + COUNT ( * ) + - NULLIF ( + + 35, - 62 )
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9367
SELECT ALL - 64 * + 94 + + COUNT( * ) col0, + 60 DIV 36 * + COUNT( * ) * ( 26 ) * + 44 - COUNT( * ) - - 78 * - 2 * + 45 * 4 * + 82 + + 46
----
-6015
-2301371

skipif mysql # not compatible
query II rowsort label-9367
SELECT ALL - 64 * + 94 + + COUNT ( * ) col0, + 60 / 36 * + COUNT ( * ) * ( 26 ) * + 44 - COUNT ( * ) - - 78 * - 2 * + 45 * 4 * + 82 + + 46
----
-6015
-2301371

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT 19 * + COUNT( - 97 ) * + + 46 + - COALESCE ( + - 79, + - COUNT( * ) * + 50 * - CASE + 69 WHEN - 9 THEN NULL ELSE - 28 END ) col2
----
953

skipif mysql # not compatible
query I rowsort label-9368
SELECT 19 * + COUNT ( - 97 ) * + + 46 + - COALESCE ( + - 79, + - COUNT ( * ) * + 50 * - CASE + 69 WHEN - 9 THEN NULL ELSE - 28 END ) col2
----
953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT NULLIF ( + + CAST( NULL AS SIGNED ), 94 * 22 - 19 / 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9369
SELECT NULLIF ( + + CAST ( NULL AS INTEGER ), 94 * 22 - 19 / 16 ) AS col1
----
NULL

query II rowsort
SELECT + 84 + 30 * 64 * 98 * 97, 12 AS col0
----
18251604
12

query I rowsort
SELECT + 90 + 56 AS col0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT + 54 * 81 * + - CASE + - 53 WHEN - + 67 THEN - + 99 WHEN 14 THEN 77 + - 63 + + 42 + - + 71 + COUNT( * ) * + 75 * - COUNT( * ) * + 78 * MIN( + - 15 ) ELSE - 40 END AS col0
----
174960

skipif mysql # not compatible
query I rowsort label-9372
SELECT + 54 * 81 * + - CASE + - 53 WHEN - + 67 THEN - + 99 WHEN 14 THEN 77 + - 63 + + 42 + - + 71 + COUNT ( * ) * + 75 * - COUNT ( * ) * + 78 * MIN ( + - 15 ) ELSE - 40 END AS col0
----
174960

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT DISTINCT + CASE 73 WHEN - COUNT( * ) THEN NULL WHEN + 94 * + 69 THEN - ( - COUNT( * ) ) * + 88 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT + CASE 73 WHEN - COUNT ( * ) THEN NULL WHEN + 94 * + 69 THEN - ( - COUNT ( * ) ) * + 88 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9374
SELECT CASE - 44 WHEN - + 87 + 22 + - + 89 THEN + 56 / - + CAST( - - 8 AS SIGNED ) + + + 24 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT CASE - 44 WHEN - + 87 + 22 + - + 89 THEN + 56 / - + CAST ( - - 8 AS INTEGER ) + + + 24 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT + 36 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT + 36 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9376
SELECT DISTINCT 41 DIV - + COALESCE ( + NULLIF ( + + ( + 54 ), + CAST( NULL AS SIGNED ) ), - 36 )
----
0

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT 41 / - + COALESCE ( + NULLIF ( + + ( + 54 ), + CAST ( NULL AS INTEGER ) ), - 36 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT SUM( 29 )
----
29

skipif mysql # not compatible
query I rowsort label-9377
SELECT SUM ( 29 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9378
SELECT + 82 DIV - 29
----
-2

skipif mysql # not compatible
query I rowsort label-9378
SELECT + 82 / - 29
----
-2

query I rowsort
SELECT ALL 53 * - 12 + + + 62 AS col2
----
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT + 23 + MIN( DISTINCT + 25 ) * + 21 * + 22 + - 72
----
11501

skipif mysql # not compatible
query I rowsort label-9380
SELECT + 23 + MIN ( DISTINCT + 25 ) * + 21 * + 22 + - 72
----
11501

query I rowsort
SELECT + + 3 * 31
----
93

query I rowsort
SELECT - ( + 19 ) * 76
----
-1444

query II rowsort
SELECT + ( - 35 ) + + 88, 14 AS col0
----
53
14

query I rowsort
SELECT - 6 - 49 AS col0
----
-55

query I rowsort
SELECT + ( + 9 ) * + 67 AS col0
----
603

query I rowsort
SELECT ALL - 31 + - - 17
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT + - 20 + - COUNT( * ) + 2
----
-19

skipif mysql # not compatible
query I rowsort label-9387
SELECT + - 20 + - COUNT ( * ) + 2
----
-19

query I rowsort
SELECT ALL + - 30 + - 49 * - 65
----
3155

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT - + COUNT( * ) + + MAX( DISTINCT + - 35 )
----
-36

skipif mysql # not compatible
query I rowsort label-9389
SELECT - + COUNT ( * ) + + MAX ( DISTINCT + - 35 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9390
SELECT + - 76 * CAST( 32 AS SIGNED ) AS col0, + 10 col1
----
-2432
10

skipif mysql # not compatible
query II rowsort label-9390
SELECT + - 76 * CAST ( 32 AS INTEGER ) AS col0, + 10 col1
----
-2432
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9391
SELECT - - 71 + ( NULLIF ( - 15, - ( CAST( - COUNT( * ) AS DECIMAL ) ) ) ) * 95 AS col1
----
-1354

skipif mysql # not compatible
query I rowsort label-9391
SELECT - - 71 + ( NULLIF ( - 15, - ( CAST ( - COUNT ( * ) AS REAL ) ) ) ) * 95 AS col1
----
-1354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT ALL + + CAST( NULL AS SIGNED ) + + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL + + CAST ( NULL AS INTEGER ) + + - 67
----
NULL

query I rowsort
SELECT - 36 + - ( 21 ) AS col0
----
-57

query I rowsort
SELECT ALL - + 26 * - 71
----
1846

query I rowsort
SELECT + CASE - + 94 WHEN 13 * 53 + - + 48 THEN - 36 END
----
NULL

query I rowsort
SELECT DISTINCT - 66 * - 81 col2
----
5346

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9397
SELECT DISTINCT ( - 1 ) DIV + 63 + - 16 - 49 * + 60 + + SUM( ALL - - ( - 96 ) ) AS col1
----
-3052

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT ( - 1 ) / + 63 + - 16 - 49 * + 60 + + SUM ( ALL - - ( - 96 ) ) AS col1
----
-3052

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT ALL - MIN( ALL + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL - MIN ( ALL + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT DISTINCT - SUM( ALL + 54 ) * 3 col1
----
-162

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT - SUM ( ALL + 54 ) * 3 col1
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT 97 * + + COUNT( * ) * ( + 51 ) AS col2
----
4947

skipif mysql # not compatible
query I rowsort label-9400
SELECT 97 * + + COUNT ( * ) * ( + 51 ) AS col2
----
4947

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT 33 * SUM( - 21 )
----
-693

skipif mysql # not compatible
query I rowsort label-9401
SELECT 33 * SUM ( - 21 )
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL + NULLIF ( CASE - 56 WHEN - + 56 + - 66 THEN NULLIF ( 90, - 77 + 33 ) * + - COUNT( * ) * - 95 * - - 80 END, - 20 / - 11 ) - - 30 + + + ( + MAX( - - 51 ) ) * - ( - - ( 53 ) ) * - 95 + + COUNT( * ) * 66 - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL + NULLIF ( CASE - 56 WHEN - + 56 + - 66 THEN NULLIF ( 90, - 77 + 33 ) * + - COUNT ( * ) * - 95 * - - 80 END, - 20 / - 11 ) - - 30 + + + ( + MAX ( - - 51 ) ) * - ( - - ( 53 ) ) * - 95 + + COUNT ( * ) * 66 - 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT 7 * + MIN( ALL 3 )
----
21

skipif mysql # not compatible
query I rowsort label-9403
SELECT 7 * + MIN ( ALL 3 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9404
SELECT 13 + + ( - COALESCE ( - 22, NULLIF ( + 29, + - 98 * - 49 ) DIV + ( + CASE 93 WHEN - 40 THEN - COUNT( * ) END ) + - - 16, - + 66 + - 69 ) ) + COUNT( * ) DIV - SUM( - 75 ) * 32 + + 91 * + 13 * - COUNT( * )
----
-1148

skipif mysql # not compatible
query I rowsort label-9404
SELECT 13 + + ( - COALESCE ( - 22, NULLIF ( + 29, + - 98 * - 49 ) / + ( + CASE 93 WHEN - 40 THEN - COUNT ( * ) END ) + - - 16, - + 66 + - 69 ) ) + COUNT ( * ) / - SUM ( - 75 ) * 32 + + 91 * + 13 * - COUNT ( * )
----
-1148

onlyif mysql # aggregate syntax: 
query II rowsort label-9405
SELECT ALL - CASE - - SUM( DISTINCT - - 68 ) WHEN COUNT( * ) + + 29 + + - 60 THEN MAX( ALL + 24 ) + - 47 END AS col1, + MAX( - 64 ) - - 32 AS col1
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-9405
SELECT ALL - CASE - - SUM ( DISTINCT - - 68 ) WHEN COUNT ( * ) + + 29 + + - 60 THEN MAX ( ALL + 24 ) + - 47 END AS col1, + MAX ( - 64 ) - - 32 AS col1
----
NULL
-32

query II rowsort
SELECT 30 AS col0, - 42
----
30
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL - SUM( DISTINCT 93 ) col1
----
-93

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL - SUM ( DISTINCT 93 ) col1
----
-93

query II rowsort
SELECT ALL - 97, + 61 AS col2
----
-97
61

query I rowsort
SELECT ALL 54 * - 96 AS col1
----
-5184

query I rowsort
SELECT 22 * + 26
----
572

query II rowsort
SELECT 58 + + 78, 51 AS col2
----
136
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9412
SELECT + CASE + - 28 WHEN - + CAST( AVG ( DISTINCT + 94 ) AS SIGNED ) * - + 47 + - ( + + 56 ) THEN - + 32 WHEN + 27 THEN NULL WHEN - + 59 THEN - ( - MIN( - - 43 ) ) * - 32 * + CAST( + NULLIF ( + - 37, + ( - COUNT( * ) ) / - 2 ) AS SIGNED ) END * - - 72 / + - COALESCE ( + + 59, + 75, + 88 ) - + 1 + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT + CASE + - 28 WHEN - + CAST ( AVG ( DISTINCT + 94 ) AS INTEGER ) * - + 47 + - ( + + 56 ) THEN - + 32 WHEN + 27 THEN NULL WHEN - + 59 THEN - ( - MIN ( - - 43 ) ) * - 32 * + CAST ( + NULLIF ( + - 37, + ( - COUNT ( * ) ) / - 2 ) AS INTEGER ) END * - - 72 / + - COALESCE ( + + 59, + 75, + 88 ) - + 1 + 39 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ALL 53 * - COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL 53 * - COUNT ( * ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT 77 * + - COUNT( * ) * COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-9414
SELECT 77 * + - COUNT ( * ) * COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT 46 * 17 * 57
----
44574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9416
SELECT ALL CASE + COUNT( * ) WHEN - + 16 THEN NULL WHEN CAST( 77 AS SIGNED ) + - - 30 + 30 THEN + 35 - 53 END AS col0, - 97
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-9416
SELECT ALL CASE + COUNT ( * ) WHEN - + 16 THEN NULL WHEN CAST ( 77 AS INTEGER ) + - - 30 + 30 THEN + 35 - 53 END AS col0, - 97
----
NULL
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + COUNT( + - 97 )
----
1

skipif mysql # not compatible
query I rowsort label-9417
SELECT + COUNT ( + - 97 )
----
1

query I rowsort
SELECT ALL + 35 + + 4 + - - 23 * + COALESCE ( + 14, + 59 ) * + - 6 * - 57 * - 16 * + + 35
----
-61669401

query I rowsort
SELECT ALL + 55 + + 61 AS col1
----
116

query II rowsort
SELECT - 79 AS col2, - 54 AS col0
----
-79
-54

query II rowsort
SELECT - 29, 25 * - 61 AS col1
----
-29
-1525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9422
SELECT ALL + COUNT( * ) / COUNT( * ) + + - CASE 85 WHEN 48 + + 47 * 81 * 20 THEN NULL WHEN + 43 + + 97 * + 84 - - CAST( + + 24 AS SIGNED ) THEN - COUNT( * ) WHEN - 82 THEN + - 4 END AS col1, + ( 37 ) AS col0
----
NULL
37

skipif mysql # not compatible
query II rowsort label-9422
SELECT ALL + COUNT ( * ) / COUNT ( * ) + + - CASE 85 WHEN 48 + + 47 * 81 * 20 THEN NULL WHEN + 43 + + 97 * + 84 - - CAST ( + + 24 AS INTEGER ) THEN - COUNT ( * ) WHEN - 82 THEN + - 4 END AS col1, + ( 37 ) AS col0
----
NULL
37

query I rowsort
SELECT - 97 * ( + 45 )
----
-4365

query I rowsort
SELECT ALL 67 + + - 95
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT MAX( - - 41 ) - + + 3 + + ( + 96 ) * 8 * - - 48 * COUNT( * )
----
36902

skipif mysql # not compatible
query I rowsort label-9425
SELECT MAX ( - - 41 ) - + + 3 + + ( + 96 ) * 8 * - - 48 * COUNT ( * )
----
36902

query I rowsort
SELECT + 50 - 58 + 81
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL - MAX( DISTINCT + - 47 ) * - + MIN( DISTINCT + 6 ) AS col1
----
-282

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL - MAX ( DISTINCT + - 47 ) * - + MIN ( DISTINCT + 6 ) AS col1
----
-282

query I rowsort
SELECT - ( - 19 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9429
SELECT ALL + 59 + - 48 + - 39 + 40 * + MAX( ALL 1 ) AS col0, - COUNT( * ) + + + 35
----
12
34

skipif mysql # not compatible
query II rowsort label-9429
SELECT ALL + 59 + - 48 + - 39 + 40 * + MAX ( ALL 1 ) AS col0, - COUNT ( * ) + + + 35
----
12
34

query II rowsort
SELECT - 3, - 98 + + 10 AS col1
----
-3
-88

query I rowsort
SELECT ALL + 78 - 71 AS col2
----
7

query II rowsort
SELECT ALL 48, + 41 AS col0
----
48
41

query I rowsort
SELECT - 0 - + 39
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-9434
SELECT 56 DIV - + 3 + + - 92 * NULLIF ( - 84, + + 22 )
----
7710

skipif mysql # not compatible
query I rowsort label-9434
SELECT 56 / - + 3 + + - 92 * NULLIF ( - 84, + + 22 )
----
7710

query I rowsort
SELECT ALL - ( + CASE + 32 WHEN 77 * - 26 + + 59 THEN - NULLIF ( 12, + + 13 ) END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9436
SELECT ALL COUNT( * ) DIV + - 64 * + 63 AS col2, + 93 - + - COUNT( * ) col0
----
0
94

skipif mysql # not compatible
query II rowsort label-9436
SELECT ALL COUNT ( * ) / + - 64 * + 63 AS col2, + 93 - + - COUNT ( * ) col0
----
0
94

query II rowsort
SELECT 32 * 5 AS col0, ( - 97 ) + - 98
----
160
-195

query I rowsort
SELECT ALL - COALESCE ( 55, - 99 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9439
SELECT ( + - 28 ) DIV 9 DIV - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9439
SELECT ( + - 28 ) / 9 / - 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT 32 * + COUNT( 86 )
----
32

skipif mysql # not compatible
query I rowsort label-9440
SELECT 32 * + COUNT ( 86 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9441
SELECT 67 * - 53 * + AVG ( ALL - 18 ) * + CAST( NULL AS SIGNED ), 5 * + 26 * + 80 col1
----
NULL
10400

skipif mysql # not compatible
query II rowsort label-9441
SELECT 67 * - 53 * + AVG ( ALL - 18 ) * + CAST ( NULL AS INTEGER ), 5 * + 26 * + 80 col1
----
NULL
10400

query II rowsort
SELECT 38 + + - 61 + + 21 AS col0, 14 AS col2
----
-2
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9443
SELECT COUNT( 66 ) * - SUM( DISTINCT - 97 ) / 46 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT COUNT ( 66 ) * - SUM ( DISTINCT - 97 ) / 46 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9444
SELECT COUNT( * ) * + - CAST( + 40 AS SIGNED ) + + 76 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-9444
SELECT COUNT ( * ) * + - CAST ( + 40 AS INTEGER ) + + 76 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT ALL - - ( - COUNT( 80 ) ) + - - 8 * 62
----
495

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL - - ( - COUNT ( 80 ) ) + - - 8 * 62
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT ALL + - 72 + COUNT( * ) * 75 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL + - 72 + COUNT ( * ) * 75 AS col0
----
3

query I rowsort
SELECT DISTINCT - NULLIF ( - 29, 45 ) + - - 5
----
34

query II rowsort
SELECT ALL 71 + + - 96 col1, + 9
----
-25
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9449
SELECT 37 - 68 AS col2, + CAST( NULL AS SIGNED )
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-9449
SELECT 37 - 68 AS col2, + CAST ( NULL AS INTEGER )
----
-31
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT DISTINCT - 82 + CAST( NULL AS SIGNED ) + - - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT - 82 + CAST ( NULL AS INTEGER ) + - - 15
----
NULL

query I rowsort
SELECT ALL + 23 + + - 69
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-9452
SELECT + MAX( + 89 ), 86 * - - 9 AS col2
----
89
774

skipif mysql # not compatible
query II rowsort label-9452
SELECT + MAX ( + 89 ), 86 * - - 9 AS col2
----
89
774

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT DISTINCT NULLIF ( - ( + COUNT( * ) ), AVG ( ALL + 31 ) * + 81 * - COUNT( * ) - + NULLIF ( - + 59, - ( + 85 ) ) + - 44 + - ( - 69 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT NULLIF ( - ( + COUNT ( * ) ), AVG ( ALL + 31 ) * + 81 * - COUNT ( * ) - + NULLIF ( - + 59, - ( + 85 ) ) + - 44 + - ( - 69 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT DISTINCT + COUNT( ALL + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9454
SELECT DISTINCT + COUNT ( ALL + 1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9455
SELECT ALL CAST( NULL AS SIGNED ) - + - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL CAST ( NULL AS INTEGER ) - + - 39 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT + MAX( DISTINCT - - 36 ) + + 26
----
62

skipif mysql # not compatible
query I rowsort label-9456
SELECT + MAX ( DISTINCT - - 36 ) + + 26
----
62

query II rowsort
SELECT - + 16 * + - 44 AS col1, + 48
----
704
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT + COUNT( + - 79 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9458
SELECT + COUNT ( + - 79 ) AS col2
----
1

query I rowsort
SELECT + 98 + + COALESCE ( + - 77, COALESCE ( - - 68, 48 * - 51 ) ) * + 16 col2
----
-1134

query I rowsort
SELECT - NULLIF ( + 89, + 11 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT + COUNT( ALL - 95 ) + 83 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9461
SELECT + COUNT ( ALL - 95 ) + 83 AS col2
----
84

query II rowsort
SELECT 55 AS col0, 38 + 35 AS col2
----
55
73

query I rowsort
SELECT + 25 * + 16
----
400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9464
SELECT CASE COALESCE ( + COALESCE ( COUNT( * ), + 37 ), - 42, - 0 - - - 51 ) WHEN 37 * COALESCE ( - 98, - - 88 ) * + + COUNT( NULLIF ( 26, + 59 * 47 * - 61 * + 37 ) ) - 74 * COUNT( * ) * - 25 * + CAST( NULL AS SIGNED ) THEN + + 93 / + 16 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9464
SELECT CASE COALESCE ( + COALESCE ( COUNT ( * ), + 37 ), - 42, - 0 - - - 51 ) WHEN 37 * COALESCE ( - 98, - - 88 ) * + + COUNT ( NULLIF ( 26, + 59 * 47 * - 61 * + 37 ) ) - 74 * COUNT ( * ) * - 25 * + CAST ( NULL AS INTEGER ) THEN + + 93 / + 16 ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9465
SELECT ALL COUNT( * ) * - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL COUNT ( * ) * - + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT DISTINCT + 80 AS col2, ( - - COALESCE ( - 50, - + 78 + 22 * - - 84 ) ) AS col2
----
80
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9467
SELECT 98 DIV 58 - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9467
SELECT 98 / 58 - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT + 13 + 81 * - ( COUNT( * ) ) + + 4 - + - 62 - + - 89 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-9468
SELECT + 13 + 81 * - ( COUNT ( * ) ) + + 4 - + - 62 - + - 89 AS col1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9469
SELECT DISTINCT - 45 * + 42 + 19 * - 38 + + 88 DIV - 25
----
-2615

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT - 45 * + 42 + 19 * - 38 + + 88 / - 25
----
-2615

query III rowsort
SELECT ALL + 96 AS col1, 63 + - 5 * - 83, - - 85 col2
----
96
478
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT - COUNT( DISTINCT - + 11 ) * - - ( 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9471
SELECT - COUNT ( DISTINCT - + 11 ) * - - ( 90 ) AS col1
----
-90

query I rowsort
SELECT + 59 - + - 24 * 43 * - + 79 AS col1
----
-81469

query II rowsort
SELECT + 15 AS col2, 30
----
15
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL ( + + COUNT( * ) ) * - COUNT( * ) + - 40 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL ( + + COUNT ( * ) ) * - COUNT ( * ) + - 40 AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9475
SELECT DISTINCT + 68 * 4 * - 26 + + - ( - 67 ) + - + ( 45 ) - 18 + - CASE + - COALESCE ( NULLIF ( - ( - + 61 ), + 54 * + - 33 ), - 17 + - NULLIF ( - 64, - 79 ) ) WHEN - 31 * - 57 THEN + CAST( NULL AS SIGNED ) / + 60 / + - 5 * - NULLIF ( - 96, + 98 ) END * + - COUNT( * ) + - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT + 68 * 4 * - 26 + + - ( - 67 ) + - + ( 45 ) - 18 + - CASE + - COALESCE ( NULLIF ( - ( - + 61 ), + 54 * + - 33 ), - 17 + - NULLIF ( - 64, - 79 ) ) WHEN - 31 * - 57 THEN + CAST ( NULL AS INTEGER ) / + 60 / + - 5 * - NULLIF ( - 96, + 98 ) END * + - COUNT ( * ) + - 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9476
SELECT + COUNT( 75 ) DIV - 18
----
0

skipif mysql # not compatible
query I rowsort label-9476
SELECT + COUNT ( 75 ) / - 18
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9477
SELECT DISTINCT 47 * 49 DIV + + ( - + NULLIF ( + 15, + ( - CAST( NULL AS SIGNED ) ) ) ) + + 36 * 14
----
351

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT 47 * 49 / + + ( - + NULLIF ( + 15, + ( - CAST ( NULL AS INTEGER ) ) ) ) + + 36 * 14
----
351

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9478
SELECT DISTINCT CAST( + + 91 AS SIGNED ) DIV 3
----
30

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT CAST ( + + 91 AS INTEGER ) / 3
----
30

query I rowsort
SELECT ALL 53 * + 32 + - - 14 AS col0
----
1710

onlyif mysql # aggregate syntax: 
query II rowsort label-9480
SELECT ALL 7 * - MIN( DISTINCT 95 ) * + - ( + + 53 ) + 44, + 34 AS col0
----
35289
34

skipif mysql # not compatible
query II rowsort label-9480
SELECT ALL 7 * - MIN ( DISTINCT 95 ) * + - ( + + 53 ) + 44, + 34 AS col0
----
35289
34

query I rowsort
SELECT + - 89 * - 55 AS col0
----
4895

onlyif mysql # DIV for integer division: 
query I rowsort label-9482
SELECT - 5 DIV - - 42
----
0

skipif mysql # not compatible
query I rowsort label-9482
SELECT - 5 / - - 42
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT ALL CAST( NULL AS SIGNED ) * + + 83 / - 55 * + + 31 - + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL CAST ( NULL AS INTEGER ) * + + 83 / - 55 * + + 31 - + 0
----
NULL

query II rowsort
SELECT - 15 AS col1, + 92
----
-15
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9485
SELECT 33 AS col2, COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-9485
SELECT 33 AS col2, COUNT ( * )
----
33
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT ALL + MAX( DISTINCT + NULLIF ( + 77, + 74 * - ( + 27 ) + + ( - - 30 ) * + - 87 ) )
----
77

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL + MAX ( DISTINCT + NULLIF ( + 77, + 74 * - ( + 27 ) + + ( - - 30 ) * + - 87 ) )
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9487
SELECT - ( - + 79 ) * MAX( + 40 ) AS col1, COUNT( * ) AS col2
----
3160
1

skipif mysql # not compatible
query II rowsort label-9487
SELECT - ( - + 79 ) * MAX ( + 40 ) AS col1, COUNT ( * ) AS col2
----
3160
1

query I rowsort
SELECT + 91 * - 47 * + + 20 AS col0
----
-85540

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT + COUNT( * ) * ( - 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9489
SELECT + COUNT ( * ) * ( - 35 ) AS col0
----
-35

query I rowsort
SELECT - 49 + + 62 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL + MAX( ALL - - 98 ) * + 64
----
6272

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL + MAX ( ALL - - 98 ) * + 64
----
6272

query I rowsort
SELECT - 67 * 13 AS col1
----
-871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9493
SELECT DISTINCT + ( + + 54 ) * + 81 * + 89 + CASE - 78 WHEN + - 59 / 60 * - 23 THEN CASE - 89 WHEN - 42 / 20 + + 26 + COUNT( * ) + + 18 THEN 43 - 40 / - + 51 + - COUNT( * ) WHEN + + 10 * - CAST( NULL AS SIGNED ) + 44 - MIN( DISTINCT - 12 ) THEN NULL END * - 63 WHEN - - 62 / - 42 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT + ( + + 54 ) * + 81 * + 89 + CASE - 78 WHEN + - 59 / 60 * - 23 THEN CASE - 89 WHEN - 42 / 20 + + 26 + COUNT ( * ) + + 18 THEN 43 - 40 / - + 51 + - COUNT ( * ) WHEN + + 10 * - CAST ( NULL AS INTEGER ) + 44 - MIN ( DISTINCT - 12 ) THEN NULL END * - 63 WHEN - - 62 / - 42 THEN NULL END
----
NULL

query II rowsort
SELECT ALL ( + 16 ) AS col1, 73 AS col2
----
16
73

query I rowsort
SELECT - 66 + - 73 AS col0
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT + 72 + COUNT( * ) * - 78 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9496
SELECT + 72 + COUNT ( * ) * - 78 AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9497
SELECT CAST( 34 AS SIGNED ), - 7 AS col0
----
34
-7

skipif mysql # not compatible
query II rowsort label-9497
SELECT CAST ( 34 AS INTEGER ), - 7 AS col0
----
34
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9498
SELECT - 6 / - - 55 * + 74 * 64 * - 13 + - + 55 / + ( COUNT( * ) ) * - 34 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT - 6 / - - 55 * + 74 * 64 * - 13 + - + 55 / + ( COUNT ( * ) ) * - 34 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9499
SELECT + MAX( + 21 ) * ( 4 ) AS col0, + 59 * 60 AS col2
----
84
3540

skipif mysql # not compatible
query II rowsort label-9499
SELECT + MAX ( + 21 ) * ( 4 ) AS col0, + 59 * 60 AS col2
----
84
3540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9500
SELECT ALL - 41 DIV COALESCE ( + COUNT( DISTINCT - COALESCE ( + + 75, 3 ) ), + 1 ) DIV SUM( + ( - 1 ) ) + + - 68
----
-27

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL - 41 / COALESCE ( + COUNT ( DISTINCT - COALESCE ( + + 75, 3 ) ), + 1 ) / SUM ( + ( - 1 ) ) + + - 68
----
-27

query I rowsort
SELECT + 18 * - + 82 + - 44 - - 84 + + - 13 AS col2
----
-1449

query I rowsort
SELECT ALL 24 * + 89
----
2136

query I rowsort
SELECT ALL 35 * + - 26 * + - 28
----
25480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9504
SELECT DISTINCT 70 * + 38 * - + COALESCE ( CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ), COUNT( * ) * + COUNT( * ) ) * - 36 col1
----
95760

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT 70 * + 38 * - + COALESCE ( CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ), COUNT ( * ) * + COUNT ( * ) ) * - 36 col1
----
95760

query I rowsort
SELECT + - NULLIF ( + - 19, - 14 ) * + 3 AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9506
SELECT + 0 DIV + - 63 + + 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9506
SELECT + 0 / + - 63 + + 49 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT + + COUNT( * ) + + SUM( DISTINCT + 75 )
----
76

skipif mysql # not compatible
query I rowsort label-9507
SELECT + + COUNT ( * ) + + SUM ( DISTINCT + 75 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT + SUM( ALL - + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-9508
SELECT + SUM ( ALL - + 64 )
----
-64

query I rowsort
SELECT + 89 + - - 55
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT - MAX( 74 ) * - CASE + 62 WHEN CASE + + 92 WHEN - 48 - 97 THEN + + 24 + - 60 + + - 81 WHEN + ( + 72 ) + - - COUNT( DISTINCT - 14 ) + + - ( - 26 ) THEN - 57 ELSE + 46 * + + 18 END THEN 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT - MAX ( 74 ) * - CASE + 62 WHEN CASE + + 92 WHEN - 48 - 97 THEN + + 24 + - 60 + + - 81 WHEN + ( + 72 ) + - - COUNT ( DISTINCT - 14 ) + + - ( - 26 ) THEN - 57 ELSE + 46 * + + 18 END THEN 74 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9511
SELECT 52 * - ( + 51 ) + + 15, COUNT( * ) + + CAST( - ( - 78 ) AS SIGNED ) col1
----
-2637
79

skipif mysql # not compatible
query II rowsort label-9511
SELECT 52 * - ( + 51 ) + + 15, COUNT ( * ) + + CAST ( - ( - 78 ) AS INTEGER ) col1
----
-2637
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL + MIN( + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL + MIN ( + 81 )
----
81

query II rowsort
SELECT 69 + + 62 AS col0, 89 + + 15 + - + 71 * 47
----
131
-3233

query I rowsort
SELECT DISTINCT 18 * 78 * 48 AS col0
----
67392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9515
SELECT COUNT( * ) * 27 + 48 * + + COUNT( DISTINCT 48 ) * - 64 + CAST( - MAX( + - CAST( NULL AS SIGNED ) ) AS DECIMAL ) * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT COUNT ( * ) * 27 + 48 * + + COUNT ( DISTINCT 48 ) * - 64 + CAST ( - MAX ( + - CAST ( NULL AS INTEGER ) ) AS REAL ) * - 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9516
SELECT 49 + - CAST( 77 AS SIGNED ) + + + 35 AS col1, + 45 + + COUNT( * ) * - - 1 * - + 55 AS col0
----
7
-10

skipif mysql # not compatible
query II rowsort label-9516
SELECT 49 + - CAST ( 77 AS INTEGER ) + + + 35 AS col1, + 45 + + COUNT ( * ) * - - 1 * - + 55 AS col0
----
7
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9517
SELECT - CAST( NULL AS SIGNED ) + - + ( + 24 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT - CAST ( NULL AS INTEGER ) + - + ( + 24 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9518
SELECT - 95 * + - ( 28 ) - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9518
SELECT - 95 * + - ( 28 ) - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9519
SELECT - 93 DIV - + 84 AS col1, COUNT( DISTINCT - 99 ) col2
----
1
1

skipif mysql # not compatible
query II rowsort label-9519
SELECT - 93 / - + 84 AS col1, COUNT ( DISTINCT - 99 ) col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT - 33 + - CASE - COUNT( * ) WHEN + COUNT( * ) THEN - + 15 * 19 WHEN + + 99 * - 7 THEN - + 43 WHEN + ( - 17 ) THEN ( + - 41 ) * + + 91 ELSE 61 END + + 46 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-9520
SELECT - 33 + - CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN - + 15 * 19 WHEN + + 99 * - 7 THEN - + 43 WHEN + ( - 17 ) THEN ( + - 41 ) * + + 91 ELSE 61 END + + 46 AS col2
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9521
SELECT 35 DIV - 70 col2
----
0

skipif mysql # not compatible
query I rowsort label-9521
SELECT 35 / - 70 col2
----
0

query I rowsort
SELECT ALL - 34 + - 29
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9523
SELECT DISTINCT + COUNT( * ) * + + 24 * + 98, - CAST( - - 57 AS SIGNED ) AS col0
----
2352
-57

skipif mysql # not compatible
query II rowsort label-9523
SELECT DISTINCT + COUNT ( * ) * + + 24 * + 98, - CAST ( - - 57 AS INTEGER ) AS col0
----
2352
-57

query I rowsort
SELECT DISTINCT - 89 + + NULLIF ( 6, - 11 )
----
-83

query I rowsort
SELECT 41 * + - 30 * - 59
----
72570

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT ALL + 71 + + - COUNT( * ) + + 67 * + 32 + - 41 + 71
----
2244

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL + 71 + + - COUNT ( * ) + + 67 * + 32 + - 41 + 71
----
2244

onlyif mysql # DIV for integer division: 
query I rowsort label-9527
SELECT 60 DIV + NULLIF ( + 82, 35 )
----
0

skipif mysql # not compatible
query I rowsort label-9527
SELECT 60 / + NULLIF ( + 82, 35 )
----
0

query I rowsort
SELECT ALL - 26 * + + 37 AS col2
----
-962

query I rowsort
SELECT ALL + 71 + + 51 * - - 74
----
3845

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9530
SELECT COUNT( DISTINCT + - 58 ) DIV - 63 + + ( + - 30 ) + 97, 39 AS col1
----
67
39

skipif mysql # not compatible
query II rowsort label-9530
SELECT COUNT ( DISTINCT + - 58 ) / - 63 + + ( + - 30 ) + 97, 39 AS col1
----
67
39

query II rowsort
SELECT 86 * - ( 12 ) AS col1, 94 + 70
----
-1032
164

query I rowsort
SELECT 92 + 45
----
137

query I rowsort
SELECT 11 * - 28
----
-308

query I rowsort
SELECT + 38 * 97 - 63 * + 92
----
-2110

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT DISTINCT - 82 DIV ( + 21 * 4 )
----
0

skipif mysql # not compatible
query I rowsort label-9535
SELECT DISTINCT - 82 / ( + 21 * 4 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT DISTINCT - SUM( ALL 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT - SUM ( ALL 67 )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT DISTINCT AVG ( DISTINCT + 33 ) * AVG ( ALL CAST( NULL AS SIGNED ) / 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT AVG ( DISTINCT + 33 ) * AVG ( ALL CAST ( NULL AS INTEGER ) / 78 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9538
SELECT 11 * - ( - MIN( + CAST( 13 AS SIGNED ) ) * + 55 ) col2
----
7865

skipif mysql # not compatible
query I rowsort label-9538
SELECT 11 * - ( - MIN ( + CAST ( 13 AS INTEGER ) ) * + 55 ) col2
----
7865

query I rowsort
SELECT ALL 16 * - 7
----
-112

query I rowsort
SELECT 1 * - 33 col1
----
-33

query I rowsort
SELECT 36 * - 76 col2
----
-2736

query I rowsort
SELECT DISTINCT 3 + + 22 AS col1
----
25

query I rowsort
SELECT 26 * 34 AS col2
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT - MAX( 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-9544
SELECT - MAX ( 93 ) AS col0
----
-93

query I rowsort
SELECT ALL NULLIF ( + 94, ( 46 ) ) + + 4
----
98

query I rowsort
SELECT DISTINCT 67 + 66
----
133

query I rowsort
SELECT 51 * + 79 AS col2
----
4029

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9548
SELECT ( - 24 ) + COUNT( * ) DIV + 38
----
-24

skipif mysql # not compatible
query I rowsort label-9548
SELECT ( - 24 ) + COUNT ( * ) / + 38
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT CAST( NULL AS SIGNED ) - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT CAST ( NULL AS INTEGER ) - 84 AS col2
----
NULL

query I rowsort
SELECT ALL - 2 + - 36 * 55 AS col2
----
-1982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9551
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) * - COALESCE ( - 42, - 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9551
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - COALESCE ( - 42, - 72 )
----
NULL

query I rowsort
SELECT 77 * - 2
----
-154

query I rowsort
SELECT 51 + - 3
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT 60 + + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-9554
SELECT 60 + + COUNT ( * )
----
61

query I rowsort
SELECT 67 * 25 AS col2
----
1675

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT DISTINCT + 58 * COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT + 58 * COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ( 29 ) + + COUNT( ALL 9 )
----
30

skipif mysql # not compatible
query I rowsort label-9557
SELECT ( 29 ) + + COUNT ( ALL 9 )
----
30

query I rowsort
SELECT 86 - 96 AS col0
----
-10

query I rowsort
SELECT 95 + 10 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT 66 * + NULLIF ( 29 * + 77, + MAX( 87 ) ) col2
----
147378

skipif mysql # not compatible
query I rowsort label-9560
SELECT 66 * + NULLIF ( 29 * + 77, + MAX ( 87 ) ) col2
----
147378

query I rowsort
SELECT 2 * - 50
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9562
SELECT ALL - SUM( + 60 ) * COALESCE ( - 16, CASE - 82 WHEN 96 THEN NULL WHEN + 40 + + 51 THEN CASE WHEN NOT ( 66 ) IS NOT NULL THEN 50 + - 67 * 45 WHEN NOT + 15 < ( COUNT( * ) * + COUNT( * ) - 96 * 49 ) THEN - 59 DIV + 31 + 3 DIV - 91 END ELSE + 97 END + + ( - 29 ) DIV 84, CASE 28 WHEN 88 * 27 THEN SUM( DISTINCT 18 ) END ) AS col0
----
960

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL - SUM ( + 60 ) * COALESCE ( - 16, CASE - 82 WHEN 96 THEN NULL WHEN + 40 + + 51 THEN CASE WHEN NOT ( 66 ) IS NOT NULL THEN 50 + - 67 * 45 WHEN NOT + 15 < ( COUNT ( * ) * + COUNT ( * ) - 96 * 49 ) THEN - 59 / + 31 + 3 / - 91 END ELSE + 97 END + + ( - 29 ) / 84, CASE 28 WHEN 88 * 27 THEN SUM ( DISTINCT 18 ) END ) AS col0
----
960

query I rowsort
SELECT ALL - ( 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9564
SELECT + + 15 DIV + 12 + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9564
SELECT + + 15 / + 12 + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT DISTINCT 37 * 17
----
629

query I rowsort
SELECT ( + 87 ) + - 61 col1
----
26

query I rowsort
SELECT - 85 * 63 AS col2
----
-5355

onlyif mysql # DIV for integer division: 
query I rowsort label-9568
SELECT - 12 DIV - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9568
SELECT - 12 / - 77 AS col0
----
0

query I rowsort
SELECT - + 44 * 80 AS col2
----
-3520

query I rowsort
SELECT - ( + ( 75 ) ) + - 97 AS col0
----
-172

onlyif mysql # DIV for integer division: 
query I rowsort label-9571
SELECT + + 94 DIV 87
----
1

skipif mysql # not compatible
query I rowsort label-9571
SELECT + + 94 / 87
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT ALL + MAX( DISTINCT + 3 ) * + 98 + - ( - ( - 66 ) ) AS col1
----
228

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL + MAX ( DISTINCT + 3 ) * + 98 + - ( - ( - 66 ) ) AS col1
----
228

query I rowsort
SELECT - + 83 + 18 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT ALL + COUNT( * ) * + 39
----
39

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL + COUNT ( * ) * + 39
----
39

query I rowsort
SELECT - 15 + 69
----
54

query I rowsort
SELECT ALL - - 4 * + 0 + 70
----
70

query I rowsort
SELECT DISTINCT - 6 + + 26 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT + 37 + COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-9578
SELECT + 37 + COUNT ( * ) AS col1
----
38

query I rowsort
SELECT DISTINCT - - 28 * + 78
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT + MAX( ALL - 43 ) + - 27 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9580
SELECT + MAX ( ALL - 43 ) + - 27 AS col0
----
-70

query I rowsort
SELECT ALL 61 * 7
----
427

onlyif mysql # DIV for integer division: 
query I rowsort label-9582
SELECT - 84 + + CASE WHEN ( 43 ) > - 42 THEN 82 + 75 ELSE NULL END + + 33 DIV + 3 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-9582
SELECT - 84 + + CASE WHEN ( 43 ) > - 42 THEN 82 + 75 ELSE NULL END + + 33 / + 3 AS col1
----
84

query I rowsort
SELECT + ( - 88 ) + COALESCE ( 36, 88 )
----
-52

query I rowsort
SELECT ALL 55 + 63 * 86
----
5473

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT + ( - - CASE ( - 62 ) WHEN 90 THEN - 55 * ( - 45 * 86 ) - 70 * + CASE - 23 WHEN + 77 / 68 THEN + COUNT( * ) WHEN 5 + 85 THEN MIN( 38 ) ELSE 43 / 37 END ELSE NULL END ) + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT + ( - - CASE ( - 62 ) WHEN 90 THEN - 55 * ( - 45 * 86 ) - 70 * + CASE - 23 WHEN + 77 / 68 THEN + COUNT ( * ) WHEN 5 + 85 THEN MIN ( 38 ) ELSE 43 / 37 END ELSE NULL END ) + 28
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9586
SELECT ALL ( + + CAST( + 53 AS SIGNED ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL ( + + CAST ( + 53 AS INTEGER ) ) AS col1
----
53

query I rowsort
SELECT ALL 48 * - + 6 AS col2
----
-288

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9588
SELECT - COALESCE ( - CAST( 93 AS SIGNED ), - 56 DIV + 68 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9588
SELECT - COALESCE ( - CAST ( 93 AS INTEGER ), - 56 / + 68 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT - COALESCE ( - 30, - MIN( DISTINCT + 80 ) + + COUNT( * ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9589
SELECT - COALESCE ( - 30, - MIN ( DISTINCT + 80 ) + + COUNT ( * ) ) AS col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9590
SELECT ALL + 71 * 94 DIV + 89
----
74

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL + 71 * 94 / + 89
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT + COUNT( * ) + - MIN( 88 ) + 57
----
-30

skipif mysql # not compatible
query I rowsort label-9591
SELECT + COUNT ( * ) + - MIN ( 88 ) + 57
----
-30

query I rowsort
SELECT ALL 12 * + - 36 AS col2
----
-432

query I rowsort
SELECT + 18 * + + 66 AS col2
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT + 83 + + 82 - + ( 18 ) * - 44 * + CASE 82 WHEN - 95 THEN NULL ELSE - SUM( ALL - 80 ) * - 17 + + COUNT( * ) END
----
-1076163

skipif mysql # not compatible
query I rowsort label-9594
SELECT + 83 + + 82 - + ( 18 ) * - 44 * + CASE 82 WHEN - 95 THEN NULL ELSE - SUM ( ALL - 80 ) * - 17 + + COUNT ( * ) END
----
-1076163

query I rowsort
SELECT - COALESCE ( 27, 99, + 56, 49 ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT - ( - - 14 ) + + COUNT( - 81 )
----
-13

skipif mysql # not compatible
query I rowsort label-9596
SELECT - ( - - 14 ) + + COUNT ( - 81 )
----
-13

query I rowsort
SELECT - 76 * + - 67
----
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT COUNT( * ) - + 80 - 29
----
-108

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT COUNT ( * ) - + 80 - 29
----
-108

query I rowsort
SELECT DISTINCT 11 * + 11
----
121

query I rowsort
SELECT DISTINCT 70 * 73
----
5110

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT + NULLIF ( + + 60, + NULLIF ( - COUNT( - 79 ), - 27 - 75 ) * 34 )
----
60

skipif mysql # not compatible
query I rowsort label-9601
SELECT + NULLIF ( + + 60, + NULLIF ( - COUNT ( - 79 ), - 27 - 75 ) * 34 )
----
60

query I rowsort
SELECT ALL + - 10 * 26 - 49
----
-309

query I rowsort
SELECT ( ( 38 ) )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9604
SELECT + + 4 * - 47 * 62 + + 8 DIV 49
----
-11656

skipif mysql # not compatible
query I rowsort label-9604
SELECT + + 4 * - 47 * 62 + + 8 / 49
----
-11656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9605
SELECT + 89 * + CAST( NULL AS SIGNED ) + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT + 89 * + CAST ( NULL AS INTEGER ) + 88 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9606
SELECT ALL + + 45 / 31 + + CAST( NULL AS SIGNED ) + 86 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL + + 45 / 31 + + CAST ( NULL AS INTEGER ) + 86 col1
----
NULL

query I rowsort
SELECT ALL - 88 * - 83 + 20 + 73
----
7397

query I rowsort
SELECT - + 54 - - 74 + + 48
----
68

query I rowsort
SELECT ALL + + NULLIF ( + - 68, - 87 ) AS col0
----
-68

query I rowsort
SELECT ALL + - 25 * - 71 + - 20 + + 89 AS col1
----
1844

query I rowsort
SELECT DISTINCT + + ( + 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL COUNT( * ) * - 3 + + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL COUNT ( * ) * - 3 + + COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT DISTINCT - + 95 * + + 45 + 76 AS col2
----
-4199

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT SUM( DISTINCT - - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-9614
SELECT SUM ( DISTINCT - - 53 )
----
53

query I rowsort
SELECT DISTINCT + - 14 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT - 85 * - SUM( ALL - 92 )
----
-7820

skipif mysql # not compatible
query I rowsort label-9616
SELECT - 85 * - SUM ( ALL - 92 )
----
-7820

query I rowsort
SELECT NULLIF ( + + 21, - + 73 * - 25 + - 58 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT + COALESCE ( - - COUNT( * ), - 11 * - 99 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9618
SELECT + COALESCE ( - - COUNT ( * ), - 11 * - 99 ) col1
----
1

query I rowsort
SELECT DISTINCT 71 * - 57 * - 66 - ( 39 )
----
267063

onlyif mysql # aggregate syntax: 
query II rowsort label-9620
SELECT DISTINCT + COUNT( * ) AS col0, 15
----
1
15

skipif mysql # not compatible
query II rowsort label-9620
SELECT DISTINCT + COUNT ( * ) AS col0, 15
----
1
15

query I rowsort
SELECT DISTINCT ( 71 )
----
71

query I rowsort
SELECT ALL 7 * + 1 AS col2
----
7

query I rowsort
SELECT DISTINCT 66 * + - 86 col1
----
-5676

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9624
SELECT DISTINCT CAST( NULL AS SIGNED ), 16 * - NULLIF ( 9, - CAST( NULL AS SIGNED ) ) AS col1
----
NULL
-144

skipif mysql # not compatible
query II rowsort label-9624
SELECT DISTINCT CAST ( NULL AS INTEGER ), 16 * - NULLIF ( 9, - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL
-144

query I rowsort
SELECT ALL - 67 * + - 98 col0
----
6566

query I rowsort
SELECT ALL + 12 * - + 49
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT - 77 + - COUNT( * ) + + - 40 * 16
----
-718

skipif mysql # not compatible
query I rowsort label-9627
SELECT - 77 + - COUNT ( * ) + + - 40 * 16
----
-718

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT MIN( DISTINCT + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-9628
SELECT MIN ( DISTINCT + 63 ) AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9629
SELECT - SUM( + 62 ) * + CASE COUNT( * ) WHEN 14 THEN 72 WHEN 63 THEN + 24 WHEN - 80 THEN 40 * - 49 + + 57 END * + CAST( 70 + 70 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT - SUM ( + 62 ) * + CASE COUNT ( * ) WHEN 14 THEN 72 WHEN 63 THEN + 24 WHEN - 80 THEN 40 * - 49 + + 57 END * + CAST ( 70 + 70 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 53 + - - 82
----
29

query I rowsort
SELECT - 71 + 27
----
-44

query I rowsort
SELECT ALL COALESCE ( - - ( - - ( + 75 ) ), 4 ) AS col0
----
75

query I rowsort
SELECT ALL - COALESCE ( - ( 39 ), + 64 )
----
39

query I rowsort
SELECT - ( + - 31 ) AS col1
----
31

query I rowsort
SELECT + 94 + NULLIF ( - 4, COALESCE ( - 42, AVG ( - 28 ) ) - + 37 )
----
90

query II rowsort
SELECT + 18 AS col1, + 83 AS col2
----
18
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9637
SELECT - 3 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-9637
SELECT - 3 / 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT DISTINCT MAX( + + 17 ) + - 54 + - 21
----
-58

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT MAX ( + + 17 ) + - 54 + - 21
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9639
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) + + - CASE + 81 WHEN - 62 THEN + 74 ELSE NULL END - 8 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) + + - CASE + 81 WHEN - 62 THEN + 74 ELSE NULL END - 8 * + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT + - 69 AS col0, 23 AS col2
----
-69
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9641
SELECT ALL + 61 + ( - + CASE + NULLIF ( - COUNT( * ), - 23 ) WHEN SUM( 43 ) * + COUNT( * ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 51 WHEN 4 * 45 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - 99 * ( 99 ) END ) + - 21 * + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL + 61 + ( - + CASE + NULLIF ( - COUNT ( * ), - 23 ) WHEN SUM ( 43 ) * + COUNT ( * ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 51 WHEN 4 * 45 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - 99 * ( 99 ) END ) + - 21 * + 31 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9642
SELECT ALL + 81 + 76 * 17 DIV + 26 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL + 81 + 76 * 17 / + 26 AS col2
----
130

query I rowsort
SELECT ALL - CASE + + 62 WHEN - 70 / 20 THEN NULL WHEN 64 + - 95 THEN - 89 ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9644
SELECT + + 54, 33 * - SUM( DISTINCT CAST( 41 AS SIGNED ) ) * - 59 AS col0
----
54
79827

skipif mysql # not compatible
query II rowsort label-9644
SELECT + + 54, 33 * - SUM ( DISTINCT CAST ( 41 AS INTEGER ) ) * - 59 AS col0
----
54
79827

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT 41 + + NULLIF ( 27, COUNT( * ) )
----
68

skipif mysql # not compatible
query I rowsort label-9645
SELECT 41 + + NULLIF ( 27, COUNT ( * ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT COUNT( * ) + - 47 + - 0 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-9646
SELECT COUNT ( * ) + - 47 + - 0 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT SUM( DISTINCT + 25 ) col0
----
25

skipif mysql # not compatible
query I rowsort label-9647
SELECT SUM ( DISTINCT + 25 ) col0
----
25

query I rowsort
SELECT 18 + + + 59
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9649
SELECT + 25, + SUM( + 91 ) AS col0
----
25
91

skipif mysql # not compatible
query II rowsort label-9649
SELECT + 25, + SUM ( + 91 ) AS col0
----
25
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT - COALESCE ( - 38, 4 ) * - ( 4 ) + COUNT( * )
----
-151

skipif mysql # not compatible
query I rowsort label-9650
SELECT - COALESCE ( - 38, 4 ) * - ( 4 ) + COUNT ( * )
----
-151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9651
SELECT ALL CAST( NULL AS SIGNED ) * - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL CAST ( NULL AS INTEGER ) * - 45 AS col1
----
NULL

query I rowsort
SELECT 76 + - + COALESCE ( - 66, + + 34 )
----
142

query I rowsort
SELECT 80 * - - 54 AS col2
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT COUNT( - ( + 36 ) ) + + + 60
----
61

skipif mysql # not compatible
query I rowsort label-9654
SELECT COUNT ( - ( + 36 ) ) + + + 60
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT + 10 * + COUNT( * ) + - COUNT( DISTINCT + 95 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9655
SELECT + 10 * + COUNT ( * ) + - COUNT ( DISTINCT + 95 ) AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9656
SELECT 70 DIV 24 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9656
SELECT 70 / 24 AS col1
----
2

query I rowsort
SELECT 5 + + 82 - ( + - 25 ) * - 19 col1
----
-388

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT DISTINCT - 54 DIV + ( + + 72 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT - 54 / + ( + + 72 ) col2
----
0

query I rowsort
SELECT 95 * 38 AS col1
----
3610

query I rowsort
SELECT ALL 12 * 43
----
516

query I rowsort
SELECT ALL - 36 * 77 col1
----
-2772

query I rowsort
SELECT 15 * 32
----
480

onlyif mysql # DIV for integer division: 
query I rowsort label-9663
SELECT + 9 DIV - - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9663
SELECT + 9 / - - 64 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9664
SELECT 74 + CAST( NULL AS SIGNED ) * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9664
SELECT 74 + CAST ( NULL AS INTEGER ) * 39
----
NULL

query I rowsort
SELECT - 92 * - 62 AS col2
----
5704

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL + MAX( ALL - 68 ) + ( + + 25 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL + MAX ( ALL - 68 ) + ( + + 25 ) AS col1
----
-43

query I rowsort
SELECT 7 - CASE COALESCE ( + - 15, + 28 ) WHEN 89 THEN 14 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT DISTINCT + + 97 + - 20 AS col1, 67 AS col1
----
77
67

query I rowsort
SELECT 84 + + NULLIF ( - - 55, 84 ) + - ( 43 ) * + 89 * - 18 AS col2
----
69025

query I rowsort
SELECT ALL + 32 + 51
----
83

query II rowsort
SELECT - ( 79 ), 20 + - - 22 AS col2
----
-79
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT DISTINCT 7 + COALESCE ( + 79, + MIN( 1 ) * 2 + 21, - 88, + 60 )
----
86

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT 7 + COALESCE ( + 79, + MIN ( 1 ) * 2 + 21, - 88, + 60 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT ALL 51 * + + 12 + + CAST( - ( - 0 ) AS SIGNED ) * 83 AS col1
----
612

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL 51 * + + 12 + + CAST ( - ( - 0 ) AS INTEGER ) * 83 AS col1
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT DISTINCT + + COUNT( * ) * 61 + + 65 + 4
----
130

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT + + COUNT ( * ) * 61 + + 65 + 4
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT 77 * + COUNT( * ) + - 52 + 35
----
60

skipif mysql # not compatible
query I rowsort label-9675
SELECT 77 * + COUNT ( * ) + - 52 + 35
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9676
SELECT COALESCE ( ( - + ( - + 82 ) ), 8 + CASE + 77 WHEN ( + 94 ) THEN - 63 * - 26 ELSE 93 + 95 * - ( - CASE 27 WHEN 72 THEN COUNT( * ) + 28 * + COUNT( * ) WHEN - 87 * - 32 - - 48 THEN NULL ELSE NULL END + - 94 ) END * COUNT( * ), 84 * COUNT( * ) + - 35 ) * - CAST( 71 * 7 AS SIGNED ) AS col2
----
-40754

skipif mysql # not compatible
query I rowsort label-9676
SELECT COALESCE ( ( - + ( - + 82 ) ), 8 + CASE + 77 WHEN ( + 94 ) THEN - 63 * - 26 ELSE 93 + 95 * - ( - CASE 27 WHEN 72 THEN COUNT ( * ) + 28 * + COUNT ( * ) WHEN - 87 * - 32 - - 48 THEN NULL ELSE NULL END + - 94 ) END * COUNT ( * ), 84 * COUNT ( * ) + - 35 ) * - CAST ( 71 * 7 AS INTEGER ) AS col2
----
-40754

query I rowsort
SELECT DISTINCT - + ( ( - - 91 ) )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT + - MIN( DISTINCT - ( 99 ) ) * - 23 + - 20 + COUNT( * ) col2
----
-2296

skipif mysql # not compatible
query I rowsort label-9678
SELECT + - MIN ( DISTINCT - ( 99 ) ) * - 23 + - 20 + COUNT ( * ) col2
----
-2296

query I rowsort
SELECT 2 * - 37 AS col0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9680
SELECT DISTINCT + 71 * + 92 + - 60 DIV - + 61 - 34 DIV - 63
----
6532

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT + 71 * + 92 + - 60 / - + 61 - 34 / - 63
----
6532

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL 2 - + 81 * + 24 * - COUNT( * ) + + 21 AS col2
----
1967

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL 2 - + 81 * + 24 * - COUNT ( * ) + + 21 AS col2
----
1967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9682
SELECT DISTINCT CAST( - - ( - - SUM( - NULLIF ( - 98, 85 ) ) ) AS SIGNED ) * - NULLIF ( + 74 * COUNT( * ) - 0, 10 * + 16 ) AS col0
----
-7252

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT CAST ( - - ( - - SUM ( - NULLIF ( - 98, 85 ) ) ) AS INTEGER ) * - NULLIF ( + 74 * COUNT ( * ) - 0, 10 * + 16 ) AS col0
----
-7252

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT ALL - 39 DIV 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - 39 / 60 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9684
SELECT SUM( DISTINCT - + 98 ) DIV COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9684
SELECT SUM ( DISTINCT - + 98 ) / COUNT ( * ) AS col1
----
-98

query I rowsort
SELECT 51 * - + 68
----
-3468

query I rowsort
SELECT 86 * + + 35 col0
----
3010

onlyif mysql # DIV for integer division: 
query I rowsort label-9687
SELECT ALL 90 DIV + ( 21 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL 90 / + ( 21 ) AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9688
SELECT DISTINCT + COUNT( - + 67 ) * - 58 DIV + - 38
----
1

skipif mysql # not compatible
query I rowsort label-9688
SELECT DISTINCT + COUNT ( - + 67 ) * - 58 / + - 38
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9689
SELECT ALL - 50 * - 81 * CAST( NULL AS SIGNED ) * + 77 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL - 50 * - 81 * CAST ( NULL AS INTEGER ) * + 77 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9690
SELECT + 24 * CAST( 26 AS SIGNED ) col2, + 47 AS col2
----
624
47

skipif mysql # not compatible
query II rowsort label-9690
SELECT + 24 * CAST ( 26 AS INTEGER ) col2, + 47 AS col2
----
624
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT ALL 30 * + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL 30 * + - COUNT ( * )
----
-30

query I rowsort
SELECT DISTINCT 47 * - 52 AS col1
----
-2444

query I rowsort
SELECT ALL + 77 + 60 + 19 AS col0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT - 76 DIV + + 91 * + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9694
SELECT - 76 / + + 91 * + 78 AS col1
----
0

query I rowsort
SELECT ALL 82 + CASE 62 WHEN + ( + 84 ) THEN 99 ELSE NULL END - 37 * 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9696
SELECT 68, - CASE 82 WHEN + 54 THEN NULL WHEN 34 + - 88 THEN - COUNT( * ) + COALESCE ( + 74, + 15 * - 79, - 44 / 15 ) WHEN + 48 THEN + 24 + AVG ( ALL CAST( NULL AS SIGNED ) ) ELSE NULL END AS col2
----
68
NULL

skipif mysql # not compatible
query II rowsort label-9696
SELECT 68, - CASE 82 WHEN + 54 THEN NULL WHEN 34 + - 88 THEN - COUNT ( * ) + COALESCE ( + 74, + 15 * - 79, - 44 / 15 ) WHEN + 48 THEN + 24 + AVG ( ALL CAST ( NULL AS INTEGER ) ) ELSE NULL END AS col2
----
68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT - CASE + COUNT( * ) WHEN + 40 + COUNT( * ) + ( COUNT( * ) ) THEN 23 + + 75 END * 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT - CASE + COUNT ( * ) WHEN + 40 + COUNT ( * ) + ( COUNT ( * ) ) THEN 23 + + 75 END * 75 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT - + 16 + - 19 / 95 + 17 + - - 44 * - CAST( NULL AS SIGNED ) * 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT - + 16 + - 19 / 95 + 17 + - - 44 * - CAST ( NULL AS INTEGER ) * 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT DISTINCT 94 + COUNT( * ) * - 24 + + 70
----
140

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT 94 + COUNT ( * ) * - 24 + + 70
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9700
SELECT ALL - ( + 75 ) + + CASE + + 12 WHEN + 25 THEN + MIN( DISTINCT CAST( 5 AS SIGNED ) ) WHEN + 25 THEN 83 WHEN 95 + ( 58 ) THEN - 26 * - 59 + 31 WHEN 25 THEN NULL END * 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL - ( + 75 ) + + CASE + + 12 WHEN + 25 THEN + MIN ( DISTINCT CAST ( 5 AS INTEGER ) ) WHEN + 25 THEN 83 WHEN 95 + ( 58 ) THEN - 26 * - 59 + 31 WHEN 25 THEN NULL END * 12 AS col0
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( + 93, 34 - + 14 ) * 58
----
5394

query I rowsort
SELECT ALL - - 7 + 83 AS col0
----
90

query II rowsort
SELECT 11, 50 col0
----
11
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9704
SELECT ALL + - CAST( NULL AS SIGNED ) + + 2 / + COALESCE ( + - 28, + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 2 / + COALESCE ( + - 28, + 95 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT ALL - - 32 * - + SUM( DISTINCT + 15 )
----
-480

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL - - 32 * - + SUM ( DISTINCT + 15 )
----
-480

onlyif mysql # DIV for integer division: 
query I rowsort label-9706
SELECT - 9 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-9706
SELECT - 9 / - 96
----
0

query I rowsort
SELECT - 79 + - 21
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9708
SELECT - COUNT( * ) * + + CAST( NULL AS SIGNED ) + + 97 col2, - 32 * - 4 + - 62 * 53
----
NULL
-3158

skipif mysql # not compatible
query II rowsort label-9708
SELECT - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + + 97 col2, - 32 * - 4 + - 62 * 53
----
NULL
-3158

query I rowsort
SELECT DISTINCT CASE 19 WHEN 99 THEN + - 61 WHEN 85 / COALESCE ( + 36, - AVG ( DISTINCT - 78 ), + 92 ) THEN + 93 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9710
SELECT ALL - + 19 - COUNT( - + COALESCE ( - CAST( + + 84 AS DECIMAL ), 87 / + 15 ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL - + 19 - COUNT ( - + COALESCE ( - CAST ( + + 84 AS REAL ), 87 / + 15 ) ) AS col1
----
-20

query I rowsort
SELECT CASE - + 97 WHEN - 16 + 72 * 2 THEN NULL WHEN - 57 - + 59 THEN 16 * 83 END
----
NULL

query I rowsort
SELECT + - ( + - 1 )
----
1

query I rowsort
SELECT - + 65 + + - 63
----
-128

query I rowsort
SELECT ALL - + 27 * + - 99 AS col0
----
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT ALL - COUNT( ALL - 98 ) * + 68 - + 38 + COUNT( + CASE 4 WHEN 27 + 68 THEN - 11 END ) * 27 AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL - COUNT ( ALL - 98 ) * + 68 - + 38 + COUNT ( + CASE 4 WHEN 27 + 68 THEN - 11 END ) * 27 AS col0
----
-106

query I rowsort
SELECT ALL 85 * - 40
----
-3400

query I rowsort
SELECT + 90 * + 5 * 25 * + 69 * - + 31 AS col2
----
-24063750

query II rowsort
SELECT ALL + 6 AS col0, - 83 + + 3 AS col1
----
6
-80

query I rowsort
SELECT + 8 - + 6 AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9720
SELECT DISTINCT + COUNT( * ), - 92 + + - 12 - + + 89 AS col2
----
1
-193

skipif mysql # not compatible
query II rowsort label-9720
SELECT DISTINCT + COUNT ( * ), - 92 + + - 12 - + + 89 AS col2
----
1
-193

query I rowsort
SELECT ALL 49 * - + 13 * - - 3 * 62 AS col2
----
-118482

query I rowsort
SELECT - 54 * 39 AS col2
----
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT + COUNT( DISTINCT 80 ) * + 71
----
71

skipif mysql # not compatible
query I rowsort label-9723
SELECT + COUNT ( DISTINCT 80 ) * + 71
----
71

query I rowsort
SELECT - 72 + + COALESCE ( - 60, 61 ) AS col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT + SUM( + - 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-9725
SELECT + SUM ( + - 79 ) AS col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT + 96 * 84 + + 96 + + 67 DIV - + 49
----
8159

skipif mysql # not compatible
query I rowsort label-9726
SELECT + 96 * 84 + + 96 + + 67 / - + 49
----
8159

query I rowsort
SELECT ALL - 54 * + 84 * - + 59 AS col2
----
267624

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT + 2 * - COUNT( * ) + 67 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9728
SELECT + 2 * - COUNT ( * ) + 67 AS col2
----
65

query I rowsort
SELECT DISTINCT 89 * + - 94 AS col2
----
-8366

query I rowsort
SELECT DISTINCT 48 * - 30 AS col0
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT ALL 20 * ( COUNT( * ) ) * + + 2 * - ( - 28 ) + + 14
----
1134

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL 20 * ( COUNT ( * ) ) * + + 2 * - ( - 28 ) + + 14
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT + 18 + - + MIN( ALL + 7 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-9732
SELECT + 18 + - + MIN ( ALL + 7 ) AS col0
----
11

query I rowsort
SELECT + ( - 23 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT ALL 27 * + - 23 * COUNT( * ) + - - 82 - + CASE 36 WHEN + COUNT( * ) + + COUNT( * ) THEN NULL WHEN - 42 THEN - 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL 27 * + - 23 * COUNT ( * ) + - - 82 - + CASE 36 WHEN + COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN - 42 THEN - 74 END AS col1
----
NULL

query I rowsort
SELECT + 94 + + 24
----
118

query I rowsort
SELECT + 65 * 85 * + - 47
----
-259675

query I rowsort
SELECT 82 * + ( - 90 ) + + - 17 * + 88 + - + 48 + 84 * 43 AS col1
----
-5312

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL + MIN( 44 ) * + 57 + + 3 * - - 60 * 85 AS col1
----
17808

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL + MIN ( 44 ) * + 57 + + 3 * - - 60 * 85 AS col1
----
17808

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT SUM( ALL + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-9739
SELECT SUM ( ALL + 6 )
----
6

query I rowsort
SELECT - 47 + - 22 + 67
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT SUM( 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-9741
SELECT SUM ( 8 ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9742
SELECT + + 71 * - CASE - 92 WHEN + 18 THEN + 13 WHEN + - CASE + 34 WHEN 84 THEN + 88 END / 40 + NULLIF ( 83, - 86 + COUNT( * ) ) / + CASE - 99 + NULLIF ( + 47, + 87 ) WHEN COUNT( * ) THEN NULL WHEN - 26 + 91 THEN 91 / 82 ELSE NULL END THEN 55 + - 4 WHEN - COUNT( * ) THEN + CAST( NULL AS DECIMAL ) END * - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9742
SELECT + + 71 * - CASE - 92 WHEN + 18 THEN + 13 WHEN + - CASE + 34 WHEN 84 THEN + 88 END / 40 + NULLIF ( 83, - 86 + COUNT ( * ) ) / + CASE - 99 + NULLIF ( + 47, + 87 ) WHEN COUNT ( * ) THEN NULL WHEN - 26 + 91 THEN 91 / 82 ELSE NULL END THEN 55 + - 4 WHEN - COUNT ( * ) THEN + CAST ( NULL AS REAL ) END * - 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL SUM( DISTINCT + 64 ) + - ( - 58 )
----
122

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL SUM ( DISTINCT + 64 ) + - ( - 58 )
----
122

query II rowsort
SELECT - 36, + 36 AS col0
----
-36
36

query I rowsort
SELECT - 49 * 24 AS col1
----
-1176

query I rowsort
SELECT DISTINCT NULLIF ( + 42, - 85 )
----
42

query II rowsort
SELECT - - 16 AS col2, + 58
----
16
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL - NULLIF ( - 77, - COUNT( * ) ) col1
----
77

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL - NULLIF ( - 77, - COUNT ( * ) ) col1
----
77

query I rowsort
SELECT - - ( ( + AVG ( ALL CASE 31 WHEN - 42 THEN + NULLIF ( + 74, 69 * 92 ) ELSE NULL END ) ) )
----
NULL

query I rowsort
SELECT ALL - 49 - 7 * 55 + - 61 - + 29
----
-524

onlyif mysql # DIV for integer division: 
query I rowsort label-9751
SELECT + + 69 - ( - 12 ) DIV ( + 1 ) + 72 + 43 AS col2
----
196

skipif mysql # not compatible
query I rowsort label-9751
SELECT + + 69 - ( - 12 ) / ( + 1 ) + 72 + 43 AS col2
----
196

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9752
SELECT ALL + COUNT( * ) DIV ( + + ( - 45 ) ) AS col0, 17 AS col0
----
0
17

skipif mysql # not compatible
query II rowsort label-9752
SELECT ALL + COUNT ( * ) / ( + + ( - 45 ) ) AS col0, 17 AS col0
----
0
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9753
SELECT ALL 38, - 71 * - MIN( ALL - + 53 ) + + + COALESCE ( - 17, 63 ) col0
----
38
-3780

skipif mysql # not compatible
query II rowsort label-9753
SELECT ALL 38, - 71 * - MIN ( ALL - + 53 ) + + + COALESCE ( - 17, 63 ) col0
----
38
-3780

onlyif mysql # DIV for integer division: 
query I rowsort label-9754
SELECT ALL + - 12 DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL + - 12 / 13
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9755
SELECT - 79 DIV - SUM( DISTINCT + 4 ) - 87 * - 96 AS col0
----
8371

skipif mysql # not compatible
query I rowsort label-9755
SELECT - 79 / - SUM ( DISTINCT + 4 ) - 87 * - 96 AS col0
----
8371

query I rowsort
SELECT + - 17 * + + 65 AS col1
----
-1105

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT + 80 / CASE + COUNT( * ) WHEN - + 24 THEN - COUNT( * ) END + - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT + 80 / CASE + COUNT ( * ) WHEN - + 24 THEN - COUNT ( * ) END + - 67 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 39 * - - NULLIF ( COALESCE ( - + 27, + + 23 ), - 81 )
----
-1053

query I rowsort
SELECT ALL - 85 * - + 89 * + + 83
----
627895

query I rowsort
SELECT - 79 * ( - ( - 78 ) )
----
-6162

query I rowsort
SELECT ALL + ( + 76 )
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9762
SELECT ALL 5 DIV + 23 * - 80 * + 43 + 84
----
84

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL 5 / + 23 * - 80 * + 43 + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT 5 * 0 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9763
SELECT 5 * 0 * + COUNT ( * )
----
0

query I rowsort
SELECT ALL - 49 + 83 - - + 63
----
97

query I rowsort
SELECT ALL - 77 + + + 86 * - 51
----
-4463

onlyif mysql # aggregate syntax: 
query II rowsort label-9766
SELECT ALL - ( - 47 ), ( + COUNT( * ) ) * - + 74 + - - 79 + + + 93 AS col1
----
47
98

skipif mysql # not compatible
query II rowsort label-9766
SELECT ALL - ( - 47 ), ( + COUNT ( * ) ) * - + 74 + - - 79 + + + 93 AS col1
----
47
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL COALESCE ( + - 20, - 14 * - 0 * - + COUNT( * ) ) + - - NULLIF ( 43, - ( - 14 ) )
----
23

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL COALESCE ( + - 20, - 14 * - 0 * - + COUNT ( * ) ) + - - NULLIF ( 43, - ( - 14 ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT DISTINCT COUNT( * ) * + ( 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT COUNT ( * ) * + ( 74 ) AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9769
SELECT DISTINCT + 32 + + + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT + 32 + + + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9770
SELECT ALL - 77 + + 56 + + - 20 DIV - + 45 * + COUNT( * ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL - 77 + + 56 + + - 20 / - + 45 * + COUNT ( * ) col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9771
SELECT ALL + COUNT( * ) DIV + 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL + COUNT ( * ) / + 45 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9772
SELECT 14 * + 72 * + ( + - CAST( + 79 AS SIGNED ) ) - - SUM( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9772
SELECT 14 * + 72 * + ( + - CAST ( + 79 AS INTEGER ) ) - - SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT COUNT( * ) * - 15 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9773
SELECT COUNT ( * ) * - 15 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9774
SELECT DISTINCT + - ( + 99 ) * + 72 * - 51 * COUNT( * ) AS col2, 44
----
363528
44

skipif mysql # not compatible
query II rowsort label-9774
SELECT DISTINCT + - ( + 99 ) * + 72 * - 51 * COUNT ( * ) AS col2, 44
----
363528
44

query I rowsort
SELECT ALL - NULLIF ( 31, ( 45 ) ) - + 64
----
-95

query I rowsort
SELECT + 78 + - NULLIF ( - 23, - + COALESCE ( - 50, + 85 * + 9 ) )
----
101

query I rowsort
SELECT 59 * 92 + + 74 - - + 96
----
5598

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9778
SELECT ALL + 95 DIV + 70 + - COUNT( - 50 )
----
0

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL + 95 / + 70 + - COUNT ( - 50 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9779
SELECT COALESCE ( + 93, - 77 + 40 + - + 17 * + COUNT( * ), CASE + 35 WHEN 71 THEN NULL WHEN 99 THEN NULL WHEN + 65 THEN COALESCE ( 50, + 16 ) WHEN CAST( NULL AS DECIMAL ) THEN COUNT( * ) + + 73 ELSE 91 END DIV - COUNT( * ) ) + + 62 * - 53
----
-3193

skipif mysql # not compatible
query I rowsort label-9779
SELECT COALESCE ( + 93, - 77 + 40 + - + 17 * + COUNT ( * ), CASE + 35 WHEN 71 THEN NULL WHEN 99 THEN NULL WHEN + 65 THEN COALESCE ( 50, + 16 ) WHEN CAST ( NULL AS REAL ) THEN COUNT ( * ) + + 73 ELSE 91 END / - COUNT ( * ) ) + + 62 * - 53
----
-3193

onlyif mysql # DIV for integer division: 
query II rowsort label-9780
SELECT 61 DIV 49 col1, 22 AS col2
----
1
22

skipif mysql # not compatible
query II rowsort label-9780
SELECT 61 / 49 col1, 22 AS col2
----
1
22

query II rowsort
SELECT - 70 * - - 82, 37 AS col2
----
-5740
37

query I rowsort
SELECT - 14 + - 29 * 39 + 33 AS col1
----
-1112

query I rowsort
SELECT DISTINCT 28 * + 71 AS col1
----
1988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9784
SELECT - CAST( - 9 AS SIGNED ), ( SUM( 26 ) ) AS col1
----
9
26

skipif mysql # not compatible
query II rowsort label-9784
SELECT - CAST ( - 9 AS INTEGER ), ( SUM ( 26 ) ) AS col1
----
9
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9785
SELECT 10 * - CAST( NULL AS SIGNED ) + + - 39 + - + COUNT( * ) + - 69 + + 10 + + 26 - ( + 16 + + 41 ) * 41 * - COUNT( * ) / 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT 10 * - CAST ( NULL AS INTEGER ) + + - 39 + - + COUNT ( * ) + - 69 + + 10 + + 26 - ( + 16 + + 41 ) * 41 * - COUNT ( * ) / 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT 89 + - - 83 + - - MAX( DISTINCT - - 15 ) AS col0
----
187

skipif mysql # not compatible
query I rowsort label-9786
SELECT 89 + - - 83 + - - MAX ( DISTINCT - - 15 ) AS col0
----
187

onlyif mysql # DIV for integer division: 
query II rowsort label-9787
SELECT 18, + 62 DIV - 42 AS col1
----
18
-1

skipif mysql # not compatible
query II rowsort label-9787
SELECT 18, + 62 / - 42 AS col1
----
18
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT ALL + 26 + + COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL + 26 + + COUNT ( * ) AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9789
SELECT + MIN( 99 ) * 70 + COUNT( * ) + + + 67 - + 35 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT + MIN ( 99 ) * 70 + COUNT ( * ) + + + 67 - + 35 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 37 AS col1, - 1
----
37
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT ALL 31 + + 49 * COUNT( * ) + - 2 * - - 13
----
54

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL 31 + + 49 * COUNT ( * ) + - 2 * - - 13
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT DISTINCT - MIN( 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT - MIN ( 93 ) AS col1
----
-93

query I rowsort
SELECT DISTINCT - 63 + + + 96
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9794
SELECT DISTINCT + 9 DIV 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT + 9 / 91 AS col2
----
0

query I rowsort
SELECT 82 * - 10 - 37 AS col0
----
-857

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT ALL - COUNT( DISTINCT - 73 ) * + NULLIF ( - - MAX( + 41 ), + 79 * ( ( - 14 ) ) ) * 17
----
-697

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL - COUNT ( DISTINCT - 73 ) * + NULLIF ( - - MAX ( + 41 ), + 79 * ( ( - 14 ) ) ) * 17
----
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT ALL + COUNT( * ) * + 11
----
11

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL + COUNT ( * ) * + 11
----
11

query I rowsort
SELECT 1 + + - 86 * + 57 + + 61 * - - 92
----
711

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT - 55 * - COUNT( * ) * + 87 * - - MIN( ALL - - 15 ) + 60 * + 92 + + 21 + 78 AS col1
----
77394

skipif mysql # not compatible
query I rowsort label-9799
SELECT - 55 * - COUNT ( * ) * + 87 * - - MIN ( ALL - - 15 ) + 60 * + 92 + + 21 + 78 AS col1
----
77394

query I rowsort
SELECT 26 * 27 AS col1
----
702

query I rowsort
SELECT + + ( - + 57 ) AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT 84 * + 64 - - CAST( NULL AS SIGNED ) + - - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT 84 * + 64 - - CAST ( NULL AS INTEGER ) + - - 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT - - MIN( DISTINCT - + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-9803
SELECT - - MIN ( DISTINCT - + 89 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9804
SELECT DISTINCT - NULLIF ( - - CAST( NULL AS SIGNED ), + 79 * + 14 * 64 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT - NULLIF ( - - CAST ( NULL AS INTEGER ), + 79 * + 14 * 64 ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9805
SELECT ALL COUNT( * ) * SUM( ALL - 43 ) * - - 0 DIV + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL COUNT ( * ) * SUM ( ALL - 43 ) * - - 0 / + 68 AS col2
----
0

query I rowsort
SELECT ALL ( - - 59 ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT - MIN( - 8 ) col0
----
8

skipif mysql # not compatible
query I rowsort label-9807
SELECT - MIN ( - 8 ) col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT + 25 * - + 52 + + + MAX( ALL + 84 ) col2
----
-1216

skipif mysql # not compatible
query I rowsort label-9808
SELECT + 25 * - + 52 + + + MAX ( ALL + 84 ) col2
----
-1216

query I rowsort
SELECT ALL - 72 * + 15
----
-1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9810
SELECT + COUNT( * ) DIV - - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9810
SELECT + COUNT ( * ) / - - 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9811
SELECT DISTINCT 84 AS col2, + MAX( DISTINCT - 16 ) + - + 65
----
84
-81

skipif mysql # not compatible
query II rowsort label-9811
SELECT DISTINCT 84 AS col2, + MAX ( DISTINCT - 16 ) + - + 65
----
84
-81

query I rowsort
SELECT + 91 * 56 AS col2
----
5096

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT DISTINCT ( + - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT ( + - COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT - COUNT( - 71 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9814
SELECT - COUNT ( - 71 ) col1
----
-1

query II rowsort
SELECT - + 68 AS col0, - 37
----
-68
-37

query I rowsort
SELECT ALL - 15 + - 70
----
-85

query I rowsort
SELECT + 32 - + ( + + NULLIF ( + 59, - 31 + - COALESCE ( - 10, - + 89 / + + 90 + 36 ) + 95 * 89 ) ) AS col1
----
-27

query I rowsort
SELECT ALL NULLIF ( - + 13, + 50 )
----
-13

query I rowsort
SELECT DISTINCT + 67 + COALESCE ( + - 77, - 2 ) AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9820
SELECT - COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9820
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL 31 + + 7 * - - 33
----
262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9822
SELECT ALL 90 + - CAST( NULL AS SIGNED ) + ( + 97 ) * + - 17 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL 90 + - CAST ( NULL AS INTEGER ) + ( + 97 ) * + - 17 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - COALESCE ( + NULLIF ( 69, + - 62 ), - 78 * + 17 ) AS col0
----
-69

query I rowsort
SELECT ALL - 50 + - ( - 66 ) AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9825
SELECT + 95 + + 75 - + ( + 55 ) * - + 85 DIV 17
----
445

skipif mysql # not compatible
query I rowsort label-9825
SELECT + 95 + + 75 - + ( + 55 ) * - + 85 / 17
----
445

query II rowsort
SELECT 95 * + 96 - + + 41 + + 79 col2, - 62 * + 49 * 19
----
9158
-57722

query I rowsort
SELECT DISTINCT NULLIF ( + + 81, - ( - + 21 ) * 46 * 99 * + 16 ) * - - 52 AS col0
----
4212

query I rowsort
SELECT + 42 * - - 41
----
1722

onlyif mysql # DIV for integer division: 
query I rowsort label-9829
SELECT + 59 DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-9829
SELECT + 59 / + 48
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9830
SELECT CASE + CAST( NULL AS DECIMAL ) WHEN - - ( 13 ) + 9 + 46 THEN - + CAST( NULL AS SIGNED ) ELSE + 5 - ( + 66 ) END AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9830
SELECT CASE + CAST ( NULL AS REAL ) WHEN - - ( 13 ) + 9 + 46 THEN - + CAST ( NULL AS INTEGER ) ELSE + 5 - ( + 66 ) END AS col1
----
-61

query I rowsort
SELECT DISTINCT + 32 * 75 * + + 96 * + 36 - - 9 col0
----
8294409

query I rowsort
SELECT ALL + COALESCE ( + - 87, + 4 ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL 76 * - 92 + COUNT( + 19 )
----
-6991

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL 76 * - 92 + COUNT ( + 19 )
----
-6991

query II rowsort
SELECT + 46 * 32, - COALESCE ( - 6, + 24 ) AS col0
----
1472
6

query I rowsort
SELECT ALL + - 90 col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT ALL + + COUNT( ALL + 88 ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL + + COUNT ( ALL + 88 ) * + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - + 37 * - ( + 79 ) * + CASE - 85 WHEN - + 79 + 16 THEN + 18 ELSE NULL END - - - 28 * 69
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9838
SELECT - 73 DIV + + NULLIF ( 72, - 79 * 33 + 31 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9838
SELECT - 73 / + + NULLIF ( 72, - 79 * 33 + 31 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT - CASE 28 WHEN + + 71 + CAST( NULL AS SIGNED ) + 39 THEN 38 END * 71 - + - ( + - 73 ) * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9839
SELECT - CASE 28 WHEN + + 71 + CAST ( NULL AS INTEGER ) + 39 THEN 38 END * 71 - + - ( + - 73 ) * 78
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9840
SELECT ALL + 93 * - COUNT( * ), - COUNT( * ) AS col1
----
-93
-1

skipif mysql # not compatible
query II rowsort label-9840
SELECT ALL + 93 * - COUNT ( * ), - COUNT ( * ) AS col1
----
-93
-1

query I rowsort
SELECT ALL + + NULLIF ( - 66, + 29 ) AS col1
----
-66

query I rowsort
SELECT + CASE + + 78 WHEN 6 THEN NULL ELSE + 16 END AS col2
----
16

query I rowsort
SELECT DISTINCT + CASE + 10 WHEN + 6 THEN + ( ( 95 ) ) WHEN - 75 + - 97 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9844
SELECT ALL 62 + + - 7 AS col0, COUNT( * ) * + 86 AS col1
----
55
86

skipif mysql # not compatible
query II rowsort label-9844
SELECT ALL 62 + + - 7 AS col0, COUNT ( * ) * + 86 AS col1
----
55
86

query I rowsort
SELECT ALL + + 5 + + - 51
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9846
SELECT - 76 + + 16 + + + 5 + + 32 / 12 * COUNT( * ) * - + ( + 40 ) / + CASE + AVG ( - 50 ) WHEN CAST( NULL AS SIGNED ) THEN + 49 WHEN - COUNT( * ) THEN - SUM( ALL CASE 30 WHEN CAST( - 11 AS SIGNED ) THEN - 51 ELSE 88 + 83 * 62 END ) * + 68 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT - 76 + + 16 + + + 5 + + 32 / 12 * COUNT ( * ) * - + ( + 40 ) / + CASE + AVG ( - 50 ) WHEN CAST ( NULL AS INTEGER ) THEN + 49 WHEN - COUNT ( * ) THEN - SUM ( ALL CASE 30 WHEN CAST ( - 11 AS INTEGER ) THEN - 51 ELSE 88 + 83 * 62 END ) * + 68 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9847
SELECT + - COUNT( * ) * - 70 - CASE - CAST( NULL AS SIGNED ) WHEN + + 18 + + COUNT( * ) + - CAST( + 83 AS SIGNED ) THEN 5 + 2 * 84 ELSE 65 END
----
5

skipif mysql # not compatible
query I rowsort label-9847
SELECT + - COUNT ( * ) * - 70 - CASE - CAST ( NULL AS INTEGER ) WHEN + + 18 + + COUNT ( * ) + - CAST ( + 83 AS INTEGER ) THEN 5 + 2 * 84 ELSE 65 END
----
5

query I rowsort
SELECT - 89 + + + 7 + + 74 * + 88 AS col0
----
6430

query I rowsort
SELECT ALL - + 93 + - 49 AS col2
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT - + COUNT( DISTINCT + 15 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9850
SELECT - + COUNT ( DISTINCT + 15 ) AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9851
SELECT - CASE + 62 WHEN - CAST( NULL AS DECIMAL ) THEN NULL ELSE + + 97 END AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9851
SELECT - CASE + 62 WHEN - CAST ( NULL AS REAL ) THEN NULL ELSE + + 97 END AS col2
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9852
SELECT ALL + AVG ( ALL + 27 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL + AVG ( ALL + 27 ) + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 80 + 45 + - + 7 - - - 13
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-9854
SELECT ALL 23 AS col2, 83 - 6 + + COUNT( * )
----
23
78

skipif mysql # not compatible
query II rowsort label-9854
SELECT ALL 23 AS col2, 83 - 6 + + COUNT ( * )
----
23
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT DISTINCT - 18 * + MAX( + - 36 )
----
648

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT - 18 * + MAX ( + - 36 )
----
648

query I rowsort
SELECT DISTINCT 37 + 91
----
128

query I rowsort
SELECT DISTINCT - 9 * - 5 * + 44
----
1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9858
SELECT ALL 72 + + - 10 + - 83 AS col2, + 18 * - + CASE - COUNT( + 16 ) WHEN + 86 * + - 8 / + 90 THEN - 43 * 88 WHEN MAX( CAST( NULL AS SIGNED ) ) THEN + COUNT( * ) + 97 * + 2 END AS col2
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-9858
SELECT ALL 72 + + - 10 + - 83 AS col2, + 18 * - + CASE - COUNT ( + 16 ) WHEN + 86 * + - 8 / + 90 THEN - 43 * 88 WHEN MAX ( CAST ( NULL AS INTEGER ) ) THEN + COUNT ( * ) + 97 * + 2 END AS col2
----
-21
NULL

query I rowsort
SELECT + 78 * 2 AS col0
----
156

query I rowsort
SELECT - ( + + ( - 43 ) )
----
43

query I rowsort
SELECT + 30 + - ( - ( - 20 ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT - COUNT( * ) * - ( 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9862
SELECT - COUNT ( * ) * - ( 91 ) AS col0
----
91

query I rowsort
SELECT + 59 + - - 63
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9864
SELECT 55 / - 38 * + - 11 + + 28 + + 24 + + - CAST( NULL AS SIGNED ) / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9864
SELECT 55 / - 38 * + - 11 + + 28 + + 24 + + - CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9865
SELECT CAST( + 45 AS SIGNED ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-9865
SELECT CAST ( + 45 AS INTEGER ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT + 88 * + COUNT( * ) * + 65 AS col2
----
5720

skipif mysql # not compatible
query I rowsort label-9866
SELECT + 88 * + COUNT ( * ) * + 65 AS col2
----
5720

query I rowsort
SELECT ALL 0 * - 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT + 6 - 70 - - + MAX( 84 ) + - 32 * - MIN( - 72 ) + + COALESCE ( - - 91, - - 42 ) col2
----
-2193

skipif mysql # not compatible
query I rowsort label-9868
SELECT + 6 - 70 - - + MAX ( 84 ) + - 32 * - MIN ( - 72 ) + + COALESCE ( - - 91, - - 42 ) col2
----
-2193

query I rowsort
SELECT DISTINCT 11 * + + 98
----
1078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9870
SELECT - ( + CASE - - MAX( + 79 ) WHEN - + 63 THEN NULL ELSE - 75 END ) DIV MIN( - 42 ) + - 6
----
-7

skipif mysql # not compatible
query I rowsort label-9870
SELECT - ( + CASE - - MAX ( + 79 ) WHEN - + 63 THEN NULL ELSE - 75 END ) / MIN ( - 42 ) + - 6
----
-7

query I rowsort
SELECT + 52 * - 80
----
-4160

query I rowsort
SELECT + - 85 + 8 - - NULLIF ( - + 20, + + 85 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT ALL - COUNT( * ) * + + 45
----
-45

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL - COUNT ( * ) * + + 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT ALL + NULLIF ( - COALESCE ( COALESCE ( - COUNT( * ), - + 7 + + + 0 + SUM( + 57 ) ), 89, + 37 ), 31 * + 92 + 48 * + 84 )
----
1

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL + NULLIF ( - COALESCE ( COALESCE ( - COUNT ( * ), - + 7 + + + 0 + SUM ( + 57 ) ), 89, + 37 ), 31 * + 92 + 48 * + 84 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT + 37 * - - 5 + + + COUNT( * ) + - - 40 + 30 + + - 92 AS col0
----
164

skipif mysql # not compatible
query I rowsort label-9875
SELECT + 37 * - - 5 + + + COUNT ( * ) + - - 40 + 30 + + - 92 AS col0
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL - - 93 * + + ( 73 ) + + - CASE 79 WHEN + - 96 THEN + 36 * + 18 + - - ( + + 3 ) WHEN - COUNT( * ) THEN - 50 * - 23 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL - - 93 * + + ( 73 ) + + - CASE 79 WHEN + - 96 THEN + 36 * + 18 + - - ( + + 3 ) WHEN - COUNT ( * ) THEN - 50 * - 23 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9877
SELECT DISTINCT + + CASE 14 WHEN COUNT( 79 ) THEN - CAST( NULL AS SIGNED ) / - ( - 79 ) - - 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT + + CASE 14 WHEN COUNT ( 79 ) THEN - CAST ( NULL AS INTEGER ) / - ( - 79 ) - - 13 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9878
SELECT ALL - 39 DIV + 55 * 60 * - 84
----
0

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - 39 / + 55 * 60 * - 84
----
0

query I rowsort
SELECT + - ( - + 97 ) AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9880
SELECT + + 0 DIV - 54 + + - 2 + - 97 + 75 + - - ( - 76 ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-9880
SELECT + + 0 / - 54 + + - 2 + - 97 + 75 + - - ( - 76 ) AS col2
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-9881
SELECT + - ( + - 82 ) * + 28 * 6 * - + 73 * - 1 + - 27 DIV - ( - 65 ) col2
----
1005648

skipif mysql # not compatible
query I rowsort label-9881
SELECT + - ( + - 82 ) * + 28 * 6 * - + 73 * - 1 + - 27 / - ( - 65 ) col2
----
1005648

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL + 89 + + - ( - SUM( 58 ) )
----
147

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL + 89 + + - ( - SUM ( 58 ) )
----
147

query I rowsort
SELECT + 83 * - 74 AS col2
----
-6142

query I rowsort
SELECT + 57 + + 83
----
140

query I rowsort
SELECT DISTINCT - COALESCE ( 84, - 13 ) * - 70
----
5880

query I rowsort
SELECT DISTINCT 75 + 52 AS col1
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9887
SELECT ALL MAX( DISTINCT - 17 ) + + - SUM( DISTINCT - 6 ) + - 38 DIV + + ( + 95 )
----
-11

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL MAX ( DISTINCT - 17 ) + + - SUM ( DISTINCT - 6 ) + - 38 / + + ( + 95 )
----
-11

query I rowsort
SELECT DISTINCT - ( + 87 )
----
-87

query I rowsort
SELECT DISTINCT + + 28 + + + 6 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT ( ( + - 71 ) ) - + + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-9890
SELECT ( ( + - 71 ) ) - + + COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-9891
SELECT - 30 AS col1, + 54 * - - MAX( - 80 )
----
-30
-4320

skipif mysql # not compatible
query II rowsort label-9891
SELECT - 30 AS col1, + 54 * - - MAX ( - 80 )
----
-30
-4320

query I rowsort
SELECT 14 * - + 64 AS col2
----
-896

query II rowsort
SELECT DISTINCT 35 col0, + ( + + 53 )
----
35
53

query II rowsort
SELECT 14 AS col2, 44 col2
----
14
44

query I rowsort
SELECT 4 - - 7 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT ALL - 60 * - COUNT( - 53 )
----
60

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL - 60 * - COUNT ( - 53 )
----
60

query I rowsort
SELECT DISTINCT - 87 * + COALESCE ( + - 5, - 39 * + 16 )
----
435

query I rowsort
SELECT ALL + 33 - - 43 + 80 AS col1
----
156

query I rowsort
SELECT 30 * + + 16 AS col1
----
480

query I rowsort
SELECT 4 + + 64 * - 76 * + - 0 + 47
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9901
SELECT 52, - COUNT( * ) DIV - + 61 AS col1
----
52
0

skipif mysql # not compatible
query II rowsort label-9901
SELECT 52, - COUNT ( * ) / - + 61 AS col1
----
52
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9902
SELECT DISTINCT - 81 col1, - 72 DIV + - COUNT( + 8 ) AS col2
----
-81
72

skipif mysql # not compatible
query II rowsort label-9902
SELECT DISTINCT - 81 col1, - 72 / + - COUNT ( + 8 ) AS col2
----
-81
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9903
SELECT 20 DIV + 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9903
SELECT 20 / + 56 AS col0
----
0

query I rowsort
SELECT DISTINCT - - ( 56 ) AS col2
----
56

query I rowsort
SELECT - 64 * - 84 AS col0
----
5376

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT ALL + 34 + - 33 * COUNT( * ) + + ( + - 1 )
----
0

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL + 34 + - 33 * COUNT ( * ) + + ( + - 1 )
----
0

query I rowsort
SELECT - CASE - 53 WHEN + 0 THEN + 21 ELSE NULL END * - + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT + SUM( ( + 7 ) )
----
7

skipif mysql # not compatible
query I rowsort label-9908
SELECT + SUM ( ( + 7 ) )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT ALL + 10 * - 50 AS col0, COUNT( * )
----
-500
1

skipif mysql # not compatible
query II rowsort label-9909
SELECT ALL + 10 * - 50 AS col0, COUNT ( * )
----
-500
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT ALL ( - 2 ) + + COUNT( ALL 28 ) * - - 37 - + - 73 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL ( - 2 ) + + COUNT ( ALL 28 ) * - - 37 - + - 73 AS col0
----
108

query II rowsort
SELECT + 5 * + - 59 - + - 6 + - 93 col0, - 26
----
-382
-26

query II rowsort
SELECT + 91 AS col2, + 47 AS col0
----
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT - 91 + - COUNT( * ) * 39
----
-130

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT - 91 + - COUNT ( * ) * 39
----
-130

query II rowsort
SELECT ALL - 79, + 90 + - 25 * - - 46 * ( - 60 ) AS col0
----
-79
69090

query I rowsort
SELECT - 94 + + + 72 col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9916
SELECT ALL ( + 93 ) - CASE + + 85 WHEN + COALESCE ( 68, - - 59 ) * - 75 DIV 69 THEN + 98 - - CAST( 58 AS SIGNED ) ELSE COUNT( DISTINCT - 50 ) * + 86 + + 42 DIV + COUNT( * ) END + 32 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL ( + 93 ) - CASE + + 85 WHEN + COALESCE ( 68, - - 59 ) * - 75 / 69 THEN + 98 - - CAST ( 58 AS INTEGER ) ELSE COUNT ( DISTINCT - 50 ) * + 86 + + 42 / + COUNT ( * ) END + 32 AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9917
SELECT ALL + + COUNT( * ) - - ( + + 16 ) - + - 64 + + 95 DIV 85 * - 39 * - ( + 24 ) AS col1
----
1017

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + + COUNT ( * ) - - ( + + 16 ) - + - 64 + + 95 / 85 * - 39 * - ( + 24 ) AS col1
----
1017

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9918
SELECT NULLIF ( + COALESCE ( + + 74, SUM( + + ( + 61 ) ) + - COUNT( * ) + - 49 * - 0 DIV - MAX( + 43 ) * + 81, 12 - 53 DIV 99 ), - 96 ) * + ( + 87 )
----
6438

skipif mysql # not compatible
query I rowsort label-9918
SELECT NULLIF ( + COALESCE ( + + 74, SUM ( + + ( + 61 ) ) + - COUNT ( * ) + - 49 * - 0 / - MAX ( + 43 ) * + 81, 12 - 53 / 99 ), - 96 ) * + ( + 87 )
----
6438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9919
SELECT ALL CAST( 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL CAST ( 94 AS INTEGER )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9920
SELECT ALL COUNT( * ) DIV + - 7 col1
----
0

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL COUNT ( * ) / + - 7 col1
----
0

query I rowsort
SELECT 14 - + ( + - 44 ) + + + 49
----
107

query II rowsort
SELECT 24 + - + 45 col0, 86
----
-21
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9923
SELECT 95 * - 28 AS col0, MAX( ALL + CAST( 16 AS SIGNED ) ) * + + 66 + + - 53 DIV 57 AS col0
----
-2660
1056

skipif mysql # not compatible
query II rowsort label-9923
SELECT 95 * - 28 AS col0, MAX ( ALL + CAST ( 16 AS INTEGER ) ) * + + 66 + + - 53 / 57 AS col0
----
-2660
1056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9924
SELECT DISTINCT COUNT( * ) * + + 26 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT COUNT ( * ) * + + 26 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 1 * - 52 * 52 * + - 9 AS col0
----
24336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9926
SELECT 20 * CAST( 72 AS SIGNED ) * + 64 * + 69 col1
----
6359040

skipif mysql # not compatible
query I rowsort label-9926
SELECT 20 * CAST ( 72 AS INTEGER ) * + 64 * + 69 col1
----
6359040

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT ALL COUNT( ALL - + NULLIF ( - 99, + 52 + + 30 - + + 3 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL COUNT ( ALL - + NULLIF ( - 99, + 52 + + 30 - + + 3 ) ) AS col2
----
1

query I rowsort
SELECT 49 + - 63 + + + 48 col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9929
SELECT 58 + + - 63, - COUNT( * ) AS col0
----
-5
-1

skipif mysql # not compatible
query II rowsort label-9929
SELECT 58 + + - 63, - COUNT ( * ) AS col0
----
-5
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT 65 * + CASE 35 WHEN ( + COUNT( * ) ) THEN NULL ELSE + + 23 * MIN( ALL 40 ) END AS col2
----
59800

skipif mysql # not compatible
query I rowsort label-9930
SELECT 65 * + CASE 35 WHEN ( + COUNT ( * ) ) THEN NULL ELSE + + 23 * MIN ( ALL 40 ) END AS col2
----
59800

query I rowsort
SELECT ALL + 29 + + 82 AS col0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9932
SELECT 36 + - COALESCE ( 97, + + NULLIF ( - + 79, - 74 - + - 40 + + + CAST( - 98 AS SIGNED ) ), 81 ) * CAST( - 90 AS SIGNED )
----
8766

skipif mysql # not compatible
query I rowsort label-9932
SELECT 36 + - COALESCE ( 97, + + NULLIF ( - + 79, - 74 - + - 40 + + + CAST ( - 98 AS INTEGER ) ), 81 ) * CAST ( - 90 AS INTEGER )
----
8766

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL - COUNT( * ) * - ( 93 ) + - 18
----
75

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL - COUNT ( * ) * - ( 93 ) + - 18
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT DISTINCT + 45 * 55 + + COUNT( * ) * - ( 59 ) + 37 AS col1
----
2453

skipif mysql # not compatible
query I rowsort label-9934
SELECT DISTINCT + 45 * 55 + + COUNT ( * ) * - ( 59 ) + 37 AS col1
----
2453

onlyif mysql # DIV for integer division: 
query I rowsort label-9935
SELECT + 62 DIV + + 51 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9935
SELECT + 62 / + + 51 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9936
SELECT ALL 53 * 3 DIV - + 50 + - + 23 * + 75 AS col0
----
-1728

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL 53 * 3 / - + 50 + - + 23 * + 75 AS col0
----
-1728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9937
SELECT DISTINCT + - COUNT( * ) * + 68 * + CAST( - CASE - + 45 WHEN 0 THEN + COUNT( * ) WHEN - 23 + - CASE - 40 WHEN - + 88 + - 5 + 6 * - ( + 53 ) THEN NULL WHEN 67 THEN NULL WHEN + 86 THEN + 43 ELSE NULL END THEN NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT + - COUNT ( * ) * + 68 * + CAST ( - CASE - + 45 WHEN 0 THEN + COUNT ( * ) WHEN - 23 + - CASE - 40 WHEN - + 88 + - 5 + 6 * - ( + 53 ) THEN NULL WHEN 67 THEN NULL WHEN + 86 THEN + 43 ELSE NULL END THEN NULL END AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 8 * - - 21 + - + 21 - 56
----
91

query I rowsort
SELECT - 85 - - - 66
----
-151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9940
SELECT DISTINCT + 45 * - CAST( NULL AS SIGNED ) * - 7 + + 65 + + - 62 + - 24 / 86 * + 84 * - - 66 * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT + 45 * - CAST ( NULL AS INTEGER ) * - 7 + + 65 + + - 62 + - 24 / 86 * + 84 * - - 66 * + 7
----
NULL

query II rowsort
SELECT ALL 61 * - 73 + 68, - 12 col1
----
-4385
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9942
SELECT 53 / + + CAST( - 93 AS DECIMAL ) + + COUNT( * ) + + 59 + - + 26 - + 61 * 99 + + COALESCE ( - + 74, + MIN( 37 ) * - ( CAST( NULL AS SIGNED ) ) ) * 6 / CASE 50 WHEN AVG ( 56 ) - - 68 * 81 THEN NULL WHEN - 32 * 47 - 8 THEN + ( 73 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9942
SELECT 53 / + + CAST ( - 93 AS REAL ) + + COUNT ( * ) + + 59 + - + 26 - + 61 * 99 + + COALESCE ( - + 74, + MIN ( 37 ) * - ( CAST ( NULL AS INTEGER ) ) ) * 6 / CASE 50 WHEN AVG ( 56 ) - - 68 * 81 THEN NULL WHEN - 32 * 47 - 8 THEN + ( 73 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9943
SELECT - MIN( ALL ( + 74 ) ) + - CAST( + 88 AS SIGNED ) DIV + 72 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-9943
SELECT - MIN ( ALL ( + 74 ) ) + - CAST ( + 88 AS INTEGER ) / + 72 AS col0
----
-75

query I rowsort
SELECT - 56 * - - 31 AS col2
----
-1736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT + + CAST( NULL AS SIGNED ) * - 18 + + + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT + + CAST ( NULL AS INTEGER ) * - 18 + + + 66 AS col2
----
NULL

query I rowsort
SELECT ALL + + COALESCE ( - 6, - 91 ) col0
----
-6

query I rowsort
SELECT ALL + 8 * - - 62 + + + 8 * 14 - + + 65 AS col0
----
543

query I rowsort
SELECT + 14 + 47
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9949
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 89 - + + 88 + + 11 + + 44 * - - 97 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 89 - + + 88 + + 11 + + 44 * - - 97 col1
----
NULL

query I rowsort
SELECT ALL 97 - + - 1 + - + 75 - - + 88 * + + ( - 35 ) AS col1
----
-3057

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT DISTINCT COUNT( * ) * + COUNT( + - ( + + 8 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT COUNT ( * ) * + COUNT ( + - ( + + 8 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9952
SELECT - 18 * - - 50 + 65 + COALESCE ( - - CASE + + 32 WHEN 92 * 31 THEN 2 ELSE NULL END, + 69, COUNT( * ) ) - CAST( + + 70 AS SIGNED ) DIV 21 * ( 91 ) * - 60
----
15614

skipif mysql # not compatible
query I rowsort label-9952
SELECT - 18 * - - 50 + 65 + COALESCE ( - - CASE + + 32 WHEN 92 * 31 THEN 2 ELSE NULL END, + 69, COUNT ( * ) ) - CAST ( + + 70 AS INTEGER ) / 21 * ( 91 ) * - 60
----
15614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT + CAST( NULL AS SIGNED ) * + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT + CAST ( NULL AS INTEGER ) * + + 72
----
NULL

query I rowsort
SELECT + 49 * + + 33 AS col1
----
1617

query I rowsort
SELECT + 7 + 28
----
35

query I rowsort
SELECT DISTINCT + 87 * - - 51
----
4437

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT - CASE + 87 WHEN - 89 + - MIN( ALL + - 28 ) THEN 42 WHEN - + 91 THEN + 19 + - MIN( ALL - COALESCE ( + - 53, - + 85 ) ) WHEN - ( - 35 ) THEN - 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT - CASE + 87 WHEN - 89 + - MIN ( ALL + - 28 ) THEN 42 WHEN - + 91 THEN + 19 + - MIN ( ALL - COALESCE ( + - 53, - + 85 ) ) WHEN - ( - 35 ) THEN - 90 END
----
NULL

query I rowsort
SELECT + 13 * + - 64 AS col1
----
-832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9959
SELECT ALL ( COALESCE ( - 14, 70 + - 30 ) ) + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL ( COALESCE ( - 14, 70 + - 30 ) ) + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT + 59 - 92 + + 52 DIV - 47
----
-34

skipif mysql # not compatible
query I rowsort label-9960
SELECT + 59 - 92 + + 52 / - 47
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-9961
SELECT + 77 DIV - 12 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9961
SELECT + 77 / - 12 AS col1
----
-6

query II rowsort
SELECT ALL 51 AS col0, 99
----
51
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT - CASE - 26 WHEN - + 38 THEN NULL ELSE NULLIF ( 63, - COUNT( * ) ) END
----
-63

skipif mysql # not compatible
query I rowsort label-9963
SELECT - CASE - 26 WHEN - + 38 THEN NULL ELSE NULLIF ( 63, - COUNT ( * ) ) END
----
-63

query I rowsort
SELECT + 47 * + 22 AS col1
----
1034

query I rowsort
SELECT DISTINCT - 79 + 71
----
-8

query I rowsort
SELECT + 82 - + 72 AS col1
----
10

query I rowsort
SELECT ALL 87 + - + NULLIF ( + 59, 83 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL NULLIF ( - + NULLIF ( - + 96, CASE - 78 WHEN - ( + - 20 ) THEN ( - + CASE - ( - COUNT( * ) ) WHEN - 52 + MIN( + 85 ) - + ( - MAX( ALL - 69 ) + - 45 / 80 ) THEN + COUNT( * ) - + 25 END ) WHEN 66 / - 85 THEN 69 - 8 END ), 82 / 14 )
----
96

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL NULLIF ( - + NULLIF ( - + 96, CASE - 78 WHEN - ( + - 20 ) THEN ( - + CASE - ( - COUNT ( * ) ) WHEN - 52 + MIN ( + 85 ) - + ( - MAX ( ALL - 69 ) + - 45 / 80 ) THEN + COUNT ( * ) - + 25 END ) WHEN 66 / - 85 THEN 69 - 8 END ), 82 / 14 )
----
96

query I rowsort
SELECT - ( - - 55 ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT ALL 5 + + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL 5 + + + COUNT ( * )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9971
SELECT ALL - 14 AS col1, COUNT( * ) DIV 62 * - 86 * - 5 AS col0
----
-14
0

skipif mysql # not compatible
query II rowsort label-9971
SELECT ALL - 14 AS col1, COUNT ( * ) / 62 * - 86 * - 5 AS col0
----
-14
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT - + SUM( - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-9972
SELECT - + SUM ( - 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT + 99 * + MIN( ALL - 39 ) * - + 74 AS col0
----
285714

skipif mysql # not compatible
query I rowsort label-9973
SELECT + 99 * + MIN ( ALL - 39 ) * - + 74 AS col0
----
285714

onlyif mysql # aggregate syntax: 
query II rowsort label-9974
SELECT - ( - 73 ) + + ( 7 ) + - - COUNT( * ) + 0 * - MIN( ALL + - 57 ), COUNT( * ) * + COUNT( * ) * - 59 + - 42 - + 3 AS col0
----
81
-104

skipif mysql # not compatible
query II rowsort label-9974
SELECT - ( - 73 ) + + ( 7 ) + - - COUNT ( * ) + 0 * - MIN ( ALL + - 57 ), COUNT ( * ) * + COUNT ( * ) * - 59 + - 42 - + 3 AS col0
----
81
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT DISTINCT 39 + - COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT 39 + - COUNT ( * ) AS col0
----
38

query I rowsort
SELECT - 82 + + NULLIF ( - 35, - - 8 )
----
-117

query II rowsort
SELECT DISTINCT + + 61, 35 AS col2
----
61
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9978
SELECT + + 71 * ( 65 ), CAST( 27 AS SIGNED ) AS col1
----
4615
27

skipif mysql # not compatible
query II rowsort label-9978
SELECT + + 71 * ( 65 ), CAST ( 27 AS INTEGER ) AS col1
----
4615
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9979
SELECT DISTINCT + COUNT( * ) DIV - + 4 - - CAST( + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT + COUNT ( * ) / - + 4 - - CAST ( + COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT - 53 * - 86 + - + 89 AS col2
----
4469

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT ALL + MAX( - 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL + MAX ( - 41 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT - SUM( ALL 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-9982
SELECT - SUM ( ALL 54 ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL - 61 * COUNT( * ) - - 73 - + - 58
----
70

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL - 61 * COUNT ( * ) - - 73 - + - 58
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9984
SELECT ALL + 62, COUNT( * ) * 15 AS col0
----
62
15

skipif mysql # not compatible
query II rowsort label-9984
SELECT ALL + 62, COUNT ( * ) * 15 AS col0
----
62
15

query I rowsort
SELECT - + CASE ( - 66 ) WHEN - - 2 THEN + 5 + + + 28 ELSE NULL END * - + 17 col2
----
NULL

query I rowsort
SELECT - 29 + 67 * - 85
----
-5724

query II rowsort
SELECT + - 83 AS col2, 33 + 5 AS col1
----
-83
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT + - ( - 25 ) * COUNT( * ) + 62
----
87

skipif mysql # not compatible
query I rowsort label-9988
SELECT + - ( - 25 ) * COUNT ( * ) + 62
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9989
SELECT 39 AS col2, 21 + + CASE + 42 WHEN - - COUNT( * ) THEN NULL ELSE - - 94 DIV 10 END + + 85 AS col0
----
39
115

skipif mysql # not compatible
query II rowsort label-9989
SELECT 39 AS col2, 21 + + CASE + 42 WHEN - - COUNT ( * ) THEN NULL ELSE - - 94 / 10 END + + 85 AS col0
----
39
115

query I rowsort
SELECT - 56 * 86 AS col2
----
-4816

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT MIN( DISTINCT + + 45 ) * + 16 + + COUNT( * ) + 52 - - COUNT( * ) - + 0 + + - 8 AS col1
----
766

skipif mysql # not compatible
query I rowsort label-9991
SELECT MIN ( DISTINCT + + 45 ) * + 16 + + COUNT ( * ) + 52 - - COUNT ( * ) - + 0 + + - 8 AS col1
----
766

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9992
SELECT + 49 DIV + - 23 col2, ( 95 ) + - CAST( NULL AS SIGNED ) AS col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-9992
SELECT + 49 / + - 23 col2, ( 95 ) + - CAST ( NULL AS INTEGER ) AS col0
----
-2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT - 19 - + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-9993
SELECT - 19 - + COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9994
SELECT ALL + NULLIF ( 44, - 47 + - - COUNT( * ) * - 5 * + + 61 + + 78 ) AS col1, + NULLIF ( MAX( 20 ), + 51 ) DIV + COUNT( * ) AS col0
----
44
20

skipif mysql # not compatible
query II rowsort label-9994
SELECT ALL + NULLIF ( 44, - 47 + - - COUNT ( * ) * - 5 * + + 61 + + 78 ) AS col1, + NULLIF ( MAX ( 20 ), + 51 ) / + COUNT ( * ) AS col0
----
44
20

query II rowsort
SELECT - 96 + - + 62 + + - 88 * 1 AS col1, + 76
----
-246
76

query I rowsort
SELECT ALL 7 * 54 AS col0
----
378

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT - 13 DIV - + 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9997
SELECT - 13 / - + 54 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9998
SELECT DISTINCT - 28 DIV 16 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT - 28 / 16 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT - CASE + 55 WHEN + 84 THEN ( - MAX( CASE 61 WHEN + 8 THEN NULL WHEN - NULLIF ( - 54, - + 55 ) THEN - + 20 + - - ( - - 40 ) END ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT - CASE + 55 WHEN + 84 THEN ( - MAX ( CASE 61 WHEN + 8 THEN NULL WHEN - NULLIF ( - 54, - + 55 ) THEN - + 20 + - - ( - - 40 ) END ) ) END
----
NULL

